@aeternity/aepp-sdk 13.0.1 → 13.2.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/README.md +4 -2
- package/bin/aesophia_cli +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 +28490 -17706
- package/dist/aepp-sdk.js.map +1 -1
- package/es/AeSdkAepp.mjs.map +1 -1
- package/es/AeSdkBase.d.ts +21 -3
- package/es/AeSdkBase.mjs +51 -3
- package/es/AeSdkBase.mjs.map +1 -1
- package/es/AeSdkMethods.d.ts +9 -14
- package/es/AeSdkMethods.mjs +20 -49
- package/es/AeSdkMethods.mjs.map +1 -1
- package/es/AeSdkWallet.d.ts +1 -1
- package/es/AeSdkWallet.mjs +79 -23
- package/es/AeSdkWallet.mjs.map +1 -1
- package/es/Middleware.d.ts +38 -0
- package/es/Middleware.mjs +90 -0
- package/es/Middleware.mjs.map +1 -0
- package/es/MiddlewareSubscriber.d.ts +30 -0
- package/es/MiddlewareSubscriber.mjs +198 -0
- package/es/MiddlewareSubscriber.mjs.map +1 -0
- package/es/Node.d.ts +1 -1
- package/es/Node.mjs.map +1 -1
- package/es/account/Base.d.ts +57 -3
- package/es/account/Base.mjs +95 -1
- package/es/account/Base.mjs.map +1 -1
- package/es/account/Generalized.d.ts +4 -0
- package/es/account/Generalized.mjs +20 -0
- package/es/account/Generalized.mjs.map +1 -1
- package/es/account/Ledger.d.ts +4 -0
- package/es/account/Ledger.mjs +20 -0
- package/es/account/Ledger.mjs.map +1 -1
- package/es/account/LedgerFactory.mjs.map +1 -1
- package/es/account/Memory.d.ts +12 -0
- package/es/account/Memory.mjs +52 -0
- package/es/account/Memory.mjs.map +1 -1
- package/es/account/Rpc.d.ts +5 -6
- package/es/account/Rpc.mjs +53 -10
- package/es/account/Rpc.mjs.map +1 -1
- package/es/aens.d.ts +1 -1
- package/es/aens.mjs +1 -1
- package/es/aens.mjs.map +1 -1
- package/es/aepp-wallet-communication/connection/Browser.mjs.map +1 -1
- package/es/aepp-wallet-communication/connection/BrowserRuntime.mjs.map +1 -1
- package/es/aepp-wallet-communication/connection/BrowserWindowMessage.mjs.map +1 -1
- package/es/aepp-wallet-communication/connection-proxy.mjs.map +1 -1
- package/es/aepp-wallet-communication/rpc/RpcClient.mjs +5 -2
- package/es/aepp-wallet-communication/rpc/RpcClient.mjs.map +1 -1
- package/es/aepp-wallet-communication/rpc/types.d.ts +19 -0
- package/es/aepp-wallet-communication/rpc/types.mjs.map +1 -1
- package/es/aepp-wallet-communication/schema.d.ts +2 -8
- package/es/aepp-wallet-communication/schema.mjs +21 -33
- package/es/aepp-wallet-communication/schema.mjs.map +1 -1
- package/es/aepp-wallet-communication/wallet-detector.d.ts +1 -1
- package/es/aepp-wallet-communication/wallet-detector.mjs +0 -3
- package/es/aepp-wallet-communication/wallet-detector.mjs.map +1 -1
- package/es/apis/compiler/compiler.mjs +15 -1
- package/es/apis/compiler/compiler.mjs.map +1 -1
- package/es/apis/compiler/models/index.d.ts +1 -7
- package/es/apis/compiler/models/index.mjs.map +1 -1
- package/es/apis/compiler/models/mappers.d.ts +0 -1
- package/es/apis/compiler/models/mappers.mjs +0 -43
- package/es/apis/compiler/models/mappers.mjs.map +1 -1
- package/es/apis/middleware/index.d.ts +2 -0
- package/es/apis/middleware/index.mjs +3 -0
- package/es/apis/middleware/index.mjs.map +1 -0
- package/es/apis/middleware/middleware.d.ts +309 -0
- package/es/apis/middleware/middleware.mjs +1527 -0
- package/es/apis/middleware/middleware.mjs.map +1 -0
- package/es/apis/middleware/models/index.d.ts +1496 -0
- package/es/apis/middleware/models/index.mjs +580 -0
- package/es/apis/middleware/models/index.mjs.map +1 -0
- package/es/apis/middleware/models/mappers.d.ts +102 -0
- package/es/apis/middleware/models/mappers.mjs +3334 -0
- package/es/apis/middleware/models/mappers.mjs.map +1 -0
- package/es/apis/middleware/models/parameters.d.ts +43 -0
- package/es/apis/middleware/models/parameters.mjs +417 -0
- package/es/apis/middleware/models/parameters.mjs.map +1 -0
- package/es/apis/node/node.mjs.map +1 -1
- package/es/chain.d.ts +2 -1
- package/es/chain.mjs +5 -3
- package/es/chain.mjs.map +1 -1
- package/es/channel/Base.d.ts +1 -1
- package/es/channel/Base.mjs +1 -4
- package/es/channel/Base.mjs.map +1 -1
- package/es/channel/Contract.mjs.map +1 -1
- package/es/channel/Spend.mjs.map +1 -1
- package/es/channel/handlers.mjs +2 -2
- package/es/channel/handlers.mjs.map +1 -1
- package/es/channel/internal.mjs +7 -5
- package/es/channel/internal.mjs.map +1 -1
- package/es/contract/Contract.mjs +2 -2
- package/es/contract/Contract.mjs.map +1 -1
- package/es/contract/compiler/Base.d.ts +21 -0
- package/es/contract/compiler/Base.mjs.map +1 -1
- package/es/contract/compiler/Cli.d.ts +2 -0
- package/es/contract/compiler/Cli.mjs +24 -3
- package/es/contract/compiler/Cli.mjs.map +1 -1
- package/es/contract/compiler/Http.d.ts +2 -0
- package/es/contract/compiler/Http.mjs +22 -2
- package/es/contract/compiler/Http.mjs.map +1 -1
- package/es/contract/compiler/HttpNode.d.ts +1 -0
- package/es/contract/compiler/HttpNode.mjs +5 -0
- package/es/contract/compiler/HttpNode.mjs.map +1 -1
- package/es/contract/delegation-signature.d.ts +2 -1
- package/es/contract/delegation-signature.mjs +39 -8
- package/es/contract/delegation-signature.mjs.map +1 -1
- package/es/contract/ga.mjs.map +1 -1
- package/es/deprecated.d.ts +14 -0
- package/es/deprecated.mjs +22 -0
- package/es/deprecated.mjs.map +1 -0
- package/es/index-browser.d.ts +20 -14
- package/es/index-browser.mjs +19 -15
- package/es/index-browser.mjs.map +1 -1
- package/es/oracle.mjs.map +1 -1
- package/es/spend.d.ts +2 -1
- package/es/spend.mjs +4 -2
- package/es/spend.mjs.map +1 -1
- package/es/tx/builder/constants.d.ts +0 -1
- package/es/tx/builder/constants.mjs +26 -24
- package/es/tx/builder/constants.mjs.map +1 -1
- package/es/tx/builder/field-types/abi-version.mjs.map +1 -1
- package/es/tx/builder/field-types/coin-amount.d.ts +1 -1
- package/es/tx/builder/field-types/coin-amount.mjs +2 -1
- package/es/tx/builder/field-types/coin-amount.mjs.map +1 -1
- package/es/tx/builder/field-types/ct-version.mjs.map +1 -1
- package/es/tx/builder/field-types/deposit.d.ts +1 -1
- package/es/tx/builder/field-types/deposit.mjs.map +1 -1
- package/es/tx/builder/field-types/entry.mjs +2 -1
- package/es/tx/builder/field-types/entry.mjs.map +1 -1
- package/es/tx/builder/field-types/fee.mjs.map +1 -1
- package/es/tx/builder/field-types/field.mjs.map +1 -1
- package/es/tx/builder/field-types/gas-limit.mjs.map +1 -1
- package/es/tx/builder/field-types/gas-price.mjs.map +1 -1
- package/es/tx/builder/field-types/index.d.ts +28 -150
- package/es/tx/builder/field-types/index.mjs +28 -56
- package/es/tx/builder/field-types/index.mjs.map +1 -1
- package/es/tx/builder/field-types/map.mjs.map +1 -1
- package/es/tx/builder/field-types/mptree.mjs +3 -3
- package/es/tx/builder/field-types/mptree.mjs.map +1 -1
- package/es/tx/builder/field-types/name-fee.mjs.map +1 -1
- package/es/tx/builder/field-types/pointers.mjs.map +1 -1
- package/es/tx/builder/field-types/string.mjs.map +1 -1
- package/es/tx/builder/field-types/ttl.mjs.map +1 -1
- package/es/tx/builder/field-types/u-int.mjs +1 -1
- package/es/tx/builder/field-types/u-int.mjs.map +1 -1
- package/es/tx/builder/helpers.d.ts +8 -1
- package/es/tx/builder/helpers.mjs +53 -9
- package/es/tx/builder/helpers.mjs.map +1 -1
- package/es/tx/builder/index.d.ts +4 -2
- package/es/tx/builder/index.mjs +0 -1
- package/es/tx/builder/index.mjs.map +1 -1
- package/es/tx/builder/schema.d.ts +9 -9
- package/es/tx/builder/schema.mjs +11 -10
- package/es/tx/builder/schema.mjs.map +1 -1
- package/es/tx/execution-cost.mjs.map +1 -1
- package/es/tx/transaction-signer.mjs.map +1 -1
- package/es/tx/validator.mjs +6 -3
- package/es/tx/validator.mjs.map +1 -1
- package/es/utils/amount-formatter.mjs +7 -7
- package/es/utils/amount-formatter.mjs.map +1 -1
- package/es/utils/autorest.mjs +6 -8
- package/es/utils/autorest.mjs.map +1 -1
- package/es/utils/bignumber.mjs.map +1 -1
- package/es/utils/bytes.mjs.map +1 -1
- package/es/utils/crypto.d.ts +1 -0
- package/es/utils/crypto.mjs +12 -2
- package/es/utils/crypto.mjs.map +1 -1
- package/es/utils/encoder-types.mjs +3 -3
- package/es/utils/encoder-types.mjs.map +1 -1
- package/es/utils/encoder.mjs.map +1 -1
- package/es/utils/errors.d.ts +2 -2
- package/es/utils/errors.mjs.map +1 -1
- package/es/utils/hd-wallet.mjs.map +1 -1
- package/es/utils/keystore.mjs.map +1 -1
- package/es/utils/other.d.ts +1 -0
- package/es/utils/other.mjs +5 -0
- package/es/utils/other.mjs.map +1 -1
- package/es/utils/semver-satisfies.mjs.map +1 -1
- package/es/utils/string.mjs.map +1 -1
- package/es/utils/typed-data.d.ts +45 -0
- package/es/utils/typed-data.mjs +70 -0
- package/es/utils/typed-data.mjs.map +1 -0
- package/package.json +56 -37
- package/src/AeSdkBase.ts +66 -5
- package/src/AeSdkMethods.ts +31 -50
- package/src/AeSdkWallet.ts +63 -17
- package/src/Middleware.ts +141 -0
- package/src/MiddlewareSubscriber.ts +207 -0
- package/src/Node.ts +1 -1
- package/src/account/Base.ts +102 -4
- package/src/account/Generalized.ts +20 -0
- package/src/account/Ledger.ts +20 -0
- package/src/account/Memory.ts +68 -1
- package/src/account/Rpc.ts +54 -7
- package/src/aens.ts +1 -1
- package/src/aepp-wallet-communication/rpc/RpcClient.ts +11 -3
- package/src/aepp-wallet-communication/rpc/types.ts +21 -0
- package/src/aepp-wallet-communication/schema.ts +3 -17
- package/src/aepp-wallet-communication/wallet-detector.ts +1 -2
- package/src/apis/compiler/compiler.ts +8 -1
- package/src/apis/compiler/models/index.ts +1 -8
- package/src/apis/compiler/models/mappers.ts +0 -36
- package/src/apis/middleware/index.ts +2 -0
- package/src/apis/middleware/middleware.ts +1807 -0
- package/src/apis/middleware/models/index.ts +1747 -0
- package/src/apis/middleware/models/mappers.ts +3370 -0
- package/src/apis/middleware/models/parameters.ts +463 -0
- package/src/chain.ts +4 -3
- package/src/channel/Base.ts +5 -5
- package/src/channel/internal.ts +2 -0
- package/src/contract/Contract.ts +2 -1
- package/src/contract/compiler/Base.ts +26 -0
- package/src/contract/compiler/Cli.ts +27 -3
- package/src/contract/compiler/Http.ts +21 -2
- package/src/contract/compiler/HttpNode.ts +6 -0
- package/src/contract/delegation-signature.ts +37 -11
- package/src/deprecated.ts +23 -0
- package/src/index-browser.ts +77 -15
- package/src/spend.ts +2 -2
- package/src/tx/builder/constants.ts +0 -1
- package/src/tx/builder/field-types/coin-amount.ts +2 -1
- package/src/tx/builder/field-types/entry.ts +1 -1
- package/src/tx/builder/field-types/index.ts +28 -58
- package/src/tx/builder/field-types/u-int.ts +1 -1
- package/src/tx/builder/helpers.ts +54 -9
- package/src/tx/builder/index.ts +6 -9
- package/src/tx/validator.ts +4 -2
- package/src/utils/autorest.ts +5 -10
- package/src/utils/crypto.ts +12 -2
- package/src/utils/errors.ts +2 -2
- package/src/utils/other.ts +5 -0
- package/src/utils/typed-data.ts +95 -0
- package/types-legacy/ts4.2/AeSdkBase.d.ts +21 -3
- package/types-legacy/ts4.2/AeSdkMethods.d.ts +9 -14
- package/types-legacy/ts4.2/AeSdkWallet.d.ts +1 -1
- package/types-legacy/ts4.2/Middleware.d.ts +46 -0
- package/types-legacy/ts4.2/MiddlewareSubscriber.d.ts +30 -0
- package/types-legacy/ts4.2/Node.d.ts +1 -1
- package/types-legacy/ts4.2/account/Base.d.ts +57 -3
- package/types-legacy/ts4.2/account/Generalized.d.ts +4 -0
- package/types-legacy/ts4.2/account/Ledger.d.ts +4 -0
- package/types-legacy/ts4.2/account/Memory.d.ts +12 -0
- package/types-legacy/ts4.2/account/Rpc.d.ts +5 -6
- package/types-legacy/ts4.2/aens.d.ts +1 -1
- package/types-legacy/ts4.2/aepp-wallet-communication/rpc/types.d.ts +19 -0
- package/types-legacy/ts4.2/aepp-wallet-communication/schema.d.ts +2 -8
- package/types-legacy/ts4.2/aepp-wallet-communication/wallet-detector.d.ts +1 -1
- package/types-legacy/ts4.2/apis/compiler/models/index.d.ts +1 -7
- package/types-legacy/ts4.2/apis/compiler/models/mappers.d.ts +0 -1
- package/types-legacy/ts4.2/apis/middleware/index.d.ts +2 -0
- package/types-legacy/ts4.2/apis/middleware/middleware.d.ts +309 -0
- package/types-legacy/ts4.2/apis/middleware/models/index.d.ts +1496 -0
- package/types-legacy/ts4.2/apis/middleware/models/mappers.d.ts +102 -0
- package/types-legacy/ts4.2/apis/middleware/models/parameters.d.ts +43 -0
- package/types-legacy/ts4.2/chain.d.ts +2 -1
- package/types-legacy/ts4.2/channel/Base.d.ts +1 -1
- package/types-legacy/ts4.2/contract/compiler/Base.d.ts +21 -0
- package/types-legacy/ts4.2/contract/compiler/Cli.d.ts +2 -0
- package/types-legacy/ts4.2/contract/compiler/Http.d.ts +2 -0
- package/types-legacy/ts4.2/contract/compiler/HttpNode.d.ts +1 -0
- package/types-legacy/ts4.2/contract/delegation-signature.d.ts +2 -1
- package/types-legacy/ts4.2/deprecated.d.ts +14 -0
- package/types-legacy/ts4.2/index-browser.d.ts +20 -14
- package/types-legacy/ts4.2/spend.d.ts +2 -1
- package/types-legacy/ts4.2/tx/builder/constants.d.ts +0 -1
- package/types-legacy/ts4.2/tx/builder/field-types/coin-amount.d.ts +1 -1
- package/types-legacy/ts4.2/tx/builder/field-types/deposit.d.ts +1 -1
- package/types-legacy/ts4.2/tx/builder/field-types/index.d.ts +28 -153
- package/types-legacy/ts4.2/tx/builder/helpers.d.ts +8 -1
- package/types-legacy/ts4.2/tx/builder/index.d.ts +4 -2
- package/types-legacy/ts4.2/tx/builder/schema.d.ts +9 -9
- package/types-legacy/ts4.2/utils/crypto.d.ts +1 -0
- package/types-legacy/ts4.2/utils/errors.d.ts +2 -2
- package/types-legacy/ts4.2/utils/other.d.ts +1 -0
- package/types-legacy/ts4.2/utils/typed-data.d.ts +60 -0
- package/types-legacy/ts4.5/AeSdkBase.d.ts +21 -3
- package/types-legacy/ts4.5/AeSdkMethods.d.ts +9 -14
- package/types-legacy/ts4.5/AeSdkWallet.d.ts +1 -1
- package/types-legacy/ts4.5/Middleware.d.ts +46 -0
- package/types-legacy/ts4.5/MiddlewareSubscriber.d.ts +30 -0
- package/types-legacy/ts4.5/Node.d.ts +1 -1
- package/types-legacy/ts4.5/account/Base.d.ts +57 -3
- package/types-legacy/ts4.5/account/Generalized.d.ts +4 -0
- package/types-legacy/ts4.5/account/Ledger.d.ts +4 -0
- package/types-legacy/ts4.5/account/Memory.d.ts +12 -0
- package/types-legacy/ts4.5/account/Rpc.d.ts +5 -6
- package/types-legacy/ts4.5/aens.d.ts +1 -1
- package/types-legacy/ts4.5/aepp-wallet-communication/rpc/types.d.ts +19 -0
- package/types-legacy/ts4.5/aepp-wallet-communication/schema.d.ts +2 -8
- package/types-legacy/ts4.5/aepp-wallet-communication/wallet-detector.d.ts +1 -1
- package/types-legacy/ts4.5/apis/compiler/models/index.d.ts +1 -7
- package/types-legacy/ts4.5/apis/compiler/models/mappers.d.ts +0 -1
- package/types-legacy/ts4.5/apis/middleware/index.d.ts +2 -0
- package/types-legacy/ts4.5/apis/middleware/middleware.d.ts +309 -0
- package/types-legacy/ts4.5/apis/middleware/models/index.d.ts +1496 -0
- package/types-legacy/ts4.5/apis/middleware/models/mappers.d.ts +102 -0
- package/types-legacy/ts4.5/apis/middleware/models/parameters.d.ts +43 -0
- package/types-legacy/ts4.5/chain.d.ts +2 -1
- package/types-legacy/ts4.5/channel/Base.d.ts +1 -1
- package/types-legacy/ts4.5/contract/compiler/Base.d.ts +21 -0
- package/types-legacy/ts4.5/contract/compiler/Cli.d.ts +2 -0
- package/types-legacy/ts4.5/contract/compiler/Http.d.ts +2 -0
- package/types-legacy/ts4.5/contract/compiler/HttpNode.d.ts +1 -0
- package/types-legacy/ts4.5/contract/delegation-signature.d.ts +2 -1
- package/types-legacy/ts4.5/deprecated.d.ts +14 -0
- package/types-legacy/ts4.5/index-browser.d.ts +20 -14
- package/types-legacy/ts4.5/spend.d.ts +2 -1
- package/types-legacy/ts4.5/tx/builder/constants.d.ts +0 -1
- package/types-legacy/ts4.5/tx/builder/field-types/coin-amount.d.ts +1 -1
- package/types-legacy/ts4.5/tx/builder/field-types/deposit.d.ts +1 -1
- package/types-legacy/ts4.5/tx/builder/field-types/index.d.ts +28 -153
- package/types-legacy/ts4.5/tx/builder/helpers.d.ts +8 -1
- package/types-legacy/ts4.5/tx/builder/index.d.ts +4 -2
- package/types-legacy/ts4.5/tx/builder/schema.d.ts +9 -9
- package/types-legacy/ts4.5/utils/crypto.d.ts +1 -0
- package/types-legacy/ts4.5/utils/errors.d.ts +2 -2
- package/types-legacy/ts4.5/utils/other.d.ts +1 -0
- package/types-legacy/ts4.5/utils/typed-data.d.ts +60 -0
|
@@ -0,0 +1,1807 @@
|
|
|
1
|
+
import * as coreClient from "@azure/core-client";
|
|
2
|
+
import * as Parameters from "./models/parameters";
|
|
3
|
+
import * as Mappers from "./models/mappers";
|
|
4
|
+
import {
|
|
5
|
+
Enum1,
|
|
6
|
+
MiddlewareOptionalParams,
|
|
7
|
+
GetAccountActivitiesOptionalParams,
|
|
8
|
+
GetAccountActivitiesResponse,
|
|
9
|
+
GetSortedAex141ContractsOptionalParams,
|
|
10
|
+
GetSortedAex141ContractsResponse,
|
|
11
|
+
GetAex141OwnedTokensOptionalParams,
|
|
12
|
+
GetAex141OwnedTokensResponse,
|
|
13
|
+
GetAex141TokenOwnerOptionalParams,
|
|
14
|
+
GetAex141TokenOwnerResponse,
|
|
15
|
+
GetAex141ContractOwnersOptionalParams,
|
|
16
|
+
GetAex141ContractOwnersResponse,
|
|
17
|
+
GetAex141ContractTemplatesOptionalParams,
|
|
18
|
+
GetAex141ContractTemplatesResponse,
|
|
19
|
+
GetAex141TemplateTokensOptionalParams,
|
|
20
|
+
GetAex141TemplateTokensResponse,
|
|
21
|
+
GetAex141ByContractOptionalParams,
|
|
22
|
+
GetAex141ByContractResponse,
|
|
23
|
+
GetSortedAex9TokensOptionalParams,
|
|
24
|
+
GetSortedAex9TokensResponse,
|
|
25
|
+
GetAex9AccountBalancesOptionalParams,
|
|
26
|
+
GetAex9AccountBalancesResponse,
|
|
27
|
+
GetAex9TokensCountOptionalParams,
|
|
28
|
+
GetAex9TokensCountResponse,
|
|
29
|
+
GetAex9PairTransfersOptionalParams,
|
|
30
|
+
GetAex9PairTransfersResponse,
|
|
31
|
+
GetAex9SenderTransfersOptionalParams,
|
|
32
|
+
GetAex9SenderTransfersResponse,
|
|
33
|
+
GetAex9RecipientTransfersOptionalParams,
|
|
34
|
+
GetAex9RecipientTransfersResponse,
|
|
35
|
+
GetAex9ContractBalancesOptionalParams,
|
|
36
|
+
GetAex9ContractBalancesResponse,
|
|
37
|
+
GetAex9ContractAccountBalanceOptionalParams,
|
|
38
|
+
GetAex9ContractAccountBalanceResponse,
|
|
39
|
+
GetAex9ContractAccountBalanceHistoryOptionalParams,
|
|
40
|
+
GetAex9ContractAccountBalanceHistoryResponse,
|
|
41
|
+
GetAex9LogsCountOptionalParams,
|
|
42
|
+
GetAex9LogsCountResponse,
|
|
43
|
+
GetAex9ByContractOptionalParams,
|
|
44
|
+
GetAex9ByContractResponse,
|
|
45
|
+
GetBlocksOptionalParams,
|
|
46
|
+
GetBlocksResponse,
|
|
47
|
+
GetBlockOptionalParams,
|
|
48
|
+
GetBlockResponse,
|
|
49
|
+
GetBlockByMbiOptionalParams,
|
|
50
|
+
GetBlockByMbiResponse,
|
|
51
|
+
GetChannelsOptionalParams,
|
|
52
|
+
GetChannelsResponse,
|
|
53
|
+
GetChannelOptionalParams,
|
|
54
|
+
GetChannelResponse,
|
|
55
|
+
GetContractsCallsOptionalParams,
|
|
56
|
+
GetContractsCallsResponse,
|
|
57
|
+
GetContractsLogsOptionalParams,
|
|
58
|
+
GetContractsLogsResponse,
|
|
59
|
+
GetDeltastatsOptionalParams,
|
|
60
|
+
GetDeltastatsResponse,
|
|
61
|
+
GetKeyBlocksOptionalParams,
|
|
62
|
+
GetKeyBlocksResponse,
|
|
63
|
+
GetKeyBlockOptionalParams,
|
|
64
|
+
GetKeyBlockResponse,
|
|
65
|
+
GetKeyBlockMicroBlocksOptionalParams,
|
|
66
|
+
GetKeyBlockMicroBlocksResponse,
|
|
67
|
+
GetMicroBlockOptionalParams,
|
|
68
|
+
GetMicroBlockResponse,
|
|
69
|
+
GetMicroBlockTransactionsOptionalParams,
|
|
70
|
+
GetMicroBlockTransactionsResponse,
|
|
71
|
+
GetNamesOptionalParams,
|
|
72
|
+
GetNamesResponse,
|
|
73
|
+
GetNamesAuctionsOptionalParams,
|
|
74
|
+
GetNamesAuctionsResponse,
|
|
75
|
+
SearchNamesOptionalParams,
|
|
76
|
+
SearchNamesResponse,
|
|
77
|
+
GetNameOptionalParams,
|
|
78
|
+
GetNameResponse,
|
|
79
|
+
GetNameAuctionOptionalParams,
|
|
80
|
+
GetNameAuctionResponse,
|
|
81
|
+
GetNameClaimsOptionalParams,
|
|
82
|
+
GetNameClaimsResponse,
|
|
83
|
+
GetNamePointeesOptionalParams,
|
|
84
|
+
GetNamePointeesResponse,
|
|
85
|
+
GetNamePointersOptionalParams,
|
|
86
|
+
GetNamePointersResponse,
|
|
87
|
+
GetNameTransfersOptionalParams,
|
|
88
|
+
GetNameTransfersResponse,
|
|
89
|
+
GetNameUpdatesOptionalParams,
|
|
90
|
+
GetNameUpdatesResponse,
|
|
91
|
+
GetOracleOptionalParams,
|
|
92
|
+
GetOracleResponse,
|
|
93
|
+
GetOraclesOptionalParams,
|
|
94
|
+
GetOraclesResponse,
|
|
95
|
+
GetStatusOptionalParams,
|
|
96
|
+
GetStatusResponse,
|
|
97
|
+
GetTotalstatsOptionalParams,
|
|
98
|
+
GetTotalstatsResponse,
|
|
99
|
+
GetTransfersOptionalParams,
|
|
100
|
+
GetTransfersResponse,
|
|
101
|
+
GetTxsOptionalParams,
|
|
102
|
+
GetTxsResponse,
|
|
103
|
+
GetTxCountOptionalParams,
|
|
104
|
+
GetTxCountResponse,
|
|
105
|
+
GetTxCountByIdOptionalParams,
|
|
106
|
+
GetTxCountByIdResponse,
|
|
107
|
+
GetTxOptionalParams,
|
|
108
|
+
GetTxResponse
|
|
109
|
+
} from "./models";
|
|
110
|
+
|
|
111
|
+
export class Middleware extends coreClient.ServiceClient {
|
|
112
|
+
$host: string;
|
|
113
|
+
limit?: number;
|
|
114
|
+
scope?: string;
|
|
115
|
+
direction?: Enum1;
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Initializes a new instance of the Middleware class.
|
|
119
|
+
* @param $host server parameter
|
|
120
|
+
* @param options The parameter options
|
|
121
|
+
*/
|
|
122
|
+
constructor($host: string, options?: MiddlewareOptionalParams) {
|
|
123
|
+
if ($host === undefined) {
|
|
124
|
+
throw new Error("'$host' cannot be null");
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
// Initializing default values for options
|
|
128
|
+
if (!options) {
|
|
129
|
+
options = {};
|
|
130
|
+
}
|
|
131
|
+
const defaults: MiddlewareOptionalParams = {
|
|
132
|
+
requestContentType: "application/json; charset=utf-8"
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
const packageDetails = `azsdk-js-middleware/1.0.0-beta.1`;
|
|
136
|
+
const userAgentPrefix =
|
|
137
|
+
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
138
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
139
|
+
: `${packageDetails}`;
|
|
140
|
+
|
|
141
|
+
const optionsWithDefaults = {
|
|
142
|
+
...defaults,
|
|
143
|
+
...options,
|
|
144
|
+
userAgentOptions: {
|
|
145
|
+
userAgentPrefix
|
|
146
|
+
},
|
|
147
|
+
endpoint: options.endpoint ?? options.baseUri ?? "{$host}"
|
|
148
|
+
};
|
|
149
|
+
super(optionsWithDefaults);
|
|
150
|
+
// Parameter assignments
|
|
151
|
+
this.$host = $host;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Get an account activities.
|
|
156
|
+
* @param id The account address
|
|
157
|
+
* @param options The options parameters.
|
|
158
|
+
*/
|
|
159
|
+
getAccountActivities(
|
|
160
|
+
id: string,
|
|
161
|
+
options?: GetAccountActivitiesOptionalParams
|
|
162
|
+
): Promise<GetAccountActivitiesResponse> {
|
|
163
|
+
return this.sendOperationRequest(
|
|
164
|
+
{ id, options },
|
|
165
|
+
getAccountActivitiesOperationSpec
|
|
166
|
+
);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Get AEX141 contracts sorted by name or symbol.
|
|
171
|
+
* @param options The options parameters.
|
|
172
|
+
*/
|
|
173
|
+
getSortedAex141Contracts(
|
|
174
|
+
options?: GetSortedAex141ContractsOptionalParams
|
|
175
|
+
): Promise<GetSortedAex141ContractsResponse> {
|
|
176
|
+
return this.sendOperationRequest(
|
|
177
|
+
{ options },
|
|
178
|
+
getSortedAex141ContractsOperationSpec
|
|
179
|
+
);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Get tokens owned by an account.
|
|
184
|
+
* @param accountId The account id
|
|
185
|
+
* @param options The options parameters.
|
|
186
|
+
*/
|
|
187
|
+
getAex141OwnedTokens(
|
|
188
|
+
accountId: string,
|
|
189
|
+
options?: GetAex141OwnedTokensOptionalParams
|
|
190
|
+
): Promise<GetAex141OwnedTokensResponse> {
|
|
191
|
+
return this.sendOperationRequest(
|
|
192
|
+
{ accountId, options },
|
|
193
|
+
getAex141OwnedTokensOperationSpec
|
|
194
|
+
);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* Get owner of a NFT (AEX-141 token).
|
|
199
|
+
* @param contractId The contract id
|
|
200
|
+
* @param tokenId The nft token id
|
|
201
|
+
* @param options The options parameters.
|
|
202
|
+
*/
|
|
203
|
+
getAex141TokenOwner(
|
|
204
|
+
contractId: string,
|
|
205
|
+
tokenId: number,
|
|
206
|
+
options?: GetAex141TokenOwnerOptionalParams
|
|
207
|
+
): Promise<GetAex141TokenOwnerResponse> {
|
|
208
|
+
return this.sendOperationRequest(
|
|
209
|
+
{ contractId, tokenId, options },
|
|
210
|
+
getAex141TokenOwnerOperationSpec
|
|
211
|
+
);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* Get owners of tokens of a AEX-141 contract.
|
|
216
|
+
* @param contractId The contract id
|
|
217
|
+
* @param options The options parameters.
|
|
218
|
+
*/
|
|
219
|
+
getAex141ContractOwners(
|
|
220
|
+
contractId: string,
|
|
221
|
+
options?: GetAex141ContractOwnersOptionalParams
|
|
222
|
+
): Promise<GetAex141ContractOwnersResponse> {
|
|
223
|
+
return this.sendOperationRequest(
|
|
224
|
+
{ contractId, options },
|
|
225
|
+
getAex141ContractOwnersOperationSpec
|
|
226
|
+
);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* Get templates AEX-141 contract tokens.
|
|
231
|
+
* @param contractId The contract id
|
|
232
|
+
* @param options The options parameters.
|
|
233
|
+
*/
|
|
234
|
+
getAex141ContractTemplates(
|
|
235
|
+
contractId: string,
|
|
236
|
+
options?: GetAex141ContractTemplatesOptionalParams
|
|
237
|
+
): Promise<GetAex141ContractTemplatesResponse> {
|
|
238
|
+
return this.sendOperationRequest(
|
|
239
|
+
{ contractId, options },
|
|
240
|
+
getAex141ContractTemplatesOperationSpec
|
|
241
|
+
);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* Get AEX-141 template tokens.
|
|
246
|
+
* @param contractId Contract id
|
|
247
|
+
* @param templateId Template id
|
|
248
|
+
* @param options The options parameters.
|
|
249
|
+
*/
|
|
250
|
+
getAex141TemplateTokens(
|
|
251
|
+
contractId: string,
|
|
252
|
+
templateId: number,
|
|
253
|
+
options?: GetAex141TemplateTokensOptionalParams
|
|
254
|
+
): Promise<GetAex141TemplateTokensResponse> {
|
|
255
|
+
return this.sendOperationRequest(
|
|
256
|
+
{ contractId, templateId, options },
|
|
257
|
+
getAex141TemplateTokensOperationSpec
|
|
258
|
+
);
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* Get AEX141 contract meta-info, extensions, limits and stats.
|
|
263
|
+
* @param id The contract id
|
|
264
|
+
* @param options The options parameters.
|
|
265
|
+
*/
|
|
266
|
+
getAex141ByContract(
|
|
267
|
+
id: string,
|
|
268
|
+
options?: GetAex141ByContractOptionalParams
|
|
269
|
+
): Promise<GetAex141ByContractResponse> {
|
|
270
|
+
return this.sendOperationRequest(
|
|
271
|
+
{ id, options },
|
|
272
|
+
getAex141ByContractOperationSpec
|
|
273
|
+
);
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* Get AEX9 tokens sorted by name or symbol.
|
|
278
|
+
* @param options The options parameters.
|
|
279
|
+
*/
|
|
280
|
+
getSortedAex9Tokens(
|
|
281
|
+
options?: GetSortedAex9TokensOptionalParams
|
|
282
|
+
): Promise<GetSortedAex9TokensResponse> {
|
|
283
|
+
return this.sendOperationRequest(
|
|
284
|
+
{ options },
|
|
285
|
+
getSortedAex9TokensOperationSpec
|
|
286
|
+
);
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* Get all AEX9 balances for an account on the last block.
|
|
291
|
+
* @param accountId Account id
|
|
292
|
+
* @param options The options parameters.
|
|
293
|
+
*/
|
|
294
|
+
getAex9AccountBalances(
|
|
295
|
+
accountId: string,
|
|
296
|
+
options?: GetAex9AccountBalancesOptionalParams
|
|
297
|
+
): Promise<GetAex9AccountBalancesResponse> {
|
|
298
|
+
return this.sendOperationRequest(
|
|
299
|
+
{ accountId, options },
|
|
300
|
+
getAex9AccountBalancesOperationSpec
|
|
301
|
+
);
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* Get AEX9 tokens count.
|
|
306
|
+
* @param options The options parameters.
|
|
307
|
+
*/
|
|
308
|
+
getAex9TokensCount(
|
|
309
|
+
options?: GetAex9TokensCountOptionalParams
|
|
310
|
+
): Promise<GetAex9TokensCountResponse> {
|
|
311
|
+
return this.sendOperationRequest(
|
|
312
|
+
{ options },
|
|
313
|
+
getAex9TokensCountOperationSpec
|
|
314
|
+
);
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* Get AEX9 transfers filtered by sender and recipient.
|
|
319
|
+
* @param sender Sender account id
|
|
320
|
+
* @param recipient Recipient account id
|
|
321
|
+
* @param options The options parameters.
|
|
322
|
+
*/
|
|
323
|
+
getAex9PairTransfers(
|
|
324
|
+
sender: string,
|
|
325
|
+
recipient: string,
|
|
326
|
+
options?: GetAex9PairTransfersOptionalParams
|
|
327
|
+
): Promise<GetAex9PairTransfersResponse> {
|
|
328
|
+
return this.sendOperationRequest(
|
|
329
|
+
{ sender, recipient, options },
|
|
330
|
+
getAex9PairTransfersOperationSpec
|
|
331
|
+
);
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* Get AEX9 transfers filtered by sender.
|
|
336
|
+
* @param id Sender account id
|
|
337
|
+
* @param options The options parameters.
|
|
338
|
+
*/
|
|
339
|
+
getAex9SenderTransfers(
|
|
340
|
+
id: string,
|
|
341
|
+
options?: GetAex9SenderTransfersOptionalParams
|
|
342
|
+
): Promise<GetAex9SenderTransfersResponse> {
|
|
343
|
+
return this.sendOperationRequest(
|
|
344
|
+
{ id, options },
|
|
345
|
+
getAex9SenderTransfersOperationSpec
|
|
346
|
+
);
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
/**
|
|
350
|
+
* Get AEX9 transfers filtered by recipient.
|
|
351
|
+
* @param id Recipient account id
|
|
352
|
+
* @param options The options parameters.
|
|
353
|
+
*/
|
|
354
|
+
getAex9RecipientTransfers(
|
|
355
|
+
id: string,
|
|
356
|
+
options?: GetAex9RecipientTransfersOptionalParams
|
|
357
|
+
): Promise<GetAex9RecipientTransfersResponse> {
|
|
358
|
+
return this.sendOperationRequest(
|
|
359
|
+
{ id, options },
|
|
360
|
+
getAex9RecipientTransfersOperationSpec
|
|
361
|
+
);
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
/**
|
|
365
|
+
* Get AEX9 balances on a contract.
|
|
366
|
+
* @param contractId Contract id
|
|
367
|
+
* @param options The options parameters.
|
|
368
|
+
*/
|
|
369
|
+
getAex9ContractBalances(
|
|
370
|
+
contractId: string,
|
|
371
|
+
options?: GetAex9ContractBalancesOptionalParams
|
|
372
|
+
): Promise<GetAex9ContractBalancesResponse> {
|
|
373
|
+
return this.sendOperationRequest(
|
|
374
|
+
{ contractId, options },
|
|
375
|
+
getAex9ContractBalancesOperationSpec
|
|
376
|
+
);
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
/**
|
|
380
|
+
* Get AEX9 balance for an account on a contract.
|
|
381
|
+
* @param contractId Contract id
|
|
382
|
+
* @param accountId Account id
|
|
383
|
+
* @param hash Block hash
|
|
384
|
+
* @param options The options parameters.
|
|
385
|
+
*/
|
|
386
|
+
getAex9ContractAccountBalance(
|
|
387
|
+
contractId: string,
|
|
388
|
+
accountId: string,
|
|
389
|
+
hash: string,
|
|
390
|
+
options?: GetAex9ContractAccountBalanceOptionalParams
|
|
391
|
+
): Promise<GetAex9ContractAccountBalanceResponse> {
|
|
392
|
+
return this.sendOperationRequest(
|
|
393
|
+
{ contractId, accountId, hash, options },
|
|
394
|
+
getAex9ContractAccountBalanceOperationSpec
|
|
395
|
+
);
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
/**
|
|
399
|
+
* Get AEX9 account balance on a contract throughout all heights when changed.
|
|
400
|
+
* @param contractId Contract id
|
|
401
|
+
* @param accountId Account id
|
|
402
|
+
* @param options The options parameters.
|
|
403
|
+
*/
|
|
404
|
+
getAex9ContractAccountBalanceHistory(
|
|
405
|
+
contractId: string,
|
|
406
|
+
accountId: string,
|
|
407
|
+
options?: GetAex9ContractAccountBalanceHistoryOptionalParams
|
|
408
|
+
): Promise<GetAex9ContractAccountBalanceHistoryResponse> {
|
|
409
|
+
return this.sendOperationRequest(
|
|
410
|
+
{ contractId, accountId, options },
|
|
411
|
+
getAex9ContractAccountBalanceHistoryOperationSpec
|
|
412
|
+
);
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
/**
|
|
416
|
+
* Get AEX9 token events count.
|
|
417
|
+
* @param contractId Contract id
|
|
418
|
+
* @param options The options parameters.
|
|
419
|
+
*/
|
|
420
|
+
getAex9LogsCount(
|
|
421
|
+
contractId: string,
|
|
422
|
+
options?: GetAex9LogsCountOptionalParams
|
|
423
|
+
): Promise<GetAex9LogsCountResponse> {
|
|
424
|
+
return this.sendOperationRequest(
|
|
425
|
+
{ contractId, options },
|
|
426
|
+
getAex9LogsCountOperationSpec
|
|
427
|
+
);
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
* Get AEX9 creation and meta_info information by contract id.
|
|
432
|
+
* @param id The contract id
|
|
433
|
+
* @param options The options parameters.
|
|
434
|
+
*/
|
|
435
|
+
getAex9ByContract(
|
|
436
|
+
id: string,
|
|
437
|
+
options?: GetAex9ByContractOptionalParams
|
|
438
|
+
): Promise<GetAex9ByContractResponse> {
|
|
439
|
+
return this.sendOperationRequest(
|
|
440
|
+
{ id, options },
|
|
441
|
+
getAex9ByContractOperationSpec
|
|
442
|
+
);
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
/**
|
|
446
|
+
* Get multiple blocks.
|
|
447
|
+
* @param options The options parameters.
|
|
448
|
+
*/
|
|
449
|
+
getBlocks(options?: GetBlocksOptionalParams): Promise<GetBlocksResponse> {
|
|
450
|
+
return this.sendOperationRequest({ options }, getBlocksOperationSpec);
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
/**
|
|
454
|
+
* Get a single block.
|
|
455
|
+
* @param hashOrKbi The block encoded hash or key block index
|
|
456
|
+
* @param options The options parameters.
|
|
457
|
+
*/
|
|
458
|
+
getBlock(
|
|
459
|
+
hashOrKbi: string,
|
|
460
|
+
options?: GetBlockOptionalParams
|
|
461
|
+
): Promise<GetBlockResponse> {
|
|
462
|
+
return this.sendOperationRequest(
|
|
463
|
+
{ hashOrKbi, options },
|
|
464
|
+
getBlockOperationSpec
|
|
465
|
+
);
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
/**
|
|
469
|
+
* Get a single block.
|
|
470
|
+
* @param kbi The block key block index
|
|
471
|
+
* @param mbi The block micro block index, starting from 0
|
|
472
|
+
* @param options The options parameters.
|
|
473
|
+
*/
|
|
474
|
+
getBlockByMbi(
|
|
475
|
+
kbi: number,
|
|
476
|
+
mbi: number,
|
|
477
|
+
options?: GetBlockByMbiOptionalParams
|
|
478
|
+
): Promise<GetBlockByMbiResponse> {
|
|
479
|
+
return this.sendOperationRequest(
|
|
480
|
+
{ kbi, mbi, options },
|
|
481
|
+
getBlockByMbiOperationSpec
|
|
482
|
+
);
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
/**
|
|
486
|
+
* Get multiple channels.
|
|
487
|
+
* @param options The options parameters.
|
|
488
|
+
*/
|
|
489
|
+
getChannels(
|
|
490
|
+
options?: GetChannelsOptionalParams
|
|
491
|
+
): Promise<GetChannelsResponse> {
|
|
492
|
+
return this.sendOperationRequest({ options }, getChannelsOperationSpec);
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
/**
|
|
496
|
+
* Get a single channel.
|
|
497
|
+
* @param id The channel
|
|
498
|
+
* @param options The options parameters.
|
|
499
|
+
*/
|
|
500
|
+
getChannel(
|
|
501
|
+
id: string,
|
|
502
|
+
options?: GetChannelOptionalParams
|
|
503
|
+
): Promise<GetChannelResponse> {
|
|
504
|
+
return this.sendOperationRequest({ id, options }, getChannelOperationSpec);
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
/**
|
|
508
|
+
* Get contract calls.
|
|
509
|
+
* @param options The options parameters.
|
|
510
|
+
*/
|
|
511
|
+
getContractsCalls(
|
|
512
|
+
options?: GetContractsCallsOptionalParams
|
|
513
|
+
): Promise<GetContractsCallsResponse> {
|
|
514
|
+
return this.sendOperationRequest(
|
|
515
|
+
{ options },
|
|
516
|
+
getContractsCallsOperationSpec
|
|
517
|
+
);
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
/**
|
|
521
|
+
* Get contract logs.
|
|
522
|
+
* @param options The options parameters.
|
|
523
|
+
*/
|
|
524
|
+
getContractsLogs(
|
|
525
|
+
options?: GetContractsLogsOptionalParams
|
|
526
|
+
): Promise<GetContractsLogsResponse> {
|
|
527
|
+
return this.sendOperationRequest(
|
|
528
|
+
{ options },
|
|
529
|
+
getContractsLogsOperationSpec
|
|
530
|
+
);
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
/**
|
|
534
|
+
* Get delta stats.
|
|
535
|
+
* @param options The options parameters.
|
|
536
|
+
*/
|
|
537
|
+
getDeltastats(
|
|
538
|
+
options?: GetDeltastatsOptionalParams
|
|
539
|
+
): Promise<GetDeltastatsResponse> {
|
|
540
|
+
return this.sendOperationRequest({ options }, getDeltastatsOperationSpec);
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
/**
|
|
544
|
+
* Get multiple key blocks.
|
|
545
|
+
* @param options The options parameters.
|
|
546
|
+
*/
|
|
547
|
+
getKeyBlocks(
|
|
548
|
+
options?: GetKeyBlocksOptionalParams
|
|
549
|
+
): Promise<GetKeyBlocksResponse> {
|
|
550
|
+
return this.sendOperationRequest({ options }, getKeyBlocksOperationSpec);
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
/**
|
|
554
|
+
* Get a single key block.
|
|
555
|
+
* @param hashOrKbi The key block encoded hash or key block index
|
|
556
|
+
* @param options The options parameters.
|
|
557
|
+
*/
|
|
558
|
+
getKeyBlock(
|
|
559
|
+
hashOrKbi: string,
|
|
560
|
+
options?: GetKeyBlockOptionalParams
|
|
561
|
+
): Promise<GetKeyBlockResponse> {
|
|
562
|
+
return this.sendOperationRequest(
|
|
563
|
+
{ hashOrKbi, options },
|
|
564
|
+
getKeyBlockOperationSpec
|
|
565
|
+
);
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
/**
|
|
569
|
+
* Get the key block micro blocks.
|
|
570
|
+
* @param hashOrKbi The key block encoded hash or key block index
|
|
571
|
+
* @param options The options parameters.
|
|
572
|
+
*/
|
|
573
|
+
getKeyBlockMicroBlocks(
|
|
574
|
+
hashOrKbi: string,
|
|
575
|
+
options?: GetKeyBlockMicroBlocksOptionalParams
|
|
576
|
+
): Promise<GetKeyBlockMicroBlocksResponse> {
|
|
577
|
+
return this.sendOperationRequest(
|
|
578
|
+
{ hashOrKbi, options },
|
|
579
|
+
getKeyBlockMicroBlocksOperationSpec
|
|
580
|
+
);
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
/**
|
|
584
|
+
* Get a micro block
|
|
585
|
+
* @param hash The micro block encoded hash
|
|
586
|
+
* @param options The options parameters.
|
|
587
|
+
*/
|
|
588
|
+
getMicroBlock(
|
|
589
|
+
hash: string,
|
|
590
|
+
options?: GetMicroBlockOptionalParams
|
|
591
|
+
): Promise<GetMicroBlockResponse> {
|
|
592
|
+
return this.sendOperationRequest(
|
|
593
|
+
{ hash, options },
|
|
594
|
+
getMicroBlockOperationSpec
|
|
595
|
+
);
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
/**
|
|
599
|
+
* Get a micro block transactions
|
|
600
|
+
* @param hash The micro block encoded hash
|
|
601
|
+
* @param options The options parameters.
|
|
602
|
+
*/
|
|
603
|
+
getMicroBlockTransactions(
|
|
604
|
+
hash: string,
|
|
605
|
+
options?: GetMicroBlockTransactionsOptionalParams
|
|
606
|
+
): Promise<GetMicroBlockTransactionsResponse> {
|
|
607
|
+
return this.sendOperationRequest(
|
|
608
|
+
{ hash, options },
|
|
609
|
+
getMicroBlockTransactionsOperationSpec
|
|
610
|
+
);
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
/**
|
|
614
|
+
* Get multiple names.
|
|
615
|
+
* @param options The options parameters.
|
|
616
|
+
*/
|
|
617
|
+
getNames(options?: GetNamesOptionalParams): Promise<GetNamesResponse> {
|
|
618
|
+
return this.sendOperationRequest({ options }, getNamesOperationSpec);
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
/**
|
|
622
|
+
* Get multiple names.
|
|
623
|
+
* @param options The options parameters.
|
|
624
|
+
*/
|
|
625
|
+
getNamesAuctions(
|
|
626
|
+
options?: GetNamesAuctionsOptionalParams
|
|
627
|
+
): Promise<GetNamesAuctionsResponse> {
|
|
628
|
+
return this.sendOperationRequest(
|
|
629
|
+
{ options },
|
|
630
|
+
getNamesAuctionsOperationSpec
|
|
631
|
+
);
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
/**
|
|
635
|
+
* Get multiple names.
|
|
636
|
+
* @param options The options parameters.
|
|
637
|
+
*/
|
|
638
|
+
searchNames(
|
|
639
|
+
options?: SearchNamesOptionalParams
|
|
640
|
+
): Promise<SearchNamesResponse> {
|
|
641
|
+
return this.sendOperationRequest({ options }, searchNamesOperationSpec);
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
/**
|
|
645
|
+
* Get a single name.
|
|
646
|
+
* @param id The name
|
|
647
|
+
* @param options The options parameters.
|
|
648
|
+
*/
|
|
649
|
+
getName(
|
|
650
|
+
id: string,
|
|
651
|
+
options?: GetNameOptionalParams
|
|
652
|
+
): Promise<GetNameResponse> {
|
|
653
|
+
return this.sendOperationRequest({ id, options }, getNameOperationSpec);
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
/**
|
|
657
|
+
* Get name auction
|
|
658
|
+
* @param id The name
|
|
659
|
+
* @param options The options parameters.
|
|
660
|
+
*/
|
|
661
|
+
getNameAuction(
|
|
662
|
+
id: string,
|
|
663
|
+
options?: GetNameAuctionOptionalParams
|
|
664
|
+
): Promise<GetNameAuctionResponse> {
|
|
665
|
+
return this.sendOperationRequest(
|
|
666
|
+
{ id, options },
|
|
667
|
+
getNameAuctionOperationSpec
|
|
668
|
+
);
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
/**
|
|
672
|
+
* Get name claims
|
|
673
|
+
* @param id The name or name hash
|
|
674
|
+
* @param options The options parameters.
|
|
675
|
+
*/
|
|
676
|
+
getNameClaims(
|
|
677
|
+
id: string,
|
|
678
|
+
options?: GetNameClaimsOptionalParams
|
|
679
|
+
): Promise<GetNameClaimsResponse> {
|
|
680
|
+
return this.sendOperationRequest(
|
|
681
|
+
{ id, options },
|
|
682
|
+
getNameClaimsOperationSpec
|
|
683
|
+
);
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
/**
|
|
687
|
+
* Get name pointees
|
|
688
|
+
* @param id The name
|
|
689
|
+
* @param options The options parameters.
|
|
690
|
+
*/
|
|
691
|
+
getNamePointees(
|
|
692
|
+
id: string,
|
|
693
|
+
options?: GetNamePointeesOptionalParams
|
|
694
|
+
): Promise<GetNamePointeesResponse> {
|
|
695
|
+
return this.sendOperationRequest(
|
|
696
|
+
{ id, options },
|
|
697
|
+
getNamePointeesOperationSpec
|
|
698
|
+
);
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
/**
|
|
702
|
+
* Get name pointers
|
|
703
|
+
* @param id The name
|
|
704
|
+
* @param options The options parameters.
|
|
705
|
+
*/
|
|
706
|
+
getNamePointers(
|
|
707
|
+
id: string,
|
|
708
|
+
options?: GetNamePointersOptionalParams
|
|
709
|
+
): Promise<GetNamePointersResponse> {
|
|
710
|
+
return this.sendOperationRequest(
|
|
711
|
+
{ id, options },
|
|
712
|
+
getNamePointersOperationSpec
|
|
713
|
+
);
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
/**
|
|
717
|
+
* Get name transfers
|
|
718
|
+
* @param id The name or name hash
|
|
719
|
+
* @param options The options parameters.
|
|
720
|
+
*/
|
|
721
|
+
getNameTransfers(
|
|
722
|
+
id: string,
|
|
723
|
+
options?: GetNameTransfersOptionalParams
|
|
724
|
+
): Promise<GetNameTransfersResponse> {
|
|
725
|
+
return this.sendOperationRequest(
|
|
726
|
+
{ id, options },
|
|
727
|
+
getNameTransfersOperationSpec
|
|
728
|
+
);
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
/**
|
|
732
|
+
* Get name updates
|
|
733
|
+
* @param id The name or name hash
|
|
734
|
+
* @param options The options parameters.
|
|
735
|
+
*/
|
|
736
|
+
getNameUpdates(
|
|
737
|
+
id: string,
|
|
738
|
+
options?: GetNameUpdatesOptionalParams
|
|
739
|
+
): Promise<GetNameUpdatesResponse> {
|
|
740
|
+
return this.sendOperationRequest(
|
|
741
|
+
{ id, options },
|
|
742
|
+
getNameUpdatesOperationSpec
|
|
743
|
+
);
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
/**
|
|
747
|
+
* Get a single oracle.
|
|
748
|
+
* @param id The oracle
|
|
749
|
+
* @param options The options parameters.
|
|
750
|
+
*/
|
|
751
|
+
getOracle(
|
|
752
|
+
id: string,
|
|
753
|
+
options?: GetOracleOptionalParams
|
|
754
|
+
): Promise<GetOracleResponse> {
|
|
755
|
+
return this.sendOperationRequest({ id, options }, getOracleOperationSpec);
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
/**
|
|
759
|
+
* Get multiple oracles.
|
|
760
|
+
* @param options The options parameters.
|
|
761
|
+
*/
|
|
762
|
+
getOracles(options?: GetOraclesOptionalParams): Promise<GetOraclesResponse> {
|
|
763
|
+
return this.sendOperationRequest({ options }, getOraclesOperationSpec);
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
/**
|
|
767
|
+
* Gets the current syncing status of both middleware and the node
|
|
768
|
+
* @param options The options parameters.
|
|
769
|
+
*/
|
|
770
|
+
getStatus(options?: GetStatusOptionalParams): Promise<GetStatusResponse> {
|
|
771
|
+
return this.sendOperationRequest({ options }, getStatusOperationSpec);
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
/**
|
|
775
|
+
* Get total accumulated stats.
|
|
776
|
+
* @param options The options parameters.
|
|
777
|
+
*/
|
|
778
|
+
getTotalstats(
|
|
779
|
+
options?: GetTotalstatsOptionalParams
|
|
780
|
+
): Promise<GetTotalstatsResponse> {
|
|
781
|
+
return this.sendOperationRequest({ options }, getTotalstatsOperationSpec);
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
/**
|
|
785
|
+
* Get multiple transfers.
|
|
786
|
+
* @param options The options parameters.
|
|
787
|
+
*/
|
|
788
|
+
getTransfers(
|
|
789
|
+
options?: GetTransfersOptionalParams
|
|
790
|
+
): Promise<GetTransfersResponse> {
|
|
791
|
+
return this.sendOperationRequest({ options }, getTransfersOperationSpec);
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
/**
|
|
795
|
+
* Get multiple transactions.
|
|
796
|
+
* @param options The options parameters.
|
|
797
|
+
*/
|
|
798
|
+
getTxs(options?: GetTxsOptionalParams): Promise<GetTxsResponse> {
|
|
799
|
+
return this.sendOperationRequest({ options }, getTxsOperationSpec);
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
/**
|
|
803
|
+
* Get count of transactions at the latest height.
|
|
804
|
+
* @param options The options parameters.
|
|
805
|
+
*/
|
|
806
|
+
getTxCount(options?: GetTxCountOptionalParams): Promise<GetTxCountResponse> {
|
|
807
|
+
return this.sendOperationRequest({ options }, getTxCountOperationSpec);
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
/**
|
|
811
|
+
* Get transactions count and its type for given aeternity ID.
|
|
812
|
+
* @param id The ID of the address/name/oracle/etc
|
|
813
|
+
* @param options The options parameters.
|
|
814
|
+
*/
|
|
815
|
+
getTxCountById(
|
|
816
|
+
id: string,
|
|
817
|
+
options?: GetTxCountByIdOptionalParams
|
|
818
|
+
): Promise<GetTxCountByIdResponse> {
|
|
819
|
+
return this.sendOperationRequest(
|
|
820
|
+
{ id, options },
|
|
821
|
+
getTxCountByIdOperationSpec
|
|
822
|
+
);
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
/**
|
|
826
|
+
* Get a single transaction.
|
|
827
|
+
* @param hashOrIndex The transaction encoded hash or index (txi)
|
|
828
|
+
* @param options The options parameters.
|
|
829
|
+
*/
|
|
830
|
+
getTx(
|
|
831
|
+
hashOrIndex: string,
|
|
832
|
+
options?: GetTxOptionalParams
|
|
833
|
+
): Promise<GetTxResponse> {
|
|
834
|
+
return this.sendOperationRequest(
|
|
835
|
+
{ hashOrIndex, options },
|
|
836
|
+
getTxOperationSpec
|
|
837
|
+
);
|
|
838
|
+
}
|
|
839
|
+
}
|
|
840
|
+
// Operation Specifications
|
|
841
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
842
|
+
|
|
843
|
+
const getAccountActivitiesOperationSpec: coreClient.OperationSpec = {
|
|
844
|
+
path: "/v2/accounts/{id}/activities",
|
|
845
|
+
httpMethod: "GET",
|
|
846
|
+
responses: {
|
|
847
|
+
200: {
|
|
848
|
+
bodyMapper:
|
|
849
|
+
Mappers.PathsKlr2M2V2AccountsIdActivitiesGetResponses200ContentApplicationJsonSchema
|
|
850
|
+
},
|
|
851
|
+
400: {
|
|
852
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
853
|
+
isError: true
|
|
854
|
+
}
|
|
855
|
+
},
|
|
856
|
+
queryParameters: [
|
|
857
|
+
Parameters.ownedOnly,
|
|
858
|
+
Parameters.type,
|
|
859
|
+
Parameters.limit,
|
|
860
|
+
Parameters.scope,
|
|
861
|
+
Parameters.direction
|
|
862
|
+
],
|
|
863
|
+
urlParameters: [Parameters.$host, Parameters.id],
|
|
864
|
+
headerParameters: [Parameters.accept],
|
|
865
|
+
serializer
|
|
866
|
+
};
|
|
867
|
+
const getSortedAex141ContractsOperationSpec: coreClient.OperationSpec = {
|
|
868
|
+
path: "/v2/aex141",
|
|
869
|
+
httpMethod: "GET",
|
|
870
|
+
responses: {
|
|
871
|
+
200: {
|
|
872
|
+
bodyMapper:
|
|
873
|
+
Mappers.PathsFlc7UjV2Aex141GetResponses200ContentApplicationJsonSchema
|
|
874
|
+
},
|
|
875
|
+
400: {
|
|
876
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
877
|
+
isError: true
|
|
878
|
+
}
|
|
879
|
+
},
|
|
880
|
+
queryParameters: [
|
|
881
|
+
Parameters.limit,
|
|
882
|
+
Parameters.direction,
|
|
883
|
+
Parameters.by,
|
|
884
|
+
Parameters.prefix
|
|
885
|
+
],
|
|
886
|
+
urlParameters: [Parameters.$host],
|
|
887
|
+
headerParameters: [Parameters.accept],
|
|
888
|
+
serializer
|
|
889
|
+
};
|
|
890
|
+
const getAex141OwnedTokensOperationSpec: coreClient.OperationSpec = {
|
|
891
|
+
path: "/v2/aex141/owned-nfts/{accountId}",
|
|
892
|
+
httpMethod: "GET",
|
|
893
|
+
responses: {
|
|
894
|
+
200: {
|
|
895
|
+
bodyMapper:
|
|
896
|
+
Mappers.PathsSs61ZgV2Aex141OwnedNftsAccountidGetResponses200ContentApplicationJsonSchema
|
|
897
|
+
},
|
|
898
|
+
400: {
|
|
899
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
900
|
+
isError: true
|
|
901
|
+
}
|
|
902
|
+
},
|
|
903
|
+
queryParameters: [Parameters.limit, Parameters.direction],
|
|
904
|
+
urlParameters: [Parameters.$host, Parameters.accountId],
|
|
905
|
+
headerParameters: [Parameters.accept],
|
|
906
|
+
serializer
|
|
907
|
+
};
|
|
908
|
+
const getAex141TokenOwnerOperationSpec: coreClient.OperationSpec = {
|
|
909
|
+
path: "/v2/aex141/{contractId}/owner/{tokenId}",
|
|
910
|
+
httpMethod: "GET",
|
|
911
|
+
responses: {
|
|
912
|
+
200: {
|
|
913
|
+
bodyMapper: { type: { name: "String" } }
|
|
914
|
+
},
|
|
915
|
+
400: {
|
|
916
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
917
|
+
isError: true
|
|
918
|
+
}
|
|
919
|
+
},
|
|
920
|
+
urlParameters: [Parameters.$host, Parameters.contractId, Parameters.tokenId],
|
|
921
|
+
headerParameters: [Parameters.accept],
|
|
922
|
+
serializer
|
|
923
|
+
};
|
|
924
|
+
const getAex141ContractOwnersOperationSpec: coreClient.OperationSpec = {
|
|
925
|
+
path: "/v2/aex141/{contractId}/owners",
|
|
926
|
+
httpMethod: "GET",
|
|
927
|
+
responses: {
|
|
928
|
+
200: {
|
|
929
|
+
bodyMapper:
|
|
930
|
+
Mappers.Paths1Ilysy5V2Aex141ContractidOwnersGetResponses200ContentApplicationJsonSchema
|
|
931
|
+
},
|
|
932
|
+
400: {
|
|
933
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
934
|
+
isError: true
|
|
935
|
+
}
|
|
936
|
+
},
|
|
937
|
+
queryParameters: [Parameters.limit, Parameters.direction],
|
|
938
|
+
urlParameters: [Parameters.$host, Parameters.contractId],
|
|
939
|
+
headerParameters: [Parameters.accept],
|
|
940
|
+
serializer
|
|
941
|
+
};
|
|
942
|
+
const getAex141ContractTemplatesOperationSpec: coreClient.OperationSpec = {
|
|
943
|
+
path: "/v2/aex141/{contractId}/templates",
|
|
944
|
+
httpMethod: "GET",
|
|
945
|
+
responses: {
|
|
946
|
+
200: {
|
|
947
|
+
bodyMapper:
|
|
948
|
+
Mappers.Paths17O9Fn6V2Aex141ContractidTemplatesGetResponses200ContentApplicationJsonSchema
|
|
949
|
+
},
|
|
950
|
+
400: {
|
|
951
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
952
|
+
isError: true
|
|
953
|
+
}
|
|
954
|
+
},
|
|
955
|
+
queryParameters: [Parameters.limit, Parameters.direction],
|
|
956
|
+
urlParameters: [Parameters.$host, Parameters.contractId],
|
|
957
|
+
headerParameters: [Parameters.accept],
|
|
958
|
+
serializer
|
|
959
|
+
};
|
|
960
|
+
const getAex141TemplateTokensOperationSpec: coreClient.OperationSpec = {
|
|
961
|
+
path: "/v2/aex141/{contractId}/templates/{templateId}/tokens",
|
|
962
|
+
httpMethod: "GET",
|
|
963
|
+
responses: {
|
|
964
|
+
200: {
|
|
965
|
+
bodyMapper:
|
|
966
|
+
Mappers.PathsNuoourV2Aex141ContractidTemplatesTemplateidTokensGetResponses200ContentApplicationJsonSchema
|
|
967
|
+
},
|
|
968
|
+
400: {
|
|
969
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
970
|
+
isError: true
|
|
971
|
+
}
|
|
972
|
+
},
|
|
973
|
+
queryParameters: [Parameters.limit, Parameters.direction],
|
|
974
|
+
urlParameters: [
|
|
975
|
+
Parameters.$host,
|
|
976
|
+
Parameters.contractId,
|
|
977
|
+
Parameters.templateId
|
|
978
|
+
],
|
|
979
|
+
headerParameters: [Parameters.accept],
|
|
980
|
+
serializer
|
|
981
|
+
};
|
|
982
|
+
const getAex141ByContractOperationSpec: coreClient.OperationSpec = {
|
|
983
|
+
path: "/v2/aex141/{id}",
|
|
984
|
+
httpMethod: "GET",
|
|
985
|
+
responses: {
|
|
986
|
+
200: {
|
|
987
|
+
bodyMapper: Mappers.Aex141Response
|
|
988
|
+
},
|
|
989
|
+
400: {
|
|
990
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
991
|
+
isError: true
|
|
992
|
+
}
|
|
993
|
+
},
|
|
994
|
+
urlParameters: [Parameters.$host, Parameters.id],
|
|
995
|
+
headerParameters: [Parameters.accept],
|
|
996
|
+
serializer
|
|
997
|
+
};
|
|
998
|
+
const getSortedAex9TokensOperationSpec: coreClient.OperationSpec = {
|
|
999
|
+
path: "/v2/aex9",
|
|
1000
|
+
httpMethod: "GET",
|
|
1001
|
+
responses: {
|
|
1002
|
+
200: {
|
|
1003
|
+
bodyMapper:
|
|
1004
|
+
Mappers.Paths1Wbogg8V2Aex9GetResponses200ContentApplicationJsonSchema
|
|
1005
|
+
},
|
|
1006
|
+
400: {
|
|
1007
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1008
|
+
isError: true
|
|
1009
|
+
}
|
|
1010
|
+
},
|
|
1011
|
+
queryParameters: [
|
|
1012
|
+
Parameters.limit,
|
|
1013
|
+
Parameters.direction,
|
|
1014
|
+
Parameters.by,
|
|
1015
|
+
Parameters.prefix
|
|
1016
|
+
],
|
|
1017
|
+
urlParameters: [Parameters.$host],
|
|
1018
|
+
headerParameters: [Parameters.accept],
|
|
1019
|
+
serializer
|
|
1020
|
+
};
|
|
1021
|
+
const getAex9AccountBalancesOperationSpec: coreClient.OperationSpec = {
|
|
1022
|
+
path: "/v2/aex9/account-balances/{account_id}",
|
|
1023
|
+
httpMethod: "GET",
|
|
1024
|
+
responses: {
|
|
1025
|
+
200: {
|
|
1026
|
+
bodyMapper:
|
|
1027
|
+
Mappers.Paths1BsirxgV2Aex9AccountBalancesAccountIdGetResponses200ContentApplicationJsonSchema
|
|
1028
|
+
},
|
|
1029
|
+
400: {
|
|
1030
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1031
|
+
isError: true
|
|
1032
|
+
}
|
|
1033
|
+
},
|
|
1034
|
+
urlParameters: [Parameters.$host, Parameters.accountId1],
|
|
1035
|
+
headerParameters: [Parameters.accept],
|
|
1036
|
+
serializer
|
|
1037
|
+
};
|
|
1038
|
+
const getAex9TokensCountOperationSpec: coreClient.OperationSpec = {
|
|
1039
|
+
path: "/v2/aex9/count",
|
|
1040
|
+
httpMethod: "GET",
|
|
1041
|
+
responses: {
|
|
1042
|
+
200: {
|
|
1043
|
+
bodyMapper: { type: { name: "Number" } }
|
|
1044
|
+
}
|
|
1045
|
+
},
|
|
1046
|
+
urlParameters: [Parameters.$host],
|
|
1047
|
+
headerParameters: [Parameters.accept],
|
|
1048
|
+
serializer
|
|
1049
|
+
};
|
|
1050
|
+
const getAex9PairTransfersOperationSpec: coreClient.OperationSpec = {
|
|
1051
|
+
path: "/v2/aex9/transfers/from-to/{sender}/{recipient}",
|
|
1052
|
+
httpMethod: "GET",
|
|
1053
|
+
responses: {
|
|
1054
|
+
200: {
|
|
1055
|
+
bodyMapper:
|
|
1056
|
+
Mappers.Paths1V0FiznV2Aex9TransfersFromToSenderRecipientGetResponses200ContentApplicationJsonSchema
|
|
1057
|
+
},
|
|
1058
|
+
400: {
|
|
1059
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1060
|
+
isError: true
|
|
1061
|
+
}
|
|
1062
|
+
},
|
|
1063
|
+
queryParameters: [Parameters.limit, Parameters.direction],
|
|
1064
|
+
urlParameters: [Parameters.$host, Parameters.sender, Parameters.recipient],
|
|
1065
|
+
headerParameters: [Parameters.accept],
|
|
1066
|
+
serializer
|
|
1067
|
+
};
|
|
1068
|
+
const getAex9SenderTransfersOperationSpec: coreClient.OperationSpec = {
|
|
1069
|
+
path: "/v2/aex9/transfers/from/{id}",
|
|
1070
|
+
httpMethod: "GET",
|
|
1071
|
+
responses: {
|
|
1072
|
+
200: {
|
|
1073
|
+
bodyMapper:
|
|
1074
|
+
Mappers.Paths1X48QgjV2Aex9TransfersFromIdGetResponses200ContentApplicationJsonSchema
|
|
1075
|
+
},
|
|
1076
|
+
400: {
|
|
1077
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1078
|
+
isError: true
|
|
1079
|
+
}
|
|
1080
|
+
},
|
|
1081
|
+
queryParameters: [Parameters.limit, Parameters.direction],
|
|
1082
|
+
urlParameters: [Parameters.$host, Parameters.id],
|
|
1083
|
+
headerParameters: [Parameters.accept],
|
|
1084
|
+
serializer
|
|
1085
|
+
};
|
|
1086
|
+
const getAex9RecipientTransfersOperationSpec: coreClient.OperationSpec = {
|
|
1087
|
+
path: "/v2/aex9/transfers/to/{id}",
|
|
1088
|
+
httpMethod: "GET",
|
|
1089
|
+
responses: {
|
|
1090
|
+
200: {
|
|
1091
|
+
bodyMapper:
|
|
1092
|
+
Mappers.Paths1DkkopqV2Aex9TransfersToIdGetResponses200ContentApplicationJsonSchema
|
|
1093
|
+
},
|
|
1094
|
+
400: {
|
|
1095
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1096
|
+
isError: true
|
|
1097
|
+
}
|
|
1098
|
+
},
|
|
1099
|
+
queryParameters: [Parameters.limit, Parameters.direction],
|
|
1100
|
+
urlParameters: [Parameters.$host, Parameters.id],
|
|
1101
|
+
headerParameters: [Parameters.accept],
|
|
1102
|
+
serializer
|
|
1103
|
+
};
|
|
1104
|
+
const getAex9ContractBalancesOperationSpec: coreClient.OperationSpec = {
|
|
1105
|
+
path: "/v2/aex9/{contractId}/balances",
|
|
1106
|
+
httpMethod: "GET",
|
|
1107
|
+
responses: {
|
|
1108
|
+
200: {
|
|
1109
|
+
bodyMapper:
|
|
1110
|
+
Mappers.PathsNi359V2Aex9ContractidBalancesGetResponses200ContentApplicationJsonSchema
|
|
1111
|
+
},
|
|
1112
|
+
400: {
|
|
1113
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1114
|
+
isError: true
|
|
1115
|
+
}
|
|
1116
|
+
},
|
|
1117
|
+
queryParameters: [Parameters.limit, Parameters.direction, Parameters.by],
|
|
1118
|
+
urlParameters: [Parameters.$host, Parameters.contractId],
|
|
1119
|
+
headerParameters: [Parameters.accept],
|
|
1120
|
+
serializer
|
|
1121
|
+
};
|
|
1122
|
+
const getAex9ContractAccountBalanceOperationSpec: coreClient.OperationSpec = {
|
|
1123
|
+
path: "/v2/aex9/{contractId}/balances/{accountId}",
|
|
1124
|
+
httpMethod: "GET",
|
|
1125
|
+
responses: {
|
|
1126
|
+
200: {
|
|
1127
|
+
bodyMapper:
|
|
1128
|
+
Mappers.Paths1R02SlwV2Aex9ContractidBalancesAccountidGetResponses200ContentApplicationJsonSchema
|
|
1129
|
+
},
|
|
1130
|
+
400: {
|
|
1131
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1132
|
+
isError: true
|
|
1133
|
+
}
|
|
1134
|
+
},
|
|
1135
|
+
queryParameters: [Parameters.hash],
|
|
1136
|
+
urlParameters: [
|
|
1137
|
+
Parameters.$host,
|
|
1138
|
+
Parameters.accountId,
|
|
1139
|
+
Parameters.contractId
|
|
1140
|
+
],
|
|
1141
|
+
headerParameters: [Parameters.accept],
|
|
1142
|
+
serializer
|
|
1143
|
+
};
|
|
1144
|
+
const getAex9ContractAccountBalanceHistoryOperationSpec: coreClient.OperationSpec = {
|
|
1145
|
+
path: "/v2/aex9/{contractId}/balances/{accountId}/history",
|
|
1146
|
+
httpMethod: "GET",
|
|
1147
|
+
responses: {
|
|
1148
|
+
200: {
|
|
1149
|
+
bodyMapper:
|
|
1150
|
+
Mappers.Paths1T9RwnyV2Aex9ContractidBalancesAccountidHistoryGetResponses200ContentApplicationJsonSchema
|
|
1151
|
+
},
|
|
1152
|
+
400: {
|
|
1153
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1154
|
+
isError: true
|
|
1155
|
+
}
|
|
1156
|
+
},
|
|
1157
|
+
queryParameters: [Parameters.limit, Parameters.scope, Parameters.direction],
|
|
1158
|
+
urlParameters: [
|
|
1159
|
+
Parameters.$host,
|
|
1160
|
+
Parameters.accountId,
|
|
1161
|
+
Parameters.contractId
|
|
1162
|
+
],
|
|
1163
|
+
headerParameters: [Parameters.accept],
|
|
1164
|
+
serializer
|
|
1165
|
+
};
|
|
1166
|
+
const getAex9LogsCountOperationSpec: coreClient.OperationSpec = {
|
|
1167
|
+
path: "/v2/aex9/{contractId}/logs-count",
|
|
1168
|
+
httpMethod: "GET",
|
|
1169
|
+
responses: {
|
|
1170
|
+
200: {
|
|
1171
|
+
bodyMapper: { type: { name: "Number" } }
|
|
1172
|
+
},
|
|
1173
|
+
400: {
|
|
1174
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1175
|
+
isError: true
|
|
1176
|
+
}
|
|
1177
|
+
},
|
|
1178
|
+
urlParameters: [Parameters.$host, Parameters.contractId],
|
|
1179
|
+
headerParameters: [Parameters.accept],
|
|
1180
|
+
serializer
|
|
1181
|
+
};
|
|
1182
|
+
const getAex9ByContractOperationSpec: coreClient.OperationSpec = {
|
|
1183
|
+
path: "/v2/aex9/{id}",
|
|
1184
|
+
httpMethod: "GET",
|
|
1185
|
+
responses: {
|
|
1186
|
+
200: {
|
|
1187
|
+
bodyMapper: Mappers.Aex9Response
|
|
1188
|
+
},
|
|
1189
|
+
400: {
|
|
1190
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1191
|
+
isError: true
|
|
1192
|
+
}
|
|
1193
|
+
},
|
|
1194
|
+
urlParameters: [Parameters.$host, Parameters.id],
|
|
1195
|
+
headerParameters: [Parameters.accept],
|
|
1196
|
+
serializer
|
|
1197
|
+
};
|
|
1198
|
+
const getBlocksOperationSpec: coreClient.OperationSpec = {
|
|
1199
|
+
path: "/v2/blocks",
|
|
1200
|
+
httpMethod: "GET",
|
|
1201
|
+
responses: {
|
|
1202
|
+
200: {
|
|
1203
|
+
bodyMapper:
|
|
1204
|
+
Mappers.Paths15Ih6XV2BlocksGetResponses200ContentApplicationJsonSchema
|
|
1205
|
+
},
|
|
1206
|
+
400: {
|
|
1207
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1208
|
+
isError: true
|
|
1209
|
+
}
|
|
1210
|
+
},
|
|
1211
|
+
queryParameters: [Parameters.limit, Parameters.scope, Parameters.direction],
|
|
1212
|
+
urlParameters: [Parameters.$host],
|
|
1213
|
+
headerParameters: [Parameters.accept],
|
|
1214
|
+
serializer
|
|
1215
|
+
};
|
|
1216
|
+
const getBlockOperationSpec: coreClient.OperationSpec = {
|
|
1217
|
+
path: "/v2/blocks/{hash_or_kbi}",
|
|
1218
|
+
httpMethod: "GET",
|
|
1219
|
+
responses: {
|
|
1220
|
+
200: {
|
|
1221
|
+
bodyMapper: Mappers.Block
|
|
1222
|
+
},
|
|
1223
|
+
400: {
|
|
1224
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1225
|
+
isError: true
|
|
1226
|
+
},
|
|
1227
|
+
404: {
|
|
1228
|
+
bodyMapper: Mappers.NotFoundResponse,
|
|
1229
|
+
isError: true
|
|
1230
|
+
}
|
|
1231
|
+
},
|
|
1232
|
+
urlParameters: [Parameters.$host, Parameters.hashOrKbi],
|
|
1233
|
+
headerParameters: [Parameters.accept],
|
|
1234
|
+
serializer
|
|
1235
|
+
};
|
|
1236
|
+
const getBlockByMbiOperationSpec: coreClient.OperationSpec = {
|
|
1237
|
+
path: "/v2/blocks/{kbi}/{mbi}",
|
|
1238
|
+
httpMethod: "GET",
|
|
1239
|
+
responses: {
|
|
1240
|
+
200: {
|
|
1241
|
+
bodyMapper: Mappers.Block
|
|
1242
|
+
},
|
|
1243
|
+
400: {
|
|
1244
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1245
|
+
isError: true
|
|
1246
|
+
},
|
|
1247
|
+
404: {
|
|
1248
|
+
bodyMapper: Mappers.NotFoundResponse,
|
|
1249
|
+
isError: true
|
|
1250
|
+
}
|
|
1251
|
+
},
|
|
1252
|
+
urlParameters: [Parameters.$host, Parameters.kbi, Parameters.mbi],
|
|
1253
|
+
headerParameters: [Parameters.accept],
|
|
1254
|
+
serializer
|
|
1255
|
+
};
|
|
1256
|
+
const getChannelsOperationSpec: coreClient.OperationSpec = {
|
|
1257
|
+
path: "/v2/channels",
|
|
1258
|
+
httpMethod: "GET",
|
|
1259
|
+
responses: {
|
|
1260
|
+
200: {
|
|
1261
|
+
bodyMapper:
|
|
1262
|
+
Mappers.Paths1Txl2A9V2ChannelsGetResponses200ContentApplicationJsonSchema
|
|
1263
|
+
},
|
|
1264
|
+
400: {
|
|
1265
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1266
|
+
isError: true
|
|
1267
|
+
}
|
|
1268
|
+
},
|
|
1269
|
+
queryParameters: [
|
|
1270
|
+
Parameters.limit,
|
|
1271
|
+
Parameters.scope,
|
|
1272
|
+
Parameters.direction,
|
|
1273
|
+
Parameters.state
|
|
1274
|
+
],
|
|
1275
|
+
urlParameters: [Parameters.$host],
|
|
1276
|
+
headerParameters: [Parameters.accept],
|
|
1277
|
+
serializer
|
|
1278
|
+
};
|
|
1279
|
+
const getChannelOperationSpec: coreClient.OperationSpec = {
|
|
1280
|
+
path: "/v2/channels/{id}",
|
|
1281
|
+
httpMethod: "GET",
|
|
1282
|
+
responses: {
|
|
1283
|
+
200: {
|
|
1284
|
+
bodyMapper: Mappers.Channel
|
|
1285
|
+
},
|
|
1286
|
+
400: {
|
|
1287
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1288
|
+
isError: true
|
|
1289
|
+
},
|
|
1290
|
+
404: {
|
|
1291
|
+
bodyMapper: Mappers.NotFoundResponse,
|
|
1292
|
+
isError: true
|
|
1293
|
+
}
|
|
1294
|
+
},
|
|
1295
|
+
urlParameters: [Parameters.$host, Parameters.id],
|
|
1296
|
+
headerParameters: [Parameters.accept],
|
|
1297
|
+
serializer
|
|
1298
|
+
};
|
|
1299
|
+
const getContractsCallsOperationSpec: coreClient.OperationSpec = {
|
|
1300
|
+
path: "/v2/contracts/calls",
|
|
1301
|
+
httpMethod: "GET",
|
|
1302
|
+
responses: {
|
|
1303
|
+
200: {
|
|
1304
|
+
bodyMapper:
|
|
1305
|
+
Mappers.Paths187U0XzV2ContractsCallsGetResponses200ContentApplicationJsonSchema
|
|
1306
|
+
},
|
|
1307
|
+
400: {
|
|
1308
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1309
|
+
isError: true
|
|
1310
|
+
}
|
|
1311
|
+
},
|
|
1312
|
+
queryParameters: [Parameters.limit, Parameters.scope, Parameters.direction],
|
|
1313
|
+
urlParameters: [Parameters.$host],
|
|
1314
|
+
headerParameters: [Parameters.accept],
|
|
1315
|
+
serializer
|
|
1316
|
+
};
|
|
1317
|
+
const getContractsLogsOperationSpec: coreClient.OperationSpec = {
|
|
1318
|
+
path: "/v2/contracts/logs",
|
|
1319
|
+
httpMethod: "GET",
|
|
1320
|
+
responses: {
|
|
1321
|
+
200: {
|
|
1322
|
+
bodyMapper:
|
|
1323
|
+
Mappers.PathsB246H1V2ContractsLogsGetResponses200ContentApplicationJsonSchema
|
|
1324
|
+
},
|
|
1325
|
+
400: {
|
|
1326
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1327
|
+
isError: true
|
|
1328
|
+
}
|
|
1329
|
+
},
|
|
1330
|
+
queryParameters: [
|
|
1331
|
+
Parameters.limit,
|
|
1332
|
+
Parameters.scope,
|
|
1333
|
+
Parameters.direction,
|
|
1334
|
+
Parameters.contractId1,
|
|
1335
|
+
Parameters.event,
|
|
1336
|
+
Parameters.functionPrefix,
|
|
1337
|
+
Parameters.data,
|
|
1338
|
+
Parameters.aexnArgs
|
|
1339
|
+
],
|
|
1340
|
+
urlParameters: [Parameters.$host],
|
|
1341
|
+
headerParameters: [Parameters.accept],
|
|
1342
|
+
serializer
|
|
1343
|
+
};
|
|
1344
|
+
const getDeltastatsOperationSpec: coreClient.OperationSpec = {
|
|
1345
|
+
path: "/v2/deltastats",
|
|
1346
|
+
httpMethod: "GET",
|
|
1347
|
+
responses: {
|
|
1348
|
+
200: {
|
|
1349
|
+
bodyMapper:
|
|
1350
|
+
Mappers.Paths7Pbec0V2DeltastatsGetResponses200ContentApplicationJsonSchema
|
|
1351
|
+
},
|
|
1352
|
+
400: {
|
|
1353
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1354
|
+
isError: true
|
|
1355
|
+
}
|
|
1356
|
+
},
|
|
1357
|
+
queryParameters: [Parameters.limit, Parameters.scope, Parameters.direction],
|
|
1358
|
+
urlParameters: [Parameters.$host],
|
|
1359
|
+
headerParameters: [Parameters.accept],
|
|
1360
|
+
serializer
|
|
1361
|
+
};
|
|
1362
|
+
const getKeyBlocksOperationSpec: coreClient.OperationSpec = {
|
|
1363
|
+
path: "/v2/key-blocks",
|
|
1364
|
+
httpMethod: "GET",
|
|
1365
|
+
responses: {
|
|
1366
|
+
200: {
|
|
1367
|
+
bodyMapper:
|
|
1368
|
+
Mappers.Paths1Ulxr59V2KeyBlocksGetResponses200ContentApplicationJsonSchema
|
|
1369
|
+
},
|
|
1370
|
+
400: {
|
|
1371
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1372
|
+
isError: true
|
|
1373
|
+
}
|
|
1374
|
+
},
|
|
1375
|
+
queryParameters: [Parameters.limit, Parameters.scope, Parameters.direction],
|
|
1376
|
+
urlParameters: [Parameters.$host],
|
|
1377
|
+
headerParameters: [Parameters.accept],
|
|
1378
|
+
serializer
|
|
1379
|
+
};
|
|
1380
|
+
const getKeyBlockOperationSpec: coreClient.OperationSpec = {
|
|
1381
|
+
path: "/v2/key-blocks/{hash_or_kbi}",
|
|
1382
|
+
httpMethod: "GET",
|
|
1383
|
+
responses: {
|
|
1384
|
+
200: {
|
|
1385
|
+
bodyMapper: Mappers.KeyBlock
|
|
1386
|
+
},
|
|
1387
|
+
400: {
|
|
1388
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1389
|
+
isError: true
|
|
1390
|
+
},
|
|
1391
|
+
404: {
|
|
1392
|
+
bodyMapper: Mappers.NotFoundResponse,
|
|
1393
|
+
isError: true
|
|
1394
|
+
}
|
|
1395
|
+
},
|
|
1396
|
+
urlParameters: [Parameters.$host, Parameters.hashOrKbi],
|
|
1397
|
+
headerParameters: [Parameters.accept],
|
|
1398
|
+
serializer
|
|
1399
|
+
};
|
|
1400
|
+
const getKeyBlockMicroBlocksOperationSpec: coreClient.OperationSpec = {
|
|
1401
|
+
path: "/v2/key-blocks/{hash_or_kbi}/micro-blocks",
|
|
1402
|
+
httpMethod: "GET",
|
|
1403
|
+
responses: {
|
|
1404
|
+
200: {
|
|
1405
|
+
bodyMapper:
|
|
1406
|
+
Mappers.PathsO99PhzV2KeyBlocksHashOrKbiMicroBlocksGetResponses200ContentApplicationJsonSchema
|
|
1407
|
+
},
|
|
1408
|
+
400: {
|
|
1409
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1410
|
+
isError: true
|
|
1411
|
+
}
|
|
1412
|
+
},
|
|
1413
|
+
queryParameters: [Parameters.limit, Parameters.scope, Parameters.direction],
|
|
1414
|
+
urlParameters: [Parameters.$host, Parameters.hashOrKbi],
|
|
1415
|
+
headerParameters: [Parameters.accept],
|
|
1416
|
+
serializer
|
|
1417
|
+
};
|
|
1418
|
+
const getMicroBlockOperationSpec: coreClient.OperationSpec = {
|
|
1419
|
+
path: "/v2/micro-blocks/{hash}",
|
|
1420
|
+
httpMethod: "GET",
|
|
1421
|
+
responses: {
|
|
1422
|
+
200: {
|
|
1423
|
+
bodyMapper: Mappers.MicroBlock
|
|
1424
|
+
},
|
|
1425
|
+
400: {
|
|
1426
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1427
|
+
isError: true
|
|
1428
|
+
},
|
|
1429
|
+
404: {
|
|
1430
|
+
bodyMapper: Mappers.NotFoundResponse,
|
|
1431
|
+
isError: true
|
|
1432
|
+
}
|
|
1433
|
+
},
|
|
1434
|
+
urlParameters: [Parameters.$host, Parameters.hash1],
|
|
1435
|
+
headerParameters: [Parameters.accept],
|
|
1436
|
+
serializer
|
|
1437
|
+
};
|
|
1438
|
+
const getMicroBlockTransactionsOperationSpec: coreClient.OperationSpec = {
|
|
1439
|
+
path: "/v2/micro-blocks/{hash}/txs",
|
|
1440
|
+
httpMethod: "GET",
|
|
1441
|
+
responses: {
|
|
1442
|
+
200: {
|
|
1443
|
+
bodyMapper:
|
|
1444
|
+
Mappers.PathsGuqvhdV2MicroBlocksHashTxsGetResponses200ContentApplicationJsonSchema
|
|
1445
|
+
},
|
|
1446
|
+
400: {
|
|
1447
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1448
|
+
isError: true
|
|
1449
|
+
}
|
|
1450
|
+
},
|
|
1451
|
+
urlParameters: [Parameters.$host, Parameters.hash1],
|
|
1452
|
+
headerParameters: [Parameters.accept],
|
|
1453
|
+
serializer
|
|
1454
|
+
};
|
|
1455
|
+
const getNamesOperationSpec: coreClient.OperationSpec = {
|
|
1456
|
+
path: "/v2/names",
|
|
1457
|
+
httpMethod: "GET",
|
|
1458
|
+
responses: {
|
|
1459
|
+
200: {
|
|
1460
|
+
bodyMapper:
|
|
1461
|
+
Mappers.PathsK9TkttV2NamesGetResponses200ContentApplicationJsonSchema
|
|
1462
|
+
},
|
|
1463
|
+
400: {
|
|
1464
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1465
|
+
isError: true
|
|
1466
|
+
}
|
|
1467
|
+
},
|
|
1468
|
+
queryParameters: [
|
|
1469
|
+
Parameters.limit,
|
|
1470
|
+
Parameters.direction,
|
|
1471
|
+
Parameters.by,
|
|
1472
|
+
Parameters.ownedBy,
|
|
1473
|
+
Parameters.state1
|
|
1474
|
+
],
|
|
1475
|
+
urlParameters: [Parameters.$host],
|
|
1476
|
+
headerParameters: [Parameters.accept],
|
|
1477
|
+
serializer
|
|
1478
|
+
};
|
|
1479
|
+
const getNamesAuctionsOperationSpec: coreClient.OperationSpec = {
|
|
1480
|
+
path: "/v2/names/auctions",
|
|
1481
|
+
httpMethod: "GET",
|
|
1482
|
+
responses: {
|
|
1483
|
+
200: {
|
|
1484
|
+
bodyMapper: Mappers.Auction
|
|
1485
|
+
},
|
|
1486
|
+
400: {
|
|
1487
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1488
|
+
isError: true
|
|
1489
|
+
}
|
|
1490
|
+
},
|
|
1491
|
+
queryParameters: [Parameters.limit, Parameters.scope, Parameters.direction],
|
|
1492
|
+
urlParameters: [Parameters.$host],
|
|
1493
|
+
headerParameters: [Parameters.accept],
|
|
1494
|
+
serializer
|
|
1495
|
+
};
|
|
1496
|
+
const searchNamesOperationSpec: coreClient.OperationSpec = {
|
|
1497
|
+
path: "/v2/names/search",
|
|
1498
|
+
httpMethod: "GET",
|
|
1499
|
+
responses: {
|
|
1500
|
+
200: {
|
|
1501
|
+
bodyMapper:
|
|
1502
|
+
Mappers.Paths3Msq0DV2NamesSearchGetResponses200ContentApplicationJsonSchema
|
|
1503
|
+
},
|
|
1504
|
+
400: {
|
|
1505
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1506
|
+
isError: true
|
|
1507
|
+
}
|
|
1508
|
+
},
|
|
1509
|
+
queryParameters: [Parameters.limit, Parameters.scope, Parameters.direction],
|
|
1510
|
+
urlParameters: [Parameters.$host],
|
|
1511
|
+
headerParameters: [Parameters.accept],
|
|
1512
|
+
serializer
|
|
1513
|
+
};
|
|
1514
|
+
const getNameOperationSpec: coreClient.OperationSpec = {
|
|
1515
|
+
path: "/v2/names/{id}",
|
|
1516
|
+
httpMethod: "GET",
|
|
1517
|
+
responses: {
|
|
1518
|
+
200: {
|
|
1519
|
+
bodyMapper: Mappers.Name
|
|
1520
|
+
},
|
|
1521
|
+
400: {
|
|
1522
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1523
|
+
isError: true
|
|
1524
|
+
},
|
|
1525
|
+
404: {
|
|
1526
|
+
bodyMapper: Mappers.NotFoundResponse,
|
|
1527
|
+
isError: true
|
|
1528
|
+
}
|
|
1529
|
+
},
|
|
1530
|
+
urlParameters: [Parameters.$host, Parameters.id],
|
|
1531
|
+
headerParameters: [Parameters.accept],
|
|
1532
|
+
serializer
|
|
1533
|
+
};
|
|
1534
|
+
const getNameAuctionOperationSpec: coreClient.OperationSpec = {
|
|
1535
|
+
path: "/v2/names/{id}/auction",
|
|
1536
|
+
httpMethod: "GET",
|
|
1537
|
+
responses: {
|
|
1538
|
+
200: {
|
|
1539
|
+
bodyMapper: Mappers.Auction
|
|
1540
|
+
},
|
|
1541
|
+
400: {
|
|
1542
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1543
|
+
isError: true
|
|
1544
|
+
},
|
|
1545
|
+
404: {
|
|
1546
|
+
bodyMapper: Mappers.NotFoundResponse,
|
|
1547
|
+
isError: true
|
|
1548
|
+
}
|
|
1549
|
+
},
|
|
1550
|
+
queryParameters: [Parameters.limit, Parameters.scope, Parameters.direction],
|
|
1551
|
+
urlParameters: [Parameters.$host, Parameters.id],
|
|
1552
|
+
headerParameters: [Parameters.accept],
|
|
1553
|
+
serializer
|
|
1554
|
+
};
|
|
1555
|
+
const getNameClaimsOperationSpec: coreClient.OperationSpec = {
|
|
1556
|
+
path: "/v2/names/{id}/claims",
|
|
1557
|
+
httpMethod: "GET",
|
|
1558
|
+
responses: {
|
|
1559
|
+
200: {
|
|
1560
|
+
bodyMapper: Mappers.NameClaim
|
|
1561
|
+
},
|
|
1562
|
+
404: {
|
|
1563
|
+
bodyMapper: Mappers.NotFoundResponse,
|
|
1564
|
+
isError: true
|
|
1565
|
+
}
|
|
1566
|
+
},
|
|
1567
|
+
queryParameters: [Parameters.limit, Parameters.scope, Parameters.direction],
|
|
1568
|
+
urlParameters: [Parameters.$host, Parameters.id],
|
|
1569
|
+
headerParameters: [Parameters.accept],
|
|
1570
|
+
serializer
|
|
1571
|
+
};
|
|
1572
|
+
const getNamePointeesOperationSpec: coreClient.OperationSpec = {
|
|
1573
|
+
path: "/v2/names/{id}/pointees",
|
|
1574
|
+
httpMethod: "GET",
|
|
1575
|
+
responses: {
|
|
1576
|
+
200: {
|
|
1577
|
+
bodyMapper:
|
|
1578
|
+
Mappers.PathsDjelzuV2NamesIdPointeesGetResponses200ContentApplicationJsonSchema
|
|
1579
|
+
},
|
|
1580
|
+
404: {
|
|
1581
|
+
bodyMapper: Mappers.NotFoundResponse,
|
|
1582
|
+
isError: true
|
|
1583
|
+
}
|
|
1584
|
+
},
|
|
1585
|
+
urlParameters: [Parameters.$host, Parameters.id],
|
|
1586
|
+
headerParameters: [Parameters.accept],
|
|
1587
|
+
serializer
|
|
1588
|
+
};
|
|
1589
|
+
const getNamePointersOperationSpec: coreClient.OperationSpec = {
|
|
1590
|
+
path: "/v2/names/{id}/pointers",
|
|
1591
|
+
httpMethod: "GET",
|
|
1592
|
+
responses: {
|
|
1593
|
+
200: {
|
|
1594
|
+
bodyMapper: {
|
|
1595
|
+
type: { name: "Dictionary", value: { type: { name: "any" } } }
|
|
1596
|
+
}
|
|
1597
|
+
},
|
|
1598
|
+
404: {
|
|
1599
|
+
bodyMapper: Mappers.NotFoundResponse,
|
|
1600
|
+
isError: true
|
|
1601
|
+
}
|
|
1602
|
+
},
|
|
1603
|
+
urlParameters: [Parameters.$host, Parameters.id],
|
|
1604
|
+
headerParameters: [Parameters.accept],
|
|
1605
|
+
serializer
|
|
1606
|
+
};
|
|
1607
|
+
const getNameTransfersOperationSpec: coreClient.OperationSpec = {
|
|
1608
|
+
path: "/v2/names/{id}/transfers",
|
|
1609
|
+
httpMethod: "GET",
|
|
1610
|
+
responses: {
|
|
1611
|
+
200: {
|
|
1612
|
+
bodyMapper: Mappers.NameTransfer
|
|
1613
|
+
},
|
|
1614
|
+
404: {
|
|
1615
|
+
bodyMapper: Mappers.NotFoundResponse,
|
|
1616
|
+
isError: true
|
|
1617
|
+
}
|
|
1618
|
+
},
|
|
1619
|
+
queryParameters: [Parameters.limit, Parameters.scope, Parameters.direction],
|
|
1620
|
+
urlParameters: [Parameters.$host, Parameters.id],
|
|
1621
|
+
headerParameters: [Parameters.accept],
|
|
1622
|
+
serializer
|
|
1623
|
+
};
|
|
1624
|
+
const getNameUpdatesOperationSpec: coreClient.OperationSpec = {
|
|
1625
|
+
path: "/v2/names/{id}/updates",
|
|
1626
|
+
httpMethod: "GET",
|
|
1627
|
+
responses: {
|
|
1628
|
+
200: {
|
|
1629
|
+
bodyMapper: Mappers.NameUpdate
|
|
1630
|
+
},
|
|
1631
|
+
404: {
|
|
1632
|
+
bodyMapper: Mappers.NotFoundResponse,
|
|
1633
|
+
isError: true
|
|
1634
|
+
}
|
|
1635
|
+
},
|
|
1636
|
+
queryParameters: [Parameters.limit, Parameters.scope, Parameters.direction],
|
|
1637
|
+
urlParameters: [Parameters.$host, Parameters.id],
|
|
1638
|
+
headerParameters: [Parameters.accept],
|
|
1639
|
+
serializer
|
|
1640
|
+
};
|
|
1641
|
+
const getOracleOperationSpec: coreClient.OperationSpec = {
|
|
1642
|
+
path: "/v2/oracle/{id}",
|
|
1643
|
+
httpMethod: "GET",
|
|
1644
|
+
responses: {
|
|
1645
|
+
200: {
|
|
1646
|
+
bodyMapper: Mappers.Oracle
|
|
1647
|
+
},
|
|
1648
|
+
400: {
|
|
1649
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1650
|
+
isError: true
|
|
1651
|
+
},
|
|
1652
|
+
404: {
|
|
1653
|
+
bodyMapper: Mappers.NotFoundResponse,
|
|
1654
|
+
isError: true
|
|
1655
|
+
}
|
|
1656
|
+
},
|
|
1657
|
+
urlParameters: [Parameters.$host, Parameters.id],
|
|
1658
|
+
headerParameters: [Parameters.accept],
|
|
1659
|
+
serializer
|
|
1660
|
+
};
|
|
1661
|
+
const getOraclesOperationSpec: coreClient.OperationSpec = {
|
|
1662
|
+
path: "/v2/oracles",
|
|
1663
|
+
httpMethod: "GET",
|
|
1664
|
+
responses: {
|
|
1665
|
+
200: {
|
|
1666
|
+
bodyMapper:
|
|
1667
|
+
Mappers.PathsB0YvynV2OraclesGetResponses200ContentApplicationJsonSchema
|
|
1668
|
+
},
|
|
1669
|
+
400: {
|
|
1670
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1671
|
+
isError: true
|
|
1672
|
+
}
|
|
1673
|
+
},
|
|
1674
|
+
queryParameters: [Parameters.limit, Parameters.scope, Parameters.direction],
|
|
1675
|
+
urlParameters: [Parameters.$host],
|
|
1676
|
+
headerParameters: [Parameters.accept],
|
|
1677
|
+
serializer
|
|
1678
|
+
};
|
|
1679
|
+
const getStatusOperationSpec: coreClient.OperationSpec = {
|
|
1680
|
+
path: "/v2/status",
|
|
1681
|
+
httpMethod: "GET",
|
|
1682
|
+
responses: {
|
|
1683
|
+
200: {
|
|
1684
|
+
bodyMapper: Mappers.Status
|
|
1685
|
+
}
|
|
1686
|
+
},
|
|
1687
|
+
urlParameters: [Parameters.$host],
|
|
1688
|
+
headerParameters: [Parameters.accept],
|
|
1689
|
+
serializer
|
|
1690
|
+
};
|
|
1691
|
+
const getTotalstatsOperationSpec: coreClient.OperationSpec = {
|
|
1692
|
+
path: "/v2/totalstats",
|
|
1693
|
+
httpMethod: "GET",
|
|
1694
|
+
responses: {
|
|
1695
|
+
200: {
|
|
1696
|
+
bodyMapper:
|
|
1697
|
+
Mappers.Paths15PsutbV2TotalstatsGetResponses200ContentApplicationJsonSchema
|
|
1698
|
+
},
|
|
1699
|
+
400: {
|
|
1700
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1701
|
+
isError: true
|
|
1702
|
+
}
|
|
1703
|
+
},
|
|
1704
|
+
queryParameters: [Parameters.limit, Parameters.scope, Parameters.direction],
|
|
1705
|
+
urlParameters: [Parameters.$host],
|
|
1706
|
+
headerParameters: [Parameters.accept],
|
|
1707
|
+
serializer
|
|
1708
|
+
};
|
|
1709
|
+
const getTransfersOperationSpec: coreClient.OperationSpec = {
|
|
1710
|
+
path: "/v2/transfers",
|
|
1711
|
+
httpMethod: "GET",
|
|
1712
|
+
responses: {
|
|
1713
|
+
200: {
|
|
1714
|
+
bodyMapper:
|
|
1715
|
+
Mappers.PathsIgs9Z1V2TransfersGetResponses200ContentApplicationJsonSchema
|
|
1716
|
+
},
|
|
1717
|
+
400: {
|
|
1718
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1719
|
+
isError: true
|
|
1720
|
+
}
|
|
1721
|
+
},
|
|
1722
|
+
queryParameters: [Parameters.limit, Parameters.scope, Parameters.direction],
|
|
1723
|
+
urlParameters: [Parameters.$host],
|
|
1724
|
+
headerParameters: [Parameters.accept],
|
|
1725
|
+
serializer
|
|
1726
|
+
};
|
|
1727
|
+
const getTxsOperationSpec: coreClient.OperationSpec = {
|
|
1728
|
+
path: "/v2/txs",
|
|
1729
|
+
httpMethod: "GET",
|
|
1730
|
+
responses: {
|
|
1731
|
+
200: {
|
|
1732
|
+
bodyMapper:
|
|
1733
|
+
Mappers.PathsFclv4TV2TxsGetResponses200ContentApplicationJsonSchema
|
|
1734
|
+
},
|
|
1735
|
+
400: {
|
|
1736
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1737
|
+
isError: true
|
|
1738
|
+
}
|
|
1739
|
+
},
|
|
1740
|
+
queryParameters: [
|
|
1741
|
+
Parameters.limit,
|
|
1742
|
+
Parameters.scope,
|
|
1743
|
+
Parameters.direction,
|
|
1744
|
+
Parameters.type1,
|
|
1745
|
+
Parameters.typeGroup,
|
|
1746
|
+
Parameters.account,
|
|
1747
|
+
Parameters.contract,
|
|
1748
|
+
Parameters.channel,
|
|
1749
|
+
Parameters.oracle,
|
|
1750
|
+
Parameters.senderId,
|
|
1751
|
+
Parameters.recipientId,
|
|
1752
|
+
Parameters.entrypoint
|
|
1753
|
+
],
|
|
1754
|
+
urlParameters: [Parameters.$host],
|
|
1755
|
+
headerParameters: [Parameters.accept],
|
|
1756
|
+
serializer
|
|
1757
|
+
};
|
|
1758
|
+
const getTxCountOperationSpec: coreClient.OperationSpec = {
|
|
1759
|
+
path: "/v2/txs/count",
|
|
1760
|
+
httpMethod: "GET",
|
|
1761
|
+
responses: {
|
|
1762
|
+
200: {
|
|
1763
|
+
bodyMapper: { type: { name: "Number" } }
|
|
1764
|
+
}
|
|
1765
|
+
},
|
|
1766
|
+
queryParameters: [Parameters.scope, Parameters.txType, Parameters.id1],
|
|
1767
|
+
urlParameters: [Parameters.$host],
|
|
1768
|
+
headerParameters: [Parameters.accept],
|
|
1769
|
+
serializer
|
|
1770
|
+
};
|
|
1771
|
+
const getTxCountByIdOperationSpec: coreClient.OperationSpec = {
|
|
1772
|
+
path: "/v2/txs/count/{id}",
|
|
1773
|
+
httpMethod: "GET",
|
|
1774
|
+
responses: {
|
|
1775
|
+
200: {
|
|
1776
|
+
bodyMapper:
|
|
1777
|
+
Mappers.Paths16Tt677V2TxsCountIdGetResponses200ContentApplicationJsonSchema
|
|
1778
|
+
},
|
|
1779
|
+
400: {
|
|
1780
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1781
|
+
isError: true
|
|
1782
|
+
}
|
|
1783
|
+
},
|
|
1784
|
+
urlParameters: [Parameters.$host, Parameters.id],
|
|
1785
|
+
headerParameters: [Parameters.accept],
|
|
1786
|
+
serializer
|
|
1787
|
+
};
|
|
1788
|
+
const getTxOperationSpec: coreClient.OperationSpec = {
|
|
1789
|
+
path: "/v2/txs/{hash_or_index}",
|
|
1790
|
+
httpMethod: "GET",
|
|
1791
|
+
responses: {
|
|
1792
|
+
200: {
|
|
1793
|
+
bodyMapper: Mappers.Tx
|
|
1794
|
+
},
|
|
1795
|
+
400: {
|
|
1796
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
1797
|
+
isError: true
|
|
1798
|
+
},
|
|
1799
|
+
404: {
|
|
1800
|
+
bodyMapper: Mappers.NotFoundResponse,
|
|
1801
|
+
isError: true
|
|
1802
|
+
}
|
|
1803
|
+
},
|
|
1804
|
+
urlParameters: [Parameters.$host, Parameters.hashOrIndex],
|
|
1805
|
+
headerParameters: [Parameters.accept],
|
|
1806
|
+
serializer
|
|
1807
|
+
};
|