@aeternity/aepp-sdk 12.1.3 → 13.0.0-alpha.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/bin/aesophia_cli +0 -0
- package/dist/aepp-sdk.browser-script.js +1 -1
- package/dist/aepp-sdk.browser-script.js.map +1 -1
- package/dist/aepp-sdk.browser.js +1 -1
- package/dist/aepp-sdk.browser.js.map +1 -1
- package/dist/aepp-sdk.js +12031 -11231
- package/dist/aepp-sdk.js.map +1 -1
- package/es/AeSdk.d.ts +7 -3
- package/es/AeSdk.mjs +17 -22
- package/es/AeSdk.mjs.map +1 -1
- package/es/AeSdkAepp.d.ts +6 -5
- package/es/AeSdkAepp.mjs +7 -30
- package/es/AeSdkAepp.mjs.map +1 -1
- package/es/AeSdkBase.d.ts +18 -140
- package/es/AeSdkBase.mjs +30 -184
- package/es/AeSdkBase.mjs.map +1 -1
- package/es/AeSdkMethods.d.ts +123 -0
- package/es/AeSdkMethods.mjs +122 -0
- package/es/AeSdkMethods.mjs.map +1 -0
- package/es/AeSdkWallet.d.ts +7 -21
- package/es/AeSdkWallet.mjs +38 -86
- package/es/AeSdkWallet.mjs.map +1 -1
- package/es/Node.d.ts +11 -15
- package/es/Node.mjs +35 -48
- package/es/Node.mjs.map +1 -1
- package/es/account/Base.d.ts +24 -40
- package/es/account/Base.mjs +1 -101
- package/es/account/Base.mjs.map +1 -1
- package/es/account/Generalized.d.ts +16 -0
- package/es/account/Generalized.mjs +113 -0
- package/es/account/Generalized.mjs.map +1 -0
- package/es/account/Ledger.d.ts +28 -0
- package/es/account/Ledger.mjs +102 -0
- package/es/account/Ledger.mjs.map +1 -0
- package/es/account/LedgerFactory.d.ts +39 -0
- package/es/account/LedgerFactory.mjs +81 -0
- package/es/account/LedgerFactory.mjs.map +1 -0
- package/es/account/Memory.d.ts +13 -17
- package/es/account/Memory.mjs +43 -64
- package/es/account/Memory.mjs.map +1 -1
- package/es/account/Rpc.d.ts +6 -8
- package/es/account/Rpc.mjs +14 -32
- package/es/account/Rpc.mjs.map +1 -1
- package/es/aens.d.ts +4 -4
- package/es/aens.mjs +46 -41
- package/es/aens.mjs.map +1 -1
- package/es/aepp-wallet-communication/connection/Browser.mjs +9 -13
- package/es/aepp-wallet-communication/connection/Browser.mjs.map +1 -1
- package/es/aepp-wallet-communication/connection/BrowserRuntime.d.ts +1 -0
- package/es/aepp-wallet-communication/connection/BrowserRuntime.mjs +22 -11
- package/es/aepp-wallet-communication/connection/BrowserRuntime.mjs.map +1 -1
- package/es/aepp-wallet-communication/connection/BrowserWindowMessage.d.ts +1 -1
- package/es/aepp-wallet-communication/connection/BrowserWindowMessage.mjs +0 -31
- package/es/aepp-wallet-communication/connection/BrowserWindowMessage.mjs.map +1 -1
- package/es/aepp-wallet-communication/connection-proxy.mjs.map +1 -1
- package/es/aepp-wallet-communication/rpc/RpcClient.d.ts +3 -3
- package/es/aepp-wallet-communication/rpc/RpcClient.mjs +5 -42
- package/es/aepp-wallet-communication/rpc/RpcClient.mjs.map +1 -1
- package/es/aepp-wallet-communication/rpc/types.d.ts +7 -1
- package/es/aepp-wallet-communication/rpc/types.mjs.map +1 -1
- package/es/aepp-wallet-communication/schema.mjs +14 -68
- package/es/aepp-wallet-communication/schema.mjs.map +1 -1
- package/es/aepp-wallet-communication/wallet-detector.mjs +0 -3
- package/es/aepp-wallet-communication/wallet-detector.mjs.map +1 -1
- package/es/apis/compiler/compiler.d.ts +23 -29
- package/es/apis/compiler/compiler.mjs +128 -189
- package/es/apis/compiler/compiler.mjs.map +1 -1
- package/es/apis/compiler/index.mjs.map +1 -1
- package/es/apis/compiler/models/index.d.ts +82 -135
- package/es/apis/compiler/models/index.mjs +1 -47
- package/es/apis/compiler/models/index.mjs.map +1 -1
- package/es/apis/compiler/models/mappers.d.ts +8 -8
- package/es/apis/compiler/models/mappers.mjs +165 -183
- package/es/apis/compiler/models/mappers.mjs.map +1 -1
- package/es/apis/compiler/models/parameters.d.ts +0 -1
- package/es/apis/compiler/models/parameters.mjs +5 -9
- package/es/apis/compiler/models/parameters.mjs.map +1 -1
- package/es/apis/node/index.mjs.map +1 -1
- package/es/apis/node/models/index.d.ts +48 -48
- package/es/apis/node/models/mappers.mjs +12 -6
- package/es/apis/node/models/mappers.mjs.map +1 -1
- package/es/apis/node/models/parameters.mjs.map +1 -1
- package/es/apis/node/node.mjs +43 -84
- package/es/apis/node/node.mjs.map +1 -1
- package/es/chain.d.ts +10 -2
- package/es/chain.mjs +37 -59
- package/es/chain.mjs.map +1 -1
- package/es/channel/Base.d.ts +200 -0
- package/es/channel/Base.mjs +293 -0
- package/es/channel/Base.mjs.map +1 -0
- package/es/channel/Contract.d.ts +248 -0
- package/es/channel/Contract.mjs +420 -0
- package/es/channel/Contract.mjs.map +1 -0
- package/es/channel/Spend.d.ts +219 -0
- package/es/channel/Spend.mjs +385 -0
- package/es/channel/Spend.mjs.map +1 -0
- package/es/channel/handlers.d.ts +8 -21
- package/es/channel/handlers.mjs +151 -899
- package/es/channel/handlers.mjs.map +1 -1
- package/es/channel/internal.d.ts +27 -21
- package/es/channel/internal.mjs +101 -191
- package/es/channel/internal.mjs.map +1 -1
- package/es/contract/Contract.d.ts +210 -0
- package/es/contract/Contract.mjs +551 -0
- package/es/contract/Contract.mjs.map +1 -0
- package/es/contract/compiler/Base.d.ts +81 -0
- package/es/contract/compiler/Base.mjs +5 -0
- package/es/contract/compiler/Base.mjs.map +1 -0
- package/es/contract/compiler/Cli.d.ts +23 -0
- package/es/contract/compiler/Cli.mjs +155 -0
- package/es/contract/compiler/Cli.mjs.map +1 -0
- package/es/contract/compiler/Http.d.ts +32 -0
- package/es/contract/compiler/Http.mjs +118 -0
- package/es/contract/compiler/Http.mjs.map +1 -0
- package/es/contract/compiler/HttpNode.d.ts +17 -0
- package/es/contract/compiler/HttpNode.mjs +26 -0
- package/es/contract/compiler/HttpNode.mjs.map +1 -0
- package/es/contract/compiler/getFileSystem.d.ts +6 -0
- package/es/contract/compiler/getFileSystem.mjs +40 -0
- package/es/contract/compiler/getFileSystem.mjs.map +1 -0
- package/es/contract/ga.d.ts +9 -34
- package/es/contract/ga.mjs +29 -112
- package/es/contract/ga.mjs.map +1 -1
- package/es/index-browser.d.ts +39 -0
- package/es/index-browser.mjs +55 -0
- package/es/index-browser.mjs.map +1 -0
- package/es/index.d.ts +4 -35
- package/es/index.mjs +4 -51
- package/es/index.mjs.map +1 -1
- package/es/oracle.d.ts +5 -5
- package/es/oracle.mjs +34 -40
- package/es/oracle.mjs.map +1 -1
- package/es/spend.d.ts +3 -3
- package/es/spend.mjs +18 -23
- package/es/spend.mjs.map +1 -1
- package/es/tx/builder/constants.d.ts +30 -2
- package/es/tx/builder/constants.mjs +43 -14
- package/es/tx/builder/constants.mjs.map +1 -1
- package/es/tx/builder/field-types/abi-version.d.ts +10 -0
- package/es/tx/builder/field-types/abi-version.mjs +20 -0
- package/es/tx/builder/field-types/abi-version.mjs.map +1 -0
- package/es/tx/builder/field-types/address.d.ts +14 -0
- package/es/tx/builder/field-types/address.mjs +51 -0
- package/es/tx/builder/field-types/address.mjs.map +1 -0
- package/es/tx/builder/field-types/array.d.ts +7 -0
- package/es/tx/builder/field-types/array.mjs +11 -0
- package/es/tx/builder/field-types/array.mjs.map +1 -0
- package/es/tx/builder/field-types/boolean.d.ts +6 -0
- package/es/tx/builder/field-types/boolean.mjs +13 -0
- package/es/tx/builder/field-types/boolean.mjs.map +1 -0
- package/es/tx/builder/field-types/coin-amount.d.ts +2 -3
- package/es/tx/builder/field-types/coin-amount.mjs +4 -12
- package/es/tx/builder/field-types/coin-amount.mjs.map +1 -1
- package/es/tx/builder/field-types/ct-version.d.ts +30 -0
- package/es/tx/builder/field-types/ct-version.mjs +48 -0
- package/es/tx/builder/field-types/ct-version.mjs.map +1 -0
- package/es/tx/builder/field-types/deposit.d.ts +1 -2
- package/es/tx/builder/field-types/deposit.mjs +2 -4
- package/es/tx/builder/field-types/deposit.mjs.map +1 -1
- package/es/tx/builder/field-types/encoded.d.ts +6 -0
- package/es/tx/builder/field-types/encoded.mjs +21 -0
- package/es/tx/builder/field-types/encoded.mjs.map +1 -0
- package/es/tx/builder/field-types/entry.d.ts +11 -0
- package/es/tx/builder/field-types/entry.mjs +31 -0
- package/es/tx/builder/field-types/entry.mjs.map +1 -0
- package/es/tx/builder/field-types/enumeration.d.ts +7 -0
- package/es/tx/builder/field-types/enumeration.mjs +30 -0
- package/es/tx/builder/field-types/enumeration.mjs.map +1 -0
- package/es/tx/builder/field-types/fee.d.ts +10 -15
- package/es/tx/builder/field-types/fee.mjs +31 -43
- package/es/tx/builder/field-types/fee.mjs.map +1 -1
- package/es/tx/builder/field-types/field.mjs +0 -2
- package/es/tx/builder/field-types/field.mjs.map +1 -1
- package/es/tx/builder/field-types/gas-limit.d.ts +5 -2
- package/es/tx/builder/field-types/gas-limit.mjs +12 -14
- package/es/tx/builder/field-types/gas-limit.mjs.map +1 -1
- package/es/tx/builder/field-types/gas-price.d.ts +1 -2
- package/es/tx/builder/field-types/gas-price.mjs +3 -7
- package/es/tx/builder/field-types/gas-price.mjs.map +1 -1
- package/es/tx/builder/field-types/index.d.ts +80 -30
- package/es/tx/builder/field-types/index.mjs +34 -9
- package/es/tx/builder/field-types/index.mjs.map +1 -1
- package/es/tx/builder/field-types/mptree.d.ts +37 -0
- package/es/tx/builder/field-types/mptree.mjs +268 -0
- package/es/tx/builder/field-types/mptree.mjs.map +1 -0
- package/es/tx/builder/field-types/name-fee.d.ts +1 -3
- package/es/tx/builder/field-types/name-fee.mjs +3 -5
- package/es/tx/builder/field-types/name-fee.mjs.map +1 -1
- package/es/tx/builder/field-types/name-id.d.ts +1 -4
- package/es/tx/builder/field-types/name-id.mjs +5 -10
- package/es/tx/builder/field-types/name-id.mjs.map +1 -1
- package/es/tx/builder/field-types/name.mjs +0 -2
- package/es/tx/builder/field-types/name.mjs.map +1 -1
- package/es/tx/builder/field-types/pointers.d.ts +23 -0
- package/es/tx/builder/field-types/pointers.mjs +36 -0
- package/es/tx/builder/field-types/pointers.mjs.map +1 -0
- package/es/tx/builder/field-types/raw.d.ts +6 -0
- package/es/tx/builder/field-types/raw.mjs +13 -0
- package/es/tx/builder/field-types/raw.mjs.map +1 -0
- package/es/tx/builder/field-types/short-u-int-const.d.ts +5 -0
- package/es/tx/builder/field-types/short-u-int-const.mjs +16 -0
- package/es/tx/builder/field-types/short-u-int-const.mjs.map +1 -0
- package/es/tx/builder/field-types/short-u-int.mjs +0 -2
- package/es/tx/builder/field-types/short-u-int.mjs.map +1 -1
- package/es/tx/builder/field-types/string.d.ts +6 -0
- package/es/tx/builder/field-types/string.mjs +10 -0
- package/es/tx/builder/field-types/string.mjs.map +1 -0
- package/es/tx/builder/field-types/u-int.d.ts +1 -2
- package/es/tx/builder/field-types/u-int.mjs +3 -4
- package/es/tx/builder/field-types/u-int.mjs.map +1 -1
- package/es/tx/builder/helpers.d.ts +2 -32
- package/es/tx/builder/helpers.mjs +19 -71
- package/es/tx/builder/helpers.mjs.map +1 -1
- package/es/tx/builder/index.d.ts +11 -49
- package/es/tx/builder/index.mjs +57 -337
- package/es/tx/builder/index.mjs.map +1 -1
- package/es/tx/builder/schema.d.ts +2367 -667
- package/es/tx/builder/schema.mjs +70 -145
- package/es/tx/builder/schema.mjs.map +1 -1
- package/es/tx/index.d.ts +4 -49
- package/es/tx/index.mjs +38 -112
- package/es/tx/index.mjs.map +1 -1
- package/es/tx/validator.d.ts +4 -6
- package/es/tx/validator.mjs +104 -90
- package/es/tx/validator.mjs.map +1 -1
- package/es/typings/{@aeternity__argon2-browser → @aeternity__aepp-calldata}/index.d.mjs +0 -0
- package/es/typings/@aeternity__aepp-calldata/index.d.mjs.map +1 -0
- package/es/utils/amount-formatter.mjs +4 -10
- package/es/utils/amount-formatter.mjs.map +1 -1
- package/es/utils/autorest.d.ts +1 -0
- package/es/utils/autorest.mjs +17 -19
- package/es/utils/autorest.mjs.map +1 -1
- package/es/utils/bignumber.mjs +4 -7
- package/es/utils/bignumber.mjs.map +1 -1
- package/es/utils/bytes.d.ts +0 -17
- package/es/utils/bytes.mjs +6 -35
- package/es/utils/bytes.mjs.map +1 -1
- package/es/utils/crypto.d.ts +15 -8
- package/es/utils/crypto.mjs +40 -40
- package/es/utils/crypto.mjs.map +1 -1
- package/es/utils/encoder-types.d.ts +28 -28
- package/es/utils/encoder-types.mjs +0 -1
- package/es/utils/encoder-types.mjs.map +1 -1
- package/es/utils/encoder.d.ts +0 -1
- package/es/utils/encoder.mjs +7 -15
- package/es/utils/encoder.mjs.map +1 -1
- package/es/utils/errors.d.ts +15 -14
- package/es/utils/errors.mjs +86 -172
- package/es/utils/errors.mjs.map +1 -1
- package/es/utils/hd-wallet.d.ts +27 -19
- package/es/utils/hd-wallet.mjs +42 -26
- package/es/utils/hd-wallet.mjs.map +1 -1
- package/es/utils/json-big.mjs +0 -8
- package/es/utils/json-big.mjs.map +1 -1
- package/es/utils/keystore.d.ts +2 -0
- package/es/utils/keystore.mjs +37 -36
- package/es/utils/keystore.mjs.map +1 -1
- package/es/utils/other.d.ts +4 -2
- package/es/utils/other.mjs +11 -7
- package/es/utils/other.mjs.map +1 -1
- package/es/utils/semver-satisfies.mjs +0 -3
- package/es/utils/semver-satisfies.mjs.map +1 -1
- package/es/utils/string.d.ts +0 -12
- package/es/utils/string.mjs +1 -21
- package/es/utils/string.mjs.map +1 -1
- package/package.json +98 -51
- package/src/AeSdk.ts +15 -11
- package/src/AeSdkAepp.ts +9 -7
- package/src/AeSdkBase.ts +31 -202
- package/src/AeSdkMethods.ts +169 -0
- package/src/AeSdkWallet.ts +16 -47
- package/src/Node.ts +17 -18
- package/src/account/Base.ts +29 -75
- package/src/account/Generalized.ts +98 -0
- package/src/account/Ledger.ts +131 -0
- package/src/account/LedgerFactory.ts +86 -0
- package/src/account/Memory.ts +46 -60
- package/src/account/Rpc.ts +17 -26
- package/src/aens.ts +13 -11
- package/src/aepp-wallet-communication/connection/BrowserRuntime.ts +21 -9
- package/src/aepp-wallet-communication/connection/BrowserWindowMessage.ts +3 -3
- package/src/aepp-wallet-communication/rpc/RpcClient.ts +4 -4
- package/src/aepp-wallet-communication/rpc/types.ts +11 -1
- package/src/aepp-wallet-communication/schema.ts +18 -18
- package/src/apis/compiler/code-model-v4.yaml +681 -888
- package/src/apis/compiler/compiler.ts +113 -154
- package/src/apis/compiler/models/index.ts +80 -140
- package/src/apis/compiler/models/mappers.ts +165 -183
- package/src/apis/compiler/models/parameters.ts +6 -12
- package/src/chain.ts +11 -6
- package/src/channel/Base.ts +335 -0
- package/src/channel/Contract.ts +488 -0
- package/src/channel/Spend.ts +408 -0
- package/src/channel/handlers.ts +164 -582
- package/src/channel/internal.ts +114 -143
- package/src/contract/Contract.ts +610 -0
- package/src/contract/compiler/Base.ts +94 -0
- package/src/contract/compiler/Cli.ts +134 -0
- package/src/contract/compiler/Http.ts +124 -0
- package/src/contract/compiler/HttpNode.ts +26 -0
- package/src/contract/compiler/getFileSystem.ts +42 -0
- package/src/contract/ga.ts +23 -106
- package/src/index-browser.ts +58 -0
- package/src/index.ts +4 -55
- package/src/oracle.ts +8 -8
- package/src/spend.ts +6 -14
- package/src/tx/builder/constants.ts +33 -3
- package/src/tx/builder/field-types/abi-version.ts +21 -0
- package/src/tx/builder/field-types/address.ts +62 -0
- package/src/tx/builder/field-types/array.ts +19 -0
- package/src/tx/builder/field-types/boolean.ts +9 -0
- package/src/tx/builder/field-types/coin-amount.ts +4 -9
- package/src/tx/builder/field-types/ct-version.ts +50 -0
- package/src/tx/builder/field-types/deposit.ts +1 -1
- package/src/tx/builder/field-types/encoded.ts +27 -0
- package/src/tx/builder/field-types/entry.ts +31 -0
- package/src/tx/builder/field-types/enumeration.ts +32 -0
- package/src/tx/builder/field-types/fee.ts +39 -21
- package/src/tx/builder/field-types/gas-limit.ts +13 -8
- package/src/tx/builder/field-types/gas-price.ts +0 -2
- package/src/tx/builder/field-types/index.ts +54 -15
- package/src/tx/builder/field-types/mptree.ts +242 -0
- package/src/tx/builder/field-types/name-fee.ts +2 -3
- package/src/tx/builder/field-types/name-id.ts +7 -10
- package/src/tx/builder/field-types/pointers.ts +41 -0
- package/src/tx/builder/field-types/raw.ts +9 -0
- package/src/tx/builder/field-types/short-u-int-const.ts +20 -0
- package/src/tx/builder/field-types/string.ts +11 -0
- package/src/tx/builder/field-types/u-int.ts +4 -5
- package/src/tx/builder/helpers.ts +10 -60
- package/src/tx/builder/index.ts +65 -308
- package/src/tx/builder/schema.ts +280 -341
- package/src/tx/index.ts +40 -103
- package/src/tx/validator.ts +91 -96
- package/src/typings/@aeternity__aepp-calldata/index.d.ts +20 -0
- package/src/utils/autorest.ts +16 -1
- package/src/utils/bytes.ts +6 -34
- package/src/utils/crypto.ts +23 -16
- package/src/utils/encoder.ts +0 -1
- package/src/utils/errors.ts +22 -25
- package/src/utils/hd-wallet.ts +30 -9
- package/src/utils/keystore.ts +24 -21
- package/src/utils/other.ts +16 -1
- package/src/utils/string.ts +0 -20
- package/types-legacy/ts4.2/AeSdk.d.ts +41 -0
- package/types-legacy/ts4.2/AeSdkAepp.d.ts +71 -0
- package/types-legacy/ts4.2/AeSdkBase.d.ts +91 -0
- package/types-legacy/ts4.2/AeSdkMethods.d.ts +140 -0
- package/types-legacy/ts4.2/AeSdkWallet.d.ts +90 -0
- package/types-legacy/ts4.2/Node.d.ts +78 -0
- package/types-legacy/ts4.2/account/Base.d.ts +52 -0
- package/types-legacy/ts4.2/account/Generalized.d.ts +16 -0
- package/types-legacy/ts4.2/account/Ledger.d.ts +28 -0
- package/types-legacy/ts4.2/account/LedgerFactory.d.ts +39 -0
- package/types-legacy/ts4.2/account/Memory.d.ts +22 -0
- package/types-legacy/ts4.2/account/Rpc.d.ts +25 -0
- package/types-legacy/ts4.2/aens.d.ts +222 -0
- package/types-legacy/ts4.2/aepp-wallet-communication/connection/Browser.d.ts +33 -0
- package/types-legacy/ts4.2/aepp-wallet-communication/connection/BrowserRuntime.d.ts +19 -0
- package/types-legacy/ts4.2/aepp-wallet-communication/connection/BrowserWindowMessage.d.ts +36 -0
- package/types-legacy/ts4.2/aepp-wallet-communication/connection-proxy.d.ts +11 -0
- package/types-legacy/ts4.2/aepp-wallet-communication/rpc/RpcClient.d.ts +34 -0
- package/types-legacy/ts4.2/aepp-wallet-communication/rpc/types.d.ts +83 -0
- package/types-legacy/ts4.2/aepp-wallet-communication/schema.d.ts +133 -0
- package/types-legacy/ts4.2/aepp-wallet-communication/wallet-detector.d.ts +25 -0
- package/types-legacy/ts4.2/apis/compiler/compiler.d.ts +86 -0
- package/types-legacy/ts4.2/apis/compiler/index.d.ts +2 -0
- package/types-legacy/ts4.2/apis/compiler/models/index.d.ts +195 -0
- package/types-legacy/ts4.2/apis/compiler/models/mappers.d.ts +23 -0
- package/types-legacy/ts4.2/apis/compiler/models/parameters.d.ts +12 -0
- package/types-legacy/ts4.2/apis/node/index.d.ts +2 -0
- package/types-legacy/ts4.2/apis/node/models/index.d.ts +1065 -0
- package/types-legacy/ts4.2/apis/node/models/mappers.d.ts +95 -0
- package/types-legacy/ts4.2/apis/node/models/parameters.d.ts +17 -0
- package/types-legacy/ts4.2/apis/node/node.d.ts +215 -0
- package/types-legacy/ts4.2/chain.d.ts +256 -0
- package/types-legacy/ts4.2/channel/Base.d.ts +199 -0
- package/types-legacy/ts4.2/channel/Contract.d.ts +248 -0
- package/types-legacy/ts4.2/channel/Spend.d.ts +219 -0
- package/types-legacy/ts4.2/channel/handlers.d.ts +21 -0
- package/types-legacy/ts4.2/channel/internal.d.ts +107 -0
- package/types-legacy/ts4.2/contract/Contract.d.ts +212 -0
- package/types-legacy/ts4.2/contract/compiler/Base.d.ts +81 -0
- package/types-legacy/ts4.2/contract/compiler/Cli.d.ts +23 -0
- package/types-legacy/ts4.2/contract/compiler/Http.d.ts +32 -0
- package/types-legacy/ts4.2/contract/compiler/HttpNode.d.ts +17 -0
- package/types-legacy/ts4.2/contract/compiler/getFileSystem.d.ts +6 -0
- package/types-legacy/ts4.2/contract/ga.d.ts +44 -0
- package/types-legacy/ts4.2/globals.d.ts +16 -0
- package/types-legacy/ts4.2/index-browser.d.ts +39 -0
- package/types-legacy/ts4.2/index.d.ts +5 -0
- package/types-legacy/ts4.2/oracle.d.ts +161 -0
- package/types-legacy/ts4.2/spend.d.ts +62 -0
- package/types-legacy/ts4.2/tx/builder/constants.d.ts +98 -0
- package/types-legacy/ts4.2/tx/builder/field-types/abi-version.d.ts +10 -0
- package/types-legacy/ts4.2/tx/builder/field-types/address.d.ts +21 -0
- package/types-legacy/ts4.2/tx/builder/field-types/array.d.ts +7 -0
- package/types-legacy/ts4.2/tx/builder/field-types/boolean.d.ts +6 -0
- package/types-legacy/ts4.2/tx/builder/field-types/coin-amount.d.ts +12 -0
- package/types-legacy/ts4.2/tx/builder/field-types/ct-version.d.ts +42 -0
- package/types-legacy/ts4.2/tx/builder/field-types/deposit.d.ts +14 -0
- package/types-legacy/ts4.2/tx/builder/field-types/encoded.d.ts +6 -0
- package/types-legacy/ts4.2/tx/builder/field-types/entry.d.ts +11 -0
- package/types-legacy/ts4.2/tx/builder/field-types/enumeration.d.ts +7 -0
- package/types-legacy/ts4.2/tx/builder/field-types/fee.d.ts +20 -0
- package/types-legacy/ts4.2/tx/builder/field-types/field.d.ts +6 -0
- package/types-legacy/ts4.2/tx/builder/field-types/gas-limit.d.ts +15 -0
- package/types-legacy/ts4.2/tx/builder/field-types/gas-price.d.ts +7 -0
- package/types-legacy/ts4.2/tx/builder/field-types/index.d.ts +129 -0
- package/types-legacy/ts4.2/tx/builder/field-types/mptree.d.ts +43 -0
- package/types-legacy/ts4.2/tx/builder/field-types/name-fee.d.ts +18 -0
- package/types-legacy/ts4.2/tx/builder/field-types/name-id.d.ts +11 -0
- package/types-legacy/ts4.2/tx/builder/field-types/name.d.ts +13 -0
- package/types-legacy/ts4.2/tx/builder/field-types/pointers.d.ts +26 -0
- package/types-legacy/ts4.2/tx/builder/field-types/raw.d.ts +6 -0
- package/types-legacy/ts4.2/tx/builder/field-types/short-u-int-const.d.ts +5 -0
- package/types-legacy/ts4.2/tx/builder/field-types/short-u-int.d.ts +6 -0
- package/types-legacy/ts4.2/tx/builder/field-types/string.d.ts +6 -0
- package/types-legacy/ts4.2/tx/builder/field-types/u-int.d.ts +7 -0
- package/types-legacy/ts4.2/tx/builder/helpers.d.ts +112 -0
- package/types-legacy/ts4.2/tx/builder/index.d.ts +50 -0
- package/types-legacy/ts4.2/tx/builder/schema.d.ts +4675 -0
- package/types-legacy/ts4.2/tx/index.d.ts +19 -0
- package/types-legacy/ts4.2/tx/validator.d.ts +18 -0
- package/types-legacy/ts4.2/utils/amount-formatter.d.ts +42 -0
- package/types-legacy/ts4.2/utils/autorest.d.ts +7 -0
- package/types-legacy/ts4.2/utils/bignumber.d.ts +13 -0
- package/types-legacy/ts4.2/utils/bytes.d.ts +9 -0
- package/types-legacy/ts4.2/utils/crypto.d.ts +95 -0
- package/types-legacy/ts4.2/utils/encoder-types.d.ts +61 -0
- package/types-legacy/ts4.2/utils/encoder.d.ts +24 -0
- package/types-legacy/ts4.2/utils/errors.d.ts +475 -0
- package/types-legacy/ts4.2/utils/hd-wallet.d.ts +65 -0
- package/types-legacy/ts4.2/utils/json-big.d.ts +5 -0
- package/types-legacy/ts4.2/utils/keystore.d.ts +53 -0
- package/types-legacy/ts4.2/utils/other.d.ts +31 -0
- package/types-legacy/ts4.2/utils/semver-satisfies.d.ts +1 -0
- package/types-legacy/ts4.2/utils/string.d.ts +12 -0
- package/types-legacy/ts4.5/AeSdk.d.ts +41 -0
- package/types-legacy/ts4.5/AeSdkAepp.d.ts +71 -0
- package/types-legacy/ts4.5/AeSdkBase.d.ts +91 -0
- package/types-legacy/ts4.5/AeSdkMethods.d.ts +140 -0
- package/types-legacy/ts4.5/AeSdkWallet.d.ts +90 -0
- package/types-legacy/ts4.5/Node.d.ts +78 -0
- package/types-legacy/ts4.5/account/Base.d.ts +52 -0
- package/types-legacy/ts4.5/account/Generalized.d.ts +16 -0
- package/types-legacy/ts4.5/account/Ledger.d.ts +28 -0
- package/types-legacy/ts4.5/account/LedgerFactory.d.ts +39 -0
- package/types-legacy/ts4.5/account/Memory.d.ts +22 -0
- package/types-legacy/ts4.5/account/Rpc.d.ts +25 -0
- package/types-legacy/ts4.5/aens.d.ts +222 -0
- package/types-legacy/ts4.5/aepp-wallet-communication/connection/Browser.d.ts +33 -0
- package/types-legacy/ts4.5/aepp-wallet-communication/connection/BrowserRuntime.d.ts +19 -0
- package/types-legacy/ts4.5/aepp-wallet-communication/connection/BrowserWindowMessage.d.ts +36 -0
- package/types-legacy/ts4.5/aepp-wallet-communication/connection-proxy.d.ts +11 -0
- package/types-legacy/ts4.5/aepp-wallet-communication/rpc/RpcClient.d.ts +34 -0
- package/types-legacy/ts4.5/aepp-wallet-communication/rpc/types.d.ts +83 -0
- package/types-legacy/ts4.5/aepp-wallet-communication/schema.d.ts +133 -0
- package/types-legacy/ts4.5/aepp-wallet-communication/wallet-detector.d.ts +25 -0
- package/types-legacy/ts4.5/apis/compiler/compiler.d.ts +86 -0
- package/types-legacy/ts4.5/apis/compiler/index.d.ts +2 -0
- package/types-legacy/ts4.5/apis/compiler/models/index.d.ts +195 -0
- package/types-legacy/ts4.5/apis/compiler/models/mappers.d.ts +23 -0
- package/types-legacy/ts4.5/apis/compiler/models/parameters.d.ts +12 -0
- package/types-legacy/ts4.5/apis/node/index.d.ts +2 -0
- package/types-legacy/ts4.5/apis/node/models/index.d.ts +1065 -0
- package/types-legacy/ts4.5/apis/node/models/mappers.d.ts +95 -0
- package/types-legacy/ts4.5/apis/node/models/parameters.d.ts +17 -0
- package/types-legacy/ts4.5/apis/node/node.d.ts +215 -0
- package/types-legacy/ts4.5/chain.d.ts +256 -0
- package/types-legacy/ts4.5/channel/Base.d.ts +199 -0
- package/types-legacy/ts4.5/channel/Contract.d.ts +248 -0
- package/types-legacy/ts4.5/channel/Spend.d.ts +219 -0
- package/types-legacy/ts4.5/channel/handlers.d.ts +21 -0
- package/types-legacy/ts4.5/channel/internal.d.ts +107 -0
- package/types-legacy/ts4.5/contract/Contract.d.ts +212 -0
- package/types-legacy/ts4.5/contract/compiler/Base.d.ts +81 -0
- package/types-legacy/ts4.5/contract/compiler/Cli.d.ts +23 -0
- package/types-legacy/ts4.5/contract/compiler/Http.d.ts +32 -0
- package/types-legacy/ts4.5/contract/compiler/HttpNode.d.ts +17 -0
- package/types-legacy/ts4.5/contract/compiler/getFileSystem.d.ts +6 -0
- package/types-legacy/ts4.5/contract/ga.d.ts +44 -0
- package/types-legacy/ts4.5/index-browser.d.ts +39 -0
- package/types-legacy/ts4.5/index.d.ts +4 -0
- package/types-legacy/ts4.5/oracle.d.ts +161 -0
- package/types-legacy/ts4.5/spend.d.ts +62 -0
- package/types-legacy/ts4.5/tx/builder/constants.d.ts +98 -0
- package/types-legacy/ts4.5/tx/builder/field-types/abi-version.d.ts +10 -0
- package/types-legacy/ts4.5/tx/builder/field-types/address.d.ts +21 -0
- package/types-legacy/ts4.5/tx/builder/field-types/array.d.ts +7 -0
- package/types-legacy/ts4.5/tx/builder/field-types/boolean.d.ts +6 -0
- package/types-legacy/ts4.5/tx/builder/field-types/coin-amount.d.ts +12 -0
- package/types-legacy/ts4.5/tx/builder/field-types/ct-version.d.ts +42 -0
- package/types-legacy/ts4.5/tx/builder/field-types/deposit.d.ts +14 -0
- package/types-legacy/ts4.5/tx/builder/field-types/encoded.d.ts +6 -0
- package/types-legacy/ts4.5/tx/builder/field-types/entry.d.ts +11 -0
- package/types-legacy/ts4.5/tx/builder/field-types/enumeration.d.ts +7 -0
- package/types-legacy/ts4.5/tx/builder/field-types/fee.d.ts +20 -0
- package/types-legacy/ts4.5/tx/builder/field-types/field.d.ts +6 -0
- package/types-legacy/ts4.5/tx/builder/field-types/gas-limit.d.ts +15 -0
- package/types-legacy/ts4.5/tx/builder/field-types/gas-price.d.ts +7 -0
- package/types-legacy/ts4.5/tx/builder/field-types/index.d.ts +129 -0
- package/types-legacy/ts4.5/tx/builder/field-types/mptree.d.ts +43 -0
- package/types-legacy/ts4.5/tx/builder/field-types/name-fee.d.ts +18 -0
- package/types-legacy/ts4.5/tx/builder/field-types/name-id.d.ts +11 -0
- package/types-legacy/ts4.5/tx/builder/field-types/name.d.ts +13 -0
- package/types-legacy/ts4.5/tx/builder/field-types/pointers.d.ts +26 -0
- package/types-legacy/ts4.5/tx/builder/field-types/raw.d.ts +6 -0
- package/types-legacy/ts4.5/tx/builder/field-types/short-u-int-const.d.ts +5 -0
- package/types-legacy/ts4.5/tx/builder/field-types/short-u-int.d.ts +6 -0
- package/types-legacy/ts4.5/tx/builder/field-types/string.d.ts +6 -0
- package/types-legacy/ts4.5/tx/builder/field-types/u-int.d.ts +7 -0
- package/types-legacy/ts4.5/tx/builder/helpers.d.ts +112 -0
- package/types-legacy/ts4.5/tx/builder/index.d.ts +50 -0
- package/types-legacy/ts4.5/tx/builder/schema.d.ts +4675 -0
- package/types-legacy/ts4.5/tx/index.d.ts +19 -0
- package/types-legacy/ts4.5/tx/validator.d.ts +18 -0
- package/types-legacy/ts4.5/utils/amount-formatter.d.ts +42 -0
- package/types-legacy/ts4.5/utils/autorest.d.ts +7 -0
- package/types-legacy/ts4.5/utils/bignumber.d.ts +13 -0
- package/types-legacy/ts4.5/utils/bytes.d.ts +9 -0
- package/types-legacy/ts4.5/utils/crypto.d.ts +95 -0
- package/types-legacy/ts4.5/utils/encoder-types.d.ts +61 -0
- package/types-legacy/ts4.5/utils/encoder.d.ts +24 -0
- package/types-legacy/ts4.5/utils/errors.d.ts +475 -0
- package/types-legacy/ts4.5/utils/hd-wallet.d.ts +65 -0
- package/types-legacy/ts4.5/utils/json-big.d.ts +5 -0
- package/types-legacy/ts4.5/utils/keystore.d.ts +53 -0
- package/types-legacy/ts4.5/utils/other.d.ts +31 -0
- package/types-legacy/ts4.5/utils/semver-satisfies.d.ts +1 -0
- package/types-legacy/ts4.5/utils/string.d.ts +12 -0
- package/es/channel/index.d.ts +0 -625
- package/es/channel/index.mjs +0 -975
- package/es/channel/index.mjs.map +0 -1
- package/es/contract/Compiler.d.ts +0 -18
- package/es/contract/Compiler.mjs +0 -68
- package/es/contract/Compiler.mjs.map +0 -1
- package/es/contract/aci.d.ts +0 -127
- package/es/contract/aci.mjs +0 -508
- package/es/contract/aci.mjs.map +0 -1
- package/es/contract/methods.d.ts +0 -71
- package/es/contract/methods.mjs +0 -104
- package/es/contract/methods.mjs.map +0 -1
- package/es/deprecated/index.d.ts +0 -143
- package/es/deprecated/index.mjs +0 -162
- package/es/deprecated/index.mjs.map +0 -1
- package/es/deprecated/methods.d.ts +0 -18
- package/es/deprecated/methods.mjs +0 -26
- package/es/deprecated/methods.mjs.map +0 -1
- package/es/tx/builder/address.d.ts +0 -25
- package/es/tx/builder/address.mjs +0 -45
- package/es/tx/builder/address.mjs.map +0 -1
- package/es/typings/@aeternity__argon2-browser/index.d.mjs.map +0 -1
- package/es/utils/mptree.d.ts +0 -26
- package/es/utils/mptree.mjs +0 -165
- package/es/utils/mptree.mjs.map +0 -1
- package/src/channel/index.ts +0 -1025
- package/src/contract/Compiler.ts +0 -67
- package/src/contract/aci.ts +0 -537
- package/src/contract/methods.ts +0 -123
- package/src/deprecated/index.ts +0 -172
- package/src/deprecated/methods.ts +0 -25
- package/src/tx/builder/address.ts +0 -50
- package/src/typings/@aeternity__argon2-browser/index.d.ts +0 -3
- package/src/utils/mptree.ts +0 -145
package/es/utils/errors.mjs
CHANGED
|
@@ -9,858 +9,772 @@ export class BaseError extends Error {
|
|
|
9
9
|
super(message);
|
|
10
10
|
this.name = 'BaseError';
|
|
11
11
|
}
|
|
12
|
-
|
|
13
12
|
}
|
|
13
|
+
|
|
14
14
|
/**
|
|
15
15
|
* @category exception
|
|
16
16
|
*/
|
|
17
|
-
|
|
18
17
|
export class AccountError extends BaseError {
|
|
19
18
|
constructor(message) {
|
|
20
19
|
super(message);
|
|
21
20
|
this.name = 'AccountError';
|
|
22
21
|
}
|
|
23
|
-
|
|
24
22
|
}
|
|
23
|
+
|
|
25
24
|
/**
|
|
26
25
|
* @category exception
|
|
27
26
|
*/
|
|
28
|
-
|
|
29
27
|
export class AensError extends BaseError {
|
|
30
28
|
constructor(message) {
|
|
31
29
|
super(message);
|
|
32
30
|
this.name = 'AensError';
|
|
33
31
|
}
|
|
34
|
-
|
|
35
32
|
}
|
|
33
|
+
|
|
36
34
|
/**
|
|
37
35
|
* @category exception
|
|
38
36
|
*/
|
|
39
|
-
|
|
40
37
|
export class AeppError extends BaseError {
|
|
41
38
|
constructor(message) {
|
|
42
39
|
super(message);
|
|
43
40
|
this.name = 'AeppError';
|
|
44
41
|
}
|
|
45
|
-
|
|
46
42
|
}
|
|
43
|
+
|
|
47
44
|
/**
|
|
48
45
|
* @category exception
|
|
49
46
|
*/
|
|
50
|
-
|
|
51
47
|
export class ChannelError extends BaseError {
|
|
52
48
|
constructor(message) {
|
|
53
49
|
super(message);
|
|
54
50
|
this.name = 'ChannelError';
|
|
55
51
|
}
|
|
56
|
-
|
|
57
52
|
}
|
|
53
|
+
|
|
58
54
|
/**
|
|
59
55
|
* @category exception
|
|
60
56
|
*/
|
|
61
|
-
|
|
62
57
|
export class CompilerError extends BaseError {
|
|
63
58
|
constructor(message) {
|
|
64
59
|
super(message);
|
|
65
60
|
this.name = 'CompilerError';
|
|
66
61
|
}
|
|
67
|
-
|
|
68
62
|
}
|
|
63
|
+
|
|
69
64
|
/**
|
|
70
65
|
* @category exception
|
|
71
66
|
*/
|
|
72
|
-
|
|
73
67
|
export class ContractError extends BaseError {
|
|
74
68
|
constructor(message) {
|
|
75
69
|
super(message);
|
|
76
70
|
this.name = 'ContractError';
|
|
77
71
|
}
|
|
78
|
-
|
|
79
72
|
}
|
|
73
|
+
|
|
80
74
|
/**
|
|
81
75
|
* @category exception
|
|
82
76
|
*/
|
|
83
|
-
|
|
84
77
|
export class CryptographyError extends BaseError {
|
|
85
78
|
constructor(message) {
|
|
86
79
|
super(message);
|
|
87
80
|
this.name = 'CryptographyError';
|
|
88
81
|
}
|
|
89
|
-
|
|
90
82
|
}
|
|
83
|
+
|
|
91
84
|
/**
|
|
92
85
|
* @category exception
|
|
93
86
|
*/
|
|
94
|
-
|
|
95
87
|
export class NodeError extends BaseError {
|
|
96
88
|
constructor(message) {
|
|
97
89
|
super(message);
|
|
98
90
|
this.name = 'NodeError';
|
|
99
91
|
}
|
|
100
|
-
|
|
101
92
|
}
|
|
93
|
+
|
|
102
94
|
/**
|
|
103
95
|
* @category exception
|
|
104
96
|
*/
|
|
105
|
-
|
|
106
97
|
export class TransactionError extends BaseError {
|
|
107
98
|
constructor(message) {
|
|
108
99
|
super(message);
|
|
109
100
|
this.name = 'TransactionError';
|
|
110
101
|
}
|
|
111
|
-
|
|
112
102
|
}
|
|
103
|
+
|
|
113
104
|
/**
|
|
114
105
|
* @category exception
|
|
115
106
|
*/
|
|
116
|
-
|
|
117
107
|
export class WalletError extends BaseError {
|
|
118
108
|
constructor(message) {
|
|
119
109
|
super(message);
|
|
120
110
|
this.name = 'WalletError';
|
|
121
111
|
}
|
|
122
|
-
|
|
123
112
|
}
|
|
113
|
+
|
|
124
114
|
/**
|
|
125
115
|
* @category exception
|
|
126
116
|
*/
|
|
127
|
-
|
|
128
117
|
export class ArgumentError extends BaseError {
|
|
129
118
|
constructor(argumentName, requirement, argumentValue) {
|
|
130
|
-
super(`${argumentName} should be ${requirement}, got ${
|
|
119
|
+
super(`${argumentName} should be ${requirement}, got ${argumentValue} instead`);
|
|
131
120
|
this.name = 'ArgumentError';
|
|
132
121
|
}
|
|
133
|
-
|
|
134
122
|
}
|
|
123
|
+
|
|
135
124
|
/**
|
|
136
125
|
* @category exception
|
|
137
126
|
*/
|
|
138
|
-
|
|
139
127
|
export class IllegalArgumentError extends CryptographyError {
|
|
140
128
|
constructor(message) {
|
|
141
129
|
super(message);
|
|
142
130
|
this.name = 'IllegalArgumentError';
|
|
143
131
|
}
|
|
144
|
-
|
|
145
132
|
}
|
|
133
|
+
|
|
146
134
|
/**
|
|
147
135
|
* @category exception
|
|
148
136
|
*/
|
|
149
|
-
|
|
150
137
|
export class ArgumentCountMismatchError extends BaseError {
|
|
151
138
|
constructor(functionName, requiredCount, providedCount) {
|
|
152
139
|
super(`${functionName} expects ${requiredCount} arguments, got ${providedCount} instead`);
|
|
153
140
|
this.name = 'ArgumentCountMismatchError';
|
|
154
141
|
}
|
|
155
|
-
|
|
156
142
|
}
|
|
143
|
+
|
|
157
144
|
/**
|
|
158
145
|
* @category exception
|
|
159
146
|
*/
|
|
160
|
-
|
|
161
147
|
export class InsufficientBalanceError extends BaseError {
|
|
162
148
|
constructor(message) {
|
|
163
149
|
super(message);
|
|
164
150
|
this.name = 'InsufficientBalanceError';
|
|
165
151
|
}
|
|
166
|
-
|
|
167
152
|
}
|
|
153
|
+
|
|
168
154
|
/**
|
|
169
155
|
* @category exception
|
|
170
156
|
*/
|
|
171
|
-
|
|
172
157
|
export class MissingParamError extends BaseError {
|
|
173
158
|
constructor(message) {
|
|
174
159
|
super(message);
|
|
175
160
|
this.name = 'MissingParamError';
|
|
176
161
|
}
|
|
177
|
-
|
|
178
162
|
}
|
|
163
|
+
|
|
179
164
|
/**
|
|
180
165
|
* @category exception
|
|
181
166
|
*/
|
|
182
|
-
|
|
183
167
|
export class NoSerializerFoundError extends BaseError {
|
|
184
168
|
constructor() {
|
|
185
169
|
super('Byte serialization not supported');
|
|
186
170
|
this.name = 'NoSerializerFoundError';
|
|
187
171
|
}
|
|
188
|
-
|
|
189
172
|
}
|
|
173
|
+
|
|
190
174
|
/**
|
|
191
175
|
* @category exception
|
|
192
176
|
*/
|
|
193
|
-
|
|
194
177
|
export class RequestTimedOutError extends BaseError {
|
|
195
178
|
constructor(height) {
|
|
196
179
|
super(`Giving up at height ${height}`);
|
|
197
180
|
this.name = 'RequestTimedOutError';
|
|
198
181
|
}
|
|
199
|
-
|
|
200
182
|
}
|
|
183
|
+
|
|
201
184
|
/**
|
|
202
185
|
* @category exception
|
|
203
186
|
*/
|
|
204
|
-
|
|
205
187
|
export class TxTimedOutError extends BaseError {
|
|
206
188
|
constructor(blocks, th) {
|
|
207
189
|
super([`Giving up after ${blocks} blocks mined`, `transaction hash: ${th}`].join(', '));
|
|
208
190
|
this.name = 'TxTimedOutError';
|
|
209
191
|
}
|
|
210
|
-
|
|
211
192
|
}
|
|
193
|
+
|
|
212
194
|
/**
|
|
213
195
|
* @category exception
|
|
214
196
|
*/
|
|
215
|
-
|
|
216
197
|
export class TypeError extends BaseError {
|
|
217
198
|
constructor(message) {
|
|
218
199
|
super(message);
|
|
219
200
|
this.name = 'TypeError';
|
|
220
201
|
}
|
|
221
|
-
|
|
222
202
|
}
|
|
203
|
+
|
|
223
204
|
/**
|
|
224
205
|
* @category exception
|
|
225
206
|
*/
|
|
226
|
-
|
|
227
207
|
export class UnsupportedPlatformError extends BaseError {
|
|
228
208
|
constructor(message) {
|
|
229
209
|
super(message);
|
|
230
210
|
this.name = 'UnsupportedPlatformError';
|
|
231
211
|
}
|
|
232
|
-
|
|
233
212
|
}
|
|
213
|
+
|
|
234
214
|
/**
|
|
235
215
|
* @category exception
|
|
236
216
|
*/
|
|
237
|
-
|
|
238
217
|
export class UnsupportedProtocolError extends BaseError {
|
|
239
218
|
constructor(message) {
|
|
240
219
|
super(message);
|
|
241
220
|
this.name = 'UnsupportedProtocolError';
|
|
242
221
|
}
|
|
243
|
-
|
|
244
222
|
}
|
|
223
|
+
|
|
245
224
|
/**
|
|
246
225
|
* @category exception
|
|
247
226
|
*/
|
|
248
|
-
|
|
249
227
|
export class NotImplementedError extends BaseError {
|
|
250
228
|
constructor(message) {
|
|
251
229
|
super(message);
|
|
252
230
|
this.name = 'NotImplementedError';
|
|
253
231
|
}
|
|
254
|
-
|
|
255
232
|
}
|
|
233
|
+
|
|
256
234
|
/**
|
|
257
235
|
* @category exception
|
|
258
236
|
*/
|
|
259
|
-
|
|
260
237
|
export class UnsupportedVersionError extends BaseError {
|
|
261
238
|
constructor(dependency, version, geVersion, ltVersion) {
|
|
262
239
|
super(`Unsupported ${dependency} version ${version}. Supported: >= ${geVersion} < ${ltVersion}`);
|
|
263
240
|
this.name = 'UnsupportedVersionError';
|
|
264
241
|
}
|
|
265
|
-
|
|
266
242
|
}
|
|
243
|
+
|
|
267
244
|
/**
|
|
268
245
|
* @category exception
|
|
269
246
|
*/
|
|
270
|
-
|
|
271
247
|
export class InternalError extends BaseError {
|
|
272
248
|
constructor(message) {
|
|
273
249
|
super(message);
|
|
274
250
|
this.name = 'InternalError';
|
|
275
251
|
}
|
|
276
|
-
|
|
277
252
|
}
|
|
253
|
+
|
|
278
254
|
/**
|
|
279
255
|
* @category exception
|
|
280
256
|
*/
|
|
281
|
-
|
|
282
257
|
export class UnexpectedTsError extends InternalError {
|
|
283
258
|
constructor() {
|
|
284
259
|
let message = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'Expected to not happen, required for TS';
|
|
285
260
|
super(message);
|
|
286
261
|
this.name = 'UnexpectedTsError';
|
|
287
262
|
}
|
|
288
|
-
|
|
289
263
|
}
|
|
290
|
-
/**
|
|
291
|
-
* @category exception
|
|
292
|
-
*/
|
|
293
|
-
|
|
294
|
-
export class InvalidKeypairError extends AccountError {
|
|
295
|
-
constructor(message) {
|
|
296
|
-
super(message);
|
|
297
|
-
this.name = 'InvalidKeypairError';
|
|
298
|
-
}
|
|
299
264
|
|
|
300
|
-
}
|
|
301
265
|
/**
|
|
302
266
|
* @category exception
|
|
303
267
|
*/
|
|
304
|
-
|
|
305
268
|
export class UnavailableAccountError extends AccountError {
|
|
306
269
|
constructor(address) {
|
|
307
270
|
super(`Account for ${address} not available`);
|
|
308
271
|
this.name = 'UnavailableAccountError';
|
|
309
272
|
}
|
|
310
|
-
|
|
311
273
|
}
|
|
274
|
+
|
|
312
275
|
/**
|
|
313
276
|
* @category exception
|
|
314
277
|
*/
|
|
315
|
-
|
|
316
278
|
export class AensPointerContextError extends AensError {
|
|
317
279
|
constructor(nameOrId, prefix) {
|
|
318
280
|
super(`Name ${nameOrId} don't have pointers for ${prefix}`);
|
|
319
281
|
this.name = 'AensPointerContextError';
|
|
320
282
|
}
|
|
321
|
-
|
|
322
283
|
}
|
|
284
|
+
|
|
323
285
|
/**
|
|
324
286
|
* @category exception
|
|
325
287
|
*/
|
|
326
|
-
|
|
327
288
|
export class InsufficientNameFeeError extends AensError {
|
|
328
289
|
constructor(nameFee, minNameFee) {
|
|
329
290
|
super(`the provided fee ${nameFee.toString()} is not enough to execute the claim, required: ${minNameFee.toString()}`);
|
|
330
291
|
this.name = 'InsufficientNameFeeError';
|
|
331
292
|
}
|
|
332
|
-
|
|
333
293
|
}
|
|
294
|
+
|
|
334
295
|
/**
|
|
335
296
|
* @category exception
|
|
336
297
|
*/
|
|
337
|
-
|
|
338
298
|
export class InvalidAensNameError extends AensError {
|
|
339
299
|
constructor(message) {
|
|
340
300
|
super(message);
|
|
341
301
|
this.name = 'InvalidAensNameError';
|
|
342
302
|
}
|
|
343
|
-
|
|
344
303
|
}
|
|
304
|
+
|
|
345
305
|
/**
|
|
346
306
|
* @category exception
|
|
347
307
|
*/
|
|
348
|
-
|
|
349
308
|
export class InvalidRpcMessageError extends AeppError {
|
|
350
309
|
constructor(message) {
|
|
351
310
|
super(`Received invalid message: ${message}`);
|
|
352
311
|
this.name = 'InvalidRpcMessageError';
|
|
353
312
|
}
|
|
354
|
-
|
|
355
313
|
}
|
|
314
|
+
|
|
356
315
|
/**
|
|
357
316
|
* @category exception
|
|
358
317
|
*/
|
|
359
|
-
|
|
360
318
|
export class MissingCallbackError extends AeppError {
|
|
361
319
|
constructor(id) {
|
|
362
320
|
super(`Can't find callback for this messageId ${id}`);
|
|
363
321
|
this.name = 'MissingCallbackError';
|
|
364
322
|
}
|
|
365
|
-
|
|
366
323
|
}
|
|
324
|
+
|
|
367
325
|
/**
|
|
368
326
|
* @category exception
|
|
369
327
|
*/
|
|
370
|
-
|
|
371
328
|
export class UnAuthorizedAccountError extends AeppError {
|
|
372
329
|
constructor(onAccount) {
|
|
373
330
|
super(`You do not have access to account ${onAccount}`);
|
|
374
331
|
this.name = 'UnAuthorizedAccountError';
|
|
375
332
|
}
|
|
376
|
-
|
|
377
333
|
}
|
|
334
|
+
|
|
378
335
|
/**
|
|
379
336
|
* @category exception
|
|
380
337
|
*/
|
|
381
|
-
|
|
382
338
|
export class UnknownRpcClientError extends AeppError {
|
|
383
339
|
constructor(id) {
|
|
384
340
|
super(`RpcClient with id ${id} do not exist`);
|
|
385
341
|
this.name = 'UnknownRpcClientError';
|
|
386
342
|
}
|
|
387
|
-
|
|
388
343
|
}
|
|
344
|
+
|
|
389
345
|
/**
|
|
390
346
|
* @category exception
|
|
391
347
|
*/
|
|
392
|
-
|
|
393
348
|
export class UnsubscribedAccountError extends AeppError {
|
|
394
349
|
constructor() {
|
|
395
350
|
super('You are not subscribed for an account.');
|
|
396
351
|
this.name = 'UnsubscribedAccountError';
|
|
397
352
|
}
|
|
398
|
-
|
|
399
353
|
}
|
|
354
|
+
|
|
400
355
|
/**
|
|
401
356
|
* @category exception
|
|
402
357
|
*/
|
|
403
|
-
|
|
404
358
|
export class ChannelCallError extends ChannelError {
|
|
405
359
|
constructor(message) {
|
|
406
360
|
super(message);
|
|
407
361
|
this.name = 'ChannelCallError';
|
|
408
362
|
}
|
|
409
|
-
|
|
410
363
|
}
|
|
364
|
+
|
|
411
365
|
/**
|
|
412
366
|
* @category exception
|
|
413
367
|
*/
|
|
414
|
-
|
|
415
368
|
export class ChannelConnectionError extends ChannelError {
|
|
416
369
|
constructor(message) {
|
|
417
370
|
super(message);
|
|
418
371
|
this.name = 'ChannelConnectionError';
|
|
419
372
|
}
|
|
420
|
-
|
|
421
373
|
}
|
|
374
|
+
|
|
422
375
|
/**
|
|
423
376
|
* @category exception
|
|
424
377
|
*/
|
|
425
|
-
|
|
426
378
|
export class ChannelPingTimedOutError extends ChannelError {
|
|
427
379
|
constructor() {
|
|
428
380
|
super('Server pong timed out');
|
|
429
381
|
this.name = 'ChannelPingTimedOutError';
|
|
430
382
|
}
|
|
431
|
-
|
|
432
383
|
}
|
|
384
|
+
|
|
433
385
|
/**
|
|
434
386
|
* @category exception
|
|
435
387
|
*/
|
|
436
|
-
|
|
437
388
|
export class UnexpectedChannelMessageError extends ChannelError {
|
|
438
389
|
constructor(message) {
|
|
439
390
|
super(message);
|
|
440
391
|
this.name = 'UnexpectedChannelMessageError';
|
|
441
392
|
}
|
|
442
|
-
|
|
443
393
|
}
|
|
394
|
+
|
|
444
395
|
/**
|
|
445
396
|
* @category exception
|
|
446
397
|
*/
|
|
398
|
+
export class ChannelIncomingMessageError extends ChannelError {
|
|
399
|
+
constructor(handlerError, incomingMessage) {
|
|
400
|
+
super(handlerError.message);
|
|
401
|
+
this.handlerError = handlerError;
|
|
402
|
+
this.incomingMessage = incomingMessage;
|
|
403
|
+
this.name = 'ChannelIncomingMessageError';
|
|
404
|
+
}
|
|
405
|
+
}
|
|
447
406
|
|
|
407
|
+
/**
|
|
408
|
+
* @category exception
|
|
409
|
+
*/
|
|
448
410
|
export class UnknownChannelStateError extends ChannelError {
|
|
449
411
|
constructor() {
|
|
450
412
|
super('State Channels FSM entered unknown state');
|
|
451
413
|
this.name = 'UnknownChannelStateError';
|
|
452
414
|
}
|
|
453
|
-
|
|
454
415
|
}
|
|
416
|
+
|
|
455
417
|
/**
|
|
456
418
|
* @category exception
|
|
457
419
|
*/
|
|
458
|
-
|
|
459
420
|
export class InvalidAuthDataError extends CompilerError {
|
|
460
421
|
constructor(message) {
|
|
461
422
|
super(message);
|
|
462
423
|
this.name = 'InvalidAuthDataError';
|
|
463
424
|
}
|
|
464
|
-
|
|
465
425
|
}
|
|
426
|
+
|
|
466
427
|
/**
|
|
467
428
|
* @category exception
|
|
468
429
|
*/
|
|
469
|
-
|
|
470
430
|
export class BytecodeMismatchError extends ContractError {
|
|
471
431
|
constructor(source) {
|
|
472
432
|
super(`Contract ${source} do not correspond to the bytecode deployed on the chain`);
|
|
473
433
|
this.name = 'BytecodeMismatchError';
|
|
474
434
|
}
|
|
475
|
-
|
|
476
435
|
}
|
|
436
|
+
|
|
477
437
|
/**
|
|
478
438
|
* @category exception
|
|
479
439
|
*/
|
|
480
|
-
|
|
481
440
|
export class DuplicateContractError extends ContractError {
|
|
482
441
|
constructor() {
|
|
483
442
|
super('Contract already deployed');
|
|
484
443
|
this.name = 'DuplicateContractError';
|
|
485
444
|
}
|
|
486
|
-
|
|
487
445
|
}
|
|
446
|
+
|
|
488
447
|
/**
|
|
489
448
|
* @category exception
|
|
490
449
|
*/
|
|
491
|
-
|
|
492
450
|
export class InactiveContractError extends ContractError {
|
|
493
451
|
constructor(contractAddress) {
|
|
494
452
|
super(`Contract with address ${contractAddress} not active`);
|
|
495
453
|
this.name = 'InactiveContractError';
|
|
496
454
|
}
|
|
497
|
-
|
|
498
455
|
}
|
|
456
|
+
|
|
499
457
|
/**
|
|
500
458
|
* @category exception
|
|
501
459
|
*/
|
|
502
|
-
|
|
503
460
|
export class InvalidMethodInvocationError extends ContractError {
|
|
504
461
|
constructor(message) {
|
|
505
462
|
super(message);
|
|
506
463
|
this.name = 'InvalidMethodInvocationError';
|
|
507
464
|
}
|
|
508
|
-
|
|
509
465
|
}
|
|
466
|
+
|
|
510
467
|
/**
|
|
511
468
|
* @category exception
|
|
512
469
|
*/
|
|
513
|
-
|
|
514
470
|
export class MissingContractAddressError extends ContractError {
|
|
515
471
|
constructor(message) {
|
|
516
472
|
super(message);
|
|
517
473
|
this.name = 'MissingContractAddressError';
|
|
518
474
|
}
|
|
519
|
-
|
|
520
475
|
}
|
|
476
|
+
|
|
521
477
|
/**
|
|
522
478
|
* @category exception
|
|
523
479
|
*/
|
|
524
|
-
|
|
525
480
|
export class MissingContractDefError extends ContractError {
|
|
526
481
|
constructor() {
|
|
527
482
|
super('Either ACI or source code is required');
|
|
528
483
|
this.name = 'MissingContractDefError';
|
|
529
484
|
}
|
|
530
|
-
|
|
531
485
|
}
|
|
486
|
+
|
|
532
487
|
/**
|
|
533
488
|
* @category exception
|
|
534
489
|
*/
|
|
535
|
-
|
|
536
490
|
export class MissingFunctionNameError extends ContractError {
|
|
537
491
|
constructor() {
|
|
538
492
|
super('Function name is required');
|
|
539
493
|
this.name = 'MissingFunctionNameError';
|
|
540
494
|
}
|
|
541
|
-
|
|
542
495
|
}
|
|
496
|
+
|
|
543
497
|
/**
|
|
544
498
|
* @category exception
|
|
545
499
|
*/
|
|
546
|
-
|
|
547
500
|
export class NodeInvocationError extends ContractError {
|
|
548
501
|
constructor(message, transaction) {
|
|
549
502
|
super(`Invocation failed${message == null ? '' : `: "${message}"`}`);
|
|
550
503
|
this.name = 'NodeInvocationError';
|
|
551
504
|
this.transaction = transaction;
|
|
552
505
|
}
|
|
553
|
-
|
|
554
506
|
}
|
|
507
|
+
|
|
555
508
|
/**
|
|
556
509
|
* @category exception
|
|
557
510
|
*/
|
|
558
|
-
|
|
559
511
|
export class NoSuchContractFunctionError extends ContractError {
|
|
560
512
|
constructor(name) {
|
|
561
513
|
super(`Function ${name} doesn't exist in contract`);
|
|
562
514
|
this.name = 'NoSuchContractFunctionError';
|
|
563
515
|
}
|
|
564
|
-
|
|
565
516
|
}
|
|
517
|
+
|
|
566
518
|
/**
|
|
567
519
|
* @category exception
|
|
568
520
|
*/
|
|
569
|
-
|
|
570
521
|
export class NotPayableFunctionError extends ContractError {
|
|
571
522
|
constructor(amount, fn) {
|
|
572
523
|
super(`You try to pay "${amount}" to function "${fn}" which is not payable. ` + 'Only payable function can accept coins');
|
|
573
524
|
this.name = 'NotPayableFunctionError';
|
|
574
525
|
}
|
|
575
|
-
|
|
576
526
|
}
|
|
527
|
+
|
|
577
528
|
/**
|
|
578
529
|
* @category exception
|
|
579
530
|
*/
|
|
580
|
-
|
|
581
531
|
export class MissingEventDefinitionError extends ContractError {
|
|
582
532
|
constructor(eventNameHash, eventAddress) {
|
|
583
533
|
super(`Can't find definition of ${eventNameHash} event emitted by ${eventAddress}` + ' (use omitUnknown option to ignore events like this)');
|
|
584
534
|
this.name = 'MissingEventDefinitionError';
|
|
585
535
|
}
|
|
586
|
-
|
|
587
536
|
}
|
|
537
|
+
|
|
588
538
|
/**
|
|
589
539
|
* @category exception
|
|
590
540
|
*/
|
|
591
|
-
|
|
592
541
|
export class AmbiguousEventDefinitionError extends ContractError {
|
|
593
542
|
constructor(eventAddress, matchedEvents) {
|
|
594
|
-
super(`Found multiple definitions of "${matchedEvents[0][1]}" event emitted by ${eventAddress}
|
|
543
|
+
super(`Found multiple definitions of "${matchedEvents[0][1]}" event with different types emitted by` + ` ${eventAddress} in ${matchedEvents.map(_ref => {
|
|
595
544
|
let [name] = _ref;
|
|
596
545
|
return `"${name}"`;
|
|
597
546
|
}).join(', ')} contracts` + ' (use contractAddressToName option to specify contract name corresponding to address)');
|
|
598
547
|
this.name = 'AmbiguousEventDefinitionError';
|
|
599
548
|
}
|
|
600
|
-
|
|
601
549
|
}
|
|
550
|
+
|
|
602
551
|
/**
|
|
603
552
|
* @category exception
|
|
604
553
|
*/
|
|
605
|
-
|
|
606
554
|
export class InvalidChecksumError extends CryptographyError {
|
|
607
555
|
constructor() {
|
|
608
556
|
super('Invalid checksum');
|
|
609
557
|
this.name = 'InvalidChecksumError';
|
|
610
558
|
}
|
|
611
|
-
|
|
612
559
|
}
|
|
560
|
+
|
|
613
561
|
/**
|
|
614
562
|
* @category exception
|
|
615
563
|
*/
|
|
616
|
-
|
|
617
564
|
export class InvalidPasswordError extends CryptographyError {
|
|
618
565
|
constructor() {
|
|
619
566
|
super('Invalid password or nonce');
|
|
620
567
|
this.name = 'InvalidPasswordError';
|
|
621
568
|
}
|
|
622
|
-
|
|
623
569
|
}
|
|
570
|
+
|
|
624
571
|
/**
|
|
625
572
|
* @category exception
|
|
626
573
|
*/
|
|
627
|
-
|
|
628
574
|
export class MerkleTreeHashMismatchError extends CryptographyError {
|
|
629
575
|
constructor() {
|
|
630
576
|
super('Node hash is not equal to provided one');
|
|
631
577
|
this.name = 'MerkleTreeHashMismatchError';
|
|
632
578
|
}
|
|
633
|
-
|
|
634
579
|
}
|
|
580
|
+
|
|
635
581
|
/**
|
|
636
582
|
* @category exception
|
|
637
583
|
*/
|
|
638
|
-
|
|
639
584
|
export class MissingNodeInTreeError extends CryptographyError {
|
|
640
585
|
constructor(message) {
|
|
641
586
|
super(message);
|
|
642
587
|
this.name = 'MissingNodeInTreeError';
|
|
643
588
|
}
|
|
644
|
-
|
|
645
589
|
}
|
|
590
|
+
|
|
646
591
|
/**
|
|
647
592
|
* @category exception
|
|
648
593
|
*/
|
|
649
|
-
|
|
650
594
|
export class UnknownNodeLengthError extends CryptographyError {
|
|
651
595
|
constructor(nodeLength) {
|
|
652
596
|
super(`Unknown node length: ${nodeLength}`);
|
|
653
597
|
this.name = 'UnknownNodeLengthError';
|
|
654
598
|
}
|
|
655
|
-
|
|
656
599
|
}
|
|
600
|
+
|
|
657
601
|
/**
|
|
658
602
|
* @category exception
|
|
659
603
|
*/
|
|
660
|
-
|
|
661
604
|
export class UnknownPathNibbleError extends CryptographyError {
|
|
662
605
|
constructor(nibble) {
|
|
663
606
|
super(`Unknown path nibble: ${nibble}`);
|
|
664
607
|
this.name = 'UnknownPathNibbleError';
|
|
665
608
|
}
|
|
666
|
-
|
|
667
609
|
}
|
|
610
|
+
|
|
668
611
|
/**
|
|
669
612
|
* @category exception
|
|
670
613
|
*/
|
|
671
|
-
|
|
672
614
|
export class DuplicateNodeError extends NodeError {
|
|
673
615
|
constructor(name) {
|
|
674
616
|
super(`Node with name ${name} already exist`);
|
|
675
617
|
this.name = 'DuplicateNodeError';
|
|
676
618
|
}
|
|
677
|
-
|
|
678
619
|
}
|
|
620
|
+
|
|
679
621
|
/**
|
|
680
622
|
* @category exception
|
|
681
623
|
*/
|
|
682
|
-
|
|
683
624
|
export class NodeNotFoundError extends NodeError {
|
|
684
625
|
constructor(message) {
|
|
685
626
|
super(message);
|
|
686
627
|
this.name = 'NodeNotFoundError';
|
|
687
628
|
}
|
|
688
|
-
|
|
689
629
|
}
|
|
630
|
+
|
|
690
631
|
/**
|
|
691
632
|
* @category exception
|
|
692
633
|
*/
|
|
693
|
-
|
|
694
634
|
export class DecodeError extends TransactionError {
|
|
695
635
|
constructor(message) {
|
|
696
636
|
super(message);
|
|
697
637
|
this.name = 'DecodeError';
|
|
698
638
|
}
|
|
699
|
-
|
|
700
639
|
}
|
|
640
|
+
|
|
701
641
|
/**
|
|
702
642
|
* @category exception
|
|
703
643
|
*/
|
|
704
|
-
|
|
705
644
|
export class PayloadLengthError extends TransactionError {
|
|
706
645
|
constructor(message) {
|
|
707
646
|
super(message);
|
|
708
647
|
this.name = 'PayloadLengthError';
|
|
709
648
|
}
|
|
710
|
-
|
|
711
649
|
}
|
|
650
|
+
|
|
712
651
|
/**
|
|
713
652
|
* @category exception
|
|
714
653
|
*/
|
|
715
|
-
|
|
716
654
|
export class DryRunError extends TransactionError {
|
|
717
655
|
constructor(message) {
|
|
718
656
|
super(message);
|
|
719
657
|
this.name = 'DryRunError';
|
|
720
658
|
}
|
|
721
|
-
|
|
722
659
|
}
|
|
660
|
+
|
|
723
661
|
/**
|
|
724
662
|
* @category exception
|
|
725
663
|
*/
|
|
726
|
-
|
|
727
664
|
export class IllegalBidFeeError extends TransactionError {
|
|
728
665
|
constructor(message) {
|
|
729
666
|
super(message);
|
|
730
667
|
this.name = 'IllegalBidFeeError';
|
|
731
668
|
}
|
|
732
|
-
|
|
733
669
|
}
|
|
670
|
+
|
|
734
671
|
/**
|
|
735
672
|
* @category exception
|
|
736
673
|
*/
|
|
737
|
-
|
|
738
674
|
export class InvalidSignatureError extends TransactionError {
|
|
739
675
|
constructor(message) {
|
|
740
676
|
super(message);
|
|
741
677
|
this.name = 'InvalidSignatureError';
|
|
742
678
|
}
|
|
743
|
-
|
|
744
679
|
}
|
|
680
|
+
|
|
745
681
|
/**
|
|
746
682
|
* @category exception
|
|
747
683
|
*/
|
|
748
|
-
|
|
749
684
|
export class InvalidTxParamsError extends TransactionError {
|
|
750
685
|
constructor(message) {
|
|
751
686
|
super(message);
|
|
752
687
|
this.name = 'InvalidTxParamsError';
|
|
753
688
|
}
|
|
754
|
-
|
|
755
689
|
}
|
|
690
|
+
|
|
756
691
|
/**
|
|
757
692
|
* @category exception
|
|
758
693
|
*/
|
|
759
|
-
|
|
760
694
|
export class PrefixNotFoundError extends TransactionError {
|
|
761
695
|
constructor(tag) {
|
|
762
696
|
super(`Prefix for id-tag ${tag} not found.`);
|
|
763
697
|
this.name = 'PrefixNotFoundError';
|
|
764
698
|
}
|
|
765
|
-
|
|
766
699
|
}
|
|
700
|
+
|
|
767
701
|
/**
|
|
768
702
|
* @category exception
|
|
769
703
|
*/
|
|
770
|
-
|
|
771
704
|
export class SchemaNotFoundError extends TransactionError {
|
|
772
705
|
constructor(schemaName, key, version) {
|
|
773
706
|
super(`Transaction ${schemaName} not implemented for ${key} version ${version}`);
|
|
774
707
|
this.name = 'SchemaNotFoundError';
|
|
775
708
|
}
|
|
776
|
-
|
|
777
709
|
}
|
|
710
|
+
|
|
778
711
|
/**
|
|
779
712
|
* @category exception
|
|
780
713
|
*/
|
|
781
|
-
|
|
782
714
|
export class TagNotFoundError extends TransactionError {
|
|
783
715
|
constructor(prefix) {
|
|
784
716
|
super(`Id tag for prefix ${prefix} not found.`);
|
|
785
717
|
this.name = 'DecodeError';
|
|
786
718
|
}
|
|
787
|
-
|
|
788
719
|
}
|
|
720
|
+
|
|
789
721
|
/**
|
|
790
722
|
* @category exception
|
|
791
723
|
*/
|
|
792
|
-
|
|
793
724
|
export class TxNotInChainError extends TransactionError {
|
|
794
725
|
constructor(txHash) {
|
|
795
726
|
super(`Transaction ${txHash} is removed from chain`);
|
|
796
727
|
this.name = 'TxNotInChainError';
|
|
797
728
|
}
|
|
798
|
-
|
|
799
729
|
}
|
|
800
|
-
/**
|
|
801
|
-
* @category exception
|
|
802
|
-
*/
|
|
803
|
-
|
|
804
|
-
export class UnknownTxError extends TransactionError {
|
|
805
|
-
constructor(message) {
|
|
806
|
-
super(message);
|
|
807
|
-
this.name = 'UnknownTxError';
|
|
808
|
-
}
|
|
809
730
|
|
|
810
|
-
}
|
|
811
731
|
/**
|
|
812
732
|
* @category exception
|
|
813
733
|
*/
|
|
814
|
-
|
|
815
734
|
export class UnsupportedABIversionError extends TransactionError {
|
|
816
735
|
constructor(message) {
|
|
817
736
|
super(message);
|
|
818
737
|
this.name = 'UnsupportedABIversionError';
|
|
819
738
|
}
|
|
820
|
-
|
|
821
739
|
}
|
|
740
|
+
|
|
822
741
|
/**
|
|
823
742
|
* @category exception
|
|
824
743
|
*/
|
|
825
|
-
|
|
826
744
|
export class UnsupportedVMversionError extends TransactionError {
|
|
827
745
|
constructor(message) {
|
|
828
746
|
super(message);
|
|
829
747
|
this.name = 'UnsupportedVMversionError';
|
|
830
748
|
}
|
|
831
|
-
|
|
832
749
|
}
|
|
750
|
+
|
|
833
751
|
/**
|
|
834
752
|
* @category exception
|
|
835
753
|
*/
|
|
836
|
-
|
|
837
754
|
export class AlreadyConnectedError extends WalletError {
|
|
838
755
|
constructor(message) {
|
|
839
756
|
super(message);
|
|
840
757
|
this.name = 'AlreadyConnectedError';
|
|
841
758
|
}
|
|
842
|
-
|
|
843
759
|
}
|
|
760
|
+
|
|
844
761
|
/**
|
|
845
762
|
* @category exception
|
|
846
763
|
*/
|
|
847
|
-
|
|
848
764
|
export class NoWalletConnectedError extends WalletError {
|
|
849
765
|
constructor(message) {
|
|
850
766
|
super(message);
|
|
851
767
|
this.name = 'NoWalletConnectedError';
|
|
852
768
|
}
|
|
853
|
-
|
|
854
769
|
}
|
|
770
|
+
|
|
855
771
|
/**
|
|
856
772
|
* @category exception
|
|
857
773
|
*/
|
|
858
|
-
|
|
859
774
|
export class RpcConnectionError extends WalletError {
|
|
860
775
|
constructor(message) {
|
|
861
776
|
super(message);
|
|
862
777
|
this.name = 'RpcConnectionError';
|
|
863
778
|
}
|
|
864
|
-
|
|
865
779
|
}
|
|
866
780
|
//# sourceMappingURL=errors.mjs.map
|