diff --git a/.changeset/celocli-governance-approve-flags.md b/.changeset/celocli-governance-approve-flags.md deleted file mode 100644 index d6b4b8e332..0000000000 --- a/.changeset/celocli-governance-approve-flags.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -'@celo/celocli': minor ---- - -Add new flags to `governance:approve` command for better multisig transaction control: - -- `--submit`: Force submission of approval transaction to multisig without checking for prior confirmations onchain. Use with caution - this bypasses the check for existing submissions. Example: `celocli governance:approve --proposalID 99 --from 0x... --useMultiSig --submit` - -- `--multisigTx`: Specify exact multisig transaction ID to confirm, rather than searching onchain. Useful when you know the transaction ID from offchain sources. Example: `celocli governance:approve --proposalID 99 --from 0x... --useMultiSig --multisigTx 5` - -Both flags depend on `--proposalID` and `--useMultiSig` being provided. diff --git a/.changeset/celocli-governance-propose-simulate.md b/.changeset/celocli-governance-propose-simulate.md deleted file mode 100644 index 0f475b293a..0000000000 --- a/.changeset/celocli-governance-propose-simulate.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -'@celo/celocli': minor ---- - -Add `--simulate` flag to `governance:propose` command to simulate proposal execution against a forked node (e.g. anvil) before submitting on-chain. - -Unlike the default `eth_call`-based simulation, `--simulate` actually sends each proposal transaction sequentially from the Governance contract address (which the node must have unlocked, e.g. `anvil --auto-impersonate`). This means transactions execute against cumulative state changes — useful for proposals where the success of one transaction depends on a previous one succeeding. If any transaction fails, the proposal is not submitted and the decoded revert reason is printed. - -Example: `celocli governance:propose --jsonTransactions ./transactions.json --deposit 100e18 --from 0x... --descriptionURL https://... --simulate http://127.0.0.1:8545` diff --git a/.changeset/contractkit-submit-transaction.md b/.changeset/contractkit-submit-transaction.md deleted file mode 100644 index c5379a96e4..0000000000 --- a/.changeset/contractkit-submit-transaction.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@celo/contractkit': minor ---- - -Add `submitTransaction` method to `MultiSigWrapper` to submit transactions to multisig without automatic confirmation. This complements the existing `submitOrConfirmTransaction` method by providing more granular control over the submission process. diff --git a/.changeset/fix-ledger-console-noise.md b/.changeset/fix-ledger-console-noise.md deleted file mode 100644 index 28e1d01ce7..0000000000 --- a/.changeset/fix-ledger-console-noise.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@celo/wallet-ledger': patch ---- - -Replace `console.info` with `debug` for derivation path logging to avoid noisy test output diff --git a/.changeset/open-donkeys-nail.md b/.changeset/open-donkeys-nail.md deleted file mode 100644 index a9c42b152d..0000000000 --- a/.changeset/open-donkeys-nail.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@celo/contractkit': patch -'@celo/celocli': patch ---- - -Updates logic for submiting/confirming transaction with multisig to only search thru non executed transactions diff --git a/.changeset/remove-delegate-debug-logs.md b/.changeset/remove-delegate-debug-logs.md deleted file mode 100644 index 596777d15d..0000000000 --- a/.changeset/remove-delegate-debug-logs.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@celo/celocli': patch ---- - -Remove debug console.log statements from lockedcelo:delegate command that were leaking internal values to stdout diff --git a/.changeset/remove-mento-reserve-repoint-stables.md b/.changeset/remove-mento-reserve-repoint-stables.md deleted file mode 100644 index e3d06df546..0000000000 --- a/.changeset/remove-mento-reserve-repoint-stables.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -'@celo/contractkit': major -'@celo/celocli': minor ---- - -Remove ContractKit's dependency on the Mento `Reserve` and `StableToken` ABIs and repoint the Celo stable tokens onto a viem-native ABI. - -- Removed the `ReserveWrapper`, `CeloContract.Reserve`, `ContractKit.getReserve()`, the `reserve` field of `NetworkConfig`, and the `ReserveProxy` init entry. -- `StableToken` / `StableTokenEUR` / `StableTokenBRL` now use a composed `stableTokenViemAbi` (viem's `erc20Abi` + `transferWithComment` from `ICeloToken` + the StableToken admin/`initialize` methods) instead of `@celo/abis` `stableTokenABI`/`reserveABI`. This drops the Mento ABI dependency without waiting on a new `@celo/abis` release. diff --git a/.changeset/remove-rpc-contract-promievent.md b/.changeset/remove-rpc-contract-promievent.md deleted file mode 100644 index 6c7fb4bba1..0000000000 --- a/.changeset/remove-rpc-contract-promievent.md +++ /dev/null @@ -1,25 +0,0 @@ ---- -'@celo/connect': major -'@celo/contractkit': major -'@celo/celocli': minor -'@celo/dev-utils': minor ---- - -**Remove rpc-contract.ts, PromiEvent, and legacy Contract interface from @celo/connect** - -- Deleted `rpc-contract.ts`, `promi-event.ts`, and `viem-contract.ts` — replaced with native viem `getContract()` / `GetContractReturnType` -- `CeloTxObject.send()` now returns `Promise` (tx hash) instead of `PromiEvent` -- Removed `Connection.createContract()` — use `Connection.getCeloContract()` instead -- Removed `PromiEvent` and `Contract` interfaces from types -- Removed the public exports `CeloTransactionObject`, `toTransactionObject`, `CeloTxObject`, `RpcCaller`, and `TransactionResult` (the old `celo-transaction-object`, `rpc-caller`, and `tx-result` modules) -- Contract deployment rewritten to use viem's `encodeDeployData` + `connection.sendTransaction()` -- All contractkit wrappers, CLI commands, and test files updated - -**Breaking changes in @celo/contractkit** - -- `kit.sendTransaction()` now returns `Promise<\`0x${string}\`>` (the transaction hash) instead of a `TransactionResult`; use `kit.connection.viemClient.waitForTransactionReceipt({ hash })` to wait for inclusion -- All wrapper write methods now return the transaction hash (a `Promise`) instead of `CeloTransactionObject`; replace `.send()` / `.sendAndWaitForReceipt()` with `await kit.connection.viemClient.waitForTransactionReceipt({ hash })` -- Removed the deprecated `kit.web3` shim — use `kit.connection.viemClient` (reads) and wrapper methods (writes) -- Removed `kit.isListening()` and `kit.isSyncing()` (no direct replacement; query the node via `kit.connection.viemClient.request({ method: 'net_listening' })` or `{ method: 'eth_syncing' }` if needed) -- Removed the deprecated `kit.gasPriceSuggestionMultiplier` property -- Removed the `CeloToken` type re-export — use `CeloTokenContract` diff --git a/.changeset/remove-web3-shim.md b/.changeset/remove-web3-shim.md deleted file mode 100644 index 529a7b72b4..0000000000 --- a/.changeset/remove-web3-shim.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@celo/connect': major -'@celo/contractkit': major -'@celo/celocli': major -'@celo/explorer': patch -'@celo/governance': patch -'@celo/dev-utils': patch ---- - -Remove the deprecated `kit.web3` shim and migrate contractkit to viem-native contract interaction. Use `kit.connection.viemClient` for reads and the wrapper methods for writes. Adds `newKitFromProvider()` as the recommended factory for building a kit from an EIP-1193 provider. diff --git a/.changeset/strong-typing-contractkit.md b/.changeset/strong-typing-contractkit.md deleted file mode 100644 index a731ba31c3..0000000000 --- a/.changeset/strong-typing-contractkit.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@celo/contractkit': minor ---- - -**Improved type safety**: Added explicit return types to wrapper methods that previously emitted `CeloTransactionObject` or `Promise` in their declaration files, replacing untyped `any` results with concrete types. This provides better IDE autocompletion and compile-time type checking for consumers of `@celo/contractkit`. diff --git a/.changeset/viem-native-migration.md b/.changeset/viem-native-migration.md deleted file mode 100644 index b050068698..0000000000 --- a/.changeset/viem-native-migration.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@celo/connect': minor -'@celo/contractkit': minor -'@celo/explorer': minor ---- - -**Migrate internal contract interaction from the web3-style RPC Contract to viem-native `getContract()`** - -- `@celo/connect` exposes `CeloContract` (viem's `GetContractReturnType`) and `Connection.getCeloContract()` for type-safe `.read`/`.write`/`.estimateGas` access. -- All 36 ContractKit wrappers now call the viem contract namespaces directly. -- `@celo/explorer`: `BlockExplorer.tryParseTx` now accepts viem's `Transaction`, and `getBlockByHash`/`getBlockByNumber` return viem block shapes. This is a breaking change for direct callers of these methods (hence the minor bump). -- CLI commands and dev-utils updated to the new API. diff --git a/docs/command-line-interface/account.md b/docs/command-line-interface/account.md index d897a98e71..d911a3a145 100644 --- a/docs/command-line-interface/account.md +++ b/docs/command-line-interface/account.md @@ -106,7 +106,7 @@ FLAG DESCRIPTIONS mainnet, celo, forno => Celo Mainnet chain', ``` -_See code: [src/commands/account/authorize.ts](https://github.com/celo-org/developer-tooling/tree/%40celo/celocli%408.0.3/packages/cli/src/commands/account/authorize.ts)_ +_See code: [src/commands/account/authorize.ts](https://github.com/celo-org/developer-tooling/tree/%40celo/celocli%409.0.0/packages/cli/src/commands/account/authorize.ts)_ ## `celocli account:balance ARG1` @@ -146,7 +146,7 @@ FLAG DESCRIPTIONS mainnet, celo, forno => Celo Mainnet chain', ``` -_See code: [src/commands/account/balance.ts](https://github.com/celo-org/developer-tooling/tree/%40celo/celocli%408.0.3/packages/cli/src/commands/account/balance.ts)_ +_See code: [src/commands/account/balance.ts](https://github.com/celo-org/developer-tooling/tree/%40celo/celocli%409.0.0/packages/cli/src/commands/account/balance.ts)_ ## `celocli account:claim-account ARG1` @@ -216,7 +216,7 @@ FLAG DESCRIPTIONS mainnet, celo, forno => Celo Mainnet chain', ``` -_See code: [src/commands/account/claim-account.ts](https://github.com/celo-org/developer-tooling/tree/%40celo/celocli%408.0.3/packages/cli/src/commands/account/claim-account.ts)_ +_See code: [src/commands/account/claim-account.ts](https://github.com/celo-org/developer-tooling/tree/%40celo/celocli%409.0.0/packages/cli/src/commands/account/claim-account.ts)_ ## `celocli account:claim-domain ARG1` @@ -282,7 +282,7 @@ FLAG DESCRIPTIONS mainnet, celo, forno => Celo Mainnet chain', ``` -_See code: [src/commands/account/claim-domain.ts](https://github.com/celo-org/developer-tooling/tree/%40celo/celocli%408.0.3/packages/cli/src/commands/account/claim-domain.ts)_ +_See code: [src/commands/account/claim-domain.ts](https://github.com/celo-org/developer-tooling/tree/%40celo/celocli%409.0.0/packages/cli/src/commands/account/claim-domain.ts)_ ## `celocli account:claim-keybase ARG1` @@ -348,7 +348,7 @@ FLAG DESCRIPTIONS mainnet, celo, forno => Celo Mainnet chain', ``` -_See code: [src/commands/account/claim-keybase.ts](https://github.com/celo-org/developer-tooling/tree/%40celo/celocli%408.0.3/packages/cli/src/commands/account/claim-keybase.ts)_ +_See code: [src/commands/account/claim-keybase.ts](https://github.com/celo-org/developer-tooling/tree/%40celo/celocli%409.0.0/packages/cli/src/commands/account/claim-keybase.ts)_ ## `celocli account:claim-name ARG1` @@ -414,7 +414,7 @@ FLAG DESCRIPTIONS mainnet, celo, forno => Celo Mainnet chain', ``` -_See code: [src/commands/account/claim-name.ts](https://github.com/celo-org/developer-tooling/tree/%40celo/celocli%408.0.3/packages/cli/src/commands/account/claim-name.ts)_ +_See code: [src/commands/account/claim-name.ts](https://github.com/celo-org/developer-tooling/tree/%40celo/celocli%409.0.0/packages/cli/src/commands/account/claim-name.ts)_ ## `celocli account:claim-rpc-url ARG1` @@ -480,7 +480,7 @@ FLAG DESCRIPTIONS mainnet, celo, forno => Celo Mainnet chain', ``` -_See code: [src/commands/account/claim-rpc-url.ts](https://github.com/celo-org/developer-tooling/tree/%40celo/celocli%408.0.3/packages/cli/src/commands/account/claim-rpc-url.ts)_ +_See code: [src/commands/account/claim-rpc-url.ts](https://github.com/celo-org/developer-tooling/tree/%40celo/celocli%409.0.0/packages/cli/src/commands/account/claim-rpc-url.ts)_ ## `celocli account:claim-storage ARG1` @@ -546,7 +546,7 @@ FLAG DESCRIPTIONS mainnet, celo, forno => Celo Mainnet chain', ``` -_See code: [src/commands/account/claim-storage.ts](https://github.com/celo-org/developer-tooling/tree/%40celo/celocli%408.0.3/packages/cli/src/commands/account/claim-storage.ts)_ +_See code: [src/commands/account/claim-storage.ts](https://github.com/celo-org/developer-tooling/tree/%40celo/celocli%409.0.0/packages/cli/src/commands/account/claim-storage.ts)_ ## `celocli account:create-metadata ARG1` @@ -611,7 +611,7 @@ FLAG DESCRIPTIONS mainnet, celo, forno => Celo Mainnet chain', ``` -_See code: [src/commands/account/create-metadata.ts](https://github.com/celo-org/developer-tooling/tree/%40celo/celocli%408.0.3/packages/cli/src/commands/account/create-metadata.ts)_ +_See code: [src/commands/account/create-metadata.ts](https://github.com/celo-org/developer-tooling/tree/%40celo/celocli%409.0.0/packages/cli/src/commands/account/create-metadata.ts)_ ## `celocli account:deauthorize` @@ -678,7 +678,7 @@ FLAG DESCRIPTIONS mainnet, celo, forno => Celo Mainnet chain', ``` -_See code: [src/commands/account/deauthorize.ts](https://github.com/celo-org/developer-tooling/tree/%40celo/celocli%408.0.3/packages/cli/src/commands/account/deauthorize.ts)_ +_See code: [src/commands/account/deauthorize.ts](https://github.com/celo-org/developer-tooling/tree/%40celo/celocli%409.0.0/packages/cli/src/commands/account/deauthorize.ts)_ ## `celocli account:delete-payment-delegation` @@ -737,7 +737,7 @@ FLAG DESCRIPTIONS mainnet, celo, forno => Celo Mainnet chain', ``` -_See code: [src/commands/account/delete-payment-delegation.ts](https://github.com/celo-org/developer-tooling/tree/%40celo/celocli%408.0.3/packages/cli/src/commands/account/delete-payment-delegation.ts)_ +_See code: [src/commands/account/delete-payment-delegation.ts](https://github.com/celo-org/developer-tooling/tree/%40celo/celocli%409.0.0/packages/cli/src/commands/account/delete-payment-delegation.ts)_ ## `celocli account:get-metadata ARG1` @@ -823,7 +823,7 @@ FLAG DESCRIPTIONS mainnet, celo, forno => Celo Mainnet chain', ``` -_See code: [src/commands/account/get-metadata.ts](https://github.com/celo-org/developer-tooling/tree/%40celo/celocli%408.0.3/packages/cli/src/commands/account/get-metadata.ts)_ +_See code: [src/commands/account/get-metadata.ts](https://github.com/celo-org/developer-tooling/tree/%40celo/celocli%409.0.0/packages/cli/src/commands/account/get-metadata.ts)_ ## `celocli account:get-payment-delegation` @@ -910,7 +910,7 @@ FLAG DESCRIPTIONS mainnet, celo, forno => Celo Mainnet chain', ``` -_See code: [src/commands/account/get-payment-delegation.ts](https://github.com/celo-org/developer-tooling/tree/%40celo/celocli%408.0.3/packages/cli/src/commands/account/get-payment-delegation.ts)_ +_See code: [src/commands/account/get-payment-delegation.ts](https://github.com/celo-org/developer-tooling/tree/%40celo/celocli%409.0.0/packages/cli/src/commands/account/get-payment-delegation.ts)_ ## `celocli account:list` @@ -966,7 +966,7 @@ FLAG DESCRIPTIONS mainnet, celo, forno => Celo Mainnet chain', ``` -_See code: [src/commands/account/list.ts](https://github.com/celo-org/developer-tooling/tree/%40celo/celocli%408.0.3/packages/cli/src/commands/account/list.ts)_ +_See code: [src/commands/account/list.ts](https://github.com/celo-org/developer-tooling/tree/%40celo/celocli%409.0.0/packages/cli/src/commands/account/list.ts)_ ## `celocli account:lock ARG1` @@ -1024,7 +1024,7 @@ FLAG DESCRIPTIONS mainnet, celo, forno => Celo Mainnet chain', ``` -_See code: [src/commands/account/lock.ts](https://github.com/celo-org/developer-tooling/tree/%40celo/celocli%408.0.3/packages/cli/src/commands/account/lock.ts)_ +_See code: [src/commands/account/lock.ts](https://github.com/celo-org/developer-tooling/tree/%40celo/celocli%409.0.0/packages/cli/src/commands/account/lock.ts)_ ## `celocli account:new` @@ -1115,7 +1115,7 @@ FLAG DESCRIPTIONS path. (use changeIndex, and addressIndex flags to change BIP44 positions 4 and 5) ``` -_See code: [src/commands/account/new.ts](https://github.com/celo-org/developer-tooling/tree/%40celo/celocli%408.0.3/packages/cli/src/commands/account/new.ts)_ +_See code: [src/commands/account/new.ts](https://github.com/celo-org/developer-tooling/tree/%40celo/celocli%409.0.0/packages/cli/src/commands/account/new.ts)_ ## `celocli account:proof-of-possession` @@ -1178,7 +1178,7 @@ FLAG DESCRIPTIONS mainnet, celo, forno => Celo Mainnet chain', ``` -_See code: [src/commands/account/proof-of-possession.ts](https://github.com/celo-org/developer-tooling/tree/%40celo/celocli%408.0.3/packages/cli/src/commands/account/proof-of-possession.ts)_ +_See code: [src/commands/account/proof-of-possession.ts](https://github.com/celo-org/developer-tooling/tree/%40celo/celocli%409.0.0/packages/cli/src/commands/account/proof-of-possession.ts)_ ## `celocli account:register` @@ -1243,7 +1243,7 @@ FLAG DESCRIPTIONS mainnet, celo, forno => Celo Mainnet chain', ``` -_See code: [src/commands/account/register.ts](https://github.com/celo-org/developer-tooling/tree/%40celo/celocli%408.0.3/packages/cli/src/commands/account/register.ts)_ +_See code: [src/commands/account/register.ts](https://github.com/celo-org/developer-tooling/tree/%40celo/celocli%409.0.0/packages/cli/src/commands/account/register.ts)_ ## `celocli account:register-data-encryption-key` @@ -1306,7 +1306,7 @@ FLAG DESCRIPTIONS mainnet, celo, forno => Celo Mainnet chain', ``` -_See code: [src/commands/account/register-data-encryption-key.ts](https://github.com/celo-org/developer-tooling/tree/%40celo/celocli%408.0.3/packages/cli/src/commands/account/register-data-encryption-key.ts)_ +_See code: [src/commands/account/register-data-encryption-key.ts](https://github.com/celo-org/developer-tooling/tree/%40celo/celocli%409.0.0/packages/cli/src/commands/account/register-data-encryption-key.ts)_ ## `celocli account:register-metadata` @@ -1399,7 +1399,7 @@ FLAG DESCRIPTIONS mainnet, celo, forno => Celo Mainnet chain', ``` -_See code: [src/commands/account/register-metadata.ts](https://github.com/celo-org/developer-tooling/tree/%40celo/celocli%408.0.3/packages/cli/src/commands/account/register-metadata.ts)_ +_See code: [src/commands/account/register-metadata.ts](https://github.com/celo-org/developer-tooling/tree/%40celo/celocli%409.0.0/packages/cli/src/commands/account/register-metadata.ts)_ ## `celocli account:set-name` @@ -1462,7 +1462,7 @@ FLAG DESCRIPTIONS mainnet, celo, forno => Celo Mainnet chain', ``` -_See code: [src/commands/account/set-name.ts](https://github.com/celo-org/developer-tooling/tree/%40celo/celocli%408.0.3/packages/cli/src/commands/account/set-name.ts)_ +_See code: [src/commands/account/set-name.ts](https://github.com/celo-org/developer-tooling/tree/%40celo/celocli%409.0.0/packages/cli/src/commands/account/set-name.ts)_ ## `celocli account:set-payment-delegation` @@ -1529,7 +1529,7 @@ FLAG DESCRIPTIONS mainnet, celo, forno => Celo Mainnet chain', ``` -_See code: [src/commands/account/set-payment-delegation.ts](https://github.com/celo-org/developer-tooling/tree/%40celo/celocli%408.0.3/packages/cli/src/commands/account/set-payment-delegation.ts)_ +_See code: [src/commands/account/set-payment-delegation.ts](https://github.com/celo-org/developer-tooling/tree/%40celo/celocli%409.0.0/packages/cli/src/commands/account/set-payment-delegation.ts)_ ## `celocli account:set-wallet` @@ -1601,7 +1601,7 @@ FLAG DESCRIPTIONS mainnet, celo, forno => Celo Mainnet chain', ``` -_See code: [src/commands/account/set-wallet.ts](https://github.com/celo-org/developer-tooling/tree/%40celo/celocli%408.0.3/packages/cli/src/commands/account/set-wallet.ts)_ +_See code: [src/commands/account/set-wallet.ts](https://github.com/celo-org/developer-tooling/tree/%40celo/celocli%409.0.0/packages/cli/src/commands/account/set-wallet.ts)_ ## `celocli account:show ARG1` @@ -1635,7 +1635,7 @@ FLAG DESCRIPTIONS mainnet, celo, forno => Celo Mainnet chain', ``` -_See code: [src/commands/account/show.ts](https://github.com/celo-org/developer-tooling/tree/%40celo/celocli%408.0.3/packages/cli/src/commands/account/show.ts)_ +_See code: [src/commands/account/show.ts](https://github.com/celo-org/developer-tooling/tree/%40celo/celocli%409.0.0/packages/cli/src/commands/account/show.ts)_ ## `celocli account:show-claimed-accounts ARG1` @@ -1690,7 +1690,7 @@ FLAG DESCRIPTIONS mainnet, celo, forno => Celo Mainnet chain', ``` -_See code: [src/commands/account/show-claimed-accounts.ts](https://github.com/celo-org/developer-tooling/tree/%40celo/celocli%408.0.3/packages/cli/src/commands/account/show-claimed-accounts.ts)_ +_See code: [src/commands/account/show-claimed-accounts.ts](https://github.com/celo-org/developer-tooling/tree/%40celo/celocli%409.0.0/packages/cli/src/commands/account/show-claimed-accounts.ts)_ ## `celocli account:show-metadata ARG1` @@ -1735,7 +1735,7 @@ FLAG DESCRIPTIONS mainnet, celo, forno => Celo Mainnet chain', ``` -_See code: [src/commands/account/show-metadata.ts](https://github.com/celo-org/developer-tooling/tree/%40celo/celocli%408.0.3/packages/cli/src/commands/account/show-metadata.ts)_ +_See code: [src/commands/account/show-metadata.ts](https://github.com/celo-org/developer-tooling/tree/%40celo/celocli%409.0.0/packages/cli/src/commands/account/show-metadata.ts)_ ## `celocli account:unlock ARG1` @@ -1804,7 +1804,7 @@ FLAG DESCRIPTIONS mainnet, celo, forno => Celo Mainnet chain', ``` -_See code: [src/commands/account/unlock.ts](https://github.com/celo-org/developer-tooling/tree/%40celo/celocli%408.0.3/packages/cli/src/commands/account/unlock.ts)_ +_See code: [src/commands/account/unlock.ts](https://github.com/celo-org/developer-tooling/tree/%40celo/celocli%409.0.0/packages/cli/src/commands/account/unlock.ts)_ ## `celocli account:verify-proof-of-possession` @@ -1871,4 +1871,4 @@ FLAG DESCRIPTIONS mainnet, celo, forno => Celo Mainnet chain', ``` -_See code: [src/commands/account/verify-proof-of-possession.ts](https://github.com/celo-org/developer-tooling/tree/%40celo/celocli%408.0.3/packages/cli/src/commands/account/verify-proof-of-possession.ts)_ +_See code: [src/commands/account/verify-proof-of-possession.ts](https://github.com/celo-org/developer-tooling/tree/%40celo/celocli%409.0.0/packages/cli/src/commands/account/verify-proof-of-possession.ts)_ diff --git a/docs/command-line-interface/bridge.md b/docs/command-line-interface/bridge.md new file mode 100644 index 0000000000..d1078e8494 --- /dev/null +++ b/docs/command-line-interface/bridge.md @@ -0,0 +1,388 @@ +`celocli bridge` +================ + +Bridge CELO between Ethereum (L1) and Celo (L2) + +* [`celocli bridge:deposit`](#celocli-bridgedeposit) +* [`celocli bridge:withdraw-finalize`](#celocli-bridgewithdraw-finalize) +* [`celocli bridge:withdraw-init`](#celocli-bridgewithdraw-init) +* [`celocli bridge:withdraw-prove`](#celocli-bridgewithdraw-prove) +* [`celocli bridge:withdraw-status`](#celocli-bridgewithdraw-status) + +## `celocli bridge:deposit` + +Deposit CELO from Ethereum (L1) to Celo (L2). This bridges your CELO tokens to the Celo L2 network. + +``` +USAGE + $ celocli bridge:deposit --from 0xc1912fEE45d61C87Cc5EA59DaE31190FFFFf232d --value + 10000000000000000000000 --network mainnet|sepolia --l1RpcUrl [-k | + --useLedger | ] [-n ] [--gasCurrency + 0x1234567890123456789012345678901234567890] [--ledgerAddresses ] + [--ledgerLiveMode ] [--globalHelp] [--to 0xc1912fEE45d61C87Cc5EA59DaE31190FFFFf232d] + [--gasLimit ] + +FLAGS + -k, --privateKey= + Use a private key to sign local transactions with + + -n, --node= + URL of the node to run commands against or an alias + + --from=0xc1912fEE45d61C87Cc5EA59DaE31190FFFFf232d + (required) Address of the sender on L1 + + --gasCurrency=0x1234567890123456789012345678901234567890 + Use a specific gas currency for transaction fees (defaults to CELO if no gas + currency is supplied). It must be a whitelisted token. + + --gasLimit= + [default: 100000] Gas limit for the L2 transaction + + --globalHelp + View all available global flags + + --l1RpcUrl= + (required) RPC URL for the Ethereum L1 network + + --ledgerAddresses= + [default: 1] If --useLedger is set, this will get the first N addresses for local + signing + + --ledgerLiveMode + When set, the 4th postion of the derivation path will be iterated over instead of + the 5th. This is useful to use same address on you Ledger with celocli as you do on + Ledger Live + + --network=