From 93911d737132ca7176884f98d6a5fc57c6c98775 Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Wed, 9 Nov 2022 02:57:02 -0500 Subject: [PATCH] admin: update dist files --- lib.commonjs/_tests/create-provider.js | 30 +- lib.commonjs/_tests/create-provider.js.map | 2 +- lib.commonjs/_tests/test-contract.js | 193 +++++++--- lib.commonjs/_tests/test-contract.js.map | 2 +- lib.commonjs/_tests/test-hash.js | 15 + lib.commonjs/_tests/test-hash.js.map | 2 +- lib.commonjs/_tests/test-providers-send.js | 45 +++ .../_tests/test-providers-send.js.map | 1 + lib.commonjs/_tests/test-utils-units.js | 68 ++++ lib.commonjs/_tests/test-utils-units.js.map | 1 + lib.commonjs/_tests/test-utils-utf8.js | 131 +++++++ lib.commonjs/_tests/test-utils-utf8.js.map | 1 + lib.commonjs/_tests/types.js.map | 2 +- lib.commonjs/_tests/utils.js | 73 ++-- lib.commonjs/_tests/utils.js.map | 2 +- lib.commonjs/abi/abi-coder.js | 10 +- lib.commonjs/abi/abi-coder.js.map | 2 +- lib.commonjs/abi/coders/abstract-coder.js | 12 +- lib.commonjs/abi/coders/abstract-coder.js.map | 2 +- lib.commonjs/abi/coders/array.js | 30 +- lib.commonjs/abi/coders/array.js.map | 2 +- lib.commonjs/abi/fragments.js | 30 +- lib.commonjs/abi/fragments.js.map | 2 +- lib.commonjs/abi/interface.js | 63 ++-- lib.commonjs/abi/interface.js.map | 2 +- lib.commonjs/address/address.js | 14 +- lib.commonjs/address/address.js.map | 2 +- lib.commonjs/address/checks.js | 14 +- lib.commonjs/address/checks.js.map | 2 +- lib.commonjs/address/contract-address.js | 8 +- lib.commonjs/address/contract-address.js.map | 2 +- lib.commonjs/contract/contract.js | 165 +++++---- lib.commonjs/contract/contract.js.map | 2 +- lib.commonjs/contract/factory.js | 12 +- lib.commonjs/contract/factory.js.map | 2 +- lib.commonjs/contract/wrappers.js | 32 +- lib.commonjs/contract/wrappers.js.map | 2 +- lib.commonjs/crypto/crypto-browser.js | 22 +- lib.commonjs/crypto/crypto-browser.js.map | 2 +- lib.commonjs/crypto/hmac.js | 4 +- lib.commonjs/crypto/hmac.js.map | 2 +- lib.commonjs/crypto/signature.js | 74 ++-- lib.commonjs/crypto/signature.js.map | 2 +- lib.commonjs/crypto/signing-key.js | 2 +- lib.commonjs/crypto/signing-key.js.map | 2 +- lib.commonjs/ethers.js | 15 +- lib.commonjs/ethers.js.map | 2 +- lib.commonjs/hash/namehash.js | 4 +- lib.commonjs/hash/namehash.js.map | 2 +- lib.commonjs/hash/solidity.js | 22 +- lib.commonjs/hash/solidity.js.map | 2 +- lib.commonjs/hash/typed-data.js | 89 ++--- lib.commonjs/hash/typed-data.js.map | 2 +- lib.commonjs/providers/abstract-provider.js | 112 +++--- .../providers/abstract-provider.js.map | 2 +- lib.commonjs/providers/abstract-signer.js | 40 +- lib.commonjs/providers/abstract-signer.js.map | 2 +- lib.commonjs/providers/ens-resolver.js | 32 +- lib.commonjs/providers/ens-resolver.js.map | 2 +- lib.commonjs/providers/format.js | 23 +- lib.commonjs/providers/format.js.map | 2 +- lib.commonjs/providers/network.js | 10 +- lib.commonjs/providers/network.js.map | 2 +- lib.commonjs/providers/plugin-fallback.js | 31 ++ lib.commonjs/providers/plugin-fallback.js.map | 1 + lib.commonjs/providers/plugins-network.js | 4 +- lib.commonjs/providers/plugins-network.js.map | 2 +- lib.commonjs/providers/provider-alchemy.js | 22 +- .../providers/provider-alchemy.js.map | 2 +- lib.commonjs/providers/provider-ankr.js | 2 +- lib.commonjs/providers/provider-ankr.js.map | 2 +- lib.commonjs/providers/provider-cloudflare.js | 4 +- .../providers/provider-cloudflare.js.map | 2 +- .../providers/provider-etherscan-base.js | 8 +- .../providers/provider-etherscan-base.js.map | 2 +- lib.commonjs/providers/provider-fallback.js | 346 ++++++++++------- .../providers/provider-fallback.js.map | 2 +- lib.commonjs/providers/provider-infura.js | 8 +- lib.commonjs/providers/provider-infura.js.map | 2 +- lib.commonjs/providers/provider-jsonrpc.js | 24 +- .../providers/provider-jsonrpc.js.map | 2 +- lib.commonjs/providers/provider-socket.js | 6 +- lib.commonjs/providers/provider-socket.js.map | 2 +- lib.commonjs/providers/provider.js | 26 +- lib.commonjs/providers/provider.js.map | 2 +- lib.commonjs/providers/subscriber-filterid.js | 1 - .../providers/subscriber-filterid.js.map | 2 +- lib.commonjs/providers/subscriber-polling.js | 2 +- .../providers/subscriber-polling.js.map | 2 +- lib.commonjs/transaction/transaction.js | 36 +- lib.commonjs/transaction/transaction.js.map | 2 +- lib.commonjs/utils/base58.js | 4 +- lib.commonjs/utils/base58.js.map | 2 +- lib.commonjs/utils/data.js | 16 +- lib.commonjs/utils/data.js.map | 2 +- lib.commonjs/utils/errors.js | 57 +-- lib.commonjs/utils/errors.js.map | 2 +- lib.commonjs/utils/fetch.js | 48 +-- lib.commonjs/utils/fetch.js.map | 2 +- lib.commonjs/utils/fixednumber.js | 68 +--- lib.commonjs/utils/fixednumber.js.map | 2 +- lib.commonjs/utils/geturl-browser.js | 18 +- lib.commonjs/utils/geturl-browser.js.map | 2 +- lib.commonjs/utils/geturl.js | 18 +- lib.commonjs/utils/geturl.js.map | 2 +- lib.commonjs/utils/index.js | 10 +- lib.commonjs/utils/index.js.map | 2 +- lib.commonjs/utils/maths.js | 28 +- lib.commonjs/utils/maths.js.map | 2 +- lib.commonjs/utils/rlp-decode.js | 28 +- lib.commonjs/utils/rlp-decode.js.map | 2 +- lib.commonjs/utils/units.js | 12 +- lib.commonjs/utils/units.js.map | 2 +- lib.commonjs/utils/utf8.js | 35 +- lib.commonjs/utils/utf8.js.map | 2 +- lib.commonjs/wallet/base-wallet.js | 22 +- lib.commonjs/wallet/base-wallet.js.map | 2 +- lib.commonjs/wallet/hdwallet.js | 18 +- lib.commonjs/wallet/hdwallet.js.map | 2 +- lib.commonjs/wallet/json-crowdsale.js | 4 +- lib.commonjs/wallet/json-crowdsale.js.map | 2 +- lib.commonjs/wallet/json-keystore.js | 22 +- lib.commonjs/wallet/json-keystore.js.map | 2 +- lib.commonjs/wallet/mnemonic.js | 16 +- lib.commonjs/wallet/mnemonic.js.map | 2 +- lib.commonjs/wallet/utils.js | 10 +- lib.commonjs/wallet/utils.js.map | 2 +- lib.commonjs/wallet/wallet.js | 16 +- lib.commonjs/wallet/wallet.js.map | 2 +- lib.commonjs/wordlists/lang-ja.js | 4 +- lib.commonjs/wordlists/lang-ja.js.map | 2 +- lib.commonjs/wordlists/lang-ko.js | 4 +- lib.commonjs/wordlists/lang-ko.js.map | 2 +- lib.commonjs/wordlists/lang-zh.js | 4 +- lib.commonjs/wordlists/lang-zh.js.map | 2 +- lib.commonjs/wordlists/wordlist-owl.js | 4 +- lib.commonjs/wordlists/wordlist-owl.js.map | 2 +- lib.esm/_tests/create-provider.js | 33 +- lib.esm/_tests/create-provider.js.map | 2 +- lib.esm/_tests/test-contract.js | 188 +++++++--- lib.esm/_tests/test-contract.js.map | 2 +- lib.esm/_tests/test-hash.js | 17 +- lib.esm/_tests/test-hash.js.map | 2 +- lib.esm/_tests/test-providers-send.js | 40 ++ lib.esm/_tests/test-providers-send.js.map | 1 + lib.esm/_tests/test-utils-units.js | 63 ++++ lib.esm/_tests/test-utils-units.js.map | 1 + lib.esm/_tests/test-utils-utf8.js | 126 +++++++ lib.esm/_tests/test-utils-utf8.js.map | 1 + lib.esm/_tests/types.js.map | 2 +- lib.esm/_tests/utils.js | 66 ++-- lib.esm/_tests/utils.js.map | 2 +- lib.esm/abi/abi-coder.js | 12 +- lib.esm/abi/abi-coder.js.map | 2 +- lib.esm/abi/coders/abstract-coder.js | 14 +- lib.esm/abi/coders/abstract-coder.js.map | 2 +- lib.esm/abi/coders/array.js | 32 +- lib.esm/abi/coders/array.js.map | 2 +- lib.esm/abi/fragments.js | 32 +- lib.esm/abi/fragments.js.map | 2 +- lib.esm/abi/interface.js | 65 ++-- lib.esm/abi/interface.js.map | 2 +- lib.esm/address/address.js | 16 +- lib.esm/address/address.js.map | 2 +- lib.esm/address/checks.js | 16 +- lib.esm/address/checks.js.map | 2 +- lib.esm/address/contract-address.js | 10 +- lib.esm/address/contract-address.js.map | 2 +- lib.esm/contract/contract.js | 171 +++++---- lib.esm/contract/contract.js.map | 2 +- lib.esm/contract/factory.js | 14 +- lib.esm/contract/factory.js.map | 2 +- lib.esm/contract/wrappers.js | 29 +- lib.esm/contract/wrappers.js.map | 2 +- lib.esm/crypto/crypto-browser.js | 24 +- lib.esm/crypto/crypto-browser.js.map | 2 +- lib.esm/crypto/hmac.js | 2 +- lib.esm/crypto/hmac.js.map | 2 +- lib.esm/crypto/signature.js | 76 ++-- lib.esm/crypto/signature.js.map | 2 +- lib.esm/crypto/signing-key.js | 4 +- lib.esm/crypto/signing-key.js.map | 2 +- lib.esm/ethers.js | 4 +- lib.esm/ethers.js.map | 2 +- lib.esm/hash/namehash.js | 6 +- lib.esm/hash/namehash.js.map | 2 +- lib.esm/hash/solidity.js | 24 +- lib.esm/hash/solidity.js.map | 2 +- lib.esm/hash/typed-data.js | 91 ++--- lib.esm/hash/typed-data.js.map | 2 +- lib.esm/providers/abstract-provider.js | 114 +++--- lib.esm/providers/abstract-provider.js.map | 2 +- lib.esm/providers/abstract-signer.js | 42 +-- lib.esm/providers/abstract-signer.js.map | 2 +- lib.esm/providers/ens-resolver.js | 34 +- lib.esm/providers/ens-resolver.js.map | 2 +- lib.esm/providers/format.js | 25 +- lib.esm/providers/format.js.map | 2 +- lib.esm/providers/network.js | 12 +- lib.esm/providers/network.js.map | 2 +- lib.esm/providers/plugin-fallback.js | 26 ++ lib.esm/providers/plugin-fallback.js.map | 1 + lib.esm/providers/plugins-network.js | 6 +- lib.esm/providers/plugins-network.js.map | 2 +- lib.esm/providers/provider-alchemy.js | 24 +- lib.esm/providers/provider-alchemy.js.map | 2 +- lib.esm/providers/provider-ankr.js | 4 +- lib.esm/providers/provider-ankr.js.map | 2 +- lib.esm/providers/provider-cloudflare.js | 6 +- lib.esm/providers/provider-cloudflare.js.map | 2 +- lib.esm/providers/provider-etherscan-base.js | 10 +- .../providers/provider-etherscan-base.js.map | 2 +- lib.esm/providers/provider-fallback.js | 348 +++++++++++------- lib.esm/providers/provider-fallback.js.map | 2 +- lib.esm/providers/provider-infura.js | 10 +- lib.esm/providers/provider-infura.js.map | 2 +- lib.esm/providers/provider-jsonrpc.js | 26 +- lib.esm/providers/provider-jsonrpc.js.map | 2 +- lib.esm/providers/provider-socket.js | 8 +- lib.esm/providers/provider-socket.js.map | 2 +- lib.esm/providers/provider.js | 28 +- lib.esm/providers/provider.js.map | 2 +- lib.esm/providers/subscriber-filterid.js | 1 - lib.esm/providers/subscriber-filterid.js.map | 2 +- lib.esm/providers/subscriber-polling.js | 4 +- lib.esm/providers/subscriber-polling.js.map | 2 +- lib.esm/transaction/transaction.js | 38 +- lib.esm/transaction/transaction.js.map | 2 +- lib.esm/utils/base58.js | 6 +- lib.esm/utils/base58.js.map | 2 +- lib.esm/utils/data.js | 18 +- lib.esm/utils/data.js.map | 2 +- lib.esm/utils/errors.js | 52 +-- lib.esm/utils/errors.js.map | 2 +- lib.esm/utils/fetch.js | 50 +-- lib.esm/utils/fetch.js.map | 2 +- lib.esm/utils/fixednumber.js | 70 ++-- lib.esm/utils/fixednumber.js.map | 2 +- lib.esm/utils/geturl-browser.js | 20 +- lib.esm/utils/geturl-browser.js.map | 2 +- lib.esm/utils/geturl.js | 20 +- lib.esm/utils/geturl.js.map | 2 +- lib.esm/utils/index.js | 4 +- lib.esm/utils/index.js.map | 2 +- lib.esm/utils/maths.js | 30 +- lib.esm/utils/maths.js.map | 2 +- lib.esm/utils/rlp-decode.js | 30 +- lib.esm/utils/rlp-decode.js.map | 2 +- lib.esm/utils/units.js | 14 +- lib.esm/utils/units.js.map | 2 +- lib.esm/utils/utf8.js | 34 +- lib.esm/utils/utf8.js.map | 2 +- lib.esm/wallet/base-wallet.js | 24 +- lib.esm/wallet/base-wallet.js.map | 2 +- lib.esm/wallet/hdwallet.js | 20 +- lib.esm/wallet/hdwallet.js.map | 2 +- lib.esm/wallet/json-crowdsale.js | 6 +- lib.esm/wallet/json-crowdsale.js.map | 2 +- lib.esm/wallet/json-keystore.js | 24 +- lib.esm/wallet/json-keystore.js.map | 2 +- lib.esm/wallet/mnemonic.js | 18 +- lib.esm/wallet/mnemonic.js.map | 2 +- lib.esm/wallet/utils.js | 12 +- lib.esm/wallet/utils.js.map | 2 +- lib.esm/wallet/wallet.js | 18 +- lib.esm/wallet/wallet.js.map | 2 +- lib.esm/wordlists/lang-ja.js | 6 +- lib.esm/wordlists/lang-ja.js.map | 2 +- lib.esm/wordlists/lang-ko.js | 6 +- lib.esm/wordlists/lang-ko.js.map | 2 +- lib.esm/wordlists/lang-zh.js | 6 +- lib.esm/wordlists/lang-zh.js.map | 2 +- lib.esm/wordlists/wordlist-owl.js | 6 +- lib.esm/wordlists/wordlist-owl.js.map | 2 +- package.json | 2 +- types/abi/abi-coder.d.ts.map | 2 +- types/abi/coders/abstract-coder.d.ts.map | 2 +- types/abi/coders/array.d.ts.map | 2 +- types/abi/fragments.d.ts.map | 2 +- types/abi/interface.d.ts.map | 2 +- types/address/address.d.ts.map | 2 +- types/address/checks.d.ts.map | 2 +- types/address/contract-address.d.ts.map | 2 +- types/contract/contract.d.ts | 5 +- types/contract/contract.d.ts.map | 2 +- types/contract/factory.d.ts.map | 2 +- types/contract/types.d.ts | 2 +- types/contract/types.d.ts.map | 2 +- types/contract/wrappers.d.ts | 12 +- types/contract/wrappers.d.ts.map | 2 +- types/crypto/crypto-browser.d.ts.map | 2 +- types/crypto/signature.d.ts.map | 2 +- types/ethers.d.ts | 4 +- types/ethers.d.ts.map | 2 +- types/hash/namehash.d.ts.map | 2 +- types/hash/solidity.d.ts.map | 2 +- types/hash/typed-data.d.ts.map | 2 +- types/providers/abstract-provider.d.ts | 53 ++- types/providers/abstract-provider.d.ts.map | 2 +- types/providers/abstract-signer.d.ts.map | 2 +- types/providers/ens-resolver.d.ts | 6 +- types/providers/ens-resolver.d.ts.map | 2 +- types/providers/format.d.ts.map | 2 +- types/providers/index.d.ts | 2 +- types/providers/index.d.ts.map | 2 +- types/providers/network.d.ts.map | 2 +- types/providers/plugin-fallback.d.ts | 13 + types/providers/plugin-fallback.d.ts.map | 1 + types/providers/plugins-network.d.ts.map | 2 +- types/providers/provider-alchemy.d.ts.map | 2 +- types/providers/provider-ankr.d.ts.map | 2 +- types/providers/provider-cloudflare.d.ts.map | 2 +- .../provider-etherscan-base.d.ts.map | 2 +- types/providers/provider-fallback.d.ts | 1 + types/providers/provider-fallback.d.ts.map | 2 +- types/providers/provider-infura.d.ts.map | 2 +- types/providers/provider-jsonrpc.d.ts.map | 2 +- types/providers/provider-socket.d.ts.map | 2 +- types/providers/provider.d.ts.map | 2 +- types/providers/subscriber-filterid.d.ts.map | 2 +- types/transaction/transaction.d.ts.map | 2 +- types/utils/base58.d.ts.map | 2 +- types/utils/data.d.ts.map | 2 +- types/utils/errors.d.ts | 9 +- types/utils/errors.d.ts.map | 2 +- types/utils/fetch.d.ts.map | 2 +- types/utils/fixednumber.d.ts | 4 +- types/utils/fixednumber.d.ts.map | 2 +- types/utils/geturl-browser.d.ts.map | 2 +- types/utils/geturl.d.ts.map | 2 +- types/utils/index.d.ts | 4 +- types/utils/index.d.ts.map | 2 +- types/utils/maths.d.ts.map | 2 +- types/utils/rlp-decode.d.ts.map | 2 +- types/utils/units.d.ts.map | 2 +- types/utils/utf8.d.ts | 1 - types/utils/utf8.d.ts.map | 2 +- types/wallet/base-wallet.d.ts.map | 2 +- types/wallet/hdwallet.d.ts.map | 2 +- types/wallet/json-crowdsale.d.ts.map | 2 +- types/wallet/json-keystore.d.ts.map | 2 +- types/wallet/mnemonic.d.ts.map | 2 +- types/wallet/utils.d.ts.map | 2 +- types/wallet/wallet.d.ts.map | 2 +- types/wordlists/lang-ja.d.ts.map | 2 +- types/wordlists/lang-ko.d.ts.map | 2 +- types/wordlists/lang-zh.d.ts.map | 2 +- types/wordlists/wordlist-owl.d.ts.map | 2 +- 348 files changed, 2784 insertions(+), 2536 deletions(-) create mode 100644 lib.commonjs/_tests/test-providers-send.js create mode 100644 lib.commonjs/_tests/test-providers-send.js.map create mode 100644 lib.commonjs/_tests/test-utils-units.js create mode 100644 lib.commonjs/_tests/test-utils-units.js.map create mode 100644 lib.commonjs/_tests/test-utils-utf8.js create mode 100644 lib.commonjs/_tests/test-utils-utf8.js.map create mode 100644 lib.commonjs/providers/plugin-fallback.js create mode 100644 lib.commonjs/providers/plugin-fallback.js.map create mode 100644 lib.esm/_tests/test-providers-send.js create mode 100644 lib.esm/_tests/test-providers-send.js.map create mode 100644 lib.esm/_tests/test-utils-units.js create mode 100644 lib.esm/_tests/test-utils-units.js.map create mode 100644 lib.esm/_tests/test-utils-utf8.js create mode 100644 lib.esm/_tests/test-utils-utf8.js.map create mode 100644 lib.esm/providers/plugin-fallback.js create mode 100644 lib.esm/providers/plugin-fallback.js.map create mode 100644 types/providers/plugin-fallback.d.ts create mode 100644 types/providers/plugin-fallback.d.ts.map diff --git a/lib.commonjs/_tests/create-provider.js b/lib.commonjs/_tests/create-provider.js index 74aa65aa5..a927b3697 100644 --- a/lib.commonjs/_tests/create-provider.js +++ b/lib.commonjs/_tests/create-provider.js @@ -63,23 +63,23 @@ const ProviderCreators = [ } }, */ - /* - { - name: "FallbackProvider", - networks: ethNetworks, - create: function(network: string) { - const providers: Array = []; - for (const creator of ProviderCreators) { - if (creator.name === "FallbackProvider") { continue; } - if (creator.networks.indexOf(network) >= 0) { - const provider = creator.create(network); - if (provider) { providers.push(provider); } - } + { + name: "FallbackProvider", + networks: ethNetworks, + create: function (network) { + const providers = []; + for (const providerName of ["AlchemyProvider", "AnkrProvider", "EtherscanProvider", "InfuraProvider"]) { + const provider = getProvider(providerName, network); + if (provider) { + providers.push(provider); } - return new FallbackProvider(providers); } - }, - */ + if (providers.length === 0) { + throw new Error("UNSUPPORTED NETWORK"); + } + return new index_js_1.FallbackProvider(providers); + } + }, ]; exports.providerNames = Object.freeze(ProviderCreators.map((c) => (c.name))); function getCreator(provider) { diff --git a/lib.commonjs/_tests/create-provider.js.map b/lib.commonjs/_tests/create-provider.js.map index c22728781..3037c9927 100644 --- a/lib.commonjs/_tests/create-provider.js.map +++ b/lib.commonjs/_tests/create-provider.js.map @@ -1 +1 @@ -{"version":3,"file":"create-provider.js","sourceRoot":"","sources":["../../src.ts/_tests/create-provider.ts"],"names":[],"mappings":";;;AAAA,0CAUqB;AAQpB,CAAC;AAEF,MAAM,WAAW,GAAG,CAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,CAAE,CAAC;AACvD,gDAAgD;AAEhD,MAAM,gBAAgB,GAA2B;IAC7C;QACI,IAAI,EAAE,iBAAiB;QACvB,QAAQ,EAAE,WAAW;QACrB,MAAM,EAAE,UAAS,OAAe;YAC5B,OAAO,IAAI,0BAAe,CAAC,OAAO,EAAE,kCAAkC,CAAC,CAAC;QAC5E,CAAC;KACJ;IACD;QACI,IAAI,EAAE,cAAc;QACpB,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,CAAE,OAAO,EAAE,UAAU,CAAE,CAAC;QACrD,MAAM,EAAE,UAAS,OAAe;YAC5B,OAAO,IAAI,uBAAY,CAAC,OAAO,CAAC,CAAC;QACrC,CAAC;KACJ;IACD;QACI,IAAI,EAAE,oBAAoB;QAC1B,QAAQ,EAAE,CAAE,SAAS,EAAE,SAAS,CAAE;QAClC,MAAM,EAAE,UAAS,OAAe;YAC5B,OAAO,IAAI,6BAAkB,CAAC,OAAO,CAAC,CAAC;QAC3C,CAAC;KACJ;IACD;QACI,IAAI,EAAE,mBAAmB;QACzB,QAAQ,EAAE,WAAW;QACrB,MAAM,EAAE,UAAS,OAAe;YAC5B,OAAO,IAAI,4BAAiB,CAAC,OAAO,EAAE,oCAAoC,CAAC,CAAC;QAChF,CAAC;KACJ;IACD;QACI,IAAI,EAAE,gBAAgB;QACtB,QAAQ,EAAE,WAAW;QACrB,MAAM,EAAE,UAAS,OAAe;YAC5B,OAAO,IAAI,yBAAc,CAAC,OAAO,EAAE,k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,EAAE;YAAE,MAAM,KAAK,CAAC;SAAE;KAC5D;IACD,OAAO,IAAI,CAAC;AAChB,CAAC;AARD,kCAQC;AAED,SAAgB,aAAa,CAAC,QAAgB,EAAE,OAAe;IAC3D,MAAM,OAAO,GAAG,UAAU,CAAC,QAAQ,CAAC,CAAC;IACrC,OAAO,CAAC,OAAO,IAAI,IAAI,CAAC,CAAC;AAC7B,CAAC;AAHD,sCAGC;AAED,SAAgB,OAAO,CAAC,OAAe;IACnC,MAAM,QAAQ,GAAG,WAAW,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC;IACxD,IAAI,QAAQ,IAAI,IAAI,EAAE;QAAE,MAAM,IAAI,KAAK,CAAC,wBAAyB,OAAQ,EAAE,CAAC,CAAC;KAAE;IAC/E,OAAO,QAAQ,CAAC;AACpB,CAAC;AAJD,0BAIC"} \ No newline at end of file +{"version":3,"file":"create-provider.js","sourceRoot":"","sources":["../../src.ts/_tests/create-provider.ts"],"names":[],"mappings":";;;AAAA,0CAUqB;AAQpB,CAAC;AAEF,MAAM,WAAW,GAAG,CAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,CAAE,CAAC;AACvD,gDAAgD;AAEhD,MAAM,gBAAgB,GAA2B;IAC7C;QACI,IAAI,EAAE,iBAAiB;QACvB,QAAQ,EAAE,WAAW;QACrB,MAAM,EAAE,UAAS,OAAe;YAC5B,OAAO,IAAI,0BAAe,CAAC,OAAO,EAAE,kCAAkC,CAAC,CAAC;QAC5E,CAAC;KACJ;IACD;QACI,IAAI,EAAE,cAAc;QACpB,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,CAAE,OAAO,EAAE,UAAU,CAAE,CAAC;QACrD,MAAM,EAAE,UAAS,OAAe;YAC5B,OAAO,IAAI,uBAAY,CAAC,OAAO,CAAC,CAAC;QACrC,CAAC;KACJ;IACD;QACI,IAAI,EAAE,oBAAoB;QAC1B,QAAQ,EAAE,CAAE,SAAS,EAAE,SAAS,CAAE;QAClC,MAAM,EAA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AG,WAAW,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC;IACxD,IAAI,QAAQ,IAAI,IAAI,EAAE;QAAE,MAAM,IAAI,KAAK,CAAC,wBAAyB,OAAQ,EAAE,CAAC,CAAC;KAAE;IAC/E,OAAO,QAAQ,CAAC;AACpB,CAAC;AAJD,0BAIC"} \ No newline at end of file diff --git a/lib.commonjs/_tests/test-contract.js b/lib.commonjs/_tests/test-contract.js index 37928a119..51c0066e1 100644 --- a/lib.commonjs/_tests/test-contract.js +++ b/lib.commonjs/_tests/test-contract.js @@ -1,39 +1,152 @@ "use strict"; -/* -import assert from "assert"; - -import { connect } from "./create-provider.js"; - -import { Contract } from "../index.js"; - -describe("Test Contract", function() { - it("tests contract @TODO: expand", async function() { - const provider = connect("mainnet"); - - const contract = new Contract("dai.tokens.ethers.eth", [ - "function balanceOf(address) view returns (uint)" - ], provider); - - assert.equal(await contract.balanceOf("ricmoo.firefly.eth"), BigInt("6015089439794538201631")); +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const assert_1 = __importDefault(require("assert")); +const create_provider_js_1 = require("./create-provider.js"); +const index_js_1 = require("../index.js"); +describe("Test Contract", function () { + const addr = "0x99417252Aad7B065940eBdF50d665Fb8879c5958"; + const abi = [ + "error CustomError1(uint256 code, string message)", + "event EventUint256(uint256 indexed value)", + "event EventAddress(address indexed value)", + "event EventString(string value)", + "event EventBytes(bytes value)", + "function testCustomError1(bool pass, uint code, string calldata message) pure returns (uint256)", + "function testErrorString(bool pass, string calldata message) pure returns (uint256)", + "function testPanic(uint256 code) returns (uint256)", + "function testEvent(uint256 valueUint256, address valueAddress, string valueString, bytes valueBytes) public", + "function testCallAdd(uint256 a, uint256 b) pure returns (uint256 result)" + ]; + it("tests contract calls", async function () { + this.timeout(10000); + const provider = (0, create_provider_js_1.getProvider)("InfuraProvider", "goerli"); + const contract = new index_js_1.Contract(addr, abi, provider); + assert_1.default.equal(await contract.testCallAdd(4, 5), BigInt(9), "testCallAdd(4, 5)"); + assert_1.default.equal(await contract.testCallAdd(6, 0), BigInt(6), "testCallAdd(6, 0)"); + }); + it("tests events", async function () { + this.timeout(60000); + const provider = (0, create_provider_js_1.getProvider)("InfuraProvider", "goerli"); + assert_1.default.ok(provider); + const contract = new index_js_1.Contract(addr, abi, provider); + const signer = new index_js_1.Wallet((process.env.FAUCET_PRIVATEKEY), provider); + const contractSigner = contract.connect(signer); + const vUint256 = 42; + const vAddrName = "ethers.eth"; + const vAddr = "0x228568EA92aC5Bc281c1E30b1893735c60a139F1"; + const vString = "Hello"; + const vBytes = "0x12345678"; + let hash = null; + // Test running a listener for a specific event + const specificEvent = new Promise((resolve, reject) => { + contract.on("EventUint256", async (value, event) => { + // Triggered by someone else + if (hash == null || hash !== event.log.transactionHash) { + return; + } + try { + assert_1.default.equal(event.filter, "EventUint256", "event.filter"); + assert_1.default.equal(event.fragment.name, "EventUint256", "event.fragment.name"); + assert_1.default.equal(event.log.address, addr, "event.log.address"); + assert_1.default.equal(event.args.length, 1, "event.args.length"); + assert_1.default.equal(event.args[0], BigInt(42), "event.args[0]"); + const count = await contract.listenerCount("EventUint256"); + await event.removeListener(); + assert_1.default.equal(await contract.listenerCount("EventUint256"), count - 1, "decrement event count"); + resolve(null); + } + catch (e) { + event.removeListener(); + reject(e); + } + }); + }); + // Test running a listener on all (i.e. "*") events + const allEvents = new Promise((resolve, reject) => { + const waitingFor = { + EventUint256: vUint256, + EventAddress: vAddr, + EventString: vString, + EventBytes: vBytes + }; + contract.on("*", (event) => { + // Triggered by someone else + if (hash == null || hash !== event.log.transactionHash) { + return; + } + try { + const name = event.eventName; + assert_1.default.equal(event.args[0], waitingFor[name], `${name}`); + delete waitingFor[name]; + if (Object.keys(waitingFor).length === 0) { + event.removeListener(); + resolve(null); + } + } + catch (error) { + reject(error); + } + }); + }); + // Send a transaction to trigger some events + const tx = await contractSigner.testEvent(vUint256, vAddr, vString, vBytes); + hash = tx.hash; + const checkEvent = (filter, event) => { + const values = { + EventUint256: vUint256, + EventString: vString, + EventAddress: vAddr, + EventBytes: vBytes + }; + assert_1.default.ok(event instanceof index_js_1.EventLog, `queryFilter(${filter}):isEventLog`); + const name = event.eventName; + assert_1.default.equal(event.address, addr, `queryFilter(${filter}):address`); + assert_1.default.equal(event.args[0], values[name], `queryFilter(${filter}):args[0]`); + }; + const checkEventFilter = async (filter) => { + const events = (await contract.queryFilter(filter, -10)).filter((e) => (e.transactionHash === hash)); + assert_1.default.equal(events.length, 1, `queryFilter(${filter}).length`); + checkEvent(filter, events[0]); + return events[0]; + }; + const receipt = await tx.wait(); + // Check the logs in the receipt + for (const log of receipt.logs) { + checkEvent("receipt", log); + } + // Various options for queryFilter + await checkEventFilter("EventUint256"); + await checkEventFilter(["EventUint256"]); + await checkEventFilter([["EventUint256"]]); + await checkEventFilter("EventUint256(uint)"); + await checkEventFilter(["EventUint256(uint)"]); + await checkEventFilter([["EventUint256(uint)"]]); + await checkEventFilter([["EventUint256", "EventUint256(uint)"]]); + await checkEventFilter("0x85c55bbb820e6d71c71f4894e57751de334b38c421f9c170b0e66d32eafea337"); + // Query by Event + await checkEventFilter(contract.filters.EventUint256); + // Query by Deferred Topic Filter; address + await checkEventFilter(contract.filters.EventUint256(vUint256)); + // Query by Deferred Topic Filter; address + await checkEventFilter(contract.filters.EventAddress(vAddr)); + // Query by Deferred Topic Filter; ENS name => address + await checkEventFilter(contract.filters.EventAddress(vAddrName)); + // Multiple Methods + { + const filter = [["EventUint256", "EventString"]]; + const events = (await contract.queryFilter(filter, -10)).filter((e) => (e.transactionHash === hash)); + assert_1.default.equal(events.length, 2, `queryFilter(${filter}).length`); + for (const event of events) { + checkEvent(filter, event); + } + } + await specificEvent; + await allEvents; }); }); -*/ -/* -import { Typed } from "../abi/index.js"; -import * as providers from "../providers/index.js"; - -import { Contract } from "../index.js"; - -import { log } from "./utils.js"; -*/ -//import type { Addressable } from "@ethersproject/address"; -//import type { BigNumberish } from "@ethersproject/logger"; -/* -import type { - ConstantContractMethod, ContractMethod, ContractEvent -} from "../index.js"; -*/ -// @TODO /* describe("Test Contract Calls", function() { it("finds typed methods", async function() { @@ -47,8 +160,7 @@ describe("Test Contract Calls", function() { contract["foo(string)"].fragment }); }); -*/ -/* + describe("Test Contract Interface", function() { it("builds contract interfaces", async function() { this.timeout(60000); @@ -104,15 +216,4 @@ describe("Test Contract Interface", function() { }); }); */ -/* -describe("Test Contract Calls", function() { - it("calls ERC-20 methods", async function() { - const provider = new providers.AnkrProvider(); - const contract = new Contract("0xC18360217D8F7Ab5e7c516566761Ea12Ce7F9D72", [ - "function balanceOf(address owner) view returns (uint)", - ], provider); - log(this, `balance: ${ await contract.balanceOf("0x5555763613a12D8F3e73be831DFf8598089d3dCa") }`); - }); -}); -*/ //# sourceMappingURL=test-contract.js.map \ No newline at end of file diff --git a/lib.commonjs/_tests/test-contract.js.map b/lib.commonjs/_tests/test-contract.js.map index 9528a4544..4d11c759b 100644 --- a/lib.commonjs/_tests/test-contract.js.map +++ b/lib.commonjs/_tests/test-contract.js.map @@ -1 +1 @@ -{"version":3,"file":"test-contract.js","sourceRoot":"","sources":["../../src.ts/_tests/test-contract.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;EAkBE;AACF;;;;;;;EAOE;AACF,4DAA4D;AAC5D,4DAA4D;AAE5D;;;;EAIE;AAEF,QAAQ;AACR;;;;;;;;;;;;;EAaE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuDE;AACF;;;;;;;;;;EAUE"} \ No newline at end of file +{"version":3,"file":"test-contract.js","sourceRoot":"","sources":["../../src.ts/_tests/test-contract.ts"],"names":[],"mappings":";;;;;AACA,oDAA4B;AAE5B,6DAAmD;AAEnD,0CAAyD;AAGzD,QAAQ,CAAC,eAAe,EAAE;IACtB,MAAM,IAAI,GAAG,4CAA4C,CAAC;IAC1D,M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AAW,CAAC,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,eAAe,KAAK,IAAI,CAAC,CAAC,CAAC;YACrG,gBAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,eAAgB,MAAO,UAAU,CAAC,CAAC;YAElE,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE;gBAAE,UAAU,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;aAAE;SAC7D;QAED,MAAM,aAAa,CAAC;QACpB,MAAM,SAAS,CAAC;IACpB,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC;AAGH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoEE"} \ No newline at end of file diff --git a/lib.commonjs/_tests/test-hash.js b/lib.commonjs/_tests/test-hash.js index 565cbd6bd..ae6674659 100644 --- a/lib.commonjs/_tests/test-hash.js +++ b/lib.commonjs/_tests/test-hash.js @@ -149,5 +149,20 @@ describe("Test Solidity Hash functions", function () { assert_1.default.equal((0, index_js_1.solidityPackedSha256)(test.types, test.values), test.sha256); }); } + const badTypes = [ + { types: ["uint5"], values: [1] }, + { types: ["bytes0"], values: ["0x"] }, + { types: ["blorb"], values: [false] }, + ]; + for (const { types, values } of badTypes) { + it("fails on invalid type", function () { + assert_1.default.throws(function () { + const result = (0, index_js_1.solidityPacked)(types, values); + console.log(result); + }, function (error) { + return ((0, index_js_1.isError)(error, "INVALID_ARGUMENT") && error.argument === "type"); + }); + }); + } }); //# sourceMappingURL=test-hash.js.map \ No newline at end of file diff --git a/lib.commonjs/_tests/test-hash.js.map b/lib.commonjs/_tests/test-hash.js.map index 271be9c8c..dae0bd180 100644 --- a/lib.commonjs/_tests/test-hash.js.map +++ b/lib.commonjs/_tests/test-hash.js.map @@ -1 +1 @@ -{"version":3,"file":"test-h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AAC,KAAK,EAAE,kBAAkB,CAAC,IAAI,KAAK,CAAC,QAAQ,KAAK,MAAM,CAAC,CAAC;YAC7E,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;KACN;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/lib.commonjs/_tests/test-providers-send.js b/lib.commonjs/_tests/test-providers-send.js new file mode 100644 index 000000000..8596145ca --- /dev/null +++ b/lib.commonjs/_tests/test-providers-send.js @@ -0,0 +1,45 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const assert_1 = __importDefault(require("assert")); +const index_js_1 = require("../index.js"); +const create_provider_js_1 = require("./create-provider.js"); +describe("Sends Transactions", function () { + const cleanup = []; + after(function () { + for (const func of cleanup) { + func(); + } + }); + const wallet = new index_js_1.Wallet((process.env.FAUCET_PRIVATEKEY)); + const networkName = "goerli"; + for (const providerName of create_provider_js_1.providerNames) { + const provider = (0, create_provider_js_1.getProvider)(providerName, networkName); + if (provider == null) { + continue; + } + // Shutdown socket-based provider, otherwise its socket will prevent + // this process from exiting + if (provider.destroy) { + cleanup.push(() => { provider.destroy(); }); + } + it(`tests sending: ${providerName}`, async function () { + this.timeout(60000); + const w = wallet.connect(provider); + const dustAddr = index_js_1.Wallet.createRandom().address; + const tx = await w.sendTransaction({ + to: dustAddr, + value: 42, + type: 2 + }); + //const receipt = + await provider.waitForTransaction(tx.hash); //tx.wait(); + //console.log(receipt); + const balance = await provider.getBalance(dustAddr); + assert_1.default.equal(balance, BigInt(42), "target balance after send"); + }); + } +}); +//# sourceMappingURL=test-providers-send.js.map \ No newline at end of file diff --git a/lib.commonjs/_tests/test-providers-send.js.map b/lib.commonjs/_tests/test-providers-send.js.map new file mode 100644 index 000000000..ffa6f5e29 --- /dev/null +++ b/lib.commonjs/_tests/test-providers-send.js.map @@ -0,0 +1 @@ +{"version":3,"file":"test-providers-send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CAAC,IAAI,CAAC,CAAC,CAAC,YAAY;YACxD,uBAAuB;YAEvB,MAAM,OAAO,GAAG,MAAM,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;YACpD,gBAAM,CAAC,KAAK,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,CAAC,EAAE,2BAA2B,CAAC,CAAC;QACnE,CAAC,CAAC,CAAC;KACN;AAGL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/lib.commonjs/_tests/test-utils-units.js b/lib.commonjs/_tests/test-utils-units.js new file mode 100644 index 000000000..b2e5f738b --- /dev/null +++ b/lib.commonjs/_tests/test-utils-units.js @@ -0,0 +1,68 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const assert_1 = __importDefault(require("assert")); +const utils_js_1 = require("./utils.js"); +const index_js_1 = require("../index.js"); +describe("Tests unit conversion", function () { + const tests = (0, utils_js_1.loadTests)("units"); + const units = [ + { unit: "ether", format: "ether_format", decimals: 18 }, + { unit: "kwei", format: "kwei_format", decimals: 3 }, + { unit: "mwei", format: "mwei_format", decimals: 6 }, + { unit: "gwei", format: "gwei_format", decimals: 9 }, + { unit: "szabo", format: "szabo_format", decimals: 12 }, + { unit: "finney", format: "finney_format", decimals: 15 }, + ]; + for (const { unit, format, decimals } of units) { + for (const test of tests) { + const str = (test[format]); + if (str == null) { + continue; + } + it(`converts wei to ${unit} string: ${test.name}`, function () { + const wei = BigInt(test.wei); + if (decimals === 18) { + assert_1.default.equal((0, index_js_1.formatEther)(wei), str, "formatEther"); + assert_1.default.equal((0, index_js_1.formatUnits)(wei), str, "formatUnits"); + } + assert_1.default.equal((0, index_js_1.formatUnits)(wei, unit), str, `formatUnits(${unit})`); + assert_1.default.equal((0, index_js_1.formatUnits)(wei, decimals), str, `formatUnits(${decimals})`); + }); + } + for (const test of tests) { + const str = (test[format]); + if (str == null) { + continue; + } + it(`converts ${format} string to wei: ${test.name}`, function () { + const wei = BigInt(test.wei); + if (decimals === 18) { + assert_1.default.equal((0, index_js_1.parseEther)(str), wei, "parseEther"); + assert_1.default.equal((0, index_js_1.parseUnits)(str), wei, "parseUnits"); + } + assert_1.default.equal((0, index_js_1.parseUnits)(str, unit), wei, `parseUnits(${unit})`); + assert_1.default.equal((0, index_js_1.parseUnits)(str, decimals), wei, `parseUnits(${decimals})`); + }); + } + } +}); +describe("Tests bad unit conversion", function () { + it("fails to convert non-string value", function () { + assert_1.default.throws(() => { + (0, index_js_1.parseUnits)(3, "ether"); + }, (error) => { + return error.message.startsWith("value must be a string"); + }); + }); + it("fails to convert unknown unit", function () { + assert_1.default.throws(() => { + (0, index_js_1.parseUnits)("3", "foobar"); + }, (error) => { + return error.message.startsWith("invalid unit"); + }); + }); +}); +//# sourceMappingURL=test-utils-units.js.map \ No newline at end of file diff --git a/lib.commonjs/_tests/test-utils-units.js.map b/lib.commonjs/_tests/test-utils-units.js.map new file mode 100644 index 000000000..401236fa7 --- /dev/null +++ b/lib.commonjs/_tests/test-utils-units.js.map @@ -0,0 +1 @@ +{"version":3,"file":"test-utils-units.js","sourceRoot":"","sources":["../../src.ts/_tests/test-utils-units.ts"],"names":[],"mappings":";;;;;AAAA,oDAA4B;AAE5B,yCAAuC;AAEvC,0CAA+E;AAK/E,QAAQ,CAAC,uBAAuB,EAAE;IAC9B,MAAM,KAAK,GAAG,IAAA,oBAAS,EAAe,OAAO,CAAC,CAAC;IAE/C,MAAM,KAAK,GAAG;QACV,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,QAAQ,EAAE,EAAE,EAAE;QACvD,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,CAAC,EAAE;QACpD,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,CAAC,EAAE;QACpD,EAAE,IAAI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CAAC;QAC9B,CAAC,EAAE,CAAC,KAAU,EAAE,EAAE;YACd,OAAO,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC;QACpD,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/lib.commonjs/_tests/test-utils-utf8.js b/lib.commonjs/_tests/test-utils-utf8.js new file mode 100644 index 000000000..8c290c9d4 --- /dev/null +++ b/lib.commonjs/_tests/test-utils-utf8.js @@ -0,0 +1,131 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const assert_1 = __importDefault(require("assert")); +const index_js_1 = require("../index.js"); +describe("Tests UTF-8 bad strings", function () { + const tests = [ + { + name: "unexpected continue", + bytes: new Uint8Array([0x41, 0x80, 0x42, 0x43]), + ignore: "ABC", + replace: "A\ufffdBC", + error: "UNEXPECTED_CONTINUE" + }, + { + name: "bad prefix", + bytes: new Uint8Array([0x41, 0xf8, 0x42, 0x43]), + ignore: "ABC", + replace: "A\ufffdBC", + error: "BAD_PREFIX" + }, + { + name: "bad prefix (multiple)", + bytes: new Uint8Array([0x41, 0xf8, 0x88, 0x88, 0x42, 0x43]), + ignore: "ABC", + replace: "A\ufffdBC", + error: "BAD_PREFIX" + }, + { + name: "OVERRUN", + bytes: new Uint8Array([0x41, 0x42, 0xe2, 0x82 /* 0xac */]), + ignore: "AB", + replace: "AB\ufffd", + error: "OVERRUN" + }, + { + name: "missing continue", + bytes: new Uint8Array([0x41, 0x42, 0xe2, 0xe2, 0x82, 0xac, 0x43]), + ignore: "AB\u20acC", + replace: "AB\ufffd\u20acC", + error: "MISSING_CONTINUE" + }, + { + name: "out-of-range", + bytes: new Uint8Array([0x41, 0x42, 0xf7, 0xbf, 0xbf, 0xbf, 0x43]), + ignore: "ABC", + replace: "AB\ufffdC", + error: "OUT_OF_RANGE" + }, + { + name: "UTF-16 surrogate (low)", + bytes: new Uint8Array([0x41, 0x42, 0xed, 0xa0, 0x80, 0x43]), + ignore: "ABC", + replace: "AB\ufffdC", + error: "UTF16_SURROGATE" + }, + { + name: "UTF-16 surrogate (high)", + bytes: new Uint8Array([0x41, 0x42, 0xed, 0xbf, 0xbf, 0x43]), + ignore: "ABC", + replace: "AB\ufffdC", + error: "UTF16_SURROGATE" + }, + { + name: "overlong", + bytes: new Uint8Array([0xf0, 0x82, 0x82, 0xac]), + ignore: "", + replace: "\u20ac", + error: "OVERLONG" + } + ]; + for (const { name, bytes, ignore, replace, error } of tests) { + it(`correctly handles ${name}: replace strategy`, function () { + const result = (0, index_js_1.toUtf8String)(bytes, index_js_1.Utf8ErrorFuncs.replace); + assert_1.default.equal(result, replace); + }); + it(`correctly handles ${name}: ignore strategy`, function () { + const result = (0, index_js_1.toUtf8String)(bytes, index_js_1.Utf8ErrorFuncs.ignore); + assert_1.default.equal(result, ignore); + }); + it(`correctly handles ${name}: error strategy`, function () { + assert_1.default.throws(() => { + const result = (0, index_js_1.toUtf8String)(bytes); + console.log(result); + }, (e) => { + return (e.message.indexOf(error) >= 0); + }); + }); + } + it("fails to get UTF-8 bytes from incomplete surrogate", function () { + assert_1.default.throws(() => { + const text = String.fromCharCode(0xd800); + ; + const result = (0, index_js_1.toUtf8Bytes)(text); + console.log(result); + }, (error) => { + return (error.message.startsWith("invalid surrogate pair")); + }); + }); + it("fails to get UTF-8 bytes from invalid surrogate pair", function () { + assert_1.default.throws(() => { + const text = String.fromCharCode(0xd800, 0xdbff); + ; + const result = (0, index_js_1.toUtf8Bytes)(text); + console.log(result); + }, (error) => { + return (error.message.startsWith("invalid surrogate pair")); + }); + }); +}); +describe("Tests UTF-8 bad strings", function () { + const tests = [ + { + name: "the Euro symbol", + text: "AB\u20acC", + codepoints: [0x41, 0x42, 0x20ac, 0x43] + }, + ]; + for (const { name, text, codepoints } of tests) { + it(`expands strings to codepoints: ${name}`, function () { + const result = (0, index_js_1.toUtf8CodePoints)(text); + assert_1.default.equal(result.length, codepoints.length, "codepoints.length"); + for (let i = 0; i < result.length; i++) { + assert_1.default.equal(result[i], codepoints[i], `codepoints[${i}]`); + } + }); + } +}); +//# sourceMappingURL=test-utils-utf8.js.map \ No newline at end of file diff --git a/lib.commonjs/_tests/test-utils-utf8.js.map b/lib.commonjs/_tests/test-utils-utf8.js.map new file mode 100644 index 000000000..9dc8e868d --- /dev/null +++ b/lib.commonjs/_tests/test-utils-utf8.js.map @@ -0,0 +1 @@ +{"version":3,"file":"test-utils-utf8.js","sourceRoot":"","sources":["../../src.ts/_tests/test-utils-utf8.ts"],"names":[],"mappings":";;;;;AAAA,oDAA4B;AAE5B,0CAGqB;AAgBrB,QAAQ,CAAC,yBAAyB,EAAE;IAEhC,MAAM,KAAK,GAA6B;QACpC;YACI,IAAI,EAAE,qBAAqB;YAC3B,KAAK,EAAE,IAAI,UAAU,CAAC,CAAE,IAAI,EAAG,IAAI,EAAG,IAAI,EAAG,IAAI,CAAE,CAAC;YACpD,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,WAAW;YACpB,KAAK,EAAE,qBAAqB;SAC/B;QACD;YACI,IAAI,EAAE,YAAY;YAClB,KAAK,EAAE,IAAI,UAAU,CAAC,CAAE,IAAI,EAAG,IAAI,EAAG,IAAI,EAAG,IAAI,CAAE,CAAC;YACpD,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,WAAW;YACpB,KAAK,EAAE,YAAY;SACtB;QACD;YACI,IAAI,EAAE,uBAAuB;YAC7B,KAAK,EAAE,IAAI,UAAU,CAAC,CAAE,IAAI,EAAG,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAG,IAAI,CAAE,CAAC;YAC/D,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,WAAW;YACpB,KAAK,EAAE,YAAY;SACtB;QACD;YACI,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,IAAI,UAAU,CAAC,CAAE,IAA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AM,EAAE,CAAC,EAAE,EAAE;gBACpC,gBAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,cAAe,CAAE,GAAG,CAAC,CAAC;aAChE;QACL,CAAC,CAAC,CAAC;KACN;AAEL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/lib.commonjs/_tests/types.js.map b/lib.commonjs/_tests/types.js.map index 692244f98..2480f7ffc 100644 --- a/lib.commonjs/_tests/types.js.map +++ b/lib.commonjs/_tests/types.js.map @@ -1 +1 @@ -{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src.ts/_tests/types.ts"],"names":[],"mappings":";;AAyOC,CAAC"} \ No newline at end of file +{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src.ts/_tests/types.ts"],"names":[],"mappings":";;AA2PC,CAAC"} \ No newline at end of file diff --git a/lib.commonjs/_tests/utils.js b/lib.commonjs/_tests/utils.js index b7e33f2d4..46c58a35b 100644 --- a/lib.commonjs/_tests/utils.js +++ b/lib.commonjs/_tests/utils.js @@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); -exports.stats = exports.Stats = exports.retryIt = exports.log = exports.loadTests = void 0; +exports.retryIt = exports.log = exports.loadTests = void 0; const fs_1 = __importDefault(require("fs")); const path_1 = __importDefault(require("path")); const zlib_1 = __importDefault(require("zlib")); @@ -42,6 +42,7 @@ async function stall(duration) { } const ATTEMPTS = 5; async function retryIt(name, func) { + //const errors: Array = [ ]; it(name, async function () { this.timeout(ATTEMPTS * 5000); for (let i = 0; i < ATTEMPTS; i++) { @@ -59,12 +60,14 @@ async function retryIt(name, func) { throw error; } else { + //errors.push(error); if (i === ATTEMPTS - 1) { - exports.stats.pushRetry(i, name, error); + throw error; + //stats.pushRetry(i, name, error); } else { await stall(500 * (1 << i)); - exports.stats.pushRetry(i, name, null); + //stats.pushRetry(i, name, null); } } } @@ -74,54 +77,58 @@ async function retryIt(name, func) { }); } exports.retryIt = retryIt; -const _guard = {}; -class Stats { - #stats; - constructor(guard) { - if (guard !== _guard) { - throw new Error("private constructor"); - } - this.#stats = []; +/* +export interface StatSet { + name: string; + retries: Array<{ message: string, error: null | Error }>; +} + +const _guard = { }; + +export class Stats { +// #stats: Array; + + constructor(guard: any) { + if (guard !== _guard) { throw new Error("private constructor"); } +// this.#stats = [ ]; } - #currentStats() { - if (this.#stats.length === 0) { - throw new Error("no active stats"); - } + + #currentStats(): StatSet { + if (this.#stats.length === 0) { throw new Error("no active stats"); } return this.#stats[this.#stats.length - 1]; } - pushRetry(attempt, line, error) { + + pushRetry(attempt: number, line: string, error: null | Error): void { const { retries } = this.#currentStats(); - if (attempt > 0) { - retries.pop(); - } + + if (attempt > 0) { retries.pop(); } if (retries.length < 100) { retries.push({ - message: `${attempt + 1} failures: ${line}`, + message: `${ attempt + 1 } failures: ${ line }`, error }); } } - start(name) { - this.#stats.push({ name, retries: [] }); + + start(name: string): void { + this.#stats.push({ name, retries: [ ] }); } - end(context) { + + end(context?: any): void { let log = console.log.bind(console); - if (context && typeof (context._ethersLog) === "function") { + if (context && typeof(context._ethersLog) === "function") { log = context._ethersLog; } const { name, retries } = this.#currentStats(); - if (retries.length === 0) { - return; - } - log(`Warning: The following tests required retries (${name})`); + if (retries.length === 0) { return; } + log(`Warning: The following tests required retries (${ name })`); retries.forEach(({ error, message }) => { log(" " + message); - if (error) { - log(error); - } + if (error) { log(error); } }); } } -exports.Stats = Stats; -exports.stats = new Stats(_guard); + +export const stats = new Stats(_guard); +*/ //# sourceMappingURL=utils.js.map \ No newline at end of file diff --git a/lib.commonjs/_tests/utils.js.map b/lib.commonjs/_tests/utils.js.map index 13ab27828..d9c1863e9 100644 --- a/lib.commonjs/_tests/utils.js.map +++ b/lib.commonjs/_tests/utils.js.map @@ -1 +1 @@ -{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src.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oBAErB,IAAI,CAAC,KAAK,QAAQ,GAAG,CAAC,EAAE;wBACpB,MAAM,KAAK,CAAC;wBACZ,kCAAkC;qBACrC;yBAAM;wBACH,MAAM,KAAK,CAAC,GAAG,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;wBAC5B,iCAAiC;qBACpC;iBACJ;aACJ;SACJ;QAED,oBAAoB;QACpB,MAAM,IAAI,KAAK,CAAC,gBAAiB,QAAS,cAAe,IAAK,EAAE,CAAC,CAAC;IACtE,CAAC,CAAC,CAAC;AACP,CAAC;AApCD,0BAoCC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqDE"} \ No newline at end of file diff --git a/lib.commonjs/abi/abi-coder.js b/lib.commonjs/abi/abi-coder.js index cb07d6698..631682c55 100644 --- a/lib.commonjs/abi/abi-coder.js +++ b/lib.commonjs/abi/abi-coder.js @@ -42,21 +42,17 @@ class AbiCoder { let match = param.type.match(paramTypeNumber); if (match) { let size = parseInt(match[2] || "256"); - if (size === 0 || size > 256 || (size % 8) !== 0) { - (0, index_js_1.throwArgumentError)("invalid " + match[1] + " bit length", "param", param); - } + (0, index_js_1.assertArgument)(size !== 0 && size <= 256 && (size % 8) === 0, "invalid " + match[1] + " bit length", "param", param); return new number_js_1.NumberCoder(size / 8, (match[1] === "int"), param.name); } // bytes[0-9]+ match = param.type.match(paramTypeBytes); if (match) { let size = parseInt(match[1]); - if (size === 0 || size > 32) { - (0, index_js_1.throwArgumentError)("invalid bytes length", "param", param); - } + (0, index_js_1.assertArgument)(size !== 0 && size <= 32, "invalid bytes length", "param", param); return new fixed_bytes_js_1.FixedBytesCoder(size, param.name); } - return (0, index_js_1.throwArgumentError)("invalid type", "type", param.type); + (0, index_js_1.assertArgument)(false, "invalid type", "type", param.type); } getDefaultValue(types) { const coders = types.map((type) => this.#getCoder(fragments_js_1.ParamType.from(type))); diff --git a/lib.commonjs/abi/abi-coder.js.map b/lib.commonjs/abi/abi-coder.js.map index 99ef109a2..a68da138d 100644 --- a/lib.commonjs/abi/abi-coder.js.map +++ b/lib.commonjs/abi/abi-coder.js.map @@ -1 +1 @@ -{"version":3,"file":"abi-coder.js","sourceRoot":"","sources":["../../src.ts/abi/abi-coder.ts"],"names":[],"mappings":";AAAA,mEAAmE;;;AAEnE,gDAA4E;AAE5E,kEAA2E;AAC3E,oDAAmD;AACnD,gDAA+C;AAC/C,oDAAmD;AACnD,gDAA+C;AAC/C,4DAA0D;AAC1D,8CAA6C;AAC7C,kDAAiD;AACjD,kDAAiD;AACjD,gDAA+C;AAC/C,iDAA2C;AAE3C,kDAAiD;AACjD,gDAAiE;AAQjE,MAAM,cAAc,GAAG,IAAI,MAAM,CAAC,iBAAiB,CAAC,CAAC;AACrD,MAAM,eAAe,GAAG,IAAI,MAAM,CAAC,mBAAmB,CAAC,CAAC;AAExD,MAAa,QAAQ;IAEjB,SAAS,CAAC,KAAgB;QACtB,IAAI,KAAK,CAAC,OAAO,EAAE,EAAE;YACjB,OAAO,IAAI,qBAAU,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,aAAa,CAAC,EAAE,KAAK,CAAC,WAAW,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;SAC7F;QAED,IAAI,KAAK,CAAC,OAAO,EAAE,EAAE;YACjB,OAAO,IAAI,qBAAU,CAAC,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;SACrF;QAED,QAAQ,KAAK,CAAC,QAAQ,EAAE;YACpB,KAAK,SAAS;gBACV,OAAO,IAAI,yBAAY,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;YACxC,KAAK,MAAM;gBACP,OAAO,IAAI,yBAAY,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;YACxC,KAAK,QAAQ;gBACT,OAAO,I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ders/abstract-coder.js b/lib.commonjs/abi/coders/abstract-coder.js index 9043a161b..f154b1e68 100644 --- a/lib.commonjs/abi/coders/abstract-coder.js +++ b/lib.commonjs/abi/coders/abstract-coder.js @@ -133,13 +133,7 @@ function checkResultErrors(result) { exports.checkResultErrors = checkResultErrors; function getValue(value) { let bytes = (0, index_js_1.toArray)(value); - if (bytes.length > exports.WordSize) { - (0, index_js_1.throwError)("value out-of-bounds", "BUFFER_OVERRUN", { - buffer: bytes, - length: exports.WordSize, - offset: bytes.length - }); - } + (0, index_js_1.assert)(bytes.length <= exports.WordSize, "value out-of-bounds", "BUFFER_OVERRUN", { buffer: bytes, length: exports.WordSize, offset: bytes.length }); if (bytes.length !== exports.WordSize) { bytes = (0, index_js_1.getBytesCopy)((0, index_js_1.concat)([Padding.slice(bytes.length % exports.WordSize), bytes])); } @@ -165,7 +159,7 @@ class Coder { }); } _throwError(message, value) { - return (0, index_js_1.throwArgumentError)(message, this.localName, value); + (0, index_js_1.assertArgument)(false, message, this.localName, value); } } exports.Coder = Coder; @@ -238,7 +232,7 @@ class Reader { alignedLength = length; } else { - (0, index_js_1.throwError)("data out-of-bounds", "BUFFER_OVERRUN", { + (0, index_js_1.assert)(false, "data out-of-bounds", "BUFFER_OVERRUN", { buffer: (0, index_js_1.getBytesCopy)(this.#data), length: this.#data.length, offset: this.#offset + alignedLength diff --git a/lib.commonjs/abi/coders/abstract-coder.js.map b/lib.commonjs/abi/coders/abstract-coder.js.map index ff6d448c6..996e78777 100644 --- a/lib.commonjs/abi/coders/abstract-coder.js.map +++ b/lib.commonjs/abi/coders/abstract-coder.js.map @@ -1 +1 @@ -{"version":3,"file":"abstract-coder.js","sourceRoot":"","sources":["../../../src.ts/abi/coders/abstract-coder.ts"],"names":[],"mappings":";;;AACA,mDAI8B;AAIjB,QAAA,QAAQ,GAAG,EAAE,CAAC;AAC3B,MAAM,OAAO,GAAG,IAAI,UAAU,CAAC,gBAAQ,CAAC,CAAC;AAEzC,qEAAqE;AACr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ff --git a/lib.commonjs/abi/coders/array.js b/lib.commonjs/abi/coders/array.js index dad17f8aa..62d818237 100644 --- a/lib.commonjs/abi/coders/array.js +++ b/lib.commonjs/abi/coders/array.js @@ -14,30 +14,16 @@ function pack(writer, coders, values) { let unique = {}; arrayValues = coders.map((coder) => { const name = coder.localName; - if (!name) { - (0, index_js_1.throwError)("cannot encode object for signature with missing names", "INVALID_ARGUMENT", { - argument: "values", - info: { coder }, - value: values - }); - } - if (unique[name]) { - (0, index_js_1.throwError)("cannot encode object for signature with duplicate names", "INVALID_ARGUMENT", { - argument: "values", - info: { coder }, - value: values - }); - } + (0, index_js_1.assert)(name, "cannot encode object for signature with missing names", "INVALID_ARGUMENT", { argument: "values", info: { coder }, value: values }); + (0, index_js_1.assert)(unique[name], "cannot encode object for signature with duplicate names", "INVALID_ARGUMENT", { argument: "values", info: { coder }, value: values }); unique[name] = true; return values[name]; }); } else { - (0, index_js_1.throwArgumentError)("invalid tuple value", "tuple", values); - } - if (coders.length !== arrayValues.length) { - (0, index_js_1.throwArgumentError)("types/value length mismatch", "tuple", values); + (0, index_js_1.assertArgument)(false, "invalid tuple value", "tuple", values); } + (0, index_js_1.assertArgument)(coders.length === arrayValues.length, "types/value length mismatch", "tuple", values); let staticWriter = new abstract_coder_js_1.Writer(); let dynamicWriter = new abstract_coder_js_1.Writer(); let updateFuncs = []; @@ -157,13 +143,7 @@ class ArrayCoder extends abstract_coder_js_1.Coder { // slot requires at least 32 bytes for their value (or 32 // bytes as a link to the data). This could use a much // tighter bound, but we are erroring on the side of safety. - if (count * abstract_coder_js_1.WordSize > reader.dataLength) { - (0, index_js_1.throwError)("insufficient data length", "BUFFER_OVERRUN", { - buffer: reader.bytes, - offset: count * abstract_coder_js_1.WordSize, - length: reader.dataLength - }); - } + (0, index_js_1.assert)(count * abstract_coder_js_1.WordSize <= reader.dataLength, "insufficient data length", "BUFFER_OVERRUN", { buffer: reader.bytes, offset: count * abstract_coder_js_1.WordSize, length: reader.dataLength }); } let coders = []; for (let i = 0; i < count; i++) { diff --git a/lib.commonjs/abi/coders/array.js.map b/lib.commonjs/abi/coders/array.js.map index 9b8f61531..cdf046ad5 100644 --- a/lib.commonjs/abi/coders/array.js.map +++ b/lib.commonjs/abi/coders/array.js.map @@ -1 +1 @@ -{"version":3,"file":"array.js","sourceRoot":"","sources":["../../../src.ts/abi/coders/array.ts"],"names":[],"mappings":";;;AAAA,mDAE8B;AAE9B,0CAAoC;AAEpC,2DAAsE;AACtE,iDAAgD;AAKhD,SAAgB,IAAI,CAAC,MAAc,EAAE,MAA4B,EAAE,MAA8C;IAC7G,IAAI,WAAW,GAAe,EAAG,CAAC;IAElC,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE;QACxB,WAAW,GAAG,MAAM,CAAC;KAEvB;SAAM,IAAI,MAAM,IAAI,OAAM,CAAC,MAAM,CAAC,KAAK,QAAQ,EAAE;QAC9C,IAAI,MAAM,GAAkC,EAAG,CAAC;QAEhD,WAAW,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;YAC/B,MAAM,IAAI,GAAG,KAAK,CAAC,SAAS,CAAC;YAC7B,IAAI,CAAC,IAAI,EAAE;gBACP,IAAA,qBAAU,EAAC,uDAAuD,EAAE,kBAAkB,EAAE;oBACpF,QAAQ,EAAE,QAAQ;oBAClB,IAAI,EAAE,EAAE,KAAK,EAAE;oBACf,KAAK,EAAE,MAAM;iBAChB,CAAC,CAAC;aACN;YAED,IAAI,MAAM,CAAC,IAAI,CAAC,EAAE;gBACd,IAAA,qBAAU,EAAC,yDAAyD,EAAE,kBAAkB,EAAE;oBACtF,QAAQ,EAAE,QAAQ;oBAClB,IAAI,EAAE,EAAE,KAAK,EAAE;oBACf,KAAK,EAAE,MAAM;iBAChB,CAAC,CAAC;aACN;YAED,MAAM,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;YAEpB,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC;QACxB,CAAC,CAA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C,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SAAE;QAEnE,OAAO,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;IACvC,CAAC;IAED,MAAM,CAAC,MAAc;QACjB,IAAI,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC;QACxB,IAAI,KAAK,KAAK,CAAC,CAAC,EAAE;YACd,KAAK,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;YAE3B,sDAAsD;YACtD,wDAAwD;YACxD,yDAAyD;YACzD,sDAAsD;YACtD,4DAA4D;YAC5D,IAAA,iBAAM,EAAC,KAAK,GAAG,4BAAQ,IAAI,MAAM,CAAC,UAAU,EAAE,0BAA0B,EACpE,gBAAgB,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,GAAG,4BAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,UAAU,EAAE,CAAC,CAAC;SACxG;QACD,IAAI,MAAM,GAAG,EAAE,CAAC;QAChB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,EAAE,CAAC,EAAE,EAAE;YAAE,MAAM,CAAC,IAAI,CAAC,IAAI,6BAAc,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;SAAE;QAEhF,OAAO,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,CAAC;CACJ;AA9DD,gCA8DC"} \ No newline at end of file diff --git a/lib.commonjs/abi/fragments.js b/lib.commonjs/abi/fragments.js index 24015482e..8e0ba0082 100644 --- a/lib.commonjs/abi/fragments.js +++ b/lib.commonjs/abi/fragments.js @@ -302,9 +302,7 @@ function consumeEoi(tokens) { const regexArrayType = new RegExp(/^(.*)\[([0-9]*)\]$/); function verifyBasicType(type) { const match = type.match(regexType); - if (!match) { - return (0, index_js_1.throwArgumentError)("invalid type", "type", type); - } + (0, index_js_1.assertArgument)(match, "invalid type", "type", type); if (type === "uint") { return "uint256"; } @@ -314,16 +312,12 @@ function verifyBasicType(type) { if (match[2]) { // bytesXX const length = parseInt(match[2]); - if (length === 0 || length > 32) { - (0, index_js_1.throwArgumentError)("invalid bytes length", "type", type); - } + (0, index_js_1.assertArgument)(length !== 0 && length <= 32, "invalid bytes length", "type", type); } else if (match[3]) { // intXX or uintXX const size = parseInt(match[3]); - if (size === 0 || size > 256 || size % 8) { - (0, index_js_1.throwArgumentError)("invalid numeric width", "type", type); - } + (0, index_js_1.assertArgument)(size !== 0 && size <= 256 && (size % 8) === 0, "invalid numeric width", "type", type); } return type; } @@ -575,14 +569,10 @@ class ParamType { return new ParamType(_guard, name, type, baseType, indexed, comps, arrayLength, arrayChildren); } const name = obj.name; - if (name && (typeof (name) !== "string" || !name.match(regexIdentifier))) { - (0, index_js_1.throwArgumentError)("invalid name", "obj.name", name); - } + (0, index_js_1.assertArgument)(!name || (typeof (name) === "string" && name.match(regexIdentifier)), "invalid name", "obj.name", name); let indexed = obj.indexed; if (indexed != null) { - if (!allowIndexed) { - (0, index_js_1.throwArgumentError)("parameter cannot be indexed", "obj.indexed", obj.indexed); - } + (0, index_js_1.assertArgument)(allowIndexed, "parameter cannot be indexed", "obj.indexed", obj.indexed); indexed = !!indexed; } let type = obj.type; @@ -669,9 +659,7 @@ class NamedFragment extends Fragment { name; constructor(guard, type, name, inputs) { super(guard, type, inputs); - if (typeof (name) !== "string" || !name.match(regexIdentifier)) { - (0, index_js_1.throwArgumentError)("invalid identifier", "name", name); - } + (0, index_js_1.assertArgument)(typeof (name) === "string" && name.match(regexIdentifier), "invalid identifier", "name", name); inputs = Object.freeze(inputs.slice()); (0, index_js_1.defineProperties)(this, { name }); } @@ -782,11 +770,7 @@ class ConstructorFragment extends Fragment { (0, index_js_1.defineProperties)(this, { payable, gas }); } format(format = "sighash") { - if (format === "sighash") { - (0, index_js_1.throwError)("cannot format a constructor for sighash", "UNSUPPORTED_OPERATION", { - operation: "format(sighash)" - }); - } + (0, index_js_1.assert)(format !== "sighash", "cannot format a constructor for sighash", "UNSUPPORTED_OPERATION", { operation: "format(sighash)" }); if (format === "json") { return JSON.stringify({ type: "constructor", diff --git a/lib.commonjs/abi/fragments.js.map b/lib.commonjs/abi/fragments.js.map index 5829b026e..d3a7244f7 100644 --- a/lib.commonjs/abi/fragments.js.map +++ b/lib.commonjs/abi/fragments.js.map @@ -1 +1 @@ -{"version":3,"file":"fragments.js","sourceRoot":"","sources":["../../src.ts/abi/fragments.ts"],"names":[],"mappings":";;;AAAA,gDAG2B;AAC3B,+CAAsC;AAwBrC,CAAC;AAeF,qCAAqC;AACrC,SAAS,MAAM,CAAC,KAAoB;IAChC,MAAM,MAAM,GAAgB,IAAI,GAAG,EAAE,CAAC;IACtC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IACpC,OAAO,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC;AAED,sBAAsB;AACtB,MAAM,QAAQ,GAAG,6DAA6D,CAAC;AAC/E,MAAM,OAAO,GAAG,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;AAE5C,MAAM,QAAQ,GAAG,yCAAyC,CAAC;AAC3D,MAAM,OAAO,GAAG,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;AAE5C,MAAM,YAAY,GAAG,yCAAyC,CAAC;AAC/D,MAAM,WAAW,GAAG,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;AAEpD,MAAM,QAAQ,GAAG,eAAe,CAAC;AAEjC,eAAe;AACf,MAAM,SAAS,GAAG,CAAE,QAAQ,EAAE,YAAY,EAAE,QAAQ,EAAE,QAAQ,CAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC3E,MAAM,QAAQ,GAAG,MAAM,CAAC,SAAS,CA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AAc,CAAC,IAAI,EAAE,QAAQ,EAAE,EAAE,KAAK,EAAE,sBAAsB,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED,MAAM;QACF,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC;IAC7B,CAAC;IAED,MAAM,CAAC,IAAI,CAAC,GAAQ;QAChB,IAAI,OAAM,CAAC,GAAG,CAAC,KAAK,QAAQ,EAAE;YAC1B,OAAO,cAAc,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;SAExC;aAAM,IAAI,GAAG,YAAY,WAAW,EAAE;YACnC,MAAM,IAAI,GAAG,WAAW,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;YACxC,MAAM,MAAM,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC;YAClC,UAAU,CAAC,GAAG,CAAC,CAAC;YAChB,OAAO,IAAI,cAAc,CAAC,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;SACnD;QAED,OAAO,IAAI,cAAc,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,CAAA,CAAC,CAAC,EAAG,CAAC,CAAC;IAClG,CAAC;IAED,MAAM,CAAC,UAAU,CAAC,KAAU;QACxB,OAAO,CAAC,KAAK,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,sBAAsB,CAAC,CAAC;IACjE,CAAC;CACJ;AA3BD,wCA2BC"} \ No newline at end of file diff --git a/lib.commonjs/abi/interface.js b/lib.commonjs/abi/interface.js index c8fe4fd5a..be0732b29 100644 --- a/lib.commonjs/abi/interface.js +++ b/lib.commonjs/abi/interface.js @@ -215,7 +215,7 @@ class Interface { return fragment; } } - (0, index_js_3.throwArgumentError)("no matching function", "selector", key); + (0, index_js_3.assertArgument)(false, "no matching function", "selector", key); } // It is a bare name, look up the function (will return null if ambiguous) if (key.indexOf("(") === -1) { @@ -273,12 +273,10 @@ class Interface { matching.splice(0, 1); } } - if (matching.length === 0) { - (0, index_js_3.throwArgumentError)("no matching function", "name", key); - } - else if (matching.length > 1 && forceUnique) { + (0, index_js_3.assertArgument)(matching.length !== 0, "no matching function", "name", key); + if (matching.length > 1 && forceUnique) { const matchStr = matching.map((m) => JSON.stringify(m.format())).join(", "); - (0, index_js_3.throwArgumentError)(`multiple matching functions (i.e. ${matchStr})`, "name", key); + (0, index_js_3.assertArgument)(false, `multiple matching functions (i.e. ${matchStr})`, "name", key); } return matching[0]; } @@ -287,7 +285,7 @@ class Interface { if (result) { return result; } - return (0, index_js_3.throwArgumentError)("no matching function", "signature", key); + (0, index_js_3.assertArgument)(false, "no matching function", "signature", key); } /** * Get the function name for %%key%%, which may be a function selector, @@ -319,7 +317,7 @@ class Interface { return fragment; } } - (0, index_js_3.throwArgumentError)("no matching event", "eventTopic", key); + (0, index_js_3.assertArgument)(false, "no matching event", "eventTopic", key); } // It is a bare name, look up the function (will return null if ambiguous) if (key.indexOf("(") === -1) { @@ -352,12 +350,10 @@ class Interface { } } } - if (matching.length === 0) { - (0, index_js_3.throwArgumentError)("no matching event", "name", key); - } - else if (matching.length > 1 && forceUnique) { + (0, index_js_3.assertArgument)(matching.length > 0, "no matching event", "name", key); + if (matching.length > 1 && forceUnique) { // @TODO: refine by Typed - (0, index_js_3.throwArgumentError)("multiple matching events", "name", key); + (0, index_js_3.assertArgument)(false, "multiple matching events", "name", key); } return matching[0]; } @@ -366,7 +362,7 @@ class Interface { if (result) { return result; } - return (0, index_js_3.throwArgumentError)("no matching event", "signature", key); + (0, index_js_3.assertArgument)(false, "no matching event", "signature", key); } /** * Get the event name for %%key%%, which may be a topic hash, @@ -409,7 +405,7 @@ class Interface { return fragment; } } - (0, index_js_3.throwArgumentError)("no matching error", "selector", key); + (0, index_js_3.assertArgument)(false, "no matching error", "selector", key); } // It is a bare name, look up the function (will return null if ambiguous) if (key.indexOf("(") === -1) { @@ -426,11 +422,11 @@ class Interface { if (key === "Panic") { return fragments_js_1.ErrorFragment.from("error Panic(uint256)"); } - (0, index_js_3.throwArgumentError)("no matching error", "name", key); + (0, index_js_3.assertArgument)(false, "no matching error", "name", key); } else if (matching.length > 1) { // @TODO: refine by Typed - (0, index_js_3.throwArgumentError)("multiple matching errors", "name", key); + (0, index_js_3.assertArgument)(false, "multiple matching errors", "name", key); } return matching[0]; } @@ -446,7 +442,7 @@ class Interface { if (result) { return result; } - return (0, index_js_3.throwArgumentError)("no matching error", "signature", key); + (0, index_js_3.assertArgument)(false, "no matching error", "signature", key); } // Get the 4-byte selector used by Solidity to identify a function /* @@ -502,9 +498,7 @@ getSelector(fragment: ErrorFragment | FunctionFragment): string { if (typeof (fragment) === "string") { fragment = this.getError(fragment); } - if ((0, index_js_3.dataSlice)(data, 0, 4) !== fragment.selector) { - (0, index_js_3.throwArgumentError)(`data signature does not match error ${fragment.name}.`, "data", data); - } + (0, index_js_3.assertArgument)((0, index_js_3.dataSlice)(data, 0, 4) === fragment.selector, `data signature does not match error ${fragment.name}.`, "data", data); return this._decodeParams(fragment.inputs, (0, index_js_3.dataSlice)(data, 4)); } /** @@ -532,9 +526,7 @@ getSelector(fragment: ErrorFragment | FunctionFragment): string { */ decodeFunctionData(key, data) { const fragment = (typeof (key) === "string") ? this.getFunction(key) : key; - if ((0, index_js_3.dataSlice)(data, 0, 4) !== fragment.selector) { - (0, index_js_3.throwArgumentError)(`data signature does not match function ${fragment.name}.`, "data", data); - } + (0, index_js_3.assertArgument)((0, index_js_3.dataSlice)(data, 0, 4) === fragment.selector, `data signature does not match function ${fragment.name}.`, "data", data); return this._decodeParams(fragment.inputs, (0, index_js_3.dataSlice)(data, 4)); } /** @@ -573,7 +565,7 @@ getSelector(fragment: ErrorFragment | FunctionFragment): string { } } // Call returned data with no error, but the data is junk - return (0, index_js_3.throwError)(message, "BAD_DATA", { + (0, index_js_3.assert)(false, message, "BAD_DATA", { value: (0, index_js_3.hexlify)(bytes), info: { method: fragment.name, signature: fragment.format() } }); @@ -662,12 +654,7 @@ getSelector(fragment: ErrorFragment | FunctionFragment): string { if (typeof (eventFragment) === "string") { eventFragment = this.getEvent(eventFragment); } - if (values.length > eventFragment.inputs.length) { - (0, index_js_3.throwError)("too many arguments for " + eventFragment.format(), "UNEXPECTED_ARGUMENT", { - count: values.length, - expectedCount: eventFragment.inputs.length - }); - } + (0, index_js_3.assert)(values.length <= eventFragment.inputs.length, `too many arguments for ${eventFragment.format()}`, "UNEXPECTED_ARGUMENT", { count: values.length, expectedCount: eventFragment.inputs.length }); const topics = []; if (!eventFragment.anonymous) { topics.push(eventFragment.topicHash); @@ -696,16 +683,14 @@ getSelector(fragment: ErrorFragment | FunctionFragment): string { values.forEach((value, index) => { const param = eventFragment.inputs[index]; if (!param.indexed) { - if (value != null) { - (0, index_js_3.throwArgumentError)("cannot filter non-indexed parameters; must be null", ("contract." + param.name), value); - } + (0, index_js_3.assertArgument)(value == null, "cannot filter non-indexed parameters; must be null", ("contract." + param.name), value); return; } if (value == null) { topics.push(null); } else if (param.baseType === "array" || param.baseType === "tuple") { - (0, index_js_3.throwArgumentError)("filtering with tuples or arrays not supported", ("contract." + param.name), value); + (0, index_js_3.assertArgument)(false, "filtering with tuples or arrays not supported", ("contract." + param.name), value); } else if (Array.isArray(value)) { topics.push(value.map((value) => encodeTopic(param, value))); @@ -730,9 +715,7 @@ getSelector(fragment: ErrorFragment | FunctionFragment): string { if (!eventFragment.anonymous) { topics.push(eventFragment.topicHash); } - if (values.length !== eventFragment.inputs.length) { - (0, index_js_3.throwArgumentError)("event arguments/values mismatch", "values", values); - } + (0, index_js_3.assertArgument)(values.length !== eventFragment.inputs.length, "event arguments/values mismatch", "values", values); eventFragment.inputs.forEach((param, index) => { const value = values[index]; if (param.indexed) { @@ -767,9 +750,7 @@ getSelector(fragment: ErrorFragment | FunctionFragment): string { } if (topics != null && !eventFragment.anonymous) { const eventTopic = eventFragment.topicHash; - if (!(0, index_js_3.isHexString)(topics[0], 32) || topics[0].toLowerCase() !== eventTopic) { - (0, index_js_3.throwArgumentError)("fragment/topic mismatch", "topics[0]", topics[0]); - } + (0, index_js_3.assertArgument)((0, index_js_3.isHexString)(topics[0], 32) && topics[0].toLowerCase() === eventTopic, "fragment/topic mismatch", "topics[0]", topics[0]); topics = topics.slice(1); } const indexed = []; diff --git a/lib.commonjs/abi/interface.js.map b/lib.commonjs/abi/interface.js.map index d1de6bc95..404b836b3 100644 --- a/lib.commonjs/abi/interface.js.map +++ b/lib.commonjs/abi/interface.js.map @@ -1 +1 @@ -{"version":3,"file":"interface.js","sourceRoot":"","sources":["../../src.ts/abi/interface.ts"],"names":[],"mappings":";;;AAAA,iDAA8C;AAC9C,+CAAqC;AACrC,gDAI2B;AAE3B,iDAAoF;AACpF,kEAAuE;AAS9D,kGATA,qCAAiB,OASA;AAAE,uFATA,0BAAM,OASA;AARlC,iDAA0H;AAC1H,yCAAmC;AASnC,MAAa,cAAc;IACd,QAAQ,CAAiB;IACzB,IAAI,CAAU;IACd,SAAS,CAAU;IACnB,KAAK,CAAU;IACf,IAAI,CAAS;IAEtB,YAAY,QAAuB,EAAE,KAAa,EAAE,IAAY;QAC5D,MAAM,IAAI,GAAG,QAAQ,CAAC,IAAI,EAAE,SAAS,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC;QAC1D,IAAA,2BAAgB,EAAiB,IAAI,EAAE;YACnC,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI;SACzC,CAAC,CAAC;IACP,CAAC;CACJ;AAbD,wCAaC;AAED,MAAa,sBAAsB;IACtB,QAAQ,CAAoB;IAC5B,IAAI,CAAU;IACd,IAAI,CAAU;IACd,SAAS,CAAU;IACnB,QAAQ,CAAU;IAClB,KAAK,CAAU;IAExB,YAAY,QAA0B,EAAE,QAAgB,EAAE,IAAY,EAAE,KAAa;QACjF,MAAM,IAAI,GAAG,QAAQ,CAAC,IAAI,EAAE,SAAS,GAAG,QA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S,EAAC,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QAEzD,IAAI,CAAC,QAAQ,EAAE;YAAE,OAAO,IAAI,CAAC;SAAE;QAE/B,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,IAAA,oBAAS,EAAC,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC;QAC3E,OAAO,IAAI,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,IAAI,CAAC,KAA2E;QACnF,2CAA2C;QAC3C,IAAI,KAAK,YAAY,SAAS,EAAE;YAAE,OAAO,KAAK,CAAC;SAAE;QAEjD,OAAO;QACP,IAAI,OAAM,CAAC,KAAK,CAAC,KAAK,QAAQ,EAAE;YAAE,OAAO,IAAI,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;SAAE;QAE5E,qEAAqE;QACrE,IAAI,OAAM,CAAO,KAAM,CAAC,MAAM,CAAC,KAAK,UAAU,EAAE;YAC5C,OAAO,IAAI,SAAS,CAAO,KAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;SACrD;QAED,qBAAqB;QACrB,OAAO,IAAI,SAAS,CAAC,KAAK,CAAC,CAAC;IAChC,CAAC;CACJ;AAj1BD,8BAi1BC"} \ No newline at end of file diff --git a/lib.commonjs/address/address.js b/lib.commonjs/address/address.js index 1b84c267d..73b7c78ad 100644 --- a/lib.commonjs/address/address.js +++ b/lib.commonjs/address/address.js @@ -72,9 +72,7 @@ function fromBase36(value) { return result; } function getAddress(address) { - if (typeof (address) !== "string") { - (0, index_js_2.throwArgumentError)("invalid address", "address", address); - } + (0, index_js_2.assertArgument)(typeof (address) === "string", "invalid address", "address", address); if (address.match(/^(0x)?[0-9a-fA-F]{40}$/)) { // Missing the 0x prefix if (address.substring(0, 2) !== "0x") { @@ -82,24 +80,20 @@ function getAddress(address) { } const result = getChecksumAddress(address); // It is a checksummed address with a bad checksum - if (address.match(/([A-F].*[a-f])|([a-f].*[A-F])/) && result !== address) { - (0, index_js_2.throwArgumentError)("bad address checksum", "address", address); - } + (0, index_js_2.assertArgument)(!address.match(/([A-F].*[a-f])|([a-f].*[A-F])/) || result === address, "bad address checksum", "address", address); return result; } // Maybe ICAP? (we only support direct mode) if (address.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)) { // It is an ICAP address with a bad checksum - if (address.substring(2, 4) !== ibanChecksum(address)) { - (0, index_js_2.throwArgumentError)("bad icap checksum", "address", address); - } + (0, index_js_2.assertArgument)(address.substring(2, 4) === ibanChecksum(address), "bad icap checksum", "address", address); let result = fromBase36(address.substring(4)).toString(16); while (result.length < 40) { result = "0" + result; } return getChecksumAddress("0x" + result); } - return (0, index_js_2.throwArgumentError)("invalid address", "address", address); + (0, index_js_2.assertArgument)(false, "invalid address", "address", address); } exports.getAddress = getAddress; function getIcapAddress(address) { diff --git a/lib.commonjs/address/address.js.map b/lib.commonjs/address/address.js.map index 2ec62c554..459361ecb 100644 --- a/lib.commonjs/address/address.js.map +++ b/lib.commonjs/address/address.js.map @@ -1 +1 @@ -{"version":3,"file":"address.js","sourceRoot":"","sources":["../../src.ts/address/address.ts"],"names":[],"mappings":";;;AAAA,iDAA+C;AAC/C,gDAAiE;AAGjE,MAAM,IAAI,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AACvB,MAAM,KAAK,GAAG,MAAM,CAAC,EAAE,CAAC,CAAC;AAEzB,SAAS,kBAAkB,CAAC,OAAe;IAC3C,sCAAsC;IACtC,2EAA2E;IAC3E,OAAO;IAEH,OAAO,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;IAEhC,MAAM,KAAK,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAE7C,MAAM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 64f8477d7..7d92f9774 100644 --- a/lib.commonjs/address/checks.js +++ b/lib.commonjs/address/checks.js @@ -19,10 +19,8 @@ exports.isAddress = isAddress; async function checkAddress(target, promise) { const result = await promise; if (result == null || result === "0x0000000000000000000000000000000000000000") { - if (typeof (target) === "string") { - return (0, index_js_1.throwError)("unconfigured name", "UNCONFIGURED_NAME", { value: target }); - } - return (0, index_js_1.throwArgumentError)("invalid AddressLike value; did not resolve to a value address", "target", target); + (0, index_js_1.assert)(typeof (target) !== "string", "unconfigured name", "UNCONFIGURED_NAME", { value: target }); + (0, index_js_1.assertArgument)(false, "invalid AddressLike value; did not resolve to a value address", "target", target); } return (0, address_js_1.getAddress)(result); } @@ -33,11 +31,7 @@ function resolveAddress(target, resolver) { if (target.match(/^0x[0-9a-f]{40}$/i)) { return (0, address_js_1.getAddress)(target); } - if (resolver == null) { - return (0, index_js_1.throwError)("ENS resolution requires a provider", "UNSUPPORTED_OPERATION", { - operation: "resolveName", - }); - } + (0, index_js_1.assert)(resolver != null, "ENS resolution requires a provider", "UNSUPPORTED_OPERATION", { operation: "resolveName" }); return checkAddress(target, resolver.resolveName(target)); } else if (isAddressable(target)) { @@ -46,7 +40,7 @@ function resolveAddress(target, resolver) { else if (typeof (target.then) === "function") { return checkAddress(target, target); } - return (0, index_js_1.throwArgumentError)("unsupported addressable value", "target", target); + (0, index_js_1.assertArgument)(false, "unsupported addressable value", "target", target); } exports.resolveAddress = resolveAddress; //# sourceMappingURL=checks.js.map \ No newline at end of file diff --git a/lib.commonjs/address/checks.js.map b/lib.commonjs/address/checks.js.map index 82654bbed..be6bd89bb 100644 --- a/lib.commonjs/address/checks.js.map +++ b/lib.commonjs/address/checks.js.map @@ -1 +1 @@ -{"version":3,"file":"checks.js","sourceRoot":"","sources":["../../src.ts/address/checks.ts"],"names":[],"mappings":";;;AAAA,gDAAmE;AAEnE,6CAA0C;AAK1C,SAAgB,aAAa,CAAC,KAAU;IACpC,OAAO,CAAC,KAAK,IAAI,OAAM,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,CAAC;AAED,gEAAgE;AAChE,kCAAkC;AAClC,SAAgB,cAAc,CAAC,MAAmB,EAAE,QAA8B;IAE9E,IAAI,OAAM,CAAC,MAAM,CAAC,KAAK,QAAQ,EAAE;QAC7B,IAAI,MAAM,CAAC,KAAK,CAAC,mBAAmB,CAAC,EAAE;YAAE,OAAO,IAAA,uBAAU,EAAC,MAAM,CAAC,CAAC;SAAE;QAErE,IAAA,iBAAM,EAAC,QAAQ,IAAI,IAAI,EAAE,oCAAoC,EACzD,uBAAuB,EAAE,EAAE,SAAS,EAAE,aAAa,EAAE,CAAC,CAAC;QAE3D,OAAO,YAAY,CAAC,MAAM,EAAE,QAAQ,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC;KAE7D;SAAM,IAAI,aAAa,CAAC,MAAM,CAAC,EAAE;QAC9B,OAAO,YAAY,CAAC,MAAM,EAAE,MAAM,CAAC,UAAU,EAAE,CAAC,CAAC;KAEpD;SAAM,IAAI,OAAM,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,UAAU,EAAE;QAC3C,OAAO,YAAY,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KACvC;IAED,IAAA,yBAAc,EAAC,KAAK,EAAE,+BAA+B,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;AAC7E,CAAC;AAlBD,wCAkBC"} \ No newline at end of file diff --git a/lib.commonjs/address/contract-address.js b/lib.commonjs/address/contract-address.js index 2e5059911..596354973 100644 --- a/lib.commonjs/address/contract-address.js +++ b/lib.commonjs/address/contract-address.js @@ -25,12 +25,8 @@ function getCreate2Address(_from, _salt, _initCodeHash) { const from = (0, address_js_1.getAddress)(_from); const salt = (0, index_js_2.getBytes)(_salt, "salt"); const initCodeHash = (0, index_js_2.getBytes)(_initCodeHash, "initCodeHash"); - if (salt.length !== 32) { - (0, index_js_2.throwArgumentError)("salt must be 32 bytes", "salt", _salt); - } - if (initCodeHash.length !== 32) { - (0, index_js_2.throwArgumentError)("initCodeHash must be 32 bytes", "initCodeHash", _initCodeHash); - } + (0, index_js_2.assertArgument)(salt.length === 32, "salt must be 32 bytes", "salt", _salt); + (0, index_js_2.assertArgument)(initCodeHash.length === 32, "initCodeHash must be 32 bytes", "initCodeHash", _initCodeHash); return (0, address_js_1.getAddress)((0, index_js_2.dataSlice)((0, index_js_1.keccak256)((0, index_js_2.concat)(["0xff", from, salt, initCodeHash])), 12)); } exports.getCreate2Address = getCreate2Address; diff --git a/lib.commonjs/address/contract-address.js.map b/lib.commonjs/address/contract-address.js.map index 76dc314ad..cb91e0794 100644 --- a/lib.commonjs/address/contract-address.js.map +++ b/lib.commonjs/address/contract-address.js.map @@ -1 +1 @@ -{"version":3,"file":"contract-address.js","sourceRoot":"","sources":["../../src.ts/address/contract-address.ts"],"names":[],"mappings":";;;AAAA,iDAA+C;AAC/C,gDAE2B;AAE3B,6CAA0C;AAK1C,sGAAsG;AACtG,SAAgB,gBAAgB,CAAC,EAAyC;IACtE,MAAM,IAAI,GAAG,IAAA,uBAAU,EAAC,EAAE,CAAC,IAAI,CAAC,CAAC;IACjC,MAAM,KAAK,GAAG,IAAA,oBAAS,EAAC,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;IAE9C,IAAI,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IAClC,IAAI,QAAQ,KAAK,GAAG,EAAE;QAClB,QAAQ,GAAG,IAAI,CAAC;KACnB;SAAM,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE;QAC5B,QAAQ,GAAG,KAAK,GAAG,QAAQ,CAAC;KAC/B;SAAM;QACH,QAAQ,GAAG,IAAI,GAAG,QAAQ,CAAC;KAC9B;IAED,OAAO,IAAA,uBAAU,EAAC,IAAA,oBAAS,EAAC,IAAA,oBAAS,EAAC,IAAA,oBAAS,EAAC,CAAE,IAAI,EAAE,QAAQ,CAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;AAC/E,CAAC;AAdD,4CAcC;AAED,SAAgB,iBAAiB,CAAC,KAAa,EAAE,KAAgB,EAAE,aAAwB;IACvF,MAAM,IAAI,GAAG,IAAA,uBAAU,EAAC,KAAK,CAAC,CAAC;IAC/B,MAAM,IAAI,GAAG,IAAA,mBAAQ,EAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IACrC,MAAM,YAAY,GAAG,IAAA,mBAAQ,EAAC,aAAa,EAAE,cAAc,CAAC,CAAC;IAE7D,IAAI,IAAI,CAAC,MAAM,KAAK,EAAE,EAAE;QACpB,IAAA,6BAAkB,EAAC,uBAAuB,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;KAC9D;IAED,IAAI,YAAY,CAAC,MAAM,KAAK,EAAE,EAAE;QAC5B,IAAA,6BAAkB,EAAC,+BAA+B,EAAE,cAAc,EAAE,aAAa,CAAC,CAAC;KACtF;IAED,OAAO,IAAA,uBAAU,EAAC,IAAA,oBAAS,EAAC,IAAA,oBAAS,EAAC,IAAA,iBAAM,EAAC,CAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,YAAY,CAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAA;AAC7F,CAAC;AAdD,8CAcC"} \ No newline at end of file +{"version":3,"file":"contract-address.js","sourceRoot":"","sources":["../../src.ts/address/contract-address.ts"],"names":[],"mappings":";;;AAAA,iDAA+C;AAC/C,gDAE2B;AAE3B,6CAA0C;AAK1C,sGAAsG;AACtG,SAAgB,gBAAgB,CAAC,EAAyC;IACtE,MAAM,IAAI,GAAG,IAAA,uBAAU,EAAC,EAAE,CAAC,IAAI,CAAC,CAAC;IACjC,MAAM,KAAK,GAAG,IAAA,oBAAS,EAAC,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;IAE9C,IAAI,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IAClC,IAAI,QAAQ,KAAK,GAAG,EAAE;QAClB,QAAQ,GAAG,IAAI,CAAC;KACnB;SAAM,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE;QAC5B,QAAQ,GAAG,KAAK,GAAG,QAAQ,CAAC;KAC/B;SAAM;QACH,QAAQ,GAAG,IAAI,GAAG,QAAQ,CAAC;KAC9B;IAED,OAAO,IAAA,uBAAU,EAAC,IAAA,oBAAS,EAAC,IAAA,oBAAS,EAAC,IAAA,oBAAS,EAAC,CAAE,IAAI,EAAE,QAAQ,CAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;AAC/E,CAAC;AAdD,4CAcC;AAED,SAAgB,iBAAiB,CAAC,KAAa,EAAE,KAAgB,EAAE,aAAwB;IACvF,MAAM,IAAI,GAAG,IAAA,uBAAU,EAAC,KAAK,CAAC,CAAC;IAC/B,MAAM,IAAI,GAAG,IAAA,mBAAQ,EAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IACrC,MAAM,YAAY,GAAG,IAAA,mBAAQ,EAAC,aAAa,EAAE,cAAc,CAAC,CAAC;IAE7D,IAAA,yBAAc,EAAC,IAAI,CAAC,MAAM,KAAK,EAAE,EAAE,uBAAuB,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;IAE3E,IAAA,yBAAc,EAAC,YAAY,CAAC,MAAM,KAAK,EAAE,EAAE,+BAA+B,EAAE,cAAc,EAAE,aAAa,CAAC,CAAC;IAE3G,OAAO,IAAA,uBAAU,EAAC,IAAA,oBAAS,EAAC,IAAA,oBAAS,EAAC,IAAA,iBAAM,EAAC,CAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,YAAY,CAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAA;AAC7F,CAAC;AAVD,8CAUC"} \ No newline at end of file diff --git a/lib.commonjs/contract/contract.js b/lib.commonjs/contract/contract.js index 0b894e653..8e91c4190 100644 --- a/lib.commonjs/contract/contract.js +++ b/lib.commonjs/contract/contract.js @@ -18,11 +18,6 @@ function canResolve(value) { function canSend(value) { return (value && typeof (value.sendTransaction) === "function"); } -function concisify(items) { - items = Array.from((new Set(items)).values()); - items.sort(); - return items; -} class PreparedTopicFilter { #filter; fragment; @@ -83,10 +78,10 @@ async function copyOverrides(arg) { // Some sanity checking; these are what these methods adds //if ((overrides).to) { if (overrides.to) { - (0, index_js_4.throwArgumentError)("cannot override to", "overrides.to", overrides.to); + (0, index_js_4.assertArgument)(false, "cannot override to", "overrides.to", overrides.to); } else if (overrides.data) { - (0, index_js_4.throwArgumentError)("cannot override data", "overrides.data", overrides.data); + (0, index_js_4.assertArgument)(false, "cannot override data", "overrides.data", overrides.data); } // Resolve any from if (overrides.from) { @@ -163,11 +158,7 @@ class WrappedMethod extends _WrappedMethodBase() { } async send(...args) { const runner = this._contract.runner; - if (!canSend(runner)) { - return (0, index_js_4.throwError)("contract runner does not support sending transactions", "UNSUPPORTED_OPERATION", { - operation: "sendTransaction" - }); - } + (0, index_js_4.assert)(canSend(runner), "contract runner does not support sending transactions", "UNSUPPORTED_OPERATION", { operation: "sendTransaction" }); const tx = await runner.sendTransaction(await this.populateTransaction(...args)); const provider = getProvider(this._contract.runner); // @TODO: the provider can be null; make a custom dummy provider that will throw a @@ -176,20 +167,12 @@ class WrappedMethod extends _WrappedMethodBase() { } async estimateGas(...args) { const runner = getRunner(this._contract.runner, "estimateGas"); - if (!canEstimate(runner)) { - return (0, index_js_4.throwError)("contract runner does not support gas estimation", "UNSUPPORTED_OPERATION", { - operation: "estimateGas" - }); - } + (0, index_js_4.assert)(canEstimate(runner), "contract runner does not support gas estimation", "UNSUPPORTED_OPERATION", { operation: "estimateGas" }); return await runner.estimateGas(await this.populateTransaction(...args)); } async staticCallResult(...args) { const runner = getRunner(this._contract.runner, "call"); - if (!canCall(runner)) { - return (0, index_js_4.throwError)("contract runner does not support calling", "UNSUPPORTED_OPERATION", { - operation: "call" - }); - } + (0, index_js_4.assert)(canCall(runner), "contract runner does not support calling", "UNSUPPORTED_OPERATION", { operation: "call" }); const tx = await this.populateTransaction(...args); let result = "0x"; try { @@ -220,7 +203,7 @@ class WrappedEvent extends _WrappedEventBase() { }); return new Proxy(this, { // Perform the default operation for this fragment type - apply: async (target, thisArg, args) => { + apply: (target, thisArg, args) => { return new PreparedTopicFilter(contract, target.getFragment(...args), args); }, }); @@ -250,22 +233,45 @@ function isDeferred(value) { return (value && typeof (value) === "object" && ("getTopicFilter" in value) && (typeof (value.getTopicFilter) === "function") && value.fragment); } -async function getSubTag(contract, event) { - let fragment; +async function getSubInfo(contract, event) { let topics; + let fragment = null; + // Convert named events to topicHash and get the fragment for + // events which need deconstructing. if (Array.isArray(event)) { - // Topics; e.g. `[ "0x1234...89ab" ]` - fragment = contract.interface.getEvent(event[0]); - topics = event; + const topicHashify = function (name) { + if ((0, index_js_4.isHexString)(name, 32)) { + return name; + } + return contract.interface.getEvent(name).topicHash; + }; + // Array of Topics and Names; e.g. `[ "0x1234...89ab", "Transfer(address)" ]` + topics = event.map((e) => { + if (e == null) { + return null; + } + if (Array.isArray(e)) { + return e.map(topicHashify); + } + return topicHashify(e); + }); + } + else if (event === "*") { + topics = [null]; } else if (typeof (event) === "string") { - // Event name (name or signature); `"Transfer"` - fragment = contract.interface.getEvent(event); - topics = [fragment.topicHash]; + if ((0, index_js_4.isHexString)(event, 32)) { + // Topic Hash + topics = [event]; + } + else { + // Name or Signature; e.g. `"Transfer", `"Transfer(address)"` + fragment = contract.interface.getEvent(event); + topics = [fragment.topicHash]; + } } else if (isDeferred(event)) { // Deferred Topic Filter; e.g. `contract.filter.Transfer(from)` - fragment = event.fragment; topics = await event.getTopicFilter(); } else if ("fragment" in event) { @@ -274,8 +280,7 @@ async function getSubTag(contract, event) { topics = [fragment.topicHash]; } else { - console.log(event); - throw new Error("TODO"); + (0, index_js_4.assertArgument)(false, "unknown event name", "event", event); } // Normalize topics and sort TopicSets topics = topics.map((t) => { @@ -283,7 +288,12 @@ async function getSubTag(contract, event) { return null; } if (Array.isArray(t)) { - return concisify(t.map((t) => t.toLowerCase())); + const items = Array.from(new Set(t.map((t) => t.toLowerCase())).values()); + if (items.length === 1) { + return items[0]; + } + items.sort(); + return items; } return t.toLowerCase(); }); @@ -300,25 +310,39 @@ async function getSubTag(contract, event) { } async function hasSub(contract, event) { const { subs } = getInternal(contract); - return subs.get((await getSubTag(contract, event)).tag) || null; + return subs.get((await getSubInfo(contract, event)).tag) || null; } -async function getSub(contract, event) { +async function getSub(contract, operation, event) { // Make sure our runner can actually subscribe to events const provider = getProvider(contract.runner); - if (!provider) { - return (0, index_js_4.throwError)("contract runner does not support subscribing", "UNSUPPORTED_OPERATION", { - operation: "on" - }); - } - const { fragment, tag, topics } = await getSubTag(contract, event); + (0, index_js_4.assert)(provider, "contract runner does not support subscribing", "UNSUPPORTED_OPERATION", { operation }); + const { fragment, tag, topics } = await getSubInfo(contract, event); const { addr, subs } = getInternal(contract); let sub = subs.get(tag); if (!sub) { const address = (addr ? addr : contract); const filter = { address, topics }; const listener = (log) => { - const payload = new wrappers_js_1.ContractEventPayload(contract, null, event, fragment, log); - emit(contract, event, payload.args, payload); + let foundFragment = fragment; + if (foundFragment == null) { + try { + foundFragment = contract.interface.getEvent(log.topics[0]); + } + catch (error) { } + } + // If fragment is null, we do not deconstruct the args to emit + if (foundFragment) { + const _foundFragment = foundFragment; + const args = fragment ? contract.interface.decodeEventLog(fragment, log.data, log.topics) : []; + emit(contract, event, args, (listener) => { + return new wrappers_js_1.ContractEventPayload(contract, listener, event, _foundFragment, log); + }); + } + else { + emit(contract, event, [], (listener) => { + return new wrappers_js_1.ContractUnknownEventPayload(contract, listener, event, log); + }); + } }; let started = false; const start = () => { @@ -344,7 +368,7 @@ async function getSub(contract, event) { // ensure correct ordering (note this cannot throw and just adds the // notice to the event queu using setTimeout). let lastEmit = Promise.resolve(); -async function _emit(contract, event, args, payload) { +async function _emit(contract, event, args, payloadFunc) { await lastEmit; const sub = await hasSub(contract, event); if (!sub) { @@ -353,8 +377,8 @@ async function _emit(contract, event, args, payload) { const count = sub.listeners.length; sub.listeners = sub.listeners.filter(({ listener, once }) => { const passArgs = args.slice(); - if (payload) { - passArgs.push(new wrappers_js_1.ContractEventPayload(contract, (once ? null : listener), event, payload.fragment, payload.log)); + if (payloadFunc) { + passArgs.push(payloadFunc(once ? null : listener)); } try { listener.call(contract, ...passArgs); @@ -364,12 +388,12 @@ async function _emit(contract, event, args, payload) { }); return (count > 0); } -async function emit(contract, event, args, payload) { +async function emit(contract, event, args, payloadFunc) { try { await lastEmit; } catch (error) { } - const resultPromise = _emit(contract, event, args, payload); + const resultPromise = _emit(contract, event, args, payloadFunc); lastEmit = resultPromise; return await resultPromise; } @@ -458,14 +482,13 @@ class BaseContract { } }); } + connect(runner) { + return new BaseContract(this.target, this.interface, runner); + } async getAddress() { return await getInternal(this).addrPromise; } async getDeployedCode() { const provider = getProvider(this.runner); - if (!provider) { - return (0, index_js_4.throwError)("runner does not support .provider", "UNSUPPORTED_OPERATION", { - operation: "getDeployedCode" - }); - } + (0, index_js_4.assert)(provider, "runner does not support .provider", "UNSUPPORTED_OPERATION", { operation: "getDeployedCode" }); const code = await provider.getCode(await this.getAddress()); if (code === "0x") { return null; @@ -486,11 +509,7 @@ class BaseContract { } // Make sure we can subscribe to a provider event const provider = getProvider(this.runner); - if (provider == null) { - return (0, index_js_4.throwError)("contract runner does not support .provider", "UNSUPPORTED_OPERATION", { - operation: "waitForDeployment" - }); - } + (0, index_js_4.assert)(provider != null, "contract runner does not support .provider", "UNSUPPORTED_OPERATION", { operation: "waitForDeployment" }); return new Promise((resolve, reject) => { const checkCode = async () => { try { @@ -529,26 +548,34 @@ class BaseContract { async queryFilter(event, fromBlock = 0, toBlock = "latest") { const { addr, addrPromise } = getInternal(this); const address = (addr ? addr : (await addrPromise)); - const { fragment, topics } = await getSubTag(this, event); + const { fragment, topics } = await getSubInfo(this, event); const filter = { address, topics, fromBlock, toBlock }; const provider = getProvider(this.runner); - if (!provider) { - return (0, index_js_4.throwError)("contract runner does not have a provider", "UNSUPPORTED_OPERATION", { - operation: "queryFilter" - }); - } + (0, index_js_4.assert)(provider, "contract runner does not have a provider", "UNSUPPORTED_OPERATION", { operation: "queryFilter" }); return (await provider.getLogs(filter)).map((log) => { - return new wrappers_js_1.EventLog(log, this.interface, fragment); + let foundFragment = fragment; + if (foundFragment == null) { + try { + foundFragment = this.interface.getEvent(log.topics[0]); + } + catch (error) { } + } + if (foundFragment) { + return new wrappers_js_1.EventLog(log, this.interface, foundFragment); + } + else { + return new index_js_3.Log(log, provider); + } }); } async on(event, listener) { - const sub = await getSub(this, event); + const sub = await getSub(this, "on", event); sub.listeners.push({ listener, once: false }); sub.start(); return this; } async once(event, listener) { - const sub = await getSub(this, event); + const sub = await getSub(this, "once", event); sub.listeners.push({ listener, once: true }); sub.start(); return this; diff --git a/lib.commonjs/contract/contract.js.map b/lib.commonjs/contract/contract.js.map index 37a61b341..e9e3ce4eb 100644 --- a/lib.commonjs/contract/contract.js.map +++ b/lib.commonjs/contract/contract.js.map @@ -1 +1 @@ -{"version":3,"file":"contract.js","sourceRoot":"","sources":["../../src.ts/contract/contract.ts"],"names":[],"mappings":";;;AAAA,8CAAmD;AACnD,kDAAqD;AACrD,oDAA8E;AAC9E,gDAG2B;AAE3B,+CAIuB;AAqCvB,SAAS,OAAO,CAAC,KAAU;IACvB,OAAO,CAAC,KAAK,IAAI,OAAM,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,UAAU,CAAC,CAAC;AACxD,CAAC;AAED,SAAS,WAAW,CAAC,KAAU;IAC3B,OAAO,CAAC,KAAK,IAAI,OAAM,CAAC,KAAK,CAAC,WAAW,CAAC,KAAK,UAAU,CAAC,CAAC;AAC/D,CAAC;AAED,SAAS,UAAU,CAAC,KAAU;IAC1B,OAAO,CAAC,KAAK,IAAI,OAAM,CAAC,KAAK,CAAC,WAAW,CAAC,KAAK,UAAU,CAAC,CAAC;AAC/D,CAAC;AAED,SAAS,OAAO,CAAC,KAAU;IACvB,OAAO,CAAC,KAAK,IAAI,OAAM,CAAC,KAAK,CAAC,eAAe,CAAC,KAAK,U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100644 --- a/lib.commonjs/contract/factory.js +++ b/lib.commonjs/contract/factory.js @@ -45,11 +45,9 @@ class ContractFactory { } async deploy(...args) { const tx = await this.getDeployTransaction(...args); - if (!this.runner || typeof (this.runner.sendTransaction) !== "function") { - return (0, index_js_3.throwError)("factory runner does not support sending transactions", "UNSUPPORTED_OPERATION", { - operation: "sendTransaction" - }); - } + (0, index_js_3.assert)(this.runner && typeof (this.runner.sendTransaction) === "function", "factory runner does not support sending transactions", "UNSUPPORTED_OPERATION", { + operation: "sendTransaction" + }); const sentTx = await this.runner.sendTransaction(tx); const address = (0, index_js_2.getCreateAddress)(sentTx); return new contract_js_1.BaseContract(address, this.interface, this.runner, sentTx); @@ -58,9 +56,7 @@ class ContractFactory { return new ContractFactory(this.interface, this.bytecode, runner); } static fromSolidity(output, runner) { - if (output == null) { - (0, index_js_3.throwArgumentError)("bad compiler output", "output", output); - } + (0, index_js_3.assertArgument)(output != null, "bad compiler output", "output", output); if (typeof (output) === "string") { output = JSON.parse(output); } diff --git a/lib.commonjs/contract/factory.js.map b/lib.commonjs/contract/factory.js.map index 45168c287..96c02cbe4 100644 --- a/lib.commonjs/contract/factory.js.map +++ b/lib.commonjs/contract/factory.js.map @@ -1 +1 @@ -{"version":3,"file":"factory.js","sourceRoot":"","sources":["../../src.ts/contract/factory.ts"],"names":[],"mappings":";;;AACA,8CAA4C;AAC5C,kDAAuD;AACvD,gDAG2B;AAE3B,+CAAyE;AAYzE,mCAAmC;AACnC,sCAAsC;AACtC,MAAa,eAAe;IACf,SAAS,CAAa;IACtB,QAAQ,CAAU;IAClB,MAAM,CAAyB;IAExC,YAAY,GAA6B,EAAE,QAAwC,EAAE,MAA8B;QAC/G,MAAM,KAAK,GAAG,oBAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAElC,wEAAwE;QACxE,IAAI,QAAQ,YAAY,UAAU,EAAE;YAChC,QAAQ,GAAG,IAAA,kBAAO,EAAC,IAAA,mBAAQ,EAAC,QAAQ,CAA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AM,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC;QACrD,MAAM,OAAO,GAAG,IAAA,2BAAgB,EAAC,MAAM,CAAC,CAAC;QACzC,OAAO,IAAU,0BAAa,CAAC,OAAO,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjF,CAAC;IAED,OAAO,CAAC,MAA6B;QACjC,OAAO,IAAI,eAAe,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;IACtE,CAAC;IAED,MAAM,CAAC,YAAY,CAA2D,MAAW,EAAE,MAAuB;QAC9G,IAAA,yBAAc,EAAC,MAAM,IAAI,IAAI,EAAE,qBAAqB,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;QAExE,IAAI,OAAM,CAAC,MAAM,CAAC,KAAK,QAAQ,EAAE;YAAE,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;SAAE;QAEjE,MAAM,GAAG,GAAG,MAAM,CAAC,GAAG,CAAC;QAEvB,IAAI,QAAQ,GAAG,EAAE,CAAC;QAClB,IAAI,MAAM,CAAC,QAAQ,EAAE;YACjB,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;SAC9B;aAAM,IAAI,MAAM,CAAC,GAAG,IAAI,MAAM,CAAC,GAAG,CAAC,QAAQ,EAAE;YAC1C,QAAQ,GAAG,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;SAClC;QAED,OAAO,IAAI,IAAI,CAAC,GAAG,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;IAC3C,CAAC;CACJ;AAzED,0CAyEC"} \ No newline at end of file diff --git a/lib.commonjs/contract/wrappers.js b/lib.commonjs/contract/wrappers.js index 8e1ee858e..f1e2b7aca 100644 --- a/lib.commonjs/contract/wrappers.js +++ b/lib.commonjs/contract/wrappers.js @@ -1,6 +1,6 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.ContractEventPayload = exports.ContractTransactionResponse = exports.ContractTransactionReceipt = exports.EventLog = void 0; +exports.ContractEventPayload = exports.ContractUnknownEventPayload = exports.ContractTransactionResponse = exports.ContractTransactionReceipt = exports.EventLog = void 0; const index_js_1 = require("../providers/index.js"); const index_js_2 = require("../utils/index.js"); class EventLog extends index_js_1.Log { @@ -50,21 +50,11 @@ class ContractTransactionResponse extends index_js_1.TransactionResponse { } } exports.ContractTransactionResponse = ContractTransactionResponse; -class ContractEventPayload extends index_js_2.EventPayload { - fragment; +class ContractUnknownEventPayload extends index_js_2.EventPayload { log; - args; - constructor(contract, listener, filter, fragment, _log) { + constructor(contract, listener, filter, log) { super(contract, listener, filter); - const log = new EventLog(_log, contract.interface, fragment); - const args = contract.interface.decodeEventLog(fragment, log.data, log.topics); - (0, index_js_2.defineProperties)(this, { args, fragment, log }); - } - get eventName() { - return this.fragment.name; - } - get eventSignature() { - return this.fragment.format(); + (0, index_js_2.defineProperties)(this, { log }); } async getBlock() { return await this.log.getBlock(); @@ -76,5 +66,19 @@ class ContractEventPayload extends index_js_2.EventPayload { return await this.log.getTransactionReceipt(); } } +exports.ContractUnknownEventPayload = ContractUnknownEventPayload; +class ContractEventPayload extends ContractUnknownEventPayload { + constructor(contract, listener, filter, fragment, _log) { + super(contract, listener, filter, new EventLog(_log, contract.interface, fragment)); + const args = contract.interface.decodeEventLog(fragment, this.log.data, this.log.topics); + (0, index_js_2.defineProperties)(this, { args, fragment }); + } + get eventName() { + return this.fragment.name; + } + get eventSignature() { + return this.fragment.format(); + } +} exports.ContractEventPayload = ContractEventPayload; //# sourceMappingURL=wrappers.js.map \ No newline at end of file diff --git a/lib.commonjs/contract/wrappers.js.map b/lib.commonjs/contract/wrappers.js.map index f3b6c3ca0..8208e944d 100644 --- a/lib.commonjs/contract/wrappers.js.map +++ b/lib.commonjs/contract/wrappers.js.map @@ -1 +1 @@ -{"version":3,"file":"wrappers.js","sourceRoot":"","sources":["../../src.ts/contract/w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644 --- a/lib.commonjs/crypto/crypto-browser.js +++ b/lib.commonjs/crypto/crypto-browser.js @@ -27,34 +27,26 @@ function createHash(algo) { case "sha256": return sha256_1.sha256.create(); case "sha512": return sha512_1.sha512.create(); } - return (0, index_js_1.throwArgumentError)("invalid hashing algorithm name", "algorithm", algo); + (0, index_js_1.assertArgument)(false, "invalid hashing algorithm name", "algorithm", algo); } exports.createHash = createHash; function createHmac(_algo, key) { const algo = ({ sha256: sha256_1.sha256, sha512: sha512_1.sha512 }[_algo]); - if (algo == null) { - return (0, index_js_1.throwArgumentError)("invalid hmac algorithm", "algorithm", _algo); - } + (0, index_js_1.assertArgument)(algo != null, "invalid hmac algorithm", "algorithm", _algo); return hmac_1.hmac.create(algo, key); } exports.createHmac = createHmac; function pbkdf2Sync(password, salt, iterations, keylen, _algo) { const algo = ({ sha256: sha256_1.sha256, sha512: sha512_1.sha512 }[_algo]); - if (algo == null) { - return (0, index_js_1.throwArgumentError)("invalid pbkdf2 algorithm", "algorithm", _algo); - } + (0, index_js_1.assertArgument)(algo != null, "invalid pbkdf2 algorithm", "algorithm", _algo); return (0, pbkdf2_1.pbkdf2)(algo, password, salt, { c: iterations, dkLen: keylen }); } exports.pbkdf2Sync = pbkdf2Sync; function randomBytes(length) { - if (crypto == null) { - return (0, index_js_1.throwError)("platform does not support secure random numbers", "UNSUPPORTED_OPERATION", { - operation: "randomBytes" - }); - } - if (!Number.isInteger(length) || length <= 0 || length > 1024) { - (0, index_js_1.throwArgumentError)("invalid length", "length", length); - } + (0, index_js_1.assert)(crypto != null, "platform does not support secure random numbers", "UNSUPPORTED_OPERATION", { + operation: "randomBytes" + }); + (0, index_js_1.assertArgument)(Number.isInteger(length) && length > 0 && length <= 1024, "invalid length", "length", length); const result = new Uint8Array(length); crypto.getRandomValues(result); return result; diff --git a/lib.commonjs/crypto/crypto-browser.js.map b/lib.commonjs/crypto/crypto-browser.js.map index 6402854c3..1760c11d0 100644 --- a/lib.commonjs/crypto/crypto-browser.js.map +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EAAN,eAAM,EAAE,MAAM,EAAN,eAAM,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IACzC,IAAA,yBAAc,EAAC,IAAI,IAAI,IAAI,EAAE,0BAA0B,EAAE,WAAW,EAAE,KAAK,CAAC,CAAC;IAC7E,OAAO,IAAA,eAAM,EAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,CAAC,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC;AAC1E,CAAC;AAJD,gCAIC;AAED,SAAgB,WAAW,CAAC,MAAc;IACtC,IAAA,iBAAM,EAAC,MAAM,IAAI,IAAI,EAAE,iDAAiD,EAAE,uBAAuB,EAAE;QAC/F,SAAS,EAAE,aAAa;KAAE,CAAC,CAAC;IAEhC,IAAA,yBAAc,EAAC,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,MAAM,GAAG,CAAC,IAAI,MAAM,IAAI,IAAI,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;IAE7G,MAAM,MAAM,GAAG,IAAI,UAAU,CAAC,MAAM,CAAC,CAAC;IACtC,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;IAC/B,OAAO,MAAM,CAAC;AAClB,CAAC;AATD,kCASC"} \ No newline at end of file diff --git a/lib.commonjs/crypto/hmac.js b/lib.commonjs/crypto/hmac.js index 3ec723672..43488589c 100644 --- a/lib.commonjs/crypto/hmac.js +++ b/lib.commonjs/crypto/hmac.js @@ -1,11 +1,11 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.computeHmac = void 0; -const crypto_browser_js_1 = require("./crypto-browser.js"); +const crypto_js_1 = require("./crypto.js"); const index_js_1 = require("../utils/index.js"); let locked = false; const _computeHmac = function (algorithm, key, data) { - return (0, crypto_browser_js_1.createHmac)(algorithm, key).update(data).digest(); + return (0, crypto_js_1.createHmac)(algorithm, key).update(data).digest(); }; let __computeHmac = _computeHmac; function computeHmac(algorithm, _key, _data) { diff --git a/lib.commonjs/crypto/hmac.js.map b/lib.commonjs/crypto/hmac.js.map index 6e19f8e7a..2dfe81c91 100644 --- a/lib.commonjs/crypto/hmac.js.map +++ b/lib.commonjs/crypto/hmac.js.map @@ -1 +1 @@ -{"version":3,"file":"hmac.js","sourceRoot":"","sources":["../../src.ts/crypto/hmac.ts"],"names":[],"mappings":";;;AAAA,2DAAiD;AACjD,gDAAsD;AAKtD,IAAI,MAAM,GAAG,KAAK,CAAC;AAEnB,MAAM,YAAY,GAAG,UAAS,SAA8B,EAAE,GAAe,EAAE,IAAgB;IAC3F,OAAO,IAAA,8BAAU,EAAC,SAAS,EAAE,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,CAAC;AAC5D,CAAC,CAAA;AAED,IAAI,aAAa,GAAG,YAAY,CAAC;AAEjC,SAAgB,WAAW,CAAC,SAA8B,EAAE,IAAe,EAAE,KAAgB;IACzF,MAAM,GAAG,GAAG,IAAA,mBAAQ,EAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAClC,MAAM,IAAI,GAAG,IAAA,mBAAQ,EAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IACrC,OAAO,IAAA,kBAAO,EAAC,aAAa,CAAC,SAAS,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC;AACxD,CAAC;AAJD,kCAIC;AACD,WAAW,CAAC,CAAC,GAAG,YAAY,CAAC;AAC7B,WAAW,CAAC,IAAI,GAAI,cAAa,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC,CAAA;AACjD,WAAW,CAAC,QAAQ,GAAG,UAAS,IAAsF;IAClH,IAAI,MAAM,EAAE;QAAE,MAAM,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAC;KAAE;IACzD,aAAa,GAAG,IAAI,CAAC;AACzB,CAAC,CAAA;AACD,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"hmac.js","sourceRoot":"","sources":["../../src.ts/crypto/hmac.ts"],"names":[],"mappings":";;;AAAA,2CAAyC;AACzC,gDAAsD;AAKtD,IAAI,MAAM,GAAG,KAAK,CAAC;AAEnB,MAAM,YAAY,GAAG,UAAS,SAA8B,EAAE,GAAe,EAAE,IAAgB;IAC3F,OAAO,IAAA,sBAAU,EAAC,SAAS,EAAE,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,CAAC;AAC5D,CAAC,CAAA;AAED,IAAI,aAAa,GAAG,YAAY,CAAC;AAEjC,SAAgB,WAAW,CAAC,SAA8B,EAAE,IAAe,EAAE,KAAgB;IACzF,MAAM,GAAG,GAAG,IAAA,mBAAQ,EAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAClC,MAAM,IAAI,GAAG,IAAA,mBAAQ,EAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IACrC,OAAO,IAAA,kBAAO,EAAC,aAAa,CAAC,SAAS,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC;AACxD,CAAC;AAJD,kCAIC;AACD,WAAW,CAAC,CAAC,GAAG,YAAY,CAAC;AAC7B,WAAW,CAAC,IAAI,GAAI,cAAa,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC,CAAA;AACjD,WAAW,CAAC,QAAQ,GAAG,UAAS,IAAsF;IAClH,IAAI,MAAM,EAAE;QAAE,MAAM,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAC;KAAE;IACzD,aAAa,GAAG,IAAI,CAAC;AACzB,CAAC,CAAA;AACD,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC"} \ No newline at end of file diff --git a/lib.commonjs/crypto/signature.js b/lib.commonjs/crypto/signature.js index 23252cb85..a416f1e30 100644 --- a/lib.commonjs/crypto/signature.js +++ b/lib.commonjs/crypto/signature.js @@ -15,27 +15,19 @@ class Signature { #props; get r() { return (0, index_js_2.getStore)(this.#props, "r"); } set r(value) { - if ((0, index_js_2.dataLength)(value) !== 32) { - (0, index_js_2.throwArgumentError)("invalid r", "value", value); - } + (0, index_js_2.assertArgument)((0, index_js_2.dataLength)(value) === 32, "invalid r", "value", value); (0, index_js_2.setStore)(this.#props, "r", (0, index_js_2.hexlify)(value)); } get s() { return (0, index_js_2.getStore)(this.#props, "s"); } set s(value) { - if ((0, index_js_2.dataLength)(value) !== 32) { - (0, index_js_2.throwArgumentError)("invalid r", "value", value); - } - else if ((0, index_js_2.getBytes)(value)[0] & 0x80) { - (0, index_js_2.throwArgumentError)("non-canonical s", "value", value); - } + (0, index_js_2.assertArgument)((0, index_js_2.dataLength)(value) === 32, "invalid r", "value", value); + (0, index_js_2.assertArgument)(((0, index_js_2.getBytes)(value)[0] & 0x80) === 0, "non-canonical s", "value", value); (0, index_js_2.setStore)(this.#props, "s", (0, index_js_2.hexlify)(value)); } get v() { return (0, index_js_2.getStore)(this.#props, "v"); } set v(value) { const v = (0, index_js_2.getNumber)(value, "value"); - if (v !== 27 && v !== 28) { - throw new Error("@TODO"); - } + (0, index_js_2.assertArgument)(v === 27 || v === 28, "invalid v", "v", value); (0, index_js_2.setStore)(this.#props, "v", v); } get networkV() { return (0, index_js_2.getStore)(this.#props, "networkV"); } @@ -92,9 +84,6 @@ class Signature { r: this.r, s: this.s, v: this.v, }; } - //static create(): Signature { - // return new Signature(_guard, ZeroHash, ZeroHash, 27); - //} // Get the chain ID from an EIP-155 v static getChainId(v) { const bv = (0, index_js_2.getBigInt)(v, "v"); @@ -103,9 +92,7 @@ class Signature { return BN_0; } // Bad value for an EIP-155 v - if (bv < BN_35) { - (0, index_js_2.throwArgumentError)("invalid EIP-155 v", "v", v); - } + (0, index_js_2.assertArgument)(bv >= BN_35, "invalid EIP-155 v", "v", v); return (bv - BN_35) / BN_2; } // Get the EIP-155 v transformed for a given chainId @@ -125,12 +112,13 @@ class Signature { return (bv & BN_1) ? 27 : 28; } static from(sig) { + function assertError(check, message) { + (0, index_js_2.assertArgument)(check, message, "signature", sig); + } + ; if (sig == null) { return new Signature(_guard, index_js_1.ZeroHash, index_js_1.ZeroHash, 27); } - const throwError = (message) => { - return (0, index_js_2.throwArgumentError)(message, "signature", sig); - }; if (typeof (sig) === "string") { const bytes = (0, index_js_2.getBytes)(sig, "signature"); if (bytes.length === 64) { @@ -143,46 +131,34 @@ class Signature { if (bytes.length === 65) { const r = (0, index_js_2.hexlify)(bytes.slice(0, 32)); const s = bytes.slice(32, 64); - if (s[0] & 0x80) { - throwError("non-canonical s"); - } + assertError((s[0] & 0x80) === 0, "non-canonical s"); const v = Signature.getNormalizedV(bytes[64]); return new Signature(_guard, r, (0, index_js_2.hexlify)(s), v); } - return throwError("invlaid raw signature length"); + assertError(false, "invlaid raw signature length"); } if (sig instanceof Signature) { return sig.clone(); } // Get r const r = sig.r; - if (r == null) { - throwError("missing r"); - } - if (!(0, index_js_2.isHexString)(r, 32)) { - throwError("invalid r"); - } + assertError(r != null, "missing r"); + assertError((0, index_js_2.isHexString)(r, 32), "invalid r"); // Get s; by any means necessary (we check consistency below) const s = (function (s, yParityAndS) { if (s != null) { - if (!(0, index_js_2.isHexString)(s, 32)) { - throwError("invalid s"); - } + assertError((0, index_js_2.isHexString)(s, 32), "invalid s"); return s; } if (yParityAndS != null) { - if (!(0, index_js_2.isHexString)(yParityAndS, 32)) { - throwError("invalid yParityAndS"); - } + assertError((0, index_js_2.isHexString)(yParityAndS, 32), "invalid yParityAndS"); const bytes = (0, index_js_2.getBytes)(yParityAndS); bytes[0] &= 0x7f; return (0, index_js_2.hexlify)(bytes); } - return throwError("missing s"); + assertError(false, "missing s"); })(sig.s, sig.yParityAndS); - if ((0, index_js_2.getBytes)(s)[0] & 0x80) { - throwError("non-canonical s"); - } + assertError(((0, index_js_2.getBytes)(s)[0] & 0x80) == 0, "non-canonical s"); // Get v; by any means necessary (we check consistency below) const { networkV, v } = (function (_v, yParityAndS, yParity) { if (_v != null) { @@ -193,9 +169,7 @@ class Signature { }; } if (yParityAndS != null) { - if (!(0, index_js_2.isHexString)(yParityAndS, 32)) { - throwError("invalid yParityAndS"); - } + assertError((0, index_js_2.isHexString)(yParityAndS, 32), "invalid yParityAndS"); return { v: (((0, index_js_2.getBytes)(yParityAndS)[0] & 0x80) ? 28 : 27) }; } if (yParity != null) { @@ -203,21 +177,17 @@ class Signature { case 0: return { v: 27 }; case 1: return { v: 28 }; } - return throwError("invalid yParity"); + assertError(false, "invalid yParity"); } - return throwError("missing v"); + assertError(false, "missing v"); })(sig.v, sig.yParityAndS, sig.yParity); const result = new Signature(_guard, r, s, v); if (networkV) { (0, index_js_2.setStore)(result.#props, "networkV", networkV); } // If multiple of v, yParity, yParityAndS we given, check they match - if ("yParity" in sig && sig.yParity !== result.yParity) { - throwError("yParity mismatch"); - } - else if ("yParityAndS" in sig && sig.yParityAndS !== result.yParityAndS) { - throwError("yParityAndS mismatch"); - } + assertError(!("yParity" in sig && sig.yParity !== result.yParity), "yParity mismatch"); + assertError(!("yParityAndS" in sig && sig.yParityAndS !== result.yParityAndS), "yParityAndS mismatch"); return result; } } diff --git a/lib.commonjs/crypto/signature.js.map b/lib.commonjs/crypto/signature.js.map index 536c40794..810f24f36 100644 --- a/lib.commonjs/crypto/signature.js.map +++ b/lib.commonjs/crypto/signature.js.map @@ -1 +1 @@ -{"version":3,"file":"signature.js","sourceRoot":"","sources":["../../src.ts/crypto/signature.ts"],"names":[],"mappings":";;;AAAA,oDAAiD;AACjD,gDAI2B;AAO3B,YAAY;AACZ,MAAM,IAAI,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AACvB,MAAM,IAAI,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AACvB,MAAM,IAAI,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AACvB,MAAM,KAAK,GAAG,MAAM,CAAC,EAAE,CAAC,CAAC;AACzB,MAAM,KAAK,GAAG,MAAM,CAAC,EAAE,CAAC,CAAC;AACzB,MAAM,KAAK,GAAG,MAAM,CAAC,EAAE,CAAC,CAAC;AAGzB,MA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G,IAAI,GAAG,CAAC,OAAO,KAAK,MAAM,CAAC,OAAO,CAAC,EAAE,kBAAkB,CAAC,CAAC;QACvF,WAAW,CAAC,CAAC,CAAC,aAAa,IAAI,GAAG,IAAI,GAAG,CAAC,WAAW,KAAK,MAAM,CAAC,WAAW,CAAC,EAAE,sBAAsB,CAAC,CAAC;QAEvG,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ;AAzMD,8BAyMC"} \ No newline at end of file diff --git a/lib.commonjs/crypto/signing-key.js b/lib.commonjs/crypto/signing-key.js index bc762932f..6d49c5f2f 100644 --- a/lib.commonjs/crypto/signing-key.js +++ b/lib.commonjs/crypto/signing-key.js @@ -87,7 +87,7 @@ class SigningKey { if (pubKey != null) { return (0, index_js_1.hexlify)(pubKey); } - return (0, index_js_1.throwArgumentError)("invalid signautre for digest", "signature", signature); + (0, index_js_1.assertArgument)(false, "invalid signautre for digest", "signature", signature); } static _addPoints(p0, p1, compressed) { const pub0 = secp256k1.Point.fromHex(SigningKey.computePublicKey(p0).substring(2)); diff --git a/lib.commonjs/crypto/signing-key.js.map b/lib.commonjs/crypto/signing-key.js.map index 2233fdc6e..7589a5f4a 100644 --- a/lib.commonjs/crypto/signing-key.js.map +++ b/lib.commonjs/crypto/signing-key.js.map @@ -1 +1 @@ -{"version":3,"file":"signing-key.js","sourceRoot":"","sources":["../../src.ts/crypto/signing-key.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,4DAA8C;AAE9C,gDAG2B;AAE3B,uCAAwC;AACxC,iDAA2C;AAO3C,yFAAyF;AAEzF,4BAA4B;AAC5B,SAAS,CAAC,KAAK,CAAC,cAAc,GAAG,UAAS,GAAe,EAAE,GAAG,QAA2B;IACrF,OAAO,IAAA,mBAAQ,EAAC,IAAA,qBAAW,EAAC,QAAQ,EAAE,GAAG,EAAE,IAAA,iBAAM,EAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;AAClE,CAAC,CAAA;AAED,MAAa,UAAU;IAC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AAC,CAAC,UAAU,CAAC,CAAA;IACpD,CAAC;CACJ;AA1ED,gCA0EC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgCE"} \ No newline at end of file diff --git a/lib.commonjs/ethers.js b/lib.commonjs/ethers.js index f125ba2ad..6d6b50b1a 100644 --- a/lib.commonjs/ethers.js +++ b/lib.commonjs/ethers.js @@ -3,9 +3,9 @@ // Object.defineProperty(exports, "__esModule", { value: true }); exports.scrypt = exports.pbkdf2 = exports.sha512 = exports.sha256 = exports.ripemd160 = exports.keccak256 = exports.randomBytes = exports.computeHmac = exports.EventLog = exports.ContractTransactionResponse = exports.ContractTransactionReceipt = exports.ContractEventPayload = exports.ContractFactory = exports.Contract = exports.BaseContract = exports.MessagePrefix = exports.EtherSymbol = exports.ZeroHash = exports.N = exports.MaxInt256 = exports.MinInt256 = exports.MaxUint256 = exports.WeiPerEther = exports.Two = exports.One = exports.Zero = exports.NegativeOne = exports.ZeroAddress = exports.getCreate2Address = exports.getCreateAddress = exports.getIcapAddress = exports.getAddress = exports.Typed = exports.TransactionDescription = exports.Result = exports.LogDescription = exports.Interface = exports.Indexed = exports.checkResultErrors = exports.ParamType = exports.FunctionFragment = exports.Fragment = exports.EventFragment = exports.ErrorFragment = exports.ConstructorFragment = exports.defaultAbiCoder = exports.AbiCoder = exports.encodeBytes32String = exports.decodeBytes32String = exports.version = void 0; -exports.assertNormalize = exports.assertArgumentCount = exports.assertArgument = exports.zeroPadValue = exports.zeroPadBytes = exports.stripZerosLeft = exports.isBytesLike = exports.isHexString = exports.hexlify = exports.getBytesCopy = exports.getBytes = exports.dataSlice = exports.dataLength = exports.concat = exports.encodeBase64 = exports.decodeBase64 = exports.encodeBase58 = exports.decodeBase58 = exports.Transaction = exports.recoverAddress = exports.computeAddress = exports.accessListify = exports.Network = exports.WebSocketProvider = exports.SocketProvider = exports.IpcSocketProvider = exports.InfuraProvider = exports.EtherscanProvider = exports.CloudflareProvider = exports.AnkrProvider = exports.AlchemyProvider = exports.BrowserProvider = exports.JsonRpcSigner = exports.JsonRpcProvider = exports.JsonRpcApiProvider = exports.FallbackProvider = exports.AbstractProvider = exports.TypedDataEncoder = exports.solidityPackedSha256 = exports.solidityPackedKeccak256 = exports.solidityPacked = exports.hashMessage = exports.dnsEncode = exports.namehash = exports.isValidName = exports.id = exports.SigningKey = exports.Signature = exports.lock = exports.scryptSync = void 0; -exports.langEn = exports.Wordlist = exports.Wallet = exports.Mnemonic = exports.encryptKeystoreJson = exports.decryptKeystoreJson = exports.decryptKeystoreJsonSync = exports.isKeystoreJson = exports.decryptCrowdsaleJson = exports.isCrowdsaleJson = exports.HDNodeWalletManager = exports.HDNodeVoidWallet = exports.HDNodeWallet = exports.getAccountPath = exports.defaultPath = exports.encodeRlp = exports.decodeRlp = exports.Utf8ErrorFuncs = exports.toUtf8String = exports.toUtf8CodePoints = exports.toUtf8Bytes = exports._toEscapedUtf8String = exports.parseUnits = exports.formatUnits = exports.parseEther = exports.formatEther = exports.mask = exports.toTwos = exports.fromTwos = exports.toQuantity = exports.toNumber = exports.toHex = exports.toBigInt = exports.toArray = exports.getNumber = exports.getBigInt = exports.parseFixed = exports.formatFixed = exports.FixedNumber = exports.FixedFormat = exports.FetchCancelSignal = exports.FetchResponse = exports.FetchRequest = exports.getIpfsGatewayFunc = exports.isError = exports.isCallException = exports.throwError = exports.throwArgumentError = exports.makeError = exports.assertPrivate = void 0; -exports.WordlistOwlA = exports.WordlistOwl = exports.wordlists = exports.LangEn = void 0; +exports.stripZerosLeft = exports.isBytesLike = exports.isHexString = exports.hexlify = exports.getBytesCopy = exports.getBytes = exports.dataSlice = exports.dataLength = exports.concat = exports.encodeBase64 = exports.decodeBase64 = exports.encodeBase58 = exports.decodeBase58 = exports.Transaction = exports.recoverAddress = exports.computeAddress = exports.accessListify = exports.Network = exports.WebSocketProvider = exports.SocketProvider = exports.IpcSocketProvider = exports.InfuraProvider = exports.EtherscanProvider = exports.CloudflareProvider = exports.AnkrProvider = exports.AlchemyProvider = exports.BrowserProvider = exports.JsonRpcSigner = exports.JsonRpcProvider = exports.JsonRpcApiProvider = exports.FallbackProvider = exports.AbstractProvider = exports.TransactionResponse = exports.TransactionReceipt = exports.Log = exports.FeeData = exports.Block = exports.TypedDataEncoder = exports.solidityPackedSha256 = exports.solidityPackedKeccak256 = exports.solidityPacked = exports.hashMessage = exports.dnsEncode = exports.namehash = exports.isValidName = exports.id = exports.SigningKey = exports.Signature = exports.lock = exports.scryptSync = void 0; +exports.Mnemonic = exports.encryptKeystoreJson = exports.decryptKeystoreJson = exports.decryptKeystoreJsonSync = exports.isKeystoreJson = exports.decryptCrowdsaleJson = exports.isCrowdsaleJson = exports.HDNodeWalletManager = exports.HDNodeVoidWallet = exports.HDNodeWallet = exports.getAccountPath = exports.defaultPath = exports.encodeRlp = exports.decodeRlp = exports.Utf8ErrorFuncs = exports.toUtf8String = exports.toUtf8CodePoints = exports.toUtf8Bytes = exports.parseUnits = exports.formatUnits = exports.parseEther = exports.formatEther = exports.mask = exports.toTwos = exports.fromTwos = exports.toQuantity = exports.toNumber = exports.toHex = exports.toBigInt = exports.toArray = exports.getNumber = exports.getBigInt = exports.parseFixed = exports.formatFixed = exports.FixedNumber = exports.FixedFormat = exports.FetchCancelSignal = exports.FetchResponse = exports.FetchRequest = exports.getIpfsGatewayFunc = exports.isError = exports.isCallException = exports.makeError = exports.assertPrivate = exports.assertNormalize = exports.assertArgumentCount = exports.assertArgument = exports.assert = exports.zeroPadValue = exports.zeroPadBytes = void 0; +exports.WordlistOwlA = exports.WordlistOwl = exports.wordlists = exports.LangEn = exports.langEn = exports.Wordlist = exports.Wallet = void 0; var _version_js_1 = require("./_version.js"); Object.defineProperty(exports, "version", { enumerable: true, get: function () { return _version_js_1.version; } }); var index_js_1 = require("./abi/index.js"); @@ -77,6 +77,11 @@ Object.defineProperty(exports, "solidityPackedKeccak256", { enumerable: true, ge Object.defineProperty(exports, "solidityPackedSha256", { enumerable: true, get: function () { return index_js_6.solidityPackedSha256; } }); Object.defineProperty(exports, "TypedDataEncoder", { enumerable: true, get: function () { return index_js_6.TypedDataEncoder; } }); var index_js_7 = require("./providers/index.js"); +Object.defineProperty(exports, "Block", { enumerable: true, get: function () { return index_js_7.Block; } }); +Object.defineProperty(exports, "FeeData", { enumerable: true, get: function () { return index_js_7.FeeData; } }); +Object.defineProperty(exports, "Log", { enumerable: true, get: function () { return index_js_7.Log; } }); +Object.defineProperty(exports, "TransactionReceipt", { enumerable: true, get: function () { return index_js_7.TransactionReceipt; } }); +Object.defineProperty(exports, "TransactionResponse", { enumerable: true, get: function () { return index_js_7.TransactionResponse; } }); Object.defineProperty(exports, "AbstractProvider", { enumerable: true, get: function () { return index_js_7.AbstractProvider; } }); Object.defineProperty(exports, "FallbackProvider", { enumerable: true, get: function () { return index_js_7.FallbackProvider; } }); Object.defineProperty(exports, "JsonRpcApiProvider", { enumerable: true, get: function () { return index_js_7.JsonRpcApiProvider; } }); @@ -114,13 +119,12 @@ Object.defineProperty(exports, "isBytesLike", { enumerable: true, get: function Object.defineProperty(exports, "stripZerosLeft", { enumerable: true, get: function () { return index_js_9.stripZerosLeft; } }); Object.defineProperty(exports, "zeroPadBytes", { enumerable: true, get: function () { return index_js_9.zeroPadBytes; } }); Object.defineProperty(exports, "zeroPadValue", { enumerable: true, get: function () { return index_js_9.zeroPadValue; } }); +Object.defineProperty(exports, "assert", { enumerable: true, get: function () { return index_js_9.assert; } }); Object.defineProperty(exports, "assertArgument", { enumerable: true, get: function () { return index_js_9.assertArgument; } }); Object.defineProperty(exports, "assertArgumentCount", { enumerable: true, get: function () { return index_js_9.assertArgumentCount; } }); Object.defineProperty(exports, "assertNormalize", { enumerable: true, get: function () { return index_js_9.assertNormalize; } }); Object.defineProperty(exports, "assertPrivate", { enumerable: true, get: function () { return index_js_9.assertPrivate; } }); Object.defineProperty(exports, "makeError", { enumerable: true, get: function () { return index_js_9.makeError; } }); -Object.defineProperty(exports, "throwArgumentError", { enumerable: true, get: function () { return index_js_9.throwArgumentError; } }); -Object.defineProperty(exports, "throwError", { enumerable: true, get: function () { return index_js_9.throwError; } }); Object.defineProperty(exports, "isCallException", { enumerable: true, get: function () { return index_js_9.isCallException; } }); Object.defineProperty(exports, "isError", { enumerable: true, get: function () { return index_js_9.isError; } }); Object.defineProperty(exports, "getIpfsGatewayFunc", { enumerable: true, get: function () { return index_js_9.getIpfsGatewayFunc; } }); @@ -145,7 +149,6 @@ Object.defineProperty(exports, "formatEther", { enumerable: true, get: function Object.defineProperty(exports, "parseEther", { enumerable: true, get: function () { return index_js_9.parseEther; } }); Object.defineProperty(exports, "formatUnits", { enumerable: true, get: function () { return index_js_9.formatUnits; } }); Object.defineProperty(exports, "parseUnits", { enumerable: true, get: function () { return index_js_9.parseUnits; } }); -Object.defineProperty(exports, "_toEscapedUtf8String", { enumerable: true, get: function () { return index_js_9._toEscapedUtf8String; } }); Object.defineProperty(exports, "toUtf8Bytes", { enumerable: true, get: function () { return index_js_9.toUtf8Bytes; } }); Object.defineProperty(exports, "toUtf8CodePoints", { enumerable: true, get: function () { return index_js_9.toUtf8CodePoints; } }); Object.defineProperty(exports, "toUtf8String", { enumerable: true, get: function () { return index_js_9.toUtf8String; } }); diff --git a/lib.commonjs/ethers.js.map b/lib.commonjs/ethers.js.map index a7a2c7cf2..08bfe7c4a 100644 --- a/lib.commonjs/ethers.js.map +++ b/lib.commonjs/ethers.js.map @@ -1 +1 @@ -{"version":3,"file":"ethers.js","sourceRoot":"","sources":["../src.ts/ethers.ts"],"names":[],"mappings":";AAEA,6BAA6B;AAC7B,EAAE;;;;;;AAEF,6CAAwC;AAA/B,sGAAA,OAAO,OAAA;AAEhB,2CAQwB;AAPpB,+GAAA,mBAAmB,OAAA;AAAE,+GAAA,mBAAmB,OAAA;AAExC,oGAAA,QAAQ,OAAA;AAAE,2GAAA,eAAe,OAAA;AACzB,+GAAA,mBAAmB,OAAA;AAAE,yGAAA,aAAa,OAAA;AAAE,yGAAA,aAAa,OAAA;AAAE,oGAA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AK,OAAA;AAAE,oGAAA,QAAQ,OAAA;AAAE,sGAAA,UAAU,OAAA;AACpE,oGAAA,QAAQ,OAAA;AAAE,kGAAA,MAAM,OAAA;AAAE,gGAAA,IAAI,OAAA;AACtB,uGAAA,WAAW,OAAA;AAAE,sGAAA,UAAU,OAAA;AAAE,uGAAA,WAAW,OAAA;AAAE,sGAAA,UAAU,OAAA;AAChD,uGAAA,WAAW,OAAA;AAAE,4GAAA,gBAAgB,OAAA;AAAE,wGAAA,YAAY,OAAA;AAC3C,0GAAA,cAAc,OAAA;AACd,qGAAA,SAAS,OAAA;AAAE,qGAAA,SAAS,OAAA;AAGxB,+CAS2B;AARvB,wGAAA,WAAW,OAAA;AACX,2GAAA,cAAc,OAAA;AACd,yGAAA,YAAY,OAAA;AAAE,6GAAA,gBAAgB,OAAA;AAAE,gHAAA,mBAAmB,OAAA;AACnD,4GAAA,eAAe,OAAA;AAAE,iHAAA,oBAAoB,OAAA;AACrC,2GAAA,cAAc,OAAA;AAAE,oHAAA,uBAAuB,OAAA;AAAE,gHAAA,mBAAmB,OAAA;AAC5D,gHAAA,mBAAmB,OAAA;AACnB,qGAAA,QAAQ,OAAA;AACR,mGAAA,MAAM,OAAA;AAGV,kDAE8B;AAD1B,qGAAA,QAAQ,OAAA;AAAE,mGAAA,MAAM,OAAA;AAAE,mGAAA,MAAM,OAAA;AAAE,sGAAA,SAAS,OAAA;AAAE,wGAAA,WAAW,OAAA;AAAE,yGAAA,YAAY,OAAA"} \ No newline at end of file diff --git a/lib.commonjs/hash/namehash.js b/lib.commonjs/hash/namehash.js index 56bfaa56f..38fad58d2 100644 --- a/lib.commonjs/hash/namehash.js +++ b/lib.commonjs/hash/namehash.js @@ -52,9 +52,7 @@ function isValidName(name) { exports.isValidName = isValidName; function namehash(name) { /* istanbul ignore if */ - if (typeof (name) !== "string") { - (0, index_js_2.throwArgumentError)("invalid ENS name; not a string", "name", name); - } + (0, index_js_2.assertArgument)(typeof (name) === "string", "invalid ENS name; not a string", "name", name); let result = Zeros; const comps = ensNameSplit(name); while (comps.length) { diff --git a/lib.commonjs/hash/namehash.js.map b/lib.commonjs/hash/namehash.js.map index 90c366b50..09902b92b 100644 --- a/lib.commonjs/hash/namehash.js.map +++ b/lib.commonjs/hash/namehash.js.map @@ -1 +1 @@ -{"version":3,"file":"namehash.js","sourceRoot":"","sources":["../../src.ts/hash/namehash.ts"],"names":[],"mappings":";;;AACA,iDAA+C;AAC/C,gDAE2B;AAG3B,sDAAsD;AACtD,SAAS;AACT,SAAS,aAAa,CAAC,IAAY;IAC/B,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,MAAM,KAAK,GAAG,IAAI,UAAU,CAAC,EAAE,CAAC,CAAC;AACjC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAEd,SAAS,cAAc,CAAC,IAAgB;IACpC,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE;QAAE,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;KAAE;IAChF,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAS,YAAY,CAAC,IAAY;IAC9B,MAAM,KAAK,GAAG,IAAA,sBAAW,EAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC;IAC/C,MAAM,KAAK,GAAsB,EAAG,CAAC;IAErC,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE;QAAE,OAAO,KAAK,CAAC;KAAE;IAExC,IAAI,IAAI,GAAG,CAAC,CAAC;IACb,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACnC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;QAEnB,8CAA8C;QAC9C,IAAI,CAAC,KAAK,IAAI,EAAE;YACZ,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,CAA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AA,yBAAc,EAAC,OAAM,CAAC,IAAI,CAAC,KAAK,QAAQ,EAAE,gCAAgC,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IAE1F,IAAI,MAAM,GAAwB,KAAK,CAAC;IAExC,MAAM,KAAK,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;IACjC,OAAO,KAAK,CAAC,MAAM,EAAE;QACjB,MAAM,GAAG,IAAA,oBAAS,EAAC,IAAA,iBAAM,EAAC,CAAE,MAAM,EAAE,IAAA,oBAAS,EAAa,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,CAAE,CAAC,CAAC;KAChF;IAED,OAAO,IAAA,kBAAO,EAAC,MAAM,CAAC,CAAC;AAC3B,CAAC;AAZD,4BAYC;AAED,SAAgB,SAAS,CAAC,IAAY;IAClC,OAAO,IAAA,kBAAO,EAAC,IAAA,iBAAM,EAAC,YAAY,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QAClD,wDAAwD;QACxD,IAAI,IAAI,CAAC,MAAM,GAAG,EAAE,EAAE;YAClB,MAAM,IAAI,KAAK,CAAC,oDAAoD,CAAC,CAAC;SACzE;QAED,MAAM,KAAK,GAAG,IAAI,UAAU,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QAC9C,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;QACnB,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;QAC5B,OAAO,KAAK,CAAC;IAEjB,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;AAChB,CAAC;AAbD,8BAaC"} \ No newline at end of file diff --git a/lib.commonjs/hash/solidity.js b/lib.commonjs/hash/solidity.js index a7c2d8547..2417524d4 100644 --- a/lib.commonjs/hash/solidity.js +++ b/lib.commonjs/hash/solidity.js @@ -27,9 +27,7 @@ function _pack(type, value, isArray) { let match = type.match(regexNumber); if (match) { let size = parseInt(match[2] || "256"); - if ((match[2] && String(size) !== match[2]) || (size % 8 !== 0) || size === 0 || size > 256) { - return (0, index_js_2.throwArgumentError)("invalid number type", "type", type); - } + (0, index_js_2.assertArgument)((!match[2] || match[2] === String(size)) && (size % 8 === 0) && size !== 0 && size <= 256, "invalid number type", "type", type); if (isArray) { size = 256; } @@ -39,12 +37,8 @@ function _pack(type, value, isArray) { match = type.match(regexBytes); if (match) { const size = parseInt(match[1]); - if (String(size) !== match[1] || size === 0 || size > 32) { - return (0, index_js_2.throwArgumentError)("invalid bytes type", "type", type); - } - if ((0, index_js_2.dataLength)(value) !== size) { - return (0, index_js_2.throwArgumentError)(`invalid value for ${type}`, "value", value); - } + (0, index_js_2.assertArgument)(String(size) === match[1] && size !== 0 && size <= 32, "invalid bytes type", "type", type); + (0, index_js_2.assertArgument)((0, index_js_2.dataLength)(value) === size, `invalid value for ${type}`, "value", value); if (isArray) { return (0, index_js_2.getBytes)((0, index_js_2.zeroPadBytes)(value, 32)); } @@ -54,22 +48,18 @@ function _pack(type, value, isArray) { if (match && Array.isArray(value)) { const baseType = match[1]; const count = parseInt(match[2] || String(value.length)); - if (count != value.length) { - (0, index_js_2.throwArgumentError)(`invalid array length for ${type}`, "value", value); - } + (0, index_js_2.assertArgument)(count === value.length, `invalid array length for ${type}`, "value", value); const result = []; value.forEach(function (value) { result.push(_pack(baseType, value, true)); }); return (0, index_js_2.getBytes)((0, index_js_2.concat)(result)); } - return (0, index_js_2.throwArgumentError)("invalid type", "type", type); + (0, index_js_2.assertArgument)(false, "invalid type", "type", type); } // @TODO: Array Enum function solidityPacked(types, values) { - if (types.length != values.length) { - (0, index_js_2.throwArgumentError)("wrong number of values; expected ${ types.length }", "values", values); - } + (0, index_js_2.assertArgument)(types.length === values.length, "wrong number of values; expected ${ types.length }", "values", values); const tight = []; types.forEach(function (type, index) { tight.push(_pack(type, values[index])); diff --git a/lib.commonjs/hash/solidity.js.map b/lib.commonjs/hash/solidity.js.map index 984763bdd..e333ddd27 100644 --- a/lib.commonjs/hash/solidity.js.map +++ b/lib.commonjs/hash/solidity.js.map @@ -1 +1 @@ -{"version":3,"file":"solidity.js","sourceRoot":"","sources":["../../src.ts/hash/solidity.ts"],"names":[],"mappings":";;;AAAA,iDAE4B;AAC5B,gDAG2B;AAG3B,MAAM,UAAU,GAAG,IAAI,MAAM,CAAC,iBAAiB,CAAC,CAAC;AACjD,MAAM,WAAW,GAAG,IAAI,MAAM,CAAC,mBAAmB,CAAC,CAAC;AACpD,MAAM,UAAU,GAAG,IAAI,MAAM,CAAC,sBAAsB,CAAC,CAAC;AAGtD,SAAS,KAAK,CAAC,IAAY,EAAE,KAAU,EAAE,OAAiB;IACtD,QAAO,IAAI,EAAE;QACT,KAAK,SAAS;YACV,IAAI,OAAO,EAAE;gBAAE,OAAO,IAAA,mBAAQ,EAAC,IAAA,uBAAY,EAAC,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC;aAAE;YAC1D,OAAO,IAAA,mBAAQ,EAAC,KAAK,CAAC,CAAC;QAC3B,KAAK,QAAQ;YACT,OAAO,IAAA,sBAAW,EAAC,KAAK,CAAC,CAAC;QAC9B,KAAK,OAAO;YACR,OAAO,IAAA,mBAAQ,EAAC,KAAK,CAAC,CAAC;QAC3B,KAAK,MAAM;YACP,KAAK,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAA,CAAC,CAAC,MAAM,CAAC,CAAC;YACnC,IAAI,OAAO,EAAE;gBAAE,OAAO,IAAA,mBAAQ,EAAC,IAAA,uBAAY,EAAC,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC;aAAE;YAC1D,OAAO,IAAA,mBAAQ,EAAC,KAAK,CAAC,CAAC;KAC9B;IAED,IAAI,KAAK,GAAI,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;IACrC,IAAI,KAAK,EAAE;QACP,IAAI,IAAI,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC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AAE,QAAQ,EAAE,MAAM,CAAC,CAAC;IAEvH,MAAM,KAAK,GAAsB,EAAE,CAAC;IACpC,KAAK,CAAC,OAAO,CAAC,UAAS,IAAI,EAAE,KAAK;QAC9B,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAC3C,CAAC,CAAC,CAAC;IACH,OAAO,IAAA,kBAAO,EAAC,IAAA,iBAAM,EAAC,KAAK,CAAC,CAAC,CAAC;AAClC,CAAC;AARD,wCAQC;AAED;;;;;;;;;;;;;GAaG;AACH,SAAgB,uBAAuB,CAAC,KAA4B,EAAE,MAA0B;IAC5F,OAAO,IAAA,oBAAU,EAAC,cAAc,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC;AACrD,CAAC;AAFD,0DAEC;AAED,SAAgB,oBAAoB,CAAC,KAA4B,EAAE,MAA0B;IACzF,OAAO,IAAA,iBAAO,EAAC,cAAc,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC;AAClD,CAAC;AAFD,oDAEC"} \ No newline at end of file diff --git a/lib.commonjs/hash/typed-data.js b/lib.commonjs/hash/typed-data.js index 9ff58f3d7..52b840038 100644 --- a/lib.commonjs/hash/typed-data.js +++ b/lib.commonjs/hash/typed-data.js @@ -36,9 +36,7 @@ const domainFieldNames = [ ]; function checkString(key) { return function (value) { - if (typeof (value) !== "string") { - (0, index_js_3.throwArgumentError)(`invalid domain value for ${JSON.stringify(key)}`, `domain.${key}`, value); - } + (0, index_js_3.assertArgument)(typeof (value) === "string", `invalid domain value for ${JSON.stringify(key)}`, `domain.${key}`, value); return value; }; } @@ -53,13 +51,11 @@ const domainChecks = { return (0, index_js_1.getAddress)(value).toLowerCase(); } catch (error) { } - return (0, index_js_3.throwArgumentError)(`invalid domain value "verifyingContract"`, "domain.verifyingContract", value); + (0, index_js_3.assertArgument)(false, `invalid domain value "verifyingContract"`, "domain.verifyingContract", value); }, salt: function (value) { const bytes = (0, index_js_3.getBytes)(value, "domain.salt"); - if (bytes.length !== 32) { - (0, index_js_3.throwArgumentError)(`invalid domain value "salt"`, "domain.salt", value); - } + (0, index_js_3.assertArgument)(bytes.length === 32, `invalid domain value "salt"`, "domain.salt", value); return (0, index_js_3.hexlify)(bytes); } }; @@ -70,16 +66,12 @@ function getBaseEncoder(type) { if (match) { const signed = (match[1] === ""); const width = parseInt(match[2] || "256"); - if (width % 8 !== 0 || width > 256 || (match[2] && match[2] !== String(width))) { - (0, index_js_3.throwArgumentError)("invalid numeric width", "type", type); - } + (0, index_js_3.assertArgument)(width % 8 === 0 && width !== 0 && width <= 256 && (match[2] == null || match[2] === String(width)), "invalid numeric width", "type", type); const boundsUpper = (0, index_js_3.mask)(BN_MAX_UINT256, signed ? (width - 1) : width); const boundsLower = signed ? ((boundsUpper + BN_1) * BN__1) : BN_0; return function (_value) { const value = (0, index_js_3.getBigInt)(_value, "value"); - if (value < boundsLower || value > boundsUpper) { - (0, index_js_3.throwArgumentError)(`value out-of-bounds for ${type}`, "value", value); - } + (0, index_js_3.assertArgument)(value >= boundsLower && value <= boundsUpper, `value out-of-bounds for ${type}`, "value", value); return (0, index_js_3.toHex)((0, index_js_3.toTwos)(value, 256), 32); }; } @@ -89,14 +81,10 @@ function getBaseEncoder(type) { const match = type.match(/^bytes(\d+)$/); if (match) { const width = parseInt(match[1]); - if (width === 0 || width > 32 || match[1] !== String(width)) { - (0, index_js_3.throwArgumentError)("invalid bytes width", "type", type); - } + (0, index_js_3.assertArgument)(width !== 0 && width <= 32 && match[1] === String(width), "invalid bytes width", "type", type); return function (value) { const bytes = (0, index_js_3.getBytes)(value); - if (bytes.length !== width) { - (0, index_js_3.throwArgumentError)(`invalid length for ${type}`, "value", value); - } + (0, index_js_3.assertArgument)(bytes.length === width, `invalid length for ${type}`, "value", value); return hexPadRight(value); }; } @@ -147,23 +135,17 @@ class TypedDataEncoder { const uniqueNames = new Set(); for (const field of types[name]) { // Check each field has a unique name - if (uniqueNames.has(field.name)) { - (0, index_js_3.throwArgumentError)(`duplicate variable name ${JSON.stringify(field.name)} in ${JSON.stringify(name)}`, "types", types); - } + (0, index_js_3.assertArgument)(!uniqueNames.has(field.name), `duplicate variable name ${JSON.stringify(field.name)} in ${JSON.stringify(name)}`, "types", types); uniqueNames.add(field.name); // Get the base type (drop any array specifiers) const baseType = (field.type.match(/^([^\x5b]*)(\x5b|$)/))[1] || null; - if (baseType === name) { - (0, index_js_3.throwArgumentError)(`circular type reference to ${JSON.stringify(baseType)}`, "types", types); - } + (0, index_js_3.assertArgument)(baseType !== name, `circular type reference to ${JSON.stringify(baseType)}`, "types", types); // Is this a base encoding type? const encoder = getBaseEncoder(baseType); if (encoder) { continue; } - if (!parents.has(baseType)) { - (0, index_js_3.throwArgumentError)(`unknown type ${JSON.stringify(baseType)}`, "types", types); - } + (0, index_js_3.assertArgument)(parents.has(baseType), `unknown type ${JSON.stringify(baseType)}`, "types", types); // Add linkage parents.get(baseType).push(name); links.get(name).add(baseType); @@ -171,18 +153,12 @@ class TypedDataEncoder { } // Deduce the primary type const primaryTypes = Array.from(parents.keys()).filter((n) => (parents.get(n).length === 0)); - if (primaryTypes.length === 0) { - (0, index_js_3.throwArgumentError)("missing primary type", "types", types); - } - else if (primaryTypes.length > 1) { - (0, index_js_3.throwArgumentError)(`ambiguous primary types or unused types: ${primaryTypes.map((t) => (JSON.stringify(t))).join(", ")}`, "types", types); - } + (0, index_js_3.assertArgument)(primaryTypes.length !== 0, "missing primary type", "types", types); + (0, index_js_3.assertArgument)(primaryTypes.length === 1, `ambiguous primary types or unused types: ${primaryTypes.map((t) => (JSON.stringify(t))).join(", ")}`, "types", types); (0, index_js_3.defineProperties)(this, { primaryType: primaryTypes[0] }); // Check for circular type references function checkCircular(type, found) { - if (found.has(type)) { - (0, index_js_3.throwArgumentError)(`circular type reference to ${JSON.stringify(type)}`, "types", types); - } + (0, index_js_3.assertArgument)(!found.has(type), `circular type reference to ${JSON.stringify(type)}`, "types", types); found.add(type); for (const child of links.get(type)) { if (!parents.has(child)) { @@ -226,11 +202,8 @@ class TypedDataEncoder { if (match) { const subtype = match[1]; const subEncoder = this.getEncoder(subtype); - const length = parseInt(match[3]); return (value) => { - if (length >= 0 && value.length !== length) { - (0, index_js_3.throwArgumentError)("array length mismatch; expected length ${ arrayLength }", "value", value); - } + (0, index_js_3.assertArgument)(!match[3] || parseInt(match[3]) === value.length, `array length mismatch; expected length ${parseInt(match[3])}`, "value", value); let result = value.map(subEncoder); if (this.#fullTypes.has(subtype)) { result = result.map(index_js_2.keccak256); @@ -254,13 +227,11 @@ class TypedDataEncoder { return (0, index_js_3.concat)(values); }; } - return (0, index_js_3.throwArgumentError)(`unknown type: ${type}`, "type", type); + (0, index_js_3.assertArgument)(false, `unknown type: ${type}`, "type", type); } encodeType(name) { const result = this.#fullTypes.get(name); - if (!result) { - return (0, index_js_3.throwArgumentError)(`unknown type: ${JSON.stringify(name)}`, "name", name); - } + (0, index_js_3.assertArgument)(result, `unknown type: ${JSON.stringify(name)}`, "name", name); return result; } encodeData(type, value) { @@ -286,12 +257,8 @@ class TypedDataEncoder { // Array const match = type.match(/^(.*)(\x5b(\d*)\x5d)$/); if (match) { - const subtype = match[1]; - const length = parseInt(match[3]); - if (length >= 0 && value.length !== length) { - (0, index_js_3.throwArgumentError)("array length mismatch; expected length ${ arrayLength }", "value", value); - } - return value.map((v) => this._visit(subtype, v, callback)); + (0, index_js_3.assertArgument)(!match[3] || parseInt(match[3]) === value.length, `array length mismatch; expected length ${parseInt(match[3])}`, "value", value); + return value.map((v) => this._visit(match[1], v, callback)); } // Struct const fields = this.types[type]; @@ -301,7 +268,7 @@ class TypedDataEncoder { return accum; }, {}); } - return (0, index_js_3.throwArgumentError)(`unknown type: ${type}`, "type", type); + (0, index_js_3.assertArgument)(false, `unknown type: ${type}`, "type", type); } visit(value, callback) { return this._visit(this.primaryType, value, callback); @@ -319,9 +286,7 @@ class TypedDataEncoder { const domainFields = []; for (const name in domain) { const type = domainFieldTypes[name]; - if (!type) { - (0, index_js_3.throwArgumentError)(`invalid typed-data domain key: ${JSON.stringify(name)}`, "domain", domain); - } + (0, index_js_3.assertArgument)(type, `invalid typed-data domain key: ${JSON.stringify(name)}`, "domain", domain); domainFields.push({ name, type }); } domainFields.sort((a, b) => { @@ -391,12 +356,8 @@ class TypedDataEncoder { }); const encoder = TypedDataEncoder.from(types); const typesWithDomain = Object.assign({}, types); - if (typesWithDomain.EIP712Domain) { - (0, index_js_3.throwArgumentError)("types must not contain EIP712Domain type", "types.EIP712Domain", types); - } - else { - typesWithDomain.EIP712Domain = domainTypes; - } + (0, index_js_3.assertArgument)(typesWithDomain.EIP712Domain == null, "types must not contain EIP712Domain type", "types.EIP712Domain", types); + typesWithDomain.EIP712Domain = domainTypes; // Validate the data structures and types encoder.encode(value); return { @@ -418,12 +379,10 @@ class TypedDataEncoder { case "bool": return !!value; case "string": - if (typeof (value) !== "string") { - (0, index_js_3.throwArgumentError)(`invalid string`, "value", value); - } + (0, index_js_3.assertArgument)(typeof (value) === "string", "invalid string", "value", value); return value; } - return (0, index_js_3.throwArgumentError)("unsupported type", "type", type); + (0, index_js_3.assertArgument)(false, "unsupported type", "type", type); }) }; } diff --git a/lib.commonjs/hash/typed-data.js.map b/lib.commonjs/hash/typed-data.js.map index 146140566..cd10d72f5 100644 --- a/lib.commonjs/hash/typed-data.js.map +++ b/lib.commonjs/hash/typed-data.js.map @@ -1 +1 @@ -{"version":3,"file":"typed-data.js","sourceRoot":"","sources":["../../src.ts/hash/typed-data.ts"],"names":[],"mappings":";;;AAAA,2FAA2F;AAC3F,kDAAiD;AACjD,iDAA+C;AAC/C,gDAG2B;AAE3B,mCAA6B;AAK7B,MAAM,OAAO,GAAG,IAAI,UAAU,CAAC,EAAE,CAAC,CAAC;AACnC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAEhB,MAAM,KAAK,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;AACzB,MA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AAK,CAAC,CAAC,CAAC;iBACnC;gBAED,cAAc;gBACd,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE;oBACtB,OAAO,IAAA,oBAAS,EAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC;iBACtC;gBAED,QAAQ,IAAI,EAAE;oBACV,KAAK,SAAS;wBACV,OAAO,KAAK,CAAC,WAAW,EAAE,CAAC;oBAC/B,KAAK,MAAM;wBACP,OAAO,CAAC,CAAC,KAAK,CAAC;oBACnB,KAAK,QAAQ;wBACT,IAAA,yBAAc,EAAC,OAAM,CAAC,KAAK,CAAC,KAAK,QAAQ,EAAE,gBAAgB,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;wBAC7E,OAAO,KAAK,CAAC;iBACpB;gBAED,IAAA,yBAAc,EAAC,KAAK,EAAE,kBAAkB,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;YAC5D,CAAC,CAAC;SACL,CAAC;IACN,CAAC;CACJ;AA/UD,4CA+UC"} \ No newline at end of file diff --git a/lib.commonjs/providers/abstract-provider.js b/lib.commonjs/providers/abstract-provider.js index c410015ce..06f88641f 100644 --- a/lib.commonjs/providers/abstract-provider.js +++ b/lib.commonjs/providers/abstract-provider.js @@ -24,6 +24,9 @@ function isPromise(value) { } function getTag(prefix, value) { return prefix + ":" + JSON.stringify(value, (k, v) => { + if (v == null) { + return "null"; + } if (typeof (v) === "bigint") { return `bigint:${v.toString()}`; } @@ -125,7 +128,7 @@ async function getSubscription(_event, provider) { } return { filter, tag: getTag("event", filter), type: "event" }; } - return (0, index_js_3.throwArgumentError)("unknown ProviderEvent", "event", _event); + (0, index_js_3.assertArgument)(false, "unknown ProviderEvent", "event", _event); } function getTime() { return (new Date()).getTime(); } class AbstractProvider { @@ -175,7 +178,7 @@ class AbstractProvider { if (this.#plugins.get(plugin.name)) { throw new Error(`cannot replace existing plugin: ${plugin.name} `); } - this.#plugins.set(plugin.name, plugin.validate(this)); + this.#plugins.set(plugin.name, plugin.connect(this)); return this; } getPlugin(name) { @@ -220,29 +223,27 @@ class AbstractProvider { if (url.indexOf("{data}") === -1) { request.body = { data, sender }; } + this.emit("debug", { action: "sendCcipReadFetchRequest", request, index: i, urls }); let errorMessage = "unknown error"; const resp = await request.send(); try { const result = resp.bodyJson; if (result.data) { + this.emit("debug", { action: "receiveCcipReadFetchResult", request, result }); return result.data; } if (result.message) { errorMessage = result.message; } + this.emit("debug", { action: "receiveCcipReadFetchError", request, result }); } catch (error) { } // 4xx indicates the result is not present; stop - if (resp.statusCode >= 400 && resp.statusCode < 500) { - return (0, index_js_3.throwError)(`response not found during CCIP fetch: ${errorMessage}`, "OFFCHAIN_FAULT", { - reason: "404_MISSING_RESOURCE", - transaction: tx, info: { url, errorMessage } - }); - } + (0, index_js_3.assert)(resp.statusCode < 400 || resp.statusCode >= 500, `response not found during CCIP fetch: ${errorMessage}`, "OFFCHAIN_FAULT", { reason: "404_MISSING_RESOURCE", transaction: tx, info: { url, errorMessage } }); // 5xx indicates server issue; try the next url errorMessages.push(errorMessage); } - return (0, index_js_3.throwError)(`error encountered during CCIP fetch: ${errorMessages.map((m) => JSON.stringify(m)).join(", ")}`, "OFFCHAIN_FAULT", { + (0, index_js_3.assert)(false, `error encountered during CCIP fetch: ${errorMessages.map((m) => JSON.stringify(m)).join(", ")}`, "OFFCHAIN_FAULT", { reason: "500_SERVER_ERROR", transaction: tx, info: { urls, errorMessages } }); @@ -263,14 +264,14 @@ class AbstractProvider { return new provider_js_1.TransactionResponse(tx, this); } _detectNetwork() { - return (0, index_js_3.throwError)("sub-classes must implement this", "UNSUPPORTED_OPERATION", { + (0, index_js_3.assert)(false, "sub-classes must implement this", "UNSUPPORTED_OPERATION", { operation: "_detectNetwork" }); } // Sub-classes should override this and handle PerformActionRequest requests, calling // the super for any unhandled actions. async _perform(req) { - return (0, index_js_3.throwError)(`unsupported method: ${req.method}`, "UNSUPPORTED_OPERATION", { + (0, index_js_3.assert)(false, `unsupported method: ${req.method}`, "UNSUPPORTED_OPERATION", { operation: req.method, info: req }); @@ -300,7 +301,7 @@ class AbstractProvider { return blockTag; } if ((0, index_js_3.isHexString)(blockTag)) { - if ((0, index_js_3.dataLength)(blockTag) === 32) { + if ((0, index_js_3.isHexString)(blockTag, 32)) { return blockTag; } return (0, index_js_3.toQuantity)(blockTag); @@ -314,7 +315,7 @@ class AbstractProvider { } return this.getBlockNumber().then((b) => (0, index_js_3.toQuantity)(b + blockTag)); } - return (0, index_js_3.throwArgumentError)("invalid blockTag", "blockTag", blockTag); + (0, index_js_3.assertArgument)(false, "invalid blockTag", "blockTag", blockTag); } _getFilter(filter) { // Create a canonical representation of the topics @@ -456,7 +457,7 @@ class AbstractProvider { } else { // Otherwise, we do not allow changes to the underlying network - (0, index_js_3.throwError)(`network changed: ${expected.chainId} => ${actual.chainId} `, "NETWORK_ERROR", { + (0, index_js_3.assert)(false, `network changed: ${expected.chainId} => ${actual.chainId} `, "NETWORK_ERROR", { event: "changed" }); } @@ -500,12 +501,10 @@ class AbstractProvider { }), "%response"); } async #call(tx, blockTag, attempt) { - if (attempt >= MAX_CCIP_REDIRECTS) { - (0, index_js_3.throwError)("CCIP read exceeded maximum redirections", "OFFCHAIN_FAULT", { - reason: "TOO_MANY_REDIRECTS", - transaction: Object.assign({}, tx, { blockTag, enableCcipRead: true }) - }); - } + (0, index_js_3.assert)(attempt < MAX_CCIP_REDIRECTS, "CCIP read exceeded maximum redirections", "OFFCHAIN_FAULT", { + reason: "TOO_MANY_REDIRECTS", + transaction: Object.assign({}, tx, { blockTag, enableCcipRead: true }) + }); // This came in as a PerformActionTransaction, so to/from are safe; we can cast const transaction = (0, provider_js_1.copyRequest)(tx); try { @@ -522,39 +521,41 @@ class AbstractProvider { ccipArgs = parseOffchainLookup((0, index_js_3.dataSlice)(error.data, 4)); } catch (error) { - return (0, index_js_3.throwError)(error.message, "OFFCHAIN_FAULT", { - reason: "BAD_DATA", - transaction, info: { data } + (0, index_js_3.assert)(false, error.message, "OFFCHAIN_FAULT", { + reason: "BAD_DATA", transaction, info: { data } }); } // Check the sender of the OffchainLookup matches the transaction - if (ccipArgs.sender.toLowerCase() !== txSender.toLowerCase()) { - return (0, index_js_3.throwError)("CCIP Read sender mismatch", "CALL_EXCEPTION", { - action: "call", - data, - reason: "OffchainLookup", - transaction: transaction, - invocation: null, - revert: { - signature: "OffchainLookup(address,string[],bytes,bytes4,bytes)", - name: "OffchainLookup", - args: ccipArgs.errorArgs - } - }); - } + (0, index_js_3.assert)(ccipArgs.sender.toLowerCase() === txSender.toLowerCase(), "CCIP Read sender mismatch", "CALL_EXCEPTION", { + action: "call", + data, + reason: "OffchainLookup", + transaction: transaction, + invocation: null, + revert: { + signature: "OffchainLookup(address,string[],bytes,bytes4,bytes)", + name: "OffchainLookup", + args: ccipArgs.errorArgs + } + }); const ccipResult = await this.ccipReadFetch(transaction, ccipArgs.calldata, ccipArgs.urls); - if (ccipResult == null) { - return (0, index_js_3.throwError)("CCIP Read failed to fetch data", "OFFCHAIN_FAULT", { - reason: "FETCH_FAILED", - transaction, info: { data: error.data, errorArgs: ccipArgs.errorArgs } - }); - } - return this.#call({ + (0, index_js_3.assert)(ccipResult != null, "CCIP Read failed to fetch data", "OFFCHAIN_FAULT", { + reason: "FETCH_FAILED", transaction, info: { data: error.data, errorArgs: ccipArgs.errorArgs } + }); + const tx = { to: txSender, - data: (0, index_js_3.concat)([ - ccipArgs.selector, encodeBytes([ccipResult, ccipArgs.extraData]) - ]), - }, blockTag, attempt + 1); + data: (0, index_js_3.concat)([ccipArgs.selector, encodeBytes([ccipResult, ccipArgs.extraData])]) + }; + this.emit("debug", { action: "sendCcipReadCall", transaction: tx }); + try { + const result = await this.#call(tx, blockTag, attempt + 1); + this.emit("debug", { action: "receiveCcipReadCallResult", transaction: Object.assign({}, tx), result }); + return result; + } + catch (error) { + this.emit("debug", { action: "receiveCcipReadCallError", transaction: Object.assign({}, tx), error }); + throw error; + } } throw error; } @@ -700,7 +701,7 @@ class AbstractProvider { } // ENS _getProvider(chainId) { - return (0, index_js_3.throwError)("provider cannot connect to target network", "UNSUPPORTED_OPERATION", { + (0, index_js_3.assert)(false, "provider cannot connect to target network", "UNSUPPORTED_OPERATION", { operation: "_getProvider()" }); } @@ -738,7 +739,8 @@ class AbstractProvider { throw new Error(); //return "TODO"; } - async waitForTransaction(hash, confirms = 1, timeout) { + async waitForTransaction(hash, _confirms, timeout) { + const confirms = (_confirms != null) ? _confirms : 1; if (confirms === 0) { return this.getTransactionReceipt(hash); } @@ -750,7 +752,7 @@ class AbstractProvider { if (receipt != null) { if (blockNumber - receipt.blockNumber + 1 >= confirms) { resolve(receipt); - this.off("block", listener); + //this.off("block", listener); if (timer) { clearTimeout(timer); timer = null; @@ -908,6 +910,12 @@ class AbstractProvider { catch (error) { } return !once; }); + if (sub.listeners.length === 0) { + if (sub.started) { + sub.subscriber.stop(); + } + this.#subs.delete(sub.tag); + } return (count > 0); } async listenerCount(event) { @@ -1011,7 +1019,7 @@ class AbstractProvider { if (this.#pausedState == !!dropWhilePaused) { return; } - return (0, index_js_3.throwError)("cannot change pause type; resume first", "UNSUPPORTED_OPERATION", { + (0, index_js_3.assert)(false, "cannot change pause type; resume first", "UNSUPPORTED_OPERATION", { operation: "pause" }); } diff --git a/lib.commonjs/providers/abstract-provider.js.map b/lib.commonjs/providers/abstract-provider.js.map index b4a9a4078..9a83c5e16 100644 --- a/lib.commonjs/providers/abstract-provider.js.map +++ b/lib.commonjs/providers/abstract-provider.js.map @@ -1 +1 @@ -{"version":3,"file":"abstract-provider.js","sourceRoot":"","sources":["../../src.ts/providers/abstract-provider.ts"],"names":[],"mappings":";AAAA,QAAQ;AACR,oBAAoB;AACpB,4EAA4E;AAC5E,4EAA4E;AAC5E,6EAA6E;AAC7E,6EAA6E;AAC7E,2EAA2E;;;AAE3E,kDAAqD;AACrD,sDAAsD;AACtD,gDAQ2B;AAE3B,uDAAgD;AAChD,2CAGqB;AACrB,6CAAuC;AACvC,+CAA0G;AAC1G,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IAAI,QAAQ,IAAI,IAAI,EAAE;YAAE,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC;SAAE;QACnD,MAAM,CAAC,QAAQ,GAAG,QAAQ,CAAC;KAC9B;IAAC,OAAO,KAAK,EAAE;QAAE,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;KAAE;IAEvE,oCAAoC;IACpC,IAAI,IAAA,oBAAS,EAAC,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,KAAK,IAAA,oBAAS,EAAC,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,EAAE;QACvD,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAC;KAC/D;IACD,MAAM,CAAC,QAAQ,GAAG,IAAA,oBAAS,EAAC,IAAI,EAAE,EAAE,EAAE,GAAG,CAAC,CAAC;IAE3C,6DAA6D;IAC7D,IAAI;QACA,MAAM,SAAS,GAAG,WAAW,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;QACzC,IAAI,SAAS,IAAI,IAAI,EAAE;YAAE,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC;SAAE;QACpD,MAAM,CAAC,SAAS,GAAG,SAAS,CAAC;KAChC;IAAC,OAAO,KAAK,EAAE;QAAE,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;KAAE;IAExE,MAAM,CAAC,SAAS,GAAG,yCAAyC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAO,MAAO,CAAC,CAAC,CAAC,CAAC,CAAA;IAGpG,OAAO,MAAM,CAAC;AAClB,CAAC"} \ No newline at end of file +{"version":3,"file":"abstract-provider.js","sourceRoot":"","sources":["../../src.ts/providers/abstract-provider.ts"],"names":[],"mappings":";AAAA,QAAQ;AACR,oBAAoB;AACpB,4EAA4E;AAC5E,4EAA4E;AAC5E,6EAA6E;AAC7E,6EAA6E;AAC7E,2EAA2E;;;AAE3E,kDAAqD;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905..5c78d1417 100644 --- a/lib.commonjs/providers/abstract-signer.js +++ b/lib.commonjs/providers/abstract-signer.js @@ -12,7 +12,7 @@ class AbstractSigner { if (this.provider) { return this.provider; } - return (0, index_js_2.throwError)("missing provider", "UNSUPPORTED_OPERATION", { operation }); + (0, index_js_2.assert)(false, "missing provider", "UNSUPPORTED_OPERATION", { operation }); } async getNonce(blockTag) { return this.#checkProvider("getTransactionCount").getTransactionCount(await this.getAddress(), blockTag); @@ -23,9 +23,7 @@ class AbstractSigner { let pop = Object.assign({}, tx); if (pop.to != null) { pop.to = provider.resolveName(pop.to).then((to) => { - if (to == null) { - return (0, index_js_2.throwArgumentError)("transaction to ENS name not configured", "tx.to", pop.to); - } + (0, index_js_2.assertArgument)(to != null, "transaction to ENS name not configured", "tx.to", pop.to); return to; }); } @@ -35,9 +33,7 @@ class AbstractSigner { this.getAddress(), this.resolveName(from) ]).then(([address, from]) => { - if (!from || address.toLowerCase() !== from.toLowerCase()) { - return (0, index_js_2.throwArgumentError)("transaction from mismatch", "tx.from", from); - } + (0, index_js_2.assertArgument)(from && address.toLowerCase() === from.toLowerCase(), "transaction from mismatch", "tx.from", from); return address; }); } @@ -59,9 +55,7 @@ class AbstractSigner { const network = await (this.provider).getNetwork(); if (pop.chainId != null) { const chainId = (0, index_js_2.getBigInt)(pop.chainId); - if (chainId !== network.chainId) { - (0, index_js_2.throwArgumentError)("transaction chainId mismatch", "tx.chainId", tx.chainId); - } + (0, index_js_2.assertArgument)(chainId === network.chainId, "transaction chainId mismatch", "tx.chainId", tx.chainId); } else { pop.chainId = network.chainId; @@ -69,10 +63,10 @@ class AbstractSigner { // Do not allow mixing pre-eip-1559 and eip-1559 properties const hasEip1559 = (pop.maxFeePerGas != null || pop.maxPriorityFeePerGas != null); if (pop.gasPrice != null && (pop.type === 2 || hasEip1559)) { - (0, index_js_2.throwArgumentError)("eip-1559 transaction do not support gasPrice", "tx", tx); + (0, index_js_2.assertArgument)(false, "eip-1559 transaction do not support gasPrice", "tx", tx); } else if ((pop.type === 0 || pop.type === 1) && hasEip1559) { - (0, index_js_2.throwArgumentError)("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas", "tx", tx); + (0, index_js_2.assertArgument)(false, "pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas", "tx", tx); } if ((pop.type === 2 || pop.type == null) && (pop.maxFeePerGas != null && pop.maxPriorityFeePerGas != null)) { // Fully-formed EIP-1559 transaction (skip getFeeData) @@ -82,11 +76,9 @@ class AbstractSigner { // Explicit Legacy or EIP-2930 transaction // We need to get fee data to determine things const feeData = await provider.getFeeData(); - if (feeData.gasPrice == null) { - (0, index_js_2.throwError)("network does not support gasPrice", "UNSUPPORTED_OPERATION", { - operation: "getGasPrice" - }); - } + (0, index_js_2.assert)(feeData.gasPrice != null, "network does not support gasPrice", "UNSUPPORTED_OPERATION", { + operation: "getGasPrice" + }); // Populate missing gasPrice if (pop.gasPrice == null) { pop.gasPrice = feeData.gasPrice; @@ -122,11 +114,9 @@ class AbstractSigner { else if (feeData.gasPrice != null) { // Network doesn't support EIP-1559... // ...but they are trying to use EIP-1559 properties - if (hasEip1559) { - (0, index_js_2.throwError)("network does not support EIP-1559", "UNSUPPORTED_OPERATION", { - operation: "populateTransaction" - }); - } + (0, index_js_2.assert)(hasEip1559, "network does not support EIP-1559", "UNSUPPORTED_OPERATION", { + operation: "populateTransaction" + }); // Populate missing fee data if (pop.gasPrice == null) { pop.gasPrice = feeData.gasPrice; @@ -137,7 +127,7 @@ class AbstractSigner { } else { // getFeeData has failed us. - (0, index_js_2.throwError)("failed to get consistent fee data", "UNSUPPORTED_OPERATION", { + (0, index_js_2.assert)(false, "failed to get consistent fee data", "UNSUPPORTED_OPERATION", { operation: "signer.getFeeData" }); } @@ -186,9 +176,7 @@ class VoidSigner extends AbstractSigner { return new VoidSigner(this.address, provider); } #throwUnsupported(suffix, operation) { - return (0, index_js_2.throwError)(`VoidSigner cannot sign ${suffix}`, "UNSUPPORTED_OPERATION", { - operation - }); + (0, index_js_2.assert)(false, `VoidSigner cannot sign ${suffix}`, "UNSUPPORTED_OPERATION", { operation }); } async signTransaction(tx) { this.#throwUnsupported("transactions", "signTransaction"); diff --git a/lib.commonjs/providers/abstract-signer.js.map b/lib.commonjs/providers/abstract-signer.js.map index cd9880969..9f9366040 100644 --- a/lib.commonjs/providers/abstract-signer.js.map +++ b/lib.commonjs/providers/abstract-signer.js.map @@ -1 +1 @@ -{"version":3,"file":"abstract-signer.js","sourceRoot":"","sources":["../../src.ts/providers/abstract-signer.ts"],"names":[],"mappings":";;;AAAA,sDAAsD;AACtD,gDAG2B;AAW3B,MAAsB,cAAc;IACvB,QAAQ,CAAK;IAEtB,YAAY,QAAY;QACpB,IAAA,2BAAgB,EAAiB,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,QAAQ,IAAI,IAAI,CAAC,EAAE,CAAC,CAAC;IAC7E,CAAC;IAKD,cAAc,CAAC,SAAiB;QAC5B,IAAI,IAAI,CAAC,QAAQ,EAAE;YAAE,OAAO,IAAI,CAAC,QAAQ,CAAC;SAAE;QAC5C,OAAO,IAAA,qBAAU,EAAC,kBAAkB,EAAE,uBAAuB,EAAE,EAAE,SAAS,EAAE,CAAC,CAAC;IAClF,CAAC;IAED,KAAK,CAAC,QAAQ,CAAC,QAAmB;QAC9B,OAAO,IAAI,CAAC,cAAc,CAAC,qBAAqB,CAAC,CAAC,mBAAmB,CAAC,MAAM,IAAI,CAAC,UAAU,EAAE,EAAE,QAAQ,CAAC,CAAC;IAC7G,CAAC;IAED,KAAK,CAAC,SAAS,CAAC,EAAU,EAAE,EAAsB;QAC9C,MAAM,QAAQ,GAAG,IAAI,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;QAEzC,mEAAmE;QACnE,IAAI,GAAG,GAAQ,MAAM,CAAC,MAAM,CAAC,EAAG,EAAE,EAAE,CAAC,CAAC;QAEtC,IAAI,GAAG,CAAC,EAAE,IAAI,IAAI,EAAE;YAChB,GAA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,YAAY,CAAC,EAAsB;QACrC,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC;IAC/C,CAAC;IAED,KAAK,CAAC,mBAAmB,CAAC,EAAsB;QAC5C,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,mBAAmB,CAAC,EAAE,CAAC,CAAC;IACtD,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,EAAsB;QACpC,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;IAC9C,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,EAAsB;QAC7B,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACvC,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,IAAY;QAC1B,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IAC1C,CAAC;IAED,KAAK,CAAC,eAAe,CAAC,EAAsB;QACxC,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC;IAClD,CAAC;IAED,KAAK,CAAC,eAAe,CAAC,EAAsB;QACxC,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC;IAClD,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,OAA4B;QAC1C,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IACnD,CAAC;IAED,KAAK,CAAC,aAAa,CAAC,MAAuB,EAAE,KAA4C,EAAE,KAA0B;QACjH,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAClE,CAAC;CACJ;AAvDD,sCAuDC"} \ No newline at end of file +{"version":3,"file":"abstract-signer.js","sourceRoot":"","sources":["../../src.ts/providers/abstract-signer.ts"],"names":[],"mapp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,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACvC,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,IAAY;QAC1B,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IAC1C,CAAC;IAED,KAAK,CAAC,eAAe,CAAC,EAAsB;QACxC,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC;IAClD,CAAC;IAED,KAAK,CAAC,eAAe,CAAC,EAAsB;QACxC,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC;IAClD,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,OAA4B;QAC1C,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IACnD,CAAC;IAED,KAAK,CAAC,aAAa,CAAC,MAAuB,EAAE,KAA4C,EAAE,KAA0B;QACjH,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAClE,CAAC;CACJ;AAvDD,sCAuDC"} \ No newline at end of file diff --git a/lib.commonjs/providers/ens-resolver.js b/lib.commonjs/providers/ens-resolver.js index c42642a2a..650b5a106 100644 --- a/lib.commonjs/providers/ens-resolver.js +++ b/lib.commonjs/providers/ens-resolver.js @@ -63,9 +63,7 @@ function encodeBytes(datas) { return (0, index_js_4.concat)(result); } function callAddress(value) { - if (value.length !== 66 || (0, index_js_4.dataSlice)(value, 0, 12) !== "0x000000000000000000000000") { - (0, index_js_4.throwArgumentError)("invalid call address", "value", value); - } + (0, index_js_4.assertArgument)(value.length === 66 && (0, index_js_4.dataSlice)(value, 0, 12) === "0x000000000000000000000000", "invalid call address", "value", value); return (0, index_js_1.getAddress)("0x" + value.substring(26)); } // @TODO: This should use the fetch-data:ipfs gateway @@ -78,7 +76,7 @@ function getIpfsLink(link) { link = link.substring(7); } else { - (0, index_js_4.throwArgumentError)("unsupported IPFS format", "link", link); + (0, index_js_4.assertArgument)(false, "unsupported IPFS format", "link", link); } return `https:/\/gateway.ipfs.io/ipfs/${link}`; } @@ -89,7 +87,7 @@ class MulticoinProviderPlugin { constructor(name) { (0, index_js_4.defineProperties)(this, { name }); } - validate(proivder) { + connect(proivder) { return this; } supportsCoinType(coinType) { @@ -103,7 +101,7 @@ class MulticoinProviderPlugin { } } exports.MulticoinProviderPlugin = MulticoinProviderPlugin; -const BasicMulticoinPluginId = "org.ethers.provider-prugins.basicmulticoin"; +const BasicMulticoinPluginId = "org.ethers.plugins.BasicMulticoinProviderPlugin"; class BasicMulticoinProviderPlugin extends MulticoinProviderPlugin { constructor() { super(BasicMulticoinPluginId); @@ -164,12 +162,10 @@ class EnsResolver { } try { let data = await this.provider.call(tx); - if (((0, index_js_4.getBytes)(data).length % 32) === 4) { - return (0, index_js_4.throwError)("execution reverted during JSON-RPC call (could not parse reason; invalid data length)", "CALL_EXCEPTION", { - action: "call", data, reason: null, transaction: tx, - invocation: null, revert: null - }); - } + (0, index_js_4.assert)(((0, index_js_4.getBytes)(data).length % 32) !== 4, "execution reverted during JSON-RPC call (could not parse reason; invalid data length)", "CALL_EXCEPTION", { + action: "call", data, reason: null, transaction: tx, + invocation: null, revert: null + }); if (wrapped) { return parseBytes(data, 0); } @@ -224,7 +220,7 @@ class EnsResolver { if (address != null) { return address; } - return (0, index_js_4.throwError)(`invalid coin data`, "UNSUPPORTED_OPERATION", { + (0, index_js_4.assert)(false, `invalid coin data`, "UNSUPPORTED_OPERATION", { operation: `getAddress(${coinType})`, info: { coinType, data } }); @@ -262,7 +258,7 @@ class EnsResolver { if (swarm && swarm[1].length === 64) { return `bzz:/\/${swarm[1]}`; } - return (0, index_js_4.throwError)(`invalid or unsupported content hash data`, "UNSUPPORTED_OPERATION", { + (0, index_js_4.assert)(false, `invalid or unsupported content hash data`, "UNSUPPORTED_OPERATION", { operation: "getContentHash()", info: { data: hexBytes } }); @@ -419,11 +415,9 @@ class EnsResolver { const network = await provider.getNetwork(); const ensPlugin = network.getPlugin("org.ethers.network-plugins.ens"); // No ENS... - if (!ensPlugin) { - return (0, index_js_4.throwError)("network does not support ENS", "UNSUPPORTED_OPERATION", { - operation: "getResolver", info: { network: network.name } - }); - } + (0, index_js_4.assert)(ensPlugin, "network does not support ENS", "UNSUPPORTED_OPERATION", { + operation: "getResolver", info: { network: network.name } + }); try { // keccak256("resolver(bytes32)") const addrData = await provider.call({ diff --git a/lib.commonjs/providers/ens-resolver.js.map b/lib.commonjs/providers/ens-resolver.js.map index 15843ef2f..82549fd68 100644 --- a/lib.commonjs/providers/ens-resolver.js.map +++ b/lib.commonjs/providers/ens-resolver.js.map @@ -1 +1 @@ -{"version":3,"file":"ens-resolver.js","sourceRoot":"","sources":["../../src.ts/providers/ens-resolver.ts"],"names":[],"mappings":";;;AAAA,kDAAiD;AACjD,oDAA8D;AAC9D,+CAAuD;AACvD,gDAM2B;AAQ3B,MAAM,IAAI,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AAEvB,MAAM,KAAK,GAAG,IAAI,UAAU,CAAC,EAAG,CAAC,CAAC;AAElC,SAAS,UAAU,CAAC,MAAc,EAAE,KAAa;IAC7C,IAAI,MAAM,KAAK,IAAI,EAAE;QAAE,OAAO,IAAI,CAAC;KAAE;IAErC,MAAM,MAAM,GAAG,IAAA,mBAAQ,EAAC,IAAA,oBAAS,EAAC,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,EAAE,CAAC,CAAC,CAAC;IAC9D,MAAM,MAAM,GAAG,IAAA,mBAAQ,EAAC,IAAA,oBAAS,EAAC,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,EAAE,CAAC,CAAC,CAAC;IAEhE,OAAO,IAAA,oBAAS,EAAC,MAAM,EAAE,MAAM,GAAG,EAAE,EAAE,MAAM,GAAG,EAAE,GAAG,MAAM,CAAC,CAAC;AAChE,CAAC;AAED,SAAS,WAAW,CAAC,MAAc,EAA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,gBAAgB,EAAE,CAAC,EAAE;oBAAE,OAAO,IAAI,CAAC;iBAAE;gBAElF,OAAO,QAAQ,CAAC;aACnB;YAED,sBAAsB;YACtB,WAAW,GAAG,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;SAC3D;IACL,CAAC;CACJ;AA1XD,kCA0XC"} \ No newline at end of file diff --git a/lib.commonjs/providers/format.js b/lib.commonjs/providers/format.js index 4bbb0d1ce..a119bf303 100644 --- a/lib.commonjs/providers/format.js +++ b/lib.commonjs/providers/format.js @@ -48,7 +48,7 @@ function object(format, altNames) { } catch (error) { const message = (error instanceof Error) ? error.message : "not-an-error"; - (0, index_js_4.throwError)(`invalid value for value.${key} (${message})`, "BAD_DATA", { value }); + (0, index_js_4.assert)(false, `invalid value for value.${key} (${message})`, "BAD_DATA", { value }); } } return result; @@ -64,20 +64,16 @@ function formatBoolean(value) { case "false": return false; } - return (0, index_js_4.throwArgumentError)(`invalid boolean; ${JSON.stringify(value)}`, "value", value); + (0, index_js_4.assertArgument)(false, `invalid boolean; ${JSON.stringify(value)}`, "value", value); } exports.formatBoolean = formatBoolean; function formatData(value) { - if (!(0, index_js_4.isHexString)(value, true)) { - (0, index_js_4.throwArgumentError)("", "value", value); - } + (0, index_js_4.assertArgument)((0, index_js_4.isHexString)(value, true), "invalid data", "value", value); return value; } exports.formatData = formatData; function formatHash(value) { - if (!(0, index_js_4.isHexString)(value, 32)) { - (0, index_js_4.throwArgumentError)("", "value", value); - } + (0, index_js_4.assertArgument)((0, index_js_4.isHexString)(value, 32), "invalid hash", "value", value); return value; } exports.formatHash = formatHash; @@ -144,7 +140,7 @@ exports.formatTransactionReceipt = object({ hash: formatHash, logs: arrayOf(exports.formatReceiptLog), blockNumber: index_js_4.getNumber, - confirmations: allowNull(index_js_4.getNumber, null), + //confirmations: allowNull(getNumber, null), cumulativeGasUsed: index_js_4.getBigInt, effectiveGasPrice: allowNull(index_js_4.getBigInt), status: allowNull(index_js_4.getNumber), @@ -172,7 +168,7 @@ function formatTransactionResponse(value) { blockHash: allowNull(formatHash, null), blockNumber: allowNull(index_js_4.getNumber, null), transactionIndex: allowNull(index_js_4.getNumber, null), - confirmations: allowNull(index_js_4.getNumber, null), + //confirmations: allowNull(getNumber, null), from: index_js_1.getAddress, // either (gasPrice) or (maxPriorityFeePerGas + maxFeePerGas) must be set gasPrice: allowNull(index_js_4.getBigInt), @@ -199,7 +195,12 @@ function formatTransactionResponse(value) { result.accessList = []; } // Compute the signature - result.signature = index_js_2.Signature.from(value); + if (value.signature) { + result.signature = index_js_2.Signature.from(value.signature); + } + else { + result.signature = index_js_2.Signature.from(value); + } // Some backends omit ChainId on legacy transactions, but we can compute it if (result.chainId == null) { const chainId = result.signature.legacyChainId; diff --git a/lib.commonjs/providers/format.js.map b/lib.commonjs/providers/format.js.map index 7e4a49741..96aca3b21 100644 --- a/lib.commonjs/providers/format.js.map +++ b/lib.commonjs/providers/format.js.map @@ -1 +1 @@ -{"version":3,"file":"format.js","sourceRoot":"","sources":["../../src.ts/providers/format.ts"],"names":[],"mappings":";;;AACA,kDAAmE;AACnE,iDAA8C;AAC9C,sDAAwD;AACxD,gDAG2B;AAI3B,MAAM,IAAI,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AAIvB,SAAgB,SAAS,CAAC,MAAkB,EAAE,SAAe;IACzD,OAAO,CAAC,UAAS,KAAU;QACvB,IAAI,KAAK,IAAI,IAAI,EAAE;YAAE,OAAO,SAAS,CAAC;SAAE;QACxC,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;IACzB,CAAC,CAAC,CAAC;AACP,CAAC;AALD,8BAKC;AAED,SAAgB,OAAO,CAAC,MAAkB;IACtC,OAAO,CAAC,CAAC,KAAU,EAAE,EAAE;QACnB,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;YAAE,MAAM,IAAI,KAAK,CAAC,cA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,EAAE;QACxB,MAAM,OAAO,GAAG,MAAM,CAAC,SAAS,CAAC,aAAa,CAAC;QAC/C,IAAI,OAAO,IAAI,IAAI,EAAE;YAAE,MAAM,CAAC,OAAO,GAAG,OAAO,CAAC;SAAE;KACrD;IAGD,uBAAuB;IACvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAgCE;IAEF,oCAAoC;IACpC,IAAI,MAAM,CAAC,SAAS,IAAI,IAAA,oBAAS,EAAC,MAAM,CAAC,SAAS,CAAC,KAAK,IAAI,EAAE;QAC1D,MAAM,CAAC,SAAS,GAAG,IAAI,CAAC;KAC3B;IAED,OAAO,MAAM,CAAC;AAClB,CAAC;AA3GD,8DA2GC"} \ No newline at end of file +{"version":3,"file":"format.js","sourceRoot":"","sources":["../../src.ts/providers/format.ts"],"names":[],"mappings":";;;AACA,kDAAmE;AACnE,iDAA8C;AAC9C,sDAAwD;AACxD,gDAG2B;AAI3B,MAAM,IAAI,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AAIvB,SAAgB,SAAS,CAAC,MAAkB,EAAE,SAAe;IACzD,OAAO,CAAC,UAAS,KAAU;QACvB,IAAI,KAAK,IAAI,IAAI,EAAE;YAAE,OAAO,SAAS,CAAC;SAAE;QACxC,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;IACzB,CAAC,CAAC,CAAC;AACP,CAAC;AALD,8BAKC;AAED,SAAgB,OAAO,CAAC,MAAkB;IACtC,OAAO,CAAC,CAAC,KAAU,EAAE,EAAE;QACnB,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;YAAE,MAAM,IAAI,KAAK,CAAC,cAAc,CAAC,CAAC;SAAE;QAC/D,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;IACvC,CAAC,CAAC,CAAC;AACP,CAAC;AALD,0BAKC;AAED,+DAA+D;AAC/D,kEAAkE;AACl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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAgCE;IAEF,oCAAoC;IACpC,IAAI,MAAM,CAAC,SAAS,IAAI,IAAA,oBAAS,EAAC,MAAM,CAAC,SAAS,CAAC,KAAK,IAAI,EAAE;QAC1D,MAAM,CAAC,SAAS,GAAG,IAAI,CAAC;KAC3B;IAED,OAAO,MAAM,CAAC;AAClB,CAAC;AA/GD,8DA+GC"} \ No newline at end of file diff --git a/lib.commonjs/providers/network.js b/lib.commonjs/providers/network.js index 1657e0925..edebb514b 100644 --- a/lib.commonjs/providers/network.js +++ b/lib.commonjs/providers/network.js @@ -149,7 +149,7 @@ class Network { if (typeof (network) === "bigint") { return new Network("unknown", network); } - (0, index_js_2.throwArgumentError)("unknown network", "network", network); + (0, index_js_2.assertArgument)(false, "unknown network", "network", network); } // Clonable with network-like abilities if (typeof (network.clone) === "function") { @@ -160,9 +160,7 @@ class Network { } // Networkish if (typeof (network) === "object") { - if (typeof (network.name) !== "string" || typeof (network.chainId) !== "number") { - (0, index_js_2.throwArgumentError)("invalid network object name or chainId", "network", network); - } + (0, index_js_2.assertArgument)(typeof (network.name) === "string" && typeof (network.chainId) === "number", "invalid network object name or chainId", "network", network); const custom = new Network((network.name), (network.chainId)); if (network.ensAddress || network.ensNetwork != null) { custom.attachPlugin(new plugins_network_js_1.EnsPlugin(network.ensAddress, network.ensNetwork)); @@ -172,7 +170,7 @@ class Network { //} return custom; } - return (0, index_js_2.throwArgumentError)("invalid network", "network", network); + (0, index_js_2.assertArgument)(false, "invalid network", "network", network); } /** * Register %%nameOrChainId%% with a function which returns @@ -184,7 +182,7 @@ class Network { } const existing = Networks.get(nameOrChainId); if (existing) { - (0, index_js_2.throwArgumentError)(`conflicting network for ${JSON.stringify(existing.name)}`, "nameOrChainId", nameOrChainId); + (0, index_js_2.assertArgument)(false, `conflicting network for ${JSON.stringify(existing.name)}`, "nameOrChainId", nameOrChainId); } Networks.set(nameOrChainId, networkFunc); } diff --git a/lib.commonjs/providers/network.js.map b/lib.commonjs/providers/network.js.map index 88832b6b2..c1047898c 100644 --- a/lib.commonjs/providers/network.js.map +++ b/lib.commonjs/providers/network.js.map @@ -1 +1 @@ -{"version":3,"file":"network.js","sourceRoot":"","sources":["../../src.ts/providers/network.ts"],"names":[],"mappings":";;;AAAA,sDAAwD;AACxD,gDAE2B;AAE3B,6DAAgE;AA2BhE;;;;;;;;;;;;;;;;EAgBE;AAEF;;;;;;;;;;;;;EAaE;AAEF,uEAAuE;AACvE,sEAAsE;AACtE,uEAAuE;AACvE,uDAAuD;AACvD;;;;;;;;;;;;;;EAcE;AAEF,MAAM,QAAQ,GAAwC,IAAI,GAAG,EAAE,CAAC;AAEhE,2EAA2E;AAE3E,MAAa,OAAO;IAChB,MAAM,CAKJ;IAEF,YAAY,IAAY,EAAE,QAAsB;QAC5C,MAAM,OAAO,GAAG,IAAA,oBAAS,EAAC,QAAQ,CAAC,CAAC;QACpC,MAAM,OAAO,GAAG,IAAI,GAAG,EAAE,CAAC;QAC1B,IAAI,CAAC,MAAM,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;IAC7C,CAAC;IAED,MAAM;QACF,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC;IACtD,CAAC;IAED,IAAI,IAAI,KAAa,OAAO,IAAA,mBAAQ,EAAC,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;IAC5D,IAAI,IAAI,CAAC,KAAa,IAAI,IAAA,mBAAQ,EAAC,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;IAEjE,IAAI,OAAO,KAAa,OAAO,IAAA,mBAAQ,EAAC,IAAI,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC;IAClE,IAAI,OAAO,CAAC,KAAmB,IAAI,IAAA,mBAAQ,EAAC,IAAI,CAAC,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ACtB,UAAU,EAAE,CAAC;QACrB,mCAAmC;QAC3B,SAAS,EAAE;YACP,MAAM,EAAE,oCAAoC;YAC5C,GAAG,EAAE,+BAA+B;SACvC;KACJ,CAAC,CAAC;IACH,WAAW,CAAC,aAAa,EAAE,KAAK,EAAE;QACtC,mCAAmC;QAC3B,SAAS,EAAE;YACP,MAAM,EAAE,oCAAoC;YAC5C,GAAG,EAAE,uCAAuC;SAC/C;KACJ,CAAC,CAAC;IAEH,WAAW,CAAC,KAAK,EAAE,EAAE,EAAE;QACnB,UAAU,EAAE,CAAC;QACb,SAAS,EAAE;YACP,MAAM,EAAE,oCAAoC;YAC5C,GAAG,EAAE,yBAAyB;SACjC;KACJ,CAAC,CAAC;IACH,WAAW,CAAC,MAAM,EAAE,EAAE,EAAE;QACpB,SAAS,EAAE;YACP,MAAM,EAAE,oCAAoC;YAC5C,GAAG,EAAE,iCAAiC;SACzC;KACJ,CAAC,CAAC;AACP,CAAC"} \ No newline at end of file +{"version":3,"file":"network.js","sourceRoot":"","sources":["../../src.ts/providers/network.ts"],"names":[],"mappings":";;;AAAA,sDAAwD;AACxD,gDAE2B;AAE3B,6DAAgE;AA2BhE;;;;;;;;;;;;;;;;EAgBE;AAEF;;;;;;;;;;;;;EAaE;AAEF,uEAAuE;AACvE,sEAAsE;AACtE,uEAAuE;AACvE,uDAAuD;AACvD;;;;;;;;;;;;;;EAcE;AAEF,MAAM,QAAQ,GAAwC,IAAI,GAAG,EAAE,CAAC;AAEhE,2EAA2E;AAE3E,MAAa,OAAO;IAChB,MAAM,CAKJ;IAEF,YAAY,IAAY,EAAE,QAAsB;QAC5C,MAAM,OAAO,GAAG,IAAA,oBAAS,EAAC,QAAQ,CAAC,CAAC;QACpC,MAAM,OAAO,GAAG,IAAI,GAAG,EAAE,CAAC;QAC1B,IAAI,CAAC,MAAM,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;IAC7C,CAAC;IAED,MAAM;QACF,OAAO,EAAE,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AAE,CAAC,EAAE,EAAE,UAAU,EAAE,CAAC,EAAE,CAAC,CAAC;IAC7C,WAAW,CAAC,QAAQ,EAAE,CAAC,EAAE,EAAE,UAAU,EAAE,CAAC,EAAE,CAAC,CAAC;IAC5C,WAAW,CAAC,OAAO,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,CAAC;IAE7C,WAAW,CAAC,SAAS,EAAE,EAAE,EAAE,EAAG,CAAC,CAAC;IAChC,WAAW,CAAC,cAAc,EAAE,CAAC,EAAE,EAAG,CAAC,CAAC;IAEpC,WAAW,CAAC,MAAM,EAAE,GAAG,EAAE,EAAE,UAAU,EAAE,CAAC,EAAE,CAAC,CAAC;IAE5C,mDAAmD;IACnD,WAAW,CAAC,OAAO,EAAE,GAAG,EAAE;QACtB,UAAU,EAAE,CAAC;QACrB,mCAAmC;QAC3B,SAAS,EAAE;YACP,MAAM,EAAE,oCAAoC;YAC5C,GAAG,EAAE,+BAA+B;SACvC;KACJ,CAAC,CAAC;IACH,WAAW,CAAC,aAAa,EAAE,KAAK,EAAE;QACtC,mCAAmC;QAC3B,SAAS,EAAE;YACP,MAAM,EAAE,oCAAoC;YAC5C,GAAG,EAAE,uCAAuC;SAC/C;KACJ,CAAC,CAAC;IAEH,WAAW,CAAC,KAAK,EAAE,EAAE,EAAE;QACnB,UAAU,EAAE,CAAC;QACb,SAAS,EAAE;YACP,MAAM,EAAE,oCAAoC;YAC5C,GAAG,EAAE,yBAAyB;SACjC;KACJ,CAAC,CAAC;IACH,WAAW,CAAC,MAAM,EAAE,EAAE,EAAE;QACpB,SAAS,EAAE;YACP,MAAM,EAAE,oCAAoC;YAC5C,GAAG,EAAE,iCAAiC;SACzC;KACJ,CAAC,CAAC;AACP,CAAC"} \ No newline at end of file diff --git a/lib.commonjs/providers/plugin-fallback.js b/lib.commonjs/providers/plugin-fallback.js new file mode 100644 index 000000000..31f21f690 --- /dev/null +++ b/lib.commonjs/providers/plugin-fallback.js @@ -0,0 +1,31 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PossiblyPrunedTransactionPlugin = exports.CheckQualifiedPlugin = exports.PluginIdFallbackProvider = void 0; +const index_js_1 = require("../utils/index.js"); +exports.PluginIdFallbackProvider = "org.ethers.plugins.QualifiedPlugin"; +class CheckQualifiedPlugin { + constructor() { + (0, index_js_1.defineProperties)(this, { name: exports.PluginIdFallbackProvider }); + } + connect(provider) { + return this; + } + // Retruns true if this value should be considered qualified for + // inclusion in the quorum. + isQualified(action, result) { + return true; + } +} +exports.CheckQualifiedPlugin = CheckQualifiedPlugin; +class PossiblyPrunedTransactionPlugin extends CheckQualifiedPlugin { + isQualified(action, result) { + if (action.method === "getTransaction" || action.method === "getTransactionReceipt") { + if (result == null) { + return false; + } + } + return super.isQualified(action, result); + } +} +exports.PossiblyPrunedTransactionPlugin = PossiblyPrunedTransactionPlugin; +//# sourceMappingURL=plugin-fallback.js.map \ No newline at end of file diff --git a/lib.commonjs/providers/plugin-fallback.js.map b/lib.commonjs/providers/plugin-fallback.js.map new file mode 100644 index 000000000..5da761132 --- /dev/null +++ b/lib.commonjs/providers/plugin-fallback.js.map @@ -0,0 +1 @@ +{"version":3,"file":"plugin-fallback.js","sourceRoot":"","sources":["../../src.ts/providers/plugin-fallback.ts"],"names":[],"mappings":";;;AAEA,gDAAqD;AAKxC,QAAA,wBAAwB,GAAG,oCAAoC,CAAC;AAE7E,MAAa,oBAAoB;IAG7B;QACI,IAAA,2BAAgB,EAAuB,IAAI,EAAE,EAAE,IAAI,EAAE,gCAAwB,EAAE,CAAC,CAAC;IACrF,CAAC;IAED,OAAO,CAAC,QAA0B;QAC9B,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,gEAAgE;IAChE,2BAA2B;IAC3B,WAAW,CAAC,MAA4B,EAAE,MAAW;QACjD,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AAhBD,oDAgBC;AAED,MAAa,+BAAgC,SAAQ,oBAAoB;IACrE,WAAW,CAAC,MAA4B,EAAE,MAAW;QACjD,IAAI,MAAM,CAAC,MAAM,KAAK,gBAAgB,IAAI,MAAM,CAAC,MAAM,KAAK,uBAAuB,EAAE;YACjF,IAAI,MAAM,IAAI,IAAI,EAAE;gBAAE,OAAO,KAAK,CAAC;aAAE;SACxC;QACD,OAAO,KAAK,CAAC,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7C,CAAC;CACJ;AAPD,0EAOC"} \ No newline at end of file diff --git a/lib.commonjs/providers/plugins-network.js b/lib.commonjs/providers/plugins-network.js index 145f26317..7352b54e7 100644 --- a/lib.commonjs/providers/plugins-network.js +++ b/lib.commonjs/providers/plugins-network.js @@ -30,9 +30,7 @@ class GasCostPlugin extends NetworkPlugin { if (value == null) { value = nullish; } - if (typeof (value) !== "number") { - (0, index_js_1.throwArgumentError)(`invalud value for ${name}`, "costs", costs); - } + (0, index_js_1.assertArgument)(typeof (value) === "number", `invalud value for ${name}`, "costs", costs); props[name] = value; } set("txBase", 21000); diff --git a/lib.commonjs/providers/plugins-network.js.map b/lib.commonjs/providers/plugins-network.js.map index 95f9262f6..70d051ac4 100644 --- a/lib.commonjs/providers/plugins-network.js.map +++ b/lib.commonjs/providers/plugins-network.js.map @@ -1 +1 @@ -{"version":3,"file":"plugins-network.js","sourceRoot":"","sources":["../../src.ts/providers/plugins-network.ts"],"names":[],"mappings":";;;AAAA,0DAA0D;AAE1D,gDAAuD;AAKvD,MAAM,UAAU,GAAG,4CAA4C,CAAC;AAEhE,MAAa,aAAa;IACb,IAAI,CAAU;IAEvB,YAAY,IAAY;QACpB,IAAA,gCAAgB,EAAgB,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;IACpD,CAAC;IAED,KAAK;QACD,OAAO,IAAI,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACxC,CAAC;CAKJ;AAdD,sCAcC;AAcD,MAAa,aAAc,SAAQ,aAAa;IACnC,cAAc,CAAU;IAExB,MAAM,C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Q,CAAC,QAAkB,EAAE,KAA0B;QACzD,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;IAClD,CAAC;IAED,KAAK,CAAC,wBAAwB,CAAC,QAAkB,EAAE,KAA6C;QAC5F,OAAO,MAAM,IAAI,CAAC,iBAAiB,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;IACzD,CAAC;IAED,KAAK;QACD,OAAO,IAAI,wBAAwB,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,iBAAiB,CAAC,CAAC;IACjF,CAAC;CACJ;AArBD,4DAqBC"} \ No newline at end of file +{"version":3,"file":"plugins-network.js","sourceRoot":"","sources":["../../src.ts/providers/plugins-network.ts"],"names":[],"mappings":";;;AAAA,0DAA0D;AAE1D,gDAAmD;AAKnD,MAAM,UAAU,GAAG,4CAA4C,CAAC;AAEhE,MAAa,aAAa;IACb,IAAI,CAAU;IAEvB,YAAY,IAAY;QACpB,IAAA,gCAAgB,EAAgB,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;IACpD,CAAC;IAED,KAAK;QACD,OAAO,IAAI,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACxC,CAAC;CAKJ;AAdD,sCAcC;AAcD,MAAa,aAAc,SAAQ,aAAa;IACnC,cAAc,CAAU;IAExB,MAAM,CAAU;IAChB,QAAQ,CAAU;IAClB,UAAU,CAAU;IACpB,aAAa,CAAU;IACvB,sBAAsB,CAAU;IAChC,mBAAmB,CAAU;IAEtC,YAAY,iBAAyB,CAAC,EAAE,KAAyB;QAC7D,KAAK,CAAC,uCAAwC,CAAC,cAAc,IAAI,CAAC,CAAE,EAAE,CAAC,CAAC;QAExE,MAAM,KAAK,GAA2B,EAAE,cAAc,EAAE,CAAC;QACzD,SAAS,GAAG,CAAC,IAA6B,EAAE,OAAe;YACvD,IAAI,KAAK,GAAG,CAAC,KAAK,IAAI,EAAG,CAAC,CAAC,IAAI,CAAC,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ff --git a/lib.commonjs/providers/provider-alchemy.js b/lib.commonjs/providers/provider-alchemy.js index 747826ca4..944f2a798 100644 --- a/lib.commonjs/providers/provider-alchemy.js +++ b/lib.commonjs/providers/provider-alchemy.js @@ -25,7 +25,7 @@ function getHost(name) { case "optimism-goerli": return "opt-goerli.g.alchemy.com"; } - return (0, index_js_1.throwArgumentError)("unsupported network", "network", name); + (0, index_js_1.assertArgument)(false, "unsupported network", "network", name); } class AlchemyProvider extends provider_jsonrpc_js_1.JsonRpcProvider { apiKey; @@ -63,19 +63,17 @@ class AlchemyProvider extends provider_jsonrpc_js_1.JsonRpcProvider { } catch (error) { } if (data) { - if (error) { - (0, index_js_1.throwError)("an error occurred during transaction executions", "CALL_EXCEPTION", { - action: "getTransactionResult", - data, - reason: null, - transaction: tx, - invocation: null, - revert: null // @TODO - }); - } + (0, index_js_1.assert)(!error, "an error occurred during transaction executions", "CALL_EXCEPTION", { + action: "getTransactionResult", + data, + reason: null, + transaction: tx, + invocation: null, + revert: null // @TODO + }); return data; } - return (0, index_js_1.throwError)("could not parse trace result", "BAD_DATA", { value: trace }); + (0, index_js_1.assert)(false, "could not parse trace result", "BAD_DATA", { value: trace }); } return await super._perform(req); } diff --git a/lib.commonjs/providers/provider-alchemy.js.map b/lib.commonjs/providers/provider-alchemy.js.map index efe3fba28..5b0d0e4c6 100644 --- a/lib.commonjs/providers/provider-alchemy.js.map +++ b/lib.commonjs/providers/provider-alchemy.js.map @@ -1 +1 @@ -{"version":3,"file":"provider-alchemy.js","sourceRoot":"","sources":["../../src.ts/providers/provider-alchemy.ts"],"names":[],"mappings":";;;AACA,gDAG2B;AAE3B,iDAAqD;AACrD,6CAAuC;AACvC,+DAAwD;AAOxD,MAAM,aAAa,GAAG,kCAAkC,CAAA;AAExD,SAAS,OAAO,CAAC,IAAY;IACzB,QAAO,IAAI,EAAE;QACT,KAAK,SAAS;YACV,OAAO,2BAA2B,CAAC;QACvC,KAAK,QAAQ;YACT,OAAO,0BAA0B,CAA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C;SAAE;QAE/C,MAAM,OAAO,GAAG,IAAI,uBAAY,CAAC,YAAa,OAAO,CAAC,OAAO,CAAC,IAAI,CAAE,OAAQ,MAAO,EAAE,CAAC,CAAC;QACvF,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC;QAEzB,IAAI,MAAM,KAAK,aAAa,EAAE;YAC1B,OAAO,CAAC,SAAS,GAAG,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE;gBACrD,IAAA,kCAAmB,EAAC,SAAS,CAAC,CAAC;gBAC/B,OAAO,IAAI,CAAC;YAChB,CAAC,CAAA;SACJ;QAED,OAAO,OAAO,CAAC;IACnB,CAAC;CACJ;AA5ED,0CA4EC"} \ No newline at end of file +{"version":3,"file":"provider-alchemy.js","sourceRoot":"","sources":["../../src.ts/providers/provider-alchemy.ts"],"names":[],"mappings":";;;AACA,gDAG2B;AAE3B,iDAAqD;AACrD,6CAAuC;AACvC,+DAAwD;AAOxD,MAAM,aAAa,GAAG,kCAAkC,CAAA;AAExD,SAAS,OAAO,CAAC,IAAY;IACzB,QAAO,IAAI,EAAE;QACT,KAAK,SAAS;YACV,OAAO,2BAA2B,CAAC;QACvC,KAAK,QAAQ;YACT,OAAO,0BAA0B,CAAC;QAEtC,KAAK,UAAU;YACX,OAAO,2BAA2B,CAAC;QACvC,KAAK,iBAAiB;YAClB,OAAO,0BAA0B,CAAC;QACtC,KAAK,OAAO;YACR,OAAO,+BAA+B,CAAC;QAC3C,KAAK,UAAU;YACX,OAAO,8BAA8B,CAAC;QAC1C,KAAK,UAAU;YACX,OAAO,2BAA2B,CAAC;QACvC,KAAK,iBAAiB;YAClB,OAAO,0BAA0B,CAAC;KACzC;IAED,IAAA,yBAAc,EAAC,KAAK,EAAE,qBAAqB,EAAE,SAAS,EAAE,IAAI,CAAC,CAAC;AAClE,CAAC;AAED,MAAa,eAAgB,SAAQ,qCAAe;IACvC,MAAM,CAAU;IAEzB,YAAY,WAAuB,SAAS,EAAE,M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diff --git a/lib.commonjs/providers/provider-ankr.js b/lib.commonjs/providers/provider-ankr.js index a829ba77a..c6b50062e 100644 --- a/lib.commonjs/providers/provider-ankr.js +++ b/lib.commonjs/providers/provider-ankr.js @@ -21,7 +21,7 @@ function getHost(name) { case "arbitrum": return "rpc.ankr.com/arbitrum"; } - return (0, index_js_1.throwArgumentError)("unsupported network", "network", name); + (0, index_js_1.assertArgument)(false, "unsupported network", "network", name); } class AnkrProvider extends provider_jsonrpc_js_1.JsonRpcProvider { apiKey; diff --git a/lib.commonjs/providers/provider-ankr.js.map b/lib.commonjs/providers/provider-ankr.js.map index 15b58f4d5..418112daa 100644 --- a/lib.commonjs/providers/provider-ankr.js.map +++ b/lib.commonjs/providers/provider-ankr.js.map @@ -1 +1 @@ -{"version":3,"file":"provider-ankr.js","sourceRoot":"","sources":["../../src.ts/providers/provider-ankr.ts"],"names":[],"mappings":";;;AAAA,gDAE2B;AAG3B,iDAAqD;AACrD,6CAAuC;AACvC,+DAAwD;AAMxD,MAAM,aAAa,GAAG,kEAAkE,CAAC;AAEzF,SAAS,OAAO,CAAC,IAAY;IACzB,QAAQ,IAAI,EAAE;QACV,KAAK,SAAS;YACV,OAAO,kBAAkB,CAAC;QAC9B,KAAK,SAAS;YACV,OAAO,0BAA0B,CAAC;QACtC,KAAK,SAAS;YACV,OAAO,0BAA0B,CAAC;QACtC,KAAK,QAAQ;YACT,OAAO,yBAAyB,CAAC;QACrC,KAAK,OAAO;YACR,OAAO,sBAAsB,CAAC;QAClC,KAAK,UAAU;YACX,OAAO,uBAAuB,CAAC;KACtC;IACD,OAAO,IAAA,6BAAkB,EAAC,qBAAqB,EAAE,SAAS,EAAE,IAAI,CAAC,CAAC;AACtE,CAAC;AAGD,MAAa,YAAa,SAAQ,qCAAe;IACpC,MAAM,CAAU;IAEzB,YAAY,WAAuB,SAAS,EAAE,MAAsB;QAChE,MAAM,OAAO,GAAG,oBAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACvC,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CC"} \ No newline at end of file +{"version":3,"file":"provider-ankr.js","sourceRoot":"","sources":["../../src.ts/providers/provider-ankr.ts"],"names":[],"mappings":";;;AAAA,gDAE2B;AAG3B,iDAAqD;AACrD,6CAAuC;AACvC,+DAAwD;AAMxD,MAAM,aAAa,GAAG,kEAAkE,CAAC;AAEzF,SAAS,OAAO,CAAC,IAAY;IACzB,QAAQ,IAAI,EAAE;QACV,KAAK,SAAS;YACV,OAAO,kBAAkB,CAAC;QAC9B,KAAK,SAAS;YACV,OAAO,0BAA0B,CAAC;QACtC,KAAK,SAAS;YACV,OAAO,0BAA0B,CAAC;QACtC,KAAK,QAAQ;YACT,OAAO,yBAAyB,CAAC;QACrC,KAAK,OAAO;YACR,OAAO,sBAAsB,CAAC;QAClC,KAAK,UAAU;YACX,OAAO,uBAAuB,CAAC;KACtC;IAED,IAAA,yBAAc,EAAC,KAAK,EAAE,qBAAqB,EAAE,SAAS,EAAE,IAAI,CAAC,CAAC;AAClE,CAAC;AAGD,MAAa,YAAa,SAAQ,qCAAe;IACpC,MAAM,CAAU;IAEzB,YAAY,WAAuB,SAAS,EAAE,MAAsB;QAChE,MAAM,OAAO,GAAG,oBAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACvC,IAAI,MAAM,IAAI,IAAI,EAAE;YAAE,MAAM,GAAG,aAAa,CAAC;SAAE;QAE/C,sDAAsD;QACtD,MAAM,OAAO,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,aAAa,EAAE,OAAO,EAAE,CAAC;QAE1D,MAAM,OAAO,GAAG,YAAY,CAAC,UAAU,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;QACzD,KAAK,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;QAEjC,IAAA,2BAAgB,EAAe,IAAI,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACrD,CAAC;IAED,YAAY,CAAC,OAAe;QACxB,IAAI;YACA,OAAO,IAAI,YAAY,CAAC,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;SACjD;QAAC,OAAO,KAAK,EAAE,GAAG;QACnB,OAAO,KAAK,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;IACvC,CAAC;IAED,MAAM,CAAC,UAAU,CAAC,OAAgB,EAAE,MAAsB;QACtD,IAAI,MAAM,IAAI,IAAI,EAAE;YAAE,MAAM,GAAG,aAAa,CAAC;SAAE;QAE/C,MAAM,OAAO,GAAG,IAAI,uBAAY,CAAC,YAAa,OAAO,CAAC,OAAO,CAAC,IAAI,CAAE,IAAK,MAAO,EAAE,CAAC,CAAC;QACpF,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC;QAEzB,IAAI,MAAM,KAAK,aAAa,EAAE;YAC1B,OAAO,CAAC,SAAS,GAAG,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE;gBACrD,IAAA,kCAAmB,EAAC,cAAc,CAAC,CAAC;gBACpC,OAAO,IAAI,CAAC;YAChB,CAAC,CAAC;SACL;QAED,OAAO,OAAO,CAAC;IACnB,CAAC;IAED,mBAAmB;QACf,OAAO,CAAC,IAAI,CAAC,MAAM,KAAK,aAAa,CAAC,CAAC;IAC3C,CAAC;CACJ;AA1CD,oCA0CC"} \ No newline at end of file diff --git a/lib.commonjs/providers/provider-cloudflare.js b/lib.commonjs/providers/provider-cloudflare.js index 317350c45..280b3396f 100644 --- a/lib.commonjs/providers/provider-cloudflare.js +++ b/lib.commonjs/providers/provider-cloudflare.js @@ -7,9 +7,7 @@ const provider_jsonrpc_js_1 = require("./provider-jsonrpc.js"); class CloudflareProvider extends provider_jsonrpc_js_1.JsonRpcProvider { constructor(_network = "mainnet") { const network = network_js_1.Network.from(_network); - if (network.name !== "mainnet") { - return (0, index_js_1.throwArgumentError)("unsupported network", "network", _network); - } + (0, index_js_1.assertArgument)(network.name === "mainnet", "unsupported network", "network", _network); super("https:/\/cloudflare-eth.com/", network, { staticNetwork: network }); } } diff --git a/lib.commonjs/providers/provider-cloudflare.js.map b/lib.commonjs/providers/provider-cloudflare.js.map index a447b1a03..1c26012f1 100644 --- a/lib.commonjs/providers/provider-cloudflare.js.map +++ b/lib.commonjs/providers/provider-cloudflare.js.map @@ -1 +1 @@ -{"version":3,"file":"provider-cloudflare.js","sourceRoot":"","sources":["../../src.ts/providers/provider-cloudflare.ts"],"names":[],"mappings":";;;AAAA,gDAAuD;AAEvD,6CAAuC;AACvC,+DAAwD;AAKxD,MAAa,kBAAmB,SAAQ,qCAAe;IACnD,YAAY,WAAuB,SAAS;QACxC,MAAM,OAAO,GAAG,oBAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACvC,IAAI,OAAO,CAAC,IAAI,KAAK,SAAS,EAAE;YAC5B,OAAO,IAAA,6BAAkB,EAAC,qBAAqB,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;SACzE;QACD,KAAK,CAAC,8BAA8B,EAAE,OAAO,EAAE,EAAE,aAAa,EAAE,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;CACJ;AARD,gDAQC"} \ No newline at end of file +{"version":3,"file":"provider-cloudflare.js","sourceRoot":"","sources":["../../src.ts/providers/provider-cloudflare.ts"],"names":[],"mappings":";;;AAAA,gDAAmD;AAEnD,6CAAuC;AACvC,+DAAwD;AAKxD,MAAa,kBAAmB,SAAQ,qCAAe;IACnD,YAAY,WAAuB,SAAS;QACxC,MAAM,OAAO,GAAG,oBAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACvC,IAAA,yBAAc,EAAC,OAAO,CAAC,IAAI,KAAK,SAAS,EAAE,qBAAqB,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;QACvF,KAAK,CAAC,8BAA8B,EAAE,OAAO,EAAE,EAAE,aAAa,EAAE,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;CACJ;AAND,gDAMC"} \ No newline at end of file diff --git a/lib.commonjs/providers/provider-etherscan-base.js b/lib.commonjs/providers/provider-etherscan-base.js index 3982d26b5..bd2744902 100644 --- a/lib.commonjs/providers/provider-etherscan-base.js +++ b/lib.commonjs/providers/provider-etherscan-base.js @@ -9,7 +9,7 @@ const network_js_1 = require("./network.js"); const plugins_network_js_1 = require("./plugins-network.js"); const community_js_1 = require("./community.js"); const THROTTLE = 2000; -const EtherscanPluginId = "org.ethers.plugins.etherscan"; +const EtherscanPluginId = "org.ethers.plugins.Etherscan"; class EtherscanPlugin extends plugins_network_js_1.NetworkPlugin { baseUrl; communityApiKey; @@ -64,7 +64,7 @@ class BaseEtherscanProvider extends abstract_provider_js_1.AbstractProvider { return "https:/\/api-goerli-optimistic.etherscan.io"; default: } - return (0, index_js_3.throwArgumentError)("unsupported network", "network", this.network); + (0, index_js_3.assertArgument)(false, "unsupported network", "network", this.network); } getUrl(module, params) { const query = Object.keys(params).reduce((accum, key) => { @@ -188,7 +188,7 @@ class BaseEtherscanProvider extends abstract_provider_js_1.AbstractProvider { } // Quantity-types require no leading zero, unless 0 if ({ type: true, gasLimit: true, gasPrice: true, maxFeePerGs: true, maxPriorityFeePerGas: true, nonce: true, value: true }[key]) { - value = (0, index_js_3.toQuantity)((0, index_js_3.hexlify)(value)); + value = (0, index_js_3.toQuantity)(value); } else if (key === "accessList") { value = "[" + (0, index_js_2.accessListify)(value).map((set) => { @@ -331,7 +331,7 @@ class BaseEtherscanProvider extends abstract_provider_js_1.AbstractProvider { boolean: (req.includeTransactions ? "true" : "false") }); } - return (0, index_js_3.throwError)("getBlock by blockHash not supported by Etherscan", "UNSUPPORTED_OPERATION", { + (0, index_js_3.assert)(false, "getBlock by blockHash not supported by Etherscan", "UNSUPPORTED_OPERATION", { operation: "getBlock(blockHash)" }); case "getTransaction": diff --git a/lib.commonjs/providers/provider-etherscan-base.js.map b/lib.commonjs/providers/provider-etherscan-base.js.map index 1ee17e35a..4364fdc41 100644 --- a/lib.commonjs/providers/provider-etherscan-base.js.map +++ b/lib.commonjs/providers/provider-etherscan-base.js.map @@ -1 +1 @@ -{"version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C,MAAM,CAAC,eAAe,KAAK,IAAI,CAAC,MAAM,CAAC,CAAC;SAAE;QAEhE,OAAO,CAAC,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,CAAC;IACjC,CAAC;CACJ;AA3cD,sDA2cC"} \ No newline at end of file +{"version":3,"file":"provider-etherscan-base.js","sourceRoot":"","sources":["../../src.ts/providers/provider-etherscan-base.ts"],"names":[],"mappings":";;;AAAA,8CAA0D;AAC1D,sDAAwD;AACxD,gDAM4B;AAE5B,iEAA0D;AAC1D,6CAAuC;AACvC,6DAAqD;AACrD,iDAAqD;AAOrD,MAAM,QAAQ,GAAG,IAAI,CAAC;AAiBtB,MAAM,iBAAiB,GAAG,8BAA8B,CAAC;AAEzD,MAAa,eAAgB,SAAQ,kCAAa;IACrC,OAAO,CAAU;IACjB,eAAe,CAAU;IAElC,YAAY,OAAe,EAAE,eAAuB;QAChD,KAAK,CAAC,iBAAiB,CAAC,CAAC;QACzB,0DAA0D;QAC1D,IAAA,2BAAgB,EAAkB,IAAI,EAAE,EAAE,OAAO,EAAE,eAAe,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED,KAAK;QACD,OAAO,IAAI,eAAe,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,eAAe,CAAC,CAAC;IACnE,CAAC;CACJ;AAbD,0CAaC;AAED,IAAI,MAAM,GAAG,CAAC,CAAC;AAEf,MAAa,qBAAsB,SAAQ,uCAAgB;IAC9C,OAAO,CAAW;IAClB,MAAM,CAAU;IAEhB,OAAO,CAAyB;IAEzC,YAAY,QAAqB,EAAE,MAAe;QAC9C,KAAK,EAAE,CAAC;QAER,MAAM,OAAO,GAAG,oBAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAEvC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,SAAS,CAAkB,iBAAiB,CAAC,CAAC;QAErE,IAAI,MAAM,IAAI,IAAI,IAAI,IAAI,CAAC,OAAO,EAAE;YAChC,MAAM,GAAG,IA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CAAC,CAAC;IAClF,CAAC;IAED,mBAAmB;QACf,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,CAAkB,iBAAiB,CAAC,CAAC;QAC1E,IAAI,MAAM,EAAE;YAAE,OAAO,CAAC,MAAM,CAAC,eAAe,KAAK,IAAI,CAAC,MAAM,CAAC,CAAC;SAAE;QAEhE,OAAO,CAAC,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,CAAC;IACjC,CAAC;CACJ;AA1cD,sDA0cC"} \ No newline at end of file diff --git a/lib.commonjs/providers/provider-fallback.js b/lib.commonjs/providers/provider-fallback.js index f135897a3..110c72bf0 100644 --- a/lib.commonjs/providers/provider-fallback.js +++ b/lib.commonjs/providers/provider-fallback.js @@ -3,9 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.FallbackProvider = void 0; const index_js_1 = require("../utils/index.js"); const abstract_provider_js_1 = require("./abstract-provider.js"); -const format_js_1 = require("./format.js"); const network_js_1 = require("./network.js"); -//const BN_0 = BigInt("0"); const BN_1 = BigInt("1"); const BN_2 = BigInt("2"); function shuffle(array) { @@ -20,6 +18,14 @@ function stall(duration) { return new Promise((resolve) => { setTimeout(resolve, duration); }); } function getTime() { return (new Date()).getTime(); } +function stringify(value) { + return JSON.stringify(value, (key, value) => { + if (typeof (value) === "bigint") { + return { type: "bigint", value: value.toString() }; + } + return value; + }); +} ; const defaultConfig = { stallTimeout: 400, priority: 1, weight: 1 }; const defaultState = { @@ -42,72 +48,90 @@ async function waitForSync(config, blockNumber) { config.outOfSync++; } } -// Normalizes a result to a string that can be used to compare against -// other results using normal string equality -function normalize(provider, value, req) { - switch (req.method) { - case "chainId": - return (0, index_js_1.getBigInt)(value).toString(); - case "getBlockNumber": - return (0, index_js_1.getNumber)(value).toString(); - case "getGasPrice": - return (0, index_js_1.getBigInt)(value).toString(); - case "getBalance": - return (0, index_js_1.getBigInt)(value).toString(); - case "getTransactionCount": - return (0, index_js_1.getNumber)(value).toString(); - case "getCode": - return (0, index_js_1.hexlify)(value); - case "getStorage": - return (0, index_js_1.hexlify)(value); - case "getBlock": - if (req.includeTransactions) { - return JSON.stringify((0, format_js_1.formatBlockWithTransactions)(value)); - } - return JSON.stringify((0, format_js_1.formatBlock)(value)); - case "getTransaction": - return JSON.stringify((0, format_js_1.formatTransactionResponse)(value)); - case "getTransactionReceipt": - return JSON.stringify((0, format_js_1.formatTransactionReceipt)(value)); - case "call": - return (0, index_js_1.hexlify)(value); - case "estimateGas": - return (0, index_js_1.getBigInt)(value).toString(); - case "getLogs": - return JSON.stringify(value.map((v) => (0, format_js_1.formatLog)(v))); +function _normalize(value) { + if (value == null) { + return "null"; } - return (0, index_js_1.throwError)("unsupported method", "UNSUPPORTED_OPERATION", { - operation: `_perform(${JSON.stringify(req.method)})` - }); + if (Array.isArray(value)) { + return "[" + (value.map(_normalize)).join(",") + "]"; + } + if (typeof (value) === "object" && typeof (value.toJSON) === "function") { + return _normalize(value.toJSON()); + } + switch (typeof (value)) { + case "boolean": + case "symbol": + return value.toString(); + case "bigint": + case "number": + return BigInt(value).toString(); + case "string": + return JSON.stringify(value); + case "object": { + const keys = Object.keys(value); + keys.sort(); + return "{" + keys.map((k) => `${JSON.stringify(k)}:${_normalize(value[k])}`).join(",") + "}"; + } + } + console.log("Could not serialize", value); + throw new Error("Hmm..."); } -// This strategy picks the highest wieght result, as long as the weight is +function normalizeResult(value) { + if ("error" in value) { + const error = value.error; + return { tag: _normalize(error), value: error }; + } + const result = value.result; + return { tag: _normalize(result), value: result }; +} +// This strategy picks the highest weight result, as long as the weight is // equal to or greater than quorum function checkQuorum(quorum, results) { const tally = new Map(); - for (const { result, normal, weight } of results) { - const t = tally.get(normal) || { result, weight: 0 }; + for (const { value, tag, weight } of results) { + const t = tally.get(tag) || { value, weight: 0 }; t.weight += weight; - tally.set(normal, t); + tally.set(tag, t); } - let bestWeight = 0; - let bestResult = undefined; - for (const { weight, result } of tally.values()) { - if (weight >= quorum && weight > bestWeight) { - bestWeight = weight; - bestResult = result; + let best = null; + for (const r of tally.values()) { + if (r.weight >= quorum && (!best || r.weight > best.weight)) { + best = r; } } - return bestResult; + if (best) { + return best.value; + } + return undefined; } -/* -function getMean(results: Array): bigint { - const total = results.reduce((a, r) => (a + BigInt(r.result)), BN_0); - return total / BigInt(results.length); -} -*/ -function getMedian(results) { +function getMedian(quorum, results) { + let resultWeight = 0; + const errorMap = new Map(); + let bestError = null; + const values = []; + for (const { value, tag, weight } of results) { + if (value instanceof Error) { + const e = errorMap.get(tag) || { value, weight: 0 }; + e.weight += weight; + errorMap.set(tag, e); + if (bestError == null || e.weight > bestError.weight) { + bestError = e; + } + } + else { + values.push(BigInt(value)); + resultWeight += weight; + } + } + if (resultWeight < quorum) { + // We have quorum for an error + if (bestError && bestError.weight >= quorum) { + return bestError.value; + } + // We do not have quorum for a result + return undefined; + } // Get the sorted values - const values = results.map((r) => BigInt(r.result)); values.sort((a, b) => ((a < b) ? -1 : (b > a) ? 1 : 0)); const mid = values.length / 2; // Odd-length; take the middle value @@ -117,9 +141,24 @@ function getMedian(results) { // Even length; take the ceiling of the mean of the center two values return (values[mid - 1] + values[mid] + BN_1) / BN_2; } +function getAnyResult(quorum, results) { + // If any value or error meets quorum, that is our preferred result + const result = checkQuorum(quorum, results); + if (result !== undefined) { + return result; + } + // Otherwise, do we have any result? + for (const r of results) { + if (r.value) { + return r.value; + } + } + // Nope! + return undefined; +} function getFuzzyMode(quorum, results) { if (quorum === 1) { - return (0, index_js_1.getNumber)(getMedian(results), "%internal"); + return (0, index_js_1.getNumber)(getMedian(quorum, results), "%internal"); } const tally = new Map(); const add = (result, weight) => { @@ -127,8 +166,8 @@ function getFuzzyMode(quorum, results) { t.weight += weight; tally.set(result, t); }; - for (const { weight, result } of results) { - const r = (0, index_js_1.getNumber)(result); + for (const { weight, value } of results) { + const r = (0, index_js_1.getNumber)(value); add(r - 1, weight); add(r, weight); add(r + 1, weight); @@ -147,7 +186,6 @@ function getFuzzyMode(quorum, results) { return bestResult; } class FallbackProvider extends abstract_provider_js_1.AbstractProvider { - //readonly providerConfigs!: ReadonlyArray>>; quorum; eventQuorum; eventWorkers; @@ -169,13 +207,18 @@ class FallbackProvider extends abstract_provider_js_1.AbstractProvider { this.quorum = 2; //Math.ceil(providers.length / 2); this.eventQuorum = 1; this.eventWorkers = 1; - if (this.quorum > this.#configs.reduce((a, c) => (a + c.weight), 0)) { - (0, index_js_1.throwArgumentError)("quorum exceed provider wieght", "quorum", this.quorum); - } + (0, index_js_1.assertArgument)(this.quorum <= this.#configs.reduce((a, c) => (a + c.weight), 0), "quorum exceed provider wieght", "quorum", this.quorum); } - // @TOOD: Copy these and only return public values get providerConfigs() { - return this.#configs.slice(); + return this.#configs.map((c) => { + const result = Object.assign({}, c); + for (const key in result) { + if (key[0] === "_") { + delete result[key]; + } + } + return result; + }); } async _detectNetwork() { return network_js_1.Network.from((0, index_js_1.getBigInt)(await this._perform({ method: "chainId" }))); @@ -184,8 +227,52 @@ class FallbackProvider extends abstract_provider_js_1.AbstractProvider { //_getSubscriber(sub: Subscription): Subscriber { // throw new Error("@TODO"); //} - // Grab the next (random) config that is not already part of configs - #getNextConfig(configs) { + async _translatePerform(provider, req) { + switch (req.method) { + case "broadcastTransaction": + return await provider.broadcastTransaction(req.signedTransaction); + case "call": + return await provider.call(Object.assign({}, req.transaction, { blockTag: req.blockTag })); + case "chainId": + return (await provider.getNetwork()).chainId; + case "estimateGas": + return await provider.estimateGas(req.transaction); + case "getBalance": + return await provider.getBalance(req.address, req.blockTag); + case "getBlock": { + const block = ("blockHash" in req) ? req.blockHash : req.blockTag; + if (req.includeTransactions) { + return await provider.getBlockWithTransactions(block); + } + return await provider.getBlock(block); + } + case "getBlockNumber": + return await provider.getBlockNumber(); + case "getCode": + return await provider.getCode(req.address, req.blockTag); + case "getGasPrice": + return (await provider.getFeeData()).gasPrice; + case "getLogs": + return await provider.getLogs(req.filter); + case "getStorage": + return await provider.getStorage(req.address, req.position, req.blockTag); + case "getTransaction": + return await provider.getTransaction(req.hash); + case "getTransactionCount": + return await provider.getTransactionCount(req.address, req.blockTag); + case "getTransactionReceipt": + return await provider.getTransactionReceipt(req.hash); + case "getTransactionResult": + return await provider.getTransactionResult(req.hash); + } + } + // Grab the next (random) config that is not already part of + // the running set + #getNextConfig(running) { + // @TODO: Maybe do a check here to favour (heavily) providers that + // do not require waitForSync and disfavour providers that + // seem down-ish or are behaving slowly + const configs = Array.from(running).map((r) => r.config); // Shuffle the states, sorted by priority const allConfigs = this.#configs.slice(); shuffle(allConfigs); @@ -199,33 +286,35 @@ class FallbackProvider extends abstract_provider_js_1.AbstractProvider { } // Adds a new runner (if available) to running. #addRunner(running, req) { - const config = this.#getNextConfig(Array.from(running).map((r) => r.config)); + const config = this.#getNextConfig(running); + // No runners available if (config == null) { return null; } - const result = {}; + // Create a new runner const runner = { - config, result, didBump: false, done: false, + config, result: null, didBump: false, perform: null, staller: null }; const now = getTime(); + // Start performing this operation runner.perform = (async () => { try { config.requests++; - result.result = await config.provider._perform(req); + const result = await this._translatePerform(config.provider, req); + runner.result = { result }; } catch (error) { config.errorResponses++; - result.error = error; - } - if (runner.done) { - config.lateResponses++; + runner.result = { error }; } const dt = (getTime() - now); config._totalTime += dt; config.rollingDuration = 0.95 * config.rollingDuration + 0.05 * dt; runner.perform = null; })(); + // Start a staller; when this times out, it's time to force + // kicking off another runner because we are taking too long runner.staller = (async () => { await stall(config.stallTimeout); runner.staller = null; @@ -256,7 +345,7 @@ class FallbackProvider extends abstract_provider_js_1.AbstractProvider { chainId = network.chainId; } else if (network.chainId !== chainId) { - (0, index_js_1.throwError)("cannot mix providers on different networks", "UNSUPPORTED_OPERATION", { + (0, index_js_1.assert)(false, "cannot mix providers on different networks", "UNSUPPORTED_OPERATION", { operation: "new FallbackProvider" }); } @@ -269,13 +358,9 @@ class FallbackProvider extends abstract_provider_js_1.AbstractProvider { // Get all the result objects const results = []; for (const runner of running) { - if ("result" in runner.result) { - const result = runner.result.result; - results.push({ - result, - normal: normalize(runner.config.provider, result, req), - weight: runner.config.weight - }); + if (runner.result != null) { + const { tag, value } = normalizeResult(runner.result); + results.push({ tag, value, weight: runner.config.weight }); } } // Are there enough results to event meet quorum? @@ -286,13 +371,14 @@ class FallbackProvider extends abstract_provider_js_1.AbstractProvider { case "getBlockNumber": { // We need to get the bootstrap block height if (this.#height === -2) { - const height = Math.ceil((0, index_js_1.getNumber)(getMedian(this.#configs.map((c) => ({ - result: c.blockNumber, - normal: (0, index_js_1.getNumber)(c.blockNumber).toString(), + this.#height = Math.ceil((0, index_js_1.getNumber)(getMedian(this.quorum, this.#configs.map((c) => ({ + value: c.blockNumber, + tag: (0, index_js_1.getNumber)(c.blockNumber).toString(), weight: c.weight - }))), "%internal")); - this.#height = height; + }))))); } + // Find the mode across all the providers, allowing for + // a little drift between block heights const mode = getFuzzyMode(this.quorum, results); if (mode === undefined) { return undefined; @@ -304,14 +390,15 @@ class FallbackProvider extends abstract_provider_js_1.AbstractProvider { } case "getGasPrice": case "estimateGas": - return getMedian(results); + return getMedian(this.quorum, results); case "getBlock": - // Pending blocks are mempool dependant and already - // quite untrustworthy + // Pending blocks are in the mempool and already + // quite untrustworthy; just grab anything if ("blockTag" in req && req.blockTag === "pending") { - return results[0].result; + return getAnyResult(this.quorum, results); } return checkQuorum(this.quorum, results); + case "call": case "chainId": case "getBalance": case "getTransactionCount": @@ -321,14 +408,11 @@ class FallbackProvider extends abstract_provider_js_1.AbstractProvider { case "getTransactionReceipt": case "getLogs": return checkQuorum(this.quorum, results); - case "call": - // @TODO: Check errors - return checkQuorum(this.quorum, results); case "broadcastTransaction": throw new Error("TODO"); } - return (0, index_js_1.throwError)("unsupported method", "UNSUPPORTED_OPERATION", { - operation: `_perform(${JSON.stringify(req.method)})` + (0, index_js_1.assert)(false, "unsupported method", "UNSUPPORTED_OPERATION", { + operation: `_perform(${stringify(req.method)})` }); } async #waitForQuorum(running, req) { @@ -338,18 +422,8 @@ class FallbackProvider extends abstract_provider_js_1.AbstractProvider { // Any promises that are interesting to watch for; an expired stall // or a successful perform const interesting = []; - //const results: Array = [ ]; - //const errors: Array = [ ]; let newRunners = 0; for (const runner of running) { - // @TODO: use runner.perfom != null - /* - if ("result" in runner.result) { - results.push(runner.result.result); - } else if ("error" in runner.result) { - errors.push(runner.result.error); - } -*/ // No responses, yet; keep an eye on it if (runner.perform) { interesting.push(runner.perform); @@ -367,17 +441,7 @@ class FallbackProvider extends abstract_provider_js_1.AbstractProvider { runner.didBump = true; newRunners++; } - // Check for quorum - /* - console.log({ results, errors } ); - if (results.length >= this.quorum) { - return results[0]; - } - - if (errors.length >= this.quorum) { - return errors[0]; - } - */ + // Check if we have reached quorum on a result (or error) const value = await this.#checkQuorum(running, req); if (value !== undefined) { if (value instanceof Error) { @@ -390,25 +454,51 @@ class FallbackProvider extends abstract_provider_js_1.AbstractProvider { for (let i = 0; i < newRunners; i++) { this.#addRunner(running, req); } - if (interesting.length === 0) { - throw new Error("quorum not met"); - // return logger.throwError("failed to meet quorum", "", { - // }); - } - // Wait for someone to either complete its perform or trigger a stall + // All providers have returned, and we have no result + (0, index_js_1.assert)(interesting.length > 0, "quorum not met", "SERVER_ERROR", { + request: "%sub-requests", + info: { request: req, results: Array.from(running).map((r) => stringify(r.result)) } + }); + // Wait for someone to either complete its perform or stall out await Promise.race(interesting); + // This is recursive, but at worst case the depth is 2x the + // number of providers (each has a perform and a staller) return await this.#waitForQuorum(running, req); } async _perform(req) { + // Broadcasting a transaction is rare (ish) and already incurs + // a cost on the user, so spamming is safe-ish. Just send it to + // every backend. + if (req.method === "broadcastTransaction") { + const results = await Promise.all(this.#configs.map(async ({ provider, weight }) => { + try { + const result = await provider._perform(req); + return Object.assign(normalizeResult({ result }), { weight }); + } + catch (error) { + return Object.assign(normalizeResult({ error }), { weight }); + } + })); + const result = getAnyResult(this.quorum, results); + (0, index_js_1.assert)(result !== undefined, "problem multi-broadcasting", "SERVER_ERROR", { + request: "%sub-requests", + info: { request: req, results: results.map(stringify) } + }); + return result; + } await this.#initialSync(); - // Bootstrap enough to meet quorum + // Bootstrap enough runners to meet quorum const running = new Set(); for (let i = 0; i < this.quorum; i++) { this.#addRunner(running, req); } - const result = this.#waitForQuorum(running, req); + const result = await this.#waitForQuorum(running, req); + // Track requests sent to a provider that are still + // outstanding after quorum has been otherwise found for (const runner of running) { - runner.done = true; + if (runner.perform && runner.result == null) { + runner.config.lateResponses++; + } } return result; } diff --git a/lib.commonjs/providers/provider-fallback.js.map b/lib.commonjs/providers/provider-fallback.js.map index 06bf6ee8c..ca680f409 100644 --- a/lib.commonjs/providers/provider-fallback.js.map +++ b/lib.commonjs/providers/provider-fallback.js.map @@ -1 +1 @@ -{"version":3,"file":"provider-fallback.js","sourceRoot":"","sources":["../../src.ts/providers/provider-fallback.ts"],"names":[],"mappings":";;;AACA,gDAE2B;AAE3B,iEAA0D;AAC1D,2CAGqB;AACrB,6CAAsC;AAKtC,2BAA2B;AAC3B,MAAM,IAAI,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;AACzB,MAAM,IAAI,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;AAEzB,SAAS,OAAO,CAAU,KAAe;IACrC,KAAK,IAAI,CAAC,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE;QACvC,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAC9C,MAAM,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;QACrB,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;QACpB,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC;KAClB;AACL,CAAC;AAED,SAAS,KAAK,CAAC,QAAgB;IAC3B,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,GAAG,UAAU,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AK,YAAY,KAAK,EAAE;gBAAE,MAAM,KAAK,CAAC;aAAE;YAC5C,OAAO,KAAK,CAAC;SAChB;QAED,+DAA+D;QAC/D,6BAA6B;QAC7B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,UAAU,EAAE,CAAC,EAAE,EAAE;YACjC,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,GAAG,CAAC,CAAA;SAChC;QAED,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC,EAAE;YAC1B,MAAM,IAAI,KAAK,CAAC,gBAAgB,CAAC,CAAC;YAC9C,qEAAqE;YACrE,iBAAiB;SACR;QAED,qEAAqE;QACrE,MAAM,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAEhC,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;IACnD,CAAC;IAED,KAAK,CAAC,QAAQ,CAAU,GAAyB;QAC7C,MAAM,IAAI,CAAC,YAAY,EAAE,CAAC;QAE1B,kCAAkC;QAClC,MAAM,OAAO,GAAsB,IAAI,GAAG,EAAE,CAAC;QAC7C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YAClC,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;SACjC;QAED,MAAM,MAAM,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;QACjD,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE;YAAE,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC;SAAE;QACrD,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ;AA5SD,4CA4SC"} \ No newline at end of file +{"version":3,"file":"provider-fallback.js","sourceRoot":"","sources":["../../src.ts/providers/provider-fallback.ts"],"names":[],"mappings":";;;AACA,gDAE2B;AAE3B,iEAA0D;AAC1D,6CAAsC;AAKtC,MA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F,OAAO,MAAM,CAAC;SACjB;QAED,MAAM,IAAI,CAAC,YAAY,EAAE,CAAC;QAE1B,0CAA0C;QAC1C,MAAM,OAAO,GAAqB,IAAI,GAAG,EAAE,CAAC;QAC5C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YAClC,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;SACjC;QAED,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;QAEvD,mDAAmD;QACnD,oDAAoD;QACpD,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE;YAC1B,IAAI,MAAM,CAAC,OAAO,IAAI,MAAM,CAAC,MAAM,IAAI,IAAI,EAAE;gBACzC,MAAM,CAAC,MAAM,CAAC,aAAa,EAAE,CAAC;aACjC;SACJ;QAED,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ;AAtWD,4CAsWC"} \ No newline at end of file diff --git a/lib.commonjs/providers/provider-infura.js b/lib.commonjs/providers/provider-infura.js index 049f48b10..ca82dd289 100644 --- a/lib.commonjs/providers/provider-infura.js +++ b/lib.commonjs/providers/provider-infura.js @@ -28,7 +28,7 @@ function getHost(name) { case "optimism-goerli": return "optimism-goerli.infura.io"; } - return (0, index_js_1.throwArgumentError)("unsupported network", "network", name); + (0, index_js_1.assertArgument)(false, "unsupported network", "network", name); } class InfuraWebSocketProvider extends provider_websocket_js_1.WebSocketProvider { projectId; @@ -36,11 +36,7 @@ class InfuraWebSocketProvider extends provider_websocket_js_1.WebSocketProvider constructor(network, apiKey) { const provider = new InfuraProvider(network, apiKey); const req = provider._getConnection(); - if (req.credentials) { - (0, index_js_1.throwError)("INFURA WebSocket project secrets unsupported", "UNSUPPORTED_OPERATION", { - operation: "InfuraProvider.getWebSocketProvider()" - }); - } + (0, index_js_1.assert)(!req.credentials, "INFURA WebSocket project secrets unsupported", "UNSUPPORTED_OPERATION", { operation: "InfuraProvider.getWebSocketProvider()" }); const url = req.url.replace(/^http/i, "ws").replace("/v3/", "/ws/v3/"); super(url, network); (0, index_js_1.defineProperties)(this, { diff --git a/lib.commonjs/providers/provider-infura.js.map b/lib.commonjs/providers/provider-infura.js.map index 972590eca..0e6c63827 100644 --- a/lib.commonjs/providers/provider-infura.js.map +++ b/lib.commonjs/providers/provider-infura.js.map @@ -1 +1 @@ -{"version":3,"file":"provider-infura.js","sourceRoot":"","sources":["../../src.ts/providers/provider-infura.ts"],"names":[],"mappings":";;;AAAA,gDAE2B;AAE3B,iDAAqD;AACrD,6CAAuC;AACvC,+DAAwD;AACxD,mEAA4D;AAO5D,MAAM,gBAAgB,GAAG,kCAAkC,CAAC;AAE5D,SAAS,OAAO,CAAC,IAAY;IACzB,QAAO,IAAI,EAAE;QACT,KAAK,SAAS;YACV,OAAO,mBAAmB,CAAC;QAC/B,KAAK,QAAQ;YACT,OAAO,kBAAkB,CAAC;QAC9B,KAAK,SAAS;YACV,OAAO,mBAAmB,CAAC;QAE/B,KAAK,UAAU;YACX,OAAO,4BAA4B,CAAC;QACxC,KAAK,iBAAiB;YAClB,OAAO,2BAA2B,CAAC;QACvC,KAAK,OAAO;YACR,OAAO,2BAA2B,CAAC;QACvC,KAAK,UAAU;YACX,OAAO,0BAA0B,CAAC;QACtC,KAAK,UAAU;YACX,OAAO,4BAA4B,CAAC;QACxC,KAAK,iBAAiB;YAClB,OAAO,2BAA2B,CAAC;KAC1C;IAED,OAAO,IAAA,6BAAkB,EAAC,qBAAqB,EAAE,SAAS,EAAE,IAAI,CAAC,CAAC;AACtE,CAAC;AAED,MAAa,uBAAwB,SAAQ,yCAAiB;IACjD,SAAS,CAAU;IACnB,aAAa,CAAiB;IAEvC,YAAY,OAAoB,EAAE,MAAY;QAC1C,MAAM,QAAQ,GAAG,IAAI,cAAc,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;QAErD,MAAM,GAAG,GAAG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AoB,EAAE,MAAY;QAC1D,OAAO,IAAI,uBAAuB,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IACxD,CAAC;IAED,MAAM,CAAC,UAAU,CAAC,OAAgB,EAAE,SAAyB,EAAE,aAA6B;QACxF,IAAI,SAAS,IAAI,IAAI,EAAE;YAAE,SAAS,GAAG,gBAAgB,CAAC;SAAE;QACxD,IAAI,aAAa,IAAI,IAAI,EAAE;YAAE,aAAa,GAAG,IAAI,CAAC;SAAE;QAEpD,MAAM,OAAO,GAAG,IAAI,uBAAY,CAAC,YAAa,OAAO,CAAC,OAAO,CAAC,IAAI,CAAE,OAAQ,SAAU,EAAE,CAAC,CAAC;QAC1F,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC;QACzB,IAAI,aAAa,EAAE;YAAE,OAAO,CAAC,cAAc,CAAC,EAAE,EAAE,aAAa,CAAC,CAAC;SAAE;QAEjE,IAAI,SAAS,KAAK,gBAAgB,EAAE;YAChC,OAAO,CAAC,SAAS,GAAG,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE;gBACrD,IAAA,kCAAmB,EAAC,gBAAgB,CAAC,CAAC;gBACtC,OAAO,IAAI,CAAC;YAChB,CAAC,CAAC;SACL;QAED,OAAO,OAAO,CAAC;IACnB,CAAC;CAEJ;AAhDD,wCAgDC"} \ No newline at end of file diff --git a/lib.commonjs/providers/provider-jsonrpc.js b/lib.commonjs/providers/provider-jsonrpc.js index 22b68b42c..3a9fafc7a 100644 --- a/lib.commonjs/providers/provider-jsonrpc.js +++ b/lib.commonjs/providers/provider-jsonrpc.js @@ -61,7 +61,7 @@ class JsonRpcSigner extends abstract_signer_js_1.AbstractSigner { (0, index_js_5.defineProperties)(this, { address }); } connect(provider) { - return (0, index_js_5.throwError)("cannot reconnect JsonRpcSigner", "UNSUPPORTED_OPERATION", { + (0, index_js_5.assert)(false, "cannot reconnect JsonRpcSigner", "UNSUPPORTED_OPERATION", { operation: "signer.connect" }); } @@ -82,9 +82,7 @@ class JsonRpcSigner extends abstract_signer_js_1.AbstractSigner { const _from = tx.from; promises.push((async () => { const from = await (0, index_js_2.resolveAddress)(_from, this.provider); - if (from == null || from.toLowerCase() !== this.address.toLowerCase()) { - (0, index_js_5.throwArgumentError)("from address mismatch", "transaction", _tx); - } + (0, index_js_5.assertArgument)(from != null && from.toLowerCase() === this.address.toLowerCase(), "from address mismatch", "transaction", _tx); tx.from = from; })()); } @@ -141,9 +139,7 @@ class JsonRpcSigner extends abstract_signer_js_1.AbstractSigner { // Make sure the from matches the sender if (tx.from) { const from = await (0, index_js_2.resolveAddress)(tx.from, this.provider); - if (from == null || from.toLowerCase() !== this.address.toLowerCase()) { - return (0, index_js_5.throwArgumentError)("from address mismatch", "transaction", _tx); - } + (0, index_js_5.assertArgument)(from != null && from.toLowerCase() === this.address.toLowerCase(), "from address mismatch", "transaction", _tx); tx.from = from; } else { @@ -163,9 +159,7 @@ class JsonRpcSigner extends abstract_signer_js_1.AbstractSigner { // Populate any ENS names (in-place) const populated = await index_js_3.TypedDataEncoder.resolveNames(domain, types, value, async (value) => { const address = await (0, index_js_2.resolveAddress)(value); - if (address == null) { - return (0, index_js_5.throwArgumentError)("TypedData does not support null address", "value", value); - } + (0, index_js_5.assertArgument)(address != null, "TypedData does not support null address", "value", value); return address; }); return await this.provider.send("eth_signTypedData_v4", [ @@ -281,9 +275,7 @@ class JsonRpcApiProvider extends abstract_provider_js_1.AbstractProvider { // This could be relaxed in the future to just check equivalent networks const staticNetwork = this._getOption("staticNetwork"); if (staticNetwork) { - if (staticNetwork !== network) { - (0, index_js_5.throwArgumentError)("staticNetwork MUST match network object", "options", options); - } + (0, index_js_5.assertArgument)(staticNetwork === network, "staticNetwork MUST match network object", "options", options); this.#network = staticNetwork; } } @@ -300,9 +292,7 @@ class JsonRpcApiProvider extends abstract_provider_js_1.AbstractProvider { * is detected, and if it has changed, the call will reject. */ get _network() { - if (!this.#network) { - (0, index_js_5.throwError)("network is not available yet", "NETWORK_ERROR"); - } + (0, index_js_5.assert)(this.#network, "network is not available yet", "NETWORK_ERROR"); return this.#network; } /** @@ -311,7 +301,7 @@ class JsonRpcApiProvider extends abstract_provider_js_1.AbstractProvider { * Sub-classes **MUST** override this. */ _send(payload) { - return (0, index_js_5.throwError)("sub-classes must override _send", "UNSUPPORTED_OPERATION", { + (0, index_js_5.assert)(false, "sub-classes must override _send", "UNSUPPORTED_OPERATION", { operation: "jsonRpcApiProvider._send" }); } diff --git a/lib.commonjs/providers/provider-jsonrpc.js.map b/lib.commonjs/providers/provider-jsonrpc.js.map index 6eb6e63a4..5ffd48ae9 100644 --- a/lib.commonjs/providers/provider-jsonrpc.js.map +++ b/lib.commonjs/providers/provider-jsonrpc.js.map @@ -1 +1 @@ -{"version":3,"file":"provider-jsonrpc.js","sourceRoot":"","sources":["../../src.ts/providers/provider-jsonrpc.ts"],"names":[],"mappings":";AAAA,SAAS;AACT,yBAAyB;;;AAEzB,yQAAyQ;AAEzQ,8CAA0D;AAC1D,kDAAiE;AACjE,+CAAoD;AACpD,sDAAwD;AACxD,gDAI2B;AAE3B,iEAA+E;AAC/E,6DAAsD;AACtD,6CAAuC;AACvC,qEAA8F;AAW9F,MAAM,SAAS,GAAG,8CAA8C,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;AAC7E,gDAAgD;AAChD,SAAS,QAAQ,CAAU,KAAQ;IAC/B,IAAI,KAAK,IAAI,IAAI,IAAI,SAAS,CAAC,OAAO,CAAC,OAAM,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,EAAE;QACxD,OAAO,KAAK,CAAC;KAChB;IAED,uBAAuB;IACvB,IAAI,OAAM,CAAO,KAAM,CAAC,UAAU,CAAC,KAAK,UAAU,EAAE;QAChD,OAAO,KAAK,CAAC;KAChB;IAED,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;QAAE,OAAY,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC;KAAE;IA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AqB;IACrB,IAAI,OAAM,CAAC,KAAK,CAAC,KAAK,QAAQ,EAAE;QAC5B,KAAK,MAAM,GAAG,IAAI,KAAK,EAAE;YACrB,eAAe,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,CAAC;SACvC;KACJ;IAED,mDAAmD;IACnD,IAAI,OAAM,CAAC,KAAK,CAAC,KAAK,QAAQ,EAAE;QAC5B,IAAI;YACA,OAAO,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,CAAC;SACrD;QAAC,OAAO,KAAK,EAAE,GAAG;KACtB;AACL,CAAC;AAED,SAAS,cAAc,CAAC,KAAU;IAC9B,MAAM,MAAM,GAAkB,EAAG,CAAC;IAClC,eAAe,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IAC/B,OAAO,MAAM,CAAC;AAClB,CAAC"} \ No newline at end of file +{"version":3,"file":"provider-jsonrpc.js","sourceRoot":"","sources":["../../src.ts/providers/provider-jsonrpc.ts"],"names":[],"mappings":";AAAA,SAAS;AACT,yBAAyB;;;AAEzB,yQAAyQ;AAEzQ,8CAA0D;AAC1D,kDAAiE;AACjE,+CAAoD;AACpD,sDAAwD;AACxD,gDAI2B;AAE3B,iEAA+E;AAC/E,6DAAsD;AACtD,6CAAuC;AACvC,qEAA8F;AAW9F,MAAM,SAAS,GAAG,8CAA8C,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;AAC7E,gDAAgD;AAChD,SAAS,QAAQ,CAAU,KAAQ;IAC/B,IAAI,KAAK,IAAI,IAAI,IAAI,SAAS,CAAC,OAAO,CAAC,OAAM,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,EAAE;QACxD,OAAO,KAAK,CAAC;KAChB;IAED,uBAAuB;IACvB,IAAI,OAAM,CAAO,KAAM,CAAC,UAAU,CAAC,KAAK,UAAU,EAAE;QAChD,OAAO,KAAK,CAAC;KAChB;IAED,IAAI,KAAK,CAAC,OAAO,CAAC,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rB,IAAI,OAAM,CAAC,KAAK,CAAC,KAAK,QAAQ,EAAE;QAC5B,KAAK,MAAM,GAAG,IAAI,KAAK,EAAE;YACrB,eAAe,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,CAAC;SACvC;KACJ;IAED,mDAAmD;IACnD,IAAI,OAAM,CAAC,KAAK,CAAC,KAAK,QAAQ,EAAE;QAC5B,IAAI;YACA,OAAO,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,CAAC;SACrD;QAAC,OAAO,KAAK,EAAE,GAAG;KACtB;AACL,CAAC;AAED,SAAS,cAAc,CAAC,KAAU;IAC9B,MAAM,MAAM,GAAkB,EAAG,CAAC;IAClC,eAAe,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IAC/B,OAAO,MAAM,CAAC;AAClB,CAAC"} \ No newline at end of file diff --git a/lib.commonjs/providers/provider-socket.js b/lib.commonjs/providers/provider-socket.js index 7b88ff9de..286e83cec 100644 --- a/lib.commonjs/providers/provider-socket.js +++ b/lib.commonjs/providers/provider-socket.js @@ -44,11 +44,7 @@ class SocketSubscriber { // @TODO: pause should trap the current blockNumber, unsub, and on resume use getLogs // and resume pause(dropWhilePaused) { - if (!dropWhilePaused) { - (0, index_js_1.throwError)("preserve logs while paused not supported by SocketSubscriber yet", "UNSUPPORTED_OPERATION", { - operation: "pause(false)" - }); - } + (0, index_js_1.assert)(dropWhilePaused, "preserve logs while paused not supported by SocketSubscriber yet", "UNSUPPORTED_OPERATION", { operation: "pause(false)" }); this.#paused = !!dropWhilePaused; } resume() { diff --git a/lib.commonjs/providers/provider-socket.js.map b/lib.commonjs/providers/provider-socket.js.map index d08d966d4..054e6e4a9 100644 --- a/lib.commonjs/providers/provider-socket.js.map +++ b/lib.commonjs/providers/provider-socket.js.map @@ -1 +1 @@ -{"version":3,"file":"provider-socket.js","sourceRoot":"","sources":["../../src.ts/providers/provider-socket.ts"],"names":[],"mappings":";AA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,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;YAC5C,IAAI,UAAU,EAAE;gBACZ,UAAU,CAAC,cAAc,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;aACnD;iBAAM;gBACH,IAAI,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;gBAC1C,IAAI,OAAO,IAAI,IAAI,EAAE;oBACjB,OAAO,GAAG,EAAG,CAAC;oBACd,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;iBACxC;gBACD,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;aACtC;SACJ;IACL,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,OAAe;QACxB,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAC;IACtD,CAAC;CACJ;AA1ID,wCA0IC"} \ No newline at end of file +{"version":3,"file":"provider-socket.js","sourceRoot":"","sources":["../../src.ts/providers/provider-socket.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;AAEH,iEAA6D;AAC7D,gDAA2D;AAC3D,+DAA2D;AAgB3D,MAAa,gBAAgB;IACzB,SAAS,CAAiB;IAE1B,OAAO,CAAS;IAChB,IAAI,MAAM,KAAiB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IAE7D,SAAS,CAAiC;IAC1C,OAAO,CAAiB;IAExB,YAAY,CAAuB;IAEnC,YAAY,QAAwB,EAAE,MAAkB;QACpD,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;QAC1B,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QACtC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;QACtB,IAAI,CAAC,OAAO,GAAG,I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AAM,CAAC,OAAe;QACxB,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAC;IACtD,CAAC;CACJ;AA1ID,wCA0IC"} \ No newline at end of file diff --git a/lib.commonjs/providers/provider.js b/lib.commonjs/providers/provider.js index c3375ce63..3e5ab0b6b 100644 --- a/lib.commonjs/providers/provider.js +++ b/lib.commonjs/providers/provider.js @@ -345,11 +345,7 @@ class TransactionReceipt { return createRemovedTransactionFilter(this); } reorderedEvent(other) { - if (other && !other.isMined()) { - return (0, index_js_1.throwError)("unmined 'other' transction cannot be orphaned", "UNSUPPORTED_OPERATION", { - operation: "reorderedEvent(other)" - }); - } + (0, index_js_1.assert)(!other || other.isMined(), "unmined 'other' transction cannot be orphaned", "UNSUPPORTED_OPERATION", { operation: "reorderedEvent(other)" }); return createReorderedTransactionFilter(this, other); } } @@ -506,7 +502,7 @@ class TransactionResponse { else if (tx.data === "0x" && tx.from === tx.to && tx.value === BN_0) { reason = "cancelled"; } - (0, index_js_1.throwError)("transaction was replaced", "TRANSACTION_REPLACED", { + (0, index_js_1.assert)(false, "transaction was replaced", "TRANSACTION_REPLACED", { cancelled: (reason === "replaced" || reason === "cancelled"), reason, replacement: tx.replaceableTransaction(startBlock), @@ -593,24 +589,12 @@ class TransactionResponse { return (this.type === 2); } removedEvent() { - if (!this.isMined()) { - return (0, index_js_1.throwError)("unmined transaction canot be orphaned", "UNSUPPORTED_OPERATION", { - operation: "removeEvent()" - }); - } + (0, index_js_1.assert)(this.isMined(), "unmined transaction canot be orphaned", "UNSUPPORTED_OPERATION", { operation: "removeEvent()" }); return createRemovedTransactionFilter(this); } reorderedEvent(other) { - if (!this.isMined()) { - return (0, index_js_1.throwError)("unmined transaction canot be orphaned", "UNSUPPORTED_OPERATION", { - operation: "removeEvent()" - }); - } - if (other && !other.isMined()) { - return (0, index_js_1.throwError)("unmined 'other' transaction canot be orphaned", "UNSUPPORTED_OPERATION", { - operation: "removeEvent()" - }); - } + (0, index_js_1.assert)(this.isMined(), "unmined transaction canot be orphaned", "UNSUPPORTED_OPERATION", { operation: "removeEvent()" }); + (0, index_js_1.assert)(!other || other.isMined(), "unmined 'other' transaction canot be orphaned", "UNSUPPORTED_OPERATION", { operation: "removeEvent()" }); return createReorderedTransactionFilter(this, other); } /** diff --git a/lib.commonjs/providers/provider.js.map b/lib.commonjs/providers/provider.js.map index c999be370..147a0147f 100644 --- a/lib.commonjs/providers/provider.js.map +++ b/lib.commonjs/providers/provider.js.map @@ -1 +1 @@ -{"version":3,"file":"provider.js","sourceRoot":"","sources":["../../src.ts/providers/provider.ts"],"names":[],"mappings":";;;AAAA,0DAA0D;AAC1D,gDAG2B;AAC3B,sDAAwD;AAWxD,MAAM,IAAI,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AAIvB,0BAA0B;AAE1B,SAAS,QAAQ,CAAI,KAA2B;IAC5C,IAAI,KAAK,IAAI,IAAI,EAAE;QAAE,OAAO,IAAI,CAAC;KAAE;IACnC,OAAO,KAAK,CAAC;AACjB,CAAC;AAED,SAAS,MAAM,CAAC,KAAoB;IAChC,IAAI,KAAK,IAAI,IAAI,EAAE;QAAE,OAAO,IAAI,CAAC;KAAE;IACnC,OAAO,KAAK,CAAC,QAAQ,EAAE,CAAC;AAC5B,CAAC;AAED,0DAA0D;AAC1D,MAAa,OAAO;IACP,QAAQ,CAAiB;IACzB,YAAY,CAAiB;IAC7B,oBAAoB,CAAiB;IAE9C,YAAY,QAAwB,EAAE,YAA4B,EAAE,oBAAoC;QACpG,IAAA,2BAAgB,EAAU,IAAI,EAAE;YAC5B,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC;YAC5B,YAAY,EAAE,QAAQ,CAAC,YAAY,CAAC;YACpC,oBAAoB,EAAE,QAAQ,CAAC,oBAAoB,CAAC;SACvD,CAAC,CAAC;IACP,CAAC;IAED,MAAM;QACF,MAAM,EACF,QAAQ,EAAE,YAAY,EAAE,oBAAoB,EAC/C,GAAG,IAAI,CAAC;QACT,OAAO;YACH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H,MAAM,EAAE,GAAG,IAAI,mBAAmB,CAAC,IAAI,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;QACxD,EAAE,CAAC,WAAW,GAAG,UAAU,CAAC;QAC5B,OAAO,EAAE,CAAC;IACd,CAAC;CACJ;AA5SD,kDA4SC;AA+BD,SAAS,yBAAyB,CAAC,KAAuC;IACtE,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,CAAC;AAC5E,CAAC;AAED,SAAS,gCAAgC,CAAC,EAA4D,EAAE,KAAgE;IACpK,OAAO,EAAE,MAAM,EAAE,qBAAqB,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC;AACxD,CAAC;AAED,SAAS,8BAA8B,CAAC,EAA4D;IAChG,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,EAAE,EAAE,CAAC;AAC9C,CAAC;AAED,SAAS,sBAAsB,CAAC,GAAqJ;IACjL,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,EAAE;YAC9B,eAAe,EAAE,GAAG,CAAC,eAAe;YACpC,SAAS,EAAE,GAAG,CAAC,SAAS;YACxB,WAAW,EAAE,GAAG,CAAC,WAAW;YAC5B,OAAO,EAAE,GAAG,CAAC,OAAO;YACpB,IAAI,EAAE,GAAG,CAAC,IAAI;YACd,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;YACzC,KAAK,EAAE,GAAG,CAAC,KAAK;SACnB,EAAE,CAAC;AACR,CAAC"} \ No newline at end of file diff --git a/lib.commonjs/providers/subscriber-filterid.js b/lib.commonjs/providers/subscriber-filterid.js index b046e1a95..2bc11dd9c 100644 --- a/lib.commonjs/providers/subscriber-filterid.js +++ b/lib.commonjs/providers/subscriber-filterid.js @@ -84,7 +84,6 @@ class FilterIdEventSubscriber extends FilterIdSubscriber { } async _subscribe(provider) { const filterId = await provider.send("eth_newFilter", [this.#event]); - console.log("____SUB", filterId); return filterId; } async _emitResults(provider, results) { diff --git a/lib.commonjs/providers/subscriber-filterid.js.map b/lib.commonjs/providers/subscriber-filterid.js.map index 1c9311890..add21b4c5 100644 --- a/lib.commonjs/providers/subscriber-filterid.js.map +++ b/lib.commonjs/providers/subscriber-filterid.js.map @@ -1 +1 @@ -{"version":3,"file":"subscriber-filterid.js","sourceRoot":"","sources":["../../src.ts/providers/subscriber-filterid.ts"],"names":[],"mappings":";;;AAAA,mEAAiE;AAQjE,SAAS,IAAI,CAAC,GAAQ;IAClB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;AAC3C,CAAC;AAED,MAAa,kBAAkB;IAC3B,SAAS,CAAqB;IAE9B,gBAAgB,CAAyB;IACzC,OAAO,CAA+B;IAEtC,QAAQ,CAAiB;IAEzB,YAAY,QAA4B;QACpC,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;QAE1B,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC;QAC7B,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAErC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;IACzB,CAAC;IAED,UAAU,CAAC,QAA4B;QACnC,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;IACrD,CAAC;IAED,YAAY,CAAC,QAA0B,EAAE,MAAkB;QACvD,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;IACrD,CAAC;IAED,QAAQ,CAAC,QAA0B;QAC/B,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;IACrD,CAAC;IAED,KAAK,CAAC,KAAK,CAAC,WAAmB;QAC3B,IAAI;YACA,IAAI,IAAI,CAAC,gBAAgB,IAAI,IAAI,EAAE;gBAC/B,IAAI,CAAC,gBAAgB,GAAG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AC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC;SAC5E;IACL,CAAC;CACJ;AAvBD,0DAuBC;AAED,MAAa,yBAA0B,SAAQ,kBAAkB;IAC7D,KAAK,CAAC,UAAU,CAAC,QAA4B;QACzC,OAAO,MAAM,QAAQ,CAAC,IAAI,CAAC,iCAAiC,EAAE,EAAG,CAAC,CAAC;IACvE,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,QAA4B,EAAE,OAAmB;QAChE,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE;YAC1B,QAAQ,CAAC,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;SACpC;IACL,CAAC;CACJ;AAVD,8DAUC"} \ No newline at end of file +{"version":3,"file":"subscriber-filterid.js","sourceRoot":"","sources":["../../src.ts/providers/subscriber-filterid.ts"],"names":[],"mappings":";;;AAAA,mEAAiE;AAQjE,SAAS,IAAI,CAAC,GAAQ;IAClB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;AAC3C,CAAC;AAED,MAAa,kBAAkB;IAC3B,SAAS,CAAqB;IAE9B,gBAAgB,CAAyB;IACzC,OAAO,CAA+B;IAEtC,QAAQ,CAAiB;IAEzB,YAAY,QAA4B;QACpC,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;QAE1B,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC;QAC7B,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAErC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;IACzB,CAAC;IAED,UAAU,CAAC,QAA4B;QACnC,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;IACrD,CAAC;IAED,YAAY,CAAC,QAA0B,EAAE,MAAkB;QACvD,MAAM,IAAI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EAAE,CAAE,IAAI,CAAC,MAAM,CAAE,CAAC,CAAC;QACvE,OAAO,QAAQ,CAAC;IACpB,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,QAA4B,EAAE,OAAmB;QAChE,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE;YAC1B,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC;SAC5E;IACL,CAAC;CACJ;AAtBD,0DAsBC;AAED,MAAa,yBAA0B,SAAQ,kBAAkB;IAC7D,KAAK,CAAC,UAAU,CAAC,QAA4B;QACzC,OAAO,MAAM,QAAQ,CAAC,IAAI,CAAC,iCAAiC,EAAE,EAAG,CAAC,CAAC;IACvE,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,QAA4B,EAAE,OAAmB;QAChE,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE;YAC1B,QAAQ,CAAC,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;SACpC;IACL,CAAC;CACJ;AAVD,8DAUC"} \ No newline at end of file diff --git a/lib.commonjs/providers/subscriber-polling.js b/lib.commonjs/providers/subscriber-polling.js index 42dad9ba8..5929acec0 100644 --- a/lib.commonjs/providers/subscriber-polling.js +++ b/lib.commonjs/providers/subscriber-polling.js @@ -12,7 +12,7 @@ function getPollingSubscriber(provider, event) { if ((0, index_js_1.isHexString)(event, 32)) { return new PollingTransactionSubscriber(provider, event); } - return (0, index_js_1.throwError)("unsupported polling event", "UNSUPPORTED_OPERATION", { + (0, index_js_1.assert)(false, "unsupported polling event", "UNSUPPORTED_OPERATION", { operation: "getPollingSubscriber", info: { event } }); } diff --git a/lib.commonjs/providers/subscriber-polling.js.map b/lib.commonjs/providers/subscriber-polling.js.map index 5b78d78bf..97c91205b 100644 --- a/lib.commonjs/providers/subscriber-polling.js.map +++ b/lib.commonjs/providers/subscriber-polling.js.map @@ -1 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eb059299d..d7dcb2832 100644 --- a/lib.commonjs/transaction/transaction.js +++ b/lib.commonjs/transaction/transaction.js @@ -23,7 +23,7 @@ function handleData(value, param) { return (0, index_js_3.hexlify)(value); } catch (error) { - return (0, index_js_3.throwArgumentError)("invalid data", param, value); + (0, index_js_3.assertArgument)(false, "invalid data", param, value); } } function handleAccessList(value, param) { @@ -31,7 +31,7 @@ function handleAccessList(value, param) { return (0, accesslist_js_1.accessListify)(value); } catch (error) { - return (0, index_js_3.throwArgumentError)("invalid accessList", param, value); + (0, index_js_3.assertArgument)(false, "invalid accessList", param, value); } } function handleNumber(_value, param) { @@ -45,17 +45,13 @@ function handleUint(_value, param) { return BN_0; } const value = (0, index_js_3.getBigInt)(_value, param); - if (value > BN_MAX_UINT) { - (0, index_js_3.throwArgumentError)("value exceeds uint size", param, value); - } + (0, index_js_3.assertArgument)(value <= BN_MAX_UINT, "value exceeds uint size", param, value); return value; } function formatNumber(_value, name) { const value = (0, index_js_3.getBigInt)(_value, "value"); const result = (0, index_js_3.toArray)(value); - if (result.length > 32) { - (0, index_js_3.throwArgumentError)(`value too large`, `tx.${name}`, value); - } + (0, index_js_3.assertArgument)(result.length <= 32, `value too large`, `tx.${name}`, value); return result; } function formatAccessList(value) { @@ -63,9 +59,7 @@ function formatAccessList(value) { } function _parseLegacy(data) { const fields = (0, index_js_3.decodeRlp)(data); - if (!Array.isArray(fields) || (fields.length !== 9 && fields.length !== 6)) { - return (0, index_js_3.throwArgumentError)("invalid field count for legacy transaction", "data", data); - } + (0, index_js_3.assertArgument)(Array.isArray(fields) && (fields.length === 9 || fields.length === 6), "invalid field count for legacy transaction", "data", data); const tx = { type: 0, nonce: handleNumber(fields[0], "nonce"), @@ -95,9 +89,7 @@ function _parseLegacy(data) { } tx.chainId = chainId; // Signed Legacy Transaction - if (chainId === BN_0 && (v < BN_27 || v > BN_28)) { - (0, index_js_3.throwArgumentError)("non-canonical legacy v", "v", fields[6]); - } + (0, index_js_3.assertArgument)(chainId !== BN_0 || (v === BN_27 || v === BN_28), "non-canonical legacy v", "v", fields[6]); tx.signature = index_js_2.Signature.from({ r: (0, index_js_3.zeroPadValue)(fields[7], 32), s: (0, index_js_3.zeroPadValue)(fields[8], 32), @@ -122,9 +114,7 @@ function _serializeLegacy(tx, sig) { chainId = (0, index_js_3.getBigInt)(tx.chainId, "tx.chainId"); // We have a chainId in the tx and an EIP-155 v in the signature, // make sure they agree with each other - if (sig && sig.networkV != null && sig.legacyChainId !== chainId) { - (0, index_js_3.throwArgumentError)("tx.chainId/sig.v mismatch", "sig", sig); - } + (0, index_js_3.assertArgument)(!sig || sig.networkV == null || sig.legacyChainId === chainId, "tx.chainId/sig.v mismatch", "sig", sig); } else if (sig) { // No chainId provided, but the signature is signing with EIP-155; derive chainId @@ -149,7 +139,7 @@ function _serializeLegacy(tx, sig) { v = index_js_2.Signature.getChainIdV(chainId, sig.v); } else if (BigInt(sig.v) !== v) { - (0, index_js_3.throwArgumentError)("tx.chainId/sig.v mismatch", "sig", sig); + (0, index_js_3.assertArgument)(false, "tx.chainId/sig.v mismatch", "sig", sig); } fields.push((0, index_js_3.toArray)(v)); fields.push((0, index_js_3.toArray)(sig.r)); @@ -165,7 +155,7 @@ function _parseEipSignature(tx, fields, serialize) { } } catch (error) { - return (0, index_js_3.throwArgumentError)("invalid yParity", "yParity", fields[0]); + (0, index_js_3.assertArgument)(false, "invalid yParity", "yParity", fields[0]); } const r = (0, index_js_3.zeroPadValue)(fields[1], 32); const s = (0, index_js_3.zeroPadValue)(fields[2], 32); @@ -174,9 +164,7 @@ function _parseEipSignature(tx, fields, serialize) { } function _parseEip1559(data) { const fields = (0, index_js_3.decodeRlp)((0, index_js_3.getBytes)(data).slice(1)); - if (!Array.isArray(fields) || (fields.length !== 9 && fields.length !== 12)) { - (0, index_js_3.throwArgumentError)("invalid field count for transaction type: 2", "data", (0, index_js_3.hexlify)(data)); - } + (0, index_js_3.assertArgument)(Array.isArray(fields) && (fields.length === 9 || fields.length === 12), "invalid field count for transaction type: 2", "data", (0, index_js_3.hexlify)(data)); const maxPriorityFeePerGas = handleUint(fields[2], "maxPriorityFeePerGas"); const maxFeePerGas = handleUint(fields[3], "maxFeePerGas"); const tx = { @@ -221,9 +209,7 @@ function _serializeEip1559(tx, sig) { } function _parseEip2930(data) { const fields = (0, index_js_3.decodeRlp)((0, index_js_3.getBytes)(data).slice(1)); - if (!Array.isArray(fields) || (fields.length !== 8 && fields.length !== 11)) { - (0, index_js_3.throwArgumentError)("invalid field count for transaction type: 1", "data", (0, index_js_3.hexlify)(data)); - } + (0, index_js_3.assertArgument)(Array.isArray(fields) && (fields.length === 8 || fields.length === 11), "invalid field count for transaction type: 1", "data", (0, index_js_3.hexlify)(data)); const tx = { type: 1, chainId: handleUint(fields[0], "chainId"), diff --git a/lib.commonjs/transaction/transaction.js.map b/lib.commonjs/transaction/transaction.js.map index 186bda18a..0dd44cc32 100644 --- a/lib.commonjs/transaction/transaction.js.map +++ b/lib.commonjs/transaction/transaction.js.map @@ -1 +1 @@ -{"version":3,"file":"transaction.js","sourceRoot":"","sources":["../../src.ts/transaction/transaction.ts"],"names":[],"mappings":";;;AACA,kDAAiD;AACjD,iDAA0D;AAC1D,gDAG2B;AAE3B,mDAAgD;AAChD,6CAA8C;AAQ9C,MAAM,IAAI,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AACvB,MAAM,IAAI,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AACvB,MAAM,KAAK,GAAG,MAAM,CAAC,EAAE,CAAC,CAAA;AACxB,MAAM,KAAK,GAAG,MAAM,CAAC,EAAE,CAAC,CAAA;AACxB,MAAM,KAAK,GAAG,MAAM,CAAC,EAAE,CAAC,CAAC;AACzB,MAAM,WAAW,GAAG,MAAM,CAAC,oEAAoE,CAAC,CAAC;AA2BjG,SAAS,aAAa,CAAC,KAAa;IAChC,IAAI,KAAK,KAAK,IAAI,EAAE;QAAE,OAAO,IAAI,CAAC;KAAE;IACpC,OAAO,IAAA,qBAAU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,IAAI,EAAE;oBAAE,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC,CAAC;iBAAE;aACrE;iBAAM;gBACH,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAC;aAC/D;SACJ;QAED,IAAI,EAAE,CAAC,IAAI,IAAI,IAAI,EAAE;YACjB,IAAI,MAAM,CAAC,QAAQ,EAAE,EAAE;gBACnB,IAAI,MAAM,CAAC,IAAI,CAAC,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,WAAW,EAAE,EAAE;oBAAE,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC,CAAC;iBAAE;aACzG;iBAAM;gBACH,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAC;aAC9D;SACJ;QAED,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ;AAjWD,kCAiWC"} \ No newline at end of file +{"version":3,"file":"transaction.js","sourceRoot":"","sources":["../../src.ts/transaction/transaction.ts"],"names":[],"mappings":";;;AACA,kDAAiD;AACjD,iDAA0D;AAC1D,gDAG2B;AAE3B,mDAAgD;AAChD,6CAA8C;AAQ9C,MAAM,IAAI,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AACvB,MAAM,IAAI,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AACvB,MAAM,KAAK,GAAG,MAAM,CAAC,EAAE,CAAC,CAAA;AACxB,MAAM,KAAK,GAAG,MAAM,CAAC,EAAE,CAAC,CAAA;AACxB,MAAM,KAAK,GAAG,MAAM,CAAC,EAAE,CAAC,CAAC;AACzB,MAAM,WAAW,GAAG,MAAM,CAAC,oEAAoE,CAAC,CAAC;AA2BjG,SAAS,aAAa,CAAC,KAAa;IAChC,IAAI,KAAK,KAAK,IAAI,EAAE;QAAE,OAAO,IAAI,CAAC;KAAE;IACpC,OAAO,IAAA,qBAAU,EAAC,KAAK,CAAC,CAAC;AAC7B,CAAC;AAED,SAAS,UAAU,CAAC,KAAa,EAA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E;YACjB,IAAI,MAAM,CAAC,QAAQ,EAAE,EAAE;gBACnB,IAAI,MAAM,CAAC,IAAI,CAAC,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,WAAW,EAAE,EAAE;oBAAE,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC,CAAC;iBAAE;aACzG;iBAAM;gBACH,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAC;aAC9D;SACJ;QAED,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ;AAjWD,kCAiWC"} \ No newline at end of file diff --git a/lib.commonjs/utils/base58.js b/lib.commonjs/utils/base58.js index 586233863..6e2673358 100644 --- a/lib.commonjs/utils/base58.js +++ b/lib.commonjs/utils/base58.js @@ -14,9 +14,7 @@ function getAlpha(letter) { } } const result = Lookup[letter]; - if (result == null) { - (0, errors_js_1.throwArgumentError)(`invalid base58 value`, "letter", letter); - } + (0, errors_js_1.assertArgument)(result != null, `invalid base58 value`, "letter", letter); return result; } const BN_0 = BigInt(0); diff --git a/lib.commonjs/utils/base58.js.map b/lib.commonjs/utils/base58.js.map index 5ca13d4d6..f3b9ea30f 100644 --- a/lib.commonjs/utils/base58.js.map +++ b/lib.commonjs/utils/base58.js.map @@ -1 +1 @@ -{"version":3,"file":"base58.js","sourceRoot":"","sources":["../../src.ts/utils/base58.ts"],"names":[],"mappings":";;;AACA,uCAAqC;AACrC,2CAAiD;AACjD,yCAA6C;AAK7C,MAAM,QAAQ,GAAG,4DAA4D,CAAC;AAC9E,IAAI,MAAM,GAAkC,IAAI,CAAC;AAEjD,SAAS,QAAQ,CAAC,MAAc;IAC5B,IAAI,MAAM,IAAI,IAAI,EAAE;QAChB,MAAM,GAAG,EAAG,CAAC;QACb,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YACtC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,C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I,KAAK,CAAC;QAChB,MAAM,IAAI,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;KAChC;IACD,OAAO,IAAA,kBAAQ,EAAC,IAAA,gBAAK,EAAC,MAAM,CAAC,CAAC,CAAC;AACnC,CAAC;AAPD,oCAOC"} \ No newline at end of file diff --git a/lib.commonjs/utils/data.js b/lib.commonjs/utils/data.js index cf68a69be..c968a1dc4 100644 --- a/lib.commonjs/utils/data.js +++ b/lib.commonjs/utils/data.js @@ -18,7 +18,7 @@ function _getBytes(value, name, copy) { } return result; } - return (0, errors_js_1.throwArgumentError)("invalid BytesLike value", name || "value", value); + (0, errors_js_1.assertArgument)(false, "invalid BytesLike value", name || "value", value); } /** * Get a typed Uint8Array for %%value%%. If already a Uint8Array @@ -114,7 +114,7 @@ exports.dataLength = dataLength; function dataSlice(data, start, end) { const bytes = getBytes(data); if (end != null && end > bytes.length) { - (0, errors_js_1.throwError)("cannot slice beyond data bounds", "BUFFER_OVERRUN", { + (0, errors_js_1.assert)(false, "cannot slice beyond data bounds", "BUFFER_OVERRUN", { buffer: bytes, length: bytes.length, offset: end }); } @@ -135,13 +135,11 @@ function stripZerosLeft(data) { exports.stripZerosLeft = stripZerosLeft; function zeroPad(data, length, left) { const bytes = getBytes(data); - if (length < bytes.length) { - (0, errors_js_1.throwError)("padding exceeds data length", "BUFFER_OVERRUN", { - buffer: new Uint8Array(bytes), - length: length, - offset: length + 1 - }); - } + (0, errors_js_1.assert)(length >= bytes.length, "padding exceeds data length", "BUFFER_OVERRUN", { + buffer: new Uint8Array(bytes), + length: length, + offset: length + 1 + }); const result = new Uint8Array(length); result.fill(0); if (left) { diff --git a/lib.commonjs/utils/data.js.map b/lib.commonjs/utils/data.js.map index 690901b46..572aa6d27 100644 --- a/lib.commonjs/utils/data.js.map +++ b/lib.commonjs/utils/data.js.map @@ -1 +1 @@ -{"version":3,"file":"data.js","sourceRoot":"","sources":["../../src.ts/utils/data.ts"],"names":[],"mappings":";;;A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CAAC,CAAC;KAAE;IACrE,OAAO,IAAI,GAAG,KAAK,CAAC;AACxB,CAAC;AAJD,wCAIC;AAED,SAAS,OAAO,CAAC,IAAe,EAAE,MAAc,EAAE,IAAa;IAC3D,MAAM,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC7B,IAAA,kBAAM,EAAC,MAAM,IAAI,KAAK,CAAC,MAAM,EAAE,6BAA6B,EAAE,gBAAgB,EAAE;QAC5E,MAAM,EAAE,IAAI,UAAU,CAAC,KAAK,CAAC;QAC7B,MAAM,EAAE,MAAM;QACd,MAAM,EAAE,MAAM,GAAG,CAAC;KACrB,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,IAAI,UAAU,CAAC,MAAM,CAAC,CAAC;IACtC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACf,IAAI,IAAI,EAAE;QACN,MAAM,CAAC,GAAG,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;KAC5C;SAAM;QACH,MAAM,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;KACxB;IAED,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC;AAC3B,CAAC;AAED;;;GAGG;AACH,SAAgB,YAAY,CAAC,IAAe,EAAE,MAAc;IACxD,OAAO,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;AACvC,CAAC;AAFD,oCAEC;AAED;;;GAGG;AACH,SAAgB,YAAY,CAAC,IAAe,EAAE,MAAc;IACxD,OAAO,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;AACxC,CAAC;AAFD,oCAEC"} \ No newline at end of file diff --git a/lib.commonjs/utils/errors.js b/lib.commonjs/utils/errors.js index 547bdaad2..2d4a4a53b 100644 --- a/lib.commonjs/utils/errors.js +++ b/lib.commonjs/utils/errors.js @@ -1,6 +1,6 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.assertPrivate = exports.assertNormalize = exports.assertArgumentCount = exports.assertArgument = exports.throwArgumentError = exports.throwError = exports.makeError = exports.isCallException = exports.isError = void 0; +exports.assertPrivate = exports.assertNormalize = exports.assertArgumentCount = exports.assertArgument = exports.assert = exports.makeError = exports.isCallException = exports.isError = void 0; const _version_js_1 = require("../_version.js"); const properties_js_1 = require("./properties.js"); // The type of error to use for various error codes @@ -83,25 +83,16 @@ function makeError(message, code, info) { exports.makeError = makeError; /** * Throws an EthersError with %%message%%, %%code%% and additional error - * info. + * %%info%% when %%check%% is falsish.. * * @see [[api:makeError]] */ -function throwError(message, code, info) { - throw makeError(message, code, info); +function assert(check, message, code, info) { + if (!check) { + throw makeError(message, code, info); + } } -exports.throwError = throwError; -/** - * Throws an [[api:ArgumentError]] with %%message%% for the parameter with - * %%name%% and the %%value%%. - */ -function throwArgumentError(message, name, value) { - return throwError(message, "INVALID_ARGUMENT", { - argument: name, - value: value - }); -} -exports.throwArgumentError = throwArgumentError; +exports.assert = assert; /** * A simple helper to simply ensuring provided arguments match expected * constraints, throwing if not. @@ -110,27 +101,21 @@ exports.throwArgumentError = throwArgumentError; * any further code does not need additional compile-time checks. */ function assertArgument(check, message, name, value) { - if (!check) { - throwArgumentError(message, name, value); - } + assert(check, message, "INVALID_ARGUMENT", { argument: name, value: value }); } exports.assertArgument = assertArgument; function assertArgumentCount(count, expectedCount, message = "") { if (message) { message = ": " + message; } - if (count < expectedCount) { - throwError("missing arguemnt" + message, "MISSING_ARGUMENT", { - count: count, - expectedCount: expectedCount - }); - } - if (count > expectedCount) { - throwError("too many arguemnts" + message, "UNEXPECTED_ARGUMENT", { - count: count, - expectedCount: expectedCount - }); - } + assert(count >= expectedCount, "missing arguemnt" + message, "MISSING_ARGUMENT", { + count: count, + expectedCount: expectedCount + }); + assert(count <= expectedCount, "too many arguemnts" + message, "UNEXPECTED_ARGUMENT", { + count: count, + expectedCount: expectedCount + }); } exports.assertArgumentCount = assertArgumentCount; const _normalizeForms = ["NFD", "NFC", "NFKD", "NFKC"].reduce((accum, form) => { @@ -160,11 +145,9 @@ const _normalizeForms = ["NFD", "NFC", "NFKD", "NFKC"].reduce((accum, form) => { * Throws if the normalization %%form%% is not supported. */ function assertNormalize(form) { - if (_normalizeForms.indexOf(form) === -1) { - throwError("platform missing String.prototype.normalize", "UNSUPPORTED_OPERATION", { - operation: "String.prototype.normalize", info: { form } - }); - } + assert(_normalizeForms.indexOf(form) >= 0, "platform missing String.prototype.normalize", "UNSUPPORTED_OPERATION", { + operation: "String.prototype.normalize", info: { form } + }); } exports.assertNormalize = assertNormalize; /** @@ -180,7 +163,7 @@ function assertPrivate(givenGuard, guard, className = "") { method += "."; operation += " " + className; } - throwError(`private constructor; use ${method}from* methods`, "UNSUPPORTED_OPERATION", { + assert(false, `private constructor; use ${method}from* methods`, "UNSUPPORTED_OPERATION", { operation }); } diff --git a/lib.commonjs/utils/errors.js.map b/lib.commonjs/utils/errors.js.map index 122e6613c..739885a3f 100644 --- a/lib.commonjs/utils/errors.js.map +++ b/lib.commonjs/utils/errors.js.map @@ -1 +1 @@ -{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src.ts/utils/errors.ts"],"names":[],"mappings":";;;AAAA,gDAAyC;AAEzC,mDAAiD;AAWjD,mDAAmD;AACnD,MAAM,iBAAiB,GAAyD,EAAG,CAAC;AACpF,iBAAiB,CAAC,gBAAgB,GAAG,SAAS,CAAC;AAC/C,iBAAiB,CAAC,aAAa,GAAG,UAAU,CAAC;AAC7C,iBAAiB,CAAC,cAAc,GAAG,UAAU,CAAC;AAkO9C;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,OAAO,CAAqD,KAAU,EAAE,IAAO;IAC3F,OAAO,CAAC,KAAK,IAAkB,KAAM,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC;AACzD,CAAC;AAFD,0BAEC;AAED;;GAEG;AACH,SAAgB,eAAe,CAAC,KAAU;IACtC,OAAO,OAAO,CAAC,KAAK,EAAE,gB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,GAAG,SAAS,EAAE,SAAS,GAAG,KAAK,CAAC;QAC1C,IAAI,SAAS,EAAE;YACX,MAAM,IAAI,GAAG,CAAC;YACd,SAAS,IAAI,GAAG,GAAG,SAAS,CAAC;SAChC;QACD,UAAU,CAAC,4BAA6B,MAAO,eAAe,EAAE,uBAAuB,EAAE;YACrF,SAAS;SACZ,CAAC,CAAC;KACN;AACL,CAAC;AAXD,sCAWC"} \ No newline at end of file +{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src.ts/utils/errors.ts"],"names":[],"mappings":";;;AAAA,gDAAyC;AAEzC,mDAAiD;AAWjD,mDAAmD;AACnD,MAAM,iBAAiB,GAAyD,EAAG,CAAC;AACpF,iBAAiB,CAAC,gBAAgB,GAAG,SAAS,CAAC;AAC/C,iBAAiB,CAAC,aAAa,GAAG,UAAU,CAAC;AAC7C,iBAAiB,CAAC,cAAc,GAAG,UAAU,CAAC;AAkO9C;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,OAAO,CAAqD,KAAU,EAAE,IAAO;IAC3F,OAAO,CAAC,KAAK,IAAkB,KAAM,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC;AACzD,CAAC;AAFD,0BAEC;AAED;;GAEG;AACH,SAAgB,eAAe,CAAC,KAAU;IACtC,OAAO,OAAO,CAAC,KAAK,EAAE,gBAAgB,CAAC,CAAC;AAC5C,CAAC;AAFD,0CAEC;AAED;;;;;;;;;GASG;AACH,SAAgB,SAAS,CAAqD,OAAe,EAAE,IAAO,EAAE,IAAmB;IACvH;QACI,MAAM,OAAO,GAAkB,EAAE,CAAC;QAClC,IAAI,IAAI,EAAE;YACN,IAAI,SAAS,IAAI,IAAI,IAAI,MAAM,IAAI,IAAI,IAAI,MAAM,IAAI,IAAI,EAAE;gBACvD,MAAM,IAAI,KAAK,CAAC,0CAA2C,IAAI,CAAC,SAAS,CAAC,IAAI,CAAE,EAAE,CAAC,CAAC;aACvF;YACD,KAAK,MAAM,GAAG,IAAI,IAAI,E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AI,KAAK,KAAK,QAAQ,EAAE;gBAAE,MAAM,IAAI,KAAK,CAAC,QAAQ,CAAC,CAAA;aAAE;YACrD,oBAAoB;SACvB;QAED,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KACpB;IAAC,OAAM,KAAK,EAAE,GAAG;IAElB,OAAO,KAAK,CAAC;AACjB,CAAC,EAAiB,EAAE,CAAC,CAAC;AAEtB;;GAEG;AACH,SAAgB,eAAe,CAAC,IAAY;IACxC,MAAM,CAAC,eAAe,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,6CAA6C,EAAE,uBAAuB,EAAE;QAC/G,SAAS,EAAE,4BAA4B,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE;KAC1D,CAAC,CAAC;AACP,CAAC;AAJD,0CAIC;AAED;;;;;GAKG;AACH,SAAgB,aAAa,CAAC,UAAe,EAAE,KAAU,EAAE,YAAoB,EAAE;IAC7E,IAAI,UAAU,KAAK,KAAK,EAAE;QACtB,IAAI,MAAM,GAAG,SAAS,EAAE,SAAS,GAAG,KAAK,CAAC;QAC1C,IAAI,SAAS,EAAE;YACX,MAAM,IAAI,GAAG,CAAC;YACd,SAAS,IAAI,GAAG,GAAG,SAAS,CAAC;SAChC;QACD,MAAM,CAAC,KAAK,EAAE,4BAA6B,MAAO,eAAe,EAAE,uBAAuB,EAAE;YACxF,SAAS;SACZ,CAAC,CAAC;KACN;AACL,CAAC;AAXD,sCAWC"} \ No newline at end of file diff --git a/lib.commonjs/utils/fetch.js b/lib.commonjs/utils/fetch.js index 5403cd390..3537faf24 100644 --- a/lib.commonjs/utils/fetch.js +++ b/lib.commonjs/utils/fetch.js @@ -73,11 +73,9 @@ class FetchCancelSignal { }); } addListener(listener) { - if (this.#cancelled) { - (0, errors_js_1.throwError)("singal already cancelled", "UNSUPPORTED_OPERATION", { - operation: "fetchCancelSignal.addCancelListener" - }); - } + (0, errors_js_1.assert)(this.#cancelled, "singal already cancelled", "UNSUPPORTED_OPERATION", { + operation: "fetchCancelSignal.addCancelListener" + }); this.#listeners.push(listener); } get cancelled() { return this.#cancelled; } @@ -85,7 +83,7 @@ class FetchCancelSignal { if (!this.cancelled) { return; } - (0, errors_js_1.throwError)("cancelled", "CANCELLED", {}); + (0, errors_js_1.assert)(false, "cancelled", "CANCELLED", {}); } } exports.FetchCancelSignal = FetchCancelSignal; @@ -263,9 +261,7 @@ class FetchRequest { * Sets an ``Authorization`` for %%username%% with %%password%%. */ setCredentials(username, password) { - if (username.match(/:/)) { - (0, errors_js_1.throwArgumentError)("invalid basic authentication username", "username", "[REDACTED]"); - } + (0, errors_js_1.assertArgument)(!username.match(/:/), "invalid basic authentication username", "username", "[REDACTED]"); this.#creds = `${username}:${password}`; } /** @@ -357,11 +353,9 @@ class FetchRequest { if (attempt >= this.#throttle.maxAttempts) { return _response.makeServerError("exceeded maximum retry limit"); } - if (getTime() > expires) { - return (0, errors_js_1.throwError)("timeout", "TIMEOUT", { - operation: "request.send", reason: "timeout", request: _request - }); - } + (0, errors_js_1.assert)(getTime() <= expires, "timeout", "TIMEOUT", { + operation: "request.send", reason: "timeout", request: _request + }); if (delay > 0) { await wait(delay); } @@ -441,9 +435,7 @@ class FetchRequest { * Resolves to the response by sending the request. */ send() { - if (this.#signal != null) { - return (0, errors_js_1.throwError)("request already sent", "UNSUPPORTED_OPERATION", { operation: "fetchRequest.send" }); - } + (0, errors_js_1.assert)(this.#signal == null, "request already sent", "UNSUPPORTED_OPERATION", { operation: "fetchRequest.send" }); this.#signal = new FetchCancelSignal(this); return this.#send(0, getTime() + this.timeout, 0, this, new FetchResponse(0, "", {}, null, this)); } @@ -452,9 +444,7 @@ class FetchRequest { * error to be rejected from the [[send]]. */ cancel() { - if (this.#signal == null) { - return (0, errors_js_1.throwError)("request has not been sent", "UNSUPPORTED_OPERATION", { operation: "fetchRequest.cancel" }); - } + (0, errors_js_1.assert)(this.#signal != null, "request has not been sent", "UNSUPPORTED_OPERATION", { operation: "fetchRequest.cancel" }); const signal = fetchSignals.get(this); if (!signal) { throw new Error("missing signal; should not happen"); @@ -473,11 +463,9 @@ class FetchRequest { // - non-GET requests // - downgrading the security (e.g. https => http) // - to non-HTTP (or non-HTTPS) protocols [this could be relaxed?] - if (this.method !== "GET" || (current === "https" && target === "http") || !location.match(/^https?:/)) { - return (0, errors_js_1.throwError)(`unsupported redirect`, "UNSUPPORTED_OPERATION", { - operation: `redirect(${this.method} ${JSON.stringify(this.url)} => ${JSON.stringify(location)})` - }); - } + (0, errors_js_1.assert)(this.method === "GET" && (current !== "https" || target !== "http") && location.match(/^https?:/), `unsupported redirect`, "UNSUPPORTED_OPERATION", { + operation: `redirect(${this.method} ${JSON.stringify(this.url)} => ${JSON.stringify(location)})` + }); // Create a copy of this request, with a new URL const req = new FetchRequest(location); req.method = "GET"; @@ -601,7 +589,7 @@ class FetchResponse { return (this.#body == null) ? "" : (0, utf8_js_1.toUtf8String)(this.#body); } catch (error) { - return (0, errors_js_1.throwError)("response body is not valid UTF-8 data", "UNSUPPORTED_OPERATION", { + (0, errors_js_1.assert)(false, "response body is not valid UTF-8 data", "UNSUPPORTED_OPERATION", { operation: "bodyText", info: { response: this } }); } @@ -616,7 +604,7 @@ class FetchResponse { return JSON.parse(this.bodyText); } catch (error) { - return (0, errors_js_1.throwError)("response body is not valid JSON", "UNSUPPORTED_OPERATION", { + (0, errors_js_1.assert)(false, "response body is not valid JSON", "UNSUPPORTED_OPERATION", { operation: "bodyJson", info: { response: this } }); } @@ -674,8 +662,8 @@ class FetchResponse { if (stall == null) { stall = -1; } - else if (typeof (stall) !== "number" || !Number.isInteger(stall) || stall < 0) { - return (0, errors_js_1.throwArgumentError)("invalid stall timeout", "stall", stall); + else { + (0, errors_js_1.assertArgument)(Number.isInteger(stall) && stall >= 0, "invalid stall timeout", "stall", stall); } const error = new Error(message || "throttling requests"); (0, properties_js_1.defineProperties)(error, { stall, throttle: true }); @@ -714,7 +702,7 @@ class FetchResponse { if (message === "") { message = `server response ${this.statusCode} ${this.statusMessage}`; } - (0, errors_js_1.throwError)(message, "SERVER_ERROR", { + (0, errors_js_1.assert)(false, message, "SERVER_ERROR", { request: (this.request || "unknown request"), response: this, error }); } diff --git a/lib.commonjs/utils/fetch.js.map b/lib.commonjs/utils/fetch.js.map index f274e34a4..e554cad19 100644 --- a/lib.commonjs/utils/fetch.js.map +++ b/lib.commonjs/utils/fetch.js.map @@ -1 +1 @@ -{"version":3,"file":"fetch.js","sourceRoot":"","sources":["../../src.ts/utils/fetch.ts"],"names":[],"mappings":";;;AAAA,2CAAyD;AACzD,uCAAoC;AACpC,2CAA6E;AAC7E,mDAAmD;AACnD,uCAAqD;AAErD,2CAAqC;AA2CrC,MAAM,YAAY,GAAG,EAAE,CAAC;AACxB,MAAM,aAAa,GAAG,GAAG,CAAC;AAE1B,6CAA6C;AAC7C,IAAI,UAAU,GAAoB,kBAAM,CAAC;AAEzC,MAAM,MAAM,GAAG,IAAI,MAAM,CAAC,iCAAiC,EAAE,GAAG,CAAC,CAAC;AAClE,MAAM,MAAM,GAAG,IAAI,MAAM,CAAC,wBAAwB,EAAE,GAAG,CAAC,CAAC;AAEzD,0CAA0C;AAC1C,IAAI,MAAM,GAAG,KAAK,CAAC;AAEnB,6EAA6E;AAC7E,KAAK,UAAU,WAAW,CAAC,GAAW,EAAE,MAA0B;IAC9D,IAAI;QACA,MAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAChC,IAAI,CAAC,KAAK,EAAE;YAAE,MAAM,IAAI,KAAK,CAAC,cAAc,CAAC,CAAC;SAAE;QAChD,OAAO,IAAI,aAAa,CAAC,GAAG,EAAE,IAAI,EAAE;YAChC,cAAc,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,YAAY,CAAC;SAC7C,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAA,wBAAY,EAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAA,CAAC,CAAC,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OAAO,MAAM,CAAC,YAAY,CAAC,QAAQ,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC;IACnD,CAAC,CAAC,CAAC,CAAC;AACR,CAAC;AAED,SAAS,IAAI,CAAC,KAAa;IACvB,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC;AAChE,CAAC"} \ No newline at end of file diff --git a/lib.commonjs/utils/fixednumber.js b/lib.commonjs/utils/fixednumber.js index 1529babb3..367786197 100644 --- a/lib.commonjs/utils/fixednumber.js +++ b/lib.commonjs/utils/fixednumber.js @@ -4,14 +4,14 @@ exports.FixedNumber = exports.FixedFormat = exports.parseFixed = exports.formatF const data_js_1 = require("./data.js"); const errors_js_1 = require("./errors.js"); const maths_js_1 = require("./maths.js"); -const _constructorGuard = {}; +const _guard = {}; const NegativeOne = BigInt(-1); function throwFault(message, fault, operation, value) { const params = { fault: fault, operation: operation }; if (value !== undefined) { params.value = value; } - return (0, errors_js_1.throwError)(message, "NUMERIC_FAULT", params); + (0, errors_js_1.assert)(false, message, "NUMERIC_FAULT", params); } // Constant to pull zeros from for multipliers let zeros = "0"; @@ -20,9 +20,7 @@ while (zeros.length < 256) { } // Returns a string "1" followed by decimal "0"s function getMultiplier(decimals) { - if (typeof (decimals) !== "number" || decimals < 0 || decimals > 256 || decimals % 1) { - (0, errors_js_1.throwArgumentError)("invalid decimal length", "decimals", decimals); - } + (0, errors_js_1.assertArgument)(Number.isInteger(decimals) && decimals >= 0 && decimals <= 256, "invalid decimal length", "decimals", decimals); return BigInt("1" + zeros.substring(0, decimals)); } function formatFixed(_value, _decimals) { @@ -62,22 +60,16 @@ function parseFixed(value, _decimals) { } const decimals = (0, maths_js_1.getNumber)(_decimals, "decimals"); const multiplier = getMultiplier(decimals); - if (typeof (value) !== "string" || !value.match(/^-?[0-9.]+$/)) { - (0, errors_js_1.throwArgumentError)("invalid decimal value", "value", value); - } + (0, errors_js_1.assertArgument)(typeof (value) === "string" && value.match(/^-?[0-9.]+$/), "invalid decimal value", "value", value); // Is it negative? const negative = (value.substring(0, 1) === "-"); if (negative) { value = value.substring(1); } - if (value === ".") { - (0, errors_js_1.throwArgumentError)("missing value", "value", value); - } + (0, errors_js_1.assertArgument)(value !== ".", "missing value", "value", value); // Split it into a whole and fractional part const comps = value.split("."); - if (comps.length > 2) { - (0, errors_js_1.throwArgumentError)("too many decimal points", "value", value); - } + (0, errors_js_1.assertArgument)(comps.length <= 2, "too many decimal points", "value", value); let whole = (comps[0] || "0"), fraction = (comps[1] || "0"); // Trim trialing zeros while (fraction[fraction.length - 1] === "0") { @@ -110,12 +102,8 @@ class FixedFormat { decimals; name; _multiplier; - constructor(constructorGuard, signed, width, decimals) { - if (constructorGuard !== _constructorGuard) { - (0, errors_js_1.throwError)("cannot use FixedFormat constructor; use FixedFormat.from", "UNSUPPORTED_OPERATION", { - operation: "new FixedFormat" - }); - } + constructor(guard, signed, width, decimals) { + (0, errors_js_1.assertPrivate)(guard, _guard, "FixedFormat"); this.signed = signed; this.width = width; this.decimals = decimals; @@ -142,9 +130,7 @@ class FixedFormat { } else { const match = value.match(/^(u?)fixed([0-9]+)x([0-9]+)$/); - if (!match) { - return (0, errors_js_1.throwArgumentError)("invalid fixed format", "format", value); - } + (0, errors_js_1.assertArgument)(match, "invalid fixed format", "format", value); signed = (match[1] !== "u"); width = parseInt(match[2]); decimals = parseInt(match[3]); @@ -155,22 +141,16 @@ class FixedFormat { if (value[key] == null) { return defaultValue; } - if (typeof (value[key]) !== type) { - (0, errors_js_1.throwArgumentError)("invalid fixed format (" + key + " not " + type + ")", "format." + key, value[key]); - } + (0, errors_js_1.assertArgument)(typeof (value[key]) === type, "invalid fixed format (" + key + " not " + type + ")", "format." + key, value[key]); return value[key]; }; signed = check("signed", "boolean", signed); width = check("width", "number", width); decimals = check("decimals", "number", decimals); } - if (width % 8) { - (0, errors_js_1.throwArgumentError)("invalid fixed format width (not byte aligned)", "format.width", width); - } - if (decimals > 80) { - (0, errors_js_1.throwArgumentError)("invalid fixed format (decimals too large)", "format.decimals", decimals); - } - return new FixedFormat(_constructorGuard, signed, width, decimals); + (0, errors_js_1.assertArgument)((width % 8) === 0, "invalid fixed format width (not byte aligned)", "format.width", width); + (0, errors_js_1.assertArgument)(decimals <= 80, "invalid fixed format (decimals too large)", "format.decimals", decimals); + return new FixedFormat(_guard, signed, width, decimals); } } exports.FixedFormat = FixedFormat; @@ -182,12 +162,8 @@ class FixedNumber { _isFixedNumber; //#hex: string; #value; - constructor(constructorGuard, hex, value, format) { - if (constructorGuard !== _constructorGuard) { - (0, errors_js_1.throwError)("cannot use FixedNumber constructor; use FixedNumber.from", "UNSUPPORTED_OPERATION", { - operation: "new FixedFormat" - }); - } + constructor(guard, hex, value, format) { + (0, errors_js_1.assertPrivate)(guard, _guard, "FixedNumber"); this.format = FixedFormat.from(format); //this.#hex = hex; this.#value = value; @@ -195,9 +171,7 @@ class FixedNumber { Object.freeze(this); } #checkFormat(other) { - if (this.format.name !== other.format.name) { - (0, errors_js_1.throwArgumentError)("incompatible format; use fixedNumber.toFormat", "other", other); - } + (0, errors_js_1.assertArgument)(this.format.name === other.format.name, "incompatible format; use fixedNumber.toFormat", "other", other); } /** * Returns a new [[FixedNumber]] with the result of this added @@ -261,9 +235,7 @@ class FixedNumber { if (comps.length === 1) { comps.push("0"); } - if (decimals < 0 || decimals > 80 || (decimals % 1)) { - (0, errors_js_1.throwArgumentError)("invalid decimal count", "decimals", decimals); - } + (0, errors_js_1.assertArgument)(Number.isInteger(decimals) && decimals >= 0 && decimals <= 80, "invalid decimal count", "decimals", decimals); if (comps[1].length <= decimals) { return this; } @@ -311,7 +283,7 @@ class FixedNumber { return (0, maths_js_1.toHex)(numeric, fixedFormat.width / 8); })(); const decimal = formatFixed(numeric, fixedFormat.decimals); - return new FixedNumber(_constructorGuard, hex, decimal, fixedFormat); + return new FixedNumber(_guard, hex, decimal, fixedFormat); } static fromBytes(_value, format = "fixed") { const value = (0, data_js_1.getBytes)(_value, "value"); @@ -325,7 +297,7 @@ class FixedNumber { } const hex = (0, maths_js_1.toHex)((0, maths_js_1.toTwos)(numeric, (fixedFormat.signed ? 0 : 1) + fixedFormat.width)); const decimal = formatFixed(numeric, fixedFormat.decimals); - return new FixedNumber(_constructorGuard, hex, decimal, fixedFormat); + return new FixedNumber(_guard, hex, decimal, fixedFormat); } static from(value, format) { if (typeof (value) === "string") { @@ -343,7 +315,7 @@ class FixedNumber { throw error; } } - return (0, errors_js_1.throwArgumentError)("invalid FixedNumber value", "value", value); + (0, errors_js_1.assertArgument)(false, "invalid FixedNumber value", "value", value); } static isFixedNumber(value) { return !!(value && value._isFixedNumber); diff --git a/lib.commonjs/utils/fixednumber.js.map b/lib.commonjs/utils/fixednumber.js.map index c397bfec8..3676db49c 100644 --- a/lib.commonjs/utils/fixednumber.js.map +++ b/lib.commonjs/utils/fixednumber.js.map @@ -1 +1 @@ -{"version":3,"file":"fixednumber.js","sourceRoot":"","sources":["../../src.ts/utils/fixednumber.ts"],"names":[],"mappings":";;;AAAA,uCAAqC;AACrC,2CAA6D;AAC7D,yCAAqF;AAKrF,MAAM,iBAAiB,GAAG,EAAG,CAAC;AAE9B,MAAM,WAAW,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;AAE/B,SAAS,UAAU,CAAC,OAAe,EAAE,KAAa,EAAE,SAAiB,EAAE,KAAW;IAC9E,MAAM,MAAM,GAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC;IAC3D,IAAI,KAAK,KAAK,SAAS,EAAE;QAAE,MAAM,CAAC,KAAK,GAAG,KAAK,CAAC;KAAE;IAClD,OAAO,IAAA,sBAAU,EAAC,OAAO,EAAE,eAAe,EAAE,MAAM,CAAC,CAAC;AACxD,CAAC;AAED,8CAA8C;AAC9C,IAAI,KAAK,GAAG,GAAG,CAAC;AAChB,OAAO,KAAK,CAAC,MAAM,G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AAW,CAAC,CAAC;IAC9D,CAAC;IAED,MAAM,CAAC,IAAI,CAAC,KAAU,EAAE,MAAsC;QAC1D,IAAI,OAAM,CAAC,KAAK,CAAC,KAAK,QAAQ,EAAE;YAC5B,OAAO,WAAW,CAAC,UAAU,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;SAChD;QAED,IAAI,KAAK,YAAY,UAAU,EAAE;YAC7B,OAAO,WAAW,CAAC,SAAS,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;SAC/C;QAED,IAAI;YACA,OAAO,WAAW,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC,EAAE,MAAM,CAAC,CAAC;SAClD;QAAC,OAAO,KAAU,EAAE;YACjB,mCAAmC;YACnC,IAAI,KAAK,CAAC,IAAI,KAAK,kBAAkB,EAAE;gBACnC,MAAM,KAAK,CAAC;aACf;SACJ;QAED,IAAA,0BAAc,EAAC,KAAK,EAAE,2BAA2B,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;IACvE,CAAC;IAED,MAAM,CAAC,aAAa,CAAC,KAAU;QAC3B,OAAO,CAAC,CAAC,CAAC,KAAK,IAAI,KAAK,CAAC,cAAc,CAAC,CAAC;IAC7C,CAAC;CACJ;AAzMD,kCAyMC;AAED,MAAM,GAAG,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAChC,MAAM,IAAI,GAAG,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/lib.commonjs/utils/geturl-browser.js b/lib.commonjs/utils/geturl-browser.js index 5388b8a59..ee9c7fefe 100644 --- a/lib.commonjs/utils/geturl-browser.js +++ b/lib.commonjs/utils/geturl-browser.js @@ -5,17 +5,13 @@ const errors_js_1 = require("./errors.js"); // @TODO: timeout is completely ignored; start a Promise.any with a reject? async function getUrl(req, _signal) { const protocol = req.url.split(":")[0].toLowerCase(); - if (protocol !== "http" && protocol !== "https") { - (0, errors_js_1.throwError)(`unsupported protocol ${protocol}`, "UNSUPPORTED_OPERATION", { - info: { protocol }, - operation: "request" - }); - } - if (req.credentials && !req.allowInsecureAuthentication) { - (0, errors_js_1.throwError)("insecure authorized connections unsupported", "UNSUPPORTED_OPERATION", { - operation: "request" - }); - } + (0, errors_js_1.assert)(protocol === "http" || protocol === "https", `unsupported protocol ${protocol}`, "UNSUPPORTED_OPERATION", { + info: { protocol }, + operation: "request" + }); + (0, errors_js_1.assert)(!req.credentials || req.allowInsecureAuthentication, "insecure authorized connections unsupported", "UNSUPPORTED_OPERATION", { + operation: "request" + }); let signal = undefined; if (_signal) { const controller = new AbortController(); diff --git a/lib.commonjs/utils/geturl-browser.js.map b/lib.commonjs/utils/geturl-browser.js.map index 9920ca23c..c33752d6c 100644 --- a/lib.commonjs/utils/geturl-browser.js.map +++ b/lib.commonjs/utils/geturl-browser.js.map @@ -1 +1 @@ -{"version":3,"file":"geturl-browser.js","sourceRoot":"","sources":["../../src.ts/utils/geturl-browser.ts"],"names":[],"mappings":";;;AAAA,2CAAyC;AA2BzC,2EAA2E;AAEpE,KAAK,UAAU,MAAM,CAAC,GAAiB,EAAE,OAA2B;IACvE,MAAM,QAAQ,GAAG,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;IAErD,IAAI,QAAQ,KAAK,MAAM,IAAI,QAAQ,KAAK,OAAO,EAAE;QAC7C,IAAA,sBAAU,EAAC,wBAAyB,QAAS,EAAE,EAAE,uBAAuB,EAAE;YACtE,IAAI,EAAE,EAAE,QAAQ,EAAE;YAClB,SAAS,EAAE,SAAS;SACvB,CAAC,CAAC;KACN;IAED,IAAI,GAAG,CAAC,WAAW,IAAI,CAAC,GAAG,CAAC,2BAA2B,EAAE;QACrD,IAAA,sBAAU,EAAC,6CAA6C,EAAE,uBAAuB,EAAE;YAC/E,SAAS,EAAE,SAAS;SACvB,CAAC,CAAC;KACN;IAED,IAAI,MAAM,GAA4B,SAAS,CA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,CAAC;IAEH,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,WAAW,EAAE,CAAC;IAC1C,MAAM,IAAI,GAAG,CAAC,QAAQ,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA,CAAC,CAAC,IAAI,UAAU,CAAC,QAAQ,CAAC,CAAC;IAEjE,OAAO;QACH,UAAU,EAAE,IAAI,CAAC,MAAM;QACvB,aAAa,EAAE,IAAI,CAAC,UAAU;QAC9B,OAAO,EAAE,IAAI;KAChB,CAAC;AACN,CAAC;AAzCD,wBAyCC"} \ No newline at end of file diff --git a/lib.commonjs/utils/geturl.js b/lib.commonjs/utils/geturl.js index 83970239f..8ce0ae45f 100644 --- a/lib.commonjs/utils/geturl.js +++ b/lib.commonjs/utils/geturl.js @@ -11,17 +11,13 @@ const errors_js_1 = require("./errors.js"); const data_js_1 = require("./data.js"); async function getUrl(req, signal) { const protocol = req.url.split(":")[0].toLowerCase(); - if (protocol !== "http" && protocol !== "https") { - (0, errors_js_1.throwError)(`unsupported protocol ${protocol}`, "UNSUPPORTED_OPERATION", { - info: { protocol }, - operation: "request" - }); - } - if (req.credentials && !req.allowInsecureAuthentication) { - (0, errors_js_1.throwError)("insecure authorized connections unsupported", "UNSUPPORTED_OPERATION", { - operation: "request" - }); - } + (0, errors_js_1.assert)(protocol === "http" || protocol === "https", `unsupported protocol ${protocol}`, "UNSUPPORTED_OPERATION", { + info: { protocol }, + operation: "request" + }); + (0, errors_js_1.assert)(!req.credentials || req.allowInsecureAuthentication, "insecure authorized connections unsupported", "UNSUPPORTED_OPERATION", { + operation: "request" + }); const method = req.method; const headers = Object.assign({}, req.headers); const options = { method, headers }; diff --git a/lib.commonjs/utils/geturl.js.map b/lib.commonjs/utils/geturl.js.map index 572d5632f..47b5a8cc9 100644 --- a/lib.commonjs/utils/geturl.js.map +++ b/lib.commonjs/utils/geturl.js.map @@ -1 +1 @@ -{"version":3,"file":"geturl.js","sourceRoot":"","sources":["../../src.ts/utils/getur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C;YAEH,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE;gBAChB,IAAI,OAAO,CAAC,kBAAkB,CAAC,KAAK,MAAM,IAAI,IAAI,EAAE;oBAChD,IAAI,GAAG,IAAA,kBAAQ,EAAC,IAAA,iBAAU,EAAC,IAAI,CAAC,CAAC,CAAC;iBACrC;gBAED,OAAO,CAAC,EAAE,UAAU,EAAE,aAAa,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;YAC1D,CAAC,CAAC,CAAC;YAEH,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE;gBAC3B,qEAAqE;gBAC3D,KAAM,CAAC,QAAQ,GAAG,EAAE,UAAU,EAAE,aAAa,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;gBACrE,MAAM,CAAC,KAAK,CAAC,CAAC;YAClB,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;QAEH,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACvD,CAAC,CAAC,CAAC;AACP,CAAC;AAlFD,wBAkFC"} \ No newline at end of file diff --git a/lib.commonjs/utils/index.js b/lib.commonjs/utils/index.js index 2aef119d0..7e18eafa2 100644 --- a/lib.commonjs/utils/index.js +++ b/lib.commonjs/utils/index.js @@ -1,8 +1,8 @@ "use strict"; //// Object.defineProperty(exports, "__esModule", { value: true }); -exports.setStore = exports.getStore = exports.encodeRlp = exports.decodeRlp = exports.defineProperties = exports.defineReadOnly = exports.resolveProperties = exports.toQuantity = exports.toArray = exports.toHex = exports.toNumber = exports.toBigInt = exports.getNumber = exports.getBigInt = exports.mask = exports.toTwos = exports.fromTwos = exports.parseFixed = exports.formatFixed = exports.FixedNumber = exports.FixedFormat = exports.FetchCancelSignal = exports.FetchResponse = exports.FetchRequest = exports.getIpfsGatewayFunc = exports.EventPayload = exports.assertNormalize = exports.assertPrivate = exports.assertArgumentCount = exports.assertArgument = exports.throwArgumentError = exports.throwError = exports.makeError = exports.isError = exports.isCallException = exports.zeroPadBytes = exports.zeroPadValue = exports.stripZerosLeft = exports.dataSlice = exports.dataLength = exports.concat = exports.hexlify = exports.isBytesLike = exports.isHexString = exports.getBytesCopy = exports.getBytes = exports.encodeBase64 = exports.decodeBase64 = exports.encodeBase58 = exports.decodeBase58 = void 0; -exports.Utf8ErrorFuncs = exports.toUtf8String = exports.toUtf8CodePoints = exports.toUtf8Bytes = exports._toEscapedUtf8String = exports.parseUnits = exports.formatUnits = exports.parseEther = exports.formatEther = void 0; +exports.formatEther = exports.setStore = exports.getStore = exports.encodeRlp = exports.decodeRlp = exports.defineProperties = exports.defineReadOnly = exports.resolveProperties = exports.toQuantity = exports.toArray = exports.toHex = exports.toNumber = exports.toBigInt = exports.getNumber = exports.getBigInt = exports.mask = exports.toTwos = exports.fromTwos = exports.parseFixed = exports.formatFixed = exports.FixedNumber = exports.FixedFormat = exports.FetchCancelSignal = exports.FetchResponse = exports.FetchRequest = exports.getIpfsGatewayFunc = exports.EventPayload = exports.makeError = exports.assertNormalize = exports.assertPrivate = exports.assertArgumentCount = exports.assertArgument = exports.assert = exports.isError = exports.isCallException = exports.zeroPadBytes = exports.zeroPadValue = exports.stripZerosLeft = exports.dataSlice = exports.dataLength = exports.concat = exports.hexlify = exports.isBytesLike = exports.isHexString = exports.getBytesCopy = exports.getBytes = exports.encodeBase64 = exports.decodeBase64 = exports.encodeBase58 = exports.decodeBase58 = void 0; +exports.Utf8ErrorFuncs = exports.toUtf8String = exports.toUtf8CodePoints = exports.toUtf8Bytes = exports.parseUnits = exports.formatUnits = exports.parseEther = void 0; var base58_js_1 = require("./base58.js"); Object.defineProperty(exports, "decodeBase58", { enumerable: true, get: function () { return base58_js_1.decodeBase58; } }); Object.defineProperty(exports, "encodeBase58", { enumerable: true, get: function () { return base58_js_1.encodeBase58; } }); @@ -24,13 +24,12 @@ Object.defineProperty(exports, "zeroPadBytes", { enumerable: true, get: function var errors_js_1 = require("./errors.js"); Object.defineProperty(exports, "isCallException", { enumerable: true, get: function () { return errors_js_1.isCallException; } }); Object.defineProperty(exports, "isError", { enumerable: true, get: function () { return errors_js_1.isError; } }); -Object.defineProperty(exports, "makeError", { enumerable: true, get: function () { return errors_js_1.makeError; } }); -Object.defineProperty(exports, "throwError", { enumerable: true, get: function () { return errors_js_1.throwError; } }); -Object.defineProperty(exports, "throwArgumentError", { enumerable: true, get: function () { return errors_js_1.throwArgumentError; } }); +Object.defineProperty(exports, "assert", { enumerable: true, get: function () { return errors_js_1.assert; } }); Object.defineProperty(exports, "assertArgument", { enumerable: true, get: function () { return errors_js_1.assertArgument; } }); Object.defineProperty(exports, "assertArgumentCount", { enumerable: true, get: function () { return errors_js_1.assertArgumentCount; } }); Object.defineProperty(exports, "assertPrivate", { enumerable: true, get: function () { return errors_js_1.assertPrivate; } }); Object.defineProperty(exports, "assertNormalize", { enumerable: true, get: function () { return errors_js_1.assertNormalize; } }); +Object.defineProperty(exports, "makeError", { enumerable: true, get: function () { return errors_js_1.makeError; } }); var events_js_1 = require("./events.js"); Object.defineProperty(exports, "EventPayload", { enumerable: true, get: function () { return events_js_1.EventPayload; } }); var fetch_js_1 = require("./fetch.js"); @@ -71,7 +70,6 @@ Object.defineProperty(exports, "parseEther", { enumerable: true, get: function ( Object.defineProperty(exports, "formatUnits", { enumerable: true, get: function () { return units_js_1.formatUnits; } }); Object.defineProperty(exports, "parseUnits", { enumerable: true, get: function () { return units_js_1.parseUnits; } }); var utf8_js_1 = require("./utf8.js"); -Object.defineProperty(exports, "_toEscapedUtf8String", { enumerable: true, get: function () { return utf8_js_1._toEscapedUtf8String; } }); Object.defineProperty(exports, "toUtf8Bytes", { enumerable: true, get: function () { return utf8_js_1.toUtf8Bytes; } }); Object.defineProperty(exports, "toUtf8CodePoints", { enumerable: true, get: function () { return utf8_js_1.toUtf8CodePoints; } }); Object.defineProperty(exports, "toUtf8String", { enumerable: true, get: function () { return utf8_js_1.toUtf8String; } }); diff --git a/lib.commonjs/utils/index.js.map b/lib.commonjs/utils/index.js.map index e7fec3536..5ff73024d 100644 --- a/lib.commonjs/utils/index.js.map +++ b/lib.commonjs/utils/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src.ts/utils/index.ts"],"names":[],"mappings":";AACA,IAAI;;;;AAeJ,yCAAyD;AAAhD,yGAAA,YAAY,OAAA;AAAE,yGAAA,YAAY,OAAA;AAEnC,yCAAyD;AAAhD,yGAAA,YAAY,OAAA;AAAE,yGAAA,YAAY,OAAA;AAEnC,qCAGmB;AAFf,mGAAA,QAAQ,OAAA;AAAE,uGAAA,YAAY,OAAA;AAAE,sGAAA,WAAW,OAAA;AAAE,sGAAA,WAAW,OAAA;AAAE,kGAAA,OAAO,OAAA;AAAE,iGAAA,MAAM,OAAA;AAAE,qGAAA,UAAU,OAAA;AAAE,oGAAA,SAAS,OAAA;AACxF,yGAAA,cAAc,OAAA;AAAE,uGAAA,YAAY,OAAA;AAAE,uGAAA,YAAY,OAAA;AAG9C,yCAIoB;AAHhB,4GAAA,eAAe,OAAA;AAAE,oGAAA,OAAO,OAAA;AACxB,sGAAA,SAAS,OAAA;AAAE,uGAAA,UAAU,OAAA;AAAE,+GAAA,kBAAkB,OAAA;AACzC,2GAAA,cAAc,OAAA;AAAE,gHAAA,mBAAmB,OAAA;AAAE,0GAAA,aAAa,OAAA;AAAE,4GAAA,eAAe,OAAA;AAGvE,yCAA2C;AAAlC,yGAAA,YAAY,OAAA;AAErB,uCAGoB;AAFhB,8GAAA,kBAAkB,OAAA;AAClB,wGAAA,YAAY,OAAA;AAAE,yGAAA,aAAa,OAAA;AAAE,6GAAA,iBAAiB,OAAA;AAGlD,mDAAoF;AAA3E,6GAAA,WAAW,OAAA;AAAE,6GAAA,WAAW,OAAA;AAAE,6GAAA,WAAW,OAAA;AAAE,4GAAA,UAAU,OAAA;AAE1D,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AAA,WAAW,OAAA;AACX,2GAAA,gBAAgB,OAAA;AAChB,uGAAA,YAAY,OAAA;AAEZ,yGAAA,cAAc,OAAA"} \ No newline at end of file diff --git a/lib.commonjs/utils/maths.js b/lib.commonjs/utils/maths.js index 30601b62a..16908049d 100644 --- a/lib.commonjs/utils/maths.js +++ b/lib.commonjs/utils/maths.js @@ -51,12 +51,8 @@ function getBigInt(value, name) { switch (typeof (value)) { case "bigint": return value; case "number": - if (!Number.isInteger(value)) { - (0, errors_js_1.throwArgumentError)("underflow", name || "value", value); - } - else if (value < -maxValue || value > maxValue) { - (0, errors_js_1.throwArgumentError)("overflow", name || "value", value); - } + (0, errors_js_1.assertArgument)(Number.isInteger(value), "underflow", name || "value", value); + (0, errors_js_1.assertArgument)(value >= -maxValue && value <= maxValue, "overflow", name || "value", value); return BigInt(value); case "string": try { @@ -66,10 +62,10 @@ function getBigInt(value, name) { return BigInt(value); } catch (e) { - (0, errors_js_1.throwArgumentError)(`invalid BigNumberish string: ${e.message}`, name || "value", value); + (0, errors_js_1.assertArgument)(false, `invalid BigNumberish string: ${e.message}`, name || "value", value); } } - return (0, errors_js_1.throwArgumentError)("invalid BigNumberish value", name || "value", value); + (0, errors_js_1.assertArgument)(false, "invalid BigNumberish value", name || "value", value); } exports.getBigInt = getBigInt; const Nibbles = "0123456789abcdef"; @@ -96,27 +92,21 @@ exports.toBigInt = toBigInt; function getNumber(value, name) { switch (typeof (value)) { case "bigint": - if (value < -maxValue || value > maxValue) { - (0, errors_js_1.throwArgumentError)("overflow", name || "value", value); - } + (0, errors_js_1.assertArgument)(value >= -maxValue && value <= maxValue, "overflow", name || "value", value); return Number(value); case "number": - if (!Number.isInteger(value)) { - (0, errors_js_1.throwArgumentError)("underflow", name || "value", value); - } - else if (value < -maxValue || value > maxValue) { - (0, errors_js_1.throwArgumentError)("overflow", name || "value", value); - } + (0, errors_js_1.assertArgument)(Number.isInteger(value), "underflow", name || "value", value); + (0, errors_js_1.assertArgument)(value >= -maxValue && value <= maxValue, "overflow", name || "value", value); return value; case "string": try { return getNumber(BigInt(value), name); } catch (e) { - (0, errors_js_1.throwArgumentError)(`invalid numeric string: ${e.message}`, name || "value", value); + (0, errors_js_1.assertArgument)(false, `invalid numeric string: ${e.message}`, name || "value", value); } } - return (0, errors_js_1.throwArgumentError)("invalid numeric value", name || "value", value); + (0, errors_js_1.assertArgument)(false, "invalid numeric value", name || "value", value); } exports.getNumber = getNumber; /* diff --git a/lib.commonjs/utils/maths.js.map b/lib.commonjs/utils/maths.js.map index b72127b40..fdcda836d 100644 --- a/lib.commonjs/utils/maths.js.map +++ b/lib.commonjs/utils/maths.js.map @@ -1 +1 @@ -{"version":3,"file":"maths.js","sourceRoot":"","sources":["../../src.ts/utils/maths.ts"],"names":[],"mappings":";;;AAAA,uCAAiD;AACjD,2CAAiD;AAejD,MAAM,IAAI,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AACvB,MAAM,IAAI,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AAEvB,uCAAuC;AACvC,MAAM,QAAQ,GAAG,gBAAgB,CAAC;AAElC;;GAEG;AACH,SAAgB,QAAQ,CAAC,MAAoB,EAAE,MAAe;IAC1D,MAAM,KAAK,GAAG,SAAS,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzC,MAAM,KAAK,GAAG,MAAM,CAAC,SAAS,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IAEjD,yCAAyC;IACzC,IAAI,KAAK,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,EAAE;QACzB,MAAM,IAAI,GAAG,CAAC,IAAI,IAAI,KAAK,CAAC,GAAG,IAAI,CAAC;QACpC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;KACtC;IAED,OAAO,KAAK,CAAC;AACjB,CAAC;AAXD,4BAWC;AAED;;GAEG;AACH,SAAgB,MAAM,CAAC,MAAoB,EAA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AE;IAExC,MAAM,MAAM,GAAG,IAAI,UAAU,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IAC9C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACpC,MAAM,MAAM,GAAG,CAAC,GAAG,CAAC,CAAC;QACrB,MAAM,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,GAAG,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;KAC/D;IAED,OAAO,MAAM,CAAC;AAClB,CAAC;AAhBD,0BAgBC;AAED;;;;;;GAMG;AACH,SAAgB,UAAU,CAAC,KAA+B;IACtD,IAAI,MAAM,GAAG,IAAA,iBAAO,EAAC,IAAA,qBAAW,EAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAA,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;IAC9E,OAAO,MAAM,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,GAAG,EAAE;QAAE,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;KAAE;IACxE,IAAI,MAAM,KAAK,EAAE,EAAE;QAAE,MAAM,GAAG,GAAG,CAAC;KAAE;IACpC,OAAO,IAAI,GAAG,MAAM,CAAC;AACzB,CAAC;AALD,gCAKC"} \ No newline at end of file diff --git a/lib.commonjs/utils/rlp-decode.js b/lib.commonjs/utils/rlp-decode.js index 30d391322..9d3c3b759 100644 --- a/lib.commonjs/utils/rlp-decode.js +++ b/lib.commonjs/utils/rlp-decode.js @@ -25,27 +25,21 @@ function _decodeChildren(data, offset, childOffset, length) { const decoded = _decode(data, childOffset); result.push(decoded.result); childOffset += decoded.consumed; - if (childOffset > offset + 1 + length) { - (0, errors_js_1.throwError)("child data too short", "BUFFER_OVERRUN", { - buffer: data, length, offset - }); - } + (0, errors_js_1.assert)(childOffset <= offset + 1 + length, "child data too short", "BUFFER_OVERRUN", { + buffer: data, length, offset + }); } return { consumed: (1 + length), result: result }; } // returns { consumed: number, result: Object } function _decode(data, offset) { - if (data.length === 0) { - (0, errors_js_1.throwError)("data too short", "BUFFER_OVERRUN", { - buffer: data, length: 0, offset: 1 - }); - } + (0, errors_js_1.assert)(data.length !== 0, "data too short", "BUFFER_OVERRUN", { + buffer: data, length: 0, offset: 1 + }); const checkOffset = (offset) => { - if (offset > data.length) { - (0, errors_js_1.throwError)("data short segment too short", "BUFFER_OVERRUN", { - buffer: data, length: data.length, offset - }); - } + (0, errors_js_1.assert)(offset <= data.length, "data short segment too short", "BUFFER_OVERRUN", { + buffer: data, length: data.length, offset + }); }; // Array with extra length prefix if (data[offset] >= 0xf8) { @@ -82,9 +76,7 @@ function _decode(data, offset) { function decodeRlp(_data) { const data = (0, data_js_2.getBytes)(_data, "data"); const decoded = _decode(data, 0); - if (decoded.consumed !== data.length) { - (0, errors_js_1.throwArgumentError)("unexpected junk after rlp payload", "data", _data); - } + (0, errors_js_1.assertArgument)(decoded.consumed === data.length, "unexpected junk after rlp payload", "data", _data); return decoded.result; } exports.decodeRlp = decodeRlp; diff --git a/lib.commonjs/utils/rlp-decode.js.map b/lib.commonjs/utils/rlp-decode.js.map index ece0bc2ee..338c9467a 100644 --- a/lib.commonjs/utils/rlp-decode.js.map +++ b/lib.commonjs/utils/rlp-decode.js.map @@ -1 +1 @@ -{"version":3,"file":"rlp-decode.js","sourceRoot":"","sources":["../../src.ts/utils/rlp-decode.ts"],"names":[],"mappings":";AAAA,gDAAgD;;;AAEhD,uCAAoC;AACpC,2CAA6D;AAC7D,uCAAqC;AAKrC,SAAS,WAAW,CAAC,KAAa;IAC9B,IAAI,MAAM,GAAG,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IAChC,OAAO,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE;QAAE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,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC;QACpE,OAAO,EAAE,QAAQ,EAAE,CAAC,CAAC,GAAG,MAAM,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAA;KACpD;IAED,OAAO,EAAE,QAAQ,EAAE,CAAC,EAAE,MAAM,EAAE,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC;AAC9D,CAAC;AAED;;GAEG;AACH,SAAgB,SAAS,CAAC,KAAgB;IACtC,MAAM,IAAI,GAAG,IAAA,kBAAQ,EAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IACrC,MAAM,OAAO,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;IACjC,IAAA,0BAAc,EAAC,OAAO,CAAC,QAAQ,KAAK,IAAI,CAAC,MAAM,EAAE,mCAAmC,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;IACrG,OAAO,OAAO,CAAC,MAAM,CAAC;AAC1B,CAAC;AALD,8BAKC"} \ No newline at end of file diff --git a/lib.commonjs/utils/units.js b/lib.commonjs/utils/units.js index 605e17e42..974d9e9db 100644 --- a/lib.commonjs/utils/units.js +++ b/lib.commonjs/utils/units.js @@ -21,9 +21,7 @@ const names = [ function formatUnits(value, unit) { if (typeof (unit) === "string") { const index = names.indexOf(unit); - if (index === -1) { - (0, errors_js_1.throwArgumentError)("invalid unit", "unit", unit); - } + (0, errors_js_1.assertArgument)(index >= 0, "invalid unit", "unit", unit); unit = 3 * index; } return (0, fixednumber_js_1.formatFixed)(value, (unit != null) ? unit : 18); @@ -35,14 +33,10 @@ exports.formatUnits = formatUnits; * or the name of a unit (e.g. ``"gwei"`` for 9 decimal places). */ function parseUnits(value, unit) { - if (typeof (value) !== "string") { - (0, errors_js_1.throwArgumentError)("value must be a string", "value", value); - } + (0, errors_js_1.assertArgument)(typeof (value) === "string", "value must be a string", "value", value); if (typeof (unit) === "string") { const index = names.indexOf(unit); - if (index === -1) { - (0, errors_js_1.throwArgumentError)("invalid unit", "unit", unit); - } + (0, errors_js_1.assertArgument)(index >= 0, "invalid unit", "unit", unit); unit = 3 * index; } return (0, fixednumber_js_1.parseFixed)(value, (unit != null) ? unit : 18); diff --git a/lib.commonjs/utils/units.js.map b/lib.commonjs/utils/units.js.map index 69f7d5a7f..7a7a3adb1 100644 --- a/lib.commonjs/utils/units.js.map +++ b/lib.commonjs/utils/units.js.map @@ -1 +1 @@ -{"version":3,"file":"units.js","sourceRoot":"","sources":["../../src.ts/utils/units.ts"],"names":[],"mappings":";;;AAAA,qDAA2D;AAC3D,2CAAiD;AAKjD,MAAM,KAAK,GAAG;IACV,KAAK;IACL,MAAM;IACN,MAAM;IACN,MAAM;IACN,OAAO;IACP,QAAQ;IACR,OAAO;CACV,CAAC;AAEF;;;;;GAKG;AACH,SAAgB,WAAW,CAAC,KAAmB,EAAE,IAAuB;IACpE,IAAI,OAAM,CAAC,IAAI,CAAC,KAAK,QAAQ,EAAE;QAC3B,MAAM,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAClC,IAAI,KAAK,KAAK,CAAC,CAAC,EAAE;YAAE,IAAA,8BAAkB,EAAC,cAAc,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;SAAE;QACvE,IAAI,GAAG,CAAC,GAAG,KAAK,CAAC;KACpB;IACD,OAAO,IAAA,4BAAW,EAAC,KAAK,EAAE,CAAC,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA,CAAC,CAAC,EAAE,CAAC,CAAC;AACzD,CAAC;AAPD,kCAOC;AAED;;;;GAIG;AACH,SAAgB,UAAU,CAAC,KAAa,EAAE,IAAuB;IAC7D,IAAI,OAAM,CAAC,KAAK,CAAC,KAAK,QAAQ,EAAE;QAC5B,IAAA,8BAAkB,EAAC,wBAAwB,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;KAChE;IAED,IAAI,OAAM,CAAC,IAAI,CAAC,KAAK,QAAQ,EAAE;QAC3B,MAAM,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAClC,IAAI,KAAK,KAAK,CAAC,CAAC,EAAE;YAAE,IAAA,8BAAkB,EAAC,cAAc,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;SAAE;QACvE,IAAI,GAAG,CAAC,GAAG,KAAK,CAAC;KACpB;IACD,OAAO,IAAA,2BAAU,EAAC,KAAK,EAAE,CAAC,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA,CAAC,CAAC,EAAE,CAAC,CAAC;AACxD,CAAC;AAXD,gCAWC;AAED;;GAEG;AACH,SAAgB,WAAW,CAAC,GAAiB;IACzC,OAAO,WAAW,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;AAChC,CAAC;AAFD,kCAEC;AAED;;;GAGG;AACH,SAAgB,UAAU,CAAC,KAAa;IACpC,OAAO,UAAU,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;AACjC,CAAC;AAFD,gCAEC"} \ No newline at end of file +{"version":3,"file":"units.js","sourceRoot":"","sources":["../../src.ts/utils/units.ts"],"names":[],"mappings":";;;AAAA,qDAA2D;AAC3D,2CAA6C;AAK7C,MAAM,KAAK,GAAG;IACV,KAAK;IACL,MAAM;IACN,MAAM;IACN,MAAM;IACN,OAAO;IACP,QAAQ;IACR,OAAO;CACV,CAAC;AAEF;;;;;GAKG;AACH,SAAgB,WAAW,CAAC,KAAmB,EAAE,IAAuB;IACpE,IAAI,OAAM,CAAC,IAAI,CAAC,KAAK,QAAQ,EAAE;QAC3B,MAAM,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAClC,IAAA,0BAAc,EAAC,KAAK,IAAI,CAAC,EAAE,cAAc,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;QACzD,IAAI,GAAG,CAAC,GAAG,KAAK,CAAC;KACpB;IACD,OAAO,IAAA,4BAAW,EAAC,KAAK,EAAE,CAAC,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA,CAAC,CAAC,EAAE,CAAC,CAAC;AACzD,CAAC;AAPD,kCAOC;AAED;;;;GAIG;AACH,SAAgB,UAAU,CAAC,KAAa,EAAE,IAAuB;IAC7D,IAAA,0BAAc,EAAC,OAAM,CAAC,KAAK,CAAC,KAAK,QAAQ,EAAE,wBAAwB,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;IAErF,IAAI,OAAM,CAAC,IAAI,CAAC,KAAK,QAAQ,EAAE;QAC3B,MAAM,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAClC,IAAA,0BAAc,EAAC,KAAK,IAAI,CAAC,EAAE,cAAc,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;QACzD,IAAI,GAAG,CAAC,GAAG,KAAK,CAAC;KACpB;IAED,OAAO,IAAA,2BAAU,EAAC,KAAK,EAAE,CAAC,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA,CAAC,CAAC,EAAE,CAAC,CAAC;AACxD,CAAC;AAVD,gCAUC;AAED;;GAEG;AACH,SAAgB,WAAW,CAAC,GAAiB;IACzC,OAAO,WAAW,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;AAChC,CAAC;AAFD,kCAEC;AAED;;;GAGG;AACH,SAAgB,UAAU,CAAC,KAAa;IACpC,OAAO,UAAU,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;AACjC,CAAC;AAFD,gCAEC"} \ No newline at end of file diff --git a/lib.commonjs/utils/utf8.js b/lib.commonjs/utils/utf8.js index 501c916a7..b9ae1f2ba 100644 --- a/lib.commonjs/utils/utf8.js +++ b/lib.commonjs/utils/utf8.js @@ -1,10 +1,10 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.toUtf8CodePoints = exports.toUtf8String = exports._toUtf8String = exports._toEscapedUtf8String = exports.toUtf8Bytes = exports.Utf8ErrorFuncs = void 0; +exports.toUtf8CodePoints = exports.toUtf8String = exports._toUtf8String = exports.toUtf8Bytes = exports.Utf8ErrorFuncs = void 0; const data_js_1 = require("./data.js"); const errors_js_1 = require("./errors.js"); function errorFunc(reason, offset, bytes, output, badCodepoint) { - return (0, errors_js_1.throwArgumentError)(`invalid codepoint at offset ${offset}; ${reason}`, "bytes", bytes); + (0, errors_js_1.assertArgument)(false, `invalid codepoint at offset ${offset}; ${reason}`, "bytes", bytes); } function ignoreFunc(reason, offset, bytes, output, badCodepoint) { // If there is an invalid prefix (including stray continuation), skip any additional continuation bytes @@ -147,9 +147,7 @@ function toUtf8Bytes(str, form) { else if ((c & 0xfc00) == 0xd800) { i++; const c2 = str.charCodeAt(i); - if (i >= str.length || (c2 & 0xfc00) !== 0xdc00) { - throw new Error("invalid utf-8 string"); - } + (0, errors_js_1.assertArgument)(i < str.length && ((c2 & 0xfc00) === 0xdc00), "invalid surrogate pair", "str", str); // Surrogate Pair const pair = 0x10000 + ((c & 0x03ff) << 10) + (c2 & 0x03ff); result.push((pair >> 18) | 0xf0); @@ -167,33 +165,6 @@ function toUtf8Bytes(str, form) { } exports.toUtf8Bytes = toUtf8Bytes; ; -function escapeChar(value) { - const hex = ("0000" + value.toString(16)); - return "\\u" + hex.substring(hex.length - 4); -} -function _toEscapedUtf8String(bytes, onError) { - return '"' + getUtf8CodePoints(bytes, onError).map((codePoint) => { - if (codePoint < 256) { - switch (codePoint) { - case 8: return "\\b"; - case 9: return "\\t"; - case 10: return "\\n"; - case 13: return "\\r"; - case 34: return "\\\""; - case 92: return "\\\\"; - } - if (codePoint >= 32 && codePoint < 127) { - return String.fromCharCode(codePoint); - } - } - if (codePoint <= 0xffff) { - return escapeChar(codePoint); - } - codePoint -= 0x10000; - return escapeChar(((codePoint >> 10) & 0x3ff) + 0xd800) + escapeChar((codePoint & 0x3ff) + 0xdc00); - }).join("") + '"'; -} -exports._toEscapedUtf8String = _toEscapedUtf8String; function _toUtf8String(codePoints) { return codePoints.map((codePoint) => { if (codePoint <= 0xffff) { diff --git a/lib.commonjs/utils/utf8.js.map b/lib.commonjs/utils/utf8.js.map index ecc0bac6c..b4caef2b5 100644 --- a/lib.commonjs/utils/utf8.js.map +++ b/lib.commonjs/utils/utf8.js.map @@ -1 +1 @@ -{"version":3,"file":"utf8.js","sourceRoot":"","sources":["../../src.ts/utils/utf8.ts"],"names":[],"mappings":";;;AAAA,uCAAqC;AACrC,2CAAkE;AA+ClE,SAAS,SAAS,CAAC,MAAuB,EAAE,MAAc,EAAE,KAAwB,EAAE,MAAqB,EAAE,YAAqB;IAC9H,OAAO,IAAA,8BAAkB,EAAC,+BAAgC,MAAO,KAAM,MAAO,EAAE,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;AACtG,CAAC;AAED,SAAS,UAAU,CAAC,MAAuB,EAAE,MAAc,EAAE,KAAwB,EAAE,MAAqB,EAAE,YAAqB;IAE/H,uGAAuG;IACvG,IAAI,MAAM,KAAK,YAAY,IAAI,MAAM,KAAK,qBAAqB,EAAE;QAC7D,IAAI,CAAC,GAAG,CAAC,CAAC;QACV,KAAK,IAAI,CAAC,GAAG,MAAM,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YAC5C,IAAI,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,IAAI,EAAE;gBAAE,MAAM;aAAE;YACtC,CAAC,EAAE,CAAC;SACP;QACD,OAAO,CAAC,CAAC;KACZ;IAED,wEAAwE;IACxE,mEAAmE;IACnE,IAAI,MAAM,KAAK,SAAS,EAAE;QACtB,OAAO,KAAK,CAAC,MAAM,GAAG,MAAM,GAAG,CAAC,CAAC;KACpC;IAED,kBAAkB;IAClB,OAAO,CAAC,CAAC;AACb,CAAC;AAED,SAAS,WAAW,CAAC,MAAuB,EAAE,MAAc,EAAE,KAAwB,EAAE,MAAqB,EAAE,YAAqB;IAEhI,sFAAsF;IACtF,IAAI,MAAM,KAAK,UAAU,E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B,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;YACtC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;SAClC;KACJ;IAED,OAAO,IAAI,UAAU,CAAC,MAAM,CAAC,CAAC;AAClC,CAAC;AAxCD,kCAwCC;AAAA,CAAC;AAEF,SAAgB,aAAa,CAAC,UAAyB;IACnD,OAAO,UAAU,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE;QAChC,IAAI,SAAS,IAAI,MAAM,EAAE;YACrB,OAAO,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;SACzC;QACD,SAAS,IAAI,OAAO,CAAC;QACrB,OAAO,MAAM,CAAC,YAAY,CACtB,CAAC,CAAC,CAAC,SAAS,IAAI,EAAE,CAAC,GAAG,KAAK,CAAC,GAAG,MAAM,CAAC,EACtC,CAAC,CAAC,SAAS,GAAG,KAAK,CAAC,GAAG,MAAM,CAAC,CACjC,CAAC;IACN,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAChB,CAAC;AAXD,sCAWC;AAED,SAAgB,YAAY,CAAC,KAAgB,EAAE,OAAuB;IAClE,OAAO,aAAa,CAAC,iBAAiB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC;AAC5D,CAAC;AAFD,oCAEC;AAED,SAAgB,gBAAgB,CAAC,GAAW,EAAE,IAA+B;IACzE,OAAO,iBAAiB,CAAC,WAAW,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC;AACrD,CAAC;AAFD,4CAEC"} \ No newline at end of file diff --git a/lib.commonjs/wallet/base-wallet.js b/lib.commonjs/wallet/base-wallet.js index fd4b47dae..effdf5839 100644 --- a/lib.commonjs/wallet/base-wallet.js +++ b/lib.commonjs/wallet/base-wallet.js @@ -35,9 +35,7 @@ class BaseWallet extends index_js_3.AbstractSigner { tx.from = from; } if (tx.from != null) { - if ((0, index_js_1.getAddress)((tx.from)) !== this.address) { - (0, index_js_5.throwArgumentError)("transaction from address mismatch", "tx.from", tx.from); - } + (0, index_js_5.assertArgument)((0, index_js_1.getAddress)((tx.from)) === this.address, "transaction from address mismatch", "tx.from", tx.from); delete tx.from; } // Build the transaction @@ -56,18 +54,14 @@ class BaseWallet extends index_js_3.AbstractSigner { async signTypedData(domain, types, value) { // Populate any ENS names const populated = await index_js_2.TypedDataEncoder.resolveNames(domain, types, value, async (name) => { - if (this.provider == null) { - return (0, index_js_5.throwError)("cannot resolve ENS names without a provider", "UNSUPPORTED_OPERATION", { - operation: "resolveName", - info: { name } - }); - } + (0, index_js_5.assert)(this.provider != null, "cannot resolve ENS names without a provider", "UNSUPPORTED_OPERATION", { + operation: "resolveName", + info: { name } + }); const address = await this.provider.resolveName(name); - if (address == null) { - return (0, index_js_5.throwError)("unconfigured ENS name", "UNCONFIGURED_NAME", { - value: name - }); - } + (0, index_js_5.assert)(address != null, "unconfigured ENS name", "UNCONFIGURED_NAME", { + value: name + }); return address; }); return this.signingKey.sign(index_js_2.TypedDataEncoder.hash(populated.domain, types, populated.value)).serialized; diff --git a/lib.commonjs/wallet/base-wallet.js.map b/lib.commonjs/wallet/base-wallet.js.map index 0c3c022e1..36854dcb7 100644 --- a/lib.commonjs/wallet/base-wallet.js.map +++ b/lib.commonjs/wallet/base-wallet.js.map @@ -1 +1 @@ -{"version":3,"file":"base-wallet.js","sourceRoot":"","sources":["../../src.ts/wallet/base-wallet.ts"],"names":[],"mappings":";;;AAAA,kDAAiE;AACjE,+CAAiE;AACjE,oDAAuD;AACvD,sDAAsE;AACtE,gDAE2B;AAO3B,MAAa,UAAW,SAAQ,yBAAc;IACjC,OAAO,CAAU;IAEjB,WAAW,CAAa;IAEjC,YAAY,UAAsB,EAAE,QAA0B;QAC1D,KAAK,CAAC,QAAQ,CAAC,CAAC;QAChB,IAAI,CAAC,WAAW,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AI,CAAC,IAAA,sBAAW,EAAC,OAAO,CAAC,CAAC,CAAC,UAAU,CAAC;IACjE,CAAC;IAED,kEAAkE;IAClE,4BAA4B;IAC5B,eAAe,CAAC,OAA4B;QACxC,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAA,sBAAW,EAAC,OAAO,CAAC,CAAC,CAAC,UAAU,CAAC;IACjE,CAAC;IAED,KAAK,CAAC,aAAa,CAAC,MAAuB,EAAE,KAA4C,EAAE,KAA0B;QAEjH,yBAAyB;QACzB,MAAM,SAAS,GAAG,MAAM,2BAAgB,CAAC,YAAY,CAAC,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,IAAY,EAAE,EAAE;YAC/F,IAAA,iBAAM,EAAC,IAAI,CAAC,QAAQ,IAAI,IAAI,EAAE,6CAA6C,EAAE,uBAAuB,EAAE;gBAClG,SAAS,EAAE,aAAa;gBACxB,IAAI,EAAE,EAAE,IAAI,EAAE;aACjB,CAAC,CAAC;YAEH,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;YACtD,IAAA,iBAAM,EAAC,OAAO,IAAI,IAAI,EAAE,uBAAuB,EAAE,mBAAmB,EAAE;gBAClE,KAAK,EAAE,IAAI;aACd,CAAC,CAAC;YAEH,OAAO,OAAO,CAAC;QACnB,CAAC,CAAC,CAAC;QAEH,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,2BAAgB,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,KAAK,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,UAAU,CAAC;IAC5G,CAAC;CACJ;AA5ED,gCA4EC"} \ No newline at end of file diff --git a/lib.commonjs/wallet/hdwallet.js b/lib.commonjs/wallet/hdwallet.js index d97d9ac43..806633d29 100644 --- a/lib.commonjs/wallet/hdwallet.js +++ b/lib.commonjs/wallet/hdwallet.js @@ -35,11 +35,9 @@ const _guard = {}; function ser_I(index, chainCode, publicKey, privateKey) { const data = new Uint8Array(37); if (index & HardenedBit) { - if (privateKey == null) { - return (0, index_js_4.throwError)("cannot derive child of neutered node", "UNSUPPORTED_OPERATION", { - operation: "deriveChild" - }); - } + (0, index_js_4.assert)(privateKey != null, "cannot derive child of neutered node", "UNSUPPORTED_OPERATION", { + operation: "deriveChild" + }); // Data = 0x00 || ser_256(k_par) data.set((0, index_js_4.getBytes)(privateKey), 1); } @@ -174,9 +172,7 @@ class HDNodeWallet extends base_wallet_js_1.BaseWallet { } static fromExtendedKey(extendedKey) { const bytes = (0, index_js_4.getBytes)((0, index_js_4.decodeBase58)(extendedKey)); // @TODO: redact - if (bytes.length !== 82 || encodeBase58Check(bytes.slice(0, 78)) !== extendedKey) { - (0, index_js_4.throwArgumentError)("invalid extended key", "extendedKey", "[ REDACTED ]"); - } + (0, index_js_4.assertArgument)(bytes.length === 82 || encodeBase58Check(bytes.slice(0, 78)) === extendedKey, "invalid extended key", "extendedKey", "[ REDACTED ]"); const depth = bytes[4]; const parentFingerprint = (0, index_js_4.hexlify)(bytes.slice(5, 9)); const index = parseInt((0, index_js_4.hexlify)(bytes.slice(9, 13)).substring(2), 16); @@ -197,7 +193,7 @@ class HDNodeWallet extends base_wallet_js_1.BaseWallet { } return new HDNodeWallet(_guard, new index_js_1.SigningKey(key.slice(1)), parentFingerprint, chainCode, null, index, depth, null, null); } - return (0, index_js_4.throwArgumentError)("invalid extended key prefix", "extendedKey", "[ REDACTED ]"); + (0, index_js_4.assertArgument)(false, "invalid extended key prefix", "extendedKey", "[ REDACTED ]"); } static createRandom(password = "", path = exports.defaultPath, wordlist = lang_en_js_1.langEn) { if (!path) { @@ -282,9 +278,7 @@ class HDNodeWalletManager { exports.HDNodeWalletManager = HDNodeWalletManager; function getAccountPath(_index) { const index = (0, index_js_4.getNumber)(_index, "index"); - if (index < 0 || index >= HardenedBit) { - (0, index_js_4.throwArgumentError)("invalid account index", "index", index); - } + (0, index_js_4.assertArgument)(index >= 0 && index < HardenedBit, "invalid account index", "index", index); return `m/44'/60'/${index}'/0/0`; } exports.getAccountPath = getAccountPath; diff --git a/lib.commonjs/wallet/hdwallet.js.map b/lib.commonjs/wallet/hdwallet.js.map index f6c6c8ab3..94f15bdb1 100644 --- a/lib.commonjs/wallet/hdwallet.js.map +++ b/lib.commonjs/wallet/hdwallet.js.map @@ -1 +1 @@ -{"version":3,"file":"hdwallet.js","sourceRoot":"","sources":["../../src.ts/wallet/hdwallet.ts"],"names":[],"mappings":";;;AAAA,iDAA6F;AAC7F,oDAAmD;AACnD,sDAAyD;AACzD,gDAK2B;AAC3B,wDAAiD;AAEjD,+CAAyC;AACzC,qDAA8C;AAOjC,QAAA,WAAW,GAAG,kBAAkB,CAAC;AAG9C,iBAAiB;AACjB,MAAM,YAAY,GAAG,IAAI,UAAU,CAAC,CAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAE,CAAC,CAAC;AAEjG,MAAM,WAAW,GAAG,UAAU,CAAC;AAE/B,MAAM,CAAC,GAAG,MAAM,CAAC,oEAAoE,CAAC,CAAC;AAEvF,MAAM,OAAO,GAAG,kBAAkB,CAAC;AACnC,SAAS,IAAI,CAAC,KAAa,EAAE,MAAc;IACvC,IAAI,MAAM,GAAG,EAAE,CAAC;IAChB,OAAO,KAAK,EAAE;QACV,MAAM,GAAG,OAAO,CAAC,KAAK,GAAG,EAAE,CAAC,GAAG,MAAM,CAAC;QACtC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,EAAE,CAAC,CAAC;KAClC;IACD,OAAO,MAAM,CAAC,MAAM,GAAG,MAAM,GAAG,CAAC,EAAE;QAAE,MAAM,GAAG,GAAG,GAAG,MAAM,CAAC;KAAE;IAC7D,OAAO,IAAI,GAAG,MAAM,CAAC;AACzB,C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 8c4e499e6..3c7160b13 100644 --- a/lib.commonjs/wallet/json-crowdsale.js +++ b/lib.commonjs/wallet/json-crowdsale.js @@ -26,9 +26,7 @@ function decryptCrowdsaleJson(json, _password) { const address = (0, index_js_1.getAddress)((0, utils_js_1.spelunk)(data, "ethaddr:string!")); // Encrypted Seed const encseed = (0, utils_js_1.looseArrayify)((0, utils_js_1.spelunk)(data, "encseed:string!")); - if (!encseed || (encseed.length % 16) !== 0) { - (0, index_js_4.throwArgumentError)("invalid encseed", "json", json); - } + (0, index_js_4.assertArgument)(encseed && (encseed.length % 16) === 0, "invalid encseed", "json", json); const key = (0, index_js_4.getBytes)((0, index_js_2.pbkdf2)(password, password, 2000, 32, "sha256")).slice(0, 16); const iv = encseed.slice(0, 16); const encryptedSeed = encseed.slice(16); diff --git a/lib.commonjs/wallet/json-crowdsale.js.map b/lib.commonjs/wallet/json-crowdsale.js.map index b9a4c05a1..fa8473338 100644 --- a/lib.commonjs/wallet/json-crowdsale.js.map +++ b/lib.commonjs/wallet/json-crowdsale.js.map @@ -1 +1 @@ -{"version":3,"file":"json-crowdsale.js","sourceRoot":"","sources":["../../src.ts/wallet/json-crowdsale.ts"],"names":[],"mappings":";;;AAAA,mCAAyC;AAEzC,kDAAiD;AACjD,iDAA4C;AAC5C,+CAAsC;AACtC,gDAAiE;AAEjE,yCAAiE;AAQjE,SAAgB,eAAe,CAAC,IAAY;IACxC,IAAI;QACA,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC9B,IAAI,IAAI,CAAC,OAAO,EAAE;YAAE,OAAO,IAAI,CAAC;SAAE;KACrC;IAAC,OAAO,KAAK,EAAE,GAAG;IACnB,OAAO,KAAK,CAAC;AACjB,CAAC;AAND,0CAMC;AAED,iDAAiD;AACjD,SAAgB,oBAAoB,CAAC,IAAY,EAAE,SAA8B;IAC7E,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC9B,MA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AAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IAElF,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IAChC,MAAM,aAAa,GAAG,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAExC,mBAAmB;IACnB,MAAM,MAAM,GAAG,IAAI,YAAG,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;IAChC,MAAM,IAAI,GAAG,IAAA,mBAAU,EAAC,IAAA,mBAAQ,EAAC,MAAM,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;IAEjE,6EAA6E;IAC7E,IAAI,OAAO,GAAG,EAAE,CAAC;IACjB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QAClC,OAAO,IAAI,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;KAC3C;IAED,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,IAAA,aAAE,EAAC,OAAO,CAAC,EAAE,CAAC;AAChD,CAAC;AA3BD,oDA2BC"} \ No newline at end of file diff --git a/lib.commonjs/wallet/json-keystore.js b/lib.commonjs/wallet/json-keystore.js index 9f0613258..841b7ce01 100644 --- a/lib.commonjs/wallet/json-keystore.js +++ b/lib.commonjs/wallet/json-keystore.js @@ -28,7 +28,7 @@ function decrypt(data, key, ciphertext) { const aesCtr = new aes_js_1.CTR(key, iv); return (0, index_js_4.hexlify)(aesCtr.decrypt(ciphertext)); } - return (0, index_js_4.throwError)("unsupported cipher", "UNSUPPORTED_OPERATION", { + (0, index_js_4.assert)(false, "unsupported cipher", "UNSUPPORTED_OPERATION", { operation: "decrypt" }); } @@ -36,9 +36,7 @@ function getAccount(data, _key) { const key = (0, index_js_4.getBytes)(_key); const ciphertext = (0, utils_js_1.spelunk)(data, "crypto.ciphertext:data!"); const computedMAC = (0, index_js_4.hexlify)((0, index_js_2.keccak256)((0, index_js_4.concat)([key.slice(16, 32), ciphertext]))).substring(2); - if (computedMAC !== (0, utils_js_1.spelunk)(data, "crypto.mac:string!").toLowerCase()) { - return (0, index_js_4.throwArgumentError)("incorrect password", "password", "[ REDACTED ]"); - } + (0, index_js_4.assertArgument)(computedMAC === (0, utils_js_1.spelunk)(data, "crypto.mac:string!").toLowerCase(), "incorrect password", "password", "[ REDACTED ]"); const privateKey = decrypt(data, key.slice(0, 16), ciphertext); const address = (0, index_js_3.computeAddress)(privateKey); if (data.address) { @@ -46,9 +44,7 @@ function getAccount(data, _key) { if (check.substring(0, 2) !== "0x") { check = "0x" + check; } - if ((0, index_js_1.getAddress)(check) !== address) { - (0, index_js_4.throwArgumentError)("keystore address/privateKey mismatch", "address", data.address); - } + (0, index_js_4.assertArgument)((0, index_js_1.getAddress)(check) === address, "keystore address/privateKey mismatch", "address", data.address); } const account = { address, privateKey }; // Version 0.1 x-ethers metadata must contain an encrypted mnemonic phrase @@ -70,7 +66,7 @@ function getKdfParams(data) { const kdf = (0, utils_js_1.spelunk)(data, "crypto.kdf:string"); if (kdf && typeof (kdf) === "string") { const throwError = function (name, value) { - return (0, index_js_4.throwArgumentError)("invalid key-derivation function parameters", name, value); + (0, index_js_4.assertArgument)(false, "invalid key-derivation function parameters", name, value); }; if (kdf.toLowerCase() === "scrypt") { const salt = (0, utils_js_1.spelunk)(data, "crypto.kdfparams.salt:data!"); @@ -106,7 +102,7 @@ function getKdfParams(data) { return { name: "pbkdf2", salt, count, dkLen, algorithm }; } } - return (0, index_js_4.throwArgumentError)("unsupported key-derivation function", "kdf", kdf); + (0, index_js_4.assertArgument)(false, "unsupported key-derivation function", "kdf", kdf); } function decryptKeystoreJsonSync(json, _password) { const data = JSON.parse(json); @@ -196,14 +192,10 @@ async function encryptKeystoreJson(account, password, options, progressCallback) const salt = (options.salt != null) ? (0, index_js_4.getBytes)(options.salt, "options.slat") : (0, index_js_2.randomBytes)(32); // Override initialization vector const iv = (options.iv != null) ? (0, index_js_4.getBytes)(options.iv, "options.iv") : (0, index_js_2.randomBytes)(16); - if (iv.length !== 16) { - (0, index_js_4.throwArgumentError)("invalid options.iv", "options.iv", options.iv); - } + (0, index_js_4.assertArgument)(iv.length === 16, "invalid options.iv", "options.iv", options.iv); // Override the uuid const uuidRandom = (options.uuid != null) ? (0, index_js_4.getBytes)(options.uuid, "options.uuid") : (0, index_js_2.randomBytes)(16); - if (uuidRandom.length !== 16) { - (0, index_js_4.throwArgumentError)("invalid options.uuid", "options.uuid", options.iv); - } + (0, index_js_4.assertArgument)(uuidRandom.length === 16, "invalid options.uuid", "options.uuid", options.iv); if (uuidRandom.length !== 16) { throw new Error("invalid uuid"); } diff --git a/lib.commonjs/wallet/json-keystore.js.map b/lib.commonjs/wallet/json-keystore.js.map index 567257d25..fff94abff 100644 --- a/lib.commonjs/wallet/json-keystore.js.map +++ b/lib.commonjs/wallet/json-keystore.js.map @@ -1 +1 @@ -{"version":3,"file":"json-keystore.js","sourceRoot":"","sources":["../../src.ts/wallet/json-keystore.ts"],"names":[],"mappings":";;;AAAA,mCAA6B;AAE7B,kDAAiD;AACjD,iDAAwF;AACxF,sDAAyD;AACzD,gDAE2B;AAE3B,yCAAgE;AAKhE,gDAAyC;AAEzC,MAAM,WAAW,GAAG,kBAAkB,CAAC;AAoCvC,SAAgB,cAAc,CAAC,IAAY;IACvC,IAAI;QACA,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC9B,MAAM,OAAO,GAAG,CAAC,CAAC,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA,CAAC,CAAC,CAAC,CAAC,CAAC;QACrE,IAAI,OAAO,KAAK,CAAC,EAAE;YAAE,OAAO,IAAI,CAAC;SAAE;KACtC;IAAC,OAAO,KAAK,EAAE,GAAG;IACnB,OA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C,CAAC;AA1ID,kDA0IC"} \ No newline at end of file +{"version":3,"file":"json-keystore.js","sourceRoot":"","sources":["../../src.ts/wallet/json-keystore.ts"],"names":[],"mappings":";;;AAAA,mCAA6B;AAE7B,kDAAiD;AACjD,iDAAwF;AACxF,sDAAyD;AACzD,gDAE2B;AAE3B,yCAAgE;AAKhE,gDAAyC;AAEzC,MAAM,WAAW,GAAG,kBAAkB,CAAC;AAoCvC,SAAgB,cAAc,CAAC,IAAY;IACvC,IAAI;QACA,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC9B,MAAM,OAAO,GAAG,CAAC,CAAC,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA,CAAC,CAAC,CAAC,CAAC,CAAC;QACrE,IAAI,OAAO,KAAK,CAAC,EAAE;YAAE,OAAO,IAAI,CAAC;SAAE;KACtC;IAAC,OAAO,KAAK,EAAE,GAAG;IACnB,OAAO,KAAK,CAAC;AACjB,CAAC;AAPD,wCAOC;AAED,SAAS,OAAO,CAAC,IAAS,EAAE,GAAe,EAAE,UAAsB;IAC/D,MAAM,MAAM,GAAG,IAAA,kBAAO,EAAC,IAAI,EAAE,sBAAsB,CAAC,CAAC;IACrD,IAAI,MAAM,KAAK,aAAa,EAAE;QAC1B,MAAM,EAAE,GAAG,IAAA,kBAAO,EAAa,IAAI,EAAE,8BAA8B,CAAC,CAAA;QACpE,MAAM,MAAM,GAAG,IAAI,YAAG,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;QAChC,OAAO,IAAA,kBAAO,EAAC,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC;KAC9C;IAED,IAAA,iBAAM,EAAC,KAAK,EAAE,oBAAoB,EAAE,uBAAuB,EAAE;QACzD,SAAS,EAAE,SAAS;KACvB,CAAC,CAAC;AACP,CAAC;AAED,SAAS,UAAU,CAAC,I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,CAAC,aAAa,EAAE,EAAE,CAAC,CAAC,GAAG,GAAG;YAClC,IAAA,eAAI,EAAC,GAAG,CAAC,aAAa,EAAE,EAAE,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC;QACzD,MAAM,YAAY,GAAG,CAAC,OAAO,GAAG,SAAS,GAAG,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC;QAEjE,IAAI,CAAC,UAAU,CAAC,GAAG;YACf,MAAM,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM;YAClC,eAAe,EAAE,IAAA,kBAAO,EAAC,UAAU,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;YACjD,kBAAkB,EAAE,IAAA,kBAAO,EAAC,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;YAC5D,OAAO,EAAE,KAAK;SACjB,CAAC;KACL;IAED,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;AAChC,CAAC;AAtID,kDAsIC"} \ No newline at end of file diff --git a/lib.commonjs/wallet/mnemonic.js b/lib.commonjs/wallet/mnemonic.js index 7a054d152..2564c1c81 100644 --- a/lib.commonjs/wallet/mnemonic.js +++ b/lib.commonjs/wallet/mnemonic.js @@ -18,16 +18,12 @@ function mnemonicToEntropy(mnemonic, wordlist = lang_en_js_1.langEn) { wordlist = lang_en_js_1.langEn; } const words = wordlist.split(mnemonic); - if ((words.length % 3) !== 0 || words.length < 12 || words.length > 24) { - (0, index_js_2.throwArgumentError)("invalid mnemonic length", "mnemonic", "[ REDACTED ]"); - } + (0, index_js_2.assertArgument)((words.length % 3) === 0 && words.length >= 12 && words.length <= 24, "invalid mnemonic length", "mnemonic", "[ REDACTED ]"); const entropy = new Uint8Array(Math.ceil(11 * words.length / 8)); let offset = 0; for (let i = 0; i < words.length; i++) { let index = wordlist.getWordIndex(words[i].normalize("NFKD")); - if (index === -1) { - (0, index_js_2.throwArgumentError)(`invalid mnemonic word at index ${i}`, "mnemonic", "[ REDACTED ]"); - } + (0, index_js_2.assertArgument)(index >= 0, `invalid mnemonic word at index ${i}`, "mnemonic", "[ REDACTED ]"); for (let bit = 0; bit < 11; bit++) { if (index & (1 << (10 - bit))) { entropy[offset >> 3] |= (1 << (7 - (offset % 8))); @@ -39,15 +35,11 @@ function mnemonicToEntropy(mnemonic, wordlist = lang_en_js_1.langEn) { const checksumBits = words.length / 3; const checksumMask = getUpperMask(checksumBits); const checksum = (0, index_js_2.getBytes)((0, index_js_1.sha256)(entropy.slice(0, entropyBits / 8)))[0] & checksumMask; - if (checksum !== (entropy[entropy.length - 1] & checksumMask)) { - (0, index_js_2.throwArgumentError)("invalid mnemonic checksum", "mnemonic", "[ REDACTED ]"); - } + (0, index_js_2.assertArgument)(checksum === (entropy[entropy.length - 1] & checksumMask), "invalid mnemonic checksum", "mnemonic", "[ REDACTED ]"); return (0, index_js_2.hexlify)(entropy.slice(0, entropyBits / 8)); } function entropyToMnemonic(entropy, wordlist = lang_en_js_1.langEn) { - if ((entropy.length % 4) || entropy.length < 16 || entropy.length > 32) { - (0, index_js_2.throwArgumentError)("invalid entropy size", "entropy", "[ REDACTED ]"); - } + (0, index_js_2.assertArgument)((entropy.length % 4) === 0 && entropy.length >= 16 && entropy.length <= 32, "invalid entropy size", "entropy", "[ REDACTED ]"); if (wordlist == null) { wordlist = lang_en_js_1.langEn; } diff --git a/lib.commonjs/wallet/mnemonic.js.map b/lib.commonjs/wallet/mnemonic.js.map index 2b8ee2b6f..b5f15fadc 100644 --- a/lib.commonjs/wallet/mnemonic.js.map +++ b/lib.commonjs/wallet/mnemonic.js.map @@ -1 +1 @@ -{"version":3,"file":"mnemonic.js","sourceRoot":"","sources":["../../src.ts/wallet/mnemonic.ts"],"names":[],"mappings":";;;AAAA,iDAAoD;AACpD,gDAE2B;AAC3B,wDAAiD;AAMjD,uCAAuC;AACvC,SAAS,YAAY,CAAC,IAAY;IAC/B,OAAO,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,GAAG,CAAC,CAAC,IAA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 -26,9 +26,7 @@ function getPassword(password) { exports.getPassword = getPassword; function spelunk(object, _path) { const match = _path.match(/^([a-z0-9$_.-]*)(:([a-z]+))?(!)?$/i); - if (match == null) { - return (0, index_js_1.throwArgumentError)("invalid path", "path", _path); - } + (0, index_js_1.assertArgument)(match != null, "invalid path", "path", _path); const path = match[1]; const type = match[3]; const reqd = (match[4] === "!"); @@ -58,9 +56,7 @@ function spelunk(object, _path) { break; } } - if (reqd && cur == null) { - (0, index_js_1.throwArgumentError)("missing required value", "path", path); - } + (0, index_js_1.assertArgument)(!reqd || cur != null, "missing required value", "path", path); if (type && cur != null) { if (type === "int") { if (typeof (cur) === "string" && cur.match(/^-?[0-9]+$/)) { @@ -86,7 +82,7 @@ function spelunk(object, _path) { if (type === typeof (cur)) { return cur; } - (0, index_js_1.throwArgumentError)(`wrong type found for ${type} `, "path", path); + (0, index_js_1.assertArgument)(false, `wrong type found for ${type} `, "path", path); } return cur; } diff --git a/lib.commonjs/wallet/utils.js.map b/lib.commonjs/wallet/utils.js.map index 8cff91415..c5fbe9c23 100644 --- a/lib.commonjs/wallet/utils.js.map +++ b/lib.commonjs/wallet/utils.js.map @@ -1 +1 @@ -{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src.ts/wallet/utils.ts"],"names":[],"mappings":";;;AAAA,gDAE2B;AAK3B,SAAgB,aAAa,CAAC,SAAiB;IAC3C,IAAI,OAAM,CAAC,SAAS,CAAC,KAAK,QAAQ,IAAI,SAAS,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,IAAI,EAAE;QACtE,SAAS,GAAG,IAAI,GAAG,SAAS,CAAC;KAChC;IACD,OAAO,IAAA,uBAAY,EAAC,SAAS,CAAC,CAAC;AACnC,CAAC;AALD,sCAKC;AAED,SAAgB,IAAI,CAAC,KAAsB,EAAE,MAAc;IACvD,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;IACtB,OAAO,KAAK,CAAC,MAAM,GAAG,MAAM,EAA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AAG,CAAC,CAAC;AAChB,CAAC;AArBD,wBAqBC"} \ No newline at end of file diff --git a/lib.commonjs/wallet/wallet.js b/lib.commonjs/wallet/wallet.js index 4da705f29..8abee9e2d 100644 --- a/lib.commonjs/wallet/wallet.js +++ b/lib.commonjs/wallet/wallet.js @@ -94,9 +94,7 @@ class Wallet extends base_wallet_js_1.BaseWallet { if (signingKey == null) { signingKey = trySigningKey(key); } - if (signingKey == null) { - (0, index_js_3.throwArgumentError)("invalid key", "key", "[ REDACTED ]"); - } + (0, index_js_3.assertArgument)(signingKey != null, "invalid key", "key", "[ REDACTED ]"); super(signingKey, provider); this.#mnemonic = mnemonic; } @@ -128,12 +126,10 @@ class Wallet extends base_wallet_js_1.BaseWallet { } } else { - return (0, index_js_3.throwArgumentError)("invalid JSON wallet", "json", "[ REDACTED ]"); + (0, index_js_3.assertArgument)(false, "invalid JSON wallet", "json", "[ REDACTED ]"); } const wallet = new Wallet(account.privateKey); - if (wallet.address !== account.address) { - (0, index_js_3.throwArgumentError)("address/privateKey mismatch", "json", "[ REDACTED ]"); - } + (0, index_js_3.assertArgument)(wallet.address === account.address, "address/privateKey mismatch", "json", "[ REDACTED ]"); // @TODO: mnemonic return wallet; } @@ -146,12 +142,10 @@ class Wallet extends base_wallet_js_1.BaseWallet { account = (0, json_crowdsale_js_1.decryptCrowdsaleJson)(json, password); } else { - return (0, index_js_3.throwArgumentError)("invalid JSON wallet", "json", "[ REDACTED ]"); + (0, index_js_3.assertArgument)(false, "invalid JSON wallet", "json", "[ REDACTED ]"); } const wallet = new Wallet(account.privateKey); - if (wallet.address !== account.address) { - (0, index_js_3.throwArgumentError)("address/privateKey mismatch", "json", "[ REDACTED ]"); - } + (0, index_js_3.assertArgument)(wallet.address === account.address, "address/privateKey mismatch", "json", "[ REDACTED ]"); // @TODO: mnemonic return wallet; } diff --git a/lib.commonjs/wallet/wallet.js.map b/lib.commonjs/wallet/wallet.js.map index 1ecca2938..b1dd39ef3 100644 --- a/lib.commonjs/w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;QAC9C,IAAA,yBAAc,EAAC,MAAM,CAAC,OAAO,KAAK,OAAO,CAAC,OAAO,EAC7C,6BAA6B,EAAE,MAAM,EAAE,cAAc,CAAC,CAAC;QAC3D,kBAAkB;QAClB,OAAO,MAAM,CAAC;IAClB,CAAC;IAED,MAAM,CAAC,YAAY,CAAC,QAA0B,EAAE,QAAwB,EAAE,QAA0B;QAChG,OAAO,IAAI,MAAM,CAAC,sBAAQ,CAAC,WAAW,CAAC,IAAA,sBAAW,EAAC,EAAE,CAAC,EAAE,QAAQ,EAAE,QAAQ,CAAC,EAAE,QAAQ,CAAC,CAAC;IAC3F,CAAC;IAED,MAAM,CAAC,YAAY,CAAC,QAAkB,EAAE,QAA0B;QAC9D,OAAO,IAAI,MAAM,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;IAC1C,CAAC;IAED,MAAM,CAAC,UAAU,CAAC,MAAc,EAAE,QAA0B,EAAE,QAAiB,EAAE,QAAmB;QAChG,IAAI,QAAQ,IAAI,IAAI,EAAE;YAAE,QAAQ,GAAG,EAAE,CAAC;SAAE;QACxC,OAAO,IAAI,MAAM,CAAC,sBAAQ,CAAC,UAAU,CAAC,MAAM,EAAE,QAAQ,EAAE,QAAQ,CAAC,EAAE,QAAQ,CAAC,CAAC;IACjF,CAAC;CACJ;AAtGD,wBAsGC"} \ No newline at end of file diff --git a/lib.commonjs/wordlists/lang-ja.js b/lib.commonjs/wordlists/lang-ja.js index d99a78b2a..accd52b26 100644 --- a/lib.commonjs/wordlists/lang-ja.js +++ b/lib.commonjs/wordlists/lang-ja.js @@ -116,9 +116,7 @@ class LangJa extends wordlist_js_1.Wordlist { constructor() { super("ja"); } getWord(index) { const words = loadWords(); - if (index < 0 || index >= words.length) { - (0, index_js_2.throwArgumentError)(`invalid word index: ${index}`, "index", index); - } + (0, index_js_2.assertArgument)(index >= 0 && index < words.length, `invalid word index: ${index}`, "index", index); return words[index]; } getWordIndex(word) { diff --git a/lib.commonjs/wordlists/lang-ja.js.map b/lib.commonjs/wordlists/lang-ja.js.map index 5d4eef406..37d8bd13c 100644 --- a/lib.commonjs/wordlists/lang-ja.js.map +++ b/lib.commonjs/wordlists/lang-ja.js.map @@ -1 +1 @@ -{"version":3,"file":"lang-ja.js","sourceRoot":"","sources":["../../src.ts/wordlists/lang-ja.ts"],"names":[],"mappings":";;;AAAA,+CAAsC;AACtC,gDAE2B;AAE3B,+CAAyC;AAGzC,MAAM,IAAI,GAAG;IAET,eAAe;IACf,orEAAorE;IAEprE,eAAe;IACf,ssGAAssG;IAEtsG,eAAe;IACf,4uDAA4uD;IAE5uD,eAAe;IACf,olBAAolB;IAEplB,eAAe;IACf,4JAA4J;IAE5J,eAAe;IACf,0GAA0G;IAE1G,gBAAgB;IAChB,WAAW;CACd,CAAC;AAEF,sDAAsD;AACtD,MAAM,OAAO,GAAG,6FAA6F,CAAA;AAE7G,IAAI,SAAS,GAAyB,IAAI,CAAC;AAE3C,SAAS,GAAG,CAAC,IAAY;IACrB,OAAO,IAAA,kBAAO,EAAC,IAAA,sBAAW,EAAC,IAAI,CAAC,CAAC,CAAC;AACtC,CAAC;AAED,MAAM,MAAM,GAAG,sBAAsB,CAAC;AACtC,MAAM,KAAK,GAAG,sBAAsB,CAAA;AAEpC,SAAS,QAAQ,CAAC,IAAmB;IACjC,OAAO,IAAA,uBAAY,EAAC,IAAI,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;AAC9C,CAAC;AAED,SAAS,SAAS;IACd,IAAI,SAAS,KAAK,IAAI,EAAE;QAAE,OAAO,SAAS,CAAC;KAAE;IAE7C,MAAM,QAAQ,GAAG,EAAE,CAAC;IAEpB,yDAAyD;IACzD,MAAM,SAAS,GAAwC,EAAE,CAAC;IAE1D,6BAA6B;IAC7B,SAAS,CAAC,QAAQ,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC;IAC7C,SAAS,CAAC,QAAQ,CAAC,CAAC,GAAG,EAAE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CAAC,CAAC;IAC5C,CAAC;IAED,IAAI,CAAC,KAAoB;QACrB,OAAO,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAChC,CAAC;CACJ;AAEY,QAAA,MAAM,GAAG,IAAI,MAAM,EAAE,CAAC"} \ No newline at end of file diff --git a/lib.commonjs/wordlists/lang-ko.js b/lib.commonjs/wordlists/lang-ko.js index 2e95cbe70..ac435745d 100644 --- a/lib.commonjs/wordlists/lang-ko.js +++ b/lib.commonjs/wordlists/lang-ko.js @@ -58,9 +58,7 @@ class LangKo extends wordlist_js_1.Wordlist { } getWord(index) { const words = loadWords(); - if (index < 0 || index >= words.length) { - (0, index_js_2.throwArgumentError)(`invalid word index: ${index}`, "index", index); - } + (0, index_js_2.assertArgument)(index >= 0 && index < words.length, `invalid word index: ${index}`, "index", index); return words[index]; } getWordIndex(word) { diff --git a/lib.commonjs/wordlists/lang-ko.js.map b/lib.commonjs/wordlists/lang-ko.js.map index fd22feea3..f9a5d8a5f 100644 --- a/lib.commonjs/wordlists/lang-ko.js.map +++ b/lib.commonjs/wordlists/lang-ko.js.map @@ -1 +1 @@ -{"version":3,"file":"lang-ko.js","sourceRoot":"","sources":["../../src.ts/wordlists/lang-ko.ts"],"names":[],"mappings":";;;AAAA,+CAAsC;AACtC,gDAAqE;AAErE,+CAAyC;AAGzC,MAAM,IAAI,GAAG;IACT,MAAM;IACN,y5JAAy5J;IACz5J,8lIAA8lI;IAC9lI,i8BAAi8B;IACj8B,koCAAkoC;IACloC,yaAAya;IACza,gHAAgH;IAChH,+EAA+E;CAClF,CAAA;AAED,MAAM,KAAK,GAAG,wEAAwE,CAAA;AAEtF,SAAS,SAAS,CAAC,IAAY;IAC3B,IAAI,IAAI,IAAI,EAAE,EAAE;QACZ,IAAI,GAAG,IAAI,GAAG,GAAG,GAAG,EAAE,CAAC;KAC1B;SAAM,IAAI,IAAI,IAAI,EAAE,EAAE;QACnB,IAAI,GAAG,IAAI,GAAG,EAAE,GAAG,EAA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AAC;AACpB,CAAC;AAGD,MAAM,MAAO,SAAQ,sBAAQ;IACzB;QACI,KAAK,CAAC,IAAI,CAAC,CAAC;IAChB,CAAC;IAED,OAAO,CAAC,KAAa;QACjB,MAAM,KAAK,GAAG,SAAS,EAAE,CAAC;QAC1B,IAAI,KAAK,GAAG,CAAC,IAAI,KAAK,IAAI,KAAK,CAAC,MAAM,EAAE;YACpC,IAAA,6BAAkB,EAAC,uBAAwB,KAAM,EAAE,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;SACxE;QACD,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC;IACxB,CAAC;IAED,YAAY,CAAC,IAAY;QACrB,OAAO,SAAS,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACrC,CAAC;CACJ;AAEY,QAAA,MAAM,GAAG,IAAI,MAAM,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"lang-ko.js","sourceRoot":"","sources":["../../src.ts/wordlists/lang-ko.ts"],"names":[],"mappings":";;;AAAA,+CAAsC;AACtC,gDAAiE;AAEjE,+CAAyC;AAGzC,MAAM,IAAI,GAAG;IACT,MAAM;IACN,y5JAAy5J;IACz5J,8lIAA8lI;IAC9lI,i8BAAi8B;IACj8B,koCAAkoC;IACloC,yaAAya;IACza,gHAAgH;IAChH,+EAA+E;CAClF,CAAA;AAED,MAAM,KAAK,GAAG,wEAAwE,CAAA;AAEtF,SAAS,SAAS,CAAC,IAAY;IAC3B,IAAI,IAAI,IAAI,EAAE,EAAE;QACZ,IAAI,GAAG,IAAI,GAAG,GAAG,GAAG,EAAE,CAAC;KAC1B;SAAM,IAAI,IAAI,IAAI,EAAE,EAAE;QACnB,IAAI,GAAG,IAAI,GAAG,EAAE,GAAG,EAAE,CAAC;KACzB;IAED,OAAO,IAAA,uBAAY,EAAC,IAAI,UAAU,CAAC,CAAE,GAAG,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,GAAG,GAAG,EAAE,CAAC,IAAI,GAAG,IAAI,C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S,EAAE,CAAC;QAC1B,IAAA,yBAAc,EAAC,KAAK,IAAI,CAAC,IAAI,KAAK,GAAG,KAAK,CAAC,MAAM,EAC7C,uBAAwB,KAAM,EAAE,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;QACtD,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC;IACxB,CAAC;IAED,YAAY,CAAC,IAAY;QACrB,OAAO,SAAS,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACrC,CAAC;CACJ;AAEY,QAAA,MAAM,GAAG,IAAI,MAAM,EAAE,CAAC"} \ No newline at end of file diff --git a/lib.commonjs/wordlists/lang-zh.js b/lib.commonjs/wordlists/lang-zh.js index 171ec75b4..8854dc5f6 100644 --- a/lib.commonjs/wordlists/lang-zh.js +++ b/lib.commonjs/wordlists/lang-zh.js @@ -51,9 +51,7 @@ class LangZh extends wordlist_js_1.Wordlist { constructor(country) { super("zh_" + country); } getWord(index) { const words = loadWords(this.locale); - if (index < 0 || index >= words.length) { - (0, index_js_2.throwArgumentError)(`invalid word index: ${index}`, "index", index); - } + (0, index_js_2.assertArgument)(index >= 0 && index < words.length, `invalid word index: ${index}`, "index", index); return words[index]; } getWordIndex(word) { diff --git a/lib.commonjs/wordlists/lang-zh.js.map b/lib.commonjs/wordlists/lang-zh.js.map index 1d558dd95..2d4608b6d 100644 --- a/lib.commonjs/wordlists/lang-zh.js.map +++ b/lib.commonjs/wordlists/lang-zh.js.map @@ -1 +1 @@ -{"version":3,"file":"lang-zh.js","sourceRoot":"","sources":["../../src.ts/wordlists/lang-zh.ts"],"names":[],"mappings":";;;AAAA,+CAAsC;AACtC,gDAAqE;AAErE,+CAAyC;AAGzC,MAAM,IAAI,GAAG,kgMAAkgM,CAAC;AAChhM,MAAM,SAAS,GAAG,6lDAA6lD,CAAC;AAGhnD,MAAM,SAAS,GAAyC;IACpD,KAAK,EAAE,IAAI;IACX,KAAK,EAAE,IAAI;CACd,CAAA;AAED,MAAM,MAAM,GAA2B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,IAAI,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAChD,CAAC;IAED,KAAK,CAAC,QAAgB;QAClB,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAC,gBAAgB,EAAE,EAAE,CAAC,CAAC;QAClD,OAAO,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAC9B,CAAC;CACJ;AAEY,QAAA,QAAQ,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC;AAC5B,QAAA,QAAQ,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC"} \ No newline at end of file diff --git a/lib.commonjs/wordlists/wordlist-owl.js b/lib.commonjs/wordlists/wordlist-owl.js index 4c60ce17a..089e8b537 100644 --- a/lib.commonjs/wordlists/wordlist-owl.js +++ b/lib.commonjs/wordlists/wordlist-owl.js @@ -37,9 +37,7 @@ class WordlistOwl extends wordlist_js_1.Wordlist { } getWord(index) { const words = this.#loadWords(); - if (index < 0 || index >= words.length) { - (0, index_js_2.throwArgumentError)(`invalid word index: ${index}`, "index", index); - } + (0, index_js_2.assertArgument)(index >= 0 && index < words.length, `invalid word index: ${index}`, "index", index); return words[index]; } getWordIndex(word) { diff --git a/lib.commonjs/wordlists/wordlist-owl.js.map b/lib.commonjs/wordlists/wordlist-owl.js.map index cd219dcb0..cfabe6f73 100644 --- a/lib.commonjs/wordlists/wordlist-owl.js.map +++ b/lib.commonjs/wordlists/wordlist-owl.js.map @@ -1 +1 @@ -{"version":3,"file":"wordlist-owl.js","sourceRoot":"","sources":["../../src.ts/wordlists/wordlist-owl.ts"],"names":[],"mappings":";AACA,yDAAyD;AACzD,0CAA0C;;;AAE1C,+CAAsC;AACtC,gDAAuD;AAEvD,mDAA4C;AAC5C,+CAAyC;AAEzC,MAAa,WAAY,SAAQ,sBAAQ;IACrC,KAAK,CAAS;IACd,SAAS,CAAS;IAElB,YAAY,MAAc,EAAE,IAAY,EAAE,QAAgB;QACtD,KAAK,CAAC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A8CC"} \ No newline at end of file +{"version":3,"file":"wordlist-owl.js","sourceRoot":"","sources":["../../src.ts/wordlists/wordlist-owl.ts"],"names":[],"mappings":";AACA,yDAAyD;AACzD,0CAA0C;;;AAE1C,+CAAsC;AACtC,gDAAmD;AAEnD,mDAA4C;AAC5C,+CAAyC;AAEzC,MAAa,WAAY,SAAQ,sBAAQ;IACrC,KAAK,CAAS;IACd,SAAS,CAAS;IAElB,YAAY,MAAc,EAAE,IAAY,EAAE,QAAgB;QACtD,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;QAC1B,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;IACvB,CAAC;IAED,IAAI,KAAK,KAAa,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IAE1C,YAAY;QACR,OAAO,IAAA,yBAAS,EAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACjC,CAAC;IAED,MAAM,CAAuB;IAC7B,UAAU;QACN,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE;YACrB,MAAM,KAAK,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;YAElC,qDAAqD;YACrD,MAAM,QAAQ,GAAG,IAAA,aAAE,EAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;YAC7C,qBAAqB;YACrB,IAAI,QAAQ,KAAK,IAAI,CAAC,SAAS,EAAE;gBAC7B,MAAM,IAAI,KAAK,CAAC,sBAAuB,IAAI,CAAC,MAAO,SAAS,CAAC,CAAC;aACjE;YACD,oBAAoB;YAEpB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;SACvB;QACD,OAAO,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;IAED,OAAO,CAAC,KAAa;QACjB,MAAM,KAAK,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC;QAChC,IAAA,yBAAc,EAAC,KAAK,IAAI,CAAC,IAAI,KAAK,GAAG,KAAK,CAAC,MAAM,EAAE,uBAAwB,KAAM,EAAE,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;QACrG,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC;IACxB,CAAC;IAED,YAAY,CAAC,IAAY;QACrB,OAAO,IAAI,CAAC,UAAU,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3C,CAAC;CACJ;AA5CD,kCA4CC"} \ No newline at end of file diff --git a/lib.esm/_tests/create-provider.js b/lib.esm/_tests/create-provider.js index 0c4743626..aab442c26 100644 --- a/lib.esm/_tests/create-provider.js +++ b/lib.esm/_tests/create-provider.js @@ -1,7 +1,6 @@ import { AlchemyProvider, AnkrProvider, CloudflareProvider, EtherscanProvider, InfuraProvider, // PocketProvider, -// FallbackProvider, -isError, } from "../index.js"; +FallbackProvider, isError, } from "../index.js"; ; const ethNetworks = ["default", "mainnet", "goerli"]; //const maticNetworks = [ "matic", "maticmum" ]; @@ -63,23 +62,23 @@ const ProviderCreators = [ } }, */ - /* - { - name: "FallbackProvider", - networks: ethNetworks, - create: function(network: string) { - const providers: Array = []; - for (const creator of ProviderCreators) { - if (creator.name === "FallbackProvider") { continue; } - if (creator.networks.indexOf(network) >= 0) { - const provider = creator.create(network); - if (provider) { providers.push(provider); } - } + { + name: "FallbackProvider", + networks: ethNetworks, + create: function (network) { + const providers = []; + for (const providerName of ["AlchemyProvider", "AnkrProvider", "EtherscanProvider", "InfuraProvider"]) { + const provider = getProvider(providerName, network); + if (provider) { + providers.push(provider); } - return new FallbackProvider(providers); } - }, - */ + if (providers.length === 0) { + throw new Error("UNSUPPORTED NETWORK"); + } + return new FallbackProvider(providers); + } + }, ]; export const providerNames = Object.freeze(ProviderCreators.map((c) => (c.name))); function getCreator(provider) { diff --git a/lib.esm/_tests/create-provider.js.map b/lib.esm/_tests/create-provider.js.map index f7e99b0c1..010feb74c 100644 --- a/lib.esm/_tests/create-provider.js.map +++ b/lib.esm/_tests/create-provider.js.map @@ -1 +1 @@ -{"version":3,"file":"create-provider.js","sourceRoot":"","sources":["../../src.ts/_tests/create-provider.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EACf,YAAY,EACZ,kBAAkB,EAClB,iBAAiB,EACjB,cAAc;AAClB,qBAAqB;AAErB,uBAAuB;AACnB,OAAO,GACV,MAAM,aAAa,CAAC;AAQpB,CAAC;AAEF,MAAM,WAAW,GAAG,CAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,CAAE,CAAC;AACvD,gDAAgD;AAEhD,MAAM,gBAAgB,GAA2B;IAC7C;QACI,IAAI,EAAE,iBAAiB;QACvB,QAAQ,EAAE,WAAW;QACrB,MAAM,EAAE,UAAS,OAAe;YAC5B,OAAO,IAAI,eAAe,CAAC,OAAO,EAAE,kCAAkC,CAAC,CAAC;QAC5E,CAAC;KACJ;IACD;QACI,IAAI,EAAE,cAAc;QACpB,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,CAAE,OAAO,EAAE,UAAU,CAAE,CAAC;QACrD,MAAM,EAAE,UAAS,OAAe;YAC5B,OAAO,IAAI,YAAY,CAAC,OAAO,CAAC,CAAC;QACrC,CAAC;KACJ;IACD;QACI,IAAI,EAAE,oBAAoB;QAC1B,QAAQ,EAAE,CAAE,SAAS,EAAE,SAAS,CAAE;QAClC,MAAM,EAAE,UAAS,OAAe;YAC5B,OAAO,IAAI,kBAAkB,CAAC,OAAO,CAAC,CAAC;QAC3C,CAAC;KACJ;IACD;QACI,IAAI,EAAE,mBAAmB;QACzB,QAAQ,EAAE,WAAW;QACrB,MAAM,EAAE,UAAS,OAAe;YAC5B,OAAO,IAAI,iBAAiB,CAAC,OAAO,EAAE,oCAAoC,CAAC,CAAC;QAChF,CAAC;KACJ;IACD;QACI,IAAI,EAAE,gBAAgB;QACtB,QAAQ,EAAE,WAAW;QACrB,MAAM,EAAE,UAAS,OAAe;YAC5B,OAAO,IAAI,cAAc,C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AAE,kBAAkB,CAAC,EAAE;YAAE,MAAM,KAAK,CAAC;SAAE;KAC5D;IACD,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,QAAgB,EAAE,OAAe;IAC3D,MAAM,OAAO,GAAG,UAAU,CAAC,QAAQ,CAAC,CAAC;IACrC,OAAO,CAAC,OAAO,IAAI,IAAI,CAAC,CAAC;AAC7B,CAAC;AAED,MAAM,UAAU,OAAO,CAAC,OAAe;IACnC,MAAM,QAAQ,GAAG,WAAW,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC;IACxD,IAAI,QAAQ,IAAI,IAAI,EAAE;QAAE,MAAM,IAAI,KAAK,CAAC,wBAAyB,OAAQ,EAAE,CAAC,CAAC;KAAE;IAC/E,OAAO,QAAQ,CAAC;AACpB,CAAC"} \ No newline at end of file +{"version":3,"file":"create-provider.js","sourceRoot":"","sources":["../../src.ts/_tests/create-provider.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EACf,YAAY,EACZ,kBAAkB,EAClB,iBAAiB,EACjB,cAAc;AAClB,qBAAqB;AAEjB,gBAAgB,EAChB,OAAO,GACV,MAAM,aAAa,CAAC;AAQpB,CAAC;AAEF,MAAM,WAAW,GAAG,CAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,CAAE,CAAC;AACvD,gDAAgD;AAEhD,MAAM,gBAAgB,GAA2B;IAC7C;QACI,IAAI,EAAE,iBAAiB;QACvB,QAAQ,EAAE,WAAW;QACrB,MAAM,EAAE,UAAS,OAAe;YAC5B,OAAO,IAAI,eAAe,CAAC,OAAO,EAAE,kCAAkC,CAAC,CAAC;QAC5E,CAAC;KACJ;IACD;QACI,IAAI,EAAE,cAAc;QACpB,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,CAAE,OAAO,EAAE,UAAU,CAAE,CAAC;QACrD,MAAM,EAAE,UAAS,OAAe;YAC5B,OAAO,IAAI,YAAY,CAAC,OAAO,CAAC,CAAC;QACrC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AAI,IAAI,CAAC,CAAC;AAC7B,CAAC;AAED,MAAM,UAAU,OAAO,CAAC,OAAe;IACnC,MAAM,QAAQ,GAAG,WAAW,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC;IACxD,IAAI,QAAQ,IAAI,IAAI,EAAE;QAAE,MAAM,IAAI,KAAK,CAAC,wBAAyB,OAAQ,EAAE,CAAC,CAAC;KAAE;IAC/E,OAAO,QAAQ,CAAC;AACpB,CAAC"} \ No newline at end of file diff --git a/lib.esm/_tests/test-contract.js b/lib.esm/_tests/test-contract.js index 37928a119..26edf7254 100644 --- a/lib.esm/_tests/test-contract.js +++ b/lib.esm/_tests/test-contract.js @@ -1,39 +1,147 @@ -"use strict"; -/* import assert from "assert"; - -import { connect } from "./create-provider.js"; - -import { Contract } from "../index.js"; - -describe("Test Contract", function() { - it("tests contract @TODO: expand", async function() { - const provider = connect("mainnet"); - - const contract = new Contract("dai.tokens.ethers.eth", [ - "function balanceOf(address) view returns (uint)" - ], provider); - - assert.equal(await contract.balanceOf("ricmoo.firefly.eth"), BigInt("6015089439794538201631")); +import { getProvider } from "./create-provider.js"; +import { Contract, EventLog, Wallet } from "../index.js"; +describe("Test Contract", function () { + const addr = "0x99417252Aad7B065940eBdF50d665Fb8879c5958"; + const abi = [ + "error CustomError1(uint256 code, string message)", + "event EventUint256(uint256 indexed value)", + "event EventAddress(address indexed value)", + "event EventString(string value)", + "event EventBytes(bytes value)", + "function testCustomError1(bool pass, uint code, string calldata message) pure returns (uint256)", + "function testErrorString(bool pass, string calldata message) pure returns (uint256)", + "function testPanic(uint256 code) returns (uint256)", + "function testEvent(uint256 valueUint256, address valueAddress, string valueString, bytes valueBytes) public", + "function testCallAdd(uint256 a, uint256 b) pure returns (uint256 result)" + ]; + it("tests contract calls", async function () { + this.timeout(10000); + const provider = getProvider("InfuraProvider", "goerli"); + const contract = new Contract(addr, abi, provider); + assert.equal(await contract.testCallAdd(4, 5), BigInt(9), "testCallAdd(4, 5)"); + assert.equal(await contract.testCallAdd(6, 0), BigInt(6), "testCallAdd(6, 0)"); + }); + it("tests events", async function () { + this.timeout(60000); + const provider = getProvider("InfuraProvider", "goerli"); + assert.ok(provider); + const contract = new Contract(addr, abi, provider); + const signer = new Wallet((process.env.FAUCET_PRIVATEKEY), provider); + const contractSigner = contract.connect(signer); + const vUint256 = 42; + const vAddrName = "ethers.eth"; + const vAddr = "0x228568EA92aC5Bc281c1E30b1893735c60a139F1"; + const vString = "Hello"; + const vBytes = "0x12345678"; + let hash = null; + // Test running a listener for a specific event + const specificEvent = new Promise((resolve, reject) => { + contract.on("EventUint256", async (value, event) => { + // Triggered by someone else + if (hash == null || hash !== event.log.transactionHash) { + return; + } + try { + assert.equal(event.filter, "EventUint256", "event.filter"); + assert.equal(event.fragment.name, "EventUint256", "event.fragment.name"); + assert.equal(event.log.address, addr, "event.log.address"); + assert.equal(event.args.length, 1, "event.args.length"); + assert.equal(event.args[0], BigInt(42), "event.args[0]"); + const count = await contract.listenerCount("EventUint256"); + await event.removeListener(); + assert.equal(await contract.listenerCount("EventUint256"), count - 1, "decrement event count"); + resolve(null); + } + catch (e) { + event.removeListener(); + reject(e); + } + }); + }); + // Test running a listener on all (i.e. "*") events + const allEvents = new Promise((resolve, reject) => { + const waitingFor = { + EventUint256: vUint256, + EventAddress: vAddr, + EventString: vString, + EventBytes: vBytes + }; + contract.on("*", (event) => { + // Triggered by someone else + if (hash == null || hash !== event.log.transactionHash) { + return; + } + try { + const name = event.eventName; + assert.equal(event.args[0], waitingFor[name], `${name}`); + delete waitingFor[name]; + if (Object.keys(waitingFor).length === 0) { + event.removeListener(); + resolve(null); + } + } + catch (error) { + reject(error); + } + }); + }); + // Send a transaction to trigger some events + const tx = await contractSigner.testEvent(vUint256, vAddr, vString, vBytes); + hash = tx.hash; + const checkEvent = (filter, event) => { + const values = { + EventUint256: vUint256, + EventString: vString, + EventAddress: vAddr, + EventBytes: vBytes + }; + assert.ok(event instanceof EventLog, `queryFilter(${filter}):isEventLog`); + const name = event.eventName; + assert.equal(event.address, addr, `queryFilter(${filter}):address`); + assert.equal(event.args[0], values[name], `queryFilter(${filter}):args[0]`); + }; + const checkEventFilter = async (filter) => { + const events = (await contract.queryFilter(filter, -10)).filter((e) => (e.transactionHash === hash)); + assert.equal(events.length, 1, `queryFilter(${filter}).length`); + checkEvent(filter, events[0]); + return events[0]; + }; + const receipt = await tx.wait(); + // Check the logs in the receipt + for (const log of receipt.logs) { + checkEvent("receipt", log); + } + // Various options for queryFilter + await checkEventFilter("EventUint256"); + await checkEventFilter(["EventUint256"]); + await checkEventFilter([["EventUint256"]]); + await checkEventFilter("EventUint256(uint)"); + await checkEventFilter(["EventUint256(uint)"]); + await checkEventFilter([["EventUint256(uint)"]]); + await checkEventFilter([["EventUint256", "EventUint256(uint)"]]); + await checkEventFilter("0x85c55bbb820e6d71c71f4894e57751de334b38c421f9c170b0e66d32eafea337"); + // Query by Event + await checkEventFilter(contract.filters.EventUint256); + // Query by Deferred Topic Filter; address + await checkEventFilter(contract.filters.EventUint256(vUint256)); + // Query by Deferred Topic Filter; address + await checkEventFilter(contract.filters.EventAddress(vAddr)); + // Query by Deferred Topic Filter; ENS name => address + await checkEventFilter(contract.filters.EventAddress(vAddrName)); + // Multiple Methods + { + const filter = [["EventUint256", "EventString"]]; + const events = (await contract.queryFilter(filter, -10)).filter((e) => (e.transactionHash === hash)); + assert.equal(events.length, 2, `queryFilter(${filter}).length`); + for (const event of events) { + checkEvent(filter, event); + } + } + await specificEvent; + await allEvents; }); }); -*/ -/* -import { Typed } from "../abi/index.js"; -import * as providers from "../providers/index.js"; - -import { Contract } from "../index.js"; - -import { log } from "./utils.js"; -*/ -//import type { Addressable } from "@ethersproject/address"; -//import type { BigNumberish } from "@ethersproject/logger"; -/* -import type { - ConstantContractMethod, ContractMethod, ContractEvent -} from "../index.js"; -*/ -// @TODO /* describe("Test Contract Calls", function() { it("finds typed methods", async function() { @@ -47,8 +155,7 @@ describe("Test Contract Calls", function() { contract["foo(string)"].fragment }); }); -*/ -/* + describe("Test Contract Interface", function() { it("builds contract interfaces", async function() { this.timeout(60000); @@ -104,15 +211,4 @@ describe("Test Contract Interface", function() { }); }); */ -/* -describe("Test Contract Calls", function() { - it("calls ERC-20 methods", async function() { - const provider = new providers.AnkrProvider(); - const contract = new Contract("0xC18360217D8F7Ab5e7c516566761Ea12Ce7F9D72", [ - "function balanceOf(address owner) view returns (uint)", - ], provider); - log(this, `balance: ${ await contract.balanceOf("0x5555763613a12D8F3e73be831DFf8598089d3dCa") }`); - }); -}); -*/ //# sourceMappingURL=test-contract.js.map \ No newline at end of file diff --git a/lib.esm/_tests/test-contract.js.map b/lib.esm/_tests/test-contract.js.map index 9528a4544..6bb197cd0 100644 --- a/lib.esm/_tests/test-contract.js.map +++ b/lib.esm/_tests/test-contract.js.map @@ -1 +1 @@ -{"version":3,"file":"test-contract.js","sourceRoot":"","sources":["../../src.ts/_tests/test-contract.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;EAkBE;AACF;;;;;;;EAOE;AACF,4DAA4D;AAC5D,4DAA4D;AAE5D;;;;EAIE;AAEF,QAAQ;AACR;;;;;;;;;;;;;EAaE;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuDE;AACF;;;;;;;;;;EAUE"} \ No newline at end of file +{"version":3,"file":"test-contract.js","sourceRoot":"","sources":["../../src.ts/_tests/test-contract.ts"],"names":[],"mappings":"AACA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnD,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAGzD,QAAQ,CAAC,eAAe,EAAE;IACtB,MAAM,IAAI,GAAG,4CAA4C,CAAC;IAC1D,MAAM,GAAG,GAAG;QACR,kDAAkD;QAElD,2CAA2C;QAC3C,2CAA2C;QAC3C,iCAAiC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C,eAAe,KAAK,IAAI,CAAC,CAAC,CAAC;YACrG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,eAAgB,MAAO,UAAU,CAAC,CAAC;YAElE,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE;gBAAE,UAAU,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;aAAE;SAC7D;QAED,MAAM,aAAa,CAAC;QACpB,MAAM,SAAS,CAAC;IACpB,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC;AAGH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoEE"} \ No newline at end of file diff --git a/lib.esm/_tests/test-hash.js b/lib.esm/_tests/test-hash.js index e7fd6d327..207aa7a23 100644 --- a/lib.esm/_tests/test-hash.js +++ b/lib.esm/_tests/test-hash.js @@ -1,5 +1,5 @@ import assert from "assert"; -import { hashMessage, solidityPackedKeccak256, solidityPackedSha256 } from "../index.js"; +import { hashMessage, solidityPacked, solidityPackedKeccak256, solidityPackedSha256, isError } from "../index.js"; import { loadTests } from "./utils.js"; /* @@ -144,5 +144,20 @@ describe("Test Solidity Hash functions", function () { assert.equal(solidityPackedSha256(test.types, test.values), test.sha256); }); } + const badTypes = [ + { types: ["uint5"], values: [1] }, + { types: ["bytes0"], values: ["0x"] }, + { types: ["blorb"], values: [false] }, + ]; + for (const { types, values } of badTypes) { + it("fails on invalid type", function () { + assert.throws(function () { + const result = solidityPacked(types, values); + console.log(result); + }, function (error) { + return (isError(error, "INVALID_ARGUMENT") && error.argument === "type"); + }); + }); + } }); //# sourceMappingURL=test-hash.js.map \ No newline at end of file diff --git a/lib.esm/_tests/test-hash.js.map b/lib.esm/_tests/test-hash.js.map index 3747c7539..83b7dc55f 100644 --- a/lib.esm/_tests/test-hash.js.map +++ b/lib.esm/_tests/test-hash.js.map @@ -1 +1 @@ -{"version":3,"file":"test-hash.js","sourceRoot":"","s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,GAAG,cAAc,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;gBAC7C,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;YACxB,CAAC,EAAE,UAAU,KAAK;gBACd,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE,kBAAkB,CAAC,IAAI,KAAK,CAAC,QAAQ,KAAK,MAAM,CAAC,CAAC;YAC7E,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;KACN;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/lib.esm/_tests/test-providers-send.js b/lib.esm/_tests/test-providers-send.js new file mode 100644 index 000000000..4accba986 --- /dev/null +++ b/lib.esm/_tests/test-providers-send.js @@ -0,0 +1,40 @@ +import assert from "assert"; +import { Wallet } from "../index.js"; +import { getProvider, providerNames } from "./create-provider.js"; +describe("Sends Transactions", function () { + const cleanup = []; + after(function () { + for (const func of cleanup) { + func(); + } + }); + const wallet = new Wallet((process.env.FAUCET_PRIVATEKEY)); + const networkName = "goerli"; + for (const providerName of providerNames) { + const provider = getProvider(providerName, networkName); + if (provider == null) { + continue; + } + // Shutdown socket-based provider, otherwise its socket will prevent + // this process from exiting + if (provider.destroy) { + cleanup.push(() => { provider.destroy(); }); + } + it(`tests sending: ${providerName}`, async function () { + this.timeout(60000); + const w = wallet.connect(provider); + const dustAddr = Wallet.createRandom().address; + const tx = await w.sendTransaction({ + to: dustAddr, + value: 42, + type: 2 + }); + //const receipt = + await provider.waitForTransaction(tx.hash); //tx.wait(); + //console.log(receipt); + const balance = await provider.getBalance(dustAddr); + assert.equal(balance, BigInt(42), "target balance after send"); + }); + } +}); +//# sourceMappingURL=test-providers-send.js.map \ No newline at end of file diff --git a/lib.esm/_tests/test-providers-send.js.map b/lib.esm/_tests/test-providers-send.js.map new file mode 100644 index 000000000..701fb9b2d --- /dev/null +++ b/lib.esm/_tests/test-providers-send.js.map @@ -0,0 +1 @@ +{"version":3,"file":"test-providers-send.js","sourceRoot":"","sources":["../../src.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AC;YAEH,kBAAkB;YAClB,MAAM,QAAQ,CAAC,kBAAkB,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,YAAY;YACxD,uBAAuB;YAEvB,MAAM,OAAO,GAAG,MAAM,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;YACpD,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,CAAC,EAAE,2BAA2B,CAAC,CAAC;QACnE,CAAC,CAAC,CAAC;KACN;AAGL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/lib.esm/_tests/test-utils-units.js b/lib.esm/_tests/test-utils-units.js new file mode 100644 index 000000000..980846d88 --- /dev/null +++ b/lib.esm/_tests/test-utils-units.js @@ -0,0 +1,63 @@ +import assert from "assert"; +import { loadTests } from "./utils.js"; +import { formatEther, formatUnits, parseEther, parseUnits } from "../index.js"; +describe("Tests unit conversion", function () { + const tests = loadTests("units"); + const units = [ + { unit: "ether", format: "ether_format", decimals: 18 }, + { unit: "kwei", format: "kwei_format", decimals: 3 }, + { unit: "mwei", format: "mwei_format", decimals: 6 }, + { unit: "gwei", format: "gwei_format", decimals: 9 }, + { unit: "szabo", format: "szabo_format", decimals: 12 }, + { unit: "finney", format: "finney_format", decimals: 15 }, + ]; + for (const { unit, format, decimals } of units) { + for (const test of tests) { + const str = (test[format]); + if (str == null) { + continue; + } + it(`converts wei to ${unit} string: ${test.name}`, function () { + const wei = BigInt(test.wei); + if (decimals === 18) { + assert.equal(formatEther(wei), str, "formatEther"); + assert.equal(formatUnits(wei), str, "formatUnits"); + } + assert.equal(formatUnits(wei, unit), str, `formatUnits(${unit})`); + assert.equal(formatUnits(wei, decimals), str, `formatUnits(${decimals})`); + }); + } + for (const test of tests) { + const str = (test[format]); + if (str == null) { + continue; + } + it(`converts ${format} string to wei: ${test.name}`, function () { + const wei = BigInt(test.wei); + if (decimals === 18) { + assert.equal(parseEther(str), wei, "parseEther"); + assert.equal(parseUnits(str), wei, "parseUnits"); + } + assert.equal(parseUnits(str, unit), wei, `parseUnits(${unit})`); + assert.equal(parseUnits(str, decimals), wei, `parseUnits(${decimals})`); + }); + } + } +}); +describe("Tests bad unit conversion", function () { + it("fails to convert non-string value", function () { + assert.throws(() => { + parseUnits(3, "ether"); + }, (error) => { + return error.message.startsWith("value must be a string"); + }); + }); + it("fails to convert unknown unit", function () { + assert.throws(() => { + parseUnits("3", "foobar"); + }, (error) => { + return error.message.startsWith("invalid unit"); + }); + }); +}); +//# sourceMappingURL=test-utils-units.js.map \ No newline at end of file diff --git a/lib.esm/_tests/test-utils-units.js.map b/lib.esm/_tests/test-utils-units.js.map new file mode 100644 index 000000000..ad8d10676 --- /dev/null +++ b/lib.esm/_tests/test-utils-units.js.map @@ -0,0 +1 @@ +{"version":3,"file":"test-utils-units.js","sourceRoot":"","sources":["../../src.ts/_tests/test-utils-units.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAK/E,QAAQ,CAAC,uBAAuB,EAAE;IAC9B,MAAM,KAAK,GAAG,SAAS,CAAe,OAAO,CAAC,CAAC;IAE/C,MAAM,KAAK,GAAG;QACV,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,QAAQ,EAAE,EAAE,EAAE;QACvD,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,CAAC,EAAE;QACpD,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,CAAC,EAAE;QACpD,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,CAAC,EAAE;QACpD,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,E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diff --git a/lib.esm/_tests/test-utils-utf8.js b/lib.esm/_tests/test-utils-utf8.js new file mode 100644 index 000000000..aef04ae47 --- /dev/null +++ b/lib.esm/_tests/test-utils-utf8.js @@ -0,0 +1,126 @@ +import assert from "assert"; +import { toUtf8Bytes, toUtf8CodePoints, toUtf8String, Utf8ErrorFuncs } from "../index.js"; +describe("Tests UTF-8 bad strings", function () { + const tests = [ + { + name: "unexpected continue", + bytes: new Uint8Array([0x41, 0x80, 0x42, 0x43]), + ignore: "ABC", + replace: "A\ufffdBC", + error: "UNEXPECTED_CONTINUE" + }, + { + name: "bad prefix", + bytes: new Uint8Array([0x41, 0xf8, 0x42, 0x43]), + ignore: "ABC", + replace: "A\ufffdBC", + error: "BAD_PREFIX" + }, + { + name: "bad prefix (multiple)", + bytes: new Uint8Array([0x41, 0xf8, 0x88, 0x88, 0x42, 0x43]), + ignore: "ABC", + replace: "A\ufffdBC", + error: "BAD_PREFIX" + }, + { + name: "OVERRUN", + bytes: new Uint8Array([0x41, 0x42, 0xe2, 0x82 /* 0xac */]), + ignore: "AB", + replace: "AB\ufffd", + error: "OVERRUN" + }, + { + name: "missing continue", + bytes: new Uint8Array([0x41, 0x42, 0xe2, 0xe2, 0x82, 0xac, 0x43]), + ignore: "AB\u20acC", + replace: "AB\ufffd\u20acC", + error: "MISSING_CONTINUE" + }, + { + name: "out-of-range", + bytes: new Uint8Array([0x41, 0x42, 0xf7, 0xbf, 0xbf, 0xbf, 0x43]), + ignore: "ABC", + replace: "AB\ufffdC", + error: "OUT_OF_RANGE" + }, + { + name: "UTF-16 surrogate (low)", + bytes: new Uint8Array([0x41, 0x42, 0xed, 0xa0, 0x80, 0x43]), + ignore: "ABC", + replace: "AB\ufffdC", + error: "UTF16_SURROGATE" + }, + { + name: "UTF-16 surrogate (high)", + bytes: new Uint8Array([0x41, 0x42, 0xed, 0xbf, 0xbf, 0x43]), + ignore: "ABC", + replace: "AB\ufffdC", + error: "UTF16_SURROGATE" + }, + { + name: "overlong", + bytes: new Uint8Array([0xf0, 0x82, 0x82, 0xac]), + ignore: "", + replace: "\u20ac", + error: "OVERLONG" + } + ]; + for (const { name, bytes, ignore, replace, error } of tests) { + it(`correctly handles ${name}: replace strategy`, function () { + const result = toUtf8String(bytes, Utf8ErrorFuncs.replace); + assert.equal(result, replace); + }); + it(`correctly handles ${name}: ignore strategy`, function () { + const result = toUtf8String(bytes, Utf8ErrorFuncs.ignore); + assert.equal(result, ignore); + }); + it(`correctly handles ${name}: error strategy`, function () { + assert.throws(() => { + const result = toUtf8String(bytes); + console.log(result); + }, (e) => { + return (e.message.indexOf(error) >= 0); + }); + }); + } + it("fails to get UTF-8 bytes from incomplete surrogate", function () { + assert.throws(() => { + const text = String.fromCharCode(0xd800); + ; + const result = toUtf8Bytes(text); + console.log(result); + }, (error) => { + return (error.message.startsWith("invalid surrogate pair")); + }); + }); + it("fails to get UTF-8 bytes from invalid surrogate pair", function () { + assert.throws(() => { + const text = String.fromCharCode(0xd800, 0xdbff); + ; + const result = toUtf8Bytes(text); + console.log(result); + }, (error) => { + return (error.message.startsWith("invalid surrogate pair")); + }); + }); +}); +describe("Tests UTF-8 bad strings", function () { + const tests = [ + { + name: "the Euro symbol", + text: "AB\u20acC", + codepoints: [0x41, 0x42, 0x20ac, 0x43] + }, + ]; + for (const { name, text, codepoints } of tests) { + it(`expands strings to codepoints: ${name}`, function () { + const result = toUtf8CodePoints(text); + assert.equal(result.length, codepoints.length, "codepoints.length"); + for (let i = 0; i < result.length; i++) { + assert.equal(result[i], codepoints[i], `codepoints[${i}]`); + } + }); + } +}); +//# sourceMappingURL=test-utils-utf8.js.map \ No newline at end of file diff --git a/lib.esm/_tests/test-utils-utf8.js.map b/lib.esm/_tests/test-utils-utf8.js.map new file mode 100644 index 000000000..f4eb3f2fa --- /dev/null +++ b/lib.esm/_tests/test-utils-utf8.js.map @@ -0,0 +1 @@ +{"version":3,"file":"test-utils-utf8.js","sourceRoot":"","sources":["../../src.ts/_tests/test-utils-utf8.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AC;YAAA,CAAC;YAClD,MAAM,MAAM,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC;YACjC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QACxB,CAAC,EAAE,CAAC,KAAU,EAAE,EAAE;YACd,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,wBAAwB,CAAC,CAAC,CAAC;QAChE,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC;AAEH,QAAQ,CAAC,yBAAyB,EAAE;IAEhC,MAAM,KAAK,GAA8B;QACrC;YACI,IAAI,EAAE,iBAAiB;YACvB,IAAI,EAAE,WAAW;YACjB,UAAU,EAAE,CAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAE;SAC3C;KACJ,CAAC;IAEF,KAAK,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,KAAK,EAAE;QAC5C,EAAE,CAAC,kCAAmC,IAAK,EAAE,EAAE;YAC3C,MAAM,MAAM,GAAG,gBAAgB,CAAC,IAAI,CAAC,CAAC;YACtC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC;YACpE,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;gBACpC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,cAAe,CAAE,GAAG,CAAC,CAAC;aAChE;QACL,CAAC,CAAC,CAAC;KACN;AAEL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/lib.esm/_tests/types.js.map b/lib.esm/_tests/types.js.map index e0ff4c6d0..558239b0e 100644 --- a/lib.esm/_tests/types.js.map +++ b/lib.esm/_tests/types.js.map @@ -1 +1 @@ -{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src.ts/_tests/types.ts"],"names":[],"mappings":"AAyOC,CAAC"} \ No newline at end of file +{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src.ts/_tests/types.ts"],"names":[],"mappings":"AA2PC,CAAC"} \ No newline at end of file diff --git a/lib.esm/_tests/utils.js b/lib.esm/_tests/utils.js index 262f78f5f..d27eb770d 100644 --- a/lib.esm/_tests/utils.js +++ b/lib.esm/_tests/utils.js @@ -34,6 +34,7 @@ async function stall(duration) { } const ATTEMPTS = 5; export async function retryIt(name, func) { + //const errors: Array = [ ]; it(name, async function () { this.timeout(ATTEMPTS * 5000); for (let i = 0; i < ATTEMPTS; i++) { @@ -51,12 +52,14 @@ export async function retryIt(name, func) { throw error; } else { + //errors.push(error); if (i === ATTEMPTS - 1) { - stats.pushRetry(i, name, error); + throw error; + //stats.pushRetry(i, name, error); } else { await stall(500 * (1 << i)); - stats.pushRetry(i, name, null); + //stats.pushRetry(i, name, null); } } } @@ -65,53 +68,58 @@ export async function retryIt(name, func) { throw new Error(`Failed after ${ATTEMPTS} attempts; ${name}`); }); } -const _guard = {}; +/* +export interface StatSet { + name: string; + retries: Array<{ message: string, error: null | Error }>; +} + +const _guard = { }; + export class Stats { - #stats; - constructor(guard) { - if (guard !== _guard) { - throw new Error("private constructor"); - } - this.#stats = []; +// #stats: Array; + + constructor(guard: any) { + if (guard !== _guard) { throw new Error("private constructor"); } +// this.#stats = [ ]; } - #currentStats() { - if (this.#stats.length === 0) { - throw new Error("no active stats"); - } + + #currentStats(): StatSet { + if (this.#stats.length === 0) { throw new Error("no active stats"); } return this.#stats[this.#stats.length - 1]; } - pushRetry(attempt, line, error) { + + pushRetry(attempt: number, line: string, error: null | Error): void { const { retries } = this.#currentStats(); - if (attempt > 0) { - retries.pop(); - } + + if (attempt > 0) { retries.pop(); } if (retries.length < 100) { retries.push({ - message: `${attempt + 1} failures: ${line}`, + message: `${ attempt + 1 } failures: ${ line }`, error }); } } - start(name) { - this.#stats.push({ name, retries: [] }); + + start(name: string): void { + this.#stats.push({ name, retries: [ ] }); } - end(context) { + + end(context?: any): void { let log = console.log.bind(console); - if (context && typeof (context._ethersLog) === "function") { + if (context && typeof(context._ethersLog) === "function") { log = context._ethersLog; } const { name, retries } = this.#currentStats(); - if (retries.length === 0) { - return; - } - log(`Warning: The following tests required retries (${name})`); + if (retries.length === 0) { return; } + log(`Warning: The following tests required retries (${ name })`); retries.forEach(({ error, message }) => { log(" " + message); - if (error) { - log(error); - } + if (error) { log(error); } }); } } + export const stats = new Stats(_guard); +*/ //# sourceMappingURL=utils.js.map \ No newline at end of file diff --git a/lib.esm/_tests/utils.js.map b/lib.esm/_tests/utils.js.map index 7dee8542f..38df1abba 100644 --- a/lib.esm/_tests/utils.js.map +++ b/lib.esm/_tests/utils.js.map @@ -1 +1 @@ -{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src.ts/_tests/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,IAAI,CAAA;AACnB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,0DAA0D;AAC1D,MAAM,IAAI,GAAG,CAAC;IACV,IAAI,IAAI,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;IAEzB,OAAO,IAAI,EAAE;QACT,IAAI,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,EAAE;YAAE,OAAO,IAAI,CAAC;SAAE;QAC9D,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACrC,IAAI,MAAM,KAAK,IAAI,EAAE;YAAE,MAAM;SAAE;QAC/B,IAAI,GAAG,MAAM,CAAC;KACjB;IAED,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC;AAC3C,CAAC,CAAC,EAAE,CAAC;AAEL,iBAAiB;AACjB,MAAM,UAAU,SAAS,CAAI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C,CAAC;AACxE,CAAC;AAOD,MAAM,QAAQ,GAAG,CAAC,CAAC;AACnB,MAAM,CAAC,KAAK,UAAU,OAAO,CAAC,IAAY,EAAE,IAA4C;IACpF,mCAAmC;IAEnC,EAAE,CAAC,IAAI,EAAE,KAAK;QACV,IAAI,CAAC,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC,CAAC;QAE9B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,QAAQ,EAAE,CAAC,EAAE,EAAE;YAC/B,IAAI;gBACA,MAAM,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBACtB,OAAO;aACV;YAAC,OAAO,KAAU,EAAE;gBACjB,IAAI,KAAK,CAAC,OAAO,KAAK,+BAA+B,EAAE;oBACnD,uCAAuC;oBACvC,MAAM,KAAK,CAAC;iBAEf;qBAAM,IAAI,KAAK,CAAC,IAAI,KAAK,eAAe,EAAE;oBACvC,sCAAsC;oBACtC,MAAM,KAAK,CAAC;iBAEf;qBAAM;oBACH,qBAAqB;oBAErB,IAAI,CAAC,KAAK,QAAQ,GAAG,CAAC,EAAE;wBACpB,MAAM,KAAK,CAAC;wBACZ,kCAAkC;qBACrC;yBAAM;wBACH,MAAM,KAAK,CAAC,GAAG,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;wBAC5B,iCAAiC;qBACpC;iBACJ;aACJ;SACJ;QAED,oBAAoB;QACpB,MAAM,IAAI,KAAK,CAAC,gBAAiB,QAAS,cAAe,IAAK,EAAE,CAAC,CAAC;IACtE,CAAC,CAAC,CAAC;AACP,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqDE"} \ No newline at end of file diff --git a/lib.esm/abi/abi-coder.js b/lib.esm/abi/abi-coder.js index 7e28d9bac..206b4a79f 100644 --- a/lib.esm/abi/abi-coder.js +++ b/lib.esm/abi/abi-coder.js @@ -1,5 +1,5 @@ // See: https://github.com/ethereum/wiki/wiki/Ethereum-Contract-ABI -import { assertArgumentCount, throwArgumentError } from "../utils/index.js"; +import { assertArgumentCount, assertArgument } from "../utils/index.js"; import { Reader, Writer } from "./coders/abstract-coder.js"; import { AddressCoder } from "./coders/address.js"; import { ArrayCoder } from "./coders/array.js"; @@ -39,21 +39,17 @@ export class AbiCoder { let match = param.type.match(paramTypeNumber); if (match) { let size = parseInt(match[2] || "256"); - if (size === 0 || size > 256 || (size % 8) !== 0) { - throwArgumentError("invalid " + match[1] + " bit length", "param", param); - } + assertArgument(size !== 0 && size <= 256 && (size % 8) === 0, "invalid " + match[1] + " bit length", "param", param); return new NumberCoder(size / 8, (match[1] === "int"), param.name); } // bytes[0-9]+ match = param.type.match(paramTypeBytes); if (match) { let size = parseInt(match[1]); - if (size === 0 || size > 32) { - throwArgumentError("invalid bytes length", "param", param); - } + assertArgument(size !== 0 && size <= 32, "invalid bytes length", "param", param); return new FixedBytesCoder(size, param.name); } - return throwArgumentError("invalid type", "type", param.type); + assertArgument(false, "invalid type", "type", param.type); } getDefaultValue(types) { const coders = types.map((type) => this.#getCoder(ParamType.from(type))); diff --git a/lib.esm/abi/abi-coder.js.map b/lib.esm/abi/abi-coder.js.map index 36612c90f..929bb1b5a 100644 --- a/lib.esm/abi/abi-coder.js.map +++ b/lib.esm/abi/abi-coder.js.map @@ -1 +1 @@ -{"version":3,"file":"abi-coder.js","sourceRoot":"","sources":["../../src.ts/abi/abi-coder.ts"],"names":[],"mappings":"AAAA,mEAAmE;AAEnE,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAE5E,OAAO,EAAS,MAAM,EAAU,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO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IAAI,IAAI,IAAI,CAAC;KAC1B,CAAC;IACF,IAAI,EAAE,CAAC,IAAI,EAAE;QAAE,WAAW,CAAC,IAAI,GAAG,UAAU,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC;KAAE;IAExD,OAAO,SAAS,CAAC,OAAO,EAAE,gBAAgB,EAAE;QACxC,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM;KACxD,CAAC,CAAC;AACP,CAAC;AAED,MAAM,CAAC,MAAM,eAAe,GAAa,IAAI,QAAQ,EAAE,CAAC"} \ No newline at end of file diff --git a/lib.esm/abi/coders/abstract-coder.js b/lib.esm/abi/coders/abstract-coder.js index df98ad3b0..d6fbab5fe 100644 --- a/lib.esm/abi/coders/abstract-coder.js +++ b/lib.esm/abi/coders/abstract-coder.js @@ -1,4 +1,4 @@ -import { defineProperties, concat, getBytesCopy, getNumber, hexlify, toArray, toBigInt, toNumber, assertPrivate, throwArgumentError, throwError } from "../../utils/index.js"; +import { defineProperties, concat, getBytesCopy, getNumber, hexlify, toArray, toBigInt, toNumber, assert, assertPrivate, assertArgument } from "../../utils/index.js"; export const WordSize = 32; const Padding = new Uint8Array(WordSize); // Properties used to immediate pass through to the underlying object @@ -128,13 +128,7 @@ export function checkResultErrors(result) { } function getValue(value) { let bytes = toArray(value); - if (bytes.length > WordSize) { - throwError("value out-of-bounds", "BUFFER_OVERRUN", { - buffer: bytes, - length: WordSize, - offset: bytes.length - }); - } + assert(bytes.length <= WordSize, "value out-of-bounds", "BUFFER_OVERRUN", { buffer: bytes, length: WordSize, offset: bytes.length }); if (bytes.length !== WordSize) { bytes = getBytesCopy(concat([Padding.slice(bytes.length % WordSize), bytes])); } @@ -160,7 +154,7 @@ export class Coder { }); } _throwError(message, value) { - return throwArgumentError(message, this.localName, value); + assertArgument(false, message, this.localName, value); } } export class Writer { @@ -231,7 +225,7 @@ export class Reader { alignedLength = length; } else { - throwError("data out-of-bounds", "BUFFER_OVERRUN", { + assert(false, "data out-of-bounds", "BUFFER_OVERRUN", { buffer: getBytesCopy(this.#data), length: this.#data.length, offset: this.#offset + alignedLength diff --git a/lib.esm/abi/coders/abstract-coder.js.map b/lib.esm/abi/coders/abstract-coder.js.map index 33ce4db87..c0fde0fb6 100644 --- a/lib.esm/abi/coders/abstract-coder.js.map +++ b/lib.esm/abi/coders/abstract-coder.js.map @@ -1 +1 @@ -{"version":3,"file":"abstract-coder.js","sourceRoot":"","sources":["../../../src.ts/abi/coders/abstract-coder.ts"],"names":[],"mappings":"AACA,OAAO,EACH,gBAAgB,EAAE,MAAM,EAAE,YAAY,EAAE,SAAS,EAAE,OAAO,EAC1D,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAC3B,aAAa,EAAE,kBAAkB,EAAE,UAAU,EAChD,MAAM,sBAAsB,CAAC;AAI9B,MAAM,CAAC,MAAM,QAAQ,GAAG,EAAE,CAAC;AAC3B,MAAM,OAAO,GAAG,IAAI,UAAU,CAAC,QAAQ,CAAC,CAAC;AAEzC,qEAAqE;AACrE,iEAAiE;AACjE,MAAM,cAAc,GAAG,CAAE,MAAM,CAAE,CAAC;AAElC,MAAM,MAAM,GAAG,EAAG,CAAC;AAEnB,MAAM,OAAO,MAAO,SAAQ,KAAU;IAClC,QAAQ,CAA6B;IAIrC,YAAY,KAAU,EAAE,KAAiB,EAAE,IAA2B;QAClE,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC;QACvC,KAAK,CAAC,GAAG,KAAK,CAAC,CAAC;QAEhB,oBAAoB;QACpB,IAAI,CAAC,QAAQ,GAAG,IAAI,GAAG,EAAE,CAAC;QAE1B,IAAI,IAAI,EAAE;YACN,IAAI,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE;gBACxB,IAAI,GAAG,IAAI,IAAI,EAAE;oBAAE,OAAO;iBAAE;gBAC5B,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC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AAE,IAAI,CAAC,KAAK,CAAC,MAAM;oBACzB,MAAM,EAAE,IAAI,CAAC,OAAO,GAAG,aAAa;iBACvC,CAAC,CAAC;aACN;SACJ;QACD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,GAAG,aAAa,CAAC,CAAA;IACvE,CAAC;IAED,gEAAgE;IAChE,SAAS,CAAC,MAAc;QACpB,OAAO,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;IAChF,CAAC;IAED,aAAa;IACb,SAAS,CAAC,MAAc,EAAE,KAAe;QACrC,IAAI,KAAK,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC;QAChD,IAAI,CAAC,OAAO,IAAI,KAAK,CAAC,MAAM,CAAC;QAC7B,oDAAoD;QACpD,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;IAClC,CAAC;IAED,wBAAwB;IACxB,SAAS;QACL,OAAO,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC9C,CAAC;IAED,SAAS;QACL,OAAO,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC9C,CAAC;CACJ"} \ No newline at end of file +{"version":3,"file":"abstract-coder.js","sourceRoot":"","sources":["../../../src.ts/abi/coders/abstract-coder.ts"],"names":[],"mappings":"AACA,OAAO,EACH,gBAAgB,EAAE,MAAM,EAAE,YAAY,EAAE,SAAS,EAAE,OAAO,EAC1D,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAC3B,MAAM,EAAE,aAAa,EAAE,cAAc,EACxC,MAAM,sBAAsB,CAAC;AAI9B,MAAM,CAAC,MAA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M,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC;QAChD,IAAI,CAAC,OAAO,IAAI,KAAK,CAAC,MAAM,CAAC;QAC7B,oDAAoD;QACpD,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;IAClC,CAAC;IAED,wBAAwB;IACxB,SAAS;QACL,OAAO,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC9C,CAAC;IAED,SAAS;QACL,OAAO,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC9C,CAAC;CACJ"} \ No newline at end of file diff --git a/lib.esm/abi/coders/array.js b/lib.esm/abi/coders/array.js index 8269dfc0f..83538afda 100644 --- a/lib.esm/abi/coders/array.js +++ b/lib.esm/abi/coders/array.js @@ -1,4 +1,4 @@ -import { defineProperties, isError, assertArgumentCount, throwArgumentError, throwError } from "../../utils/index.js"; +import { defineProperties, isError, assert, assertArgument, assertArgumentCount } from "../../utils/index.js"; import { Typed } from "../typed.js"; import { Coder, Result, WordSize, Writer } from "./abstract-coder.js"; import { AnonymousCoder } from "./anonymous.js"; @@ -11,30 +11,16 @@ export function pack(writer, coders, values) { let unique = {}; arrayValues = coders.map((coder) => { const name = coder.localName; - if (!name) { - throwError("cannot encode object for signature with missing names", "INVALID_ARGUMENT", { - argument: "values", - info: { coder }, - value: values - }); - } - if (unique[name]) { - throwError("cannot encode object for signature with duplicate names", "INVALID_ARGUMENT", { - argument: "values", - info: { coder }, - value: values - }); - } + assert(name, "cannot encode object for signature with missing names", "INVALID_ARGUMENT", { argument: "values", info: { coder }, value: values }); + assert(unique[name], "cannot encode object for signature with duplicate names", "INVALID_ARGUMENT", { argument: "values", info: { coder }, value: values }); unique[name] = true; return values[name]; }); } else { - throwArgumentError("invalid tuple value", "tuple", values); - } - if (coders.length !== arrayValues.length) { - throwArgumentError("types/value length mismatch", "tuple", values); + assertArgument(false, "invalid tuple value", "tuple", values); } + assertArgument(coders.length === arrayValues.length, "types/value length mismatch", "tuple", values); let staticWriter = new Writer(); let dynamicWriter = new Writer(); let updateFuncs = []; @@ -152,13 +138,7 @@ export class ArrayCoder extends Coder { // slot requires at least 32 bytes for their value (or 32 // bytes as a link to the data). This could use a much // tighter bound, but we are erroring on the side of safety. - if (count * WordSize > reader.dataLength) { - throwError("insufficient data length", "BUFFER_OVERRUN", { - buffer: reader.bytes, - offset: count * WordSize, - length: reader.dataLength - }); - } + assert(count * WordSize <= reader.dataLength, "insufficient data length", "BUFFER_OVERRUN", { buffer: reader.bytes, offset: count * WordSize, length: reader.dataLength }); } let coders = []; for (let i = 0; i < count; i++) { diff --git a/lib.esm/abi/coders/array.js.map b/lib.esm/abi/coders/array.js.map index 010bfa063..2f4a28c8e 100644 --- a/lib.esm/abi/coders/array.js.map +++ b/lib.esm/abi/coders/array.js.map @@ -1 +1 @@ -{"version":3,"file":"array.js","sourceRoot":"","sources":["../../../src.ts/abi/coders/array.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,gBAAgB,EAAE,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,UAAU,EACjF,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAKhD,MAAM,UAAU,IAAI,CAAC,MAAc,EAAE,MAA4B,EAAE,MAA8C;IAC7G,IAAI,WAAW,GAAe,EAAG,CAAC;IAElC,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE;QACxB,WAAW,GAAG,MAAM,CAAC;KAEvB;SAAM,IAAI,MAAM,IAAI,OAAM,CAAC,MAAM,CAAC,KAAK,QAAQ,EAAE;QAC9C,IAAI,MAAM,GAAkC,EAAG,CAAC;Q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AAM,CAAC,UAAU,EAAE,CAAC,CAAC;SACxG;QACD,IAAI,MAAM,GAAG,EAAE,CAAC;QAChB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,EAAE,CAAC,EAAE,EAAE;YAAE,MAAM,CAAC,IAAI,CAAC,IAAI,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;SAAE;QAEhF,OAAO,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,CAAC;CACJ"} \ No newline at end of file diff --git a/lib.esm/abi/fragments.js b/lib.esm/abi/fragments.js index 5f4e4211c..5522cdc8c 100644 --- a/lib.esm/abi/fragments.js +++ b/lib.esm/abi/fragments.js @@ -1,4 +1,4 @@ -import { defineProperties, getBigInt, getNumber, assertPrivate, throwArgumentError, throwError } from "../utils/index.js"; +import { defineProperties, getBigInt, getNumber, assert, assertPrivate, assertArgument } from "../utils/index.js"; import { id } from "../hash/index.js"; ; // [ "a", "b" ] => { "a": 1, "b": 1 } @@ -299,9 +299,7 @@ function consumeEoi(tokens) { const regexArrayType = new RegExp(/^(.*)\[([0-9]*)\]$/); function verifyBasicType(type) { const match = type.match(regexType); - if (!match) { - return throwArgumentError("invalid type", "type", type); - } + assertArgument(match, "invalid type", "type", type); if (type === "uint") { return "uint256"; } @@ -311,16 +309,12 @@ function verifyBasicType(type) { if (match[2]) { // bytesXX const length = parseInt(match[2]); - if (length === 0 || length > 32) { - throwArgumentError("invalid bytes length", "type", type); - } + assertArgument(length !== 0 && length <= 32, "invalid bytes length", "type", type); } else if (match[3]) { // intXX or uintXX const size = parseInt(match[3]); - if (size === 0 || size > 256 || size % 8) { - throwArgumentError("invalid numeric width", "type", type); - } + assertArgument(size !== 0 && size <= 256 && (size % 8) === 0, "invalid numeric width", "type", type); } return type; } @@ -572,14 +566,10 @@ export class ParamType { return new ParamType(_guard, name, type, baseType, indexed, comps, arrayLength, arrayChildren); } const name = obj.name; - if (name && (typeof (name) !== "string" || !name.match(regexIdentifier))) { - throwArgumentError("invalid name", "obj.name", name); - } + assertArgument(!name || (typeof (name) === "string" && name.match(regexIdentifier)), "invalid name", "obj.name", name); let indexed = obj.indexed; if (indexed != null) { - if (!allowIndexed) { - throwArgumentError("parameter cannot be indexed", "obj.indexed", obj.indexed); - } + assertArgument(allowIndexed, "parameter cannot be indexed", "obj.indexed", obj.indexed); indexed = !!indexed; } let type = obj.type; @@ -664,9 +654,7 @@ export class NamedFragment extends Fragment { name; constructor(guard, type, name, inputs) { super(guard, type, inputs); - if (typeof (name) !== "string" || !name.match(regexIdentifier)) { - throwArgumentError("invalid identifier", "name", name); - } + assertArgument(typeof (name) === "string" && name.match(regexIdentifier), "invalid identifier", "name", name); inputs = Object.freeze(inputs.slice()); defineProperties(this, { name }); } @@ -774,11 +762,7 @@ export class ConstructorFragment extends Fragment { defineProperties(this, { payable, gas }); } format(format = "sighash") { - if (format === "sighash") { - throwError("cannot format a constructor for sighash", "UNSUPPORTED_OPERATION", { - operation: "format(sighash)" - }); - } + assert(format !== "sighash", "cannot format a constructor for sighash", "UNSUPPORTED_OPERATION", { operation: "format(sighash)" }); if (format === "json") { return JSON.stringify({ type: "constructor", diff --git a/lib.esm/abi/fragments.js.map b/lib.esm/abi/fragments.js.map index 700c98652..6e40ae4c2 100644 --- a/lib.esm/abi/fragments.js.map +++ b/lib.esm/abi/fragments.js.map @@ -1 +1 @@ -{"version":3,"file":"fragments.js","sourceRoot":"","sources":["../../src.ts/abi/fragments.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,gBAAgB,EAAE,SAAS,EAAE,SAAS,EACtC,aAAa,EAAE,kBAAkB,EAAE,UAAU,EAChD,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AAwBrC,CAAC;AAeF,qCAAqC;AACrC,SAAS,MAAM,CAAC,KAAoB;IAChC,MAAM,MAAM,GAAgB,IAAI,GAAG,EAAE,CAAC;IACtC,KAAK,C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AC,MAAM,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,CAAA,CAAC,CAAC,EAAG,CAAC,CAAC;IAClG,CAAC;IAED,MAAM,CAAC,UAAU,CAAC,KAAU;QACxB,OAAO,CAAC,KAAK,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,sBAAsB,CAAC,CAAC;IACjE,CAAC;CACJ"} \ No newline at end of file diff --git a/lib.esm/abi/interface.js b/lib.esm/abi/interface.js index 286bc622e..9865de8ef 100644 --- a/lib.esm/abi/interface.js +++ b/lib.esm/abi/interface.js @@ -1,6 +1,6 @@ import { keccak256 } from "../crypto/index.js"; import { id } from "../hash/index.js"; -import { concat, dataSlice, getBigInt, getBytes, getBytesCopy, hexlify, zeroPadValue, isHexString, defineProperties, throwArgumentError, toHex, throwError } from "../utils/index.js"; +import { concat, dataSlice, getBigInt, getBytes, getBytesCopy, hexlify, zeroPadValue, isHexString, defineProperties, assertArgument, toHex, assert } from "../utils/index.js"; import { defaultAbiCoder, getBuiltinCallException } from "./abi-coder.js"; import { checkResultErrors, Result } from "./coders/abstract-coder.js"; import { ConstructorFragment, ErrorFragment, EventFragment, Fragment, FunctionFragment, ParamType } from "./fragments.js"; @@ -207,7 +207,7 @@ export class Interface { return fragment; } } - throwArgumentError("no matching function", "selector", key); + assertArgument(false, "no matching function", "selector", key); } // It is a bare name, look up the function (will return null if ambiguous) if (key.indexOf("(") === -1) { @@ -265,12 +265,10 @@ export class Interface { matching.splice(0, 1); } } - if (matching.length === 0) { - throwArgumentError("no matching function", "name", key); - } - else if (matching.length > 1 && forceUnique) { + assertArgument(matching.length !== 0, "no matching function", "name", key); + if (matching.length > 1 && forceUnique) { const matchStr = matching.map((m) => JSON.stringify(m.format())).join(", "); - throwArgumentError(`multiple matching functions (i.e. ${matchStr})`, "name", key); + assertArgument(false, `multiple matching functions (i.e. ${matchStr})`, "name", key); } return matching[0]; } @@ -279,7 +277,7 @@ export class Interface { if (result) { return result; } - return throwArgumentError("no matching function", "signature", key); + assertArgument(false, "no matching function", "signature", key); } /** * Get the function name for %%key%%, which may be a function selector, @@ -311,7 +309,7 @@ export class Interface { return fragment; } } - throwArgumentError("no matching event", "eventTopic", key); + assertArgument(false, "no matching event", "eventTopic", key); } // It is a bare name, look up the function (will return null if ambiguous) if (key.indexOf("(") === -1) { @@ -344,12 +342,10 @@ export class Interface { } } } - if (matching.length === 0) { - throwArgumentError("no matching event", "name", key); - } - else if (matching.length > 1 && forceUnique) { + assertArgument(matching.length > 0, "no matching event", "name", key); + if (matching.length > 1 && forceUnique) { // @TODO: refine by Typed - throwArgumentError("multiple matching events", "name", key); + assertArgument(false, "multiple matching events", "name", key); } return matching[0]; } @@ -358,7 +354,7 @@ export class Interface { if (result) { return result; } - return throwArgumentError("no matching event", "signature", key); + assertArgument(false, "no matching event", "signature", key); } /** * Get the event name for %%key%%, which may be a topic hash, @@ -401,7 +397,7 @@ export class Interface { return fragment; } } - throwArgumentError("no matching error", "selector", key); + assertArgument(false, "no matching error", "selector", key); } // It is a bare name, look up the function (will return null if ambiguous) if (key.indexOf("(") === -1) { @@ -418,11 +414,11 @@ export class Interface { if (key === "Panic") { return ErrorFragment.from("error Panic(uint256)"); } - throwArgumentError("no matching error", "name", key); + assertArgument(false, "no matching error", "name", key); } else if (matching.length > 1) { // @TODO: refine by Typed - throwArgumentError("multiple matching errors", "name", key); + assertArgument(false, "multiple matching errors", "name", key); } return matching[0]; } @@ -438,7 +434,7 @@ export class Interface { if (result) { return result; } - return throwArgumentError("no matching error", "signature", key); + assertArgument(false, "no matching error", "signature", key); } // Get the 4-byte selector used by Solidity to identify a function /* @@ -494,9 +490,7 @@ getSelector(fragment: ErrorFragment | FunctionFragment): string { if (typeof (fragment) === "string") { fragment = this.getError(fragment); } - if (dataSlice(data, 0, 4) !== fragment.selector) { - throwArgumentError(`data signature does not match error ${fragment.name}.`, "data", data); - } + assertArgument(dataSlice(data, 0, 4) === fragment.selector, `data signature does not match error ${fragment.name}.`, "data", data); return this._decodeParams(fragment.inputs, dataSlice(data, 4)); } /** @@ -524,9 +518,7 @@ getSelector(fragment: ErrorFragment | FunctionFragment): string { */ decodeFunctionData(key, data) { const fragment = (typeof (key) === "string") ? this.getFunction(key) : key; - if (dataSlice(data, 0, 4) !== fragment.selector) { - throwArgumentError(`data signature does not match function ${fragment.name}.`, "data", data); - } + assertArgument(dataSlice(data, 0, 4) === fragment.selector, `data signature does not match function ${fragment.name}.`, "data", data); return this._decodeParams(fragment.inputs, dataSlice(data, 4)); } /** @@ -565,7 +557,7 @@ getSelector(fragment: ErrorFragment | FunctionFragment): string { } } // Call returned data with no error, but the data is junk - return throwError(message, "BAD_DATA", { + assert(false, message, "BAD_DATA", { value: hexlify(bytes), info: { method: fragment.name, signature: fragment.format() } }); @@ -654,12 +646,7 @@ getSelector(fragment: ErrorFragment | FunctionFragment): string { if (typeof (eventFragment) === "string") { eventFragment = this.getEvent(eventFragment); } - if (values.length > eventFragment.inputs.length) { - throwError("too many arguments for " + eventFragment.format(), "UNEXPECTED_ARGUMENT", { - count: values.length, - expectedCount: eventFragment.inputs.length - }); - } + assert(values.length <= eventFragment.inputs.length, `too many arguments for ${eventFragment.format()}`, "UNEXPECTED_ARGUMENT", { count: values.length, expectedCount: eventFragment.inputs.length }); const topics = []; if (!eventFragment.anonymous) { topics.push(eventFragment.topicHash); @@ -688,16 +675,14 @@ getSelector(fragment: ErrorFragment | FunctionFragment): string { values.forEach((value, index) => { const param = eventFragment.inputs[index]; if (!param.indexed) { - if (value != null) { - throwArgumentError("cannot filter non-indexed parameters; must be null", ("contract." + param.name), value); - } + assertArgument(value == null, "cannot filter non-indexed parameters; must be null", ("contract." + param.name), value); return; } if (value == null) { topics.push(null); } else if (param.baseType === "array" || param.baseType === "tuple") { - throwArgumentError("filtering with tuples or arrays not supported", ("contract." + param.name), value); + assertArgument(false, "filtering with tuples or arrays not supported", ("contract." + param.name), value); } else if (Array.isArray(value)) { topics.push(value.map((value) => encodeTopic(param, value))); @@ -722,9 +707,7 @@ getSelector(fragment: ErrorFragment | FunctionFragment): string { if (!eventFragment.anonymous) { topics.push(eventFragment.topicHash); } - if (values.length !== eventFragment.inputs.length) { - throwArgumentError("event arguments/values mismatch", "values", values); - } + assertArgument(values.length !== eventFragment.inputs.length, "event arguments/values mismatch", "values", values); eventFragment.inputs.forEach((param, index) => { const value = values[index]; if (param.indexed) { @@ -759,9 +742,7 @@ getSelector(fragment: ErrorFragment | FunctionFragment): string { } if (topics != null && !eventFragment.anonymous) { const eventTopic = eventFragment.topicHash; - if (!isHexString(topics[0], 32) || topics[0].toLowerCase() !== eventTopic) { - throwArgumentError("fragment/topic mismatch", "topics[0]", topics[0]); - } + assertArgument(isHexString(topics[0], 32) && topics[0].toLowerCase() === eventTopic, "fragment/topic mismatch", "topics[0]", topics[0]); topics = topics.slice(1); } const indexed = []; diff --git a/lib.esm/abi/interface.js.map b/lib.esm/abi/interface.js.map index fc8fc786a..f4827e647 100644 --- a/lib.esm/abi/interface.js.map +++ b/lib.esm/abi/interface.js.map @@ -1 +1 @@ -{"version":3,"file":"interface.js","sourceRoot":"","sources":["../../src.ts/abi/interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAC9C,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAA;AACrC,OAAO,EACH,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,YAAY,EACpD,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,KAAK,EAC/E,UAAU,EACb,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAY,eAAe,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AACpF,OAAO,EAAE,iBAAiB,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,aAAa,EAAE,aAAa,EAAE,QAAQ,EAAE,gBAAgB,EAAE,SAAS,EAAE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,CAAC;IAChC,CAAC;CACJ"} \ No newline at end of file diff --git a/lib.esm/address/address.js b/lib.esm/address/address.js index 4c801f691..ebb708b54 100644 --- a/lib.esm/address/address.js +++ b/lib.esm/address/address.js @@ -1,5 +1,5 @@ import { keccak256 } from "../crypto/index.js"; -import { getBytes, throwArgumentError } from "../utils/index.js"; +import { getBytes, assertArgument } from "../utils/index.js"; const BN_0 = BigInt(0); const BN_36 = BigInt(36); function getChecksumAddress(address) { @@ -69,9 +69,7 @@ function fromBase36(value) { return result; } export function getAddress(address) { - if (typeof (address) !== "string") { - throwArgumentError("invalid address", "address", address); - } + assertArgument(typeof (address) === "string", "invalid address", "address", address); if (address.match(/^(0x)?[0-9a-fA-F]{40}$/)) { // Missing the 0x prefix if (address.substring(0, 2) !== "0x") { @@ -79,24 +77,20 @@ export function getAddress(address) { } const result = getChecksumAddress(address); // It is a checksummed address with a bad checksum - if (address.match(/([A-F].*[a-f])|([a-f].*[A-F])/) && result !== address) { - throwArgumentError("bad address checksum", "address", address); - } + assertArgument(!address.match(/([A-F].*[a-f])|([a-f].*[A-F])/) || result === address, "bad address checksum", "address", address); return result; } // Maybe ICAP? (we only support direct mode) if (address.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)) { // It is an ICAP address with a bad checksum - if (address.substring(2, 4) !== ibanChecksum(address)) { - throwArgumentError("bad icap checksum", "address", address); - } + assertArgument(address.substring(2, 4) === ibanChecksum(address), "bad icap checksum", "address", address); let result = fromBase36(address.substring(4)).toString(16); while (result.length < 40) { result = "0" + result; } return getChecksumAddress("0x" + result); } - return throwArgumentError("invalid address", "address", address); + assertArgument(false, "invalid address", "address", address); } export function getIcapAddress(address) { //let base36 = _base16To36(getAddress(address).substring(2)).toUpperCase(); diff --git a/lib.esm/address/address.js.map b/lib.esm/address/address.js.map index 272b88521..17e354a9c 100644 --- a/lib.esm/address/address.js.map +++ b/lib.esm/address/address.js.map @@ -1 +1 @@ -{"version":3,"file":"address.js","sourceRoot":"","sources":["../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AAS,EAAE,OAAO,CAAC,CAAC;AACjE,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,OAAe;IAC1C,2EAA2E;IAC3E,IAAI,MAAM,GAAG,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC;IACpE,OAAO,MAAM,CAAC,MAAM,GAAG,EAAE,EAAE;QAAE,MAAM,GAAG,GAAG,GAAG,MAAM,CAAC;KAAE;IACrD,OAAO,IAAI,GAAG,YAAY,CAAC,MAAM,GAAG,MAAM,CAAC,GAAG,MAAM,CAAC;AACzD,CAAC"} \ No newline at end of file diff --git a/lib.esm/address/checks.js b/lib.esm/address/checks.js index 72768d63d..113007b31 100644 --- a/lib.esm/address/checks.js +++ b/lib.esm/address/checks.js @@ -1,4 +1,4 @@ -import { throwArgumentError, throwError } from "../utils/index.js"; +import { assert, assertArgument } from "../utils/index.js"; import { getAddress } from "./address.js"; export function isAddressable(value) { return (value && typeof (value.getAddress) === "function"); @@ -14,10 +14,8 @@ export function isAddress(value) { async function checkAddress(target, promise) { const result = await promise; if (result == null || result === "0x0000000000000000000000000000000000000000") { - if (typeof (target) === "string") { - return throwError("unconfigured name", "UNCONFIGURED_NAME", { value: target }); - } - return throwArgumentError("invalid AddressLike value; did not resolve to a value address", "target", target); + assert(typeof (target) !== "string", "unconfigured name", "UNCONFIGURED_NAME", { value: target }); + assertArgument(false, "invalid AddressLike value; did not resolve to a value address", "target", target); } return getAddress(result); } @@ -28,11 +26,7 @@ export function resolveAddress(target, resolver) { if (target.match(/^0x[0-9a-f]{40}$/i)) { return getAddress(target); } - if (resolver == null) { - return throwError("ENS resolution requires a provider", "UNSUPPORTED_OPERATION", { - operation: "resolveName", - }); - } + assert(resolver != null, "ENS resolution requires a provider", "UNSUPPORTED_OPERATION", { operation: "resolveName" }); return checkAddress(target, resolver.resolveName(target)); } else if (isAddressable(target)) { @@ -41,6 +35,6 @@ export function resolveAddress(target, resolver) { else if (typeof (target.then) === "function") { return checkAddress(target, target); } - return throwArgumentError("unsupported addressable value", "target", target); + assertArgument(false, "unsupported addressable value", "target", target); } //# sourceMappingURL=checks.js.map \ No newline at end of file diff --git a/lib.esm/address/checks.js.map b/lib.esm/address/checks.js.map index 0f308dcc5..6ac543c86 100644 --- a/lib.esm/address/checks.js.map +++ b/lib.esm/address/checks.js.map @@ -1 +1 @@ -{"version":3,"file":"checks.js","sourceRoot":"","sources":["../../src.ts/address/checks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEnE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAK1C,MAAM,UAAU,aAAa,CAAC,KAAU;IACpC,OAAO,CAAC,KAAK,IAAI,OAAM,CAAC,KAAK,CAAC,UAAU,CAAC,KAAK,UAAU,CAAC,CAAC;AAC9D,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,KAAU;IAChC,IAAI;QACA,UAAU,CAAC,KAAK,CAAC,CAAC;QAClB,OAAO,IAAI,CAAC;KACf;IAAC,OAAO,KAAK,EAAE,GAAG;IACnB,OAAO,KAAK,CAAC;AACjB,CAAC;AAED,KAAK,UAAU,YAAY,CAAC,MAAW,EAAE,OAA+B;IACpE,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC;IAC7B,IAAI,MAAM,IAAI,IAAI,IAAI,MAAM,KAAK,4CAA4C,EAAE;QAC3E,IAAI,OAAM,CAAC,MAAM,CAAC,KAAK,QAAQ,EAAE;YAC7B,OAAO,UAAU,CAAC,mBAAmB,EAAE,mBAAmB,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC;SAClF;QACD,OAAO,kBAAkB,CAAC,+DAA+D,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;KAChH;IACD,OAAO,UAAU,CAAC,MAAM,CAAC,CAAC;AAC9B,CAAC;AAED,gEAAgE;AAChE,kCAAkC;AA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,MAAM,CAAC,CAAC;AAC7E,CAAC"} \ No newline at end of file diff --git a/lib.esm/address/contract-address.js b/lib.esm/address/contract-address.js index d85eb7fcb..31a3462d9 100644 --- a/lib.esm/address/contract-address.js +++ b/lib.esm/address/contract-address.js @@ -1,5 +1,5 @@ import { keccak256 } from "../crypto/index.js"; -import { concat, dataSlice, getBigInt, getBytes, encodeRlp, throwArgumentError } from "../utils/index.js"; +import { concat, dataSlice, getBigInt, getBytes, encodeRlp, assertArgument } from "../utils/index.js"; import { getAddress } from "./address.js"; // http://ethereum.stackexchange.com/questions/760/how-is-the-address-of-an-ethereum-contract-computed export function getCreateAddress(tx) { @@ -21,12 +21,8 @@ export function getCreate2Address(_from, _salt, _initCodeHash) { const from = getAddress(_from); const salt = getBytes(_salt, "salt"); const initCodeHash = getBytes(_initCodeHash, "initCodeHash"); - if (salt.length !== 32) { - throwArgumentError("salt must be 32 bytes", "salt", _salt); - } - if (initCodeHash.length !== 32) { - throwArgumentError("initCodeHash must be 32 bytes", "initCodeHash", _initCodeHash); - } + assertArgument(salt.length === 32, "salt must be 32 bytes", "salt", _salt); + assertArgument(initCodeHash.length === 32, "initCodeHash must be 32 bytes", "initCodeHash", _initCodeHash); return getAddress(dataSlice(keccak256(concat(["0xff", from, salt, initCodeHash])), 12)); } //# sourceMappingURL=contract-address.js.map \ No newline at end of file diff --git a/lib.esm/address/contract-address.js.map b/lib.esm/address/contract-address.js.map index f6c25ce3b..8233ca622 100644 --- a/lib.esm/address/contract-address.js.map +++ b/lib.esm/address/contract-address.js.map @@ -1 +1 @@ -{"version":3,"file":"contract-address.js","sourceRoot":"","sources":["../../src.ts/address/contract-address.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EACH,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,kBAAkB,EACxE,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,UAAU,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C;IACrC,MAAM,YAAY,GAAG,QAAQ,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC;IAE7D,cAAc,CAAC,IAAI,CAAC,MAAM,KAAK,EAAE,EAAE,uBAAuB,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;IAE3E,cAAc,CAAC,YAAY,CAAC,MAAM,KAAK,EAAE,EAAE,+BAA+B,EAAE,cAAc,EAAE,aAAa,CAAC,CAAC;IAE3G,OAAO,UAAU,CAAC,SAAS,CAAC,SAAS,CAAC,MAAM,CAAC,CAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,YAAY,CAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAA;AAC7F,CAAC"} \ No newline at end of file diff --git a/lib.esm/contract/contract.js b/lib.esm/contract/contract.js index ee9a9a48e..e14923bf5 100644 --- a/lib.esm/contract/contract.js +++ b/lib.esm/contract/contract.js @@ -1,8 +1,8 @@ import { Interface, Typed } from "../abi/index.js"; import { resolveAddress } from "../address/index.js"; -import { copyRequest } from "../providers/index.js"; -import { defineProperties, isCallException, isHexString, resolveProperties, makeError, throwArgumentError, throwError } from "../utils/index.js"; -import { ContractEventPayload, ContractTransactionResponse, EventLog } from "./wrappers.js"; +import { copyRequest, Log } from "../providers/index.js"; +import { defineProperties, isCallException, isHexString, resolveProperties, makeError, assert, assertArgument } from "../utils/index.js"; +import { ContractEventPayload, ContractUnknownEventPayload, ContractTransactionResponse, EventLog } from "./wrappers.js"; function canCall(value) { return (value && typeof (value.call) === "function"); } @@ -15,11 +15,6 @@ function canResolve(value) { function canSend(value) { return (value && typeof (value.sendTransaction) === "function"); } -function concisify(items) { - items = Array.from((new Set(items)).values()); - items.sort(); - return items; -} class PreparedTopicFilter { #filter; fragment; @@ -80,10 +75,10 @@ export async function copyOverrides(arg) { // Some sanity checking; these are what these methods adds //if ((overrides).to) { if (overrides.to) { - throwArgumentError("cannot override to", "overrides.to", overrides.to); + assertArgument(false, "cannot override to", "overrides.to", overrides.to); } else if (overrides.data) { - throwArgumentError("cannot override data", "overrides.data", overrides.data); + assertArgument(false, "cannot override data", "overrides.data", overrides.data); } // Resolve any from if (overrides.from) { @@ -158,11 +153,7 @@ class WrappedMethod extends _WrappedMethodBase() { } async send(...args) { const runner = this._contract.runner; - if (!canSend(runner)) { - return throwError("contract runner does not support sending transactions", "UNSUPPORTED_OPERATION", { - operation: "sendTransaction" - }); - } + assert(canSend(runner), "contract runner does not support sending transactions", "UNSUPPORTED_OPERATION", { operation: "sendTransaction" }); const tx = await runner.sendTransaction(await this.populateTransaction(...args)); const provider = getProvider(this._contract.runner); // @TODO: the provider can be null; make a custom dummy provider that will throw a @@ -171,20 +162,12 @@ class WrappedMethod extends _WrappedMethodBase() { } async estimateGas(...args) { const runner = getRunner(this._contract.runner, "estimateGas"); - if (!canEstimate(runner)) { - return throwError("contract runner does not support gas estimation", "UNSUPPORTED_OPERATION", { - operation: "estimateGas" - }); - } + assert(canEstimate(runner), "contract runner does not support gas estimation", "UNSUPPORTED_OPERATION", { operation: "estimateGas" }); return await runner.estimateGas(await this.populateTransaction(...args)); } async staticCallResult(...args) { const runner = getRunner(this._contract.runner, "call"); - if (!canCall(runner)) { - return throwError("contract runner does not support calling", "UNSUPPORTED_OPERATION", { - operation: "call" - }); - } + assert(canCall(runner), "contract runner does not support calling", "UNSUPPORTED_OPERATION", { operation: "call" }); const tx = await this.populateTransaction(...args); let result = "0x"; try { @@ -215,7 +198,7 @@ class WrappedEvent extends _WrappedEventBase() { }); return new Proxy(this, { // Perform the default operation for this fragment type - apply: async (target, thisArg, args) => { + apply: (target, thisArg, args) => { return new PreparedTopicFilter(contract, target.getFragment(...args), args); }, }); @@ -245,22 +228,45 @@ function isDeferred(value) { return (value && typeof (value) === "object" && ("getTopicFilter" in value) && (typeof (value.getTopicFilter) === "function") && value.fragment); } -async function getSubTag(contract, event) { - let fragment; +async function getSubInfo(contract, event) { let topics; + let fragment = null; + // Convert named events to topicHash and get the fragment for + // events which need deconstructing. if (Array.isArray(event)) { - // Topics; e.g. `[ "0x1234...89ab" ]` - fragment = contract.interface.getEvent(event[0]); - topics = event; + const topicHashify = function (name) { + if (isHexString(name, 32)) { + return name; + } + return contract.interface.getEvent(name).topicHash; + }; + // Array of Topics and Names; e.g. `[ "0x1234...89ab", "Transfer(address)" ]` + topics = event.map((e) => { + if (e == null) { + return null; + } + if (Array.isArray(e)) { + return e.map(topicHashify); + } + return topicHashify(e); + }); + } + else if (event === "*") { + topics = [null]; } else if (typeof (event) === "string") { - // Event name (name or signature); `"Transfer"` - fragment = contract.interface.getEvent(event); - topics = [fragment.topicHash]; + if (isHexString(event, 32)) { + // Topic Hash + topics = [event]; + } + else { + // Name or Signature; e.g. `"Transfer", `"Transfer(address)"` + fragment = contract.interface.getEvent(event); + topics = [fragment.topicHash]; + } } else if (isDeferred(event)) { // Deferred Topic Filter; e.g. `contract.filter.Transfer(from)` - fragment = event.fragment; topics = await event.getTopicFilter(); } else if ("fragment" in event) { @@ -269,8 +275,7 @@ async function getSubTag(contract, event) { topics = [fragment.topicHash]; } else { - console.log(event); - throw new Error("TODO"); + assertArgument(false, "unknown event name", "event", event); } // Normalize topics and sort TopicSets topics = topics.map((t) => { @@ -278,7 +283,12 @@ async function getSubTag(contract, event) { return null; } if (Array.isArray(t)) { - return concisify(t.map((t) => t.toLowerCase())); + const items = Array.from(new Set(t.map((t) => t.toLowerCase())).values()); + if (items.length === 1) { + return items[0]; + } + items.sort(); + return items; } return t.toLowerCase(); }); @@ -295,25 +305,39 @@ async function getSubTag(contract, event) { } async function hasSub(contract, event) { const { subs } = getInternal(contract); - return subs.get((await getSubTag(contract, event)).tag) || null; + return subs.get((await getSubInfo(contract, event)).tag) || null; } -async function getSub(contract, event) { +async function getSub(contract, operation, event) { // Make sure our runner can actually subscribe to events const provider = getProvider(contract.runner); - if (!provider) { - return throwError("contract runner does not support subscribing", "UNSUPPORTED_OPERATION", { - operation: "on" - }); - } - const { fragment, tag, topics } = await getSubTag(contract, event); + assert(provider, "contract runner does not support subscribing", "UNSUPPORTED_OPERATION", { operation }); + const { fragment, tag, topics } = await getSubInfo(contract, event); const { addr, subs } = getInternal(contract); let sub = subs.get(tag); if (!sub) { const address = (addr ? addr : contract); const filter = { address, topics }; const listener = (log) => { - const payload = new ContractEventPayload(contract, null, event, fragment, log); - emit(contract, event, payload.args, payload); + let foundFragment = fragment; + if (foundFragment == null) { + try { + foundFragment = contract.interface.getEvent(log.topics[0]); + } + catch (error) { } + } + // If fragment is null, we do not deconstruct the args to emit + if (foundFragment) { + const _foundFragment = foundFragment; + const args = fragment ? contract.interface.decodeEventLog(fragment, log.data, log.topics) : []; + emit(contract, event, args, (listener) => { + return new ContractEventPayload(contract, listener, event, _foundFragment, log); + }); + } + else { + emit(contract, event, [], (listener) => { + return new ContractUnknownEventPayload(contract, listener, event, log); + }); + } }; let started = false; const start = () => { @@ -339,7 +363,7 @@ async function getSub(contract, event) { // ensure correct ordering (note this cannot throw and just adds the // notice to the event queu using setTimeout). let lastEmit = Promise.resolve(); -async function _emit(contract, event, args, payload) { +async function _emit(contract, event, args, payloadFunc) { await lastEmit; const sub = await hasSub(contract, event); if (!sub) { @@ -348,8 +372,8 @@ async function _emit(contract, event, args, payload) { const count = sub.listeners.length; sub.listeners = sub.listeners.filter(({ listener, once }) => { const passArgs = args.slice(); - if (payload) { - passArgs.push(new ContractEventPayload(contract, (once ? null : listener), event, payload.fragment, payload.log)); + if (payloadFunc) { + passArgs.push(payloadFunc(once ? null : listener)); } try { listener.call(contract, ...passArgs); @@ -359,12 +383,12 @@ async function _emit(contract, event, args, payload) { }); return (count > 0); } -async function emit(contract, event, args, payload) { +async function emit(contract, event, args, payloadFunc) { try { await lastEmit; } catch (error) { } - const resultPromise = _emit(contract, event, args, payload); + const resultPromise = _emit(contract, event, args, payloadFunc); lastEmit = resultPromise; return await resultPromise; } @@ -453,14 +477,13 @@ export class BaseContract { } }); } + connect(runner) { + return new BaseContract(this.target, this.interface, runner); + } async getAddress() { return await getInternal(this).addrPromise; } async getDeployedCode() { const provider = getProvider(this.runner); - if (!provider) { - return throwError("runner does not support .provider", "UNSUPPORTED_OPERATION", { - operation: "getDeployedCode" - }); - } + assert(provider, "runner does not support .provider", "UNSUPPORTED_OPERATION", { operation: "getDeployedCode" }); const code = await provider.getCode(await this.getAddress()); if (code === "0x") { return null; @@ -481,11 +504,7 @@ export class BaseContract { } // Make sure we can subscribe to a provider event const provider = getProvider(this.runner); - if (provider == null) { - return throwError("contract runner does not support .provider", "UNSUPPORTED_OPERATION", { - operation: "waitForDeployment" - }); - } + assert(provider != null, "contract runner does not support .provider", "UNSUPPORTED_OPERATION", { operation: "waitForDeployment" }); return new Promise((resolve, reject) => { const checkCode = async () => { try { @@ -524,26 +543,34 @@ export class BaseContract { async queryFilter(event, fromBlock = 0, toBlock = "latest") { const { addr, addrPromise } = getInternal(this); const address = (addr ? addr : (await addrPromise)); - const { fragment, topics } = await getSubTag(this, event); + const { fragment, topics } = await getSubInfo(this, event); const filter = { address, topics, fromBlock, toBlock }; const provider = getProvider(this.runner); - if (!provider) { - return throwError("contract runner does not have a provider", "UNSUPPORTED_OPERATION", { - operation: "queryFilter" - }); - } + assert(provider, "contract runner does not have a provider", "UNSUPPORTED_OPERATION", { operation: "queryFilter" }); return (await provider.getLogs(filter)).map((log) => { - return new EventLog(log, this.interface, fragment); + let foundFragment = fragment; + if (foundFragment == null) { + try { + foundFragment = this.interface.getEvent(log.topics[0]); + } + catch (error) { } + } + if (foundFragment) { + return new EventLog(log, this.interface, foundFragment); + } + else { + return new Log(log, provider); + } }); } async on(event, listener) { - const sub = await getSub(this, event); + const sub = await getSub(this, "on", event); sub.listeners.push({ listener, once: false }); sub.start(); return this; } async once(event, listener) { - const sub = await getSub(this, event); + const sub = await getSub(this, "once", event); sub.listeners.push({ listener, once: true }); sub.start(); return this; diff --git a/lib.esm/contract/contract.js.map b/lib.esm/contract/contract.js.map index 60e474b8d..88be937a8 100644 --- a/lib.esm/contract/contract.js.map +++ b/lib.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,iBAAiB;IACjB,KAAK,CAAC,WAAW,CAAC,KAAwB,EAAE,QAAkB;QAC1D,OAAO,MAAM,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;IAC1C,CAAC;IAED,kBAAkB;IAClB,KAAK,CAAC,cAAc,CAAC,KAAwB,EAAE,QAAkB;QAC7D,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;IAC3C,CAAC;IAED,MAAM,CAAC,UAAU,CAAwB,GAAiB;QACtD,MAAM,cAAe,SAAQ,YAAY;YACrC,YAAY,OAAe,EAAE,SAAgC,IAAI;gBAC7D,KAAK,CAAC,OAAO,EAAE,GAAG,EAAE,MAAM,CAAC,CAAC;YAChC,CAAC;SACJ;QACD,OAAO,cAAqB,CAAC;IACjC,CAAC;IAAA,CAAC;IAEF,MAAM,CAAC,IAAI,CAAwB,MAAc,EAAE,GAAiB,EAAE,SAAgC,IAAI;QACtG,MAAM,QAAQ,GAAG,IAAI,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE,MAAM,CAAC,CAAC;QAC/C,OAAO,QAAe,CAAC;IAC3B,CAAC;CACJ;AAED,SAAS,aAAa;IAClB,OAAO,YAAmB,CAAC;AAC/B,CAAC;AAED,MAAM,OAAO,QAAS,SAAQ,aAAa,EAAE;CAAI"} \ No newline at end of file diff --git a/lib.esm/contract/factory.js b/lib.esm/contract/factory.js index b7800697d..54c1f2a57 100644 --- a/lib.esm/contract/factory.js +++ b/lib.esm/contract/factory.js @@ -1,6 +1,6 @@ import { Interface } from "../abi/index.js"; import { getCreateAddress } from "../address/index.js"; -import { concat, defineProperties, getBytes, hexlify, throwArgumentError, throwError } from "../utils/index.js"; +import { concat, defineProperties, getBytes, hexlify, assert, assertArgument } from "../utils/index.js"; import { BaseContract, copyOverrides, resolveArgs } from "./contract.js"; // A = Arguments to the constructor // I = Interface of deployed contracts @@ -42,11 +42,9 @@ export class ContractFactory { } async deploy(...args) { const tx = await this.getDeployTransaction(...args); - if (!this.runner || typeof (this.runner.sendTransaction) !== "function") { - return throwError("factory runner does not support sending transactions", "UNSUPPORTED_OPERATION", { - operation: "sendTransaction" - }); - } + assert(this.runner && typeof (this.runner.sendTransaction) === "function", "factory runner does not support sending transactions", "UNSUPPORTED_OPERATION", { + operation: "sendTransaction" + }); const sentTx = await this.runner.sendTransaction(tx); const address = getCreateAddress(sentTx); return new BaseContract(address, this.interface, this.runner, sentTx); @@ -55,9 +53,7 @@ export class ContractFactory { return new ContractFactory(this.interface, this.bytecode, runner); } static fromSolidity(output, runner) { - if (output == null) { - throwArgumentError("bad compiler output", "output", output); - } + assertArgument(output != null, "bad compiler output", "output", output); if (typeof (output) === "string") { output = JSON.parse(output); } diff --git a/lib.esm/contract/factory.js.map b/lib.esm/contract/factory.js.map index 3d9205463..4a1259a39 100644 --- a/lib.esm/contract/factory.js.map +++ b/lib.esm/contract/factory.js.map @@ -1 +1 @@ -{"version":3,"file":"factory.js","sourceRoot":"","sources":["../../src.ts/contract/factory.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EACH,MAAM,EAAE,gBAAgB,EAAE,QAAQ,EAAE,OAAO,EAC3C,kBAAkB,EAAE,UAAU,EACjC,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAYzE,mCAAmC;AACnC,sCAAsC;AACtC,MAAM,OAAO,eAAe;IACf,SAAS,CAAa;IACtB,QAAQ,CAAU;IAClB,MAAM,CAAyB;IAExC,YAAY,GAA6B,EAAE,QAAwC,EAAE,MAA8B;QAC/G,MAAM,KAAK,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAElC,wEAAwE;QACxE,IAAI,QAAQ,YAAY,UAAU,EAAE;Y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55c626 100644 --- a/lib.esm/contract/wrappers.js +++ b/lib.esm/contract/wrappers.js @@ -44,21 +44,11 @@ export class ContractTransactionResponse extends TransactionResponse { return new ContractTransactionReceipt(this.#interface, this.provider, receipt); } } -export class ContractEventPayload extends EventPayload { - fragment; +export class ContractUnknownEventPayload extends EventPayload { log; - args; - constructor(contract, listener, filter, fragment, _log) { + constructor(contract, listener, filter, log) { super(contract, listener, filter); - const log = new EventLog(_log, contract.interface, fragment); - const args = contract.interface.decodeEventLog(fragment, log.data, log.topics); - defineProperties(this, { args, fragment, log }); - } - get eventName() { - return this.fragment.name; - } - get eventSignature() { - return this.fragment.format(); + defineProperties(this, { log }); } async getBlock() { return await this.log.getBlock(); @@ -70,4 +60,17 @@ export class ContractEventPayload extends EventPayload { return await this.log.getTransactionReceipt(); } } +export class ContractEventPayload extends ContractUnknownEventPayload { + constructor(contract, listener, filter, fragment, _log) { + super(contract, listener, filter, new EventLog(_log, contract.interface, fragment)); + const args = contract.interface.decodeEventLog(fragment, this.log.data, this.log.topics); + defineProperties(this, { args, fragment }); + } + get eventName() { + return this.fragment.name; + } + get eventSignature() { + return this.fragment.format(); + } +} //# sourceMappingURL=wrappers.js.map \ No newline at end of file diff --git a/lib.esm/contract/wrappers.js.map b/lib.esm/contract/wrappers.js.map index d3f70e906..280e01fe2 100644 --- a/lib.esm/contract/wrappers.js.map +++ b/lib.esm/contract/wrappers.js.map @@ -1 +1 @@ -{"version":3,"file":"wrappers.js","sourceRoot":"","sources":["../../src.ts/contract/wrappers.ts"],"names":[],"mappings":"AAAA,OAAO,EACI,GAAG,EAAE,kBAAkB,EAAE,mBAAmB,EACtD,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAYnE,MAAM,OAAO,QAAS,SAAQ,GAAG;IACpB,SAAS,CAAa;IACtB,QAAQ,CAAiB;IACzB,IAAI,CAAU;IAEvB,YAAY,GAAQ,EAAE,KAAgB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;IAED,KAAK,CAAC,QAAQ;QACV,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC;IACrC,CAAC;IAED,KAAK,CAAC,cAAc;QAChB,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,cAAc,EAAE,CAAC;IAC3C,CAAC;IAED,KAAK,CAAC,qBAAqB;QACvB,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,qBAAqB,EAAE,CAAC;IAClD,CAAC;CACJ;AAED,MAAM,OAAO,oBAAqB,SAAQ,2BAA2B;IAMjE,YAAY,QAAsB,EAAE,QAAyB,EAAE,MAAyB,EAAE,QAAuB,EAAE,IAAS;QACxH,KAAK,CAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC;QACpF,MAAM,IAAI,GAAG,QAAQ,CAAC,SAAS,CAAC,cAAc,CAAC,QAAQ,EAAE,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QACzF,gBAAgB,CAAuB,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC;IACrE,CAAC;IAED,IAAI,SAAS;QACT,OAAO,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC;IAC9B,CAAC;IAED,IAAI,cAAc;QACd,OAAO,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;IAClC,CAAC;CACJ"} \ No newline at end of file diff --git a/lib.esm/crypto/crypto-browser.js b/lib.esm/crypto/crypto-browser.js index a2ae3b4c1..8d95b6fa0 100644 --- a/lib.esm/crypto/crypto-browser.js +++ b/lib.esm/crypto/crypto-browser.js @@ -3,7 +3,7 @@ import { hmac } from "@noble/hashes/hmac"; import { pbkdf2 } from "@noble/hashes/pbkdf2"; import { sha256 } from "@noble/hashes/sha256"; import { sha512 } from "@noble/hashes/sha512"; -import { throwArgumentError, throwError } from "../utils/index.js"; +import { assert, assertArgument } from "../utils/index.js"; function getGlobal() { if (typeof self !== 'undefined') { return self; @@ -24,31 +24,23 @@ export function createHash(algo) { case "sha256": return sha256.create(); case "sha512": return sha512.create(); } - return throwArgumentError("invalid hashing algorithm name", "algorithm", algo); + assertArgument(false, "invalid hashing algorithm name", "algorithm", algo); } export function createHmac(_algo, key) { const algo = ({ sha256, sha512 }[_algo]); - if (algo == null) { - return throwArgumentError("invalid hmac algorithm", "algorithm", _algo); - } + assertArgument(algo != null, "invalid hmac algorithm", "algorithm", _algo); return hmac.create(algo, key); } export function pbkdf2Sync(password, salt, iterations, keylen, _algo) { const algo = ({ sha256, sha512 }[_algo]); - if (algo == null) { - return throwArgumentError("invalid pbkdf2 algorithm", "algorithm", _algo); - } + assertArgument(algo != null, "invalid pbkdf2 algorithm", "algorithm", _algo); return pbkdf2(algo, password, salt, { c: iterations, dkLen: keylen }); } export function randomBytes(length) { - if (crypto == null) { - return throwError("platform does not support secure random numbers", "UNSUPPORTED_OPERATION", { - operation: "randomBytes" - }); - } - if (!Number.isInteger(length) || length <= 0 || length > 1024) { - throwArgumentError("invalid length", "length", length); - } + assert(crypto != null, "platform does not support secure random numbers", "UNSUPPORTED_OPERATION", { + operation: "randomBytes" + }); + assertArgument(Number.isInteger(length) && length > 0 && length <= 1024, "invalid length", "length", length); const result = new Uint8Array(length); crypto.getRandomValues(result); return result; diff --git a/lib.esm/crypto/crypto-browser.js.map b/lib.esm/crypto/crypto-browser.js.map index 17a844945..28134d2bb 100644 --- a/lib.esm/crypto/crypto-browser.js.map +++ b/lib.esm/crypto/crypto-browser.js.map @@ -1 +1 @@ -{"version":3,"file":"crypto-browser.js","sourceRoot":"","sources":["../../src.ts/crypto/crypto-browser.ts"],"names":[],"mappings":"AAAA,0BAA0B;AAE1B,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,sBAA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E,CAAC,KAAK,CAAC,CAAC,CAAC;IACzC,cAAc,CAAC,IAAI,IAAI,IAAI,EAAE,0BAA0B,EAAE,WAAW,EAAE,KAAK,CAAC,CAAC;IAC7E,OAAO,MAAM,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,CAAC,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC;AAC1E,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,MAAc;IACtC,MAAM,CAAC,MAAM,IAAI,IAAI,EAAE,iDAAiD,EAAE,uBAAuB,EAAE;QAC/F,SAAS,EAAE,aAAa;KAAE,CAAC,CAAC;IAEhC,cAAc,CAAC,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,MAAM,GAAG,CAAC,IAAI,MAAM,IAAI,IAAI,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;IAE7G,MAAM,MAAM,GAAG,IAAI,UAAU,CAAC,MAAM,CAAC,CAAC;IACtC,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;IAC/B,OAAO,MAAM,CAAC;AAClB,CAAC"} \ No newline at end of file diff --git a/lib.esm/crypto/hmac.js b/lib.esm/crypto/hmac.js index ceff9ac23..2c11e582d 100644 --- a/lib.esm/crypto/hmac.js +++ b/lib.esm/crypto/hmac.js @@ -1,4 +1,4 @@ -import { createHmac } from "./crypto-browser.js"; +import { createHmac } from "./crypto.js"; import { getBytes, hexlify } from "../utils/index.js"; let locked = false; const _computeHmac = function (algorithm, key, data) { diff --git a/lib.esm/crypto/hmac.js.map b/lib.esm/crypto/hmac.js.map index be0c32a20..93aaddd7c 100644 --- a/lib.esm/crypto/hmac.js.map +++ b/lib.esm/crypto/hmac.js.map @@ -1 +1 @@ -{"version":3,"file":"hmac.js","sourceRoot":"","sources":["../../src.ts/crypto/hmac.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD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AAe,EAAE,IAAgB;IAC3F,OAAO,UAAU,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,CAAC;AAC5D,CAAC,CAAA;AAED,IAAI,aAAa,GAAG,YAAY,CAAC;AAEjC,MAAM,UAAU,WAAW,CAAC,SAA8B,EAAE,IAAe,EAAE,KAAgB;IACzF,MAAM,GAAG,GAAG,QAAQ,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAClC,MAAM,IAAI,GAAG,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IACrC,OAAO,OAAO,CAAC,aAAa,CAAC,SAAS,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC;AACxD,CAAC;AACD,WAAW,CAAC,CAAC,GAAG,YAAY,CAAC;AAC7B,WAAW,CAAC,IAAI,GAAI,cAAa,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC,CAAA;AACjD,WAAW,CAAC,QAAQ,GAAG,UAAS,IAAsF;IAClH,IAAI,MAAM,EAAE;QAAE,MAAM,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAC;KAAE;IACzD,aAAa,GAAG,IAAI,CAAC;AACzB,CAAC,CAAA;AACD,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC"} \ No newline at end of file diff --git a/lib.esm/crypto/signature.js b/lib.esm/crypto/signature.js index 03b166244..5a12356fa 100644 --- a/lib.esm/crypto/signature.js +++ b/lib.esm/crypto/signature.js @@ -1,5 +1,5 @@ import { ZeroHash } from "../constants/index.js"; -import { concat, dataLength, getBigInt, getBytes, getNumber, getStore, hexlify, isHexString, setStore, assertPrivate, throwArgumentError } from "../utils/index.js"; +import { concat, dataLength, getBigInt, getBytes, getNumber, getStore, hexlify, isHexString, setStore, assertArgument, assertPrivate } from "../utils/index.js"; // Constants const BN_0 = BigInt(0); const BN_1 = BigInt(1); @@ -12,27 +12,19 @@ export class Signature { #props; get r() { return getStore(this.#props, "r"); } set r(value) { - if (dataLength(value) !== 32) { - throwArgumentError("invalid r", "value", value); - } + assertArgument(dataLength(value) === 32, "invalid r", "value", value); setStore(this.#props, "r", hexlify(value)); } get s() { return getStore(this.#props, "s"); } set s(value) { - if (dataLength(value) !== 32) { - throwArgumentError("invalid r", "value", value); - } - else if (getBytes(value)[0] & 0x80) { - throwArgumentError("non-canonical s", "value", value); - } + assertArgument(dataLength(value) === 32, "invalid r", "value", value); + assertArgument((getBytes(value)[0] & 0x80) === 0, "non-canonical s", "value", value); setStore(this.#props, "s", hexlify(value)); } get v() { return getStore(this.#props, "v"); } set v(value) { const v = getNumber(value, "value"); - if (v !== 27 && v !== 28) { - throw new Error("@TODO"); - } + assertArgument(v === 27 || v === 28, "invalid v", "v", value); setStore(this.#props, "v", v); } get networkV() { return getStore(this.#props, "networkV"); } @@ -89,9 +81,6 @@ export class Signature { r: this.r, s: this.s, v: this.v, }; } - //static create(): Signature { - // return new Signature(_guard, ZeroHash, ZeroHash, 27); - //} // Get the chain ID from an EIP-155 v static getChainId(v) { const bv = getBigInt(v, "v"); @@ -100,9 +89,7 @@ export class Signature { return BN_0; } // Bad value for an EIP-155 v - if (bv < BN_35) { - throwArgumentError("invalid EIP-155 v", "v", v); - } + assertArgument(bv >= BN_35, "invalid EIP-155 v", "v", v); return (bv - BN_35) / BN_2; } // Get the EIP-155 v transformed for a given chainId @@ -122,12 +109,13 @@ export class Signature { return (bv & BN_1) ? 27 : 28; } static from(sig) { + function assertError(check, message) { + assertArgument(check, message, "signature", sig); + } + ; if (sig == null) { return new Signature(_guard, ZeroHash, ZeroHash, 27); } - const throwError = (message) => { - return throwArgumentError(message, "signature", sig); - }; if (typeof (sig) === "string") { const bytes = getBytes(sig, "signature"); if (bytes.length === 64) { @@ -140,46 +128,34 @@ export class Signature { if (bytes.length === 65) { const r = hexlify(bytes.slice(0, 32)); const s = bytes.slice(32, 64); - if (s[0] & 0x80) { - throwError("non-canonical s"); - } + assertError((s[0] & 0x80) === 0, "non-canonical s"); const v = Signature.getNormalizedV(bytes[64]); return new Signature(_guard, r, hexlify(s), v); } - return throwError("invlaid raw signature length"); + assertError(false, "invlaid raw signature length"); } if (sig instanceof Signature) { return sig.clone(); } // Get r const r = sig.r; - if (r == null) { - throwError("missing r"); - } - if (!isHexString(r, 32)) { - throwError("invalid r"); - } + assertError(r != null, "missing r"); + assertError(isHexString(r, 32), "invalid r"); // Get s; by any means necessary (we check consistency below) const s = (function (s, yParityAndS) { if (s != null) { - if (!isHexString(s, 32)) { - throwError("invalid s"); - } + assertError(isHexString(s, 32), "invalid s"); return s; } if (yParityAndS != null) { - if (!isHexString(yParityAndS, 32)) { - throwError("invalid yParityAndS"); - } + assertError(isHexString(yParityAndS, 32), "invalid yParityAndS"); const bytes = getBytes(yParityAndS); bytes[0] &= 0x7f; return hexlify(bytes); } - return throwError("missing s"); + assertError(false, "missing s"); })(sig.s, sig.yParityAndS); - if (getBytes(s)[0] & 0x80) { - throwError("non-canonical s"); - } + assertError((getBytes(s)[0] & 0x80) == 0, "non-canonical s"); // Get v; by any means necessary (we check consistency below) const { networkV, v } = (function (_v, yParityAndS, yParity) { if (_v != null) { @@ -190,9 +166,7 @@ export class Signature { }; } if (yParityAndS != null) { - if (!isHexString(yParityAndS, 32)) { - throwError("invalid yParityAndS"); - } + assertError(isHexString(yParityAndS, 32), "invalid yParityAndS"); return { v: ((getBytes(yParityAndS)[0] & 0x80) ? 28 : 27) }; } if (yParity != null) { @@ -200,21 +174,17 @@ export class Signature { case 0: return { v: 27 }; case 1: return { v: 28 }; } - return throwError("invalid yParity"); + assertError(false, "invalid yParity"); } - return throwError("missing v"); + assertError(false, "missing v"); })(sig.v, sig.yParityAndS, sig.yParity); const result = new Signature(_guard, r, s, v); if (networkV) { setStore(result.#props, "networkV", networkV); } // If multiple of v, yParity, yParityAndS we given, check they match - if ("yParity" in sig && sig.yParity !== result.yParity) { - throwError("yParity mismatch"); - } - else if ("yParityAndS" in sig && sig.yParityAndS !== result.yParityAndS) { - throwError("yParityAndS mismatch"); - } + assertError(!("yParity" in sig && sig.yParity !== result.yParity), "yParity mismatch"); + assertError(!("yParityAndS" in sig && sig.yParityAndS !== result.yParityAndS), "yParityAndS mismatch"); return result; } } diff --git a/lib.esm/crypto/signature.js.map b/lib.esm/crypto/signature.js.map index 53191299b..99a86ba41 100644 --- a/lib.esm/crypto/signature.js.map +++ b/lib.esm/crypto/signature.js.map @@ -1 +1 @@ -{"version":3,"file":"signature.js","sourceRoot":"","sources":["../../src.ts/crypto/signature.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EACH,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EACrE,WAAW,EAAE,QAAQ,EACrB,aAAa,EAAE,kBAAkB,EACpC,MAAM,mBAAmB,CAAC;AAO3B,YAAY;AACZ,MAAM,IAAI,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AACvB,MAAM,IAAI,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AACvB,MAAM,IAAI,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AACvB,MAAM,KAAK,GAAG,MAAM,CAAC,EAAE,CAAC,CAAC;AACzB,MAAM,KAAK,GAAG,MAAM,CAAC,EAAE,CAAC,CAAC;AACzB,MAAM,KAAK,GAAG,MAAM,CAAC,EAAE,CAAC,CAAC;AAGzB,MAAM,MAAM,GAAG,EAAG,CAAC;AAwBnB,MAAM,OAAO,SAAS;IAClB,MAAM,CAAgE;IAEtE,IAAI,CAAC,KAAa,OAAO,QAAQ,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;IACtD,IAAI,CAAC,CAAC,KAAgB;QAClB,IAAI,UAAU,CAAC,KAAK,CAAC,KAAK,EAAE,EAAE;YAC1B,kBAAkB,CAAC,WAAW,EAAE,OAAO,EAAE,KAAK,CAAC,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EAAE,EAAE,CAAC;iBAC5B;gBACD,WAAW,CAAC,KAAK,EAAE,iBAAiB,CAAC,CAAC;aACzC;YAED,WAAW,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;QACpC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,CAAC,WAAW,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;QAExC,MAAM,MAAM,GAAG,IAAI,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;QAC9C,IAAI,QAAQ,EAAE;YAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC;SAAE;QAEhE,oEAAoE;QACpE,WAAW,CAAC,CAAC,CAAC,SAAS,IAAI,GAAG,IAAI,GAAG,CAAC,OAAO,KAAK,MAAM,CAAC,OAAO,CAAC,EAAE,kBAAkB,CAAC,CAAC;QACvF,WAAW,CAAC,CAAC,CAAC,aAAa,IAAI,GAAG,IAAI,GAAG,CAAC,WAAW,KAAK,MAAM,CAAC,WAAW,CAAC,EAAE,sBAAsB,CAAC,CAAC;QAEvG,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ"} \ No newline at end of file diff --git a/lib.esm/crypto/signing-key.js b/lib.esm/crypto/signing-key.js index d823cd7a8..bdd2773bf 100644 --- a/lib.esm/crypto/signing-key.js +++ b/lib.esm/crypto/signing-key.js @@ -1,5 +1,5 @@ import * as secp256k1 from "@noble/secp256k1"; -import { concat, dataLength, getBytes, getBytesCopy, hexlify, toHex, assertArgument, throwArgumentError } from "../utils/index.js"; +import { concat, dataLength, getBytes, getBytesCopy, hexlify, toHex, assertArgument } from "../utils/index.js"; import { computeHmac } from "./hmac.js"; import { Signature } from "./signature.js"; //const N = BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"); @@ -61,7 +61,7 @@ export class SigningKey { if (pubKey != null) { return hexlify(pubKey); } - return throwArgumentError("invalid signautre for digest", "signature", signature); + assertArgument(false, "invalid signautre for digest", "signature", signature); } static _addPoints(p0, p1, compressed) { const pub0 = secp256k1.Point.fromHex(SigningKey.computePublicKey(p0).substring(2)); diff --git a/lib.esm/crypto/signing-key.js.map b/lib.esm/crypto/signing-key.js.map index f0458f2b8..c178b6729 100644 --- a/lib.esm/crypto/signing-key.js.map +++ b/lib.esm/crypto/signing-key.js.map @@ -1 +1 @@ -{"version":3,"file":"signing-key.js","sourceRoot":"","sources":["../../src.ts/crypto/signing-key.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,SAAS,MAAM,kBAAkB,CAAC;AAE9C,OAAO,EACH,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,KAAK,EAC1D,cAAc,EAAE,kBAAkB,EACrC,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAO3C,yFAAyF;AAEzF,4BAA4B;AAC5B,SAAS,CAAC,KAAK,CAAC,cAAc,GAAG,UAAS,GAAe,EAAE,GAAG,QAA2B;IACrF,OAAO,QAAQ,CAAC,WAAW,CAAC,QAAQ,EAAE,GAAG,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;AAClE,CAAC,CAAA;AAED,MAAM,OAAO,UAAU;IACnB,WAAW,CAAS;IAEpB,YAAY,UAAqB;QAC7B;;;;;UAKE;QACF,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;IAC3C,CAAC;IAED,IAAI,UAAU,KAAa,OAAO,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;IACrD,IAAI,SAAS,KAAa,OAAO,UAAU,CAAC,gBAAgB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;IACjF,IAAI,mBAAmB,KAAa,OAAO,UAAU,CAAC,gBAAgB,CAAC,IAA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C,CAAC,CAAC,aAAa,EAAE,CAAC;QAEpG,MAAM,MAAM,GAAG,SAAS,CAAC,gBAAgB,CAAC,YAAY,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;QAClF,IAAI,MAAM,IAAI,IAAI,EAAE;YAAE,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC;SAAE;QAE/C,cAAc,CAAC,KAAK,EAAE,8BAA8B,EAAE,WAAW,EAAE,SAAS,CAAC,CAAC;IAClF,CAAC;IAED,MAAM,CAAC,UAAU,CAAC,EAAa,EAAE,EAAa,EAAE,UAAoB;QAChE,MAAM,IAAI,GAAG,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,gBAAgB,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;QACnF,MAAM,IAAI,GAAG,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,gBAAgB,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;QACnF,OAAO,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,UAAU,CAAC,CAAA;IACpD,CAAC;CACJ;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgCE"} \ No newline at end of file diff --git a/lib.esm/ethers.js b/lib.esm/ethers.js index 128a809ad..60346fded 100644 --- a/lib.esm/ethers.js +++ b/lib.esm/ethers.js @@ -7,11 +7,11 @@ export { ZeroAddress, NegativeOne, Zero, One, Two, WeiPerEther, MaxUint256, MinI export { BaseContract, Contract, ContractFactory, ContractEventPayload, ContractTransactionReceipt, ContractTransactionResponse, EventLog, } from "./contract/index.js"; export { computeHmac, randomBytes, keccak256, ripemd160, sha256, sha512, pbkdf2, scrypt, scryptSync, lock, Signature, SigningKey } from "./crypto/index.js"; export { id, isValidName, namehash, dnsEncode, hashMessage, solidityPacked, solidityPackedKeccak256, solidityPackedSha256, TypedDataEncoder } from "./hash/index.js"; -export { AbstractProvider, FallbackProvider, JsonRpcApiProvider, JsonRpcProvider, JsonRpcSigner, BrowserProvider, AlchemyProvider, AnkrProvider, CloudflareProvider, EtherscanProvider, InfuraProvider, +export { Block, FeeData, Log, TransactionReceipt, TransactionResponse, AbstractProvider, FallbackProvider, JsonRpcApiProvider, JsonRpcProvider, JsonRpcSigner, BrowserProvider, AlchemyProvider, AnkrProvider, CloudflareProvider, EtherscanProvider, InfuraProvider, //PocketProvider } from "./provider-pocket.js"; IpcSocketProvider, SocketProvider, WebSocketProvider, Network } from "./providers/index.js"; export { accessListify, computeAddress, recoverAddress, Transaction } from "./transaction/index.js"; -export { decodeBase58, encodeBase58, decodeBase64, encodeBase64, concat, dataLength, dataSlice, getBytes, getBytesCopy, hexlify, isHexString, isBytesLike, stripZerosLeft, zeroPadBytes, zeroPadValue, assertArgument, assertArgumentCount, assertNormalize, assertPrivate, makeError, throwArgumentError, throwError, isCallException, isError, getIpfsGatewayFunc, FetchRequest, FetchResponse, FetchCancelSignal, FixedFormat, FixedNumber, formatFixed, parseFixed, getBigInt, getNumber, toArray, toBigInt, toHex, toNumber, toQuantity, fromTwos, toTwos, mask, formatEther, parseEther, formatUnits, parseUnits, _toEscapedUtf8String, toUtf8Bytes, toUtf8CodePoints, toUtf8String, Utf8ErrorFuncs, decodeRlp, encodeRlp } from "./utils/index.js"; +export { decodeBase58, encodeBase58, decodeBase64, encodeBase64, concat, dataLength, dataSlice, getBytes, getBytesCopy, hexlify, isHexString, isBytesLike, stripZerosLeft, zeroPadBytes, zeroPadValue, assert, assertArgument, assertArgumentCount, assertNormalize, assertPrivate, makeError, isCallException, isError, getIpfsGatewayFunc, FetchRequest, FetchResponse, FetchCancelSignal, FixedFormat, FixedNumber, formatFixed, parseFixed, getBigInt, getNumber, toArray, toBigInt, toHex, toNumber, toQuantity, fromTwos, toTwos, mask, formatEther, parseEther, formatUnits, parseUnits, toUtf8Bytes, toUtf8CodePoints, toUtf8String, Utf8ErrorFuncs, decodeRlp, encodeRlp } from "./utils/index.js"; export { defaultPath, getAccountPath, HDNodeWallet, HDNodeVoidWallet, HDNodeWalletManager, isCrowdsaleJson, decryptCrowdsaleJson, isKeystoreJson, decryptKeystoreJsonSync, decryptKeystoreJson, encryptKeystoreJson, Mnemonic, Wallet } from "./wallet/index.js"; export { Wordlist, langEn, LangEn, wordlists, WordlistOwl, WordlistOwlA } from "./wordlists/index.js"; //# sourceMappingURL=ethers.js.map \ No newline at end of file diff --git a/lib.esm/ethers.js.map b/lib.esm/ethers.js.map index cf3ac2522..11ec35936 100644 --- a/lib.esm/ethers.js.map +++ b/lib.esm/ethers.js.map @@ -1 +1 @@ -{"version":3,"file":"ethers.js","sourceRoot":"","sources":["../src.ts/ethers.ts"],"names":[],"mappings":"AAEA,6BAA6B;AAC7B,EAAE;AAEF,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC,OAAO,EACH,mBAAmB,EAAE,mBAAmB,EAExC,QAAQ,EAAE,eAAe,EACzB,mBAAmB,EAAE,aAAa,EAAE,aAAa,EAAE,QAAQ,EAAE,gBAAgB,EAAE,SAAS,EAExF,iBAAiB,EAAE,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,EAAE,sBAAsB,EACrF,KAAK,GACR,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACH,UAAU,EAAE,cAAc,EAC1B,gBAAgB,EAAE,iBAAiB,EACtC,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACH,WAAW,EACX,WAAW,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC,EAC7E,QAAQ,EACR,WAAW,EAAE,aAAa,EAC7B,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACH,YAAY,EAAE,QAAQ,EACtB,eAAe,EACf,oBAAoB,EAAE,0BAA0B,EAAE,2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ACjD,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,UAAU,EACpE,QAAQ,EAAE,MAAM,EAAE,IAAI,EACtB,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,EAChD,WAAW,EAAE,gBAAgB,EAAE,YAAY,EAC3C,cAAc,EACd,SAAS,EAAE,SAAS,EACvB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EACH,WAAW,EACX,cAAc,EACd,YAAY,EAAE,gBAAgB,EAAE,mBAAmB,EACnD,eAAe,EAAE,oBAAoB,EACrC,cAAc,EAAE,uBAAuB,EAAE,mBAAmB,EAC5D,mBAAmB,EACnB,QAAQ,EACR,MAAM,EACT,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACH,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,EACjE,MAAM,sBAAsB,CAAC"} \ No newline at end of file diff --git a/lib.esm/hash/namehash.js b/lib.esm/hash/namehash.js index f34157654..b21527985 100644 --- a/lib.esm/hash/namehash.js +++ b/lib.esm/hash/namehash.js @@ -1,5 +1,5 @@ import { keccak256 } from "../crypto/index.js"; -import { concat, hexlify, throwArgumentError, toUtf8Bytes, toUtf8String } from "../utils/index.js"; +import { concat, hexlify, assertArgument, toUtf8Bytes, toUtf8String } from "../utils/index.js"; //import { ens_normalize } from "./ens-normalize/lib"; // @TOOD: function ens_normalize(name) { @@ -47,9 +47,7 @@ export function isValidName(name) { } export function namehash(name) { /* istanbul ignore if */ - if (typeof (name) !== "string") { - throwArgumentError("invalid ENS name; not a string", "name", name); - } + assertArgument(typeof (name) === "string", "invalid ENS name; not a string", "name", name); let result = Zeros; const comps = ensNameSplit(name); while (comps.length) { diff --git a/lib.esm/hash/namehash.js.map b/lib.esm/hash/namehash.js.map index 51675980d..59c813384 100644 --- a/lib.esm/hash/namehash.js.map +++ b/lib.esm/hash/namehash.js.map @@ -1 +1 @@ -{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EAAE,IAAI,CAAC,CAAC;IAE1F,IAAI,MAAM,GAAwB,KAAK,CAAC;IAExC,MAAM,KAAK,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;IACjC,OAAO,KAAK,CAAC,MAAM,EAAE;QACjB,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC,CAAE,MAAM,EAAE,SAAS,CAAa,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,CAAE,CAAC,CAAC;KAChF;IAED,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC;AAC3B,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,IAAY;IAClC,OAAO,OAAO,CAAC,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QAClD,wDAAwD;QACxD,IAAI,IAAI,CAAC,MAAM,GAAG,EAAE,EAAE;YAClB,MAAM,IAAI,KAAK,CAAC,oDAAoD,CAAC,CAAC;SACzE;QAED,MAAM,KAAK,GAAG,IAAI,UAAU,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QAC9C,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;QACnB,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;QAC5B,OAAO,KAAK,CAAC;IAEjB,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;AAChB,CAAC"} \ No newline at end of file diff --git a/lib.esm/hash/solidity.js b/lib.esm/hash/solidity.js index 557345306..aa85c0b1c 100644 --- a/lib.esm/hash/solidity.js +++ b/lib.esm/hash/solidity.js @@ -1,5 +1,5 @@ import { keccak256 as _keccak256, sha256 as _sha256 } from "../crypto/index.js"; -import { concat, dataLength, getBytes, hexlify, toArray, toTwos, toUtf8Bytes, zeroPadBytes, zeroPadValue, throwArgumentError } from "../utils/index.js"; +import { concat, dataLength, getBytes, hexlify, toArray, toTwos, toUtf8Bytes, zeroPadBytes, zeroPadValue, assertArgument } from "../utils/index.js"; const regexBytes = new RegExp("^bytes([0-9]+)$"); const regexNumber = new RegExp("^(u?int)([0-9]*)$"); const regexArray = new RegExp("^(.*)\\[([0-9]*)\\]$"); @@ -24,9 +24,7 @@ function _pack(type, value, isArray) { let match = type.match(regexNumber); if (match) { let size = parseInt(match[2] || "256"); - if ((match[2] && String(size) !== match[2]) || (size % 8 !== 0) || size === 0 || size > 256) { - return throwArgumentError("invalid number type", "type", type); - } + assertArgument((!match[2] || match[2] === String(size)) && (size % 8 === 0) && size !== 0 && size <= 256, "invalid number type", "type", type); if (isArray) { size = 256; } @@ -36,12 +34,8 @@ function _pack(type, value, isArray) { match = type.match(regexBytes); if (match) { const size = parseInt(match[1]); - if (String(size) !== match[1] || size === 0 || size > 32) { - return throwArgumentError("invalid bytes type", "type", type); - } - if (dataLength(value) !== size) { - return throwArgumentError(`invalid value for ${type}`, "value", value); - } + assertArgument(String(size) === match[1] && size !== 0 && size <= 32, "invalid bytes type", "type", type); + assertArgument(dataLength(value) === size, `invalid value for ${type}`, "value", value); if (isArray) { return getBytes(zeroPadBytes(value, 32)); } @@ -51,22 +45,18 @@ function _pack(type, value, isArray) { if (match && Array.isArray(value)) { const baseType = match[1]; const count = parseInt(match[2] || String(value.length)); - if (count != value.length) { - throwArgumentError(`invalid array length for ${type}`, "value", value); - } + assertArgument(count === value.length, `invalid array length for ${type}`, "value", value); const result = []; value.forEach(function (value) { result.push(_pack(baseType, value, true)); }); return getBytes(concat(result)); } - return throwArgumentError("invalid type", "type", type); + assertArgument(false, "invalid type", "type", type); } // @TODO: Array Enum export function solidityPacked(types, values) { - if (types.length != values.length) { - throwArgumentError("wrong number of values; expected ${ types.length }", "values", values); - } + assertArgument(types.length === values.length, "wrong number of values; expected ${ types.length }", "values", values); const tight = []; types.forEach(function (type, index) { tight.push(_pack(type, values[index])); diff --git a/lib.esm/hash/solidity.js.map b/lib.esm/hash/solidity.js.map index 3b359d5f3..f86d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AAK,MAAM,CAAC,MAAM,EAAE,oDAAoD,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;IAEvH,MAAM,KAAK,GAAsB,EAAE,CAAC;IACpC,KAAK,CAAC,OAAO,CAAC,UAAS,IAAI,EAAE,KAAK;QAC9B,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAC3C,CAAC,CAAC,CAAC;IACH,OAAO,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;AAClC,CAAC;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,uBAAuB,CAAC,KAA4B,EAAE,MAA0B;IAC5F,OAAO,UAAU,CAAC,cAAc,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC;AACrD,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAC,KAA4B,EAAE,MAA0B;IACzF,OAAO,OAAO,CAAC,cAAc,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC;AAClD,CAAC"} \ No newline at end of file diff --git a/lib.esm/hash/typed-data.js b/lib.esm/hash/typed-data.js index d69a2fc4b..73748a8a6 100644 --- a/lib.esm/hash/typed-data.js +++ b/lib.esm/hash/typed-data.js @@ -1,7 +1,7 @@ //import { TypedDataDomain, TypedDataField } from "@ethersproject/providerabstract-signer"; import { getAddress } from "../address/index.js"; import { keccak256 } from "../crypto/index.js"; -import { concat, defineProperties, getBigInt, getBytes, hexlify, isHexString, mask, toHex, toTwos, zeroPadValue, throwArgumentError } from "../utils/index.js"; +import { concat, defineProperties, getBigInt, getBytes, hexlify, isHexString, mask, toHex, toTwos, zeroPadValue, assertArgument } from "../utils/index.js"; import { id } from "./id.js"; const padding = new Uint8Array(32); padding.fill(0); @@ -33,9 +33,7 @@ const domainFieldNames = [ ]; function checkString(key) { return function (value) { - if (typeof (value) !== "string") { - throwArgumentError(`invalid domain value for ${JSON.stringify(key)}`, `domain.${key}`, value); - } + assertArgument(typeof (value) === "string", `invalid domain value for ${JSON.stringify(key)}`, `domain.${key}`, value); return value; }; } @@ -50,13 +48,11 @@ const domainChecks = { return getAddress(value).toLowerCase(); } catch (error) { } - return throwArgumentError(`invalid domain value "verifyingContract"`, "domain.verifyingContract", value); + assertArgument(false, `invalid domain value "verifyingContract"`, "domain.verifyingContract", value); }, salt: function (value) { const bytes = getBytes(value, "domain.salt"); - if (bytes.length !== 32) { - throwArgumentError(`invalid domain value "salt"`, "domain.salt", value); - } + assertArgument(bytes.length === 32, `invalid domain value "salt"`, "domain.salt", value); return hexlify(bytes); } }; @@ -67,16 +63,12 @@ function getBaseEncoder(type) { if (match) { const signed = (match[1] === ""); const width = parseInt(match[2] || "256"); - if (width % 8 !== 0 || width > 256 || (match[2] && match[2] !== String(width))) { - throwArgumentError("invalid numeric width", "type", type); - } + assertArgument(width % 8 === 0 && width !== 0 && width <= 256 && (match[2] == null || match[2] === String(width)), "invalid numeric width", "type", type); const boundsUpper = mask(BN_MAX_UINT256, signed ? (width - 1) : width); const boundsLower = signed ? ((boundsUpper + BN_1) * BN__1) : BN_0; return function (_value) { const value = getBigInt(_value, "value"); - if (value < boundsLower || value > boundsUpper) { - throwArgumentError(`value out-of-bounds for ${type}`, "value", value); - } + assertArgument(value >= boundsLower && value <= boundsUpper, `value out-of-bounds for ${type}`, "value", value); return toHex(toTwos(value, 256), 32); }; } @@ -86,14 +78,10 @@ function getBaseEncoder(type) { const match = type.match(/^bytes(\d+)$/); if (match) { const width = parseInt(match[1]); - if (width === 0 || width > 32 || match[1] !== String(width)) { - throwArgumentError("invalid bytes width", "type", type); - } + assertArgument(width !== 0 && width <= 32 && match[1] === String(width), "invalid bytes width", "type", type); return function (value) { const bytes = getBytes(value); - if (bytes.length !== width) { - throwArgumentError(`invalid length for ${type}`, "value", value); - } + assertArgument(bytes.length === width, `invalid length for ${type}`, "value", value); return hexPadRight(value); }; } @@ -144,23 +132,17 @@ export class TypedDataEncoder { const uniqueNames = new Set(); for (const field of types[name]) { // Check each field has a unique name - if (uniqueNames.has(field.name)) { - throwArgumentError(`duplicate variable name ${JSON.stringify(field.name)} in ${JSON.stringify(name)}`, "types", types); - } + assertArgument(!uniqueNames.has(field.name), `duplicate variable name ${JSON.stringify(field.name)} in ${JSON.stringify(name)}`, "types", types); uniqueNames.add(field.name); // Get the base type (drop any array specifiers) const baseType = (field.type.match(/^([^\x5b]*)(\x5b|$)/))[1] || null; - if (baseType === name) { - throwArgumentError(`circular type reference to ${JSON.stringify(baseType)}`, "types", types); - } + assertArgument(baseType !== name, `circular type reference to ${JSON.stringify(baseType)}`, "types", types); // Is this a base encoding type? const encoder = getBaseEncoder(baseType); if (encoder) { continue; } - if (!parents.has(baseType)) { - throwArgumentError(`unknown type ${JSON.stringify(baseType)}`, "types", types); - } + assertArgument(parents.has(baseType), `unknown type ${JSON.stringify(baseType)}`, "types", types); // Add linkage parents.get(baseType).push(name); links.get(name).add(baseType); @@ -168,18 +150,12 @@ export class TypedDataEncoder { } // Deduce the primary type const primaryTypes = Array.from(parents.keys()).filter((n) => (parents.get(n).length === 0)); - if (primaryTypes.length === 0) { - throwArgumentError("missing primary type", "types", types); - } - else if (primaryTypes.length > 1) { - throwArgumentError(`ambiguous primary types or unused types: ${primaryTypes.map((t) => (JSON.stringify(t))).join(", ")}`, "types", types); - } + assertArgument(primaryTypes.length !== 0, "missing primary type", "types", types); + assertArgument(primaryTypes.length === 1, `ambiguous primary types or unused types: ${primaryTypes.map((t) => (JSON.stringify(t))).join(", ")}`, "types", types); defineProperties(this, { primaryType: primaryTypes[0] }); // Check for circular type references function checkCircular(type, found) { - if (found.has(type)) { - throwArgumentError(`circular type reference to ${JSON.stringify(type)}`, "types", types); - } + assertArgument(!found.has(type), `circular type reference to ${JSON.stringify(type)}`, "types", types); found.add(type); for (const child of links.get(type)) { if (!parents.has(child)) { @@ -223,11 +199,8 @@ export class TypedDataEncoder { if (match) { const subtype = match[1]; const subEncoder = this.getEncoder(subtype); - const length = parseInt(match[3]); return (value) => { - if (length >= 0 && value.length !== length) { - throwArgumentError("array length mismatch; expected length ${ arrayLength }", "value", value); - } + assertArgument(!match[3] || parseInt(match[3]) === value.length, `array length mismatch; expected length ${parseInt(match[3])}`, "value", value); let result = value.map(subEncoder); if (this.#fullTypes.has(subtype)) { result = result.map(keccak256); @@ -251,13 +224,11 @@ export class TypedDataEncoder { return concat(values); }; } - return throwArgumentError(`unknown type: ${type}`, "type", type); + assertArgument(false, `unknown type: ${type}`, "type", type); } encodeType(name) { const result = this.#fullTypes.get(name); - if (!result) { - return throwArgumentError(`unknown type: ${JSON.stringify(name)}`, "name", name); - } + assertArgument(result, `unknown type: ${JSON.stringify(name)}`, "name", name); return result; } encodeData(type, value) { @@ -283,12 +254,8 @@ export class TypedDataEncoder { // Array const match = type.match(/^(.*)(\x5b(\d*)\x5d)$/); if (match) { - const subtype = match[1]; - const length = parseInt(match[3]); - if (length >= 0 && value.length !== length) { - throwArgumentError("array length mismatch; expected length ${ arrayLength }", "value", value); - } - return value.map((v) => this._visit(subtype, v, callback)); + assertArgument(!match[3] || parseInt(match[3]) === value.length, `array length mismatch; expected length ${parseInt(match[3])}`, "value", value); + return value.map((v) => this._visit(match[1], v, callback)); } // Struct const fields = this.types[type]; @@ -298,7 +265,7 @@ export class TypedDataEncoder { return accum; }, {}); } - return throwArgumentError(`unknown type: ${type}`, "type", type); + assertArgument(false, `unknown type: ${type}`, "type", type); } visit(value, callback) { return this._visit(this.primaryType, value, callback); @@ -316,9 +283,7 @@ export class TypedDataEncoder { const domainFields = []; for (const name in domain) { const type = domainFieldTypes[name]; - if (!type) { - throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(name)}`, "domain", domain); - } + assertArgument(type, `invalid typed-data domain key: ${JSON.stringify(name)}`, "domain", domain); domainFields.push({ name, type }); } domainFields.sort((a, b) => { @@ -388,12 +353,8 @@ export class TypedDataEncoder { }); const encoder = TypedDataEncoder.from(types); const typesWithDomain = Object.assign({}, types); - if (typesWithDomain.EIP712Domain) { - throwArgumentError("types must not contain EIP712Domain type", "types.EIP712Domain", types); - } - else { - typesWithDomain.EIP712Domain = domainTypes; - } + assertArgument(typesWithDomain.EIP712Domain == null, "types must not contain EIP712Domain type", "types.EIP712Domain", types); + typesWithDomain.EIP712Domain = domainTypes; // Validate the data structures and types encoder.encode(value); return { @@ -415,12 +376,10 @@ export class TypedDataEncoder { case "bool": return !!value; case "string": - if (typeof (value) !== "string") { - throwArgumentError(`invalid string`, "value", value); - } + assertArgument(typeof (value) === "string", "invalid string", "value", value); return value; } - return throwArgumentError("unsupported type", "type", type); + assertArgument(false, "unsupported type", "type", type); }) }; } diff --git a/lib.esm/hash/typed-data.js.map b/lib.esm/hash/typed-data.js.map index 40fe87fad..d6a99b43c 100644 --- a/lib.esm/hash/typed-data.js.map +++ b/lib.esm/hash/typed-data.js.map @@ -1 +1 @@ -{"version":3,"file":"typed-data.js","sourceRoot":"","sources":["../../src.ts/hash/typed-data.ts"],"names":[],"mappings":"AAAA,2FAA2F;AAC3F,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EACH,MAAM,EAAE,gBAAgB,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,EACtG,kBAAkB,EACrB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAC;AAK7B,MAAM,OAAO,GAAG,IAAI,UAAU,CAAC,EAAE,CAAC,CAAC;AACnC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAEhB,MAAM,KAAK,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;AACzB,MAAM,IAAI,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AACvB,MAAM,IAAI,GAAG,MAAM,CAAC,CAAC,CAAC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AAC;SACL,CAAC;IACN,CAAC;CACJ"} \ No newline at end of file diff --git a/lib.esm/providers/abstract-provider.js b/lib.esm/providers/abstract-provider.js index a05d53f0c..dc855c94c 100644 --- a/lib.esm/providers/abstract-provider.js +++ b/lib.esm/providers/abstract-provider.js @@ -7,7 +7,7 @@ // of Signer/ENS name to address so we can sync respond to listenerCount. import { resolveAddress } from "../address/index.js"; import { Transaction } from "../transaction/index.js"; -import { concat, dataLength, dataSlice, hexlify, isHexString, getBigInt, getBytes, getNumber, isCallException, makeError, throwError, throwArgumentError, FetchRequest, toArray, toQuantity, defineProperties, EventPayload, resolveProperties, toUtf8String } from "../utils/index.js"; +import { concat, dataLength, dataSlice, hexlify, isHexString, getBigInt, getBytes, getNumber, isCallException, makeError, assert, assertArgument, FetchRequest, toArray, toQuantity, defineProperties, EventPayload, resolveProperties, toUtf8String } from "../utils/index.js"; import { EnsResolver } from "./ens-resolver.js"; import { formatBlock, formatBlockWithTransactions, formatLog, formatTransactionReceipt, formatTransactionResponse } from "./format.js"; import { Network } from "./network.js"; @@ -21,6 +21,9 @@ function isPromise(value) { } function getTag(prefix, value) { return prefix + ":" + JSON.stringify(value, (k, v) => { + if (v == null) { + return "null"; + } if (typeof (v) === "bigint") { return `bigint:${v.toString()}`; } @@ -121,7 +124,7 @@ async function getSubscription(_event, provider) { } return { filter, tag: getTag("event", filter), type: "event" }; } - return throwArgumentError("unknown ProviderEvent", "event", _event); + assertArgument(false, "unknown ProviderEvent", "event", _event); } function getTime() { return (new Date()).getTime(); } export class AbstractProvider { @@ -171,7 +174,7 @@ export class AbstractProvider { if (this.#plugins.get(plugin.name)) { throw new Error(`cannot replace existing plugin: ${plugin.name} `); } - this.#plugins.set(plugin.name, plugin.validate(this)); + this.#plugins.set(plugin.name, plugin.connect(this)); return this; } getPlugin(name) { @@ -216,29 +219,27 @@ export class AbstractProvider { if (url.indexOf("{data}") === -1) { request.body = { data, sender }; } + this.emit("debug", { action: "sendCcipReadFetchRequest", request, index: i, urls }); let errorMessage = "unknown error"; const resp = await request.send(); try { const result = resp.bodyJson; if (result.data) { + this.emit("debug", { action: "receiveCcipReadFetchResult", request, result }); return result.data; } if (result.message) { errorMessage = result.message; } + this.emit("debug", { action: "receiveCcipReadFetchError", request, result }); } catch (error) { } // 4xx indicates the result is not present; stop - if (resp.statusCode >= 400 && resp.statusCode < 500) { - return throwError(`response not found during CCIP fetch: ${errorMessage}`, "OFFCHAIN_FAULT", { - reason: "404_MISSING_RESOURCE", - transaction: tx, info: { url, errorMessage } - }); - } + assert(resp.statusCode < 400 || resp.statusCode >= 500, `response not found during CCIP fetch: ${errorMessage}`, "OFFCHAIN_FAULT", { reason: "404_MISSING_RESOURCE", transaction: tx, info: { url, errorMessage } }); // 5xx indicates server issue; try the next url errorMessages.push(errorMessage); } - return throwError(`error encountered during CCIP fetch: ${errorMessages.map((m) => JSON.stringify(m)).join(", ")}`, "OFFCHAIN_FAULT", { + assert(false, `error encountered during CCIP fetch: ${errorMessages.map((m) => JSON.stringify(m)).join(", ")}`, "OFFCHAIN_FAULT", { reason: "500_SERVER_ERROR", transaction: tx, info: { urls, errorMessages } }); @@ -259,14 +260,14 @@ export class AbstractProvider { return new TransactionResponse(tx, this); } _detectNetwork() { - return throwError("sub-classes must implement this", "UNSUPPORTED_OPERATION", { + assert(false, "sub-classes must implement this", "UNSUPPORTED_OPERATION", { operation: "_detectNetwork" }); } // Sub-classes should override this and handle PerformActionRequest requests, calling // the super for any unhandled actions. async _perform(req) { - return throwError(`unsupported method: ${req.method}`, "UNSUPPORTED_OPERATION", { + assert(false, `unsupported method: ${req.method}`, "UNSUPPORTED_OPERATION", { operation: req.method, info: req }); @@ -296,7 +297,7 @@ export class AbstractProvider { return blockTag; } if (isHexString(blockTag)) { - if (dataLength(blockTag) === 32) { + if (isHexString(blockTag, 32)) { return blockTag; } return toQuantity(blockTag); @@ -310,7 +311,7 @@ export class AbstractProvider { } return this.getBlockNumber().then((b) => toQuantity(b + blockTag)); } - return throwArgumentError("invalid blockTag", "blockTag", blockTag); + assertArgument(false, "invalid blockTag", "blockTag", blockTag); } _getFilter(filter) { // Create a canonical representation of the topics @@ -452,7 +453,7 @@ export class AbstractProvider { } else { // Otherwise, we do not allow changes to the underlying network - throwError(`network changed: ${expected.chainId} => ${actual.chainId} `, "NETWORK_ERROR", { + assert(false, `network changed: ${expected.chainId} => ${actual.chainId} `, "NETWORK_ERROR", { event: "changed" }); } @@ -496,12 +497,10 @@ export class AbstractProvider { }), "%response"); } async #call(tx, blockTag, attempt) { - if (attempt >= MAX_CCIP_REDIRECTS) { - throwError("CCIP read exceeded maximum redirections", "OFFCHAIN_FAULT", { - reason: "TOO_MANY_REDIRECTS", - transaction: Object.assign({}, tx, { blockTag, enableCcipRead: true }) - }); - } + assert(attempt < MAX_CCIP_REDIRECTS, "CCIP read exceeded maximum redirections", "OFFCHAIN_FAULT", { + reason: "TOO_MANY_REDIRECTS", + transaction: Object.assign({}, tx, { blockTag, enableCcipRead: true }) + }); // This came in as a PerformActionTransaction, so to/from are safe; we can cast const transaction = copyRequest(tx); try { @@ -518,39 +517,41 @@ export class AbstractProvider { ccipArgs = parseOffchainLookup(dataSlice(error.data, 4)); } catch (error) { - return throwError(error.message, "OFFCHAIN_FAULT", { - reason: "BAD_DATA", - transaction, info: { data } + assert(false, error.message, "OFFCHAIN_FAULT", { + reason: "BAD_DATA", transaction, info: { data } }); } // Check the sender of the OffchainLookup matches the transaction - if (ccipArgs.sender.toLowerCase() !== txSender.toLowerCase()) { - return throwError("CCIP Read sender mismatch", "CALL_EXCEPTION", { - action: "call", - data, - reason: "OffchainLookup", - transaction: transaction, - invocation: null, - revert: { - signature: "OffchainLookup(address,string[],bytes,bytes4,bytes)", - name: "OffchainLookup", - args: ccipArgs.errorArgs - } - }); - } + assert(ccipArgs.sender.toLowerCase() === txSender.toLowerCase(), "CCIP Read sender mismatch", "CALL_EXCEPTION", { + action: "call", + data, + reason: "OffchainLookup", + transaction: transaction, + invocation: null, + revert: { + signature: "OffchainLookup(address,string[],bytes,bytes4,bytes)", + name: "OffchainLookup", + args: ccipArgs.errorArgs + } + }); const ccipResult = await this.ccipReadFetch(transaction, ccipArgs.calldata, ccipArgs.urls); - if (ccipResult == null) { - return throwError("CCIP Read failed to fetch data", "OFFCHAIN_FAULT", { - reason: "FETCH_FAILED", - transaction, info: { data: error.data, errorArgs: ccipArgs.errorArgs } - }); - } - return this.#call({ + assert(ccipResult != null, "CCIP Read failed to fetch data", "OFFCHAIN_FAULT", { + reason: "FETCH_FAILED", transaction, info: { data: error.data, errorArgs: ccipArgs.errorArgs } + }); + const tx = { to: txSender, - data: concat([ - ccipArgs.selector, encodeBytes([ccipResult, ccipArgs.extraData]) - ]), - }, blockTag, attempt + 1); + data: concat([ccipArgs.selector, encodeBytes([ccipResult, ccipArgs.extraData])]) + }; + this.emit("debug", { action: "sendCcipReadCall", transaction: tx }); + try { + const result = await this.#call(tx, blockTag, attempt + 1); + this.emit("debug", { action: "receiveCcipReadCallResult", transaction: Object.assign({}, tx), result }); + return result; + } + catch (error) { + this.emit("debug", { action: "receiveCcipReadCallError", transaction: Object.assign({}, tx), error }); + throw error; + } } throw error; } @@ -696,7 +697,7 @@ export class AbstractProvider { } // ENS _getProvider(chainId) { - return throwError("provider cannot connect to target network", "UNSUPPORTED_OPERATION", { + assert(false, "provider cannot connect to target network", "UNSUPPORTED_OPERATION", { operation: "_getProvider()" }); } @@ -734,7 +735,8 @@ export class AbstractProvider { throw new Error(); //return "TODO"; } - async waitForTransaction(hash, confirms = 1, timeout) { + async waitForTransaction(hash, _confirms, timeout) { + const confirms = (_confirms != null) ? _confirms : 1; if (confirms === 0) { return this.getTransactionReceipt(hash); } @@ -746,7 +748,7 @@ export class AbstractProvider { if (receipt != null) { if (blockNumber - receipt.blockNumber + 1 >= confirms) { resolve(receipt); - this.off("block", listener); + //this.off("block", listener); if (timer) { clearTimeout(timer); timer = null; @@ -904,6 +906,12 @@ export class AbstractProvider { catch (error) { } return !once; }); + if (sub.listeners.length === 0) { + if (sub.started) { + sub.subscriber.stop(); + } + this.#subs.delete(sub.tag); + } return (count > 0); } async listenerCount(event) { @@ -1007,7 +1015,7 @@ export class AbstractProvider { if (this.#pausedState == !!dropWhilePaused) { return; } - return throwError("cannot change pause type; resume first", "UNSUPPORTED_OPERATION", { + assert(false, "cannot change pause type; resume first", "UNSUPPORTED_OPERATION", { operation: "pause" }); } diff --git a/lib.esm/providers/abstract-provider.js.map b/lib.esm/providers/abstract-provider.js.map index e53368a64..dbc6f3bb9 100644 --- a/lib.esm/providers/abstract-provider.js.map +++ b/lib.esm/providers/abstract-provider.js.map @@ -1 +1 @@ -{"version":3,"file":"abstract-provider.js","sourceRoot":"","sources":["../../src.ts/providers/abstract-provider.ts"],"names":[],"mappings":"AAAA,QAAQ;AACR,oBAAoB;AACpB,4EAA4E;AAC5E,4EAA4E;AAC5E,6EAA6E;AAC7E,6EAA6E;AAC7E,2EAA2E;AAE3E,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EACH,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,WAAW,EACnD,SAAS,EAAE,QAAQ,EAAE,SAAS,EAC9B,eAAe,EAAE,SAAS,EAAE,UAAU,EAAE,kBAAkB,EAC1D,YAAY,EACZ,OAAO,EAAE,UAAU,EACnB,gBAAgB,EAAE,YAAY,EAAE,iBAAiB,EACjD,YAAY,EACf,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EACH,WAAW,EAAE,2BAA2B,EAAE,SAAS,EAAE,wBAAwB,EAC7E,yBAAyB,EAC5B,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,kBAAk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AG,CAAC,CAAC;IAE3C,6DAA6D;IAC7D,IAAI;QACA,MAAM,SAAS,GAAG,WAAW,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;QACzC,IAAI,SAAS,IAAI,IAAI,EAAE;YAAE,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC;SAAE;QACpD,MAAM,CAAC,SAAS,GAAG,SAAS,CAAC;KAChC;IAAC,OAAO,KAAK,EAAE;QAAE,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;KAAE;IAExE,MAAM,CAAC,SAAS,GAAG,yCAAyC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAO,MAAO,CAAC,CAAC,CAAC,CAAC,CAAA;IAGpG,OAAO,MAAM,CAAC;AAClB,CAAC"} \ No newline at end of file +{"version":3,"file":"abstract-provider.js","sourceRoot":"","sources":["../../src.ts/providers/abstract-provider.ts"],"names":[],"mappings":"AAAA,QAAQ;AACR,oBAAoB;AACpB,4EAA4E;AAC5E,4EAA4E;AAC5E,6EAA6E;AAC7E,6EAA6E;AAC7E,2EAA2E;AAE3E,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EACH,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,WAAW,EACnD,SAAS,EAAE,QAAQ,EAAE,SAAS,EAC9B,eAAe,EAAE,SAAS,EAAE,MAAM,EAAE,cAAc,EAClD,YAAY,EACZ,OAAO,EAAE,UAAU,EACnB,gBAAgB,EAAE,YAAY,EAAE,iBAAiB,EACjD,YAAY,EACf,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EACH,WAAW,EAAE,2BAA2B,EAAE,SAAS,EAAE,wBAAwB,EAC7E,yBAAyB,EAC5B,MAAM,a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C,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,EAAE;QACvD,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAC;KAC/D;IACD,MAAM,CAAC,QAAQ,GAAG,SAAS,CAAC,IAAI,EAAE,EAAE,EAAE,GAAG,CAAC,CAAC;IAE3C,6DAA6D;IAC7D,IAAI;QACA,MAAM,SAAS,GAAG,WAAW,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;QACzC,IAAI,SAAS,IAAI,IAAI,EAAE;YAAE,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC;SAAE;QACpD,MAAM,CAAC,SAAS,GAAG,SAAS,CAAC;KAChC;IAAC,OAAO,KAAK,EAAE;QAAE,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;KAAE;IAExE,MAAM,CAAC,SAAS,GAAG,yCAAyC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAO,MAAO,CAAC,CAAC,CAAC,CAAC,CAAA;IAGpG,OAAO,MAAM,CAAC;AAClB,CAAC"} \ No newline at end of file diff --git a/lib.esm/providers/abstract-signer.js b/lib.esm/providers/abstract-signer.js index 2ce7e4189..a5154c009 100644 --- a/lib.esm/providers/abstract-signer.js +++ b/lib.esm/providers/abstract-signer.js @@ -1,5 +1,5 @@ import { Transaction } from "../transaction/index.js"; -import { defineProperties, getBigInt, resolveProperties, throwArgumentError, throwError } from "../utils/index.js"; +import { defineProperties, getBigInt, resolveProperties, assert, assertArgument } from "../utils/index.js"; export class AbstractSigner { provider; constructor(provider) { @@ -9,7 +9,7 @@ export class AbstractSigner { if (this.provider) { return this.provider; } - return throwError("missing provider", "UNSUPPORTED_OPERATION", { operation }); + assert(false, "missing provider", "UNSUPPORTED_OPERATION", { operation }); } async getNonce(blockTag) { return this.#checkProvider("getTransactionCount").getTransactionCount(await this.getAddress(), blockTag); @@ -20,9 +20,7 @@ export class AbstractSigner { let pop = Object.assign({}, tx); if (pop.to != null) { pop.to = provider.resolveName(pop.to).then((to) => { - if (to == null) { - return throwArgumentError("transaction to ENS name not configured", "tx.to", pop.to); - } + assertArgument(to != null, "transaction to ENS name not configured", "tx.to", pop.to); return to; }); } @@ -32,9 +30,7 @@ export class AbstractSigner { this.getAddress(), this.resolveName(from) ]).then(([address, from]) => { - if (!from || address.toLowerCase() !== from.toLowerCase()) { - return throwArgumentError("transaction from mismatch", "tx.from", from); - } + assertArgument(from && address.toLowerCase() === from.toLowerCase(), "transaction from mismatch", "tx.from", from); return address; }); } @@ -56,9 +52,7 @@ export class AbstractSigner { const network = await (this.provider).getNetwork(); if (pop.chainId != null) { const chainId = getBigInt(pop.chainId); - if (chainId !== network.chainId) { - throwArgumentError("transaction chainId mismatch", "tx.chainId", tx.chainId); - } + assertArgument(chainId === network.chainId, "transaction chainId mismatch", "tx.chainId", tx.chainId); } else { pop.chainId = network.chainId; @@ -66,10 +60,10 @@ export class AbstractSigner { // Do not allow mixing pre-eip-1559 and eip-1559 properties const hasEip1559 = (pop.maxFeePerGas != null || pop.maxPriorityFeePerGas != null); if (pop.gasPrice != null && (pop.type === 2 || hasEip1559)) { - throwArgumentError("eip-1559 transaction do not support gasPrice", "tx", tx); + assertArgument(false, "eip-1559 transaction do not support gasPrice", "tx", tx); } else if ((pop.type === 0 || pop.type === 1) && hasEip1559) { - throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas", "tx", tx); + assertArgument(false, "pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas", "tx", tx); } if ((pop.type === 2 || pop.type == null) && (pop.maxFeePerGas != null && pop.maxPriorityFeePerGas != null)) { // Fully-formed EIP-1559 transaction (skip getFeeData) @@ -79,11 +73,9 @@ export class AbstractSigner { // Explicit Legacy or EIP-2930 transaction // We need to get fee data to determine things const feeData = await provider.getFeeData(); - if (feeData.gasPrice == null) { - throwError("network does not support gasPrice", "UNSUPPORTED_OPERATION", { - operation: "getGasPrice" - }); - } + assert(feeData.gasPrice != null, "network does not support gasPrice", "UNSUPPORTED_OPERATION", { + operation: "getGasPrice" + }); // Populate missing gasPrice if (pop.gasPrice == null) { pop.gasPrice = feeData.gasPrice; @@ -119,11 +111,9 @@ export class AbstractSigner { else if (feeData.gasPrice != null) { // Network doesn't support EIP-1559... // ...but they are trying to use EIP-1559 properties - if (hasEip1559) { - throwError("network does not support EIP-1559", "UNSUPPORTED_OPERATION", { - operation: "populateTransaction" - }); - } + assert(hasEip1559, "network does not support EIP-1559", "UNSUPPORTED_OPERATION", { + operation: "populateTransaction" + }); // Populate missing fee data if (pop.gasPrice == null) { pop.gasPrice = feeData.gasPrice; @@ -134,7 +124,7 @@ export class AbstractSigner { } else { // getFeeData has failed us. - throwError("failed to get consistent fee data", "UNSUPPORTED_OPERATION", { + assert(false, "failed to get consistent fee data", "UNSUPPORTED_OPERATION", { operation: "signer.getFeeData" }); } @@ -182,9 +172,7 @@ export class VoidSigner extends AbstractSigner { return new VoidSigner(this.address, provider); } #throwUnsupported(suffix, operation) { - return throwError(`VoidSigner cannot sign ${suffix}`, "UNSUPPORTED_OPERATION", { - operation - }); + assert(false, `VoidSigner cannot sign ${suffix}`, "UNSUPPORTED_OPERATION", { operation }); } async signTransaction(tx) { this.#throwUnsupported("transactions", "signTransaction"); diff --git a/lib.esm/providers/abstract-signer.js.map b/lib.esm/providers/abstract-signer.js.map index 5eeac256d..36d04fb83 100644 --- a/lib.esm/providers/abstract-signer.js.map +++ b/lib.esm/providers/abstract-signer.js.map @@ -1 +1 @@ -{"version":3,"file":"abstract-signer.js","sourceRoot":"","sources":["../../src.ts/providers/abstract-signer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EACH,gBAAgB,EAAE,SAAS,EAAE,iBAAiB,EAC9C,kBAAkB,EAAE,UAAU,EACjC,MAAM,mBAAmB,CAAC;AAW3B,MAAM,OAAgB,cAAc;IACvB,QA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AO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IAC1C,CAAC;IAED,KAAK,CAAC,eAAe,CAAC,EAAsB;QACxC,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC;IAClD,CAAC;IAED,KAAK,CAAC,eAAe,CAAC,EAAsB;QACxC,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC;IAClD,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,OAA4B;QAC1C,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IACnD,CAAC;IAED,KAAK,CAAC,aAAa,CAAC,MAAuB,EAAE,KAA4C,EAAE,KAA0B;QACjH,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAClE,CAAC;CACJ"} \ No newline at end of file +{"version":3,"file":"abstract-signer.js","sourceRoot":"","sources":["../../src.ts/providers/abstract-signer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EACH,gBAAgB,EAAE,SAAS,EAAE,iBAAiB,EAC9C,MAAM,EAAE,cAAc,EACzB,MAAM,mBAAmB,CAAC;AAW3B,MAAM,OAAgB,cAAc;IACvB,QAAQ,CAAK;IAEtB,YAAY,QAAY;QACpB,gBAAgB,CAAiB,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,QAAQ,IAAI,IAAI,CAAC,EAAE,CAAC,CAAC;IAC7E,CAAC;IAKD,cAAc,CAAC,SAAiB;QAC5B,IAAI,IAAI,CAAC,QAAQ,EAAE;YAAE,OAAO,IAAI,CAAC,QAAQ,CAAC;SAAE;QAC5C,MAAM,CAAC,KAAK,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,EAAE,SAAS,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED,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a,CAAC,MAAuB,EAAE,KAA4C,EAAE,KAA0B;QACjH,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAClE,CAAC;CACJ"} \ No newline at end of file diff --git a/lib.esm/providers/ens-resolver.js b/lib.esm/providers/ens-resolver.js index dc6154fcd..a15e867ca 100644 --- a/lib.esm/providers/ens-resolver.js +++ b/lib.esm/providers/ens-resolver.js @@ -1,7 +1,7 @@ import { getAddress } from "../address/index.js"; import { ZeroAddress, ZeroHash } from "../constants/index.js"; import { dnsEncode, namehash } from "../hash/index.js"; -import { concat, dataSlice, getBytes, hexlify, zeroPadValue, defineProperties, encodeBase58, getBigInt, toArray, toNumber, toUtf8Bytes, toUtf8String, throwArgumentError, throwError, FetchRequest } from "../utils/index.js"; +import { concat, dataSlice, getBytes, hexlify, zeroPadValue, defineProperties, encodeBase58, getBigInt, toArray, toNumber, toUtf8Bytes, toUtf8String, assert, assertArgument, FetchRequest } from "../utils/index.js"; const BN_1 = BigInt(1); const Empty = new Uint8Array([]); function parseBytes(result, start) { @@ -60,9 +60,7 @@ function encodeBytes(datas) { return concat(result); } function callAddress(value) { - if (value.length !== 66 || dataSlice(value, 0, 12) !== "0x000000000000000000000000") { - throwArgumentError("invalid call address", "value", value); - } + assertArgument(value.length === 66 && dataSlice(value, 0, 12) === "0x000000000000000000000000", "invalid call address", "value", value); return getAddress("0x" + value.substring(26)); } // @TODO: This should use the fetch-data:ipfs gateway @@ -75,7 +73,7 @@ function getIpfsLink(link) { link = link.substring(7); } else { - throwArgumentError("unsupported IPFS format", "link", link); + assertArgument(false, "unsupported IPFS format", "link", link); } return `https:/\/gateway.ipfs.io/ipfs/${link}`; } @@ -86,7 +84,7 @@ export class MulticoinProviderPlugin { constructor(name) { defineProperties(this, { name }); } - validate(proivder) { + connect(proivder) { return this; } supportsCoinType(coinType) { @@ -99,7 +97,7 @@ export class MulticoinProviderPlugin { throw new Error("unsupported coin"); } } -const BasicMulticoinPluginId = "org.ethers.provider-prugins.basicmulticoin"; +const BasicMulticoinPluginId = "org.ethers.plugins.BasicMulticoinProviderPlugin"; export class BasicMulticoinProviderPlugin extends MulticoinProviderPlugin { constructor() { super(BasicMulticoinPluginId); @@ -159,12 +157,10 @@ export class EnsResolver { } try { let data = await this.provider.call(tx); - if ((getBytes(data).length % 32) === 4) { - return throwError("execution reverted during JSON-RPC call (could not parse reason; invalid data length)", "CALL_EXCEPTION", { - action: "call", data, reason: null, transaction: tx, - invocation: null, revert: null - }); - } + assert((getBytes(data).length % 32) !== 4, "execution reverted during JSON-RPC call (could not parse reason; invalid data length)", "CALL_EXCEPTION", { + action: "call", data, reason: null, transaction: tx, + invocation: null, revert: null + }); if (wrapped) { return parseBytes(data, 0); } @@ -219,7 +215,7 @@ export class EnsResolver { if (address != null) { return address; } - return throwError(`invalid coin data`, "UNSUPPORTED_OPERATION", { + assert(false, `invalid coin data`, "UNSUPPORTED_OPERATION", { operation: `getAddress(${coinType})`, info: { coinType, data } }); @@ -257,7 +253,7 @@ export class EnsResolver { if (swarm && swarm[1].length === 64) { return `bzz:/\/${swarm[1]}`; } - return throwError(`invalid or unsupported content hash data`, "UNSUPPORTED_OPERATION", { + assert(false, `invalid or unsupported content hash data`, "UNSUPPORTED_OPERATION", { operation: "getContentHash()", info: { data: hexBytes } }); @@ -414,11 +410,9 @@ export class EnsResolver { const network = await provider.getNetwork(); const ensPlugin = network.getPlugin("org.ethers.network-plugins.ens"); // No ENS... - if (!ensPlugin) { - return throwError("network does not support ENS", "UNSUPPORTED_OPERATION", { - operation: "getResolver", info: { network: network.name } - }); - } + assert(ensPlugin, "network does not support ENS", "UNSUPPORTED_OPERATION", { + operation: "getResolver", info: { network: network.name } + }); try { // keccak256("resolver(bytes32)") const addrData = await provider.call({ diff --git a/lib.esm/providers/ens-resolver.js.map b/lib.esm/providers/ens-resolver.js.map index 14d92d6cf..71b706686 100644 --- a/lib.esm/providers/ens-resolver.js.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AC,EAAE,EAAE,CAAC,EAAE;gBAAE,OAAO,IAAI,CAAC;aAAE;YACzD,OAAO,IAAI,CAAC;SAEf;QAAC,OAAO,KAAK,EAAE;YACZ,yDAAyD;YACzD,2BAA2B;YAC3B,MAAM,KAAK,CAAC;SACf;QAED,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,QAA0B,EAAE,IAAY;QAE1D,IAAI,WAAW,GAAG,IAAI,CAAC;QACvB,OAAO,IAAI,EAAE;YACT,IAAI,WAAW,KAAK,EAAE,IAAI,WAAW,KAAK,GAAG,EAAE;gBAAE,OAAO,IAAI,CAAC;aAAE;YAE/D,yDAAyD;YACzD,8BAA8B;YAC9B,IAAI,IAAI,KAAK,KAAK,IAAI,WAAW,KAAK,KAAK,EAAE;gBAAE,OAAO,IAAI,CAAC;aAAE;YAE7D,wCAAwC;YACxC,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC,YAAY,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC;YAEnE,oBAAoB;YACpB,IAAI,IAAI,IAAI,IAAI,EAAE;gBACd,MAAM,QAAQ,GAAG,IAAI,WAAW,CAAC,QAAQ,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;gBAEvD,gEAAgE;gBAChE,IAAI,WAAW,KAAK,IAAI,IAAI,CAAC,CAAC,MAAM,QAAQ,CAAC,gBAAgB,EAAE,CAAC,EAAE;oBAAE,OAAO,IAAI,CAAC;iBAAE;gBAElF,OAAO,QAAQ,CAAC;aACnB;YAED,sBAAsB;YACtB,WAAW,GAAG,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;SAC3D;IACL,CAAC;CACJ"} \ No newline at end of file diff --git a/lib.esm/providers/format.js b/lib.esm/providers/format.js index f4fe46294..10f2e8660 100644 --- a/lib.esm/providers/format.js +++ b/lib.esm/providers/format.js @@ -1,7 +1,7 @@ import { getAddress, getCreateAddress } from "../address/index.js"; import { Signature } from "../crypto/index.js"; import { accessListify } from "../transaction/index.js"; -import { getBigInt, getNumber, hexlify, isHexString, zeroPadValue, throwArgumentError, throwError } from "../utils/index.js"; +import { getBigInt, getNumber, hexlify, isHexString, zeroPadValue, assert, assertArgument } from "../utils/index.js"; const BN_0 = BigInt(0); export function allowNull(format, nullValue) { return (function (value) { @@ -43,7 +43,7 @@ export function object(format, altNames) { } catch (error) { const message = (error instanceof Error) ? error.message : "not-an-error"; - throwError(`invalid value for value.${key} (${message})`, "BAD_DATA", { value }); + assert(false, `invalid value for value.${key} (${message})`, "BAD_DATA", { value }); } } return result; @@ -58,18 +58,14 @@ export function formatBoolean(value) { case "false": return false; } - return throwArgumentError(`invalid boolean; ${JSON.stringify(value)}`, "value", value); + assertArgument(false, `invalid boolean; ${JSON.stringify(value)}`, "value", value); } export function formatData(value) { - if (!isHexString(value, true)) { - throwArgumentError("", "value", value); - } + assertArgument(isHexString(value, true), "invalid data", "value", value); return value; } export function formatHash(value) { - if (!isHexString(value, 32)) { - throwArgumentError("", "value", value); - } + assertArgument(isHexString(value, 32), "invalid hash", "value", value); return value; } export function formatUint256(value) { @@ -134,7 +130,7 @@ export const formatTransactionReceipt = object({ hash: formatHash, logs: arrayOf(formatReceiptLog), blockNumber: getNumber, - confirmations: allowNull(getNumber, null), + //confirmations: allowNull(getNumber, null), cumulativeGasUsed: getBigInt, effectiveGasPrice: allowNull(getBigInt), status: allowNull(getNumber), @@ -162,7 +158,7 @@ export function formatTransactionResponse(value) { blockHash: allowNull(formatHash, null), blockNumber: allowNull(getNumber, null), transactionIndex: allowNull(getNumber, null), - confirmations: allowNull(getNumber, null), + //confirmations: allowNull(getNumber, null), from: getAddress, // either (gasPrice) or (maxPriorityFeePerGas + maxFeePerGas) must be set gasPrice: allowNull(getBigInt), @@ -189,7 +185,12 @@ export function formatTransactionResponse(value) { result.accessList = []; } // Compute the signature - result.signature = Signature.from(value); + if (value.signature) { + result.signature = Signature.from(value.signature); + } + else { + result.signature = Signature.from(value); + } // Some backends omit ChainId on legacy transactions, but we can compute it if (result.chainId == null) { const chainId = result.signature.legacyChainId; diff --git a/lib.esm/providers/format.js.map b/lib.esm/providers/format.js.map index 3fd2ae4b8..a61ae691c 100644 --- a/lib.esm/providers/format.js.map +++ b/lib.esm/providers/format.js.map @@ -1 +1 @@ -{"version":3,"file":"format.js","sourceRoot":"","sources":["../../src.ts/providers/format.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EACH,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,WAAW,EAAE,YAAY,EACxD,kBAAkB,EAAE,UAAU,EACjC,MAAM,mBAAmB,CAAC;AAI3B,MAAM,IAAI,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AAIvB,MAAM,UAAU,SAAS,CAAC,MAAkB,EAAE,SAAe;IACzD,OAAO,CAAC,UAAS,KAAU;QACvB,IAAI,KAAK,IAAI,IAAI,EAAE;YAAE,OAAO,SAAS,CAAC;SAAE;QACxC,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;IACzB,CAAC,CAAC,CAAC;AACP,CAAC;AAED,MAAM,UAAU,OAAO,CAAC,MAAkB;IACtC,OAAO,CAAC,CAAC,KAAU,EAAE,EAAE;QACnB,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;YAAE,MAAM,IAAI,KAAK,CAAC,cAAc,CAAC,CAAC;SAAE;QAC/D,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;IACvC,CAAC,CAAC,CAAC;AACP,CAAC;AAED,+DAA+D;AAC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,CAAC,SAAS,CAAC,KAAK,IAAI,EAAE;QAC1D,MAAM,CAAC,SAAS,GAAG,IAAI,CAAC;KAC3B;IAED,OAAO,MAAM,CAAC;AAClB,CAAC"} \ No newline at end of file +{"version":3,"file":"format.js","sourceRoot":"","sources":["../../src.ts/providers/format.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EACH,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,WAAW,EAAE,YAAY,EACxD,MAAM,EAAE,cAAc,EACzB,MAAM,mBAAmB,CAAC;AAI3B,MAAM,IAAI,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AAIvB,MAAM,UAAU,SAAS,CAAC,MAAkB,EAAE,SAAe;IACzD,OAAO,CAAC,UAAS,KAAU;QACvB,IAAI,KAAK,IAAI,IAAI,EAAE;YAAE,OAAO,SAAS,CAAC;SAAE;QACxC,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;IACzB,CAAC,CAAC,CAAC;AACP,CAAC;AAED,MAAM,UAAU,OAAO,CAAC,MAAkB;IACtC,OAAO,CAAC,CAAC,KAAU,EAAE,EAAE;QACnB,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;YAAE,MAAM,IAAI,KAAK,CAAC,cAAc,CAAC,CAAC;SAAE;QAC/D,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;IACvC,CAAC,CAAC,CAAC;AACP,CAAC;AAED,+DAA+D;AAC/D,kEAAkE;AAClE,iDAAiD;AACjD,MAAM,UAAU,MAAM,CAAC,MAAkC,EAAE,QAAwC;IAC/F,OAAO,CAAC,CAAC,KAAU,EAAE,EA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,MAAM,CAAC;AAClB,CAAC"} \ No newline at end of file diff --git a/lib.esm/providers/network.js b/lib.esm/providers/network.js index 40eb742f6..ae096f40c 100644 --- a/lib.esm/providers/network.js +++ b/lib.esm/providers/network.js @@ -1,5 +1,5 @@ import { accessListify } from "../transaction/index.js"; -import { getStore, getBigInt, setStore, throwArgumentError } from "../utils/index.js"; +import { getStore, getBigInt, setStore, assertArgument } from "../utils/index.js"; import { EnsPlugin, GasCostPlugin } from "./plugins-network.js"; /* * * * // Networks which operation against an L2 can use this plugin to @@ -146,7 +146,7 @@ export class Network { if (typeof (network) === "bigint") { return new Network("unknown", network); } - throwArgumentError("unknown network", "network", network); + assertArgument(false, "unknown network", "network", network); } // Clonable with network-like abilities if (typeof (network.clone) === "function") { @@ -157,9 +157,7 @@ export class Network { } // Networkish if (typeof (network) === "object") { - if (typeof (network.name) !== "string" || typeof (network.chainId) !== "number") { - throwArgumentError("invalid network object name or chainId", "network", network); - } + assertArgument(typeof (network.name) === "string" && typeof (network.chainId) === "number", "invalid network object name or chainId", "network", network); const custom = new Network((network.name), (network.chainId)); if (network.ensAddress || network.ensNetwork != null) { custom.attachPlugin(new EnsPlugin(network.ensAddress, network.ensNetwork)); @@ -169,7 +167,7 @@ export class Network { //} return custom; } - return throwArgumentError("invalid network", "network", network); + assertArgument(false, "invalid network", "network", network); } /** * Register %%nameOrChainId%% with a function which returns @@ -181,7 +179,7 @@ export class Network { } const existing = Networks.get(nameOrChainId); if (existing) { - throwArgumentError(`conflicting network for ${JSON.stringify(existing.name)}`, "nameOrChainId", nameOrChainId); + assertArgument(false, `conflicting network for ${JSON.stringify(existing.name)}`, "nameOrChainId", nameOrChainId); } Networks.set(nameOrChainId, networkFunc); } diff --git a/lib.esm/providers/network.js.map b/lib.esm/providers/network.js.map index f5bbac09c..22cc9fdb1 100644 --- a/lib.esm/providers/network.js.map +++ b/lib.esm/providers/network.js.map @@ -1 +1 @@ -{"version":3,"file":"network.js","sourceRoot":"","sources":["../../src.ts/provid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C,GAAG,EAAE,+BAA+B;SACvC;KACJ,CAAC,CAAC;IACH,WAAW,CAAC,aAAa,EAAE,KAAK,EAAE;QACtC,mCAAmC;QAC3B,SAAS,EAAE;YACP,MAAM,EAAE,oCAAoC;YAC5C,GAAG,EAAE,uCAAuC;SAC/C;KACJ,CAAC,CAAC;IAEH,WAAW,CAAC,KAAK,EAAE,EAAE,EAAE;QACnB,UAAU,EAAE,CAAC;QACb,SAAS,EAAE;YACP,MAAM,EAAE,oCAAoC;YAC5C,GAAG,EAAE,yBAAyB;SACjC;KACJ,CAAC,CAAC;IACH,WAAW,CAAC,MAAM,EAAE,EAAE,EAAE;QACpB,SAAS,EAAE;YACP,MAAM,EAAE,oCAAoC;YAC5C,GAAG,EAAE,iCAAiC;SACzC;KACJ,CAAC,CAAC;AACP,CAAC"} \ No newline at end of file +{"version":3,"file":"network.js","sourceRoot":"","sources":["../../src.ts/providers/network.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EACH,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,cAAc,EAChD,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AA2BhE;;;;;;;;;;;;;;;;EAgBE;AAEF;;;;;;;;;;;;;EAaE;AAEF,uEAAuE;AACvE,sEAAsE;AACtE,uEAAuE;AACvE,uDAAuD;AACvD;;;;;;;;;;;;;;EAcE;AAEF,MAAM,QAAQ,GAAwC,IAAI,GAAG,EAAE,CAAC;AAEhE,2EAA2E;AAE3E,MAAM,OAAO,OAAO;IAChB,MAAM,CAKJ;IAEF,YAAY,IAAY,EAAE,QAAsB;QAC5C,MAAM,OAAO,GAAG,SAAS,CAAC,QAAQ,CAAC,CAAC;QACpC,MAAM,OAAO,GAAG,IAAI,GAAG,EAAE,CAAC;QAC1B,IAAI,CAAC,MAAM,GAAG,EAAE,IAAI,EAAE,OAA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AAU,EAAE,CAAC,EAAE,CAAC,CAAC;IAC7C,WAAW,CAAC,QAAQ,EAAE,CAAC,EAAE,EAAE,UAAU,EAAE,CAAC,EAAE,CAAC,CAAC;IAC5C,WAAW,CAAC,OAAO,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,CAAC;IAE7C,WAAW,CAAC,SAAS,EAAE,EAAE,EAAE,EAAG,CAAC,CAAC;IAChC,WAAW,CAAC,cAAc,EAAE,CAAC,EAAE,EAAG,CAAC,CAAC;IAEpC,WAAW,CAAC,MAAM,EAAE,GAAG,EAAE,EAAE,UAAU,EAAE,CAAC,EAAE,CAAC,CAAC;IAE5C,mDAAmD;IACnD,WAAW,CAAC,OAAO,EAAE,GAAG,EAAE;QACtB,UAAU,EAAE,CAAC;QACrB,mCAAmC;QAC3B,SAAS,EAAE;YACP,MAAM,EAAE,oCAAoC;YAC5C,GAAG,EAAE,+BAA+B;SACvC;KACJ,CAAC,CAAC;IACH,WAAW,CAAC,aAAa,EAAE,KAAK,EAAE;QACtC,mCAAmC;QAC3B,SAAS,EAAE;YACP,MAAM,EAAE,oCAAoC;YAC5C,GAAG,EAAE,uCAAuC;SAC/C;KACJ,CAAC,CAAC;IAEH,WAAW,CAAC,KAAK,EAAE,EAAE,EAAE;QACnB,UAAU,EAAE,CAAC;QACb,SAAS,EAAE;YACP,MAAM,EAAE,oCAAoC;YAC5C,GAAG,EAAE,yBAAyB;SACjC;KACJ,CAAC,CAAC;IACH,WAAW,CAAC,MAAM,EAAE,EAAE,EAAE;QACpB,SAAS,EAAE;YACP,MAAM,EAAE,oCAAoC;YAC5C,GAAG,EAAE,iCAAiC;SACzC;KACJ,CAAC,CAAC;AACP,CAAC"} \ No newline at end of file diff --git a/lib.esm/providers/plugin-fallback.js b/lib.esm/providers/plugin-fallback.js new file mode 100644 index 000000000..9343230ed --- /dev/null +++ b/lib.esm/providers/plugin-fallback.js @@ -0,0 +1,26 @@ +import { defineProperties } from "../utils/index.js"; +export const PluginIdFallbackProvider = "org.ethers.plugins.QualifiedPlugin"; +export class CheckQualifiedPlugin { + constructor() { + defineProperties(this, { name: PluginIdFallbackProvider }); + } + connect(provider) { + return this; + } + // Retruns true if this value should be considered qualified for + // inclusion in the quorum. + isQualified(action, result) { + return true; + } +} +export class PossiblyPrunedTransactionPlugin extends CheckQualifiedPlugin { + isQualified(action, result) { + if (action.method === "getTransaction" || action.method === "getTransactionReceipt") { + if (result == null) { + return false; + } + } + return super.isQualified(action, result); + } +} +//# sourceMappingURL=plugin-fallback.js.map \ No newline at end of file diff --git a/lib.esm/providers/plugin-fallback.js.map b/lib.esm/providers/plugin-fallback.js.map new file mode 100644 index 000000000..dcae4d2aa --- /dev/null +++ b/lib.esm/providers/plugin-fallback.js.map @@ -0,0 +1 @@ +{"version":3,"file":"plugin-fallback.js","sourceRoot":"","sources":["../../src.ts/providers/plugin-fallback.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAKrD,MAAM,CAAC,MAAM,wBAAwB,GAAG,oCAAoC,CAAC;AAE7E,MAAM,OAAO,oBAAoB;IAG7B;QACI,gBAAgB,CAAuB,IAAI,EAAE,EAAE,IAAI,EAAE,wBAAwB,EAAE,CAAC,CAAC;IACrF,CAAC;IAED,OAAO,CAAC,QAA0B;QAC9B,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,gEAAgE;IAChE,2BAA2B;IAC3B,WAAW,CAAC,MAA4B,EAAE,MAAW;QACjD,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AAED,MAAM,OAAO,+BAAgC,SAAQ,oBAAoB;IACrE,WAAW,CAAC,MAA4B,EAAE,MAAW;QACjD,IAAI,MAAM,CAAC,MAAM,KAAK,gBAAgB,IAAI,MAAM,CAAC,MAAM,KAAK,uBAAuB,EAAE;YACjF,IAAI,MAAM,IAAI,IAAI,EAAE;gBAAE,OAAO,KAAK,CAAC;aAAE;SACxC;QACD,OAAO,KAAK,CAAC,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7C,CAAC;CACJ"} \ No newline at end of file diff --git a/lib.esm/providers/plugins-network.js b/lib.esm/providers/plugins-network.js index 305817f25..673fd3034 100644 --- a/lib.esm/providers/plugins-network.js +++ b/lib.esm/providers/plugins-network.js @@ -1,5 +1,5 @@ import { defineProperties } from "../utils/properties.js"; -import { throwArgumentError } from "../utils/index.js"; +import { assertArgument } from "../utils/index.js"; const EnsAddress = "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"; export class NetworkPlugin { name; @@ -26,9 +26,7 @@ export class GasCostPlugin extends NetworkPlugin { if (value == null) { value = nullish; } - if (typeof (value) !== "number") { - throwArgumentError(`invalud value for ${name}`, "costs", costs); - } + assertArgument(typeof (value) === "number", `invalud value for ${name}`, "costs", costs); props[name] = value; } set("txBase", 21000); diff --git a/lib.esm/providers/plugins-network.js.map b/lib.esm/providers/plugins-network.js.map index cd7b5a800..a1eec4aab 100644 --- a/lib.esm/providers/plugins-network.js.map +++ b/lib.esm/providers/plugins-network.js.map @@ -1 +1 @@ -{"version":3,"file":"plugins-network.js","sourceRoot":"","sources":["../../src.ts/providers/plugins-network.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAKvD,MAAM,UAAU,GAAG,4CAA4C,CAAC;AAEhE,MAAM,OAAO,aAAa;IACb,IAAI,CAAU;IAEvB,YAAY,IAAY;QACpB,gBAAgB,CAAgB,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;IACpD,CAAC;IAED,KAAK;QACD,OAAO,IAAI,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACxC,CAAC;CAKJ;AAcD,MAAM,OAAO,aAAc,SAAQ,aAAa;IACnC,cAAc,CAAU;IAExB,MAAM,CAAU;IAChB,QAAQ,CAAU;IAClB,UAA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EAAE,KAAK,CAAC,CAAC;IAClD,CAAC;IAED,KAAK,CAAC,wBAAwB,CAAC,QAAkB,EAAE,KAA6C;QAC5F,OAAO,MAAM,IAAI,CAAC,iBAAiB,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;IACzD,CAAC;IAED,KAAK;QACD,OAAO,IAAI,wBAAwB,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,iBAAiB,CAAC,CAAC;IACjF,CAAC;CACJ"} \ No newline at end of file +{"version":3,"file":"plugins-network.js","sourceRoot":"","sources":["../../src.ts/providers/plugins-network.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAKnD,MAAM,UAAU,GAAG,4CAA4C,CAAC;AAEhE,MAAM,OAAO,aAAa;IACb,IAAI,CAAU;IAEvB,YAAY,IAAY;QACpB,gBAAgB,CAAgB,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;IACpD,CAAC;IAED,KAAK;QACD,OAAO,IAAI,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACxC,CAAC;CAKJ;AAcD,MAAM,OAAO,aAAc,SAAQ,aAAa;IACnC,cAAc,CAAU;IAExB,MAAM,CAAU;IAChB,QAAQ,CAAU;IAClB,UAAU,CAAU;IACpB,aAAa,CAAU;IACvB,sBAAsB,CAAU;IAChC,mBAAmB,CAAU;IAEtC,YAAY,iBAAyB,CAAC,EAAE,KAAyB;QAC7D,KAAK,CAAC,uCAAwC,CAAC,cAAc,IAAI,CAAC,CAAE,EAAE,CAAC,CAAC;QAExE,MAAM,KAAK,GAA2B,EAAE,cAAc,EAAE,CAAC;QACzD,SAAS,GAAG,CAAC,IAA6B,EAAE,OAAe;YACvD,IAAI,KAAK,GAAG,CAAC,KAAK,IAAI,EAAG,CAAC,CAAC,IAAI,CAAC,CAAC;YACjC,IAAI,KAAK,IAAI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;;;;;;;;;;;;;;;;;;;EAmBE;AACF,MAAM,OAAO,oBAAqB,SAAQ,aAAa;IAC1C,YAAY,CAA2C;IAEhE,IAAI,WAAW,KAA+C,OAAO,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC;IAEzF,YAAY,WAAqD;QAC7D,KAAK,CAAC,qCAAqC,CAAC,CAAC;QAC7C,IAAI,CAAC,YAAY,GAAG,WAAW,CAAC;IACpC,CAAC;IAED,KAAK,CAAC,UAAU,CAAC,QAAkB;QAC/B,OAAO,MAAM,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;IAC7C,CAAC;IAED,KAAK;QACD,OAAO,IAAI,oBAAoB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IACvD,CAAC;CACJ;AAID,MAAM,OAAO,wBAAyB,SAAQ,aAAa;IAC9C,UAAU,CAAoE;IAC9E,iBAAiB,CAAoG;IAE9H,YAAY,SAA4E,EAAE,gBAAmH;QACzM,KAAK,CAAC,yCAAyC,CAAC,CAAC;QACjD,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;QAC5B,IAAI,CAAC,iBAAiB,GAAG,gBAAgB,CAAC;IAC9C,CAAC;IAED,KAAK,CAAC,QAAQ,CAAC,QAAkB,EAAE,KAA0B;QACzD,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;IAClD,CAAC;IAED,KAAK,CAAC,wBAAwB,CAAC,QAAkB,EAAE,KAA6C;QAC5F,OAAO,MAAM,IAAI,CAAC,iBAAiB,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;IACzD,CAAC;IAED,KAAK;QACD,OAAO,IAAI,wBAAwB,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,iBAAiB,CAAC,CAAC;IACjF,CAAC;CACJ"} \ No newline at end of file diff --git a/lib.esm/providers/provider-alchemy.js b/lib.esm/providers/provider-alchemy.js index 6293a75ba..86ca21b28 100644 --- a/lib.esm/providers/provider-alchemy.js +++ b/lib.esm/providers/provider-alchemy.js @@ -1,4 +1,4 @@ -import { defineProperties, resolveProperties, throwArgumentError, throwError, FetchRequest } from "../utils/index.js"; +import { defineProperties, resolveProperties, assert, assertArgument, FetchRequest } from "../utils/index.js"; import { showThrottleMessage } from "./community.js"; import { Network } from "./network.js"; import { JsonRpcProvider } from "./provider-jsonrpc.js"; @@ -22,7 +22,7 @@ function getHost(name) { case "optimism-goerli": return "opt-goerli.g.alchemy.com"; } - return throwArgumentError("unsupported network", "network", name); + assertArgument(false, "unsupported network", "network", name); } export class AlchemyProvider extends JsonRpcProvider { apiKey; @@ -60,19 +60,17 @@ export class AlchemyProvider extends JsonRpcProvider { } catch (error) { } if (data) { - if (error) { - throwError("an error occurred during transaction executions", "CALL_EXCEPTION", { - action: "getTransactionResult", - data, - reason: null, - transaction: tx, - invocation: null, - revert: null // @TODO - }); - } + assert(!error, "an error occurred during transaction executions", "CALL_EXCEPTION", { + action: "getTransactionResult", + data, + reason: null, + transaction: tx, + invocation: null, + revert: null // @TODO + }); return data; } - return throwError("could not parse trace result", "BAD_DATA", { value: trace }); + assert(false, "could not parse trace result", "BAD_DATA", { value: trace }); } return await super._perform(req); } diff --git a/lib.esm/providers/provider-alchemy.js.map b/lib.esm/providers/provider-alchemy.js.map index ad2e41877..ab556754c 100644 --- a/lib.esm/providers/provider-alchemy.js.map +++ b/lib.esm/providers/provider-alchemy.js.map @@ -1 +1 @@ -{"version":3,"file":"provider-alchemy.js","sourceRoot":"","sources":["../../src.ts/providers/provider-alchemy.ts"],"names":[],"mappings":"AACA,OAAO,EACH,gBAAgB,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,UAAU,EACnE,YAAY,EACf,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;A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AK,aAAa,CAAC,CAAC;IAC3C,CAAC;IAED,MAAM,CAAC,UAAU,CAAC,OAAgB,EAAE,MAAe;QAC/C,IAAI,MAAM,IAAI,IAAI,EAAE;YAAE,MAAM,GAAG,aAAa,CAAC;SAAE;QAE/C,MAAM,OAAO,GAAG,IAAI,YAAY,CAAC,YAAa,OAAO,CAAC,OAAO,CAAC,IAAI,CAAE,OAAQ,MAAO,EAAE,CAAC,CAAC;QACvF,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC;QAEzB,IAAI,MAAM,KAAK,aAAa,EAAE;YAC1B,OAAO,CAAC,SAAS,GAAG,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE;gBACrD,mBAAmB,CAAC,SAAS,CAAC,CAAC;gBAC/B,OAAO,IAAI,CAAC;YAChB,CAAC,CAAA;SACJ;QAED,OAAO,OAAO,CAAC;IACnB,CAAC;CACJ"} \ No newline at end of file +{"version":3,"file":"provider-alchemy.js","sourceRoot":"","sources":["../../src.ts/providers/provider-alchemy.ts"],"names":[],"mappings":"AACA,OAAO,EACH,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,EAAE,cAAc,EAC3D,YAAY,EACf,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAOxD,MAAM,aAAa,GAAG,kCAAkC,CAAA;AAExD,SAAS,OAAO,CAAC,IAAY;IACzB,QAAO,IAAI,EAAE;QACT,KAAK,SAAS;YACV,OAAO,2BAA2B,CAAC;QACvC,KAAK,QAAQ;YACT,OAAO,0BAA0B,CAAC;QAEtC,KAAK,UAAU;YACX,OAAO,2BAA2B,CAAC;QACvC,KAAK,iBAAiB;YAClB,OAAO,0BAA0B,CAAC;QACtC,KAAK,OAAO;YACR,OAAO,+BAA+B,CAAC;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AEzB,IAAI,MAAM,KAAK,aAAa,EAAE;YAC1B,OAAO,CAAC,SAAS,GAAG,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE;gBACrD,mBAAmB,CAAC,SAAS,CAAC,CAAC;gBAC/B,OAAO,IAAI,CAAC;YAChB,CAAC,CAAA;SACJ;QAED,OAAO,OAAO,CAAC;IACnB,CAAC;CACJ"} \ No newline at end of file diff --git a/lib.esm/providers/provider-ankr.js b/lib.esm/providers/provider-ankr.js index 4882d20e7..36ce9418e 100644 --- a/lib.esm/providers/provider-ankr.js +++ b/lib.esm/providers/provider-ankr.js @@ -1,4 +1,4 @@ -import { defineProperties, FetchRequest, throwArgumentError } from "../utils/index.js"; +import { defineProperties, FetchRequest, assertArgument } from "../utils/index.js"; import { showThrottleMessage } from "./community.js"; import { Network } from "./network.js"; import { JsonRpcProvider } from "./provider-jsonrpc.js"; @@ -18,7 +18,7 @@ function getHost(name) { case "arbitrum": return "rpc.ankr.com/arbitrum"; } - return throwArgumentError("unsupported network", "network", name); + assertArgument(false, "unsupported network", "network", name); } export class AnkrProvider extends JsonRpcProvider { apiKey; diff --git a/lib.esm/providers/provider-ankr.js.map b/lib.esm/providers/provider-ankr.js.map index c01f7c4db..11c98b8ad 100644 --- a/lib.esm/providers/provider-ankr.js.map +++ b/lib.esm/providers/provider-ankr.js.map @@ -1 +1 @@ -{"version":3,"file":"provider-ankr.js","sourceRoot":"","sources":["../../src.ts/providers/provider-ankr.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,gBAAgB,EAAE,YAAY,EAAE,kBAAkB,EACrD,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAMxD,MAAM,aAAa,GAAG,kEAAkE,CAAC;AAEzF,SAAS,OAAO,CAA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MAAM,GAAG,aAAa,CAAC;SAAE;QAE/C,MAAM,OAAO,GAAG,IAAI,YAAY,CAAC,YAAa,OAAO,CAAC,OAAO,CAAC,IAAI,CAAE,IAAK,MAAO,EAAE,CAAC,CAAC;QACpF,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC;QAEzB,IAAI,MAAM,KAAK,aAAa,EAAE;YAC1B,OAAO,CAAC,SAAS,GAAG,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE;gBACrD,mBAAmB,CAAC,cAAc,CAAC,CAAC;gBACpC,OAAO,IAAI,CAAC;YAChB,CAAC,CAAC;SACL;QAED,OAAO,OAAO,CAAC;IACnB,CAAC;IAED,mBAAmB;QACf,OAAO,CAAC,IAAI,CAAC,MAAM,KAAK,aAAa,CAAC,CAAC;IAC3C,CAAC;CACJ"} \ No newline at end of file +{"version":3,"file":"provider-ankr.js","sourceRoot":"","sources":["../../src.ts/providers/provider-ankr.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,gBAAgB,EAAE,YAAY,EAAE,cAAc,EACjD,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAMxD,MAAM,aAAa,GAAG,kEAAkE,CAAC;AAEzF,SAAS,OAAO,CAAC,IAAY;IACzB,QAAQ,IAAI,EAAE;QACV,KAAK,SAAS;YACV,OAAO,kBAAkB,CAAC;QAC9B,KAAK,SAAS;YACV,OAAO,0BAA0B,CAAC;QACtC,KAAK,SAAS;YACV,OAAO,0BAA0B,CAAC;QACtC,KAAK,QAAQ;YACT,OAAO,yBAAyB,CAAC;QACrC,KAAK,OAAO;YACR,OAAO,sBAAsB,CAAC;QAClC,KAAK,UAAU;YACX,OAAO,uBAAuB,CAAC;KACtC;IAED,cAAc,CAAC,KAAK,E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AAmB,CAAC,cAAc,CAAC,CAAC;gBACpC,OAAO,IAAI,CAAC;YAChB,CAAC,CAAC;SACL;QAED,OAAO,OAAO,CAAC;IACnB,CAAC;IAED,mBAAmB;QACf,OAAO,CAAC,IAAI,CAAC,MAAM,KAAK,aAAa,CAAC,CAAC;IAC3C,CAAC;CACJ"} \ No newline at end of file diff --git a/lib.esm/providers/provider-cloudflare.js b/lib.esm/providers/provider-cloudflare.js index 5f479b59a..23fd014b2 100644 --- a/lib.esm/providers/provider-cloudflare.js +++ b/lib.esm/providers/provider-cloudflare.js @@ -1,12 +1,10 @@ -import { throwArgumentError } from "../utils/index.js"; +import { assertArgument } from "../utils/index.js"; import { Network } from "./network.js"; import { JsonRpcProvider } from "./provider-jsonrpc.js"; export class CloudflareProvider extends JsonRpcProvider { constructor(_network = "mainnet") { const network = Network.from(_network); - if (network.name !== "mainnet") { - return throwArgumentError("unsupported network", "network", _network); - } + assertArgument(network.name === "mainnet", "unsupported network", "network", _network); super("https:/\/cloudflare-eth.com/", network, { staticNetwork: network }); } } diff --git a/lib.esm/providers/provider-cloudflare.js.map b/lib.esm/providers/provider-cloudflare.js.map index 15df14f79..df198e7ba 100644 --- a/lib.esm/providers/provider-cloudflare.js.map +++ b/lib.esm/providers/provider-cloudflare.js.map @@ -1 +1 @@ -{"version":3,"file":"provider-cloudflare.js","sourceRoot":"","sources":["../../src.ts/providers/provider-cloudflare.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAEvD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAKxD,MAAM,OAAO,kBAAmB,SAAQ,eAAe;IACnD,YAAY,WAAuB,SAAS;QACxC,MAAM,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACvC,IAAI,OAAO,CAAC,IAAI,KAAK,SAAS,EAAE;YAC5B,OAAO,kBAAkB,CAAC,qBAAqB,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;SACzE;QACD,KAAK,CAAC,8BAA8B,EAAE,OAAO,EAAE,EAAE,aAAa,EAAE,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;CACJ"} \ No newline at end of file +{"version":3,"file":"provider-cloudflare.js","sourceRoot":"","sources":["../../src.ts/providers/provider-cloudflare.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAKxD,MAAM,OAAO,kBAAmB,SAAQ,eAAe;IACnD,YAAY,WAAuB,SAAS;QACxC,MAAM,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACvC,cAAc,CAAC,OAAO,CAAC,IAAI,KAAK,SAAS,EAAE,qBAAqB,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;QACvF,KAAK,CAAC,8BAA8B,EAAE,OAAO,EAAE,EAAE,aAAa,EAAE,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;CACJ"} \ No newline at end of file diff --git a/lib.esm/providers/provider-etherscan-base.js b/lib.esm/providers/provider-etherscan-base.js index 971e1a27f..ded79355b 100644 --- a/lib.esm/providers/provider-etherscan-base.js +++ b/lib.esm/providers/provider-etherscan-base.js @@ -1,12 +1,12 @@ import { getBuiltinCallException } from "../abi/index.js"; import { accessListify } from "../transaction/index.js"; -import { defineProperties, hexlify, toQuantity, FetchRequest, throwArgumentError, throwError, toUtf8String } from "../utils/index.js"; +import { defineProperties, hexlify, toQuantity, FetchRequest, assert, assertArgument, toUtf8String } from "../utils/index.js"; import { AbstractProvider } from "./abstract-provider.js"; import { Network } from "./network.js"; import { NetworkPlugin } from "./plugins-network.js"; import { showThrottleMessage } from "./community.js"; const THROTTLE = 2000; -const EtherscanPluginId = "org.ethers.plugins.etherscan"; +const EtherscanPluginId = "org.ethers.plugins.Etherscan"; export class EtherscanPlugin extends NetworkPlugin { baseUrl; communityApiKey; @@ -60,7 +60,7 @@ export class BaseEtherscanProvider extends AbstractProvider { return "https:/\/api-goerli-optimistic.etherscan.io"; default: } - return throwArgumentError("unsupported network", "network", this.network); + assertArgument(false, "unsupported network", "network", this.network); } getUrl(module, params) { const query = Object.keys(params).reduce((accum, key) => { @@ -184,7 +184,7 @@ export class BaseEtherscanProvider extends AbstractProvider { } // Quantity-types require no leading zero, unless 0 if ({ type: true, gasLimit: true, gasPrice: true, maxFeePerGs: true, maxPriorityFeePerGas: true, nonce: true, value: true }[key]) { - value = toQuantity(hexlify(value)); + value = toQuantity(value); } else if (key === "accessList") { value = "[" + accessListify(value).map((set) => { @@ -327,7 +327,7 @@ export class BaseEtherscanProvider extends AbstractProvider { boolean: (req.includeTransactions ? "true" : "false") }); } - return throwError("getBlock by blockHash not supported by Etherscan", "UNSUPPORTED_OPERATION", { + assert(false, "getBlock by blockHash not supported by Etherscan", "UNSUPPORTED_OPERATION", { operation: "getBlock(blockHash)" }); case "getTransaction": diff --git a/lib.esm/providers/provider-etherscan-base.js.map b/lib.esm/providers/provider-etherscan-base.js.map index f2b917eef..62bc8cdfd 100644 --- a/lib.esm/providers/provider-etherscan-base.js.map +++ b/lib.esm/providers/provider-etherscan-base.js.map @@ -1 +1 @@ -{"version":3,"file":"provider-etherscan-base.js","sourceRoot":"","sources":["../../src.ts/providers/provider-etherscan-base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EACH,gBAAgB,EAChB,OAAO,EAAE,UAAU,EACnB,YAAY,EACZ,kBAAkB,EAAE,UAAU,EAC9B,YAAY,EACd,MAAM,mBAAmB,CAAC;AAE5B,OAAO,EAAE,gBAAgB,EAAE,MA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AI,IAAI,CAAC,CAAC;IACjC,CAAC;CACJ"} \ No newline at end of file +{"version":3,"file":"provider-etherscan-base.js","sourceRoot":"","sources":["../../src.ts/providers/provider-etherscan-base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EACH,gBAAgB,EAChB,OAAO,EAAE,UAAU,EACnB,YAAY,EACZ,MAAM,EAAE,cAAc,EACtB,YAAY,EACd,MAAM,mBAAmB,CAAC;AAE5B,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAOrD,MAAM,QAAQ,GAAG,IAAI,CAAC;AAiBtB,MAAM,iBAAiB,GAAG,8BAA8B,CAAC;AAEzD,MAAM,OAAO,eAAgB,SAAQ,aAAa;IACrC,OAAO,CAAU;IACjB,eAAe,CAAU;IAElC,YAAY,OAAe,EAAE,eAAuB;QAChD,KAAK,CAAC,iBAAiB,CAAC,CAAC;QACzB,0DAA0D;QAC1D,gBAAgB,CAAkB,IAAI,EAAE,EAAE,OAAO,EAAE,eAAe,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED,KAAK;QACD,OAAO,IAAI,eAAe,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,eAAe,CAAC,CAAC;IACnE,CAAC;CACJ;AAED,IAAI,MAAM,GAAG,CAAC,CAAC;AAEf,MAAM,OAAO,qBAAsB,SAAQ,gBAAgB;IAC9C,OAAO,CAAW;IAClB,MAAM,CAAU;IAEhB,OAAO,CAAyB;IAEzC,YAAY,QAAqB,EAAE,MAAe;QAC9C,KAAK,EAAE,CAAC;QAER,MAAM,OAAO,GAAG,O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AE;QACpD,OAAO,UAAU,CAAC,CAAC,MAAM,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;IAClF,CAAC;IAED,mBAAmB;QACf,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,CAAkB,iBAAiB,CAAC,CAAC;QAC1E,IAAI,MAAM,EAAE;YAAE,OAAO,CAAC,MAAM,CAAC,eAAe,KAAK,IAAI,CAAC,MAAM,CAAC,CAAC;SAAE;QAEhE,OAAO,CAAC,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,CAAC;IACjC,CAAC;CACJ"} \ No newline at end of file diff --git a/lib.esm/providers/provider-fallback.js b/lib.esm/providers/provider-fallback.js index 33e00897f..24d43b5d8 100644 --- a/lib.esm/providers/provider-fallback.js +++ b/lib.esm/providers/provider-fallback.js @@ -1,8 +1,6 @@ -import { getBigInt, getNumber, hexlify, throwError, throwArgumentError } from "../utils/index.js"; +import { getBigInt, getNumber, assert, assertArgument } from "../utils/index.js"; import { AbstractProvider } from "./abstract-provider.js"; -import { formatBlock, formatBlockWithTransactions, formatLog, formatTransactionReceipt, formatTransactionResponse } from "./format.js"; import { Network } from "./network.js"; -//const BN_0 = BigInt("0"); const BN_1 = BigInt("1"); const BN_2 = BigInt("2"); function shuffle(array) { @@ -17,6 +15,14 @@ function stall(duration) { return new Promise((resolve) => { setTimeout(resolve, duration); }); } function getTime() { return (new Date()).getTime(); } +function stringify(value) { + return JSON.stringify(value, (key, value) => { + if (typeof (value) === "bigint") { + return { type: "bigint", value: value.toString() }; + } + return value; + }); +} ; const defaultConfig = { stallTimeout: 400, priority: 1, weight: 1 }; const defaultState = { @@ -39,72 +45,90 @@ async function waitForSync(config, blockNumber) { config.outOfSync++; } } -// Normalizes a result to a string that can be used to compare against -// other results using normal string equality -function normalize(provider, value, req) { - switch (req.method) { - case "chainId": - return getBigInt(value).toString(); - case "getBlockNumber": - return getNumber(value).toString(); - case "getGasPrice": - return getBigInt(value).toString(); - case "getBalance": - return getBigInt(value).toString(); - case "getTransactionCount": - return getNumber(value).toString(); - case "getCode": - return hexlify(value); - case "getStorage": - return hexlify(value); - case "getBlock": - if (req.includeTransactions) { - return JSON.stringify(formatBlockWithTransactions(value)); - } - return JSON.stringify(formatBlock(value)); - case "getTransaction": - return JSON.stringify(formatTransactionResponse(value)); - case "getTransactionReceipt": - return JSON.stringify(formatTransactionReceipt(value)); - case "call": - return hexlify(value); - case "estimateGas": - return getBigInt(value).toString(); - case "getLogs": - return JSON.stringify(value.map((v) => formatLog(v))); +function _normalize(value) { + if (value == null) { + return "null"; } - return throwError("unsupported method", "UNSUPPORTED_OPERATION", { - operation: `_perform(${JSON.stringify(req.method)})` - }); + if (Array.isArray(value)) { + return "[" + (value.map(_normalize)).join(",") + "]"; + } + if (typeof (value) === "object" && typeof (value.toJSON) === "function") { + return _normalize(value.toJSON()); + } + switch (typeof (value)) { + case "boolean": + case "symbol": + return value.toString(); + case "bigint": + case "number": + return BigInt(value).toString(); + case "string": + return JSON.stringify(value); + case "object": { + const keys = Object.keys(value); + keys.sort(); + return "{" + keys.map((k) => `${JSON.stringify(k)}:${_normalize(value[k])}`).join(",") + "}"; + } + } + console.log("Could not serialize", value); + throw new Error("Hmm..."); } -// This strategy picks the highest wieght result, as long as the weight is +function normalizeResult(value) { + if ("error" in value) { + const error = value.error; + return { tag: _normalize(error), value: error }; + } + const result = value.result; + return { tag: _normalize(result), value: result }; +} +// This strategy picks the highest weight result, as long as the weight is // equal to or greater than quorum function checkQuorum(quorum, results) { const tally = new Map(); - for (const { result, normal, weight } of results) { - const t = tally.get(normal) || { result, weight: 0 }; + for (const { value, tag, weight } of results) { + const t = tally.get(tag) || { value, weight: 0 }; t.weight += weight; - tally.set(normal, t); + tally.set(tag, t); } - let bestWeight = 0; - let bestResult = undefined; - for (const { weight, result } of tally.values()) { - if (weight >= quorum && weight > bestWeight) { - bestWeight = weight; - bestResult = result; + let best = null; + for (const r of tally.values()) { + if (r.weight >= quorum && (!best || r.weight > best.weight)) { + best = r; } } - return bestResult; + if (best) { + return best.value; + } + return undefined; } -/* -function getMean(results: Array): bigint { - const total = results.reduce((a, r) => (a + BigInt(r.result)), BN_0); - return total / BigInt(results.length); -} -*/ -function getMedian(results) { +function getMedian(quorum, results) { + let resultWeight = 0; + const errorMap = new Map(); + let bestError = null; + const values = []; + for (const { value, tag, weight } of results) { + if (value instanceof Error) { + const e = errorMap.get(tag) || { value, weight: 0 }; + e.weight += weight; + errorMap.set(tag, e); + if (bestError == null || e.weight > bestError.weight) { + bestError = e; + } + } + else { + values.push(BigInt(value)); + resultWeight += weight; + } + } + if (resultWeight < quorum) { + // We have quorum for an error + if (bestError && bestError.weight >= quorum) { + return bestError.value; + } + // We do not have quorum for a result + return undefined; + } // Get the sorted values - const values = results.map((r) => BigInt(r.result)); values.sort((a, b) => ((a < b) ? -1 : (b > a) ? 1 : 0)); const mid = values.length / 2; // Odd-length; take the middle value @@ -114,9 +138,24 @@ function getMedian(results) { // Even length; take the ceiling of the mean of the center two values return (values[mid - 1] + values[mid] + BN_1) / BN_2; } +function getAnyResult(quorum, results) { + // If any value or error meets quorum, that is our preferred result + const result = checkQuorum(quorum, results); + if (result !== undefined) { + return result; + } + // Otherwise, do we have any result? + for (const r of results) { + if (r.value) { + return r.value; + } + } + // Nope! + return undefined; +} function getFuzzyMode(quorum, results) { if (quorum === 1) { - return getNumber(getMedian(results), "%internal"); + return getNumber(getMedian(quorum, results), "%internal"); } const tally = new Map(); const add = (result, weight) => { @@ -124,8 +163,8 @@ function getFuzzyMode(quorum, results) { t.weight += weight; tally.set(result, t); }; - for (const { weight, result } of results) { - const r = getNumber(result); + for (const { weight, value } of results) { + const r = getNumber(value); add(r - 1, weight); add(r, weight); add(r + 1, weight); @@ -144,7 +183,6 @@ function getFuzzyMode(quorum, results) { return bestResult; } export class FallbackProvider extends AbstractProvider { - //readonly providerConfigs!: ReadonlyArray>>; quorum; eventQuorum; eventWorkers; @@ -166,13 +204,18 @@ export class FallbackProvider extends AbstractProvider { this.quorum = 2; //Math.ceil(providers.length / 2); this.eventQuorum = 1; this.eventWorkers = 1; - if (this.quorum > this.#configs.reduce((a, c) => (a + c.weight), 0)) { - throwArgumentError("quorum exceed provider wieght", "quorum", this.quorum); - } + assertArgument(this.quorum <= this.#configs.reduce((a, c) => (a + c.weight), 0), "quorum exceed provider wieght", "quorum", this.quorum); } - // @TOOD: Copy these and only return public values get providerConfigs() { - return this.#configs.slice(); + return this.#configs.map((c) => { + const result = Object.assign({}, c); + for (const key in result) { + if (key[0] === "_") { + delete result[key]; + } + } + return result; + }); } async _detectNetwork() { return Network.from(getBigInt(await this._perform({ method: "chainId" }))); @@ -181,8 +224,52 @@ export class FallbackProvider extends AbstractProvider { //_getSubscriber(sub: Subscription): Subscriber { // throw new Error("@TODO"); //} - // Grab the next (random) config that is not already part of configs - #getNextConfig(configs) { + async _translatePerform(provider, req) { + switch (req.method) { + case "broadcastTransaction": + return await provider.broadcastTransaction(req.signedTransaction); + case "call": + return await provider.call(Object.assign({}, req.transaction, { blockTag: req.blockTag })); + case "chainId": + return (await provider.getNetwork()).chainId; + case "estimateGas": + return await provider.estimateGas(req.transaction); + case "getBalance": + return await provider.getBalance(req.address, req.blockTag); + case "getBlock": { + const block = ("blockHash" in req) ? req.blockHash : req.blockTag; + if (req.includeTransactions) { + return await provider.getBlockWithTransactions(block); + } + return await provider.getBlock(block); + } + case "getBlockNumber": + return await provider.getBlockNumber(); + case "getCode": + return await provider.getCode(req.address, req.blockTag); + case "getGasPrice": + return (await provider.getFeeData()).gasPrice; + case "getLogs": + return await provider.getLogs(req.filter); + case "getStorage": + return await provider.getStorage(req.address, req.position, req.blockTag); + case "getTransaction": + return await provider.getTransaction(req.hash); + case "getTransactionCount": + return await provider.getTransactionCount(req.address, req.blockTag); + case "getTransactionReceipt": + return await provider.getTransactionReceipt(req.hash); + case "getTransactionResult": + return await provider.getTransactionResult(req.hash); + } + } + // Grab the next (random) config that is not already part of + // the running set + #getNextConfig(running) { + // @TODO: Maybe do a check here to favour (heavily) providers that + // do not require waitForSync and disfavour providers that + // seem down-ish or are behaving slowly + const configs = Array.from(running).map((r) => r.config); // Shuffle the states, sorted by priority const allConfigs = this.#configs.slice(); shuffle(allConfigs); @@ -196,33 +283,35 @@ export class FallbackProvider extends AbstractProvider { } // Adds a new runner (if available) to running. #addRunner(running, req) { - const config = this.#getNextConfig(Array.from(running).map((r) => r.config)); + const config = this.#getNextConfig(running); + // No runners available if (config == null) { return null; } - const result = {}; + // Create a new runner const runner = { - config, result, didBump: false, done: false, + config, result: null, didBump: false, perform: null, staller: null }; const now = getTime(); + // Start performing this operation runner.perform = (async () => { try { config.requests++; - result.result = await config.provider._perform(req); + const result = await this._translatePerform(config.provider, req); + runner.result = { result }; } catch (error) { config.errorResponses++; - result.error = error; - } - if (runner.done) { - config.lateResponses++; + runner.result = { error }; } const dt = (getTime() - now); config._totalTime += dt; config.rollingDuration = 0.95 * config.rollingDuration + 0.05 * dt; runner.perform = null; })(); + // Start a staller; when this times out, it's time to force + // kicking off another runner because we are taking too long runner.staller = (async () => { await stall(config.stallTimeout); runner.staller = null; @@ -253,7 +342,7 @@ export class FallbackProvider extends AbstractProvider { chainId = network.chainId; } else if (network.chainId !== chainId) { - throwError("cannot mix providers on different networks", "UNSUPPORTED_OPERATION", { + assert(false, "cannot mix providers on different networks", "UNSUPPORTED_OPERATION", { operation: "new FallbackProvider" }); } @@ -266,13 +355,9 @@ export class FallbackProvider extends AbstractProvider { // Get all the result objects const results = []; for (const runner of running) { - if ("result" in runner.result) { - const result = runner.result.result; - results.push({ - result, - normal: normalize(runner.config.provider, result, req), - weight: runner.config.weight - }); + if (runner.result != null) { + const { tag, value } = normalizeResult(runner.result); + results.push({ tag, value, weight: runner.config.weight }); } } // Are there enough results to event meet quorum? @@ -283,13 +368,14 @@ export class FallbackProvider extends AbstractProvider { case "getBlockNumber": { // We need to get the bootstrap block height if (this.#height === -2) { - const height = Math.ceil(getNumber(getMedian(this.#configs.map((c) => ({ - result: c.blockNumber, - normal: getNumber(c.blockNumber).toString(), + this.#height = Math.ceil(getNumber(getMedian(this.quorum, this.#configs.map((c) => ({ + value: c.blockNumber, + tag: getNumber(c.blockNumber).toString(), weight: c.weight - }))), "%internal")); - this.#height = height; + }))))); } + // Find the mode across all the providers, allowing for + // a little drift between block heights const mode = getFuzzyMode(this.quorum, results); if (mode === undefined) { return undefined; @@ -301,14 +387,15 @@ export class FallbackProvider extends AbstractProvider { } case "getGasPrice": case "estimateGas": - return getMedian(results); + return getMedian(this.quorum, results); case "getBlock": - // Pending blocks are mempool dependant and already - // quite untrustworthy + // Pending blocks are in the mempool and already + // quite untrustworthy; just grab anything if ("blockTag" in req && req.blockTag === "pending") { - return results[0].result; + return getAnyResult(this.quorum, results); } return checkQuorum(this.quorum, results); + case "call": case "chainId": case "getBalance": case "getTransactionCount": @@ -318,14 +405,11 @@ export class FallbackProvider extends AbstractProvider { case "getTransactionReceipt": case "getLogs": return checkQuorum(this.quorum, results); - case "call": - // @TODO: Check errors - return checkQuorum(this.quorum, results); case "broadcastTransaction": throw new Error("TODO"); } - return throwError("unsupported method", "UNSUPPORTED_OPERATION", { - operation: `_perform(${JSON.stringify(req.method)})` + assert(false, "unsupported method", "UNSUPPORTED_OPERATION", { + operation: `_perform(${stringify(req.method)})` }); } async #waitForQuorum(running, req) { @@ -335,18 +419,8 @@ export class FallbackProvider extends AbstractProvider { // Any promises that are interesting to watch for; an expired stall // or a successful perform const interesting = []; - //const results: Array = [ ]; - //const errors: Array = [ ]; let newRunners = 0; for (const runner of running) { - // @TODO: use runner.perfom != null - /* - if ("result" in runner.result) { - results.push(runner.result.result); - } else if ("error" in runner.result) { - errors.push(runner.result.error); - } -*/ // No responses, yet; keep an eye on it if (runner.perform) { interesting.push(runner.perform); @@ -364,17 +438,7 @@ export class FallbackProvider extends AbstractProvider { runner.didBump = true; newRunners++; } - // Check for quorum - /* - console.log({ results, errors } ); - if (results.length >= this.quorum) { - return results[0]; - } - - if (errors.length >= this.quorum) { - return errors[0]; - } - */ + // Check if we have reached quorum on a result (or error) const value = await this.#checkQuorum(running, req); if (value !== undefined) { if (value instanceof Error) { @@ -387,25 +451,51 @@ export class FallbackProvider extends AbstractProvider { for (let i = 0; i < newRunners; i++) { this.#addRunner(running, req); } - if (interesting.length === 0) { - throw new Error("quorum not met"); - // return logger.throwError("failed to meet quorum", "", { - // }); - } - // Wait for someone to either complete its perform or trigger a stall + // All providers have returned, and we have no result + assert(interesting.length > 0, "quorum not met", "SERVER_ERROR", { + request: "%sub-requests", + info: { request: req, results: Array.from(running).map((r) => stringify(r.result)) } + }); + // Wait for someone to either complete its perform or stall out await Promise.race(interesting); + // This is recursive, but at worst case the depth is 2x the + // number of providers (each has a perform and a staller) return await this.#waitForQuorum(running, req); } async _perform(req) { + // Broadcasting a transaction is rare (ish) and already incurs + // a cost on the user, so spamming is safe-ish. Just send it to + // every backend. + if (req.method === "broadcastTransaction") { + const results = await Promise.all(this.#configs.map(async ({ provider, weight }) => { + try { + const result = await provider._perform(req); + return Object.assign(normalizeResult({ result }), { weight }); + } + catch (error) { + return Object.assign(normalizeResult({ error }), { weight }); + } + })); + const result = getAnyResult(this.quorum, results); + assert(result !== undefined, "problem multi-broadcasting", "SERVER_ERROR", { + request: "%sub-requests", + info: { request: req, results: results.map(stringify) } + }); + return result; + } await this.#initialSync(); - // Bootstrap enough to meet quorum + // Bootstrap enough runners to meet quorum const running = new Set(); for (let i = 0; i < this.quorum; i++) { this.#addRunner(running, req); } - const result = this.#waitForQuorum(running, req); + const result = await this.#waitForQuorum(running, req); + // Track requests sent to a provider that are still + // outstanding after quorum has been otherwise found for (const runner of running) { - runner.done = true; + if (runner.perform && runner.result == null) { + runner.config.lateResponses++; + } } return result; } diff --git a/lib.esm/providers/provider-fallback.js.map b/lib.esm/providers/provider-fallback.js.map index d059a15a1..d469ebebc 100644 --- a/lib.esm/providers/provider-fallback.js.map +++ b/lib.esm/providers/provider-fallback.js.map @@ -1 +1 @@ -{"version":3,"file":"provider-fallback.js","sourceRoot":"","sources":["../../src.ts/providers/provider-fallback.ts"],"names":[],"mappings":"AACA,OAAO,EACH,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAChE,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EACH,WAAW,EAAE,2BAA2B,EAAE,SAAS,EAAE,wBAAwB,EAC7E,yBAAyB,EAC5B,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAKtC,2BAA2B;AAC3B,MAAM,IAAI,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;AACzB,MAAM,IAAI,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;AAEzB,SAAS,OAAO,CAAU,KAAe;IACrC,KAAK,IAAI,CAAC,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE;QACvC,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAC9C,MAAM,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;QACrB,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;QACpB,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC;KAClB;AACL,CAAC;AAED,SAAS,KAAK,CAAC,QAAgB;IAC3B,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,GAAG,UAAU,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACxE,CAAC;AAED,SAAS,OAAO,KAAa,OAAO,CAAC,IAAI,IAAI,EAAE,C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AC,MAAM,KAAK,CAAC,EAAE;YAC1B,MAAM,IAAI,KAAK,CAAC,gBAAgB,CAAC,CAAC;YAC9C,qEAAqE;YACrE,iBAAiB;SACR;QAED,qEAAqE;QACrE,MAAM,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAEhC,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;IACnD,CAAC;IAED,KAAK,CAAC,QAAQ,CAAU,GAAyB;QAC7C,MAAM,IAAI,CAAC,YAAY,EAAE,CAAC;QAE1B,kCAAkC;QAClC,MAAM,OAAO,GAAsB,IAAI,GAAG,EAAE,CAAC;QAC7C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YAClC,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;SACjC;QAED,MAAM,MAAM,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;QACjD,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE;YAAE,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC;SAAE;QACrD,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ"} \ No newline at end of file +{"version":3,"file":"provider-fallback.js","sourceRoot":"","sources":["../../src.ts/providers/provider-fallback.ts"],"names":[],"mappings":"AACA,OAAO,EACH,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,cAAc,EAC/C,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAKtC,MAAM,IAAI,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;AACzB,MAAM,IAAI,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;AAEzB,SAAS,OAAO,CAAU,KAAe;IACrC,KAAK,IAAI,CAAC,GA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EAAE;YAClC,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;SACjC;QAED,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;QAEvD,mDAAmD;QACnD,oDAAoD;QACpD,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE;YAC1B,IAAI,MAAM,CAAC,OAAO,IAAI,MAAM,CAAC,MAAM,IAAI,IAAI,EAAE;gBACzC,MAAM,CAAC,MAAM,CAAC,aAAa,EAAE,CAAC;aACjC;SACJ;QAED,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ"} \ No newline at end of file diff --git a/lib.esm/providers/provider-infura.js b/lib.esm/providers/provider-infura.js index 7405993b5..346c37fc6 100644 --- a/lib.esm/providers/provider-infura.js +++ b/lib.esm/providers/provider-infura.js @@ -1,4 +1,4 @@ -import { defineProperties, FetchRequest, throwArgumentError, throwError } from "../utils/index.js"; +import { defineProperties, FetchRequest, assert, assertArgument } from "../utils/index.js"; import { showThrottleMessage } from "./community.js"; import { Network } from "./network.js"; import { JsonRpcProvider } from "./provider-jsonrpc.js"; @@ -25,7 +25,7 @@ function getHost(name) { case "optimism-goerli": return "optimism-goerli.infura.io"; } - return throwArgumentError("unsupported network", "network", name); + assertArgument(false, "unsupported network", "network", name); } export class InfuraWebSocketProvider extends WebSocketProvider { projectId; @@ -33,11 +33,7 @@ export class InfuraWebSocketProvider extends WebSocketProvider { constructor(network, apiKey) { const provider = new InfuraProvider(network, apiKey); const req = provider._getConnection(); - if (req.credentials) { - throwError("INFURA WebSocket project secrets unsupported", "UNSUPPORTED_OPERATION", { - operation: "InfuraProvider.getWebSocketProvider()" - }); - } + assert(!req.credentials, "INFURA WebSocket project secrets unsupported", "UNSUPPORTED_OPERATION", { operation: "InfuraProvider.getWebSocketProvider()" }); const url = req.url.replace(/^http/i, "ws").replace("/v3/", "/ws/v3/"); super(url, network); defineProperties(this, { diff --git a/lib.esm/providers/provider-infura.js.map b/lib.esm/providers/provider-infura.js.map index 4fdf6a944..68818eb9a 100644 --- a/lib.esm/providers/provider-infura.js.map +++ b/lib.esm/providers/provider-infura.js.map @@ -1 +1 @@ -{"version":3,"file":"provider-infura.js","sourceRoot":"","sources":["../../src.ts/providers/provider-infura.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,gBAAgB,EAAE,YAAY,EAAE,kBAAkB,EAAE,UAAU,EACjE,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAO5D,MAAM,gBAAgB,GAAG,kCAAkC,CAAC;AAE5D,SAAS,OAAO,CAAC,IAAY;IACzB,QAAO,IAAI,EAAE;QACT,KAAK,SAAS;YACV,OAAO,mBAAmB,CAAC;QAC/B,KAAK,QAAQ;YACT,OAAO,kBAAkB,CAAC;QAC9B,KAAK,SAAS;YACV,OAAO,mBAAmB,CAAC;QAE/B,KAAK,UAAU;YACX,OAAO,4BAA4B,CAAC;QACxC,KAAK,iBAAiB;YAClB,OAAO,2BAA2B,CAAC;QACvC,KAAK,OAAO;YACR,OAAO,2BAA2B,CAAC;QACvC,KAAK,UAAU;YACX,OAAO,0BAA0B,CAAC;QACtC,KAAK,UAAU;YACX,OAAO,4BAA4B,CAAC;QACxC,KAAK,iBAAiB;YAClB,OAAO,2BAA2B,CAAC;KAC1C;IAED,OAAO,kBAAkB,CAAC,qBAAqB,EAAE,SAAS,EAAE,IAAI,CAAC,CAAC;AACtE,CAAC;AAED,MAAM,OAAO,uBAAwB,SAAQ,iBAAiB;IACjD,SAAS,CAAU;IACnB,aAAa,CAAiB;IAEvC,YAAY,OAAoB,EAAE,MAAY;QAC1C,MAAM,QAAQ,GAAG,IAAI,cA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,GAAG;QACnB,OAAO,KAAK,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;IACvC,CAAC;IAED,mBAAmB;QACf,OAAO,CAAC,IAAI,CAAC,SAAS,KAAK,gBAAgB,CAAC,CAAC;IACjD,CAAC;IAED,MAAM,CAAC,oBAAoB,CAAC,OAAoB,EAAE,MAAY;QAC1D,OAAO,IAAI,uBAAuB,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IACxD,CAAC;IAED,MAAM,CAAC,UAAU,CAAC,OAAgB,EAAE,SAAyB,EAAE,aAA6B;QACxF,IAAI,SAAS,IAAI,IAAI,EAAE;YAAE,SAAS,GAAG,gBAAgB,CAAC;SAAE;QACxD,IAAI,aAAa,IAAI,IAAI,EAAE;YAAE,aAAa,GAAG,IAAI,CAAC;SAAE;QAEpD,MAAM,OAAO,GAAG,IAAI,YAAY,CAAC,YAAa,OAAO,CAAC,OAAO,CAAC,IAAI,CAAE,OAAQ,SAAU,EAAE,CAAC,CAAC;QAC1F,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC;QACzB,IAAI,aAAa,EAAE;YAAE,OAAO,CAAC,cAAc,CAAC,EAAE,EAAE,aAAa,CAAC,CAAC;SAAE;QAEjE,IAAI,SAAS,KAAK,gBAAgB,EAAE;YAChC,OAAO,CAAC,SAAS,GAAG,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE;gBACrD,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;gBACtC,OAAO,IAAI,CAAC;YAChB,CAAC,CAAC;SACL;QAED,OAAO,OAAO,CAAC;IACnB,CAAC;CAEJ"} \ No newline at end of file diff --git a/lib.esm/providers/provider-jsonrpc.js b/lib.esm/providers/provider-jsonrpc.js index f35fb4ff2..21357d393 100644 --- a/lib.esm/providers/provider-jsonrpc.js +++ b/lib.esm/providers/provider-jsonrpc.js @@ -5,7 +5,7 @@ import { getBuiltinCallException } from "../abi/index.js"; import { getAddress, resolveAddress } from "../address/index.js"; import { TypedDataEncoder } from "../hash/index.js"; import { accessListify } from "../transaction/index.js"; -import { defineProperties, getBigInt, hexlify, isHexString, toQuantity, toUtf8Bytes, makeError, throwArgumentError, throwError, FetchRequest, resolveProperties } from "../utils/index.js"; +import { defineProperties, getBigInt, hexlify, isHexString, toQuantity, toUtf8Bytes, makeError, assert, assertArgument, FetchRequest, resolveProperties } from "../utils/index.js"; import { AbstractProvider, UnmanagedSubscriber } from "./abstract-provider.js"; import { AbstractSigner } from "./abstract-signer.js"; import { Network } from "./network.js"; @@ -58,7 +58,7 @@ export class JsonRpcSigner extends AbstractSigner { defineProperties(this, { address }); } connect(provider) { - return throwError("cannot reconnect JsonRpcSigner", "UNSUPPORTED_OPERATION", { + assert(false, "cannot reconnect JsonRpcSigner", "UNSUPPORTED_OPERATION", { operation: "signer.connect" }); } @@ -79,9 +79,7 @@ export class JsonRpcSigner extends AbstractSigner { const _from = tx.from; promises.push((async () => { const from = await resolveAddress(_from, this.provider); - if (from == null || from.toLowerCase() !== this.address.toLowerCase()) { - throwArgumentError("from address mismatch", "transaction", _tx); - } + assertArgument(from != null && from.toLowerCase() === this.address.toLowerCase(), "from address mismatch", "transaction", _tx); tx.from = from; })()); } @@ -138,9 +136,7 @@ export class JsonRpcSigner extends AbstractSigner { // Make sure the from matches the sender if (tx.from) { const from = await resolveAddress(tx.from, this.provider); - if (from == null || from.toLowerCase() !== this.address.toLowerCase()) { - return throwArgumentError("from address mismatch", "transaction", _tx); - } + assertArgument(from != null && from.toLowerCase() === this.address.toLowerCase(), "from address mismatch", "transaction", _tx); tx.from = from; } else { @@ -160,9 +156,7 @@ export class JsonRpcSigner extends AbstractSigner { // Populate any ENS names (in-place) const populated = await TypedDataEncoder.resolveNames(domain, types, value, async (value) => { const address = await resolveAddress(value); - if (address == null) { - return throwArgumentError("TypedData does not support null address", "value", value); - } + assertArgument(address != null, "TypedData does not support null address", "value", value); return address; }); return await this.provider.send("eth_signTypedData_v4", [ @@ -277,9 +271,7 @@ export class JsonRpcApiProvider extends AbstractProvider { // This could be relaxed in the future to just check equivalent networks const staticNetwork = this._getOption("staticNetwork"); if (staticNetwork) { - if (staticNetwork !== network) { - throwArgumentError("staticNetwork MUST match network object", "options", options); - } + assertArgument(staticNetwork === network, "staticNetwork MUST match network object", "options", options); this.#network = staticNetwork; } } @@ -296,9 +288,7 @@ export class JsonRpcApiProvider extends AbstractProvider { * is detected, and if it has changed, the call will reject. */ get _network() { - if (!this.#network) { - throwError("network is not available yet", "NETWORK_ERROR"); - } + assert(this.#network, "network is not available yet", "NETWORK_ERROR"); return this.#network; } /** @@ -307,7 +297,7 @@ export class JsonRpcApiProvider extends AbstractProvider { * Sub-classes **MUST** override this. */ _send(payload) { - return throwError("sub-classes must override _send", "UNSUPPORTED_OPERATION", { + assert(false, "sub-classes must override _send", "UNSUPPORTED_OPERATION", { operation: "jsonRpcApiProvider._send" }); } diff --git a/lib.esm/providers/provider-jsonrpc.js.map b/lib.esm/providers/provider-jsonrpc.js.map index 587818671..17011bfdd 100644 --- a/lib.esm/providers/provider-jsonrpc.js.map +++ b/lib.esm/providers/provider-jsonrpc.js.map @@ -1 +1 @@ -{"version":3,"file":"provider-jsonrpc.js","sourceRoot":"","sources":["../../src.ts/providers/provider-jsonrpc.ts"],"names":[],"mappings":"AAAA,SAAS;AACT,yBAAyB;AAEzB,yQAAyQ;AAEzQ,OAAO,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EACH,gBAAgB,EAAE,SAAS,EAAE,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,WAAW,EAC1E,SAAS,EAAE,kBAAkB,EAAE,UAAU,EACzC,YAAY,EAAE,iBAAiB,EAClC,MAAM,mBAAmB,CA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AK,CAAC,KAAK,QAAQ,EAAE;QAC5B,IAAI;YACA,OAAO,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;SACzC;QAAC,OAAO,KAAK,EAAE,GAAG;KACtB;IAED,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAS,eAAe,CAAC,KAAU,EAAE,MAAqB;IACtD,IAAI,KAAK,IAAI,IAAI,EAAE;QAAE,OAAO;KAAE;IAE9B,4CAA4C;IAC5C,IAAI,OAAM,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,QAAQ,EAAE;QACpC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;KAC9B;IAED,qBAAqB;IACrB,IAAI,OAAM,CAAC,KAAK,CAAC,KAAK,QAAQ,EAAE;QAC5B,KAAK,MAAM,GAAG,IAAI,KAAK,EAAE;YACrB,eAAe,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,CAAC;SACvC;KACJ;IAED,mDAAmD;IACnD,IAAI,OAAM,CAAC,KAAK,CAAC,KAAK,QAAQ,EAAE;QAC5B,IAAI;YACA,OAAO,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,CAAC;SACrD;QAAC,OAAO,KAAK,EAAE,GAAG;KACtB;AACL,CAAC;AAED,SAAS,cAAc,CAAC,KAAU;IAC9B,MAAM,MAAM,GAAkB,EAAG,CAAC;IAClC,eAAe,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IAC/B,OAAO,MAAM,CAAC;AAClB,CAAC"} \ No newline at end of file +{"version":3,"file":"provider-jsonrpc.js","sourceRoot":"","sources":["../../src.ts/providers/provider-jsonrpc.ts"],"names":[],"mappings":"AAAA,SAAS;AACT,yBAAyB;AAEzB,yQAAyQ;AAEzQ,OAAO,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,cAAc,E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/lib.esm/providers/provider-socket.js index c6e1e81b0..959c3965a 100644 --- a/lib.esm/providers/provider-socket.js +++ b/lib.esm/providers/provider-socket.js @@ -9,7 +9,7 @@ * - a sub-class MUST call `_processMessage(string)` for each message */ import { UnmanagedSubscriber } from "./abstract-provider.js"; -import { assertArgument, throwError } from "../utils/index.js"; +import { assert, assertArgument } from "../utils/index.js"; import { JsonRpcApiProvider } from "./provider-jsonrpc.js"; export class SocketSubscriber { #provider; @@ -41,11 +41,7 @@ export class SocketSubscriber { // @TODO: pause should trap the current blockNumber, unsub, and on resume use getLogs // and resume pause(dropWhilePaused) { - if (!dropWhilePaused) { - throwError("preserve logs while paused not supported by SocketSubscriber yet", "UNSUPPORTED_OPERATION", { - operation: "pause(false)" - }); - } + assert(dropWhilePaused, "preserve logs while paused not supported by SocketSubscriber yet", "UNSUPPORTED_OPERATION", { operation: "pause(false)" }); this.#paused = !!dropWhilePaused; } resume() { diff --git a/lib.esm/providers/provider-socket.js.map b/lib.esm/providers/provider-socket.js.map index 424d24b1c..07ac53bb1 100644 --- a/lib.esm/providers/provider-socket.js.map +++ b/lib.esm/providers/provider-socket.js.map @@ -1 +1 @@ -{"version":3,"file":"provider-socket.js","sourceRoot":"","sources":["../../src.ts/providers/provider-socket.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAgB3D,MAAM,OAAO,gBAAgB;IACzB,SAAS,CAAiB;IAE1B,OAAO,CAAS;IAChB,IAAI,MAAM,KAAiB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IAE7D,SAAS,CAAiC;IAC1C,OAAO,CAAiB;IAExB,YAAY,CAAuB;IAEnC,YAAY,QAAw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AI,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;iBACxC;gBACD,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;aACtC;SACJ;IACL,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,OAAe;QACxB,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAC;IACtD,CAAC;CACJ"} \ No newline at end of file +{"version":3,"file":"provider-socket.js","sourceRoot":"","sources":["../../src.ts/providers/provider-socket.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAgB3D,MAAM,OAAO,gBAAgB;IACzB,SAAS,CAAiB;IAE1B,OAAO,CAAS;IAChB,IAAI,MAAM,KAAiB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IAE7D,SAAS,CAAiC;IAC1C,OAAO,CAAiB;IAExB,YAAY,CAAuB;IAEnC,YAAY,QAAwB,EAAE,MAAkB;QACpD,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;QAC1B,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QACtC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;QACtB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;QACpB,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;IAC7B,CAAC;IAED,KAAK;QACD,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,eAAe,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE;YAAE,CAAC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U,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;YAChD,IAAI,QAAQ,IAAI,IAAI,EAAE;gBAClB,OAAO,CAAC,GAAG,CAAC,2CAA2C,CAAC,CAAC;gBACzD,OAAO;aACV;YACD,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;YAElC,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;YAErC;;;;;;;;;;;cAWE;SACO;aAAM,IAAI,MAAM,CAAC,MAAM,KAAK,kBAAkB,EAAE;YAC7C,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC;YAC5C,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;YAC5C,IAAI,UAAU,EAAE;gBACZ,UAAU,CAAC,cAAc,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;aACnD;iBAAM;gBACH,IAAI,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;gBAC1C,IAAI,OAAO,IAAI,IAAI,EAAE;oBACjB,OAAO,GAAG,EAAG,CAAC;oBACd,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;iBACxC;gBACD,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;aACtC;SACJ;IACL,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,OAAe;QACxB,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAC;IACtD,CAAC;CACJ"} \ No newline at end of file diff --git a/lib.esm/providers/provider.js b/lib.esm/providers/provider.js index 6a6c4c194..b61d17253 100644 --- a/lib.esm/providers/provider.js +++ b/lib.esm/providers/provider.js @@ -1,5 +1,5 @@ //import { resolveAddress } from "@ethersproject/address"; -import { defineProperties, getBigInt, getNumber, hexlify, resolveProperties, assertArgument, isError, makeError, throwError } from "../utils/index.js"; +import { defineProperties, getBigInt, getNumber, hexlify, resolveProperties, assert, assertArgument, isError, makeError } from "../utils/index.js"; import { accessListify } from "../transaction/index.js"; const BN_0 = BigInt(0); // ----------------------- @@ -338,11 +338,7 @@ export class TransactionReceipt { return createRemovedTransactionFilter(this); } reorderedEvent(other) { - if (other && !other.isMined()) { - return throwError("unmined 'other' transction cannot be orphaned", "UNSUPPORTED_OPERATION", { - operation: "reorderedEvent(other)" - }); - } + assert(!other || other.isMined(), "unmined 'other' transction cannot be orphaned", "UNSUPPORTED_OPERATION", { operation: "reorderedEvent(other)" }); return createReorderedTransactionFilter(this, other); } } @@ -498,7 +494,7 @@ export class TransactionResponse { else if (tx.data === "0x" && tx.from === tx.to && tx.value === BN_0) { reason = "cancelled"; } - throwError("transaction was replaced", "TRANSACTION_REPLACED", { + assert(false, "transaction was replaced", "TRANSACTION_REPLACED", { cancelled: (reason === "replaced" || reason === "cancelled"), reason, replacement: tx.replaceableTransaction(startBlock), @@ -585,24 +581,12 @@ export class TransactionResponse { return (this.type === 2); } removedEvent() { - if (!this.isMined()) { - return throwError("unmined transaction canot be orphaned", "UNSUPPORTED_OPERATION", { - operation: "removeEvent()" - }); - } + assert(this.isMined(), "unmined transaction canot be orphaned", "UNSUPPORTED_OPERATION", { operation: "removeEvent()" }); return createRemovedTransactionFilter(this); } reorderedEvent(other) { - if (!this.isMined()) { - return throwError("unmined transaction canot be orphaned", "UNSUPPORTED_OPERATION", { - operation: "removeEvent()" - }); - } - if (other && !other.isMined()) { - return throwError("unmined 'other' transaction canot be orphaned", "UNSUPPORTED_OPERATION", { - operation: "removeEvent()" - }); - } + assert(this.isMined(), "unmined transaction canot be orphaned", "UNSUPPORTED_OPERATION", { operation: "removeEvent()" }); + assert(!other || other.isMined(), "unmined 'other' transaction canot be orphaned", "UNSUPPORTED_OPERATION", { operation: "removeEvent()" }); return createReorderedTransactionFilter(this, other); } /** diff --git a/lib.esm/providers/provider.js.map b/lib.esm/providers/provider.js.map index acf543f8f..4d8c9f718 100644 --- a/lib.esm/providers/provider.js.map +++ b/lib.esm/providers/provider.js.map @@ -1 +1 @@ -{"version":3,"file":"provider.js","sourceRoot":"","sources":["../../src.ts/providers/provider.ts"],"names":[],"mappings":"AAAA,0DAA0D;AAC1D,OAAO,EACH,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,iBAAiB,EAClE,cAAc,EAAE,OAAO,EAAE,SAAS,EAAE,UAAU,EACjD,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAWxD,MAAM,IAAI,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AAIvB,0BAA0B;AAE1B,SAAS,QAAQ,CAAI,KAA2B;IAC5C,IAAI,KAAK,IAAI,IAAI,EAAE;QAAE,OAAO,IAAI,CAAC;KAAE;IACnC,OAAO,KAAK,CAAC;AACjB,CAAC;AAED,SAAS,MAAM,CAAC,KAAoB;IAChC,IAAI,KAAK,IAAI,IAAI,EAAE;QAAE,OAAO,IAAI,CAAC;KAAE;IACnC,OAAO,KAAK,CAAC,QAAQ,EAAE,CAAC;AAC5B,CAAC;AAED,0DAA0D;AAC1D,MAAM,OAAO,OAAO;IACP,QAAQ,CAAiB;IACzB,YAAY,CAAiB;IAC7B,oBAAoB,CAAiB;IAE9C,YAAY,QAAwB,EAAE,YAA4B,EAAE,oBAAoC;QACpG,gBAAgB,CAAU,IAAI,EAAE;YAC5B,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC;YAC5B,YAAY,EAAE,QAAQ,CAAC,YAAY,CAAC;YACpC,oBAAoB,EAAE,QAAQ,CAAC,oBAAoB,CAAC;SACvD,CAAC,CAAC;IACP,CAAC;IAED,MAAM;QACF,MAAM,EACF,QAAQ,EAAE,YAAY,EAAE,oBAAoB,EAC/C,GAAG,IAAI,CAAC;QACT,OAAO;YACH,KAAK,EAAE,SAA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ACrC,cAAc,CAAC,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,IAAI,UAAU,IAAI,CAAC,EAAE,oBAAoB,EAAE,YAAY,EAAE,UAAU,CAAC,CAAC;QAChH,MAAM,EAAE,GAAG,IAAI,mBAAmB,CAAC,IAAI,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;QACxD,EAAE,CAAC,WAAW,GAAG,UAAU,CAAC;QAC5B,OAAO,EAAE,CAAC;IACd,CAAC;CACJ;AA+BD,SAAS,yBAAyB,CAAC,KAAuC;IACtE,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,CAAC;AAC5E,CAAC;AAED,SAAS,gCAAgC,CAAC,EAA4D,EAAE,KAAgE;IACpK,OAAO,EAAE,MAAM,EAAE,qBAAqB,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC;AACxD,CAAC;AAED,SAAS,8BAA8B,CAAC,EAA4D;IAChG,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,EAAE,EAAE,CAAC;AAC9C,CAAC;AAED,SAAS,sBAAsB,CAAC,GAAqJ;IACjL,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,EAAE;YAC9B,eAAe,EAAE,GAAG,CAAC,eAAe;YACpC,SAAS,EAAE,GAAG,CAAC,SAAS;YACxB,WAAW,EAAE,GAAG,CAAC,WAAW;YAC5B,OAAO,EAAE,GAAG,CAAC,OAAO;YACpB,IAAI,EAAE,GAAG,CAAC,IAAI;YACd,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;YACzC,KAAK,EAAE,GAAG,CAAC,KAAK;SACnB,EAAE,CAAC;AACR,CAAC"} \ No newline at end of file +{"version":3,"file":"provider.js","sourceRoot":"","sources":["../../src.ts/providers/provider.ts"],"names":[],"mappings":"AAAA,0DAA0D;AAC1D,OA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+BD,SAAS,yBAAyB,CAAC,KAAuC;IACtE,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,CAAC;AAC5E,CAAC;AAED,SAAS,gCAAgC,CAAC,EAA4D,EAAE,KAAgE;IACpK,OAAO,EAAE,MAAM,EAAE,qBAAqB,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC;AACxD,CAAC;AAED,SAAS,8BAA8B,CAAC,EAA4D;IAChG,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,EAAE,EAAE,CAAC;AAC9C,CAAC;AAED,SAAS,sBAAsB,CAAC,GAAqJ;IACjL,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,EAAE;YAC9B,eAAe,EAAE,GAAG,CAAC,eAAe;YACpC,SAAS,EAAE,GAAG,CAAC,SAAS;YACxB,WAAW,EAAE,GAAG,CAAC,WAAW;YAC5B,OAAO,EAAE,GAAG,CAAC,OAAO;YACpB,IAAI,EAAE,GAAG,CAAC,IAAI;YACd,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;YACzC,KAAK,EAAE,GAAG,CAAC,KAAK;SACnB,EAAE,CAAC;AACR,CAAC"} \ No newline at end of file diff --git a/lib.esm/providers/subscriber-filterid.js b/lib.esm/providers/subscriber-filterid.js index b508332bd..bb0991052 100644 --- a/lib.esm/providers/subscriber-filterid.js +++ b/lib.esm/providers/subscriber-filterid.js @@ -80,7 +80,6 @@ export class FilterIdEventSubscriber extends FilterIdSubscriber { } async _subscribe(provider) { const filterId = await provider.send("eth_newFilter", [this.#event]); - console.log("____SUB", filterId); return filterId; } async _emitResults(provider, results) { diff --git a/lib.esm/providers/subscriber-filterid.js.map b/lib.esm/providers/subscriber-filterid.js.map index b7292956a..b7b80c8af 100644 --- a/lib.esm/providers/subscriber-filterid.js.map +++ b/lib.esm/providers/subscriber-filterid.js.map @@ -1 +1 @@ -{"version":3,"file":"subscriber-filterid.js","sourceRoot":"","sources":["../../src.ts/providers/subscriber-filterid.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAQjE,SAAS,IAAI,CAAC,GAAQ;IAClB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;AAC3C,CAAC;AAED,MAAM,OAAO,kBAAkB;IAC3B,SAAS,CAAqB;IAE9B,gBAAgB,CAAyB;IACzC,OAAO,CAA+B;IAEtC,QAAQ,CAAiB;IAEzB,YAAY,QAA4B;QACpC,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;QAE1B,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC;QAC7B,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAErC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;IACzB,CAAC;IAED,UAAU,CAAC,QAA4B;QACnC,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;IACrD,CAAC;IAED,YAAY,CAAC,QAA0B,EAAE,MAAkB;QACvD,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;IACrD,CAAC;IAED,QAAQ,CAAC,QAA0B;QAC/B,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;IACrD,CAAC;IAED,KAAK,CAAC,KAAK,CAAC,WAAmB;QAC3B,IAAI;YACA,IAAI,IAAI,CAAC,gBAAgB,IAAI,IAAI,EAAE;gBAC/B,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;aAC3D;YAED,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC;YAC7C,IAAI,QAAQ,IAAI,IAAI,EAAE;gBAClB,IA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KAAK,CAAC,UAAU,CAAC,QAA4B;QACzC,OAAO,MAAM,QAAQ,CAAC,IAAI,CAAC,iCAAiC,EAAE,EAAG,CAAC,CAAC;IACvE,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,QAA4B,EAAE,OAAmB;QAChE,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE;YAC1B,QAAQ,CAAC,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;SACpC;IACL,CAAC;CACJ"} \ No newline at end of file +{"version":3,"file":"subscriber-filterid.js","sourceRoot":"","sources":["../../src.ts/providers/subscriber-filterid.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAQjE,SAAS,IAAI,CAAC,GAAQ;IAClB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;AAC3C,CAAC;AAED,MAAM,OAAO,kBAAkB;IAC3B,SAAS,CAAqB;IAE9B,gBAAgB,CAAyB;IACzC,OAAO,CAA+B;IAEtC,QAAQ,CAAiB;IAEzB,YAAY,QAA4B;QACpC,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;QAE1B,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC;QAC7B,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAErC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;IACzB,CAAC;IAED,UAAU,CAAC,QAA4B;QACnC,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;IACrD,CAAC;IAED,YAAY,CAAC,QAA0B,EAAE,MAAkB;QACvD,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;IACrD,CAAC;IAED,QAAQ,CAAC,QAA0B;QAC/B,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;IACrD,CAAC;IAED,KAAK,CAAC,KAAK,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AO,EAAE;YAC1B,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC;SAC5E;IACL,CAAC;CACJ;AAED,MAAM,OAAO,yBAA0B,SAAQ,kBAAkB;IAC7D,KAAK,CAAC,UAAU,CAAC,QAA4B;QACzC,OAAO,MAAM,QAAQ,CAAC,IAAI,CAAC,iCAAiC,EAAE,EAAG,CAAC,CAAC;IACvE,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,QAA4B,EAAE,OAAmB;QAChE,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE;YAC1B,QAAQ,CAAC,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;SACpC;IACL,CAAC;CACJ"} \ No newline at end of file diff --git a/lib.esm/providers/subscriber-polling.js b/lib.esm/providers/subscriber-polling.js index 489da947d..8ca0f19d2 100644 --- a/lib.esm/providers/subscriber-polling.js +++ b/lib.esm/providers/subscriber-polling.js @@ -1,4 +1,4 @@ -import { isHexString, throwError } from "../utils/index.js"; +import { assert, isHexString } from "../utils/index.js"; function copy(obj) { return JSON.parse(JSON.stringify(obj)); } @@ -9,7 +9,7 @@ export function getPollingSubscriber(provider, event) { if (isHexString(event, 32)) { return new PollingTransactionSubscriber(provider, event); } - return throwError("unsupported polling event", "UNSUPPORTED_OPERATION", { + assert(false, "unsupported polling event", "UNSUPPORTED_OPERATION", { operation: "getPollingSubscriber", info: { event } }); } diff --git a/lib.esm/providers/subscriber-polling.js.map b/lib.esm/providers/subscriber-polling.js.map index 820e43ec7..4fff9e90b 100644 --- a/lib.esm/providers/subscriber-polling.js.map +++ b/lib.esm/providers/subscriber-polling.js.map @@ -1 +1 @@ -{"version":3,"file":"subscriber-polling.js","sourceRoot":"","sources":["../../src.ts/providers/subscriber-polling.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM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D,6DAA6D;QAC7D,4DAA4D;QAC5D,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE;YACnB,IAAI,IAAI,CAAC,YAAY,GAAG,WAAW,GAAG,EAAE,EAAE;gBACtC,IAAI,CAAC,YAAY,GAAG,WAAW,GAAG,EAAE,CAAC;aACxC;YACD,OAAO;SACV;QAED,IAAI,CAAC,YAAY,GAAG,WAAW,CAAC;QAEhC,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE;YACpB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;SAC1C;IACL,CAAC;IAED,KAAK;QACD,IAAI,IAAI,CAAC,YAAY,KAAK,CAAC,CAAC,EAAE;YAC1B,IAAI,CAAC,SAAS,CAAC,cAAc,EAAE,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,EAAE;gBACjD,IAAI,CAAC,YAAY,GAAG,WAAW,CAAC;YACpC,CAAC,CAAC,CAAC;SACN;QACD,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IAC7C,CAAC;IAED,IAAI;QACA,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IAC9C,CAAC;IAED,KAAK,CAAC,eAAyB;QAC3B,IAAI,CAAC,IAAI,EAAE,CAAC;QACZ,IAAI,eAAe,EAAE;YAAE,IAAI,CAAC,YAAY,GAAG,CAAC,CAAC,CAAC;SAAE;IACpD,CAAC;IAED,MAAM;QACF,IAAI,CAAC,KAAK,EAAE,CAAC;IACjB,CAAC;CACJ"} \ No newline at end of file +{"version":3,"file":"subscriber-polling.js","sourceRoot":"","sources":["../../src.ts/providers/subscriber-polling.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAKxD,SAAS,IAAI,CAAC,GAAQ;IAClB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AAC,MAAM,KAAK,CAAC,EAAE;YACnB,IAAI,IAAI,CAAC,YAAY,GAAG,WAAW,GAAG,EAAE,EAAE;gBACtC,IAAI,CAAC,YAAY,GAAG,WAAW,GAAG,EAAE,CAAC;aACxC;YACD,OAAO;SACV;QAED,IAAI,CAAC,YAAY,GAAG,WAAW,CAAC;QAEhC,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE;YACpB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;SAC1C;IACL,CAAC;IAED,KAAK;QACD,IAAI,IAAI,CAAC,YAAY,KAAK,CAAC,CAAC,EAAE;YAC1B,IAAI,CAAC,SAAS,CAAC,cAAc,EAAE,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,EAAE;gBACjD,IAAI,CAAC,YAAY,GAAG,WAAW,CAAC;YACpC,CAAC,CAAC,CAAC;SACN;QACD,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IAC7C,CAAC;IAED,IAAI;QACA,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IAC9C,CAAC;IAED,KAAK,CAAC,eAAyB;QAC3B,IAAI,CAAC,IAAI,EAAE,CAAC;QACZ,IAAI,eAAe,EAAE;YAAE,IAAI,CAAC,YAAY,GAAG,CAAC,CAAC,CAAC;SAAE;IACpD,CAAC;IAED,MAAM;QACF,IAAI,CAAC,KAAK,EAAE,CAAC;IACjB,CAAC;CACJ"} \ No newline at end of file diff --git a/lib.esm/transaction/transaction.js b/lib.esm/transaction/transaction.js index 90fa8c1d0..28ce32a44 100644 --- a/lib.esm/transaction/transaction.js +++ b/lib.esm/transaction/transaction.js @@ -1,6 +1,6 @@ import { getAddress } from "../address/index.js"; import { keccak256, Signature } from "../crypto/index.js"; -import { concat, decodeRlp, encodeRlp, getBytes, getStore, getBigInt, getNumber, hexlify, setStore, throwArgumentError, toArray, zeroPadValue } from "../utils/index.js"; +import { concat, decodeRlp, encodeRlp, getBytes, getStore, getBigInt, getNumber, hexlify, setStore, assertArgument, toArray, zeroPadValue } from "../utils/index.js"; import { accessListify } from "./accesslist.js"; import { recoverAddress } from "./address.js"; const BN_0 = BigInt(0); @@ -20,7 +20,7 @@ function handleData(value, param) { return hexlify(value); } catch (error) { - return throwArgumentError("invalid data", param, value); + assertArgument(false, "invalid data", param, value); } } function handleAccessList(value, param) { @@ -28,7 +28,7 @@ function handleAccessList(value, param) { return accessListify(value); } catch (error) { - return throwArgumentError("invalid accessList", param, value); + assertArgument(false, "invalid accessList", param, value); } } function handleNumber(_value, param) { @@ -42,17 +42,13 @@ function handleUint(_value, param) { return BN_0; } const value = getBigInt(_value, param); - if (value > BN_MAX_UINT) { - throwArgumentError("value exceeds uint size", param, value); - } + assertArgument(value <= BN_MAX_UINT, "value exceeds uint size", param, value); return value; } function formatNumber(_value, name) { const value = getBigInt(_value, "value"); const result = toArray(value); - if (result.length > 32) { - throwArgumentError(`value too large`, `tx.${name}`, value); - } + assertArgument(result.length <= 32, `value too large`, `tx.${name}`, value); return result; } function formatAccessList(value) { @@ -60,9 +56,7 @@ function formatAccessList(value) { } function _parseLegacy(data) { const fields = decodeRlp(data); - if (!Array.isArray(fields) || (fields.length !== 9 && fields.length !== 6)) { - return throwArgumentError("invalid field count for legacy transaction", "data", data); - } + assertArgument(Array.isArray(fields) && (fields.length === 9 || fields.length === 6), "invalid field count for legacy transaction", "data", data); const tx = { type: 0, nonce: handleNumber(fields[0], "nonce"), @@ -92,9 +86,7 @@ function _parseLegacy(data) { } tx.chainId = chainId; // Signed Legacy Transaction - if (chainId === BN_0 && (v < BN_27 || v > BN_28)) { - throwArgumentError("non-canonical legacy v", "v", fields[6]); - } + assertArgument(chainId !== BN_0 || (v === BN_27 || v === BN_28), "non-canonical legacy v", "v", fields[6]); tx.signature = Signature.from({ r: zeroPadValue(fields[7], 32), s: zeroPadValue(fields[8], 32), @@ -119,9 +111,7 @@ function _serializeLegacy(tx, sig) { chainId = getBigInt(tx.chainId, "tx.chainId"); // We have a chainId in the tx and an EIP-155 v in the signature, // make sure they agree with each other - if (sig && sig.networkV != null && sig.legacyChainId !== chainId) { - throwArgumentError("tx.chainId/sig.v mismatch", "sig", sig); - } + assertArgument(!sig || sig.networkV == null || sig.legacyChainId === chainId, "tx.chainId/sig.v mismatch", "sig", sig); } else if (sig) { // No chainId provided, but the signature is signing with EIP-155; derive chainId @@ -146,7 +136,7 @@ function _serializeLegacy(tx, sig) { v = Signature.getChainIdV(chainId, sig.v); } else if (BigInt(sig.v) !== v) { - throwArgumentError("tx.chainId/sig.v mismatch", "sig", sig); + assertArgument(false, "tx.chainId/sig.v mismatch", "sig", sig); } fields.push(toArray(v)); fields.push(toArray(sig.r)); @@ -162,7 +152,7 @@ function _parseEipSignature(tx, fields, serialize) { } } catch (error) { - return throwArgumentError("invalid yParity", "yParity", fields[0]); + assertArgument(false, "invalid yParity", "yParity", fields[0]); } const r = zeroPadValue(fields[1], 32); const s = zeroPadValue(fields[2], 32); @@ -171,9 +161,7 @@ function _parseEipSignature(tx, fields, serialize) { } function _parseEip1559(data) { const fields = decodeRlp(getBytes(data).slice(1)); - if (!Array.isArray(fields) || (fields.length !== 9 && fields.length !== 12)) { - throwArgumentError("invalid field count for transaction type: 2", "data", hexlify(data)); - } + assertArgument(Array.isArray(fields) && (fields.length === 9 || fields.length === 12), "invalid field count for transaction type: 2", "data", hexlify(data)); const maxPriorityFeePerGas = handleUint(fields[2], "maxPriorityFeePerGas"); const maxFeePerGas = handleUint(fields[3], "maxFeePerGas"); const tx = { @@ -218,9 +206,7 @@ function _serializeEip1559(tx, sig) { } function _parseEip2930(data) { const fields = decodeRlp(getBytes(data).slice(1)); - if (!Array.isArray(fields) || (fields.length !== 8 && fields.length !== 11)) { - throwArgumentError("invalid field count for transaction type: 1", "data", hexlify(data)); - } + assertArgument(Array.isArray(fields) && (fields.length === 8 || fields.length === 11), "invalid field count for transaction type: 1", "data", hexlify(data)); const tx = { type: 1, chainId: handleUint(fields[0], "chainId"), diff --git a/lib.esm/transaction/transaction.js.map b/lib.esm/transaction/transaction.js.map index 4110cdca9..01a9c3946 100644 --- a/lib.esm/transaction/transaction.js.map +++ b/lib.esm/transaction/transaction.js.map @@ -1 +1 @@ -{"version":3,"file":"transaction.js","sourceRoot":"","sources":["../../src.ts/transaction/transaction.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EACH,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,EAC/E,QAAQ,EAAE,kBAAkB,EAAE,OAAO,EAAE,YAAY,EACtD,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAQ9C,MAAM,IAAI,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AACvB,MAAM,IAAI,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AACvB,MAAM,KAAK,GAAG,MAAM,CAAC,EAAE,CAAC,CAAA;AACxB,MAAM,KAAK,GAAG,MAAM,CAAC,EAAE,CAAC,CAAA;AACxB,MAAM,KAAK,GAAG,MAAM,CAAC,EAAE,CAAC,CAAC;AACzB,MAAM,WAAW,GAAG,MAAM,CAAC,oEAAoE,CAAC,CAAC;AA2BjG,SAAS,aAAa,CAAC,KAAa;IAChC,IAAI,KAAK,KAAK,IAAI,EAAE;QAAE,OAAO,IAAI,CAAC;KAAE;IACpC,OAAO,UAAU,CAAC,KAAK,CAAC,CAAC;AAC7B,CAAC;AAED,SAAS,UAAU,CAAC,KAAa,EAAE,KAAa;IAC5C,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AAE;QAClD,IAAI,EAAE,CAAC,OAAO,IAAI,IAAI,EAAE;YAAE,MAAM,CAAC,OAAO,GAAG,EAAE,CAAC,OAAO,CAAC;SAAE;QACxD,IAAI,EAAE,CAAC,SAAS,IAAI,IAAI,EAAE;YAAE,MAAM,CAAC,SAAS,GAAG,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC;SAAE;QAC9E,IAAI,EAAE,CAAC,UAAU,IAAI,IAAI,EAAE;YAAE,MAAM,CAAC,UAAU,GAAG,EAAE,CAAC,UAAU,CAAC;SAAE;QAEjE,IAAI,EAAE,CAAC,IAAI,IAAI,IAAI,EAAE;YACjB,IAAI,MAAM,CAAC,QAAQ,EAAE,EAAE;gBACnB,IAAI,MAAM,CAAC,IAAI,KAAK,EAAE,CAAC,IAAI,EAAE;oBAAE,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC,CAAC;iBAAE;aACrE;iBAAM;gBACH,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAC;aAC/D;SACJ;QAED,IAAI,EAAE,CAAC,IAAI,IAAI,IAAI,EAAE;YACjB,IAAI,MAAM,CAAC,QAAQ,EAAE,EAAE;gBACnB,IAAI,MAAM,CAAC,IAAI,CAAC,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,WAAW,EAAE,EAAE;oBAAE,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC,CAAC;iBAAE;aACzG;iBAAM;gBACH,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAC;aAC9D;SACJ;QAED,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ"} \ No newline at end of file +{"version":3,"file":"transaction.js","sourceRoot":"","sources":["../../src.ts/transaction/transaction.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;A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AAe,CAAC,CAAC;iBAAE;aACrE;iBAAM;gBACH,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAC;aAC/D;SACJ;QAED,IAAI,EAAE,CAAC,IAAI,IAAI,IAAI,EAAE;YACjB,IAAI,MAAM,CAAC,QAAQ,EAAE,EAAE;gBACnB,IAAI,MAAM,CAAC,IAAI,CAAC,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,WAAW,EAAE,EAAE;oBAAE,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC,CAAC;iBAAE;aACzG;iBAAM;gBACH,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAC;aAC9D;SACJ;QAED,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ"} \ No newline at end of file diff --git a/lib.esm/utils/base58.js b/lib.esm/utils/base58.js index 8dabb71e6..4c31c66c9 100644 --- a/lib.esm/utils/base58.js +++ b/lib.esm/utils/base58.js @@ -1,5 +1,5 @@ import { getBytes } from "./data.js"; -import { throwArgumentError } from "./errors.js"; +import { assertArgument } from "./errors.js"; import { toBigInt, toHex } from "./maths.js"; const Alphabet = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"; let Lookup = null; @@ -11,9 +11,7 @@ function getAlpha(letter) { } } const result = Lookup[letter]; - if (result == null) { - throwArgumentError(`invalid base58 value`, "letter", letter); - } + assertArgument(result != null, `invalid base58 value`, "letter", letter); return result; } const BN_0 = BigInt(0); diff --git a/lib.esm/utils/base58.js.map b/lib.esm/utils/base58.js.map index 7ad5d33ba..fdcd4a372 100644 --- a/lib.esm/utils/base58.js.map +++ b/lib.esm/utils/base58.js.map @@ -1 +1 @@ -{"version":3,"file":"base58.js","sourceRoot":"","sources":["../../src.ts/utils/base58.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,EAAE,kBAAkB,EAAE,MAAM,aA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,CAAC,CAAC;IACvC,IAAI,MAAM,GAAG,EAAE,CAAC;IAChB,OAAO,KAAK,EAAE;QACV,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC,KAAK,GAAG,KAAK,CAAC,CAAC,GAAG,MAAM,CAAC;QAClD,KAAK,IAAI,KAAK,CAAC;KAClB;IACD,OAAO,MAAM,CAAC;AAClB,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,YAAY,CAAC,KAAa;IACtC,IAAI,MAAM,GAAG,IAAI,CAAC;IAClB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACnC,MAAM,IAAI,KAAK,CAAC;QAChB,MAAM,IAAI,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;KAChC;IACD,OAAO,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;AACnC,CAAC"} \ No newline at end of file diff --git a/lib.esm/utils/data.js b/lib.esm/utils/data.js index 6aeabea58..2b375c7b1 100644 --- a/lib.esm/utils/data.js +++ b/lib.esm/utils/data.js @@ -1,4 +1,4 @@ -import { throwArgumentError, throwError } from "./errors.js"; +import { assert, assertArgument } from "./errors.js"; function _getBytes(value, name, copy) { if (value instanceof Uint8Array) { if (copy) { @@ -15,7 +15,7 @@ function _getBytes(value, name, copy) { } return result; } - return throwArgumentError("invalid BytesLike value", name || "value", value); + assertArgument(false, "invalid BytesLike value", name || "value", value); } /** * Get a typed Uint8Array for %%value%%. If already a Uint8Array @@ -104,7 +104,7 @@ export function dataLength(data) { export function dataSlice(data, start, end) { const bytes = getBytes(data); if (end != null && end > bytes.length) { - throwError("cannot slice beyond data bounds", "BUFFER_OVERRUN", { + assert(false, "cannot slice beyond data bounds", "BUFFER_OVERRUN", { buffer: bytes, length: bytes.length, offset: end }); } @@ -123,13 +123,11 @@ export function stripZerosLeft(data) { } function zeroPad(data, length, left) { const bytes = getBytes(data); - if (length < bytes.length) { - throwError("padding exceeds data length", "BUFFER_OVERRUN", { - buffer: new Uint8Array(bytes), - length: length, - offset: length + 1 - }); - } + assert(length >= bytes.length, "padding exceeds data length", "BUFFER_OVERRUN", { + buffer: new Uint8Array(bytes), + length: length, + offset: length + 1 + }); const result = new Uint8Array(length); result.fill(0); if (left) { diff --git a/lib.esm/utils/data.js.map b/lib.esm/utils/data.js.map index 6eaf2e393..ecc764ad9 100644 --- a/lib.esm/utils/data.js.map +++ b/lib.esm/utils/data.js.map @@ -1 +1 @@ -{"version":3,"file":"data.js","sourceRoot":"","sources":["../../src.ts/utils/data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAK7D,SAAS,SAAS,CAAC,KAAgB,EAAE,IAAa,EAAE,IAAc;IAC9D,IAAI,KAAK,YAAY,UAAU,EAAE;QAC7B,IAAI,IAAI,EAAE;YAAE,OAAO,IAAI,UAAU,CAAC,KAAK,CAAC,CAAC;SAAE;QAC3C,OAAO,KAAK,CAAC;KAChB;IAED,IAAI,OAAM,CAAC,KAAK,CAAC,KAAK,QAAQ,IAAI,KAAK,CAAC,KAAK,CAAC,0BAA0B,CAAC,EAAE;QACvE,MAAM,MAAM,GAAG,IAAI,UAAU,CAAC,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;QACtD,IAAI,MAAM,GAAG,CAAC,CAAC;QACf,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YACpC,MAAM,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;YAC9D,MAAM,IAAI,CAAC,CAAC;SACf;QACD,OAAO,MAAM,CAAC;KACjB;IAED,OAAO,kBAAkB,CAAC,yBAAy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EAAE,MAAc;IACxD,OAAO,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;AACxC,CAAC"} \ No newline at end of file diff --git a/lib.esm/utils/errors.js b/lib.esm/utils/errors.js index 28099d0c3..c42b35003 100644 --- a/lib.esm/utils/errors.js +++ b/lib.esm/utils/errors.js @@ -77,22 +77,14 @@ export function makeError(message, code, info) { } /** * Throws an EthersError with %%message%%, %%code%% and additional error - * info. + * %%info%% when %%check%% is falsish.. * * @see [[api:makeError]] */ -export function throwError(message, code, info) { - throw makeError(message, code, info); -} -/** - * Throws an [[api:ArgumentError]] with %%message%% for the parameter with - * %%name%% and the %%value%%. - */ -export function throwArgumentError(message, name, value) { - return throwError(message, "INVALID_ARGUMENT", { - argument: name, - value: value - }); +export function assert(check, message, code, info) { + if (!check) { + throw makeError(message, code, info); + } } /** * A simple helper to simply ensuring provided arguments match expected @@ -102,26 +94,20 @@ export function throwArgumentError(message, name, value) { * any further code does not need additional compile-time checks. */ export function assertArgument(check, message, name, value) { - if (!check) { - throwArgumentError(message, name, value); - } + assert(check, message, "INVALID_ARGUMENT", { argument: name, value: value }); } export function assertArgumentCount(count, expectedCount, message = "") { if (message) { message = ": " + message; } - if (count < expectedCount) { - throwError("missing arguemnt" + message, "MISSING_ARGUMENT", { - count: count, - expectedCount: expectedCount - }); - } - if (count > expectedCount) { - throwError("too many arguemnts" + message, "UNEXPECTED_ARGUMENT", { - count: count, - expectedCount: expectedCount - }); - } + assert(count >= expectedCount, "missing arguemnt" + message, "MISSING_ARGUMENT", { + count: count, + expectedCount: expectedCount + }); + assert(count <= expectedCount, "too many arguemnts" + message, "UNEXPECTED_ARGUMENT", { + count: count, + expectedCount: expectedCount + }); } const _normalizeForms = ["NFD", "NFC", "NFKD", "NFKC"].reduce((accum, form) => { try { @@ -150,11 +136,9 @@ const _normalizeForms = ["NFD", "NFC", "NFKD", "NFKC"].reduce((accum, form) => { * Throws if the normalization %%form%% is not supported. */ export function assertNormalize(form) { - if (_normalizeForms.indexOf(form) === -1) { - throwError("platform missing String.prototype.normalize", "UNSUPPORTED_OPERATION", { - operation: "String.prototype.normalize", info: { form } - }); - } + assert(_normalizeForms.indexOf(form) >= 0, "platform missing String.prototype.normalize", "UNSUPPORTED_OPERATION", { + operation: "String.prototype.normalize", info: { form } + }); } /** * Many classes use file-scoped values to guard the constructor, @@ -169,7 +153,7 @@ export function assertPrivate(givenGuard, guard, className = "") { method += "."; operation += " " + className; } - throwError(`private constructor; use ${method}from* methods`, "UNSUPPORTED_OPERATION", { + assert(false, `private constructor; use ${method}from* methods`, "UNSUPPORTED_OPERATION", { operation }); } diff --git a/lib.esm/utils/errors.js.map b/lib.esm/utils/errors.js.map index 45fc61a3e..8bb5ae09c 100644 --- a/lib.esm/utils/errors.js.map +++ b/lib.esm/utils/errors.js.map @@ -1 +1 @@ -{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src.ts/utils/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEzC,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAWjD,mDAAmD;AACnD,MAAM,iBAAiB,GAAyD,EAAG,CAAC;AACpF,iBAAiB,CAAC,gBAAgB,GAAG,SAAS,CAAC;AAC/C,iBAAiB,CAAC,aAAa,GAAG,UAAU,CAAC;AAC7C,iBAAiB,CAAC,cAAc,GAAG,UAAU,CAAC;AAkO9C;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,UAAU,OAAO,CAAqD,KAAU,EAAE,IAAO;IAC3F,OAAO,CAAC,KAAK,IAAkB,KAAM,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC;AACzD,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,eAAe,CAAC,KAAU;IACtC,OAAO,OAAO,CAAC,KAAK,EAAE,gBAAgB,CAAC,CAAC;AAC5C,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,UAAU,SAAS,CAAqD,OAAe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K,EAAE,GAAG;IAElB,OAAO,KAAK,CAAC;AACjB,CAAC,EAAiB,EAAE,CAAC,CAAC;AAEtB;;GAEG;AACH,MAAM,UAAU,eAAe,CAAC,IAAY;IACxC,MAAM,CAAC,eAAe,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,6CAA6C,EAAE,uBAAuB,EAAE;QAC/G,SAAS,EAAE,4BAA4B,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE;KAC1D,CAAC,CAAC;AACP,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,aAAa,CAAC,UAAe,EAAE,KAAU,EAAE,YAAoB,EAAE;IAC7E,IAAI,UAAU,KAAK,KAAK,EAAE;QACtB,IAAI,MAAM,GAAG,SAAS,EAAE,SAAS,GAAG,KAAK,CAAC;QAC1C,IAAI,SAAS,EAAE;YACX,MAAM,IAAI,GAAG,CAAC;YACd,SAAS,IAAI,GAAG,GAAG,SAAS,CAAC;SAChC;QACD,MAAM,CAAC,KAAK,EAAE,4BAA6B,MAAO,eAAe,EAAE,uBAAuB,EAAE;YACxF,SAAS;SACZ,CAAC,CAAC;KACN;AACL,CAAC"} \ No newline at end of file diff --git a/lib.esm/utils/fetch.js b/lib.esm/utils/fetch.js index 749d4c806..64035fe4b 100644 --- a/lib.esm/utils/fetch.js +++ b/lib.esm/utils/fetch.js @@ -1,6 +1,6 @@ import { decodeBase64, encodeBase64 } from "./base64.js"; import { hexlify } from "./data.js"; -import { assertArgument, throwArgumentError, throwError } from "./errors.js"; +import { assert, assertArgument } from "./errors.js"; import { defineProperties } from "./properties.js"; import { toUtf8Bytes, toUtf8String } from "./utf8.js"; import { getUrl } from "./geturl.js"; @@ -69,11 +69,9 @@ export class FetchCancelSignal { }); } addListener(listener) { - if (this.#cancelled) { - throwError("singal already cancelled", "UNSUPPORTED_OPERATION", { - operation: "fetchCancelSignal.addCancelListener" - }); - } + assert(this.#cancelled, "singal already cancelled", "UNSUPPORTED_OPERATION", { + operation: "fetchCancelSignal.addCancelListener" + }); this.#listeners.push(listener); } get cancelled() { return this.#cancelled; } @@ -81,7 +79,7 @@ export class FetchCancelSignal { if (!this.cancelled) { return; } - throwError("cancelled", "CANCELLED", {}); + assert(false, "cancelled", "CANCELLED", {}); } } // Check the signal, throwing if it is cancelled @@ -258,9 +256,7 @@ export class FetchRequest { * Sets an ``Authorization`` for %%username%% with %%password%%. */ setCredentials(username, password) { - if (username.match(/:/)) { - throwArgumentError("invalid basic authentication username", "username", "[REDACTED]"); - } + assertArgument(!username.match(/:/), "invalid basic authentication username", "username", "[REDACTED]"); this.#creds = `${username}:${password}`; } /** @@ -352,11 +348,9 @@ export class FetchRequest { if (attempt >= this.#throttle.maxAttempts) { return _response.makeServerError("exceeded maximum retry limit"); } - if (getTime() > expires) { - return throwError("timeout", "TIMEOUT", { - operation: "request.send", reason: "timeout", request: _request - }); - } + assert(getTime() <= expires, "timeout", "TIMEOUT", { + operation: "request.send", reason: "timeout", request: _request + }); if (delay > 0) { await wait(delay); } @@ -436,9 +430,7 @@ export class FetchRequest { * Resolves to the response by sending the request. */ send() { - if (this.#signal != null) { - return throwError("request already sent", "UNSUPPORTED_OPERATION", { operation: "fetchRequest.send" }); - } + assert(this.#signal == null, "request already sent", "UNSUPPORTED_OPERATION", { operation: "fetchRequest.send" }); this.#signal = new FetchCancelSignal(this); return this.#send(0, getTime() + this.timeout, 0, this, new FetchResponse(0, "", {}, null, this)); } @@ -447,9 +439,7 @@ export class FetchRequest { * error to be rejected from the [[send]]. */ cancel() { - if (this.#signal == null) { - return throwError("request has not been sent", "UNSUPPORTED_OPERATION", { operation: "fetchRequest.cancel" }); - } + assert(this.#signal != null, "request has not been sent", "UNSUPPORTED_OPERATION", { operation: "fetchRequest.cancel" }); const signal = fetchSignals.get(this); if (!signal) { throw new Error("missing signal; should not happen"); @@ -468,11 +458,9 @@ export class FetchRequest { // - non-GET requests // - downgrading the security (e.g. https => http) // - to non-HTTP (or non-HTTPS) protocols [this could be relaxed?] - if (this.method !== "GET" || (current === "https" && target === "http") || !location.match(/^https?:/)) { - return throwError(`unsupported redirect`, "UNSUPPORTED_OPERATION", { - operation: `redirect(${this.method} ${JSON.stringify(this.url)} => ${JSON.stringify(location)})` - }); - } + assert(this.method === "GET" && (current !== "https" || target !== "http") && location.match(/^https?:/), `unsupported redirect`, "UNSUPPORTED_OPERATION", { + operation: `redirect(${this.method} ${JSON.stringify(this.url)} => ${JSON.stringify(location)})` + }); // Create a copy of this request, with a new URL const req = new FetchRequest(location); req.method = "GET"; @@ -595,7 +583,7 @@ export class FetchResponse { return (this.#body == null) ? "" : toUtf8String(this.#body); } catch (error) { - return throwError("response body is not valid UTF-8 data", "UNSUPPORTED_OPERATION", { + assert(false, "response body is not valid UTF-8 data", "UNSUPPORTED_OPERATION", { operation: "bodyText", info: { response: this } }); } @@ -610,7 +598,7 @@ export class FetchResponse { return JSON.parse(this.bodyText); } catch (error) { - return throwError("response body is not valid JSON", "UNSUPPORTED_OPERATION", { + assert(false, "response body is not valid JSON", "UNSUPPORTED_OPERATION", { operation: "bodyJson", info: { response: this } }); } @@ -668,8 +656,8 @@ export class FetchResponse { if (stall == null) { stall = -1; } - else if (typeof (stall) !== "number" || !Number.isInteger(stall) || stall < 0) { - return throwArgumentError("invalid stall timeout", "stall", stall); + else { + assertArgument(Number.isInteger(stall) && stall >= 0, "invalid stall timeout", "stall", stall); } const error = new Error(message || "throttling requests"); defineProperties(error, { stall, throttle: true }); @@ -708,7 +696,7 @@ export class FetchResponse { if (message === "") { message = `server response ${this.statusCode} ${this.statusMessage}`; } - throwError(message, "SERVER_ERROR", { + assert(false, message, "SERVER_ERROR", { request: (this.request || "unknown request"), response: this, error }); } diff --git a/lib.esm/utils/fetch.js.map b/lib.esm/utils/fetch.js.map index 6dc74a196..49d1e368f 100644 --- a/lib.esm/utils/fetch.js.map +++ b/lib.esm/utils/fetch.js.map @@ -1 +1 @@ -{"version":3,"file":"fetch.js","sourceRoot":"","sources":["../../src.ts/utils/fetch.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AAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC;AAChE,CAAC"} \ No newline at end of file diff --git a/lib.esm/utils/fixednumber.js b/lib.esm/utils/fixednumber.js index e07daa8fa..dcbc97598 100644 --- a/lib.esm/utils/fixednumber.js +++ b/lib.esm/utils/fixednumber.js @@ -1,14 +1,14 @@ import { getBytes } from "./data.js"; -import { throwArgumentError, throwError } from "./errors.js"; +import { assert, assertArgument, assertPrivate } from "./errors.js"; import { getBigInt, getNumber, fromTwos, toBigInt, toHex, toTwos } from "./maths.js"; -const _constructorGuard = {}; +const _guard = {}; const NegativeOne = BigInt(-1); function throwFault(message, fault, operation, value) { const params = { fault: fault, operation: operation }; if (value !== undefined) { params.value = value; } - return throwError(message, "NUMERIC_FAULT", params); + assert(false, message, "NUMERIC_FAULT", params); } // Constant to pull zeros from for multipliers let zeros = "0"; @@ -17,9 +17,7 @@ while (zeros.length < 256) { } // Returns a string "1" followed by decimal "0"s function getMultiplier(decimals) { - if (typeof (decimals) !== "number" || decimals < 0 || decimals > 256 || decimals % 1) { - throwArgumentError("invalid decimal length", "decimals", decimals); - } + assertArgument(Number.isInteger(decimals) && decimals >= 0 && decimals <= 256, "invalid decimal length", "decimals", decimals); return BigInt("1" + zeros.substring(0, decimals)); } export function formatFixed(_value, _decimals) { @@ -58,22 +56,16 @@ export function parseFixed(value, _decimals) { } const decimals = getNumber(_decimals, "decimals"); const multiplier = getMultiplier(decimals); - if (typeof (value) !== "string" || !value.match(/^-?[0-9.]+$/)) { - throwArgumentError("invalid decimal value", "value", value); - } + assertArgument(typeof (value) === "string" && value.match(/^-?[0-9.]+$/), "invalid decimal value", "value", value); // Is it negative? const negative = (value.substring(0, 1) === "-"); if (negative) { value = value.substring(1); } - if (value === ".") { - throwArgumentError("missing value", "value", value); - } + assertArgument(value !== ".", "missing value", "value", value); // Split it into a whole and fractional part const comps = value.split("."); - if (comps.length > 2) { - throwArgumentError("too many decimal points", "value", value); - } + assertArgument(comps.length <= 2, "too many decimal points", "value", value); let whole = (comps[0] || "0"), fraction = (comps[1] || "0"); // Trim trialing zeros while (fraction[fraction.length - 1] === "0") { @@ -105,12 +97,8 @@ export class FixedFormat { decimals; name; _multiplier; - constructor(constructorGuard, signed, width, decimals) { - if (constructorGuard !== _constructorGuard) { - throwError("cannot use FixedFormat constructor; use FixedFormat.from", "UNSUPPORTED_OPERATION", { - operation: "new FixedFormat" - }); - } + constructor(guard, signed, width, decimals) { + assertPrivate(guard, _guard, "FixedFormat"); this.signed = signed; this.width = width; this.decimals = decimals; @@ -137,9 +125,7 @@ export class FixedFormat { } else { const match = value.match(/^(u?)fixed([0-9]+)x([0-9]+)$/); - if (!match) { - return throwArgumentError("invalid fixed format", "format", value); - } + assertArgument(match, "invalid fixed format", "format", value); signed = (match[1] !== "u"); width = parseInt(match[2]); decimals = parseInt(match[3]); @@ -150,22 +136,16 @@ export class FixedFormat { if (value[key] == null) { return defaultValue; } - if (typeof (value[key]) !== type) { - throwArgumentError("invalid fixed format (" + key + " not " + type + ")", "format." + key, value[key]); - } + assertArgument(typeof (value[key]) === type, "invalid fixed format (" + key + " not " + type + ")", "format." + key, value[key]); return value[key]; }; signed = check("signed", "boolean", signed); width = check("width", "number", width); decimals = check("decimals", "number", decimals); } - if (width % 8) { - throwArgumentError("invalid fixed format width (not byte aligned)", "format.width", width); - } - if (decimals > 80) { - throwArgumentError("invalid fixed format (decimals too large)", "format.decimals", decimals); - } - return new FixedFormat(_constructorGuard, signed, width, decimals); + assertArgument((width % 8) === 0, "invalid fixed format width (not byte aligned)", "format.width", width); + assertArgument(decimals <= 80, "invalid fixed format (decimals too large)", "format.decimals", decimals); + return new FixedFormat(_guard, signed, width, decimals); } } /** @@ -176,12 +156,8 @@ export class FixedNumber { _isFixedNumber; //#hex: string; #value; - constructor(constructorGuard, hex, value, format) { - if (constructorGuard !== _constructorGuard) { - throwError("cannot use FixedNumber constructor; use FixedNumber.from", "UNSUPPORTED_OPERATION", { - operation: "new FixedFormat" - }); - } + constructor(guard, hex, value, format) { + assertPrivate(guard, _guard, "FixedNumber"); this.format = FixedFormat.from(format); //this.#hex = hex; this.#value = value; @@ -189,9 +165,7 @@ export class FixedNumber { Object.freeze(this); } #checkFormat(other) { - if (this.format.name !== other.format.name) { - throwArgumentError("incompatible format; use fixedNumber.toFormat", "other", other); - } + assertArgument(this.format.name === other.format.name, "incompatible format; use fixedNumber.toFormat", "other", other); } /** * Returns a new [[FixedNumber]] with the result of this added @@ -255,9 +229,7 @@ export class FixedNumber { if (comps.length === 1) { comps.push("0"); } - if (decimals < 0 || decimals > 80 || (decimals % 1)) { - throwArgumentError("invalid decimal count", "decimals", decimals); - } + assertArgument(Number.isInteger(decimals) && decimals >= 0 && decimals <= 80, "invalid decimal count", "decimals", decimals); if (comps[1].length <= decimals) { return this; } @@ -305,7 +277,7 @@ export class FixedNumber { return toHex(numeric, fixedFormat.width / 8); })(); const decimal = formatFixed(numeric, fixedFormat.decimals); - return new FixedNumber(_constructorGuard, hex, decimal, fixedFormat); + return new FixedNumber(_guard, hex, decimal, fixedFormat); } static fromBytes(_value, format = "fixed") { const value = getBytes(_value, "value"); @@ -319,7 +291,7 @@ export class FixedNumber { } const hex = toHex(toTwos(numeric, (fixedFormat.signed ? 0 : 1) + fixedFormat.width)); const decimal = formatFixed(numeric, fixedFormat.decimals); - return new FixedNumber(_constructorGuard, hex, decimal, fixedFormat); + return new FixedNumber(_guard, hex, decimal, fixedFormat); } static from(value, format) { if (typeof (value) === "string") { @@ -337,7 +309,7 @@ export class FixedNumber { throw error; } } - return throwArgumentError("invalid FixedNumber value", "value", value); + assertArgument(false, "invalid FixedNumber value", "value", value); } static isFixedNumber(value) { return !!(value && value._isFixedNumber); diff --git a/lib.esm/utils/fixednumber.js.map b/lib.esm/utils/fixednumber.js.map index 1fa73600e..d2f6dd66e 100644 --- a/lib.esm/utils/fixednumber.js.map +++ b/lib.esm/utils/fixednumber.js.map @@ -1 +1 @@ -{"version":3,"file":"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QAC3B,OAAO,CAAC,CAAC,CAAC,KAAK,IAAI,KAAK,CAAC,cAAc,CAAC,CAAC;IAC7C,CAAC;CACJ;AAED,MAAM,GAAG,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAChC,MAAM,IAAI,GAAG,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/lib.esm/utils/geturl-browser.js b/lib.esm/utils/geturl-browser.js index 793fbeffe..2a88440bc 100644 --- a/lib.esm/utils/geturl-browser.js +++ b/lib.esm/utils/geturl-browser.js @@ -1,18 +1,14 @@ -import { throwError } from "./errors.js"; +import { assert } from "./errors.js"; // @TODO: timeout is completely ignored; start a Promise.any with a reject? export async function getUrl(req, _signal) { const protocol = req.url.split(":")[0].toLowerCase(); - if (protocol !== "http" && protocol !== "https") { - throwError(`unsupported protocol ${protocol}`, "UNSUPPORTED_OPERATION", { - info: { protocol }, - operation: "request" - }); - } - if (req.credentials && !req.allowInsecureAuthentication) { - throwError("insecure authorized connections unsupported", "UNSUPPORTED_OPERATION", { - operation: "request" - }); - } + assert(protocol === "http" || protocol === "https", `unsupported protocol ${protocol}`, "UNSUPPORTED_OPERATION", { + info: { protocol }, + operation: "request" + }); + assert(!req.credentials || req.allowInsecureAuthentication, "insecure authorized connections unsupported", "UNSUPPORTED_OPERATION", { + operation: "request" + }); let signal = undefined; if (_signal) { const controller = new AbortController(); diff --git a/lib.esm/utils/geturl-browser.js.map b/lib.esm/utils/geturl-browser.js.map index 08dd0665b..27b1dcdcc 100644 --- a/lib.esm/utils/geturl-browser.js.map +++ b/lib.esm/utils/geturl-browser.js.map @@ -1 +1 @@ -{"version":3,"file":"geturl-browser.js","sourceRoot":"","sources":["../../src.ts/utils/geturl-browser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AA2BzC,2EAA2E;AAE3E,MAAM,CAAC,KAAK,UAAU,MAAM,CAAC,GAAiB,EAAE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AAK,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;KACtD;IAED,MAAM,IAAI,GAAG;QACT,MAAM,EAAE,GAAG,CAAC,MAAM;QAClB,OAAO,EAAE,IAAI,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACrC,IAAI,EAAE,GAAG,CAAC,IAAI,IAAI,SAAS;QAC3B,MAAM;KACT,CAAC;IAEF,MAAM,IAAI,GAAG,MAAM,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;IAExC,MAAM,OAAO,GAA2B,EAAG,CAAC;IAC5C,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;QAChC,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC,GAAG,KAAK,CAAC;IACvC,CAAC,CAAC,CAAC;IAEH,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,WAAW,EAAE,CAAC;IAC1C,MAAM,IAAI,GAAG,CAAC,QAAQ,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA,CAAC,CAAC,IAAI,UAAU,CAAC,QAAQ,CAAC,CAAC;IAEjE,OAAO;QACH,UAAU,EAAE,IAAI,CAAC,MAAM;QACvB,aAAa,EAAE,IAAI,CAAC,UAAU;QAC9B,OAAO,EAAE,IAAI;KAChB,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/lib.esm/utils/geturl.js b/lib.esm/utils/geturl.js index be371f6e5..45170271d 100644 --- a/lib.esm/utils/geturl.js +++ b/lib.esm/utils/geturl.js @@ -1,21 +1,17 @@ import http from "http"; import https from "https"; import { gunzipSync } from "zlib"; -import { throwError } from "./errors.js"; +import { assert } from "./errors.js"; import { getBytes } from "./data.js"; export async function getUrl(req, signal) { const protocol = req.url.split(":")[0].toLowerCase(); - if (protocol !== "http" && protocol !== "https") { - throwError(`unsupported protocol ${protocol}`, "UNSUPPORTED_OPERATION", { - info: { protocol }, - operation: "request" - }); - } - if (req.credentials && !req.allowInsecureAuthentication) { - throwError("insecure authorized connections unsupported", "UNSUPPORTED_OPERATION", { - operation: "request" - }); - } + assert(protocol === "http" || protocol === "https", `unsupported protocol ${protocol}`, "UNSUPPORTED_OPERATION", { + info: { protocol }, + operation: "request" + }); + assert(!req.credentials || req.allowInsecureAuthentication, "insecure authorized connections unsupported", "UNSUPPORTED_OPERATION", { + operation: "request" + }); const method = req.method; const headers = Object.assign({}, req.headers); const options = { method, headers }; diff --git a/lib.esm/utils/geturl.js.map b/lib.esm/utils/geturl.js.map index 54a5c9a81..ffc005167 100644 --- a/lib.esm/utils/geturl.js.map +++ b/lib.esm/utils/geturl.js.map @@ -1 +1 @@ -{"version":3,"file":"geturl.js","sourceRoot":"","sources":["../../src.ts/utils/geturl.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAKrC,MAAM,CAAC,KAAK,UAAU,MAAM,CAAC,GAAiB,EAAE,MAA0B;IAEtE,MAAM,QAAQ,GAAG,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;IAErD,IAAI,QAAQ,KAAK,MAAM,IAAI,QAAQ,KAAK,OAAO,EAAE;QAC7C,UAAU,CAAC,wBAAyB,QAAS,EAAE,EAAE,uBAAuB,EAAE;YACtE,IAAI,EAAE,EAAE,QAAQ,EAAE;YAClB,SAAS,EAAE,SAAS;SACvB,CAAC,CAAC;KACN;IAED,IAAI,GAAG,CAAC,WAAW,IAAI,CAAC,GAAG,CAAC,2BAA2B,EAAE;QACrD,UAAU,CAAC,6CAA6C,EAAE,uBAAuB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BACrE,MAAM,CAAC,KAAK,CAAC,CAAC;YAClB,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;QAEH,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACvD,CAAC,CAAC,CAAC;AACP,CAAC"} \ No newline at end of file diff --git a/lib.esm/utils/index.js b/lib.esm/utils/index.js index 04362b7f5..9052d9aa8 100644 --- a/lib.esm/utils/index.js +++ b/lib.esm/utils/index.js @@ -2,7 +2,7 @@ export { decodeBase58, encodeBase58 } from "./base58.js"; export { decodeBase64, encodeBase64 } from "./base64.js"; export { getBytes, getBytesCopy, isHexString, isBytesLike, hexlify, concat, dataLength, dataSlice, stripZerosLeft, zeroPadValue, zeroPadBytes } from "./data.js"; -export { isCallException, isError, makeError, throwError, throwArgumentError, assertArgument, assertArgumentCount, assertPrivate, assertNormalize } from "./errors.js"; +export { isCallException, isError, assert, assertArgument, assertArgumentCount, assertPrivate, assertNormalize, makeError } from "./errors.js"; export { EventPayload } from "./events.js"; export { getIpfsGatewayFunc, FetchRequest, FetchResponse, FetchCancelSignal, } from "./fetch.js"; export { FixedFormat, FixedNumber, formatFixed, parseFixed } from "./fixednumber.js"; @@ -12,5 +12,5 @@ export { decodeRlp } from "./rlp-decode.js"; export { encodeRlp } from "./rlp-encode.js"; export { getStore, setStore } from "./storage.js"; export { formatEther, parseEther, formatUnits, parseUnits } from "./units.js"; -export { _toEscapedUtf8String, toUtf8Bytes, toUtf8CodePoints, toUtf8String, Utf8ErrorFuncs, } from "./utf8.js"; +export { toUtf8Bytes, toUtf8CodePoints, toUtf8String, Utf8ErrorFuncs, } from "./utf8.js"; //# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/lib.esm/utils/index.js.map b/lib.esm/utils/index.js.map index 02f76674f..3fb68aed7 100644 --- a/lib.esm/utils/index.js.map +++ b/lib.esm/utils/index.js.map @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,EAAE,QAAQ,EAAC,MAAM,cAAc,CAAC;AAEjD,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE9E,OAAO,EACH,WAAW,EACX,gBAAgB,EAChB,YAAY,EAEZ,cAAc,GACjB,MAAM,WAAW,CAAC"} \ No newline at end of file diff --git a/lib.esm/utils/maths.js b/lib.esm/utils/maths.js index 9bb7fd669..65ed058de 100644 --- a/lib.esm/utils/maths.js +++ b/lib.esm/utils/maths.js @@ -1,5 +1,5 @@ import { hexlify, isBytesLike } from "./data.js"; -import { throwArgumentError } from "./errors.js"; +import { assertArgument } from "./errors.js"; const BN_0 = BigInt(0); const BN_1 = BigInt(1); // IEEE 754 support 53-bits of mantissa @@ -45,12 +45,8 @@ export function getBigInt(value, name) { switch (typeof (value)) { case "bigint": return value; case "number": - if (!Number.isInteger(value)) { - throwArgumentError("underflow", name || "value", value); - } - else if (value < -maxValue || value > maxValue) { - throwArgumentError("overflow", name || "value", value); - } + assertArgument(Number.isInteger(value), "underflow", name || "value", value); + assertArgument(value >= -maxValue && value <= maxValue, "overflow", name || "value", value); return BigInt(value); case "string": try { @@ -60,10 +56,10 @@ export function getBigInt(value, name) { return BigInt(value); } catch (e) { - throwArgumentError(`invalid BigNumberish string: ${e.message}`, name || "value", value); + assertArgument(false, `invalid BigNumberish string: ${e.message}`, name || "value", value); } } - return throwArgumentError("invalid BigNumberish value", name || "value", value); + assertArgument(false, "invalid BigNumberish value", name || "value", value); } const Nibbles = "0123456789abcdef"; /* @@ -88,27 +84,21 @@ export function toBigInt(value) { export function getNumber(value, name) { switch (typeof (value)) { case "bigint": - if (value < -maxValue || value > maxValue) { - throwArgumentError("overflow", name || "value", value); - } + assertArgument(value >= -maxValue && value <= maxValue, "overflow", name || "value", value); return Number(value); case "number": - if (!Number.isInteger(value)) { - throwArgumentError("underflow", name || "value", value); - } - else if (value < -maxValue || value > maxValue) { - throwArgumentError("overflow", name || "value", value); - } + assertArgument(Number.isInteger(value), "underflow", name || "value", value); + assertArgument(value >= -maxValue && value <= maxValue, "overflow", name || "value", value); return value; case "string": try { return getNumber(BigInt(value), name); } catch (e) { - throwArgumentError(`invalid numeric string: ${e.message}`, name || "value", value); + assertArgument(false, `invalid numeric string: ${e.message}`, name || "value", value); } } - return throwArgumentError("invalid numeric value", name || "value", value); + assertArgument(false, "invalid numeric value", name || "value", value); } /* * Converts %%value%% to a number. If %%value%% is a Uint8Array, it diff --git a/lib.esm/utils/maths.js.map b/lib.esm/utils/maths.js.map index 535fd32d2..845a253f8 100644 --- a/lib.esm/utils/maths.js.map +++ b/lib.esm/utils/maths.js.map @@ -1 +1 @@ -{"version":3,"file":"maths.js","sourceRoot":"","sources":["../../src.ts/utils/maths.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAejD,MAAM,IAAI,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AACvB,MAAM,IAAI,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AAEvB,uCAAuC;AACvC,MAAM,QAAQ,GAAG,gBAAgB,CAAC;AAElC;;GAEG;AACH,MAAM,UAAU,QAAQ,CAAC,MAAoB,EAAE,MAAe;IAC1D,MAAM,KAAK,GAAG,SAAS,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzC,MAAM,KAAK,GAAG,MAAM,CAAC,SAAS,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IAEjD,yCAAyC;IACzC,IAAI,KAAK,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,EAAE;QACzB,MAAM,IAAI,GAAG,CAAC,IAAI,IAAI,KAAK,CAAC,GAAG,IAAI,CAAC;QACpC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;KACt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EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACpC,MAAM,MAAM,GAAG,CAAC,GAAG,CAAC,CAAC;QACrB,MAAM,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,GAAG,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;KAC/D;IAED,OAAO,MAAM,CAAC;AAClB,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,UAAU,CAAC,KAA+B;IACtD,IAAI,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAA,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;IAC9E,OAAO,MAAM,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,GAAG,EAAE;QAAE,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;KAAE;IACxE,IAAI,MAAM,KAAK,EAAE,EAAE;QAAE,MAAM,GAAG,GAAG,CAAC;KAAE;IACpC,OAAO,IAAI,GAAG,MAAM,CAAC;AACzB,CAAC"} \ No newline at end of file diff --git a/lib.esm/utils/rlp-decode.js b/lib.esm/utils/rlp-decode.js index 02f1cb106..c483ce3b1 100644 --- a/lib.esm/utils/rlp-decode.js +++ b/lib.esm/utils/rlp-decode.js @@ -1,6 +1,6 @@ //See: https://github.com/ethereum/wiki/wiki/RLP import { hexlify } from "./data.js"; -import { throwArgumentError, throwError } from "./errors.js"; +import { assert, assertArgument } from "./errors.js"; import { getBytes } from "./data.js"; function hexlifyByte(value) { let result = value.toString(16); @@ -22,27 +22,21 @@ function _decodeChildren(data, offset, childOffset, length) { const decoded = _decode(data, childOffset); result.push(decoded.result); childOffset += decoded.consumed; - if (childOffset > offset + 1 + length) { - throwError("child data too short", "BUFFER_OVERRUN", { - buffer: data, length, offset - }); - } + assert(childOffset <= offset + 1 + length, "child data too short", "BUFFER_OVERRUN", { + buffer: data, length, offset + }); } return { consumed: (1 + length), result: result }; } // returns { consumed: number, result: Object } function _decode(data, offset) { - if (data.length === 0) { - throwError("data too short", "BUFFER_OVERRUN", { - buffer: data, length: 0, offset: 1 - }); - } + assert(data.length !== 0, "data too short", "BUFFER_OVERRUN", { + buffer: data, length: 0, offset: 1 + }); const checkOffset = (offset) => { - if (offset > data.length) { - throwError("data short segment too short", "BUFFER_OVERRUN", { - buffer: data, length: data.length, offset - }); - } + assert(offset <= data.length, "data short segment too short", "BUFFER_OVERRUN", { + buffer: data, length: data.length, offset + }); }; // Array with extra length prefix if (data[offset] >= 0xf8) { @@ -79,9 +73,7 @@ function _decode(data, offset) { export function decodeRlp(_data) { const data = getBytes(_data, "data"); const decoded = _decode(data, 0); - if (decoded.consumed !== data.length) { - throwArgumentError("unexpected junk after rlp payload", "data", _data); - } + assertArgument(decoded.consumed === data.length, "unexpected junk after rlp payload", "data", _data); return decoded.result; } //# sourceMappingURL=rlp-decode.js.map \ No newline at end of file diff --git a/lib.esm/utils/rlp-decode.js.map b/lib.esm/utils/rlp-decode.js.map index f34ed947e..e9d4ada46 100644 --- a/lib.esm/utils/rlp-decode.js.map +++ b/lib.esm/utils/rlp-decode.js.map @@ -1 +1 @@ -{"version":3,"file":"rlp-decode.js","sourceRoot":"","sources":["../../src.ts/utils/rlp-decode.ts"],"names":[],"mappings":"AAAA,gDAAgD;AAEhD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAKrC,SAAS,WAAW,CAAC,KAAa;IAC9B,IAAI,MAAM,GAAG,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IAChC,OAAO,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE;QAAE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,EAAE,MAAM,GAAG,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC;QACpE,OAAO,EAAE,QAAQ,EAAE,CAAC,CAAC,GAAG,MAAM,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAA;KACpD;IAED,OAAO,EAAE,QAAQ,EAAE,CAAC,EAAE,MAAM,EAAE,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC;AAC9D,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,SAAS,CAAC,KAAgB;IACtC,MAAM,IAAI,GAAG,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IACrC,MAAM,OAAO,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;IACjC,cAAc,CAAC,OAAO,CAAC,QAAQ,KAAK,IAAI,CAAC,MAAM,EAAE,mCAAmC,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;IACrG,OAAO,OAAO,CAAC,MAAM,CAAC;AAC1B,CAAC"} \ No newline at end of file diff --git a/lib.esm/utils/units.js b/lib.esm/utils/units.js index 8849025b7..105b20163 100644 --- a/lib.esm/utils/units.js +++ b/lib.esm/utils/units.js @@ -1,5 +1,5 @@ import { formatFixed, parseFixed } from "./fixednumber.js"; -import { throwArgumentError } from "./errors.js"; +import { assertArgument } from "./errors.js"; const names = [ "wei", "kwei", @@ -18,9 +18,7 @@ const names = [ export function formatUnits(value, unit) { if (typeof (unit) === "string") { const index = names.indexOf(unit); - if (index === -1) { - throwArgumentError("invalid unit", "unit", unit); - } + assertArgument(index >= 0, "invalid unit", "unit", unit); unit = 3 * index; } return formatFixed(value, (unit != null) ? unit : 18); @@ -31,14 +29,10 @@ export function formatUnits(value, unit) { * or the name of a unit (e.g. ``"gwei"`` for 9 decimal places). */ export function parseUnits(value, unit) { - if (typeof (value) !== "string") { - throwArgumentError("value must be a string", "value", value); - } + assertArgument(typeof (value) === "string", "value must be a string", "value", value); if (typeof (unit) === "string") { const index = names.indexOf(unit); - if (index === -1) { - throwArgumentError("invalid unit", "unit", unit); - } + assertArgument(index >= 0, "invalid unit", "unit", unit); unit = 3 * index; } return parseFixed(value, (unit != null) ? unit : 18); diff --git a/lib.esm/utils/units.js.map b/lib.esm/utils/units.js.map index d58c22c5a..492a70e10 100644 --- a/lib.esm/utils/units.js.map +++ b/lib.esm/utils/units.js.map @@ -1 +1 @@ -{"version":3,"file":"units.js","sourceRoot":"","sources":["../../src.ts/utils/units.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAKjD,MAAM,KAAK,GAAG;IACV,KAAK;IACL,MAAM;IACN,MAAM;IACN,MAAM;IACN,OAAO;IACP,QAAQ;IACR,OAAO;CACV,CAAC;AAEF;;;;;GAKG;AACH,MAAM,UAAU,WAAW,CAAC,KAAmB,EAAE,IAAuB;IACpE,IAAI,OAAM,CAAC,IAAI,CAAC,KAAK,QAAQ,EAAE;QAC3B,MAAM,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAClC,IAAI,KAAK,KAAK,CAAC,CAAC,EAAE;YAAE,kBAAkB,CAAC,cAAc,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;SAAE;QACvE,IAAI,GAAG,CAAC,GAAG,KAAK,CAAC;KACpB;IACD,OAAO,WAAW,CAAC,KAAK,EAAE,CAAC,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA,CAAC,CAAC,EAAE,CAAC,CAAC;AACzD,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,UAAU,CAAC,KAAa,EAAE,IAAuB;IAC7D,IAAI,OAAM,CAAC,KAAK,CAAC,KAAK,QAAQ,EAAE;QAC5B,kBAAkB,CAAC,wBAAwB,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;KAChE;IAED,IAAI,OAAM,CAAC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AAK,CAAC;KACpB;IACD,OAAO,WAAW,CAAC,KAAK,EAAE,CAAC,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA,CAAC,CAAC,EAAE,CAAC,CAAC;AACzD,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,UAAU,CAAC,KAAa,EAAE,IAAuB;IAC7D,cAAc,CAAC,OAAM,CAAC,KAAK,CAAC,KAAK,QAAQ,EAAE,wBAAwB,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;IAErF,IAAI,OAAM,CAAC,IAAI,CAAC,KAAK,QAAQ,EAAE;QAC3B,MAAM,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAClC,cAAc,CAAC,KAAK,IAAI,CAAC,EAAE,cAAc,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;QACzD,IAAI,GAAG,CAAC,GAAG,KAAK,CAAC;KACpB;IAED,OAAO,UAAU,CAAC,KAAK,EAAE,CAAC,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA,CAAC,CAAC,EAAE,CAAC,CAAC;AACxD,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,WAAW,CAAC,GAAiB;IACzC,OAAO,WAAW,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;AAChC,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,UAAU,CAAC,KAAa;IACpC,OAAO,UAAU,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;AACjC,CAAC"} \ No newline at end of file diff --git a/lib.esm/utils/utf8.js b/lib.esm/utils/utf8.js index 2e1c03479..5db0b9daa 100644 --- a/lib.esm/utils/utf8.js +++ b/lib.esm/utils/utf8.js @@ -1,7 +1,7 @@ import { getBytes } from "./data.js"; -import { assertNormalize, throwArgumentError } from "./errors.js"; +import { assertArgument, assertNormalize } from "./errors.js"; function errorFunc(reason, offset, bytes, output, badCodepoint) { - return throwArgumentError(`invalid codepoint at offset ${offset}; ${reason}`, "bytes", bytes); + assertArgument(false, `invalid codepoint at offset ${offset}; ${reason}`, "bytes", bytes); } function ignoreFunc(reason, offset, bytes, output, badCodepoint) { // If there is an invalid prefix (including stray continuation), skip any additional continuation bytes @@ -144,9 +144,7 @@ export function toUtf8Bytes(str, form) { else if ((c & 0xfc00) == 0xd800) { i++; const c2 = str.charCodeAt(i); - if (i >= str.length || (c2 & 0xfc00) !== 0xdc00) { - throw new Error("invalid utf-8 string"); - } + assertArgument(i < str.length && ((c2 & 0xfc00) === 0xdc00), "invalid surrogate pair", "str", str); // Surrogate Pair const pair = 0x10000 + ((c & 0x03ff) << 10) + (c2 & 0x03ff); result.push((pair >> 18) | 0xf0); @@ -163,32 +161,6 @@ export function toUtf8Bytes(str, form) { return new Uint8Array(result); } ; -function escapeChar(value) { - const hex = ("0000" + value.toString(16)); - return "\\u" + hex.substring(hex.length - 4); -} -export function _toEscapedUtf8String(bytes, onError) { - return '"' + getUtf8CodePoints(bytes, onError).map((codePoint) => { - if (codePoint < 256) { - switch (codePoint) { - case 8: return "\\b"; - case 9: return "\\t"; - case 10: return "\\n"; - case 13: return "\\r"; - case 34: return "\\\""; - case 92: return "\\\\"; - } - if (codePoint >= 32 && codePoint < 127) { - return String.fromCharCode(codePoint); - } - } - if (codePoint <= 0xffff) { - return escapeChar(codePoint); - } - codePoint -= 0x10000; - return escapeChar(((codePoint >> 10) & 0x3ff) + 0xd800) + escapeChar((codePoint & 0x3ff) + 0xdc00); - }).join("") + '"'; -} export function _toUtf8String(codePoints) { return codePoints.map((codePoint) => { if (codePoint <= 0xffff) { diff --git a/lib.esm/utils/utf8.js.map b/lib.esm/utils/utf8.js.map index 2a8b247c3..523dea511 100644 --- a/lib.esm/utils/utf8.js.map +++ b/lib.esm/utils/utf8.js.map @@ -1 +1 @@ -{"version":3,"file":"utf8.js","sourceRoot":"","sources":["../../src.ts/utils/utf8.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW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;IAED,OAAO,IAAI,UAAU,CAAC,MAAM,CAAC,CAAC;AAClC,CAAC;AAAA,CAAC;AAEF,MAAM,UAAU,aAAa,CAAC,UAAyB;IACnD,OAAO,UAAU,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE;QAChC,IAAI,SAAS,IAAI,MAAM,EAAE;YACrB,OAAO,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;SACzC;QACD,SAAS,IAAI,OAAO,CAAC;QACrB,OAAO,MAAM,CAAC,YAAY,CACtB,CAAC,CAAC,CAAC,SAAS,IAAI,EAAE,CAAC,GAAG,KAAK,CAAC,GAAG,MAAM,CAAC,EACtC,CAAC,CAAC,SAAS,GAAG,KAAK,CAAC,GAAG,MAAM,CAAC,CACjC,CAAC;IACN,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAChB,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,KAAgB,EAAE,OAAuB;IAClE,OAAO,aAAa,CAAC,iBAAiB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC;AAC5D,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,GAAW,EAAE,IAA+B;IACzE,OAAO,iBAAiB,CAAC,WAAW,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC;AACrD,CAAC"} \ No newline at end of file diff --git a/lib.esm/wallet/base-wallet.js b/lib.esm/wallet/base-wallet.js index cb2ad9d78..d6b998aca 100644 --- a/lib.esm/wallet/base-wallet.js +++ b/lib.esm/wallet/base-wallet.js @@ -2,7 +2,7 @@ import { getAddress, resolveAddress } from "../address/index.js"; import { hashMessage, TypedDataEncoder } from "../hash/index.js"; import { AbstractSigner } from "../providers/index.js"; import { computeAddress, Transaction } from "../transaction/index.js"; -import { defineProperties, resolveProperties, throwArgumentError, throwError } from "../utils/index.js"; +import { defineProperties, resolveProperties, assert, assertArgument } from "../utils/index.js"; export class BaseWallet extends AbstractSigner { address; #signingKey; @@ -32,9 +32,7 @@ export class BaseWallet extends AbstractSigner { tx.from = from; } if (tx.from != null) { - if (getAddress((tx.from)) !== this.address) { - throwArgumentError("transaction from address mismatch", "tx.from", tx.from); - } + assertArgument(getAddress((tx.from)) === this.address, "transaction from address mismatch", "tx.from", tx.from); delete tx.from; } // Build the transaction @@ -53,18 +51,14 @@ export class BaseWallet extends AbstractSigner { async signTypedData(domain, types, value) { // Populate any ENS names const populated = await TypedDataEncoder.resolveNames(domain, types, value, async (name) => { - if (this.provider == null) { - return throwError("cannot resolve ENS names without a provider", "UNSUPPORTED_OPERATION", { - operation: "resolveName", - info: { name } - }); - } + assert(this.provider != null, "cannot resolve ENS names without a provider", "UNSUPPORTED_OPERATION", { + operation: "resolveName", + info: { name } + }); const address = await this.provider.resolveName(name); - if (address == null) { - return throwError("unconfigured ENS name", "UNCONFIGURED_NAME", { - value: name - }); - } + assert(address != null, "unconfigured ENS name", "UNCONFIGURED_NAME", { + value: name + }); return address; }); return this.signingKey.sign(TypedDataEncoder.hash(populated.domain, types, populated.value)).serialized; diff --git a/lib.esm/wallet/base-wallet.js.map b/lib.esm/wallet/base-wallet.js.map index ec209249e..87b06c2cd 100644 --- a/lib.esm/wallet/base-wallet.js.map +++ b/lib.esm/wallet/base-wallet.js.map @@ -1 +1 @@ -{"version":3,"file":"base-wallet.js","sourceRoot":"","sources":["../../src.ts/wallet/base-wallet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,EACH,gBAAgB,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,UAAU,EACtE,MAAM,mBAAmB,CAAC;AAO3B,MAAM,OAAO,UAAW,SAA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KAAK,CAAC,CAAC,CAAC,UAAU,CAAC;IAC5G,CAAC;CACJ"} \ No newline at end of file diff --git a/lib.esm/wallet/hdwallet.js b/lib.esm/wallet/hdwallet.js index b0e19f45d..1f963cc5c 100644 --- a/lib.esm/wallet/hdwallet.js +++ b/lib.esm/wallet/hdwallet.js @@ -1,7 +1,7 @@ import { computeHmac, randomBytes, ripemd160, SigningKey, sha256 } from "../crypto/index.js"; import { VoidSigner } from "../providers/index.js"; import { computeAddress } from "../transaction/index.js"; -import { concat, dataSlice, decodeBase58, defineProperties, encodeBase58, getBytes, hexlify, getNumber, toBigInt, toHex, assertPrivate, throwArgumentError, throwError } from "../utils/index.js"; +import { concat, dataSlice, decodeBase58, defineProperties, encodeBase58, getBytes, hexlify, getNumber, toBigInt, toHex, assertPrivate, assert, assertArgument } from "../utils/index.js"; import { langEn } from "../wordlists/lang-en.js"; import { Mnemonic } from "./mnemonic.js"; import { BaseWallet } from "./base-wallet.js"; @@ -32,11 +32,9 @@ const _guard = {}; function ser_I(index, chainCode, publicKey, privateKey) { const data = new Uint8Array(37); if (index & HardenedBit) { - if (privateKey == null) { - return throwError("cannot derive child of neutered node", "UNSUPPORTED_OPERATION", { - operation: "deriveChild" - }); - } + assert(privateKey != null, "cannot derive child of neutered node", "UNSUPPORTED_OPERATION", { + operation: "deriveChild" + }); // Data = 0x00 || ser_256(k_par) data.set(getBytes(privateKey), 1); } @@ -171,9 +169,7 @@ export class HDNodeWallet extends BaseWallet { } static fromExtendedKey(extendedKey) { const bytes = getBytes(decodeBase58(extendedKey)); // @TODO: redact - if (bytes.length !== 82 || encodeBase58Check(bytes.slice(0, 78)) !== extendedKey) { - throwArgumentError("invalid extended key", "extendedKey", "[ REDACTED ]"); - } + assertArgument(bytes.length === 82 || encodeBase58Check(bytes.slice(0, 78)) === extendedKey, "invalid extended key", "extendedKey", "[ REDACTED ]"); const depth = bytes[4]; const parentFingerprint = hexlify(bytes.slice(5, 9)); const index = parseInt(hexlify(bytes.slice(9, 13)).substring(2), 16); @@ -194,7 +190,7 @@ export class HDNodeWallet extends BaseWallet { } return new HDNodeWallet(_guard, new SigningKey(key.slice(1)), parentFingerprint, chainCode, null, index, depth, null, null); } - return throwArgumentError("invalid extended key prefix", "extendedKey", "[ REDACTED ]"); + assertArgument(false, "invalid extended key prefix", "extendedKey", "[ REDACTED ]"); } static createRandom(password = "", path = defaultPath, wordlist = langEn) { if (!path) { @@ -276,9 +272,7 @@ export class HDNodeWalletManager { } export function getAccountPath(_index) { const index = getNumber(_index, "index"); - if (index < 0 || index >= HardenedBit) { - throwArgumentError("invalid account index", "index", index); - } + assertArgument(index >= 0 && index < HardenedBit, "invalid account index", "index", index); return `m/44'/60'/${index}'/0/0`; } //# sourceMappingURL=hdwallet.js.map \ No newline at end of file diff --git a/lib.esm/wallet/hdwallet.js.map b/lib.esm/wallet/hdwallet.js.map index 343a45286..0e560e79b 100644 --- a/lib.esm/wallet/hdwallet.js.map +++ b/lib.esm/wallet/hdwallet.js.map @@ -1 +1 @@ -{"version":3,"file":"hdwallet.js","sourceRoot":"","sources":["../../src.ts/wallet/hdwallet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC7F,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EACH,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,gBAAgB,EAAE,YAAY,EAC/D,QAAQ,EAAE,OAAO,EACjB,SAAS,EAAE,QAAQ,EAAE,KAAK,EAC1B,aAAa,EAAE,kBAAkB,EAAE,UAAU,EAChD,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAEjD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,U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AAW,CAAC,CAAC,KAAK,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA,CAAC,CAAC,KAAK,CAAC,CAAC;IAC9D,CAAC;CACJ;AAED,MAAM,UAAU,cAAc,CAAC,MAAe;IAC1C,MAAM,KAAK,GAAG,SAAS,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzC,cAAc,CAAC,KAAK,IAAI,CAAC,IAAI,KAAK,GAAG,WAAW,EAAE,uBAAuB,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;IAC3F,OAAO,aAAc,KAAM,OAAO,CAAC;AACvC,CAAC"} \ No newline at end of file diff --git a/lib.esm/wallet/json-crowdsale.js b/lib.esm/wallet/json-crowdsale.js index 64e30682d..03a1c84e9 100644 --- a/lib.esm/wallet/json-crowdsale.js +++ b/lib.esm/wallet/json-crowdsale.js @@ -2,7 +2,7 @@ import { CBC, pkcs7Strip } from "aes-js"; import { getAddress } from "../address/index.js"; import { pbkdf2 } from "../crypto/index.js"; import { id } from "../hash/index.js"; -import { getBytes, throwArgumentError } from "../utils/index.js"; +import { getBytes, assertArgument } from "../utils/index.js"; import { getPassword, looseArrayify, spelunk } from "./utils.js"; export function isCrowdsaleJson(json) { try { @@ -22,9 +22,7 @@ export function decryptCrowdsaleJson(json, _password) { const address = getAddress(spelunk(data, "ethaddr:string!")); // Encrypted Seed const encseed = looseArrayify(spelunk(data, "encseed:string!")); - if (!encseed || (encseed.length % 16) !== 0) { - throwArgumentError("invalid encseed", "json", json); - } + assertArgument(encseed && (encseed.length % 16) === 0, "invalid encseed", "json", json); const key = getBytes(pbkdf2(password, password, 2000, 32, "sha256")).slice(0, 16); const iv = encseed.slice(0, 16); const encryptedSeed = encseed.slice(16); diff --git a/lib.esm/wallet/json-crowdsale.js.map b/lib.esm/wallet/json-crowdsale.js.map index 759123216..3fc5ac20a 100644 --- a/lib.esm/wallet/json-crowdsale.js.map +++ b/lib.esm/wallet/json-crowdsale.js.map @@ -1 +1 @@ -{"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MAAM,IAAI,GAAG,UAAU,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;IAEjE,6EAA6E;IAC7E,IAAI,OAAO,GAAG,EAAE,CAAC;IACjB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QAClC,OAAO,IAAI,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;KAC3C;IAED,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;AAChD,CAAC"} \ No newline at end of file diff --git a/lib.esm/wallet/json-keystore.js b/lib.esm/wallet/json-keystore.js index 6d1e9c49b..7bc27fc0d 100644 --- a/lib.esm/wallet/json-keystore.js +++ b/lib.esm/wallet/json-keystore.js @@ -2,7 +2,7 @@ import { CTR } from "aes-js"; import { getAddress } from "../address/index.js"; import { keccak256, pbkdf2, randomBytes, scrypt, scryptSync } from "../crypto/index.js"; import { computeAddress } from "../transaction/index.js"; -import { concat, getBytes, hexlify, throwArgumentError, throwError } from "../utils/index.js"; +import { concat, getBytes, hexlify, assert, assertArgument } from "../utils/index.js"; import { getPassword, spelunk, uuidV4, zpad } from "./utils.js"; import { version } from "../_version.js"; const defaultPath = "m/44'/60'/0'/0/0"; @@ -24,7 +24,7 @@ function decrypt(data, key, ciphertext) { const aesCtr = new CTR(key, iv); return hexlify(aesCtr.decrypt(ciphertext)); } - return throwError("unsupported cipher", "UNSUPPORTED_OPERATION", { + assert(false, "unsupported cipher", "UNSUPPORTED_OPERATION", { operation: "decrypt" }); } @@ -32,9 +32,7 @@ function getAccount(data, _key) { const key = getBytes(_key); const ciphertext = spelunk(data, "crypto.ciphertext:data!"); const computedMAC = hexlify(keccak256(concat([key.slice(16, 32), ciphertext]))).substring(2); - if (computedMAC !== spelunk(data, "crypto.mac:string!").toLowerCase()) { - return throwArgumentError("incorrect password", "password", "[ REDACTED ]"); - } + assertArgument(computedMAC === spelunk(data, "crypto.mac:string!").toLowerCase(), "incorrect password", "password", "[ REDACTED ]"); const privateKey = decrypt(data, key.slice(0, 16), ciphertext); const address = computeAddress(privateKey); if (data.address) { @@ -42,9 +40,7 @@ function getAccount(data, _key) { if (check.substring(0, 2) !== "0x") { check = "0x" + check; } - if (getAddress(check) !== address) { - throwArgumentError("keystore address/privateKey mismatch", "address", data.address); - } + assertArgument(getAddress(check) === address, "keystore address/privateKey mismatch", "address", data.address); } const account = { address, privateKey }; // Version 0.1 x-ethers metadata must contain an encrypted mnemonic phrase @@ -66,7 +62,7 @@ function getKdfParams(data) { const kdf = spelunk(data, "crypto.kdf:string"); if (kdf && typeof (kdf) === "string") { const throwError = function (name, value) { - return throwArgumentError("invalid key-derivation function parameters", name, value); + assertArgument(false, "invalid key-derivation function parameters", name, value); }; if (kdf.toLowerCase() === "scrypt") { const salt = spelunk(data, "crypto.kdfparams.salt:data!"); @@ -102,7 +98,7 @@ function getKdfParams(data) { return { name: "pbkdf2", salt, count, dkLen, algorithm }; } } - return throwArgumentError("unsupported key-derivation function", "kdf", kdf); + assertArgument(false, "unsupported key-derivation function", "kdf", kdf); } export function decryptKeystoreJsonSync(json, _password) { const data = JSON.parse(json); @@ -190,14 +186,10 @@ export async function encryptKeystoreJson(account, password, options, progressCa const salt = (options.salt != null) ? getBytes(options.salt, "options.slat") : randomBytes(32); // Override initialization vector const iv = (options.iv != null) ? getBytes(options.iv, "options.iv") : randomBytes(16); - if (iv.length !== 16) { - throwArgumentError("invalid options.iv", "options.iv", options.iv); - } + assertArgument(iv.length === 16, "invalid options.iv", "options.iv", options.iv); // Override the uuid const uuidRandom = (options.uuid != null) ? getBytes(options.uuid, "options.uuid") : randomBytes(16); - if (uuidRandom.length !== 16) { - throwArgumentError("invalid options.uuid", "options.uuid", options.iv); - } + assertArgument(uuidRandom.length === 16, "invalid options.uuid", "options.uuid", options.iv); if (uuidRandom.length !== 16) { throw new Error("invalid uuid"); } diff --git a/lib.esm/wallet/json-keystore.js.map b/lib.esm/wallet/json-keystore.js.map index 92b0f65c8..ed7528af7 100644 --- a/lib.esm/wallet/json-keystore.js.map +++ b/lib.esm/wallet/json-keystore.js.map @@ -1 +1 @@ -{"version":3,"file":"json-keystore.js","sourceRoot":"","sources":["../../src.ts/wallet/json-keystore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAC;AAE7B,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACxF,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EACH,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAC5D,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAKhE,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEzC,MAAM,WAAW,GAAG,kBAAkB,CAAC;AAoCvC,MAAM,UAAU,cAAc,CAAC,IAAY;IACvC,IAAI;QACA,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC9B,MAAM,OAAO,GAAG,CAAC,CAAC,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA,CAAC,CAAC,CAAC,CAAC,CAAC;QACrE,IAAI,OAAO,KAAK,CAAC,EAAE;YAAE,OAAO,IAAI,CAAC;SAAE;KACtC;IAAC,OAAO,KAAK,EAAE,GAAG;IACnB,OAAO,KAAK,CAAC;AACjB,CAAC;AAED,SAAS,OAAO,CAAC,IAAS,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m/wallet/mnemonic.js +++ b/lib.esm/wallet/mnemonic.js @@ -1,5 +1,5 @@ import { pbkdf2, sha256 } from "../crypto/index.js"; -import { defineProperties, getBytes, hexlify, assertNormalize, assertPrivate, throwArgumentError, toUtf8Bytes } from "../utils/index.js"; +import { defineProperties, getBytes, hexlify, assertNormalize, assertPrivate, assertArgument, toUtf8Bytes } from "../utils/index.js"; import { langEn } from "../wordlists/lang-en.js"; // Returns a byte with the MSB bits set function getUpperMask(bits) { @@ -15,16 +15,12 @@ function mnemonicToEntropy(mnemonic, wordlist = langEn) { wordlist = langEn; } const words = wordlist.split(mnemonic); - if ((words.length % 3) !== 0 || words.length < 12 || words.length > 24) { - throwArgumentError("invalid mnemonic length", "mnemonic", "[ REDACTED ]"); - } + assertArgument((words.length % 3) === 0 && words.length >= 12 && words.length <= 24, "invalid mnemonic length", "mnemonic", "[ REDACTED ]"); const entropy = new Uint8Array(Math.ceil(11 * words.length / 8)); let offset = 0; for (let i = 0; i < words.length; i++) { let index = wordlist.getWordIndex(words[i].normalize("NFKD")); - if (index === -1) { - throwArgumentError(`invalid mnemonic word at index ${i}`, "mnemonic", "[ REDACTED ]"); - } + assertArgument(index >= 0, `invalid mnemonic word at index ${i}`, "mnemonic", "[ REDACTED ]"); for (let bit = 0; bit < 11; bit++) { if (index & (1 << (10 - bit))) { entropy[offset >> 3] |= (1 << (7 - (offset % 8))); @@ -36,15 +32,11 @@ function mnemonicToEntropy(mnemonic, wordlist = langEn) { const checksumBits = words.length / 3; const checksumMask = getUpperMask(checksumBits); const checksum = getBytes(sha256(entropy.slice(0, entropyBits / 8)))[0] & checksumMask; - if (checksum !== (entropy[entropy.length - 1] & checksumMask)) { - throwArgumentError("invalid mnemonic checksum", "mnemonic", "[ REDACTED ]"); - } + assertArgument(checksum === (entropy[entropy.length - 1] & checksumMask), "invalid mnemonic checksum", "mnemonic", "[ REDACTED ]"); return hexlify(entropy.slice(0, entropyBits / 8)); } function entropyToMnemonic(entropy, wordlist = langEn) { - if ((entropy.length % 4) || entropy.length < 16 || entropy.length > 32) { - throwArgumentError("invalid entropy size", "entropy", "[ REDACTED ]"); - } + assertArgument((entropy.length % 4) === 0 && entropy.length >= 16 && entropy.length <= 32, "invalid entropy size", "entropy", "[ REDACTED ]"); if (wordlist == null) { wordlist = langEn; } diff --git a/lib.esm/wallet/mnemonic.js.map b/lib.esm/wallet/mnemonic.js.map index 57083a9bc..27fa44d6d 100644 --- a/lib.esm/wallet/mnemonic.js.map +++ b/lib.esm/wallet/mnemonic.js.map @@ -1 +1 @@ -{"version":3,"file":"mnemonic.js","sourceRoot":"","sources":["../../src.ts/wallet/mnemonic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EACH,gBAAgB,EAAE,QAAQ,EAAE,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,kBAAkB,EAAE,WAAW,EACvG,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAMjD,uCAAuC;AACvC,SAAS,YAAY,CAAC,IAAY;IAC/B,OAAO,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;AACjD,CAAC;AAED,uCAAuC;AACvC,SAAS,YAAY,CAAC,IAAY;IAC/B,OAAO,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC;AACnC,CAAC;AAGD,SAAS,iBAAiB,CAAC,QAAgB,EAAE,WAA4B,MAAM;IAC3E,eAAe,CAAC,MAAM,CAAC,CAAC;IAExB,IAAI,QAAQ,IAAI,IAAI,EAAE;QAAE,QAAQ,GAAG,MAAM,CAAC;KAAE;IAE5C,MAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IACvC,IAAI,CAAC,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Q,CAAC,CAAC;IAC9E,CAAC;IAED,MAAM,CAAC,eAAe,CAAC,QAAmB,EAAE,QAA0B;QAClE,MAAM,OAAO,GAAG,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;QAC9C,OAAO,iBAAiB,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IAChD,CAAC;IAED,MAAM,CAAC,eAAe,CAAC,MAAc,EAAE,QAA0B;QAC7D,OAAO,iBAAiB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IAC/C,CAAC;IAED,MAAM,CAAC,eAAe,CAAC,MAAc,EAAE,QAA0B;QAC7D,IAAI;YACA,iBAAiB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;YACpC,OAAO,IAAI,CAAC;SACf;QAAC,OAAO,KAAK,EAAE,GAAG;QACnB,OAAO,KAAK,CAAC;IACjB,CAAC;CACJ"} \ No newline at end of file diff --git a/lib.esm/wallet/utils.js b/lib.esm/wallet/utils.js index 7432dcb7e..b0dbc476a 100644 --- a/lib.esm/wallet/utils.js +++ b/lib.esm/wallet/utils.js @@ -1,4 +1,4 @@ -import { getBytes, getBytesCopy, hexlify, throwArgumentError, toUtf8Bytes } from "../utils/index.js"; +import { getBytes, getBytesCopy, hexlify, assertArgument, toUtf8Bytes } from "../utils/index.js"; export function looseArrayify(hexString) { if (typeof (hexString) === 'string' && hexString.substring(0, 2) !== '0x') { hexString = '0x' + hexString; @@ -20,9 +20,7 @@ export function getPassword(password) { } export function spelunk(object, _path) { const match = _path.match(/^([a-z0-9$_.-]*)(:([a-z]+))?(!)?$/i); - if (match == null) { - return throwArgumentError("invalid path", "path", _path); - } + assertArgument(match != null, "invalid path", "path", _path); const path = match[1]; const type = match[3]; const reqd = (match[4] === "!"); @@ -52,9 +50,7 @@ export function spelunk(object, _path) { break; } } - if (reqd && cur == null) { - throwArgumentError("missing required value", "path", path); - } + assertArgument(!reqd || cur != null, "missing required value", "path", path); if (type && cur != null) { if (type === "int") { if (typeof (cur) === "string" && cur.match(/^-?[0-9]+$/)) { @@ -80,7 +76,7 @@ export function spelunk(object, _path) { if (type === typeof (cur)) { return cur; } - throwArgumentError(`wrong type found for ${type} `, "path", path); + assertArgument(false, `wrong type found for ${type} `, "path", path); } return cur; } diff --git a/lib.esm/wallet/utils.js.map b/lib.esm/wallet/utils.js.map index 9128009f1..14d60b257 100644 --- a/lib.esm/wallet/utils.js.map +++ b/lib.esm/wallet/utils.js.map @@ -1 +1 @@ -{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src.ts/wallet/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,kBAAkB,EAAE,WAAW,EACnE,MAAM,mBAAmB,CAAC;AAK3B,MAAM,UAAU,aAAa,CAAC,SAAiB;IAC3C,IAAI,OAAM,CAAC,SAAS,CAAC,KAAK,QAAQ,IAAI,SAAS,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,IAAI,EAAE;QACtE,SAAS,GAAG,IAAI,GAAG,SAAS,CAAC;KAChC;IACD,OAAO,YAAY,CAAC,SAAS,CAAC,CAAC;AACnC,CAAC;AAED,MAAM,UAAU,IAAI,CAAC,KAAsB,EAAE,MAAc;IACvD,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;IACtB,OAAO,KAAK,CAAC,MAAM,GAAG,MAAM,EAAE;QAAE,KAAK,GAAG,GAAG,GAAG,KAAK,CAAC;KAAE;IACtD,OAAO,KAAK,CAAC;AACjB,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,QAA6B;IACrD,IAAI,OAAM,CAAC,QAAQ,CAAC,KAAK,QAAQ,EAAE;QAC/B,OAAO,WAAW,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;KACxC;IACD,OAAO,YAAY,CAAC,QAAQ,CAAC,CAAC;AAClC,CAAC;AAED,MAAM,UAAU,OAAO,CAAa,MAAW,EAAE,KAAa;IAE1D,MAAM,KAAK,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;;;;;;;;;;;EA8BE;AACF,0DAA0D;AAC1D,MAAM,UAAU,MAAM,CAAC,WAAsB;IACzC,MAAM,KAAK,GAAG,QAAQ,CAAC,WAAW,EAAE,aAAa,CAAC,CAAC;IAEnD,kBAAkB;IAClB,wCAAwC;IACxC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;IAEpC,cAAc;IACd,uCAAuC;IACvC,uCAAuC;IACvC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;IAEpC,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;IAE7B,OAAO;QACJ,KAAK,CAAC,SAAS,CAAC,CAAC,EAAE,EAAE,CAAC;QACtB,KAAK,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,CAAC;QACvB,KAAK,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,CAAC;QACvB,KAAK,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,CAAC;QACvB,KAAK,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,CAAC;KACzB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAChB,CAAC"} \ No newline at end of file diff --git a/lib.esm/wallet/wallet.js b/lib.esm/wallet/wallet.js index 22688a6a0..0beb7e95f 100644 --- a/lib.esm/wallet/wallet.js +++ b/lib.esm/wallet/wallet.js @@ -1,6 +1,6 @@ import { randomBytes, SigningKey } from "../crypto/index.js"; import { computeAddress } from "../transaction/index.js"; -import { isHexString, throwArgumentError } from "../utils/index.js"; +import { isHexString, assertArgument } from "../utils/index.js"; import { BaseWallet } from "./base-wallet.js"; import { HDNodeWallet } from "./hdwallet.js"; import { decryptCrowdsaleJson, isCrowdsaleJson } from "./json-crowdsale.js"; @@ -91,9 +91,7 @@ export class Wallet extends BaseWallet { if (signingKey == null) { signingKey = trySigningKey(key); } - if (signingKey == null) { - throwArgumentError("invalid key", "key", "[ REDACTED ]"); - } + assertArgument(signingKey != null, "invalid key", "key", "[ REDACTED ]"); super(signingKey, provider); this.#mnemonic = mnemonic; } @@ -125,12 +123,10 @@ export class Wallet extends BaseWallet { } } else { - return throwArgumentError("invalid JSON wallet", "json", "[ REDACTED ]"); + assertArgument(false, "invalid JSON wallet", "json", "[ REDACTED ]"); } const wallet = new Wallet(account.privateKey); - if (wallet.address !== account.address) { - throwArgumentError("address/privateKey mismatch", "json", "[ REDACTED ]"); - } + assertArgument(wallet.address === account.address, "address/privateKey mismatch", "json", "[ REDACTED ]"); // @TODO: mnemonic return wallet; } @@ -143,12 +139,10 @@ export class Wallet extends BaseWallet { account = decryptCrowdsaleJson(json, password); } else { - return throwArgumentError("invalid JSON wallet", "json", "[ REDACTED ]"); + assertArgument(false, "invalid JSON wallet", "json", "[ REDACTED ]"); } const wallet = new Wallet(account.privateKey); - if (wallet.address !== account.address) { - throwArgumentError("address/privateKey mismatch", "json", "[ REDACTED ]"); - } + assertArgument(wallet.address === account.address, "address/privateKey mismatch", "json", "[ REDACTED ]"); // @TODO: mnemonic return wallet; } diff --git a/lib.esm/wallet/wallet.js.map b/lib.esm/wallet/wallet.js.map index b39d92979..308ea6984 100644 --- a/lib.esm/wallet/wallet.js.map +++ b/lib.esm/wallet/wallet.js.map @@ -1 +1 @@ -{"version":3,"file":"wallet.js","sourceRoot":"","sources":["../../src.ts/wallet/wallet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAEpE,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAA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AM,GAAG,IAAI,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;QAC9C,cAAc,CAAC,MAAM,CAAC,OAAO,KAAK,OAAO,CAAC,OAAO,EAC7C,6BAA6B,EAAE,MAAM,EAAE,cAAc,CAAC,CAAC;QAC3D,kBAAkB;QAClB,OAAO,MAAM,CAAC;IAClB,CAAC;IAED,MAAM,CAAC,YAAY,CAAC,QAA0B,EAAE,QAAwB,EAAE,QAA0B;QAChG,OAAO,IAAI,MAAM,CAAC,QAAQ,CAAC,WAAW,CAAC,WAAW,CAAC,EAAE,CAAC,EAAE,QAAQ,EAAE,QAAQ,CAAC,EAAE,QAAQ,CAAC,CAAC;IAC3F,CAAC;IAED,MAAM,CAAC,YAAY,CAAC,QAAkB,EAAE,QAA0B;QAC9D,OAAO,IAAI,MAAM,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;IAC1C,CAAC;IAED,MAAM,CAAC,UAAU,CAAC,MAAc,EAAE,QAA0B,EAAE,QAAiB,EAAE,QAAmB;QAChG,IAAI,QAAQ,IAAI,IAAI,EAAE;YAAE,QAAQ,GAAG,EAAE,CAAC;SAAE;QACxC,OAAO,IAAI,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,MAAM,EAAE,QAAQ,EAAE,QAAQ,CAAC,EAAE,QAAQ,CAAC,CAAC;IACjF,CAAC;CACJ"} \ No newline at end of file diff --git a/lib.esm/wordlists/lang-ja.js b/lib.esm/wordlists/lang-ja.js index d6ace6815..c27ddadc9 100644 --- a/lib.esm/wordlists/lang-ja.js +++ b/lib.esm/wordlists/lang-ja.js @@ -1,5 +1,5 @@ import { id } from "../hash/index.js"; -import { hexlify, throwArgumentError, toUtf8Bytes, toUtf8String } from "../utils/index.js"; +import { hexlify, assertArgument, toUtf8Bytes, toUtf8String } from "../utils/index.js"; import { Wordlist } from "./wordlist.js"; const data = [ // 4-kana words @@ -113,9 +113,7 @@ class LangJa extends Wordlist { constructor() { super("ja"); } getWord(index) { const words = loadWords(); - if (index < 0 || index >= words.length) { - throwArgumentError(`invalid word index: ${index}`, "index", index); - } + assertArgument(index >= 0 && index < words.length, `invalid word index: ${index}`, "index", index); return words[index]; } getWordIndex(word) { diff --git a/lib.esm/wordlists/lang-ja.js.map b/lib.esm/wordlists/lang-ja.js.map index 0963fc271..124fa86a8 100644 --- a/lib.esm/wordlists/lang-ja.js.map +++ b/lib.esm/wordlists/lang-ja.js.map @@ -1 +1 @@ -{"version":3,"file":"lang-ja.js","sourceRoot":"","sources":["../../src.ts/wordlists/lang-ja.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AACtC,OAAO,EACH,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,YAAY,EACzD,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAGzC,MAAM,IAAI,GAAG;IAET,eAAe;IACf,orEAAorE;IAEprE,eAAe;IACf,ssGAAssG;IAEtsG,eAAe;IACf,4uDAA4uD;IAE5uD,eAAe;IACf,olBAAolB;IAEplB,eAAe;IACf,4JAA4J;IAE5J,eAAe;IACf,0GAA0G;IAE1G,gBAAgB;IAChB,WAAW;CACd,CAAC;AAEF,sDAAsD;AACtD,MAAM,OAAO,GAAG,6FAA6F,CAAA;AAE7G,IAAI,SAAS,GAAyB,IAAI,CAAC;AAE3C,SAAS,GAAG,CAAC,IAAY;IACrB,OAAO,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC;AACtC,CAAC;AAED,MAAM,MAAM,GAAG,sBAAsB,CAAC;AACtC,MAAM,KAAK,GAAG,sBAAsB,CAAA;AAEpC,SAAS,QAAQ,CAAC,IAAmB;IACjC,OAAO,YAAY,CAAC,IAAI,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;AAC9C,CAAC;AAED,SAAS,SAAS;IACd,IAAI,SAAS,KAAK,IAAI,EAAE;QAAE,OAAO,SAAS,CAAC;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xE;QACD,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC;IACxB,CAAC;IAED,YAAY,CAAC,IAAY;QACrB,OAAO,SAAS,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACrC,CAAC;IAED,KAAK,CAAC,QAAgB;QAClB,2BAA2B;QAC3B,OAAO,QAAQ,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;IAED,IAAI,CAAC,KAAoB;QACrB,OAAO,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAChC,CAAC;CACJ;AAED,MAAM,CAAC,MAAM,MAAM,GAAG,IAAI,MAAM,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"lang-ja.js","sourceRoot":"","sources":["../../src.ts/wordlists/lang-ja.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AACtC,OAAO,EACH,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,YAAY,EACrD,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAGzC,MAAM,IAAI,GAAG;IAET,eAAe;IACf,orEAAorE;IAEprE,eAAe;IACf,ssGAAssG;IAEtsG,eAAe;IACf,4uDAA4uD;IAE5uD,eAAe;IACf,olBAAolB;IAEplB,eAAe;IACf,4JAA4J;IAE5J,eAAe;IACf,0GAA0G;IAE1G,gBAAgB;IAChB,WAAW;CACd,CAAC;AAEF,sDAAsD;AACtD,MAAM,OAAO,GAAG,6FAA6F,CAAA;AAE7G,IAAI,SAAS,GAAyB,IAAI,CAAC;AAE3C,SAAS,GAAG,CAAC,IAAY;IACrB,OAAO,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC;AACtC,CAAC;AAED,MAAM,MAAM,GAAG,sBAAsB,CAAC;AACtC,MAAM,KAAK,GAAG,sBAAsB,CAAA;AAEpC,SAAS,QAAQ,CAAC,IAAmB;IACjC,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1B,cAAc,CAAC,KAAK,IAAI,CAAC,IAAI,KAAK,GAAG,KAAK,CAAC,MAAM,EAC7C,uBAAwB,KAAM,EAAE,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;QACtD,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC;IACxB,CAAC;IAED,YAAY,CAAC,IAAY;QACrB,OAAO,SAAS,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACrC,CAAC;IAED,KAAK,CAAC,QAAgB;QAClB,2BAA2B;QAC3B,OAAO,QAAQ,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;IAED,IAAI,CAAC,KAAoB;QACrB,OAAO,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAChC,CAAC;CACJ;AAED,MAAM,CAAC,MAAM,MAAM,GAAG,IAAI,MAAM,EAAE,CAAC"} \ No newline at end of file diff --git a/lib.esm/wordlists/lang-ko.js b/lib.esm/wordlists/lang-ko.js index 8caa5c165..0e9c38d19 100644 --- a/lib.esm/wordlists/lang-ko.js +++ b/lib.esm/wordlists/lang-ko.js @@ -1,5 +1,5 @@ import { id } from "../hash/index.js"; -import { throwArgumentError, toUtf8String } from "../utils/index.js"; +import { assertArgument, toUtf8String } from "../utils/index.js"; import { Wordlist } from "./wordlist.js"; const data = [ "OYAa", @@ -55,9 +55,7 @@ class LangKo extends Wordlist { } getWord(index) { const words = loadWords(); - if (index < 0 || index >= words.length) { - throwArgumentError(`invalid word index: ${index}`, "index", index); - } + assertArgument(index >= 0 && index < words.length, `invalid word index: ${index}`, "index", index); return words[index]; } getWordIndex(word) { diff --git a/lib.esm/wordlists/lang-ko.js.map b/lib.esm/wordlists/lang-ko.js.map index ee0ccc277..97ccbf789 100644 --- a/lib.esm/wordlists/lang-ko.js.map +++ b/lib.esm/wordlists/lang-ko.js.map @@ -1 +1 @@ -{"version":3,"file":"lang-ko.js","sourceRoot":"","sources":["../../src.ts/wordlists/lang-ko.ts"],"names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IAAI,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;aACjD;YACD,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;SACtB;IACL,CAAC,CAAC,CAAC;IAEH,QAAQ,CAAC,IAAI,EAAE,CAAC;IAEhB,qDAAqD;IACrD,wBAAwB;IACxB,MAAM,QAAQ,GAAG,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;IAChD,qBAAqB;IACrB,IAAI,QAAQ,KAAK,oEAAoE,EAAE;QACnF,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;KAC5D;IACD,oBAAoB;IAEpB,SAAS,GAAG,QAAQ,CAAC;IAErB,OAAO,QAAQ,CAAC;AACpB,CAAC;AAGD,MAAM,MAAO,SAAQ,QAAQ;IACzB;QACI,KAAK,CAAC,IAAI,CAAC,CAAC;IAChB,CAAC;IAED,OAAO,CAAC,KAAa;QACjB,MAAM,KAAK,GAAG,SAAS,EAAE,CAAC;QAC1B,cAAc,CAAC,KAAK,IAAI,CAAC,IAAI,KAAK,GAAG,KAAK,CAAC,MAAM,EAC7C,uBAAwB,KAAM,EAAE,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;QACtD,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC;IACxB,CAAC;IAED,YAAY,CAAC,IAAY;QACrB,OAAO,SAAS,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACrC,CAAC;CACJ;AAED,MAAM,CAAC,MAAM,MAAM,GAAG,IAAI,MAAM,EAAE,CAAC"} \ No newline at end of file diff --git a/lib.esm/wordlists/lang-zh.js b/lib.esm/wordlists/lang-zh.js index ba67539a4..e4d29a473 100644 --- a/lib.esm/wordlists/lang-zh.js +++ b/lib.esm/wordlists/lang-zh.js @@ -1,5 +1,5 @@ import { id } from "../hash/index.js"; -import { throwArgumentError, toUtf8String } from "../utils/index.js"; +import { assertArgument, toUtf8String } from "../utils/index.js"; import { Wordlist } from "./wordlist.js"; const data = "}aE#4A=Yv&co#4N#6G=cJ&SM#66|/Z#4t&kn~46#4K~4q%b9=IR#7l,mB#7W_X2*dl}Uo~7s}Uf&Iw#9c&cw~6O&H6&wx&IG%v5=IQ~8a&Pv#47$PR&50%Ko&QM&3l#5f,D9#4L|/H&tQ;v0~6n]nN= words.length) { - throwArgumentError(`invalid word index: ${index}`, "index", index); - } + assertArgument(index >= 0 && index < words.length, `invalid word index: ${index}`, "index", index); return words[index]; } getWordIndex(word) { diff --git a/lib.esm/wordlists/lang-zh.js.map b/lib.esm/wordlists/lang-zh.js.map index bbd91b7c6..8433ed1e2 100644 --- a/lib.esm/wordlists/lang-zh.js.map +++ b/lib.esm/wordlists/lang-zh.js.map @@ -1 +1 @@ -{"version":3,"file":"lang-zh.js","sourceRoot":"","sources":["../../src.ts/wordlists/lang-zh.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAErE,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAGzC,MAAM,IAAI,GAAG,kgMAAkgM,CAAC;AAChhM,MAAM,SAAS,GAAG,6lDAA6lD,CAAC;AAGhnD,MAAM,SAAS,GAAyC;IACpD,KAAK,EAAE,IAAI;IACX,KAAK,EAAE,IAAI;CACd,CAAA;AAED,MAAM,MAAM,GAA2B;IACnC,KAAK,EAAE,oEAAoE;IAC3E,KAAK,EAAE,oEAAoE;CAC9E,CAAA;AAED,MAAM,KAAK,GAAG,kEAAkE,CAAC;AACjF,MAAM,KAAK,GAAG,4BAA4B,CAAA;AAE1C,SAAS,SAAS,CAAC,MAAc;IAC7B,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,IAAI,EAAE;QAAE,OAAO,SAAS,CAAC,MAAM,C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C,CAAC;QAClD,OAAO,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAC9B,CAAC;CACJ;AAED,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC;AACzC,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC"} \ No newline at end of file diff --git a/lib.esm/wordlists/wordlist-owl.js b/lib.esm/wordlists/wordlist-owl.js index ae0ae7b86..dac986cbe 100644 --- a/lib.esm/wordlists/wordlist-owl.js +++ b/lib.esm/wordlists/wordlist-owl.js @@ -1,7 +1,7 @@ // Use the encode-latin.js script to create the necessary // data files to be consumed by this class import { id } from "../hash/index.js"; -import { throwArgumentError } from "../utils/index.js"; +import { assertArgument } from "../utils/index.js"; import { decodeOwl } from "./decode-owl.js"; import { Wordlist } from "./wordlist.js"; export class WordlistOwl extends Wordlist { @@ -34,9 +34,7 @@ export class WordlistOwl extends Wordlist { } getWord(index) { const words = this.#loadWords(); - if (index < 0 || index >= words.length) { - throwArgumentError(`invalid word index: ${index}`, "index", index); - } + assertArgument(index >= 0 && index < words.length, `invalid word index: ${index}`, "index", index); return words[index]; } getWordIndex(word) { diff --git a/lib.esm/wordlists/wordlist-owl.js.map b/lib.esm/wordlists/wordlist-owl.js.map index 910f36b57..b9be0e99e 100644 --- a/lib.esm/wordlists/wordlist-owl.js.map +++ b/lib.esm/wordlists/wordlist-owl.js.map @@ -1 +1 @@ -{"version":3,"file":"wordlist-owl.js","sourceRoot":"","sources":["../../src.ts/wordlists/wordlist-owl.ts"],"names":[],"mappings":"AACA,yDAAyD;AACzD,0CAA0C;AAE1C,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAEvD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe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,CAAC,MAAO,SAAS,CAAC,CAAC;aACjE;YACD,oBAAoB;YAEpB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;SACvB;QACD,OAAO,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;IAED,OAAO,CAAC,KAAa;QACjB,MAAM,KAAK,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC;QAChC,cAAc,CAAC,KAAK,IAAI,CAAC,IAAI,KAAK,GAAG,KAAK,CAAC,MAAM,EAAE,uBAAwB,KAAM,EAAE,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;QACrG,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC;IACxB,CAAC;IAED,YAAY,CAAC,IAAY;QACrB,OAAO,IAAI,CAAC,UAAU,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3C,CAAC;CACJ"} \ No newline at end of file diff --git a/package.json b/package.json index d912381fe..5450cb007 100644 --- a/package.json +++ b/package.json @@ -104,7 +104,7 @@ "types": "./types/wordlistsindex.d.ts" } }, - "gitHead": "1648beba74783cae6bcb5552a1c968be61d7931f", + "gitHead": "60d7709069cbeedb5da73c3fb4864683beed2156", "keywords": [ "ethereum", "ethers", diff --git a/types/abi/abi-coder.d.ts.map b/types/abi/abi-coder.d.ts.map index d01083e0b..7d3950272 100644 --- a/types/abi/abi-coder.d.ts.map +++ b/types/abi/abi-coder.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"abi-coder.d.ts","sourceRoot":"","sources":["../../src.ts/abi/abi-coder.ts"],"names":[],"mappings":"AAIA,OAAO,EAAiB,MAAM,EAAU,MAAM,4BAA4B,CAAC;AAU3E,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAK3C,OAAO,KAAK,EACR,SAAS,EACT,mBAAmB,EAAE,kBAAkB,EAC1C,MAAM,mBAAmB,CAAC;AAM3B,qBAAa,QAAQ;;IA+CjB,eAAe,CAAC,KAAK,EAAE,aAAa,CAAC,MAAM,GAAG,SAAS,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;AAeD,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,mBAAmB,EAAE,EAAE,EAAE;IAAE,EAAE,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,EAAE,IAAI,EAAE,IAAI,GAAG,SAAS,GAAG,kBAAkB,CA6DhL;AAED,eAAO,MAAM,eAAe,EAAE,QAAyB,CAAC"} \ No newline at end of file diff --git a/types/abi/coders/abstract-coder.d.ts.map b/types/abi/coders/abstract-coder.d.ts.map index 647fc8ca2..8cad73d26 100644 --- a/types/abi/coders/abstract-coder.d.ts.map +++ b/types/abi/coders/abstract-coder.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"abstract-coder.d.ts","sourceRoot":"","sources":["../../../src.ts/abi/coders/abstract-coder.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEpE,eAAO,MAAM,QAAQ,KAAK,CAAC;AAS3B,qBAAa,MAAO,SAAQ,KAAK,CAAC,GAAG,CAAC;;IAGlC,CAAE,CAAC,EAAE,MAAM,GAAG,MAAM,GAAI,GAAG,CAAA;gBAEf,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,EAAE,KAAK,CAAC,IAAI,GAAG,MAAM,CAAC;IAgEtE,KAAK,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,KAAK,CAAC,GAAG,CAAC;IAuBvE,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG;IAa3B,MAAM,CAAC,SAAS,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,EAAE,KAAK,CAAC,IAAI,GAAG,MAAM,CAAC;CAGlE;A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AAO,GAAG,UAAU;IAQtD,SAAS,IAAI,MAAM;IAInB,SAAS,IAAI,MAAM;CAGtB"} \ No newline at end of file diff --git a/types/abi/coders/array.d.ts.map b/types/abi/coders/array.d.ts.map index 1413332b6..46d52df0c 100644 --- a/types/abi/coders/array.d.ts.map +++ b/types/abi/coders/array.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"array.d.ts","sourceRoot":"","sources":["../../../src.ts/abi/coders/array.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC,OAAO,EAAE,KAAK,EAAE,MAAM,EAAY,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAGtE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAGlD,wBAAgB,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,GAAG,CAAC,GAAG;IAAE,CAAE,IAAI,EAAE,MAAM,GAAI,GAAG,CAAA;CAAE,GAAG,MAAM,CAuEzH;AAED,wBAAgB,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,CAAC,KAAK,CAAC,GAAG,MAAM,CAoD3E;AAGD,qBAAa,UAAW,SAAQ,KAAK;IACjC,QAAQ,CAAC,KAAK,EAAG,KAAK,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAG,MAAM,CAAC;gBAEb,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;IAO3D,YAAY,IAAI,KAAK,CAAC,GAAG,CAAC;IAW1B,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,GAAG,CAAC,GAAG,KAAK,GAAG,MAAM;IAsB1D,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,GAAG;CAuB9B"} \ No newline at end of file +{"version":3,"file":"array.d.ts","sourceRoot":"","sources":["../../../src.ts/abi/coders/array.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC,OAAO,EAAE,KAAK,EAAE,MAAM,EAAY,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAGtE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAGlD,wBAAgB,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,GAAG,CAAC,GAAG;IAAE,CAAE,IAAI,EAAE,MAAM,GAAI,GAAG,CAAA;CAAE,GAAG,MAAM,CA2DzH;AAED,wBAAgB,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,CAAC,KAAK,CAAC,GAAG,MAAM,CAoD3E;AAGD,qBAAa,UAAW,SAAQ,KAAK;IACjC,QAAQ,CAAC,KAAK,EAAG,KAAK,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAG,MAAM,CAAC;gBAEb,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;IAO3D,YAAY,IAAI,KAAK,CAAC,GAAG,CAAC;IAW1B,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,GAAG,CAAC,GAAG,KAAK,GAAG,MAAM;IAsB1D,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,GAAG;CAkB9B"} \ No newline at end of file diff --git a/types/abi/fragments.d.ts.map b/types/abi/fragments.d.ts.map index 97d1056e4..b1ecfc0b3 100644 --- a/types/abi/fragments.d.ts.map +++ b/types/abi/fragments.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"fragments.d.ts","sourceRoot":"","sources":["../../src.ts/abi/fragments.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,gBAAgB;IAC7B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,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SAAS,CAAC,CAAC;IAC5C,QAAQ,CAAC,eAAe,EAAG,MAAM,CAAC;IAElC,QAAQ,CAAC,OAAO,EAAG,OAAO,CAAC;IAC3B,QAAQ,CAAC,GAAG,EAAG,IAAI,GAAG,MAAM,CAAC;gBAEjB,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,aAAa,CAAC,SAAS,CAAC,EAAE,GAAG,EAAE,IAAI,GAAG,MAAM;IAStJ,IAAI,QAAQ,IAAI,MAAM,CAErB;IAED,MAAM,CAAC,MAAM,GAAE,UAAsB,GAAG,MAAM;IAmC9C,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,GAAG,gBAAgB;IA+BvC,MAAM,CAAC,UAAU,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,gBAAgB;CAG3D;AAED,qBAAa,cAAe,SAAQ,aAAa;gBACjC,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,CAAC,SAAS,CAAC;IAKtE,MAAM,IAAI,MAAM;IAIhB,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,GAAG,cAAc;IAcrC,MAAM,CAAC,UAAU,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,gBAAgB;CAG3D"} \ No newline at end of file diff --git a/types/abi/interface.d.ts.map b/types/abi/interface.d.ts.map index 0941c5122..7ef6f3c5d 100644 --- a/types/abi/interface.d.ts.map +++ b/types/abi/interface.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"interface.d.ts","sourceRoot":"","sources":["../../src.ts/abi/interface.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,QAAQ,EAA4C,MAAM,gBAAgB,CAAC;AACpF,OAAO,EAAE,iBAAiB,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,EAAE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AC,GAAG,CAAC,GAAG,MAAM;IAmCzF,kBAAkB,CAAC,aAAa,EAAE,aAAa,GAAG,MAAM,EAAE,MAAM,EAAE,aAAa,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,IAAI,GAAG,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;IA8D3H,cAAc,CAAC,aAAa,EAAE,aAAa,GAAG,MAAM,EAAE,MAAM,EAAE,aAAa,CAAC,GAAG,CAAC,GAAG;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;KAAE;IA2C1H,cAAc,CAAC,aAAa,EAAE,aAAa,GAAG,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,GAAG,MAAM;IAqE9G;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,YAAY,CAAA;KAAE,GAAG,IAAI,GAAG,sBAAsB;IAY3F,eAAe,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM;IAIxC;;;;;OAKG;IACH,QAAQ,CAAC,GAAG,EAAE;QAAE,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAC,GAAG,IAAI,GAAG,cAAc;IAa5E;;;;;OAKG;IACH,UAAU,CAAC,IAAI,EAAE,SAAS,GAAG,IAAI,GAAG,gBAAgB;IAWpD;;;;;OAKG;IACH,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,aAAa,CAAC,QAAQ,GAAG,MAAM,GAAG,YAAY,CAAC,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS;CAetG"} \ No newline at end of file diff --git a/types/address/address.d.ts.map b/types/address/address.d.ts.map index df0d21675..b5a4a777c 100644 --- a/types/address/address.d.ts.map +++ b/types/address/address.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"address.d.ts","sourceRoot":"","sources":["../../src.ts/address/address.ts"],"names":[],"mappings":"AAmFA,wBAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAkClD;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAKtD"} \ No newline at end of file +{"version":3,"file":"address.d.ts","sourceRoot":"","sources":["../../src.ts/address/address.ts"],"names":[],"mappings":"AAmFA,wBAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CA6BlD;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAKtD"} \ No newline at end of file diff --git a/types/address/checks.d.ts.map b/types/address/checks.d.ts.map index 00198952f..4ef8ebdd0 100644 --- a/types/address/checks.d.ts.map +++ b/types/address/checks.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"checks.d.ts","sourceRoot":"","sources":["../../src.ts/address/checks.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAGzE,wBAAgB,aAAa,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,WAAW,CAE9D;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CAM7C;AAeD,wBAAgB,cAAc,CAAC,MAAM,EAAE,WAAW,EAAE,QAAQ,CAAC,EAAE,IAAI,GAAG,YAAY,GAAG,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAqB5G"} \ No newline at end of file +{"version":3,"file":"checks.d.ts","sourceRoot":"","sources":["../../src.ts/address/checks.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAGzE,wBAAgB,aAAa,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,WAAW,CAE9D;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CAM7C;AAaD,wBAAgB,cAAc,CAAC,MAAM,EAAE,WAAW,EAAE,QAAQ,CAAC,EAAE,IAAI,GAAG,YAAY,GAAG,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAkB5G"} \ No newline at end of file diff --git a/types/address/contract-address.d.ts.map b/types/address/contract-address.d.ts.map index 894f56363..7314d07f5 100644 --- a/types/address/contract-address.d.ts.map +++ b/types/address/contract-address.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"contract-address.d.ts","sourceRoot":"","sources":["../../src.ts/address/contract-address.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAIjE,wBAAgB,gBAAgB,CAAC,EAAE,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,YAAY,CAAA;CAAE,GAAG,MAAM,CAclF;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,SAAS,GAAG,MAAM,CAcnG"} \ No newline at end of file +{"version":3,"file":"contract-address.d.ts","sourceRoot":"","sources":["../../src.ts/address/contract-address.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAIjE,wBAAgB,gBAAgB,CAAC,EAAE,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,YAAY,CAAA;CAAE,GAAG,MAAM,CAclF;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,SAAS,GAAG,MAAM,CAUnG"} \ No newline at end of file diff --git a/types/contract/contract.d.ts b/types/contract/contract.d.ts index 423a3cc4f..40ce909ec 100644 --- a/types/contract/contract.d.ts +++ b/types/contract/contract.d.ts @@ -1,5 +1,5 @@ import { Interface } from "../abi/index.js"; -import { TransactionResponse } from "../providers/index.js"; +import { Log, TransactionResponse } from "../providers/index.js"; import { ContractTransactionResponse, EventLog } from "./wrappers.js"; import type { EventFragment, FunctionFragment, InterfaceAbi, ParamType } from "../abi/index.js"; import type { Addressable } from "../address/index.js"; @@ -16,6 +16,7 @@ export declare class BaseContract implements Addressable, EventEmitterable; readonly [internal]: any; constructor(target: string | Addressable, abi: Interface | InterfaceAbi, runner?: null | ContractRunner, _deployTx?: null | TransactionResponse); + connect(runner: null | ContractRunner): BaseContract; getAddress(): Promise; getDeployedCode(): Promise; waitForDeployment(): Promise; @@ -23,7 +24,7 @@ export declare class BaseContract implements Addressable, EventEmitterable(key: string | FunctionFragment): T; getEvent(key: string | EventFragment): ContractEvent; queryTransaction(hash: string): Promise>; - queryFilter(event: ContractEventName, fromBlock?: BlockTag, toBlock?: BlockTag): Promise>; + queryFilter(event: ContractEventName, fromBlock?: BlockTag, toBlock?: BlockTag): Promise>; on(event: ContractEventName, listener: Listener): Promise; once(event: ContractEventName, listener: Listener): Promise; emit(event: ContractEventName, ...args: Array): Promise; diff --git a/types/contract/contract.d.ts.map b/types/contract/contract.d.ts.map index e251cae22..2014c6dde 100644 --- a/types/contract/contract.d.ts.map +++ b/types/contract/contract.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../src.ts/contract/contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAS,MAAM,iBAAiB,CAAC;AAEnD,OAAO,EAAoB,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAM9E,OAAO,EAEH,2BAA2B,EAC3B,QAAQ,EACX,MAAM,eAAe,CAAC;AAEvB,OAAO,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,YAAY,EAAE,SAAS,EAAU,MAAM,iBAAiB,CAAC;AACxG,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,KAAK,EAAE,gBAAgB,EAAE,Q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,EAAE,IAAI,GAAG,cAAc,KAAK,YAAY,GAAG,IAAI,CAAC,CAAC,EAAE,MAAM,YAAY,CAAC;IAS/J,MAAM,CAAC,IAAI,CAAC,CAAC,GAAG,iBAAiB,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,GAAE,IAAI,GAAG,cAAqB,GAAG,YAAY,GAAG,IAAI,CAAC,CAAC,EAAE,MAAM,YAAY,CAAC;CAI1J;;AAMD,qBAAa,QAAS,SAAQ,aAAe;CAAI"} \ No newline at end of file diff --git a/types/contract/factory.d.ts.map b/types/contract/factory.d.ts.map index 805f4b6e5..3a5e089c6 100644 --- a/types/contract/factory.d.ts.map +++ b/types/contract/factory.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../src.ts/contract/factory.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAO5C,OAAO,EAAE,YAAY,EAA8B,MAAM,eAAe,CAAC;AAEzE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEnD,OAAO,KAAK,EACR,iBAAiB,EAAE,kBAAkB,EAAE,yBAAyB,EACnE,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,eAAe,CAAC;AAKjE,qBAAa,eAAe,CAAC,CAAC,SAAS,KAAK,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,YAAY;IAC5E,QAAQ,CAAC,SAAS,EAAG,SAAS,CAAC;IAC/B,QAAQ,CAAC,QAAQ,EAAG,MAAM,CAAC;IAC3B,QAAQ,CAAC,MAAM,EAAG,IAAI,GAAG,cAAc,CAAC;gBAE5B,GAAG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AAe,CAAC;AAKjE,qBAAa,eAAe,CAAC,CAAC,SAAS,KAAK,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,YAAY;IAC5E,QAAQ,CAAC,SAAS,EAAG,SAAS,CAAC;IAC/B,QAAQ,CAAC,QAAQ,EAAG,MAAM,CAAC;IAC3B,QAAQ,CAAC,MAAM,EAAG,IAAI,GAAG,cAAc,CAAC;gBAE5B,GAAG,EAAE,SAAS,GAAG,YAAY,EAAE,QAAQ,EAAE,SAAS,GAAG;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,EAAE,MAAM,CAAC,EAAE,IAAI,GAAG,cAAc;IAiB7G,oBAAoB,CAAC,GAAG,IAAI,EAAE,kBAAkB,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,yBAAyB,CAAC;IAmBxF,MAAM,CAAC,GAAG,IAAI,EAAE,kBAAkB,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,YAAY,GAAG;QAAE,qBAAqB,IAAI,2BAA2B,CAAA;KAAE,GAAG,IAAI,CAAC,CAAC,EAAE,MAAM,YAAY,CAAC,CAAC;IAY5J,OAAO,CAAC,MAAM,EAAE,IAAI,GAAG,cAAc,GAAG,eAAe,CAAC,CAAC,EAAE,CAAC,CAAC;IAI7D,MAAM,CAAC,YAAY,CAAC,CAAC,SAAS,KAAK,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,iBAAiB,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,CAAC,EAAE,cAAc,GAAG,eAAe,CAAC,CAAC,EAAE,CAAC,CAAC;CAgB7I"} \ No newline at end of file diff --git a/types/contract/types.d.ts b/types/contract/types.d.ts index 615c7dce4..8bd799536 100644 --- a/types/contract/types.d.ts +++ b/types/contract/types.d.ts @@ -1,7 +1,7 @@ import type { EventFragment, FunctionFragment, Result, Typed } from "../abi/index.js"; import type { TransactionRequest, PreparedTransactionRequest, TopicFilter } from "../providers/index.js"; import type { ContractTransactionResponse } from "./wrappers.js"; -export declare type ContractEventName = string | ContractEvent | TopicFilter; +export declare type ContractEventName = string | ContractEvent | TopicFilter | DeferredTopicFilter; export interface ContractInterface { [name: string]: BaseContractMethod; } diff --git a/types/contract/types.d.ts.map b/types/contract/types.d.ts.map index 85db5972a..5247ffefe 100644 --- a/types/contract/types.d.ts.map +++ b/types/contract/types.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src.ts/contract/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,aAAa,EAAE,gBAAgB,EAAE,MAAM,EAAE,KAAK,EACjD,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EACR,kBAAkB,EAAE,0BAA0B,EAAE,WAAW,EAC9D,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,eAAe,CAAC;AAIjE,oBAAY,iBAAiB,GAAG,MAAM,GAAG,aAAa,GAAG,WAAW,CAAC;AAErE,MAAM,WAAW,iBAAiB;IAC9B,CAAE,IAAI,EAAE,MAAM,GAAI,kBAAkB,CAAC;CACxC;AAED,MAAM,WAAW,mBAAmB;IAChC,cAAc,IAAI,OAAO,CAAC,WAAW,CAAC,CAAC;IACvC,QAAQ,EAAE,aAAa,CAAC;CAC3B;AAED,MAAM,WAAW,mBAAoB,SAAQ,0BAA0B;IAEnE,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IAGb,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAGD,MAAM,WAAW,yBAA0B,SAAQ,IAAI,CAAC,mBAAmB,EAAE,IAAI,CAAC;CAAI;AAGtF,MAAM,WAAW,SAAU,SAAQ,IAAI,CAAC,kBAAkB,EAAE,IAAI,GAAG,MAAM,CAAC;CAAI;AAI9E,oBAAY,gBAAgB,CAAC,CAAC,SAAS,KAAK,CAAC,GAAG,CAAC,IAAI,CAA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AAG,KAAK,CAAC,GAAG,CAAC;IAC5D,CAAC,GAAG,IAAI,EAAE,iBAAiB,CAAC,CAAC,CAAC,GAAG,mBAAmB,CAAC;IAErD,IAAI,EAAE,MAAM,CAAC;IAEb,QAAQ,EAAE,aAAa,CAAC;IACxB,WAAW,CAAC,GAAG,IAAI,EAAE,iBAAiB,CAAC,CAAC,CAAC,GAAG,aAAa,CAAC;CAC7D"} \ No newline at end of file diff --git a/types/contract/wrappers.d.ts b/types/contract/wrappers.d.ts index 7012125ce..309d67333 100644 --- a/types/contract/wrappers.d.ts +++ b/types/contract/wrappers.d.ts @@ -23,15 +23,19 @@ export declare class ContractTransactionResponse extends TransactionResponse { constructor(iface: Interface, provider: Provider, tx: TransactionResponse); wait(confirms?: number): Promise; } -export declare class ContractEventPayload extends EventPayload { +export declare class ContractUnknownEventPayload extends EventPayload { + readonly log: Log; + constructor(contract: BaseContract, listener: null | Listener, filter: ContractEventName, log: Log); + getBlock(): Promise>; + getTransaction(): Promise; + getTransactionReceipt(): Promise; +} +export declare class ContractEventPayload extends ContractUnknownEventPayload { readonly fragment: EventFragment; readonly log: EventLog; readonly args: Result; constructor(contract: BaseContract, listener: null | Listener, filter: ContractEventName, fragment: EventFragment, _log: Log); get eventName(): string; get eventSignature(): string; - getBlock(): Promise>; - getTransaction(): Promise; - getTransactionReceipt(): Promise; } //# sourceMappingURL=wrappers.d.ts.map \ No newline at end of file diff --git a/types/contract/wrappers.d.ts.map b/types/contract/wrappers.d.ts.map index 201fcb685..3cbb3e4d9 100644 --- a/types/contract/wrappers.d.ts.map +++ b/types/contract/wrappers.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"wrappers.d.ts","sourceRoot":"","sources":["../../src.ts/contract/wrappers.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,EAAE,GAAG,EAAE,kBAAkB,EAAE,mBAAmB,EACtD,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAoB,YAAY,EAAE,MAAM,mBAAmB,CAAC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f9e4..b6950c785 100644 --- a/types/crypto/crypto-browser.d.ts.map +++ b/types/crypto/crypto-browser.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"crypto-browser.d.ts","sourceRoot":"","sources":["../../src.ts/crypto/crypto-browser.ts"],"names":[],"mappings":"AAUA,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,MAAM;KAAI;IAEpB,MAAM,MAAM,EAAE,MAAM,CAAC;IACrB,MAAM,IAAI,EAAE,MAAM,CAAC;CACtB;AAcD,MAAM,WAAW,YAAY;IACzB,MAAM,CAAC,IAAI,EAAE,UAAU,GAAG,YAAY,CAAC;IACvC,MAAM,IAAI,UAAU,CAAC;CACxB;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY,CAMrD;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,GAAG,YAAY,CAMvE;AAED,wBAAgB,UAAU,CAAC,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,GAAG,QAAQ,GAAG,UAAU,CAM7I;AAED,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,UAAU,CActD"} \ No newline at end of file +{"version":3,"file":"crypto-browser.d.ts","sourceRoot":"","sources":["../../src.ts/crypto/crypto-browser.ts"],"names":[],"mappings":"AAUA,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,MAAM;KAAI;IAEpB,MAAM,MAAM,EAAE,MAAM,CAAC;IACrB,MAAM,IAAI,EAAE,MAAM,CAAC;CACtB;AAcD,MAAM,WAAW,YAAY;IACzB,MAAM,CAAC,IAAI,EAAE,UAAU,GAAG,YAAY,CAAC;IACvC,MAAM,IAAI,UAAU,CAAC;CACxB;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY,CAMrD;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,GAAG,YAAY,CAIvE;AAED,wBAAgB,UAAU,CAAC,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,GAAG,QAAQ,GAAG,UAAU,CAI7I;AAED,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,UAAU,CAStD"} \ No newline at end of file diff --git a/types/crypto/signature.d.ts.map b/types/crypto/signature.d.ts.map index 413ec5c0a..a628a8c93 100644 --- a/types/crypto/signature.d.ts.map +++ b/types/crypto/signature.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"signature.d.ts","sourceRoot":"","sources":["../../src.ts/crypto/signature.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACR,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAC7C,MAAM,mBAAmB,CAAC;AAe3B,oBAAY,aAAa,GAAG,SAAS,GAAG,MAAM,GAAG;IAC7C,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,YAAY,CAAC;IAChB,OAAO,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB,GAAG;IACA,CAAC,EAAE,MAAM,CAAC;IACV,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IAChB,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;CACd,GAAG;IACA,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;IACf,CAAC,CAAC,EAAE,YAAY,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAGF,qBAAa,SAAU,YA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AAK,EAAE,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,EAAE,GAAG,EAAE;IASxD,KAAK,IAAI,SAAS;IAMlB,MAAM,IAAI,MAAM,CAAC,SAAS,CAAC;IAK3B,QAAQ,IAAI,OAAO;IAInB,MAAM,IAAI,GAAG;IAUb,MAAM,CAAC,UAAU,CAAC,CAAC,EAAE,YAAY,GAAG,MAAM;IAa1C,MAAM,CAAC,WAAW,CAAC,OAAO,EAAE,YAAY,EAAE,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,MAAM;IAK7D,MAAM,CAAC,cAAc,CAAC,CAAC,EAAE,YAAY,GAAG,EAAE,GAAG,EAAE;IAU/C,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,aAAa,GAAG,SAAS;CA0F9C"} \ No newline at end of file diff --git a/types/ethers.d.ts b/types/ethers.d.ts index b0978c5b2..98c276999 100644 --- a/types/ethers.d.ts +++ b/types/ethers.d.ts @@ -5,9 +5,9 @@ export { ZeroAddress, NegativeOne, Zero, One, Two, WeiPerEther, MaxUint256, MinI export { BaseContract, Contract, ContractFactory, ContractEventPayload, ContractTransactionReceipt, ContractTransactionResponse, EventLog, } from "./contract/index.js"; export { computeHmac, randomBytes, keccak256, ripemd160, sha256, sha512, pbkdf2, scrypt, scryptSync, lock, Signature, SigningKey } from "./crypto/index.js"; export { id, isValidName, namehash, dnsEncode, hashMessage, solidityPacked, solidityPackedKeccak256, solidityPackedSha256, TypedDataEncoder } from "./hash/index.js"; -export { AbstractProvider, FallbackProvider, JsonRpcApiProvider, JsonRpcProvider, JsonRpcSigner, BrowserProvider, AlchemyProvider, AnkrProvider, CloudflareProvider, EtherscanProvider, InfuraProvider, IpcSocketProvider, SocketProvider, WebSocketProvider, Network } from "./providers/index.js"; +export { Block, FeeData, Log, TransactionReceipt, TransactionResponse, AbstractProvider, FallbackProvider, JsonRpcApiProvider, JsonRpcProvider, JsonRpcSigner, BrowserProvider, AlchemyProvider, AnkrProvider, CloudflareProvider, EtherscanProvider, InfuraProvider, IpcSocketProvider, SocketProvider, WebSocketProvider, Network } from "./providers/index.js"; export { accessListify, computeAddress, recoverAddress, Transaction } from "./transaction/index.js"; -export { decodeBase58, encodeBase58, decodeBase64, encodeBase64, concat, dataLength, dataSlice, getBytes, getBytesCopy, hexlify, isHexString, isBytesLike, stripZerosLeft, zeroPadBytes, zeroPadValue, assertArgument, assertArgumentCount, assertNormalize, assertPrivate, makeError, throwArgumentError, throwError, isCallException, isError, getIpfsGatewayFunc, FetchRequest, FetchResponse, FetchCancelSignal, FixedFormat, FixedNumber, formatFixed, parseFixed, getBigInt, getNumber, toArray, toBigInt, toHex, toNumber, toQuantity, fromTwos, toTwos, mask, formatEther, parseEther, formatUnits, parseUnits, _toEscapedUtf8String, toUtf8Bytes, toUtf8CodePoints, toUtf8String, Utf8ErrorFuncs, decodeRlp, encodeRlp } from "./utils/index.js"; +export { decodeBase58, encodeBase58, decodeBase64, encodeBase64, concat, dataLength, dataSlice, getBytes, getBytesCopy, hexlify, isHexString, isBytesLike, stripZerosLeft, zeroPadBytes, zeroPadValue, assert, assertArgument, assertArgumentCount, assertNormalize, assertPrivate, makeError, isCallException, isError, getIpfsGatewayFunc, FetchRequest, FetchResponse, FetchCancelSignal, FixedFormat, FixedNumber, formatFixed, parseFixed, getBigInt, getNumber, toArray, toBigInt, toHex, toNumber, toQuantity, fromTwos, toTwos, mask, formatEther, parseEther, formatUnits, parseUnits, toUtf8Bytes, toUtf8CodePoints, toUtf8String, Utf8ErrorFuncs, decodeRlp, encodeRlp } from "./utils/index.js"; export { defaultPath, getAccountPath, HDNodeWallet, HDNodeVoidWallet, HDNodeWalletManager, isCrowdsaleJson, decryptCrowdsaleJson, isKeystoreJson, decryptKeystoreJsonSync, decryptKeystoreJson, encryptKeystoreJson, Mnemonic, Wallet } from "./wallet/index.js"; export { Wordlist, langEn, LangEn, wordlists, WordlistOwl, WordlistOwlA } from "./wordlists/index.js"; export type { JsonFragment, JsonFragmentType, InterfaceAbi, } from "./abi/index.js"; diff --git a/types/ethers.d.ts.map b/types/ethers.d.ts.map index c60aa1d54..22ec58653 100644 --- a/types/ethers.d.ts.map +++ b/types/ethers.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"ethers.d.ts","sourceRoot":"","sources":["../src.ts/ethers.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC,OAAO,EACH,mBAAmB,EAAE,mBAAmB,EAExC,QAAQ,EAAE,eAAe,EACzB,mBAAmB,EAAE,aAAa,EAAE,aAAa,EAAE,QAAQ,EAAE,gBAAgB,EAAE,SAAS,EAExF,iBAAiB,EAAE,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,EAAE,sBAAsB,EACrF,KAAK,GACR,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACH,UAAU,EAAE,cAAc,EAC1B,gBAAgB,EAAE,iBAAiB,EACtC,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACH,WAAW,EACX,WAAW,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC,EAC7E,QAAQ,EACR,WAAW,EAAE,aAAa,EAC7B,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACH,YAAY,EAAE,QAAQ,EACtB,eAAe,EACf,oBAAoB,EAAE,0BAA0B,EAAE,2BAA2B,EAAE,QAAQ,GAC1F,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACH,WAAW,EACX,WAAW,EACX,SAAS,EACT,SAAS,EACT,MAAM,EAAE,MAAM,EACd,MAAM,EACN,MAAM,EAAE,UAAU,EAClB,IAAI,EACJ,SAAS,EAAE,UAAU,EACxB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACH,EAAE,EACF,WAAW,EAAE,QAAQ,EAAE,SAAS,EAChC,WAAW,EACX,cAAc,EAAE,u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E,wBAAwB,EAAE,qBAAqB,EAC5E,mBAAmB,EACnB,gBAAgB,GACnB,MAAM,kBAAkB,CAAC;AAE1B,YAAY,EACR,qBAAqB,EAAE,eAAe,EACtC,cAAc,EACjB,MAAM,mBAAmB,CAAC"} \ No newline at end of file diff --git a/types/hash/namehash.d.ts.map b/types/hash/namehash.d.ts.map index 843a545c9..e42279121 100644 --- a/types/hash/namehash.d.ts.map +++ b/types/hash/namehash.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"namehash.d.ts","sourceRoot":"","sources":["../../src.ts/hash/namehash.ts"],"names":[],"mappings":"AA6CA,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEjD;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAKjD;AAED,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAc7C;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAa9C"} \ No newline at end of file +{"version":3,"file":"namehash.d.ts","sourceRoot":"","sources":["../../src.ts/hash/namehash.ts"],"names":[],"mappings":"AA6CA,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEjD;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAKjD;AAED,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAY7C;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAa9C"} \ No newline at end of file diff --git a/types/hash/solidity.d.ts.map b/types/hash/solidity.d.ts.map index 7634a6e3e..a9ae450aa 100644 --- a/types/hash/solidity.d.ts.map +++ b/types/hash/solidity.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"solidity.d.ts","sourceRoot":"","sources":["../../src.ts/hash/solidity.ts"],"names":[],"mappings":"AA6EA,wBAAgB,cAAc,CAAC,KAAK,EAAE,aAAa,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,aAAa,CAAC,GAAG,CAAC,GAAG,MAAM,CAS/F;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,aAAa,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,aAAa,CAAC,GAAG,CAAC,GAAG,MAAM,CAExG;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,aAAa,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,aAAa,CAAC,GAAG,CAAC,GAAG,MAAM,CAErG"} \ No newline at end of file +{"version":3,"file":"solidity.d.ts","sourceRoot":"","sources":["../../src.ts/hash/solidity.ts"],"names":[],"mappings":"AAuEA,wBAAgB,cAAc,CAAC,KAAK,EAAE,aAAa,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,aAAa,CAAC,GAAG,CAAC,GAAG,MAAM,CAQ/F;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,aAAa,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,aAAa,CAAC,GAAG,CAAC,GAAG,MAAM,CAExG;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,aAAa,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,aAAa,CAAC,GAAG,CAAC,GAAG,MAAM,CAErG"} \ No newline at end of file diff --git a/types/hash/typed-data.d.ts.map b/types/hash/typed-data.d.ts.map index b17ed5230..d8344b1fe 100644 --- a/types/hash/typed-data.d.ts.map +++ b/types/hash/typed-data.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"typed-data.d.ts","sourceRoot":"","sources":["../../src.ts/hash/typed-data.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAWjE,MAAM,WAAW,eAAe;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB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e,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC;QAAE,MAAM,EAAE,eAAe,CAAC;QAAC,KAAK,EAAE,GAAG,CAAA;KAAE,CAAC;IA0C9N,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG;CAuD5H"} \ No newline at end of file diff --git a/types/providers/abstract-provider.d.ts b/types/providers/abstract-provider.d.ts index 6ed2c7e40..78b09adf5 100644 --- a/types/providers/abstract-provider.d.ts +++ b/types/providers/abstract-provider.d.ts @@ -1,3 +1,4 @@ +import { FetchRequest } from "../utils/index.js"; import { EnsResolver } from "./ens-resolver.js"; import { Network } from "./network.js"; import { Block, FeeData, Log, TransactionReceipt, TransactionResponse } from "./provider.js"; @@ -6,6 +7,40 @@ import type { BigNumberish } from "../utils/index.js"; import type { Listener } from "../utils/index.js"; import type { Networkish } from "./network.js"; import type { BlockParams, BlockTag, EventFilter, Filter, FilterByBlockHash, LogParams, OrphanFilter, PreparedTransactionRequest, Provider, ProviderEvent, TransactionReceiptParams, TransactionRequest, TransactionResponseParams } from "./provider.js"; +export declare type DebugEventAbstractProvider = { + action: "sendCcipReadFetchRequest"; + request: FetchRequest; + index: number; + urls: Array; +} | { + action: "receiveCcipReadFetchResult"; + request: FetchRequest; + result: any; +} | { + action: "receiveCcipReadFetchError"; + request: FetchRequest; + result: any; +} | { + action: "sendCcipReadCall"; + transaction: { + to: string; + data: string; + }; +} | { + action: "receiveCcipReadCallResult"; + transaction: { + to: string; + data: string; + }; + result: string; +} | { + action: "receiveCcipReadCallError"; + transaction: { + to: string; + data: string; + }; + error: Error; +}; export declare type Subscription = { type: "block" | "close" | "debug" | "network" | "pending"; tag: string; @@ -37,9 +72,9 @@ export declare class UnmanagedSubscriber implements Subscriber { pause(dropWhilePaused?: boolean): void; resume(): void; } -export interface ProviderPlugin { +export interface AbstractProviderPlugin { readonly name: string; - validate(provider: Provider): ProviderPlugin; + connect(provider: AbstractProvider): AbstractProviderPlugin; } export declare type PerformActionFilter = { address?: string | Array; @@ -56,6 +91,9 @@ export interface PerformActionTransaction extends PreparedTransactionRequest { from?: string; } export declare type PerformActionRequest = { + method: "broadcastTransaction"; + signedTransaction: string; +} | { method: "call"; transaction: PerformActionTransaction; blockTag: BlockTag; @@ -105,17 +143,14 @@ export declare type PerformActionRequest = { } | { method: "getTransactionResult"; hash: string; -} | { - method: "broadcastTransaction"; - signedTransaction: string; }; export declare class AbstractProvider implements Provider { #private; constructor(_network?: "any" | Networkish); get provider(): this; - get plugins(): Array; - attachPlugin(plugin: ProviderPlugin): this; - getPlugin(name: string): null | T; + get plugins(): Array; + attachPlugin(plugin: AbstractProviderPlugin): this; + getPlugin(name: string): null | T; set disableCcipRead(value: boolean); get disableCcipRead(): boolean; ccipReadFetch(tx: PerformActionTransaction, calldata: string, urls: Array): Promise; @@ -151,7 +186,7 @@ export declare class AbstractProvider implements Provider { getAvatar(name: string): Promise; resolveName(name: string): Promise; lookupAddress(address: string): Promise; - waitForTransaction(hash: string, confirms?: number, timeout?: number): Promise; + waitForTransaction(hash: string, _confirms?: number, timeout?: number): Promise; waitForBlock(blockTag?: BlockTag): Promise>; _clearTimeout(timerId: number): void; _setTimeout(_func: () => void, timeout?: number): number; diff --git a/types/providers/abstract-provider.d.ts.map b/types/providers/abstract-provider.d.ts.map index 5aaf4c100..d9218fe12 100644 --- a/types/providers/abstract-provider.d.ts.map +++ b/types/providers/abstract-provider.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"abstract-provider.d.ts","sour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AG,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,OAAO,CAAC;IAqBjE,aAAa,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC;IAcrD,SAAS,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IAa1D,GAAG,CAAC,KAAK,EAAE,aAAa,EAAE,QAAQ,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;IAiB7D,kBAAkB,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC;IAexD,WAAW,CAAC,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;IAKpE,cAAc,CAAC,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;IAMvE,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAU/B,IAAI,MAAM,IAAI,OAAO,CAAwC;IAC7D,IAAI,MAAM,CAAC,KAAK,EAAE,OAAO,EAQxB;IAED,KAAK,CAAC,eAAe,CAAC,EAAE,OAAO,GAAG,IAAI;IAsBtC,MAAM,IAAI,IAAI;CAiBjB"} \ No newline at end of file diff --git a/types/providers/abstract-signer.d.ts.map b/types/providers/abstract-signer.d.ts.map index 287860c4b..f0ed64802 100644 --- a/types/providers/abstract-signer.d.ts.map +++ b/types/providers/abstract-signer.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"abstract-signer.d.ts","sourceRoot":"","sources":["../../src.ts/providers/abstract-signer.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE/D,OAAO,KAAK,EACR,QAAQ,EAAE,QAAQ,EAA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,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC;CAG1I"} \ No newline at end of file diff --git a/types/providers/ens-resolver.d.ts b/types/providers/ens-resolver.d.ts index e4d658692..79c58bc3a 100644 --- a/types/providers/ens-resolver.d.ts +++ b/types/providers/ens-resolver.d.ts @@ -1,5 +1,5 @@ import type { BytesLike } from "../utils/index.js"; -import type { AbstractProvider, ProviderPlugin } from "./abstract-provider.js"; +import type { AbstractProvider, AbstractProviderPlugin } from "./abstract-provider.js"; import type { Provider } from "./provider.js"; export declare type AvatarLinkageType = "name" | "avatar" | "!avatar" | "url" | "data" | "ipfs" | "erc721" | "erc1155" | "!erc721-caip" | "!erc1155-caip" | "!owner" | "owner" | "!balance" | "balance" | "metadata-url-base" | "metadata-url-expanded" | "metadata-url" | "!metadata-url" | "!metadata" | "metadata" | "!imageUrl" | "imageUrl-ipfs" | "imageUrl" | "!imageUrl-ipfs"; export interface AvatarLinkage { @@ -10,10 +10,10 @@ export interface AvatarResult { linkage: Array; url: null | string; } -export declare abstract class MulticoinProviderPlugin implements ProviderPlugin { +export declare abstract class MulticoinProviderPlugin implements AbstractProviderPlugin { readonly name: string; constructor(name: string); - validate(proivder: Provider): ProviderPlugin; + connect(proivder: Provider): MulticoinProviderPlugin; supportsCoinType(coinType: number): boolean; encodeAddress(coinType: number, address: string): Promise; decodeAddress(coinType: number, data: BytesLike): Promise; diff --git a/types/providers/ens-resolver.d.ts.map b/types/providers/ens-resolver.d.ts.map index 0a54a2b99..018817913 100644 --- a/types/providers/ens-resolver.d.ts.map +++ b/types/providers/ens-resolver.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"ens-resolver.d.ts","sourceRoot":"","sources":["../../src.ts/providers/ens-resolver.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAgB,SAAS,EAAe,MAAM,mBAAmB,C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c5C,cAAc,IAAI,OAAO,CAAC,IAAI,GAAG,MAAM,CAAC;IA6BxC,SAAS,IAAI,OAAO,CAAC,IAAI,GAAG,MAAM,CAAC;IAInC,UAAU,IAAI,OAAO,CAAC,YAAY,CAAC;WA+L5B,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,GAAG,WAAW,CAAC;CA2B/F"} \ No newline at end of file diff --git a/types/providers/format.d.ts.map b/types/providers/format.d.ts.map index 3bcec2d2a..b1d85af64 100644 --- a/types/providers/format.d.ts.map +++ b/types/providers/format.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../src.ts/providers/format.ts"],"names":[],"mappings":"AAaA,oBAAY,UAAU,GAAG,CAAC,KAAK,EAAE,GAAG,KAAK,GAAG,CAAC;AAE7C,wBAAgB,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,SAAS,CAAC,EAAE,GAAG,GAAG,UAAU,CAKzE;AAED,wBAAgB,OAAO,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,CAKtD;AAKD,wBAAgB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,EAAE,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,GAAG,UAAU,CAwB/G;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CAQjD;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAKhD;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,GAAG,GAAG,MAAM,CAK7C;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,GAAG,GAAG,MAAM,CAKhD;AAED,eAAO,MAAM,SAAS,YAYpB,CAAC;AAwBH,eAAO,MAAM,WAAW,YAA2B,CAAC;AAEpD,eAAO,MAAM,2BAA2B,YAA0C,CAAC;AAEnF,eAAO,MAAM,gBAAgB,YAW3B,CAAC;AAEH,eAAO,MAAM,wBAAwB,YAsBnC,CAAC;AAEH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,GAAG,OA2GnD"} \ No newline at end of file +{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../src.ts/providers/format.ts"],"names":[],"mappings":"AAaA,oBAAY,UAAU,GAAG,CAAC,KAAK,EAAE,GAAG,KAAK,GAAG,CAAC;AAE7C,wBAAgB,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,SAAS,CAAC,EAAE,GAAG,GAAG,UAAU,CAKzE;AAED,wBAAgB,OAAO,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,CAKtD;AAKD,wBAAgB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,EAAE,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,GAAG,UAAU,CAwB/G;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CAQjD;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAGhD;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,GAAG,GAAG,MAAM,CAG7C;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,GAAG,GAAG,MAAM,CAKhD;AAED,eAAO,MAAM,SAAS,YAYpB,CAAC;AAwBH,eAAO,MAAM,WAAW,YAA2B,CAAC;AAEpD,eAAO,MAAM,2BAA2B,YAA0C,CAAC;AAEnF,eAAO,MAAM,gBAAgB,YAW3B,CAAC;AAEH,eAAO,MAAM,wBAAwB,YAsBnC,CAAC;AAEH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,GAAG,OA+GnD"} \ No newline at end of file diff --git a/types/providers/index.d.ts b/types/providers/index.d.ts index d5dafc7a0..97716e841 100644 --- a/types/providers/index.d.ts +++ b/types/providers/index.d.ts @@ -17,7 +17,7 @@ export { IpcSocketProvider }; export { SocketProvider } from "./provider-socket.js"; export { WebSocketProvider } from "./provider-websocket.js"; export { SocketSubscriber, SocketBlockSubscriber, SocketPendingSubscriber, SocketEventSubscriber } from "./provider-socket.js"; -export type { Subscription, Subscriber, ProviderPlugin, PerformActionFilter, PerformActionTransaction, PerformActionRequest } from "./abstract-provider.js"; +export type { Subscription, Subscriber, AbstractProviderPlugin, PerformActionFilter, PerformActionTransaction, PerformActionRequest } from "./abstract-provider.js"; export type { ContractRunner } from "./contracts.js"; export type { Networkish } from "./network.js"; export type { GasCostParameters } from "./plugins-network.js"; diff --git a/types/providers/index.d.ts.map b/types/providers/index.d.ts.map index 95ed9de4f..326492c15 100644 --- a/types/providers/index.d.ts.map +++ b/types/providers/index.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src.ts/providers/index.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,gBAAgB,EAAE,mBAAmB,EACxC,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACH,cAAc,EACd,UAAU,EACV,aAAa,EAChB,MAAM,sBAAsB,CAAC;AAW9B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,OAAO,EACH,aAAa,EACb,aAAa,EACb,SAAS,GAIZ,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACH,KAAK,EACL,OAAO,EACP,GAAG,EACH,kBAAkB,EAClB,mBAAmB,EAEnB,WAAW,GAEd,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAE1F,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB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ACxB,sBAAsB,EACtB,mBAAmB,EAAE,wBAAwB,EAAE,oBAAoB,EACtE,MAAM,wBAAwB,CAAA;AAC/B,YAAY,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAUrD,YAAY,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,YAAY,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D,YAAY,EACR,QAAQ,EACR,kBAAkB,EAAE,0BAA0B,EAC9C,WAAW,EAAE,MAAM,EAAE,iBAAiB,EAAE,YAAY,EAAE,aAAa,EAAE,WAAW,EAChF,QAAQ,GACX,MAAM,eAAe,CAAC;AAEvB,YAAY,EACR,cAAc,EAAE,aAAa,EAAE,YAAY,EAC3C,yBAAyB,EACzB,yBAAyB,GAC5B,MAAM,uBAAuB,CAAC;AAE/B,YAAY,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAE7D,YAAY,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC"} \ No newline at end of file diff --git a/types/providers/network.d.ts.map b/types/providers/network.d.ts.map index ff383bf6d..08c4fb2a9 100644 --- a/types/providers/network.d.ts.map +++ b/types/providers/network.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"network.d.ts","sourceRoot":"","sources":["../../src.ts/providers/network.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAG1D;;;;;;GAMG;AACH,oBAAY,UAAU,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG;IAC1D,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAA;CACtB,CAA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AAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAA;CACtB,CAAC;AA8DF,qBAAa,OAAO;;gBAQJ,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,YAAY;IAMhD,MAAM,IAAI,GAAG;IAIb,IAAI,IAAI,IAAI,MAAM,CAA0C;IAC5D,IAAI,IAAI,CAAC,KAAK,EAAE,MAAM,EAA2C;IAEjE,IAAI,OAAO,IAAI,MAAM,CAA6C;IAClE,IAAI,OAAO,CAAC,KAAK,EAAE,YAAY,EAAoE;IAEnG,IAAI,OAAO,IAAI,KAAK,CAAC,aAAa,CAAC,CAElC;IAED,YAAY,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI;IAQzC,SAAS,CAAC,CAAC,SAAS,aAAa,GAAG,aAAa,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,CAAC;IAK1E,UAAU,CAAC,CAAC,SAAS,aAAa,GAAG,aAAa,EAAE,QAAQ,EAAE,MAAM,GAAG,KAAK,CAAC,CAAC,CAAC;IAI/E,KAAK,IAAI,OAAO;IAiBhB,mBAAmB,CAAC,EAAE,EAAE,eAAe,GAAG,MAAM;IAyBhD;;OAEG;IACH,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,UAAU,GAAG,OAAO;IA+C1C;;;OAGG;IACH,MAAM,CAAC,QAAQ,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,WAAW,EAAE,MAAM,OAAO,GAAG,IAAI;CAQ7F"} \ No newline at end of file diff --git a/types/providers/plugin-fallback.d.ts b/types/providers/plugin-fallback.d.ts new file mode 100644 index 000000000..3624dcaea --- /dev/null +++ b/types/providers/plugin-fallback.d.ts @@ -0,0 +1,13 @@ +import { AbstractProviderPlugin } from "./abstract-provider.js"; +import type { AbstractProvider, PerformActionRequest } from "./abstract-provider.js"; +export declare const PluginIdFallbackProvider = "org.ethers.plugins.QualifiedPlugin"; +export declare class CheckQualifiedPlugin implements AbstractProviderPlugin { + name: string; + constructor(); + connect(provider: AbstractProvider): CheckQualifiedPlugin; + isQualified(action: PerformActionRequest, result: any): boolean; +} +export declare class PossiblyPrunedTransactionPlugin extends CheckQualifiedPlugin { + isQualified(action: PerformActionRequest, result: any): boolean; +} +//# sourceMappingURL=plugin-fallback.d.ts.map \ No newline at end of file diff --git a/types/providers/plugin-fallback.d.ts.map b/types/providers/plugin-fallback.d.ts.map new file mode 100644 index 000000000..3653ac2ef --- /dev/null +++ b/types/providers/plugin-fallback.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"plugin-fallback.d.ts","sourceRoot":"","sources":["../../src.ts/providers/plugin-fallback.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAGhE,OAAO,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAGrF,eAAO,MAAM,wBAAwB,uCAAuC,CAAC;AAE7E,qBAAa,oBAAqB,YAAW,sBAAsB;IACvD,IAAI,EAAE,MAAM,CAAC;;IAMrB,OAAO,CAAC,QAAQ,EAAE,gBAAgB,GAAG,oBAAoB;IAMzD,WAAW,CAAC,MAAM,EAAE,oBAAoB,EAAE,MAAM,EAAE,GAAG,GAAG,OAAO;CAGlE;AAED,qBAAa,+BAAgC,SAAQ,oBAAoB;IACrE,WAAW,CAAC,MAAM,EAAE,oBAAoB,EAAE,MAAM,EAAE,GAAG,GAAG,OAAO;CAMlE"} \ No newline at end of file diff --git a/types/providers/plugins-network.d.ts.map b/types/providers/plugins-network.d.ts.map index 8e7c12a8e..49942dfd9 100644 --- a/types/providers/plugins-network.d.ts.map +++ b/types/providers/plugins-network.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"plugins-network.d.ts","sourceRoot":"","sources":["../../src.ts/providers/plugins-network.ts"],"names":[],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E,KAAK,EAAE,WAAW,EAAE,mBAAmB,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;AAExG,qBAAa,wBAAyB,SAAQ,aAAa;;gBAI3C,SAAS,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,KAAK,KAAK,CAAC,MAAM,CAAC,EAAE,gBAAgB,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,CAAC,yBAAyB,CAAC,KAAK,KAAK,CAAC,mBAAmB,CAAC;IAMvM,QAAQ,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAIhF,wBAAwB,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,CAAC,yBAAyB,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC;IAItI,KAAK,IAAI,wBAAwB;CAGpC"} \ No newline at end of file diff --git a/types/providers/provider-alchemy.d.ts.map b/types/providers/provider-alchemy.d.ts.map index 1de4b11b4..875a67c26 100644 --- a/types/providers/provider-alchemy.d.ts.map +++ b/types/providers/provider-alchemy.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"provider-alchemy.d.ts","sourceRoot":"","sources":["../../src.ts/providers/provider-alchemy.ts"],"names":[],"mappings":"AACA,OAAO,EAEH,YAAY,EACf,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,OAAO,KAAK,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACrF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CA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,EAAE,MAAM,GAAG,YAAY;CAerE"} \ No newline at end of file diff --git a/types/providers/provider-ankr.d.ts.map b/types/providers/provider-ankr.d.ts.map index 40105866e..a7256260c 100644 --- a/types/providers/provider-ankr.d.ts.map +++ b/types/providers/provider-ankr.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"provider-ankr.d.ts","sourceRoot":"","sources":["../../src.ts/providers/provider-ankr.ts"],"names":[],"mappings":"AAAA,OAAO,EACe,YAAY,EACjC,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAwB/C,qBAAa,YAAa,SAAQ,eAAgB,YAAW,oBAAoB;IAC7E,QAAQ,CAAC,MAAM,EAAG,MAAM,CAAC;gBAEb,QAAQ,GAAE,UAAsB,EAAE,MAAM,CAAC,EAAE,IAAI,GAAG,MAAM;IAapE,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,gBAAgB;IAO/C,MAAM,CAAC,UAAU,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,YAAY;IAgBzE,mBAAmB,IAAI,OAAO;CAGjC"} \ No newline at end of file +{"version":3,"file":"provider-ankr.d.ts","sourceRoot":"","sources":["../../src.ts/providers/provider-ankr.ts"],"names":[],"mappings":"AAAA,OAAO,EACe,YAAY,EACjC,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAyB/C,qBAAa,YAAa,SAAQ,eAAgB,YAAW,oBAAoB;IAC7E,QAAQ,CAAC,MAAM,EAAG,MAAM,CAAC;gBAEb,QAAQ,GAAE,UAAsB,EAAE,MAAM,CAAC,EAAE,IAAI,GAAG,MAAM;IAapE,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,gBAAgB;IAO/C,MAAM,CAAC,UAAU,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,YAAY;IAgBzE,mBAAmB,IAAI,OAAO;CAGjC"} \ No newline at end of file diff --git a/types/providers/provider-cloudflare.d.ts.map b/types/providers/provider-cloudflare.d.ts.map index cb76bfdb2..35be8d93f 100644 --- a/types/providers/provider-cloudflare.d.ts.map +++ b/types/providers/provider-cloudflare.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"provider-cloudflare.d.ts","sourceRoot":"","sources":["../../src.ts/providers/provider-cloudflare.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG/C,qBAAa,kBAAmB,SAAQ,eAAe;gBACvC,QAAQ,GAAE,UAAsB;CAO/C"} \ No newline at end of file +{"version":3,"file":"provider-cloudflare.d.ts","sourceRoot":"","sources":["../../src.ts/providers/provider-cloudflare.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG/C,qBAAa,kBAAmB,SAAQ,eAAe;gBACvC,QAAQ,GAAE,UAAsB;CAK/C"} \ No newline at end of file diff --git a/types/providers/provider-etherscan-base.d.ts.map b/types/providers/provider-etherscan-base.d.ts.map index 261ef02bb..4c15f86aa 100644 --- a/types/providers/provider-etherscan-base.d.ts.map +++ b/types/providers/provider-etherscan-base.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"provider-etherscan-base.d.ts","sourceRoot":"","sources":["../../src.ts/providers/provider-etherscan-base.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAGrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAIxD,oBAAY,2BAA2B,GAAG;IACtC,MAAM,EAAE,aAAa,CAAC;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAC/B,GAAG;IACA,MAAM,EAAE,gBAAgB,CAAC;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,GAAG,CAAA;CACd,GAAG;IACA,MAAM,EAAE,cAAc,CAAC;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,GAAG,CAAA;CACb,CAAC;AAIF,qBAAa,eAAgB,SAAQ,aAAa;IAC9C,QAAQ,CAAC,OAAO,EAAG,MAAM,CAAC;IAC1B,QAAQ,CAAC,eAAe,EAAG,MAAM,CAAC;gBAEtB,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM;IAMpD,KAAK,IAAI,eAAe;CAG3B;AAID,qBAAa,qBAAsB,SAAQ,gBAAgB;;IACvD,QAAQ,CAAC,OAAO,EAAG,OAAO,CAAC;IAC3B,QAAQ,CAAC,MAAM,EA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,EAAE,GAAG,CAAC;IAMvE,aAAa,IAAI,OAAO,CAAC,OAAO,CAAC;IAIjC,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,IAAI,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC;IAmGtF,uBAAuB,CAAC,WAAW,EAAE,kBAAkB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAuBhF,WAAW,CAAC,GAAG,EAAE,oBAAoB,EAAE,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,GAAG,GAAG,KAAK;IA8EvE,cAAc,IAAI,OAAO,CAAC,OAAO,CAAC;IAIlC,QAAQ,CAAC,GAAG,EAAE,oBAAoB,GAAG,OAAO,CAAC,GAAG,CAAC;IAiKjD,UAAU,IAAI,OAAO,CAAC,OAAO,CAAC;IAI9B,aAAa,IAAI,OAAO,CAAC,MAAM,CAAC;IAKtC,mBAAmB,IAAI,OAAO;CAMjC"} \ No newline at end of file diff --git a/types/providers/provider-fallback.d.ts b/types/providers/provider-fallback.d.ts index 6a5a722c2..7bc83cf28 100644 --- a/types/providers/provider-fallback.d.ts +++ b/types/providers/provider-fallback.d.ts @@ -31,6 +31,7 @@ export declare class FallbackProvider extends AbstractProvider { constructor(providers: Array, network?: Networkish); get providerConfigs(): Array; _detectNetwork(): Promise; + _translatePerform(provider: AbstractProvider, req: PerformActionRequest): Promise; _perform(req: PerformActionRequest): Promise; } //# sourceMappingURL=provider-fallback.d.ts.map \ No newline at end of file diff --git a/types/providers/provider-fallback.d.ts.map b/types/providers/provider-fallback.d.ts.map index cc2b4d615..199ad26fa 100644 --- a/types/providers/provider-fallback.d.ts.map +++ b/types/providers/provider-fallback.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"provider-fallback.d.ts","sourceRoot":"","sources":["../../src.ts/providers/provider-fallback.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE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CAAC,EAAE,OAAO,CAAC,EAAE,UAAU;IAqB7F,IAAI,eAAe,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAQlD;IAEK,cAAc,IAAI,OAAO,CAAC,OAAO,CAAC;IASlC,iBAAiB,CAAC,QAAQ,EAAE,gBAAgB,EAAE,GAAG,EAAE,oBAAoB,GAAG,OAAO,CAAC,GAAG,CAAC;IAyQtF,QAAQ,CAAC,CAAC,GAAG,GAAG,EAAE,GAAG,EAAE,oBAAoB,GAAG,OAAO,CAAC,CAAC,CAAC;CA0CjE"} \ No newline at end of file diff --git a/types/providers/provider-infura.d.ts.map b/types/providers/provider-infura.d.ts.map index 40c205bca..a85809990 100644 --- a/types/providers/provider-infura.d.ts.map +++ b/types/providers/provider-infura.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"provider-infura.d.ts","sourceRoot":"","sources":["../../src.ts/providers/provider-infura.ts"],"names":[],"mappings":"AAAA,OAAO,EACe,YAAY,EACjC,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AA+B/C,qBAAa,uBAAwB,SAAQ,iBAAkB,YAAW,oBAAoB;IAC1F,QAAQ,CAAC,SAAS,EAAG,MAAM,CAAC;IAC5B,QAAQ,CAAC,aAAa,EAAG,IAAI,GAAG,MAAM,CAAC;gBAE3B,OAAO,CAAC,EAAE,UAAU,EAAE,MAAM,CAAC,EAAE,GAAG;IAmB9C,mBAAmB,IAAI,OAAO;CAGjC;AAED,qBAAa,cAAe,SAAQ,eAAgB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M,CAAC,EAAE,GAAG;IAgB9C,mBAAmB,IAAI,OAAO;CAGjC;AAED,qBAAa,cAAe,SAAQ,eAAgB,YAAW,oBAAoB;IAC/E,QAAQ,CAAC,SAAS,EAAG,MAAM,CAAC;IAC5B,QAAQ,CAAC,aAAa,EAAG,IAAI,GAAG,MAAM,CAAC;gBAE3B,QAAQ,GAAE,UAAsB,EAAE,SAAS,CAAC,EAAE,IAAI,GAAG,MAAM,EAAE,aAAa,CAAC,EAAE,IAAI,GAAG,MAAM;IAWtG,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,gBAAgB;IAO/C,mBAAmB,IAAI,OAAO;IAI9B,MAAM,CAAC,oBAAoB,CAAC,OAAO,CAAC,EAAE,UAAU,EAAE,MAAM,CAAC,EAAE,GAAG,GAAG,uBAAuB;IAIxF,MAAM,CAAC,UAAU,CAAC,OAAO,EAAE,OAAO,EAAE,SAAS,CAAC,EAAE,IAAI,GAAG,MAAM,EAAE,aAAa,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,YAAY;CAkB9G"} \ No newline at end of file diff --git a/types/providers/provider-jsonrpc.d.ts.map b/types/providers/provider-jsonrpc.d.ts.map index e3daf96c9..e2b294020 100644 --- a/types/providers/provider-jsonrpc.d.ts.map +++ b/types/providers/provider-jsonrpc.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"provider-jsonrpc.d.ts","sourceRoot":"","sources":["../../src.ts/providers/provider-jsonrpc.ts"],"names":[],"mappings":"AASA,OAAO,EAGH,YAAY,EACf,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,gBAAgB,EAAuB,MAAM,wBAAwB,CAAC;AAC/E,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAGvC,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAA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E,MAAM,GAAG,MAAU,GAAG,OAAO,CAAC,aAAa,CAAC;CA0BxE;AAED,qBAAa,yBAA0B,SAAQ,kBAAkB;;gBAEjD,OAAO,CAAC,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,yBAAyB;IAMrE,cAAc,CAAC,GAAG,EAAE,YAAY,GAAG,UAAU;IAQ7C;;OAEG;IACH,IAAI,eAAe,IAAI,MAAM,CAAkC;IAC/D,IAAI,eAAe,CAAC,KAAK,EAAE,MAAM,EAQhC;CACJ;AAED;;;;;;;GAOG;AACH,qBAAa,eAAgB,SAAQ,yBAAyB;;gBAG9C,GAAG,CAAC,EAAE,MAAM,GAAG,YAAY,EAAE,OAAO,CAAC,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,yBAAyB;IAWlG,cAAc,IAAI,YAAY;IAIxB,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC;IAS5E,KAAK,CAAC,OAAO,EAAE,cAAc,GAAG,KAAK,CAAC,cAAc,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;CAa9F"} \ No newline at end of file diff --git a/types/providers/provider-socket.d.ts.map b/types/providers/provider-socket.d.ts.map index e6eaf612d..779df5946 100644 --- a/types/providers/provider-socket.d.ts.map +++ b/types/providers/provider-socket.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"provider-socket.d.ts","sourceRoot":"","sources":["../../src.ts/providers/provider-socket.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,YA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AAQ,gBAAgB;gBAC3C,QAAQ,EAAE,cAAc;IAI9B,KAAK,CAAC,QAAQ,EAAE,cAAc,EAAE,OAAO,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC;CAGrE;AAED,qBAAa,uBAAwB,SAAQ,gBAAgB;gBAC7C,QAAQ,EAAE,cAAc;IAI9B,KAAK,CAAC,QAAQ,EAAE,cAAc,EAAE,OAAO,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC;CAGrE;AAED,qBAAa,qBAAsB,SAAQ,gBAAgB;;IAEvD,IAAI,SAAS,IAAI,WAAW,CAAwC;gBAExD,QAAQ,EAAE,cAAc,EAAE,MAAM,EAAE,WAAW;IAKnD,KAAK,CAAC,QAAQ,EAAE,cAAc,EAAE,OAAO,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC;CAGrE;AAED,qBAAa,cAAe,SAAQ,kBAAkB;;gBAUtC,OAAO,CAAC,EAAE,UAAU;IAiBhC,cAAc,CAAC,GAAG,EAAE,YAAY,GAAG,UAAU;IAoB7C,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE,UAAU,EAAE,gBAAgB,GAAG,IAAI;IAWlE,KAAK,CAAC,OAAO,EAAE,cAAc,GAAG,KAAK,CAAC,cAAc,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,aAAa,GAAG,YAAY,CAAC,CAAC;IAoCpG,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAyC/C,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAG/C"} \ No newline at end of file diff --git a/types/providers/provider.d.ts.map b/types/providers/provider.d.ts.map index b65a52b39..daeea3bb2 100644 --- a/types/providers/provider.d.ts.map +++ b/types/providers/provider.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../src.ts/providers/provider.ts"],"names":[],"mappings":"AAOA,OAAO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,GAAG,MAAM,GAAG,OAAO,CAAC,IAAI,GAAG,KAAK,CAAC,mBAAmB,CAAC,CAAC,CAAA;IAC5G,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,GAAG,mBAAmB,CAAC,CAAC;IAClE,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,GAAG,kBAAkB,CAAC,CAAC;IACxE,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,GAAG,MAAM,CAAC,CAAC;IAM3D,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,iBAAiB,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;IAMjE,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,GAAG,MAAM,CAAC,CAAC;IAClD,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,GAAG,MAAM,CAAC,CAAC;IAEvD,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,GAAG,kBAAkB,CAAC,CAAC;IAC1G,YAAY,CAAC,QAAQ,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;CAC7D"} \ No newline at end of file diff --git a/types/providers/subscriber-filterid.d.ts.map b/types/providers/subscriber-filterid.d.ts.map index adc1bae7b..a63da73db 100644 --- a/types/providers/subscriber-filterid.d.ts.map +++ b/types/providers/subscriber-filterid.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"subscriber-filterid.d.ts","sourceRoot":"","sources":["../../src.ts/providers/subscriber-filterid.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAE3E,OAAO,KAAK,EAAE,WAA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ction/transaction.d.ts.map +++ b/types/transaction/transaction.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../../src.ts/transaction/transaction.ts"],"names":[],"mappings":"AAEA,OAAO,EAAa,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAS1D,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AACpF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAExD,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAU5D,MAAM,WAAW,eAAe,CAAC,CAAC,GAAG,MAAM;IACvC,IAAI,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;IAErB,EAAE,CAAC,EAAE,IAAI,GAAG,CAAC,CAAC;IACd,IAAI,CAAC,EAAE,IAAI,GAAG,CAAC,CAAC;IAEhB,KAAK,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;IAEtB,QAAQ,CAAC,EAAE,IAAI,GAAG,YAAY,CAAC;IAC/B,QAAQ,CAAC,EAAE,IAAI,GAAG,YAAY,CAAC;IAE/B,oBAAoB,CAAC,EAAE,IAAI,GAAG,YAAY,CAAC;IAC3C,YAAY,CAAC,EAAE,IAAI,GAAG,YAAY,CAAC;IAEnC,IAAI,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,IAAI,GAAG,YAAY,CAAC;IAC5B,OAAO,CAAC,EAAE,IAAI,GAAG,YAAY,CAAC;IAE9B,IAAI,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;IAErB,SAAS,CAAC,EAAE,IAAI,GAAG,aAAa,CAAC;IAEjC,UAAU,CAAC,EAAE,IAAI,GAAG,aAAa,CAAC;CACrC;AAoRD,MAAM,WAAW,iBAAkB,SAAQ,WAAW;IAClD,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MA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.ts.map index ecf48311a..d23fc36d0 100644 --- a/types/utils/base58.d.ts.map +++ b/types/utils/base58.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"base58.d.ts","sourceRoot":"","sources":["../../src.ts/utils/base58.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAwB5C;;GAEG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,SAAS,GAAG,MAAM,CAQtD;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,UAAU,CAOtD"} \ No newline at end of file +{"version":3,"file":"base58.d.ts","sourceRoot":"","sources":["../../src.ts/utils/base58.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAsB5C;;GAEG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,SAAS,GAAG,MAAM,CAQtD;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,UAAU,CAOtD"} \ No newline at end of file diff --git a/types/utils/data.d.ts.map b/types/utils/data.d.ts.map index 1711946e8..889b63c0d 100644 --- a/types/utils/data.d.ts.map +++ b/types/utils/data.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../src.ts/utils/data.ts"],"names":[],"mappings":"AAGA,oBAAY,SAAS,GAAG,MAAM,GAAG,UAAU,CAAC;AAqB5C;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,SAAS,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,UAAU,CAEpE;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,SAAS,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,UAAU,CAExE;AAGD;;;;;;;;;GASG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,GAAG,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,O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AE,MAAM,GAAG,OAAO,GAAG,KAAK,IAAI,KAAM,MAAO,EAAE,CAS3F;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,SAAS,CAE1D;AAID;;GAEG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM,CAS/C;AAED;;;GAGG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,aAAa,CAAC,SAAS,CAAC,GAAG,MAAM,CAE9D;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM,CAGlD;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAQ/E;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM,CAItD;AAqBD;;;GAGG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAEpE;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAEpE"} \ No newline at end of file diff --git a/types/utils/errors.d.ts b/types/utils/errors.d.ts index 34fb37c11..09e51acf8 100644 --- a/types/utils/errors.d.ts +++ b/types/utils/errors.d.ts @@ -158,16 +158,11 @@ export declare function isCallException(error: any): error is CallExceptionError export declare function makeError>(message: string, code: K, info?: ErrorInfo): T; /** * Throws an EthersError with %%message%%, %%code%% and additional error - * info. + * %%info%% when %%check%% is falsish.. * * @see [[api:makeError]] */ -export declare function throwError>(message: string, code: K, info?: ErrorInfo): never; -/** - * Throws an [[api:ArgumentError]] with %%message%% for the parameter with - * %%name%% and the %%value%%. - */ -export declare function throwArgumentError(message: string, name: string, value: any): never; +export declare function assert>(check: unknown, message: string, code: K, info?: ErrorInfo): asserts check; /** * A simple helper to simply ensuring provided arguments match expected * constraints, throwing if not. diff --git a/types/utils/errors.d.ts.map b/types/utils/errors.d.ts.map index b470b6705..928a8a444 100644 --- a/types/utils/errors.d.ts.map +++ b/types/utils/errors.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src.ts/utils/errors.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACR,kBAAkB,EAAE,kBAAkB,EAAE,mBAAmB,EAC9D,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAG9D,oBAAY,SAAS,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC,CAAC;AAQhE;;;;;;;;;GASG;AACH,oBAAY,SAAS,GAGjB,eAAe,GAAG,iBAAiB,GAAG,uBAAuB,GAC7D,eAAe,GAAG,cAAc,GAAG,SAAS,GAAG,UAAU,GACzD,WAAW,GAGX,gBAAgB,GAAI,eAAe,GAGnC,kBAAkB,GAAG,kBAAkB,GAAG,qBAAqB,GAC/D,gBAAgB,GAGhB,gBAAgB,GAAG,oBAAoB,GAAG,eAAe,GACzD,yBAAyB,GAAG,sBAAsB,GAClD,mBAAmB,GAAG,gBAAgB,GAGtC,iBAAiB,CACpB;AAED,MAAM,WAAW,WAAW,CAAC,CAAC,SAAS,SAAS,GAAG,SAAS,CAAE,SAAQ,KAAK;IACvE,IAAI,EAAE,SAAS,CAAC;IAEhB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC3B,KAAK,CAAC,EAAE,KAAK,CAAC;CACjB;AAID,MAAM,WAAW,YAAa,SAAQ,WAAW,CAAC,eAAe,CAAC;IAC9D,CAAE,GAAG,EAAE,MAAM,GAAI,GAAG,CAAC;CACxB;AAED,MAAM,WAAW,mBAAoB,S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BAAgB,MAAM,CAAC,CAAC,SAAS,SAAS,EAAE,CAAC,SAAS,gBAAgB,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,KAAK,CAEvJ;AAGD;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,KAAK,CAE3G;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,OAAO,GAAE,MAAW,GAAG,IAAI,CAYpG;AAuBD;;GAEG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAIlD;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,UAAU,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,SAAS,GAAE,MAAW,GAAG,IAAI,CAWvF"} \ No newline at end of file diff --git a/types/utils/fetch.d.ts.map b/types/utils/fetch.d.ts.map index bfbec6943..d06248e7d 100644 --- a/types/utils/fetch.d.ts.map +++ b/types/utils/fetch.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"fetch.d.ts","sourceRoot":"","sources":["../../src.ts/utils/fetch.ts"],"names":[],"mappings":"AASA,oBAAY,cAAc,GAAG;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,IAAI,EAAE,IAAI,GAAG,UAAU,CAAA;CAC1B,CAAC;AAEF,oBAAY,mBAAmB,GAAG;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;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e26eac3c2..4b2a10bce 100644 --- a/types/utils/fixednumber.d.ts +++ b/types/utils/fixednumber.d.ts @@ -7,7 +7,7 @@ export declare class FixedFormat { readonly decimals: number; readonly name: string; readonly _multiplier: bigint; - constructor(constructorGuard: any, signed: boolean, width: number, decimals: number); + constructor(guard: any, signed: boolean, width: number, decimals: number); static from(value: any): FixedFormat; } /** @@ -17,7 +17,7 @@ export declare class FixedNumber { #private; readonly format: FixedFormat; readonly _isFixedNumber: boolean; - constructor(constructorGuard: any, hex: string, value: string, format?: FixedFormat); + constructor(guard: any, hex: string, value: string, format?: FixedFormat); /** * Returns a new [[FixedNumber]] with the result of this added * to %%other%%. diff --git a/types/utils/fixednumber.d.ts.map b/types/utils/fixednumber.d.ts.map index ff2679f0b..4c87bd3c3 100644 --- a/types/utils/fixednumber.d.ts.map +++ b/types/utils/fixednumber.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"fixednumber.d.ts","sourceRoot":"","sources":["../../src.ts/utils/fixednumber.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AA2BnE,wBAAgB,WAAW,CAAC,MAAM,EAAE,YAAY,EAAE,SAAS,CAAC,EAAE,OAAO,GAAG,MAAM,CA4B7E;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,GAAG,MAAM,CAkDpE;AAED,qBAAa,WAAW;IACpB,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAEtB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;gBAEjB,gBAAgB,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MA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,EAAE,WAAW,GAAG,WAAW;IAO1C,SAAS,CAAC,KAAK,EAAE,WAAW,GAAG,WAAW;IAO1C,SAAS,CAAC,KAAK,EAAE,WAAW,GAAG,WAAW;IAO1C,KAAK,IAAI,WAAW;IAcpB,OAAO,IAAI,WAAW;IAetB,KAAK,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,WAAW;IAkBrC,MAAM,IAAI,OAAO;IAIjB,UAAU,IAAI,OAAO;IAIrB,QAAQ,IAAI,MAAM;IAElB,WAAW,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM;IAcpC,aAAa,IAAI,MAAM;IAEvB,QAAQ,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM,GAAG,WAAW;IAKnD,MAAM,CAAC,SAAS,CAAC,KAAK,EAAE,YAAY,EAAE,QAAQ,GAAE,MAAU,EAAE,MAAM,GAAE,WAAW,GAAG,MAAM,GAAG,MAAgB,GAAG,WAAW;IAKzH,MAAM,CAAC,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,GAAE,WAAW,GAAG,MAAM,GAAG,MAAgB,GAAG,WAAW;IAoB9F,MAAM,CAAC,SAAS,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,GAAE,WAAW,GAAG,MAAM,GAAG,MAAgB,GAAG,WAAW;IAiBjG,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,GAAG,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,MAAM,GAAG,WAAW;IAqB5E,MAAM,CAAC,aAAa,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,WAAW;CAGzD"} \ No newline at end of file diff --git a/types/utils/geturl-browser.d.ts.map b/types/utils/geturl-browser.d.ts.map index 11201ff55..2dbcce616 100644 --- a/types/utils/geturl-browser.d.ts.map +++ b/types/utils/geturl-browser.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"geturl-browser.d.ts","sourceRoot":"","sources":["../../src.ts/utils/geturl-browser.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAGlF,OAAO,CAAC,MAAM,CAAC;IACX,MAAM,OAAO;oBACG,MAAM,EAAE,KAAK,CAAC,CAAE,MAAM,EAAE,MAAM,CAAE,CAAC;QAC7C,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,KAAK,IAAI,GAAG,IAAI;KACtD;IAED,MAAM,QAAQ;QACV,MAAM,EAAE,MAAM,CAAC;QACf,UAAU,EAAE,MAAM,CAAC;QACnB,OAAO,EAAE,OAAO,CAAC;QACjB,WAAW,IAAI,OAAO,CAAC,WAAW,CAAC;KACtC;IAED,KAAK,SAAS,GAAG;QACb,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,IAAI,CAAC,EAAE,UAAU,CAAA;KACpB,CAAC;IAEF,SAAS,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;CACnE;AAID,wBAAsB,MAAM,CAAC,GAAG,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,cAAc,CAAC,CA6CpG"} \ No newline at end of file +{"version":3,"file":"geturl-browser.d.ts","sourceRoot":"","sources":["../../src.ts/utils/geturl-browser.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAGlF,OAAO,CAAC,MAAM,CAAC;IACX,MAAM,OAAO;oBACG,MAAM,EAAE,KAAK,CAAC,CAAE,MAAM,EAAE,MAAM,CAAE,CAAC;QAC7C,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,KAAK,IAAI,GAAG,IAAI;KACtD;IAED,MAAM,QAAQ;QACV,MAAM,EAAE,MAAM,CAAC;QACf,UAAU,EAAE,MAAM,CAAC;QACnB,OAAO,EAAE,OAAO,CAAC;QACjB,WAAW,IAAI,OAAO,CAAC,WAAW,CAAC;KACtC;IAED,KAAK,SAAS,GAAG;QACb,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,IAAI,CAAC,EAAE,UAAU,CAAA;KACpB,CAAC;IAEF,SAAS,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;CACnE;AAID,wBAAsB,MAAM,CAAC,GAAG,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,cAAc,CAAC,CAyCpG"} \ No newline at end of file diff --git a/types/utils/geturl.d.ts.map b/types/utils/geturl.d.ts.map index 18a96f7d2..c92c98baf 100644 --- a/types/utils/geturl.d.ts.map +++ b/types/utils/geturl.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"geturl.d.ts","sourceRoot":"","sources":["../../src.ts/utils/geturl.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAGlF,wBAAsB,MAAM,CAAC,GAAG,EAAE,YAAY,EAAE,MAAM,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,cAAc,CAAC,CAsFnG"} \ No newline at end of file +{"version":3,"file":"geturl.d.ts","sourceRoot":"","sources":["../../src.ts/utils/geturl.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAGlF,wBAAsB,MAAM,CAAC,GAAG,EAAE,YAAY,EAAE,MAAM,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,cAAc,CAAC,CAkFnG"} \ No newline at end of file diff --git a/types/utils/index.d.ts b/types/utils/index.d.ts index 82ec84b25..2c516eeae 100644 --- a/types/utils/index.d.ts +++ b/types/utils/index.d.ts @@ -9,7 +9,7 @@ export declare type Frozen = Readonly<{ export { decodeBase58, encodeBase58 } from "./base58.js"; export { decodeBase64, encodeBase64 } from "./base64.js"; export { getBytes, getBytesCopy, isHexString, isBytesLike, hexlify, concat, dataLength, dataSlice, stripZerosLeft, zeroPadValue, zeroPadBytes } from "./data.js"; -export { isCallException, isError, makeError, throwError, throwArgumentError, assertArgument, assertArgumentCount, assertPrivate, assertNormalize } from "./errors.js"; +export { isCallException, isError, assert, assertArgument, assertArgumentCount, assertPrivate, assertNormalize, makeError } from "./errors.js"; export { EventPayload } from "./events.js"; export { getIpfsGatewayFunc, FetchRequest, FetchResponse, FetchCancelSignal, } from "./fetch.js"; export { FixedFormat, FixedNumber, formatFixed, parseFixed } from "./fixednumber.js"; @@ -19,7 +19,7 @@ export { decodeRlp } from "./rlp-decode.js"; export { encodeRlp } from "./rlp-encode.js"; export { getStore, setStore } from "./storage.js"; export { formatEther, parseEther, formatUnits, parseUnits } from "./units.js"; -export { _toEscapedUtf8String, toUtf8Bytes, toUtf8CodePoints, toUtf8String, Utf8ErrorFuncs, } from "./utf8.js"; +export { toUtf8Bytes, toUtf8CodePoints, toUtf8String, Utf8ErrorFuncs, } from "./utf8.js"; export type { BytesLike } from "./data.js"; export type { ErrorCode, EthersError, UnknownError, NotImplementedError, UnsupportedOperationError, NetworkError, ServerError, TimeoutError, BadDataError, CancelledError, BufferOverrunError, NumericFaultError, InvalidArgumentError, MissingArgumentError, UnexpectedArgumentError, CallExceptionError, InsufficientFundsError, NonceExpiredError, OffchainFaultError, ReplacementUnderpricedError, TransactionReplacedError, UnconfiguredNameError, ActionRejectedError, CallExceptionAction, CallExceptionTransaction, CodedEthersError } from "./errors.js"; export type { EventEmitterable, Listener } from "./events.js"; diff --git a/types/utils/index.d.ts.map b/types/utils/index.d.ts.map index 1f2d62f90..ac0534e44 100644 --- a/types/utils/index.d.ts.map +++ b/types/utils/index.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src.ts/utils/index.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,SAAS,CAAC,CAAC;IACxB,KAAK,IAAI,CAAC,CAAC;IACX,MAAM,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC;IACpB,QAAQ,IAAI,OAAO,CAAC;CACvB;AAED,oBAAY,MAAM,CAAC,CAAC,IAAI,QAAQ,CAAC;KAC3B,CAAC,IAAI,MAAM,CAAC,GAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,GAChD,CAAC,CAAC,CAAC,CAAC,SAAS,SAAS,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAC1C,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACnC,CAAC,CAAC;AAGH,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEzD,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEzD,OAAO,EACH,QAAQ,EAAE,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EACxF,cAAc,EAAE,YAAY,EAAE,YAAY,EAC7C,MAAM,WAAW,CAAC;AAEnB,OAAO,EACH,eAAe,EAAE,OAAO,EACxB,SAAS,EAAE,UAAU,EAAE,kBAAkB,EACzC,cAAc,EAAE,mBAAmB,EAAE,aAAa,EAAE,eAAe,EACtE,MAAM,aAAa,CAAA;AAEpB,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,OAAO,EACH,kBAAkB,EAClB,YAAY,EAAE,aAAa,EAAE,iBAAiB,GACjD,MAAM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wB,EAAE,qBAAqB,EAC5E,mBAAmB,EAEnB,mBAAmB,EAAE,wBAAwB,EAE7C,gBAAgB,EACnB,MAAM,aAAa,CAAA;AAEpB,YAAY,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE9D,YAAY,EACR,cAAc,EACd,kBAAkB,EAAE,gBAAgB,EAAE,cAAc,EACpD,gBAAgB,EAAE,eAAe,EACpC,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAEnD,YAAY,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAElD,YAAY,EACR,aAAa,EACb,wBAAwB,EACxB,eAAe,EAClB,MAAM,WAAW,CAAC"} \ No newline at end of file diff --git a/types/utils/maths.d.ts.map b/types/utils/maths.d.ts.map index 8814f4b61..7de4a8663 100644 --- a/types/utils/maths.d.ts.map +++ b/types/utils/maths.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"maths.d.ts","sourceRoot":"","sources":["../../src.ts/utils/maths.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAE3C;;GAEG;AACH,oBAAY,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;AAEtC;;GAEG;AACH,oBAAY,YAAY,GAAG,MAAM,GAAG,OAAO,CAAC;AAS5C;;GAEG;AACH,wBAAgB,QAAQ,CAAC,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,OAAO,GAAG,MAAM,CAWtE;AAED;;GAEG;AACH,wBAAgB,MAAM,CAAC,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,OAAO,GAAG,MAAM,CAUpE;AAED;;GAEG;AACH,wBAAgB,IAAI,CAAC,MAAM,EAAE,YAAY,EAAE,KAAK,EAAE,OAAO,GAAG,MAAM,CAIjE;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,YAAY,EAAE,IAAI,CAAC,E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pE;AASD,wBAAgB,QAAQ,CAAC,KAAK,EAAE,YAAY,GAAG,UAAU,GAAG,MAAM,CAWjE;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,YAAY,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAiBpE;AAOD,wBAAgB,QAAQ,CAAC,KAAK,EAAE,YAAY,GAAG,UAAU,GAAG,MAAM,CAEjE;AAED;;;GAGG;AACH,wBAAgB,KAAK,CAAC,MAAM,EAAE,YAAY,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,CAmBpE;AAED;;GAEG;AACH,wBAAgB,OAAO,CAAC,MAAM,EAAE,YAAY,GAAG,UAAU,CAgBxD;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,SAAS,GAAG,YAAY,GAAG,MAAM,CAKlE"} \ No newline at end of file diff --git a/types/utils/rlp-decode.d.ts.map b/types/utils/rlp-decode.d.ts.map index e6ba056e3..458795aad 100644 --- a/types/utils/rlp-decode.d.ts.map +++ b/types/utils/rlp-decode.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"rlp-decode.d.ts","sourceRoot":"","sources":["../../src.ts/utils/rlp-decode.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AA8F/D;;GAEG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,SAAS,GAAG,iBAAiB,CAO7D"} \ No newline at end of file +{"version":3,"file":"rlp-decode.d.ts","sourceRoot":"","sources":["../../src.ts/utils/rlp-decode.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAwF/D;;GAEG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,SAAS,GAAG,iBAAiB,CAK7D"} \ No newline at end of file diff --git a/types/utils/units.d.ts.map b/types/utils/units.d.ts.map index 616460dd4..2b068efff 100644 --- a/types/utils/units.d.ts.map +++ b/types/utils/units.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"units.d.ts","sourceRoot":"","sources":["../../src.ts/utils/units.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAa/D;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,YAAY,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAOhF;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAWzE;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,YAAY,GAAG,MAAM,CAErD;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEhD"} \ No newline at end of file +{"version":3,"file":"units.d.ts","sourceRoot":"","sources":["../../src.ts/utils/units.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAa/D;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,YAAY,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAOhF;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAUzE;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,YAAY,GAAG,MAAM,CAErD;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEhD"} \ No newline at end of file diff --git a/types/utils/utf8.d.ts b/types/utils/utf8.d.ts index 8d733dc35..c13fd9196 100644 --- a/types/utils/utf8.d.ts +++ b/types/utils/utf8.d.ts @@ -4,7 +4,6 @@ export declare type Utf8ErrorReason = "UNEXPECTED_CONTINUE" | "BAD_PREFIX" | "OV export declare type Utf8ErrorFunc = (reason: Utf8ErrorReason, offset: number, bytes: ArrayLike, output: Array, badCodepoint?: number) => number; export declare const Utf8ErrorFuncs: Readonly>; export declare function toUtf8Bytes(str: string, form?: UnicodeNormalizationForm): Uint8Array; -export declare function _toEscapedUtf8String(bytes: BytesLike, onError?: Utf8ErrorFunc): string; export declare function _toUtf8String(codePoints: Array): string; export declare function toUtf8String(bytes: BytesLike, onError?: Utf8ErrorFunc): string; export declare function toUtf8CodePoints(str: string, form?: UnicodeNormalizationForm): Array; diff --git a/types/utils/utf8.d.ts.map b/types/utils/utf8.d.ts.map index 8330433c5..031d90768 100644 --- a/types/utils/utf8.d.ts.map +++ b/types/utils/utf8.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"utf8.d.ts","sourceRoot":"","sources":["../../src.ts/utils/utf8.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAK5C,oBAAY,wBAAwB,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC;AAEvE,oBAAY,eAAe,GAGvB,qBAAqB,GAIrB,YAAY,GAIZ,SAAS,GAIT,kBAAkB,GAKlB,cAAc,GAKd,iBAAiB,GAKjB,UAAU,CAAC;AAGf,oBAAY,aAAa,GAAG,CAAC,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,YAAY,CAAC,EAAE,MAAM,KAAK,MAAM,CAAC;AA+CxJ,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,MAAM,CAAC,OAAO,GAAG,QAAQ,GAAG,SAAS,EAAE,aAAa,CAAC,CAIzF,CAAC;AAqGH,wBAAgB,WAAW,C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ED,wBAAgB,aAAa,CAAC,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,MAAM,CAW/D;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,MAAM,CAE9E;AAED,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,wBAAwB,GAAG,KAAK,CAAC,MAAM,CAAC,CAE5F"} \ No newline at end of file diff --git a/types/wallet/base-wallet.d.ts.map b/types/wallet/base-wallet.d.ts.map index 43e6723c6..0fd00212d 100644 --- a/types/wallet/base-wallet.d.ts.map +++ b/types/wallet/base-wallet.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"base-wallet.d.ts","sourceRoot":"","sources":["../../src.ts/wallet/base-wallet.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAMvD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,KAAK,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAG1E,qBAAa,UAAW,SAAQ,cAAc;;IAC1C,QAAQ,CAAC,OAAO,EAAG,MAAM,CAAC;gBAId,UAAU,EAAE,UAAU,EAAE,QAAQ,CAAC,EAAE,IAAI,GAAG,QAAQ;IAS9D,IAAI,UAAU,IAAI,UAAU,CAA6B;IACzD,IAAI,UAAU,IAAI,MAAM,CAAuC;IAEzD,UAAU,IAAI,OAAO,CAAC,MAAM,CAAC;IAEnC,OAAO,CAAC,QAAQ,EAAE,IAAI,GAAG,QAAQ,GAAG,UAAU;IAIxC,eAAe,CAAC,EAAE,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC;IAyBxD,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,UAAU,GAAG,OA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AAC,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC;CAmB1I"} \ No newline at end of file diff --git a/types/wallet/hdwallet.d.ts.map b/types/wallet/hdwallet.d.ts.map index 89dd6db80..045d83883 100644 --- a/types/wallet/hdwallet.d.ts.map +++ b/types/wallet/hdwallet.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"hdwallet.d.ts","sourceRoot":"","sources":["../../src.ts/wallet/hdwallet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuC,UAAU,EAAU,MAAM,oBAAoB,CAAC;AAC7F,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAUnD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,OAAO,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAGtD,eAAO,MAAM,WAAW,qBAAqB,CAAC;AAuF9C,qBAAa,YAAa,SAAQ,UAAU;;IACxC,QAAQ,CAAC,SAAS,EAAG,MAAM,CAAC;IAE5B,QAAQ,CAAC,WAAW,EAAG,MAAM,CAAC;IAC9B,QAAQ,CAAC,iBAAiB,EAAG,MAAM,CAAC;IAEpC,QAAQ,CAAC,QAAQ,EAAG,IAAI,GAAG,QAAQ,CAAC;IAEpC,QAAQ,CAAC,SAAS,EAAG,MAAM,CAAC;IAE5B,QAAQ,CAAC,IAAI,EAAG,IAAI,GAAG,MAAM,CAAC;IAC9B,QAAQ,CAAC,KAAK,EAAG,MAAM,CAAC;IACxB,QAAQ,CAAC,KAAK,EAAG,MAAM,CAAC;gBAEZ,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AAI,MAAM,CAiBxB;IAED,OAAO,IAAI,IAAI,IAAI;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE;IAEnC,WAAW,CAAC,MAAM,EAAE,OAAO,GAAG,gBAAgB;IAqB9C,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,gBAAgB;CAG7C;AAED,qBAAa,mBAAmB;;gBAGhB,MAAM,EAAE,MAAM,EAAE,QAAQ,GAAE,MAAW,EAAE,IAAI,GAAE,MAAyB,EAAE,MAAM,GAAE,QAAiB;IAI7G,SAAS,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,YAAY;CAG1C;AAED,wBAAgB,cAAc,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,CAItD"} \ No newline at end of file diff --git a/types/wallet/json-crowdsale.d.ts.map b/types/wallet/json-crowdsale.d.ts.map index de1e72270..0e60cb285 100644 --- a/types/wallet/json-crowdsale.d.ts.map +++ b/types/wallet/json-crowdsale.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"json-crowdsale.d.ts","sourceRoot":"","sources":["../../src.ts/wallet/json-crowdsale.ts"],"names":[],"mappings":"AAUA,MAAM,WAAW,gBAAgB;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAMrD;AAGD,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,UAAU,GAAG,gBAAgB,CA6BnG"} \ No newline at end of file +{"version":3,"file":"json-crowdsale.d.ts","sourceRoot":"","sources":["../../src.ts/wallet/json-crowdsale.ts"],"names":[],"mappings":"AAUA,MAAM,WAAW,gBAAgB;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAMrD;AAGD,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,UAAU,GAAG,gBAAgB,CA2BnG"} \ No newline at end of file diff --git a/types/wallet/json-keystore.d.ts.map b/types/wallet/json-keystore.d.ts.map index 0acc7aa79..77fafd4a4 100644 --- a/types/wallet/json-keystore.d.ts.map +++ b/types/wallet/json-keystore.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"json-keystore.d.ts","sourceRoot":"","sources":["../../src.ts/wallet/json-keystore.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAOnD,oBAAY,qBAAqB,GAAG;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE;QACP,OAAO,EAAE,MAAM,CAAC;QAChB,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;KAClB,CAAC;CACL,CAAC;AAEF,oBAAY,eAAe,GAAG;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE;QACP,OAAO,EAAE,MAAM,CAAC;QAChB,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;KAClB,CAAC;CACL,CAAC;AAEF,oBAAY,cAAc,GAAG;IAC1B,EAAE,CAAC,EAAE,SAAS,CAAC;IACf,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE;QACL,CAAC,CAAC,EAAE,MAAM,CAAC;QACX,CAAC,CAAC,EAAE,MAAM,CAAC;QACX,CAAC,CAAC,EAAE,MAAM,CAAC;KACd,C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,EAAE,SAAS,CAAC;IACf,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE;QACL,CAAC,CAAC,EAAE,MAAM,CAAC;QACX,CAAC,CAAC,EAAE,MAAM,CAAC;QACX,CAAC,CAAC,EAAE,MAAM,CAAC;KACd,CAAA;CACH,CAAA;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAOpD;AAqHD,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,UAAU,GAAG,eAAe,CAiBrG;AAMD,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,UAAU,EAAE,QAAQ,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAAC,eAAe,CAAC,CAyB7I;AAGD,wBAAsB,mBAAmB,CAAC,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,GAAG,UAAU,EAAE,OAAO,CAAC,EAAE,cAAc,EAAE,gBAAgB,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAAC,MAAM,CAAC,CAsIjL"} \ No newline at end of file diff --git a/types/wallet/mnemonic.d.ts.map b/types/wallet/mnemonic.d.ts.map index 636a26c7f..061111f09 100644 --- a/types/wallet/mnemonic.d.ts.map +++ b/types/wallet/mnemonic.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"mnemonic.d.ts","sourceRoot":"","sources":["../../src.ts/wallet/mnemonic.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAoGtD,qBAAa,QAAQ;IACjB,QAAQ,CAAC,MAAM,EAAG,MAAM,C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B,QAAQ,CAAC,QAAQ,EAAG,MAAM,CAAC;IAC3B,QAAQ,CAAC,QAAQ,EAAG,QAAQ,CAAC;IAE7B,QAAQ,CAAC,OAAO,EAAG,MAAM,CAAC;gBAEd,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,IAAI,GAAG,MAAM,EAAE,QAAQ,CAAC,EAAE,IAAI,GAAG,QAAQ;IAO7G,WAAW,IAAI,MAAM;IAKrB,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,IAAI,GAAG,MAAM,EAAE,QAAQ,CAAC,EAAE,IAAI,GAAG,QAAQ,GAAG,QAAQ;IAOjG,MAAM,CAAC,WAAW,CAAC,QAAQ,EAAE,SAAS,EAAE,QAAQ,CAAC,EAAE,IAAI,GAAG,MAAM,EAAE,QAAQ,CAAC,EAAE,IAAI,GAAG,QAAQ,GAAG,QAAQ;IAMvG,MAAM,CAAC,eAAe,CAAC,QAAQ,EAAE,SAAS,EAAE,QAAQ,CAAC,EAAE,IAAI,GAAG,QAAQ,GAAG,MAAM;IAK/E,MAAM,CAAC,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,IAAI,GAAG,QAAQ,GAAG,MAAM;IAI1E,MAAM,CAAC,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,IAAI,GAAG,QAAQ,GAAG,OAAO;CAO9E"} \ No newline at end of file diff --git a/types/wallet/utils.d.ts.map b/types/wallet/utils.d.ts.map index f4ecc31f5..f5f1a7822 100644 --- a/types/wallet/utils.d.ts.map +++ b/types/wallet/utils.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src.ts/wallet/utils.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAGnD,wBAAgB,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,UAAU,CAK3D;AAED,wBAAgB,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAInE;AAED,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,UAAU,GAAG,UAAU,CAKrE;AAED,wBAAgB,OAAO,CAAC,CAAC,GAAG,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC,CAiEjE;AAiCD,wBAAgB,MAAM,CAAC,WAAW,EAAE,SAAS,GAAG,MAAM,CAqBrD"} \ No newline at end of file +{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src.ts/wallet/utils.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAGnD,wBAAgB,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,UAAU,CAK3D;AAED,wBAAgB,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAInE;AAED,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,UAAU,GAAG,UAAU,CAKrE;AAED,wBAAgB,OAAO,CAAC,CAAC,GAAG,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC,CA8DjE;AAiCD,wBAAgB,MAAM,CAAC,WAAW,EAAE,SAAS,GAAG,MAAM,CAqBrD"} \ No newline at end of file diff --git a/types/wallet/wallet.d.ts.map b/types/wallet/wallet.d.ts.map index 4bfc00d0f..4be329d14 100644 --- a/types/wallet/wallet.d.ts.map +++ b/types/wallet/wallet.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"wallet.d.ts","sourceRoot":"","sources":["../../src.ts/wallet/wallet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,UAAU,EAAE,MAAM,oBAAoB,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I,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,GAAG,MAAM,EAAE,QAAQ,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAAC,MAAM,CAAC;IAqBzH,MAAM,CAAC,qBAAqB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,GAAG,MAAM,GAAG,MAAM;IAiBjF,MAAM,CAAC,YAAY,CAAC,QAAQ,CAAC,EAAE,IAAI,GAAG,QAAQ,EAAE,QAAQ,CAAC,EAAE,IAAI,GAAG,MAAM,EAAE,QAAQ,CAAC,EAAE,IAAI,GAAG,QAAQ,GAAG,MAAM;IAI7G,MAAM,CAAC,YAAY,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,CAAC,EAAE,IAAI,GAAG,QAAQ,GAAG,MAAM;IAI3E,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,IAAI,GAAG,QAAQ,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,QAAQ,GAAG,MAAM;CAIhH"} \ No newline at end of file diff --git a/types/wordlists/lang-ja.d.ts.map b/types/wordlists/lang-ja.d.ts.map index de8ed3d2c..21d8e03be 100644 --- a/types/wordlists/lang-ja.d.ts.map +++ b/types/wordlists/lang-ja.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"lang-ja.d.ts","sourceRoot":"","sources":["../../src.ts/wordlists/lang-ja.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAgIzC,cAAM,MAAO,SAAQ,QAAQ;;IAGzB,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAQ9B,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAIlC,KAAK,CAAC,QAAQ,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;IAKtC,IAAI,CAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,MAAM;CAGrC;AAED,eAAO,MAAM,MAAM,QAAe,CAAC"} \ No newline at end of file +{"version":3,"file":"lang-ja.d.ts","sourceRoot":"","sources":["../../src.ts/wordlists/lang-ja.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAgIzC,cAAM,MAAO,SAAQ,QAAQ;;IAGzB,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAO9B,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAIlC,KAAK,CAAC,QAAQ,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;IAKtC,IAAI,CAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,MAAM;CAGrC;AAED,eAAO,MAAM,MAAM,QAAe,CAAC"} \ No newline at end of file diff --git a/types/wordlists/lang-ko.d.ts.map b/types/wordlists/lang-ko.d.ts.map index 9463135f1..feb1f1313 100644 --- a/types/wordlists/lang-ko.d.ts.map +++ b/types/wordlists/lang-ko.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"lang-ko.d.ts","sourceRoot":"","sources":["../../src.ts/wordlists/lang-ko.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AA6DzC,cAAM,MAAO,SAAQ,QAAQ;;IAKzB,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAQ9B,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;CAGrC;AAED,eAAO,MAAM,MAAM,QAAe,CAAC"} \ No newline at end of file +{"version":3,"file":"lang-ko.d.ts","sourceRoot":"","sources":["../../src.ts/wordlists/lang-ko.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AA6DzC,cAAM,MAAO,SAAQ,QAAQ;;IAKzB,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAO9B,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;CAGrC;AAED,eAAO,MAAM,MAAM,QAAe,CAAC"} \ No newline at end of file diff --git a/types/wordlists/lang-zh.d.ts.map b/types/wordlists/lang-zh.d.ts.map index d6e77bbd2..3729d31ca 100644 --- a/types/wordlists/lang-zh.d.ts.map +++ b/types/wordlists/lang-zh.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"lang-zh.d.ts","sourceRoot":"","sources":["../../src.ts/wordlists/lang-zh.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAyDzC,cAAM,MAAO,SAAQ,QAAQ;gBACb,OAAO,EAAE,MAAM;IAE3B,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAQ9B,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAIlC,KAAK,CAAC,QAAQ,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;CAIzC;AAED,eAAO,MAAM,QAAQ,QAAmB,CAAC;AACzC,eAAO,MAAM,QAAQ,QAAmB,CAAC"} \ No newline at end of file +{"version":3,"file":"lang-zh.d.ts","sourceRoot":"","sources":["../../src.ts/wordlists/lang-zh.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAyDzC,cAAM,MAAO,SAAQ,QAAQ;gBACb,OAAO,EAAE,MAAM;IAE3B,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAO9B,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAIlC,KAAK,CAAC,QAAQ,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;CAIzC;AAED,eAAO,MAAM,QAAQ,QAAmB,CAAC;AACzC,eAAO,MAAM,QAAQ,QAAmB,CAAC"} \ No newline at end of file diff --git a/types/wordlists/wordlist-owl.d.ts.map b/types/wordlists/wordlist-owl.d.ts.map index b71ef08e3..b3730b4a7 100644 --- a/types/wordlists/wordlist-owl.d.ts.map +++ b/types/wordlists/wordlist-owl.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"wordlist-owl.d.ts","sourceRoot":"","sources":["../../src.ts/wordlists/wordlist-owl.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,qBAAa,WAAY,SAAQ,QAAQ;;gBAIzB,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAO1D,IAAI,KAAK,IAAI,MAAM,CAAuB;IAE1C,YAAY,IAAI,KAAK,CAAC,MAAM,CAAC;IAsB7B,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAQ9B,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;CAGrC"} \ No newline at end of file +{"version":3,"file":"wordlist-owl.d.ts","sourceRoot":"","sources":["../../src.ts/wordlists/wordlist-owl.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,qBAAa,WAAY,SAAQ,QAAQ;;gBAIzB,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAO1D,IAAI,KAAK,IAAI,MAAM,CAAuB;IAE1C,YAAY,IAAI,KAAK,CAAC,MAAM,CAAC;IAsB7B,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAM9B,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;CAGrC"} \ No newline at end of file