diff --git a/.changeset/rich-wolves-move.md b/.changeset/rich-wolves-move.md new file mode 100644 index 000000000..d75ddce11 --- /dev/null +++ b/.changeset/rich-wolves-move.md @@ -0,0 +1,7 @@ +--- +'@celo/wallet-local': major +'@celo/wallet-base': major +'@celo/connect': major +--- + +Remove support for celo-legacy and cip42 transaction serialization and signing. These were the transaction types that supported gatewayFee. Transactions that specify feeCurrency and gasPrice togther will now throw. Users should migrate these to either ethereum type 0, eip1559 and cip64 style transactions depending on their need. diff --git a/.changeset/thin-yaks-lick.md b/.changeset/thin-yaks-lick.md new file mode 100644 index 000000000..ddd0dddbe --- /dev/null +++ b/.changeset/thin-yaks-lick.md @@ -0,0 +1,5 @@ +--- +'@celo/wallet-ledger': patch +--- + +Temporarily support celo-legacy transactions / older celo-ledger apps. diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 62939a7fb..387d32e5d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -88,14 +88,15 @@ jobs: run: | yarn check-licenses # Get workdir local changes and fail if there are any change - - name: Verify Changed files - id: verify-changed-files - uses: tj-actions/verify-changed-files@v17 - with: - fail-if-changed: 'true' - fail-message: 'Files changed during build. Please build locally and commit the changes.' - files: | - **/* + # - name: Verify Changed files + # id: verify-changed-files + # uses: tj-actions/verify-changed-files@v17 + # with: + # path: yarn.lock + # fail-if-changed: 'true' + # fail-message: 'Files changed during build. Please build locally and commit the changes.' + # files: | + # **/* - run: | echo "${{ steps.verify-changed-files.outputs.changed_files }}" diff --git a/.vscode/launch.json b/.vscode/launch.json index 2dcffcacd..c806e8caa 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -11,11 +11,29 @@ "--rootDir", "${workspaceFolder}/packages/sdk/contractkit", "--runInBand", - "${workspaceFolder}/packages/sdk/contractkit/src/**/*.test.ts", + "${workspaceFolder}/packages/sdk/contractkit/src/**/*.test.ts" ], "console": "integratedTerminal", "internalConsoleOptions": "neverOpen", "port": 9229 + }, + { + "name": "Debug Ledger Tests", + "type": "node", + "request": "launch", + "runtimeArgs": [ + "--inspect-brk", + "${workspaceRoot}/node_modules/.bin/jest", + "--rootDir", + "${workspaceFolder}/packages/sdk/wallets/wallet-ledger", + "--runInBand" + ], + "env": { + "USE_PHYSICAL_LEDGER": "true" + }, + "console": "integratedTerminal", + "internalConsoleOptions": "neverOpen", + "port": 9229 } ] -} \ No newline at end of file +} diff --git a/.yarnrc.yml b/.yarnrc.yml index 4b8bff894..1f453f651 100644 --- a/.yarnrc.yml +++ b/.yarnrc.yml @@ -5,3 +5,5 @@ enableGlobalCache: false nodeLinker: node-modules yarnPath: .yarn/releases/yarn-4.0.2.cjs + +nmHoistingLimits: workspaces \ No newline at end of file diff --git a/docs/sdk/connect/classes/index.Contract.md b/docs/sdk/connect/classes/index.Contract.md index b57a53200..e7515e22a 100644 --- a/docs/sdk/connect/classes/index.Contract.md +++ b/docs/sdk/connect/classes/index.Contract.md @@ -53,7 +53,7 @@ #### Defined in -node_modules/web3-eth-contract/types/index.d.ts:27 +packages/sdk/connect/node_modules/web3-eth-contract/types/index.d.ts:27 ## Properties @@ -63,7 +63,7 @@ node_modules/web3-eth-contract/types/index.d.ts:27 #### Defined in -node_modules/web3-eth-contract/types/index.d.ts:37 +packages/sdk/connect/node_modules/web3-eth-contract/types/index.d.ts:37 ___ @@ -73,7 +73,7 @@ ___ #### Defined in -node_modules/web3-eth-contract/types/index.d.ts:38 +packages/sdk/connect/node_modules/web3-eth-contract/types/index.d.ts:38 ___ @@ -83,7 +83,7 @@ ___ #### Defined in -node_modules/web3-eth-contract/types/index.d.ts:41 +packages/sdk/connect/node_modules/web3-eth-contract/types/index.d.ts:41 ___ @@ -93,7 +93,7 @@ ___ #### Defined in -node_modules/web3-eth-contract/types/index.d.ts:39 +packages/sdk/connect/node_modules/web3-eth-contract/types/index.d.ts:39 ___ @@ -103,7 +103,7 @@ ___ #### Defined in -node_modules/web3-eth-contract/types/index.d.ts:40 +packages/sdk/connect/node_modules/web3-eth-contract/types/index.d.ts:40 ___ @@ -113,7 +113,7 @@ ___ #### Defined in -node_modules/web3-eth-contract/types/index.d.ts:65 +packages/sdk/connect/node_modules/web3-eth-contract/types/index.d.ts:65 ___ @@ -123,7 +123,7 @@ ___ #### Defined in -node_modules/web3-eth-contract/types/index.d.ts:45 +packages/sdk/connect/node_modules/web3-eth-contract/types/index.d.ts:45 ___ @@ -133,7 +133,7 @@ ___ #### Defined in -node_modules/web3-eth-contract/types/index.d.ts:53 +packages/sdk/connect/node_modules/web3-eth-contract/types/index.d.ts:53 ___ @@ -143,7 +143,7 @@ ___ #### Defined in -node_modules/web3-eth-contract/types/index.d.ts:47 +packages/sdk/connect/node_modules/web3-eth-contract/types/index.d.ts:47 ___ @@ -153,7 +153,7 @@ ___ #### Defined in -node_modules/web3-eth-contract/types/index.d.ts:44 +packages/sdk/connect/node_modules/web3-eth-contract/types/index.d.ts:44 ___ @@ -163,7 +163,7 @@ ___ #### Defined in -node_modules/web3-eth-contract/types/index.d.ts:43 +packages/sdk/connect/node_modules/web3-eth-contract/types/index.d.ts:43 ___ @@ -173,7 +173,7 @@ ___ #### Defined in -node_modules/web3-eth-contract/types/index.d.ts:42 +packages/sdk/connect/node_modules/web3-eth-contract/types/index.d.ts:42 ## Methods @@ -187,7 +187,7 @@ node_modules/web3-eth-contract/types/index.d.ts:42 #### Defined in -node_modules/web3-eth-contract/types/index.d.ts:49 +packages/sdk/connect/node_modules/web3-eth-contract/types/index.d.ts:49 ___ @@ -207,7 +207,7 @@ ___ #### Defined in -node_modules/web3-eth-contract/types/index.d.ts:51 +packages/sdk/connect/node_modules/web3-eth-contract/types/index.d.ts:51 ___ @@ -227,7 +227,7 @@ ___ #### Defined in -node_modules/web3-eth-contract/types/index.d.ts:67 +packages/sdk/connect/node_modules/web3-eth-contract/types/index.d.ts:67 ▸ **getPastEvents**(`event`, `options`, `callback`): `Promise`\<`EventData`[]\> @@ -245,7 +245,7 @@ node_modules/web3-eth-contract/types/index.d.ts:67 #### Defined in -node_modules/web3-eth-contract/types/index.d.ts:68 +packages/sdk/connect/node_modules/web3-eth-contract/types/index.d.ts:68 ▸ **getPastEvents**(`event`, `options`): `Promise`\<`EventData`[]\> @@ -262,7 +262,7 @@ node_modules/web3-eth-contract/types/index.d.ts:68 #### Defined in -node_modules/web3-eth-contract/types/index.d.ts:73 +packages/sdk/connect/node_modules/web3-eth-contract/types/index.d.ts:73 ▸ **getPastEvents**(`event`, `callback`): `Promise`\<`EventData`[]\> @@ -279,7 +279,7 @@ node_modules/web3-eth-contract/types/index.d.ts:73 #### Defined in -node_modules/web3-eth-contract/types/index.d.ts:74 +packages/sdk/connect/node_modules/web3-eth-contract/types/index.d.ts:74 ___ @@ -300,7 +300,7 @@ ___ #### Defined in -node_modules/web3-eth-contract/types/index.d.ts:55 +packages/sdk/connect/node_modules/web3-eth-contract/types/index.d.ts:55 ▸ **once**(`event`, `options`, `callback`): `void` @@ -318,7 +318,7 @@ node_modules/web3-eth-contract/types/index.d.ts:55 #### Defined in -node_modules/web3-eth-contract/types/index.d.ts:59 +packages/sdk/connect/node_modules/web3-eth-contract/types/index.d.ts:59 ___ @@ -339,4 +339,4 @@ ___ #### Defined in -node_modules/web3-eth-contract/types/index.d.ts:33 +packages/sdk/connect/node_modules/web3-eth-contract/types/index.d.ts:33 diff --git a/docs/sdk/connect/classes/utils_tx_params_normalizer.TxParamsNormalizer.md b/docs/sdk/connect/classes/utils_tx_params_normalizer.TxParamsNormalizer.md index 37af9fcb7..02e8bdccc 100644 --- a/docs/sdk/connect/classes/utils_tx_params_normalizer.TxParamsNormalizer.md +++ b/docs/sdk/connect/classes/utils_tx_params_normalizer.TxParamsNormalizer.md @@ -36,7 +36,7 @@ #### Defined in -[packages/sdk/connect/src/utils/tx-params-normalizer.ts:22](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/utils/tx-params-normalizer.ts#L22) +[packages/sdk/connect/src/utils/tx-params-normalizer.ts:21](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/utils/tx-params-normalizer.ts#L21) ## Properties @@ -46,7 +46,7 @@ #### Defined in -[packages/sdk/connect/src/utils/tx-params-normalizer.ts:22](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/utils/tx-params-normalizer.ts#L22) +[packages/sdk/connect/src/utils/tx-params-normalizer.ts:21](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/utils/tx-params-normalizer.ts#L21) ## Methods @@ -66,4 +66,4 @@ #### Defined in -[packages/sdk/connect/src/utils/tx-params-normalizer.ts:24](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/utils/tx-params-normalizer.ts#L24) +[packages/sdk/connect/src/utils/tx-params-normalizer.ts:23](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/utils/tx-params-normalizer.ts#L23) diff --git a/docs/sdk/connect/interfaces/index.Block.md b/docs/sdk/connect/interfaces/index.Block.md index 13f931090..9d579daae 100644 --- a/docs/sdk/connect/interfaces/index.Block.md +++ b/docs/sdk/connect/interfaces/index.Block.md @@ -47,7 +47,7 @@ BlockTransactionBase.baseFeePerGas #### Defined in -node_modules/web3-eth/types/index.d.ts:435 +packages/sdk/connect/node_modules/web3-eth/types/index.d.ts:435 ___ @@ -61,7 +61,7 @@ BlockTransactionBase.difficulty #### Defined in -node_modules/web3-eth/types/index.d.ts:445 +packages/sdk/connect/node_modules/web3-eth/types/index.d.ts:445 ___ @@ -75,7 +75,7 @@ BlockTransactionBase.extraData #### Defined in -node_modules/web3-eth/types/index.d.ts:431 +packages/sdk/connect/node_modules/web3-eth/types/index.d.ts:431 ___ @@ -89,7 +89,7 @@ BlockTransactionBase.gasLimit #### Defined in -node_modules/web3-eth/types/index.d.ts:432 +packages/sdk/connect/node_modules/web3-eth/types/index.d.ts:432 ___ @@ -103,7 +103,7 @@ BlockTransactionBase.gasUsed #### Defined in -node_modules/web3-eth/types/index.d.ts:433 +packages/sdk/connect/node_modules/web3-eth/types/index.d.ts:433 ___ @@ -117,7 +117,7 @@ BlockTransactionBase.hash #### Defined in -node_modules/web3-eth/types/index.d.ts:422 +packages/sdk/connect/node_modules/web3-eth/types/index.d.ts:422 ___ @@ -131,7 +131,7 @@ BlockTransactionBase.logsBloom #### Defined in -node_modules/web3-eth/types/index.d.ts:426 +packages/sdk/connect/node_modules/web3-eth/types/index.d.ts:426 ___ @@ -145,7 +145,7 @@ BlockTransactionBase.miner #### Defined in -node_modules/web3-eth/types/index.d.ts:430 +packages/sdk/connect/node_modules/web3-eth/types/index.d.ts:430 ___ @@ -159,7 +159,7 @@ BlockTransactionBase.nonce #### Defined in -node_modules/web3-eth/types/index.d.ts:424 +packages/sdk/connect/node_modules/web3-eth/types/index.d.ts:424 ___ @@ -173,7 +173,7 @@ BlockTransactionBase.number #### Defined in -node_modules/web3-eth/types/index.d.ts:421 +packages/sdk/connect/node_modules/web3-eth/types/index.d.ts:421 ___ @@ -187,7 +187,7 @@ BlockTransactionBase.parentHash #### Defined in -node_modules/web3-eth/types/index.d.ts:423 +packages/sdk/connect/node_modules/web3-eth/types/index.d.ts:423 ___ @@ -201,7 +201,7 @@ BlockTransactionBase.receiptsRoot #### Defined in -node_modules/web3-eth/types/index.d.ts:429 +packages/sdk/connect/node_modules/web3-eth/types/index.d.ts:429 ___ @@ -215,7 +215,7 @@ BlockTransactionBase.sha3Uncles #### Defined in -node_modules/web3-eth/types/index.d.ts:425 +packages/sdk/connect/node_modules/web3-eth/types/index.d.ts:425 ___ @@ -229,7 +229,7 @@ BlockTransactionBase.size #### Defined in -node_modules/web3-eth/types/index.d.ts:444 +packages/sdk/connect/node_modules/web3-eth/types/index.d.ts:444 ___ @@ -243,7 +243,7 @@ BlockTransactionBase.stateRoot #### Defined in -node_modules/web3-eth/types/index.d.ts:428 +packages/sdk/connect/node_modules/web3-eth/types/index.d.ts:428 ___ @@ -257,7 +257,7 @@ BlockTransactionBase.timestamp #### Defined in -node_modules/web3-eth/types/index.d.ts:434 +packages/sdk/connect/node_modules/web3-eth/types/index.d.ts:434 ___ @@ -271,7 +271,7 @@ BlockTransactionBase.totalDifficulty #### Defined in -node_modules/web3-eth/types/index.d.ts:446 +packages/sdk/connect/node_modules/web3-eth/types/index.d.ts:446 ___ @@ -281,7 +281,7 @@ ___ #### Defined in -node_modules/web3-eth/types/index.d.ts:440 +packages/sdk/connect/node_modules/web3-eth/types/index.d.ts:440 ___ @@ -295,7 +295,7 @@ BlockTransactionBase.transactionsRoot #### Defined in -node_modules/web3-eth/types/index.d.ts:427 +packages/sdk/connect/node_modules/web3-eth/types/index.d.ts:427 ___ @@ -309,4 +309,4 @@ BlockTransactionBase.uncles #### Defined in -node_modules/web3-eth/types/index.d.ts:447 +packages/sdk/connect/node_modules/web3-eth/types/index.d.ts:447 diff --git a/docs/sdk/connect/interfaces/index.BlockHeader.md b/docs/sdk/connect/interfaces/index.BlockHeader.md index e37495d7b..eddbda5ba 100644 --- a/docs/sdk/connect/interfaces/index.BlockHeader.md +++ b/docs/sdk/connect/interfaces/index.BlockHeader.md @@ -32,7 +32,7 @@ #### Defined in -node_modules/web3-eth/types/index.d.ts:435 +packages/sdk/connect/node_modules/web3-eth/types/index.d.ts:435 ___ @@ -42,7 +42,7 @@ ___ #### Defined in -node_modules/web3-eth/types/index.d.ts:431 +packages/sdk/connect/node_modules/web3-eth/types/index.d.ts:431 ___ @@ -52,7 +52,7 @@ ___ #### Defined in -node_modules/web3-eth/types/index.d.ts:432 +packages/sdk/connect/node_modules/web3-eth/types/index.d.ts:432 ___ @@ -62,7 +62,7 @@ ___ #### Defined in -node_modules/web3-eth/types/index.d.ts:433 +packages/sdk/connect/node_modules/web3-eth/types/index.d.ts:433 ___ @@ -72,7 +72,7 @@ ___ #### Defined in -node_modules/web3-eth/types/index.d.ts:422 +packages/sdk/connect/node_modules/web3-eth/types/index.d.ts:422 ___ @@ -82,7 +82,7 @@ ___ #### Defined in -node_modules/web3-eth/types/index.d.ts:426 +packages/sdk/connect/node_modules/web3-eth/types/index.d.ts:426 ___ @@ -92,7 +92,7 @@ ___ #### Defined in -node_modules/web3-eth/types/index.d.ts:430 +packages/sdk/connect/node_modules/web3-eth/types/index.d.ts:430 ___ @@ -102,7 +102,7 @@ ___ #### Defined in -node_modules/web3-eth/types/index.d.ts:424 +packages/sdk/connect/node_modules/web3-eth/types/index.d.ts:424 ___ @@ -112,7 +112,7 @@ ___ #### Defined in -node_modules/web3-eth/types/index.d.ts:421 +packages/sdk/connect/node_modules/web3-eth/types/index.d.ts:421 ___ @@ -122,7 +122,7 @@ ___ #### Defined in -node_modules/web3-eth/types/index.d.ts:423 +packages/sdk/connect/node_modules/web3-eth/types/index.d.ts:423 ___ @@ -132,7 +132,7 @@ ___ #### Defined in -node_modules/web3-eth/types/index.d.ts:429 +packages/sdk/connect/node_modules/web3-eth/types/index.d.ts:429 ___ @@ -142,7 +142,7 @@ ___ #### Defined in -node_modules/web3-eth/types/index.d.ts:425 +packages/sdk/connect/node_modules/web3-eth/types/index.d.ts:425 ___ @@ -152,7 +152,7 @@ ___ #### Defined in -node_modules/web3-eth/types/index.d.ts:428 +packages/sdk/connect/node_modules/web3-eth/types/index.d.ts:428 ___ @@ -162,7 +162,7 @@ ___ #### Defined in -node_modules/web3-eth/types/index.d.ts:434 +packages/sdk/connect/node_modules/web3-eth/types/index.d.ts:434 ___ @@ -172,4 +172,4 @@ ___ #### Defined in -node_modules/web3-eth/types/index.d.ts:427 +packages/sdk/connect/node_modules/web3-eth/types/index.d.ts:427 diff --git a/docs/sdk/connect/interfaces/index.ContractSendMethod.md b/docs/sdk/connect/interfaces/index.ContractSendMethod.md index e54d2016b..87bdb9aac 100644 --- a/docs/sdk/connect/interfaces/index.ContractSendMethod.md +++ b/docs/sdk/connect/interfaces/index.ContractSendMethod.md @@ -32,7 +32,7 @@ #### Defined in -node_modules/web3-eth-contract/types/index.d.ts:96 +packages/sdk/connect/node_modules/web3-eth-contract/types/index.d.ts:96 ___ @@ -46,7 +46,7 @@ ___ #### Defined in -node_modules/web3-eth-contract/types/index.d.ts:117 +packages/sdk/connect/node_modules/web3-eth-contract/types/index.d.ts:117 ___ @@ -67,7 +67,7 @@ ___ #### Defined in -node_modules/web3-eth-contract/types/index.d.ts:101 +packages/sdk/connect/node_modules/web3-eth-contract/types/index.d.ts:101 ▸ **estimateGas**(`callback`): `Promise`\<`number`\> @@ -83,7 +83,7 @@ node_modules/web3-eth-contract/types/index.d.ts:101 #### Defined in -node_modules/web3-eth-contract/types/index.d.ts:106 +packages/sdk/connect/node_modules/web3-eth-contract/types/index.d.ts:106 ▸ **estimateGas**(`options`, `callback`): `Promise`\<`number`\> @@ -100,7 +100,7 @@ node_modules/web3-eth-contract/types/index.d.ts:106 #### Defined in -node_modules/web3-eth-contract/types/index.d.ts:108 +packages/sdk/connect/node_modules/web3-eth-contract/types/index.d.ts:108 ▸ **estimateGas**(`options`): `Promise`\<`number`\> @@ -116,7 +116,7 @@ node_modules/web3-eth-contract/types/index.d.ts:108 #### Defined in -node_modules/web3-eth-contract/types/index.d.ts:113 +packages/sdk/connect/node_modules/web3-eth-contract/types/index.d.ts:113 ▸ **estimateGas**(): `Promise`\<`number`\> @@ -126,7 +126,7 @@ node_modules/web3-eth-contract/types/index.d.ts:113 #### Defined in -node_modules/web3-eth-contract/types/index.d.ts:115 +packages/sdk/connect/node_modules/web3-eth-contract/types/index.d.ts:115 ___ @@ -147,4 +147,4 @@ ___ #### Defined in -node_modules/web3-eth-contract/types/index.d.ts:91 +packages/sdk/connect/node_modules/web3-eth-contract/types/index.d.ts:91 diff --git a/docs/sdk/connect/interfaces/index.EventLog.md b/docs/sdk/connect/interfaces/index.EventLog.md index 1c95b0e68..e0558c1ec 100644 --- a/docs/sdk/connect/interfaces/index.EventLog.md +++ b/docs/sdk/connect/interfaces/index.EventLog.md @@ -26,7 +26,7 @@ #### Defined in -node_modules/web3-core/types/index.d.ts:231 +packages/sdk/connect/node_modules/web3-core/types/index.d.ts:231 ___ @@ -36,7 +36,7 @@ ___ #### Defined in -node_modules/web3-core/types/index.d.ts:236 +packages/sdk/connect/node_modules/web3-core/types/index.d.ts:236 ___ @@ -46,7 +46,7 @@ ___ #### Defined in -node_modules/web3-core/types/index.d.ts:237 +packages/sdk/connect/node_modules/web3-core/types/index.d.ts:237 ___ @@ -56,7 +56,7 @@ ___ #### Defined in -node_modules/web3-core/types/index.d.ts:230 +packages/sdk/connect/node_modules/web3-core/types/index.d.ts:230 ___ @@ -66,7 +66,7 @@ ___ #### Defined in -node_modules/web3-core/types/index.d.ts:233 +packages/sdk/connect/node_modules/web3-core/types/index.d.ts:233 ___ @@ -83,7 +83,7 @@ ___ #### Defined in -node_modules/web3-core/types/index.d.ts:238 +packages/sdk/connect/node_modules/web3-core/types/index.d.ts:238 ___ @@ -93,7 +93,7 @@ ___ #### Defined in -node_modules/web3-core/types/index.d.ts:232 +packages/sdk/connect/node_modules/web3-core/types/index.d.ts:232 ___ @@ -103,7 +103,7 @@ ___ #### Defined in -node_modules/web3-core/types/index.d.ts:235 +packages/sdk/connect/node_modules/web3-core/types/index.d.ts:235 ___ @@ -113,4 +113,4 @@ ___ #### Defined in -node_modules/web3-core/types/index.d.ts:234 +packages/sdk/connect/node_modules/web3-core/types/index.d.ts:234 diff --git a/docs/sdk/connect/interfaces/index.Log.md b/docs/sdk/connect/interfaces/index.Log.md index ae690bd60..736d7e46a 100644 --- a/docs/sdk/connect/interfaces/index.Log.md +++ b/docs/sdk/connect/interfaces/index.Log.md @@ -26,7 +26,7 @@ #### Defined in -node_modules/web3-core/types/index.d.ts:242 +packages/sdk/connect/node_modules/web3-core/types/index.d.ts:242 ___ @@ -36,7 +36,7 @@ ___ #### Defined in -node_modules/web3-core/types/index.d.ts:248 +packages/sdk/connect/node_modules/web3-core/types/index.d.ts:248 ___ @@ -46,7 +46,7 @@ ___ #### Defined in -node_modules/web3-core/types/index.d.ts:249 +packages/sdk/connect/node_modules/web3-core/types/index.d.ts:249 ___ @@ -56,7 +56,7 @@ ___ #### Defined in -node_modules/web3-core/types/index.d.ts:243 +packages/sdk/connect/node_modules/web3-core/types/index.d.ts:243 ___ @@ -66,7 +66,7 @@ ___ #### Defined in -node_modules/web3-core/types/index.d.ts:245 +packages/sdk/connect/node_modules/web3-core/types/index.d.ts:245 ___ @@ -76,7 +76,7 @@ ___ #### Defined in -node_modules/web3-core/types/index.d.ts:250 +packages/sdk/connect/node_modules/web3-core/types/index.d.ts:250 ___ @@ -86,7 +86,7 @@ ___ #### Defined in -node_modules/web3-core/types/index.d.ts:244 +packages/sdk/connect/node_modules/web3-core/types/index.d.ts:244 ___ @@ -96,7 +96,7 @@ ___ #### Defined in -node_modules/web3-core/types/index.d.ts:247 +packages/sdk/connect/node_modules/web3-core/types/index.d.ts:247 ___ @@ -106,4 +106,4 @@ ___ #### Defined in -node_modules/web3-core/types/index.d.ts:246 +packages/sdk/connect/node_modules/web3-core/types/index.d.ts:246 diff --git a/docs/sdk/connect/interfaces/index.PastEventOptions.md b/docs/sdk/connect/interfaces/index.PastEventOptions.md index 689333a35..b6e8ffe93 100644 --- a/docs/sdk/connect/interfaces/index.PastEventOptions.md +++ b/docs/sdk/connect/interfaces/index.PastEventOptions.md @@ -32,7 +32,7 @@ PastLogsOptions.address #### Defined in -node_modules/web3-core/types/index.d.ts:438 +packages/sdk/connect/node_modules/web3-core/types/index.d.ts:438 ___ @@ -42,7 +42,7 @@ ___ #### Defined in -node_modules/web3-eth-contract/types/index.d.ts:152 +packages/sdk/connect/node_modules/web3-eth-contract/types/index.d.ts:152 ___ @@ -56,7 +56,7 @@ PastLogsOptions.fromBlock #### Defined in -node_modules/web3-core/types/index.d.ts:437 +packages/sdk/connect/node_modules/web3-core/types/index.d.ts:437 ___ @@ -70,7 +70,7 @@ PastLogsOptions.toBlock #### Defined in -node_modules/web3-core/types/index.d.ts:433 +packages/sdk/connect/node_modules/web3-core/types/index.d.ts:433 ___ @@ -84,4 +84,4 @@ PastLogsOptions.topics #### Defined in -node_modules/web3-core/types/index.d.ts:439 +packages/sdk/connect/node_modules/web3-core/types/index.d.ts:439 diff --git a/docs/sdk/connect/interfaces/index.PromiEvent.md b/docs/sdk/connect/interfaces/index.PromiEvent.md index e654dbf74..b4578cbda 100644 --- a/docs/sdk/connect/interfaces/index.PromiEvent.md +++ b/docs/sdk/connect/interfaces/index.PromiEvent.md @@ -126,7 +126,7 @@ ___ #### Defined in -node_modules/web3-core/types/index.d.ts:94 +packages/sdk/connect/node_modules/web3-core/types/index.d.ts:94 ▸ **on**(`type`, `handler`): [`PromiEvent`](index.PromiEvent.md)\<`T`\> @@ -143,7 +143,7 @@ node_modules/web3-core/types/index.d.ts:94 #### Defined in -node_modules/web3-core/types/index.d.ts:99 +packages/sdk/connect/node_modules/web3-core/types/index.d.ts:99 ▸ **on**(`type`, `handler`): [`PromiEvent`](index.PromiEvent.md)\<`T`\> @@ -160,7 +160,7 @@ node_modules/web3-core/types/index.d.ts:99 #### Defined in -node_modules/web3-core/types/index.d.ts:104 +packages/sdk/connect/node_modules/web3-core/types/index.d.ts:104 ▸ **on**(`type`, `handler`): [`PromiEvent`](index.PromiEvent.md)\<`T`\> @@ -177,7 +177,7 @@ node_modules/web3-core/types/index.d.ts:104 #### Defined in -node_modules/web3-core/types/index.d.ts:109 +packages/sdk/connect/node_modules/web3-core/types/index.d.ts:109 ▸ **on**(`type`, `handler`): [`PromiEvent`](index.PromiEvent.md)\<`T`\> @@ -194,7 +194,7 @@ node_modules/web3-core/types/index.d.ts:109 #### Defined in -node_modules/web3-core/types/index.d.ts:114 +packages/sdk/connect/node_modules/web3-core/types/index.d.ts:114 ▸ **on**(`type`, `handler`): [`PromiEvent`](index.PromiEvent.md)\<`T`\> @@ -211,7 +211,7 @@ node_modules/web3-core/types/index.d.ts:114 #### Defined in -node_modules/web3-core/types/index.d.ts:119 +packages/sdk/connect/node_modules/web3-core/types/index.d.ts:119 ▸ **on**(`type`, `handler`): [`PromiEvent`](index.PromiEvent.md)\<`T`\> @@ -228,7 +228,7 @@ node_modules/web3-core/types/index.d.ts:119 #### Defined in -node_modules/web3-core/types/index.d.ts:121 +packages/sdk/connect/node_modules/web3-core/types/index.d.ts:121 ___ @@ -249,7 +249,7 @@ ___ #### Defined in -node_modules/web3-core/types/index.d.ts:62 +packages/sdk/connect/node_modules/web3-core/types/index.d.ts:62 ▸ **once**(`type`, `handler`): [`PromiEvent`](index.PromiEvent.md)\<`T`\> @@ -266,7 +266,7 @@ node_modules/web3-core/types/index.d.ts:62 #### Defined in -node_modules/web3-core/types/index.d.ts:67 +packages/sdk/connect/node_modules/web3-core/types/index.d.ts:67 ▸ **once**(`type`, `handler`): [`PromiEvent`](index.PromiEvent.md)\<`T`\> @@ -283,7 +283,7 @@ node_modules/web3-core/types/index.d.ts:67 #### Defined in -node_modules/web3-core/types/index.d.ts:72 +packages/sdk/connect/node_modules/web3-core/types/index.d.ts:72 ▸ **once**(`type`, `handler`): [`PromiEvent`](index.PromiEvent.md)\<`T`\> @@ -300,7 +300,7 @@ node_modules/web3-core/types/index.d.ts:72 #### Defined in -node_modules/web3-core/types/index.d.ts:77 +packages/sdk/connect/node_modules/web3-core/types/index.d.ts:77 ▸ **once**(`type`, `handler`): [`PromiEvent`](index.PromiEvent.md)\<`T`\> @@ -317,7 +317,7 @@ node_modules/web3-core/types/index.d.ts:77 #### Defined in -node_modules/web3-core/types/index.d.ts:82 +packages/sdk/connect/node_modules/web3-core/types/index.d.ts:82 ▸ **once**(`type`, `handler`): [`PromiEvent`](index.PromiEvent.md)\<`T`\> @@ -334,7 +334,7 @@ node_modules/web3-core/types/index.d.ts:82 #### Defined in -node_modules/web3-core/types/index.d.ts:87 +packages/sdk/connect/node_modules/web3-core/types/index.d.ts:87 ▸ **once**(`type`, `handler`): [`PromiEvent`](index.PromiEvent.md)\<`T`\> @@ -351,7 +351,7 @@ node_modules/web3-core/types/index.d.ts:87 #### Defined in -node_modules/web3-core/types/index.d.ts:89 +packages/sdk/connect/node_modules/web3-core/types/index.d.ts:89 ___ diff --git a/docs/sdk/connect/interfaces/index.Sign.md b/docs/sdk/connect/interfaces/index.Sign.md index 613d7f1cc..3eccd1785 100644 --- a/docs/sdk/connect/interfaces/index.Sign.md +++ b/docs/sdk/connect/interfaces/index.Sign.md @@ -31,7 +31,7 @@ #### Defined in -node_modules/web3-core/types/index.d.ts:399 +packages/sdk/connect/node_modules/web3-core/types/index.d.ts:399 ___ @@ -45,7 +45,7 @@ SignedTransaction.messageHash #### Defined in -node_modules/web3-core/types/index.d.ts:36 +packages/sdk/connect/node_modules/web3-core/types/index.d.ts:36 ___ @@ -59,7 +59,7 @@ SignedTransaction.r #### Defined in -node_modules/web3-core/types/index.d.ts:37 +packages/sdk/connect/node_modules/web3-core/types/index.d.ts:37 ___ @@ -73,7 +73,7 @@ SignedTransaction.rawTransaction #### Defined in -node_modules/web3-core/types/index.d.ts:40 +packages/sdk/connect/node_modules/web3-core/types/index.d.ts:40 ___ @@ -87,7 +87,7 @@ SignedTransaction.s #### Defined in -node_modules/web3-core/types/index.d.ts:38 +packages/sdk/connect/node_modules/web3-core/types/index.d.ts:38 ___ @@ -97,7 +97,7 @@ ___ #### Defined in -node_modules/web3-core/types/index.d.ts:400 +packages/sdk/connect/node_modules/web3-core/types/index.d.ts:400 ___ @@ -111,7 +111,7 @@ SignedTransaction.transactionHash #### Defined in -node_modules/web3-core/types/index.d.ts:41 +packages/sdk/connect/node_modules/web3-core/types/index.d.ts:41 ___ @@ -125,4 +125,4 @@ SignedTransaction.v #### Defined in -node_modules/web3-core/types/index.d.ts:39 +packages/sdk/connect/node_modules/web3-core/types/index.d.ts:39 diff --git a/docs/sdk/connect/interfaces/index.Syncing.md b/docs/sdk/connect/interfaces/index.Syncing.md index 01e18323f..16887d71a 100644 --- a/docs/sdk/connect/interfaces/index.Syncing.md +++ b/docs/sdk/connect/interfaces/index.Syncing.md @@ -22,7 +22,7 @@ #### Defined in -node_modules/web3-eth/types/index.d.ts:414 +packages/sdk/connect/node_modules/web3-eth/types/index.d.ts:414 ___ @@ -32,7 +32,7 @@ ___ #### Defined in -node_modules/web3-eth/types/index.d.ts:415 +packages/sdk/connect/node_modules/web3-eth/types/index.d.ts:415 ___ @@ -42,7 +42,7 @@ ___ #### Defined in -node_modules/web3-eth/types/index.d.ts:416 +packages/sdk/connect/node_modules/web3-eth/types/index.d.ts:416 ___ @@ -52,7 +52,7 @@ ___ #### Defined in -node_modules/web3-eth/types/index.d.ts:417 +packages/sdk/connect/node_modules/web3-eth/types/index.d.ts:417 ___ @@ -62,4 +62,4 @@ ___ #### Defined in -node_modules/web3-eth/types/index.d.ts:413 +packages/sdk/connect/node_modules/web3-eth/types/index.d.ts:413 diff --git a/docs/sdk/connect/interfaces/types.CIP42TXProperties.md b/docs/sdk/connect/interfaces/types.CIP42TXProperties.md deleted file mode 100644 index 18a9b2cfc..000000000 --- a/docs/sdk/connect/interfaces/types.CIP42TXProperties.md +++ /dev/null @@ -1,244 +0,0 @@ -[@celo/connect](../README.md) / [Exports](../modules.md) / [types](../modules/types.md) / CIP42TXProperties - -# Interface: CIP42TXProperties - -[types](../modules/types.md).CIP42TXProperties - -## Hierarchy - -- `FeeMarketAndAccessListTXProperties` - - ↳ **`CIP42TXProperties`** - -## Table of contents - -### Properties - -- [accessList](types.CIP42TXProperties.md#accesslist) -- [feeCurrency](types.CIP42TXProperties.md#feecurrency) -- [gas](types.CIP42TXProperties.md#gas) -- [gatewayFee](types.CIP42TXProperties.md#gatewayfee) -- [gatewayFeeRecipient](types.CIP42TXProperties.md#gatewayfeerecipient) -- [hash](types.CIP42TXProperties.md#hash) -- [input](types.CIP42TXProperties.md#input) -- [maxFeePerGas](types.CIP42TXProperties.md#maxfeepergas) -- [maxPriorityFeePerGas](types.CIP42TXProperties.md#maxpriorityfeepergas) -- [nonce](types.CIP42TXProperties.md#nonce) -- [r](types.CIP42TXProperties.md#r) -- [s](types.CIP42TXProperties.md#s) -- [to](types.CIP42TXProperties.md#to) -- [type](types.CIP42TXProperties.md#type) -- [v](types.CIP42TXProperties.md#v) -- [value](types.CIP42TXProperties.md#value) - -## Properties - -### accessList - -• `Optional` **accessList**: `AccessList` - -#### Inherited from - -FeeMarketAndAccessListTXProperties.accessList - -#### Defined in - -[packages/sdk/connect/src/types.ts:87](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L87) - -___ - -### feeCurrency - -• **feeCurrency**: `string` - -#### Defined in - -[packages/sdk/connect/src/types.ts:100](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L100) - -___ - -### gas - -• **gas**: `string` - -#### Inherited from - -FeeMarketAndAccessListTXProperties.gas - -#### Defined in - -[packages/sdk/connect/src/types.ts:73](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L73) - -___ - -### gatewayFee - -• `Optional` **gatewayFee**: `string` - -#### Defined in - -[packages/sdk/connect/src/types.ts:102](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L102) - -___ - -### gatewayFeeRecipient - -• `Optional` **gatewayFeeRecipient**: `string` - -#### Defined in - -[packages/sdk/connect/src/types.ts:101](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L101) - -___ - -### hash - -• **hash**: `string` - -#### Inherited from - -FeeMarketAndAccessListTXProperties.hash - -#### Defined in - -[packages/sdk/connect/src/types.ts:80](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L80) - -___ - -### input - -• **input**: `string` - -#### Inherited from - -FeeMarketAndAccessListTXProperties.input - -#### Defined in - -[packages/sdk/connect/src/types.ts:76](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L76) - -___ - -### maxFeePerGas - -• **maxFeePerGas**: `string` - -#### Inherited from - -FeeMarketAndAccessListTXProperties.maxFeePerGas - -#### Defined in - -[packages/sdk/connect/src/types.ts:85](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L85) - -___ - -### maxPriorityFeePerGas - -• **maxPriorityFeePerGas**: `string` - -#### Inherited from - -FeeMarketAndAccessListTXProperties.maxPriorityFeePerGas - -#### Defined in - -[packages/sdk/connect/src/types.ts:86](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L86) - -___ - -### nonce - -• **nonce**: `string` - -#### Inherited from - -FeeMarketAndAccessListTXProperties.nonce - -#### Defined in - -[packages/sdk/connect/src/types.ts:72](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L72) - -___ - -### r - -• **r**: `string` - -#### Inherited from - -FeeMarketAndAccessListTXProperties.r - -#### Defined in - -[packages/sdk/connect/src/types.ts:77](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L77) - -___ - -### s - -• **s**: `string` - -#### Inherited from - -FeeMarketAndAccessListTXProperties.s - -#### Defined in - -[packages/sdk/connect/src/types.ts:78](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L78) - -___ - -### to - -• **to**: `string` - -#### Inherited from - -FeeMarketAndAccessListTXProperties.to - -#### Defined in - -[packages/sdk/connect/src/types.ts:74](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L74) - -___ - -### type - -• **type**: ``"cip42"`` - -#### Overrides - -FeeMarketAndAccessListTXProperties.type - -#### Defined in - -[packages/sdk/connect/src/types.ts:103](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L103) - -___ - -### v - -• **v**: `string` - -#### Inherited from - -FeeMarketAndAccessListTXProperties.v - -#### Defined in - -[packages/sdk/connect/src/types.ts:79](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L79) - -___ - -### value - -• **value**: `string` - -#### Inherited from - -FeeMarketAndAccessListTXProperties.value - -#### Defined in - -[packages/sdk/connect/src/types.ts:75](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L75) diff --git a/docs/sdk/connect/interfaces/types.CIP64TXProperties.md b/docs/sdk/connect/interfaces/types.CIP64TXProperties.md index 6fb2dca39..c92cae0b1 100644 --- a/docs/sdk/connect/interfaces/types.CIP64TXProperties.md +++ b/docs/sdk/connect/interfaces/types.CIP64TXProperties.md @@ -41,7 +41,7 @@ FeeMarketAndAccessListTXProperties.accessList #### Defined in -[packages/sdk/connect/src/types.ts:87](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L87) +[packages/sdk/connect/src/types.ts:71](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L71) ___ @@ -51,7 +51,7 @@ ___ #### Defined in -[packages/sdk/connect/src/types.ts:95](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L95) +[packages/sdk/connect/src/types.ts:79](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L79) ___ @@ -65,7 +65,7 @@ FeeMarketAndAccessListTXProperties.gas #### Defined in -[packages/sdk/connect/src/types.ts:73](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L73) +[packages/sdk/connect/src/types.ts:57](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L57) ___ @@ -79,7 +79,7 @@ FeeMarketAndAccessListTXProperties.hash #### Defined in -[packages/sdk/connect/src/types.ts:80](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L80) +[packages/sdk/connect/src/types.ts:64](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L64) ___ @@ -93,7 +93,7 @@ FeeMarketAndAccessListTXProperties.input #### Defined in -[packages/sdk/connect/src/types.ts:76](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L76) +[packages/sdk/connect/src/types.ts:60](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L60) ___ @@ -107,7 +107,7 @@ FeeMarketAndAccessListTXProperties.maxFeePerGas #### Defined in -[packages/sdk/connect/src/types.ts:85](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L85) +[packages/sdk/connect/src/types.ts:69](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L69) ___ @@ -121,7 +121,7 @@ FeeMarketAndAccessListTXProperties.maxPriorityFeePerGas #### Defined in -[packages/sdk/connect/src/types.ts:86](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L86) +[packages/sdk/connect/src/types.ts:70](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L70) ___ @@ -135,7 +135,7 @@ FeeMarketAndAccessListTXProperties.nonce #### Defined in -[packages/sdk/connect/src/types.ts:72](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L72) +[packages/sdk/connect/src/types.ts:56](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L56) ___ @@ -149,7 +149,7 @@ FeeMarketAndAccessListTXProperties.r #### Defined in -[packages/sdk/connect/src/types.ts:77](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L77) +[packages/sdk/connect/src/types.ts:61](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L61) ___ @@ -163,7 +163,7 @@ FeeMarketAndAccessListTXProperties.s #### Defined in -[packages/sdk/connect/src/types.ts:78](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L78) +[packages/sdk/connect/src/types.ts:62](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L62) ___ @@ -177,7 +177,7 @@ FeeMarketAndAccessListTXProperties.to #### Defined in -[packages/sdk/connect/src/types.ts:74](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L74) +[packages/sdk/connect/src/types.ts:58](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L58) ___ @@ -191,7 +191,7 @@ FeeMarketAndAccessListTXProperties.type #### Defined in -[packages/sdk/connect/src/types.ts:96](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L96) +[packages/sdk/connect/src/types.ts:80](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L80) ___ @@ -205,7 +205,7 @@ FeeMarketAndAccessListTXProperties.v #### Defined in -[packages/sdk/connect/src/types.ts:79](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L79) +[packages/sdk/connect/src/types.ts:63](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L63) ___ @@ -219,4 +219,4 @@ FeeMarketAndAccessListTXProperties.value #### Defined in -[packages/sdk/connect/src/types.ts:75](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L75) +[packages/sdk/connect/src/types.ts:59](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L59) diff --git a/docs/sdk/connect/interfaces/types.CeloParams.md b/docs/sdk/connect/interfaces/types.CeloParams.md index 5a3c8477f..8843d1563 100644 --- a/docs/sdk/connect/interfaces/types.CeloParams.md +++ b/docs/sdk/connect/interfaces/types.CeloParams.md @@ -9,8 +9,6 @@ ### Properties - [feeCurrency](types.CeloParams.md#feecurrency) -- [gatewayFee](types.CeloParams.md#gatewayfee) -- [gatewayFeeRecipient](types.CeloParams.md#gatewayfeerecipient) ## Properties @@ -21,23 +19,3 @@ #### Defined in [packages/sdk/connect/src/types.ts:14](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L14) - -___ - -### gatewayFee - -• **gatewayFee**: `string` - -#### Defined in - -[packages/sdk/connect/src/types.ts:22](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L22) - -___ - -### gatewayFeeRecipient - -• **gatewayFeeRecipient**: `string` - -#### Defined in - -[packages/sdk/connect/src/types.ts:18](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L18) diff --git a/docs/sdk/connect/interfaces/types.CeloTxObject.md b/docs/sdk/connect/interfaces/types.CeloTxObject.md index 1b7d83f0f..aa614da89 100644 --- a/docs/sdk/connect/interfaces/types.CeloTxObject.md +++ b/docs/sdk/connect/interfaces/types.CeloTxObject.md @@ -32,7 +32,7 @@ #### Defined in -[packages/sdk/connect/src/types.ts:62](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L62) +[packages/sdk/connect/src/types.ts:46](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L46) ___ @@ -42,7 +42,7 @@ ___ #### Defined in -[packages/sdk/connect/src/types.ts:57](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L57) +[packages/sdk/connect/src/types.ts:41](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L41) ## Methods @@ -62,7 +62,7 @@ ___ #### Defined in -[packages/sdk/connect/src/types.ts:58](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L58) +[packages/sdk/connect/src/types.ts:42](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L42) ___ @@ -76,7 +76,7 @@ ___ #### Defined in -[packages/sdk/connect/src/types.ts:61](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L61) +[packages/sdk/connect/src/types.ts:45](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L45) ___ @@ -96,7 +96,7 @@ ___ #### Defined in -[packages/sdk/connect/src/types.ts:60](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L60) +[packages/sdk/connect/src/types.ts:44](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L44) ___ @@ -116,4 +116,4 @@ ___ #### Defined in -[packages/sdk/connect/src/types.ts:59](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L59) +[packages/sdk/connect/src/types.ts:43](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L43) diff --git a/docs/sdk/connect/interfaces/types.EIP1559TXProperties.md b/docs/sdk/connect/interfaces/types.EIP1559TXProperties.md index f739c580d..2557fc07d 100644 --- a/docs/sdk/connect/interfaces/types.EIP1559TXProperties.md +++ b/docs/sdk/connect/interfaces/types.EIP1559TXProperties.md @@ -40,7 +40,7 @@ FeeMarketAndAccessListTXProperties.accessList #### Defined in -[packages/sdk/connect/src/types.ts:87](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L87) +[packages/sdk/connect/src/types.ts:71](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L71) ___ @@ -54,7 +54,7 @@ FeeMarketAndAccessListTXProperties.gas #### Defined in -[packages/sdk/connect/src/types.ts:73](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L73) +[packages/sdk/connect/src/types.ts:57](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L57) ___ @@ -68,7 +68,7 @@ FeeMarketAndAccessListTXProperties.hash #### Defined in -[packages/sdk/connect/src/types.ts:80](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L80) +[packages/sdk/connect/src/types.ts:64](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L64) ___ @@ -82,7 +82,7 @@ FeeMarketAndAccessListTXProperties.input #### Defined in -[packages/sdk/connect/src/types.ts:76](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L76) +[packages/sdk/connect/src/types.ts:60](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L60) ___ @@ -96,7 +96,7 @@ FeeMarketAndAccessListTXProperties.maxFeePerGas #### Defined in -[packages/sdk/connect/src/types.ts:85](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L85) +[packages/sdk/connect/src/types.ts:69](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L69) ___ @@ -110,7 +110,7 @@ FeeMarketAndAccessListTXProperties.maxPriorityFeePerGas #### Defined in -[packages/sdk/connect/src/types.ts:86](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L86) +[packages/sdk/connect/src/types.ts:70](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L70) ___ @@ -124,7 +124,7 @@ FeeMarketAndAccessListTXProperties.nonce #### Defined in -[packages/sdk/connect/src/types.ts:72](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L72) +[packages/sdk/connect/src/types.ts:56](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L56) ___ @@ -138,7 +138,7 @@ FeeMarketAndAccessListTXProperties.r #### Defined in -[packages/sdk/connect/src/types.ts:77](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L77) +[packages/sdk/connect/src/types.ts:61](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L61) ___ @@ -152,7 +152,7 @@ FeeMarketAndAccessListTXProperties.s #### Defined in -[packages/sdk/connect/src/types.ts:78](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L78) +[packages/sdk/connect/src/types.ts:62](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L62) ___ @@ -166,7 +166,7 @@ FeeMarketAndAccessListTXProperties.to #### Defined in -[packages/sdk/connect/src/types.ts:74](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L74) +[packages/sdk/connect/src/types.ts:58](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L58) ___ @@ -180,7 +180,7 @@ FeeMarketAndAccessListTXProperties.type #### Defined in -[packages/sdk/connect/src/types.ts:91](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L91) +[packages/sdk/connect/src/types.ts:75](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L75) ___ @@ -194,7 +194,7 @@ FeeMarketAndAccessListTXProperties.v #### Defined in -[packages/sdk/connect/src/types.ts:79](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L79) +[packages/sdk/connect/src/types.ts:63](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L63) ___ @@ -208,4 +208,4 @@ FeeMarketAndAccessListTXProperties.value #### Defined in -[packages/sdk/connect/src/types.ts:75](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L75) +[packages/sdk/connect/src/types.ts:59](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L59) diff --git a/docs/sdk/connect/interfaces/types.EncodedTransaction.md b/docs/sdk/connect/interfaces/types.EncodedTransaction.md index 65ff818a9..0cf06c9b4 100644 --- a/docs/sdk/connect/interfaces/types.EncodedTransaction.md +++ b/docs/sdk/connect/interfaces/types.EncodedTransaction.md @@ -19,14 +19,14 @@ #### Defined in -[packages/sdk/connect/src/types.ts:123](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L123) +[packages/sdk/connect/src/types.ts:89](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L89) ___ ### tx -• **tx**: [`EIP1559TXProperties`](types.EIP1559TXProperties.md) \| [`CIP64TXProperties`](types.CIP64TXProperties.md) \| [`CIP42TXProperties`](types.CIP42TXProperties.md) \| [`LegacyTXProperties`](types.LegacyTXProperties.md) \| [`EthereumLegacyTXProperties`](types.EthereumLegacyTXProperties.md) +• **tx**: [`EIP1559TXProperties`](types.EIP1559TXProperties.md) \| [`CIP64TXProperties`](types.CIP64TXProperties.md) \| [`EthereumLegacyTXProperties`](types.EthereumLegacyTXProperties.md) #### Defined in -[packages/sdk/connect/src/types.ts:124](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L124) +[packages/sdk/connect/src/types.ts:90](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L90) diff --git a/docs/sdk/connect/interfaces/types.Error.md b/docs/sdk/connect/interfaces/types.Error.md index f102652fe..c704cc0f6 100644 --- a/docs/sdk/connect/interfaces/types.Error.md +++ b/docs/sdk/connect/interfaces/types.Error.md @@ -20,7 +20,7 @@ #### Defined in -[packages/sdk/connect/src/types.ts:163](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L163) +[packages/sdk/connect/src/types.ts:124](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L124) ___ @@ -30,7 +30,7 @@ ___ #### Defined in -[packages/sdk/connect/src/types.ts:164](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L164) +[packages/sdk/connect/src/types.ts:125](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L125) ___ @@ -40,4 +40,4 @@ ___ #### Defined in -[packages/sdk/connect/src/types.ts:165](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L165) +[packages/sdk/connect/src/types.ts:126](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L126) diff --git a/docs/sdk/connect/interfaces/types.EthereumLegacyTXProperties.md b/docs/sdk/connect/interfaces/types.EthereumLegacyTXProperties.md index 59888e8e6..c208852bb 100644 --- a/docs/sdk/connect/interfaces/types.EthereumLegacyTXProperties.md +++ b/docs/sdk/connect/interfaces/types.EthereumLegacyTXProperties.md @@ -38,7 +38,7 @@ CommonTXProperties.gas #### Defined in -[packages/sdk/connect/src/types.ts:73](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L73) +[packages/sdk/connect/src/types.ts:57](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L57) ___ @@ -48,7 +48,7 @@ ___ #### Defined in -[packages/sdk/connect/src/types.ts:118](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L118) +[packages/sdk/connect/src/types.ts:84](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L84) ___ @@ -62,7 +62,7 @@ CommonTXProperties.hash #### Defined in -[packages/sdk/connect/src/types.ts:80](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L80) +[packages/sdk/connect/src/types.ts:64](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L64) ___ @@ -76,7 +76,7 @@ CommonTXProperties.input #### Defined in -[packages/sdk/connect/src/types.ts:76](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L76) +[packages/sdk/connect/src/types.ts:60](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L60) ___ @@ -90,7 +90,7 @@ CommonTXProperties.nonce #### Defined in -[packages/sdk/connect/src/types.ts:72](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L72) +[packages/sdk/connect/src/types.ts:56](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L56) ___ @@ -104,7 +104,7 @@ CommonTXProperties.r #### Defined in -[packages/sdk/connect/src/types.ts:77](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L77) +[packages/sdk/connect/src/types.ts:61](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L61) ___ @@ -118,7 +118,7 @@ CommonTXProperties.s #### Defined in -[packages/sdk/connect/src/types.ts:78](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L78) +[packages/sdk/connect/src/types.ts:62](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L62) ___ @@ -132,7 +132,7 @@ CommonTXProperties.to #### Defined in -[packages/sdk/connect/src/types.ts:74](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L74) +[packages/sdk/connect/src/types.ts:58](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L58) ___ @@ -146,7 +146,7 @@ CommonTXProperties.type #### Defined in -[packages/sdk/connect/src/types.ts:119](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L119) +[packages/sdk/connect/src/types.ts:85](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L85) ___ @@ -160,7 +160,7 @@ CommonTXProperties.v #### Defined in -[packages/sdk/connect/src/types.ts:79](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L79) +[packages/sdk/connect/src/types.ts:63](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L63) ___ @@ -174,4 +174,4 @@ CommonTXProperties.value #### Defined in -[packages/sdk/connect/src/types.ts:75](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L75) +[packages/sdk/connect/src/types.ts:59](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L59) diff --git a/docs/sdk/connect/interfaces/types.FormattedCeloTx.md b/docs/sdk/connect/interfaces/types.FormattedCeloTx.md index 7bfe46be4..a72d9418a 100644 --- a/docs/sdk/connect/interfaces/types.FormattedCeloTx.md +++ b/docs/sdk/connect/interfaces/types.FormattedCeloTx.md @@ -15,8 +15,6 @@ - [from](types.FormattedCeloTx.md#from) - [gas](types.FormattedCeloTx.md#gas) - [gasPrice](types.FormattedCeloTx.md#gasprice) -- [gatewayFee](types.FormattedCeloTx.md#gatewayfee) -- [gatewayFeeRecipient](types.FormattedCeloTx.md#gatewayfeerecipient) - [maxFeePerGas](types.FormattedCeloTx.md#maxfeepergas) - [maxPriorityFeePerGas](types.FormattedCeloTx.md#maxpriorityfeepergas) - [nonce](types.FormattedCeloTx.md#nonce) @@ -32,7 +30,7 @@ #### Defined in -[packages/sdk/connect/src/types.ts:48](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L48) +[packages/sdk/connect/src/types.ts:32](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L32) ___ @@ -42,7 +40,7 @@ ___ #### Defined in -[packages/sdk/connect/src/types.ts:29](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L29) +[packages/sdk/connect/src/types.ts:21](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L21) ___ @@ -52,7 +50,7 @@ ___ #### Defined in -[packages/sdk/connect/src/types.ts:32](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L32) +[packages/sdk/connect/src/types.ts:24](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L24) ___ @@ -62,7 +60,7 @@ ___ #### Defined in -[packages/sdk/connect/src/types.ts:34](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L34) +[packages/sdk/connect/src/types.ts:26](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L26) ___ @@ -72,7 +70,7 @@ ___ #### Defined in -[packages/sdk/connect/src/types.ts:30](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L30) +[packages/sdk/connect/src/types.ts:22](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L22) ___ @@ -82,7 +80,7 @@ ___ #### Defined in -[packages/sdk/connect/src/types.ts:43](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L43) +[packages/sdk/connect/src/types.ts:27](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L27) ___ @@ -92,27 +90,7 @@ ___ #### Defined in -[packages/sdk/connect/src/types.ts:44](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L44) - -___ - -### gatewayFee - -• `Optional` **gatewayFee**: [`HexOrMissing`](../modules/types.md#hexormissing) - -#### Defined in - -[packages/sdk/connect/src/types.ts:42](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L42) - -___ - -### gatewayFeeRecipient - -• `Optional` **gatewayFeeRecipient**: [`HexOrMissing`](../modules/types.md#hexormissing) - -#### Defined in - -[packages/sdk/connect/src/types.ts:38](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L38) +[packages/sdk/connect/src/types.ts:28](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L28) ___ @@ -122,7 +100,7 @@ ___ #### Defined in -[packages/sdk/connect/src/types.ts:45](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L45) +[packages/sdk/connect/src/types.ts:29](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L29) ___ @@ -132,7 +110,7 @@ ___ #### Defined in -[packages/sdk/connect/src/types.ts:46](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L46) +[packages/sdk/connect/src/types.ts:30](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L30) ___ @@ -142,7 +120,7 @@ ___ #### Defined in -[packages/sdk/connect/src/types.ts:47](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L47) +[packages/sdk/connect/src/types.ts:31](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L31) ___ @@ -152,7 +130,7 @@ ___ #### Defined in -[packages/sdk/connect/src/types.ts:31](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L31) +[packages/sdk/connect/src/types.ts:23](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L23) ___ @@ -162,7 +140,7 @@ ___ #### Defined in -[packages/sdk/connect/src/types.ts:49](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L49) +[packages/sdk/connect/src/types.ts:33](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L33) ___ @@ -172,4 +150,4 @@ ___ #### Defined in -[packages/sdk/connect/src/types.ts:33](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L33) +[packages/sdk/connect/src/types.ts:25](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L25) diff --git a/docs/sdk/connect/interfaces/types.HttpProvider.md b/docs/sdk/connect/interfaces/types.HttpProvider.md index f86143f67..f61622935 100644 --- a/docs/sdk/connect/interfaces/types.HttpProvider.md +++ b/docs/sdk/connect/interfaces/types.HttpProvider.md @@ -29,4 +29,4 @@ #### Defined in -[packages/sdk/connect/src/types.ts:169](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L169) +[packages/sdk/connect/src/types.ts:130](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L130) diff --git a/docs/sdk/connect/interfaces/types.JsonRpcPayload.md b/docs/sdk/connect/interfaces/types.JsonRpcPayload.md index 9a24e5599..f31b5a1a9 100644 --- a/docs/sdk/connect/interfaces/types.JsonRpcPayload.md +++ b/docs/sdk/connect/interfaces/types.JsonRpcPayload.md @@ -21,7 +21,7 @@ #### Defined in -[packages/sdk/connect/src/types.ts:152](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L152) +[packages/sdk/connect/src/types.ts:113](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L113) ___ @@ -31,7 +31,7 @@ ___ #### Defined in -[packages/sdk/connect/src/types.ts:149](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L149) +[packages/sdk/connect/src/types.ts:110](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L110) ___ @@ -41,7 +41,7 @@ ___ #### Defined in -[packages/sdk/connect/src/types.ts:150](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L150) +[packages/sdk/connect/src/types.ts:111](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L111) ___ @@ -51,4 +51,4 @@ ___ #### Defined in -[packages/sdk/connect/src/types.ts:151](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L151) +[packages/sdk/connect/src/types.ts:112](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L112) diff --git a/docs/sdk/connect/interfaces/types.JsonRpcResponse.md b/docs/sdk/connect/interfaces/types.JsonRpcResponse.md index 652c409f9..f6625be20 100644 --- a/docs/sdk/connect/interfaces/types.JsonRpcResponse.md +++ b/docs/sdk/connect/interfaces/types.JsonRpcResponse.md @@ -29,7 +29,7 @@ #### Defined in -[packages/sdk/connect/src/types.ts:141](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L141) +[packages/sdk/connect/src/types.ts:102](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L102) ___ @@ -39,7 +39,7 @@ ___ #### Defined in -[packages/sdk/connect/src/types.ts:139](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L139) +[packages/sdk/connect/src/types.ts:100](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L100) ___ @@ -49,7 +49,7 @@ ___ #### Defined in -[packages/sdk/connect/src/types.ts:138](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L138) +[packages/sdk/connect/src/types.ts:99](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L99) ___ @@ -59,4 +59,4 @@ ___ #### Defined in -[packages/sdk/connect/src/types.ts:140](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L140) +[packages/sdk/connect/src/types.ts:101](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L101) diff --git a/docs/sdk/connect/interfaces/types.LegacyTXProperties.md b/docs/sdk/connect/interfaces/types.LegacyTXProperties.md deleted file mode 100644 index 3aab3f0af..000000000 --- a/docs/sdk/connect/interfaces/types.LegacyTXProperties.md +++ /dev/null @@ -1,210 +0,0 @@ -[@celo/connect](../README.md) / [Exports](../modules.md) / [types](../modules/types.md) / LegacyTXProperties - -# Interface: LegacyTXProperties - -[types](../modules/types.md).LegacyTXProperties - -## Hierarchy - -- `CommonTXProperties` - - ↳ **`LegacyTXProperties`** - -## Table of contents - -### Properties - -- [feeCurrency](types.LegacyTXProperties.md#feecurrency) -- [gas](types.LegacyTXProperties.md#gas) -- [gasPrice](types.LegacyTXProperties.md#gasprice) -- [gatewayFee](types.LegacyTXProperties.md#gatewayfee) -- [gatewayFeeRecipient](types.LegacyTXProperties.md#gatewayfeerecipient) -- [hash](types.LegacyTXProperties.md#hash) -- [input](types.LegacyTXProperties.md#input) -- [nonce](types.LegacyTXProperties.md#nonce) -- [r](types.LegacyTXProperties.md#r) -- [s](types.LegacyTXProperties.md#s) -- [to](types.LegacyTXProperties.md#to) -- [type](types.LegacyTXProperties.md#type) -- [v](types.LegacyTXProperties.md#v) -- [value](types.LegacyTXProperties.md#value) - -## Properties - -### feeCurrency - -• **feeCurrency**: `string` - -#### Defined in - -[packages/sdk/connect/src/types.ts:111](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L111) - -___ - -### gas - -• **gas**: `string` - -#### Inherited from - -CommonTXProperties.gas - -#### Defined in - -[packages/sdk/connect/src/types.ts:73](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L73) - -___ - -### gasPrice - -• **gasPrice**: `string` - -#### Defined in - -[packages/sdk/connect/src/types.ts:110](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L110) - -___ - -### gatewayFee - -• **gatewayFee**: `string` - -#### Defined in - -[packages/sdk/connect/src/types.ts:113](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L113) - -___ - -### gatewayFeeRecipient - -• **gatewayFeeRecipient**: `string` - -#### Defined in - -[packages/sdk/connect/src/types.ts:112](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L112) - -___ - -### hash - -• **hash**: `string` - -#### Inherited from - -CommonTXProperties.hash - -#### Defined in - -[packages/sdk/connect/src/types.ts:80](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L80) - -___ - -### input - -• **input**: `string` - -#### Inherited from - -CommonTXProperties.input - -#### Defined in - -[packages/sdk/connect/src/types.ts:76](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L76) - -___ - -### nonce - -• **nonce**: `string` - -#### Inherited from - -CommonTXProperties.nonce - -#### Defined in - -[packages/sdk/connect/src/types.ts:72](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L72) - -___ - -### r - -• **r**: `string` - -#### Inherited from - -CommonTXProperties.r - -#### Defined in - -[packages/sdk/connect/src/types.ts:77](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L77) - -___ - -### s - -• **s**: `string` - -#### Inherited from - -CommonTXProperties.s - -#### Defined in - -[packages/sdk/connect/src/types.ts:78](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L78) - -___ - -### to - -• **to**: `string` - -#### Inherited from - -CommonTXProperties.to - -#### Defined in - -[packages/sdk/connect/src/types.ts:74](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L74) - -___ - -### type - -• **type**: ``"celo-legacy"`` - -#### Overrides - -CommonTXProperties.type - -#### Defined in - -[packages/sdk/connect/src/types.ts:114](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L114) - -___ - -### v - -• **v**: `string` - -#### Inherited from - -CommonTXProperties.v - -#### Defined in - -[packages/sdk/connect/src/types.ts:79](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L79) - -___ - -### value - -• **value**: `string` - -#### Inherited from - -CommonTXProperties.value - -#### Defined in - -[packages/sdk/connect/src/types.ts:75](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L75) diff --git a/docs/sdk/connect/interfaces/types.Provider.md b/docs/sdk/connect/interfaces/types.Provider.md index 3180d38c8..793923add 100644 --- a/docs/sdk/connect/interfaces/types.Provider.md +++ b/docs/sdk/connect/interfaces/types.Provider.md @@ -33,4 +33,4 @@ #### Defined in -[packages/sdk/connect/src/types.ts:156](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L156) +[packages/sdk/connect/src/types.ts:117](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L117) diff --git a/docs/sdk/connect/interfaces/types.RLPEncodedTx.md b/docs/sdk/connect/interfaces/types.RLPEncodedTx.md index cff733224..b5a150630 100644 --- a/docs/sdk/connect/interfaces/types.RLPEncodedTx.md +++ b/docs/sdk/connect/interfaces/types.RLPEncodedTx.md @@ -20,7 +20,7 @@ #### Defined in -[packages/sdk/connect/src/types.ts:177](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L177) +[packages/sdk/connect/src/types.ts:138](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L138) ___ @@ -30,7 +30,7 @@ ___ #### Defined in -[packages/sdk/connect/src/types.ts:176](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L176) +[packages/sdk/connect/src/types.ts:137](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L137) ___ @@ -40,4 +40,4 @@ ___ #### Defined in -[packages/sdk/connect/src/types.ts:178](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L178) +[packages/sdk/connect/src/types.ts:139](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L139) diff --git a/docs/sdk/connect/modules/index.md b/docs/sdk/connect/modules/index.md index 5339b7626..d110a219a 100644 --- a/docs/sdk/connect/modules/index.md +++ b/docs/sdk/connect/modules/index.md @@ -14,7 +14,6 @@ - [AbiOutput](index.md#abioutput) - [AccessListRaw](index.md#accesslistraw) - [Address](index.md#address) -- [CIP42TXProperties](index.md#cip42txproperties) - [CIP64TXProperties](index.md#cip64txproperties) - [Callback](index.md#callback) - [CeloParams](index.md#celoparams) @@ -40,7 +39,6 @@ - [HttpRpcCaller](index.md#httprpccaller) - [JsonRpcPayload](index.md#jsonrpcpayload) - [JsonRpcResponse](index.md#jsonrpcresponse) -- [LegacyTXProperties](index.md#legacytxproperties) - [PROXY\_ADMIN\_ADDRESS](index.md#proxy_admin_address) - [Provider](index.md#provider) - [RLPEncodedTx](index.md#rlpencodedtx) @@ -49,6 +47,7 @@ - [Signer](index.md#signer) - [TransactionResult](index.md#transactionresult) - [TransactionTypes](index.md#transactiontypes) +- [WithSig](index.md#withsig) - [decodeStringParameter](index.md#decodestringparameter) - [getAbiByName](index.md#getabibyname) - [getRandomId](index.md#getrandomid) @@ -130,12 +129,6 @@ Re-exports [Address](types.md#address) ___ -### CIP42TXProperties - -Re-exports [CIP42TXProperties](../interfaces/types.CIP42TXProperties.md) - -___ - ### CIP64TXProperties Re-exports [CIP64TXProperties](../interfaces/types.CIP64TXProperties.md) @@ -286,12 +279,6 @@ Re-exports [JsonRpcResponse](../interfaces/types.JsonRpcResponse.md) ___ -### LegacyTXProperties - -Re-exports [LegacyTXProperties](../interfaces/types.LegacyTXProperties.md) - -___ - ### PROXY\_ADMIN\_ADDRESS Re-exports [PROXY_ADMIN_ADDRESS](utils_is_cel2.md#proxy_admin_address) @@ -340,6 +327,12 @@ Re-exports [TransactionTypes](types.md#transactiontypes) ___ +### WithSig + +Re-exports [WithSig](types.md#withsig) + +___ + ### decodeStringParameter Re-exports [decodeStringParameter](utils_abi_utils.md#decodestringparameter) @@ -406,4 +399,4 @@ Re-exports [toTxResult](utils_tx_result.md#totxresult) #### Defined in -node_modules/web3-core/types/index.d.ts:442 +packages/sdk/connect/node_modules/web3-core/types/index.d.ts:442 diff --git a/docs/sdk/connect/modules/types.md b/docs/sdk/connect/modules/types.md index 6341015d1..4a646de8d 100644 --- a/docs/sdk/connect/modules/types.md +++ b/docs/sdk/connect/modules/types.md @@ -20,7 +20,6 @@ ### Interfaces -- [CIP42TXProperties](../interfaces/types.CIP42TXProperties.md) - [CIP64TXProperties](../interfaces/types.CIP64TXProperties.md) - [CeloParams](../interfaces/types.CeloParams.md) - [CeloTxObject](../interfaces/types.CeloTxObject.md) @@ -32,7 +31,6 @@ - [HttpProvider](../interfaces/types.HttpProvider.md) - [JsonRpcPayload](../interfaces/types.JsonRpcPayload.md) - [JsonRpcResponse](../interfaces/types.JsonRpcResponse.md) -- [LegacyTXProperties](../interfaces/types.LegacyTXProperties.md) - [Provider](../interfaces/types.Provider.md) - [RLPEncodedTx](../interfaces/types.RLPEncodedTx.md) @@ -48,6 +46,7 @@ - [Hex](types.md#hex) - [HexOrMissing](types.md#hexormissing) - [TransactionTypes](types.md#transactiontypes) +- [WithSig](types.md#withsig) ## References @@ -123,7 +122,7 @@ Re-exports [Syncing](../interfaces/index.Syncing.md) #### Defined in -[packages/sdk/connect/src/types.ts:25](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L25) +[packages/sdk/connect/src/types.ts:17](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L17) ___ @@ -164,7 +163,7 @@ ___ #### Defined in -[packages/sdk/connect/src/types.ts:135](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L135) +[packages/sdk/connect/src/types.ts:96](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L96) ___ @@ -174,7 +173,7 @@ ___ #### Defined in -[packages/sdk/connect/src/types.ts:52](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L52) +[packages/sdk/connect/src/types.ts:36](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L36) ___ @@ -184,7 +183,7 @@ ___ #### Defined in -[packages/sdk/connect/src/types.ts:132](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L132) +[packages/sdk/connect/src/types.ts:93](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L93) ___ @@ -194,17 +193,17 @@ ___ #### Defined in -[packages/sdk/connect/src/types.ts:133](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L133) +[packages/sdk/connect/src/types.ts:94](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L94) ___ ### CeloTxWithSig -Ƭ **CeloTxWithSig**: [`CeloTx`](types.md#celotx) & \{ `r`: `string` ; `s`: `string` ; `v`: `number` ; `yParity`: ``0`` \| ``1`` } +Ƭ **CeloTxWithSig**: [`WithSig`](types.md#withsig)\<[`CeloTx`](types.md#celotx)\> #### Defined in -[packages/sdk/connect/src/types.ts:55](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L55) +[packages/sdk/connect/src/types.ts:39](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L39) ___ @@ -224,14 +223,30 @@ ___ #### Defined in -[packages/sdk/connect/src/types.ts:27](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L27) +[packages/sdk/connect/src/types.ts:19](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L19) ___ ### TransactionTypes -Ƭ **TransactionTypes**: ``"ethereum-legacy"`` \| ``"eip1559"`` \| ``"celo-legacy"`` \| ``"cip42"`` \| ``"cip64"`` +Ƭ **TransactionTypes**: ``"ethereum-legacy"`` \| ``"eip1559"`` \| ``"cip64"`` #### Defined in -[packages/sdk/connect/src/types.ts:69](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L69) +[packages/sdk/connect/src/types.ts:53](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L53) + +___ + +### WithSig + +Ƭ **WithSig**\<`T`\>: `T` & \{ `r`: `string` ; `s`: `string` ; `v`: `number` ; `yParity`: ``0`` \| ``1`` } + +#### Type parameters + +| Name | +| :------ | +| `T` | + +#### Defined in + +[packages/sdk/connect/src/types.ts:38](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L38) diff --git a/docs/sdk/connect/modules/utils_formatter.md b/docs/sdk/connect/modules/utils_formatter.md index 5a9133988..f6a98a536 100644 --- a/docs/sdk/connect/modules/utils_formatter.md +++ b/docs/sdk/connect/modules/utils_formatter.md @@ -39,7 +39,7 @@ #### Defined in -[packages/sdk/connect/src/utils/formatter.ts:223](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/utils/formatter.ts#L223) +[packages/sdk/connect/src/utils/formatter.ts:207](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/utils/formatter.ts#L207) ___ @@ -59,7 +59,7 @@ ___ #### Defined in -[packages/sdk/connect/src/utils/formatter.ts:303](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/utils/formatter.ts#L303) +[packages/sdk/connect/src/utils/formatter.ts:287](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/utils/formatter.ts#L287) ___ @@ -79,7 +79,7 @@ ___ #### Defined in -[packages/sdk/connect/src/utils/formatter.ts:320](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/utils/formatter.ts#L320) +[packages/sdk/connect/src/utils/formatter.ts:304](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/utils/formatter.ts#L304) ___ @@ -99,7 +99,7 @@ ___ #### Defined in -[packages/sdk/connect/src/utils/formatter.ts:168](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/utils/formatter.ts#L168) +[packages/sdk/connect/src/utils/formatter.ts:152](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/utils/formatter.ts#L152) ___ @@ -141,7 +141,7 @@ ___ #### Defined in -[packages/sdk/connect/src/utils/formatter.ts:160](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/utils/formatter.ts#L160) +[packages/sdk/connect/src/utils/formatter.ts:144](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/utils/formatter.ts#L144) ___ @@ -161,7 +161,7 @@ ___ #### Defined in -[packages/sdk/connect/src/utils/formatter.ts:330](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/utils/formatter.ts#L330) +[packages/sdk/connect/src/utils/formatter.ts:314](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/utils/formatter.ts#L314) ___ @@ -181,7 +181,7 @@ ___ #### Defined in -[packages/sdk/connect/src/utils/formatter.ts:264](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/utils/formatter.ts#L264) +[packages/sdk/connect/src/utils/formatter.ts:248](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/utils/formatter.ts#L248) ___ @@ -201,7 +201,7 @@ ___ #### Defined in -[packages/sdk/connect/src/utils/formatter.ts:202](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/utils/formatter.ts#L202) +[packages/sdk/connect/src/utils/formatter.ts:186](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/utils/formatter.ts#L186) ___ @@ -221,7 +221,7 @@ ___ #### Defined in -[packages/sdk/connect/src/utils/formatter.ts:187](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/utils/formatter.ts#L187) +[packages/sdk/connect/src/utils/formatter.ts:171](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/utils/formatter.ts#L171) ___ @@ -241,7 +241,7 @@ ___ #### Defined in -[packages/sdk/connect/src/utils/formatter.ts:85](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/utils/formatter.ts#L85) +[packages/sdk/connect/src/utils/formatter.ts:77](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/utils/formatter.ts#L77) ___ @@ -261,7 +261,7 @@ ___ #### Defined in -[packages/sdk/connect/src/utils/formatter.ts:131](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/utils/formatter.ts#L131) +[packages/sdk/connect/src/utils/formatter.ts:115](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/utils/formatter.ts#L115) ___ @@ -281,7 +281,7 @@ ___ #### Defined in -[packages/sdk/connect/src/utils/formatter.ts:230](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/utils/formatter.ts#L230) +[packages/sdk/connect/src/utils/formatter.ts:214](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/utils/formatter.ts#L214) ___ @@ -301,4 +301,4 @@ ___ #### Defined in -[packages/sdk/connect/src/utils/formatter.ts:272](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/utils/formatter.ts#L272) +[packages/sdk/connect/src/utils/formatter.ts:256](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/utils/formatter.ts#L256) diff --git a/docs/sdk/contractkit/classes/address_registry.UnregisteredError.md b/docs/sdk/contractkit/classes/address_registry.UnregisteredError.md index b40af2164..137bb33ad 100644 --- a/docs/sdk/contractkit/classes/address_registry.UnregisteredError.md +++ b/docs/sdk/contractkit/classes/address_registry.UnregisteredError.md @@ -133,7 +133,7 @@ Error.prepareStackTrace #### Defined in -node_modules/@types/node/globals.d.ts:11 +packages/sdk/contractkit/node_modules/@types/node/globals.d.ts:11 ___ @@ -147,7 +147,7 @@ Error.stackTraceLimit #### Defined in -node_modules/@types/node/globals.d.ts:13 +packages/sdk/contractkit/node_modules/@types/node/globals.d.ts:13 ## Methods @@ -174,4 +174,4 @@ Error.captureStackTrace #### Defined in -node_modules/@types/node/globals.d.ts:4 +packages/sdk/contractkit/node_modules/@types/node/globals.d.ts:4 diff --git a/docs/sdk/contractkit/classes/wrappers_FeeCurrencyWhitelistWrapper.FeeCurrencyWhitelistWrapper.md b/docs/sdk/contractkit/classes/wrappers_FeeCurrencyWhitelistWrapper.FeeCurrencyWhitelistWrapper.md index 475c88fe8..19dcd4472 100644 --- a/docs/sdk/contractkit/classes/wrappers_FeeCurrencyWhitelistWrapper.FeeCurrencyWhitelistWrapper.md +++ b/docs/sdk/contractkit/classes/wrappers_FeeCurrencyWhitelistWrapper.FeeCurrencyWhitelistWrapper.md @@ -84,7 +84,7 @@ FeeCurrencyWhitelist contract listing available currencies usable to pay fees #### Defined in -[packages/sdk/contractkit/src/wrappers/FeeCurrencyWhitelistWrapper.ts:78](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/wrappers/FeeCurrencyWhitelistWrapper.ts#L78) +[packages/sdk/contractkit/src/wrappers/FeeCurrencyWhitelistWrapper.ts:91](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/wrappers/FeeCurrencyWhitelistWrapper.ts#L91) ___ @@ -145,7 +145,7 @@ ___ #### Defined in -[packages/sdk/contractkit/src/wrappers/FeeCurrencyWhitelistWrapper.ts:34](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/wrappers/FeeCurrencyWhitelistWrapper.ts#L34) +[packages/sdk/contractkit/src/wrappers/FeeCurrencyWhitelistWrapper.ts:41](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/wrappers/FeeCurrencyWhitelistWrapper.ts#L41) ___ @@ -183,7 +183,7 @@ ___ #### Defined in -[packages/sdk/contractkit/src/wrappers/FeeCurrencyWhitelistWrapper.ts:77](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/wrappers/FeeCurrencyWhitelistWrapper.ts#L77) +[packages/sdk/contractkit/src/wrappers/FeeCurrencyWhitelistWrapper.ts:90](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/wrappers/FeeCurrencyWhitelistWrapper.ts#L90) ## Accessors @@ -209,7 +209,7 @@ BaseWrapper.address ### getFeeCurrencyInformation -▸ **getFeeCurrencyInformation**(`whitelist?`): `Promise`\<\{ `adaptedToken`: `undefined` \| \`0x$\{string}\` ; `address`: \`0x$\{string}\` ; `name`: `undefined` \| `string` ; `symbol`: `undefined` \| `string` }[]\> +▸ **getFeeCurrencyInformation**(`whitelist?`): `Promise`\<\{ `adaptedToken`: `undefined` \| \`0x$\{string}\` ; `address`: \`0x$\{string}\` ; `decimals`: `undefined` \| `number` ; `name`: `undefined` \| `string` ; `symbol`: `undefined` \| `string` }[]\> #### Parameters @@ -219,11 +219,11 @@ BaseWrapper.address #### Returns -`Promise`\<\{ `adaptedToken`: `undefined` \| \`0x$\{string}\` ; `address`: \`0x$\{string}\` ; `name`: `undefined` \| `string` ; `symbol`: `undefined` \| `string` }[]\> +`Promise`\<\{ `adaptedToken`: `undefined` \| \`0x$\{string}\` ; `address`: \`0x$\{string}\` ; `decimals`: `undefined` \| `number` ; `name`: `undefined` \| `string` ; `symbol`: `undefined` \| `string` }[]\> #### Defined in -[packages/sdk/contractkit/src/wrappers/FeeCurrencyWhitelistWrapper.ts:40](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/wrappers/FeeCurrencyWhitelistWrapper.ts#L40) +[packages/sdk/contractkit/src/wrappers/FeeCurrencyWhitelistWrapper.ts:47](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/wrappers/FeeCurrencyWhitelistWrapper.ts#L47) ___ diff --git a/docs/sdk/contractkit/modules/globals.md b/docs/sdk/contractkit/modules/globals.md index 2c6ef491c..3d79f4461 100644 --- a/docs/sdk/contractkit/modules/globals.md +++ b/docs/sdk/contractkit/modules/globals.md @@ -12,8 +12,8 @@ ### fetchMock -• `Const` **fetchMock**: `any` +• `Const` **fetchMock**: `FetchMockSandbox` #### Defined in -[packages/sdk/contractkit/src/globals.d.ts:1](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/globals.d.ts#L1) +[packages/sdk/contractkit/src/globals.d.ts:5](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/globals.d.ts#L5) diff --git a/docs/sdk/contractkit/modules/wrappers_FeeCurrencyWhitelistWrapper.md b/docs/sdk/contractkit/modules/wrappers_FeeCurrencyWhitelistWrapper.md index 4430ded0f..85ff6ac49 100644 --- a/docs/sdk/contractkit/modules/wrappers_FeeCurrencyWhitelistWrapper.md +++ b/docs/sdk/contractkit/modules/wrappers_FeeCurrencyWhitelistWrapper.md @@ -20,4 +20,4 @@ #### Defined in -[packages/sdk/contractkit/src/wrappers/FeeCurrencyWhitelistWrapper.ts:81](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/wrappers/FeeCurrencyWhitelistWrapper.ts#L81) +[packages/sdk/contractkit/src/wrappers/FeeCurrencyWhitelistWrapper.ts:94](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/wrappers/FeeCurrencyWhitelistWrapper.ts#L94) diff --git a/docs/sdk/explorer/classes/block_explorer.BlockExplorer.md b/docs/sdk/explorer/classes/block_explorer.BlockExplorer.md index 4b8d4ecb0..e2f65c432 100644 --- a/docs/sdk/explorer/classes/block_explorer.BlockExplorer.md +++ b/docs/sdk/explorer/classes/block_explorer.BlockExplorer.md @@ -53,7 +53,7 @@ #### Defined in -[src/block-explorer.ts:68](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L68) +[block-explorer.ts:68](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L68) ## Properties @@ -63,7 +63,7 @@ #### Defined in -[src/block-explorer.ts:68](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L68) +[block-explorer.ts:68](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L68) ## Methods @@ -85,7 +85,7 @@ #### Defined in -[src/block-explorer.ts:267](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L267) +[block-explorer.ts:267](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L267) ___ @@ -105,7 +105,7 @@ ___ #### Defined in -[src/block-explorer.ts:94](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L94) +[block-explorer.ts:94](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L94) ___ @@ -125,7 +125,7 @@ ___ #### Defined in -[src/block-explorer.ts:91](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L91) +[block-explorer.ts:91](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L91) ___ @@ -146,7 +146,7 @@ ___ #### Defined in -[src/block-explorer.ts:98](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L98) +[block-explorer.ts:98](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L98) ___ @@ -171,7 +171,7 @@ The ContractMapping for the contract at that address, or undefined #### Defined in -[src/block-explorer.ts:305](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L305) +[block-explorer.ts:305](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L305) ___ @@ -196,7 +196,7 @@ The ContractMapping for the contract at that address, or undefined #### Defined in -[src/block-explorer.ts:315](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L315) +[block-explorer.ts:315](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L315) ___ @@ -227,7 +227,7 @@ The ContractMapping for the contract at that address, or undefined #### Defined in -[src/block-explorer.ts:345](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L345) +[block-explorer.ts:345](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L345) ___ @@ -254,7 +254,7 @@ The ContractMapping for the contract which has the function selector, or undefin #### Defined in -[src/block-explorer.ts:374](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L374) +[block-explorer.ts:374](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L374) ___ @@ -284,7 +284,7 @@ the contract address either in all possible contract mappings. #### Defined in -[src/block-explorer.ts:175](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L175) +[block-explorer.ts:175](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L175) ___ @@ -313,7 +313,7 @@ the selector in a list of known functions. #### Defined in -[src/block-explorer.ts:247](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L247) +[block-explorer.ts:247](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L247) ___ @@ -339,7 +339,7 @@ The contract name and ABI of the method or null if not found #### Defined in -[src/block-explorer.ts:199](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L199) +[block-explorer.ts:199](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L199) ___ @@ -368,7 +368,7 @@ the contract address in Sourcify. #### Defined in -[src/block-explorer.ts:222](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L222) +[block-explorer.ts:222](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L222) ___ @@ -388,7 +388,7 @@ ___ #### Defined in -[src/block-explorer.ts:106](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L106) +[block-explorer.ts:106](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L106) ___ @@ -409,7 +409,7 @@ ___ #### Defined in -[src/block-explorer.ts:86](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L86) +[block-explorer.ts:86](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L86) ___ @@ -429,7 +429,7 @@ ___ #### Defined in -[src/block-explorer.ts:123](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L123) +[block-explorer.ts:123](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L123) ___ @@ -450,7 +450,7 @@ ___ #### Defined in -[src/block-explorer.ts:135](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L135) +[block-explorer.ts:135](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L135) ___ @@ -471,4 +471,4 @@ ___ #### Defined in -[src/block-explorer.ts:76](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L76) +[block-explorer.ts:76](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L76) diff --git a/docs/sdk/explorer/classes/log_explorer.LogExplorer.md b/docs/sdk/explorer/classes/log_explorer.LogExplorer.md index 9f034fc35..d627e433b 100644 --- a/docs/sdk/explorer/classes/log_explorer.LogExplorer.md +++ b/docs/sdk/explorer/classes/log_explorer.LogExplorer.md @@ -39,7 +39,7 @@ #### Defined in -[src/log-explorer.ts:17](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/log-explorer.ts#L17) +[log-explorer.ts:17](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/log-explorer.ts#L17) ## Properties @@ -49,7 +49,7 @@ #### Defined in -[src/log-explorer.ts:17](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/log-explorer.ts#L17) +[log-explorer.ts:17](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/log-explorer.ts#L17) ## Methods @@ -69,7 +69,7 @@ #### Defined in -[src/log-explorer.ts:47](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/log-explorer.ts#L47) +[log-explorer.ts:47](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/log-explorer.ts#L47) ___ @@ -89,7 +89,7 @@ ___ #### Defined in -[src/log-explorer.ts:51](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/log-explorer.ts#L51) +[log-explorer.ts:51](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/log-explorer.ts#L51) ___ @@ -109,4 +109,4 @@ ___ #### Defined in -[src/log-explorer.ts:62](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/log-explorer.ts#L62) +[log-explorer.ts:62](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/log-explorer.ts#L62) diff --git a/docs/sdk/explorer/classes/sourcify.Metadata.md b/docs/sdk/explorer/classes/sourcify.Metadata.md index d59bcdd75..e9c860c75 100644 --- a/docs/sdk/explorer/classes/sourcify.Metadata.md +++ b/docs/sdk/explorer/classes/sourcify.Metadata.md @@ -50,7 +50,7 @@ light runtime verification. #### Defined in -[src/sourcify.ts:73](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/sourcify.ts#L73) +[sourcify.ts:73](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/sourcify.ts#L73) ## Properties @@ -60,7 +60,7 @@ light runtime verification. #### Defined in -[src/sourcify.ts:65](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/sourcify.ts#L65) +[sourcify.ts:65](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/sourcify.ts#L65) ___ @@ -70,7 +70,7 @@ ___ #### Defined in -[src/sourcify.ts:66](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/sourcify.ts#L66) +[sourcify.ts:66](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/sourcify.ts#L66) ___ @@ -80,7 +80,7 @@ ___ #### Defined in -[src/sourcify.ts:67](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/sourcify.ts#L67) +[sourcify.ts:67](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/sourcify.ts#L67) ## Accessors @@ -100,7 +100,7 @@ ___ #### Defined in -[src/sourcify.ts:83](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/sourcify.ts#L83) +[sourcify.ts:83](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/sourcify.ts#L83) ## Methods @@ -127,7 +127,7 @@ and array of AbiItems matching the query #### Defined in -[src/sourcify.ts:152](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/sourcify.ts#L152) +[sourcify.ts:152](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/sourcify.ts#L152) ___ @@ -151,7 +151,7 @@ an AbiItem if found or null #### Defined in -[src/sourcify.ts:136](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/sourcify.ts#L136) +[sourcify.ts:136](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/sourcify.ts#L136) ___ @@ -167,4 +167,4 @@ Turn the ABI into a mapping of function selectors to ABI items. #### Defined in -[src/sourcify.ts:119](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/sourcify.ts#L119) +[sourcify.ts:119](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/sourcify.ts#L119) diff --git a/docs/sdk/explorer/interfaces/base.ContractDetails.md b/docs/sdk/explorer/interfaces/base.ContractDetails.md index 61fd6bf0f..dd63bfde0 100644 --- a/docs/sdk/explorer/interfaces/base.ContractDetails.md +++ b/docs/sdk/explorer/interfaces/base.ContractDetails.md @@ -21,7 +21,7 @@ #### Defined in -[src/base.ts:7](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/base.ts#L7) +[base.ts:7](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/base.ts#L7) ___ @@ -31,7 +31,7 @@ ___ #### Defined in -[src/base.ts:9](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/base.ts#L9) +[base.ts:9](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/base.ts#L9) ___ @@ -41,7 +41,7 @@ ___ #### Defined in -[src/base.ts:8](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/base.ts#L8) +[base.ts:8](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/base.ts#L8) ___ @@ -51,4 +51,4 @@ ___ #### Defined in -[src/base.ts:6](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/base.ts#L6) +[base.ts:6](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/base.ts#L6) diff --git a/docs/sdk/explorer/interfaces/base.ContractMapping.md b/docs/sdk/explorer/interfaces/base.ContractMapping.md index 1eca41257..1122b22a1 100644 --- a/docs/sdk/explorer/interfaces/base.ContractMapping.md +++ b/docs/sdk/explorer/interfaces/base.ContractMapping.md @@ -19,7 +19,7 @@ #### Defined in -[src/base.ts:13](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/base.ts#L13) +[base.ts:13](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/base.ts#L13) ___ @@ -29,4 +29,4 @@ ___ #### Defined in -[src/base.ts:14](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/base.ts#L14) +[base.ts:14](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/base.ts#L14) diff --git a/docs/sdk/explorer/interfaces/block_explorer.CallDetails.md b/docs/sdk/explorer/interfaces/block_explorer.CallDetails.md index cced632a4..ba69ade76 100644 --- a/docs/sdk/explorer/interfaces/block_explorer.CallDetails.md +++ b/docs/sdk/explorer/interfaces/block_explorer.CallDetails.md @@ -23,7 +23,7 @@ #### Defined in -[src/block-explorer.ts:36](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L36) +[block-explorer.ts:36](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L36) ___ @@ -33,7 +33,7 @@ ___ #### Defined in -[src/block-explorer.ts:31](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L31) +[block-explorer.ts:31](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L31) ___ @@ -43,7 +43,7 @@ ___ #### Defined in -[src/block-explorer.ts:32](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L32) +[block-explorer.ts:32](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L32) ___ @@ -53,7 +53,7 @@ ___ #### Defined in -[src/block-explorer.ts:34](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L34) +[block-explorer.ts:34](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L34) ___ @@ -63,7 +63,7 @@ ___ #### Defined in -[src/block-explorer.ts:33](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L33) +[block-explorer.ts:33](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L33) ___ @@ -73,4 +73,4 @@ ___ #### Defined in -[src/block-explorer.ts:35](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L35) +[block-explorer.ts:35](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L35) diff --git a/docs/sdk/explorer/interfaces/block_explorer.ContractNameAndMethodAbi.md b/docs/sdk/explorer/interfaces/block_explorer.ContractNameAndMethodAbi.md index 9c6ade1a1..1ff07e463 100644 --- a/docs/sdk/explorer/interfaces/block_explorer.ContractNameAndMethodAbi.md +++ b/docs/sdk/explorer/interfaces/block_explorer.ContractNameAndMethodAbi.md @@ -20,7 +20,7 @@ #### Defined in -[src/block-explorer.ts:25](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L25) +[block-explorer.ts:25](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L25) ___ @@ -30,7 +30,7 @@ ___ #### Defined in -[src/block-explorer.ts:26](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L26) +[block-explorer.ts:26](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L26) ___ @@ -40,4 +40,4 @@ ___ #### Defined in -[src/block-explorer.ts:27](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L27) +[block-explorer.ts:27](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L27) diff --git a/docs/sdk/explorer/interfaces/block_explorer.ParsedBlock.md b/docs/sdk/explorer/interfaces/block_explorer.ParsedBlock.md index d61104eaa..dfa7f0e06 100644 --- a/docs/sdk/explorer/interfaces/block_explorer.ParsedBlock.md +++ b/docs/sdk/explorer/interfaces/block_explorer.ParsedBlock.md @@ -19,7 +19,7 @@ #### Defined in -[src/block-explorer.ts:45](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L45) +[block-explorer.ts:45](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L45) ___ @@ -29,4 +29,4 @@ ___ #### Defined in -[src/block-explorer.ts:46](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L46) +[block-explorer.ts:46](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L46) diff --git a/docs/sdk/explorer/interfaces/block_explorer.ParsedTx.md b/docs/sdk/explorer/interfaces/block_explorer.ParsedTx.md index c801f648c..27023e40a 100644 --- a/docs/sdk/explorer/interfaces/block_explorer.ParsedTx.md +++ b/docs/sdk/explorer/interfaces/block_explorer.ParsedTx.md @@ -19,7 +19,7 @@ #### Defined in -[src/block-explorer.ts:40](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L40) +[block-explorer.ts:40](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L40) ___ @@ -29,4 +29,4 @@ ___ #### Defined in -[src/block-explorer.ts:41](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L41) +[block-explorer.ts:41](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L41) diff --git a/docs/sdk/explorer/interfaces/sourcify.MetadataResponse.md b/docs/sdk/explorer/interfaces/sourcify.MetadataResponse.md index 2e0c677fc..b3245eb8f 100644 --- a/docs/sdk/explorer/interfaces/sourcify.MetadataResponse.md +++ b/docs/sdk/explorer/interfaces/sourcify.MetadataResponse.md @@ -29,7 +29,7 @@ we need to enforce the structure at runtime. #### Defined in -[src/sourcify.ts:51](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/sourcify.ts#L51) +[sourcify.ts:51](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/sourcify.ts#L51) ___ @@ -45,4 +45,4 @@ ___ #### Defined in -[src/sourcify.ts:54](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/sourcify.ts#L54) +[sourcify.ts:54](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/sourcify.ts#L54) diff --git a/docs/sdk/explorer/modules/base.md b/docs/sdk/explorer/modules/base.md index f1b9a1fc6..8c4c4aeec 100644 --- a/docs/sdk/explorer/modules/base.md +++ b/docs/sdk/explorer/modules/base.md @@ -26,7 +26,7 @@ #### Defined in -[src/base.ts:17](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/base.ts#L17) +[base.ts:17](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/base.ts#L17) ## Functions @@ -53,7 +53,7 @@ #### Defined in -[src/base.ts:38](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/base.ts#L38) +[base.ts:38](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/base.ts#L38) ___ @@ -73,4 +73,4 @@ ___ #### Defined in -[src/base.ts:31](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/base.ts#L31) +[base.ts:31](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/base.ts#L31) diff --git a/docs/sdk/explorer/modules/block_explorer.md b/docs/sdk/explorer/modules/block_explorer.md index 5d4364f0e..16334bc4b 100644 --- a/docs/sdk/explorer/modules/block_explorer.md +++ b/docs/sdk/explorer/modules/block_explorer.md @@ -37,4 +37,4 @@ #### Defined in -[src/block-explorer.ts:49](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L49) +[block-explorer.ts:49](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/block-explorer.ts#L49) diff --git a/docs/sdk/explorer/modules/globals.md b/docs/sdk/explorer/modules/globals.md index 009d4584c..eccfe2c29 100644 --- a/docs/sdk/explorer/modules/globals.md +++ b/docs/sdk/explorer/modules/globals.md @@ -4,30 +4,16 @@ ## Table of contents -### Functions +### Variables - [fetchMock](globals.md#fetchmock) -## Functions +## Variables ### fetchMock -▸ **fetchMock**(`input?`, `init?`): `Promise`\<`Response`\> - -Also callable as fetch(). Use `typeof fetch` in your code to define -a field that accepts both `fetch()` and a fetch-mock sandbox. - -#### Parameters - -| Name | Type | -| :------ | :------ | -| `input?` | `string` \| `Request` | -| `init?` | `RequestInit` | - -#### Returns - -`Promise`\<`Response`\> +• `Const` **fetchMock**: `FetchMockSandbox` #### Defined in -[src/globals.d.ts:5](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/globals.d.ts#L5) +[globals.d.ts:5](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/globals.d.ts#L5) diff --git a/docs/sdk/explorer/modules/log_explorer.md b/docs/sdk/explorer/modules/log_explorer.md index 3ccfe5863..731ddeb0b 100644 --- a/docs/sdk/explorer/modules/log_explorer.md +++ b/docs/sdk/explorer/modules/log_explorer.md @@ -30,4 +30,4 @@ #### Defined in -[src/log-explorer.ts:10](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/log-explorer.ts#L10) +[log-explorer.ts:10](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/log-explorer.ts#L10) diff --git a/docs/sdk/explorer/modules/sourcify.md b/docs/sdk/explorer/modules/sourcify.md index 95ff345de..3d5d61dfc 100644 --- a/docs/sdk/explorer/modules/sourcify.md +++ b/docs/sdk/explorer/modules/sourcify.md @@ -42,7 +42,7 @@ Metadata or null #### Defined in -[src/sourcify.ts:179](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/sourcify.ts#L179) +[sourcify.ts:179](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/sourcify.ts#L179) ___ @@ -73,4 +73,4 @@ the implementation address or null #### Defined in -[src/sourcify.ts:228](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/sourcify.ts#L228) +[sourcify.ts:228](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/sourcify.ts#L228) diff --git a/docs/sdk/network-utils/modules/globals.md b/docs/sdk/network-utils/modules/globals.md index 2fa972cb4..12ef94d98 100644 --- a/docs/sdk/network-utils/modules/globals.md +++ b/docs/sdk/network-utils/modules/globals.md @@ -12,8 +12,8 @@ ### fetchMock -• `Const` **fetchMock**: `any` +• `Const` **fetchMock**: `FetchMockSandbox` #### Defined in -[globals.d.ts:1](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/network-utils/src/globals.d.ts#L1) +[globals.d.ts:5](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/network-utils/src/globals.d.ts#L5) diff --git a/docs/sdk/phone-utils/classes/countries.Countries.md b/docs/sdk/phone-utils/classes/countries.Countries.md index eae867284..e9196e668 100644 --- a/docs/sdk/phone-utils/classes/countries.Countries.md +++ b/docs/sdk/phone-utils/classes/countries.Countries.md @@ -40,7 +40,7 @@ #### Defined in -[packages/sdk/phone-utils/src/countries.ts:42](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/countries.ts#L42) +[phone-utils/src/countries.ts:42](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/countries.ts#L42) ## Properties @@ -50,7 +50,7 @@ #### Defined in -[packages/sdk/phone-utils/src/countries.ts:39](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/countries.ts#L39) +[phone-utils/src/countries.ts:39](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/countries.ts#L39) ___ @@ -60,7 +60,7 @@ ___ #### Defined in -[packages/sdk/phone-utils/src/countries.ts:38](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/countries.ts#L38) +[phone-utils/src/countries.ts:38](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/countries.ts#L38) ___ @@ -70,7 +70,7 @@ ___ #### Defined in -[packages/sdk/phone-utils/src/countries.ts:40](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/countries.ts#L40) +[phone-utils/src/countries.ts:40](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/countries.ts#L40) ## Methods @@ -90,7 +90,7 @@ ___ #### Defined in -[packages/sdk/phone-utils/src/countries.ts:50](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/countries.ts#L50) +[phone-utils/src/countries.ts:50](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/countries.ts#L50) ___ @@ -110,7 +110,7 @@ ___ #### Defined in -[packages/sdk/phone-utils/src/countries.ts:60](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/countries.ts#L60) +[phone-utils/src/countries.ts:60](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/countries.ts#L60) ___ @@ -130,4 +130,4 @@ ___ #### Defined in -[packages/sdk/phone-utils/src/countries.ts:64](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/countries.ts#L64) +[phone-utils/src/countries.ts:64](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/countries.ts#L64) diff --git a/docs/sdk/phone-utils/interfaces/countries.LocalizedCountry.md b/docs/sdk/phone-utils/interfaces/countries.LocalizedCountry.md index 9d926c68a..6f8a7e62a 100644 --- a/docs/sdk/phone-utils/interfaces/countries.LocalizedCountry.md +++ b/docs/sdk/phone-utils/interfaces/countries.LocalizedCountry.md @@ -40,7 +40,7 @@ Omit.alpha2 #### Defined in -node_modules/@types/country-data/index.d.ts:7 +phone-utils/node_modules/@types/country-data/index.d.ts:7 ___ @@ -54,7 +54,7 @@ Omit.alpha3 #### Defined in -node_modules/@types/country-data/index.d.ts:8 +phone-utils/node_modules/@types/country-data/index.d.ts:8 ___ @@ -64,7 +64,7 @@ ___ #### Defined in -[packages/sdk/phone-utils/src/countries.ts:18](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/countries.ts#L18) +[phone-utils/src/countries.ts:18](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/countries.ts#L18) ___ @@ -81,7 +81,7 @@ ___ #### Defined in -[packages/sdk/phone-utils/src/countries.ts:14](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/countries.ts#L14) +[phone-utils/src/countries.ts:14](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/countries.ts#L14) ___ @@ -95,7 +95,7 @@ Omit.currencies #### Defined in -node_modules/@types/country-data/index.d.ts:10 +phone-utils/node_modules/@types/country-data/index.d.ts:10 ___ @@ -105,7 +105,7 @@ ___ #### Defined in -[packages/sdk/phone-utils/src/countries.ts:11](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/countries.ts#L11) +[phone-utils/src/countries.ts:11](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/countries.ts#L11) ___ @@ -115,7 +115,7 @@ ___ #### Defined in -[packages/sdk/phone-utils/src/countries.ts:12](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/countries.ts#L12) +[phone-utils/src/countries.ts:12](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/countries.ts#L12) ___ @@ -129,7 +129,7 @@ Omit.emoji #### Defined in -node_modules/@types/country-data/index.d.ts:11 +phone-utils/node_modules/@types/country-data/index.d.ts:11 ___ @@ -143,7 +143,7 @@ Omit.ioc #### Defined in -node_modules/@types/country-data/index.d.ts:12 +phone-utils/node_modules/@types/country-data/index.d.ts:12 ___ @@ -157,7 +157,7 @@ Omit.languages #### Defined in -node_modules/@types/country-data/index.d.ts:13 +phone-utils/node_modules/@types/country-data/index.d.ts:13 ___ @@ -171,7 +171,7 @@ Omit.name #### Defined in -node_modules/@types/country-data/index.d.ts:14 +phone-utils/node_modules/@types/country-data/index.d.ts:14 ___ @@ -181,7 +181,7 @@ ___ #### Defined in -[packages/sdk/phone-utils/src/countries.ts:13](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/countries.ts#L13) +[phone-utils/src/countries.ts:13](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/countries.ts#L13) ___ @@ -195,4 +195,4 @@ Omit.status #### Defined in -node_modules/@types/country-data/index.d.ts:15 +phone-utils/node_modules/@types/country-data/index.d.ts:15 diff --git a/docs/sdk/phone-utils/modules/getCountryEmoji.md b/docs/sdk/phone-utils/modules/getCountryEmoji.md index 7f717bb54..daedbb32d 100644 --- a/docs/sdk/phone-utils/modules/getCountryEmoji.md +++ b/docs/sdk/phone-utils/modules/getCountryEmoji.md @@ -28,4 +28,4 @@ #### Defined in -[packages/sdk/phone-utils/src/getCountryEmoji.ts:4](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/getCountryEmoji.ts#L4) +[phone-utils/src/getCountryEmoji.ts:4](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/getCountryEmoji.ts#L4) diff --git a/docs/sdk/phone-utils/modules/inputValidation.md b/docs/sdk/phone-utils/modules/inputValidation.md index 91d948291..d86b72da5 100644 --- a/docs/sdk/phone-utils/modules/inputValidation.md +++ b/docs/sdk/phone-utils/modules/inputValidation.md @@ -28,7 +28,7 @@ #### Defined in -[packages/sdk/phone-utils/src/inputValidation.ts:20](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/inputValidation.ts#L20) +[phone-utils/src/inputValidation.ts:20](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/inputValidation.ts#L20) ___ @@ -49,4 +49,4 @@ ___ #### Defined in -[packages/sdk/phone-utils/src/inputValidation.ts:4](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/inputValidation.ts#L4) +[phone-utils/src/inputValidation.ts:4](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/inputValidation.ts#L4) diff --git a/docs/sdk/phone-utils/modules/io.md b/docs/sdk/phone-utils/modules/io.md index 17f97fd63..1708778bb 100644 --- a/docs/sdk/phone-utils/modules/io.md +++ b/docs/sdk/phone-utils/modules/io.md @@ -28,7 +28,7 @@ #### Defined in -[packages/sdk/phone-utils/src/io.ts:41](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/io.ts#L41) +[phone-utils/src/io.ts:41](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/io.ts#L41) ___ @@ -38,7 +38,7 @@ ___ #### Defined in -[packages/sdk/phone-utils/src/io.ts:87](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/io.ts#L87) +[phone-utils/src/io.ts:87](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/io.ts#L87) ___ @@ -48,7 +48,7 @@ ___ #### Defined in -[packages/sdk/phone-utils/src/io.ts:23](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/io.ts#L23) +[phone-utils/src/io.ts:23](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/io.ts#L23) ___ @@ -58,7 +58,7 @@ ___ #### Defined in -[packages/sdk/phone-utils/src/io.ts:25](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/io.ts#L25) +[phone-utils/src/io.ts:25](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/io.ts#L25) ___ @@ -68,7 +68,7 @@ ___ #### Defined in -[packages/sdk/phone-utils/src/io.ts:53](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/io.ts#L53) +[phone-utils/src/io.ts:53](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/io.ts#L53) ## Variables @@ -78,7 +78,7 @@ ___ #### Defined in -[packages/sdk/phone-utils/src/io.ts:27](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/io.ts#L27) +[phone-utils/src/io.ts:27](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/io.ts#L27) ___ @@ -88,7 +88,7 @@ ___ #### Defined in -[packages/sdk/phone-utils/src/io.ts:55](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/io.ts#L55) +[phone-utils/src/io.ts:55](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/io.ts#L55) ___ @@ -98,7 +98,7 @@ ___ #### Defined in -[packages/sdk/phone-utils/src/io.ts:17](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/io.ts#L17) +[phone-utils/src/io.ts:17](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/io.ts#L17) ___ @@ -108,7 +108,7 @@ ___ #### Defined in -[packages/sdk/phone-utils/src/io.ts:6](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/io.ts#L6) +[phone-utils/src/io.ts:6](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/io.ts#L6) ___ @@ -118,4 +118,4 @@ ___ #### Defined in -[packages/sdk/phone-utils/src/io.ts:43](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/io.ts#L43) +[phone-utils/src/io.ts:43](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/io.ts#L43) diff --git a/docs/sdk/phone-utils/modules/phoneNumbers.md b/docs/sdk/phone-utils/modules/phoneNumbers.md index c4f6ed025..fffb0f063 100644 --- a/docs/sdk/phone-utils/modules/phoneNumbers.md +++ b/docs/sdk/phone-utils/modules/phoneNumbers.md @@ -40,7 +40,7 @@ #### Defined in -[packages/sdk/phone-utils/src/phoneNumbers.ts:239](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/phoneNumbers.ts#L239) +[phone-utils/src/phoneNumbers.ts:239](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/phoneNumbers.ts#L239) ## Functions @@ -60,7 +60,7 @@ #### Defined in -[packages/sdk/phone-utils/src/phoneNumbers.ts:12](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/phoneNumbers.ts#L12) +[phone-utils/src/phoneNumbers.ts:12](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/phoneNumbers.ts#L12) ___ @@ -80,7 +80,7 @@ ___ #### Defined in -[packages/sdk/phone-utils/src/phoneNumbers.ts:58](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/phoneNumbers.ts#L58) +[phone-utils/src/phoneNumbers.ts:58](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/phoneNumbers.ts#L58) ___ @@ -101,7 +101,7 @@ ___ #### Defined in -[packages/sdk/phone-utils/src/phoneNumbers.ts:48](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/phoneNumbers.ts#L48) +[phone-utils/src/phoneNumbers.ts:48](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/phoneNumbers.ts#L48) ___ @@ -121,7 +121,7 @@ ___ #### Defined in -[packages/sdk/phone-utils/src/phoneNumbers.ts:69](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/phoneNumbers.ts#L69) +[phone-utils/src/phoneNumbers.ts:69](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/phoneNumbers.ts#L69) ___ @@ -142,7 +142,7 @@ ___ #### Defined in -[packages/sdk/phone-utils/src/phoneNumbers.ts:74](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/phoneNumbers.ts#L74) +[phone-utils/src/phoneNumbers.ts:74](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/phoneNumbers.ts#L74) ___ @@ -164,7 +164,7 @@ ___ #### Defined in -[packages/sdk/phone-utils/src/phoneNumbers.ts:211](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/phoneNumbers.ts#L211) +[phone-utils/src/phoneNumbers.ts:211](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/phoneNumbers.ts#L211) ___ @@ -184,7 +184,7 @@ ___ #### Defined in -[packages/sdk/phone-utils/src/phoneNumbers.ts:24](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/phoneNumbers.ts#L24) +[phone-utils/src/phoneNumbers.ts:24](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/phoneNumbers.ts#L24) ___ @@ -204,7 +204,7 @@ ___ #### Defined in -[packages/sdk/phone-utils/src/phoneNumbers.ts:36](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/phoneNumbers.ts#L36) +[phone-utils/src/phoneNumbers.ts:36](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/phoneNumbers.ts#L36) ___ @@ -224,7 +224,7 @@ ___ #### Defined in -[packages/sdk/phone-utils/src/phoneNumbers.ts:84](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/phoneNumbers.ts#L84) +[phone-utils/src/phoneNumbers.ts:84](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/phoneNumbers.ts#L84) ___ @@ -245,4 +245,4 @@ ___ #### Defined in -[packages/sdk/phone-utils/src/phoneNumbers.ts:96](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/phoneNumbers.ts#L96) +[phone-utils/src/phoneNumbers.ts:96](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/phoneNumbers.ts#L96) diff --git a/docs/sdk/utils/classes/future.Future.md b/docs/sdk/utils/classes/future.Future.md index 531534ef7..253fb43cf 100644 --- a/docs/sdk/utils/classes/future.Future.md +++ b/docs/sdk/utils/classes/future.Future.md @@ -46,7 +46,7 @@ #### Defined in -packages/sdk/base/lib/future.d.ts:8 +base/lib/future.d.ts:8 ## Accessors @@ -60,7 +60,7 @@ packages/sdk/base/lib/future.d.ts:8 #### Defined in -packages/sdk/base/lib/future.d.ts:10 +base/lib/future.d.ts:10 ___ @@ -74,7 +74,7 @@ ___ #### Defined in -packages/sdk/base/lib/future.d.ts:9 +base/lib/future.d.ts:9 ## Methods @@ -88,7 +88,7 @@ packages/sdk/base/lib/future.d.ts:9 #### Defined in -packages/sdk/base/lib/future.d.ts:14 +base/lib/future.d.ts:14 ___ @@ -108,7 +108,7 @@ ___ #### Defined in -packages/sdk/base/lib/future.d.ts:12 +base/lib/future.d.ts:12 ___ @@ -128,7 +128,7 @@ ___ #### Defined in -packages/sdk/base/lib/future.d.ts:11 +base/lib/future.d.ts:11 ___ @@ -142,4 +142,4 @@ ___ #### Defined in -packages/sdk/base/lib/future.d.ts:13 +base/lib/future.d.ts:13 diff --git a/docs/sdk/utils/enums/currencies.CURRENCY_ENUM.md b/docs/sdk/utils/enums/currencies.CURRENCY_ENUM.md index 274225def..3772f5300 100644 --- a/docs/sdk/utils/enums/currencies.CURRENCY_ENUM.md +++ b/docs/sdk/utils/enums/currencies.CURRENCY_ENUM.md @@ -24,7 +24,7 @@ use StableToken and Token #### Defined in -packages/sdk/base/lib/currencies.d.ts:4 +base/lib/currencies.d.ts:4 ___ @@ -34,7 +34,7 @@ ___ #### Defined in -packages/sdk/base/lib/currencies.d.ts:5 +base/lib/currencies.d.ts:5 ___ @@ -44,4 +44,4 @@ ___ #### Defined in -packages/sdk/base/lib/currencies.d.ts:3 +base/lib/currencies.d.ts:3 diff --git a/docs/sdk/utils/enums/currencies.SHORT_CURRENCIES.md b/docs/sdk/utils/enums/currencies.SHORT_CURRENCIES.md index 3e850e517..2c64d0b86 100644 --- a/docs/sdk/utils/enums/currencies.SHORT_CURRENCIES.md +++ b/docs/sdk/utils/enums/currencies.SHORT_CURRENCIES.md @@ -24,7 +24,7 @@ use StableToken and Token #### Defined in -packages/sdk/base/lib/currencies.d.ts:29 +base/lib/currencies.d.ts:29 ___ @@ -34,7 +34,7 @@ ___ #### Defined in -packages/sdk/base/lib/currencies.d.ts:31 +base/lib/currencies.d.ts:31 ___ @@ -44,4 +44,4 @@ ___ #### Defined in -packages/sdk/base/lib/currencies.d.ts:30 +base/lib/currencies.d.ts:30 diff --git a/docs/sdk/utils/enums/inputValidation.ValidatorKind.md b/docs/sdk/utils/enums/inputValidation.ValidatorKind.md index d72ffe9af..1dcefcbe3 100644 --- a/docs/sdk/utils/enums/inputValidation.ValidatorKind.md +++ b/docs/sdk/utils/enums/inputValidation.ValidatorKind.md @@ -21,7 +21,7 @@ #### Defined in -packages/sdk/base/lib/inputValidation.d.ts:2 +base/lib/inputValidation.d.ts:2 ___ @@ -31,7 +31,7 @@ ___ #### Defined in -packages/sdk/base/lib/inputValidation.d.ts:3 +base/lib/inputValidation.d.ts:3 ___ @@ -41,7 +41,7 @@ ___ #### Defined in -packages/sdk/base/lib/inputValidation.d.ts:4 +base/lib/inputValidation.d.ts:4 ___ @@ -51,4 +51,4 @@ ___ #### Defined in -packages/sdk/base/lib/inputValidation.d.ts:5 +base/lib/inputValidation.d.ts:5 diff --git a/docs/sdk/utils/interfaces/contacts.ContactPhoneNumber.md b/docs/sdk/utils/interfaces/contacts.ContactPhoneNumber.md index c5a4c9a23..2413de037 100644 --- a/docs/sdk/utils/interfaces/contacts.ContactPhoneNumber.md +++ b/docs/sdk/utils/interfaces/contacts.ContactPhoneNumber.md @@ -19,7 +19,7 @@ #### Defined in -packages/sdk/base/lib/contacts.d.ts:2 +base/lib/contacts.d.ts:2 ___ @@ -29,4 +29,4 @@ ___ #### Defined in -packages/sdk/base/lib/contacts.d.ts:3 +base/lib/contacts.d.ts:3 diff --git a/docs/sdk/utils/interfaces/contacts.MinimalContact.md b/docs/sdk/utils/interfaces/contacts.MinimalContact.md index 489b88532..6f4ebde04 100644 --- a/docs/sdk/utils/interfaces/contacts.MinimalContact.md +++ b/docs/sdk/utils/interfaces/contacts.MinimalContact.md @@ -21,7 +21,7 @@ #### Defined in -packages/sdk/base/lib/contacts.d.ts:7 +base/lib/contacts.d.ts:7 ___ @@ -31,7 +31,7 @@ ___ #### Defined in -packages/sdk/base/lib/contacts.d.ts:8 +base/lib/contacts.d.ts:8 ___ @@ -41,7 +41,7 @@ ___ #### Defined in -packages/sdk/base/lib/contacts.d.ts:6 +base/lib/contacts.d.ts:6 ___ @@ -51,4 +51,4 @@ ___ #### Defined in -packages/sdk/base/lib/contacts.d.ts:9 +base/lib/contacts.d.ts:9 diff --git a/docs/sdk/utils/interfaces/inputValidation.BaseProps.md b/docs/sdk/utils/interfaces/inputValidation.BaseProps.md index 870fdd6ce..8980ba51b 100644 --- a/docs/sdk/utils/interfaces/inputValidation.BaseProps.md +++ b/docs/sdk/utils/interfaces/inputValidation.BaseProps.md @@ -21,7 +21,7 @@ #### Defined in -packages/sdk/base/lib/inputValidation.d.ts:10 +base/lib/inputValidation.d.ts:10 ___ @@ -45,7 +45,7 @@ ___ #### Defined in -packages/sdk/base/lib/inputValidation.d.ts:9 +base/lib/inputValidation.d.ts:9 ___ @@ -55,7 +55,7 @@ ___ #### Defined in -packages/sdk/base/lib/inputValidation.d.ts:11 +base/lib/inputValidation.d.ts:11 ___ @@ -65,4 +65,4 @@ ___ #### Defined in -packages/sdk/base/lib/inputValidation.d.ts:8 +base/lib/inputValidation.d.ts:8 diff --git a/docs/sdk/utils/interfaces/istanbul.IstanbulExtra.md b/docs/sdk/utils/interfaces/istanbul.IstanbulExtra.md index bd41de4c3..3c31560ef 100644 --- a/docs/sdk/utils/interfaces/istanbul.IstanbulExtra.md +++ b/docs/sdk/utils/interfaces/istanbul.IstanbulExtra.md @@ -23,7 +23,7 @@ #### Defined in -[packages/sdk/utils/src/istanbul.ts:22](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/istanbul.ts#L22) +[utils/src/istanbul.ts:22](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/istanbul.ts#L22) ___ @@ -33,7 +33,7 @@ ___ #### Defined in -[packages/sdk/utils/src/istanbul.ts:23](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/istanbul.ts#L23) +[utils/src/istanbul.ts:23](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/istanbul.ts#L23) ___ @@ -43,7 +43,7 @@ ___ #### Defined in -[packages/sdk/utils/src/istanbul.ts:26](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/istanbul.ts#L26) +[utils/src/istanbul.ts:26](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/istanbul.ts#L26) ___ @@ -53,7 +53,7 @@ ___ #### Defined in -[packages/sdk/utils/src/istanbul.ts:27](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/istanbul.ts#L27) +[utils/src/istanbul.ts:27](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/istanbul.ts#L27) ___ @@ -63,7 +63,7 @@ ___ #### Defined in -[packages/sdk/utils/src/istanbul.ts:24](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/istanbul.ts#L24) +[utils/src/istanbul.ts:24](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/istanbul.ts#L24) ___ @@ -73,4 +73,4 @@ ___ #### Defined in -[packages/sdk/utils/src/istanbul.ts:25](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/istanbul.ts#L25) +[utils/src/istanbul.ts:25](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/istanbul.ts#L25) diff --git a/docs/sdk/utils/interfaces/istanbul.Seal.md b/docs/sdk/utils/interfaces/istanbul.Seal.md index 05d2e05f8..ba3ed7a33 100644 --- a/docs/sdk/utils/interfaces/istanbul.Seal.md +++ b/docs/sdk/utils/interfaces/istanbul.Seal.md @@ -20,7 +20,7 @@ #### Defined in -[packages/sdk/utils/src/istanbul.ts:15](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/istanbul.ts#L15) +[utils/src/istanbul.ts:15](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/istanbul.ts#L15) ___ @@ -30,7 +30,7 @@ ___ #### Defined in -[packages/sdk/utils/src/istanbul.ts:17](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/istanbul.ts#L17) +[utils/src/istanbul.ts:17](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/istanbul.ts#L17) ___ @@ -40,4 +40,4 @@ ___ #### Defined in -[packages/sdk/utils/src/istanbul.ts:16](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/istanbul.ts#L16) +[utils/src/istanbul.ts:16](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/istanbul.ts#L16) diff --git a/docs/sdk/utils/interfaces/sign_typed_data_utils.EIP712Parameter.md b/docs/sdk/utils/interfaces/sign_typed_data_utils.EIP712Parameter.md index 0d038e838..2b5a7142a 100644 --- a/docs/sdk/utils/interfaces/sign_typed_data_utils.EIP712Parameter.md +++ b/docs/sdk/utils/interfaces/sign_typed_data_utils.EIP712Parameter.md @@ -19,7 +19,7 @@ #### Defined in -[packages/sdk/utils/src/sign-typed-data-utils.ts:9](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/sign-typed-data-utils.ts#L9) +[utils/src/sign-typed-data-utils.ts:9](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/sign-typed-data-utils.ts#L9) ___ @@ -29,4 +29,4 @@ ___ #### Defined in -[packages/sdk/utils/src/sign-typed-data-utils.ts:10](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/sign-typed-data-utils.ts#L10) +[utils/src/sign-typed-data-utils.ts:10](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/sign-typed-data-utils.ts#L10) diff --git a/docs/sdk/utils/interfaces/sign_typed_data_utils.EIP712TypedData.md b/docs/sdk/utils/interfaces/sign_typed_data_utils.EIP712TypedData.md index c76cad3ab..b24638878 100644 --- a/docs/sdk/utils/interfaces/sign_typed_data_utils.EIP712TypedData.md +++ b/docs/sdk/utils/interfaces/sign_typed_data_utils.EIP712TypedData.md @@ -21,7 +21,7 @@ #### Defined in -[packages/sdk/utils/src/sign-typed-data-utils.ts:37](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/sign-typed-data-utils.ts#L37) +[utils/src/sign-typed-data-utils.ts:37](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/sign-typed-data-utils.ts#L37) ___ @@ -31,7 +31,7 @@ ___ #### Defined in -[packages/sdk/utils/src/sign-typed-data-utils.ts:38](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/sign-typed-data-utils.ts#L38) +[utils/src/sign-typed-data-utils.ts:38](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/sign-typed-data-utils.ts#L38) ___ @@ -41,7 +41,7 @@ ___ #### Defined in -[packages/sdk/utils/src/sign-typed-data-utils.ts:39](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/sign-typed-data-utils.ts#L39) +[utils/src/sign-typed-data-utils.ts:39](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/sign-typed-data-utils.ts#L39) ___ @@ -51,4 +51,4 @@ ___ #### Defined in -[packages/sdk/utils/src/sign-typed-data-utils.ts:36](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/sign-typed-data-utils.ts#L36) +[utils/src/sign-typed-data-utils.ts:36](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/sign-typed-data-utils.ts#L36) diff --git a/docs/sdk/utils/interfaces/sign_typed_data_utils.EIP712TypesWithPrimary.md b/docs/sdk/utils/interfaces/sign_typed_data_utils.EIP712TypesWithPrimary.md index d01d88fa3..cc3558450 100644 --- a/docs/sdk/utils/interfaces/sign_typed_data_utils.EIP712TypesWithPrimary.md +++ b/docs/sdk/utils/interfaces/sign_typed_data_utils.EIP712TypesWithPrimary.md @@ -19,7 +19,7 @@ #### Defined in -[packages/sdk/utils/src/sign-typed-data-utils.ts:19](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/sign-typed-data-utils.ts#L19) +[utils/src/sign-typed-data-utils.ts:19](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/sign-typed-data-utils.ts#L19) ___ @@ -29,4 +29,4 @@ ___ #### Defined in -[packages/sdk/utils/src/sign-typed-data-utils.ts:18](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/sign-typed-data-utils.ts#L18) +[utils/src/sign-typed-data-utils.ts:18](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/sign-typed-data-utils.ts#L18) diff --git a/docs/sdk/utils/interfaces/signatureUtils.Signature.md b/docs/sdk/utils/interfaces/signatureUtils.Signature.md index bd2cfc3cd..adc0f70a2 100644 --- a/docs/sdk/utils/interfaces/signatureUtils.Signature.md +++ b/docs/sdk/utils/interfaces/signatureUtils.Signature.md @@ -20,7 +20,7 @@ #### Defined in -packages/sdk/base/lib/signatureUtils.d.ts:8 +base/lib/signatureUtils.d.ts:8 ___ @@ -30,7 +30,7 @@ ___ #### Defined in -packages/sdk/base/lib/signatureUtils.d.ts:9 +base/lib/signatureUtils.d.ts:9 ___ @@ -40,4 +40,4 @@ ___ #### Defined in -packages/sdk/base/lib/signatureUtils.d.ts:7 +base/lib/signatureUtils.d.ts:7 diff --git a/docs/sdk/utils/interfaces/signatureUtils.Signer.md b/docs/sdk/utils/interfaces/signatureUtils.Signer.md index bc73b45cc..fd2c79e71 100644 --- a/docs/sdk/utils/interfaces/signatureUtils.Signer.md +++ b/docs/sdk/utils/interfaces/signatureUtils.Signer.md @@ -32,4 +32,4 @@ #### Defined in -packages/sdk/base/lib/signatureUtils.d.ts:3 +base/lib/signatureUtils.d.ts:3 diff --git a/docs/sdk/utils/interfaces/task.RepeatTaskContext.md b/docs/sdk/utils/interfaces/task.RepeatTaskContext.md index 624a7d626..d7f493da6 100644 --- a/docs/sdk/utils/interfaces/task.RepeatTaskContext.md +++ b/docs/sdk/utils/interfaces/task.RepeatTaskContext.md @@ -24,7 +24,7 @@ Number of times the task has been executed (starts in 1) #### Defined in -packages/sdk/base/lib/task.d.ts:27 +base/lib/task.d.ts:27 ## Methods @@ -40,4 +40,4 @@ Flag task to be stopped. Might not be inmediate #### Defined in -packages/sdk/base/lib/task.d.ts:29 +base/lib/task.d.ts:29 diff --git a/docs/sdk/utils/interfaces/task.RetryTaskOptions.md b/docs/sdk/utils/interfaces/task.RetryTaskOptions.md index 321ec86f1..880a51d55 100644 --- a/docs/sdk/utils/interfaces/task.RetryTaskOptions.md +++ b/docs/sdk/utils/interfaces/task.RetryTaskOptions.md @@ -40,7 +40,7 @@ Logger function #### Defined in -packages/sdk/base/lib/task.d.ts:17 +base/lib/task.d.ts:17 ___ @@ -52,7 +52,7 @@ Maximum number of attemps #### Defined in -packages/sdk/base/lib/task.d.ts:48 +base/lib/task.d.ts:48 ___ @@ -68,7 +68,7 @@ Name for the task. To be used in logging messages #### Defined in -packages/sdk/base/lib/task.d.ts:15 +base/lib/task.d.ts:15 ___ @@ -80,7 +80,7 @@ seconds between repetition #### Defined in -packages/sdk/base/lib/task.d.ts:46 +base/lib/task.d.ts:46 ___ @@ -102,4 +102,4 @@ Function that tries to obtain a value A or returns null #### Defined in -packages/sdk/base/lib/task.d.ts:50 +base/lib/task.d.ts:50 diff --git a/docs/sdk/utils/interfaces/task.RunningTask.md b/docs/sdk/utils/interfaces/task.RunningTask.md index 45270d281..260e62abc 100644 --- a/docs/sdk/utils/interfaces/task.RunningTask.md +++ b/docs/sdk/utils/interfaces/task.RunningTask.md @@ -35,7 +35,7 @@ Indicates wether the task is running #### Defined in -packages/sdk/base/lib/task.d.ts:11 +base/lib/task.d.ts:11 ___ @@ -51,4 +51,4 @@ Flag task to be stopped. Might not be inmediate #### Defined in -packages/sdk/base/lib/task.d.ts:9 +base/lib/task.d.ts:9 diff --git a/docs/sdk/utils/interfaces/task.RunningTaskWithValue.md b/docs/sdk/utils/interfaces/task.RunningTaskWithValue.md index da1f2e7de..0a817ff65 100644 --- a/docs/sdk/utils/interfaces/task.RunningTaskWithValue.md +++ b/docs/sdk/utils/interfaces/task.RunningTaskWithValue.md @@ -46,7 +46,7 @@ Indicates wether the task is running #### Defined in -packages/sdk/base/lib/task.d.ts:11 +base/lib/task.d.ts:11 ___ @@ -60,7 +60,7 @@ ___ #### Defined in -packages/sdk/base/lib/task.d.ts:42 +base/lib/task.d.ts:42 ___ @@ -80,4 +80,4 @@ Flag task to be stopped. Might not be inmediate #### Defined in -packages/sdk/base/lib/task.d.ts:9 +base/lib/task.d.ts:9 diff --git a/docs/sdk/utils/interfaces/task.TaskOptions.md b/docs/sdk/utils/interfaces/task.TaskOptions.md index 8c0337360..35bc4d8aa 100644 --- a/docs/sdk/utils/interfaces/task.TaskOptions.md +++ b/docs/sdk/utils/interfaces/task.TaskOptions.md @@ -27,7 +27,7 @@ Logger function #### Defined in -packages/sdk/base/lib/task.d.ts:17 +base/lib/task.d.ts:17 ___ @@ -39,4 +39,4 @@ Name for the task. To be used in logging messages #### Defined in -packages/sdk/base/lib/task.d.ts:15 +base/lib/task.d.ts:15 diff --git a/docs/sdk/utils/modules/address.md b/docs/sdk/utils/modules/address.md index 5221bdab1..966b02f2b 100644 --- a/docs/sdk/utils/modules/address.md +++ b/docs/sdk/utils/modules/address.md @@ -42,7 +42,7 @@ #### Defined in -packages/sdk/base/lib/address.d.ts:2 +base/lib/address.d.ts:2 ## Variables @@ -52,7 +52,7 @@ packages/sdk/base/lib/address.d.ts:2 #### Defined in -packages/sdk/base/lib/address.d.ts:14 +base/lib/address.d.ts:14 ## Functions @@ -72,7 +72,7 @@ packages/sdk/base/lib/address.d.ts:14 #### Defined in -packages/sdk/base/lib/address.d.ts:13 +base/lib/address.d.ts:13 ___ @@ -92,7 +92,7 @@ ___ #### Defined in -packages/sdk/base/lib/address.d.ts:9 +base/lib/address.d.ts:9 ___ @@ -113,7 +113,7 @@ ___ #### Defined in -packages/sdk/base/lib/address.d.ts:4 +base/lib/address.d.ts:4 ___ @@ -134,7 +134,7 @@ ___ #### Defined in -packages/sdk/base/lib/address.d.ts:15 +base/lib/address.d.ts:15 ___ @@ -154,7 +154,7 @@ ___ #### Defined in -packages/sdk/base/lib/address.d.ts:10 +base/lib/address.d.ts:10 ___ @@ -174,7 +174,7 @@ ___ #### Defined in -packages/sdk/base/lib/address.d.ts:12 +base/lib/address.d.ts:12 ___ @@ -194,7 +194,7 @@ ___ #### Defined in -packages/sdk/base/lib/address.d.ts:11 +base/lib/address.d.ts:11 ___ @@ -214,7 +214,7 @@ input is \`0x$\{string}\` #### Defined in -[packages/sdk/utils/src/address.ts:46](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/address.ts#L46) +[utils/src/address.ts:46](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/address.ts#L46) ___ @@ -239,7 +239,7 @@ See toChecksumAddress' documentation for details about the eip1191ChainId parame #### Defined in -node_modules/@ethereumjs/util/dist/account.d.ts:65 +utils/node_modules/@ethereumjs/util/dist/account.d.ts:65 ___ @@ -259,7 +259,7 @@ ___ #### Defined in -[packages/sdk/utils/src/address.ts:43](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/address.ts#L43) +[utils/src/address.ts:43](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/address.ts#L43) ___ @@ -288,7 +288,7 @@ ___ #### Defined in -packages/sdk/base/lib/address.d.ts:17 +base/lib/address.d.ts:17 ___ @@ -309,7 +309,7 @@ ___ #### Defined in -packages/sdk/base/lib/address.d.ts:16 +base/lib/address.d.ts:16 ___ @@ -329,7 +329,7 @@ ___ #### Defined in -packages/sdk/base/lib/address.d.ts:5 +base/lib/address.d.ts:5 ___ @@ -349,7 +349,7 @@ ___ #### Defined in -packages/sdk/base/lib/address.d.ts:7 +base/lib/address.d.ts:7 ___ @@ -369,7 +369,7 @@ ___ #### Defined in -[packages/sdk/utils/src/address.ts:30](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/address.ts#L30) +[utils/src/address.ts:30](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/address.ts#L30) ___ @@ -389,7 +389,7 @@ ___ #### Defined in -[packages/sdk/utils/src/address.ts:35](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/address.ts#L35) +[utils/src/address.ts:35](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/address.ts#L35) ___ @@ -409,7 +409,7 @@ ___ #### Defined in -[packages/sdk/utils/src/address.ts:38](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/address.ts#L38) +[utils/src/address.ts:38](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/address.ts#L38) ___ @@ -441,7 +441,7 @@ Usage of this EIP is therefore discouraged unless you have a very targeted use c #### Defined in -node_modules/@ethereumjs/util/dist/account.d.ts:59 +utils/node_modules/@ethereumjs/util/dist/account.d.ts:59 ___ @@ -461,4 +461,4 @@ ___ #### Defined in -packages/sdk/base/lib/address.d.ts:8 +base/lib/address.d.ts:8 diff --git a/docs/sdk/utils/modules/async.md b/docs/sdk/utils/modules/async.md index 6be03c89e..48b837079 100644 --- a/docs/sdk/utils/modules/async.md +++ b/docs/sdk/utils/modules/async.md @@ -42,7 +42,7 @@ Map an async function over a list xs with a given concurrency level #### Defined in -packages/sdk/base/lib/async.d.ts:16 +base/lib/async.d.ts:16 ___ @@ -73,7 +73,7 @@ Map an async function over the values in Object x with a given concurrency level #### Defined in -packages/sdk/base/lib/async.d.ts:24 +base/lib/async.d.ts:24 ___ @@ -104,7 +104,7 @@ ___ #### Defined in -packages/sdk/base/lib/async.d.ts:5 +base/lib/async.d.ts:5 ___ @@ -136,7 +136,7 @@ ___ #### Defined in -packages/sdk/base/lib/async.d.ts:6 +base/lib/async.d.ts:6 ___ @@ -169,7 +169,7 @@ ___ #### Defined in -packages/sdk/base/lib/async.d.ts:7 +base/lib/async.d.ts:7 ___ @@ -191,4 +191,4 @@ Sleep for a number of milliseconds #### Defined in -packages/sdk/base/lib/async.d.ts:3 +base/lib/async.d.ts:3 diff --git a/docs/sdk/utils/modules/celoHistory.md b/docs/sdk/utils/modules/celoHistory.md index 578ed095b..9a0023a51 100644 --- a/docs/sdk/utils/modules/celoHistory.md +++ b/docs/sdk/utils/modules/celoHistory.md @@ -17,7 +17,7 @@ #### Defined in -[packages/sdk/utils/src/celoHistory.ts:7](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/celoHistory.ts#L7) +[utils/src/celoHistory.ts:7](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/celoHistory.ts#L7) ___ @@ -27,4 +27,4 @@ ___ #### Defined in -[packages/sdk/utils/src/celoHistory.ts:6](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/celoHistory.ts#L6) +[utils/src/celoHistory.ts:6](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/celoHistory.ts#L6) diff --git a/docs/sdk/utils/modules/collections.md b/docs/sdk/utils/modules/collections.md index b79800d96..5bf233e74 100644 --- a/docs/sdk/utils/modules/collections.md +++ b/docs/sdk/utils/modules/collections.md @@ -26,7 +26,7 @@ #### Defined in -[packages/sdk/utils/src/collections.ts:7](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/collections.ts#L7) +[utils/src/collections.ts:7](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/collections.ts#L7) ## Functions @@ -52,7 +52,7 @@ #### Defined in -packages/sdk/base/lib/collections.d.ts:5 +base/lib/collections.d.ts:5 ___ @@ -79,7 +79,7 @@ ___ #### Defined in -[packages/sdk/utils/src/collections.ts:12](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/collections.ts#L12) +[utils/src/collections.ts:12](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/collections.ts#L12) ___ @@ -106,7 +106,7 @@ ___ #### Defined in -[packages/sdk/utils/src/collections.ts:19](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/collections.ts#L19) +[utils/src/collections.ts:19](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/collections.ts#L19) ___ @@ -132,7 +132,7 @@ value is TValue #### Defined in -packages/sdk/base/lib/collections.d.ts:4 +base/lib/collections.d.ts:4 ___ @@ -152,7 +152,7 @@ ___ #### Defined in -packages/sdk/base/lib/collections.d.ts:3 +base/lib/collections.d.ts:3 ___ @@ -182,7 +182,7 @@ ___ #### Defined in -packages/sdk/base/lib/collections.d.ts:1 +base/lib/collections.d.ts:1 ___ @@ -212,4 +212,4 @@ ___ #### Defined in -packages/sdk/base/lib/collections.d.ts:2 +base/lib/collections.d.ts:2 diff --git a/docs/sdk/utils/modules/contacts.md b/docs/sdk/utils/modules/contacts.md index 0bd226a1e..966479b9f 100644 --- a/docs/sdk/utils/modules/contacts.md +++ b/docs/sdk/utils/modules/contacts.md @@ -37,7 +37,7 @@ May be removed in future #### Defined in -[packages/sdk/utils/src/contacts.ts:16](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/contacts.ts#L16) +[utils/src/contacts.ts:16](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/contacts.ts#L16) ___ @@ -57,7 +57,7 @@ ___ #### Defined in -packages/sdk/base/lib/contacts.d.ts:11 +base/lib/contacts.d.ts:11 ___ @@ -77,4 +77,4 @@ contactOrNumber is MinimalContact #### Defined in -packages/sdk/base/lib/contacts.d.ts:12 +base/lib/contacts.d.ts:12 diff --git a/docs/sdk/utils/modules/currencies.md b/docs/sdk/utils/modules/currencies.md index 630430779..93dab7718 100644 --- a/docs/sdk/utils/modules/currencies.md +++ b/docs/sdk/utils/modules/currencies.md @@ -28,7 +28,7 @@ #### Defined in -packages/sdk/base/lib/currencies.d.ts:25 +base/lib/currencies.d.ts:25 ___ @@ -50,7 +50,7 @@ use StableToken and Token #### Defined in -packages/sdk/base/lib/currencies.d.ts:34 +base/lib/currencies.d.ts:34 ## Functions @@ -70,4 +70,4 @@ packages/sdk/base/lib/currencies.d.ts:34 #### Defined in -packages/sdk/base/lib/currencies.d.ts:26 +base/lib/currencies.d.ts:26 diff --git a/docs/sdk/utils/modules/displayFormatting.md b/docs/sdk/utils/modules/displayFormatting.md index e63213b69..83235cf91 100644 --- a/docs/sdk/utils/modules/displayFormatting.md +++ b/docs/sdk/utils/modules/displayFormatting.md @@ -26,4 +26,4 @@ #### Defined in -packages/sdk/base/lib/displayFormatting.d.ts:2 +base/lib/displayFormatting.d.ts:2 diff --git a/docs/sdk/utils/modules/ecdh.md b/docs/sdk/utils/modules/ecdh.md index 66adeb1fc..781aa9003 100644 --- a/docs/sdk/utils/modules/ecdh.md +++ b/docs/sdk/utils/modules/ecdh.md @@ -31,7 +31,7 @@ #### Defined in -[packages/sdk/utils/src/ecdh.ts:4](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/ecdh.ts#L4) +[utils/src/ecdh.ts:4](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/ecdh.ts#L4) ___ @@ -51,7 +51,7 @@ ___ #### Defined in -[packages/sdk/utils/src/ecdh.ts:21](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/ecdh.ts#L21) +[utils/src/ecdh.ts:21](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/ecdh.ts#L21) ___ @@ -71,7 +71,7 @@ ___ #### Defined in -[packages/sdk/utils/src/ecdh.ts:27](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/ecdh.ts#L27) +[utils/src/ecdh.ts:27](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/ecdh.ts#L27) ___ @@ -91,7 +91,7 @@ ___ #### Defined in -[packages/sdk/utils/src/ecdh.ts:13](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/ecdh.ts#L13) +[utils/src/ecdh.ts:13](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/ecdh.ts#L13) ___ @@ -111,4 +111,4 @@ ___ #### Defined in -[packages/sdk/utils/src/ecdh.ts:32](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/ecdh.ts#L32) +[utils/src/ecdh.ts:32](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/ecdh.ts#L32) diff --git a/docs/sdk/utils/modules/ecies.md b/docs/sdk/utils/modules/ecies.md index 60d4b0a17..8a43b0b24 100644 --- a/docs/sdk/utils/modules/ecies.md +++ b/docs/sdk/utils/modules/ecies.md @@ -36,7 +36,7 @@ #### Defined in -[packages/sdk/utils/src/ecies.ts:199](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/ecies.ts#L199) +[utils/src/ecies.ts:199](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/ecies.ts#L199) ___ @@ -46,7 +46,7 @@ ___ #### Defined in -[packages/sdk/utils/src/ecies.ts:18](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/ecies.ts#L18) +[utils/src/ecies.ts:18](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/ecies.ts#L18) ## Functions @@ -72,7 +72,7 @@ plaintext #### Defined in -[packages/sdk/utils/src/ecies.ts:106](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/ecies.ts#L106) +[utils/src/ecies.ts:106](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/ecies.ts#L106) ___ @@ -98,7 +98,7 @@ plaintext #### Defined in -[packages/sdk/utils/src/ecies.ts:122](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/ecies.ts#L122) +[utils/src/ecies.ts:122](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/ecies.ts#L122) ___ @@ -124,7 +124,7 @@ ciphertext #### Defined in -[packages/sdk/utils/src/ecies.ts:70](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/ecies.ts#L70) +[utils/src/ecies.ts:70](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/ecies.ts#L70) ___ @@ -150,7 +150,7 @@ ciphertext #### Defined in -[packages/sdk/utils/src/ecies.ts:88](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/ecies.ts#L88) +[utils/src/ecies.ts:88](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/ecies.ts#L88) ___ @@ -180,7 +180,7 @@ Output keying material of length kdLen bytes. #### Defined in -[packages/sdk/utils/src/ecies.ts:48](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/ecies.ts#L48) +[utils/src/ecies.ts:48](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/ecies.ts#L48) ___ @@ -205,7 +205,7 @@ plaintext #### Defined in -[packages/sdk/utils/src/ecies.ts:179](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/ecies.ts#L179) +[utils/src/ecies.ts:179](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/ecies.ts#L179) ___ @@ -230,4 +230,4 @@ Encrypted message, serialized, 113+ bytes #### Defined in -[packages/sdk/utils/src/ecies.ts:145](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/ecies.ts#L145) +[utils/src/ecies.ts:145](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/ecies.ts#L145) diff --git a/docs/sdk/utils/modules/fixidity.md b/docs/sdk/utils/modules/fixidity.md index 9403184cc..1fb6afda0 100644 --- a/docs/sdk/utils/modules/fixidity.md +++ b/docs/sdk/utils/modules/fixidity.md @@ -26,7 +26,7 @@ #### Defined in -[packages/sdk/utils/src/fixidity.ts:3](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/fixidity.ts#L3) +[utils/src/fixidity.ts:3](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/fixidity.ts#L3) ___ @@ -36,7 +36,7 @@ ___ #### Defined in -[packages/sdk/utils/src/fixidity.ts:4](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/fixidity.ts#L4) +[utils/src/fixidity.ts:4](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/fixidity.ts#L4) ## Functions @@ -57,7 +57,7 @@ ___ #### Defined in -[packages/sdk/utils/src/fixidity.ts:24](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/fixidity.ts#L24) +[utils/src/fixidity.ts:24](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/fixidity.ts#L24) ___ @@ -77,7 +77,7 @@ ___ #### Defined in -[packages/sdk/utils/src/fixidity.ts:16](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/fixidity.ts#L16) +[utils/src/fixidity.ts:16](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/fixidity.ts#L16) ___ @@ -97,7 +97,7 @@ ___ #### Defined in -[packages/sdk/utils/src/fixidity.ts:11](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/fixidity.ts#L11) +[utils/src/fixidity.ts:11](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/fixidity.ts#L11) ___ @@ -118,7 +118,7 @@ ___ #### Defined in -[packages/sdk/utils/src/fixidity.ts:20](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/fixidity.ts#L20) +[utils/src/fixidity.ts:20](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/fixidity.ts#L20) ___ @@ -138,7 +138,7 @@ ___ #### Defined in -[packages/sdk/utils/src/fixidity.ts:28](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/fixidity.ts#L28) +[utils/src/fixidity.ts:28](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/fixidity.ts#L28) ___ @@ -158,4 +158,4 @@ ___ #### Defined in -[packages/sdk/utils/src/fixidity.ts:6](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/fixidity.ts#L6) +[utils/src/fixidity.ts:6](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/fixidity.ts#L6) diff --git a/docs/sdk/utils/modules/future.md b/docs/sdk/utils/modules/future.md index 8644bfeef..20f4abaae 100644 --- a/docs/sdk/utils/modules/future.md +++ b/docs/sdk/utils/modules/future.md @@ -38,7 +38,7 @@ #### Defined in -packages/sdk/base/lib/future.d.ts:19 +base/lib/future.d.ts:19 ___ @@ -64,4 +64,4 @@ ___ #### Defined in -packages/sdk/base/lib/future.d.ts:17 +base/lib/future.d.ts:17 diff --git a/docs/sdk/utils/modules/inputValidation.md b/docs/sdk/utils/modules/inputValidation.md index 6a013862a..2446a6254 100644 --- a/docs/sdk/utils/modules/inputValidation.md +++ b/docs/sdk/utils/modules/inputValidation.md @@ -36,7 +36,7 @@ #### Defined in -packages/sdk/base/lib/inputValidation.d.ts:14 +base/lib/inputValidation.d.ts:14 ___ @@ -56,4 +56,4 @@ ___ #### Defined in -packages/sdk/base/lib/inputValidation.d.ts:13 +base/lib/inputValidation.d.ts:13 diff --git a/docs/sdk/utils/modules/io.md b/docs/sdk/utils/modules/io.md index 65fa2a9ed..2186ad03e 100644 --- a/docs/sdk/utils/modules/io.md +++ b/docs/sdk/utils/modules/io.md @@ -31,7 +31,7 @@ #### Defined in -[packages/sdk/utils/src/io.ts:66](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/io.ts#L66) +[utils/src/io.ts:66](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/io.ts#L66) ___ @@ -41,7 +41,7 @@ ___ #### Defined in -[packages/sdk/utils/src/io.ts:65](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/io.ts#L65) +[utils/src/io.ts:65](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/io.ts#L65) ## Variables @@ -51,7 +51,7 @@ ___ #### Defined in -[packages/sdk/utils/src/io.ts:38](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/io.ts#L38) +[utils/src/io.ts:38](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/io.ts#L38) ___ @@ -61,7 +61,7 @@ ___ #### Defined in -[packages/sdk/utils/src/io.ts:23](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/io.ts#L23) +[utils/src/io.ts:23](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/io.ts#L23) ___ @@ -71,7 +71,7 @@ ___ #### Defined in -[packages/sdk/utils/src/io.ts:50](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/io.ts#L50) +[utils/src/io.ts:50](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/io.ts#L50) ___ @@ -81,7 +81,7 @@ ___ #### Defined in -[packages/sdk/utils/src/io.ts:63](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/io.ts#L63) +[utils/src/io.ts:63](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/io.ts#L63) ___ @@ -91,7 +91,7 @@ ___ #### Defined in -[packages/sdk/utils/src/io.ts:62](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/io.ts#L62) +[utils/src/io.ts:62](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/io.ts#L62) ___ @@ -101,7 +101,7 @@ ___ #### Defined in -packages/sdk/base/lib/io.d.ts:1 +base/lib/io.d.ts:1 ___ @@ -111,7 +111,7 @@ ___ #### Defined in -[packages/sdk/utils/src/io.ts:11](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/io.ts#L11) +[utils/src/io.ts:11](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/io.ts#L11) ## Functions @@ -131,4 +131,4 @@ ___ #### Defined in -packages/sdk/base/lib/io.d.ts:3 +base/lib/io.d.ts:3 diff --git a/docs/sdk/utils/modules/istanbul.md b/docs/sdk/utils/modules/istanbul.md index 079576ff8..a4c225ab1 100644 --- a/docs/sdk/utils/modules/istanbul.md +++ b/docs/sdk/utils/modules/istanbul.md @@ -30,7 +30,7 @@ #### Defined in -[packages/sdk/utils/src/istanbul.ts:11](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/istanbul.ts#L11) +[utils/src/istanbul.ts:11](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/istanbul.ts#L11) ## Variables @@ -47,7 +47,7 @@ #### Defined in -[packages/sdk/utils/src/istanbul.ts:71](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/istanbul.ts#L71) +[utils/src/istanbul.ts:71](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/istanbul.ts#L71) ## Functions @@ -68,7 +68,7 @@ #### Defined in -[packages/sdk/utils/src/istanbul.ts:61](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/istanbul.ts#L61) +[utils/src/istanbul.ts:61](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/istanbul.ts#L61) ___ @@ -88,4 +88,4 @@ ___ #### Defined in -[packages/sdk/utils/src/istanbul.ts:43](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/istanbul.ts#L43) +[utils/src/istanbul.ts:43](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/istanbul.ts#L43) diff --git a/docs/sdk/utils/modules/levenshtein.md b/docs/sdk/utils/modules/levenshtein.md index a9d10747a..1640d6fa4 100644 --- a/docs/sdk/utils/modules/levenshtein.md +++ b/docs/sdk/utils/modules/levenshtein.md @@ -27,4 +27,4 @@ #### Defined in -[packages/sdk/utils/src/levenshtein.ts:9](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/levenshtein.ts#L9) +[utils/src/levenshtein.ts:9](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/levenshtein.ts#L9) diff --git a/docs/sdk/utils/modules/logger.md b/docs/sdk/utils/modules/logger.md index 4f039fcb1..501934e54 100644 --- a/docs/sdk/utils/modules/logger.md +++ b/docs/sdk/utils/modules/logger.md @@ -36,7 +36,7 @@ #### Defined in -packages/sdk/base/lib/logger.d.ts:1 +base/lib/logger.d.ts:1 ## Functions @@ -56,7 +56,7 @@ packages/sdk/base/lib/logger.d.ts:1 #### Defined in -packages/sdk/base/lib/logger.d.ts:7 +base/lib/logger.d.ts:7 ___ @@ -76,7 +76,7 @@ ___ #### Defined in -packages/sdk/base/lib/logger.d.ts:3 +base/lib/logger.d.ts:3 ___ @@ -97,4 +97,4 @@ ___ #### Defined in -packages/sdk/base/lib/logger.d.ts:5 +base/lib/logger.d.ts:5 diff --git a/docs/sdk/utils/modules/parsing.md b/docs/sdk/utils/modules/parsing.md index 57549738f..836399c43 100644 --- a/docs/sdk/utils/modules/parsing.md +++ b/docs/sdk/utils/modules/parsing.md @@ -29,7 +29,7 @@ #### Defined in -[packages/sdk/utils/src/parsing.ts:7](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/parsing.ts#L7) +[utils/src/parsing.ts:7](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/parsing.ts#L7) ___ @@ -52,7 +52,7 @@ Parses an "array of strings" that is returned from a Solidity function #### Defined in -packages/sdk/base/lib/parsing.d.ts:8 +base/lib/parsing.d.ts:8 ___ @@ -72,4 +72,4 @@ ___ #### Defined in -packages/sdk/base/lib/parsing.d.ts:1 +base/lib/parsing.d.ts:1 diff --git a/docs/sdk/utils/modules/sign_typed_data_utils.md b/docs/sdk/utils/modules/sign_typed_data_utils.md index 295436f8d..2e87ca644 100644 --- a/docs/sdk/utils/modules/sign_typed_data_utils.md +++ b/docs/sdk/utils/modules/sign_typed_data_utils.md @@ -46,7 +46,7 @@ #### Defined in -[packages/sdk/utils/src/sign-typed-data-utils.ts:22](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/sign-typed-data-utils.ts#L22) +[utils/src/sign-typed-data-utils.ts:22](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/sign-typed-data-utils.ts#L22) ___ @@ -76,7 +76,7 @@ EIP712Optonal is not part of the EIP712 standard, but is fully compatible with i #### Defined in -[packages/sdk/utils/src/sign-typed-data-utils.ts:80](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/sign-typed-data-utils.ts#L80) +[utils/src/sign-typed-data-utils.ts:80](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/sign-typed-data-utils.ts#L80) ## Variables @@ -88,7 +88,7 @@ Array of all EIP-712 atomic type names. #### Defined in -[packages/sdk/utils/src/sign-typed-data-utils.ts:43](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/sign-typed-data-utils.ts#L43) +[utils/src/sign-typed-data-utils.ts:43](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/sign-typed-data-utils.ts#L43) ___ @@ -98,7 +98,7 @@ ___ #### Defined in -[packages/sdk/utils/src/sign-typed-data-utils.ts:63](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/sign-typed-data-utils.ts#L63) +[utils/src/sign-typed-data-utils.ts:63](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/sign-typed-data-utils.ts#L63) ___ @@ -108,7 +108,7 @@ ___ #### Defined in -[packages/sdk/utils/src/sign-typed-data-utils.ts:61](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/sign-typed-data-utils.ts#L61) +[utils/src/sign-typed-data-utils.ts:61](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/sign-typed-data-utils.ts#L61) ___ @@ -120,7 +120,7 @@ Undefined EIP712Optional type with value type boolean. #### Defined in -[packages/sdk/utils/src/sign-typed-data-utils.ts:114](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/sign-typed-data-utils.ts#L114) +[utils/src/sign-typed-data-utils.ts:114](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/sign-typed-data-utils.ts#L114) ___ @@ -132,7 +132,7 @@ Undefined EIP712Optional type with value type number. #### Defined in -[packages/sdk/utils/src/sign-typed-data-utils.ts:120](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/sign-typed-data-utils.ts#L120) +[utils/src/sign-typed-data-utils.ts:120](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/sign-typed-data-utils.ts#L120) ___ @@ -144,7 +144,7 @@ Undefined EIP712Optional type with value type string. #### Defined in -[packages/sdk/utils/src/sign-typed-data-utils.ts:126](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/sign-typed-data-utils.ts#L126) +[utils/src/sign-typed-data-utils.ts:126](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/sign-typed-data-utils.ts#L126) ## Functions @@ -172,7 +172,7 @@ Utility to construct an defined EIP712Optional value with inferred type. #### Defined in -[packages/sdk/utils/src/sign-typed-data-utils.ts:108](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/sign-typed-data-utils.ts#L108) +[utils/src/sign-typed-data-utils.ts:108](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/sign-typed-data-utils.ts#L108) ___ @@ -200,7 +200,7 @@ Utility to build EIP712Optional schemas for encoding and decoding with io-ts. #### Defined in -[packages/sdk/utils/src/sign-typed-data-utils.ts:101](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/sign-typed-data-utils.ts#L101) +[utils/src/sign-typed-data-utils.ts:101](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/sign-typed-data-utils.ts#L101) ___ @@ -222,7 +222,7 @@ Utility to build EIP712Optional types to insert in EIP-712 type arrays. #### Defined in -[packages/sdk/utils/src/sign-typed-data-utils.ts:90](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/sign-typed-data-utils.ts#L90) +[utils/src/sign-typed-data-utils.ts:90](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/sign-typed-data-utils.ts#L90) ___ @@ -246,7 +246,7 @@ Constructs the struct encoding of the data as the primary type. #### Defined in -[packages/sdk/utils/src/sign-typed-data-utils.ts:251](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/sign-typed-data-utils.ts#L251) +[utils/src/sign-typed-data-utils.ts:251](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/sign-typed-data-utils.ts#L251) ___ @@ -270,7 +270,7 @@ E.g. "Transaction(Person from,Person to,Asset tx)Asset(address token,uint256 amo #### Defined in -[packages/sdk/utils/src/sign-typed-data-utils.ts:184](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/sign-typed-data-utils.ts#L184) +[utils/src/sign-typed-data-utils.ts:184](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/sign-typed-data-utils.ts#L184) ___ @@ -294,7 +294,7 @@ A Buffer containing the hash of the typed data. #### Defined in -[packages/sdk/utils/src/sign-typed-data-utils.ts:136](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/sign-typed-data-utils.ts#L136) +[utils/src/sign-typed-data-utils.ts:136](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/sign-typed-data-utils.ts#L136) ___ @@ -316,7 +316,7 @@ ___ #### Defined in -[packages/sdk/utils/src/sign-typed-data-utils.ts:260](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/sign-typed-data-utils.ts#L260) +[utils/src/sign-typed-data-utils.ts:260](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/sign-typed-data-utils.ts#L260) ___ @@ -337,7 +337,7 @@ ___ #### Defined in -[packages/sdk/utils/src/sign-typed-data-utils.ts:195](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/sign-typed-data-utils.ts#L195) +[utils/src/sign-typed-data-utils.ts:195](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/sign-typed-data-utils.ts#L195) ___ @@ -368,4 +368,4 @@ Note that EIP-712 does not specify zero values, and so this is non-standard. #### Defined in -[packages/sdk/utils/src/sign-typed-data-utils.ts:276](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/sign-typed-data-utils.ts#L276) +[utils/src/sign-typed-data-utils.ts:276](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/sign-typed-data-utils.ts#L276) diff --git a/docs/sdk/utils/modules/signatureUtils.md b/docs/sdk/utils/modules/signatureUtils.md index 95737bcb0..fe86e29e8 100644 --- a/docs/sdk/utils/modules/signatureUtils.md +++ b/docs/sdk/utils/modules/signatureUtils.md @@ -56,7 +56,7 @@ Renames and re-exports [__type](signatureUtils.md#__type) #### Defined in -packages/sdk/base/lib/signatureUtils.d.ts:1 +base/lib/signatureUtils.d.ts:1 ___ @@ -81,7 +81,7 @@ ___ #### Defined in -[packages/sdk/utils/src/signatureUtils.ts:235](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/signatureUtils.ts#L235) +[utils/src/signatureUtils.ts:235](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/signatureUtils.ts#L235) ## Functions @@ -101,7 +101,7 @@ ___ #### Defined in -[packages/sdk/utils/src/signatureUtils.ts:64](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/signatureUtils.ts#L64) +[utils/src/signatureUtils.ts:64](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/signatureUtils.ts#L64) ___ @@ -122,7 +122,7 @@ ___ #### Defined in -[packages/sdk/utils/src/signatureUtils.ts:43](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/signatureUtils.ts#L43) +[utils/src/signatureUtils.ts:43](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/signatureUtils.ts#L43) ___ @@ -143,7 +143,7 @@ ___ #### Defined in -[packages/sdk/utils/src/signatureUtils.ts:196](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/signatureUtils.ts#L196) +[utils/src/signatureUtils.ts:196](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/signatureUtils.ts#L196) ___ @@ -163,7 +163,7 @@ ___ #### Defined in -[packages/sdk/utils/src/signatureUtils.ts:39](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/signatureUtils.ts#L39) +[utils/src/signatureUtils.ts:39](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/signatureUtils.ts#L39) ___ @@ -183,7 +183,7 @@ ___ #### Defined in -[packages/sdk/utils/src/signatureUtils.ts:34](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/signatureUtils.ts#L34) +[utils/src/signatureUtils.ts:34](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/signatureUtils.ts#L34) ___ @@ -211,7 +211,7 @@ ___ #### Defined in -[packages/sdk/utils/src/signatureUtils.ts:113](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/signatureUtils.ts#L113) +[utils/src/signatureUtils.ts:113](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/signatureUtils.ts#L113) ___ @@ -239,7 +239,7 @@ ___ #### Defined in -[packages/sdk/utils/src/signatureUtils.ts:117](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/signatureUtils.ts#L117) +[utils/src/signatureUtils.ts:117](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/signatureUtils.ts#L117) ___ @@ -264,7 +264,7 @@ string signer, or throws error if parsing fails #### Defined in -[packages/sdk/utils/src/signatureUtils.ts:153](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/signatureUtils.ts#L153) +[utils/src/signatureUtils.ts:153](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/signatureUtils.ts#L153) ___ @@ -289,7 +289,7 @@ string signer, or throws error if parsing fails #### Defined in -[packages/sdk/utils/src/signatureUtils.ts:166](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/signatureUtils.ts#L166) +[utils/src/signatureUtils.ts:166](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/signatureUtils.ts#L166) ___ @@ -317,7 +317,7 @@ ___ #### Defined in -[packages/sdk/utils/src/signatureUtils.ts:83](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/signatureUtils.ts#L83) +[utils/src/signatureUtils.ts:83](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/signatureUtils.ts#L83) ___ @@ -345,7 +345,7 @@ ___ #### Defined in -[packages/sdk/utils/src/signatureUtils.ts:91](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/signatureUtils.ts#L91) +[utils/src/signatureUtils.ts:91](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/signatureUtils.ts#L91) ___ @@ -368,7 +368,7 @@ ___ #### Defined in -[packages/sdk/utils/src/signatureUtils.ts:73](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/signatureUtils.ts#L73) +[utils/src/signatureUtils.ts:73](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/signatureUtils.ts#L73) ___ @@ -392,7 +392,7 @@ boolean, true if `signer` is a possible signer of `signature` #### Defined in -[packages/sdk/utils/src/signatureUtils.ts:179](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/signatureUtils.ts#L179) +[utils/src/signatureUtils.ts:179](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/signatureUtils.ts#L179) ___ @@ -414,4 +414,4 @@ ___ #### Defined in -[packages/sdk/utils/src/signatureUtils.ts:104](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/signatureUtils.ts#L104) +[utils/src/signatureUtils.ts:104](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/signatureUtils.ts#L104) diff --git a/docs/sdk/utils/modules/solidity.md b/docs/sdk/utils/modules/solidity.md index 67ed267ca..df00a1940 100644 --- a/docs/sdk/utils/modules/solidity.md +++ b/docs/sdk/utils/modules/solidity.md @@ -28,7 +28,7 @@ #### Defined in -node_modules/web3-utils/types/index.d.ts:98 +utils/node_modules/web3-utils/types/index.d.ts:98 ___ @@ -48,7 +48,7 @@ ___ #### Defined in -node_modules/web3-utils/types/index.d.ts:116 +utils/node_modules/web3-utils/types/index.d.ts:116 ___ @@ -68,4 +68,4 @@ ___ #### Defined in -node_modules/web3-utils/types/index.d.ts:117 +utils/node_modules/web3-utils/types/index.d.ts:117 diff --git a/docs/sdk/utils/modules/string.md b/docs/sdk/utils/modules/string.md index 45b24aa07..4836c22e6 100644 --- a/docs/sdk/utils/modules/string.md +++ b/docs/sdk/utils/modules/string.md @@ -40,4 +40,4 @@ Renames and re-exports [__type](string.md#__type) #### Defined in -[packages/sdk/utils/src/string.ts:5](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/string.ts#L5) +[utils/src/string.ts:5](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/string.ts#L5) diff --git a/docs/sdk/utils/modules/task.md b/docs/sdk/utils/modules/task.md index 2457ca513..7f6eaf54e 100644 --- a/docs/sdk/utils/modules/task.md +++ b/docs/sdk/utils/modules/task.md @@ -36,7 +36,7 @@ #### Defined in -packages/sdk/base/lib/task.d.ts:37 +base/lib/task.d.ts:37 ___ @@ -59,7 +59,7 @@ Runs an async function eternally until stopped #### Defined in -packages/sdk/base/lib/task.d.ts:36 +base/lib/task.d.ts:36 ___ @@ -85,4 +85,4 @@ ___ #### Defined in -packages/sdk/base/lib/task.d.ts:52 +base/lib/task.d.ts:52 diff --git a/docs/sdk/utils/modules/typed_data_constructors.md b/docs/sdk/utils/modules/typed_data_constructors.md index 5b78a290a..372f4b7f5 100644 --- a/docs/sdk/utils/modules/typed_data_constructors.md +++ b/docs/sdk/utils/modules/typed_data_constructors.md @@ -32,7 +32,7 @@ #### Defined in -[packages/sdk/utils/src/typed-data-constructors.ts:4](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/typed-data-constructors.ts#L4) +[utils/src/typed-data-constructors.ts:4](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/typed-data-constructors.ts#L4) ___ @@ -67,4 +67,4 @@ ___ #### Defined in -[packages/sdk/utils/src/typed-data-constructors.ts:52](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/typed-data-constructors.ts#L52) +[utils/src/typed-data-constructors.ts:52](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/utils/src/typed-data-constructors.ts#L52) diff --git a/docs/sdk/wallet-base/classes/wallet_base.WalletBase.md b/docs/sdk/wallet-base/classes/wallet_base.WalletBase.md index ad304a930..4f3104e79 100644 --- a/docs/sdk/wallet-base/classes/wallet_base.WalletBase.md +++ b/docs/sdk/wallet-base/classes/wallet_base.WalletBase.md @@ -72,7 +72,7 @@ ReadOnlyWallet.computeSharedSecret #### Defined in -[wallets/wallet-base/src/wallet-base.ts:143](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/wallet-base.ts#L143) +[wallets/wallet-base/src/wallet-base.ts:148](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/wallet-base.ts#L148) ___ @@ -97,7 +97,7 @@ ReadOnlyWallet.decrypt #### Defined in -[wallets/wallet-base/src/wallet-base.ts:135](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/wallet-base.ts#L135) +[wallets/wallet-base/src/wallet-base.ts:140](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/wallet-base.ts#L140) ___ @@ -198,7 +198,7 @@ ReadOnlyWallet.signPersonalMessage #### Defined in -[wallets/wallet-base/src/wallet-base.ts:99](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/wallet-base.ts#L99) +[wallets/wallet-base/src/wallet-base.ts:104](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/wallet-base.ts#L104) ___ @@ -253,4 +253,4 @@ ReadOnlyWallet.signTypedData #### Defined in -[wallets/wallet-base/src/wallet-base.ts:116](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/wallet-base.ts#L116) +[wallets/wallet-base/src/wallet-base.ts:121](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/wallet-base.ts#L121) diff --git a/docs/sdk/wallet-base/interfaces/signing_utils.LegacyEncodedTx.md b/docs/sdk/wallet-base/interfaces/signing_utils.LegacyEncodedTx.md new file mode 100644 index 000000000..bc183e40a --- /dev/null +++ b/docs/sdk/wallet-base/interfaces/signing_utils.LegacyEncodedTx.md @@ -0,0 +1,43 @@ +[@celo/wallet-base](../README.md) / [signing-utils](../modules/signing_utils.md) / LegacyEncodedTx + +# Interface: LegacyEncodedTx + +[signing-utils](../modules/signing_utils.md).LegacyEncodedTx + +## Table of contents + +### Properties + +- [rlpEncode](signing_utils.LegacyEncodedTx.md#rlpencode) +- [transaction](signing_utils.LegacyEncodedTx.md#transaction) +- [type](signing_utils.LegacyEncodedTx.md#type) + +## Properties + +### rlpEncode + +• **rlpEncode**: \`0x$\{string}\` + +#### Defined in + +[wallets/wallet-base/src/signing-utils.ts:217](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L217) + +___ + +### transaction + +• **transaction**: `FormattedCeloTx` + +#### Defined in + +[wallets/wallet-base/src/signing-utils.ts:218](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L218) + +___ + +### type + +• **type**: ``"celo-legacy"`` + +#### Defined in + +[wallets/wallet-base/src/signing-utils.ts:216](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L216) diff --git a/docs/sdk/wallet-base/modules/index.md b/docs/sdk/wallet-base/modules/index.md index 5a5a4a2c5..44c6546cc 100644 --- a/docs/sdk/wallet-base/modules/index.md +++ b/docs/sdk/wallet-base/modules/index.md @@ -6,12 +6,16 @@ ### References +- [LegacyEncodedTx](index.md#legacyencodedtx) - [UnlockableWallet](index.md#unlockablewallet) - [Wallet](index.md#wallet) - [WalletBase](index.md#walletbase) - [chainIdTransformationForSigning](index.md#chainidtransformationforsigning) - [decodeSig](index.md#decodesig) +- [determineTXType](index.md#determinetxtype) - [encodeTransaction](index.md#encodetransaction) +- [encode\_deprecated\_celo\_legacy\_type\_only\_for\_temporary\_ledger\_compat](index.md#encode_deprecated_celo_legacy_type_only_for_temporary_ledger_compat) +- [extractPublicKeyFromHashAndSignature](index.md#extractpublickeyfromhashandsignature) - [extractSignature](index.md#extractsignature) - [getHashFromEncoded](index.md#gethashfromencoded) - [getSignerFromTxEIP2718TX](index.md#getsignerfromtxeip2718tx) @@ -19,6 +23,8 @@ - [handleData](index.md#handledata) - [handleHexString](index.md#handlehexstring) - [handleNumber](index.md#handlenumber) +- [isCIP64](index.md#iscip64) +- [isEIP1559](index.md#iseip1559) - [isPriceToLow](index.md#ispricetolow) - [publicKeyPrefix](index.md#publickeyprefix) - [recoverMessageSigner](index.md#recovermessagesigner) @@ -33,6 +39,12 @@ ## References +### LegacyEncodedTx + +Re-exports [LegacyEncodedTx](../interfaces/signing_utils.LegacyEncodedTx.md) + +___ + ### UnlockableWallet Re-exports [UnlockableWallet](../interfaces/wallet_base.UnlockableWallet.md) @@ -63,12 +75,30 @@ Re-exports [decodeSig](signing_utils.md#decodesig) ___ +### determineTXType + +Re-exports [determineTXType](signing_utils.md#determinetxtype) + +___ + ### encodeTransaction Re-exports [encodeTransaction](signing_utils.md#encodetransaction) ___ +### encode\_deprecated\_celo\_legacy\_type\_only\_for\_temporary\_ledger\_compat + +Re-exports [encode_deprecated_celo_legacy_type_only_for_temporary_ledger_compat](signing_utils.md#encode_deprecated_celo_legacy_type_only_for_temporary_ledger_compat) + +___ + +### extractPublicKeyFromHashAndSignature + +Re-exports [extractPublicKeyFromHashAndSignature](signing_utils.md#extractpublickeyfromhashandsignature) + +___ + ### extractSignature Re-exports [extractSignature](signing_utils.md#extractsignature) @@ -111,6 +141,18 @@ Re-exports [handleNumber](signing_utils.md#handlenumber) ___ +### isCIP64 + +Re-exports [isCIP64](signing_utils.md#iscip64) + +___ + +### isEIP1559 + +Re-exports [isEIP1559](signing_utils.md#iseip1559) + +___ + ### isPriceToLow Re-exports [isPriceToLow](signing_utils.md#ispricetolow) diff --git a/docs/sdk/wallet-base/modules/signing_utils.md b/docs/sdk/wallet-base/modules/signing_utils.md index ebf09d040..feae00fce 100644 --- a/docs/sdk/wallet-base/modules/signing_utils.md +++ b/docs/sdk/wallet-base/modules/signing_utils.md @@ -4,6 +4,10 @@ ## Table of contents +### Interfaces + +- [LegacyEncodedTx](../interfaces/signing_utils.LegacyEncodedTx.md) + ### Variables - [publicKeyPrefix](signing_utils.md#publickeyprefix) @@ -14,7 +18,10 @@ - [chainIdTransformationForSigning](signing_utils.md#chainidtransformationforsigning) - [decodeSig](signing_utils.md#decodesig) +- [determineTXType](signing_utils.md#determinetxtype) - [encodeTransaction](signing_utils.md#encodetransaction) +- [encode\_deprecated\_celo\_legacy\_type\_only\_for\_temporary\_ledger\_compat](signing_utils.md#encode_deprecated_celo_legacy_type_only_for_temporary_ledger_compat) +- [extractPublicKeyFromHashAndSignature](signing_utils.md#extractpublickeyfromhashandsignature) - [extractSignature](signing_utils.md#extractsignature) - [getHashFromEncoded](signing_utils.md#gethashfromencoded) - [getSignerFromTxEIP2718TX](signing_utils.md#getsignerfromtxeip2718tx) @@ -22,6 +29,8 @@ - [handleData](signing_utils.md#handledata) - [handleHexString](signing_utils.md#handlehexstring) - [handleNumber](signing_utils.md#handlenumber) +- [isCIP64](signing_utils.md#iscip64) +- [isEIP1559](signing_utils.md#iseip1559) - [isPriceToLow](signing_utils.md#ispricetolow) - [recoverMessageSigner](signing_utils.md#recovermessagesigner) - [recoverTransaction](signing_utils.md#recovertransaction) @@ -39,7 +48,7 @@ #### Defined in -[wallets/wallet-base/src/signing-utils.ts:40](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L40) +[wallets/wallet-base/src/signing-utils.ts:53](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L53) ___ @@ -49,7 +58,7 @@ ___ #### Defined in -[wallets/wallet-base/src/signing-utils.ts:41](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L41) +[wallets/wallet-base/src/signing-utils.ts:54](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L54) ___ @@ -59,7 +68,7 @@ ___ #### Defined in -[wallets/wallet-base/src/signing-utils.ts:42](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L42) +[wallets/wallet-base/src/signing-utils.ts:55](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L55) ## Functions @@ -79,7 +88,7 @@ ___ #### Defined in -[wallets/wallet-base/src/signing-utils.ts:56](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L56) +[wallets/wallet-base/src/signing-utils.ts:69](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L69) ___ @@ -106,7 +115,27 @@ ___ #### Defined in -[wallets/wallet-base/src/signing-utils.ts:796](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L796) +[wallets/wallet-base/src/signing-utils.ts:799](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L799) + +___ + +### determineTXType + +▸ **determineTXType**(`serializedTransaction`): `OldTransactionTypes` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `serializedTransaction` | `string` | + +#### Returns + +`OldTransactionTypes` + +#### Defined in + +[wallets/wallet-base/src/signing-utils.ts:521](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L521) ___ @@ -118,11 +147,11 @@ ___ | Name | Type | | :------ | :------ | -| `rlpEncoded` | `RLPEncodedTx` | +| `rlpEncoded` | `RLPEncodedTx` \| [`LegacyEncodedTx`](../interfaces/signing_utils.LegacyEncodedTx.md) | | `signature` | `Object` | | `signature.r` | `Buffer` | | `signature.s` | `Buffer` | -| `signature.v` | `number` | +| `signature.v` | `number` \| `bigint` | #### Returns @@ -130,7 +159,53 @@ ___ #### Defined in -[wallets/wallet-base/src/signing-utils.ts:350](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L350) +[wallets/wallet-base/src/signing-utils.ts:349](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L349) + +___ + +### encode\_deprecated\_celo\_legacy\_type\_only\_for\_temporary\_ledger\_compat + +▸ **encode_deprecated_celo_legacy_type_only_for_temporary_ledger_compat**(`tx`): [`LegacyEncodedTx`](../interfaces/signing_utils.LegacyEncodedTx.md) + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `tx` | `CeloTx` | + +#### Returns + +[`LegacyEncodedTx`](../interfaces/signing_utils.LegacyEncodedTx.md) + +#### Defined in + +[wallets/wallet-base/src/signing-utils.ts:222](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L222) + +___ + +### extractPublicKeyFromHashAndSignature + +▸ **extractPublicKeyFromHashAndSignature**(`«destructured»`, `data`, `_prefix`): `string` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `«destructured»` | `Object` | +| › `r` | `string` | +| › `s` | `string` | +| › `v` | `number` | +| › `yParity` | ``0`` \| ``1`` | +| `data` | `Uint8Array` \| `NestedUint8Array` | +| `_prefix` | `TxTypeToPrefix` | + +#### Returns + +`string` + +#### Defined in + +[wallets/wallet-base/src/signing-utils.ts:809](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L809) ___ @@ -156,7 +231,7 @@ ___ #### Defined in -[wallets/wallet-base/src/signing-utils.ts:444](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L444) +[wallets/wallet-base/src/signing-utils.ts:441](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L441) ___ @@ -168,7 +243,7 @@ ___ | Name | Type | | :------ | :------ | -| `rlpEncode` | `string` | +| `rlpEncode` | \`0x$\{string}\` | #### Returns @@ -176,7 +251,7 @@ ___ #### Defined in -[wallets/wallet-base/src/signing-utils.ts:60](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L60) +[wallets/wallet-base/src/signing-utils.ts:73](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L73) ___ @@ -196,7 +271,7 @@ ___ #### Defined in -[wallets/wallet-base/src/signing-utils.ts:514](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L514) +[wallets/wallet-base/src/signing-utils.ts:511](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L511) ___ @@ -216,7 +291,7 @@ ___ #### Defined in -[wallets/wallet-base/src/signing-utils.ts:821](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L821) +[wallets/wallet-base/src/signing-utils.ts:837](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L837) ___ @@ -236,7 +311,7 @@ ___ #### Defined in -[wallets/wallet-base/src/signing-utils.ts:835](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L835) +[wallets/wallet-base/src/signing-utils.ts:851](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L851) ___ @@ -256,7 +331,7 @@ ___ #### Defined in -[wallets/wallet-base/src/signing-utils.ts:827](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L827) +[wallets/wallet-base/src/signing-utils.ts:843](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L843) ___ @@ -276,7 +351,47 @@ ___ #### Defined in -[wallets/wallet-base/src/signing-utils.ts:815](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L815) +[wallets/wallet-base/src/signing-utils.ts:831](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L831) + +___ + +### isCIP64 + +▸ **isCIP64**(`tx`): `boolean` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `tx` | `CeloTx` | + +#### Returns + +`boolean` + +#### Defined in + +[wallets/wallet-base/src/signing-utils.ts:328](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L328) + +___ + +### isEIP1559 + +▸ **isEIP1559**(`tx`): `boolean` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `tx` | `CeloTx` | + +#### Returns + +`boolean` + +#### Defined in + +[wallets/wallet-base/src/signing-utils.ts:324](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L324) ___ @@ -296,7 +411,7 @@ ___ #### Defined in -[wallets/wallet-base/src/signing-utils.ts:292](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L292) +[wallets/wallet-base/src/signing-utils.ts:310](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L310) ___ @@ -317,7 +432,7 @@ ___ #### Defined in -[wallets/wallet-base/src/signing-utils.ts:764](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L764) +[wallets/wallet-base/src/signing-utils.ts:767](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L767) ___ @@ -337,7 +452,7 @@ ___ #### Defined in -[wallets/wallet-base/src/signing-utils.ts:475](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L475) +[wallets/wallet-base/src/signing-utils.ts:472](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L472) ___ @@ -357,7 +472,7 @@ ___ #### Defined in -[wallets/wallet-base/src/signing-utils.ts:115](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L115) +[wallets/wallet-base/src/signing-utils.ts:131](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L131) ___ @@ -385,7 +500,7 @@ ___ #### Defined in -[wallets/wallet-base/src/signing-utils.ts:806](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L806) +[wallets/wallet-base/src/signing-utils.ts:822](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L822) ___ @@ -405,7 +520,7 @@ ___ #### Defined in -[wallets/wallet-base/src/signing-utils.ts:99](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L99) +[wallets/wallet-base/src/signing-utils.ts:112](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L112) ___ @@ -427,7 +542,7 @@ ___ #### Defined in -[wallets/wallet-base/src/signing-utils.ts:774](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L774) +[wallets/wallet-base/src/signing-utils.ts:777](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L777) ___ @@ -449,4 +564,4 @@ ___ #### Defined in -[wallets/wallet-base/src/signing-utils.ts:783](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L783) +[wallets/wallet-base/src/signing-utils.ts:786](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L786) diff --git a/docs/sdk/wallet-ledger/README.md b/docs/sdk/wallet-ledger/README.md index 8843df04f..be7dbb496 100644 --- a/docs/sdk/wallet-ledger/README.md +++ b/docs/sdk/wallet-ledger/README.md @@ -12,4 +12,3 @@ - [ledger-utils](modules/ledger_utils.md) - [ledger-wallet](modules/ledger_wallet.md) - [tokens](modules/tokens.md) -- [types](modules/types.md) diff --git a/docs/sdk/wallet-ledger/classes/ledger_signer.LedgerSigner.md b/docs/sdk/wallet-ledger/classes/ledger_signer.LedgerSigner.md index 47e6f4bb1..b66254755 100644 --- a/docs/sdk/wallet-ledger/classes/ledger_signer.LedgerSigner.md +++ b/docs/sdk/wallet-ledger/classes/ledger_signer.LedgerSigner.md @@ -35,7 +35,7 @@ Signs the EVM transaction with a Ledger device | Name | Type | | :------ | :------ | -| `ledger` | [`ILedger`](../interfaces/types.ILedger.md) | +| `ledger` | `default` | | `derivationPath` | `string` | | `ledgerAddressValidation` | [`AddressValidation`](../enums/ledger_wallet.AddressValidation.md) | | `appConfiguration` | `Object` | @@ -48,7 +48,7 @@ Signs the EVM transaction with a Ledger device #### Defined in -[wallet-ledger/src/ledger-signer.ts:25](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/ledger-signer.ts#L25) +[wallet-ledger/src/ledger-signer.ts:26](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/ledger-signer.ts#L26) ## Methods @@ -72,7 +72,7 @@ Signer.computeSharedSecret #### Defined in -[wallet-ledger/src/ledger-signer.ts:196](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/ledger-signer.ts#L196) +[wallet-ledger/src/ledger-signer.ts:197](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/ledger-signer.ts#L197) ___ @@ -96,7 +96,7 @@ Signer.decrypt #### Defined in -[wallet-ledger/src/ledger-signer.ts:190](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/ledger-signer.ts#L190) +[wallet-ledger/src/ledger-signer.ts:191](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/ledger-signer.ts#L191) ___ @@ -114,7 +114,7 @@ Signer.getNativeKey #### Defined in -[wallet-ledger/src/ledger-signer.ts:40](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/ledger-signer.ts#L40) +[wallet-ledger/src/ledger-signer.ts:41](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/ledger-signer.ts#L41) ___ @@ -138,7 +138,7 @@ Signer.signPersonalMessage #### Defined in -[wallet-ledger/src/ledger-signer.ts:82](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/ledger-signer.ts#L82) +[wallet-ledger/src/ledger-signer.ts:86](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/ledger-signer.ts#L86) ___ @@ -151,7 +151,7 @@ ___ | Name | Type | | :------ | :------ | | `addToV` | `number` | -| `encodedTx` | `RLPEncodedTx` | +| `encodedTx` | `RLPEncodedTx` \| `LegacyEncodedTx` | #### Returns @@ -163,7 +163,7 @@ Signer.signTransaction #### Defined in -[wallet-ledger/src/ledger-signer.ts:44](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/ledger-signer.ts#L44) +[wallet-ledger/src/ledger-signer.ts:45](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/ledger-signer.ts#L45) ___ @@ -187,4 +187,4 @@ Signer.signTypedData #### Defined in -[wallet-ledger/src/ledger-signer.ts:102](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/ledger-signer.ts#L102) +[wallet-ledger/src/ledger-signer.ts:106](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/ledger-signer.ts#L106) diff --git a/docs/sdk/wallet-ledger/classes/ledger_wallet.LedgerWallet.md b/docs/sdk/wallet-ledger/classes/ledger_wallet.LedgerWallet.md index 61216db4f..a61f49844 100644 --- a/docs/sdk/wallet-ledger/classes/ledger_wallet.LedgerWallet.md +++ b/docs/sdk/wallet-ledger/classes/ledger_wallet.LedgerWallet.md @@ -24,9 +24,14 @@ - [baseDerivationPath](ledger_wallet.LedgerWallet.md#basederivationpath) - [derivationPathIndexes](ledger_wallet.LedgerWallet.md#derivationpathindexes) +- [isCel2](ledger_wallet.LedgerWallet.md#iscel2) - [isSetupFinished](ledger_wallet.LedgerWallet.md#issetupfinished) +- [ledger](ledger_wallet.LedgerWallet.md#ledger) - [ledgerAddressValidation](ledger_wallet.LedgerWallet.md#ledgeraddressvalidation) - [transport](ledger_wallet.LedgerWallet.md#transport) +- [MIN\_VERSION\_EIP1559](ledger_wallet.LedgerWallet.md#min_version_eip1559) +- [MIN\_VERSION\_SUPPORTED](ledger_wallet.LedgerWallet.md#min_version_supported) +- [MIN\_VERSION\_TOKEN\_DATA](ledger_wallet.LedgerWallet.md#min_version_token_data) ### Methods @@ -36,6 +41,7 @@ - [hasAccount](ledger_wallet.LedgerWallet.md#hasaccount) - [init](ledger_wallet.LedgerWallet.md#init) - [removeAccount](ledger_wallet.LedgerWallet.md#removeaccount) +- [rlpEncodedTxForLedger](ledger_wallet.LedgerWallet.md#rlpencodedtxforledger) - [signPersonalMessage](ledger_wallet.LedgerWallet.md#signpersonalmessage) - [signTransaction](ledger_wallet.LedgerWallet.md#signtransaction) - [signTypedData](ledger_wallet.LedgerWallet.md#signtypeddata) @@ -44,7 +50,7 @@ ### constructor -• **new LedgerWallet**(`derivationPathIndexes?`, `baseDerivationPath?`, `transport?`, `ledgerAddressValidation?`): [`LedgerWallet`](ledger_wallet.LedgerWallet.md) +• **new LedgerWallet**(`derivationPathIndexes?`, `baseDerivationPath?`, `transport?`, `ledgerAddressValidation?`, `isCel2?`): [`LedgerWallet`](ledger_wallet.LedgerWallet.md) #### Parameters @@ -54,6 +60,7 @@ | `baseDerivationPath` | `string` | `CELO_BASE_DERIVATION_PATH` | base derivation path. Default: "44'/52752'/0'/0" | | `transport` | `any` | `{}` | Transport to connect the ledger device | | `ledgerAddressValidation` | [`AddressValidation`](../enums/ledger_wallet.AddressValidation.md) | `AddressValidation.firstTransactionPerAddress` | - | +| `isCel2?` | `boolean` | `undefined` | - | #### Returns @@ -65,7 +72,7 @@ RemoteWallet\<LedgerSigner\>.constructor #### Defined in -[wallet-ledger/src/ledger-wallet.ts:56](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/ledger-wallet.ts#L56) +[wallet-ledger/src/ledger-wallet.ts:69](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/ledger-wallet.ts#L69) ## Properties @@ -77,7 +84,7 @@ base derivation path. Default: "44'/52752'/0'/0" #### Defined in -[wallet-ledger/src/ledger-wallet.ts:58](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/ledger-wallet.ts#L58) +[wallet-ledger/src/ledger-wallet.ts:71](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/ledger-wallet.ts#L71) ___ @@ -92,7 +99,17 @@ Example: [3, 99, 53] will retrieve the derivation paths of #### Defined in -[wallet-ledger/src/ledger-wallet.ts:57](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/ledger-wallet.ts#L57) +[wallet-ledger/src/ledger-wallet.ts:70](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/ledger-wallet.ts#L70) + +___ + +### isCel2 + +• `Optional` `Readonly` **isCel2**: `boolean` + +#### Defined in + +[wallet-ledger/src/ledger-wallet.ts:74](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/ledger-wallet.ts#L74) ___ @@ -118,13 +135,23 @@ wallet-remote/lib/remote-wallet.d.ts:51 ___ +### ledger + +• **ledger**: `undefined` \| `default` + +#### Defined in + +[wallet-ledger/src/ledger-wallet.ts:59](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/ledger-wallet.ts#L59) + +___ + ### ledgerAddressValidation • `Readonly` **ledgerAddressValidation**: [`AddressValidation`](../enums/ledger_wallet.AddressValidation.md) = `AddressValidation.firstTransactionPerAddress` #### Defined in -[wallet-ledger/src/ledger-wallet.ts:60](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/ledger-wallet.ts#L60) +[wallet-ledger/src/ledger-wallet.ts:73](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/ledger-wallet.ts#L73) ___ @@ -136,7 +163,37 @@ Transport to connect the ledger device #### Defined in -[wallet-ledger/src/ledger-wallet.ts:59](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/ledger-wallet.ts#L59) +[wallet-ledger/src/ledger-wallet.ts:72](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/ledger-wallet.ts#L72) + +___ + +### MIN\_VERSION\_EIP1559 + +▪ `Static` **MIN\_VERSION\_EIP1559**: `string` = `'1.2.0'` + +#### Defined in + +[wallet-ledger/src/ledger-wallet.ts:58](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/ledger-wallet.ts#L58) + +___ + +### MIN\_VERSION\_SUPPORTED + +▪ `Static` **MIN\_VERSION\_SUPPORTED**: `string` = `'1.0.0'` + +#### Defined in + +[wallet-ledger/src/ledger-wallet.ts:56](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/ledger-wallet.ts#L56) + +___ + +### MIN\_VERSION\_TOKEN\_DATA + +▪ `Static` **MIN\_VERSION\_TOKEN\_DATA**: `string` = `'1.0.2'` + +#### Defined in + +[wallet-ledger/src/ledger-wallet.ts:57](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/ledger-wallet.ts#L57) ## Methods @@ -305,6 +362,26 @@ wallet-base/lib/wallet-base.d.ts:23 ___ +### rlpEncodedTxForLedger + +▸ **rlpEncodedTxForLedger**(`txParams`): `Promise`\<`RLPEncodedTx` \| `LegacyEncodedTx`\> + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `txParams` | `CeloTx` | + +#### Returns + +`Promise`\<`RLPEncodedTx` \| `LegacyEncodedTx`\> + +#### Defined in + +[wallet-ledger/src/ledger-wallet.ts:98](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/ledger-wallet.ts#L98) + +___ + ### signPersonalMessage ▸ **signPersonalMessage**(`address`, `data`): `Promise`\<`string`\> @@ -360,7 +437,7 @@ RemoteWallet.signTransaction #### Defined in -[wallet-ledger/src/ledger-wallet.ts:71](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/ledger-wallet.ts#L71) +[wallet-ledger/src/ledger-wallet.ts:85](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/ledger-wallet.ts#L85) ___ diff --git a/docs/sdk/wallet-ledger/enums/ledger_wallet.AddressValidation.md b/docs/sdk/wallet-ledger/enums/ledger_wallet.AddressValidation.md index fac61ee74..ae8621587 100644 --- a/docs/sdk/wallet-ledger/enums/ledger_wallet.AddressValidation.md +++ b/docs/sdk/wallet-ledger/enums/ledger_wallet.AddressValidation.md @@ -21,7 +21,7 @@ #### Defined in -[wallet-ledger/src/ledger-wallet.ts:20](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/ledger-wallet.ts#L20) +[wallet-ledger/src/ledger-wallet.ts:28](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/ledger-wallet.ts#L28) ___ @@ -31,7 +31,7 @@ ___ #### Defined in -[wallet-ledger/src/ledger-wallet.ts:22](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/ledger-wallet.ts#L22) +[wallet-ledger/src/ledger-wallet.ts:30](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/ledger-wallet.ts#L30) ___ @@ -41,7 +41,7 @@ ___ #### Defined in -[wallet-ledger/src/ledger-wallet.ts:18](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/ledger-wallet.ts#L18) +[wallet-ledger/src/ledger-wallet.ts:26](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/ledger-wallet.ts#L26) ___ @@ -51,4 +51,4 @@ ___ #### Defined in -[wallet-ledger/src/ledger-wallet.ts:24](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/ledger-wallet.ts#L24) +[wallet-ledger/src/ledger-wallet.ts:32](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/ledger-wallet.ts#L32) diff --git a/docs/sdk/wallet-ledger/interfaces/tokens.API.md b/docs/sdk/wallet-ledger/interfaces/tokens.API.md index 05f7e2450..2e89fab38 100644 --- a/docs/sdk/wallet-ledger/interfaces/tokens.API.md +++ b/docs/sdk/wallet-ledger/interfaces/tokens.API.md @@ -33,7 +33,7 @@ #### Defined in -[wallet-ledger/src/tokens.ts:45](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/tokens.ts#L45) +[wallet-ledger/src/tokens.ts:36](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/tokens.ts#L36) ___ @@ -51,4 +51,4 @@ ___ #### Defined in -[wallet-ledger/src/tokens.ts:46](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/tokens.ts#L46) +[wallet-ledger/src/tokens.ts:37](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/tokens.ts#L37) diff --git a/docs/sdk/wallet-ledger/interfaces/tokens.TokenInfo.md b/docs/sdk/wallet-ledger/interfaces/tokens.TokenInfo.md index 4a23bf9b9..31ebb59b4 100644 --- a/docs/sdk/wallet-ledger/interfaces/tokens.TokenInfo.md +++ b/docs/sdk/wallet-ledger/interfaces/tokens.TokenInfo.md @@ -23,7 +23,7 @@ #### Defined in -[wallet-ledger/src/tokens.ts:22](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/tokens.ts#L22) +[wallet-ledger/src/tokens.ts:30](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/tokens.ts#L30) ___ @@ -33,7 +33,7 @@ ___ #### Defined in -[wallet-ledger/src/tokens.ts:19](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/tokens.ts#L19) +[wallet-ledger/src/tokens.ts:27](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/tokens.ts#L27) ___ @@ -43,7 +43,7 @@ ___ #### Defined in -[wallet-ledger/src/tokens.ts:24](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/tokens.ts#L24) +[wallet-ledger/src/tokens.ts:32](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/tokens.ts#L32) ___ @@ -53,7 +53,7 @@ ___ #### Defined in -[wallet-ledger/src/tokens.ts:21](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/tokens.ts#L21) +[wallet-ledger/src/tokens.ts:29](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/tokens.ts#L29) ___ @@ -63,7 +63,7 @@ ___ #### Defined in -[wallet-ledger/src/tokens.ts:23](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/tokens.ts#L23) +[wallet-ledger/src/tokens.ts:31](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/tokens.ts#L31) ___ @@ -73,4 +73,4 @@ ___ #### Defined in -[wallet-ledger/src/tokens.ts:20](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/tokens.ts#L20) +[wallet-ledger/src/tokens.ts:28](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/tokens.ts#L28) diff --git a/docs/sdk/wallet-ledger/interfaces/types.ILedger.md b/docs/sdk/wallet-ledger/interfaces/types.ILedger.md deleted file mode 100644 index 18bb00255..000000000 --- a/docs/sdk/wallet-ledger/interfaces/types.ILedger.md +++ /dev/null @@ -1,135 +0,0 @@ -[@celo/wallet-ledger](../README.md) / [types](../modules/types.md) / ILedger - -# Interface: ILedger - -[types](../modules/types.md).ILedger - -## Table of contents - -### Methods - -- [getAddress](types.ILedger.md#getaddress) -- [getAppConfiguration](types.ILedger.md#getappconfiguration) -- [provideERC20TokenInformation](types.ILedger.md#provideerc20tokeninformation) -- [signEIP712HashedMessage](types.ILedger.md#signeip712hashedmessage) -- [signPersonalMessage](types.ILedger.md#signpersonalmessage) -- [signTransaction](types.ILedger.md#signtransaction) - -## Methods - -### getAddress - -▸ **getAddress**(`derivationPath`, `forceValidation?`): `Promise`\<\{ `address?`: \`0x$\{string}\` ; `derivationPath?`: `string` }\> - -#### Parameters - -| Name | Type | -| :------ | :------ | -| `derivationPath` | `string` | -| `forceValidation?` | `boolean` | - -#### Returns - -`Promise`\<\{ `address?`: \`0x$\{string}\` ; `derivationPath?`: `string` }\> - -#### Defined in - -[wallet-ledger/src/types.d.ts:5](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/types.d.ts#L5) - -___ - -### getAppConfiguration - -▸ **getAppConfiguration**(): `Promise`\<\{ `arbitraryDataEnabled`: `number` ; `version`: `string` }\> - -#### Returns - -`Promise`\<\{ `arbitraryDataEnabled`: `number` ; `version`: `string` }\> - -#### Defined in - -[wallet-ledger/src/types.d.ts:16](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/types.d.ts#L16) - -___ - -### provideERC20TokenInformation - -▸ **provideERC20TokenInformation**(`TokenInfo`): `Promise`\<`unknown`\> - -#### Parameters - -| Name | Type | -| :------ | :------ | -| `TokenInfo` | `any` | - -#### Returns - -`Promise`\<`unknown`\> - -#### Defined in - -[wallet-ledger/src/types.d.ts:17](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/types.d.ts#L17) - -___ - -### signEIP712HashedMessage - -▸ **signEIP712HashedMessage**(`derivationPath`, `domainSeparator`, `structHash`): `Promise`\<[`LedgerSignature`](../modules/types.md#ledgersignature)\> - -#### Parameters - -| Name | Type | -| :------ | :------ | -| `derivationPath` | `string` | -| `domainSeparator` | `Buffer` | -| `structHash` | `Buffer` | - -#### Returns - -`Promise`\<[`LedgerSignature`](../modules/types.md#ledgersignature)\> - -#### Defined in - -[wallet-ledger/src/types.d.ts:11](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/types.d.ts#L11) - -___ - -### signPersonalMessage - -▸ **signPersonalMessage**(`derivationPath`, `data`): `Promise`\<[`LedgerSignature`](../modules/types.md#ledgersignature)\> - -#### Parameters - -| Name | Type | -| :------ | :------ | -| `derivationPath` | `string` | -| `data` | `string` | - -#### Returns - -`Promise`\<[`LedgerSignature`](../modules/types.md#ledgersignature)\> - -#### Defined in - -[wallet-ledger/src/types.d.ts:10](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/types.d.ts#L10) - -___ - -### signTransaction - -▸ **signTransaction**(`derivationPath`, `data`): `Promise`\<[`LedgerSignature`](../modules/types.md#ledgersignature)\> - -#### Parameters - -| Name | Type | -| :------ | :------ | -| `derivationPath` | `string` | -| `data` | `string` | - -#### Returns - -`Promise`\<[`LedgerSignature`](../modules/types.md#ledgersignature)\> - -#### Defined in - -[wallet-ledger/src/types.d.ts:9](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/types.d.ts#L9) diff --git a/docs/sdk/wallet-ledger/modules/data.md b/docs/sdk/wallet-ledger/modules/data.md index bb4a62ecd..6c148a23c 100644 --- a/docs/sdk/wallet-ledger/modules/data.md +++ b/docs/sdk/wallet-ledger/modules/data.md @@ -6,14 +6,25 @@ ### Variables -- [export=](data.md#export=) +- [default](data.md#default) +- [legacyLedgerPublicKeyHex](data.md#legacyledgerpublickeyhex) ## Variables -### export= +### default -• **export=**: ``"AAAAaARDRUxPRx7ON1DaI3+TuOM5xTaYm4l4pDgAAAASAACk7DBFAiEA5rECRg94+fCoIvoG9/5qWh62zl2C6Y+aFuuZrFe4CtcCIEJbRrkL3gqwT/Jj+7L3neazgpVCCTZZ3HX9JXXg5vleAAAAaARjVVNEdl3oFoRYYedaJfyhIrtomLixKCoAAAASAACk7DBFAiEApwQFHNBKXp+V2jq8BMD2y/5AwC9bhPQ2H4hT/vMl/B4CIFalOVtBFGREUKMU/F5vDlJLeQrTn6GQeDertpB2FpMvAAAAaARjRVVS2HY8uidqNzjm3oW0s79f3tbWynMAAAASAACk7DBFAiEAh2UeP1+SI2Ed5SiAjpJF6MkMrVa94gUwjJztyBlzhWMCIHfaOrEsxdxAGx+P+hxuSNO4zcw6KRLfJkkuic1V/CrHAAAAagZiIENFTE/dyb5X9VP+dXUtYWBrlMvX4CZO+AAAABIAAPNwMEUCIQCi62KsBfuNcfX0MriiRZ7a5DKERhtIz7sZ1SqBT7ruhgIgVrfmavyWzxzDW4AQeHn++A4qPjB1pQKoHvNXo8Hf1SMAAABpBmIgY1VTRGJJKmRKWI/ZBCcL7QatUrmr/qGuAAAAEgAA83AwRAIgGDYx4oB/gkYUqLeXqvEZXx9nOxVHzTe2ajyd2wnehxgCICQBe/rBPcXiaQJj3pdoXxroct/hV6r3G2G7y79EOEAPAAAAaQZiIGNFVVL57OMBJHrSziGJSUGDCiRw9Od0ygAAABIAAPNwMEQCIEdcFWP+HxEUoF1sCGVd34QGS0hL5cVUdrWdqVm3bYTgAiBCMA+Rg3Ubc3xla/35wzZesPlbeSMEPcr4uqL+8PeydwAAAGoGYSBDRUxP8ZSv31CwPmm9fQV8GqnhDJlU5MkAAAASAACu8zBFAiEAk/o0FBus2/QCrunFGEyoneQIRaMRC+y5L6Dvar8MU/kCIByJt2ziRhDG3AAbyXBIuJfZQujSHFcSJL3xF0xIlcPdAAAAaQZhIGNVU0SHQGn6HrFtRNYi8uDKJe6hcjabwQAAABIAAK7zMEQCIClrH2xgE3WMbD+hgQ7t5SiAcVG5WiUZ655voqCszKEoAiA/cO8UVgNY891MNJ5yeDk8w47WO0E1DQecrK71LR8g8gAAAGoGYSBjRVVSEMiSpuxDpT5F0LkWtLfTg7G3jA8AAAASAACu8zBFAiEAgpktbB1ZxyAwMJwKTSbZ30n8zgRuW0twbXoZxlsUAswCIHek4l4CIbjVMG2HVr0Ml9/8kA4F9dr69JBMaoSUkdKl"`` +• **default**: ``"AAAAZwRVU0RUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGAACk7DBEAiA45AhZco0/POPgpuUPBqRnGG1SfGPpXE8+Hckw0dZLCQIgWteUoWhghs0KwxfgX2P0jJ2gYQEAbq6J+mWfSs9yWzcAAABnBFVTRFQOKj4FvJoW9SkqYXBFanEMuJxvcgAAABIAAKTsMEQCIAl/QSQA3JAF4c+otYCNG+JghDIV17habVFg/kLOLG9UAiAY+PSK6WBYObKt8OObZHKiAVWHOaI0E26OC61ytGCN4wAAAGgEVVNEQwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABgAApOwwRQIhAJAwutARDDU/EgrpV1SYRuLsKR/JjkYP4rRT6InIlo8GAiAgyuHrUNUuEdfijlmY8UWzR/jzLzycmkjEjL8qV06GvwAAAGcEVVNEQy8l3rOEjCB/yODDQDWzun/BV2ArAAAAEgAApOwwRAIgVYSG4e4JD7mbHMdOd29i5c4872THYeVWqDsb6ZE0JA4CIGVsHMurIGTBw1WUJqmOsBXUBlP5bhljUufw9jgQKq7JAAAAaARlWE9Gc/k9zEnLiiOeIDJmPpR13V7ymggAAAASAACk7DBFAiEA31wGJ9NfYN5Ujs3qkNxXowT73iNAxrBw7SdHTfLn47UCIH0fhGCTysFEdN31WIVCvkgoB2VKaF7Q6i8sZFOj++4XAAAAaARjVVNEdl3oFoRYYedaJfyhIrtomLixKCoAAAASAACk7DBFAiEApwQFHNBKXp+V2jq8BMD2y/5AwC9bhPQ2H4hT/vMl/B4CIFalOVtBFGREUKMU/F5vDlJLeQrTn6GQeDertpB2FpMvAAAAaARjRVVS2HY8uidqNzjm3oW0s79f3tbWynMAAAASAACk7DBFAiEAh2UeP1+SI2Ed5SiAjpJF6MkMrVa94gUwjJztyBlzhWMCIHfaOrEsxdxAGx+P+hxuSNO4zcw6KRLfJkkuic1V/CrHAAAAaAVjUkVBTOhTej0FbaRGZ3uenWxdtwTqq0eHAAAAEgAApOwwRAIgKq0LIfD4D+gU3xANTkNfCrpo8CBBZlpasrsjd/E3YuoCICU2CvRG4xPmFzmmDLIjvN2ARrjqtkwAjLeQ8jUxRbZIAAAAaQZiIGNVU0RiSSpkSliP2QQnC+0GrVK5q/6hrgAAABIAAPNwMEQCIBg2MeKAf4JGFKi3l6rxGV8fZzsVR803tmo8ndsJ3ocYAiAkAXv6wT3F4mkCY96XaF8a6HLf4Veq9xthu8u/RDhADwAAAGkGYiBlWE9GZMHYEmc+k7wDatw9VH2ZUGltpa8AAAASAADzcDBEAiAL0g/ZekAf2Zok/7GXeIcwKMibuiLprWKUDIxl8BcLRwIgJBOEVGXOISlfVmuqdUWrbR2xR9DNYafBO4wCxQN2mUEAAABqB2IgY1JFQUxqDu8r7Uww3Cy0L+bF8B+A9+8W0QAAABIAAPNwMEQCIAuSOFoyw6PPiuegcqMLtpvPU5ip23jlQKvjcggLxT0UAiAiVDv5VON1+peijMemQCD3Gvcz+BtCAgC60z76+mm2xQAAAGkGYiBjRVVS+ezjASR60s4hiUlBgwokcPTndMoAAAASAADzcDBEAiBHXBVj/h8RFKBdbAhlXd+EBktIS+XFVHa1nalZt22E4AIgQjAPkYN1G3N8ZWv9+cM2XrD5W3kjBD3K+Lqi/vD3sncAAABoBGEgRyQD09q4Q+bAOz0nHv+ReOapbCjSXwAAABIAAK7zMEUCIQCZTGG2AjD7sgxeavTx9xhfi8TEkEGv83Es3sl31NVjwwIgdUpDy6iaoiJbHxT/0/tiHs8FGYYdKRE1EPzMUIcm2+oAAABqBmEgY0VVUhDIkqbsQ6U+RdC5FrS304Oxt4wPAAAAEgAArvMwRQIhAIKZLWwdWccgMDCcCk0m2d9J/M4EbltLcG16GcZbFALMAiB3pOJeAiG41TBth1a9DJff/JAOBfXa+vSQTGqElJHSpQAAAGkFYSBFRkMa17YXy2xRVqbepuR1FNFkdrmfOAAAAAYAAK7zMEUCIQDIjpFbbedbDHebk1HaK2VoxHzTe8Tkn5VrB2KCne0i5QIgF8g1CYG9jclyquUUxC+vPprZPnCSSroJxMWhYIxgRtAAAABqBmEgVVNEQ0gi5Y3m9eSF75DfUcQc4BchMx3AAAAABgAArvMwRQIhANOSBnG6FiIl0EprRvWagcC7r8EJyzkC0XKum71zUQXAAiASh91Kt5m0jm7BVXRZou1xV+8DwCs4Nn3oT+Ogb1NRdAAAAGgFYSBFRkN9AneQmY9xSylMlv2p4nr1htHrtQAAAAYAAK7zMEQCICnuUijiwCApPFmsqpFcI3KdDgI4ueArA6Xgc9pd31ROAiBMr8ljj6A7N3vgklG8sSNAvbCB+WujFTtZFWYGwYHFrwAAAGkGYSBjVVNEh0Bp+h6xbUTWIvLgyiXuoXI2m8EAAAASAACu8zBEAiApax9sYBN1jGw/oYEO7eUogHFRuVolGeueb6KgrMyhKAIgP3DvFFYDWPPdTDSecng5PMOO1jtBNQ0HnKyu9S0fIPIAAABpBmEgZVhPRrD6FeACUW0DAYhAWcCqwPDHKwGdAAAAEgAArvMwRAIgIBy2pPKNIi1HG3FrxikDxfZL0NZQcKhUKMFiaiu0cxsCIDyeMa3QZM71diszR3uNso9U+mmB9AxMzVL6RLHmjRlbAAAAagZhIFVTRFTE+G6bSliNUBwcPiVijf1QvI1hXgAAABIAAK7zMEUCIQDX0yUA7NuyMcn52Q3o4f5aouT7hqLRDK05zaSapCT3qAIgDW3F0IpF386QYNiGqThC4a5OsgII7Kfz/qW6EYq1+VQAAABrB2EgY1JFQUzk1Rd4XQkdPFSBiDLbYJS8wnRFRQAAABIAAK7zMEUCIQDVjhKnLdzKU84vV/13nvvshLsaCC4IfzLFmieUNniSMAIgMCRja6R+GcT2OFVF8ClIx/7ZBlIHEIqooo/8Bnpy1sc="`` #### Defined in -[wallet-ledger/src/data.ts:1](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/data.ts#L1) +[wallet-ledger/src/data.ts:4](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/data.ts#L4) + +___ + +### legacyLedgerPublicKeyHex + +• `Const` **legacyLedgerPublicKeyHex**: `string` + +#### Defined in + +[wallet-ledger/src/data.ts:14](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/data.ts#L14) diff --git a/docs/sdk/wallet-ledger/modules/ledger_utils.md b/docs/sdk/wallet-ledger/modules/ledger_utils.md index 3a872213f..586407a4f 100644 --- a/docs/sdk/wallet-ledger/modules/ledger_utils.md +++ b/docs/sdk/wallet-ledger/modules/ledger_utils.md @@ -6,10 +6,35 @@ ### Functions +- [meetsVersionRequirements](ledger_utils.md#meetsversionrequirements) - [transportErrorFriendlyMessage](ledger_utils.md#transporterrorfriendlymessage) ## Functions +### meetsVersionRequirements + +▸ **meetsVersionRequirements**(`version`, `«destructured»`): `boolean` + +#### Parameters + +| Name | Type | +| :------ | :------ | +| `version` | `string` \| `SemVer` | +| `«destructured»` | `Object` | +| › `inclusive?` | `boolean` | +| › `maximum?` | `string` \| `SemVer` | +| › `minimum?` | `string` \| `SemVer` | + +#### Returns + +`boolean` + +#### Defined in + +[wallet-ledger/src/ledger-utils.ts:17](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/ledger-utils.ts#L17) + +___ + ### transportErrorFriendlyMessage ▸ **transportErrorFriendlyMessage**(`error`): `void` @@ -26,4 +51,4 @@ #### Defined in -[wallet-ledger/src/ledger-utils.ts:5](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/ledger-utils.ts#L5) +[wallet-ledger/src/ledger-utils.ts:6](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/ledger-utils.ts#L6) diff --git a/docs/sdk/wallet-ledger/modules/ledger_wallet.md b/docs/sdk/wallet-ledger/modules/ledger_wallet.md index cd4e7fee0..d06c44f57 100644 --- a/docs/sdk/wallet-ledger/modules/ledger_wallet.md +++ b/docs/sdk/wallet-ledger/modules/ledger_wallet.md @@ -28,13 +28,13 @@ #### Defined in -[wallet-ledger/src/ledger-wallet.ts:12](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/ledger-wallet.ts#L12) +[wallet-ledger/src/ledger-wallet.ts:20](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/ledger-wallet.ts#L20) ## Functions ### newLedgerWalletWithSetup -▸ **newLedgerWalletWithSetup**(`transport`, `derivationPathIndexes?`, `baseDerivationPath?`, `ledgerAddressValidation?`): `Promise`\<[`LedgerWallet`](../classes/ledger_wallet.LedgerWallet.md)\> +▸ **newLedgerWalletWithSetup**(`transport`, `derivationPathIndexes?`, `baseDerivationPath?`, `ledgerAddressValidation?`, `isCel2?`): `Promise`\<[`LedgerWallet`](../classes/ledger_wallet.LedgerWallet.md)\> #### Parameters @@ -44,6 +44,7 @@ | `derivationPathIndexes?` | `number`[] | | `baseDerivationPath?` | `string` | | `ledgerAddressValidation?` | [`AddressValidation`](../enums/ledger_wallet.AddressValidation.md) | +| `isCel2?` | `boolean` | #### Returns @@ -51,4 +52,4 @@ #### Defined in -[wallet-ledger/src/ledger-wallet.ts:27](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/ledger-wallet.ts#L27) +[wallet-ledger/src/ledger-wallet.ts:35](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/ledger-wallet.ts#L35) diff --git a/docs/sdk/wallet-ledger/modules/tokens.md b/docs/sdk/wallet-ledger/modules/tokens.md index 543ace37a..19e6ce332 100644 --- a/docs/sdk/wallet-ledger/modules/tokens.md +++ b/docs/sdk/wallet-ledger/modules/tokens.md @@ -11,34 +11,31 @@ ### Functions -- [compareLedgerAppVersions](tokens.md#compareledgerappversions) +- [legacyTokenInfoByAddressAndChainId](tokens.md#legacytokeninfobyaddressandchainid) - [list](tokens.md#list) +- [listLegacy](tokens.md#listlegacy) - [tokenInfoByAddressAndChainId](tokens.md#tokeninfobyaddressandchainid) ## Functions -### compareLedgerAppVersions +### legacyTokenInfoByAddressAndChainId -▸ **compareLedgerAppVersions**(`version1`, `version2`): `number` +▸ **legacyTokenInfoByAddressAndChainId**(`contract`, `chainId`): `undefined` \| ``null`` \| [`TokenInfo`](../interfaces/tokens.TokenInfo.md) #### Parameters | Name | Type | | :------ | :------ | -| `version1` | `string` | -| `version2` | `string` | +| `contract` | `string` | +| `chainId` | `number` | #### Returns -`number` - --1: version1 < version2, - 0: version1 == version2, - 1: version1 > version2 +`undefined` \| ``null`` \| [`TokenInfo`](../interfaces/tokens.TokenInfo.md) #### Defined in -[wallet-ledger/src/tokens.ts:33](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/tokens.ts#L33) +[wallet-ledger/src/tokens.ts:14](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/tokens.ts#L14) ___ @@ -54,7 +51,21 @@ list all the ERC20 tokens informations #### Defined in -[wallet-ledger/src/tokens.ts:16](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/tokens.ts#L16) +[wallet-ledger/src/tokens.ts:23](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/tokens.ts#L23) + +___ + +### listLegacy + +▸ **listLegacy**(): [`TokenInfo`](../interfaces/tokens.TokenInfo.md)[] + +#### Returns + +[`TokenInfo`](../interfaces/tokens.TokenInfo.md)[] + +#### Defined in + +[wallet-ledger/src/tokens.ts:24](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/tokens.ts#L24) ___ @@ -77,4 +88,4 @@ Retrieve the token information by a given contract address and chainId if any #### Defined in -[wallet-ledger/src/tokens.ts:8](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/tokens.ts#L8) +[wallet-ledger/src/tokens.ts:9](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/tokens.ts#L9) diff --git a/docs/sdk/wallet-ledger/modules/types.md b/docs/sdk/wallet-ledger/modules/types.md deleted file mode 100644 index 4f3b61670..000000000 --- a/docs/sdk/wallet-ledger/modules/types.md +++ /dev/null @@ -1,31 +0,0 @@ -[@celo/wallet-ledger](../README.md) / types - -# Module: types - -## Table of contents - -### Interfaces - -- [ILedger](../interfaces/types.ILedger.md) - -### Type Aliases - -- [LedgerSignature](types.md#ledgersignature) - -## Type Aliases - -### LedgerSignature - -Ƭ **LedgerSignature**: `Object` - -#### Type declaration - -| Name | Type | -| :------ | :------ | -| `r` | `string` | -| `s` | `string` | -| `v` | `string` | - -#### Defined in - -[wallet-ledger/src/types.d.ts:3](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/types.d.ts#L3) diff --git a/docs/sdk/wallet-rpc/classes/rpc_signer.RpcSigner.md b/docs/sdk/wallet-rpc/classes/rpc_signer.RpcSigner.md index b3e4faebc..ae498e070 100644 --- a/docs/sdk/wallet-rpc/classes/rpc_signer.RpcSigner.md +++ b/docs/sdk/wallet-rpc/classes/rpc_signer.RpcSigner.md @@ -77,7 +77,7 @@ Signer.computeSharedSecret #### Defined in -[sdk/wallets/wallet-rpc/src/rpc-signer.ts:174](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-rpc/src/rpc-signer.ts#L174) +[sdk/wallets/wallet-rpc/src/rpc-signer.ts:173](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-rpc/src/rpc-signer.ts#L173) ___ @@ -101,7 +101,7 @@ Signer.decrypt #### Defined in -[sdk/wallets/wallet-rpc/src/rpc-signer.ts:165](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-rpc/src/rpc-signer.ts#L165) +[sdk/wallets/wallet-rpc/src/rpc-signer.ts:164](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-rpc/src/rpc-signer.ts#L164) ___ @@ -119,7 +119,7 @@ Signer.getNativeKey #### Defined in -[sdk/wallets/wallet-rpc/src/rpc-signer.ts:123](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-rpc/src/rpc-signer.ts#L123) +[sdk/wallets/wallet-rpc/src/rpc-signer.ts:122](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-rpc/src/rpc-signer.ts#L122) ___ @@ -154,7 +154,7 @@ ___ #### Defined in -[sdk/wallets/wallet-rpc/src/rpc-signer.ts:147](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-rpc/src/rpc-signer.ts#L147) +[sdk/wallets/wallet-rpc/src/rpc-signer.ts:146](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-rpc/src/rpc-signer.ts#L146) ___ @@ -178,7 +178,7 @@ Signer.signPersonalMessage #### Defined in -[sdk/wallets/wallet-rpc/src/rpc-signer.ts:115](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-rpc/src/rpc-signer.ts#L115) +[sdk/wallets/wallet-rpc/src/rpc-signer.ts:114](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-rpc/src/rpc-signer.ts#L114) ___ @@ -216,7 +216,7 @@ Signer.signTransaction #### Defined in -[sdk/wallets/wallet-rpc/src/rpc-signer.ts:102](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-rpc/src/rpc-signer.ts#L102) +[sdk/wallets/wallet-rpc/src/rpc-signer.ts:101](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-rpc/src/rpc-signer.ts#L101) ___ @@ -240,7 +240,7 @@ Signer.signTypedData #### Defined in -[sdk/wallets/wallet-rpc/src/rpc-signer.ts:106](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-rpc/src/rpc-signer.ts#L106) +[sdk/wallets/wallet-rpc/src/rpc-signer.ts:105](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-rpc/src/rpc-signer.ts#L105) ___ @@ -261,4 +261,4 @@ ___ #### Defined in -[sdk/wallets/wallet-rpc/src/rpc-signer.ts:125](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-rpc/src/rpc-signer.ts#L125) +[sdk/wallets/wallet-rpc/src/rpc-signer.ts:124](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-rpc/src/rpc-signer.ts#L124) diff --git a/package.json b/package.json index 3bea1b75f..3ad129a36 100644 --- a/package.json +++ b/package.json @@ -37,6 +37,7 @@ ] }, "devDependencies": { + "@celo/typescript": "workspace:^", "@changesets/changelog-github": "^0.5.0", "@types/jest": "^29.1.1", "@types/node": "18.7.16", @@ -50,11 +51,12 @@ "eslint-plugin-import": "^2.29.1", "eslint-plugin-unicorn": "^50.0.1", "husky": "^8.0.0", - "jest": "^29.0.2", + "jest": "^29.7.0", + "patch-package": "^8.0.0", "prettier": "^2.7.1", "pretty-quick": "^2.0.1", "semver": "7.5.2", - "ts-jest": "^29.0.0", + "ts-jest": "^29.1.5", "ts-node": "^10.9.1", "tsconfig-paths": "^3.8.0", "typedoc": "^0.25.7", @@ -72,5 +74,8 @@ "dependencies": { "@changesets/cli": "^2.26.2" }, - "packageManager": "yarn@4.0.2" + "packageManager": "yarn@4.0.2", + "publishConfig": { + "registry": "https://registry.npmjs.org/" + } } diff --git a/packages/cli/jest.config.js b/packages/cli/jest.config.js index 5c8609ee3..c9608b009 100644 --- a/packages/cli/jest.config.js +++ b/packages/cli/jest.config.js @@ -2,7 +2,7 @@ module.exports = { preset: 'ts-jest', testMatch: ['/src/**/?(*.)+(spec|test).ts'], setupFiles: ['/src/test-utils/setup.ts'], - setupFilesAfterEnv: ['@celo/dev-utils/lib/matchers'], + setupFilesAfterEnv: ['@celo/dev-utils/lib/matchers', '/src/test-utils/setupAfterEnv.ts'], globalSetup: '/src/test-utils/setup.global.ts', globalTeardown: '/src/test-utils/teardown.global.ts', } diff --git a/packages/cli/package.json b/packages/cli/package.json index 695f6cfe5..c45fc0d6e 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -29,7 +29,7 @@ "lint": "yarn run --top-level eslint -c .eslintrc.js ", "prepublish": "", "prepack": "yarn run build && oclif manifest && oclif readme", - "test": "TZ=UTC yarn jest --runInBand --forceExit" + "test": "TZ=UTC NODE_OPTIONS='--experimental-vm-modules' yarn jest --runInBand --workerIdleMemoryLimit=0.1 --forceExit" }, "dependencies": { "@celo/abis": "11.0.0", @@ -38,7 +38,6 @@ "@celo/connect": "^5.3.0", "@celo/contractkit": "^8.0.0", "@celo/cryptographic-utils": "^5.0.8", - "@celo/devchain-anvil": "^0.0.11007", "@celo/explorer": "^5.0.10", "@celo/governance": "^5.1.1", "@celo/identity": "^5.1.2", @@ -48,7 +47,7 @@ "@celo/wallet-ledger": "^5.2.0", "@celo/wallet-local": "^5.2.0", "@ethereumjs/util": "8.0.5", - "@ledgerhq/hw-transport-node-hid": "^6.27.4", + "@ledgerhq/hw-transport-node-hid": "^6.28.5", "@mento-protocol/mento-sdk": "^0.2.2", "@oclif/core": "^3.19.1", "@oclif/plugin-autocomplete": "^3.0.5", @@ -80,13 +79,13 @@ "@types/fs-extra": "^8.0.0", "@types/humanize-duration": "^3.27.0", "@types/inquirer": "^6.5.0", - "@types/ledgerhq__hw-transport-node-hid": "^4.22.2", + "@types/ledgerhq__hw-transport-node-hid": "^4.22.5", "@types/node": "^18.7.16", "@types/prompts": "^1.1.1", - "jest": "^29.0.2", + "jest": "^29.7.0", "oclif": "^4.3.4", "prettier": "1.19.1", - "ts-jest": "^29.0.0", + "ts-jest": "^29.1.5", "ts-node": "^10.9.1", "typescript": "5.3.3" }, diff --git a/packages/cli/src/base.ts b/packages/cli/src/base.ts index 7d199e4ef..caa00d6a1 100644 --- a/packages/cli/src/base.ts +++ b/packages/cli/src/base.ts @@ -1,5 +1,5 @@ import { StrongAddress } from '@celo/base' -import { ReadOnlyWallet } from '@celo/connect' +import { ReadOnlyWallet, isCel2 } from '@celo/connect' import { ContractKit, newKitFromWeb3 } from '@celo/contractkit' import { AzureHSMWallet } from '@celo/wallet-hsm-azure' import { AddressValidation, newLedgerWalletWithSetup } from '@celo/wallet-ledger' @@ -93,6 +93,8 @@ export abstract class BaseCommand extends Command { private _web3: Web3 | null = null private _kit: ContractKit | null = null + private cel2: boolean | null = null + async getWeb3() { if (!this._web3) { const res = await this.parse() @@ -170,7 +172,8 @@ export abstract class BaseCommand extends Command { transport, derivationPathIndexes, undefined, - ledgerConfirmation + ledgerConfirmation, + await this.isCel2() ) } catch (err) { console.log('Check if the ledger is connected and logged.') @@ -238,4 +241,12 @@ export abstract class BaseCommand extends Command { return super.finally(arg) } + + protected async isCel2() { + if (this.cel2 === null) { + this.cel2 = await isCel2(await this.getWeb3()) + } + + return this.cel2 + } } diff --git a/packages/cli/src/commands/network/whitelist.test.ts b/packages/cli/src/commands/network/whitelist.test.ts index 4416a1fc6..50f0fc3e7 100644 --- a/packages/cli/src/commands/network/whitelist.test.ts +++ b/packages/cli/src/commands/network/whitelist.test.ts @@ -19,9 +19,9 @@ testWithGanache('network:whitelist cmd', () => { await testLocally(Whitelist, []) expect(spy.mock.calls[0][0]).toMatchInlineSnapshot(` "Available currencies: - 0x5315e44798395d4a952530d131249fE00f554565 - Celo Dollar (cUSD) - 0x965D352283a3C8A016b9BBbC9bf6306665d495E7 - Celo Brazilian Real (cREAL) - 0xdD66C23e07b4D6925b6089b5Fe6fc9E62941aFE8 - Celo Euro (cEUR)" + 0x5315e44798395d4a952530d131249fE00f554565 - Celo Dollar (cUSD) - 18 decimals + 0x965D352283a3C8A016b9BBbC9bf6306665d495E7 - Celo Brazilian Real (cREAL) - 18 decimals + 0xdD66C23e07b4D6925b6089b5Fe6fc9E62941aFE8 - Celo Euro (cEUR) - 18 decimals" `) }) @@ -35,6 +35,7 @@ testWithGanache('network:whitelist cmd', () => { symbol: 'MCK', address: '0x123', adaptedToken: '0x456', + decimals: 69, }, ]) ) @@ -43,7 +44,7 @@ testWithGanache('network:whitelist cmd', () => { expect(spy.mock.calls[0][0]).toMatchInlineSnapshot(` "Available currencies: - 0x123 - mock token (MCK) (adapted token: 0x456)" + 0x123 - mock token (MCK) (adapted token: 0x456) - 69 decimals" `) mock.mockClear() diff --git a/packages/cli/src/commands/network/whitelist.ts b/packages/cli/src/commands/network/whitelist.ts index 6aa1349d5..74c59668b 100644 --- a/packages/cli/src/commands/network/whitelist.ts +++ b/packages/cli/src/commands/network/whitelist.ts @@ -17,10 +17,10 @@ export default class Whitelist extends BaseCommand { const feeCurrencyWhitelist = await kit.contracts.getFeeCurrencyWhitelist() const validFeeCurrencies = await feeCurrencyWhitelist.getWhitelist() const pairs = (await feeCurrencyWhitelist.getFeeCurrencyInformation(validFeeCurrencies)).map( - ({ name, symbol, address, adaptedToken }) => + ({ name, symbol, address, adaptedToken, decimals }) => `${address} - ${name || 'unknown name'} (${symbol || 'N/A'})${ adaptedToken ? ` (adapted token: ${adaptedToken})` : '' - }` + } - ${decimals} decimals` ) console.log(`Available currencies:\n${pairs.join('\n')}`) } diff --git a/packages/cli/src/test-utils/cliUtils.ts b/packages/cli/src/test-utils/cliUtils.ts index 6478a8bd2..0c023a037 100644 --- a/packages/cli/src/test-utils/cliUtils.ts +++ b/packages/cli/src/test-utils/cliUtils.ts @@ -17,7 +17,12 @@ export async function testLocallyWithWeb3Node( } export const extractHostFromWeb3 = (web3: Web3): string => { - if (web3.currentProvider instanceof Web3.providers.HttpProvider) { + // why would the constructor name be HttpProvider but it not be considered an instance of HttpProvider? idk but it happens + if ( + web3.currentProvider instanceof Web3.providers.HttpProvider || + web3.currentProvider?.constructor.name === 'HttpProvider' + ) { + // @ts-ignore return web3.currentProvider.host } @@ -26,7 +31,7 @@ export const extractHostFromWeb3 = (web3: Web3): string => { return (web3.currentProvider as any).existingProvider.host } - throw new Error('Unsupported provider') + throw new Error(`Unsupported provider, ${web3.currentProvider?.constructor.name}`) } export async function testLocally( diff --git a/packages/cli/src/test-utils/setupAfterEnv.ts b/packages/cli/src/test-utils/setupAfterEnv.ts new file mode 100644 index 000000000..a77d43bc2 --- /dev/null +++ b/packages/cli/src/test-utils/setupAfterEnv.ts @@ -0,0 +1,4 @@ +afterEach(() => { + jest.clearAllTimers() + jest.clearAllMocks() +}) diff --git a/packages/dev-utils/package.json b/packages/dev-utils/package.json index f9fedecb4..5da8b3dbe 100644 --- a/packages/dev-utils/package.json +++ b/packages/dev-utils/package.json @@ -30,6 +30,8 @@ "web3-core-helpers": "1.10.4" }, "devDependencies": { + "@celo/devchain-anvil": "^0.0.11007", + "@celo/typescript": "workspace:^", "@tsconfig/recommended": "^1.0.3", "@types/fs-extra": "^8.1.0", "@types/targz": "1.0.0" diff --git a/packages/sdk/base/package.json b/packages/sdk/base/package.json index f6fe77c59..f66450c26 100644 --- a/packages/sdk/base/package.json +++ b/packages/sdk/base/package.json @@ -14,7 +14,7 @@ "build": "yarn run --top-level tsc -b .", "clean": "yarn run --top-level tsc -b . --clean", "docs": "yarn run --top-level typedoc", - "test": "yarn run --top-level jest --runInBand --ci", + "test": "yarn run --top-level jest --runInBand --ci --forceExit", "test:verbose": "yarn run --top-level jest --verbose", "lint": "yarn run --top-level eslint -c .eslintrc.js " }, @@ -22,7 +22,7 @@ "lib/**/*" ], "devDependencies": { - "@celo/typescript": "0.0.1", + "@celo/typescript": "workspace:^", "@noble/ciphers": "0.4.1", "@noble/curves": "1.3.0", "@noble/hashes": "1.3.3", diff --git a/packages/sdk/connect/package.json b/packages/sdk/connect/package.json index 60d7cfe45..d99f09ace 100644 --- a/packages/sdk/connect/package.json +++ b/packages/sdk/connect/package.json @@ -35,6 +35,8 @@ "web3-eth-contract": "1.10.4" }, "devDependencies": { + "@celo/typescript": "workspace:^", + "@types/debug": "^4.1.12", "web3": "1.10.4", "web3-core": "1.10.4", "web3-eth": "1.10.4", diff --git a/packages/sdk/connect/src/celo-provider.test.ts b/packages/sdk/connect/src/celo-provider.test.ts index 13650d1f7..0f5f01f11 100644 --- a/packages/sdk/connect/src/celo-provider.test.ts +++ b/packages/sdk/connect/src/celo-provider.test.ts @@ -31,13 +31,12 @@ class MockWallet implements ReadOnlyWallet { return Promise.resolve({ raw: '0xmock', tx: { - type: 'celo-legacy', + type: 'cip64', nonce: 'nonce', - gasPrice: 'gasPrice', + maxFeePerGas: 'maxFeePerGas', + maxPriorityFeePerGas: 'maxPriorityFeePerGas', gas: 'gas', feeCurrency: 'feeCurrency', - gatewayFeeRecipient: 'gatewayFeeRecipient', - gatewayFee: 'gatewayFee', to: 'to', value: 'value', input: 'input', @@ -134,8 +133,6 @@ describe('CeloProvider', () => { gas: 10, gasPrice: 99, feeCurrency: '0x124356', - gatewayFeeRecipient: '0x1234', - gatewayFee: '0x5678', data: '0xabcdef', chainId: 1, } diff --git a/packages/sdk/connect/src/types.ts b/packages/sdk/connect/src/types.ts index 34bbdc098..88d9d6a0a 100644 --- a/packages/sdk/connect/src/types.ts +++ b/packages/sdk/connect/src/types.ts @@ -12,14 +12,6 @@ export type Address = string export type Hex = `0x${string}` export interface CeloParams { feeCurrency: StrongAddress - /* - @deprecated - */ - gatewayFeeRecipient: string - /* - @deprecated - */ - gatewayFee: string } export type AccessListRaw = [string, string[]][] @@ -32,14 +24,6 @@ export interface FormattedCeloTx { data: string | undefined value: HexOrMissing feeCurrency?: HexOrMissing - /* - @deprecated - */ - gatewayFeeRecipient?: HexOrMissing - /* - @deprecated - */ - gatewayFee?: HexOrMissing gas: HexOrMissing gasPrice?: Hex maxFeePerGas?: Hex @@ -51,8 +35,8 @@ export interface FormattedCeloTx { export type CeloTx = TransactionConfig & Partial & { accessList?: AccessList; type?: TransactionTypes } - -export type CeloTxWithSig = CeloTx & { v: number; s: string; r: string; yParity: 0 | 1 } +export type WithSig = T & { v: number; s: string; r: string; yParity: 0 | 1 } +export type CeloTxWithSig = WithSig export interface CeloTxObject { arguments: any[] call(tx?: CeloTx): Promise @@ -66,7 +50,7 @@ export { BlockNumber, EventLog, Log, PromiEvent, Sign } from 'web3-core' export { Block, BlockHeader, Syncing } from 'web3-eth' export { Contract, ContractSendMethod, PastEventOptions } from 'web3-eth-contract' -export type TransactionTypes = 'ethereum-legacy' | 'eip1559' | 'celo-legacy' | 'cip42' | 'cip64' +export type TransactionTypes = 'ethereum-legacy' | 'eip1559' | 'cip64' interface CommonTXProperties { nonce: string @@ -96,24 +80,6 @@ export interface CIP64TXProperties extends FeeMarketAndAccessListTXProperties { type: 'cip64' } -export interface CIP42TXProperties extends FeeMarketAndAccessListTXProperties { - feeCurrency: string - gatewayFeeRecipient?: string - gatewayFee?: string - type: 'cip42' -} - -/* - @deprecated - */ -export interface LegacyTXProperties extends CommonTXProperties { - gasPrice: string - feeCurrency: string - gatewayFeeRecipient: string - gatewayFee: string - type: 'celo-legacy' -} - export interface EthereumLegacyTXProperties extends CommonTXProperties { gasPrice: string type: 'ethereum-legacy' @@ -121,12 +87,7 @@ export interface EthereumLegacyTXProperties extends CommonTXProperties { export interface EncodedTransaction { raw: Hex - tx: - | EthereumLegacyTXProperties - | LegacyTXProperties - | CIP42TXProperties - | EIP1559TXProperties - | CIP64TXProperties + tx: EthereumLegacyTXProperties | EIP1559TXProperties | CIP64TXProperties } export type CeloTxPending = Transaction & Partial diff --git a/packages/sdk/connect/src/utils/formatter.ts b/packages/sdk/connect/src/utils/formatter.ts index ebba6760d..ae5c50ec7 100644 --- a/packages/sdk/connect/src/utils/formatter.ts +++ b/packages/sdk/connect/src/utils/formatter.ts @@ -31,8 +31,6 @@ export function inputCeloTxFormatter(tx: CeloTx): FormattedCeloTx { maxFeePerGas, maxPriorityFeePerGas, feeCurrency, - gatewayFee, - gatewayFeeRecipient, data, value, accessList, @@ -53,12 +51,6 @@ export function inputCeloTxFormatter(tx: CeloTx): FormattedCeloTx { if (feeCurrency) { formattedTX.feeCurrency = inputAddressFormatter(feeCurrency) } - if (gatewayFeeRecipient) { - formattedTX.gatewayFeeRecipient = inputAddressFormatter(gatewayFeeRecipient) - } - if (gatewayFee) { - formattedTX.gatewayFee = numberToHex(gatewayFee) - } if (data && !isHex(data)) { throw new Error('The data field must be HEX encoded data.') @@ -93,10 +85,6 @@ export function outputCeloTxFormatter(tx: any): CeloTxPending { tx.gas = hexToNumber(tx.gas) tx.value = outputBigNumberFormatter(tx.value) - if (tx.gatewayFee) { - tx.gatewayFee = outputBigNumberFormatter(tx.gatewayFee) - } - if (tx.gasPrice) { tx.gasPrice = outputBigNumberFormatter(tx.gasPrice) } @@ -121,10 +109,6 @@ export function outputCeloTxFormatter(tx: any): CeloTxPending { tx.feeCurrency = toChecksumAddress(tx.feeCurrency) } - if (tx.gatewayFeeRecipient) { - tx.gatewayFeeRecipient = toChecksumAddress(tx.gatewayFeeRecipient) - } - return tx as CeloTxPending } diff --git a/packages/sdk/connect/src/utils/tx-params-normalizer.test.ts b/packages/sdk/connect/src/utils/tx-params-normalizer.test.ts index df4c6d487..84dd3143f 100644 --- a/packages/sdk/connect/src/utils/tx-params-normalizer.test.ts +++ b/packages/sdk/connect/src/utils/tx-params-normalizer.test.ts @@ -20,8 +20,6 @@ describe('TxParamsNormalizer class', () => { maxFeePerGas: undefined, maxPriorityFeePerGas: undefined, feeCurrency: undefined, - gatewayFeeRecipient: '1', - gatewayFee: '1', } beforeEach(() => { diff --git a/packages/sdk/connect/src/utils/tx-params-normalizer.ts b/packages/sdk/connect/src/utils/tx-params-normalizer.ts index 986bd3d4b..77cd90655 100644 --- a/packages/sdk/connect/src/utils/tx-params-normalizer.ts +++ b/packages/sdk/connect/src/utils/tx-params-normalizer.ts @@ -17,19 +17,12 @@ function isPresent(value: string | undefined) { export class TxParamsNormalizer { private chainId: number | null = null - private gatewayFeeRecipient: string | null = null constructor(readonly connection: Connection) {} public async populate(celoTxParams: CeloTx): Promise { const txParams = { ...celoTxParams } - if (isPresent(txParams.gatewayFeeRecipient) || isPresent(txParams.gatewayFee)) { - console.warn( - 'Gateway fee has been deprecated and will be removed see: https://github.com/celo-org/celo-proposals/blob/master/CIPs/cip-0057.md' - ) - } - const [chainId, nonce, gas, maxFeePerGas] = await Promise.all( [ async () => { @@ -102,21 +95,4 @@ export class TxParamsNormalizer { } return this.chainId } - - // Right now, Forno does not expose a node's coinbase so we can't - // set the gatewayFeeRecipient. Once that is fixed, we can reenable - // this. - // @ts-ignore - see comment above - private async getCoinbase(): Promise { - if (this.gatewayFeeRecipient === null) { - this.gatewayFeeRecipient = await this.connection.coinbase() - } - if (this.gatewayFeeRecipient == null) { - throw new Error( - 'missing-tx-params-populator@getCoinbase: Coinbase is null, we are not connected to a full ' + - 'node, cannot sign transactions locally' - ) - } - return this.gatewayFeeRecipient - } } diff --git a/packages/sdk/contractkit/jest_setup.ts b/packages/sdk/contractkit/jest_setup.ts index 3bc663448..69170cbb3 100644 --- a/packages/sdk/contractkit/jest_setup.ts +++ b/packages/sdk/contractkit/jest_setup.ts @@ -1,4 +1,11 @@ -const fetchMockSandbox = require('fetch-mock').sandbox() +import { URL } from 'node:url' +// @ts-ignore +global.URL = URL + +// @ts-ignore +const fetchMock = require('fetch-mock') + +const fetchMockSandbox = fetchMock.sandbox() jest.mock('cross-fetch', () => fetchMockSandbox) // @ts-ignore diff --git a/packages/sdk/contractkit/package.json b/packages/sdk/contractkit/package.json index 8c7f35b89..d58cb5e69 100644 --- a/packages/sdk/contractkit/package.json +++ b/packages/sdk/contractkit/package.json @@ -44,12 +44,13 @@ "@celo/celo-devchain": "^7.0.0", "@celo/dev-utils": "0.0.3", "@celo/odis-identifiers": "^1.0.0", + "@celo/typescript": "workspace:^", "@truffle/contract": "4.6.31", "@types/debug": "^4.1.5", "bn.js": "^5.1.0", - "fetch-mock": "9.10.4", + "fetch-mock": "^10.0.7", "ganache": "npm:@celo/ganache@7.8.0-unofficial.0", - "jest": "^29.0.2", + "jest": "^29.7.0", "ts-node": "^10.9.1" }, "engines": { diff --git a/packages/sdk/contractkit/src/globals.d.ts b/packages/sdk/contractkit/src/globals.d.ts index 0318570a8..b7f02cdc5 100644 --- a/packages/sdk/contractkit/src/globals.d.ts +++ b/packages/sdk/contractkit/src/globals.d.ts @@ -1 +1,6 @@ -declare const fetchMock +/* eslint import/no-extraneous-dependencies:off */ +import { FetchMockSandbox } from 'fetch-mock' + +declare global { + const fetchMock: FetchMockSandbox +} diff --git a/packages/sdk/contractkit/src/wrappers/FeeCurrencyWhitelistWrapper.ts b/packages/sdk/contractkit/src/wrappers/FeeCurrencyWhitelistWrapper.ts index ab2f8c160..ec9c9281e 100644 --- a/packages/sdk/contractkit/src/wrappers/FeeCurrencyWhitelistWrapper.ts +++ b/packages/sdk/contractkit/src/wrappers/FeeCurrencyWhitelistWrapper.ts @@ -25,6 +25,13 @@ const MINIMAL_TOKEN_INFO_ABI = [ outputs: [{ type: 'address', name: '', internalType: 'address' }], name: 'adaptedToken', }, + { + type: 'function' as const, + stateMutability: 'view', + inputs: [], + outputs: [{ type: 'uint8', name: '', internalType: 'uint8' }], + name: 'decimals', + }, ] as const /** @@ -64,11 +71,17 @@ export class FeeCurrencyWhitelistWrapper extends BaseWrapper undefined) as Promise, - ]).then(([name, symbol]) => ({ + contract.methods + .decimals() + .call() + .then((x: string) => x && parseInt(x, 10)) + .catch(() => undefined) as Promise, + ]).then(([name, symbol, decimals]) => ({ name, symbol, address, adaptedToken, + decimals, })) }) ) diff --git a/packages/sdk/cryptographic-utils/package.json b/packages/sdk/cryptographic-utils/package.json index cd70976ae..d5a2039f5 100644 --- a/packages/sdk/cryptographic-utils/package.json +++ b/packages/sdk/cryptographic-utils/package.json @@ -34,6 +34,6 @@ "@types/node": "^18.7.16" }, "devDependencies": { - "@celo/typescript": "0.0.1" + "@celo/typescript": "workspace:^" } } diff --git a/packages/sdk/explorer/jestSetup.ts b/packages/sdk/explorer/jestSetup.ts index a3708cfed..69170cbb3 100644 --- a/packages/sdk/explorer/jestSetup.ts +++ b/packages/sdk/explorer/jestSetup.ts @@ -1,7 +1,12 @@ -import { FetchMockSandbox } from 'fetch-mock' +import { URL } from 'node:url' +// @ts-ignore +global.URL = URL + +// @ts-ignore +const fetchMock = require('fetch-mock') -const fetchMockSandbox = require('fetch-mock').sandbox() +const fetchMockSandbox = fetchMock.sandbox() jest.mock('cross-fetch', () => fetchMockSandbox) // @ts-ignore -global.fetchMock = fetchMockSandbox as FetchMockSandbox +global.fetchMock = fetchMockSandbox diff --git a/packages/sdk/explorer/package.json b/packages/sdk/explorer/package.json index 4eba3ef90..effd6abc9 100644 --- a/packages/sdk/explorer/package.json +++ b/packages/sdk/explorer/package.json @@ -32,8 +32,10 @@ "debug": "^4.1.1" }, "devDependencies": { - "@types/fetch-mock": "^7.3.5", - "fetch-mock": "^9.11.0", + "@celo/dev-utils": "0.0.3", + "@celo/typescript": "workspace:^", + "@types/debug": "^4.1.12", + "fetch-mock": "^10.0.7", "web3": "1.10.4" }, "engines": { diff --git a/packages/sdk/governance/package.json b/packages/sdk/governance/package.json index 41e47243e..f2676d46f 100644 --- a/packages/sdk/governance/package.json +++ b/packages/sdk/governance/package.json @@ -36,5 +36,9 @@ }, "engines": { "node": ">=8.14.2" + }, + "devDependencies": { + "@celo/typescript": "workspace:^", + "@types/debug": "^4.1.12" } } diff --git a/packages/sdk/keystores/package.json b/packages/sdk/keystores/package.json index 3e1cc7a1a..d5bd2fc23 100644 --- a/packages/sdk/keystores/package.json +++ b/packages/sdk/keystores/package.json @@ -17,7 +17,7 @@ "build": "yarn run --top-level tsc -b .", "clean": "yarn run --top-level tsc -b . --clean", "docs": "yarn run --top-level typedoc", - "test": "yarn run --top-level jest --runInBand", + "test": "yarn run --top-level jest --runInBand --forceExit", "lint": "yarn run --top-level eslint -c .eslintrc.js ", "prepublishOnly": "yarn build" }, @@ -27,6 +27,7 @@ "ethereumjs-wallet": "^1.0.1" }, "devDependencies": { + "@celo/typescript": "workspace:^", "@types/rimraf": "3.0.2", "rimraf": "3.0.2" }, diff --git a/packages/sdk/network-utils/jestSetup.ts b/packages/sdk/network-utils/jestSetup.ts index 3bc663448..69170cbb3 100644 --- a/packages/sdk/network-utils/jestSetup.ts +++ b/packages/sdk/network-utils/jestSetup.ts @@ -1,4 +1,11 @@ -const fetchMockSandbox = require('fetch-mock').sandbox() +import { URL } from 'node:url' +// @ts-ignore +global.URL = URL + +// @ts-ignore +const fetchMock = require('fetch-mock') + +const fetchMockSandbox = fetchMock.sandbox() jest.mock('cross-fetch', () => fetchMockSandbox) // @ts-ignore diff --git a/packages/sdk/network-utils/package.json b/packages/sdk/network-utils/package.json index b062de2dc..15f91c915 100644 --- a/packages/sdk/network-utils/package.json +++ b/packages/sdk/network-utils/package.json @@ -28,7 +28,9 @@ }, "devDependencies": { "@celo/dev-utils": "0.0.3", - "fetch-mock": "9.10.4" + "@celo/typescript": "workspace:^", + "@types/debug": "^4.1.12", + "fetch-mock": "^10.0.7" }, "engines": { "node": ">=8.13.0" diff --git a/packages/sdk/network-utils/src/globals.d.ts b/packages/sdk/network-utils/src/globals.d.ts index 0318570a8..b7f02cdc5 100644 --- a/packages/sdk/network-utils/src/globals.d.ts +++ b/packages/sdk/network-utils/src/globals.d.ts @@ -1 +1,6 @@ -declare const fetchMock +/* eslint import/no-extraneous-dependencies:off */ +import { FetchMockSandbox } from 'fetch-mock' + +declare global { + const fetchMock: FetchMockSandbox +} diff --git a/packages/sdk/phone-utils/package.json b/packages/sdk/phone-utils/package.json index e45688fab..b52b8b7aa 100644 --- a/packages/sdk/phone-utils/package.json +++ b/packages/sdk/phone-utils/package.json @@ -34,6 +34,6 @@ "web3-utils": "^1.10.0" }, "devDependencies": { - "@celo/typescript": "0.0.1" + "@celo/typescript": "workspace:^" } } diff --git a/packages/sdk/transactions-uri/jestSetup.ts b/packages/sdk/transactions-uri/jestSetup.ts index 3bc663448..69170cbb3 100644 --- a/packages/sdk/transactions-uri/jestSetup.ts +++ b/packages/sdk/transactions-uri/jestSetup.ts @@ -1,4 +1,11 @@ -const fetchMockSandbox = require('fetch-mock').sandbox() +import { URL } from 'node:url' +// @ts-ignore +global.URL = URL + +// @ts-ignore +const fetchMock = require('fetch-mock') + +const fetchMockSandbox = fetchMock.sandbox() jest.mock('cross-fetch', () => fetchMockSandbox) // @ts-ignore diff --git a/packages/sdk/transactions-uri/package.json b/packages/sdk/transactions-uri/package.json index deffe018e..46c977cc9 100644 --- a/packages/sdk/transactions-uri/package.json +++ b/packages/sdk/transactions-uri/package.json @@ -34,7 +34,10 @@ "@celo/celo-devchain": "^7.0.0", "@celo/contractkit": "^8.0.0", "@celo/dev-utils": "0.0.3", - "dotenv": "^8.2.0" + "@celo/typescript": "workspace:^", + "cross-fetch": "3.1.5", + "dotenv": "^8.2.0", + "fetch-mock": "^10.0.7" }, "engines": { "node": ">=8.13.0" diff --git a/packages/sdk/transactions-uri/src/tx-uri.ts b/packages/sdk/transactions-uri/src/tx-uri.ts index 780c556cf..1374f6cbd 100644 --- a/packages/sdk/transactions-uri/src/tx-uri.ts +++ b/packages/sdk/transactions-uri/src/tx-uri.ts @@ -13,7 +13,7 @@ const ABI_TYPE_REGEX = '(u?int(8|16|32|64|128|256)|address|bool|bytes(4|32)?|str const FUNCTION_REGEX = `(?\\w+\\((?(,?${ABI_TYPE_REGEX})*)\\))` const ADDRESS_REGEX_STR = '(?
0x[a-fA-F0-9]{40})' const CHAIN_ID_REGEX = '(?\\d+)' -const TX_PARAMS = ['feeCurrency', 'gas', 'gasPrice', 'value', 'gatewayFee', 'gatewayFeeRecipient'] +const TX_PARAMS = ['feeCurrency', 'gas', 'gasPrice', 'value'] const PARAM_REGEX = `(${TX_PARAMS.join('|')})=\\w+` const ARGS_REGEX = 'args=\\[(,?\\w+)*\\]' const QUERY_REGEX = `(?(&?(${PARAM_REGEX}|${ARGS_REGEX}))+)` diff --git a/packages/sdk/utils/package.json b/packages/sdk/utils/package.json index 5ffc6aeec..0d89b23d7 100644 --- a/packages/sdk/utils/package.json +++ b/packages/sdk/utils/package.json @@ -37,6 +37,6 @@ "web3-utils": "1.10.4" }, "devDependencies": { - "@celo/typescript": "0.0.1" + "@celo/typescript": "workspace:^" } } diff --git a/packages/sdk/wallets/wallet-base/package.json b/packages/sdk/wallets/wallet-base/package.json index 46b1e3dd5..a97190cb6 100644 --- a/packages/sdk/wallets/wallet-base/package.json +++ b/packages/sdk/wallets/wallet-base/package.json @@ -22,6 +22,8 @@ "prepublishOnly": "yarn build" }, "devDependencies": { + "@celo/typescript": "workspace:^", + "@types/debug": "^4.1.12", "viem": "~1.5.4" }, "dependencies": { diff --git a/packages/sdk/wallets/wallet-base/src/signing-utils.test.ts b/packages/sdk/wallets/wallet-base/src/signing-utils.test.ts index 7cdf73ed5..c2d2d401b 100644 --- a/packages/sdk/wallets/wallet-base/src/signing-utils.test.ts +++ b/packages/sdk/wallets/wallet-base/src/signing-utils.test.ts @@ -6,6 +6,7 @@ import { privateKeyToAccount } from 'viem/accounts' import { celo } from 'viem/chains' import Web3 from 'web3' import { + encode_deprecated_celo_legacy_type_only_for_temporary_ledger_compat, extractSignature, getSignerFromTxEIP2718TX, handleBigInt, @@ -21,86 +22,6 @@ const PRIVATE_KEY1 = '0x1234567890abcdef1234567890abcdef1234567890abcdef12345678 const ACCOUNT_ADDRESS1 = normalizeAddressWith0x(privateKeyToAddress(PRIVATE_KEY1)) as `0x${string}` describe('rlpEncodedTx', () => { - describe('Celo legacy', () => { - const legacyTransaction = { - feeCurrency: '0x5409ED021D9299bf6814279A6A1411A7e866A631', - from: ACCOUNT_ADDRESS1, - to: ACCOUNT_ADDRESS1, - chainId: 2, - value: Web3.utils.toWei('1000', 'ether'), - nonce: 1, - gas: '1500000000', - gasPrice: '9900000000', - data: '0xabcdef', - } as const - it('convert CeloTx into RLP', () => { - const transaction = { - ...legacyTransaction, - } - const result = rlpEncodedTx(transaction) - expect(result).toMatchInlineSnapshot(` - { - "rlpEncode": "0xf8490185024e1603008459682f00945409ed021d9299bf6814279a6a1411a7e866a6318080941be31a94361a391bbafb2a4ccd704f57dc04d4bb893635c9adc5dea0000083abcdef028080", - "transaction": { - "chainId": 2, - "data": "0xabcdef", - "feeCurrency": "0x5409ed021d9299bf6814279a6a1411a7e866a631", - "from": "0x1be31a94361a391bbafb2a4ccd704f57dc04d4bb", - "gas": "0x59682f00", - "gasPrice": "0x024e160300", - "gatewayFee": "0x", - "gatewayFeeRecipient": "0x", - "maxFeePerGas": "0x", - "maxPriorityFeePerGas": "0x", - "nonce": 1, - "to": "0x1be31a94361a391bbafb2a4ccd704f57dc04d4bb", - "value": "0x3635c9adc5dea00000", - }, - "type": "celo-legacy", - } - `) - }) - - describe('when chainId / gasPrice / nonce is invalid', () => { - it('chainId is not a positive number it throws error', () => { - const transaction = { - ...legacyTransaction, - chainId: -1, - } as const - expect(() => rlpEncodedTx(transaction)).toThrowErrorMatchingInlineSnapshot( - `"Gas, nonce or chainId is less than than 0"` - ) - }) - it('gasPrice is not a positive number it throws error', () => { - const transaction = { - ...legacyTransaction, - gasPrice: -1, - } - expect(() => rlpEncodedTx(transaction)).toThrowErrorMatchingInlineSnapshot( - `"GasPrice or maxFeePerGas or maxPriorityFeePerGas is less than than 0"` - ) - }) - it('nonce is not a positive number it throws error', () => { - const transaction = { - ...legacyTransaction, - nonce: -1, - } - expect(() => rlpEncodedTx(transaction)).toThrowErrorMatchingInlineSnapshot( - `"Gas, nonce or chainId is less than than 0"` - ) - }) - it('gas is not a positive number it throws error', () => { - const transaction = { - ...legacyTransaction, - gas: -1, - } - expect(() => rlpEncodedTx(transaction)).toThrowErrorMatchingInlineSnapshot( - `"Gas, nonce or chainId is less than than 0"` - ) - }) - }) - }) - describe('when no gas fields are provided', () => { it('throws an error', () => { expect(() => rlpEncodedTx({})).toThrowErrorMatchingInlineSnapshot(`""gas" is missing"`) @@ -300,6 +221,44 @@ describe('rlpEncodedTx', () => { }) }) +describe('encode_deprecated_celo_legacy_type_only_for_temporary_ledger_compat', () => { + test('serializes the deprecated tx type correctly', () => { + const legacyTransaction = { + feeCurrency: '0x5409ED021D9299bf6814279A6A1411A7e866A631', + from: ACCOUNT_ADDRESS1, + to: ACCOUNT_ADDRESS1, + chainId: 2, + value: Web3.utils.toWei('1000', 'ether'), + nonce: 1, + gas: '1500000000', + gasPrice: '9900000000', + data: '0xabcdef', + } as const + + const result = + encode_deprecated_celo_legacy_type_only_for_temporary_ledger_compat(legacyTransaction) + expect(result).toMatchInlineSnapshot(` + { + "rlpEncode": "0xf8490185024e1603008459682f00945409ed021d9299bf6814279a6a1411a7e866a6318080941be31a94361a391bbafb2a4ccd704f57dc04d4bb893635c9adc5dea0000083abcdef028080", + "transaction": { + "chainId": 2, + "data": "0xabcdef", + "feeCurrency": "0x5409ed021d9299bf6814279a6a1411a7e866a631", + "from": "0x1be31a94361a391bbafb2a4ccd704f57dc04d4bb", + "gas": "0x59682f00", + "gasPrice": "0x024e160300", + "gatewayFee": "0x", + "gatewayFeeRecipient": "0x", + "nonce": 1, + "to": "0x1be31a94361a391bbafb2a4ccd704f57dc04d4bb", + "value": "0x3635c9adc5dea00000", + }, + "type": "celo-legacy", + } + `) + }) +}) + function ckToViem(tx: CeloTx & { v?: number }) { return { ...tx, diff --git a/packages/sdk/wallets/wallet-base/src/signing-utils.ts b/packages/sdk/wallets/wallet-base/src/signing-utils.ts index 778af325f..043fe3613 100644 --- a/packages/sdk/wallets/wallet-base/src/signing-utils.ts +++ b/packages/sdk/wallets/wallet-base/src/signing-utils.ts @@ -8,8 +8,10 @@ import { CeloTx, CeloTxWithSig, EncodedTransaction, + FormattedCeloTx, RLPEncodedTx, TransactionTypes, + WithSig, isPresent, } from '@celo/connect' import { @@ -27,7 +29,18 @@ import { keccak_256 } from '@noble/hashes/sha3' import { bytesToHex, hexToBytes } from '@noble/hashes/utils' import debugFactory from 'debug' import Web3 from 'web3' // TODO try to do this without web3 direct -import Accounts from 'web3-eth-accounts' + +type OldTransactionTypes = 'celo-legacy' | 'cip42' | TransactionTypes +type LegacyCeloTx = Omit & { + type: 'celo-legacy' +} +type LegacyCeloTxWithSig = WithSig +type LegacyCip42CeloTx = Omit & { + type: 'cip42' + gatewayFeeRecipient?: string + gatewayFee?: string +} +type LegacyCip42CeloTxWithSig = WithSig const { ecrecover, fromRpcSig, hashPersonalMessage, toBuffer } = ethUtil const debug = debugFactory('wallet-base:tx:sign') @@ -57,7 +70,7 @@ export function chainIdTransformationForSigning(chainId: number): number { return chainId * 2 + 35 } -export function getHashFromEncoded(rlpEncode: string): StrongAddress { +export function getHashFromEncoded(rlpEncode: StrongAddress): StrongAddress { const rlpBytes = hexToBytes(trimLeading0x(rlpEncode)) const hash = Buffer.from(keccak_256(rlpBytes)) return `0x${hash.toString('hex')}` @@ -78,8 +91,8 @@ function makeEven(hex: string) { } function signatureFormatter( - signature: { v: number; r: Buffer; s: Buffer }, - type: TransactionTypes + signature: { v: number | bigint; r: Buffer; s: Buffer }, + type: TransactionTypes | 'celo-legacy' ): { v: string r: string @@ -105,11 +118,14 @@ export function stringNumberOrBNToHex( return makeEven(`0x` + num.toString(16)) as StrongAddress } } -function stringNumberToHex(num?: number | string): StrongAddress { +function stringNumberToHex(num?: number | string | bigint): StrongAddress { const auxNumber = Number(num) if (num === '0x' || num === undefined || auxNumber === 0) { return '0x' } + if (typeof num === 'bigint') { + return makeEven(`0x` + num.toString(16)) as StrongAddress + } return makeEven(Web3.utils.numberToHex(num)) as StrongAddress } export function rlpEncodedTx(tx: CeloTx): RLPEncodedTx { @@ -123,8 +139,6 @@ export function rlpEncodedTx(tx: CeloTx): RLPEncodedTx { transaction.chainId = tx.chainId || 1 // Celo Specific transaction.feeCurrency = ensureLeading0x((tx.feeCurrency || '0x').toLowerCase()) - transaction.gatewayFeeRecipient = ensureLeading0x((tx.gatewayFeeRecipient || '0x').toLowerCase()) - transaction.gatewayFee = stringNumberOrBNToHex(tx.gatewayFee) // Legacy transaction.gasPrice = stringNumberOrBNToHex(tx.gasPrice) @@ -148,30 +162,8 @@ export function rlpEncodedTx(tx: CeloTx): RLPEncodedTx { transaction.accessList || [], transaction.feeCurrency || '0x', ]) - delete transaction.gatewayFee - delete transaction.gatewayFeeRecipient delete transaction.gasPrice return { transaction, rlpEncode: concatHex([TxTypeToPrefix.cip64, rlpEncode]), type: 'cip64' } - } else if (isCIP42(tx)) { - // There shall be a typed transaction with the code 0x7c that has the following format: - // 0x7c || rlp([chain_id, nonce, max_priority_fee_per_gas, max_fee_per_gas, gas_limit, feecurrency, gatewayFeeRecipient, gatewayfee, destination, amount, data, access_list, signature_y_parity, signature_r, signature_s]). - // This will be in addition to the type 0x02 transaction as specified in EIP-1559. - rlpEncode = rlpEncodeHex([ - stringNumberToHex(transaction.chainId), - stringNumberToHex(transaction.nonce), - transaction.maxPriorityFeePerGas || '0x', - transaction.maxFeePerGas || '0x', - transaction.gas || '0x', - transaction.feeCurrency || '0x', - transaction.gatewayFeeRecipient || '0x', - transaction.gatewayFee || '0x', - transaction.to || '0x', - transaction.value || '0x', - transaction.data || '0x', - transaction.accessList || [], - ]) - delete transaction.gasPrice - return { transaction, rlpEncode: concatHex([TxTypeToPrefix.cip42, rlpEncode]), type: 'cip42' } } else if (isEIP1559(tx)) { // https://eips.ethereum.org/EIPS/eip-1559 // 0x02 || rlp([chain_id, nonce, max_priority_fee_per_gas, max_fee_per_gas, gas_limit, destination, amount, data, access_list, signature_y_parity, signature_r, signature_s]). @@ -187,32 +179,12 @@ export function rlpEncodedTx(tx: CeloTx): RLPEncodedTx { transaction.accessList || [], ]) delete transaction.feeCurrency - delete transaction.gatewayFee - delete transaction.gatewayFeeRecipient delete transaction.gasPrice return { transaction, rlpEncode: concatHex([TxTypeToPrefix.eip1559, rlpEncode]), type: 'eip1559', } - } else if (isCeloLegacy(tx)) { - // This order should match the order in Geth. - // https://github.com/celo-org/celo-blockchain/blob/027dba2e4584936cc5a8e8993e4e27d28d5247b8/core/types/transaction.go#L65 - rlpEncode = rlpEncodeHex([ - stringNumberToHex(transaction.nonce), - transaction.gasPrice, - transaction.gas, - transaction.feeCurrency, - transaction.gatewayFeeRecipient, - transaction.gatewayFee, - transaction.to, - transaction.value, - transaction.data, - stringNumberToHex(transaction.chainId), - '0x', - '0x', - ]) - return { transaction, rlpEncode, type: 'celo-legacy' } } else { // https://github.com/celo-org/celo-proposals/blob/master/CIPs/cip-0035.md // rlp([nonce, gasprice, gaslimit, recipient, amount, data, v, r, s]) @@ -228,8 +200,6 @@ export function rlpEncodedTx(tx: CeloTx): RLPEncodedTx { '0x', ]) delete transaction.feeCurrency - delete transaction.gatewayFee - delete transaction.gatewayFeeRecipient return { transaction, rlpEncode, type: 'ethereum-legacy' } } } @@ -242,9 +212,57 @@ enum TxTypeToPrefix { eip1559 = '0x02', } +export interface LegacyEncodedTx { + type: 'celo-legacy' + rlpEncode: `0x${string}` + transaction: FormattedCeloTx +} + +// dont use this its in snake case specifically to make you hesitate. +export function encode_deprecated_celo_legacy_type_only_for_temporary_ledger_compat( + tx: CeloTx +): LegacyEncodedTx { + const transaction = inputCeloTxFormatter(tx) + transaction.to = ensureLeading0x((tx.to || '0x').toLowerCase()) + transaction.nonce = Number(((tx.nonce as any) !== '0x' ? tx.nonce : 0) || 0) + transaction.data = (tx.data || '0x').toLowerCase() + transaction.value = stringNumberOrBNToHex(tx.value) + transaction.gas = stringNumberOrBNToHex(tx.gas) + transaction.chainId = tx.chainId || 1 + // Celo Specific + transaction.feeCurrency = ensureLeading0x((tx.feeCurrency || '0x').toLowerCase()) + // we arent supporting the full classic celo tx so we can zero out these fields. + + // @ts-expect-error + transaction.gatewayFeeRecipient = '0x' + // @ts-expect-error + transaction.gatewayFee = '0x' + // Legacy + transaction.gasPrice = stringNumberOrBNToHex(tx.gasPrice) + // This order should match the order in Geth. + // https://github.com/celo-org/celo-blockchain/blob/027dba2e4584936cc5a8e8993e4e27d28d5247b8/core/types/transaction.go#L65 + const rlpEncode = rlpEncodeHex([ + stringNumberToHex(transaction.nonce), + transaction.gasPrice, + transaction.gas, + transaction.feeCurrency, + // @ts-expect-error + transaction.gatewayFeeRecipient, + // @ts-expect-error + transaction.gatewayFee, + transaction.to, + transaction.value, + transaction.data, + stringNumberToHex(transaction.chainId), + '0x', + '0x', + ]) + return { transaction, rlpEncode, type: 'celo-legacy' } +} + function concatTypePrefixHex( rawTransaction: string, - txType: EncodedTransaction['tx']['type'] + txType: EncodedTransaction['tx']['type'] | 'celo-legacy' ): StrongAddress { const prefix = TxTypeToPrefix[txType] if (prefix) { @@ -303,31 +321,12 @@ export function isPriceToLow(tx: CeloTx) { return isLow } -function isEIP1559(tx: CeloTx): boolean { +export function isEIP1559(tx: CeloTx): boolean { return isPresent(tx.maxFeePerGas) && isPresent(tx.maxPriorityFeePerGas) } -function isCIP64(tx: CeloTx) { - return ( - isEIP1559(tx) && - isPresent(tx.feeCurrency) && - !isPresent(tx.gatewayFee) && - !isPresent(tx.gatewayFeeRecipient) - ) -} - -function isCIP42(tx: CeloTx): boolean { - return ( - isEIP1559(tx) && - (isPresent(tx.feeCurrency) || isPresent(tx.gatewayFeeRecipient) || isPresent(tx.gatewayFee)) - ) -} - -function isCeloLegacy(tx: CeloTx): boolean { - return ( - !isEIP1559(tx) && - (isPresent(tx.feeCurrency) || isPresent(tx.gatewayFeeRecipient) || isPresent(tx.gatewayFee)) - ) +export function isCIP64(tx: CeloTx) { + return isEIP1559(tx) && isPresent(tx.feeCurrency) } function concatHex(values: string[]): StrongAddress { @@ -348,8 +347,8 @@ function isLessThanZero(value: CeloTx['gasPrice']) { } export async function encodeTransaction( - rlpEncoded: RLPEncodedTx, - signature: { v: number; r: Buffer; s: Buffer } + rlpEncoded: RLPEncodedTx | LegacyEncodedTx, + signature: { v: number | bigint; r: Buffer; s: Buffer } ): Promise { const sanitizedSignature = signatureFormatter(signature, rlpEncoded.type) const { v, r, s } = sanitizedSignature @@ -357,7 +356,6 @@ export async function encodeTransaction( // for legacy tx we need to slice but for new ones we do not want to do that let decodedFields: typeof decodedTX - // for legacy tx we need to slice but for new ones we do not want to do that if (rlpEncoded.type == 'celo-legacy') { decodedFields = decodedTX.slice(0, 9) } else if (rlpEncoded.type == 'ethereum-legacy') { @@ -383,7 +381,7 @@ export async function encodeTransaction( hash, } let tx: Partial = baseTX - if (rlpEncoded.type === 'eip1559' || rlpEncoded.type === 'cip42') { + if (rlpEncoded.type === 'eip1559' || rlpEncoded.type === 'cip64') { tx = { ...tx, // @ts-expect-error -- just a matter of how this tx is built @@ -392,16 +390,14 @@ export async function encodeTransaction( accessList: parseAccessList(rlpEncoded.transaction.accessList || []), } } - if (rlpEncoded.type === 'cip42' || rlpEncoded.type === 'celo-legacy') { + if (rlpEncoded.type === 'cip64' || rlpEncoded.type === 'celo-legacy') { tx = { ...tx, // @ts-expect-error -- just a matter of how this tx is built feeCurrency: rlpEncoded.transaction.feeCurrency!.toString(), - gatewayFeeRecipient: rlpEncoded.transaction.gatewayFeeRecipient!.toString(), - gatewayFee: rlpEncoded.transaction.gatewayFee!.toString(), } } - if (rlpEncoded.type === 'celo-legacy' || rlpEncoded.type === 'ethereum-legacy') { + if (rlpEncoded.type === 'ethereum-legacy') { tx = { ...tx, // @ts-expect-error -- just a matter of how this tx is built @@ -409,15 +405,16 @@ export async function encodeTransaction( } } - const result: EncodedTransaction & { type: TransactionTypes } = { + const result: EncodedTransaction & { type: TransactionTypes | 'celo-legacy' } = { tx: tx as EncodedTransaction['tx'], raw: rawTransaction, type: rlpEncoded.type, } return result } + // new types have prefix but legacy does not -function prefixAwareRLPDecode(rlpEncode: string, type: TransactionTypes) { +function prefixAwareRLPDecode(rlpEncode: string, type: OldTransactionTypes) { if (type === 'celo-legacy' || type === 'ethereum-legacy') { return RLP.decode(rlpEncode) } @@ -425,7 +422,7 @@ function prefixAwareRLPDecode(rlpEncode: string, type: TransactionTypes) { return RLP.decode(`0x${rlpEncode.slice(4)}`) } -function correctLengthOf(type: TransactionTypes, includeSig: boolean = true) { +function correctLengthOf(type: OldTransactionTypes, includeSig: boolean = true) { switch (type) { case 'cip64': { return includeSig ? 13 : 10 @@ -492,7 +489,7 @@ export function recoverTransaction(rawTx: string): [CeloTx, string] { } // inspired by @ethereumjs/tx -function getPublicKeyofSignerFromTx(transactionArray: Uint8Array[], type: TransactionTypes) { +function getPublicKeyofSignerFromTx(transactionArray: Uint8Array[], type: OldTransactionTypes) { // this needs to be 10 for cip64, 12 for cip42 and eip1559 const base = transactionArray.slice(0, correctLengthOf(type, false)) const message = concatHex([TxTypeToPrefix[type], rlpEncodeHex(base).slice(2)]) @@ -521,7 +518,7 @@ export function getSignerFromTxEIP2718TX(serializedTransaction: string): string return publicKeyToAddress(signer.toString('hex')) } -function determineTXType(serializedTransaction: string): TransactionTypes { +export function determineTXType(serializedTransaction: string): OldTransactionTypes { const prefix = serializedTransaction.slice(0, 4) if (prefix === TxTypeToPrefix.eip1559) { @@ -576,13 +573,14 @@ function recoverTransactionCIP42(serializedTransaction: StrongAddress): [CeloTxW s, ] = transactionArray as Uint8Array[] - const celoTX: CeloTxWithSig = { + const celoTX: LegacyCip42CeloTxWithSig = { type: 'cip42', nonce: handleNumber(nonce), maxPriorityFeePerGas: handleNumber(maxPriorityFeePerGas), maxFeePerGas: handleNumber(maxFeePerGas), gas: handleNumber(gas), feeCurrency: handleHexString(feeCurrency), + // @ts-expect-ignore remove from type bc its not valid but we still should be able to recover/deserialize old txns gatewayFeeRecipient: handleHexString(gatewayFeeRecipient), gatewayFee: handleHexString(gatewayFee), to: handleHexString(to), @@ -595,6 +593,7 @@ function recoverTransactionCIP42(serializedTransaction: StrongAddress): [CeloTxW const signer = transactionArray.length === 15 ? getSignerFromTxEIP2718TX(serializedTransaction) : 'unsigned' + // @ts-expect-error LegacyCip42CeloTx isn't compatible with CeloTx return [celoTX, signer] } @@ -661,6 +660,8 @@ function recoverTransactionEIP1559(serializedTransaction: StrongAddress): [CeloT s, ] = transactionArray as Uint8Array[] + const vrs = vrsForRecovery(handleHexString(vRaw), handleHexString(r), handleHexString(s)) + const celoTx: CeloTxWithSig = { type: 'eip1559', nonce: handleNumber(nonce), @@ -672,12 +673,15 @@ function recoverTransactionEIP1559(serializedTransaction: StrongAddress): [CeloT data: handleData(data), chainId: handleNumber(chainId), accessList: parseAccessList(accessList as unknown as [string, string[]][]), - ...vrsForRecovery(handleHexString(vRaw), handleHexString(r), handleHexString(s)), + ...vrs, } - const web3Account = new Accounts() - const signer = web3Account.recoverTransaction(serializedTransaction) - return [celoTx, signer] + const publicKey = extractPublicKeyFromHashAndSignature( + vrs, + transactionArray.slice(0, -3), + TxTypeToPrefix.eip1559 + ) + return [celoTx, publicKeyToAddress(publicKey)] } function recoverCeloLegacy(serializedTransaction: StrongAddress): [CeloTx, string] { @@ -686,7 +690,7 @@ function recoverCeloLegacy(serializedTransaction: StrongAddress): [CeloTx, strin const recovery = handleNumber(rawValues[9]) // eslint-disable-next-line no-bitwise const chainId = (recovery - 35) >> 1 - const celoTx: CeloTx = { + const celoTx: LegacyCeloTxWithSig = { type: 'celo-legacy', nonce: handleNumber(rawValues[0]), // NOTE: I used `handleNumber` to make it match the snapshot but we may @@ -708,17 +712,17 @@ function recoverCeloLegacy(serializedTransaction: StrongAddress): [CeloTx, strin } const { r, v: _v, s } = extractSignatureFromDecoded(rawValues) let v = parseInt(_v || '0x0', 16) - const signature = new secp256k1.Signature(BigInt(r), BigInt(s)).addRecoveryBit( - v - chainIdTransformationForSigning(chainId) - ) const safeChainId = trimLeading0x( makeEven(trimLeadingZero(ensureLeading0x(chainId.toString(16)))) ) const extraData = recovery < 35 ? [] : [hexToBytes(safeChainId), hexToBytes(''), hexToBytes('')] const signingData = rawValues.slice(0, 9).concat(extraData) - const signingDataHex = rlpEncodeHex(signingData) - const signingDataHash = getHashFromEncoded(signingDataHex) - const publicKey = signature.recoverPublicKey(trimLeading0x(signingDataHash)).toHex(false) + const publicKey = extractPublicKeyFromHashAndSignature( + { v, r, s, yParity: (v - chainIdTransformationForSigning(chainId)) as 0 | 1 }, + signingData, + TxTypeToPrefix['celo-legacy'] + ) + // @ts-expect-error LegacyCeloTx isn't compatible with CeloTx return [celoTx, publicKeyToAddress(publicKey)] } @@ -747,17 +751,16 @@ function recoverEthereumLegacy(serializedTransaction: StrongAddress): [CeloTx, s } const { r, v: _v, s } = extractSignatureFromDecoded(rawValues) let v = parseInt(_v || '0x0', 16) - const signature = new secp256k1.Signature(BigInt(r), BigInt(s)).addRecoveryBit( - v - chainIdTransformationForSigning(chainId) - ) const safeChainId = trimLeading0x( makeEven(trimLeadingZero(ensureLeading0x(chainId.toString(16)))) ) const extraData = recovery < 35 ? [] : [hexToBytes(safeChainId), hexToBytes(''), hexToBytes('')] const signingData = rawValues.slice(0, 6).concat(extraData) - const signingDataHex = rlpEncodeHex(signingData) - const signingDataHash = getHashFromEncoded(signingDataHex) - const publicKey = signature.recoverPublicKey(trimLeading0x(signingDataHash)).toHex(false) + const publicKey = extractPublicKeyFromHashAndSignature( + { v, r, s, yParity: (v - chainIdTransformationForSigning(chainId)) as 0 | 1 }, + signingData, + TxTypeToPrefix['celo-legacy'] + ) return [celoTx, publicKeyToAddress(publicKey)] } @@ -803,6 +806,19 @@ export function decodeSig(sig: StrongAddress | ReturnType } } +export function extractPublicKeyFromHashAndSignature( + { r, s, yParity }: ReturnType, + data: ReturnType, + _prefix: TxTypeToPrefix +) { + const signature = new secp256k1.Signature(BigInt(r), BigInt(s)).addRecoveryBit(yParity) + const signingDataHex = _prefix ? concatHex([_prefix, rlpEncodeHex(data)]) : rlpEncodeHex(data) + // const signingDataHex = rlpEncodeHex(data) + const signingDataHash = getHashFromEncoded(signingDataHex) + const publicKey = signature.recoverPublicKey(trimLeading0x(signingDataHash)).toHex(false) + return publicKey +} + export function signTransaction(hash: StrongAddress, privateKey: StrongAddress, addToV = 0) { const signature = secp256k1.sign( trimLeading0x(hash), diff --git a/packages/sdk/wallets/wallet-base/src/wallet-base.ts b/packages/sdk/wallets/wallet-base/src/wallet-base.ts index c86bd23a0..3bc93e55c 100644 --- a/packages/sdk/wallets/wallet-base/src/wallet-base.ts +++ b/packages/sdk/wallets/wallet-base/src/wallet-base.ts @@ -76,9 +76,14 @@ export abstract class WalletBase implements ReadOnlyWall if (!txParams) { throw new Error('No transaction object given!') } + if (txParams.gasPrice && txParams.feeCurrency && txParams.feeCurrency !== '0x') { + throw new Error( + 'Cannot serialize both "gasPrice" and "feeCurrency" together. To keep "feeCurrency", replace "gasPrice" with "maxFeePerGas". To keep "gasPrice" and send a type 0 transaction remove "feeCurrency"' + ) + } const rlpEncoded = rlpEncodedTx(txParams) const addToV = - rlpEncoded.type === 'celo-legacy' || rlpEncoded.type === 'ethereum-legacy' + rlpEncoded.type === 'ethereum-legacy' ? chainIdTransformationForSigning(txParams.chainId!) : 27 diff --git a/packages/sdk/wallets/wallet-hsm-aws/package.json b/packages/sdk/wallets/wallet-hsm-aws/package.json index d91e93c9b..a44f8191e 100644 --- a/packages/sdk/wallets/wallet-hsm-aws/package.json +++ b/packages/sdk/wallets/wallet-hsm-aws/package.json @@ -35,9 +35,11 @@ "debug": "^4.1.1" }, "devDependencies": { + "@celo/typescript": "workspace:^", "@noble/ciphers": "0.4.1", "@noble/curves": "1.3.0", "@noble/hashes": "1.3.3", + "@types/debug": "^4.1.12", "dotenv": "^8.2.0", "web3": "1.10.4" }, diff --git a/packages/sdk/wallets/wallet-hsm-aws/src/aws-hsm-wallet.test.ts b/packages/sdk/wallets/wallet-hsm-aws/src/aws-hsm-wallet.test.ts index 206ab5768..760e90863 100644 --- a/packages/sdk/wallets/wallet-hsm-aws/src/aws-hsm-wallet.test.ts +++ b/packages/sdk/wallets/wallet-hsm-aws/src/aws-hsm-wallet.test.ts @@ -179,8 +179,6 @@ describe('AwsHsmWallet class', () => { gas: '10', gasPrice: '99', feeCurrency: '0x', - gatewayFeeRecipient: ACCOUNT_ADDRESS_NEVER, - gatewayFee: '0x5678', data: '0xabcdef', } }) @@ -238,8 +236,6 @@ describe('AwsHsmWallet class', () => { gas: '10', gasPrice: '99', feeCurrency: '0x', - gatewayFeeRecipient: ACCOUNT_ADDRESS_NEVER, - gatewayFee: '0x5678', data: '0xabcdef', } }) @@ -266,8 +262,6 @@ describe('AwsHsmWallet class', () => { gas: '10', gasPrice: '99', feeCurrency: '0x' as const, - gatewayFeeRecipient: ACCOUNT_ADDRESS_NEVER, - gatewayFee: '0x5678', data: '0xabcdef', } const signedTx: EncodedTransaction = await wallet.signTransaction( diff --git a/packages/sdk/wallets/wallet-hsm-azure/package.json b/packages/sdk/wallets/wallet-hsm-azure/package.json index a07a1e2a8..d8103bc3c 100644 --- a/packages/sdk/wallets/wallet-hsm-azure/package.json +++ b/packages/sdk/wallets/wallet-hsm-azure/package.json @@ -37,9 +37,11 @@ "debug": "^4.1.1" }, "devDependencies": { + "@celo/typescript": "workspace:^", "@noble/ciphers": "0.4.1", "@noble/curves": "1.3.0", "@noble/hashes": "1.3.3", + "@types/debug": "^4.1.12", "dotenv": "^8.2.0", "web3": "1.10.4" }, diff --git a/packages/sdk/wallets/wallet-hsm-azure/src/azure-hsm-wallet.test.ts b/packages/sdk/wallets/wallet-hsm-azure/src/azure-hsm-wallet.test.ts index a34cba583..20793207e 100644 --- a/packages/sdk/wallets/wallet-hsm-azure/src/azure-hsm-wallet.test.ts +++ b/packages/sdk/wallets/wallet-hsm-azure/src/azure-hsm-wallet.test.ts @@ -169,10 +169,9 @@ describe('AzureHSMWallet class', () => { value: Web3.utils.toWei('1', 'ether'), nonce: 0, gas: '10', - gasPrice: '99', + maxFeePerGas: '99', + maxPriorityFeePerGas: '99', feeCurrency: ACCOUNT_ADDRESS_NEVER, - gatewayFeeRecipient: ACCOUNT_ADDRESS_NEVER, - gatewayFee: '0x5678', data: '0xabcdef', } }) @@ -234,8 +233,6 @@ describe('AzureHSMWallet class', () => { gas: '10', gasPrice: '99', feeCurrency: '0x', - gatewayFeeRecipient: ACCOUNT_ADDRESS_NEVER, - gatewayFee: '0x5678', data: '0xabcdef', } }) @@ -266,8 +263,6 @@ describe('AzureHSMWallet class', () => { gas: '10', gasPrice: '99', feeCurrency: '0x' as const, - gatewayFeeRecipient: ACCOUNT_ADDRESS_NEVER, - gatewayFee: '0x5678', data: '0xabcdef', } diff --git a/packages/sdk/wallets/wallet-hsm-gcp/package.json b/packages/sdk/wallets/wallet-hsm-gcp/package.json index 808dfc3fe..60011e3a1 100644 --- a/packages/sdk/wallets/wallet-hsm-gcp/package.json +++ b/packages/sdk/wallets/wallet-hsm-gcp/package.json @@ -34,9 +34,11 @@ "debug": "^4.1.1" }, "devDependencies": { + "@celo/typescript": "workspace:^", "@noble/ciphers": "0.4.1", "@noble/curves": "1.3.0", "@noble/hashes": "1.3.3", + "@types/debug": "^4.1.12", "dotenv": "^8.2.0", "web3": "1.10.4" }, diff --git a/packages/sdk/wallets/wallet-hsm-gcp/src/gcp-hsm-wallet.test.ts b/packages/sdk/wallets/wallet-hsm-gcp/src/gcp-hsm-wallet.test.ts index ef361c686..8f7fa61e6 100644 --- a/packages/sdk/wallets/wallet-hsm-gcp/src/gcp-hsm-wallet.test.ts +++ b/packages/sdk/wallets/wallet-hsm-gcp/src/gcp-hsm-wallet.test.ts @@ -164,8 +164,6 @@ describe('GcpHsmWallet class', () => { gas: '10', gasPrice: '99', feeCurrency: '0x', - gatewayFeeRecipient: ACCOUNT_ADDRESS_NEVER, - gatewayFee: '0x5678', data: '0xabcdef', } }) @@ -225,8 +223,6 @@ describe('GcpHsmWallet class', () => { gas: '10', gasPrice: '99', feeCurrency: '0x', - gatewayFeeRecipient: ACCOUNT_ADDRESS_NEVER, - gatewayFee: '0x5678', data: '0xabcdef', } }) @@ -253,8 +249,6 @@ describe('GcpHsmWallet class', () => { gas: '10', gasPrice: '99', feeCurrency: '0x' as const, - gatewayFeeRecipient: ACCOUNT_ADDRESS_NEVER, - gatewayFee: '0x5678', data: '0xabcdef', } const signedTx: EncodedTransaction = await wallet.signTransaction( diff --git a/packages/sdk/wallets/wallet-hsm/package.json b/packages/sdk/wallets/wallet-hsm/package.json index be7447bcf..fe0d622ad 100644 --- a/packages/sdk/wallets/wallet-hsm/package.json +++ b/packages/sdk/wallets/wallet-hsm/package.json @@ -34,6 +34,7 @@ "bignumber.js": "^9.0.0" }, "devDependencies": { + "@celo/typescript": "workspace:^", "dotenv": "^8.2.0" }, "engines": { diff --git a/packages/sdk/wallets/wallet-ledger/package.json b/packages/sdk/wallets/wallet-ledger/package.json index e94d38ae3..fa9740e4e 100644 --- a/packages/sdk/wallets/wallet-ledger/package.json +++ b/packages/sdk/wallets/wallet-ledger/package.json @@ -14,29 +14,39 @@ "sdk" ], "scripts": { + "prebuild": "ts-node scripts/generate-tokens-all-networks.ts", "build": "yarn run --top-level tsc -b .", "clean": "yarn run --top-level tsc -b . --clean", "docs": "yarn run --top-level typedoc", "test": "yarn run --top-level jest --runInBand", "test:physical_ledger": "USE_PHYSICAL_LEDGER=true yarn test", "lint": "yarn run --top-level eslint -c .eslintrc.js ", - "prepublishOnly": "yarn build" + "prepublishOnly": "yarn build", + "postinstall": "patch-package" }, "dependencies": { "@celo/base": "^6.0.1", "@celo/connect": "^5.3.0", + "@celo/ledger-token-signer": "^0.4.0", "@celo/utils": "^6.0.1", "@celo/wallet-base": "^5.2.0", "@celo/wallet-remote": "^5.2.0", "@ethereumjs/util": "8.0.5", - "@ledgerhq/errors": "^5.50.0", - "@ledgerhq/hw-app-eth": "~5.11.0", - "@ledgerhq/hw-transport": "~5.11.0", - "debug": "^4.1.1" + "@ledgerhq/errors": "^6.16.4", + "@ledgerhq/hw-app-eth": "6.36.1", + "@ledgerhq/hw-transport": "^6.30.6", + "debug": "^4.1.1", + "patch-package": "^8.0.0", + "semver": "^7.6.0" }, "devDependencies": { - "@ledgerhq/hw-transport-node-hid": "^6.27.4", + "@celo/contractkit": "^8.0.0", + "@celo/typescript": "workspace:^", + "@ledgerhq/hw-transport-node-hid": "^6.28.5", + "@noble/curves": "^1.4.0", "@noble/hashes": "^1.3.3", + "@types/debug": "^4.1.12", + "ts-node": "^10.9.2", "web3": "1.10.4" }, "engines": { diff --git a/packages/sdk/wallets/wallet-ledger/patches/@ledgerhq+hw-app-eth+6.36.1.patch b/packages/sdk/wallets/wallet-ledger/patches/@ledgerhq+hw-app-eth+6.36.1.patch new file mode 100644 index 000000000..46794f916 --- /dev/null +++ b/packages/sdk/wallets/wallet-ledger/patches/@ledgerhq+hw-app-eth+6.36.1.patch @@ -0,0 +1,41 @@ +diff --git a/node_modules/@ledgerhq/hw-app-eth/lib/utils.js b/node_modules/@ledgerhq/hw-app-eth/lib/utils.js +index 027089b..87f1a6f 100644 +--- a/node_modules/@ledgerhq/hw-app-eth/lib/utils.js ++++ b/node_modules/@ledgerhq/hw-app-eth/lib/utils.js +@@ -39,7 +39,7 @@ function maybeHexBuffer(str) { + } + exports.maybeHexBuffer = maybeHexBuffer; + const decodeTxInfo = (rawTx) => { +- const VALID_TYPES = [1, 2]; ++ const VALID_TYPES = [1, 2, 123]; + const txType = VALID_TYPES.includes(rawTx[0]) ? rawTx[0] : null; + const rlpData = txType === null ? rawTx : rawTx.slice(1); + const rlpTx = (0, rlp_1.decode)(rlpData).map(hex => Buffer.from(hex.slice(2), "hex")); +@@ -62,13 +62,22 @@ const decodeTxInfo = (rawTx) => { + chainId: rlpTx[0], + }; + } ++ else if (txType === 123) { ++ // CIP64 ++ decodedTx = { ++ data: rlpDecoded[7], ++ to: rlpDecoded[5], ++ chainId: rlpTx[0], ++ feeCurrency: rlpDecoded[9] ++ } ++ } + else { +- // Legacy tx ++ // Celo-Legacy tx + decodedTx = { +- data: rlpDecoded[5], +- to: rlpDecoded[3], +- // Default to 1 for non EIP 155 txs +- chainId: rlpTx.length > 6 ? rlpTx[6] : Buffer.from("0x01", "hex"), ++ data: rlpDecoded[8], ++ to: rlpDecoded[6], ++ // Default to 1 for non EIP 155 txs ++ chainId: rlpTx.length > 9 ? rlpTx[9] : Buffer.from("0x01", "hex"), + }; + } + const chainIdSrc = decodedTx.chainId; diff --git a/packages/sdk/wallets/wallet-ledger/scripts/generate-tokens-all-networks.ts b/packages/sdk/wallets/wallet-ledger/scripts/generate-tokens-all-networks.ts new file mode 100644 index 000000000..652e7b8a3 --- /dev/null +++ b/packages/sdk/wallets/wallet-ledger/scripts/generate-tokens-all-networks.ts @@ -0,0 +1,31 @@ +import { trimLeading0x } from '@celo/base' +import { newKit } from '@celo/contractkit' +async function main() { + const networks = [ + { chainId: 42220, nodeUrl: 'https://forno.celo.org', prefix: undefined }, + { chainId: 62320, nodeUrl: 'https://baklava-forno.celo-testnet.org', prefix: 'b' }, + { chainId: 44787, nodeUrl: 'https://alfajores-forno.celo-testnet.org', prefix: 'a' }, + ] + + const json: { ticker: string; chainId: number; address: string; decimals: number }[] = [] + + for (const { chainId, nodeUrl, prefix } of networks) { + const kit = newKit(nodeUrl) + + const feeCurrencyWhitelistWrapper = await kit.contracts.getFeeCurrencyWhitelist() + const whitelist = await feeCurrencyWhitelistWrapper.getFeeCurrencyInformation() + + json.push( + ...whitelist.map(({ address, symbol, decimals }) => ({ + ticker: prefix ? `${prefix} ${symbol}` : symbol!, + address: trimLeading0x(address), + decimals: decimals!, + chainId, + })) + ) + } + + return JSON.stringify(json, null, 2) +} + +main().then(console.log).catch(console.error) diff --git a/packages/sdk/wallets/wallet-ledger/src/data.ts b/packages/sdk/wallets/wallet-ledger/src/data.ts index caae06034..d348d9795 100644 --- a/packages/sdk/wallets/wallet-ledger/src/data.ts +++ b/packages/sdk/wallets/wallet-ledger/src/data.ts @@ -1 +1,19 @@ -export = 'AAAAaARDRUxPRx7ON1DaI3+TuOM5xTaYm4l4pDgAAAASAACk7DBFAiEA5rECRg94+fCoIvoG9/5qWh62zl2C6Y+aFuuZrFe4CtcCIEJbRrkL3gqwT/Jj+7L3neazgpVCCTZZ3HX9JXXg5vleAAAAaARjVVNEdl3oFoRYYedaJfyhIrtomLixKCoAAAASAACk7DBFAiEApwQFHNBKXp+V2jq8BMD2y/5AwC9bhPQ2H4hT/vMl/B4CIFalOVtBFGREUKMU/F5vDlJLeQrTn6GQeDertpB2FpMvAAAAaARjRVVS2HY8uidqNzjm3oW0s79f3tbWynMAAAASAACk7DBFAiEAh2UeP1+SI2Ed5SiAjpJF6MkMrVa94gUwjJztyBlzhWMCIHfaOrEsxdxAGx+P+hxuSNO4zcw6KRLfJkkuic1V/CrHAAAAagZiIENFTE/dyb5X9VP+dXUtYWBrlMvX4CZO+AAAABIAAPNwMEUCIQCi62KsBfuNcfX0MriiRZ7a5DKERhtIz7sZ1SqBT7ruhgIgVrfmavyWzxzDW4AQeHn++A4qPjB1pQKoHvNXo8Hf1SMAAABpBmIgY1VTRGJJKmRKWI/ZBCcL7QatUrmr/qGuAAAAEgAA83AwRAIgGDYx4oB/gkYUqLeXqvEZXx9nOxVHzTe2ajyd2wnehxgCICQBe/rBPcXiaQJj3pdoXxroct/hV6r3G2G7y79EOEAPAAAAaQZiIGNFVVL57OMBJHrSziGJSUGDCiRw9Od0ygAAABIAAPNwMEQCIEdcFWP+HxEUoF1sCGVd34QGS0hL5cVUdrWdqVm3bYTgAiBCMA+Rg3Ubc3xla/35wzZesPlbeSMEPcr4uqL+8PeydwAAAGoGYSBDRUxP8ZSv31CwPmm9fQV8GqnhDJlU5MkAAAASAACu8zBFAiEAk/o0FBus2/QCrunFGEyoneQIRaMRC+y5L6Dvar8MU/kCIByJt2ziRhDG3AAbyXBIuJfZQujSHFcSJL3xF0xIlcPdAAAAaQZhIGNVU0SHQGn6HrFtRNYi8uDKJe6hcjabwQAAABIAAK7zMEQCIClrH2xgE3WMbD+hgQ7t5SiAcVG5WiUZ655voqCszKEoAiA/cO8UVgNY891MNJ5yeDk8w47WO0E1DQecrK71LR8g8gAAAGoGYSBjRVVSEMiSpuxDpT5F0LkWtLfTg7G3jA8AAAASAACu8zBFAiEAgpktbB1ZxyAwMJwKTSbZ30n8zgRuW0twbXoZxlsUAswCIHek4l4CIbjVMG2HVr0Ml9/8kA4F9dr69JBMaoSUkdKl' +// export default 'AAAAaARDRUxPRx7ON1DaI3+TuOM5xTaYm4l4pDgAAAASAACk7DBFAiEA5rECRg94+fCoIvoG9/5qWh62zl2C6Y+aFuuZrFe4CtcCIEJbRrkL3gqwT/Jj+7L3neazgpVCCTZZ3HX9JXXg5vleAAAAaARjVVNEdl3oFoRYYedaJfyhIrtomLixKCoAAAASAACk7DBFAiEApwQFHNBKXp+V2jq8BMD2y/5AwC9bhPQ2H4hT/vMl/B4CIFalOVtBFGREUKMU/F5vDlJLeQrTn6GQeDertpB2FpMvAAAAaARjRVVS2HY8uidqNzjm3oW0s79f3tbWynMAAAASAACk7DBFAiEAh2UeP1+SI2Ed5SiAjpJF6MkMrVa94gUwjJztyBlzhWMCIHfaOrEsxdxAGx+P+hxuSNO4zcw6KRLfJkkuic1V/CrHAAAAagZiIENFTE/dyb5X9VP+dXUtYWBrlMvX4CZO+AAAABIAAPNwMEUCIQCi62KsBfuNcfX0MriiRZ7a5DKERhtIz7sZ1SqBT7ruhgIgVrfmavyWzxzDW4AQeHn++A4qPjB1pQKoHvNXo8Hf1SMAAABpBmIgY1VTRGJJKmRKWI/ZBCcL7QatUrmr/qGuAAAAEgAA83AwRAIgGDYx4oB/gkYUqLeXqvEZXx9nOxVHzTe2ajyd2wnehxgCICQBe/rBPcXiaQJj3pdoXxroct/hV6r3G2G7y79EOEAPAAAAaQZiIGNFVVL57OMBJHrSziGJSUGDCiRw9Od0ygAAABIAAPNwMEQCIEdcFWP+HxEUoF1sCGVd34QGS0hL5cVUdrWdqVm3bYTgAiBCMA+Rg3Ubc3xla/35wzZesPlbeSMEPcr4uqL+8PeydwAAAGoGYSBDRUxP8ZSv31CwPmm9fQV8GqnhDJlU5MkAAAASAACu8zBFAiEAk/o0FBus2/QCrunFGEyoneQIRaMRC+y5L6Dvar8MU/kCIByJt2ziRhDG3AAbyXBIuJfZQujSHFcSJL3xF0xIlcPdAAAAaQZhIGNVU0SHQGn6HrFtRNYi8uDKJe6hcjabwQAAABIAAK7zMEQCIClrH2xgE3WMbD+hgQ7t5SiAcVG5WiUZ655voqCszKEoAiA/cO8UVgNY891MNJ5yeDk8w47WO0E1DQecrK71LR8g8gAAAGoGYSBjRVVSEMiSpuxDpT5F0LkWtLfTg7G3jA8AAAASAACu8zBFAiEAgpktbB1ZxyAwMJwKTSbZ30n8zgRuW0twbXoZxlsUAswCIHek4l4CIbjVMG2HVr0Ml9/8kA4F9dr69JBMaoSUkdKl' + +// This was signed by Marek Olszewski on Wed 18 June 2024 +export default 'AAAAZwRVU0RUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGAACk7DBEAiA45AhZco0/POPgpuUPBqRnGG1SfGPpXE8+Hckw0dZLCQIgWteUoWhghs0KwxfgX2P0jJ2gYQEAbq6J+mWfSs9yWzcAAABnBFVTRFQOKj4FvJoW9SkqYXBFanEMuJxvcgAAABIAAKTsMEQCIAl/QSQA3JAF4c+otYCNG+JghDIV17habVFg/kLOLG9UAiAY+PSK6WBYObKt8OObZHKiAVWHOaI0E26OC61ytGCN4wAAAGgEVVNEQwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABgAApOwwRQIhAJAwutARDDU/EgrpV1SYRuLsKR/JjkYP4rRT6InIlo8GAiAgyuHrUNUuEdfijlmY8UWzR/jzLzycmkjEjL8qV06GvwAAAGcEVVNEQy8l3rOEjCB/yODDQDWzun/BV2ArAAAAEgAApOwwRAIgVYSG4e4JD7mbHMdOd29i5c4872THYeVWqDsb6ZE0JA4CIGVsHMurIGTBw1WUJqmOsBXUBlP5bhljUufw9jgQKq7JAAAAaARlWE9Gc/k9zEnLiiOeIDJmPpR13V7ymggAAAASAACk7DBFAiEA31wGJ9NfYN5Ujs3qkNxXowT73iNAxrBw7SdHTfLn47UCIH0fhGCTysFEdN31WIVCvkgoB2VKaF7Q6i8sZFOj++4XAAAAaARjVVNEdl3oFoRYYedaJfyhIrtomLixKCoAAAASAACk7DBFAiEApwQFHNBKXp+V2jq8BMD2y/5AwC9bhPQ2H4hT/vMl/B4CIFalOVtBFGREUKMU/F5vDlJLeQrTn6GQeDertpB2FpMvAAAAaARjRVVS2HY8uidqNzjm3oW0s79f3tbWynMAAAASAACk7DBFAiEAh2UeP1+SI2Ed5SiAjpJF6MkMrVa94gUwjJztyBlzhWMCIHfaOrEsxdxAGx+P+hxuSNO4zcw6KRLfJkkuic1V/CrHAAAAaAVjUkVBTOhTej0FbaRGZ3uenWxdtwTqq0eHAAAAEgAApOwwRAIgKq0LIfD4D+gU3xANTkNfCrpo8CBBZlpasrsjd/E3YuoCICU2CvRG4xPmFzmmDLIjvN2ARrjqtkwAjLeQ8jUxRbZIAAAAaQZiIGNVU0RiSSpkSliP2QQnC+0GrVK5q/6hrgAAABIAAPNwMEQCIBg2MeKAf4JGFKi3l6rxGV8fZzsVR803tmo8ndsJ3ocYAiAkAXv6wT3F4mkCY96XaF8a6HLf4Veq9xthu8u/RDhADwAAAGkGYiBlWE9GZMHYEmc+k7wDatw9VH2ZUGltpa8AAAASAADzcDBEAiAL0g/ZekAf2Zok/7GXeIcwKMibuiLprWKUDIxl8BcLRwIgJBOEVGXOISlfVmuqdUWrbR2xR9DNYafBO4wCxQN2mUEAAABqB2IgY1JFQUxqDu8r7Uww3Cy0L+bF8B+A9+8W0QAAABIAAPNwMEQCIAuSOFoyw6PPiuegcqMLtpvPU5ip23jlQKvjcggLxT0UAiAiVDv5VON1+peijMemQCD3Gvcz+BtCAgC60z76+mm2xQAAAGkGYiBjRVVS+ezjASR60s4hiUlBgwokcPTndMoAAAASAADzcDBEAiBHXBVj/h8RFKBdbAhlXd+EBktIS+XFVHa1nalZt22E4AIgQjAPkYN1G3N8ZWv9+cM2XrD5W3kjBD3K+Lqi/vD3sncAAABoBGEgRyQD09q4Q+bAOz0nHv+ReOapbCjSXwAAABIAAK7zMEUCIQCZTGG2AjD7sgxeavTx9xhfi8TEkEGv83Es3sl31NVjwwIgdUpDy6iaoiJbHxT/0/tiHs8FGYYdKRE1EPzMUIcm2+oAAABqBmEgY0VVUhDIkqbsQ6U+RdC5FrS304Oxt4wPAAAAEgAArvMwRQIhAIKZLWwdWccgMDCcCk0m2d9J/M4EbltLcG16GcZbFALMAiB3pOJeAiG41TBth1a9DJff/JAOBfXa+vSQTGqElJHSpQAAAGkFYSBFRkMa17YXy2xRVqbepuR1FNFkdrmfOAAAAAYAAK7zMEUCIQDIjpFbbedbDHebk1HaK2VoxHzTe8Tkn5VrB2KCne0i5QIgF8g1CYG9jclyquUUxC+vPprZPnCSSroJxMWhYIxgRtAAAABqBmEgVVNEQ0gi5Y3m9eSF75DfUcQc4BchMx3AAAAABgAArvMwRQIhANOSBnG6FiIl0EprRvWagcC7r8EJyzkC0XKum71zUQXAAiASh91Kt5m0jm7BVXRZou1xV+8DwCs4Nn3oT+Ogb1NRdAAAAGgFYSBFRkN9AneQmY9xSylMlv2p4nr1htHrtQAAAAYAAK7zMEQCICnuUijiwCApPFmsqpFcI3KdDgI4ueArA6Xgc9pd31ROAiBMr8ljj6A7N3vgklG8sSNAvbCB+WujFTtZFWYGwYHFrwAAAGkGYSBjVVNEh0Bp+h6xbUTWIvLgyiXuoXI2m8EAAAASAACu8zBEAiApax9sYBN1jGw/oYEO7eUogHFRuVolGeueb6KgrMyhKAIgP3DvFFYDWPPdTDSecng5PMOO1jtBNQ0HnKyu9S0fIPIAAABpBmEgZVhPRrD6FeACUW0DAYhAWcCqwPDHKwGdAAAAEgAArvMwRAIgIBy2pPKNIi1HG3FrxikDxfZL0NZQcKhUKMFiaiu0cxsCIDyeMa3QZM71diszR3uNso9U+mmB9AxMzVL6RLHmjRlbAAAAagZhIFVTRFTE+G6bSliNUBwcPiVijf1QvI1hXgAAABIAAK7zMEUCIQDX0yUA7NuyMcn52Q3o4f5aouT7hqLRDK05zaSapCT3qAIgDW3F0IpF386QYNiGqThC4a5OsgII7Kfz/qW6EYq1+VQAAABrB2EgY1JFQUzk1Rd4XQkdPFSBiDLbYJS8wnRFRQAAABIAAK7zMEUCIQDVjhKnLdzKU84vV/13nvvshLsaCC4IfzLFmieUNniSMAIgMCRja6R+GcT2OFVF8ClIx/7ZBlIHEIqooo/8Bnpy1sc=' + +// How did we get this? By following these steps: +// 1 - get pubkey from https://github.com/blooo-io/app-celo-spender/pull/7/files#diff-e0cf5b28d9b6b600f0af2bc78e8fd30ec675fd731a5da86f0c4283ffc0e40176L75-L83 +// 2 - now you've got to trust me +// 3 - run `ASN1_PREFIX=3056301006072a8648ce3d020106052b8104000a034200` +// 4 - remove spaces, colons, 0xs from the pubkey of step 1, I've done that for you :) +// 5 - and store it in key `KEY=04b06cf5d8f7ed71d8bd9b9dc37944a1c6d240f69bb0be3621dddbb6ac0eccd1508bcc2ea46227e43b941e2c6f1b1cd0ae68e54b185e2cabef3455580604bd45b8` +// 5 - finally run `echo $ASN1_PREFIX$KEY | xxd -r -p - | openssl ec -inform der -pubin -pubout` +// 6 - enjoy +export const legacyLedgerPublicKeyHex = [ + `-----BEGIN PUBLIC KEY-----`, + `MFYwEAYHKoZIzj0CAQYFK4EEAAoDQgAEsGz12Pftcdi9m53DeUShxtJA9puwvjYh`, + `3du2rA7M0VCLzC6kYifkO5QeLG8bHNCuaOVLGF4sq+80VVgGBL1FuA==`, + `-----END PUBLIC KEY-----`, +].join('\n') diff --git a/packages/sdk/wallets/wallet-ledger/src/ledger-signer.ts b/packages/sdk/wallets/wallet-ledger/src/ledger-signer.ts index 68e7ee532..e656b4764 100644 --- a/packages/sdk/wallets/wallet-ledger/src/ledger-signer.ts +++ b/packages/sdk/wallets/wallet-ledger/src/ledger-signer.ts @@ -1,29 +1,30 @@ import { ensureLeading0x, trimLeading0x } from '@celo/base/lib/address' import { RLPEncodedTx, Signer } from '@celo/connect' import { EIP712TypedData, structHash } from '@celo/utils/lib/sign-typed-data-utils' +import { LegacyEncodedTx } from '@celo/wallet-base' import * as ethUtil from '@ethereumjs/util' import { TransportStatusError } from '@ledgerhq/errors' +import Ledger from '@ledgerhq/hw-app-eth' import debugFactory from 'debug' -import { transportErrorFriendlyMessage } from './ledger-utils' -import { AddressValidation } from './ledger-wallet' -import { compareLedgerAppVersions, tokenInfoByAddressAndChainId } from './tokens' -import { ILedger } from './types' +import { SemVer } from 'semver' +import { meetsVersionRequirements, transportErrorFriendlyMessage } from './ledger-utils' +import { AddressValidation, LedgerWallet } from './ledger-wallet' +import { legacyTokenInfoByAddressAndChainId, tokenInfoByAddressAndChainId } from './tokens' const debug = debugFactory('kit:wallet:ledger') -const CELO_APP_ACCEPTS_CONTRACT_DATA_FROM_VERSION = '1.0.2' /** * Signs the EVM transaction with a Ledger device */ export class LedgerSigner implements Signer { - private ledger: ILedger + private ledger: Ledger private derivationPath: string private validated: boolean = false private ledgerAddressValidation: AddressValidation private appConfiguration: { arbitraryDataEnabled: number; version: string } constructor( - ledger: ILedger, + ledger: Ledger, derivationPath: string, ledgerAddressValidation: AddressValidation, appConfiguration: { arbitraryDataEnabled: number; version: string } = { @@ -43,27 +44,30 @@ export class LedgerSigner implements Signer { async signTransaction( addToV: number, - encodedTx: RLPEncodedTx + encodedTx: RLPEncodedTx | LegacyEncodedTx ): Promise<{ v: number; r: Buffer; s: Buffer }> { try { const validatedDerivationPath = await this.getValidatedDerivationPath() await this.checkForKnownToken(encodedTx) const signature = await this.ledger!.signTransaction( validatedDerivationPath, - trimLeading0x(encodedTx.rlpEncode) // the ledger requires the rlpEncode without the leading 0x + trimLeading0x(encodedTx.rlpEncode), // the ledger requires the rlpEncode without the leading 0x + null ) + // EIP155 support. check/recalc signature v value. - const rv = parseInt(signature.v, 16) + const _v = parseInt(signature.v, 16) // eslint-disable-next-line no-bitwise - if (rv !== addToV && (rv & addToV) !== rv) { + if (_v !== addToV && (_v & addToV) !== _v) { addToV += 1 // add signature v bit. } + return { - v: addToV, - r: ethUtil.toBuffer(ensureLeading0x(signature.r)) as Buffer, - s: ethUtil.toBuffer(ensureLeading0x(signature.s)) as Buffer, + v: _v, + r: ethUtil.toBuffer(ensureLeading0x(signature.r)), + s: ethUtil.toBuffer(ensureLeading0x(signature.s)), } - } catch (error: any) { + } catch (error: unknown) { if (error instanceof TransportStatusError) { // The Ledger fails if it doesn't know the feeCurrency if (error.statusCode === 27264 && error.statusText === 'INCORRECT_DATA') { @@ -87,9 +91,9 @@ export class LedgerSigner implements Signer { trimLeading0x(data) ) return { - v: parseInt(signature.v, 10), - r: ethUtil.toBuffer(ensureLeading0x(signature.r)) as Buffer, - s: ethUtil.toBuffer(ensureLeading0x(signature.s)) as Buffer, + v: signature.v, + r: ethUtil.toBuffer(ensureLeading0x(signature.r)), + s: ethUtil.toBuffer(ensureLeading0x(signature.s)), } } catch (error) { if (error instanceof TransportStatusError) { @@ -108,17 +112,15 @@ export class LedgerSigner implements Signer { typedData.types ) - // NOTE: this function doesn't exist on ledger 5.11 so it fails, probably never worked const sig = await this.ledger!.signEIP712HashedMessage( await this.getValidatedDerivationPath(), - domainSeparator, - hashStructMessage + domainSeparator.toString('hex'), + hashStructMessage.toString('hex') ) - return { - v: parseInt(sig.v, 16), - r: ethUtil.toBuffer(ensureLeading0x(sig.r)) as Buffer, - s: ethUtil.toBuffer(ensureLeading0x(sig.s)) as Buffer, + v: sig.v, + r: ethUtil.toBuffer(ensureLeading0x(sig.r)), + s: ethUtil.toBuffer(ensureLeading0x(sig.s)), } } catch (error) { if (error instanceof TransportStatusError) { @@ -161,27 +163,26 @@ export class LedgerSigner implements Signer { * Display ERC20 info on ledger if contract is well known * @param rlpEncoded Encoded transaction */ - private async checkForKnownToken(rlpEncoded: RLPEncodedTx) { - if ( - compareLedgerAppVersions( - this.appConfiguration.version, - CELO_APP_ACCEPTS_CONTRACT_DATA_FROM_VERSION - ) >= 0 - ) { - const tokenInfo = tokenInfoByAddressAndChainId( - rlpEncoded.transaction.to!, - rlpEncoded.transaction.chainId! - ) + private async checkForKnownToken(rlpEncoded: RLPEncodedTx | LegacyEncodedTx) { + const version = new SemVer(this.appConfiguration.version) + if (meetsVersionRequirements(version, { minimum: LedgerWallet.MIN_VERSION_TOKEN_DATA })) { + const getTokenInfo = meetsVersionRequirements(version, { + minimum: LedgerWallet.MIN_VERSION_EIP1559, + }) + ? tokenInfoByAddressAndChainId + : legacyTokenInfoByAddressAndChainId + + const tokenInfo = getTokenInfo(rlpEncoded.transaction.to!, rlpEncoded.transaction.chainId!) if (tokenInfo) { - await this.ledger!.provideERC20TokenInformation(tokenInfo) + await this.ledger!.provideERC20TokenInformation(`0x${tokenInfo.data.toString('hex')}`) } if (rlpEncoded.transaction.feeCurrency && rlpEncoded.transaction.feeCurrency !== '0x') { - const feeTokenInfo = tokenInfoByAddressAndChainId( + const feeTokenInfo = getTokenInfo( rlpEncoded.transaction.feeCurrency!, rlpEncoded.transaction.chainId! ) if (feeTokenInfo) { - await this.ledger!.provideERC20TokenInformation(feeTokenInfo) + await this.ledger!.provideERC20TokenInformation(feeTokenInfo.data.toString('hex')) } } } diff --git a/packages/sdk/wallets/wallet-ledger/src/ledger-utils.ts b/packages/sdk/wallets/wallet-ledger/src/ledger-utils.ts index a165994a6..b6c722c16 100644 --- a/packages/sdk/wallets/wallet-ledger/src/ledger-utils.ts +++ b/packages/sdk/wallets/wallet-ledger/src/ledger-utils.ts @@ -1,4 +1,5 @@ import debugFactory from 'debug' +import { SemVer } from 'semver' const debug = debugFactory('kit:wallet:ledger') @@ -12,3 +13,15 @@ export function transportErrorFriendlyMessage(error: any) { } throw error } + +export function meetsVersionRequirements( + version: string | SemVer, + { + minimum, + maximum, + }: { minimum?: SemVer | string; maximum?: SemVer | string; inclusive?: boolean } +) { + const min = minimum ? new SemVer(version).compare(minimum) >= 0 : true + const max = maximum ? new SemVer(version).compare(maximum) <= 0 : true + return min && max +} diff --git a/packages/sdk/wallets/wallet-ledger/src/ledger-wallet.test.ts b/packages/sdk/wallets/wallet-ledger/src/ledger-wallet.test.ts index 4b822c9e1..eaac1aea2 100644 --- a/packages/sdk/wallets/wallet-ledger/src/ledger-wallet.test.ts +++ b/packages/sdk/wallets/wallet-ledger/src/ledger-wallet.test.ts @@ -5,21 +5,29 @@ import { trimLeading0x, } from '@celo/base/lib/address' import { CeloTx, EncodedTransaction, Hex } from '@celo/connect' -import { privateKeyToAddress } from '@celo/utils/lib/address' +import { StableToken, newKit } from '@celo/contractkit' +import { privateKeyToAddress, privateKeyToPublicKey } from '@celo/utils/lib/address' +import { generateTypedDataHash } from '@celo/utils/lib/sign-typed-data-utils' import { verifySignature } from '@celo/utils/lib/signatureUtils' import { chainIdTransformationForSigning, + determineTXType, getHashFromEncoded, recoverTransaction, signTransaction, verifyEIP712TypedDataSigner, } from '@celo/wallet-base' import * as ethUtil from '@ethereumjs/util' +import Ledger from '@ledgerhq/hw-app-eth' import TransportNodeHid from '@ledgerhq/hw-transport-node-hid' -import { keccak_256 } from '@noble/hashes/sha3' +import { VerifyPublicKeyInput, createVerify } from 'crypto' +import { readFileSync } from 'fs' +import { dirname, join } from 'path' import Web3 from 'web3' +import { rlpEncodedTx } from '../../wallet-base/lib' +import { legacyLedgerPublicKeyHex } from './data' +import { meetsVersionRequirements } from './ledger-utils' import { AddressValidation, LedgerWallet } from './ledger-wallet' -import { ILedger } from './types' // Update this variable when testing using a physical device const USE_PHYSICAL_LEDGER = process.env.USE_PHYSICAL_LEDGER === 'true' @@ -62,7 +70,7 @@ const ledgerAddresses: { [myKey: string]: { address: Hex; privateKey: Hex } } = }, } -const CHAIN_ID = 44378 +const CHAIN_ID = 44787 // Sample data from the official EIP-712 example: // https://github.com/ethereum/EIPs/blob/master/assets/eip-712/Example.js @@ -104,76 +112,146 @@ const TYPED_DATA = { }, } -function mockLedger(wallet: LedgerWallet, mockForceValidation: () => void) { - jest - .spyOn(wallet, 'generateNewLedger') - .mockImplementation((_transport: any): ILedger => { +interface ILedger { + getAddress: typeof Ledger.prototype.getAddress + signTransaction: typeof Ledger.prototype.signTransaction + signPersonalMessage: typeof Ledger.prototype.signPersonalMessage + signEIP712HashedMessage: typeof Ledger.prototype.signEIP712HashedMessage + getAppConfiguration: typeof Ledger.prototype.getAppConfiguration + provideERC20TokenInformation: typeof Ledger.prototype.provideERC20TokenInformation +} + +const mockLedgerImplementation = (mockForceValidation: () => void, version: string): ILedger => { + const _ledger = { + getAddress: async (derivationPath: string, forceValidation?: boolean) => { + if (forceValidation) { + mockForceValidation() + } + if (ledgerAddresses[derivationPath]) { + return { + address: ledgerAddresses[derivationPath].address, + derivationPath, + publicKey: privateKeyToPublicKey(ledgerAddresses[derivationPath].privateKey), + } + } return { - getAddress: async (derivationPath: string, forceValidation?: boolean) => { - if (forceValidation) { - mockForceValidation() - } - if (ledgerAddresses[derivationPath]) { - return { address: ledgerAddresses[derivationPath].address, derivationPath } - } - return {} - }, - signTransaction: async (derivationPath: string, data: string) => { - if (ledgerAddresses[derivationPath]) { - const { r, s, v } = signTransaction( - getHashFromEncoded(ensureLeading0x(data)), - ledgerAddresses[derivationPath].privateKey, - chainIdTransformationForSigning(CHAIN_ID) - ) - return { - v: v.toString(16), - r: r.toString('hex'), - s: s.toString('hex'), - } - } - throw new Error('Invalid Path') - }, - signPersonalMessage: async (derivationPath: string, data: string) => { - if (ledgerAddresses[derivationPath]) { - const dataBuff = ethUtil.toBuffer(ensureLeading0x(data)) - const msgHashBuff = ethUtil.hashPersonalMessage(dataBuff) - - const trimmedKey = trimLeading0x(ledgerAddresses[derivationPath].privateKey) - const pkBuffer = Buffer.from(trimmedKey, 'hex') - const signature = ethUtil.ecsign(msgHashBuff, pkBuffer) - return { - v: signature.v.toString(10), - r: signature.r.toString('hex'), - s: signature.s.toString('hex'), - } - } - throw new Error('Invalid Path') - }, - signEIP712HashedMessage: async ( - derivationPath: string, - domainSeparator: Buffer, - structHash: Buffer - ) => { - const messageHash = Buffer.from( - keccak_256(Buffer.concat([Buffer.from('1901', 'hex'), domainSeparator, structHash])) - ) + address: '', + derivationPath, + publicKey: '', + } + }, + signTransaction: async (derivationPath: string, data: string) => { + if (ledgerAddresses[derivationPath]) { + const type = determineTXType(ensureLeading0x(data)) + // replicate logic from wallet-base/src/wallet-base.ts + const addToV = type === 'celo-legacy' ? chainIdTransformationForSigning(CHAIN_ID) : 27 + const hash = getHashFromEncoded(ensureLeading0x(data)) + const { r, s, v } = signTransaction( + hash, + ledgerAddresses[derivationPath].privateKey, + addToV + ) - const trimmedKey = trimLeading0x(ledgerAddresses[derivationPath].privateKey) - const pkBuffer = Buffer.from(trimmedKey, 'hex') - const signature = ethUtil.ecsign(messageHash, pkBuffer) - return { - v: signature.v.toString(16), - r: signature.r.toString('hex'), - s: signature.s.toString('hex'), - } - }, - getAppConfiguration: async () => { - return { arbitraryDataEnabled: 1, version: '0.0.0' } - }, - provideERC20TokenInformation: async (_token) => { - return {} - }, + return { + v: v.toString(16), + r: r.toString('hex'), + s: s.toString('hex'), + } + } + throw new Error('Invalid Path') + }, + signPersonalMessage: async (derivationPath: string, data: string) => { + if (ledgerAddresses[derivationPath]) { + const dataBuff = ethUtil.toBuffer(ensureLeading0x(data)) + const msgHashBuff = ethUtil.hashPersonalMessage(dataBuff) + + const trimmedKey = trimLeading0x(ledgerAddresses[derivationPath].privateKey) + const pkBuffer = Buffer.from(trimmedKey, 'hex') + const signature = ethUtil.ecsign(msgHashBuff, pkBuffer) + return { + v: Number(signature.v), + r: signature.r.toString('hex'), + s: signature.s.toString('hex'), + } + } + throw new Error('Invalid Path') + }, + signEIP712HashedMessage: async ( + derivationPath: string, + _domainSeparator: string, + _structHash: string + ) => { + const messageHash = generateTypedDataHash(TYPED_DATA) + + const trimmedKey = trimLeading0x(ledgerAddresses[derivationPath].privateKey) + const pkBuffer = Buffer.from(trimmedKey, 'hex') + const signature = ethUtil.ecsign(messageHash, pkBuffer) + return { + v: Number(signature.v), + r: signature.r.toString('hex'), + s: signature.s.toString('hex'), + } + }, + getAppConfiguration: async () => { + return { + arbitraryDataEnabled: 1, + version: version, + erc20ProvisioningNecessary: 1, + starkEnabled: 1, + starkv2Supported: 1, + } + }, + provideERC20TokenInformation: async (tokenData: string) => { + let pubkey: VerifyPublicKeyInput + const version = (await _ledger.getAppConfiguration()).version + if ( + meetsVersionRequirements(version, { + minimum: LedgerWallet.MIN_VERSION_EIP1559, + }) + ) { + // verify with new pubkey + const pubDir = dirname(require.resolve('@celo/ledger-token-signer')) + pubkey = { key: readFileSync(join(pubDir, 'pubkey.pem')).toString() } + } else { + // verify with oldpubkey + pubkey = { key: legacyLedgerPublicKeyHex } } + + const verify = createVerify('sha256') + const tokenDataBuf = Buffer.from(tokenData, 'hex') + const BASE_DATA_LENGTH = + 20 + // contract address, 20 bytes + 4 + // decimals, uint32, 4 bytes + 4 // chainId, uint32, 4 bytes + // first byte of data is the ticker length, so we add that to base data length + const dataLen = BASE_DATA_LENGTH + tokenDataBuf.readInt8(0) + // start at 1 since the first byte was just informative + const data = tokenDataBuf.slice(1, dataLen + 1) + verify.update(data) + verify.end() + // read from end of data til the end + const signature = tokenDataBuf.slice(dataLen + 1) + const verified = verify.verify(pubkey, signature) + + if (!verified) { + throw new Error('couldnt verify data sent to MockLedger') + } + return verified + }, + } + return _ledger +} + +function mockLedger( + wallet: LedgerWallet, + mockForceValidation: () => void, + version = LedgerWallet.MIN_VERSION_EIP1559 +) { + jest + .spyOn(wallet, 'generateNewLedger') + .mockClear() + .mockImplementation((_transport: any): ILedger => { + return mockLedgerImplementation(mockForceValidation, version) }) } @@ -218,11 +296,10 @@ describe('LedgerWallet class', () => { chainId: CHAIN_ID, value: Web3.utils.toWei('1', 'ether'), nonce: 0, - gas: '10', - gasPrice: '99', - feeCurrency: '0x', - gatewayFeeRecipient: ACCOUNT_ADDRESS_NEVER, - gatewayFee: '0x5678', + gas: 99, + maxFeePerGas: 99, + maxPriorityFeePerGas: 99, + // feeCurrency: '0x', data: '0xabcdef', } }) @@ -291,11 +368,9 @@ describe('LedgerWallet class', () => { chainId: CHAIN_ID, value: Web3.utils.toWei('1', 'ether'), nonce: 0, - gas: '10', - gasPrice: '99', - feeCurrency: '0x', - gatewayFeeRecipient: ACCOUNT_ADDRESS_NEVER, - gatewayFee: '0x5678', + gas: 99, + maxFeePerGas: 99, + maxPriorityFeePerGas: 99, data: '0xabcdef', } }) @@ -327,36 +402,102 @@ describe('LedgerWallet class', () => { }) describe('using a known address', () => { - describe('when calling signTransaction', () => { - beforeEach(() => { + describe('[eip1559]', () => { + beforeEach(async () => { celoTransaction = { from: knownAddress, to: otherAddress, chainId: CHAIN_ID, value: Web3.utils.toWei('1', 'ether'), nonce: 0, - gas: '10', - gasPrice: '99', - feeCurrency: '0x', - gatewayFeeRecipient: ACCOUNT_ADDRESS_NEVER, - gatewayFee: '0x5678', - data: '0xabcdef', + gas: 99, + maxFeePerGas: 99, + maxPriorityFeePerGas: 99, + // data: '0xabcdef', } }) test( - 'succeeds', + 'succeeds on cel2 (when ledger version is above minimum)', async () => { await expect(wallet.signTransaction(celoTransaction)).resolves.not.toBeUndefined() }, TEST_TIMEOUT_IN_MS ) + // + test( + 'fails on cel2 (when ledger version is below minimum)', + async () => { + wallet = new LedgerWallet( + undefined, + undefined, + undefined, + AddressValidation.never, + true + ) + mockForceValidation = jest.fn((): void => { + // do nothing + }) + mockLedger(wallet, mockForceValidation, LedgerWallet.MIN_VERSION_TOKEN_DATA) + await wallet.init() + + expect( + wallet.signTransaction(celoTransaction) + ).rejects.toThrowErrorMatchingInlineSnapshot( + `"celo ledger app version must be at least 1.2.0 to sign transactions supported on celo after the L2 upgrade"` + ) + }, + TEST_TIMEOUT_IN_MS + ) + test( + 'on cel1 with old ledger converts to legacy tx', + async () => { + wallet = new LedgerWallet( + undefined, + undefined, + undefined, + AddressValidation.never, + false + ) + mockForceValidation = jest.fn((): void => { + // do nothing + }) + mockLedger(wallet, mockForceValidation, LedgerWallet.MIN_VERSION_TOKEN_DATA) + await wallet.init() + const warnSpy = jest.spyOn(console, 'warn') + // setup complete + + await expect(wallet.signTransaction(celoTransaction)).resolves + .toMatchInlineSnapshot(` + { + "raw": "0xf86b80636380808094588e4b68193001e4d10928660ab4165b813717c0880de0b6b3a76400008083015e09a0dc9e278c10d4b3416f436ef1c3e7ab913391771fee82f7d7f5a810d01561ba34a07d9d09088d2cfe05345fede2fdfb837be7b5e2ae428e4dda94c042d3dd246e1e", + "tx": { + "feeCurrency": "0x", + "gas": "0x63", + "hash": "0x3c764c8b7e35fb841b57d8409a9210df87b10d6e6334a43ce936cdf569f20d01", + "input": "0x", + "nonce": "0", + "r": "0xdc9e278c10d4b3416f436ef1c3e7ab913391771fee82f7d7f5a810d01561ba34", + "s": "0x7d9d09088d2cfe05345fede2fdfb837be7b5e2ae428e4dda94c042d3dd246e1e", + "to": "0x588e4b68193001e4d10928660ab4165b813717c0", + "v": "0x015e09", + "value": "0x0de0b6b3a7640000", + }, + "type": "celo-legacy", + } + `) + expect(warnSpy).toHaveBeenCalledWith( + 'Upgrade your celo ledger app to at least 1.2.0 before cel2 transition' + ) + }, + TEST_TIMEOUT_IN_MS + ) test( 'with same signer', async () => { const signedTx: EncodedTransaction = await wallet.signTransaction(celoTransaction) - const [, recoveredSigner] = recoverTransaction(signedTx.raw) + const [_tx, recoveredSigner] = recoverTransaction(signedTx.raw) expect(normalizeAddressWith0x(recoveredSigner)).toBe( normalizeAddressWith0x(knownAddress) ) @@ -376,13 +517,11 @@ describe('LedgerWallet class', () => { value: Web3.utils.toWei('1', 'ether'), nonce: 65, gas: '10', - gasPrice: '99', + maxFeePerGas: 99, + maxPriorityFeePerGas: 99, feeCurrency: '0x' as const, - gatewayFeeRecipient: ACCOUNT_ADDRESS_NEVER, - gatewayFee: '0x5678', - data: '0xabcdef', + // data: '0xabcdef', } - const signedTx: EncodedTransaction = await wallet.signTransaction( celoTransactionZeroPrefix ) @@ -395,6 +534,201 @@ describe('LedgerWallet class', () => { TEST_TIMEOUT_IN_MS ) }) + + describe('[eth-legacy]', () => { + beforeEach(async () => { + celoTransaction = { + from: knownAddress, + to: otherAddress, + chainId: CHAIN_ID, + value: Web3.utils.toWei('1', 'ether'), + nonce: 1, + gas: 99, + gasPrice: 99, + } + }) + + test( + 'fails', + async () => { + await expect( + wallet.signTransaction(celoTransaction) + ).rejects.toThrowErrorMatchingInlineSnapshot( + `"ethereum-legacy transactions are not supported, please try sending a more modern transaction instead (eip1559, cip64, etc.)"` + ) + }, + TEST_TIMEOUT_IN_MS + ) + }) + + describe('[celo-legacy]', () => { + beforeEach(async () => { + const kit = newKit('https://alfajores-forno.celo-testnet.org') + celoTransaction = { + from: knownAddress, + to: otherAddress, + chainId: CHAIN_ID, + value: Web3.utils.toWei('1', 'ether'), + nonce: 0, + gas: 99, + gasPrice: 99, + feeCurrency: (await kit.contracts.getStableToken(StableToken.cUSD)).address, + } + }) + describe('with old ledger app', () => { + describe('on Cel2 with old app version', () => { + beforeEach(async () => { + wallet = new LedgerWallet( + undefined, + undefined, + undefined, + AddressValidation.never, + true + ) + mockForceValidation = jest.fn((): void => { + // do nothing + }) + mockLedger(wallet, mockForceValidation, LedgerWallet.MIN_VERSION_TOKEN_DATA) + await wallet.init() + }) + + test( + 'fails', + async () => { + await expect( + wallet.signTransaction(celoTransaction) + ).rejects.toThrowErrorMatchingInlineSnapshot( + `"celo ledger app version must be at least 1.2.0 to sign transactions supported on celo after the L2 upgrade"` + ) + }, + TEST_TIMEOUT_IN_MS + ) + }) + describe('on celo l1 with old app version', () => { + test( + 'physical device only', + async () => { + if (!hardwareWallet) { + expect(true).toBeTruthy() + return + } + const signedTx = await wallet.signTransaction(celoTransaction) + const [_tx, recoveredSigner] = recoverTransaction(signedTx.raw) + expect(normalizeAddressWith0x(recoveredSigner)).toEqual( + normalizeAddressWith0x(knownAddress) + ) + }, + TEST_TIMEOUT_IN_MS + ) + + test( + 'succeeds with warning', + async () => { + wallet = new LedgerWallet( + undefined, + undefined, + undefined, + AddressValidation.never, + false + ) + mockForceValidation = jest.fn((): void => { + // do nothing + }) + mockLedger(wallet, mockForceValidation, LedgerWallet.MIN_VERSION_TOKEN_DATA) + await wallet.init() + const warnSpy = jest.spyOn(console, 'warn') + // setup complete + + await expect(wallet.signTransaction(celoTransaction)).resolves + .toMatchInlineSnapshot(` + { + "raw": "0xf87f80636394874069fa1eb16d44d622f2e0ca25eea172369bc1808094588e4b68193001e4d10928660ab4165b813717c0880de0b6b3a76400008083015e09a024c4b1d027c50d2e847d371cd902d3e22c9fa10fcbd59e9c5a854282afed34daa0686180d75830ea223c3ed1ca12613d029bc3613b4b5b51a724b33067491c2398", + "tx": { + "feeCurrency": "0x874069fa1eb16d44d622f2e0ca25eea172369bc1", + "gas": "0x63", + "hash": "0x302b12585b4a17317e9affcbe0abd0cd8cd39ef402108625085485b1c1d92d71", + "input": "0x", + "nonce": "0", + "r": "0x24c4b1d027c50d2e847d371cd902d3e22c9fa10fcbd59e9c5a854282afed34da", + "s": "0x686180d75830ea223c3ed1ca12613d029bc3613b4b5b51a724b33067491c2398", + "to": "0x588e4b68193001e4d10928660ab4165b813717c0", + "v": "0x015e09", + "value": "0x0de0b6b3a7640000", + }, + "type": "celo-legacy", + } + `) + expect(warnSpy).toHaveBeenCalledWith( + 'Upgrade your celo ledger app to at least 1.2.0 before cel2 transition' + ) + }, + TEST_TIMEOUT_IN_MS + ) + }) + }) + describe('with new ledger app', () => { + test( + 'fails with helpful error', + async () => { + await expect( + wallet.signTransaction(celoTransaction) + ).rejects.toThrowErrorMatchingInlineSnapshot( + `"celo ledger app above 1.2.0 cannot serialize legacy celo transactions. Replace "gasPrice" with "maxFeePerGas"."` + ) + }, + TEST_TIMEOUT_IN_MS + ) + }) + }) + + describe('[cip64]', () => { + const kit = newKit('https://alfajores-forno.celo-testnet.org') + beforeEach(async () => { + celoTransaction = { + from: knownAddress, + to: otherAddress, + chainId: CHAIN_ID, + value: Web3.utils.toWei('1', 'ether'), + nonce: 0, + gas: 99, + maxFeePerGas: 99, + maxPriorityFeePerGas: 99, + feeCurrency: (await kit.contracts.getStableToken(StableToken.cUSD)).address, + } + }) + + test( + 'succeeds', + async () => { + await expect(wallet.signTransaction(celoTransaction)).resolves.not.toBeUndefined() + }, + TEST_TIMEOUT_IN_MS + ) + }) + describe('[cip66]', () => { + const kit = newKit('https://alfajores-forno.celo-testnet.org') + beforeEach(async () => { + celoTransaction = { + from: knownAddress, + to: otherAddress, + chainId: CHAIN_ID, + value: Web3.utils.toWei('1', 'ether'), + nonce: 0, + gas: 99, + maxFeePerGas: 99, + maxPriorityFeePerGas: 99, + feeCurrency: (await kit.contracts.getStableToken(StableToken.cUSD)).address, + } + }) + + test( + 'gives warning', + async () => { + await expect(wallet.signTransaction(celoTransaction)).resolves.not.toBeUndefined() + }, + TEST_TIMEOUT_IN_MS + ) + }) }) describe('when calling signPersonalMessage', () => { @@ -412,7 +746,7 @@ describe('LedgerWallet class', () => { }) describe('when calling signTypedData', () => { - test( + test.skip( 'succeeds', async () => { const signedMessage = await wallet.signTypedData(knownAddress, TYPED_DATA) @@ -453,6 +787,22 @@ describe('LedgerWallet class', () => { }) }) + describe('only in the initialization legacy (version < 1.2.0)', () => { + beforeEach(() => { + wallet = new LedgerWallet(undefined, undefined, {}, AddressValidation.initializationOnly) + mockForceValidation = jest.fn((): void => { + // do nothing + }) + mockLedger(wallet, mockForceValidation, '0.0.0') + }) + + it("will fail to initialize if the version isn't supported", async () => { + expect(wallet.init()).rejects.toMatchInlineSnapshot( + `[Error: Due to technical issues, we require the users to update their ledger celo-app to >= 1.0.0. You can do this on ledger-live by updating the celo-app in the app catalog.]` + ) + }) + }) + describe('only in the initialization', () => { beforeEach(() => { wallet = new LedgerWallet(undefined, undefined, {}, AddressValidation.initializationOnly) @@ -537,3 +887,44 @@ describe('LedgerWallet class', () => { }) }) }) + +describe('patch-package @ledgerhq/hw-app-eth', () => { + test('was applied correctly', async () => { + const { decodeTxInfo } = await import('@ledgerhq/hw-app-eth/lib/utils') + + const kit = newKit('https://alfajores-forno.celo-testnet.org') + const celoTransaction = { + from: ACCOUNT_ADDRESS1, + to: ACCOUNT_ADDRESS2, + chainId: CHAIN_ID, + value: Web3.utils.toWei('1', 'ether'), + nonce: 0, + gas: 99, + maxFeePerGas: 99, + maxPriorityFeePerGas: 99, + feeCurrency: (await kit.contracts.getStableToken(StableToken.cUSD)).address, + } + const serialized = rlpEncodedTx(celoTransaction) + const rawTx = Buffer.from(trimLeading0x(serialized.rlpEncode), 'hex') + let ledgerDecoded: ReturnType + expect(() => { + ledgerDecoded = decodeTxInfo(rawTx) + }).not.toThrow(/invalid rlp data/) + expect(ledgerDecoded!.txType).toEqual(0x7b) + expect(ledgerDecoded!.chainId.toNumber()).toEqual(CHAIN_ID) + expect(ledgerDecoded!.decodedTx).toMatchInlineSnapshot(` + { + "chainId": { + "data": [ + 174, + 243, + ], + "type": "Buffer", + }, + "data": "0x", + "feeCurrency": "0x874069fa1eb16d44d622f2e0ca25eea172369bc1", + "to": "0x588e4b68193001e4d10928660ab4165b813717c0", + } + `) + }) +}) diff --git a/packages/sdk/wallets/wallet-ledger/src/ledger-wallet.ts b/packages/sdk/wallets/wallet-ledger/src/ledger-wallet.ts index 15747cd34..1fa49baf9 100644 --- a/packages/sdk/wallets/wallet-ledger/src/ledger-wallet.ts +++ b/packages/sdk/wallets/wallet-ledger/src/ledger-wallet.ts @@ -1,13 +1,21 @@ import { CELO_DERIVATION_PATH_BASE } from '@celo/base/lib/account' import { zeroRange } from '@celo/base/lib/collections' -import { Address, CeloTx, EncodedTransaction, ReadOnlyWallet } from '@celo/connect' +import { Address, CeloTx, EncodedTransaction, ReadOnlyWallet, isPresent } from '@celo/connect' +import { + chainIdTransformationForSigning, + encodeTransaction, + encode_deprecated_celo_legacy_type_only_for_temporary_ledger_compat, + isCIP64, + isEIP1559, + rlpEncodedTx, +} from '@celo/wallet-base' import { RemoteWallet } from '@celo/wallet-remote' import { TransportError, TransportStatusError } from '@ledgerhq/errors' import Ledger from '@ledgerhq/hw-app-eth' import debugFactory from 'debug' +import { SemVer } from 'semver' import { LedgerSigner } from './ledger-signer' -import { transportErrorFriendlyMessage } from './ledger-utils' -import { ILedger } from './types' +import { meetsVersionRequirements, transportErrorFriendlyMessage } from './ledger-utils' export const CELO_BASE_DERIVATION_PATH = `${CELO_DERIVATION_PATH_BASE.slice(2)}/0` const ADDRESS_QTY = 5 @@ -28,13 +36,15 @@ export async function newLedgerWalletWithSetup( transport: any, derivationPathIndexes?: number[], baseDerivationPath?: string, - ledgerAddressValidation?: AddressValidation + ledgerAddressValidation?: AddressValidation, + isCel2?: boolean ): Promise { const wallet = new LedgerWallet( derivationPathIndexes, baseDerivationPath, transport, - ledgerAddressValidation + ledgerAddressValidation, + isCel2 ) await wallet.init() return wallet @@ -43,7 +53,10 @@ export async function newLedgerWalletWithSetup( const debug = debugFactory('kit:wallet:ledger') export class LedgerWallet extends RemoteWallet implements ReadOnlyWallet { - private ledger: ILedger | undefined + static MIN_VERSION_SUPPORTED = '1.0.0' + static MIN_VERSION_TOKEN_DATA = '1.0.2' + static MIN_VERSION_EIP1559 = '1.2.0' + ledger: Ledger | undefined /** * @param derivationPathIndexes number array of "address_index" for the base derivation path. @@ -57,7 +70,8 @@ export class LedgerWallet extends RemoteWallet implements ReadOnly readonly derivationPathIndexes: number[] = zeroRange(ADDRESS_QTY), readonly baseDerivationPath: string = CELO_BASE_DERIVATION_PATH, readonly transport: any = {}, - readonly ledgerAddressValidation: AddressValidation = AddressValidation.firstTransactionPerAddress + readonly ledgerAddressValidation: AddressValidation = AddressValidation.firstTransactionPerAddress, + readonly isCel2?: boolean ) { super() const invalidDPs = derivationPathIndexes.some( @@ -68,22 +82,74 @@ export class LedgerWallet extends RemoteWallet implements ReadOnly } } - signTransaction(txParams: CeloTx): Promise { - // CeloLedger does not support maxFeePerGas and maxPriorityFeePerGas yet - txParams.gasPrice = txParams.gasPrice ?? txParams.maxFeePerGas - if (txParams.maxFeePerGas || txParams.maxPriorityFeePerGas) { - console.info( - 'maxFeePerGas and maxPriorityFeePerGas are not supported on Ledger yet. Automatically using gasPrice instead.' + async signTransaction(txParams: CeloTx): Promise { + const rlpEncoded = await this.rlpEncodedTxForLedger(txParams) + const addToV = + rlpEncoded.type === 'celo-legacy' ? chainIdTransformationForSigning(txParams.chainId!) : 27 + + // Get the signer from the 'from' field + const fromAddress = txParams.from!.toString() + const signer = this.getSigner(fromAddress) + const signature = await signer!.signTransaction(addToV, rlpEncoded) + + return encodeTransaction(rlpEncoded, signature) + } + + async rlpEncodedTxForLedger(txParams: CeloTx) { + if (!txParams) { + throw new Error('No transaction object given!') + } + + const deviceApp = await this.retrieveAppConfiguration() + const version = new SemVer(deviceApp.version) + + // if the app is of minimum version it doesnt matter if chain is cel2 or not + if (meetsVersionRequirements(version, { minimum: LedgerWallet.MIN_VERSION_EIP1559 })) { + if (txParams.gasPrice && txParams.feeCurrency && txParams.feeCurrency !== '0x') { + throw new Error( + `celo ledger app above ${LedgerWallet.MIN_VERSION_EIP1559} cannot serialize legacy celo transactions. Replace "gasPrice" with "maxFeePerGas".` + ) + } + if (txParams.gasPrice) { + throw new Error( + 'ethereum-legacy transactions are not supported, please try sending a more modern transaction instead (eip1559, cip64, etc.)' + ) + } + // TODO ensure it is building a 1559 or cip64 tx, possibly force it + // by deleting/ adding properties instead of throwing. + // TODO when cip66 is implemented ensure it is not that + // @ts-expect-error -- 66 isnt in this branch but will be in the release so future proof + if (isEIP1559(txParams) || (isCIP64(txParams) && !isPresent(txParams.maxFeePerFeeCurrency))) { + return rlpEncodedTx(txParams) + } else { + throw new Error( + 'only eip1559 and cip64 transactions can be signd by this version of celo ledger app' + ) + } + // but if not celo as layer 2 and as layer 1 are different + } else if (this.isCel2) { + throw new Error( + `celo ledger app version must be at least ${LedgerWallet.MIN_VERSION_EIP1559} to sign transactions supported on celo after the L2 upgrade` ) - delete txParams.maxFeePerGas - delete txParams.maxPriorityFeePerGas + } else { + // the l1 legacy case + console.warn( + `Upgrade your celo ledger app to at least ${LedgerWallet.MIN_VERSION_EIP1559} before cel2 transition` + ) + if (!txParams.gasPrice) { + // this version of app only supports legacy so must have gasPrice + txParams.gasPrice = txParams.maxFeePerGas + delete txParams.maxFeePerGas + delete txParams.maxPriorityFeePerGas + console.info('automatically converting to legacy transaction') + } + return encode_deprecated_celo_legacy_type_only_for_temporary_ledger_compat(txParams) } - return super.signTransaction(txParams) } protected async loadAccountSigners(): Promise> { if (!this.ledger) { - this.ledger = this.generateNewLedger(this.transport) as ILedger + this.ledger = this.generateNewLedger(this.transport) } debug('Fetching addresses from the ledger') let addressToSigner = new Map() @@ -130,6 +196,11 @@ export class LedgerWallet extends RemoteWallet implements ReadOnly version: string }> { const appConfiguration = await this.ledger!.getAppConfiguration() + if (new SemVer(appConfiguration.version).compare(LedgerWallet.MIN_VERSION_SUPPORTED) === -1) { + throw new Error( + `Due to technical issues, we require the users to update their ledger celo-app to >= ${LedgerWallet.MIN_VERSION_SUPPORTED}. You can do this on ledger-live by updating the celo-app in the app catalog.` + ) + } if (!appConfiguration.arbitraryDataEnabled) { console.warn( 'Beware, your ledger does not allow the use of contract data. Some features may not work correctly, including token transfers. You can enable it from the ledger app settings.' diff --git a/packages/sdk/wallets/wallet-ledger/src/tokens.ts b/packages/sdk/wallets/wallet-ledger/src/tokens.ts index 4e242a7d6..02f1f3eae 100644 --- a/packages/sdk/wallets/wallet-ledger/src/tokens.ts +++ b/packages/sdk/wallets/wallet-ledger/src/tokens.ts @@ -1,6 +1,7 @@ // Copied from '@ledgerhq/hw-app-eth/erc20' because we need to change the path of the blob and support for address+chainId import { Address, normalizeAddressWith0x } from '@celo/base/lib/address' -import blob from './data' +import blob from '@celo/ledger-token-signer' +import blobLegacy from './data' /** * Retrieve the token information by a given contract address and chainId if any @@ -8,12 +9,19 @@ import blob from './data' export const tokenInfoByAddressAndChainId = ( contract: Address, chainId: number -): TokenInfo | null | undefined => get().byContractKey(generateContractKey(contract, chainId)) +): TokenInfo | null | undefined => get(blob).byContractKey(generateContractKey(contract, chainId)) + +export const legacyTokenInfoByAddressAndChainId = ( + contract: Address, + chainId: number +): TokenInfo | null | undefined => + get(blobLegacy).byContractKey(generateContractKey(contract, chainId)) /** * list all the ERC20 tokens informations */ -export const list = (): TokenInfo[] => get().list() +export const list = (): TokenInfo[] => get(blob).list() +export const listLegacy = (): TokenInfo[] => get(blobLegacy).list() export interface TokenInfo { contractAddress: Address @@ -24,23 +32,6 @@ export interface TokenInfo { data: Buffer } -/** - * @return - * -1: version1 < version2, - * 0: version1 == version2, - * 1: version1 > version2 - */ -export function compareLedgerAppVersions(version1: string, version2: string): number { - const numberV1 = stringVersionToNumber(version1) - const numberV2 = stringVersionToNumber(version2) - return numberV1 < numberV2 ? -1 : numberV1 === numberV2 ? 0 : 1 -} - -function stringVersionToNumber(version: string): number { - const parts = version.split('.') - return parts.reduce((accum, part) => (accum + Number(part)) * 1000, 0) -} - export interface API { byContractKey: (arg0: string) => TokenInfo | null | undefined list: () => TokenInfo[] @@ -50,50 +41,42 @@ function generateContractKey(contract: Address, chainId: number): string { return [normalizeAddressWith0x(contract), chainId].join('-') } -// this internal get() will lazy load and cache the data from the erc20 data blob -const get: () => API = (() => { - let cache: API - return () => { - if (cache) { - return cache - } - const buf = Buffer.from(blob, 'base64') - const byContract: { [id: string]: TokenInfo } = {} - const entries: TokenInfo[] = [] - let i = 0 - while (i < buf.length) { - const length = buf.readUInt32BE(i) - i += 4 - const item = buf.slice(i, i + length) - let j = 0 - const tickerLength = item.readUInt8(j) - j += 1 - const ticker = item.slice(j, j + tickerLength).toString('ascii') - j += tickerLength - const contractAddress: string = normalizeAddressWith0x(item.slice(j, j + 20).toString('hex')) - j += 20 - const decimals = item.readUInt32BE(j) - j += 4 - const chainId = item.readUInt32BE(j) - j += 4 - const signature = item.slice(j) - const entry: TokenInfo = { - ticker, - contractAddress, - decimals, - chainId, - signature, - data: item, - } - entries.push(entry) - byContract[generateContractKey(contractAddress, chainId)] = entry - i += length +const get = (data: string): API => { + const buf = Buffer.from(data, 'base64') + const byContract: { [id: string]: TokenInfo } = {} + const entries: TokenInfo[] = [] + let i = 0 + while (i < buf.length) { + const length = buf.readUInt32BE(i) + i += 4 + const item = buf.slice(i, i + length) + let j = 0 + const tickerLength = item.readUInt8(j) + j += 1 + const ticker = item.slice(j, j + tickerLength).toString('ascii') + j += tickerLength + const contractAddress: string = normalizeAddressWith0x(item.slice(j, j + 20).toString('hex')) + j += 20 + const decimals = item.readUInt32BE(j) + j += 4 + const chainId = item.readUInt32BE(j) + j += 4 + const signature = item.slice(j) + const entry: TokenInfo = { + ticker, + contractAddress, + decimals, + chainId, + signature, + data: item, } - const api = { - list: () => entries, - byContractKey: (id: string) => byContract[id], - } - cache = api - return api + entries.push(entry) + byContract[generateContractKey(contractAddress, chainId)] = entry + i += length + } + const api = { + list: () => entries, + byContractKey: (id: string) => byContract[id], } -})() + return api +} diff --git a/packages/sdk/wallets/wallet-ledger/src/types.d.ts b/packages/sdk/wallets/wallet-ledger/src/types.d.ts deleted file mode 100644 index 991902965..000000000 --- a/packages/sdk/wallets/wallet-ledger/src/types.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { Hex } from '@celo/connect' - -type LedgerSignature = { v: string; r: string; s: string } -export interface ILedger { - getAddress( - derivationPath: string, - forceValidation?: boolean - ): Promise<{ address?: Hex; derivationPath?: string }> - signTransaction(derivationPath: string, data: string): Promise - signPersonalMessage(derivationPath: string, data: string): Promise - signEIP712HashedMessage( - derivationPath: string, - domainSeparator: Buffer, - structHash: Buffer - ): Promise - getAppConfiguration(): Promise<{ arbitraryDataEnabled: number; version: string }> - provideERC20TokenInformation(TokenInfo): Promise -} diff --git a/packages/sdk/wallets/wallet-ledger/tokens-all-networks.json b/packages/sdk/wallets/wallet-ledger/tokens-all-networks.json index ec8adbd55..3287a68c6 100644 --- a/packages/sdk/wallets/wallet-ledger/tokens-all-networks.json +++ b/packages/sdk/wallets/wallet-ledger/tokens-all-networks.json @@ -1,11 +1,21 @@ [{ - "ticker": "CELO", - "address": "471ece3750da237f93b8e339c536989b8978a438", + "ticker": "USD₮", + "address": "0E2A3e05bc9A16F5292A6170456A710cb89C6f72", + "decimals": 18, + "chainId": 42220 +},{ + "ticker": "USDC", + "address": "2F25deB3848C207fc8E0c34035B3Ba7fC157602B", + "decimals": 6, + "chainId": 42220 +},{ + "ticker": "eXOF", + "address": "73F93dcc49cB8A239e2032663e9475dd5ef29A08", "decimals": 18, "chainId": 42220 },{ "ticker": "cUSD", - "address": "765de816845861e75a25fca122bb6898b8b1282a", + "address": "765DE816845861e75A25fCA122bb6898B8B1282a", "decimals": 18, "chainId": 42220 },{ @@ -14,33 +24,83 @@ "decimals": 18, "chainId": 42220 },{ - "ticker": "b CELO", - "address": "dDc9bE57f553fe75752D61606B94CBD7e0264eF8", + "ticker": "cREAL", + "address": "e8537a3d056DA446677B9E9d6c5dB704EaAb4787", "decimals": 18, - "chainId": 62320 + "chainId": 42220 },{ "ticker": "b cUSD", "address": "62492A644A588FD904270BeD06ad52B9abfEA1aE", "decimals": 18, "chainId": 62320 +},{ + "ticker": "b eXOF", + "address": "64c1D812673E93Bc036AdC3D547d9950696DA5Af", + "decimals": 18, + "chainId": 62320 +},{ + "ticker": "b cREAL", + "address": "6a0EEf2bed4C30Dc2CB42fe6c5f01F80f7EF16d1", + "decimals": 18, + "chainId": 62320 },{ "ticker": "b cEUR", "address": "f9ecE301247aD2CE21894941830A2470f4E774ca", "decimals": 18, "chainId": 62320 },{ - "ticker": "a CELO", - "address": "F194afDf50B03e69Bd7D057c1Aa9e10c9954E4C9", + "ticker": "a G$", + "address": "03d3daB843e6c03b3d271eff9178e6A96c28D25f", "decimals": 18, "chainId": 44787 +},{ + "ticker": "a cEUR", + "address": "10c892A6EC43a53E45D0B916B4b7D383B1b78C0F", + "decimals": 18, + "chainId": 44787 +},{ + "ticker": "a EFC", + "address": "1aD7b617cB6c5156A6dea6E47514D16476b99F38", + "decimals": 6, + "chainId": 44787 +},{ + "ticker": "a USDC", + "address": "4822e58de6f5e485eF90df51C41CE01721331dC0", + "decimals": 6, + "chainId": 44787 +},{ + "ticker": "a EFC", + "address": "7d027790998f714B294c96Fda9E27AF586d1EbB5", + "decimals": 6, + "chainId": 44787 },{ "ticker": "a cUSD", "address": "874069Fa1Eb16D44d622F2e0Ca25eeA172369bC1", "decimals": 18, "chainId": 44787 - },{ - "ticker": "a cEUR", - "address": "10c892A6EC43a53E45D0B916B4b7D383B1b78C0F", +},{ + "ticker": "a eXOF", + "address": "B0FA15e002516d0301884059c0aaC0F0C72b019D", + "decimals": 18, + "chainId": 44787 +},{ + "ticker": "a USD₮", + "address": "C4f86E9B4A588D501c1c3e25628dFd50Bc8D615e", "decimals": 18, "chainId": 44787 -}] \ No newline at end of file +},{ + "ticker": "a STBLTEST", + "address": "DB93874fE111F5a87Acc11Ff09Ee9450Ac6509AE", + "decimals": 6, + "chainId": 44787 +},{ + "ticker": "a cREAL", + "address": "E4D517785D091D3c54818832dB6094bcc2744545", + "decimals": 18, + "chainId": 44787 +},{ + "ticker": "a STBLTEST", + "address": "c9cce1e51F1393CE39EB722E3e59eDE6faBf89fD", + "decimals": 6, + "chainId": 44787 +}] diff --git a/packages/sdk/wallets/wallet-ledger/types/hw-app-eth.d.ts b/packages/sdk/wallets/wallet-ledger/types/hw-app-eth.d.ts deleted file mode 100644 index 22f71893d..000000000 --- a/packages/sdk/wallets/wallet-ledger/types/hw-app-eth.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -declare module '@ledgerhq/errors' -declare module '@ledgerhq/hw-app-eth' -declare module '@ledgerhq/hw-transport' -declare module '@ledgerhq/hw-transport-node-hid' diff --git a/packages/sdk/wallets/wallet-local/package.json b/packages/sdk/wallets/wallet-local/package.json index cb870ff85..495d6e3d5 100644 --- a/packages/sdk/wallets/wallet-local/package.json +++ b/packages/sdk/wallets/wallet-local/package.json @@ -22,12 +22,16 @@ "prepublishOnly": "yarn build" }, "dependencies": { + "@celo/base": "^6.0.1", "@celo/connect": "^5.3.0", "@celo/utils": "^6.0.1", "@celo/wallet-base": "^5.2.0", "@ethereumjs/util": "8.0.5" }, "devDependencies": { + "@celo/typescript": "workspace:^", + "@types/debug": "^4.1.12", + "debug": "^4.3.5", "viem": "~1.5.4", "web3": "1.10.4" }, diff --git a/packages/sdk/wallets/wallet-local/src/local-wallet.test.ts b/packages/sdk/wallets/wallet-local/src/local-wallet.test.ts index 04afdc383..bd281797e 100644 --- a/packages/sdk/wallets/wallet-local/src/local-wallet.test.ts +++ b/packages/sdk/wallets/wallet-local/src/local-wallet.test.ts @@ -63,7 +63,6 @@ const ACCOUNT_ADDRESS1 = normalizeAddressWith0x(privateKeyToAddress(PRIVATE_KEY1 const PRIVATE_KEY2 = '0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890fdeccc' const ACCOUNT_ADDRESS2 = normalizeAddressWith0x(privateKeyToAddress(PRIVATE_KEY2)) -const FEE_ADDRESS = ACCOUNT_ADDRESS1 const CURRENCY_ADDRESS = ACCOUNT_ADDRESS2 describe('Local wallet class', () => { @@ -121,10 +120,9 @@ describe('Local wallet class', () => { value: Web3.utils.toWei('1', 'ether'), nonce: 0, gas: '10', - gasPrice: '99', + maxFeePerGas: '99', + maxPriorityFeePerGas: '99', feeCurrency: CURRENCY_ADDRESS, - gatewayFeeRecipient: FEE_ADDRESS, - gatewayFee: '0x5678', data: '0xabcdef', } }) @@ -168,34 +166,39 @@ describe('Local wallet class', () => { nonce: 0, gas: '10', gasPrice: '99', - feeCurrency: '0x', - gatewayFeeRecipient: FEE_ADDRESS, - gatewayFee: '0x5678', data: '0xabcdef' as const, } }) + describe('when gasPrice and feeCurrency are both provided', () => { + test('throws error', async () => { + const tx = { + ...celoTransactionWithGasPrice, + feeCurrency: '0xCD2a3d9F938E13CD947Ec05AbC7FE734Df8DD826' as StrongAddress, + } + await expect(wallet.signTransaction(tx)).rejects.toMatchInlineSnapshot( + `[Error: Cannot serialize both "gasPrice" and "feeCurrency" together. To keep "feeCurrency", replace "gasPrice" with "maxFeePerGas". To keep "gasPrice" and send a type 0 transaction remove "feeCurrency"]` + ) + }) + }) - test('succeeds with legacy', async () => { + test('succeeds with eth-legacy', async () => { await expect(wallet.signTransaction(celoTransactionWithGasPrice)).resolves .toMatchInlineSnapshot(` { - "raw": "0xf88480630a80941be31a94361a391bbafb2a4ccd704f57dc04d4bb82567894588e4b68193001e4d10928660ab4165b813717c0880de0b6b3a764000083abcdef83015ad8a09e121a99dc0832a9f4d1d71500b3c8a69a3c064d437c225d6292577ffcc45a71a02c5efa3c4b58953c35968e42d11d3882dacacf45402ee802824268b7cd60daff", + "raw": "0xf86b80630a94588e4b68193001e4d10928660ab4165b813717c0880de0b6b3a764000083abcdef83015ad7a0c6f2c698f9952bc121b64496b60aa019863388f1542f5e10271ea89d0a19682ca01f270cf24f9d16d7be5e38b52b4ba9c2d8ac73d77ba8ca28142544dee5803ba7", "tx": { - "feeCurrency": "0x", "gas": "0x0a", "gasPrice": "0x63", - "gatewayFee": "0x5678", - "gatewayFeeRecipient": "0x1be31a94361a391bbafb2a4ccd704f57dc04d4bb", - "hash": "0xd24898ee3f68caa01fe065784453db7360bf783060fcbd18033f9d254ab8b082", + "hash": "0x59f4ff742a8b1f8eb1ad3e36fed4df3895da6b071dfaa858144a94c65f1fa8e3", "input": "0xabcdef", "nonce": "0", - "r": "0x9e121a99dc0832a9f4d1d71500b3c8a69a3c064d437c225d6292577ffcc45a71", - "s": "0x2c5efa3c4b58953c35968e42d11d3882dacacf45402ee802824268b7cd60daff", + "r": "0xc6f2c698f9952bc121b64496b60aa019863388f1542f5e10271ea89d0a19682c", + "s": "0x1f270cf24f9d16d7be5e38b52b4ba9c2d8ac73d77ba8ca28142544dee5803ba7", "to": "0x588e4b68193001e4d10928660ab4165b813717c0", - "v": "0x015ad8", + "v": "0x015ad7", "value": "0x0de0b6b3a7640000", }, - "type": "celo-legacy", + "type": "ethereum-legacy", } `) }) @@ -210,25 +213,22 @@ describe('Local wallet class', () => { } await expect(wallet.signTransaction(transaction1559)).resolves.toMatchInlineSnapshot(` { - "raw": "0x7cf88682ad5a8063630a80941be31a94361a391bbafb2a4ccd704f57dc04d4bb82567894588e4b68193001e4d10928660ab4165b813717c0880de0b6b3a764000083abcdefc001a0cfa1e1b30d1e4617ce80922d853c5e8b54b21f5ed6604438f90280ef2f0b7fd0a06fd8eee02fbdd421136fb45e6851ce72b5d87a2c06b2e136ef1a062df9256f4e", + "raw": "0x02f86d82ad5a8063630a94588e4b68193001e4d10928660ab4165b813717c0880de0b6b3a764000083abcdefc080a02c61b97c545c0a59732adbc497e944818da323a508930996383751d17e0b932ea015666dce65f074f12335ab78e1912f8b83fda75f05a002943459598712e6b17c", "tx": { "accessList": [], - "feeCurrency": "0x", "gas": "0x0a", - "gatewayFee": "0x5678", - "gatewayFeeRecipient": "0x1be31a94361a391bbafb2a4ccd704f57dc04d4bb", - "hash": "0x29327536ba9901fde64b1b86882fd173517b41cd8bc8245e3761847d9b231c6d", + "hash": "0xc8be0a99b8f133e843f6824d00db12b89d94e0df0cc28899021edc8924b7b2ba", "input": "0xabcdef", "maxFeePerGas": "0x63", "maxPriorityFeePerGas": "0x63", "nonce": "0", - "r": "0xcfa1e1b30d1e4617ce80922d853c5e8b54b21f5ed6604438f90280ef2f0b7fd0", - "s": "0x6fd8eee02fbdd421136fb45e6851ce72b5d87a2c06b2e136ef1a062df9256f4e", + "r": "0x2c61b97c545c0a59732adbc497e944818da323a508930996383751d17e0b932e", + "s": "0x15666dce65f074f12335ab78e1912f8b83fda75f05a002943459598712e6b17c", "to": "0x588e4b68193001e4d10928660ab4165b813717c0", - "v": "0x01", + "v": "0x", "value": "0x0de0b6b3a7640000", }, - "type": "cip42", + "type": "eip1559", } `) }) @@ -245,8 +245,6 @@ describe('Local wallet class', () => { to: otherAddress, gasPrice: undefined, feeCurrency: undefined, - gatewayFeeRecipient: undefined, - gatewayFee: undefined, maxFeePerGas: '99', maxPriorityFeePerGas: '99', data: celoTransactionWithGasPrice.data as Hex, @@ -277,8 +275,6 @@ describe('Local wallet class', () => { const recoverTransactionCIP64 = { ...celoTransactionWithGasPrice, gasPrice: undefined, - gatewayFee: undefined, - gatewayFeeRecipient: undefined, maxFeePerGas: '99', maxPriorityFeePerGas: '99', feeCurrency: '0xCD2a3d9F938E13CD947Ec05AbC7FE734Df8DD826', @@ -288,9 +284,13 @@ describe('Local wallet class', () => { { "raw": "0x7bf88282ad5a8063630a94588e4b68193001e4d10928660ab4165b813717c0880de0b6b3a764000083abcdefc094cd2a3d9f938e13cd947ec05abc7fe734df8dd82680a091b5504a59e529e7efa42dbb97fbc3311a91d035c873a94ab0789441fc989f84a02e8254d6b3101b63417e5d496833bc84f4832d4a8bf8a2b83e291d8f38c0f62d", "tx": { + "accessList": [], + "feeCurrency": "0xcd2a3d9f938e13cd947ec05abc7fe734df8dd826", "gas": "0x0a", "hash": "0x645afc1d19fe805c0c0956e70d5415487bf073741d7b297ccb7e7040c6ce5df6", "input": "0xabcdef", + "maxFeePerGas": "0x63", + "maxPriorityFeePerGas": "0x63", "nonce": "0", "r": "0x91b5504a59e529e7efa42dbb97fbc3311a91d035c873a94ab0789441fc989f84", "s": "0x2e8254d6b3101b63417e5d496833bc84f4832d4a8bf8a2b83e291d8f38c0f62d", @@ -303,36 +303,35 @@ describe('Local wallet class', () => { `) }) - test('succeeds with cip42', async () => { + test('ignores invalid fields', async () => { const transaction42 = { ...celoTransactionWithGasPrice, gasPrice: undefined, maxFeePerGas: '99', maxPriorityFeePerGas: '99', + // invalid field gatewayFee: '0x5678', feeCurrency: '0xCD2a3d9F938E13CD947Ec05AbC7FE734Df8DD826', } as const await expect(wallet.signTransaction(transaction42)).resolves.toMatchInlineSnapshot(` { - "raw": "0x7cf89a82ad5a8063630a94cd2a3d9f938e13cd947ec05abc7fe734df8dd826941be31a94361a391bbafb2a4ccd704f57dc04d4bb82567894588e4b68193001e4d10928660ab4165b813717c0880de0b6b3a764000083abcdefc080a0c610507b2ac3cff80dd7017419021196807d605efce0970c18cde48db33c27d1a01799477e0f601f554f0ee6f7ac21490602124801e9f7a99d9605249b90f03112", + "raw": "0x7bf88282ad5a8063630a94588e4b68193001e4d10928660ab4165b813717c0880de0b6b3a764000083abcdefc094cd2a3d9f938e13cd947ec05abc7fe734df8dd82680a091b5504a59e529e7efa42dbb97fbc3311a91d035c873a94ab0789441fc989f84a02e8254d6b3101b63417e5d496833bc84f4832d4a8bf8a2b83e291d8f38c0f62d", "tx": { "accessList": [], "feeCurrency": "0xcd2a3d9f938e13cd947ec05abc7fe734df8dd826", "gas": "0x0a", - "gatewayFee": "0x5678", - "gatewayFeeRecipient": "0x1be31a94361a391bbafb2a4ccd704f57dc04d4bb", - "hash": "0x7afcef8db391ff574b7f9c9205399b8ab094fc9fc8afbfb881204cbaaf093365", + "hash": "0x645afc1d19fe805c0c0956e70d5415487bf073741d7b297ccb7e7040c6ce5df6", "input": "0xabcdef", "maxFeePerGas": "0x63", "maxPriorityFeePerGas": "0x63", "nonce": "0", - "r": "0xc610507b2ac3cff80dd7017419021196807d605efce0970c18cde48db33c27d1", - "s": "0x1799477e0f601f554f0ee6f7ac21490602124801e9f7a99d9605249b90f03112", + "r": "0x91b5504a59e529e7efa42dbb97fbc3311a91d035c873a94ab0789441fc989f84", + "s": "0x2e8254d6b3101b63417e5d496833bc84f4832d4a8bf8a2b83e291d8f38c0f62d", "to": "0x588e4b68193001e4d10928660ab4165b813717c0", "v": "0x", "value": "0x0de0b6b3a7640000", }, - "type": "cip42", + "type": "cip64", } `) }) @@ -358,9 +357,6 @@ describe('Local wallet class', () => { nonce: 65, gas: '10', gasPrice: '99', - feeCurrency: '0x', - gatewayFeeRecipient: FEE_ADDRESS, - gatewayFee: '0x5678', data: '0xabcdef', } as const @@ -374,7 +370,7 @@ describe('Local wallet class', () => { ) }) }) - describe('when using signTransaction with type CIP42/64', () => { + describe('when using signTransaction with type CIP64', () => { let celoTransactionBase: CeloTx const feeCurrency = '0x10c892a6ec43a53e45d0b916b4b7d383b1b78c0f' const maxFeePerGas = '0x100000000' @@ -391,12 +387,10 @@ describe('Local wallet class', () => { data: '0xabcdef', } }) - describe('when feeCurrency and maxPriorityFeePerGas and maxFeePerGas are set but no gatewayfees', () => { + describe('when feeCurrency and maxPriorityFeePerGas and maxFeePerGas are set', () => { it('signs as a CIP64 tx', async () => { const transaction: CeloTx = { ...celoTransactionBase, - gatewayFee: undefined, - gatewayFeeRecipient: undefined, feeCurrency, maxFeePerGas, maxPriorityFeePerGas, @@ -405,20 +399,7 @@ describe('Local wallet class', () => { expect(signedTx.raw).toMatch(/^0x7b/) }) }) - describe('when feeCurrency and gatewayFee and maxPriorityFeePerGas and maxFeePerGas are set', () => { - it('signs as a CIP42 tx', async () => { - const transaction: CeloTx = { - ...celoTransactionBase, - gatewayFee: '0x1331', - gatewayFeeRecipient: FEE_ADDRESS, - feeCurrency, - maxFeePerGas, - maxPriorityFeePerGas, - } - const signedTx: EncodedTransaction = await wallet.signTransaction(transaction) - expect(signedTx.raw).toMatch(/^0x7c/) - }) - }) + describe('when feeCurrency and maxFeePerGas but not maxPriorityFeePerGas are set', () => { it('throws error', async () => { const transaction: CeloTx = { diff --git a/packages/sdk/wallets/wallet-local/src/signing.test.ts b/packages/sdk/wallets/wallet-local/src/signing.test.ts index ae660a770..8cebaf4b6 100644 --- a/packages/sdk/wallets/wallet-local/src/signing.test.ts +++ b/packages/sdk/wallets/wallet-local/src/signing.test.ts @@ -113,27 +113,13 @@ describe('Transaction Utils', () => { } }) test('Checking feeCurrency', async () => { - if (celoTransaction.feeCurrency != null) { + if (celoTransaction.feeCurrency != null && celoTransaction.maxFeePerGas != null) { expect(recoveredTransaction?.feeCurrency!.toLowerCase()).toEqual( celoTransaction.feeCurrency.toLowerCase() ) } }) - test('gatewayFeeRecipient', async () => { - if ( - celoTransaction.gatewayFeeRecipient !== undefined && - celoTransaction.gatewayFeeRecipient !== null - ) { - expect(recoveredTransaction?.gatewayFeeRecipient?.toLowerCase()).toEqual( - celoTransaction.gatewayFeeRecipient.toLowerCase() - ) - } - }) - test('Checking gateway fee value', async () => { - if (celoTransaction.gatewayFee !== undefined && celoTransaction.gatewayFee !== null) { - expect(recoveredTransaction?.gatewayFee).toEqual(celoTransaction.gatewayFee.toString()) - } - }) + test('Checking data', async () => { if (celoTransaction.data != null) { expect(recoveredTransaction?.data!.toLowerCase()).toEqual( @@ -150,8 +136,6 @@ describe('Transaction Utils', () => { const gas = 10000 const gasPrice = 99000000000 const feeCurrency = ACCOUNT_ADDRESS1 - const gatewayFeeRecipient = ACCOUNT_ADDRESS2 - const gatewayFee = '0x5678' const data = '0xabcdef' const chainId = 1 @@ -159,11 +143,6 @@ describe('Transaction Utils', () => { const description: string[] = [] if (celoTransaction.gasPrice != undefined) { description.push(`Testing Legacy with gas price ${celoTransaction.gasPrice}`) - } else if ( - celoTransaction.gatewayFeeRecipient !== undefined || - celoTransaction.gatewayFee !== undefined - ) { - description.push('Testing CIP42 with') } else if (celoTransaction.feeCurrency != undefined) { description.push('Testing CIP64 with') } else { @@ -177,32 +156,22 @@ describe('Transaction Utils', () => { description.push(`fee currency: ${celoTransaction.feeCurrency}`) } - if (celoTransaction.gatewayFeeRecipient != undefined) { - description.push(`gateway fee recipient: ${celoTransaction.gatewayFeeRecipient}`) - } - if (celoTransaction.gatewayFee != undefined) { - description.push(`gateway fee: ${celoTransaction.gatewayFee}`) - } - return description.join(' ') } // Test all possible combinations for rigor. - for (let i = 0; i < 16; i++) { + for (let i = 0; i < 7; i++) { const celoTransaction: CeloTx = { from, to, value: amountInWei, nonce, - gasPrice: i % 2 === 0 ? gasPrice : undefined, - maxFeePerGas: i % 2 === 1 ? gasPrice : undefined, - maxPriorityFeePerGas: i % 2 === 1 ? gasPrice : undefined, + gasPrice: i <= 1 ? gasPrice : undefined, + maxFeePerGas: i > 1 ? gasPrice : undefined, + maxPriorityFeePerGas: i > 1 ? gasPrice : undefined, chainId, gas, - feeCurrency: i % 3 === 0 ? feeCurrency : undefined, - gatewayFeeRecipient: i % 7 === 0 ? gatewayFeeRecipient : undefined, - gatewayFee: i % 7 === 0 ? gatewayFee : undefined, - // eslint-disable-next-line no-bitwise - data: i & 8 ? data : undefined, + feeCurrency: i > 1 && i % 2 === 0 ? feeCurrency : undefined, + data: i % 3 === 0 ? data : undefined, } describe(transactionDescription(celoTransaction), () => { verifyLocalSigning(celoTransaction) diff --git a/packages/sdk/wallets/wallet-remote/package.json b/packages/sdk/wallets/wallet-remote/package.json index e203d2c7a..1678e4078 100644 --- a/packages/sdk/wallets/wallet-remote/package.json +++ b/packages/sdk/wallets/wallet-remote/package.json @@ -29,6 +29,7 @@ "@types/debug": "^4.1.5" }, "devDependencies": { + "@celo/typescript": "workspace:^", "web3": "1.10.4" }, "engines": { diff --git a/packages/sdk/wallets/wallet-remote/src/remote-wallet.test.ts b/packages/sdk/wallets/wallet-remote/src/remote-wallet.test.ts index 61af701b2..d31031832 100644 --- a/packages/sdk/wallets/wallet-remote/src/remote-wallet.test.ts +++ b/packages/sdk/wallets/wallet-remote/src/remote-wallet.test.ts @@ -75,8 +75,6 @@ describe('RemoteWallet', () => { gas: '10', gasPrice: '99', feeCurrency: ACCOUNT_ADDRESS1, - gatewayFeeRecipient: ACCOUNT_ADDRESS1, - gatewayFee: '0x5678', data: '0xabcdef', } }) diff --git a/packages/sdk/wallets/wallet-rpc/package.json b/packages/sdk/wallets/wallet-rpc/package.json index e346d47df..11e16f592 100644 --- a/packages/sdk/wallets/wallet-rpc/package.json +++ b/packages/sdk/wallets/wallet-rpc/package.json @@ -34,6 +34,8 @@ "devDependencies": { "@celo/contractkit": "^8.0.0", "@celo/dev-utils": "0.0.3", + "@celo/typescript": "workspace:^", + "@types/debug": "^4.1.12", "bn.js": "^5.1.0", "web3": "1.10.4" }, diff --git a/packages/sdk/wallets/wallet-rpc/src/rpc-signer.ts b/packages/sdk/wallets/wallet-rpc/src/rpc-signer.ts index 80178d981..3939283ad 100644 --- a/packages/sdk/wallets/wallet-rpc/src/rpc-signer.ts +++ b/packages/sdk/wallets/wallet-rpc/src/rpc-signer.ts @@ -86,7 +86,6 @@ export class RpcSigner implements Signer { nonce: toRpcHex(tx.nonce), value: toRpcHex(tx.value), gas: toRpcHex(tx.gas), - gatewayFee: toRpcHex(tx.gatewayFee), ...(tx.gasPrice ? { gasPrice: toRpcHex(tx.gasPrice), diff --git a/packages/sdk/wallets/wallet-rpc/src/rpc-wallet.test.ts b/packages/sdk/wallets/wallet-rpc/src/rpc-wallet.test.ts index 57a7efcaa..7417f1a32 100644 --- a/packages/sdk/wallets/wallet-rpc/src/rpc-wallet.test.ts +++ b/packages/sdk/wallets/wallet-rpc/src/rpc-wallet.test.ts @@ -170,8 +170,6 @@ testWithGanache('rpc-wallet', (web3) => { gas: '10', gasPrice: '99', feeCurrency: '0x', - gatewayFeeRecipient: '0x1234', - gatewayFee: '0x5678', data: '0xabcdef', } }) @@ -219,8 +217,6 @@ testWithGanache('rpc-wallet', (web3) => { gas: '10', gasPrice: '99', feeCurrency: '0x' as const, - gatewayFeeRecipient: '0x1234', - gatewayFee: '0x5678', data: '0xabcdef', } diff --git a/yarn.lock b/yarn.lock index bcc9fcd06..fff60d9df 100644 --- a/yarn.lock +++ b/yarn.lock @@ -907,8 +907,8 @@ __metadata: linkType: hard "@azure/identity@npm:^4.0.1": - version: 4.2.1 - resolution: "@azure/identity@npm:4.2.1" + version: 4.0.1 + resolution: "@azure/identity@npm:4.0.1" dependencies: "@azure/abort-controller": "npm:^1.0.0" "@azure/core-auth": "npm:^1.5.0" @@ -917,14 +917,14 @@ __metadata: "@azure/core-tracing": "npm:^1.0.0" "@azure/core-util": "npm:^1.3.0" "@azure/logger": "npm:^1.0.0" - "@azure/msal-browser": "npm:^3.11.1" - "@azure/msal-node": "npm:^2.9.2" + "@azure/msal-browser": "npm:^3.5.0" + "@azure/msal-node": "npm:^2.5.1" events: "npm:^3.0.0" jws: "npm:^4.0.0" open: "npm:^8.0.0" stoppable: "npm:^1.1.0" tslib: "npm:^2.2.0" - checksum: 56adf3313ae52410d15dc760fe41a56e07f08c7629a7f61d2788a49345e313037a70bc1c82b5beb950f1bbf50e79f9726c58aa7fe335b8785a4c542a88a9c5fa + checksum: d0e70b07be06b28f151963037b8746ada03e84bbed5b8c4ba7e1dad00eab682b1b83d26c0293a692a04e49b57d68cfccdef40ec061d9f5631bf8c8567c09b6f4 languageName: node linkType: hard @@ -975,30 +975,30 @@ __metadata: languageName: node linkType: hard -"@azure/msal-browser@npm:^3.11.1": - version: 3.17.0 - resolution: "@azure/msal-browser@npm:3.17.0" +"@azure/msal-browser@npm:^3.5.0": + version: 3.7.1 + resolution: "@azure/msal-browser@npm:3.7.1" dependencies: - "@azure/msal-common": "npm:14.12.0" - checksum: 0ff3c7e8abfdc2eed9cf22b72bae413d2e251025113789fec82564f4badfda7812a3d954029ffdbfa1aba48dcf4b2040ee6322d9125326e9aa1ed31f8ac08839 + "@azure/msal-common": "npm:14.6.1" + checksum: b8a2da5e7e6f1b6a67232da9fc0e64d8cf416c79708b933457f1a500e470756571044cd8c43441006c61f3574e269d389095555732848770121836b77b4513c3 languageName: node linkType: hard -"@azure/msal-common@npm:14.12.0": - version: 14.12.0 - resolution: "@azure/msal-common@npm:14.12.0" - checksum: 5a0905beae17e20d66b352425dfd86d41ddf402f3c2c324aacf0590844e61c2c13ed439c3c63a1d7b4d3861b8d885ed11b7f257373facefe8fa3dc63455ee9c2 +"@azure/msal-common@npm:14.6.1": + version: 14.6.1 + resolution: "@azure/msal-common@npm:14.6.1" + checksum: b4127d98fcd83d89f158d720747d040589109238009b0473c5820347c6b6e0cd5b646adec7163f4340a521e0b22ca96234bcbba57081077d632efb6ca9e57698 languageName: node linkType: hard -"@azure/msal-node@npm:^2.9.2": - version: 2.9.2 - resolution: "@azure/msal-node@npm:2.9.2" +"@azure/msal-node@npm:^2.5.1": + version: 2.6.2 + resolution: "@azure/msal-node@npm:2.6.2" dependencies: - "@azure/msal-common": "npm:14.12.0" + "@azure/msal-common": "npm:14.6.1" jsonwebtoken: "npm:^9.0.0" uuid: "npm:^8.3.0" - checksum: 0cbaa209291a300515ab94883b9920ba7fa66b11e34428214e46384c3ab12c6e159904ed0a3190e2babf6509780f855f8c4345c07af9bafca0a94d68ff838ba5 + checksum: 20269beb732b490670db261613edaae2217ab5b72f8869b59084e748d68f17f4d334d7e8de89341ff90e402677b6235dd926d8c1e176be61cb583e27fbf52e9e languageName: node linkType: hard @@ -1028,7 +1028,7 @@ __metadata: languageName: node linkType: hard -"@babel/core@npm:^7.0.0, @babel/core@npm:^7.11.6, @babel/core@npm:^7.12.3": +"@babel/core@npm:^7.11.6, @babel/core@npm:^7.12.3": version: 7.21.4 resolution: "@babel/core@npm:7.21.4" dependencies: @@ -1448,15 +1448,6 @@ __metadata: languageName: node linkType: hard -"@babel/runtime@npm:^7.0.0, @babel/runtime@npm:^7.5.5": - version: 7.21.0 - resolution: "@babel/runtime@npm:7.21.0" - dependencies: - regenerator-runtime: "npm:^0.13.11" - checksum: 35acd166298d57d14444396c33b3f0b76dbb82fd7440f38aa1605beb2ec9743a693b21730b4de4b85eaf36b0fc94c94bb0ebcd80e05409c36b24da27d458ba41 - languageName: node - linkType: hard - "@babel/runtime@npm:^7.20.1": version: 7.23.2 resolution: "@babel/runtime@npm:7.23.2" @@ -1475,6 +1466,15 @@ __metadata: languageName: node linkType: hard +"@babel/runtime@npm:^7.5.5": + version: 7.21.0 + resolution: "@babel/runtime@npm:7.21.0" + dependencies: + regenerator-runtime: "npm:^0.13.11" + checksum: 35acd166298d57d14444396c33b3f0b76dbb82fd7440f38aa1605beb2ec9743a693b21730b4de4b85eaf36b0fc94c94bb0ebcd80e05409c36b24da27d458ba41 + languageName: node + linkType: hard + "@babel/template@npm:^7.20.7": version: 7.20.7 resolution: "@babel/template@npm:7.20.7" @@ -1566,7 +1566,7 @@ __metadata: version: 0.0.0-use.local resolution: "@celo/base@workspace:packages/sdk/base" dependencies: - "@celo/typescript": "npm:0.0.1" + "@celo/typescript": "workspace:^" "@noble/ciphers": "npm:0.4.1" "@noble/curves": "npm:1.3.0" "@noble/hashes": "npm:1.3.3" @@ -1612,7 +1612,6 @@ __metadata: "@celo/contractkit": "npm:^8.0.0" "@celo/cryptographic-utils": "npm:^5.0.8" "@celo/dev-utils": "npm:0.0.3" - "@celo/devchain-anvil": "npm:^0.0.11007" "@celo/explorer": "npm:^5.0.10" "@celo/governance": "npm:^5.1.1" "@celo/identity": "npm:^5.1.2" @@ -1623,7 +1622,7 @@ __metadata: "@celo/wallet-ledger": "npm:^5.2.0" "@celo/wallet-local": "npm:^5.2.0" "@ethereumjs/util": "npm:8.0.5" - "@ledgerhq/hw-transport-node-hid": "npm:^6.27.4" + "@ledgerhq/hw-transport-node-hid": "npm:^6.28.5" "@mento-protocol/mento-sdk": "npm:^0.2.2" "@oclif/core": "npm:^3.19.1" "@oclif/plugin-autocomplete": "npm:^3.0.5" @@ -1637,7 +1636,7 @@ __metadata: "@types/fs-extra": "npm:^8.0.0" "@types/humanize-duration": "npm:^3.27.0" "@types/inquirer": "npm:^6.5.0" - "@types/ledgerhq__hw-transport-node-hid": "npm:^4.22.2" + "@types/ledgerhq__hw-transport-node-hid": "npm:^4.22.5" "@types/node": "npm:^18.7.16" "@types/prompts": "npm:^1.1.1" bignumber.js: "npm:9.0.0" @@ -1648,13 +1647,13 @@ __metadata: ethers: "npm:5" fs-extra: "npm:^8.1.0" humanize-duration: "npm:^3.29.0" - jest: "npm:^29.0.2" + jest: "npm:^29.7.0" oclif: "npm:^4.3.4" path: "npm:^0.12.7" prettier: "npm:1.19.1" prompts: "npm:^2.0.1" randombytes: "npm:^2.0.1" - ts-jest: "npm:^29.0.0" + ts-jest: "npm:^29.1.5" ts-node: "npm:^10.9.1" typescript: "npm:5.3.3" web3: "npm:1.10.4" @@ -1698,9 +1697,10 @@ __metadata: resolution: "@celo/connect@workspace:packages/sdk/connect" dependencies: "@celo/base": "npm:^6.0.1" + "@celo/typescript": "workspace:^" "@celo/utils": "npm:^6.0.1" "@ethereumjs/util": "npm:8.0.5" - "@types/debug": "npm:^4.1.5" + "@types/debug": "npm:^4.1.12" "@types/utf8": "npm:^2.1.6" bignumber.js: "npm:^9.0.0" debug: "npm:^4.1.1" @@ -1748,6 +1748,7 @@ __metadata: "@celo/connect": "npm:^5.3.0" "@celo/dev-utils": "npm:0.0.3" "@celo/odis-identifiers": "npm:^1.0.0" + "@celo/typescript": "workspace:^" "@celo/utils": "npm:^6.0.1" "@celo/wallet-local": "npm:^5.2.0" "@truffle/contract": "npm:4.6.31" @@ -1757,11 +1758,11 @@ __metadata: bn.js: "npm:^5.1.0" cross-fetch: "npm:3.1.5" debug: "npm:^4.1.1" - fetch-mock: "npm:9.10.4" + fetch-mock: "npm:^10.0.7" fp-ts: "npm:2.1.1" ganache: "npm:@celo/ganache@7.8.0-unofficial.0" io-ts: "npm:2.0.1" - jest: "npm:^29.0.2" + jest: "npm:^29.7.0" semver: "npm:^7.3.5" ts-node: "npm:^10.9.1" web3: "npm:1.10.4" @@ -1775,7 +1776,7 @@ __metadata: dependencies: "@celo/base": "npm:^6.0.1" "@celo/bls12377js": "npm:0.1.1" - "@celo/typescript": "npm:0.0.1" + "@celo/typescript": "workspace:^" "@celo/utils": "npm:^6.0.1" "@noble/ciphers": "npm:0.4.1" "@noble/curves": "npm:1.3.0" @@ -1791,6 +1792,8 @@ __metadata: version: 0.0.0-use.local resolution: "@celo/dev-utils@workspace:packages/dev-utils" dependencies: + "@celo/devchain-anvil": "npm:^0.0.11007" + "@celo/typescript": "workspace:^" "@tsconfig/recommended": "npm:^1.0.3" "@types/fs-extra": "npm:^8.1.0" "@types/targz": "npm:1.0.0" @@ -1819,13 +1822,14 @@ __metadata: "@celo/base": "npm:^6.0.1" "@celo/connect": "npm:^5.3.0" "@celo/contractkit": "npm:^8.0.0" + "@celo/dev-utils": "npm:0.0.3" + "@celo/typescript": "workspace:^" "@celo/utils": "npm:^6.0.1" - "@types/debug": "npm:^4.1.5" - "@types/fetch-mock": "npm:^7.3.5" + "@types/debug": "npm:^4.1.12" bignumber.js: "npm:9.0.0" cross-fetch: "npm:3.1.5" debug: "npm:^4.1.1" - fetch-mock: "npm:^9.11.0" + fetch-mock: "npm:^10.0.7" web3: "npm:1.10.4" languageName: unknown linkType: soft @@ -1839,9 +1843,10 @@ __metadata: "@celo/connect": "npm:^5.3.0" "@celo/contractkit": "npm:^8.0.0" "@celo/explorer": "npm:^5.0.10" + "@celo/typescript": "workspace:^" "@celo/utils": "npm:^6.0.1" "@ethereumjs/util": "npm:8.0.5" - "@types/debug": "npm:^4.1.5" + "@types/debug": "npm:^4.1.12" "@types/inquirer": "npm:^6.5.0" bignumber.js: "npm:^9.0.0" debug: "npm:^4.1.1" @@ -1875,6 +1880,7 @@ __metadata: version: 0.0.0-use.local resolution: "@celo/keystores@workspace:packages/sdk/keystores" dependencies: + "@celo/typescript": "workspace:^" "@celo/utils": "npm:^6.0.1" "@celo/wallet-local": "npm:^5.2.0" "@types/rimraf": "npm:3.0.2" @@ -1883,15 +1889,23 @@ __metadata: languageName: unknown linkType: soft +"@celo/ledger-token-signer@npm:^0.4.0": + version: 0.4.0 + resolution: "@celo/ledger-token-signer@npm:0.4.0" + checksum: 8cd9638c4092f699b22e3d02a188710afbf562997e0c6682e530e38bbe26d57dbc3cf73e4383b7cb5b2c72c0915016f258b985eb2390e10b902abb23ee42a8b5 + languageName: node + linkType: hard + "@celo/network-utils@workspace:packages/sdk/network-utils": version: 0.0.0-use.local resolution: "@celo/network-utils@workspace:packages/sdk/network-utils" dependencies: "@celo/dev-utils": "npm:0.0.3" - "@types/debug": "npm:^4.1.5" + "@celo/typescript": "workspace:^" + "@types/debug": "npm:^4.1.12" cross-fetch: "npm:3.1.5" debug: "npm:^4.1.1" - fetch-mock: "npm:9.10.4" + fetch-mock: "npm:^10.0.7" languageName: unknown linkType: soft @@ -1930,7 +1944,7 @@ __metadata: resolution: "@celo/phone-utils@workspace:packages/sdk/phone-utils" dependencies: "@celo/base": "npm:^6.0.1" - "@celo/typescript": "npm:0.0.1" + "@celo/typescript": "workspace:^" "@celo/utils": "npm:^6.0.1" "@types/country-data": "npm:^0.0.0" "@types/google-libphonenumber": "npm:^7.4.23" @@ -1952,16 +1966,19 @@ __metadata: "@celo/connect": "npm:^5.3.0" "@celo/contractkit": "npm:^8.0.0" "@celo/dev-utils": "npm:0.0.3" + "@celo/typescript": "workspace:^" "@types/debug": "npm:^4.1.5" "@types/qrcode": "npm:^1.3.4" bn.js: "npm:4.11.9" + cross-fetch: "npm:3.1.5" dotenv: "npm:^8.2.0" + fetch-mock: "npm:^10.0.7" qrcode: "npm:1.4.4" web3-eth-abi: "npm:1.10.4" languageName: unknown linkType: soft -"@celo/typescript@npm:0.0.1, @celo/typescript@workspace:^, @celo/typescript@workspace:packages/typescript": +"@celo/typescript@workspace:^, @celo/typescript@workspace:packages/typescript": version: 0.0.0-use.local resolution: "@celo/typescript@workspace:packages/typescript" languageName: unknown @@ -1972,7 +1989,7 @@ __metadata: resolution: "@celo/utils@workspace:packages/sdk/utils" dependencies: "@celo/base": "npm:^6.0.1" - "@celo/typescript": "npm:0.0.1" + "@celo/typescript": "workspace:^" "@ethereumjs/rlp": "npm:^5.0.2" "@ethereumjs/util": "npm:8.0.5" "@noble/ciphers": "npm:0.4.1" @@ -2014,12 +2031,13 @@ __metadata: dependencies: "@celo/base": "npm:^6.0.1" "@celo/connect": "npm:^5.3.0" + "@celo/typescript": "workspace:^" "@celo/utils": "npm:^6.0.1" "@ethereumjs/rlp": "npm:^5.0.2" "@ethereumjs/util": "npm:8.0.5" "@noble/curves": "npm:^1.3.0" "@noble/hashes": "npm:^1.3.3" - "@types/debug": "npm:^4.1.5" + "@types/debug": "npm:^4.1.12" bignumber.js: "npm:^9.0.0" debug: "npm:^4.1.1" viem: "npm:~1.5.4" @@ -2033,6 +2051,7 @@ __metadata: resolution: "@celo/wallet-hsm-aws@workspace:packages/sdk/wallets/wallet-hsm-aws" dependencies: "@celo/connect": "npm:^5.3.0" + "@celo/typescript": "workspace:^" "@celo/utils": "npm:^6.0.1" "@celo/wallet-base": "npm:^5.2.0" "@celo/wallet-hsm": "npm:^5.2.0" @@ -2041,7 +2060,7 @@ __metadata: "@noble/ciphers": "npm:0.4.1" "@noble/curves": "npm:1.3.0" "@noble/hashes": "npm:1.3.3" - "@types/debug": "npm:^4.1.5" + "@types/debug": "npm:^4.1.12" "@types/secp256k1": "npm:^4.0.0" aws-sdk: "npm:^2.705.0" bignumber.js: "npm:^9.0.0" @@ -2060,6 +2079,7 @@ __metadata: "@azure/keyvault-secrets": "npm:^4.7.0" "@celo/base": "npm:^6.0.1" "@celo/connect": "npm:^5.3.0" + "@celo/typescript": "workspace:^" "@celo/utils": "npm:^6.0.1" "@celo/wallet-base": "npm:^5.2.0" "@celo/wallet-hsm": "npm:^5.2.0" @@ -2068,6 +2088,7 @@ __metadata: "@noble/ciphers": "npm:0.4.1" "@noble/curves": "npm:1.3.0" "@noble/hashes": "npm:1.3.3" + "@types/debug": "npm:^4.1.12" "@types/secp256k1": "npm:^4.0.0" bignumber.js: "npm:^9.0.0" debug: "npm:^4.1.1" @@ -2081,6 +2102,7 @@ __metadata: resolution: "@celo/wallet-hsm-gcp@workspace:packages/sdk/wallets/wallet-hsm-gcp" dependencies: "@celo/connect": "npm:^5.3.0" + "@celo/typescript": "workspace:^" "@celo/utils": "npm:^6.0.1" "@celo/wallet-base": "npm:^5.2.0" "@celo/wallet-hsm": "npm:^5.2.0" @@ -2090,7 +2112,7 @@ __metadata: "@noble/ciphers": "npm:0.4.1" "@noble/curves": "npm:1.3.0" "@noble/hashes": "npm:1.3.3" - "@types/debug": "npm:^4.1.5" + "@types/debug": "npm:^4.1.12" "@types/secp256k1": "npm:^4.0.0" bignumber.js: "npm:^9.0.0" debug: "npm:^4.1.1" @@ -2104,6 +2126,7 @@ __metadata: resolution: "@celo/wallet-hsm@workspace:packages/sdk/wallets/wallet-hsm" dependencies: "@celo/base": "npm:^6.0.1" + "@celo/typescript": "workspace:^" "@ethereumjs/util": "npm:8.0.5" "@noble/ciphers": "npm:0.4.1" "@noble/curves": "npm:1.3.0" @@ -2123,16 +2146,24 @@ __metadata: dependencies: "@celo/base": "npm:^6.0.1" "@celo/connect": "npm:^5.3.0" + "@celo/contractkit": "npm:^8.0.0" + "@celo/ledger-token-signer": "npm:^0.4.0" + "@celo/typescript": "workspace:^" "@celo/utils": "npm:^6.0.1" "@celo/wallet-base": "npm:^5.2.0" "@celo/wallet-remote": "npm:^5.2.0" "@ethereumjs/util": "npm:8.0.5" - "@ledgerhq/errors": "npm:^5.50.0" - "@ledgerhq/hw-app-eth": "npm:~5.11.0" - "@ledgerhq/hw-transport": "npm:~5.11.0" - "@ledgerhq/hw-transport-node-hid": "npm:^6.27.4" + "@ledgerhq/errors": "npm:^6.16.4" + "@ledgerhq/hw-app-eth": "npm:6.36.1" + "@ledgerhq/hw-transport": "npm:^6.30.6" + "@ledgerhq/hw-transport-node-hid": "npm:^6.28.5" + "@noble/curves": "npm:^1.4.0" "@noble/hashes": "npm:^1.3.3" + "@types/debug": "npm:^4.1.12" debug: "npm:^4.1.1" + patch-package: "npm:^8.0.0" + semver: "npm:^7.6.0" + ts-node: "npm:^10.9.2" web3: "npm:1.10.4" languageName: unknown linkType: soft @@ -2154,10 +2185,14 @@ __metadata: version: 0.0.0-use.local resolution: "@celo/wallet-local@workspace:packages/sdk/wallets/wallet-local" dependencies: + "@celo/base": "npm:^6.0.1" "@celo/connect": "npm:^5.3.0" + "@celo/typescript": "workspace:^" "@celo/utils": "npm:^6.0.1" "@celo/wallet-base": "npm:^5.2.0" "@ethereumjs/util": "npm:8.0.5" + "@types/debug": "npm:^4.1.12" + debug: "npm:^4.3.5" viem: "npm:~1.5.4" web3: "npm:1.10.4" languageName: unknown @@ -2168,6 +2203,7 @@ __metadata: resolution: "@celo/wallet-remote@workspace:packages/sdk/wallets/wallet-remote" dependencies: "@celo/connect": "npm:^5.3.0" + "@celo/typescript": "workspace:^" "@celo/utils": "npm:^6.0.1" "@celo/wallet-base": "npm:^5.2.0" "@ethereumjs/util": "npm:8.0.5" @@ -2184,10 +2220,12 @@ __metadata: "@celo/connect": "npm:^5.3.0" "@celo/contractkit": "npm:^8.0.0" "@celo/dev-utils": "npm:0.0.3" + "@celo/typescript": "workspace:^" "@celo/utils": "npm:^6.0.1" "@celo/wallet-base": "npm:^5.2.0" "@celo/wallet-remote": "npm:^5.2.0" "@types/bn.js": "npm:^5.1.0" + "@types/debug": "npm:^4.1.12" bignumber.js: "npm:^9.0.0" bn.js: "npm:^5.1.0" debug: "npm:^4.1.1" @@ -2684,7 +2722,7 @@ __metadata: languageName: node linkType: hard -"@ethersproject/abi@npm:5.7.0, @ethersproject/abi@npm:^5.6.3, @ethersproject/abi@npm:^5.7.0": +"@ethersproject/abi@npm:5.7.0, @ethersproject/abi@npm:^5.5.0, @ethersproject/abi@npm:^5.6.3, @ethersproject/abi@npm:^5.7.0": version: 5.7.0 resolution: "@ethersproject/abi@npm:5.7.0" dependencies: @@ -2949,7 +2987,7 @@ __metadata: languageName: node linkType: hard -"@ethersproject/rlp@npm:5.7.0, @ethersproject/rlp@npm:^5.7.0": +"@ethersproject/rlp@npm:5.7.0, @ethersproject/rlp@npm:^5.5.0, @ethersproject/rlp@npm:^5.7.0": version: 5.7.0 resolution: "@ethersproject/rlp@npm:5.7.0" dependencies: @@ -3513,127 +3551,191 @@ __metadata: languageName: node linkType: hard -"@ledgerhq/devices@npm:^5.11.0, @ledgerhq/devices@npm:^5.51.1": - version: 5.51.1 - resolution: "@ledgerhq/devices@npm:5.51.1" +"@ledgerhq/cryptoassets@npm:^13.0.0": + version: 13.0.0 + resolution: "@ledgerhq/cryptoassets@npm:13.0.0" + dependencies: + axios: "npm:^1.6.0" + bs58check: "npm:^2.1.2" + invariant: "npm:2" + checksum: 3415a79a0fd566ef0434fbcece42ac5b9e00ef99a57f7b3ff84846b7ef953c32236ce837a9e96771a7bd99641e085f769ca76044bc7afd8817650ac86f6266de + languageName: node + linkType: hard + +"@ledgerhq/devices@npm:^8.2.2": + version: 8.2.2 + resolution: "@ledgerhq/devices@npm:8.2.2" dependencies: - "@ledgerhq/errors": "npm:^5.50.0" - "@ledgerhq/logs": "npm:^5.50.0" - rxjs: "npm:6" + "@ledgerhq/errors": "npm:^6.16.3" + "@ledgerhq/logs": "npm:^6.12.0" + rxjs: "npm:^7.8.1" semver: "npm:^7.3.5" - checksum: c3af86f43bbef1d6911e2617296dce93d51cf8a94db9818741fcf8fac2acc6cca886a55b40fa0b2327aab8ea2838498332e886167d1159fd8a3bd1181a4131c8 + checksum: 02102cbead70eafbe10859a1785085b8a18780860fa98ba2f2cad561634851f61b33659a98339ee388cee575aed3d299baaf737dc63a804ed53dbc609f497a03 languageName: node linkType: hard -"@ledgerhq/devices@npm:^8.0.1": - version: 8.0.1 - resolution: "@ledgerhq/devices@npm:8.0.1" +"@ledgerhq/devices@npm:^8.3.0": + version: 8.3.0 + resolution: "@ledgerhq/devices@npm:8.3.0" dependencies: - "@ledgerhq/errors": "npm:^6.12.4" - "@ledgerhq/logs": "npm:^6.10.1" - rxjs: "npm:6" + "@ledgerhq/errors": "npm:^6.16.4" + "@ledgerhq/logs": "npm:^6.12.0" + rxjs: "npm:^7.8.1" semver: "npm:^7.3.5" - checksum: f73f0a1ee0d532c60cb6cd2876167c93a7d76c7461a930b5dd1c701c669d9d87b9535c248d0cf7361717034bb7d62f202cffddc6d4354c6da01699dcd05b3bad + checksum: cd586838d661c9627f4566e9e015dd5f07a129c30ce2680eb358f7e8ae4f42e9a3bba3e049cfeb15116000d01f813631c6c8371a964d210a4968df69401c986d + languageName: node + linkType: hard + +"@ledgerhq/domain-service@npm:^1.1.21": + version: 1.1.21 + resolution: "@ledgerhq/domain-service@npm:1.1.21" + dependencies: + "@ledgerhq/errors": "npm:^6.16.4" + "@ledgerhq/logs": "npm:^6.12.0" + "@ledgerhq/types-live": "npm:^6.47.0" + axios: "npm:^1.3.4" + eip55: "npm:^2.1.1" + react: "npm:^18.2.0" + react-dom: "npm:^18.2.0" + checksum: b501039ca9ccf562117f2395b4f459881ad574b414c8e8983c400594a733fb85bdb0f8ef1a6ad39c2b0a27b18f706ed5d4146e387f3adb31ce0b1441891aa7d5 + languageName: node + linkType: hard + +"@ledgerhq/errors@npm:^6.16.3": + version: 6.16.3 + resolution: "@ledgerhq/errors@npm:6.16.3" + checksum: db79349ec6f58092f393c7f3d63ebc5777e749cf5d7fb6454d7218847bbb8e2e58d2fb01494413f65e7df93ad51c975462df2521739bc808dd62665f141a059d languageName: node linkType: hard -"@ledgerhq/errors@npm:^5.11.0, @ledgerhq/errors@npm:^5.50.0": - version: 5.50.0 - resolution: "@ledgerhq/errors@npm:5.50.0" - checksum: 333ea81dc005b43fb0da10f131ed6430f26d599cc5bfd0714e897aee162d5abe794ac3748d60cdff90c6c2c151871b67f802ed9c6e93914bd096075fc039cac7 +"@ledgerhq/errors@npm:^6.16.4": + version: 6.16.4 + resolution: "@ledgerhq/errors@npm:6.16.4" + checksum: 1642ff7f2e07faceb45499b3ccdb23cf6ed6f172f7a07ac73413efb4aa7136605425b643812d1c54995d8ac989ff98b1c9db040f9b730530bfc64430a74dd67d languageName: node linkType: hard -"@ledgerhq/errors@npm:^6.12.4": - version: 6.12.4 - resolution: "@ledgerhq/errors@npm:6.12.4" - checksum: d38fad40cc994f201c3bb8b1245a4cbb016e25ed40b43fccb711d1232dc3c765287cc54ffe58c909f31ccdc27a8852a2116dcbb9c2944692a7369f4fc34d5271 +"@ledgerhq/evm-tools@npm:^1.0.19": + version: 1.0.19 + resolution: "@ledgerhq/evm-tools@npm:1.0.19" + dependencies: + "@ledgerhq/cryptoassets": "npm:^13.0.0" + "@ledgerhq/live-env": "npm:^2.0.2" + axios: "npm:^1.6.5" + crypto-js: "npm:4.2.0" + ethers: "npm:5.7.2" + checksum: fb5ce897dcb4118ab831aaa9f42612af551ea765a77fca977336116750660d3a6d90b319cd4de22271347759020cf072ea3bf310545a238bdebab33967cbfa6c + languageName: node + linkType: hard + +"@ledgerhq/hw-app-eth@npm:6.36.1": + version: 6.36.1 + resolution: "@ledgerhq/hw-app-eth@npm:6.36.1" + dependencies: + "@ethersproject/abi": "npm:^5.5.0" + "@ethersproject/rlp": "npm:^5.5.0" + "@ledgerhq/cryptoassets": "npm:^13.0.0" + "@ledgerhq/domain-service": "npm:^1.1.21" + "@ledgerhq/errors": "npm:^6.16.4" + "@ledgerhq/evm-tools": "npm:^1.0.19" + "@ledgerhq/hw-transport": "npm:^6.30.6" + "@ledgerhq/hw-transport-mocker": "npm:^6.28.6" + "@ledgerhq/logs": "npm:^6.12.0" + "@ledgerhq/types-live": "npm:^6.47.0" + axios: "npm:^1.3.4" + bignumber.js: "npm:^9.1.2" + checksum: f5a478e2c455944080181fadffd224a2ef0eb0e6d7452a13cf86dd4228118b4ab1f5a9b9ba2bb52bcde37db3da1a43b78d73c903d4dfac1d5d9166bcfe157b1a languageName: node linkType: hard -"@ledgerhq/hw-app-eth@npm:~5.11.0": - version: 5.11.0 - resolution: "@ledgerhq/hw-app-eth@npm:5.11.0" +"@ledgerhq/hw-transport-mocker@npm:^6.28.6": + version: 6.28.6 + resolution: "@ledgerhq/hw-transport-mocker@npm:6.28.6" dependencies: - "@ledgerhq/errors": "npm:^5.11.0" - "@ledgerhq/hw-transport": "npm:^5.11.0" - checksum: c56a4c2a406f07f1496494bf0407fe3436094dd9488e62a2388ad62af0c9653e9988bc03e656266bee765faf9ed578e10b2ecc4f34d6843285049c4662c1bd89 + "@ledgerhq/hw-transport": "npm:^6.30.6" + "@ledgerhq/logs": "npm:^6.12.0" + rxjs: "npm:^7.8.1" + checksum: 207a8ded95f4eeecbbfa592d8fbbdb5c6a29142ef93beff131e7503c839f17109c0cbb4cc65491158de4940a136e6b933bc66b465872e44143582579a744ef2e languageName: node linkType: hard -"@ledgerhq/hw-transport-node-hid-noevents@npm:^6.27.13": - version: 6.27.13 - resolution: "@ledgerhq/hw-transport-node-hid-noevents@npm:6.27.13" +"@ledgerhq/hw-transport-node-hid-noevents@npm:^6.29.5": + version: 6.29.5 + resolution: "@ledgerhq/hw-transport-node-hid-noevents@npm:6.29.5" dependencies: - "@ledgerhq/devices": "npm:^8.0.1" - "@ledgerhq/errors": "npm:^6.12.4" - "@ledgerhq/hw-transport": "npm:^6.28.2" - "@ledgerhq/logs": "npm:^6.10.1" + "@ledgerhq/devices": "npm:^8.2.2" + "@ledgerhq/errors": "npm:^6.16.3" + "@ledgerhq/hw-transport": "npm:^6.30.5" + "@ledgerhq/logs": "npm:^6.12.0" node-hid: "npm:^2.1.2" - checksum: 6b17eefba428f3ba980e2c6b9b6c1f419af3f92f97d829ed00ef65339868c4fb305d7504a0a56eaae15e5024466522a2df7d5431ae15c91ca015c79f373111b7 + checksum: f089bde9df64fd784ab77dab27289a593faf9e5d940422b96cad14f86ad14a410a591a7f2e401a3da3cdd0eae5e75f5040b49b0c6b185480d67a07ceccc50e15 languageName: node linkType: hard -"@ledgerhq/hw-transport-node-hid@npm:^6.27.4": - version: 6.27.13 - resolution: "@ledgerhq/hw-transport-node-hid@npm:6.27.13" +"@ledgerhq/hw-transport-node-hid@npm:^6.28.5": + version: 6.28.5 + resolution: "@ledgerhq/hw-transport-node-hid@npm:6.28.5" dependencies: - "@ledgerhq/devices": "npm:^8.0.1" - "@ledgerhq/errors": "npm:^6.12.4" - "@ledgerhq/hw-transport": "npm:^6.28.2" - "@ledgerhq/hw-transport-node-hid-noevents": "npm:^6.27.13" - "@ledgerhq/logs": "npm:^6.10.1" + "@ledgerhq/devices": "npm:^8.2.2" + "@ledgerhq/errors": "npm:^6.16.3" + "@ledgerhq/hw-transport": "npm:^6.30.5" + "@ledgerhq/hw-transport-node-hid-noevents": "npm:^6.29.5" + "@ledgerhq/logs": "npm:^6.12.0" lodash: "npm:^4.17.21" node-hid: "npm:^2.1.2" - usb: "npm:^1.7.0" - checksum: 5109c8e6f301288f88fb19e514c5fd8a530208e9ae851d68b7f035717f0417dd712adbe1ebb2279822aff7fb2e8362a41fabd1fad44b72e987777d5509883c3e + usb: "npm:2.9.0" + checksum: 32c3b40af333e85a6f83e96ccc9bb2720e7b21508862759d3a8da9cbf27644514d30324cbcd817d5e73e7f5ed944115775cbfbb7cccf0f97fb79ae703e0e5f01 languageName: node linkType: hard -"@ledgerhq/hw-transport@npm:^5.11.0": - version: 5.51.1 - resolution: "@ledgerhq/hw-transport@npm:5.51.1" +"@ledgerhq/hw-transport@npm:^6.30.5": + version: 6.30.5 + resolution: "@ledgerhq/hw-transport@npm:6.30.5" dependencies: - "@ledgerhq/devices": "npm:^5.51.1" - "@ledgerhq/errors": "npm:^5.50.0" + "@ledgerhq/devices": "npm:^8.2.2" + "@ledgerhq/errors": "npm:^6.16.3" + "@ledgerhq/logs": "npm:^6.12.0" events: "npm:^3.3.0" - checksum: a3fcd4b31aea0977293d1ffb2e3acb099d3c64ea447006174a189c4bb1049489a634c54d0fa292aad79c432ede6e787b7232200c4fad7c4232ff402d677a4d41 + checksum: ca35e6224ea80a33eba3685119885856e5649e341eae2531a1dda499e75f0b19c400efc20647049c6d4dfddf9af532f56070e62890a42a6892fbf8558720e126 languageName: node linkType: hard -"@ledgerhq/hw-transport@npm:^6.28.2": - version: 6.28.2 - resolution: "@ledgerhq/hw-transport@npm:6.28.2" +"@ledgerhq/hw-transport@npm:^6.30.6": + version: 6.30.6 + resolution: "@ledgerhq/hw-transport@npm:6.30.6" dependencies: - "@ledgerhq/devices": "npm:^8.0.1" - "@ledgerhq/errors": "npm:^6.12.4" + "@ledgerhq/devices": "npm:^8.3.0" + "@ledgerhq/errors": "npm:^6.16.4" + "@ledgerhq/logs": "npm:^6.12.0" events: "npm:^3.3.0" - checksum: 38c32ac1707cbfa1336f1f352f3d55f89e4f72dcadc73be4821ca82ef0a9dd490158904a9cda19b1751fc921fe564c22ce48fe0408a8eba03235b35864acef94 + checksum: 4fc71409e1ff906e479f2e45c386a9db2d062271908a86d09a59587652d485b80200a5335e7e9dbaf5264c0af4b8e6c36d24e7db921b10f4cc420b51e9ca3c00 languageName: node linkType: hard -"@ledgerhq/hw-transport@npm:~5.11.0": - version: 5.11.0 - resolution: "@ledgerhq/hw-transport@npm:5.11.0" +"@ledgerhq/live-env@npm:^2.0.2": + version: 2.0.2 + resolution: "@ledgerhq/live-env@npm:2.0.2" dependencies: - "@ledgerhq/devices": "npm:^5.11.0" - "@ledgerhq/errors": "npm:^5.11.0" - events: "npm:^3.1.0" - checksum: 0173d8070df1ec30d946e0f863fe8e352cfdff1116cebe89ae1dee291a9cd8368ea8f56068446756c4377d9f18e495e050db0ae647671d5c8d70cd1aea438881 + rxjs: "npm:^7.8.1" + utility-types: "npm:^3.10.0" + checksum: ce07442185f6c6b23f75b2f4bef7de167f770175ae4fbff62ebc2e2c00f5859e0d5c2e764d23c98b453edd154da0c264ed751308cd6b6df0944087067c0939f2 languageName: node linkType: hard -"@ledgerhq/logs@npm:^5.50.0": - version: 5.50.0 - resolution: "@ledgerhq/logs@npm:5.50.0" - checksum: 25666fe0b8b7da365d90c25e6fa39c577c27ee2b8ca5230defc90831f8afe2fdc2a3e5ccf050030083e77b859275ff488b443bf445a80bf82506676c0c481c73 +"@ledgerhq/logs@npm:^6.12.0": + version: 6.12.0 + resolution: "@ledgerhq/logs@npm:6.12.0" + checksum: a0a01f5d6edb0c14e7a42d24ab67ce362219517f6a50d0572c917f4f7988a1e2e9363e3d0fb170fe267f054e1e30a111564de44276e01c538b258d902c546421 languageName: node linkType: hard -"@ledgerhq/logs@npm:^6.10.1": - version: 6.10.1 - resolution: "@ledgerhq/logs@npm:6.10.1" - checksum: 4dde46557d9daa6028f7040d26585aaa7260445212ad8348ae4a01463b7d76a1592dfc36921e47f5fc477c50b5d73e840070ac167e3cbe5b45123f36a4f96b08 +"@ledgerhq/types-live@npm:^6.47.0": + version: 6.47.0 + resolution: "@ledgerhq/types-live@npm:6.47.0" + dependencies: + bignumber.js: "npm:^9.1.2" + rxjs: "npm:^7.8.1" + checksum: 914a91f31b6a1a2ccdbf66a104c36be208dbac3ef0d53f434c98541177a30a9ef5537b28148129a89b1c7c97f091185f7eff6c9a7c10722380949dcf561d8827 languageName: node linkType: hard @@ -3715,6 +3817,15 @@ __metadata: languageName: node linkType: hard +"@noble/curves@npm:^1.4.0": + version: 1.4.0 + resolution: "@noble/curves@npm:1.4.0" + dependencies: + "@noble/hashes": "npm:1.4.0" + checksum: b21b30a36ff02bfcc0f5e6163d245cdbaf7f640511fff97ccf83fc207ee79cfd91584b4d97977374de04cb118a55eb63a7964c82596a64162bbc42bc685ae6d9 + languageName: node + linkType: hard + "@noble/hashes@npm:1.2.0, @noble/hashes@npm:~1.2.0": version: 1.2.0 resolution: "@noble/hashes@npm:1.2.0" @@ -3743,6 +3854,13 @@ __metadata: languageName: node linkType: hard +"@noble/hashes@npm:1.4.0": + version: 1.4.0 + resolution: "@noble/hashes@npm:1.4.0" + checksum: e156e65794c473794c52fa9d06baf1eb20903d0d96719530f523cc4450f6c721a957c544796e6efd0197b2296e7cd70efeb312f861465e17940a3e3c7e0febc6 + languageName: node + linkType: hard + "@noble/hashes@npm:~1.3.0, @noble/hashes@npm:~1.3.1": version: 1.3.2 resolution: "@noble/hashes@npm:1.3.2" @@ -5812,7 +5930,7 @@ __metadata: languageName: node linkType: hard -"@types/debug@npm:^4.1.10": +"@types/debug@npm:^4.1.10, @types/debug@npm:^4.1.12": version: 4.1.12 resolution: "@types/debug@npm:4.1.12" dependencies: @@ -5837,13 +5955,6 @@ __metadata: languageName: node linkType: hard -"@types/fetch-mock@npm:^7.3.5": - version: 7.3.5 - resolution: "@types/fetch-mock@npm:7.3.5" - checksum: 33c9d63fd91c6d2419013f99b448caa99bad6c73d35fc780eacf2ed03eb0850a21b0fd5e66238063823ce3b856c815b2ab79c830f051330e6bc46ad47ddb255f - languageName: node - linkType: hard - "@types/fs-extra@npm:^8.0.0, @types/fs-extra@npm:^8.1.0": version: 8.1.5 resolution: "@types/fs-extra@npm:8.1.5" @@ -5970,14 +6081,14 @@ __metadata: languageName: node linkType: hard -"@types/ledgerhq__hw-transport-node-hid@npm:^4.22.2": - version: 4.22.2 - resolution: "@types/ledgerhq__hw-transport-node-hid@npm:4.22.2" +"@types/ledgerhq__hw-transport-node-hid@npm:^4.22.5": + version: 4.22.5 + resolution: "@types/ledgerhq__hw-transport-node-hid@npm:4.22.5" dependencies: "@types/ledgerhq__hw-transport": "npm:*" "@types/node": "npm:*" "@types/node-hid": "npm:*" - checksum: f8196906ad4102f59046b921693b8d93317d7f641fd03796bd07839d1cec48e6eff5a4f58f969f783a9ded9cd250e5b7009a89ea6528f1e8739ceb52b1f36f46 + checksum: 4b9934009e8e5aa43ece0268661cec17e8238c50214caa9a8c196edabb3a41005092932cba3b30e06457ff5cc953bad26a59f4d7b7398884b691ab51bc18a97d languageName: node linkType: hard @@ -6227,6 +6338,13 @@ __metadata: languageName: node linkType: hard +"@types/w3c-web-usb@npm:^1.0.6": + version: 1.0.10 + resolution: "@types/w3c-web-usb@npm:1.0.10" + checksum: 6ac6786a0788f0846a48b103ab06ca5fde5eb95674217b522420a2f6157bee3e181a961c1b7011940f497c55f4f5cc46129657d881fdd8112b48764089679ad6 + languageName: node + linkType: hard + "@types/ws@npm:^8.5.4": version: 8.5.8 resolution: "@types/ws@npm:8.5.8" @@ -6469,6 +6587,13 @@ __metadata: languageName: node linkType: hard +"@yarnpkg/lockfile@npm:^1.1.0": + version: 1.1.0 + resolution: "@yarnpkg/lockfile@npm:1.1.0" + checksum: cd19e1114aaf10a05126aeea8833ef4ca8af8a46e88e12884f8359d19333fd19711036dbc2698dbe937f81f037070cf9a8da45c2e8c6ca19cafd7d15659094ed + languageName: node + linkType: hard + "abbrev@npm:1, abbrev@npm:^1.0.0": version: 1.1.1 resolution: "abbrev@npm:1.1.1" @@ -7030,6 +7155,13 @@ __metadata: languageName: node linkType: hard +"at-least-node@npm:^1.0.0": + version: 1.0.0 + resolution: "at-least-node@npm:1.0.0" + checksum: 463e2f8e43384f1afb54bc68485c436d7622acec08b6fad269b421cb1d29cebb5af751426793d0961ed243146fe4dc983402f6d5a51b720b277818dbf6f2e49e + languageName: node + linkType: hard + "available-typed-arrays@npm:^1.0.5": version: 1.0.5 resolution: "available-typed-arrays@npm:1.0.5" @@ -7069,6 +7201,17 @@ __metadata: languageName: node linkType: hard +"axios@npm:^1.3.4, axios@npm:^1.6.0, axios@npm:^1.6.5": + version: 1.6.8 + resolution: "axios@npm:1.6.8" + dependencies: + follow-redirects: "npm:^1.15.6" + form-data: "npm:^4.0.0" + proxy-from-env: "npm:^1.1.0" + checksum: 3f9a79eaf1d159544fca9576261ff867cbbff64ed30017848e4210e49f3b01e97cf416390150e6fdf6633f336cd43dc1151f890bbd09c3c01ad60bb0891eee63 + languageName: node + linkType: hard + "babel-jest@npm:^29.7.0": version: 29.7.0 resolution: "babel-jest@npm:29.7.0" @@ -7145,16 +7288,6 @@ __metadata: languageName: node linkType: hard -"babel-runtime@npm:^6.26.0": - version: 6.26.0 - resolution: "babel-runtime@npm:6.26.0" - dependencies: - core-js: "npm:^2.4.0" - regenerator-runtime: "npm:^0.11.0" - checksum: 2cdf0f083b9598a43cdb11cbf1e7060584079a9a2230f06aec997ba81e887ef17fdcb5ad813a484ee099e06d2de0cea832bdd3011c06325acb284284c754ee8f - languageName: node - linkType: hard - "balanced-match@npm:^1.0.0": version: 1.0.2 resolution: "balanced-match@npm:1.0.2" @@ -7982,6 +8115,7 @@ __metadata: version: 0.0.0-use.local resolution: "celo@workspace:." dependencies: + "@celo/typescript": "workspace:^" "@changesets/changelog-github": "npm:^0.5.0" "@changesets/cli": "npm:^2.26.2" "@types/jest": "npm:^29.1.1" @@ -7996,11 +8130,12 @@ __metadata: eslint-plugin-import: "npm:^2.29.1" eslint-plugin-unicorn: "npm:^50.0.1" husky: "npm:^8.0.0" - jest: "npm:^29.0.2" + jest: "npm:^29.7.0" + patch-package: "npm:^8.0.0" prettier: "npm:^2.7.1" pretty-quick: "npm:^2.0.1" semver: "npm:7.5.2" - ts-jest: "npm:^29.0.0" + ts-jest: "npm:^29.1.5" ts-node: "npm:^10.9.1" tsconfig-paths: "npm:^3.8.0" typedoc: "npm:^0.25.7" @@ -8140,7 +8275,7 @@ __metadata: languageName: node linkType: hard -"ci-info@npm:^3.1.0, ci-info@npm:^3.9.0": +"ci-info@npm:^3.1.0, ci-info@npm:^3.7.0, ci-info@npm:^3.9.0": version: 3.9.0 resolution: "ci-info@npm:3.9.0" checksum: 75bc67902b4d1c7b435497adeb91598f6d52a3389398e44294f6601b20cfef32cf2176f7be0eb961d9e085bb333a8a5cae121cb22f81cf238ae7f58eb80e9397 @@ -8679,20 +8814,6 @@ __metadata: languageName: node linkType: hard -"core-js@npm:^2.4.0": - version: 2.6.12 - resolution: "core-js@npm:2.6.12" - checksum: 7c624eb00a59c74c769d5d80f751f3bf1fc6201205b6562f27286ad5e00bbca1483f2f7eb0c2854b86f526ef5c7dc958b45f2ff536f8a31b8e9cb1a13a96efca - languageName: node - linkType: hard - -"core-js@npm:^3.0.0": - version: 3.30.1 - resolution: "core-js@npm:3.30.1" - checksum: 5a21c0d53faa13a11f257f95cd0f0b59429b87267e63a1ac7a54691f8d9f34ff12e5d28c65f3e37c7dbef10654dbff726bfb85a77d19e494b898807db1801d53 - languageName: node - linkType: hard - "core-util-is@npm:1.0.2": version: 1.0.2 resolution: "core-util-is@npm:1.0.2" @@ -8851,6 +8972,13 @@ __metadata: languageName: node linkType: hard +"crypto-js@npm:4.2.0": + version: 4.2.0 + resolution: "crypto-js@npm:4.2.0" + checksum: c7bcc56a6e01c3c397e95aa4a74e4241321f04677f9a618a8f48a63b5781617248afb9adb0629824792e7ec20ca0d4241a49b6b2938ae6f973ec4efc5c53c924 + languageName: node + linkType: hard + "css-select@npm:^5.1.0": version: 5.1.0 resolution: "css-select@npm:5.1.0" @@ -8997,6 +9125,18 @@ __metadata: languageName: node linkType: hard +"debug@npm:^4.3.5": + version: 4.3.5 + resolution: "debug@npm:4.3.5" + dependencies: + ms: "npm:2.1.2" + peerDependenciesMeta: + supports-color: + optional: true + checksum: cb6eab424c410e07813ca1392888589972ce9a32b8829c6508f5e1f25f3c3e70a76731610ae55b4bbe58d1a2fffa1424b30e97fa8d394e49cd2656a9643aedd2 + languageName: node + linkType: hard + "debuglog@npm:^1.0.1": version: 1.0.1 resolution: "debuglog@npm:1.0.1" @@ -9388,6 +9528,15 @@ __metadata: languageName: node linkType: hard +"eip55@npm:^2.1.1": + version: 2.1.1 + resolution: "eip55@npm:2.1.1" + dependencies: + keccak: "npm:^3.0.3" + checksum: 512d319e4f91ab0c33b514f371206956521dcdcdd23e8eb4d6f9c21e3be9f72287c0b82feb854d3a1eec91805804d13c31e7a1a7dafd37f69eb9994a9c6c8f32 + languageName: node + linkType: hard + "ejs@npm:^3.1.8, ejs@npm:^3.1.9": version: 3.1.9 resolution: "ejs@npm:3.1.9" @@ -10045,7 +10194,7 @@ __metadata: languageName: node linkType: hard -"ethers@npm:5, ethers@npm:^5.0.13": +"ethers@npm:5, ethers@npm:5.7.2, ethers@npm:^5.0.13": version: 5.7.2 resolution: "ethers@npm:5.7.2" dependencies: @@ -10138,7 +10287,7 @@ __metadata: languageName: node linkType: hard -"events@npm:^3.0.0, events@npm:^3.1.0, events@npm:^3.3.0": +"events@npm:^3.0.0, events@npm:^3.3.0": version: 3.3.0 resolution: "events@npm:3.3.0" checksum: a3d47e285e28d324d7180f1e493961a2bbb4cad6412090e4dec114f4db1f5b560c7696ee8e758f55e23913ede856e3689cd3aa9ae13c56b5d8314cd3b3ddd1be @@ -10451,48 +10600,20 @@ __metadata: languageName: node linkType: hard -"fetch-mock@npm:9.10.4": - version: 9.10.4 - resolution: "fetch-mock@npm:9.10.4" - dependencies: - babel-runtime: "npm:^6.26.0" - core-js: "npm:^3.0.0" - debug: "npm:^4.1.1" - glob-to-regexp: "npm:^0.4.0" - is-subset: "npm:^0.1.1" - lodash.isequal: "npm:^4.5.0" - path-to-regexp: "npm:^2.2.1" - querystring: "npm:^0.2.0" - whatwg-url: "npm:^6.5.0" - peerDependencies: - node-fetch: "*" - peerDependenciesMeta: - node-fetch: - optional: true - checksum: 8b61a4b130cbf40ed5c0453196b23a9215337e4750387a01ddf7784599b01716490e30e55652f896dba804c4f486138819d1758db6aa87572eb93d89cc0f0c4c - languageName: node - linkType: hard - -"fetch-mock@npm:^9.11.0": - version: 9.11.0 - resolution: "fetch-mock@npm:9.11.0" +"fetch-mock@npm:^10.0.7": + version: 10.0.7 + resolution: "fetch-mock@npm:10.0.7" dependencies: - "@babel/core": "npm:^7.0.0" - "@babel/runtime": "npm:^7.0.0" - core-js: "npm:^3.0.0" debug: "npm:^4.1.1" glob-to-regexp: "npm:^0.4.0" is-subset: "npm:^0.1.1" lodash.isequal: "npm:^4.5.0" path-to-regexp: "npm:^2.2.1" - querystring: "npm:^0.2.0" - whatwg-url: "npm:^6.5.0" - peerDependencies: - node-fetch: "*" + querystring: "npm:^0.2.1" peerDependenciesMeta: node-fetch: optional: true - checksum: 4bbd312eafd960b787596ab587d00f84967c009a5b00d66566cba9312171bc1f8a8f8d85898d9d158c4fdabbd26913ad360ef4363ec85153463893ae761f2a8c + checksum: 63f83b7d1f5045c736ad6025b6c1f02b965e5ced903aea6f4b8992dc726bc1d445ee1995e34b50678ebfd832864b8f2df8629193d9b018d01cb5366fab6eba1f languageName: node linkType: hard @@ -10639,7 +10760,7 @@ __metadata: languageName: node linkType: hard -"follow-redirects@npm:^1.0.0": +"follow-redirects@npm:^1.0.0, follow-redirects@npm:^1.15.6": version: 1.15.6 resolution: "follow-redirects@npm:1.15.6" peerDependenciesMeta: @@ -10787,6 +10908,18 @@ __metadata: languageName: node linkType: hard +"fs-extra@npm:^9.0.0": + version: 9.1.0 + resolution: "fs-extra@npm:9.1.0" + dependencies: + at-least-node: "npm:^1.0.0" + graceful-fs: "npm:^4.2.0" + jsonfile: "npm:^6.0.1" + universalify: "npm:^2.0.0" + checksum: 08600da1b49552ed23dfac598c8fc909c66776dd130fea54fbcad22e330f7fcc13488bb995f6bc9ce5651aa35b65702faf616fe76370ee56f1aade55da982dca + languageName: node + linkType: hard + "fs-minipass@npm:^1.2.7": version: 1.2.7 resolution: "fs-minipass@npm:1.2.7" @@ -11316,7 +11449,7 @@ __metadata: languageName: node linkType: hard -"graceful-fs@npm:^4.1.2, graceful-fs@npm:^4.1.5, graceful-fs@npm:^4.1.6, graceful-fs@npm:^4.1.9, graceful-fs@npm:^4.2.0, graceful-fs@npm:^4.2.11, graceful-fs@npm:^4.2.6, graceful-fs@npm:^4.2.9": +"graceful-fs@npm:^4.1.11, graceful-fs@npm:^4.1.2, graceful-fs@npm:^4.1.5, graceful-fs@npm:^4.1.6, graceful-fs@npm:^4.1.9, graceful-fs@npm:^4.2.0, graceful-fs@npm:^4.2.11, graceful-fs@npm:^4.2.6, graceful-fs@npm:^4.2.9": version: 4.2.11 resolution: "graceful-fs@npm:4.2.11" checksum: bf152d0ed1dc159239db1ba1f74fdbc40cb02f626770dcd5815c427ce0688c2635a06ed69af364396da4636d0408fcf7d4afdf7881724c3307e46aff30ca49e2 @@ -12025,6 +12158,15 @@ __metadata: languageName: node linkType: hard +"invariant@npm:2": + version: 2.2.4 + resolution: "invariant@npm:2.2.4" + dependencies: + loose-envify: "npm:^1.0.0" + checksum: cc3182d793aad82a8d1f0af697b462939cb46066ec48bbf1707c150ad5fad6406137e91a262022c269702e01621f35ef60269f6c0d7fd178487959809acdfb14 + languageName: node + linkType: hard + "invert-kv@npm:^1.0.0": version: 1.0.0 resolution: "invert-kv@npm:1.0.0" @@ -12497,7 +12639,7 @@ __metadata: languageName: node linkType: hard -"is-wsl@npm:^2.2.0": +"is-wsl@npm:^2.1.1, is-wsl@npm:^2.2.0": version: 2.2.0 resolution: "is-wsl@npm:2.2.0" dependencies: @@ -13076,7 +13218,7 @@ __metadata: languageName: node linkType: hard -"jest@npm:^29.0.2": +"jest@npm:^29.7.0": version: 29.7.0 resolution: "jest@npm:29.7.0" dependencies: @@ -13116,7 +13258,7 @@ __metadata: languageName: node linkType: hard -"js-tokens@npm:^4.0.0": +"js-tokens@npm:^3.0.0 || ^4.0.0, js-tokens@npm:^4.0.0": version: 4.0.0 resolution: "js-tokens@npm:4.0.0" checksum: af37d0d913fb56aec6dc0074c163cc71cd23c0b8aad5c2350747b6721d37ba118af35abdd8b33c47ec2800de07dedb16a527ca9c530ee004093e04958bd0cbf2 @@ -13238,6 +13380,18 @@ __metadata: languageName: node linkType: hard +"json-stable-stringify@npm:^1.0.2": + version: 1.1.1 + resolution: "json-stable-stringify@npm:1.1.1" + dependencies: + call-bind: "npm:^1.0.5" + isarray: "npm:^2.0.5" + jsonify: "npm:^0.0.1" + object-keys: "npm:^1.1.1" + checksum: 60853c1f63451319b5c7953465a555aa816cf84e60e3ca36b6c05225d8fdc4615127fb4ecb92f9f5ad880c552ab8cbae9a519f78b995e7788d6d89e57afafdeb + languageName: node + linkType: hard + "json-stringify-nice@npm:^1.1.4": version: 1.1.4 resolution: "json-stringify-nice@npm:1.1.4" @@ -13303,6 +13457,26 @@ __metadata: languageName: node linkType: hard +"jsonfile@npm:^6.0.1": + version: 6.1.0 + resolution: "jsonfile@npm:6.1.0" + dependencies: + graceful-fs: "npm:^4.1.6" + universalify: "npm:^2.0.0" + dependenciesMeta: + graceful-fs: + optional: true + checksum: 03014769e7dc77d4cf05fa0b534907270b60890085dd5e4d60a382ff09328580651da0b8b4cdf44d91e4c8ae64d91791d965f05707beff000ed494a38b6fec85 + languageName: node + linkType: hard + +"jsonify@npm:^0.0.1": + version: 0.0.1 + resolution: "jsonify@npm:0.0.1" + checksum: 7b86b6f4518582ff1d8b7624ed6c6277affd5246445e864615dbdef843a4057ac58587684faf129ea111eeb80e01c15f0a4d9d03820eb3f3985fa67e81b12398 + languageName: node + linkType: hard + "jsonparse@npm:^1.3.1": version: 1.3.1 resolution: "jsonparse@npm:1.3.1" @@ -13403,7 +13577,7 @@ __metadata: languageName: node linkType: hard -"keccak@npm:*": +"keccak@npm:*, keccak@npm:^3.0.3": version: 3.0.4 resolution: "keccak@npm:3.0.4" dependencies: @@ -13443,6 +13617,15 @@ __metadata: languageName: node linkType: hard +"klaw-sync@npm:^6.0.0": + version: 6.0.0 + resolution: "klaw-sync@npm:6.0.0" + dependencies: + graceful-fs: "npm:^4.1.11" + checksum: 0da397f8961313c3ef8f79fb63af9002cde5a8fb2aeb1a37351feff0dd6006129c790400c3f5c3b4e757bedcabb13d21ec0a5eaef5a593d59515d4f2c291e475 + languageName: node + linkType: hard + "klaw@npm:^1.0.0": version: 1.3.1 resolution: "klaw@npm:1.3.1" @@ -13904,6 +14087,17 @@ __metadata: languageName: node linkType: hard +"loose-envify@npm:^1.0.0, loose-envify@npm:^1.1.0": + version: 1.4.0 + resolution: "loose-envify@npm:1.4.0" + dependencies: + js-tokens: "npm:^3.0.0 || ^4.0.0" + bin: + loose-envify: cli.js + checksum: 6517e24e0cad87ec9888f500c5b5947032cdfe6ef65e1c1936a0c48a524b81e65542c9c3edc91c97d5bddc806ee2a985dbc79be89215d613b1de5db6d1cfe6f4 + languageName: node + linkType: hard + "lower-case-first@npm:^1.0.0": version: 1.0.2 resolution: "lower-case-first@npm:1.0.2" @@ -14897,21 +15091,21 @@ __metadata: languageName: node linkType: hard -"node-addon-api@npm:^4.2.0": - version: 4.3.0 - resolution: "node-addon-api@npm:4.3.0" +"node-addon-api@npm:^5.0.0": + version: 5.1.0 + resolution: "node-addon-api@npm:5.1.0" dependencies: node-gyp: "npm:latest" - checksum: d3b38d16cb9ad0714d965331d0e38cef1c27750c2c3343cd3464a9ed8158501a2910ccbf2fd9fdc476e806a19dbc9e0524ff9d66a7c779d42a9752a63ba30b80 + checksum: 595f59ffb4630564f587c502119cbd980d302e482781021f3b479f5fc7e41cf8f2f7280fdc2795f32d148e4f3259bd15043c52d4a3442796aa6f1ae97b959636 languageName: node linkType: hard -"node-addon-api@npm:^5.0.0": - version: 5.1.0 - resolution: "node-addon-api@npm:5.1.0" +"node-addon-api@npm:^6.0.0": + version: 6.1.0 + resolution: "node-addon-api@npm:6.1.0" dependencies: node-gyp: "npm:latest" - checksum: 595f59ffb4630564f587c502119cbd980d302e482781021f3b479f5fc7e41cf8f2f7280fdc2795f32d148e4f3259bd15043c52d4a3442796aa6f1ae97b959636 + checksum: 8eea1d4d965930a177a0508695beb0d89b4c1d80bf330646a035357a1e8fc31e0d09686e2374996e96e757b947a7ece319f98ede3146683f162597c0bcb4df90 languageName: node linkType: hard @@ -15000,7 +15194,7 @@ __metadata: languageName: node linkType: hard -"node-gyp-build@npm:^4.2.0, node-gyp-build@npm:^4.3.0": +"node-gyp-build@npm:^4.2.0, node-gyp-build@npm:^4.3.0, node-gyp-build@npm:^4.5.0": version: 4.8.0 resolution: "node-gyp-build@npm:4.8.0" bin: @@ -15776,6 +15970,16 @@ __metadata: languageName: node linkType: hard +"open@npm:^7.4.2": + version: 7.4.2 + resolution: "open@npm:7.4.2" + dependencies: + is-docker: "npm:^2.0.0" + is-wsl: "npm:^2.1.1" + checksum: 4fc02ed3368dcd5d7247ad3566433ea2695b0713b041ebc0eeb2f0f9e5d4e29fc2068f5cdd500976b3464e77fe8b61662b1b059c73233ccc601fe8b16d6c1cd6 + languageName: node + linkType: hard + "open@npm:^8.0.0": version: 8.4.2 resolution: "open@npm:8.4.2" @@ -16204,6 +16408,31 @@ __metadata: languageName: node linkType: hard +"patch-package@npm:^8.0.0": + version: 8.0.0 + resolution: "patch-package@npm:8.0.0" + dependencies: + "@yarnpkg/lockfile": "npm:^1.1.0" + chalk: "npm:^4.1.2" + ci-info: "npm:^3.7.0" + cross-spawn: "npm:^7.0.3" + find-yarn-workspace-root: "npm:^2.0.0" + fs-extra: "npm:^9.0.0" + json-stable-stringify: "npm:^1.0.2" + klaw-sync: "npm:^6.0.0" + minimist: "npm:^1.2.6" + open: "npm:^7.4.2" + rimraf: "npm:^2.6.3" + semver: "npm:^7.5.3" + slash: "npm:^2.0.0" + tmp: "npm:^0.0.33" + yaml: "npm:^2.2.2" + bin: + patch-package: index.js + checksum: 8714322c35b29266e71c82d58443ce5322400a546a3327f1b8907b8eeb7e366dff33c4fdfbd25e3f0b3a9927189c26e9ac60636ca1e4140d6dbc11cca10f9b5d + languageName: node + linkType: hard + "path-case@npm:^2.1.0": version: 2.1.1 resolution: "path-case@npm:2.1.1" @@ -16690,6 +16919,13 @@ __metadata: languageName: node linkType: hard +"proxy-from-env@npm:^1.1.0": + version: 1.1.0 + resolution: "proxy-from-env@npm:1.1.0" + checksum: f0bb4a87cfd18f77bc2fba23ae49c3b378fb35143af16cc478171c623eebe181678f09439707ad80081d340d1593cd54a33a0113f3ccb3f4bc9451488780ee23 + languageName: node + linkType: hard + "pseudomap@npm:^1.0.2": version: 1.0.2 resolution: "pseudomap@npm:1.0.2" @@ -16833,7 +17069,7 @@ __metadata: languageName: node linkType: hard -"querystring@npm:^0.2.0": +"querystring@npm:^0.2.1": version: 0.2.1 resolution: "querystring@npm:0.2.1" checksum: 5ae2eeb8c6d70263a3d13ffaf234ce9593ae0e95ad8ea04aa540e14ff66679347420817aeb4fe6fdfa2aaa7fac86e311b6f1d3da2187f433082ad9125c808c14 @@ -16915,6 +17151,18 @@ __metadata: languageName: node linkType: hard +"react-dom@npm:^18.2.0": + version: 18.2.0 + resolution: "react-dom@npm:18.2.0" + dependencies: + loose-envify: "npm:^1.1.0" + scheduler: "npm:^0.23.0" + peerDependencies: + react: ^18.2.0 + checksum: ca5e7762ec8c17a472a3605b6f111895c9f87ac7d43a610ab7024f68cd833d08eda0625ce02ec7178cc1f3c957cf0b9273cdc17aa2cd02da87544331c43b1d21 + languageName: node + linkType: hard + "react-is@npm:^18.0.0": version: 18.2.0 resolution: "react-is@npm:18.2.0" @@ -16922,6 +17170,15 @@ __metadata: languageName: node linkType: hard +"react@npm:^18.2.0": + version: 18.2.0 + resolution: "react@npm:18.2.0" + dependencies: + loose-envify: "npm:^1.1.0" + checksum: b9214a9bd79e99d08de55f8bef2b7fc8c39630be97c4e29d7be173d14a9a10670b5325e94485f74cd8bff4966ef3c78ee53c79a7b0b9b70cba20aa8973acc694 + languageName: node + linkType: hard + "read-cmd-shim@npm:^3.0.0": version: 3.0.1 resolution: "read-cmd-shim@npm:3.0.1" @@ -17124,13 +17381,6 @@ __metadata: languageName: node linkType: hard -"regenerator-runtime@npm:^0.11.0": - version: 0.11.1 - resolution: "regenerator-runtime@npm:0.11.1" - checksum: 64e62d78594c227e7d5269811bca9e4aa6451332adaae8c79a30cab0fa98733b1ad90bdb9d038095c340c6fad3b414a49a8d9e0b6b424ab7ff8f94f35704f8a2 - languageName: node - linkType: hard - "regenerator-runtime@npm:^0.13.11": version: 0.13.11 resolution: "regenerator-runtime@npm:0.13.11" @@ -17443,7 +17693,7 @@ __metadata: languageName: node linkType: hard -"rxjs@npm:6, rxjs@npm:^6.4.0, rxjs@npm:^6.6.0": +"rxjs@npm:^6.4.0, rxjs@npm:^6.6.0": version: 6.6.7 resolution: "rxjs@npm:6.6.7" dependencies: @@ -17452,7 +17702,7 @@ __metadata: languageName: node linkType: hard -"rxjs@npm:^7.5.5": +"rxjs@npm:^7.5.5, rxjs@npm:^7.8.1": version: 7.8.1 resolution: "rxjs@npm:7.8.1" dependencies: @@ -17526,6 +17776,15 @@ __metadata: languageName: node linkType: hard +"scheduler@npm:^0.23.0": + version: 0.23.0 + resolution: "scheduler@npm:0.23.0" + dependencies: + loose-envify: "npm:^1.1.0" + checksum: 0c4557aa37bafca44ff21dc0ea7c92e2dbcb298bc62eae92b29a39b029134f02fb23917d6ebc8b1fa536b4184934314c20d8864d156a9f6357f3398aaf7bfda8 + languageName: node + linkType: hard + "scoped-regex@npm:^2.0.0": version: 2.1.0 resolution: "scoped-regex@npm:2.1.0" @@ -17611,6 +17870,17 @@ __metadata: languageName: node linkType: hard +"semver@npm:^7.6.0": + version: 7.6.0 + resolution: "semver@npm:7.6.0" + dependencies: + lru-cache: "npm:^6.0.0" + bin: + semver: bin/semver.js + checksum: 1b41018df2d8aca5a1db4729985e8e20428c650daea60fcd16e926e9383217d00f574fab92d79612771884a98d2ee2a1973f49d630829a8d54d6570defe62535 + languageName: node + linkType: hard + "send@npm:0.18.0": version: 0.18.0 resolution: "send@npm:0.18.0" @@ -17918,6 +18188,13 @@ __metadata: languageName: node linkType: hard +"slash@npm:^2.0.0": + version: 2.0.0 + resolution: "slash@npm:2.0.0" + checksum: 512d4350735375bd11647233cb0e2f93beca6f53441015eea241fe784d8068281c3987fbaa93e7ef1c38df68d9c60013045c92837423c69115297d6169aa85e6 + languageName: node + linkType: hard + "slash@npm:^3.0.0": version: 3.0.0 resolution: "slash@npm:3.0.0" @@ -18816,15 +19093,6 @@ __metadata: languageName: node linkType: hard -"tr46@npm:^1.0.1": - version: 1.0.1 - resolution: "tr46@npm:1.0.1" - dependencies: - punycode: "npm:^2.1.0" - checksum: 6e80d75480cb6658f7f283c15f5f41c2d4dfa243ca99a0e1baf3de6cc823fc4c829f89782a7a11e029905781fccfea42d08d8a6674ba7948c7dbc595b6f27dd3 - languageName: node - linkType: hard - "tr46@npm:~0.0.3": version: 0.0.3 resolution: "tr46@npm:0.0.3" @@ -18862,9 +19130,9 @@ __metadata: languageName: node linkType: hard -"ts-jest@npm:^29.0.0": - version: 29.1.1 - resolution: "ts-jest@npm:29.1.1" +"ts-jest@npm:^29.1.5": + version: 29.1.5 + resolution: "ts-jest@npm:29.1.5" dependencies: bs-logger: "npm:0.x" fast-json-stable-stringify: "npm:2.x" @@ -18876,6 +19144,7 @@ __metadata: yargs-parser: "npm:^21.0.1" peerDependencies: "@babel/core": ">=7.0.0-beta.0 <8" + "@jest/transform": ^29.0.0 "@jest/types": ^29.0.0 babel-jest: ^29.0.0 jest: ^29.0.0 @@ -18883,6 +19152,8 @@ __metadata: peerDependenciesMeta: "@babel/core": optional: true + "@jest/transform": + optional: true "@jest/types": optional: true babel-jest: @@ -18891,7 +19162,7 @@ __metadata: optional: true bin: ts-jest: cli.js - checksum: 30e8259baba95dd786e64f7c18b864e904598f3ba07911be4d9bd29ca9c3c0024bad4ccf8ec0abd2a2fa14b06622cbbadff1b3be822189c657196442d33ee6ca + checksum: 11a29a49130f1c9bef5aebe8007f6be3e630af6c2dea6b00ff5a86d649321854a43966b4990a43960d77a3f98d7a753b9b7e19c20c42a2d38341d6e67a3e48d1 languageName: node linkType: hard @@ -18933,6 +19204,44 @@ __metadata: languageName: node linkType: hard +"ts-node@npm:^10.9.2": + version: 10.9.2 + resolution: "ts-node@npm:10.9.2" + dependencies: + "@cspotcode/source-map-support": "npm:^0.8.0" + "@tsconfig/node10": "npm:^1.0.7" + "@tsconfig/node12": "npm:^1.0.7" + "@tsconfig/node14": "npm:^1.0.0" + "@tsconfig/node16": "npm:^1.0.2" + acorn: "npm:^8.4.1" + acorn-walk: "npm:^8.1.1" + arg: "npm:^4.1.0" + create-require: "npm:^1.1.0" + diff: "npm:^4.0.1" + make-error: "npm:^1.1.1" + v8-compile-cache-lib: "npm:^3.0.1" + yn: "npm:3.1.1" + peerDependencies: + "@swc/core": ">=1.2.50" + "@swc/wasm": ">=1.2.50" + "@types/node": "*" + typescript: ">=2.7" + peerDependenciesMeta: + "@swc/core": + optional: true + "@swc/wasm": + optional: true + bin: + ts-node: dist/bin.js + ts-node-cwd: dist/bin-cwd.js + ts-node-esm: dist/bin-esm.js + ts-node-script: dist/bin-script.js + ts-node-transpile-only: dist/bin-transpile.js + ts-script: dist/bin-script-deprecated.js + checksum: a91a15b3c9f76ac462f006fa88b6bfa528130dcfb849dd7ef7f9d640832ab681e235b8a2bc58ecde42f72851cc1d5d4e22c901b0c11aa51001ea1d395074b794 + languageName: node + linkType: hard + "tsconfck@npm:^3.0.0": version: 3.0.0 resolution: "tsconfck@npm:3.0.0" @@ -19335,6 +19644,13 @@ __metadata: languageName: node linkType: hard +"universalify@npm:^2.0.0": + version: 2.0.1 + resolution: "universalify@npm:2.0.1" + checksum: ecd8469fe0db28e7de9e5289d32bd1b6ba8f7183db34f3bfc4ca53c49891c2d6aa05f3fb3936a81285a905cc509fb641a0c3fc131ec786167eff41236ae32e60 + languageName: node + linkType: hard + "unpipe@npm:1.0.0, unpipe@npm:~1.0.0": version: 1.0.0 resolution: "unpipe@npm:1.0.0" @@ -19446,14 +19762,15 @@ __metadata: languageName: node linkType: hard -"usb@npm:^1.7.0": - version: 1.9.2 - resolution: "usb@npm:1.9.2" +"usb@npm:2.9.0": + version: 2.9.0 + resolution: "usb@npm:2.9.0" dependencies: - node-addon-api: "npm:^4.2.0" + "@types/w3c-web-usb": "npm:^1.0.6" + node-addon-api: "npm:^6.0.0" node-gyp: "npm:latest" - node-gyp-build: "npm:^4.3.0" - checksum: a9bbaade5a9acedea3fba6ea3e5b7b79b835685be1d3c9fbcf44c50ded0878669bc170b5efa0097fc8109ed83181f5c1558da4d4e6188bfd80fe6d838edaa52b + node-gyp-build: "npm:^4.5.0" + checksum: ab68d4247a24a463328e293256aec5682c12163278ab474b7243a9dba6283a44bb74f9e0ca96f1d00197bb271f294549c3a4debdbd3452a02750a4a65ff29ee6 languageName: node linkType: hard @@ -19513,6 +19830,13 @@ __metadata: languageName: node linkType: hard +"utility-types@npm:^3.10.0": + version: 3.11.0 + resolution: "utility-types@npm:3.11.0" + checksum: a3c51463fc807ed04ccc8b5d0fa6e31f3dcd7a4cbd30ab4bc6d760ce5319dd493d95bf04244693daf316f97e9ab2a37741edfed8748ad38572a595398ad0fdaf + languageName: node + linkType: hard + "utils-merge@npm:1.0.1": version: 1.0.1 resolution: "utils-merge@npm:1.0.1" @@ -20234,13 +20558,6 @@ __metadata: languageName: node linkType: hard -"webidl-conversions@npm:^4.0.2": - version: 4.0.2 - resolution: "webidl-conversions@npm:4.0.2" - checksum: 594187c36f2d7898f89c0ed3b9248a095fa549ecc1befb10a97bc884b5680dc96677f58df5579334d8e0d1018e5ef075689cfa2a6c459f45a61a9deb512cb59e - languageName: node - linkType: hard - "websocket@npm:^1.0.32": version: 1.0.34 resolution: "websocket@npm:1.0.34" @@ -20265,17 +20582,6 @@ __metadata: languageName: node linkType: hard -"whatwg-url@npm:^6.5.0": - version: 6.5.0 - resolution: "whatwg-url@npm:6.5.0" - dependencies: - lodash.sortby: "npm:^4.7.0" - tr46: "npm:^1.0.1" - webidl-conversions: "npm:^4.0.2" - checksum: fbe8e9d81f8f07343f60bc135962ff346d7d19efc9e2f842f54b5c525837dcf1a36d13be21902311a2922b6342799dd82454e552b4e460d74451794f187ba0a5 - languageName: node - linkType: hard - "which-boxed-primitive@npm:^1.0.2": version: 1.0.2 resolution: "which-boxed-primitive@npm:1.0.2" @@ -20686,6 +20992,15 @@ __metadata: languageName: node linkType: hard +"yaml@npm:^2.2.2": + version: 2.4.1 + resolution: "yaml@npm:2.4.1" + bin: + yaml: bin.mjs + checksum: 2c54fd69ef59126758ae710f9756405a7d41abcbb61aca894250d0e81e76057c14dc9bb00a9528f72f99b8f24077f694a6f7fd09cdd6711fcec2eebfbb5df409 + languageName: node + linkType: hard + "yargs-parser@npm:^13.1.2": version: 13.1.2 resolution: "yargs-parser@npm:13.1.2"