@aws-sdk/client-managedblockchain-query 3.928.0 → 3.930.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 (30) hide show
  1. package/dist-cjs/index.js +593 -654
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/ManagedBlockchainQueryClient.js +2 -0
  4. package/dist-es/commands/BatchGetTokenBalanceCommand.js +3 -9
  5. package/dist-es/commands/GetAssetContractCommand.js +3 -9
  6. package/dist-es/commands/GetTokenBalanceCommand.js +3 -9
  7. package/dist-es/commands/GetTransactionCommand.js +3 -9
  8. package/dist-es/commands/ListAssetContractsCommand.js +3 -9
  9. package/dist-es/commands/ListFilteredTransactionEventsCommand.js +3 -9
  10. package/dist-es/commands/ListTokenBalancesCommand.js +3 -9
  11. package/dist-es/commands/ListTransactionEventsCommand.js +3 -9
  12. package/dist-es/commands/ListTransactionsCommand.js +3 -9
  13. package/dist-es/runtimeConfig.shared.js +2 -0
  14. package/dist-es/schemas/schemas_0.js +558 -0
  15. package/dist-types/ManagedBlockchainQueryClient.d.ts +10 -1
  16. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  17. package/dist-types/runtimeConfig.d.ts +1 -0
  18. package/dist-types/runtimeConfig.native.d.ts +1 -0
  19. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  20. package/dist-types/schemas/schemas_0.d.ts +68 -0
  21. package/dist-types/ts3.4/ManagedBlockchainQueryClient.d.ts +4 -0
  22. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  23. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  24. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  25. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  26. package/dist-types/ts3.4/schemas/schemas_0.d.ts +73 -0
  27. package/package.json +33 -33
  28. package/dist-es/protocols/Aws_restJson1.js +0 -575
  29. package/dist-types/protocols/Aws_restJson1.d.ts +0 -83
  30. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -113
@@ -1,575 +0,0 @@
1
- import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
2
- import { requestBuilder as rb } from "@smithy/core";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@smithy/smithy-client";
4
- import { ManagedBlockchainQueryServiceException as __BaseException } from "../models/ManagedBlockchainQueryServiceException";
5
- import { AccessDeniedException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
6
- export const se_BatchGetTokenBalanceCommand = async (input, context) => {
7
- const b = rb(input, context);
8
- const headers = {
9
- "content-type": "application/json",
10
- };
11
- b.bp("/batch-get-token-balance");
12
- let body;
13
- body = JSON.stringify(take(input, {
14
- getTokenBalanceInputs: (_) => se_GetTokenBalanceInputList(_, context),
15
- }));
16
- b.m("POST").h(headers).b(body);
17
- return b.build();
18
- };
19
- export const se_GetAssetContractCommand = async (input, context) => {
20
- const b = rb(input, context);
21
- const headers = {
22
- "content-type": "application/json",
23
- };
24
- b.bp("/get-asset-contract");
25
- let body;
26
- body = JSON.stringify(take(input, {
27
- contractIdentifier: (_) => _json(_),
28
- }));
29
- b.m("POST").h(headers).b(body);
30
- return b.build();
31
- };
32
- export const se_GetTokenBalanceCommand = async (input, context) => {
33
- const b = rb(input, context);
34
- const headers = {
35
- "content-type": "application/json",
36
- };
37
- b.bp("/get-token-balance");
38
- let body;
39
- body = JSON.stringify(take(input, {
40
- atBlockchainInstant: (_) => se_BlockchainInstant(_, context),
41
- ownerIdentifier: (_) => _json(_),
42
- tokenIdentifier: (_) => _json(_),
43
- }));
44
- b.m("POST").h(headers).b(body);
45
- return b.build();
46
- };
47
- export const se_GetTransactionCommand = async (input, context) => {
48
- const b = rb(input, context);
49
- const headers = {
50
- "content-type": "application/json",
51
- };
52
- b.bp("/get-transaction");
53
- let body;
54
- body = JSON.stringify(take(input, {
55
- network: [],
56
- transactionHash: [],
57
- transactionId: [],
58
- }));
59
- b.m("POST").h(headers).b(body);
60
- return b.build();
61
- };
62
- export const se_ListAssetContractsCommand = async (input, context) => {
63
- const b = rb(input, context);
64
- const headers = {
65
- "content-type": "application/json",
66
- };
67
- b.bp("/list-asset-contracts");
68
- let body;
69
- body = JSON.stringify(take(input, {
70
- contractFilter: (_) => _json(_),
71
- maxResults: [],
72
- nextToken: [],
73
- }));
74
- b.m("POST").h(headers).b(body);
75
- return b.build();
76
- };
77
- export const se_ListFilteredTransactionEventsCommand = async (input, context) => {
78
- const b = rb(input, context);
79
- const headers = {
80
- "content-type": "application/json",
81
- };
82
- b.bp("/list-filtered-transaction-events");
83
- let body;
84
- body = JSON.stringify(take(input, {
85
- addressIdentifierFilter: (_) => _json(_),
86
- confirmationStatusFilter: (_) => _json(_),
87
- maxResults: [],
88
- network: [],
89
- nextToken: [],
90
- sort: (_) => _json(_),
91
- timeFilter: (_) => se_TimeFilter(_, context),
92
- voutFilter: (_) => _json(_),
93
- }));
94
- b.m("POST").h(headers).b(body);
95
- return b.build();
96
- };
97
- export const se_ListTokenBalancesCommand = async (input, context) => {
98
- const b = rb(input, context);
99
- const headers = {
100
- "content-type": "application/json",
101
- };
102
- b.bp("/list-token-balances");
103
- let body;
104
- body = JSON.stringify(take(input, {
105
- maxResults: [],
106
- nextToken: [],
107
- ownerFilter: (_) => _json(_),
108
- tokenFilter: (_) => _json(_),
109
- }));
110
- b.m("POST").h(headers).b(body);
111
- return b.build();
112
- };
113
- export const se_ListTransactionEventsCommand = async (input, context) => {
114
- const b = rb(input, context);
115
- const headers = {
116
- "content-type": "application/json",
117
- };
118
- b.bp("/list-transaction-events");
119
- let body;
120
- body = JSON.stringify(take(input, {
121
- maxResults: [],
122
- network: [],
123
- nextToken: [],
124
- transactionHash: [],
125
- transactionId: [],
126
- }));
127
- b.m("POST").h(headers).b(body);
128
- return b.build();
129
- };
130
- export const se_ListTransactionsCommand = async (input, context) => {
131
- const b = rb(input, context);
132
- const headers = {
133
- "content-type": "application/json",
134
- };
135
- b.bp("/list-transactions");
136
- let body;
137
- body = JSON.stringify(take(input, {
138
- address: [],
139
- confirmationStatusFilter: (_) => _json(_),
140
- fromBlockchainInstant: (_) => se_BlockchainInstant(_, context),
141
- maxResults: [],
142
- network: [],
143
- nextToken: [],
144
- sort: (_) => _json(_),
145
- toBlockchainInstant: (_) => se_BlockchainInstant(_, context),
146
- }));
147
- b.m("POST").h(headers).b(body);
148
- return b.build();
149
- };
150
- export const de_BatchGetTokenBalanceCommand = async (output, context) => {
151
- if (output.statusCode !== 200 && output.statusCode >= 300) {
152
- return de_CommandError(output, context);
153
- }
154
- const contents = map({
155
- $metadata: deserializeMetadata(output),
156
- });
157
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
158
- const doc = take(data, {
159
- errors: (_) => de_BatchGetTokenBalanceErrors(_, context),
160
- tokenBalances: (_) => de_BatchGetTokenBalanceOutputList(_, context),
161
- });
162
- Object.assign(contents, doc);
163
- return contents;
164
- };
165
- export const de_GetAssetContractCommand = async (output, context) => {
166
- if (output.statusCode !== 200 && output.statusCode >= 300) {
167
- return de_CommandError(output, context);
168
- }
169
- const contents = map({
170
- $metadata: deserializeMetadata(output),
171
- });
172
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
173
- const doc = take(data, {
174
- contractIdentifier: _json,
175
- deployerAddress: __expectString,
176
- metadata: _json,
177
- tokenStandard: __expectString,
178
- });
179
- Object.assign(contents, doc);
180
- return contents;
181
- };
182
- export const de_GetTokenBalanceCommand = async (output, context) => {
183
- if (output.statusCode !== 200 && output.statusCode >= 300) {
184
- return de_CommandError(output, context);
185
- }
186
- const contents = map({
187
- $metadata: deserializeMetadata(output),
188
- });
189
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
190
- const doc = take(data, {
191
- atBlockchainInstant: (_) => de_BlockchainInstant(_, context),
192
- balance: __expectString,
193
- lastUpdatedTime: (_) => de_BlockchainInstant(_, context),
194
- ownerIdentifier: _json,
195
- tokenIdentifier: _json,
196
- });
197
- Object.assign(contents, doc);
198
- return contents;
199
- };
200
- export const de_GetTransactionCommand = async (output, context) => {
201
- if (output.statusCode !== 200 && output.statusCode >= 300) {
202
- return de_CommandError(output, context);
203
- }
204
- const contents = map({
205
- $metadata: deserializeMetadata(output),
206
- });
207
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
208
- const doc = take(data, {
209
- transaction: (_) => de_Transaction(_, context),
210
- });
211
- Object.assign(contents, doc);
212
- return contents;
213
- };
214
- export const de_ListAssetContractsCommand = async (output, context) => {
215
- if (output.statusCode !== 200 && output.statusCode >= 300) {
216
- return de_CommandError(output, context);
217
- }
218
- const contents = map({
219
- $metadata: deserializeMetadata(output),
220
- });
221
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
222
- const doc = take(data, {
223
- contracts: _json,
224
- nextToken: __expectString,
225
- });
226
- Object.assign(contents, doc);
227
- return contents;
228
- };
229
- export const de_ListFilteredTransactionEventsCommand = async (output, context) => {
230
- if (output.statusCode !== 200 && output.statusCode >= 300) {
231
- return de_CommandError(output, context);
232
- }
233
- const contents = map({
234
- $metadata: deserializeMetadata(output),
235
- });
236
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
237
- const doc = take(data, {
238
- events: (_) => de_TransactionEventList(_, context),
239
- nextToken: __expectString,
240
- });
241
- Object.assign(contents, doc);
242
- return contents;
243
- };
244
- export const de_ListTokenBalancesCommand = async (output, context) => {
245
- if (output.statusCode !== 200 && output.statusCode >= 300) {
246
- return de_CommandError(output, context);
247
- }
248
- const contents = map({
249
- $metadata: deserializeMetadata(output),
250
- });
251
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
252
- const doc = take(data, {
253
- nextToken: __expectString,
254
- tokenBalances: (_) => de_TokenBalanceList(_, context),
255
- });
256
- Object.assign(contents, doc);
257
- return contents;
258
- };
259
- export const de_ListTransactionEventsCommand = async (output, context) => {
260
- if (output.statusCode !== 200 && output.statusCode >= 300) {
261
- return de_CommandError(output, context);
262
- }
263
- const contents = map({
264
- $metadata: deserializeMetadata(output),
265
- });
266
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
267
- const doc = take(data, {
268
- events: (_) => de_TransactionEventList(_, context),
269
- nextToken: __expectString,
270
- });
271
- Object.assign(contents, doc);
272
- return contents;
273
- };
274
- export const de_ListTransactionsCommand = async (output, context) => {
275
- if (output.statusCode !== 200 && output.statusCode >= 300) {
276
- return de_CommandError(output, context);
277
- }
278
- const contents = map({
279
- $metadata: deserializeMetadata(output),
280
- });
281
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
282
- const doc = take(data, {
283
- nextToken: __expectString,
284
- transactions: (_) => de_TransactionOutputList(_, context),
285
- });
286
- Object.assign(contents, doc);
287
- return contents;
288
- };
289
- const de_CommandError = async (output, context) => {
290
- const parsedOutput = {
291
- ...output,
292
- body: await parseErrorBody(output.body, context),
293
- };
294
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
295
- switch (errorCode) {
296
- case "AccessDeniedException":
297
- case "com.amazonaws.managedblockchainquery#AccessDeniedException":
298
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
299
- case "InternalServerException":
300
- case "com.amazonaws.managedblockchainquery#InternalServerException":
301
- throw await de_InternalServerExceptionRes(parsedOutput, context);
302
- case "ResourceNotFoundException":
303
- case "com.amazonaws.managedblockchainquery#ResourceNotFoundException":
304
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
305
- case "ServiceQuotaExceededException":
306
- case "com.amazonaws.managedblockchainquery#ServiceQuotaExceededException":
307
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
308
- case "ThrottlingException":
309
- case "com.amazonaws.managedblockchainquery#ThrottlingException":
310
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
311
- case "ValidationException":
312
- case "com.amazonaws.managedblockchainquery#ValidationException":
313
- throw await de_ValidationExceptionRes(parsedOutput, context);
314
- default:
315
- const parsedBody = parsedOutput.body;
316
- return throwDefaultError({
317
- output,
318
- parsedBody,
319
- errorCode,
320
- });
321
- }
322
- };
323
- const throwDefaultError = withBaseException(__BaseException);
324
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
325
- const contents = map({});
326
- const data = parsedOutput.body;
327
- const doc = take(data, {
328
- message: __expectString,
329
- });
330
- Object.assign(contents, doc);
331
- const exception = new AccessDeniedException({
332
- $metadata: deserializeMetadata(parsedOutput),
333
- ...contents,
334
- });
335
- return __decorateServiceException(exception, parsedOutput.body);
336
- };
337
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
338
- const contents = map({
339
- [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])],
340
- });
341
- const data = parsedOutput.body;
342
- const doc = take(data, {
343
- message: __expectString,
344
- });
345
- Object.assign(contents, doc);
346
- const exception = new InternalServerException({
347
- $metadata: deserializeMetadata(parsedOutput),
348
- ...contents,
349
- });
350
- return __decorateServiceException(exception, parsedOutput.body);
351
- };
352
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
353
- const contents = map({});
354
- const data = parsedOutput.body;
355
- const doc = take(data, {
356
- message: __expectString,
357
- resourceId: __expectString,
358
- resourceType: __expectString,
359
- });
360
- Object.assign(contents, doc);
361
- const exception = new ResourceNotFoundException({
362
- $metadata: deserializeMetadata(parsedOutput),
363
- ...contents,
364
- });
365
- return __decorateServiceException(exception, parsedOutput.body);
366
- };
367
- const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
368
- const contents = map({});
369
- const data = parsedOutput.body;
370
- const doc = take(data, {
371
- message: __expectString,
372
- quotaCode: __expectString,
373
- resourceId: __expectString,
374
- resourceType: __expectString,
375
- serviceCode: __expectString,
376
- });
377
- Object.assign(contents, doc);
378
- const exception = new ServiceQuotaExceededException({
379
- $metadata: deserializeMetadata(parsedOutput),
380
- ...contents,
381
- });
382
- return __decorateServiceException(exception, parsedOutput.body);
383
- };
384
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
385
- const contents = map({
386
- [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])],
387
- });
388
- const data = parsedOutput.body;
389
- const doc = take(data, {
390
- message: __expectString,
391
- quotaCode: __expectString,
392
- serviceCode: __expectString,
393
- });
394
- Object.assign(contents, doc);
395
- const exception = new ThrottlingException({
396
- $metadata: deserializeMetadata(parsedOutput),
397
- ...contents,
398
- });
399
- return __decorateServiceException(exception, parsedOutput.body);
400
- };
401
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
402
- const contents = map({});
403
- const data = parsedOutput.body;
404
- const doc = take(data, {
405
- fieldList: _json,
406
- message: __expectString,
407
- reason: __expectString,
408
- });
409
- Object.assign(contents, doc);
410
- const exception = new ValidationException({
411
- $metadata: deserializeMetadata(parsedOutput),
412
- ...contents,
413
- });
414
- return __decorateServiceException(exception, parsedOutput.body);
415
- };
416
- const se_BatchGetTokenBalanceInputItem = (input, context) => {
417
- return take(input, {
418
- atBlockchainInstant: (_) => se_BlockchainInstant(_, context),
419
- ownerIdentifier: _json,
420
- tokenIdentifier: _json,
421
- });
422
- };
423
- const se_BlockchainInstant = (input, context) => {
424
- return take(input, {
425
- time: (_) => _.getTime() / 1_000,
426
- });
427
- };
428
- const se_GetTokenBalanceInputList = (input, context) => {
429
- return input
430
- .filter((e) => e != null)
431
- .map((entry) => {
432
- return se_BatchGetTokenBalanceInputItem(entry, context);
433
- });
434
- };
435
- const se_TimeFilter = (input, context) => {
436
- return take(input, {
437
- from: (_) => se_BlockchainInstant(_, context),
438
- to: (_) => se_BlockchainInstant(_, context),
439
- });
440
- };
441
- const de_BatchGetTokenBalanceErrorItem = (output, context) => {
442
- return take(output, {
443
- atBlockchainInstant: (_) => de_BlockchainInstant(_, context),
444
- errorCode: __expectString,
445
- errorMessage: __expectString,
446
- errorType: __expectString,
447
- ownerIdentifier: _json,
448
- tokenIdentifier: _json,
449
- });
450
- };
451
- const de_BatchGetTokenBalanceErrors = (output, context) => {
452
- const retVal = (output || [])
453
- .filter((e) => e != null)
454
- .map((entry) => {
455
- return de_BatchGetTokenBalanceErrorItem(entry, context);
456
- });
457
- return retVal;
458
- };
459
- const de_BatchGetTokenBalanceOutputItem = (output, context) => {
460
- return take(output, {
461
- atBlockchainInstant: (_) => de_BlockchainInstant(_, context),
462
- balance: __expectString,
463
- lastUpdatedTime: (_) => de_BlockchainInstant(_, context),
464
- ownerIdentifier: _json,
465
- tokenIdentifier: _json,
466
- });
467
- };
468
- const de_BatchGetTokenBalanceOutputList = (output, context) => {
469
- const retVal = (output || [])
470
- .filter((e) => e != null)
471
- .map((entry) => {
472
- return de_BatchGetTokenBalanceOutputItem(entry, context);
473
- });
474
- return retVal;
475
- };
476
- const de_BlockchainInstant = (output, context) => {
477
- return take(output, {
478
- time: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
479
- });
480
- };
481
- const de_TokenBalance = (output, context) => {
482
- return take(output, {
483
- atBlockchainInstant: (_) => de_BlockchainInstant(_, context),
484
- balance: __expectString,
485
- lastUpdatedTime: (_) => de_BlockchainInstant(_, context),
486
- ownerIdentifier: _json,
487
- tokenIdentifier: _json,
488
- });
489
- };
490
- const de_TokenBalanceList = (output, context) => {
491
- const retVal = (output || [])
492
- .filter((e) => e != null)
493
- .map((entry) => {
494
- return de_TokenBalance(entry, context);
495
- });
496
- return retVal;
497
- };
498
- const de_Transaction = (output, context) => {
499
- return take(output, {
500
- blockHash: __expectString,
501
- blockNumber: __expectString,
502
- confirmationStatus: __expectString,
503
- contractAddress: __expectString,
504
- cumulativeGasUsed: __expectString,
505
- effectiveGasPrice: __expectString,
506
- executionStatus: __expectString,
507
- from: __expectString,
508
- gasUsed: __expectString,
509
- network: __expectString,
510
- numberOfTransactions: __expectLong,
511
- signatureR: __expectString,
512
- signatureS: __expectString,
513
- signatureV: __expectInt32,
514
- to: __expectString,
515
- transactionFee: __expectString,
516
- transactionHash: __expectString,
517
- transactionId: __expectString,
518
- transactionIndex: __expectLong,
519
- transactionTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
520
- });
521
- };
522
- const de_TransactionEvent = (output, context) => {
523
- return take(output, {
524
- blockchainInstant: (_) => de_BlockchainInstant(_, context),
525
- confirmationStatus: __expectString,
526
- contractAddress: __expectString,
527
- eventType: __expectString,
528
- from: __expectString,
529
- network: __expectString,
530
- spentVoutIndex: __expectInt32,
531
- spentVoutTransactionHash: __expectString,
532
- spentVoutTransactionId: __expectString,
533
- to: __expectString,
534
- tokenId: __expectString,
535
- transactionHash: __expectString,
536
- transactionId: __expectString,
537
- value: __expectString,
538
- voutIndex: __expectInt32,
539
- voutSpent: __expectBoolean,
540
- });
541
- };
542
- const de_TransactionEventList = (output, context) => {
543
- const retVal = (output || [])
544
- .filter((e) => e != null)
545
- .map((entry) => {
546
- return de_TransactionEvent(entry, context);
547
- });
548
- return retVal;
549
- };
550
- const de_TransactionOutputItem = (output, context) => {
551
- return take(output, {
552
- confirmationStatus: __expectString,
553
- network: __expectString,
554
- transactionHash: __expectString,
555
- transactionId: __expectString,
556
- transactionTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
557
- });
558
- };
559
- const de_TransactionOutputList = (output, context) => {
560
- const retVal = (output || [])
561
- .filter((e) => e != null)
562
- .map((entry) => {
563
- return de_TransactionOutputItem(entry, context);
564
- });
565
- return retVal;
566
- };
567
- const deserializeMetadata = (output) => ({
568
- httpStatusCode: output.statusCode,
569
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
570
- extendedRequestId: output.headers["x-amz-id-2"],
571
- cfId: output.headers["x-amz-cf-id"],
572
- });
573
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
574
- const _rAS = "retryAfterSeconds";
575
- const _ra = "retry-after";
@@ -1,83 +0,0 @@
1
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
2
- import { SerdeContext as __SerdeContext } from "@smithy/types";
3
- import { BatchGetTokenBalanceCommandInput, BatchGetTokenBalanceCommandOutput } from "../commands/BatchGetTokenBalanceCommand";
4
- import { GetAssetContractCommandInput, GetAssetContractCommandOutput } from "../commands/GetAssetContractCommand";
5
- import { GetTokenBalanceCommandInput, GetTokenBalanceCommandOutput } from "../commands/GetTokenBalanceCommand";
6
- import { GetTransactionCommandInput, GetTransactionCommandOutput } from "../commands/GetTransactionCommand";
7
- import { ListAssetContractsCommandInput, ListAssetContractsCommandOutput } from "../commands/ListAssetContractsCommand";
8
- import { ListFilteredTransactionEventsCommandInput, ListFilteredTransactionEventsCommandOutput } from "../commands/ListFilteredTransactionEventsCommand";
9
- import { ListTokenBalancesCommandInput, ListTokenBalancesCommandOutput } from "../commands/ListTokenBalancesCommand";
10
- import { ListTransactionEventsCommandInput, ListTransactionEventsCommandOutput } from "../commands/ListTransactionEventsCommand";
11
- import { ListTransactionsCommandInput, ListTransactionsCommandOutput } from "../commands/ListTransactionsCommand";
12
- /**
13
- * serializeAws_restJson1BatchGetTokenBalanceCommand
14
- */
15
- export declare const se_BatchGetTokenBalanceCommand: (input: BatchGetTokenBalanceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
16
- /**
17
- * serializeAws_restJson1GetAssetContractCommand
18
- */
19
- export declare const se_GetAssetContractCommand: (input: GetAssetContractCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
20
- /**
21
- * serializeAws_restJson1GetTokenBalanceCommand
22
- */
23
- export declare const se_GetTokenBalanceCommand: (input: GetTokenBalanceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
24
- /**
25
- * serializeAws_restJson1GetTransactionCommand
26
- */
27
- export declare const se_GetTransactionCommand: (input: GetTransactionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
28
- /**
29
- * serializeAws_restJson1ListAssetContractsCommand
30
- */
31
- export declare const se_ListAssetContractsCommand: (input: ListAssetContractsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
32
- /**
33
- * serializeAws_restJson1ListFilteredTransactionEventsCommand
34
- */
35
- export declare const se_ListFilteredTransactionEventsCommand: (input: ListFilteredTransactionEventsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
36
- /**
37
- * serializeAws_restJson1ListTokenBalancesCommand
38
- */
39
- export declare const se_ListTokenBalancesCommand: (input: ListTokenBalancesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
40
- /**
41
- * serializeAws_restJson1ListTransactionEventsCommand
42
- */
43
- export declare const se_ListTransactionEventsCommand: (input: ListTransactionEventsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
44
- /**
45
- * serializeAws_restJson1ListTransactionsCommand
46
- */
47
- export declare const se_ListTransactionsCommand: (input: ListTransactionsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
48
- /**
49
- * deserializeAws_restJson1BatchGetTokenBalanceCommand
50
- */
51
- export declare const de_BatchGetTokenBalanceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<BatchGetTokenBalanceCommandOutput>;
52
- /**
53
- * deserializeAws_restJson1GetAssetContractCommand
54
- */
55
- export declare const de_GetAssetContractCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetAssetContractCommandOutput>;
56
- /**
57
- * deserializeAws_restJson1GetTokenBalanceCommand
58
- */
59
- export declare const de_GetTokenBalanceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetTokenBalanceCommandOutput>;
60
- /**
61
- * deserializeAws_restJson1GetTransactionCommand
62
- */
63
- export declare const de_GetTransactionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetTransactionCommandOutput>;
64
- /**
65
- * deserializeAws_restJson1ListAssetContractsCommand
66
- */
67
- export declare const de_ListAssetContractsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListAssetContractsCommandOutput>;
68
- /**
69
- * deserializeAws_restJson1ListFilteredTransactionEventsCommand
70
- */
71
- export declare const de_ListFilteredTransactionEventsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListFilteredTransactionEventsCommandOutput>;
72
- /**
73
- * deserializeAws_restJson1ListTokenBalancesCommand
74
- */
75
- export declare const de_ListTokenBalancesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListTokenBalancesCommandOutput>;
76
- /**
77
- * deserializeAws_restJson1ListTransactionEventsCommand
78
- */
79
- export declare const de_ListTransactionEventsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListTransactionEventsCommandOutput>;
80
- /**
81
- * deserializeAws_restJson1ListTransactionsCommand
82
- */
83
- export declare const de_ListTransactionsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListTransactionsCommandOutput>;