@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
|
@@ -0,0 +1,475 @@
|
|
|
1
|
+
import BigNumber from 'bignumber.js';
|
|
2
|
+
import { Int } from '../tx/builder/constants';
|
|
3
|
+
/**
|
|
4
|
+
* aepp-sdk originated error
|
|
5
|
+
* @category exception
|
|
6
|
+
*/
|
|
7
|
+
export declare abstract class BaseError extends Error {
|
|
8
|
+
constructor(message: string);
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* @category exception
|
|
12
|
+
*/
|
|
13
|
+
export declare class AccountError extends BaseError {
|
|
14
|
+
constructor(message: string);
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @category exception
|
|
18
|
+
*/
|
|
19
|
+
export declare class AensError extends BaseError {
|
|
20
|
+
constructor(message: string);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* @category exception
|
|
24
|
+
*/
|
|
25
|
+
export declare class AeppError extends BaseError {
|
|
26
|
+
constructor(message: string);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* @category exception
|
|
30
|
+
*/
|
|
31
|
+
export declare class ChannelError extends BaseError {
|
|
32
|
+
constructor(message: string);
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* @category exception
|
|
36
|
+
*/
|
|
37
|
+
export declare class CompilerError extends BaseError {
|
|
38
|
+
constructor(message: string);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* @category exception
|
|
42
|
+
*/
|
|
43
|
+
export declare class ContractError extends BaseError {
|
|
44
|
+
constructor(message: string);
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* @category exception
|
|
48
|
+
*/
|
|
49
|
+
export declare class CryptographyError extends BaseError {
|
|
50
|
+
constructor(message: string);
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* @category exception
|
|
54
|
+
*/
|
|
55
|
+
export declare class NodeError extends BaseError {
|
|
56
|
+
constructor(message: string);
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* @category exception
|
|
60
|
+
*/
|
|
61
|
+
export declare class TransactionError extends BaseError {
|
|
62
|
+
constructor(message: string);
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* @category exception
|
|
66
|
+
*/
|
|
67
|
+
export declare class WalletError extends BaseError {
|
|
68
|
+
constructor(message: string);
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* @category exception
|
|
72
|
+
*/
|
|
73
|
+
export declare class ArgumentError extends BaseError {
|
|
74
|
+
constructor(argumentName: string, requirement: unknown, argumentValue: unknown);
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* @category exception
|
|
78
|
+
*/
|
|
79
|
+
export declare class IllegalArgumentError extends CryptographyError {
|
|
80
|
+
constructor(message: string);
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* @category exception
|
|
84
|
+
*/
|
|
85
|
+
export declare class ArgumentCountMismatchError extends BaseError {
|
|
86
|
+
constructor(functionName: string, requiredCount: number, providedCount: number);
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* @category exception
|
|
90
|
+
*/
|
|
91
|
+
export declare class InsufficientBalanceError extends BaseError {
|
|
92
|
+
constructor(message: string);
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* @category exception
|
|
96
|
+
*/
|
|
97
|
+
export declare class MissingParamError extends BaseError {
|
|
98
|
+
constructor(message: string);
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* @category exception
|
|
102
|
+
*/
|
|
103
|
+
export declare class NoSerializerFoundError extends BaseError {
|
|
104
|
+
constructor();
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* @category exception
|
|
108
|
+
*/
|
|
109
|
+
export declare class RequestTimedOutError extends BaseError {
|
|
110
|
+
constructor(height: number);
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* @category exception
|
|
114
|
+
*/
|
|
115
|
+
export declare class TxTimedOutError extends BaseError {
|
|
116
|
+
constructor(blocks: number, th: string);
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* @category exception
|
|
120
|
+
*/
|
|
121
|
+
export declare class TypeError extends BaseError {
|
|
122
|
+
constructor(message: string);
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* @category exception
|
|
126
|
+
*/
|
|
127
|
+
export declare class UnsupportedPlatformError extends BaseError {
|
|
128
|
+
constructor(message: string);
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* @category exception
|
|
132
|
+
*/
|
|
133
|
+
export declare class UnsupportedProtocolError extends BaseError {
|
|
134
|
+
constructor(message: string);
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* @category exception
|
|
138
|
+
*/
|
|
139
|
+
export declare class NotImplementedError extends BaseError {
|
|
140
|
+
constructor(message: string);
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* @category exception
|
|
144
|
+
*/
|
|
145
|
+
export declare class UnsupportedVersionError extends BaseError {
|
|
146
|
+
constructor(dependency: string, version: string, geVersion: string, ltVersion: string);
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* @category exception
|
|
150
|
+
*/
|
|
151
|
+
export declare class InternalError extends BaseError {
|
|
152
|
+
constructor(message: string);
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* @category exception
|
|
156
|
+
*/
|
|
157
|
+
export declare class UnexpectedTsError extends InternalError {
|
|
158
|
+
constructor(message?: string);
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* @category exception
|
|
162
|
+
*/
|
|
163
|
+
export declare class UnavailableAccountError extends AccountError {
|
|
164
|
+
constructor(address: string);
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* @category exception
|
|
168
|
+
*/
|
|
169
|
+
export declare class AensPointerContextError extends AensError {
|
|
170
|
+
constructor(nameOrId: string, prefix: string);
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* @category exception
|
|
174
|
+
*/
|
|
175
|
+
export declare class InsufficientNameFeeError extends AensError {
|
|
176
|
+
constructor(nameFee: BigNumber, minNameFee: BigNumber);
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* @category exception
|
|
180
|
+
*/
|
|
181
|
+
export declare class InvalidAensNameError extends AensError {
|
|
182
|
+
constructor(message: string);
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* @category exception
|
|
186
|
+
*/
|
|
187
|
+
export declare class InvalidRpcMessageError extends AeppError {
|
|
188
|
+
constructor(message: string);
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* @category exception
|
|
192
|
+
*/
|
|
193
|
+
export declare class MissingCallbackError extends AeppError {
|
|
194
|
+
constructor(id: number);
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* @category exception
|
|
198
|
+
*/
|
|
199
|
+
export declare class UnAuthorizedAccountError extends AeppError {
|
|
200
|
+
constructor(onAccount: string);
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* @category exception
|
|
204
|
+
*/
|
|
205
|
+
export declare class UnknownRpcClientError extends AeppError {
|
|
206
|
+
constructor(id: string);
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* @category exception
|
|
210
|
+
*/
|
|
211
|
+
export declare class UnsubscribedAccountError extends AeppError {
|
|
212
|
+
constructor();
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* @category exception
|
|
216
|
+
*/
|
|
217
|
+
export declare class ChannelCallError extends ChannelError {
|
|
218
|
+
constructor(message: string);
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* @category exception
|
|
222
|
+
*/
|
|
223
|
+
export declare class ChannelConnectionError extends ChannelError {
|
|
224
|
+
constructor(message: string);
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* @category exception
|
|
228
|
+
*/
|
|
229
|
+
export declare class ChannelPingTimedOutError extends ChannelError {
|
|
230
|
+
constructor();
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* @category exception
|
|
234
|
+
*/
|
|
235
|
+
export declare class UnexpectedChannelMessageError extends ChannelError {
|
|
236
|
+
constructor(message: string);
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* @category exception
|
|
240
|
+
*/
|
|
241
|
+
export declare class ChannelIncomingMessageError extends ChannelError {
|
|
242
|
+
handlerError: BaseError;
|
|
243
|
+
incomingMessage: {
|
|
244
|
+
[key: string]: any;
|
|
245
|
+
};
|
|
246
|
+
constructor(handlerError: BaseError, incomingMessage: {
|
|
247
|
+
[key: string]: any;
|
|
248
|
+
});
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* @category exception
|
|
252
|
+
*/
|
|
253
|
+
export declare class UnknownChannelStateError extends ChannelError {
|
|
254
|
+
constructor();
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* @category exception
|
|
258
|
+
*/
|
|
259
|
+
export declare class InvalidAuthDataError extends CompilerError {
|
|
260
|
+
constructor(message: string);
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
* @category exception
|
|
264
|
+
*/
|
|
265
|
+
export declare class BytecodeMismatchError extends ContractError {
|
|
266
|
+
constructor(source: string);
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* @category exception
|
|
270
|
+
*/
|
|
271
|
+
export declare class DuplicateContractError extends ContractError {
|
|
272
|
+
constructor();
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
* @category exception
|
|
276
|
+
*/
|
|
277
|
+
export declare class InactiveContractError extends ContractError {
|
|
278
|
+
constructor(contractAddress: string);
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* @category exception
|
|
282
|
+
*/
|
|
283
|
+
export declare class InvalidMethodInvocationError extends ContractError {
|
|
284
|
+
constructor(message: string);
|
|
285
|
+
}
|
|
286
|
+
/**
|
|
287
|
+
* @category exception
|
|
288
|
+
*/
|
|
289
|
+
export declare class MissingContractAddressError extends ContractError {
|
|
290
|
+
constructor(message: string);
|
|
291
|
+
}
|
|
292
|
+
/**
|
|
293
|
+
* @category exception
|
|
294
|
+
*/
|
|
295
|
+
export declare class MissingContractDefError extends ContractError {
|
|
296
|
+
constructor();
|
|
297
|
+
}
|
|
298
|
+
/**
|
|
299
|
+
* @category exception
|
|
300
|
+
*/
|
|
301
|
+
export declare class MissingFunctionNameError extends ContractError {
|
|
302
|
+
constructor();
|
|
303
|
+
}
|
|
304
|
+
/**
|
|
305
|
+
* @category exception
|
|
306
|
+
*/
|
|
307
|
+
export declare class NodeInvocationError extends ContractError {
|
|
308
|
+
transaction: string;
|
|
309
|
+
constructor(message: string, transaction: string);
|
|
310
|
+
}
|
|
311
|
+
/**
|
|
312
|
+
* @category exception
|
|
313
|
+
*/
|
|
314
|
+
export declare class NoSuchContractFunctionError extends ContractError {
|
|
315
|
+
constructor(name: string);
|
|
316
|
+
}
|
|
317
|
+
/**
|
|
318
|
+
* @category exception
|
|
319
|
+
*/
|
|
320
|
+
export declare class NotPayableFunctionError extends ContractError {
|
|
321
|
+
constructor(amount: Int, fn: string);
|
|
322
|
+
}
|
|
323
|
+
/**
|
|
324
|
+
* @category exception
|
|
325
|
+
*/
|
|
326
|
+
export declare class MissingEventDefinitionError extends ContractError {
|
|
327
|
+
constructor(eventNameHash: string, eventAddress: string);
|
|
328
|
+
}
|
|
329
|
+
/**
|
|
330
|
+
* @category exception
|
|
331
|
+
*/
|
|
332
|
+
export declare class AmbiguousEventDefinitionError extends ContractError {
|
|
333
|
+
constructor(eventAddress: string, matchedEvents: Array<[
|
|
334
|
+
string,
|
|
335
|
+
string
|
|
336
|
+
]>);
|
|
337
|
+
}
|
|
338
|
+
/**
|
|
339
|
+
* @category exception
|
|
340
|
+
*/
|
|
341
|
+
export declare class InvalidChecksumError extends CryptographyError {
|
|
342
|
+
constructor();
|
|
343
|
+
}
|
|
344
|
+
/**
|
|
345
|
+
* @category exception
|
|
346
|
+
*/
|
|
347
|
+
export declare class InvalidPasswordError extends CryptographyError {
|
|
348
|
+
constructor();
|
|
349
|
+
}
|
|
350
|
+
/**
|
|
351
|
+
* @category exception
|
|
352
|
+
*/
|
|
353
|
+
export declare class MerkleTreeHashMismatchError extends CryptographyError {
|
|
354
|
+
constructor();
|
|
355
|
+
}
|
|
356
|
+
/**
|
|
357
|
+
* @category exception
|
|
358
|
+
*/
|
|
359
|
+
export declare class MissingNodeInTreeError extends CryptographyError {
|
|
360
|
+
constructor(message: string);
|
|
361
|
+
}
|
|
362
|
+
/**
|
|
363
|
+
* @category exception
|
|
364
|
+
*/
|
|
365
|
+
export declare class UnknownNodeLengthError extends CryptographyError {
|
|
366
|
+
constructor(nodeLength: number);
|
|
367
|
+
}
|
|
368
|
+
/**
|
|
369
|
+
* @category exception
|
|
370
|
+
*/
|
|
371
|
+
export declare class UnknownPathNibbleError extends CryptographyError {
|
|
372
|
+
constructor(nibble: number);
|
|
373
|
+
}
|
|
374
|
+
/**
|
|
375
|
+
* @category exception
|
|
376
|
+
*/
|
|
377
|
+
export declare class DuplicateNodeError extends NodeError {
|
|
378
|
+
constructor(name: string);
|
|
379
|
+
}
|
|
380
|
+
/**
|
|
381
|
+
* @category exception
|
|
382
|
+
*/
|
|
383
|
+
export declare class NodeNotFoundError extends NodeError {
|
|
384
|
+
constructor(message: string);
|
|
385
|
+
}
|
|
386
|
+
/**
|
|
387
|
+
* @category exception
|
|
388
|
+
*/
|
|
389
|
+
export declare class DecodeError extends TransactionError {
|
|
390
|
+
constructor(message: string);
|
|
391
|
+
}
|
|
392
|
+
/**
|
|
393
|
+
* @category exception
|
|
394
|
+
*/
|
|
395
|
+
export declare class PayloadLengthError extends TransactionError {
|
|
396
|
+
constructor(message: string);
|
|
397
|
+
}
|
|
398
|
+
/**
|
|
399
|
+
* @category exception
|
|
400
|
+
*/
|
|
401
|
+
export declare class DryRunError extends TransactionError {
|
|
402
|
+
constructor(message: string);
|
|
403
|
+
}
|
|
404
|
+
/**
|
|
405
|
+
* @category exception
|
|
406
|
+
*/
|
|
407
|
+
export declare class IllegalBidFeeError extends TransactionError {
|
|
408
|
+
constructor(message: string);
|
|
409
|
+
}
|
|
410
|
+
/**
|
|
411
|
+
* @category exception
|
|
412
|
+
*/
|
|
413
|
+
export declare class InvalidSignatureError extends TransactionError {
|
|
414
|
+
constructor(message: string);
|
|
415
|
+
}
|
|
416
|
+
/**
|
|
417
|
+
* @category exception
|
|
418
|
+
*/
|
|
419
|
+
export declare class InvalidTxParamsError extends TransactionError {
|
|
420
|
+
constructor(message: string);
|
|
421
|
+
}
|
|
422
|
+
/**
|
|
423
|
+
* @category exception
|
|
424
|
+
*/
|
|
425
|
+
export declare class PrefixNotFoundError extends TransactionError {
|
|
426
|
+
constructor(tag: number);
|
|
427
|
+
}
|
|
428
|
+
/**
|
|
429
|
+
* @category exception
|
|
430
|
+
*/
|
|
431
|
+
export declare class SchemaNotFoundError extends TransactionError {
|
|
432
|
+
constructor(schemaName: string, key: string, version: number);
|
|
433
|
+
}
|
|
434
|
+
/**
|
|
435
|
+
* @category exception
|
|
436
|
+
*/
|
|
437
|
+
export declare class TagNotFoundError extends TransactionError {
|
|
438
|
+
constructor(prefix: string);
|
|
439
|
+
}
|
|
440
|
+
/**
|
|
441
|
+
* @category exception
|
|
442
|
+
*/
|
|
443
|
+
export declare class TxNotInChainError extends TransactionError {
|
|
444
|
+
constructor(txHash: string);
|
|
445
|
+
}
|
|
446
|
+
/**
|
|
447
|
+
* @category exception
|
|
448
|
+
*/
|
|
449
|
+
export declare class UnsupportedABIversionError extends TransactionError {
|
|
450
|
+
constructor(message: string);
|
|
451
|
+
}
|
|
452
|
+
/**
|
|
453
|
+
* @category exception
|
|
454
|
+
*/
|
|
455
|
+
export declare class UnsupportedVMversionError extends TransactionError {
|
|
456
|
+
constructor(message: string);
|
|
457
|
+
}
|
|
458
|
+
/**
|
|
459
|
+
* @category exception
|
|
460
|
+
*/
|
|
461
|
+
export declare class AlreadyConnectedError extends WalletError {
|
|
462
|
+
constructor(message: string);
|
|
463
|
+
}
|
|
464
|
+
/**
|
|
465
|
+
* @category exception
|
|
466
|
+
*/
|
|
467
|
+
export declare class NoWalletConnectedError extends WalletError {
|
|
468
|
+
constructor(message: string);
|
|
469
|
+
}
|
|
470
|
+
/**
|
|
471
|
+
* @category exception
|
|
472
|
+
*/
|
|
473
|
+
export declare class RpcConnectionError extends WalletError {
|
|
474
|
+
constructor(message: string);
|
|
475
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import nacl from 'tweetnacl';
|
|
2
|
+
import { CryptographyError } from './errors';
|
|
3
|
+
/**
|
|
4
|
+
* @category exception
|
|
5
|
+
*/
|
|
6
|
+
export declare class DerivationError extends CryptographyError {
|
|
7
|
+
constructor(message: string);
|
|
8
|
+
}
|
|
9
|
+
interface KeyTreeNode {
|
|
10
|
+
secretKey: Uint8Array;
|
|
11
|
+
chainCode: Uint8Array;
|
|
12
|
+
}
|
|
13
|
+
interface HDWallet {
|
|
14
|
+
secretKey: string;
|
|
15
|
+
chainCode: string;
|
|
16
|
+
}
|
|
17
|
+
interface Account {
|
|
18
|
+
secretKey: string;
|
|
19
|
+
publicKey: string;
|
|
20
|
+
}
|
|
21
|
+
type Dec<N extends number> = [
|
|
22
|
+
-1,
|
|
23
|
+
0,
|
|
24
|
+
1,
|
|
25
|
+
2,
|
|
26
|
+
3,
|
|
27
|
+
4
|
|
28
|
+
][N];
|
|
29
|
+
type Bip32PathT<MaxLen extends number, H extends 'H' | 'h' | '\''> = MaxLen extends -1 ? `${number}${H}` : Bip32PathT<Dec<MaxLen>, H> | `${Bip32PathT<Dec<MaxLen>, H>}/${number}${H}`;
|
|
30
|
+
type Bip32Path<MaxLen extends number> = '' | Bip32PathT<MaxLen, 'H'> | Bip32PathT<MaxLen, 'h'> | Bip32PathT<MaxLen, '\''>;
|
|
31
|
+
/**
|
|
32
|
+
* @category hd-wallet
|
|
33
|
+
*/
|
|
34
|
+
export declare function deriveChild({ secretKey, chainCode }: KeyTreeNode, index: number): KeyTreeNode;
|
|
35
|
+
/**
|
|
36
|
+
* @category hd-wallet
|
|
37
|
+
*/
|
|
38
|
+
export declare function derivePathFromKey(path: Bip32Path<5>, key: KeyTreeNode): KeyTreeNode;
|
|
39
|
+
/**
|
|
40
|
+
* @category hd-wallet
|
|
41
|
+
*/
|
|
42
|
+
export declare function getMasterKeyFromSeed(seed: Uint8Array): KeyTreeNode;
|
|
43
|
+
/**
|
|
44
|
+
* @category hd-wallet
|
|
45
|
+
*/
|
|
46
|
+
export declare function derivePathFromSeed(path: 'm' | `m/${Bip32Path<5>}`, seed: Uint8Array): KeyTreeNode;
|
|
47
|
+
/**
|
|
48
|
+
* @category hd-wallet
|
|
49
|
+
*/
|
|
50
|
+
export declare function getKeyPair(secretKey: Uint8Array): nacl.SignKeyPair;
|
|
51
|
+
/**
|
|
52
|
+
* @category hd-wallet
|
|
53
|
+
*/
|
|
54
|
+
export declare function generateSaveHDWalletFromSeed(seed: Uint8Array, password: string): HDWallet;
|
|
55
|
+
/**
|
|
56
|
+
* @category hd-wallet
|
|
57
|
+
*/
|
|
58
|
+
export declare function getSaveHDWalletAccounts(saveHDWallet: HDWallet, password: string, accountCount: number): Account[];
|
|
59
|
+
/**
|
|
60
|
+
* @category hd-wallet
|
|
61
|
+
*/
|
|
62
|
+
export declare const getHdWalletAccountFromSeed: (seed: Uint8Array, accountIdx: number) => Account & {
|
|
63
|
+
idx: number;
|
|
64
|
+
};
|
|
65
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
stringify: (value: any, replacer?: (string | number)[] | null | undefined, space?: string | number | undefined) => string;
|
|
3
|
+
parse: (text: string, reviver?: ((this: any, key: string, value: any) => any) | undefined) => any;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import nacl from 'tweetnacl';
|
|
2
|
+
declare const DERIVED_KEY_FUNCTIONS: {
|
|
3
|
+
argon2id(pass: string | Uint8Array, salt: string | Uint8Array, params: Partial<Keystore['crypto']['kdf_params']>): Promise<Uint8Array>;
|
|
4
|
+
};
|
|
5
|
+
declare const CRYPTO_FUNCTIONS: {
|
|
6
|
+
'xsalsa20-poly1305': {
|
|
7
|
+
encrypt: nacl.secretbox;
|
|
8
|
+
decrypt(box: Uint8Array, nonce: Uint8Array, key: Uint8Array): Uint8Array;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export interface Keystore {
|
|
12
|
+
name: string;
|
|
13
|
+
version: 1;
|
|
14
|
+
public_key: string;
|
|
15
|
+
id: string;
|
|
16
|
+
crypto: {
|
|
17
|
+
secret_type: 'ed25519';
|
|
18
|
+
symmetric_alg: keyof typeof CRYPTO_FUNCTIONS;
|
|
19
|
+
ciphertext: string;
|
|
20
|
+
cipher_params: {
|
|
21
|
+
nonce: string;
|
|
22
|
+
};
|
|
23
|
+
kdf: keyof typeof DERIVED_KEY_FUNCTIONS;
|
|
24
|
+
kdf_params: {
|
|
25
|
+
memlimit_kib: number;
|
|
26
|
+
opslimit: number;
|
|
27
|
+
parallelism: number;
|
|
28
|
+
salt: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Recover plaintext private key from secret-storage key object.
|
|
34
|
+
* @category keystore
|
|
35
|
+
* @param password - Keystore object password.
|
|
36
|
+
* @param keystore - Keystore object.
|
|
37
|
+
* @returns Plaintext private key.
|
|
38
|
+
*/
|
|
39
|
+
export declare function recover(password: string | Uint8Array, { crypto }: Keystore): Promise<string>;
|
|
40
|
+
/**
|
|
41
|
+
* Export private key to keystore secret-storage format.
|
|
42
|
+
* @category keystore
|
|
43
|
+
* @param name - Key name.
|
|
44
|
+
* @param password - User-supplied password.
|
|
45
|
+
* @param privateKey - Private key as hex-string or a Buffer.
|
|
46
|
+
* @param nonce - Randomly generated 24byte nonce.
|
|
47
|
+
* @param salt - Randomly generated 16byte salt.
|
|
48
|
+
* @param options - Encryption parameters.
|
|
49
|
+
* @param options.kdf - Key derivation function.
|
|
50
|
+
* @param options.kdf_params - KDF parameters.
|
|
51
|
+
*/
|
|
52
|
+
export declare function dump(name: string, password: string | Uint8Array, privateKey: string | Uint8Array, nonce?: Uint8Array, salt?: Uint8Array, options?: Partial<Keystore['crypto']>): Promise<Keystore>;
|
|
53
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
export declare const pause: (duration: number) => Promise<void>;
|
|
3
|
+
export declare const mapObject: <InputV, OutputV>(object: {
|
|
4
|
+
[k: string]: InputV;
|
|
5
|
+
}, fn: (value: [
|
|
6
|
+
string,
|
|
7
|
+
InputV
|
|
8
|
+
], index: number, array: [
|
|
9
|
+
string,
|
|
10
|
+
InputV
|
|
11
|
+
][]) => [
|
|
12
|
+
string | number,
|
|
13
|
+
OutputV
|
|
14
|
+
]) => {
|
|
15
|
+
[k: string]: OutputV;
|
|
16
|
+
};
|
|
17
|
+
export declare const concatBuffers: typeof Buffer.concat;
|
|
18
|
+
/**
|
|
19
|
+
* Object key type guard
|
|
20
|
+
* @param key - Maybe object key
|
|
21
|
+
* @param object - Object
|
|
22
|
+
*/
|
|
23
|
+
export declare function isKeyOfObject<T extends object>(key: string | number | symbol, object: T): key is keyof T;
|
|
24
|
+
/**
|
|
25
|
+
* Array item type guard
|
|
26
|
+
* @param item - Maybe array item
|
|
27
|
+
* @param array - Array
|
|
28
|
+
*/
|
|
29
|
+
export declare function isItemOfArray<T>(item: any, array: readonly T[]): item is T;
|
|
30
|
+
export declare function isAccountNotFoundError(error: Error): boolean;
|
|
31
|
+
export type UnionToIntersection<Union> = (Union extends any ? (k: Union) => void : never) extends ((k: infer Intersection) => void) ? Intersection : never;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function semverSatisfies(version: string, geVersion: string, ltVersion: string): boolean;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Convert string from snake_case to PascalCase
|
|
3
|
+
* @param s - String to convert
|
|
4
|
+
* @returns Converted string
|
|
5
|
+
*/
|
|
6
|
+
export declare function snakeToPascal(s: string): string;
|
|
7
|
+
/**
|
|
8
|
+
* Convert string from PascalCase to snake_case
|
|
9
|
+
* @param s - String to convert
|
|
10
|
+
* @returns Converted string
|
|
11
|
+
*/
|
|
12
|
+
export declare function pascalToSnake(s: string): string;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import AeSdkBase from './AeSdkBase';
|
|
2
|
+
import { OnAccount } from './AeSdkMethods';
|
|
3
|
+
import AccountBase from './account/Base';
|
|
4
|
+
import { Encoded } from './utils/encoder';
|
|
5
|
+
export default class AeSdk extends AeSdkBase {
|
|
6
|
+
accounts: {
|
|
7
|
+
[key: Encoded.AccountAddress]: AccountBase;
|
|
8
|
+
};
|
|
9
|
+
selectedAddress?: Encoded.AccountAddress;
|
|
10
|
+
constructor({ accounts, ...options }?: {
|
|
11
|
+
accounts?: AccountBase[];
|
|
12
|
+
} & ConstructorParameters<typeof AeSdkBase>[0]);
|
|
13
|
+
_resolveAccount(account?: OnAccount): AccountBase;
|
|
14
|
+
/**
|
|
15
|
+
* Get accounts addresses
|
|
16
|
+
* @example addresses()
|
|
17
|
+
*/
|
|
18
|
+
addresses(): Encoded.AccountAddress[];
|
|
19
|
+
/**
|
|
20
|
+
* Add specific account
|
|
21
|
+
* @param account - Account instance
|
|
22
|
+
* @param options - Options
|
|
23
|
+
* @param options.select - Select account
|
|
24
|
+
* @example addAccount(account)
|
|
25
|
+
*/
|
|
26
|
+
addAccount(account: AccountBase, { select }?: {
|
|
27
|
+
select?: boolean;
|
|
28
|
+
}): void;
|
|
29
|
+
/**
|
|
30
|
+
* Remove specific account
|
|
31
|
+
* @param address - Address of account to remove
|
|
32
|
+
* @example removeAccount(address)
|
|
33
|
+
*/
|
|
34
|
+
removeAccount(address: Encoded.AccountAddress): void;
|
|
35
|
+
/**
|
|
36
|
+
* Select specific account
|
|
37
|
+
* @param address - Address of account to select
|
|
38
|
+
* @example selectAccount('ak_xxxxxxxx')
|
|
39
|
+
*/
|
|
40
|
+
selectAccount(address: Encoded.AccountAddress): void;
|
|
41
|
+
}
|