@aeternity/aepp-sdk 13.2.2 → 13.3.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/README.md +1 -1
- package/bin/aesophia_cli +0 -0
- package/bin/aesophia_cli_8 +0 -0
- package/dist/aepp-sdk.browser-script.js +1 -1
- package/dist/aepp-sdk.browser-script.js.map +1 -1
- package/dist/aepp-sdk.browser.js +1 -1
- package/dist/aepp-sdk.browser.js.map +1 -1
- package/dist/aepp-sdk.js +9171 -7086
- package/dist/aepp-sdk.js.map +1 -1
- package/es/AeSdk.d.ts +3 -0
- package/es/AeSdk.mjs +12 -12
- package/es/AeSdk.mjs.map +1 -1
- package/es/AeSdkAepp.d.ts +0 -1
- package/es/AeSdkAepp.mjs +12 -16
- package/es/AeSdkAepp.mjs.map +1 -1
- package/es/AeSdkBase.d.ts +61 -6
- package/es/AeSdkBase.mjs +150 -69
- package/es/AeSdkBase.mjs.map +1 -1
- package/es/AeSdkMethods.d.ts +19 -7
- package/es/AeSdkMethods.mjs +39 -38
- package/es/AeSdkMethods.mjs.map +1 -1
- package/es/AeSdkWallet.mjs +86 -55
- package/es/AeSdkWallet.mjs.map +1 -1
- package/es/Middleware.mjs +31 -27
- package/es/Middleware.mjs.map +1 -1
- package/es/MiddlewareSubscriber.mjs +5 -14
- package/es/MiddlewareSubscriber.mjs.map +1 -1
- package/es/Node.d.ts +10 -2
- package/es/Node.mjs +53 -54
- package/es/Node.mjs.map +1 -1
- package/es/account/Base.d.ts +39 -3
- package/es/account/Base.mjs +35 -1
- package/es/account/Base.mjs.map +1 -1
- package/es/account/Generalized.d.ts +2 -0
- package/es/account/Generalized.mjs +15 -6
- package/es/account/Generalized.mjs.map +1 -1
- package/es/account/Ledger.d.ts +2 -0
- package/es/account/Ledger.mjs +14 -5
- package/es/account/Ledger.mjs.map +1 -1
- package/es/account/LedgerFactory.mjs +4 -6
- package/es/account/LedgerFactory.mjs.map +1 -1
- package/es/account/Memory.d.ts +15 -4
- package/es/account/Memory.mjs +96 -31
- package/es/account/Memory.mjs.map +1 -1
- package/es/account/Rpc.d.ts +16 -5
- package/es/account/Rpc.mjs +94 -21
- package/es/account/Rpc.mjs.map +1 -1
- package/es/aens.d.ts +17 -44
- package/es/aens.mjs +32 -71
- package/es/aens.mjs.map +1 -1
- package/es/aepp-wallet-communication/connection/Browser.mjs +3 -4
- package/es/aepp-wallet-communication/connection/Browser.mjs.map +1 -1
- package/es/aepp-wallet-communication/connection/BrowserRuntime.d.ts +3 -0
- package/es/aepp-wallet-communication/connection/BrowserRuntime.mjs +7 -5
- package/es/aepp-wallet-communication/connection/BrowserRuntime.mjs.map +1 -1
- package/es/aepp-wallet-communication/connection/BrowserWindowMessage.mjs +8 -9
- package/es/aepp-wallet-communication/connection/BrowserWindowMessage.mjs.map +1 -1
- package/es/aepp-wallet-communication/rpc/RpcClient.mjs +7 -7
- package/es/aepp-wallet-communication/rpc/RpcClient.mjs.map +1 -1
- package/es/aepp-wallet-communication/rpc/types.d.ts +14 -0
- package/es/aepp-wallet-communication/rpc/types.mjs.map +1 -1
- package/es/aepp-wallet-communication/schema.d.ts +2 -0
- package/es/aepp-wallet-communication/schema.mjs +2 -0
- package/es/aepp-wallet-communication/schema.mjs.map +1 -1
- package/es/aepp-wallet-communication/wallet-detector.mjs +4 -5
- package/es/aepp-wallet-communication/wallet-detector.mjs.map +1 -1
- package/es/apis/compiler/compiler.mjs.map +1 -1
- package/es/apis/compiler/models/index.d.ts +1 -0
- package/es/apis/compiler/models/index.mjs.map +1 -1
- package/es/apis/compiler/models/mappers.mjs +13 -0
- package/es/apis/compiler/models/mappers.mjs.map +1 -1
- package/es/apis/compiler/models/parameters.mjs.map +1 -1
- package/es/apis/middleware/middleware.d.ts +23 -5
- package/es/apis/middleware/middleware.mjs +114 -18
- package/es/apis/middleware/middleware.mjs.map +1 -1
- package/es/apis/middleware/models/index.d.ts +164 -15
- package/es/apis/middleware/models/index.mjs +53 -3
- package/es/apis/middleware/models/index.mjs.map +1 -1
- package/es/apis/middleware/models/mappers.d.ts +8 -1
- package/es/apis/middleware/models/mappers.mjs +376 -3
- package/es/apis/middleware/models/mappers.mjs.map +1 -1
- package/es/apis/middleware/models/parameters.d.ts +6 -3
- package/es/apis/middleware/models/parameters.mjs +38 -11
- package/es/apis/middleware/models/parameters.mjs.map +1 -1
- package/es/apis/node/models/index.d.ts +66 -2
- package/es/apis/node/models/index.mjs.map +1 -1
- package/es/apis/node/models/mappers.d.ts +5 -1
- package/es/apis/node/models/mappers.mjs +229 -7
- package/es/apis/node/models/mappers.mjs.map +1 -1
- package/es/apis/node/models/parameters.d.ts +2 -2
- package/es/apis/node/models/parameters.mjs +2 -2
- package/es/apis/node/models/parameters.mjs.map +1 -1
- package/es/apis/node/node.d.ts +24 -3
- package/es/apis/node/node.mjs +135 -3
- package/es/apis/node/node.mjs.map +1 -1
- package/es/chain.d.ts +14 -44
- package/es/chain.mjs +125 -219
- package/es/chain.mjs.map +1 -1
- package/es/channel/Base.d.ts +3 -47
- package/es/channel/Base.mjs +21 -54
- package/es/channel/Base.mjs.map +1 -1
- package/es/channel/Contract.d.ts +16 -25
- package/es/channel/Contract.mjs +39 -63
- package/es/channel/Contract.mjs.map +1 -1
- package/es/channel/Spend.d.ts +0 -8
- package/es/channel/Spend.mjs +17 -29
- package/es/channel/Spend.mjs.map +1 -1
- package/es/channel/handlers.mjs +1 -1
- package/es/channel/handlers.mjs.map +1 -1
- package/es/channel/internal.d.ts +104 -5
- package/es/channel/internal.mjs +26 -34
- package/es/channel/internal.mjs.map +1 -1
- package/es/contract/Contract.d.ts +9 -1
- package/es/contract/Contract.mjs +67 -73
- package/es/contract/Contract.mjs.map +1 -1
- package/es/contract/compiler/Base.d.ts +14 -8
- package/es/contract/compiler/Base.mjs.map +1 -1
- package/es/contract/compiler/Cli.d.ts +5 -9
- package/es/contract/compiler/Cli.mjs +45 -23
- package/es/contract/compiler/Cli.mjs.map +1 -1
- package/es/contract/compiler/Cli8.d.ts +13 -0
- package/es/contract/compiler/Cli8.mjs +22 -0
- package/es/contract/compiler/Cli8.mjs.map +1 -0
- package/es/contract/compiler/Http.d.ts +3 -9
- package/es/contract/compiler/Http.mjs +28 -16
- package/es/contract/compiler/Http.mjs.map +1 -1
- package/es/contract/compiler/HttpNode.d.ts +2 -5
- package/es/contract/compiler/HttpNode.mjs.map +1 -1
- package/es/contract/delegation-signature.d.ts +2 -1
- package/es/contract/delegation-signature.mjs +18 -14
- package/es/contract/delegation-signature.mjs.map +1 -1
- package/es/contract/ga.d.ts +1 -2
- package/es/contract/ga.mjs +23 -25
- package/es/contract/ga.mjs.map +1 -1
- package/es/deprecated.d.ts +38 -0
- package/es/deprecated.mjs +45 -0
- package/es/deprecated.mjs.map +1 -1
- package/es/index-browser.d.ts +10 -5
- package/es/index-browser.mjs +9 -5
- package/es/index-browser.mjs.map +1 -1
- package/es/index.d.ts +1 -0
- package/es/index.mjs +1 -0
- package/es/index.mjs.map +1 -1
- package/es/oracle.d.ts +6 -37
- package/es/oracle.mjs +32 -66
- package/es/oracle.mjs.map +1 -1
- package/es/send-transaction.d.ts +53 -0
- package/es/send-transaction.mjs +109 -0
- package/es/send-transaction.mjs.map +1 -0
- package/es/spend.d.ts +4 -3
- package/es/spend.mjs +6 -1
- package/es/spend.mjs.map +1 -1
- package/es/tx/builder/common.d.ts +29 -0
- package/es/tx/builder/common.mjs +42 -0
- package/es/tx/builder/common.mjs.map +1 -0
- package/es/tx/builder/constants.d.ts +4 -4
- package/es/tx/builder/constants.mjs +6 -15
- package/es/tx/builder/constants.mjs.map +1 -1
- package/es/tx/builder/delegation/index.d.ts +20 -0
- package/es/tx/builder/delegation/index.mjs +24 -0
- package/es/tx/builder/delegation/index.mjs.map +1 -0
- package/es/tx/builder/delegation/schema.d.ts +130 -0
- package/es/tx/builder/delegation/schema.generated.d.ts +141 -0
- package/es/tx/builder/delegation/schema.generated.mjs +2 -0
- package/es/tx/builder/delegation/schema.generated.mjs.map +1 -0
- package/es/tx/builder/delegation/schema.mjs +54 -0
- package/es/tx/builder/delegation/schema.mjs.map +1 -0
- package/es/tx/builder/field-types/abi-version.mjs +8 -11
- package/es/tx/builder/field-types/abi-version.mjs.map +1 -1
- package/es/tx/builder/field-types/address.mjs +1 -4
- package/es/tx/builder/field-types/address.mjs.map +1 -1
- package/es/tx/builder/field-types/coin-amount.d.ts +2 -2
- package/es/tx/builder/field-types/coin-amount.mjs +6 -6
- package/es/tx/builder/field-types/coin-amount.mjs.map +1 -1
- package/es/tx/builder/field-types/ct-version.mjs +3 -4
- package/es/tx/builder/field-types/ct-version.mjs.map +1 -1
- package/es/tx/builder/field-types/entry.mjs +7 -13
- package/es/tx/builder/field-types/entry.mjs.map +1 -1
- package/es/tx/builder/field-types/fee.d.ts +19 -11
- package/es/tx/builder/field-types/fee.mjs +56 -38
- package/es/tx/builder/field-types/fee.mjs.map +1 -1
- package/es/tx/builder/field-types/gas-limit.mjs +13 -15
- package/es/tx/builder/field-types/gas-limit.mjs.map +1 -1
- package/es/tx/builder/field-types/gas-price.d.ts +10 -2
- package/es/tx/builder/field-types/gas-price.mjs +52 -3
- package/es/tx/builder/field-types/gas-price.mjs.map +1 -1
- package/es/tx/builder/field-types/index.d.ts +31 -29
- package/es/tx/builder/field-types/index.mjs +31 -29
- package/es/tx/builder/field-types/index.mjs.map +1 -1
- package/es/tx/builder/field-types/map.mjs +20 -31
- package/es/tx/builder/field-types/map.mjs.map +1 -1
- package/es/tx/builder/field-types/mptree.mjs +14 -29
- package/es/tx/builder/field-types/mptree.mjs.map +1 -1
- package/es/tx/builder/field-types/name-fee.d.ts +1 -1
- package/es/tx/builder/field-types/name-fee.mjs +1 -1
- package/es/tx/builder/field-types/name-fee.mjs.map +1 -1
- package/es/tx/builder/field-types/nonce.d.ts +1 -0
- package/es/tx/builder/field-types/nonce.mjs +2 -0
- package/es/tx/builder/field-types/nonce.mjs.map +1 -1
- package/es/tx/builder/field-types/pointers.mjs +4 -7
- package/es/tx/builder/field-types/pointers.mjs.map +1 -1
- package/es/tx/builder/field-types/pointers2.d.ts +23 -0
- package/es/tx/builder/field-types/pointers2.mjs +65 -0
- package/es/tx/builder/field-types/pointers2.mjs.map +1 -0
- package/es/tx/builder/field-types/query-fee.d.ts +19 -0
- package/es/tx/builder/field-types/query-fee.mjs +20 -0
- package/es/tx/builder/field-types/query-fee.mjs.map +1 -0
- package/es/tx/builder/field-types/ttl.d.ts +9 -1
- package/es/tx/builder/field-types/ttl.mjs +19 -8
- package/es/tx/builder/field-types/ttl.mjs.map +1 -1
- package/es/tx/builder/field-types/with-default.d.ts +7 -0
- package/es/tx/builder/field-types/with-default.mjs +9 -0
- package/es/tx/builder/field-types/with-default.mjs.map +1 -0
- package/es/tx/builder/field-types/with-formatting.d.ts +7 -0
- package/es/tx/builder/field-types/with-formatting.mjs +9 -0
- package/es/tx/builder/field-types/with-formatting.mjs.map +1 -0
- package/es/tx/builder/field-types/wrapped.mjs +6 -8
- package/es/tx/builder/field-types/wrapped.mjs.map +1 -1
- package/es/tx/builder/helpers.d.ts +2 -2
- package/es/tx/builder/helpers.mjs +12 -21
- package/es/tx/builder/helpers.mjs.map +1 -1
- package/es/tx/builder/index.d.ts +17 -10
- package/es/tx/builder/index.mjs +39 -65
- package/es/tx/builder/index.mjs.map +1 -1
- package/es/tx/builder/schema.d.ts +478 -257
- package/es/tx/builder/schema.generated.d.ts +39 -3
- package/es/tx/builder/schema.generated.mjs.map +1 -1
- package/es/tx/builder/schema.mjs +48 -36
- package/es/tx/builder/schema.mjs.map +1 -1
- package/es/tx/execution-cost.d.ts +6 -5
- package/es/tx/execution-cost.mjs +16 -17
- package/es/tx/execution-cost.mjs.map +1 -1
- package/es/tx/transaction-signer.mjs +1 -4
- package/es/tx/transaction-signer.mjs.map +1 -1
- package/es/tx/validator.mjs +61 -42
- package/es/tx/validator.mjs.map +1 -1
- package/es/utils/amount-formatter.mjs +15 -22
- package/es/utils/amount-formatter.mjs.map +1 -1
- package/es/utils/autorest.d.ts +2 -3
- package/es/utils/autorest.mjs +40 -24
- package/es/utils/autorest.mjs.map +1 -1
- package/es/utils/bytes.mjs +1 -2
- package/es/utils/bytes.mjs.map +1 -1
- package/es/utils/crypto.d.ts +8 -4
- package/es/utils/crypto.mjs +17 -13
- package/es/utils/crypto.mjs.map +1 -1
- package/es/utils/errors.d.ts +6 -0
- package/es/utils/errors.mjs +12 -6
- package/es/utils/errors.mjs.map +1 -1
- package/es/utils/hd-wallet.d.ts +2 -0
- package/es/utils/hd-wallet.mjs +6 -5
- package/es/utils/hd-wallet.mjs.map +1 -1
- package/es/utils/json-big.mjs +2 -10
- package/es/utils/json-big.mjs.map +1 -1
- package/es/utils/jwt.d.ts +53 -0
- package/es/utils/jwt.mjs +120 -0
- package/es/utils/jwt.mjs.map +1 -0
- package/es/utils/keystore.d.ts +6 -2
- package/es/utils/keystore.mjs +8 -16
- package/es/utils/keystore.mjs.map +1 -1
- package/es/utils/typed-data.mjs +1 -0
- package/es/utils/typed-data.mjs.map +1 -1
- package/es/utils/wrap-proxy.d.ts +2 -0
- package/es/utils/wrap-proxy.mjs +15 -0
- package/es/utils/wrap-proxy.mjs.map +1 -0
- package/package.json +57 -51
- package/src/AeSdk.ts +3 -0
- package/src/AeSdkAepp.ts +0 -1
- package/src/AeSdkBase.ts +97 -10
- package/src/AeSdkMethods.ts +37 -33
- package/src/AeSdkWallet.ts +22 -3
- package/src/Middleware.ts +16 -8
- package/src/MiddlewareSubscriber.ts +1 -1
- package/src/Node.ts +37 -18
- package/src/account/Base.ts +62 -3
- package/src/account/Generalized.ts +10 -0
- package/src/account/Ledger.ts +10 -0
- package/src/account/Memory.ts +83 -9
- package/src/account/Rpc.ts +69 -6
- package/src/aens.ts +35 -56
- package/src/aepp-wallet-communication/connection/BrowserRuntime.ts +3 -0
- package/src/aepp-wallet-communication/connection/BrowserWindowMessage.ts +2 -2
- package/src/aepp-wallet-communication/rpc/RpcClient.ts +4 -2
- package/src/aepp-wallet-communication/rpc/types.ts +13 -0
- package/src/aepp-wallet-communication/schema.ts +2 -0
- package/src/apis/compiler/compiler.ts +93 -93
- package/src/apis/compiler/models/index.ts +1 -0
- package/src/apis/compiler/models/mappers.ts +178 -165
- package/src/apis/compiler/models/parameters.ts +18 -18
- package/src/apis/middleware/middleware.ts +462 -341
- package/src/apis/middleware/models/index.ts +258 -56
- package/src/apis/middleware/models/mappers.ts +2357 -1919
- package/src/apis/middleware/models/parameters.ts +172 -142
- package/src/apis/node/models/index.ts +79 -2
- package/src/apis/node/models/mappers.ts +1529 -1302
- package/src/apis/node/models/parameters.ts +51 -51
- package/src/apis/node/node.ts +420 -275
- package/src/chain.ts +42 -128
- package/src/channel/Base.ts +14 -47
- package/src/channel/Contract.ts +18 -26
- package/src/channel/Spend.ts +0 -8
- package/src/channel/internal.ts +115 -13
- package/src/contract/Contract.ts +26 -8
- package/src/contract/compiler/Base.ts +15 -8
- package/src/contract/compiler/Cli.ts +37 -21
- package/src/contract/compiler/Cli8.ts +17 -0
- package/src/contract/compiler/Http.ts +24 -14
- package/src/contract/compiler/HttpNode.ts +2 -2
- package/src/contract/delegation-signature.ts +11 -5
- package/src/contract/ga.ts +4 -3
- package/src/deprecated.ts +36 -0
- package/src/index-browser.ts +14 -7
- package/src/index.ts +1 -0
- package/src/oracle.ts +11 -54
- package/src/send-transaction.ts +136 -0
- package/src/spend.ts +25 -11
- package/src/tx/builder/common.ts +74 -0
- package/src/tx/builder/constants.ts +6 -9
- package/src/tx/builder/delegation/index.ts +28 -0
- package/src/tx/builder/delegation/schema.generated.ts +143 -0
- package/src/tx/builder/delegation/schema.ts +61 -0
- package/src/tx/builder/field-types/coin-amount.ts +3 -2
- package/src/tx/builder/field-types/entry.ts +1 -4
- package/src/tx/builder/field-types/fee.ts +71 -43
- package/src/tx/builder/field-types/gas-limit.ts +4 -4
- package/src/tx/builder/field-types/gas-price.ts +58 -2
- package/src/tx/builder/field-types/index.ts +31 -59
- package/src/tx/builder/field-types/name-fee.ts +1 -1
- package/src/tx/builder/field-types/nonce.ts +7 -1
- package/src/tx/builder/field-types/pointers2.ts +62 -0
- package/src/tx/builder/field-types/query-fee.ts +25 -0
- package/src/tx/builder/field-types/ttl.ts +13 -3
- package/src/tx/builder/field-types/with-default.ts +18 -0
- package/src/tx/builder/field-types/with-formatting.ts +18 -0
- package/src/tx/builder/helpers.ts +2 -2
- package/src/tx/builder/index.ts +42 -59
- package/src/tx/builder/schema.generated.ts +39 -3
- package/src/tx/builder/schema.ts +55 -29
- package/src/tx/execution-cost.ts +6 -5
- package/src/tx/validator.ts +31 -5
- package/src/utils/autorest.ts +36 -27
- package/src/utils/crypto.ts +23 -13
- package/src/utils/errors.ts +10 -0
- package/src/utils/hd-wallet.ts +2 -0
- package/src/utils/jwt.ts +126 -0
- package/src/utils/keystore.ts +6 -2
- package/src/utils/wrap-proxy.ts +24 -0
- package/types-legacy/ts4.2/AeSdk.d.ts +3 -0
- package/types-legacy/ts4.2/AeSdkAepp.d.ts +0 -1
- package/types-legacy/ts4.2/AeSdkBase.d.ts +61 -6
- package/types-legacy/ts4.2/AeSdkMethods.d.ts +19 -7
- package/types-legacy/ts4.2/Node.d.ts +14 -1
- package/types-legacy/ts4.2/account/Base.d.ts +39 -3
- package/types-legacy/ts4.2/account/Generalized.d.ts +2 -0
- package/types-legacy/ts4.2/account/Ledger.d.ts +2 -0
- package/types-legacy/ts4.2/account/Memory.d.ts +15 -4
- package/types-legacy/ts4.2/account/Rpc.d.ts +16 -5
- package/types-legacy/ts4.2/aens.d.ts +17 -44
- package/types-legacy/ts4.2/aepp-wallet-communication/connection/BrowserRuntime.d.ts +3 -0
- package/types-legacy/ts4.2/aepp-wallet-communication/rpc/types.d.ts +14 -0
- package/types-legacy/ts4.2/aepp-wallet-communication/schema.d.ts +2 -0
- package/types-legacy/ts4.2/apis/compiler/models/index.d.ts +1 -0
- package/types-legacy/ts4.2/apis/middleware/middleware.d.ts +23 -5
- package/types-legacy/ts4.2/apis/middleware/models/index.d.ts +164 -15
- package/types-legacy/ts4.2/apis/middleware/models/mappers.d.ts +8 -1
- package/types-legacy/ts4.2/apis/middleware/models/parameters.d.ts +6 -3
- package/types-legacy/ts4.2/apis/node/models/index.d.ts +66 -2
- package/types-legacy/ts4.2/apis/node/models/mappers.d.ts +5 -1
- package/types-legacy/ts4.2/apis/node/models/parameters.d.ts +2 -2
- package/types-legacy/ts4.2/apis/node/node.d.ts +24 -3
- package/types-legacy/ts4.2/chain.d.ts +14 -44
- package/types-legacy/ts4.2/channel/Base.d.ts +3 -47
- package/types-legacy/ts4.2/channel/Contract.d.ts +16 -25
- package/types-legacy/ts4.2/channel/Spend.d.ts +0 -8
- package/types-legacy/ts4.2/channel/internal.d.ts +104 -5
- package/types-legacy/ts4.2/contract/Contract.d.ts +9 -1
- package/types-legacy/ts4.2/contract/compiler/Base.d.ts +14 -8
- package/types-legacy/ts4.2/contract/compiler/Cli.d.ts +5 -9
- package/types-legacy/ts4.2/contract/compiler/Cli8.d.ts +13 -0
- package/types-legacy/ts4.2/contract/compiler/Http.d.ts +3 -9
- package/types-legacy/ts4.2/contract/compiler/HttpNode.d.ts +2 -5
- package/types-legacy/ts4.2/contract/delegation-signature.d.ts +2 -1
- package/types-legacy/ts4.2/contract/ga.d.ts +1 -2
- package/types-legacy/ts4.2/deprecated.d.ts +38 -0
- package/types-legacy/ts4.2/index-browser.d.ts +10 -5
- package/types-legacy/ts4.2/index.d.ts +1 -0
- package/types-legacy/ts4.2/oracle.d.ts +6 -37
- package/types-legacy/ts4.2/send-transaction.d.ts +53 -0
- package/types-legacy/ts4.2/spend.d.ts +4 -3
- package/types-legacy/ts4.2/tx/builder/common.d.ts +32 -0
- package/types-legacy/ts4.2/tx/builder/constants.d.ts +4 -4
- package/types-legacy/ts4.2/tx/builder/delegation/index.d.ts +20 -0
- package/types-legacy/ts4.2/tx/builder/delegation/schema.d.ts +136 -0
- package/types-legacy/ts4.2/tx/builder/delegation/schema.generated.d.ts +141 -0
- package/types-legacy/ts4.2/tx/builder/field-types/coin-amount.d.ts +2 -2
- package/types-legacy/ts4.2/tx/builder/field-types/fee.d.ts +19 -11
- package/types-legacy/ts4.2/tx/builder/field-types/gas-price.d.ts +10 -2
- package/types-legacy/ts4.2/tx/builder/field-types/index.d.ts +31 -29
- package/types-legacy/ts4.2/tx/builder/field-types/name-fee.d.ts +1 -1
- package/types-legacy/ts4.2/tx/builder/field-types/nonce.d.ts +1 -0
- package/types-legacy/ts4.2/tx/builder/field-types/pointers2.d.ts +26 -0
- package/types-legacy/ts4.2/tx/builder/field-types/query-fee.d.ts +19 -0
- package/types-legacy/ts4.2/tx/builder/field-types/ttl.d.ts +9 -1
- package/types-legacy/ts4.2/tx/builder/field-types/with-default.d.ts +7 -0
- package/types-legacy/ts4.2/tx/builder/field-types/with-formatting.d.ts +7 -0
- package/types-legacy/ts4.2/tx/builder/helpers.d.ts +2 -2
- package/types-legacy/ts4.2/tx/builder/index.d.ts +17 -10
- package/types-legacy/ts4.2/tx/builder/schema.d.ts +482 -257
- package/types-legacy/ts4.2/tx/builder/schema.generated.d.ts +39 -3
- package/types-legacy/ts4.2/tx/execution-cost.d.ts +6 -5
- package/types-legacy/ts4.2/utils/autorest.d.ts +2 -3
- package/types-legacy/ts4.2/utils/crypto.d.ts +8 -4
- package/types-legacy/ts4.2/utils/errors.d.ts +6 -0
- package/types-legacy/ts4.2/utils/hd-wallet.d.ts +2 -0
- package/types-legacy/ts4.2/utils/jwt.d.ts +53 -0
- package/types-legacy/ts4.2/utils/keystore.d.ts +6 -2
- package/types-legacy/ts4.2/utils/wrap-proxy.d.ts +2 -0
- package/types-legacy/ts4.5/AeSdk.d.ts +3 -0
- package/types-legacy/ts4.5/AeSdkAepp.d.ts +0 -1
- package/types-legacy/ts4.5/AeSdkBase.d.ts +61 -6
- package/types-legacy/ts4.5/AeSdkMethods.d.ts +19 -7
- package/types-legacy/ts4.5/Node.d.ts +14 -1
- package/types-legacy/ts4.5/account/Base.d.ts +39 -3
- package/types-legacy/ts4.5/account/Generalized.d.ts +2 -0
- package/types-legacy/ts4.5/account/Ledger.d.ts +2 -0
- package/types-legacy/ts4.5/account/Memory.d.ts +15 -4
- package/types-legacy/ts4.5/account/Rpc.d.ts +16 -5
- package/types-legacy/ts4.5/aens.d.ts +17 -44
- package/types-legacy/ts4.5/aepp-wallet-communication/connection/BrowserRuntime.d.ts +3 -0
- package/types-legacy/ts4.5/aepp-wallet-communication/rpc/types.d.ts +14 -0
- package/types-legacy/ts4.5/aepp-wallet-communication/schema.d.ts +2 -0
- package/types-legacy/ts4.5/apis/compiler/models/index.d.ts +1 -0
- package/types-legacy/ts4.5/apis/middleware/middleware.d.ts +23 -5
- package/types-legacy/ts4.5/apis/middleware/models/index.d.ts +164 -15
- package/types-legacy/ts4.5/apis/middleware/models/mappers.d.ts +8 -1
- package/types-legacy/ts4.5/apis/middleware/models/parameters.d.ts +6 -3
- package/types-legacy/ts4.5/apis/node/models/index.d.ts +66 -2
- package/types-legacy/ts4.5/apis/node/models/mappers.d.ts +5 -1
- package/types-legacy/ts4.5/apis/node/models/parameters.d.ts +2 -2
- package/types-legacy/ts4.5/apis/node/node.d.ts +24 -3
- package/types-legacy/ts4.5/chain.d.ts +14 -44
- package/types-legacy/ts4.5/channel/Base.d.ts +3 -47
- package/types-legacy/ts4.5/channel/Contract.d.ts +16 -25
- package/types-legacy/ts4.5/channel/Spend.d.ts +0 -8
- package/types-legacy/ts4.5/channel/internal.d.ts +104 -5
- package/types-legacy/ts4.5/contract/Contract.d.ts +9 -1
- package/types-legacy/ts4.5/contract/compiler/Base.d.ts +14 -8
- package/types-legacy/ts4.5/contract/compiler/Cli.d.ts +5 -9
- package/types-legacy/ts4.5/contract/compiler/Cli8.d.ts +13 -0
- package/types-legacy/ts4.5/contract/compiler/Http.d.ts +3 -9
- package/types-legacy/ts4.5/contract/compiler/HttpNode.d.ts +2 -5
- package/types-legacy/ts4.5/contract/delegation-signature.d.ts +2 -1
- package/types-legacy/ts4.5/contract/ga.d.ts +1 -2
- package/types-legacy/ts4.5/deprecated.d.ts +38 -0
- package/types-legacy/ts4.5/index-browser.d.ts +10 -5
- package/types-legacy/ts4.5/index.d.ts +1 -0
- package/types-legacy/ts4.5/oracle.d.ts +6 -37
- package/types-legacy/ts4.5/send-transaction.d.ts +53 -0
- package/types-legacy/ts4.5/spend.d.ts +4 -3
- package/types-legacy/ts4.5/tx/builder/common.d.ts +32 -0
- package/types-legacy/ts4.5/tx/builder/constants.d.ts +4 -4
- package/types-legacy/ts4.5/tx/builder/delegation/index.d.ts +20 -0
- package/types-legacy/ts4.5/tx/builder/delegation/schema.d.ts +136 -0
- package/types-legacy/ts4.5/tx/builder/delegation/schema.generated.d.ts +141 -0
- package/types-legacy/ts4.5/tx/builder/field-types/coin-amount.d.ts +2 -2
- package/types-legacy/ts4.5/tx/builder/field-types/fee.d.ts +19 -11
- package/types-legacy/ts4.5/tx/builder/field-types/gas-price.d.ts +10 -2
- package/types-legacy/ts4.5/tx/builder/field-types/index.d.ts +31 -29
- package/types-legacy/ts4.5/tx/builder/field-types/name-fee.d.ts +1 -1
- package/types-legacy/ts4.5/tx/builder/field-types/nonce.d.ts +1 -0
- package/types-legacy/ts4.5/tx/builder/field-types/pointers2.d.ts +26 -0
- package/types-legacy/ts4.5/tx/builder/field-types/query-fee.d.ts +19 -0
- package/types-legacy/ts4.5/tx/builder/field-types/ttl.d.ts +9 -1
- package/types-legacy/ts4.5/tx/builder/field-types/with-default.d.ts +7 -0
- package/types-legacy/ts4.5/tx/builder/field-types/with-formatting.d.ts +7 -0
- package/types-legacy/ts4.5/tx/builder/helpers.d.ts +2 -2
- package/types-legacy/ts4.5/tx/builder/index.d.ts +17 -10
- package/types-legacy/ts4.5/tx/builder/schema.d.ts +482 -257
- package/types-legacy/ts4.5/tx/builder/schema.generated.d.ts +39 -3
- package/types-legacy/ts4.5/tx/execution-cost.d.ts +6 -5
- package/types-legacy/ts4.5/utils/autorest.d.ts +2 -3
- package/types-legacy/ts4.5/utils/crypto.d.ts +8 -4
- package/types-legacy/ts4.5/utils/errors.d.ts +6 -0
- package/types-legacy/ts4.5/utils/hd-wallet.d.ts +2 -0
- package/types-legacy/ts4.5/utils/jwt.d.ts +53 -0
- package/types-legacy/ts4.5/utils/keystore.d.ts +6 -2
- package/types-legacy/ts4.5/utils/wrap-proxy.d.ts +2 -0
- package/es/tx/builder/field-types/deposit.d.ts +0 -15
- package/es/tx/builder/field-types/deposit.mjs +0 -18
- package/es/tx/builder/field-types/deposit.mjs.map +0 -1
- package/src/tx/builder/field-types/deposit.ts +0 -23
- package/types-legacy/ts4.2/tx/builder/field-types/deposit.d.ts +0 -15
- package/types-legacy/ts4.5/tx/builder/field-types/deposit.d.ts +0 -15
|
@@ -33,6 +33,7 @@ export declare const Paths1Csrt0IV2ContractsCallsGetResponses200ContentApplicati
|
|
|
33
33
|
export declare const ContractCall: coreClient.CompositeMapper;
|
|
34
34
|
export declare const Paths9Ya94MV2ContractsLogsGetResponses200ContentApplicationJsonSchemaAllof0: coreClient.CompositeMapper;
|
|
35
35
|
export declare const ContractLog: coreClient.CompositeMapper;
|
|
36
|
+
export declare const Contract: coreClient.CompositeMapper;
|
|
36
37
|
export declare const PathsRzn6HzV2DeltastatsGetResponses200ContentApplicationJsonSchemaAllof0: coreClient.CompositeMapper;
|
|
37
38
|
export declare const DeltaStat: coreClient.CompositeMapper;
|
|
38
39
|
export declare const Paths10TrrshV2KeyBlocksGetResponses200ContentApplicationJsonSchemaAllof0: coreClient.CompositeMapper;
|
|
@@ -55,9 +56,13 @@ export declare const NameClaim: coreClient.CompositeMapper;
|
|
|
55
56
|
export declare const PathsDjelzuV2NamesIdPointeesGetResponses200ContentApplicationJsonSchema: coreClient.CompositeMapper;
|
|
56
57
|
export declare const NameTransfer: coreClient.CompositeMapper;
|
|
57
58
|
export declare const NameUpdate: coreClient.CompositeMapper;
|
|
59
|
+
export declare const PathsMherz6V2OraclesGetResponses200ContentApplicationJsonSchemaAllof0: coreClient.CompositeMapper;
|
|
58
60
|
export declare const Oracle: coreClient.CompositeMapper;
|
|
59
61
|
export declare const OracleExtendsItem: coreClient.CompositeMapper;
|
|
60
|
-
export declare const
|
|
62
|
+
export declare const Paths1LaqrzqV2OraclesIdQueriesGetResponses200ContentApplicationJsonSchemaAllof0: coreClient.CompositeMapper;
|
|
63
|
+
export declare const OracleQuery: coreClient.CompositeMapper;
|
|
64
|
+
export declare const OracleResponse: coreClient.CompositeMapper;
|
|
65
|
+
export declare const Paths3PnwziV2OraclesIdResponsesGetResponses200ContentApplicationJsonSchemaAllof0: coreClient.CompositeMapper;
|
|
61
66
|
export declare const Status: coreClient.CompositeMapper;
|
|
62
67
|
export declare const StatusMdwAsyncTasks: coreClient.CompositeMapper;
|
|
63
68
|
export declare const PathsDpxn99V2TotalstatsGetResponses200ContentApplicationJsonSchemaAllof0: coreClient.CompositeMapper;
|
|
@@ -94,6 +99,8 @@ export declare const PathsGuqvhdV2MicroBlocksHashTxsGetResponses200ContentApplic
|
|
|
94
99
|
export declare const PathsK9TkttV2NamesGetResponses200ContentApplicationJsonSchema: coreClient.CompositeMapper;
|
|
95
100
|
export declare const Paths3Msq0DV2NamesSearchGetResponses200ContentApplicationJsonSchema: coreClient.CompositeMapper;
|
|
96
101
|
export declare const PathsB0YvynV2OraclesGetResponses200ContentApplicationJsonSchema: coreClient.CompositeMapper;
|
|
102
|
+
export declare const Paths4Bbr8KV2OraclesIdQueriesGetResponses200ContentApplicationJsonSchema: coreClient.CompositeMapper;
|
|
103
|
+
export declare const Paths1Ky8Ew4V2OraclesIdResponsesGetResponses200ContentApplicationJsonSchema: coreClient.CompositeMapper;
|
|
97
104
|
export declare const Paths15PsutbV2TotalstatsGetResponses200ContentApplicationJsonSchema: coreClient.CompositeMapper;
|
|
98
105
|
export declare const PathsIgs9Z1V2TransfersGetResponses200ContentApplicationJsonSchema: coreClient.CompositeMapper;
|
|
99
106
|
export declare const PathsFclv4TV2TxsGetResponses200ContentApplicationJsonSchema: coreClient.CompositeMapper;
|
|
@@ -3,19 +3,22 @@ export declare const accept: OperationParameter;
|
|
|
3
3
|
export declare const $host: OperationURLParameter;
|
|
4
4
|
export declare const id: OperationURLParameter;
|
|
5
5
|
export declare const ownedOnly: OperationQueryParameter;
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const typeParam: OperationQueryParameter;
|
|
7
7
|
export declare const limit: OperationQueryParameter;
|
|
8
8
|
export declare const scope: OperationQueryParameter;
|
|
9
9
|
export declare const direction: OperationQueryParameter;
|
|
10
10
|
export declare const by: OperationQueryParameter;
|
|
11
11
|
export declare const prefix: OperationQueryParameter;
|
|
12
12
|
export declare const accountId: OperationURLParameter;
|
|
13
|
+
export declare const contract: OperationQueryParameter;
|
|
13
14
|
export declare const contractId: OperationURLParameter;
|
|
14
15
|
export declare const tokenId: OperationURLParameter;
|
|
15
16
|
export declare const templateId: OperationURLParameter;
|
|
17
|
+
export declare const by1: OperationQueryParameter;
|
|
16
18
|
export declare const accountId1: OperationURLParameter;
|
|
17
19
|
export declare const sender: OperationURLParameter;
|
|
18
20
|
export declare const recipient: OperationURLParameter;
|
|
21
|
+
export declare const by2: OperationQueryParameter;
|
|
19
22
|
export declare const hash: OperationQueryParameter;
|
|
20
23
|
export declare const hashOrKbi: OperationURLParameter;
|
|
21
24
|
export declare const kbi: OperationURLParameter;
|
|
@@ -23,16 +26,16 @@ export declare const mbi: OperationURLParameter;
|
|
|
23
26
|
export declare const state: OperationQueryParameter;
|
|
24
27
|
export declare const contractId1: OperationQueryParameter;
|
|
25
28
|
export declare const event: OperationQueryParameter;
|
|
29
|
+
export declare const functionParam: OperationQueryParameter;
|
|
26
30
|
export declare const functionPrefix: OperationQueryParameter;
|
|
27
31
|
export declare const data: OperationQueryParameter;
|
|
28
32
|
export declare const aexnArgs: OperationQueryParameter;
|
|
29
33
|
export declare const hash1: OperationURLParameter;
|
|
30
34
|
export declare const ownedBy: OperationQueryParameter;
|
|
31
35
|
export declare const state1: OperationQueryParameter;
|
|
32
|
-
export declare const
|
|
36
|
+
export declare const typeParam1: OperationQueryParameter;
|
|
33
37
|
export declare const typeGroup: OperationQueryParameter;
|
|
34
38
|
export declare const account: OperationQueryParameter;
|
|
35
|
-
export declare const contract: OperationQueryParameter;
|
|
36
39
|
export declare const channel: OperationQueryParameter;
|
|
37
40
|
export declare const oracle: OperationQueryParameter;
|
|
38
41
|
export declare const senderId: OperationQueryParameter;
|
|
@@ -31,6 +31,7 @@ export interface Header {
|
|
|
31
31
|
}
|
|
32
32
|
export interface ErrorModel {
|
|
33
33
|
reason: string;
|
|
34
|
+
errorCode?: string;
|
|
34
35
|
}
|
|
35
36
|
export interface KeyBlock {
|
|
36
37
|
/** Base58Check encoded tagged hash */
|
|
@@ -90,13 +91,13 @@ export interface SignedTx {
|
|
|
90
91
|
blockHash: string;
|
|
91
92
|
/** Base58Check encoded tagged hash */
|
|
92
93
|
hash: string;
|
|
94
|
+
/** Base64Check encoded tagged byte array */
|
|
95
|
+
encodedTx?: string;
|
|
93
96
|
/** At least one signature is required unless for Generalized Account Meta transactions */
|
|
94
97
|
signatures: string[];
|
|
95
98
|
}
|
|
96
99
|
/** A mix of all transaction types. */
|
|
97
100
|
export interface Tx {
|
|
98
|
-
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
99
|
-
type: "Tx";
|
|
100
101
|
/** Base58Check encoded tagged pubkey */
|
|
101
102
|
recipientId?: string;
|
|
102
103
|
amount?: string;
|
|
@@ -183,6 +184,7 @@ export interface Tx {
|
|
|
183
184
|
/** Base58Check encoded tagged pubkey */
|
|
184
185
|
payerId?: string;
|
|
185
186
|
version: string;
|
|
187
|
+
type: TxType;
|
|
186
188
|
}
|
|
187
189
|
export interface Delegates {
|
|
188
190
|
initiator?: string[];
|
|
@@ -246,6 +248,8 @@ export interface DryRunAccount {
|
|
|
246
248
|
export interface DryRunInputItem {
|
|
247
249
|
/** Base64Check encoded tagged byte array */
|
|
248
250
|
tx?: string;
|
|
251
|
+
/** Base58Check encoded tagged hash */
|
|
252
|
+
txHash?: string;
|
|
249
253
|
callReq?: DryRunCallReq;
|
|
250
254
|
}
|
|
251
255
|
export interface DryRunCallReq {
|
|
@@ -374,6 +378,15 @@ export interface OracleQuery {
|
|
|
374
378
|
responseTtl: Ttl;
|
|
375
379
|
fee: string;
|
|
376
380
|
}
|
|
381
|
+
export interface AuctionEntry {
|
|
382
|
+
/** Base58Check encoded tagged value */
|
|
383
|
+
id: string;
|
|
384
|
+
startedAt?: string;
|
|
385
|
+
endsAt: string;
|
|
386
|
+
/** Base58Check encoded tagged pubkey */
|
|
387
|
+
highestBidder: string;
|
|
388
|
+
highestBid: string;
|
|
389
|
+
}
|
|
377
390
|
export interface NameEntry {
|
|
378
391
|
/** Base58Check encoded tagged value */
|
|
379
392
|
id: string;
|
|
@@ -405,13 +418,21 @@ export interface PeerPubKey {
|
|
|
405
418
|
/** Base58Check encoded tagged pubkey */
|
|
406
419
|
pubkey: string;
|
|
407
420
|
}
|
|
421
|
+
export interface SyncStatus {
|
|
422
|
+
progress: number;
|
|
423
|
+
target: string;
|
|
424
|
+
speed: number;
|
|
425
|
+
estimate: string;
|
|
426
|
+
}
|
|
408
427
|
export interface Status {
|
|
409
428
|
/** Base58Check encoded tagged hash */
|
|
410
429
|
genesisKeyBlockHash: string;
|
|
411
430
|
solutions: string;
|
|
412
431
|
difficulty: string;
|
|
432
|
+
hashrate: string;
|
|
413
433
|
syncing: boolean;
|
|
414
434
|
syncProgress?: number;
|
|
435
|
+
uptime: string;
|
|
415
436
|
listening: boolean;
|
|
416
437
|
protocols: Protocol[];
|
|
417
438
|
nodeVersion: string;
|
|
@@ -434,6 +455,29 @@ export interface PeerConnections {
|
|
|
434
455
|
inbound: string;
|
|
435
456
|
outbound: string;
|
|
436
457
|
}
|
|
458
|
+
export interface Currency {
|
|
459
|
+
name: string;
|
|
460
|
+
symbol: string;
|
|
461
|
+
subunit: string;
|
|
462
|
+
subunitsPerUnit: string;
|
|
463
|
+
fiatConverstionUrl?: string;
|
|
464
|
+
logo?: Image;
|
|
465
|
+
primaryColour: string;
|
|
466
|
+
secondaryColour: string;
|
|
467
|
+
networkName: string;
|
|
468
|
+
}
|
|
469
|
+
export interface Image {
|
|
470
|
+
type?: string;
|
|
471
|
+
data?: string;
|
|
472
|
+
}
|
|
473
|
+
export interface GasPricesItem {
|
|
474
|
+
/** Minimum gas price in the block range */
|
|
475
|
+
minGasPrice: string;
|
|
476
|
+
/** Percent of available gas used */
|
|
477
|
+
utilization: string;
|
|
478
|
+
/** Number of minutes from the top */
|
|
479
|
+
minutes: string;
|
|
480
|
+
}
|
|
437
481
|
export interface SpendTx {
|
|
438
482
|
/** Base58Check encoded tagged pubkey */
|
|
439
483
|
recipientId: string;
|
|
@@ -1029,6 +1073,11 @@ export interface GetOracleQueryByPubkeyAndQueryIdOptionalParams extends coreClie
|
|
|
1029
1073
|
/** Contains response data for the getOracleQueryByPubkeyAndQueryId operation. */
|
|
1030
1074
|
export type GetOracleQueryByPubkeyAndQueryIdResponse = OracleQuery;
|
|
1031
1075
|
/** Optional parameters. */
|
|
1076
|
+
export interface GetAuctionEntryByNameOptionalParams extends coreClient.OperationOptions {
|
|
1077
|
+
}
|
|
1078
|
+
/** Contains response data for the getAuctionEntryByName operation. */
|
|
1079
|
+
export type GetAuctionEntryByNameResponse = AuctionEntry;
|
|
1080
|
+
/** Optional parameters. */
|
|
1032
1081
|
export interface GetNameEntryByNameOptionalParams extends coreClient.OperationOptions {
|
|
1033
1082
|
}
|
|
1034
1083
|
/** Contains response data for the getNameEntryByName operation. */
|
|
@@ -1044,6 +1093,11 @@ export interface GetPeerPubkeyOptionalParams extends coreClient.OperationOptions
|
|
|
1044
1093
|
/** Contains response data for the getPeerPubkey operation. */
|
|
1045
1094
|
export type GetPeerPubkeyResponse = PeerPubKey;
|
|
1046
1095
|
/** Optional parameters. */
|
|
1096
|
+
export interface GetSyncStatusOptionalParams extends coreClient.OperationOptions {
|
|
1097
|
+
}
|
|
1098
|
+
/** Contains response data for the getSyncStatus operation. */
|
|
1099
|
+
export type GetSyncStatusResponse = SyncStatus;
|
|
1100
|
+
/** Optional parameters. */
|
|
1047
1101
|
export interface GetStatusOptionalParams extends coreClient.OperationOptions {
|
|
1048
1102
|
}
|
|
1049
1103
|
/** Contains response data for the getStatus operation. */
|
|
@@ -1057,6 +1111,16 @@ export type GetChainEndsResponse = {
|
|
|
1057
1111
|
body: string[];
|
|
1058
1112
|
};
|
|
1059
1113
|
/** Optional parameters. */
|
|
1114
|
+
export interface GetCurrencyOptionalParams extends coreClient.OperationOptions {
|
|
1115
|
+
}
|
|
1116
|
+
/** Contains response data for the getCurrency operation. */
|
|
1117
|
+
export type GetCurrencyResponse = Currency;
|
|
1118
|
+
/** Optional parameters. */
|
|
1119
|
+
export interface GetRecentGasPricesOptionalParams extends coreClient.OperationOptions {
|
|
1120
|
+
}
|
|
1121
|
+
/** Contains response data for the getRecentGasPrices operation. */
|
|
1122
|
+
export type GetRecentGasPricesResponse = GasPricesItem[];
|
|
1123
|
+
/** Optional parameters. */
|
|
1060
1124
|
export interface NodeOptionalParams extends coreClient.ServiceClientOptions {
|
|
1061
1125
|
/** If this flag is set to true, the response will have all integers set as strings */
|
|
1062
1126
|
intAsString?: boolean;
|
|
@@ -36,12 +36,17 @@ export declare const PoI: coreClient.CompositeMapper;
|
|
|
36
36
|
export declare const RegisteredOracle: coreClient.CompositeMapper;
|
|
37
37
|
export declare const OracleQueries: coreClient.CompositeMapper;
|
|
38
38
|
export declare const OracleQuery: coreClient.CompositeMapper;
|
|
39
|
+
export declare const AuctionEntry: coreClient.CompositeMapper;
|
|
39
40
|
export declare const NameEntry: coreClient.CompositeMapper;
|
|
40
41
|
export declare const Channel: coreClient.CompositeMapper;
|
|
41
42
|
export declare const PeerPubKey: coreClient.CompositeMapper;
|
|
43
|
+
export declare const SyncStatus: coreClient.CompositeMapper;
|
|
42
44
|
export declare const Status: coreClient.CompositeMapper;
|
|
43
45
|
export declare const Protocol: coreClient.CompositeMapper;
|
|
44
46
|
export declare const PeerConnections: coreClient.CompositeMapper;
|
|
47
|
+
export declare const Currency: coreClient.CompositeMapper;
|
|
48
|
+
export declare const Image: coreClient.CompositeMapper;
|
|
49
|
+
export declare const GasPricesItem: coreClient.CompositeMapper;
|
|
45
50
|
export declare const SpendTx: coreClient.CompositeMapper;
|
|
46
51
|
export declare const OracleRegisterTx: coreClient.CompositeMapper;
|
|
47
52
|
export declare const OracleExtendTx: coreClient.CompositeMapper;
|
|
@@ -85,7 +90,6 @@ export declare const OffChainNewContract: coreClient.CompositeMapper;
|
|
|
85
90
|
export declare const OffChainCallContract: coreClient.CompositeMapper;
|
|
86
91
|
export declare const CreateContractUnsignedTx: coreClient.CompositeMapper;
|
|
87
92
|
export declare let discriminators: {
|
|
88
|
-
"Tx.Tx": coreClient.CompositeMapper;
|
|
89
93
|
OffChainUpdate: coreClient.CompositeMapper;
|
|
90
94
|
"OffChainUpdate.OffChainTransfer": coreClient.CompositeMapper;
|
|
91
95
|
"OffChainUpdate.OffChainWithdrawal": coreClient.CompositeMapper;
|
|
@@ -10,8 +10,8 @@ export declare const strategy: OperationQueryParameter;
|
|
|
10
10
|
export declare const contentType: OperationParameter;
|
|
11
11
|
export declare const body: OperationParameter;
|
|
12
12
|
export declare const body1: OperationParameter;
|
|
13
|
-
export declare const
|
|
13
|
+
export declare const fromParam: OperationQueryParameter;
|
|
14
14
|
export declare const limit: OperationQueryParameter;
|
|
15
|
-
export declare const
|
|
15
|
+
export declare const typeParam: OperationQueryParameter;
|
|
16
16
|
export declare const queryId: OperationURLParameter;
|
|
17
17
|
export declare const name: OperationURLParameter;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as coreClient from "@azure/core-client";
|
|
2
|
-
import { NodeOptionalParams, GetTopHeaderOptionalParams, GetTopHeaderResponse, GetCurrentKeyBlockOptionalParams, GetCurrentKeyBlockResponse, GetCurrentKeyBlockHashOptionalParams, GetCurrentKeyBlockHashResponse, GetCurrentKeyBlockHeightOptionalParams, GetCurrentKeyBlockHeightResponse, GetPendingKeyBlockOptionalParams, GetPendingKeyBlockResponse, GetKeyBlockByHashOptionalParams, GetKeyBlockByHashResponse, GetKeyBlockByHeightOptionalParams, GetKeyBlockByHeightResponse, GetMicroBlockHeaderByHashOptionalParams, GetMicroBlockHeaderByHashResponse, GetMicroBlockTransactionsByHashOptionalParams, GetMicroBlockTransactionsByHashResponse, GetMicroBlockTransactionByHashAndIndexOptionalParams, GetMicroBlockTransactionByHashAndIndexResponse, GetMicroBlockTransactionsCountByHashOptionalParams, GetMicroBlockTransactionsCountByHashResponse, GetCurrentGenerationOptionalParams, GetCurrentGenerationResponse, GetGenerationByHashOptionalParams, GetGenerationByHashResponse, GetGenerationByHeightOptionalParams, GetGenerationByHeightResponse, GetAccountByPubkeyOptionalParams, GetAccountByPubkeyResponse, GetAccountByPubkeyAndHeightOptionalParams, GetAccountByPubkeyAndHeightResponse, GetAccountByPubkeyAndHashOptionalParams, GetAccountByPubkeyAndHashResponse, GetPendingAccountTransactionsByPubkeyOptionalParams, GetPendingAccountTransactionsByPubkeyResponse, GetAccountNextNonceOptionalParams, GetAccountNextNonceResponse, DryRunInput, ProtectedDryRunTxsOptionalParams, ProtectedDryRunTxsResponse, GetTransactionByHashOptionalParams, GetTransactionByHashResponse, GetTransactionInfoByHashOptionalParams, GetTransactionInfoByHashResponse, EncodedTx, PostTransactionOptionalParams, PostTransactionResponse, GetContractOptionalParams, GetContractResponse, GetContractCodeOptionalParams, GetContractCodeResponse, GetContractPoIOptionalParams, GetContractPoIResponse, GetOracleByPubkeyOptionalParams, GetOracleByPubkeyResponse, GetOracleQueriesByPubkeyOptionalParams, GetOracleQueriesByPubkeyResponse, GetOracleQueryByPubkeyAndQueryIdOptionalParams, GetOracleQueryByPubkeyAndQueryIdResponse, GetNameEntryByNameOptionalParams, GetNameEntryByNameResponse, GetChannelByPubkeyOptionalParams, GetChannelByPubkeyResponse, GetPeerPubkeyOptionalParams, GetPeerPubkeyResponse, GetStatusOptionalParams, GetStatusResponse, GetChainEndsOptionalParams, GetChainEndsResponse } from "./models";
|
|
2
|
+
import { NodeOptionalParams, GetTopHeaderOptionalParams, GetTopHeaderResponse, GetCurrentKeyBlockOptionalParams, GetCurrentKeyBlockResponse, GetCurrentKeyBlockHashOptionalParams, GetCurrentKeyBlockHashResponse, GetCurrentKeyBlockHeightOptionalParams, GetCurrentKeyBlockHeightResponse, GetPendingKeyBlockOptionalParams, GetPendingKeyBlockResponse, GetKeyBlockByHashOptionalParams, GetKeyBlockByHashResponse, GetKeyBlockByHeightOptionalParams, GetKeyBlockByHeightResponse, GetMicroBlockHeaderByHashOptionalParams, GetMicroBlockHeaderByHashResponse, GetMicroBlockTransactionsByHashOptionalParams, GetMicroBlockTransactionsByHashResponse, GetMicroBlockTransactionByHashAndIndexOptionalParams, GetMicroBlockTransactionByHashAndIndexResponse, GetMicroBlockTransactionsCountByHashOptionalParams, GetMicroBlockTransactionsCountByHashResponse, GetCurrentGenerationOptionalParams, GetCurrentGenerationResponse, GetGenerationByHashOptionalParams, GetGenerationByHashResponse, GetGenerationByHeightOptionalParams, GetGenerationByHeightResponse, GetAccountByPubkeyOptionalParams, GetAccountByPubkeyResponse, GetAccountByPubkeyAndHeightOptionalParams, GetAccountByPubkeyAndHeightResponse, GetAccountByPubkeyAndHashOptionalParams, GetAccountByPubkeyAndHashResponse, GetPendingAccountTransactionsByPubkeyOptionalParams, GetPendingAccountTransactionsByPubkeyResponse, GetAccountNextNonceOptionalParams, GetAccountNextNonceResponse, DryRunInput, ProtectedDryRunTxsOptionalParams, ProtectedDryRunTxsResponse, GetTransactionByHashOptionalParams, GetTransactionByHashResponse, GetTransactionInfoByHashOptionalParams, GetTransactionInfoByHashResponse, EncodedTx, PostTransactionOptionalParams, PostTransactionResponse, GetContractOptionalParams, GetContractResponse, GetContractCodeOptionalParams, GetContractCodeResponse, GetContractPoIOptionalParams, GetContractPoIResponse, GetOracleByPubkeyOptionalParams, GetOracleByPubkeyResponse, GetOracleQueriesByPubkeyOptionalParams, GetOracleQueriesByPubkeyResponse, GetOracleQueryByPubkeyAndQueryIdOptionalParams, GetOracleQueryByPubkeyAndQueryIdResponse, GetAuctionEntryByNameOptionalParams, GetAuctionEntryByNameResponse, GetNameEntryByNameOptionalParams, GetNameEntryByNameResponse, GetChannelByPubkeyOptionalParams, GetChannelByPubkeyResponse, GetPeerPubkeyOptionalParams, GetPeerPubkeyResponse, GetSyncStatusOptionalParams, GetSyncStatusResponse, GetStatusOptionalParams, GetStatusResponse, GetChainEndsOptionalParams, GetChainEndsResponse, GetCurrencyOptionalParams, GetCurrencyResponse, GetRecentGasPricesOptionalParams, GetRecentGasPricesResponse } from "./models";
|
|
3
3
|
export declare class Node extends coreClient.ServiceClient {
|
|
4
4
|
$host: string;
|
|
5
5
|
intAsString?: boolean;
|
|
@@ -123,8 +123,8 @@ export declare class Node extends coreClient.ServiceClient {
|
|
|
123
123
|
*/
|
|
124
124
|
getAccountNextNonce(pubkey: string, options?: GetAccountNextNonceOptionalParams): Promise<GetAccountNextNonceResponse>;
|
|
125
125
|
/**
|
|
126
|
-
* Dry-run transactions on top of a given block. Supports all TXs except GAMetaTx, PayingForTx
|
|
127
|
-
* OffchainTx. The maximum gas limit of all calls is capped. The maximum gas limit per request is a
|
|
126
|
+
* Dry-run unsigned transactions on top of a given block. Supports all TXs except GAMetaTx, PayingForTx
|
|
127
|
+
* and OffchainTx. The maximum gas limit of all calls is capped. The maximum gas limit per request is a
|
|
128
128
|
* global node setting. Since DryRunCallReq object do not have a mandatory gas field, if not set a
|
|
129
129
|
* default value of 1000000 is being used instead.
|
|
130
130
|
* @param body transactions
|
|
@@ -185,6 +185,12 @@ export declare class Node extends coreClient.ServiceClient {
|
|
|
185
185
|
* @param options The options parameters.
|
|
186
186
|
*/
|
|
187
187
|
getOracleQueryByPubkeyAndQueryId(pubkey: string, queryId: string, options?: GetOracleQueryByPubkeyAndQueryIdOptionalParams): Promise<GetOracleQueryByPubkeyAndQueryIdResponse>;
|
|
188
|
+
/**
|
|
189
|
+
* Get auction entry from naming system
|
|
190
|
+
* @param name The name key of the name entry
|
|
191
|
+
* @param options The options parameters.
|
|
192
|
+
*/
|
|
193
|
+
getAuctionEntryByName(name: string, options?: GetAuctionEntryByNameOptionalParams): Promise<GetAuctionEntryByNameResponse>;
|
|
188
194
|
/**
|
|
189
195
|
* Get name entry from naming system
|
|
190
196
|
* @param name The name key of the name entry
|
|
@@ -202,6 +208,11 @@ export declare class Node extends coreClient.ServiceClient {
|
|
|
202
208
|
* @param options The options parameters.
|
|
203
209
|
*/
|
|
204
210
|
getPeerPubkey(options?: GetPeerPubkeyOptionalParams): Promise<GetPeerPubkeyResponse>;
|
|
211
|
+
/**
|
|
212
|
+
* Get the sync status of a node
|
|
213
|
+
* @param options The options parameters.
|
|
214
|
+
*/
|
|
215
|
+
getSyncStatus(options?: GetSyncStatusOptionalParams): Promise<GetSyncStatusResponse>;
|
|
205
216
|
/**
|
|
206
217
|
* Get the status of a node
|
|
207
218
|
* @param options The options parameters.
|
|
@@ -212,4 +223,14 @@ export declare class Node extends coreClient.ServiceClient {
|
|
|
212
223
|
* @param options The options parameters.
|
|
213
224
|
*/
|
|
214
225
|
getChainEnds(options?: GetChainEndsOptionalParams): Promise<GetChainEndsResponse>;
|
|
226
|
+
/**
|
|
227
|
+
* Get the currency metadata of a node
|
|
228
|
+
* @param options The options parameters.
|
|
229
|
+
*/
|
|
230
|
+
getCurrency(options?: GetCurrencyOptionalParams): Promise<GetCurrencyResponse>;
|
|
231
|
+
/**
|
|
232
|
+
* Get minimum gas prices in recent blocks
|
|
233
|
+
* @param options The options parameters.
|
|
234
|
+
*/
|
|
235
|
+
getRecentGasPrices(options?: GetRecentGasPricesOptionalParams): Promise<GetRecentGasPricesResponse>;
|
|
215
236
|
}
|
|
@@ -1,43 +1,40 @@
|
|
|
1
1
|
import { AE_AMOUNT_FORMATS } from './utils/amount-formatter';
|
|
2
|
-
import { ValidatorResult } from './tx/validator';
|
|
3
2
|
import { AensName } from './tx/builder/constants';
|
|
4
|
-
import { TransactionError } from './utils/errors';
|
|
5
3
|
import Node, { TransformNodeType } from './Node';
|
|
6
4
|
import { Account as AccountNode, ByteCode, ContractObject, DryRunResult, DryRunResults, Generation, KeyBlock, MicroBlockHeader, NameEntry, SignedTx } from './apis/node';
|
|
7
5
|
import { Encoded, Encoding } from './utils/encoder';
|
|
8
|
-
import AccountBase from './account/Base';
|
|
9
6
|
/**
|
|
10
7
|
* @category chain
|
|
8
|
+
* @param type - Type
|
|
9
|
+
* @param options - Options
|
|
11
10
|
*/
|
|
12
11
|
export declare function _getPollInterval(type: 'block' | 'microblock', // TODO: rename to 'key-block' | 'micro-block'
|
|
13
|
-
{ _expectedMineRate, _microBlockCycle
|
|
12
|
+
{ _expectedMineRate, _microBlockCycle }: {
|
|
14
13
|
_expectedMineRate?: number;
|
|
15
14
|
_microBlockCycle?: number;
|
|
16
|
-
_maxPollInterval?: number;
|
|
17
15
|
}): number;
|
|
18
|
-
/**
|
|
19
|
-
* @category exception
|
|
20
|
-
*/
|
|
21
|
-
export declare class InvalidTxError extends TransactionError {
|
|
22
|
-
validation: ValidatorResult[];
|
|
23
|
-
transaction: Encoded.Transaction;
|
|
24
|
-
constructor(message: string, validation: ValidatorResult[], transaction: Encoded.Transaction);
|
|
25
|
-
}
|
|
26
16
|
/**
|
|
27
17
|
* Obtain current height of the chain
|
|
28
18
|
* @category chain
|
|
19
|
+
* @param options - Options
|
|
20
|
+
* @param options.cached - Get height from the cache. The lag behind the actual height shouldn't
|
|
21
|
+
* be more than 1 block. Use if needed to reduce requests count, and approximate value can be used.
|
|
22
|
+
* For example, for timeout check in transaction status polling.
|
|
29
23
|
* @returns Current chain height
|
|
30
24
|
*/
|
|
31
|
-
export declare function getHeight({
|
|
25
|
+
export declare function getHeight({ cached, ...options }: {
|
|
32
26
|
onNode: Node;
|
|
33
|
-
|
|
27
|
+
cached?: boolean;
|
|
28
|
+
} & Parameters<typeof _getPollInterval>[1]): Promise<number>;
|
|
34
29
|
/**
|
|
35
|
-
*
|
|
30
|
+
* Return transaction details if it is mined, fail otherwise.
|
|
31
|
+
* If the transaction has ttl specified then would wait till it leaves the mempool.
|
|
32
|
+
* Otherwise would fail if a specified amount of blocks were mined.
|
|
36
33
|
* @category chain
|
|
37
34
|
* @param th - The hash of transaction to poll
|
|
38
35
|
* @param options - Options
|
|
39
36
|
* @param options.interval - Interval (in ms) at which to poll the chain
|
|
40
|
-
* @param options.blocks - Number of blocks mined after which to fail
|
|
37
|
+
* @param options.blocks - Number of blocks mined after which to fail if transaction ttl is not set
|
|
41
38
|
* @param options.onNode - Node to use
|
|
42
39
|
* @returns The transaction as it was mined
|
|
43
40
|
*/
|
|
@@ -72,33 +69,6 @@ export declare function waitForTxConfirm(txHash: Encoded.TxHash, { confirm, onNo
|
|
|
72
69
|
confirm?: number;
|
|
73
70
|
onNode: Node;
|
|
74
71
|
} & Parameters<typeof awaitHeight>[1]): Promise<number>;
|
|
75
|
-
/**
|
|
76
|
-
* Signs and submits transaction for mining
|
|
77
|
-
* @category chain
|
|
78
|
-
* @param txUnsigned - Transaction to sign and submit
|
|
79
|
-
* @param options - Options
|
|
80
|
-
* @param options.onNode - Node to use
|
|
81
|
-
* @param options.onAccount - Account to use
|
|
82
|
-
* @param options.verify - Verify transaction before broadcast, throw error if not
|
|
83
|
-
* @param options.waitMined - Ensure that transaction get into block
|
|
84
|
-
* @param options.confirm - Number of micro blocks that should be mined after tx get included
|
|
85
|
-
* @returns Transaction details
|
|
86
|
-
*/
|
|
87
|
-
export declare function sendTransaction(txUnsigned: Encoded.Transaction, { onNode, onAccount, verify, waitMined, confirm, innerTx, ...options }: SendTransactionOptions): Promise<SendTransactionReturnType>;
|
|
88
|
-
type SendTransactionOptionsType = {
|
|
89
|
-
onNode: Node;
|
|
90
|
-
onAccount: AccountBase;
|
|
91
|
-
verify?: boolean;
|
|
92
|
-
waitMined?: boolean;
|
|
93
|
-
confirm?: boolean | number;
|
|
94
|
-
} & Parameters<typeof poll>[1] & Omit<Parameters<typeof waitForTxConfirm>[1], 'confirm'> & Parameters<AccountBase['signTransaction']>[1];
|
|
95
|
-
export interface SendTransactionOptions extends SendTransactionOptionsType {
|
|
96
|
-
}
|
|
97
|
-
interface SendTransactionReturnType extends Partial<TransformNodeType<SignedTx>> {
|
|
98
|
-
hash: Encoded.TxHash;
|
|
99
|
-
rawTx: Encoded.Transaction;
|
|
100
|
-
confirmationHeight?: number;
|
|
101
|
-
}
|
|
102
72
|
/**
|
|
103
73
|
* Get account by account public key
|
|
104
74
|
* @category chain
|
|
@@ -27,6 +27,7 @@ import { TxUnpacked } from '../tx/builder/schema.generated';
|
|
|
27
27
|
* ```
|
|
28
28
|
*/
|
|
29
29
|
export default class Channel {
|
|
30
|
+
#private;
|
|
30
31
|
_eventEmitter: EventEmitter;
|
|
31
32
|
_pingTimeoutId: NodeJS.Timeout;
|
|
32
33
|
_nextRpcMessageId: number;
|
|
@@ -42,55 +43,10 @@ export default class Channel {
|
|
|
42
43
|
_state: Encoded.Transaction | '';
|
|
43
44
|
_options: ChannelOptions;
|
|
44
45
|
_channelId?: Encoded.Channel;
|
|
46
|
+
protected constructor();
|
|
47
|
+
_debug(...args: any[]): void;
|
|
45
48
|
/**
|
|
46
49
|
* @param options - Channel params
|
|
47
|
-
* @param options.url - Channel url (for example: "ws://localhost:3001")
|
|
48
|
-
* @param options.role - Participant role ("initiator" or "responder")
|
|
49
|
-
* @param options.initiatorId - Initiator's public key
|
|
50
|
-
* @param options.responderId - Responder's public key
|
|
51
|
-
* @param options.pushAmount - Initial deposit in favour of the responder by the initiator
|
|
52
|
-
* @param options.initiatorAmount - Amount of coins the initiator has committed to
|
|
53
|
-
* the channel
|
|
54
|
-
* @param options.responderAmount - Amount of coins the responder has committed to
|
|
55
|
-
* the channel
|
|
56
|
-
* @param options.channelReserve - The minimum amount both peers need to maintain
|
|
57
|
-
* @param options.ttl - Minimum block height to include the channel_create_tx
|
|
58
|
-
* @param options.host - Host of the responder's node
|
|
59
|
-
* @param options.port - The port of the responders node
|
|
60
|
-
* @param options.lockPeriod - Amount of blocks for disputing a solo close
|
|
61
|
-
* @param options.minimumDepthStrategy - How to calculate minimum depth (default: txfee)
|
|
62
|
-
* @param options.minimumDepth - The minimum amount of blocks to be mined
|
|
63
|
-
* @param options.fee - The fee to be used for the channel open transaction
|
|
64
|
-
* @param options.gasPrice - Used for the fee computation of the channel open transaction
|
|
65
|
-
* @param options.existingChannelId - Existing channel id (required if reestablishing a
|
|
66
|
-
* channel)
|
|
67
|
-
* @param options.offchainTx - Offchain transaction (required if reestablishing
|
|
68
|
-
* a channel)
|
|
69
|
-
* @param options.timeoutIdle - The time waiting for a new event to be initiated
|
|
70
|
-
* (default: 600000)
|
|
71
|
-
* @param options.timeoutFundingCreate - The time waiting for the initiator to produce
|
|
72
|
-
* the create channel transaction after the noise session had been established (default: 120000)
|
|
73
|
-
* @param options.timeoutFundingSign - The time frame the other client has to sign an
|
|
74
|
-
* off-chain update after our client had initiated and signed it. This applies only for double
|
|
75
|
-
* signed on-chain intended updates: channel create transaction, deposit, withdrawal and etc.
|
|
76
|
-
* (default: 120000)
|
|
77
|
-
* @param options.timeoutFundingLock - The time frame the other client has to confirm an
|
|
78
|
-
* on-chain transaction reaching maturity (passing minimum depth) after the local node has
|
|
79
|
-
* detected this. This applies only for double signed on-chain intended updates: channel create
|
|
80
|
-
* transaction, deposit, withdrawal and etc. (default: 360000)
|
|
81
|
-
* @param options.timeoutSign - The time frame the client has to return a signed
|
|
82
|
-
* off-chain update or to decline it. This applies for all off-chain updates (default: 500000)
|
|
83
|
-
* @param options.timeoutAccept - The time frame the other client has to react to an
|
|
84
|
-
* event. This applies for all off-chain updates that are not meant to land on-chain, as well as
|
|
85
|
-
* some special cases: opening a noise connection, mutual closing acknowledgement and
|
|
86
|
-
* reestablishing an existing channel (default: 120000)
|
|
87
|
-
* @param options.timeoutInitialized - the time frame the responder has to accept an
|
|
88
|
-
* incoming noise session. Applicable only for initiator (default: timeout_accept's value)
|
|
89
|
-
* @param options.timeoutAwaitingOpen - The time frame the initiator has to start an
|
|
90
|
-
* outgoing noise session to the responder's node. Applicable only for responder (default:
|
|
91
|
-
* timeout_idle's value)
|
|
92
|
-
* @param options.debug=false - Log websocket communication
|
|
93
|
-
* @param options.sign - Function which verifies and signs transactions
|
|
94
50
|
*/
|
|
95
51
|
static initialize(options: ChannelOptions): Promise<Channel>;
|
|
96
52
|
static _initialize<T extends Channel>(channel: T, options: ChannelOptions): Promise<T>;
|
|
@@ -6,10 +6,24 @@ import { ContractCallReturnType } from '../apis/node';
|
|
|
6
6
|
import { ContractCallObject } from '../contract/Contract';
|
|
7
7
|
import ChannelSpend from './Spend';
|
|
8
8
|
interface CallContractOptions {
|
|
9
|
+
/**
|
|
10
|
+
* Amount the caller of the contract commits to it
|
|
11
|
+
*/
|
|
9
12
|
amount?: number | BigNumber;
|
|
13
|
+
/**
|
|
14
|
+
* ABI encoded compiled AEVM call data for the code
|
|
15
|
+
*/
|
|
10
16
|
callData?: Encoded.ContractBytearray;
|
|
17
|
+
/**
|
|
18
|
+
* Version of the ABI
|
|
19
|
+
*/
|
|
11
20
|
abiVersion?: AbiVersion;
|
|
21
|
+
/**
|
|
22
|
+
* Address of the contract to call
|
|
23
|
+
*/
|
|
12
24
|
contract?: Encoded.ContractAddress;
|
|
25
|
+
}
|
|
26
|
+
interface CallContractResult extends CallContractOptions {
|
|
13
27
|
returnValue?: any;
|
|
14
28
|
gasUsed?: number | BigNumber;
|
|
15
29
|
gasPrice?: number | BigNumber;
|
|
@@ -91,10 +105,6 @@ export default class ChannelContract extends ChannelSpend {
|
|
|
91
105
|
* if a call with a similar computation amount is to be forced on-chain.
|
|
92
106
|
*
|
|
93
107
|
* @param options - Options
|
|
94
|
-
* @param options.amount - Amount the caller of the contract commits to it
|
|
95
|
-
* @param options.callData - ABI encoded compiled AEVM call data for the code
|
|
96
|
-
* @param options.contract - Address of the contract to call
|
|
97
|
-
* @param options.abiVersion - Version of the ABI
|
|
98
108
|
* @param sign - Function which verifies and signs contract call transaction
|
|
99
109
|
* @example
|
|
100
110
|
* ```js
|
|
@@ -120,12 +130,6 @@ export default class ChannelContract extends ChannelSpend {
|
|
|
120
130
|
* Trigger a force progress contract call
|
|
121
131
|
* This call is going on-chain
|
|
122
132
|
* @param options - Options
|
|
123
|
-
* @param options.amount - Amount the caller of the contract commits to it
|
|
124
|
-
* @param options.callData - ABI encoded compiled AEVM call data for the code
|
|
125
|
-
* @param options.contract - Address of the contract to call
|
|
126
|
-
* @param options.abiVersion - Version of the ABI
|
|
127
|
-
* @param options.gasPrice=1000000000]
|
|
128
|
-
* @param options.gasLimit=1000000]
|
|
129
133
|
* @param sign - Function which verifies and signs contract force progress transaction
|
|
130
134
|
* @param callbacks - Callbacks
|
|
131
135
|
* @example
|
|
@@ -145,11 +149,7 @@ export default class ChannelContract extends ChannelSpend {
|
|
|
145
149
|
* })
|
|
146
150
|
* ```
|
|
147
151
|
*/
|
|
148
|
-
forceProgress({ amount, callData, contract, abiVersion, gasLimit, gasPrice, }: {
|
|
149
|
-
amount: number;
|
|
150
|
-
callData: Encoded.ContractBytearray;
|
|
151
|
-
contract: Encoded.ContractAddress;
|
|
152
|
-
abiVersion: AbiVersion;
|
|
152
|
+
forceProgress({ amount, callData, contract, abiVersion, gasLimit, gasPrice, }: CallContractOptions & {
|
|
153
153
|
gasLimit?: number;
|
|
154
154
|
gasPrice?: number;
|
|
155
155
|
}, sign: SignTx, { onOnChainTx }?: Pick<ChannelState, 'onOnChainTx'>): Promise<{
|
|
@@ -169,10 +169,6 @@ export default class ChannelContract extends ChannelSpend {
|
|
|
169
169
|
* top of the blockchain as seen by the node.
|
|
170
170
|
*
|
|
171
171
|
* @param options - Options
|
|
172
|
-
* @param options.amount - Amount the caller of the contract commits to it
|
|
173
|
-
* @param options.callData - ABI encoded compiled AEVM call data for the code
|
|
174
|
-
* @param options.contract - Address of the contract to call
|
|
175
|
-
* @param options.abiVersion - Version of the ABI
|
|
176
172
|
* @example
|
|
177
173
|
* ```js
|
|
178
174
|
* channel.callContractStatic({
|
|
@@ -186,12 +182,7 @@ export default class ChannelContract extends ChannelSpend {
|
|
|
186
182
|
* })
|
|
187
183
|
* ```
|
|
188
184
|
*/
|
|
189
|
-
callContractStatic({ amount, callData, contract, abiVersion, }:
|
|
190
|
-
amount: number;
|
|
191
|
-
callData: Encoded.ContractBytearray;
|
|
192
|
-
contract: Encoded.ContractAddress;
|
|
193
|
-
abiVersion: AbiVersion;
|
|
194
|
-
}): Promise<CallContractOptions>;
|
|
185
|
+
callContractStatic({ amount, callData, contract, abiVersion, }: CallContractOptions): Promise<CallContractResult>;
|
|
195
186
|
/**
|
|
196
187
|
* Get contract call result
|
|
197
188
|
*
|
|
@@ -121,10 +121,6 @@ export default class ChannelSpend extends Channel {
|
|
|
121
121
|
* @param amount - Amount of coins to withdraw
|
|
122
122
|
* @param sign - Function which verifies and signs withdraw transaction
|
|
123
123
|
* @param callbacks - Callbacks
|
|
124
|
-
* @param callbacks.onOnChainTx - Called when withdraw transaction has been posted
|
|
125
|
-
* on chain
|
|
126
|
-
* @param callbacks.onOwnWithdrawLocked
|
|
127
|
-
* @param callbacks.onWithdrawLocked
|
|
128
124
|
* @example
|
|
129
125
|
* ```js
|
|
130
126
|
* channel.withdraw(
|
|
@@ -174,10 +170,6 @@ export default class ChannelSpend extends Channel {
|
|
|
174
170
|
* @param amount - Amount of coins to deposit
|
|
175
171
|
* @param sign - Function which verifies and signs deposit transaction
|
|
176
172
|
* @param callbacks - Callbacks
|
|
177
|
-
* @param callbacks.onOnChainTx - Called when deposit transaction has been posted
|
|
178
|
-
* on chain
|
|
179
|
-
* @param callbacks.onOwnDepositLocked
|
|
180
|
-
* @param callbacks.onDepositLocked
|
|
181
173
|
* @example
|
|
182
174
|
* ```js
|
|
183
175
|
* channel.deposit(
|