quantumcoin 6.14.4 → 7.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/publish-npmjs.yaml +22 -0
- package/.gitignore +12 -0
- package/{LICENSE.md → LICENSE} +1 -1
- package/README-SDK.md +700 -0
- package/README.md +84 -89
- package/config.d.ts +50 -0
- package/config.js +115 -0
- package/examples/events.js +35 -0
- package/examples/example.js +61 -0
- package/examples/package-lock.json +1150 -0
- package/examples/package.json +17 -0
- package/examples/read-operations.js +28 -0
- package/examples/wallet-offline.js +29 -0
- package/generate-sdk.js +888 -0
- package/index.js +12 -0
- package/package.json +44 -120
- package/src/abi/fragments.d.ts +42 -0
- package/src/abi/fragments.js +63 -0
- package/src/abi/index.d.ts +13 -0
- package/src/abi/index.js +9 -0
- package/src/abi/interface.d.ts +114 -0
- package/src/abi/interface.js +352 -0
- package/src/constants.d.ts +61 -0
- package/src/constants.js +94 -0
- package/src/contract/contract-factory.d.ts +28 -0
- package/src/contract/contract-factory.js +93 -0
- package/src/contract/contract.d.ts +105 -0
- package/src/contract/contract.js +312 -0
- package/src/contract/index.d.ts +9 -0
- package/src/contract/index.js +9 -0
- package/src/errors/index.d.ts +92 -0
- package/src/errors/index.js +188 -0
- package/src/generator/index.js +426 -0
- package/src/index.d.ts +111 -0
- package/src/index.js +41 -0
- package/src/internal/hex.d.ts +61 -0
- package/src/internal/hex.js +144 -0
- package/src/providers/extra-providers.d.ts +128 -0
- package/src/providers/extra-providers.js +575 -0
- package/src/providers/index.d.ts +16 -0
- package/src/providers/index.js +10 -0
- package/src/providers/json-rpc-provider.d.ts +12 -0
- package/src/providers/json-rpc-provider.js +79 -0
- package/src/providers/provider.d.ts +194 -0
- package/src/providers/provider.js +359 -0
- package/src/utils/address.d.ts +72 -0
- package/src/utils/address.js +182 -0
- package/src/utils/encoding.d.ts +120 -0
- package/src/utils/encoding.js +306 -0
- package/src/utils/hashing.d.ts +76 -0
- package/src/utils/hashing.js +298 -0
- package/src/utils/index.d.ts +55 -0
- package/src/utils/index.js +13 -0
- package/src/utils/result.d.ts +57 -0
- package/src/utils/result.js +128 -0
- package/src/utils/rlp.d.ts +12 -0
- package/src/utils/rlp.js +200 -0
- package/src/utils/units.d.ts +29 -0
- package/src/utils/units.js +107 -0
- package/src/wallet/index.d.ts +10 -0
- package/src/wallet/index.js +8 -0
- package/src/wallet/wallet.d.ts +160 -0
- package/src/wallet/wallet.js +489 -0
- package/test/e2e/helpers.js +47 -0
- package/test/e2e/transactional.test.js +191 -0
- package/test/e2e/typed-generator.e2e.test.js +402 -0
- package/test/fixtures/ConstructorParam.sol +23 -0
- package/test/fixtures/MultiContracts.sol +37 -0
- package/test/fixtures/SimpleStorage.sol +18 -0
- package/test/fixtures/StakingContract.abi.json +1 -0
- package/test/integration/ipc-provider.test.js +44 -0
- package/test/integration/provider.test.js +72 -0
- package/test/integration/ws-provider.test.js +33 -0
- package/test/security/malformed-input.test.js +31 -0
- package/test/unit/abi-interface.test.js +98 -0
- package/test/unit/address-wallet.test.js +257 -0
- package/test/unit/browser-provider.test.js +82 -0
- package/test/unit/contract.test.js +82 -0
- package/test/unit/encoding-units-rlp.test.js +89 -0
- package/test/unit/errors.test.js +74 -0
- package/test/unit/filter-by-blockhash.test.js +52 -0
- package/test/unit/generate-contract-cli.test.js +38 -0
- package/test/unit/generate-sdk-artifacts-json.test.js +65 -0
- package/test/unit/generator.test.js +98 -0
- package/test/unit/hashing.test.js +54 -0
- package/test/unit/init.test.js +36 -0
- package/test/unit/interface.test.js +53 -0
- package/test/unit/internal-hex.test.js +47 -0
- package/test/unit/providers.test.js +144 -0
- package/test/unit/result.test.js +77 -0
- package/test/unit/utils.test.js +54 -0
- package/CHANGELOG.md +0 -442
- package/FUNDING.json +0 -10
- package/SECURITY.md +0 -34
- package/dist/README.md +0 -22
- package/lib.commonjs/README.md +0 -16
- package/lib.commonjs/_version.d.ts +0 -5
- package/lib.commonjs/_version.d.ts.map +0 -1
- package/lib.commonjs/_version.js +0 -9
- package/lib.commonjs/_version.js.map +0 -1
- package/lib.commonjs/abi/abi-coder.d.ts +0 -61
- package/lib.commonjs/abi/abi-coder.d.ts.map +0 -1
- package/lib.commonjs/abi/abi-coder.js +0 -210
- package/lib.commonjs/abi/abi-coder.js.map +0 -1
- package/lib.commonjs/abi/bytes32.d.ts +0 -15
- package/lib.commonjs/abi/bytes32.d.ts.map +0 -1
- package/lib.commonjs/abi/bytes32.js +0 -45
- package/lib.commonjs/abi/bytes32.js.map +0 -1
- package/lib.commonjs/abi/coders/abstract-coder.d.ts +0 -124
- package/lib.commonjs/abi/coders/abstract-coder.d.ts.map +0 -1
- package/lib.commonjs/abi/coders/abstract-coder.js +0 -472
- package/lib.commonjs/abi/coders/abstract-coder.js.map +0 -1
- package/lib.commonjs/abi/coders/address.d.ts +0 -13
- package/lib.commonjs/abi/coders/address.d.ts.map +0 -1
- package/lib.commonjs/abi/coders/address.js +0 -33
- package/lib.commonjs/abi/coders/address.js.map +0 -1
- package/lib.commonjs/abi/coders/anonymous.d.ts +0 -15
- package/lib.commonjs/abi/coders/anonymous.d.ts.map +0 -1
- package/lib.commonjs/abi/coders/anonymous.js +0 -27
- package/lib.commonjs/abi/coders/anonymous.js.map +0 -1
- package/lib.commonjs/abi/coders/array.d.ts +0 -25
- package/lib.commonjs/abi/coders/array.d.ts.map +0 -1
- package/lib.commonjs/abi/coders/array.js +0 -165
- package/lib.commonjs/abi/coders/array.js.map +0 -1
- package/lib.commonjs/abi/coders/boolean.d.ts +0 -13
- package/lib.commonjs/abi/coders/boolean.d.ts.map +0 -1
- package/lib.commonjs/abi/coders/boolean.js +0 -25
- package/lib.commonjs/abi/coders/boolean.js.map +0 -1
- package/lib.commonjs/abi/coders/bytes.d.ts +0 -19
- package/lib.commonjs/abi/coders/bytes.d.ts.map +0 -1
- package/lib.commonjs/abi/coders/bytes.js +0 -39
- package/lib.commonjs/abi/coders/bytes.js.map +0 -1
- package/lib.commonjs/abi/coders/fixed-bytes.d.ts +0 -15
- package/lib.commonjs/abi/coders/fixed-bytes.d.ts.map +0 -1
- package/lib.commonjs/abi/coders/fixed-bytes.js +0 -32
- package/lib.commonjs/abi/coders/fixed-bytes.js.map +0 -1
- package/lib.commonjs/abi/coders/null.d.ts +0 -12
- package/lib.commonjs/abi/coders/null.d.ts.map +0 -1
- package/lib.commonjs/abi/coders/null.js +0 -28
- package/lib.commonjs/abi/coders/null.js.map +0 -1
- package/lib.commonjs/abi/coders/number.d.ts +0 -16
- package/lib.commonjs/abi/coders/number.d.ts.map +0 -1
- package/lib.commonjs/abi/coders/number.js +0 -49
- package/lib.commonjs/abi/coders/number.js.map +0 -1
- package/lib.commonjs/abi/coders/string.d.ts +0 -13
- package/lib.commonjs/abi/coders/string.d.ts.map +0 -1
- package/lib.commonjs/abi/coders/string.js +0 -25
- package/lib.commonjs/abi/coders/string.js.map +0 -1
- package/lib.commonjs/abi/coders/tuple.d.ts +0 -16
- package/lib.commonjs/abi/coders/tuple.d.ts.map +0 -1
- package/lib.commonjs/abi/coders/tuple.js +0 -67
- package/lib.commonjs/abi/coders/tuple.js.map +0 -1
- package/lib.commonjs/abi/fragments.d.ts +0 -466
- package/lib.commonjs/abi/fragments.d.ts.map +0 -1
- package/lib.commonjs/abi/fragments.js +0 -1331
- package/lib.commonjs/abi/fragments.js.map +0 -1
- package/lib.commonjs/abi/index.d.ts +0 -18
- package/lib.commonjs/abi/index.d.ts.map +0 -1
- package/lib.commonjs/abi/index.js +0 -40
- package/lib.commonjs/abi/index.js.map +0 -1
- package/lib.commonjs/abi/interface.d.ts +0 -382
- package/lib.commonjs/abi/interface.d.ts.map +0 -1
- package/lib.commonjs/abi/interface.js +0 -1110
- package/lib.commonjs/abi/interface.js.map +0 -1
- package/lib.commonjs/abi/typed.d.ts +0 -570
- package/lib.commonjs/abi/typed.d.ts.map +0 -1
- package/lib.commonjs/abi/typed.js +0 -606
- package/lib.commonjs/abi/typed.js.map +0 -1
- package/lib.commonjs/address/address.d.ts +0 -36
- package/lib.commonjs/address/address.d.ts.map +0 -1
- package/lib.commonjs/address/address.js +0 -133
- package/lib.commonjs/address/address.js.map +0 -1
- package/lib.commonjs/address/checks.d.ts +0 -81
- package/lib.commonjs/address/checks.d.ts.map +0 -1
- package/lib.commonjs/address/checks.js +0 -120
- package/lib.commonjs/address/checks.js.map +0 -1
- package/lib.commonjs/address/contract-address.d.ts +0 -48
- package/lib.commonjs/address/contract-address.d.ts.map +0 -1
- package/lib.commonjs/address/contract-address.js +0 -74
- package/lib.commonjs/address/contract-address.js.map +0 -1
- package/lib.commonjs/address/index.d.ts +0 -49
- package/lib.commonjs/address/index.d.ts.map +0 -1
- package/lib.commonjs/address/index.js +0 -28
- package/lib.commonjs/address/index.js.map +0 -1
- package/lib.commonjs/constants/addresses.d.ts +0 -7
- package/lib.commonjs/constants/addresses.d.ts.map +0 -1
- package/lib.commonjs/constants/addresses.js +0 -10
- package/lib.commonjs/constants/addresses.js.map +0 -1
- package/lib.commonjs/constants/hashes.d.ts +0 -7
- package/lib.commonjs/constants/hashes.d.ts.map +0 -1
- package/lib.commonjs/constants/hashes.js +0 -10
- package/lib.commonjs/constants/hashes.js.map +0 -1
- package/lib.commonjs/constants/index.d.ts +0 -10
- package/lib.commonjs/constants/index.d.ts.map +0 -1
- package/lib.commonjs/constants/index.js +0 -22
- package/lib.commonjs/constants/index.js.map +0 -1
- package/lib.commonjs/constants/numbers.d.ts +0 -31
- package/lib.commonjs/constants/numbers.d.ts.map +0 -1
- package/lib.commonjs/constants/numbers.js +0 -34
- package/lib.commonjs/constants/numbers.js.map +0 -1
- package/lib.commonjs/constants/strings.d.ts +0 -13
- package/lib.commonjs/constants/strings.d.ts.map +0 -1
- package/lib.commonjs/constants/strings.js +0 -17
- package/lib.commonjs/constants/strings.js.map +0 -1
- package/lib.commonjs/contract/contract.d.ts +0 -168
- package/lib.commonjs/contract/contract.d.ts.map +0 -1
- package/lib.commonjs/contract/contract.js +0 -960
- package/lib.commonjs/contract/contract.js.map +0 -1
- package/lib.commonjs/contract/factory.d.ts +0 -62
- package/lib.commonjs/contract/factory.d.ts.map +0 -1
- package/lib.commonjs/contract/factory.js +0 -116
- package/lib.commonjs/contract/factory.js.map +0 -1
- package/lib.commonjs/contract/index.d.ts +0 -13
- package/lib.commonjs/contract/index.d.ts.map +0 -1
- package/lib.commonjs/contract/index.js +0 -24
- package/lib.commonjs/contract/index.js.map +0 -1
- package/lib.commonjs/contract/types.d.ts +0 -193
- package/lib.commonjs/contract/types.d.ts.map +0 -1
- package/lib.commonjs/contract/types.js +0 -6
- package/lib.commonjs/contract/types.js.map +0 -1
- package/lib.commonjs/contract/wrappers.d.ts +0 -143
- package/lib.commonjs/contract/wrappers.d.ts.map +0 -1
- package/lib.commonjs/contract/wrappers.js +0 -186
- package/lib.commonjs/contract/wrappers.js.map +0 -1
- package/lib.commonjs/crypto/crypto-browser.d.ts +0 -15
- package/lib.commonjs/crypto/crypto-browser.d.ts.map +0 -1
- package/lib.commonjs/crypto/crypto-browser.js +0 -55
- package/lib.commonjs/crypto/crypto-browser.js.map +0 -1
- package/lib.commonjs/crypto/crypto.d.ts +0 -2
- package/lib.commonjs/crypto/crypto.d.ts.map +0 -1
- package/lib.commonjs/crypto/crypto.js +0 -9
- package/lib.commonjs/crypto/crypto.js.map +0 -1
- package/lib.commonjs/crypto/hmac.d.ts +0 -25
- package/lib.commonjs/crypto/hmac.d.ts.map +0 -1
- package/lib.commonjs/crypto/hmac.js +0 -51
- package/lib.commonjs/crypto/hmac.js.map +0 -1
- package/lib.commonjs/crypto/index.d.ts +0 -25
- package/lib.commonjs/crypto/index.d.ts.map +0 -1
- package/lib.commonjs/crypto/index.js +0 -49
- package/lib.commonjs/crypto/index.js.map +0 -1
- package/lib.commonjs/crypto/keccak.d.ts +0 -35
- package/lib.commonjs/crypto/keccak.d.ts.map +0 -1
- package/lib.commonjs/crypto/keccak.js +0 -52
- package/lib.commonjs/crypto/keccak.js.map +0 -1
- package/lib.commonjs/crypto/pbkdf2.d.ts +0 -35
- package/lib.commonjs/crypto/pbkdf2.d.ts.map +0 -1
- package/lib.commonjs/crypto/pbkdf2.js +0 -53
- package/lib.commonjs/crypto/pbkdf2.js.map +0 -1
- package/lib.commonjs/crypto/random.d.ts +0 -14
- package/lib.commonjs/crypto/random.d.ts.map +0 -1
- package/lib.commonjs/crypto/random.js +0 -38
- package/lib.commonjs/crypto/random.js.map +0 -1
- package/lib.commonjs/crypto/ripemd160.d.ts +0 -25
- package/lib.commonjs/crypto/ripemd160.d.ts.map +0 -1
- package/lib.commonjs/crypto/ripemd160.js +0 -42
- package/lib.commonjs/crypto/ripemd160.js.map +0 -1
- package/lib.commonjs/crypto/scrypt.d.ts +0 -82
- package/lib.commonjs/crypto/scrypt.d.ts.map +0 -1
- package/lib.commonjs/crypto/scrypt.js +0 -104
- package/lib.commonjs/crypto/scrypt.js.map +0 -1
- package/lib.commonjs/crypto/sha2.d.ts +0 -47
- package/lib.commonjs/crypto/sha2.d.ts.map +0 -1
- package/lib.commonjs/crypto/sha2.js +0 -76
- package/lib.commonjs/crypto/sha2.js.map +0 -1
- package/lib.commonjs/crypto/signature.d.ts +0 -145
- package/lib.commonjs/crypto/signature.d.ts.map +0 -1
- package/lib.commonjs/crypto/signature.js +0 -302
- package/lib.commonjs/crypto/signature.js.map +0 -1
- package/lib.commonjs/crypto/signing-key.d.ts +0 -63
- package/lib.commonjs/crypto/signing-key.d.ts.map +0 -1
- package/lib.commonjs/crypto/signing-key.js +0 -102
- package/lib.commonjs/crypto/signing-key.js.map +0 -1
- package/lib.commonjs/hash/authorization.d.ts +0 -18
- package/lib.commonjs/hash/authorization.d.ts.map +0 -1
- package/lib.commonjs/hash/authorization.js +0 -30
- package/lib.commonjs/hash/authorization.js.map +0 -1
- package/lib.commonjs/hash/id.d.ts +0 -13
- package/lib.commonjs/hash/id.d.ts.map +0 -1
- package/lib.commonjs/hash/id.js +0 -21
- package/lib.commonjs/hash/id.js.map +0 -1
- package/lib.commonjs/hash/index.d.ts +0 -15
- package/lib.commonjs/hash/index.d.ts.map +0 -1
- package/lib.commonjs/hash/index.js +0 -30
- package/lib.commonjs/hash/index.js.map +0 -1
- package/lib.commonjs/hash/message.d.ts +0 -36
- package/lib.commonjs/hash/message.d.ts.map +0 -1
- package/lib.commonjs/hash/message.js +0 -56
- package/lib.commonjs/hash/message.js.map +0 -1
- package/lib.commonjs/hash/namehash.d.ts +0 -20
- package/lib.commonjs/hash/namehash.d.ts.map +0 -1
- package/lib.commonjs/hash/namehash.js +0 -91
- package/lib.commonjs/hash/namehash.js.map +0 -1
- package/lib.commonjs/hash/solidity.d.ts +0 -31
- package/lib.commonjs/hash/solidity.d.ts.map +0 -1
- package/lib.commonjs/hash/solidity.js +0 -109
- package/lib.commonjs/hash/solidity.js.map +0 -1
- package/lib.commonjs/hash/typed-data.d.ts +0 -150
- package/lib.commonjs/hash/typed-data.d.ts.map +0 -1
- package/lib.commonjs/hash/typed-data.js +0 -524
- package/lib.commonjs/hash/typed-data.js.map +0 -1
- package/lib.commonjs/index.d.ts +0 -11
- package/lib.commonjs/index.d.ts.map +0 -1
- package/lib.commonjs/index.js +0 -15
- package/lib.commonjs/index.js.map +0 -1
- package/lib.commonjs/package.json +0 -12
- package/lib.commonjs/providers/abstract-provider.d.ts +0 -451
- package/lib.commonjs/providers/abstract-provider.d.ts.map +0 -1
- package/lib.commonjs/providers/abstract-provider.js +0 -1409
- package/lib.commonjs/providers/abstract-provider.js.map +0 -1
- package/lib.commonjs/providers/abstract-signer.d.ts +0 -69
- package/lib.commonjs/providers/abstract-signer.d.ts.map +0 -1
- package/lib.commonjs/providers/abstract-signer.js +0 -249
- package/lib.commonjs/providers/abstract-signer.js.map +0 -1
- package/lib.commonjs/providers/community.d.ts +0 -29
- package/lib.commonjs/providers/community.d.ts.map +0 -1
- package/lib.commonjs/providers/community.js +0 -40
- package/lib.commonjs/providers/community.js.map +0 -1
- package/lib.commonjs/providers/contracts.d.ts +0 -36
- package/lib.commonjs/providers/contracts.d.ts.map +0 -1
- package/lib.commonjs/providers/contracts.js +0 -3
- package/lib.commonjs/providers/contracts.js.map +0 -1
- package/lib.commonjs/providers/default-provider.d.ts +0 -41
- package/lib.commonjs/providers/default-provider.d.ts.map +0 -1
- package/lib.commonjs/providers/default-provider.js +0 -92
- package/lib.commonjs/providers/default-provider.js.map +0 -1
- package/lib.commonjs/providers/ens-resolver.d.ts +0 -147
- package/lib.commonjs/providers/ens-resolver.d.ts.map +0 -1
- package/lib.commonjs/providers/ens-resolver.js +0 -502
- package/lib.commonjs/providers/ens-resolver.js.map +0 -1
- package/lib.commonjs/providers/format.d.ts +0 -15
- package/lib.commonjs/providers/format.d.ts.map +0 -1
- package/lib.commonjs/providers/format.js +0 -298
- package/lib.commonjs/providers/format.js.map +0 -1
- package/lib.commonjs/providers/formatting.d.ts +0 -318
- package/lib.commonjs/providers/formatting.d.ts.map +0 -1
- package/lib.commonjs/providers/formatting.js +0 -10
- package/lib.commonjs/providers/formatting.js.map +0 -1
- package/lib.commonjs/providers/index.d.ts +0 -41
- package/lib.commonjs/providers/index.d.ts.map +0 -1
- package/lib.commonjs/providers/index.js +0 -64
- package/lib.commonjs/providers/index.js.map +0 -1
- package/lib.commonjs/providers/network.d.ts +0 -99
- package/lib.commonjs/providers/network.d.ts.map +0 -1
- package/lib.commonjs/providers/network.js +0 -269
- package/lib.commonjs/providers/network.js.map +0 -1
- package/lib.commonjs/providers/pagination.d.ts +0 -6
- package/lib.commonjs/providers/pagination.d.ts.map +0 -1
- package/lib.commonjs/providers/pagination.js +0 -3
- package/lib.commonjs/providers/pagination.js.map +0 -1
- package/lib.commonjs/providers/plugin-fallback.d.ts +0 -13
- package/lib.commonjs/providers/plugin-fallback.d.ts.map +0 -1
- package/lib.commonjs/providers/plugin-fallback.js +0 -31
- package/lib.commonjs/providers/plugin-fallback.js.map +0 -1
- package/lib.commonjs/providers/plugins-network.d.ts +0 -170
- package/lib.commonjs/providers/plugins-network.d.ts.map +0 -1
- package/lib.commonjs/providers/plugins-network.js +0 -216
- package/lib.commonjs/providers/plugins-network.js.map +0 -1
- package/lib.commonjs/providers/provider-browser.d.ts +0 -108
- package/lib.commonjs/providers/provider-browser.d.ts.map +0 -1
- package/lib.commonjs/providers/provider-browser.js +0 -204
- package/lib.commonjs/providers/provider-browser.js.map +0 -1
- package/lib.commonjs/providers/provider-fallback.d.ts +0 -115
- package/lib.commonjs/providers/provider-fallback.d.ts.map +0 -1
- package/lib.commonjs/providers/provider-fallback.js +0 -624
- package/lib.commonjs/providers/provider-fallback.js.map +0 -1
- package/lib.commonjs/providers/provider-ipcsocket-browser.d.ts +0 -3
- package/lib.commonjs/providers/provider-ipcsocket-browser.d.ts.map +0 -1
- package/lib.commonjs/providers/provider-ipcsocket-browser.js +0 -6
- package/lib.commonjs/providers/provider-ipcsocket-browser.js.map +0 -1
- package/lib.commonjs/providers/provider-ipcsocket.d.ts +0 -21
- package/lib.commonjs/providers/provider-ipcsocket.d.ts.map +0 -1
- package/lib.commonjs/providers/provider-ipcsocket.js +0 -72
- package/lib.commonjs/providers/provider-ipcsocket.js.map +0 -1
- package/lib.commonjs/providers/provider-jsonrpc.d.ts +0 -361
- package/lib.commonjs/providers/provider-jsonrpc.d.ts.map +0 -1
- package/lib.commonjs/providers/provider-jsonrpc.js +0 -980
- package/lib.commonjs/providers/provider-jsonrpc.js.map +0 -1
- package/lib.commonjs/providers/provider-socket.d.ts +0 -113
- package/lib.commonjs/providers/provider-socket.d.ts.map +0 -1
- package/lib.commonjs/providers/provider-socket.js +0 -309
- package/lib.commonjs/providers/provider-socket.js.map +0 -1
- package/lib.commonjs/providers/provider-websocket.d.ts +0 -37
- package/lib.commonjs/providers/provider-websocket.d.ts.map +0 -1
- package/lib.commonjs/providers/provider-websocket.js +0 -80
- package/lib.commonjs/providers/provider-websocket.js.map +0 -1
- package/lib.commonjs/providers/provider.d.ts +0 -1223
- package/lib.commonjs/providers/provider.d.ts.map +0 -1
- package/lib.commonjs/providers/provider.js +0 -1321
- package/lib.commonjs/providers/provider.js.map +0 -1
- package/lib.commonjs/providers/signer-noncemanager.d.ts +0 -38
- package/lib.commonjs/providers/signer-noncemanager.d.ts.map +0 -1
- package/lib.commonjs/providers/signer-noncemanager.js +0 -78
- package/lib.commonjs/providers/signer-noncemanager.js.map +0 -1
- package/lib.commonjs/providers/signer.d.ts +0 -131
- package/lib.commonjs/providers/signer.d.ts.map +0 -1
- package/lib.commonjs/providers/signer.js +0 -3
- package/lib.commonjs/providers/signer.js.map +0 -1
- package/lib.commonjs/providers/subscriber-connection.d.ts +0 -25
- package/lib.commonjs/providers/subscriber-connection.d.ts.map +0 -1
- package/lib.commonjs/providers/subscriber-connection.js +0 -56
- package/lib.commonjs/providers/subscriber-connection.js.map +0 -1
- package/lib.commonjs/providers/subscriber-filterid.d.ts +0 -64
- package/lib.commonjs/providers/subscriber-filterid.d.ts.map +0 -1
- package/lib.commonjs/providers/subscriber-filterid.js +0 -180
- package/lib.commonjs/providers/subscriber-filterid.js.map +0 -1
- package/lib.commonjs/providers/subscriber-polling.d.ts +0 -100
- package/lib.commonjs/providers/subscriber-polling.d.ts.map +0 -1
- package/lib.commonjs/providers/subscriber-polling.js +0 -303
- package/lib.commonjs/providers/subscriber-polling.js.map +0 -1
- package/lib.commonjs/providers/ws-browser.d.ts +0 -3
- package/lib.commonjs/providers/ws-browser.d.ts.map +0 -1
- package/lib.commonjs/providers/ws-browser.js +0 -19
- package/lib.commonjs/providers/ws-browser.js.map +0 -1
- package/lib.commonjs/providers/ws.d.ts +0 -2
- package/lib.commonjs/providers/ws.d.ts.map +0 -1
- package/lib.commonjs/providers/ws.js +0 -6
- package/lib.commonjs/providers/ws.js.map +0 -1
- package/lib.commonjs/quantumcoin.d.ts +0 -24
- package/lib.commonjs/quantumcoin.d.ts.map +0 -1
- package/lib.commonjs/quantumcoin.js +0 -199
- package/lib.commonjs/quantumcoin.js.map +0 -1
- package/lib.commonjs/transaction/accesslist.d.ts +0 -6
- package/lib.commonjs/transaction/accesslist.d.ts.map +0 -1
- package/lib.commonjs/transaction/accesslist.js +0 -41
- package/lib.commonjs/transaction/accesslist.js.map +0 -1
- package/lib.commonjs/transaction/address.d.ts +0 -15
- package/lib.commonjs/transaction/address.d.ts.map +0 -1
- package/lib.commonjs/transaction/address.js +0 -39
- package/lib.commonjs/transaction/address.js.map +0 -1
- package/lib.commonjs/transaction/authorization.d.ts +0 -3
- package/lib.commonjs/transaction/authorization.d.ts.map +0 -1
- package/lib.commonjs/transaction/authorization.js +0 -16
- package/lib.commonjs/transaction/authorization.js.map +0 -1
- package/lib.commonjs/transaction/index.d.ts +0 -40
- package/lib.commonjs/transaction/index.d.ts.map +0 -1
- package/lib.commonjs/transaction/index.js +0 -19
- package/lib.commonjs/transaction/index.js.map +0 -1
- package/lib.commonjs/transaction/transaction.d.ts +0 -400
- package/lib.commonjs/transaction/transaction.d.ts.map +0 -1
- package/lib.commonjs/transaction/transaction.js +0 -1148
- package/lib.commonjs/transaction/transaction.js.map +0 -1
- package/lib.commonjs/utils/base58.d.ts +0 -23
- package/lib.commonjs/utils/base58.d.ts.map +0 -1
- package/lib.commonjs/utils/base58.js +0 -68
- package/lib.commonjs/utils/base58.js.map +0 -1
- package/lib.commonjs/utils/base64-browser.d.ts +0 -4
- package/lib.commonjs/utils/base64-browser.d.ts.map +0 -1
- package/lib.commonjs/utils/base64-browser.js +0 -24
- package/lib.commonjs/utils/base64-browser.js.map +0 -1
- package/lib.commonjs/utils/base64.d.ts +0 -40
- package/lib.commonjs/utils/base64.d.ts.map +0 -1
- package/lib.commonjs/utils/base64.js +0 -58
- package/lib.commonjs/utils/base64.js.map +0 -1
- package/lib.commonjs/utils/data.d.ts +0 -93
- package/lib.commonjs/utils/data.d.ts.map +0 -1
- package/lib.commonjs/utils/data.js +0 -184
- package/lib.commonjs/utils/data.js.map +0 -1
- package/lib.commonjs/utils/errors.d.ts +0 -512
- package/lib.commonjs/utils/errors.d.ts.map +0 -1
- package/lib.commonjs/utils/errors.js +0 -235
- package/lib.commonjs/utils/errors.js.map +0 -1
- package/lib.commonjs/utils/events.d.ts +0 -77
- package/lib.commonjs/utils/events.d.ts.map +0 -1
- package/lib.commonjs/utils/events.js +0 -46
- package/lib.commonjs/utils/events.js.map +0 -1
- package/lib.commonjs/utils/fetch.d.ts +0 -363
- package/lib.commonjs/utils/fetch.d.ts.map +0 -1
- package/lib.commonjs/utils/fetch.js +0 -858
- package/lib.commonjs/utils/fetch.js.map +0 -1
- package/lib.commonjs/utils/fixednumber.d.ts +0 -252
- package/lib.commonjs/utils/fixednumber.d.ts.map +0 -1
- package/lib.commonjs/utils/fixednumber.js +0 -530
- package/lib.commonjs/utils/fixednumber.js.map +0 -1
- package/lib.commonjs/utils/geturl-browser.d.ts +0 -4
- package/lib.commonjs/utils/geturl-browser.d.ts.map +0 -1
- package/lib.commonjs/utils/geturl-browser.js +0 -67
- package/lib.commonjs/utils/geturl-browser.js.map +0 -1
- package/lib.commonjs/utils/geturl.d.ts +0 -10
- package/lib.commonjs/utils/geturl.d.ts.map +0 -1
- package/lib.commonjs/utils/geturl.js +0 -120
- package/lib.commonjs/utils/geturl.js.map +0 -1
- package/lib.commonjs/utils/index.d.ts +0 -30
- package/lib.commonjs/utils/index.d.ts.map +0 -1
- package/lib.commonjs/utils/index.js +0 -78
- package/lib.commonjs/utils/index.js.map +0 -1
- package/lib.commonjs/utils/maths.d.ts +0 -66
- package/lib.commonjs/utils/maths.d.ts.map +0 -1
- package/lib.commonjs/utils/maths.js +0 -229
- package/lib.commonjs/utils/maths.js.map +0 -1
- package/lib.commonjs/utils/properties.d.ts +0 -23
- package/lib.commonjs/utils/properties.d.ts.map +0 -1
- package/lib.commonjs/utils/properties.js +0 -59
- package/lib.commonjs/utils/properties.js.map +0 -1
- package/lib.commonjs/utils/rlp-decode.d.ts +0 -6
- package/lib.commonjs/utils/rlp-decode.d.ts.map +0 -1
- package/lib.commonjs/utils/rlp-decode.js +0 -83
- package/lib.commonjs/utils/rlp-decode.js.map +0 -1
- package/lib.commonjs/utils/rlp-encode.d.ts +0 -6
- package/lib.commonjs/utils/rlp-encode.d.ts.map +0 -1
- package/lib.commonjs/utils/rlp-encode.js +0 -53
- package/lib.commonjs/utils/rlp-encode.js.map +0 -1
- package/lib.commonjs/utils/rlp.d.ts +0 -17
- package/lib.commonjs/utils/rlp.d.ts.map +0 -1
- package/lib.commonjs/utils/rlp.js +0 -14
- package/lib.commonjs/utils/rlp.js.map +0 -1
- package/lib.commonjs/utils/units.d.ts +0 -24
- package/lib.commonjs/utils/units.d.ts.map +0 -1
- package/lib.commonjs/utils/units.js +0 -90
- package/lib.commonjs/utils/units.js.map +0 -1
- package/lib.commonjs/utils/utf8.d.ts +0 -96
- package/lib.commonjs/utils/utf8.d.ts.map +0 -1
- package/lib.commonjs/utils/utf8.js +0 -227
- package/lib.commonjs/utils/utf8.js.map +0 -1
- package/lib.commonjs/utils/uuid.d.ts +0 -8
- package/lib.commonjs/utils/uuid.d.ts.map +0 -1
- package/lib.commonjs/utils/uuid.js +0 -34
- package/lib.commonjs/utils/uuid.js.map +0 -1
- package/lib.commonjs/wallet/base-wallet.d.ts +0 -57
- package/lib.commonjs/wallet/base-wallet.d.ts.map +0 -1
- package/lib.commonjs/wallet/base-wallet.js +0 -127
- package/lib.commonjs/wallet/base-wallet.js.map +0 -1
- package/lib.commonjs/wallet/index.d.ts +0 -23
- package/lib.commonjs/wallet/index.d.ts.map +0 -1
- package/lib.commonjs/wallet/index.js +0 -30
- package/lib.commonjs/wallet/index.js.map +0 -1
- package/lib.commonjs/wallet/json-keystore.d.ts +0 -40
- package/lib.commonjs/wallet/json-keystore.d.ts.map +0 -1
- package/lib.commonjs/wallet/json-keystore.js +0 -90
- package/lib.commonjs/wallet/json-keystore.js.map +0 -1
- package/lib.commonjs/wallet/utils.d.ts +0 -8
- package/lib.commonjs/wallet/utils.d.ts.map +0 -1
- package/lib.commonjs/wallet/utils.js +0 -149
- package/lib.commonjs/wallet/utils.js.map +0 -1
- package/lib.commonjs/wallet/wallet.d.ts +0 -62
- package/lib.commonjs/wallet/wallet.d.ts.map +0 -1
- package/lib.commonjs/wallet/wallet.js +0 -109
- package/lib.commonjs/wallet/wallet.js.map +0 -1
- package/lib.commonjs/wordlists/bit-reader.d.ts +0 -5
- package/lib.commonjs/wordlists/bit-reader.d.ts.map +0 -1
- package/lib.commonjs/wordlists/bit-reader.js +0 -36
- package/lib.commonjs/wordlists/bit-reader.js.map +0 -1
- package/lib.commonjs/wordlists/decode-owl.d.ts +0 -9
- package/lib.commonjs/wordlists/decode-owl.d.ts.map +0 -1
- package/lib.commonjs/wordlists/decode-owl.js +0 -60
- package/lib.commonjs/wordlists/decode-owl.js.map +0 -1
- package/lib.commonjs/wordlists/decode-owla.d.ts +0 -5
- package/lib.commonjs/wordlists/decode-owla.d.ts.map +0 -1
- package/lib.commonjs/wordlists/decode-owla.js +0 -32
- package/lib.commonjs/wordlists/decode-owla.js.map +0 -1
- package/lib.commonjs/wordlists/generation/encode-latin.d.ts +0 -25
- package/lib.commonjs/wordlists/generation/encode-latin.d.ts.map +0 -1
- package/lib.commonjs/wordlists/generation/encode-latin.js +0 -351
- package/lib.commonjs/wordlists/generation/encode-latin.js.map +0 -1
- package/lib.commonjs/wordlists/index.d.ts +0 -25
- package/lib.commonjs/wordlists/index.d.ts.map +0 -1
- package/lib.commonjs/wordlists/index.js +0 -33
- package/lib.commonjs/wordlists/index.js.map +0 -1
- package/lib.commonjs/wordlists/lang-cz.d.ts +0 -23
- package/lib.commonjs/wordlists/lang-cz.d.ts.map +0 -1
- package/lib.commonjs/wordlists/lang-cz.js +0 -35
- package/lib.commonjs/wordlists/lang-cz.js.map +0 -1
- package/lib.commonjs/wordlists/lang-en.d.ts +0 -23
- package/lib.commonjs/wordlists/lang-en.d.ts.map +0 -1
- package/lib.commonjs/wordlists/lang-en.js +0 -35
- package/lib.commonjs/wordlists/lang-en.js.map +0 -1
- package/lib.commonjs/wordlists/lang-es.d.ts +0 -23
- package/lib.commonjs/wordlists/lang-es.d.ts.map +0 -1
- package/lib.commonjs/wordlists/lang-es.js +0 -36
- package/lib.commonjs/wordlists/lang-es.js.map +0 -1
- package/lib.commonjs/wordlists/lang-fr.d.ts +0 -23
- package/lib.commonjs/wordlists/lang-fr.d.ts.map +0 -1
- package/lib.commonjs/wordlists/lang-fr.js +0 -36
- package/lib.commonjs/wordlists/lang-fr.js.map +0 -1
- package/lib.commonjs/wordlists/lang-it.d.ts +0 -23
- package/lib.commonjs/wordlists/lang-it.d.ts.map +0 -1
- package/lib.commonjs/wordlists/lang-it.js +0 -35
- package/lib.commonjs/wordlists/lang-it.js.map +0 -1
- package/lib.commonjs/wordlists/lang-ja.d.ts +0 -27
- package/lib.commonjs/wordlists/lang-ja.d.ts.map +0 -1
- package/lib.commonjs/wordlists/lang-ja.js +0 -158
- package/lib.commonjs/wordlists/lang-ja.js.map +0 -1
- package/lib.commonjs/wordlists/lang-ko.d.ts +0 -25
- package/lib.commonjs/wordlists/lang-ko.d.ts.map +0 -1
- package/lib.commonjs/wordlists/lang-ko.js +0 -93
- package/lib.commonjs/wordlists/lang-ko.js.map +0 -1
- package/lib.commonjs/wordlists/lang-pt.d.ts +0 -23
- package/lib.commonjs/wordlists/lang-pt.d.ts.map +0 -1
- package/lib.commonjs/wordlists/lang-pt.js +0 -35
- package/lib.commonjs/wordlists/lang-pt.js.map +0 -1
- package/lib.commonjs/wordlists/lang-zh.d.ts +0 -32
- package/lib.commonjs/wordlists/lang-zh.d.ts.map +0 -1
- package/lib.commonjs/wordlists/lang-zh.js +0 -96
- package/lib.commonjs/wordlists/lang-zh.js.map +0 -1
- package/lib.commonjs/wordlists/wordlist-owl.d.ts +0 -32
- package/lib.commonjs/wordlists/wordlist-owl.d.ts.map +0 -1
- package/lib.commonjs/wordlists/wordlist-owl.js +0 -70
- package/lib.commonjs/wordlists/wordlist-owl.js.map +0 -1
- package/lib.commonjs/wordlists/wordlist-owla.d.ts +0 -30
- package/lib.commonjs/wordlists/wordlist-owla.d.ts.map +0 -1
- package/lib.commonjs/wordlists/wordlist-owla.js +0 -40
- package/lib.commonjs/wordlists/wordlist-owla.js.map +0 -1
- package/lib.commonjs/wordlists/wordlist.d.ts +0 -47
- package/lib.commonjs/wordlists/wordlist.d.ts.map +0 -1
- package/lib.commonjs/wordlists/wordlist.js +0 -46
- package/lib.commonjs/wordlists/wordlist.js.map +0 -1
- package/lib.commonjs/wordlists/wordlists-browser.d.ts +0 -3
- package/lib.commonjs/wordlists/wordlists-browser.d.ts.map +0 -1
- package/lib.commonjs/wordlists/wordlists-browser.js +0 -8
- package/lib.commonjs/wordlists/wordlists-browser.js.map +0 -1
- package/lib.commonjs/wordlists/wordlists-extra.d.ts +0 -9
- package/lib.commonjs/wordlists/wordlists-extra.d.ts.map +0 -1
- package/lib.commonjs/wordlists/wordlists-extra.js +0 -20
- package/lib.commonjs/wordlists/wordlists-extra.js.map +0 -1
- package/lib.commonjs/wordlists/wordlists.d.ts +0 -16
- package/lib.commonjs/wordlists/wordlists.d.ts.map +0 -1
- package/lib.commonjs/wordlists/wordlists.js +0 -38
- package/lib.commonjs/wordlists/wordlists.js.map +0 -1
- package/lib.esm/README.md +0 -16
- package/lib.esm/_version.d.ts +0 -5
- package/lib.esm/_version.d.ts.map +0 -1
- package/lib.esm/_version.js +0 -6
- package/lib.esm/_version.js.map +0 -1
- package/lib.esm/abi/abi-coder.d.ts +0 -61
- package/lib.esm/abi/abi-coder.d.ts.map +0 -1
- package/lib.esm/abi/abi-coder.js +0 -206
- package/lib.esm/abi/abi-coder.js.map +0 -1
- package/lib.esm/abi/bytes32.d.ts +0 -15
- package/lib.esm/abi/bytes32.d.ts.map +0 -1
- package/lib.esm/abi/bytes32.js +0 -40
- package/lib.esm/abi/bytes32.js.map +0 -1
- package/lib.esm/abi/coders/abstract-coder.d.ts +0 -124
- package/lib.esm/abi/coders/abstract-coder.d.ts.map +0 -1
- package/lib.esm/abi/coders/abstract-coder.js +0 -466
- package/lib.esm/abi/coders/abstract-coder.js.map +0 -1
- package/lib.esm/abi/coders/address.d.ts +0 -13
- package/lib.esm/abi/coders/address.d.ts.map +0 -1
- package/lib.esm/abi/coders/address.js +0 -29
- package/lib.esm/abi/coders/address.js.map +0 -1
- package/lib.esm/abi/coders/anonymous.d.ts +0 -15
- package/lib.esm/abi/coders/anonymous.d.ts.map +0 -1
- package/lib.esm/abi/coders/anonymous.js +0 -23
- package/lib.esm/abi/coders/anonymous.js.map +0 -1
- package/lib.esm/abi/coders/array.d.ts +0 -25
- package/lib.esm/abi/coders/array.d.ts.map +0 -1
- package/lib.esm/abi/coders/array.js +0 -159
- package/lib.esm/abi/coders/array.js.map +0 -1
- package/lib.esm/abi/coders/boolean.d.ts +0 -13
- package/lib.esm/abi/coders/boolean.d.ts.map +0 -1
- package/lib.esm/abi/coders/boolean.js +0 -21
- package/lib.esm/abi/coders/boolean.js.map +0 -1
- package/lib.esm/abi/coders/bytes.d.ts +0 -19
- package/lib.esm/abi/coders/bytes.d.ts.map +0 -1
- package/lib.esm/abi/coders/bytes.js +0 -34
- package/lib.esm/abi/coders/bytes.js.map +0 -1
- package/lib.esm/abi/coders/fixed-bytes.d.ts +0 -15
- package/lib.esm/abi/coders/fixed-bytes.d.ts.map +0 -1
- package/lib.esm/abi/coders/fixed-bytes.js +0 -28
- package/lib.esm/abi/coders/fixed-bytes.js.map +0 -1
- package/lib.esm/abi/coders/null.d.ts +0 -12
- package/lib.esm/abi/coders/null.d.ts.map +0 -1
- package/lib.esm/abi/coders/null.js +0 -24
- package/lib.esm/abi/coders/null.js.map +0 -1
- package/lib.esm/abi/coders/number.d.ts +0 -16
- package/lib.esm/abi/coders/number.d.ts.map +0 -1
- package/lib.esm/abi/coders/number.js +0 -45
- package/lib.esm/abi/coders/number.js.map +0 -1
- package/lib.esm/abi/coders/string.d.ts +0 -13
- package/lib.esm/abi/coders/string.d.ts.map +0 -1
- package/lib.esm/abi/coders/string.js +0 -21
- package/lib.esm/abi/coders/string.js.map +0 -1
- package/lib.esm/abi/coders/tuple.d.ts +0 -16
- package/lib.esm/abi/coders/tuple.d.ts.map +0 -1
- package/lib.esm/abi/coders/tuple.js +0 -63
- package/lib.esm/abi/coders/tuple.js.map +0 -1
- package/lib.esm/abi/fragments.d.ts +0 -466
- package/lib.esm/abi/fragments.d.ts.map +0 -1
- package/lib.esm/abi/fragments.js +0 -1319
- package/lib.esm/abi/fragments.js.map +0 -1
- package/lib.esm/abi/index.d.ts +0 -18
- package/lib.esm/abi/index.d.ts.map +0 -1
- package/lib.esm/abi/index.js +0 -17
- package/lib.esm/abi/index.js.map +0 -1
- package/lib.esm/abi/interface.d.ts +0 -382
- package/lib.esm/abi/interface.d.ts.map +0 -1
- package/lib.esm/abi/interface.js +0 -1101
- package/lib.esm/abi/interface.js.map +0 -1
- package/lib.esm/abi/typed.d.ts +0 -570
- package/lib.esm/abi/typed.d.ts.map +0 -1
- package/lib.esm/abi/typed.js +0 -602
- package/lib.esm/abi/typed.js.map +0 -1
- package/lib.esm/address/address.d.ts +0 -36
- package/lib.esm/address/address.d.ts.map +0 -1
- package/lib.esm/address/address.js +0 -129
- package/lib.esm/address/address.js.map +0 -1
- package/lib.esm/address/checks.d.ts +0 -81
- package/lib.esm/address/checks.d.ts.map +0 -1
- package/lib.esm/address/checks.js +0 -114
- package/lib.esm/address/checks.js.map +0 -1
- package/lib.esm/address/contract-address.d.ts +0 -48
- package/lib.esm/address/contract-address.d.ts.map +0 -1
- package/lib.esm/address/contract-address.js +0 -69
- package/lib.esm/address/contract-address.js.map +0 -1
- package/lib.esm/address/index.d.ts +0 -49
- package/lib.esm/address/index.d.ts.map +0 -1
- package/lib.esm/address/index.js +0 -19
- package/lib.esm/address/index.js.map +0 -1
- package/lib.esm/constants/addresses.d.ts +0 -7
- package/lib.esm/constants/addresses.d.ts.map +0 -1
- package/lib.esm/constants/addresses.js +0 -7
- package/lib.esm/constants/addresses.js.map +0 -1
- package/lib.esm/constants/hashes.d.ts +0 -7
- package/lib.esm/constants/hashes.d.ts.map +0 -1
- package/lib.esm/constants/hashes.js +0 -7
- package/lib.esm/constants/hashes.js.map +0 -1
- package/lib.esm/constants/index.d.ts +0 -10
- package/lib.esm/constants/index.d.ts.map +0 -1
- package/lib.esm/constants/index.js +0 -10
- package/lib.esm/constants/index.js.map +0 -1
- package/lib.esm/constants/numbers.d.ts +0 -31
- package/lib.esm/constants/numbers.d.ts.map +0 -1
- package/lib.esm/constants/numbers.js +0 -31
- package/lib.esm/constants/numbers.js.map +0 -1
- package/lib.esm/constants/strings.d.ts +0 -13
- package/lib.esm/constants/strings.d.ts.map +0 -1
- package/lib.esm/constants/strings.js +0 -14
- package/lib.esm/constants/strings.js.map +0 -1
- package/lib.esm/contract/contract.d.ts +0 -168
- package/lib.esm/contract/contract.d.ts.map +0 -1
- package/lib.esm/contract/contract.js +0 -953
- package/lib.esm/contract/contract.js.map +0 -1
- package/lib.esm/contract/factory.d.ts +0 -62
- package/lib.esm/contract/factory.d.ts.map +0 -1
- package/lib.esm/contract/factory.js +0 -112
- package/lib.esm/contract/factory.js.map +0 -1
- package/lib.esm/contract/index.d.ts +0 -13
- package/lib.esm/contract/index.d.ts.map +0 -1
- package/lib.esm/contract/index.js +0 -12
- package/lib.esm/contract/index.js.map +0 -1
- package/lib.esm/contract/types.d.ts +0 -193
- package/lib.esm/contract/types.d.ts.map +0 -1
- package/lib.esm/contract/types.js +0 -5
- package/lib.esm/contract/types.js.map +0 -1
- package/lib.esm/contract/wrappers.d.ts +0 -143
- package/lib.esm/contract/wrappers.d.ts.map +0 -1
- package/lib.esm/contract/wrappers.js +0 -177
- package/lib.esm/contract/wrappers.js.map +0 -1
- package/lib.esm/crypto/crypto-browser.d.ts +0 -15
- package/lib.esm/crypto/crypto-browser.d.ts.map +0 -1
- package/lib.esm/crypto/crypto-browser.js +0 -48
- package/lib.esm/crypto/crypto-browser.js.map +0 -1
- package/lib.esm/crypto/crypto.d.ts +0 -2
- package/lib.esm/crypto/crypto.d.ts.map +0 -1
- package/lib.esm/crypto/crypto.js +0 -2
- package/lib.esm/crypto/crypto.js.map +0 -1
- package/lib.esm/crypto/hmac.d.ts +0 -25
- package/lib.esm/crypto/hmac.d.ts.map +0 -1
- package/lib.esm/crypto/hmac.js +0 -47
- package/lib.esm/crypto/hmac.js.map +0 -1
- package/lib.esm/crypto/index.d.ts +0 -25
- package/lib.esm/crypto/index.d.ts.map +0 -1
- package/lib.esm/crypto/index.js +0 -36
- package/lib.esm/crypto/index.js.map +0 -1
- package/lib.esm/crypto/keccak.d.ts +0 -35
- package/lib.esm/crypto/keccak.d.ts.map +0 -1
- package/lib.esm/crypto/keccak.js +0 -48
- package/lib.esm/crypto/keccak.js.map +0 -1
- package/lib.esm/crypto/pbkdf2.d.ts +0 -35
- package/lib.esm/crypto/pbkdf2.d.ts.map +0 -1
- package/lib.esm/crypto/pbkdf2.js +0 -49
- package/lib.esm/crypto/pbkdf2.js.map +0 -1
- package/lib.esm/crypto/random.d.ts +0 -14
- package/lib.esm/crypto/random.d.ts.map +0 -1
- package/lib.esm/crypto/random.js +0 -34
- package/lib.esm/crypto/random.js.map +0 -1
- package/lib.esm/crypto/ripemd160.d.ts +0 -25
- package/lib.esm/crypto/ripemd160.d.ts.map +0 -1
- package/lib.esm/crypto/ripemd160.js +0 -38
- package/lib.esm/crypto/ripemd160.js.map +0 -1
- package/lib.esm/crypto/scrypt.d.ts +0 -82
- package/lib.esm/crypto/scrypt.d.ts.map +0 -1
- package/lib.esm/crypto/scrypt.js +0 -99
- package/lib.esm/crypto/scrypt.js.map +0 -1
- package/lib.esm/crypto/sha2.d.ts +0 -47
- package/lib.esm/crypto/sha2.d.ts.map +0 -1
- package/lib.esm/crypto/sha2.js +0 -71
- package/lib.esm/crypto/sha2.js.map +0 -1
- package/lib.esm/crypto/signature.d.ts +0 -145
- package/lib.esm/crypto/signature.d.ts.map +0 -1
- package/lib.esm/crypto/signature.js +0 -300
- package/lib.esm/crypto/signature.js.map +0 -1
- package/lib.esm/crypto/signing-key.d.ts +0 -63
- package/lib.esm/crypto/signing-key.d.ts.map +0 -1
- package/lib.esm/crypto/signing-key.js +0 -97
- package/lib.esm/crypto/signing-key.js.map +0 -1
- package/lib.esm/hash/authorization.d.ts +0 -18
- package/lib.esm/hash/authorization.d.ts.map +0 -1
- package/lib.esm/hash/authorization.js +0 -25
- package/lib.esm/hash/authorization.js.map +0 -1
- package/lib.esm/hash/id.d.ts +0 -13
- package/lib.esm/hash/id.d.ts.map +0 -1
- package/lib.esm/hash/id.js +0 -17
- package/lib.esm/hash/id.js.map +0 -1
- package/lib.esm/hash/index.d.ts +0 -15
- package/lib.esm/hash/index.d.ts.map +0 -1
- package/lib.esm/hash/index.js +0 -13
- package/lib.esm/hash/index.js.map +0 -1
- package/lib.esm/hash/message.d.ts +0 -36
- package/lib.esm/hash/message.d.ts.map +0 -1
- package/lib.esm/hash/message.js +0 -51
- package/lib.esm/hash/message.js.map +0 -1
- package/lib.esm/hash/namehash.d.ts +0 -20
- package/lib.esm/hash/namehash.d.ts.map +0 -1
- package/lib.esm/hash/namehash.js +0 -84
- package/lib.esm/hash/namehash.js.map +0 -1
- package/lib.esm/hash/solidity.d.ts +0 -31
- package/lib.esm/hash/solidity.d.ts.map +0 -1
- package/lib.esm/hash/solidity.js +0 -103
- package/lib.esm/hash/solidity.js.map +0 -1
- package/lib.esm/hash/typed-data.d.ts +0 -150
- package/lib.esm/hash/typed-data.d.ts.map +0 -1
- package/lib.esm/hash/typed-data.js +0 -519
- package/lib.esm/hash/typed-data.js.map +0 -1
- package/lib.esm/index.d.ts +0 -11
- package/lib.esm/index.d.ts.map +0 -1
- package/lib.esm/index.js +0 -11
- package/lib.esm/index.js.map +0 -1
- package/lib.esm/package.json +0 -12
- package/lib.esm/providers/abstract-provider.d.ts +0 -451
- package/lib.esm/providers/abstract-provider.d.ts.map +0 -1
- package/lib.esm/providers/abstract-provider.js +0 -1404
- package/lib.esm/providers/abstract-provider.js.map +0 -1
- package/lib.esm/providers/abstract-signer.d.ts +0 -69
- package/lib.esm/providers/abstract-signer.d.ts.map +0 -1
- package/lib.esm/providers/abstract-signer.js +0 -244
- package/lib.esm/providers/abstract-signer.js.map +0 -1
- package/lib.esm/providers/community.d.ts +0 -29
- package/lib.esm/providers/community.d.ts.map +0 -1
- package/lib.esm/providers/community.js +0 -36
- package/lib.esm/providers/community.js.map +0 -1
- package/lib.esm/providers/contracts.d.ts +0 -36
- package/lib.esm/providers/contracts.d.ts.map +0 -1
- package/lib.esm/providers/contracts.js +0 -2
- package/lib.esm/providers/contracts.js.map +0 -1
- package/lib.esm/providers/default-provider.d.ts +0 -41
- package/lib.esm/providers/default-provider.d.ts.map +0 -1
- package/lib.esm/providers/default-provider.js +0 -88
- package/lib.esm/providers/default-provider.js.map +0 -1
- package/lib.esm/providers/ens-resolver.d.ts +0 -147
- package/lib.esm/providers/ens-resolver.d.ts.map +0 -1
- package/lib.esm/providers/ens-resolver.js +0 -496
- package/lib.esm/providers/ens-resolver.js.map +0 -1
- package/lib.esm/providers/format.d.ts +0 -15
- package/lib.esm/providers/format.d.ts.map +0 -1
- package/lib.esm/providers/format.js +0 -283
- package/lib.esm/providers/format.js.map +0 -1
- package/lib.esm/providers/formatting.d.ts +0 -318
- package/lib.esm/providers/formatting.d.ts.map +0 -1
- package/lib.esm/providers/formatting.js +0 -9
- package/lib.esm/providers/formatting.js.map +0 -1
- package/lib.esm/providers/index.d.ts +0 -41
- package/lib.esm/providers/index.d.ts.map +0 -1
- package/lib.esm/providers/index.js +0 -31
- package/lib.esm/providers/index.js.map +0 -1
- package/lib.esm/providers/network.d.ts +0 -99
- package/lib.esm/providers/network.d.ts.map +0 -1
- package/lib.esm/providers/network.js +0 -265
- package/lib.esm/providers/network.js.map +0 -1
- package/lib.esm/providers/pagination.d.ts +0 -6
- package/lib.esm/providers/pagination.d.ts.map +0 -1
- package/lib.esm/providers/pagination.js +0 -2
- package/lib.esm/providers/pagination.js.map +0 -1
- package/lib.esm/providers/plugin-fallback.d.ts +0 -13
- package/lib.esm/providers/plugin-fallback.d.ts.map +0 -1
- package/lib.esm/providers/plugin-fallback.js +0 -26
- package/lib.esm/providers/plugin-fallback.js.map +0 -1
- package/lib.esm/providers/plugins-network.d.ts +0 -170
- package/lib.esm/providers/plugins-network.d.ts.map +0 -1
- package/lib.esm/providers/plugins-network.js +0 -208
- package/lib.esm/providers/plugins-network.js.map +0 -1
- package/lib.esm/providers/provider-browser.d.ts +0 -108
- package/lib.esm/providers/provider-browser.d.ts.map +0 -1
- package/lib.esm/providers/provider-browser.js +0 -200
- package/lib.esm/providers/provider-browser.js.map +0 -1
- package/lib.esm/providers/provider-fallback.d.ts +0 -115
- package/lib.esm/providers/provider-fallback.d.ts.map +0 -1
- package/lib.esm/providers/provider-fallback.js +0 -620
- package/lib.esm/providers/provider-fallback.js.map +0 -1
- package/lib.esm/providers/provider-ipcsocket-browser.d.ts +0 -3
- package/lib.esm/providers/provider-ipcsocket-browser.d.ts.map +0 -1
- package/lib.esm/providers/provider-ipcsocket-browser.js +0 -3
- package/lib.esm/providers/provider-ipcsocket-browser.js.map +0 -1
- package/lib.esm/providers/provider-ipcsocket.d.ts +0 -21
- package/lib.esm/providers/provider-ipcsocket.d.ts.map +0 -1
- package/lib.esm/providers/provider-ipcsocket.js +0 -68
- package/lib.esm/providers/provider-ipcsocket.js.map +0 -1
- package/lib.esm/providers/provider-jsonrpc.d.ts +0 -361
- package/lib.esm/providers/provider-jsonrpc.d.ts.map +0 -1
- package/lib.esm/providers/provider-jsonrpc.js +0 -973
- package/lib.esm/providers/provider-jsonrpc.js.map +0 -1
- package/lib.esm/providers/provider-socket.d.ts +0 -113
- package/lib.esm/providers/provider-socket.d.ts.map +0 -1
- package/lib.esm/providers/provider-socket.js +0 -301
- package/lib.esm/providers/provider-socket.js.map +0 -1
- package/lib.esm/providers/provider-websocket.d.ts +0 -37
- package/lib.esm/providers/provider-websocket.d.ts.map +0 -1
- package/lib.esm/providers/provider-websocket.js +0 -76
- package/lib.esm/providers/provider-websocket.js.map +0 -1
- package/lib.esm/providers/provider.d.ts +0 -1223
- package/lib.esm/providers/provider.d.ts.map +0 -1
- package/lib.esm/providers/provider.js +0 -1312
- package/lib.esm/providers/provider.js.map +0 -1
- package/lib.esm/providers/signer-noncemanager.d.ts +0 -38
- package/lib.esm/providers/signer-noncemanager.d.ts.map +0 -1
- package/lib.esm/providers/signer-noncemanager.js +0 -74
- package/lib.esm/providers/signer-noncemanager.js.map +0 -1
- package/lib.esm/providers/signer.d.ts +0 -131
- package/lib.esm/providers/signer.d.ts.map +0 -1
- package/lib.esm/providers/signer.js +0 -2
- package/lib.esm/providers/signer.js.map +0 -1
- package/lib.esm/providers/subscriber-connection.d.ts +0 -25
- package/lib.esm/providers/subscriber-connection.d.ts.map +0 -1
- package/lib.esm/providers/subscriber-connection.js +0 -52
- package/lib.esm/providers/subscriber-connection.js.map +0 -1
- package/lib.esm/providers/subscriber-filterid.d.ts +0 -64
- package/lib.esm/providers/subscriber-filterid.d.ts.map +0 -1
- package/lib.esm/providers/subscriber-filterid.js +0 -174
- package/lib.esm/providers/subscriber-filterid.js.map +0 -1
- package/lib.esm/providers/subscriber-polling.d.ts +0 -100
- package/lib.esm/providers/subscriber-polling.d.ts.map +0 -1
- package/lib.esm/providers/subscriber-polling.js +0 -293
- package/lib.esm/providers/subscriber-polling.js.map +0 -1
- package/lib.esm/providers/ws-browser.d.ts +0 -3
- package/lib.esm/providers/ws-browser.d.ts.map +0 -1
- package/lib.esm/providers/ws-browser.js +0 -16
- package/lib.esm/providers/ws-browser.js.map +0 -1
- package/lib.esm/providers/ws.d.ts +0 -2
- package/lib.esm/providers/ws.d.ts.map +0 -1
- package/lib.esm/providers/ws.js +0 -2
- package/lib.esm/providers/ws.js.map +0 -1
- package/lib.esm/quantumcoin.d.ts +0 -24
- package/lib.esm/quantumcoin.d.ts.map +0 -1
- package/lib.esm/quantumcoin.js +0 -22
- package/lib.esm/quantumcoin.js.map +0 -1
- package/lib.esm/transaction/accesslist.d.ts +0 -6
- package/lib.esm/transaction/accesslist.d.ts.map +0 -1
- package/lib.esm/transaction/accesslist.js +0 -37
- package/lib.esm/transaction/accesslist.js.map +0 -1
- package/lib.esm/transaction/address.d.ts +0 -15
- package/lib.esm/transaction/address.d.ts.map +0 -1
- package/lib.esm/transaction/address.js +0 -34
- package/lib.esm/transaction/address.js.map +0 -1
- package/lib.esm/transaction/authorization.d.ts +0 -3
- package/lib.esm/transaction/authorization.d.ts.map +0 -1
- package/lib.esm/transaction/authorization.js +0 -12
- package/lib.esm/transaction/authorization.js.map +0 -1
- package/lib.esm/transaction/index.d.ts +0 -40
- package/lib.esm/transaction/index.d.ts.map +0 -1
- package/lib.esm/transaction/index.js +0 -11
- package/lib.esm/transaction/index.js.map +0 -1
- package/lib.esm/transaction/transaction.d.ts +0 -400
- package/lib.esm/transaction/transaction.d.ts.map +0 -1
- package/lib.esm/transaction/transaction.js +0 -1144
- package/lib.esm/transaction/transaction.js.map +0 -1
- package/lib.esm/utils/base58.d.ts +0 -23
- package/lib.esm/utils/base58.d.ts.map +0 -1
- package/lib.esm/utils/base58.js +0 -63
- package/lib.esm/utils/base58.js.map +0 -1
- package/lib.esm/utils/base64-browser.d.ts +0 -4
- package/lib.esm/utils/base64-browser.d.ts.map +0 -1
- package/lib.esm/utils/base64-browser.js +0 -19
- package/lib.esm/utils/base64-browser.js.map +0 -1
- package/lib.esm/utils/base64.d.ts +0 -40
- package/lib.esm/utils/base64.d.ts.map +0 -1
- package/lib.esm/utils/base64.js +0 -53
- package/lib.esm/utils/base64.js.map +0 -1
- package/lib.esm/utils/data.d.ts +0 -93
- package/lib.esm/utils/data.d.ts.map +0 -1
- package/lib.esm/utils/data.js +0 -170
- package/lib.esm/utils/data.js.map +0 -1
- package/lib.esm/utils/errors.d.ts +0 -512
- package/lib.esm/utils/errors.d.ts.map +0 -1
- package/lib.esm/utils/errors.js +0 -224
- package/lib.esm/utils/errors.js.map +0 -1
- package/lib.esm/utils/events.d.ts +0 -77
- package/lib.esm/utils/events.d.ts.map +0 -1
- package/lib.esm/utils/events.js +0 -42
- package/lib.esm/utils/events.js.map +0 -1
- package/lib.esm/utils/fetch.d.ts +0 -363
- package/lib.esm/utils/fetch.d.ts.map +0 -1
- package/lib.esm/utils/fetch.js +0 -852
- package/lib.esm/utils/fetch.js.map +0 -1
- package/lib.esm/utils/fixednumber.d.ts +0 -252
- package/lib.esm/utils/fixednumber.d.ts.map +0 -1
- package/lib.esm/utils/fixednumber.js +0 -526
- package/lib.esm/utils/fixednumber.js.map +0 -1
- package/lib.esm/utils/geturl-browser.d.ts +0 -4
- package/lib.esm/utils/geturl-browser.d.ts.map +0 -1
- package/lib.esm/utils/geturl-browser.js +0 -62
- package/lib.esm/utils/geturl-browser.js.map +0 -1
- package/lib.esm/utils/geturl.d.ts +0 -10
- package/lib.esm/utils/geturl.d.ts.map +0 -1
- package/lib.esm/utils/geturl.js +0 -114
- package/lib.esm/utils/geturl.js.map +0 -1
- package/lib.esm/utils/index.d.ts +0 -30
- package/lib.esm/utils/index.d.ts.map +0 -1
- package/lib.esm/utils/index.js +0 -22
- package/lib.esm/utils/index.js.map +0 -1
- package/lib.esm/utils/maths.d.ts +0 -66
- package/lib.esm/utils/maths.d.ts.map +0 -1
- package/lib.esm/utils/maths.js +0 -215
- package/lib.esm/utils/maths.js.map +0 -1
- package/lib.esm/utils/properties.d.ts +0 -23
- package/lib.esm/utils/properties.d.ts.map +0 -1
- package/lib.esm/utils/properties.js +0 -54
- package/lib.esm/utils/properties.js.map +0 -1
- package/lib.esm/utils/rlp-decode.d.ts +0 -6
- package/lib.esm/utils/rlp-decode.d.ts.map +0 -1
- package/lib.esm/utils/rlp-decode.js +0 -79
- package/lib.esm/utils/rlp-decode.js.map +0 -1
- package/lib.esm/utils/rlp-encode.d.ts +0 -6
- package/lib.esm/utils/rlp-encode.d.ts.map +0 -1
- package/lib.esm/utils/rlp-encode.js +0 -49
- package/lib.esm/utils/rlp-encode.js.map +0 -1
- package/lib.esm/utils/rlp.d.ts +0 -17
- package/lib.esm/utils/rlp.d.ts.map +0 -1
- package/lib.esm/utils/rlp.js +0 -9
- package/lib.esm/utils/rlp.js.map +0 -1
- package/lib.esm/utils/units.d.ts +0 -24
- package/lib.esm/utils/units.d.ts.map +0 -1
- package/lib.esm/utils/units.js +0 -83
- package/lib.esm/utils/units.js.map +0 -1
- package/lib.esm/utils/utf8.d.ts +0 -96
- package/lib.esm/utils/utf8.d.ts.map +0 -1
- package/lib.esm/utils/utf8.js +0 -221
- package/lib.esm/utils/utf8.js.map +0 -1
- package/lib.esm/utils/uuid.d.ts +0 -8
- package/lib.esm/utils/uuid.d.ts.map +0 -1
- package/lib.esm/utils/uuid.js +0 -30
- package/lib.esm/utils/uuid.js.map +0 -1
- package/lib.esm/wallet/base-wallet.d.ts +0 -57
- package/lib.esm/wallet/base-wallet.d.ts.map +0 -1
- package/lib.esm/wallet/base-wallet.js +0 -123
- package/lib.esm/wallet/base-wallet.js.map +0 -1
- package/lib.esm/wallet/index.d.ts +0 -23
- package/lib.esm/wallet/index.d.ts.map +0 -1
- package/lib.esm/wallet/index.js +0 -22
- package/lib.esm/wallet/index.js.map +0 -1
- package/lib.esm/wallet/json-keystore.d.ts +0 -40
- package/lib.esm/wallet/json-keystore.d.ts.map +0 -1
- package/lib.esm/wallet/json-keystore.js +0 -84
- package/lib.esm/wallet/json-keystore.js.map +0 -1
- package/lib.esm/wallet/utils.d.ts +0 -8
- package/lib.esm/wallet/utils.d.ts.map +0 -1
- package/lib.esm/wallet/utils.js +0 -142
- package/lib.esm/wallet/utils.js.map +0 -1
- package/lib.esm/wallet/wallet.d.ts +0 -62
- package/lib.esm/wallet/wallet.d.ts.map +0 -1
- package/lib.esm/wallet/wallet.js +0 -105
- package/lib.esm/wallet/wallet.js.map +0 -1
- package/lib.esm/wordlists/bit-reader.d.ts +0 -5
- package/lib.esm/wordlists/bit-reader.d.ts.map +0 -1
- package/lib.esm/wordlists/bit-reader.js +0 -32
- package/lib.esm/wordlists/bit-reader.js.map +0 -1
- package/lib.esm/wordlists/decode-owl.d.ts +0 -9
- package/lib.esm/wordlists/decode-owl.d.ts.map +0 -1
- package/lib.esm/wordlists/decode-owl.js +0 -55
- package/lib.esm/wordlists/decode-owl.js.map +0 -1
- package/lib.esm/wordlists/decode-owla.d.ts +0 -5
- package/lib.esm/wordlists/decode-owla.d.ts.map +0 -1
- package/lib.esm/wordlists/decode-owla.js +0 -28
- package/lib.esm/wordlists/decode-owla.js.map +0 -1
- package/lib.esm/wordlists/generation/encode-latin.d.ts +0 -25
- package/lib.esm/wordlists/generation/encode-latin.d.ts.map +0 -1
- package/lib.esm/wordlists/generation/encode-latin.js +0 -344
- package/lib.esm/wordlists/generation/encode-latin.js.map +0 -1
- package/lib.esm/wordlists/index.d.ts +0 -25
- package/lib.esm/wordlists/index.d.ts.map +0 -1
- package/lib.esm/wordlists/index.js +0 -25
- package/lib.esm/wordlists/index.js.map +0 -1
- package/lib.esm/wordlists/lang-cz.d.ts +0 -23
- package/lib.esm/wordlists/lang-cz.d.ts.map +0 -1
- package/lib.esm/wordlists/lang-cz.js +0 -31
- package/lib.esm/wordlists/lang-cz.js.map +0 -1
- package/lib.esm/wordlists/lang-en.d.ts +0 -23
- package/lib.esm/wordlists/lang-en.d.ts.map +0 -1
- package/lib.esm/wordlists/lang-en.js +0 -31
- package/lib.esm/wordlists/lang-en.js.map +0 -1
- package/lib.esm/wordlists/lang-es.d.ts +0 -23
- package/lib.esm/wordlists/lang-es.d.ts.map +0 -1
- package/lib.esm/wordlists/lang-es.js +0 -32
- package/lib.esm/wordlists/lang-es.js.map +0 -1
- package/lib.esm/wordlists/lang-fr.d.ts +0 -23
- package/lib.esm/wordlists/lang-fr.d.ts.map +0 -1
- package/lib.esm/wordlists/lang-fr.js +0 -32
- package/lib.esm/wordlists/lang-fr.js.map +0 -1
- package/lib.esm/wordlists/lang-it.d.ts +0 -23
- package/lib.esm/wordlists/lang-it.d.ts.map +0 -1
- package/lib.esm/wordlists/lang-it.js +0 -31
- package/lib.esm/wordlists/lang-it.js.map +0 -1
- package/lib.esm/wordlists/lang-ja.d.ts +0 -27
- package/lib.esm/wordlists/lang-ja.d.ts.map +0 -1
- package/lib.esm/wordlists/lang-ja.js +0 -154
- package/lib.esm/wordlists/lang-ja.js.map +0 -1
- package/lib.esm/wordlists/lang-ko.d.ts +0 -25
- package/lib.esm/wordlists/lang-ko.d.ts.map +0 -1
- package/lib.esm/wordlists/lang-ko.js +0 -89
- package/lib.esm/wordlists/lang-ko.js.map +0 -1
- package/lib.esm/wordlists/lang-pt.d.ts +0 -23
- package/lib.esm/wordlists/lang-pt.d.ts.map +0 -1
- package/lib.esm/wordlists/lang-pt.js +0 -31
- package/lib.esm/wordlists/lang-pt.js.map +0 -1
- package/lib.esm/wordlists/lang-zh.d.ts +0 -32
- package/lib.esm/wordlists/lang-zh.d.ts.map +0 -1
- package/lib.esm/wordlists/lang-zh.js +0 -92
- package/lib.esm/wordlists/lang-zh.js.map +0 -1
- package/lib.esm/wordlists/wordlist-owl.d.ts +0 -32
- package/lib.esm/wordlists/wordlist-owl.d.ts.map +0 -1
- package/lib.esm/wordlists/wordlist-owl.js +0 -66
- package/lib.esm/wordlists/wordlist-owl.js.map +0 -1
- package/lib.esm/wordlists/wordlist-owla.d.ts +0 -30
- package/lib.esm/wordlists/wordlist-owla.d.ts.map +0 -1
- package/lib.esm/wordlists/wordlist-owla.js +0 -36
- package/lib.esm/wordlists/wordlist-owla.js.map +0 -1
- package/lib.esm/wordlists/wordlist.d.ts +0 -47
- package/lib.esm/wordlists/wordlist.d.ts.map +0 -1
- package/lib.esm/wordlists/wordlist.js +0 -42
- package/lib.esm/wordlists/wordlist.js.map +0 -1
- package/lib.esm/wordlists/wordlists-browser.d.ts +0 -3
- package/lib.esm/wordlists/wordlists-browser.d.ts.map +0 -1
- package/lib.esm/wordlists/wordlists-browser.js +0 -5
- package/lib.esm/wordlists/wordlists-browser.js.map +0 -1
- package/lib.esm/wordlists/wordlists-extra.d.ts +0 -9
- package/lib.esm/wordlists/wordlists-extra.d.ts.map +0 -1
- package/lib.esm/wordlists/wordlists-extra.js +0 -9
- package/lib.esm/wordlists/wordlists-extra.js.map +0 -1
- package/lib.esm/wordlists/wordlists.d.ts +0 -16
- package/lib.esm/wordlists/wordlists.d.ts.map +0 -1
- package/lib.esm/wordlists/wordlists.js +0 -35
- package/lib.esm/wordlists/wordlists.js.map +0 -1
- package/rollup.config.mjs +0 -50
- package/src.ts/_version.ts +0 -6
- package/src.ts/abi/abi-coder.ts +0 -237
- package/src.ts/abi/bytes32.ts +0 -45
- package/src.ts/abi/coders/abstract-coder.ts +0 -541
- package/src.ts/abi/coders/address.ts +0 -36
- package/src.ts/abi/coders/anonymous.ts +0 -29
- package/src.ts/abi/coders/array.ts +0 -199
- package/src.ts/abi/coders/boolean.ts +0 -27
- package/src.ts/abi/coders/bytes.ts +0 -43
- package/src.ts/abi/coders/fixed-bytes.ts +0 -37
- package/src.ts/abi/coders/null.ts +0 -28
- package/src.ts/abi/coders/number.ts +0 -63
- package/src.ts/abi/coders/string.ts +0 -29
- package/src.ts/abi/coders/tuple.ts +0 -69
- package/src.ts/abi/fragments.ts +0 -1617
- package/src.ts/abi/index.ts +0 -41
- package/src.ts/abi/interface.ts +0 -1271
- package/src.ts/abi/typed.ts +0 -796
- package/src.ts/address/address.ts +0 -148
- package/src.ts/address/checks.ts +0 -123
- package/src.ts/address/contract-address.ts +0 -80
- package/src.ts/address/index.ts +0 -57
- package/src.ts/constants/addresses.ts +0 -8
- package/src.ts/constants/hashes.ts +0 -7
- package/src.ts/constants/index.ts +0 -16
- package/src.ts/constants/numbers.ts +0 -35
- package/src.ts/constants/strings.ts +0 -16
- package/src.ts/contract/contract.ts +0 -1120
- package/src.ts/contract/factory.ts +0 -143
- package/src.ts/contract/index.ts +0 -31
- package/src.ts/contract/types.ts +0 -236
- package/src.ts/contract/wrappers.ts +0 -225
- package/src.ts/crypto/crypto-browser.ts +0 -64
- package/src.ts/crypto/crypto.ts +0 -4
- package/src.ts/crypto/hmac.ts +0 -51
- package/src.ts/crypto/index.ts +0 -59
- package/src.ts/crypto/keccak.ts +0 -54
- package/src.ts/crypto/pbkdf2.ts +0 -55
- package/src.ts/crypto/random.ts +0 -36
- package/src.ts/crypto/ripemd160.ts +0 -43
- package/src.ts/crypto/scrypt.ts +0 -114
- package/src.ts/crypto/sha2.ts +0 -78
- package/src.ts/crypto/signature.ts +0 -349
- package/src.ts/crypto/signing-key.ts +0 -123
- package/src.ts/hash/authorization.ts +0 -38
- package/src.ts/hash/id.ts +0 -17
- package/src.ts/hash/index.ts +0 -18
- package/src.ts/hash/message.ts +0 -51
- package/src.ts/hash/namehash.ts +0 -101
- package/src.ts/hash/solidity.ts +0 -117
- package/src.ts/hash/typed-data.ts +0 -658
- package/src.ts/index.ts +0 -12
- package/src.ts/providers/abstract-provider.ts +0 -1761
- package/src.ts/providers/abstract-signer.ts +0 -314
- package/src.ts/providers/community.ts +0 -49
- package/src.ts/providers/contracts.ts +0 -42
- package/src.ts/providers/default-provider.ts +0 -96
- package/src.ts/providers/ens-resolver.ts +0 -606
- package/src.ts/providers/format.ts +0 -320
- package/src.ts/providers/formatting.ts +0 -418
- package/src.ts/providers/index.ts +0 -125
- package/src.ts/providers/network.ts +0 -327
- package/src.ts/providers/pagination.ts +0 -8
- package/src.ts/providers/plugin-fallback.ts +0 -35
- package/src.ts/providers/plugins-network.ts +0 -281
- package/src.ts/providers/provider-browser.ts +0 -334
- package/src.ts/providers/provider-fallback.ts +0 -801
- package/src.ts/providers/provider-ipcsocket-browser.ts +0 -3
- package/src.ts/providers/provider-ipcsocket.ts +0 -81
- package/src.ts/providers/provider-jsonrpc.ts +0 -1335
- package/src.ts/providers/provider-socket.ts +0 -352
- package/src.ts/providers/provider-websocket.ts +0 -103
- package/src.ts/providers/provider.ts +0 -2136
- package/src.ts/providers/signer-noncemanager.ts +0 -98
- package/src.ts/providers/signer.ts +0 -166
- package/src.ts/providers/subscriber-connection.ts +0 -74
- package/src.ts/providers/subscriber-filterid.ts +0 -199
- package/src.ts/providers/subscriber-polling.ts +0 -321
- package/src.ts/providers/ws-browser.ts +0 -11
- package/src.ts/providers/ws.ts +0 -3
- package/src.ts/quantumcoin.ts +0 -219
- package/src.ts/thirdparty.d.ts +0 -16
- package/src.ts/transaction/accesslist.ts +0 -43
- package/src.ts/transaction/address.ts +0 -35
- package/src.ts/transaction/authorization.ts +0 -14
- package/src.ts/transaction/index.ts +0 -51
- package/src.ts/transaction/transaction.ts +0 -1379
- package/src.ts/utils/base58.ts +0 -73
- package/src.ts/utils/base64-browser.ts +0 -25
- package/src.ts/utils/base64.ts +0 -56
- package/src.ts/utils/data.ts +0 -199
- package/src.ts/utils/errors.ts +0 -793
- package/src.ts/utils/events.ts +0 -105
- package/src.ts/utils/fetch.ts +0 -970
- package/src.ts/utils/fixednumber.ts +0 -643
- package/src.ts/utils/geturl-browser.ts +0 -81
- package/src.ts/utils/geturl.ts +0 -134
- package/src.ts/utils/index.ts +0 -95
- package/src.ts/utils/maths.ts +0 -240
- package/src.ts/utils/properties.ts +0 -60
- package/src.ts/utils/rlp-decode.ts +0 -104
- package/src.ts/utils/rlp-encode.ts +0 -64
- package/src.ts/utils/rlp.ts +0 -20
- package/src.ts/utils/test.txt +0 -0
- package/src.ts/utils/units.ts +0 -91
- package/src.ts/utils/utf8.ts +0 -325
- package/src.ts/utils/uuid.ts +0 -36
- package/src.ts/wallet/base-wallet.ts +0 -160
- package/src.ts/wallet/index.ts +0 -32
- package/src.ts/wallet/json-keystore.ts +0 -108
- package/src.ts/wallet/utils.ts +0 -147
- package/src.ts/wallet/wallet.ts +0 -138
- package/src.ts/wordlists/bit-reader.ts +0 -35
- package/src.ts/wordlists/decode-owl.ts +0 -58
- package/src.ts/wordlists/decode-owla.ts +0 -33
- package/src.ts/wordlists/generation/encode-latin.ts +0 -370
- package/src.ts/wordlists/index.ts +0 -26
- package/src.ts/wordlists/lang-cz.ts +0 -33
- package/src.ts/wordlists/lang-en.ts +0 -33
- package/src.ts/wordlists/lang-es.ts +0 -35
- package/src.ts/wordlists/lang-fr.ts +0 -34
- package/src.ts/wordlists/lang-it.ts +0 -33
- package/src.ts/wordlists/lang-ja.ts +0 -181
- package/src.ts/wordlists/lang-ko.ts +0 -104
- package/src.ts/wordlists/lang-pt.ts +0 -34
- package/src.ts/wordlists/lang-zh.ts +0 -112
- package/src.ts/wordlists/wordlist-owl.ts +0 -77
- package/src.ts/wordlists/wordlist-owla.ts +0 -41
- package/src.ts/wordlists/wordlist.ts +0 -59
- package/src.ts/wordlists/wordlists-browser.ts +0 -8
- package/src.ts/wordlists/wordlists-extra.ts +0 -9
- package/src.ts/wordlists/wordlists.ts +0 -38
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
//See: https://github.com/ethereum/wiki/wiki/RLP
|
|
2
|
-
import { hexlify } from "./data.js";
|
|
3
|
-
import { assert, assertArgument } from "./errors.js";
|
|
4
|
-
import { getBytes } from "./data.js";
|
|
5
|
-
function hexlifyByte(value) {
|
|
6
|
-
let result = value.toString(16);
|
|
7
|
-
while (result.length < 2) {
|
|
8
|
-
result = "0" + result;
|
|
9
|
-
}
|
|
10
|
-
return "0x" + result;
|
|
11
|
-
}
|
|
12
|
-
function unarrayifyInteger(data, offset, length) {
|
|
13
|
-
let result = 0;
|
|
14
|
-
for (let i = 0; i < length; i++) {
|
|
15
|
-
result = (result * 256) + data[offset + i];
|
|
16
|
-
}
|
|
17
|
-
return result;
|
|
18
|
-
}
|
|
19
|
-
function _decodeChildren(data, offset, childOffset, length) {
|
|
20
|
-
const result = [];
|
|
21
|
-
while (childOffset < offset + 1 + length) {
|
|
22
|
-
const decoded = _decode(data, childOffset);
|
|
23
|
-
result.push(decoded.result);
|
|
24
|
-
childOffset += decoded.consumed;
|
|
25
|
-
assert(childOffset <= offset + 1 + length, "child data too short", "BUFFER_OVERRUN", {
|
|
26
|
-
buffer: data, length, offset
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
return { consumed: (1 + length), result: result };
|
|
30
|
-
}
|
|
31
|
-
// returns { consumed: number, result: Object }
|
|
32
|
-
function _decode(data, offset) {
|
|
33
|
-
assert(data.length !== 0, "data too short", "BUFFER_OVERRUN", {
|
|
34
|
-
buffer: data, length: 0, offset: 1
|
|
35
|
-
});
|
|
36
|
-
const checkOffset = (offset) => {
|
|
37
|
-
assert(offset <= data.length, "data short segment too short", "BUFFER_OVERRUN", {
|
|
38
|
-
buffer: data, length: data.length, offset
|
|
39
|
-
});
|
|
40
|
-
};
|
|
41
|
-
// Array with extra length prefix
|
|
42
|
-
if (data[offset] >= 0xf8) {
|
|
43
|
-
const lengthLength = data[offset] - 0xf7;
|
|
44
|
-
checkOffset(offset + 1 + lengthLength);
|
|
45
|
-
const length = unarrayifyInteger(data, offset + 1, lengthLength);
|
|
46
|
-
checkOffset(offset + 1 + lengthLength + length);
|
|
47
|
-
return _decodeChildren(data, offset, offset + 1 + lengthLength, lengthLength + length);
|
|
48
|
-
}
|
|
49
|
-
else if (data[offset] >= 0xc0) {
|
|
50
|
-
const length = data[offset] - 0xc0;
|
|
51
|
-
checkOffset(offset + 1 + length);
|
|
52
|
-
return _decodeChildren(data, offset, offset + 1, length);
|
|
53
|
-
}
|
|
54
|
-
else if (data[offset] >= 0xb8) {
|
|
55
|
-
const lengthLength = data[offset] - 0xb7;
|
|
56
|
-
checkOffset(offset + 1 + lengthLength);
|
|
57
|
-
const length = unarrayifyInteger(data, offset + 1, lengthLength);
|
|
58
|
-
checkOffset(offset + 1 + lengthLength + length);
|
|
59
|
-
const result = hexlify(data.slice(offset + 1 + lengthLength, offset + 1 + lengthLength + length));
|
|
60
|
-
return { consumed: (1 + lengthLength + length), result: result };
|
|
61
|
-
}
|
|
62
|
-
else if (data[offset] >= 0x80) {
|
|
63
|
-
const length = data[offset] - 0x80;
|
|
64
|
-
checkOffset(offset + 1 + length);
|
|
65
|
-
const result = hexlify(data.slice(offset + 1, offset + 1 + length));
|
|
66
|
-
return { consumed: (1 + length), result: result };
|
|
67
|
-
}
|
|
68
|
-
return { consumed: 1, result: hexlifyByte(data[offset]) };
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* Decodes %%data%% into the structured data it represents.
|
|
72
|
-
*/
|
|
73
|
-
export function decodeRlp(_data) {
|
|
74
|
-
const data = getBytes(_data, "data");
|
|
75
|
-
const decoded = _decode(data, 0);
|
|
76
|
-
assertArgument(decoded.consumed === data.length, "unexpected junk after rlp payload", "data", _data);
|
|
77
|
-
return decoded.result;
|
|
78
|
-
}
|
|
79
|
-
//# sourceMappingURL=rlp-decode.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rlp-decode.js","sourceRoot":"","sources":["../../src.ts/utils/rlp-decode.ts"],"names":[],"mappings":"AAAA,gDAAgD;AAEhD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAKrC,SAAS,WAAW,CAAC,KAAa;IAC9B,IAAI,MAAM,GAAG,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IAChC,OAAO,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE;QAAE,MAAM,GAAG,GAAG,GAAG,MAAM,CAAC;KAAE;IACpD,OAAO,IAAI,GAAG,MAAM,CAAC;AACzB,CAAC;AAED,SAAS,iBAAiB,CAAC,IAAgB,EAAE,MAAc,EAAE,MAAc;IACvE,IAAI,MAAM,GAAG,CAAC,CAAC;IACf,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,EAAE,CAAC,EAAE,EAAE;QAC7B,MAAM,GAAG,CAAC,MAAM,GAAG,GAAG,CAAC,GAAG,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;KAC9C;IACD,OAAO,MAAM,CAAC;AAClB,CAAC;AAOD,SAAS,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AAM,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,IAAI,EAAE;QAC7B,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;QACnC,WAAW,CAAC,MAAM,GAAG,CAAC,GAAG,MAAM,CAAC,CAAC;QAEjC,MAAM,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,MAAM,GAAG,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC;QACpE,OAAO,EAAE,QAAQ,EAAE,CAAC,CAAC,GAAG,MAAM,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAA;KACpD;IAED,OAAO,EAAE,QAAQ,EAAE,CAAC,EAAE,MAAM,EAAE,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC;AAC9D,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,SAAS,CAAC,KAAgB;IACtC,MAAM,IAAI,GAAG,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IACrC,MAAM,OAAO,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;IACjC,cAAc,CAAC,OAAO,CAAC,QAAQ,KAAK,IAAI,CAAC,MAAM,EAAE,mCAAmC,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;IACrG,OAAO,OAAO,CAAC,MAAM,CAAC;AAC1B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rlp-encode.d.ts","sourceRoot":"","sources":["../../src.ts/utils/rlp-encode.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAiDrD;;GAEG;AACH,wBAAgB,SAAS,CAAC,MAAM,EAAE,oBAAoB,GAAG,MAAM,CAO9D"}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
//See: https://github.com/ethereum/wiki/wiki/RLP
|
|
2
|
-
import { getBytes } from "./data.js";
|
|
3
|
-
function arrayifyInteger(value) {
|
|
4
|
-
const result = [];
|
|
5
|
-
while (value) {
|
|
6
|
-
result.unshift(value & 0xff);
|
|
7
|
-
value >>= 8;
|
|
8
|
-
}
|
|
9
|
-
return result;
|
|
10
|
-
}
|
|
11
|
-
function _encode(object) {
|
|
12
|
-
if (Array.isArray(object)) {
|
|
13
|
-
let payload = [];
|
|
14
|
-
object.forEach(function (child) {
|
|
15
|
-
payload = payload.concat(_encode(child));
|
|
16
|
-
});
|
|
17
|
-
if (payload.length <= 55) {
|
|
18
|
-
payload.unshift(0xc0 + payload.length);
|
|
19
|
-
return payload;
|
|
20
|
-
}
|
|
21
|
-
const length = arrayifyInteger(payload.length);
|
|
22
|
-
length.unshift(0xf7 + length.length);
|
|
23
|
-
return length.concat(payload);
|
|
24
|
-
}
|
|
25
|
-
const data = Array.prototype.slice.call(getBytes(object, "object"));
|
|
26
|
-
if (data.length === 1 && data[0] <= 0x7f) {
|
|
27
|
-
return data;
|
|
28
|
-
}
|
|
29
|
-
else if (data.length <= 55) {
|
|
30
|
-
data.unshift(0x80 + data.length);
|
|
31
|
-
return data;
|
|
32
|
-
}
|
|
33
|
-
const length = arrayifyInteger(data.length);
|
|
34
|
-
length.unshift(0xb7 + length.length);
|
|
35
|
-
return length.concat(data);
|
|
36
|
-
}
|
|
37
|
-
const nibbles = "0123456789abcdef";
|
|
38
|
-
/**
|
|
39
|
-
* Encodes %%object%% as an RLP-encoded [[DataHexString]].
|
|
40
|
-
*/
|
|
41
|
-
export function encodeRlp(object) {
|
|
42
|
-
let result = "0x";
|
|
43
|
-
for (const v of _encode(object)) {
|
|
44
|
-
result += nibbles[v >> 4];
|
|
45
|
-
result += nibbles[v & 0xf];
|
|
46
|
-
}
|
|
47
|
-
return result;
|
|
48
|
-
}
|
|
49
|
-
//# sourceMappingURL=rlp-encode.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rlp-encode.js","sourceRoot":"","sources":["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AE;QAC1B,IAAI,CAAC,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC;QACjC,OAAO,IAAI,CAAC;KACf;IAED,MAAM,MAAM,GAAG,eAAe,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC5C,MAAM,CAAC,OAAO,CAAC,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;IAErC,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAC/B,CAAC;AAED,MAAM,OAAO,GAAG,kBAAkB,CAAC;AAEnC;;GAEG;AACH,MAAM,UAAU,SAAS,CAAC,MAA4B;IAClD,IAAI,MAAM,GAAG,IAAI,CAAC;IAClB,KAAK,MAAM,CAAC,IAAI,OAAO,CAAC,MAAM,CAAC,EAAE;QAC7B,MAAM,IAAI,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;QAC1B,MAAM,IAAI,OAAO,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC;KAC9B;IACD,OAAO,MAAM,CAAC;AAClB,CAAC"}
|
package/lib.esm/utils/rlp.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The [[link-rlp]] (RLP) encoding is used throughout Ethereum
|
|
3
|
-
* to serialize nested structures of Arrays and data.
|
|
4
|
-
*
|
|
5
|
-
* @_subsection api/utils:Recursive-Length Prefix [about-rlp]
|
|
6
|
-
*/
|
|
7
|
-
export { decodeRlp } from "./rlp-decode.js";
|
|
8
|
-
export { encodeRlp } from "./rlp-encode.js";
|
|
9
|
-
/**
|
|
10
|
-
* An RLP-encoded structure.
|
|
11
|
-
*/
|
|
12
|
-
export type RlpStructuredData = string | Array<RlpStructuredData>;
|
|
13
|
-
/**
|
|
14
|
-
* An RLP-encoded structure, which allows Uint8Array.
|
|
15
|
-
*/
|
|
16
|
-
export type RlpStructuredDataish = string | Uint8Array | Array<RlpStructuredDataish>;
|
|
17
|
-
//# sourceMappingURL=rlp.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rlp.d.ts","sourceRoot":"","sources":["../../src.ts/utils/rlp.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,KAAK,CAAC,iBAAiB,CAAC,CAAC;AAElE;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,UAAU,GAAG,KAAK,CAAC,oBAAoB,CAAC,CAAC"}
|
package/lib.esm/utils/rlp.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The [[link-rlp]] (RLP) encoding is used throughout Ethereum
|
|
3
|
-
* to serialize nested structures of Arrays and data.
|
|
4
|
-
*
|
|
5
|
-
* @_subsection api/utils:Recursive-Length Prefix [about-rlp]
|
|
6
|
-
*/
|
|
7
|
-
export { decodeRlp } from "./rlp-decode.js";
|
|
8
|
-
export { encodeRlp } from "./rlp-encode.js";
|
|
9
|
-
//# sourceMappingURL=rlp.js.map
|
package/lib.esm/utils/rlp.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rlp.js","sourceRoot":"","sources":["../../src.ts/utils/rlp.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC"}
|
package/lib.esm/utils/units.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { BigNumberish, Numeric } from "../utils/index.js";
|
|
2
|
-
/**
|
|
3
|
-
* Converts %%value%% into a //decimal string//, assuming %%unit%% decimal
|
|
4
|
-
* places. The %%unit%% may be the number of decimal places or the name of
|
|
5
|
-
* a unit (e.g. ``"gwei"`` for 9 decimal places).
|
|
6
|
-
*
|
|
7
|
-
*/
|
|
8
|
-
export declare function formatUnits(value: BigNumberish, unit?: string | Numeric): string;
|
|
9
|
-
/**
|
|
10
|
-
* Converts the //decimal string// %%value%% to a BigInt, assuming
|
|
11
|
-
* %%unit%% decimal places. The %%unit%% may the number of decimal places
|
|
12
|
-
* or the name of a unit (e.g. ``"gwei"`` for 9 decimal places).
|
|
13
|
-
*/
|
|
14
|
-
export declare function parseUnits(value: string, unit?: string | Numeric): bigint;
|
|
15
|
-
/**
|
|
16
|
-
* Converts %%value%% into a //decimal string// using 18 decimal places.
|
|
17
|
-
*/
|
|
18
|
-
export declare function formatEther(wei: BigNumberish): string;
|
|
19
|
-
/**
|
|
20
|
-
* Converts the //decimal string// %%ether%% to a BigInt, using 18
|
|
21
|
-
* decimal places.
|
|
22
|
-
*/
|
|
23
|
-
export declare function parseEther(ether: string): bigint;
|
|
24
|
-
//# sourceMappingURL=units.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"units.d.ts","sourceRoot":"","sources":["../../src.ts/utils/units.ts"],"names":[],"mappings":"AAyBA,OAAO,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAa/D;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,YAAY,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAWhF;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAazE;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,YAAY,GAAG,MAAM,CAErD;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEhD"}
|
package/lib.esm/utils/units.js
DELETED
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Most interactions with Ethereum requires integer values, which use
|
|
3
|
-
* the smallest magnitude unit.
|
|
4
|
-
*
|
|
5
|
-
* For example, imagine dealing with dollars and cents. Since dollars
|
|
6
|
-
* are divisible, non-integer values are possible, such as ``$10.77``.
|
|
7
|
-
* By using the smallest indivisible unit (i.e. cents), the value can
|
|
8
|
-
* be kept as the integer ``1077``.
|
|
9
|
-
*
|
|
10
|
-
* When receiving decimal input from the user (as a decimal string),
|
|
11
|
-
* the value should be converted to an integer and when showing a user
|
|
12
|
-
* a value, the integer value should be converted to a decimal string.
|
|
13
|
-
*
|
|
14
|
-
* This creates a clear distinction, between values to be used by code
|
|
15
|
-
* (integers) and values used for display logic to users (decimals).
|
|
16
|
-
*
|
|
17
|
-
* The native unit in Ethereum, //ether// is divisible to 18 decimal places,
|
|
18
|
-
* where each individual unit is called a //wei//.
|
|
19
|
-
*
|
|
20
|
-
* @_subsection api/utils:Unit Conversion [about-units]
|
|
21
|
-
*/
|
|
22
|
-
import { assertArgument } from "./errors.js";
|
|
23
|
-
import { FixedNumber } from "./fixednumber.js";
|
|
24
|
-
import { getNumber } from "./maths.js";
|
|
25
|
-
const names = [
|
|
26
|
-
"wei",
|
|
27
|
-
"kwei",
|
|
28
|
-
"mwei",
|
|
29
|
-
"gwei",
|
|
30
|
-
"szabo",
|
|
31
|
-
"finney",
|
|
32
|
-
"ether",
|
|
33
|
-
];
|
|
34
|
-
/**
|
|
35
|
-
* Converts %%value%% into a //decimal string//, assuming %%unit%% decimal
|
|
36
|
-
* places. The %%unit%% may be the number of decimal places or the name of
|
|
37
|
-
* a unit (e.g. ``"gwei"`` for 9 decimal places).
|
|
38
|
-
*
|
|
39
|
-
*/
|
|
40
|
-
export function formatUnits(value, unit) {
|
|
41
|
-
let decimals = 18;
|
|
42
|
-
if (typeof (unit) === "string") {
|
|
43
|
-
const index = names.indexOf(unit);
|
|
44
|
-
assertArgument(index >= 0, "invalid unit", "unit", unit);
|
|
45
|
-
decimals = 3 * index;
|
|
46
|
-
}
|
|
47
|
-
else if (unit != null) {
|
|
48
|
-
decimals = getNumber(unit, "unit");
|
|
49
|
-
}
|
|
50
|
-
return FixedNumber.fromValue(value, decimals, { decimals, width: 512 }).toString();
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Converts the //decimal string// %%value%% to a BigInt, assuming
|
|
54
|
-
* %%unit%% decimal places. The %%unit%% may the number of decimal places
|
|
55
|
-
* or the name of a unit (e.g. ``"gwei"`` for 9 decimal places).
|
|
56
|
-
*/
|
|
57
|
-
export function parseUnits(value, unit) {
|
|
58
|
-
assertArgument(typeof (value) === "string", "value must be a string", "value", value);
|
|
59
|
-
let decimals = 18;
|
|
60
|
-
if (typeof (unit) === "string") {
|
|
61
|
-
const index = names.indexOf(unit);
|
|
62
|
-
assertArgument(index >= 0, "invalid unit", "unit", unit);
|
|
63
|
-
decimals = 3 * index;
|
|
64
|
-
}
|
|
65
|
-
else if (unit != null) {
|
|
66
|
-
decimals = getNumber(unit, "unit");
|
|
67
|
-
}
|
|
68
|
-
return FixedNumber.fromString(value, { decimals, width: 512 }).value;
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* Converts %%value%% into a //decimal string// using 18 decimal places.
|
|
72
|
-
*/
|
|
73
|
-
export function formatEther(wei) {
|
|
74
|
-
return formatUnits(wei, 18);
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* Converts the //decimal string// %%ether%% to a BigInt, using 18
|
|
78
|
-
* decimal places.
|
|
79
|
-
*/
|
|
80
|
-
export function parseEther(ether) {
|
|
81
|
-
return parseUnits(ether, 18);
|
|
82
|
-
}
|
|
83
|
-
//# sourceMappingURL=units.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"units.js","sourceRoot":"","sources":["../../src.ts/utils/units.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,E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AAc,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;QACzD,QAAQ,GAAG,CAAC,GAAG,KAAK,CAAC;KACxB;SAAM,IAAI,IAAI,IAAI,IAAI,EAAE;QACrB,QAAQ,GAAG,SAAS,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;KACtC;IAED,OAAO,WAAW,CAAC,UAAU,CAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC;AACzE,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,WAAW,CAAC,GAAiB;IACzC,OAAO,WAAW,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;AAChC,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,UAAU,CAAC,KAAa;IACpC,OAAO,UAAU,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;AACjC,CAAC"}
|
package/lib.esm/utils/utf8.d.ts
DELETED
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import type { BytesLike } from "./index.js";
|
|
2
|
-
/**
|
|
3
|
-
* The stanard normalization forms.
|
|
4
|
-
*/
|
|
5
|
-
export type UnicodeNormalizationForm = "NFC" | "NFD" | "NFKC" | "NFKD";
|
|
6
|
-
/**
|
|
7
|
-
* When using the UTF-8 error API the following errors can be intercepted
|
|
8
|
-
* and processed as the %%reason%% passed to the [[Utf8ErrorFunc]].
|
|
9
|
-
*
|
|
10
|
-
* **``"UNEXPECTED_CONTINUE"``** - a continuation byte was present where there
|
|
11
|
-
* was nothing to continue.
|
|
12
|
-
*
|
|
13
|
-
* **``"BAD_PREFIX"``** - an invalid (non-continuation) byte to start a
|
|
14
|
-
* UTF-8 codepoint was found.
|
|
15
|
-
*
|
|
16
|
-
* **``"OVERRUN"``** - the string is too short to process the expected
|
|
17
|
-
* codepoint length.
|
|
18
|
-
*
|
|
19
|
-
* **``"MISSING_CONTINUE"``** - a missing continuation byte was expected but
|
|
20
|
-
* not found. The %%offset%% indicates the index the continuation byte
|
|
21
|
-
* was expected at.
|
|
22
|
-
*
|
|
23
|
-
* **``"OUT_OF_RANGE"``** - the computed code point is outside the range
|
|
24
|
-
* for UTF-8. The %%badCodepoint%% indicates the computed codepoint, which was
|
|
25
|
-
* outside the valid UTF-8 range.
|
|
26
|
-
*
|
|
27
|
-
* **``"UTF16_SURROGATE"``** - the UTF-8 strings contained a UTF-16 surrogate
|
|
28
|
-
* pair. The %%badCodepoint%% is the computed codepoint, which was inside the
|
|
29
|
-
* UTF-16 surrogate range.
|
|
30
|
-
*
|
|
31
|
-
* **``"OVERLONG"``** - the string is an overlong representation. The
|
|
32
|
-
* %%badCodepoint%% indicates the computed codepoint, which has already
|
|
33
|
-
* been bounds checked.
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
* @returns string
|
|
37
|
-
*/
|
|
38
|
-
export type Utf8ErrorReason = "UNEXPECTED_CONTINUE" | "BAD_PREFIX" | "OVERRUN" | "MISSING_CONTINUE" | "OUT_OF_RANGE" | "UTF16_SURROGATE" | "OVERLONG";
|
|
39
|
-
/**
|
|
40
|
-
* A callback that can be used with [[toUtf8String]] to analysis or
|
|
41
|
-
* recovery from invalid UTF-8 data.
|
|
42
|
-
*
|
|
43
|
-
* Parsing UTF-8 data is done through a simple Finite-State Machine (FSM)
|
|
44
|
-
* which calls the ``Utf8ErrorFunc`` if a fault is detected.
|
|
45
|
-
*
|
|
46
|
-
* The %%reason%% indicates where in the FSM execution the fault
|
|
47
|
-
* occurred and the %%offset%% indicates where the input failed.
|
|
48
|
-
*
|
|
49
|
-
* The %%bytes%% represents the raw UTF-8 data that was provided and
|
|
50
|
-
* %%output%% is the current array of UTF-8 code-points, which may
|
|
51
|
-
* be updated by the ``Utf8ErrorFunc``.
|
|
52
|
-
*
|
|
53
|
-
* The value of the %%badCodepoint%% depends on the %%reason%%. See
|
|
54
|
-
* [[Utf8ErrorReason]] for details.
|
|
55
|
-
*
|
|
56
|
-
* The function should return the number of bytes that should be skipped
|
|
57
|
-
* when control resumes to the FSM.
|
|
58
|
-
*/
|
|
59
|
-
export type Utf8ErrorFunc = (reason: Utf8ErrorReason, offset: number, bytes: Uint8Array, output: Array<number>, badCodepoint?: number) => number;
|
|
60
|
-
/**
|
|
61
|
-
* A handful of popular, built-in UTF-8 error handling strategies.
|
|
62
|
-
*
|
|
63
|
-
* **``"error"``** - throws on ANY illegal UTF-8 sequence or
|
|
64
|
-
* non-canonical (overlong) codepoints (this is the default)
|
|
65
|
-
*
|
|
66
|
-
* **``"ignore"``** - silently drops any illegal UTF-8 sequence
|
|
67
|
-
* and accepts non-canonical (overlong) codepoints
|
|
68
|
-
*
|
|
69
|
-
* **``"replace"``** - replace any illegal UTF-8 sequence with the
|
|
70
|
-
* UTF-8 replacement character (i.e. ``"\\ufffd"``) and accepts
|
|
71
|
-
* non-canonical (overlong) codepoints
|
|
72
|
-
*
|
|
73
|
-
* @returns: Record<"error" | "ignore" | "replace", Utf8ErrorFunc>
|
|
74
|
-
*/
|
|
75
|
-
export declare const Utf8ErrorFuncs: Readonly<Record<"error" | "ignore" | "replace", Utf8ErrorFunc>>;
|
|
76
|
-
/**
|
|
77
|
-
* Returns the UTF-8 byte representation of %%str%%.
|
|
78
|
-
*
|
|
79
|
-
* If %%form%% is specified, the string is normalized.
|
|
80
|
-
*/
|
|
81
|
-
export declare function toUtf8Bytes(str: string, form?: UnicodeNormalizationForm): Uint8Array;
|
|
82
|
-
/**
|
|
83
|
-
* Returns the string represented by the UTF-8 data %%bytes%%.
|
|
84
|
-
*
|
|
85
|
-
* When %%onError%% function is specified, it is called on UTF-8
|
|
86
|
-
* errors allowing recovery using the [[Utf8ErrorFunc]] API.
|
|
87
|
-
* (default: [error](Utf8ErrorFuncs))
|
|
88
|
-
*/
|
|
89
|
-
export declare function toUtf8String(bytes: BytesLike, onError?: Utf8ErrorFunc): string;
|
|
90
|
-
/**
|
|
91
|
-
* Returns the UTF-8 code-points for %%str%%.
|
|
92
|
-
*
|
|
93
|
-
* If %%form%% is specified, the string is normalized.
|
|
94
|
-
*/
|
|
95
|
-
export declare function toUtf8CodePoints(str: string, form?: UnicodeNormalizationForm): Array<number>;
|
|
96
|
-
//# sourceMappingURL=utf8.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utf8.d.ts","sourceRoot":"","sources":["../../src.ts/utils/utf8.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAK5C;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC;AAEvE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAM,MAAM,eAAe,GAAG,qBAAqB,GAAG,YAAY,GAAG,SAAS,GAC1E,kBAAkB,GAAG,cAAc,GAAG,iBAAiB,GAAG,UAAU,CAAC;AAGzE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,YAAY,CAAC,EAAE,MAAM,KAAK,MAAM,CAAC;AA6CjJ;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,MAAM,CAAC,OAAO,GAAG,QAAQ,GAAG,SAAS,EAAE,aAAa,CAAC,CAIzF,CAAC;AAsGH;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,wBAAwB,GAAG,UAAU,CAyCpF;AAgBD;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,MAAM,CAE9E;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,wBAAwB,GAAG,KAAK,CAAC,MAAM,CAAC,CAE5F"}
|
package/lib.esm/utils/utf8.js
DELETED
|
@@ -1,221 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Using strings in Ethereum (or any security-basd system) requires
|
|
3
|
-
* additional care. These utilities attempt to mitigate some of the
|
|
4
|
-
* safety issues as well as provide the ability to recover and analyse
|
|
5
|
-
* strings.
|
|
6
|
-
*
|
|
7
|
-
* @_subsection api/utils:Strings and UTF-8 [about-strings]
|
|
8
|
-
*/
|
|
9
|
-
import { getBytes } from "./data.js";
|
|
10
|
-
import { assertArgument, assertNormalize } from "./errors.js";
|
|
11
|
-
function errorFunc(reason, offset, bytes, output, badCodepoint) {
|
|
12
|
-
assertArgument(false, `invalid codepoint at offset ${offset}; ${reason}`, "bytes", bytes);
|
|
13
|
-
}
|
|
14
|
-
function ignoreFunc(reason, offset, bytes, output, badCodepoint) {
|
|
15
|
-
// If there is an invalid prefix (including stray continuation), skip any additional continuation bytes
|
|
16
|
-
if (reason === "BAD_PREFIX" || reason === "UNEXPECTED_CONTINUE") {
|
|
17
|
-
let i = 0;
|
|
18
|
-
for (let o = offset + 1; o < bytes.length; o++) {
|
|
19
|
-
if (bytes[o] >> 6 !== 0x02) {
|
|
20
|
-
break;
|
|
21
|
-
}
|
|
22
|
-
i++;
|
|
23
|
-
}
|
|
24
|
-
return i;
|
|
25
|
-
}
|
|
26
|
-
// This byte runs us past the end of the string, so just jump to the end
|
|
27
|
-
// (but the first byte was read already read and therefore skipped)
|
|
28
|
-
if (reason === "OVERRUN") {
|
|
29
|
-
return bytes.length - offset - 1;
|
|
30
|
-
}
|
|
31
|
-
// Nothing to skip
|
|
32
|
-
return 0;
|
|
33
|
-
}
|
|
34
|
-
function replaceFunc(reason, offset, bytes, output, badCodepoint) {
|
|
35
|
-
// Overlong representations are otherwise "valid" code points; just non-deistingtished
|
|
36
|
-
if (reason === "OVERLONG") {
|
|
37
|
-
assertArgument(typeof (badCodepoint) === "number", "invalid bad code point for replacement", "badCodepoint", badCodepoint);
|
|
38
|
-
output.push(badCodepoint);
|
|
39
|
-
return 0;
|
|
40
|
-
}
|
|
41
|
-
// Put the replacement character into the output
|
|
42
|
-
output.push(0xfffd);
|
|
43
|
-
// Otherwise, process as if ignoring errors
|
|
44
|
-
return ignoreFunc(reason, offset, bytes, output, badCodepoint);
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* A handful of popular, built-in UTF-8 error handling strategies.
|
|
48
|
-
*
|
|
49
|
-
* **``"error"``** - throws on ANY illegal UTF-8 sequence or
|
|
50
|
-
* non-canonical (overlong) codepoints (this is the default)
|
|
51
|
-
*
|
|
52
|
-
* **``"ignore"``** - silently drops any illegal UTF-8 sequence
|
|
53
|
-
* and accepts non-canonical (overlong) codepoints
|
|
54
|
-
*
|
|
55
|
-
* **``"replace"``** - replace any illegal UTF-8 sequence with the
|
|
56
|
-
* UTF-8 replacement character (i.e. ``"\\ufffd"``) and accepts
|
|
57
|
-
* non-canonical (overlong) codepoints
|
|
58
|
-
*
|
|
59
|
-
* @returns: Record<"error" | "ignore" | "replace", Utf8ErrorFunc>
|
|
60
|
-
*/
|
|
61
|
-
export const Utf8ErrorFuncs = Object.freeze({
|
|
62
|
-
error: errorFunc,
|
|
63
|
-
ignore: ignoreFunc,
|
|
64
|
-
replace: replaceFunc
|
|
65
|
-
});
|
|
66
|
-
// http://stackoverflow.com/questions/13356493/decode-utf-8-with-javascript#13691499
|
|
67
|
-
function getUtf8CodePoints(_bytes, onError) {
|
|
68
|
-
if (onError == null) {
|
|
69
|
-
onError = Utf8ErrorFuncs.error;
|
|
70
|
-
}
|
|
71
|
-
const bytes = getBytes(_bytes, "bytes");
|
|
72
|
-
const result = [];
|
|
73
|
-
let i = 0;
|
|
74
|
-
// Invalid bytes are ignored
|
|
75
|
-
while (i < bytes.length) {
|
|
76
|
-
const c = bytes[i++];
|
|
77
|
-
// 0xxx xxxx
|
|
78
|
-
if (c >> 7 === 0) {
|
|
79
|
-
result.push(c);
|
|
80
|
-
continue;
|
|
81
|
-
}
|
|
82
|
-
// Multibyte; how many bytes left for this character?
|
|
83
|
-
let extraLength = null;
|
|
84
|
-
let overlongMask = null;
|
|
85
|
-
// 110x xxxx 10xx xxxx
|
|
86
|
-
if ((c & 0xe0) === 0xc0) {
|
|
87
|
-
extraLength = 1;
|
|
88
|
-
overlongMask = 0x7f;
|
|
89
|
-
// 1110 xxxx 10xx xxxx 10xx xxxx
|
|
90
|
-
}
|
|
91
|
-
else if ((c & 0xf0) === 0xe0) {
|
|
92
|
-
extraLength = 2;
|
|
93
|
-
overlongMask = 0x7ff;
|
|
94
|
-
// 1111 0xxx 10xx xxxx 10xx xxxx 10xx xxxx
|
|
95
|
-
}
|
|
96
|
-
else if ((c & 0xf8) === 0xf0) {
|
|
97
|
-
extraLength = 3;
|
|
98
|
-
overlongMask = 0xffff;
|
|
99
|
-
}
|
|
100
|
-
else {
|
|
101
|
-
if ((c & 0xc0) === 0x80) {
|
|
102
|
-
i += onError("UNEXPECTED_CONTINUE", i - 1, bytes, result);
|
|
103
|
-
}
|
|
104
|
-
else {
|
|
105
|
-
i += onError("BAD_PREFIX", i - 1, bytes, result);
|
|
106
|
-
}
|
|
107
|
-
continue;
|
|
108
|
-
}
|
|
109
|
-
// Do we have enough bytes in our data?
|
|
110
|
-
if (i - 1 + extraLength >= bytes.length) {
|
|
111
|
-
i += onError("OVERRUN", i - 1, bytes, result);
|
|
112
|
-
continue;
|
|
113
|
-
}
|
|
114
|
-
// Remove the length prefix from the char
|
|
115
|
-
let res = c & ((1 << (8 - extraLength - 1)) - 1);
|
|
116
|
-
for (let j = 0; j < extraLength; j++) {
|
|
117
|
-
let nextChar = bytes[i];
|
|
118
|
-
// Invalid continuation byte
|
|
119
|
-
if ((nextChar & 0xc0) != 0x80) {
|
|
120
|
-
i += onError("MISSING_CONTINUE", i, bytes, result);
|
|
121
|
-
res = null;
|
|
122
|
-
break;
|
|
123
|
-
}
|
|
124
|
-
;
|
|
125
|
-
res = (res << 6) | (nextChar & 0x3f);
|
|
126
|
-
i++;
|
|
127
|
-
}
|
|
128
|
-
// See above loop for invalid continuation byte
|
|
129
|
-
if (res === null) {
|
|
130
|
-
continue;
|
|
131
|
-
}
|
|
132
|
-
// Maximum code point
|
|
133
|
-
if (res > 0x10ffff) {
|
|
134
|
-
i += onError("OUT_OF_RANGE", i - 1 - extraLength, bytes, result, res);
|
|
135
|
-
continue;
|
|
136
|
-
}
|
|
137
|
-
// Reserved for UTF-16 surrogate halves
|
|
138
|
-
if (res >= 0xd800 && res <= 0xdfff) {
|
|
139
|
-
i += onError("UTF16_SURROGATE", i - 1 - extraLength, bytes, result, res);
|
|
140
|
-
continue;
|
|
141
|
-
}
|
|
142
|
-
// Check for overlong sequences (more bytes than needed)
|
|
143
|
-
if (res <= overlongMask) {
|
|
144
|
-
i += onError("OVERLONG", i - 1 - extraLength, bytes, result, res);
|
|
145
|
-
continue;
|
|
146
|
-
}
|
|
147
|
-
result.push(res);
|
|
148
|
-
}
|
|
149
|
-
return result;
|
|
150
|
-
}
|
|
151
|
-
// http://stackoverflow.com/questions/18729405/how-to-convert-utf8-string-to-byte-array
|
|
152
|
-
/**
|
|
153
|
-
* Returns the UTF-8 byte representation of %%str%%.
|
|
154
|
-
*
|
|
155
|
-
* If %%form%% is specified, the string is normalized.
|
|
156
|
-
*/
|
|
157
|
-
export function toUtf8Bytes(str, form) {
|
|
158
|
-
assertArgument(typeof (str) === "string", "invalid string value", "str", str);
|
|
159
|
-
if (form != null) {
|
|
160
|
-
assertNormalize(form);
|
|
161
|
-
str = str.normalize(form);
|
|
162
|
-
}
|
|
163
|
-
let result = [];
|
|
164
|
-
for (let i = 0; i < str.length; i++) {
|
|
165
|
-
const c = str.charCodeAt(i);
|
|
166
|
-
if (c < 0x80) {
|
|
167
|
-
result.push(c);
|
|
168
|
-
}
|
|
169
|
-
else if (c < 0x800) {
|
|
170
|
-
result.push((c >> 6) | 0xc0);
|
|
171
|
-
result.push((c & 0x3f) | 0x80);
|
|
172
|
-
}
|
|
173
|
-
else if ((c & 0xfc00) == 0xd800) {
|
|
174
|
-
i++;
|
|
175
|
-
const c2 = str.charCodeAt(i);
|
|
176
|
-
assertArgument(i < str.length && ((c2 & 0xfc00) === 0xdc00), "invalid surrogate pair", "str", str);
|
|
177
|
-
// Surrogate Pair
|
|
178
|
-
const pair = 0x10000 + ((c & 0x03ff) << 10) + (c2 & 0x03ff);
|
|
179
|
-
result.push((pair >> 18) | 0xf0);
|
|
180
|
-
result.push(((pair >> 12) & 0x3f) | 0x80);
|
|
181
|
-
result.push(((pair >> 6) & 0x3f) | 0x80);
|
|
182
|
-
result.push((pair & 0x3f) | 0x80);
|
|
183
|
-
}
|
|
184
|
-
else {
|
|
185
|
-
result.push((c >> 12) | 0xe0);
|
|
186
|
-
result.push(((c >> 6) & 0x3f) | 0x80);
|
|
187
|
-
result.push((c & 0x3f) | 0x80);
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
return new Uint8Array(result);
|
|
191
|
-
}
|
|
192
|
-
;
|
|
193
|
-
//export
|
|
194
|
-
function _toUtf8String(codePoints) {
|
|
195
|
-
return codePoints.map((codePoint) => {
|
|
196
|
-
if (codePoint <= 0xffff) {
|
|
197
|
-
return String.fromCharCode(codePoint);
|
|
198
|
-
}
|
|
199
|
-
codePoint -= 0x10000;
|
|
200
|
-
return String.fromCharCode((((codePoint >> 10) & 0x3ff) + 0xd800), ((codePoint & 0x3ff) + 0xdc00));
|
|
201
|
-
}).join("");
|
|
202
|
-
}
|
|
203
|
-
/**
|
|
204
|
-
* Returns the string represented by the UTF-8 data %%bytes%%.
|
|
205
|
-
*
|
|
206
|
-
* When %%onError%% function is specified, it is called on UTF-8
|
|
207
|
-
* errors allowing recovery using the [[Utf8ErrorFunc]] API.
|
|
208
|
-
* (default: [error](Utf8ErrorFuncs))
|
|
209
|
-
*/
|
|
210
|
-
export function toUtf8String(bytes, onError) {
|
|
211
|
-
return _toUtf8String(getUtf8CodePoints(bytes, onError));
|
|
212
|
-
}
|
|
213
|
-
/**
|
|
214
|
-
* Returns the UTF-8 code-points for %%str%%.
|
|
215
|
-
*
|
|
216
|
-
* If %%form%% is specified, the string is normalized.
|
|
217
|
-
*/
|
|
218
|
-
export function toUtf8CodePoints(str, form) {
|
|
219
|
-
return getUtf8CodePoints(toUtf8Bytes(str, form));
|
|
220
|
-
}
|
|
221
|
-
//# sourceMappingURL=utf8.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utf8.js","sourceRoot":"","sources":["../../src.ts/utils/utf8.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAuE9D,SAAS,SAAS,CAAC,MAAuB,EAAE,MAAc,EAAE,KAAiB,EAAE,MAAqB,EAAE,YAAqB;IACvH,cAAc,CAAC,KAAK,EAAE,+BAAgC,MAAO,KAAM,MAAO,EAAE,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;AAClG,CAAC;AAED,SAAS,UAAU,CAAC,MAAuB,EAAE,MAAc,EAAE,KAAiB,EAAE,MAAqB,EAAE,YAAqB;IAExH,uGAAuG;IACvG,IAAI,MAAM,KAAK,YAAY,IAAI,MAAM,KAAK,qBAAqB,EAAE;QAC7D,IAAI,CAAC,GAAG,CAAC,CAAC;QACV,KAAK,IAAI,CAAC,GAAG,MAAM,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YAC5C,IAAI,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,IAAI,EAAE;gBAAE,MAAM;aAAE;YACtC,CAAC,EAAE,CAAC;SACP;QACD,OAAO,CAAC,CAAC;KACZ;IAED,wEAAwE;IACxE,mEAAmE;IACnE,IAAI,MAAM,KAAK,SAAS,E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,GAAG,MAAM,CAAC,CACjC,CAAC;IACN,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAChB,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,YAAY,CAAC,KAAgB,EAAE,OAAuB;IAClE,OAAO,aAAa,CAAC,iBAAiB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC;AAC5D,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,gBAAgB,CAAC,GAAW,EAAE,IAA+B;IACzE,OAAO,iBAAiB,CAAC,WAAW,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC;AACrD,CAAC"}
|
package/lib.esm/utils/uuid.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { BytesLike } from "./index.js";
|
|
2
|
-
/**
|
|
3
|
-
* Returns the version 4 [[link-uuid]] for the %%randomBytes%%.
|
|
4
|
-
*
|
|
5
|
-
* @see: https://www.ietf.org/rfc/rfc4122.txt (Section 4.4)
|
|
6
|
-
*/
|
|
7
|
-
export declare function uuidV4(randomBytes: BytesLike): string;
|
|
8
|
-
//# sourceMappingURL=uuid.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"uuid.d.ts","sourceRoot":"","sources":["../../src.ts/utils/uuid.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,WAAW,EAAE,SAAS,GAAG,MAAM,CAqBrD"}
|