@aeternity/aepp-sdk 13.2.2 → 13.3.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/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 +70 -14
- 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
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
ApiVersionOptionalParams,
|
|
36
36
|
ApiVersionResponse,
|
|
37
37
|
ApiOptionalParams,
|
|
38
|
-
ApiResponse
|
|
38
|
+
ApiResponse,
|
|
39
39
|
} from "./models";
|
|
40
40
|
|
|
41
41
|
export class Compiler extends coreClient.ServiceClient {
|
|
@@ -56,7 +56,7 @@ export class Compiler extends coreClient.ServiceClient {
|
|
|
56
56
|
options = {};
|
|
57
57
|
}
|
|
58
58
|
const defaults: CompilerOptionalParams = {
|
|
59
|
-
requestContentType: "application/json; charset=utf-8"
|
|
59
|
+
requestContentType: "application/json; charset=utf-8",
|
|
60
60
|
};
|
|
61
61
|
|
|
62
62
|
const packageDetails = `azsdk-js-compiler/1.0.0-beta.1`;
|
|
@@ -69,9 +69,9 @@ export class Compiler extends coreClient.ServiceClient {
|
|
|
69
69
|
...defaults,
|
|
70
70
|
...options,
|
|
71
71
|
userAgentOptions: {
|
|
72
|
-
userAgentPrefix
|
|
72
|
+
userAgentPrefix,
|
|
73
73
|
},
|
|
74
|
-
endpoint: options.endpoint ?? options.baseUri ?? "{$host}"
|
|
74
|
+
endpoint: options.endpoint ?? options.baseUri ?? "{$host}",
|
|
75
75
|
};
|
|
76
76
|
super(optionsWithDefaults);
|
|
77
77
|
// Parameter assignments
|
|
@@ -85,11 +85,11 @@ export class Compiler extends coreClient.ServiceClient {
|
|
|
85
85
|
*/
|
|
86
86
|
generateACI(
|
|
87
87
|
body: Contract,
|
|
88
|
-
options?: GenerateACIOptionalParams
|
|
88
|
+
options?: GenerateACIOptionalParams,
|
|
89
89
|
): Promise<GenerateACIResponse> {
|
|
90
90
|
return this.sendOperationRequest(
|
|
91
91
|
{ body, options },
|
|
92
|
-
generateACIOperationSpec
|
|
92
|
+
generateACIOperationSpec,
|
|
93
93
|
);
|
|
94
94
|
}
|
|
95
95
|
|
|
@@ -100,11 +100,11 @@ export class Compiler extends coreClient.ServiceClient {
|
|
|
100
100
|
*/
|
|
101
101
|
compileContract(
|
|
102
102
|
body: Contract,
|
|
103
|
-
options?: CompileContractOptionalParams
|
|
103
|
+
options?: CompileContractOptionalParams,
|
|
104
104
|
): Promise<CompileContractResponse> {
|
|
105
105
|
return this.sendOperationRequest(
|
|
106
106
|
{ body, options },
|
|
107
|
-
compileContractOperationSpec
|
|
107
|
+
compileContractOperationSpec,
|
|
108
108
|
);
|
|
109
109
|
}
|
|
110
110
|
|
|
@@ -115,11 +115,11 @@ export class Compiler extends coreClient.ServiceClient {
|
|
|
115
115
|
*/
|
|
116
116
|
decodeCallResult(
|
|
117
117
|
body: SophiaCallResultInput,
|
|
118
|
-
options?: DecodeCallResultOptionalParams
|
|
118
|
+
options?: DecodeCallResultOptionalParams,
|
|
119
119
|
): Promise<DecodeCallResultResponse> {
|
|
120
120
|
return this.sendOperationRequest(
|
|
121
121
|
{ body, options },
|
|
122
|
-
decodeCallResultOperationSpec
|
|
122
|
+
decodeCallResultOperationSpec,
|
|
123
123
|
);
|
|
124
124
|
}
|
|
125
125
|
|
|
@@ -130,11 +130,11 @@ export class Compiler extends coreClient.ServiceClient {
|
|
|
130
130
|
*/
|
|
131
131
|
decodeCallResultBytecode(
|
|
132
132
|
body: BytecodeCallResultInput,
|
|
133
|
-
options?: DecodeCallResultBytecodeOptionalParams
|
|
133
|
+
options?: DecodeCallResultBytecodeOptionalParams,
|
|
134
134
|
): Promise<DecodeCallResultBytecodeResponse> {
|
|
135
135
|
return this.sendOperationRequest(
|
|
136
136
|
{ body, options },
|
|
137
|
-
decodeCallResultBytecodeOperationSpec
|
|
137
|
+
decodeCallResultBytecodeOperationSpec,
|
|
138
138
|
);
|
|
139
139
|
}
|
|
140
140
|
|
|
@@ -145,11 +145,11 @@ export class Compiler extends coreClient.ServiceClient {
|
|
|
145
145
|
*/
|
|
146
146
|
encodeCalldata(
|
|
147
147
|
body: FunctionCallInput,
|
|
148
|
-
options?: EncodeCalldataOptionalParams
|
|
148
|
+
options?: EncodeCalldataOptionalParams,
|
|
149
149
|
): Promise<EncodeCalldataResponse> {
|
|
150
150
|
return this.sendOperationRequest(
|
|
151
151
|
{ body, options },
|
|
152
|
-
encodeCalldataOperationSpec
|
|
152
|
+
encodeCalldataOperationSpec,
|
|
153
153
|
);
|
|
154
154
|
}
|
|
155
155
|
|
|
@@ -160,11 +160,11 @@ export class Compiler extends coreClient.ServiceClient {
|
|
|
160
160
|
*/
|
|
161
161
|
decodeCalldataBytecode(
|
|
162
162
|
body: DecodeCalldataBytecode,
|
|
163
|
-
options?: DecodeCalldataBytecodeOptionalParams
|
|
163
|
+
options?: DecodeCalldataBytecodeOptionalParams,
|
|
164
164
|
): Promise<DecodeCalldataBytecodeResponse> {
|
|
165
165
|
return this.sendOperationRequest(
|
|
166
166
|
{ body, options },
|
|
167
|
-
decodeCalldataBytecodeOperationSpec
|
|
167
|
+
decodeCalldataBytecodeOperationSpec,
|
|
168
168
|
);
|
|
169
169
|
}
|
|
170
170
|
|
|
@@ -175,11 +175,11 @@ export class Compiler extends coreClient.ServiceClient {
|
|
|
175
175
|
*/
|
|
176
176
|
decodeCalldataSource(
|
|
177
177
|
body: DecodeCalldataSource,
|
|
178
|
-
options?: DecodeCalldataSourceOptionalParams
|
|
178
|
+
options?: DecodeCalldataSourceOptionalParams,
|
|
179
179
|
): Promise<DecodeCalldataSourceResponse> {
|
|
180
180
|
return this.sendOperationRequest(
|
|
181
181
|
{ body, options },
|
|
182
|
-
decodeCalldataSourceOperationSpec
|
|
182
|
+
decodeCalldataSourceOperationSpec,
|
|
183
183
|
);
|
|
184
184
|
}
|
|
185
185
|
|
|
@@ -190,11 +190,11 @@ export class Compiler extends coreClient.ServiceClient {
|
|
|
190
190
|
*/
|
|
191
191
|
getFateAssemblerCode(
|
|
192
192
|
body: ByteCodeInput,
|
|
193
|
-
options?: GetFateAssemblerCodeOptionalParams
|
|
193
|
+
options?: GetFateAssemblerCodeOptionalParams,
|
|
194
194
|
): Promise<GetFateAssemblerCodeResponse> {
|
|
195
195
|
return this.sendOperationRequest(
|
|
196
196
|
{ body, options },
|
|
197
|
-
getFateAssemblerCodeOperationSpec
|
|
197
|
+
getFateAssemblerCodeOperationSpec,
|
|
198
198
|
);
|
|
199
199
|
}
|
|
200
200
|
|
|
@@ -205,11 +205,11 @@ export class Compiler extends coreClient.ServiceClient {
|
|
|
205
205
|
*/
|
|
206
206
|
validateByteCode(
|
|
207
207
|
body: ValidateByteCodeInput,
|
|
208
|
-
options?: ValidateByteCodeOptionalParams
|
|
208
|
+
options?: ValidateByteCodeOptionalParams,
|
|
209
209
|
): Promise<void> {
|
|
210
210
|
return this.sendOperationRequest(
|
|
211
211
|
{ body, options },
|
|
212
|
-
validateByteCodeOperationSpec
|
|
212
|
+
validateByteCodeOperationSpec,
|
|
213
213
|
);
|
|
214
214
|
}
|
|
215
215
|
|
|
@@ -220,11 +220,11 @@ export class Compiler extends coreClient.ServiceClient {
|
|
|
220
220
|
*/
|
|
221
221
|
getCompilerVersion(
|
|
222
222
|
body: ByteCodeInput,
|
|
223
|
-
options?: GetCompilerVersionOptionalParams
|
|
223
|
+
options?: GetCompilerVersionOptionalParams,
|
|
224
224
|
): Promise<GetCompilerVersionResponse> {
|
|
225
225
|
return this.sendOperationRequest(
|
|
226
226
|
{ body, options },
|
|
227
|
-
getCompilerVersionOperationSpec
|
|
227
|
+
getCompilerVersionOperationSpec,
|
|
228
228
|
);
|
|
229
229
|
}
|
|
230
230
|
|
|
@@ -264,177 +264,177 @@ const generateACIOperationSpec: coreClient.OperationSpec = {
|
|
|
264
264
|
type: {
|
|
265
265
|
name: "Sequence",
|
|
266
266
|
element: {
|
|
267
|
-
type: { name: "Dictionary", value: { type: { name: "any" } } }
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
}
|
|
267
|
+
type: { name: "Dictionary", value: { type: { name: "any" } } },
|
|
268
|
+
},
|
|
269
|
+
},
|
|
270
|
+
},
|
|
271
271
|
},
|
|
272
272
|
400: {
|
|
273
273
|
bodyMapper: {
|
|
274
274
|
type: {
|
|
275
275
|
name: "Sequence",
|
|
276
|
-
element: { type: { name: "Composite", className: "CompilerError" } }
|
|
277
|
-
}
|
|
276
|
+
element: { type: { name: "Composite", className: "CompilerError" } },
|
|
277
|
+
},
|
|
278
278
|
},
|
|
279
|
-
isError: true
|
|
280
|
-
}
|
|
279
|
+
isError: true,
|
|
280
|
+
},
|
|
281
281
|
},
|
|
282
282
|
requestBody: Parameters.body,
|
|
283
283
|
urlParameters: [Parameters.$host],
|
|
284
284
|
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
285
285
|
mediaType: "json",
|
|
286
|
-
serializer
|
|
286
|
+
serializer,
|
|
287
287
|
};
|
|
288
288
|
const compileContractOperationSpec: coreClient.OperationSpec = {
|
|
289
289
|
path: "/compile",
|
|
290
290
|
httpMethod: "POST",
|
|
291
291
|
responses: {
|
|
292
292
|
200: {
|
|
293
|
-
bodyMapper: Mappers.CompileResult
|
|
293
|
+
bodyMapper: Mappers.CompileResult,
|
|
294
294
|
},
|
|
295
295
|
400: {
|
|
296
296
|
bodyMapper: {
|
|
297
297
|
type: {
|
|
298
298
|
name: "Sequence",
|
|
299
|
-
element: { type: { name: "Composite", className: "CompilerError" } }
|
|
300
|
-
}
|
|
299
|
+
element: { type: { name: "Composite", className: "CompilerError" } },
|
|
300
|
+
},
|
|
301
301
|
},
|
|
302
|
-
isError: true
|
|
303
|
-
}
|
|
302
|
+
isError: true,
|
|
303
|
+
},
|
|
304
304
|
},
|
|
305
305
|
requestBody: Parameters.body,
|
|
306
306
|
urlParameters: [Parameters.$host],
|
|
307
307
|
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
308
308
|
mediaType: "json",
|
|
309
|
-
serializer
|
|
309
|
+
serializer,
|
|
310
310
|
};
|
|
311
311
|
const decodeCallResultOperationSpec: coreClient.OperationSpec = {
|
|
312
312
|
path: "/decode-call-result",
|
|
313
313
|
httpMethod: "POST",
|
|
314
314
|
responses: {
|
|
315
315
|
200: {
|
|
316
|
-
bodyMapper: { type: { name: "any" } }
|
|
316
|
+
bodyMapper: { type: { name: "any" } },
|
|
317
317
|
},
|
|
318
318
|
400: {
|
|
319
319
|
bodyMapper: {
|
|
320
320
|
type: {
|
|
321
321
|
name: "Sequence",
|
|
322
|
-
element: { type: { name: "Composite", className: "CompilerError" } }
|
|
323
|
-
}
|
|
322
|
+
element: { type: { name: "Composite", className: "CompilerError" } },
|
|
323
|
+
},
|
|
324
324
|
},
|
|
325
|
-
isError: true
|
|
326
|
-
}
|
|
325
|
+
isError: true,
|
|
326
|
+
},
|
|
327
327
|
},
|
|
328
328
|
requestBody: Parameters.body1,
|
|
329
329
|
urlParameters: [Parameters.$host],
|
|
330
330
|
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
331
331
|
mediaType: "json",
|
|
332
|
-
serializer
|
|
332
|
+
serializer,
|
|
333
333
|
};
|
|
334
334
|
const decodeCallResultBytecodeOperationSpec: coreClient.OperationSpec = {
|
|
335
335
|
path: "/decode-call-result/bytecode",
|
|
336
336
|
httpMethod: "POST",
|
|
337
337
|
responses: {
|
|
338
338
|
200: {
|
|
339
|
-
bodyMapper: Mappers.DecodedCallresult
|
|
339
|
+
bodyMapper: Mappers.DecodedCallresult,
|
|
340
340
|
},
|
|
341
341
|
400: {
|
|
342
342
|
bodyMapper: {
|
|
343
343
|
type: {
|
|
344
344
|
name: "Sequence",
|
|
345
|
-
element: { type: { name: "Composite", className: "CompilerError" } }
|
|
346
|
-
}
|
|
345
|
+
element: { type: { name: "Composite", className: "CompilerError" } },
|
|
346
|
+
},
|
|
347
347
|
},
|
|
348
|
-
isError: true
|
|
349
|
-
}
|
|
348
|
+
isError: true,
|
|
349
|
+
},
|
|
350
350
|
},
|
|
351
351
|
requestBody: Parameters.body2,
|
|
352
352
|
urlParameters: [Parameters.$host],
|
|
353
353
|
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
354
354
|
mediaType: "json",
|
|
355
|
-
serializer
|
|
355
|
+
serializer,
|
|
356
356
|
};
|
|
357
357
|
const encodeCalldataOperationSpec: coreClient.OperationSpec = {
|
|
358
358
|
path: "/encode-calldata",
|
|
359
359
|
httpMethod: "POST",
|
|
360
360
|
responses: {
|
|
361
361
|
200: {
|
|
362
|
-
bodyMapper: Mappers.Calldata
|
|
362
|
+
bodyMapper: Mappers.Calldata,
|
|
363
363
|
},
|
|
364
364
|
400: {
|
|
365
365
|
bodyMapper: {
|
|
366
366
|
type: {
|
|
367
367
|
name: "Sequence",
|
|
368
|
-
element: { type: { name: "Composite", className: "CompilerError" } }
|
|
369
|
-
}
|
|
368
|
+
element: { type: { name: "Composite", className: "CompilerError" } },
|
|
369
|
+
},
|
|
370
370
|
},
|
|
371
|
-
isError: true
|
|
372
|
-
}
|
|
371
|
+
isError: true,
|
|
372
|
+
},
|
|
373
373
|
},
|
|
374
374
|
requestBody: Parameters.body3,
|
|
375
375
|
urlParameters: [Parameters.$host],
|
|
376
376
|
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
377
377
|
mediaType: "json",
|
|
378
|
-
serializer
|
|
378
|
+
serializer,
|
|
379
379
|
};
|
|
380
380
|
const decodeCalldataBytecodeOperationSpec: coreClient.OperationSpec = {
|
|
381
381
|
path: "/decode-calldata/bytecode",
|
|
382
382
|
httpMethod: "POST",
|
|
383
383
|
responses: {
|
|
384
384
|
200: {
|
|
385
|
-
bodyMapper: Mappers.DecodedCalldata
|
|
385
|
+
bodyMapper: Mappers.DecodedCalldata,
|
|
386
386
|
},
|
|
387
387
|
400: {
|
|
388
388
|
bodyMapper: Mappers.ErrorModel,
|
|
389
|
-
isError: true
|
|
390
|
-
}
|
|
389
|
+
isError: true,
|
|
390
|
+
},
|
|
391
391
|
},
|
|
392
392
|
requestBody: Parameters.body4,
|
|
393
393
|
urlParameters: [Parameters.$host],
|
|
394
394
|
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
395
395
|
mediaType: "json",
|
|
396
|
-
serializer
|
|
396
|
+
serializer,
|
|
397
397
|
};
|
|
398
398
|
const decodeCalldataSourceOperationSpec: coreClient.OperationSpec = {
|
|
399
399
|
path: "/decode-calldata/source",
|
|
400
400
|
httpMethod: "POST",
|
|
401
401
|
responses: {
|
|
402
402
|
200: {
|
|
403
|
-
bodyMapper: Mappers.DecodedCalldata
|
|
403
|
+
bodyMapper: Mappers.DecodedCalldata,
|
|
404
404
|
},
|
|
405
405
|
400: {
|
|
406
406
|
bodyMapper: {
|
|
407
407
|
type: {
|
|
408
408
|
name: "Sequence",
|
|
409
|
-
element: { type: { name: "Composite", className: "CompilerError" } }
|
|
410
|
-
}
|
|
409
|
+
element: { type: { name: "Composite", className: "CompilerError" } },
|
|
410
|
+
},
|
|
411
411
|
},
|
|
412
|
-
isError: true
|
|
413
|
-
}
|
|
412
|
+
isError: true,
|
|
413
|
+
},
|
|
414
414
|
},
|
|
415
415
|
requestBody: Parameters.body5,
|
|
416
416
|
urlParameters: [Parameters.$host],
|
|
417
417
|
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
418
418
|
mediaType: "json",
|
|
419
|
-
serializer
|
|
419
|
+
serializer,
|
|
420
420
|
};
|
|
421
421
|
const getFateAssemblerCodeOperationSpec: coreClient.OperationSpec = {
|
|
422
422
|
path: "/fate-assembler",
|
|
423
423
|
httpMethod: "POST",
|
|
424
424
|
responses: {
|
|
425
425
|
200: {
|
|
426
|
-
bodyMapper: Mappers.FateAssembler
|
|
426
|
+
bodyMapper: Mappers.FateAssembler,
|
|
427
427
|
},
|
|
428
428
|
400: {
|
|
429
429
|
bodyMapper: Mappers.ErrorModel,
|
|
430
|
-
isError: true
|
|
431
|
-
}
|
|
430
|
+
isError: true,
|
|
431
|
+
},
|
|
432
432
|
},
|
|
433
433
|
requestBody: Parameters.body6,
|
|
434
434
|
urlParameters: [Parameters.$host],
|
|
435
435
|
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
436
436
|
mediaType: "json",
|
|
437
|
-
serializer
|
|
437
|
+
serializer,
|
|
438
438
|
};
|
|
439
439
|
const validateByteCodeOperationSpec: coreClient.OperationSpec = {
|
|
440
440
|
path: "/validate-byte-code",
|
|
@@ -445,67 +445,67 @@ const validateByteCodeOperationSpec: coreClient.OperationSpec = {
|
|
|
445
445
|
bodyMapper: {
|
|
446
446
|
type: {
|
|
447
447
|
name: "Sequence",
|
|
448
|
-
element: { type: { name: "Composite", className: "CompilerError" } }
|
|
449
|
-
}
|
|
448
|
+
element: { type: { name: "Composite", className: "CompilerError" } },
|
|
449
|
+
},
|
|
450
450
|
},
|
|
451
|
-
isError: true
|
|
452
|
-
}
|
|
451
|
+
isError: true,
|
|
452
|
+
},
|
|
453
453
|
},
|
|
454
454
|
requestBody: Parameters.body7,
|
|
455
455
|
urlParameters: [Parameters.$host],
|
|
456
456
|
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
457
457
|
mediaType: "json",
|
|
458
|
-
serializer
|
|
458
|
+
serializer,
|
|
459
459
|
};
|
|
460
460
|
const getCompilerVersionOperationSpec: coreClient.OperationSpec = {
|
|
461
461
|
path: "/compiler-version",
|
|
462
462
|
httpMethod: "POST",
|
|
463
463
|
responses: {
|
|
464
464
|
200: {
|
|
465
|
-
bodyMapper: Mappers.CompilerVersion
|
|
465
|
+
bodyMapper: Mappers.CompilerVersion,
|
|
466
466
|
},
|
|
467
467
|
400: {
|
|
468
468
|
bodyMapper: Mappers.ErrorModel,
|
|
469
|
-
isError: true
|
|
470
|
-
}
|
|
469
|
+
isError: true,
|
|
470
|
+
},
|
|
471
471
|
},
|
|
472
472
|
requestBody: Parameters.body6,
|
|
473
473
|
urlParameters: [Parameters.$host],
|
|
474
474
|
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
475
475
|
mediaType: "json",
|
|
476
|
-
serializer
|
|
476
|
+
serializer,
|
|
477
477
|
};
|
|
478
478
|
const versionOperationSpec: coreClient.OperationSpec = {
|
|
479
479
|
path: "/version",
|
|
480
480
|
httpMethod: "GET",
|
|
481
481
|
responses: {
|
|
482
482
|
200: {
|
|
483
|
-
bodyMapper: Mappers.CompilerVersion
|
|
483
|
+
bodyMapper: Mappers.CompilerVersion,
|
|
484
484
|
},
|
|
485
485
|
500: {
|
|
486
486
|
bodyMapper: Mappers.ErrorModel,
|
|
487
|
-
isError: true
|
|
488
|
-
}
|
|
487
|
+
isError: true,
|
|
488
|
+
},
|
|
489
489
|
},
|
|
490
490
|
urlParameters: [Parameters.$host],
|
|
491
491
|
headerParameters: [Parameters.accept],
|
|
492
|
-
serializer
|
|
492
|
+
serializer,
|
|
493
493
|
};
|
|
494
494
|
const apiVersionOperationSpec: coreClient.OperationSpec = {
|
|
495
495
|
path: "/api-version",
|
|
496
496
|
httpMethod: "GET",
|
|
497
497
|
responses: {
|
|
498
498
|
200: {
|
|
499
|
-
bodyMapper: Mappers.ApiVersion
|
|
499
|
+
bodyMapper: Mappers.ApiVersion,
|
|
500
500
|
},
|
|
501
501
|
500: {
|
|
502
502
|
bodyMapper: Mappers.ErrorModel,
|
|
503
|
-
isError: true
|
|
504
|
-
}
|
|
503
|
+
isError: true,
|
|
504
|
+
},
|
|
505
505
|
},
|
|
506
506
|
urlParameters: [Parameters.$host],
|
|
507
507
|
headerParameters: [Parameters.accept],
|
|
508
|
-
serializer
|
|
508
|
+
serializer,
|
|
509
509
|
};
|
|
510
510
|
const apiOperationSpec: coreClient.OperationSpec = {
|
|
511
511
|
path: "/api",
|
|
@@ -513,15 +513,15 @@ const apiOperationSpec: coreClient.OperationSpec = {
|
|
|
513
513
|
responses: {
|
|
514
514
|
200: {
|
|
515
515
|
bodyMapper: {
|
|
516
|
-
type: { name: "Dictionary", value: { type: { name: "any" } } }
|
|
517
|
-
}
|
|
516
|
+
type: { name: "Dictionary", value: { type: { name: "any" } } },
|
|
517
|
+
},
|
|
518
518
|
},
|
|
519
519
|
400: {
|
|
520
520
|
bodyMapper: Mappers.ErrorModel,
|
|
521
|
-
isError: true
|
|
522
|
-
}
|
|
521
|
+
isError: true,
|
|
522
|
+
},
|
|
523
523
|
},
|
|
524
524
|
urlParameters: [Parameters.$host],
|
|
525
525
|
headerParameters: [Parameters.accept],
|
|
526
|
-
serializer
|
|
526
|
+
serializer,
|
|
527
527
|
};
|