eteres 0.0.1-security → 6.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of eteres might be problematic. Click here for more details.
- package/CHANGELOG.md +247 -0
- package/LICENSE.md +21 -0
- package/README.md +137 -5
- package/SECURITY.md +34 -0
- package/dist/README.md +22 -0
- package/dist/ethers.js +23758 -0
- package/dist/ethers.js.map +1 -0
- package/dist/ethers.min.js +1 -0
- package/dist/ethers.umd.js +23954 -0
- package/dist/ethers.umd.js.map +1 -0
- package/dist/ethers.umd.min.js +1 -0
- package/dist/wordlists-extra.js +1595 -0
- package/dist/wordlists-extra.js.map +1 -0
- package/dist/wordlists-extra.min.js +1 -0
- package/lib.commonjs/README.md +16 -0
- package/lib.commonjs/_version.d.ts +5 -0
- package/lib.commonjs/_version.d.ts.map +1 -0
- package/lib.commonjs/_version.js +9 -0
- package/lib.commonjs/_version.js.map +1 -0
- package/lib.commonjs/abi/abi-coder.d.ts +60 -0
- package/lib.commonjs/abi/abi-coder.d.ts.map +1 -0
- package/lib.commonjs/abi/abi-coder.js +205 -0
- package/lib.commonjs/abi/abi-coder.js.map +1 -0
- package/lib.commonjs/abi/bytes32.d.ts +15 -0
- package/lib.commonjs/abi/bytes32.d.ts.map +1 -0
- package/lib.commonjs/abi/bytes32.js +45 -0
- package/lib.commonjs/abi/bytes32.js.map +1 -0
- package/lib.commonjs/abi/coders/abstract-coder.d.ts +121 -0
- package/lib.commonjs/abi/coders/abstract-coder.d.ts.map +1 -0
- package/lib.commonjs/abi/coders/abstract-coder.js +407 -0
- package/lib.commonjs/abi/coders/abstract-coder.js.map +1 -0
- package/lib.commonjs/abi/coders/address.d.ts +13 -0
- package/lib.commonjs/abi/coders/address.d.ts.map +1 -0
- package/lib.commonjs/abi/coders/address.js +33 -0
- package/lib.commonjs/abi/coders/address.js.map +1 -0
- package/lib.commonjs/abi/coders/anonymous.d.ts +15 -0
- package/lib.commonjs/abi/coders/anonymous.d.ts.map +1 -0
- package/lib.commonjs/abi/coders/anonymous.js +27 -0
- package/lib.commonjs/abi/coders/anonymous.js.map +1 -0
- package/lib.commonjs/abi/coders/array.d.ts +25 -0
- package/lib.commonjs/abi/coders/array.d.ts.map +1 -0
- package/lib.commonjs/abi/coders/array.js +165 -0
- package/lib.commonjs/abi/coders/array.js.map +1 -0
- package/lib.commonjs/abi/coders/boolean.d.ts +13 -0
- package/lib.commonjs/abi/coders/boolean.d.ts.map +1 -0
- package/lib.commonjs/abi/coders/boolean.js +25 -0
- package/lib.commonjs/abi/coders/boolean.js.map +1 -0
- package/lib.commonjs/abi/coders/bytes.d.ts +19 -0
- package/lib.commonjs/abi/coders/bytes.d.ts.map +1 -0
- package/lib.commonjs/abi/coders/bytes.js +39 -0
- package/lib.commonjs/abi/coders/bytes.js.map +1 -0
- package/lib.commonjs/abi/coders/fixed-bytes.d.ts +15 -0
- package/lib.commonjs/abi/coders/fixed-bytes.d.ts.map +1 -0
- package/lib.commonjs/abi/coders/fixed-bytes.js +32 -0
- package/lib.commonjs/abi/coders/fixed-bytes.js.map +1 -0
- package/lib.commonjs/abi/coders/null.d.ts +12 -0
- package/lib.commonjs/abi/coders/null.d.ts.map +1 -0
- package/lib.commonjs/abi/coders/null.js +28 -0
- package/lib.commonjs/abi/coders/null.js.map +1 -0
- package/lib.commonjs/abi/coders/number.d.ts +16 -0
- package/lib.commonjs/abi/coders/number.d.ts.map +1 -0
- package/lib.commonjs/abi/coders/number.js +49 -0
- package/lib.commonjs/abi/coders/number.js.map +1 -0
- package/lib.commonjs/abi/coders/string.d.ts +13 -0
- package/lib.commonjs/abi/coders/string.d.ts.map +1 -0
- package/lib.commonjs/abi/coders/string.js +25 -0
- package/lib.commonjs/abi/coders/string.js.map +1 -0
- package/lib.commonjs/abi/coders/tuple.d.ts +16 -0
- package/lib.commonjs/abi/coders/tuple.d.ts.map +1 -0
- package/lib.commonjs/abi/coders/tuple.js +67 -0
- package/lib.commonjs/abi/coders/tuple.js.map +1 -0
- package/lib.commonjs/abi/fragments.d.ts +466 -0
- package/lib.commonjs/abi/fragments.d.ts.map +1 -0
- package/lib.commonjs/abi/fragments.js +1331 -0
- package/lib.commonjs/abi/fragments.js.map +1 -0
- package/lib.commonjs/abi/index.d.ts +18 -0
- package/lib.commonjs/abi/index.d.ts.map +1 -0
- package/lib.commonjs/abi/index.js +40 -0
- package/lib.commonjs/abi/index.js.map +1 -0
- package/lib.commonjs/abi/interface.d.ts +382 -0
- package/lib.commonjs/abi/interface.d.ts.map +1 -0
- package/lib.commonjs/abi/interface.js +1106 -0
- package/lib.commonjs/abi/interface.js.map +1 -0
- package/lib.commonjs/abi/typed.d.ts +570 -0
- package/lib.commonjs/abi/typed.d.ts.map +1 -0
- package/lib.commonjs/abi/typed.js +606 -0
- package/lib.commonjs/abi/typed.js.map +1 -0
- package/lib.commonjs/address/address.d.ts +56 -0
- package/lib.commonjs/address/address.d.ts.map +1 -0
- package/lib.commonjs/address/address.js +161 -0
- package/lib.commonjs/address/address.js.map +1 -0
- package/lib.commonjs/address/checks.d.ts +81 -0
- package/lib.commonjs/address/checks.d.ts.map +1 -0
- package/lib.commonjs/address/checks.js +120 -0
- package/lib.commonjs/address/checks.js.map +1 -0
- package/lib.commonjs/address/contract-address.d.ts +48 -0
- package/lib.commonjs/address/contract-address.d.ts.map +1 -0
- package/lib.commonjs/address/contract-address.js +74 -0
- package/lib.commonjs/address/contract-address.js.map +1 -0
- package/lib.commonjs/address/index.d.ts +49 -0
- package/lib.commonjs/address/index.d.ts.map +1 -0
- package/lib.commonjs/address/index.js +29 -0
- package/lib.commonjs/address/index.js.map +1 -0
- package/lib.commonjs/constants/addresses.d.ts +7 -0
- package/lib.commonjs/constants/addresses.d.ts.map +1 -0
- package/lib.commonjs/constants/addresses.js +10 -0
- package/lib.commonjs/constants/addresses.js.map +1 -0
- package/lib.commonjs/constants/hashes.d.ts +7 -0
- package/lib.commonjs/constants/hashes.d.ts.map +1 -0
- package/lib.commonjs/constants/hashes.js +10 -0
- package/lib.commonjs/constants/hashes.js.map +1 -0
- package/lib.commonjs/constants/index.d.ts +10 -0
- package/lib.commonjs/constants/index.d.ts.map +1 -0
- package/lib.commonjs/constants/index.js +22 -0
- package/lib.commonjs/constants/index.js.map +1 -0
- package/lib.commonjs/constants/numbers.d.ts +31 -0
- package/lib.commonjs/constants/numbers.d.ts.map +1 -0
- package/lib.commonjs/constants/numbers.js +34 -0
- package/lib.commonjs/constants/numbers.js.map +1 -0
- package/lib.commonjs/constants/strings.d.ts +13 -0
- package/lib.commonjs/constants/strings.d.ts.map +1 -0
- package/lib.commonjs/constants/strings.js +17 -0
- package/lib.commonjs/constants/strings.js.map +1 -0
- package/lib.commonjs/contract/contract.d.ts +168 -0
- package/lib.commonjs/contract/contract.d.ts.map +1 -0
- package/lib.commonjs/contract/contract.js +943 -0
- package/lib.commonjs/contract/contract.js.map +1 -0
- package/lib.commonjs/contract/factory.d.ts +62 -0
- package/lib.commonjs/contract/factory.d.ts.map +1 -0
- package/lib.commonjs/contract/factory.js +116 -0
- package/lib.commonjs/contract/factory.js.map +1 -0
- package/lib.commonjs/contract/index.d.ts +13 -0
- package/lib.commonjs/contract/index.d.ts.map +1 -0
- package/lib.commonjs/contract/index.js +24 -0
- package/lib.commonjs/contract/index.js.map +1 -0
- package/lib.commonjs/contract/types.d.ts +193 -0
- package/lib.commonjs/contract/types.d.ts.map +1 -0
- package/lib.commonjs/contract/types.js +6 -0
- package/lib.commonjs/contract/types.js.map +1 -0
- package/lib.commonjs/contract/wrappers.d.ts +143 -0
- package/lib.commonjs/contract/wrappers.d.ts.map +1 -0
- package/lib.commonjs/contract/wrappers.js +186 -0
- package/lib.commonjs/contract/wrappers.js.map +1 -0
- package/lib.commonjs/crypto/crypto-browser.d.ts +15 -0
- package/lib.commonjs/crypto/crypto-browser.d.ts.map +1 -0
- package/lib.commonjs/crypto/crypto-browser.js +55 -0
- package/lib.commonjs/crypto/crypto-browser.js.map +1 -0
- package/lib.commonjs/crypto/crypto.d.ts +2 -0
- package/lib.commonjs/crypto/crypto.d.ts.map +1 -0
- package/lib.commonjs/crypto/crypto.js +9 -0
- package/lib.commonjs/crypto/crypto.js.map +1 -0
- package/lib.commonjs/crypto/hmac.d.ts +25 -0
- package/lib.commonjs/crypto/hmac.d.ts.map +1 -0
- package/lib.commonjs/crypto/hmac.js +51 -0
- package/lib.commonjs/crypto/hmac.js.map +1 -0
- package/lib.commonjs/crypto/index.d.ts +25 -0
- package/lib.commonjs/crypto/index.d.ts.map +1 -0
- package/lib.commonjs/crypto/index.js +49 -0
- package/lib.commonjs/crypto/index.js.map +1 -0
- package/lib.commonjs/crypto/keccak.d.ts +35 -0
- package/lib.commonjs/crypto/keccak.d.ts.map +1 -0
- package/lib.commonjs/crypto/keccak.js +52 -0
- package/lib.commonjs/crypto/keccak.js.map +1 -0
- package/lib.commonjs/crypto/pbkdf2.d.ts +35 -0
- package/lib.commonjs/crypto/pbkdf2.d.ts.map +1 -0
- package/lib.commonjs/crypto/pbkdf2.js +53 -0
- package/lib.commonjs/crypto/pbkdf2.js.map +1 -0
- package/lib.commonjs/crypto/random.d.ts +14 -0
- package/lib.commonjs/crypto/random.d.ts.map +1 -0
- package/lib.commonjs/crypto/random.js +38 -0
- package/lib.commonjs/crypto/random.js.map +1 -0
- package/lib.commonjs/crypto/ripemd160.d.ts +25 -0
- package/lib.commonjs/crypto/ripemd160.d.ts.map +1 -0
- package/lib.commonjs/crypto/ripemd160.js +42 -0
- package/lib.commonjs/crypto/ripemd160.js.map +1 -0
- package/lib.commonjs/crypto/scrypt.d.ts +82 -0
- package/lib.commonjs/crypto/scrypt.d.ts.map +1 -0
- package/lib.commonjs/crypto/scrypt.js +104 -0
- package/lib.commonjs/crypto/scrypt.js.map +1 -0
- package/lib.commonjs/crypto/sha2.d.ts +47 -0
- package/lib.commonjs/crypto/sha2.d.ts.map +1 -0
- package/lib.commonjs/crypto/sha2.js +76 -0
- package/lib.commonjs/crypto/sha2.js.map +1 -0
- package/lib.commonjs/crypto/signature.d.ts +158 -0
- package/lib.commonjs/crypto/signature.d.ts.map +1 -0
- package/lib.commonjs/crypto/signature.js +305 -0
- package/lib.commonjs/crypto/signature.js.map +1 -0
- package/lib.commonjs/crypto/signing-key.d.ts +122 -0
- package/lib.commonjs/crypto/signing-key.d.ts.map +1 -0
- package/lib.commonjs/crypto/signing-key.js +178 -0
- package/lib.commonjs/crypto/signing-key.js.map +1 -0
- package/lib.commonjs/ethers.d.ts +22 -0
- package/lib.commonjs/ethers.d.ts.map +1 -0
- package/lib.commonjs/ethers.js +209 -0
- package/lib.commonjs/ethers.js.map +1 -0
- package/lib.commonjs/hash/id.d.ts +13 -0
- package/lib.commonjs/hash/id.d.ts.map +1 -0
- package/lib.commonjs/hash/id.js +21 -0
- package/lib.commonjs/hash/id.js.map +1 -0
- package/lib.commonjs/hash/index.d.ts +13 -0
- package/lib.commonjs/hash/index.d.ts.map +1 -0
- package/lib.commonjs/hash/index.js +27 -0
- package/lib.commonjs/hash/index.js.map +1 -0
- package/lib.commonjs/hash/message.d.ts +36 -0
- package/lib.commonjs/hash/message.d.ts.map +1 -0
- package/lib.commonjs/hash/message.js +56 -0
- package/lib.commonjs/hash/message.js.map +1 -0
- package/lib.commonjs/hash/namehash.d.ts +20 -0
- package/lib.commonjs/hash/namehash.d.ts.map +1 -0
- package/lib.commonjs/hash/namehash.js +88 -0
- package/lib.commonjs/hash/namehash.js.map +1 -0
- package/lib.commonjs/hash/solidity.d.ts +31 -0
- package/lib.commonjs/hash/solidity.d.ts.map +1 -0
- package/lib.commonjs/hash/solidity.js +109 -0
- package/lib.commonjs/hash/solidity.js.map +1 -0
- package/lib.commonjs/hash/typed-data.d.ts +150 -0
- package/lib.commonjs/hash/typed-data.d.ts.map +1 -0
- package/lib.commonjs/hash/typed-data.js +493 -0
- package/lib.commonjs/hash/typed-data.js.map +1 -0
- package/lib.commonjs/index.d.ts +11 -0
- package/lib.commonjs/index.d.ts.map +1 -0
- package/lib.commonjs/index.js +15 -0
- package/lib.commonjs/index.js.map +1 -0
- package/lib.commonjs/package.json +12 -0
- package/lib.commonjs/providers/abstract-provider.d.ts +449 -0
- package/lib.commonjs/providers/abstract-provider.d.ts.map +1 -0
- package/lib.commonjs/providers/abstract-provider.js +1382 -0
- package/lib.commonjs/providers/abstract-provider.js.map +1 -0
- package/lib.commonjs/providers/abstract-signer.d.ts +67 -0
- package/lib.commonjs/providers/abstract-signer.d.ts.map +1 -0
- package/lib.commonjs/providers/abstract-signer.js +228 -0
- package/lib.commonjs/providers/abstract-signer.js.map +1 -0
- package/lib.commonjs/providers/community.d.ts +29 -0
- package/lib.commonjs/providers/community.d.ts.map +1 -0
- package/lib.commonjs/providers/community.js +40 -0
- package/lib.commonjs/providers/community.js.map +1 -0
- package/lib.commonjs/providers/contracts.d.ts +36 -0
- package/lib.commonjs/providers/contracts.d.ts.map +1 -0
- package/lib.commonjs/providers/contracts.js +3 -0
- package/lib.commonjs/providers/contracts.js.map +1 -0
- package/lib.commonjs/providers/default-provider.d.ts +5 -0
- package/lib.commonjs/providers/default-provider.d.ts.map +1 -0
- package/lib.commonjs/providers/default-provider.js +138 -0
- package/lib.commonjs/providers/default-provider.js.map +1 -0
- package/lib.commonjs/providers/ens-resolver.d.ts +147 -0
- package/lib.commonjs/providers/ens-resolver.d.ts.map +1 -0
- package/lib.commonjs/providers/ens-resolver.js +502 -0
- package/lib.commonjs/providers/ens-resolver.js.map +1 -0
- package/lib.commonjs/providers/format.d.ts +15 -0
- package/lib.commonjs/providers/format.d.ts.map +1 -0
- package/lib.commonjs/providers/format.js +273 -0
- package/lib.commonjs/providers/format.js.map +1 -0
- package/lib.commonjs/providers/formatting.d.ts +268 -0
- package/lib.commonjs/providers/formatting.d.ts.map +1 -0
- package/lib.commonjs/providers/formatting.js +10 -0
- package/lib.commonjs/providers/formatting.js.map +1 -0
- package/lib.commonjs/providers/index.d.ts +47 -0
- package/lib.commonjs/providers/index.d.ts.map +1 -0
- package/lib.commonjs/providers/index.js +80 -0
- package/lib.commonjs/providers/index.js.map +1 -0
- package/lib.commonjs/providers/network.d.ts +99 -0
- package/lib.commonjs/providers/network.d.ts.map +1 -0
- package/lib.commonjs/providers/network.js +378 -0
- package/lib.commonjs/providers/network.js.map +1 -0
- package/lib.commonjs/providers/pagination.d.ts +6 -0
- package/lib.commonjs/providers/pagination.d.ts.map +1 -0
- package/lib.commonjs/providers/pagination.js +3 -0
- package/lib.commonjs/providers/pagination.js.map +1 -0
- package/lib.commonjs/providers/plugin-fallback.d.ts +13 -0
- package/lib.commonjs/providers/plugin-fallback.d.ts.map +1 -0
- package/lib.commonjs/providers/plugin-fallback.js +31 -0
- package/lib.commonjs/providers/plugin-fallback.js.map +1 -0
- package/lib.commonjs/providers/plugins-network.d.ts +170 -0
- package/lib.commonjs/providers/plugins-network.d.ts.map +1 -0
- package/lib.commonjs/providers/plugins-network.js +216 -0
- package/lib.commonjs/providers/plugins-network.js.map +1 -0
- package/lib.commonjs/providers/provider-alchemy.d.ts +31 -0
- package/lib.commonjs/providers/provider-alchemy.d.ts.map +1 -0
- package/lib.commonjs/providers/provider-alchemy.js +120 -0
- package/lib.commonjs/providers/provider-alchemy.js.map +1 -0
- package/lib.commonjs/providers/provider-ankr.d.ts +51 -0
- package/lib.commonjs/providers/provider-ankr.d.ts.map +1 -0
- package/lib.commonjs/providers/provider-ankr.js +107 -0
- package/lib.commonjs/providers/provider-ankr.js.map +1 -0
- package/lib.commonjs/providers/provider-browser.d.ts +56 -0
- package/lib.commonjs/providers/provider-browser.d.ts.map +1 -0
- package/lib.commonjs/providers/provider-browser.js +102 -0
- package/lib.commonjs/providers/provider-browser.js.map +1 -0
- package/lib.commonjs/providers/provider-cloudflare.d.ts +14 -0
- package/lib.commonjs/providers/provider-cloudflare.d.ts.map +1 -0
- package/lib.commonjs/providers/provider-cloudflare.js +26 -0
- package/lib.commonjs/providers/provider-cloudflare.js.map +1 -0
- package/lib.commonjs/providers/provider-etherscan.d.ts +141 -0
- package/lib.commonjs/providers/provider-etherscan.d.ts.map +1 -0
- package/lib.commonjs/providers/provider-etherscan.js +522 -0
- package/lib.commonjs/providers/provider-etherscan.js.map +1 -0
- package/lib.commonjs/providers/provider-fallback.d.ts +115 -0
- package/lib.commonjs/providers/provider-fallback.d.ts.map +1 -0
- package/lib.commonjs/providers/provider-fallback.js +573 -0
- package/lib.commonjs/providers/provider-fallback.js.map +1 -0
- package/lib.commonjs/providers/provider-infura.d.ts +90 -0
- package/lib.commonjs/providers/provider-infura.d.ts.map +1 -0
- package/lib.commonjs/providers/provider-infura.js +176 -0
- package/lib.commonjs/providers/provider-infura.js.map +1 -0
- package/lib.commonjs/providers/provider-ipcsocket-browser.d.ts +3 -0
- package/lib.commonjs/providers/provider-ipcsocket-browser.d.ts.map +1 -0
- package/lib.commonjs/providers/provider-ipcsocket-browser.js +6 -0
- package/lib.commonjs/providers/provider-ipcsocket-browser.js.map +1 -0
- package/lib.commonjs/providers/provider-ipcsocket.d.ts +20 -0
- package/lib.commonjs/providers/provider-ipcsocket.d.ts.map +1 -0
- package/lib.commonjs/providers/provider-ipcsocket.js +69 -0
- package/lib.commonjs/providers/provider-ipcsocket.js.map +1 -0
- package/lib.commonjs/providers/provider-jsonrpc.d.ts +350 -0
- package/lib.commonjs/providers/provider-jsonrpc.d.ts.map +1 -0
- package/lib.commonjs/providers/provider-jsonrpc.js +880 -0
- package/lib.commonjs/providers/provider-jsonrpc.js.map +1 -0
- package/lib.commonjs/providers/provider-pocket.d.ts +54 -0
- package/lib.commonjs/providers/provider-pocket.d.ts.map +1 -0
- package/lib.commonjs/providers/provider-pocket.js +109 -0
- package/lib.commonjs/providers/provider-pocket.js.map +1 -0
- package/lib.commonjs/providers/provider-quicknode.d.ts +50 -0
- package/lib.commonjs/providers/provider-quicknode.d.ts.map +1 -0
- package/lib.commonjs/providers/provider-quicknode.js +109 -0
- package/lib.commonjs/providers/provider-quicknode.js.map +1 -0
- package/lib.commonjs/providers/provider-socket.d.ts +113 -0
- package/lib.commonjs/providers/provider-socket.d.ts.map +1 -0
- package/lib.commonjs/providers/provider-socket.js +293 -0
- package/lib.commonjs/providers/provider-socket.js.map +1 -0
- package/lib.commonjs/providers/provider-websocket.d.ts +36 -0
- package/lib.commonjs/providers/provider-websocket.d.ts.map +1 -0
- package/lib.commonjs/providers/provider-websocket.js +80 -0
- package/lib.commonjs/providers/provider-websocket.js.map +1 -0
- package/lib.commonjs/providers/provider.d.ts +1131 -0
- package/lib.commonjs/providers/provider.d.ts.map +1 -0
- package/lib.commonjs/providers/provider.js +1226 -0
- package/lib.commonjs/providers/provider.js.map +1 -0
- package/lib.commonjs/providers/signer-noncemanager.d.ts +38 -0
- package/lib.commonjs/providers/signer-noncemanager.d.ts.map +1 -0
- package/lib.commonjs/providers/signer-noncemanager.js +78 -0
- package/lib.commonjs/providers/signer-noncemanager.js.map +1 -0
- package/lib.commonjs/providers/signer.d.ts +118 -0
- package/lib.commonjs/providers/signer.d.ts.map +1 -0
- package/lib.commonjs/providers/signer.js +3 -0
- package/lib.commonjs/providers/signer.js.map +1 -0
- package/lib.commonjs/providers/subscriber-connection.d.ts +25 -0
- package/lib.commonjs/providers/subscriber-connection.d.ts.map +1 -0
- package/lib.commonjs/providers/subscriber-connection.js +56 -0
- package/lib.commonjs/providers/subscriber-connection.js.map +1 -0
- package/lib.commonjs/providers/subscriber-filterid.d.ts +64 -0
- package/lib.commonjs/providers/subscriber-filterid.d.ts.map +1 -0
- package/lib.commonjs/providers/subscriber-filterid.js +177 -0
- package/lib.commonjs/providers/subscriber-filterid.js.map +1 -0
- package/lib.commonjs/providers/subscriber-polling.d.ts +94 -0
- package/lib.commonjs/providers/subscriber-polling.d.ts.map +1 -0
- package/lib.commonjs/providers/subscriber-polling.js +274 -0
- package/lib.commonjs/providers/subscriber-polling.js.map +1 -0
- package/lib.commonjs/providers/ws-browser.d.ts +3 -0
- package/lib.commonjs/providers/ws-browser.d.ts.map +1 -0
- package/lib.commonjs/providers/ws-browser.js +19 -0
- package/lib.commonjs/providers/ws-browser.js.map +1 -0
- package/lib.commonjs/providers/ws.d.ts +2 -0
- package/lib.commonjs/providers/ws.d.ts.map +1 -0
- package/lib.commonjs/providers/ws.js +6 -0
- package/lib.commonjs/providers/ws.js.map +1 -0
- package/lib.commonjs/transaction/accesslist.d.ts +6 -0
- package/lib.commonjs/transaction/accesslist.d.ts.map +1 -0
- package/lib.commonjs/transaction/accesslist.js +41 -0
- package/lib.commonjs/transaction/accesslist.js.map +1 -0
- package/lib.commonjs/transaction/address.d.ts +15 -0
- package/lib.commonjs/transaction/address.d.ts.map +1 -0
- package/lib.commonjs/transaction/address.js +30 -0
- package/lib.commonjs/transaction/address.js.map +1 -0
- package/lib.commonjs/transaction/index.d.ts +25 -0
- package/lib.commonjs/transaction/index.d.ts.map +1 -0
- package/lib.commonjs/transaction/index.js +17 -0
- package/lib.commonjs/transaction/index.js.map +1 -0
- package/lib.commonjs/transaction/transaction.d.ts +269 -0
- package/lib.commonjs/transaction/transaction.d.ts.map +1 -0
- package/lib.commonjs/transaction/transaction.js +708 -0
- package/lib.commonjs/transaction/transaction.js.map +1 -0
- package/lib.commonjs/utils/base58.d.ts +23 -0
- package/lib.commonjs/utils/base58.d.ts.map +1 -0
- package/lib.commonjs/utils/base58.js +60 -0
- package/lib.commonjs/utils/base58.js.map +1 -0
- package/lib.commonjs/utils/base64-browser.d.ts +4 -0
- package/lib.commonjs/utils/base64-browser.d.ts.map +1 -0
- package/lib.commonjs/utils/base64-browser.js +24 -0
- package/lib.commonjs/utils/base64-browser.js.map +1 -0
- package/lib.commonjs/utils/base64.d.ts +40 -0
- package/lib.commonjs/utils/base64.d.ts.map +1 -0
- package/lib.commonjs/utils/base64.js +58 -0
- package/lib.commonjs/utils/base64.js.map +1 -0
- package/lib.commonjs/utils/data.d.ts +93 -0
- package/lib.commonjs/utils/data.d.ts.map +1 -0
- package/lib.commonjs/utils/data.js +184 -0
- package/lib.commonjs/utils/data.js.map +1 -0
- package/lib.commonjs/utils/errors.d.ts +505 -0
- package/lib.commonjs/utils/errors.d.ts.map +1 -0
- package/lib.commonjs/utils/errors.js +228 -0
- package/lib.commonjs/utils/errors.js.map +1 -0
- package/lib.commonjs/utils/events.d.ts +77 -0
- package/lib.commonjs/utils/events.d.ts.map +1 -0
- package/lib.commonjs/utils/events.js +46 -0
- package/lib.commonjs/utils/events.js.map +1 -0
- package/lib.commonjs/utils/fetch.d.ts +334 -0
- package/lib.commonjs/utils/fetch.d.ts.map +1 -0
- package/lib.commonjs/utils/fetch.js +804 -0
- package/lib.commonjs/utils/fetch.js.map +1 -0
- package/lib.commonjs/utils/fixednumber.d.ts +252 -0
- package/lib.commonjs/utils/fixednumber.d.ts.map +1 -0
- package/lib.commonjs/utils/fixednumber.js +530 -0
- package/lib.commonjs/utils/fixednumber.js.map +1 -0
- package/lib.commonjs/utils/geturl-browser.d.ts +21 -0
- package/lib.commonjs/utils/geturl-browser.d.ts.map +1 -0
- package/lib.commonjs/utils/geturl-browser.js +41 -0
- package/lib.commonjs/utils/geturl-browser.js.map +1 -0
- package/lib.commonjs/utils/geturl.d.ts +6 -0
- package/lib.commonjs/utils/geturl.d.ts.map +1 -0
- package/lib.commonjs/utils/geturl.js +83 -0
- package/lib.commonjs/utils/geturl.js.map +1 -0
- package/lib.commonjs/utils/index.d.ts +30 -0
- package/lib.commonjs/utils/index.d.ts.map +1 -0
- package/lib.commonjs/utils/index.js +78 -0
- package/lib.commonjs/utils/index.js.map +1 -0
- package/lib.commonjs/utils/maths.d.ts +66 -0
- package/lib.commonjs/utils/maths.d.ts.map +1 -0
- package/lib.commonjs/utils/maths.js +229 -0
- package/lib.commonjs/utils/maths.js.map +1 -0
- package/lib.commonjs/utils/properties.d.ts +23 -0
- package/lib.commonjs/utils/properties.d.ts.map +1 -0
- package/lib.commonjs/utils/properties.js +59 -0
- package/lib.commonjs/utils/properties.js.map +1 -0
- package/lib.commonjs/utils/rlp-decode.d.ts +6 -0
- package/lib.commonjs/utils/rlp-decode.d.ts.map +1 -0
- package/lib.commonjs/utils/rlp-decode.js +83 -0
- package/lib.commonjs/utils/rlp-decode.js.map +1 -0
- package/lib.commonjs/utils/rlp-encode.d.ts +6 -0
- package/lib.commonjs/utils/rlp-encode.d.ts.map +1 -0
- package/lib.commonjs/utils/rlp-encode.js +53 -0
- package/lib.commonjs/utils/rlp-encode.js.map +1 -0
- package/lib.commonjs/utils/rlp.d.ts +13 -0
- package/lib.commonjs/utils/rlp.d.ts.map +1 -0
- package/lib.commonjs/utils/rlp.js +14 -0
- package/lib.commonjs/utils/rlp.js.map +1 -0
- package/lib.commonjs/utils/units.d.ts +24 -0
- package/lib.commonjs/utils/units.d.ts.map +1 -0
- package/lib.commonjs/utils/units.js +90 -0
- package/lib.commonjs/utils/units.js.map +1 -0
- package/lib.commonjs/utils/utf8.d.ts +96 -0
- package/lib.commonjs/utils/utf8.d.ts.map +1 -0
- package/lib.commonjs/utils/utf8.js +226 -0
- package/lib.commonjs/utils/utf8.js.map +1 -0
- package/lib.commonjs/utils/uuid.d.ts +8 -0
- package/lib.commonjs/utils/uuid.d.ts.map +1 -0
- package/lib.commonjs/utils/uuid.js +34 -0
- package/lib.commonjs/utils/uuid.js.map +1 -0
- package/lib.commonjs/wallet/base-wallet.d.ts +48 -0
- package/lib.commonjs/wallet/base-wallet.d.ts.map +1 -0
- package/lib.commonjs/wallet/base-wallet.js +105 -0
- package/lib.commonjs/wallet/base-wallet.js.map +1 -0
- package/lib.commonjs/wallet/hdwallet.d.ts +248 -0
- package/lib.commonjs/wallet/hdwallet.d.ts.map +1 -0
- package/lib.commonjs/wallet/hdwallet.js +505 -0
- package/lib.commonjs/wallet/hdwallet.js.map +1 -0
- package/lib.commonjs/wallet/index.d.ts +27 -0
- package/lib.commonjs/wallet/index.d.ts.map +1 -0
- package/lib.commonjs/wallet/index.js +43 -0
- package/lib.commonjs/wallet/index.js.map +1 -0
- package/lib.commonjs/wallet/json-crowdsale.d.ts +27 -0
- package/lib.commonjs/wallet/json-crowdsale.d.ts.map +1 -0
- package/lib.commonjs/wallet/json-crowdsale.js +60 -0
- package/lib.commonjs/wallet/json-crowdsale.js.map +1 -0
- package/lib.commonjs/wallet/json-keystore.d.ts +89 -0
- package/lib.commonjs/wallet/json-keystore.d.ts.map +1 -0
- package/lib.commonjs/wallet/json-keystore.js +295 -0
- package/lib.commonjs/wallet/json-keystore.js.map +1 -0
- package/lib.commonjs/wallet/mnemonic.d.ts +65 -0
- package/lib.commonjs/wallet/mnemonic.d.ts.map +1 -0
- package/lib.commonjs/wallet/mnemonic.js +169 -0
- package/lib.commonjs/wallet/mnemonic.js.map +1 -0
- package/lib.commonjs/wallet/utils.d.ts +8 -0
- package/lib.commonjs/wallet/utils.d.ts.map +1 -0
- package/lib.commonjs/wallet/utils.js +149 -0
- package/lib.commonjs/wallet/utils.js.map +1 -0
- package/lib.commonjs/wallet/wallet.d.ts +71 -0
- package/lib.commonjs/wallet/wallet.d.ts.map +1 -0
- package/lib.commonjs/wallet/wallet.js +148 -0
- package/lib.commonjs/wallet/wallet.js.map +1 -0
- package/lib.commonjs/wordlists/bit-reader.d.ts +5 -0
- package/lib.commonjs/wordlists/bit-reader.d.ts.map +1 -0
- package/lib.commonjs/wordlists/bit-reader.js +36 -0
- package/lib.commonjs/wordlists/bit-reader.js.map +1 -0
- package/lib.commonjs/wordlists/decode-owl.d.ts +9 -0
- package/lib.commonjs/wordlists/decode-owl.d.ts.map +1 -0
- package/lib.commonjs/wordlists/decode-owl.js +60 -0
- package/lib.commonjs/wordlists/decode-owl.js.map +1 -0
- package/lib.commonjs/wordlists/decode-owla.d.ts +5 -0
- package/lib.commonjs/wordlists/decode-owla.d.ts.map +1 -0
- package/lib.commonjs/wordlists/decode-owla.js +32 -0
- package/lib.commonjs/wordlists/decode-owla.js.map +1 -0
- package/lib.commonjs/wordlists/generation/encode-latin.d.ts +25 -0
- package/lib.commonjs/wordlists/generation/encode-latin.d.ts.map +1 -0
- package/lib.commonjs/wordlists/generation/encode-latin.js +351 -0
- package/lib.commonjs/wordlists/generation/encode-latin.js.map +1 -0
- package/lib.commonjs/wordlists/index.d.ts +25 -0
- package/lib.commonjs/wordlists/index.d.ts.map +1 -0
- package/lib.commonjs/wordlists/index.js +33 -0
- package/lib.commonjs/wordlists/index.js.map +1 -0
- package/lib.commonjs/wordlists/lang-cz.d.ts +23 -0
- package/lib.commonjs/wordlists/lang-cz.d.ts.map +1 -0
- package/lib.commonjs/wordlists/lang-cz.js +35 -0
- package/lib.commonjs/wordlists/lang-cz.js.map +1 -0
- package/lib.commonjs/wordlists/lang-en.d.ts +23 -0
- package/lib.commonjs/wordlists/lang-en.d.ts.map +1 -0
- package/lib.commonjs/wordlists/lang-en.js +35 -0
- package/lib.commonjs/wordlists/lang-en.js.map +1 -0
- package/lib.commonjs/wordlists/lang-es.d.ts +23 -0
- package/lib.commonjs/wordlists/lang-es.d.ts.map +1 -0
- package/lib.commonjs/wordlists/lang-es.js +36 -0
- package/lib.commonjs/wordlists/lang-es.js.map +1 -0
- package/lib.commonjs/wordlists/lang-fr.d.ts +23 -0
- package/lib.commonjs/wordlists/lang-fr.d.ts.map +1 -0
- package/lib.commonjs/wordlists/lang-fr.js +36 -0
- package/lib.commonjs/wordlists/lang-fr.js.map +1 -0
- package/lib.commonjs/wordlists/lang-it.d.ts +23 -0
- package/lib.commonjs/wordlists/lang-it.d.ts.map +1 -0
- package/lib.commonjs/wordlists/lang-it.js +35 -0
- package/lib.commonjs/wordlists/lang-it.js.map +1 -0
- package/lib.commonjs/wordlists/lang-ja.d.ts +27 -0
- package/lib.commonjs/wordlists/lang-ja.d.ts.map +1 -0
- package/lib.commonjs/wordlists/lang-ja.js +158 -0
- package/lib.commonjs/wordlists/lang-ja.js.map +1 -0
- package/lib.commonjs/wordlists/lang-ko.d.ts +25 -0
- package/lib.commonjs/wordlists/lang-ko.d.ts.map +1 -0
- package/lib.commonjs/wordlists/lang-ko.js +93 -0
- package/lib.commonjs/wordlists/lang-ko.js.map +1 -0
- package/lib.commonjs/wordlists/lang-pt.d.ts +23 -0
- package/lib.commonjs/wordlists/lang-pt.d.ts.map +1 -0
- package/lib.commonjs/wordlists/lang-pt.js +35 -0
- package/lib.commonjs/wordlists/lang-pt.js.map +1 -0
- package/lib.commonjs/wordlists/lang-zh.d.ts +32 -0
- package/lib.commonjs/wordlists/lang-zh.d.ts.map +1 -0
- package/lib.commonjs/wordlists/lang-zh.js +96 -0
- package/lib.commonjs/wordlists/lang-zh.js.map +1 -0
- package/lib.commonjs/wordlists/wordlist-owl.d.ts +32 -0
- package/lib.commonjs/wordlists/wordlist-owl.d.ts.map +1 -0
- package/lib.commonjs/wordlists/wordlist-owl.js +70 -0
- package/lib.commonjs/wordlists/wordlist-owl.js.map +1 -0
- package/lib.commonjs/wordlists/wordlist-owla.d.ts +30 -0
- package/lib.commonjs/wordlists/wordlist-owla.d.ts.map +1 -0
- package/lib.commonjs/wordlists/wordlist-owla.js +40 -0
- package/lib.commonjs/wordlists/wordlist-owla.js.map +1 -0
- package/lib.commonjs/wordlists/wordlist.d.ts +47 -0
- package/lib.commonjs/wordlists/wordlist.d.ts.map +1 -0
- package/lib.commonjs/wordlists/wordlist.js +46 -0
- package/lib.commonjs/wordlists/wordlist.js.map +1 -0
- package/lib.commonjs/wordlists/wordlists-browser.d.ts +3 -0
- package/lib.commonjs/wordlists/wordlists-browser.d.ts.map +1 -0
- package/lib.commonjs/wordlists/wordlists-browser.js +8 -0
- package/lib.commonjs/wordlists/wordlists-browser.js.map +1 -0
- package/lib.commonjs/wordlists/wordlists-extra.d.ts +9 -0
- package/lib.commonjs/wordlists/wordlists-extra.d.ts.map +1 -0
- package/lib.commonjs/wordlists/wordlists-extra.js +20 -0
- package/lib.commonjs/wordlists/wordlists-extra.js.map +1 -0
- package/lib.commonjs/wordlists/wordlists.d.ts +16 -0
- package/lib.commonjs/wordlists/wordlists.d.ts.map +1 -0
- package/lib.commonjs/wordlists/wordlists.js +38 -0
- package/lib.commonjs/wordlists/wordlists.js.map +1 -0
- package/lib.esm/README.md +16 -0
- package/lib.esm/_version.d.ts +5 -0
- package/lib.esm/_version.d.ts.map +1 -0
- package/lib.esm/_version.js +6 -0
- package/lib.esm/_version.js.map +1 -0
- package/lib.esm/abi/abi-coder.d.ts +60 -0
- package/lib.esm/abi/abi-coder.d.ts.map +1 -0
- package/lib.esm/abi/abi-coder.js +201 -0
- package/lib.esm/abi/abi-coder.js.map +1 -0
- package/lib.esm/abi/bytes32.d.ts +15 -0
- package/lib.esm/abi/bytes32.d.ts.map +1 -0
- package/lib.esm/abi/bytes32.js +40 -0
- package/lib.esm/abi/bytes32.js.map +1 -0
- package/lib.esm/abi/coders/abstract-coder.d.ts +121 -0
- package/lib.esm/abi/coders/abstract-coder.d.ts.map +1 -0
- package/lib.esm/abi/coders/abstract-coder.js +399 -0
- package/lib.esm/abi/coders/abstract-coder.js.map +1 -0
- package/lib.esm/abi/coders/address.d.ts +13 -0
- package/lib.esm/abi/coders/address.d.ts.map +1 -0
- package/lib.esm/abi/coders/address.js +29 -0
- package/lib.esm/abi/coders/address.js.map +1 -0
- package/lib.esm/abi/coders/anonymous.d.ts +15 -0
- package/lib.esm/abi/coders/anonymous.d.ts.map +1 -0
- package/lib.esm/abi/coders/anonymous.js +23 -0
- package/lib.esm/abi/coders/anonymous.js.map +1 -0
- package/lib.esm/abi/coders/array.d.ts +25 -0
- package/lib.esm/abi/coders/array.d.ts.map +1 -0
- package/lib.esm/abi/coders/array.js +159 -0
- package/lib.esm/abi/coders/array.js.map +1 -0
- package/lib.esm/abi/coders/boolean.d.ts +13 -0
- package/lib.esm/abi/coders/boolean.d.ts.map +1 -0
- package/lib.esm/abi/coders/boolean.js +21 -0
- package/lib.esm/abi/coders/boolean.js.map +1 -0
- package/lib.esm/abi/coders/bytes.d.ts +19 -0
- package/lib.esm/abi/coders/bytes.d.ts.map +1 -0
- package/lib.esm/abi/coders/bytes.js +34 -0
- package/lib.esm/abi/coders/bytes.js.map +1 -0
- package/lib.esm/abi/coders/fixed-bytes.d.ts +15 -0
- package/lib.esm/abi/coders/fixed-bytes.d.ts.map +1 -0
- package/lib.esm/abi/coders/fixed-bytes.js +28 -0
- package/lib.esm/abi/coders/fixed-bytes.js.map +1 -0
- package/lib.esm/abi/coders/null.d.ts +12 -0
- package/lib.esm/abi/coders/null.d.ts.map +1 -0
- package/lib.esm/abi/coders/null.js +24 -0
- package/lib.esm/abi/coders/null.js.map +1 -0
- package/lib.esm/abi/coders/number.d.ts +16 -0
- package/lib.esm/abi/coders/number.d.ts.map +1 -0
- package/lib.esm/abi/coders/number.js +45 -0
- package/lib.esm/abi/coders/number.js.map +1 -0
- package/lib.esm/abi/coders/string.d.ts +13 -0
- package/lib.esm/abi/coders/string.d.ts.map +1 -0
- package/lib.esm/abi/coders/string.js +21 -0
- package/lib.esm/abi/coders/string.js.map +1 -0
- package/lib.esm/abi/coders/tuple.d.ts +16 -0
- package/lib.esm/abi/coders/tuple.d.ts.map +1 -0
- package/lib.esm/abi/coders/tuple.js +63 -0
- package/lib.esm/abi/coders/tuple.js.map +1 -0
- package/lib.esm/abi/fragments.d.ts +466 -0
- package/lib.esm/abi/fragments.d.ts.map +1 -0
- package/lib.esm/abi/fragments.js +1319 -0
- package/lib.esm/abi/fragments.js.map +1 -0
- package/lib.esm/abi/index.d.ts +18 -0
- package/lib.esm/abi/index.d.ts.map +1 -0
- package/lib.esm/abi/index.js +17 -0
- package/lib.esm/abi/index.js.map +1 -0
- package/lib.esm/abi/interface.d.ts +382 -0
- package/lib.esm/abi/interface.d.ts.map +1 -0
- package/lib.esm/abi/interface.js +1097 -0
- package/lib.esm/abi/interface.js.map +1 -0
- package/lib.esm/abi/typed.d.ts +570 -0
- package/lib.esm/abi/typed.d.ts.map +1 -0
- package/lib.esm/abi/typed.js +602 -0
- package/lib.esm/abi/typed.js.map +1 -0
- package/lib.esm/address/address.d.ts +56 -0
- package/lib.esm/address/address.d.ts.map +1 -0
- package/lib.esm/address/address.js +156 -0
- package/lib.esm/address/address.js.map +1 -0
- package/lib.esm/address/checks.d.ts +81 -0
- package/lib.esm/address/checks.d.ts.map +1 -0
- package/lib.esm/address/checks.js +114 -0
- package/lib.esm/address/checks.js.map +1 -0
- package/lib.esm/address/contract-address.d.ts +48 -0
- package/lib.esm/address/contract-address.d.ts.map +1 -0
- package/lib.esm/address/contract-address.js +69 -0
- package/lib.esm/address/contract-address.js.map +1 -0
- package/lib.esm/address/index.d.ts +49 -0
- package/lib.esm/address/index.d.ts.map +1 -0
- package/lib.esm/address/index.js +19 -0
- package/lib.esm/address/index.js.map +1 -0
- package/lib.esm/constants/addresses.d.ts +7 -0
- package/lib.esm/constants/addresses.d.ts.map +1 -0
- package/lib.esm/constants/addresses.js +7 -0
- package/lib.esm/constants/addresses.js.map +1 -0
- package/lib.esm/constants/hashes.d.ts +7 -0
- package/lib.esm/constants/hashes.d.ts.map +1 -0
- package/lib.esm/constants/hashes.js +7 -0
- package/lib.esm/constants/hashes.js.map +1 -0
- package/lib.esm/constants/index.d.ts +10 -0
- package/lib.esm/constants/index.d.ts.map +1 -0
- package/lib.esm/constants/index.js +10 -0
- package/lib.esm/constants/index.js.map +1 -0
- package/lib.esm/constants/numbers.d.ts +31 -0
- package/lib.esm/constants/numbers.d.ts.map +1 -0
- package/lib.esm/constants/numbers.js +31 -0
- package/lib.esm/constants/numbers.js.map +1 -0
- package/lib.esm/constants/strings.d.ts +13 -0
- package/lib.esm/constants/strings.d.ts.map +1 -0
- package/lib.esm/constants/strings.js +14 -0
- package/lib.esm/constants/strings.js.map +1 -0
- package/lib.esm/contract/contract.d.ts +168 -0
- package/lib.esm/contract/contract.d.ts.map +1 -0
- package/lib.esm/contract/contract.js +936 -0
- package/lib.esm/contract/contract.js.map +1 -0
- package/lib.esm/contract/factory.d.ts +62 -0
- package/lib.esm/contract/factory.d.ts.map +1 -0
- package/lib.esm/contract/factory.js +112 -0
- package/lib.esm/contract/factory.js.map +1 -0
- package/lib.esm/contract/index.d.ts +13 -0
- package/lib.esm/contract/index.d.ts.map +1 -0
- package/lib.esm/contract/index.js +12 -0
- package/lib.esm/contract/index.js.map +1 -0
- package/lib.esm/contract/types.d.ts +193 -0
- package/lib.esm/contract/types.d.ts.map +1 -0
- package/lib.esm/contract/types.js +5 -0
- package/lib.esm/contract/types.js.map +1 -0
- package/lib.esm/contract/wrappers.d.ts +143 -0
- package/lib.esm/contract/wrappers.d.ts.map +1 -0
- package/lib.esm/contract/wrappers.js +177 -0
- package/lib.esm/contract/wrappers.js.map +1 -0
- package/lib.esm/crypto/crypto-browser.d.ts +15 -0
- package/lib.esm/crypto/crypto-browser.d.ts.map +1 -0
- package/lib.esm/crypto/crypto-browser.js +48 -0
- package/lib.esm/crypto/crypto-browser.js.map +1 -0
- package/lib.esm/crypto/crypto.d.ts +2 -0
- package/lib.esm/crypto/crypto.d.ts.map +1 -0
- package/lib.esm/crypto/crypto.js +2 -0
- package/lib.esm/crypto/crypto.js.map +1 -0
- package/lib.esm/crypto/hmac.d.ts +25 -0
- package/lib.esm/crypto/hmac.d.ts.map +1 -0
- package/lib.esm/crypto/hmac.js +47 -0
- package/lib.esm/crypto/hmac.js.map +1 -0
- package/lib.esm/crypto/index.d.ts +25 -0
- package/lib.esm/crypto/index.d.ts.map +1 -0
- package/lib.esm/crypto/index.js +36 -0
- package/lib.esm/crypto/index.js.map +1 -0
- package/lib.esm/crypto/keccak.d.ts +35 -0
- package/lib.esm/crypto/keccak.d.ts.map +1 -0
- package/lib.esm/crypto/keccak.js +48 -0
- package/lib.esm/crypto/keccak.js.map +1 -0
- package/lib.esm/crypto/pbkdf2.d.ts +35 -0
- package/lib.esm/crypto/pbkdf2.d.ts.map +1 -0
- package/lib.esm/crypto/pbkdf2.js +49 -0
- package/lib.esm/crypto/pbkdf2.js.map +1 -0
- package/lib.esm/crypto/random.d.ts +14 -0
- package/lib.esm/crypto/random.d.ts.map +1 -0
- package/lib.esm/crypto/random.js +34 -0
- package/lib.esm/crypto/random.js.map +1 -0
- package/lib.esm/crypto/ripemd160.d.ts +25 -0
- package/lib.esm/crypto/ripemd160.d.ts.map +1 -0
- package/lib.esm/crypto/ripemd160.js +38 -0
- package/lib.esm/crypto/ripemd160.js.map +1 -0
- package/lib.esm/crypto/scrypt.d.ts +82 -0
- package/lib.esm/crypto/scrypt.d.ts.map +1 -0
- package/lib.esm/crypto/scrypt.js +99 -0
- package/lib.esm/crypto/scrypt.js.map +1 -0
- package/lib.esm/crypto/sha2.d.ts +47 -0
- package/lib.esm/crypto/sha2.d.ts.map +1 -0
- package/lib.esm/crypto/sha2.js +71 -0
- package/lib.esm/crypto/sha2.js.map +1 -0
- package/lib.esm/crypto/signature.d.ts +158 -0
- package/lib.esm/crypto/signature.d.ts.map +1 -0
- package/lib.esm/crypto/signature.js +301 -0
- package/lib.esm/crypto/signature.js.map +1 -0
- package/lib.esm/crypto/signing-key.d.ts +122 -0
- package/lib.esm/crypto/signing-key.d.ts.map +1 -0
- package/lib.esm/crypto/signing-key.js +173 -0
- package/lib.esm/crypto/signing-key.js.map +1 -0
- package/lib.esm/ethers.d.ts +22 -0
- package/lib.esm/ethers.d.ts.map +1 -0
- package/lib.esm/ethers.js +15 -0
- package/lib.esm/ethers.js.map +1 -0
- package/lib.esm/hash/id.d.ts +13 -0
- package/lib.esm/hash/id.d.ts.map +1 -0
- package/lib.esm/hash/id.js +17 -0
- package/lib.esm/hash/id.js.map +1 -0
- package/lib.esm/hash/index.d.ts +13 -0
- package/lib.esm/hash/index.d.ts.map +1 -0
- package/lib.esm/hash/index.js +12 -0
- package/lib.esm/hash/index.js.map +1 -0
- package/lib.esm/hash/message.d.ts +36 -0
- package/lib.esm/hash/message.d.ts.map +1 -0
- package/lib.esm/hash/message.js +51 -0
- package/lib.esm/hash/message.js.map +1 -0
- package/lib.esm/hash/namehash.d.ts +20 -0
- package/lib.esm/hash/namehash.d.ts.map +1 -0
- package/lib.esm/hash/namehash.js +81 -0
- package/lib.esm/hash/namehash.js.map +1 -0
- package/lib.esm/hash/solidity.d.ts +31 -0
- package/lib.esm/hash/solidity.d.ts.map +1 -0
- package/lib.esm/hash/solidity.js +103 -0
- package/lib.esm/hash/solidity.js.map +1 -0
- package/lib.esm/hash/typed-data.d.ts +150 -0
- package/lib.esm/hash/typed-data.d.ts.map +1 -0
- package/lib.esm/hash/typed-data.js +488 -0
- package/lib.esm/hash/typed-data.js.map +1 -0
- package/lib.esm/index.d.ts +11 -0
- package/lib.esm/index.d.ts.map +1 -0
- package/lib.esm/index.js +11 -0
- package/lib.esm/index.js.map +1 -0
- package/lib.esm/package.json +12 -0
- package/lib.esm/providers/abstract-provider.d.ts +449 -0
- package/lib.esm/providers/abstract-provider.d.ts.map +1 -0
- package/lib.esm/providers/abstract-provider.js +1377 -0
- package/lib.esm/providers/abstract-provider.js.map +1 -0
- package/lib.esm/providers/abstract-signer.d.ts +67 -0
- package/lib.esm/providers/abstract-signer.d.ts.map +1 -0
- package/lib.esm/providers/abstract-signer.js +223 -0
- package/lib.esm/providers/abstract-signer.js.map +1 -0
- package/lib.esm/providers/community.d.ts +29 -0
- package/lib.esm/providers/community.d.ts.map +1 -0
- package/lib.esm/providers/community.js +36 -0
- package/lib.esm/providers/community.js.map +1 -0
- package/lib.esm/providers/contracts.d.ts +36 -0
- package/lib.esm/providers/contracts.d.ts.map +1 -0
- package/lib.esm/providers/contracts.js +2 -0
- package/lib.esm/providers/contracts.js.map +1 -0
- package/lib.esm/providers/default-provider.d.ts +5 -0
- package/lib.esm/providers/default-provider.d.ts.map +1 -0
- package/lib.esm/providers/default-provider.js +134 -0
- package/lib.esm/providers/default-provider.js.map +1 -0
- package/lib.esm/providers/ens-resolver.d.ts +147 -0
- package/lib.esm/providers/ens-resolver.d.ts.map +1 -0
- package/lib.esm/providers/ens-resolver.js +496 -0
- package/lib.esm/providers/ens-resolver.js.map +1 -0
- package/lib.esm/providers/format.d.ts +15 -0
- package/lib.esm/providers/format.d.ts.map +1 -0
- package/lib.esm/providers/format.js +258 -0
- package/lib.esm/providers/format.js.map +1 -0
- package/lib.esm/providers/formatting.d.ts +268 -0
- package/lib.esm/providers/formatting.d.ts.map +1 -0
- package/lib.esm/providers/formatting.js +9 -0
- package/lib.esm/providers/formatting.js.map +1 -0
- package/lib.esm/providers/index.d.ts +47 -0
- package/lib.esm/providers/index.d.ts.map +1 -0
- package/lib.esm/providers/index.js +38 -0
- package/lib.esm/providers/index.js.map +1 -0
- package/lib.esm/providers/network.d.ts +99 -0
- package/lib.esm/providers/network.d.ts.map +1 -0
- package/lib.esm/providers/network.js +374 -0
- package/lib.esm/providers/network.js.map +1 -0
- package/lib.esm/providers/pagination.d.ts +6 -0
- package/lib.esm/providers/pagination.d.ts.map +1 -0
- package/lib.esm/providers/pagination.js +2 -0
- package/lib.esm/providers/pagination.js.map +1 -0
- package/lib.esm/providers/plugin-fallback.d.ts +13 -0
- package/lib.esm/providers/plugin-fallback.d.ts.map +1 -0
- package/lib.esm/providers/plugin-fallback.js +26 -0
- package/lib.esm/providers/plugin-fallback.js.map +1 -0
- package/lib.esm/providers/plugins-network.d.ts +170 -0
- package/lib.esm/providers/plugins-network.d.ts.map +1 -0
- package/lib.esm/providers/plugins-network.js +208 -0
- package/lib.esm/providers/plugins-network.js.map +1 -0
- package/lib.esm/providers/provider-alchemy.d.ts +31 -0
- package/lib.esm/providers/provider-alchemy.d.ts.map +1 -0
- package/lib.esm/providers/provider-alchemy.js +116 -0
- package/lib.esm/providers/provider-alchemy.js.map +1 -0
- package/lib.esm/providers/provider-ankr.d.ts +51 -0
- package/lib.esm/providers/provider-ankr.d.ts.map +1 -0
- package/lib.esm/providers/provider-ankr.js +103 -0
- package/lib.esm/providers/provider-ankr.js.map +1 -0
- package/lib.esm/providers/provider-browser.d.ts +56 -0
- package/lib.esm/providers/provider-browser.d.ts.map +1 -0
- package/lib.esm/providers/provider-browser.js +98 -0
- package/lib.esm/providers/provider-browser.js.map +1 -0
- package/lib.esm/providers/provider-cloudflare.d.ts +14 -0
- package/lib.esm/providers/provider-cloudflare.d.ts.map +1 -0
- package/lib.esm/providers/provider-cloudflare.js +22 -0
- package/lib.esm/providers/provider-cloudflare.js.map +1 -0
- package/lib.esm/providers/provider-etherscan.d.ts +141 -0
- package/lib.esm/providers/provider-etherscan.d.ts.map +1 -0
- package/lib.esm/providers/provider-etherscan.js +517 -0
- package/lib.esm/providers/provider-etherscan.js.map +1 -0
- package/lib.esm/providers/provider-fallback.d.ts +115 -0
- package/lib.esm/providers/provider-fallback.d.ts.map +1 -0
- package/lib.esm/providers/provider-fallback.js +569 -0
- package/lib.esm/providers/provider-fallback.js.map +1 -0
- package/lib.esm/providers/provider-infura.d.ts +90 -0
- package/lib.esm/providers/provider-infura.d.ts.map +1 -0
- package/lib.esm/providers/provider-infura.js +171 -0
- package/lib.esm/providers/provider-infura.js.map +1 -0
- package/lib.esm/providers/provider-ipcsocket-browser.d.ts +3 -0
- package/lib.esm/providers/provider-ipcsocket-browser.d.ts.map +1 -0
- package/lib.esm/providers/provider-ipcsocket-browser.js +3 -0
- package/lib.esm/providers/provider-ipcsocket-browser.js.map +1 -0
- package/lib.esm/providers/provider-ipcsocket.d.ts +20 -0
- package/lib.esm/providers/provider-ipcsocket.d.ts.map +1 -0
- package/lib.esm/providers/provider-ipcsocket.js +65 -0
- package/lib.esm/providers/provider-ipcsocket.js.map +1 -0
- package/lib.esm/providers/provider-jsonrpc.d.ts +350 -0
- package/lib.esm/providers/provider-jsonrpc.d.ts.map +1 -0
- package/lib.esm/providers/provider-jsonrpc.js +873 -0
- package/lib.esm/providers/provider-jsonrpc.js.map +1 -0
- package/lib.esm/providers/provider-pocket.d.ts +54 -0
- package/lib.esm/providers/provider-pocket.d.ts.map +1 -0
- package/lib.esm/providers/provider-pocket.js +105 -0
- package/lib.esm/providers/provider-pocket.js.map +1 -0
- package/lib.esm/providers/provider-quicknode.d.ts +50 -0
- package/lib.esm/providers/provider-quicknode.d.ts.map +1 -0
- package/lib.esm/providers/provider-quicknode.js +105 -0
- package/lib.esm/providers/provider-quicknode.js.map +1 -0
- package/lib.esm/providers/provider-socket.d.ts +113 -0
- package/lib.esm/providers/provider-socket.d.ts.map +1 -0
- package/lib.esm/providers/provider-socket.js +285 -0
- package/lib.esm/providers/provider-socket.js.map +1 -0
- package/lib.esm/providers/provider-websocket.d.ts +36 -0
- package/lib.esm/providers/provider-websocket.d.ts.map +1 -0
- package/lib.esm/providers/provider-websocket.js +76 -0
- package/lib.esm/providers/provider-websocket.js.map +1 -0
- package/lib.esm/providers/provider.d.ts +1131 -0
- package/lib.esm/providers/provider.d.ts.map +1 -0
- package/lib.esm/providers/provider.js +1217 -0
- package/lib.esm/providers/provider.js.map +1 -0
- package/lib.esm/providers/signer-noncemanager.d.ts +38 -0
- package/lib.esm/providers/signer-noncemanager.d.ts.map +1 -0
- package/lib.esm/providers/signer-noncemanager.js +74 -0
- package/lib.esm/providers/signer-noncemanager.js.map +1 -0
- package/lib.esm/providers/signer.d.ts +118 -0
- package/lib.esm/providers/signer.d.ts.map +1 -0
- package/lib.esm/providers/signer.js +2 -0
- package/lib.esm/providers/signer.js.map +1 -0
- package/lib.esm/providers/subscriber-connection.d.ts +25 -0
- package/lib.esm/providers/subscriber-connection.d.ts.map +1 -0
- package/lib.esm/providers/subscriber-connection.js +52 -0
- package/lib.esm/providers/subscriber-connection.js.map +1 -0
- package/lib.esm/providers/subscriber-filterid.d.ts +64 -0
- package/lib.esm/providers/subscriber-filterid.d.ts.map +1 -0
- package/lib.esm/providers/subscriber-filterid.js +171 -0
- package/lib.esm/providers/subscriber-filterid.js.map +1 -0
- package/lib.esm/providers/subscriber-polling.d.ts +94 -0
- package/lib.esm/providers/subscriber-polling.d.ts.map +1 -0
- package/lib.esm/providers/subscriber-polling.js +265 -0
- package/lib.esm/providers/subscriber-polling.js.map +1 -0
- package/lib.esm/providers/ws-browser.d.ts +3 -0
- package/lib.esm/providers/ws-browser.d.ts.map +1 -0
- package/lib.esm/providers/ws-browser.js +16 -0
- package/lib.esm/providers/ws-browser.js.map +1 -0
- package/lib.esm/providers/ws.d.ts +2 -0
- package/lib.esm/providers/ws.d.ts.map +1 -0
- package/lib.esm/providers/ws.js +2 -0
- package/lib.esm/providers/ws.js.map +1 -0
- package/lib.esm/transaction/accesslist.d.ts +6 -0
- package/lib.esm/transaction/accesslist.d.ts.map +1 -0
- package/lib.esm/transaction/accesslist.js +37 -0
- package/lib.esm/transaction/accesslist.js.map +1 -0
- package/lib.esm/transaction/address.d.ts +15 -0
- package/lib.esm/transaction/address.d.ts.map +1 -0
- package/lib.esm/transaction/address.js +25 -0
- package/lib.esm/transaction/address.js.map +1 -0
- package/lib.esm/transaction/index.d.ts +25 -0
- package/lib.esm/transaction/index.d.ts.map +1 -0
- package/lib.esm/transaction/index.js +10 -0
- package/lib.esm/transaction/index.js.map +1 -0
- package/lib.esm/transaction/transaction.d.ts +269 -0
- package/lib.esm/transaction/transaction.d.ts.map +1 -0
- package/lib.esm/transaction/transaction.js +704 -0
- package/lib.esm/transaction/transaction.js.map +1 -0
- package/lib.esm/utils/base58.d.ts +23 -0
- package/lib.esm/utils/base58.d.ts.map +1 -0
- package/lib.esm/utils/base58.js +55 -0
- package/lib.esm/utils/base58.js.map +1 -0
- package/lib.esm/utils/base64-browser.d.ts +4 -0
- package/lib.esm/utils/base64-browser.d.ts.map +1 -0
- package/lib.esm/utils/base64-browser.js +19 -0
- package/lib.esm/utils/base64-browser.js.map +1 -0
- package/lib.esm/utils/base64.d.ts +40 -0
- package/lib.esm/utils/base64.d.ts.map +1 -0
- package/lib.esm/utils/base64.js +53 -0
- package/lib.esm/utils/base64.js.map +1 -0
- package/lib.esm/utils/data.d.ts +93 -0
- package/lib.esm/utils/data.d.ts.map +1 -0
- package/lib.esm/utils/data.js +170 -0
- package/lib.esm/utils/data.js.map +1 -0
- package/lib.esm/utils/errors.d.ts +505 -0
- package/lib.esm/utils/errors.d.ts.map +1 -0
- package/lib.esm/utils/errors.js +217 -0
- package/lib.esm/utils/errors.js.map +1 -0
- package/lib.esm/utils/events.d.ts +77 -0
- package/lib.esm/utils/events.d.ts.map +1 -0
- package/lib.esm/utils/events.js +42 -0
- package/lib.esm/utils/events.js.map +1 -0
- package/lib.esm/utils/fetch.d.ts +334 -0
- package/lib.esm/utils/fetch.d.ts.map +1 -0
- package/lib.esm/utils/fetch.js +798 -0
- package/lib.esm/utils/fetch.js.map +1 -0
- package/lib.esm/utils/fixednumber.d.ts +252 -0
- package/lib.esm/utils/fixednumber.d.ts.map +1 -0
- package/lib.esm/utils/fixednumber.js +526 -0
- package/lib.esm/utils/fixednumber.js.map +1 -0
- package/lib.esm/utils/geturl-browser.d.ts +21 -0
- package/lib.esm/utils/geturl-browser.d.ts.map +1 -0
- package/lib.esm/utils/geturl-browser.js +37 -0
- package/lib.esm/utils/geturl-browser.js.map +1 -0
- package/lib.esm/utils/geturl.d.ts +6 -0
- package/lib.esm/utils/geturl.d.ts.map +1 -0
- package/lib.esm/utils/geturl.js +78 -0
- package/lib.esm/utils/geturl.js.map +1 -0
- package/lib.esm/utils/index.d.ts +30 -0
- package/lib.esm/utils/index.d.ts.map +1 -0
- package/lib.esm/utils/index.js +22 -0
- package/lib.esm/utils/index.js.map +1 -0
- package/lib.esm/utils/maths.d.ts +66 -0
- package/lib.esm/utils/maths.d.ts.map +1 -0
- package/lib.esm/utils/maths.js +215 -0
- package/lib.esm/utils/maths.js.map +1 -0
- package/lib.esm/utils/properties.d.ts +23 -0
- package/lib.esm/utils/properties.d.ts.map +1 -0
- package/lib.esm/utils/properties.js +54 -0
- package/lib.esm/utils/properties.js.map +1 -0
- package/lib.esm/utils/rlp-decode.d.ts +6 -0
- package/lib.esm/utils/rlp-decode.d.ts.map +1 -0
- package/lib.esm/utils/rlp-decode.js +79 -0
- package/lib.esm/utils/rlp-decode.js.map +1 -0
- package/lib.esm/utils/rlp-encode.d.ts +6 -0
- package/lib.esm/utils/rlp-encode.d.ts.map +1 -0
- package/lib.esm/utils/rlp-encode.js +49 -0
- package/lib.esm/utils/rlp-encode.js.map +1 -0
- package/lib.esm/utils/rlp.d.ts +13 -0
- package/lib.esm/utils/rlp.d.ts.map +1 -0
- package/lib.esm/utils/rlp.js +9 -0
- package/lib.esm/utils/rlp.js.map +1 -0
- package/lib.esm/utils/units.d.ts +24 -0
- package/lib.esm/utils/units.d.ts.map +1 -0
- package/lib.esm/utils/units.js +83 -0
- package/lib.esm/utils/units.js.map +1 -0
- package/lib.esm/utils/utf8.d.ts +96 -0
- package/lib.esm/utils/utf8.d.ts.map +1 -0
- package/lib.esm/utils/utf8.js +220 -0
- package/lib.esm/utils/utf8.js.map +1 -0
- package/lib.esm/utils/uuid.d.ts +8 -0
- package/lib.esm/utils/uuid.d.ts.map +1 -0
- package/lib.esm/utils/uuid.js +30 -0
- package/lib.esm/utils/uuid.js.map +1 -0
- package/lib.esm/wallet/base-wallet.d.ts +48 -0
- package/lib.esm/wallet/base-wallet.d.ts.map +1 -0
- package/lib.esm/wallet/base-wallet.js +101 -0
- package/lib.esm/wallet/base-wallet.js.map +1 -0
- package/lib.esm/wallet/hdwallet.d.ts +248 -0
- package/lib.esm/wallet/hdwallet.d.ts.map +1 -0
- package/lib.esm/wallet/hdwallet.js +498 -0
- package/lib.esm/wallet/hdwallet.js.map +1 -0
- package/lib.esm/wallet/index.d.ts +27 -0
- package/lib.esm/wallet/index.d.ts.map +1 -0
- package/lib.esm/wallet/index.js +25 -0
- package/lib.esm/wallet/index.js.map +1 -0
- package/lib.esm/wallet/json-crowdsale.d.ts +27 -0
- package/lib.esm/wallet/json-crowdsale.d.ts.map +1 -0
- package/lib.esm/wallet/json-crowdsale.js +55 -0
- package/lib.esm/wallet/json-crowdsale.js.map +1 -0
- package/lib.esm/wallet/json-keystore.d.ts +89 -0
- package/lib.esm/wallet/json-keystore.d.ts.map +1 -0
- package/lib.esm/wallet/json-keystore.js +287 -0
- package/lib.esm/wallet/json-keystore.js.map +1 -0
- package/lib.esm/wallet/mnemonic.d.ts +65 -0
- package/lib.esm/wallet/mnemonic.d.ts.map +1 -0
- package/lib.esm/wallet/mnemonic.js +165 -0
- package/lib.esm/wallet/mnemonic.js.map +1 -0
- package/lib.esm/wallet/utils.d.ts +8 -0
- package/lib.esm/wallet/utils.d.ts.map +1 -0
- package/lib.esm/wallet/utils.js +142 -0
- package/lib.esm/wallet/utils.js.map +1 -0
- package/lib.esm/wallet/wallet.d.ts +71 -0
- package/lib.esm/wallet/wallet.d.ts.map +1 -0
- package/lib.esm/wallet/wallet.js +144 -0
- package/lib.esm/wallet/wallet.js.map +1 -0
- package/lib.esm/wordlists/bit-reader.d.ts +5 -0
- package/lib.esm/wordlists/bit-reader.d.ts.map +1 -0
- package/lib.esm/wordlists/bit-reader.js +32 -0
- package/lib.esm/wordlists/bit-reader.js.map +1 -0
- package/lib.esm/wordlists/decode-owl.d.ts +9 -0
- package/lib.esm/wordlists/decode-owl.d.ts.map +1 -0
- package/lib.esm/wordlists/decode-owl.js +55 -0
- package/lib.esm/wordlists/decode-owl.js.map +1 -0
- package/lib.esm/wordlists/decode-owla.d.ts +5 -0
- package/lib.esm/wordlists/decode-owla.d.ts.map +1 -0
- package/lib.esm/wordlists/decode-owla.js +28 -0
- package/lib.esm/wordlists/decode-owla.js.map +1 -0
- package/lib.esm/wordlists/generation/encode-latin.d.ts +25 -0
- package/lib.esm/wordlists/generation/encode-latin.d.ts.map +1 -0
- package/lib.esm/wordlists/generation/encode-latin.js +344 -0
- package/lib.esm/wordlists/generation/encode-latin.js.map +1 -0
- package/lib.esm/wordlists/index.d.ts +25 -0
- package/lib.esm/wordlists/index.d.ts.map +1 -0
- package/lib.esm/wordlists/index.js +25 -0
- package/lib.esm/wordlists/index.js.map +1 -0
- package/lib.esm/wordlists/lang-cz.d.ts +23 -0
- package/lib.esm/wordlists/lang-cz.d.ts.map +1 -0
- package/lib.esm/wordlists/lang-cz.js +31 -0
- package/lib.esm/wordlists/lang-cz.js.map +1 -0
- package/lib.esm/wordlists/lang-en.d.ts +23 -0
- package/lib.esm/wordlists/lang-en.d.ts.map +1 -0
- package/lib.esm/wordlists/lang-en.js +31 -0
- package/lib.esm/wordlists/lang-en.js.map +1 -0
- package/lib.esm/wordlists/lang-es.d.ts +23 -0
- package/lib.esm/wordlists/lang-es.d.ts.map +1 -0
- package/lib.esm/wordlists/lang-es.js +32 -0
- package/lib.esm/wordlists/lang-es.js.map +1 -0
- package/lib.esm/wordlists/lang-fr.d.ts +23 -0
- package/lib.esm/wordlists/lang-fr.d.ts.map +1 -0
- package/lib.esm/wordlists/lang-fr.js +32 -0
- package/lib.esm/wordlists/lang-fr.js.map +1 -0
- package/lib.esm/wordlists/lang-it.d.ts +23 -0
- package/lib.esm/wordlists/lang-it.d.ts.map +1 -0
- package/lib.esm/wordlists/lang-it.js +31 -0
- package/lib.esm/wordlists/lang-it.js.map +1 -0
- package/lib.esm/wordlists/lang-ja.d.ts +27 -0
- package/lib.esm/wordlists/lang-ja.d.ts.map +1 -0
- package/lib.esm/wordlists/lang-ja.js +154 -0
- package/lib.esm/wordlists/lang-ja.js.map +1 -0
- package/lib.esm/wordlists/lang-ko.d.ts +25 -0
- package/lib.esm/wordlists/lang-ko.d.ts.map +1 -0
- package/lib.esm/wordlists/lang-ko.js +89 -0
- package/lib.esm/wordlists/lang-ko.js.map +1 -0
- package/lib.esm/wordlists/lang-pt.d.ts +23 -0
- package/lib.esm/wordlists/lang-pt.d.ts.map +1 -0
- package/lib.esm/wordlists/lang-pt.js +31 -0
- package/lib.esm/wordlists/lang-pt.js.map +1 -0
- package/lib.esm/wordlists/lang-zh.d.ts +32 -0
- package/lib.esm/wordlists/lang-zh.d.ts.map +1 -0
- package/lib.esm/wordlists/lang-zh.js +92 -0
- package/lib.esm/wordlists/lang-zh.js.map +1 -0
- package/lib.esm/wordlists/wordlist-owl.d.ts +32 -0
- package/lib.esm/wordlists/wordlist-owl.d.ts.map +1 -0
- package/lib.esm/wordlists/wordlist-owl.js +66 -0
- package/lib.esm/wordlists/wordlist-owl.js.map +1 -0
- package/lib.esm/wordlists/wordlist-owla.d.ts +30 -0
- package/lib.esm/wordlists/wordlist-owla.d.ts.map +1 -0
- package/lib.esm/wordlists/wordlist-owla.js +36 -0
- package/lib.esm/wordlists/wordlist-owla.js.map +1 -0
- package/lib.esm/wordlists/wordlist.d.ts +47 -0
- package/lib.esm/wordlists/wordlist.d.ts.map +1 -0
- package/lib.esm/wordlists/wordlist.js +42 -0
- package/lib.esm/wordlists/wordlist.js.map +1 -0
- package/lib.esm/wordlists/wordlists-browser.d.ts +3 -0
- package/lib.esm/wordlists/wordlists-browser.d.ts.map +1 -0
- package/lib.esm/wordlists/wordlists-browser.js +5 -0
- package/lib.esm/wordlists/wordlists-browser.js.map +1 -0
- package/lib.esm/wordlists/wordlists-extra.d.ts +9 -0
- package/lib.esm/wordlists/wordlists-extra.d.ts.map +1 -0
- package/lib.esm/wordlists/wordlists-extra.js +9 -0
- package/lib.esm/wordlists/wordlists-extra.js.map +1 -0
- package/lib.esm/wordlists/wordlists.d.ts +16 -0
- package/lib.esm/wordlists/wordlists.d.ts.map +1 -0
- package/lib.esm/wordlists/wordlists.js +35 -0
- package/lib.esm/wordlists/wordlists.js.map +1 -0
- package/package.json +135 -6
- package/rollup.config.mjs +50 -0
- package/src.ts/_version.ts +6 -0
- package/src.ts/abi/abi-coder.ts +232 -0
- package/src.ts/abi/bytes32.ts +45 -0
- package/src.ts/abi/coders/abstract-coder.ts +467 -0
- package/src.ts/abi/coders/address.ts +36 -0
- package/src.ts/abi/coders/anonymous.ts +29 -0
- package/src.ts/abi/coders/array.ts +199 -0
- package/src.ts/abi/coders/boolean.ts +27 -0
- package/src.ts/abi/coders/bytes.ts +43 -0
- package/src.ts/abi/coders/fixed-bytes.ts +37 -0
- package/src.ts/abi/coders/null.ts +28 -0
- package/src.ts/abi/coders/number.ts +63 -0
- package/src.ts/abi/coders/string.ts +29 -0
- package/src.ts/abi/coders/tuple.ts +69 -0
- package/src.ts/abi/fragments.ts +1615 -0
- package/src.ts/abi/index.ts +41 -0
- package/src.ts/abi/interface.ts +1266 -0
- package/src.ts/abi/typed.ts +796 -0
- package/src.ts/address/address.ts +173 -0
- package/src.ts/address/checks.ts +123 -0
- package/src.ts/address/contract-address.ts +80 -0
- package/src.ts/address/index.ts +57 -0
- package/src.ts/constants/addresses.ts +8 -0
- package/src.ts/constants/hashes.ts +7 -0
- package/src.ts/constants/index.ts +16 -0
- package/src.ts/constants/numbers.ts +35 -0
- package/src.ts/constants/strings.ts +16 -0
- package/src.ts/contract/contract.ts +1106 -0
- package/src.ts/contract/factory.ts +143 -0
- package/src.ts/contract/index.ts +31 -0
- package/src.ts/contract/types.ts +236 -0
- package/src.ts/contract/wrappers.ts +225 -0
- package/src.ts/crypto/crypto-browser.ts +64 -0
- package/src.ts/crypto/crypto.ts +4 -0
- package/src.ts/crypto/hmac.ts +51 -0
- package/src.ts/crypto/index.ts +59 -0
- package/src.ts/crypto/keccak.ts +54 -0
- package/src.ts/crypto/pbkdf2.ts +55 -0
- package/src.ts/crypto/random.ts +36 -0
- package/src.ts/crypto/ripemd160.ts +43 -0
- package/src.ts/crypto/scrypt.ts +114 -0
- package/src.ts/crypto/sha2.ts +78 -0
- package/src.ts/crypto/signature.ts +363 -0
- package/src.ts/crypto/signing-key.ts +204 -0
- package/src.ts/ethers.ts +210 -0
- package/src.ts/hash/id.ts +17 -0
- package/src.ts/hash/index.ts +16 -0
- package/src.ts/hash/message.ts +51 -0
- package/src.ts/hash/namehash.ts +98 -0
- package/src.ts/hash/solidity.ts +117 -0
- package/src.ts/hash/typed-data.ts +615 -0
- package/src.ts/index.ts +12 -0
- package/src.ts/providers/abstract-provider.ts +1727 -0
- package/src.ts/providers/abstract-signer.ts +288 -0
- package/src.ts/providers/community.ts +49 -0
- package/src.ts/providers/contracts.ts +42 -0
- package/src.ts/providers/default-provider.ts +142 -0
- package/src.ts/providers/ens-resolver.ts +606 -0
- package/src.ts/providers/format.ts +293 -0
- package/src.ts/providers/formatting.ts +356 -0
- package/src.ts/providers/index.ts +132 -0
- package/src.ts/providers/network.ts +450 -0
- package/src.ts/providers/pagination.ts +8 -0
- package/src.ts/providers/plugin-fallback.ts +35 -0
- package/src.ts/providers/plugins-network.ts +281 -0
- package/src.ts/providers/provider-alchemy.ts +134 -0
- package/src.ts/providers/provider-ankr.ts +122 -0
- package/src.ts/providers/provider-browser.ts +142 -0
- package/src.ts/providers/provider-cloudflare.ts +24 -0
- package/src.ts/providers/provider-etherscan.ts +608 -0
- package/src.ts/providers/provider-fallback.ts +755 -0
- package/src.ts/providers/provider-infura.ts +190 -0
- package/src.ts/providers/provider-ipcsocket-browser.ts +3 -0
- package/src.ts/providers/provider-ipcsocket.ts +78 -0
- package/src.ts/providers/provider-jsonrpc.ts +1223 -0
- package/src.ts/providers/provider-pocket.ts +121 -0
- package/src.ts/providers/provider-quicknode.ts +121 -0
- package/src.ts/providers/provider-socket.ts +334 -0
- package/src.ts/providers/provider-websocket.ts +102 -0
- package/src.ts/providers/provider.ts +1986 -0
- package/src.ts/providers/signer-noncemanager.ts +98 -0
- package/src.ts/providers/signer.ts +149 -0
- package/src.ts/providers/subscriber-connection.ts +74 -0
- package/src.ts/providers/subscriber-filterid.ts +198 -0
- package/src.ts/providers/subscriber-polling.ts +291 -0
- package/src.ts/providers/ws-browser.ts +11 -0
- package/src.ts/providers/ws.ts +3 -0
- package/src.ts/runner.ps1 +45 -0
- package/src.ts/thirdparty.d.ts +16 -0
- package/src.ts/transaction/accesslist.ts +43 -0
- package/src.ts/transaction/address.ts +28 -0
- package/src.ts/transaction/index.ts +31 -0
- package/src.ts/transaction/transaction.ts +823 -0
- package/src.ts/utils/base58.ts +64 -0
- package/src.ts/utils/base64-browser.ts +25 -0
- package/src.ts/utils/base64.ts +56 -0
- package/src.ts/utils/data.ts +199 -0
- package/src.ts/utils/errors.ts +780 -0
- package/src.ts/utils/events.ts +105 -0
- package/src.ts/utils/fetch.ts +913 -0
- package/src.ts/utils/fixednumber.ts +643 -0
- package/src.ts/utils/geturl-browser.ts +72 -0
- package/src.ts/utils/geturl.ts +96 -0
- package/src.ts/utils/index.ts +95 -0
- package/src.ts/utils/maths.ts +240 -0
- package/src.ts/utils/properties.ts +60 -0
- package/src.ts/utils/rlp-decode.ts +104 -0
- package/src.ts/utils/rlp-encode.ts +64 -0
- package/src.ts/utils/rlp.ts +15 -0
- package/src.ts/utils/test.txt +0 -0
- package/src.ts/utils/units.ts +91 -0
- package/src.ts/utils/utf8.ts +324 -0
- package/src.ts/utils/uuid.ts +36 -0
- package/src.ts/wallet/base-wallet.ts +130 -0
- package/src.ts/wallet/hdwallet.ts +583 -0
- package/src.ts/wallet/index.ts +47 -0
- package/src.ts/wallet/json-crowdsale.ts +74 -0
- package/src.ts/wallet/json-keystore.ts +389 -0
- package/src.ts/wallet/mnemonic.ts +203 -0
- package/src.ts/wallet/utils.ts +147 -0
- package/src.ts/wallet/wallet.ts +163 -0
- package/src.ts/wordlists/bit-reader.ts +35 -0
- package/src.ts/wordlists/decode-owl.ts +58 -0
- package/src.ts/wordlists/decode-owla.ts +33 -0
- package/src.ts/wordlists/generation/encode-latin.ts +370 -0
- package/src.ts/wordlists/index.ts +26 -0
- package/src.ts/wordlists/lang-cz.ts +33 -0
- package/src.ts/wordlists/lang-en.ts +33 -0
- package/src.ts/wordlists/lang-es.ts +35 -0
- package/src.ts/wordlists/lang-fr.ts +34 -0
- package/src.ts/wordlists/lang-it.ts +33 -0
- package/src.ts/wordlists/lang-ja.ts +181 -0
- package/src.ts/wordlists/lang-ko.ts +104 -0
- package/src.ts/wordlists/lang-pt.ts +34 -0
- package/src.ts/wordlists/lang-zh.ts +112 -0
- package/src.ts/wordlists/wordlist-owl.ts +77 -0
- package/src.ts/wordlists/wordlist-owla.ts +41 -0
- package/src.ts/wordlists/wordlist.ts +59 -0
- package/src.ts/wordlists/wordlists-browser.ts +8 -0
- package/src.ts/wordlists/wordlists-extra.ts +9 -0
- package/src.ts/wordlists/wordlists.ts +38 -0
|
@@ -0,0 +1,1131 @@
|
|
|
1
|
+
import type { AddressLike, NameResolver } from "../address/index.js";
|
|
2
|
+
import type { BigNumberish, EventEmitterable } from "../utils/index.js";
|
|
3
|
+
import type { Signature } from "../crypto/index.js";
|
|
4
|
+
import type { AccessList, AccessListish, TransactionLike } from "../transaction/index.js";
|
|
5
|
+
import type { ContractRunner } from "./contracts.js";
|
|
6
|
+
import type { Network } from "./network.js";
|
|
7
|
+
/**
|
|
8
|
+
* A **BlockTag** specifies a specific block.
|
|
9
|
+
*
|
|
10
|
+
* **numeric value** - specifies the block height, where
|
|
11
|
+
* the genesis block is block 0; many operations accept a negative
|
|
12
|
+
* value which indicates the block number should be deducted from
|
|
13
|
+
* the most recent block. A numeric value may be a ``number``, ``bigint``,
|
|
14
|
+
* or a decimal of hex string.
|
|
15
|
+
*
|
|
16
|
+
* **blockhash** - specifies a specific block by its blockhash; this allows
|
|
17
|
+
* potentially orphaned blocks to be specifed, without ambiguity, but many
|
|
18
|
+
* backends do not support this for some operations.
|
|
19
|
+
*/
|
|
20
|
+
export type BlockTag = BigNumberish | string;
|
|
21
|
+
import { BlockParams, LogParams, TransactionReceiptParams, TransactionResponseParams } from "./formatting.js";
|
|
22
|
+
/**
|
|
23
|
+
* A **FeeData** wraps all the fee-related values associated with
|
|
24
|
+
* the network.
|
|
25
|
+
*/
|
|
26
|
+
export declare class FeeData {
|
|
27
|
+
/**
|
|
28
|
+
* The gas price for legacy networks.
|
|
29
|
+
*/
|
|
30
|
+
readonly gasPrice: null | bigint;
|
|
31
|
+
/**
|
|
32
|
+
* The maximum fee to pay per gas.
|
|
33
|
+
*
|
|
34
|
+
* The base fee per gas is defined by the network and based on
|
|
35
|
+
* congestion, increasing the cost during times of heavy load
|
|
36
|
+
* and lowering when less busy.
|
|
37
|
+
*
|
|
38
|
+
* The actual fee per gas will be the base fee for the block
|
|
39
|
+
* and the priority fee, up to the max fee per gas.
|
|
40
|
+
*
|
|
41
|
+
* This will be ``null`` on legacy networks (i.e. [pre-EIP-1559](link-eip-1559))
|
|
42
|
+
*/
|
|
43
|
+
readonly maxFeePerGas: null | bigint;
|
|
44
|
+
/**
|
|
45
|
+
* The additional amout to pay per gas to encourage a validator
|
|
46
|
+
* to include the transaction.
|
|
47
|
+
*
|
|
48
|
+
* The purpose of this is to compensate the validator for the
|
|
49
|
+
* adjusted risk for including a given transaction.
|
|
50
|
+
*
|
|
51
|
+
* This will be ``null`` on legacy networks (i.e. [pre-EIP-1559](link-eip-1559))
|
|
52
|
+
*/
|
|
53
|
+
readonly maxPriorityFeePerGas: null | bigint;
|
|
54
|
+
/**
|
|
55
|
+
* Creates a new FeeData for %%gasPrice%%, %%maxFeePerGas%% and
|
|
56
|
+
* %%maxPriorityFeePerGas%%.
|
|
57
|
+
*/
|
|
58
|
+
constructor(gasPrice?: null | bigint, maxFeePerGas?: null | bigint, maxPriorityFeePerGas?: null | bigint);
|
|
59
|
+
/**
|
|
60
|
+
* Returns a JSON-friendly value.
|
|
61
|
+
*/
|
|
62
|
+
toJSON(): any;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* A **TransactionRequest** is a transactions with potentially various
|
|
66
|
+
* properties not defined, or with less strict types for its values.
|
|
67
|
+
*
|
|
68
|
+
* This is used to pass to various operations, which will internally
|
|
69
|
+
* coerce any types and populate any necessary values.
|
|
70
|
+
*/
|
|
71
|
+
export interface TransactionRequest {
|
|
72
|
+
/**
|
|
73
|
+
* The transaction type.
|
|
74
|
+
*/
|
|
75
|
+
type?: null | number;
|
|
76
|
+
/**
|
|
77
|
+
* The target of the transaction.
|
|
78
|
+
*/
|
|
79
|
+
to?: null | AddressLike;
|
|
80
|
+
/**
|
|
81
|
+
* The sender of the transaction.
|
|
82
|
+
*/
|
|
83
|
+
from?: null | AddressLike;
|
|
84
|
+
/**
|
|
85
|
+
* The nonce of the transaction, used to prevent replay attacks.
|
|
86
|
+
*/
|
|
87
|
+
nonce?: null | number;
|
|
88
|
+
/**
|
|
89
|
+
* The maximum amount of gas to allow this transaction to consime.
|
|
90
|
+
*/
|
|
91
|
+
gasLimit?: null | BigNumberish;
|
|
92
|
+
/**
|
|
93
|
+
* The gas price to use for legacy transactions or transactions on
|
|
94
|
+
* legacy networks.
|
|
95
|
+
*
|
|
96
|
+
* Most of the time the ``max*FeePerGas`` is preferred.
|
|
97
|
+
*/
|
|
98
|
+
gasPrice?: null | BigNumberish;
|
|
99
|
+
/**
|
|
100
|
+
* The [[link-eip-1559]] maximum priority fee to pay per gas.
|
|
101
|
+
*/
|
|
102
|
+
maxPriorityFeePerGas?: null | BigNumberish;
|
|
103
|
+
/**
|
|
104
|
+
* The [[link-eip-1559]] maximum total fee to pay per gas. The actual
|
|
105
|
+
* value used is protocol enforced to be the block's base fee.
|
|
106
|
+
*/
|
|
107
|
+
maxFeePerGas?: null | BigNumberish;
|
|
108
|
+
/**
|
|
109
|
+
* The transaction data.
|
|
110
|
+
*/
|
|
111
|
+
data?: null | string;
|
|
112
|
+
/**
|
|
113
|
+
* The transaction value (in wei).
|
|
114
|
+
*/
|
|
115
|
+
value?: null | BigNumberish;
|
|
116
|
+
/**
|
|
117
|
+
* The chain ID for the network this transaction is valid on.
|
|
118
|
+
*/
|
|
119
|
+
chainId?: null | BigNumberish;
|
|
120
|
+
/**
|
|
121
|
+
* The [[link-eip-2930]] access list. Storage slots included in the access
|
|
122
|
+
* list are //warmed// by pre-loading them, so their initial cost to
|
|
123
|
+
* fetch is guaranteed, but then each additional access is cheaper.
|
|
124
|
+
*/
|
|
125
|
+
accessList?: null | AccessListish;
|
|
126
|
+
/**
|
|
127
|
+
* A custom object, which can be passed along for network-specific
|
|
128
|
+
* values.
|
|
129
|
+
*/
|
|
130
|
+
customData?: any;
|
|
131
|
+
/**
|
|
132
|
+
* When using ``call`` or ``estimateGas``, this allows a specific
|
|
133
|
+
* block to be queried. Many backends do not support this and when
|
|
134
|
+
* unsupported errors are silently squelched and ``"latest"`` is used.
|
|
135
|
+
*/
|
|
136
|
+
blockTag?: BlockTag;
|
|
137
|
+
/**
|
|
138
|
+
* When using ``call``, this enables CCIP-read, which permits the
|
|
139
|
+
* provider to be redirected to web-based content during execution,
|
|
140
|
+
* which is then further validated by the contract.
|
|
141
|
+
*
|
|
142
|
+
* There are potential security implications allowing CCIP-read, as
|
|
143
|
+
* it could be used to expose the IP address or user activity during
|
|
144
|
+
* the fetch to unexpected parties.
|
|
145
|
+
*/
|
|
146
|
+
enableCcipRead?: boolean;
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* A **PreparedTransactionRequest** is identical to a [[TransactionRequest]]
|
|
150
|
+
* except all the property types are strictly enforced.
|
|
151
|
+
*/
|
|
152
|
+
export interface PreparedTransactionRequest {
|
|
153
|
+
/**
|
|
154
|
+
* The transaction type.
|
|
155
|
+
*/
|
|
156
|
+
type?: number;
|
|
157
|
+
/**
|
|
158
|
+
* The target of the transaction.
|
|
159
|
+
*/
|
|
160
|
+
to?: AddressLike;
|
|
161
|
+
/**
|
|
162
|
+
* The sender of the transaction.
|
|
163
|
+
*/
|
|
164
|
+
from?: AddressLike;
|
|
165
|
+
/**
|
|
166
|
+
* The nonce of the transaction, used to prevent replay attacks.
|
|
167
|
+
*/
|
|
168
|
+
nonce?: number;
|
|
169
|
+
/**
|
|
170
|
+
* The maximum amount of gas to allow this transaction to consime.
|
|
171
|
+
*/
|
|
172
|
+
gasLimit?: bigint;
|
|
173
|
+
/**
|
|
174
|
+
* The gas price to use for legacy transactions or transactions on
|
|
175
|
+
* legacy networks.
|
|
176
|
+
*
|
|
177
|
+
* Most of the time the ``max*FeePerGas`` is preferred.
|
|
178
|
+
*/
|
|
179
|
+
gasPrice?: bigint;
|
|
180
|
+
/**
|
|
181
|
+
* The [[link-eip-1559]] maximum priority fee to pay per gas.
|
|
182
|
+
*/
|
|
183
|
+
maxPriorityFeePerGas?: bigint;
|
|
184
|
+
/**
|
|
185
|
+
* The [[link-eip-1559]] maximum total fee to pay per gas. The actual
|
|
186
|
+
* value used is protocol enforced to be the block's base fee.
|
|
187
|
+
*/
|
|
188
|
+
maxFeePerGas?: bigint;
|
|
189
|
+
/**
|
|
190
|
+
* The transaction data.
|
|
191
|
+
*/
|
|
192
|
+
data?: string;
|
|
193
|
+
/**
|
|
194
|
+
* The transaction value (in wei).
|
|
195
|
+
*/
|
|
196
|
+
value?: bigint;
|
|
197
|
+
/**
|
|
198
|
+
* The chain ID for the network this transaction is valid on.
|
|
199
|
+
*/
|
|
200
|
+
chainId?: bigint;
|
|
201
|
+
/**
|
|
202
|
+
* The [[link-eip-2930]] access list. Storage slots included in the access
|
|
203
|
+
* list are //warmed// by pre-loading them, so their initial cost to
|
|
204
|
+
* fetch is guaranteed, but then each additional access is cheaper.
|
|
205
|
+
*/
|
|
206
|
+
accessList?: AccessList;
|
|
207
|
+
/**
|
|
208
|
+
* A custom object, which can be passed along for network-specific
|
|
209
|
+
* values.
|
|
210
|
+
*/
|
|
211
|
+
customData?: any;
|
|
212
|
+
/**
|
|
213
|
+
* When using ``call`` or ``estimateGas``, this allows a specific
|
|
214
|
+
* block to be queried. Many backends do not support this and when
|
|
215
|
+
* unsupported errors are silently squelched and ``"latest"`` is used.
|
|
216
|
+
*/
|
|
217
|
+
blockTag?: BlockTag;
|
|
218
|
+
/**
|
|
219
|
+
* When using ``call``, this enables CCIP-read, which permits the
|
|
220
|
+
* provider to be redirected to web-based content during execution,
|
|
221
|
+
* which is then further validated by the contract.
|
|
222
|
+
*
|
|
223
|
+
* There are potential security implications allowing CCIP-read, as
|
|
224
|
+
* it could be used to expose the IP address or user activity during
|
|
225
|
+
* the fetch to unexpected parties.
|
|
226
|
+
*/
|
|
227
|
+
enableCcipRead?: boolean;
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* Returns a copy of %%req%% with all properties coerced to their strict
|
|
231
|
+
* types.
|
|
232
|
+
*/
|
|
233
|
+
export declare function copyRequest(req: TransactionRequest): PreparedTransactionRequest;
|
|
234
|
+
/**
|
|
235
|
+
* An Interface to indicate a [[Block]] has been included in the
|
|
236
|
+
* blockchain. This asserts a Type Guard that necessary properties
|
|
237
|
+
* are non-null.
|
|
238
|
+
*
|
|
239
|
+
* Before a block is included, it is a //pending// block.
|
|
240
|
+
*/
|
|
241
|
+
export interface MinedBlock extends Block {
|
|
242
|
+
/**
|
|
243
|
+
* The block number also known as the block height.
|
|
244
|
+
*/
|
|
245
|
+
readonly number: number;
|
|
246
|
+
/**
|
|
247
|
+
* The block hash.
|
|
248
|
+
*/
|
|
249
|
+
readonly hash: string;
|
|
250
|
+
/**
|
|
251
|
+
* The block timestamp, in seconds from epoch.
|
|
252
|
+
*/
|
|
253
|
+
readonly timestamp: number;
|
|
254
|
+
/**
|
|
255
|
+
* The block date, created from the [[timestamp]].
|
|
256
|
+
*/
|
|
257
|
+
readonly date: Date;
|
|
258
|
+
/**
|
|
259
|
+
* The miner of the block, also known as the ``author`` or
|
|
260
|
+
* block ``producer``.
|
|
261
|
+
*/
|
|
262
|
+
readonly miner: string;
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* A **Block** represents the data associated with a full block on
|
|
266
|
+
* Ethereum.
|
|
267
|
+
*/
|
|
268
|
+
export declare class Block implements BlockParams, Iterable<string> {
|
|
269
|
+
#private;
|
|
270
|
+
/**
|
|
271
|
+
* The provider connected to the block used to fetch additional details
|
|
272
|
+
* if necessary.
|
|
273
|
+
*/
|
|
274
|
+
readonly provider: Provider;
|
|
275
|
+
/**
|
|
276
|
+
* The block number, sometimes called the block height. This is a
|
|
277
|
+
* sequential number that is one higher than the parent block.
|
|
278
|
+
*/
|
|
279
|
+
readonly number: number;
|
|
280
|
+
/**
|
|
281
|
+
* The block hash.
|
|
282
|
+
*
|
|
283
|
+
* This hash includes all properties, so can be safely used to identify
|
|
284
|
+
* an exact set of block properties.
|
|
285
|
+
*/
|
|
286
|
+
readonly hash: null | string;
|
|
287
|
+
/**
|
|
288
|
+
* The timestamp for this block, which is the number of seconds since
|
|
289
|
+
* epoch that this block was included.
|
|
290
|
+
*/
|
|
291
|
+
readonly timestamp: number;
|
|
292
|
+
/**
|
|
293
|
+
* The block hash of the parent block.
|
|
294
|
+
*/
|
|
295
|
+
readonly parentHash: string;
|
|
296
|
+
/**
|
|
297
|
+
* The nonce.
|
|
298
|
+
*
|
|
299
|
+
* On legacy networks, this is the random number inserted which
|
|
300
|
+
* permitted the difficulty target to be reached.
|
|
301
|
+
*/
|
|
302
|
+
readonly nonce: string;
|
|
303
|
+
/**
|
|
304
|
+
* The difficulty target.
|
|
305
|
+
*
|
|
306
|
+
* On legacy networks, this is the proof-of-work target required
|
|
307
|
+
* for a block to meet the protocol rules to be included.
|
|
308
|
+
*
|
|
309
|
+
* On modern networks, this is a random number arrived at using
|
|
310
|
+
* randao. @TODO: Find links?
|
|
311
|
+
*/
|
|
312
|
+
readonly difficulty: bigint;
|
|
313
|
+
/**
|
|
314
|
+
* The total gas limit for this block.
|
|
315
|
+
*/
|
|
316
|
+
readonly gasLimit: bigint;
|
|
317
|
+
/**
|
|
318
|
+
* The total gas used in this block.
|
|
319
|
+
*/
|
|
320
|
+
readonly gasUsed: bigint;
|
|
321
|
+
/**
|
|
322
|
+
* The miner coinbase address, wihch receives any subsidies for
|
|
323
|
+
* including this block.
|
|
324
|
+
*/
|
|
325
|
+
readonly miner: string;
|
|
326
|
+
/**
|
|
327
|
+
* Any extra data the validator wished to include.
|
|
328
|
+
*/
|
|
329
|
+
readonly extraData: string;
|
|
330
|
+
/**
|
|
331
|
+
* The base fee per gas that all transactions in this block were
|
|
332
|
+
* charged.
|
|
333
|
+
*
|
|
334
|
+
* This adjusts after each block, depending on how congested the network
|
|
335
|
+
* is.
|
|
336
|
+
*/
|
|
337
|
+
readonly baseFeePerGas: null | bigint;
|
|
338
|
+
/**
|
|
339
|
+
* Create a new **Block** object.
|
|
340
|
+
*
|
|
341
|
+
* This should generally not be necessary as the unless implementing a
|
|
342
|
+
* low-level library.
|
|
343
|
+
*/
|
|
344
|
+
constructor(block: BlockParams, provider: Provider);
|
|
345
|
+
/**
|
|
346
|
+
* Returns the list of transaction hashes.
|
|
347
|
+
*/
|
|
348
|
+
get transactions(): ReadonlyArray<string>;
|
|
349
|
+
/**
|
|
350
|
+
* Returns the complete transactions for blocks which
|
|
351
|
+
* prefetched them, by passing ``true`` to %%prefetchTxs%%
|
|
352
|
+
* into [[Provider-getBlock]].
|
|
353
|
+
*/
|
|
354
|
+
get prefetchedTransactions(): Array<TransactionResponse>;
|
|
355
|
+
/**
|
|
356
|
+
* Returns a JSON-friendly value.
|
|
357
|
+
*/
|
|
358
|
+
toJSON(): any;
|
|
359
|
+
[Symbol.iterator](): Iterator<string>;
|
|
360
|
+
/**
|
|
361
|
+
* The number of transactions in this block.
|
|
362
|
+
*/
|
|
363
|
+
get length(): number;
|
|
364
|
+
/**
|
|
365
|
+
* The [[link-js-date]] this block was included at.
|
|
366
|
+
*/
|
|
367
|
+
get date(): null | Date;
|
|
368
|
+
/**
|
|
369
|
+
* Get the transaction at %%indexe%% within this block.
|
|
370
|
+
*/
|
|
371
|
+
getTransaction(indexOrHash: number | string): Promise<TransactionResponse>;
|
|
372
|
+
/**
|
|
373
|
+
* If a **Block** was fetched with a request to include the transactions
|
|
374
|
+
* this will allow synchronous access to those transactions.
|
|
375
|
+
*
|
|
376
|
+
* If the transactions were not prefetched, this will throw.
|
|
377
|
+
*/
|
|
378
|
+
getPrefetchedTransaction(indexOrHash: number | string): TransactionResponse;
|
|
379
|
+
/**
|
|
380
|
+
* Returns true if this block been mined. This provides a type guard
|
|
381
|
+
* for all properties on a [[MinedBlock]].
|
|
382
|
+
*/
|
|
383
|
+
isMined(): this is MinedBlock;
|
|
384
|
+
/**
|
|
385
|
+
* Returns true if this block is an [[link-eip-2930]] block.
|
|
386
|
+
*/
|
|
387
|
+
isLondon(): this is (Block & {
|
|
388
|
+
baseFeePerGas: bigint;
|
|
389
|
+
});
|
|
390
|
+
/**
|
|
391
|
+
* @_ignore:
|
|
392
|
+
*/
|
|
393
|
+
orphanedEvent(): OrphanFilter;
|
|
394
|
+
}
|
|
395
|
+
/**
|
|
396
|
+
* A **Log** in Ethereum represents an event that has been included in a
|
|
397
|
+
* transaction using the ``LOG*`` opcodes, which are most commonly used by
|
|
398
|
+
* Solidity's emit for announcing events.
|
|
399
|
+
*/
|
|
400
|
+
export declare class Log implements LogParams {
|
|
401
|
+
/**
|
|
402
|
+
* The provider connected to the log used to fetch additional details
|
|
403
|
+
* if necessary.
|
|
404
|
+
*/
|
|
405
|
+
readonly provider: Provider;
|
|
406
|
+
/**
|
|
407
|
+
* The transaction hash of the transaction this log occurred in. Use the
|
|
408
|
+
* [[Log-getTransaction]] to get the [[TransactionResponse]].
|
|
409
|
+
*/
|
|
410
|
+
readonly transactionHash: string;
|
|
411
|
+
/**
|
|
412
|
+
* The block hash of the block this log occurred in. Use the
|
|
413
|
+
* [[Log-getBlock]] to get the [[Block]].
|
|
414
|
+
*/
|
|
415
|
+
readonly blockHash: string;
|
|
416
|
+
/**
|
|
417
|
+
* The block number of the block this log occurred in. It is preferred
|
|
418
|
+
* to use the [[Block-hash]] when fetching the related [[Block]],
|
|
419
|
+
* since in the case of an orphaned block, the block at that height may
|
|
420
|
+
* have changed.
|
|
421
|
+
*/
|
|
422
|
+
readonly blockNumber: number;
|
|
423
|
+
/**
|
|
424
|
+
* If the **Log** represents a block that was removed due to an orphaned
|
|
425
|
+
* block, this will be true.
|
|
426
|
+
*
|
|
427
|
+
* This can only happen within an orphan event listener.
|
|
428
|
+
*/
|
|
429
|
+
readonly removed: boolean;
|
|
430
|
+
/**
|
|
431
|
+
* The address of the contract that emitted this log.
|
|
432
|
+
*/
|
|
433
|
+
readonly address: string;
|
|
434
|
+
/**
|
|
435
|
+
* The data included in this log when it was emitted.
|
|
436
|
+
*/
|
|
437
|
+
readonly data: string;
|
|
438
|
+
/**
|
|
439
|
+
* The indexed topics included in this log when it was emitted.
|
|
440
|
+
*
|
|
441
|
+
* All topics are included in the bloom filters, so they can be
|
|
442
|
+
* efficiently filtered using the [[Provider-getLogs]] method.
|
|
443
|
+
*/
|
|
444
|
+
readonly topics: ReadonlyArray<string>;
|
|
445
|
+
/**
|
|
446
|
+
* The index within the block this log occurred at. This is generally
|
|
447
|
+
* not useful to developers, but can be used with the various roots
|
|
448
|
+
* to proof inclusion within a block.
|
|
449
|
+
*/
|
|
450
|
+
readonly index: number;
|
|
451
|
+
/**
|
|
452
|
+
* The index within the transaction of this log.
|
|
453
|
+
*/
|
|
454
|
+
readonly transactionIndex: number;
|
|
455
|
+
/**
|
|
456
|
+
* @_ignore:
|
|
457
|
+
*/
|
|
458
|
+
constructor(log: LogParams, provider: Provider);
|
|
459
|
+
/**
|
|
460
|
+
* Returns a JSON-compatible object.
|
|
461
|
+
*/
|
|
462
|
+
toJSON(): any;
|
|
463
|
+
/**
|
|
464
|
+
* Returns the block that this log occurred in.
|
|
465
|
+
*/
|
|
466
|
+
getBlock(): Promise<Block>;
|
|
467
|
+
/**
|
|
468
|
+
* Returns the transaction that this log occurred in.
|
|
469
|
+
*/
|
|
470
|
+
getTransaction(): Promise<TransactionResponse>;
|
|
471
|
+
/**
|
|
472
|
+
* Returns the transaction receipt fot the transaction that this
|
|
473
|
+
* log occurred in.
|
|
474
|
+
*/
|
|
475
|
+
getTransactionReceipt(): Promise<TransactionReceipt>;
|
|
476
|
+
/**
|
|
477
|
+
* @_ignore:
|
|
478
|
+
*/
|
|
479
|
+
removedEvent(): OrphanFilter;
|
|
480
|
+
}
|
|
481
|
+
/**
|
|
482
|
+
* A **TransactionReceipt** includes additional information about a
|
|
483
|
+
* transaction that is only available after it has been mined.
|
|
484
|
+
*/
|
|
485
|
+
export declare class TransactionReceipt implements TransactionReceiptParams, Iterable<Log> {
|
|
486
|
+
#private;
|
|
487
|
+
/**
|
|
488
|
+
* The provider connected to the log used to fetch additional details
|
|
489
|
+
* if necessary.
|
|
490
|
+
*/
|
|
491
|
+
readonly provider: Provider;
|
|
492
|
+
/**
|
|
493
|
+
* The address the transaction was send to.
|
|
494
|
+
*/
|
|
495
|
+
readonly to: null | string;
|
|
496
|
+
/**
|
|
497
|
+
* The sender of the transaction.
|
|
498
|
+
*/
|
|
499
|
+
readonly from: string;
|
|
500
|
+
/**
|
|
501
|
+
* The address of the contract if the transaction was directly
|
|
502
|
+
* responsible for deploying one.
|
|
503
|
+
*
|
|
504
|
+
* This is non-null **only** if the ``to`` is empty and the ``data``
|
|
505
|
+
* was successfully executed as initcode.
|
|
506
|
+
*/
|
|
507
|
+
readonly contractAddress: null | string;
|
|
508
|
+
/**
|
|
509
|
+
* The transaction hash.
|
|
510
|
+
*/
|
|
511
|
+
readonly hash: string;
|
|
512
|
+
/**
|
|
513
|
+
* The index of this transaction within the block transactions.
|
|
514
|
+
*/
|
|
515
|
+
readonly index: number;
|
|
516
|
+
/**
|
|
517
|
+
* The block hash of the [[Block]] this transaction was included in.
|
|
518
|
+
*/
|
|
519
|
+
readonly blockHash: string;
|
|
520
|
+
/**
|
|
521
|
+
* The block number of the [[Block]] this transaction was included in.
|
|
522
|
+
*/
|
|
523
|
+
readonly blockNumber: number;
|
|
524
|
+
/**
|
|
525
|
+
* The bloom filter bytes that represent all logs that occurred within
|
|
526
|
+
* this transaction. This is generally not useful for most developers,
|
|
527
|
+
* but can be used to validate the included logs.
|
|
528
|
+
*/
|
|
529
|
+
readonly logsBloom: string;
|
|
530
|
+
/**
|
|
531
|
+
* The actual amount of gas used by this transaction.
|
|
532
|
+
*
|
|
533
|
+
* When creating a transaction, the amount of gas that will be used can
|
|
534
|
+
* only be approximated, but the sender must pay the gas fee for the
|
|
535
|
+
* entire gas limit. After the transaction, the difference is refunded.
|
|
536
|
+
*/
|
|
537
|
+
readonly gasUsed: bigint;
|
|
538
|
+
/**
|
|
539
|
+
* The amount of gas used by all transactions within the block for this
|
|
540
|
+
* and all transactions with a lower ``index``.
|
|
541
|
+
*
|
|
542
|
+
* This is generally not useful for developers but can be used to
|
|
543
|
+
* validate certain aspects of execution.
|
|
544
|
+
*/
|
|
545
|
+
readonly cumulativeGasUsed: bigint;
|
|
546
|
+
/**
|
|
547
|
+
* The actual gas price used during execution.
|
|
548
|
+
*
|
|
549
|
+
* Due to the complexity of [[link-eip-1559]] this value can only
|
|
550
|
+
* be caluclated after the transaction has been mined, snce the base
|
|
551
|
+
* fee is protocol-enforced.
|
|
552
|
+
*/
|
|
553
|
+
readonly gasPrice: bigint;
|
|
554
|
+
/**
|
|
555
|
+
* The [[link-eip-2718]] transaction type.
|
|
556
|
+
*/
|
|
557
|
+
readonly type: number;
|
|
558
|
+
/**
|
|
559
|
+
* The status of this transaction, indicating success (i.e. ``1``) or
|
|
560
|
+
* a revert (i.e. ``0``).
|
|
561
|
+
*
|
|
562
|
+
* This is available in post-byzantium blocks, but some backends may
|
|
563
|
+
* backfill this value.
|
|
564
|
+
*/
|
|
565
|
+
readonly status: null | number;
|
|
566
|
+
/**
|
|
567
|
+
* The root hash of this transaction.
|
|
568
|
+
*
|
|
569
|
+
* This is no present and was only included in pre-byzantium blocks, but
|
|
570
|
+
* could be used to validate certain parts of the receipt.
|
|
571
|
+
*/
|
|
572
|
+
readonly root: null | string;
|
|
573
|
+
/**
|
|
574
|
+
* @_ignore:
|
|
575
|
+
*/
|
|
576
|
+
constructor(tx: TransactionReceiptParams, provider: Provider);
|
|
577
|
+
/**
|
|
578
|
+
* The logs for this transaction.
|
|
579
|
+
*/
|
|
580
|
+
get logs(): ReadonlyArray<Log>;
|
|
581
|
+
/**
|
|
582
|
+
* Returns a JSON-compatible representation.
|
|
583
|
+
*/
|
|
584
|
+
toJSON(): any;
|
|
585
|
+
/**
|
|
586
|
+
* @_ignore:
|
|
587
|
+
*/
|
|
588
|
+
get length(): number;
|
|
589
|
+
[Symbol.iterator](): Iterator<Log>;
|
|
590
|
+
/**
|
|
591
|
+
* The total fee for this transaction, in wei.
|
|
592
|
+
*/
|
|
593
|
+
get fee(): bigint;
|
|
594
|
+
/**
|
|
595
|
+
* Resolves to the block this transaction occurred in.
|
|
596
|
+
*/
|
|
597
|
+
getBlock(): Promise<Block>;
|
|
598
|
+
/**
|
|
599
|
+
* Resolves to the transaction this transaction occurred in.
|
|
600
|
+
*/
|
|
601
|
+
getTransaction(): Promise<TransactionResponse>;
|
|
602
|
+
/**
|
|
603
|
+
* Resolves to the return value of the execution of this transaction.
|
|
604
|
+
*
|
|
605
|
+
* Support for this feature is limited, as it requires an archive node
|
|
606
|
+
* with the ``debug_`` or ``trace_`` API enabled.
|
|
607
|
+
*/
|
|
608
|
+
getResult(): Promise<string>;
|
|
609
|
+
/**
|
|
610
|
+
* Resolves to the number of confirmations this transaction has.
|
|
611
|
+
*/
|
|
612
|
+
confirmations(): Promise<number>;
|
|
613
|
+
/**
|
|
614
|
+
* @_ignore:
|
|
615
|
+
*/
|
|
616
|
+
removedEvent(): OrphanFilter;
|
|
617
|
+
/**
|
|
618
|
+
* @_ignore:
|
|
619
|
+
*/
|
|
620
|
+
reorderedEvent(other?: TransactionResponse): OrphanFilter;
|
|
621
|
+
}
|
|
622
|
+
/**
|
|
623
|
+
* A **MinedTransactionResponse** is an interface representing a
|
|
624
|
+
* transaction which has been mined and allows for a type guard for its
|
|
625
|
+
* property values being defined.
|
|
626
|
+
*/
|
|
627
|
+
export interface MinedTransactionResponse extends TransactionResponse {
|
|
628
|
+
/**
|
|
629
|
+
* The block number this transaction occurred in.
|
|
630
|
+
*/
|
|
631
|
+
blockNumber: number;
|
|
632
|
+
/**
|
|
633
|
+
* The block hash this transaction occurred in.
|
|
634
|
+
*/
|
|
635
|
+
blockHash: string;
|
|
636
|
+
/**
|
|
637
|
+
* The date this transaction occurred on.
|
|
638
|
+
*/
|
|
639
|
+
date: Date;
|
|
640
|
+
}
|
|
641
|
+
/**
|
|
642
|
+
* A **TransactionResponse** includes all properties about a transaction
|
|
643
|
+
* that was sent to the network, which may or may not be included in a
|
|
644
|
+
* block.
|
|
645
|
+
*
|
|
646
|
+
* The [[TransactionResponse-isMined]] can be used to check if the
|
|
647
|
+
* transaction has been mined as well as type guard that the otherwise
|
|
648
|
+
* possibly ``null`` properties are defined.
|
|
649
|
+
*/
|
|
650
|
+
export declare class TransactionResponse implements TransactionLike<string>, TransactionResponseParams {
|
|
651
|
+
#private;
|
|
652
|
+
/**
|
|
653
|
+
* The provider this is connected to, which will influence how its
|
|
654
|
+
* methods will resolve its async inspection methods.
|
|
655
|
+
*/
|
|
656
|
+
readonly provider: Provider;
|
|
657
|
+
/**
|
|
658
|
+
* The block number of the block that this transaction was included in.
|
|
659
|
+
*
|
|
660
|
+
* This is ``null`` for pending transactions.
|
|
661
|
+
*/
|
|
662
|
+
readonly blockNumber: null | number;
|
|
663
|
+
/**
|
|
664
|
+
* The blockHash of the block that this transaction was included in.
|
|
665
|
+
*
|
|
666
|
+
* This is ``null`` for pending transactions.
|
|
667
|
+
*/
|
|
668
|
+
readonly blockHash: null | string;
|
|
669
|
+
/**
|
|
670
|
+
* The index within the block that this transaction resides at.
|
|
671
|
+
*/
|
|
672
|
+
readonly index: number;
|
|
673
|
+
/**
|
|
674
|
+
* The transaction hash.
|
|
675
|
+
*/
|
|
676
|
+
readonly hash: string;
|
|
677
|
+
/**
|
|
678
|
+
* The [[link-eip-2718]] transaction envelope type. This is
|
|
679
|
+
* ``0`` for legacy transactions types.
|
|
680
|
+
*/
|
|
681
|
+
readonly type: number;
|
|
682
|
+
/**
|
|
683
|
+
* The receiver of this transaction.
|
|
684
|
+
*
|
|
685
|
+
* If ``null``, then the transaction is an initcode transaction.
|
|
686
|
+
* This means the result of executing the [[data]] will be deployed
|
|
687
|
+
* as a new contract on chain (assuming it does not revert) and the
|
|
688
|
+
* address may be computed using [[getCreateAddress]].
|
|
689
|
+
*/
|
|
690
|
+
readonly to: null | string;
|
|
691
|
+
/**
|
|
692
|
+
* The sender of this transaction. It is implicitly computed
|
|
693
|
+
* from the transaction pre-image hash (as the digest) and the
|
|
694
|
+
* [[signature]] using ecrecover.
|
|
695
|
+
*/
|
|
696
|
+
readonly from: string;
|
|
697
|
+
/**
|
|
698
|
+
* The nonce, which is used to prevent replay attacks and offer
|
|
699
|
+
* a method to ensure transactions from a given sender are explicitly
|
|
700
|
+
* ordered.
|
|
701
|
+
*
|
|
702
|
+
* When sending a transaction, this must be equal to the number of
|
|
703
|
+
* transactions ever sent by [[from]].
|
|
704
|
+
*/
|
|
705
|
+
readonly nonce: number;
|
|
706
|
+
/**
|
|
707
|
+
* The maximum units of gas this transaction can consume. If execution
|
|
708
|
+
* exceeds this, the entries transaction is reverted and the sender
|
|
709
|
+
* is charged for the full amount, despite not state changes being made.
|
|
710
|
+
*/
|
|
711
|
+
readonly gasLimit: bigint;
|
|
712
|
+
/**
|
|
713
|
+
* The gas price can have various values, depending on the network.
|
|
714
|
+
*
|
|
715
|
+
* In modern networks, for transactions that are included this is
|
|
716
|
+
* the //effective gas price// (the fee per gas that was actually
|
|
717
|
+
* charged), while for transactions that have not been included yet
|
|
718
|
+
* is the [[maxFeePerGas]].
|
|
719
|
+
*
|
|
720
|
+
* For legacy transactions, or transactions on legacy networks, this
|
|
721
|
+
* is the fee that will be charged per unit of gas the transaction
|
|
722
|
+
* consumes.
|
|
723
|
+
*/
|
|
724
|
+
readonly gasPrice: bigint;
|
|
725
|
+
/**
|
|
726
|
+
* The maximum priority fee (per unit of gas) to allow a
|
|
727
|
+
* validator to charge the sender. This is inclusive of the
|
|
728
|
+
* [[maxFeeFeePerGas]].
|
|
729
|
+
*/
|
|
730
|
+
readonly maxPriorityFeePerGas: null | bigint;
|
|
731
|
+
/**
|
|
732
|
+
* The maximum fee (per unit of gas) to allow this transaction
|
|
733
|
+
* to charge the sender.
|
|
734
|
+
*/
|
|
735
|
+
readonly maxFeePerGas: null | bigint;
|
|
736
|
+
/**
|
|
737
|
+
* The data.
|
|
738
|
+
*/
|
|
739
|
+
readonly data: string;
|
|
740
|
+
/**
|
|
741
|
+
* The value, in wei. Use [[formatEther]] to format this value
|
|
742
|
+
* as ether.
|
|
743
|
+
*/
|
|
744
|
+
readonly value: bigint;
|
|
745
|
+
/**
|
|
746
|
+
* The chain ID.
|
|
747
|
+
*/
|
|
748
|
+
readonly chainId: bigint;
|
|
749
|
+
/**
|
|
750
|
+
* The signature.
|
|
751
|
+
*/
|
|
752
|
+
readonly signature: Signature;
|
|
753
|
+
/**
|
|
754
|
+
* The [[link-eip-2930]] access list for transaction types that
|
|
755
|
+
* support it, otherwise ``null``.
|
|
756
|
+
*/
|
|
757
|
+
readonly accessList: null | AccessList;
|
|
758
|
+
/**
|
|
759
|
+
* @_ignore:
|
|
760
|
+
*/
|
|
761
|
+
constructor(tx: TransactionResponseParams, provider: Provider);
|
|
762
|
+
/**
|
|
763
|
+
* Returns a JSON-compatible representation of this transaction.
|
|
764
|
+
*/
|
|
765
|
+
toJSON(): any;
|
|
766
|
+
/**
|
|
767
|
+
* Resolves to the Block that this transaction was included in.
|
|
768
|
+
*
|
|
769
|
+
* This will return null if the transaction has not been included yet.
|
|
770
|
+
*/
|
|
771
|
+
getBlock(): Promise<null | Block>;
|
|
772
|
+
/**
|
|
773
|
+
* Resolves to this transaction being re-requested from the
|
|
774
|
+
* provider. This can be used if you have an unmined transaction
|
|
775
|
+
* and wish to get an up-to-date populated instance.
|
|
776
|
+
*/
|
|
777
|
+
getTransaction(): Promise<null | TransactionResponse>;
|
|
778
|
+
/**
|
|
779
|
+
* Resolve to the number of confirmations this transaction has.
|
|
780
|
+
*/
|
|
781
|
+
confirmations(): Promise<number>;
|
|
782
|
+
/**
|
|
783
|
+
* Resolves once this transaction has been mined and has
|
|
784
|
+
* %%confirms%% blocks including it (default: ``1``) with an
|
|
785
|
+
* optional %%timeout%%.
|
|
786
|
+
*
|
|
787
|
+
* This can resolve to ``null`` only if %%confirms%% is ``0``
|
|
788
|
+
* and the transaction has not been mined, otherwise this will
|
|
789
|
+
* wait until enough confirmations have completed.
|
|
790
|
+
*/
|
|
791
|
+
wait(_confirms?: number, _timeout?: number): Promise<null | TransactionReceipt>;
|
|
792
|
+
/**
|
|
793
|
+
* Returns ``true`` if this transaction has been included.
|
|
794
|
+
*
|
|
795
|
+
* This is effective only as of the time the TransactionResponse
|
|
796
|
+
* was instantiated. To get up-to-date information, use
|
|
797
|
+
* [[getTransaction]].
|
|
798
|
+
*
|
|
799
|
+
* This provides a Type Guard that this transaction will have
|
|
800
|
+
* non-null property values for properties that are null for
|
|
801
|
+
* unmined transactions.
|
|
802
|
+
*/
|
|
803
|
+
isMined(): this is MinedTransactionResponse;
|
|
804
|
+
/**
|
|
805
|
+
* Returns true if the transaction is a legacy (i.e. ``type == 0``)
|
|
806
|
+
* transaction.
|
|
807
|
+
*
|
|
808
|
+
* This provides a Type Guard that this transaction will have
|
|
809
|
+
* the ``null``-ness for hardfork-specific properties set correctly.
|
|
810
|
+
*/
|
|
811
|
+
isLegacy(): this is (TransactionResponse & {
|
|
812
|
+
accessList: null;
|
|
813
|
+
maxFeePerGas: null;
|
|
814
|
+
maxPriorityFeePerGas: null;
|
|
815
|
+
});
|
|
816
|
+
/**
|
|
817
|
+
* Returns true if the transaction is a Berlin (i.e. ``type == 1``)
|
|
818
|
+
* transaction. See [[link-eip-2070]].
|
|
819
|
+
*
|
|
820
|
+
* This provides a Type Guard that this transaction will have
|
|
821
|
+
* the ``null``-ness for hardfork-specific properties set correctly.
|
|
822
|
+
*/
|
|
823
|
+
isBerlin(): this is (TransactionResponse & {
|
|
824
|
+
accessList: AccessList;
|
|
825
|
+
maxFeePerGas: null;
|
|
826
|
+
maxPriorityFeePerGas: null;
|
|
827
|
+
});
|
|
828
|
+
/**
|
|
829
|
+
* Returns true if the transaction is a London (i.e. ``type == 2``)
|
|
830
|
+
* transaction. See [[link-eip-1559]].
|
|
831
|
+
*
|
|
832
|
+
* This provides a Type Guard that this transaction will have
|
|
833
|
+
* the ``null``-ness for hardfork-specific properties set correctly.
|
|
834
|
+
*/
|
|
835
|
+
isLondon(): this is (TransactionResponse & {
|
|
836
|
+
accessList: AccessList;
|
|
837
|
+
maxFeePerGas: bigint;
|
|
838
|
+
maxPriorityFeePerGas: bigint;
|
|
839
|
+
});
|
|
840
|
+
/**
|
|
841
|
+
* Returns a filter which can be used to listen for orphan events
|
|
842
|
+
* that evict this transaction.
|
|
843
|
+
*/
|
|
844
|
+
removedEvent(): OrphanFilter;
|
|
845
|
+
/**
|
|
846
|
+
* Returns a filter which can be used to listen for orphan events
|
|
847
|
+
* that re-order this event against %%other%%.
|
|
848
|
+
*/
|
|
849
|
+
reorderedEvent(other?: TransactionResponse): OrphanFilter;
|
|
850
|
+
/**
|
|
851
|
+
* Returns a new TransactionResponse instance which has the ability to
|
|
852
|
+
* detect (and throw an error) if the transaction is replaced, which
|
|
853
|
+
* will begin scanning at %%startBlock%%.
|
|
854
|
+
*
|
|
855
|
+
* This should generally not be used by developers and is intended
|
|
856
|
+
* primarily for internal use. Setting an incorrect %%startBlock%% can
|
|
857
|
+
* have devastating performance consequences if used incorrectly.
|
|
858
|
+
*/
|
|
859
|
+
replaceableTransaction(startBlock: number): TransactionResponse;
|
|
860
|
+
}
|
|
861
|
+
/**
|
|
862
|
+
* An Orphan Filter allows detecting when an orphan block has
|
|
863
|
+
* resulted in dropping a block or transaction or has resulted
|
|
864
|
+
* in transactions changing order.
|
|
865
|
+
*
|
|
866
|
+
* Not currently fully supported.
|
|
867
|
+
*/
|
|
868
|
+
export type OrphanFilter = {
|
|
869
|
+
orphan: "drop-block";
|
|
870
|
+
hash: string;
|
|
871
|
+
number: number;
|
|
872
|
+
} | {
|
|
873
|
+
orphan: "drop-transaction";
|
|
874
|
+
tx: {
|
|
875
|
+
hash: string;
|
|
876
|
+
blockHash: string;
|
|
877
|
+
blockNumber: number;
|
|
878
|
+
};
|
|
879
|
+
other?: {
|
|
880
|
+
hash: string;
|
|
881
|
+
blockHash: string;
|
|
882
|
+
blockNumber: number;
|
|
883
|
+
};
|
|
884
|
+
} | {
|
|
885
|
+
orphan: "reorder-transaction";
|
|
886
|
+
tx: {
|
|
887
|
+
hash: string;
|
|
888
|
+
blockHash: string;
|
|
889
|
+
blockNumber: number;
|
|
890
|
+
};
|
|
891
|
+
other?: {
|
|
892
|
+
hash: string;
|
|
893
|
+
blockHash: string;
|
|
894
|
+
blockNumber: number;
|
|
895
|
+
};
|
|
896
|
+
} | {
|
|
897
|
+
orphan: "drop-log";
|
|
898
|
+
log: {
|
|
899
|
+
transactionHash: string;
|
|
900
|
+
blockHash: string;
|
|
901
|
+
blockNumber: number;
|
|
902
|
+
address: string;
|
|
903
|
+
data: string;
|
|
904
|
+
topics: ReadonlyArray<string>;
|
|
905
|
+
index: number;
|
|
906
|
+
};
|
|
907
|
+
};
|
|
908
|
+
/**
|
|
909
|
+
* A **TopicFilter** provides a struture to define bloom-filter
|
|
910
|
+
* queries.
|
|
911
|
+
*
|
|
912
|
+
* Each field that is ``null`` matches **any** value, a field that is
|
|
913
|
+
* a ``string`` must match exactly that value and and ``array`` is
|
|
914
|
+
* effectively an ``OR``-ed set, where any one of those values must
|
|
915
|
+
* match.
|
|
916
|
+
*/
|
|
917
|
+
export type TopicFilter = Array<null | string | Array<string>>;
|
|
918
|
+
/**
|
|
919
|
+
* An **EventFilter** allows efficiently filtering logs (also known as
|
|
920
|
+
* events) using bloom filters included within blocks.
|
|
921
|
+
*/
|
|
922
|
+
export interface EventFilter {
|
|
923
|
+
address?: AddressLike | Array<AddressLike>;
|
|
924
|
+
topics?: TopicFilter;
|
|
925
|
+
}
|
|
926
|
+
/**
|
|
927
|
+
* A **Filter** allows searching a specific range of blocks for mathcing
|
|
928
|
+
* logs.
|
|
929
|
+
*/
|
|
930
|
+
export interface Filter extends EventFilter {
|
|
931
|
+
/**
|
|
932
|
+
* The start block for the filter (inclusive).
|
|
933
|
+
*/
|
|
934
|
+
fromBlock?: BlockTag;
|
|
935
|
+
/**
|
|
936
|
+
* The end block for the filter (inclusive).
|
|
937
|
+
*/
|
|
938
|
+
toBlock?: BlockTag;
|
|
939
|
+
}
|
|
940
|
+
/**
|
|
941
|
+
* A **FilterByBlockHash** allows searching a specific block for mathcing
|
|
942
|
+
* logs.
|
|
943
|
+
*/
|
|
944
|
+
export interface FilterByBlockHash extends EventFilter {
|
|
945
|
+
/**
|
|
946
|
+
* The blockhash of the specific block for the filter.
|
|
947
|
+
*/
|
|
948
|
+
blockHash?: string;
|
|
949
|
+
}
|
|
950
|
+
/**
|
|
951
|
+
* A **ProviderEvent** provides the types of events that can be subscribed
|
|
952
|
+
* to on a [[Provider]].
|
|
953
|
+
*
|
|
954
|
+
* Each provider may include additional possible events it supports, but
|
|
955
|
+
* the most commonly supported are:
|
|
956
|
+
*
|
|
957
|
+
* **``"block"``** - calls the listener with the current block number on each
|
|
958
|
+
* new block.
|
|
959
|
+
*
|
|
960
|
+
* **``"error"``** - calls the listener on each async error that occurs during
|
|
961
|
+
* the event loop, with the error.
|
|
962
|
+
*
|
|
963
|
+
* **``"debug"``** - calls the listener on debug events, which can be used to
|
|
964
|
+
* troubleshoot network errors, provider problems, etc.
|
|
965
|
+
*
|
|
966
|
+
* **``transaction hash``** - calls the listener on each block after the
|
|
967
|
+
* transaction has been mined; generally ``.once`` is more appropriate for
|
|
968
|
+
* this event.
|
|
969
|
+
*
|
|
970
|
+
* **``Array``** - calls the listener on each log that matches the filter.
|
|
971
|
+
*
|
|
972
|
+
* [[EventFilter]] - calls the listener with each matching log
|
|
973
|
+
*/
|
|
974
|
+
export type ProviderEvent = string | Array<string | Array<string>> | EventFilter | OrphanFilter;
|
|
975
|
+
/**
|
|
976
|
+
* A **Provider** is the primary method to interact with the read-only
|
|
977
|
+
* content on Ethereum.
|
|
978
|
+
*
|
|
979
|
+
* It allows access to details about accounts, blocks and transactions
|
|
980
|
+
* and the ability to query event logs and simulate contract execution.
|
|
981
|
+
*
|
|
982
|
+
* Account data includes the [balance](getBalance),
|
|
983
|
+
* [transaction count](getTransactionCount), [code](getCode) and
|
|
984
|
+
* [state trie storage](getStorage).
|
|
985
|
+
*
|
|
986
|
+
* Simulating execution can be used to [call](call),
|
|
987
|
+
* [estimate gas](estimateGas) and
|
|
988
|
+
* [get transaction results](getTransactionResult).
|
|
989
|
+
*
|
|
990
|
+
* The [[broadcastTransaction]] is the only method which allows updating
|
|
991
|
+
* the blockchain, but it is usually accessed by a [[Signer]], since a
|
|
992
|
+
* private key must be used to sign the transaction before it can be
|
|
993
|
+
* broadcast.
|
|
994
|
+
*/
|
|
995
|
+
export interface Provider extends ContractRunner, EventEmitterable<ProviderEvent>, NameResolver {
|
|
996
|
+
/**
|
|
997
|
+
* The provider iteself.
|
|
998
|
+
*
|
|
999
|
+
* This is part of the necessary API for executing a contract, as
|
|
1000
|
+
* it provides a common property on any [[ContractRunner]] that
|
|
1001
|
+
* can be used to access the read-only portion of the runner.
|
|
1002
|
+
*/
|
|
1003
|
+
provider: this;
|
|
1004
|
+
/**
|
|
1005
|
+
* Shutdown any resources this provider is using. No additional
|
|
1006
|
+
* calls should be made to this provider after calling this.
|
|
1007
|
+
*/
|
|
1008
|
+
destroy(): void;
|
|
1009
|
+
/**
|
|
1010
|
+
* Get the current block number.
|
|
1011
|
+
*/
|
|
1012
|
+
getBlockNumber(): Promise<number>;
|
|
1013
|
+
/**
|
|
1014
|
+
* Get the connected [[Network]].
|
|
1015
|
+
*/
|
|
1016
|
+
getNetwork(): Promise<Network>;
|
|
1017
|
+
/**
|
|
1018
|
+
* Get the best guess at the recommended [[FeeData]].
|
|
1019
|
+
*/
|
|
1020
|
+
getFeeData(): Promise<FeeData>;
|
|
1021
|
+
/**
|
|
1022
|
+
* Get the account balance (in wei) of %%address%%. If %%blockTag%%
|
|
1023
|
+
* is specified and the node supports archive access for that
|
|
1024
|
+
* %%blockTag%%, the balance is as of that [[BlockTag]].
|
|
1025
|
+
*
|
|
1026
|
+
* @note On nodes without archive access enabled, the %%blockTag%% may be
|
|
1027
|
+
* **silently ignored** by the node, which may cause issues if relied on.
|
|
1028
|
+
*/
|
|
1029
|
+
getBalance(address: AddressLike, blockTag?: BlockTag): Promise<bigint>;
|
|
1030
|
+
/**
|
|
1031
|
+
* Get the number of transactions ever sent for %%address%%, which
|
|
1032
|
+
* is used as the ``nonce`` when sending a transaction. If
|
|
1033
|
+
* %%blockTag%% is specified and the node supports archive access
|
|
1034
|
+
* for that %%blockTag%%, the transaction count is as of that
|
|
1035
|
+
* [[BlockTag]].
|
|
1036
|
+
*
|
|
1037
|
+
* @note On nodes without archive access enabled, the %%blockTag%% may be
|
|
1038
|
+
* **silently ignored** by the node, which may cause issues if relied on.
|
|
1039
|
+
*/
|
|
1040
|
+
getTransactionCount(address: AddressLike, blockTag?: BlockTag): Promise<number>;
|
|
1041
|
+
/**
|
|
1042
|
+
* Get the bytecode for %%address%%.
|
|
1043
|
+
*
|
|
1044
|
+
* @note On nodes without archive access enabled, the %%blockTag%% may be
|
|
1045
|
+
* **silently ignored** by the node, which may cause issues if relied on.
|
|
1046
|
+
*/
|
|
1047
|
+
getCode(address: AddressLike, blockTag?: BlockTag): Promise<string>;
|
|
1048
|
+
/**
|
|
1049
|
+
* Get the storage slot value for %%address%% at slot %%position%%.
|
|
1050
|
+
*
|
|
1051
|
+
* @note On nodes without archive access enabled, the %%blockTag%% may be
|
|
1052
|
+
* **silently ignored** by the node, which may cause issues if relied on.
|
|
1053
|
+
*/
|
|
1054
|
+
getStorage(address: AddressLike, position: BigNumberish, blockTag?: BlockTag): Promise<string>;
|
|
1055
|
+
/**
|
|
1056
|
+
* Estimates the amount of gas required to executre %%tx%%.
|
|
1057
|
+
*/
|
|
1058
|
+
estimateGas(tx: TransactionRequest): Promise<bigint>;
|
|
1059
|
+
/**
|
|
1060
|
+
* Simulate the execution of %%tx%%. If the call reverts, it will
|
|
1061
|
+
* throw a [[CallExceptionError]] which includes the revert data.
|
|
1062
|
+
*/
|
|
1063
|
+
call(tx: TransactionRequest): Promise<string>;
|
|
1064
|
+
/**
|
|
1065
|
+
* Broadcasts the %%signedTx%% to the network, adding it to the
|
|
1066
|
+
* memory pool of any node for which the transaction meets the
|
|
1067
|
+
* rebroadcast requirements.
|
|
1068
|
+
*/
|
|
1069
|
+
broadcastTransaction(signedTx: string): Promise<TransactionResponse>;
|
|
1070
|
+
/**
|
|
1071
|
+
* Resolves to the block for %%blockHashOrBlockTag%%.
|
|
1072
|
+
*
|
|
1073
|
+
* If %%prefetchTxs%%, and the backend supports including transactions
|
|
1074
|
+
* with block requests, all transactions will be included and the
|
|
1075
|
+
* [[Block]] object will not need to make remote calls for getting
|
|
1076
|
+
* transactions.
|
|
1077
|
+
*/
|
|
1078
|
+
getBlock(blockHashOrBlockTag: BlockTag | string, prefetchTxs?: boolean): Promise<null | Block>;
|
|
1079
|
+
/**
|
|
1080
|
+
* Resolves to the transaction for %%hash%%.
|
|
1081
|
+
*
|
|
1082
|
+
* If the transaction is unknown or on pruning nodes which
|
|
1083
|
+
* discard old transactions this resolves to ``null``.
|
|
1084
|
+
*/
|
|
1085
|
+
getTransaction(hash: string): Promise<null | TransactionResponse>;
|
|
1086
|
+
/**
|
|
1087
|
+
* Resolves to the transaction receipt for %%hash%%, if mined.
|
|
1088
|
+
*
|
|
1089
|
+
* If the transaction has not been mined, is unknown or on
|
|
1090
|
+
* pruning nodes which discard old transactions this resolves to
|
|
1091
|
+
* ``null``.
|
|
1092
|
+
*/
|
|
1093
|
+
getTransactionReceipt(hash: string): Promise<null | TransactionReceipt>;
|
|
1094
|
+
/**
|
|
1095
|
+
* Resolves to the result returned by the executions of %%hash%%.
|
|
1096
|
+
*
|
|
1097
|
+
* This is only supported on nodes with archive access and with
|
|
1098
|
+
* the necessary debug APIs enabled.
|
|
1099
|
+
*/
|
|
1100
|
+
getTransactionResult(hash: string): Promise<null | string>;
|
|
1101
|
+
/**
|
|
1102
|
+
* Resolves to the list of Logs that match %%filter%%
|
|
1103
|
+
*/
|
|
1104
|
+
getLogs(filter: Filter | FilterByBlockHash): Promise<Array<Log>>;
|
|
1105
|
+
/**
|
|
1106
|
+
* Resolves to the address configured for the %%ensName%% or
|
|
1107
|
+
* ``null`` if unconfigured.
|
|
1108
|
+
*/
|
|
1109
|
+
resolveName(ensName: string): Promise<null | string>;
|
|
1110
|
+
/**
|
|
1111
|
+
* Resolves to the ENS name associated for the %%address%% or
|
|
1112
|
+
* ``null`` if the //primary name// is not configured.
|
|
1113
|
+
*
|
|
1114
|
+
* Users must perform additional steps to configure a //primary name//,
|
|
1115
|
+
* which is not currently common.
|
|
1116
|
+
*/
|
|
1117
|
+
lookupAddress(address: string): Promise<null | string>;
|
|
1118
|
+
/**
|
|
1119
|
+
* Waits until the transaction %%hash%% is mined and has %%confirms%%
|
|
1120
|
+
* confirmations.
|
|
1121
|
+
*/
|
|
1122
|
+
waitForTransaction(hash: string, confirms?: number, timeout?: number): Promise<null | TransactionReceipt>;
|
|
1123
|
+
/**
|
|
1124
|
+
* Resolves to the block at %%blockTag%% once it has been mined.
|
|
1125
|
+
*
|
|
1126
|
+
* This can be useful for waiting some number of blocks by using
|
|
1127
|
+
* the ``currentBlockNumber + N``.
|
|
1128
|
+
*/
|
|
1129
|
+
waitForBlock(blockTag?: BlockTag): Promise<Block>;
|
|
1130
|
+
}
|
|
1131
|
+
//# sourceMappingURL=provider.d.ts.map
|