@imtbl/sdk 0.27.2-alpha → 0.27.3
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 +79 -990
- package/dist/blockchain_data.js +304 -261
- package/dist/browser/checkout.js +2 -2
- package/dist/checkout_sdk.d.ts +9 -0
- package/dist/checkout_sdk.js +342 -134
- 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 +350 -278
- package/dist/index.d.ts +245 -1154
- package/dist/index.js +350 -278
- package/dist/passport.js +14 -14
- package/dist/provider.js +4 -5
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -168,6 +168,8 @@ let Configuration$1 = class Configuration {
|
|
|
168
168
|
* https://openapi-generator.tech
|
|
169
169
|
* Do not edit the class manually.
|
|
170
170
|
*/
|
|
171
|
+
// Some imports not used depending on template conditions
|
|
172
|
+
// @ts-ignore
|
|
171
173
|
const BASE_PATH$1 = "https://api.sandbox.immutable.com".replace(/\/+$/, "");
|
|
172
174
|
/**
|
|
173
175
|
*
|
|
@@ -195,10 +197,10 @@ let BaseAPI$1 = class BaseAPI {
|
|
|
195
197
|
*/
|
|
196
198
|
let RequiredError$1 = class RequiredError extends Error {
|
|
197
199
|
field;
|
|
200
|
+
name = "RequiredError";
|
|
198
201
|
constructor(field, msg) {
|
|
199
202
|
super(msg);
|
|
200
203
|
this.field = field;
|
|
201
|
-
this.name = "RequiredError";
|
|
202
204
|
}
|
|
203
205
|
};
|
|
204
206
|
|
|
@@ -255,8 +257,6 @@ const setBearerAuthToObject$1 = async function (object, configuration) {
|
|
|
255
257
|
}
|
|
256
258
|
};
|
|
257
259
|
function setFlattenedQueryParams$1(urlSearchParams, parameter, key = "") {
|
|
258
|
-
if (parameter == null)
|
|
259
|
-
return;
|
|
260
260
|
if (typeof parameter === "object") {
|
|
261
261
|
if (Array.isArray(parameter)) {
|
|
262
262
|
parameter.forEach(item => setFlattenedQueryParams$1(urlSearchParams, item, key));
|
|
@@ -309,7 +309,7 @@ const toPathString$1 = function (url) {
|
|
|
309
309
|
*/
|
|
310
310
|
const createRequestFunction$1 = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
311
311
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
312
|
-
const axiosRequestArgs = { ...axiosArgs.options, url: (configuration?.basePath ||
|
|
312
|
+
const axiosRequestArgs = { ...axiosArgs.options, url: (configuration?.basePath || basePath) + axiosArgs.url };
|
|
313
313
|
return axios.request(axiosRequestArgs);
|
|
314
314
|
};
|
|
315
315
|
};
|
|
@@ -488,22 +488,32 @@ const ActivitiesApiFactory = function (configuration, basePath, axios) {
|
|
|
488
488
|
/**
|
|
489
489
|
* Get a single activity by ID
|
|
490
490
|
* @summary Get a single activity by ID
|
|
491
|
-
* @param {
|
|
491
|
+
* @param {string} chainName The name of chain
|
|
492
|
+
* @param {string} activityId The id of activity
|
|
492
493
|
* @param {*} [options] Override http request option.
|
|
493
494
|
* @throws {RequiredError}
|
|
494
495
|
*/
|
|
495
|
-
getActivity(
|
|
496
|
-
return localVarFp.getActivity(
|
|
496
|
+
getActivity(chainName, activityId, options) {
|
|
497
|
+
return localVarFp.getActivity(chainName, activityId, options).then((request) => request(axios, basePath));
|
|
497
498
|
},
|
|
498
499
|
/**
|
|
499
500
|
* List all activities
|
|
500
501
|
* @summary List all activities
|
|
501
|
-
* @param {
|
|
502
|
+
* @param {string} chainName The name of chain
|
|
503
|
+
* @param {string} [contractAddress] The contract address of NFT or ERC20 Token
|
|
504
|
+
* @param {string} [tokenId] An `uint256` token id as string
|
|
505
|
+
* @param {string} [accountAddress] The account address activity contains
|
|
506
|
+
* @param {ActivityType} [activityType] The activity type
|
|
507
|
+
* @param {string} [fromIndexedAt] From indexed at including given date
|
|
508
|
+
* @param {string} [toIndexedAt] To indexed at including given date
|
|
509
|
+
* @param {string} [transactionHash] The transaction hash of activity
|
|
510
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
511
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
502
512
|
* @param {*} [options] Override http request option.
|
|
503
513
|
* @throws {RequiredError}
|
|
504
514
|
*/
|
|
505
|
-
listActivities(
|
|
506
|
-
return localVarFp.listActivities(
|
|
515
|
+
listActivities(chainName, contractAddress, tokenId, accountAddress, activityType, fromIndexedAt, toIndexedAt, transactionHash, pageCursor, pageSize, options) {
|
|
516
|
+
return localVarFp.listActivities(chainName, contractAddress, tokenId, accountAddress, activityType, fromIndexedAt, toIndexedAt, transactionHash, pageCursor, pageSize, options).then((request) => request(axios, basePath));
|
|
507
517
|
},
|
|
508
518
|
};
|
|
509
519
|
};
|
|
@@ -623,12 +633,13 @@ const ChainsApiFactory = function (configuration, basePath, axios) {
|
|
|
623
633
|
/**
|
|
624
634
|
* List supported chains
|
|
625
635
|
* @summary List supported chains
|
|
626
|
-
* @param {
|
|
636
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
637
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
627
638
|
* @param {*} [options] Override http request option.
|
|
628
639
|
* @throws {RequiredError}
|
|
629
640
|
*/
|
|
630
|
-
listChains(
|
|
631
|
-
return localVarFp.listChains(
|
|
641
|
+
listChains(pageCursor, pageSize, options) {
|
|
642
|
+
return localVarFp.listChains(pageCursor, pageSize, options).then((request) => request(axios, basePath));
|
|
632
643
|
},
|
|
633
644
|
};
|
|
634
645
|
};
|
|
@@ -907,42 +918,52 @@ const CollectionsApiFactory = function (configuration, basePath, axios) {
|
|
|
907
918
|
/**
|
|
908
919
|
* Get collection by contract address
|
|
909
920
|
* @summary Get collection by contract address
|
|
910
|
-
* @param {
|
|
921
|
+
* @param {string} contractAddress The address contract
|
|
922
|
+
* @param {string} chainName The name of chain
|
|
911
923
|
* @param {*} [options] Override http request option.
|
|
912
924
|
* @throws {RequiredError}
|
|
913
925
|
*/
|
|
914
|
-
getCollection(
|
|
915
|
-
return localVarFp.getCollection(
|
|
926
|
+
getCollection(contractAddress, chainName, options) {
|
|
927
|
+
return localVarFp.getCollection(contractAddress, chainName, options).then((request) => request(axios, basePath));
|
|
916
928
|
},
|
|
917
929
|
/**
|
|
918
930
|
* List all collections
|
|
919
931
|
* @summary List all collections
|
|
920
|
-
* @param {
|
|
932
|
+
* @param {string} chainName The name of chain
|
|
933
|
+
* @param {Array<string>} [contractAddress] List of contract addresses to filter by
|
|
934
|
+
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
935
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
936
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
921
937
|
* @param {*} [options] Override http request option.
|
|
922
938
|
* @throws {RequiredError}
|
|
923
939
|
*/
|
|
924
|
-
listCollections(
|
|
925
|
-
return localVarFp.listCollections(
|
|
940
|
+
listCollections(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options) {
|
|
941
|
+
return localVarFp.listCollections(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options).then((request) => request(axios, basePath));
|
|
926
942
|
},
|
|
927
943
|
/**
|
|
928
944
|
* List collections by NFT owner account address
|
|
929
945
|
* @summary List collections by NFT owner
|
|
930
|
-
* @param {
|
|
946
|
+
* @param {string} accountAddress Account address
|
|
947
|
+
* @param {string} chainName The name of chain
|
|
948
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
949
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
931
950
|
* @param {*} [options] Override http request option.
|
|
932
951
|
* @throws {RequiredError}
|
|
933
952
|
*/
|
|
934
|
-
listCollectionsByNFTOwner(
|
|
935
|
-
return localVarFp.listCollectionsByNFTOwner(
|
|
953
|
+
listCollectionsByNFTOwner(accountAddress, chainName, pageCursor, pageSize, options) {
|
|
954
|
+
return localVarFp.listCollectionsByNFTOwner(accountAddress, chainName, pageCursor, pageSize, options).then((request) => request(axios, basePath));
|
|
936
955
|
},
|
|
937
956
|
/**
|
|
938
957
|
* Refresh collection metadata
|
|
939
958
|
* @summary Refresh collection metadata
|
|
940
|
-
* @param {
|
|
959
|
+
* @param {string} contractAddress The address contract
|
|
960
|
+
* @param {string} chainName The name of chain
|
|
961
|
+
* @param {RefreshCollectionMetadataRequest} refreshCollectionMetadataRequest The request body
|
|
941
962
|
* @param {*} [options] Override http request option.
|
|
942
963
|
* @throws {RequiredError}
|
|
943
964
|
*/
|
|
944
|
-
refreshCollectionMetadata(
|
|
945
|
-
return localVarFp.refreshCollectionMetadata(
|
|
965
|
+
refreshCollectionMetadata(contractAddress, chainName, refreshCollectionMetadataRequest, options) {
|
|
966
|
+
return localVarFp.refreshCollectionMetadata(contractAddress, chainName, refreshCollectionMetadataRequest, options).then((request) => request(axios, basePath));
|
|
946
967
|
},
|
|
947
968
|
};
|
|
948
969
|
};
|
|
@@ -1257,42 +1278,52 @@ const MetadataApiFactory = function (configuration, basePath, axios) {
|
|
|
1257
1278
|
/**
|
|
1258
1279
|
* Get metadata by ID
|
|
1259
1280
|
* @summary Get metadata by ID
|
|
1260
|
-
* @param {
|
|
1281
|
+
* @param {string} chainName The name of chain
|
|
1282
|
+
* @param {string} contractAddress The address of metadata contract
|
|
1283
|
+
* @param {string} metadataId The id of the metadata
|
|
1261
1284
|
* @param {*} [options] Override http request option.
|
|
1262
1285
|
* @throws {RequiredError}
|
|
1263
1286
|
*/
|
|
1264
|
-
getMetadata(
|
|
1265
|
-
return localVarFp.getMetadata(
|
|
1287
|
+
getMetadata(chainName, contractAddress, metadataId, options) {
|
|
1288
|
+
return localVarFp.getMetadata(chainName, contractAddress, metadataId, options).then((request) => request(axios, basePath));
|
|
1266
1289
|
},
|
|
1267
1290
|
/**
|
|
1268
1291
|
* Get a list of metadata by from the a given contract
|
|
1269
1292
|
* @summary Get a list of metadata by from the a given contract
|
|
1270
|
-
* @param {
|
|
1293
|
+
* @param {string} chainName The name of chain
|
|
1294
|
+
* @param {string} contractAddress The address of metadata contract
|
|
1295
|
+
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
1296
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
1297
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
1271
1298
|
* @param {*} [options] Override http request option.
|
|
1272
1299
|
* @throws {RequiredError}
|
|
1273
1300
|
*/
|
|
1274
|
-
listMetadata(
|
|
1275
|
-
return localVarFp.listMetadata(
|
|
1301
|
+
listMetadata(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options) {
|
|
1302
|
+
return localVarFp.listMetadata(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options).then((request) => request(axios, basePath));
|
|
1276
1303
|
},
|
|
1277
1304
|
/**
|
|
1278
1305
|
* Refresh stacked metadata
|
|
1279
1306
|
* @summary Refresh stacked metadata
|
|
1280
|
-
* @param {
|
|
1307
|
+
* @param {string} chainName The name of chain
|
|
1308
|
+
* @param {string} contractAddress Contract address
|
|
1309
|
+
* @param {RefreshMetadataByIDRequest} refreshMetadataByIDRequest NFT Metadata Refresh Request
|
|
1281
1310
|
* @param {*} [options] Override http request option.
|
|
1282
1311
|
* @throws {RequiredError}
|
|
1283
1312
|
*/
|
|
1284
|
-
refreshMetadataByID(
|
|
1285
|
-
return localVarFp.refreshMetadataByID(
|
|
1313
|
+
refreshMetadataByID(chainName, contractAddress, refreshMetadataByIDRequest, options) {
|
|
1314
|
+
return localVarFp.refreshMetadataByID(chainName, contractAddress, refreshMetadataByIDRequest, options).then((request) => request(axios, basePath));
|
|
1286
1315
|
},
|
|
1287
1316
|
/**
|
|
1288
1317
|
* Refresh NFT metadata
|
|
1289
1318
|
* @summary Refresh NFT metadata
|
|
1290
|
-
* @param {
|
|
1319
|
+
* @param {string} contractAddress The address of contract
|
|
1320
|
+
* @param {string} chainName The name of chain
|
|
1321
|
+
* @param {RefreshNFTMetadataByTokenIDRequest} refreshNFTMetadataByTokenIDRequest the request body
|
|
1291
1322
|
* @param {*} [options] Override http request option.
|
|
1292
1323
|
* @throws {RequiredError}
|
|
1293
1324
|
*/
|
|
1294
|
-
refreshNFTMetadataByTokenID(
|
|
1295
|
-
return localVarFp.refreshNFTMetadataByTokenID(
|
|
1325
|
+
refreshNFTMetadataByTokenID(contractAddress, chainName, refreshNFTMetadataByTokenIDRequest, options) {
|
|
1326
|
+
return localVarFp.refreshNFTMetadataByTokenID(contractAddress, chainName, refreshNFTMetadataByTokenIDRequest, options).then((request) => request(axios, basePath));
|
|
1296
1327
|
},
|
|
1297
1328
|
};
|
|
1298
1329
|
};
|
|
@@ -1511,22 +1542,30 @@ const NftOwnersApiFactory = function (configuration, basePath, axios) {
|
|
|
1511
1542
|
/**
|
|
1512
1543
|
* List NFT owners by token ID
|
|
1513
1544
|
* @summary List NFT owners by token ID
|
|
1514
|
-
* @param {
|
|
1545
|
+
* @param {string} contractAddress The address of contract
|
|
1546
|
+
* @param {string} tokenId An `uint256` token id as string
|
|
1547
|
+
* @param {string} chainName The name of chain
|
|
1548
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
1549
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
1515
1550
|
* @param {*} [options] Override http request option.
|
|
1516
1551
|
* @throws {RequiredError}
|
|
1517
1552
|
*/
|
|
1518
|
-
listNFTOwners(
|
|
1519
|
-
return localVarFp.listNFTOwners(
|
|
1553
|
+
listNFTOwners(contractAddress, tokenId, chainName, pageCursor, pageSize, options) {
|
|
1554
|
+
return localVarFp.listNFTOwners(contractAddress, tokenId, chainName, pageCursor, pageSize, options).then((request) => request(axios, basePath));
|
|
1520
1555
|
},
|
|
1521
1556
|
/**
|
|
1522
1557
|
* List owners by contract address
|
|
1523
1558
|
* @summary List owners by contract address
|
|
1524
|
-
* @param {
|
|
1559
|
+
* @param {string} contractAddress The address of contract
|
|
1560
|
+
* @param {string} chainName The name of chain
|
|
1561
|
+
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
1562
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
1563
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
1525
1564
|
* @param {*} [options] Override http request option.
|
|
1526
1565
|
* @throws {RequiredError}
|
|
1527
1566
|
*/
|
|
1528
|
-
listOwnersByContractAddress(
|
|
1529
|
-
return localVarFp.listOwnersByContractAddress(
|
|
1567
|
+
listOwnersByContractAddress(contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options) {
|
|
1568
|
+
return localVarFp.listOwnersByContractAddress(contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options).then((request) => request(axios, basePath));
|
|
1530
1569
|
},
|
|
1531
1570
|
};
|
|
1532
1571
|
};
|
|
@@ -1889,52 +1928,68 @@ const NftsApiFactory = function (configuration, basePath, axios) {
|
|
|
1889
1928
|
/**
|
|
1890
1929
|
* Get NFT by token ID
|
|
1891
1930
|
* @summary Get NFT by token ID
|
|
1892
|
-
* @param {
|
|
1931
|
+
* @param {string} contractAddress The address of NFT contract
|
|
1932
|
+
* @param {string} tokenId An `uint256` token id as string
|
|
1933
|
+
* @param {string} chainName The name of chain
|
|
1893
1934
|
* @param {*} [options] Override http request option.
|
|
1894
1935
|
* @throws {RequiredError}
|
|
1895
1936
|
*/
|
|
1896
|
-
getNFT(
|
|
1897
|
-
return localVarFp.getNFT(
|
|
1937
|
+
getNFT(contractAddress, tokenId, chainName, options) {
|
|
1938
|
+
return localVarFp.getNFT(contractAddress, tokenId, chainName, options).then((request) => request(axios, basePath));
|
|
1898
1939
|
},
|
|
1899
1940
|
/**
|
|
1900
1941
|
* List all NFT owners on a chain
|
|
1901
1942
|
* @summary List all NFT owners
|
|
1902
|
-
* @param {
|
|
1943
|
+
* @param {string} chainName The name of chain
|
|
1944
|
+
* @param {string} fromUpdatedAt Datetime to use as the oldest updated timestamp
|
|
1945
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
1946
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
1903
1947
|
* @param {*} [options] Override http request option.
|
|
1904
1948
|
* @throws {RequiredError}
|
|
1905
1949
|
*/
|
|
1906
|
-
listAllNFTOwners(
|
|
1907
|
-
return localVarFp.listAllNFTOwners(
|
|
1950
|
+
listAllNFTOwners(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
|
|
1951
|
+
return localVarFp.listAllNFTOwners(chainName, fromUpdatedAt, pageCursor, pageSize, options).then((request) => request(axios, basePath));
|
|
1908
1952
|
},
|
|
1909
1953
|
/**
|
|
1910
1954
|
* List all NFTs on a chain
|
|
1911
1955
|
* @summary List all NFTs
|
|
1912
|
-
* @param {
|
|
1956
|
+
* @param {string} chainName The name of chain
|
|
1957
|
+
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
1958
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
1959
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
1913
1960
|
* @param {*} [options] Override http request option.
|
|
1914
1961
|
* @throws {RequiredError}
|
|
1915
1962
|
*/
|
|
1916
|
-
listAllNFTs(
|
|
1917
|
-
return localVarFp.listAllNFTs(
|
|
1963
|
+
listAllNFTs(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
|
|
1964
|
+
return localVarFp.listAllNFTs(chainName, fromUpdatedAt, pageCursor, pageSize, options).then((request) => request(axios, basePath));
|
|
1918
1965
|
},
|
|
1919
1966
|
/**
|
|
1920
1967
|
* List NFTs by contract address
|
|
1921
1968
|
* @summary List NFTs by contract address
|
|
1922
|
-
* @param {
|
|
1969
|
+
* @param {string} contractAddress Contract address
|
|
1970
|
+
* @param {string} chainName The name of chain
|
|
1971
|
+
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
1972
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
1973
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
1923
1974
|
* @param {*} [options] Override http request option.
|
|
1924
1975
|
* @throws {RequiredError}
|
|
1925
1976
|
*/
|
|
1926
|
-
listNFTs(
|
|
1927
|
-
return localVarFp.listNFTs(
|
|
1977
|
+
listNFTs(contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options) {
|
|
1978
|
+
return localVarFp.listNFTs(contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options).then((request) => request(axios, basePath));
|
|
1928
1979
|
},
|
|
1929
1980
|
/**
|
|
1930
1981
|
* List NFTs by account address
|
|
1931
1982
|
* @summary List NFTs by account address
|
|
1932
|
-
* @param {
|
|
1983
|
+
* @param {string} accountAddress Account address
|
|
1984
|
+
* @param {string} chainName The name of chain
|
|
1985
|
+
* @param {string} [contractAddress] The address of contract
|
|
1986
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
1987
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
1933
1988
|
* @param {*} [options] Override http request option.
|
|
1934
1989
|
* @throws {RequiredError}
|
|
1935
1990
|
*/
|
|
1936
|
-
listNFTsByAccountAddress(
|
|
1937
|
-
return localVarFp.listNFTsByAccountAddress(
|
|
1991
|
+
listNFTsByAccountAddress(accountAddress, chainName, contractAddress, pageCursor, pageSize, options) {
|
|
1992
|
+
return localVarFp.listNFTsByAccountAddress(accountAddress, chainName, contractAddress, pageCursor, pageSize, options).then((request) => request(axios, basePath));
|
|
1938
1993
|
},
|
|
1939
1994
|
};
|
|
1940
1995
|
};
|
|
@@ -2198,8 +2253,8 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
2198
2253
|
* @param {string} [buyItemContractAddress] Buy item contract address to filter by
|
|
2199
2254
|
* @param {string} [sellItemTokenId] Sell item token identifier to filter by
|
|
2200
2255
|
* @param {number} [pageSize] Maximum number of orders to return per page
|
|
2201
|
-
* @param {
|
|
2202
|
-
* @param {
|
|
2256
|
+
* @param {'created_at' | 'updated_at' | 'buy_item_amount'} [sortBy] Order field to sort by
|
|
2257
|
+
* @param {'asc' | 'desc'} [sortDirection] Ascending or descending direction for sort
|
|
2203
2258
|
* @param {string} [pageCursor] Page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
2204
2259
|
* @param {*} [options] Override http request option.
|
|
2205
2260
|
* @throws {RequiredError}
|
|
@@ -2256,8 +2311,8 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
2256
2311
|
* @param {string} chainName
|
|
2257
2312
|
* @param {string} [accountAddress]
|
|
2258
2313
|
* @param {number} [pageSize] Maximum number of trades to return per page
|
|
2259
|
-
* @param {
|
|
2260
|
-
* @param {
|
|
2314
|
+
* @param {'indexed_at'} [sortBy] Trade field to sort by
|
|
2315
|
+
* @param {'asc' | 'desc'} [sortDirection] Ascending or descending direction for sort
|
|
2261
2316
|
* @param {string} [pageCursor] Page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
2262
2317
|
* @param {*} [options] Override http request option.
|
|
2263
2318
|
* @throws {RequiredError}
|
|
@@ -2377,8 +2432,8 @@ const OrdersApiFp = function (configuration) {
|
|
|
2377
2432
|
* @param {string} [buyItemContractAddress] Buy item contract address to filter by
|
|
2378
2433
|
* @param {string} [sellItemTokenId] Sell item token identifier to filter by
|
|
2379
2434
|
* @param {number} [pageSize] Maximum number of orders to return per page
|
|
2380
|
-
* @param {
|
|
2381
|
-
* @param {
|
|
2435
|
+
* @param {'created_at' | 'updated_at' | 'buy_item_amount'} [sortBy] Order field to sort by
|
|
2436
|
+
* @param {'asc' | 'desc'} [sortDirection] Ascending or descending direction for sort
|
|
2382
2437
|
* @param {string} [pageCursor] Page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
2383
2438
|
* @param {*} [options] Override http request option.
|
|
2384
2439
|
* @throws {RequiredError}
|
|
@@ -2393,8 +2448,8 @@ const OrdersApiFp = function (configuration) {
|
|
|
2393
2448
|
* @param {string} chainName
|
|
2394
2449
|
* @param {string} [accountAddress]
|
|
2395
2450
|
* @param {number} [pageSize] Maximum number of trades to return per page
|
|
2396
|
-
* @param {
|
|
2397
|
-
* @param {
|
|
2451
|
+
* @param {'indexed_at'} [sortBy] Trade field to sort by
|
|
2452
|
+
* @param {'asc' | 'desc'} [sortDirection] Ascending or descending direction for sort
|
|
2398
2453
|
* @param {string} [pageCursor] Page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
2399
2454
|
* @param {*} [options] Override http request option.
|
|
2400
2455
|
* @throws {RequiredError}
|
|
@@ -2415,72 +2470,90 @@ const OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
2415
2470
|
/**
|
|
2416
2471
|
* Cancel one or more orders
|
|
2417
2472
|
* @summary Cancel one or more orders
|
|
2418
|
-
* @param {
|
|
2473
|
+
* @param {string} chainName
|
|
2474
|
+
* @param {CancelOrdersRequestBody} cancelOrdersRequestBody
|
|
2419
2475
|
* @param {*} [options] Override http request option.
|
|
2420
2476
|
* @throws {RequiredError}
|
|
2421
2477
|
*/
|
|
2422
|
-
cancelOrders(
|
|
2423
|
-
return localVarFp.cancelOrders(
|
|
2478
|
+
cancelOrders(chainName, cancelOrdersRequestBody, options) {
|
|
2479
|
+
return localVarFp.cancelOrders(chainName, cancelOrdersRequestBody, options).then((request) => request(axios, basePath));
|
|
2424
2480
|
},
|
|
2425
2481
|
/**
|
|
2426
2482
|
* Create a listing
|
|
2427
2483
|
* @summary Create a listing
|
|
2428
|
-
* @param {
|
|
2484
|
+
* @param {string} chainName
|
|
2485
|
+
* @param {CreateListingRequestBody} createListingRequestBody
|
|
2429
2486
|
* @param {*} [options] Override http request option.
|
|
2430
2487
|
* @throws {RequiredError}
|
|
2431
2488
|
*/
|
|
2432
|
-
createListing(
|
|
2433
|
-
return localVarFp.createListing(
|
|
2489
|
+
createListing(chainName, createListingRequestBody, options) {
|
|
2490
|
+
return localVarFp.createListing(chainName, createListingRequestBody, options).then((request) => request(axios, basePath));
|
|
2434
2491
|
},
|
|
2435
2492
|
/**
|
|
2436
2493
|
* Retrieve signed fulfillment data based on the list of order IDs and corresponding fees.
|
|
2437
2494
|
* @summary Retrieve fulfillment data for orders
|
|
2438
|
-
* @param {
|
|
2495
|
+
* @param {string} chainName
|
|
2496
|
+
* @param {Array<FulfillmentDataRequest>} fulfillmentDataRequest
|
|
2439
2497
|
* @param {*} [options] Override http request option.
|
|
2440
2498
|
* @throws {RequiredError}
|
|
2441
2499
|
*/
|
|
2442
|
-
fulfillmentData(
|
|
2443
|
-
return localVarFp.fulfillmentData(
|
|
2500
|
+
fulfillmentData(chainName, fulfillmentDataRequest, options) {
|
|
2501
|
+
return localVarFp.fulfillmentData(chainName, fulfillmentDataRequest, options).then((request) => request(axios, basePath));
|
|
2444
2502
|
},
|
|
2445
2503
|
/**
|
|
2446
2504
|
* Get a single listing by ID
|
|
2447
2505
|
* @summary Get a single listing by ID
|
|
2448
|
-
* @param {
|
|
2506
|
+
* @param {string} chainName
|
|
2507
|
+
* @param {string} listingId Global Order identifier
|
|
2449
2508
|
* @param {*} [options] Override http request option.
|
|
2450
2509
|
* @throws {RequiredError}
|
|
2451
2510
|
*/
|
|
2452
|
-
getListing(
|
|
2453
|
-
return localVarFp.getListing(
|
|
2511
|
+
getListing(chainName, listingId, options) {
|
|
2512
|
+
return localVarFp.getListing(chainName, listingId, options).then((request) => request(axios, basePath));
|
|
2454
2513
|
},
|
|
2455
2514
|
/**
|
|
2456
2515
|
* Get a single trade by ID
|
|
2457
2516
|
* @summary Get a single trade by ID
|
|
2458
|
-
* @param {
|
|
2517
|
+
* @param {string} chainName
|
|
2518
|
+
* @param {string} tradeId Global Trade identifier
|
|
2459
2519
|
* @param {*} [options] Override http request option.
|
|
2460
2520
|
* @throws {RequiredError}
|
|
2461
2521
|
*/
|
|
2462
|
-
getTrade(
|
|
2463
|
-
return localVarFp.getTrade(
|
|
2522
|
+
getTrade(chainName, tradeId, options) {
|
|
2523
|
+
return localVarFp.getTrade(chainName, tradeId, options).then((request) => request(axios, basePath));
|
|
2464
2524
|
},
|
|
2465
2525
|
/**
|
|
2466
2526
|
* List all listings
|
|
2467
2527
|
* @summary List all listings
|
|
2468
|
-
* @param {
|
|
2528
|
+
* @param {string} chainName
|
|
2529
|
+
* @param {OrderStatusName} [status] Order status to filter by
|
|
2530
|
+
* @param {string} [sellItemContractAddress] Sell item contract address to filter by
|
|
2531
|
+
* @param {string} [buyItemContractAddress] Buy item contract address to filter by
|
|
2532
|
+
* @param {string} [sellItemTokenId] Sell item token identifier to filter by
|
|
2533
|
+
* @param {number} [pageSize] Maximum number of orders to return per page
|
|
2534
|
+
* @param {'created_at' | 'updated_at' | 'buy_item_amount'} [sortBy] Order field to sort by
|
|
2535
|
+
* @param {'asc' | 'desc'} [sortDirection] Ascending or descending direction for sort
|
|
2536
|
+
* @param {string} [pageCursor] Page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
2469
2537
|
* @param {*} [options] Override http request option.
|
|
2470
2538
|
* @throws {RequiredError}
|
|
2471
2539
|
*/
|
|
2472
|
-
listListings(
|
|
2473
|
-
return localVarFp.listListings(
|
|
2540
|
+
listListings(chainName, status, sellItemContractAddress, buyItemContractAddress, sellItemTokenId, pageSize, sortBy, sortDirection, pageCursor, options) {
|
|
2541
|
+
return localVarFp.listListings(chainName, status, sellItemContractAddress, buyItemContractAddress, sellItemTokenId, pageSize, sortBy, sortDirection, pageCursor, options).then((request) => request(axios, basePath));
|
|
2474
2542
|
},
|
|
2475
2543
|
/**
|
|
2476
2544
|
* List all trades
|
|
2477
2545
|
* @summary List all trades
|
|
2478
|
-
* @param {
|
|
2546
|
+
* @param {string} chainName
|
|
2547
|
+
* @param {string} [accountAddress]
|
|
2548
|
+
* @param {number} [pageSize] Maximum number of trades to return per page
|
|
2549
|
+
* @param {'indexed_at'} [sortBy] Trade field to sort by
|
|
2550
|
+
* @param {'asc' | 'desc'} [sortDirection] Ascending or descending direction for sort
|
|
2551
|
+
* @param {string} [pageCursor] Page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
2479
2552
|
* @param {*} [options] Override http request option.
|
|
2480
2553
|
* @throws {RequiredError}
|
|
2481
2554
|
*/
|
|
2482
|
-
listTrades(
|
|
2483
|
-
return localVarFp.listTrades(
|
|
2555
|
+
listTrades(chainName, accountAddress, pageSize, sortBy, sortDirection, pageCursor, options) {
|
|
2556
|
+
return localVarFp.listTrades(chainName, accountAddress, pageSize, sortBy, sortDirection, pageCursor, options).then((request) => request(axios, basePath));
|
|
2484
2557
|
},
|
|
2485
2558
|
};
|
|
2486
2559
|
};
|
|
@@ -2569,34 +2642,6 @@ class OrdersApi extends BaseAPI$1 {
|
|
|
2569
2642
|
return OrdersApiFp(this.configuration).listTrades(requestParameters.chainName, requestParameters.accountAddress, requestParameters.pageSize, requestParameters.sortBy, requestParameters.sortDirection, requestParameters.pageCursor, options).then((request) => request(this.axios, this.basePath));
|
|
2570
2643
|
}
|
|
2571
2644
|
}
|
|
2572
|
-
/**
|
|
2573
|
-
* @export
|
|
2574
|
-
*/
|
|
2575
|
-
const ListListingsSortByEnum$1 = {
|
|
2576
|
-
CreatedAt: 'created_at',
|
|
2577
|
-
UpdatedAt: 'updated_at',
|
|
2578
|
-
BuyItemAmount: 'buy_item_amount'
|
|
2579
|
-
};
|
|
2580
|
-
/**
|
|
2581
|
-
* @export
|
|
2582
|
-
*/
|
|
2583
|
-
const ListListingsSortDirectionEnum$1 = {
|
|
2584
|
-
Asc: 'asc',
|
|
2585
|
-
Desc: 'desc'
|
|
2586
|
-
};
|
|
2587
|
-
/**
|
|
2588
|
-
* @export
|
|
2589
|
-
*/
|
|
2590
|
-
const ListTradesSortByEnum$1 = {
|
|
2591
|
-
IndexedAt: 'indexed_at'
|
|
2592
|
-
};
|
|
2593
|
-
/**
|
|
2594
|
-
* @export
|
|
2595
|
-
*/
|
|
2596
|
-
const ListTradesSortDirectionEnum$1 = {
|
|
2597
|
-
Asc: 'asc',
|
|
2598
|
-
Desc: 'desc'
|
|
2599
|
-
};
|
|
2600
2645
|
|
|
2601
2646
|
/* tslint:disable */
|
|
2602
2647
|
/* eslint-disable */
|
|
@@ -2725,22 +2770,22 @@ const PassportApiFactory = function (configuration, basePath, axios) {
|
|
|
2725
2770
|
/**
|
|
2726
2771
|
* Create a counterfactual address for a user based on their Ethereum address
|
|
2727
2772
|
* @summary Create a counterfactual address
|
|
2728
|
-
* @param {
|
|
2773
|
+
* @param {CreateCounterfactualAddressRequest} createCounterfactualAddressRequest
|
|
2729
2774
|
* @param {*} [options] Override http request option.
|
|
2730
2775
|
* @throws {RequiredError}
|
|
2731
2776
|
*/
|
|
2732
|
-
createCounterfactualAddress(
|
|
2733
|
-
return localVarFp.createCounterfactualAddress(
|
|
2777
|
+
createCounterfactualAddress(createCounterfactualAddressRequest, options) {
|
|
2778
|
+
return localVarFp.createCounterfactualAddress(createCounterfactualAddressRequest, options).then((request) => request(axios, basePath));
|
|
2734
2779
|
},
|
|
2735
2780
|
/**
|
|
2736
2781
|
* Get all the Ethereum linked addresses for a user based on its userId
|
|
2737
2782
|
* @summary Get Ethereum linked addresses for a user
|
|
2738
|
-
* @param {
|
|
2783
|
+
* @param {string} userId The user\'s userId
|
|
2739
2784
|
* @param {*} [options] Override http request option.
|
|
2740
2785
|
* @throws {RequiredError}
|
|
2741
2786
|
*/
|
|
2742
|
-
getLinkedAddresses(
|
|
2743
|
-
return localVarFp.getLinkedAddresses(
|
|
2787
|
+
getLinkedAddresses(userId, options) {
|
|
2788
|
+
return localVarFp.getLinkedAddresses(userId, options).then((request) => request(axios, basePath));
|
|
2744
2789
|
},
|
|
2745
2790
|
};
|
|
2746
2791
|
};
|
|
@@ -2917,22 +2962,26 @@ const TokensApiFactory = function (configuration, basePath, axios) {
|
|
|
2917
2962
|
/**
|
|
2918
2963
|
* Get single ERC20 token
|
|
2919
2964
|
* @summary Get single ERC20 token
|
|
2920
|
-
* @param {
|
|
2965
|
+
* @param {string} contractAddress The address of contract
|
|
2966
|
+
* @param {string} chainName The name of chain
|
|
2921
2967
|
* @param {*} [options] Override http request option.
|
|
2922
2968
|
* @throws {RequiredError}
|
|
2923
2969
|
*/
|
|
2924
|
-
getERC20Token(
|
|
2925
|
-
return localVarFp.getERC20Token(
|
|
2970
|
+
getERC20Token(contractAddress, chainName, options) {
|
|
2971
|
+
return localVarFp.getERC20Token(contractAddress, chainName, options).then((request) => request(axios, basePath));
|
|
2926
2972
|
},
|
|
2927
2973
|
/**
|
|
2928
2974
|
* List ERC20 tokens
|
|
2929
2975
|
* @summary List ERC20 tokens
|
|
2930
|
-
* @param {
|
|
2976
|
+
* @param {string} chainName The name of chain
|
|
2977
|
+
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
2978
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
2979
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
2931
2980
|
* @param {*} [options] Override http request option.
|
|
2932
2981
|
* @throws {RequiredError}
|
|
2933
2982
|
*/
|
|
2934
|
-
listERC20Tokens(
|
|
2935
|
-
return localVarFp.listERC20Tokens(
|
|
2983
|
+
listERC20Tokens(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
|
|
2984
|
+
return localVarFp.listERC20Tokens(chainName, fromUpdatedAt, pageCursor, pageSize, options).then((request) => request(axios, basePath));
|
|
2936
2985
|
},
|
|
2937
2986
|
};
|
|
2938
2987
|
};
|
|
@@ -3055,6 +3104,125 @@ let Configuration$2 = class Configuration {
|
|
|
3055
3104
|
}
|
|
3056
3105
|
};
|
|
3057
3106
|
|
|
3107
|
+
/* tslint:disable */
|
|
3108
|
+
/* eslint-disable */
|
|
3109
|
+
/**
|
|
3110
|
+
* Immutable zkEVM API
|
|
3111
|
+
* Immutable Multi Rollup API
|
|
3112
|
+
*
|
|
3113
|
+
* The version of the OpenAPI document: 1.0.0
|
|
3114
|
+
* Contact: support@immutable.com
|
|
3115
|
+
*
|
|
3116
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3117
|
+
* https://openapi-generator.tech
|
|
3118
|
+
* Do not edit the class manually.
|
|
3119
|
+
*/
|
|
3120
|
+
const APIError400AllOfCodeEnum = {
|
|
3121
|
+
ValidationError: 'VALIDATION_ERROR'
|
|
3122
|
+
};
|
|
3123
|
+
|
|
3124
|
+
/* tslint:disable */
|
|
3125
|
+
/* eslint-disable */
|
|
3126
|
+
/**
|
|
3127
|
+
* Immutable zkEVM API
|
|
3128
|
+
* Immutable Multi Rollup API
|
|
3129
|
+
*
|
|
3130
|
+
* The version of the OpenAPI document: 1.0.0
|
|
3131
|
+
* Contact: support@immutable.com
|
|
3132
|
+
*
|
|
3133
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3134
|
+
* https://openapi-generator.tech
|
|
3135
|
+
* Do not edit the class manually.
|
|
3136
|
+
*/
|
|
3137
|
+
const APIError401AllOfCodeEnum = {
|
|
3138
|
+
UnauthorisedRequest: 'UNAUTHORISED_REQUEST'
|
|
3139
|
+
};
|
|
3140
|
+
|
|
3141
|
+
/* tslint:disable */
|
|
3142
|
+
/* eslint-disable */
|
|
3143
|
+
/**
|
|
3144
|
+
* Immutable zkEVM API
|
|
3145
|
+
* Immutable Multi Rollup API
|
|
3146
|
+
*
|
|
3147
|
+
* The version of the OpenAPI document: 1.0.0
|
|
3148
|
+
* Contact: support@immutable.com
|
|
3149
|
+
*
|
|
3150
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3151
|
+
* https://openapi-generator.tech
|
|
3152
|
+
* Do not edit the class manually.
|
|
3153
|
+
*/
|
|
3154
|
+
const APIError403AllOfCodeEnum = {
|
|
3155
|
+
AuthenticationError: 'AUTHENTICATION_ERROR'
|
|
3156
|
+
};
|
|
3157
|
+
|
|
3158
|
+
/* tslint:disable */
|
|
3159
|
+
/* eslint-disable */
|
|
3160
|
+
/**
|
|
3161
|
+
* Immutable zkEVM API
|
|
3162
|
+
* Immutable Multi Rollup API
|
|
3163
|
+
*
|
|
3164
|
+
* The version of the OpenAPI document: 1.0.0
|
|
3165
|
+
* Contact: support@immutable.com
|
|
3166
|
+
*
|
|
3167
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3168
|
+
* https://openapi-generator.tech
|
|
3169
|
+
* Do not edit the class manually.
|
|
3170
|
+
*/
|
|
3171
|
+
const APIError404AllOfCodeEnum = {
|
|
3172
|
+
ResourceNotFound: 'RESOURCE_NOT_FOUND'
|
|
3173
|
+
};
|
|
3174
|
+
|
|
3175
|
+
/* tslint:disable */
|
|
3176
|
+
/* eslint-disable */
|
|
3177
|
+
/**
|
|
3178
|
+
* Immutable zkEVM API
|
|
3179
|
+
* Immutable Multi Rollup API
|
|
3180
|
+
*
|
|
3181
|
+
* The version of the OpenAPI document: 1.0.0
|
|
3182
|
+
* Contact: support@immutable.com
|
|
3183
|
+
*
|
|
3184
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3185
|
+
* https://openapi-generator.tech
|
|
3186
|
+
* Do not edit the class manually.
|
|
3187
|
+
*/
|
|
3188
|
+
const APIError429AllOfCodeEnum = {
|
|
3189
|
+
TooManyRequestsError: 'TOO_MANY_REQUESTS_ERROR'
|
|
3190
|
+
};
|
|
3191
|
+
|
|
3192
|
+
/* tslint:disable */
|
|
3193
|
+
/* eslint-disable */
|
|
3194
|
+
/**
|
|
3195
|
+
* Immutable zkEVM API
|
|
3196
|
+
* Immutable Multi Rollup API
|
|
3197
|
+
*
|
|
3198
|
+
* The version of the OpenAPI document: 1.0.0
|
|
3199
|
+
* Contact: support@immutable.com
|
|
3200
|
+
*
|
|
3201
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3202
|
+
* https://openapi-generator.tech
|
|
3203
|
+
* Do not edit the class manually.
|
|
3204
|
+
*/
|
|
3205
|
+
const APIError500AllOfCodeEnum = {
|
|
3206
|
+
InternalServerError: 'INTERNAL_SERVER_ERROR'
|
|
3207
|
+
};
|
|
3208
|
+
|
|
3209
|
+
/* tslint:disable */
|
|
3210
|
+
/* eslint-disable */
|
|
3211
|
+
/**
|
|
3212
|
+
* Immutable zkEVM API
|
|
3213
|
+
* Immutable Multi Rollup API
|
|
3214
|
+
*
|
|
3215
|
+
* The version of the OpenAPI document: 1.0.0
|
|
3216
|
+
* Contact: support@immutable.com
|
|
3217
|
+
*
|
|
3218
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3219
|
+
* https://openapi-generator.tech
|
|
3220
|
+
* Do not edit the class manually.
|
|
3221
|
+
*/
|
|
3222
|
+
const APIError501AllOfCodeEnum = {
|
|
3223
|
+
NotImplementedError: 'NOT_IMPLEMENTED_ERROR'
|
|
3224
|
+
};
|
|
3225
|
+
|
|
3058
3226
|
/* tslint:disable */
|
|
3059
3227
|
/* eslint-disable */
|
|
3060
3228
|
/**
|
|
@@ -3419,6 +3587,13 @@ const TokenContractType = {
|
|
|
3419
3587
|
|
|
3420
3588
|
var index = /*#__PURE__*/Object.freeze({
|
|
3421
3589
|
__proto__: null,
|
|
3590
|
+
APIError400AllOfCodeEnum: APIError400AllOfCodeEnum,
|
|
3591
|
+
APIError401AllOfCodeEnum: APIError401AllOfCodeEnum,
|
|
3592
|
+
APIError403AllOfCodeEnum: APIError403AllOfCodeEnum,
|
|
3593
|
+
APIError404AllOfCodeEnum: APIError404AllOfCodeEnum,
|
|
3594
|
+
APIError429AllOfCodeEnum: APIError429AllOfCodeEnum,
|
|
3595
|
+
APIError500AllOfCodeEnum: APIError500AllOfCodeEnum,
|
|
3596
|
+
APIError501AllOfCodeEnum: APIError501AllOfCodeEnum,
|
|
3422
3597
|
ActiveOrderStatusNameEnum: ActiveOrderStatusNameEnum,
|
|
3423
3598
|
ActivitiesApi: ActivitiesApi,
|
|
3424
3599
|
ActivitiesApiAxiosParamCreator: ActivitiesApiAxiosParamCreator,
|
|
@@ -3444,10 +3619,6 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
3444
3619
|
FeeFeeTypeEnum: FeeFeeTypeEnum,
|
|
3445
3620
|
FilledOrderStatusNameEnum: FilledOrderStatusNameEnum,
|
|
3446
3621
|
InactiveOrderStatusNameEnum: InactiveOrderStatusNameEnum,
|
|
3447
|
-
ListListingsSortByEnum: ListListingsSortByEnum$1,
|
|
3448
|
-
ListListingsSortDirectionEnum: ListListingsSortDirectionEnum$1,
|
|
3449
|
-
ListTradesSortByEnum: ListTradesSortByEnum$1,
|
|
3450
|
-
ListTradesSortDirectionEnum: ListTradesSortDirectionEnum$1,
|
|
3451
3622
|
MetadataApi: MetadataApi,
|
|
3452
3623
|
MetadataApiAxiosParamCreator: MetadataApiAxiosParamCreator,
|
|
3453
3624
|
MetadataApiFactory: MetadataApiFactory,
|
|
@@ -3481,134 +3652,6 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
3481
3652
|
TokensApiFp: TokensApiFp
|
|
3482
3653
|
});
|
|
3483
3654
|
|
|
3484
|
-
/* tslint:disable */
|
|
3485
|
-
/* eslint-disable */
|
|
3486
|
-
/**
|
|
3487
|
-
* Immutable zkEVM API
|
|
3488
|
-
* Immutable Multi Rollup API
|
|
3489
|
-
*
|
|
3490
|
-
* The version of the OpenAPI document: 1.0.0
|
|
3491
|
-
* Contact: support@immutable.com
|
|
3492
|
-
*
|
|
3493
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3494
|
-
* https://openapi-generator.tech
|
|
3495
|
-
* Do not edit the class manually.
|
|
3496
|
-
*/
|
|
3497
|
-
// @ts-ignore
|
|
3498
|
-
|
|
3499
|
-
var activitiesApiTypes = /*#__PURE__*/Object.freeze({
|
|
3500
|
-
__proto__: null,
|
|
3501
|
-
ActivityType: ActivityType
|
|
3502
|
-
});
|
|
3503
|
-
|
|
3504
|
-
/* tslint:disable */
|
|
3505
|
-
/* eslint-disable */
|
|
3506
|
-
/**
|
|
3507
|
-
* Immutable zkEVM API
|
|
3508
|
-
* Immutable Multi Rollup API
|
|
3509
|
-
*
|
|
3510
|
-
* The version of the OpenAPI document: 1.0.0
|
|
3511
|
-
* Contact: support@immutable.com
|
|
3512
|
-
*
|
|
3513
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3514
|
-
* https://openapi-generator.tech
|
|
3515
|
-
* Do not edit the class manually.
|
|
3516
|
-
*/
|
|
3517
|
-
|
|
3518
|
-
var chainsApiTypes = /*#__PURE__*/Object.freeze({
|
|
3519
|
-
__proto__: null
|
|
3520
|
-
});
|
|
3521
|
-
|
|
3522
|
-
/* tslint:disable */
|
|
3523
|
-
/* eslint-disable */
|
|
3524
|
-
/**
|
|
3525
|
-
* Immutable zkEVM API
|
|
3526
|
-
* Immutable Multi Rollup API
|
|
3527
|
-
*
|
|
3528
|
-
* The version of the OpenAPI document: 1.0.0
|
|
3529
|
-
* Contact: support@immutable.com
|
|
3530
|
-
*
|
|
3531
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3532
|
-
* https://openapi-generator.tech
|
|
3533
|
-
* Do not edit the class manually.
|
|
3534
|
-
*/
|
|
3535
|
-
|
|
3536
|
-
var collectionsApiTypes = /*#__PURE__*/Object.freeze({
|
|
3537
|
-
__proto__: null
|
|
3538
|
-
});
|
|
3539
|
-
|
|
3540
|
-
/* tslint:disable */
|
|
3541
|
-
/* eslint-disable */
|
|
3542
|
-
/**
|
|
3543
|
-
* Immutable zkEVM API
|
|
3544
|
-
* Immutable Multi Rollup API
|
|
3545
|
-
*
|
|
3546
|
-
* The version of the OpenAPI document: 1.0.0
|
|
3547
|
-
* Contact: support@immutable.com
|
|
3548
|
-
*
|
|
3549
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3550
|
-
* https://openapi-generator.tech
|
|
3551
|
-
* Do not edit the class manually.
|
|
3552
|
-
*/
|
|
3553
|
-
|
|
3554
|
-
var metadataApiTypes = /*#__PURE__*/Object.freeze({
|
|
3555
|
-
__proto__: null
|
|
3556
|
-
});
|
|
3557
|
-
|
|
3558
|
-
/* tslint:disable */
|
|
3559
|
-
/* eslint-disable */
|
|
3560
|
-
/**
|
|
3561
|
-
* Immutable zkEVM API
|
|
3562
|
-
* Immutable Multi Rollup API
|
|
3563
|
-
*
|
|
3564
|
-
* The version of the OpenAPI document: 1.0.0
|
|
3565
|
-
* Contact: support@immutable.com
|
|
3566
|
-
*
|
|
3567
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3568
|
-
* https://openapi-generator.tech
|
|
3569
|
-
* Do not edit the class manually.
|
|
3570
|
-
*/
|
|
3571
|
-
|
|
3572
|
-
var nftOwnersApiTypes = /*#__PURE__*/Object.freeze({
|
|
3573
|
-
__proto__: null
|
|
3574
|
-
});
|
|
3575
|
-
|
|
3576
|
-
/* tslint:disable */
|
|
3577
|
-
/* eslint-disable */
|
|
3578
|
-
/**
|
|
3579
|
-
* Immutable zkEVM API
|
|
3580
|
-
* Immutable Multi Rollup API
|
|
3581
|
-
*
|
|
3582
|
-
* The version of the OpenAPI document: 1.0.0
|
|
3583
|
-
* Contact: support@immutable.com
|
|
3584
|
-
*
|
|
3585
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3586
|
-
* https://openapi-generator.tech
|
|
3587
|
-
* Do not edit the class manually.
|
|
3588
|
-
*/
|
|
3589
|
-
|
|
3590
|
-
var nftsApiTypes = /*#__PURE__*/Object.freeze({
|
|
3591
|
-
__proto__: null
|
|
3592
|
-
});
|
|
3593
|
-
|
|
3594
|
-
/* tslint:disable */
|
|
3595
|
-
/* eslint-disable */
|
|
3596
|
-
/**
|
|
3597
|
-
* Immutable zkEVM API
|
|
3598
|
-
* Immutable Multi Rollup API
|
|
3599
|
-
*
|
|
3600
|
-
* The version of the OpenAPI document: 1.0.0
|
|
3601
|
-
* Contact: support@immutable.com
|
|
3602
|
-
*
|
|
3603
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3604
|
-
* https://openapi-generator.tech
|
|
3605
|
-
* Do not edit the class manually.
|
|
3606
|
-
*/
|
|
3607
|
-
|
|
3608
|
-
var tokensApiTypes = /*#__PURE__*/Object.freeze({
|
|
3609
|
-
__proto__: null
|
|
3610
|
-
});
|
|
3611
|
-
|
|
3612
3655
|
class MultiRollupApiClients {
|
|
3613
3656
|
config;
|
|
3614
3657
|
activitiesApi;
|
|
@@ -3631,7 +3674,7 @@ class MultiRollupApiClients {
|
|
|
3631
3674
|
}
|
|
3632
3675
|
|
|
3633
3676
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
3634
|
-
const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.27.
|
|
3677
|
+
const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.27.3' };
|
|
3635
3678
|
const createConfig = ({ basePath, headers, }) => {
|
|
3636
3679
|
if (!basePath.trim()) {
|
|
3637
3680
|
throw Error('basePath can not be empty');
|
|
@@ -3691,7 +3734,7 @@ class APIError extends Error {
|
|
|
3691
3734
|
|
|
3692
3735
|
/* eslint-disable implicit-arrow-linebreak */
|
|
3693
3736
|
const defaultHeaders = {
|
|
3694
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.27.
|
|
3737
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.27.3',
|
|
3695
3738
|
};
|
|
3696
3739
|
/**
|
|
3697
3740
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -4083,14 +4126,7 @@ class BlockchainData {
|
|
|
4083
4126
|
var blockchain_data = /*#__PURE__*/Object.freeze({
|
|
4084
4127
|
__proto__: null,
|
|
4085
4128
|
APIError: APIError,
|
|
4086
|
-
|
|
4087
|
-
BlockchainData: BlockchainData,
|
|
4088
|
-
ChainsApi: chainsApiTypes,
|
|
4089
|
-
CollectionsApi: collectionsApiTypes,
|
|
4090
|
-
MetadataApi: metadataApiTypes,
|
|
4091
|
-
NFTOwnersApi: nftOwnersApiTypes,
|
|
4092
|
-
NFTsApi: nftsApiTypes,
|
|
4093
|
-
TokensApi: tokensApiTypes
|
|
4129
|
+
BlockchainData: BlockchainData
|
|
4094
4130
|
});
|
|
4095
4131
|
|
|
4096
4132
|
/**
|
|
@@ -4102,7 +4138,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
4102
4138
|
chainID,
|
|
4103
4139
|
coreContractAddress,
|
|
4104
4140
|
registrationContractAddress,
|
|
4105
|
-
sdkVersion: 'ts-immutable-sdk-0.27.
|
|
4141
|
+
sdkVersion: 'ts-immutable-sdk-0.27.3',
|
|
4106
4142
|
});
|
|
4107
4143
|
/**
|
|
4108
4144
|
* Sets `sdkVersion` at the time of build
|
|
@@ -12394,7 +12430,6 @@ async function createOrder({ signers, request, config, }) {
|
|
|
12394
12430
|
asset_id_buy: resp.asset_id_buy,
|
|
12395
12431
|
asset_id_sell: resp.asset_id_sell,
|
|
12396
12432
|
expiration_timestamp: resp.expiration_timestamp,
|
|
12397
|
-
include_fees: true,
|
|
12398
12433
|
fees: request.fees,
|
|
12399
12434
|
nonce: resp.nonce,
|
|
12400
12435
|
stark_key: resp.stark_key,
|
|
@@ -12405,14 +12440,14 @@ async function createOrder({ signers, request, config, }) {
|
|
|
12405
12440
|
xImxEthAddress: ethAddress,
|
|
12406
12441
|
xImxEthSignature: ethSignature,
|
|
12407
12442
|
};
|
|
12408
|
-
const createOrderResponse = await ordersApi.
|
|
12443
|
+
const createOrderResponse = await ordersApi.createOrderV3(orderParams);
|
|
12409
12444
|
return {
|
|
12410
12445
|
...createOrderResponse.data,
|
|
12411
12446
|
};
|
|
12412
12447
|
}
|
|
12413
12448
|
async function cancelOrder({ signers, request, config, }) {
|
|
12414
12449
|
const ordersApi = new coreSdk.OrdersApi(config.immutableXConfig.apiConfiguration);
|
|
12415
|
-
const getSignableCancelOrderResponse = await ordersApi.
|
|
12450
|
+
const getSignableCancelOrderResponse = await ordersApi.getSignableCancelOrderV3({
|
|
12416
12451
|
getSignableCancelOrderRequest: {
|
|
12417
12452
|
order_id: request.order_id,
|
|
12418
12453
|
},
|
|
@@ -12421,7 +12456,7 @@ async function cancelOrder({ signers, request, config, }) {
|
|
|
12421
12456
|
const ethSignature = await signRaw(signableMessage, signers.ethSigner);
|
|
12422
12457
|
const starkSignature = await signers.starkSigner.signMessage(payloadHash);
|
|
12423
12458
|
const ethAddress = await signers.ethSigner.getAddress();
|
|
12424
|
-
const cancelOrderResponse = await ordersApi.
|
|
12459
|
+
const cancelOrderResponse = await ordersApi.cancelOrderV3({
|
|
12425
12460
|
id: request.order_id.toString(),
|
|
12426
12461
|
cancelOrderRequest: {
|
|
12427
12462
|
order_id: request.order_id,
|
|
@@ -12722,7 +12757,7 @@ async function createTrade({ signers: { ethSigner, starkSigner }, request, confi
|
|
|
12722
12757
|
const { signable_message: signableMessage, payload_hash: payloadHash } = signableResult.data;
|
|
12723
12758
|
const ethSignature = await signRaw(signableMessage, ethSigner);
|
|
12724
12759
|
const starkSignature = await starkSigner.signMessage(payloadHash);
|
|
12725
|
-
const createTradeResponse = await tradesApi.
|
|
12760
|
+
const createTradeResponse = await tradesApi.createTradeV3({
|
|
12726
12761
|
createTradeRequest: {
|
|
12727
12762
|
amount_buy: signableResult.data.amount_buy,
|
|
12728
12763
|
amount_sell: signableResult.data.amount_sell,
|
|
@@ -29023,11 +29058,11 @@ const $d85ad1457a3f1a83$var$ZKEVM_NATIVE_TOKEN = {
|
|
|
29023
29058
|
decimals: $d85ad1457a3f1a83$export$903389470ba9433c,
|
|
29024
29059
|
address: $d85ad1457a3f1a83$export$b80040cb173ba6e9
|
|
29025
29060
|
};
|
|
29026
|
-
|
|
29061
|
+
const $d85ad1457a3f1a83$export$89133ca13c5ee30 = {
|
|
29027
29062
|
[$d85ad1457a3f1a83$export$7d3a9eeba384fa59]: "https://api.dev.immutable.com",
|
|
29028
29063
|
[(Environment$1).SANDBOX]: "https://api.sandbox.immutable.com",
|
|
29029
29064
|
[(Environment$1).PRODUCTION]: "https://api.immutable.com"
|
|
29030
|
-
}
|
|
29065
|
+
};
|
|
29031
29066
|
const $d85ad1457a3f1a83$export$161d4a74df65fc08 = {
|
|
29032
29067
|
[$d85ad1457a3f1a83$export$7d3a9eeba384fa59]: "https://checkout-api.dev.immutable.com",
|
|
29033
29068
|
[(Environment$1).SANDBOX]: "https://checkout-api.sandbox.immutable.com",
|
|
@@ -32755,6 +32790,35 @@ async function $d35036efee31c5d1$export$dc8635800ef20f4b(provider, requirements)
|
|
|
32755
32790
|
|
|
32756
32791
|
|
|
32757
32792
|
|
|
32793
|
+
|
|
32794
|
+
|
|
32795
|
+
|
|
32796
|
+
|
|
32797
|
+
const $5e9bcae98dc8ff19$export$1165ca270f090a66 = (isDevelopment, isProduction)=>{
|
|
32798
|
+
const postEndpoint = ()=>{
|
|
32799
|
+
if (isDevelopment) return ($d85ad1457a3f1a83$export$89133ca13c5ee30)[$d85ad1457a3f1a83$export$7d3a9eeba384fa59];
|
|
32800
|
+
if (isProduction) return ($d85ad1457a3f1a83$export$89133ca13c5ee30)[(Environment$1).PRODUCTION];
|
|
32801
|
+
return ($d85ad1457a3f1a83$export$89133ca13c5ee30)[(Environment$1).SANDBOX];
|
|
32802
|
+
};
|
|
32803
|
+
const checkDexAvailability = async ()=>{
|
|
32804
|
+
let response;
|
|
32805
|
+
try {
|
|
32806
|
+
response = await (0, globalAxios$1).post(`${postEndpoint()}/v1/availability/checkout/swap`);
|
|
32807
|
+
} catch (error) {
|
|
32808
|
+
throw new ($a8bc256d81a5e2c1$export$b722478a3cbfa3bc)(`Error fetching from api: ${error.message}`, ($a8bc256d81a5e2c1$export$e3dc0620abde7f5a).API_ERROR);
|
|
32809
|
+
}
|
|
32810
|
+
if (response.status === 403) return false;
|
|
32811
|
+
if (response.status === 204) return true;
|
|
32812
|
+
throw new ($a8bc256d81a5e2c1$export$b722478a3cbfa3bc)(`Error fetching from api: ${response.status} ${response.statusText}`, ($a8bc256d81a5e2c1$export$e3dc0620abde7f5a).API_ERROR);
|
|
32813
|
+
};
|
|
32814
|
+
return {
|
|
32815
|
+
checkDexAvailability: checkDexAvailability
|
|
32816
|
+
};
|
|
32817
|
+
};
|
|
32818
|
+
|
|
32819
|
+
|
|
32820
|
+
|
|
32821
|
+
|
|
32758
32822
|
const $a8cb37a3fc8eb863$var$SANDBOX_CONFIGURATION = {
|
|
32759
32823
|
baseConfig: {
|
|
32760
32824
|
environment: (Environment$1).SANDBOX
|
|
@@ -32764,6 +32828,7 @@ class $a8cb37a3fc8eb863$export$1f60ba4ec72508a0 {
|
|
|
32764
32828
|
config;
|
|
32765
32829
|
fiatRampService;
|
|
32766
32830
|
readOnlyProviders;
|
|
32831
|
+
availability;
|
|
32767
32832
|
/**
|
|
32768
32833
|
* Constructs a new instance of the CheckoutModule class.
|
|
32769
32834
|
* @param {CheckoutModuleConfiguration} [config=SANDBOX_CONFIGURATION] - The configuration object for the CheckoutModule.
|
|
@@ -32771,6 +32836,7 @@ class $a8cb37a3fc8eb863$export$1f60ba4ec72508a0 {
|
|
|
32771
32836
|
this.config = new ($4013c5c91bb535f6$export$4823433c4a67bbc6)(config);
|
|
32772
32837
|
this.fiatRampService = new ($a77d203f701a3b72$export$1453e9b801542ef4)(this.config);
|
|
32773
32838
|
this.readOnlyProviders = new Map();
|
|
32839
|
+
this.availability = ($5e9bcae98dc8ff19$export$1165ca270f090a66)(this.config.isDevelopment, this.config.isProduction);
|
|
32774
32840
|
}
|
|
32775
32841
|
/**
|
|
32776
32842
|
* Creates a provider using the given parameters.
|
|
@@ -32980,6 +33046,12 @@ class $a8cb37a3fc8eb863$export$1f60ba4ec72508a0 {
|
|
|
32980
33046
|
*/ async getExchangeFeeEstimate() {
|
|
32981
33047
|
return await this.fiatRampService.feeEstimate();
|
|
32982
33048
|
}
|
|
33049
|
+
/**
|
|
33050
|
+
* Fetches Swap widget availability.
|
|
33051
|
+
* @returns {Promise<boolean>} - A promise that resolves to a boolean.
|
|
33052
|
+
*/ async isSwapAvailable() {
|
|
33053
|
+
return this.availability.checkDexAvailability();
|
|
33054
|
+
}
|
|
32983
33055
|
}
|
|
32984
33056
|
|
|
32985
33057
|
var checkout_sdk = /*#__PURE__*/Object.freeze({
|
|
@@ -33027,7 +33099,7 @@ var $045213b18e9f1f94$export$75be0f6af9650f2c;
|
|
|
33027
33099
|
})($045213b18e9f1f94$export$75be0f6af9650f2c || ($045213b18e9f1f94$export$75be0f6af9650f2c = {}));
|
|
33028
33100
|
|
|
33029
33101
|
|
|
33030
|
-
const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.27.
|
|
33102
|
+
const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.27.3";
|
|
33031
33103
|
const $d663162fd5a0853f$export$83bf90b30cdfd29f = ()=>false;
|
|
33032
33104
|
const $d663162fd5a0853f$export$1169f5475725171b = ()=>$d663162fd5a0853f$export$38a083d9fb5551ca;
|
|
33033
33105
|
|