@aws-sdk/client-managedblockchain-query 3.476.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.
Files changed (24) hide show
  1. package/dist-cjs/models/models_0.js +8 -1
  2. package/dist-cjs/pagination/ListAssetContractsPaginator.js +2 -24
  3. package/dist-cjs/pagination/ListTokenBalancesPaginator.js +2 -24
  4. package/dist-cjs/pagination/ListTransactionEventsPaginator.js +2 -24
  5. package/dist-cjs/pagination/ListTransactionsPaginator.js +2 -24
  6. package/dist-cjs/protocols/Aws_restJson1.js +39 -97
  7. package/dist-es/models/models_0.js +7 -0
  8. package/dist-es/pagination/ListAssetContractsPaginator.js +2 -23
  9. package/dist-es/pagination/ListTokenBalancesPaginator.js +2 -23
  10. package/dist-es/pagination/ListTransactionEventsPaginator.js +2 -23
  11. package/dist-es/pagination/ListTransactionsPaginator.js +2 -23
  12. package/dist-es/protocols/Aws_restJson1.js +39 -97
  13. package/dist-types/commands/GetTransactionCommand.d.ts +3 -1
  14. package/dist-types/models/models_0.d.ts +53 -3
  15. package/dist-types/pagination/ListAssetContractsPaginator.d.ts +1 -1
  16. package/dist-types/pagination/ListTokenBalancesPaginator.d.ts +1 -1
  17. package/dist-types/pagination/ListTransactionEventsPaginator.d.ts +1 -1
  18. package/dist-types/pagination/ListTransactionsPaginator.d.ts +1 -1
  19. package/dist-types/ts3.4/models/models_0.d.ts +14 -1
  20. package/dist-types/ts3.4/pagination/ListAssetContractsPaginator.d.ts +3 -3
  21. package/dist-types/ts3.4/pagination/ListTokenBalancesPaginator.d.ts +3 -3
  22. package/dist-types/ts3.4/pagination/ListTransactionEventsPaginator.d.ts +3 -3
  23. package/dist-types/ts3.4/pagination/ListTransactionsPaginator.d.ts +3 -3
  24. package/package.json +7 -6
@@ -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
- const makePagedClientRequest = async (client, input, ...args) => {
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
- const makePagedClientRequest = async (client, input, ...args) => {
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
- const makePagedClientRequest = async (client, input, ...args) => {
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
- const makePagedClientRequest = async (client, input, ...args) => {
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");
@@ -1,126 +1,91 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.de_ListTransactionsCommand = exports.de_ListTransactionEventsCommand = exports.de_ListTokenBalancesCommand = exports.de_ListAssetContractsCommand = exports.de_GetTransactionCommand = exports.de_GetTokenBalanceCommand = exports.de_GetAssetContractCommand = exports.de_BatchGetTokenBalanceCommand = exports.se_ListTransactionsCommand = exports.se_ListTransactionEventsCommand = exports.se_ListTokenBalancesCommand = exports.se_ListAssetContractsCommand = exports.se_GetTransactionCommand = exports.se_GetTokenBalanceCommand = exports.se_GetAssetContractCommand = exports.se_BatchGetTokenBalanceCommand = void 0;
4
- const protocol_http_1 = require("@smithy/protocol-http");
4
+ const core_1 = require("@smithy/core");
5
5
  const smithy_client_1 = require("@smithy/smithy-client");
6
6
  const ManagedBlockchainQueryServiceException_1 = require("../models/ManagedBlockchainQueryServiceException");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const se_BatchGetTokenBalanceCommand = async (input, context) => {
9
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
9
+ const b = (0, core_1.requestBuilder)(input, context);
10
10
  const headers = {
11
11
  "content-type": "application/json",
12
12
  };
13
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/batch-get-token-balance";
13
+ b.bp("/batch-get-token-balance");
14
14
  let body;
15
15
  body = JSON.stringify((0, smithy_client_1.take)(input, {
16
16
  getTokenBalanceInputs: (_) => se_GetTokenBalanceInputList(_, context),
17
17
  }));
18
- return new protocol_http_1.HttpRequest({
19
- protocol,
20
- hostname,
21
- port,
22
- method: "POST",
23
- headers,
24
- path: resolvedPath,
25
- body,
26
- });
18
+ b.m("POST").h(headers).b(body);
19
+ return b.build();
27
20
  };
28
21
  exports.se_BatchGetTokenBalanceCommand = se_BatchGetTokenBalanceCommand;
29
22
  const se_GetAssetContractCommand = async (input, context) => {
30
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
23
+ const b = (0, core_1.requestBuilder)(input, context);
31
24
  const headers = {
32
25
  "content-type": "application/json",
33
26
  };
34
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-asset-contract";
27
+ b.bp("/get-asset-contract");
35
28
  let body;
36
29
  body = JSON.stringify((0, smithy_client_1.take)(input, {
37
30
  contractIdentifier: (_) => (0, smithy_client_1._json)(_),
38
31
  }));
39
- return new protocol_http_1.HttpRequest({
40
- protocol,
41
- hostname,
42
- port,
43
- method: "POST",
44
- headers,
45
- path: resolvedPath,
46
- body,
47
- });
32
+ b.m("POST").h(headers).b(body);
33
+ return b.build();
48
34
  };
49
35
  exports.se_GetAssetContractCommand = se_GetAssetContractCommand;
50
36
  const se_GetTokenBalanceCommand = async (input, context) => {
51
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
37
+ const b = (0, core_1.requestBuilder)(input, context);
52
38
  const headers = {
53
39
  "content-type": "application/json",
54
40
  };
55
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-token-balance";
41
+ b.bp("/get-token-balance");
56
42
  let body;
57
43
  body = JSON.stringify((0, smithy_client_1.take)(input, {
58
44
  atBlockchainInstant: (_) => se_BlockchainInstant(_, context),
59
45
  ownerIdentifier: (_) => (0, smithy_client_1._json)(_),
60
46
  tokenIdentifier: (_) => (0, smithy_client_1._json)(_),
61
47
  }));
62
- return new protocol_http_1.HttpRequest({
63
- protocol,
64
- hostname,
65
- port,
66
- method: "POST",
67
- headers,
68
- path: resolvedPath,
69
- body,
70
- });
48
+ b.m("POST").h(headers).b(body);
49
+ return b.build();
71
50
  };
72
51
  exports.se_GetTokenBalanceCommand = se_GetTokenBalanceCommand;
73
52
  const se_GetTransactionCommand = async (input, context) => {
74
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
53
+ const b = (0, core_1.requestBuilder)(input, context);
75
54
  const headers = {
76
55
  "content-type": "application/json",
77
56
  };
78
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-transaction";
57
+ b.bp("/get-transaction");
79
58
  let body;
80
59
  body = JSON.stringify((0, smithy_client_1.take)(input, {
81
60
  network: [],
82
61
  transactionHash: [],
83
62
  }));
84
- return new protocol_http_1.HttpRequest({
85
- protocol,
86
- hostname,
87
- port,
88
- method: "POST",
89
- headers,
90
- path: resolvedPath,
91
- body,
92
- });
63
+ b.m("POST").h(headers).b(body);
64
+ return b.build();
93
65
  };
94
66
  exports.se_GetTransactionCommand = se_GetTransactionCommand;
95
67
  const se_ListAssetContractsCommand = async (input, context) => {
96
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
68
+ const b = (0, core_1.requestBuilder)(input, context);
97
69
  const headers = {
98
70
  "content-type": "application/json",
99
71
  };
100
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-asset-contracts";
72
+ b.bp("/list-asset-contracts");
101
73
  let body;
102
74
  body = JSON.stringify((0, smithy_client_1.take)(input, {
103
75
  contractFilter: (_) => (0, smithy_client_1._json)(_),
104
76
  maxResults: [],
105
77
  nextToken: [],
106
78
  }));
107
- return new protocol_http_1.HttpRequest({
108
- protocol,
109
- hostname,
110
- port,
111
- method: "POST",
112
- headers,
113
- path: resolvedPath,
114
- body,
115
- });
79
+ b.m("POST").h(headers).b(body);
80
+ return b.build();
116
81
  };
117
82
  exports.se_ListAssetContractsCommand = se_ListAssetContractsCommand;
118
83
  const se_ListTokenBalancesCommand = async (input, context) => {
119
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
84
+ const b = (0, core_1.requestBuilder)(input, context);
120
85
  const headers = {
121
86
  "content-type": "application/json",
122
87
  };
123
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-token-balances";
88
+ b.bp("/list-token-balances");
124
89
  let body;
125
90
  body = JSON.stringify((0, smithy_client_1.take)(input, {
126
91
  maxResults: [],
@@ -128,23 +93,16 @@ const se_ListTokenBalancesCommand = async (input, context) => {
128
93
  ownerFilter: (_) => (0, smithy_client_1._json)(_),
129
94
  tokenFilter: (_) => (0, smithy_client_1._json)(_),
130
95
  }));
131
- return new protocol_http_1.HttpRequest({
132
- protocol,
133
- hostname,
134
- port,
135
- method: "POST",
136
- headers,
137
- path: resolvedPath,
138
- body,
139
- });
96
+ b.m("POST").h(headers).b(body);
97
+ return b.build();
140
98
  };
141
99
  exports.se_ListTokenBalancesCommand = se_ListTokenBalancesCommand;
142
100
  const se_ListTransactionEventsCommand = async (input, context) => {
143
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
101
+ const b = (0, core_1.requestBuilder)(input, context);
144
102
  const headers = {
145
103
  "content-type": "application/json",
146
104
  };
147
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-transaction-events";
105
+ b.bp("/list-transaction-events");
148
106
  let body;
149
107
  body = JSON.stringify((0, smithy_client_1.take)(input, {
150
108
  maxResults: [],
@@ -152,23 +110,16 @@ const se_ListTransactionEventsCommand = async (input, context) => {
152
110
  nextToken: [],
153
111
  transactionHash: [],
154
112
  }));
155
- return new protocol_http_1.HttpRequest({
156
- protocol,
157
- hostname,
158
- port,
159
- method: "POST",
160
- headers,
161
- path: resolvedPath,
162
- body,
163
- });
113
+ b.m("POST").h(headers).b(body);
114
+ return b.build();
164
115
  };
165
116
  exports.se_ListTransactionEventsCommand = se_ListTransactionEventsCommand;
166
117
  const se_ListTransactionsCommand = async (input, context) => {
167
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
118
+ const b = (0, core_1.requestBuilder)(input, context);
168
119
  const headers = {
169
120
  "content-type": "application/json",
170
121
  };
171
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-transactions";
122
+ b.bp("/list-transactions");
172
123
  let body;
173
124
  body = JSON.stringify((0, smithy_client_1.take)(input, {
174
125
  address: [],
@@ -179,15 +130,8 @@ const se_ListTransactionsCommand = async (input, context) => {
179
130
  sort: (_) => (0, smithy_client_1._json)(_),
180
131
  toBlockchainInstant: (_) => se_BlockchainInstant(_, context),
181
132
  }));
182
- return new protocol_http_1.HttpRequest({
183
- protocol,
184
- hostname,
185
- port,
186
- method: "POST",
187
- headers,
188
- path: resolvedPath,
189
- body,
190
- });
133
+ b.m("POST").h(headers).b(body);
134
+ return b.build();
191
135
  };
192
136
  exports.se_ListTransactionsCommand = se_ListTransactionsCommand;
193
137
  const de_BatchGetTokenBalanceCommand = async (output, context) => {
@@ -598,10 +542,7 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
598
542
  };
599
543
  const de_InternalServerExceptionRes = async (parsedOutput, context) => {
600
544
  const contents = (0, smithy_client_1.map)({
601
- retryAfterSeconds: [
602
- () => void 0 !== parsedOutput.headers["retry-after"],
603
- () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]),
604
- ],
545
+ [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers[_ra])],
605
546
  });
606
547
  const data = parsedOutput.body;
607
548
  const doc = (0, smithy_client_1.take)(data, {
@@ -648,10 +589,7 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
648
589
  };
649
590
  const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
650
591
  const contents = (0, smithy_client_1.map)({
651
- retryAfterSeconds: [
652
- () => void 0 !== parsedOutput.headers["retry-after"],
653
- () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]),
654
- ],
592
+ [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers[_ra])],
655
593
  });
656
594
  const data = parsedOutput.body;
657
595
  const doc = (0, smithy_client_1.take)(data, {
@@ -761,9 +699,11 @@ const de_Transaction = (output, context) => {
761
699
  return (0, smithy_client_1.take)(output, {
762
700
  blockHash: smithy_client_1.expectString,
763
701
  blockNumber: smithy_client_1.expectString,
702
+ confirmationStatus: smithy_client_1.expectString,
764
703
  contractAddress: smithy_client_1.expectString,
765
704
  cumulativeGasUsed: smithy_client_1.expectString,
766
705
  effectiveGasPrice: smithy_client_1.expectString,
706
+ executionStatus: smithy_client_1.expectString,
767
707
  from: smithy_client_1.expectString,
768
708
  gasUsed: smithy_client_1.expectString,
769
709
  network: smithy_client_1.expectString,
@@ -807,6 +747,8 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
807
747
  value !== "" &&
808
748
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
809
749
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
750
+ const _rAS = "retryAfterSeconds";
751
+ const _ra = "retry-after";
810
752
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
811
753
  if (encoded.length) {
812
754
  return JSON.parse(encoded);
@@ -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 makePagedClientRequest = async (client, input, ...args) => {
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 makePagedClientRequest = async (client, input, ...args) => {
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 makePagedClientRequest = async (client, input, ...args) => {
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 makePagedClientRequest = async (client, input, ...args) => {
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");
@@ -1,118 +1,83 @@
1
- import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
1
+ import { requestBuilder as rb } from "@smithy/core";
2
2
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@smithy/smithy-client";
3
3
  import { ManagedBlockchainQueryServiceException as __BaseException } from "../models/ManagedBlockchainQueryServiceException";
4
4
  import { AccessDeniedException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
5
5
  export const se_BatchGetTokenBalanceCommand = async (input, context) => {
6
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
6
+ const b = rb(input, context);
7
7
  const headers = {
8
8
  "content-type": "application/json",
9
9
  };
10
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/batch-get-token-balance";
10
+ b.bp("/batch-get-token-balance");
11
11
  let body;
12
12
  body = JSON.stringify(take(input, {
13
13
  getTokenBalanceInputs: (_) => se_GetTokenBalanceInputList(_, context),
14
14
  }));
15
- return new __HttpRequest({
16
- protocol,
17
- hostname,
18
- port,
19
- method: "POST",
20
- headers,
21
- path: resolvedPath,
22
- body,
23
- });
15
+ b.m("POST").h(headers).b(body);
16
+ return b.build();
24
17
  };
25
18
  export const se_GetAssetContractCommand = async (input, context) => {
26
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
19
+ const b = rb(input, context);
27
20
  const headers = {
28
21
  "content-type": "application/json",
29
22
  };
30
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-asset-contract";
23
+ b.bp("/get-asset-contract");
31
24
  let body;
32
25
  body = JSON.stringify(take(input, {
33
26
  contractIdentifier: (_) => _json(_),
34
27
  }));
35
- return new __HttpRequest({
36
- protocol,
37
- hostname,
38
- port,
39
- method: "POST",
40
- headers,
41
- path: resolvedPath,
42
- body,
43
- });
28
+ b.m("POST").h(headers).b(body);
29
+ return b.build();
44
30
  };
45
31
  export const se_GetTokenBalanceCommand = async (input, context) => {
46
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
32
+ const b = rb(input, context);
47
33
  const headers = {
48
34
  "content-type": "application/json",
49
35
  };
50
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-token-balance";
36
+ b.bp("/get-token-balance");
51
37
  let body;
52
38
  body = JSON.stringify(take(input, {
53
39
  atBlockchainInstant: (_) => se_BlockchainInstant(_, context),
54
40
  ownerIdentifier: (_) => _json(_),
55
41
  tokenIdentifier: (_) => _json(_),
56
42
  }));
57
- return new __HttpRequest({
58
- protocol,
59
- hostname,
60
- port,
61
- method: "POST",
62
- headers,
63
- path: resolvedPath,
64
- body,
65
- });
43
+ b.m("POST").h(headers).b(body);
44
+ return b.build();
66
45
  };
67
46
  export const se_GetTransactionCommand = async (input, context) => {
68
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
47
+ const b = rb(input, context);
69
48
  const headers = {
70
49
  "content-type": "application/json",
71
50
  };
72
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/get-transaction";
51
+ b.bp("/get-transaction");
73
52
  let body;
74
53
  body = JSON.stringify(take(input, {
75
54
  network: [],
76
55
  transactionHash: [],
77
56
  }));
78
- return new __HttpRequest({
79
- protocol,
80
- hostname,
81
- port,
82
- method: "POST",
83
- headers,
84
- path: resolvedPath,
85
- body,
86
- });
57
+ b.m("POST").h(headers).b(body);
58
+ return b.build();
87
59
  };
88
60
  export const se_ListAssetContractsCommand = async (input, context) => {
89
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
61
+ const b = rb(input, context);
90
62
  const headers = {
91
63
  "content-type": "application/json",
92
64
  };
93
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-asset-contracts";
65
+ b.bp("/list-asset-contracts");
94
66
  let body;
95
67
  body = JSON.stringify(take(input, {
96
68
  contractFilter: (_) => _json(_),
97
69
  maxResults: [],
98
70
  nextToken: [],
99
71
  }));
100
- return new __HttpRequest({
101
- protocol,
102
- hostname,
103
- port,
104
- method: "POST",
105
- headers,
106
- path: resolvedPath,
107
- body,
108
- });
72
+ b.m("POST").h(headers).b(body);
73
+ return b.build();
109
74
  };
110
75
  export const se_ListTokenBalancesCommand = async (input, context) => {
111
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
76
+ const b = rb(input, context);
112
77
  const headers = {
113
78
  "content-type": "application/json",
114
79
  };
115
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-token-balances";
80
+ b.bp("/list-token-balances");
116
81
  let body;
117
82
  body = JSON.stringify(take(input, {
118
83
  maxResults: [],
@@ -120,22 +85,15 @@ export const se_ListTokenBalancesCommand = async (input, context) => {
120
85
  ownerFilter: (_) => _json(_),
121
86
  tokenFilter: (_) => _json(_),
122
87
  }));
123
- return new __HttpRequest({
124
- protocol,
125
- hostname,
126
- port,
127
- method: "POST",
128
- headers,
129
- path: resolvedPath,
130
- body,
131
- });
88
+ b.m("POST").h(headers).b(body);
89
+ return b.build();
132
90
  };
133
91
  export const se_ListTransactionEventsCommand = async (input, context) => {
134
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
92
+ const b = rb(input, context);
135
93
  const headers = {
136
94
  "content-type": "application/json",
137
95
  };
138
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-transaction-events";
96
+ b.bp("/list-transaction-events");
139
97
  let body;
140
98
  body = JSON.stringify(take(input, {
141
99
  maxResults: [],
@@ -143,22 +101,15 @@ export const se_ListTransactionEventsCommand = async (input, context) => {
143
101
  nextToken: [],
144
102
  transactionHash: [],
145
103
  }));
146
- return new __HttpRequest({
147
- protocol,
148
- hostname,
149
- port,
150
- method: "POST",
151
- headers,
152
- path: resolvedPath,
153
- body,
154
- });
104
+ b.m("POST").h(headers).b(body);
105
+ return b.build();
155
106
  };
156
107
  export const se_ListTransactionsCommand = async (input, context) => {
157
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
108
+ const b = rb(input, context);
158
109
  const headers = {
159
110
  "content-type": "application/json",
160
111
  };
161
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-transactions";
112
+ b.bp("/list-transactions");
162
113
  let body;
163
114
  body = JSON.stringify(take(input, {
164
115
  address: [],
@@ -169,15 +120,8 @@ export const se_ListTransactionsCommand = async (input, context) => {
169
120
  sort: (_) => _json(_),
170
121
  toBlockchainInstant: (_) => se_BlockchainInstant(_, context),
171
122
  }));
172
- return new __HttpRequest({
173
- protocol,
174
- hostname,
175
- port,
176
- method: "POST",
177
- headers,
178
- path: resolvedPath,
179
- body,
180
- });
123
+ b.m("POST").h(headers).b(body);
124
+ return b.build();
181
125
  };
182
126
  export const de_BatchGetTokenBalanceCommand = async (output, context) => {
183
127
  if (output.statusCode !== 200 && output.statusCode >= 300) {
@@ -579,10 +523,7 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
579
523
  };
580
524
  const de_InternalServerExceptionRes = async (parsedOutput, context) => {
581
525
  const contents = map({
582
- retryAfterSeconds: [
583
- () => void 0 !== parsedOutput.headers["retry-after"],
584
- () => __strictParseInt32(parsedOutput.headers["retry-after"]),
585
- ],
526
+ [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])],
586
527
  });
587
528
  const data = parsedOutput.body;
588
529
  const doc = take(data, {
@@ -629,10 +570,7 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
629
570
  };
630
571
  const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
631
572
  const contents = map({
632
- retryAfterSeconds: [
633
- () => void 0 !== parsedOutput.headers["retry-after"],
634
- () => __strictParseInt32(parsedOutput.headers["retry-after"]),
635
- ],
573
+ [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])],
636
574
  });
637
575
  const data = parsedOutput.body;
638
576
  const doc = take(data, {
@@ -742,9 +680,11 @@ const de_Transaction = (output, context) => {
742
680
  return take(output, {
743
681
  blockHash: __expectString,
744
682
  blockNumber: __expectString,
683
+ confirmationStatus: __expectString,
745
684
  contractAddress: __expectString,
746
685
  cumulativeGasUsed: __expectString,
747
686
  effectiveGasPrice: __expectString,
687
+ executionStatus: __expectString,
748
688
  from: __expectString,
749
689
  gasUsed: __expectString,
750
690
  network: __expectString,
@@ -788,6 +728,8 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
788
728
  value !== "" &&
789
729
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
790
730
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
731
+ const _rAS = "retryAfterSeconds";
732
+ const _ra = "retry-after";
791
733
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
792
734
  if (encoded.length) {
793
735
  return JSON.parse(encoded);
@@ -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", // required
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
- * and address.</p>
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
- status: QueryTransactionStatus | undefined;
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 function paginateListAssetContracts(config: ManagedBlockchainQueryPaginationConfiguration, input: ListAssetContractsCommandInput, ...additionalArguments: any): Paginator<ListAssetContractsCommandOutput>;
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 function paginateListTokenBalances(config: ManagedBlockchainQueryPaginationConfiguration, input: ListTokenBalancesCommandInput, ...additionalArguments: any): Paginator<ListTokenBalancesCommandOutput>;
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 function paginateListTransactionEvents(config: ManagedBlockchainQueryPaginationConfiguration, input: ListTransactionEventsCommandInput, ...additionalArguments: any): Paginator<ListTransactionEventsCommandOutput>;
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 function paginateListTransactions(config: ManagedBlockchainQueryPaginationConfiguration, input: ListTransactionsCommandInput, ...additionalArguments: any): Paginator<ListTransactionsCommandOutput>;
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: QueryTransactionStatus | undefined;
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 function paginateListAssetContracts(
7
+ export declare const paginateListAssetContracts: (
8
8
  config: ManagedBlockchainQueryPaginationConfiguration,
9
9
  input: ListAssetContractsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListAssetContractsCommandOutput>;
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 function paginateListTokenBalances(
7
+ export declare const paginateListTokenBalances: (
8
8
  config: ManagedBlockchainQueryPaginationConfiguration,
9
9
  input: ListTokenBalancesCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListTokenBalancesCommandOutput>;
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 function paginateListTransactionEvents(
7
+ export declare const paginateListTransactionEvents: (
8
8
  config: ManagedBlockchainQueryPaginationConfiguration,
9
9
  input: ListTransactionEventsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListTransactionEventsCommandOutput>;
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 function paginateListTransactions(
7
+ export declare const paginateListTransactions: (
8
8
  config: ManagedBlockchainQueryPaginationConfiguration,
9
9
  input: ListTransactionsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListTransactionsCommandOutput>;
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.476.0",
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,20 +20,21 @@
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.476.0",
24
- "@aws-sdk/core": "3.476.0",
25
- "@aws-sdk/credential-provider-node": "3.476.0",
23
+ "@aws-sdk/client-sts": "3.478.0",
24
+ "@aws-sdk/core": "3.477.0",
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.470.0",
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.470.0",
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",
37
+ "@smithy/core": "^1.2.0",
37
38
  "@smithy/fetch-http-handler": "^2.3.1",
38
39
  "@smithy/hash-node": "^2.0.17",
39
40
  "@smithy/invalid-dependency": "^2.0.15",