@imtbl/sdk 1.7.2 → 1.7.3-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 +493 -288
- package/dist/blockchain_data.js +149 -2
- package/dist/browser/checkout/sdk.js +4 -4
- package/dist/browser/checkout/widgets.js +2 -2
- package/dist/checkout.js +151 -4
- 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 +153 -6
- package/dist/index.d.ts +493 -288
- package/dist/index.js +153 -6
- package/dist/orderbook.js +1 -1
- package/dist/passport.js +130 -3
- package/dist/x.js +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -174,7 +174,7 @@ const flattenProperties$1 = (properties) => {
|
|
|
174
174
|
};
|
|
175
175
|
|
|
176
176
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
177
|
-
const SDK_VERSION$1 = '1.7.
|
|
177
|
+
const SDK_VERSION$1 = '1.7.3-alpha.1';
|
|
178
178
|
const getReferrer$1 = () => {
|
|
179
179
|
if (isNode$1()) {
|
|
180
180
|
return '';
|
|
@@ -8441,6 +8441,85 @@ class NftOwnersApi extends BaseAPI$2 {
|
|
|
8441
8441
|
*/
|
|
8442
8442
|
const NftsApiAxiosParamCreator = function (configuration) {
|
|
8443
8443
|
return {
|
|
8444
|
+
/**
|
|
8445
|
+
* Create a mint request to mint a set of NFTs for a given collection
|
|
8446
|
+
* @summary Mint NFTs
|
|
8447
|
+
* @param {string} contractAddress The address of contract
|
|
8448
|
+
* @param {string} chainName The name of chain
|
|
8449
|
+
* @param {CreateMintRequestRequest} createMintRequestRequest the request body
|
|
8450
|
+
* @param {*} [options] Override http request option.
|
|
8451
|
+
* @throws {RequiredError}
|
|
8452
|
+
*/
|
|
8453
|
+
createMintRequest: async (contractAddress, chainName, createMintRequestRequest, options = {}) => {
|
|
8454
|
+
// verify required parameter 'contractAddress' is not null or undefined
|
|
8455
|
+
assertParamExists$2('createMintRequest', 'contractAddress', contractAddress);
|
|
8456
|
+
// verify required parameter 'chainName' is not null or undefined
|
|
8457
|
+
assertParamExists$2('createMintRequest', 'chainName', chainName);
|
|
8458
|
+
// verify required parameter 'createMintRequestRequest' is not null or undefined
|
|
8459
|
+
assertParamExists$2('createMintRequest', 'createMintRequestRequest', createMintRequestRequest);
|
|
8460
|
+
const localVarPath = `/v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests`
|
|
8461
|
+
.replace(`{${"contract_address"}}`, encodeURIComponent(String(contractAddress)))
|
|
8462
|
+
.replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
|
|
8463
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8464
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$2);
|
|
8465
|
+
let baseOptions;
|
|
8466
|
+
if (configuration) {
|
|
8467
|
+
baseOptions = configuration.baseOptions;
|
|
8468
|
+
}
|
|
8469
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
8470
|
+
const localVarHeaderParameter = {};
|
|
8471
|
+
const localVarQueryParameter = {};
|
|
8472
|
+
// authentication ImmutableApiKey required
|
|
8473
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-immutable-api-key", configuration);
|
|
8474
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8475
|
+
setSearchParams$2(localVarUrlObj, localVarQueryParameter);
|
|
8476
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8477
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
8478
|
+
localVarRequestOptions.data = serializeDataIfNeeded$2(createMintRequestRequest, localVarRequestOptions, configuration);
|
|
8479
|
+
return {
|
|
8480
|
+
url: toPathString$2(localVarUrlObj),
|
|
8481
|
+
options: localVarRequestOptions,
|
|
8482
|
+
};
|
|
8483
|
+
},
|
|
8484
|
+
/**
|
|
8485
|
+
* Retrieve the status of a mint request identified by its reference_id
|
|
8486
|
+
* @summary Mint NFTs
|
|
8487
|
+
* @param {string} contractAddress The address of contract
|
|
8488
|
+
* @param {string} chainName The name of chain
|
|
8489
|
+
* @param {string} referenceId The ID of the mint request
|
|
8490
|
+
* @param {*} [options] Override http request option.
|
|
8491
|
+
* @throws {RequiredError}
|
|
8492
|
+
*/
|
|
8493
|
+
getMintRequest: async (contractAddress, chainName, referenceId, options = {}) => {
|
|
8494
|
+
// verify required parameter 'contractAddress' is not null or undefined
|
|
8495
|
+
assertParamExists$2('getMintRequest', 'contractAddress', contractAddress);
|
|
8496
|
+
// verify required parameter 'chainName' is not null or undefined
|
|
8497
|
+
assertParamExists$2('getMintRequest', 'chainName', chainName);
|
|
8498
|
+
// verify required parameter 'referenceId' is not null or undefined
|
|
8499
|
+
assertParamExists$2('getMintRequest', 'referenceId', referenceId);
|
|
8500
|
+
const localVarPath = `/v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests/{reference_id}`
|
|
8501
|
+
.replace(`{${"contract_address"}}`, encodeURIComponent(String(contractAddress)))
|
|
8502
|
+
.replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)))
|
|
8503
|
+
.replace(`{${"reference_id"}}`, encodeURIComponent(String(referenceId)));
|
|
8504
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8505
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$2);
|
|
8506
|
+
let baseOptions;
|
|
8507
|
+
if (configuration) {
|
|
8508
|
+
baseOptions = configuration.baseOptions;
|
|
8509
|
+
}
|
|
8510
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
8511
|
+
const localVarHeaderParameter = {};
|
|
8512
|
+
const localVarQueryParameter = {};
|
|
8513
|
+
// authentication ImmutableApiKey required
|
|
8514
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-immutable-api-key", configuration);
|
|
8515
|
+
setSearchParams$2(localVarUrlObj, localVarQueryParameter);
|
|
8516
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8517
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
8518
|
+
return {
|
|
8519
|
+
url: toPathString$2(localVarUrlObj),
|
|
8520
|
+
options: localVarRequestOptions,
|
|
8521
|
+
};
|
|
8522
|
+
},
|
|
8444
8523
|
/**
|
|
8445
8524
|
* Get NFT by token ID
|
|
8446
8525
|
* @summary Get NFT by token ID
|
|
@@ -8626,6 +8705,32 @@ const NftsApiAxiosParamCreator = function (configuration) {
|
|
|
8626
8705
|
const NftsApiFp = function (configuration) {
|
|
8627
8706
|
const localVarAxiosParamCreator = NftsApiAxiosParamCreator(configuration);
|
|
8628
8707
|
return {
|
|
8708
|
+
/**
|
|
8709
|
+
* Create a mint request to mint a set of NFTs for a given collection
|
|
8710
|
+
* @summary Mint NFTs
|
|
8711
|
+
* @param {string} contractAddress The address of contract
|
|
8712
|
+
* @param {string} chainName The name of chain
|
|
8713
|
+
* @param {CreateMintRequestRequest} createMintRequestRequest the request body
|
|
8714
|
+
* @param {*} [options] Override http request option.
|
|
8715
|
+
* @throws {RequiredError}
|
|
8716
|
+
*/
|
|
8717
|
+
async createMintRequest(contractAddress, chainName, createMintRequestRequest, options) {
|
|
8718
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createMintRequest(contractAddress, chainName, createMintRequestRequest, options);
|
|
8719
|
+
return createRequestFunction$2(localVarAxiosArgs, globalAxios$1, BASE_PATH$2, configuration);
|
|
8720
|
+
},
|
|
8721
|
+
/**
|
|
8722
|
+
* Retrieve the status of a mint request identified by its reference_id
|
|
8723
|
+
* @summary Mint NFTs
|
|
8724
|
+
* @param {string} contractAddress The address of contract
|
|
8725
|
+
* @param {string} chainName The name of chain
|
|
8726
|
+
* @param {string} referenceId The ID of the mint request
|
|
8727
|
+
* @param {*} [options] Override http request option.
|
|
8728
|
+
* @throws {RequiredError}
|
|
8729
|
+
*/
|
|
8730
|
+
async getMintRequest(contractAddress, chainName, referenceId, options) {
|
|
8731
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getMintRequest(contractAddress, chainName, referenceId, options);
|
|
8732
|
+
return createRequestFunction$2(localVarAxiosArgs, globalAxios$1, BASE_PATH$2, configuration);
|
|
8733
|
+
},
|
|
8629
8734
|
/**
|
|
8630
8735
|
* Get NFT by token ID
|
|
8631
8736
|
* @summary Get NFT by token ID
|
|
@@ -8693,6 +8798,26 @@ const NftsApiFp = function (configuration) {
|
|
|
8693
8798
|
const NftsApiFactory = function (configuration, basePath, axios) {
|
|
8694
8799
|
const localVarFp = NftsApiFp(configuration);
|
|
8695
8800
|
return {
|
|
8801
|
+
/**
|
|
8802
|
+
* Create a mint request to mint a set of NFTs for a given collection
|
|
8803
|
+
* @summary Mint NFTs
|
|
8804
|
+
* @param {NftsApiCreateMintRequestRequest} requestParameters Request parameters.
|
|
8805
|
+
* @param {*} [options] Override http request option.
|
|
8806
|
+
* @throws {RequiredError}
|
|
8807
|
+
*/
|
|
8808
|
+
createMintRequest(requestParameters, options) {
|
|
8809
|
+
return localVarFp.createMintRequest(requestParameters.contractAddress, requestParameters.chainName, requestParameters.createMintRequestRequest, options).then((request) => request(axios, basePath));
|
|
8810
|
+
},
|
|
8811
|
+
/**
|
|
8812
|
+
* Retrieve the status of a mint request identified by its reference_id
|
|
8813
|
+
* @summary Mint NFTs
|
|
8814
|
+
* @param {NftsApiGetMintRequestRequest} requestParameters Request parameters.
|
|
8815
|
+
* @param {*} [options] Override http request option.
|
|
8816
|
+
* @throws {RequiredError}
|
|
8817
|
+
*/
|
|
8818
|
+
getMintRequest(requestParameters, options) {
|
|
8819
|
+
return localVarFp.getMintRequest(requestParameters.contractAddress, requestParameters.chainName, requestParameters.referenceId, options).then((request) => request(axios, basePath));
|
|
8820
|
+
},
|
|
8696
8821
|
/**
|
|
8697
8822
|
* Get NFT by token ID
|
|
8698
8823
|
* @summary Get NFT by token ID
|
|
@@ -8742,6 +8867,28 @@ const NftsApiFactory = function (configuration, basePath, axios) {
|
|
|
8742
8867
|
* @extends {BaseAPI}
|
|
8743
8868
|
*/
|
|
8744
8869
|
class NftsApi extends BaseAPI$2 {
|
|
8870
|
+
/**
|
|
8871
|
+
* Create a mint request to mint a set of NFTs for a given collection
|
|
8872
|
+
* @summary Mint NFTs
|
|
8873
|
+
* @param {NftsApiCreateMintRequestRequest} requestParameters Request parameters.
|
|
8874
|
+
* @param {*} [options] Override http request option.
|
|
8875
|
+
* @throws {RequiredError}
|
|
8876
|
+
* @memberof NftsApi
|
|
8877
|
+
*/
|
|
8878
|
+
createMintRequest(requestParameters, options) {
|
|
8879
|
+
return NftsApiFp(this.configuration).createMintRequest(requestParameters.contractAddress, requestParameters.chainName, requestParameters.createMintRequestRequest, options).then((request) => request(this.axios, this.basePath));
|
|
8880
|
+
}
|
|
8881
|
+
/**
|
|
8882
|
+
* Retrieve the status of a mint request identified by its reference_id
|
|
8883
|
+
* @summary Mint NFTs
|
|
8884
|
+
* @param {NftsApiGetMintRequestRequest} requestParameters Request parameters.
|
|
8885
|
+
* @param {*} [options] Override http request option.
|
|
8886
|
+
* @throws {RequiredError}
|
|
8887
|
+
* @memberof NftsApi
|
|
8888
|
+
*/
|
|
8889
|
+
getMintRequest(requestParameters, options) {
|
|
8890
|
+
return NftsApiFp(this.configuration).getMintRequest(requestParameters.contractAddress, requestParameters.chainName, requestParameters.referenceId, options).then((request) => request(this.axios, this.basePath));
|
|
8891
|
+
}
|
|
8745
8892
|
/**
|
|
8746
8893
|
* Get NFT by token ID
|
|
8747
8894
|
* @summary Get NFT by token ID
|
|
@@ -11298,7 +11445,7 @@ class MultiRollupApiClients {
|
|
|
11298
11445
|
}
|
|
11299
11446
|
|
|
11300
11447
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
11301
|
-
const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-1.7.
|
|
11448
|
+
const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-1.7.3-alpha.1' };
|
|
11302
11449
|
const createConfig = ({ basePath, headers, }) => {
|
|
11303
11450
|
if (!basePath.trim()) {
|
|
11304
11451
|
throw Error('basePath can not be empty');
|
|
@@ -11370,7 +11517,7 @@ class APIError extends Error {
|
|
|
11370
11517
|
|
|
11371
11518
|
/* eslint-disable implicit-arrow-linebreak */
|
|
11372
11519
|
const defaultHeaders = {
|
|
11373
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.7.
|
|
11520
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.7.3-alpha.1',
|
|
11374
11521
|
};
|
|
11375
11522
|
/**
|
|
11376
11523
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -11803,7 +11950,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
11803
11950
|
chainID,
|
|
11804
11951
|
coreContractAddress,
|
|
11805
11952
|
registrationContractAddress,
|
|
11806
|
-
sdkVersion: 'ts-immutable-sdk-1.7.
|
|
11953
|
+
sdkVersion: 'ts-immutable-sdk-1.7.3-alpha.1',
|
|
11807
11954
|
});
|
|
11808
11955
|
/**
|
|
11809
11956
|
* Sets `sdkVersion` at the time of build
|
|
@@ -37454,7 +37601,7 @@ const flattenProperties = (properties) => {
|
|
|
37454
37601
|
};
|
|
37455
37602
|
|
|
37456
37603
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
37457
|
-
const SDK_VERSION = '1.7.
|
|
37604
|
+
const SDK_VERSION = '1.7.3-alpha.1';
|
|
37458
37605
|
const getReferrer = () => {
|
|
37459
37606
|
if (isNode()) {
|
|
37460
37607
|
return '';
|
|
@@ -42622,7 +42769,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
|
|
|
42622
42769
|
maxPriorityFeePerGas: ethers.BigNumber.from(10e9),
|
|
42623
42770
|
};
|
|
42624
42771
|
|
|
42625
|
-
const SDK_VERSION_MARKER = '1.7.
|
|
42772
|
+
const SDK_VERSION_MARKER = '1.7.3-alpha.1';
|
|
42626
42773
|
// This SDK version is replaced by the `yarn build` command ran on the root level
|
|
42627
42774
|
const globalPackageVersion = () => SDK_VERSION_MARKER;
|
|
42628
42775
|
|