@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
package/dist/index.d.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
/// <reference types="node" />
|
|
3
3
|
import { BlockchainDataConfiguration, BlockchainDataModuleConfiguration as BlockchainDataModuleConfiguration$1, ProviderConfiguration as ProviderConfiguration$1 } from 'config';
|
|
4
4
|
import { OrderbookModuleConfiguration } from 'config/config';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { ListingResult, ListListingsResult } from 'openapi/sdk';
|
|
6
|
+
import { ListListingsParams, PrepareListingParams, PrepareListingResponse, CreateListingParams, FulfillOrderResponse, CancelOrderResponse as CancelOrderResponse$1 } from 'types';
|
|
7
7
|
|
|
8
8
|
declare enum Environment {
|
|
9
9
|
PRODUCTION = "production",
|
|
@@ -71,17 +71,14 @@ interface BasicAPIError {
|
|
|
71
71
|
* Do not edit the class manually.
|
|
72
72
|
*/
|
|
73
73
|
/**
|
|
74
|
-
* The
|
|
74
|
+
* The contract type for an NFT
|
|
75
75
|
* @export
|
|
76
76
|
* @enum {string}
|
|
77
77
|
*/
|
|
78
|
-
declare const
|
|
79
|
-
readonly
|
|
80
|
-
readonly Burn: "burn";
|
|
81
|
-
readonly Transfer: "transfer";
|
|
82
|
-
readonly Sale: "sale";
|
|
78
|
+
declare const NFTContractType: {
|
|
79
|
+
readonly Erc721: "ERC721";
|
|
83
80
|
};
|
|
84
|
-
type
|
|
81
|
+
type NFTContractType = typeof NFTContractType[keyof typeof NFTContractType];
|
|
85
82
|
|
|
86
83
|
/**
|
|
87
84
|
* Immutable X API
|
|
@@ -94,16 +91,53 @@ type ActivityType = typeof ActivityType[keyof typeof ActivityType];
|
|
|
94
91
|
* https://openapi-generator.tech
|
|
95
92
|
* Do not edit the class manually.
|
|
96
93
|
*/
|
|
94
|
+
|
|
97
95
|
/**
|
|
98
|
-
*
|
|
96
|
+
*
|
|
97
|
+
* @export
|
|
98
|
+
* @interface ActivityNFT
|
|
99
|
+
*/
|
|
100
|
+
interface ActivityNFT {
|
|
101
|
+
/**
|
|
102
|
+
*
|
|
103
|
+
* @type {NFTContractType}
|
|
104
|
+
* @memberof ActivityNFT
|
|
105
|
+
*/
|
|
106
|
+
'contract_type': NFTContractType;
|
|
107
|
+
/**
|
|
108
|
+
* The token contract address
|
|
109
|
+
* @type {string}
|
|
110
|
+
* @memberof ActivityNFT
|
|
111
|
+
*/
|
|
112
|
+
'contract_address': string;
|
|
113
|
+
/**
|
|
114
|
+
* An `uint256` token id as string
|
|
115
|
+
* @type {string}
|
|
116
|
+
* @memberof ActivityNFT
|
|
117
|
+
*/
|
|
118
|
+
'token_id': string;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Immutable X API
|
|
123
|
+
* Immutable Multi Rollup API
|
|
124
|
+
*
|
|
125
|
+
* The version of the OpenAPI document: 1.0.0
|
|
126
|
+
* Contact: support@immutable.com
|
|
127
|
+
*
|
|
128
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
129
|
+
* https://openapi-generator.tech
|
|
130
|
+
* Do not edit the class manually.
|
|
131
|
+
*/
|
|
132
|
+
/**
|
|
133
|
+
* The contract type for a token
|
|
99
134
|
* @export
|
|
100
135
|
* @enum {string}
|
|
101
136
|
*/
|
|
102
|
-
declare const
|
|
103
|
-
readonly Erc721: "ERC721";
|
|
137
|
+
declare const TokenContractType: {
|
|
104
138
|
readonly Erc20: "ERC20";
|
|
105
139
|
};
|
|
106
|
-
type
|
|
140
|
+
type TokenContractType = typeof TokenContractType[keyof typeof TokenContractType];
|
|
107
141
|
|
|
108
142
|
/**
|
|
109
143
|
* Immutable X API
|
|
@@ -120,33 +154,21 @@ type ContractType = typeof ContractType[keyof typeof ContractType];
|
|
|
120
154
|
/**
|
|
121
155
|
*
|
|
122
156
|
* @export
|
|
123
|
-
* @interface
|
|
157
|
+
* @interface ActivityToken
|
|
124
158
|
*/
|
|
125
|
-
interface
|
|
159
|
+
interface ActivityToken {
|
|
126
160
|
/**
|
|
127
161
|
*
|
|
128
|
-
* @type {
|
|
129
|
-
* @memberof
|
|
162
|
+
* @type {TokenContractType}
|
|
163
|
+
* @memberof ActivityToken
|
|
130
164
|
*/
|
|
131
|
-
'contract_type':
|
|
165
|
+
'contract_type': TokenContractType;
|
|
132
166
|
/**
|
|
133
|
-
* The
|
|
167
|
+
* The contract address
|
|
134
168
|
* @type {string}
|
|
135
|
-
* @memberof
|
|
169
|
+
* @memberof ActivityToken
|
|
136
170
|
*/
|
|
137
171
|
'contract_address': string;
|
|
138
|
-
/**
|
|
139
|
-
* The symbol of the token
|
|
140
|
-
* @type {string}
|
|
141
|
-
* @memberof ERC20
|
|
142
|
-
*/
|
|
143
|
-
'symbol': string | null;
|
|
144
|
-
/**
|
|
145
|
-
* The decimal places of a token
|
|
146
|
-
* @type {number}
|
|
147
|
-
* @memberof ERC20
|
|
148
|
-
*/
|
|
149
|
-
'decimals': number | null;
|
|
150
172
|
}
|
|
151
173
|
|
|
152
174
|
/**
|
|
@@ -162,30 +184,11 @@ interface ERC20$1 {
|
|
|
162
184
|
*/
|
|
163
185
|
|
|
164
186
|
/**
|
|
165
|
-
*
|
|
187
|
+
* @type ActivityAsset
|
|
188
|
+
* The contract and asset details for this activity
|
|
166
189
|
* @export
|
|
167
|
-
* @interface ERC721Token
|
|
168
190
|
*/
|
|
169
|
-
|
|
170
|
-
/**
|
|
171
|
-
*
|
|
172
|
-
* @type {ContractType}
|
|
173
|
-
* @memberof ERC721Token
|
|
174
|
-
*/
|
|
175
|
-
'contract_type': ContractType;
|
|
176
|
-
/**
|
|
177
|
-
* The token contract address
|
|
178
|
-
* @type {string}
|
|
179
|
-
* @memberof ERC721Token
|
|
180
|
-
*/
|
|
181
|
-
'contract_address': string;
|
|
182
|
-
/**
|
|
183
|
-
* An `uint256` token id as string
|
|
184
|
-
* @type {string}
|
|
185
|
-
* @memberof ERC721Token
|
|
186
|
-
*/
|
|
187
|
-
'token_id': string;
|
|
188
|
-
}
|
|
191
|
+
type ActivityAsset = ActivityNFT | ActivityToken;
|
|
189
192
|
|
|
190
193
|
/**
|
|
191
194
|
* Immutable X API
|
|
@@ -198,13 +201,18 @@ interface ERC721Token$1 {
|
|
|
198
201
|
* https://openapi-generator.tech
|
|
199
202
|
* Do not edit the class manually.
|
|
200
203
|
*/
|
|
201
|
-
|
|
202
204
|
/**
|
|
203
|
-
*
|
|
204
|
-
* The token details
|
|
205
|
+
* The activity type
|
|
205
206
|
* @export
|
|
207
|
+
* @enum {string}
|
|
206
208
|
*/
|
|
207
|
-
|
|
209
|
+
declare const ActivityType: {
|
|
210
|
+
readonly Mint: "mint";
|
|
211
|
+
readonly Burn: "burn";
|
|
212
|
+
readonly Transfer: "transfer";
|
|
213
|
+
readonly Sale: "sale";
|
|
214
|
+
};
|
|
215
|
+
type ActivityType = typeof ActivityType[keyof typeof ActivityType];
|
|
208
216
|
|
|
209
217
|
/**
|
|
210
218
|
* Immutable X API
|
|
@@ -231,23 +239,23 @@ interface Burn {
|
|
|
231
239
|
*/
|
|
232
240
|
'activity_type': ActivityType;
|
|
233
241
|
/**
|
|
234
|
-
* The account address the
|
|
242
|
+
* The account address the asset was transferred from
|
|
235
243
|
* @type {string}
|
|
236
244
|
* @memberof Burn
|
|
237
245
|
*/
|
|
238
246
|
'from': string;
|
|
239
247
|
/**
|
|
240
|
-
* The amount of
|
|
248
|
+
* The amount of assets burnt
|
|
241
249
|
* @type {string}
|
|
242
250
|
* @memberof Burn
|
|
243
251
|
*/
|
|
244
252
|
'amount': string;
|
|
245
253
|
/**
|
|
246
254
|
*
|
|
247
|
-
* @type {
|
|
255
|
+
* @type {ActivityAsset}
|
|
248
256
|
* @memberof Burn
|
|
249
257
|
*/
|
|
250
|
-
'
|
|
258
|
+
'asset': ActivityAsset;
|
|
251
259
|
}
|
|
252
260
|
|
|
253
261
|
/**
|
|
@@ -275,24 +283,65 @@ interface Mint$1 {
|
|
|
275
283
|
*/
|
|
276
284
|
'activity_type': ActivityType;
|
|
277
285
|
/**
|
|
278
|
-
* The account address
|
|
286
|
+
* The account address the asset was minted to
|
|
279
287
|
* @type {string}
|
|
280
288
|
* @memberof Mint
|
|
281
289
|
*/
|
|
282
290
|
'to': string;
|
|
283
291
|
/**
|
|
284
|
-
* The minted
|
|
292
|
+
* The minted amount
|
|
285
293
|
* @type {string}
|
|
286
294
|
* @memberof Mint
|
|
287
295
|
*/
|
|
288
296
|
'amount': string;
|
|
289
297
|
/**
|
|
290
298
|
*
|
|
291
|
-
* @type {
|
|
299
|
+
* @type {ActivityAsset}
|
|
292
300
|
* @memberof Mint
|
|
293
301
|
*/
|
|
294
|
-
'
|
|
302
|
+
'asset': ActivityAsset;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* Immutable X API
|
|
307
|
+
* Immutable Multi Rollup API
|
|
308
|
+
*
|
|
309
|
+
* The version of the OpenAPI document: 1.0.0
|
|
310
|
+
* Contact: support@immutable.com
|
|
311
|
+
*
|
|
312
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
313
|
+
* https://openapi-generator.tech
|
|
314
|
+
* Do not edit the class manually.
|
|
315
|
+
*/
|
|
316
|
+
/**
|
|
317
|
+
*
|
|
318
|
+
* @export
|
|
319
|
+
* @interface SaleFee
|
|
320
|
+
*/
|
|
321
|
+
interface SaleFee {
|
|
322
|
+
/**
|
|
323
|
+
* Fee payable to recipient upon settlement
|
|
324
|
+
* @type {string}
|
|
325
|
+
* @memberof SaleFee
|
|
326
|
+
*/
|
|
327
|
+
'amount'?: string;
|
|
328
|
+
/**
|
|
329
|
+
* Fee type
|
|
330
|
+
* @type {string}
|
|
331
|
+
* @memberof SaleFee
|
|
332
|
+
*/
|
|
333
|
+
'type'?: SaleFeeTypeEnum;
|
|
334
|
+
/**
|
|
335
|
+
* Wallet address of fee recipient
|
|
336
|
+
* @type {string}
|
|
337
|
+
* @memberof SaleFee
|
|
338
|
+
*/
|
|
339
|
+
'recipient'?: string;
|
|
295
340
|
}
|
|
341
|
+
declare const SaleFeeTypeEnum: {
|
|
342
|
+
readonly Royalty: "ROYALTY";
|
|
343
|
+
};
|
|
344
|
+
type SaleFeeTypeEnum = typeof SaleFeeTypeEnum[keyof typeof SaleFeeTypeEnum];
|
|
296
345
|
|
|
297
346
|
/**
|
|
298
347
|
* Immutable X API
|
|
@@ -308,13 +357,13 @@ interface Mint$1 {
|
|
|
308
357
|
/**
|
|
309
358
|
*
|
|
310
359
|
* @export
|
|
311
|
-
* @interface
|
|
360
|
+
* @interface ActivityNativeToken
|
|
312
361
|
*/
|
|
313
|
-
interface
|
|
362
|
+
interface ActivityNativeToken {
|
|
314
363
|
/**
|
|
315
364
|
* The token symbol
|
|
316
365
|
* @type {string}
|
|
317
|
-
* @memberof
|
|
366
|
+
* @memberof ActivityNativeToken
|
|
318
367
|
*/
|
|
319
368
|
'symbol': string;
|
|
320
369
|
}
|
|
@@ -332,11 +381,55 @@ interface NativeToken {
|
|
|
332
381
|
*/
|
|
333
382
|
|
|
334
383
|
/**
|
|
335
|
-
* @type
|
|
384
|
+
* @type SalePaymentToken
|
|
336
385
|
* The type of payment token
|
|
337
386
|
* @export
|
|
338
387
|
*/
|
|
339
|
-
type
|
|
388
|
+
type SalePaymentToken = ActivityNativeToken | ActivityToken;
|
|
389
|
+
|
|
390
|
+
/**
|
|
391
|
+
* Immutable X API
|
|
392
|
+
* Immutable Multi Rollup API
|
|
393
|
+
*
|
|
394
|
+
* The version of the OpenAPI document: 1.0.0
|
|
395
|
+
* Contact: support@immutable.com
|
|
396
|
+
*
|
|
397
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
398
|
+
* https://openapi-generator.tech
|
|
399
|
+
* Do not edit the class manually.
|
|
400
|
+
*/
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
*
|
|
404
|
+
* @export
|
|
405
|
+
* @interface SalePayment
|
|
406
|
+
*/
|
|
407
|
+
interface SalePayment {
|
|
408
|
+
/**
|
|
409
|
+
*
|
|
410
|
+
* @type {SalePaymentToken}
|
|
411
|
+
* @memberof SalePayment
|
|
412
|
+
*/
|
|
413
|
+
'token': SalePaymentToken;
|
|
414
|
+
/**
|
|
415
|
+
* The base price of the sale not including any fees
|
|
416
|
+
* @type {string}
|
|
417
|
+
* @memberof SalePayment
|
|
418
|
+
*/
|
|
419
|
+
'price_excluding_fees': string;
|
|
420
|
+
/**
|
|
421
|
+
* The total price of the sale. Includes the sum of all fees
|
|
422
|
+
* @type {string}
|
|
423
|
+
* @memberof SalePayment
|
|
424
|
+
*/
|
|
425
|
+
'price_including_fees': string;
|
|
426
|
+
/**
|
|
427
|
+
* The fees associated with this sale
|
|
428
|
+
* @type {Array<SaleFee>}
|
|
429
|
+
* @memberof SalePayment
|
|
430
|
+
*/
|
|
431
|
+
'fees': Array<SaleFee>;
|
|
432
|
+
}
|
|
340
433
|
|
|
341
434
|
/**
|
|
342
435
|
* Immutable X API
|
|
@@ -373,37 +466,25 @@ interface NFTSale {
|
|
|
373
466
|
* @type {string}
|
|
374
467
|
* @memberof NFTSale
|
|
375
468
|
*/
|
|
376
|
-
'
|
|
469
|
+
'to': string;
|
|
377
470
|
/**
|
|
378
471
|
* The account address of seller
|
|
379
472
|
* @type {string}
|
|
380
473
|
* @memberof NFTSale
|
|
381
474
|
*/
|
|
382
|
-
'
|
|
383
|
-
/**
|
|
384
|
-
* The quantity of tokens sold
|
|
385
|
-
* @type {number}
|
|
386
|
-
* @memberof NFTSale
|
|
387
|
-
*/
|
|
388
|
-
'quantity': number;
|
|
475
|
+
'from': string;
|
|
389
476
|
/**
|
|
390
477
|
*
|
|
391
|
-
* @type {
|
|
392
|
-
* @memberof NFTSale
|
|
393
|
-
*/
|
|
394
|
-
'token': ERC721Token$1;
|
|
395
|
-
/**
|
|
396
|
-
* The amount of payment
|
|
397
|
-
* @type {string}
|
|
478
|
+
* @type {Array<ActivityNFT>}
|
|
398
479
|
* @memberof NFTSale
|
|
399
480
|
*/
|
|
400
|
-
'
|
|
481
|
+
'asset': Array<ActivityNFT>;
|
|
401
482
|
/**
|
|
402
483
|
*
|
|
403
|
-
* @type {
|
|
484
|
+
* @type {SalePayment}
|
|
404
485
|
* @memberof NFTSale
|
|
405
486
|
*/
|
|
406
|
-
'
|
|
487
|
+
'payment': SalePayment;
|
|
407
488
|
}
|
|
408
489
|
|
|
409
490
|
/**
|
|
@@ -431,29 +512,29 @@ interface Transfer$1 {
|
|
|
431
512
|
*/
|
|
432
513
|
'activity_type': ActivityType;
|
|
433
514
|
/**
|
|
434
|
-
* The account address the
|
|
515
|
+
* The account address the asset was transferred from
|
|
435
516
|
* @type {string}
|
|
436
517
|
* @memberof Transfer
|
|
437
518
|
*/
|
|
438
519
|
'from': string;
|
|
439
520
|
/**
|
|
440
|
-
* The account address the
|
|
521
|
+
* The account address the asset was transferred to
|
|
441
522
|
* @type {string}
|
|
442
523
|
* @memberof Transfer
|
|
443
524
|
*/
|
|
444
525
|
'to': string;
|
|
445
526
|
/**
|
|
446
|
-
* The amount of
|
|
527
|
+
* The amount of assets transferred
|
|
447
528
|
* @type {string}
|
|
448
529
|
* @memberof Transfer
|
|
449
530
|
*/
|
|
450
531
|
'amount': string;
|
|
451
532
|
/**
|
|
452
533
|
*
|
|
453
|
-
* @type {
|
|
534
|
+
* @type {ActivityAsset}
|
|
454
535
|
* @memberof Transfer
|
|
455
536
|
*/
|
|
456
|
-
'
|
|
537
|
+
'asset': ActivityAsset;
|
|
457
538
|
}
|
|
458
539
|
|
|
459
540
|
/**
|
|
@@ -605,6 +686,49 @@ interface Activity {
|
|
|
605
686
|
'blockchain_metadata': BlockchainMetadata | null;
|
|
606
687
|
}
|
|
607
688
|
|
|
689
|
+
/**
|
|
690
|
+
* Immutable X API
|
|
691
|
+
* Immutable Multi Rollup API
|
|
692
|
+
*
|
|
693
|
+
* The version of the OpenAPI document: 1.0.0
|
|
694
|
+
* Contact: support@immutable.com
|
|
695
|
+
*
|
|
696
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
697
|
+
* https://openapi-generator.tech
|
|
698
|
+
* Do not edit the class manually.
|
|
699
|
+
*/
|
|
700
|
+
/**
|
|
701
|
+
*
|
|
702
|
+
* @export
|
|
703
|
+
* @interface ChainWithDetailsAllOf
|
|
704
|
+
*/
|
|
705
|
+
interface ChainWithDetailsAllOf {
|
|
706
|
+
/**
|
|
707
|
+
* URL for RPC node
|
|
708
|
+
* @type {string}
|
|
709
|
+
* @memberof ChainWithDetailsAllOf
|
|
710
|
+
*/
|
|
711
|
+
'rpc_url': string | null;
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
/**
|
|
715
|
+
* Immutable X API
|
|
716
|
+
* Immutable Multi Rollup API
|
|
717
|
+
*
|
|
718
|
+
* The version of the OpenAPI document: 1.0.0
|
|
719
|
+
* Contact: support@immutable.com
|
|
720
|
+
*
|
|
721
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
722
|
+
* https://openapi-generator.tech
|
|
723
|
+
* Do not edit the class manually.
|
|
724
|
+
*/
|
|
725
|
+
|
|
726
|
+
/**
|
|
727
|
+
* @type ChainWithDetails
|
|
728
|
+
* @export
|
|
729
|
+
*/
|
|
730
|
+
type ChainWithDetails = Chain & ChainWithDetailsAllOf;
|
|
731
|
+
|
|
608
732
|
/**
|
|
609
733
|
* Immutable X API
|
|
610
734
|
* Immutable Multi Rollup API
|
|
@@ -897,12 +1021,6 @@ interface NFTMetadataAttribute {
|
|
|
897
1021
|
* @memberof NFTMetadataAttribute
|
|
898
1022
|
*/
|
|
899
1023
|
'value': string;
|
|
900
|
-
/**
|
|
901
|
-
* The metadata trait display type
|
|
902
|
-
* @type {string}
|
|
903
|
-
* @memberof NFTMetadataAttribute
|
|
904
|
-
*/
|
|
905
|
-
'display_type': string;
|
|
906
1024
|
}
|
|
907
1025
|
|
|
908
1026
|
/**
|
|
@@ -976,6 +1094,88 @@ interface GetNFTResult {
|
|
|
976
1094
|
'result': NFTWithMetadataAttributes;
|
|
977
1095
|
}
|
|
978
1096
|
|
|
1097
|
+
/**
|
|
1098
|
+
* Immutable X API
|
|
1099
|
+
* Immutable Multi Rollup API
|
|
1100
|
+
*
|
|
1101
|
+
* The version of the OpenAPI document: 1.0.0
|
|
1102
|
+
* Contact: support@immutable.com
|
|
1103
|
+
*
|
|
1104
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1105
|
+
* https://openapi-generator.tech
|
|
1106
|
+
* Do not edit the class manually.
|
|
1107
|
+
*/
|
|
1108
|
+
|
|
1109
|
+
/**
|
|
1110
|
+
*
|
|
1111
|
+
* @export
|
|
1112
|
+
* @interface Token
|
|
1113
|
+
*/
|
|
1114
|
+
interface Token$1 {
|
|
1115
|
+
/**
|
|
1116
|
+
*
|
|
1117
|
+
* @type {Chain}
|
|
1118
|
+
* @memberof Token
|
|
1119
|
+
*/
|
|
1120
|
+
'chain': Chain;
|
|
1121
|
+
/**
|
|
1122
|
+
*
|
|
1123
|
+
* @type {string}
|
|
1124
|
+
* @memberof Token
|
|
1125
|
+
*/
|
|
1126
|
+
'contract_address': string;
|
|
1127
|
+
/**
|
|
1128
|
+
*
|
|
1129
|
+
* @type {string}
|
|
1130
|
+
* @memberof Token
|
|
1131
|
+
*/
|
|
1132
|
+
'symbol': string | null;
|
|
1133
|
+
/**
|
|
1134
|
+
*
|
|
1135
|
+
* @type {number}
|
|
1136
|
+
* @memberof Token
|
|
1137
|
+
*/
|
|
1138
|
+
'decimals': number | null;
|
|
1139
|
+
/**
|
|
1140
|
+
*
|
|
1141
|
+
* @type {string}
|
|
1142
|
+
* @memberof Token
|
|
1143
|
+
*/
|
|
1144
|
+
'image_url': string | null;
|
|
1145
|
+
/**
|
|
1146
|
+
*
|
|
1147
|
+
* @type {string}
|
|
1148
|
+
* @memberof Token
|
|
1149
|
+
*/
|
|
1150
|
+
'name': string | null;
|
|
1151
|
+
}
|
|
1152
|
+
|
|
1153
|
+
/**
|
|
1154
|
+
* Immutable X API
|
|
1155
|
+
* Immutable Multi Rollup API
|
|
1156
|
+
*
|
|
1157
|
+
* The version of the OpenAPI document: 1.0.0
|
|
1158
|
+
* Contact: support@immutable.com
|
|
1159
|
+
*
|
|
1160
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1161
|
+
* https://openapi-generator.tech
|
|
1162
|
+
* Do not edit the class manually.
|
|
1163
|
+
*/
|
|
1164
|
+
|
|
1165
|
+
/**
|
|
1166
|
+
* Single Token
|
|
1167
|
+
* @export
|
|
1168
|
+
* @interface GetTokenResult
|
|
1169
|
+
*/
|
|
1170
|
+
interface GetTokenResult {
|
|
1171
|
+
/**
|
|
1172
|
+
*
|
|
1173
|
+
* @type {Token}
|
|
1174
|
+
* @memberof GetTokenResult
|
|
1175
|
+
*/
|
|
1176
|
+
'result': Token$1;
|
|
1177
|
+
}
|
|
1178
|
+
|
|
979
1179
|
/**
|
|
980
1180
|
* Immutable X API
|
|
981
1181
|
* Immutable Multi Rollup API
|
|
@@ -994,17 +1194,17 @@ interface GetNFTResult {
|
|
|
994
1194
|
*/
|
|
995
1195
|
interface Page {
|
|
996
1196
|
/**
|
|
997
|
-
* First item as
|
|
1197
|
+
* First item as an encoded string
|
|
998
1198
|
* @type {string}
|
|
999
1199
|
* @memberof Page
|
|
1000
1200
|
*/
|
|
1001
|
-
'previous_cursor': string;
|
|
1201
|
+
'previous_cursor': string | null;
|
|
1002
1202
|
/**
|
|
1003
|
-
* Last item as
|
|
1203
|
+
* Last item as an encoded string
|
|
1004
1204
|
* @type {string}
|
|
1005
1205
|
* @memberof Page
|
|
1006
1206
|
*/
|
|
1007
|
-
'next_cursor': string;
|
|
1207
|
+
'next_cursor': string | null;
|
|
1008
1208
|
}
|
|
1009
1209
|
|
|
1010
1210
|
/**
|
|
@@ -1059,10 +1259,10 @@ interface ListActivitiesResult {
|
|
|
1059
1259
|
interface ListChainsResult {
|
|
1060
1260
|
/**
|
|
1061
1261
|
* List of chains
|
|
1062
|
-
* @type {Array<
|
|
1262
|
+
* @type {Array<ChainWithDetails>}
|
|
1063
1263
|
* @memberof ListChainsResult
|
|
1064
1264
|
*/
|
|
1065
|
-
'result': Array<
|
|
1265
|
+
'result': Array<ChainWithDetails>;
|
|
1066
1266
|
/**
|
|
1067
1267
|
*
|
|
1068
1268
|
* @type {Page}
|
|
@@ -1217,6 +1417,38 @@ interface ListNFTsResult {
|
|
|
1217
1417
|
'page': Page;
|
|
1218
1418
|
}
|
|
1219
1419
|
|
|
1420
|
+
/**
|
|
1421
|
+
* Immutable X API
|
|
1422
|
+
* Immutable Multi Rollup API
|
|
1423
|
+
*
|
|
1424
|
+
* The version of the OpenAPI document: 1.0.0
|
|
1425
|
+
* Contact: support@immutable.com
|
|
1426
|
+
*
|
|
1427
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1428
|
+
* https://openapi-generator.tech
|
|
1429
|
+
* Do not edit the class manually.
|
|
1430
|
+
*/
|
|
1431
|
+
|
|
1432
|
+
/**
|
|
1433
|
+
*
|
|
1434
|
+
* @export
|
|
1435
|
+
* @interface ListTokensResult
|
|
1436
|
+
*/
|
|
1437
|
+
interface ListTokensResult {
|
|
1438
|
+
/**
|
|
1439
|
+
* List of tokens
|
|
1440
|
+
* @type {Array<Token>}
|
|
1441
|
+
* @memberof ListTokensResult
|
|
1442
|
+
*/
|
|
1443
|
+
'result': Array<Token$1>;
|
|
1444
|
+
/**
|
|
1445
|
+
*
|
|
1446
|
+
* @type {Page}
|
|
1447
|
+
* @memberof ListTokensResult
|
|
1448
|
+
*/
|
|
1449
|
+
'page': Page;
|
|
1450
|
+
}
|
|
1451
|
+
|
|
1220
1452
|
/**
|
|
1221
1453
|
* Request parameters for getActivity operation in ActivitiesApi.
|
|
1222
1454
|
* @export
|
|
@@ -1291,7 +1523,7 @@ interface ActivitiesApiListActivitiesRequest {
|
|
|
1291
1523
|
*/
|
|
1292
1524
|
readonly transactionHash?: string;
|
|
1293
1525
|
/**
|
|
1294
|
-
*
|
|
1526
|
+
* Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
1295
1527
|
* @type {string}
|
|
1296
1528
|
* @memberof ActivitiesApiListActivities
|
|
1297
1529
|
*/
|
|
@@ -1311,7 +1543,7 @@ interface ActivitiesApiListActivitiesRequest {
|
|
|
1311
1543
|
*/
|
|
1312
1544
|
interface ChainsApiListChainsRequest {
|
|
1313
1545
|
/**
|
|
1314
|
-
*
|
|
1546
|
+
* Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
1315
1547
|
* @type {string}
|
|
1316
1548
|
* @memberof ChainsApiListChains
|
|
1317
1549
|
*/
|
|
@@ -1356,7 +1588,7 @@ interface CollectionsApiListCollectionsRequest$1 {
|
|
|
1356
1588
|
*/
|
|
1357
1589
|
readonly chainName: string;
|
|
1358
1590
|
/**
|
|
1359
|
-
*
|
|
1591
|
+
* Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
1360
1592
|
* @type {string}
|
|
1361
1593
|
* @memberof CollectionsApiListCollections
|
|
1362
1594
|
*/
|
|
@@ -1394,7 +1626,7 @@ interface NftOwnersApiListNFTOwnersRequest {
|
|
|
1394
1626
|
*/
|
|
1395
1627
|
readonly chainName: string;
|
|
1396
1628
|
/**
|
|
1397
|
-
*
|
|
1629
|
+
* Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
1398
1630
|
* @type {string}
|
|
1399
1631
|
* @memberof NftOwnersApiListNFTOwners
|
|
1400
1632
|
*/
|
|
@@ -1451,7 +1683,7 @@ interface NftsApiListNFTsRequest {
|
|
|
1451
1683
|
*/
|
|
1452
1684
|
readonly chainName: string;
|
|
1453
1685
|
/**
|
|
1454
|
-
*
|
|
1686
|
+
* Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
1455
1687
|
* @type {string}
|
|
1456
1688
|
* @memberof NftsApiListNFTs
|
|
1457
1689
|
*/
|
|
@@ -1464,39 +1696,84 @@ interface NftsApiListNFTsRequest {
|
|
|
1464
1696
|
readonly pageSize?: number;
|
|
1465
1697
|
}
|
|
1466
1698
|
/**
|
|
1467
|
-
* Request parameters for listNFTsByAccountAddress operation in NftsApi.
|
|
1699
|
+
* Request parameters for listNFTsByAccountAddress operation in NftsApi.
|
|
1700
|
+
* @export
|
|
1701
|
+
* @interface NftsApiListNFTsByAccountAddressRequest
|
|
1702
|
+
*/
|
|
1703
|
+
interface NftsApiListNFTsByAccountAddressRequest {
|
|
1704
|
+
/**
|
|
1705
|
+
* Account address
|
|
1706
|
+
* @type {string}
|
|
1707
|
+
* @memberof NftsApiListNFTsByAccountAddress
|
|
1708
|
+
*/
|
|
1709
|
+
readonly accountAddress: string;
|
|
1710
|
+
/**
|
|
1711
|
+
* The name of chain
|
|
1712
|
+
* @type {string}
|
|
1713
|
+
* @memberof NftsApiListNFTsByAccountAddress
|
|
1714
|
+
*/
|
|
1715
|
+
readonly chainName: string;
|
|
1716
|
+
/**
|
|
1717
|
+
* The address of contract
|
|
1718
|
+
* @type {string}
|
|
1719
|
+
* @memberof NftsApiListNFTsByAccountAddress
|
|
1720
|
+
*/
|
|
1721
|
+
readonly contractAddress?: string;
|
|
1722
|
+
/**
|
|
1723
|
+
* Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
1724
|
+
* @type {string}
|
|
1725
|
+
* @memberof NftsApiListNFTsByAccountAddress
|
|
1726
|
+
*/
|
|
1727
|
+
readonly pageCursor?: string;
|
|
1728
|
+
/**
|
|
1729
|
+
* Maximum number of items to return
|
|
1730
|
+
* @type {number}
|
|
1731
|
+
* @memberof NftsApiListNFTsByAccountAddress
|
|
1732
|
+
*/
|
|
1733
|
+
readonly pageSize?: number;
|
|
1734
|
+
}
|
|
1735
|
+
|
|
1736
|
+
/**
|
|
1737
|
+
* Request parameters for getERC20Token operation in TokensApi.
|
|
1468
1738
|
* @export
|
|
1469
|
-
* @interface
|
|
1739
|
+
* @interface TokensApiGetERC20TokenRequest
|
|
1470
1740
|
*/
|
|
1471
|
-
interface
|
|
1741
|
+
interface TokensApiGetERC20TokenRequest {
|
|
1472
1742
|
/**
|
|
1473
|
-
*
|
|
1743
|
+
* The address of contract
|
|
1474
1744
|
* @type {string}
|
|
1475
|
-
* @memberof
|
|
1745
|
+
* @memberof TokensApiGetERC20Token
|
|
1476
1746
|
*/
|
|
1477
|
-
readonly
|
|
1747
|
+
readonly contractAddress: string;
|
|
1478
1748
|
/**
|
|
1479
1749
|
* The name of chain
|
|
1480
1750
|
* @type {string}
|
|
1481
|
-
* @memberof
|
|
1751
|
+
* @memberof TokensApiGetERC20Token
|
|
1482
1752
|
*/
|
|
1483
1753
|
readonly chainName: string;
|
|
1754
|
+
}
|
|
1755
|
+
/**
|
|
1756
|
+
* Request parameters for listERC20Tokens operation in TokensApi.
|
|
1757
|
+
* @export
|
|
1758
|
+
* @interface TokensApiListERC20TokensRequest
|
|
1759
|
+
*/
|
|
1760
|
+
interface TokensApiListERC20TokensRequest {
|
|
1484
1761
|
/**
|
|
1485
|
-
* The
|
|
1762
|
+
* The name of chain
|
|
1486
1763
|
* @type {string}
|
|
1487
|
-
* @memberof
|
|
1764
|
+
* @memberof TokensApiListERC20Tokens
|
|
1488
1765
|
*/
|
|
1489
|
-
readonly
|
|
1766
|
+
readonly chainName: string;
|
|
1490
1767
|
/**
|
|
1491
|
-
*
|
|
1768
|
+
* Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
1492
1769
|
* @type {string}
|
|
1493
|
-
* @memberof
|
|
1770
|
+
* @memberof TokensApiListERC20Tokens
|
|
1494
1771
|
*/
|
|
1495
1772
|
readonly pageCursor?: string;
|
|
1496
1773
|
/**
|
|
1497
1774
|
* Maximum number of items to return
|
|
1498
1775
|
* @type {number}
|
|
1499
|
-
* @memberof
|
|
1776
|
+
* @memberof TokensApiListERC20Tokens
|
|
1500
1777
|
*/
|
|
1501
1778
|
readonly pageSize?: number;
|
|
1502
1779
|
}
|
|
@@ -1527,6 +1804,7 @@ declare class BlockchainData {
|
|
|
1527
1804
|
private readonly collections;
|
|
1528
1805
|
private readonly nfts;
|
|
1529
1806
|
private readonly nftOwners;
|
|
1807
|
+
private readonly tokens;
|
|
1530
1808
|
constructor(moduleConfig: BlockchainDataModuleConfiguration$1);
|
|
1531
1809
|
/**
|
|
1532
1810
|
* List all activities
|
|
@@ -1591,6 +1869,20 @@ declare class BlockchainData {
|
|
|
1591
1869
|
* @throws {@link index.APIError}
|
|
1592
1870
|
*/
|
|
1593
1871
|
listNFTOwners(request: NftOwnersApiListNFTOwnersRequest): Promise<ListNFTOwnersResult>;
|
|
1872
|
+
/**
|
|
1873
|
+
* List ERC20 Token contracts
|
|
1874
|
+
* @param request - the request object containing the parameters to be provided in the API request
|
|
1875
|
+
* @returns a promise that resolves with a list of ERC20 Tokens
|
|
1876
|
+
* @throws {@link index.APIError}
|
|
1877
|
+
*/
|
|
1878
|
+
listTokens(request: TokensApiListERC20TokensRequest): Promise<ListTokensResult>;
|
|
1879
|
+
/**
|
|
1880
|
+
* Get details for an ERC20 Token by contract address
|
|
1881
|
+
* @param request - the request object containing the parameters to be provided in the API request
|
|
1882
|
+
* @returns a promise that resolves with a list of ERC20 Tokens
|
|
1883
|
+
* @throws {@link index.APIError}
|
|
1884
|
+
*/
|
|
1885
|
+
getToken(request: TokensApiGetERC20TokenRequest): Promise<GetTokenResult>;
|
|
1594
1886
|
}
|
|
1595
1887
|
|
|
1596
1888
|
interface APIConfigurationParams {
|
|
@@ -12466,12 +12758,12 @@ interface PassportModuleConfiguration extends ModuleConfiguration<PassportOverri
|
|
|
12466
12758
|
|
|
12467
12759
|
declare class Passport {
|
|
12468
12760
|
private readonly authManager;
|
|
12469
|
-
private readonly magicAdapter;
|
|
12470
12761
|
private readonly config;
|
|
12471
|
-
private readonly immutableXClient;
|
|
12472
12762
|
private readonly confirmationScreen;
|
|
12763
|
+
private readonly immutableXClient;
|
|
12764
|
+
private readonly magicAdapter;
|
|
12765
|
+
private readonly passportImxProviderFactory;
|
|
12473
12766
|
constructor(passportModuleConfiguration: PassportModuleConfiguration);
|
|
12474
|
-
private getImxProvider;
|
|
12475
12767
|
connectImxSilent(): Promise<IMXProvider | null>;
|
|
12476
12768
|
connectImx(): Promise<IMXProvider>;
|
|
12477
12769
|
loginCallback(): Promise<void>;
|
|
@@ -12479,7 +12771,6 @@ declare class Passport {
|
|
|
12479
12771
|
getUserInfo(): Promise<UserProfile | undefined>;
|
|
12480
12772
|
getIdToken(): Promise<string | undefined>;
|
|
12481
12773
|
getAccessToken(): Promise<string | undefined>;
|
|
12482
|
-
private registerUser;
|
|
12483
12774
|
}
|
|
12484
12775
|
|
|
12485
12776
|
/**
|
|
@@ -12494,63 +12785,70 @@ declare class Orderbook {
|
|
|
12494
12785
|
constructor(config: OrderbookModuleConfiguration);
|
|
12495
12786
|
/**
|
|
12496
12787
|
* Get an order by ID
|
|
12497
|
-
* @param {string}
|
|
12498
|
-
* @return {
|
|
12788
|
+
* @param {string} listingId - The listingId to find.
|
|
12789
|
+
* @return {ListingResult} The returned order result.
|
|
12499
12790
|
*/
|
|
12500
|
-
|
|
12791
|
+
getListing(listingId: string): Promise<ListingResult>;
|
|
12501
12792
|
/**
|
|
12502
12793
|
* List orders. This method is used to get a list of orders filtered by conditions specified
|
|
12503
12794
|
* in the params object.
|
|
12504
12795
|
* @param {ListOrderParams} listOrderParams - Filtering, ordering and page parameters.
|
|
12505
12796
|
* @return {Orders} The paged orders.
|
|
12506
12797
|
*/
|
|
12507
|
-
|
|
12798
|
+
listListings(listOrderParams: ListListingsParams): Promise<ListListingsResult>;
|
|
12508
12799
|
/**
|
|
12509
12800
|
* Get required transactions and messages for signing prior to creating a listing
|
|
12510
|
-
* through the
|
|
12801
|
+
* through the createListing method
|
|
12511
12802
|
* @param {PrepareListingParams} prepareListingParams - Details about the listing to be created.
|
|
12512
12803
|
* @return {PrepareListingResponse} PrepareListingResponse includes
|
|
12513
12804
|
* the unsigned approval transaction, the typed order message for signing and
|
|
12514
|
-
* the order components that can be submitted to `
|
|
12805
|
+
* the order components that can be submitted to `createListing` with a signature.
|
|
12515
12806
|
*/
|
|
12516
12807
|
prepareListing({ offerer, listingItem, considerationItem, orderExpiry, }: PrepareListingParams): Promise<PrepareListingResponse>;
|
|
12517
12808
|
/**
|
|
12518
12809
|
* Create an order
|
|
12519
|
-
* @param {
|
|
12520
|
-
* @return {
|
|
12810
|
+
* @param {CreateListingParams} createListingParams - create an order with the given params.
|
|
12811
|
+
* @return {ListingResult} The result of the order created in the Immutable services.
|
|
12521
12812
|
*/
|
|
12522
|
-
|
|
12813
|
+
createListing(createListingParams: CreateListingParams): Promise<ListingResult>;
|
|
12523
12814
|
/**
|
|
12524
12815
|
* Get unsigned transactions that can be submitted to fulfil an open order. If the approval
|
|
12525
12816
|
* transaction exists it must be signed and submitted to the chain before the fulfilment
|
|
12526
12817
|
* transaction can be submitted or it will be reverted.
|
|
12527
|
-
* @param {string}
|
|
12818
|
+
* @param {string} listingId - The listingId to fulfil.
|
|
12528
12819
|
* @param {string} fulfillerAddress - The address of the account fulfilling the order.
|
|
12529
|
-
* @return {
|
|
12820
|
+
* @return {FulfillOrderResponse} Approval and fulfilment transactions.
|
|
12530
12821
|
*/
|
|
12531
|
-
fulfillOrder(
|
|
12822
|
+
fulfillOrder(listingId: string, fulfillerAddress: string): Promise<FulfillOrderResponse>;
|
|
12532
12823
|
/**
|
|
12533
12824
|
* Get an unsigned cancel order transaction. Orders can only be cancelled by
|
|
12534
12825
|
* the account that created them.
|
|
12535
|
-
* @param {string}
|
|
12826
|
+
* @param {string} listingId - The listingId to cancel.
|
|
12536
12827
|
* @param {string} accountAddress - The address of the account cancelling the order.
|
|
12537
12828
|
* @return {CancelOrderResponse} The unsigned cancel order transaction
|
|
12538
12829
|
*/
|
|
12539
|
-
cancelOrder(
|
|
12830
|
+
cancelOrder(listingId: string, accountAddress: string): Promise<CancelOrderResponse$1>;
|
|
12540
12831
|
}
|
|
12541
12832
|
|
|
12542
12833
|
declare const module = "orderbook";
|
|
12543
12834
|
|
|
12835
|
+
/**
|
|
12836
|
+
* @typedef {string} Address - Represents an Ethereum address.
|
|
12837
|
+
*/
|
|
12838
|
+
type Address = string;
|
|
12839
|
+
/**
|
|
12840
|
+
* @typedef {Address | 'NATIVE'} FungibleToken - Represents a fungible token, either an ERC20 token address or the native token.
|
|
12841
|
+
*/
|
|
12842
|
+
type FungibleToken = Address | 'NATIVE';
|
|
12843
|
+
|
|
12544
12844
|
/**
|
|
12545
12845
|
* Enum representing the supported chains with their corresponding IDs.
|
|
12546
12846
|
*/
|
|
12547
12847
|
declare enum ChainId {
|
|
12548
12848
|
ETHEREUM = 1,
|
|
12549
|
-
SEPOLIA = 11155111,
|
|
12550
|
-
IMTBL_ZKEVM_DEVNET = 13373,
|
|
12551
12849
|
IMTBL_ZKEVM_TESTNET = 13372,
|
|
12552
|
-
|
|
12553
|
-
|
|
12850
|
+
SEPOLIA = 11155111,
|
|
12851
|
+
IMTBL_ZKEVM_DEVNET = 13383
|
|
12554
12852
|
}
|
|
12555
12853
|
/**
|
|
12556
12854
|
* Interface representing token information.
|
|
@@ -12569,7 +12867,6 @@ interface TokenInfo {
|
|
|
12569
12867
|
}
|
|
12570
12868
|
/**
|
|
12571
12869
|
* Interface representing the parameters for {@link Checkout.getBalance}.
|
|
12572
|
-
* @property {@link Web3Provider} provider - The provider to connect to the network.
|
|
12573
12870
|
* @property {string} walletAddress - The wallet address.
|
|
12574
12871
|
* @property {string | undefined} contractAddress - The contract address of the token.
|
|
12575
12872
|
*/
|
|
@@ -12591,7 +12888,6 @@ interface GetBalanceResult {
|
|
|
12591
12888
|
}
|
|
12592
12889
|
/**
|
|
12593
12890
|
* Interface representing the parameters for {@link Checkout.getAllBalances}.
|
|
12594
|
-
* @property {Web3Provider} provider - The provider to connect to the network.
|
|
12595
12891
|
* @property {string} walletAddress - The wallet address.
|
|
12596
12892
|
* @property {ChainId} chainId - The ID of the network.
|
|
12597
12893
|
*/
|
|
@@ -12630,13 +12926,9 @@ interface NetworkInfo {
|
|
|
12630
12926
|
declare enum ConnectionProviders {
|
|
12631
12927
|
METAMASK = "metamask"
|
|
12632
12928
|
}
|
|
12633
|
-
|
|
12634
|
-
|
|
12635
|
-
|
|
12636
|
-
*/
|
|
12637
|
-
type ConnectParams = {
|
|
12638
|
-
providerPreference: ConnectionProviders;
|
|
12639
|
-
};
|
|
12929
|
+
interface ConnectParams {
|
|
12930
|
+
provider: Web3Provider;
|
|
12931
|
+
}
|
|
12640
12932
|
/**
|
|
12641
12933
|
* Interface representing the result of {@link Checkout.connect}.
|
|
12642
12934
|
* @property {Web3Provider} provider - The provider used to connect to the network.
|
|
@@ -12646,12 +12938,8 @@ interface ConnectResult {
|
|
|
12646
12938
|
provider: Web3Provider;
|
|
12647
12939
|
network: NetworkInfo;
|
|
12648
12940
|
}
|
|
12649
|
-
/**
|
|
12650
|
-
* Interface representing the parameters for {@link Checkout.checkIsWalletConnected}.
|
|
12651
|
-
* @property {ConnectionProviders} providerPreference - The preferred provider to use to check the connection status to th Web3 network.
|
|
12652
|
-
*/
|
|
12653
12941
|
interface CheckConnectionParams {
|
|
12654
|
-
|
|
12942
|
+
provider: Web3Provider;
|
|
12655
12943
|
}
|
|
12656
12944
|
/**
|
|
12657
12945
|
* Interface representing the result of {@link Checkout.checkIsWalletConnected}.
|
|
@@ -12662,6 +12950,71 @@ interface CheckConnectionResult {
|
|
|
12662
12950
|
isConnected: boolean;
|
|
12663
12951
|
walletAddress: string;
|
|
12664
12952
|
}
|
|
12953
|
+
/**
|
|
12954
|
+
* * Enum representing the actions that gas can be estimated for when calling {@link Checkout.gasEstimate}.
|
|
12955
|
+
* */
|
|
12956
|
+
declare enum GasEstimateType {
|
|
12957
|
+
BRIDGE_TO_L2 = "BRIDGE_TO_L2",
|
|
12958
|
+
SWAP = "SWAP"
|
|
12959
|
+
}
|
|
12960
|
+
/**
|
|
12961
|
+
* * Type representing the params that can be used with {@link Checkout.gasEstimate}.
|
|
12962
|
+
* */
|
|
12963
|
+
type GasEstimateParams = GasEstimateBridgeToL2Params | GasEstimateSwapParams;
|
|
12964
|
+
/**
|
|
12965
|
+
* * Interface representing the parameters to estimate gas for a bridge to L2 for {@link Checkout.gasEstimate}.
|
|
12966
|
+
@property {gasEstimateType} - The type of action to estimate gas for.
|
|
12967
|
+
@property {boolean} isSpendingCapApprovalRequired - Is spending cap approval required.
|
|
12968
|
+
@property {tokenAddress} - The address of the token to bridge.
|
|
12969
|
+
* */
|
|
12970
|
+
interface GasEstimateBridgeToL2Params {
|
|
12971
|
+
gasEstimateType: GasEstimateType.BRIDGE_TO_L2;
|
|
12972
|
+
isSpendingCapApprovalRequired: boolean;
|
|
12973
|
+
tokenAddress?: FungibleToken;
|
|
12974
|
+
}
|
|
12975
|
+
/**
|
|
12976
|
+
* * Interface representing the parameters to estimate gas for a swap for {@link Checkout.gasEstimate}.
|
|
12977
|
+
@property {gasEstimateType} - The type of action to estimate gas for.
|
|
12978
|
+
* */
|
|
12979
|
+
interface GasEstimateSwapParams {
|
|
12980
|
+
gasEstimateType: GasEstimateType.SWAP;
|
|
12981
|
+
}
|
|
12982
|
+
/**
|
|
12983
|
+
* * Interface representing the result for {@link Checkout.gasEstimate}.
|
|
12984
|
+
@property {gasEstimateType} - The type of action this gas estimate is for.
|
|
12985
|
+
@property {gasFee} - The gas fee estimate.
|
|
12986
|
+
* */
|
|
12987
|
+
interface GasEstimateSwapResult {
|
|
12988
|
+
gasEstimateType: GasEstimateType.SWAP;
|
|
12989
|
+
gasFee: TokenAmountEstimate;
|
|
12990
|
+
}
|
|
12991
|
+
/**
|
|
12992
|
+
* * Interface representing the result for {@link Checkout.gasEstimate}.
|
|
12993
|
+
@property {gasEstimateType} - The type of action this gas estimate is for.
|
|
12994
|
+
@property {gasFee} - The gas fee estimate.
|
|
12995
|
+
@property {bridgeFee} - The bridge fee estimate.
|
|
12996
|
+
@property {bridgeable} - Indicates whether the token can be bridged or not.
|
|
12997
|
+
* */
|
|
12998
|
+
interface GasEstimateBridgeToL2Result {
|
|
12999
|
+
gasEstimateType: GasEstimateType.BRIDGE_TO_L2;
|
|
13000
|
+
gasFee: TokenAmountEstimate;
|
|
13001
|
+
bridgeFee: TokenAmountEstimate;
|
|
13002
|
+
bridgeable: boolean;
|
|
13003
|
+
}
|
|
13004
|
+
/**
|
|
13005
|
+
* * Interface representing the type used in the result for {@link Checkout.gasEstimate}.
|
|
13006
|
+
@property {BigNumber} estimatedAmount - estimated amount.
|
|
13007
|
+
@property {TokenInfo} token - token for the estimate.
|
|
13008
|
+
* */
|
|
13009
|
+
interface TokenAmountEstimate {
|
|
13010
|
+
estimatedAmount?: BigNumber;
|
|
13011
|
+
token?: TokenInfo;
|
|
13012
|
+
}
|
|
13013
|
+
/**
|
|
13014
|
+
* Object mapping the list of supported networks with the corresponding RPC urls.
|
|
13015
|
+
*/
|
|
13016
|
+
type RpcUrlMap = Map<ChainId, string>;
|
|
13017
|
+
declare const RPC_URL_MAP: RpcUrlMap;
|
|
12665
13018
|
/**
|
|
12666
13019
|
* Type representing the details of a network.
|
|
12667
13020
|
* @property {string} chainIdHex - The hexadecimal ID of the network.
|
|
@@ -12783,12 +13136,28 @@ interface SendTransactionParams {
|
|
|
12783
13136
|
interface SendTransactionResult {
|
|
12784
13137
|
transactionResponse: TransactionResponse;
|
|
12785
13138
|
}
|
|
13139
|
+
/**
|
|
13140
|
+
* Enum representing the avaiable wallet providers to use when creating a provider
|
|
13141
|
+
*/
|
|
13142
|
+
declare enum WalletProviderName {
|
|
13143
|
+
METAMASK = "metamask"
|
|
13144
|
+
}
|
|
13145
|
+
interface CreateProviderParams {
|
|
13146
|
+
walletProvider: WalletProviderName;
|
|
13147
|
+
}
|
|
13148
|
+
/**
|
|
13149
|
+
* Interface representing the result of {@link Checkout.createProvider}.
|
|
13150
|
+
* @property {Web3Provider} provider - The provider used to connect to the network.
|
|
13151
|
+
*/
|
|
13152
|
+
type CreateProviderResult = {
|
|
13153
|
+
provider: Web3Provider;
|
|
13154
|
+
};
|
|
12786
13155
|
/**
|
|
12787
13156
|
* Interface representing a wallet filter to be used in {@link GetWalletAllowListParams}.
|
|
12788
13157
|
* @property {ConnectionProviders} connectionProvider - The connection provider to filter wallets by.
|
|
12789
13158
|
*/
|
|
12790
13159
|
interface WalletFilter {
|
|
12791
|
-
|
|
13160
|
+
providerName: WalletProviderName;
|
|
12792
13161
|
}
|
|
12793
13162
|
/**
|
|
12794
13163
|
* Interface representing the parameters for {@link Checkout.getWalletAllowList}.
|
|
@@ -12807,7 +13176,7 @@ interface GetWalletAllowListParams {
|
|
|
12807
13176
|
* @property {string} icon - The URL/data:image of an icon for the wallet.
|
|
12808
13177
|
*/
|
|
12809
13178
|
interface WalletInfo {
|
|
12810
|
-
|
|
13179
|
+
providerName: WalletProviderName;
|
|
12811
13180
|
name: string;
|
|
12812
13181
|
description: string;
|
|
12813
13182
|
icon: string;
|
|
@@ -12831,7 +13200,9 @@ declare enum WalletFilterTypes {
|
|
|
12831
13200
|
* The different types of errors that can be returned by the checkout process.
|
|
12832
13201
|
*/
|
|
12833
13202
|
declare enum CheckoutErrorType {
|
|
12834
|
-
|
|
13203
|
+
WEB3_PROVIDER_ERROR = "WEB3_PROVIDER_ERROR",
|
|
13204
|
+
PROVIDER_ERROR = "PROVIDER_ERROR",
|
|
13205
|
+
DEFAULT_PROVIDER_ERROR = "DEFAULT_PROVIDER_ERROR",
|
|
12835
13206
|
CONNECT_PROVIDER_ERROR = "CONNECT_PROVIDER_ERROR",
|
|
12836
13207
|
GET_BALANCE_ERROR = "GET_BALANCE_ERROR",
|
|
12837
13208
|
GET_ERC20_BALANCE_ERROR = "GET_ERC20_BALANCE_ERROR",
|
|
@@ -12843,7 +13214,8 @@ declare enum CheckoutErrorType {
|
|
|
12843
13214
|
USER_REJECTED_REQUEST_ERROR = "USER_REJECTED_REQUEST_ERROR",
|
|
12844
13215
|
TRANSACTION_FAILED = "TRANSACTION_FAILED",
|
|
12845
13216
|
INSUFFICIENT_FUNDS = "INSUFFICIENT_FUNDS",
|
|
12846
|
-
UNPREDICTABLE_GAS_LIMIT = "UNPREDICTABLE_GAS_LIMIT"
|
|
13217
|
+
UNPREDICTABLE_GAS_LIMIT = "UNPREDICTABLE_GAS_LIMIT",
|
|
13218
|
+
INVALID_GAS_ESTIMATE_TYPE = "INVALID_GAS_ESTIMATE_TYPE"
|
|
12847
13219
|
}
|
|
12848
13220
|
/**
|
|
12849
13221
|
* The type signature for an error.
|
|
@@ -12864,6 +13236,13 @@ declare class CheckoutConfiguration {
|
|
|
12864
13236
|
declare class Checkout {
|
|
12865
13237
|
readonly config: CheckoutConfiguration;
|
|
12866
13238
|
constructor(config?: CheckoutModuleConfiguration);
|
|
13239
|
+
/**
|
|
13240
|
+
* Create a provider object which can be used within the Checkout class methods.
|
|
13241
|
+
* @param {CreateProviderParams} params The data required to create a provider
|
|
13242
|
+
* @returns A new provider object
|
|
13243
|
+
* @throws {@link ErrorType}
|
|
13244
|
+
*/
|
|
13245
|
+
createProvider(params: CreateProviderParams): Promise<CreateProviderResult>;
|
|
12867
13246
|
/**
|
|
12868
13247
|
* Check if a wallet is connected to the current application
|
|
12869
13248
|
* without requesting permission from the wallet and hence triggering a connect popup.
|
|
@@ -12940,6 +13319,13 @@ declare class Checkout {
|
|
|
12940
13319
|
* @throws {@link ErrorType}
|
|
12941
13320
|
*/
|
|
12942
13321
|
getNetworkInfo(params: GetNetworkParams): Promise<NetworkInfo>;
|
|
13322
|
+
static isWeb3Provider(web3Provider: Web3Provider): boolean;
|
|
13323
|
+
/**
|
|
13324
|
+
* Estimates the gas to perform an action.
|
|
13325
|
+
* @param {GasEstimateParams} params - The params required to calculate a gas estimate
|
|
13326
|
+
* @returns The gas estimate for the given action.
|
|
13327
|
+
*/
|
|
13328
|
+
gasEstimate(params: GasEstimateParams): Promise<GasEstimateSwapResult | GasEstimateBridgeToL2Result>;
|
|
12943
13329
|
}
|
|
12944
13330
|
|
|
12945
13331
|
interface StandardLonghandProperties<TLength = (string & {}) | 0, TTime = string & {}> {
|
|
@@ -24002,7 +24388,13 @@ declare namespace React {
|
|
|
24002
24388
|
type ComponentType<P = {}> = ComponentClass<P> | FunctionComponent<P>;
|
|
24003
24389
|
|
|
24004
24390
|
type JSXElementConstructor<P> =
|
|
24005
|
-
| ((
|
|
24391
|
+
| ((
|
|
24392
|
+
props: P,
|
|
24393
|
+
/**
|
|
24394
|
+
* @deprecated https://legacy.react/ts5.0js.org/docs/legacy-context.html#referencing-context-in-stateless-function-components
|
|
24395
|
+
*/
|
|
24396
|
+
deprecatedLegacyContext?: any,
|
|
24397
|
+
) => ReactElement<any, any> | null)
|
|
24006
24398
|
| (new (props: P) => Component<any, any>);
|
|
24007
24399
|
|
|
24008
24400
|
interface RefObject<T> {
|
|
@@ -24163,6 +24555,10 @@ declare namespace React {
|
|
|
24163
24555
|
* @deprecated Use either `ReactNode[]` if you need an array or `Iterable<ReactNode>` if its passed to a host component.
|
|
24164
24556
|
*/
|
|
24165
24557
|
interface ReactNodeArray extends ReadonlyArray<ReactNode> {}
|
|
24558
|
+
/**
|
|
24559
|
+
* WARNING: Not related to `React.Fragment`.
|
|
24560
|
+
* @deprecated - This type is not relevant when using React. Inline the type instead to make the intent clear.
|
|
24561
|
+
*/
|
|
24166
24562
|
type ReactFragment = Iterable<ReactNode>;
|
|
24167
24563
|
|
|
24168
24564
|
/**
|
|
@@ -24175,7 +24571,7 @@ declare namespace React {
|
|
|
24175
24571
|
| ReactElement
|
|
24176
24572
|
| string
|
|
24177
24573
|
| number
|
|
24178
|
-
|
|
|
24574
|
+
| Iterable<ReactNode>
|
|
24179
24575
|
| ReactPortal
|
|
24180
24576
|
| boolean
|
|
24181
24577
|
| null
|
|
@@ -25553,6 +25949,16 @@ declare namespace React {
|
|
|
25553
25949
|
*/
|
|
25554
25950
|
'aria-autocomplete'?: 'none' | 'inline' | 'list' | 'both' | undefined;
|
|
25555
25951
|
/** Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user. */
|
|
25952
|
+
/**
|
|
25953
|
+
* Defines a string value that labels the current element, which is intended to be converted into Braille.
|
|
25954
|
+
* @see aria-label.
|
|
25955
|
+
*/
|
|
25956
|
+
'aria-braillelabel'?: string | undefined;
|
|
25957
|
+
/**
|
|
25958
|
+
* Defines a human-readable, author-localized abbreviated description for the role of an element, which is intended to be converted into Braille.
|
|
25959
|
+
* @see aria-roledescription.
|
|
25960
|
+
*/
|
|
25961
|
+
'aria-brailleroledescription'?: string | undefined;
|
|
25556
25962
|
'aria-busy'?: Booleanish | undefined;
|
|
25557
25963
|
/**
|
|
25558
25964
|
* Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.
|
|
@@ -25569,6 +25975,11 @@ declare namespace React {
|
|
|
25569
25975
|
* @see aria-colcount @see aria-colspan.
|
|
25570
25976
|
*/
|
|
25571
25977
|
'aria-colindex'?: number | undefined;
|
|
25978
|
+
/**
|
|
25979
|
+
* Defines a human readable text alternative of aria-colindex.
|
|
25980
|
+
* @see aria-rowindextext.
|
|
25981
|
+
*/
|
|
25982
|
+
'aria-colindextext'?: string | undefined;
|
|
25572
25983
|
/**
|
|
25573
25984
|
* Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.
|
|
25574
25985
|
* @see aria-colindex @see aria-rowspan.
|
|
@@ -25586,6 +25997,11 @@ declare namespace React {
|
|
|
25586
25997
|
* @see aria-labelledby
|
|
25587
25998
|
*/
|
|
25588
25999
|
'aria-describedby'?: string | undefined;
|
|
26000
|
+
/**
|
|
26001
|
+
* Defines a string value that describes or annotates the current element.
|
|
26002
|
+
* @see related aria-describedby.
|
|
26003
|
+
*/
|
|
26004
|
+
'aria-description'?: string | undefined;
|
|
25589
26005
|
/**
|
|
25590
26006
|
* Identifies the element that provides a detailed, extended description for the object.
|
|
25591
26007
|
* @see aria-describedby.
|
|
@@ -25699,6 +26115,11 @@ declare namespace React {
|
|
|
25699
26115
|
* @see aria-rowcount @see aria-rowspan.
|
|
25700
26116
|
*/
|
|
25701
26117
|
'aria-rowindex'?: number | undefined;
|
|
26118
|
+
/**
|
|
26119
|
+
* Defines a human readable text alternative of aria-rowindex.
|
|
26120
|
+
* @see aria-colindextext.
|
|
26121
|
+
*/
|
|
26122
|
+
'aria-rowindextext'?: string | undefined;
|
|
25702
26123
|
/**
|
|
25703
26124
|
* Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.
|
|
25704
26125
|
* @see aria-rowindex @see aria-colspan.
|
|
@@ -26255,6 +26676,7 @@ declare namespace React {
|
|
|
26255
26676
|
interface LinkHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
26256
26677
|
as?: string | undefined;
|
|
26257
26678
|
crossOrigin?: "anonymous" | "use-credentials" | "" | undefined;
|
|
26679
|
+
fetchpriority?: "high" | "low" | "auto";
|
|
26258
26680
|
href?: string | undefined;
|
|
26259
26681
|
hrefLang?: string | undefined;
|
|
26260
26682
|
integrity?: string | undefined;
|
|
@@ -26861,6 +27283,7 @@ declare namespace React {
|
|
|
26861
27283
|
ruby: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
26862
27284
|
s: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
26863
27285
|
samp: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
27286
|
+
search: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
26864
27287
|
slot: DetailedHTMLFactory<SlotHTMLAttributes<HTMLSlotElement>, HTMLSlotElement>;
|
|
26865
27288
|
script: DetailedHTMLFactory<ScriptHTMLAttributes<HTMLScriptElement>, HTMLScriptElement>;
|
|
26866
27289
|
section: DetailedHTMLFactory<HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
@@ -27216,6 +27639,7 @@ declare global {
|
|
|
27216
27639
|
ruby: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
27217
27640
|
s: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
27218
27641
|
samp: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
27642
|
+
search: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
27219
27643
|
slot: React.DetailedHTMLProps<React.SlotHTMLAttributes<HTMLSlotElement>, HTMLSlotElement>;
|
|
27220
27644
|
script: React.DetailedHTMLProps<React.ScriptHTMLAttributes<HTMLScriptElement>, HTMLScriptElement>;
|
|
27221
27645
|
section: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
@@ -27347,10 +27771,10 @@ declare enum BridgeEventType {
|
|
|
27347
27771
|
}
|
|
27348
27772
|
/**
|
|
27349
27773
|
* Type representing a Bridge Widget event with type SUCCESS
|
|
27350
|
-
* @property {
|
|
27774
|
+
* @property {string} transactionHash - The transactionHash of the bridge transaction
|
|
27351
27775
|
*/
|
|
27352
27776
|
type BridgeSuccess = {
|
|
27353
|
-
|
|
27777
|
+
transactionHash: string;
|
|
27354
27778
|
};
|
|
27355
27779
|
/**
|
|
27356
27780
|
* Type representing a Bridge Widget event with type FAILURE
|
|
@@ -27361,42 +27785,6 @@ type BridgeFailed = {
|
|
|
27361
27785
|
reason: string;
|
|
27362
27786
|
timestamp: number;
|
|
27363
27787
|
};
|
|
27364
|
-
/**
|
|
27365
|
-
* Enum representing possible Buy Widget event types.
|
|
27366
|
-
*/
|
|
27367
|
-
declare enum BuyEventType {
|
|
27368
|
-
CLOSE_WIDGET = "close-widget",
|
|
27369
|
-
SUCCESS = "success",
|
|
27370
|
-
FAILURE = "failure",
|
|
27371
|
-
NOT_CONNECTED = "not_connected"
|
|
27372
|
-
}
|
|
27373
|
-
/**
|
|
27374
|
-
* Type representing a Buy Widget event with type CLOSE.
|
|
27375
|
-
*/
|
|
27376
|
-
type BuyClose = {};
|
|
27377
|
-
/**
|
|
27378
|
-
* Type representing a Buy Widget event with type NOT_CONNECTED.
|
|
27379
|
-
* @property {string} providerPreference - The preferred provider used for the connection within the Buy Widget.
|
|
27380
|
-
*/
|
|
27381
|
-
type BuyNotConnected = {
|
|
27382
|
-
providerPreference: string;
|
|
27383
|
-
};
|
|
27384
|
-
/**
|
|
27385
|
-
* Type representing a Buy Widget event with type SUCCESS.
|
|
27386
|
-
* @property {number} timestamp - The timestamp of the successful buy.
|
|
27387
|
-
*/
|
|
27388
|
-
type BuySuccess = {
|
|
27389
|
-
timestamp: number;
|
|
27390
|
-
};
|
|
27391
|
-
/**
|
|
27392
|
-
* Type representing a Buy Widget event with type FAILURE.
|
|
27393
|
-
* @property {string} reason - The reason why the buy failed.
|
|
27394
|
-
* @property {number} timestamp - The timestamp of the failed buy.
|
|
27395
|
-
*/
|
|
27396
|
-
type BuyFailed = {
|
|
27397
|
-
reason: string;
|
|
27398
|
-
timestamp: number;
|
|
27399
|
-
};
|
|
27400
27788
|
/**
|
|
27401
27789
|
* Enum representing possible Connect Widget event types.
|
|
27402
27790
|
*/
|
|
@@ -27410,7 +27798,8 @@ declare enum ConnectEventType {
|
|
|
27410
27798
|
* @property {ConnectionProviders} providerPreference - The user's preferred connection provider.
|
|
27411
27799
|
*/
|
|
27412
27800
|
type ConnectionSuccess = {
|
|
27413
|
-
|
|
27801
|
+
provider: Web3Provider;
|
|
27802
|
+
providerName: WalletProviderName | undefined;
|
|
27414
27803
|
};
|
|
27415
27804
|
/**
|
|
27416
27805
|
* Type representing a Connect Widget event with type FAILURE.
|
|
@@ -27459,7 +27848,7 @@ declare enum SwapEventType {
|
|
|
27459
27848
|
* @property {number} timestamp - The timestamp of the successful swap.
|
|
27460
27849
|
*/
|
|
27461
27850
|
type SwapSuccess = {
|
|
27462
|
-
|
|
27851
|
+
transactionHash: string;
|
|
27463
27852
|
};
|
|
27464
27853
|
/**
|
|
27465
27854
|
* Type representing a Swap Widget with type FAILURE.
|
|
@@ -27495,6 +27884,7 @@ declare enum WalletEventType {
|
|
|
27495
27884
|
type WalletNetworkSwitchEvent = {
|
|
27496
27885
|
network: string;
|
|
27497
27886
|
chainId: number;
|
|
27887
|
+
provider: Web3Provider;
|
|
27498
27888
|
};
|
|
27499
27889
|
type WalletDisconnectWalletEvent = {};
|
|
27500
27890
|
/**
|
|
@@ -27504,17 +27894,15 @@ declare enum IMTBLWidgetEvents {
|
|
|
27504
27894
|
IMTBL_CONNECT_WIDGET_EVENT = "imtbl-connect-widget",
|
|
27505
27895
|
IMTBL_WALLET_WIDGET_EVENT = "imtbl-wallet-widget",
|
|
27506
27896
|
IMTBL_SWAP_WIDGET_EVENT = "imtbl-swap-widget",
|
|
27507
|
-
IMTBL_BRIDGE_WIDGET_EVENT = "imtbl-bridge-widget"
|
|
27508
|
-
IMTBL_BUY_WIDGET_EVENT = "imtbl-buy-widget",
|
|
27509
|
-
IMTBL_ONRAMP_WIDGET_EVENT = "imtbl-onramp-widget"
|
|
27897
|
+
IMTBL_BRIDGE_WIDGET_EVENT = "imtbl-bridge-widget"
|
|
27510
27898
|
}
|
|
27511
27899
|
/**
|
|
27512
27900
|
* Represents an event object emitted by any of the widgets.
|
|
27513
|
-
* @property {OrchestrationEventType | ConnectEventType | WalletEventType | SwapEventType | BridgeEventType
|
|
27901
|
+
* @property {OrchestrationEventType | ConnectEventType | WalletEventType | SwapEventType | BridgeEventType} type - The type of the event.
|
|
27514
27902
|
* @property {T} data - The data contained in the event.
|
|
27515
27903
|
*/
|
|
27516
27904
|
type WidgetEvent<T> = {
|
|
27517
|
-
type: OrchestrationEventType | ConnectEventType | WalletEventType | SwapEventType | BridgeEventType
|
|
27905
|
+
type: OrchestrationEventType | ConnectEventType | WalletEventType | SwapEventType | BridgeEventType;
|
|
27518
27906
|
data: T;
|
|
27519
27907
|
};
|
|
27520
27908
|
declare global {
|
|
@@ -27527,11 +27915,6 @@ declare global {
|
|
|
27527
27915
|
'imtbl-wallet': ImtblWalletProps;
|
|
27528
27916
|
'imtbl-swap': ImtblSwapProps;
|
|
27529
27917
|
'imtbl-bridge': ImtblBridgeProps;
|
|
27530
|
-
'imtbl-buy': ImtblBuyProps;
|
|
27531
|
-
'imtbl-example': ImtblExampleProps;
|
|
27532
|
-
'imtbl-transition-example': ImtblTransitionExampleProps;
|
|
27533
|
-
'imtbl-inner-widget-example': ImtblInnerWidgetExampleProps;
|
|
27534
|
-
'imtbl-outer-widget-example': ImtblOuterWidgetExampleProps;
|
|
27535
27918
|
}
|
|
27536
27919
|
}
|
|
27537
27920
|
interface ImmutableWebComponent {
|
|
@@ -27546,7 +27929,7 @@ declare global {
|
|
|
27546
27929
|
* @property {string} environment - The environment configuration
|
|
27547
27930
|
*/
|
|
27548
27931
|
interface ImtblConnectProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
27549
|
-
|
|
27932
|
+
walletProvider?: string;
|
|
27550
27933
|
widgetConfig?: string;
|
|
27551
27934
|
}
|
|
27552
27935
|
/**
|
|
@@ -27556,8 +27939,7 @@ interface ImtblConnectProps extends React.DetailedHTMLProps<React.HTMLAttributes
|
|
|
27556
27939
|
* @property {string} environment - The environment configuration
|
|
27557
27940
|
*/
|
|
27558
27941
|
interface ImtblWalletProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
27559
|
-
|
|
27560
|
-
useConnectWidget?: string;
|
|
27942
|
+
walletProvider?: string;
|
|
27561
27943
|
widgetConfig?: string;
|
|
27562
27944
|
}
|
|
27563
27945
|
/**
|
|
@@ -27570,9 +27952,8 @@ interface ImtblWalletProps extends React.DetailedHTMLProps<React.HTMLAttributes<
|
|
|
27570
27952
|
* @property {string} toContractAddress - The contract address of the destination token.
|
|
27571
27953
|
*/
|
|
27572
27954
|
interface ImtblSwapProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
27573
|
-
|
|
27955
|
+
walletProvider?: string;
|
|
27574
27956
|
widgetConfig?: string;
|
|
27575
|
-
useConnectWidget?: string;
|
|
27576
27957
|
amount: string;
|
|
27577
27958
|
fromContractAddress: string;
|
|
27578
27959
|
toContractAddress: string;
|
|
@@ -27587,69 +27968,12 @@ interface ImtblSwapProps extends React.DetailedHTMLProps<React.HTMLAttributes<HT
|
|
|
27587
27968
|
* @property {string} amount - The amount to bridge.
|
|
27588
27969
|
*/
|
|
27589
27970
|
interface ImtblBridgeProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
27590
|
-
|
|
27971
|
+
walletProvider?: string;
|
|
27591
27972
|
widgetConfig?: string;
|
|
27592
27973
|
fromContractAddress: string;
|
|
27593
27974
|
fromNetwork: string;
|
|
27594
27975
|
amount: string;
|
|
27595
27976
|
}
|
|
27596
|
-
/**
|
|
27597
|
-
* Props for the Example Widget component
|
|
27598
|
-
* @property {string} providerPreference - The preferred wallet provider to connect to.
|
|
27599
|
-
* @property {string} theme - The theme to use.
|
|
27600
|
-
* @property {string} environment - The environment configuration
|
|
27601
|
-
* @experimental
|
|
27602
|
-
*/
|
|
27603
|
-
interface ImtblExampleProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
27604
|
-
providerPreference: string;
|
|
27605
|
-
theme: string;
|
|
27606
|
-
environment: string;
|
|
27607
|
-
}
|
|
27608
|
-
/**
|
|
27609
|
-
* Props for the Buy Widget component
|
|
27610
|
-
* @property {string} providerPreference - The preferred wallet provider to connect to.
|
|
27611
|
-
* @property {string} theme - The theme to use.
|
|
27612
|
-
* @property {string} environment - The environment configuration
|
|
27613
|
-
* @property {string} orderId - The id of the order to buy.
|
|
27614
|
-
*/
|
|
27615
|
-
interface ImtblBuyProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
27616
|
-
providerPreference: string;
|
|
27617
|
-
widgetConfig?: string;
|
|
27618
|
-
orderId: string;
|
|
27619
|
-
}
|
|
27620
|
-
/**
|
|
27621
|
-
* Props for the TransitionExample Widget component
|
|
27622
|
-
* @property {string} providerPreference - The preferred wallet provider to connect to.
|
|
27623
|
-
* @property {string} theme - The theme to use.
|
|
27624
|
-
* @property {string} environment - The environment configuration
|
|
27625
|
-
*/
|
|
27626
|
-
interface ImtblTransitionExampleProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
27627
|
-
providerPreference: string;
|
|
27628
|
-
theme: string;
|
|
27629
|
-
environment: string;
|
|
27630
|
-
}
|
|
27631
|
-
/**
|
|
27632
|
-
* Props for the InnerWidgetExample Widget component
|
|
27633
|
-
* @property {string} providerPreference - The preferred wallet provider to connect to.
|
|
27634
|
-
* @property {string} theme - The theme to use.
|
|
27635
|
-
* @property {string} environment - The environment configuration
|
|
27636
|
-
*/
|
|
27637
|
-
interface ImtblInnerWidgetExampleProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
27638
|
-
providerPreference: string;
|
|
27639
|
-
theme: string;
|
|
27640
|
-
environment: string;
|
|
27641
|
-
}
|
|
27642
|
-
/**
|
|
27643
|
-
* Props for the OuterWidgetExample Widget component
|
|
27644
|
-
* @property {string} providerPreference - The preferred wallet provider to connect to.
|
|
27645
|
-
* @property {string} theme - The theme to use.
|
|
27646
|
-
* @property {string} environment - The environment configuration
|
|
27647
|
-
*/
|
|
27648
|
-
interface ImtblOuterWidgetExampleProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
27649
|
-
providerPreference: string;
|
|
27650
|
-
theme: string;
|
|
27651
|
-
environment: string;
|
|
27652
|
-
}
|
|
27653
27977
|
/**
|
|
27654
27978
|
* Enum representing the networks supported by Checkout.
|
|
27655
27979
|
*/
|
|
@@ -27676,9 +28000,7 @@ declare enum CheckoutWidgetTagNames {
|
|
|
27676
28000
|
CONNECT = "imtbl-connect",
|
|
27677
28001
|
WALLET = "imtbl-wallet",
|
|
27678
28002
|
SWAP = "imtbl-swap",
|
|
27679
|
-
|
|
27680
|
-
BRIDGE = "imtbl-bridge",
|
|
27681
|
-
EXAMPLE = "imtbl-example"
|
|
28003
|
+
BRIDGE = "imtbl-bridge"
|
|
27682
28004
|
}
|
|
27683
28005
|
/**
|
|
27684
28006
|
* Represents the configuration options for the Checkout Widgets.
|
|
@@ -27697,14 +28019,14 @@ type CheckoutWidgetsConfig = {
|
|
|
27697
28019
|
};
|
|
27698
28020
|
/**
|
|
27699
28021
|
* Interface representing the props for the Bridge Widget component.
|
|
27700
|
-
* @property {string}
|
|
28022
|
+
* @property {string} walletProvider - The preferred provider for the Bridge Widget
|
|
27701
28023
|
* (default: "metamask").
|
|
27702
28024
|
* @property {string} fromContractAddress - The contract address to send tokens from.
|
|
27703
28025
|
* @property {string} amount - The amount of tokens to send.
|
|
27704
28026
|
* @property {Network} fromNetwork - The network to send tokens from.
|
|
27705
28027
|
*/
|
|
27706
28028
|
interface BridgeReactProps {
|
|
27707
|
-
|
|
28029
|
+
walletProvider?: WalletProviderName;
|
|
27708
28030
|
fromContractAddress?: string;
|
|
27709
28031
|
amount?: string;
|
|
27710
28032
|
fromNetwork?: Network;
|
|
@@ -27715,29 +28037,13 @@ interface BridgeReactProps {
|
|
|
27715
28037
|
* @returns {JSX.Element} - The rendered Bridge Widget component.
|
|
27716
28038
|
*/
|
|
27717
28039
|
declare function BridgeReact(props: BridgeReactProps): JSX.Element;
|
|
27718
|
-
/**
|
|
27719
|
-
* Interface representing the props for the Buy Widget component.
|
|
27720
|
-
* @property {string} providerPreference - The preferred provider for the Buy Widget
|
|
27721
|
-
* (default: "metamask").
|
|
27722
|
-
* @property {string} orderId - The ID that identifies the open buy order associated to the assets to buy.
|
|
27723
|
-
*/
|
|
27724
|
-
interface BuyReactProps {
|
|
27725
|
-
providerPreference: string;
|
|
27726
|
-
orderId: string;
|
|
27727
|
-
}
|
|
27728
|
-
/**
|
|
27729
|
-
* A React functional component that renders the Checkout Buy Widget.
|
|
27730
|
-
* @param {BuyReactProps} props - The props for the Buy Widget component.
|
|
27731
|
-
* @returns {JSX.Element} - The rendered Buy Widget component.
|
|
27732
|
-
*/
|
|
27733
|
-
declare function BuyReact(props: BuyReactProps): JSX.Element;
|
|
27734
28040
|
/**
|
|
27735
28041
|
* Interface representing the props for the Connect Widget component.
|
|
27736
28042
|
* @property {string} providerPreference - The preferred provider for the Connect Widget
|
|
27737
28043
|
* (default: "metamask").
|
|
27738
28044
|
*/
|
|
27739
28045
|
interface ConnectReactProps {
|
|
27740
|
-
|
|
28046
|
+
walletProvider?: string;
|
|
27741
28047
|
}
|
|
27742
28048
|
/**
|
|
27743
28049
|
* A React functional component that renders the Checkout Connect Widget.
|
|
@@ -27747,13 +28053,13 @@ interface ConnectReactProps {
|
|
|
27747
28053
|
declare function ConnectReact(props: ConnectReactProps): JSX.Element;
|
|
27748
28054
|
/**
|
|
27749
28055
|
* Interface representing the props for the Swap Widget component.
|
|
27750
|
-
* @property {string}
|
|
28056
|
+
* @property {string} walletProvider - The preferred provider for the Swap Widget (default: "metamask"}).
|
|
27751
28057
|
* @property {string} fromContractAddress - The contract address to swap tokens from.
|
|
27752
28058
|
* @property {string} amount - The amount of tokens to send.
|
|
27753
28059
|
* @property {Network} toContractAddress - The contract address to swap tokens to.
|
|
27754
28060
|
*/
|
|
27755
28061
|
interface SwapReactProps {
|
|
27756
|
-
|
|
28062
|
+
walletProvider?: WalletProviderName;
|
|
27757
28063
|
fromContractAddress?: string;
|
|
27758
28064
|
amount?: string;
|
|
27759
28065
|
toContractAddress?: string;
|
|
@@ -27770,8 +28076,7 @@ declare function SwapReact(props: SwapReactProps): JSX.Element;
|
|
|
27770
28076
|
* (default: "metamask").
|
|
27771
28077
|
*/
|
|
27772
28078
|
interface WalletReactProps {
|
|
27773
|
-
|
|
27774
|
-
useConnectWidget?: boolean;
|
|
28079
|
+
walletProvider?: WalletProviderName;
|
|
27775
28080
|
}
|
|
27776
28081
|
/**
|
|
27777
28082
|
* A React functional component that renders the Checkout Wallet Widget.
|
|
@@ -27779,18 +28084,6 @@ interface WalletReactProps {
|
|
|
27779
28084
|
* @returns {JSX.Element} - The rendered Wallet Widget component.
|
|
27780
28085
|
*/
|
|
27781
28086
|
declare function WalletReact(props: WalletReactProps): JSX$1.Element;
|
|
27782
|
-
/**
|
|
27783
|
-
* Interface representing the props for the Example Widget component.
|
|
27784
|
-
* @experimental
|
|
27785
|
-
*/
|
|
27786
|
-
interface ExampleReactProps extends CheckoutWidgetsConfig {
|
|
27787
|
-
providerPreference: string;
|
|
27788
|
-
}
|
|
27789
|
-
/**
|
|
27790
|
-
* A React functional component that renders the Checkout Example Widget.
|
|
27791
|
-
* @experimental
|
|
27792
|
-
*/
|
|
27793
|
-
declare function ExampleReact(props: ExampleReactProps): JSX$1.Element;
|
|
27794
28087
|
/**
|
|
27795
28088
|
* CheckoutWidgets allows to inject the Checkout Widgets into your application.
|
|
27796
28089
|
* @param {CheckoutWidgetsConfig|undefined} config - Checkout Widget global configurations.
|
|
@@ -27819,33 +28112,33 @@ declare class ERC20 {
|
|
|
27819
28112
|
private readonly contract;
|
|
27820
28113
|
constructor(contractAddress: string);
|
|
27821
28114
|
/**
|
|
27822
|
-
* @returns a promise that resolves with a
|
|
28115
|
+
* @returns a promise that resolves with a BigNumber that represents the amount of tokens in existence
|
|
27823
28116
|
*/
|
|
27824
|
-
totalSupply(overrides?: CallOverrides): Promise<
|
|
28117
|
+
totalSupply(provider: Provider, overrides?: CallOverrides): Promise<BigNumber>;
|
|
27825
28118
|
/**
|
|
27826
|
-
* @returns a promise that resolves with a
|
|
28119
|
+
* @returns a promise that resolves with a BigNumber that represents the amount of tokens owned by account
|
|
27827
28120
|
*/
|
|
27828
|
-
balanceOf(account: PromiseOrValue$1<string>, overrides?: CallOverrides): Promise<
|
|
28121
|
+
balanceOf(provider: Provider, account: PromiseOrValue$1<string>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
27829
28122
|
/**
|
|
27830
|
-
* @returns a promise that resolves with a
|
|
28123
|
+
* @returns a promise that resolves with a BigNumber that represents the remaining number of tokens that spender will be allowed to spend on behalf of owner through transferFrom
|
|
27831
28124
|
*/
|
|
27832
|
-
|
|
27833
|
-
from?: PromiseOrValue$1<string>;
|
|
27834
|
-
}): Promise<PopulatedTransaction>;
|
|
28125
|
+
allowance(provider: Provider, owner: PromiseOrValue$1<string>, spender: PromiseOrValue$1<string>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
27835
28126
|
/**
|
|
27836
28127
|
* @returns a promise that resolves with a populated transaction
|
|
27837
28128
|
*/
|
|
27838
|
-
|
|
28129
|
+
populateTransfer(to: PromiseOrValue$1<string>, amount: PromiseOrValue$1<BigNumberish>, overrides?: Overrides & {
|
|
28130
|
+
from?: PromiseOrValue$1<string>;
|
|
28131
|
+
}): Promise<PopulatedTransaction>;
|
|
27839
28132
|
/**
|
|
27840
28133
|
* @returns a promise that resolves with a populated transaction
|
|
27841
28134
|
*/
|
|
27842
|
-
|
|
28135
|
+
populateApprove(spender: PromiseOrValue$1<string>, amount: PromiseOrValue$1<BigNumberish>, overrides?: Overrides & {
|
|
27843
28136
|
from?: PromiseOrValue$1<string>;
|
|
27844
28137
|
}): Promise<PopulatedTransaction>;
|
|
27845
28138
|
/**
|
|
27846
28139
|
* @returns a promise that resolves with a populated transaction
|
|
27847
28140
|
*/
|
|
27848
|
-
|
|
28141
|
+
populateTransferFrom(from: PromiseOrValue$1<string>, to: PromiseOrValue$1<string>, amount: PromiseOrValue$1<BigNumberish>, overrides?: Overrides & {
|
|
27849
28142
|
from?: PromiseOrValue$1<string>;
|
|
27850
28143
|
}): Promise<PopulatedTransaction>;
|
|
27851
28144
|
}
|
|
@@ -27856,173 +28149,179 @@ declare class ERC721PermissionedMintable {
|
|
|
27856
28149
|
private readonly contract;
|
|
27857
28150
|
constructor(contractAddress: string);
|
|
27858
28151
|
/**
|
|
27859
|
-
*
|
|
28152
|
+
* Read functions
|
|
27860
28153
|
*/
|
|
27861
|
-
DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
27862
28154
|
/**
|
|
27863
|
-
* @returns
|
|
28155
|
+
* @returns the DEFAULT_ADMIN_ROLE as a string.
|
|
27864
28156
|
*/
|
|
27865
|
-
|
|
28157
|
+
DEFAULT_ADMIN_ROLE(provider: Provider, overrides?: CallOverrides): Promise<string>;
|
|
27866
28158
|
/**
|
|
27867
|
-
* @returns
|
|
28159
|
+
* @returns the MINTER_ROLE as a string.
|
|
27868
28160
|
*/
|
|
27869
|
-
|
|
27870
|
-
from?: PromiseOrValue<string>;
|
|
27871
|
-
}): Promise<PopulatedTransaction>;
|
|
28161
|
+
MINTER_ROLE(provider: Provider, overrides?: CallOverrides): Promise<string>;
|
|
27872
28162
|
/**
|
|
27873
|
-
* @returns
|
|
28163
|
+
* @returns the balance of an address as a BigNumber.
|
|
27874
28164
|
*/
|
|
27875
|
-
balanceOf(owner: PromiseOrValue<string>, overrides?: CallOverrides): Promise<
|
|
28165
|
+
balanceOf(provider: Provider, owner: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
27876
28166
|
/**
|
|
27877
|
-
* @returns
|
|
28167
|
+
* @returns the baseURI as a string.
|
|
27878
28168
|
*/
|
|
27879
|
-
baseURI(overrides?: CallOverrides): Promise<
|
|
28169
|
+
baseURI(provider: Provider, overrides?: CallOverrides): Promise<string>;
|
|
27880
28170
|
/**
|
|
27881
|
-
* @returns
|
|
28171
|
+
* @returns the contractURI as a string.
|
|
27882
28172
|
*/
|
|
27883
|
-
|
|
27884
|
-
from?: PromiseOrValue<string>;
|
|
27885
|
-
}): Promise<PopulatedTransaction>;
|
|
28173
|
+
contractURI(provider: Provider, overrides?: CallOverrides): Promise<string>;
|
|
27886
28174
|
/**
|
|
27887
|
-
* @returns
|
|
28175
|
+
* @returns admin addresses as an array of strings.
|
|
27888
28176
|
*/
|
|
27889
|
-
|
|
28177
|
+
getAdmins(provider: Provider, overrides?: CallOverrides): Promise<string[]>;
|
|
27890
28178
|
/**
|
|
27891
|
-
* @returns a
|
|
28179
|
+
* @returns the approved address for a token ID, or zero if no address set.
|
|
27892
28180
|
*/
|
|
27893
|
-
|
|
28181
|
+
getApproved(provider: Provider, tokenId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<string>;
|
|
27894
28182
|
/**
|
|
27895
|
-
* @returns
|
|
28183
|
+
* @returns the role admin address.
|
|
27896
28184
|
*/
|
|
27897
|
-
|
|
28185
|
+
getRoleAdmin(provider: Provider, role: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<string>;
|
|
27898
28186
|
/**
|
|
27899
|
-
* @returns
|
|
28187
|
+
* @returns the role member address at a particular index.
|
|
27900
28188
|
*/
|
|
27901
|
-
|
|
28189
|
+
getRoleMember(provider: Provider, role: PromiseOrValue<BytesLike>, index: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<string>;
|
|
27902
28190
|
/**
|
|
27903
|
-
* @returns
|
|
28191
|
+
* @returns the role member count as a BigNumber.
|
|
27904
28192
|
*/
|
|
27905
|
-
|
|
28193
|
+
getRoleMemberCount(provider: Provider, role: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
27906
28194
|
/**
|
|
27907
|
-
* @returns a
|
|
28195
|
+
* @returns a boolean for whether an account has a particular role.
|
|
27908
28196
|
*/
|
|
27909
|
-
|
|
28197
|
+
hasRole(provider: Provider, role: PromiseOrValue<BytesLike>, account: PromiseOrValue<string>, overrides?: CallOverrides): Promise<boolean>;
|
|
27910
28198
|
/**
|
|
27911
|
-
* @returns a
|
|
28199
|
+
* @returns a booolean that tells whether an operator is approved by a given owner.
|
|
27912
28200
|
*/
|
|
27913
|
-
|
|
27914
|
-
from?: PromiseOrValue<string>;
|
|
27915
|
-
}): Promise<PopulatedTransaction>;
|
|
28201
|
+
isApprovedForAll(provider: Provider, owner: PromiseOrValue<string>, operator: PromiseOrValue<string>, overrides?: CallOverrides): Promise<boolean>;
|
|
27916
28202
|
/**
|
|
27917
|
-
* @returns
|
|
28203
|
+
* @returns the name of the contract as a string.
|
|
27918
28204
|
*/
|
|
27919
|
-
|
|
27920
|
-
from?: PromiseOrValue<string>;
|
|
27921
|
-
}): Promise<PopulatedTransaction>;
|
|
28205
|
+
name(provider: Provider, overrides?: CallOverrides): Promise<string>;
|
|
27922
28206
|
/**
|
|
27923
|
-
* @returns
|
|
28207
|
+
* @returns the owner address of a particular tokenId.
|
|
27924
28208
|
*/
|
|
27925
|
-
|
|
28209
|
+
ownerOf(provider: Provider, tokenId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<string>;
|
|
27926
28210
|
/**
|
|
27927
|
-
* @returns
|
|
28211
|
+
* @returns the royalty allowlist as a string.
|
|
27928
28212
|
*/
|
|
27929
|
-
|
|
28213
|
+
royaltyAllowlist(provider: Provider, overrides?: CallOverrides): Promise<string>;
|
|
27930
28214
|
/**
|
|
27931
|
-
* @returns
|
|
28215
|
+
* @returns the royalty information for a particular tokenId.
|
|
27932
28216
|
*/
|
|
27933
|
-
|
|
27934
|
-
from?: PromiseOrValue<string>;
|
|
27935
|
-
}): Promise<PopulatedTransaction>;
|
|
28217
|
+
royaltyInfo(provider: Provider, _tokenId: PromiseOrValue<BigNumberish>, _salePrice: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[string, BigNumber]>;
|
|
27936
28218
|
/**
|
|
27937
|
-
* @returns
|
|
28219
|
+
* @returns the symbol of the contract as a string.
|
|
27938
28220
|
*/
|
|
27939
|
-
|
|
28221
|
+
symbol(provider: Provider, overrides?: CallOverrides): Promise<string>;
|
|
27940
28222
|
/**
|
|
27941
|
-
* @returns a
|
|
28223
|
+
* @returns a token ID at a given index of all the tokens stored by the contract.
|
|
27942
28224
|
*/
|
|
27943
|
-
|
|
28225
|
+
tokenByIndex(provider: Provider, index: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
27944
28226
|
/**
|
|
27945
|
-
* @returns a
|
|
28227
|
+
* @returns a token ID owned by owner at a given index of its token list.
|
|
27946
28228
|
*/
|
|
27947
|
-
|
|
27948
|
-
from?: PromiseOrValue<string>;
|
|
27949
|
-
}): Promise<PopulatedTransaction>;
|
|
28229
|
+
tokenOfOwnerByIndex(provider: Provider, owner: PromiseOrValue<string>, index: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
27950
28230
|
/**
|
|
27951
|
-
* @returns
|
|
28231
|
+
* @returns the Uniform Resource Identifier (URI) for tokenId token.
|
|
27952
28232
|
*/
|
|
27953
|
-
|
|
27954
|
-
from?: PromiseOrValue<string>;
|
|
27955
|
-
}): Promise<PopulatedTransaction>;
|
|
28233
|
+
tokenURI(provider: Provider, tokenId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<string>;
|
|
27956
28234
|
/**
|
|
27957
|
-
* @returns
|
|
28235
|
+
* @returns returns the total amount of tokens stored by the contract.
|
|
28236
|
+
*/
|
|
28237
|
+
totalSupply(provider: Provider, overrides?: CallOverrides): Promise<BigNumber>;
|
|
28238
|
+
/**
|
|
28239
|
+
* Write functions
|
|
28240
|
+
*/
|
|
28241
|
+
/**
|
|
28242
|
+
* @returns a populated transaction for the approve contract function
|
|
27958
28243
|
*/
|
|
27959
|
-
|
|
28244
|
+
populateApprove(to: PromiseOrValue<string>, tokenId: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
27960
28245
|
from?: PromiseOrValue<string>;
|
|
27961
28246
|
}): Promise<PopulatedTransaction>;
|
|
27962
28247
|
/**
|
|
27963
|
-
* @returns a
|
|
28248
|
+
* @returns a populated transaction for the burn contract function
|
|
27964
28249
|
*/
|
|
27965
|
-
|
|
28250
|
+
populateBurn(tokenId: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
28251
|
+
from?: PromiseOrValue<string>;
|
|
28252
|
+
}): Promise<PopulatedTransaction>;
|
|
27966
28253
|
/**
|
|
27967
|
-
* @returns a
|
|
28254
|
+
* @returns a populated transaction for the grantMinterRole contract function
|
|
27968
28255
|
*/
|
|
27969
|
-
|
|
28256
|
+
populateGrantMinterRole(user: PromiseOrValue<string>, overrides?: Overrides & {
|
|
28257
|
+
from?: PromiseOrValue<string>;
|
|
28258
|
+
}): Promise<PopulatedTransaction>;
|
|
27970
28259
|
/**
|
|
27971
|
-
* @returns a
|
|
28260
|
+
* @returns a populated transaction for the grantRole contract function
|
|
27972
28261
|
*/
|
|
27973
|
-
|
|
28262
|
+
populateGrantRole(role: PromiseOrValue<BytesLike>, account: PromiseOrValue<string>, overrides?: Overrides & {
|
|
27974
28263
|
from?: PromiseOrValue<string>;
|
|
27975
28264
|
}): Promise<PopulatedTransaction>;
|
|
27976
28265
|
/**
|
|
27977
|
-
* @returns a
|
|
28266
|
+
* @returns a populated transaction for the mint contract function
|
|
27978
28267
|
*/
|
|
27979
|
-
|
|
28268
|
+
populateMint(to: PromiseOrValue<string>, amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
27980
28269
|
from?: PromiseOrValue<string>;
|
|
27981
28270
|
}): Promise<PopulatedTransaction>;
|
|
27982
28271
|
/**
|
|
27983
|
-
* @returns a
|
|
28272
|
+
* @returns a populated transaction for the renounceRole contract function
|
|
27984
28273
|
*/
|
|
27985
|
-
|
|
28274
|
+
populateRenounceRole(role: PromiseOrValue<BytesLike>, account: PromiseOrValue<string>, overrides?: Overrides & {
|
|
27986
28275
|
from?: PromiseOrValue<string>;
|
|
27987
28276
|
}): Promise<PopulatedTransaction>;
|
|
27988
28277
|
/**
|
|
27989
|
-
* @returns a
|
|
28278
|
+
* @returns a populated transaction for the revokeMinterRole contract function
|
|
27990
28279
|
*/
|
|
27991
|
-
|
|
28280
|
+
populateRevokeMinterRole(user: PromiseOrValue<string>, overrides?: Overrides & {
|
|
27992
28281
|
from?: PromiseOrValue<string>;
|
|
27993
28282
|
}): Promise<PopulatedTransaction>;
|
|
27994
28283
|
/**
|
|
27995
|
-
* @returns a
|
|
28284
|
+
* @returns a populated transaction for the revokeRole contract function
|
|
27996
28285
|
*/
|
|
27997
|
-
|
|
28286
|
+
populateRevokeRole(role: PromiseOrValue<BytesLike>, account: PromiseOrValue<string>, overrides?: Overrides & {
|
|
27998
28287
|
from?: PromiseOrValue<string>;
|
|
27999
28288
|
}): Promise<PopulatedTransaction>;
|
|
28000
28289
|
/**
|
|
28001
|
-
* @returns a
|
|
28290
|
+
* @returns a populated transaction for the safeTransferFrom(address,address,uint256) contract function
|
|
28002
28291
|
*/
|
|
28003
|
-
|
|
28292
|
+
'populateSafeTransferFrom(address,address,uint256)'(from: PromiseOrValue<string>, to: PromiseOrValue<string>, tokenId: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
28004
28293
|
from?: PromiseOrValue<string>;
|
|
28005
28294
|
}): Promise<PopulatedTransaction>;
|
|
28006
28295
|
/**
|
|
28007
|
-
* @returns a
|
|
28296
|
+
* @returns a populated transaction for the safeTransferFrom(address,address,uint256,bytes) contract function
|
|
28008
28297
|
*/
|
|
28009
|
-
|
|
28298
|
+
'populateSafeTransferFrom(address,address,uint256,bytes)'(from: PromiseOrValue<string>, to: PromiseOrValue<string>, tokenId: PromiseOrValue<BigNumberish>, data: PromiseOrValue<BytesLike>, overrides?: Overrides & {
|
|
28299
|
+
from?: PromiseOrValue<string>;
|
|
28300
|
+
}): Promise<PopulatedTransaction>;
|
|
28010
28301
|
/**
|
|
28011
|
-
* @returns a
|
|
28302
|
+
* @returns a populated transaction for the setApprovalForAll contract function
|
|
28012
28303
|
*/
|
|
28013
|
-
|
|
28304
|
+
setApprovalForAll(operator: PromiseOrValue<string>, approved: PromiseOrValue<boolean>, overrides?: Overrides & {
|
|
28305
|
+
from?: PromiseOrValue<string>;
|
|
28306
|
+
}): Promise<PopulatedTransaction>;
|
|
28014
28307
|
/**
|
|
28015
|
-
* @returns a
|
|
28308
|
+
* @returns a populated transaction for the setBaseURI contract function
|
|
28016
28309
|
*/
|
|
28017
|
-
|
|
28310
|
+
setBaseURI(baseURI_: PromiseOrValue<string>, overrides?: Overrides & {
|
|
28311
|
+
from?: PromiseOrValue<string>;
|
|
28312
|
+
}): Promise<PopulatedTransaction>;
|
|
28018
28313
|
/**
|
|
28019
|
-
* @returns a
|
|
28314
|
+
* @returns a populated transaction for the setContractURI contract function
|
|
28020
28315
|
*/
|
|
28021
|
-
|
|
28316
|
+
setContractURI(_contractURI: PromiseOrValue<string>, overrides?: Overrides & {
|
|
28317
|
+
from?: PromiseOrValue<string>;
|
|
28318
|
+
}): Promise<PopulatedTransaction>;
|
|
28022
28319
|
/**
|
|
28023
|
-
* @returns a
|
|
28320
|
+
* @returns a populated transaction for the setRoyaltyAllowlistRegistry contract function
|
|
28024
28321
|
*/
|
|
28025
|
-
|
|
28322
|
+
setRoyaltyAllowlistRegistry(_royaltyAllowlist: PromiseOrValue<string>, overrides?: Overrides & {
|
|
28323
|
+
from?: PromiseOrValue<string>;
|
|
28324
|
+
}): Promise<PopulatedTransaction>;
|
|
28026
28325
|
}
|
|
28027
28326
|
|
|
28028
|
-
export { APIError, BlockchainData, BlockchainDataModuleConfiguration, BridgeEventType, BridgeFailed, BridgeReact, BridgeReactProps, BridgeSuccess,
|
|
28327
|
+
export { APIError, BlockchainData, BlockchainDataModuleConfiguration, BridgeEventType, BridgeFailed, BridgeReact, BridgeReactProps, BridgeSuccess, ChainId, CheckConnectionParams, CheckConnectionResult, Checkout, CheckoutErrorType, CheckoutModuleConfiguration, CheckoutWidgetTagNames, CheckoutWidgets, CheckoutWidgetsConfig, ConnectEventType, ConnectParams, ConnectReact, ConnectReactProps, ConnectResult, ConnectionFailed, ConnectionProviders, ConnectionSuccess, ERC20, ERC721PermissionedMintable, Environment, ErrorType, GasEstimateBridgeToL2Result, GasEstimateParams, GasEstimateSwapResult, GasEstimateType, GenericIMXProvider, GetAllBalancesParams, GetAllBalancesResult, GetBalanceParams, GetBalanceResult, GetNetworkAllowListParams, GetNetworkAllowListResult, GetNetworkParams, GetTokenAllowListParams, GetTokenAllowListResult, GetWalletAllowListParams, GetWalletAllowListResult, IMTBLWidgetEvents, IMXProvider, ImmutableConfiguration, ImmutableXClient, ImtblBridgeProps, ImtblConnectProps, ImtblSwapProps, ImtblWalletProps, ImxModuleConfiguration as ImxClientModuleConfiguration, WalletConnection as ImxClientWalletConnection, MetaMaskIMXProvider, ModuleConfiguration, Network, NetworkFilter, NetworkFilterTypes, NetworkInfo, OrchestrationEventType, Orderbook, Passport, PassportError, PassportModuleConfiguration, ProviderConfiguration, RPC_URL_MAP, RequestBridgeEvent, RequestConnectEvent, RequestOnrampEvent, RequestSwapEvent, RequestWalletEvent, SendTransactionParams, SendTransactionResult, SetProvider, SwapEventType, SwapFailed, SwapReact, SwapReactProps, SwapRejected, SwapSuccess, SwitchNetworkParams, SwitchNetworkResult, TokenFilter, TokenFilterTypes, TokenInfo, UpdateConfig, WalletDisconnectWalletEvent, WalletEventType, WalletFilter, WalletFilterTypes, WalletInfo, WalletNetworkSwitchEvent, WalletProviderName, WalletReact, WalletReactProps, WidgetEvent, WidgetTheme, createStarkSigner as imxClientCreateStarkSigner, generateLegacyStarkPrivateKey as imxClientGenerateLegacyStarkPrivateKey, module };
|