@imtbl/sdk 0.1.8-alpha.2 → 0.1.9-alpha
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.
- package/dist/blockchain-data.d.ts +402 -110
- package/dist/blockchain-data.js +1699 -232
- package/dist/browser/checkout.js +2 -2
- package/dist/checkout_sdk.d.ts +163 -68
- package/dist/checkout_sdk.js +570 -215
- package/dist/checkout_widgets.d.ts +63 -156
- package/dist/checkout_widgets.js +20 -80
- package/dist/erc20.d.ts +180 -11
- package/dist/erc20.js +22 -22
- package/dist/erc721-permissioned-mintable.d.ts +258 -84
- package/dist/erc721-permissioned-mintable.js +134 -114
- package/dist/immutablex_client.js +1 -1
- package/dist/index.cjs +6966 -1834
- package/dist/index.d.ts +712 -413
- package/dist/index.js +6988 -1855
- package/dist/orderbook.d.ts +16 -16
- package/dist/orderbook.js +221 -114
- package/dist/passport.d.ts +3 -4
- package/dist/passport.js +3681 -436
- package/package.json +6 -1
|
@@ -49,17 +49,52 @@ interface BasicAPIError {
|
|
|
49
49
|
* Do not edit the class manually.
|
|
50
50
|
*/
|
|
51
51
|
/**
|
|
52
|
-
* The
|
|
52
|
+
* The contract type for an NFT
|
|
53
53
|
* @export
|
|
54
54
|
* @enum {string}
|
|
55
55
|
*/
|
|
56
|
-
declare const
|
|
57
|
-
readonly
|
|
58
|
-
readonly Burn: "burn";
|
|
59
|
-
readonly Transfer: "transfer";
|
|
60
|
-
readonly Sale: "sale";
|
|
56
|
+
declare const NFTContractType: {
|
|
57
|
+
readonly Erc721: "ERC721";
|
|
61
58
|
};
|
|
62
|
-
type
|
|
59
|
+
type NFTContractType = typeof NFTContractType[keyof typeof NFTContractType];
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Immutable X API
|
|
63
|
+
* Immutable Multi Rollup API
|
|
64
|
+
*
|
|
65
|
+
* The version of the OpenAPI document: 1.0.0
|
|
66
|
+
* Contact: support@immutable.com
|
|
67
|
+
*
|
|
68
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
69
|
+
* https://openapi-generator.tech
|
|
70
|
+
* Do not edit the class manually.
|
|
71
|
+
*/
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @export
|
|
76
|
+
* @interface ActivityNFT
|
|
77
|
+
*/
|
|
78
|
+
interface ActivityNFT {
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {NFTContractType}
|
|
82
|
+
* @memberof ActivityNFT
|
|
83
|
+
*/
|
|
84
|
+
'contract_type': NFTContractType;
|
|
85
|
+
/**
|
|
86
|
+
* The token contract address
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof ActivityNFT
|
|
89
|
+
*/
|
|
90
|
+
'contract_address': string;
|
|
91
|
+
/**
|
|
92
|
+
* An `uint256` token id as string
|
|
93
|
+
* @type {string}
|
|
94
|
+
* @memberof ActivityNFT
|
|
95
|
+
*/
|
|
96
|
+
'token_id': string;
|
|
97
|
+
}
|
|
63
98
|
|
|
64
99
|
/**
|
|
65
100
|
* Immutable X API
|
|
@@ -73,15 +108,14 @@ type ActivityType = typeof ActivityType[keyof typeof ActivityType];
|
|
|
73
108
|
* Do not edit the class manually.
|
|
74
109
|
*/
|
|
75
110
|
/**
|
|
76
|
-
* The contract type
|
|
111
|
+
* The contract type for a token
|
|
77
112
|
* @export
|
|
78
113
|
* @enum {string}
|
|
79
114
|
*/
|
|
80
|
-
declare const
|
|
81
|
-
readonly Erc721: "ERC721";
|
|
115
|
+
declare const TokenContractType: {
|
|
82
116
|
readonly Erc20: "ERC20";
|
|
83
117
|
};
|
|
84
|
-
type
|
|
118
|
+
type TokenContractType = typeof TokenContractType[keyof typeof TokenContractType];
|
|
85
119
|
|
|
86
120
|
/**
|
|
87
121
|
* Immutable X API
|
|
@@ -98,33 +132,21 @@ type ContractType = typeof ContractType[keyof typeof ContractType];
|
|
|
98
132
|
/**
|
|
99
133
|
*
|
|
100
134
|
* @export
|
|
101
|
-
* @interface
|
|
135
|
+
* @interface ActivityToken
|
|
102
136
|
*/
|
|
103
|
-
interface
|
|
137
|
+
interface ActivityToken {
|
|
104
138
|
/**
|
|
105
139
|
*
|
|
106
|
-
* @type {
|
|
107
|
-
* @memberof
|
|
140
|
+
* @type {TokenContractType}
|
|
141
|
+
* @memberof ActivityToken
|
|
108
142
|
*/
|
|
109
|
-
'contract_type':
|
|
143
|
+
'contract_type': TokenContractType;
|
|
110
144
|
/**
|
|
111
|
-
* The
|
|
145
|
+
* The contract address
|
|
112
146
|
* @type {string}
|
|
113
|
-
* @memberof
|
|
147
|
+
* @memberof ActivityToken
|
|
114
148
|
*/
|
|
115
149
|
'contract_address': string;
|
|
116
|
-
/**
|
|
117
|
-
* The symbol of the token
|
|
118
|
-
* @type {string}
|
|
119
|
-
* @memberof ERC20
|
|
120
|
-
*/
|
|
121
|
-
'symbol': string | null;
|
|
122
|
-
/**
|
|
123
|
-
* The decimal places of a token
|
|
124
|
-
* @type {number}
|
|
125
|
-
* @memberof ERC20
|
|
126
|
-
*/
|
|
127
|
-
'decimals': number | null;
|
|
128
150
|
}
|
|
129
151
|
|
|
130
152
|
/**
|
|
@@ -140,30 +162,11 @@ interface ERC20 {
|
|
|
140
162
|
*/
|
|
141
163
|
|
|
142
164
|
/**
|
|
143
|
-
*
|
|
165
|
+
* @type ActivityAsset
|
|
166
|
+
* The contract and asset details for this activity
|
|
144
167
|
* @export
|
|
145
|
-
* @interface ERC721Token
|
|
146
168
|
*/
|
|
147
|
-
|
|
148
|
-
/**
|
|
149
|
-
*
|
|
150
|
-
* @type {ContractType}
|
|
151
|
-
* @memberof ERC721Token
|
|
152
|
-
*/
|
|
153
|
-
'contract_type': ContractType;
|
|
154
|
-
/**
|
|
155
|
-
* The token contract address
|
|
156
|
-
* @type {string}
|
|
157
|
-
* @memberof ERC721Token
|
|
158
|
-
*/
|
|
159
|
-
'contract_address': string;
|
|
160
|
-
/**
|
|
161
|
-
* An `uint256` token id as string
|
|
162
|
-
* @type {string}
|
|
163
|
-
* @memberof ERC721Token
|
|
164
|
-
*/
|
|
165
|
-
'token_id': string;
|
|
166
|
-
}
|
|
169
|
+
type ActivityAsset = ActivityNFT | ActivityToken;
|
|
167
170
|
|
|
168
171
|
/**
|
|
169
172
|
* Immutable X API
|
|
@@ -176,13 +179,18 @@ interface ERC721Token {
|
|
|
176
179
|
* https://openapi-generator.tech
|
|
177
180
|
* Do not edit the class manually.
|
|
178
181
|
*/
|
|
179
|
-
|
|
180
182
|
/**
|
|
181
|
-
*
|
|
182
|
-
* The token details
|
|
183
|
+
* The activity type
|
|
183
184
|
* @export
|
|
185
|
+
* @enum {string}
|
|
184
186
|
*/
|
|
185
|
-
|
|
187
|
+
declare const ActivityType: {
|
|
188
|
+
readonly Mint: "mint";
|
|
189
|
+
readonly Burn: "burn";
|
|
190
|
+
readonly Transfer: "transfer";
|
|
191
|
+
readonly Sale: "sale";
|
|
192
|
+
};
|
|
193
|
+
type ActivityType = typeof ActivityType[keyof typeof ActivityType];
|
|
186
194
|
|
|
187
195
|
/**
|
|
188
196
|
* Immutable X API
|
|
@@ -209,23 +217,23 @@ interface Burn {
|
|
|
209
217
|
*/
|
|
210
218
|
'activity_type': ActivityType;
|
|
211
219
|
/**
|
|
212
|
-
* The account address the
|
|
220
|
+
* The account address the asset was transferred from
|
|
213
221
|
* @type {string}
|
|
214
222
|
* @memberof Burn
|
|
215
223
|
*/
|
|
216
224
|
'from': string;
|
|
217
225
|
/**
|
|
218
|
-
* The amount of
|
|
226
|
+
* The amount of assets burnt
|
|
219
227
|
* @type {string}
|
|
220
228
|
* @memberof Burn
|
|
221
229
|
*/
|
|
222
230
|
'amount': string;
|
|
223
231
|
/**
|
|
224
232
|
*
|
|
225
|
-
* @type {
|
|
233
|
+
* @type {ActivityAsset}
|
|
226
234
|
* @memberof Burn
|
|
227
235
|
*/
|
|
228
|
-
'
|
|
236
|
+
'asset': ActivityAsset;
|
|
229
237
|
}
|
|
230
238
|
|
|
231
239
|
/**
|
|
@@ -253,23 +261,23 @@ interface Mint {
|
|
|
253
261
|
*/
|
|
254
262
|
'activity_type': ActivityType;
|
|
255
263
|
/**
|
|
256
|
-
* The account address
|
|
264
|
+
* The account address the asset was minted to
|
|
257
265
|
* @type {string}
|
|
258
266
|
* @memberof Mint
|
|
259
267
|
*/
|
|
260
268
|
'to': string;
|
|
261
269
|
/**
|
|
262
|
-
* The minted
|
|
270
|
+
* The minted amount
|
|
263
271
|
* @type {string}
|
|
264
272
|
* @memberof Mint
|
|
265
273
|
*/
|
|
266
274
|
'amount': string;
|
|
267
275
|
/**
|
|
268
276
|
*
|
|
269
|
-
* @type {
|
|
277
|
+
* @type {ActivityAsset}
|
|
270
278
|
* @memberof Mint
|
|
271
279
|
*/
|
|
272
|
-
'
|
|
280
|
+
'asset': ActivityAsset;
|
|
273
281
|
}
|
|
274
282
|
|
|
275
283
|
/**
|
|
@@ -286,13 +294,54 @@ interface Mint {
|
|
|
286
294
|
/**
|
|
287
295
|
*
|
|
288
296
|
* @export
|
|
289
|
-
* @interface
|
|
297
|
+
* @interface SaleFee
|
|
290
298
|
*/
|
|
291
|
-
interface
|
|
299
|
+
interface SaleFee {
|
|
300
|
+
/**
|
|
301
|
+
* Fee payable to recipient upon settlement
|
|
302
|
+
* @type {string}
|
|
303
|
+
* @memberof SaleFee
|
|
304
|
+
*/
|
|
305
|
+
'amount'?: string;
|
|
306
|
+
/**
|
|
307
|
+
* Fee type
|
|
308
|
+
* @type {string}
|
|
309
|
+
* @memberof SaleFee
|
|
310
|
+
*/
|
|
311
|
+
'type'?: SaleFeeTypeEnum;
|
|
312
|
+
/**
|
|
313
|
+
* Wallet address of fee recipient
|
|
314
|
+
* @type {string}
|
|
315
|
+
* @memberof SaleFee
|
|
316
|
+
*/
|
|
317
|
+
'recipient'?: string;
|
|
318
|
+
}
|
|
319
|
+
declare const SaleFeeTypeEnum: {
|
|
320
|
+
readonly Royalty: "ROYALTY";
|
|
321
|
+
};
|
|
322
|
+
type SaleFeeTypeEnum = typeof SaleFeeTypeEnum[keyof typeof SaleFeeTypeEnum];
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* Immutable X API
|
|
326
|
+
* Immutable Multi Rollup API
|
|
327
|
+
*
|
|
328
|
+
* The version of the OpenAPI document: 1.0.0
|
|
329
|
+
* Contact: support@immutable.com
|
|
330
|
+
*
|
|
331
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
332
|
+
* https://openapi-generator.tech
|
|
333
|
+
* Do not edit the class manually.
|
|
334
|
+
*/
|
|
335
|
+
/**
|
|
336
|
+
*
|
|
337
|
+
* @export
|
|
338
|
+
* @interface ActivityNativeToken
|
|
339
|
+
*/
|
|
340
|
+
interface ActivityNativeToken {
|
|
292
341
|
/**
|
|
293
342
|
* The token symbol
|
|
294
343
|
* @type {string}
|
|
295
|
-
* @memberof
|
|
344
|
+
* @memberof ActivityNativeToken
|
|
296
345
|
*/
|
|
297
346
|
'symbol': string;
|
|
298
347
|
}
|
|
@@ -310,11 +359,55 @@ interface NativeToken {
|
|
|
310
359
|
*/
|
|
311
360
|
|
|
312
361
|
/**
|
|
313
|
-
* @type
|
|
362
|
+
* @type SalePaymentToken
|
|
314
363
|
* The type of payment token
|
|
315
364
|
* @export
|
|
316
365
|
*/
|
|
317
|
-
type
|
|
366
|
+
type SalePaymentToken = ActivityNativeToken | ActivityToken;
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* Immutable X API
|
|
370
|
+
* Immutable Multi Rollup API
|
|
371
|
+
*
|
|
372
|
+
* The version of the OpenAPI document: 1.0.0
|
|
373
|
+
* Contact: support@immutable.com
|
|
374
|
+
*
|
|
375
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
376
|
+
* https://openapi-generator.tech
|
|
377
|
+
* Do not edit the class manually.
|
|
378
|
+
*/
|
|
379
|
+
|
|
380
|
+
/**
|
|
381
|
+
*
|
|
382
|
+
* @export
|
|
383
|
+
* @interface SalePayment
|
|
384
|
+
*/
|
|
385
|
+
interface SalePayment {
|
|
386
|
+
/**
|
|
387
|
+
*
|
|
388
|
+
* @type {SalePaymentToken}
|
|
389
|
+
* @memberof SalePayment
|
|
390
|
+
*/
|
|
391
|
+
'token': SalePaymentToken;
|
|
392
|
+
/**
|
|
393
|
+
* The base price of the sale not including any fees
|
|
394
|
+
* @type {string}
|
|
395
|
+
* @memberof SalePayment
|
|
396
|
+
*/
|
|
397
|
+
'price_excluding_fees': string;
|
|
398
|
+
/**
|
|
399
|
+
* The total price of the sale. Includes the sum of all fees
|
|
400
|
+
* @type {string}
|
|
401
|
+
* @memberof SalePayment
|
|
402
|
+
*/
|
|
403
|
+
'price_including_fees': string;
|
|
404
|
+
/**
|
|
405
|
+
* The fees associated with this sale
|
|
406
|
+
* @type {Array<SaleFee>}
|
|
407
|
+
* @memberof SalePayment
|
|
408
|
+
*/
|
|
409
|
+
'fees': Array<SaleFee>;
|
|
410
|
+
}
|
|
318
411
|
|
|
319
412
|
/**
|
|
320
413
|
* Immutable X API
|
|
@@ -351,37 +444,25 @@ interface NFTSale {
|
|
|
351
444
|
* @type {string}
|
|
352
445
|
* @memberof NFTSale
|
|
353
446
|
*/
|
|
354
|
-
'
|
|
447
|
+
'to': string;
|
|
355
448
|
/**
|
|
356
449
|
* The account address of seller
|
|
357
450
|
* @type {string}
|
|
358
451
|
* @memberof NFTSale
|
|
359
452
|
*/
|
|
360
|
-
'
|
|
361
|
-
/**
|
|
362
|
-
* The quantity of tokens sold
|
|
363
|
-
* @type {number}
|
|
364
|
-
* @memberof NFTSale
|
|
365
|
-
*/
|
|
366
|
-
'quantity': number;
|
|
453
|
+
'from': string;
|
|
367
454
|
/**
|
|
368
455
|
*
|
|
369
|
-
* @type {
|
|
456
|
+
* @type {Array<ActivityNFT>}
|
|
370
457
|
* @memberof NFTSale
|
|
371
458
|
*/
|
|
372
|
-
'
|
|
373
|
-
/**
|
|
374
|
-
* The amount of payment
|
|
375
|
-
* @type {string}
|
|
376
|
-
* @memberof NFTSale
|
|
377
|
-
*/
|
|
378
|
-
'payment_amount': string;
|
|
459
|
+
'asset': Array<ActivityNFT>;
|
|
379
460
|
/**
|
|
380
461
|
*
|
|
381
|
-
* @type {
|
|
462
|
+
* @type {SalePayment}
|
|
382
463
|
* @memberof NFTSale
|
|
383
464
|
*/
|
|
384
|
-
'
|
|
465
|
+
'payment': SalePayment;
|
|
385
466
|
}
|
|
386
467
|
|
|
387
468
|
/**
|
|
@@ -409,29 +490,29 @@ interface Transfer {
|
|
|
409
490
|
*/
|
|
410
491
|
'activity_type': ActivityType;
|
|
411
492
|
/**
|
|
412
|
-
* The account address the
|
|
493
|
+
* The account address the asset was transferred from
|
|
413
494
|
* @type {string}
|
|
414
495
|
* @memberof Transfer
|
|
415
496
|
*/
|
|
416
497
|
'from': string;
|
|
417
498
|
/**
|
|
418
|
-
* The account address the
|
|
499
|
+
* The account address the asset was transferred to
|
|
419
500
|
* @type {string}
|
|
420
501
|
* @memberof Transfer
|
|
421
502
|
*/
|
|
422
503
|
'to': string;
|
|
423
504
|
/**
|
|
424
|
-
* The amount of
|
|
505
|
+
* The amount of assets transferred
|
|
425
506
|
* @type {string}
|
|
426
507
|
* @memberof Transfer
|
|
427
508
|
*/
|
|
428
509
|
'amount': string;
|
|
429
510
|
/**
|
|
430
511
|
*
|
|
431
|
-
* @type {
|
|
512
|
+
* @type {ActivityAsset}
|
|
432
513
|
* @memberof Transfer
|
|
433
514
|
*/
|
|
434
|
-
'
|
|
515
|
+
'asset': ActivityAsset;
|
|
435
516
|
}
|
|
436
517
|
|
|
437
518
|
/**
|
|
@@ -583,6 +664,49 @@ interface Activity {
|
|
|
583
664
|
'blockchain_metadata': BlockchainMetadata | null;
|
|
584
665
|
}
|
|
585
666
|
|
|
667
|
+
/**
|
|
668
|
+
* Immutable X API
|
|
669
|
+
* Immutable Multi Rollup API
|
|
670
|
+
*
|
|
671
|
+
* The version of the OpenAPI document: 1.0.0
|
|
672
|
+
* Contact: support@immutable.com
|
|
673
|
+
*
|
|
674
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
675
|
+
* https://openapi-generator.tech
|
|
676
|
+
* Do not edit the class manually.
|
|
677
|
+
*/
|
|
678
|
+
/**
|
|
679
|
+
*
|
|
680
|
+
* @export
|
|
681
|
+
* @interface ChainWithDetailsAllOf
|
|
682
|
+
*/
|
|
683
|
+
interface ChainWithDetailsAllOf {
|
|
684
|
+
/**
|
|
685
|
+
* URL for RPC node
|
|
686
|
+
* @type {string}
|
|
687
|
+
* @memberof ChainWithDetailsAllOf
|
|
688
|
+
*/
|
|
689
|
+
'rpc_url': string | null;
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
/**
|
|
693
|
+
* Immutable X API
|
|
694
|
+
* Immutable Multi Rollup API
|
|
695
|
+
*
|
|
696
|
+
* The version of the OpenAPI document: 1.0.0
|
|
697
|
+
* Contact: support@immutable.com
|
|
698
|
+
*
|
|
699
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
700
|
+
* https://openapi-generator.tech
|
|
701
|
+
* Do not edit the class manually.
|
|
702
|
+
*/
|
|
703
|
+
|
|
704
|
+
/**
|
|
705
|
+
* @type ChainWithDetails
|
|
706
|
+
* @export
|
|
707
|
+
*/
|
|
708
|
+
type ChainWithDetails = Chain & ChainWithDetailsAllOf;
|
|
709
|
+
|
|
586
710
|
/**
|
|
587
711
|
* Immutable X API
|
|
588
712
|
* Immutable Multi Rollup API
|
|
@@ -875,12 +999,6 @@ interface NFTMetadataAttribute {
|
|
|
875
999
|
* @memberof NFTMetadataAttribute
|
|
876
1000
|
*/
|
|
877
1001
|
'value': string;
|
|
878
|
-
/**
|
|
879
|
-
* The metadata trait display type
|
|
880
|
-
* @type {string}
|
|
881
|
-
* @memberof NFTMetadataAttribute
|
|
882
|
-
*/
|
|
883
|
-
'display_type': string;
|
|
884
1002
|
}
|
|
885
1003
|
|
|
886
1004
|
/**
|
|
@@ -954,6 +1072,88 @@ interface GetNFTResult {
|
|
|
954
1072
|
'result': NFTWithMetadataAttributes;
|
|
955
1073
|
}
|
|
956
1074
|
|
|
1075
|
+
/**
|
|
1076
|
+
* Immutable X API
|
|
1077
|
+
* Immutable Multi Rollup API
|
|
1078
|
+
*
|
|
1079
|
+
* The version of the OpenAPI document: 1.0.0
|
|
1080
|
+
* Contact: support@immutable.com
|
|
1081
|
+
*
|
|
1082
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1083
|
+
* https://openapi-generator.tech
|
|
1084
|
+
* Do not edit the class manually.
|
|
1085
|
+
*/
|
|
1086
|
+
|
|
1087
|
+
/**
|
|
1088
|
+
*
|
|
1089
|
+
* @export
|
|
1090
|
+
* @interface Token
|
|
1091
|
+
*/
|
|
1092
|
+
interface Token {
|
|
1093
|
+
/**
|
|
1094
|
+
*
|
|
1095
|
+
* @type {Chain}
|
|
1096
|
+
* @memberof Token
|
|
1097
|
+
*/
|
|
1098
|
+
'chain': Chain;
|
|
1099
|
+
/**
|
|
1100
|
+
*
|
|
1101
|
+
* @type {string}
|
|
1102
|
+
* @memberof Token
|
|
1103
|
+
*/
|
|
1104
|
+
'contract_address': string;
|
|
1105
|
+
/**
|
|
1106
|
+
*
|
|
1107
|
+
* @type {string}
|
|
1108
|
+
* @memberof Token
|
|
1109
|
+
*/
|
|
1110
|
+
'symbol': string | null;
|
|
1111
|
+
/**
|
|
1112
|
+
*
|
|
1113
|
+
* @type {number}
|
|
1114
|
+
* @memberof Token
|
|
1115
|
+
*/
|
|
1116
|
+
'decimals': number | null;
|
|
1117
|
+
/**
|
|
1118
|
+
*
|
|
1119
|
+
* @type {string}
|
|
1120
|
+
* @memberof Token
|
|
1121
|
+
*/
|
|
1122
|
+
'image_url': string | null;
|
|
1123
|
+
/**
|
|
1124
|
+
*
|
|
1125
|
+
* @type {string}
|
|
1126
|
+
* @memberof Token
|
|
1127
|
+
*/
|
|
1128
|
+
'name': string | null;
|
|
1129
|
+
}
|
|
1130
|
+
|
|
1131
|
+
/**
|
|
1132
|
+
* Immutable X API
|
|
1133
|
+
* Immutable Multi Rollup API
|
|
1134
|
+
*
|
|
1135
|
+
* The version of the OpenAPI document: 1.0.0
|
|
1136
|
+
* Contact: support@immutable.com
|
|
1137
|
+
*
|
|
1138
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1139
|
+
* https://openapi-generator.tech
|
|
1140
|
+
* Do not edit the class manually.
|
|
1141
|
+
*/
|
|
1142
|
+
|
|
1143
|
+
/**
|
|
1144
|
+
* Single Token
|
|
1145
|
+
* @export
|
|
1146
|
+
* @interface GetTokenResult
|
|
1147
|
+
*/
|
|
1148
|
+
interface GetTokenResult {
|
|
1149
|
+
/**
|
|
1150
|
+
*
|
|
1151
|
+
* @type {Token}
|
|
1152
|
+
* @memberof GetTokenResult
|
|
1153
|
+
*/
|
|
1154
|
+
'result': Token;
|
|
1155
|
+
}
|
|
1156
|
+
|
|
957
1157
|
/**
|
|
958
1158
|
* Immutable X API
|
|
959
1159
|
* Immutable Multi Rollup API
|
|
@@ -972,17 +1172,17 @@ interface GetNFTResult {
|
|
|
972
1172
|
*/
|
|
973
1173
|
interface Page {
|
|
974
1174
|
/**
|
|
975
|
-
* First item as
|
|
1175
|
+
* First item as an encoded string
|
|
976
1176
|
* @type {string}
|
|
977
1177
|
* @memberof Page
|
|
978
1178
|
*/
|
|
979
|
-
'previous_cursor': string;
|
|
1179
|
+
'previous_cursor': string | null;
|
|
980
1180
|
/**
|
|
981
|
-
* Last item as
|
|
1181
|
+
* Last item as an encoded string
|
|
982
1182
|
* @type {string}
|
|
983
1183
|
* @memberof Page
|
|
984
1184
|
*/
|
|
985
|
-
'next_cursor': string;
|
|
1185
|
+
'next_cursor': string | null;
|
|
986
1186
|
}
|
|
987
1187
|
|
|
988
1188
|
/**
|
|
@@ -1037,10 +1237,10 @@ interface ListActivitiesResult {
|
|
|
1037
1237
|
interface ListChainsResult {
|
|
1038
1238
|
/**
|
|
1039
1239
|
* List of chains
|
|
1040
|
-
* @type {Array<
|
|
1240
|
+
* @type {Array<ChainWithDetails>}
|
|
1041
1241
|
* @memberof ListChainsResult
|
|
1042
1242
|
*/
|
|
1043
|
-
'result': Array<
|
|
1243
|
+
'result': Array<ChainWithDetails>;
|
|
1044
1244
|
/**
|
|
1045
1245
|
*
|
|
1046
1246
|
* @type {Page}
|
|
@@ -1195,6 +1395,38 @@ interface ListNFTsResult {
|
|
|
1195
1395
|
'page': Page;
|
|
1196
1396
|
}
|
|
1197
1397
|
|
|
1398
|
+
/**
|
|
1399
|
+
* Immutable X API
|
|
1400
|
+
* Immutable Multi Rollup API
|
|
1401
|
+
*
|
|
1402
|
+
* The version of the OpenAPI document: 1.0.0
|
|
1403
|
+
* Contact: support@immutable.com
|
|
1404
|
+
*
|
|
1405
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1406
|
+
* https://openapi-generator.tech
|
|
1407
|
+
* Do not edit the class manually.
|
|
1408
|
+
*/
|
|
1409
|
+
|
|
1410
|
+
/**
|
|
1411
|
+
*
|
|
1412
|
+
* @export
|
|
1413
|
+
* @interface ListTokensResult
|
|
1414
|
+
*/
|
|
1415
|
+
interface ListTokensResult {
|
|
1416
|
+
/**
|
|
1417
|
+
* List of tokens
|
|
1418
|
+
* @type {Array<Token>}
|
|
1419
|
+
* @memberof ListTokensResult
|
|
1420
|
+
*/
|
|
1421
|
+
'result': Array<Token>;
|
|
1422
|
+
/**
|
|
1423
|
+
*
|
|
1424
|
+
* @type {Page}
|
|
1425
|
+
* @memberof ListTokensResult
|
|
1426
|
+
*/
|
|
1427
|
+
'page': Page;
|
|
1428
|
+
}
|
|
1429
|
+
|
|
1198
1430
|
/**
|
|
1199
1431
|
* Request parameters for getActivity operation in ActivitiesApi.
|
|
1200
1432
|
* @export
|
|
@@ -1269,7 +1501,7 @@ interface ActivitiesApiListActivitiesRequest {
|
|
|
1269
1501
|
*/
|
|
1270
1502
|
readonly transactionHash?: string;
|
|
1271
1503
|
/**
|
|
1272
|
-
*
|
|
1504
|
+
* Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
1273
1505
|
* @type {string}
|
|
1274
1506
|
* @memberof ActivitiesApiListActivities
|
|
1275
1507
|
*/
|
|
@@ -1289,7 +1521,7 @@ interface ActivitiesApiListActivitiesRequest {
|
|
|
1289
1521
|
*/
|
|
1290
1522
|
interface ChainsApiListChainsRequest {
|
|
1291
1523
|
/**
|
|
1292
|
-
*
|
|
1524
|
+
* Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
1293
1525
|
* @type {string}
|
|
1294
1526
|
* @memberof ChainsApiListChains
|
|
1295
1527
|
*/
|
|
@@ -1334,7 +1566,7 @@ interface CollectionsApiListCollectionsRequest {
|
|
|
1334
1566
|
*/
|
|
1335
1567
|
readonly chainName: string;
|
|
1336
1568
|
/**
|
|
1337
|
-
*
|
|
1569
|
+
* Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
1338
1570
|
* @type {string}
|
|
1339
1571
|
* @memberof CollectionsApiListCollections
|
|
1340
1572
|
*/
|
|
@@ -1372,7 +1604,7 @@ interface NftOwnersApiListNFTOwnersRequest {
|
|
|
1372
1604
|
*/
|
|
1373
1605
|
readonly chainName: string;
|
|
1374
1606
|
/**
|
|
1375
|
-
*
|
|
1607
|
+
* Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
1376
1608
|
* @type {string}
|
|
1377
1609
|
* @memberof NftOwnersApiListNFTOwners
|
|
1378
1610
|
*/
|
|
@@ -1429,7 +1661,7 @@ interface NftsApiListNFTsRequest {
|
|
|
1429
1661
|
*/
|
|
1430
1662
|
readonly chainName: string;
|
|
1431
1663
|
/**
|
|
1432
|
-
*
|
|
1664
|
+
* Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
1433
1665
|
* @type {string}
|
|
1434
1666
|
* @memberof NftsApiListNFTs
|
|
1435
1667
|
*/
|
|
@@ -1466,7 +1698,7 @@ interface NftsApiListNFTsByAccountAddressRequest {
|
|
|
1466
1698
|
*/
|
|
1467
1699
|
readonly contractAddress?: string;
|
|
1468
1700
|
/**
|
|
1469
|
-
*
|
|
1701
|
+
* Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
1470
1702
|
* @type {string}
|
|
1471
1703
|
* @memberof NftsApiListNFTsByAccountAddress
|
|
1472
1704
|
*/
|
|
@@ -1479,6 +1711,51 @@ interface NftsApiListNFTsByAccountAddressRequest {
|
|
|
1479
1711
|
readonly pageSize?: number;
|
|
1480
1712
|
}
|
|
1481
1713
|
|
|
1714
|
+
/**
|
|
1715
|
+
* Request parameters for getERC20Token operation in TokensApi.
|
|
1716
|
+
* @export
|
|
1717
|
+
* @interface TokensApiGetERC20TokenRequest
|
|
1718
|
+
*/
|
|
1719
|
+
interface TokensApiGetERC20TokenRequest {
|
|
1720
|
+
/**
|
|
1721
|
+
* The address of contract
|
|
1722
|
+
* @type {string}
|
|
1723
|
+
* @memberof TokensApiGetERC20Token
|
|
1724
|
+
*/
|
|
1725
|
+
readonly contractAddress: string;
|
|
1726
|
+
/**
|
|
1727
|
+
* The name of chain
|
|
1728
|
+
* @type {string}
|
|
1729
|
+
* @memberof TokensApiGetERC20Token
|
|
1730
|
+
*/
|
|
1731
|
+
readonly chainName: string;
|
|
1732
|
+
}
|
|
1733
|
+
/**
|
|
1734
|
+
* Request parameters for listERC20Tokens operation in TokensApi.
|
|
1735
|
+
* @export
|
|
1736
|
+
* @interface TokensApiListERC20TokensRequest
|
|
1737
|
+
*/
|
|
1738
|
+
interface TokensApiListERC20TokensRequest {
|
|
1739
|
+
/**
|
|
1740
|
+
* The name of chain
|
|
1741
|
+
* @type {string}
|
|
1742
|
+
* @memberof TokensApiListERC20Tokens
|
|
1743
|
+
*/
|
|
1744
|
+
readonly chainName: string;
|
|
1745
|
+
/**
|
|
1746
|
+
* Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
1747
|
+
* @type {string}
|
|
1748
|
+
* @memberof TokensApiListERC20Tokens
|
|
1749
|
+
*/
|
|
1750
|
+
readonly pageCursor?: string;
|
|
1751
|
+
/**
|
|
1752
|
+
* Maximum number of items to return
|
|
1753
|
+
* @type {number}
|
|
1754
|
+
* @memberof TokensApiListERC20Tokens
|
|
1755
|
+
*/
|
|
1756
|
+
readonly pageSize?: number;
|
|
1757
|
+
}
|
|
1758
|
+
|
|
1482
1759
|
interface OpenAPIError extends BasicAPIError {
|
|
1483
1760
|
code: string;
|
|
1484
1761
|
details: {
|
|
@@ -1505,6 +1782,7 @@ declare class BlockchainData {
|
|
|
1505
1782
|
private readonly collections;
|
|
1506
1783
|
private readonly nfts;
|
|
1507
1784
|
private readonly nftOwners;
|
|
1785
|
+
private readonly tokens;
|
|
1508
1786
|
constructor(moduleConfig: BlockchainDataModuleConfiguration$1);
|
|
1509
1787
|
/**
|
|
1510
1788
|
* List all activities
|
|
@@ -1569,6 +1847,20 @@ declare class BlockchainData {
|
|
|
1569
1847
|
* @throws {@link index.APIError}
|
|
1570
1848
|
*/
|
|
1571
1849
|
listNFTOwners(request: NftOwnersApiListNFTOwnersRequest): Promise<ListNFTOwnersResult>;
|
|
1850
|
+
/**
|
|
1851
|
+
* List ERC20 Token contracts
|
|
1852
|
+
* @param request - the request object containing the parameters to be provided in the API request
|
|
1853
|
+
* @returns a promise that resolves with a list of ERC20 Tokens
|
|
1854
|
+
* @throws {@link index.APIError}
|
|
1855
|
+
*/
|
|
1856
|
+
listTokens(request: TokensApiListERC20TokensRequest): Promise<ListTokensResult>;
|
|
1857
|
+
/**
|
|
1858
|
+
* Get details for an ERC20 Token by contract address
|
|
1859
|
+
* @param request - the request object containing the parameters to be provided in the API request
|
|
1860
|
+
* @returns a promise that resolves with a list of ERC20 Tokens
|
|
1861
|
+
* @throws {@link index.APIError}
|
|
1862
|
+
*/
|
|
1863
|
+
getToken(request: TokensApiGetERC20TokenRequest): Promise<GetTokenResult>;
|
|
1572
1864
|
}
|
|
1573
1865
|
|
|
1574
1866
|
declare enum Environment {
|