@aws-sdk/client-managedblockchain-query 3.1076.0 → 3.1078.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 (47) hide show
  1. package/dist-cjs/index.js +20 -95
  2. package/dist-es/commandBuilder.js +6 -0
  3. package/dist-es/commands/BatchGetTokenBalanceCommand.js +2 -14
  4. package/dist-es/commands/GetAssetContractCommand.js +2 -14
  5. package/dist-es/commands/GetTokenBalanceCommand.js +2 -14
  6. package/dist-es/commands/GetTransactionCommand.js +2 -14
  7. package/dist-es/commands/ListAssetContractsCommand.js +2 -14
  8. package/dist-es/commands/ListFilteredTransactionEventsCommand.js +2 -14
  9. package/dist-es/commands/ListTokenBalancesCommand.js +2 -14
  10. package/dist-es/commands/ListTransactionEventsCommand.js +2 -14
  11. package/dist-es/commands/ListTransactionsCommand.js +2 -14
  12. package/dist-es/index.js +1 -0
  13. package/dist-es/runtimeConfig.browser.js +0 -2
  14. package/dist-es/runtimeConfig.js +1 -2
  15. package/dist-es/runtimeConfig.native.js +0 -2
  16. package/dist-es/runtimeConfig.shared.js +2 -0
  17. package/dist-types/commandBuilder.d.ts +18 -0
  18. package/dist-types/commands/BatchGetTokenBalanceCommand.d.ts +3 -8
  19. package/dist-types/commands/GetAssetContractCommand.d.ts +3 -8
  20. package/dist-types/commands/GetTokenBalanceCommand.d.ts +3 -8
  21. package/dist-types/commands/GetTransactionCommand.d.ts +3 -8
  22. package/dist-types/commands/ListAssetContractsCommand.d.ts +3 -8
  23. package/dist-types/commands/ListFilteredTransactionEventsCommand.d.ts +3 -8
  24. package/dist-types/commands/ListTokenBalancesCommand.d.ts +3 -8
  25. package/dist-types/commands/ListTransactionEventsCommand.d.ts +3 -8
  26. package/dist-types/commands/ListTransactionsCommand.d.ts +3 -8
  27. package/dist-types/index.d.ts +1 -0
  28. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  29. package/dist-types/runtimeConfig.d.ts +1 -1
  30. package/dist-types/runtimeConfig.native.d.ts +1 -1
  31. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  32. package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
  33. package/dist-types/ts3.4/commands/BatchGetTokenBalanceCommand.d.ts +7 -16
  34. package/dist-types/ts3.4/commands/GetAssetContractCommand.d.ts +7 -16
  35. package/dist-types/ts3.4/commands/GetTokenBalanceCommand.d.ts +7 -16
  36. package/dist-types/ts3.4/commands/GetTransactionCommand.d.ts +7 -16
  37. package/dist-types/ts3.4/commands/ListAssetContractsCommand.d.ts +7 -16
  38. package/dist-types/ts3.4/commands/ListFilteredTransactionEventsCommand.d.ts +7 -16
  39. package/dist-types/ts3.4/commands/ListTokenBalancesCommand.d.ts +7 -16
  40. package/dist-types/ts3.4/commands/ListTransactionEventsCommand.d.ts +7 -16
  41. package/dist-types/ts3.4/commands/ListTransactionsCommand.d.ts +7 -16
  42. package/dist-types/ts3.4/index.d.ts +1 -0
  43. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  44. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  45. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  46. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  47. package/package.json +8 -10
package/dist-cjs/index.js CHANGED
@@ -1,7 +1,8 @@
1
1
  const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
2
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
3
- const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
4
- exports.$Command = Command;
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createAggregatedClient } = require("@smithy/core/client");
4
+ const { Command: $Command } = require("@smithy/core/client");
5
+ exports.$Command = $Command;
5
6
  exports.__Client = Client;
6
7
  const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
8
  const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
@@ -10,9 +11,10 @@ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CON
10
11
  const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
12
  const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
13
  const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
- const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
14
15
  const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
16
  const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
17
+ const { Sha256 } = require("@smithy/core/checksum");
16
18
 
17
19
  const defaultManagedBlockchainQueryHttpAuthSchemeParametersProvider = async (config, context, input) => {
18
20
  return {
@@ -67,7 +69,7 @@ const commonParams = {
67
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
68
70
  };
69
71
 
70
- var version = "3.1075.0";
72
+ var version = "3.1077.0";
71
73
  var packageInfo = {
72
74
  version: version};
73
75
 
@@ -713,6 +715,7 @@ const getRuntimeConfig$1 = (config) => {
713
715
  serviceTarget: "TietonChainQueryService",
714
716
  },
715
717
  serviceId: config?.serviceId ?? "ManagedBlockchain Query",
718
+ sha256: config?.sha256 ?? Sha256,
716
719
  urlParser: config?.urlParser ?? parseUrl,
717
720
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
718
721
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -746,7 +749,6 @@ const getRuntimeConfig = (config) => {
746
749
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
747
750
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
748
751
  }, config),
749
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
750
752
  streamCollector: config?.streamCollector ?? streamCollector,
751
753
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
752
754
  useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -834,112 +836,35 @@ class ManagedBlockchainQueryClient extends Client {
834
836
  }
835
837
  }
836
838
 
837
- class BatchGetTokenBalanceCommand extends Command
838
- .classBuilder()
839
- .ep(commonParams)
840
- .m(function (Command, cs, config, o) {
841
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
842
- })
843
- .s("TietonChainQueryService", "BatchGetTokenBalance", {})
844
- .n("ManagedBlockchainQueryClient", "BatchGetTokenBalanceCommand")
845
- .sc(BatchGetTokenBalance$)
846
- .build() {
839
+ const command = makeBuilder(commonParams, "TietonChainQueryService", "ManagedBlockchainQueryClient", getEndpointPlugin);
840
+ const _ep0 = {};
841
+ const _mw0 = (Command, cs, config, o) => [];
842
+
843
+ class BatchGetTokenBalanceCommand extends command(_ep0, _mw0, "BatchGetTokenBalance", BatchGetTokenBalance$) {
847
844
  }
848
845
 
849
- class GetAssetContractCommand extends Command
850
- .classBuilder()
851
- .ep(commonParams)
852
- .m(function (Command, cs, config, o) {
853
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
854
- })
855
- .s("TietonChainQueryService", "GetAssetContract", {})
856
- .n("ManagedBlockchainQueryClient", "GetAssetContractCommand")
857
- .sc(GetAssetContract$)
858
- .build() {
846
+ class GetAssetContractCommand extends command(_ep0, _mw0, "GetAssetContract", GetAssetContract$) {
859
847
  }
860
848
 
861
- class GetTokenBalanceCommand extends Command
862
- .classBuilder()
863
- .ep(commonParams)
864
- .m(function (Command, cs, config, o) {
865
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
866
- })
867
- .s("TietonChainQueryService", "GetTokenBalance", {})
868
- .n("ManagedBlockchainQueryClient", "GetTokenBalanceCommand")
869
- .sc(GetTokenBalance$)
870
- .build() {
849
+ class GetTokenBalanceCommand extends command(_ep0, _mw0, "GetTokenBalance", GetTokenBalance$) {
871
850
  }
872
851
 
873
- class GetTransactionCommand extends Command
874
- .classBuilder()
875
- .ep(commonParams)
876
- .m(function (Command, cs, config, o) {
877
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
878
- })
879
- .s("TietonChainQueryService", "GetTransaction", {})
880
- .n("ManagedBlockchainQueryClient", "GetTransactionCommand")
881
- .sc(GetTransaction$)
882
- .build() {
852
+ class GetTransactionCommand extends command(_ep0, _mw0, "GetTransaction", GetTransaction$) {
883
853
  }
884
854
 
885
- class ListAssetContractsCommand extends Command
886
- .classBuilder()
887
- .ep(commonParams)
888
- .m(function (Command, cs, config, o) {
889
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
890
- })
891
- .s("TietonChainQueryService", "ListAssetContracts", {})
892
- .n("ManagedBlockchainQueryClient", "ListAssetContractsCommand")
893
- .sc(ListAssetContracts$)
894
- .build() {
855
+ class ListAssetContractsCommand extends command(_ep0, _mw0, "ListAssetContracts", ListAssetContracts$) {
895
856
  }
896
857
 
897
- class ListFilteredTransactionEventsCommand extends Command
898
- .classBuilder()
899
- .ep(commonParams)
900
- .m(function (Command, cs, config, o) {
901
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
902
- })
903
- .s("TietonChainQueryService", "ListFilteredTransactionEvents", {})
904
- .n("ManagedBlockchainQueryClient", "ListFilteredTransactionEventsCommand")
905
- .sc(ListFilteredTransactionEvents$)
906
- .build() {
858
+ class ListFilteredTransactionEventsCommand extends command(_ep0, _mw0, "ListFilteredTransactionEvents", ListFilteredTransactionEvents$) {
907
859
  }
908
860
 
909
- class ListTokenBalancesCommand extends Command
910
- .classBuilder()
911
- .ep(commonParams)
912
- .m(function (Command, cs, config, o) {
913
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
914
- })
915
- .s("TietonChainQueryService", "ListTokenBalances", {})
916
- .n("ManagedBlockchainQueryClient", "ListTokenBalancesCommand")
917
- .sc(ListTokenBalances$)
918
- .build() {
861
+ class ListTokenBalancesCommand extends command(_ep0, _mw0, "ListTokenBalances", ListTokenBalances$) {
919
862
  }
920
863
 
921
- class ListTransactionEventsCommand extends Command
922
- .classBuilder()
923
- .ep(commonParams)
924
- .m(function (Command, cs, config, o) {
925
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
926
- })
927
- .s("TietonChainQueryService", "ListTransactionEvents", {})
928
- .n("ManagedBlockchainQueryClient", "ListTransactionEventsCommand")
929
- .sc(ListTransactionEvents$)
930
- .build() {
864
+ class ListTransactionEventsCommand extends command(_ep0, _mw0, "ListTransactionEvents", ListTransactionEvents$) {
931
865
  }
932
866
 
933
- class ListTransactionsCommand extends Command
934
- .classBuilder()
935
- .ep(commonParams)
936
- .m(function (Command, cs, config, o) {
937
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
938
- })
939
- .s("TietonChainQueryService", "ListTransactions", {})
940
- .n("ManagedBlockchainQueryClient", "ListTransactionsCommand")
941
- .sc(ListTransactions$)
942
- .build() {
867
+ class ListTransactionsCommand extends command(_ep0, _mw0, "ListTransactions", ListTransactions$) {
943
868
  }
944
869
 
945
870
  const paginateListAssetContracts = createPaginator(ManagedBlockchainQueryClient, ListAssetContractsCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,6 @@
1
+ import { makeBuilder } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "./endpoint/EndpointParameters";
4
+ export const command = makeBuilder(commonParams, "TietonChainQueryService", "ManagedBlockchainQueryClient", getEndpointPlugin);
5
+ export const _ep0 = {};
6
+ export const _mw0 = (Command, cs, config, o) => [];
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { BatchGetTokenBalance$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class BatchGetTokenBalanceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("TietonChainQueryService", "BatchGetTokenBalance", {})
13
- .n("ManagedBlockchainQueryClient", "BatchGetTokenBalanceCommand")
14
- .sc(BatchGetTokenBalance$)
15
- .build() {
3
+ export class BatchGetTokenBalanceCommand extends command(_ep0, _mw0, "BatchGetTokenBalance", BatchGetTokenBalance$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetAssetContract$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetAssetContractCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("TietonChainQueryService", "GetAssetContract", {})
13
- .n("ManagedBlockchainQueryClient", "GetAssetContractCommand")
14
- .sc(GetAssetContract$)
15
- .build() {
3
+ export class GetAssetContractCommand extends command(_ep0, _mw0, "GetAssetContract", GetAssetContract$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetTokenBalance$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetTokenBalanceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("TietonChainQueryService", "GetTokenBalance", {})
13
- .n("ManagedBlockchainQueryClient", "GetTokenBalanceCommand")
14
- .sc(GetTokenBalance$)
15
- .build() {
3
+ export class GetTokenBalanceCommand extends command(_ep0, _mw0, "GetTokenBalance", GetTokenBalance$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetTransaction$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetTransactionCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("TietonChainQueryService", "GetTransaction", {})
13
- .n("ManagedBlockchainQueryClient", "GetTransactionCommand")
14
- .sc(GetTransaction$)
15
- .build() {
3
+ export class GetTransactionCommand extends command(_ep0, _mw0, "GetTransaction", GetTransaction$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListAssetContracts$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListAssetContractsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("TietonChainQueryService", "ListAssetContracts", {})
13
- .n("ManagedBlockchainQueryClient", "ListAssetContractsCommand")
14
- .sc(ListAssetContracts$)
15
- .build() {
3
+ export class ListAssetContractsCommand extends command(_ep0, _mw0, "ListAssetContracts", ListAssetContracts$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListFilteredTransactionEvents$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListFilteredTransactionEventsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("TietonChainQueryService", "ListFilteredTransactionEvents", {})
13
- .n("ManagedBlockchainQueryClient", "ListFilteredTransactionEventsCommand")
14
- .sc(ListFilteredTransactionEvents$)
15
- .build() {
3
+ export class ListFilteredTransactionEventsCommand extends command(_ep0, _mw0, "ListFilteredTransactionEvents", ListFilteredTransactionEvents$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListTokenBalances$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListTokenBalancesCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("TietonChainQueryService", "ListTokenBalances", {})
13
- .n("ManagedBlockchainQueryClient", "ListTokenBalancesCommand")
14
- .sc(ListTokenBalances$)
15
- .build() {
3
+ export class ListTokenBalancesCommand extends command(_ep0, _mw0, "ListTokenBalances", ListTokenBalances$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListTransactionEvents$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListTransactionEventsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("TietonChainQueryService", "ListTransactionEvents", {})
13
- .n("ManagedBlockchainQueryClient", "ListTransactionEventsCommand")
14
- .sc(ListTransactionEvents$)
15
- .build() {
3
+ export class ListTransactionEventsCommand extends command(_ep0, _mw0, "ListTransactionEvents", ListTransactionEvents$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListTransactions$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListTransactionsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("TietonChainQueryService", "ListTransactions", {})
13
- .n("ManagedBlockchainQueryClient", "ListTransactionsCommand")
14
- .sc(ListTransactions$)
15
- .build() {
3
+ export class ListTransactionsCommand extends command(_ep0, _mw0, "ListTransactions", ListTransactions$) {
16
4
  }
package/dist-es/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./ManagedBlockchainQueryClient";
2
2
  export * from "./ManagedBlockchainQuery";
3
3
  export * from "./commands";
4
+ export { Command as $Command } from "@smithy/core/client";
4
5
  export * from "./schemas/schemas_0";
5
6
  export * from "./pagination";
6
7
  export * from "./models/enums";
@@ -1,5 +1,4 @@
1
1
  import packageInfo from "../package.json";
2
- import { Sha256 } from "@aws-crypto/sha256-browser";
3
2
  import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
4
3
  import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
5
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
@@ -23,7 +22,6 @@ export const getRuntimeConfig = (config) => {
23
22
  region: config?.region ?? invalidProvider("Region is missing"),
24
23
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
25
24
  retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
26
- sha256: config?.sha256 ?? Sha256,
27
25
  streamCollector: config?.streamCollector ?? streamCollector,
28
26
  useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
29
27
  useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
@@ -5,7 +5,7 @@ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credentia
5
5
  import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
6
6
  import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
7
7
  import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
8
- import { calculateBodyLength, Hash } from "@smithy/core/serde";
8
+ import { calculateBodyLength } from "@smithy/core/serde";
9
9
  import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
10
10
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
11
11
  export const getRuntimeConfig = (config) => {
@@ -35,7 +35,6 @@ export const getRuntimeConfig = (config) => {
35
35
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
36
36
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
37
37
  }, config),
38
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
39
38
  streamCollector: config?.streamCollector ?? streamCollector,
40
39
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
41
40
  useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -1,4 +1,3 @@
1
- import { Sha256 } from "@aws-crypto/sha256-js";
2
1
  import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
3
2
  export const getRuntimeConfig = (config) => {
4
3
  const browserDefaults = getBrowserRuntimeConfig(config);
@@ -6,6 +5,5 @@ export const getRuntimeConfig = (config) => {
6
5
  ...browserDefaults,
7
6
  ...config,
8
7
  runtime: "react-native",
9
- sha256: config?.sha256 ?? Sha256,
10
8
  };
11
9
  };
@@ -1,5 +1,6 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
2
2
  import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
3
+ import { Sha256 } from "@smithy/core/checksum";
3
4
  import { NoOpLogger } from "@smithy/core/client";
4
5
  import { parseUrl } from "@smithy/core/protocols";
5
6
  import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
@@ -31,6 +32,7 @@ export const getRuntimeConfig = (config) => {
31
32
  serviceTarget: "TietonChainQueryService",
32
33
  },
33
34
  serviceId: config?.serviceId ?? "ManagedBlockchain Query",
35
+ sha256: config?.sha256 ?? Sha256,
34
36
  urlParser: config?.urlParser ?? parseUrl,
35
37
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
36
38
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -0,0 +1,18 @@
1
+ import type { EndpointParameterInstructions } from "@smithy/types";
2
+ import type { ManagedBlockchainQueryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "./ManagedBlockchainQueryClient";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const command: <I extends ServiceInputTypes, O extends ServiceOutputTypes>(added: EndpointParameterInstructions, plugins: (CommandCtor: any, clientStack: any, config: any, options: any) => import("@smithy/types").Pluggable<any, any>[], op: string, $: import("@smithy/types").StaticOperationSchema, smithyContext?: Record<string, unknown>) => {
7
+ new (input: I): import("@smithy/core/client").CommandImpl<I, O, ManagedBlockchainQueryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
8
+ new (...[input]: import("@smithy/types").OptionalParameter<I>): import("@smithy/core/client").CommandImpl<I, O, ManagedBlockchainQueryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
9
+ getEndpointParameterInstructions(): EndpointParameterInstructions;
10
+ };
11
+ /**
12
+ * @internal
13
+ */
14
+ export declare const _ep0: EndpointParameterInstructions;
15
+ /**
16
+ * @internal
17
+ */
18
+ export declare const _mw0: (Command: any, cs: any, config: any, o: any) => never[];
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { ManagedBlockchainQueryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ManagedBlockchainQueryClient";
4
2
  import type { BatchGetTokenBalanceInput, BatchGetTokenBalanceOutput } from "../models/models_0";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface BatchGetTokenBalanceCommandInput extends BatchGetTokenBalanceIn
22
19
  export interface BatchGetTokenBalanceCommandOutput extends BatchGetTokenBalanceOutput, __MetadataBearer {
23
20
  }
24
21
  declare const BatchGetTokenBalanceCommand_base: {
25
- new (input: BatchGetTokenBalanceCommandInput): import("@smithy/core/client").CommandImpl<BatchGetTokenBalanceCommandInput, BatchGetTokenBalanceCommandOutput, ManagedBlockchainQueryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (...[input]: [] | [BatchGetTokenBalanceCommandInput]): import("@smithy/core/client").CommandImpl<BatchGetTokenBalanceCommandInput, BatchGetTokenBalanceCommandOutput, ManagedBlockchainQueryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: BatchGetTokenBalanceCommandInput): import("@smithy/core/client").CommandImpl<BatchGetTokenBalanceCommandInput, BatchGetTokenBalanceCommandOutput, import("..").ManagedBlockchainQueryClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (...[input]: [] | [BatchGetTokenBalanceCommandInput]): import("@smithy/core/client").CommandImpl<BatchGetTokenBalanceCommandInput, BatchGetTokenBalanceCommandOutput, import("..").ManagedBlockchainQueryClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Gets the token balance for a batch of tokens by using the <code>BatchGetTokenBalance</code>
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { ManagedBlockchainQueryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ManagedBlockchainQueryClient";
4
2
  import type { GetAssetContractInput, GetAssetContractOutput } from "../models/models_0";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface GetAssetContractCommandInput extends GetAssetContractInput {
22
19
  export interface GetAssetContractCommandOutput extends GetAssetContractOutput, __MetadataBearer {
23
20
  }
24
21
  declare const GetAssetContractCommand_base: {
25
- new (input: GetAssetContractCommandInput): import("@smithy/core/client").CommandImpl<GetAssetContractCommandInput, GetAssetContractCommandOutput, ManagedBlockchainQueryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: GetAssetContractCommandInput): import("@smithy/core/client").CommandImpl<GetAssetContractCommandInput, GetAssetContractCommandOutput, ManagedBlockchainQueryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: GetAssetContractCommandInput): import("@smithy/core/client").CommandImpl<GetAssetContractCommandInput, GetAssetContractCommandOutput, import("..").ManagedBlockchainQueryClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: GetAssetContractCommandInput): import("@smithy/core/client").CommandImpl<GetAssetContractCommandInput, GetAssetContractCommandOutput, import("..").ManagedBlockchainQueryClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Gets the information about a specific contract deployed on the blockchain.</p>
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { ManagedBlockchainQueryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ManagedBlockchainQueryClient";
4
2
  import type { GetTokenBalanceInput, GetTokenBalanceOutput } from "../models/models_0";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface GetTokenBalanceCommandInput extends GetTokenBalanceInput {
22
19
  export interface GetTokenBalanceCommandOutput extends GetTokenBalanceOutput, __MetadataBearer {
23
20
  }
24
21
  declare const GetTokenBalanceCommand_base: {
25
- new (input: GetTokenBalanceCommandInput): import("@smithy/core/client").CommandImpl<GetTokenBalanceCommandInput, GetTokenBalanceCommandOutput, ManagedBlockchainQueryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: GetTokenBalanceCommandInput): import("@smithy/core/client").CommandImpl<GetTokenBalanceCommandInput, GetTokenBalanceCommandOutput, ManagedBlockchainQueryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: GetTokenBalanceCommandInput): import("@smithy/core/client").CommandImpl<GetTokenBalanceCommandInput, GetTokenBalanceCommandOutput, import("..").ManagedBlockchainQueryClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: GetTokenBalanceCommandInput): import("@smithy/core/client").CommandImpl<GetTokenBalanceCommandInput, GetTokenBalanceCommandOutput, import("..").ManagedBlockchainQueryClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Gets the balance of a specific token, including native tokens, for a given address (wallet or contract) on the blockchain.</p>
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { ManagedBlockchainQueryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ManagedBlockchainQueryClient";
4
2
  import type { GetTransactionInput, GetTransactionOutput } from "../models/models_0";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface GetTransactionCommandInput extends GetTransactionInput {
22
19
  export interface GetTransactionCommandOutput extends GetTransactionOutput, __MetadataBearer {
23
20
  }
24
21
  declare const GetTransactionCommand_base: {
25
- new (input: GetTransactionCommandInput): import("@smithy/core/client").CommandImpl<GetTransactionCommandInput, GetTransactionCommandOutput, ManagedBlockchainQueryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: GetTransactionCommandInput): import("@smithy/core/client").CommandImpl<GetTransactionCommandInput, GetTransactionCommandOutput, ManagedBlockchainQueryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: GetTransactionCommandInput): import("@smithy/core/client").CommandImpl<GetTransactionCommandInput, GetTransactionCommandOutput, import("..").ManagedBlockchainQueryClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: GetTransactionCommandInput): import("@smithy/core/client").CommandImpl<GetTransactionCommandInput, GetTransactionCommandOutput, import("..").ManagedBlockchainQueryClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Gets the details of a transaction.</p>
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { ManagedBlockchainQueryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ManagedBlockchainQueryClient";
4
2
  import type { ListAssetContractsInput, ListAssetContractsOutput } from "../models/models_0";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface ListAssetContractsCommandInput extends ListAssetContractsInput
22
19
  export interface ListAssetContractsCommandOutput extends ListAssetContractsOutput, __MetadataBearer {
23
20
  }
24
21
  declare const ListAssetContractsCommand_base: {
25
- new (input: ListAssetContractsCommandInput): import("@smithy/core/client").CommandImpl<ListAssetContractsCommandInput, ListAssetContractsCommandOutput, ManagedBlockchainQueryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: ListAssetContractsCommandInput): import("@smithy/core/client").CommandImpl<ListAssetContractsCommandInput, ListAssetContractsCommandOutput, ManagedBlockchainQueryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: ListAssetContractsCommandInput): import("@smithy/core/client").CommandImpl<ListAssetContractsCommandInput, ListAssetContractsCommandOutput, import("..").ManagedBlockchainQueryClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: ListAssetContractsCommandInput): import("@smithy/core/client").CommandImpl<ListAssetContractsCommandInput, ListAssetContractsCommandOutput, import("..").ManagedBlockchainQueryClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Lists all the contracts for a given contract type deployed by an address
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { ManagedBlockchainQueryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ManagedBlockchainQueryClient";
4
2
  import type { ListFilteredTransactionEventsInput, ListFilteredTransactionEventsOutput } from "../models/models_0";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface ListFilteredTransactionEventsCommandInput extends ListFilteredT
22
19
  export interface ListFilteredTransactionEventsCommandOutput extends ListFilteredTransactionEventsOutput, __MetadataBearer {
23
20
  }
24
21
  declare const ListFilteredTransactionEventsCommand_base: {
25
- new (input: ListFilteredTransactionEventsCommandInput): import("@smithy/core/client").CommandImpl<ListFilteredTransactionEventsCommandInput, ListFilteredTransactionEventsCommandOutput, ManagedBlockchainQueryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: ListFilteredTransactionEventsCommandInput): import("@smithy/core/client").CommandImpl<ListFilteredTransactionEventsCommandInput, ListFilteredTransactionEventsCommandOutput, ManagedBlockchainQueryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: ListFilteredTransactionEventsCommandInput): import("@smithy/core/client").CommandImpl<ListFilteredTransactionEventsCommandInput, ListFilteredTransactionEventsCommandOutput, import("..").ManagedBlockchainQueryClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: ListFilteredTransactionEventsCommandInput): import("@smithy/core/client").CommandImpl<ListFilteredTransactionEventsCommandInput, ListFilteredTransactionEventsCommandOutput, import("..").ManagedBlockchainQueryClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Lists all the transaction events for an address on the blockchain.</p>