@imtbl/sdk 1.52.0 → 1.52.1-alpha.1
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-T7u5Hp0U.js → blockchain_data-DBBTvmmb.js} +2 -2
- package/dist/blockchain_data.d.ts +34 -3202
- package/dist/blockchain_data.js +3 -3
- package/dist/browser/checkout/{AddFundsWidget-DuG1OWEM.js → AddFundsWidget-SdKqlUUr.js} +124 -49
- package/dist/browser/checkout/{BridgeWidget-2D-8F1Vq.js → BridgeWidget-Bx1DFMXg.js} +11 -9
- package/dist/browser/checkout/{CheckoutWidget-Bvnur5WZ.js → CheckoutWidget-B1pE8Gc2.js} +81 -35
- package/dist/browser/checkout/{OnRampWidget-B4UV_TYW.js → OnRampWidget-bmvseWX-.js} +20 -12
- package/dist/browser/checkout/{SaleWidget-BQMUaWlZ.js → SaleWidget-Ddos1DHm.js} +9 -9
- package/dist/browser/checkout/{SpendingCapHero-BsQQYO_D.js → SpendingCapHero-BKdEyvIl.js} +1 -1
- package/dist/browser/checkout/{SwapWidget-BK7sTJ6u.js → SwapWidget-CrEzJos9.js} +12 -10
- package/dist/browser/checkout/{TextInputForm-Cy6sTMjr.js → TextInputForm-BvZsFFRK.js} +1 -1
- package/dist/browser/checkout/{TopUpView-Dw-JH0Q5.js → TopUpView-CojeMjuL.js} +1 -1
- package/dist/browser/checkout/{WalletWidget-t6i1V-G5.js → WalletWidget-DcoX5T7s.js} +7 -6
- package/dist/browser/checkout/{auto-track-CMv29U8a.js → auto-track-CPy9e41Q.js} +1 -1
- package/dist/browser/checkout/{balance-Dt4oB1G1.js → balance-_0wiNzA1.js} +2 -2
- package/dist/browser/checkout/{index-D2zks65E.js → index-2yp2sttp.js} +2 -2
- package/dist/browser/checkout/{index-BRzBLTux.js → index-4LGmzy2P.js} +1 -1
- package/dist/browser/checkout/{index-Zraoakam.js → index-BjnD8v8p.js} +1 -1
- package/dist/browser/checkout/{index-DmXFGYTM.js → index-BpduNNVl.js} +1 -1
- package/dist/browser/checkout/{index-D4zR0DRy.js → index-CPLIXtyA.js} +1 -1
- package/dist/browser/checkout/{index-CMBbtkDe.js → index-CcR4tO_g.js} +1 -1
- package/dist/browser/checkout/{index-5qc7Vsg4.js → index-DnQfQojQ.js} +63 -46
- package/dist/browser/checkout/{index-DwTyassh.js → index-Dv7_L5sJ.js} +1 -1
- package/dist/browser/checkout/{index.umd-CCwq6cRd.js → index.umd-LRNZ8nMO.js} +1 -1
- package/dist/browser/checkout/{retry-C_l6vh-l.js → retry-TNKwGgHJ.js} +1 -1
- package/dist/browser/checkout/sdk.js +5 -5
- package/dist/browser/checkout/widgets-esm.js +1 -1
- package/dist/browser/checkout/widgets.js +279 -128
- package/dist/{checkout-DxDRj3k-.js → checkout-BoEdWIoM.js} +7 -6
- package/dist/checkout.d.ts +38 -10
- package/dist/checkout.js +5 -5
- package/dist/{config-Dj7PQqL4.js → config-4V88kddG.js} +1 -1
- package/dist/config.js +1 -1
- package/dist/{index-8m8-bJcZ.js → index-5q3Doq32.js} +1 -1
- package/dist/{index-1bjDCdo5.js → index-CAL1gWlu.js} +4 -4
- package/dist/{index-XxjQ6oVx.js → index-D0T-P8dM.js} +53 -53
- package/dist/{index-D4eU2e1C.js → index-DDE1ZfXv.js} +1 -1
- package/dist/{index-BxF866Mh.js → index-Dg5cqGBu.js} +1 -1
- package/dist/{index-snMwBaY-.js → index-Dqva106f.js} +1 -1
- package/dist/index.browser.js +5 -5
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +66 -61
- package/dist/index.d.ts +266 -3404
- package/dist/index.js +14 -14
- package/dist/{minting_backend-DfBB5ptf.js → minting_backend-x7gO9bio.js} +3 -3
- package/dist/minting_backend.d.ts +312 -228
- package/dist/minting_backend.js +5 -5
- package/dist/{orderbook-CnmzmGtG.js → orderbook-BUiL0rqz.js} +1 -1
- package/dist/orderbook.js +2 -2
- package/dist/{passport-B8WhzCZf.js → passport-DGaas7w4.js} +10 -6
- package/dist/passport.d.ts +3 -1
- package/dist/passport.js +4 -4
- package/dist/{webhook-DzAoMhRT.js → webhook-Be5S01dB.js} +1 -1
- package/dist/webhook.js +2 -2
- package/dist/{x-DbbHwlbW.js → x-7ExOXsHk.js} +3 -3
- package/dist/x.js +4 -4
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as index$1 } from './index-
|
|
2
|
-
import { E as Environment, a as addKeysToHeadersOverride } from './index-
|
|
1
|
+
import { a as index$1 } from './index-Dqva106f.js';
|
|
2
|
+
import { E as Environment, a as addKeysToHeadersOverride } from './index-5q3Doq32.js';
|
|
3
3
|
import globalAxios from 'axios';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -21,7 +21,7 @@ class APIError extends Error {
|
|
|
21
21
|
|
|
22
22
|
/* eslint-disable implicit-arrow-linebreak */
|
|
23
23
|
const defaultHeaders = {
|
|
24
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.52.
|
|
24
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.52.1-alpha.1',
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
27
27
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -140,12 +140,12 @@ class BlockchainData {
|
|
|
140
140
|
* @throws {@link index.APIError}
|
|
141
141
|
*/
|
|
142
142
|
async listActivities(request) {
|
|
143
|
-
return await this.activities
|
|
143
|
+
return (await this.activities
|
|
144
144
|
.listActivities(request)
|
|
145
145
|
.then((res) => res.data)
|
|
146
146
|
.catch((err) => {
|
|
147
147
|
throw formatError(err);
|
|
148
|
-
});
|
|
148
|
+
}));
|
|
149
149
|
}
|
|
150
150
|
/**
|
|
151
151
|
* List activities sorted by updated_at timestamp ascending, useful for time based data replication
|
|
@@ -154,12 +154,12 @@ class BlockchainData {
|
|
|
154
154
|
* @throws {@link index.APIError}
|
|
155
155
|
*/
|
|
156
156
|
async listActivityHistory(request) {
|
|
157
|
-
return await this.activities
|
|
157
|
+
return (await this.activities
|
|
158
158
|
.listActivityHistory(request)
|
|
159
159
|
.then((res) => res.data)
|
|
160
160
|
.catch((err) => {
|
|
161
161
|
throw formatError(err);
|
|
162
|
-
});
|
|
162
|
+
}));
|
|
163
163
|
}
|
|
164
164
|
/**
|
|
165
165
|
* Get a single activity by ID
|
|
@@ -168,12 +168,12 @@ class BlockchainData {
|
|
|
168
168
|
* @throws {@link index.APIError}
|
|
169
169
|
*/
|
|
170
170
|
async getActivity(request) {
|
|
171
|
-
return await this.activities
|
|
171
|
+
return (await this.activities
|
|
172
172
|
.getActivity(request)
|
|
173
173
|
.then((res) => res.data)
|
|
174
174
|
.catch((err) => {
|
|
175
175
|
throw formatError(err);
|
|
176
|
-
});
|
|
176
|
+
}));
|
|
177
177
|
}
|
|
178
178
|
/**
|
|
179
179
|
* List supported chains
|
|
@@ -182,12 +182,12 @@ class BlockchainData {
|
|
|
182
182
|
* @throws {@link index.APIError}
|
|
183
183
|
*/
|
|
184
184
|
async listChains(request) {
|
|
185
|
-
return await this.chains
|
|
185
|
+
return (await this.chains
|
|
186
186
|
.listChains(request)
|
|
187
187
|
.then((res) => res.data)
|
|
188
188
|
.catch((err) => {
|
|
189
189
|
throw formatError(err);
|
|
190
|
-
});
|
|
190
|
+
}));
|
|
191
191
|
}
|
|
192
192
|
/**
|
|
193
193
|
* List all collections
|
|
@@ -196,12 +196,12 @@ class BlockchainData {
|
|
|
196
196
|
* @throws {@link index.APIError}
|
|
197
197
|
*/
|
|
198
198
|
async listCollections(request) {
|
|
199
|
-
return await this.collections
|
|
199
|
+
return (await this.collections
|
|
200
200
|
.listCollections(request)
|
|
201
201
|
.then((res) => res.data)
|
|
202
202
|
.catch((err) => {
|
|
203
203
|
throw formatError(err);
|
|
204
|
-
});
|
|
204
|
+
}));
|
|
205
205
|
}
|
|
206
206
|
/**
|
|
207
207
|
* List collections by NFT owner
|
|
@@ -210,12 +210,12 @@ class BlockchainData {
|
|
|
210
210
|
* @throws {@link index.APIError}
|
|
211
211
|
*/
|
|
212
212
|
async listCollectionsByNFTOwner(request) {
|
|
213
|
-
return await this.collections
|
|
213
|
+
return (await this.collections
|
|
214
214
|
.listCollectionsByNFTOwner(request)
|
|
215
215
|
.then((res) => res.data)
|
|
216
216
|
.catch((err) => {
|
|
217
217
|
throw formatError(err);
|
|
218
|
-
});
|
|
218
|
+
}));
|
|
219
219
|
}
|
|
220
220
|
/**
|
|
221
221
|
* Get a collection by contract address
|
|
@@ -224,12 +224,12 @@ class BlockchainData {
|
|
|
224
224
|
* @throws {@link index.APIError}
|
|
225
225
|
*/
|
|
226
226
|
async getCollection(request) {
|
|
227
|
-
return await this.collections
|
|
227
|
+
return (await this.collections
|
|
228
228
|
.getCollection(request)
|
|
229
229
|
.then((res) => res.data)
|
|
230
230
|
.catch((err) => {
|
|
231
231
|
throw formatError(err);
|
|
232
|
-
});
|
|
232
|
+
}));
|
|
233
233
|
}
|
|
234
234
|
/**
|
|
235
235
|
* Get NFT by token ID
|
|
@@ -238,12 +238,12 @@ class BlockchainData {
|
|
|
238
238
|
* @throws {@link index.APIError}
|
|
239
239
|
*/
|
|
240
240
|
async getNFT(request) {
|
|
241
|
-
return await this.nfts
|
|
241
|
+
return (await this.nfts
|
|
242
242
|
.getNFT(request)
|
|
243
243
|
.then((res) => res.data)
|
|
244
244
|
.catch((err) => {
|
|
245
245
|
throw formatError(err);
|
|
246
|
-
});
|
|
246
|
+
}));
|
|
247
247
|
}
|
|
248
248
|
/**
|
|
249
249
|
* List NFTs by contract address
|
|
@@ -252,12 +252,12 @@ class BlockchainData {
|
|
|
252
252
|
* @throws {@link index.APIError}
|
|
253
253
|
*/
|
|
254
254
|
async listNFTs(request) {
|
|
255
|
-
return await this.nfts
|
|
255
|
+
return (await this.nfts
|
|
256
256
|
.listNFTs(request)
|
|
257
257
|
.then((res) => res.data)
|
|
258
258
|
.catch((err) => {
|
|
259
259
|
throw formatError(err);
|
|
260
|
-
});
|
|
260
|
+
}));
|
|
261
261
|
}
|
|
262
262
|
/**
|
|
263
263
|
* List NFTs by account address
|
|
@@ -266,12 +266,12 @@ class BlockchainData {
|
|
|
266
266
|
* @throws {@link index.APIError}
|
|
267
267
|
*/
|
|
268
268
|
async listNFTsByAccountAddress(request) {
|
|
269
|
-
return await this.nfts
|
|
269
|
+
return (await this.nfts
|
|
270
270
|
.listNFTsByAccountAddress(request)
|
|
271
271
|
.then((res) => res.data)
|
|
272
272
|
.catch((err) => {
|
|
273
273
|
throw formatError(err);
|
|
274
|
-
});
|
|
274
|
+
}));
|
|
275
275
|
}
|
|
276
276
|
/**
|
|
277
277
|
* List All NFTs on a chain
|
|
@@ -280,12 +280,12 @@ class BlockchainData {
|
|
|
280
280
|
* @throws {@link index.APIError}
|
|
281
281
|
*/
|
|
282
282
|
async listAllNFTs(request) {
|
|
283
|
-
return await this.nfts
|
|
283
|
+
return (await this.nfts
|
|
284
284
|
.listAllNFTs(request)
|
|
285
285
|
.then((res) => res.data)
|
|
286
286
|
.catch((err) => {
|
|
287
287
|
throw formatError(err);
|
|
288
|
-
});
|
|
288
|
+
}));
|
|
289
289
|
}
|
|
290
290
|
/**
|
|
291
291
|
* Create a mint request to mint a set of NFTs for a given collection
|
|
@@ -294,12 +294,12 @@ class BlockchainData {
|
|
|
294
294
|
* @throws {@link index.APIError}
|
|
295
295
|
*/
|
|
296
296
|
async createMintRequest(request) {
|
|
297
|
-
return await this.nfts
|
|
297
|
+
return (await this.nfts
|
|
298
298
|
.createMintRequest(request)
|
|
299
299
|
.then((res) => res.data)
|
|
300
300
|
.catch((err) => {
|
|
301
301
|
throw formatError(err);
|
|
302
|
-
});
|
|
302
|
+
}));
|
|
303
303
|
}
|
|
304
304
|
/**
|
|
305
305
|
* List all mint requests for a given contract address
|
|
@@ -308,12 +308,12 @@ class BlockchainData {
|
|
|
308
308
|
* @throws {@link index.APIError}
|
|
309
309
|
*/
|
|
310
310
|
async listMintRequests(request) {
|
|
311
|
-
return await this.nfts
|
|
311
|
+
return (await this.nfts
|
|
312
312
|
.listMintRequests(request)
|
|
313
313
|
.then((res) => res.data)
|
|
314
314
|
.catch((err) => {
|
|
315
315
|
throw formatError(err);
|
|
316
|
-
});
|
|
316
|
+
}));
|
|
317
317
|
}
|
|
318
318
|
/**
|
|
319
319
|
* Retrieve the status of a single mint request identified by its reference ID
|
|
@@ -322,12 +322,12 @@ class BlockchainData {
|
|
|
322
322
|
* @throws {@link index.APIError}
|
|
323
323
|
*/
|
|
324
324
|
async getMintRequest(request) {
|
|
325
|
-
return await this.nfts
|
|
325
|
+
return (await this.nfts
|
|
326
326
|
.getMintRequest(request)
|
|
327
327
|
.then((res) => res.data)
|
|
328
328
|
.catch((err) => {
|
|
329
329
|
throw formatError(err);
|
|
330
|
-
});
|
|
330
|
+
}));
|
|
331
331
|
}
|
|
332
332
|
/**
|
|
333
333
|
* List NFT owners by token ID
|
|
@@ -336,12 +336,12 @@ class BlockchainData {
|
|
|
336
336
|
* @throws {@link index.APIError}
|
|
337
337
|
*/
|
|
338
338
|
async listNFTOwners(request) {
|
|
339
|
-
return await this.nftOwners
|
|
339
|
+
return (await this.nftOwners
|
|
340
340
|
.listNFTOwners(request)
|
|
341
341
|
.then((res) => res.data)
|
|
342
342
|
.catch((err) => {
|
|
343
343
|
throw formatError(err);
|
|
344
|
-
});
|
|
344
|
+
}));
|
|
345
345
|
}
|
|
346
346
|
/**
|
|
347
347
|
* List NFT owners by contract address
|
|
@@ -350,12 +350,12 @@ class BlockchainData {
|
|
|
350
350
|
* @throws {@link index.APIError}
|
|
351
351
|
*/
|
|
352
352
|
async listNFTOwnersByContractAddress(request) {
|
|
353
|
-
return await this.nftOwners
|
|
353
|
+
return (await this.nftOwners
|
|
354
354
|
.listOwnersByContractAddress(request)
|
|
355
355
|
.then((res) => res.data)
|
|
356
356
|
.catch((err) => {
|
|
357
357
|
throw formatError(err);
|
|
358
|
-
});
|
|
358
|
+
}));
|
|
359
359
|
}
|
|
360
360
|
/**
|
|
361
361
|
* List All NFT owners on a chain
|
|
@@ -364,12 +364,12 @@ class BlockchainData {
|
|
|
364
364
|
* @throws {@link index.APIError}
|
|
365
365
|
*/
|
|
366
366
|
async listAllNFTOwners(request) {
|
|
367
|
-
return await this.nftOwners
|
|
367
|
+
return (await this.nftOwners
|
|
368
368
|
.listAllNFTOwners(request)
|
|
369
369
|
.then((res) => res.data)
|
|
370
370
|
.catch((err) => {
|
|
371
371
|
throw formatError(err);
|
|
372
|
-
});
|
|
372
|
+
}));
|
|
373
373
|
}
|
|
374
374
|
/**
|
|
375
375
|
* List ERC20 Token contracts
|
|
@@ -378,12 +378,12 @@ class BlockchainData {
|
|
|
378
378
|
* @throws {@link index.APIError}
|
|
379
379
|
*/
|
|
380
380
|
async listTokens(request) {
|
|
381
|
-
return await this.tokens
|
|
381
|
+
return (await this.tokens
|
|
382
382
|
.listERC20Tokens(request)
|
|
383
383
|
.then((res) => res.data)
|
|
384
384
|
.catch((err) => {
|
|
385
385
|
throw formatError(err);
|
|
386
|
-
});
|
|
386
|
+
}));
|
|
387
387
|
}
|
|
388
388
|
/**
|
|
389
389
|
* Get details for an ERC20 Token by contract address
|
|
@@ -392,12 +392,12 @@ class BlockchainData {
|
|
|
392
392
|
* @throws {@link index.APIError}
|
|
393
393
|
*/
|
|
394
394
|
async getToken(request) {
|
|
395
|
-
return await this.tokens
|
|
395
|
+
return (await this.tokens
|
|
396
396
|
.getERC20Token(request)
|
|
397
397
|
.then((res) => res.data)
|
|
398
398
|
.catch((err) => {
|
|
399
399
|
throw formatError(err);
|
|
400
|
-
});
|
|
400
|
+
}));
|
|
401
401
|
}
|
|
402
402
|
/**
|
|
403
403
|
* Get metadata by ID
|
|
@@ -406,12 +406,12 @@ class BlockchainData {
|
|
|
406
406
|
* @throws {@link index.APIError}
|
|
407
407
|
*/
|
|
408
408
|
async getMetadata(request) {
|
|
409
|
-
return await this.metadata
|
|
409
|
+
return (await this.metadata
|
|
410
410
|
.getMetadata(request)
|
|
411
411
|
.then((res) => res.data)
|
|
412
412
|
.catch((err) => {
|
|
413
413
|
throw formatError(err);
|
|
414
|
-
});
|
|
414
|
+
}));
|
|
415
415
|
}
|
|
416
416
|
/**
|
|
417
417
|
* List NFT Metadata by contract address
|
|
@@ -420,12 +420,12 @@ class BlockchainData {
|
|
|
420
420
|
* @throws {@link index.APIError}
|
|
421
421
|
*/
|
|
422
422
|
async listNFTMetadataByContractAddress(request) {
|
|
423
|
-
return await this.metadata
|
|
423
|
+
return (await this.metadata
|
|
424
424
|
.listMetadata(request)
|
|
425
425
|
.then((res) => res.data)
|
|
426
426
|
.catch((err) => {
|
|
427
427
|
throw formatError(err);
|
|
428
|
-
});
|
|
428
|
+
}));
|
|
429
429
|
}
|
|
430
430
|
/**
|
|
431
431
|
* List NFT Metadata by chain
|
|
@@ -434,12 +434,12 @@ class BlockchainData {
|
|
|
434
434
|
* @throws {@link index.APIError}
|
|
435
435
|
*/
|
|
436
436
|
async listNFTMetadataByChain(request) {
|
|
437
|
-
return await this.metadata
|
|
437
|
+
return (await this.metadata
|
|
438
438
|
.listMetadataForChain(request)
|
|
439
439
|
.then((res) => res.data)
|
|
440
440
|
.catch((err) => {
|
|
441
441
|
throw formatError(err);
|
|
442
|
-
});
|
|
442
|
+
}));
|
|
443
443
|
}
|
|
444
444
|
/**
|
|
445
445
|
* Refresh collection metadata
|
|
@@ -448,12 +448,12 @@ class BlockchainData {
|
|
|
448
448
|
* @throws {@link index.APIError}
|
|
449
449
|
*/
|
|
450
450
|
async refreshCollectionMetadata(request) {
|
|
451
|
-
return await this.collections
|
|
451
|
+
return (await this.collections
|
|
452
452
|
.refreshCollectionMetadata(request)
|
|
453
453
|
.then((res) => res.data)
|
|
454
454
|
.catch((err) => {
|
|
455
455
|
throw formatError(err);
|
|
456
|
-
});
|
|
456
|
+
}));
|
|
457
457
|
}
|
|
458
458
|
/**
|
|
459
459
|
* Refresh metadata for specific NFTs
|
|
@@ -462,12 +462,12 @@ class BlockchainData {
|
|
|
462
462
|
* @throws {@link index.APIError}
|
|
463
463
|
*/
|
|
464
464
|
async refreshNFTMetadata(request) {
|
|
465
|
-
return await this.metadata
|
|
465
|
+
return (await this.metadata
|
|
466
466
|
.refreshNFTMetadataByTokenID(request)
|
|
467
467
|
.then((res) => res.data)
|
|
468
468
|
.catch((err) => {
|
|
469
469
|
throw formatError(err);
|
|
470
|
-
});
|
|
470
|
+
}));
|
|
471
471
|
}
|
|
472
472
|
/**
|
|
473
473
|
* Refresh metadata by ID. This will refresh metadata for all NFTs that reference the given metadata ID.
|
|
@@ -476,12 +476,12 @@ class BlockchainData {
|
|
|
476
476
|
* @throws {@link index.APIError}
|
|
477
477
|
*/
|
|
478
478
|
async refreshStackedMetadata(request) {
|
|
479
|
-
return await this.metadata
|
|
479
|
+
return (await this.metadata
|
|
480
480
|
.refreshMetadataByID(request)
|
|
481
481
|
.then((res) => res.data)
|
|
482
482
|
.catch((err) => {
|
|
483
483
|
throw formatError(err);
|
|
484
|
-
});
|
|
484
|
+
}));
|
|
485
485
|
}
|
|
486
486
|
}
|
|
487
487
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as track, E as Environment } from './index-
|
|
1
|
+
import { t as track, E as Environment } from './index-5q3Doq32.js';
|
|
2
2
|
import globalAxios from 'axios';
|
|
3
3
|
import FormData from 'form-data';
|
|
4
4
|
import { providers, BigNumber, constants as constants$1 } from 'ethers';
|
|
@@ -13991,7 +13991,7 @@ class MultiRollupApiClients {
|
|
|
13991
13991
|
}
|
|
13992
13992
|
|
|
13993
13993
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
13994
|
-
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.52.
|
|
13994
|
+
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.52.1-alpha.1' };
|
|
13995
13995
|
const createConfig = ({ basePath, headers, }) => {
|
|
13996
13996
|
if (!basePath.trim()) {
|
|
13997
13997
|
throw Error('basePath can not be empty');
|