@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/index.cjs CHANGED
@@ -181,7 +181,7 @@ const flattenProperties$1 = (properties) => {
181
181
  };
182
182
 
183
183
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
184
- const SDK_VERSION$1 = '1.26.2-alpha.2';
184
+ const SDK_VERSION$1 = '1.26.3';
185
185
  const getReferrer$1 = () => {
186
186
  if (isNode$1()) {
187
187
  return '';
@@ -465,7 +465,7 @@ var config = /*#__PURE__*/Object.freeze({
465
465
  */
466
466
  // Some imports not used depending on template conditions
467
467
  // @ts-ignore
468
- const BASE_PATH$1 = "https://api.sandbox.x.immutable.com".replace(/\/+$/, "");
468
+ const BASE_PATH$1 = "https://api.immutable.com".replace(/\/+$/, "");
469
469
  /**
470
470
  *
471
471
  * @export
@@ -6768,8 +6768,8 @@ let UsersApi$1 = class UsersApi extends BaseAPI$1 {
6768
6768
  const WithdrawalsApiAxiosParamCreator = function (configuration) {
6769
6769
  return {
6770
6770
  /**
6771
- * Creates a withdrawal. Use https://docs.x.immutable.com/reference#/operations/getSignableWithdrawal to get request body params.
6772
- * @summary Creates a withdrawal of a token
6771
+ * 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.
6772
+ * @summary Creates a withdrawal
6773
6773
  * @param {string} xImxEthAddress eth address
6774
6774
  * @param {string} xImxEthSignature eth signature
6775
6775
  * @param {CreateWithdrawalRequest} createWithdrawalRequest create a withdrawal
@@ -6810,8 +6810,8 @@ const WithdrawalsApiAxiosParamCreator = function (configuration) {
6810
6810
  };
6811
6811
  },
6812
6812
  /**
6813
- * Creates a withdrawal. Use https://docs.x.immutable.com/reference#/operations/getSignableWithdrawal to get request body params.
6814
- * @summary Creates a withdrawal of a token for starkex contracts that are higher than v3
6813
+ * Creates a withdrawal. Use https://docs.immutable.com/x/reference/#/operations/getSignableWithdrawalV2 to get request body params.
6814
+ * @summary Creates a withdrawal of a token for when StarkEx contract that is higher than v3
6815
6815
  * @param {string} xImxEthAddress eth address
6816
6816
  * @param {string} xImxEthSignature eth signature
6817
6817
  * @param {CreateWithdrawalRequestV2} createWithdrawalRequestV2 create a withdrawal
@@ -6852,7 +6852,7 @@ const WithdrawalsApiAxiosParamCreator = function (configuration) {
6852
6852
  };
6853
6853
  },
6854
6854
  /**
6855
- * Gets details of a signable withdrawal
6855
+ * 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.
6856
6856
  * @summary Gets details of a signable withdrawal
6857
6857
  * @param {GetSignableWithdrawalRequest} getSignableWithdrawalRequest get details of signable withdrawal
6858
6858
  * @param {*} [options] Override http request option.
@@ -7047,8 +7047,8 @@ const WithdrawalsApiFp = function (configuration) {
7047
7047
  const localVarAxiosParamCreator = WithdrawalsApiAxiosParamCreator(configuration);
7048
7048
  return {
7049
7049
  /**
7050
- * Creates a withdrawal. Use https://docs.x.immutable.com/reference#/operations/getSignableWithdrawal to get request body params.
7051
- * @summary Creates a withdrawal of a token
7050
+ * 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.
7051
+ * @summary Creates a withdrawal
7052
7052
  * @param {string} xImxEthAddress eth address
7053
7053
  * @param {string} xImxEthSignature eth signature
7054
7054
  * @param {CreateWithdrawalRequest} createWithdrawalRequest create a withdrawal
@@ -7060,8 +7060,8 @@ const WithdrawalsApiFp = function (configuration) {
7060
7060
  return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
7061
7061
  },
7062
7062
  /**
7063
- * Creates a withdrawal. Use https://docs.x.immutable.com/reference#/operations/getSignableWithdrawal to get request body params.
7064
- * @summary Creates a withdrawal of a token for starkex contracts that are higher than v3
7063
+ * Creates a withdrawal. Use https://docs.immutable.com/x/reference/#/operations/getSignableWithdrawalV2 to get request body params.
7064
+ * @summary Creates a withdrawal of a token for when StarkEx contract that is higher than v3
7065
7065
  * @param {string} xImxEthAddress eth address
7066
7066
  * @param {string} xImxEthSignature eth signature
7067
7067
  * @param {CreateWithdrawalRequestV2} createWithdrawalRequestV2 create a withdrawal
@@ -7073,7 +7073,7 @@ const WithdrawalsApiFp = function (configuration) {
7073
7073
  return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
7074
7074
  },
7075
7075
  /**
7076
- * Gets details of a signable withdrawal
7076
+ * 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.
7077
7077
  * @summary Gets details of a signable withdrawal
7078
7078
  * @param {GetSignableWithdrawalRequest} getSignableWithdrawalRequest get details of signable withdrawal
7079
7079
  * @param {*} [options] Override http request option.
@@ -7143,8 +7143,8 @@ const WithdrawalsApiFactory = function (configuration, basePath, axios) {
7143
7143
  const localVarFp = WithdrawalsApiFp(configuration);
7144
7144
  return {
7145
7145
  /**
7146
- * Creates a withdrawal. Use https://docs.x.immutable.com/reference#/operations/getSignableWithdrawal to get request body params.
7147
- * @summary Creates a withdrawal of a token
7146
+ * 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.
7147
+ * @summary Creates a withdrawal
7148
7148
  * @param {string} xImxEthAddress eth address
7149
7149
  * @param {string} xImxEthSignature eth signature
7150
7150
  * @param {CreateWithdrawalRequest} createWithdrawalRequest create a withdrawal
@@ -7155,8 +7155,8 @@ const WithdrawalsApiFactory = function (configuration, basePath, axios) {
7155
7155
  return localVarFp.createWithdrawal(xImxEthAddress, xImxEthSignature, createWithdrawalRequest, options).then((request) => request(axios, basePath));
7156
7156
  },
7157
7157
  /**
7158
- * Creates a withdrawal. Use https://docs.x.immutable.com/reference#/operations/getSignableWithdrawal to get request body params.
7159
- * @summary Creates a withdrawal of a token for starkex contracts that are higher than v3
7158
+ * Creates a withdrawal. Use https://docs.immutable.com/x/reference/#/operations/getSignableWithdrawalV2 to get request body params.
7159
+ * @summary Creates a withdrawal of a token for when StarkEx contract that is higher than v3
7160
7160
  * @param {string} xImxEthAddress eth address
7161
7161
  * @param {string} xImxEthSignature eth signature
7162
7162
  * @param {CreateWithdrawalRequestV2} createWithdrawalRequestV2 create a withdrawal
@@ -7167,7 +7167,7 @@ const WithdrawalsApiFactory = function (configuration, basePath, axios) {
7167
7167
  return localVarFp.createWithdrawalV2(xImxEthAddress, xImxEthSignature, createWithdrawalRequestV2, options).then((request) => request(axios, basePath));
7168
7168
  },
7169
7169
  /**
7170
- * Gets details of a signable withdrawal
7170
+ * 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.
7171
7171
  * @summary Gets details of a signable withdrawal
7172
7172
  * @param {GetSignableWithdrawalRequest} getSignableWithdrawalRequest get details of signable withdrawal
7173
7173
  * @param {*} [options] Override http request option.
@@ -7233,8 +7233,8 @@ const WithdrawalsApiFactory = function (configuration, basePath, axios) {
7233
7233
  */
7234
7234
  let WithdrawalsApi$1 = class WithdrawalsApi extends BaseAPI$1 {
7235
7235
  /**
7236
- * Creates a withdrawal. Use https://docs.x.immutable.com/reference#/operations/getSignableWithdrawal to get request body params.
7237
- * @summary Creates a withdrawal of a token
7236
+ * 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.
7237
+ * @summary Creates a withdrawal
7238
7238
  * @param {WithdrawalsApiCreateWithdrawalRequest} requestParameters Request parameters.
7239
7239
  * @param {*} [options] Override http request option.
7240
7240
  * @throws {RequiredError}
@@ -7244,8 +7244,8 @@ let WithdrawalsApi$1 = class WithdrawalsApi extends BaseAPI$1 {
7244
7244
  return WithdrawalsApiFp(this.configuration).createWithdrawal(requestParameters.xImxEthAddress, requestParameters.xImxEthSignature, requestParameters.createWithdrawalRequest, options).then((request) => request(this.axios, this.basePath));
7245
7245
  }
7246
7246
  /**
7247
- * Creates a withdrawal. Use https://docs.x.immutable.com/reference#/operations/getSignableWithdrawal to get request body params.
7248
- * @summary Creates a withdrawal of a token for starkex contracts that are higher than v3
7247
+ * Creates a withdrawal. Use https://docs.immutable.com/x/reference/#/operations/getSignableWithdrawalV2 to get request body params.
7248
+ * @summary Creates a withdrawal of a token for when StarkEx contract that is higher than v3
7249
7249
  * @param {WithdrawalsApiCreateWithdrawalV2Request} requestParameters Request parameters.
7250
7250
  * @param {*} [options] Override http request option.
7251
7251
  * @throws {RequiredError}
@@ -7255,7 +7255,7 @@ let WithdrawalsApi$1 = class WithdrawalsApi extends BaseAPI$1 {
7255
7255
  return WithdrawalsApiFp(this.configuration).createWithdrawalV2(requestParameters.xImxEthAddress, requestParameters.xImxEthSignature, requestParameters.createWithdrawalRequestV2, options).then((request) => request(this.axios, this.basePath));
7256
7256
  }
7257
7257
  /**
7258
- * Gets details of a signable withdrawal
7258
+ * 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.
7259
7259
  * @summary Gets details of a signable withdrawal
7260
7260
  * @param {WithdrawalsApiGetSignableWithdrawalRequest} requestParameters Request parameters.
7261
7261
  * @param {*} [options] Override http request option.
@@ -9443,13 +9443,14 @@ const CollectionsApiAxiosParamCreator = function (configuration) {
9443
9443
  * @summary List all collections
9444
9444
  * @param {string} chainName The name of chain
9445
9445
  * @param {Array<string>} [contractAddress] List of contract addresses to filter by
9446
+ * @param {Array<AssetVerificationStatus>} [verificationStatus] List of verification status to filter by
9446
9447
  * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
9447
9448
  * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
9448
9449
  * @param {number} [pageSize] Maximum number of items to return
9449
9450
  * @param {*} [options] Override http request option.
9450
9451
  * @throws {RequiredError}
9451
9452
  */
9452
- listCollections: async (chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
9453
+ listCollections: async (chainName, contractAddress, verificationStatus, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
9453
9454
  // verify required parameter 'chainName' is not null or undefined
9454
9455
  assertParamExists$2('listCollections', 'chainName', chainName);
9455
9456
  const localVarPath = `/v1/chains/{chain_name}/collections`
@@ -9466,6 +9467,9 @@ const CollectionsApiAxiosParamCreator = function (configuration) {
9466
9467
  if (contractAddress) {
9467
9468
  localVarQueryParameter['contract_address'] = contractAddress;
9468
9469
  }
9470
+ if (verificationStatus) {
9471
+ localVarQueryParameter['verification_status'] = verificationStatus;
9472
+ }
9469
9473
  if (fromUpdatedAt !== undefined) {
9470
9474
  localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
9471
9475
  fromUpdatedAt.toISOString() :
@@ -9595,14 +9599,15 @@ const CollectionsApiFp = function (configuration) {
9595
9599
  * @summary List all collections
9596
9600
  * @param {string} chainName The name of chain
9597
9601
  * @param {Array<string>} [contractAddress] List of contract addresses to filter by
9602
+ * @param {Array<AssetVerificationStatus>} [verificationStatus] List of verification status to filter by
9598
9603
  * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
9599
9604
  * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
9600
9605
  * @param {number} [pageSize] Maximum number of items to return
9601
9606
  * @param {*} [options] Override http request option.
9602
9607
  * @throws {RequiredError}
9603
9608
  */
9604
- async listCollections(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options) {
9605
- const localVarAxiosArgs = await localVarAxiosParamCreator.listCollections(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options);
9609
+ async listCollections(chainName, contractAddress, verificationStatus, fromUpdatedAt, pageCursor, pageSize, options) {
9610
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listCollections(chainName, contractAddress, verificationStatus, fromUpdatedAt, pageCursor, pageSize, options);
9606
9611
  return createRequestFunction$2(localVarAxiosArgs, globalAxios$1, BASE_PATH$2, configuration);
9607
9612
  },
9608
9613
  /**
@@ -9659,7 +9664,7 @@ const CollectionsApiFactory = function (configuration, basePath, axios) {
9659
9664
  * @throws {RequiredError}
9660
9665
  */
9661
9666
  listCollections(requestParameters, options) {
9662
- return localVarFp.listCollections(requestParameters.chainName, requestParameters.contractAddress, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
9667
+ return localVarFp.listCollections(requestParameters.chainName, requestParameters.contractAddress, requestParameters.verificationStatus, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
9663
9668
  },
9664
9669
  /**
9665
9670
  * List collections by NFT owner account address
@@ -9710,7 +9715,7 @@ let CollectionsApi$2 = class CollectionsApi extends BaseAPI$2 {
9710
9715
  * @memberof CollectionsApi
9711
9716
  */
9712
9717
  listCollections(requestParameters, options) {
9713
- return CollectionsApiFp(this.configuration).listCollections(requestParameters.chainName, requestParameters.contractAddress, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
9718
+ 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));
9714
9719
  }
9715
9720
  /**
9716
9721
  * List collections by NFT owner account address
@@ -11916,63 +11921,6 @@ const PassportApiAxiosParamCreator = function (configuration) {
11916
11921
  options: localVarRequestOptions,
11917
11922
  };
11918
11923
  },
11919
- /**
11920
- * Get transaction metadata for a given encoded transaction
11921
- * @summary Get transaction metadata
11922
- * @param {string} chainName
11923
- * @param {string} contractAddress The address of the contract intended for interaction with this transaction
11924
- * @param {string} methodId The method ID of the contract intended for interaction with this transaction
11925
- * @param {string} transactionId ID of the given transaction to be decoded
11926
- * @param {string} transactionData Encoded transaction data
11927
- * @param {*} [options] Override http request option.
11928
- * @deprecated
11929
- * @throws {RequiredError}
11930
- */
11931
- getTransactionMetadataDeprecated: async (chainName, contractAddress, methodId, transactionId, transactionData, options = {}) => {
11932
- // verify required parameter 'chainName' is not null or undefined
11933
- assertParamExists$2('getTransactionMetadataDeprecated', 'chainName', chainName);
11934
- // verify required parameter 'contractAddress' is not null or undefined
11935
- assertParamExists$2('getTransactionMetadataDeprecated', 'contractAddress', contractAddress);
11936
- // verify required parameter 'methodId' is not null or undefined
11937
- assertParamExists$2('getTransactionMetadataDeprecated', 'methodId', methodId);
11938
- // verify required parameter 'transactionId' is not null or undefined
11939
- assertParamExists$2('getTransactionMetadataDeprecated', 'transactionId', transactionId);
11940
- // verify required parameter 'transactionData' is not null or undefined
11941
- assertParamExists$2('getTransactionMetadataDeprecated', 'transactionData', transactionData);
11942
- const localVarPath = `/v1/chains/{chain_name}/passport/transaction-metadata`
11943
- .replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
11944
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
11945
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$2);
11946
- let baseOptions;
11947
- if (configuration) {
11948
- baseOptions = configuration.baseOptions;
11949
- }
11950
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
11951
- const localVarHeaderParameter = {};
11952
- const localVarQueryParameter = {};
11953
- // authentication BearerAuth required
11954
- // http bearer authentication required
11955
- await setBearerAuthToObject$1(localVarHeaderParameter, configuration);
11956
- if (contractAddress !== undefined) {
11957
- localVarQueryParameter['contract_address'] = contractAddress;
11958
- }
11959
- if (methodId !== undefined) {
11960
- localVarQueryParameter['method_id'] = methodId;
11961
- }
11962
- if (transactionId !== undefined) {
11963
- localVarQueryParameter['transaction_id'] = transactionId;
11964
- }
11965
- if (transactionData !== undefined) {
11966
- localVarQueryParameter['transaction_data'] = transactionData;
11967
- }
11968
- setSearchParams$2(localVarUrlObj, localVarQueryParameter);
11969
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11970
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
11971
- return {
11972
- url: toPathString$2(localVarUrlObj),
11973
- options: localVarRequestOptions,
11974
- };
11975
- },
11976
11924
  };
11977
11925
  };
11978
11926
  /**
@@ -12055,22 +12003,6 @@ const PassportApiFp = function (configuration) {
12055
12003
  const localVarAxiosArgs = await localVarAxiosParamCreator.getTransactionMetadata(chainName, getTransactionMetadataRequest, options);
12056
12004
  return createRequestFunction$2(localVarAxiosArgs, globalAxios$1, BASE_PATH$2, configuration);
12057
12005
  },
12058
- /**
12059
- * Get transaction metadata for a given encoded transaction
12060
- * @summary Get transaction metadata
12061
- * @param {string} chainName
12062
- * @param {string} contractAddress The address of the contract intended for interaction with this transaction
12063
- * @param {string} methodId The method ID of the contract intended for interaction with this transaction
12064
- * @param {string} transactionId ID of the given transaction to be decoded
12065
- * @param {string} transactionData Encoded transaction data
12066
- * @param {*} [options] Override http request option.
12067
- * @deprecated
12068
- * @throws {RequiredError}
12069
- */
12070
- async getTransactionMetadataDeprecated(chainName, contractAddress, methodId, transactionId, transactionData, options) {
12071
- const localVarAxiosArgs = await localVarAxiosParamCreator.getTransactionMetadataDeprecated(chainName, contractAddress, methodId, transactionId, transactionData, options);
12072
- return createRequestFunction$2(localVarAxiosArgs, globalAxios$1, BASE_PATH$2, configuration);
12073
- },
12074
12006
  };
12075
12007
  };
12076
12008
  /**
@@ -12143,17 +12075,6 @@ const PassportApiFactory = function (configuration, basePath, axios) {
12143
12075
  getTransactionMetadata(requestParameters, options) {
12144
12076
  return localVarFp.getTransactionMetadata(requestParameters.chainName, requestParameters.getTransactionMetadataRequest, options).then((request) => request(axios, basePath));
12145
12077
  },
12146
- /**
12147
- * Get transaction metadata for a given encoded transaction
12148
- * @summary Get transaction metadata
12149
- * @param {PassportApiGetTransactionMetadataDeprecatedRequest} requestParameters Request parameters.
12150
- * @param {*} [options] Override http request option.
12151
- * @deprecated
12152
- * @throws {RequiredError}
12153
- */
12154
- getTransactionMetadataDeprecated(requestParameters, options) {
12155
- return localVarFp.getTransactionMetadataDeprecated(requestParameters.chainName, requestParameters.contractAddress, requestParameters.methodId, requestParameters.transactionId, requestParameters.transactionData, options).then((request) => request(axios, basePath));
12156
- },
12157
12078
  };
12158
12079
  };
12159
12080
  /**
@@ -12232,18 +12153,6 @@ class PassportApi extends BaseAPI$2 {
12232
12153
  getTransactionMetadata(requestParameters, options) {
12233
12154
  return PassportApiFp(this.configuration).getTransactionMetadata(requestParameters.chainName, requestParameters.getTransactionMetadataRequest, options).then((request) => request(this.axios, this.basePath));
12234
12155
  }
12235
- /**
12236
- * Get transaction metadata for a given encoded transaction
12237
- * @summary Get transaction metadata
12238
- * @param {PassportApiGetTransactionMetadataDeprecatedRequest} requestParameters Request parameters.
12239
- * @param {*} [options] Override http request option.
12240
- * @deprecated
12241
- * @throws {RequiredError}
12242
- * @memberof PassportApi
12243
- */
12244
- getTransactionMetadataDeprecated(requestParameters, options) {
12245
- return PassportApiFp(this.configuration).getTransactionMetadataDeprecated(requestParameters.chainName, requestParameters.contractAddress, requestParameters.methodId, requestParameters.transactionId, requestParameters.transactionData, options).then((request) => request(this.axios, this.basePath));
12246
- }
12247
12156
  }
12248
12157
 
12249
12158
  /* tslint:disable */
@@ -12303,12 +12212,13 @@ const TokensApiAxiosParamCreator = function (configuration) {
12303
12212
  * @summary List ERC20 tokens
12304
12213
  * @param {string} chainName The name of chain
12305
12214
  * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
12215
+ * @param {Array<AssetVerificationStatus>} [verificationStatus] List of verification status to filter by
12306
12216
  * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
12307
12217
  * @param {number} [pageSize] Maximum number of items to return
12308
12218
  * @param {*} [options] Override http request option.
12309
12219
  * @throws {RequiredError}
12310
12220
  */
12311
- listERC20Tokens: async (chainName, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
12221
+ listERC20Tokens: async (chainName, fromUpdatedAt, verificationStatus, pageCursor, pageSize, options = {}) => {
12312
12222
  // verify required parameter 'chainName' is not null or undefined
12313
12223
  assertParamExists$2('listERC20Tokens', 'chainName', chainName);
12314
12224
  const localVarPath = `/v1/chains/{chain_name}/tokens`
@@ -12327,6 +12237,9 @@ const TokensApiAxiosParamCreator = function (configuration) {
12327
12237
  fromUpdatedAt.toISOString() :
12328
12238
  fromUpdatedAt;
12329
12239
  }
12240
+ if (verificationStatus) {
12241
+ localVarQueryParameter['verification_status'] = verificationStatus;
12242
+ }
12330
12243
  if (pageCursor !== undefined) {
12331
12244
  localVarQueryParameter['page_cursor'] = pageCursor;
12332
12245
  }
@@ -12367,13 +12280,14 @@ const TokensApiFp = function (configuration) {
12367
12280
  * @summary List ERC20 tokens
12368
12281
  * @param {string} chainName The name of chain
12369
12282
  * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
12283
+ * @param {Array<AssetVerificationStatus>} [verificationStatus] List of verification status to filter by
12370
12284
  * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
12371
12285
  * @param {number} [pageSize] Maximum number of items to return
12372
12286
  * @param {*} [options] Override http request option.
12373
12287
  * @throws {RequiredError}
12374
12288
  */
12375
- async listERC20Tokens(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
12376
- const localVarAxiosArgs = await localVarAxiosParamCreator.listERC20Tokens(chainName, fromUpdatedAt, pageCursor, pageSize, options);
12289
+ async listERC20Tokens(chainName, fromUpdatedAt, verificationStatus, pageCursor, pageSize, options) {
12290
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listERC20Tokens(chainName, fromUpdatedAt, verificationStatus, pageCursor, pageSize, options);
12377
12291
  return createRequestFunction$2(localVarAxiosArgs, globalAxios$1, BASE_PATH$2, configuration);
12378
12292
  },
12379
12293
  };
@@ -12403,7 +12317,7 @@ const TokensApiFactory = function (configuration, basePath, axios) {
12403
12317
  * @throws {RequiredError}
12404
12318
  */
12405
12319
  listERC20Tokens(requestParameters, options) {
12406
- return localVarFp.listERC20Tokens(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
12320
+ return localVarFp.listERC20Tokens(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.verificationStatus, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
12407
12321
  },
12408
12322
  };
12409
12323
  };
@@ -12434,7 +12348,7 @@ let TokensApi$2 = class TokensApi extends BaseAPI$2 {
12434
12348
  * @memberof TokensApi
12435
12349
  */
12436
12350
  listERC20Tokens(requestParameters, options) {
12437
- return TokensApiFp(this.configuration).listERC20Tokens(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
12351
+ return TokensApiFp(this.configuration).listERC20Tokens(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.verificationStatus, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
12438
12352
  }
12439
12353
  };
12440
12354
 
@@ -12594,6 +12508,23 @@ const APIError404AllOfCodeEnum$1 = {
12594
12508
  ResourceNotFound: 'RESOURCE_NOT_FOUND'
12595
12509
  };
12596
12510
 
12511
+ /* tslint:disable */
12512
+ /* eslint-disable */
12513
+ /**
12514
+ * Immutable zkEVM API
12515
+ * Immutable Multi Rollup API
12516
+ *
12517
+ * The version of the OpenAPI document: 1.0.0
12518
+ * Contact: support@immutable.com
12519
+ *
12520
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12521
+ * https://openapi-generator.tech
12522
+ * Do not edit the class manually.
12523
+ */
12524
+ const APIError409AllOfCodeEnum = {
12525
+ ConflictError: 'CONFLICT_ERROR'
12526
+ };
12527
+
12597
12528
  /* tslint:disable */
12598
12529
  /* eslint-disable */
12599
12530
  /**
@@ -12689,6 +12620,32 @@ const ActivityType$1 = {
12689
12620
  Withdrawal: 'withdrawal'
12690
12621
  };
12691
12622
 
12623
+ /* tslint:disable */
12624
+ /* eslint-disable */
12625
+ /**
12626
+ * Immutable zkEVM API
12627
+ * Immutable Multi Rollup API
12628
+ *
12629
+ * The version of the OpenAPI document: 1.0.0
12630
+ * Contact: support@immutable.com
12631
+ *
12632
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12633
+ * https://openapi-generator.tech
12634
+ * Do not edit the class manually.
12635
+ */
12636
+ /**
12637
+ * The verification status for a given contract
12638
+ * @export
12639
+ * @enum {string}
12640
+ */
12641
+ const AssetVerificationStatus = {
12642
+ Pending: 'pending',
12643
+ Verified: 'verified',
12644
+ Unverified: 'unverified',
12645
+ Spam: 'spam',
12646
+ Inactive: 'inactive'
12647
+ };
12648
+
12692
12649
  /* tslint:disable */
12693
12650
  /* eslint-disable */
12694
12651
  /**
@@ -13086,6 +13043,92 @@ const SaleFeeTypeEnum$1 = {
13086
13043
  Royalty: 'ROYALTY'
13087
13044
  };
13088
13045
 
13046
+ /* tslint:disable */
13047
+ /* eslint-disable */
13048
+ /**
13049
+ * Immutable zkEVM API
13050
+ * Immutable Multi Rollup API
13051
+ *
13052
+ * The version of the OpenAPI document: 1.0.0
13053
+ * Contact: support@immutable.com
13054
+ *
13055
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
13056
+ * https://openapi-generator.tech
13057
+ * Do not edit the class manually.
13058
+ */
13059
+ const SeaportERC20ItemTypeEnum = {
13060
+ Erc20: 'ERC20'
13061
+ };
13062
+
13063
+ /* tslint:disable */
13064
+ /* eslint-disable */
13065
+ /**
13066
+ * Immutable zkEVM API
13067
+ * Immutable Multi Rollup API
13068
+ *
13069
+ * The version of the OpenAPI document: 1.0.0
13070
+ * Contact: support@immutable.com
13071
+ *
13072
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
13073
+ * https://openapi-generator.tech
13074
+ * Do not edit the class manually.
13075
+ */
13076
+ const SeaportERC721ItemTypeEnum = {
13077
+ Erc721: 'ERC721'
13078
+ };
13079
+
13080
+ /* tslint:disable */
13081
+ /* eslint-disable */
13082
+ /**
13083
+ * Immutable zkEVM API
13084
+ * Immutable Multi Rollup API
13085
+ *
13086
+ * The version of the OpenAPI document: 1.0.0
13087
+ * Contact: support@immutable.com
13088
+ *
13089
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
13090
+ * https://openapi-generator.tech
13091
+ * Do not edit the class manually.
13092
+ */
13093
+ const SeaportFeeTypeEnum = {
13094
+ Erc20: 'ERC20',
13095
+ Native: 'NATIVE'
13096
+ };
13097
+
13098
+ /* tslint:disable */
13099
+ /* eslint-disable */
13100
+ /**
13101
+ * Immutable zkEVM API
13102
+ * Immutable Multi Rollup API
13103
+ *
13104
+ * The version of the OpenAPI document: 1.0.0
13105
+ * Contact: support@immutable.com
13106
+ *
13107
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
13108
+ * https://openapi-generator.tech
13109
+ * Do not edit the class manually.
13110
+ */
13111
+ const SeaportFulfillAvailableAdvancedOrdersMetadataTransactionTypeEnum = {
13112
+ SeaportFulfillAvailableAdvancedOrders: 'SEAPORT_FULFILL_AVAILABLE_ADVANCED_ORDERS'
13113
+ };
13114
+
13115
+ /* tslint:disable */
13116
+ /* eslint-disable */
13117
+ /**
13118
+ * Immutable zkEVM API
13119
+ * Immutable Multi Rollup API
13120
+ *
13121
+ * The version of the OpenAPI document: 1.0.0
13122
+ * Contact: support@immutable.com
13123
+ *
13124
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
13125
+ * https://openapi-generator.tech
13126
+ * Do not edit the class manually.
13127
+ */
13128
+ const SeaportNativeItemTypeEnum = {
13129
+ Native: 'NATIVE'
13130
+ };
13131
+
13089
13132
  /* tslint:disable */
13090
13133
  /* eslint-disable */
13091
13134
  /**
@@ -13145,6 +13188,7 @@ var index$1 = /*#__PURE__*/Object.freeze({
13145
13188
  APIError401AllOfCodeEnum: APIError401AllOfCodeEnum$1,
13146
13189
  APIError403AllOfCodeEnum: APIError403AllOfCodeEnum$1,
13147
13190
  APIError404AllOfCodeEnum: APIError404AllOfCodeEnum$1,
13191
+ APIError409AllOfCodeEnum: APIError409AllOfCodeEnum,
13148
13192
  APIError429AllOfCodeEnum: APIError429AllOfCodeEnum$1,
13149
13193
  APIError500AllOfCodeEnum: APIError500AllOfCodeEnum$1,
13150
13194
  APIError501AllOfCodeEnum: APIError501AllOfCodeEnum$1,
@@ -13154,6 +13198,7 @@ var index$1 = /*#__PURE__*/Object.freeze({
13154
13198
  ActivitiesApiFactory: ActivitiesApiFactory,
13155
13199
  ActivitiesApiFp: ActivitiesApiFp,
13156
13200
  ActivityType: ActivityType$1,
13201
+ AssetVerificationStatus: AssetVerificationStatus,
13157
13202
  CancelledOrderStatusCancellationTypeEnum: CancelledOrderStatusCancellationTypeEnum,
13158
13203
  CancelledOrderStatusNameEnum: CancelledOrderStatusNameEnum,
13159
13204
  ChainsApi: ChainsApi,
@@ -13210,6 +13255,11 @@ var index$1 = /*#__PURE__*/Object.freeze({
13210
13255
  PendingOrderStatusNameEnum: PendingOrderStatusNameEnum,
13211
13256
  ProtocolDataOrderTypeEnum: ProtocolDataOrderTypeEnum,
13212
13257
  SaleFeeTypeEnum: SaleFeeTypeEnum$1,
13258
+ SeaportERC20ItemTypeEnum: SeaportERC20ItemTypeEnum,
13259
+ SeaportERC721ItemTypeEnum: SeaportERC721ItemTypeEnum,
13260
+ SeaportFeeTypeEnum: SeaportFeeTypeEnum,
13261
+ SeaportFulfillAvailableAdvancedOrdersMetadataTransactionTypeEnum: SeaportFulfillAvailableAdvancedOrdersMetadataTransactionTypeEnum,
13262
+ SeaportNativeItemTypeEnum: SeaportNativeItemTypeEnum,
13213
13263
  TokenContractType: TokenContractType$1,
13214
13264
  TokensApi: TokensApi$2,
13215
13265
  TokensApiAxiosParamCreator: TokensApiAxiosParamCreator,
@@ -13732,7 +13782,7 @@ class MultiRollupApiClients {
13732
13782
  }
13733
13783
 
13734
13784
  // eslint-disable-next-line @typescript-eslint/naming-convention
13735
- const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.26.2-alpha.2' };
13785
+ const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.26.3' };
13736
13786
  const createConfig$1 = ({ basePath, headers, }) => {
13737
13787
  if (!basePath.trim()) {
13738
13788
  throw Error('basePath can not be empty');
@@ -13804,7 +13854,7 @@ class APIError extends Error {
13804
13854
 
13805
13855
  /* eslint-disable implicit-arrow-linebreak */
13806
13856
  const defaultHeaders$1 = {
13807
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.26.2-alpha.2',
13857
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.26.3',
13808
13858
  };
13809
13859
  /**
13810
13860
  * createAPIConfiguration to create a custom Configuration
@@ -14278,7 +14328,7 @@ var blockchain_data = /*#__PURE__*/Object.freeze({
14278
14328
  /* eslint-disable @typescript-eslint/naming-convention */
14279
14329
  class ApiConfiguration extends index$2.Configuration {
14280
14330
  }
14281
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.26.2-alpha.2' };
14331
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.26.3' };
14282
14332
  /**
14283
14333
  * @dev use createImmutableXConfiguration instead
14284
14334
  */
@@ -14317,7 +14367,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
14317
14367
  chainID,
14318
14368
  coreContractAddress,
14319
14369
  registrationContractAddress,
14320
- sdkVersion: 'ts-immutable-sdk-1.26.2-alpha.2',
14370
+ sdkVersion: 'ts-immutable-sdk-1.26.3',
14321
14371
  baseConfig,
14322
14372
  });
14323
14373
  const production = ({ baseConfig }) => createImmutableXConfiguration({
@@ -26802,10 +26852,17 @@ class Passport {
26802
26852
  catch (err) {
26803
26853
  logger$f.warn('Failed to logout from confirmation screen', err);
26804
26854
  }
26805
- await Promise.allSettled([
26806
- this.authManager.logout(),
26807
- this.magicAdapter.logout(),
26808
- ]);
26855
+ if (this.config.oidcConfiguration.logoutMode === 'silent') {
26856
+ await Promise.allSettled([
26857
+ this.authManager.logout(),
26858
+ this.magicAdapter.logout(),
26859
+ ]);
26860
+ }
26861
+ else {
26862
+ // We need to ensure that the Magic wallet is logged out BEFORE redirecting
26863
+ await this.magicAdapter.logout();
26864
+ await this.authManager.logout();
26865
+ }
26809
26866
  this.passportEventEmitter.emit(PassportEvents.LOGGED_OUT);
26810
26867
  }
26811
26868
  /**
@@ -45708,7 +45765,7 @@ const flattenProperties = (properties) => {
45708
45765
  };
45709
45766
 
45710
45767
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
45711
- const SDK_VERSION = '1.26.2-alpha.2';
45768
+ const SDK_VERSION = '1.26.3';
45712
45769
  const getReferrer = () => {
45713
45770
  if (isNode()) {
45714
45771
  return '';
@@ -50903,7 +50960,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
50903
50960
  maxPriorityFeePerGas: ethers.BigNumber.from(10e9),
50904
50961
  };
50905
50962
 
50906
- const SDK_VERSION_MARKER = '1.26.2-alpha.2';
50963
+ const SDK_VERSION_MARKER = '1.26.3';
50907
50964
  // This SDK version is replaced by the `yarn build` command ran on the root level
50908
50965
  const globalPackageVersion = () => SDK_VERSION_MARKER;
50909
50966