@imtbl/sdk 0.24.1-alpha.1 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/blockchain_data.d.ts +324 -0
- package/dist/blockchain_data.js +570 -44
- package/dist/browser/checkout.js +2 -2
- package/dist/checkout_sdk.js +619 -57
- package/dist/checkout_widgets.js +1 -1
- package/dist/immutablex_client.js +1 -1
- package/dist/index.browser.js +13 -13
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +625 -63
- package/dist/index.d.ts +451 -12
- package/dist/index.js +625 -63
- package/dist/orderbook.d.ts +125 -10
- package/dist/orderbook.js +50 -14
- package/dist/passport.js +293 -11
- package/package.json +1 -1
|
@@ -1125,6 +1125,98 @@ interface NFTMetadataAttribute {
|
|
|
1125
1125
|
'value': NFTMetadataAttributeValue;
|
|
1126
1126
|
}
|
|
1127
1127
|
|
|
1128
|
+
/**
|
|
1129
|
+
* Immutable zkEVM API
|
|
1130
|
+
* Immutable Multi Rollup API
|
|
1131
|
+
*
|
|
1132
|
+
* The version of the OpenAPI document: 1.0.0
|
|
1133
|
+
* Contact: support@immutable.com
|
|
1134
|
+
*
|
|
1135
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1136
|
+
* https://openapi-generator.tech
|
|
1137
|
+
* Do not edit the class manually.
|
|
1138
|
+
*/
|
|
1139
|
+
|
|
1140
|
+
/**
|
|
1141
|
+
*
|
|
1142
|
+
* @export
|
|
1143
|
+
* @interface Metadata
|
|
1144
|
+
*/
|
|
1145
|
+
interface Metadata {
|
|
1146
|
+
/**
|
|
1147
|
+
* Metadata ID in UUIDv4 format
|
|
1148
|
+
* @type {string}
|
|
1149
|
+
* @memberof Metadata
|
|
1150
|
+
*/
|
|
1151
|
+
'id': string;
|
|
1152
|
+
/**
|
|
1153
|
+
*
|
|
1154
|
+
* @type {Chain}
|
|
1155
|
+
* @memberof Metadata
|
|
1156
|
+
*/
|
|
1157
|
+
'chain': Chain;
|
|
1158
|
+
/**
|
|
1159
|
+
* The contract address of the metadata
|
|
1160
|
+
* @type {string}
|
|
1161
|
+
* @memberof Metadata
|
|
1162
|
+
*/
|
|
1163
|
+
'contract_address': string;
|
|
1164
|
+
/**
|
|
1165
|
+
* When the metadata was created
|
|
1166
|
+
* @type {string}
|
|
1167
|
+
* @memberof Metadata
|
|
1168
|
+
*/
|
|
1169
|
+
'created_at': string;
|
|
1170
|
+
/**
|
|
1171
|
+
* When the metadata was last updated
|
|
1172
|
+
* @type {string}
|
|
1173
|
+
* @memberof Metadata
|
|
1174
|
+
*/
|
|
1175
|
+
'updated_at': string | null;
|
|
1176
|
+
/**
|
|
1177
|
+
* The name of the NFT
|
|
1178
|
+
* @type {string}
|
|
1179
|
+
* @memberof Metadata
|
|
1180
|
+
*/
|
|
1181
|
+
'name': string | null;
|
|
1182
|
+
/**
|
|
1183
|
+
* The description of the NFT
|
|
1184
|
+
* @type {string}
|
|
1185
|
+
* @memberof Metadata
|
|
1186
|
+
*/
|
|
1187
|
+
'description': string | null;
|
|
1188
|
+
/**
|
|
1189
|
+
* The image url of the NFT
|
|
1190
|
+
* @type {string}
|
|
1191
|
+
* @memberof Metadata
|
|
1192
|
+
*/
|
|
1193
|
+
'image': string | null;
|
|
1194
|
+
/**
|
|
1195
|
+
* The external website link of NFT
|
|
1196
|
+
* @type {string}
|
|
1197
|
+
* @memberof Metadata
|
|
1198
|
+
*/
|
|
1199
|
+
'external_url'?: string | null;
|
|
1200
|
+
/**
|
|
1201
|
+
* The animation url of the NFT
|
|
1202
|
+
* @type {string}
|
|
1203
|
+
* @memberof Metadata
|
|
1204
|
+
*/
|
|
1205
|
+
'animation_url': string | null;
|
|
1206
|
+
/**
|
|
1207
|
+
* The youtube URL of NFT
|
|
1208
|
+
* @type {string}
|
|
1209
|
+
* @memberof Metadata
|
|
1210
|
+
*/
|
|
1211
|
+
'youtube_url': string | null;
|
|
1212
|
+
/**
|
|
1213
|
+
* List of Metadata attributes
|
|
1214
|
+
* @type {Array<NFTMetadataAttribute>}
|
|
1215
|
+
* @memberof Metadata
|
|
1216
|
+
*/
|
|
1217
|
+
'attributes': Array<NFTMetadataAttribute> | null;
|
|
1218
|
+
}
|
|
1219
|
+
|
|
1128
1220
|
/**
|
|
1129
1221
|
* Immutable zkEVM API
|
|
1130
1222
|
* Immutable Multi Rollup API
|
|
@@ -1167,6 +1259,12 @@ interface NFT {
|
|
|
1167
1259
|
* @memberof NFT
|
|
1168
1260
|
*/
|
|
1169
1261
|
'indexed_at': string;
|
|
1262
|
+
/**
|
|
1263
|
+
* When the NFT owner was last updated
|
|
1264
|
+
* @type {string}
|
|
1265
|
+
* @memberof NFT
|
|
1266
|
+
*/
|
|
1267
|
+
'updated_at': string;
|
|
1170
1268
|
/**
|
|
1171
1269
|
* When NFT metadata was last synced
|
|
1172
1270
|
* @type {string}
|
|
@@ -1354,6 +1452,12 @@ interface Token {
|
|
|
1354
1452
|
* @memberof Token
|
|
1355
1453
|
*/
|
|
1356
1454
|
'name': string | null;
|
|
1455
|
+
/**
|
|
1456
|
+
* When the collection was last updated
|
|
1457
|
+
* @type {string}
|
|
1458
|
+
* @memberof Token
|
|
1459
|
+
*/
|
|
1460
|
+
'updated_at': string;
|
|
1357
1461
|
}
|
|
1358
1462
|
|
|
1359
1463
|
/**
|
|
@@ -1509,6 +1613,38 @@ interface ListCollectionsResult {
|
|
|
1509
1613
|
'page': Page;
|
|
1510
1614
|
}
|
|
1511
1615
|
|
|
1616
|
+
/**
|
|
1617
|
+
* Immutable zkEVM API
|
|
1618
|
+
* Immutable Multi Rollup API
|
|
1619
|
+
*
|
|
1620
|
+
* The version of the OpenAPI document: 1.0.0
|
|
1621
|
+
* Contact: support@immutable.com
|
|
1622
|
+
*
|
|
1623
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1624
|
+
* https://openapi-generator.tech
|
|
1625
|
+
* Do not edit the class manually.
|
|
1626
|
+
*/
|
|
1627
|
+
|
|
1628
|
+
/**
|
|
1629
|
+
*
|
|
1630
|
+
* @export
|
|
1631
|
+
* @interface ListMetadataResult
|
|
1632
|
+
*/
|
|
1633
|
+
interface ListMetadataResult {
|
|
1634
|
+
/**
|
|
1635
|
+
* List of metadata
|
|
1636
|
+
* @type {Array<Metadata>}
|
|
1637
|
+
* @memberof ListMetadataResult
|
|
1638
|
+
*/
|
|
1639
|
+
'result': Array<Metadata>;
|
|
1640
|
+
/**
|
|
1641
|
+
*
|
|
1642
|
+
* @type {Page}
|
|
1643
|
+
* @memberof ListMetadataResult
|
|
1644
|
+
*/
|
|
1645
|
+
'page': Page;
|
|
1646
|
+
}
|
|
1647
|
+
|
|
1512
1648
|
/**
|
|
1513
1649
|
* Immutable zkEVM API
|
|
1514
1650
|
* Immutable Multi Rollup API
|
|
@@ -1557,6 +1693,12 @@ interface NFTOwner {
|
|
|
1557
1693
|
* @memberof NFTOwner
|
|
1558
1694
|
*/
|
|
1559
1695
|
'quantity': string;
|
|
1696
|
+
/**
|
|
1697
|
+
* When the NFT owner was last updated
|
|
1698
|
+
* @type {string}
|
|
1699
|
+
* @memberof NFTOwner
|
|
1700
|
+
*/
|
|
1701
|
+
'updated_at'?: string;
|
|
1560
1702
|
}
|
|
1561
1703
|
|
|
1562
1704
|
/**
|
|
@@ -2100,6 +2242,12 @@ interface CollectionsApiListCollectionsRequest {
|
|
|
2100
2242
|
* @memberof CollectionsApiListCollections
|
|
2101
2243
|
*/
|
|
2102
2244
|
readonly chainName: string;
|
|
2245
|
+
/**
|
|
2246
|
+
* Datetime to use as the oldest updated timestamp
|
|
2247
|
+
* @type {string}
|
|
2248
|
+
* @memberof CollectionsApiListCollections
|
|
2249
|
+
*/
|
|
2250
|
+
readonly fromUpdatedAt?: string;
|
|
2103
2251
|
/**
|
|
2104
2252
|
* Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
2105
2253
|
* @type {string}
|
|
@@ -2170,6 +2318,43 @@ interface CollectionsApiRefreshCollectionMetadataRequest {
|
|
|
2170
2318
|
readonly refreshCollectionMetadataRequest: RefreshCollectionMetadataRequest;
|
|
2171
2319
|
}
|
|
2172
2320
|
|
|
2321
|
+
/**
|
|
2322
|
+
* Request parameters for listMetadata operation in MetadataApi.
|
|
2323
|
+
* @export
|
|
2324
|
+
* @interface MetadataApiListMetadataRequest
|
|
2325
|
+
*/
|
|
2326
|
+
interface MetadataApiListMetadataRequest {
|
|
2327
|
+
/**
|
|
2328
|
+
* The name of chain
|
|
2329
|
+
* @type {string}
|
|
2330
|
+
* @memberof MetadataApiListMetadata
|
|
2331
|
+
*/
|
|
2332
|
+
readonly chainName: string;
|
|
2333
|
+
/**
|
|
2334
|
+
* The address of metadata contract
|
|
2335
|
+
* @type {string}
|
|
2336
|
+
* @memberof MetadataApiListMetadata
|
|
2337
|
+
*/
|
|
2338
|
+
readonly contractAddress: string;
|
|
2339
|
+
/**
|
|
2340
|
+
* Datetime to use as the oldest updated timestamp
|
|
2341
|
+
* @type {string}
|
|
2342
|
+
* @memberof MetadataApiListMetadata
|
|
2343
|
+
*/
|
|
2344
|
+
readonly fromUpdatedAt?: string;
|
|
2345
|
+
/**
|
|
2346
|
+
* Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
2347
|
+
* @type {string}
|
|
2348
|
+
* @memberof MetadataApiListMetadata
|
|
2349
|
+
*/
|
|
2350
|
+
readonly pageCursor?: string;
|
|
2351
|
+
/**
|
|
2352
|
+
* Maximum number of items to return
|
|
2353
|
+
* @type {number}
|
|
2354
|
+
* @memberof MetadataApiListMetadata
|
|
2355
|
+
*/
|
|
2356
|
+
readonly pageSize?: number;
|
|
2357
|
+
}
|
|
2173
2358
|
/**
|
|
2174
2359
|
* Request parameters for refreshMetadataByID operation in MetadataApi.
|
|
2175
2360
|
* @export
|
|
@@ -2258,6 +2443,43 @@ interface NftOwnersApiListNFTOwnersRequest {
|
|
|
2258
2443
|
*/
|
|
2259
2444
|
readonly pageSize?: number;
|
|
2260
2445
|
}
|
|
2446
|
+
/**
|
|
2447
|
+
* Request parameters for listOwnersByContractAddress operation in NftOwnersApi.
|
|
2448
|
+
* @export
|
|
2449
|
+
* @interface NftOwnersApiListOwnersByContractAddressRequest
|
|
2450
|
+
*/
|
|
2451
|
+
interface NftOwnersApiListOwnersByContractAddressRequest {
|
|
2452
|
+
/**
|
|
2453
|
+
* The address of contract
|
|
2454
|
+
* @type {string}
|
|
2455
|
+
* @memberof NftOwnersApiListOwnersByContractAddress
|
|
2456
|
+
*/
|
|
2457
|
+
readonly contractAddress: string;
|
|
2458
|
+
/**
|
|
2459
|
+
* The name of chain
|
|
2460
|
+
* @type {string}
|
|
2461
|
+
* @memberof NftOwnersApiListOwnersByContractAddress
|
|
2462
|
+
*/
|
|
2463
|
+
readonly chainName: string;
|
|
2464
|
+
/**
|
|
2465
|
+
* Datetime to use as the oldest updated timestamp
|
|
2466
|
+
* @type {string}
|
|
2467
|
+
* @memberof NftOwnersApiListOwnersByContractAddress
|
|
2468
|
+
*/
|
|
2469
|
+
readonly fromUpdatedAt?: string;
|
|
2470
|
+
/**
|
|
2471
|
+
* Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
2472
|
+
* @type {string}
|
|
2473
|
+
* @memberof NftOwnersApiListOwnersByContractAddress
|
|
2474
|
+
*/
|
|
2475
|
+
readonly pageCursor?: string;
|
|
2476
|
+
/**
|
|
2477
|
+
* Maximum number of items to return
|
|
2478
|
+
* @type {number}
|
|
2479
|
+
* @memberof NftOwnersApiListOwnersByContractAddress
|
|
2480
|
+
*/
|
|
2481
|
+
readonly pageSize?: number;
|
|
2482
|
+
}
|
|
2261
2483
|
|
|
2262
2484
|
/**
|
|
2263
2485
|
* Request parameters for getNFT operation in NftsApi.
|
|
@@ -2284,6 +2506,68 @@ interface NftsApiGetNFTRequest {
|
|
|
2284
2506
|
*/
|
|
2285
2507
|
readonly chainName: string;
|
|
2286
2508
|
}
|
|
2509
|
+
/**
|
|
2510
|
+
* Request parameters for listAllNFTOwners operation in NftsApi.
|
|
2511
|
+
* @export
|
|
2512
|
+
* @interface NftsApiListAllNFTOwnersRequest
|
|
2513
|
+
*/
|
|
2514
|
+
interface NftsApiListAllNFTOwnersRequest {
|
|
2515
|
+
/**
|
|
2516
|
+
* The name of chain
|
|
2517
|
+
* @type {string}
|
|
2518
|
+
* @memberof NftsApiListAllNFTOwners
|
|
2519
|
+
*/
|
|
2520
|
+
readonly chainName: string;
|
|
2521
|
+
/**
|
|
2522
|
+
* Datetime to use as the oldest updated timestamp
|
|
2523
|
+
* @type {string}
|
|
2524
|
+
* @memberof NftsApiListAllNFTOwners
|
|
2525
|
+
*/
|
|
2526
|
+
readonly fromUpdatedAt: string;
|
|
2527
|
+
/**
|
|
2528
|
+
* Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
2529
|
+
* @type {string}
|
|
2530
|
+
* @memberof NftsApiListAllNFTOwners
|
|
2531
|
+
*/
|
|
2532
|
+
readonly pageCursor?: string;
|
|
2533
|
+
/**
|
|
2534
|
+
* Maximum number of items to return
|
|
2535
|
+
* @type {number}
|
|
2536
|
+
* @memberof NftsApiListAllNFTOwners
|
|
2537
|
+
*/
|
|
2538
|
+
readonly pageSize?: number;
|
|
2539
|
+
}
|
|
2540
|
+
/**
|
|
2541
|
+
* Request parameters for listAllNFTs operation in NftsApi.
|
|
2542
|
+
* @export
|
|
2543
|
+
* @interface NftsApiListAllNFTsRequest
|
|
2544
|
+
*/
|
|
2545
|
+
interface NftsApiListAllNFTsRequest {
|
|
2546
|
+
/**
|
|
2547
|
+
* The name of chain
|
|
2548
|
+
* @type {string}
|
|
2549
|
+
* @memberof NftsApiListAllNFTs
|
|
2550
|
+
*/
|
|
2551
|
+
readonly chainName: string;
|
|
2552
|
+
/**
|
|
2553
|
+
* Datetime to use as the oldest updated timestamp
|
|
2554
|
+
* @type {string}
|
|
2555
|
+
* @memberof NftsApiListAllNFTs
|
|
2556
|
+
*/
|
|
2557
|
+
readonly fromUpdatedAt?: string;
|
|
2558
|
+
/**
|
|
2559
|
+
* Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
2560
|
+
* @type {string}
|
|
2561
|
+
* @memberof NftsApiListAllNFTs
|
|
2562
|
+
*/
|
|
2563
|
+
readonly pageCursor?: string;
|
|
2564
|
+
/**
|
|
2565
|
+
* Maximum number of items to return
|
|
2566
|
+
* @type {number}
|
|
2567
|
+
* @memberof NftsApiListAllNFTs
|
|
2568
|
+
*/
|
|
2569
|
+
readonly pageSize?: number;
|
|
2570
|
+
}
|
|
2287
2571
|
/**
|
|
2288
2572
|
* Request parameters for listNFTs operation in NftsApi.
|
|
2289
2573
|
* @export
|
|
@@ -2302,6 +2586,12 @@ interface NftsApiListNFTsRequest {
|
|
|
2302
2586
|
* @memberof NftsApiListNFTs
|
|
2303
2587
|
*/
|
|
2304
2588
|
readonly chainName: string;
|
|
2589
|
+
/**
|
|
2590
|
+
* Datetime to use as the oldest updated timestamp
|
|
2591
|
+
* @type {string}
|
|
2592
|
+
* @memberof NftsApiListNFTs
|
|
2593
|
+
*/
|
|
2594
|
+
readonly fromUpdatedAt?: string;
|
|
2305
2595
|
/**
|
|
2306
2596
|
* Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
2307
2597
|
* @type {string}
|
|
@@ -2384,6 +2674,12 @@ interface TokensApiListERC20TokensRequest {
|
|
|
2384
2674
|
* @memberof TokensApiListERC20Tokens
|
|
2385
2675
|
*/
|
|
2386
2676
|
readonly chainName: string;
|
|
2677
|
+
/**
|
|
2678
|
+
* Datetime to use as the oldest updated timestamp
|
|
2679
|
+
* @type {string}
|
|
2680
|
+
* @memberof TokensApiListERC20Tokens
|
|
2681
|
+
*/
|
|
2682
|
+
readonly fromUpdatedAt?: string;
|
|
2387
2683
|
/**
|
|
2388
2684
|
* Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
2389
2685
|
* @type {string}
|
|
@@ -2520,6 +2816,13 @@ declare class BlockchainData {
|
|
|
2520
2816
|
* @throws {@link index.APIError}
|
|
2521
2817
|
*/
|
|
2522
2818
|
listNFTsByAccountAddress(request: NftsApiListNFTsByAccountAddressRequest): Promise<ListNFTsResult>;
|
|
2819
|
+
/**
|
|
2820
|
+
* List All NFTs on a chain
|
|
2821
|
+
* @param request - the request object containing the parameters to be provided in the API request
|
|
2822
|
+
* @returns a promise that resolves with a list of NFTs
|
|
2823
|
+
* @throws {@link index.APIError}
|
|
2824
|
+
*/
|
|
2825
|
+
listAllNFTs(request: NftsApiListAllNFTsRequest): Promise<ListNFTsResult>;
|
|
2523
2826
|
/**
|
|
2524
2827
|
* List NFT owners by token ID
|
|
2525
2828
|
* @param request - the request object containing the parameters to be provided in the API request
|
|
@@ -2527,6 +2830,20 @@ declare class BlockchainData {
|
|
|
2527
2830
|
* @throws {@link index.APIError}
|
|
2528
2831
|
*/
|
|
2529
2832
|
listNFTOwners(request: NftOwnersApiListNFTOwnersRequest): Promise<ListNFTOwnersResult>;
|
|
2833
|
+
/**
|
|
2834
|
+
* List NFT owners by contract address
|
|
2835
|
+
* @param request - the request object containing the parameters to be provided in the API request
|
|
2836
|
+
* @returns a promise that resolves with a list of NFT owners
|
|
2837
|
+
* @throws {@link index.APIError}
|
|
2838
|
+
*/
|
|
2839
|
+
listNFTOwnersByContractAddress(request: NftOwnersApiListOwnersByContractAddressRequest): Promise<ListNFTOwnersResult>;
|
|
2840
|
+
/**
|
|
2841
|
+
* List All NFT owners on a chain
|
|
2842
|
+
* @param request - the request object containing the parameters to be provided in the API request
|
|
2843
|
+
* @returns a promise that resolves with a list of NFT owners
|
|
2844
|
+
* @throws {@link index.APIError}
|
|
2845
|
+
*/
|
|
2846
|
+
listAllNFTOwners(request: NftsApiListAllNFTOwnersRequest): Promise<ListNFTOwnersResult>;
|
|
2530
2847
|
/**
|
|
2531
2848
|
* List ERC20 Token contracts
|
|
2532
2849
|
* @param request - the request object containing the parameters to be provided in the API request
|
|
@@ -2541,6 +2858,13 @@ declare class BlockchainData {
|
|
|
2541
2858
|
* @throws {@link index.APIError}
|
|
2542
2859
|
*/
|
|
2543
2860
|
getToken(request: TokensApiGetERC20TokenRequest): Promise<GetTokenResult>;
|
|
2861
|
+
/**
|
|
2862
|
+
* List NFT Metadata by contract address
|
|
2863
|
+
* @param request - the request object containing the parameters to be provided in the API request
|
|
2864
|
+
* @returns a promise that resolves with a list of Metadata
|
|
2865
|
+
* @throws {@link index.APIError}
|
|
2866
|
+
*/
|
|
2867
|
+
listNFTMetadataByContractAddress(request: MetadataApiListMetadataRequest): Promise<ListMetadataResult>;
|
|
2544
2868
|
/**
|
|
2545
2869
|
* Refresh collection metadata
|
|
2546
2870
|
* @param request - the request object containing the parameters to be provided in the API request
|