@aws-sdk/client-managedblockchain-query 3.477.0 → 3.478.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/dist-cjs/models/models_0.js +8 -1
- package/dist-cjs/pagination/ListAssetContractsPaginator.js +2 -24
- package/dist-cjs/pagination/ListTokenBalancesPaginator.js +2 -24
- package/dist-cjs/pagination/ListTransactionEventsPaginator.js +2 -24
- package/dist-cjs/pagination/ListTransactionsPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restJson1.js +2 -0
- package/dist-es/models/models_0.js +7 -0
- package/dist-es/pagination/ListAssetContractsPaginator.js +2 -23
- package/dist-es/pagination/ListTokenBalancesPaginator.js +2 -23
- package/dist-es/pagination/ListTransactionEventsPaginator.js +2 -23
- package/dist-es/pagination/ListTransactionsPaginator.js +2 -23
- package/dist-es/protocols/Aws_restJson1.js +2 -0
- package/dist-types/commands/GetTransactionCommand.d.ts +3 -1
- package/dist-types/models/models_0.d.ts +53 -3
- package/dist-types/pagination/ListAssetContractsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListTokenBalancesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListTransactionEventsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListTransactionsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +14 -1
- package/dist-types/ts3.4/pagination/ListAssetContractsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListTokenBalancesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListTransactionEventsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListTransactionsPaginator.d.ts +3 -3
- package/package.json +5 -5
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SortOrder = exports.ListTransactionsSortBy = exports.QueryTransactionEventType = exports.QueryTransactionStatus = exports.ValidationException = exports.ValidationExceptionReason = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.ResourceType = exports.InternalServerException = exports.ErrorType = exports.QueryTokenStandard = exports.QueryNetwork = exports.AccessDeniedException = void 0;
|
|
3
|
+
exports.SortOrder = exports.ListTransactionsSortBy = exports.QueryTransactionEventType = exports.QueryTransactionStatus = exports.ExecutionStatus = exports.ConfirmationStatus = exports.ValidationException = exports.ValidationExceptionReason = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.ResourceType = exports.InternalServerException = exports.ErrorType = exports.QueryTokenStandard = exports.QueryNetwork = exports.AccessDeniedException = void 0;
|
|
4
4
|
const ManagedBlockchainQueryServiceException_1 = require("./ManagedBlockchainQueryServiceException");
|
|
5
5
|
class AccessDeniedException extends ManagedBlockchainQueryServiceException_1.ManagedBlockchainQueryServiceException {
|
|
6
6
|
constructor(opts) {
|
|
@@ -120,6 +120,13 @@ class ValidationException extends ManagedBlockchainQueryServiceException_1.Manag
|
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
exports.ValidationException = ValidationException;
|
|
123
|
+
exports.ConfirmationStatus = {
|
|
124
|
+
FINAL: "FINAL",
|
|
125
|
+
};
|
|
126
|
+
exports.ExecutionStatus = {
|
|
127
|
+
FAILED: "FAILED",
|
|
128
|
+
SUCCEEDED: "SUCCEEDED",
|
|
129
|
+
};
|
|
123
130
|
exports.QueryTransactionStatus = {
|
|
124
131
|
FAILED: "FAILED",
|
|
125
132
|
FINAL: "FINAL",
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListAssetContracts = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListAssetContractsCommand_1 = require("../commands/ListAssetContractsCommand");
|
|
5
6
|
const ManagedBlockchainQueryClient_1 = require("../ManagedBlockchainQueryClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListAssetContractsCommand_1.ListAssetContractsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListAssetContracts(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.nextToken = token;
|
|
15
|
-
input["maxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof ManagedBlockchainQueryClient_1.ManagedBlockchainQueryClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected ManagedBlockchainQuery | ManagedBlockchainQueryClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.nextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListAssetContracts = paginateListAssetContracts;
|
|
7
|
+
exports.paginateListAssetContracts = (0, core_1.createPaginator)(ManagedBlockchainQueryClient_1.ManagedBlockchainQueryClient, ListAssetContractsCommand_1.ListAssetContractsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListTokenBalances = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListTokenBalancesCommand_1 = require("../commands/ListTokenBalancesCommand");
|
|
5
6
|
const ManagedBlockchainQueryClient_1 = require("../ManagedBlockchainQueryClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListTokenBalancesCommand_1.ListTokenBalancesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListTokenBalances(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.nextToken = token;
|
|
15
|
-
input["maxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof ManagedBlockchainQueryClient_1.ManagedBlockchainQueryClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected ManagedBlockchainQuery | ManagedBlockchainQueryClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.nextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListTokenBalances = paginateListTokenBalances;
|
|
7
|
+
exports.paginateListTokenBalances = (0, core_1.createPaginator)(ManagedBlockchainQueryClient_1.ManagedBlockchainQueryClient, ListTokenBalancesCommand_1.ListTokenBalancesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListTransactionEvents = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListTransactionEventsCommand_1 = require("../commands/ListTransactionEventsCommand");
|
|
5
6
|
const ManagedBlockchainQueryClient_1 = require("../ManagedBlockchainQueryClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListTransactionEventsCommand_1.ListTransactionEventsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListTransactionEvents(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.nextToken = token;
|
|
15
|
-
input["maxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof ManagedBlockchainQueryClient_1.ManagedBlockchainQueryClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected ManagedBlockchainQuery | ManagedBlockchainQueryClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.nextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListTransactionEvents = paginateListTransactionEvents;
|
|
7
|
+
exports.paginateListTransactionEvents = (0, core_1.createPaginator)(ManagedBlockchainQueryClient_1.ManagedBlockchainQueryClient, ListTransactionEventsCommand_1.ListTransactionEventsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListTransactions = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListTransactionsCommand_1 = require("../commands/ListTransactionsCommand");
|
|
5
6
|
const ManagedBlockchainQueryClient_1 = require("../ManagedBlockchainQueryClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListTransactionsCommand_1.ListTransactionsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListTransactions(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.nextToken = token;
|
|
15
|
-
input["maxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof ManagedBlockchainQueryClient_1.ManagedBlockchainQueryClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected ManagedBlockchainQuery | ManagedBlockchainQueryClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.nextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListTransactions = paginateListTransactions;
|
|
7
|
+
exports.paginateListTransactions = (0, core_1.createPaginator)(ManagedBlockchainQueryClient_1.ManagedBlockchainQueryClient, ListTransactionsCommand_1.ListTransactionsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -699,9 +699,11 @@ const de_Transaction = (output, context) => {
|
|
|
699
699
|
return (0, smithy_client_1.take)(output, {
|
|
700
700
|
blockHash: smithy_client_1.expectString,
|
|
701
701
|
blockNumber: smithy_client_1.expectString,
|
|
702
|
+
confirmationStatus: smithy_client_1.expectString,
|
|
702
703
|
contractAddress: smithy_client_1.expectString,
|
|
703
704
|
cumulativeGasUsed: smithy_client_1.expectString,
|
|
704
705
|
effectiveGasPrice: smithy_client_1.expectString,
|
|
706
|
+
executionStatus: smithy_client_1.expectString,
|
|
705
707
|
from: smithy_client_1.expectString,
|
|
706
708
|
gasUsed: smithy_client_1.expectString,
|
|
707
709
|
network: smithy_client_1.expectString,
|
|
@@ -111,6 +111,13 @@ export class ValidationException extends __BaseException {
|
|
|
111
111
|
this.fieldList = opts.fieldList;
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
+
export const ConfirmationStatus = {
|
|
115
|
+
FINAL: "FINAL",
|
|
116
|
+
};
|
|
117
|
+
export const ExecutionStatus = {
|
|
118
|
+
FAILED: "FAILED",
|
|
119
|
+
SUCCEEDED: "SUCCEEDED",
|
|
120
|
+
};
|
|
114
121
|
export const QueryTransactionStatus = {
|
|
115
122
|
FAILED: "FAILED",
|
|
116
123
|
FINAL: "FINAL",
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListAssetContractsCommand, } from "../commands/ListAssetContractsCommand";
|
|
2
3
|
import { ManagedBlockchainQueryClient } from "../ManagedBlockchainQueryClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAssetContractsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListAssetContracts(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof ManagedBlockchainQueryClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected ManagedBlockchainQuery | ManagedBlockchainQueryClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListAssetContracts = createPaginator(ManagedBlockchainQueryClient, ListAssetContractsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListTokenBalancesCommand, } from "../commands/ListTokenBalancesCommand";
|
|
2
3
|
import { ManagedBlockchainQueryClient } from "../ManagedBlockchainQueryClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListTokenBalancesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListTokenBalances(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof ManagedBlockchainQueryClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected ManagedBlockchainQuery | ManagedBlockchainQueryClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListTokenBalances = createPaginator(ManagedBlockchainQueryClient, ListTokenBalancesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListTransactionEventsCommand, } from "../commands/ListTransactionEventsCommand";
|
|
2
3
|
import { ManagedBlockchainQueryClient } from "../ManagedBlockchainQueryClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListTransactionEventsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListTransactionEvents(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof ManagedBlockchainQueryClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected ManagedBlockchainQuery | ManagedBlockchainQueryClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListTransactionEvents = createPaginator(ManagedBlockchainQueryClient, ListTransactionEventsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListTransactionsCommand, } from "../commands/ListTransactionsCommand";
|
|
2
3
|
import { ManagedBlockchainQueryClient } from "../ManagedBlockchainQueryClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListTransactionsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListTransactions(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof ManagedBlockchainQueryClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected ManagedBlockchainQuery | ManagedBlockchainQueryClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListTransactions = createPaginator(ManagedBlockchainQueryClient, ListTransactionsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -680,9 +680,11 @@ const de_Transaction = (output, context) => {
|
|
|
680
680
|
return take(output, {
|
|
681
681
|
blockHash: __expectString,
|
|
682
682
|
blockNumber: __expectString,
|
|
683
|
+
confirmationStatus: __expectString,
|
|
683
684
|
contractAddress: __expectString,
|
|
684
685
|
cumulativeGasUsed: __expectString,
|
|
685
686
|
effectiveGasPrice: __expectString,
|
|
687
|
+
executionStatus: __expectString,
|
|
686
688
|
from: __expectString,
|
|
687
689
|
gasUsed: __expectString,
|
|
688
690
|
network: __expectString,
|
|
@@ -45,7 +45,7 @@ export interface GetTransactionCommandOutput extends GetTransactionOutput, __Met
|
|
|
45
45
|
* // transactionTimestamp: new Date("TIMESTAMP"), // required
|
|
46
46
|
* // transactionIndex: Number("long"), // required
|
|
47
47
|
* // numberOfTransactions: Number("long"), // required
|
|
48
|
-
* // status: "STRING_VALUE",
|
|
48
|
+
* // status: "STRING_VALUE",
|
|
49
49
|
* // to: "STRING_VALUE", // required
|
|
50
50
|
* // from: "STRING_VALUE",
|
|
51
51
|
* // contractAddress: "STRING_VALUE",
|
|
@@ -57,6 +57,8 @@ export interface GetTransactionCommandOutput extends GetTransactionOutput, __Met
|
|
|
57
57
|
* // signatureS: "STRING_VALUE",
|
|
58
58
|
* // transactionFee: "STRING_VALUE",
|
|
59
59
|
* // transactionId: "STRING_VALUE",
|
|
60
|
+
* // confirmationStatus: "STRING_VALUE",
|
|
61
|
+
* // executionStatus: "STRING_VALUE",
|
|
60
62
|
* // },
|
|
61
63
|
* // };
|
|
62
64
|
*
|
|
@@ -75,7 +75,7 @@ export interface AssetContract {
|
|
|
75
75
|
/**
|
|
76
76
|
* @public
|
|
77
77
|
* <p>The container for the contract identifier containing its blockchain network
|
|
78
|
-
*
|
|
78
|
+
* and address.</p>
|
|
79
79
|
*/
|
|
80
80
|
contractIdentifier: ContractIdentifier | undefined;
|
|
81
81
|
/**
|
|
@@ -456,6 +456,17 @@ export declare class ValidationException extends __BaseException {
|
|
|
456
456
|
*/
|
|
457
457
|
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
458
458
|
}
|
|
459
|
+
/**
|
|
460
|
+
* @public
|
|
461
|
+
* @enum
|
|
462
|
+
*/
|
|
463
|
+
export declare const ConfirmationStatus: {
|
|
464
|
+
readonly FINAL: "FINAL";
|
|
465
|
+
};
|
|
466
|
+
/**
|
|
467
|
+
* @public
|
|
468
|
+
*/
|
|
469
|
+
export type ConfirmationStatus = (typeof ConfirmationStatus)[keyof typeof ConfirmationStatus];
|
|
459
470
|
/**
|
|
460
471
|
* @public
|
|
461
472
|
* <p>The contract or wallet address by which to filter the request.</p>
|
|
@@ -498,6 +509,18 @@ export interface ContractMetadata {
|
|
|
498
509
|
*/
|
|
499
510
|
decimals?: number;
|
|
500
511
|
}
|
|
512
|
+
/**
|
|
513
|
+
* @public
|
|
514
|
+
* @enum
|
|
515
|
+
*/
|
|
516
|
+
export declare const ExecutionStatus: {
|
|
517
|
+
readonly FAILED: "FAILED";
|
|
518
|
+
readonly SUCCEEDED: "SUCCEEDED";
|
|
519
|
+
};
|
|
520
|
+
/**
|
|
521
|
+
* @public
|
|
522
|
+
*/
|
|
523
|
+
export type ExecutionStatus = (typeof ExecutionStatus)[keyof typeof ExecutionStatus];
|
|
501
524
|
/**
|
|
502
525
|
* @public
|
|
503
526
|
*/
|
|
@@ -681,9 +704,26 @@ export interface Transaction {
|
|
|
681
704
|
numberOfTransactions: number | undefined;
|
|
682
705
|
/**
|
|
683
706
|
* @public
|
|
707
|
+
* @deprecated
|
|
708
|
+
*
|
|
684
709
|
* <p>The status of the transaction.</p>
|
|
685
|
-
|
|
686
|
-
|
|
710
|
+
* <important>
|
|
711
|
+
* <p>This property is deprecated. You must use the <code>confirmationStatus</code>
|
|
712
|
+
* and the <code>executionStatus</code> properties to determine if the <code>status</code>
|
|
713
|
+
* of the transaction is <code>FINAL</code> or <code>FAILED</code>.</p>
|
|
714
|
+
* <ul>
|
|
715
|
+
* <li>
|
|
716
|
+
* <p>Transactions with a <code>status</code> of <code>FINAL</code> will now have the <code>confirmationStatus</code> set
|
|
717
|
+
* to <code>FINAL</code> and the <code>executionStatus</code> set to <code>SUCCEEDED</code>.</p>
|
|
718
|
+
* </li>
|
|
719
|
+
* <li>
|
|
720
|
+
* <p>Transactions with a <code>status</code> of <code>FAILED</code> will now have the <code>confirmationStatus</code> set
|
|
721
|
+
* to <code>FINAL</code> and the <code>executionStatus</code> set to <code>FAILED</code>.</p>
|
|
722
|
+
* </li>
|
|
723
|
+
* </ul>
|
|
724
|
+
* </important>
|
|
725
|
+
*/
|
|
726
|
+
status?: QueryTransactionStatus;
|
|
687
727
|
/**
|
|
688
728
|
* @public
|
|
689
729
|
* <p>The identifier of the transaction. It is generated whenever a transaction is verified and added to the blockchain.</p>
|
|
@@ -740,6 +780,16 @@ export interface Transaction {
|
|
|
740
780
|
* <p>The unique identifier of the transaction. It is generated whenever a transaction is verified and added to the blockchain.</p>
|
|
741
781
|
*/
|
|
742
782
|
transactionId?: string;
|
|
783
|
+
/**
|
|
784
|
+
* @public
|
|
785
|
+
* <p>Specifies whether the transaction has reached Finality.</p>
|
|
786
|
+
*/
|
|
787
|
+
confirmationStatus?: ConfirmationStatus;
|
|
788
|
+
/**
|
|
789
|
+
* @public
|
|
790
|
+
* <p>Identifies whether the transaction has succeeded or failed.</p>
|
|
791
|
+
*/
|
|
792
|
+
executionStatus?: ExecutionStatus;
|
|
743
793
|
}
|
|
744
794
|
/**
|
|
745
795
|
* @public
|
|
@@ -4,4 +4,4 @@ import { ManagedBlockchainQueryPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListAssetContracts: (config: ManagedBlockchainQueryPaginationConfiguration, input: ListAssetContractsCommandInput, ...rest: any[]) => Paginator<ListAssetContractsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ManagedBlockchainQueryPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListTokenBalances: (config: ManagedBlockchainQueryPaginationConfiguration, input: ListTokenBalancesCommandInput, ...rest: any[]) => Paginator<ListTokenBalancesCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ManagedBlockchainQueryPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListTransactionEvents: (config: ManagedBlockchainQueryPaginationConfiguration, input: ListTransactionEventsCommandInput, ...rest: any[]) => Paginator<ListTransactionEventsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ManagedBlockchainQueryPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListTransactions: (config: ManagedBlockchainQueryPaginationConfiguration, input: ListTransactionsCommandInput, ...rest: any[]) => Paginator<ListTransactionsCommandOutput>;
|
|
@@ -140,6 +140,11 @@ export declare class ValidationException extends __BaseException {
|
|
|
140
140
|
opts: __ExceptionOptionType<ValidationException, __BaseException>
|
|
141
141
|
);
|
|
142
142
|
}
|
|
143
|
+
export declare const ConfirmationStatus: {
|
|
144
|
+
readonly FINAL: "FINAL";
|
|
145
|
+
};
|
|
146
|
+
export type ConfirmationStatus =
|
|
147
|
+
(typeof ConfirmationStatus)[keyof typeof ConfirmationStatus];
|
|
143
148
|
export interface ContractFilter {
|
|
144
149
|
network: QueryNetwork | undefined;
|
|
145
150
|
tokenStandard: QueryTokenStandard | undefined;
|
|
@@ -150,6 +155,12 @@ export interface ContractMetadata {
|
|
|
150
155
|
symbol?: string;
|
|
151
156
|
decimals?: number;
|
|
152
157
|
}
|
|
158
|
+
export declare const ExecutionStatus: {
|
|
159
|
+
readonly FAILED: "FAILED";
|
|
160
|
+
readonly SUCCEEDED: "SUCCEEDED";
|
|
161
|
+
};
|
|
162
|
+
export type ExecutionStatus =
|
|
163
|
+
(typeof ExecutionStatus)[keyof typeof ExecutionStatus];
|
|
153
164
|
export interface GetAssetContractInput {
|
|
154
165
|
contractIdentifier: ContractIdentifier | undefined;
|
|
155
166
|
}
|
|
@@ -189,7 +200,7 @@ export interface Transaction {
|
|
|
189
200
|
transactionTimestamp: Date | undefined;
|
|
190
201
|
transactionIndex: number | undefined;
|
|
191
202
|
numberOfTransactions: number | undefined;
|
|
192
|
-
status
|
|
203
|
+
status?: QueryTransactionStatus;
|
|
193
204
|
to: string | undefined;
|
|
194
205
|
from?: string;
|
|
195
206
|
contractAddress?: string;
|
|
@@ -201,6 +212,8 @@ export interface Transaction {
|
|
|
201
212
|
signatureS?: string;
|
|
202
213
|
transactionFee?: string;
|
|
203
214
|
transactionId?: string;
|
|
215
|
+
confirmationStatus?: ConfirmationStatus;
|
|
216
|
+
executionStatus?: ExecutionStatus;
|
|
204
217
|
}
|
|
205
218
|
export interface GetTransactionOutput {
|
|
206
219
|
transaction: Transaction | undefined;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListAssetContractsCommandOutput,
|
|
5
5
|
} from "../commands/ListAssetContractsCommand";
|
|
6
6
|
import { ManagedBlockchainQueryPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListAssetContracts: (
|
|
8
8
|
config: ManagedBlockchainQueryPaginationConfiguration,
|
|
9
9
|
input: ListAssetContractsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListAssetContractsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListTokenBalancesCommandOutput,
|
|
5
5
|
} from "../commands/ListTokenBalancesCommand";
|
|
6
6
|
import { ManagedBlockchainQueryPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListTokenBalances: (
|
|
8
8
|
config: ManagedBlockchainQueryPaginationConfiguration,
|
|
9
9
|
input: ListTokenBalancesCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListTokenBalancesCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListTransactionEventsCommandOutput,
|
|
5
5
|
} from "../commands/ListTransactionEventsCommand";
|
|
6
6
|
import { ManagedBlockchainQueryPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListTransactionEvents: (
|
|
8
8
|
config: ManagedBlockchainQueryPaginationConfiguration,
|
|
9
9
|
input: ListTransactionEventsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListTransactionEventsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListTransactionsCommandOutput,
|
|
5
5
|
} from "../commands/ListTransactionsCommand";
|
|
6
6
|
import { ManagedBlockchainQueryPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListTransactions: (
|
|
8
8
|
config: ManagedBlockchainQueryPaginationConfiguration,
|
|
9
9
|
input: ListTransactionsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListTransactionsCommandOutput>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-managedblockchain-query",
|
|
3
3
|
"description": "AWS SDK for JavaScript Managedblockchain Query Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.478.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -20,17 +20,17 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.478.0",
|
|
24
24
|
"@aws-sdk/core": "3.477.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.478.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.468.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.468.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.468.0",
|
|
29
29
|
"@aws-sdk/middleware-signing": "3.468.0",
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.478.0",
|
|
31
31
|
"@aws-sdk/region-config-resolver": "3.470.0",
|
|
32
32
|
"@aws-sdk/types": "3.468.0",
|
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.478.0",
|
|
34
34
|
"@aws-sdk/util-user-agent-browser": "3.468.0",
|
|
35
35
|
"@aws-sdk/util-user-agent-node": "3.470.0",
|
|
36
36
|
"@smithy/config-resolver": "^2.0.21",
|