@aeternity/aepp-sdk 11.0.0 → 12.1.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/LICENSE +1 -1
- package/dist/aepp-sdk.browser-script.js +1 -1
- package/dist/aepp-sdk.browser-script.js.LICENSE.txt +0 -22
- package/dist/aepp-sdk.browser-script.js.map +1 -1
- package/dist/aepp-sdk.browser.js +2 -1
- package/dist/aepp-sdk.browser.js.LICENSE.txt +1 -0
- package/dist/aepp-sdk.browser.js.map +1 -1
- package/dist/aepp-sdk.js +20764 -1
- package/dist/aepp-sdk.js.map +1 -1
- package/es/AeSdk.d.ts +37 -0
- package/es/AeSdk.mjs +81 -0
- package/es/AeSdk.mjs.map +1 -0
- package/es/AeSdkAepp.d.ts +70 -0
- package/es/AeSdkAepp.mjs +176 -0
- package/es/AeSdkAepp.mjs.map +1 -0
- package/es/AeSdkBase.d.ts +213 -0
- package/es/AeSdkBase.mjs +314 -0
- package/es/AeSdkBase.mjs.map +1 -0
- package/es/AeSdkWallet.d.ts +104 -0
- package/es/AeSdkWallet.mjs +326 -0
- package/es/AeSdkWallet.mjs.map +1 -0
- package/es/Node.d.ts +41 -0
- package/es/Node.mjs +147 -0
- package/es/Node.mjs.map +1 -0
- package/es/account/Base.d.ts +68 -0
- package/es/account/Base.mjs +123 -0
- package/es/account/Base.mjs.map +1 -0
- package/es/account/Memory.d.ts +26 -0
- package/es/account/Memory.mjs +103 -0
- package/es/account/Memory.mjs.map +1 -0
- package/es/account/Rpc.d.ts +27 -0
- package/es/account/Rpc.mjs +80 -0
- package/es/account/Rpc.mjs.map +1 -0
- package/es/aens.d.ts +222 -0
- package/es/aens.mjs +338 -0
- package/es/aens.mjs.map +1 -0
- package/es/aepp-wallet-communication/connection/Browser.d.ts +33 -0
- package/es/aepp-wallet-communication/connection/Browser.mjs +73 -0
- package/es/aepp-wallet-communication/connection/Browser.mjs.map +1 -0
- package/es/aepp-wallet-communication/connection/BrowserRuntime.d.ts +18 -0
- package/es/aepp-wallet-communication/connection/BrowserRuntime.mjs +58 -0
- package/es/aepp-wallet-communication/connection/BrowserRuntime.mjs.map +1 -0
- package/es/aepp-wallet-communication/connection/BrowserWindowMessage.d.ts +36 -0
- package/es/aepp-wallet-communication/connection/BrowserWindowMessage.mjs +146 -0
- package/es/aepp-wallet-communication/connection/BrowserWindowMessage.mjs.map +1 -0
- package/es/aepp-wallet-communication/connection-proxy.d.ts +11 -0
- package/{src/utils/crypto-ts.ts → es/aepp-wallet-communication/connection-proxy.mjs} +16 -11
- package/es/aepp-wallet-communication/connection-proxy.mjs.map +1 -0
- package/es/aepp-wallet-communication/rpc/RpcClient.d.ts +34 -0
- package/es/aepp-wallet-communication/rpc/RpcClient.mjs +169 -0
- package/es/aepp-wallet-communication/rpc/RpcClient.mjs.map +1 -0
- package/es/aepp-wallet-communication/rpc/types.d.ts +77 -0
- package/es/aepp-wallet-communication/rpc/types.mjs +3 -0
- package/es/aepp-wallet-communication/rpc/types.mjs.map +1 -0
- package/es/aepp-wallet-communication/schema.d.ts +105 -46
- package/es/aepp-wallet-communication/schema.mjs +251 -0
- package/es/aepp-wallet-communication/schema.mjs.map +1 -0
- package/es/aepp-wallet-communication/wallet-detector.d.ts +25 -0
- package/es/aepp-wallet-communication/wallet-detector.mjs +62 -0
- package/es/aepp-wallet-communication/wallet-detector.mjs.map +1 -0
- package/es/apis/compiler/compiler.d.ts +92 -0
- package/es/apis/compiler/compiler.mjs +576 -0
- package/es/apis/compiler/compiler.mjs.map +1 -0
- package/es/apis/compiler/index.d.ts +2 -0
- package/es/apis/compiler/index.mjs +3 -0
- package/es/apis/compiler/index.mjs.map +1 -0
- package/es/apis/compiler/models/index.d.ts +248 -0
- package/es/apis/compiler/models/index.mjs +48 -0
- package/es/apis/compiler/models/index.mjs.map +1 -0
- package/es/apis/compiler/models/mappers.d.ts +23 -0
- package/es/apis/compiler/models/mappers.mjs +585 -0
- package/es/apis/compiler/models/mappers.mjs.map +1 -0
- package/es/apis/compiler/models/parameters.d.ts +13 -0
- package/es/apis/compiler/models/parameters.mjs +71 -0
- package/es/apis/compiler/models/parameters.mjs.map +1 -0
- package/es/apis/node/index.d.ts +2 -0
- package/es/apis/node/index.mjs +3 -0
- package/es/apis/node/index.mjs.map +1 -0
- package/es/apis/node/models/index.d.ts +1065 -0
- package/es/apis/node/models/index.mjs +2 -0
- package/es/apis/node/models/index.mjs.map +1 -0
- package/es/apis/node/models/mappers.d.ts +95 -0
- package/es/apis/node/models/mappers.mjs +4166 -0
- package/es/apis/node/models/mappers.mjs.map +1 -0
- package/es/apis/node/models/parameters.d.ts +17 -0
- package/es/apis/node/models/parameters.mjs +165 -0
- package/es/apis/node/models/parameters.mjs.map +1 -0
- package/es/apis/node/node.d.ts +215 -0
- package/es/apis/node/node.mjs +1165 -0
- package/es/apis/node/node.mjs.map +1 -0
- package/es/chain.d.ts +248 -0
- package/es/chain.mjs +560 -0
- package/es/chain.mjs.map +1 -0
- package/es/channel/handlers.d.ts +34 -0
- package/es/channel/handlers.mjs +164 -131
- package/es/channel/handlers.mjs.map +1 -1
- package/es/channel/index.d.ts +625 -0
- package/es/channel/index.mjs +897 -902
- package/es/channel/index.mjs.map +1 -1
- package/es/channel/internal.d.ts +101 -0
- package/es/channel/internal.mjs +138 -88
- package/es/channel/internal.mjs.map +1 -1
- package/es/contract/Compiler.d.ts +18 -0
- package/es/contract/Compiler.mjs +68 -0
- package/es/contract/Compiler.mjs.map +1 -0
- package/es/contract/aci.d.ts +127 -0
- package/es/contract/aci.mjs +225 -193
- package/es/contract/aci.mjs.map +1 -1
- package/es/contract/ga.d.ts +69 -0
- package/es/contract/ga.mjs +195 -0
- package/es/contract/ga.mjs.map +1 -0
- package/es/contract/methods.d.ts +71 -0
- package/es/contract/methods.mjs +104 -0
- package/es/contract/methods.mjs.map +1 -0
- package/es/deprecated/index.d.ts +143 -0
- package/es/deprecated/index.mjs +162 -0
- package/es/deprecated/index.mjs.map +1 -0
- package/es/deprecated/methods.d.ts +18 -0
- package/es/deprecated/methods.mjs +26 -0
- package/es/deprecated/methods.mjs.map +1 -0
- package/es/index.d.ts +35 -0
- package/es/index.mjs +35 -40
- package/es/index.mjs.map +1 -1
- package/es/oracle.d.ts +161 -0
- package/es/oracle.mjs +306 -0
- package/es/oracle.mjs.map +1 -0
- package/es/spend.d.ts +62 -0
- package/es/spend.mjs +111 -0
- package/es/spend.mjs.map +1 -0
- package/es/tx/builder/address.d.ts +25 -0
- package/es/tx/builder/address.mjs +45 -0
- package/es/tx/builder/address.mjs.map +1 -0
- package/es/tx/builder/constants.d.ts +70 -0
- package/es/tx/builder/constants.mjs +122 -0
- package/es/tx/builder/constants.mjs.map +1 -0
- package/es/tx/builder/field-types/coin-amount.d.ts +13 -0
- package/es/tx/builder/field-types/coin-amount.mjs +26 -0
- package/es/tx/builder/field-types/coin-amount.mjs.map +1 -0
- package/es/tx/builder/field-types/deposit.d.ts +15 -0
- package/es/tx/builder/field-types/deposit.mjs +19 -0
- package/es/tx/builder/field-types/deposit.mjs.map +1 -0
- package/es/tx/builder/field-types/fee.d.ts +25 -0
- package/es/tx/builder/field-types/fee.mjs +150 -0
- package/es/tx/builder/field-types/fee.mjs.map +1 -0
- package/es/tx/builder/field-types/field.d.ts +6 -0
- package/es/tx/builder/field-types/field.mjs +15 -0
- package/es/tx/builder/field-types/field.mjs.map +1 -0
- package/es/tx/builder/field-types/gas-limit.d.ts +12 -0
- package/es/tx/builder/field-types/gas-limit.mjs +33 -0
- package/es/tx/builder/field-types/gas-limit.mjs.map +1 -0
- package/es/tx/builder/field-types/gas-price.d.ts +8 -0
- package/es/tx/builder/field-types/gas-price.mjs +18 -0
- package/es/tx/builder/field-types/gas-price.mjs.map +1 -0
- package/es/tx/builder/field-types/index.d.ts +70 -0
- package/es/tx/builder/field-types/index.mjs +25 -0
- package/es/tx/builder/field-types/index.mjs.map +1 -0
- package/es/tx/builder/field-types/name-fee.d.ts +20 -0
- package/es/tx/builder/field-types/name-fee.mjs +24 -0
- package/es/tx/builder/field-types/name-fee.mjs.map +1 -0
- package/es/tx/builder/field-types/name-id.d.ts +14 -0
- package/es/tx/builder/field-types/name-id.mjs +19 -0
- package/es/tx/builder/field-types/name-id.mjs.map +1 -0
- package/es/tx/builder/field-types/name.d.ts +13 -0
- package/es/tx/builder/field-types/name.mjs +18 -0
- package/es/tx/builder/field-types/name.mjs.map +1 -0
- package/es/tx/builder/field-types/short-u-int.d.ts +6 -0
- package/es/tx/builder/field-types/short-u-int.mjs +12 -0
- package/es/tx/builder/field-types/short-u-int.mjs.map +1 -0
- package/es/tx/builder/field-types/u-int.d.ts +8 -0
- package/es/tx/builder/field-types/u-int.mjs +14 -0
- package/es/tx/builder/field-types/u-int.mjs.map +1 -0
- package/es/tx/builder/helpers.d.ts +125 -0
- package/es/tx/builder/helpers.mjs +94 -240
- package/es/tx/builder/helpers.mjs.map +1 -1
- package/es/tx/builder/index.d.ts +88 -0
- package/es/tx/builder/index.mjs +167 -358
- package/es/tx/builder/index.mjs.map +1 -1
- package/es/tx/builder/schema.d.ts +1201 -0
- package/es/tx/builder/schema.mjs +175 -664
- package/es/tx/builder/schema.mjs.map +1 -1
- package/es/tx/index.d.ts +64 -0
- package/es/tx/index.mjs +151 -265
- package/es/tx/index.mjs.map +1 -1
- package/es/tx/validator.d.ts +20 -0
- package/es/tx/validator.mjs +104 -124
- package/es/tx/validator.mjs.map +1 -1
- package/es/typings/@aeternity__argon2-browser/index.d.mjs +2 -0
- package/es/typings/@aeternity__argon2-browser/index.d.mjs.map +1 -0
- package/es/typings/@aeternity__uuid/index.d.mjs +2 -0
- package/es/typings/@aeternity__uuid/index.d.mjs.map +1 -0
- package/es/typings/bip32-path/index.d.mjs +2 -0
- package/es/typings/bip32-path/index.d.mjs.map +1 -0
- package/es/typings/blakejs/index.d.mjs.map +1 -1
- package/es/typings/sha-js/index.d.mjs +2 -0
- package/es/typings/sha-js/index.d.mjs.map +1 -0
- package/es/typings/tweetnacl-auth/index.d.mjs +2 -0
- package/es/typings/tweetnacl-auth/index.d.mjs.map +1 -0
- package/es/utils/amount-formatter.d.ts +42 -0
- package/es/utils/amount-formatter.mjs +36 -49
- package/es/utils/amount-formatter.mjs.map +1 -1
- package/es/utils/autorest.d.ts +6 -0
- package/es/utils/autorest.mjs +97 -0
- package/es/utils/autorest.mjs.map +1 -0
- package/es/utils/bignumber.d.ts +13 -0
- package/es/utils/bignumber.mjs +11 -8
- package/es/utils/bignumber.mjs.map +1 -1
- package/es/{bytes.d.ts → utils/bytes.d.ts} +10 -13
- package/es/utils/bytes.mjs +11 -15
- package/es/utils/bytes.mjs.map +1 -1
- package/es/utils/crypto.d.ts +88 -0
- package/es/utils/crypto.mjs +64 -108
- package/es/utils/crypto.mjs.map +1 -1
- package/es/utils/encoder-types.d.ts +61 -0
- package/es/utils/encoder-types.mjs +36 -0
- package/es/utils/encoder-types.mjs.map +1 -0
- package/es/utils/encoder.d.ts +25 -0
- package/es/utils/encoder.mjs +118 -0
- package/es/utils/encoder.mjs.map +1 -0
- package/es/{errors.d.ts → utils/errors.d.ts} +246 -59
- package/es/utils/errors.mjs +313 -136
- package/es/utils/errors.mjs.map +1 -1
- package/es/utils/hd-wallet.d.ts +50 -0
- package/es/utils/hd-wallet.mjs +86 -45
- package/es/utils/hd-wallet.mjs.map +1 -1
- package/es/utils/json-big.d.ts +5 -0
- package/es/utils/json-big.mjs +12 -16
- package/es/utils/json-big.mjs.map +1 -1
- package/es/utils/keystore.d.ts +51 -0
- package/es/utils/keystore.mjs +101 -194
- package/es/utils/keystore.mjs.map +1 -1
- package/es/{mptree.d.ts → utils/mptree.d.ts} +6 -9
- package/es/utils/mptree.mjs +22 -18
- package/es/utils/mptree.mjs.map +1 -1
- package/es/utils/other.d.ts +20 -0
- package/es/utils/other.mjs +32 -35
- package/es/utils/other.mjs.map +1 -1
- package/es/utils/semver-satisfies.d.ts +1 -0
- package/es/utils/semver-satisfies.mjs +2 -2
- package/es/utils/semver-satisfies.mjs.map +1 -1
- package/es/utils/string.d.ts +24 -0
- package/es/utils/string.mjs +8 -10
- package/es/utils/string.mjs.map +1 -1
- package/package.json +56 -42
- package/src/AeSdk.ts +68 -0
- package/src/AeSdkAepp.ts +176 -0
- package/src/AeSdkBase.ts +338 -0
- package/src/AeSdkWallet.ts +348 -0
- package/src/Node.ts +173 -0
- package/src/account/Base.ts +124 -0
- package/src/account/Memory.ts +98 -0
- package/src/account/Rpc.ts +69 -0
- package/src/aens.ts +407 -0
- package/src/aepp-wallet-communication/connection/Browser.ts +71 -0
- package/src/aepp-wallet-communication/connection/BrowserRuntime.ts +59 -0
- package/src/aepp-wallet-communication/connection/BrowserWindowMessage.ts +122 -0
- package/{es/utils/crypto-ts.mjs → src/aepp-wallet-communication/connection-proxy.ts} +18 -18
- package/src/aepp-wallet-communication/rpc/RpcClient.ts +143 -0
- package/src/aepp-wallet-communication/rpc/types.ts +66 -0
- package/src/aepp-wallet-communication/schema.ts +224 -0
- package/src/aepp-wallet-communication/wallet-detector.ts +72 -0
- package/src/apis/compiler/code-model-v4.yaml +2649 -0
- package/src/apis/compiler/compiler.ts +585 -0
- package/src/apis/compiler/index.ts +2 -0
- package/src/apis/compiler/models/index.ts +301 -0
- package/src/apis/compiler/models/mappers.ts +583 -0
- package/src/apis/compiler/models/parameters.ts +93 -0
- package/src/apis/node/code-model-v4.yaml +10080 -0
- package/src/apis/node/index.ts +2 -0
- package/src/apis/node/models/index.ts +1257 -0
- package/src/apis/node/models/mappers.ts +4280 -0
- package/src/apis/node/models/parameters.ts +188 -0
- package/src/apis/node/node.ts +1299 -0
- package/src/chain.ts +502 -0
- package/src/channel/handlers.ts +817 -0
- package/src/channel/index.ts +1025 -0
- package/src/channel/internal.ts +361 -0
- package/src/contract/Compiler.ts +67 -0
- package/src/contract/aci.ts +538 -0
- package/src/contract/ga.ts +199 -0
- package/src/contract/methods.ts +123 -0
- package/src/deprecated/index.ts +170 -0
- package/src/deprecated/methods.ts +25 -0
- package/src/index.ts +56 -0
- package/src/oracle.ts +364 -0
- package/src/spend.ts +164 -0
- package/src/tx/builder/address.ts +50 -0
- package/src/tx/builder/constants.ts +126 -0
- package/src/tx/builder/field-types/coin-amount.ts +27 -0
- package/src/tx/builder/field-types/deposit.ts +21 -0
- package/src/tx/builder/field-types/fee.ts +143 -0
- package/src/tx/builder/field-types/field.ts +9 -0
- package/src/tx/builder/field-types/gas-limit.ts +41 -0
- package/src/tx/builder/field-types/gas-price.ts +16 -0
- package/src/tx/builder/field-types/index.ts +45 -0
- package/src/tx/builder/field-types/name-fee.ts +32 -0
- package/src/tx/builder/field-types/name-id.ts +20 -0
- package/src/tx/builder/field-types/name.ts +18 -0
- package/src/tx/builder/field-types/short-u-int.ts +11 -0
- package/src/tx/builder/field-types/u-int.ts +16 -0
- package/src/tx/builder/helpers.ts +248 -0
- package/src/tx/builder/index.ts +400 -0
- package/src/tx/builder/schema.ts +727 -0
- package/src/tx/index.ts +192 -0
- package/src/tx/validator.ts +230 -0
- package/src/typings/@aeternity__argon2-browser/index.d.ts +3 -0
- package/src/typings/@aeternity__uuid/index.d.ts +5 -0
- package/src/typings/bip32-path/index.d.ts +33 -0
- package/src/typings/blakejs/index.d.ts +4 -32
- package/src/typings/sha-js/index.d.ts +5 -0
- package/src/typings/tweetnacl-auth/index.d.ts +14 -0
- package/src/utils/amount-formatter.ts +56 -69
- package/src/utils/autorest.ts +93 -0
- package/src/utils/bignumber.ts +11 -12
- package/src/utils/bytes.ts +29 -31
- package/src/utils/crypto.ts +205 -0
- package/src/utils/encoder-types.ts +63 -0
- package/src/utils/encoder.ts +146 -0
- package/src/utils/errors.ts +482 -366
- package/src/utils/hd-wallet.ts +166 -0
- package/src/utils/json-big.ts +27 -0
- package/src/utils/keystore.ts +182 -0
- package/src/utils/mptree.ts +64 -61
- package/src/utils/other.ts +34 -41
- package/src/utils/semver-satisfies.ts +15 -11
- package/src/utils/string.ts +18 -20
- package/es/account/base.mjs +0 -179
- package/es/account/base.mjs.map +0 -1
- package/es/account/memory.mjs +0 -99
- package/es/account/memory.mjs.map +0 -1
- package/es/account/multiple.mjs +0 -179
- package/es/account/multiple.mjs.map +0 -1
- package/es/ae/aens.mjs +0 -404
- package/es/ae/aens.mjs.map +0 -1
- package/es/ae/aepp.mjs +0 -45
- package/es/ae/aepp.mjs.map +0 -1
- package/es/ae/contract.mjs +0 -159
- package/es/ae/contract.mjs.map +0 -1
- package/es/ae/index.mjs +0 -207
- package/es/ae/index.mjs.map +0 -1
- package/es/ae/oracle.mjs +0 -339
- package/es/ae/oracle.mjs.map +0 -1
- package/es/ae/universal.mjs +0 -45
- package/es/ae/universal.mjs.map +0 -1
- package/es/ae/wallet.mjs +0 -50
- package/es/ae/wallet.mjs.map +0 -1
- package/es/amount-formatter.d.ts +0 -58
- package/es/bignumber.d.ts +0 -18
- package/es/chain/index.mjs +0 -272
- package/es/chain/index.mjs.map +0 -1
- package/es/chain/node.mjs +0 -442
- package/es/chain/node.mjs.map +0 -1
- package/es/contract/compiler.mjs +0 -115
- package/es/contract/compiler.mjs.map +0 -1
- package/es/contract/ga/helpers.mjs +0 -30
- package/es/contract/ga/helpers.mjs.map +0 -1
- package/es/contract/ga/index.mjs +0 -178
- package/es/contract/ga/index.mjs.map +0 -1
- package/es/crypto-ts.d.ts +0 -9
- package/es/node-pool/index.mjs +0 -188
- package/es/node-pool/index.mjs.map +0 -1
- package/es/node.mjs +0 -133
- package/es/node.mjs.map +0 -1
- package/es/other.d.ts +0 -31
- package/es/semver-satisfies.d.ts +0 -1
- package/es/string.d.ts +0 -26
- package/es/tx/builder/field-types.mjs +0 -74
- package/es/tx/builder/field-types.mjs.map +0 -1
- package/es/tx/tx-object.mjs +0 -283
- package/es/tx/tx-object.mjs.map +0 -1
- package/es/tx/tx.mjs +0 -938
- package/es/tx/tx.mjs.map +0 -1
- package/es/utils/aepp-wallet-communication/connection/browser-runtime.mjs +0 -132
- package/es/utils/aepp-wallet-communication/connection/browser-runtime.mjs.map +0 -1
- package/es/utils/aepp-wallet-communication/connection/browser-window-message.mjs +0 -183
- package/es/utils/aepp-wallet-communication/connection/browser-window-message.mjs.map +0 -1
- package/es/utils/aepp-wallet-communication/connection/index.mjs +0 -87
- package/es/utils/aepp-wallet-communication/connection/index.mjs.map +0 -1
- package/es/utils/aepp-wallet-communication/content-script-bridge.mjs +0 -98
- package/es/utils/aepp-wallet-communication/content-script-bridge.mjs.map +0 -1
- package/es/utils/aepp-wallet-communication/helpers.mjs +0 -92
- package/es/utils/aepp-wallet-communication/helpers.mjs.map +0 -1
- package/es/utils/aepp-wallet-communication/rpc/aepp-rpc.mjs +0 -375
- package/es/utils/aepp-wallet-communication/rpc/aepp-rpc.mjs.map +0 -1
- package/es/utils/aepp-wallet-communication/rpc/rpc-client.mjs +0 -275
- package/es/utils/aepp-wallet-communication/rpc/rpc-client.mjs.map +0 -1
- package/es/utils/aepp-wallet-communication/rpc/wallet-rpc.mjs +0 -541
- package/es/utils/aepp-wallet-communication/rpc/wallet-rpc.mjs.map +0 -1
- package/es/utils/aepp-wallet-communication/schema.mjs +0 -102
- package/es/utils/aepp-wallet-communication/schema.mjs.map +0 -1
- package/es/utils/aepp-wallet-communication/wallet-detector.mjs +0 -110
- package/es/utils/aepp-wallet-communication/wallet-detector.mjs.map +0 -1
- package/es/utils/async-init.mjs +0 -64
- package/es/utils/async-init.mjs.map +0 -1
- package/es/utils/crypto-ts.mjs.map +0 -1
- package/es/utils/swagger.mjs +0 -164
- package/es/utils/swagger.mjs.map +0 -1
- package/src/account/base.js +0 -153
- package/src/account/memory.js +0 -83
- package/src/account/multiple.js +0 -162
- package/src/ae/aens.js +0 -361
- package/src/ae/aepp.js +0 -45
- package/src/ae/contract.js +0 -148
- package/src/ae/index.js +0 -168
- package/src/ae/oracle.js +0 -311
- package/src/ae/universal.js +0 -47
- package/src/ae/wallet.js +0 -50
- package/src/chain/index.js +0 -269
- package/src/chain/node.js +0 -320
- package/src/channel/handlers.js +0 -673
- package/src/channel/index.js +0 -898
- package/src/channel/internal.js +0 -237
- package/src/contract/aci.js +0 -376
- package/src/contract/compiler.js +0 -100
- package/src/contract/ga/helpers.js +0 -19
- package/src/contract/ga/index.js +0 -150
- package/src/index.js +0 -89
- package/src/node-pool/index.js +0 -172
- package/src/node.js +0 -116
- package/src/tx/builder/field-types.js +0 -61
- package/src/tx/builder/helpers.js +0 -380
- package/src/tx/builder/index.js +0 -465
- package/src/tx/builder/schema.js +0 -1197
- package/src/tx/index.js +0 -301
- package/src/tx/tx-object.js +0 -187
- package/src/tx/tx.js +0 -631
- package/src/tx/validator.js +0 -181
- package/src/utils/aepp-wallet-communication/connection/browser-runtime.js +0 -119
- package/src/utils/aepp-wallet-communication/connection/browser-window-message.js +0 -165
- package/src/utils/aepp-wallet-communication/connection/index.js +0 -85
- package/src/utils/aepp-wallet-communication/content-script-bridge.js +0 -86
- package/src/utils/aepp-wallet-communication/helpers.js +0 -60
- package/src/utils/aepp-wallet-communication/rpc/aepp-rpc.js +0 -294
- package/src/utils/aepp-wallet-communication/rpc/rpc-client.js +0 -232
- package/src/utils/aepp-wallet-communication/rpc/wallet-rpc.js +0 -401
- package/src/utils/aepp-wallet-communication/schema.ts +0 -80
- package/src/utils/aepp-wallet-communication/wallet-detector.js +0 -92
- package/src/utils/async-init.js +0 -45
- package/src/utils/crypto.js +0 -229
- package/src/utils/hd-wallet.js +0 -100
- package/src/utils/json-big.js +0 -26
- package/src/utils/keystore.js +0 -219
- package/src/utils/swagger.js +0 -156
|
@@ -0,0 +1,1201 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Transaction Schema for TxBuilder
|
|
3
|
+
*/
|
|
4
|
+
/// <reference types="node" />
|
|
5
|
+
import BigNumber from 'bignumber.js';
|
|
6
|
+
import { Tag } from './constants';
|
|
7
|
+
import { Field } from './field-types';
|
|
8
|
+
import { Encoded, Encoding } from '../../utils/encoder';
|
|
9
|
+
import MPTree from '../../utils/mptree';
|
|
10
|
+
import { NamePointer } from '../../apis/node';
|
|
11
|
+
export declare enum ORACLE_TTL_TYPES {
|
|
12
|
+
delta = 0,
|
|
13
|
+
block = 1
|
|
14
|
+
}
|
|
15
|
+
export declare const TX_TTL = 0;
|
|
16
|
+
export declare const QUERY_FEE = 30000;
|
|
17
|
+
export declare const ORACLE_TTL: {
|
|
18
|
+
type: ORACLE_TTL_TYPES;
|
|
19
|
+
value: number;
|
|
20
|
+
};
|
|
21
|
+
export declare const QUERY_TTL: {
|
|
22
|
+
type: ORACLE_TTL_TYPES;
|
|
23
|
+
value: number;
|
|
24
|
+
};
|
|
25
|
+
export declare const RESPONSE_TTL: {
|
|
26
|
+
type: ORACLE_TTL_TYPES;
|
|
27
|
+
value: number;
|
|
28
|
+
};
|
|
29
|
+
export declare const AMOUNT = 0;
|
|
30
|
+
export declare const MAX_AUTH_FUN_GAS = 50000;
|
|
31
|
+
export declare const DRY_RUN_ACCOUNT: {
|
|
32
|
+
readonly pub: "ak_11111111111111111111111111111111273Yts";
|
|
33
|
+
readonly amount: 100000000000000000000000000000000000n;
|
|
34
|
+
};
|
|
35
|
+
export declare type TxField = [
|
|
36
|
+
name: string,
|
|
37
|
+
type: FIELD_TYPES | Field,
|
|
38
|
+
prefix?: Encoding | Encoding[]
|
|
39
|
+
];
|
|
40
|
+
/**
|
|
41
|
+
* @category transaction builder
|
|
42
|
+
* @see {@link https://github.com/aeternity/protocol/blob/0f6dee3d9d1e8e2469816798f5c7587a6c918f94/contracts/contract_vms.md#virtual-machines-on-the-%C3%A6ternity-blockchain}
|
|
43
|
+
*/
|
|
44
|
+
export declare enum VM_VERSIONS {
|
|
45
|
+
NO_VM = 0,
|
|
46
|
+
SOPHIA = 1,
|
|
47
|
+
SOPHIA_IMPROVEMENTS_MINERVA = 3,
|
|
48
|
+
SOPHIA_IMPROVEMENTS_FORTUNA = 4,
|
|
49
|
+
FATE = 5,
|
|
50
|
+
SOPHIA_IMPROVEMENTS_LIMA = 6,
|
|
51
|
+
FATE_2 = 7
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* @category transaction builder
|
|
55
|
+
* @see {@link https://github.com/aeternity/protocol/blob/0f6dee3d9d1e8e2469816798f5c7587a6c918f94/contracts/contract_vms.md#virtual-machines-on-the-%C3%A6ternity-blockchain}
|
|
56
|
+
*/
|
|
57
|
+
export declare enum ABI_VERSIONS {
|
|
58
|
+
NO_ABI = 0,
|
|
59
|
+
SOPHIA = 1,
|
|
60
|
+
FATE = 3
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* @category transaction builder
|
|
64
|
+
*/
|
|
65
|
+
export declare enum PROTOCOL_VERSIONS {
|
|
66
|
+
IRIS = 5
|
|
67
|
+
}
|
|
68
|
+
export declare const PROTOCOL_VM_ABI: {
|
|
69
|
+
readonly 5: {
|
|
70
|
+
readonly 42: {
|
|
71
|
+
readonly vmVersion: readonly [VM_VERSIONS.FATE_2];
|
|
72
|
+
readonly abiVersion: readonly [ABI_VERSIONS.FATE];
|
|
73
|
+
};
|
|
74
|
+
readonly 43: {
|
|
75
|
+
readonly vmVersion: readonly [];
|
|
76
|
+
readonly abiVersion: readonly [ABI_VERSIONS.FATE, ABI_VERSIONS.SOPHIA];
|
|
77
|
+
};
|
|
78
|
+
readonly 22: {
|
|
79
|
+
readonly vmVersion: readonly [];
|
|
80
|
+
readonly abiVersion: readonly [ABI_VERSIONS.NO_ABI, ABI_VERSIONS.SOPHIA];
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
declare type PrefixType<Prefix> = Prefix extends Encoding ? Encoded.Generic<Prefix> : Prefix extends readonly Encoding[] ? Encoded.Generic<Prefix[number]> : Encoded.Generic<any>;
|
|
85
|
+
/**
|
|
86
|
+
* @category transaction builder
|
|
87
|
+
*/
|
|
88
|
+
export interface CtVersion {
|
|
89
|
+
vmVersion: VM_VERSIONS;
|
|
90
|
+
abiVersion: ABI_VERSIONS;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* @category transaction builder
|
|
94
|
+
*/
|
|
95
|
+
export declare enum FIELD_TYPES {
|
|
96
|
+
id = 0,
|
|
97
|
+
ids = 1,
|
|
98
|
+
string = 2,
|
|
99
|
+
binary = 3,
|
|
100
|
+
bool = 4,
|
|
101
|
+
hex = 5,
|
|
102
|
+
rlpBinary = 6,
|
|
103
|
+
rlpBinaries = 7,
|
|
104
|
+
rawBinary = 8,
|
|
105
|
+
signatures = 9,
|
|
106
|
+
pointers = 10,
|
|
107
|
+
offChainUpdates = 11,
|
|
108
|
+
callStack = 12,
|
|
109
|
+
proofOfInclusion = 13,
|
|
110
|
+
mptrees = 14,
|
|
111
|
+
callReturnType = 15,
|
|
112
|
+
ctVersion = 16,
|
|
113
|
+
abiVersion = 17,
|
|
114
|
+
ttlType = 18,
|
|
115
|
+
sophiaCodeTypeInfo = 19,
|
|
116
|
+
payload = 20,
|
|
117
|
+
stateTree = 21
|
|
118
|
+
}
|
|
119
|
+
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
|
+
[FIELD_TYPES.string]: string;
|
|
123
|
+
[FIELD_TYPES.binary]: PrefixType<Prefix>;
|
|
124
|
+
[FIELD_TYPES.bool]: Boolean;
|
|
125
|
+
[FIELD_TYPES.hex]: string;
|
|
126
|
+
[FIELD_TYPES.rlpBinary]: any;
|
|
127
|
+
[FIELD_TYPES.rlpBinaries]: any[];
|
|
128
|
+
[FIELD_TYPES.rawBinary]: Uint8Array;
|
|
129
|
+
[FIELD_TYPES.signatures]: Uint8Array[];
|
|
130
|
+
[FIELD_TYPES.pointers]: NamePointer[];
|
|
131
|
+
[FIELD_TYPES.offChainUpdates]: any;
|
|
132
|
+
[FIELD_TYPES.callStack]: any;
|
|
133
|
+
[FIELD_TYPES.proofOfInclusion]: any;
|
|
134
|
+
[FIELD_TYPES.mptrees]: MPTree[];
|
|
135
|
+
[FIELD_TYPES.callReturnType]: any;
|
|
136
|
+
[FIELD_TYPES.ctVersion]: CtVersion;
|
|
137
|
+
[FIELD_TYPES.abiVersion]: ABI_VERSIONS;
|
|
138
|
+
[FIELD_TYPES.ttlType]: ORACLE_TTL_TYPES;
|
|
139
|
+
[FIELD_TYPES.sophiaCodeTypeInfo]: any;
|
|
140
|
+
[FIELD_TYPES.payload]: string | undefined;
|
|
141
|
+
[FIELD_TYPES.stateTree]: any;
|
|
142
|
+
}
|
|
143
|
+
declare type UnionToIntersection<Union> = (Union extends any ? (k: Union) => void : never) extends ((k: infer Intersection) => void) ? Intersection : never;
|
|
144
|
+
declare type TxElem = readonly [string, FIELD_TYPES | Field] | readonly [string, FIELD_TYPES, Encoding | readonly Encoding[]];
|
|
145
|
+
declare 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;
|
|
146
|
+
declare type NullablePartial<T, NK extends keyof T = {
|
|
147
|
+
[K in keyof T]: undefined extends T[K] ? K : never;
|
|
148
|
+
}[keyof T]> = Partial<Pick<T, NK>> & Omit<T, NK>;
|
|
149
|
+
declare type BuildTxArgBySchema<SchemaLine> = UnionToIntersection<SchemaLine extends ReadonlyArray<infer Elem> ? Elem extends TxElem ? NullablePartial<{
|
|
150
|
+
[k in Elem[0]]: BuildTxArgBySchemaType<Elem[1], Elem[2]>;
|
|
151
|
+
}> : never : never>;
|
|
152
|
+
export declare type RawTxObject<Tx extends TxSchema> = {
|
|
153
|
+
[k in keyof Tx]-?: Tx[k] extends BigNumber ? string : Tx[k];
|
|
154
|
+
};
|
|
155
|
+
export declare const TX_SCHEMA: {
|
|
156
|
+
readonly 10: {
|
|
157
|
+
readonly 1: readonly [readonly ["tag", {
|
|
158
|
+
serialize(value: number): Buffer;
|
|
159
|
+
deserialize(value: Buffer): number;
|
|
160
|
+
}], readonly ["VSN", {
|
|
161
|
+
serialize(value: number): Buffer;
|
|
162
|
+
deserialize(value: Buffer): number;
|
|
163
|
+
}], readonly ["nonce", {
|
|
164
|
+
serialize(value: number): Buffer;
|
|
165
|
+
deserialize(value: Buffer): number;
|
|
166
|
+
}], readonly ["balance", {
|
|
167
|
+
serialize(value: import("./field-types/u-int").Int): Buffer;
|
|
168
|
+
deserialize(value: Buffer): string;
|
|
169
|
+
}]];
|
|
170
|
+
readonly 2: readonly [readonly ["tag", {
|
|
171
|
+
serialize(value: number): Buffer;
|
|
172
|
+
deserialize(value: Buffer): number;
|
|
173
|
+
}], readonly ["VSN", {
|
|
174
|
+
serialize(value: number): Buffer;
|
|
175
|
+
deserialize(value: Buffer): number;
|
|
176
|
+
}], readonly ["flags", {
|
|
177
|
+
serialize(value: import("./field-types/u-int").Int): Buffer;
|
|
178
|
+
deserialize(value: Buffer): string;
|
|
179
|
+
}], readonly ["nonce", {
|
|
180
|
+
serialize(value: number): Buffer;
|
|
181
|
+
deserialize(value: Buffer): number;
|
|
182
|
+
}], readonly ["balance", {
|
|
183
|
+
serialize(value: import("./field-types/u-int").Int): Buffer;
|
|
184
|
+
deserialize(value: Buffer): string;
|
|
185
|
+
}], readonly ["gaContract", FIELD_TYPES.id, readonly [Encoded.Encoding.ContractAddress, Encoded.Encoding.Name]], readonly ["gaAuthFun", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray]];
|
|
186
|
+
};
|
|
187
|
+
readonly 11: {
|
|
188
|
+
readonly 1: readonly [readonly ["tag", {
|
|
189
|
+
serialize(value: number): Buffer;
|
|
190
|
+
deserialize(value: Buffer): number;
|
|
191
|
+
}], readonly ["VSN", {
|
|
192
|
+
serialize(value: number): Buffer;
|
|
193
|
+
deserialize(value: Buffer): number;
|
|
194
|
+
}], readonly ["signatures", FIELD_TYPES.signatures], readonly ["encodedTx", FIELD_TYPES.rlpBinary]];
|
|
195
|
+
};
|
|
196
|
+
readonly 12: {
|
|
197
|
+
readonly 1: readonly [readonly ["tag", {
|
|
198
|
+
serialize(value: number): Buffer;
|
|
199
|
+
deserialize(value: Buffer): number;
|
|
200
|
+
}], readonly ["VSN", {
|
|
201
|
+
serialize(value: number): Buffer;
|
|
202
|
+
deserialize(value: Buffer): number;
|
|
203
|
+
}], readonly ["senderId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["recipientId", FIELD_TYPES.id, readonly [Encoded.Encoding.AccountAddress, Encoded.Encoding.Name]], readonly ["amount", {
|
|
204
|
+
serializeAettos(value: string | undefined): string;
|
|
205
|
+
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
206
|
+
serialize(value: import("./field-types/u-int").Int, options: import("./field-types/coin-amount").Options): Buffer;
|
|
207
|
+
deserialize(value: Buffer): string;
|
|
208
|
+
}], readonly ["fee", {
|
|
209
|
+
serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
|
|
210
|
+
txType: Tag;
|
|
211
|
+
rebuildTx: (params: any) => any;
|
|
212
|
+
_computingMinFee?: string | undefined;
|
|
213
|
+
}): string;
|
|
214
|
+
serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
|
|
215
|
+
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
216
|
+
deserialize(value: Buffer): string;
|
|
217
|
+
}], readonly ["ttl", {
|
|
218
|
+
serialize(value: number): Buffer;
|
|
219
|
+
deserialize(value: Buffer): number;
|
|
220
|
+
}], readonly ["nonce", {
|
|
221
|
+
serialize(value: number): Buffer;
|
|
222
|
+
deserialize(value: Buffer): number;
|
|
223
|
+
}], readonly ["payload", FIELD_TYPES.payload]];
|
|
224
|
+
};
|
|
225
|
+
readonly 33: {
|
|
226
|
+
readonly 1: readonly [readonly ["tag", {
|
|
227
|
+
serialize(value: number): Buffer;
|
|
228
|
+
deserialize(value: Buffer): number;
|
|
229
|
+
}], readonly ["VSN", {
|
|
230
|
+
serialize(value: number): Buffer;
|
|
231
|
+
deserialize(value: Buffer): number;
|
|
232
|
+
}], readonly ["accountId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["nonce", {
|
|
233
|
+
serialize(value: number): Buffer;
|
|
234
|
+
deserialize(value: Buffer): number;
|
|
235
|
+
}], readonly ["commitmentId", FIELD_TYPES.id, Encoded.Encoding.Commitment], readonly ["fee", {
|
|
236
|
+
serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
|
|
237
|
+
txType: Tag;
|
|
238
|
+
rebuildTx: (params: any) => any;
|
|
239
|
+
_computingMinFee?: string | undefined;
|
|
240
|
+
}): string;
|
|
241
|
+
serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
|
|
242
|
+
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
243
|
+
deserialize(value: Buffer): string;
|
|
244
|
+
}], readonly ["ttl", {
|
|
245
|
+
serialize(value: number): Buffer;
|
|
246
|
+
deserialize(value: Buffer): number;
|
|
247
|
+
}]];
|
|
248
|
+
};
|
|
249
|
+
readonly 32: {
|
|
250
|
+
readonly 2: readonly [readonly ["tag", {
|
|
251
|
+
serialize(value: number): Buffer;
|
|
252
|
+
deserialize(value: Buffer): number;
|
|
253
|
+
}], readonly ["VSN", {
|
|
254
|
+
serialize(value: number): Buffer;
|
|
255
|
+
deserialize(value: Buffer): number;
|
|
256
|
+
}], readonly ["accountId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["nonce", {
|
|
257
|
+
serialize(value: number): Buffer;
|
|
258
|
+
deserialize(value: Buffer): number;
|
|
259
|
+
}], readonly ["name", {
|
|
260
|
+
serialize(value: `${string}.chain`): Buffer;
|
|
261
|
+
deserialize(value: Buffer): `${string}.chain`;
|
|
262
|
+
}], readonly ["nameSalt", {
|
|
263
|
+
serialize(value: import("./field-types/u-int").Int): Buffer;
|
|
264
|
+
deserialize(value: Buffer): string;
|
|
265
|
+
}], readonly ["nameFee", {
|
|
266
|
+
serializeAettos(_value: string | undefined, txFields: {
|
|
267
|
+
name: `${string}.chain`;
|
|
268
|
+
}): string;
|
|
269
|
+
serialize(value: import("./field-types/u-int").Int | undefined, txFields: {
|
|
270
|
+
name: `${string}.chain`;
|
|
271
|
+
} & 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
|
+
deserialize(value: Buffer): string;
|
|
274
|
+
}], readonly ["fee", {
|
|
275
|
+
serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
|
|
276
|
+
txType: Tag;
|
|
277
|
+
rebuildTx: (params: any) => any;
|
|
278
|
+
_computingMinFee?: string | undefined;
|
|
279
|
+
}): string;
|
|
280
|
+
serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
|
|
281
|
+
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
282
|
+
deserialize(value: Buffer): string;
|
|
283
|
+
}], readonly ["ttl", {
|
|
284
|
+
serialize(value: number): Buffer;
|
|
285
|
+
deserialize(value: Buffer): number;
|
|
286
|
+
}]];
|
|
287
|
+
};
|
|
288
|
+
readonly 34: {
|
|
289
|
+
readonly 1: readonly [readonly ["tag", {
|
|
290
|
+
serialize(value: number): Buffer;
|
|
291
|
+
deserialize(value: Buffer): number;
|
|
292
|
+
}], readonly ["VSN", {
|
|
293
|
+
serialize(value: number): Buffer;
|
|
294
|
+
deserialize(value: Buffer): number;
|
|
295
|
+
}], readonly ["accountId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["nonce", {
|
|
296
|
+
serialize(value: number): Buffer;
|
|
297
|
+
deserialize(value: Buffer): number;
|
|
298
|
+
}], readonly ["nameId", {
|
|
299
|
+
serialize(value: `nm_${string}` | `${string}.chain`): Buffer;
|
|
300
|
+
deserialize(value: Buffer): `nm_${string}`;
|
|
301
|
+
}], readonly ["nameTtl", {
|
|
302
|
+
serialize(value: import("./field-types/u-int").Int): Buffer;
|
|
303
|
+
deserialize(value: Buffer): string;
|
|
304
|
+
}], readonly ["pointers", FIELD_TYPES.pointers], readonly ["clientTtl", {
|
|
305
|
+
serialize(value: number): Buffer;
|
|
306
|
+
deserialize(value: Buffer): number;
|
|
307
|
+
}], readonly ["fee", {
|
|
308
|
+
serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
|
|
309
|
+
txType: Tag;
|
|
310
|
+
rebuildTx: (params: any) => any;
|
|
311
|
+
_computingMinFee?: string | undefined;
|
|
312
|
+
}): string;
|
|
313
|
+
serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
|
|
314
|
+
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
315
|
+
deserialize(value: Buffer): string;
|
|
316
|
+
}], readonly ["ttl", {
|
|
317
|
+
serialize(value: number): Buffer;
|
|
318
|
+
deserialize(value: Buffer): number;
|
|
319
|
+
}]];
|
|
320
|
+
};
|
|
321
|
+
readonly 36: {
|
|
322
|
+
readonly 1: readonly [readonly ["tag", {
|
|
323
|
+
serialize(value: number): Buffer;
|
|
324
|
+
deserialize(value: Buffer): number;
|
|
325
|
+
}], readonly ["VSN", {
|
|
326
|
+
serialize(value: number): Buffer;
|
|
327
|
+
deserialize(value: Buffer): number;
|
|
328
|
+
}], readonly ["accountId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["nonce", {
|
|
329
|
+
serialize(value: number): Buffer;
|
|
330
|
+
deserialize(value: Buffer): number;
|
|
331
|
+
}], readonly ["nameId", {
|
|
332
|
+
serialize(value: `nm_${string}` | `${string}.chain`): Buffer;
|
|
333
|
+
deserialize(value: Buffer): `nm_${string}`;
|
|
334
|
+
}], readonly ["recipientId", FIELD_TYPES.id, readonly [Encoded.Encoding.AccountAddress, Encoded.Encoding.Name]], readonly ["fee", {
|
|
335
|
+
serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
|
|
336
|
+
txType: Tag;
|
|
337
|
+
rebuildTx: (params: any) => any;
|
|
338
|
+
_computingMinFee?: string | undefined;
|
|
339
|
+
}): string;
|
|
340
|
+
serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
|
|
341
|
+
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
342
|
+
deserialize(value: Buffer): string;
|
|
343
|
+
}], readonly ["ttl", {
|
|
344
|
+
serialize(value: number): Buffer;
|
|
345
|
+
deserialize(value: Buffer): number;
|
|
346
|
+
}]];
|
|
347
|
+
};
|
|
348
|
+
readonly 35: {
|
|
349
|
+
readonly 1: readonly [readonly ["tag", {
|
|
350
|
+
serialize(value: number): Buffer;
|
|
351
|
+
deserialize(value: Buffer): number;
|
|
352
|
+
}], readonly ["VSN", {
|
|
353
|
+
serialize(value: number): Buffer;
|
|
354
|
+
deserialize(value: Buffer): number;
|
|
355
|
+
}], readonly ["accountId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["nonce", {
|
|
356
|
+
serialize(value: number): Buffer;
|
|
357
|
+
deserialize(value: Buffer): number;
|
|
358
|
+
}], readonly ["nameId", {
|
|
359
|
+
serialize(value: `nm_${string}` | `${string}.chain`): Buffer;
|
|
360
|
+
deserialize(value: Buffer): `nm_${string}`;
|
|
361
|
+
}], readonly ["fee", {
|
|
362
|
+
serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
|
|
363
|
+
txType: Tag;
|
|
364
|
+
rebuildTx: (params: any) => any;
|
|
365
|
+
_computingMinFee?: string | undefined;
|
|
366
|
+
}): string;
|
|
367
|
+
serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
|
|
368
|
+
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
369
|
+
deserialize(value: Buffer): string;
|
|
370
|
+
}], readonly ["ttl", {
|
|
371
|
+
serialize(value: number): Buffer;
|
|
372
|
+
deserialize(value: Buffer): number;
|
|
373
|
+
}]];
|
|
374
|
+
};
|
|
375
|
+
readonly 40: {
|
|
376
|
+
readonly 1: readonly [readonly ["tag", {
|
|
377
|
+
serialize(value: number): Buffer;
|
|
378
|
+
deserialize(value: Buffer): number;
|
|
379
|
+
}], readonly ["VSN", {
|
|
380
|
+
serialize(value: number): Buffer;
|
|
381
|
+
deserialize(value: Buffer): number;
|
|
382
|
+
}], readonly ["owner", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], 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", FIELD_TYPES.ids, Encoded.Encoding.AccountAddress], readonly ["deposit", {
|
|
383
|
+
serialize(value: import("./field-types/u-int").Int | undefined, options: import("./field-types/coin-amount").Options): Buffer;
|
|
384
|
+
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
|
+
deserialize(value: Buffer): string;
|
|
387
|
+
}]];
|
|
388
|
+
};
|
|
389
|
+
readonly 42: {
|
|
390
|
+
readonly 1: readonly [readonly ["tag", {
|
|
391
|
+
serialize(value: number): Buffer;
|
|
392
|
+
deserialize(value: Buffer): number;
|
|
393
|
+
}], readonly ["VSN", {
|
|
394
|
+
serialize(value: number): Buffer;
|
|
395
|
+
deserialize(value: Buffer): number;
|
|
396
|
+
}], readonly ["ownerId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["nonce", {
|
|
397
|
+
serialize(value: number): Buffer;
|
|
398
|
+
deserialize(value: Buffer): number;
|
|
399
|
+
}], readonly ["code", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray], readonly ["ctVersion", FIELD_TYPES.ctVersion], readonly ["fee", {
|
|
400
|
+
serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
|
|
401
|
+
txType: Tag;
|
|
402
|
+
rebuildTx: (params: any) => any;
|
|
403
|
+
_computingMinFee?: string | undefined;
|
|
404
|
+
}): string;
|
|
405
|
+
serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
|
|
406
|
+
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
407
|
+
deserialize(value: Buffer): string;
|
|
408
|
+
}], readonly ["ttl", {
|
|
409
|
+
serialize(value: number): Buffer;
|
|
410
|
+
deserialize(value: Buffer): number;
|
|
411
|
+
}], readonly ["deposit", {
|
|
412
|
+
serialize(value: import("./field-types/u-int").Int | undefined, options: import("./field-types/coin-amount").Options): Buffer;
|
|
413
|
+
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
|
+
deserialize(value: Buffer): string;
|
|
416
|
+
}], readonly ["amount", {
|
|
417
|
+
serializeAettos(value: string | undefined): string;
|
|
418
|
+
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
419
|
+
serialize(value: import("./field-types/u-int").Int, options: import("./field-types/coin-amount").Options): Buffer;
|
|
420
|
+
deserialize(value: Buffer): string;
|
|
421
|
+
}], readonly ["gasLimit", {
|
|
422
|
+
serialize(_value: number | undefined, { txType, rebuildTx, gasMax, _computingGasLimit, }: {
|
|
423
|
+
txType: Tag;
|
|
424
|
+
rebuildTx: (params: any) => any;
|
|
425
|
+
gasMax: number;
|
|
426
|
+
_computingGasLimit?: number | undefined;
|
|
427
|
+
}): Buffer;
|
|
428
|
+
deserialize(value: Buffer): number;
|
|
429
|
+
}], readonly ["gasPrice", {
|
|
430
|
+
serializeAettos(value?: string | undefined): string;
|
|
431
|
+
serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
|
|
432
|
+
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
433
|
+
deserialize(value: Buffer): string;
|
|
434
|
+
}], readonly ["callData", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray]];
|
|
435
|
+
};
|
|
436
|
+
readonly 43: {
|
|
437
|
+
readonly 1: readonly [readonly ["tag", {
|
|
438
|
+
serialize(value: number): Buffer;
|
|
439
|
+
deserialize(value: Buffer): number;
|
|
440
|
+
}], readonly ["VSN", {
|
|
441
|
+
serialize(value: number): Buffer;
|
|
442
|
+
deserialize(value: Buffer): number;
|
|
443
|
+
}], readonly ["callerId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["nonce", {
|
|
444
|
+
serialize(value: number): Buffer;
|
|
445
|
+
deserialize(value: Buffer): number;
|
|
446
|
+
}], readonly ["contractId", FIELD_TYPES.id, readonly [Encoded.Encoding.ContractAddress, Encoded.Encoding.Name]], readonly ["abiVersion", FIELD_TYPES.abiVersion], readonly ["fee", {
|
|
447
|
+
serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
|
|
448
|
+
txType: Tag;
|
|
449
|
+
rebuildTx: (params: any) => any;
|
|
450
|
+
_computingMinFee?: string | undefined;
|
|
451
|
+
}): string;
|
|
452
|
+
serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
|
|
453
|
+
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
454
|
+
deserialize(value: Buffer): string;
|
|
455
|
+
}], readonly ["ttl", {
|
|
456
|
+
serialize(value: number): Buffer;
|
|
457
|
+
deserialize(value: Buffer): number;
|
|
458
|
+
}], readonly ["amount", {
|
|
459
|
+
serializeAettos(value: string | undefined): string;
|
|
460
|
+
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
461
|
+
serialize(value: import("./field-types/u-int").Int, options: import("./field-types/coin-amount").Options): Buffer;
|
|
462
|
+
deserialize(value: Buffer): string;
|
|
463
|
+
}], readonly ["gasLimit", {
|
|
464
|
+
serialize(_value: number | undefined, { txType, rebuildTx, gasMax, _computingGasLimit, }: {
|
|
465
|
+
txType: Tag;
|
|
466
|
+
rebuildTx: (params: any) => any;
|
|
467
|
+
gasMax: number;
|
|
468
|
+
_computingGasLimit?: number | undefined;
|
|
469
|
+
}): Buffer;
|
|
470
|
+
deserialize(value: Buffer): number;
|
|
471
|
+
}], readonly ["gasPrice", {
|
|
472
|
+
serializeAettos(value?: string | undefined): string;
|
|
473
|
+
serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
|
|
474
|
+
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
475
|
+
deserialize(value: Buffer): string;
|
|
476
|
+
}], readonly ["callData", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray]];
|
|
477
|
+
};
|
|
478
|
+
readonly 41: {
|
|
479
|
+
readonly 1: readonly [readonly ["tag", {
|
|
480
|
+
serialize(value: number): Buffer;
|
|
481
|
+
deserialize(value: Buffer): number;
|
|
482
|
+
}], readonly ["VSN", {
|
|
483
|
+
serialize(value: number): Buffer;
|
|
484
|
+
deserialize(value: Buffer): number;
|
|
485
|
+
}], readonly ["callerId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["callerNonce", {
|
|
486
|
+
serialize(value: number): Buffer;
|
|
487
|
+
deserialize(value: Buffer): number;
|
|
488
|
+
}], readonly ["height", {
|
|
489
|
+
serialize(value: number): Buffer;
|
|
490
|
+
deserialize(value: Buffer): number;
|
|
491
|
+
}], readonly ["contractId", FIELD_TYPES.id, Encoded.Encoding.ContractAddress], readonly ["gasPrice", {
|
|
492
|
+
serializeAettos(value?: string | undefined): string;
|
|
493
|
+
serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
|
|
494
|
+
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
495
|
+
deserialize(value: Buffer): string;
|
|
496
|
+
}], readonly ["gasUsed", {
|
|
497
|
+
serialize(value: number): Buffer;
|
|
498
|
+
deserialize(value: Buffer): number;
|
|
499
|
+
}], readonly ["returnValue", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray], readonly ["returnType", FIELD_TYPES.callReturnType], readonly ["log", FIELD_TYPES.rawBinary]];
|
|
500
|
+
};
|
|
501
|
+
readonly 22: {
|
|
502
|
+
readonly 1: readonly [readonly ["tag", {
|
|
503
|
+
serialize(value: number): Buffer;
|
|
504
|
+
deserialize(value: Buffer): number;
|
|
505
|
+
}], readonly ["VSN", {
|
|
506
|
+
serialize(value: number): Buffer;
|
|
507
|
+
deserialize(value: Buffer): number;
|
|
508
|
+
}], readonly ["accountId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["nonce", {
|
|
509
|
+
serialize(value: number): Buffer;
|
|
510
|
+
deserialize(value: Buffer): number;
|
|
511
|
+
}], readonly ["queryFormat", FIELD_TYPES.string], readonly ["responseFormat", FIELD_TYPES.string], readonly ["queryFee", {
|
|
512
|
+
serializeAettos(value: string | undefined): string;
|
|
513
|
+
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
514
|
+
serialize(value: import("./field-types/u-int").Int, options: import("./field-types/coin-amount").Options): Buffer;
|
|
515
|
+
deserialize(value: Buffer): string;
|
|
516
|
+
}], readonly ["oracleTtlType", FIELD_TYPES.ttlType], readonly ["oracleTtlValue", {
|
|
517
|
+
serialize(value: number): Buffer;
|
|
518
|
+
deserialize(value: Buffer): number;
|
|
519
|
+
}], readonly ["fee", {
|
|
520
|
+
serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
|
|
521
|
+
txType: Tag;
|
|
522
|
+
rebuildTx: (params: any) => any;
|
|
523
|
+
_computingMinFee?: string | undefined;
|
|
524
|
+
}): string;
|
|
525
|
+
serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
|
|
526
|
+
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
527
|
+
deserialize(value: Buffer): string;
|
|
528
|
+
}], readonly ["ttl", {
|
|
529
|
+
serialize(value: number): Buffer;
|
|
530
|
+
deserialize(value: Buffer): number;
|
|
531
|
+
}], readonly ["abiVersion", FIELD_TYPES.abiVersion]];
|
|
532
|
+
};
|
|
533
|
+
readonly 25: {
|
|
534
|
+
readonly 1: readonly [readonly ["tag", {
|
|
535
|
+
serialize(value: number): Buffer;
|
|
536
|
+
deserialize(value: Buffer): number;
|
|
537
|
+
}], readonly ["VSN", {
|
|
538
|
+
serialize(value: number): Buffer;
|
|
539
|
+
deserialize(value: Buffer): number;
|
|
540
|
+
}], readonly ["oracleId", FIELD_TYPES.id, readonly [Encoded.Encoding.OracleAddress, Encoded.Encoding.Name]], readonly ["nonce", {
|
|
541
|
+
serialize(value: number): Buffer;
|
|
542
|
+
deserialize(value: Buffer): number;
|
|
543
|
+
}], readonly ["oracleTtlType", FIELD_TYPES.ttlType], readonly ["oracleTtlValue", {
|
|
544
|
+
serialize(value: number): Buffer;
|
|
545
|
+
deserialize(value: Buffer): number;
|
|
546
|
+
}], readonly ["fee", {
|
|
547
|
+
serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
|
|
548
|
+
txType: Tag;
|
|
549
|
+
rebuildTx: (params: any) => any;
|
|
550
|
+
_computingMinFee?: string | undefined;
|
|
551
|
+
}): string;
|
|
552
|
+
serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
|
|
553
|
+
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
554
|
+
deserialize(value: Buffer): string;
|
|
555
|
+
}], readonly ["ttl", {
|
|
556
|
+
serialize(value: number): Buffer;
|
|
557
|
+
deserialize(value: Buffer): number;
|
|
558
|
+
}]];
|
|
559
|
+
};
|
|
560
|
+
readonly 23: {
|
|
561
|
+
readonly 1: readonly [readonly ["tag", {
|
|
562
|
+
serialize(value: number): Buffer;
|
|
563
|
+
deserialize(value: Buffer): number;
|
|
564
|
+
}], readonly ["VSN", {
|
|
565
|
+
serialize(value: number): Buffer;
|
|
566
|
+
deserialize(value: Buffer): number;
|
|
567
|
+
}], readonly ["senderId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["nonce", {
|
|
568
|
+
serialize(value: number): Buffer;
|
|
569
|
+
deserialize(value: Buffer): number;
|
|
570
|
+
}], readonly ["oracleId", FIELD_TYPES.id, readonly [Encoded.Encoding.OracleAddress, Encoded.Encoding.Name]], readonly ["query", FIELD_TYPES.string], readonly ["queryFee", {
|
|
571
|
+
serializeAettos(value: string | undefined): string;
|
|
572
|
+
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
573
|
+
serialize(value: import("./field-types/u-int").Int, options: import("./field-types/coin-amount").Options): Buffer;
|
|
574
|
+
deserialize(value: Buffer): string;
|
|
575
|
+
}], readonly ["queryTtlType", FIELD_TYPES.ttlType], readonly ["queryTtlValue", {
|
|
576
|
+
serialize(value: number): Buffer;
|
|
577
|
+
deserialize(value: Buffer): number;
|
|
578
|
+
}], readonly ["responseTtlType", FIELD_TYPES.ttlType], readonly ["responseTtlValue", {
|
|
579
|
+
serialize(value: number): Buffer;
|
|
580
|
+
deserialize(value: Buffer): number;
|
|
581
|
+
}], readonly ["fee", {
|
|
582
|
+
serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
|
|
583
|
+
txType: Tag;
|
|
584
|
+
rebuildTx: (params: any) => any;
|
|
585
|
+
_computingMinFee?: string | undefined;
|
|
586
|
+
}): string;
|
|
587
|
+
serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
|
|
588
|
+
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
589
|
+
deserialize(value: Buffer): string;
|
|
590
|
+
}], readonly ["ttl", {
|
|
591
|
+
serialize(value: number): Buffer;
|
|
592
|
+
deserialize(value: Buffer): number;
|
|
593
|
+
}]];
|
|
594
|
+
};
|
|
595
|
+
readonly 24: {
|
|
596
|
+
readonly 1: readonly [readonly ["tag", {
|
|
597
|
+
serialize(value: number): Buffer;
|
|
598
|
+
deserialize(value: Buffer): number;
|
|
599
|
+
}], readonly ["VSN", {
|
|
600
|
+
serialize(value: number): Buffer;
|
|
601
|
+
deserialize(value: Buffer): number;
|
|
602
|
+
}], readonly ["oracleId", FIELD_TYPES.id, Encoded.Encoding.OracleAddress], readonly ["nonce", {
|
|
603
|
+
serialize(value: number): Buffer;
|
|
604
|
+
deserialize(value: Buffer): number;
|
|
605
|
+
}], readonly ["queryId", FIELD_TYPES.binary, Encoded.Encoding.OracleQueryId], readonly ["response", FIELD_TYPES.string], readonly ["responseTtlType", FIELD_TYPES.ttlType], readonly ["responseTtlValue", {
|
|
606
|
+
serialize(value: number): Buffer;
|
|
607
|
+
deserialize(value: Buffer): number;
|
|
608
|
+
}], readonly ["fee", {
|
|
609
|
+
serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
|
|
610
|
+
txType: Tag;
|
|
611
|
+
rebuildTx: (params: any) => any;
|
|
612
|
+
_computingMinFee?: string | undefined;
|
|
613
|
+
}): string;
|
|
614
|
+
serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
|
|
615
|
+
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
616
|
+
deserialize(value: Buffer): string;
|
|
617
|
+
}], readonly ["ttl", {
|
|
618
|
+
serialize(value: number): Buffer;
|
|
619
|
+
deserialize(value: Buffer): number;
|
|
620
|
+
}]];
|
|
621
|
+
};
|
|
622
|
+
readonly 50: {
|
|
623
|
+
readonly 2: readonly [readonly ["tag", {
|
|
624
|
+
serialize(value: number): Buffer;
|
|
625
|
+
deserialize(value: Buffer): number;
|
|
626
|
+
}], readonly ["VSN", {
|
|
627
|
+
serialize(value: number): Buffer;
|
|
628
|
+
deserialize(value: Buffer): number;
|
|
629
|
+
}], readonly ["initiator", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["initiatorAmount", {
|
|
630
|
+
serialize(value: import("./field-types/u-int").Int): Buffer;
|
|
631
|
+
deserialize(value: Buffer): string;
|
|
632
|
+
}], readonly ["responder", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["responderAmount", {
|
|
633
|
+
serialize(value: import("./field-types/u-int").Int): Buffer;
|
|
634
|
+
deserialize(value: Buffer): string;
|
|
635
|
+
}], readonly ["channelReserve", {
|
|
636
|
+
serialize(value: import("./field-types/u-int").Int): Buffer;
|
|
637
|
+
deserialize(value: Buffer): string;
|
|
638
|
+
}], readonly ["lockPeriod", {
|
|
639
|
+
serialize(value: import("./field-types/u-int").Int): Buffer;
|
|
640
|
+
deserialize(value: Buffer): string;
|
|
641
|
+
}], readonly ["ttl", {
|
|
642
|
+
serialize(value: number): Buffer;
|
|
643
|
+
deserialize(value: Buffer): number;
|
|
644
|
+
}], readonly ["fee", {
|
|
645
|
+
serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
|
|
646
|
+
txType: Tag;
|
|
647
|
+
rebuildTx: (params: any) => any;
|
|
648
|
+
_computingMinFee?: string | undefined;
|
|
649
|
+
}): string;
|
|
650
|
+
serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
|
|
651
|
+
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
652
|
+
deserialize(value: Buffer): string;
|
|
653
|
+
}], readonly ["initiatorDelegateIds", FIELD_TYPES.string], readonly ["responderDelegateIds", FIELD_TYPES.string], readonly ["stateHash", FIELD_TYPES.binary, "st"], readonly ["nonce", {
|
|
654
|
+
serialize(value: number): Buffer;
|
|
655
|
+
deserialize(value: Buffer): number;
|
|
656
|
+
}]];
|
|
657
|
+
};
|
|
658
|
+
readonly 53: {
|
|
659
|
+
readonly 1: readonly [readonly ["tag", {
|
|
660
|
+
serialize(value: number): Buffer;
|
|
661
|
+
deserialize(value: Buffer): number;
|
|
662
|
+
}], readonly ["VSN", {
|
|
663
|
+
serialize(value: number): Buffer;
|
|
664
|
+
deserialize(value: Buffer): number;
|
|
665
|
+
}], readonly ["channelId", FIELD_TYPES.id, Encoded.Encoding.Channel], readonly ["fromId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["initiatorAmountFinal", {
|
|
666
|
+
serialize(value: import("./field-types/u-int").Int): Buffer;
|
|
667
|
+
deserialize(value: Buffer): string;
|
|
668
|
+
}], readonly ["responderAmountFinal", {
|
|
669
|
+
serialize(value: import("./field-types/u-int").Int): Buffer;
|
|
670
|
+
deserialize(value: Buffer): string;
|
|
671
|
+
}], readonly ["ttl", {
|
|
672
|
+
serialize(value: number): Buffer;
|
|
673
|
+
deserialize(value: Buffer): number;
|
|
674
|
+
}], readonly ["fee", {
|
|
675
|
+
serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
|
|
676
|
+
txType: Tag;
|
|
677
|
+
rebuildTx: (params: any) => any;
|
|
678
|
+
_computingMinFee?: string | undefined;
|
|
679
|
+
}): string;
|
|
680
|
+
serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
|
|
681
|
+
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
682
|
+
deserialize(value: Buffer): string;
|
|
683
|
+
}], readonly ["nonce", {
|
|
684
|
+
serialize(value: number): Buffer;
|
|
685
|
+
deserialize(value: Buffer): number;
|
|
686
|
+
}]];
|
|
687
|
+
};
|
|
688
|
+
readonly 54: {
|
|
689
|
+
readonly 1: readonly [readonly ["tag", {
|
|
690
|
+
serialize(value: number): Buffer;
|
|
691
|
+
deserialize(value: Buffer): number;
|
|
692
|
+
}], readonly ["VSN", {
|
|
693
|
+
serialize(value: number): Buffer;
|
|
694
|
+
deserialize(value: Buffer): number;
|
|
695
|
+
}], readonly ["channelId", FIELD_TYPES.id, Encoded.Encoding.Channel], readonly ["fromId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["payload", FIELD_TYPES.binary, "tx"], readonly ["poi", FIELD_TYPES.binary, "pi"], readonly ["ttl", {
|
|
696
|
+
serialize(value: number): Buffer;
|
|
697
|
+
deserialize(value: Buffer): number;
|
|
698
|
+
}], readonly ["fee", {
|
|
699
|
+
serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
|
|
700
|
+
txType: Tag;
|
|
701
|
+
rebuildTx: (params: any) => any;
|
|
702
|
+
_computingMinFee?: string | undefined;
|
|
703
|
+
}): string;
|
|
704
|
+
serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
|
|
705
|
+
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
706
|
+
deserialize(value: Buffer): string;
|
|
707
|
+
}], readonly ["nonce", {
|
|
708
|
+
serialize(value: number): Buffer;
|
|
709
|
+
deserialize(value: Buffer): number;
|
|
710
|
+
}]];
|
|
711
|
+
};
|
|
712
|
+
readonly 55: {
|
|
713
|
+
readonly 1: readonly [readonly ["tag", {
|
|
714
|
+
serialize(value: number): Buffer;
|
|
715
|
+
deserialize(value: Buffer): number;
|
|
716
|
+
}], readonly ["VSN", {
|
|
717
|
+
serialize(value: number): Buffer;
|
|
718
|
+
deserialize(value: Buffer): number;
|
|
719
|
+
}], readonly ["channelId", FIELD_TYPES.id, Encoded.Encoding.Channel], readonly ["fromId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["payload", FIELD_TYPES.binary, "tx"], readonly ["poi", FIELD_TYPES.binary, "pi"], readonly ["ttl", {
|
|
720
|
+
serialize(value: number): Buffer;
|
|
721
|
+
deserialize(value: Buffer): number;
|
|
722
|
+
}], readonly ["fee", {
|
|
723
|
+
serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
|
|
724
|
+
txType: Tag;
|
|
725
|
+
rebuildTx: (params: any) => any;
|
|
726
|
+
_computingMinFee?: string | undefined;
|
|
727
|
+
}): string;
|
|
728
|
+
serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
|
|
729
|
+
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
730
|
+
deserialize(value: Buffer): string;
|
|
731
|
+
}], readonly ["nonce", {
|
|
732
|
+
serialize(value: number): Buffer;
|
|
733
|
+
deserialize(value: Buffer): number;
|
|
734
|
+
}]];
|
|
735
|
+
};
|
|
736
|
+
readonly 51: {
|
|
737
|
+
readonly 1: readonly [readonly ["tag", {
|
|
738
|
+
serialize(value: number): Buffer;
|
|
739
|
+
deserialize(value: Buffer): number;
|
|
740
|
+
}], readonly ["VSN", {
|
|
741
|
+
serialize(value: number): Buffer;
|
|
742
|
+
deserialize(value: Buffer): number;
|
|
743
|
+
}], readonly ["channelId", FIELD_TYPES.id, Encoded.Encoding.Channel], readonly ["fromId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["amount", {
|
|
744
|
+
serialize(value: import("./field-types/u-int").Int): Buffer;
|
|
745
|
+
deserialize(value: Buffer): string;
|
|
746
|
+
}], readonly ["ttl", {
|
|
747
|
+
serialize(value: number): Buffer;
|
|
748
|
+
deserialize(value: Buffer): number;
|
|
749
|
+
}], readonly ["fee", {
|
|
750
|
+
serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
|
|
751
|
+
txType: Tag;
|
|
752
|
+
rebuildTx: (params: any) => any;
|
|
753
|
+
_computingMinFee?: string | undefined;
|
|
754
|
+
}): string;
|
|
755
|
+
serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
|
|
756
|
+
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
757
|
+
deserialize(value: Buffer): string;
|
|
758
|
+
}], readonly ["stateHash", FIELD_TYPES.binary, "st"], readonly ["round", {
|
|
759
|
+
serialize(value: number): Buffer;
|
|
760
|
+
deserialize(value: Buffer): number;
|
|
761
|
+
}], readonly ["nonce", {
|
|
762
|
+
serialize(value: number): Buffer;
|
|
763
|
+
deserialize(value: Buffer): number;
|
|
764
|
+
}]];
|
|
765
|
+
};
|
|
766
|
+
readonly 52: {
|
|
767
|
+
readonly 1: readonly [readonly ["tag", {
|
|
768
|
+
serialize(value: number): Buffer;
|
|
769
|
+
deserialize(value: Buffer): number;
|
|
770
|
+
}], readonly ["VSN", {
|
|
771
|
+
serialize(value: number): Buffer;
|
|
772
|
+
deserialize(value: Buffer): number;
|
|
773
|
+
}], readonly ["channelId", FIELD_TYPES.id, Encoded.Encoding.Channel], readonly ["toId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["amount", {
|
|
774
|
+
serialize(value: import("./field-types/u-int").Int): Buffer;
|
|
775
|
+
deserialize(value: Buffer): string;
|
|
776
|
+
}], readonly ["ttl", {
|
|
777
|
+
serialize(value: number): Buffer;
|
|
778
|
+
deserialize(value: Buffer): number;
|
|
779
|
+
}], readonly ["fee", {
|
|
780
|
+
serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
|
|
781
|
+
txType: Tag;
|
|
782
|
+
rebuildTx: (params: any) => any;
|
|
783
|
+
_computingMinFee?: string | undefined;
|
|
784
|
+
}): string;
|
|
785
|
+
serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
|
|
786
|
+
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
787
|
+
deserialize(value: Buffer): string;
|
|
788
|
+
}], readonly ["stateHash", FIELD_TYPES.binary, "st"], readonly ["round", {
|
|
789
|
+
serialize(value: number): Buffer;
|
|
790
|
+
deserialize(value: Buffer): number;
|
|
791
|
+
}], readonly ["nonce", {
|
|
792
|
+
serialize(value: number): Buffer;
|
|
793
|
+
deserialize(value: Buffer): number;
|
|
794
|
+
}]];
|
|
795
|
+
};
|
|
796
|
+
readonly 56: {
|
|
797
|
+
readonly 1: readonly [readonly ["tag", {
|
|
798
|
+
serialize(value: number): Buffer;
|
|
799
|
+
deserialize(value: Buffer): number;
|
|
800
|
+
}], readonly ["VSN", {
|
|
801
|
+
serialize(value: number): Buffer;
|
|
802
|
+
deserialize(value: Buffer): number;
|
|
803
|
+
}], readonly ["channelId", FIELD_TYPES.id, Encoded.Encoding.Channel], readonly ["fromId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["initiatorAmountFinal", {
|
|
804
|
+
serialize(value: import("./field-types/u-int").Int): Buffer;
|
|
805
|
+
deserialize(value: Buffer): string;
|
|
806
|
+
}], readonly ["responderAmountFinal", {
|
|
807
|
+
serialize(value: import("./field-types/u-int").Int): Buffer;
|
|
808
|
+
deserialize(value: Buffer): string;
|
|
809
|
+
}], readonly ["ttl", {
|
|
810
|
+
serialize(value: number): Buffer;
|
|
811
|
+
deserialize(value: Buffer): number;
|
|
812
|
+
}], readonly ["fee", {
|
|
813
|
+
serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
|
|
814
|
+
txType: Tag;
|
|
815
|
+
rebuildTx: (params: any) => any;
|
|
816
|
+
_computingMinFee?: string | undefined;
|
|
817
|
+
}): string;
|
|
818
|
+
serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
|
|
819
|
+
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
820
|
+
deserialize(value: Buffer): string;
|
|
821
|
+
}], readonly ["nonce", {
|
|
822
|
+
serialize(value: number): Buffer;
|
|
823
|
+
deserialize(value: Buffer): number;
|
|
824
|
+
}]];
|
|
825
|
+
};
|
|
826
|
+
readonly 521: {
|
|
827
|
+
readonly 1: readonly [readonly ["tag", {
|
|
828
|
+
serialize(value: number): Buffer;
|
|
829
|
+
deserialize(value: Buffer): number;
|
|
830
|
+
}], readonly ["VSN", {
|
|
831
|
+
serialize(value: number): Buffer;
|
|
832
|
+
deserialize(value: Buffer): number;
|
|
833
|
+
}], readonly ["channelId", FIELD_TYPES.id, Encoded.Encoding.Channel], readonly ["fromId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["payload", FIELD_TYPES.binary, "tx"], readonly ["round", {
|
|
834
|
+
serialize(value: number): Buffer;
|
|
835
|
+
deserialize(value: Buffer): number;
|
|
836
|
+
}], readonly ["update", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray], readonly ["stateHash", FIELD_TYPES.binary, "st"], readonly ["offChainTrees", FIELD_TYPES.stateTree], readonly ["ttl", {
|
|
837
|
+
serialize(value: number): Buffer;
|
|
838
|
+
deserialize(value: Buffer): number;
|
|
839
|
+
}], readonly ["fee", {
|
|
840
|
+
serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
|
|
841
|
+
txType: Tag;
|
|
842
|
+
rebuildTx: (params: any) => any;
|
|
843
|
+
_computingMinFee?: string | undefined;
|
|
844
|
+
}): string;
|
|
845
|
+
serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
|
|
846
|
+
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
847
|
+
deserialize(value: Buffer): string;
|
|
848
|
+
}], readonly ["nonce", {
|
|
849
|
+
serialize(value: number): Buffer;
|
|
850
|
+
deserialize(value: Buffer): number;
|
|
851
|
+
}]];
|
|
852
|
+
};
|
|
853
|
+
readonly 57: {
|
|
854
|
+
readonly 2: readonly [readonly ["tag", {
|
|
855
|
+
serialize(value: number): Buffer;
|
|
856
|
+
deserialize(value: Buffer): number;
|
|
857
|
+
}], readonly ["VSN", {
|
|
858
|
+
serialize(value: number): Buffer;
|
|
859
|
+
deserialize(value: Buffer): number;
|
|
860
|
+
}], readonly ["channelId", FIELD_TYPES.id, Encoded.Encoding.Channel], readonly ["round", {
|
|
861
|
+
serialize(value: number): Buffer;
|
|
862
|
+
deserialize(value: Buffer): number;
|
|
863
|
+
}], readonly ["stateHash", FIELD_TYPES.binary, "st"]];
|
|
864
|
+
};
|
|
865
|
+
readonly 58: {
|
|
866
|
+
readonly 3: readonly [readonly ["tag", {
|
|
867
|
+
serialize(value: number): Buffer;
|
|
868
|
+
deserialize(value: Buffer): number;
|
|
869
|
+
}], readonly ["VSN", {
|
|
870
|
+
serialize(value: number): Buffer;
|
|
871
|
+
deserialize(value: Buffer): number;
|
|
872
|
+
}], readonly ["initiator", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["responder", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["channelAmount", {
|
|
873
|
+
serialize(value: import("./field-types/u-int").Int): Buffer;
|
|
874
|
+
deserialize(value: Buffer): string;
|
|
875
|
+
}], readonly ["initiatorAmount", {
|
|
876
|
+
serialize(value: import("./field-types/u-int").Int): Buffer;
|
|
877
|
+
deserialize(value: Buffer): string;
|
|
878
|
+
}], readonly ["responderAmount", {
|
|
879
|
+
serialize(value: import("./field-types/u-int").Int): Buffer;
|
|
880
|
+
deserialize(value: Buffer): string;
|
|
881
|
+
}], readonly ["channelReserve", {
|
|
882
|
+
serialize(value: import("./field-types/u-int").Int): Buffer;
|
|
883
|
+
deserialize(value: Buffer): string;
|
|
884
|
+
}], readonly ["initiatorDelegateIds", FIELD_TYPES.ids], readonly ["responderDelegateIds", FIELD_TYPES.ids], readonly ["stateHash", FIELD_TYPES.hex], readonly ["round", {
|
|
885
|
+
serialize(value: number): Buffer;
|
|
886
|
+
deserialize(value: Buffer): number;
|
|
887
|
+
}], readonly ["soloRound", {
|
|
888
|
+
serialize(value: import("./field-types/u-int").Int): Buffer;
|
|
889
|
+
deserialize(value: Buffer): string;
|
|
890
|
+
}], readonly ["lockPeriod", {
|
|
891
|
+
serialize(value: import("./field-types/u-int").Int): Buffer;
|
|
892
|
+
deserialize(value: Buffer): string;
|
|
893
|
+
}], readonly ["lockedUntil", {
|
|
894
|
+
serialize(value: import("./field-types/u-int").Int): Buffer;
|
|
895
|
+
deserialize(value: Buffer): string;
|
|
896
|
+
}], readonly ["initiatorAuth", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray], readonly ["responderAuth", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray]];
|
|
897
|
+
};
|
|
898
|
+
readonly 59: {
|
|
899
|
+
readonly 1: readonly [readonly ["tag", {
|
|
900
|
+
serialize(value: number): Buffer;
|
|
901
|
+
deserialize(value: Buffer): number;
|
|
902
|
+
}], readonly ["VSN", {
|
|
903
|
+
serialize(value: number): Buffer;
|
|
904
|
+
deserialize(value: Buffer): number;
|
|
905
|
+
}], readonly ["channelId", FIELD_TYPES.id, Encoded.Encoding.Channel], readonly ["fromId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["payload", FIELD_TYPES.binary, "tx"], readonly ["ttl", {
|
|
906
|
+
serialize(value: number): Buffer;
|
|
907
|
+
deserialize(value: Buffer): number;
|
|
908
|
+
}], readonly ["fee", {
|
|
909
|
+
serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
|
|
910
|
+
txType: Tag;
|
|
911
|
+
rebuildTx: (params: any) => any;
|
|
912
|
+
_computingMinFee?: string | undefined;
|
|
913
|
+
}): string;
|
|
914
|
+
serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
|
|
915
|
+
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
916
|
+
deserialize(value: Buffer): string;
|
|
917
|
+
}], readonly ["nonce", {
|
|
918
|
+
serialize(value: number): Buffer;
|
|
919
|
+
deserialize(value: Buffer): number;
|
|
920
|
+
}]];
|
|
921
|
+
};
|
|
922
|
+
readonly 570: {
|
|
923
|
+
readonly 1: readonly [readonly ["tag", {
|
|
924
|
+
serialize(value: number): Buffer;
|
|
925
|
+
deserialize(value: Buffer): number;
|
|
926
|
+
}], readonly ["VSN", {
|
|
927
|
+
serialize(value: number): Buffer;
|
|
928
|
+
deserialize(value: Buffer): number;
|
|
929
|
+
}], readonly ["from", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["to", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["amount", {
|
|
930
|
+
serialize(value: import("./field-types/u-int").Int): Buffer;
|
|
931
|
+
deserialize(value: Buffer): string;
|
|
932
|
+
}]];
|
|
933
|
+
};
|
|
934
|
+
readonly 571: {
|
|
935
|
+
readonly 1: readonly [readonly ["tag", {
|
|
936
|
+
serialize(value: number): Buffer;
|
|
937
|
+
deserialize(value: Buffer): number;
|
|
938
|
+
}], readonly ["VSN", {
|
|
939
|
+
serialize(value: number): Buffer;
|
|
940
|
+
deserialize(value: Buffer): number;
|
|
941
|
+
}], readonly ["from", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["amount", {
|
|
942
|
+
serialize(value: import("./field-types/u-int").Int): Buffer;
|
|
943
|
+
deserialize(value: Buffer): string;
|
|
944
|
+
}]];
|
|
945
|
+
};
|
|
946
|
+
readonly 572: {
|
|
947
|
+
readonly 1: readonly [readonly ["tag", {
|
|
948
|
+
serialize(value: number): Buffer;
|
|
949
|
+
deserialize(value: Buffer): number;
|
|
950
|
+
}], readonly ["VSN", {
|
|
951
|
+
serialize(value: number): Buffer;
|
|
952
|
+
deserialize(value: Buffer): number;
|
|
953
|
+
}], readonly ["from", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["amount", {
|
|
954
|
+
serialize(value: import("./field-types/u-int").Int): Buffer;
|
|
955
|
+
deserialize(value: Buffer): string;
|
|
956
|
+
}]];
|
|
957
|
+
};
|
|
958
|
+
readonly 573: {
|
|
959
|
+
readonly 1: readonly [readonly ["tag", {
|
|
960
|
+
serialize(value: number): Buffer;
|
|
961
|
+
deserialize(value: Buffer): number;
|
|
962
|
+
}], readonly ["VSN", {
|
|
963
|
+
serialize(value: number): Buffer;
|
|
964
|
+
deserialize(value: Buffer): number;
|
|
965
|
+
}], readonly ["owner", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["ctVersion", FIELD_TYPES.ctVersion], readonly ["code", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray], readonly ["deposit", {
|
|
966
|
+
serialize(value: import("./field-types/u-int").Int): Buffer;
|
|
967
|
+
deserialize(value: Buffer): string;
|
|
968
|
+
}], readonly ["callData", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray]];
|
|
969
|
+
};
|
|
970
|
+
readonly 574: {
|
|
971
|
+
readonly 1: readonly [readonly ["tag", {
|
|
972
|
+
serialize(value: number): Buffer;
|
|
973
|
+
deserialize(value: Buffer): number;
|
|
974
|
+
}], readonly ["VSN", {
|
|
975
|
+
serialize(value: number): Buffer;
|
|
976
|
+
deserialize(value: Buffer): number;
|
|
977
|
+
}], readonly ["caller", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["contract", FIELD_TYPES.id, Encoded.Encoding.ContractAddress], readonly ["abiVersion", FIELD_TYPES.abiVersion], readonly ["amount", {
|
|
978
|
+
serialize(value: import("./field-types/u-int").Int): Buffer;
|
|
979
|
+
deserialize(value: Buffer): string;
|
|
980
|
+
}], readonly ["callData", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray], readonly ["callStack", FIELD_TYPES.callStack], readonly ["gasPrice", {
|
|
981
|
+
serializeAettos(value?: string | undefined): string;
|
|
982
|
+
serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
|
|
983
|
+
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
984
|
+
deserialize(value: Buffer): string;
|
|
985
|
+
}], readonly ["gasLimit", {
|
|
986
|
+
serialize(_value: number | undefined, { txType, rebuildTx, gasMax, _computingGasLimit, }: {
|
|
987
|
+
txType: Tag;
|
|
988
|
+
rebuildTx: (params: any) => any;
|
|
989
|
+
gasMax: number;
|
|
990
|
+
_computingGasLimit?: number | undefined;
|
|
991
|
+
}): Buffer;
|
|
992
|
+
deserialize(value: Buffer): number;
|
|
993
|
+
}]];
|
|
994
|
+
};
|
|
995
|
+
readonly 575: {
|
|
996
|
+
readonly 1: readonly [readonly ["tag", {
|
|
997
|
+
serialize(value: number): Buffer;
|
|
998
|
+
deserialize(value: Buffer): number;
|
|
999
|
+
}], readonly ["VSN", {
|
|
1000
|
+
serialize(value: number): Buffer;
|
|
1001
|
+
deserialize(value: Buffer): number;
|
|
1002
|
+
}], readonly ["channelId", FIELD_TYPES.id, Encoded.Encoding.Channel], readonly ["round", {
|
|
1003
|
+
serialize(value: number): Buffer;
|
|
1004
|
+
deserialize(value: Buffer): number;
|
|
1005
|
+
}], readonly ["role", FIELD_TYPES.string], readonly ["pubkey", FIELD_TYPES.id, Encoded.Encoding.AccountAddress]];
|
|
1006
|
+
};
|
|
1007
|
+
readonly 60: {
|
|
1008
|
+
readonly 1: readonly [readonly ["tag", {
|
|
1009
|
+
serialize(value: number): Buffer;
|
|
1010
|
+
deserialize(value: Buffer): number;
|
|
1011
|
+
}], readonly ["VSN", {
|
|
1012
|
+
serialize(value: number): Buffer;
|
|
1013
|
+
deserialize(value: Buffer): number;
|
|
1014
|
+
}], readonly ["accounts", FIELD_TYPES.mptrees], readonly ["calls", FIELD_TYPES.mptrees], readonly ["channels", FIELD_TYPES.mptrees], readonly ["contracts", FIELD_TYPES.mptrees], readonly ["ns", FIELD_TYPES.mptrees], readonly ["oracles", FIELD_TYPES.mptrees]];
|
|
1015
|
+
};
|
|
1016
|
+
readonly 62: {
|
|
1017
|
+
readonly 1: readonly [readonly ["tag", {
|
|
1018
|
+
serialize(value: number): Buffer;
|
|
1019
|
+
deserialize(value: Buffer): number;
|
|
1020
|
+
}], readonly ["VSN", {
|
|
1021
|
+
serialize(value: number): Buffer;
|
|
1022
|
+
deserialize(value: Buffer): number;
|
|
1023
|
+
}], readonly ["contracts", FIELD_TYPES.rlpBinary], readonly ["calls", FIELD_TYPES.rlpBinary], readonly ["channels", FIELD_TYPES.rlpBinary], readonly ["ns", FIELD_TYPES.rlpBinary], readonly ["oracles", FIELD_TYPES.rlpBinary], readonly ["accounts", FIELD_TYPES.rlpBinary]];
|
|
1024
|
+
};
|
|
1025
|
+
readonly 63: {
|
|
1026
|
+
readonly 1: readonly [readonly ["tag", {
|
|
1027
|
+
serialize(value: number): Buffer;
|
|
1028
|
+
deserialize(value: Buffer): number;
|
|
1029
|
+
}], readonly ["VSN", {
|
|
1030
|
+
serialize(value: number): Buffer;
|
|
1031
|
+
deserialize(value: Buffer): number;
|
|
1032
|
+
}], readonly ["values", FIELD_TYPES.rlpBinaries]];
|
|
1033
|
+
};
|
|
1034
|
+
readonly 64: {
|
|
1035
|
+
readonly 1: readonly [readonly ["tag", {
|
|
1036
|
+
serialize(value: number): Buffer;
|
|
1037
|
+
deserialize(value: Buffer): number;
|
|
1038
|
+
}], readonly ["VSN", {
|
|
1039
|
+
serialize(value: number): Buffer;
|
|
1040
|
+
deserialize(value: Buffer): number;
|
|
1041
|
+
}], readonly ["key", FIELD_TYPES.hex], readonly ["value", FIELD_TYPES.rawBinary]];
|
|
1042
|
+
};
|
|
1043
|
+
readonly 621: {
|
|
1044
|
+
readonly 1: readonly [readonly ["tag", {
|
|
1045
|
+
serialize(value: number): Buffer;
|
|
1046
|
+
deserialize(value: Buffer): number;
|
|
1047
|
+
}], readonly ["VSN", {
|
|
1048
|
+
serialize(value: number): Buffer;
|
|
1049
|
+
deserialize(value: Buffer): number;
|
|
1050
|
+
}], readonly ["contracts", FIELD_TYPES.rlpBinary]];
|
|
1051
|
+
};
|
|
1052
|
+
readonly 622: {
|
|
1053
|
+
readonly 1: readonly [readonly ["tag", {
|
|
1054
|
+
serialize(value: number): Buffer;
|
|
1055
|
+
deserialize(value: Buffer): number;
|
|
1056
|
+
}], readonly ["VSN", {
|
|
1057
|
+
serialize(value: number): Buffer;
|
|
1058
|
+
deserialize(value: Buffer): number;
|
|
1059
|
+
}], readonly ["calls", FIELD_TYPES.rlpBinary]];
|
|
1060
|
+
};
|
|
1061
|
+
readonly 623: {
|
|
1062
|
+
readonly 1: readonly [readonly ["tag", {
|
|
1063
|
+
serialize(value: number): Buffer;
|
|
1064
|
+
deserialize(value: Buffer): number;
|
|
1065
|
+
}], readonly ["VSN", {
|
|
1066
|
+
serialize(value: number): Buffer;
|
|
1067
|
+
deserialize(value: Buffer): number;
|
|
1068
|
+
}], readonly ["channels", FIELD_TYPES.rlpBinary]];
|
|
1069
|
+
};
|
|
1070
|
+
readonly 624: {
|
|
1071
|
+
readonly 1: readonly [readonly ["tag", {
|
|
1072
|
+
serialize(value: number): Buffer;
|
|
1073
|
+
deserialize(value: Buffer): number;
|
|
1074
|
+
}], readonly ["VSN", {
|
|
1075
|
+
serialize(value: number): Buffer;
|
|
1076
|
+
deserialize(value: Buffer): number;
|
|
1077
|
+
}], readonly ["mtree", FIELD_TYPES.rlpBinary]];
|
|
1078
|
+
};
|
|
1079
|
+
readonly 625: {
|
|
1080
|
+
readonly 1: readonly [readonly ["tag", {
|
|
1081
|
+
serialize(value: number): Buffer;
|
|
1082
|
+
deserialize(value: Buffer): number;
|
|
1083
|
+
}], readonly ["VSN", {
|
|
1084
|
+
serialize(value: number): Buffer;
|
|
1085
|
+
deserialize(value: Buffer): number;
|
|
1086
|
+
}], readonly ["otree", FIELD_TYPES.rlpBinary]];
|
|
1087
|
+
};
|
|
1088
|
+
readonly 626: {
|
|
1089
|
+
readonly 1: readonly [readonly ["tag", {
|
|
1090
|
+
serialize(value: number): Buffer;
|
|
1091
|
+
deserialize(value: Buffer): number;
|
|
1092
|
+
}], readonly ["VSN", {
|
|
1093
|
+
serialize(value: number): Buffer;
|
|
1094
|
+
deserialize(value: Buffer): number;
|
|
1095
|
+
}], readonly ["accounts", FIELD_TYPES.rlpBinary]];
|
|
1096
|
+
};
|
|
1097
|
+
readonly 80: {
|
|
1098
|
+
readonly 1: readonly [readonly ["tag", {
|
|
1099
|
+
serialize(value: number): Buffer;
|
|
1100
|
+
deserialize(value: Buffer): number;
|
|
1101
|
+
}], readonly ["VSN", {
|
|
1102
|
+
serialize(value: number): Buffer;
|
|
1103
|
+
deserialize(value: Buffer): number;
|
|
1104
|
+
}], readonly ["ownerId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["nonce", {
|
|
1105
|
+
serialize(value: number): Buffer;
|
|
1106
|
+
deserialize(value: Buffer): number;
|
|
1107
|
+
}], readonly ["code", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray], readonly ["authFun", FIELD_TYPES.rawBinary], readonly ["ctVersion", FIELD_TYPES.ctVersion], readonly ["fee", {
|
|
1108
|
+
serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
|
|
1109
|
+
txType: Tag;
|
|
1110
|
+
rebuildTx: (params: any) => any;
|
|
1111
|
+
_computingMinFee?: string | undefined;
|
|
1112
|
+
}): string;
|
|
1113
|
+
serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
|
|
1114
|
+
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
1115
|
+
deserialize(value: Buffer): string;
|
|
1116
|
+
}], readonly ["ttl", {
|
|
1117
|
+
serialize(value: number): Buffer;
|
|
1118
|
+
deserialize(value: Buffer): number;
|
|
1119
|
+
}], readonly ["gasLimit", {
|
|
1120
|
+
serialize(_value: number | undefined, { txType, rebuildTx, gasMax, _computingGasLimit, }: {
|
|
1121
|
+
txType: Tag;
|
|
1122
|
+
rebuildTx: (params: any) => any;
|
|
1123
|
+
gasMax: number;
|
|
1124
|
+
_computingGasLimit?: number | undefined;
|
|
1125
|
+
}): Buffer;
|
|
1126
|
+
deserialize(value: Buffer): number;
|
|
1127
|
+
}], readonly ["gasPrice", {
|
|
1128
|
+
serializeAettos(value?: string | undefined): string;
|
|
1129
|
+
serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
|
|
1130
|
+
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
1131
|
+
deserialize(value: Buffer): string;
|
|
1132
|
+
}], readonly ["callData", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray]];
|
|
1133
|
+
};
|
|
1134
|
+
readonly 81: {
|
|
1135
|
+
readonly 2: readonly [readonly ["tag", {
|
|
1136
|
+
serialize(value: number): Buffer;
|
|
1137
|
+
deserialize(value: Buffer): number;
|
|
1138
|
+
}], readonly ["VSN", {
|
|
1139
|
+
serialize(value: number): Buffer;
|
|
1140
|
+
deserialize(value: Buffer): number;
|
|
1141
|
+
}], readonly ["gaId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["authData", FIELD_TYPES.binary, Encoded.Encoding.ContractBytearray], readonly ["abiVersion", FIELD_TYPES.abiVersion], readonly ["fee", {
|
|
1142
|
+
serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
|
|
1143
|
+
txType: Tag;
|
|
1144
|
+
rebuildTx: (params: any) => any;
|
|
1145
|
+
_computingMinFee?: string | undefined;
|
|
1146
|
+
}): string;
|
|
1147
|
+
serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
|
|
1148
|
+
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
1149
|
+
deserialize(value: Buffer): string;
|
|
1150
|
+
}], readonly ["gasLimit", {
|
|
1151
|
+
serialize(_value: number | undefined, { txType, rebuildTx, gasMax, _computingGasLimit, }: {
|
|
1152
|
+
txType: Tag;
|
|
1153
|
+
rebuildTx: (params: any) => any;
|
|
1154
|
+
gasMax: number;
|
|
1155
|
+
_computingGasLimit?: number | undefined;
|
|
1156
|
+
}): Buffer;
|
|
1157
|
+
deserialize(value: Buffer): number;
|
|
1158
|
+
}], readonly ["gasPrice", {
|
|
1159
|
+
serializeAettos(value?: string | undefined): string;
|
|
1160
|
+
serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
|
|
1161
|
+
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
1162
|
+
deserialize(value: Buffer): string;
|
|
1163
|
+
}], readonly ["tx", FIELD_TYPES.rlpBinary]];
|
|
1164
|
+
};
|
|
1165
|
+
readonly 82: {
|
|
1166
|
+
readonly 1: readonly [readonly ["tag", {
|
|
1167
|
+
serialize(value: number): Buffer;
|
|
1168
|
+
deserialize(value: Buffer): number;
|
|
1169
|
+
}], readonly ["VSN", {
|
|
1170
|
+
serialize(value: number): Buffer;
|
|
1171
|
+
deserialize(value: Buffer): number;
|
|
1172
|
+
}], readonly ["payerId", FIELD_TYPES.id, Encoded.Encoding.AccountAddress], readonly ["nonce", {
|
|
1173
|
+
serialize(value: number): Buffer;
|
|
1174
|
+
deserialize(value: Buffer): number;
|
|
1175
|
+
}], readonly ["fee", {
|
|
1176
|
+
serializeAettos(_value: string | undefined, { txType, rebuildTx, _computingMinFee }: {
|
|
1177
|
+
txType: Tag;
|
|
1178
|
+
rebuildTx: (params: any) => any;
|
|
1179
|
+
_computingMinFee?: string | undefined;
|
|
1180
|
+
}): string;
|
|
1181
|
+
serialize: (value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options) => Buffer;
|
|
1182
|
+
serializeOptional(value: import("./field-types/u-int").Int | undefined, { denomination, ...options }: import("./field-types/coin-amount").Options): Buffer;
|
|
1183
|
+
deserialize(value: Buffer): string;
|
|
1184
|
+
}], readonly ["tx", FIELD_TYPES.rlpBinary]];
|
|
1185
|
+
};
|
|
1186
|
+
readonly 70: {
|
|
1187
|
+
readonly 3: readonly [readonly ["tag", {
|
|
1188
|
+
serialize(value: number): Buffer;
|
|
1189
|
+
deserialize(value: Buffer): number;
|
|
1190
|
+
}], readonly ["VSN", {
|
|
1191
|
+
serialize(value: number): Buffer;
|
|
1192
|
+
deserialize(value: Buffer): number;
|
|
1193
|
+
}], 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
|
+
};
|
|
1195
|
+
};
|
|
1196
|
+
export declare type TxTypeSchemas = {
|
|
1197
|
+
[key in Tag]: BuildTxArgBySchema<typeof TX_SCHEMA[key][keyof typeof TX_SCHEMA[key]]>;
|
|
1198
|
+
};
|
|
1199
|
+
export declare type TxSchema = TxTypeSchemas[Tag];
|
|
1200
|
+
export declare type TxParamsCommon = Partial<UnionToIntersection<TxSchema>>;
|
|
1201
|
+
export {};
|