@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/checkout_sdk.js
CHANGED
|
@@ -17077,6 +17077,8 @@ const constants = {
|
|
|
17077
17077
|
* https://openapi-generator.tech
|
|
17078
17078
|
* Do not edit the class manually.
|
|
17079
17079
|
*/
|
|
17080
|
+
// Some imports not used depending on template conditions
|
|
17081
|
+
// @ts-ignore
|
|
17080
17082
|
const BASE_PATH = "https://api.sandbox.immutable.com".replace(/\/+$/, "");
|
|
17081
17083
|
/**
|
|
17082
17084
|
*
|
|
@@ -17104,10 +17106,10 @@ class BaseAPI {
|
|
|
17104
17106
|
*/
|
|
17105
17107
|
class RequiredError extends Error {
|
|
17106
17108
|
field;
|
|
17109
|
+
name = "RequiredError";
|
|
17107
17110
|
constructor(field, msg) {
|
|
17108
17111
|
super(msg);
|
|
17109
17112
|
this.field = field;
|
|
17110
|
-
this.name = "RequiredError";
|
|
17111
17113
|
}
|
|
17112
17114
|
}
|
|
17113
17115
|
|
|
@@ -17164,8 +17166,6 @@ const setBearerAuthToObject = async function (object, configuration) {
|
|
|
17164
17166
|
}
|
|
17165
17167
|
};
|
|
17166
17168
|
function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
17167
|
-
if (parameter == null)
|
|
17168
|
-
return;
|
|
17169
17169
|
if (typeof parameter === "object") {
|
|
17170
17170
|
if (Array.isArray(parameter)) {
|
|
17171
17171
|
parameter.forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
|
|
@@ -17218,7 +17218,7 @@ const toPathString = function (url) {
|
|
|
17218
17218
|
*/
|
|
17219
17219
|
const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
17220
17220
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
17221
|
-
const axiosRequestArgs = { ...axiosArgs.options, url: (configuration?.basePath ||
|
|
17221
|
+
const axiosRequestArgs = { ...axiosArgs.options, url: (configuration?.basePath || basePath) + axiosArgs.url };
|
|
17222
17222
|
return axios.request(axiosRequestArgs);
|
|
17223
17223
|
};
|
|
17224
17224
|
};
|
|
@@ -17397,22 +17397,32 @@ const ActivitiesApiFactory = function (configuration, basePath, axios) {
|
|
|
17397
17397
|
/**
|
|
17398
17398
|
* Get a single activity by ID
|
|
17399
17399
|
* @summary Get a single activity by ID
|
|
17400
|
-
* @param {
|
|
17400
|
+
* @param {string} chainName The name of chain
|
|
17401
|
+
* @param {string} activityId The id of activity
|
|
17401
17402
|
* @param {*} [options] Override http request option.
|
|
17402
17403
|
* @throws {RequiredError}
|
|
17403
17404
|
*/
|
|
17404
|
-
getActivity(
|
|
17405
|
-
return localVarFp.getActivity(
|
|
17405
|
+
getActivity(chainName, activityId, options) {
|
|
17406
|
+
return localVarFp.getActivity(chainName, activityId, options).then((request) => request(axios, basePath));
|
|
17406
17407
|
},
|
|
17407
17408
|
/**
|
|
17408
17409
|
* List all activities
|
|
17409
17410
|
* @summary List all activities
|
|
17410
|
-
* @param {
|
|
17411
|
+
* @param {string} chainName The name of chain
|
|
17412
|
+
* @param {string} [contractAddress] The contract address of NFT or ERC20 Token
|
|
17413
|
+
* @param {string} [tokenId] An `uint256` token id as string
|
|
17414
|
+
* @param {string} [accountAddress] The account address activity contains
|
|
17415
|
+
* @param {ActivityType} [activityType] The activity type
|
|
17416
|
+
* @param {string} [fromIndexedAt] From indexed at including given date
|
|
17417
|
+
* @param {string} [toIndexedAt] To indexed at including given date
|
|
17418
|
+
* @param {string} [transactionHash] The transaction hash of activity
|
|
17419
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
17420
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
17411
17421
|
* @param {*} [options] Override http request option.
|
|
17412
17422
|
* @throws {RequiredError}
|
|
17413
17423
|
*/
|
|
17414
|
-
listActivities(
|
|
17415
|
-
return localVarFp.listActivities(
|
|
17424
|
+
listActivities(chainName, contractAddress, tokenId, accountAddress, activityType, fromIndexedAt, toIndexedAt, transactionHash, pageCursor, pageSize, options) {
|
|
17425
|
+
return localVarFp.listActivities(chainName, contractAddress, tokenId, accountAddress, activityType, fromIndexedAt, toIndexedAt, transactionHash, pageCursor, pageSize, options).then((request) => request(axios, basePath));
|
|
17416
17426
|
},
|
|
17417
17427
|
};
|
|
17418
17428
|
};
|
|
@@ -17532,12 +17542,13 @@ const ChainsApiFactory = function (configuration, basePath, axios) {
|
|
|
17532
17542
|
/**
|
|
17533
17543
|
* List supported chains
|
|
17534
17544
|
* @summary List supported chains
|
|
17535
|
-
* @param {
|
|
17545
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
17546
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
17536
17547
|
* @param {*} [options] Override http request option.
|
|
17537
17548
|
* @throws {RequiredError}
|
|
17538
17549
|
*/
|
|
17539
|
-
listChains(
|
|
17540
|
-
return localVarFp.listChains(
|
|
17550
|
+
listChains(pageCursor, pageSize, options) {
|
|
17551
|
+
return localVarFp.listChains(pageCursor, pageSize, options).then((request) => request(axios, basePath));
|
|
17541
17552
|
},
|
|
17542
17553
|
};
|
|
17543
17554
|
};
|
|
@@ -17816,42 +17827,52 @@ const CollectionsApiFactory = function (configuration, basePath, axios) {
|
|
|
17816
17827
|
/**
|
|
17817
17828
|
* Get collection by contract address
|
|
17818
17829
|
* @summary Get collection by contract address
|
|
17819
|
-
* @param {
|
|
17830
|
+
* @param {string} contractAddress The address contract
|
|
17831
|
+
* @param {string} chainName The name of chain
|
|
17820
17832
|
* @param {*} [options] Override http request option.
|
|
17821
17833
|
* @throws {RequiredError}
|
|
17822
17834
|
*/
|
|
17823
|
-
getCollection(
|
|
17824
|
-
return localVarFp.getCollection(
|
|
17835
|
+
getCollection(contractAddress, chainName, options) {
|
|
17836
|
+
return localVarFp.getCollection(contractAddress, chainName, options).then((request) => request(axios, basePath));
|
|
17825
17837
|
},
|
|
17826
17838
|
/**
|
|
17827
17839
|
* List all collections
|
|
17828
17840
|
* @summary List all collections
|
|
17829
|
-
* @param {
|
|
17841
|
+
* @param {string} chainName The name of chain
|
|
17842
|
+
* @param {Array<string>} [contractAddress] List of contract addresses to filter by
|
|
17843
|
+
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
17844
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
17845
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
17830
17846
|
* @param {*} [options] Override http request option.
|
|
17831
17847
|
* @throws {RequiredError}
|
|
17832
17848
|
*/
|
|
17833
|
-
listCollections(
|
|
17834
|
-
return localVarFp.listCollections(
|
|
17849
|
+
listCollections(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options) {
|
|
17850
|
+
return localVarFp.listCollections(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options).then((request) => request(axios, basePath));
|
|
17835
17851
|
},
|
|
17836
17852
|
/**
|
|
17837
17853
|
* List collections by NFT owner account address
|
|
17838
17854
|
* @summary List collections by NFT owner
|
|
17839
|
-
* @param {
|
|
17855
|
+
* @param {string} accountAddress Account address
|
|
17856
|
+
* @param {string} chainName The name of chain
|
|
17857
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
17858
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
17840
17859
|
* @param {*} [options] Override http request option.
|
|
17841
17860
|
* @throws {RequiredError}
|
|
17842
17861
|
*/
|
|
17843
|
-
listCollectionsByNFTOwner(
|
|
17844
|
-
return localVarFp.listCollectionsByNFTOwner(
|
|
17862
|
+
listCollectionsByNFTOwner(accountAddress, chainName, pageCursor, pageSize, options) {
|
|
17863
|
+
return localVarFp.listCollectionsByNFTOwner(accountAddress, chainName, pageCursor, pageSize, options).then((request) => request(axios, basePath));
|
|
17845
17864
|
},
|
|
17846
17865
|
/**
|
|
17847
17866
|
* Refresh collection metadata
|
|
17848
17867
|
* @summary Refresh collection metadata
|
|
17849
|
-
* @param {
|
|
17868
|
+
* @param {string} contractAddress The address contract
|
|
17869
|
+
* @param {string} chainName The name of chain
|
|
17870
|
+
* @param {RefreshCollectionMetadataRequest} refreshCollectionMetadataRequest The request body
|
|
17850
17871
|
* @param {*} [options] Override http request option.
|
|
17851
17872
|
* @throws {RequiredError}
|
|
17852
17873
|
*/
|
|
17853
|
-
refreshCollectionMetadata(
|
|
17854
|
-
return localVarFp.refreshCollectionMetadata(
|
|
17874
|
+
refreshCollectionMetadata(contractAddress, chainName, refreshCollectionMetadataRequest, options) {
|
|
17875
|
+
return localVarFp.refreshCollectionMetadata(contractAddress, chainName, refreshCollectionMetadataRequest, options).then((request) => request(axios, basePath));
|
|
17855
17876
|
},
|
|
17856
17877
|
};
|
|
17857
17878
|
};
|
|
@@ -18166,42 +18187,52 @@ const MetadataApiFactory = function (configuration, basePath, axios) {
|
|
|
18166
18187
|
/**
|
|
18167
18188
|
* Get metadata by ID
|
|
18168
18189
|
* @summary Get metadata by ID
|
|
18169
|
-
* @param {
|
|
18190
|
+
* @param {string} chainName The name of chain
|
|
18191
|
+
* @param {string} contractAddress The address of metadata contract
|
|
18192
|
+
* @param {string} metadataId The id of the metadata
|
|
18170
18193
|
* @param {*} [options] Override http request option.
|
|
18171
18194
|
* @throws {RequiredError}
|
|
18172
18195
|
*/
|
|
18173
|
-
getMetadata(
|
|
18174
|
-
return localVarFp.getMetadata(
|
|
18196
|
+
getMetadata(chainName, contractAddress, metadataId, options) {
|
|
18197
|
+
return localVarFp.getMetadata(chainName, contractAddress, metadataId, options).then((request) => request(axios, basePath));
|
|
18175
18198
|
},
|
|
18176
18199
|
/**
|
|
18177
18200
|
* Get a list of metadata by from the a given contract
|
|
18178
18201
|
* @summary Get a list of metadata by from the a given contract
|
|
18179
|
-
* @param {
|
|
18202
|
+
* @param {string} chainName The name of chain
|
|
18203
|
+
* @param {string} contractAddress The address of metadata contract
|
|
18204
|
+
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
18205
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
18206
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
18180
18207
|
* @param {*} [options] Override http request option.
|
|
18181
18208
|
* @throws {RequiredError}
|
|
18182
18209
|
*/
|
|
18183
|
-
listMetadata(
|
|
18184
|
-
return localVarFp.listMetadata(
|
|
18210
|
+
listMetadata(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options) {
|
|
18211
|
+
return localVarFp.listMetadata(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options).then((request) => request(axios, basePath));
|
|
18185
18212
|
},
|
|
18186
18213
|
/**
|
|
18187
18214
|
* Refresh stacked metadata
|
|
18188
18215
|
* @summary Refresh stacked metadata
|
|
18189
|
-
* @param {
|
|
18216
|
+
* @param {string} chainName The name of chain
|
|
18217
|
+
* @param {string} contractAddress Contract address
|
|
18218
|
+
* @param {RefreshMetadataByIDRequest} refreshMetadataByIDRequest NFT Metadata Refresh Request
|
|
18190
18219
|
* @param {*} [options] Override http request option.
|
|
18191
18220
|
* @throws {RequiredError}
|
|
18192
18221
|
*/
|
|
18193
|
-
refreshMetadataByID(
|
|
18194
|
-
return localVarFp.refreshMetadataByID(
|
|
18222
|
+
refreshMetadataByID(chainName, contractAddress, refreshMetadataByIDRequest, options) {
|
|
18223
|
+
return localVarFp.refreshMetadataByID(chainName, contractAddress, refreshMetadataByIDRequest, options).then((request) => request(axios, basePath));
|
|
18195
18224
|
},
|
|
18196
18225
|
/**
|
|
18197
18226
|
* Refresh NFT metadata
|
|
18198
18227
|
* @summary Refresh NFT metadata
|
|
18199
|
-
* @param {
|
|
18228
|
+
* @param {string} contractAddress The address of contract
|
|
18229
|
+
* @param {string} chainName The name of chain
|
|
18230
|
+
* @param {RefreshNFTMetadataByTokenIDRequest} refreshNFTMetadataByTokenIDRequest the request body
|
|
18200
18231
|
* @param {*} [options] Override http request option.
|
|
18201
18232
|
* @throws {RequiredError}
|
|
18202
18233
|
*/
|
|
18203
|
-
refreshNFTMetadataByTokenID(
|
|
18204
|
-
return localVarFp.refreshNFTMetadataByTokenID(
|
|
18234
|
+
refreshNFTMetadataByTokenID(contractAddress, chainName, refreshNFTMetadataByTokenIDRequest, options) {
|
|
18235
|
+
return localVarFp.refreshNFTMetadataByTokenID(contractAddress, chainName, refreshNFTMetadataByTokenIDRequest, options).then((request) => request(axios, basePath));
|
|
18205
18236
|
},
|
|
18206
18237
|
};
|
|
18207
18238
|
};
|
|
@@ -18420,22 +18451,30 @@ const NftOwnersApiFactory = function (configuration, basePath, axios) {
|
|
|
18420
18451
|
/**
|
|
18421
18452
|
* List NFT owners by token ID
|
|
18422
18453
|
* @summary List NFT owners by token ID
|
|
18423
|
-
* @param {
|
|
18454
|
+
* @param {string} contractAddress The address of contract
|
|
18455
|
+
* @param {string} tokenId An `uint256` token id as string
|
|
18456
|
+
* @param {string} chainName The name of chain
|
|
18457
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
18458
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
18424
18459
|
* @param {*} [options] Override http request option.
|
|
18425
18460
|
* @throws {RequiredError}
|
|
18426
18461
|
*/
|
|
18427
|
-
listNFTOwners(
|
|
18428
|
-
return localVarFp.listNFTOwners(
|
|
18462
|
+
listNFTOwners(contractAddress, tokenId, chainName, pageCursor, pageSize, options) {
|
|
18463
|
+
return localVarFp.listNFTOwners(contractAddress, tokenId, chainName, pageCursor, pageSize, options).then((request) => request(axios, basePath));
|
|
18429
18464
|
},
|
|
18430
18465
|
/**
|
|
18431
18466
|
* List owners by contract address
|
|
18432
18467
|
* @summary List owners by contract address
|
|
18433
|
-
* @param {
|
|
18468
|
+
* @param {string} contractAddress The address of contract
|
|
18469
|
+
* @param {string} chainName The name of chain
|
|
18470
|
+
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
18471
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
18472
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
18434
18473
|
* @param {*} [options] Override http request option.
|
|
18435
18474
|
* @throws {RequiredError}
|
|
18436
18475
|
*/
|
|
18437
|
-
listOwnersByContractAddress(
|
|
18438
|
-
return localVarFp.listOwnersByContractAddress(
|
|
18476
|
+
listOwnersByContractAddress(contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options) {
|
|
18477
|
+
return localVarFp.listOwnersByContractAddress(contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options).then((request) => request(axios, basePath));
|
|
18439
18478
|
},
|
|
18440
18479
|
};
|
|
18441
18480
|
};
|
|
@@ -18798,52 +18837,68 @@ const NftsApiFactory = function (configuration, basePath, axios) {
|
|
|
18798
18837
|
/**
|
|
18799
18838
|
* Get NFT by token ID
|
|
18800
18839
|
* @summary Get NFT by token ID
|
|
18801
|
-
* @param {
|
|
18840
|
+
* @param {string} contractAddress The address of NFT contract
|
|
18841
|
+
* @param {string} tokenId An `uint256` token id as string
|
|
18842
|
+
* @param {string} chainName The name of chain
|
|
18802
18843
|
* @param {*} [options] Override http request option.
|
|
18803
18844
|
* @throws {RequiredError}
|
|
18804
18845
|
*/
|
|
18805
|
-
getNFT(
|
|
18806
|
-
return localVarFp.getNFT(
|
|
18846
|
+
getNFT(contractAddress, tokenId, chainName, options) {
|
|
18847
|
+
return localVarFp.getNFT(contractAddress, tokenId, chainName, options).then((request) => request(axios, basePath));
|
|
18807
18848
|
},
|
|
18808
18849
|
/**
|
|
18809
18850
|
* List all NFT owners on a chain
|
|
18810
18851
|
* @summary List all NFT owners
|
|
18811
|
-
* @param {
|
|
18852
|
+
* @param {string} chainName The name of chain
|
|
18853
|
+
* @param {string} fromUpdatedAt Datetime to use as the oldest updated timestamp
|
|
18854
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
18855
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
18812
18856
|
* @param {*} [options] Override http request option.
|
|
18813
18857
|
* @throws {RequiredError}
|
|
18814
18858
|
*/
|
|
18815
|
-
listAllNFTOwners(
|
|
18816
|
-
return localVarFp.listAllNFTOwners(
|
|
18859
|
+
listAllNFTOwners(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
|
|
18860
|
+
return localVarFp.listAllNFTOwners(chainName, fromUpdatedAt, pageCursor, pageSize, options).then((request) => request(axios, basePath));
|
|
18817
18861
|
},
|
|
18818
18862
|
/**
|
|
18819
18863
|
* List all NFTs on a chain
|
|
18820
18864
|
* @summary List all NFTs
|
|
18821
|
-
* @param {
|
|
18865
|
+
* @param {string} chainName The name of chain
|
|
18866
|
+
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
18867
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
18868
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
18822
18869
|
* @param {*} [options] Override http request option.
|
|
18823
18870
|
* @throws {RequiredError}
|
|
18824
18871
|
*/
|
|
18825
|
-
listAllNFTs(
|
|
18826
|
-
return localVarFp.listAllNFTs(
|
|
18872
|
+
listAllNFTs(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
|
|
18873
|
+
return localVarFp.listAllNFTs(chainName, fromUpdatedAt, pageCursor, pageSize, options).then((request) => request(axios, basePath));
|
|
18827
18874
|
},
|
|
18828
18875
|
/**
|
|
18829
18876
|
* List NFTs by contract address
|
|
18830
18877
|
* @summary List NFTs by contract address
|
|
18831
|
-
* @param {
|
|
18878
|
+
* @param {string} contractAddress Contract address
|
|
18879
|
+
* @param {string} chainName The name of chain
|
|
18880
|
+
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
18881
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
18882
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
18832
18883
|
* @param {*} [options] Override http request option.
|
|
18833
18884
|
* @throws {RequiredError}
|
|
18834
18885
|
*/
|
|
18835
|
-
listNFTs(
|
|
18836
|
-
return localVarFp.listNFTs(
|
|
18886
|
+
listNFTs(contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options) {
|
|
18887
|
+
return localVarFp.listNFTs(contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options).then((request) => request(axios, basePath));
|
|
18837
18888
|
},
|
|
18838
18889
|
/**
|
|
18839
18890
|
* List NFTs by account address
|
|
18840
18891
|
* @summary List NFTs by account address
|
|
18841
|
-
* @param {
|
|
18892
|
+
* @param {string} accountAddress Account address
|
|
18893
|
+
* @param {string} chainName The name of chain
|
|
18894
|
+
* @param {string} [contractAddress] The address of contract
|
|
18895
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
18896
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
18842
18897
|
* @param {*} [options] Override http request option.
|
|
18843
18898
|
* @throws {RequiredError}
|
|
18844
18899
|
*/
|
|
18845
|
-
listNFTsByAccountAddress(
|
|
18846
|
-
return localVarFp.listNFTsByAccountAddress(
|
|
18900
|
+
listNFTsByAccountAddress(accountAddress, chainName, contractAddress, pageCursor, pageSize, options) {
|
|
18901
|
+
return localVarFp.listNFTsByAccountAddress(accountAddress, chainName, contractAddress, pageCursor, pageSize, options).then((request) => request(axios, basePath));
|
|
18847
18902
|
},
|
|
18848
18903
|
};
|
|
18849
18904
|
};
|
|
@@ -19107,8 +19162,8 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
19107
19162
|
* @param {string} [buyItemContractAddress] Buy item contract address to filter by
|
|
19108
19163
|
* @param {string} [sellItemTokenId] Sell item token identifier to filter by
|
|
19109
19164
|
* @param {number} [pageSize] Maximum number of orders to return per page
|
|
19110
|
-
* @param {
|
|
19111
|
-
* @param {
|
|
19165
|
+
* @param {'created_at' | 'updated_at' | 'buy_item_amount'} [sortBy] Order field to sort by
|
|
19166
|
+
* @param {'asc' | 'desc'} [sortDirection] Ascending or descending direction for sort
|
|
19112
19167
|
* @param {string} [pageCursor] Page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
19113
19168
|
* @param {*} [options] Override http request option.
|
|
19114
19169
|
* @throws {RequiredError}
|
|
@@ -19165,8 +19220,8 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
19165
19220
|
* @param {string} chainName
|
|
19166
19221
|
* @param {string} [accountAddress]
|
|
19167
19222
|
* @param {number} [pageSize] Maximum number of trades to return per page
|
|
19168
|
-
* @param {
|
|
19169
|
-
* @param {
|
|
19223
|
+
* @param {'indexed_at'} [sortBy] Trade field to sort by
|
|
19224
|
+
* @param {'asc' | 'desc'} [sortDirection] Ascending or descending direction for sort
|
|
19170
19225
|
* @param {string} [pageCursor] Page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
19171
19226
|
* @param {*} [options] Override http request option.
|
|
19172
19227
|
* @throws {RequiredError}
|
|
@@ -19286,8 +19341,8 @@ const OrdersApiFp = function (configuration) {
|
|
|
19286
19341
|
* @param {string} [buyItemContractAddress] Buy item contract address to filter by
|
|
19287
19342
|
* @param {string} [sellItemTokenId] Sell item token identifier to filter by
|
|
19288
19343
|
* @param {number} [pageSize] Maximum number of orders to return per page
|
|
19289
|
-
* @param {
|
|
19290
|
-
* @param {
|
|
19344
|
+
* @param {'created_at' | 'updated_at' | 'buy_item_amount'} [sortBy] Order field to sort by
|
|
19345
|
+
* @param {'asc' | 'desc'} [sortDirection] Ascending or descending direction for sort
|
|
19291
19346
|
* @param {string} [pageCursor] Page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
19292
19347
|
* @param {*} [options] Override http request option.
|
|
19293
19348
|
* @throws {RequiredError}
|
|
@@ -19302,8 +19357,8 @@ const OrdersApiFp = function (configuration) {
|
|
|
19302
19357
|
* @param {string} chainName
|
|
19303
19358
|
* @param {string} [accountAddress]
|
|
19304
19359
|
* @param {number} [pageSize] Maximum number of trades to return per page
|
|
19305
|
-
* @param {
|
|
19306
|
-
* @param {
|
|
19360
|
+
* @param {'indexed_at'} [sortBy] Trade field to sort by
|
|
19361
|
+
* @param {'asc' | 'desc'} [sortDirection] Ascending or descending direction for sort
|
|
19307
19362
|
* @param {string} [pageCursor] Page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
19308
19363
|
* @param {*} [options] Override http request option.
|
|
19309
19364
|
* @throws {RequiredError}
|
|
@@ -19324,72 +19379,90 @@ const OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
19324
19379
|
/**
|
|
19325
19380
|
* Cancel one or more orders
|
|
19326
19381
|
* @summary Cancel one or more orders
|
|
19327
|
-
* @param {
|
|
19382
|
+
* @param {string} chainName
|
|
19383
|
+
* @param {CancelOrdersRequestBody} cancelOrdersRequestBody
|
|
19328
19384
|
* @param {*} [options] Override http request option.
|
|
19329
19385
|
* @throws {RequiredError}
|
|
19330
19386
|
*/
|
|
19331
|
-
cancelOrders(
|
|
19332
|
-
return localVarFp.cancelOrders(
|
|
19387
|
+
cancelOrders(chainName, cancelOrdersRequestBody, options) {
|
|
19388
|
+
return localVarFp.cancelOrders(chainName, cancelOrdersRequestBody, options).then((request) => request(axios, basePath));
|
|
19333
19389
|
},
|
|
19334
19390
|
/**
|
|
19335
19391
|
* Create a listing
|
|
19336
19392
|
* @summary Create a listing
|
|
19337
|
-
* @param {
|
|
19393
|
+
* @param {string} chainName
|
|
19394
|
+
* @param {CreateListingRequestBody} createListingRequestBody
|
|
19338
19395
|
* @param {*} [options] Override http request option.
|
|
19339
19396
|
* @throws {RequiredError}
|
|
19340
19397
|
*/
|
|
19341
|
-
createListing(
|
|
19342
|
-
return localVarFp.createListing(
|
|
19398
|
+
createListing(chainName, createListingRequestBody, options) {
|
|
19399
|
+
return localVarFp.createListing(chainName, createListingRequestBody, options).then((request) => request(axios, basePath));
|
|
19343
19400
|
},
|
|
19344
19401
|
/**
|
|
19345
19402
|
* Retrieve signed fulfillment data based on the list of order IDs and corresponding fees.
|
|
19346
19403
|
* @summary Retrieve fulfillment data for orders
|
|
19347
|
-
* @param {
|
|
19404
|
+
* @param {string} chainName
|
|
19405
|
+
* @param {Array<FulfillmentDataRequest>} fulfillmentDataRequest
|
|
19348
19406
|
* @param {*} [options] Override http request option.
|
|
19349
19407
|
* @throws {RequiredError}
|
|
19350
19408
|
*/
|
|
19351
|
-
fulfillmentData(
|
|
19352
|
-
return localVarFp.fulfillmentData(
|
|
19409
|
+
fulfillmentData(chainName, fulfillmentDataRequest, options) {
|
|
19410
|
+
return localVarFp.fulfillmentData(chainName, fulfillmentDataRequest, options).then((request) => request(axios, basePath));
|
|
19353
19411
|
},
|
|
19354
19412
|
/**
|
|
19355
19413
|
* Get a single listing by ID
|
|
19356
19414
|
* @summary Get a single listing by ID
|
|
19357
|
-
* @param {
|
|
19415
|
+
* @param {string} chainName
|
|
19416
|
+
* @param {string} listingId Global Order identifier
|
|
19358
19417
|
* @param {*} [options] Override http request option.
|
|
19359
19418
|
* @throws {RequiredError}
|
|
19360
19419
|
*/
|
|
19361
|
-
getListing(
|
|
19362
|
-
return localVarFp.getListing(
|
|
19420
|
+
getListing(chainName, listingId, options) {
|
|
19421
|
+
return localVarFp.getListing(chainName, listingId, options).then((request) => request(axios, basePath));
|
|
19363
19422
|
},
|
|
19364
19423
|
/**
|
|
19365
19424
|
* Get a single trade by ID
|
|
19366
19425
|
* @summary Get a single trade by ID
|
|
19367
|
-
* @param {
|
|
19426
|
+
* @param {string} chainName
|
|
19427
|
+
* @param {string} tradeId Global Trade identifier
|
|
19368
19428
|
* @param {*} [options] Override http request option.
|
|
19369
19429
|
* @throws {RequiredError}
|
|
19370
19430
|
*/
|
|
19371
|
-
getTrade(
|
|
19372
|
-
return localVarFp.getTrade(
|
|
19431
|
+
getTrade(chainName, tradeId, options) {
|
|
19432
|
+
return localVarFp.getTrade(chainName, tradeId, options).then((request) => request(axios, basePath));
|
|
19373
19433
|
},
|
|
19374
19434
|
/**
|
|
19375
19435
|
* List all listings
|
|
19376
19436
|
* @summary List all listings
|
|
19377
|
-
* @param {
|
|
19437
|
+
* @param {string} chainName
|
|
19438
|
+
* @param {OrderStatusName} [status] Order status to filter by
|
|
19439
|
+
* @param {string} [sellItemContractAddress] Sell item contract address to filter by
|
|
19440
|
+
* @param {string} [buyItemContractAddress] Buy item contract address to filter by
|
|
19441
|
+
* @param {string} [sellItemTokenId] Sell item token identifier to filter by
|
|
19442
|
+
* @param {number} [pageSize] Maximum number of orders to return per page
|
|
19443
|
+
* @param {'created_at' | 'updated_at' | 'buy_item_amount'} [sortBy] Order field to sort by
|
|
19444
|
+
* @param {'asc' | 'desc'} [sortDirection] Ascending or descending direction for sort
|
|
19445
|
+
* @param {string} [pageCursor] Page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
19378
19446
|
* @param {*} [options] Override http request option.
|
|
19379
19447
|
* @throws {RequiredError}
|
|
19380
19448
|
*/
|
|
19381
|
-
listListings(
|
|
19382
|
-
return localVarFp.listListings(
|
|
19449
|
+
listListings(chainName, status, sellItemContractAddress, buyItemContractAddress, sellItemTokenId, pageSize, sortBy, sortDirection, pageCursor, options) {
|
|
19450
|
+
return localVarFp.listListings(chainName, status, sellItemContractAddress, buyItemContractAddress, sellItemTokenId, pageSize, sortBy, sortDirection, pageCursor, options).then((request) => request(axios, basePath));
|
|
19383
19451
|
},
|
|
19384
19452
|
/**
|
|
19385
19453
|
* List all trades
|
|
19386
19454
|
* @summary List all trades
|
|
19387
|
-
* @param {
|
|
19455
|
+
* @param {string} chainName
|
|
19456
|
+
* @param {string} [accountAddress]
|
|
19457
|
+
* @param {number} [pageSize] Maximum number of trades to return per page
|
|
19458
|
+
* @param {'indexed_at'} [sortBy] Trade field to sort by
|
|
19459
|
+
* @param {'asc' | 'desc'} [sortDirection] Ascending or descending direction for sort
|
|
19460
|
+
* @param {string} [pageCursor] Page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
19388
19461
|
* @param {*} [options] Override http request option.
|
|
19389
19462
|
* @throws {RequiredError}
|
|
19390
19463
|
*/
|
|
19391
|
-
listTrades(
|
|
19392
|
-
return localVarFp.listTrades(
|
|
19464
|
+
listTrades(chainName, accountAddress, pageSize, sortBy, sortDirection, pageCursor, options) {
|
|
19465
|
+
return localVarFp.listTrades(chainName, accountAddress, pageSize, sortBy, sortDirection, pageCursor, options).then((request) => request(axios, basePath));
|
|
19393
19466
|
},
|
|
19394
19467
|
};
|
|
19395
19468
|
};
|
|
@@ -19478,34 +19551,6 @@ class OrdersApi extends BaseAPI {
|
|
|
19478
19551
|
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));
|
|
19479
19552
|
}
|
|
19480
19553
|
}
|
|
19481
|
-
/**
|
|
19482
|
-
* @export
|
|
19483
|
-
*/
|
|
19484
|
-
const ListListingsSortByEnum$1 = {
|
|
19485
|
-
CreatedAt: 'created_at',
|
|
19486
|
-
UpdatedAt: 'updated_at',
|
|
19487
|
-
BuyItemAmount: 'buy_item_amount'
|
|
19488
|
-
};
|
|
19489
|
-
/**
|
|
19490
|
-
* @export
|
|
19491
|
-
*/
|
|
19492
|
-
const ListListingsSortDirectionEnum$1 = {
|
|
19493
|
-
Asc: 'asc',
|
|
19494
|
-
Desc: 'desc'
|
|
19495
|
-
};
|
|
19496
|
-
/**
|
|
19497
|
-
* @export
|
|
19498
|
-
*/
|
|
19499
|
-
const ListTradesSortByEnum$1 = {
|
|
19500
|
-
IndexedAt: 'indexed_at'
|
|
19501
|
-
};
|
|
19502
|
-
/**
|
|
19503
|
-
* @export
|
|
19504
|
-
*/
|
|
19505
|
-
const ListTradesSortDirectionEnum$1 = {
|
|
19506
|
-
Asc: 'asc',
|
|
19507
|
-
Desc: 'desc'
|
|
19508
|
-
};
|
|
19509
19554
|
|
|
19510
19555
|
/* tslint:disable */
|
|
19511
19556
|
/* eslint-disable */
|
|
@@ -19634,22 +19679,22 @@ const PassportApiFactory = function (configuration, basePath, axios) {
|
|
|
19634
19679
|
/**
|
|
19635
19680
|
* Create a counterfactual address for a user based on their Ethereum address
|
|
19636
19681
|
* @summary Create a counterfactual address
|
|
19637
|
-
* @param {
|
|
19682
|
+
* @param {CreateCounterfactualAddressRequest} createCounterfactualAddressRequest
|
|
19638
19683
|
* @param {*} [options] Override http request option.
|
|
19639
19684
|
* @throws {RequiredError}
|
|
19640
19685
|
*/
|
|
19641
|
-
createCounterfactualAddress(
|
|
19642
|
-
return localVarFp.createCounterfactualAddress(
|
|
19686
|
+
createCounterfactualAddress(createCounterfactualAddressRequest, options) {
|
|
19687
|
+
return localVarFp.createCounterfactualAddress(createCounterfactualAddressRequest, options).then((request) => request(axios, basePath));
|
|
19643
19688
|
},
|
|
19644
19689
|
/**
|
|
19645
19690
|
* Get all the Ethereum linked addresses for a user based on its userId
|
|
19646
19691
|
* @summary Get Ethereum linked addresses for a user
|
|
19647
|
-
* @param {
|
|
19692
|
+
* @param {string} userId The user\'s userId
|
|
19648
19693
|
* @param {*} [options] Override http request option.
|
|
19649
19694
|
* @throws {RequiredError}
|
|
19650
19695
|
*/
|
|
19651
|
-
getLinkedAddresses(
|
|
19652
|
-
return localVarFp.getLinkedAddresses(
|
|
19696
|
+
getLinkedAddresses(userId, options) {
|
|
19697
|
+
return localVarFp.getLinkedAddresses(userId, options).then((request) => request(axios, basePath));
|
|
19653
19698
|
},
|
|
19654
19699
|
};
|
|
19655
19700
|
};
|
|
@@ -19826,22 +19871,26 @@ const TokensApiFactory = function (configuration, basePath, axios) {
|
|
|
19826
19871
|
/**
|
|
19827
19872
|
* Get single ERC20 token
|
|
19828
19873
|
* @summary Get single ERC20 token
|
|
19829
|
-
* @param {
|
|
19874
|
+
* @param {string} contractAddress The address of contract
|
|
19875
|
+
* @param {string} chainName The name of chain
|
|
19830
19876
|
* @param {*} [options] Override http request option.
|
|
19831
19877
|
* @throws {RequiredError}
|
|
19832
19878
|
*/
|
|
19833
|
-
getERC20Token(
|
|
19834
|
-
return localVarFp.getERC20Token(
|
|
19879
|
+
getERC20Token(contractAddress, chainName, options) {
|
|
19880
|
+
return localVarFp.getERC20Token(contractAddress, chainName, options).then((request) => request(axios, basePath));
|
|
19835
19881
|
},
|
|
19836
19882
|
/**
|
|
19837
19883
|
* List ERC20 tokens
|
|
19838
19884
|
* @summary List ERC20 tokens
|
|
19839
|
-
* @param {
|
|
19885
|
+
* @param {string} chainName The name of chain
|
|
19886
|
+
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
19887
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
19888
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
19840
19889
|
* @param {*} [options] Override http request option.
|
|
19841
19890
|
* @throws {RequiredError}
|
|
19842
19891
|
*/
|
|
19843
|
-
listERC20Tokens(
|
|
19844
|
-
return localVarFp.listERC20Tokens(
|
|
19892
|
+
listERC20Tokens(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
|
|
19893
|
+
return localVarFp.listERC20Tokens(chainName, fromUpdatedAt, pageCursor, pageSize, options).then((request) => request(axios, basePath));
|
|
19845
19894
|
},
|
|
19846
19895
|
};
|
|
19847
19896
|
};
|
|
@@ -19964,6 +20013,125 @@ class Configuration {
|
|
|
19964
20013
|
}
|
|
19965
20014
|
}
|
|
19966
20015
|
|
|
20016
|
+
/* tslint:disable */
|
|
20017
|
+
/* eslint-disable */
|
|
20018
|
+
/**
|
|
20019
|
+
* Immutable zkEVM API
|
|
20020
|
+
* Immutable Multi Rollup API
|
|
20021
|
+
*
|
|
20022
|
+
* The version of the OpenAPI document: 1.0.0
|
|
20023
|
+
* Contact: support@immutable.com
|
|
20024
|
+
*
|
|
20025
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
20026
|
+
* https://openapi-generator.tech
|
|
20027
|
+
* Do not edit the class manually.
|
|
20028
|
+
*/
|
|
20029
|
+
const APIError400AllOfCodeEnum = {
|
|
20030
|
+
ValidationError: 'VALIDATION_ERROR'
|
|
20031
|
+
};
|
|
20032
|
+
|
|
20033
|
+
/* tslint:disable */
|
|
20034
|
+
/* eslint-disable */
|
|
20035
|
+
/**
|
|
20036
|
+
* Immutable zkEVM API
|
|
20037
|
+
* Immutable Multi Rollup API
|
|
20038
|
+
*
|
|
20039
|
+
* The version of the OpenAPI document: 1.0.0
|
|
20040
|
+
* Contact: support@immutable.com
|
|
20041
|
+
*
|
|
20042
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
20043
|
+
* https://openapi-generator.tech
|
|
20044
|
+
* Do not edit the class manually.
|
|
20045
|
+
*/
|
|
20046
|
+
const APIError401AllOfCodeEnum = {
|
|
20047
|
+
UnauthorisedRequest: 'UNAUTHORISED_REQUEST'
|
|
20048
|
+
};
|
|
20049
|
+
|
|
20050
|
+
/* tslint:disable */
|
|
20051
|
+
/* eslint-disable */
|
|
20052
|
+
/**
|
|
20053
|
+
* Immutable zkEVM API
|
|
20054
|
+
* Immutable Multi Rollup API
|
|
20055
|
+
*
|
|
20056
|
+
* The version of the OpenAPI document: 1.0.0
|
|
20057
|
+
* Contact: support@immutable.com
|
|
20058
|
+
*
|
|
20059
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
20060
|
+
* https://openapi-generator.tech
|
|
20061
|
+
* Do not edit the class manually.
|
|
20062
|
+
*/
|
|
20063
|
+
const APIError403AllOfCodeEnum = {
|
|
20064
|
+
AuthenticationError: 'AUTHENTICATION_ERROR'
|
|
20065
|
+
};
|
|
20066
|
+
|
|
20067
|
+
/* tslint:disable */
|
|
20068
|
+
/* eslint-disable */
|
|
20069
|
+
/**
|
|
20070
|
+
* Immutable zkEVM API
|
|
20071
|
+
* Immutable Multi Rollup API
|
|
20072
|
+
*
|
|
20073
|
+
* The version of the OpenAPI document: 1.0.0
|
|
20074
|
+
* Contact: support@immutable.com
|
|
20075
|
+
*
|
|
20076
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
20077
|
+
* https://openapi-generator.tech
|
|
20078
|
+
* Do not edit the class manually.
|
|
20079
|
+
*/
|
|
20080
|
+
const APIError404AllOfCodeEnum = {
|
|
20081
|
+
ResourceNotFound: 'RESOURCE_NOT_FOUND'
|
|
20082
|
+
};
|
|
20083
|
+
|
|
20084
|
+
/* tslint:disable */
|
|
20085
|
+
/* eslint-disable */
|
|
20086
|
+
/**
|
|
20087
|
+
* Immutable zkEVM API
|
|
20088
|
+
* Immutable Multi Rollup API
|
|
20089
|
+
*
|
|
20090
|
+
* The version of the OpenAPI document: 1.0.0
|
|
20091
|
+
* Contact: support@immutable.com
|
|
20092
|
+
*
|
|
20093
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
20094
|
+
* https://openapi-generator.tech
|
|
20095
|
+
* Do not edit the class manually.
|
|
20096
|
+
*/
|
|
20097
|
+
const APIError429AllOfCodeEnum = {
|
|
20098
|
+
TooManyRequestsError: 'TOO_MANY_REQUESTS_ERROR'
|
|
20099
|
+
};
|
|
20100
|
+
|
|
20101
|
+
/* tslint:disable */
|
|
20102
|
+
/* eslint-disable */
|
|
20103
|
+
/**
|
|
20104
|
+
* Immutable zkEVM API
|
|
20105
|
+
* Immutable Multi Rollup API
|
|
20106
|
+
*
|
|
20107
|
+
* The version of the OpenAPI document: 1.0.0
|
|
20108
|
+
* Contact: support@immutable.com
|
|
20109
|
+
*
|
|
20110
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
20111
|
+
* https://openapi-generator.tech
|
|
20112
|
+
* Do not edit the class manually.
|
|
20113
|
+
*/
|
|
20114
|
+
const APIError500AllOfCodeEnum = {
|
|
20115
|
+
InternalServerError: 'INTERNAL_SERVER_ERROR'
|
|
20116
|
+
};
|
|
20117
|
+
|
|
20118
|
+
/* tslint:disable */
|
|
20119
|
+
/* eslint-disable */
|
|
20120
|
+
/**
|
|
20121
|
+
* Immutable zkEVM API
|
|
20122
|
+
* Immutable Multi Rollup API
|
|
20123
|
+
*
|
|
20124
|
+
* The version of the OpenAPI document: 1.0.0
|
|
20125
|
+
* Contact: support@immutable.com
|
|
20126
|
+
*
|
|
20127
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
20128
|
+
* https://openapi-generator.tech
|
|
20129
|
+
* Do not edit the class manually.
|
|
20130
|
+
*/
|
|
20131
|
+
const APIError501AllOfCodeEnum = {
|
|
20132
|
+
NotImplementedError: 'NOT_IMPLEMENTED_ERROR'
|
|
20133
|
+
};
|
|
20134
|
+
|
|
19967
20135
|
/* tslint:disable */
|
|
19968
20136
|
/* eslint-disable */
|
|
19969
20137
|
/**
|
|
@@ -20328,6 +20496,13 @@ const TokenContractType = {
|
|
|
20328
20496
|
|
|
20329
20497
|
var index = /*#__PURE__*/Object.freeze({
|
|
20330
20498
|
__proto__: null,
|
|
20499
|
+
APIError400AllOfCodeEnum: APIError400AllOfCodeEnum,
|
|
20500
|
+
APIError401AllOfCodeEnum: APIError401AllOfCodeEnum,
|
|
20501
|
+
APIError403AllOfCodeEnum: APIError403AllOfCodeEnum,
|
|
20502
|
+
APIError404AllOfCodeEnum: APIError404AllOfCodeEnum,
|
|
20503
|
+
APIError429AllOfCodeEnum: APIError429AllOfCodeEnum,
|
|
20504
|
+
APIError500AllOfCodeEnum: APIError500AllOfCodeEnum,
|
|
20505
|
+
APIError501AllOfCodeEnum: APIError501AllOfCodeEnum,
|
|
20331
20506
|
ActiveOrderStatusNameEnum: ActiveOrderStatusNameEnum,
|
|
20332
20507
|
ActivitiesApi: ActivitiesApi,
|
|
20333
20508
|
ActivitiesApiAxiosParamCreator: ActivitiesApiAxiosParamCreator,
|
|
@@ -20353,10 +20528,6 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
20353
20528
|
FeeFeeTypeEnum: FeeFeeTypeEnum,
|
|
20354
20529
|
FilledOrderStatusNameEnum: FilledOrderStatusNameEnum,
|
|
20355
20530
|
InactiveOrderStatusNameEnum: InactiveOrderStatusNameEnum,
|
|
20356
|
-
ListListingsSortByEnum: ListListingsSortByEnum$1,
|
|
20357
|
-
ListListingsSortDirectionEnum: ListListingsSortDirectionEnum$1,
|
|
20358
|
-
ListTradesSortByEnum: ListTradesSortByEnum$1,
|
|
20359
|
-
ListTradesSortDirectionEnum: ListTradesSortDirectionEnum$1,
|
|
20360
20531
|
MetadataApi: MetadataApi,
|
|
20361
20532
|
MetadataApiAxiosParamCreator: MetadataApiAxiosParamCreator,
|
|
20362
20533
|
MetadataApiFactory: MetadataApiFactory,
|
|
@@ -20409,7 +20580,7 @@ class APIError extends Error {
|
|
|
20409
20580
|
|
|
20410
20581
|
/* eslint-disable implicit-arrow-linebreak */
|
|
20411
20582
|
const defaultHeaders = {
|
|
20412
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.27.
|
|
20583
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.27.3',
|
|
20413
20584
|
};
|
|
20414
20585
|
/**
|
|
20415
20586
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -20917,11 +21088,11 @@ const $d85ad1457a3f1a83$var$ZKEVM_NATIVE_TOKEN = {
|
|
|
20917
21088
|
decimals: $d85ad1457a3f1a83$export$903389470ba9433c,
|
|
20918
21089
|
address: $d85ad1457a3f1a83$export$b80040cb173ba6e9
|
|
20919
21090
|
};
|
|
20920
|
-
|
|
21091
|
+
const $d85ad1457a3f1a83$export$89133ca13c5ee30 = {
|
|
20921
21092
|
[$d85ad1457a3f1a83$export$7d3a9eeba384fa59]: "https://api.dev.immutable.com",
|
|
20922
21093
|
[(Environment$1).SANDBOX]: "https://api.sandbox.immutable.com",
|
|
20923
21094
|
[(Environment$1).PRODUCTION]: "https://api.immutable.com"
|
|
20924
|
-
}
|
|
21095
|
+
};
|
|
20925
21096
|
const $d85ad1457a3f1a83$export$161d4a74df65fc08 = {
|
|
20926
21097
|
[$d85ad1457a3f1a83$export$7d3a9eeba384fa59]: "https://checkout-api.dev.immutable.com",
|
|
20927
21098
|
[(Environment$1).SANDBOX]: "https://checkout-api.sandbox.immutable.com",
|
|
@@ -24649,6 +24820,35 @@ async function $d35036efee31c5d1$export$dc8635800ef20f4b(provider, requirements)
|
|
|
24649
24820
|
|
|
24650
24821
|
|
|
24651
24822
|
|
|
24823
|
+
|
|
24824
|
+
|
|
24825
|
+
|
|
24826
|
+
|
|
24827
|
+
const $5e9bcae98dc8ff19$export$1165ca270f090a66 = (isDevelopment, isProduction)=>{
|
|
24828
|
+
const postEndpoint = ()=>{
|
|
24829
|
+
if (isDevelopment) return ($d85ad1457a3f1a83$export$89133ca13c5ee30)[$d85ad1457a3f1a83$export$7d3a9eeba384fa59];
|
|
24830
|
+
if (isProduction) return ($d85ad1457a3f1a83$export$89133ca13c5ee30)[(Environment$1).PRODUCTION];
|
|
24831
|
+
return ($d85ad1457a3f1a83$export$89133ca13c5ee30)[(Environment$1).SANDBOX];
|
|
24832
|
+
};
|
|
24833
|
+
const checkDexAvailability = async ()=>{
|
|
24834
|
+
let response;
|
|
24835
|
+
try {
|
|
24836
|
+
response = await (0, globalAxios).post(`${postEndpoint()}/v1/availability/checkout/swap`);
|
|
24837
|
+
} catch (error) {
|
|
24838
|
+
throw new ($a8bc256d81a5e2c1$export$b722478a3cbfa3bc)(`Error fetching from api: ${error.message}`, ($a8bc256d81a5e2c1$export$e3dc0620abde7f5a).API_ERROR);
|
|
24839
|
+
}
|
|
24840
|
+
if (response.status === 403) return false;
|
|
24841
|
+
if (response.status === 204) return true;
|
|
24842
|
+
throw new ($a8bc256d81a5e2c1$export$b722478a3cbfa3bc)(`Error fetching from api: ${response.status} ${response.statusText}`, ($a8bc256d81a5e2c1$export$e3dc0620abde7f5a).API_ERROR);
|
|
24843
|
+
};
|
|
24844
|
+
return {
|
|
24845
|
+
checkDexAvailability: checkDexAvailability
|
|
24846
|
+
};
|
|
24847
|
+
};
|
|
24848
|
+
|
|
24849
|
+
|
|
24850
|
+
|
|
24851
|
+
|
|
24652
24852
|
const $a8cb37a3fc8eb863$var$SANDBOX_CONFIGURATION = {
|
|
24653
24853
|
baseConfig: {
|
|
24654
24854
|
environment: (Environment$1).SANDBOX
|
|
@@ -24658,6 +24858,7 @@ class $a8cb37a3fc8eb863$export$1f60ba4ec72508a0 {
|
|
|
24658
24858
|
config;
|
|
24659
24859
|
fiatRampService;
|
|
24660
24860
|
readOnlyProviders;
|
|
24861
|
+
availability;
|
|
24661
24862
|
/**
|
|
24662
24863
|
* Constructs a new instance of the CheckoutModule class.
|
|
24663
24864
|
* @param {CheckoutModuleConfiguration} [config=SANDBOX_CONFIGURATION] - The configuration object for the CheckoutModule.
|
|
@@ -24665,6 +24866,7 @@ class $a8cb37a3fc8eb863$export$1f60ba4ec72508a0 {
|
|
|
24665
24866
|
this.config = new ($4013c5c91bb535f6$export$4823433c4a67bbc6)(config);
|
|
24666
24867
|
this.fiatRampService = new ($a77d203f701a3b72$export$1453e9b801542ef4)(this.config);
|
|
24667
24868
|
this.readOnlyProviders = new Map();
|
|
24869
|
+
this.availability = ($5e9bcae98dc8ff19$export$1165ca270f090a66)(this.config.isDevelopment, this.config.isProduction);
|
|
24668
24870
|
}
|
|
24669
24871
|
/**
|
|
24670
24872
|
* Creates a provider using the given parameters.
|
|
@@ -24874,6 +25076,12 @@ class $a8cb37a3fc8eb863$export$1f60ba4ec72508a0 {
|
|
|
24874
25076
|
*/ async getExchangeFeeEstimate() {
|
|
24875
25077
|
return await this.fiatRampService.feeEstimate();
|
|
24876
25078
|
}
|
|
25079
|
+
/**
|
|
25080
|
+
* Fetches Swap widget availability.
|
|
25081
|
+
* @returns {Promise<boolean>} - A promise that resolves to a boolean.
|
|
25082
|
+
*/ async isSwapAvailable() {
|
|
25083
|
+
return this.availability.checkDexAvailability();
|
|
25084
|
+
}
|
|
24877
25085
|
}
|
|
24878
25086
|
|
|
24879
25087
|
export { $d85ad1457a3f1a83$export$161d4a74df65fc08 as CHECKOUT_API_BASE_URL, $0472f23319457bfb$export$c06e1e7429de6283 as ChainId, $0472f23319457bfb$export$b874c6b1dfe85e02 as ChainName, $a8cb37a3fc8eb863$export$1f60ba4ec72508a0 as Checkout, $a8bc256d81a5e2c1$export$e3dc0620abde7f5a as CheckoutErrorType, $4b58188d47aafe8d$export$de7bcda3c490bf18 as CheckoutStatus, $e055e79256bbc1dd$export$80f4da0d409a629d as ExchangeType, $4b58188d47aafe8d$export$6fbaa98ee06d03e8 as FundingStepType, $de275b98d2b651c3$export$788b1fd17f3dad84 as GasEstimateType, $4b58188d47aafe8d$export$537fa3efd10ed435 as GasTokenType, $4b58188d47aafe8d$export$1fc8f52ad1810e52 as ItemType, $a47e48dd2c04791b$export$1f05a55fe0680cc7 as NetworkFilterTypes, $4b58188d47aafe8d$export$d0616bd3e995b8be as RoutingOutcomeType, $08d5ddc39acd6833$export$fd9b17d87f4121d2 as TokenFilterTypes, $4b58188d47aafe8d$export$65c64e46348ee3c1 as TransactionOrGasType, $4f91c5f280efe242$export$a75605c67ea83a5a as WalletFilterTypes, $e768639828688ca3$export$2d7a51a18d87e21d as WalletProviderName };
|