@imtbl/sdk 1.10.0-alpha → 1.10.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/blockchain_data.d.ts +264 -845
- package/dist/blockchain_data.js +2 -274
- package/dist/browser/checkout/{BridgeWidget-36fe7401.js → BridgeWidget-31d071b4.js} +1 -1
- package/dist/browser/checkout/{OnRampWidget-21725b01.js → OnRampWidget-4eec34f6.js} +1 -1
- package/dist/browser/checkout/{SaleWidget-3677a1c5.js → SaleWidget-596fd2e5.js} +2 -2
- package/dist/browser/checkout/{SpendingCapHero-5fb4ac25.js → SpendingCapHero-bb5926a7.js} +1 -1
- package/dist/browser/checkout/{SwapWidget-0d6bc0d4.js → SwapWidget-35e7e9f2.js} +1 -1
- package/dist/browser/checkout/{TopUpView-60d92a82.js → TopUpView-a266b45b.js} +1 -1
- package/dist/browser/checkout/{WalletWidget-2fcbc4bb.js → WalletWidget-fbdc8df9.js} +1 -1
- package/dist/browser/checkout/{auto-track-62ee6964.js → auto-track-8e44b259.js} +1 -1
- package/dist/browser/checkout/{balance-b321aaf7.js → balance-2f1a40a7.js} +1 -1
- package/dist/browser/checkout/{index-ab695071.js → index-05c37e37.js} +1 -1
- package/dist/browser/checkout/{index-1a8c04a2.js → index-12cfbb8d.js} +1 -1
- package/dist/browser/checkout/{index-c4bede96.js → index-44c1fadf.js} +1 -1
- package/dist/browser/checkout/{index-407df153.js → index-75030038.js} +1 -1
- package/dist/browser/checkout/{index-352de7c2.js → index-881a9811.js} +1 -1
- package/dist/browser/checkout/{index-0dadb136.js → index-d506d80c.js} +1 -1
- package/dist/browser/checkout/index-d708abfc.js +1 -0
- package/dist/browser/checkout/{index-9ae59197.js → index-ec746bdd.js} +2 -2
- package/dist/browser/checkout/{index.umd-4c6acdc2.js → index.umd-8511e3cb.js} +1 -1
- package/dist/browser/checkout/{retry-d9a527bc.js → retry-d29da2e9.js} +1 -1
- package/dist/browser/checkout/sdk.js +8 -8
- package/dist/browser/checkout/{useTransakEvents-9ceb1e81.js → useTransakEvents-eca6f619.js} +1 -1
- package/dist/browser/checkout/widgets-esm.js +1 -1
- package/dist/browser/checkout/widgets.js +3 -3
- package/dist/checkout.d.ts +0 -3
- package/dist/checkout.js +4 -276
- package/dist/config.js +1 -1
- package/dist/index.browser.js +4 -4
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +6 -278
- package/dist/index.d.ts +263 -847
- package/dist/index.js +6 -278
- package/dist/orderbook.js +1 -1
- package/dist/passport.js +3 -203
- package/dist/x.js +2 -2
- package/package.json +1 -1
- package/dist/browser/checkout/index-a7be28ed.js +0 -1
package/dist/checkout.d.ts
CHANGED
|
@@ -23493,7 +23493,6 @@ type OnRampWidgetParams = {
|
|
|
23493
23493
|
* Sale Widget parameters
|
|
23494
23494
|
* @property {string} amount
|
|
23495
23495
|
* @property {string} environmentId
|
|
23496
|
-
* @property {string} fromTokenAddress
|
|
23497
23496
|
* @property {SaleItem[]} items
|
|
23498
23497
|
* @property {WalletProviderName | undefined} walletProviderName
|
|
23499
23498
|
*/
|
|
@@ -23502,8 +23501,6 @@ type SaleWidgetParams = {
|
|
|
23502
23501
|
amount?: string;
|
|
23503
23502
|
/** Environment id from Immutable Hub */
|
|
23504
23503
|
environmentId?: string;
|
|
23505
|
-
/** Contract address of the token accepted for payments */
|
|
23506
|
-
fromTokenAddress?: string;
|
|
23507
23504
|
/** The list of products to be purchased */
|
|
23508
23505
|
items?: SaleItem[];
|
|
23509
23506
|
/** The name of the NFT collection on sale */
|
package/dist/checkout.js
CHANGED
|
@@ -139,7 +139,7 @@ const flattenProperties$1 = (properties) => {
|
|
|
139
139
|
};
|
|
140
140
|
|
|
141
141
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
142
|
-
const SDK_VERSION$1 = '1.10.0-alpha';
|
|
142
|
+
const SDK_VERSION$1 = '1.10.0-alpha.1';
|
|
143
143
|
const getReferrer$1 = () => {
|
|
144
144
|
if (isNode$1()) {
|
|
145
145
|
return '';
|
|
@@ -17479,7 +17479,7 @@ const flattenProperties = (properties) => {
|
|
|
17479
17479
|
};
|
|
17480
17480
|
|
|
17481
17481
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
17482
|
-
const SDK_VERSION = '1.10.0-alpha';
|
|
17482
|
+
const SDK_VERSION = '1.10.0-alpha.1';
|
|
17483
17483
|
const getReferrer = () => {
|
|
17484
17484
|
if (isNode()) {
|
|
17485
17485
|
return '';
|
|
@@ -24948,85 +24948,6 @@ class NftOwnersApi extends BaseAPI {
|
|
|
24948
24948
|
*/
|
|
24949
24949
|
const NftsApiAxiosParamCreator = function (configuration) {
|
|
24950
24950
|
return {
|
|
24951
|
-
/**
|
|
24952
|
-
* Create a mint request to mint a set of NFTs for a given collection
|
|
24953
|
-
* @summary Mint NFTs
|
|
24954
|
-
* @param {string} contractAddress The address of contract
|
|
24955
|
-
* @param {string} chainName The name of chain
|
|
24956
|
-
* @param {CreateMintRequestRequest} createMintRequestRequest the request body
|
|
24957
|
-
* @param {*} [options] Override http request option.
|
|
24958
|
-
* @throws {RequiredError}
|
|
24959
|
-
*/
|
|
24960
|
-
createMintRequest: async (contractAddress, chainName, createMintRequestRequest, options = {}) => {
|
|
24961
|
-
// verify required parameter 'contractAddress' is not null or undefined
|
|
24962
|
-
assertParamExists('createMintRequest', 'contractAddress', contractAddress);
|
|
24963
|
-
// verify required parameter 'chainName' is not null or undefined
|
|
24964
|
-
assertParamExists('createMintRequest', 'chainName', chainName);
|
|
24965
|
-
// verify required parameter 'createMintRequestRequest' is not null or undefined
|
|
24966
|
-
assertParamExists('createMintRequest', 'createMintRequestRequest', createMintRequestRequest);
|
|
24967
|
-
const localVarPath = `/experimental/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests`
|
|
24968
|
-
.replace(`{${"contract_address"}}`, encodeURIComponent(String(contractAddress)))
|
|
24969
|
-
.replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
|
|
24970
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
24971
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
24972
|
-
let baseOptions;
|
|
24973
|
-
if (configuration) {
|
|
24974
|
-
baseOptions = configuration.baseOptions;
|
|
24975
|
-
}
|
|
24976
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
24977
|
-
const localVarHeaderParameter = {};
|
|
24978
|
-
const localVarQueryParameter = {};
|
|
24979
|
-
// authentication ImmutableApiKey required
|
|
24980
|
-
await setApiKeyToObject(localVarHeaderParameter, "x-immutable-api-key", configuration);
|
|
24981
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
24982
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
24983
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
24984
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
24985
|
-
localVarRequestOptions.data = serializeDataIfNeeded(createMintRequestRequest, localVarRequestOptions, configuration);
|
|
24986
|
-
return {
|
|
24987
|
-
url: toPathString(localVarUrlObj),
|
|
24988
|
-
options: localVarRequestOptions,
|
|
24989
|
-
};
|
|
24990
|
-
},
|
|
24991
|
-
/**
|
|
24992
|
-
* Retrieve the status of a mint request identified by its reference_id
|
|
24993
|
-
* @summary Get mint request by reference ID
|
|
24994
|
-
* @param {string} contractAddress The address of contract
|
|
24995
|
-
* @param {string} chainName The name of chain
|
|
24996
|
-
* @param {string} referenceId The ID of the mint request
|
|
24997
|
-
* @param {*} [options] Override http request option.
|
|
24998
|
-
* @throws {RequiredError}
|
|
24999
|
-
*/
|
|
25000
|
-
getMintRequest: async (contractAddress, chainName, referenceId, options = {}) => {
|
|
25001
|
-
// verify required parameter 'contractAddress' is not null or undefined
|
|
25002
|
-
assertParamExists('getMintRequest', 'contractAddress', contractAddress);
|
|
25003
|
-
// verify required parameter 'chainName' is not null or undefined
|
|
25004
|
-
assertParamExists('getMintRequest', 'chainName', chainName);
|
|
25005
|
-
// verify required parameter 'referenceId' is not null or undefined
|
|
25006
|
-
assertParamExists('getMintRequest', 'referenceId', referenceId);
|
|
25007
|
-
const localVarPath = `/experimental/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests/{reference_id}`
|
|
25008
|
-
.replace(`{${"contract_address"}}`, encodeURIComponent(String(contractAddress)))
|
|
25009
|
-
.replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)))
|
|
25010
|
-
.replace(`{${"reference_id"}}`, encodeURIComponent(String(referenceId)));
|
|
25011
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
25012
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
25013
|
-
let baseOptions;
|
|
25014
|
-
if (configuration) {
|
|
25015
|
-
baseOptions = configuration.baseOptions;
|
|
25016
|
-
}
|
|
25017
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
25018
|
-
const localVarHeaderParameter = {};
|
|
25019
|
-
const localVarQueryParameter = {};
|
|
25020
|
-
// authentication ImmutableApiKey required
|
|
25021
|
-
await setApiKeyToObject(localVarHeaderParameter, "x-immutable-api-key", configuration);
|
|
25022
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
25023
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
25024
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
25025
|
-
return {
|
|
25026
|
-
url: toPathString(localVarUrlObj),
|
|
25027
|
-
options: localVarRequestOptions,
|
|
25028
|
-
};
|
|
25029
|
-
},
|
|
25030
24951
|
/**
|
|
25031
24952
|
* Get NFT by token ID
|
|
25032
24953
|
* @summary Get NFT by token ID
|
|
@@ -25107,53 +25028,6 @@ const NftsApiAxiosParamCreator = function (configuration) {
|
|
|
25107
25028
|
options: localVarRequestOptions,
|
|
25108
25029
|
};
|
|
25109
25030
|
},
|
|
25110
|
-
/**
|
|
25111
|
-
* Retrieve the status of all mints for a given contract address
|
|
25112
|
-
* @summary List mint requests
|
|
25113
|
-
* @param {string} contractAddress The address of contract
|
|
25114
|
-
* @param {string} chainName The name of chain
|
|
25115
|
-
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
25116
|
-
* @param {number} [pageSize] Maximum number of items to return
|
|
25117
|
-
* @param {MintRequestStatus} [status] The status of the mint request
|
|
25118
|
-
* @param {*} [options] Override http request option.
|
|
25119
|
-
* @throws {RequiredError}
|
|
25120
|
-
*/
|
|
25121
|
-
listMintRequests: async (contractAddress, chainName, pageCursor, pageSize, status, options = {}) => {
|
|
25122
|
-
// verify required parameter 'contractAddress' is not null or undefined
|
|
25123
|
-
assertParamExists('listMintRequests', 'contractAddress', contractAddress);
|
|
25124
|
-
// verify required parameter 'chainName' is not null or undefined
|
|
25125
|
-
assertParamExists('listMintRequests', 'chainName', chainName);
|
|
25126
|
-
const localVarPath = `/experimental/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests`
|
|
25127
|
-
.replace(`{${"contract_address"}}`, encodeURIComponent(String(contractAddress)))
|
|
25128
|
-
.replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
|
|
25129
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
25130
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
25131
|
-
let baseOptions;
|
|
25132
|
-
if (configuration) {
|
|
25133
|
-
baseOptions = configuration.baseOptions;
|
|
25134
|
-
}
|
|
25135
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
25136
|
-
const localVarHeaderParameter = {};
|
|
25137
|
-
const localVarQueryParameter = {};
|
|
25138
|
-
// authentication ImmutableApiKey required
|
|
25139
|
-
await setApiKeyToObject(localVarHeaderParameter, "x-immutable-api-key", configuration);
|
|
25140
|
-
if (pageCursor !== undefined) {
|
|
25141
|
-
localVarQueryParameter['page_cursor'] = pageCursor;
|
|
25142
|
-
}
|
|
25143
|
-
if (pageSize !== undefined) {
|
|
25144
|
-
localVarQueryParameter['page_size'] = pageSize;
|
|
25145
|
-
}
|
|
25146
|
-
if (status !== undefined) {
|
|
25147
|
-
localVarQueryParameter['status'] = status;
|
|
25148
|
-
}
|
|
25149
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
25150
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
25151
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
25152
|
-
return {
|
|
25153
|
-
url: toPathString(localVarUrlObj),
|
|
25154
|
-
options: localVarRequestOptions,
|
|
25155
|
-
};
|
|
25156
|
-
},
|
|
25157
25031
|
/**
|
|
25158
25032
|
* List NFTs by contract address
|
|
25159
25033
|
* @summary List NFTs by contract address
|
|
@@ -25259,32 +25133,6 @@ const NftsApiAxiosParamCreator = function (configuration) {
|
|
|
25259
25133
|
const NftsApiFp = function (configuration) {
|
|
25260
25134
|
const localVarAxiosParamCreator = NftsApiAxiosParamCreator(configuration);
|
|
25261
25135
|
return {
|
|
25262
|
-
/**
|
|
25263
|
-
* Create a mint request to mint a set of NFTs for a given collection
|
|
25264
|
-
* @summary Mint NFTs
|
|
25265
|
-
* @param {string} contractAddress The address of contract
|
|
25266
|
-
* @param {string} chainName The name of chain
|
|
25267
|
-
* @param {CreateMintRequestRequest} createMintRequestRequest the request body
|
|
25268
|
-
* @param {*} [options] Override http request option.
|
|
25269
|
-
* @throws {RequiredError}
|
|
25270
|
-
*/
|
|
25271
|
-
async createMintRequest(contractAddress, chainName, createMintRequestRequest, options) {
|
|
25272
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createMintRequest(contractAddress, chainName, createMintRequestRequest, options);
|
|
25273
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
25274
|
-
},
|
|
25275
|
-
/**
|
|
25276
|
-
* Retrieve the status of a mint request identified by its reference_id
|
|
25277
|
-
* @summary Get mint request by reference ID
|
|
25278
|
-
* @param {string} contractAddress The address of contract
|
|
25279
|
-
* @param {string} chainName The name of chain
|
|
25280
|
-
* @param {string} referenceId The ID of the mint request
|
|
25281
|
-
* @param {*} [options] Override http request option.
|
|
25282
|
-
* @throws {RequiredError}
|
|
25283
|
-
*/
|
|
25284
|
-
async getMintRequest(contractAddress, chainName, referenceId, options) {
|
|
25285
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getMintRequest(contractAddress, chainName, referenceId, options);
|
|
25286
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
25287
|
-
},
|
|
25288
25136
|
/**
|
|
25289
25137
|
* Get NFT by token ID
|
|
25290
25138
|
* @summary Get NFT by token ID
|
|
@@ -25312,21 +25160,6 @@ const NftsApiFp = function (configuration) {
|
|
|
25312
25160
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listAllNFTs(chainName, fromUpdatedAt, pageCursor, pageSize, options);
|
|
25313
25161
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
25314
25162
|
},
|
|
25315
|
-
/**
|
|
25316
|
-
* Retrieve the status of all mints for a given contract address
|
|
25317
|
-
* @summary List mint requests
|
|
25318
|
-
* @param {string} contractAddress The address of contract
|
|
25319
|
-
* @param {string} chainName The name of chain
|
|
25320
|
-
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
25321
|
-
* @param {number} [pageSize] Maximum number of items to return
|
|
25322
|
-
* @param {MintRequestStatus} [status] The status of the mint request
|
|
25323
|
-
* @param {*} [options] Override http request option.
|
|
25324
|
-
* @throws {RequiredError}
|
|
25325
|
-
*/
|
|
25326
|
-
async listMintRequests(contractAddress, chainName, pageCursor, pageSize, status, options) {
|
|
25327
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listMintRequests(contractAddress, chainName, pageCursor, pageSize, status, options);
|
|
25328
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
25329
|
-
},
|
|
25330
25163
|
/**
|
|
25331
25164
|
* List NFTs by contract address
|
|
25332
25165
|
* @summary List NFTs by contract address
|
|
@@ -25367,26 +25200,6 @@ const NftsApiFp = function (configuration) {
|
|
|
25367
25200
|
const NftsApiFactory = function (configuration, basePath, axios) {
|
|
25368
25201
|
const localVarFp = NftsApiFp(configuration);
|
|
25369
25202
|
return {
|
|
25370
|
-
/**
|
|
25371
|
-
* Create a mint request to mint a set of NFTs for a given collection
|
|
25372
|
-
* @summary Mint NFTs
|
|
25373
|
-
* @param {NftsApiCreateMintRequestRequest} requestParameters Request parameters.
|
|
25374
|
-
* @param {*} [options] Override http request option.
|
|
25375
|
-
* @throws {RequiredError}
|
|
25376
|
-
*/
|
|
25377
|
-
createMintRequest(requestParameters, options) {
|
|
25378
|
-
return localVarFp.createMintRequest(requestParameters.contractAddress, requestParameters.chainName, requestParameters.createMintRequestRequest, options).then((request) => request(axios, basePath));
|
|
25379
|
-
},
|
|
25380
|
-
/**
|
|
25381
|
-
* Retrieve the status of a mint request identified by its reference_id
|
|
25382
|
-
* @summary Get mint request by reference ID
|
|
25383
|
-
* @param {NftsApiGetMintRequestRequest} requestParameters Request parameters.
|
|
25384
|
-
* @param {*} [options] Override http request option.
|
|
25385
|
-
* @throws {RequiredError}
|
|
25386
|
-
*/
|
|
25387
|
-
getMintRequest(requestParameters, options) {
|
|
25388
|
-
return localVarFp.getMintRequest(requestParameters.contractAddress, requestParameters.chainName, requestParameters.referenceId, options).then((request) => request(axios, basePath));
|
|
25389
|
-
},
|
|
25390
25203
|
/**
|
|
25391
25204
|
* Get NFT by token ID
|
|
25392
25205
|
* @summary Get NFT by token ID
|
|
@@ -25407,16 +25220,6 @@ const NftsApiFactory = function (configuration, basePath, axios) {
|
|
|
25407
25220
|
listAllNFTs(requestParameters, options) {
|
|
25408
25221
|
return localVarFp.listAllNFTs(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
|
|
25409
25222
|
},
|
|
25410
|
-
/**
|
|
25411
|
-
* Retrieve the status of all mints for a given contract address
|
|
25412
|
-
* @summary List mint requests
|
|
25413
|
-
* @param {NftsApiListMintRequestsRequest} requestParameters Request parameters.
|
|
25414
|
-
* @param {*} [options] Override http request option.
|
|
25415
|
-
* @throws {RequiredError}
|
|
25416
|
-
*/
|
|
25417
|
-
listMintRequests(requestParameters, options) {
|
|
25418
|
-
return localVarFp.listMintRequests(requestParameters.contractAddress, requestParameters.chainName, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.status, options).then((request) => request(axios, basePath));
|
|
25419
|
-
},
|
|
25420
25223
|
/**
|
|
25421
25224
|
* List NFTs by contract address
|
|
25422
25225
|
* @summary List NFTs by contract address
|
|
@@ -25446,28 +25249,6 @@ const NftsApiFactory = function (configuration, basePath, axios) {
|
|
|
25446
25249
|
* @extends {BaseAPI}
|
|
25447
25250
|
*/
|
|
25448
25251
|
class NftsApi extends BaseAPI {
|
|
25449
|
-
/**
|
|
25450
|
-
* Create a mint request to mint a set of NFTs for a given collection
|
|
25451
|
-
* @summary Mint NFTs
|
|
25452
|
-
* @param {NftsApiCreateMintRequestRequest} requestParameters Request parameters.
|
|
25453
|
-
* @param {*} [options] Override http request option.
|
|
25454
|
-
* @throws {RequiredError}
|
|
25455
|
-
* @memberof NftsApi
|
|
25456
|
-
*/
|
|
25457
|
-
createMintRequest(requestParameters, options) {
|
|
25458
|
-
return NftsApiFp(this.configuration).createMintRequest(requestParameters.contractAddress, requestParameters.chainName, requestParameters.createMintRequestRequest, options).then((request) => request(this.axios, this.basePath));
|
|
25459
|
-
}
|
|
25460
|
-
/**
|
|
25461
|
-
* Retrieve the status of a mint request identified by its reference_id
|
|
25462
|
-
* @summary Get mint request by reference ID
|
|
25463
|
-
* @param {NftsApiGetMintRequestRequest} requestParameters Request parameters.
|
|
25464
|
-
* @param {*} [options] Override http request option.
|
|
25465
|
-
* @throws {RequiredError}
|
|
25466
|
-
* @memberof NftsApi
|
|
25467
|
-
*/
|
|
25468
|
-
getMintRequest(requestParameters, options) {
|
|
25469
|
-
return NftsApiFp(this.configuration).getMintRequest(requestParameters.contractAddress, requestParameters.chainName, requestParameters.referenceId, options).then((request) => request(this.axios, this.basePath));
|
|
25470
|
-
}
|
|
25471
25252
|
/**
|
|
25472
25253
|
* Get NFT by token ID
|
|
25473
25254
|
* @summary Get NFT by token ID
|
|
@@ -25490,17 +25271,6 @@ class NftsApi extends BaseAPI {
|
|
|
25490
25271
|
listAllNFTs(requestParameters, options) {
|
|
25491
25272
|
return NftsApiFp(this.configuration).listAllNFTs(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
25492
25273
|
}
|
|
25493
|
-
/**
|
|
25494
|
-
* Retrieve the status of all mints for a given contract address
|
|
25495
|
-
* @summary List mint requests
|
|
25496
|
-
* @param {NftsApiListMintRequestsRequest} requestParameters Request parameters.
|
|
25497
|
-
* @param {*} [options] Override http request option.
|
|
25498
|
-
* @throws {RequiredError}
|
|
25499
|
-
* @memberof NftsApi
|
|
25500
|
-
*/
|
|
25501
|
-
listMintRequests(requestParameters, options) {
|
|
25502
|
-
return NftsApiFp(this.configuration).listMintRequests(requestParameters.contractAddress, requestParameters.chainName, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
|
|
25503
|
-
}
|
|
25504
25274
|
/**
|
|
25505
25275
|
* List NFTs by contract address
|
|
25506
25276
|
* @summary List NFTs by contract address
|
|
@@ -27955,7 +27725,7 @@ class APIError extends Error {
|
|
|
27955
27725
|
|
|
27956
27726
|
/* eslint-disable implicit-arrow-linebreak */
|
|
27957
27727
|
const defaultHeaders = {
|
|
27958
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.10.0-alpha',
|
|
27728
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.10.0-alpha.1',
|
|
27959
27729
|
};
|
|
27960
27730
|
/**
|
|
27961
27731
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -28216,48 +27986,6 @@ class BlockchainData {
|
|
|
28216
27986
|
throw formatError(err);
|
|
28217
27987
|
});
|
|
28218
27988
|
}
|
|
28219
|
-
/**
|
|
28220
|
-
* Create a mint request to mint a set of NFTs for a given collection
|
|
28221
|
-
* @param request - the request object containing the parameters to be provided in the API request
|
|
28222
|
-
* @returns a promise that resolves with the remaining rate limits
|
|
28223
|
-
* @throws {@link index.APIError}
|
|
28224
|
-
*/
|
|
28225
|
-
async createMintRequest(request) {
|
|
28226
|
-
return await this.nfts
|
|
28227
|
-
.createMintRequest(request)
|
|
28228
|
-
.then((res) => res.data)
|
|
28229
|
-
.catch((err) => {
|
|
28230
|
-
throw formatError(err);
|
|
28231
|
-
});
|
|
28232
|
-
}
|
|
28233
|
-
/**
|
|
28234
|
-
* List all mint requests for a given contract address
|
|
28235
|
-
* @param request - the request object containing the parameters to be provided in the API request
|
|
28236
|
-
* @returns a promise that resolves with a list of mint requests
|
|
28237
|
-
* @throws {@link index.APIError}
|
|
28238
|
-
*/
|
|
28239
|
-
async listMintRequests(request) {
|
|
28240
|
-
return await this.nfts
|
|
28241
|
-
.listMintRequests(request)
|
|
28242
|
-
.then((res) => res.data)
|
|
28243
|
-
.catch((err) => {
|
|
28244
|
-
throw formatError(err);
|
|
28245
|
-
});
|
|
28246
|
-
}
|
|
28247
|
-
/**
|
|
28248
|
-
* Retrieve the status of a single mint request identified by its reference ID
|
|
28249
|
-
* @param request - the request object containing the parameters to be provided in the API request
|
|
28250
|
-
* @returns a promise that resolves with a single mint request
|
|
28251
|
-
* @throws {@link index.APIError}
|
|
28252
|
-
*/
|
|
28253
|
-
async getMintRequest(request) {
|
|
28254
|
-
return await this.nfts
|
|
28255
|
-
.getMintRequest(request)
|
|
28256
|
-
.then((res) => res.data)
|
|
28257
|
-
.catch((err) => {
|
|
28258
|
-
throw formatError(err);
|
|
28259
|
-
});
|
|
28260
|
-
}
|
|
28261
27989
|
/**
|
|
28262
27990
|
* List NFT owners by token ID
|
|
28263
27991
|
* @param request - the request object containing the parameters to be provided in the API request
|
|
@@ -29366,7 +29094,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
|
|
|
29366
29094
|
maxPriorityFeePerGas: BigNumber$1.from(10e9),
|
|
29367
29095
|
};
|
|
29368
29096
|
|
|
29369
|
-
const SDK_VERSION_MARKER = '1.10.0-alpha';
|
|
29097
|
+
const SDK_VERSION_MARKER = '1.10.0-alpha.1';
|
|
29370
29098
|
// This SDK version is replaced by the `yarn build` command ran on the root level
|
|
29371
29099
|
const globalPackageVersion = () => SDK_VERSION_MARKER;
|
|
29372
29100
|
|
package/dist/config.js
CHANGED
|
@@ -128,7 +128,7 @@ const flattenProperties = (properties) => {
|
|
|
128
128
|
};
|
|
129
129
|
|
|
130
130
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
131
|
-
const SDK_VERSION = '1.10.0-alpha';
|
|
131
|
+
const SDK_VERSION = '1.10.0-alpha.1';
|
|
132
132
|
const getReferrer = () => {
|
|
133
133
|
if (isNode()) {
|
|
134
134
|
return '';
|