@aeternity/aepp-sdk 11.0.1 → 12.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +20765 -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 +136 -85
- 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 +61 -47
- package/es/tx/builder/constants.mjs.map +1 -1
- 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 -198
- 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 -561
- 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 -98
- 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 +71 -59
- package/es/utils/encoder.mjs.map +1 -1
- 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 +55 -43
- 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 +172 -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 +116 -71
- 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/encoder.d.ts +0 -26
- 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 -903
- package/src/channel/internal.js +0 -236
- 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/constants.js +0 -100
- package/src/tx/builder/field-types.js +0 -61
- package/src/tx/builder/helpers.js +0 -334
- package/src/tx/builder/index.js +0 -465
- package/src/tx/builder/schema.js +0 -1100
- 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 -219
- 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,1065 @@
|
|
|
1
|
+
import * as coreClient from "@azure/core-client";
|
|
2
|
+
export declare type OffChainUpdateUnion = OffChainUpdate | OffChainTransfer | OffChainWithdrawal | OffChainDeposit | OffChainNewContract | OffChainCallContract;
|
|
3
|
+
/** A mix of KeyBlock, MicroBlockHeader properties. */
|
|
4
|
+
export interface Header {
|
|
5
|
+
/** Base58Check encoded tagged hash */
|
|
6
|
+
hash: string;
|
|
7
|
+
height: string;
|
|
8
|
+
/** Base58Check encoded tagged hash */
|
|
9
|
+
prevHash: string;
|
|
10
|
+
/** Base58Check encoded tagged hash */
|
|
11
|
+
prevKeyHash: string;
|
|
12
|
+
/** Base58Check encoded tagged hash */
|
|
13
|
+
stateHash: string;
|
|
14
|
+
/** Base58Check encoded tagged pubkey */
|
|
15
|
+
miner?: string;
|
|
16
|
+
/** Base58Check encoded tagged pubkey */
|
|
17
|
+
beneficiary?: string;
|
|
18
|
+
target?: string;
|
|
19
|
+
pow?: string[];
|
|
20
|
+
nonce?: string;
|
|
21
|
+
time: string;
|
|
22
|
+
version: string;
|
|
23
|
+
/** Base64Check encoded tagged byte array */
|
|
24
|
+
info?: string;
|
|
25
|
+
/** Base58Check encoded tagged hash */
|
|
26
|
+
pofHash?: string;
|
|
27
|
+
/** Base58Check encoded tagged hash */
|
|
28
|
+
txsHash?: string;
|
|
29
|
+
/** Base58Check encoded tagged value */
|
|
30
|
+
signature?: string;
|
|
31
|
+
}
|
|
32
|
+
export interface ErrorModel {
|
|
33
|
+
reason: string;
|
|
34
|
+
}
|
|
35
|
+
export interface KeyBlock {
|
|
36
|
+
/** Base58Check encoded tagged hash */
|
|
37
|
+
hash: string;
|
|
38
|
+
height: string;
|
|
39
|
+
/** Base58Check encoded tagged hash */
|
|
40
|
+
prevHash: string;
|
|
41
|
+
/** Base58Check encoded tagged hash */
|
|
42
|
+
prevKeyHash: string;
|
|
43
|
+
/** Base58Check encoded tagged hash */
|
|
44
|
+
stateHash: string;
|
|
45
|
+
/** Base58Check encoded tagged pubkey */
|
|
46
|
+
miner: string;
|
|
47
|
+
/** Base58Check encoded tagged pubkey */
|
|
48
|
+
beneficiary: string;
|
|
49
|
+
target: string;
|
|
50
|
+
pow?: string[];
|
|
51
|
+
nonce?: string;
|
|
52
|
+
time: string;
|
|
53
|
+
version: string;
|
|
54
|
+
/** Base64Check encoded tagged byte array */
|
|
55
|
+
info: string;
|
|
56
|
+
}
|
|
57
|
+
export interface HashResponse {
|
|
58
|
+
hash: string;
|
|
59
|
+
}
|
|
60
|
+
export interface HeightResponse {
|
|
61
|
+
height: string;
|
|
62
|
+
}
|
|
63
|
+
export interface MicroBlockHeader {
|
|
64
|
+
/** Base58Check encoded tagged hash */
|
|
65
|
+
hash: string;
|
|
66
|
+
height: string;
|
|
67
|
+
/** Base58Check encoded tagged hash */
|
|
68
|
+
pofHash: string;
|
|
69
|
+
/** Base58Check encoded tagged hash */
|
|
70
|
+
prevHash: string;
|
|
71
|
+
/** Base58Check encoded tagged hash */
|
|
72
|
+
prevKeyHash: string;
|
|
73
|
+
/** Base58Check encoded tagged hash */
|
|
74
|
+
stateHash: string;
|
|
75
|
+
/** Base58Check encoded tagged hash */
|
|
76
|
+
txsHash: string;
|
|
77
|
+
/** Base58Check encoded tagged value */
|
|
78
|
+
signature: string;
|
|
79
|
+
time: string;
|
|
80
|
+
version: string;
|
|
81
|
+
}
|
|
82
|
+
export interface SignedTxs {
|
|
83
|
+
transactions: SignedTx[];
|
|
84
|
+
}
|
|
85
|
+
export interface SignedTx {
|
|
86
|
+
/** A mix of all transaction types. */
|
|
87
|
+
tx: Tx;
|
|
88
|
+
blockHeight: string;
|
|
89
|
+
/** Base58Check encoded tagged hash */
|
|
90
|
+
blockHash: string;
|
|
91
|
+
/** Base58Check encoded tagged hash */
|
|
92
|
+
hash: string;
|
|
93
|
+
/** At least one signature is required unless for Generalized Account Meta transactions */
|
|
94
|
+
signatures: string[];
|
|
95
|
+
}
|
|
96
|
+
/** A mix of all transaction types. */
|
|
97
|
+
export interface Tx {
|
|
98
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
99
|
+
type: "undefined";
|
|
100
|
+
/** Base58Check encoded tagged pubkey */
|
|
101
|
+
recipientId?: string;
|
|
102
|
+
amount?: string;
|
|
103
|
+
fee: string;
|
|
104
|
+
ttl?: string;
|
|
105
|
+
/** Base58Check encoded tagged pubkey */
|
|
106
|
+
senderId?: string;
|
|
107
|
+
nonce?: string;
|
|
108
|
+
/** Base64Check encoded tagged byte array */
|
|
109
|
+
payload?: string;
|
|
110
|
+
/** Base58Check encoded tagged pubkey */
|
|
111
|
+
initiatorId?: string;
|
|
112
|
+
initiatorAmount?: string;
|
|
113
|
+
/** Base58Check encoded tagged pubkey */
|
|
114
|
+
responderId?: string;
|
|
115
|
+
responderAmount?: string;
|
|
116
|
+
channelReserve?: string;
|
|
117
|
+
lockPeriod?: string;
|
|
118
|
+
/** Base58Check encoded tagged pubkey */
|
|
119
|
+
stateHash?: string;
|
|
120
|
+
delegateIds?: Delegates;
|
|
121
|
+
/** Base58Check encoded tagged pubkey */
|
|
122
|
+
channelId?: string;
|
|
123
|
+
/** Base58Check encoded tagged pubkey */
|
|
124
|
+
fromId?: string;
|
|
125
|
+
round?: string;
|
|
126
|
+
/** Base58Check encoded tagged pubkey */
|
|
127
|
+
toId?: string;
|
|
128
|
+
update?: OffChainUpdateUnion;
|
|
129
|
+
/** Base64Check encoded tagged byte array */
|
|
130
|
+
offchainTrees?: string;
|
|
131
|
+
initiatorAmountFinal?: string;
|
|
132
|
+
responderAmountFinal?: string;
|
|
133
|
+
/** Base64Check encoded tagged byte array */
|
|
134
|
+
poi?: string;
|
|
135
|
+
initiatorDelegateIds?: string[];
|
|
136
|
+
responderDelegateIds?: string[];
|
|
137
|
+
queryFormat?: string;
|
|
138
|
+
responseFormat?: string;
|
|
139
|
+
queryFee?: string;
|
|
140
|
+
oracleTtl?: RelativeTTL;
|
|
141
|
+
/** Base58Check encoded tagged pubkey */
|
|
142
|
+
accountId?: string;
|
|
143
|
+
abiVersion?: string;
|
|
144
|
+
/** Base58Check encoded tagged pubkey */
|
|
145
|
+
oracleId?: string;
|
|
146
|
+
query?: string;
|
|
147
|
+
queryTtl?: Ttl;
|
|
148
|
+
responseTtl?: RelativeTTL;
|
|
149
|
+
/** Base58Check encoded tagged value */
|
|
150
|
+
queryId?: string;
|
|
151
|
+
response?: string;
|
|
152
|
+
/** Base58Check encoded tagged value */
|
|
153
|
+
commitmentId?: string;
|
|
154
|
+
name?: string;
|
|
155
|
+
nameSalt?: string;
|
|
156
|
+
nameFee?: string;
|
|
157
|
+
/** Base58Check encoded tagged value */
|
|
158
|
+
nameId?: string;
|
|
159
|
+
nameTtl?: string;
|
|
160
|
+
pointers?: NamePointer[];
|
|
161
|
+
clientTtl?: string;
|
|
162
|
+
/** Base58Check encoded tagged pubkey */
|
|
163
|
+
ownerId?: string;
|
|
164
|
+
/** Base64Check encoded tagged byte array */
|
|
165
|
+
code?: string;
|
|
166
|
+
vmVersion?: string;
|
|
167
|
+
deposit?: string;
|
|
168
|
+
gas?: string;
|
|
169
|
+
gasPrice?: string;
|
|
170
|
+
/** Base64Check encoded tagged byte array */
|
|
171
|
+
callData?: string;
|
|
172
|
+
/** Base58Check encoded tagged pubkey */
|
|
173
|
+
callerId?: string;
|
|
174
|
+
/** Base58Check encoded tagged pubkey */
|
|
175
|
+
contractId?: string;
|
|
176
|
+
/** Contract authorization function hash (hex encoded) */
|
|
177
|
+
authFun?: string;
|
|
178
|
+
/** Base58Check encoded tagged pubkey */
|
|
179
|
+
gaId?: string;
|
|
180
|
+
/** Base64Check encoded tagged byte array */
|
|
181
|
+
authData?: string;
|
|
182
|
+
tx?: SignedTx;
|
|
183
|
+
/** Base58Check encoded tagged pubkey */
|
|
184
|
+
payerId?: string;
|
|
185
|
+
version: string;
|
|
186
|
+
}
|
|
187
|
+
export interface Delegates {
|
|
188
|
+
initiator?: string[];
|
|
189
|
+
responder?: string[];
|
|
190
|
+
}
|
|
191
|
+
export interface OffChainUpdate {
|
|
192
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
193
|
+
op: "OffChainTransfer" | "OffChainWithdrawal" | "OffChainDeposit" | "OffChainNewContract" | "OffChainCallContract";
|
|
194
|
+
}
|
|
195
|
+
export interface RelativeTTL {
|
|
196
|
+
type: "delta";
|
|
197
|
+
value: string;
|
|
198
|
+
}
|
|
199
|
+
export interface Ttl {
|
|
200
|
+
type: TTLType;
|
|
201
|
+
value: string;
|
|
202
|
+
}
|
|
203
|
+
export interface NamePointer {
|
|
204
|
+
key: string;
|
|
205
|
+
/** Base58Check encoded tagged pubkey */
|
|
206
|
+
id: string;
|
|
207
|
+
}
|
|
208
|
+
export interface CountResponse {
|
|
209
|
+
count: string;
|
|
210
|
+
}
|
|
211
|
+
export interface Generation {
|
|
212
|
+
keyBlock: KeyBlock;
|
|
213
|
+
microBlocks: string[];
|
|
214
|
+
}
|
|
215
|
+
export interface Account {
|
|
216
|
+
/** Base58Check encoded tagged pubkey */
|
|
217
|
+
id: string;
|
|
218
|
+
balance: string;
|
|
219
|
+
nonce: string;
|
|
220
|
+
/** Payable */
|
|
221
|
+
payable?: boolean;
|
|
222
|
+
kind?: AccountKind;
|
|
223
|
+
/** Base58Check encoded tagged pubkey */
|
|
224
|
+
contractId?: string;
|
|
225
|
+
/** Name of authorization function for generalized account */
|
|
226
|
+
authFun?: string;
|
|
227
|
+
}
|
|
228
|
+
export interface NextNonceResponse {
|
|
229
|
+
nextNonce: string;
|
|
230
|
+
}
|
|
231
|
+
export interface DryRunInput {
|
|
232
|
+
/** Base58Check encoded tagged hash */
|
|
233
|
+
top?: string;
|
|
234
|
+
/** Accounts */
|
|
235
|
+
accounts?: DryRunAccount[];
|
|
236
|
+
/** Txs */
|
|
237
|
+
txs: DryRunInputItem[];
|
|
238
|
+
/** Collect and return on-chain tx events that would result from the call */
|
|
239
|
+
txEvents?: boolean;
|
|
240
|
+
}
|
|
241
|
+
export interface DryRunAccount {
|
|
242
|
+
/** Base58Check encoded tagged pubkey */
|
|
243
|
+
pubKey: string;
|
|
244
|
+
amount: string;
|
|
245
|
+
}
|
|
246
|
+
export interface DryRunInputItem {
|
|
247
|
+
/** Base64Check encoded tagged byte array */
|
|
248
|
+
tx?: string;
|
|
249
|
+
callReq?: DryRunCallReq;
|
|
250
|
+
}
|
|
251
|
+
export interface DryRunCallReq {
|
|
252
|
+
/** Base64Check encoded tagged byte array */
|
|
253
|
+
calldata: string;
|
|
254
|
+
/** Base58Check encoded tagged pubkey */
|
|
255
|
+
contract: string;
|
|
256
|
+
amount?: string;
|
|
257
|
+
gas?: string;
|
|
258
|
+
/** Base58Check encoded tagged pubkey */
|
|
259
|
+
caller?: string;
|
|
260
|
+
nonce?: string;
|
|
261
|
+
abiVersion?: string;
|
|
262
|
+
context?: DryRunCallContext;
|
|
263
|
+
}
|
|
264
|
+
export interface DryRunCallContext {
|
|
265
|
+
/** Base64Check encoded tagged byte array */
|
|
266
|
+
tx?: string;
|
|
267
|
+
/** Base58Check encoded tagged hash */
|
|
268
|
+
txHash?: string;
|
|
269
|
+
/** This call will have effects on the next call in this dry-run (or not) */
|
|
270
|
+
stateful?: boolean;
|
|
271
|
+
}
|
|
272
|
+
export interface DryRunResults {
|
|
273
|
+
/** results */
|
|
274
|
+
results: DryRunResult[];
|
|
275
|
+
/** on-chain tx events */
|
|
276
|
+
txEvents?: Record<string, unknown>[];
|
|
277
|
+
}
|
|
278
|
+
export interface DryRunResult {
|
|
279
|
+
type: string;
|
|
280
|
+
result: string;
|
|
281
|
+
reason?: string;
|
|
282
|
+
callObj?: ContractCallObject;
|
|
283
|
+
}
|
|
284
|
+
export interface ContractCallObject {
|
|
285
|
+
/** Base58Check encoded tagged pubkey */
|
|
286
|
+
callerId: string;
|
|
287
|
+
callerNonce: string;
|
|
288
|
+
height: string;
|
|
289
|
+
/** Base58Check encoded tagged pubkey */
|
|
290
|
+
contractId: string;
|
|
291
|
+
gasPrice: string;
|
|
292
|
+
gasUsed: string;
|
|
293
|
+
log: Event[];
|
|
294
|
+
/** Base64Check encoded tagged byte array */
|
|
295
|
+
returnValue: string;
|
|
296
|
+
/** The status of the call 'ok | error | revert'. */
|
|
297
|
+
returnType: ContractCallReturnType;
|
|
298
|
+
}
|
|
299
|
+
export interface Event {
|
|
300
|
+
/** Base58Check encoded tagged pubkey */
|
|
301
|
+
address: string;
|
|
302
|
+
/** Event topics */
|
|
303
|
+
topics: string[];
|
|
304
|
+
/** Base64Check encoded tagged byte array */
|
|
305
|
+
data: string;
|
|
306
|
+
}
|
|
307
|
+
export interface TxInfoObject {
|
|
308
|
+
callInfo?: ContractCallObject;
|
|
309
|
+
gaInfo?: GAObject;
|
|
310
|
+
txInfo?: string;
|
|
311
|
+
}
|
|
312
|
+
export interface GAObject {
|
|
313
|
+
/** Base58Check encoded tagged pubkey */
|
|
314
|
+
callerId: string;
|
|
315
|
+
height: string;
|
|
316
|
+
gasPrice: string;
|
|
317
|
+
gasUsed: string;
|
|
318
|
+
/** Base64Check encoded tagged byte array */
|
|
319
|
+
returnValue: string;
|
|
320
|
+
/** The status of the call 'ok | error'. */
|
|
321
|
+
returnType: GAReturnType;
|
|
322
|
+
innerObject?: TxInfoObject;
|
|
323
|
+
}
|
|
324
|
+
export interface EncodedTx {
|
|
325
|
+
/** Base64Check encoded tagged byte array */
|
|
326
|
+
tx: string;
|
|
327
|
+
}
|
|
328
|
+
export interface PostTxResponse {
|
|
329
|
+
/** Base58Check encoded tagged hash */
|
|
330
|
+
txHash: string;
|
|
331
|
+
}
|
|
332
|
+
export interface ContractObject {
|
|
333
|
+
/** Base58Check encoded tagged pubkey */
|
|
334
|
+
id: string;
|
|
335
|
+
/** Base58Check encoded tagged pubkey */
|
|
336
|
+
ownerId: string;
|
|
337
|
+
vmVersion: string;
|
|
338
|
+
abiVersion: string;
|
|
339
|
+
active: boolean;
|
|
340
|
+
referrerIds: string[];
|
|
341
|
+
deposit: string;
|
|
342
|
+
}
|
|
343
|
+
export interface ByteCode {
|
|
344
|
+
/** Base64Check encoded tagged byte array */
|
|
345
|
+
bytecode: string;
|
|
346
|
+
}
|
|
347
|
+
export interface PoI {
|
|
348
|
+
/** Base64Check encoded tagged byte array */
|
|
349
|
+
poi: string;
|
|
350
|
+
}
|
|
351
|
+
export interface RegisteredOracle {
|
|
352
|
+
/** Base58Check encoded tagged pubkey */
|
|
353
|
+
id: string;
|
|
354
|
+
queryFormat: string;
|
|
355
|
+
responseFormat: string;
|
|
356
|
+
queryFee: string;
|
|
357
|
+
ttl: string;
|
|
358
|
+
abiVersion: string;
|
|
359
|
+
}
|
|
360
|
+
export interface OracleQueries {
|
|
361
|
+
oracleQueries: OracleQuery[];
|
|
362
|
+
}
|
|
363
|
+
export interface OracleQuery {
|
|
364
|
+
/** Base58Check encoded tagged value */
|
|
365
|
+
id: string;
|
|
366
|
+
/** Base58Check encoded tagged pubkey */
|
|
367
|
+
senderId: string;
|
|
368
|
+
senderNonce: string;
|
|
369
|
+
/** Base58Check encoded tagged pubkey */
|
|
370
|
+
oracleId: string;
|
|
371
|
+
query: string;
|
|
372
|
+
response: string;
|
|
373
|
+
ttl: string;
|
|
374
|
+
responseTtl: Ttl;
|
|
375
|
+
fee: string;
|
|
376
|
+
}
|
|
377
|
+
export interface NameEntry {
|
|
378
|
+
/** Base58Check encoded tagged value */
|
|
379
|
+
id: string;
|
|
380
|
+
/** Base58Check encoded tagged pubkey */
|
|
381
|
+
owner?: string;
|
|
382
|
+
ttl: string;
|
|
383
|
+
pointers: NamePointer[];
|
|
384
|
+
}
|
|
385
|
+
export interface Channel {
|
|
386
|
+
/** Base58Check encoded tagged pubkey */
|
|
387
|
+
id: string;
|
|
388
|
+
/** Base58Check encoded tagged pubkey */
|
|
389
|
+
initiatorId: string;
|
|
390
|
+
/** Base58Check encoded tagged pubkey */
|
|
391
|
+
responderId: string;
|
|
392
|
+
channelAmount: string;
|
|
393
|
+
initiatorAmount: string;
|
|
394
|
+
responderAmount: string;
|
|
395
|
+
channelReserve: string;
|
|
396
|
+
delegateIds: Delegates;
|
|
397
|
+
/** Base58Check encoded tagged hash */
|
|
398
|
+
stateHash: string;
|
|
399
|
+
round: string;
|
|
400
|
+
soloRound: string;
|
|
401
|
+
lockPeriod: string;
|
|
402
|
+
lockedUntil: string;
|
|
403
|
+
}
|
|
404
|
+
export interface PeerPubKey {
|
|
405
|
+
/** Base58Check encoded tagged pubkey */
|
|
406
|
+
pubkey: string;
|
|
407
|
+
}
|
|
408
|
+
export interface Status {
|
|
409
|
+
/** Base58Check encoded tagged hash */
|
|
410
|
+
genesisKeyBlockHash: string;
|
|
411
|
+
solutions: string;
|
|
412
|
+
difficulty: string;
|
|
413
|
+
syncing: boolean;
|
|
414
|
+
syncProgress?: number;
|
|
415
|
+
listening: boolean;
|
|
416
|
+
protocols: Protocol[];
|
|
417
|
+
nodeVersion: string;
|
|
418
|
+
nodeRevision: string;
|
|
419
|
+
peerCount: string;
|
|
420
|
+
peerConnections: PeerConnections;
|
|
421
|
+
pendingTransactionsCount: string;
|
|
422
|
+
networkId: string;
|
|
423
|
+
/** Base58Check encoded tagged pubkey */
|
|
424
|
+
peerPubkey: string;
|
|
425
|
+
/** Base58Check encoded tagged hash */
|
|
426
|
+
topKeyBlockHash: string;
|
|
427
|
+
topBlockHeight: string;
|
|
428
|
+
}
|
|
429
|
+
export interface Protocol {
|
|
430
|
+
version: string;
|
|
431
|
+
effectiveAtHeight: string;
|
|
432
|
+
}
|
|
433
|
+
export interface PeerConnections {
|
|
434
|
+
inbound: string;
|
|
435
|
+
outbound: string;
|
|
436
|
+
}
|
|
437
|
+
export interface SpendTx {
|
|
438
|
+
/** Base58Check encoded tagged pubkey */
|
|
439
|
+
recipientId: string;
|
|
440
|
+
amount: string;
|
|
441
|
+
fee: string;
|
|
442
|
+
ttl?: string;
|
|
443
|
+
/** Base58Check encoded tagged pubkey */
|
|
444
|
+
senderId: string;
|
|
445
|
+
nonce?: string;
|
|
446
|
+
/** Base64Check encoded tagged byte array */
|
|
447
|
+
payload: string;
|
|
448
|
+
}
|
|
449
|
+
export interface OracleRegisterTx {
|
|
450
|
+
queryFormat: string;
|
|
451
|
+
responseFormat: string;
|
|
452
|
+
queryFee: string;
|
|
453
|
+
oracleTtl: Ttl;
|
|
454
|
+
/** Base58Check encoded tagged pubkey */
|
|
455
|
+
accountId: string;
|
|
456
|
+
nonce?: string;
|
|
457
|
+
fee: string;
|
|
458
|
+
ttl?: string;
|
|
459
|
+
abiVersion?: string;
|
|
460
|
+
}
|
|
461
|
+
export interface OracleExtendTx {
|
|
462
|
+
fee: string;
|
|
463
|
+
oracleTtl: RelativeTTL;
|
|
464
|
+
/** Base58Check encoded tagged pubkey */
|
|
465
|
+
oracleId: string;
|
|
466
|
+
nonce?: string;
|
|
467
|
+
ttl?: string;
|
|
468
|
+
}
|
|
469
|
+
export interface OracleQueryTx {
|
|
470
|
+
/** Base58Check encoded tagged pubkey */
|
|
471
|
+
oracleId: string;
|
|
472
|
+
query: string;
|
|
473
|
+
queryFee: string;
|
|
474
|
+
queryTtl: Ttl;
|
|
475
|
+
responseTtl: RelativeTTL;
|
|
476
|
+
fee: string;
|
|
477
|
+
ttl?: string;
|
|
478
|
+
/** Base58Check encoded tagged pubkey */
|
|
479
|
+
senderId: string;
|
|
480
|
+
nonce?: string;
|
|
481
|
+
}
|
|
482
|
+
export interface OracleRespondTx {
|
|
483
|
+
/** Base58Check encoded tagged value */
|
|
484
|
+
queryId: string;
|
|
485
|
+
response: string;
|
|
486
|
+
responseTtl: RelativeTTL;
|
|
487
|
+
fee: string;
|
|
488
|
+
ttl?: string;
|
|
489
|
+
/** Base58Check encoded tagged pubkey */
|
|
490
|
+
oracleId: string;
|
|
491
|
+
nonce?: string;
|
|
492
|
+
}
|
|
493
|
+
export interface NamePreclaimTx {
|
|
494
|
+
/** Base58Check encoded tagged value */
|
|
495
|
+
commitmentId: string;
|
|
496
|
+
fee: string;
|
|
497
|
+
ttl?: string;
|
|
498
|
+
/** Base58Check encoded tagged pubkey */
|
|
499
|
+
accountId: string;
|
|
500
|
+
nonce?: string;
|
|
501
|
+
}
|
|
502
|
+
export interface NameClaimTx {
|
|
503
|
+
name: string;
|
|
504
|
+
nameSalt: string;
|
|
505
|
+
nameFee?: string;
|
|
506
|
+
fee: string;
|
|
507
|
+
ttl?: string;
|
|
508
|
+
/** Base58Check encoded tagged pubkey */
|
|
509
|
+
accountId: string;
|
|
510
|
+
nonce?: string;
|
|
511
|
+
}
|
|
512
|
+
export interface NameUpdateTx {
|
|
513
|
+
/** Base58Check encoded tagged value */
|
|
514
|
+
nameId: string;
|
|
515
|
+
nameTtl: string;
|
|
516
|
+
pointers: NamePointer[];
|
|
517
|
+
clientTtl: string;
|
|
518
|
+
fee: string;
|
|
519
|
+
ttl?: string;
|
|
520
|
+
/** Base58Check encoded tagged pubkey */
|
|
521
|
+
accountId: string;
|
|
522
|
+
nonce?: string;
|
|
523
|
+
}
|
|
524
|
+
export interface NameTransferTx {
|
|
525
|
+
/** Base58Check encoded tagged value */
|
|
526
|
+
nameId: string;
|
|
527
|
+
/** Base58Check encoded tagged pubkey */
|
|
528
|
+
recipientId: string;
|
|
529
|
+
fee: string;
|
|
530
|
+
ttl?: string;
|
|
531
|
+
/** Base58Check encoded tagged pubkey */
|
|
532
|
+
accountId: string;
|
|
533
|
+
nonce?: string;
|
|
534
|
+
}
|
|
535
|
+
export interface NameRevokeTx {
|
|
536
|
+
/** Base58Check encoded tagged value */
|
|
537
|
+
nameId: string;
|
|
538
|
+
fee: string;
|
|
539
|
+
ttl?: string;
|
|
540
|
+
/** Base58Check encoded tagged pubkey */
|
|
541
|
+
accountId: string;
|
|
542
|
+
nonce?: string;
|
|
543
|
+
}
|
|
544
|
+
export interface CommitmentId {
|
|
545
|
+
/** Base58Check encoded tagged value */
|
|
546
|
+
commitmentId: string;
|
|
547
|
+
}
|
|
548
|
+
export interface NameHash {
|
|
549
|
+
/** Base58Check encoded tagged value */
|
|
550
|
+
nameId: string;
|
|
551
|
+
}
|
|
552
|
+
export interface ChannelCreateTx {
|
|
553
|
+
/** Base58Check encoded tagged pubkey */
|
|
554
|
+
initiatorId: string;
|
|
555
|
+
initiatorAmount: string;
|
|
556
|
+
/** Base58Check encoded tagged pubkey */
|
|
557
|
+
responderId: string;
|
|
558
|
+
responderAmount: string;
|
|
559
|
+
channelReserve: string;
|
|
560
|
+
lockPeriod: string;
|
|
561
|
+
ttl?: string;
|
|
562
|
+
fee: string;
|
|
563
|
+
nonce?: string;
|
|
564
|
+
/** Base58Check encoded tagged hash */
|
|
565
|
+
stateHash: string;
|
|
566
|
+
delegateIds?: Delegates;
|
|
567
|
+
}
|
|
568
|
+
export interface ChannelDepositTx {
|
|
569
|
+
/** Base58Check encoded tagged pubkey */
|
|
570
|
+
channelId: string;
|
|
571
|
+
/** Base58Check encoded tagged pubkey */
|
|
572
|
+
fromId: string;
|
|
573
|
+
amount: string;
|
|
574
|
+
ttl?: string;
|
|
575
|
+
fee: string;
|
|
576
|
+
nonce: string;
|
|
577
|
+
/** Base58Check encoded tagged hash */
|
|
578
|
+
stateHash: string;
|
|
579
|
+
round: string;
|
|
580
|
+
}
|
|
581
|
+
export interface ChannelWithdrawTx {
|
|
582
|
+
/** Base58Check encoded tagged pubkey */
|
|
583
|
+
channelId: string;
|
|
584
|
+
/** Base58Check encoded tagged pubkey */
|
|
585
|
+
toId: string;
|
|
586
|
+
amount: string;
|
|
587
|
+
ttl?: string;
|
|
588
|
+
fee: string;
|
|
589
|
+
nonce: string;
|
|
590
|
+
/** Base58Check encoded tagged hash */
|
|
591
|
+
stateHash: string;
|
|
592
|
+
round: string;
|
|
593
|
+
}
|
|
594
|
+
export interface ChannelForceProgressTx {
|
|
595
|
+
/** Base58Check encoded tagged pubkey */
|
|
596
|
+
channelId: string;
|
|
597
|
+
/** Base58Check encoded tagged pubkey */
|
|
598
|
+
fromId: string;
|
|
599
|
+
/** Base64Check encoded tagged byte array */
|
|
600
|
+
payload: string;
|
|
601
|
+
round: string;
|
|
602
|
+
update: OffChainUpdateUnion;
|
|
603
|
+
/** Base58Check encoded tagged hash */
|
|
604
|
+
stateHash: string;
|
|
605
|
+
ttl?: string;
|
|
606
|
+
fee: string;
|
|
607
|
+
nonce?: string;
|
|
608
|
+
/** Base64Check encoded tagged byte array */
|
|
609
|
+
offchainTrees?: string;
|
|
610
|
+
}
|
|
611
|
+
export interface ChannelCloseMutualTx {
|
|
612
|
+
/** Base58Check encoded tagged pubkey */
|
|
613
|
+
channelId: string;
|
|
614
|
+
/** Base58Check encoded tagged pubkey */
|
|
615
|
+
fromId: string;
|
|
616
|
+
initiatorAmountFinal: string;
|
|
617
|
+
responderAmountFinal: string;
|
|
618
|
+
ttl?: string;
|
|
619
|
+
fee: string;
|
|
620
|
+
nonce: string;
|
|
621
|
+
}
|
|
622
|
+
export interface ChannelCloseSoloTx {
|
|
623
|
+
/** Base58Check encoded tagged pubkey */
|
|
624
|
+
channelId: string;
|
|
625
|
+
/** Base58Check encoded tagged pubkey */
|
|
626
|
+
fromId: string;
|
|
627
|
+
/** Base64Check encoded tagged byte array */
|
|
628
|
+
payload: string;
|
|
629
|
+
ttl?: string;
|
|
630
|
+
fee: string;
|
|
631
|
+
nonce?: string;
|
|
632
|
+
/** Base64Check encoded tagged byte array */
|
|
633
|
+
poi: string;
|
|
634
|
+
}
|
|
635
|
+
export interface ChannelSlashTx {
|
|
636
|
+
/** Base58Check encoded tagged pubkey */
|
|
637
|
+
channelId: string;
|
|
638
|
+
/** Base58Check encoded tagged pubkey */
|
|
639
|
+
fromId: string;
|
|
640
|
+
/** Base64Check encoded tagged byte array */
|
|
641
|
+
payload: string;
|
|
642
|
+
ttl?: string;
|
|
643
|
+
fee: string;
|
|
644
|
+
nonce?: string;
|
|
645
|
+
/** Base64Check encoded tagged byte array */
|
|
646
|
+
poi: string;
|
|
647
|
+
}
|
|
648
|
+
export interface ChannelSettleTx {
|
|
649
|
+
/** Base58Check encoded tagged pubkey */
|
|
650
|
+
channelId: string;
|
|
651
|
+
/** Base58Check encoded tagged pubkey */
|
|
652
|
+
fromId: string;
|
|
653
|
+
initiatorAmountFinal: string;
|
|
654
|
+
responderAmountFinal: string;
|
|
655
|
+
ttl?: string;
|
|
656
|
+
fee: string;
|
|
657
|
+
nonce: string;
|
|
658
|
+
}
|
|
659
|
+
export interface ChannelSnapshotSoloTx {
|
|
660
|
+
/** Base58Check encoded tagged pubkey */
|
|
661
|
+
channelId: string;
|
|
662
|
+
/** Base58Check encoded tagged pubkey */
|
|
663
|
+
fromId: string;
|
|
664
|
+
/** Base64Check encoded tagged byte array */
|
|
665
|
+
payload: string;
|
|
666
|
+
ttl?: string;
|
|
667
|
+
fee: string;
|
|
668
|
+
nonce?: string;
|
|
669
|
+
}
|
|
670
|
+
export interface ChannelSetDelegatesTx {
|
|
671
|
+
/** Base58Check encoded tagged pubkey */
|
|
672
|
+
channelId: string;
|
|
673
|
+
/** Base58Check encoded tagged pubkey */
|
|
674
|
+
fromId: string;
|
|
675
|
+
initiatorDelegateIds: string[];
|
|
676
|
+
responderDelegateIds: string[];
|
|
677
|
+
/** Base58Check encoded tagged pubkey */
|
|
678
|
+
stateHash: string;
|
|
679
|
+
round: string;
|
|
680
|
+
/** Base64Check encoded tagged byte array */
|
|
681
|
+
payload: string;
|
|
682
|
+
ttl?: string;
|
|
683
|
+
fee: string;
|
|
684
|
+
nonce?: string;
|
|
685
|
+
}
|
|
686
|
+
export interface PubKey {
|
|
687
|
+
/** Base58Check encoded tagged pubkey */
|
|
688
|
+
pubKey: string;
|
|
689
|
+
}
|
|
690
|
+
export interface PeerDetails {
|
|
691
|
+
/** Hostname of peer */
|
|
692
|
+
host: string;
|
|
693
|
+
port: string;
|
|
694
|
+
firstSeen: string;
|
|
695
|
+
lastSeen: string;
|
|
696
|
+
/** Base58Check encoded tagged hash */
|
|
697
|
+
genesisHash: string;
|
|
698
|
+
/** Base58Check encoded tagged hash */
|
|
699
|
+
topHash: string;
|
|
700
|
+
topDifficulty: string;
|
|
701
|
+
networkId?: string;
|
|
702
|
+
nodeVersion?: string;
|
|
703
|
+
nodeRevision?: string;
|
|
704
|
+
nodeVendor?: string;
|
|
705
|
+
nodeOs?: string;
|
|
706
|
+
}
|
|
707
|
+
export interface Peers {
|
|
708
|
+
/** All discovered peers */
|
|
709
|
+
peers: string[];
|
|
710
|
+
/** All blocked peers */
|
|
711
|
+
blocked: string[];
|
|
712
|
+
}
|
|
713
|
+
export interface PeerCount {
|
|
714
|
+
connected: PeerCountConnected;
|
|
715
|
+
available: PeerCountAvailable;
|
|
716
|
+
blocked: string;
|
|
717
|
+
}
|
|
718
|
+
export interface PeerCountConnected {
|
|
719
|
+
inbound?: string;
|
|
720
|
+
outbound?: string;
|
|
721
|
+
}
|
|
722
|
+
export interface PeerCountAvailable {
|
|
723
|
+
verified?: string;
|
|
724
|
+
unverified?: string;
|
|
725
|
+
}
|
|
726
|
+
export interface ContractCreateTx {
|
|
727
|
+
/** Base58Check encoded tagged pubkey */
|
|
728
|
+
ownerId: string;
|
|
729
|
+
nonce?: string;
|
|
730
|
+
/** Base64Check encoded tagged byte array */
|
|
731
|
+
code: string;
|
|
732
|
+
vmVersion: string;
|
|
733
|
+
abiVersion: string;
|
|
734
|
+
deposit: string;
|
|
735
|
+
amount: string;
|
|
736
|
+
gas: string;
|
|
737
|
+
gasPrice: string;
|
|
738
|
+
fee: string;
|
|
739
|
+
ttl?: string;
|
|
740
|
+
/** Base64Check encoded tagged byte array */
|
|
741
|
+
callData: string;
|
|
742
|
+
}
|
|
743
|
+
export interface ContractCallTx {
|
|
744
|
+
/** Base58Check encoded tagged pubkey */
|
|
745
|
+
callerId: string;
|
|
746
|
+
nonce?: string;
|
|
747
|
+
/** Base58Check encoded tagged pubkey */
|
|
748
|
+
contractId: string;
|
|
749
|
+
abiVersion: string;
|
|
750
|
+
fee: string;
|
|
751
|
+
ttl?: string;
|
|
752
|
+
amount: string;
|
|
753
|
+
gas: string;
|
|
754
|
+
gasPrice: string;
|
|
755
|
+
/** Base64Check encoded tagged byte array */
|
|
756
|
+
callData: string;
|
|
757
|
+
}
|
|
758
|
+
export interface UnsignedTx {
|
|
759
|
+
/** Base64Check encoded tagged byte array */
|
|
760
|
+
tx: string;
|
|
761
|
+
}
|
|
762
|
+
export interface TokenSupply {
|
|
763
|
+
accounts?: string;
|
|
764
|
+
contracts?: string;
|
|
765
|
+
contractOracles?: string;
|
|
766
|
+
locked?: string;
|
|
767
|
+
oracles?: string;
|
|
768
|
+
oracleQueries?: string;
|
|
769
|
+
pendingRewards?: string;
|
|
770
|
+
total?: string;
|
|
771
|
+
}
|
|
772
|
+
export interface GAAttachTx {
|
|
773
|
+
/** Base58Check encoded tagged pubkey */
|
|
774
|
+
ownerId: string;
|
|
775
|
+
nonce?: string;
|
|
776
|
+
/** Base64Check encoded tagged byte array */
|
|
777
|
+
code: string;
|
|
778
|
+
vmVersion: string;
|
|
779
|
+
abiVersion: string;
|
|
780
|
+
gas: string;
|
|
781
|
+
gasPrice: string;
|
|
782
|
+
fee: string;
|
|
783
|
+
ttl?: string;
|
|
784
|
+
/** Base64Check encoded tagged byte array */
|
|
785
|
+
callData: string;
|
|
786
|
+
/** Contract authorization function hash (hex encoded) */
|
|
787
|
+
authFun: string;
|
|
788
|
+
}
|
|
789
|
+
export interface GAMetaTx {
|
|
790
|
+
/** Base58Check encoded tagged pubkey */
|
|
791
|
+
gaId: string;
|
|
792
|
+
abiVersion: string;
|
|
793
|
+
gas: string;
|
|
794
|
+
gasPrice: string;
|
|
795
|
+
fee: string;
|
|
796
|
+
ttl?: string;
|
|
797
|
+
/** Base64Check encoded tagged byte array */
|
|
798
|
+
authData: string;
|
|
799
|
+
tx: SignedTx;
|
|
800
|
+
}
|
|
801
|
+
export interface PayingForTx {
|
|
802
|
+
/** Base58Check encoded tagged pubkey */
|
|
803
|
+
payerId: string;
|
|
804
|
+
fee: string;
|
|
805
|
+
nonce?: string;
|
|
806
|
+
tx: SignedTx;
|
|
807
|
+
}
|
|
808
|
+
export interface CheckTxInPoolResponse {
|
|
809
|
+
status: string;
|
|
810
|
+
}
|
|
811
|
+
export declare type OffChainTransfer = OffChainUpdate & {
|
|
812
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
813
|
+
op: "OffChainTransfer";
|
|
814
|
+
/** Base58Check encoded tagged pubkey */
|
|
815
|
+
from: string;
|
|
816
|
+
/** Base58Check encoded tagged pubkey */
|
|
817
|
+
to: string;
|
|
818
|
+
amount: string;
|
|
819
|
+
};
|
|
820
|
+
export declare type OffChainWithdrawal = OffChainUpdate & {
|
|
821
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
822
|
+
op: "OffChainWithdrawal";
|
|
823
|
+
/** Base58Check encoded tagged pubkey */
|
|
824
|
+
to: string;
|
|
825
|
+
amount: string;
|
|
826
|
+
};
|
|
827
|
+
export declare type OffChainDeposit = OffChainUpdate & {
|
|
828
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
829
|
+
op: "OffChainDeposit";
|
|
830
|
+
/** Base58Check encoded tagged pubkey */
|
|
831
|
+
from: string;
|
|
832
|
+
amount: string;
|
|
833
|
+
};
|
|
834
|
+
export declare type OffChainNewContract = OffChainUpdate & {
|
|
835
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
836
|
+
op: "OffChainNewContract";
|
|
837
|
+
/** Base58Check encoded tagged pubkey */
|
|
838
|
+
owner: string;
|
|
839
|
+
vmVersion: string;
|
|
840
|
+
abiVersion: string;
|
|
841
|
+
code: ByteCode;
|
|
842
|
+
deposit: string;
|
|
843
|
+
/** Base64Check encoded tagged byte array */
|
|
844
|
+
callData: string;
|
|
845
|
+
};
|
|
846
|
+
export declare type OffChainCallContract = OffChainUpdate & {
|
|
847
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
848
|
+
op: "OffChainCallContract";
|
|
849
|
+
/** Base58Check encoded tagged pubkey */
|
|
850
|
+
caller: string;
|
|
851
|
+
/** Base58Check encoded tagged pubkey */
|
|
852
|
+
contract: string;
|
|
853
|
+
abiVersion: string;
|
|
854
|
+
amount: string;
|
|
855
|
+
gas: string;
|
|
856
|
+
gasPrice: string;
|
|
857
|
+
/** Base64Check encoded tagged byte array */
|
|
858
|
+
callData: string;
|
|
859
|
+
};
|
|
860
|
+
export declare type CreateContractUnsignedTx = UnsignedTx & {
|
|
861
|
+
/** Base58Check encoded tagged pubkey */
|
|
862
|
+
contractId: string;
|
|
863
|
+
};
|
|
864
|
+
/** Defines values for TTLType. */
|
|
865
|
+
export declare type TTLType = "delta" | "block";
|
|
866
|
+
/** Defines values for TxType. */
|
|
867
|
+
export declare type TxType = "SpendTx" | "ChannelCreateTx" | "ChannelDepositTx" | "ChannelWithdrawTx" | "ChannelForceProgressTx" | "ChannelCloseMutualTx" | "ChannelCloseSoloTx" | "ChannelSlashTx" | "ChannelSettleTx" | "ChannelSnapshotSoloTx" | "ChannelSetDelegatesTx" | "OracleRegisterTx" | "OracleExtendTx" | "OracleQueryTx" | "OracleRespondTx" | "NamePreclaimTx" | "NameClaimTx" | "NameUpdateTx" | "NameTransferTx" | "NameRevokeTx" | "ContractCreateTx" | "ContractCallTx" | "GAAttachTx" | "GAMetaTx" | "PayingForTx";
|
|
868
|
+
/** Defines values for AccountKind. */
|
|
869
|
+
export declare type AccountKind = "basic" | "generalized";
|
|
870
|
+
/** Defines values for NextNonceStrategy. */
|
|
871
|
+
export declare type NextNonceStrategy = "max" | "continuity";
|
|
872
|
+
/** Defines values for ContractCallReturnType. */
|
|
873
|
+
export declare type ContractCallReturnType = "ok" | "error" | "revert";
|
|
874
|
+
/** Defines values for GAReturnType. */
|
|
875
|
+
export declare type GAReturnType = "ok" | "error";
|
|
876
|
+
/** Defines values for OracleQueryType. */
|
|
877
|
+
export declare type OracleQueryType = "open" | "closed" | "all";
|
|
878
|
+
/** Optional parameters. */
|
|
879
|
+
export interface GetTopHeaderOptionalParams extends coreClient.OperationOptions {
|
|
880
|
+
}
|
|
881
|
+
/** Contains response data for the getTopHeader operation. */
|
|
882
|
+
export declare type GetTopHeaderResponse = Header;
|
|
883
|
+
/** Optional parameters. */
|
|
884
|
+
export interface GetCurrentKeyBlockOptionalParams extends coreClient.OperationOptions {
|
|
885
|
+
}
|
|
886
|
+
/** Contains response data for the getCurrentKeyBlock operation. */
|
|
887
|
+
export declare type GetCurrentKeyBlockResponse = KeyBlock;
|
|
888
|
+
/** Optional parameters. */
|
|
889
|
+
export interface GetCurrentKeyBlockHashOptionalParams extends coreClient.OperationOptions {
|
|
890
|
+
}
|
|
891
|
+
/** Contains response data for the getCurrentKeyBlockHash operation. */
|
|
892
|
+
export declare type GetCurrentKeyBlockHashResponse = HashResponse;
|
|
893
|
+
/** Optional parameters. */
|
|
894
|
+
export interface GetCurrentKeyBlockHeightOptionalParams extends coreClient.OperationOptions {
|
|
895
|
+
}
|
|
896
|
+
/** Contains response data for the getCurrentKeyBlockHeight operation. */
|
|
897
|
+
export declare type GetCurrentKeyBlockHeightResponse = HeightResponse;
|
|
898
|
+
/** Optional parameters. */
|
|
899
|
+
export interface GetPendingKeyBlockOptionalParams extends coreClient.OperationOptions {
|
|
900
|
+
}
|
|
901
|
+
/** Contains response data for the getPendingKeyBlock operation. */
|
|
902
|
+
export declare type GetPendingKeyBlockResponse = KeyBlock;
|
|
903
|
+
/** Optional parameters. */
|
|
904
|
+
export interface GetKeyBlockByHashOptionalParams extends coreClient.OperationOptions {
|
|
905
|
+
}
|
|
906
|
+
/** Contains response data for the getKeyBlockByHash operation. */
|
|
907
|
+
export declare type GetKeyBlockByHashResponse = KeyBlock;
|
|
908
|
+
/** Optional parameters. */
|
|
909
|
+
export interface GetKeyBlockByHeightOptionalParams extends coreClient.OperationOptions {
|
|
910
|
+
}
|
|
911
|
+
/** Contains response data for the getKeyBlockByHeight operation. */
|
|
912
|
+
export declare type GetKeyBlockByHeightResponse = KeyBlock;
|
|
913
|
+
/** Optional parameters. */
|
|
914
|
+
export interface GetMicroBlockHeaderByHashOptionalParams extends coreClient.OperationOptions {
|
|
915
|
+
}
|
|
916
|
+
/** Contains response data for the getMicroBlockHeaderByHash operation. */
|
|
917
|
+
export declare type GetMicroBlockHeaderByHashResponse = MicroBlockHeader;
|
|
918
|
+
/** Optional parameters. */
|
|
919
|
+
export interface GetMicroBlockTransactionsByHashOptionalParams extends coreClient.OperationOptions {
|
|
920
|
+
}
|
|
921
|
+
/** Contains response data for the getMicroBlockTransactionsByHash operation. */
|
|
922
|
+
export declare type GetMicroBlockTransactionsByHashResponse = SignedTxs;
|
|
923
|
+
/** Optional parameters. */
|
|
924
|
+
export interface GetMicroBlockTransactionByHashAndIndexOptionalParams extends coreClient.OperationOptions {
|
|
925
|
+
}
|
|
926
|
+
/** Contains response data for the getMicroBlockTransactionByHashAndIndex operation. */
|
|
927
|
+
export declare type GetMicroBlockTransactionByHashAndIndexResponse = SignedTx;
|
|
928
|
+
/** Optional parameters. */
|
|
929
|
+
export interface GetMicroBlockTransactionsCountByHashOptionalParams extends coreClient.OperationOptions {
|
|
930
|
+
}
|
|
931
|
+
/** Contains response data for the getMicroBlockTransactionsCountByHash operation. */
|
|
932
|
+
export declare type GetMicroBlockTransactionsCountByHashResponse = CountResponse;
|
|
933
|
+
/** Optional parameters. */
|
|
934
|
+
export interface GetCurrentGenerationOptionalParams extends coreClient.OperationOptions {
|
|
935
|
+
}
|
|
936
|
+
/** Contains response data for the getCurrentGeneration operation. */
|
|
937
|
+
export declare type GetCurrentGenerationResponse = Generation;
|
|
938
|
+
/** Optional parameters. */
|
|
939
|
+
export interface GetGenerationByHashOptionalParams extends coreClient.OperationOptions {
|
|
940
|
+
}
|
|
941
|
+
/** Contains response data for the getGenerationByHash operation. */
|
|
942
|
+
export declare type GetGenerationByHashResponse = Generation;
|
|
943
|
+
/** Optional parameters. */
|
|
944
|
+
export interface GetGenerationByHeightOptionalParams extends coreClient.OperationOptions {
|
|
945
|
+
}
|
|
946
|
+
/** Contains response data for the getGenerationByHeight operation. */
|
|
947
|
+
export declare type GetGenerationByHeightResponse = Generation;
|
|
948
|
+
/** Optional parameters. */
|
|
949
|
+
export interface GetAccountByPubkeyOptionalParams extends coreClient.OperationOptions {
|
|
950
|
+
}
|
|
951
|
+
/** Contains response data for the getAccountByPubkey operation. */
|
|
952
|
+
export declare type GetAccountByPubkeyResponse = Account;
|
|
953
|
+
/** Optional parameters. */
|
|
954
|
+
export interface GetAccountByPubkeyAndHeightOptionalParams extends coreClient.OperationOptions {
|
|
955
|
+
}
|
|
956
|
+
/** Contains response data for the getAccountByPubkeyAndHeight operation. */
|
|
957
|
+
export declare type GetAccountByPubkeyAndHeightResponse = Account;
|
|
958
|
+
/** Optional parameters. */
|
|
959
|
+
export interface GetAccountByPubkeyAndHashOptionalParams extends coreClient.OperationOptions {
|
|
960
|
+
}
|
|
961
|
+
/** Contains response data for the getAccountByPubkeyAndHash operation. */
|
|
962
|
+
export declare type GetAccountByPubkeyAndHashResponse = Account;
|
|
963
|
+
/** Optional parameters. */
|
|
964
|
+
export interface GetPendingAccountTransactionsByPubkeyOptionalParams extends coreClient.OperationOptions {
|
|
965
|
+
}
|
|
966
|
+
/** Contains response data for the getPendingAccountTransactionsByPubkey operation. */
|
|
967
|
+
export declare type GetPendingAccountTransactionsByPubkeyResponse = SignedTxs;
|
|
968
|
+
/** Optional parameters. */
|
|
969
|
+
export interface GetAccountNextNonceOptionalParams extends coreClient.OperationOptions {
|
|
970
|
+
/** What strategy to use in order to determine the next nonce: shall it check for continuity or return the largest nonce seen + 1. If you choose strategy max, then the greatest nonce seen in the account or currently in the transaction pool is incremented with 1 and returned. If you choose the strategy continuity, then transactions in the mempool are checked if there are gaps - missing nonces that prevent transactions with greater nonces to get included. */
|
|
971
|
+
strategy?: NextNonceStrategy;
|
|
972
|
+
}
|
|
973
|
+
/** Contains response data for the getAccountNextNonce operation. */
|
|
974
|
+
export declare type GetAccountNextNonceResponse = NextNonceResponse;
|
|
975
|
+
/** Optional parameters. */
|
|
976
|
+
export interface ProtectedDryRunTxsOptionalParams extends coreClient.OperationOptions {
|
|
977
|
+
}
|
|
978
|
+
/** Contains response data for the protectedDryRunTxs operation. */
|
|
979
|
+
export declare type ProtectedDryRunTxsResponse = DryRunResults;
|
|
980
|
+
/** Optional parameters. */
|
|
981
|
+
export interface GetTransactionByHashOptionalParams extends coreClient.OperationOptions {
|
|
982
|
+
}
|
|
983
|
+
/** Contains response data for the getTransactionByHash operation. */
|
|
984
|
+
export declare type GetTransactionByHashResponse = SignedTx;
|
|
985
|
+
/** Optional parameters. */
|
|
986
|
+
export interface GetTransactionInfoByHashOptionalParams extends coreClient.OperationOptions {
|
|
987
|
+
}
|
|
988
|
+
/** Contains response data for the getTransactionInfoByHash operation. */
|
|
989
|
+
export declare type GetTransactionInfoByHashResponse = TxInfoObject;
|
|
990
|
+
/** Optional parameters. */
|
|
991
|
+
export interface PostTransactionOptionalParams extends coreClient.OperationOptions {
|
|
992
|
+
}
|
|
993
|
+
/** Contains response data for the postTransaction operation. */
|
|
994
|
+
export declare type PostTransactionResponse = PostTxResponse;
|
|
995
|
+
/** Optional parameters. */
|
|
996
|
+
export interface GetContractOptionalParams extends coreClient.OperationOptions {
|
|
997
|
+
}
|
|
998
|
+
/** Contains response data for the getContract operation. */
|
|
999
|
+
export declare type GetContractResponse = ContractObject;
|
|
1000
|
+
/** Optional parameters. */
|
|
1001
|
+
export interface GetContractCodeOptionalParams extends coreClient.OperationOptions {
|
|
1002
|
+
}
|
|
1003
|
+
/** Contains response data for the getContractCode operation. */
|
|
1004
|
+
export declare type GetContractCodeResponse = ByteCode;
|
|
1005
|
+
/** Optional parameters. */
|
|
1006
|
+
export interface GetContractPoIOptionalParams extends coreClient.OperationOptions {
|
|
1007
|
+
}
|
|
1008
|
+
/** Contains response data for the getContractPoI operation. */
|
|
1009
|
+
export declare type GetContractPoIResponse = PoI;
|
|
1010
|
+
/** Optional parameters. */
|
|
1011
|
+
export interface GetOracleByPubkeyOptionalParams extends coreClient.OperationOptions {
|
|
1012
|
+
}
|
|
1013
|
+
/** Contains response data for the getOracleByPubkey operation. */
|
|
1014
|
+
export declare type GetOracleByPubkeyResponse = RegisteredOracle;
|
|
1015
|
+
/** Optional parameters. */
|
|
1016
|
+
export interface GetOracleQueriesByPubkeyOptionalParams extends coreClient.OperationOptions {
|
|
1017
|
+
/** Last query id in previous page */
|
|
1018
|
+
fromParam?: string;
|
|
1019
|
+
/** Max number of oracle queries */
|
|
1020
|
+
limit?: number;
|
|
1021
|
+
/** The type of a query: open, closed or all */
|
|
1022
|
+
typeParam?: OracleQueryType;
|
|
1023
|
+
}
|
|
1024
|
+
/** Contains response data for the getOracleQueriesByPubkey operation. */
|
|
1025
|
+
export declare type GetOracleQueriesByPubkeyResponse = OracleQueries;
|
|
1026
|
+
/** Optional parameters. */
|
|
1027
|
+
export interface GetOracleQueryByPubkeyAndQueryIdOptionalParams extends coreClient.OperationOptions {
|
|
1028
|
+
}
|
|
1029
|
+
/** Contains response data for the getOracleQueryByPubkeyAndQueryId operation. */
|
|
1030
|
+
export declare type GetOracleQueryByPubkeyAndQueryIdResponse = OracleQuery;
|
|
1031
|
+
/** Optional parameters. */
|
|
1032
|
+
export interface GetNameEntryByNameOptionalParams extends coreClient.OperationOptions {
|
|
1033
|
+
}
|
|
1034
|
+
/** Contains response data for the getNameEntryByName operation. */
|
|
1035
|
+
export declare type GetNameEntryByNameResponse = NameEntry;
|
|
1036
|
+
/** Optional parameters. */
|
|
1037
|
+
export interface GetChannelByPubkeyOptionalParams extends coreClient.OperationOptions {
|
|
1038
|
+
}
|
|
1039
|
+
/** Contains response data for the getChannelByPubkey operation. */
|
|
1040
|
+
export declare type GetChannelByPubkeyResponse = Channel;
|
|
1041
|
+
/** Optional parameters. */
|
|
1042
|
+
export interface GetPeerPubkeyOptionalParams extends coreClient.OperationOptions {
|
|
1043
|
+
}
|
|
1044
|
+
/** Contains response data for the getPeerPubkey operation. */
|
|
1045
|
+
export declare type GetPeerPubkeyResponse = PeerPubKey;
|
|
1046
|
+
/** Optional parameters. */
|
|
1047
|
+
export interface GetStatusOptionalParams extends coreClient.OperationOptions {
|
|
1048
|
+
}
|
|
1049
|
+
/** Contains response data for the getStatus operation. */
|
|
1050
|
+
export declare type GetStatusResponse = Status;
|
|
1051
|
+
/** Optional parameters. */
|
|
1052
|
+
export interface GetChainEndsOptionalParams extends coreClient.OperationOptions {
|
|
1053
|
+
}
|
|
1054
|
+
/** Contains response data for the getChainEnds operation. */
|
|
1055
|
+
export declare type GetChainEndsResponse = {
|
|
1056
|
+
/** The parsed response body. */
|
|
1057
|
+
body: string[];
|
|
1058
|
+
};
|
|
1059
|
+
/** Optional parameters. */
|
|
1060
|
+
export interface NodeOptionalParams extends coreClient.ServiceClientOptions {
|
|
1061
|
+
/** If this flag is set to true, the response will have all integers set as strings */
|
|
1062
|
+
intAsString?: boolean;
|
|
1063
|
+
/** Overrides client endpoint. */
|
|
1064
|
+
endpoint?: string;
|
|
1065
|
+
}
|