quantum-coin-js-sdk 1.0.36 → 1.0.39
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.
- package/README.md +34 -0
- package/example/conversion-example.js +4 -4
- package/example/example-misc.js +0 -1
- package/example/example-rpc-send.js +0 -1
- package/example/example-send.js +0 -1
- package/example/example-token-pack-unpack.js +0 -1
- package/example/example-wallet-version4.js +0 -1
- package/example/example.js +5 -5
- package/example/node_modules/.bin/sdkgen +16 -0
- package/example/node_modules/.bin/sdkgen.cmd +17 -0
- package/example/node_modules/.bin/sdkgen.ps1 +28 -0
- package/example/node_modules/.package-lock.json +21 -99
- package/example/node_modules/quantumcoin/.github/workflows/publish-npmjs.yaml +22 -0
- package/example/node_modules/quantumcoin/LICENSE +21 -0
- package/example/node_modules/quantumcoin/README-SDK.md +828 -0
- package/example/node_modules/quantumcoin/README.md +197 -0
- package/example/node_modules/quantumcoin/config.d.ts +50 -0
- package/example/node_modules/quantumcoin/config.js +123 -0
- package/example/node_modules/quantumcoin/examples/AllSolidityTypes.sol +184 -0
- package/example/node_modules/quantumcoin/examples/SimpleIERC20.sol +74 -0
- package/example/node_modules/quantumcoin/examples/events.js +41 -0
- package/example/node_modules/quantumcoin/examples/events.ts +35 -0
- package/example/node_modules/quantumcoin/examples/example-generator-sdk-js.js +100 -0
- package/example/node_modules/quantumcoin/examples/example-generator-sdk-js.ts +77 -0
- package/example/node_modules/quantumcoin/examples/example-generator-sdk-ts.js +100 -0
- package/example/node_modules/quantumcoin/examples/example-generator-sdk-ts.ts +77 -0
- package/example/node_modules/quantumcoin/examples/example.js +67 -0
- package/example/node_modules/quantumcoin/examples/example.ts +56 -0
- package/example/node_modules/quantumcoin/examples/offline-signing.js +77 -0
- package/example/node_modules/quantumcoin/examples/offline-signing.ts +65 -0
- package/example/node_modules/quantumcoin/examples/package-lock.json +596 -0
- package/example/node_modules/quantumcoin/examples/package.json +32 -0
- package/example/node_modules/quantumcoin/examples/read-operations.js +32 -0
- package/example/node_modules/quantumcoin/examples/read-operations.ts +31 -0
- package/example/node_modules/quantumcoin/examples/sdk-generator-erc20.inline.json +251 -0
- package/example/node_modules/quantumcoin/examples/solidity-types.ts +43 -0
- package/example/node_modules/quantumcoin/examples/wallet-offline.js +36 -0
- package/example/node_modules/quantumcoin/examples/wallet-offline.ts +26 -0
- package/example/node_modules/quantumcoin/generate-sdk.js +1846 -0
- package/example/node_modules/quantumcoin/index.js +12 -0
- package/example/node_modules/quantumcoin/package.json +95 -0
- package/example/node_modules/quantumcoin/scripts/copy-declarations.js +31 -0
- package/example/node_modules/quantumcoin/scripts/run-all-one-by-one.js +151 -0
- package/example/node_modules/quantumcoin/src/abi/fragments.d.ts +42 -0
- package/example/node_modules/quantumcoin/src/abi/fragments.js +63 -0
- package/example/node_modules/quantumcoin/src/abi/index.d.ts +13 -0
- package/example/node_modules/quantumcoin/src/abi/index.js +9 -0
- package/example/node_modules/quantumcoin/src/abi/interface.d.ts +128 -0
- package/example/node_modules/quantumcoin/src/abi/interface.js +605 -0
- package/example/node_modules/quantumcoin/src/abi/js-abi-coder.d.ts +8 -0
- package/example/node_modules/quantumcoin/src/abi/js-abi-coder.js +538 -0
- package/example/node_modules/quantumcoin/src/constants.d.ts +61 -0
- package/example/node_modules/quantumcoin/src/constants.js +94 -0
- package/example/node_modules/quantumcoin/src/contract/contract-factory.d.ts +28 -0
- package/example/node_modules/quantumcoin/src/contract/contract-factory.js +111 -0
- package/example/node_modules/quantumcoin/src/contract/contract.d.ts +113 -0
- package/example/node_modules/quantumcoin/src/contract/contract.js +408 -0
- package/example/node_modules/quantumcoin/src/contract/index.d.ts +9 -0
- package/example/node_modules/quantumcoin/src/contract/index.js +9 -0
- package/example/node_modules/quantumcoin/src/errors/index.d.ts +92 -0
- package/example/node_modules/quantumcoin/src/errors/index.js +200 -0
- package/example/node_modules/quantumcoin/src/generator/index.d.ts +81 -0
- package/example/node_modules/quantumcoin/src/generator/index.js +1571 -0
- package/example/node_modules/quantumcoin/src/index.d.ts +122 -0
- package/example/node_modules/quantumcoin/src/index.js +41 -0
- package/example/node_modules/quantumcoin/src/internal/hex.d.ts +68 -0
- package/example/node_modules/quantumcoin/src/internal/hex.js +180 -0
- package/example/node_modules/quantumcoin/src/providers/extra-providers.d.ts +139 -0
- package/example/node_modules/quantumcoin/src/providers/extra-providers.js +614 -0
- package/example/node_modules/quantumcoin/src/providers/index.d.ts +17 -0
- package/example/node_modules/quantumcoin/src/providers/index.js +10 -0
- package/example/node_modules/quantumcoin/src/providers/json-rpc-provider.d.ts +12 -0
- package/example/node_modules/quantumcoin/src/providers/json-rpc-provider.js +89 -0
- package/example/node_modules/quantumcoin/src/providers/provider.d.ts +206 -0
- package/example/node_modules/quantumcoin/src/providers/provider.js +524 -0
- package/example/node_modules/quantumcoin/src/types/index.d.ts +214 -0
- package/example/node_modules/quantumcoin/src/types/index.js +9 -0
- package/example/node_modules/quantumcoin/src/utils/address.d.ts +58 -0
- package/example/node_modules/quantumcoin/src/utils/address.js +144 -0
- package/example/node_modules/quantumcoin/src/utils/encoding.d.ts +120 -0
- package/example/node_modules/quantumcoin/src/utils/encoding.js +306 -0
- package/example/node_modules/quantumcoin/src/utils/fixednumber.d.ts +57 -0
- package/example/node_modules/quantumcoin/src/utils/fixednumber.js +366 -0
- package/example/node_modules/quantumcoin/src/utils/hashing.d.ts +76 -0
- package/example/node_modules/quantumcoin/src/utils/hashing.js +298 -0
- package/example/node_modules/quantumcoin/src/utils/index.d.ts +63 -0
- package/example/node_modules/quantumcoin/src/utils/index.js +14 -0
- package/example/node_modules/quantumcoin/src/utils/result.d.ts +57 -0
- package/example/node_modules/quantumcoin/src/utils/result.js +128 -0
- package/example/node_modules/quantumcoin/src/utils/rlp.d.ts +12 -0
- package/example/node_modules/quantumcoin/src/utils/rlp.js +215 -0
- package/example/node_modules/quantumcoin/src/utils/units.d.ts +29 -0
- package/example/node_modules/quantumcoin/src/utils/units.js +107 -0
- package/example/node_modules/quantumcoin/src/wallet/index.d.ts +10 -0
- package/example/node_modules/quantumcoin/src/wallet/index.js +8 -0
- package/example/node_modules/quantumcoin/src/wallet/wallet.d.ts +192 -0
- package/example/node_modules/quantumcoin/src/wallet/wallet.js +713 -0
- package/example/node_modules/quantumcoin/test/e2e/all-solidity-types.dynamic.test.js +207 -0
- package/example/node_modules/quantumcoin/test/e2e/all-solidity-types.dynamic.test.ts +191 -0
- package/example/node_modules/quantumcoin/test/e2e/all-solidity-types.fixtures.js +231 -0
- package/example/node_modules/quantumcoin/test/e2e/all-solidity-types.generated-sdks.e2e.test.js +387 -0
- package/example/node_modules/quantumcoin/test/e2e/all-solidity-types.generated-sdks.e2e.test.ts +350 -0
- package/example/node_modules/quantumcoin/test/e2e/generator-interface.e2e.test.js +165 -0
- package/example/node_modules/quantumcoin/test/e2e/generator-interface.e2e.test.ts +160 -0
- package/example/node_modules/quantumcoin/test/e2e/helpers.js +59 -0
- package/example/node_modules/quantumcoin/test/e2e/signing-context-and-fee.e2e.test.js +141 -0
- package/example/node_modules/quantumcoin/test/e2e/signing-context-and-fee.e2e.test.ts +128 -0
- package/example/node_modules/quantumcoin/test/e2e/simple-erc20.generated-sdks.e2e.test.js +168 -0
- package/example/node_modules/quantumcoin/test/e2e/simple-erc20.generated-sdks.e2e.test.ts +141 -0
- package/example/node_modules/quantumcoin/test/e2e/transactional.test.js +245 -0
- package/example/node_modules/quantumcoin/test/e2e/transactional.test.ts +208 -0
- package/example/node_modules/quantumcoin/test/e2e/typed-generator.e2e.test.js +407 -0
- package/example/node_modules/quantumcoin/test/e2e/typed-generator.e2e.test.ts +337 -0
- package/example/node_modules/quantumcoin/test/fixtures/ConstructorParam.sol +23 -0
- package/example/node_modules/quantumcoin/test/fixtures/MultiContracts.sol +37 -0
- package/example/node_modules/quantumcoin/test/fixtures/SimpleStorage.sol +18 -0
- package/example/node_modules/quantumcoin/test/fixtures/StakingContract.abi.json +1 -0
- package/example/node_modules/quantumcoin/test/integration/ipc-provider.test.js +49 -0
- package/example/node_modules/quantumcoin/test/integration/ipc-provider.test.ts +44 -0
- package/example/node_modules/quantumcoin/test/integration/provider.test.js +88 -0
- package/example/node_modules/quantumcoin/test/integration/provider.test.ts +85 -0
- package/example/node_modules/quantumcoin/test/integration/ws-provider.test.js +41 -0
- package/example/node_modules/quantumcoin/test/integration/ws-provider.test.ts +38 -0
- package/example/node_modules/quantumcoin/test/security/abi-decoder-bounds.test.js +122 -0
- package/example/node_modules/quantumcoin/test/security/contract-overrides.test.js +112 -0
- package/example/node_modules/quantumcoin/test/security/generator-injection.test.js +195 -0
- package/example/node_modules/quantumcoin/test/security/malformed-input.test.js +330 -0
- package/example/node_modules/quantumcoin/test/security/malformed-input.test.ts +35 -0
- package/example/node_modules/quantumcoin/test/security/rpc-numeric-bounds.test.js +81 -0
- package/example/node_modules/quantumcoin/test/security/rpc-trust.test.js +202 -0
- package/example/node_modules/quantumcoin/test/unit/_encrypted-output.txt +6 -0
- package/example/node_modules/quantumcoin/test/unit/_log-encrypted-jsons.js +45 -0
- package/example/node_modules/quantumcoin/test/unit/_write-keystore-fixture.js +16 -0
- package/example/node_modules/quantumcoin/test/unit/abi-interface.test.js +110 -0
- package/example/node_modules/quantumcoin/test/unit/abi-interface.test.ts +109 -0
- package/example/node_modules/quantumcoin/test/unit/address-wallet.test.js +923 -0
- package/example/node_modules/quantumcoin/test/unit/address-wallet.test.ts +877 -0
- package/example/node_modules/quantumcoin/test/unit/browser-provider.test.js +85 -0
- package/example/node_modules/quantumcoin/test/unit/browser-provider.test.ts +79 -0
- package/example/node_modules/quantumcoin/test/unit/contract.test.js +85 -0
- package/example/node_modules/quantumcoin/test/unit/contract.test.ts +83 -0
- package/example/node_modules/quantumcoin/test/unit/encoding-units-rlp.test.js +127 -0
- package/example/node_modules/quantumcoin/test/unit/encoding-units-rlp.test.ts +91 -0
- package/example/node_modules/quantumcoin/test/unit/errors.test.js +77 -0
- package/example/node_modules/quantumcoin/test/unit/errors.test.ts +76 -0
- package/example/node_modules/quantumcoin/test/unit/filter-by-blockhash.test.js +55 -0
- package/example/node_modules/quantumcoin/test/unit/filter-by-blockhash.test.ts +54 -0
- package/example/node_modules/quantumcoin/test/unit/fixednumber.test.js +656 -0
- package/example/node_modules/quantumcoin/test/unit/fixednumber.test.ts +660 -0
- package/example/node_modules/quantumcoin/test/unit/fixtures/encrypted-keystores-48-32-36.js +9 -0
- package/example/node_modules/quantumcoin/test/unit/generate-contract-cli.test.js +42 -0
- package/example/node_modules/quantumcoin/test/unit/generate-contract-cli.test.ts +41 -0
- package/example/node_modules/quantumcoin/test/unit/generate-sdk-artifacts-json.test.js +113 -0
- package/example/node_modules/quantumcoin/test/unit/generate-sdk-artifacts-json.test.ts +110 -0
- package/example/node_modules/quantumcoin/test/unit/generator.test.js +149 -0
- package/example/node_modules/quantumcoin/test/unit/generator.test.ts +148 -0
- package/example/node_modules/quantumcoin/test/unit/hashing.test.js +64 -0
- package/example/node_modules/quantumcoin/test/unit/hashing.test.ts +63 -0
- package/example/node_modules/quantumcoin/test/unit/init.test.js +39 -0
- package/example/node_modules/quantumcoin/test/unit/init.test.ts +38 -0
- package/example/node_modules/quantumcoin/test/unit/interface.test.js +56 -0
- package/example/node_modules/quantumcoin/test/unit/interface.test.ts +54 -0
- package/example/node_modules/quantumcoin/test/unit/internal-hex.test.js +81 -0
- package/example/node_modules/quantumcoin/test/unit/internal-hex.test.ts +80 -0
- package/example/node_modules/quantumcoin/test/unit/populate-transaction.test.js +98 -0
- package/example/node_modules/quantumcoin/test/unit/populate-transaction.test.ts +64 -0
- package/example/node_modules/quantumcoin/test/unit/providers.test.js +252 -0
- package/example/node_modules/quantumcoin/test/unit/providers.test.ts +251 -0
- package/example/node_modules/quantumcoin/test/unit/result.test.js +80 -0
- package/example/node_modules/quantumcoin/test/unit/result.test.ts +79 -0
- package/example/node_modules/quantumcoin/test/unit/solidity-types.test.js +49 -0
- package/example/node_modules/quantumcoin/test/unit/solidity-types.test.ts +39 -0
- package/example/node_modules/quantumcoin/test/unit/utils.test.js +57 -0
- package/example/node_modules/quantumcoin/test/unit/utils.test.ts +56 -0
- package/example/node_modules/quantumcoin/test/verbose-logger.js +74 -0
- package/example/node_modules/quantumcoin/tsconfig.build.json +14 -0
- package/example/node_modules/seed-words/.github/workflows/publish-npmjs.yaml +22 -0
- package/example/node_modules/seed-words/BUILD.md +7 -0
- package/example/node_modules/seed-words/LICENSE +121 -0
- package/example/node_modules/seed-words/README.md +67 -0
- package/example/node_modules/seed-words/dist/seedwords.d.ts +39 -0
- package/example/node_modules/seed-words/package.json +27 -0
- package/example/node_modules/seed-words/seedwords.js +315 -0
- package/example/node_modules/seed-words/seedwords.txt +65536 -0
- package/example/node_modules/seed-words/tsconfig.json +21 -0
- package/example/package-lock.json +23 -101
- package/example/package.json +1 -1
- package/index.d.ts +32 -0
- package/index.js +90 -0
- package/package.json +2 -2
- package/tests/get-gas-price.test.js +59 -0
- package/tests/scrypt.test.js +128 -0
- package/example/node_modules/@adraffy/ens-normalize/LICENSE +0 -21
- package/example/node_modules/@adraffy/ens-normalize/README.md +0 -206
- package/example/node_modules/@adraffy/ens-normalize/dist/all.js +0 -1611
- package/example/node_modules/@adraffy/ens-normalize/dist/all.min.js +0 -1
- package/example/node_modules/@adraffy/ens-normalize/dist/index-xnf.cjs +0 -1077
- package/example/node_modules/@adraffy/ens-normalize/dist/index-xnf.min.js +0 -1
- package/example/node_modules/@adraffy/ens-normalize/dist/index-xnf.mjs +0 -1065
- package/example/node_modules/@adraffy/ens-normalize/dist/index.cjs +0 -1252
- package/example/node_modules/@adraffy/ens-normalize/dist/index.d.ts +0 -59
- package/example/node_modules/@adraffy/ens-normalize/dist/index.min.js +0 -1
- package/example/node_modules/@adraffy/ens-normalize/dist/index.mjs +0 -1240
- package/example/node_modules/@adraffy/ens-normalize/dist/nf.min.js +0 -1
- package/example/node_modules/@adraffy/ens-normalize/package.json +0 -76
- package/example/node_modules/@noble/curves/LICENSE +0 -21
- package/example/node_modules/@noble/curves/README.md +0 -1074
- package/example/node_modules/@noble/curves/_shortw_utils.d.ts +0 -62
- package/example/node_modules/@noble/curves/_shortw_utils.d.ts.map +0 -1
- package/example/node_modules/@noble/curves/_shortw_utils.js +0 -22
- package/example/node_modules/@noble/curves/_shortw_utils.js.map +0 -1
- package/example/node_modules/@noble/curves/abstract/bls.d.ts +0 -103
- package/example/node_modules/@noble/curves/abstract/bls.d.ts.map +0 -1
- package/example/node_modules/@noble/curves/abstract/bls.js +0 -239
- package/example/node_modules/@noble/curves/abstract/bls.js.map +0 -1
- package/example/node_modules/@noble/curves/abstract/curve.d.ts +0 -70
- package/example/node_modules/@noble/curves/abstract/curve.d.ts.map +0 -1
- package/example/node_modules/@noble/curves/abstract/curve.js +0 -161
- package/example/node_modules/@noble/curves/abstract/curve.js.map +0 -1
- package/example/node_modules/@noble/curves/abstract/edwards.d.ts +0 -89
- package/example/node_modules/@noble/curves/abstract/edwards.d.ts.map +0 -1
- package/example/node_modules/@noble/curves/abstract/edwards.js +0 -429
- package/example/node_modules/@noble/curves/abstract/edwards.js.map +0 -1
- package/example/node_modules/@noble/curves/abstract/hash-to-curve.d.ts +0 -57
- package/example/node_modules/@noble/curves/abstract/hash-to-curve.d.ts.map +0 -1
- package/example/node_modules/@noble/curves/abstract/hash-to-curve.js +0 -181
- package/example/node_modules/@noble/curves/abstract/hash-to-curve.js.map +0 -1
- package/example/node_modules/@noble/curves/abstract/modular.d.ts +0 -123
- package/example/node_modules/@noble/curves/abstract/modular.d.ts.map +0 -1
- package/example/node_modules/@noble/curves/abstract/modular.js +0 -439
- package/example/node_modules/@noble/curves/abstract/modular.js.map +0 -1
- package/example/node_modules/@noble/curves/abstract/montgomery.d.ts +0 -26
- package/example/node_modules/@noble/curves/abstract/montgomery.d.ts.map +0 -1
- package/example/node_modules/@noble/curves/abstract/montgomery.js +0 -161
- package/example/node_modules/@noble/curves/abstract/montgomery.js.map +0 -1
- package/example/node_modules/@noble/curves/abstract/poseidon.d.ts +0 -30
- package/example/node_modules/@noble/curves/abstract/poseidon.d.ts.map +0 -1
- package/example/node_modules/@noble/curves/abstract/poseidon.js +0 -114
- package/example/node_modules/@noble/curves/abstract/poseidon.js.map +0 -1
- package/example/node_modules/@noble/curves/abstract/utils.d.ts +0 -92
- package/example/node_modules/@noble/curves/abstract/utils.d.ts.map +0 -1
- package/example/node_modules/@noble/curves/abstract/utils.js +0 -288
- package/example/node_modules/@noble/curves/abstract/utils.js.map +0 -1
- package/example/node_modules/@noble/curves/abstract/weierstrass.d.ts +0 -241
- package/example/node_modules/@noble/curves/abstract/weierstrass.d.ts.map +0 -1
- package/example/node_modules/@noble/curves/abstract/weierstrass.js +0 -1063
- package/example/node_modules/@noble/curves/abstract/weierstrass.js.map +0 -1
- package/example/node_modules/@noble/curves/bls12-381.d.ts +0 -68
- package/example/node_modules/@noble/curves/bls12-381.d.ts.map +0 -1
- package/example/node_modules/@noble/curves/bls12-381.js +0 -1175
- package/example/node_modules/@noble/curves/bls12-381.js.map +0 -1
- package/example/node_modules/@noble/curves/bn254.d.ts +0 -8
- package/example/node_modules/@noble/curves/bn254.d.ts.map +0 -1
- package/example/node_modules/@noble/curves/bn254.js +0 -25
- package/example/node_modules/@noble/curves/bn254.js.map +0 -1
- package/example/node_modules/@noble/curves/ed25519.d.ts +0 -76
- package/example/node_modules/@noble/curves/ed25519.d.ts.map +0 -1
- package/example/node_modules/@noble/curves/ed25519.js +0 -439
- package/example/node_modules/@noble/curves/ed25519.js.map +0 -1
- package/example/node_modules/@noble/curves/ed448.d.ts +0 -65
- package/example/node_modules/@noble/curves/ed448.d.ts.map +0 -1
- package/example/node_modules/@noble/curves/ed448.js +0 -397
- package/example/node_modules/@noble/curves/ed448.js.map +0 -1
- package/example/node_modules/@noble/curves/esm/_shortw_utils.js +0 -17
- package/example/node_modules/@noble/curves/esm/_shortw_utils.js.map +0 -1
- package/example/node_modules/@noble/curves/esm/abstract/bls.js +0 -235
- package/example/node_modules/@noble/curves/esm/abstract/bls.js.map +0 -1
- package/example/node_modules/@noble/curves/esm/abstract/curve.js +0 -156
- package/example/node_modules/@noble/curves/esm/abstract/curve.js.map +0 -1
- package/example/node_modules/@noble/curves/esm/abstract/edwards.js +0 -425
- package/example/node_modules/@noble/curves/esm/abstract/edwards.js.map +0 -1
- package/example/node_modules/@noble/curves/esm/abstract/hash-to-curve.js +0 -173
- package/example/node_modules/@noble/curves/esm/abstract/hash-to-curve.js.map +0 -1
- package/example/node_modules/@noble/curves/esm/abstract/modular.js +0 -416
- package/example/node_modules/@noble/curves/esm/abstract/modular.js.map +0 -1
- package/example/node_modules/@noble/curves/esm/abstract/montgomery.js +0 -157
- package/example/node_modules/@noble/curves/esm/abstract/montgomery.js.map +0 -1
- package/example/node_modules/@noble/curves/esm/abstract/poseidon.js +0 -108
- package/example/node_modules/@noble/curves/esm/abstract/poseidon.js.map +0 -1
- package/example/node_modules/@noble/curves/esm/abstract/utils.js +0 -266
- package/example/node_modules/@noble/curves/esm/abstract/utils.js.map +0 -1
- package/example/node_modules/@noble/curves/esm/abstract/weierstrass.js +0 -1056
- package/example/node_modules/@noble/curves/esm/abstract/weierstrass.js.map +0 -1
- package/example/node_modules/@noble/curves/esm/bls12-381.js +0 -1172
- package/example/node_modules/@noble/curves/esm/bls12-381.js.map +0 -1
- package/example/node_modules/@noble/curves/esm/bn254.js +0 -22
- package/example/node_modules/@noble/curves/esm/bn254.js.map +0 -1
- package/example/node_modules/@noble/curves/esm/ed25519.js +0 -433
- package/example/node_modules/@noble/curves/esm/ed25519.js.map +0 -1
- package/example/node_modules/@noble/curves/esm/ed448.js +0 -392
- package/example/node_modules/@noble/curves/esm/ed448.js.map +0 -1
- package/example/node_modules/@noble/curves/esm/index.js +0 -3
- package/example/node_modules/@noble/curves/esm/index.js.map +0 -1
- package/example/node_modules/@noble/curves/esm/jubjub.js +0 -54
- package/example/node_modules/@noble/curves/esm/jubjub.js.map +0 -1
- package/example/node_modules/@noble/curves/esm/p256.js +0 -42
- package/example/node_modules/@noble/curves/esm/p256.js.map +0 -1
- package/example/node_modules/@noble/curves/esm/p384.js +0 -46
- package/example/node_modules/@noble/curves/esm/p384.js.map +0 -1
- package/example/node_modules/@noble/curves/esm/p521.js +0 -53
- package/example/node_modules/@noble/curves/esm/p521.js.map +0 -1
- package/example/node_modules/@noble/curves/esm/package.json +0 -4
- package/example/node_modules/@noble/curves/esm/pasta.js +0 -30
- package/example/node_modules/@noble/curves/esm/pasta.js.map +0 -1
- package/example/node_modules/@noble/curves/esm/secp256k1.js +0 -254
- package/example/node_modules/@noble/curves/esm/secp256k1.js.map +0 -1
- package/example/node_modules/@noble/curves/index.d.ts +0 -1
- package/example/node_modules/@noble/curves/index.d.ts.map +0 -1
- package/example/node_modules/@noble/curves/index.js +0 -3
- package/example/node_modules/@noble/curves/index.js.map +0 -1
- package/example/node_modules/@noble/curves/jubjub.d.ts +0 -9
- package/example/node_modules/@noble/curves/jubjub.d.ts.map +0 -1
- package/example/node_modules/@noble/curves/jubjub.js +0 -59
- package/example/node_modules/@noble/curves/jubjub.js.map +0 -1
- package/example/node_modules/@noble/curves/p256.d.ts +0 -105
- package/example/node_modules/@noble/curves/p256.d.ts.map +0 -1
- package/example/node_modules/@noble/curves/p256.js +0 -45
- package/example/node_modules/@noble/curves/p256.js.map +0 -1
- package/example/node_modules/@noble/curves/p384.d.ts +0 -105
- package/example/node_modules/@noble/curves/p384.d.ts.map +0 -1
- package/example/node_modules/@noble/curves/p384.js +0 -49
- package/example/node_modules/@noble/curves/p384.js.map +0 -1
- package/example/node_modules/@noble/curves/p521.d.ts +0 -105
- package/example/node_modules/@noble/curves/p521.d.ts.map +0 -1
- package/example/node_modules/@noble/curves/p521.js +0 -56
- package/example/node_modules/@noble/curves/p521.js.map +0 -1
- package/example/node_modules/@noble/curves/package.json +0 -181
- package/example/node_modules/@noble/curves/pasta.d.ts +0 -5
- package/example/node_modules/@noble/curves/pasta.d.ts.map +0 -1
- package/example/node_modules/@noble/curves/pasta.js +0 -33
- package/example/node_modules/@noble/curves/pasta.js.map +0 -1
- package/example/node_modules/@noble/curves/secp256k1.d.ts +0 -93
- package/example/node_modules/@noble/curves/secp256k1.d.ts.map +0 -1
- package/example/node_modules/@noble/curves/secp256k1.js +0 -257
- package/example/node_modules/@noble/curves/secp256k1.js.map +0 -1
- package/example/node_modules/@noble/curves/src/_shortw_utils.ts +0 -20
- package/example/node_modules/@noble/curves/src/abstract/bls.ts +0 -398
- package/example/node_modules/@noble/curves/src/abstract/curve.ts +0 -203
- package/example/node_modules/@noble/curves/src/abstract/edwards.ts +0 -513
- package/example/node_modules/@noble/curves/src/abstract/hash-to-curve.ts +0 -229
- package/example/node_modules/@noble/curves/src/abstract/modular.ts +0 -484
- package/example/node_modules/@noble/curves/src/abstract/montgomery.ts +0 -189
- package/example/node_modules/@noble/curves/src/abstract/poseidon.ts +0 -118
- package/example/node_modules/@noble/curves/src/abstract/utils.ts +0 -290
- package/example/node_modules/@noble/curves/src/abstract/weierstrass.ts +0 -1222
- package/example/node_modules/@noble/curves/src/bls12-381.ts +0 -1350
- package/example/node_modules/@noble/curves/src/bn254.ts +0 -21
- package/example/node_modules/@noble/curves/src/ed25519.ts +0 -489
- package/example/node_modules/@noble/curves/src/ed448.ts +0 -465
- package/example/node_modules/@noble/curves/src/index.ts +0 -1
- package/example/node_modules/@noble/curves/src/jubjub.ts +0 -58
- package/example/node_modules/@noble/curves/src/p256.ts +0 -48
- package/example/node_modules/@noble/curves/src/p384.ts +0 -52
- package/example/node_modules/@noble/curves/src/p521.ts +0 -68
- package/example/node_modules/@noble/curves/src/pasta.ts +0 -31
- package/example/node_modules/@noble/curves/src/secp256k1.ts +0 -274
- package/example/node_modules/@noble/hashes/LICENSE +0 -21
- package/example/node_modules/@noble/hashes/README.md +0 -534
- package/example/node_modules/@noble/hashes/_assert.d.ts +0 -22
- package/example/node_modules/@noble/hashes/_assert.js +0 -45
- package/example/node_modules/@noble/hashes/_assert.js.map +0 -1
- package/example/node_modules/@noble/hashes/_blake2.d.ts +0 -27
- package/example/node_modules/@noble/hashes/_blake2.js +0 -112
- package/example/node_modules/@noble/hashes/_blake2.js.map +0 -1
- package/example/node_modules/@noble/hashes/_sha2.d.ts +0 -23
- package/example/node_modules/@noble/hashes/_sha2.js +0 -118
- package/example/node_modules/@noble/hashes/_sha2.js.map +0 -1
- package/example/node_modules/@noble/hashes/_u64.d.ts +0 -54
- package/example/node_modules/@noble/hashes/_u64.js +0 -85
- package/example/node_modules/@noble/hashes/_u64.js.map +0 -1
- package/example/node_modules/@noble/hashes/argon2.d.ts +0 -16
- package/example/node_modules/@noble/hashes/argon2.js +0 -303
- package/example/node_modules/@noble/hashes/argon2.js.map +0 -1
- package/example/node_modules/@noble/hashes/blake2b.d.ts +0 -53
- package/example/node_modules/@noble/hashes/blake2b.js +0 -192
- package/example/node_modules/@noble/hashes/blake2b.js.map +0 -1
- package/example/node_modules/@noble/hashes/blake2s.d.ts +0 -47
- package/example/node_modules/@noble/hashes/blake2s.js +0 -122
- package/example/node_modules/@noble/hashes/blake2s.js.map +0 -1
- package/example/node_modules/@noble/hashes/blake3.d.ts +0 -46
- package/example/node_modules/@noble/hashes/blake3.js +0 -229
- package/example/node_modules/@noble/hashes/blake3.js.map +0 -1
- package/example/node_modules/@noble/hashes/crypto.d.ts +0 -1
- package/example/node_modules/@noble/hashes/crypto.js +0 -5
- package/example/node_modules/@noble/hashes/crypto.js.map +0 -1
- package/example/node_modules/@noble/hashes/cryptoNode.d.ts +0 -1
- package/example/node_modules/@noble/hashes/cryptoNode.js +0 -10
- package/example/node_modules/@noble/hashes/cryptoNode.js.map +0 -1
- package/example/node_modules/@noble/hashes/eskdf.d.ts +0 -46
- package/example/node_modules/@noble/hashes/eskdf.js +0 -162
- package/example/node_modules/@noble/hashes/eskdf.js.map +0 -1
- package/example/node_modules/@noble/hashes/esm/_assert.js +0 -37
- package/example/node_modules/@noble/hashes/esm/_assert.js.map +0 -1
- package/example/node_modules/@noble/hashes/esm/_blake2.js +0 -108
- package/example/node_modules/@noble/hashes/esm/_blake2.js.map +0 -1
- package/example/node_modules/@noble/hashes/esm/_sha2.js +0 -114
- package/example/node_modules/@noble/hashes/esm/_sha2.js.map +0 -1
- package/example/node_modules/@noble/hashes/esm/_u64.js +0 -62
- package/example/node_modules/@noble/hashes/esm/_u64.js.map +0 -1
- package/example/node_modules/@noble/hashes/esm/argon2.js +0 -297
- package/example/node_modules/@noble/hashes/esm/argon2.js.map +0 -1
- package/example/node_modules/@noble/hashes/esm/blake2b.js +0 -189
- package/example/node_modules/@noble/hashes/esm/blake2b.js.map +0 -1
- package/example/node_modules/@noble/hashes/esm/blake2s.js +0 -118
- package/example/node_modules/@noble/hashes/esm/blake2s.js.map +0 -1
- package/example/node_modules/@noble/hashes/esm/blake3.js +0 -226
- package/example/node_modules/@noble/hashes/esm/blake3.js.map +0 -1
- package/example/node_modules/@noble/hashes/esm/crypto.js +0 -2
- package/example/node_modules/@noble/hashes/esm/crypto.js.map +0 -1
- package/example/node_modules/@noble/hashes/esm/cryptoNode.js +0 -7
- package/example/node_modules/@noble/hashes/esm/cryptoNode.js.map +0 -1
- package/example/node_modules/@noble/hashes/esm/eskdf.js +0 -155
- package/example/node_modules/@noble/hashes/esm/eskdf.js.map +0 -1
- package/example/node_modules/@noble/hashes/esm/hkdf.js +0 -72
- package/example/node_modules/@noble/hashes/esm/hkdf.js.map +0 -1
- package/example/node_modules/@noble/hashes/esm/hmac.js +0 -77
- package/example/node_modules/@noble/hashes/esm/hmac.js.map +0 -1
- package/example/node_modules/@noble/hashes/esm/index.js +0 -3
- package/example/node_modules/@noble/hashes/esm/index.js.map +0 -1
- package/example/node_modules/@noble/hashes/esm/package.json +0 -10
- package/example/node_modules/@noble/hashes/esm/pbkdf2.js +0 -86
- package/example/node_modules/@noble/hashes/esm/pbkdf2.js.map +0 -1
- package/example/node_modules/@noble/hashes/esm/ripemd160.js +0 -104
- package/example/node_modules/@noble/hashes/esm/ripemd160.js.map +0 -1
- package/example/node_modules/@noble/hashes/esm/scrypt.js +0 -218
- package/example/node_modules/@noble/hashes/esm/scrypt.js.map +0 -1
- package/example/node_modules/@noble/hashes/esm/sha1.js +0 -87
- package/example/node_modules/@noble/hashes/esm/sha1.js.map +0 -1
- package/example/node_modules/@noble/hashes/esm/sha256.js +0 -126
- package/example/node_modules/@noble/hashes/esm/sha256.js.map +0 -1
- package/example/node_modules/@noble/hashes/esm/sha3-addons.js +0 -347
- package/example/node_modules/@noble/hashes/esm/sha3-addons.js.map +0 -1
- package/example/node_modules/@noble/hashes/esm/sha3.js +0 -208
- package/example/node_modules/@noble/hashes/esm/sha3.js.map +0 -1
- package/example/node_modules/@noble/hashes/esm/sha512.js +0 -231
- package/example/node_modules/@noble/hashes/esm/sha512.js.map +0 -1
- package/example/node_modules/@noble/hashes/esm/utils.js +0 -154
- package/example/node_modules/@noble/hashes/esm/utils.js.map +0 -1
- package/example/node_modules/@noble/hashes/hkdf.d.ts +0 -26
- package/example/node_modules/@noble/hashes/hkdf.js +0 -78
- package/example/node_modules/@noble/hashes/hkdf.js.map +0 -1
- package/example/node_modules/@noble/hashes/hmac.d.ts +0 -25
- package/example/node_modules/@noble/hashes/hmac.js +0 -82
- package/example/node_modules/@noble/hashes/hmac.js.map +0 -1
- package/example/node_modules/@noble/hashes/index.d.ts +0 -0
- package/example/node_modules/@noble/hashes/index.js +0 -3
- package/example/node_modules/@noble/hashes/index.js.map +0 -1
- package/example/node_modules/@noble/hashes/package.json +0 -174
- package/example/node_modules/@noble/hashes/pbkdf2.d.ts +0 -15
- package/example/node_modules/@noble/hashes/pbkdf2.js +0 -91
- package/example/node_modules/@noble/hashes/pbkdf2.js.map +0 -1
- package/example/node_modules/@noble/hashes/ripemd160.d.ts +0 -24
- package/example/node_modules/@noble/hashes/ripemd160.js +0 -108
- package/example/node_modules/@noble/hashes/ripemd160.js.map +0 -1
- package/example/node_modules/@noble/hashes/scrypt.d.ts +0 -29
- package/example/node_modules/@noble/hashes/scrypt.js +0 -223
- package/example/node_modules/@noble/hashes/scrypt.js.map +0 -1
- package/example/node_modules/@noble/hashes/sha1.d.ts +0 -21
- package/example/node_modules/@noble/hashes/sha1.js +0 -90
- package/example/node_modules/@noble/hashes/sha1.js.map +0 -1
- package/example/node_modules/@noble/hashes/sha256.d.ts +0 -34
- package/example/node_modules/@noble/hashes/sha256.js +0 -129
- package/example/node_modules/@noble/hashes/sha256.js.map +0 -1
- package/example/node_modules/@noble/hashes/sha3-addons.d.ts +0 -138
- package/example/node_modules/@noble/hashes/sha3-addons.js +0 -351
- package/example/node_modules/@noble/hashes/sha3-addons.js.map +0 -1
- package/example/node_modules/@noble/hashes/sha3.d.ts +0 -97
- package/example/node_modules/@noble/hashes/sha3.js +0 -213
- package/example/node_modules/@noble/hashes/sha3.js.map +0 -1
- package/example/node_modules/@noble/hashes/sha512.d.ts +0 -66
- package/example/node_modules/@noble/hashes/sha512.js +0 -235
- package/example/node_modules/@noble/hashes/sha512.js.map +0 -1
- package/example/node_modules/@noble/hashes/src/_assert.ts +0 -43
- package/example/node_modules/@noble/hashes/src/_blake2.ts +0 -128
- package/example/node_modules/@noble/hashes/src/_sha2.ts +0 -118
- package/example/node_modules/@noble/hashes/src/_u64.ts +0 -77
- package/example/node_modules/@noble/hashes/src/argon2.ts +0 -374
- package/example/node_modules/@noble/hashes/src/blake2b.ts +0 -205
- package/example/node_modules/@noble/hashes/src/blake2s.ts +0 -136
- package/example/node_modules/@noble/hashes/src/blake3.ts +0 -250
- package/example/node_modules/@noble/hashes/src/crypto.ts +0 -5
- package/example/node_modules/@noble/hashes/src/cryptoNode.ts +0 -7
- package/example/node_modules/@noble/hashes/src/eskdf.ts +0 -183
- package/example/node_modules/@noble/hashes/src/hkdf.ts +0 -79
- package/example/node_modules/@noble/hashes/src/hmac.ts +0 -81
- package/example/node_modules/@noble/hashes/src/index.ts +0 -1
- package/example/node_modules/@noble/hashes/src/pbkdf2.ts +0 -97
- package/example/node_modules/@noble/hashes/src/ripemd160.ts +0 -110
- package/example/node_modules/@noble/hashes/src/scrypt.ts +0 -240
- package/example/node_modules/@noble/hashes/src/sha1.ts +0 -88
- package/example/node_modules/@noble/hashes/src/sha256.ts +0 -133
- package/example/node_modules/@noble/hashes/src/sha3-addons.ts +0 -398
- package/example/node_modules/@noble/hashes/src/sha3.ts +0 -223
- package/example/node_modules/@noble/hashes/src/sha512.ts +0 -246
- package/example/node_modules/@noble/hashes/src/utils.ts +0 -215
- package/example/node_modules/@noble/hashes/utils.d.ts +0 -90
- package/example/node_modules/@noble/hashes/utils.js +0 -174
- package/example/node_modules/@noble/hashes/utils.js.map +0 -1
- package/example/node_modules/@types/node/LICENSE +0 -21
- package/example/node_modules/@types/node/README.md +0 -15
- package/example/node_modules/@types/node/assert/strict.d.ts +0 -8
- package/example/node_modules/@types/node/assert.d.ts +0 -1040
- package/example/node_modules/@types/node/async_hooks.d.ts +0 -541
- package/example/node_modules/@types/node/buffer.buffer.d.ts +0 -385
- package/example/node_modules/@types/node/buffer.d.ts +0 -1933
- package/example/node_modules/@types/node/child_process.d.ts +0 -1549
- package/example/node_modules/@types/node/cluster.d.ts +0 -579
- package/example/node_modules/@types/node/console.d.ts +0 -452
- package/example/node_modules/@types/node/constants.d.ts +0 -19
- package/example/node_modules/@types/node/crypto.d.ts +0 -4451
- package/example/node_modules/@types/node/dgram.d.ts +0 -596
- package/example/node_modules/@types/node/diagnostics_channel.d.ts +0 -554
- package/example/node_modules/@types/node/dns/promises.d.ts +0 -476
- package/example/node_modules/@types/node/dns.d.ts +0 -865
- package/example/node_modules/@types/node/dom-events.d.ts +0 -124
- package/example/node_modules/@types/node/domain.d.ts +0 -170
- package/example/node_modules/@types/node/events.d.ts +0 -931
- package/example/node_modules/@types/node/fs/promises.d.ts +0 -1264
- package/example/node_modules/@types/node/fs.d.ts +0 -4390
- package/example/node_modules/@types/node/globals.d.ts +0 -597
- package/example/node_modules/@types/node/globals.global.d.ts +0 -1
- package/example/node_modules/@types/node/globals.typedarray.d.ts +0 -21
- package/example/node_modules/@types/node/http.d.ts +0 -1921
- package/example/node_modules/@types/node/http2.d.ts +0 -2555
- package/example/node_modules/@types/node/https.d.ts +0 -544
- package/example/node_modules/@types/node/index.d.ts +0 -94
- package/example/node_modules/@types/node/inspector.d.ts +0 -3966
- package/example/node_modules/@types/node/module.d.ts +0 -301
- package/example/node_modules/@types/node/net.d.ts +0 -1001
- package/example/node_modules/@types/node/os.d.ts +0 -495
- package/example/node_modules/@types/node/package.json +0 -224
- package/example/node_modules/@types/node/path.d.ts +0 -200
- package/example/node_modules/@types/node/perf_hooks.d.ts +0 -941
- package/example/node_modules/@types/node/process.d.ts +0 -1912
- package/example/node_modules/@types/node/punycode.d.ts +0 -117
- package/example/node_modules/@types/node/querystring.d.ts +0 -153
- package/example/node_modules/@types/node/readline/promises.d.ts +0 -150
- package/example/node_modules/@types/node/readline.d.ts +0 -540
- package/example/node_modules/@types/node/repl.d.ts +0 -430
- package/example/node_modules/@types/node/sea.d.ts +0 -153
- package/example/node_modules/@types/node/sqlite.d.ts +0 -213
- package/example/node_modules/@types/node/stream/consumers.d.ts +0 -12
- package/example/node_modules/@types/node/stream/promises.d.ts +0 -83
- package/example/node_modules/@types/node/stream/web.d.ts +0 -606
- package/example/node_modules/@types/node/stream.d.ts +0 -1726
- package/example/node_modules/@types/node/string_decoder.d.ts +0 -67
- package/example/node_modules/@types/node/test.d.ts +0 -2098
- package/example/node_modules/@types/node/timers/promises.d.ts +0 -97
- package/example/node_modules/@types/node/timers.d.ts +0 -240
- package/example/node_modules/@types/node/tls.d.ts +0 -1220
- package/example/node_modules/@types/node/trace_events.d.ts +0 -197
- package/example/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -385
- package/example/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -19
- package/example/node_modules/@types/node/ts5.6/index.d.ts +0 -94
- package/example/node_modules/@types/node/tty.d.ts +0 -208
- package/example/node_modules/@types/node/url.d.ts +0 -969
- package/example/node_modules/@types/node/util.d.ts +0 -2301
- package/example/node_modules/@types/node/v8.d.ts +0 -808
- package/example/node_modules/@types/node/vm.d.ts +0 -922
- package/example/node_modules/@types/node/wasi.d.ts +0 -181
- package/example/node_modules/@types/node/worker_threads.d.ts +0 -712
- package/example/node_modules/@types/node/zlib.d.ts +0 -539
- package/example/node_modules/aes-js/LICENSE.txt +0 -22
- package/example/node_modules/aes-js/README.md +0 -406
- package/example/node_modules/aes-js/aes-js-4.0.0-beta.4.tgz +0 -0
- package/example/node_modules/aes-js/bower.json +0 -32
- package/example/node_modules/aes-js/index.js +0 -803
- package/example/node_modules/aes-js/lib.commonjs/README.md +0 -6
- package/example/node_modules/aes-js/lib.commonjs/aes.d.ts +0 -9
- package/example/node_modules/aes-js/lib.commonjs/aes.d.ts.map +0 -1
- package/example/node_modules/aes-js/lib.commonjs/aes.js +0 -202
- package/example/node_modules/aes-js/lib.commonjs/aes.js.map +0 -1
- package/example/node_modules/aes-js/lib.commonjs/index.d.ts +0 -9
- package/example/node_modules/aes-js/lib.commonjs/index.d.ts.map +0 -1
- package/example/node_modules/aes-js/lib.commonjs/index.js +0 -21
- package/example/node_modules/aes-js/lib.commonjs/index.js.map +0 -1
- package/example/node_modules/aes-js/lib.commonjs/mode-cbc.d.ts +0 -9
- package/example/node_modules/aes-js/lib.commonjs/mode-cbc.d.ts.map +0 -1
- package/example/node_modules/aes-js/lib.commonjs/mode-cbc.js +0 -66
- package/example/node_modules/aes-js/lib.commonjs/mode-cbc.js.map +0 -1
- package/example/node_modules/aes-js/lib.commonjs/mode-cfb.d.ts +0 -10
- package/example/node_modules/aes-js/lib.commonjs/mode-cfb.d.ts.map +0 -1
- package/example/node_modules/aes-js/lib.commonjs/mode-cfb.js +0 -81
- package/example/node_modules/aes-js/lib.commonjs/mode-cfb.js.map +0 -1
- package/example/node_modules/aes-js/lib.commonjs/mode-ctr.d.ts +0 -12
- package/example/node_modules/aes-js/lib.commonjs/mode-ctr.d.ts.map +0 -1
- package/example/node_modules/aes-js/lib.commonjs/mode-ctr.js +0 -86
- package/example/node_modules/aes-js/lib.commonjs/mode-ctr.js.map +0 -1
- package/example/node_modules/aes-js/lib.commonjs/mode-ecb.d.ts +0 -7
- package/example/node_modules/aes-js/lib.commonjs/mode-ecb.d.ts.map +0 -1
- package/example/node_modules/aes-js/lib.commonjs/mode-ecb.js +0 -32
- package/example/node_modules/aes-js/lib.commonjs/mode-ecb.js.map +0 -1
- package/example/node_modules/aes-js/lib.commonjs/mode-ofb.d.ts +0 -9
- package/example/node_modules/aes-js/lib.commonjs/mode-ofb.d.ts.map +0 -1
- package/example/node_modules/aes-js/lib.commonjs/mode-ofb.js +0 -61
- package/example/node_modules/aes-js/lib.commonjs/mode-ofb.js.map +0 -1
- package/example/node_modules/aes-js/lib.commonjs/mode.d.ts +0 -9
- package/example/node_modules/aes-js/lib.commonjs/mode.d.ts.map +0 -1
- package/example/node_modules/aes-js/lib.commonjs/mode.js +0 -17
- package/example/node_modules/aes-js/lib.commonjs/mode.js.map +0 -1
- package/example/node_modules/aes-js/lib.commonjs/package.json +0 -3
- package/example/node_modules/aes-js/lib.commonjs/padding.d.ts +0 -3
- package/example/node_modules/aes-js/lib.commonjs/padding.d.ts.map +0 -1
- package/example/node_modules/aes-js/lib.commonjs/padding.js +0 -31
- package/example/node_modules/aes-js/lib.commonjs/padding.js.map +0 -1
- package/example/node_modules/aes-js/lib.commonjs/tests.d.ts +0 -2
- package/example/node_modules/aes-js/lib.commonjs/tests.d.ts.map +0 -1
- package/example/node_modules/aes-js/lib.commonjs/tests.js +0 -109
- package/example/node_modules/aes-js/lib.commonjs/tests.js.map +0 -1
- package/example/node_modules/aes-js/lib.esm/README.md +0 -6
- package/example/node_modules/aes-js/lib.esm/aes.d.ts +0 -9
- package/example/node_modules/aes-js/lib.esm/aes.d.ts.map +0 -1
- package/example/node_modules/aes-js/lib.esm/aes.js +0 -198
- package/example/node_modules/aes-js/lib.esm/aes.js.map +0 -1
- package/example/node_modules/aes-js/lib.esm/index.d.ts +0 -9
- package/example/node_modules/aes-js/lib.esm/index.d.ts.map +0 -1
- package/example/node_modules/aes-js/lib.esm/index.js +0 -9
- package/example/node_modules/aes-js/lib.esm/index.js.map +0 -1
- package/example/node_modules/aes-js/lib.esm/mode-cbc.d.ts +0 -9
- package/example/node_modules/aes-js/lib.esm/mode-cbc.d.ts.map +0 -1
- package/example/node_modules/aes-js/lib.esm/mode-cbc.js +0 -62
- package/example/node_modules/aes-js/lib.esm/mode-cbc.js.map +0 -1
- package/example/node_modules/aes-js/lib.esm/mode-cfb.d.ts +0 -10
- package/example/node_modules/aes-js/lib.esm/mode-cfb.d.ts.map +0 -1
- package/example/node_modules/aes-js/lib.esm/mode-cfb.js +0 -77
- package/example/node_modules/aes-js/lib.esm/mode-cfb.js.map +0 -1
- package/example/node_modules/aes-js/lib.esm/mode-ctr.d.ts +0 -12
- package/example/node_modules/aes-js/lib.esm/mode-ctr.d.ts.map +0 -1
- package/example/node_modules/aes-js/lib.esm/mode-ctr.js +0 -82
- package/example/node_modules/aes-js/lib.esm/mode-ctr.js.map +0 -1
- package/example/node_modules/aes-js/lib.esm/mode-ecb.d.ts +0 -7
- package/example/node_modules/aes-js/lib.esm/mode-ecb.d.ts.map +0 -1
- package/example/node_modules/aes-js/lib.esm/mode-ecb.js +0 -28
- package/example/node_modules/aes-js/lib.esm/mode-ecb.js.map +0 -1
- package/example/node_modules/aes-js/lib.esm/mode-ofb.d.ts +0 -9
- package/example/node_modules/aes-js/lib.esm/mode-ofb.d.ts.map +0 -1
- package/example/node_modules/aes-js/lib.esm/mode-ofb.js +0 -57
- package/example/node_modules/aes-js/lib.esm/mode-ofb.js.map +0 -1
- package/example/node_modules/aes-js/lib.esm/mode.d.ts +0 -9
- package/example/node_modules/aes-js/lib.esm/mode.d.ts.map +0 -1
- package/example/node_modules/aes-js/lib.esm/mode.js +0 -13
- package/example/node_modules/aes-js/lib.esm/mode.js.map +0 -1
- package/example/node_modules/aes-js/lib.esm/package.json +0 -3
- package/example/node_modules/aes-js/lib.esm/padding.d.ts +0 -3
- package/example/node_modules/aes-js/lib.esm/padding.d.ts.map +0 -1
- package/example/node_modules/aes-js/lib.esm/padding.js +0 -26
- package/example/node_modules/aes-js/lib.esm/padding.js.map +0 -1
- package/example/node_modules/aes-js/lib.esm/tests.d.ts +0 -2
- package/example/node_modules/aes-js/lib.esm/tests.d.ts.map +0 -1
- package/example/node_modules/aes-js/lib.esm/tests.js +0 -81
- package/example/node_modules/aes-js/lib.esm/tests.js.map +0 -1
- package/example/node_modules/aes-js/misc/basedirs/lib.commonjs/README.md +0 -6
- package/example/node_modules/aes-js/misc/basedirs/lib.commonjs/package.json +0 -3
- package/example/node_modules/aes-js/misc/basedirs/lib.esm/README.md +0 -6
- package/example/node_modules/aes-js/misc/basedirs/lib.esm/package.json +0 -3
- package/example/node_modules/aes-js/package-commonjs.json +0 -3
- package/example/node_modules/aes-js/package.json +0 -56
- package/example/node_modules/aes-js/src.ts/aes.ts +0 -220
- package/example/node_modules/aes-js/src.ts/index.ts +0 -11
- package/example/node_modules/aes-js/src.ts/mode-cbc.ts +0 -61
- package/example/node_modules/aes-js/src.ts/mode-cfb.ts +0 -86
- package/example/node_modules/aes-js/src.ts/mode-ctr.ts +0 -82
- package/example/node_modules/aes-js/src.ts/mode-ecb.ts +0 -36
- package/example/node_modules/aes-js/src.ts/mode-ofb.ts +0 -51
- package/example/node_modules/aes-js/src.ts/mode.ts +0 -21
- package/example/node_modules/aes-js/src.ts/padding.ts +0 -29
- package/example/node_modules/aes-js/src.ts/tests.ts +0 -102
- package/example/node_modules/aes-js/tsconfig.base.json +0 -31
- package/example/node_modules/aes-js/tsconfig.commonjs.json +0 -7
- package/example/node_modules/aes-js/tsconfig.esm.json +0 -7
- package/example/node_modules/ethers/CHANGELOG.md +0 -478
- package/example/node_modules/ethers/FUNDING.json +0 -10
- package/example/node_modules/ethers/LICENSE.md +0 -21
- package/example/node_modules/ethers/README.md +0 -140
- package/example/node_modules/ethers/SECURITY.md +0 -34
- package/example/node_modules/ethers/dist/README.md +0 -22
- package/example/node_modules/ethers/dist/ethers.js +0 -26488
- package/example/node_modules/ethers/dist/ethers.js.map +0 -1
- package/example/node_modules/ethers/dist/ethers.min.js +0 -1
- package/example/node_modules/ethers/dist/ethers.umd.js +0 -26689
- package/example/node_modules/ethers/dist/ethers.umd.js.map +0 -1
- package/example/node_modules/ethers/dist/ethers.umd.min.js +0 -1
- package/example/node_modules/ethers/dist/wordlists-extra.js +0 -1509
- package/example/node_modules/ethers/dist/wordlists-extra.js.map +0 -1
- package/example/node_modules/ethers/dist/wordlists-extra.min.js +0 -1
- package/example/node_modules/ethers/lib.commonjs/README.md +0 -16
- package/example/node_modules/ethers/lib.commonjs/_version.d.ts +0 -5
- package/example/node_modules/ethers/lib.commonjs/_version.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/_version.js +0 -9
- package/example/node_modules/ethers/lib.commonjs/_version.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/abi/abi-coder.d.ts +0 -61
- package/example/node_modules/ethers/lib.commonjs/abi/abi-coder.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/abi/abi-coder.js +0 -210
- package/example/node_modules/ethers/lib.commonjs/abi/abi-coder.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/abi/bytes32.d.ts +0 -15
- package/example/node_modules/ethers/lib.commonjs/abi/bytes32.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/abi/bytes32.js +0 -45
- package/example/node_modules/ethers/lib.commonjs/abi/bytes32.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/abi/coders/abstract-coder.d.ts +0 -124
- package/example/node_modules/ethers/lib.commonjs/abi/coders/abstract-coder.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/abi/coders/abstract-coder.js +0 -472
- package/example/node_modules/ethers/lib.commonjs/abi/coders/abstract-coder.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/abi/coders/address.d.ts +0 -13
- package/example/node_modules/ethers/lib.commonjs/abi/coders/address.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/abi/coders/address.js +0 -33
- package/example/node_modules/ethers/lib.commonjs/abi/coders/address.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/abi/coders/anonymous.d.ts +0 -15
- package/example/node_modules/ethers/lib.commonjs/abi/coders/anonymous.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/abi/coders/anonymous.js +0 -27
- package/example/node_modules/ethers/lib.commonjs/abi/coders/anonymous.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/abi/coders/array.d.ts +0 -25
- package/example/node_modules/ethers/lib.commonjs/abi/coders/array.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/abi/coders/array.js +0 -165
- package/example/node_modules/ethers/lib.commonjs/abi/coders/array.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/abi/coders/boolean.d.ts +0 -13
- package/example/node_modules/ethers/lib.commonjs/abi/coders/boolean.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/abi/coders/boolean.js +0 -25
- package/example/node_modules/ethers/lib.commonjs/abi/coders/boolean.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/abi/coders/bytes.d.ts +0 -19
- package/example/node_modules/ethers/lib.commonjs/abi/coders/bytes.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/abi/coders/bytes.js +0 -39
- package/example/node_modules/ethers/lib.commonjs/abi/coders/bytes.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/abi/coders/fixed-bytes.d.ts +0 -15
- package/example/node_modules/ethers/lib.commonjs/abi/coders/fixed-bytes.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/abi/coders/fixed-bytes.js +0 -32
- package/example/node_modules/ethers/lib.commonjs/abi/coders/fixed-bytes.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/abi/coders/null.d.ts +0 -12
- package/example/node_modules/ethers/lib.commonjs/abi/coders/null.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/abi/coders/null.js +0 -28
- package/example/node_modules/ethers/lib.commonjs/abi/coders/null.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/abi/coders/number.d.ts +0 -16
- package/example/node_modules/ethers/lib.commonjs/abi/coders/number.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/abi/coders/number.js +0 -49
- package/example/node_modules/ethers/lib.commonjs/abi/coders/number.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/abi/coders/string.d.ts +0 -13
- package/example/node_modules/ethers/lib.commonjs/abi/coders/string.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/abi/coders/string.js +0 -25
- package/example/node_modules/ethers/lib.commonjs/abi/coders/string.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/abi/coders/tuple.d.ts +0 -16
- package/example/node_modules/ethers/lib.commonjs/abi/coders/tuple.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/abi/coders/tuple.js +0 -67
- package/example/node_modules/ethers/lib.commonjs/abi/coders/tuple.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/abi/fragments.d.ts +0 -466
- package/example/node_modules/ethers/lib.commonjs/abi/fragments.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/abi/fragments.js +0 -1331
- package/example/node_modules/ethers/lib.commonjs/abi/fragments.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/abi/index.d.ts +0 -18
- package/example/node_modules/ethers/lib.commonjs/abi/index.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/abi/index.js +0 -40
- package/example/node_modules/ethers/lib.commonjs/abi/index.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/abi/interface.d.ts +0 -382
- package/example/node_modules/ethers/lib.commonjs/abi/interface.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/abi/interface.js +0 -1110
- package/example/node_modules/ethers/lib.commonjs/abi/interface.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/abi/typed.d.ts +0 -570
- package/example/node_modules/ethers/lib.commonjs/abi/typed.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/abi/typed.js +0 -606
- package/example/node_modules/ethers/lib.commonjs/abi/typed.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/address/address.d.ts +0 -56
- package/example/node_modules/ethers/lib.commonjs/address/address.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/address/address.js +0 -161
- package/example/node_modules/ethers/lib.commonjs/address/address.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/address/checks.d.ts +0 -81
- package/example/node_modules/ethers/lib.commonjs/address/checks.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/address/checks.js +0 -120
- package/example/node_modules/ethers/lib.commonjs/address/checks.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/address/contract-address.d.ts +0 -48
- package/example/node_modules/ethers/lib.commonjs/address/contract-address.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/address/contract-address.js +0 -74
- package/example/node_modules/ethers/lib.commonjs/address/contract-address.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/address/index.d.ts +0 -49
- package/example/node_modules/ethers/lib.commonjs/address/index.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/address/index.js +0 -29
- package/example/node_modules/ethers/lib.commonjs/address/index.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/constants/addresses.d.ts +0 -7
- package/example/node_modules/ethers/lib.commonjs/constants/addresses.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/constants/addresses.js +0 -10
- package/example/node_modules/ethers/lib.commonjs/constants/addresses.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/constants/hashes.d.ts +0 -7
- package/example/node_modules/ethers/lib.commonjs/constants/hashes.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/constants/hashes.js +0 -10
- package/example/node_modules/ethers/lib.commonjs/constants/hashes.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/constants/index.d.ts +0 -10
- package/example/node_modules/ethers/lib.commonjs/constants/index.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/constants/index.js +0 -22
- package/example/node_modules/ethers/lib.commonjs/constants/index.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/constants/numbers.d.ts +0 -31
- package/example/node_modules/ethers/lib.commonjs/constants/numbers.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/constants/numbers.js +0 -34
- package/example/node_modules/ethers/lib.commonjs/constants/numbers.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/constants/strings.d.ts +0 -13
- package/example/node_modules/ethers/lib.commonjs/constants/strings.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/constants/strings.js +0 -17
- package/example/node_modules/ethers/lib.commonjs/constants/strings.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/contract/contract.d.ts +0 -168
- package/example/node_modules/ethers/lib.commonjs/contract/contract.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/contract/contract.js +0 -960
- package/example/node_modules/ethers/lib.commonjs/contract/contract.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/contract/factory.d.ts +0 -62
- package/example/node_modules/ethers/lib.commonjs/contract/factory.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/contract/factory.js +0 -116
- package/example/node_modules/ethers/lib.commonjs/contract/factory.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/contract/index.d.ts +0 -13
- package/example/node_modules/ethers/lib.commonjs/contract/index.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/contract/index.js +0 -24
- package/example/node_modules/ethers/lib.commonjs/contract/index.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/contract/types.d.ts +0 -193
- package/example/node_modules/ethers/lib.commonjs/contract/types.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/contract/types.js +0 -6
- package/example/node_modules/ethers/lib.commonjs/contract/types.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/contract/wrappers.d.ts +0 -143
- package/example/node_modules/ethers/lib.commonjs/contract/wrappers.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/contract/wrappers.js +0 -186
- package/example/node_modules/ethers/lib.commonjs/contract/wrappers.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/crypto/crypto-browser.d.ts +0 -15
- package/example/node_modules/ethers/lib.commonjs/crypto/crypto-browser.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/crypto/crypto-browser.js +0 -55
- package/example/node_modules/ethers/lib.commonjs/crypto/crypto-browser.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/crypto/crypto.d.ts +0 -2
- package/example/node_modules/ethers/lib.commonjs/crypto/crypto.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/crypto/crypto.js +0 -9
- package/example/node_modules/ethers/lib.commonjs/crypto/crypto.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/crypto/hmac.d.ts +0 -25
- package/example/node_modules/ethers/lib.commonjs/crypto/hmac.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/crypto/hmac.js +0 -51
- package/example/node_modules/ethers/lib.commonjs/crypto/hmac.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/crypto/index.d.ts +0 -25
- package/example/node_modules/ethers/lib.commonjs/crypto/index.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/crypto/index.js +0 -49
- package/example/node_modules/ethers/lib.commonjs/crypto/index.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/crypto/keccak.d.ts +0 -35
- package/example/node_modules/ethers/lib.commonjs/crypto/keccak.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/crypto/keccak.js +0 -52
- package/example/node_modules/ethers/lib.commonjs/crypto/keccak.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/crypto/pbkdf2.d.ts +0 -35
- package/example/node_modules/ethers/lib.commonjs/crypto/pbkdf2.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/crypto/pbkdf2.js +0 -53
- package/example/node_modules/ethers/lib.commonjs/crypto/pbkdf2.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/crypto/random.d.ts +0 -14
- package/example/node_modules/ethers/lib.commonjs/crypto/random.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/crypto/random.js +0 -38
- package/example/node_modules/ethers/lib.commonjs/crypto/random.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/crypto/ripemd160.d.ts +0 -25
- package/example/node_modules/ethers/lib.commonjs/crypto/ripemd160.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/crypto/ripemd160.js +0 -42
- package/example/node_modules/ethers/lib.commonjs/crypto/ripemd160.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/crypto/scrypt.d.ts +0 -82
- package/example/node_modules/ethers/lib.commonjs/crypto/scrypt.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/crypto/scrypt.js +0 -104
- package/example/node_modules/ethers/lib.commonjs/crypto/scrypt.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/crypto/sha2.d.ts +0 -47
- package/example/node_modules/ethers/lib.commonjs/crypto/sha2.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/crypto/sha2.js +0 -76
- package/example/node_modules/ethers/lib.commonjs/crypto/sha2.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/crypto/signature.d.ts +0 -183
- package/example/node_modules/ethers/lib.commonjs/crypto/signature.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/crypto/signature.js +0 -350
- package/example/node_modules/ethers/lib.commonjs/crypto/signature.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/crypto/signing-key.d.ts +0 -122
- package/example/node_modules/ethers/lib.commonjs/crypto/signing-key.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/crypto/signing-key.js +0 -170
- package/example/node_modules/ethers/lib.commonjs/crypto/signing-key.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/ethers.d.ts +0 -22
- package/example/node_modules/ethers/lib.commonjs/ethers.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/ethers.js +0 -215
- package/example/node_modules/ethers/lib.commonjs/ethers.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/hash/authorization.d.ts +0 -18
- package/example/node_modules/ethers/lib.commonjs/hash/authorization.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/hash/authorization.js +0 -30
- package/example/node_modules/ethers/lib.commonjs/hash/authorization.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/hash/id.d.ts +0 -13
- package/example/node_modules/ethers/lib.commonjs/hash/id.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/hash/id.js +0 -21
- package/example/node_modules/ethers/lib.commonjs/hash/id.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/hash/index.d.ts +0 -15
- package/example/node_modules/ethers/lib.commonjs/hash/index.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/hash/index.js +0 -30
- package/example/node_modules/ethers/lib.commonjs/hash/index.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/hash/message.d.ts +0 -36
- package/example/node_modules/ethers/lib.commonjs/hash/message.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/hash/message.js +0 -56
- package/example/node_modules/ethers/lib.commonjs/hash/message.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/hash/namehash.d.ts +0 -20
- package/example/node_modules/ethers/lib.commonjs/hash/namehash.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/hash/namehash.js +0 -91
- package/example/node_modules/ethers/lib.commonjs/hash/namehash.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/hash/solidity.d.ts +0 -31
- package/example/node_modules/ethers/lib.commonjs/hash/solidity.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/hash/solidity.js +0 -109
- package/example/node_modules/ethers/lib.commonjs/hash/solidity.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/hash/typed-data.d.ts +0 -150
- package/example/node_modules/ethers/lib.commonjs/hash/typed-data.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/hash/typed-data.js +0 -524
- package/example/node_modules/ethers/lib.commonjs/hash/typed-data.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/index.d.ts +0 -11
- package/example/node_modules/ethers/lib.commonjs/index.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/index.js +0 -15
- package/example/node_modules/ethers/lib.commonjs/index.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/package.json +0 -12
- package/example/node_modules/ethers/lib.commonjs/providers/abstract-provider.d.ts +0 -451
- package/example/node_modules/ethers/lib.commonjs/providers/abstract-provider.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/abstract-provider.js +0 -1409
- package/example/node_modules/ethers/lib.commonjs/providers/abstract-provider.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/abstract-signer.d.ts +0 -69
- package/example/node_modules/ethers/lib.commonjs/providers/abstract-signer.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/abstract-signer.js +0 -249
- package/example/node_modules/ethers/lib.commonjs/providers/abstract-signer.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/community.d.ts +0 -29
- package/example/node_modules/ethers/lib.commonjs/providers/community.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/community.js +0 -40
- package/example/node_modules/ethers/lib.commonjs/providers/community.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/contracts.d.ts +0 -36
- package/example/node_modules/ethers/lib.commonjs/providers/contracts.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/contracts.js +0 -3
- package/example/node_modules/ethers/lib.commonjs/providers/contracts.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/default-provider.d.ts +0 -49
- package/example/node_modules/ethers/lib.commonjs/providers/default-provider.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/default-provider.js +0 -200
- package/example/node_modules/ethers/lib.commonjs/providers/default-provider.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/ens-resolver.d.ts +0 -147
- package/example/node_modules/ethers/lib.commonjs/providers/ens-resolver.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/ens-resolver.js +0 -502
- package/example/node_modules/ethers/lib.commonjs/providers/ens-resolver.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/format.d.ts +0 -15
- package/example/node_modules/ethers/lib.commonjs/providers/format.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/format.js +0 -312
- package/example/node_modules/ethers/lib.commonjs/providers/format.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/formatting.d.ts +0 -318
- package/example/node_modules/ethers/lib.commonjs/providers/formatting.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/formatting.js +0 -10
- package/example/node_modules/ethers/lib.commonjs/providers/formatting.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/index.d.ts +0 -50
- package/example/node_modules/ethers/lib.commonjs/providers/index.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/index.js +0 -84
- package/example/node_modules/ethers/lib.commonjs/providers/index.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/network.d.ts +0 -99
- package/example/node_modules/ethers/lib.commonjs/providers/network.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/network.js +0 -369
- package/example/node_modules/ethers/lib.commonjs/providers/network.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/pagination.d.ts +0 -6
- package/example/node_modules/ethers/lib.commonjs/providers/pagination.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/pagination.js +0 -3
- package/example/node_modules/ethers/lib.commonjs/providers/pagination.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/plugin-fallback.d.ts +0 -13
- package/example/node_modules/ethers/lib.commonjs/providers/plugin-fallback.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/plugin-fallback.js +0 -31
- package/example/node_modules/ethers/lib.commonjs/providers/plugin-fallback.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/plugins-network.d.ts +0 -170
- package/example/node_modules/ethers/lib.commonjs/providers/plugins-network.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/plugins-network.js +0 -216
- package/example/node_modules/ethers/lib.commonjs/providers/plugins-network.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/provider-alchemy.d.ts +0 -50
- package/example/node_modules/ethers/lib.commonjs/providers/provider-alchemy.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/provider-alchemy.js +0 -151
- package/example/node_modules/ethers/lib.commonjs/providers/provider-alchemy.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/provider-ankr.d.ts +0 -63
- package/example/node_modules/ethers/lib.commonjs/providers/provider-ankr.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/provider-ankr.js +0 -143
- package/example/node_modules/ethers/lib.commonjs/providers/provider-ankr.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/provider-blockscout.d.ts +0 -59
- package/example/node_modules/ethers/lib.commonjs/providers/provider-blockscout.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/provider-blockscout.js +0 -145
- package/example/node_modules/ethers/lib.commonjs/providers/provider-blockscout.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/provider-browser.d.ts +0 -108
- package/example/node_modules/ethers/lib.commonjs/providers/provider-browser.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/provider-browser.js +0 -204
- package/example/node_modules/ethers/lib.commonjs/providers/provider-browser.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/provider-chainstack.d.ts +0 -46
- package/example/node_modules/ethers/lib.commonjs/providers/provider-chainstack.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/provider-chainstack.js +0 -102
- package/example/node_modules/ethers/lib.commonjs/providers/provider-chainstack.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/provider-cloudflare.d.ts +0 -14
- package/example/node_modules/ethers/lib.commonjs/providers/provider-cloudflare.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/provider-cloudflare.js +0 -26
- package/example/node_modules/ethers/lib.commonjs/providers/provider-cloudflare.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/provider-etherscan.d.ts +0 -152
- package/example/node_modules/ethers/lib.commonjs/providers/provider-etherscan.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/provider-etherscan.js +0 -601
- package/example/node_modules/ethers/lib.commonjs/providers/provider-etherscan.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/provider-fallback.d.ts +0 -115
- package/example/node_modules/ethers/lib.commonjs/providers/provider-fallback.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/provider-fallback.js +0 -624
- package/example/node_modules/ethers/lib.commonjs/providers/provider-fallback.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/provider-infura.d.ts +0 -101
- package/example/node_modules/ethers/lib.commonjs/providers/provider-infura.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/provider-infura.js +0 -206
- package/example/node_modules/ethers/lib.commonjs/providers/provider-infura.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/provider-ipcsocket-browser.d.ts +0 -3
- package/example/node_modules/ethers/lib.commonjs/providers/provider-ipcsocket-browser.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/provider-ipcsocket-browser.js +0 -6
- package/example/node_modules/ethers/lib.commonjs/providers/provider-ipcsocket-browser.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/provider-ipcsocket.d.ts +0 -21
- package/example/node_modules/ethers/lib.commonjs/providers/provider-ipcsocket.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/provider-ipcsocket.js +0 -72
- package/example/node_modules/ethers/lib.commonjs/providers/provider-ipcsocket.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/provider-jsonrpc.d.ts +0 -361
- package/example/node_modules/ethers/lib.commonjs/providers/provider-jsonrpc.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/provider-jsonrpc.js +0 -980
- package/example/node_modules/ethers/lib.commonjs/providers/provider-jsonrpc.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/provider-pocket.d.ts +0 -54
- package/example/node_modules/ethers/lib.commonjs/providers/provider-pocket.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/provider-pocket.js +0 -109
- package/example/node_modules/ethers/lib.commonjs/providers/provider-pocket.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/provider-quicknode.d.ts +0 -59
- package/example/node_modules/ethers/lib.commonjs/providers/provider-quicknode.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/provider-quicknode.js +0 -163
- package/example/node_modules/ethers/lib.commonjs/providers/provider-quicknode.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/provider-socket.d.ts +0 -113
- package/example/node_modules/ethers/lib.commonjs/providers/provider-socket.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/provider-socket.js +0 -309
- package/example/node_modules/ethers/lib.commonjs/providers/provider-socket.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/provider-websocket.d.ts +0 -37
- package/example/node_modules/ethers/lib.commonjs/providers/provider-websocket.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/provider-websocket.js +0 -80
- package/example/node_modules/ethers/lib.commonjs/providers/provider-websocket.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/provider.d.ts +0 -1230
- package/example/node_modules/ethers/lib.commonjs/providers/provider.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/provider.js +0 -1324
- package/example/node_modules/ethers/lib.commonjs/providers/provider.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/signer-noncemanager.d.ts +0 -38
- package/example/node_modules/ethers/lib.commonjs/providers/signer-noncemanager.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/signer-noncemanager.js +0 -78
- package/example/node_modules/ethers/lib.commonjs/providers/signer-noncemanager.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/signer.d.ts +0 -131
- package/example/node_modules/ethers/lib.commonjs/providers/signer.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/signer.js +0 -3
- package/example/node_modules/ethers/lib.commonjs/providers/signer.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/subscriber-connection.d.ts +0 -25
- package/example/node_modules/ethers/lib.commonjs/providers/subscriber-connection.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/subscriber-connection.js +0 -56
- package/example/node_modules/ethers/lib.commonjs/providers/subscriber-connection.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/subscriber-filterid.d.ts +0 -64
- package/example/node_modules/ethers/lib.commonjs/providers/subscriber-filterid.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/subscriber-filterid.js +0 -180
- package/example/node_modules/ethers/lib.commonjs/providers/subscriber-filterid.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/subscriber-polling.d.ts +0 -100
- package/example/node_modules/ethers/lib.commonjs/providers/subscriber-polling.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/subscriber-polling.js +0 -303
- package/example/node_modules/ethers/lib.commonjs/providers/subscriber-polling.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/ws-browser.d.ts +0 -3
- package/example/node_modules/ethers/lib.commonjs/providers/ws-browser.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/ws-browser.js +0 -19
- package/example/node_modules/ethers/lib.commonjs/providers/ws-browser.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/ws.d.ts +0 -2
- package/example/node_modules/ethers/lib.commonjs/providers/ws.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/providers/ws.js +0 -6
- package/example/node_modules/ethers/lib.commonjs/providers/ws.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/transaction/accesslist.d.ts +0 -6
- package/example/node_modules/ethers/lib.commonjs/transaction/accesslist.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/transaction/accesslist.js +0 -41
- package/example/node_modules/ethers/lib.commonjs/transaction/accesslist.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/transaction/address.d.ts +0 -15
- package/example/node_modules/ethers/lib.commonjs/transaction/address.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/transaction/address.js +0 -30
- package/example/node_modules/ethers/lib.commonjs/transaction/address.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/transaction/authorization.d.ts +0 -3
- package/example/node_modules/ethers/lib.commonjs/transaction/authorization.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/transaction/authorization.js +0 -16
- package/example/node_modules/ethers/lib.commonjs/transaction/authorization.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/transaction/index.d.ts +0 -40
- package/example/node_modules/ethers/lib.commonjs/transaction/index.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/transaction/index.js +0 -19
- package/example/node_modules/ethers/lib.commonjs/transaction/index.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/transaction/transaction.d.ts +0 -430
- package/example/node_modules/ethers/lib.commonjs/transaction/transaction.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/transaction/transaction.js +0 -1293
- package/example/node_modules/ethers/lib.commonjs/transaction/transaction.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/utils/base58.d.ts +0 -23
- package/example/node_modules/ethers/lib.commonjs/utils/base58.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/utils/base58.js +0 -68
- package/example/node_modules/ethers/lib.commonjs/utils/base58.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/utils/base64-browser.d.ts +0 -4
- package/example/node_modules/ethers/lib.commonjs/utils/base64-browser.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/utils/base64-browser.js +0 -24
- package/example/node_modules/ethers/lib.commonjs/utils/base64-browser.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/utils/base64.d.ts +0 -40
- package/example/node_modules/ethers/lib.commonjs/utils/base64.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/utils/base64.js +0 -58
- package/example/node_modules/ethers/lib.commonjs/utils/base64.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/utils/data.d.ts +0 -93
- package/example/node_modules/ethers/lib.commonjs/utils/data.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/utils/data.js +0 -185
- package/example/node_modules/ethers/lib.commonjs/utils/data.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/utils/errors.d.ts +0 -512
- package/example/node_modules/ethers/lib.commonjs/utils/errors.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/utils/errors.js +0 -243
- package/example/node_modules/ethers/lib.commonjs/utils/errors.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/utils/events.d.ts +0 -77
- package/example/node_modules/ethers/lib.commonjs/utils/events.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/utils/events.js +0 -46
- package/example/node_modules/ethers/lib.commonjs/utils/events.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/utils/fetch.d.ts +0 -363
- package/example/node_modules/ethers/lib.commonjs/utils/fetch.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/utils/fetch.js +0 -858
- package/example/node_modules/ethers/lib.commonjs/utils/fetch.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/utils/fixednumber.d.ts +0 -252
- package/example/node_modules/ethers/lib.commonjs/utils/fixednumber.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/utils/fixednumber.js +0 -530
- package/example/node_modules/ethers/lib.commonjs/utils/fixednumber.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/utils/geturl-browser.d.ts +0 -4
- package/example/node_modules/ethers/lib.commonjs/utils/geturl-browser.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/utils/geturl-browser.js +0 -67
- package/example/node_modules/ethers/lib.commonjs/utils/geturl-browser.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/utils/geturl.d.ts +0 -10
- package/example/node_modules/ethers/lib.commonjs/utils/geturl.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/utils/geturl.js +0 -127
- package/example/node_modules/ethers/lib.commonjs/utils/geturl.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/utils/index.d.ts +0 -30
- package/example/node_modules/ethers/lib.commonjs/utils/index.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/utils/index.js +0 -78
- package/example/node_modules/ethers/lib.commonjs/utils/index.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/utils/maths.d.ts +0 -66
- package/example/node_modules/ethers/lib.commonjs/utils/maths.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/utils/maths.js +0 -245
- package/example/node_modules/ethers/lib.commonjs/utils/maths.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/utils/properties.d.ts +0 -23
- package/example/node_modules/ethers/lib.commonjs/utils/properties.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/utils/properties.js +0 -59
- package/example/node_modules/ethers/lib.commonjs/utils/properties.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/utils/rlp-decode.d.ts +0 -6
- package/example/node_modules/ethers/lib.commonjs/utils/rlp-decode.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/utils/rlp-decode.js +0 -83
- package/example/node_modules/ethers/lib.commonjs/utils/rlp-decode.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/utils/rlp-encode.d.ts +0 -6
- package/example/node_modules/ethers/lib.commonjs/utils/rlp-encode.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/utils/rlp-encode.js +0 -53
- package/example/node_modules/ethers/lib.commonjs/utils/rlp-encode.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/utils/rlp.d.ts +0 -17
- package/example/node_modules/ethers/lib.commonjs/utils/rlp.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/utils/rlp.js +0 -14
- package/example/node_modules/ethers/lib.commonjs/utils/rlp.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/utils/units.d.ts +0 -24
- package/example/node_modules/ethers/lib.commonjs/utils/units.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/utils/units.js +0 -90
- package/example/node_modules/ethers/lib.commonjs/utils/units.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/utils/utf8.d.ts +0 -96
- package/example/node_modules/ethers/lib.commonjs/utils/utf8.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/utils/utf8.js +0 -227
- package/example/node_modules/ethers/lib.commonjs/utils/utf8.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/utils/uuid.d.ts +0 -8
- package/example/node_modules/ethers/lib.commonjs/utils/uuid.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/utils/uuid.js +0 -34
- package/example/node_modules/ethers/lib.commonjs/utils/uuid.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/wallet/base-wallet.d.ts +0 -57
- package/example/node_modules/ethers/lib.commonjs/wallet/base-wallet.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/wallet/base-wallet.js +0 -127
- package/example/node_modules/ethers/lib.commonjs/wallet/base-wallet.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/wallet/hdwallet.d.ts +0 -248
- package/example/node_modules/ethers/lib.commonjs/wallet/hdwallet.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/wallet/hdwallet.js +0 -506
- package/example/node_modules/ethers/lib.commonjs/wallet/hdwallet.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/wallet/index.d.ts +0 -27
- package/example/node_modules/ethers/lib.commonjs/wallet/index.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/wallet/index.js +0 -43
- package/example/node_modules/ethers/lib.commonjs/wallet/index.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/wallet/json-crowdsale.d.ts +0 -27
- package/example/node_modules/ethers/lib.commonjs/wallet/json-crowdsale.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/wallet/json-crowdsale.js +0 -60
- package/example/node_modules/ethers/lib.commonjs/wallet/json-crowdsale.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/wallet/json-keystore.d.ts +0 -89
- package/example/node_modules/ethers/lib.commonjs/wallet/json-keystore.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/wallet/json-keystore.js +0 -295
- package/example/node_modules/ethers/lib.commonjs/wallet/json-keystore.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/wallet/mnemonic.d.ts +0 -65
- package/example/node_modules/ethers/lib.commonjs/wallet/mnemonic.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/wallet/mnemonic.js +0 -169
- package/example/node_modules/ethers/lib.commonjs/wallet/mnemonic.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/wallet/utils.d.ts +0 -8
- package/example/node_modules/ethers/lib.commonjs/wallet/utils.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/wallet/utils.js +0 -149
- package/example/node_modules/ethers/lib.commonjs/wallet/utils.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/wallet/wallet.d.ts +0 -71
- package/example/node_modules/ethers/lib.commonjs/wallet/wallet.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/wallet/wallet.js +0 -148
- package/example/node_modules/ethers/lib.commonjs/wallet/wallet.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/wordlists/bit-reader.d.ts +0 -5
- package/example/node_modules/ethers/lib.commonjs/wordlists/bit-reader.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/wordlists/bit-reader.js +0 -36
- package/example/node_modules/ethers/lib.commonjs/wordlists/bit-reader.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/wordlists/decode-owl.d.ts +0 -9
- package/example/node_modules/ethers/lib.commonjs/wordlists/decode-owl.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/wordlists/decode-owl.js +0 -60
- package/example/node_modules/ethers/lib.commonjs/wordlists/decode-owl.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/wordlists/decode-owla.d.ts +0 -5
- package/example/node_modules/ethers/lib.commonjs/wordlists/decode-owla.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/wordlists/decode-owla.js +0 -32
- package/example/node_modules/ethers/lib.commonjs/wordlists/decode-owla.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/wordlists/generation/encode-latin.d.ts +0 -25
- package/example/node_modules/ethers/lib.commonjs/wordlists/generation/encode-latin.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/wordlists/generation/encode-latin.js +0 -351
- package/example/node_modules/ethers/lib.commonjs/wordlists/generation/encode-latin.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/wordlists/index.d.ts +0 -25
- package/example/node_modules/ethers/lib.commonjs/wordlists/index.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/wordlists/index.js +0 -33
- package/example/node_modules/ethers/lib.commonjs/wordlists/index.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/wordlists/lang-cz.d.ts +0 -23
- package/example/node_modules/ethers/lib.commonjs/wordlists/lang-cz.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/wordlists/lang-cz.js +0 -35
- package/example/node_modules/ethers/lib.commonjs/wordlists/lang-cz.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/wordlists/lang-en.d.ts +0 -23
- package/example/node_modules/ethers/lib.commonjs/wordlists/lang-en.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/wordlists/lang-en.js +0 -35
- package/example/node_modules/ethers/lib.commonjs/wordlists/lang-en.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/wordlists/lang-es.d.ts +0 -23
- package/example/node_modules/ethers/lib.commonjs/wordlists/lang-es.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/wordlists/lang-es.js +0 -36
- package/example/node_modules/ethers/lib.commonjs/wordlists/lang-es.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/wordlists/lang-fr.d.ts +0 -23
- package/example/node_modules/ethers/lib.commonjs/wordlists/lang-fr.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/wordlists/lang-fr.js +0 -36
- package/example/node_modules/ethers/lib.commonjs/wordlists/lang-fr.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/wordlists/lang-it.d.ts +0 -23
- package/example/node_modules/ethers/lib.commonjs/wordlists/lang-it.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/wordlists/lang-it.js +0 -35
- package/example/node_modules/ethers/lib.commonjs/wordlists/lang-it.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/wordlists/lang-ja.d.ts +0 -27
- package/example/node_modules/ethers/lib.commonjs/wordlists/lang-ja.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/wordlists/lang-ja.js +0 -158
- package/example/node_modules/ethers/lib.commonjs/wordlists/lang-ja.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/wordlists/lang-ko.d.ts +0 -25
- package/example/node_modules/ethers/lib.commonjs/wordlists/lang-ko.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/wordlists/lang-ko.js +0 -93
- package/example/node_modules/ethers/lib.commonjs/wordlists/lang-ko.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/wordlists/lang-pt.d.ts +0 -23
- package/example/node_modules/ethers/lib.commonjs/wordlists/lang-pt.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/wordlists/lang-pt.js +0 -35
- package/example/node_modules/ethers/lib.commonjs/wordlists/lang-pt.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/wordlists/lang-zh.d.ts +0 -32
- package/example/node_modules/ethers/lib.commonjs/wordlists/lang-zh.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/wordlists/lang-zh.js +0 -96
- package/example/node_modules/ethers/lib.commonjs/wordlists/lang-zh.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/wordlists/wordlist-owl.d.ts +0 -32
- package/example/node_modules/ethers/lib.commonjs/wordlists/wordlist-owl.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/wordlists/wordlist-owl.js +0 -70
- package/example/node_modules/ethers/lib.commonjs/wordlists/wordlist-owl.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/wordlists/wordlist-owla.d.ts +0 -30
- package/example/node_modules/ethers/lib.commonjs/wordlists/wordlist-owla.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/wordlists/wordlist-owla.js +0 -40
- package/example/node_modules/ethers/lib.commonjs/wordlists/wordlist-owla.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/wordlists/wordlist.d.ts +0 -47
- package/example/node_modules/ethers/lib.commonjs/wordlists/wordlist.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/wordlists/wordlist.js +0 -46
- package/example/node_modules/ethers/lib.commonjs/wordlists/wordlist.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/wordlists/wordlists-browser.d.ts +0 -3
- package/example/node_modules/ethers/lib.commonjs/wordlists/wordlists-browser.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/wordlists/wordlists-browser.js +0 -8
- package/example/node_modules/ethers/lib.commonjs/wordlists/wordlists-browser.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/wordlists/wordlists-extra.d.ts +0 -9
- package/example/node_modules/ethers/lib.commonjs/wordlists/wordlists-extra.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/wordlists/wordlists-extra.js +0 -20
- package/example/node_modules/ethers/lib.commonjs/wordlists/wordlists-extra.js.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/wordlists/wordlists.d.ts +0 -16
- package/example/node_modules/ethers/lib.commonjs/wordlists/wordlists.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.commonjs/wordlists/wordlists.js +0 -38
- package/example/node_modules/ethers/lib.commonjs/wordlists/wordlists.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/README.md +0 -16
- package/example/node_modules/ethers/lib.esm/_version.d.ts +0 -5
- package/example/node_modules/ethers/lib.esm/_version.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/_version.js +0 -6
- package/example/node_modules/ethers/lib.esm/_version.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/abi/abi-coder.d.ts +0 -61
- package/example/node_modules/ethers/lib.esm/abi/abi-coder.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/abi/abi-coder.js +0 -206
- package/example/node_modules/ethers/lib.esm/abi/abi-coder.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/abi/bytes32.d.ts +0 -15
- package/example/node_modules/ethers/lib.esm/abi/bytes32.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/abi/bytes32.js +0 -40
- package/example/node_modules/ethers/lib.esm/abi/bytes32.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/abi/coders/abstract-coder.d.ts +0 -124
- package/example/node_modules/ethers/lib.esm/abi/coders/abstract-coder.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/abi/coders/abstract-coder.js +0 -466
- package/example/node_modules/ethers/lib.esm/abi/coders/abstract-coder.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/abi/coders/address.d.ts +0 -13
- package/example/node_modules/ethers/lib.esm/abi/coders/address.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/abi/coders/address.js +0 -29
- package/example/node_modules/ethers/lib.esm/abi/coders/address.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/abi/coders/anonymous.d.ts +0 -15
- package/example/node_modules/ethers/lib.esm/abi/coders/anonymous.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/abi/coders/anonymous.js +0 -23
- package/example/node_modules/ethers/lib.esm/abi/coders/anonymous.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/abi/coders/array.d.ts +0 -25
- package/example/node_modules/ethers/lib.esm/abi/coders/array.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/abi/coders/array.js +0 -159
- package/example/node_modules/ethers/lib.esm/abi/coders/array.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/abi/coders/boolean.d.ts +0 -13
- package/example/node_modules/ethers/lib.esm/abi/coders/boolean.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/abi/coders/boolean.js +0 -21
- package/example/node_modules/ethers/lib.esm/abi/coders/boolean.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/abi/coders/bytes.d.ts +0 -19
- package/example/node_modules/ethers/lib.esm/abi/coders/bytes.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/abi/coders/bytes.js +0 -34
- package/example/node_modules/ethers/lib.esm/abi/coders/bytes.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/abi/coders/fixed-bytes.d.ts +0 -15
- package/example/node_modules/ethers/lib.esm/abi/coders/fixed-bytes.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/abi/coders/fixed-bytes.js +0 -28
- package/example/node_modules/ethers/lib.esm/abi/coders/fixed-bytes.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/abi/coders/null.d.ts +0 -12
- package/example/node_modules/ethers/lib.esm/abi/coders/null.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/abi/coders/null.js +0 -24
- package/example/node_modules/ethers/lib.esm/abi/coders/null.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/abi/coders/number.d.ts +0 -16
- package/example/node_modules/ethers/lib.esm/abi/coders/number.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/abi/coders/number.js +0 -45
- package/example/node_modules/ethers/lib.esm/abi/coders/number.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/abi/coders/string.d.ts +0 -13
- package/example/node_modules/ethers/lib.esm/abi/coders/string.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/abi/coders/string.js +0 -21
- package/example/node_modules/ethers/lib.esm/abi/coders/string.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/abi/coders/tuple.d.ts +0 -16
- package/example/node_modules/ethers/lib.esm/abi/coders/tuple.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/abi/coders/tuple.js +0 -63
- package/example/node_modules/ethers/lib.esm/abi/coders/tuple.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/abi/fragments.d.ts +0 -466
- package/example/node_modules/ethers/lib.esm/abi/fragments.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/abi/fragments.js +0 -1319
- package/example/node_modules/ethers/lib.esm/abi/fragments.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/abi/index.d.ts +0 -18
- package/example/node_modules/ethers/lib.esm/abi/index.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/abi/index.js +0 -17
- package/example/node_modules/ethers/lib.esm/abi/index.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/abi/interface.d.ts +0 -382
- package/example/node_modules/ethers/lib.esm/abi/interface.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/abi/interface.js +0 -1101
- package/example/node_modules/ethers/lib.esm/abi/interface.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/abi/typed.d.ts +0 -570
- package/example/node_modules/ethers/lib.esm/abi/typed.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/abi/typed.js +0 -602
- package/example/node_modules/ethers/lib.esm/abi/typed.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/address/address.d.ts +0 -56
- package/example/node_modules/ethers/lib.esm/address/address.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/address/address.js +0 -156
- package/example/node_modules/ethers/lib.esm/address/address.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/address/checks.d.ts +0 -81
- package/example/node_modules/ethers/lib.esm/address/checks.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/address/checks.js +0 -114
- package/example/node_modules/ethers/lib.esm/address/checks.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/address/contract-address.d.ts +0 -48
- package/example/node_modules/ethers/lib.esm/address/contract-address.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/address/contract-address.js +0 -69
- package/example/node_modules/ethers/lib.esm/address/contract-address.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/address/index.d.ts +0 -49
- package/example/node_modules/ethers/lib.esm/address/index.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/address/index.js +0 -19
- package/example/node_modules/ethers/lib.esm/address/index.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/constants/addresses.d.ts +0 -7
- package/example/node_modules/ethers/lib.esm/constants/addresses.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/constants/addresses.js +0 -7
- package/example/node_modules/ethers/lib.esm/constants/addresses.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/constants/hashes.d.ts +0 -7
- package/example/node_modules/ethers/lib.esm/constants/hashes.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/constants/hashes.js +0 -7
- package/example/node_modules/ethers/lib.esm/constants/hashes.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/constants/index.d.ts +0 -10
- package/example/node_modules/ethers/lib.esm/constants/index.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/constants/index.js +0 -10
- package/example/node_modules/ethers/lib.esm/constants/index.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/constants/numbers.d.ts +0 -31
- package/example/node_modules/ethers/lib.esm/constants/numbers.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/constants/numbers.js +0 -31
- package/example/node_modules/ethers/lib.esm/constants/numbers.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/constants/strings.d.ts +0 -13
- package/example/node_modules/ethers/lib.esm/constants/strings.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/constants/strings.js +0 -14
- package/example/node_modules/ethers/lib.esm/constants/strings.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/contract/contract.d.ts +0 -168
- package/example/node_modules/ethers/lib.esm/contract/contract.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/contract/contract.js +0 -953
- package/example/node_modules/ethers/lib.esm/contract/contract.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/contract/factory.d.ts +0 -62
- package/example/node_modules/ethers/lib.esm/contract/factory.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/contract/factory.js +0 -112
- package/example/node_modules/ethers/lib.esm/contract/factory.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/contract/index.d.ts +0 -13
- package/example/node_modules/ethers/lib.esm/contract/index.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/contract/index.js +0 -12
- package/example/node_modules/ethers/lib.esm/contract/index.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/contract/types.d.ts +0 -193
- package/example/node_modules/ethers/lib.esm/contract/types.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/contract/types.js +0 -5
- package/example/node_modules/ethers/lib.esm/contract/types.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/contract/wrappers.d.ts +0 -143
- package/example/node_modules/ethers/lib.esm/contract/wrappers.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/contract/wrappers.js +0 -177
- package/example/node_modules/ethers/lib.esm/contract/wrappers.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/crypto/crypto-browser.d.ts +0 -15
- package/example/node_modules/ethers/lib.esm/crypto/crypto-browser.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/crypto/crypto-browser.js +0 -48
- package/example/node_modules/ethers/lib.esm/crypto/crypto-browser.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/crypto/crypto.d.ts +0 -2
- package/example/node_modules/ethers/lib.esm/crypto/crypto.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/crypto/crypto.js +0 -2
- package/example/node_modules/ethers/lib.esm/crypto/crypto.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/crypto/hmac.d.ts +0 -25
- package/example/node_modules/ethers/lib.esm/crypto/hmac.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/crypto/hmac.js +0 -47
- package/example/node_modules/ethers/lib.esm/crypto/hmac.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/crypto/index.d.ts +0 -25
- package/example/node_modules/ethers/lib.esm/crypto/index.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/crypto/index.js +0 -36
- package/example/node_modules/ethers/lib.esm/crypto/index.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/crypto/keccak.d.ts +0 -35
- package/example/node_modules/ethers/lib.esm/crypto/keccak.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/crypto/keccak.js +0 -48
- package/example/node_modules/ethers/lib.esm/crypto/keccak.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/crypto/pbkdf2.d.ts +0 -35
- package/example/node_modules/ethers/lib.esm/crypto/pbkdf2.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/crypto/pbkdf2.js +0 -49
- package/example/node_modules/ethers/lib.esm/crypto/pbkdf2.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/crypto/random.d.ts +0 -14
- package/example/node_modules/ethers/lib.esm/crypto/random.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/crypto/random.js +0 -34
- package/example/node_modules/ethers/lib.esm/crypto/random.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/crypto/ripemd160.d.ts +0 -25
- package/example/node_modules/ethers/lib.esm/crypto/ripemd160.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/crypto/ripemd160.js +0 -38
- package/example/node_modules/ethers/lib.esm/crypto/ripemd160.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/crypto/scrypt.d.ts +0 -82
- package/example/node_modules/ethers/lib.esm/crypto/scrypt.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/crypto/scrypt.js +0 -99
- package/example/node_modules/ethers/lib.esm/crypto/scrypt.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/crypto/sha2.d.ts +0 -47
- package/example/node_modules/ethers/lib.esm/crypto/sha2.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/crypto/sha2.js +0 -71
- package/example/node_modules/ethers/lib.esm/crypto/sha2.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/crypto/signature.d.ts +0 -183
- package/example/node_modules/ethers/lib.esm/crypto/signature.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/crypto/signature.js +0 -346
- package/example/node_modules/ethers/lib.esm/crypto/signature.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/crypto/signing-key.d.ts +0 -122
- package/example/node_modules/ethers/lib.esm/crypto/signing-key.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/crypto/signing-key.js +0 -166
- package/example/node_modules/ethers/lib.esm/crypto/signing-key.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/ethers.d.ts +0 -22
- package/example/node_modules/ethers/lib.esm/ethers.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/ethers.js +0 -16
- package/example/node_modules/ethers/lib.esm/ethers.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/hash/authorization.d.ts +0 -18
- package/example/node_modules/ethers/lib.esm/hash/authorization.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/hash/authorization.js +0 -25
- package/example/node_modules/ethers/lib.esm/hash/authorization.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/hash/id.d.ts +0 -13
- package/example/node_modules/ethers/lib.esm/hash/id.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/hash/id.js +0 -17
- package/example/node_modules/ethers/lib.esm/hash/id.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/hash/index.d.ts +0 -15
- package/example/node_modules/ethers/lib.esm/hash/index.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/hash/index.js +0 -13
- package/example/node_modules/ethers/lib.esm/hash/index.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/hash/message.d.ts +0 -36
- package/example/node_modules/ethers/lib.esm/hash/message.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/hash/message.js +0 -51
- package/example/node_modules/ethers/lib.esm/hash/message.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/hash/namehash.d.ts +0 -20
- package/example/node_modules/ethers/lib.esm/hash/namehash.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/hash/namehash.js +0 -84
- package/example/node_modules/ethers/lib.esm/hash/namehash.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/hash/solidity.d.ts +0 -31
- package/example/node_modules/ethers/lib.esm/hash/solidity.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/hash/solidity.js +0 -103
- package/example/node_modules/ethers/lib.esm/hash/solidity.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/hash/typed-data.d.ts +0 -150
- package/example/node_modules/ethers/lib.esm/hash/typed-data.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/hash/typed-data.js +0 -519
- package/example/node_modules/ethers/lib.esm/hash/typed-data.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/index.d.ts +0 -11
- package/example/node_modules/ethers/lib.esm/index.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/index.js +0 -11
- package/example/node_modules/ethers/lib.esm/index.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/package.json +0 -12
- package/example/node_modules/ethers/lib.esm/providers/abstract-provider.d.ts +0 -451
- package/example/node_modules/ethers/lib.esm/providers/abstract-provider.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/abstract-provider.js +0 -1404
- package/example/node_modules/ethers/lib.esm/providers/abstract-provider.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/abstract-signer.d.ts +0 -69
- package/example/node_modules/ethers/lib.esm/providers/abstract-signer.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/abstract-signer.js +0 -244
- package/example/node_modules/ethers/lib.esm/providers/abstract-signer.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/community.d.ts +0 -29
- package/example/node_modules/ethers/lib.esm/providers/community.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/community.js +0 -36
- package/example/node_modules/ethers/lib.esm/providers/community.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/contracts.d.ts +0 -36
- package/example/node_modules/ethers/lib.esm/providers/contracts.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/contracts.js +0 -2
- package/example/node_modules/ethers/lib.esm/providers/contracts.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/default-provider.d.ts +0 -49
- package/example/node_modules/ethers/lib.esm/providers/default-provider.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/default-provider.js +0 -196
- package/example/node_modules/ethers/lib.esm/providers/default-provider.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/ens-resolver.d.ts +0 -147
- package/example/node_modules/ethers/lib.esm/providers/ens-resolver.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/ens-resolver.js +0 -496
- package/example/node_modules/ethers/lib.esm/providers/ens-resolver.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/format.d.ts +0 -15
- package/example/node_modules/ethers/lib.esm/providers/format.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/format.js +0 -297
- package/example/node_modules/ethers/lib.esm/providers/format.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/formatting.d.ts +0 -318
- package/example/node_modules/ethers/lib.esm/providers/formatting.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/formatting.js +0 -9
- package/example/node_modules/ethers/lib.esm/providers/formatting.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/index.d.ts +0 -50
- package/example/node_modules/ethers/lib.esm/providers/index.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/index.js +0 -40
- package/example/node_modules/ethers/lib.esm/providers/index.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/network.d.ts +0 -99
- package/example/node_modules/ethers/lib.esm/providers/network.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/network.js +0 -365
- package/example/node_modules/ethers/lib.esm/providers/network.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/pagination.d.ts +0 -6
- package/example/node_modules/ethers/lib.esm/providers/pagination.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/pagination.js +0 -2
- package/example/node_modules/ethers/lib.esm/providers/pagination.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/plugin-fallback.d.ts +0 -13
- package/example/node_modules/ethers/lib.esm/providers/plugin-fallback.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/plugin-fallback.js +0 -26
- package/example/node_modules/ethers/lib.esm/providers/plugin-fallback.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/plugins-network.d.ts +0 -170
- package/example/node_modules/ethers/lib.esm/providers/plugins-network.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/plugins-network.js +0 -208
- package/example/node_modules/ethers/lib.esm/providers/plugins-network.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/provider-alchemy.d.ts +0 -50
- package/example/node_modules/ethers/lib.esm/providers/provider-alchemy.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/provider-alchemy.js +0 -147
- package/example/node_modules/ethers/lib.esm/providers/provider-alchemy.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/provider-ankr.d.ts +0 -63
- package/example/node_modules/ethers/lib.esm/providers/provider-ankr.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/provider-ankr.js +0 -139
- package/example/node_modules/ethers/lib.esm/providers/provider-ankr.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/provider-blockscout.d.ts +0 -59
- package/example/node_modules/ethers/lib.esm/providers/provider-blockscout.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/provider-blockscout.js +0 -141
- package/example/node_modules/ethers/lib.esm/providers/provider-blockscout.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/provider-browser.d.ts +0 -108
- package/example/node_modules/ethers/lib.esm/providers/provider-browser.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/provider-browser.js +0 -200
- package/example/node_modules/ethers/lib.esm/providers/provider-browser.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/provider-chainstack.d.ts +0 -46
- package/example/node_modules/ethers/lib.esm/providers/provider-chainstack.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/provider-chainstack.js +0 -98
- package/example/node_modules/ethers/lib.esm/providers/provider-chainstack.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/provider-cloudflare.d.ts +0 -14
- package/example/node_modules/ethers/lib.esm/providers/provider-cloudflare.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/provider-cloudflare.js +0 -22
- package/example/node_modules/ethers/lib.esm/providers/provider-cloudflare.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/provider-etherscan.d.ts +0 -152
- package/example/node_modules/ethers/lib.esm/providers/provider-etherscan.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/provider-etherscan.js +0 -598
- package/example/node_modules/ethers/lib.esm/providers/provider-etherscan.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/provider-fallback.d.ts +0 -115
- package/example/node_modules/ethers/lib.esm/providers/provider-fallback.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/provider-fallback.js +0 -620
- package/example/node_modules/ethers/lib.esm/providers/provider-fallback.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/provider-infura.d.ts +0 -101
- package/example/node_modules/ethers/lib.esm/providers/provider-infura.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/provider-infura.js +0 -201
- package/example/node_modules/ethers/lib.esm/providers/provider-infura.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/provider-ipcsocket-browser.d.ts +0 -3
- package/example/node_modules/ethers/lib.esm/providers/provider-ipcsocket-browser.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/provider-ipcsocket-browser.js +0 -3
- package/example/node_modules/ethers/lib.esm/providers/provider-ipcsocket-browser.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/provider-ipcsocket.d.ts +0 -21
- package/example/node_modules/ethers/lib.esm/providers/provider-ipcsocket.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/provider-ipcsocket.js +0 -68
- package/example/node_modules/ethers/lib.esm/providers/provider-ipcsocket.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/provider-jsonrpc.d.ts +0 -361
- package/example/node_modules/ethers/lib.esm/providers/provider-jsonrpc.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/provider-jsonrpc.js +0 -973
- package/example/node_modules/ethers/lib.esm/providers/provider-jsonrpc.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/provider-pocket.d.ts +0 -54
- package/example/node_modules/ethers/lib.esm/providers/provider-pocket.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/provider-pocket.js +0 -105
- package/example/node_modules/ethers/lib.esm/providers/provider-pocket.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/provider-quicknode.d.ts +0 -59
- package/example/node_modules/ethers/lib.esm/providers/provider-quicknode.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/provider-quicknode.js +0 -159
- package/example/node_modules/ethers/lib.esm/providers/provider-quicknode.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/provider-socket.d.ts +0 -113
- package/example/node_modules/ethers/lib.esm/providers/provider-socket.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/provider-socket.js +0 -301
- package/example/node_modules/ethers/lib.esm/providers/provider-socket.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/provider-websocket.d.ts +0 -37
- package/example/node_modules/ethers/lib.esm/providers/provider-websocket.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/provider-websocket.js +0 -76
- package/example/node_modules/ethers/lib.esm/providers/provider-websocket.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/provider.d.ts +0 -1230
- package/example/node_modules/ethers/lib.esm/providers/provider.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/provider.js +0 -1315
- package/example/node_modules/ethers/lib.esm/providers/provider.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/signer-noncemanager.d.ts +0 -38
- package/example/node_modules/ethers/lib.esm/providers/signer-noncemanager.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/signer-noncemanager.js +0 -74
- package/example/node_modules/ethers/lib.esm/providers/signer-noncemanager.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/signer.d.ts +0 -131
- package/example/node_modules/ethers/lib.esm/providers/signer.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/signer.js +0 -2
- package/example/node_modules/ethers/lib.esm/providers/signer.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/subscriber-connection.d.ts +0 -25
- package/example/node_modules/ethers/lib.esm/providers/subscriber-connection.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/subscriber-connection.js +0 -52
- package/example/node_modules/ethers/lib.esm/providers/subscriber-connection.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/subscriber-filterid.d.ts +0 -64
- package/example/node_modules/ethers/lib.esm/providers/subscriber-filterid.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/subscriber-filterid.js +0 -174
- package/example/node_modules/ethers/lib.esm/providers/subscriber-filterid.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/subscriber-polling.d.ts +0 -100
- package/example/node_modules/ethers/lib.esm/providers/subscriber-polling.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/subscriber-polling.js +0 -293
- package/example/node_modules/ethers/lib.esm/providers/subscriber-polling.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/ws-browser.d.ts +0 -3
- package/example/node_modules/ethers/lib.esm/providers/ws-browser.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/ws-browser.js +0 -16
- package/example/node_modules/ethers/lib.esm/providers/ws-browser.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/ws.d.ts +0 -2
- package/example/node_modules/ethers/lib.esm/providers/ws.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/providers/ws.js +0 -2
- package/example/node_modules/ethers/lib.esm/providers/ws.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/transaction/accesslist.d.ts +0 -6
- package/example/node_modules/ethers/lib.esm/transaction/accesslist.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/transaction/accesslist.js +0 -37
- package/example/node_modules/ethers/lib.esm/transaction/accesslist.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/transaction/address.d.ts +0 -15
- package/example/node_modules/ethers/lib.esm/transaction/address.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/transaction/address.js +0 -25
- package/example/node_modules/ethers/lib.esm/transaction/address.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/transaction/authorization.d.ts +0 -3
- package/example/node_modules/ethers/lib.esm/transaction/authorization.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/transaction/authorization.js +0 -12
- package/example/node_modules/ethers/lib.esm/transaction/authorization.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/transaction/index.d.ts +0 -40
- package/example/node_modules/ethers/lib.esm/transaction/index.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/transaction/index.js +0 -11
- package/example/node_modules/ethers/lib.esm/transaction/index.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/transaction/transaction.d.ts +0 -430
- package/example/node_modules/ethers/lib.esm/transaction/transaction.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/transaction/transaction.js +0 -1288
- package/example/node_modules/ethers/lib.esm/transaction/transaction.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/utils/base58.d.ts +0 -23
- package/example/node_modules/ethers/lib.esm/utils/base58.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/utils/base58.js +0 -63
- package/example/node_modules/ethers/lib.esm/utils/base58.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/utils/base64-browser.d.ts +0 -4
- package/example/node_modules/ethers/lib.esm/utils/base64-browser.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/utils/base64-browser.js +0 -19
- package/example/node_modules/ethers/lib.esm/utils/base64-browser.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/utils/base64.d.ts +0 -40
- package/example/node_modules/ethers/lib.esm/utils/base64.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/utils/base64.js +0 -53
- package/example/node_modules/ethers/lib.esm/utils/base64.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/utils/data.d.ts +0 -93
- package/example/node_modules/ethers/lib.esm/utils/data.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/utils/data.js +0 -171
- package/example/node_modules/ethers/lib.esm/utils/data.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/utils/errors.d.ts +0 -512
- package/example/node_modules/ethers/lib.esm/utils/errors.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/utils/errors.js +0 -232
- package/example/node_modules/ethers/lib.esm/utils/errors.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/utils/events.d.ts +0 -77
- package/example/node_modules/ethers/lib.esm/utils/events.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/utils/events.js +0 -42
- package/example/node_modules/ethers/lib.esm/utils/events.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/utils/fetch.d.ts +0 -363
- package/example/node_modules/ethers/lib.esm/utils/fetch.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/utils/fetch.js +0 -852
- package/example/node_modules/ethers/lib.esm/utils/fetch.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/utils/fixednumber.d.ts +0 -252
- package/example/node_modules/ethers/lib.esm/utils/fixednumber.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/utils/fixednumber.js +0 -526
- package/example/node_modules/ethers/lib.esm/utils/fixednumber.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/utils/geturl-browser.d.ts +0 -4
- package/example/node_modules/ethers/lib.esm/utils/geturl-browser.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/utils/geturl-browser.js +0 -62
- package/example/node_modules/ethers/lib.esm/utils/geturl-browser.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/utils/geturl.d.ts +0 -10
- package/example/node_modules/ethers/lib.esm/utils/geturl.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/utils/geturl.js +0 -121
- package/example/node_modules/ethers/lib.esm/utils/geturl.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/utils/index.d.ts +0 -30
- package/example/node_modules/ethers/lib.esm/utils/index.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/utils/index.js +0 -22
- package/example/node_modules/ethers/lib.esm/utils/index.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/utils/maths.d.ts +0 -66
- package/example/node_modules/ethers/lib.esm/utils/maths.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/utils/maths.js +0 -231
- package/example/node_modules/ethers/lib.esm/utils/maths.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/utils/properties.d.ts +0 -23
- package/example/node_modules/ethers/lib.esm/utils/properties.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/utils/properties.js +0 -54
- package/example/node_modules/ethers/lib.esm/utils/properties.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/utils/rlp-decode.d.ts +0 -6
- package/example/node_modules/ethers/lib.esm/utils/rlp-decode.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/utils/rlp-decode.js +0 -79
- package/example/node_modules/ethers/lib.esm/utils/rlp-decode.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/utils/rlp-encode.d.ts +0 -6
- package/example/node_modules/ethers/lib.esm/utils/rlp-encode.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/utils/rlp-encode.js +0 -49
- package/example/node_modules/ethers/lib.esm/utils/rlp-encode.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/utils/rlp.d.ts +0 -17
- package/example/node_modules/ethers/lib.esm/utils/rlp.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/utils/rlp.js +0 -9
- package/example/node_modules/ethers/lib.esm/utils/rlp.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/utils/units.d.ts +0 -24
- package/example/node_modules/ethers/lib.esm/utils/units.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/utils/units.js +0 -83
- package/example/node_modules/ethers/lib.esm/utils/units.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/utils/utf8.d.ts +0 -96
- package/example/node_modules/ethers/lib.esm/utils/utf8.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/utils/utf8.js +0 -221
- package/example/node_modules/ethers/lib.esm/utils/utf8.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/utils/uuid.d.ts +0 -8
- package/example/node_modules/ethers/lib.esm/utils/uuid.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/utils/uuid.js +0 -30
- package/example/node_modules/ethers/lib.esm/utils/uuid.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/wallet/base-wallet.d.ts +0 -57
- package/example/node_modules/ethers/lib.esm/wallet/base-wallet.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/wallet/base-wallet.js +0 -123
- package/example/node_modules/ethers/lib.esm/wallet/base-wallet.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/wallet/hdwallet.d.ts +0 -248
- package/example/node_modules/ethers/lib.esm/wallet/hdwallet.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/wallet/hdwallet.js +0 -499
- package/example/node_modules/ethers/lib.esm/wallet/hdwallet.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/wallet/index.d.ts +0 -27
- package/example/node_modules/ethers/lib.esm/wallet/index.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/wallet/index.js +0 -25
- package/example/node_modules/ethers/lib.esm/wallet/index.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/wallet/json-crowdsale.d.ts +0 -27
- package/example/node_modules/ethers/lib.esm/wallet/json-crowdsale.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/wallet/json-crowdsale.js +0 -55
- package/example/node_modules/ethers/lib.esm/wallet/json-crowdsale.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/wallet/json-keystore.d.ts +0 -89
- package/example/node_modules/ethers/lib.esm/wallet/json-keystore.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/wallet/json-keystore.js +0 -287
- package/example/node_modules/ethers/lib.esm/wallet/json-keystore.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/wallet/mnemonic.d.ts +0 -65
- package/example/node_modules/ethers/lib.esm/wallet/mnemonic.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/wallet/mnemonic.js +0 -165
- package/example/node_modules/ethers/lib.esm/wallet/mnemonic.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/wallet/utils.d.ts +0 -8
- package/example/node_modules/ethers/lib.esm/wallet/utils.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/wallet/utils.js +0 -142
- package/example/node_modules/ethers/lib.esm/wallet/utils.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/wallet/wallet.d.ts +0 -71
- package/example/node_modules/ethers/lib.esm/wallet/wallet.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/wallet/wallet.js +0 -144
- package/example/node_modules/ethers/lib.esm/wallet/wallet.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/wordlists/bit-reader.d.ts +0 -5
- package/example/node_modules/ethers/lib.esm/wordlists/bit-reader.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/wordlists/bit-reader.js +0 -32
- package/example/node_modules/ethers/lib.esm/wordlists/bit-reader.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/wordlists/decode-owl.d.ts +0 -9
- package/example/node_modules/ethers/lib.esm/wordlists/decode-owl.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/wordlists/decode-owl.js +0 -55
- package/example/node_modules/ethers/lib.esm/wordlists/decode-owl.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/wordlists/decode-owla.d.ts +0 -5
- package/example/node_modules/ethers/lib.esm/wordlists/decode-owla.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/wordlists/decode-owla.js +0 -28
- package/example/node_modules/ethers/lib.esm/wordlists/decode-owla.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/wordlists/generation/encode-latin.d.ts +0 -25
- package/example/node_modules/ethers/lib.esm/wordlists/generation/encode-latin.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/wordlists/generation/encode-latin.js +0 -344
- package/example/node_modules/ethers/lib.esm/wordlists/generation/encode-latin.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/wordlists/index.d.ts +0 -25
- package/example/node_modules/ethers/lib.esm/wordlists/index.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/wordlists/index.js +0 -25
- package/example/node_modules/ethers/lib.esm/wordlists/index.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/wordlists/lang-cz.d.ts +0 -23
- package/example/node_modules/ethers/lib.esm/wordlists/lang-cz.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/wordlists/lang-cz.js +0 -31
- package/example/node_modules/ethers/lib.esm/wordlists/lang-cz.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/wordlists/lang-en.d.ts +0 -23
- package/example/node_modules/ethers/lib.esm/wordlists/lang-en.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/wordlists/lang-en.js +0 -31
- package/example/node_modules/ethers/lib.esm/wordlists/lang-en.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/wordlists/lang-es.d.ts +0 -23
- package/example/node_modules/ethers/lib.esm/wordlists/lang-es.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/wordlists/lang-es.js +0 -32
- package/example/node_modules/ethers/lib.esm/wordlists/lang-es.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/wordlists/lang-fr.d.ts +0 -23
- package/example/node_modules/ethers/lib.esm/wordlists/lang-fr.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/wordlists/lang-fr.js +0 -32
- package/example/node_modules/ethers/lib.esm/wordlists/lang-fr.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/wordlists/lang-it.d.ts +0 -23
- package/example/node_modules/ethers/lib.esm/wordlists/lang-it.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/wordlists/lang-it.js +0 -31
- package/example/node_modules/ethers/lib.esm/wordlists/lang-it.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/wordlists/lang-ja.d.ts +0 -27
- package/example/node_modules/ethers/lib.esm/wordlists/lang-ja.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/wordlists/lang-ja.js +0 -154
- package/example/node_modules/ethers/lib.esm/wordlists/lang-ja.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/wordlists/lang-ko.d.ts +0 -25
- package/example/node_modules/ethers/lib.esm/wordlists/lang-ko.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/wordlists/lang-ko.js +0 -89
- package/example/node_modules/ethers/lib.esm/wordlists/lang-ko.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/wordlists/lang-pt.d.ts +0 -23
- package/example/node_modules/ethers/lib.esm/wordlists/lang-pt.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/wordlists/lang-pt.js +0 -31
- package/example/node_modules/ethers/lib.esm/wordlists/lang-pt.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/wordlists/lang-zh.d.ts +0 -32
- package/example/node_modules/ethers/lib.esm/wordlists/lang-zh.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/wordlists/lang-zh.js +0 -92
- package/example/node_modules/ethers/lib.esm/wordlists/lang-zh.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/wordlists/wordlist-owl.d.ts +0 -32
- package/example/node_modules/ethers/lib.esm/wordlists/wordlist-owl.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/wordlists/wordlist-owl.js +0 -66
- package/example/node_modules/ethers/lib.esm/wordlists/wordlist-owl.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/wordlists/wordlist-owla.d.ts +0 -30
- package/example/node_modules/ethers/lib.esm/wordlists/wordlist-owla.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/wordlists/wordlist-owla.js +0 -36
- package/example/node_modules/ethers/lib.esm/wordlists/wordlist-owla.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/wordlists/wordlist.d.ts +0 -47
- package/example/node_modules/ethers/lib.esm/wordlists/wordlist.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/wordlists/wordlist.js +0 -42
- package/example/node_modules/ethers/lib.esm/wordlists/wordlist.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/wordlists/wordlists-browser.d.ts +0 -3
- package/example/node_modules/ethers/lib.esm/wordlists/wordlists-browser.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/wordlists/wordlists-browser.js +0 -5
- package/example/node_modules/ethers/lib.esm/wordlists/wordlists-browser.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/wordlists/wordlists-extra.d.ts +0 -9
- package/example/node_modules/ethers/lib.esm/wordlists/wordlists-extra.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/wordlists/wordlists-extra.js +0 -9
- package/example/node_modules/ethers/lib.esm/wordlists/wordlists-extra.js.map +0 -1
- package/example/node_modules/ethers/lib.esm/wordlists/wordlists.d.ts +0 -16
- package/example/node_modules/ethers/lib.esm/wordlists/wordlists.d.ts.map +0 -1
- package/example/node_modules/ethers/lib.esm/wordlists/wordlists.js +0 -35
- package/example/node_modules/ethers/lib.esm/wordlists/wordlists.js.map +0 -1
- package/example/node_modules/ethers/package.json +0 -135
- package/example/node_modules/ethers/rollup.config.mjs +0 -50
- package/example/node_modules/ethers/src.ts/_version.ts +0 -6
- package/example/node_modules/ethers/src.ts/abi/abi-coder.ts +0 -237
- package/example/node_modules/ethers/src.ts/abi/bytes32.ts +0 -45
- package/example/node_modules/ethers/src.ts/abi/coders/abstract-coder.ts +0 -541
- package/example/node_modules/ethers/src.ts/abi/coders/address.ts +0 -36
- package/example/node_modules/ethers/src.ts/abi/coders/anonymous.ts +0 -29
- package/example/node_modules/ethers/src.ts/abi/coders/array.ts +0 -199
- package/example/node_modules/ethers/src.ts/abi/coders/boolean.ts +0 -27
- package/example/node_modules/ethers/src.ts/abi/coders/bytes.ts +0 -43
- package/example/node_modules/ethers/src.ts/abi/coders/fixed-bytes.ts +0 -37
- package/example/node_modules/ethers/src.ts/abi/coders/null.ts +0 -28
- package/example/node_modules/ethers/src.ts/abi/coders/number.ts +0 -63
- package/example/node_modules/ethers/src.ts/abi/coders/string.ts +0 -29
- package/example/node_modules/ethers/src.ts/abi/coders/tuple.ts +0 -69
- package/example/node_modules/ethers/src.ts/abi/fragments.ts +0 -1617
- package/example/node_modules/ethers/src.ts/abi/index.ts +0 -41
- package/example/node_modules/ethers/src.ts/abi/interface.ts +0 -1271
- package/example/node_modules/ethers/src.ts/abi/typed.ts +0 -796
- package/example/node_modules/ethers/src.ts/address/address.ts +0 -173
- package/example/node_modules/ethers/src.ts/address/checks.ts +0 -123
- package/example/node_modules/ethers/src.ts/address/contract-address.ts +0 -80
- package/example/node_modules/ethers/src.ts/address/index.ts +0 -57
- package/example/node_modules/ethers/src.ts/constants/addresses.ts +0 -8
- package/example/node_modules/ethers/src.ts/constants/hashes.ts +0 -7
- package/example/node_modules/ethers/src.ts/constants/index.ts +0 -16
- package/example/node_modules/ethers/src.ts/constants/numbers.ts +0 -35
- package/example/node_modules/ethers/src.ts/constants/strings.ts +0 -16
- package/example/node_modules/ethers/src.ts/contract/contract.ts +0 -1120
- package/example/node_modules/ethers/src.ts/contract/factory.ts +0 -143
- package/example/node_modules/ethers/src.ts/contract/index.ts +0 -31
- package/example/node_modules/ethers/src.ts/contract/types.ts +0 -236
- package/example/node_modules/ethers/src.ts/contract/wrappers.ts +0 -225
- package/example/node_modules/ethers/src.ts/crypto/crypto-browser.ts +0 -64
- package/example/node_modules/ethers/src.ts/crypto/crypto.ts +0 -4
- package/example/node_modules/ethers/src.ts/crypto/hmac.ts +0 -51
- package/example/node_modules/ethers/src.ts/crypto/index.ts +0 -59
- package/example/node_modules/ethers/src.ts/crypto/keccak.ts +0 -54
- package/example/node_modules/ethers/src.ts/crypto/pbkdf2.ts +0 -55
- package/example/node_modules/ethers/src.ts/crypto/random.ts +0 -36
- package/example/node_modules/ethers/src.ts/crypto/ripemd160.ts +0 -43
- package/example/node_modules/ethers/src.ts/crypto/scrypt.ts +0 -114
- package/example/node_modules/ethers/src.ts/crypto/sha2.ts +0 -78
- package/example/node_modules/ethers/src.ts/crypto/signature.ts +0 -410
- package/example/node_modules/ethers/src.ts/crypto/signing-key.ts +0 -196
- package/example/node_modules/ethers/src.ts/ethers.ts +0 -221
- package/example/node_modules/ethers/src.ts/hash/authorization.ts +0 -38
- package/example/node_modules/ethers/src.ts/hash/id.ts +0 -17
- package/example/node_modules/ethers/src.ts/hash/index.ts +0 -18
- package/example/node_modules/ethers/src.ts/hash/message.ts +0 -51
- package/example/node_modules/ethers/src.ts/hash/namehash.ts +0 -101
- package/example/node_modules/ethers/src.ts/hash/solidity.ts +0 -117
- package/example/node_modules/ethers/src.ts/hash/typed-data.ts +0 -658
- package/example/node_modules/ethers/src.ts/index.ts +0 -12
- package/example/node_modules/ethers/src.ts/providers/abstract-provider.ts +0 -1761
- package/example/node_modules/ethers/src.ts/providers/abstract-signer.ts +0 -314
- package/example/node_modules/ethers/src.ts/providers/community.ts +0 -49
- package/example/node_modules/ethers/src.ts/providers/contracts.ts +0 -42
- package/example/node_modules/ethers/src.ts/providers/default-provider.ts +0 -202
- package/example/node_modules/ethers/src.ts/providers/ens-resolver.ts +0 -606
- package/example/node_modules/ethers/src.ts/providers/format.ts +0 -335
- package/example/node_modules/ethers/src.ts/providers/formatting.ts +0 -418
- package/example/node_modules/ethers/src.ts/providers/index.ts +0 -135
- package/example/node_modules/ethers/src.ts/providers/network.ts +0 -438
- package/example/node_modules/ethers/src.ts/providers/pagination.ts +0 -8
- package/example/node_modules/ethers/src.ts/providers/plugin-fallback.ts +0 -35
- package/example/node_modules/ethers/src.ts/providers/plugins-network.ts +0 -281
- package/example/node_modules/ethers/src.ts/providers/provider-alchemy.ts +0 -166
- package/example/node_modules/ethers/src.ts/providers/provider-ankr.ts +0 -159
- package/example/node_modules/ethers/src.ts/providers/provider-blockscout.ts +0 -167
- package/example/node_modules/ethers/src.ts/providers/provider-browser.ts +0 -334
- package/example/node_modules/ethers/src.ts/providers/provider-chainstack.ts +0 -113
- package/example/node_modules/ethers/src.ts/providers/provider-cloudflare.ts +0 -24
- package/example/node_modules/ethers/src.ts/providers/provider-etherscan.ts +0 -687
- package/example/node_modules/ethers/src.ts/providers/provider-fallback.ts +0 -801
- package/example/node_modules/ethers/src.ts/providers/provider-infura.ts +0 -220
- package/example/node_modules/ethers/src.ts/providers/provider-ipcsocket-browser.ts +0 -3
- package/example/node_modules/ethers/src.ts/providers/provider-ipcsocket.ts +0 -81
- package/example/node_modules/ethers/src.ts/providers/provider-jsonrpc.ts +0 -1335
- package/example/node_modules/ethers/src.ts/providers/provider-pocket.ts +0 -121
- package/example/node_modules/ethers/src.ts/providers/provider-quicknode.ts +0 -177
- package/example/node_modules/ethers/src.ts/providers/provider-socket.ts +0 -352
- package/example/node_modules/ethers/src.ts/providers/provider-websocket.ts +0 -103
- package/example/node_modules/ethers/src.ts/providers/provider.ts +0 -2146
- package/example/node_modules/ethers/src.ts/providers/signer-noncemanager.ts +0 -98
- package/example/node_modules/ethers/src.ts/providers/signer.ts +0 -166
- package/example/node_modules/ethers/src.ts/providers/subscriber-connection.ts +0 -74
- package/example/node_modules/ethers/src.ts/providers/subscriber-filterid.ts +0 -199
- package/example/node_modules/ethers/src.ts/providers/subscriber-polling.ts +0 -321
- package/example/node_modules/ethers/src.ts/providers/ws-browser.ts +0 -11
- package/example/node_modules/ethers/src.ts/providers/ws.ts +0 -3
- package/example/node_modules/ethers/src.ts/thirdparty.d.ts +0 -16
- package/example/node_modules/ethers/src.ts/transaction/accesslist.ts +0 -43
- package/example/node_modules/ethers/src.ts/transaction/address.ts +0 -28
- package/example/node_modules/ethers/src.ts/transaction/authorization.ts +0 -14
- package/example/node_modules/ethers/src.ts/transaction/index.ts +0 -51
- package/example/node_modules/ethers/src.ts/transaction/transaction.ts +0 -1556
- package/example/node_modules/ethers/src.ts/utils/base58.ts +0 -73
- package/example/node_modules/ethers/src.ts/utils/base64-browser.ts +0 -25
- package/example/node_modules/ethers/src.ts/utils/base64.ts +0 -56
- package/example/node_modules/ethers/src.ts/utils/data.ts +0 -200
- package/example/node_modules/ethers/src.ts/utils/errors.ts +0 -797
- package/example/node_modules/ethers/src.ts/utils/events.ts +0 -105
- package/example/node_modules/ethers/src.ts/utils/fetch.ts +0 -970
- package/example/node_modules/ethers/src.ts/utils/fixednumber.ts +0 -643
- package/example/node_modules/ethers/src.ts/utils/geturl-browser.ts +0 -81
- package/example/node_modules/ethers/src.ts/utils/geturl.ts +0 -141
- package/example/node_modules/ethers/src.ts/utils/index.ts +0 -95
- package/example/node_modules/ethers/src.ts/utils/maths.ts +0 -259
- package/example/node_modules/ethers/src.ts/utils/properties.ts +0 -60
- package/example/node_modules/ethers/src.ts/utils/rlp-decode.ts +0 -104
- package/example/node_modules/ethers/src.ts/utils/rlp-encode.ts +0 -64
- package/example/node_modules/ethers/src.ts/utils/rlp.ts +0 -20
- package/example/node_modules/ethers/src.ts/utils/test.txt +0 -0
- package/example/node_modules/ethers/src.ts/utils/units.ts +0 -91
- package/example/node_modules/ethers/src.ts/utils/utf8.ts +0 -325
- package/example/node_modules/ethers/src.ts/utils/uuid.ts +0 -36
- package/example/node_modules/ethers/src.ts/wallet/base-wallet.ts +0 -160
- package/example/node_modules/ethers/src.ts/wallet/hdwallet.ts +0 -586
- package/example/node_modules/ethers/src.ts/wallet/index.ts +0 -47
- package/example/node_modules/ethers/src.ts/wallet/json-crowdsale.ts +0 -74
- package/example/node_modules/ethers/src.ts/wallet/json-keystore.ts +0 -389
- package/example/node_modules/ethers/src.ts/wallet/mnemonic.ts +0 -203
- package/example/node_modules/ethers/src.ts/wallet/utils.ts +0 -147
- package/example/node_modules/ethers/src.ts/wallet/wallet.ts +0 -163
- package/example/node_modules/ethers/src.ts/wordlists/bit-reader.ts +0 -35
- package/example/node_modules/ethers/src.ts/wordlists/decode-owl.ts +0 -58
- package/example/node_modules/ethers/src.ts/wordlists/decode-owla.ts +0 -33
- package/example/node_modules/ethers/src.ts/wordlists/generation/encode-latin.ts +0 -370
- package/example/node_modules/ethers/src.ts/wordlists/index.ts +0 -26
- package/example/node_modules/ethers/src.ts/wordlists/lang-cz.ts +0 -33
- package/example/node_modules/ethers/src.ts/wordlists/lang-en.ts +0 -33
- package/example/node_modules/ethers/src.ts/wordlists/lang-es.ts +0 -35
- package/example/node_modules/ethers/src.ts/wordlists/lang-fr.ts +0 -34
- package/example/node_modules/ethers/src.ts/wordlists/lang-it.ts +0 -33
- package/example/node_modules/ethers/src.ts/wordlists/lang-ja.ts +0 -181
- package/example/node_modules/ethers/src.ts/wordlists/lang-ko.ts +0 -104
- package/example/node_modules/ethers/src.ts/wordlists/lang-pt.ts +0 -34
- package/example/node_modules/ethers/src.ts/wordlists/lang-zh.ts +0 -112
- package/example/node_modules/ethers/src.ts/wordlists/wordlist-owl.ts +0 -77
- package/example/node_modules/ethers/src.ts/wordlists/wordlist-owla.ts +0 -41
- package/example/node_modules/ethers/src.ts/wordlists/wordlist.ts +0 -59
- package/example/node_modules/ethers/src.ts/wordlists/wordlists-browser.ts +0 -8
- package/example/node_modules/ethers/src.ts/wordlists/wordlists-extra.ts +0 -9
- package/example/node_modules/ethers/src.ts/wordlists/wordlists.ts +0 -38
- package/example/node_modules/tslib/CopyrightNotice.txt +0 -15
- package/example/node_modules/tslib/LICENSE.txt +0 -12
- package/example/node_modules/tslib/README.md +0 -164
- package/example/node_modules/tslib/SECURITY.md +0 -41
- package/example/node_modules/tslib/modules/index.d.ts +0 -37
- package/example/node_modules/tslib/modules/index.js +0 -68
- package/example/node_modules/tslib/modules/package.json +0 -3
- package/example/node_modules/tslib/package.json +0 -47
- package/example/node_modules/tslib/tslib.d.ts +0 -453
- package/example/node_modules/tslib/tslib.es6.html +0 -1
- package/example/node_modules/tslib/tslib.es6.js +0 -379
- package/example/node_modules/tslib/tslib.es6.mjs +0 -378
- package/example/node_modules/tslib/tslib.html +0 -1
- package/example/node_modules/tslib/tslib.js +0 -429
- package/example/node_modules/undici-types/LICENSE +0 -21
- package/example/node_modules/undici-types/README.md +0 -6
- package/example/node_modules/undici-types/agent.d.ts +0 -31
- package/example/node_modules/undici-types/api.d.ts +0 -43
- package/example/node_modules/undici-types/balanced-pool.d.ts +0 -29
- package/example/node_modules/undici-types/cache.d.ts +0 -36
- package/example/node_modules/undici-types/client.d.ts +0 -108
- package/example/node_modules/undici-types/connector.d.ts +0 -34
- package/example/node_modules/undici-types/content-type.d.ts +0 -21
- package/example/node_modules/undici-types/cookies.d.ts +0 -28
- package/example/node_modules/undici-types/diagnostics-channel.d.ts +0 -66
- package/example/node_modules/undici-types/dispatcher.d.ts +0 -255
- package/example/node_modules/undici-types/env-http-proxy-agent.d.ts +0 -21
- package/example/node_modules/undici-types/errors.d.ts +0 -149
- package/example/node_modules/undici-types/eventsource.d.ts +0 -63
- package/example/node_modules/undici-types/fetch.d.ts +0 -209
- package/example/node_modules/undici-types/file.d.ts +0 -39
- package/example/node_modules/undici-types/filereader.d.ts +0 -54
- package/example/node_modules/undici-types/formdata.d.ts +0 -108
- package/example/node_modules/undici-types/global-dispatcher.d.ts +0 -9
- package/example/node_modules/undici-types/global-origin.d.ts +0 -7
- package/example/node_modules/undici-types/handlers.d.ts +0 -15
- package/example/node_modules/undici-types/header.d.ts +0 -4
- package/example/node_modules/undici-types/index.d.ts +0 -71
- package/example/node_modules/undici-types/interceptors.d.ts +0 -15
- package/example/node_modules/undici-types/mock-agent.d.ts +0 -50
- package/example/node_modules/undici-types/mock-client.d.ts +0 -25
- package/example/node_modules/undici-types/mock-errors.d.ts +0 -12
- package/example/node_modules/undici-types/mock-interceptor.d.ts +0 -93
- package/example/node_modules/undici-types/mock-pool.d.ts +0 -25
- package/example/node_modules/undici-types/package.json +0 -55
- package/example/node_modules/undici-types/patch.d.ts +0 -71
- package/example/node_modules/undici-types/pool-stats.d.ts +0 -19
- package/example/node_modules/undici-types/pool.d.ts +0 -39
- package/example/node_modules/undici-types/proxy-agent.d.ts +0 -28
- package/example/node_modules/undici-types/readable.d.ts +0 -60
- package/example/node_modules/undici-types/retry-agent.d.ts +0 -8
- package/example/node_modules/undici-types/retry-handler.d.ts +0 -116
- package/example/node_modules/undici-types/util.d.ts +0 -18
- package/example/node_modules/undici-types/webidl.d.ts +0 -222
- package/example/node_modules/undici-types/websocket.d.ts +0 -152
- package/example/node_modules/ws/LICENSE +0 -20
- package/example/node_modules/ws/README.md +0 -548
- package/example/node_modules/ws/browser.js +0 -8
- package/example/node_modules/ws/index.js +0 -13
- package/example/node_modules/ws/lib/buffer-util.js +0 -131
- package/example/node_modules/ws/lib/constants.js +0 -12
- package/example/node_modules/ws/lib/event-target.js +0 -292
- package/example/node_modules/ws/lib/extension.js +0 -203
- package/example/node_modules/ws/lib/limiter.js +0 -55
- package/example/node_modules/ws/lib/permessage-deflate.js +0 -514
- package/example/node_modules/ws/lib/receiver.js +0 -704
- package/example/node_modules/ws/lib/sender.js +0 -497
- package/example/node_modules/ws/lib/stream.js +0 -159
- package/example/node_modules/ws/lib/subprotocol.js +0 -62
- package/example/node_modules/ws/lib/validation.js +0 -130
- package/example/node_modules/ws/lib/websocket-server.js +0 -540
- package/example/node_modules/ws/lib/websocket.js +0 -1338
- package/example/node_modules/ws/package.json +0 -69
- package/example/node_modules/ws/wrapper.mjs +0 -8
|
@@ -1,1617 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A fragment is a single item from an ABI, which may represent any of:
|
|
3
|
-
*
|
|
4
|
-
* - [Functions](FunctionFragment)
|
|
5
|
-
* - [Events](EventFragment)
|
|
6
|
-
* - [Constructors](ConstructorFragment)
|
|
7
|
-
* - Custom [Errors](ErrorFragment)
|
|
8
|
-
* - [Fallback or Receive](FallbackFragment) functions
|
|
9
|
-
*
|
|
10
|
-
* @_subsection api/abi/abi-coder:Fragments [about-fragments]
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import {
|
|
14
|
-
defineProperties, getBigInt, getNumber,
|
|
15
|
-
assert, assertPrivate, assertArgument
|
|
16
|
-
} from "../utils/index.js";
|
|
17
|
-
import { id } from "../hash/index.js";
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* A Type description in a [JSON ABI format](link-solc-jsonabi).
|
|
21
|
-
*/
|
|
22
|
-
export interface JsonFragmentType {
|
|
23
|
-
/**
|
|
24
|
-
* The parameter name.
|
|
25
|
-
*/
|
|
26
|
-
readonly name?: string;
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* If the parameter is indexed.
|
|
30
|
-
*/
|
|
31
|
-
readonly indexed?: boolean;
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* The type of the parameter.
|
|
35
|
-
*/
|
|
36
|
-
readonly type?: string;
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* The internal Solidity type.
|
|
40
|
-
*/
|
|
41
|
-
readonly internalType?: string;
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* The components for a tuple.
|
|
45
|
-
*/
|
|
46
|
-
readonly components?: ReadonlyArray<JsonFragmentType>;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* A fragment for a method, event or error in a [JSON ABI format](link-solc-jsonabi).
|
|
51
|
-
*/
|
|
52
|
-
export interface JsonFragment {
|
|
53
|
-
/**
|
|
54
|
-
* The name of the error, event, function, etc.
|
|
55
|
-
*/
|
|
56
|
-
readonly name?: string;
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* The type of the fragment (e.g. ``event``, ``"function"``, etc.)
|
|
60
|
-
*/
|
|
61
|
-
readonly type?: string;
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* If the event is anonymous.
|
|
65
|
-
*/
|
|
66
|
-
readonly anonymous?: boolean;
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* If the function is payable.
|
|
70
|
-
*/
|
|
71
|
-
readonly payable?: boolean;
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* If the function is constant.
|
|
75
|
-
*/
|
|
76
|
-
readonly constant?: boolean;
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* The mutability state of the function.
|
|
80
|
-
*/
|
|
81
|
-
readonly stateMutability?: string;
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* The input parameters.
|
|
85
|
-
*/
|
|
86
|
-
readonly inputs?: ReadonlyArray<JsonFragmentType>;
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* The output parameters.
|
|
90
|
-
*/
|
|
91
|
-
readonly outputs?: ReadonlyArray<JsonFragmentType>;
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* The gas limit to use when sending a transaction for this function.
|
|
95
|
-
*/
|
|
96
|
-
readonly gas?: string;
|
|
97
|
-
};
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* The format to serialize the output as.
|
|
101
|
-
*
|
|
102
|
-
* **``"sighash"``** - the bare formatting, used to compute the selector
|
|
103
|
-
* or topic hash; this format cannot be reversed (as it discards ``indexed``)
|
|
104
|
-
* so cannot by used to export an [[Interface]].
|
|
105
|
-
*
|
|
106
|
-
* **``"minimal"``** - Human-Readable ABI with minimal spacing and without
|
|
107
|
-
* names, so it is compact, but will result in Result objects that cannot
|
|
108
|
-
* be accessed by name.
|
|
109
|
-
*
|
|
110
|
-
* **``"full"``** - Full Human-Readable ABI, with readable spacing and names
|
|
111
|
-
* intact; this is generally the recommended format.
|
|
112
|
-
*
|
|
113
|
-
* **``"json"``** - The [JSON ABI format](link-solc-jsonabi).
|
|
114
|
-
*/
|
|
115
|
-
export type FormatType = "sighash" | "minimal" | "full" | "json";
|
|
116
|
-
|
|
117
|
-
// [ "a", "b" ] => { "a": 1, "b": 1 }
|
|
118
|
-
function setify(items: Array<string>): ReadonlySet<string> {
|
|
119
|
-
const result: Set<string> = new Set();
|
|
120
|
-
items.forEach((k) => result.add(k));
|
|
121
|
-
return Object.freeze(result);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
const _kwVisibDeploy = "external public payable override";
|
|
125
|
-
const KwVisibDeploy = setify(_kwVisibDeploy.split(" "));
|
|
126
|
-
|
|
127
|
-
// Visibility Keywords
|
|
128
|
-
const _kwVisib = "constant external internal payable private public pure view override";
|
|
129
|
-
const KwVisib = setify(_kwVisib.split(" "));
|
|
130
|
-
|
|
131
|
-
const _kwTypes = "constructor error event fallback function receive struct";
|
|
132
|
-
const KwTypes = setify(_kwTypes.split(" "));
|
|
133
|
-
|
|
134
|
-
const _kwModifiers = "calldata memory storage payable indexed";
|
|
135
|
-
const KwModifiers = setify(_kwModifiers.split(" "));
|
|
136
|
-
|
|
137
|
-
const _kwOther = "tuple returns";
|
|
138
|
-
|
|
139
|
-
// All Keywords
|
|
140
|
-
const _keywords = [ _kwTypes, _kwModifiers, _kwOther, _kwVisib ].join(" ");
|
|
141
|
-
const Keywords = setify(_keywords.split(" "));
|
|
142
|
-
|
|
143
|
-
// Single character tokens
|
|
144
|
-
const SimpleTokens: Record<string, string> = {
|
|
145
|
-
"(": "OPEN_PAREN", ")": "CLOSE_PAREN",
|
|
146
|
-
"[": "OPEN_BRACKET", "]": "CLOSE_BRACKET",
|
|
147
|
-
",": "COMMA", "@": "AT"
|
|
148
|
-
};
|
|
149
|
-
|
|
150
|
-
// Parser regexes to consume the next token
|
|
151
|
-
const regexWhitespacePrefix = new RegExp("^(\\s*)");
|
|
152
|
-
const regexNumberPrefix = new RegExp("^([0-9]+)");
|
|
153
|
-
const regexIdPrefix = new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)");
|
|
154
|
-
|
|
155
|
-
// Parser regexs to check validity
|
|
156
|
-
const regexId = new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)$");
|
|
157
|
-
const regexType = new RegExp("^(address|bool|bytes([0-9]*)|string|u?int([0-9]*))$");
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* @ignore:
|
|
161
|
-
*/
|
|
162
|
-
type Token = Readonly<{
|
|
163
|
-
// Type of token (e.g. TYPE, KEYWORD, NUMBER, etc)
|
|
164
|
-
type: string;
|
|
165
|
-
|
|
166
|
-
// Offset into the original source code
|
|
167
|
-
offset: number;
|
|
168
|
-
|
|
169
|
-
// Actual text content of the token
|
|
170
|
-
text: string;
|
|
171
|
-
|
|
172
|
-
// The parenthesis depth
|
|
173
|
-
depth: number;
|
|
174
|
-
|
|
175
|
-
// If a parenthesis, the offset (in tokens) that balances it
|
|
176
|
-
match: number;
|
|
177
|
-
|
|
178
|
-
// For parenthesis and commas, the offset (in tokens) to the
|
|
179
|
-
// previous/next parenthesis or comma in the list
|
|
180
|
-
linkBack: number;
|
|
181
|
-
linkNext: number;
|
|
182
|
-
|
|
183
|
-
// If a BRACKET, the value inside
|
|
184
|
-
value: number;
|
|
185
|
-
}>;
|
|
186
|
-
|
|
187
|
-
class TokenString {
|
|
188
|
-
#offset: number;
|
|
189
|
-
#tokens: ReadonlyArray<Token>;
|
|
190
|
-
|
|
191
|
-
get offset(): number { return this.#offset; }
|
|
192
|
-
get length(): number { return this.#tokens.length - this.#offset; }
|
|
193
|
-
|
|
194
|
-
constructor(tokens: ReadonlyArray<Token>) {
|
|
195
|
-
this.#offset = 0;
|
|
196
|
-
this.#tokens = tokens.slice();
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
clone(): TokenString { return new TokenString(this.#tokens); }
|
|
200
|
-
reset(): void { this.#offset = 0; }
|
|
201
|
-
|
|
202
|
-
#subTokenString(from: number = 0, to: number = 0): TokenString {
|
|
203
|
-
return new TokenString(this.#tokens.slice(from, to).map((t) => {
|
|
204
|
-
return Object.freeze(Object.assign({ }, t, {
|
|
205
|
-
match: (t.match - from),
|
|
206
|
-
linkBack: (t.linkBack - from),
|
|
207
|
-
linkNext: (t.linkNext - from),
|
|
208
|
-
}));
|
|
209
|
-
}));
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
// Pops and returns the value of the next token, if it is a keyword in allowed; throws if out of tokens
|
|
213
|
-
popKeyword(allowed: ReadonlySet<string>): string {
|
|
214
|
-
const top = this.peek();
|
|
215
|
-
if (top.type !== "KEYWORD" || !allowed.has(top.text)) { throw new Error(`expected keyword ${ top.text }`); }
|
|
216
|
-
return this.pop().text;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
// Pops and returns the value of the next token if it is `type`; throws if out of tokens
|
|
220
|
-
popType(type: string): string {
|
|
221
|
-
if (this.peek().type !== type) {
|
|
222
|
-
const top = this.peek();
|
|
223
|
-
throw new Error(`expected ${ type }; got ${ top.type } ${ JSON.stringify(top.text) }`);
|
|
224
|
-
}
|
|
225
|
-
return this.pop().text;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
// Pops and returns a "(" TOKENS ")"
|
|
229
|
-
popParen(): TokenString {
|
|
230
|
-
const top = this.peek();
|
|
231
|
-
if (top.type !== "OPEN_PAREN") { throw new Error("bad start"); }
|
|
232
|
-
const result = this.#subTokenString(this.#offset + 1, top.match + 1);
|
|
233
|
-
this.#offset = top.match + 1;
|
|
234
|
-
return result;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
// Pops and returns the items within "(" ITEM1 "," ITEM2 "," ... ")"
|
|
238
|
-
popParams(): Array<TokenString> {
|
|
239
|
-
const top = this.peek();
|
|
240
|
-
|
|
241
|
-
if (top.type !== "OPEN_PAREN") { throw new Error("bad start"); }
|
|
242
|
-
|
|
243
|
-
const result: Array<TokenString> = [ ];
|
|
244
|
-
|
|
245
|
-
while(this.#offset < top.match - 1) {
|
|
246
|
-
const link = this.peek().linkNext;
|
|
247
|
-
result.push(this.#subTokenString(this.#offset + 1, link));
|
|
248
|
-
this.#offset = link;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
this.#offset = top.match + 1;
|
|
252
|
-
|
|
253
|
-
return result;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
// Returns the top Token, throwing if out of tokens
|
|
257
|
-
peek(): Token {
|
|
258
|
-
if (this.#offset >= this.#tokens.length) {
|
|
259
|
-
throw new Error("out-of-bounds");
|
|
260
|
-
}
|
|
261
|
-
return this.#tokens[this.#offset];
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
// Returns the next value, if it is a keyword in `allowed`
|
|
265
|
-
peekKeyword(allowed: ReadonlySet<string>): null | string {
|
|
266
|
-
const top = this.peekType("KEYWORD");
|
|
267
|
-
return (top != null && allowed.has(top)) ? top: null;
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
// Returns the value of the next token if it is `type`
|
|
271
|
-
peekType(type: string): null | string {
|
|
272
|
-
if (this.length === 0) { return null; }
|
|
273
|
-
const top = this.peek();
|
|
274
|
-
return (top.type === type) ? top.text: null;
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
// Returns the next token; throws if out of tokens
|
|
278
|
-
pop(): Token {
|
|
279
|
-
const result = this.peek();
|
|
280
|
-
this.#offset++;
|
|
281
|
-
return result;
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
toString(): string {
|
|
285
|
-
const tokens: Array<string> = [ ];
|
|
286
|
-
for (let i = this.#offset; i < this.#tokens.length; i++) {
|
|
287
|
-
const token = this.#tokens[i];
|
|
288
|
-
tokens.push(`${ token.type }:${ token.text }`);
|
|
289
|
-
}
|
|
290
|
-
return `<TokenString ${ tokens.join(" ") }>`
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
type Writeable<T> = { -readonly [P in keyof T]: T[P] };
|
|
295
|
-
|
|
296
|
-
function lex(text: string): TokenString {
|
|
297
|
-
const tokens: Array<Token> = [ ];
|
|
298
|
-
|
|
299
|
-
const throwError = (message: string) => {
|
|
300
|
-
const token = (offset < text.length) ? JSON.stringify(text[offset]): "$EOI";
|
|
301
|
-
throw new Error(`invalid token ${ token } at ${ offset }: ${ message }`);
|
|
302
|
-
};
|
|
303
|
-
|
|
304
|
-
let brackets: Array<number> = [ ];
|
|
305
|
-
let commas: Array<number> = [ ];
|
|
306
|
-
|
|
307
|
-
let offset = 0;
|
|
308
|
-
while (offset < text.length) {
|
|
309
|
-
|
|
310
|
-
// Strip off any leading whitespace
|
|
311
|
-
let cur = text.substring(offset);
|
|
312
|
-
let match = cur.match(regexWhitespacePrefix);
|
|
313
|
-
if (match) {
|
|
314
|
-
offset += match[1].length;
|
|
315
|
-
cur = text.substring(offset);
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
const token = { depth: brackets.length, linkBack: -1, linkNext: -1, match: -1, type: "", text: "", offset, value: -1 };
|
|
319
|
-
tokens.push(token);
|
|
320
|
-
|
|
321
|
-
let type = (SimpleTokens[cur[0]] || "");
|
|
322
|
-
if (type) {
|
|
323
|
-
token.type = type;
|
|
324
|
-
token.text = cur[0];
|
|
325
|
-
offset++;
|
|
326
|
-
|
|
327
|
-
if (type === "OPEN_PAREN") {
|
|
328
|
-
brackets.push(tokens.length - 1);
|
|
329
|
-
commas.push(tokens.length - 1);
|
|
330
|
-
|
|
331
|
-
} else if (type == "CLOSE_PAREN") {
|
|
332
|
-
if (brackets.length === 0) { throwError("no matching open bracket"); }
|
|
333
|
-
|
|
334
|
-
token.match = brackets.pop() as number;
|
|
335
|
-
(<Writeable<Token>>(tokens[token.match])).match = tokens.length - 1;
|
|
336
|
-
token.depth--;
|
|
337
|
-
|
|
338
|
-
token.linkBack = commas.pop() as number;
|
|
339
|
-
(<Writeable<Token>>(tokens[token.linkBack])).linkNext = tokens.length - 1;
|
|
340
|
-
|
|
341
|
-
} else if (type === "COMMA") {
|
|
342
|
-
token.linkBack = commas.pop() as number;
|
|
343
|
-
(<Writeable<Token>>(tokens[token.linkBack])).linkNext = tokens.length - 1;
|
|
344
|
-
commas.push(tokens.length - 1);
|
|
345
|
-
|
|
346
|
-
} else if (type === "OPEN_BRACKET") {
|
|
347
|
-
token.type = "BRACKET";
|
|
348
|
-
|
|
349
|
-
} else if (type === "CLOSE_BRACKET") {
|
|
350
|
-
// Remove the CLOSE_BRACKET
|
|
351
|
-
let suffix = (tokens.pop() as Token).text;
|
|
352
|
-
if (tokens.length > 0 && tokens[tokens.length - 1].type === "NUMBER") {
|
|
353
|
-
const value = (tokens.pop() as Token).text;
|
|
354
|
-
suffix = value + suffix;
|
|
355
|
-
(<Writeable<Token>>(tokens[tokens.length - 1])).value = getNumber(value);
|
|
356
|
-
}
|
|
357
|
-
if (tokens.length === 0 || tokens[tokens.length - 1].type !== "BRACKET") {
|
|
358
|
-
throw new Error("missing opening bracket");
|
|
359
|
-
}
|
|
360
|
-
(<Writeable<Token>>(tokens[tokens.length - 1])).text += suffix;
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
continue;
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
match = cur.match(regexIdPrefix);
|
|
367
|
-
if (match) {
|
|
368
|
-
token.text = match[1];
|
|
369
|
-
offset += token.text.length;
|
|
370
|
-
|
|
371
|
-
if (Keywords.has(token.text)) {
|
|
372
|
-
token.type = "KEYWORD";
|
|
373
|
-
continue;
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
if (token.text.match(regexType)) {
|
|
377
|
-
token.type = "TYPE";
|
|
378
|
-
continue;
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
token.type = "ID";
|
|
382
|
-
continue;
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
match = cur.match(regexNumberPrefix);
|
|
386
|
-
if (match) {
|
|
387
|
-
token.text = match[1];
|
|
388
|
-
token.type = "NUMBER";
|
|
389
|
-
offset += token.text.length;
|
|
390
|
-
continue;
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
throw new Error(`unexpected token ${ JSON.stringify(cur[0]) } at position ${ offset }`);
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
return new TokenString(tokens.map((t) => Object.freeze(t)));
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
// Check only one of `allowed` is in `set`
|
|
400
|
-
function allowSingle(set: ReadonlySet<string>, allowed: ReadonlySet<string>): void {
|
|
401
|
-
let included: Array<string> = [ ];
|
|
402
|
-
for (const key in allowed.keys()) {
|
|
403
|
-
if (set.has(key)) { included.push(key); }
|
|
404
|
-
}
|
|
405
|
-
if (included.length > 1) { throw new Error(`conflicting types: ${ included.join(", ") }`); }
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
// Functions to process a Solidity Signature TokenString from left-to-right for...
|
|
409
|
-
|
|
410
|
-
// ...the name with an optional type, returning the name
|
|
411
|
-
function consumeName(type: string, tokens: TokenString): string {
|
|
412
|
-
if (tokens.peekKeyword(KwTypes)) {
|
|
413
|
-
const keyword = tokens.pop().text;
|
|
414
|
-
if (keyword !== type) {
|
|
415
|
-
throw new Error(`expected ${ type }, got ${ keyword }`);
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
|
|
419
|
-
return tokens.popType("ID");
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
// ...all keywords matching allowed, returning the keywords
|
|
423
|
-
function consumeKeywords(tokens: TokenString, allowed?: ReadonlySet<string>): ReadonlySet<string> {
|
|
424
|
-
const keywords: Set<string> = new Set();
|
|
425
|
-
while (true) {
|
|
426
|
-
const keyword = tokens.peekType("KEYWORD");
|
|
427
|
-
|
|
428
|
-
if (keyword == null || (allowed && !allowed.has(keyword))) { break; }
|
|
429
|
-
tokens.pop();
|
|
430
|
-
|
|
431
|
-
if (keywords.has(keyword)) { throw new Error(`duplicate keywords: ${ JSON.stringify(keyword) }`); }
|
|
432
|
-
keywords.add(keyword);
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
return Object.freeze(keywords);
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
// ...all visibility keywords, returning the coalesced mutability
|
|
439
|
-
function consumeMutability(tokens: TokenString): "payable" | "nonpayable" | "view" | "pure" {
|
|
440
|
-
let modifiers = consumeKeywords(tokens, KwVisib);
|
|
441
|
-
|
|
442
|
-
// Detect conflicting modifiers
|
|
443
|
-
allowSingle(modifiers, setify("constant payable nonpayable".split(" ")));
|
|
444
|
-
allowSingle(modifiers, setify("pure view payable nonpayable".split(" ")));
|
|
445
|
-
|
|
446
|
-
// Process mutability states
|
|
447
|
-
if (modifiers.has("view")) { return "view"; }
|
|
448
|
-
if (modifiers.has("pure")) { return "pure"; }
|
|
449
|
-
if (modifiers.has("payable")) { return "payable"; }
|
|
450
|
-
if (modifiers.has("nonpayable")) { return "nonpayable"; }
|
|
451
|
-
|
|
452
|
-
// Process legacy `constant` last
|
|
453
|
-
if (modifiers.has("constant")) { return "view"; }
|
|
454
|
-
|
|
455
|
-
return "nonpayable";
|
|
456
|
-
}
|
|
457
|
-
|
|
458
|
-
// ...a parameter list, returning the ParamType list
|
|
459
|
-
function consumeParams(tokens: TokenString, allowIndexed?: boolean): Array<ParamType> {
|
|
460
|
-
return tokens.popParams().map((t) => ParamType.from(t, allowIndexed));
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
// ...a gas limit, returning a BigNumber or null if none
|
|
464
|
-
function consumeGas(tokens: TokenString): null | bigint {
|
|
465
|
-
if (tokens.peekType("AT")) {
|
|
466
|
-
tokens.pop();
|
|
467
|
-
if (tokens.peekType("NUMBER")) {
|
|
468
|
-
return getBigInt(tokens.pop().text);
|
|
469
|
-
}
|
|
470
|
-
throw new Error("invalid gas");
|
|
471
|
-
}
|
|
472
|
-
return null;
|
|
473
|
-
}
|
|
474
|
-
|
|
475
|
-
function consumeEoi(tokens: TokenString): void {
|
|
476
|
-
if (tokens.length) {
|
|
477
|
-
throw new Error(`unexpected tokens at offset ${ tokens.offset }: ${ tokens.toString() }`);
|
|
478
|
-
}
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
const regexArrayType = new RegExp(/^(.*)\[([0-9]*)\]$/);
|
|
482
|
-
|
|
483
|
-
function verifyBasicType(type: string): string {
|
|
484
|
-
const match = type.match(regexType);
|
|
485
|
-
assertArgument(match, "invalid type", "type", type);
|
|
486
|
-
if (type === "uint") { return "uint256"; }
|
|
487
|
-
if (type === "int") { return "int256"; }
|
|
488
|
-
|
|
489
|
-
if (match[2]) {
|
|
490
|
-
// bytesXX
|
|
491
|
-
const length = parseInt(match[2]);
|
|
492
|
-
assertArgument(length !== 0 && length <= 32, "invalid bytes length", "type", type);
|
|
493
|
-
|
|
494
|
-
} else if (match[3]) {
|
|
495
|
-
// intXX or uintXX
|
|
496
|
-
const size = parseInt(match[3] as string);
|
|
497
|
-
assertArgument(size !== 0 && size <= 256 && (size % 8) === 0, "invalid numeric width", "type", type);
|
|
498
|
-
}
|
|
499
|
-
|
|
500
|
-
return type;
|
|
501
|
-
}
|
|
502
|
-
|
|
503
|
-
// Make the Fragment constructors effectively private
|
|
504
|
-
const _guard = { };
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
/**
|
|
508
|
-
* When [walking](ParamType-walk) a [[ParamType]], this is called
|
|
509
|
-
* on each component.
|
|
510
|
-
*/
|
|
511
|
-
export type ParamTypeWalkFunc = (type: string, value: any) => any;
|
|
512
|
-
|
|
513
|
-
/**
|
|
514
|
-
* When [walking asynchronously](ParamType-walkAsync) a [[ParamType]],
|
|
515
|
-
* this is called on each component.
|
|
516
|
-
*/
|
|
517
|
-
export type ParamTypeWalkAsyncFunc = (type: string, value: any) => any | Promise<any>;
|
|
518
|
-
|
|
519
|
-
const internal = Symbol.for("_ethers_internal");
|
|
520
|
-
|
|
521
|
-
const ParamTypeInternal = "_ParamTypeInternal";
|
|
522
|
-
const ErrorFragmentInternal = "_ErrorInternal";
|
|
523
|
-
const EventFragmentInternal = "_EventInternal";
|
|
524
|
-
const ConstructorFragmentInternal = "_ConstructorInternal";
|
|
525
|
-
const FallbackFragmentInternal = "_FallbackInternal";
|
|
526
|
-
const FunctionFragmentInternal = "_FunctionInternal";
|
|
527
|
-
const StructFragmentInternal = "_StructInternal";
|
|
528
|
-
|
|
529
|
-
/**
|
|
530
|
-
* Each input and output of a [[Fragment]] is an Array of **ParamType**.
|
|
531
|
-
*/
|
|
532
|
-
export class ParamType {
|
|
533
|
-
|
|
534
|
-
/**
|
|
535
|
-
* The local name of the parameter (or ``""`` if unbound)
|
|
536
|
-
*/
|
|
537
|
-
readonly name!: string;
|
|
538
|
-
|
|
539
|
-
/**
|
|
540
|
-
* The fully qualified type (e.g. ``"address"``, ``"tuple(address)"``,
|
|
541
|
-
* ``"uint256[3][]"``)
|
|
542
|
-
*/
|
|
543
|
-
readonly type!: string;
|
|
544
|
-
|
|
545
|
-
/**
|
|
546
|
-
* The base type (e.g. ``"address"``, ``"tuple"``, ``"array"``)
|
|
547
|
-
*/
|
|
548
|
-
readonly baseType!: string;
|
|
549
|
-
|
|
550
|
-
/**
|
|
551
|
-
* True if the parameters is indexed.
|
|
552
|
-
*
|
|
553
|
-
* For non-indexable types this is ``null``.
|
|
554
|
-
*/
|
|
555
|
-
readonly indexed!: null | boolean;
|
|
556
|
-
|
|
557
|
-
/**
|
|
558
|
-
* The components for the tuple.
|
|
559
|
-
*
|
|
560
|
-
* For non-tuple types this is ``null``.
|
|
561
|
-
*/
|
|
562
|
-
readonly components!: null | ReadonlyArray<ParamType>;
|
|
563
|
-
|
|
564
|
-
/**
|
|
565
|
-
* The array length, or ``-1`` for dynamic-lengthed arrays.
|
|
566
|
-
*
|
|
567
|
-
* For non-array types this is ``null``.
|
|
568
|
-
*/
|
|
569
|
-
readonly arrayLength!: null | number;
|
|
570
|
-
|
|
571
|
-
/**
|
|
572
|
-
* The type of each child in the array.
|
|
573
|
-
*
|
|
574
|
-
* For non-array types this is ``null``.
|
|
575
|
-
*/
|
|
576
|
-
readonly arrayChildren!: null | ParamType;
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
/**
|
|
580
|
-
* @private
|
|
581
|
-
*/
|
|
582
|
-
constructor(guard: any, name: string, type: string, baseType: string, indexed: null | boolean, components: null | ReadonlyArray<ParamType>, arrayLength: null | number, arrayChildren: null | ParamType) {
|
|
583
|
-
assertPrivate(guard, _guard, "ParamType");
|
|
584
|
-
Object.defineProperty(this, internal, { value: ParamTypeInternal });
|
|
585
|
-
|
|
586
|
-
if (components) { components = Object.freeze(components.slice()); }
|
|
587
|
-
|
|
588
|
-
if (baseType === "array") {
|
|
589
|
-
if (arrayLength == null || arrayChildren == null) {
|
|
590
|
-
throw new Error("");
|
|
591
|
-
}
|
|
592
|
-
} else if (arrayLength != null || arrayChildren != null) {
|
|
593
|
-
throw new Error("");
|
|
594
|
-
}
|
|
595
|
-
|
|
596
|
-
if (baseType === "tuple") {
|
|
597
|
-
if (components == null) { throw new Error(""); }
|
|
598
|
-
} else if (components != null) {
|
|
599
|
-
throw new Error("");
|
|
600
|
-
}
|
|
601
|
-
|
|
602
|
-
defineProperties<ParamType>(this, {
|
|
603
|
-
name, type, baseType, indexed, components, arrayLength, arrayChildren
|
|
604
|
-
});
|
|
605
|
-
}
|
|
606
|
-
|
|
607
|
-
/**
|
|
608
|
-
* Return a string representation of this type.
|
|
609
|
-
*
|
|
610
|
-
* For example,
|
|
611
|
-
*
|
|
612
|
-
* ``sighash" => "(uint256,address)"``
|
|
613
|
-
*
|
|
614
|
-
* ``"minimal" => "tuple(uint256,address) indexed"``
|
|
615
|
-
*
|
|
616
|
-
* ``"full" => "tuple(uint256 foo, address bar) indexed baz"``
|
|
617
|
-
*/
|
|
618
|
-
format(format?: FormatType): string {
|
|
619
|
-
if (format == null) { format = "sighash"; }
|
|
620
|
-
if (format === "json") {
|
|
621
|
-
const name = this.name || "";
|
|
622
|
-
|
|
623
|
-
if (this.isArray()) {
|
|
624
|
-
const result = JSON.parse(this.arrayChildren.format("json"));
|
|
625
|
-
result.name = name;
|
|
626
|
-
result.type += `[${ (this.arrayLength < 0 ? "": String(this.arrayLength)) }]`;
|
|
627
|
-
return JSON.stringify(result);
|
|
628
|
-
}
|
|
629
|
-
|
|
630
|
-
const result: any = {
|
|
631
|
-
type: ((this.baseType === "tuple") ? "tuple": this.type),
|
|
632
|
-
name
|
|
633
|
-
};
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
if (typeof(this.indexed) === "boolean") { result.indexed = this.indexed; }
|
|
637
|
-
if (this.isTuple()) {
|
|
638
|
-
result.components = this.components.map((c) => JSON.parse(c.format(format)));
|
|
639
|
-
}
|
|
640
|
-
return JSON.stringify(result);
|
|
641
|
-
}
|
|
642
|
-
|
|
643
|
-
let result = "";
|
|
644
|
-
|
|
645
|
-
// Array
|
|
646
|
-
if (this.isArray()) {
|
|
647
|
-
result += this.arrayChildren.format(format);
|
|
648
|
-
result += `[${ (this.arrayLength < 0 ? "": String(this.arrayLength)) }]`;
|
|
649
|
-
} else {
|
|
650
|
-
if (this.isTuple()) {
|
|
651
|
-
result += "(" + this.components.map(
|
|
652
|
-
(comp) => comp.format(format)
|
|
653
|
-
).join((format === "full") ? ", ": ",") + ")";
|
|
654
|
-
} else {
|
|
655
|
-
result += this.type;
|
|
656
|
-
}
|
|
657
|
-
}
|
|
658
|
-
|
|
659
|
-
if (format !== "sighash") {
|
|
660
|
-
if (this.indexed === true) { result += " indexed"; }
|
|
661
|
-
if (format === "full" && this.name) {
|
|
662
|
-
result += " " + this.name;
|
|
663
|
-
}
|
|
664
|
-
}
|
|
665
|
-
|
|
666
|
-
return result;
|
|
667
|
-
}
|
|
668
|
-
|
|
669
|
-
/**
|
|
670
|
-
* Returns true if %%this%% is an Array type.
|
|
671
|
-
*
|
|
672
|
-
* This provides a type gaurd ensuring that [[arrayChildren]]
|
|
673
|
-
* and [[arrayLength]] are non-null.
|
|
674
|
-
*/
|
|
675
|
-
isArray(): this is (ParamType & { arrayChildren: ParamType, arrayLength: number }) {
|
|
676
|
-
return (this.baseType === "array")
|
|
677
|
-
}
|
|
678
|
-
|
|
679
|
-
/**
|
|
680
|
-
* Returns true if %%this%% is a Tuple type.
|
|
681
|
-
*
|
|
682
|
-
* This provides a type gaurd ensuring that [[components]]
|
|
683
|
-
* is non-null.
|
|
684
|
-
*/
|
|
685
|
-
isTuple(): this is (ParamType & { components: ReadonlyArray<ParamType> }) {
|
|
686
|
-
return (this.baseType === "tuple");
|
|
687
|
-
}
|
|
688
|
-
|
|
689
|
-
/**
|
|
690
|
-
* Returns true if %%this%% is an Indexable type.
|
|
691
|
-
*
|
|
692
|
-
* This provides a type gaurd ensuring that [[indexed]]
|
|
693
|
-
* is non-null.
|
|
694
|
-
*/
|
|
695
|
-
isIndexable(): this is (ParamType & { indexed: boolean }) {
|
|
696
|
-
return (this.indexed != null);
|
|
697
|
-
}
|
|
698
|
-
|
|
699
|
-
/**
|
|
700
|
-
* Walks the **ParamType** with %%value%%, calling %%process%%
|
|
701
|
-
* on each type, destructing the %%value%% recursively.
|
|
702
|
-
*/
|
|
703
|
-
walk(value: any, process: ParamTypeWalkFunc): any {
|
|
704
|
-
if (this.isArray()) {
|
|
705
|
-
if (!Array.isArray(value)) { throw new Error("invalid array value"); }
|
|
706
|
-
if (this.arrayLength !== -1 && value.length !== this.arrayLength) {
|
|
707
|
-
throw new Error("array is wrong length");
|
|
708
|
-
}
|
|
709
|
-
const _this = this;
|
|
710
|
-
return value.map((v) => (_this.arrayChildren.walk(v, process)));
|
|
711
|
-
}
|
|
712
|
-
|
|
713
|
-
if (this.isTuple()) {
|
|
714
|
-
if (!Array.isArray(value)) { throw new Error("invalid tuple value"); }
|
|
715
|
-
if (value.length !== this.components.length) {
|
|
716
|
-
throw new Error("array is wrong length");
|
|
717
|
-
}
|
|
718
|
-
const _this = this;
|
|
719
|
-
return value.map((v, i) => (_this.components[i].walk(v, process)));
|
|
720
|
-
}
|
|
721
|
-
|
|
722
|
-
return process(this.type, value);
|
|
723
|
-
}
|
|
724
|
-
|
|
725
|
-
#walkAsync(promises: Array<Promise<void>>, value: any, process: ParamTypeWalkAsyncFunc, setValue: (value: any) => void): void {
|
|
726
|
-
|
|
727
|
-
if (this.isArray()) {
|
|
728
|
-
if (!Array.isArray(value)) { throw new Error("invalid array value"); }
|
|
729
|
-
if (this.arrayLength !== -1 && value.length !== this.arrayLength) {
|
|
730
|
-
throw new Error("array is wrong length");
|
|
731
|
-
}
|
|
732
|
-
const childType = this.arrayChildren;
|
|
733
|
-
|
|
734
|
-
const result = value.slice();
|
|
735
|
-
result.forEach((value, index) => {
|
|
736
|
-
childType.#walkAsync(promises, value, process, (value: any) => {
|
|
737
|
-
result[index] = value;
|
|
738
|
-
});
|
|
739
|
-
});
|
|
740
|
-
setValue(result);
|
|
741
|
-
return;
|
|
742
|
-
}
|
|
743
|
-
|
|
744
|
-
if (this.isTuple()) {
|
|
745
|
-
const components = this.components;
|
|
746
|
-
|
|
747
|
-
// Convert the object into an array
|
|
748
|
-
let result: Array<any>;
|
|
749
|
-
if (Array.isArray(value)) {
|
|
750
|
-
result = value.slice();
|
|
751
|
-
|
|
752
|
-
} else {
|
|
753
|
-
if (value == null || typeof(value) !== "object") {
|
|
754
|
-
throw new Error("invalid tuple value");
|
|
755
|
-
}
|
|
756
|
-
|
|
757
|
-
result = components.map((param) => {
|
|
758
|
-
if (!param.name) { throw new Error("cannot use object value with unnamed components"); }
|
|
759
|
-
if (!(param.name in value)) {
|
|
760
|
-
throw new Error(`missing value for component ${ param.name }`);
|
|
761
|
-
}
|
|
762
|
-
return value[param.name];
|
|
763
|
-
});
|
|
764
|
-
}
|
|
765
|
-
|
|
766
|
-
if (result.length !== this.components.length) {
|
|
767
|
-
throw new Error("array is wrong length");
|
|
768
|
-
}
|
|
769
|
-
|
|
770
|
-
result.forEach((value, index) => {
|
|
771
|
-
components[index].#walkAsync(promises, value, process, (value: any) => {
|
|
772
|
-
result[index] = value;
|
|
773
|
-
});
|
|
774
|
-
});
|
|
775
|
-
setValue(result);
|
|
776
|
-
return;
|
|
777
|
-
}
|
|
778
|
-
|
|
779
|
-
const result = process(this.type, value);
|
|
780
|
-
if (result.then) {
|
|
781
|
-
promises.push((async function() { setValue(await result); })());
|
|
782
|
-
} else {
|
|
783
|
-
setValue(result);
|
|
784
|
-
}
|
|
785
|
-
}
|
|
786
|
-
|
|
787
|
-
/**
|
|
788
|
-
* Walks the **ParamType** with %%value%%, asynchronously calling
|
|
789
|
-
* %%process%% on each type, destructing the %%value%% recursively.
|
|
790
|
-
*
|
|
791
|
-
* This can be used to resolve ENS names by walking and resolving each
|
|
792
|
-
* ``"address"`` type.
|
|
793
|
-
*/
|
|
794
|
-
async walkAsync(value: any, process: ParamTypeWalkAsyncFunc): Promise<any> {
|
|
795
|
-
const promises: Array<Promise<void>> = [ ];
|
|
796
|
-
const result: [ any ] = [ value ];
|
|
797
|
-
this.#walkAsync(promises, value, process, (value: any) => {
|
|
798
|
-
result[0] = value;
|
|
799
|
-
});
|
|
800
|
-
if (promises.length) { await Promise.all(promises); }
|
|
801
|
-
return result[0];
|
|
802
|
-
}
|
|
803
|
-
|
|
804
|
-
/**
|
|
805
|
-
* Creates a new **ParamType** for %%obj%%.
|
|
806
|
-
*
|
|
807
|
-
* If %%allowIndexed%% then the ``indexed`` keyword is permitted,
|
|
808
|
-
* otherwise the ``indexed`` keyword will throw an error.
|
|
809
|
-
*/
|
|
810
|
-
static from(obj: any, allowIndexed?: boolean): ParamType {
|
|
811
|
-
if (ParamType.isParamType(obj)) { return obj; }
|
|
812
|
-
|
|
813
|
-
if (typeof(obj) === "string") {
|
|
814
|
-
try {
|
|
815
|
-
return ParamType.from(lex(obj), allowIndexed);
|
|
816
|
-
} catch (error) {
|
|
817
|
-
assertArgument(false, "invalid param type", "obj", obj);
|
|
818
|
-
}
|
|
819
|
-
|
|
820
|
-
} else if (obj instanceof TokenString) {
|
|
821
|
-
let type = "", baseType = "";
|
|
822
|
-
let comps: null | Array<ParamType> = null;
|
|
823
|
-
|
|
824
|
-
if (consumeKeywords(obj, setify([ "tuple" ])).has("tuple") || obj.peekType("OPEN_PAREN")) {
|
|
825
|
-
// Tuple
|
|
826
|
-
baseType = "tuple";
|
|
827
|
-
comps = obj.popParams().map((t) => ParamType.from(t));
|
|
828
|
-
type = `tuple(${ comps.map((c) => c.format()).join(",") })`;
|
|
829
|
-
} else {
|
|
830
|
-
// Normal
|
|
831
|
-
type = verifyBasicType(obj.popType("TYPE"));
|
|
832
|
-
baseType = type;
|
|
833
|
-
}
|
|
834
|
-
|
|
835
|
-
// Check for Array
|
|
836
|
-
let arrayChildren: null | ParamType = null;
|
|
837
|
-
let arrayLength: null | number = null;
|
|
838
|
-
|
|
839
|
-
while (obj.length && obj.peekType("BRACKET")) {
|
|
840
|
-
const bracket = obj.pop(); //arrays[i];
|
|
841
|
-
arrayChildren = new ParamType(_guard, "", type, baseType, null, comps, arrayLength, arrayChildren);
|
|
842
|
-
arrayLength = bracket.value;
|
|
843
|
-
type += bracket.text;
|
|
844
|
-
baseType = "array";
|
|
845
|
-
comps = null;
|
|
846
|
-
}
|
|
847
|
-
|
|
848
|
-
let indexed: null | boolean = null;
|
|
849
|
-
const keywords = consumeKeywords(obj, KwModifiers);
|
|
850
|
-
if (keywords.has("indexed")) {
|
|
851
|
-
if (!allowIndexed) { throw new Error(""); }
|
|
852
|
-
indexed = true;
|
|
853
|
-
}
|
|
854
|
-
|
|
855
|
-
const name = (obj.peekType("ID") ? obj.pop().text: "");
|
|
856
|
-
|
|
857
|
-
if (obj.length) { throw new Error("leftover tokens"); }
|
|
858
|
-
|
|
859
|
-
return new ParamType(_guard, name, type, baseType, indexed, comps, arrayLength, arrayChildren);
|
|
860
|
-
}
|
|
861
|
-
|
|
862
|
-
const name = obj.name;
|
|
863
|
-
assertArgument(!name || (typeof(name) === "string" && name.match(regexId)),
|
|
864
|
-
"invalid name", "obj.name", name);
|
|
865
|
-
|
|
866
|
-
let indexed = obj.indexed;
|
|
867
|
-
if (indexed != null) {
|
|
868
|
-
assertArgument(allowIndexed, "parameter cannot be indexed", "obj.indexed", obj.indexed);
|
|
869
|
-
indexed = !!indexed;
|
|
870
|
-
}
|
|
871
|
-
|
|
872
|
-
let type = obj.type;
|
|
873
|
-
|
|
874
|
-
let arrayMatch = type.match(regexArrayType);
|
|
875
|
-
if (arrayMatch) {
|
|
876
|
-
const arrayLength = parseInt(arrayMatch[2] || "-1");
|
|
877
|
-
const arrayChildren = ParamType.from({
|
|
878
|
-
type: arrayMatch[1],
|
|
879
|
-
components: obj.components
|
|
880
|
-
});
|
|
881
|
-
|
|
882
|
-
return new ParamType(_guard, name || "", type, "array", indexed, null, arrayLength, arrayChildren);
|
|
883
|
-
}
|
|
884
|
-
|
|
885
|
-
if (type === "tuple" || type.startsWith("tuple("/* fix: ) */) || type.startsWith("(" /* fix: ) */)) {
|
|
886
|
-
const comps = (obj.components != null) ? obj.components.map((c: any) => ParamType.from(c)): null;
|
|
887
|
-
const tuple = new ParamType(_guard, name || "", type, "tuple", indexed, comps, null, null);
|
|
888
|
-
// @TODO: use lexer to validate and normalize type
|
|
889
|
-
return tuple;
|
|
890
|
-
}
|
|
891
|
-
|
|
892
|
-
type = verifyBasicType(obj.type);
|
|
893
|
-
|
|
894
|
-
return new ParamType(_guard, name || "", type, type, indexed, null, null, null);
|
|
895
|
-
}
|
|
896
|
-
|
|
897
|
-
/**
|
|
898
|
-
* Returns true if %%value%% is a **ParamType**.
|
|
899
|
-
*/
|
|
900
|
-
static isParamType(value: any): value is ParamType {
|
|
901
|
-
return (value && value[internal] === ParamTypeInternal);
|
|
902
|
-
}
|
|
903
|
-
}
|
|
904
|
-
|
|
905
|
-
/**
|
|
906
|
-
* The type of a [[Fragment]].
|
|
907
|
-
*/
|
|
908
|
-
export type FragmentType = "constructor" | "error" | "event" | "fallback" | "function" | "struct";
|
|
909
|
-
|
|
910
|
-
/**
|
|
911
|
-
* An abstract class to represent An individual fragment from a parse ABI.
|
|
912
|
-
*/
|
|
913
|
-
export abstract class Fragment {
|
|
914
|
-
/**
|
|
915
|
-
* The type of the fragment.
|
|
916
|
-
*/
|
|
917
|
-
readonly type!: FragmentType;
|
|
918
|
-
|
|
919
|
-
/**
|
|
920
|
-
* The inputs for the fragment.
|
|
921
|
-
*/
|
|
922
|
-
readonly inputs!: ReadonlyArray<ParamType>;
|
|
923
|
-
|
|
924
|
-
/**
|
|
925
|
-
* @private
|
|
926
|
-
*/
|
|
927
|
-
constructor(guard: any, type: FragmentType, inputs: ReadonlyArray<ParamType>) {
|
|
928
|
-
assertPrivate(guard, _guard, "Fragment");
|
|
929
|
-
inputs = Object.freeze(inputs.slice());
|
|
930
|
-
defineProperties<Fragment>(this, { type, inputs });
|
|
931
|
-
}
|
|
932
|
-
|
|
933
|
-
/**
|
|
934
|
-
* Returns a string representation of this fragment as %%format%%.
|
|
935
|
-
*/
|
|
936
|
-
abstract format(format?: FormatType): string;
|
|
937
|
-
|
|
938
|
-
/**
|
|
939
|
-
* Creates a new **Fragment** for %%obj%%, wich can be any supported
|
|
940
|
-
* ABI frgament type.
|
|
941
|
-
*/
|
|
942
|
-
static from(obj: any): Fragment {
|
|
943
|
-
if (typeof(obj) === "string") {
|
|
944
|
-
|
|
945
|
-
// Try parsing JSON...
|
|
946
|
-
try {
|
|
947
|
-
Fragment.from(JSON.parse(obj));
|
|
948
|
-
} catch (e) { }
|
|
949
|
-
|
|
950
|
-
// ...otherwise, use the human-readable lexer
|
|
951
|
-
return Fragment.from(lex(obj));
|
|
952
|
-
}
|
|
953
|
-
|
|
954
|
-
if (obj instanceof TokenString) {
|
|
955
|
-
// Human-readable ABI (already lexed)
|
|
956
|
-
|
|
957
|
-
const type = obj.peekKeyword(KwTypes);
|
|
958
|
-
|
|
959
|
-
switch (type) {
|
|
960
|
-
case "constructor": return ConstructorFragment.from(obj);
|
|
961
|
-
case "error": return ErrorFragment.from(obj);
|
|
962
|
-
case "event": return EventFragment.from(obj);
|
|
963
|
-
case "fallback": case "receive":
|
|
964
|
-
return FallbackFragment.from(obj);
|
|
965
|
-
case "function": return FunctionFragment.from(obj);
|
|
966
|
-
case "struct": return StructFragment.from(obj);
|
|
967
|
-
}
|
|
968
|
-
|
|
969
|
-
} else if (typeof(obj) === "object") {
|
|
970
|
-
// JSON ABI
|
|
971
|
-
|
|
972
|
-
switch (obj.type) {
|
|
973
|
-
case "constructor": return ConstructorFragment.from(obj);
|
|
974
|
-
case "error": return ErrorFragment.from(obj);
|
|
975
|
-
case "event": return EventFragment.from(obj);
|
|
976
|
-
case "fallback": case "receive":
|
|
977
|
-
return FallbackFragment.from(obj);
|
|
978
|
-
case "function": return FunctionFragment.from(obj);
|
|
979
|
-
case "struct": return StructFragment.from(obj);
|
|
980
|
-
}
|
|
981
|
-
|
|
982
|
-
assert(false, `unsupported type: ${ obj.type }`, "UNSUPPORTED_OPERATION", {
|
|
983
|
-
operation: "Fragment.from"
|
|
984
|
-
});
|
|
985
|
-
}
|
|
986
|
-
|
|
987
|
-
assertArgument(false, "unsupported frgament object", "obj", obj);
|
|
988
|
-
}
|
|
989
|
-
|
|
990
|
-
/**
|
|
991
|
-
* Returns true if %%value%% is a [[ConstructorFragment]].
|
|
992
|
-
*/
|
|
993
|
-
static isConstructor(value: any): value is ConstructorFragment {
|
|
994
|
-
return ConstructorFragment.isFragment(value);
|
|
995
|
-
}
|
|
996
|
-
|
|
997
|
-
/**
|
|
998
|
-
* Returns true if %%value%% is an [[ErrorFragment]].
|
|
999
|
-
*/
|
|
1000
|
-
static isError(value: any): value is ErrorFragment {
|
|
1001
|
-
return ErrorFragment.isFragment(value);
|
|
1002
|
-
}
|
|
1003
|
-
|
|
1004
|
-
/**
|
|
1005
|
-
* Returns true if %%value%% is an [[EventFragment]].
|
|
1006
|
-
*/
|
|
1007
|
-
static isEvent(value: any): value is EventFragment {
|
|
1008
|
-
return EventFragment.isFragment(value);
|
|
1009
|
-
}
|
|
1010
|
-
|
|
1011
|
-
/**
|
|
1012
|
-
* Returns true if %%value%% is a [[FunctionFragment]].
|
|
1013
|
-
*/
|
|
1014
|
-
static isFunction(value: any): value is FunctionFragment {
|
|
1015
|
-
return FunctionFragment.isFragment(value);
|
|
1016
|
-
}
|
|
1017
|
-
|
|
1018
|
-
/**
|
|
1019
|
-
* Returns true if %%value%% is a [[StructFragment]].
|
|
1020
|
-
*/
|
|
1021
|
-
static isStruct(value: any): value is StructFragment {
|
|
1022
|
-
return StructFragment.isFragment(value);
|
|
1023
|
-
}
|
|
1024
|
-
}
|
|
1025
|
-
|
|
1026
|
-
/**
|
|
1027
|
-
* An abstract class to represent An individual fragment
|
|
1028
|
-
* which has a name from a parse ABI.
|
|
1029
|
-
*/
|
|
1030
|
-
export abstract class NamedFragment extends Fragment {
|
|
1031
|
-
/**
|
|
1032
|
-
* The name of the fragment.
|
|
1033
|
-
*/
|
|
1034
|
-
readonly name!: string;
|
|
1035
|
-
|
|
1036
|
-
/**
|
|
1037
|
-
* @private
|
|
1038
|
-
*/
|
|
1039
|
-
constructor(guard: any, type: FragmentType, name: string, inputs: ReadonlyArray<ParamType>) {
|
|
1040
|
-
super(guard, type, inputs);
|
|
1041
|
-
assertArgument(typeof(name) === "string" && name.match(regexId),
|
|
1042
|
-
"invalid identifier", "name", name);
|
|
1043
|
-
inputs = Object.freeze(inputs.slice());
|
|
1044
|
-
defineProperties<NamedFragment>(this, { name });
|
|
1045
|
-
}
|
|
1046
|
-
}
|
|
1047
|
-
|
|
1048
|
-
function joinParams(format: FormatType, params: ReadonlyArray<ParamType>): string {
|
|
1049
|
-
return "(" + params.map((p) => p.format(format)).join((format === "full") ? ", ": ",") + ")";
|
|
1050
|
-
}
|
|
1051
|
-
|
|
1052
|
-
/**
|
|
1053
|
-
* A Fragment which represents a //Custom Error//.
|
|
1054
|
-
*/
|
|
1055
|
-
export class ErrorFragment extends NamedFragment {
|
|
1056
|
-
/**
|
|
1057
|
-
* @private
|
|
1058
|
-
*/
|
|
1059
|
-
constructor(guard: any, name: string, inputs: ReadonlyArray<ParamType>) {
|
|
1060
|
-
super(guard, "error", name, inputs);
|
|
1061
|
-
Object.defineProperty(this, internal, { value: ErrorFragmentInternal });
|
|
1062
|
-
}
|
|
1063
|
-
|
|
1064
|
-
/**
|
|
1065
|
-
* The Custom Error selector.
|
|
1066
|
-
*/
|
|
1067
|
-
get selector(): string {
|
|
1068
|
-
return id(this.format("sighash")).substring(0, 10);
|
|
1069
|
-
}
|
|
1070
|
-
|
|
1071
|
-
/**
|
|
1072
|
-
* Returns a string representation of this fragment as %%format%%.
|
|
1073
|
-
*/
|
|
1074
|
-
format(format?: FormatType): string {
|
|
1075
|
-
if (format == null) { format = "sighash"; }
|
|
1076
|
-
if (format === "json") {
|
|
1077
|
-
return JSON.stringify({
|
|
1078
|
-
type: "error",
|
|
1079
|
-
name: this.name,
|
|
1080
|
-
inputs: this.inputs.map((input) => JSON.parse(input.format(format))),
|
|
1081
|
-
});
|
|
1082
|
-
}
|
|
1083
|
-
|
|
1084
|
-
const result: Array<string> = [ ];
|
|
1085
|
-
if (format !== "sighash") { result.push("error"); }
|
|
1086
|
-
result.push(this.name + joinParams(format, this.inputs));
|
|
1087
|
-
return result.join(" ");
|
|
1088
|
-
}
|
|
1089
|
-
|
|
1090
|
-
/**
|
|
1091
|
-
* Returns a new **ErrorFragment** for %%obj%%.
|
|
1092
|
-
*/
|
|
1093
|
-
static from(obj: any): ErrorFragment {
|
|
1094
|
-
if (ErrorFragment.isFragment(obj)) { return obj; }
|
|
1095
|
-
|
|
1096
|
-
if (typeof(obj) === "string") {
|
|
1097
|
-
return ErrorFragment.from(lex(obj));
|
|
1098
|
-
|
|
1099
|
-
} else if (obj instanceof TokenString) {
|
|
1100
|
-
const name = consumeName("error", obj);
|
|
1101
|
-
const inputs = consumeParams(obj);
|
|
1102
|
-
consumeEoi(obj);
|
|
1103
|
-
|
|
1104
|
-
return new ErrorFragment(_guard, name, inputs);
|
|
1105
|
-
}
|
|
1106
|
-
|
|
1107
|
-
return new ErrorFragment(_guard, obj.name,
|
|
1108
|
-
obj.inputs ? obj.inputs.map(ParamType.from): [ ]);
|
|
1109
|
-
}
|
|
1110
|
-
|
|
1111
|
-
/**
|
|
1112
|
-
* Returns ``true`` and provides a type guard if %%value%% is an
|
|
1113
|
-
* **ErrorFragment**.
|
|
1114
|
-
*/
|
|
1115
|
-
static isFragment(value: any): value is ErrorFragment {
|
|
1116
|
-
return (value && value[internal] === ErrorFragmentInternal);
|
|
1117
|
-
}
|
|
1118
|
-
}
|
|
1119
|
-
|
|
1120
|
-
/**
|
|
1121
|
-
* A Fragment which represents an Event.
|
|
1122
|
-
*/
|
|
1123
|
-
export class EventFragment extends NamedFragment {
|
|
1124
|
-
/**
|
|
1125
|
-
* Whether this event is anonymous.
|
|
1126
|
-
*/
|
|
1127
|
-
readonly anonymous!: boolean;
|
|
1128
|
-
|
|
1129
|
-
/**
|
|
1130
|
-
* @private
|
|
1131
|
-
*/
|
|
1132
|
-
constructor(guard: any, name: string, inputs: ReadonlyArray<ParamType>, anonymous: boolean) {
|
|
1133
|
-
super(guard, "event", name, inputs);
|
|
1134
|
-
Object.defineProperty(this, internal, { value: EventFragmentInternal });
|
|
1135
|
-
defineProperties<EventFragment>(this, { anonymous });
|
|
1136
|
-
}
|
|
1137
|
-
|
|
1138
|
-
/**
|
|
1139
|
-
* The Event topic hash.
|
|
1140
|
-
*/
|
|
1141
|
-
get topicHash(): string {
|
|
1142
|
-
return id(this.format("sighash"));
|
|
1143
|
-
}
|
|
1144
|
-
|
|
1145
|
-
/**
|
|
1146
|
-
* Returns a string representation of this event as %%format%%.
|
|
1147
|
-
*/
|
|
1148
|
-
format(format?: FormatType): string {
|
|
1149
|
-
if (format == null) { format = "sighash"; }
|
|
1150
|
-
if (format === "json") {
|
|
1151
|
-
return JSON.stringify({
|
|
1152
|
-
type: "event",
|
|
1153
|
-
anonymous: this.anonymous,
|
|
1154
|
-
name: this.name,
|
|
1155
|
-
inputs: this.inputs.map((i) => JSON.parse(i.format(format)))
|
|
1156
|
-
});
|
|
1157
|
-
}
|
|
1158
|
-
|
|
1159
|
-
const result: Array<string> = [ ];
|
|
1160
|
-
if (format !== "sighash") { result.push("event"); }
|
|
1161
|
-
result.push(this.name + joinParams(format, this.inputs));
|
|
1162
|
-
if (format !== "sighash" && this.anonymous) { result.push("anonymous"); }
|
|
1163
|
-
return result.join(" ");
|
|
1164
|
-
}
|
|
1165
|
-
|
|
1166
|
-
/**
|
|
1167
|
-
* Return the topic hash for an event with %%name%% and %%params%%.
|
|
1168
|
-
*/
|
|
1169
|
-
static getTopicHash(name: string, params?: Array<any>): string {
|
|
1170
|
-
params = (params || []).map((p) => ParamType.from(p));
|
|
1171
|
-
const fragment = new EventFragment(_guard, name, params, false);
|
|
1172
|
-
return fragment.topicHash;
|
|
1173
|
-
}
|
|
1174
|
-
|
|
1175
|
-
/**
|
|
1176
|
-
* Returns a new **EventFragment** for %%obj%%.
|
|
1177
|
-
*/
|
|
1178
|
-
static from(obj: any): EventFragment {
|
|
1179
|
-
if (EventFragment.isFragment(obj)) { return obj; }
|
|
1180
|
-
|
|
1181
|
-
if (typeof(obj) === "string") {
|
|
1182
|
-
try {
|
|
1183
|
-
return EventFragment.from(lex(obj));
|
|
1184
|
-
} catch (error) {
|
|
1185
|
-
assertArgument(false, "invalid event fragment", "obj", obj);
|
|
1186
|
-
}
|
|
1187
|
-
|
|
1188
|
-
} else if (obj instanceof TokenString) {
|
|
1189
|
-
const name = consumeName("event", obj);
|
|
1190
|
-
const inputs = consumeParams(obj, true);
|
|
1191
|
-
const anonymous = !!consumeKeywords(obj, setify([ "anonymous" ])).has("anonymous");
|
|
1192
|
-
consumeEoi(obj);
|
|
1193
|
-
|
|
1194
|
-
return new EventFragment(_guard, name, inputs, anonymous);
|
|
1195
|
-
}
|
|
1196
|
-
|
|
1197
|
-
return new EventFragment(_guard, obj.name,
|
|
1198
|
-
obj.inputs ? obj.inputs.map((p: any) => ParamType.from(p, true)): [ ], !!obj.anonymous);
|
|
1199
|
-
}
|
|
1200
|
-
|
|
1201
|
-
/**
|
|
1202
|
-
* Returns ``true`` and provides a type guard if %%value%% is an
|
|
1203
|
-
* **EventFragment**.
|
|
1204
|
-
*/
|
|
1205
|
-
static isFragment(value: any): value is EventFragment {
|
|
1206
|
-
return (value && value[internal] === EventFragmentInternal);
|
|
1207
|
-
}
|
|
1208
|
-
}
|
|
1209
|
-
|
|
1210
|
-
/**
|
|
1211
|
-
* A Fragment which represents a constructor.
|
|
1212
|
-
*/
|
|
1213
|
-
export class ConstructorFragment extends Fragment {
|
|
1214
|
-
|
|
1215
|
-
/**
|
|
1216
|
-
* Whether the constructor can receive an endowment.
|
|
1217
|
-
*/
|
|
1218
|
-
readonly payable!: boolean;
|
|
1219
|
-
|
|
1220
|
-
/**
|
|
1221
|
-
* The recommended gas limit for deployment or ``null``.
|
|
1222
|
-
*/
|
|
1223
|
-
readonly gas!: null | bigint;
|
|
1224
|
-
|
|
1225
|
-
/**
|
|
1226
|
-
* @private
|
|
1227
|
-
*/
|
|
1228
|
-
constructor(guard: any, type: FragmentType, inputs: ReadonlyArray<ParamType>, payable: boolean, gas: null | bigint) {
|
|
1229
|
-
super(guard, type, inputs);
|
|
1230
|
-
Object.defineProperty(this, internal, { value: ConstructorFragmentInternal });
|
|
1231
|
-
defineProperties<ConstructorFragment>(this, { payable, gas });
|
|
1232
|
-
}
|
|
1233
|
-
|
|
1234
|
-
/**
|
|
1235
|
-
* Returns a string representation of this constructor as %%format%%.
|
|
1236
|
-
*/
|
|
1237
|
-
format(format?: FormatType): string {
|
|
1238
|
-
assert(format != null && format !== "sighash", "cannot format a constructor for sighash",
|
|
1239
|
-
"UNSUPPORTED_OPERATION", { operation: "format(sighash)" });
|
|
1240
|
-
|
|
1241
|
-
if (format === "json") {
|
|
1242
|
-
return JSON.stringify({
|
|
1243
|
-
type: "constructor",
|
|
1244
|
-
stateMutability: (this.payable ? "payable": "undefined"),
|
|
1245
|
-
payable: this.payable,
|
|
1246
|
-
gas: ((this.gas != null) ? this.gas: undefined),
|
|
1247
|
-
inputs: this.inputs.map((i) => JSON.parse(i.format(format)))
|
|
1248
|
-
});
|
|
1249
|
-
}
|
|
1250
|
-
|
|
1251
|
-
const result = [ `constructor${ joinParams(format, this.inputs) }` ];
|
|
1252
|
-
if (this.payable) { result.push("payable"); }
|
|
1253
|
-
if (this.gas != null) { result.push(`@${ this.gas.toString() }`); }
|
|
1254
|
-
return result.join(" ");
|
|
1255
|
-
}
|
|
1256
|
-
|
|
1257
|
-
/**
|
|
1258
|
-
* Returns a new **ConstructorFragment** for %%obj%%.
|
|
1259
|
-
*/
|
|
1260
|
-
static from(obj: any): ConstructorFragment {
|
|
1261
|
-
if (ConstructorFragment.isFragment(obj)) { return obj; }
|
|
1262
|
-
|
|
1263
|
-
if (typeof(obj) === "string") {
|
|
1264
|
-
try {
|
|
1265
|
-
return ConstructorFragment.from(lex(obj));
|
|
1266
|
-
} catch (error) {
|
|
1267
|
-
assertArgument(false, "invalid constuctor fragment", "obj", obj);
|
|
1268
|
-
}
|
|
1269
|
-
|
|
1270
|
-
} else if (obj instanceof TokenString) {
|
|
1271
|
-
consumeKeywords(obj, setify([ "constructor" ]));
|
|
1272
|
-
const inputs = consumeParams(obj);
|
|
1273
|
-
const payable = !!consumeKeywords(obj, KwVisibDeploy).has("payable");
|
|
1274
|
-
const gas = consumeGas(obj);
|
|
1275
|
-
consumeEoi(obj);
|
|
1276
|
-
|
|
1277
|
-
return new ConstructorFragment(_guard, "constructor", inputs, payable, gas);
|
|
1278
|
-
}
|
|
1279
|
-
|
|
1280
|
-
return new ConstructorFragment(_guard, "constructor",
|
|
1281
|
-
obj.inputs ? obj.inputs.map(ParamType.from): [ ],
|
|
1282
|
-
!!obj.payable, (obj.gas != null) ? obj.gas: null);
|
|
1283
|
-
}
|
|
1284
|
-
|
|
1285
|
-
/**
|
|
1286
|
-
* Returns ``true`` and provides a type guard if %%value%% is a
|
|
1287
|
-
* **ConstructorFragment**.
|
|
1288
|
-
*/
|
|
1289
|
-
static isFragment(value: any): value is ConstructorFragment {
|
|
1290
|
-
return (value && value[internal] === ConstructorFragmentInternal);
|
|
1291
|
-
}
|
|
1292
|
-
}
|
|
1293
|
-
|
|
1294
|
-
/**
|
|
1295
|
-
* A Fragment which represents a method.
|
|
1296
|
-
*/
|
|
1297
|
-
export class FallbackFragment extends Fragment {
|
|
1298
|
-
|
|
1299
|
-
/**
|
|
1300
|
-
* If the function can be sent value during invocation.
|
|
1301
|
-
*/
|
|
1302
|
-
readonly payable!: boolean;
|
|
1303
|
-
|
|
1304
|
-
constructor(guard: any, inputs: ReadonlyArray<ParamType>, payable: boolean) {
|
|
1305
|
-
super(guard, "fallback", inputs);
|
|
1306
|
-
Object.defineProperty(this, internal, { value: FallbackFragmentInternal });
|
|
1307
|
-
defineProperties<FallbackFragment>(this, { payable });
|
|
1308
|
-
}
|
|
1309
|
-
|
|
1310
|
-
/**
|
|
1311
|
-
* Returns a string representation of this fallback as %%format%%.
|
|
1312
|
-
*/
|
|
1313
|
-
format(format?: FormatType): string {
|
|
1314
|
-
const type = ((this.inputs.length === 0) ? "receive": "fallback");
|
|
1315
|
-
|
|
1316
|
-
if (format === "json") {
|
|
1317
|
-
const stateMutability = (this.payable ? "payable": "nonpayable");
|
|
1318
|
-
return JSON.stringify({ type, stateMutability });
|
|
1319
|
-
}
|
|
1320
|
-
|
|
1321
|
-
return `${ type }()${ this.payable ? " payable": "" }`;
|
|
1322
|
-
}
|
|
1323
|
-
|
|
1324
|
-
/**
|
|
1325
|
-
* Returns a new **FallbackFragment** for %%obj%%.
|
|
1326
|
-
*/
|
|
1327
|
-
static from(obj: any): FallbackFragment {
|
|
1328
|
-
if (FallbackFragment.isFragment(obj)) { return obj; }
|
|
1329
|
-
|
|
1330
|
-
if (typeof(obj) === "string") {
|
|
1331
|
-
try {
|
|
1332
|
-
return FallbackFragment.from(lex(obj));
|
|
1333
|
-
} catch (error) {
|
|
1334
|
-
assertArgument(false, "invalid fallback fragment", "obj", obj);
|
|
1335
|
-
}
|
|
1336
|
-
|
|
1337
|
-
} else if (obj instanceof TokenString) {
|
|
1338
|
-
const errorObj = obj.toString();
|
|
1339
|
-
|
|
1340
|
-
const topIsValid = obj.peekKeyword(setify([ "fallback", "receive" ]));
|
|
1341
|
-
assertArgument(topIsValid, "type must be fallback or receive", "obj", errorObj);
|
|
1342
|
-
|
|
1343
|
-
const type = obj.popKeyword(setify([ "fallback", "receive" ]));
|
|
1344
|
-
|
|
1345
|
-
// receive()
|
|
1346
|
-
if (type === "receive") {
|
|
1347
|
-
const inputs = consumeParams(obj);
|
|
1348
|
-
assertArgument(inputs.length === 0, `receive cannot have arguments`, "obj.inputs", inputs);
|
|
1349
|
-
consumeKeywords(obj, setify([ "payable" ]));
|
|
1350
|
-
consumeEoi(obj);
|
|
1351
|
-
return new FallbackFragment(_guard, [ ], true);
|
|
1352
|
-
}
|
|
1353
|
-
|
|
1354
|
-
// fallback() [payable]
|
|
1355
|
-
// fallback(bytes) [payable] returns (bytes)
|
|
1356
|
-
let inputs = consumeParams(obj);
|
|
1357
|
-
if (inputs.length) {
|
|
1358
|
-
assertArgument(inputs.length === 1 && inputs[0].type === "bytes",
|
|
1359
|
-
"invalid fallback inputs", "obj.inputs",
|
|
1360
|
-
inputs.map((i) => i.format("minimal")).join(", "));
|
|
1361
|
-
} else {
|
|
1362
|
-
inputs = [ ParamType.from("bytes") ];
|
|
1363
|
-
}
|
|
1364
|
-
|
|
1365
|
-
const mutability = consumeMutability(obj);
|
|
1366
|
-
assertArgument(mutability === "nonpayable" || mutability === "payable", "fallback cannot be constants", "obj.stateMutability", mutability);
|
|
1367
|
-
|
|
1368
|
-
if (consumeKeywords(obj, setify([ "returns" ])).has("returns")) {
|
|
1369
|
-
const outputs = consumeParams(obj);
|
|
1370
|
-
assertArgument(outputs.length === 1 && outputs[0].type === "bytes",
|
|
1371
|
-
"invalid fallback outputs", "obj.outputs",
|
|
1372
|
-
outputs.map((i) => i.format("minimal")).join(", "));
|
|
1373
|
-
}
|
|
1374
|
-
|
|
1375
|
-
consumeEoi(obj);
|
|
1376
|
-
|
|
1377
|
-
return new FallbackFragment(_guard, inputs, mutability === "payable");
|
|
1378
|
-
}
|
|
1379
|
-
|
|
1380
|
-
if (obj.type === "receive") {
|
|
1381
|
-
return new FallbackFragment(_guard, [ ], true);
|
|
1382
|
-
}
|
|
1383
|
-
|
|
1384
|
-
if (obj.type === "fallback") {
|
|
1385
|
-
const inputs = [ ParamType.from("bytes") ];
|
|
1386
|
-
const payable = (obj.stateMutability === "payable");
|
|
1387
|
-
return new FallbackFragment(_guard, inputs, payable);
|
|
1388
|
-
}
|
|
1389
|
-
|
|
1390
|
-
assertArgument(false, "invalid fallback description", "obj", obj);
|
|
1391
|
-
}
|
|
1392
|
-
|
|
1393
|
-
/**
|
|
1394
|
-
* Returns ``true`` and provides a type guard if %%value%% is a
|
|
1395
|
-
* **FallbackFragment**.
|
|
1396
|
-
*/
|
|
1397
|
-
static isFragment(value: any): value is FallbackFragment {
|
|
1398
|
-
return (value && value[internal] === FallbackFragmentInternal);
|
|
1399
|
-
}
|
|
1400
|
-
}
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
/**
|
|
1404
|
-
* A Fragment which represents a method.
|
|
1405
|
-
*/
|
|
1406
|
-
export class FunctionFragment extends NamedFragment {
|
|
1407
|
-
/**
|
|
1408
|
-
* If the function is constant (e.g. ``pure`` or ``view`` functions).
|
|
1409
|
-
*/
|
|
1410
|
-
readonly constant!: boolean;
|
|
1411
|
-
|
|
1412
|
-
/**
|
|
1413
|
-
* The returned types for the result of calling this function.
|
|
1414
|
-
*/
|
|
1415
|
-
readonly outputs!: ReadonlyArray<ParamType>;
|
|
1416
|
-
|
|
1417
|
-
/**
|
|
1418
|
-
* The state mutability (e.g. ``payable``, ``nonpayable``, ``view``
|
|
1419
|
-
* or ``pure``)
|
|
1420
|
-
*/
|
|
1421
|
-
readonly stateMutability!: "payable" | "nonpayable" | "view" | "pure";
|
|
1422
|
-
|
|
1423
|
-
/**
|
|
1424
|
-
* If the function can be sent value during invocation.
|
|
1425
|
-
*/
|
|
1426
|
-
readonly payable!: boolean;
|
|
1427
|
-
|
|
1428
|
-
/**
|
|
1429
|
-
* The recommended gas limit to send when calling this function.
|
|
1430
|
-
*/
|
|
1431
|
-
readonly gas!: null | bigint;
|
|
1432
|
-
|
|
1433
|
-
/**
|
|
1434
|
-
* @private
|
|
1435
|
-
*/
|
|
1436
|
-
constructor(guard: any, name: string, stateMutability: "payable" | "nonpayable" | "view" | "pure", inputs: ReadonlyArray<ParamType>, outputs: ReadonlyArray<ParamType>, gas: null | bigint) {
|
|
1437
|
-
super(guard, "function", name, inputs);
|
|
1438
|
-
Object.defineProperty(this, internal, { value: FunctionFragmentInternal });
|
|
1439
|
-
outputs = Object.freeze(outputs.slice());
|
|
1440
|
-
const constant = (stateMutability === "view" || stateMutability === "pure");
|
|
1441
|
-
const payable = (stateMutability === "payable");
|
|
1442
|
-
defineProperties<FunctionFragment>(this, { constant, gas, outputs, payable, stateMutability });
|
|
1443
|
-
}
|
|
1444
|
-
|
|
1445
|
-
/**
|
|
1446
|
-
* The Function selector.
|
|
1447
|
-
*/
|
|
1448
|
-
get selector(): string {
|
|
1449
|
-
return id(this.format("sighash")).substring(0, 10);
|
|
1450
|
-
}
|
|
1451
|
-
|
|
1452
|
-
/**
|
|
1453
|
-
* Returns a string representation of this function as %%format%%.
|
|
1454
|
-
*/
|
|
1455
|
-
format(format?: FormatType): string {
|
|
1456
|
-
if (format == null) { format = "sighash"; }
|
|
1457
|
-
if (format === "json") {
|
|
1458
|
-
return JSON.stringify({
|
|
1459
|
-
type: "function",
|
|
1460
|
-
name: this.name,
|
|
1461
|
-
constant: this.constant,
|
|
1462
|
-
stateMutability: ((this.stateMutability !== "nonpayable") ? this.stateMutability: undefined),
|
|
1463
|
-
payable: this.payable,
|
|
1464
|
-
gas: ((this.gas != null) ? this.gas: undefined),
|
|
1465
|
-
inputs: this.inputs.map((i) => JSON.parse(i.format(format))),
|
|
1466
|
-
outputs: this.outputs.map((o) => JSON.parse(o.format(format))),
|
|
1467
|
-
});
|
|
1468
|
-
}
|
|
1469
|
-
|
|
1470
|
-
const result: Array<string> = [];
|
|
1471
|
-
|
|
1472
|
-
if (format !== "sighash") { result.push("function"); }
|
|
1473
|
-
|
|
1474
|
-
result.push(this.name + joinParams(format, this.inputs));
|
|
1475
|
-
|
|
1476
|
-
if (format !== "sighash") {
|
|
1477
|
-
if (this.stateMutability !== "nonpayable") {
|
|
1478
|
-
result.push(this.stateMutability);
|
|
1479
|
-
}
|
|
1480
|
-
|
|
1481
|
-
if (this.outputs && this.outputs.length) {
|
|
1482
|
-
result.push("returns");
|
|
1483
|
-
result.push(joinParams(format, this.outputs));
|
|
1484
|
-
}
|
|
1485
|
-
|
|
1486
|
-
if (this.gas != null) { result.push(`@${ this.gas.toString() }`); }
|
|
1487
|
-
}
|
|
1488
|
-
return result.join(" ");
|
|
1489
|
-
}
|
|
1490
|
-
|
|
1491
|
-
/**
|
|
1492
|
-
* Return the selector for a function with %%name%% and %%params%%.
|
|
1493
|
-
*/
|
|
1494
|
-
static getSelector(name: string, params?: Array<any>): string {
|
|
1495
|
-
params = (params || []).map((p) => ParamType.from(p));
|
|
1496
|
-
const fragment = new FunctionFragment(_guard, name, "view", params, [ ], null);
|
|
1497
|
-
return fragment.selector;
|
|
1498
|
-
}
|
|
1499
|
-
|
|
1500
|
-
/**
|
|
1501
|
-
* Returns a new **FunctionFragment** for %%obj%%.
|
|
1502
|
-
*/
|
|
1503
|
-
static from(obj: any): FunctionFragment {
|
|
1504
|
-
if (FunctionFragment.isFragment(obj)) { return obj; }
|
|
1505
|
-
|
|
1506
|
-
if (typeof(obj) === "string") {
|
|
1507
|
-
try {
|
|
1508
|
-
return FunctionFragment.from(lex(obj));
|
|
1509
|
-
} catch (error) {
|
|
1510
|
-
assertArgument(false, "invalid function fragment", "obj", obj);
|
|
1511
|
-
}
|
|
1512
|
-
|
|
1513
|
-
} else if (obj instanceof TokenString) {
|
|
1514
|
-
const name = consumeName("function", obj);
|
|
1515
|
-
const inputs = consumeParams(obj);
|
|
1516
|
-
const mutability = consumeMutability(obj);
|
|
1517
|
-
|
|
1518
|
-
let outputs: Array<ParamType> = [ ];
|
|
1519
|
-
if (consumeKeywords(obj, setify([ "returns" ])).has("returns")) {
|
|
1520
|
-
outputs = consumeParams(obj);
|
|
1521
|
-
}
|
|
1522
|
-
|
|
1523
|
-
const gas = consumeGas(obj);
|
|
1524
|
-
|
|
1525
|
-
consumeEoi(obj);
|
|
1526
|
-
|
|
1527
|
-
return new FunctionFragment(_guard, name, mutability, inputs, outputs, gas);
|
|
1528
|
-
}
|
|
1529
|
-
|
|
1530
|
-
let stateMutability = obj.stateMutability;
|
|
1531
|
-
|
|
1532
|
-
// Use legacy Solidity ABI logic if stateMutability is missing
|
|
1533
|
-
if (stateMutability == null) {
|
|
1534
|
-
stateMutability = "payable";
|
|
1535
|
-
|
|
1536
|
-
if (typeof(obj.constant) === "boolean") {
|
|
1537
|
-
stateMutability = "view";
|
|
1538
|
-
if (!obj.constant) {
|
|
1539
|
-
stateMutability = "payable"
|
|
1540
|
-
if (typeof(obj.payable) === "boolean" && !obj.payable) {
|
|
1541
|
-
stateMutability = "nonpayable";
|
|
1542
|
-
}
|
|
1543
|
-
}
|
|
1544
|
-
} else if (typeof(obj.payable) === "boolean" && !obj.payable) {
|
|
1545
|
-
stateMutability = "nonpayable";
|
|
1546
|
-
}
|
|
1547
|
-
}
|
|
1548
|
-
|
|
1549
|
-
// @TODO: verifyState for stateMutability (e.g. throw if
|
|
1550
|
-
// payable: false but stateMutability is "nonpayable")
|
|
1551
|
-
|
|
1552
|
-
return new FunctionFragment(_guard, obj.name, stateMutability,
|
|
1553
|
-
obj.inputs ? obj.inputs.map(ParamType.from): [ ],
|
|
1554
|
-
obj.outputs ? obj.outputs.map(ParamType.from): [ ],
|
|
1555
|
-
(obj.gas != null) ? obj.gas: null);
|
|
1556
|
-
}
|
|
1557
|
-
|
|
1558
|
-
/**
|
|
1559
|
-
* Returns ``true`` and provides a type guard if %%value%% is a
|
|
1560
|
-
* **FunctionFragment**.
|
|
1561
|
-
*/
|
|
1562
|
-
static isFragment(value: any): value is FunctionFragment {
|
|
1563
|
-
return (value && value[internal] === FunctionFragmentInternal);
|
|
1564
|
-
}
|
|
1565
|
-
}
|
|
1566
|
-
|
|
1567
|
-
/**
|
|
1568
|
-
* A Fragment which represents a structure.
|
|
1569
|
-
*/
|
|
1570
|
-
export class StructFragment extends NamedFragment {
|
|
1571
|
-
|
|
1572
|
-
/**
|
|
1573
|
-
* @private
|
|
1574
|
-
*/
|
|
1575
|
-
constructor(guard: any, name: string, inputs: ReadonlyArray<ParamType>) {
|
|
1576
|
-
super(guard, "struct", name, inputs);
|
|
1577
|
-
Object.defineProperty(this, internal, { value: StructFragmentInternal });
|
|
1578
|
-
}
|
|
1579
|
-
|
|
1580
|
-
/**
|
|
1581
|
-
* Returns a string representation of this struct as %%format%%.
|
|
1582
|
-
*/
|
|
1583
|
-
format(): string {
|
|
1584
|
-
throw new Error("@TODO");
|
|
1585
|
-
}
|
|
1586
|
-
|
|
1587
|
-
/**
|
|
1588
|
-
* Returns a new **StructFragment** for %%obj%%.
|
|
1589
|
-
*/
|
|
1590
|
-
static from(obj: any): StructFragment {
|
|
1591
|
-
if (typeof(obj) === "string") {
|
|
1592
|
-
try {
|
|
1593
|
-
return StructFragment.from(lex(obj));
|
|
1594
|
-
} catch (error) {
|
|
1595
|
-
assertArgument(false, "invalid struct fragment", "obj", obj);
|
|
1596
|
-
}
|
|
1597
|
-
|
|
1598
|
-
} else if (obj instanceof TokenString) {
|
|
1599
|
-
const name = consumeName("struct", obj);
|
|
1600
|
-
const inputs = consumeParams(obj);
|
|
1601
|
-
consumeEoi(obj);
|
|
1602
|
-
return new StructFragment(_guard, name, inputs);
|
|
1603
|
-
}
|
|
1604
|
-
|
|
1605
|
-
return new StructFragment(_guard, obj.name, obj.inputs ? obj.inputs.map(ParamType.from): [ ]);
|
|
1606
|
-
}
|
|
1607
|
-
|
|
1608
|
-
// @TODO: fix this return type
|
|
1609
|
-
/**
|
|
1610
|
-
* Returns ``true`` and provides a type guard if %%value%% is a
|
|
1611
|
-
* **StructFragment**.
|
|
1612
|
-
*/
|
|
1613
|
-
static isFragment(value: any): value is FunctionFragment {
|
|
1614
|
-
return (value && value[internal] === StructFragmentInternal);
|
|
1615
|
-
}
|
|
1616
|
-
}
|
|
1617
|
-
|