@imtbl/sdk 1.26.2-alpha.2 → 1.26.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 +58 -2
- package/dist/blockchain_data.js +158 -108
- package/dist/browser/checkout/sdk.js +4 -4
- package/dist/checkout.d.ts +30 -95
- package/dist/checkout.js +160 -110
- 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 +195 -138
- package/dist/index.d.ts +88 -97
- package/dist/index.js +195 -138
- package/dist/orderbook.js +1 -1
- package/dist/passport.d.ts +30 -95
- package/dist/passport.js +45 -118
- package/dist/x.d.ts +30 -95
- package/dist/x.js +24 -24
- package/package.json +1 -1
package/dist/checkout.d.ts
CHANGED
|
@@ -5443,12 +5443,6 @@ interface GetPrimarySaleOKBody {
|
|
|
5443
5443
|
* @interface Project
|
|
5444
5444
|
*/
|
|
5445
5445
|
interface Project {
|
|
5446
|
-
/**
|
|
5447
|
-
* API key for the project. This is only for zkevm project. This API is not for increasing rate limit yet.
|
|
5448
|
-
* @type {string}
|
|
5449
|
-
* @memberof Project
|
|
5450
|
-
*/
|
|
5451
|
-
'api_key'?: string;
|
|
5452
5446
|
/**
|
|
5453
5447
|
* The project ChainType
|
|
5454
5448
|
* @type {string}
|
|
@@ -5456,73 +5450,13 @@ interface Project {
|
|
|
5456
5450
|
*/
|
|
5457
5451
|
'chain_type'?: string;
|
|
5458
5452
|
/**
|
|
5459
|
-
* The
|
|
5460
|
-
* @type {string}
|
|
5461
|
-
* @memberof Project
|
|
5462
|
-
*/
|
|
5463
|
-
'collection_limit_expires_at': string;
|
|
5464
|
-
/**
|
|
5465
|
-
* The total monthly collection limit
|
|
5466
|
-
* @type {number}
|
|
5467
|
-
* @memberof Project
|
|
5468
|
-
*/
|
|
5469
|
-
'collection_monthly_limit': number;
|
|
5470
|
-
/**
|
|
5471
|
-
* The number of collection remaining in the current period
|
|
5472
|
-
* @type {number}
|
|
5473
|
-
* @memberof Project
|
|
5474
|
-
*/
|
|
5475
|
-
'collection_remaining': number;
|
|
5476
|
-
/**
|
|
5477
|
-
* The company name
|
|
5478
|
-
* @type {string}
|
|
5479
|
-
* @memberof Project
|
|
5480
|
-
*/
|
|
5481
|
-
'company_name': string;
|
|
5482
|
-
/**
|
|
5483
|
-
* The project contact email (must be registered as a developer account with Immutable at https://hub.immutable.com)
|
|
5453
|
+
* The project group ID
|
|
5484
5454
|
* @type {string}
|
|
5485
5455
|
* @memberof Project
|
|
5486
5456
|
*/
|
|
5487
|
-
'
|
|
5488
|
-
/**
|
|
5489
|
-
* The environment ID
|
|
5490
|
-
* @type {string}
|
|
5491
|
-
* @memberof Project
|
|
5492
|
-
*/
|
|
5493
|
-
'environment_id'?: string;
|
|
5494
|
-
/**
|
|
5495
|
-
* The user environment name correlating to this project
|
|
5496
|
-
* @type {string}
|
|
5497
|
-
* @memberof Project
|
|
5498
|
-
*/
|
|
5499
|
-
'environment_name'?: string;
|
|
5500
|
-
/**
|
|
5501
|
-
* The project ID
|
|
5502
|
-
* @type {number}
|
|
5503
|
-
* @memberof Project
|
|
5504
|
-
*/
|
|
5505
|
-
'id': number;
|
|
5506
|
-
/**
|
|
5507
|
-
* The current period expiry date for mint operation limit
|
|
5508
|
-
* @type {string}
|
|
5509
|
-
* @memberof Project
|
|
5510
|
-
*/
|
|
5511
|
-
'mint_limit_expires_at': string;
|
|
5512
|
-
/**
|
|
5513
|
-
* The total monthly mint operation limit
|
|
5514
|
-
* @type {number}
|
|
5515
|
-
* @memberof Project
|
|
5516
|
-
*/
|
|
5517
|
-
'mint_monthly_limit': number;
|
|
5518
|
-
/**
|
|
5519
|
-
* The number of mint operation remaining in the current period
|
|
5520
|
-
* @type {number}
|
|
5521
|
-
* @memberof Project
|
|
5522
|
-
*/
|
|
5523
|
-
'mint_remaining': number;
|
|
5457
|
+
'id': string;
|
|
5524
5458
|
/**
|
|
5525
|
-
* The project name
|
|
5459
|
+
* The project group name
|
|
5526
5460
|
* @type {string}
|
|
5527
5461
|
* @memberof Project
|
|
5528
5462
|
*/
|
|
@@ -5533,24 +5467,6 @@ interface Project {
|
|
|
5533
5467
|
* @memberof Project
|
|
5534
5468
|
*/
|
|
5535
5469
|
'org_id'?: string;
|
|
5536
|
-
/**
|
|
5537
|
-
* Project group id
|
|
5538
|
-
* @type {string}
|
|
5539
|
-
* @memberof Project
|
|
5540
|
-
*/
|
|
5541
|
-
'project_group_id'?: string;
|
|
5542
|
-
/**
|
|
5543
|
-
* The public publishable_key for the project
|
|
5544
|
-
* @type {string}
|
|
5545
|
-
* @memberof Project
|
|
5546
|
-
*/
|
|
5547
|
-
'publishable_key'?: string;
|
|
5548
|
-
/**
|
|
5549
|
-
* The public publishable_key created time
|
|
5550
|
-
* @type {string}
|
|
5551
|
-
* @memberof Project
|
|
5552
|
-
*/
|
|
5553
|
-
'publishable_key_created_at'?: string;
|
|
5554
5470
|
}
|
|
5555
5471
|
|
|
5556
5472
|
/**
|
|
@@ -6867,7 +6783,7 @@ interface GetSignableWithdrawalResponseV2 {
|
|
|
6867
6783
|
*/
|
|
6868
6784
|
'asset_id': string;
|
|
6869
6785
|
/**
|
|
6870
|
-
*
|
|
6786
|
+
* Expiration timestamp for this withdrawal
|
|
6871
6787
|
* @type {number}
|
|
6872
6788
|
* @memberof GetSignableWithdrawalResponseV2
|
|
6873
6789
|
*/
|
|
@@ -7168,6 +7084,25 @@ interface ListDepositsResponse {
|
|
|
7168
7084
|
*/
|
|
7169
7085
|
type MintToken = Token;
|
|
7170
7086
|
|
|
7087
|
+
/**
|
|
7088
|
+
* Immutable X API
|
|
7089
|
+
* Immutable X API
|
|
7090
|
+
*
|
|
7091
|
+
* The version of the OpenAPI document: 3.0.0
|
|
7092
|
+
* Contact: support@immutable.com
|
|
7093
|
+
*
|
|
7094
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
7095
|
+
* https://openapi-generator.tech
|
|
7096
|
+
* Do not edit the class manually.
|
|
7097
|
+
*/
|
|
7098
|
+
|
|
7099
|
+
/**
|
|
7100
|
+
* @type MintTokenOAIGen
|
|
7101
|
+
* Details of the asset which has been minted
|
|
7102
|
+
* @export
|
|
7103
|
+
*/
|
|
7104
|
+
type MintTokenOAIGen = MintToken;
|
|
7105
|
+
|
|
7171
7106
|
/**
|
|
7172
7107
|
* Immutable X API
|
|
7173
7108
|
* Immutable X API
|
|
@@ -7206,10 +7141,10 @@ interface Mint {
|
|
|
7206
7141
|
'timestamp': string;
|
|
7207
7142
|
/**
|
|
7208
7143
|
*
|
|
7209
|
-
* @type {
|
|
7144
|
+
* @type {MintTokenOAIGen}
|
|
7210
7145
|
* @memberof Mint
|
|
7211
7146
|
*/
|
|
7212
|
-
'token':
|
|
7147
|
+
'token': MintTokenOAIGen;
|
|
7213
7148
|
/**
|
|
7214
7149
|
* Sequential ID of transaction in Immutable X
|
|
7215
7150
|
* @type {number}
|
|
@@ -12861,8 +12796,8 @@ interface WithdrawalsApiListWithdrawalsRequest$1 {
|
|
|
12861
12796
|
*/
|
|
12862
12797
|
declare class WithdrawalsApi$1 extends BaseAPI {
|
|
12863
12798
|
/**
|
|
12864
|
-
* Creates a withdrawal. Use https://docs.x.immutable.com/reference
|
|
12865
|
-
* @summary Creates a withdrawal
|
|
12799
|
+
* Creates a withdrawal. Use https://docs.x.immutable.com/reference/#/operations/getSignableWithdrawal to get request body params. This endpoint will be deprecated once StarkEx contract gets upgraded to v4, check https://docs.immutable.com/x/reference/#/operations/createWithdrawalV2.
|
|
12800
|
+
* @summary Creates a withdrawal
|
|
12866
12801
|
* @param {WithdrawalsApiCreateWithdrawalRequest} requestParameters Request parameters.
|
|
12867
12802
|
* @param {*} [options] Override http request option.
|
|
12868
12803
|
* @throws {RequiredError}
|
|
@@ -12870,8 +12805,8 @@ declare class WithdrawalsApi$1 extends BaseAPI {
|
|
|
12870
12805
|
*/
|
|
12871
12806
|
createWithdrawal(requestParameters: WithdrawalsApiCreateWithdrawalRequest, options?: AxiosRequestConfig): Promise<AxiosResponse<CreateWithdrawalResponse, any>>;
|
|
12872
12807
|
/**
|
|
12873
|
-
* Creates a withdrawal. Use https://docs.
|
|
12874
|
-
* @summary Creates a withdrawal of a token for
|
|
12808
|
+
* Creates a withdrawal. Use https://docs.immutable.com/x/reference/#/operations/getSignableWithdrawalV2 to get request body params.
|
|
12809
|
+
* @summary Creates a withdrawal of a token for when StarkEx contract that is higher than v3
|
|
12875
12810
|
* @param {WithdrawalsApiCreateWithdrawalV2Request} requestParameters Request parameters.
|
|
12876
12811
|
* @param {*} [options] Override http request option.
|
|
12877
12812
|
* @throws {RequiredError}
|
|
@@ -12879,7 +12814,7 @@ declare class WithdrawalsApi$1 extends BaseAPI {
|
|
|
12879
12814
|
*/
|
|
12880
12815
|
createWithdrawalV2(requestParameters: WithdrawalsApiCreateWithdrawalV2Request, options?: AxiosRequestConfig): Promise<AxiosResponse<CreateWithdrawalResponse, any>>;
|
|
12881
12816
|
/**
|
|
12882
|
-
* Gets details of a signable withdrawal
|
|
12817
|
+
* Gets details of a signable withdrawal. This endpoint will be deprecated once StarkEx contract gets upgraded to v4, check https://docs.immutable.com/x/reference/#/operations/getSignableWithdrawalV2.
|
|
12883
12818
|
* @summary Gets details of a signable withdrawal
|
|
12884
12819
|
* @param {WithdrawalsApiGetSignableWithdrawalRequest} requestParameters Request parameters.
|
|
12885
12820
|
* @param {*} [options] Override http request option.
|
package/dist/checkout.js
CHANGED
|
@@ -140,7 +140,7 @@ const flattenProperties$1 = (properties) => {
|
|
|
140
140
|
};
|
|
141
141
|
|
|
142
142
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
143
|
-
const SDK_VERSION$1 = '1.26.
|
|
143
|
+
const SDK_VERSION$1 = '1.26.3';
|
|
144
144
|
const getReferrer$1 = () => {
|
|
145
145
|
if (isNode$1()) {
|
|
146
146
|
return '';
|
|
@@ -17583,7 +17583,7 @@ const flattenProperties = (properties) => {
|
|
|
17583
17583
|
};
|
|
17584
17584
|
|
|
17585
17585
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
17586
|
-
const SDK_VERSION = '1.26.
|
|
17586
|
+
const SDK_VERSION = '1.26.3';
|
|
17587
17587
|
const getReferrer = () => {
|
|
17588
17588
|
if (isNode()) {
|
|
17589
17589
|
return '';
|
|
@@ -24079,13 +24079,14 @@ const CollectionsApiAxiosParamCreator = function (configuration) {
|
|
|
24079
24079
|
* @summary List all collections
|
|
24080
24080
|
* @param {string} chainName The name of chain
|
|
24081
24081
|
* @param {Array<string>} [contractAddress] List of contract addresses to filter by
|
|
24082
|
+
* @param {Array<AssetVerificationStatus>} [verificationStatus] List of verification status to filter by
|
|
24082
24083
|
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
24083
24084
|
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
24084
24085
|
* @param {number} [pageSize] Maximum number of items to return
|
|
24085
24086
|
* @param {*} [options] Override http request option.
|
|
24086
24087
|
* @throws {RequiredError}
|
|
24087
24088
|
*/
|
|
24088
|
-
listCollections: async (chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
|
|
24089
|
+
listCollections: async (chainName, contractAddress, verificationStatus, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
|
|
24089
24090
|
// verify required parameter 'chainName' is not null or undefined
|
|
24090
24091
|
assertParamExists('listCollections', 'chainName', chainName);
|
|
24091
24092
|
const localVarPath = `/v1/chains/{chain_name}/collections`
|
|
@@ -24102,6 +24103,9 @@ const CollectionsApiAxiosParamCreator = function (configuration) {
|
|
|
24102
24103
|
if (contractAddress) {
|
|
24103
24104
|
localVarQueryParameter['contract_address'] = contractAddress;
|
|
24104
24105
|
}
|
|
24106
|
+
if (verificationStatus) {
|
|
24107
|
+
localVarQueryParameter['verification_status'] = verificationStatus;
|
|
24108
|
+
}
|
|
24105
24109
|
if (fromUpdatedAt !== undefined) {
|
|
24106
24110
|
localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
|
|
24107
24111
|
fromUpdatedAt.toISOString() :
|
|
@@ -24231,14 +24235,15 @@ const CollectionsApiFp = function (configuration) {
|
|
|
24231
24235
|
* @summary List all collections
|
|
24232
24236
|
* @param {string} chainName The name of chain
|
|
24233
24237
|
* @param {Array<string>} [contractAddress] List of contract addresses to filter by
|
|
24238
|
+
* @param {Array<AssetVerificationStatus>} [verificationStatus] List of verification status to filter by
|
|
24234
24239
|
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
24235
24240
|
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
24236
24241
|
* @param {number} [pageSize] Maximum number of items to return
|
|
24237
24242
|
* @param {*} [options] Override http request option.
|
|
24238
24243
|
* @throws {RequiredError}
|
|
24239
24244
|
*/
|
|
24240
|
-
async listCollections(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options) {
|
|
24241
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listCollections(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options);
|
|
24245
|
+
async listCollections(chainName, contractAddress, verificationStatus, fromUpdatedAt, pageCursor, pageSize, options) {
|
|
24246
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listCollections(chainName, contractAddress, verificationStatus, fromUpdatedAt, pageCursor, pageSize, options);
|
|
24242
24247
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
24243
24248
|
},
|
|
24244
24249
|
/**
|
|
@@ -24295,7 +24300,7 @@ const CollectionsApiFactory = function (configuration, basePath, axios) {
|
|
|
24295
24300
|
* @throws {RequiredError}
|
|
24296
24301
|
*/
|
|
24297
24302
|
listCollections(requestParameters, options) {
|
|
24298
|
-
return localVarFp.listCollections(requestParameters.chainName, requestParameters.contractAddress, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
|
|
24303
|
+
return localVarFp.listCollections(requestParameters.chainName, requestParameters.contractAddress, requestParameters.verificationStatus, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
|
|
24299
24304
|
},
|
|
24300
24305
|
/**
|
|
24301
24306
|
* List collections by NFT owner account address
|
|
@@ -24346,7 +24351,7 @@ class CollectionsApi extends BaseAPI {
|
|
|
24346
24351
|
* @memberof CollectionsApi
|
|
24347
24352
|
*/
|
|
24348
24353
|
listCollections(requestParameters, options) {
|
|
24349
|
-
return CollectionsApiFp(this.configuration).listCollections(requestParameters.chainName, requestParameters.contractAddress, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
24354
|
+
return CollectionsApiFp(this.configuration).listCollections(requestParameters.chainName, requestParameters.contractAddress, requestParameters.verificationStatus, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
24350
24355
|
}
|
|
24351
24356
|
/**
|
|
24352
24357
|
* List collections by NFT owner account address
|
|
@@ -26552,63 +26557,6 @@ const PassportApiAxiosParamCreator = function (configuration) {
|
|
|
26552
26557
|
options: localVarRequestOptions,
|
|
26553
26558
|
};
|
|
26554
26559
|
},
|
|
26555
|
-
/**
|
|
26556
|
-
* Get transaction metadata for a given encoded transaction
|
|
26557
|
-
* @summary Get transaction metadata
|
|
26558
|
-
* @param {string} chainName
|
|
26559
|
-
* @param {string} contractAddress The address of the contract intended for interaction with this transaction
|
|
26560
|
-
* @param {string} methodId The method ID of the contract intended for interaction with this transaction
|
|
26561
|
-
* @param {string} transactionId ID of the given transaction to be decoded
|
|
26562
|
-
* @param {string} transactionData Encoded transaction data
|
|
26563
|
-
* @param {*} [options] Override http request option.
|
|
26564
|
-
* @deprecated
|
|
26565
|
-
* @throws {RequiredError}
|
|
26566
|
-
*/
|
|
26567
|
-
getTransactionMetadataDeprecated: async (chainName, contractAddress, methodId, transactionId, transactionData, options = {}) => {
|
|
26568
|
-
// verify required parameter 'chainName' is not null or undefined
|
|
26569
|
-
assertParamExists('getTransactionMetadataDeprecated', 'chainName', chainName);
|
|
26570
|
-
// verify required parameter 'contractAddress' is not null or undefined
|
|
26571
|
-
assertParamExists('getTransactionMetadataDeprecated', 'contractAddress', contractAddress);
|
|
26572
|
-
// verify required parameter 'methodId' is not null or undefined
|
|
26573
|
-
assertParamExists('getTransactionMetadataDeprecated', 'methodId', methodId);
|
|
26574
|
-
// verify required parameter 'transactionId' is not null or undefined
|
|
26575
|
-
assertParamExists('getTransactionMetadataDeprecated', 'transactionId', transactionId);
|
|
26576
|
-
// verify required parameter 'transactionData' is not null or undefined
|
|
26577
|
-
assertParamExists('getTransactionMetadataDeprecated', 'transactionData', transactionData);
|
|
26578
|
-
const localVarPath = `/v1/chains/{chain_name}/passport/transaction-metadata`
|
|
26579
|
-
.replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
|
|
26580
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26581
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
26582
|
-
let baseOptions;
|
|
26583
|
-
if (configuration) {
|
|
26584
|
-
baseOptions = configuration.baseOptions;
|
|
26585
|
-
}
|
|
26586
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
26587
|
-
const localVarHeaderParameter = {};
|
|
26588
|
-
const localVarQueryParameter = {};
|
|
26589
|
-
// authentication BearerAuth required
|
|
26590
|
-
// http bearer authentication required
|
|
26591
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
26592
|
-
if (contractAddress !== undefined) {
|
|
26593
|
-
localVarQueryParameter['contract_address'] = contractAddress;
|
|
26594
|
-
}
|
|
26595
|
-
if (methodId !== undefined) {
|
|
26596
|
-
localVarQueryParameter['method_id'] = methodId;
|
|
26597
|
-
}
|
|
26598
|
-
if (transactionId !== undefined) {
|
|
26599
|
-
localVarQueryParameter['transaction_id'] = transactionId;
|
|
26600
|
-
}
|
|
26601
|
-
if (transactionData !== undefined) {
|
|
26602
|
-
localVarQueryParameter['transaction_data'] = transactionData;
|
|
26603
|
-
}
|
|
26604
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
26605
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26606
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
26607
|
-
return {
|
|
26608
|
-
url: toPathString(localVarUrlObj),
|
|
26609
|
-
options: localVarRequestOptions,
|
|
26610
|
-
};
|
|
26611
|
-
},
|
|
26612
26560
|
};
|
|
26613
26561
|
};
|
|
26614
26562
|
/**
|
|
@@ -26691,22 +26639,6 @@ const PassportApiFp = function (configuration) {
|
|
|
26691
26639
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getTransactionMetadata(chainName, getTransactionMetadataRequest, options);
|
|
26692
26640
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
26693
26641
|
},
|
|
26694
|
-
/**
|
|
26695
|
-
* Get transaction metadata for a given encoded transaction
|
|
26696
|
-
* @summary Get transaction metadata
|
|
26697
|
-
* @param {string} chainName
|
|
26698
|
-
* @param {string} contractAddress The address of the contract intended for interaction with this transaction
|
|
26699
|
-
* @param {string} methodId The method ID of the contract intended for interaction with this transaction
|
|
26700
|
-
* @param {string} transactionId ID of the given transaction to be decoded
|
|
26701
|
-
* @param {string} transactionData Encoded transaction data
|
|
26702
|
-
* @param {*} [options] Override http request option.
|
|
26703
|
-
* @deprecated
|
|
26704
|
-
* @throws {RequiredError}
|
|
26705
|
-
*/
|
|
26706
|
-
async getTransactionMetadataDeprecated(chainName, contractAddress, methodId, transactionId, transactionData, options) {
|
|
26707
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getTransactionMetadataDeprecated(chainName, contractAddress, methodId, transactionId, transactionData, options);
|
|
26708
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
26709
|
-
},
|
|
26710
26642
|
};
|
|
26711
26643
|
};
|
|
26712
26644
|
/**
|
|
@@ -26779,17 +26711,6 @@ const PassportApiFactory = function (configuration, basePath, axios) {
|
|
|
26779
26711
|
getTransactionMetadata(requestParameters, options) {
|
|
26780
26712
|
return localVarFp.getTransactionMetadata(requestParameters.chainName, requestParameters.getTransactionMetadataRequest, options).then((request) => request(axios, basePath));
|
|
26781
26713
|
},
|
|
26782
|
-
/**
|
|
26783
|
-
* Get transaction metadata for a given encoded transaction
|
|
26784
|
-
* @summary Get transaction metadata
|
|
26785
|
-
* @param {PassportApiGetTransactionMetadataDeprecatedRequest} requestParameters Request parameters.
|
|
26786
|
-
* @param {*} [options] Override http request option.
|
|
26787
|
-
* @deprecated
|
|
26788
|
-
* @throws {RequiredError}
|
|
26789
|
-
*/
|
|
26790
|
-
getTransactionMetadataDeprecated(requestParameters, options) {
|
|
26791
|
-
return localVarFp.getTransactionMetadataDeprecated(requestParameters.chainName, requestParameters.contractAddress, requestParameters.methodId, requestParameters.transactionId, requestParameters.transactionData, options).then((request) => request(axios, basePath));
|
|
26792
|
-
},
|
|
26793
26714
|
};
|
|
26794
26715
|
};
|
|
26795
26716
|
/**
|
|
@@ -26868,18 +26789,6 @@ class PassportApi extends BaseAPI {
|
|
|
26868
26789
|
getTransactionMetadata(requestParameters, options) {
|
|
26869
26790
|
return PassportApiFp(this.configuration).getTransactionMetadata(requestParameters.chainName, requestParameters.getTransactionMetadataRequest, options).then((request) => request(this.axios, this.basePath));
|
|
26870
26791
|
}
|
|
26871
|
-
/**
|
|
26872
|
-
* Get transaction metadata for a given encoded transaction
|
|
26873
|
-
* @summary Get transaction metadata
|
|
26874
|
-
* @param {PassportApiGetTransactionMetadataDeprecatedRequest} requestParameters Request parameters.
|
|
26875
|
-
* @param {*} [options] Override http request option.
|
|
26876
|
-
* @deprecated
|
|
26877
|
-
* @throws {RequiredError}
|
|
26878
|
-
* @memberof PassportApi
|
|
26879
|
-
*/
|
|
26880
|
-
getTransactionMetadataDeprecated(requestParameters, options) {
|
|
26881
|
-
return PassportApiFp(this.configuration).getTransactionMetadataDeprecated(requestParameters.chainName, requestParameters.contractAddress, requestParameters.methodId, requestParameters.transactionId, requestParameters.transactionData, options).then((request) => request(this.axios, this.basePath));
|
|
26882
|
-
}
|
|
26883
26792
|
}
|
|
26884
26793
|
|
|
26885
26794
|
/* tslint:disable */
|
|
@@ -26939,12 +26848,13 @@ const TokensApiAxiosParamCreator = function (configuration) {
|
|
|
26939
26848
|
* @summary List ERC20 tokens
|
|
26940
26849
|
* @param {string} chainName The name of chain
|
|
26941
26850
|
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
26851
|
+
* @param {Array<AssetVerificationStatus>} [verificationStatus] List of verification status to filter by
|
|
26942
26852
|
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
26943
26853
|
* @param {number} [pageSize] Maximum number of items to return
|
|
26944
26854
|
* @param {*} [options] Override http request option.
|
|
26945
26855
|
* @throws {RequiredError}
|
|
26946
26856
|
*/
|
|
26947
|
-
listERC20Tokens: async (chainName, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
|
|
26857
|
+
listERC20Tokens: async (chainName, fromUpdatedAt, verificationStatus, pageCursor, pageSize, options = {}) => {
|
|
26948
26858
|
// verify required parameter 'chainName' is not null or undefined
|
|
26949
26859
|
assertParamExists('listERC20Tokens', 'chainName', chainName);
|
|
26950
26860
|
const localVarPath = `/v1/chains/{chain_name}/tokens`
|
|
@@ -26963,6 +26873,9 @@ const TokensApiAxiosParamCreator = function (configuration) {
|
|
|
26963
26873
|
fromUpdatedAt.toISOString() :
|
|
26964
26874
|
fromUpdatedAt;
|
|
26965
26875
|
}
|
|
26876
|
+
if (verificationStatus) {
|
|
26877
|
+
localVarQueryParameter['verification_status'] = verificationStatus;
|
|
26878
|
+
}
|
|
26966
26879
|
if (pageCursor !== undefined) {
|
|
26967
26880
|
localVarQueryParameter['page_cursor'] = pageCursor;
|
|
26968
26881
|
}
|
|
@@ -27003,13 +26916,14 @@ const TokensApiFp = function (configuration) {
|
|
|
27003
26916
|
* @summary List ERC20 tokens
|
|
27004
26917
|
* @param {string} chainName The name of chain
|
|
27005
26918
|
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
26919
|
+
* @param {Array<AssetVerificationStatus>} [verificationStatus] List of verification status to filter by
|
|
27006
26920
|
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
27007
26921
|
* @param {number} [pageSize] Maximum number of items to return
|
|
27008
26922
|
* @param {*} [options] Override http request option.
|
|
27009
26923
|
* @throws {RequiredError}
|
|
27010
26924
|
*/
|
|
27011
|
-
async listERC20Tokens(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
|
|
27012
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listERC20Tokens(chainName, fromUpdatedAt, pageCursor, pageSize, options);
|
|
26925
|
+
async listERC20Tokens(chainName, fromUpdatedAt, verificationStatus, pageCursor, pageSize, options) {
|
|
26926
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listERC20Tokens(chainName, fromUpdatedAt, verificationStatus, pageCursor, pageSize, options);
|
|
27013
26927
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
27014
26928
|
},
|
|
27015
26929
|
};
|
|
@@ -27039,7 +26953,7 @@ const TokensApiFactory = function (configuration, basePath, axios) {
|
|
|
27039
26953
|
* @throws {RequiredError}
|
|
27040
26954
|
*/
|
|
27041
26955
|
listERC20Tokens(requestParameters, options) {
|
|
27042
|
-
return localVarFp.listERC20Tokens(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
|
|
26956
|
+
return localVarFp.listERC20Tokens(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.verificationStatus, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
|
|
27043
26957
|
},
|
|
27044
26958
|
};
|
|
27045
26959
|
};
|
|
@@ -27070,7 +26984,7 @@ class TokensApi extends BaseAPI {
|
|
|
27070
26984
|
* @memberof TokensApi
|
|
27071
26985
|
*/
|
|
27072
26986
|
listERC20Tokens(requestParameters, options) {
|
|
27073
|
-
return TokensApiFp(this.configuration).listERC20Tokens(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
26987
|
+
return TokensApiFp(this.configuration).listERC20Tokens(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.verificationStatus, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
27074
26988
|
}
|
|
27075
26989
|
}
|
|
27076
26990
|
|
|
@@ -27230,6 +27144,23 @@ const APIError404AllOfCodeEnum$1 = {
|
|
|
27230
27144
|
ResourceNotFound: 'RESOURCE_NOT_FOUND'
|
|
27231
27145
|
};
|
|
27232
27146
|
|
|
27147
|
+
/* tslint:disable */
|
|
27148
|
+
/* eslint-disable */
|
|
27149
|
+
/**
|
|
27150
|
+
* Immutable zkEVM API
|
|
27151
|
+
* Immutable Multi Rollup API
|
|
27152
|
+
*
|
|
27153
|
+
* The version of the OpenAPI document: 1.0.0
|
|
27154
|
+
* Contact: support@immutable.com
|
|
27155
|
+
*
|
|
27156
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
27157
|
+
* https://openapi-generator.tech
|
|
27158
|
+
* Do not edit the class manually.
|
|
27159
|
+
*/
|
|
27160
|
+
const APIError409AllOfCodeEnum = {
|
|
27161
|
+
ConflictError: 'CONFLICT_ERROR'
|
|
27162
|
+
};
|
|
27163
|
+
|
|
27233
27164
|
/* tslint:disable */
|
|
27234
27165
|
/* eslint-disable */
|
|
27235
27166
|
/**
|
|
@@ -27325,6 +27256,32 @@ const ActivityType$1 = {
|
|
|
27325
27256
|
Withdrawal: 'withdrawal'
|
|
27326
27257
|
};
|
|
27327
27258
|
|
|
27259
|
+
/* tslint:disable */
|
|
27260
|
+
/* eslint-disable */
|
|
27261
|
+
/**
|
|
27262
|
+
* Immutable zkEVM API
|
|
27263
|
+
* Immutable Multi Rollup API
|
|
27264
|
+
*
|
|
27265
|
+
* The version of the OpenAPI document: 1.0.0
|
|
27266
|
+
* Contact: support@immutable.com
|
|
27267
|
+
*
|
|
27268
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
27269
|
+
* https://openapi-generator.tech
|
|
27270
|
+
* Do not edit the class manually.
|
|
27271
|
+
*/
|
|
27272
|
+
/**
|
|
27273
|
+
* The verification status for a given contract
|
|
27274
|
+
* @export
|
|
27275
|
+
* @enum {string}
|
|
27276
|
+
*/
|
|
27277
|
+
const AssetVerificationStatus = {
|
|
27278
|
+
Pending: 'pending',
|
|
27279
|
+
Verified: 'verified',
|
|
27280
|
+
Unverified: 'unverified',
|
|
27281
|
+
Spam: 'spam',
|
|
27282
|
+
Inactive: 'inactive'
|
|
27283
|
+
};
|
|
27284
|
+
|
|
27328
27285
|
/* tslint:disable */
|
|
27329
27286
|
/* eslint-disable */
|
|
27330
27287
|
/**
|
|
@@ -27722,6 +27679,92 @@ const SaleFeeTypeEnum$1 = {
|
|
|
27722
27679
|
Royalty: 'ROYALTY'
|
|
27723
27680
|
};
|
|
27724
27681
|
|
|
27682
|
+
/* tslint:disable */
|
|
27683
|
+
/* eslint-disable */
|
|
27684
|
+
/**
|
|
27685
|
+
* Immutable zkEVM API
|
|
27686
|
+
* Immutable Multi Rollup API
|
|
27687
|
+
*
|
|
27688
|
+
* The version of the OpenAPI document: 1.0.0
|
|
27689
|
+
* Contact: support@immutable.com
|
|
27690
|
+
*
|
|
27691
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
27692
|
+
* https://openapi-generator.tech
|
|
27693
|
+
* Do not edit the class manually.
|
|
27694
|
+
*/
|
|
27695
|
+
const SeaportERC20ItemTypeEnum = {
|
|
27696
|
+
Erc20: 'ERC20'
|
|
27697
|
+
};
|
|
27698
|
+
|
|
27699
|
+
/* tslint:disable */
|
|
27700
|
+
/* eslint-disable */
|
|
27701
|
+
/**
|
|
27702
|
+
* Immutable zkEVM API
|
|
27703
|
+
* Immutable Multi Rollup API
|
|
27704
|
+
*
|
|
27705
|
+
* The version of the OpenAPI document: 1.0.0
|
|
27706
|
+
* Contact: support@immutable.com
|
|
27707
|
+
*
|
|
27708
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
27709
|
+
* https://openapi-generator.tech
|
|
27710
|
+
* Do not edit the class manually.
|
|
27711
|
+
*/
|
|
27712
|
+
const SeaportERC721ItemTypeEnum = {
|
|
27713
|
+
Erc721: 'ERC721'
|
|
27714
|
+
};
|
|
27715
|
+
|
|
27716
|
+
/* tslint:disable */
|
|
27717
|
+
/* eslint-disable */
|
|
27718
|
+
/**
|
|
27719
|
+
* Immutable zkEVM API
|
|
27720
|
+
* Immutable Multi Rollup API
|
|
27721
|
+
*
|
|
27722
|
+
* The version of the OpenAPI document: 1.0.0
|
|
27723
|
+
* Contact: support@immutable.com
|
|
27724
|
+
*
|
|
27725
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
27726
|
+
* https://openapi-generator.tech
|
|
27727
|
+
* Do not edit the class manually.
|
|
27728
|
+
*/
|
|
27729
|
+
const SeaportFeeTypeEnum = {
|
|
27730
|
+
Erc20: 'ERC20',
|
|
27731
|
+
Native: 'NATIVE'
|
|
27732
|
+
};
|
|
27733
|
+
|
|
27734
|
+
/* tslint:disable */
|
|
27735
|
+
/* eslint-disable */
|
|
27736
|
+
/**
|
|
27737
|
+
* Immutable zkEVM API
|
|
27738
|
+
* Immutable Multi Rollup API
|
|
27739
|
+
*
|
|
27740
|
+
* The version of the OpenAPI document: 1.0.0
|
|
27741
|
+
* Contact: support@immutable.com
|
|
27742
|
+
*
|
|
27743
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
27744
|
+
* https://openapi-generator.tech
|
|
27745
|
+
* Do not edit the class manually.
|
|
27746
|
+
*/
|
|
27747
|
+
const SeaportFulfillAvailableAdvancedOrdersMetadataTransactionTypeEnum = {
|
|
27748
|
+
SeaportFulfillAvailableAdvancedOrders: 'SEAPORT_FULFILL_AVAILABLE_ADVANCED_ORDERS'
|
|
27749
|
+
};
|
|
27750
|
+
|
|
27751
|
+
/* tslint:disable */
|
|
27752
|
+
/* eslint-disable */
|
|
27753
|
+
/**
|
|
27754
|
+
* Immutable zkEVM API
|
|
27755
|
+
* Immutable Multi Rollup API
|
|
27756
|
+
*
|
|
27757
|
+
* The version of the OpenAPI document: 1.0.0
|
|
27758
|
+
* Contact: support@immutable.com
|
|
27759
|
+
*
|
|
27760
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
27761
|
+
* https://openapi-generator.tech
|
|
27762
|
+
* Do not edit the class manually.
|
|
27763
|
+
*/
|
|
27764
|
+
const SeaportNativeItemTypeEnum = {
|
|
27765
|
+
Native: 'NATIVE'
|
|
27766
|
+
};
|
|
27767
|
+
|
|
27725
27768
|
/* tslint:disable */
|
|
27726
27769
|
/* eslint-disable */
|
|
27727
27770
|
/**
|
|
@@ -27781,6 +27824,7 @@ var index$1 = /*#__PURE__*/Object.freeze({
|
|
|
27781
27824
|
APIError401AllOfCodeEnum: APIError401AllOfCodeEnum$1,
|
|
27782
27825
|
APIError403AllOfCodeEnum: APIError403AllOfCodeEnum$1,
|
|
27783
27826
|
APIError404AllOfCodeEnum: APIError404AllOfCodeEnum$1,
|
|
27827
|
+
APIError409AllOfCodeEnum: APIError409AllOfCodeEnum,
|
|
27784
27828
|
APIError429AllOfCodeEnum: APIError429AllOfCodeEnum$1,
|
|
27785
27829
|
APIError500AllOfCodeEnum: APIError500AllOfCodeEnum$1,
|
|
27786
27830
|
APIError501AllOfCodeEnum: APIError501AllOfCodeEnum$1,
|
|
@@ -27790,6 +27834,7 @@ var index$1 = /*#__PURE__*/Object.freeze({
|
|
|
27790
27834
|
ActivitiesApiFactory: ActivitiesApiFactory,
|
|
27791
27835
|
ActivitiesApiFp: ActivitiesApiFp,
|
|
27792
27836
|
ActivityType: ActivityType$1,
|
|
27837
|
+
AssetVerificationStatus: AssetVerificationStatus,
|
|
27793
27838
|
CancelledOrderStatusCancellationTypeEnum: CancelledOrderStatusCancellationTypeEnum,
|
|
27794
27839
|
CancelledOrderStatusNameEnum: CancelledOrderStatusNameEnum,
|
|
27795
27840
|
ChainsApi: ChainsApi,
|
|
@@ -27846,6 +27891,11 @@ var index$1 = /*#__PURE__*/Object.freeze({
|
|
|
27846
27891
|
PendingOrderStatusNameEnum: PendingOrderStatusNameEnum,
|
|
27847
27892
|
ProtocolDataOrderTypeEnum: ProtocolDataOrderTypeEnum,
|
|
27848
27893
|
SaleFeeTypeEnum: SaleFeeTypeEnum$1,
|
|
27894
|
+
SeaportERC20ItemTypeEnum: SeaportERC20ItemTypeEnum,
|
|
27895
|
+
SeaportERC721ItemTypeEnum: SeaportERC721ItemTypeEnum,
|
|
27896
|
+
SeaportFeeTypeEnum: SeaportFeeTypeEnum,
|
|
27897
|
+
SeaportFulfillAvailableAdvancedOrdersMetadataTransactionTypeEnum: SeaportFulfillAvailableAdvancedOrdersMetadataTransactionTypeEnum,
|
|
27898
|
+
SeaportNativeItemTypeEnum: SeaportNativeItemTypeEnum,
|
|
27849
27899
|
TokenContractType: TokenContractType$1,
|
|
27850
27900
|
TokensApi: TokensApi,
|
|
27851
27901
|
TokensApiAxiosParamCreator: TokensApiAxiosParamCreator,
|
|
@@ -28286,7 +28336,7 @@ class APIError extends Error {
|
|
|
28286
28336
|
|
|
28287
28337
|
/* eslint-disable implicit-arrow-linebreak */
|
|
28288
28338
|
const defaultHeaders = {
|
|
28289
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.26.
|
|
28339
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.26.3',
|
|
28290
28340
|
};
|
|
28291
28341
|
/**
|
|
28292
28342
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -29717,7 +29767,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
|
|
|
29717
29767
|
maxPriorityFeePerGas: BigNumber$1.from(10e9),
|
|
29718
29768
|
};
|
|
29719
29769
|
|
|
29720
|
-
const SDK_VERSION_MARKER = '1.26.
|
|
29770
|
+
const SDK_VERSION_MARKER = '1.26.3';
|
|
29721
29771
|
// This SDK version is replaced by the `yarn build` command ran on the root level
|
|
29722
29772
|
const globalPackageVersion = () => SDK_VERSION_MARKER;
|
|
29723
29773
|
|
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.26.
|
|
131
|
+
const SDK_VERSION = '1.26.3';
|
|
132
132
|
const getReferrer = () => {
|
|
133
133
|
if (isNode()) {
|
|
134
134
|
return '';
|