@aws-sdk/client-managedblockchain-query 3.428.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 +5 -5
@@ -7,19 +7,36 @@ export declare class AccessDeniedException extends __BaseException {
7
7
  opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
8
8
  );
9
9
  }
10
+ export declare const QueryNetwork: {
11
+ readonly BITCOIN_MAINNET: "BITCOIN_MAINNET";
12
+ readonly BITCOIN_TESTNET: "BITCOIN_TESTNET";
13
+ readonly ETHEREUM_MAINNET: "ETHEREUM_MAINNET";
14
+ };
15
+ export type QueryNetwork = (typeof QueryNetwork)[keyof typeof QueryNetwork];
16
+ export interface ContractIdentifier {
17
+ network: QueryNetwork | undefined;
18
+ contractAddress: string | undefined;
19
+ }
20
+ export declare const QueryTokenStandard: {
21
+ readonly ERC1155: "ERC1155";
22
+ readonly ERC20: "ERC20";
23
+ readonly ERC721: "ERC721";
24
+ };
25
+ export type QueryTokenStandard =
26
+ (typeof QueryTokenStandard)[keyof typeof QueryTokenStandard];
27
+ export interface AssetContract {
28
+ contractIdentifier: ContractIdentifier | undefined;
29
+ tokenStandard: QueryTokenStandard | undefined;
30
+ deployerAddress: string | undefined;
31
+ }
10
32
  export interface BlockchainInstant {
11
33
  time?: Date;
12
34
  }
13
35
  export interface OwnerIdentifier {
14
36
  address: string | undefined;
15
37
  }
16
- export declare const QueryNetwork: {
17
- readonly BITCOIN_MAINNET: "BITCOIN_MAINNET";
18
- readonly ETHEREUM_MAINNET: "ETHEREUM_MAINNET";
19
- };
20
- export type QueryNetwork = (typeof QueryNetwork)[keyof typeof QueryNetwork];
21
38
  export interface TokenIdentifier {
22
- network: QueryNetwork | string | undefined;
39
+ network: QueryNetwork | undefined;
23
40
  contractAddress?: string;
24
41
  tokenId?: string;
25
42
  }
@@ -42,7 +59,7 @@ export interface BatchGetTokenBalanceErrorItem {
42
59
  atBlockchainInstant?: BlockchainInstant;
43
60
  errorCode: string | undefined;
44
61
  errorMessage: string | undefined;
45
- errorType: ErrorType | string | undefined;
62
+ errorType: ErrorType | undefined;
46
63
  }
47
64
  export interface BatchGetTokenBalanceOutputItem {
48
65
  ownerIdentifier?: OwnerIdentifier;
@@ -72,7 +89,7 @@ export declare class ResourceNotFoundException extends __BaseException {
72
89
  readonly name: "ResourceNotFoundException";
73
90
  readonly $fault: "client";
74
91
  resourceId: string | undefined;
75
- resourceType: ResourceType | string | undefined;
92
+ resourceType: ResourceType | undefined;
76
93
  constructor(
77
94
  opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
78
95
  );
@@ -81,7 +98,7 @@ export declare class ServiceQuotaExceededException extends __BaseException {
81
98
  readonly name: "ServiceQuotaExceededException";
82
99
  readonly $fault: "client";
83
100
  resourceId: string | undefined;
84
- resourceType: ResourceType | string | undefined;
101
+ resourceType: ResourceType | undefined;
85
102
  serviceCode: string | undefined;
86
103
  quotaCode: string | undefined;
87
104
  constructor(
@@ -116,12 +133,31 @@ export type ValidationExceptionReason =
116
133
  export declare class ValidationException extends __BaseException {
117
134
  readonly name: "ValidationException";
118
135
  readonly $fault: "client";
119
- reason: ValidationExceptionReason | string | undefined;
136
+ reason: ValidationExceptionReason | undefined;
120
137
  fieldList?: ValidationExceptionField[];
121
138
  constructor(
122
139
  opts: __ExceptionOptionType<ValidationException, __BaseException>
123
140
  );
124
141
  }
142
+ export interface ContractFilter {
143
+ network: QueryNetwork | undefined;
144
+ tokenStandard: QueryTokenStandard | undefined;
145
+ deployerAddress: string | undefined;
146
+ }
147
+ export interface ContractMetadata {
148
+ name?: string;
149
+ symbol?: string;
150
+ decimals?: number;
151
+ }
152
+ export interface GetAssetContractInput {
153
+ contractIdentifier: ContractIdentifier | undefined;
154
+ }
155
+ export interface GetAssetContractOutput {
156
+ contractIdentifier: ContractIdentifier | undefined;
157
+ tokenStandard: QueryTokenStandard | undefined;
158
+ deployerAddress: string | undefined;
159
+ metadata?: ContractMetadata;
160
+ }
125
161
  export interface GetTokenBalanceInput {
126
162
  tokenIdentifier: TokenIdentifier | undefined;
127
163
  ownerIdentifier: OwnerIdentifier | undefined;
@@ -136,7 +172,7 @@ export interface GetTokenBalanceOutput {
136
172
  }
137
173
  export interface GetTransactionInput {
138
174
  transactionHash: string | undefined;
139
- network: QueryNetwork | string | undefined;
175
+ network: QueryNetwork | undefined;
140
176
  }
141
177
  export declare const QueryTransactionStatus: {
142
178
  readonly FAILED: "FAILED";
@@ -145,14 +181,14 @@ export declare const QueryTransactionStatus: {
145
181
  export type QueryTransactionStatus =
146
182
  (typeof QueryTransactionStatus)[keyof typeof QueryTransactionStatus];
147
183
  export interface Transaction {
148
- network: QueryNetwork | string | undefined;
184
+ network: QueryNetwork | undefined;
149
185
  blockHash?: string;
150
186
  transactionHash: string | undefined;
151
187
  blockNumber?: string;
152
188
  transactionTimestamp: Date | undefined;
153
189
  transactionIndex: number | undefined;
154
190
  numberOfTransactions: number | undefined;
155
- status: QueryTransactionStatus | string | undefined;
191
+ status: QueryTransactionStatus | undefined;
156
192
  to: string | undefined;
157
193
  from?: string;
158
194
  contractAddress?: string;
@@ -168,11 +204,20 @@ export interface Transaction {
168
204
  export interface GetTransactionOutput {
169
205
  transaction: Transaction | undefined;
170
206
  }
207
+ export interface ListAssetContractsInput {
208
+ contractFilter: ContractFilter | undefined;
209
+ nextToken?: string;
210
+ maxResults?: number;
211
+ }
212
+ export interface ListAssetContractsOutput {
213
+ contracts: AssetContract[] | undefined;
214
+ nextToken?: string;
215
+ }
171
216
  export interface OwnerFilter {
172
217
  address: string | undefined;
173
218
  }
174
219
  export interface TokenFilter {
175
- network: QueryNetwork | string | undefined;
220
+ network: QueryNetwork | undefined;
176
221
  contractAddress?: string;
177
222
  tokenId?: string;
178
223
  }
@@ -195,7 +240,7 @@ export interface ListTokenBalancesOutput {
195
240
  }
196
241
  export interface ListTransactionEventsInput {
197
242
  transactionHash: string | undefined;
198
- network: QueryNetwork | string | undefined;
243
+ network: QueryNetwork | undefined;
199
244
  nextToken?: string;
200
245
  maxResults?: number;
201
246
  }
@@ -215,9 +260,9 @@ export declare const QueryTransactionEventType: {
215
260
  export type QueryTransactionEventType =
216
261
  (typeof QueryTransactionEventType)[keyof typeof QueryTransactionEventType];
217
262
  export interface TransactionEvent {
218
- network: QueryNetwork | string | undefined;
263
+ network: QueryNetwork | undefined;
219
264
  transactionHash: string | undefined;
220
- eventType: QueryTransactionEventType | string | undefined;
265
+ eventType: QueryTransactionEventType | undefined;
221
266
  from?: string;
222
267
  to?: string;
223
268
  value?: string;
@@ -241,12 +286,12 @@ export declare const SortOrder: {
241
286
  };
242
287
  export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder];
243
288
  export interface ListTransactionsSort {
244
- sortBy?: ListTransactionsSortBy | string;
245
- sortOrder?: SortOrder | string;
289
+ sortBy?: ListTransactionsSortBy;
290
+ sortOrder?: SortOrder;
246
291
  }
247
292
  export interface ListTransactionsInput {
248
293
  address: string | undefined;
249
- network: QueryNetwork | string | undefined;
294
+ network: QueryNetwork | undefined;
250
295
  fromBlockchainInstant?: BlockchainInstant;
251
296
  toBlockchainInstant?: BlockchainInstant;
252
297
  sort?: ListTransactionsSort;
@@ -255,7 +300,7 @@ export interface ListTransactionsInput {
255
300
  }
256
301
  export interface TransactionOutputItem {
257
302
  transactionHash: string | undefined;
258
- network: QueryNetwork | string | undefined;
303
+ network: QueryNetwork | undefined;
259
304
  transactionTimestamp: Date | undefined;
260
305
  }
261
306
  export interface ListTransactionsOutput {
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import {
3
+ ListAssetContractsCommandInput,
4
+ ListAssetContractsCommandOutput,
5
+ } from "../commands/ListAssetContractsCommand";
6
+ import { ManagedBlockchainQueryPaginationConfiguration } from "./Interfaces";
7
+ export declare function paginateListAssetContracts(
8
+ config: ManagedBlockchainQueryPaginationConfiguration,
9
+ input: ListAssetContractsCommandInput,
10
+ ...additionalArguments: any
11
+ ): 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";
@@ -7,6 +7,10 @@ import {
7
7
  BatchGetTokenBalanceCommandInput,
8
8
  BatchGetTokenBalanceCommandOutput,
9
9
  } from "../commands/BatchGetTokenBalanceCommand";
10
+ import {
11
+ GetAssetContractCommandInput,
12
+ GetAssetContractCommandOutput,
13
+ } from "../commands/GetAssetContractCommand";
10
14
  import {
11
15
  GetTokenBalanceCommandInput,
12
16
  GetTokenBalanceCommandOutput,
@@ -15,6 +19,10 @@ import {
15
19
  GetTransactionCommandInput,
16
20
  GetTransactionCommandOutput,
17
21
  } from "../commands/GetTransactionCommand";
22
+ import {
23
+ ListAssetContractsCommandInput,
24
+ ListAssetContractsCommandOutput,
25
+ } from "../commands/ListAssetContractsCommand";
18
26
  import {
19
27
  ListTokenBalancesCommandInput,
20
28
  ListTokenBalancesCommandOutput,
@@ -31,6 +39,10 @@ export declare const se_BatchGetTokenBalanceCommand: (
31
39
  input: BatchGetTokenBalanceCommandInput,
32
40
  context: __SerdeContext
33
41
  ) => Promise<__HttpRequest>;
42
+ export declare const se_GetAssetContractCommand: (
43
+ input: GetAssetContractCommandInput,
44
+ context: __SerdeContext
45
+ ) => Promise<__HttpRequest>;
34
46
  export declare const se_GetTokenBalanceCommand: (
35
47
  input: GetTokenBalanceCommandInput,
36
48
  context: __SerdeContext
@@ -39,6 +51,10 @@ export declare const se_GetTransactionCommand: (
39
51
  input: GetTransactionCommandInput,
40
52
  context: __SerdeContext
41
53
  ) => Promise<__HttpRequest>;
54
+ export declare const se_ListAssetContractsCommand: (
55
+ input: ListAssetContractsCommandInput,
56
+ context: __SerdeContext
57
+ ) => Promise<__HttpRequest>;
42
58
  export declare const se_ListTokenBalancesCommand: (
43
59
  input: ListTokenBalancesCommandInput,
44
60
  context: __SerdeContext
@@ -55,6 +71,10 @@ export declare const de_BatchGetTokenBalanceCommand: (
55
71
  output: __HttpResponse,
56
72
  context: __SerdeContext
57
73
  ) => Promise<BatchGetTokenBalanceCommandOutput>;
74
+ export declare const de_GetAssetContractCommand: (
75
+ output: __HttpResponse,
76
+ context: __SerdeContext
77
+ ) => Promise<GetAssetContractCommandOutput>;
58
78
  export declare const de_GetTokenBalanceCommand: (
59
79
  output: __HttpResponse,
60
80
  context: __SerdeContext
@@ -63,6 +83,10 @@ export declare const de_GetTransactionCommand: (
63
83
  output: __HttpResponse,
64
84
  context: __SerdeContext
65
85
  ) => Promise<GetTransactionCommandOutput>;
86
+ export declare const de_ListAssetContractsCommand: (
87
+ output: __HttpResponse,
88
+ context: __SerdeContext
89
+ ) => Promise<ListAssetContractsCommandOutput>;
66
90
  export declare const de_ListTokenBalancesCommand: (
67
91
  output: __HttpResponse,
68
92
  context: __SerdeContext
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-managedblockchain-query",
3
3
  "description": "AWS SDK for JavaScript Managedblockchain Query Client for Node.js, Browser and React Native",
4
- "version": "3.428.0",
4
+ "version": "3.429.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,9 +21,9 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.428.0",
25
- "@aws-sdk/credential-provider-node": "3.428.0",
26
- "@aws-sdk/middleware-host-header": "3.428.0",
24
+ "@aws-sdk/client-sts": "3.429.0",
25
+ "@aws-sdk/credential-provider-node": "3.429.0",
26
+ "@aws-sdk/middleware-host-header": "3.429.0",
27
27
  "@aws-sdk/middleware-logger": "3.428.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.428.0",
29
29
  "@aws-sdk/middleware-signing": "3.428.0",
@@ -38,7 +38,7 @@
38
38
  "@smithy/hash-node": "^2.0.11",
39
39
  "@smithy/invalid-dependency": "^2.0.11",
40
40
  "@smithy/middleware-content-length": "^2.0.13",
41
- "@smithy/middleware-endpoint": "^2.1.0",
41
+ "@smithy/middleware-endpoint": "^2.1.1",
42
42
  "@smithy/middleware-retry": "^2.0.16",
43
43
  "@smithy/middleware-serde": "^2.0.11",
44
44
  "@smithy/middleware-stack": "^2.0.5",