@aws-sdk/client-managedblockchain-query 3.477.0 → 3.481.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 (59) hide show
  1. package/dist-cjs/commands/BatchGetTokenBalanceCommand.js +18 -41
  2. package/dist-cjs/commands/GetAssetContractCommand.js +18 -41
  3. package/dist-cjs/commands/GetTokenBalanceCommand.js +18 -41
  4. package/dist-cjs/commands/GetTransactionCommand.js +18 -41
  5. package/dist-cjs/commands/ListAssetContractsCommand.js +18 -41
  6. package/dist-cjs/commands/ListTokenBalancesCommand.js +18 -41
  7. package/dist-cjs/commands/ListTransactionEventsCommand.js +18 -41
  8. package/dist-cjs/commands/ListTransactionsCommand.js +18 -41
  9. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  10. package/dist-cjs/models/models_0.js +8 -1
  11. package/dist-cjs/pagination/ListAssetContractsPaginator.js +2 -24
  12. package/dist-cjs/pagination/ListTokenBalancesPaginator.js +2 -24
  13. package/dist-cjs/pagination/ListTransactionEventsPaginator.js +2 -24
  14. package/dist-cjs/pagination/ListTransactionsPaginator.js +2 -24
  15. package/dist-cjs/protocols/Aws_restJson1.js +2 -0
  16. package/dist-es/commands/BatchGetTokenBalanceCommand.js +18 -41
  17. package/dist-es/commands/GetAssetContractCommand.js +18 -41
  18. package/dist-es/commands/GetTokenBalanceCommand.js +18 -41
  19. package/dist-es/commands/GetTransactionCommand.js +18 -41
  20. package/dist-es/commands/ListAssetContractsCommand.js +18 -41
  21. package/dist-es/commands/ListTokenBalancesCommand.js +18 -41
  22. package/dist-es/commands/ListTransactionEventsCommand.js +18 -41
  23. package/dist-es/commands/ListTransactionsCommand.js +18 -41
  24. package/dist-es/endpoint/EndpointParameters.js +6 -0
  25. package/dist-es/models/models_0.js +7 -0
  26. package/dist-es/pagination/ListAssetContractsPaginator.js +2 -23
  27. package/dist-es/pagination/ListTokenBalancesPaginator.js +2 -23
  28. package/dist-es/pagination/ListTransactionEventsPaginator.js +2 -23
  29. package/dist-es/pagination/ListTransactionsPaginator.js +2 -23
  30. package/dist-es/protocols/Aws_restJson1.js +2 -0
  31. package/dist-types/commands/BatchGetTokenBalanceCommand.d.ts +6 -21
  32. package/dist-types/commands/GetAssetContractCommand.d.ts +6 -21
  33. package/dist-types/commands/GetTokenBalanceCommand.d.ts +6 -21
  34. package/dist-types/commands/GetTransactionCommand.d.ts +9 -22
  35. package/dist-types/commands/ListAssetContractsCommand.d.ts +6 -21
  36. package/dist-types/commands/ListTokenBalancesCommand.d.ts +6 -21
  37. package/dist-types/commands/ListTransactionEventsCommand.d.ts +6 -21
  38. package/dist-types/commands/ListTransactionsCommand.d.ts +6 -21
  39. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  40. package/dist-types/models/models_0.d.ts +53 -3
  41. package/dist-types/pagination/ListAssetContractsPaginator.d.ts +1 -1
  42. package/dist-types/pagination/ListTokenBalancesPaginator.d.ts +1 -1
  43. package/dist-types/pagination/ListTransactionEventsPaginator.d.ts +1 -1
  44. package/dist-types/pagination/ListTransactionsPaginator.d.ts +1 -1
  45. package/dist-types/ts3.4/commands/BatchGetTokenBalanceCommand.d.ts +12 -24
  46. package/dist-types/ts3.4/commands/GetAssetContractCommand.d.ts +14 -23
  47. package/dist-types/ts3.4/commands/GetTokenBalanceCommand.d.ts +14 -23
  48. package/dist-types/ts3.4/commands/GetTransactionCommand.d.ts +14 -23
  49. package/dist-types/ts3.4/commands/ListAssetContractsCommand.d.ts +14 -23
  50. package/dist-types/ts3.4/commands/ListTokenBalancesCommand.d.ts +14 -23
  51. package/dist-types/ts3.4/commands/ListTransactionEventsCommand.d.ts +12 -24
  52. package/dist-types/ts3.4/commands/ListTransactionsCommand.d.ts +14 -23
  53. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  54. package/dist-types/ts3.4/models/models_0.d.ts +14 -1
  55. package/dist-types/ts3.4/pagination/ListAssetContractsPaginator.d.ts +3 -3
  56. package/dist-types/ts3.4/pagination/ListTokenBalancesPaginator.d.ts +3 -3
  57. package/dist-types/ts3.4/pagination/ListTransactionEventsPaginator.d.ts +3 -3
  58. package/dist-types/ts3.4/pagination/ListTransactionsPaginator.d.ts +3 -3
  59. package/package.json +11 -11
@@ -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");
@@ -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,
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_BatchGetTokenBalanceCommand, se_BatchGetTokenBalanceCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class BatchGetTokenBalanceCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, BatchGetTokenBalanceCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "ManagedBlockchainQueryClient";
26
- const commandName = "BatchGetTokenBalanceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "TietonChainQueryService",
35
- operation: "BatchGetTokenBalance",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_BatchGetTokenBalanceCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_BatchGetTokenBalanceCommand(output, context);
46
- }
7
+ export class BatchGetTokenBalanceCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("TietonChainQueryService", "BatchGetTokenBalance", {})
19
+ .n("ManagedBlockchainQueryClient", "BatchGetTokenBalanceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_BatchGetTokenBalanceCommand)
22
+ .de(de_BatchGetTokenBalanceCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_GetAssetContractCommand, se_GetAssetContractCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class GetAssetContractCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, GetAssetContractCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "ManagedBlockchainQueryClient";
26
- const commandName = "GetAssetContractCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "TietonChainQueryService",
35
- operation: "GetAssetContract",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_GetAssetContractCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_GetAssetContractCommand(output, context);
46
- }
7
+ export class GetAssetContractCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("TietonChainQueryService", "GetAssetContract", {})
19
+ .n("ManagedBlockchainQueryClient", "GetAssetContractCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_GetAssetContractCommand)
22
+ .de(de_GetAssetContractCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_GetTokenBalanceCommand, se_GetTokenBalanceCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class GetTokenBalanceCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, GetTokenBalanceCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "ManagedBlockchainQueryClient";
26
- const commandName = "GetTokenBalanceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "TietonChainQueryService",
35
- operation: "GetTokenBalance",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_GetTokenBalanceCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_GetTokenBalanceCommand(output, context);
46
- }
7
+ export class GetTokenBalanceCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("TietonChainQueryService", "GetTokenBalance", {})
19
+ .n("ManagedBlockchainQueryClient", "GetTokenBalanceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_GetTokenBalanceCommand)
22
+ .de(de_GetTokenBalanceCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_GetTransactionCommand, se_GetTransactionCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class GetTransactionCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, GetTransactionCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "ManagedBlockchainQueryClient";
26
- const commandName = "GetTransactionCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "TietonChainQueryService",
35
- operation: "GetTransaction",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_GetTransactionCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_GetTransactionCommand(output, context);
46
- }
7
+ export class GetTransactionCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("TietonChainQueryService", "GetTransaction", {})
19
+ .n("ManagedBlockchainQueryClient", "GetTransactionCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_GetTransactionCommand)
22
+ .de(de_GetTransactionCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_ListAssetContractsCommand, se_ListAssetContractsCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class ListAssetContractsCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, ListAssetContractsCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "ManagedBlockchainQueryClient";
26
- const commandName = "ListAssetContractsCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "TietonChainQueryService",
35
- operation: "ListAssetContracts",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_ListAssetContractsCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_ListAssetContractsCommand(output, context);
46
- }
7
+ export class ListAssetContractsCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("TietonChainQueryService", "ListAssetContracts", {})
19
+ .n("ManagedBlockchainQueryClient", "ListAssetContractsCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListAssetContractsCommand)
22
+ .de(de_ListAssetContractsCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_ListTokenBalancesCommand, se_ListTokenBalancesCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class ListTokenBalancesCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, ListTokenBalancesCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "ManagedBlockchainQueryClient";
26
- const commandName = "ListTokenBalancesCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "TietonChainQueryService",
35
- operation: "ListTokenBalances",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_ListTokenBalancesCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_ListTokenBalancesCommand(output, context);
46
- }
7
+ export class ListTokenBalancesCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("TietonChainQueryService", "ListTokenBalances", {})
19
+ .n("ManagedBlockchainQueryClient", "ListTokenBalancesCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListTokenBalancesCommand)
22
+ .de(de_ListTokenBalancesCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_ListTransactionEventsCommand, se_ListTransactionEventsCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class ListTransactionEventsCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, ListTransactionEventsCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "ManagedBlockchainQueryClient";
26
- const commandName = "ListTransactionEventsCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "TietonChainQueryService",
35
- operation: "ListTransactionEvents",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_ListTransactionEventsCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_ListTransactionEventsCommand(output, context);
46
- }
7
+ export class ListTransactionEventsCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("TietonChainQueryService", "ListTransactionEvents", {})
19
+ .n("ManagedBlockchainQueryClient", "ListTransactionEventsCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListTransactionEventsCommand)
22
+ .de(de_ListTransactionEventsCommand)
23
+ .build() {
47
24
  }