@aws-sdk/client-managedblockchain-query 3.427.0 → 3.429.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 (38) hide show
  1. package/README.md +16 -0
  2. package/dist-cjs/ManagedBlockchainQuery.js +4 -0
  3. package/dist-cjs/commands/GetAssetContractCommand.js +51 -0
  4. package/dist-cjs/commands/ListAssetContractsCommand.js +51 -0
  5. package/dist-cjs/commands/index.js +2 -0
  6. package/dist-cjs/models/models_0.js +7 -1
  7. package/dist-cjs/pagination/ListAssetContractsPaginator.js +29 -0
  8. package/dist-cjs/pagination/index.js +1 -0
  9. package/dist-cjs/protocols/Aws_restJson1.js +144 -1
  10. package/dist-es/ManagedBlockchainQuery.js +4 -0
  11. package/dist-es/commands/GetAssetContractCommand.js +47 -0
  12. package/dist-es/commands/ListAssetContractsCommand.js +47 -0
  13. package/dist-es/commands/index.js +2 -0
  14. package/dist-es/models/models_0.js +6 -0
  15. package/dist-es/pagination/ListAssetContractsPaginator.js +25 -0
  16. package/dist-es/pagination/index.js +1 -0
  17. package/dist-es/protocols/Aws_restJson1.js +139 -0
  18. package/dist-types/ManagedBlockchainQuery.d.ts +14 -0
  19. package/dist-types/ManagedBlockchainQueryClient.d.ts +4 -2
  20. package/dist-types/commands/BatchGetTokenBalanceCommand.d.ts +1 -1
  21. package/dist-types/commands/GetAssetContractCommand.d.ts +119 -0
  22. package/dist-types/commands/ListAssetContractsCommand.d.ts +110 -0
  23. package/dist-types/commands/ListTokenBalancesCommand.d.ts +2 -2
  24. package/dist-types/commands/index.d.ts +2 -0
  25. package/dist-types/models/models_0.d.ts +210 -38
  26. package/dist-types/pagination/ListAssetContractsPaginator.d.ts +7 -0
  27. package/dist-types/pagination/index.d.ts +1 -0
  28. package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
  29. package/dist-types/ts3.4/ManagedBlockchainQuery.d.ts +34 -0
  30. package/dist-types/ts3.4/ManagedBlockchainQueryClient.d.ts +12 -0
  31. package/dist-types/ts3.4/commands/GetAssetContractCommand.d.ts +38 -0
  32. package/dist-types/ts3.4/commands/ListAssetContractsCommand.d.ts +39 -0
  33. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  34. package/dist-types/ts3.4/models/models_0.d.ts +66 -21
  35. package/dist-types/ts3.4/pagination/ListAssetContractsPaginator.d.ts +11 -0
  36. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  37. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
  38. package/package.json +31 -31
@@ -12,6 +12,79 @@ export declare class AccessDeniedException extends __BaseException {
12
12
  */
13
13
  constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
14
14
  }
15
+ /**
16
+ * @public
17
+ * @enum
18
+ */
19
+ export declare const QueryNetwork: {
20
+ /**
21
+ * Bitcoin main network
22
+ */
23
+ readonly BITCOIN_MAINNET: "BITCOIN_MAINNET";
24
+ /**
25
+ * Bitcoin test network
26
+ */
27
+ readonly BITCOIN_TESTNET: "BITCOIN_TESTNET";
28
+ /**
29
+ * Ethereum main network
30
+ */
31
+ readonly ETHEREUM_MAINNET: "ETHEREUM_MAINNET";
32
+ };
33
+ /**
34
+ * @public
35
+ */
36
+ export type QueryNetwork = (typeof QueryNetwork)[keyof typeof QueryNetwork];
37
+ /**
38
+ * @public
39
+ * <p>Container for the blockchain address and network information about a contract.</p>
40
+ */
41
+ export interface ContractIdentifier {
42
+ /**
43
+ * @public
44
+ * <p>The blockchain network of the contract.</p>
45
+ */
46
+ network: QueryNetwork | undefined;
47
+ /**
48
+ * @public
49
+ * <p>Container for the blockchain address about a contract.</p>
50
+ */
51
+ contractAddress: string | undefined;
52
+ }
53
+ /**
54
+ * @public
55
+ * @enum
56
+ */
57
+ export declare const QueryTokenStandard: {
58
+ readonly ERC1155: "ERC1155";
59
+ readonly ERC20: "ERC20";
60
+ readonly ERC721: "ERC721";
61
+ };
62
+ /**
63
+ * @public
64
+ */
65
+ export type QueryTokenStandard = (typeof QueryTokenStandard)[keyof typeof QueryTokenStandard];
66
+ /**
67
+ * @public
68
+ * <p>This container contains information about an contract.</p>
69
+ */
70
+ export interface AssetContract {
71
+ /**
72
+ * @public
73
+ * <p>The container for the contract identifier containing its blockchain network
74
+ * and address.</p>
75
+ */
76
+ contractIdentifier: ContractIdentifier | undefined;
77
+ /**
78
+ * @public
79
+ * <p>The token standard of the contract.</p>
80
+ */
81
+ tokenStandard: QueryTokenStandard | undefined;
82
+ /**
83
+ * @public
84
+ * <p>The address of the contract deployer.</p>
85
+ */
86
+ deployerAddress: string | undefined;
87
+ }
15
88
  /**
16
89
  * @public
17
90
  * <p>The container for time.</p>
@@ -38,24 +111,6 @@ export interface OwnerIdentifier {
38
111
  */
39
112
  address: string | undefined;
40
113
  }
41
- /**
42
- * @public
43
- * @enum
44
- */
45
- export declare const QueryNetwork: {
46
- /**
47
- * Bitcoin main network
48
- */
49
- readonly BITCOIN_MAINNET: "BITCOIN_MAINNET";
50
- /**
51
- * Ethereum main network
52
- */
53
- readonly ETHEREUM_MAINNET: "ETHEREUM_MAINNET";
54
- };
55
- /**
56
- * @public
57
- */
58
- export type QueryNetwork = (typeof QueryNetwork)[keyof typeof QueryNetwork];
59
114
  /**
60
115
  * @public
61
116
  * <p>The container for the identifier for the token including the unique token ID and its blockchain network.</p>
@@ -69,7 +124,7 @@ export interface TokenIdentifier {
69
124
  * @public
70
125
  * <p>The blockchain network of the token.</p>
71
126
  */
72
- network: QueryNetwork | string | undefined;
127
+ network: QueryNetwork | undefined;
73
128
  /**
74
129
  * @public
75
130
  * <p>This is the token's contract address.</p>
@@ -78,6 +133,11 @@ export interface TokenIdentifier {
78
133
  /**
79
134
  * @public
80
135
  * <p>The unique identifier of the token.</p>
136
+ * <note>
137
+ * <p>You must specify this container with <code>btc</code> for the native BTC token, and
138
+ * <code>eth</code> for the native ETH token. For all other token types you must
139
+ * specify the <code>tokenId</code> in the 64 character hexadecimal <code>tokenid</code> format.</p>
140
+ * </note>
81
141
  */
82
142
  tokenId?: string;
83
143
  }
@@ -112,7 +172,7 @@ export interface BatchGetTokenBalanceInputItem {
112
172
  export interface BatchGetTokenBalanceInput {
113
173
  /**
114
174
  * @public
115
- * <p>An array of <code>GetTokenBalanceInput</code> objects whose balance is being requested.</p>
175
+ * <p>An array of <code>BatchGetTokenBalanceInputItem</code> objects whose balance is being requested.</p>
116
176
  */
117
177
  getTokenBalanceInputs?: BatchGetTokenBalanceInputItem[];
118
178
  }
@@ -172,7 +232,7 @@ export interface BatchGetTokenBalanceErrorItem {
172
232
  * @public
173
233
  * <p>The type of error.</p>
174
234
  */
175
- errorType: ErrorType | string | undefined;
235
+ errorType: ErrorType | undefined;
176
236
  }
177
237
  /**
178
238
  * @public
@@ -269,7 +329,7 @@ export declare class ResourceNotFoundException extends __BaseException {
269
329
  * @public
270
330
  * <p>The <code>resourceType</code> of the resource that caused the exception.</p>
271
331
  */
272
- resourceType: ResourceType | string | undefined;
332
+ resourceType: ResourceType | undefined;
273
333
  /**
274
334
  * @internal
275
335
  */
@@ -291,7 +351,7 @@ export declare class ServiceQuotaExceededException extends __BaseException {
291
351
  * @public
292
352
  * <p>The <code>resourceType</code> of the resource that caused the exception.</p>
293
353
  */
294
- resourceType: ResourceType | string | undefined;
354
+ resourceType: ResourceType | undefined;
295
355
  /**
296
356
  * @public
297
357
  * <p>The container for the <code>serviceCode</code>.</p>
@@ -381,7 +441,7 @@ export declare class ValidationException extends __BaseException {
381
441
  * @public
382
442
  * <p>The container for the reason for the exception</p>
383
443
  */
384
- reason: ValidationExceptionReason | string | undefined;
444
+ reason: ValidationExceptionReason | undefined;
385
445
  /**
386
446
  * @public
387
447
  * <p>The container for the <code>fieldList</code> of the exception.</p>
@@ -392,6 +452,83 @@ export declare class ValidationException extends __BaseException {
392
452
  */
393
453
  constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
394
454
  }
455
+ /**
456
+ * @public
457
+ * <p>The contract or wallet address by which to filter the request.</p>
458
+ */
459
+ export interface ContractFilter {
460
+ /**
461
+ * @public
462
+ * <p>The blockchain network of the contract.</p>
463
+ */
464
+ network: QueryNetwork | undefined;
465
+ /**
466
+ * @public
467
+ * <p>The container for the token standard.</p>
468
+ */
469
+ tokenStandard: QueryTokenStandard | undefined;
470
+ /**
471
+ * @public
472
+ * <p>The network address of the deployer.</p>
473
+ */
474
+ deployerAddress: string | undefined;
475
+ }
476
+ /**
477
+ * @public
478
+ * <p>The metadata of the contract.</p>
479
+ */
480
+ export interface ContractMetadata {
481
+ /**
482
+ * @public
483
+ * <p>The name of the token contract.</p>
484
+ */
485
+ name?: string;
486
+ /**
487
+ * @public
488
+ * <p>The symbol of the token contract.</p>
489
+ */
490
+ symbol?: string;
491
+ /**
492
+ * @public
493
+ * <p>The decimals used by the token contract.</p>
494
+ */
495
+ decimals?: number;
496
+ }
497
+ /**
498
+ * @public
499
+ */
500
+ export interface GetAssetContractInput {
501
+ /**
502
+ * @public
503
+ * <p>Contains the blockchain address and network information about the contract.</p>
504
+ */
505
+ contractIdentifier: ContractIdentifier | undefined;
506
+ }
507
+ /**
508
+ * @public
509
+ */
510
+ export interface GetAssetContractOutput {
511
+ /**
512
+ * @public
513
+ * <p>Contains the blockchain address and network information about the contract.</p>
514
+ */
515
+ contractIdentifier: ContractIdentifier | undefined;
516
+ /**
517
+ * @public
518
+ * <p>The token standard of the contract requested.</p>
519
+ */
520
+ tokenStandard: QueryTokenStandard | undefined;
521
+ /**
522
+ * @public
523
+ * <p>The address of the deployer of contract.</p>
524
+ */
525
+ deployerAddress: string | undefined;
526
+ /**
527
+ * @public
528
+ * <p>The metadata of the contract.</p>
529
+ */
530
+ metadata?: ContractMetadata;
531
+ }
395
532
  /**
396
533
  * @public
397
534
  */
@@ -464,7 +601,7 @@ export interface GetTransactionInput {
464
601
  * @public
465
602
  * <p>The blockchain network where the transaction occurred.</p>
466
603
  */
467
- network: QueryNetwork | string | undefined;
604
+ network: QueryNetwork | undefined;
468
605
  }
469
606
  /**
470
607
  * @public
@@ -503,9 +640,9 @@ export type QueryTransactionStatus = (typeof QueryTransactionStatus)[keyof typeo
503
640
  export interface Transaction {
504
641
  /**
505
642
  * @public
506
- * <p>The blockchain network where the transaction occured.</p>
643
+ * <p>The blockchain network where the transaction occurred.</p>
507
644
  */
508
- network: QueryNetwork | string | undefined;
645
+ network: QueryNetwork | undefined;
509
646
  /**
510
647
  * @public
511
648
  * <p>The block hash is a unique identifier for a block. It is a fixed-size
@@ -542,7 +679,7 @@ export interface Transaction {
542
679
  * @public
543
680
  * <p>The status of the transaction.</p>
544
681
  */
545
- status: QueryTransactionStatus | string | undefined;
682
+ status: QueryTransactionStatus | undefined;
546
683
  /**
547
684
  * @public
548
685
  * <p>The identifier of the transaction. It is generated whenever a transaction is verified and added to the blockchain.</p>
@@ -610,6 +747,41 @@ export interface GetTransactionOutput {
610
747
  */
611
748
  transaction: Transaction | undefined;
612
749
  }
750
+ /**
751
+ * @public
752
+ */
753
+ export interface ListAssetContractsInput {
754
+ /**
755
+ * @public
756
+ * <p>Contains the filter parameter for the request.</p>
757
+ */
758
+ contractFilter: ContractFilter | undefined;
759
+ /**
760
+ * @public
761
+ * <p> The pagination token that indicates the next set of results to retrieve.</p>
762
+ */
763
+ nextToken?: string;
764
+ /**
765
+ * @public
766
+ * <p>The maximum number of contracts to list.</p>
767
+ */
768
+ maxResults?: number;
769
+ }
770
+ /**
771
+ * @public
772
+ */
773
+ export interface ListAssetContractsOutput {
774
+ /**
775
+ * @public
776
+ * <p>An array of contract objects that contain the properties for each contract.</p>
777
+ */
778
+ contracts: AssetContract[] | undefined;
779
+ /**
780
+ * @public
781
+ * <p>The pagination token that indicates the next set of results to retrieve. </p>
782
+ */
783
+ nextToken?: string;
784
+ }
613
785
  /**
614
786
  * @public
615
787
  * <p>The container for the owner information to filter by.</p>
@@ -636,7 +808,7 @@ export interface TokenFilter {
636
808
  * @public
637
809
  * <p>The blockchain network of the token.</p>
638
810
  */
639
- network: QueryNetwork | string | undefined;
811
+ network: QueryNetwork | undefined;
640
812
  /**
641
813
  * @public
642
814
  * <p>This is the address of the contract.</p>
@@ -662,7 +834,7 @@ export interface ListTokenBalancesInput {
662
834
  /**
663
835
  * @public
664
836
  * <p>The contract address or a token identifier on the
665
- * blockchain network by which to filter the request. You must specify the contractAddress
837
+ * blockchain network by which to filter the request. You must specify the <code>contractAddress</code>
666
838
  * property of this container when listing tokens minted by a contract.</p>
667
839
  * <note>
668
840
  * <p>You must always specify the network property of this
@@ -712,7 +884,7 @@ export interface TokenBalance {
712
884
  atBlockchainInstant: BlockchainInstant | undefined;
713
885
  /**
714
886
  * @public
715
- * <p>The <code>timestamp</code> of the last transaction at which the balance for the token in the wallet was updated.</p>
887
+ * <p>The <code>Timestamp</code> of the last transaction at which the balance for the token in the wallet was updated.</p>
716
888
  */
717
889
  lastUpdatedTime?: BlockchainInstant;
718
890
  }
@@ -745,7 +917,7 @@ export interface ListTransactionEventsInput {
745
917
  * @public
746
918
  * <p>The blockchain network where the transaction events occurred.</p>
747
919
  */
748
- network: QueryNetwork | string | undefined;
920
+ network: QueryNetwork | undefined;
749
921
  /**
750
922
  * @public
751
923
  * <p>The pagination token that indicates the next set of results to retrieve.</p>
@@ -827,7 +999,7 @@ export interface TransactionEvent {
827
999
  * @public
828
1000
  * <p>The blockchain network where the transaction occurred.</p>
829
1001
  */
830
- network: QueryNetwork | string | undefined;
1002
+ network: QueryNetwork | undefined;
831
1003
  /**
832
1004
  * @public
833
1005
  * <p>The hash of the transaction. It is generated whenever a transaction is verified and added to the blockchain.</p>
@@ -837,7 +1009,7 @@ export interface TransactionEvent {
837
1009
  * @public
838
1010
  * <p>The type of transaction event.</p>
839
1011
  */
840
- eventType: QueryTransactionEventType | string | undefined;
1012
+ eventType: QueryTransactionEventType | undefined;
841
1013
  /**
842
1014
  * @public
843
1015
  * <p>The wallet address initiating the transaction. It can either be a public key or a contract.</p>
@@ -932,7 +1104,7 @@ export interface ListTransactionsSort {
932
1104
  * @public
933
1105
  * <p>Defaults to the value <code>TRANSACTION_TIMESTAMP</code>.</p>
934
1106
  */
935
- sortBy?: ListTransactionsSortBy | string;
1107
+ sortBy?: ListTransactionsSortBy;
936
1108
  /**
937
1109
  * @public
938
1110
  * <p>The container for the <i>sort order</i> for <code>ListTransactions</code>.
@@ -940,7 +1112,7 @@ export interface ListTransactionsSort {
940
1112
  * and <code>DESCENDING</code>. Not providing <code>SortOrder</code> will default
941
1113
  * to <code>ASCENDING</code>.</p>
942
1114
  */
943
- sortOrder?: SortOrder | string;
1115
+ sortOrder?: SortOrder;
944
1116
  }
945
1117
  /**
946
1118
  * @public
@@ -955,7 +1127,7 @@ export interface ListTransactionsInput {
955
1127
  * @public
956
1128
  * <p>The blockchain network where the transactions occurred.</p>
957
1129
  */
958
- network: QueryNetwork | string | undefined;
1130
+ network: QueryNetwork | undefined;
959
1131
  /**
960
1132
  * @public
961
1133
  * <p>The container for time.</p>
@@ -1004,7 +1176,7 @@ export interface TransactionOutputItem {
1004
1176
  * @public
1005
1177
  * <p>The blockchain network where the transaction occurred.</p>
1006
1178
  */
1007
- network: QueryNetwork | string | undefined;
1179
+ network: QueryNetwork | undefined;
1008
1180
  /**
1009
1181
  * @public
1010
1182
  * <p>The time when the transaction occurred.</p>
@@ -0,0 +1,7 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import { ListAssetContractsCommandInput, ListAssetContractsCommandOutput } from "../commands/ListAssetContractsCommand";
3
+ import { ManagedBlockchainQueryPaginationConfiguration } from "./Interfaces";
4
+ /**
5
+ * @public
6
+ */
7
+ export declare function paginateListAssetContracts(config: ManagedBlockchainQueryPaginationConfiguration, input: ListAssetContractsCommandInput, ...additionalArguments: any): Paginator<ListAssetContractsCommandOutput>;
@@ -1,4 +1,5 @@
1
1
  export * from "./Interfaces";
2
+ export * from "./ListAssetContractsPaginator";
2
3
  export * from "./ListTokenBalancesPaginator";
3
4
  export * from "./ListTransactionEventsPaginator";
4
5
  export * from "./ListTransactionsPaginator";
@@ -1,8 +1,10 @@
1
1
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
2
2
  import { SerdeContext as __SerdeContext } from "@smithy/types";
3
3
  import { BatchGetTokenBalanceCommandInput, BatchGetTokenBalanceCommandOutput } from "../commands/BatchGetTokenBalanceCommand";
4
+ import { GetAssetContractCommandInput, GetAssetContractCommandOutput } from "../commands/GetAssetContractCommand";
4
5
  import { GetTokenBalanceCommandInput, GetTokenBalanceCommandOutput } from "../commands/GetTokenBalanceCommand";
5
6
  import { GetTransactionCommandInput, GetTransactionCommandOutput } from "../commands/GetTransactionCommand";
7
+ import { ListAssetContractsCommandInput, ListAssetContractsCommandOutput } from "../commands/ListAssetContractsCommand";
6
8
  import { ListTokenBalancesCommandInput, ListTokenBalancesCommandOutput } from "../commands/ListTokenBalancesCommand";
7
9
  import { ListTransactionEventsCommandInput, ListTransactionEventsCommandOutput } from "../commands/ListTransactionEventsCommand";
8
10
  import { ListTransactionsCommandInput, ListTransactionsCommandOutput } from "../commands/ListTransactionsCommand";
@@ -10,6 +12,10 @@ import { ListTransactionsCommandInput, ListTransactionsCommandOutput } from "../
10
12
  * serializeAws_restJson1BatchGetTokenBalanceCommand
11
13
  */
12
14
  export declare const se_BatchGetTokenBalanceCommand: (input: BatchGetTokenBalanceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
15
+ /**
16
+ * serializeAws_restJson1GetAssetContractCommand
17
+ */
18
+ export declare const se_GetAssetContractCommand: (input: GetAssetContractCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
13
19
  /**
14
20
  * serializeAws_restJson1GetTokenBalanceCommand
15
21
  */
@@ -18,6 +24,10 @@ export declare const se_GetTokenBalanceCommand: (input: GetTokenBalanceCommandIn
18
24
  * serializeAws_restJson1GetTransactionCommand
19
25
  */
20
26
  export declare const se_GetTransactionCommand: (input: GetTransactionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
27
+ /**
28
+ * serializeAws_restJson1ListAssetContractsCommand
29
+ */
30
+ export declare const se_ListAssetContractsCommand: (input: ListAssetContractsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
21
31
  /**
22
32
  * serializeAws_restJson1ListTokenBalancesCommand
23
33
  */
@@ -34,6 +44,10 @@ export declare const se_ListTransactionsCommand: (input: ListTransactionsCommand
34
44
  * deserializeAws_restJson1BatchGetTokenBalanceCommand
35
45
  */
36
46
  export declare const de_BatchGetTokenBalanceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<BatchGetTokenBalanceCommandOutput>;
47
+ /**
48
+ * deserializeAws_restJson1GetAssetContractCommand
49
+ */
50
+ export declare const de_GetAssetContractCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetAssetContractCommandOutput>;
37
51
  /**
38
52
  * deserializeAws_restJson1GetTokenBalanceCommand
39
53
  */
@@ -42,6 +56,10 @@ export declare const de_GetTokenBalanceCommand: (output: __HttpResponse, context
42
56
  * deserializeAws_restJson1GetTransactionCommand
43
57
  */
44
58
  export declare const de_GetTransactionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetTransactionCommandOutput>;
59
+ /**
60
+ * deserializeAws_restJson1ListAssetContractsCommand
61
+ */
62
+ export declare const de_ListAssetContractsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListAssetContractsCommandOutput>;
45
63
  /**
46
64
  * deserializeAws_restJson1ListTokenBalancesCommand
47
65
  */
@@ -3,6 +3,10 @@ import {
3
3
  BatchGetTokenBalanceCommandInput,
4
4
  BatchGetTokenBalanceCommandOutput,
5
5
  } from "./commands/BatchGetTokenBalanceCommand";
6
+ import {
7
+ GetAssetContractCommandInput,
8
+ GetAssetContractCommandOutput,
9
+ } from "./commands/GetAssetContractCommand";
6
10
  import {
7
11
  GetTokenBalanceCommandInput,
8
12
  GetTokenBalanceCommandOutput,
@@ -11,6 +15,10 @@ import {
11
15
  GetTransactionCommandInput,
12
16
  GetTransactionCommandOutput,
13
17
  } from "./commands/GetTransactionCommand";
18
+ import {
19
+ ListAssetContractsCommandInput,
20
+ ListAssetContractsCommandOutput,
21
+ } from "./commands/ListAssetContractsCommand";
14
22
  import {
15
23
  ListTokenBalancesCommandInput,
16
24
  ListTokenBalancesCommandOutput,
@@ -38,6 +46,19 @@ export interface ManagedBlockchainQuery {
38
46
  options: __HttpHandlerOptions,
39
47
  cb: (err: any, data?: BatchGetTokenBalanceCommandOutput) => void
40
48
  ): void;
49
+ getAssetContract(
50
+ args: GetAssetContractCommandInput,
51
+ options?: __HttpHandlerOptions
52
+ ): Promise<GetAssetContractCommandOutput>;
53
+ getAssetContract(
54
+ args: GetAssetContractCommandInput,
55
+ cb: (err: any, data?: GetAssetContractCommandOutput) => void
56
+ ): void;
57
+ getAssetContract(
58
+ args: GetAssetContractCommandInput,
59
+ options: __HttpHandlerOptions,
60
+ cb: (err: any, data?: GetAssetContractCommandOutput) => void
61
+ ): void;
41
62
  getTokenBalance(
42
63
  args: GetTokenBalanceCommandInput,
43
64
  options?: __HttpHandlerOptions
@@ -64,6 +85,19 @@ export interface ManagedBlockchainQuery {
64
85
  options: __HttpHandlerOptions,
65
86
  cb: (err: any, data?: GetTransactionCommandOutput) => void
66
87
  ): void;
88
+ listAssetContracts(
89
+ args: ListAssetContractsCommandInput,
90
+ options?: __HttpHandlerOptions
91
+ ): Promise<ListAssetContractsCommandOutput>;
92
+ listAssetContracts(
93
+ args: ListAssetContractsCommandInput,
94
+ cb: (err: any, data?: ListAssetContractsCommandOutput) => void
95
+ ): void;
96
+ listAssetContracts(
97
+ args: ListAssetContractsCommandInput,
98
+ options: __HttpHandlerOptions,
99
+ cb: (err: any, data?: ListAssetContractsCommandOutput) => void
100
+ ): void;
67
101
  listTokenBalances(
68
102
  args: ListTokenBalancesCommandInput,
69
103
  options?: __HttpHandlerOptions
@@ -49,6 +49,10 @@ import {
49
49
  BatchGetTokenBalanceCommandInput,
50
50
  BatchGetTokenBalanceCommandOutput,
51
51
  } from "./commands/BatchGetTokenBalanceCommand";
52
+ import {
53
+ GetAssetContractCommandInput,
54
+ GetAssetContractCommandOutput,
55
+ } from "./commands/GetAssetContractCommand";
52
56
  import {
53
57
  GetTokenBalanceCommandInput,
54
58
  GetTokenBalanceCommandOutput,
@@ -57,6 +61,10 @@ import {
57
61
  GetTransactionCommandInput,
58
62
  GetTransactionCommandOutput,
59
63
  } from "./commands/GetTransactionCommand";
64
+ import {
65
+ ListAssetContractsCommandInput,
66
+ ListAssetContractsCommandOutput,
67
+ } from "./commands/ListAssetContractsCommand";
60
68
  import {
61
69
  ListTokenBalancesCommandInput,
62
70
  ListTokenBalancesCommandOutput,
@@ -78,15 +86,19 @@ import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
78
86
  export { __Client };
79
87
  export type ServiceInputTypes =
80
88
  | BatchGetTokenBalanceCommandInput
89
+ | GetAssetContractCommandInput
81
90
  | GetTokenBalanceCommandInput
82
91
  | GetTransactionCommandInput
92
+ | ListAssetContractsCommandInput
83
93
  | ListTokenBalancesCommandInput
84
94
  | ListTransactionEventsCommandInput
85
95
  | ListTransactionsCommandInput;
86
96
  export type ServiceOutputTypes =
87
97
  | BatchGetTokenBalanceCommandOutput
98
+ | GetAssetContractCommandOutput
88
99
  | GetTokenBalanceCommandOutput
89
100
  | GetTransactionCommandOutput
101
+ | ListAssetContractsCommandOutput
90
102
  | ListTokenBalancesCommandOutput
91
103
  | ListTransactionEventsCommandOutput
92
104
  | ListTransactionsCommandOutput;
@@ -0,0 +1,38 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@smithy/types";
9
+ import {
10
+ ManagedBlockchainQueryClientResolvedConfig,
11
+ ServiceInputTypes,
12
+ ServiceOutputTypes,
13
+ } from "../ManagedBlockchainQueryClient";
14
+ import {
15
+ GetAssetContractInput,
16
+ GetAssetContractOutput,
17
+ } from "../models/models_0";
18
+ export { __MetadataBearer, $Command };
19
+ export interface GetAssetContractCommandInput extends GetAssetContractInput {}
20
+ export interface GetAssetContractCommandOutput
21
+ extends GetAssetContractOutput,
22
+ __MetadataBearer {}
23
+ export declare class GetAssetContractCommand extends $Command<
24
+ GetAssetContractCommandInput,
25
+ GetAssetContractCommandOutput,
26
+ ManagedBlockchainQueryClientResolvedConfig
27
+ > {
28
+ readonly input: GetAssetContractCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
30
+ constructor(input: GetAssetContractCommandInput);
31
+ resolveMiddleware(
32
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
33
+ configuration: ManagedBlockchainQueryClientResolvedConfig,
34
+ options?: __HttpHandlerOptions
35
+ ): Handler<GetAssetContractCommandInput, GetAssetContractCommandOutput>;
36
+ private serialize;
37
+ private deserialize;
38
+ }
@@ -0,0 +1,39 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@smithy/types";
9
+ import {
10
+ ManagedBlockchainQueryClientResolvedConfig,
11
+ ServiceInputTypes,
12
+ ServiceOutputTypes,
13
+ } from "../ManagedBlockchainQueryClient";
14
+ import {
15
+ ListAssetContractsInput,
16
+ ListAssetContractsOutput,
17
+ } from "../models/models_0";
18
+ export { __MetadataBearer, $Command };
19
+ export interface ListAssetContractsCommandInput
20
+ extends ListAssetContractsInput {}
21
+ export interface ListAssetContractsCommandOutput
22
+ extends ListAssetContractsOutput,
23
+ __MetadataBearer {}
24
+ export declare class ListAssetContractsCommand extends $Command<
25
+ ListAssetContractsCommandInput,
26
+ ListAssetContractsCommandOutput,
27
+ ManagedBlockchainQueryClientResolvedConfig
28
+ > {
29
+ readonly input: ListAssetContractsCommandInput;
30
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
31
+ constructor(input: ListAssetContractsCommandInput);
32
+ resolveMiddleware(
33
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
34
+ configuration: ManagedBlockchainQueryClientResolvedConfig,
35
+ options?: __HttpHandlerOptions
36
+ ): Handler<ListAssetContractsCommandInput, ListAssetContractsCommandOutput>;
37
+ private serialize;
38
+ private deserialize;
39
+ }
@@ -1,6 +1,8 @@
1
1
  export * from "./BatchGetTokenBalanceCommand";
2
+ export * from "./GetAssetContractCommand";
2
3
  export * from "./GetTokenBalanceCommand";
3
4
  export * from "./GetTransactionCommand";
5
+ export * from "./ListAssetContractsCommand";
4
6
  export * from "./ListTokenBalancesCommand";
5
7
  export * from "./ListTransactionEventsCommand";
6
8
  export * from "./ListTransactionsCommand";