@aeternity/aepp-sdk 12.1.2 → 13.0.0-alpha.0
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/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 +6580 -8860
- 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 +27 -185
- package/es/AeSdkBase.mjs.map +1 -1
- package/es/AeSdkMethods.d.ts +124 -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 +7 -12
- package/es/Node.mjs +34 -47
- 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 +111 -0
- package/es/account/Generalized.mjs.map +1 -0
- package/es/account/Ledger.d.ts +28 -0
- package/es/account/Ledger.mjs +101 -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 -65
- 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 +3 -3
- package/es/aens.mjs +42 -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.mjs +3 -7
- 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 +4 -41
- 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 +1 -1
- package/es/chain.mjs +33 -58
- package/es/chain.mjs.map +1 -1
- package/es/channel/Base.d.ts +195 -0
- package/es/channel/Base.mjs +290 -0
- package/es/channel/Base.mjs.map +1 -0
- package/es/channel/Contract.d.ts +247 -0
- package/es/channel/Contract.mjs +420 -0
- package/es/channel/Contract.mjs.map +1 -0
- package/es/channel/Spend.d.ts +217 -0
- package/es/channel/Spend.mjs +383 -0
- package/es/channel/Spend.mjs.map +1 -0
- package/es/channel/handlers.d.ts +8 -21
- package/es/channel/handlers.mjs +141 -891
- package/es/channel/handlers.mjs.map +1 -1
- package/es/channel/internal.d.ts +27 -21
- package/es/channel/internal.mjs +98 -190
- package/es/channel/internal.mjs.map +1 -1
- package/es/contract/{Compiler.d.ts → CompilerHttp.d.ts} +3 -3
- package/es/contract/{Compiler.mjs → CompilerHttp.mjs} +8 -13
- package/es/contract/CompilerHttp.mjs.map +1 -0
- package/es/contract/Contract.d.ts +235 -0
- package/es/contract/Contract.mjs +534 -0
- package/es/contract/Contract.mjs.map +1 -0
- package/es/contract/ga.d.ts +7 -33
- package/es/contract/ga.mjs +20 -112
- package/es/contract/ga.mjs.map +1 -1
- package/es/index.d.ts +9 -6
- package/es/index.mjs +8 -6
- package/es/index.mjs.map +1 -1
- package/es/oracle.d.ts +5 -5
- package/es/oracle.mjs +33 -39
- package/es/oracle.mjs.map +1 -1
- package/es/spend.d.ts +3 -3
- package/es/spend.mjs +17 -20
- package/es/spend.mjs.map +1 -1
- package/es/tx/builder/constants.d.ts +2 -1
- package/es/tx/builder/constants.mjs +12 -12
- package/es/tx/builder/constants.mjs.map +1 -1
- package/es/tx/builder/field-types/address.d.ts +15 -0
- package/es/tx/builder/field-types/address.mjs +42 -0
- package/es/tx/builder/field-types/address.mjs.map +1 -0
- package/es/tx/builder/field-types/addresses.d.ts +6 -0
- package/es/tx/builder/field-types/addresses.mjs +13 -0
- package/es/tx/builder/field-types/addresses.mjs.map +1 -0
- package/es/tx/builder/field-types/coin-amount.d.ts +1 -2
- 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/deposit.d.ts +0 -1
- 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/enumeration.d.ts +5 -0
- package/es/tx/builder/field-types/enumeration.mjs +21 -0
- package/es/tx/builder/field-types/enumeration.mjs.map +1 -0
- package/es/tx/builder/field-types/fee.d.ts +1 -9
- package/es/tx/builder/field-types/fee.mjs +9 -25
- 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.mjs +4 -9
- 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 +23 -11
- package/es/tx/builder/field-types/index.mjs +10 -3
- package/es/tx/builder/field-types/index.mjs.map +1 -1
- package/es/tx/builder/field-types/name-fee.d.ts +0 -1
- 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 +4 -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/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/u-int.d.ts +1 -1
- 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 +1 -21
- package/es/tx/builder/index.mjs +29 -148
- package/es/tx/builder/index.mjs.map +1 -1
- package/es/tx/builder/schema.d.ts +336 -176
- package/es/tx/builder/schema.mjs +71 -78
- package/es/tx/builder/schema.mjs.map +1 -1
- package/es/tx/index.d.ts +3 -33
- package/es/tx/index.mjs +26 -43
- package/es/tx/index.mjs.map +1 -1
- package/es/tx/validator.d.ts +2 -2
- package/es/tx/validator.mjs +86 -59
- 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 +12 -6
- package/es/utils/errors.mjs +87 -163
- 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/mptree.d.ts +1 -1
- package/es/utils/mptree.mjs +4 -26
- package/es/utils/mptree.mjs.map +1 -1
- package/es/utils/other.d.ts +3 -1
- 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 +87 -48
- package/src/AeSdk.ts +15 -11
- package/src/AeSdkAepp.ts +9 -7
- package/src/AeSdkBase.ts +28 -202
- package/src/AeSdkMethods.ts +170 -0
- package/src/AeSdkWallet.ts +16 -47
- package/src/Node.ts +11 -15
- 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 +10 -9
- package/src/aepp-wallet-communication/connection/BrowserRuntime.ts +5 -4
- package/src/aepp-wallet-communication/connection/BrowserWindowMessage.ts +3 -3
- package/src/aepp-wallet-communication/rpc/RpcClient.ts +2 -2
- 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 +6 -3
- package/src/channel/Base.ts +327 -0
- package/src/channel/Contract.ts +487 -0
- package/src/channel/Spend.ts +403 -0
- package/src/channel/handlers.ts +154 -573
- package/src/channel/internal.ts +113 -142
- package/src/contract/{Compiler.ts → CompilerHttp.ts} +5 -5
- package/src/contract/Contract.ts +620 -0
- package/src/contract/ga.ts +18 -104
- package/src/index.ts +9 -8
- package/src/oracle.ts +7 -7
- package/src/spend.ts +5 -13
- package/src/tx/builder/constants.ts +1 -0
- package/src/tx/builder/field-types/address.ts +52 -0
- package/src/tx/builder/field-types/addresses.ts +18 -0
- package/src/tx/builder/field-types/coin-amount.ts +2 -8
- package/src/tx/builder/field-types/enumeration.ts +21 -0
- package/src/tx/builder/field-types/fee.ts +1 -3
- package/src/tx/builder/field-types/gas-limit.ts +2 -2
- package/src/tx/builder/field-types/gas-price.ts +0 -2
- package/src/tx/builder/field-types/index.ts +16 -6
- package/src/tx/builder/field-types/name-fee.ts +1 -1
- 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/u-int.ts +3 -2
- package/src/tx/builder/helpers.ts +10 -60
- package/src/tx/builder/index.ts +6 -65
- package/src/tx/builder/schema.ts +89 -100
- package/src/tx/index.ts +19 -15
- package/src/tx/validator.ts +36 -18
- package/src/typings/@aeternity__aepp-calldata/index.d.ts +20 -0
- package/src/utils/autorest.ts +16 -1
- package/src/utils/bytes.ts +5 -33
- package/src/utils/crypto.ts +23 -16
- package/src/utils/encoder.ts +0 -1
- package/src/utils/errors.ts +18 -12
- 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 +141 -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 +18 -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 +248 -0
- package/types-legacy/ts4.2/channel/Base.d.ts +194 -0
- package/types-legacy/ts4.2/channel/Contract.d.ts +247 -0
- package/types-legacy/ts4.2/channel/Spend.d.ts +217 -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/CompilerHttp.d.ts +18 -0
- package/types-legacy/ts4.2/contract/Contract.d.ts +237 -0
- package/types-legacy/ts4.2/contract/ga.d.ts +43 -0
- package/types-legacy/ts4.2/globals.d.ts +16 -0
- package/types-legacy/ts4.2/index.d.ts +39 -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 +71 -0
- package/types-legacy/ts4.2/tx/builder/field-types/address.d.ts +22 -0
- package/types-legacy/ts4.2/tx/builder/field-types/addresses.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/deposit.d.ts +14 -0
- package/types-legacy/ts4.2/tx/builder/field-types/enumeration.d.ts +5 -0
- package/types-legacy/ts4.2/tx/builder/field-types/fee.d.ts +17 -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 +12 -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 +85 -0
- package/types-legacy/ts4.2/tx/builder/field-types/name-fee.d.ts +19 -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/short-u-int.d.ts +6 -0
- package/types-legacy/ts4.2/tx/builder/field-types/u-int.d.ts +8 -0
- package/types-legacy/ts4.2/tx/builder/helpers.d.ts +112 -0
- package/types-legacy/ts4.2/tx/builder/index.d.ts +68 -0
- package/types-legacy/ts4.2/tx/builder/schema.d.ts +2963 -0
- package/types-legacy/ts4.2/tx/index.d.ts +34 -0
- package/types-legacy/ts4.2/tx/validator.d.ts +20 -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 +480 -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/mptree.d.ts +32 -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 +141 -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 +18 -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 +248 -0
- package/types-legacy/ts4.5/channel/Base.d.ts +194 -0
- package/types-legacy/ts4.5/channel/Contract.d.ts +247 -0
- package/types-legacy/ts4.5/channel/Spend.d.ts +217 -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/CompilerHttp.d.ts +18 -0
- package/types-legacy/ts4.5/contract/Contract.d.ts +237 -0
- package/types-legacy/ts4.5/contract/ga.d.ts +43 -0
- package/types-legacy/ts4.5/index.d.ts +38 -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 +71 -0
- package/types-legacy/ts4.5/tx/builder/field-types/address.d.ts +22 -0
- package/types-legacy/ts4.5/tx/builder/field-types/addresses.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/deposit.d.ts +14 -0
- package/types-legacy/ts4.5/tx/builder/field-types/enumeration.d.ts +5 -0
- package/types-legacy/ts4.5/tx/builder/field-types/fee.d.ts +17 -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 +12 -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 +85 -0
- package/types-legacy/ts4.5/tx/builder/field-types/name-fee.d.ts +19 -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/short-u-int.d.ts +6 -0
- package/types-legacy/ts4.5/tx/builder/field-types/u-int.d.ts +8 -0
- package/types-legacy/ts4.5/tx/builder/helpers.d.ts +112 -0
- package/types-legacy/ts4.5/tx/builder/index.d.ts +68 -0
- package/types-legacy/ts4.5/tx/builder/schema.d.ts +2963 -0
- package/types-legacy/ts4.5/tx/index.d.ts +34 -0
- package/types-legacy/ts4.5/tx/validator.d.ts +20 -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 +480 -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/mptree.d.ts +32 -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.mjs.map +0 -1
- package/es/contract/aci.d.ts +0 -127
- package/es/contract/aci.mjs +0 -509
- 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/src/channel/index.ts +0 -1025
- package/src/contract/aci.ts +0 -538
- 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
|
@@ -7,7 +7,7 @@ import { Tag } from './constants';
|
|
|
7
7
|
import { Field } from './field-types';
|
|
8
8
|
import { Encoded, Encoding } from '../../utils/encoder';
|
|
9
9
|
import MPTree from '../../utils/mptree';
|
|
10
|
-
import {
|
|
10
|
+
import { UnionToIntersection } from '../../utils/other';
|
|
11
11
|
export declare enum ORACLE_TTL_TYPES {
|
|
12
12
|
delta = 0,
|
|
13
13
|
block = 1
|
|
@@ -26,13 +26,11 @@ export declare const RESPONSE_TTL: {
|
|
|
26
26
|
type: ORACLE_TTL_TYPES;
|
|
27
27
|
value: number;
|
|
28
28
|
};
|
|
29
|
-
export declare const AMOUNT = 0;
|
|
30
|
-
export declare const MAX_AUTH_FUN_GAS = 50000;
|
|
31
29
|
export declare const DRY_RUN_ACCOUNT: {
|
|
32
30
|
readonly pub: "ak_11111111111111111111111111111111273Yts";
|
|
33
31
|
readonly amount: 100000000000000000000000000000000000n;
|
|
34
32
|
};
|
|
35
|
-
export
|
|
33
|
+
export type TxField = [
|
|
36
34
|
name: string,
|
|
37
35
|
type: FIELD_TYPES | Field,
|
|
38
36
|
prefix?: Encoding | Encoding[]
|
|
@@ -59,6 +57,11 @@ export declare enum ABI_VERSIONS {
|
|
|
59
57
|
SOPHIA = 1,
|
|
60
58
|
FATE = 3
|
|
61
59
|
}
|
|
60
|
+
export declare enum CallReturnType {
|
|
61
|
+
Ok = 0,
|
|
62
|
+
Error = 1,
|
|
63
|
+
Revert = 2
|
|
64
|
+
}
|
|
62
65
|
/**
|
|
63
66
|
* @category transaction builder
|
|
64
67
|
*/
|
|
@@ -81,7 +84,7 @@ export declare const PROTOCOL_VM_ABI: {
|
|
|
81
84
|
};
|
|
82
85
|
};
|
|
83
86
|
};
|
|
84
|
-
|
|
87
|
+
type PrefixType<Prefix> = Prefix extends Encoding ? Encoded.Generic<Prefix> : Prefix extends readonly Encoding[] ? Encoded.Generic<Prefix[number]> : Encoded.Generic<any>;
|
|
85
88
|
/**
|
|
86
89
|
* @category transaction builder
|
|
87
90
|
*/
|
|
@@ -93,32 +96,24 @@ export interface CtVersion {
|
|
|
93
96
|
* @category transaction builder
|
|
94
97
|
*/
|
|
95
98
|
export declare enum FIELD_TYPES {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
ctVersion = 16,
|
|
113
|
-
abiVersion = 17,
|
|
114
|
-
ttlType = 18,
|
|
115
|
-
sophiaCodeTypeInfo = 19,
|
|
116
|
-
payload = 20,
|
|
117
|
-
stateTree = 21
|
|
99
|
+
string = 0,
|
|
100
|
+
binary = 1,
|
|
101
|
+
bool = 2,
|
|
102
|
+
hex = 3,
|
|
103
|
+
rlpBinary = 4,
|
|
104
|
+
rlpBinaries = 5,
|
|
105
|
+
rawBinary = 6,
|
|
106
|
+
signatures = 7,
|
|
107
|
+
offChainUpdates = 8,
|
|
108
|
+
callStack = 9,
|
|
109
|
+
proofOfInclusion = 10,
|
|
110
|
+
mptrees = 11,
|
|
111
|
+
ctVersion = 12,
|
|
112
|
+
sophiaCodeTypeInfo = 13,
|
|
113
|
+
payload = 14,
|
|
114
|
+
stateTree = 15
|
|
118
115
|
}
|
|
119
116
|
interface BuildFieldTypes<Prefix extends undefined | Encoding | readonly Encoding[]> {
|
|
120
|
-
[FIELD_TYPES.id]: PrefixType<Prefix>;
|
|
121
|
-
[FIELD_TYPES.ids]: Array<Encoded.Generic<Prefix extends Encoding[] ? Prefix : any>>;
|
|
122
117
|
[FIELD_TYPES.string]: string;
|
|
123
118
|
[FIELD_TYPES.binary]: PrefixType<Prefix>;
|
|
124
119
|
[FIELD_TYPES.bool]: Boolean;
|
|
@@ -127,29 +122,24 @@ interface BuildFieldTypes<Prefix extends undefined | Encoding | readonly Encodin
|
|
|
127
122
|
[FIELD_TYPES.rlpBinaries]: any[];
|
|
128
123
|
[FIELD_TYPES.rawBinary]: Uint8Array;
|
|
129
124
|
[FIELD_TYPES.signatures]: Uint8Array[];
|
|
130
|
-
[FIELD_TYPES.pointers]: NamePointer[];
|
|
131
125
|
[FIELD_TYPES.offChainUpdates]: any;
|
|
132
126
|
[FIELD_TYPES.callStack]: any;
|
|
133
127
|
[FIELD_TYPES.proofOfInclusion]: any;
|
|
134
128
|
[FIELD_TYPES.mptrees]: MPTree[];
|
|
135
|
-
[FIELD_TYPES.callReturnType]: any;
|
|
136
129
|
[FIELD_TYPES.ctVersion]: CtVersion;
|
|
137
|
-
[FIELD_TYPES.abiVersion]: ABI_VERSIONS;
|
|
138
|
-
[FIELD_TYPES.ttlType]: ORACLE_TTL_TYPES;
|
|
139
130
|
[FIELD_TYPES.sophiaCodeTypeInfo]: any;
|
|
140
131
|
[FIELD_TYPES.payload]: string | undefined;
|
|
141
132
|
[FIELD_TYPES.stateTree]: any;
|
|
142
133
|
}
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
declare type NullablePartial<T, NK extends keyof T = {
|
|
134
|
+
type TxElem = readonly [string, FIELD_TYPES | Field] | readonly [string, FIELD_TYPES, Encoding | readonly Encoding[]];
|
|
135
|
+
type BuildTxArgBySchemaType<Type extends FIELD_TYPES | Field, Prefix extends undefined | Encoding | readonly Encoding[]> = Type extends Field ? Parameters<Type['serialize']>[0] : Type extends FIELD_TYPES ? BuildFieldTypes<Prefix>[Type] : never;
|
|
136
|
+
type NullablePartial<T, NK extends keyof T = {
|
|
147
137
|
[K in keyof T]: undefined extends T[K] ? K : never;
|
|
148
138
|
}[keyof T]> = Partial<Pick<T, NK>> & Omit<T, NK>;
|
|
149
|
-
|
|
139
|
+
type BuildTxArgBySchema<SchemaLine> = UnionToIntersection<SchemaLine extends ReadonlyArray<infer Elem> ? Elem extends TxElem ? NullablePartial<{
|
|
150
140
|
[k in Elem[0]]: BuildTxArgBySchemaType<Elem[1], Elem[2]>;
|
|
151
141
|
}> : never : never>;
|
|
152
|
-
export
|
|
142
|
+
export type RawTxObject<Tx extends TxSchema> = {
|
|
153
143
|
[k in keyof Tx]-?: Tx[k] extends BigNumber ? string : Tx[k];
|
|
154
144
|
};
|
|
155
145
|
export declare const TX_SCHEMA: {
|
|
@@ -182,7 +172,10 @@ export declare const TX_SCHEMA: {
|
|
|
182
172
|
}], readonly ["balance", {
|
|
183
173
|
serialize(value: import("./field-types/u-int").Int): Buffer;
|
|
184
174
|
deserialize(value: Buffer): string;
|
|
185
|
-
}], readonly ["gaContract",
|
|
175
|
+
}], readonly ["gaContract", {
|
|
176
|
+
serialize: (value: `ct_${string}` | `nm_${string}`) => Buffer;
|
|
177
|
+
deserialize: (value: Buffer) => `ct_${string}` | `nm_${string}`;
|
|
178
|
+
}], readonly ["gaAuthFun", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray]];
|
|
186
179
|
};
|
|
187
180
|
readonly 11: {
|
|
188
181
|
readonly 1: readonly [readonly ["tag", {
|
|
@@ -200,10 +193,15 @@ export declare const TX_SCHEMA: {
|
|
|
200
193
|
}], readonly ["VSN", {
|
|
201
194
|
serialize(value: number): Buffer;
|
|
202
195
|
deserialize(value: Buffer): number;
|
|
203
|
-
}], readonly ["senderId",
|
|
196
|
+
}], readonly ["senderId", {
|
|
197
|
+
serialize: (value: `ak_${string}`) => Buffer;
|
|
198
|
+
deserialize: (value: Buffer) => `ak_${string}`;
|
|
199
|
+
}], readonly ["recipientId", {
|
|
200
|
+
serialize: (value: `ak_${string}` | `nm_${string}`) => Buffer;
|
|
201
|
+
deserialize: (value: Buffer) => `ak_${string}` | `nm_${string}`;
|
|
202
|
+
}], readonly ["amount", {
|
|
204
203
|
serializeAettos(value: string | undefined): string;
|
|
205
|
-
|
|
206
|
-
serialize(value: import("./field-types/u-int").Int, options: import("./field-types/coin-amount").Options): Buffer;
|
|
204
|
+
serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
207
205
|
deserialize(value: Buffer): string;
|
|
208
206
|
}], readonly ["fee", {
|
|
209
207
|
serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
|
|
@@ -211,8 +209,7 @@ export declare const TX_SCHEMA: {
|
|
|
211
209
|
rebuildTx: (params: any) => any;
|
|
212
210
|
_computingMinFee?: string | undefined;
|
|
213
211
|
}): string;
|
|
214
|
-
serialize
|
|
215
|
-
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
212
|
+
serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
216
213
|
deserialize(value: Buffer): string;
|
|
217
214
|
}], readonly ["ttl", {
|
|
218
215
|
serialize(value: number): Buffer;
|
|
@@ -229,17 +226,22 @@ export declare const TX_SCHEMA: {
|
|
|
229
226
|
}], readonly ["VSN", {
|
|
230
227
|
serialize(value: number): Buffer;
|
|
231
228
|
deserialize(value: Buffer): number;
|
|
232
|
-
}], readonly ["accountId",
|
|
229
|
+
}], readonly ["accountId", {
|
|
230
|
+
serialize: (value: `ak_${string}`) => Buffer;
|
|
231
|
+
deserialize: (value: Buffer) => `ak_${string}`;
|
|
232
|
+
}], readonly ["nonce", {
|
|
233
233
|
serialize(value: number): Buffer;
|
|
234
234
|
deserialize(value: Buffer): number;
|
|
235
|
-
}], readonly ["commitmentId",
|
|
235
|
+
}], readonly ["commitmentId", {
|
|
236
|
+
serialize: (value: `cm_${string}`) => Buffer;
|
|
237
|
+
deserialize: (value: Buffer) => `cm_${string}`;
|
|
238
|
+
}], readonly ["fee", {
|
|
236
239
|
serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
|
|
237
240
|
txType: Tag;
|
|
238
241
|
rebuildTx: (params: any) => any;
|
|
239
242
|
_computingMinFee?: string | undefined;
|
|
240
243
|
}): string;
|
|
241
|
-
serialize
|
|
242
|
-
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
244
|
+
serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
243
245
|
deserialize(value: Buffer): string;
|
|
244
246
|
}], readonly ["ttl", {
|
|
245
247
|
serialize(value: number): Buffer;
|
|
@@ -253,7 +255,10 @@ export declare const TX_SCHEMA: {
|
|
|
253
255
|
}], readonly ["VSN", {
|
|
254
256
|
serialize(value: number): Buffer;
|
|
255
257
|
deserialize(value: Buffer): number;
|
|
256
|
-
}], readonly ["accountId",
|
|
258
|
+
}], readonly ["accountId", {
|
|
259
|
+
serialize: (value: `ak_${string}`) => Buffer;
|
|
260
|
+
deserialize: (value: Buffer) => `ak_${string}`;
|
|
261
|
+
}], readonly ["nonce", {
|
|
257
262
|
serialize(value: number): Buffer;
|
|
258
263
|
deserialize(value: Buffer): number;
|
|
259
264
|
}], readonly ["name", {
|
|
@@ -269,7 +274,6 @@ export declare const TX_SCHEMA: {
|
|
|
269
274
|
serialize(value: import("./field-types/u-int").Int | undefined, txFields: {
|
|
270
275
|
name: `${string}.chain`;
|
|
271
276
|
} & import("./field-types/coin-amount").Options): Buffer;
|
|
272
|
-
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
273
277
|
deserialize(value: Buffer): string;
|
|
274
278
|
}], readonly ["fee", {
|
|
275
279
|
serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
|
|
@@ -277,8 +281,7 @@ export declare const TX_SCHEMA: {
|
|
|
277
281
|
rebuildTx: (params: any) => any;
|
|
278
282
|
_computingMinFee?: string | undefined;
|
|
279
283
|
}): string;
|
|
280
|
-
serialize
|
|
281
|
-
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
284
|
+
serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
282
285
|
deserialize(value: Buffer): string;
|
|
283
286
|
}], readonly ["ttl", {
|
|
284
287
|
serialize(value: number): Buffer;
|
|
@@ -292,16 +295,26 @@ export declare const TX_SCHEMA: {
|
|
|
292
295
|
}], readonly ["VSN", {
|
|
293
296
|
serialize(value: number): Buffer;
|
|
294
297
|
deserialize(value: Buffer): number;
|
|
295
|
-
}], readonly ["accountId",
|
|
298
|
+
}], readonly ["accountId", {
|
|
299
|
+
serialize: (value: `ak_${string}`) => Buffer;
|
|
300
|
+
deserialize: (value: Buffer) => `ak_${string}`;
|
|
301
|
+
}], readonly ["nonce", {
|
|
296
302
|
serialize(value: number): Buffer;
|
|
297
303
|
deserialize(value: Buffer): number;
|
|
298
304
|
}], readonly ["nameId", {
|
|
299
305
|
serialize(value: `nm_${string}` | `${string}.chain`): Buffer;
|
|
300
|
-
deserialize(value: Buffer)
|
|
306
|
+
deserialize: (value: Buffer) => `nm_${string}`;
|
|
301
307
|
}], readonly ["nameTtl", {
|
|
302
|
-
serialize(value:
|
|
303
|
-
deserialize(value: Buffer):
|
|
304
|
-
}], readonly ["pointers",
|
|
308
|
+
serialize(value: number): Buffer;
|
|
309
|
+
deserialize(value: Buffer): number;
|
|
310
|
+
}], readonly ["pointers", {
|
|
311
|
+
serialize(pointers: (import("../../apis/node").NamePointer & {
|
|
312
|
+
id: `ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`;
|
|
313
|
+
})[]): Buffer[][];
|
|
314
|
+
deserialize(pointers: [key: Buffer, id: Buffer][]): (import("../../apis/node").NamePointer & {
|
|
315
|
+
id: `ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`;
|
|
316
|
+
})[];
|
|
317
|
+
}], readonly ["clientTtl", {
|
|
305
318
|
serialize(value: number): Buffer;
|
|
306
319
|
deserialize(value: Buffer): number;
|
|
307
320
|
}], readonly ["fee", {
|
|
@@ -310,8 +323,7 @@ export declare const TX_SCHEMA: {
|
|
|
310
323
|
rebuildTx: (params: any) => any;
|
|
311
324
|
_computingMinFee?: string | undefined;
|
|
312
325
|
}): string;
|
|
313
|
-
serialize
|
|
314
|
-
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
326
|
+
serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
315
327
|
deserialize(value: Buffer): string;
|
|
316
328
|
}], readonly ["ttl", {
|
|
317
329
|
serialize(value: number): Buffer;
|
|
@@ -325,20 +337,25 @@ export declare const TX_SCHEMA: {
|
|
|
325
337
|
}], readonly ["VSN", {
|
|
326
338
|
serialize(value: number): Buffer;
|
|
327
339
|
deserialize(value: Buffer): number;
|
|
328
|
-
}], readonly ["accountId",
|
|
340
|
+
}], readonly ["accountId", {
|
|
341
|
+
serialize: (value: `ak_${string}`) => Buffer;
|
|
342
|
+
deserialize: (value: Buffer) => `ak_${string}`;
|
|
343
|
+
}], readonly ["nonce", {
|
|
329
344
|
serialize(value: number): Buffer;
|
|
330
345
|
deserialize(value: Buffer): number;
|
|
331
346
|
}], readonly ["nameId", {
|
|
332
347
|
serialize(value: `nm_${string}` | `${string}.chain`): Buffer;
|
|
333
|
-
deserialize(value: Buffer)
|
|
334
|
-
}], readonly ["recipientId",
|
|
348
|
+
deserialize: (value: Buffer) => `nm_${string}`;
|
|
349
|
+
}], readonly ["recipientId", {
|
|
350
|
+
serialize: (value: `ak_${string}` | `nm_${string}`) => Buffer;
|
|
351
|
+
deserialize: (value: Buffer) => `ak_${string}` | `nm_${string}`;
|
|
352
|
+
}], readonly ["fee", {
|
|
335
353
|
serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
|
|
336
354
|
txType: Tag;
|
|
337
355
|
rebuildTx: (params: any) => any;
|
|
338
356
|
_computingMinFee?: string | undefined;
|
|
339
357
|
}): string;
|
|
340
|
-
serialize
|
|
341
|
-
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
358
|
+
serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
342
359
|
deserialize(value: Buffer): string;
|
|
343
360
|
}], readonly ["ttl", {
|
|
344
361
|
serialize(value: number): Buffer;
|
|
@@ -352,20 +369,22 @@ export declare const TX_SCHEMA: {
|
|
|
352
369
|
}], readonly ["VSN", {
|
|
353
370
|
serialize(value: number): Buffer;
|
|
354
371
|
deserialize(value: Buffer): number;
|
|
355
|
-
}], readonly ["accountId",
|
|
372
|
+
}], readonly ["accountId", {
|
|
373
|
+
serialize: (value: `ak_${string}`) => Buffer;
|
|
374
|
+
deserialize: (value: Buffer) => `ak_${string}`;
|
|
375
|
+
}], readonly ["nonce", {
|
|
356
376
|
serialize(value: number): Buffer;
|
|
357
377
|
deserialize(value: Buffer): number;
|
|
358
378
|
}], readonly ["nameId", {
|
|
359
379
|
serialize(value: `nm_${string}` | `${string}.chain`): Buffer;
|
|
360
|
-
deserialize(value: Buffer)
|
|
380
|
+
deserialize: (value: Buffer) => `nm_${string}`;
|
|
361
381
|
}], readonly ["fee", {
|
|
362
382
|
serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
|
|
363
383
|
txType: Tag;
|
|
364
384
|
rebuildTx: (params: any) => any;
|
|
365
385
|
_computingMinFee?: string | undefined;
|
|
366
386
|
}): string;
|
|
367
|
-
serialize
|
|
368
|
-
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
387
|
+
serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
369
388
|
deserialize(value: Buffer): string;
|
|
370
389
|
}], readonly ["ttl", {
|
|
371
390
|
serialize(value: number): Buffer;
|
|
@@ -379,10 +398,15 @@ export declare const TX_SCHEMA: {
|
|
|
379
398
|
}], readonly ["VSN", {
|
|
380
399
|
serialize(value: number): Buffer;
|
|
381
400
|
deserialize(value: Buffer): number;
|
|
382
|
-
}], readonly ["owner",
|
|
401
|
+
}], readonly ["owner", {
|
|
402
|
+
serialize: (value: `ak_${string}`) => Buffer;
|
|
403
|
+
deserialize: (value: Buffer) => `ak_${string}`;
|
|
404
|
+
}], readonly ["ctVersion", FIELD_TYPES.ctVersion], readonly ["code", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray], readonly ["log", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray], readonly ["active", FIELD_TYPES.bool], readonly ["referers", {
|
|
405
|
+
serialize: (value: `ak_${string}`[]) => Buffer[];
|
|
406
|
+
deserialize: (value: Buffer[]) => `ak_${string}`[];
|
|
407
|
+
}], readonly ["deposit", {
|
|
383
408
|
serialize(value: import("./field-types/u-int").Int | undefined, options: import("./field-types/coin-amount").Options): Buffer;
|
|
384
409
|
serializeAettos(value: string | undefined): string;
|
|
385
|
-
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
386
410
|
deserialize(value: Buffer): string;
|
|
387
411
|
}]];
|
|
388
412
|
};
|
|
@@ -393,7 +417,10 @@ export declare const TX_SCHEMA: {
|
|
|
393
417
|
}], readonly ["VSN", {
|
|
394
418
|
serialize(value: number): Buffer;
|
|
395
419
|
deserialize(value: Buffer): number;
|
|
396
|
-
}], readonly ["ownerId",
|
|
420
|
+
}], readonly ["ownerId", {
|
|
421
|
+
serialize: (value: `ak_${string}`) => Buffer;
|
|
422
|
+
deserialize: (value: Buffer) => `ak_${string}`;
|
|
423
|
+
}], readonly ["nonce", {
|
|
397
424
|
serialize(value: number): Buffer;
|
|
398
425
|
deserialize(value: Buffer): number;
|
|
399
426
|
}], readonly ["code", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray], readonly ["ctVersion", FIELD_TYPES.ctVersion], readonly ["fee", {
|
|
@@ -402,8 +429,7 @@ export declare const TX_SCHEMA: {
|
|
|
402
429
|
rebuildTx: (params: any) => any;
|
|
403
430
|
_computingMinFee?: string | undefined;
|
|
404
431
|
}): string;
|
|
405
|
-
serialize
|
|
406
|
-
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
432
|
+
serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
407
433
|
deserialize(value: Buffer): string;
|
|
408
434
|
}], readonly ["ttl", {
|
|
409
435
|
serialize(value: number): Buffer;
|
|
@@ -411,12 +437,10 @@ export declare const TX_SCHEMA: {
|
|
|
411
437
|
}], readonly ["deposit", {
|
|
412
438
|
serialize(value: import("./field-types/u-int").Int | undefined, options: import("./field-types/coin-amount").Options): Buffer;
|
|
413
439
|
serializeAettos(value: string | undefined): string;
|
|
414
|
-
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
415
440
|
deserialize(value: Buffer): string;
|
|
416
441
|
}], readonly ["amount", {
|
|
417
442
|
serializeAettos(value: string | undefined): string;
|
|
418
|
-
|
|
419
|
-
serialize(value: import("./field-types/u-int").Int, options: import("./field-types/coin-amount").Options): Buffer;
|
|
443
|
+
serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
420
444
|
deserialize(value: Buffer): string;
|
|
421
445
|
}], readonly ["gasLimit", {
|
|
422
446
|
serialize(_value: number | undefined, { txType, rebuildTx, gasMax, _computingGasLimit, }: {
|
|
@@ -428,8 +452,7 @@ export declare const TX_SCHEMA: {
|
|
|
428
452
|
deserialize(value: Buffer): number;
|
|
429
453
|
}], readonly ["gasPrice", {
|
|
430
454
|
serializeAettos(value?: string | undefined): string;
|
|
431
|
-
serialize
|
|
432
|
-
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
455
|
+
serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
433
456
|
deserialize(value: Buffer): string;
|
|
434
457
|
}], readonly ["callData", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray]];
|
|
435
458
|
};
|
|
@@ -440,25 +463,32 @@ export declare const TX_SCHEMA: {
|
|
|
440
463
|
}], readonly ["VSN", {
|
|
441
464
|
serialize(value: number): Buffer;
|
|
442
465
|
deserialize(value: Buffer): number;
|
|
443
|
-
}], readonly ["callerId",
|
|
466
|
+
}], readonly ["callerId", {
|
|
467
|
+
serialize: (value: `ak_${string}`) => Buffer;
|
|
468
|
+
deserialize: (value: Buffer) => `ak_${string}`;
|
|
469
|
+
}], readonly ["nonce", {
|
|
444
470
|
serialize(value: number): Buffer;
|
|
445
471
|
deserialize(value: Buffer): number;
|
|
446
|
-
}], readonly ["contractId",
|
|
472
|
+
}], readonly ["contractId", {
|
|
473
|
+
serialize: (value: `ct_${string}` | `nm_${string}`) => Buffer;
|
|
474
|
+
deserialize: (value: Buffer) => `ct_${string}` | `nm_${string}`;
|
|
475
|
+
}], readonly ["abiVersion", {
|
|
476
|
+
serialize: (value: ABI_VERSIONS) => Buffer;
|
|
477
|
+
deserialize: (value: Buffer) => ABI_VERSIONS;
|
|
478
|
+
}], readonly ["fee", {
|
|
447
479
|
serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
|
|
448
480
|
txType: Tag;
|
|
449
481
|
rebuildTx: (params: any) => any;
|
|
450
482
|
_computingMinFee?: string | undefined;
|
|
451
483
|
}): string;
|
|
452
|
-
serialize
|
|
453
|
-
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
484
|
+
serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
454
485
|
deserialize(value: Buffer): string;
|
|
455
486
|
}], readonly ["ttl", {
|
|
456
487
|
serialize(value: number): Buffer;
|
|
457
488
|
deserialize(value: Buffer): number;
|
|
458
489
|
}], readonly ["amount", {
|
|
459
490
|
serializeAettos(value: string | undefined): string;
|
|
460
|
-
|
|
461
|
-
serialize(value: import("./field-types/u-int").Int, options: import("./field-types/coin-amount").Options): Buffer;
|
|
491
|
+
serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
462
492
|
deserialize(value: Buffer): string;
|
|
463
493
|
}], readonly ["gasLimit", {
|
|
464
494
|
serialize(_value: number | undefined, { txType, rebuildTx, gasMax, _computingGasLimit, }: {
|
|
@@ -470,8 +500,7 @@ export declare const TX_SCHEMA: {
|
|
|
470
500
|
deserialize(value: Buffer): number;
|
|
471
501
|
}], readonly ["gasPrice", {
|
|
472
502
|
serializeAettos(value?: string | undefined): string;
|
|
473
|
-
serialize
|
|
474
|
-
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
503
|
+
serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
475
504
|
deserialize(value: Buffer): string;
|
|
476
505
|
}], readonly ["callData", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray]];
|
|
477
506
|
};
|
|
@@ -482,21 +511,29 @@ export declare const TX_SCHEMA: {
|
|
|
482
511
|
}], readonly ["VSN", {
|
|
483
512
|
serialize(value: number): Buffer;
|
|
484
513
|
deserialize(value: Buffer): number;
|
|
485
|
-
}], readonly ["callerId",
|
|
514
|
+
}], readonly ["callerId", {
|
|
515
|
+
serialize: (value: `ak_${string}`) => Buffer;
|
|
516
|
+
deserialize: (value: Buffer) => `ak_${string}`;
|
|
517
|
+
}], readonly ["callerNonce", {
|
|
486
518
|
serialize(value: number): Buffer;
|
|
487
519
|
deserialize(value: Buffer): number;
|
|
488
520
|
}], readonly ["height", {
|
|
489
521
|
serialize(value: number): Buffer;
|
|
490
522
|
deserialize(value: Buffer): number;
|
|
491
|
-
}], readonly ["contractId",
|
|
523
|
+
}], readonly ["contractId", {
|
|
524
|
+
serialize: (value: `ct_${string}`) => Buffer;
|
|
525
|
+
deserialize: (value: Buffer) => `ct_${string}`;
|
|
526
|
+
}], readonly ["gasPrice", {
|
|
492
527
|
serializeAettos(value?: string | undefined): string;
|
|
493
|
-
serialize
|
|
494
|
-
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
528
|
+
serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
495
529
|
deserialize(value: Buffer): string;
|
|
496
530
|
}], readonly ["gasUsed", {
|
|
497
531
|
serialize(value: number): Buffer;
|
|
498
532
|
deserialize(value: Buffer): number;
|
|
499
|
-
}], readonly ["returnValue", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray], readonly ["returnType",
|
|
533
|
+
}], readonly ["returnValue", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray], readonly ["returnType", {
|
|
534
|
+
serialize: (value: CallReturnType) => Buffer;
|
|
535
|
+
deserialize: (value: Buffer) => CallReturnType;
|
|
536
|
+
}], readonly ["log", FIELD_TYPES.rawBinary]];
|
|
500
537
|
};
|
|
501
538
|
readonly 22: {
|
|
502
539
|
readonly 1: readonly [readonly ["tag", {
|
|
@@ -505,15 +542,20 @@ export declare const TX_SCHEMA: {
|
|
|
505
542
|
}], readonly ["VSN", {
|
|
506
543
|
serialize(value: number): Buffer;
|
|
507
544
|
deserialize(value: Buffer): number;
|
|
508
|
-
}], readonly ["accountId",
|
|
545
|
+
}], readonly ["accountId", {
|
|
546
|
+
serialize: (value: `ak_${string}`) => Buffer;
|
|
547
|
+
deserialize: (value: Buffer) => `ak_${string}`;
|
|
548
|
+
}], readonly ["nonce", {
|
|
509
549
|
serialize(value: number): Buffer;
|
|
510
550
|
deserialize(value: Buffer): number;
|
|
511
551
|
}], readonly ["queryFormat", FIELD_TYPES.string], readonly ["responseFormat", FIELD_TYPES.string], readonly ["queryFee", {
|
|
512
552
|
serializeAettos(value: string | undefined): string;
|
|
513
|
-
|
|
514
|
-
serialize(value: import("./field-types/u-int").Int, options: import("./field-types/coin-amount").Options): Buffer;
|
|
553
|
+
serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
515
554
|
deserialize(value: Buffer): string;
|
|
516
|
-
}], readonly ["oracleTtlType",
|
|
555
|
+
}], readonly ["oracleTtlType", {
|
|
556
|
+
serialize: (value: ORACLE_TTL_TYPES) => Buffer;
|
|
557
|
+
deserialize: (value: Buffer) => ORACLE_TTL_TYPES;
|
|
558
|
+
}], readonly ["oracleTtlValue", {
|
|
517
559
|
serialize(value: number): Buffer;
|
|
518
560
|
deserialize(value: Buffer): number;
|
|
519
561
|
}], readonly ["fee", {
|
|
@@ -522,13 +564,15 @@ export declare const TX_SCHEMA: {
|
|
|
522
564
|
rebuildTx: (params: any) => any;
|
|
523
565
|
_computingMinFee?: string | undefined;
|
|
524
566
|
}): string;
|
|
525
|
-
serialize
|
|
526
|
-
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
567
|
+
serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
527
568
|
deserialize(value: Buffer): string;
|
|
528
569
|
}], readonly ["ttl", {
|
|
529
570
|
serialize(value: number): Buffer;
|
|
530
571
|
deserialize(value: Buffer): number;
|
|
531
|
-
}], readonly ["abiVersion",
|
|
572
|
+
}], readonly ["abiVersion", {
|
|
573
|
+
serialize: (value: ABI_VERSIONS) => Buffer;
|
|
574
|
+
deserialize: (value: Buffer) => ABI_VERSIONS;
|
|
575
|
+
}]];
|
|
532
576
|
};
|
|
533
577
|
readonly 25: {
|
|
534
578
|
readonly 1: readonly [readonly ["tag", {
|
|
@@ -537,10 +581,16 @@ export declare const TX_SCHEMA: {
|
|
|
537
581
|
}], readonly ["VSN", {
|
|
538
582
|
serialize(value: number): Buffer;
|
|
539
583
|
deserialize(value: Buffer): number;
|
|
540
|
-
}], readonly ["oracleId",
|
|
584
|
+
}], readonly ["oracleId", {
|
|
585
|
+
serialize: (value: `ok_${string}` | `nm_${string}`) => Buffer;
|
|
586
|
+
deserialize: (value: Buffer) => `ok_${string}` | `nm_${string}`;
|
|
587
|
+
}], readonly ["nonce", {
|
|
541
588
|
serialize(value: number): Buffer;
|
|
542
589
|
deserialize(value: Buffer): number;
|
|
543
|
-
}], readonly ["oracleTtlType",
|
|
590
|
+
}], readonly ["oracleTtlType", {
|
|
591
|
+
serialize: (value: ORACLE_TTL_TYPES) => Buffer;
|
|
592
|
+
deserialize: (value: Buffer) => ORACLE_TTL_TYPES;
|
|
593
|
+
}], readonly ["oracleTtlValue", {
|
|
544
594
|
serialize(value: number): Buffer;
|
|
545
595
|
deserialize(value: Buffer): number;
|
|
546
596
|
}], readonly ["fee", {
|
|
@@ -549,8 +599,7 @@ export declare const TX_SCHEMA: {
|
|
|
549
599
|
rebuildTx: (params: any) => any;
|
|
550
600
|
_computingMinFee?: string | undefined;
|
|
551
601
|
}): string;
|
|
552
|
-
serialize
|
|
553
|
-
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
602
|
+
serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
554
603
|
deserialize(value: Buffer): string;
|
|
555
604
|
}], readonly ["ttl", {
|
|
556
605
|
serialize(value: number): Buffer;
|
|
@@ -564,18 +613,29 @@ export declare const TX_SCHEMA: {
|
|
|
564
613
|
}], readonly ["VSN", {
|
|
565
614
|
serialize(value: number): Buffer;
|
|
566
615
|
deserialize(value: Buffer): number;
|
|
567
|
-
}], readonly ["senderId",
|
|
616
|
+
}], readonly ["senderId", {
|
|
617
|
+
serialize: (value: `ak_${string}`) => Buffer;
|
|
618
|
+
deserialize: (value: Buffer) => `ak_${string}`;
|
|
619
|
+
}], readonly ["nonce", {
|
|
568
620
|
serialize(value: number): Buffer;
|
|
569
621
|
deserialize(value: Buffer): number;
|
|
570
|
-
}], readonly ["oracleId",
|
|
622
|
+
}], readonly ["oracleId", {
|
|
623
|
+
serialize: (value: `ok_${string}` | `nm_${string}`) => Buffer;
|
|
624
|
+
deserialize: (value: Buffer) => `ok_${string}` | `nm_${string}`;
|
|
625
|
+
}], readonly ["query", FIELD_TYPES.string], readonly ["queryFee", {
|
|
571
626
|
serializeAettos(value: string | undefined): string;
|
|
572
|
-
|
|
573
|
-
serialize(value: import("./field-types/u-int").Int, options: import("./field-types/coin-amount").Options): Buffer;
|
|
627
|
+
serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
574
628
|
deserialize(value: Buffer): string;
|
|
575
|
-
}], readonly ["queryTtlType",
|
|
629
|
+
}], readonly ["queryTtlType", {
|
|
630
|
+
serialize: (value: ORACLE_TTL_TYPES) => Buffer;
|
|
631
|
+
deserialize: (value: Buffer) => ORACLE_TTL_TYPES;
|
|
632
|
+
}], readonly ["queryTtlValue", {
|
|
576
633
|
serialize(value: number): Buffer;
|
|
577
634
|
deserialize(value: Buffer): number;
|
|
578
|
-
}], readonly ["responseTtlType",
|
|
635
|
+
}], readonly ["responseTtlType", {
|
|
636
|
+
serialize: (value: ORACLE_TTL_TYPES) => Buffer;
|
|
637
|
+
deserialize: (value: Buffer) => ORACLE_TTL_TYPES;
|
|
638
|
+
}], readonly ["responseTtlValue", {
|
|
579
639
|
serialize(value: number): Buffer;
|
|
580
640
|
deserialize(value: Buffer): number;
|
|
581
641
|
}], readonly ["fee", {
|
|
@@ -584,8 +644,7 @@ export declare const TX_SCHEMA: {
|
|
|
584
644
|
rebuildTx: (params: any) => any;
|
|
585
645
|
_computingMinFee?: string | undefined;
|
|
586
646
|
}): string;
|
|
587
|
-
serialize
|
|
588
|
-
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
647
|
+
serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
589
648
|
deserialize(value: Buffer): string;
|
|
590
649
|
}], readonly ["ttl", {
|
|
591
650
|
serialize(value: number): Buffer;
|
|
@@ -599,10 +658,16 @@ export declare const TX_SCHEMA: {
|
|
|
599
658
|
}], readonly ["VSN", {
|
|
600
659
|
serialize(value: number): Buffer;
|
|
601
660
|
deserialize(value: Buffer): number;
|
|
602
|
-
}], readonly ["oracleId",
|
|
661
|
+
}], readonly ["oracleId", {
|
|
662
|
+
serialize: (value: `ok_${string}`) => Buffer;
|
|
663
|
+
deserialize: (value: Buffer) => `ok_${string}`;
|
|
664
|
+
}], readonly ["nonce", {
|
|
603
665
|
serialize(value: number): Buffer;
|
|
604
666
|
deserialize(value: Buffer): number;
|
|
605
|
-
}], readonly ["queryId", FIELD_TYPES.binary, Encoded.Encoding.OracleQueryId], readonly ["response", FIELD_TYPES.string], readonly ["responseTtlType",
|
|
667
|
+
}], readonly ["queryId", FIELD_TYPES.binary, Encoded.Encoding.OracleQueryId], readonly ["response", FIELD_TYPES.string], readonly ["responseTtlType", {
|
|
668
|
+
serialize: (value: ORACLE_TTL_TYPES) => Buffer;
|
|
669
|
+
deserialize: (value: Buffer) => ORACLE_TTL_TYPES;
|
|
670
|
+
}], readonly ["responseTtlValue", {
|
|
606
671
|
serialize(value: number): Buffer;
|
|
607
672
|
deserialize(value: Buffer): number;
|
|
608
673
|
}], readonly ["fee", {
|
|
@@ -611,8 +676,7 @@ export declare const TX_SCHEMA: {
|
|
|
611
676
|
rebuildTx: (params: any) => any;
|
|
612
677
|
_computingMinFee?: string | undefined;
|
|
613
678
|
}): string;
|
|
614
|
-
serialize
|
|
615
|
-
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
679
|
+
serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
616
680
|
deserialize(value: Buffer): string;
|
|
617
681
|
}], readonly ["ttl", {
|
|
618
682
|
serialize(value: number): Buffer;
|
|
@@ -626,10 +690,16 @@ export declare const TX_SCHEMA: {
|
|
|
626
690
|
}], readonly ["VSN", {
|
|
627
691
|
serialize(value: number): Buffer;
|
|
628
692
|
deserialize(value: Buffer): number;
|
|
629
|
-
}], readonly ["initiator",
|
|
693
|
+
}], readonly ["initiator", {
|
|
694
|
+
serialize: (value: `ak_${string}`) => Buffer;
|
|
695
|
+
deserialize: (value: Buffer) => `ak_${string}`;
|
|
696
|
+
}], readonly ["initiatorAmount", {
|
|
630
697
|
serialize(value: import("./field-types/u-int").Int): Buffer;
|
|
631
698
|
deserialize(value: Buffer): string;
|
|
632
|
-
}], readonly ["responder",
|
|
699
|
+
}], readonly ["responder", {
|
|
700
|
+
serialize: (value: `ak_${string}`) => Buffer;
|
|
701
|
+
deserialize: (value: Buffer) => `ak_${string}`;
|
|
702
|
+
}], readonly ["responderAmount", {
|
|
633
703
|
serialize(value: import("./field-types/u-int").Int): Buffer;
|
|
634
704
|
deserialize(value: Buffer): string;
|
|
635
705
|
}], readonly ["channelReserve", {
|
|
@@ -647,10 +717,9 @@ export declare const TX_SCHEMA: {
|
|
|
647
717
|
rebuildTx: (params: any) => any;
|
|
648
718
|
_computingMinFee?: string | undefined;
|
|
649
719
|
}): string;
|
|
650
|
-
serialize
|
|
651
|
-
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
720
|
+
serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
652
721
|
deserialize(value: Buffer): string;
|
|
653
|
-
}], readonly ["initiatorDelegateIds", FIELD_TYPES.string], readonly ["responderDelegateIds", FIELD_TYPES.string], readonly ["stateHash", FIELD_TYPES.binary,
|
|
722
|
+
}], readonly ["initiatorDelegateIds", FIELD_TYPES.string], readonly ["responderDelegateIds", FIELD_TYPES.string], readonly ["stateHash", FIELD_TYPES.binary, Encoded.Encoding.State], readonly ["nonce", {
|
|
654
723
|
serialize(value: number): Buffer;
|
|
655
724
|
deserialize(value: Buffer): number;
|
|
656
725
|
}]];
|
|
@@ -662,7 +731,13 @@ export declare const TX_SCHEMA: {
|
|
|
662
731
|
}], readonly ["VSN", {
|
|
663
732
|
serialize(value: number): Buffer;
|
|
664
733
|
deserialize(value: Buffer): number;
|
|
665
|
-
}], readonly ["channelId",
|
|
734
|
+
}], readonly ["channelId", {
|
|
735
|
+
serialize: (value: `ch_${string}`) => Buffer;
|
|
736
|
+
deserialize: (value: Buffer) => `ch_${string}`;
|
|
737
|
+
}], readonly ["fromId", {
|
|
738
|
+
serialize: (value: `ak_${string}`) => Buffer;
|
|
739
|
+
deserialize: (value: Buffer) => `ak_${string}`;
|
|
740
|
+
}], readonly ["initiatorAmountFinal", {
|
|
666
741
|
serialize(value: import("./field-types/u-int").Int): Buffer;
|
|
667
742
|
deserialize(value: Buffer): string;
|
|
668
743
|
}], readonly ["responderAmountFinal", {
|
|
@@ -677,8 +752,7 @@ export declare const TX_SCHEMA: {
|
|
|
677
752
|
rebuildTx: (params: any) => any;
|
|
678
753
|
_computingMinFee?: string | undefined;
|
|
679
754
|
}): string;
|
|
680
|
-
serialize
|
|
681
|
-
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
755
|
+
serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
682
756
|
deserialize(value: Buffer): string;
|
|
683
757
|
}], readonly ["nonce", {
|
|
684
758
|
serialize(value: number): Buffer;
|
|
@@ -692,7 +766,13 @@ export declare const TX_SCHEMA: {
|
|
|
692
766
|
}], readonly ["VSN", {
|
|
693
767
|
serialize(value: number): Buffer;
|
|
694
768
|
deserialize(value: Buffer): number;
|
|
695
|
-
}], readonly ["channelId",
|
|
769
|
+
}], readonly ["channelId", {
|
|
770
|
+
serialize: (value: `ch_${string}`) => Buffer;
|
|
771
|
+
deserialize: (value: Buffer) => `ch_${string}`;
|
|
772
|
+
}], readonly ["fromId", {
|
|
773
|
+
serialize: (value: `ak_${string}`) => Buffer;
|
|
774
|
+
deserialize: (value: Buffer) => `ak_${string}`;
|
|
775
|
+
}], readonly ["payload", FIELD_TYPES.binary, Encoded.Encoding.Transaction], readonly ["poi", FIELD_TYPES.binary, Encoded.Encoding.Poi], readonly ["ttl", {
|
|
696
776
|
serialize(value: number): Buffer;
|
|
697
777
|
deserialize(value: Buffer): number;
|
|
698
778
|
}], readonly ["fee", {
|
|
@@ -701,8 +781,7 @@ export declare const TX_SCHEMA: {
|
|
|
701
781
|
rebuildTx: (params: any) => any;
|
|
702
782
|
_computingMinFee?: string | undefined;
|
|
703
783
|
}): string;
|
|
704
|
-
serialize
|
|
705
|
-
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
784
|
+
serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
706
785
|
deserialize(value: Buffer): string;
|
|
707
786
|
}], readonly ["nonce", {
|
|
708
787
|
serialize(value: number): Buffer;
|
|
@@ -716,7 +795,13 @@ export declare const TX_SCHEMA: {
|
|
|
716
795
|
}], readonly ["VSN", {
|
|
717
796
|
serialize(value: number): Buffer;
|
|
718
797
|
deserialize(value: Buffer): number;
|
|
719
|
-
}], readonly ["channelId",
|
|
798
|
+
}], readonly ["channelId", {
|
|
799
|
+
serialize: (value: `ch_${string}`) => Buffer;
|
|
800
|
+
deserialize: (value: Buffer) => `ch_${string}`;
|
|
801
|
+
}], readonly ["fromId", {
|
|
802
|
+
serialize: (value: `ak_${string}`) => Buffer;
|
|
803
|
+
deserialize: (value: Buffer) => `ak_${string}`;
|
|
804
|
+
}], readonly ["payload", FIELD_TYPES.binary, Encoded.Encoding.Transaction], readonly ["poi", FIELD_TYPES.binary, Encoded.Encoding.Poi], readonly ["ttl", {
|
|
720
805
|
serialize(value: number): Buffer;
|
|
721
806
|
deserialize(value: Buffer): number;
|
|
722
807
|
}], readonly ["fee", {
|
|
@@ -725,8 +810,7 @@ export declare const TX_SCHEMA: {
|
|
|
725
810
|
rebuildTx: (params: any) => any;
|
|
726
811
|
_computingMinFee?: string | undefined;
|
|
727
812
|
}): string;
|
|
728
|
-
serialize
|
|
729
|
-
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
813
|
+
serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
730
814
|
deserialize(value: Buffer): string;
|
|
731
815
|
}], readonly ["nonce", {
|
|
732
816
|
serialize(value: number): Buffer;
|
|
@@ -740,7 +824,13 @@ export declare const TX_SCHEMA: {
|
|
|
740
824
|
}], readonly ["VSN", {
|
|
741
825
|
serialize(value: number): Buffer;
|
|
742
826
|
deserialize(value: Buffer): number;
|
|
743
|
-
}], readonly ["channelId",
|
|
827
|
+
}], readonly ["channelId", {
|
|
828
|
+
serialize: (value: `ch_${string}`) => Buffer;
|
|
829
|
+
deserialize: (value: Buffer) => `ch_${string}`;
|
|
830
|
+
}], readonly ["fromId", {
|
|
831
|
+
serialize: (value: `ak_${string}`) => Buffer;
|
|
832
|
+
deserialize: (value: Buffer) => `ak_${string}`;
|
|
833
|
+
}], readonly ["amount", {
|
|
744
834
|
serialize(value: import("./field-types/u-int").Int): Buffer;
|
|
745
835
|
deserialize(value: Buffer): string;
|
|
746
836
|
}], readonly ["ttl", {
|
|
@@ -752,10 +842,9 @@ export declare const TX_SCHEMA: {
|
|
|
752
842
|
rebuildTx: (params: any) => any;
|
|
753
843
|
_computingMinFee?: string | undefined;
|
|
754
844
|
}): string;
|
|
755
|
-
serialize
|
|
756
|
-
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
845
|
+
serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
757
846
|
deserialize(value: Buffer): string;
|
|
758
|
-
}], readonly ["stateHash", FIELD_TYPES.binary,
|
|
847
|
+
}], readonly ["stateHash", FIELD_TYPES.binary, Encoded.Encoding.State], readonly ["round", {
|
|
759
848
|
serialize(value: number): Buffer;
|
|
760
849
|
deserialize(value: Buffer): number;
|
|
761
850
|
}], readonly ["nonce", {
|
|
@@ -770,7 +859,13 @@ export declare const TX_SCHEMA: {
|
|
|
770
859
|
}], readonly ["VSN", {
|
|
771
860
|
serialize(value: number): Buffer;
|
|
772
861
|
deserialize(value: Buffer): number;
|
|
773
|
-
}], readonly ["channelId",
|
|
862
|
+
}], readonly ["channelId", {
|
|
863
|
+
serialize: (value: `ch_${string}`) => Buffer;
|
|
864
|
+
deserialize: (value: Buffer) => `ch_${string}`;
|
|
865
|
+
}], readonly ["toId", {
|
|
866
|
+
serialize: (value: `ak_${string}`) => Buffer;
|
|
867
|
+
deserialize: (value: Buffer) => `ak_${string}`;
|
|
868
|
+
}], readonly ["amount", {
|
|
774
869
|
serialize(value: import("./field-types/u-int").Int): Buffer;
|
|
775
870
|
deserialize(value: Buffer): string;
|
|
776
871
|
}], readonly ["ttl", {
|
|
@@ -782,10 +877,9 @@ export declare const TX_SCHEMA: {
|
|
|
782
877
|
rebuildTx: (params: any) => any;
|
|
783
878
|
_computingMinFee?: string | undefined;
|
|
784
879
|
}): string;
|
|
785
|
-
serialize
|
|
786
|
-
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
880
|
+
serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
787
881
|
deserialize(value: Buffer): string;
|
|
788
|
-
}], readonly ["stateHash", FIELD_TYPES.binary,
|
|
882
|
+
}], readonly ["stateHash", FIELD_TYPES.binary, Encoded.Encoding.State], readonly ["round", {
|
|
789
883
|
serialize(value: number): Buffer;
|
|
790
884
|
deserialize(value: Buffer): number;
|
|
791
885
|
}], readonly ["nonce", {
|
|
@@ -800,7 +894,13 @@ export declare const TX_SCHEMA: {
|
|
|
800
894
|
}], readonly ["VSN", {
|
|
801
895
|
serialize(value: number): Buffer;
|
|
802
896
|
deserialize(value: Buffer): number;
|
|
803
|
-
}], readonly ["channelId",
|
|
897
|
+
}], readonly ["channelId", {
|
|
898
|
+
serialize: (value: `ch_${string}`) => Buffer;
|
|
899
|
+
deserialize: (value: Buffer) => `ch_${string}`;
|
|
900
|
+
}], readonly ["fromId", {
|
|
901
|
+
serialize: (value: `ak_${string}`) => Buffer;
|
|
902
|
+
deserialize: (value: Buffer) => `ak_${string}`;
|
|
903
|
+
}], readonly ["initiatorAmountFinal", {
|
|
804
904
|
serialize(value: import("./field-types/u-int").Int): Buffer;
|
|
805
905
|
deserialize(value: Buffer): string;
|
|
806
906
|
}], readonly ["responderAmountFinal", {
|
|
@@ -815,8 +915,7 @@ export declare const TX_SCHEMA: {
|
|
|
815
915
|
rebuildTx: (params: any) => any;
|
|
816
916
|
_computingMinFee?: string | undefined;
|
|
817
917
|
}): string;
|
|
818
|
-
serialize
|
|
819
|
-
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
918
|
+
serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
820
919
|
deserialize(value: Buffer): string;
|
|
821
920
|
}], readonly ["nonce", {
|
|
822
921
|
serialize(value: number): Buffer;
|
|
@@ -830,10 +929,16 @@ export declare const TX_SCHEMA: {
|
|
|
830
929
|
}], readonly ["VSN", {
|
|
831
930
|
serialize(value: number): Buffer;
|
|
832
931
|
deserialize(value: Buffer): number;
|
|
833
|
-
}], readonly ["channelId",
|
|
932
|
+
}], readonly ["channelId", {
|
|
933
|
+
serialize: (value: `ch_${string}`) => Buffer;
|
|
934
|
+
deserialize: (value: Buffer) => `ch_${string}`;
|
|
935
|
+
}], readonly ["fromId", {
|
|
936
|
+
serialize: (value: `ak_${string}`) => Buffer;
|
|
937
|
+
deserialize: (value: Buffer) => `ak_${string}`;
|
|
938
|
+
}], readonly ["payload", FIELD_TYPES.binary, Encoded.Encoding.Transaction], readonly ["round", {
|
|
834
939
|
serialize(value: number): Buffer;
|
|
835
940
|
deserialize(value: Buffer): number;
|
|
836
|
-
}], readonly ["update", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray], readonly ["stateHash", FIELD_TYPES.binary,
|
|
941
|
+
}], readonly ["update", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray], readonly ["stateHash", FIELD_TYPES.binary, Encoded.Encoding.State], readonly ["offChainTrees", FIELD_TYPES.stateTree], readonly ["ttl", {
|
|
837
942
|
serialize(value: number): Buffer;
|
|
838
943
|
deserialize(value: Buffer): number;
|
|
839
944
|
}], readonly ["fee", {
|
|
@@ -842,8 +947,7 @@ export declare const TX_SCHEMA: {
|
|
|
842
947
|
rebuildTx: (params: any) => any;
|
|
843
948
|
_computingMinFee?: string | undefined;
|
|
844
949
|
}): string;
|
|
845
|
-
serialize
|
|
846
|
-
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
950
|
+
serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
847
951
|
deserialize(value: Buffer): string;
|
|
848
952
|
}], readonly ["nonce", {
|
|
849
953
|
serialize(value: number): Buffer;
|
|
@@ -857,10 +961,13 @@ export declare const TX_SCHEMA: {
|
|
|
857
961
|
}], readonly ["VSN", {
|
|
858
962
|
serialize(value: number): Buffer;
|
|
859
963
|
deserialize(value: Buffer): number;
|
|
860
|
-
}], readonly ["channelId",
|
|
964
|
+
}], readonly ["channelId", {
|
|
965
|
+
serialize: (value: `ch_${string}`) => Buffer;
|
|
966
|
+
deserialize: (value: Buffer) => `ch_${string}`;
|
|
967
|
+
}], readonly ["round", {
|
|
861
968
|
serialize(value: number): Buffer;
|
|
862
969
|
deserialize(value: Buffer): number;
|
|
863
|
-
}], readonly ["stateHash", FIELD_TYPES.binary,
|
|
970
|
+
}], readonly ["stateHash", FIELD_TYPES.binary, Encoded.Encoding.State]];
|
|
864
971
|
};
|
|
865
972
|
readonly 58: {
|
|
866
973
|
readonly 3: readonly [readonly ["tag", {
|
|
@@ -869,7 +976,13 @@ export declare const TX_SCHEMA: {
|
|
|
869
976
|
}], readonly ["VSN", {
|
|
870
977
|
serialize(value: number): Buffer;
|
|
871
978
|
deserialize(value: Buffer): number;
|
|
872
|
-
}], readonly ["initiator",
|
|
979
|
+
}], readonly ["initiator", {
|
|
980
|
+
serialize: (value: `ak_${string}`) => Buffer;
|
|
981
|
+
deserialize: (value: Buffer) => `ak_${string}`;
|
|
982
|
+
}], readonly ["responder", {
|
|
983
|
+
serialize: (value: `ak_${string}`) => Buffer;
|
|
984
|
+
deserialize: (value: Buffer) => `ak_${string}`;
|
|
985
|
+
}], readonly ["channelAmount", {
|
|
873
986
|
serialize(value: import("./field-types/u-int").Int): Buffer;
|
|
874
987
|
deserialize(value: Buffer): string;
|
|
875
988
|
}], readonly ["initiatorAmount", {
|
|
@@ -881,7 +994,13 @@ export declare const TX_SCHEMA: {
|
|
|
881
994
|
}], readonly ["channelReserve", {
|
|
882
995
|
serialize(value: import("./field-types/u-int").Int): Buffer;
|
|
883
996
|
deserialize(value: Buffer): string;
|
|
884
|
-
}], readonly ["initiatorDelegateIds",
|
|
997
|
+
}], readonly ["initiatorDelegateIds", {
|
|
998
|
+
serialize: (value: (`ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`)[]) => Buffer[];
|
|
999
|
+
deserialize: (value: Buffer[]) => (`ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`)[];
|
|
1000
|
+
}], readonly ["responderDelegateIds", {
|
|
1001
|
+
serialize: (value: (`ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`)[]) => Buffer[];
|
|
1002
|
+
deserialize: (value: Buffer[]) => (`ch_${string}` | `ct_${string}` | `ok_${string}` | `ak_${string}` | `cm_${string}` | `nm_${string}`)[];
|
|
1003
|
+
}], readonly ["stateHash", FIELD_TYPES.hex], readonly ["round", {
|
|
885
1004
|
serialize(value: number): Buffer;
|
|
886
1005
|
deserialize(value: Buffer): number;
|
|
887
1006
|
}], readonly ["soloRound", {
|
|
@@ -902,7 +1021,13 @@ export declare const TX_SCHEMA: {
|
|
|
902
1021
|
}], readonly ["VSN", {
|
|
903
1022
|
serialize(value: number): Buffer;
|
|
904
1023
|
deserialize(value: Buffer): number;
|
|
905
|
-
}], readonly ["channelId",
|
|
1024
|
+
}], readonly ["channelId", {
|
|
1025
|
+
serialize: (value: `ch_${string}`) => Buffer;
|
|
1026
|
+
deserialize: (value: Buffer) => `ch_${string}`;
|
|
1027
|
+
}], readonly ["fromId", {
|
|
1028
|
+
serialize: (value: `ak_${string}`) => Buffer;
|
|
1029
|
+
deserialize: (value: Buffer) => `ak_${string}`;
|
|
1030
|
+
}], readonly ["payload", FIELD_TYPES.binary, Encoded.Encoding.Transaction], readonly ["ttl", {
|
|
906
1031
|
serialize(value: number): Buffer;
|
|
907
1032
|
deserialize(value: Buffer): number;
|
|
908
1033
|
}], readonly ["fee", {
|
|
@@ -911,8 +1036,7 @@ export declare const TX_SCHEMA: {
|
|
|
911
1036
|
rebuildTx: (params: any) => any;
|
|
912
1037
|
_computingMinFee?: string | undefined;
|
|
913
1038
|
}): string;
|
|
914
|
-
serialize
|
|
915
|
-
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
1039
|
+
serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
916
1040
|
deserialize(value: Buffer): string;
|
|
917
1041
|
}], readonly ["nonce", {
|
|
918
1042
|
serialize(value: number): Buffer;
|
|
@@ -926,7 +1050,13 @@ export declare const TX_SCHEMA: {
|
|
|
926
1050
|
}], readonly ["VSN", {
|
|
927
1051
|
serialize(value: number): Buffer;
|
|
928
1052
|
deserialize(value: Buffer): number;
|
|
929
|
-
}], readonly ["from",
|
|
1053
|
+
}], readonly ["from", {
|
|
1054
|
+
serialize: (value: `ak_${string}`) => Buffer;
|
|
1055
|
+
deserialize: (value: Buffer) => `ak_${string}`;
|
|
1056
|
+
}], readonly ["to", {
|
|
1057
|
+
serialize: (value: `ak_${string}`) => Buffer;
|
|
1058
|
+
deserialize: (value: Buffer) => `ak_${string}`;
|
|
1059
|
+
}], readonly ["amount", {
|
|
930
1060
|
serialize(value: import("./field-types/u-int").Int): Buffer;
|
|
931
1061
|
deserialize(value: Buffer): string;
|
|
932
1062
|
}]];
|
|
@@ -938,7 +1068,10 @@ export declare const TX_SCHEMA: {
|
|
|
938
1068
|
}], readonly ["VSN", {
|
|
939
1069
|
serialize(value: number): Buffer;
|
|
940
1070
|
deserialize(value: Buffer): number;
|
|
941
|
-
}], readonly ["from",
|
|
1071
|
+
}], readonly ["from", {
|
|
1072
|
+
serialize: (value: `ak_${string}`) => Buffer;
|
|
1073
|
+
deserialize: (value: Buffer) => `ak_${string}`;
|
|
1074
|
+
}], readonly ["amount", {
|
|
942
1075
|
serialize(value: import("./field-types/u-int").Int): Buffer;
|
|
943
1076
|
deserialize(value: Buffer): string;
|
|
944
1077
|
}]];
|
|
@@ -950,7 +1083,10 @@ export declare const TX_SCHEMA: {
|
|
|
950
1083
|
}], readonly ["VSN", {
|
|
951
1084
|
serialize(value: number): Buffer;
|
|
952
1085
|
deserialize(value: Buffer): number;
|
|
953
|
-
}], readonly ["from",
|
|
1086
|
+
}], readonly ["from", {
|
|
1087
|
+
serialize: (value: `ak_${string}`) => Buffer;
|
|
1088
|
+
deserialize: (value: Buffer) => `ak_${string}`;
|
|
1089
|
+
}], readonly ["amount", {
|
|
954
1090
|
serialize(value: import("./field-types/u-int").Int): Buffer;
|
|
955
1091
|
deserialize(value: Buffer): string;
|
|
956
1092
|
}]];
|
|
@@ -962,7 +1098,10 @@ export declare const TX_SCHEMA: {
|
|
|
962
1098
|
}], readonly ["VSN", {
|
|
963
1099
|
serialize(value: number): Buffer;
|
|
964
1100
|
deserialize(value: Buffer): number;
|
|
965
|
-
}], readonly ["owner",
|
|
1101
|
+
}], readonly ["owner", {
|
|
1102
|
+
serialize: (value: `ak_${string}`) => Buffer;
|
|
1103
|
+
deserialize: (value: Buffer) => `ak_${string}`;
|
|
1104
|
+
}], readonly ["ctVersion", FIELD_TYPES.ctVersion], readonly ["code", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray], readonly ["deposit", {
|
|
966
1105
|
serialize(value: import("./field-types/u-int").Int): Buffer;
|
|
967
1106
|
deserialize(value: Buffer): string;
|
|
968
1107
|
}], readonly ["callData", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray]];
|
|
@@ -974,13 +1113,21 @@ export declare const TX_SCHEMA: {
|
|
|
974
1113
|
}], readonly ["VSN", {
|
|
975
1114
|
serialize(value: number): Buffer;
|
|
976
1115
|
deserialize(value: Buffer): number;
|
|
977
|
-
}], readonly ["caller",
|
|
1116
|
+
}], readonly ["caller", {
|
|
1117
|
+
serialize: (value: `ak_${string}`) => Buffer;
|
|
1118
|
+
deserialize: (value: Buffer) => `ak_${string}`;
|
|
1119
|
+
}], readonly ["contract", {
|
|
1120
|
+
serialize: (value: `ct_${string}`) => Buffer;
|
|
1121
|
+
deserialize: (value: Buffer) => `ct_${string}`;
|
|
1122
|
+
}], readonly ["abiVersion", {
|
|
1123
|
+
serialize: (value: ABI_VERSIONS) => Buffer;
|
|
1124
|
+
deserialize: (value: Buffer) => ABI_VERSIONS;
|
|
1125
|
+
}], readonly ["amount", {
|
|
978
1126
|
serialize(value: import("./field-types/u-int").Int): Buffer;
|
|
979
1127
|
deserialize(value: Buffer): string;
|
|
980
1128
|
}], readonly ["callData", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray], readonly ["callStack", FIELD_TYPES.callStack], readonly ["gasPrice", {
|
|
981
1129
|
serializeAettos(value?: string | undefined): string;
|
|
982
|
-
serialize
|
|
983
|
-
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
1130
|
+
serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
984
1131
|
deserialize(value: Buffer): string;
|
|
985
1132
|
}], readonly ["gasLimit", {
|
|
986
1133
|
serialize(_value: number | undefined, { txType, rebuildTx, gasMax, _computingGasLimit, }: {
|
|
@@ -999,10 +1146,16 @@ export declare const TX_SCHEMA: {
|
|
|
999
1146
|
}], readonly ["VSN", {
|
|
1000
1147
|
serialize(value: number): Buffer;
|
|
1001
1148
|
deserialize(value: Buffer): number;
|
|
1002
|
-
}], readonly ["channelId",
|
|
1149
|
+
}], readonly ["channelId", {
|
|
1150
|
+
serialize: (value: `ch_${string}`) => Buffer;
|
|
1151
|
+
deserialize: (value: Buffer) => `ch_${string}`;
|
|
1152
|
+
}], readonly ["round", {
|
|
1003
1153
|
serialize(value: number): Buffer;
|
|
1004
1154
|
deserialize(value: Buffer): number;
|
|
1005
|
-
}], readonly ["role", FIELD_TYPES.string], readonly ["pubkey",
|
|
1155
|
+
}], readonly ["role", FIELD_TYPES.string], readonly ["pubkey", {
|
|
1156
|
+
serialize: (value: `ak_${string}`) => Buffer;
|
|
1157
|
+
deserialize: (value: Buffer) => `ak_${string}`;
|
|
1158
|
+
}]];
|
|
1006
1159
|
};
|
|
1007
1160
|
readonly 60: {
|
|
1008
1161
|
readonly 1: readonly [readonly ["tag", {
|
|
@@ -1101,7 +1254,10 @@ export declare const TX_SCHEMA: {
|
|
|
1101
1254
|
}], readonly ["VSN", {
|
|
1102
1255
|
serialize(value: number): Buffer;
|
|
1103
1256
|
deserialize(value: Buffer): number;
|
|
1104
|
-
}], readonly ["ownerId",
|
|
1257
|
+
}], readonly ["ownerId", {
|
|
1258
|
+
serialize: (value: `ak_${string}`) => Buffer;
|
|
1259
|
+
deserialize: (value: Buffer) => `ak_${string}`;
|
|
1260
|
+
}], readonly ["nonce", {
|
|
1105
1261
|
serialize(value: number): Buffer;
|
|
1106
1262
|
deserialize(value: Buffer): number;
|
|
1107
1263
|
}], readonly ["code", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray], readonly ["authFun", FIELD_TYPES.rawBinary], readonly ["ctVersion", FIELD_TYPES.ctVersion], readonly ["fee", {
|
|
@@ -1110,8 +1266,7 @@ export declare const TX_SCHEMA: {
|
|
|
1110
1266
|
rebuildTx: (params: any) => any;
|
|
1111
1267
|
_computingMinFee?: string | undefined;
|
|
1112
1268
|
}): string;
|
|
1113
|
-
serialize
|
|
1114
|
-
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
1269
|
+
serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
1115
1270
|
deserialize(value: Buffer): string;
|
|
1116
1271
|
}], readonly ["ttl", {
|
|
1117
1272
|
serialize(value: number): Buffer;
|
|
@@ -1126,8 +1281,7 @@ export declare const TX_SCHEMA: {
|
|
|
1126
1281
|
deserialize(value: Buffer): number;
|
|
1127
1282
|
}], readonly ["gasPrice", {
|
|
1128
1283
|
serializeAettos(value?: string | undefined): string;
|
|
1129
|
-
serialize
|
|
1130
|
-
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
1284
|
+
serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
1131
1285
|
deserialize(value: Buffer): string;
|
|
1132
1286
|
}], readonly ["callData", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray]];
|
|
1133
1287
|
};
|
|
@@ -1138,14 +1292,19 @@ export declare const TX_SCHEMA: {
|
|
|
1138
1292
|
}], readonly ["VSN", {
|
|
1139
1293
|
serialize(value: number): Buffer;
|
|
1140
1294
|
deserialize(value: Buffer): number;
|
|
1141
|
-
}], readonly ["gaId",
|
|
1295
|
+
}], readonly ["gaId", {
|
|
1296
|
+
serialize: (value: `ak_${string}`) => Buffer;
|
|
1297
|
+
deserialize: (value: Buffer) => `ak_${string}`;
|
|
1298
|
+
}], readonly ["authData", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray], readonly ["abiVersion", {
|
|
1299
|
+
serialize: (value: ABI_VERSIONS) => Buffer;
|
|
1300
|
+
deserialize: (value: Buffer) => ABI_VERSIONS;
|
|
1301
|
+
}], readonly ["fee", {
|
|
1142
1302
|
serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
|
|
1143
1303
|
txType: Tag;
|
|
1144
1304
|
rebuildTx: (params: any) => any;
|
|
1145
1305
|
_computingMinFee?: string | undefined;
|
|
1146
1306
|
}): string;
|
|
1147
|
-
serialize
|
|
1148
|
-
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
1307
|
+
serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
1149
1308
|
deserialize(value: Buffer): string;
|
|
1150
1309
|
}], readonly ["gasLimit", {
|
|
1151
1310
|
serialize(_value: number | undefined, { txType, rebuildTx, gasMax, _computingGasLimit, }: {
|
|
@@ -1157,8 +1316,7 @@ export declare const TX_SCHEMA: {
|
|
|
1157
1316
|
deserialize(value: Buffer): number;
|
|
1158
1317
|
}], readonly ["gasPrice", {
|
|
1159
1318
|
serializeAettos(value?: string | undefined): string;
|
|
1160
|
-
serialize
|
|
1161
|
-
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
1319
|
+
serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
1162
1320
|
deserialize(value: Buffer): string;
|
|
1163
1321
|
}], readonly ["tx", FIELD_TYPES.rlpBinary]];
|
|
1164
1322
|
};
|
|
@@ -1169,7 +1327,10 @@ export declare const TX_SCHEMA: {
|
|
|
1169
1327
|
}], readonly ["VSN", {
|
|
1170
1328
|
serialize(value: number): Buffer;
|
|
1171
1329
|
deserialize(value: Buffer): number;
|
|
1172
|
-
}], readonly ["payerId",
|
|
1330
|
+
}], readonly ["payerId", {
|
|
1331
|
+
serialize: (value: `ak_${string}`) => Buffer;
|
|
1332
|
+
deserialize: (value: Buffer) => `ak_${string}`;
|
|
1333
|
+
}], readonly ["nonce", {
|
|
1173
1334
|
serialize(value: number): Buffer;
|
|
1174
1335
|
deserialize(value: Buffer): number;
|
|
1175
1336
|
}], readonly ["fee", {
|
|
@@ -1178,8 +1339,7 @@ export declare const TX_SCHEMA: {
|
|
|
1178
1339
|
rebuildTx: (params: any) => any;
|
|
1179
1340
|
_computingMinFee?: string | undefined;
|
|
1180
1341
|
}): string;
|
|
1181
|
-
serialize
|
|
1182
|
-
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
1342
|
+
serialize(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
1183
1343
|
deserialize(value: Buffer): string;
|
|
1184
1344
|
}], readonly ["tx", FIELD_TYPES.rlpBinary]];
|
|
1185
1345
|
};
|
|
@@ -1193,9 +1353,9 @@ export declare const TX_SCHEMA: {
|
|
|
1193
1353
|
}], readonly ["sourceCodeHash", FIELD_TYPES.rawBinary], readonly ["typeInfo", FIELD_TYPES.sophiaCodeTypeInfo], readonly ["byteCode", FIELD_TYPES.rawBinary], readonly ["compilerVersion", FIELD_TYPES.string], readonly ["payable", FIELD_TYPES.bool]];
|
|
1194
1354
|
};
|
|
1195
1355
|
};
|
|
1196
|
-
export
|
|
1356
|
+
export type TxTypeSchemas = {
|
|
1197
1357
|
[key in Tag]: BuildTxArgBySchema<typeof TX_SCHEMA[key][keyof typeof TX_SCHEMA[key]]>;
|
|
1198
1358
|
};
|
|
1199
|
-
export
|
|
1200
|
-
export
|
|
1359
|
+
export type TxSchema = TxTypeSchemas[Tag];
|
|
1360
|
+
export type TxParamsCommon = Partial<UnionToIntersection<TxSchema>>;
|
|
1201
1361
|
export {};
|