@imtbl/sdk 1.5.4 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/blockchain_data.d.ts +39 -91
- package/dist/blockchain_data.js +15 -7
- package/dist/browser/checkout/sdk.js +4 -4
- package/dist/browser/checkout/widgets.js +2 -2
- package/dist/checkout.js +17 -9
- package/dist/config.js +1 -1
- package/dist/index.browser.js +13 -13
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +20 -12
- package/dist/index.d.ts +39 -91
- package/dist/index.js +20 -12
- package/dist/orderbook.js +1 -1
- package/dist/passport.js +16 -8
- 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.
|
|
177
|
+
const SDK_VERSION$1 = '1.6.0';
|
|
178
178
|
const getReferrer$1 = () => {
|
|
179
179
|
if (isNode$1()) {
|
|
180
180
|
return '';
|
|
@@ -7523,6 +7523,9 @@ const CollectionsApiAxiosParamCreator = function (configuration) {
|
|
|
7523
7523
|
const localVarQueryParameter = {};
|
|
7524
7524
|
// authentication ImmutableApiKey required
|
|
7525
7525
|
await setApiKeyToObject(localVarHeaderParameter, "x-immutable-api-key", configuration);
|
|
7526
|
+
// authentication BearerAuth required
|
|
7527
|
+
// http bearer authentication required
|
|
7528
|
+
await setBearerAuthToObject$1(localVarHeaderParameter, configuration);
|
|
7526
7529
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7527
7530
|
setSearchParams$2(localVarUrlObj, localVarQueryParameter);
|
|
7528
7531
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -8522,13 +8525,14 @@ const NftsApiAxiosParamCreator = function (configuration) {
|
|
|
8522
8525
|
* @summary List NFTs by contract address
|
|
8523
8526
|
* @param {string} contractAddress Contract address
|
|
8524
8527
|
* @param {string} chainName The name of chain
|
|
8528
|
+
* @param {Array<string>} [tokenId] List of token IDs to filter by
|
|
8525
8529
|
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
8526
8530
|
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
8527
8531
|
* @param {number} [pageSize] Maximum number of items to return
|
|
8528
8532
|
* @param {*} [options] Override http request option.
|
|
8529
8533
|
* @throws {RequiredError}
|
|
8530
8534
|
*/
|
|
8531
|
-
listNFTs: async (contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
|
|
8535
|
+
listNFTs: async (contractAddress, chainName, tokenId, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
|
|
8532
8536
|
// verify required parameter 'contractAddress' is not null or undefined
|
|
8533
8537
|
assertParamExists$2('listNFTs', 'contractAddress', contractAddress);
|
|
8534
8538
|
// verify required parameter 'chainName' is not null or undefined
|
|
@@ -8545,6 +8549,9 @@ const NftsApiAxiosParamCreator = function (configuration) {
|
|
|
8545
8549
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
8546
8550
|
const localVarHeaderParameter = {};
|
|
8547
8551
|
const localVarQueryParameter = {};
|
|
8552
|
+
if (tokenId) {
|
|
8553
|
+
localVarQueryParameter['token_id'] = tokenId;
|
|
8554
|
+
}
|
|
8548
8555
|
if (fromUpdatedAt !== undefined) {
|
|
8549
8556
|
localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
|
|
8550
8557
|
fromUpdatedAt.toISOString() :
|
|
@@ -8650,14 +8657,15 @@ const NftsApiFp = function (configuration) {
|
|
|
8650
8657
|
* @summary List NFTs by contract address
|
|
8651
8658
|
* @param {string} contractAddress Contract address
|
|
8652
8659
|
* @param {string} chainName The name of chain
|
|
8660
|
+
* @param {Array<string>} [tokenId] List of token IDs to filter by
|
|
8653
8661
|
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
8654
8662
|
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
8655
8663
|
* @param {number} [pageSize] Maximum number of items to return
|
|
8656
8664
|
* @param {*} [options] Override http request option.
|
|
8657
8665
|
* @throws {RequiredError}
|
|
8658
8666
|
*/
|
|
8659
|
-
async listNFTs(contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options) {
|
|
8660
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listNFTs(contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options);
|
|
8667
|
+
async listNFTs(contractAddress, chainName, tokenId, fromUpdatedAt, pageCursor, pageSize, options) {
|
|
8668
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listNFTs(contractAddress, chainName, tokenId, fromUpdatedAt, pageCursor, pageSize, options);
|
|
8661
8669
|
return createRequestFunction$2(localVarAxiosArgs, globalAxios$1, BASE_PATH$2, configuration);
|
|
8662
8670
|
},
|
|
8663
8671
|
/**
|
|
@@ -8712,7 +8720,7 @@ const NftsApiFactory = function (configuration, basePath, axios) {
|
|
|
8712
8720
|
* @throws {RequiredError}
|
|
8713
8721
|
*/
|
|
8714
8722
|
listNFTs(requestParameters, options) {
|
|
8715
|
-
return localVarFp.listNFTs(requestParameters.contractAddress, requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
|
|
8723
|
+
return localVarFp.listNFTs(requestParameters.contractAddress, requestParameters.chainName, requestParameters.tokenId, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
|
|
8716
8724
|
},
|
|
8717
8725
|
/**
|
|
8718
8726
|
* List NFTs by account address
|
|
@@ -8764,7 +8772,7 @@ class NftsApi extends BaseAPI$2 {
|
|
|
8764
8772
|
* @memberof NftsApi
|
|
8765
8773
|
*/
|
|
8766
8774
|
listNFTs(requestParameters, options) {
|
|
8767
|
-
return NftsApiFp(this.configuration).listNFTs(requestParameters.contractAddress, requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
8775
|
+
return NftsApiFp(this.configuration).listNFTs(requestParameters.contractAddress, requestParameters.chainName, requestParameters.tokenId, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
8768
8776
|
}
|
|
8769
8777
|
/**
|
|
8770
8778
|
* List NFTs by account address
|
|
@@ -11289,7 +11297,7 @@ class MultiRollupApiClients {
|
|
|
11289
11297
|
}
|
|
11290
11298
|
|
|
11291
11299
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
11292
|
-
const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-1.
|
|
11300
|
+
const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-1.6.0' };
|
|
11293
11301
|
const createConfig = ({ basePath, headers, }) => {
|
|
11294
11302
|
if (!basePath.trim()) {
|
|
11295
11303
|
throw Error('basePath can not be empty');
|
|
@@ -11361,7 +11369,7 @@ class APIError extends Error {
|
|
|
11361
11369
|
|
|
11362
11370
|
/* eslint-disable implicit-arrow-linebreak */
|
|
11363
11371
|
const defaultHeaders = {
|
|
11364
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.
|
|
11372
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.6.0',
|
|
11365
11373
|
};
|
|
11366
11374
|
/**
|
|
11367
11375
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -11794,7 +11802,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
11794
11802
|
chainID,
|
|
11795
11803
|
coreContractAddress,
|
|
11796
11804
|
registrationContractAddress,
|
|
11797
|
-
sdkVersion: 'ts-immutable-sdk-1.
|
|
11805
|
+
sdkVersion: 'ts-immutable-sdk-1.6.0',
|
|
11798
11806
|
});
|
|
11799
11807
|
/**
|
|
11800
11808
|
* Sets `sdkVersion` at the time of build
|
|
@@ -18257,7 +18265,7 @@ const transformTypedData = (typedData, chainId) => {
|
|
|
18257
18265
|
return transformedTypedData;
|
|
18258
18266
|
};
|
|
18259
18267
|
const signTypedDataV4 = async ({ params, method, magicProvider, jsonRpcProvider, relayerClient, guardianClient, }) => guardianClient
|
|
18260
|
-
.withConfirmationScreen({ width: 480, height:
|
|
18268
|
+
.withConfirmationScreen({ width: 480, height: 720 })(async () => {
|
|
18261
18269
|
const fromAddress = params[0];
|
|
18262
18270
|
const typedDataParam = params[1];
|
|
18263
18271
|
if (!fromAddress || !typedDataParam) {
|
|
@@ -37448,7 +37456,7 @@ const flattenProperties = (properties) => {
|
|
|
37448
37456
|
};
|
|
37449
37457
|
|
|
37450
37458
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
37451
|
-
const SDK_VERSION = '1.
|
|
37459
|
+
const SDK_VERSION = '1.6.0';
|
|
37452
37460
|
const getReferrer = () => {
|
|
37453
37461
|
if (isNode()) {
|
|
37454
37462
|
return '';
|
|
@@ -42615,7 +42623,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
|
|
|
42615
42623
|
maxPriorityFeePerGas: ethers.BigNumber.from(10e9),
|
|
42616
42624
|
};
|
|
42617
42625
|
|
|
42618
|
-
const SDK_VERSION_MARKER = '1.
|
|
42626
|
+
const SDK_VERSION_MARKER = '1.6.0';
|
|
42619
42627
|
// This SDK version is replaced by the `yarn build` command ran on the root level
|
|
42620
42628
|
const globalPackageVersion = () => SDK_VERSION_MARKER;
|
|
42621
42629
|
|
package/dist/index.d.ts
CHANGED
|
@@ -12133,53 +12133,14 @@ interface NFT$1 {
|
|
|
12133
12133
|
* @memberof NFT
|
|
12134
12134
|
*/
|
|
12135
12135
|
'youtube_url': string | null;
|
|
12136
|
-
}
|
|
12137
|
-
|
|
12138
|
-
/**
|
|
12139
|
-
* Immutable zkEVM API
|
|
12140
|
-
* Immutable Multi Rollup API
|
|
12141
|
-
*
|
|
12142
|
-
* The version of the OpenAPI document: 1.0.0
|
|
12143
|
-
* Contact: support@immutable.com
|
|
12144
|
-
*
|
|
12145
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12146
|
-
* https://openapi-generator.tech
|
|
12147
|
-
* Do not edit the class manually.
|
|
12148
|
-
*/
|
|
12149
|
-
|
|
12150
|
-
/**
|
|
12151
|
-
* List of normalized NFT metadata attributes
|
|
12152
|
-
* @export
|
|
12153
|
-
* @interface NFTMetadataAttributes
|
|
12154
|
-
*/
|
|
12155
|
-
interface NFTMetadataAttributes$1 {
|
|
12156
12136
|
/**
|
|
12157
12137
|
* List of NFT Metadata attributes
|
|
12158
12138
|
* @type {Array<NFTMetadataAttribute>}
|
|
12159
|
-
* @memberof
|
|
12139
|
+
* @memberof NFT
|
|
12160
12140
|
*/
|
|
12161
12141
|
'attributes': Array<NFTMetadataAttribute$1>;
|
|
12162
12142
|
}
|
|
12163
12143
|
|
|
12164
|
-
/**
|
|
12165
|
-
* Immutable zkEVM API
|
|
12166
|
-
* Immutable Multi Rollup API
|
|
12167
|
-
*
|
|
12168
|
-
* The version of the OpenAPI document: 1.0.0
|
|
12169
|
-
* Contact: support@immutable.com
|
|
12170
|
-
*
|
|
12171
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12172
|
-
* https://openapi-generator.tech
|
|
12173
|
-
* Do not edit the class manually.
|
|
12174
|
-
*/
|
|
12175
|
-
|
|
12176
|
-
/**
|
|
12177
|
-
* @type NFTWithMetadataAttributes
|
|
12178
|
-
* A single NFT with metadata attributes
|
|
12179
|
-
* @export
|
|
12180
|
-
*/
|
|
12181
|
-
type NFTWithMetadataAttributes$1 = NFT$1 & NFTMetadataAttributes$1;
|
|
12182
|
-
|
|
12183
12144
|
/**
|
|
12184
12145
|
* Immutable zkEVM API
|
|
12185
12146
|
* Immutable Multi Rollup API
|
|
@@ -12200,10 +12161,10 @@ type NFTWithMetadataAttributes$1 = NFT$1 & NFTMetadataAttributes$1;
|
|
|
12200
12161
|
interface GetNFTResult$1 {
|
|
12201
12162
|
/**
|
|
12202
12163
|
*
|
|
12203
|
-
* @type {
|
|
12164
|
+
* @type {NFT}
|
|
12204
12165
|
* @memberof GetNFTResult
|
|
12205
12166
|
*/
|
|
12206
|
-
'result':
|
|
12167
|
+
'result': NFT$1;
|
|
12207
12168
|
}
|
|
12208
12169
|
|
|
12209
12170
|
/**
|
|
@@ -12566,7 +12527,7 @@ interface ListNFTOwnersResult$1 {
|
|
|
12566
12527
|
*/
|
|
12567
12528
|
interface ListNFTsResult$1 {
|
|
12568
12529
|
/**
|
|
12569
|
-
* List of
|
|
12530
|
+
* List of NFTs
|
|
12570
12531
|
* @type {Array<NFT>}
|
|
12571
12532
|
* @memberof ListNFTsResult
|
|
12572
12533
|
*/
|
|
@@ -13462,6 +13423,12 @@ interface NftsApiListNFTsRequest {
|
|
|
13462
13423
|
* @memberof NftsApiListNFTs
|
|
13463
13424
|
*/
|
|
13464
13425
|
readonly chainName: string;
|
|
13426
|
+
/**
|
|
13427
|
+
* List of token IDs to filter by
|
|
13428
|
+
* @type {Array<string>}
|
|
13429
|
+
* @memberof NftsApiListNFTs
|
|
13430
|
+
*/
|
|
13431
|
+
readonly tokenId?: Array<string>;
|
|
13465
13432
|
/**
|
|
13466
13433
|
* Datetime to use as the oldest updated timestamp
|
|
13467
13434
|
* @type {string}
|
|
@@ -15400,6 +15367,18 @@ interface GetMintRequestResult {
|
|
|
15400
15367
|
* @memberof GetMintRequestResult
|
|
15401
15368
|
*/
|
|
15402
15369
|
'transaction_hash': string | null;
|
|
15370
|
+
/**
|
|
15371
|
+
* When the mint request was created
|
|
15372
|
+
* @type {string}
|
|
15373
|
+
* @memberof GetMintRequestResult
|
|
15374
|
+
*/
|
|
15375
|
+
'created_at': string;
|
|
15376
|
+
/**
|
|
15377
|
+
* When the mint request was last updated
|
|
15378
|
+
* @type {string}
|
|
15379
|
+
* @memberof GetMintRequestResult
|
|
15380
|
+
*/
|
|
15381
|
+
'updated_at': string;
|
|
15403
15382
|
/**
|
|
15404
15383
|
*
|
|
15405
15384
|
* @type {MintRequestErrorMessage}
|
|
@@ -15510,53 +15489,14 @@ interface NFT {
|
|
|
15510
15489
|
* @memberof NFT
|
|
15511
15490
|
*/
|
|
15512
15491
|
'youtube_url': string | null;
|
|
15513
|
-
}
|
|
15514
|
-
|
|
15515
|
-
/**
|
|
15516
|
-
* Immutable zkEVM API
|
|
15517
|
-
* Immutable Multi Rollup API
|
|
15518
|
-
*
|
|
15519
|
-
* The version of the OpenAPI document: 1.0.0
|
|
15520
|
-
* Contact: support@immutable.com
|
|
15521
|
-
*
|
|
15522
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
15523
|
-
* https://openapi-generator.tech
|
|
15524
|
-
* Do not edit the class manually.
|
|
15525
|
-
*/
|
|
15526
|
-
|
|
15527
|
-
/**
|
|
15528
|
-
* List of normalized NFT metadata attributes
|
|
15529
|
-
* @export
|
|
15530
|
-
* @interface NFTMetadataAttributes
|
|
15531
|
-
*/
|
|
15532
|
-
interface NFTMetadataAttributes {
|
|
15533
15492
|
/**
|
|
15534
15493
|
* List of NFT Metadata attributes
|
|
15535
15494
|
* @type {Array<NFTMetadataAttribute>}
|
|
15536
|
-
* @memberof
|
|
15495
|
+
* @memberof NFT
|
|
15537
15496
|
*/
|
|
15538
15497
|
'attributes': Array<NFTMetadataAttribute>;
|
|
15539
15498
|
}
|
|
15540
15499
|
|
|
15541
|
-
/**
|
|
15542
|
-
* Immutable zkEVM API
|
|
15543
|
-
* Immutable Multi Rollup API
|
|
15544
|
-
*
|
|
15545
|
-
* The version of the OpenAPI document: 1.0.0
|
|
15546
|
-
* Contact: support@immutable.com
|
|
15547
|
-
*
|
|
15548
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
15549
|
-
* https://openapi-generator.tech
|
|
15550
|
-
* Do not edit the class manually.
|
|
15551
|
-
*/
|
|
15552
|
-
|
|
15553
|
-
/**
|
|
15554
|
-
* @type NFTWithMetadataAttributes
|
|
15555
|
-
* A single NFT with metadata attributes
|
|
15556
|
-
* @export
|
|
15557
|
-
*/
|
|
15558
|
-
type NFTWithMetadataAttributes = NFT & NFTMetadataAttributes;
|
|
15559
|
-
|
|
15560
15500
|
/**
|
|
15561
15501
|
* Immutable zkEVM API
|
|
15562
15502
|
* Immutable Multi Rollup API
|
|
@@ -15577,10 +15517,10 @@ type NFTWithMetadataAttributes = NFT & NFTMetadataAttributes;
|
|
|
15577
15517
|
interface GetNFTResult {
|
|
15578
15518
|
/**
|
|
15579
15519
|
*
|
|
15580
|
-
* @type {
|
|
15520
|
+
* @type {NFT}
|
|
15581
15521
|
* @memberof GetNFTResult
|
|
15582
15522
|
*/
|
|
15583
|
-
'result':
|
|
15523
|
+
'result': NFT;
|
|
15584
15524
|
}
|
|
15585
15525
|
|
|
15586
15526
|
/**
|
|
@@ -16181,6 +16121,12 @@ interface NFTWithBalance {
|
|
|
16181
16121
|
* @memberof NFTWithBalance
|
|
16182
16122
|
*/
|
|
16183
16123
|
'youtube_url': string | null;
|
|
16124
|
+
/**
|
|
16125
|
+
* List of Metadata attributes
|
|
16126
|
+
* @type {Array<NFTMetadataAttribute>}
|
|
16127
|
+
* @memberof NFTWithBalance
|
|
16128
|
+
*/
|
|
16129
|
+
'attributes': Array<NFTMetadataAttribute>;
|
|
16184
16130
|
/**
|
|
16185
16131
|
* The balance of NFT in the account
|
|
16186
16132
|
* @type {string}
|
|
@@ -16208,7 +16154,7 @@ interface NFTWithBalance {
|
|
|
16208
16154
|
*/
|
|
16209
16155
|
interface ListNFTsByOwnerResult {
|
|
16210
16156
|
/**
|
|
16211
|
-
* List of
|
|
16157
|
+
* List of NFTs by owner
|
|
16212
16158
|
* @type {Array<NFTWithBalance>}
|
|
16213
16159
|
* @memberof ListNFTsByOwnerResult
|
|
16214
16160
|
*/
|
|
@@ -16240,7 +16186,7 @@ interface ListNFTsByOwnerResult {
|
|
|
16240
16186
|
*/
|
|
16241
16187
|
interface ListNFTsResult {
|
|
16242
16188
|
/**
|
|
16243
|
-
* List of
|
|
16189
|
+
* List of NFTs
|
|
16244
16190
|
* @type {Array<NFT>}
|
|
16245
16191
|
* @memberof ListNFTsResult
|
|
16246
16192
|
*/
|
|
@@ -17277,6 +17223,12 @@ interface ListNFTsRequestParams {
|
|
|
17277
17223
|
* @memberof ListNFTs
|
|
17278
17224
|
*/
|
|
17279
17225
|
readonly chainName: string;
|
|
17226
|
+
/**
|
|
17227
|
+
* List of token IDs to filter by
|
|
17228
|
+
* @type {Array<string>}
|
|
17229
|
+
* @memberof ListNFTs
|
|
17230
|
+
*/
|
|
17231
|
+
readonly tokenId?: Array<string>;
|
|
17280
17232
|
/**
|
|
17281
17233
|
* Datetime to use as the oldest updated timestamp
|
|
17282
17234
|
* @type {string}
|
|
@@ -17504,11 +17456,9 @@ type index_d_NFTContractType = NFTContractType;
|
|
|
17504
17456
|
declare const index_d_NFTContractType: typeof NFTContractType;
|
|
17505
17457
|
type index_d_NFTMetadataAttribute = NFTMetadataAttribute;
|
|
17506
17458
|
type index_d_NFTMetadataAttributeValue = NFTMetadataAttributeValue;
|
|
17507
|
-
type index_d_NFTMetadataAttributes = NFTMetadataAttributes;
|
|
17508
17459
|
type index_d_NFTOwner = NFTOwner;
|
|
17509
17460
|
type index_d_NFTSale = NFTSale;
|
|
17510
17461
|
type index_d_NFTWithBalance = NFTWithBalance;
|
|
17511
|
-
type index_d_NFTWithMetadataAttributes = NFTWithMetadataAttributes;
|
|
17512
17462
|
type index_d_NFTWithOwner = NFTWithOwner;
|
|
17513
17463
|
type index_d_NativeItemTypeEnum = NativeItemTypeEnum;
|
|
17514
17464
|
declare const index_d_NativeItemTypeEnum: typeof NativeItemTypeEnum;
|
|
@@ -17624,11 +17574,9 @@ declare namespace index_d {
|
|
|
17624
17574
|
index_d_NFTContractType as NFTContractType,
|
|
17625
17575
|
index_d_NFTMetadataAttribute as NFTMetadataAttribute,
|
|
17626
17576
|
index_d_NFTMetadataAttributeValue as NFTMetadataAttributeValue,
|
|
17627
|
-
index_d_NFTMetadataAttributes as NFTMetadataAttributes,
|
|
17628
17577
|
index_d_NFTOwner as NFTOwner,
|
|
17629
17578
|
index_d_NFTSale as NFTSale,
|
|
17630
17579
|
index_d_NFTWithBalance as NFTWithBalance,
|
|
17631
|
-
index_d_NFTWithMetadataAttributes as NFTWithMetadataAttributes,
|
|
17632
17580
|
index_d_NFTWithOwner as NFTWithOwner,
|
|
17633
17581
|
NativeItem$2 as NativeItem,
|
|
17634
17582
|
index_d_NativeItemTypeEnum as NativeItemTypeEnum,
|
package/dist/index.js
CHANGED
|
@@ -152,7 +152,7 @@ const flattenProperties$1 = (properties) => {
|
|
|
152
152
|
};
|
|
153
153
|
|
|
154
154
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
155
|
-
const SDK_VERSION$1 = '1.
|
|
155
|
+
const SDK_VERSION$1 = '1.6.0';
|
|
156
156
|
const getReferrer$1 = () => {
|
|
157
157
|
if (isNode$1()) {
|
|
158
158
|
return '';
|
|
@@ -7501,6 +7501,9 @@ const CollectionsApiAxiosParamCreator = function (configuration) {
|
|
|
7501
7501
|
const localVarQueryParameter = {};
|
|
7502
7502
|
// authentication ImmutableApiKey required
|
|
7503
7503
|
await setApiKeyToObject(localVarHeaderParameter, "x-immutable-api-key", configuration);
|
|
7504
|
+
// authentication BearerAuth required
|
|
7505
|
+
// http bearer authentication required
|
|
7506
|
+
await setBearerAuthToObject$1(localVarHeaderParameter, configuration);
|
|
7504
7507
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7505
7508
|
setSearchParams$2(localVarUrlObj, localVarQueryParameter);
|
|
7506
7509
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -8500,13 +8503,14 @@ const NftsApiAxiosParamCreator = function (configuration) {
|
|
|
8500
8503
|
* @summary List NFTs by contract address
|
|
8501
8504
|
* @param {string} contractAddress Contract address
|
|
8502
8505
|
* @param {string} chainName The name of chain
|
|
8506
|
+
* @param {Array<string>} [tokenId] List of token IDs to filter by
|
|
8503
8507
|
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
8504
8508
|
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
8505
8509
|
* @param {number} [pageSize] Maximum number of items to return
|
|
8506
8510
|
* @param {*} [options] Override http request option.
|
|
8507
8511
|
* @throws {RequiredError}
|
|
8508
8512
|
*/
|
|
8509
|
-
listNFTs: async (contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
|
|
8513
|
+
listNFTs: async (contractAddress, chainName, tokenId, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
|
|
8510
8514
|
// verify required parameter 'contractAddress' is not null or undefined
|
|
8511
8515
|
assertParamExists$2('listNFTs', 'contractAddress', contractAddress);
|
|
8512
8516
|
// verify required parameter 'chainName' is not null or undefined
|
|
@@ -8523,6 +8527,9 @@ const NftsApiAxiosParamCreator = function (configuration) {
|
|
|
8523
8527
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
8524
8528
|
const localVarHeaderParameter = {};
|
|
8525
8529
|
const localVarQueryParameter = {};
|
|
8530
|
+
if (tokenId) {
|
|
8531
|
+
localVarQueryParameter['token_id'] = tokenId;
|
|
8532
|
+
}
|
|
8526
8533
|
if (fromUpdatedAt !== undefined) {
|
|
8527
8534
|
localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
|
|
8528
8535
|
fromUpdatedAt.toISOString() :
|
|
@@ -8628,14 +8635,15 @@ const NftsApiFp = function (configuration) {
|
|
|
8628
8635
|
* @summary List NFTs by contract address
|
|
8629
8636
|
* @param {string} contractAddress Contract address
|
|
8630
8637
|
* @param {string} chainName The name of chain
|
|
8638
|
+
* @param {Array<string>} [tokenId] List of token IDs to filter by
|
|
8631
8639
|
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
8632
8640
|
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
8633
8641
|
* @param {number} [pageSize] Maximum number of items to return
|
|
8634
8642
|
* @param {*} [options] Override http request option.
|
|
8635
8643
|
* @throws {RequiredError}
|
|
8636
8644
|
*/
|
|
8637
|
-
async listNFTs(contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options) {
|
|
8638
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listNFTs(contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options);
|
|
8645
|
+
async listNFTs(contractAddress, chainName, tokenId, fromUpdatedAt, pageCursor, pageSize, options) {
|
|
8646
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listNFTs(contractAddress, chainName, tokenId, fromUpdatedAt, pageCursor, pageSize, options);
|
|
8639
8647
|
return createRequestFunction$2(localVarAxiosArgs, globalAxios$1, BASE_PATH$2, configuration);
|
|
8640
8648
|
},
|
|
8641
8649
|
/**
|
|
@@ -8690,7 +8698,7 @@ const NftsApiFactory = function (configuration, basePath, axios) {
|
|
|
8690
8698
|
* @throws {RequiredError}
|
|
8691
8699
|
*/
|
|
8692
8700
|
listNFTs(requestParameters, options) {
|
|
8693
|
-
return localVarFp.listNFTs(requestParameters.contractAddress, requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
|
|
8701
|
+
return localVarFp.listNFTs(requestParameters.contractAddress, requestParameters.chainName, requestParameters.tokenId, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
|
|
8694
8702
|
},
|
|
8695
8703
|
/**
|
|
8696
8704
|
* List NFTs by account address
|
|
@@ -8742,7 +8750,7 @@ class NftsApi extends BaseAPI$2 {
|
|
|
8742
8750
|
* @memberof NftsApi
|
|
8743
8751
|
*/
|
|
8744
8752
|
listNFTs(requestParameters, options) {
|
|
8745
|
-
return NftsApiFp(this.configuration).listNFTs(requestParameters.contractAddress, requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
8753
|
+
return NftsApiFp(this.configuration).listNFTs(requestParameters.contractAddress, requestParameters.chainName, requestParameters.tokenId, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
8746
8754
|
}
|
|
8747
8755
|
/**
|
|
8748
8756
|
* List NFTs by account address
|
|
@@ -11267,7 +11275,7 @@ class MultiRollupApiClients {
|
|
|
11267
11275
|
}
|
|
11268
11276
|
|
|
11269
11277
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
11270
|
-
const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-1.
|
|
11278
|
+
const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-1.6.0' };
|
|
11271
11279
|
const createConfig = ({ basePath, headers, }) => {
|
|
11272
11280
|
if (!basePath.trim()) {
|
|
11273
11281
|
throw Error('basePath can not be empty');
|
|
@@ -11339,7 +11347,7 @@ class APIError extends Error {
|
|
|
11339
11347
|
|
|
11340
11348
|
/* eslint-disable implicit-arrow-linebreak */
|
|
11341
11349
|
const defaultHeaders = {
|
|
11342
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.
|
|
11350
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.6.0',
|
|
11343
11351
|
};
|
|
11344
11352
|
/**
|
|
11345
11353
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -11772,7 +11780,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
11772
11780
|
chainID,
|
|
11773
11781
|
coreContractAddress,
|
|
11774
11782
|
registrationContractAddress,
|
|
11775
|
-
sdkVersion: 'ts-immutable-sdk-1.
|
|
11783
|
+
sdkVersion: 'ts-immutable-sdk-1.6.0',
|
|
11776
11784
|
});
|
|
11777
11785
|
/**
|
|
11778
11786
|
* Sets `sdkVersion` at the time of build
|
|
@@ -18235,7 +18243,7 @@ const transformTypedData = (typedData, chainId) => {
|
|
|
18235
18243
|
return transformedTypedData;
|
|
18236
18244
|
};
|
|
18237
18245
|
const signTypedDataV4 = async ({ params, method, magicProvider, jsonRpcProvider, relayerClient, guardianClient, }) => guardianClient
|
|
18238
|
-
.withConfirmationScreen({ width: 480, height:
|
|
18246
|
+
.withConfirmationScreen({ width: 480, height: 720 })(async () => {
|
|
18239
18247
|
const fromAddress = params[0];
|
|
18240
18248
|
const typedDataParam = params[1];
|
|
18241
18249
|
if (!fromAddress || !typedDataParam) {
|
|
@@ -37426,7 +37434,7 @@ const flattenProperties = (properties) => {
|
|
|
37426
37434
|
};
|
|
37427
37435
|
|
|
37428
37436
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
37429
|
-
const SDK_VERSION = '1.
|
|
37437
|
+
const SDK_VERSION = '1.6.0';
|
|
37430
37438
|
const getReferrer = () => {
|
|
37431
37439
|
if (isNode()) {
|
|
37432
37440
|
return '';
|
|
@@ -42593,7 +42601,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
|
|
|
42593
42601
|
maxPriorityFeePerGas: BigNumber$1.from(10e9),
|
|
42594
42602
|
};
|
|
42595
42603
|
|
|
42596
|
-
const SDK_VERSION_MARKER = '1.
|
|
42604
|
+
const SDK_VERSION_MARKER = '1.6.0';
|
|
42597
42605
|
// This SDK version is replaced by the `yarn build` command ran on the root level
|
|
42598
42606
|
const globalPackageVersion = () => SDK_VERSION_MARKER;
|
|
42599
42607
|
|
package/dist/orderbook.js
CHANGED
|
@@ -131,7 +131,7 @@ const flattenProperties = (properties) => {
|
|
|
131
131
|
};
|
|
132
132
|
|
|
133
133
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
134
|
-
const SDK_VERSION = '1.
|
|
134
|
+
const SDK_VERSION = '1.6.0';
|
|
135
135
|
const getReferrer = () => {
|
|
136
136
|
if (isNode()) {
|
|
137
137
|
return '';
|
package/dist/passport.js
CHANGED
|
@@ -7064,6 +7064,9 @@ const CollectionsApiAxiosParamCreator = function (configuration) {
|
|
|
7064
7064
|
const localVarQueryParameter = {};
|
|
7065
7065
|
// authentication ImmutableApiKey required
|
|
7066
7066
|
await setApiKeyToObject(localVarHeaderParameter, "x-immutable-api-key", configuration);
|
|
7067
|
+
// authentication BearerAuth required
|
|
7068
|
+
// http bearer authentication required
|
|
7069
|
+
await setBearerAuthToObject$1(localVarHeaderParameter, configuration);
|
|
7067
7070
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7068
7071
|
setSearchParams$2(localVarUrlObj, localVarQueryParameter);
|
|
7069
7072
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -7547,13 +7550,14 @@ const NftsApiAxiosParamCreator = function (configuration) {
|
|
|
7547
7550
|
* @summary List NFTs by contract address
|
|
7548
7551
|
* @param {string} contractAddress Contract address
|
|
7549
7552
|
* @param {string} chainName The name of chain
|
|
7553
|
+
* @param {Array<string>} [tokenId] List of token IDs to filter by
|
|
7550
7554
|
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
7551
7555
|
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
7552
7556
|
* @param {number} [pageSize] Maximum number of items to return
|
|
7553
7557
|
* @param {*} [options] Override http request option.
|
|
7554
7558
|
* @throws {RequiredError}
|
|
7555
7559
|
*/
|
|
7556
|
-
listNFTs: async (contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
|
|
7560
|
+
listNFTs: async (contractAddress, chainName, tokenId, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
|
|
7557
7561
|
// verify required parameter 'contractAddress' is not null or undefined
|
|
7558
7562
|
assertParamExists$2('listNFTs', 'contractAddress', contractAddress);
|
|
7559
7563
|
// verify required parameter 'chainName' is not null or undefined
|
|
@@ -7570,6 +7574,9 @@ const NftsApiAxiosParamCreator = function (configuration) {
|
|
|
7570
7574
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
7571
7575
|
const localVarHeaderParameter = {};
|
|
7572
7576
|
const localVarQueryParameter = {};
|
|
7577
|
+
if (tokenId) {
|
|
7578
|
+
localVarQueryParameter['token_id'] = tokenId;
|
|
7579
|
+
}
|
|
7573
7580
|
if (fromUpdatedAt !== undefined) {
|
|
7574
7581
|
localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
|
|
7575
7582
|
fromUpdatedAt.toISOString() :
|
|
@@ -7675,14 +7682,15 @@ const NftsApiFp = function (configuration) {
|
|
|
7675
7682
|
* @summary List NFTs by contract address
|
|
7676
7683
|
* @param {string} contractAddress Contract address
|
|
7677
7684
|
* @param {string} chainName The name of chain
|
|
7685
|
+
* @param {Array<string>} [tokenId] List of token IDs to filter by
|
|
7678
7686
|
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
7679
7687
|
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
7680
7688
|
* @param {number} [pageSize] Maximum number of items to return
|
|
7681
7689
|
* @param {*} [options] Override http request option.
|
|
7682
7690
|
* @throws {RequiredError}
|
|
7683
7691
|
*/
|
|
7684
|
-
async listNFTs(contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options) {
|
|
7685
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listNFTs(contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options);
|
|
7692
|
+
async listNFTs(contractAddress, chainName, tokenId, fromUpdatedAt, pageCursor, pageSize, options) {
|
|
7693
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listNFTs(contractAddress, chainName, tokenId, fromUpdatedAt, pageCursor, pageSize, options);
|
|
7686
7694
|
return createRequestFunction$2(localVarAxiosArgs, globalAxios$1, BASE_PATH$2, configuration);
|
|
7687
7695
|
},
|
|
7688
7696
|
/**
|
|
@@ -7740,7 +7748,7 @@ class NftsApi extends BaseAPI$2 {
|
|
|
7740
7748
|
* @memberof NftsApi
|
|
7741
7749
|
*/
|
|
7742
7750
|
listNFTs(requestParameters, options) {
|
|
7743
|
-
return NftsApiFp(this.configuration).listNFTs(requestParameters.contractAddress, requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
7751
|
+
return NftsApiFp(this.configuration).listNFTs(requestParameters.contractAddress, requestParameters.chainName, requestParameters.tokenId, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
7744
7752
|
}
|
|
7745
7753
|
/**
|
|
7746
7754
|
* List NFTs by account address
|
|
@@ -9138,7 +9146,7 @@ class MultiRollupApiClients {
|
|
|
9138
9146
|
}
|
|
9139
9147
|
|
|
9140
9148
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
9141
|
-
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.
|
|
9149
|
+
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.6.0' };
|
|
9142
9150
|
const createConfig = ({ basePath, headers, }) => {
|
|
9143
9151
|
if (!basePath.trim()) {
|
|
9144
9152
|
throw Error('basePath can not be empty');
|
|
@@ -9317,7 +9325,7 @@ const flattenProperties = (properties) => {
|
|
|
9317
9325
|
};
|
|
9318
9326
|
|
|
9319
9327
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
9320
|
-
const SDK_VERSION = '1.
|
|
9328
|
+
const SDK_VERSION = '1.6.0';
|
|
9321
9329
|
const getReferrer = () => {
|
|
9322
9330
|
if (isNode()) {
|
|
9323
9331
|
return '';
|
|
@@ -9529,7 +9537,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
9529
9537
|
chainID,
|
|
9530
9538
|
coreContractAddress,
|
|
9531
9539
|
registrationContractAddress,
|
|
9532
|
-
sdkVersion: 'ts-immutable-sdk-1.
|
|
9540
|
+
sdkVersion: 'ts-immutable-sdk-1.6.0',
|
|
9533
9541
|
});
|
|
9534
9542
|
/**
|
|
9535
9543
|
* Sets `sdkVersion` at the time of build
|
|
@@ -15983,7 +15991,7 @@ const transformTypedData = (typedData, chainId) => {
|
|
|
15983
15991
|
return transformedTypedData;
|
|
15984
15992
|
};
|
|
15985
15993
|
const signTypedDataV4 = async ({ params, method, magicProvider, jsonRpcProvider, relayerClient, guardianClient, }) => guardianClient
|
|
15986
|
-
.withConfirmationScreen({ width: 480, height:
|
|
15994
|
+
.withConfirmationScreen({ width: 480, height: 720 })(async () => {
|
|
15987
15995
|
const fromAddress = params[0];
|
|
15988
15996
|
const typedDataParam = params[1];
|
|
15989
15997
|
if (!fromAddress || !typedDataParam) {
|
package/dist/x.js
CHANGED
|
@@ -136,7 +136,7 @@ const flattenProperties = (properties) => {
|
|
|
136
136
|
};
|
|
137
137
|
|
|
138
138
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
139
|
-
const SDK_VERSION = '1.
|
|
139
|
+
const SDK_VERSION = '1.6.0';
|
|
140
140
|
const getReferrer = () => {
|
|
141
141
|
if (isNode()) {
|
|
142
142
|
return '';
|
|
@@ -327,7 +327,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
327
327
|
chainID,
|
|
328
328
|
coreContractAddress,
|
|
329
329
|
registrationContractAddress,
|
|
330
|
-
sdkVersion: 'ts-immutable-sdk-1.
|
|
330
|
+
sdkVersion: 'ts-immutable-sdk-1.6.0',
|
|
331
331
|
});
|
|
332
332
|
/**
|
|
333
333
|
* Sets `sdkVersion` at the time of build
|
package/package.json
CHANGED