@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.js CHANGED
@@ -159,7 +159,7 @@ const flattenProperties$1 = (properties) => {
159
159
  };
160
160
 
161
161
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
162
- const SDK_VERSION$1 = '1.26.2-alpha.2';
162
+ const SDK_VERSION$1 = '1.26.3';
163
163
  const getReferrer$1 = () => {
164
164
  if (isNode$1()) {
165
165
  return '';
@@ -443,7 +443,7 @@ var config = /*#__PURE__*/Object.freeze({
443
443
  */
444
444
  // Some imports not used depending on template conditions
445
445
  // @ts-ignore
446
- const BASE_PATH$1 = "https://api.sandbox.x.immutable.com".replace(/\/+$/, "");
446
+ const BASE_PATH$1 = "https://api.immutable.com".replace(/\/+$/, "");
447
447
  /**
448
448
  *
449
449
  * @export
@@ -6746,8 +6746,8 @@ let UsersApi$1 = class UsersApi extends BaseAPI$1 {
6746
6746
  const WithdrawalsApiAxiosParamCreator = function (configuration) {
6747
6747
  return {
6748
6748
  /**
6749
- * Creates a withdrawal. Use https://docs.x.immutable.com/reference#/operations/getSignableWithdrawal to get request body params.
6750
- * @summary Creates a withdrawal of a token
6749
+ * 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.
6750
+ * @summary Creates a withdrawal
6751
6751
  * @param {string} xImxEthAddress eth address
6752
6752
  * @param {string} xImxEthSignature eth signature
6753
6753
  * @param {CreateWithdrawalRequest} createWithdrawalRequest create a withdrawal
@@ -6788,8 +6788,8 @@ const WithdrawalsApiAxiosParamCreator = function (configuration) {
6788
6788
  };
6789
6789
  },
6790
6790
  /**
6791
- * Creates a withdrawal. Use https://docs.x.immutable.com/reference#/operations/getSignableWithdrawal to get request body params.
6792
- * @summary Creates a withdrawal of a token for starkex contracts that are higher than v3
6791
+ * Creates a withdrawal. Use https://docs.immutable.com/x/reference/#/operations/getSignableWithdrawalV2 to get request body params.
6792
+ * @summary Creates a withdrawal of a token for when StarkEx contract that is higher than v3
6793
6793
  * @param {string} xImxEthAddress eth address
6794
6794
  * @param {string} xImxEthSignature eth signature
6795
6795
  * @param {CreateWithdrawalRequestV2} createWithdrawalRequestV2 create a withdrawal
@@ -6830,7 +6830,7 @@ const WithdrawalsApiAxiosParamCreator = function (configuration) {
6830
6830
  };
6831
6831
  },
6832
6832
  /**
6833
- * Gets details of a signable withdrawal
6833
+ * 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.
6834
6834
  * @summary Gets details of a signable withdrawal
6835
6835
  * @param {GetSignableWithdrawalRequest} getSignableWithdrawalRequest get details of signable withdrawal
6836
6836
  * @param {*} [options] Override http request option.
@@ -7025,8 +7025,8 @@ const WithdrawalsApiFp = function (configuration) {
7025
7025
  const localVarAxiosParamCreator = WithdrawalsApiAxiosParamCreator(configuration);
7026
7026
  return {
7027
7027
  /**
7028
- * Creates a withdrawal. Use https://docs.x.immutable.com/reference#/operations/getSignableWithdrawal to get request body params.
7029
- * @summary Creates a withdrawal of a token
7028
+ * 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.
7029
+ * @summary Creates a withdrawal
7030
7030
  * @param {string} xImxEthAddress eth address
7031
7031
  * @param {string} xImxEthSignature eth signature
7032
7032
  * @param {CreateWithdrawalRequest} createWithdrawalRequest create a withdrawal
@@ -7038,8 +7038,8 @@ const WithdrawalsApiFp = function (configuration) {
7038
7038
  return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
7039
7039
  },
7040
7040
  /**
7041
- * Creates a withdrawal. Use https://docs.x.immutable.com/reference#/operations/getSignableWithdrawal to get request body params.
7042
- * @summary Creates a withdrawal of a token for starkex contracts that are higher than v3
7041
+ * Creates a withdrawal. Use https://docs.immutable.com/x/reference/#/operations/getSignableWithdrawalV2 to get request body params.
7042
+ * @summary Creates a withdrawal of a token for when StarkEx contract that is higher than v3
7043
7043
  * @param {string} xImxEthAddress eth address
7044
7044
  * @param {string} xImxEthSignature eth signature
7045
7045
  * @param {CreateWithdrawalRequestV2} createWithdrawalRequestV2 create a withdrawal
@@ -7051,7 +7051,7 @@ const WithdrawalsApiFp = function (configuration) {
7051
7051
  return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
7052
7052
  },
7053
7053
  /**
7054
- * Gets details of a signable withdrawal
7054
+ * 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.
7055
7055
  * @summary Gets details of a signable withdrawal
7056
7056
  * @param {GetSignableWithdrawalRequest} getSignableWithdrawalRequest get details of signable withdrawal
7057
7057
  * @param {*} [options] Override http request option.
@@ -7121,8 +7121,8 @@ const WithdrawalsApiFactory = function (configuration, basePath, axios) {
7121
7121
  const localVarFp = WithdrawalsApiFp(configuration);
7122
7122
  return {
7123
7123
  /**
7124
- * Creates a withdrawal. Use https://docs.x.immutable.com/reference#/operations/getSignableWithdrawal to get request body params.
7125
- * @summary Creates a withdrawal of a token
7124
+ * 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.
7125
+ * @summary Creates a withdrawal
7126
7126
  * @param {string} xImxEthAddress eth address
7127
7127
  * @param {string} xImxEthSignature eth signature
7128
7128
  * @param {CreateWithdrawalRequest} createWithdrawalRequest create a withdrawal
@@ -7133,8 +7133,8 @@ const WithdrawalsApiFactory = function (configuration, basePath, axios) {
7133
7133
  return localVarFp.createWithdrawal(xImxEthAddress, xImxEthSignature, createWithdrawalRequest, options).then((request) => request(axios, basePath));
7134
7134
  },
7135
7135
  /**
7136
- * Creates a withdrawal. Use https://docs.x.immutable.com/reference#/operations/getSignableWithdrawal to get request body params.
7137
- * @summary Creates a withdrawal of a token for starkex contracts that are higher than v3
7136
+ * Creates a withdrawal. Use https://docs.immutable.com/x/reference/#/operations/getSignableWithdrawalV2 to get request body params.
7137
+ * @summary Creates a withdrawal of a token for when StarkEx contract that is higher than v3
7138
7138
  * @param {string} xImxEthAddress eth address
7139
7139
  * @param {string} xImxEthSignature eth signature
7140
7140
  * @param {CreateWithdrawalRequestV2} createWithdrawalRequestV2 create a withdrawal
@@ -7145,7 +7145,7 @@ const WithdrawalsApiFactory = function (configuration, basePath, axios) {
7145
7145
  return localVarFp.createWithdrawalV2(xImxEthAddress, xImxEthSignature, createWithdrawalRequestV2, options).then((request) => request(axios, basePath));
7146
7146
  },
7147
7147
  /**
7148
- * Gets details of a signable withdrawal
7148
+ * 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.
7149
7149
  * @summary Gets details of a signable withdrawal
7150
7150
  * @param {GetSignableWithdrawalRequest} getSignableWithdrawalRequest get details of signable withdrawal
7151
7151
  * @param {*} [options] Override http request option.
@@ -7211,8 +7211,8 @@ const WithdrawalsApiFactory = function (configuration, basePath, axios) {
7211
7211
  */
7212
7212
  let WithdrawalsApi$1 = class WithdrawalsApi extends BaseAPI$1 {
7213
7213
  /**
7214
- * Creates a withdrawal. Use https://docs.x.immutable.com/reference#/operations/getSignableWithdrawal to get request body params.
7215
- * @summary Creates a withdrawal of a token
7214
+ * 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.
7215
+ * @summary Creates a withdrawal
7216
7216
  * @param {WithdrawalsApiCreateWithdrawalRequest} requestParameters Request parameters.
7217
7217
  * @param {*} [options] Override http request option.
7218
7218
  * @throws {RequiredError}
@@ -7222,8 +7222,8 @@ let WithdrawalsApi$1 = class WithdrawalsApi extends BaseAPI$1 {
7222
7222
  return WithdrawalsApiFp(this.configuration).createWithdrawal(requestParameters.xImxEthAddress, requestParameters.xImxEthSignature, requestParameters.createWithdrawalRequest, options).then((request) => request(this.axios, this.basePath));
7223
7223
  }
7224
7224
  /**
7225
- * Creates a withdrawal. Use https://docs.x.immutable.com/reference#/operations/getSignableWithdrawal to get request body params.
7226
- * @summary Creates a withdrawal of a token for starkex contracts that are higher than v3
7225
+ * Creates a withdrawal. Use https://docs.immutable.com/x/reference/#/operations/getSignableWithdrawalV2 to get request body params.
7226
+ * @summary Creates a withdrawal of a token for when StarkEx contract that is higher than v3
7227
7227
  * @param {WithdrawalsApiCreateWithdrawalV2Request} requestParameters Request parameters.
7228
7228
  * @param {*} [options] Override http request option.
7229
7229
  * @throws {RequiredError}
@@ -7233,7 +7233,7 @@ let WithdrawalsApi$1 = class WithdrawalsApi extends BaseAPI$1 {
7233
7233
  return WithdrawalsApiFp(this.configuration).createWithdrawalV2(requestParameters.xImxEthAddress, requestParameters.xImxEthSignature, requestParameters.createWithdrawalRequestV2, options).then((request) => request(this.axios, this.basePath));
7234
7234
  }
7235
7235
  /**
7236
- * Gets details of a signable withdrawal
7236
+ * 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.
7237
7237
  * @summary Gets details of a signable withdrawal
7238
7238
  * @param {WithdrawalsApiGetSignableWithdrawalRequest} requestParameters Request parameters.
7239
7239
  * @param {*} [options] Override http request option.
@@ -9421,13 +9421,14 @@ const CollectionsApiAxiosParamCreator = function (configuration) {
9421
9421
  * @summary List all collections
9422
9422
  * @param {string} chainName The name of chain
9423
9423
  * @param {Array<string>} [contractAddress] List of contract addresses to filter by
9424
+ * @param {Array<AssetVerificationStatus>} [verificationStatus] List of verification status to filter by
9424
9425
  * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
9425
9426
  * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
9426
9427
  * @param {number} [pageSize] Maximum number of items to return
9427
9428
  * @param {*} [options] Override http request option.
9428
9429
  * @throws {RequiredError}
9429
9430
  */
9430
- listCollections: async (chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
9431
+ listCollections: async (chainName, contractAddress, verificationStatus, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
9431
9432
  // verify required parameter 'chainName' is not null or undefined
9432
9433
  assertParamExists$2('listCollections', 'chainName', chainName);
9433
9434
  const localVarPath = `/v1/chains/{chain_name}/collections`
@@ -9444,6 +9445,9 @@ const CollectionsApiAxiosParamCreator = function (configuration) {
9444
9445
  if (contractAddress) {
9445
9446
  localVarQueryParameter['contract_address'] = contractAddress;
9446
9447
  }
9448
+ if (verificationStatus) {
9449
+ localVarQueryParameter['verification_status'] = verificationStatus;
9450
+ }
9447
9451
  if (fromUpdatedAt !== undefined) {
9448
9452
  localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
9449
9453
  fromUpdatedAt.toISOString() :
@@ -9573,14 +9577,15 @@ const CollectionsApiFp = function (configuration) {
9573
9577
  * @summary List all collections
9574
9578
  * @param {string} chainName The name of chain
9575
9579
  * @param {Array<string>} [contractAddress] List of contract addresses to filter by
9580
+ * @param {Array<AssetVerificationStatus>} [verificationStatus] List of verification status to filter by
9576
9581
  * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
9577
9582
  * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
9578
9583
  * @param {number} [pageSize] Maximum number of items to return
9579
9584
  * @param {*} [options] Override http request option.
9580
9585
  * @throws {RequiredError}
9581
9586
  */
9582
- async listCollections(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options) {
9583
- const localVarAxiosArgs = await localVarAxiosParamCreator.listCollections(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options);
9587
+ async listCollections(chainName, contractAddress, verificationStatus, fromUpdatedAt, pageCursor, pageSize, options) {
9588
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listCollections(chainName, contractAddress, verificationStatus, fromUpdatedAt, pageCursor, pageSize, options);
9584
9589
  return createRequestFunction$2(localVarAxiosArgs, globalAxios$1, BASE_PATH$2, configuration);
9585
9590
  },
9586
9591
  /**
@@ -9637,7 +9642,7 @@ const CollectionsApiFactory = function (configuration, basePath, axios) {
9637
9642
  * @throws {RequiredError}
9638
9643
  */
9639
9644
  listCollections(requestParameters, options) {
9640
- return localVarFp.listCollections(requestParameters.chainName, requestParameters.contractAddress, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
9645
+ return localVarFp.listCollections(requestParameters.chainName, requestParameters.contractAddress, requestParameters.verificationStatus, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
9641
9646
  },
9642
9647
  /**
9643
9648
  * List collections by NFT owner account address
@@ -9688,7 +9693,7 @@ let CollectionsApi$2 = class CollectionsApi extends BaseAPI$2 {
9688
9693
  * @memberof CollectionsApi
9689
9694
  */
9690
9695
  listCollections(requestParameters, options) {
9691
- return CollectionsApiFp(this.configuration).listCollections(requestParameters.chainName, requestParameters.contractAddress, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
9696
+ 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));
9692
9697
  }
9693
9698
  /**
9694
9699
  * List collections by NFT owner account address
@@ -11894,63 +11899,6 @@ const PassportApiAxiosParamCreator = function (configuration) {
11894
11899
  options: localVarRequestOptions,
11895
11900
  };
11896
11901
  },
11897
- /**
11898
- * Get transaction metadata for a given encoded transaction
11899
- * @summary Get transaction metadata
11900
- * @param {string} chainName
11901
- * @param {string} contractAddress The address of the contract intended for interaction with this transaction
11902
- * @param {string} methodId The method ID of the contract intended for interaction with this transaction
11903
- * @param {string} transactionId ID of the given transaction to be decoded
11904
- * @param {string} transactionData Encoded transaction data
11905
- * @param {*} [options] Override http request option.
11906
- * @deprecated
11907
- * @throws {RequiredError}
11908
- */
11909
- getTransactionMetadataDeprecated: async (chainName, contractAddress, methodId, transactionId, transactionData, options = {}) => {
11910
- // verify required parameter 'chainName' is not null or undefined
11911
- assertParamExists$2('getTransactionMetadataDeprecated', 'chainName', chainName);
11912
- // verify required parameter 'contractAddress' is not null or undefined
11913
- assertParamExists$2('getTransactionMetadataDeprecated', 'contractAddress', contractAddress);
11914
- // verify required parameter 'methodId' is not null or undefined
11915
- assertParamExists$2('getTransactionMetadataDeprecated', 'methodId', methodId);
11916
- // verify required parameter 'transactionId' is not null or undefined
11917
- assertParamExists$2('getTransactionMetadataDeprecated', 'transactionId', transactionId);
11918
- // verify required parameter 'transactionData' is not null or undefined
11919
- assertParamExists$2('getTransactionMetadataDeprecated', 'transactionData', transactionData);
11920
- const localVarPath = `/v1/chains/{chain_name}/passport/transaction-metadata`
11921
- .replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
11922
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
11923
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$2);
11924
- let baseOptions;
11925
- if (configuration) {
11926
- baseOptions = configuration.baseOptions;
11927
- }
11928
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
11929
- const localVarHeaderParameter = {};
11930
- const localVarQueryParameter = {};
11931
- // authentication BearerAuth required
11932
- // http bearer authentication required
11933
- await setBearerAuthToObject$1(localVarHeaderParameter, configuration);
11934
- if (contractAddress !== undefined) {
11935
- localVarQueryParameter['contract_address'] = contractAddress;
11936
- }
11937
- if (methodId !== undefined) {
11938
- localVarQueryParameter['method_id'] = methodId;
11939
- }
11940
- if (transactionId !== undefined) {
11941
- localVarQueryParameter['transaction_id'] = transactionId;
11942
- }
11943
- if (transactionData !== undefined) {
11944
- localVarQueryParameter['transaction_data'] = transactionData;
11945
- }
11946
- setSearchParams$2(localVarUrlObj, localVarQueryParameter);
11947
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11948
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
11949
- return {
11950
- url: toPathString$2(localVarUrlObj),
11951
- options: localVarRequestOptions,
11952
- };
11953
- },
11954
11902
  };
11955
11903
  };
11956
11904
  /**
@@ -12033,22 +11981,6 @@ const PassportApiFp = function (configuration) {
12033
11981
  const localVarAxiosArgs = await localVarAxiosParamCreator.getTransactionMetadata(chainName, getTransactionMetadataRequest, options);
12034
11982
  return createRequestFunction$2(localVarAxiosArgs, globalAxios$1, BASE_PATH$2, configuration);
12035
11983
  },
12036
- /**
12037
- * Get transaction metadata for a given encoded transaction
12038
- * @summary Get transaction metadata
12039
- * @param {string} chainName
12040
- * @param {string} contractAddress The address of the contract intended for interaction with this transaction
12041
- * @param {string} methodId The method ID of the contract intended for interaction with this transaction
12042
- * @param {string} transactionId ID of the given transaction to be decoded
12043
- * @param {string} transactionData Encoded transaction data
12044
- * @param {*} [options] Override http request option.
12045
- * @deprecated
12046
- * @throws {RequiredError}
12047
- */
12048
- async getTransactionMetadataDeprecated(chainName, contractAddress, methodId, transactionId, transactionData, options) {
12049
- const localVarAxiosArgs = await localVarAxiosParamCreator.getTransactionMetadataDeprecated(chainName, contractAddress, methodId, transactionId, transactionData, options);
12050
- return createRequestFunction$2(localVarAxiosArgs, globalAxios$1, BASE_PATH$2, configuration);
12051
- },
12052
11984
  };
12053
11985
  };
12054
11986
  /**
@@ -12121,17 +12053,6 @@ const PassportApiFactory = function (configuration, basePath, axios) {
12121
12053
  getTransactionMetadata(requestParameters, options) {
12122
12054
  return localVarFp.getTransactionMetadata(requestParameters.chainName, requestParameters.getTransactionMetadataRequest, options).then((request) => request(axios, basePath));
12123
12055
  },
12124
- /**
12125
- * Get transaction metadata for a given encoded transaction
12126
- * @summary Get transaction metadata
12127
- * @param {PassportApiGetTransactionMetadataDeprecatedRequest} requestParameters Request parameters.
12128
- * @param {*} [options] Override http request option.
12129
- * @deprecated
12130
- * @throws {RequiredError}
12131
- */
12132
- getTransactionMetadataDeprecated(requestParameters, options) {
12133
- return localVarFp.getTransactionMetadataDeprecated(requestParameters.chainName, requestParameters.contractAddress, requestParameters.methodId, requestParameters.transactionId, requestParameters.transactionData, options).then((request) => request(axios, basePath));
12134
- },
12135
12056
  };
12136
12057
  };
12137
12058
  /**
@@ -12210,18 +12131,6 @@ class PassportApi extends BaseAPI$2 {
12210
12131
  getTransactionMetadata(requestParameters, options) {
12211
12132
  return PassportApiFp(this.configuration).getTransactionMetadata(requestParameters.chainName, requestParameters.getTransactionMetadataRequest, options).then((request) => request(this.axios, this.basePath));
12212
12133
  }
12213
- /**
12214
- * Get transaction metadata for a given encoded transaction
12215
- * @summary Get transaction metadata
12216
- * @param {PassportApiGetTransactionMetadataDeprecatedRequest} requestParameters Request parameters.
12217
- * @param {*} [options] Override http request option.
12218
- * @deprecated
12219
- * @throws {RequiredError}
12220
- * @memberof PassportApi
12221
- */
12222
- getTransactionMetadataDeprecated(requestParameters, options) {
12223
- return PassportApiFp(this.configuration).getTransactionMetadataDeprecated(requestParameters.chainName, requestParameters.contractAddress, requestParameters.methodId, requestParameters.transactionId, requestParameters.transactionData, options).then((request) => request(this.axios, this.basePath));
12224
- }
12225
12134
  }
12226
12135
 
12227
12136
  /* tslint:disable */
@@ -12281,12 +12190,13 @@ const TokensApiAxiosParamCreator = function (configuration) {
12281
12190
  * @summary List ERC20 tokens
12282
12191
  * @param {string} chainName The name of chain
12283
12192
  * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
12193
+ * @param {Array<AssetVerificationStatus>} [verificationStatus] List of verification status to filter by
12284
12194
  * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
12285
12195
  * @param {number} [pageSize] Maximum number of items to return
12286
12196
  * @param {*} [options] Override http request option.
12287
12197
  * @throws {RequiredError}
12288
12198
  */
12289
- listERC20Tokens: async (chainName, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
12199
+ listERC20Tokens: async (chainName, fromUpdatedAt, verificationStatus, pageCursor, pageSize, options = {}) => {
12290
12200
  // verify required parameter 'chainName' is not null or undefined
12291
12201
  assertParamExists$2('listERC20Tokens', 'chainName', chainName);
12292
12202
  const localVarPath = `/v1/chains/{chain_name}/tokens`
@@ -12305,6 +12215,9 @@ const TokensApiAxiosParamCreator = function (configuration) {
12305
12215
  fromUpdatedAt.toISOString() :
12306
12216
  fromUpdatedAt;
12307
12217
  }
12218
+ if (verificationStatus) {
12219
+ localVarQueryParameter['verification_status'] = verificationStatus;
12220
+ }
12308
12221
  if (pageCursor !== undefined) {
12309
12222
  localVarQueryParameter['page_cursor'] = pageCursor;
12310
12223
  }
@@ -12345,13 +12258,14 @@ const TokensApiFp = function (configuration) {
12345
12258
  * @summary List ERC20 tokens
12346
12259
  * @param {string} chainName The name of chain
12347
12260
  * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
12261
+ * @param {Array<AssetVerificationStatus>} [verificationStatus] List of verification status to filter by
12348
12262
  * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
12349
12263
  * @param {number} [pageSize] Maximum number of items to return
12350
12264
  * @param {*} [options] Override http request option.
12351
12265
  * @throws {RequiredError}
12352
12266
  */
12353
- async listERC20Tokens(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
12354
- const localVarAxiosArgs = await localVarAxiosParamCreator.listERC20Tokens(chainName, fromUpdatedAt, pageCursor, pageSize, options);
12267
+ async listERC20Tokens(chainName, fromUpdatedAt, verificationStatus, pageCursor, pageSize, options) {
12268
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listERC20Tokens(chainName, fromUpdatedAt, verificationStatus, pageCursor, pageSize, options);
12355
12269
  return createRequestFunction$2(localVarAxiosArgs, globalAxios$1, BASE_PATH$2, configuration);
12356
12270
  },
12357
12271
  };
@@ -12381,7 +12295,7 @@ const TokensApiFactory = function (configuration, basePath, axios) {
12381
12295
  * @throws {RequiredError}
12382
12296
  */
12383
12297
  listERC20Tokens(requestParameters, options) {
12384
- return localVarFp.listERC20Tokens(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
12298
+ return localVarFp.listERC20Tokens(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.verificationStatus, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
12385
12299
  },
12386
12300
  };
12387
12301
  };
@@ -12412,7 +12326,7 @@ let TokensApi$2 = class TokensApi extends BaseAPI$2 {
12412
12326
  * @memberof TokensApi
12413
12327
  */
12414
12328
  listERC20Tokens(requestParameters, options) {
12415
- return TokensApiFp(this.configuration).listERC20Tokens(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
12329
+ return TokensApiFp(this.configuration).listERC20Tokens(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.verificationStatus, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
12416
12330
  }
12417
12331
  };
12418
12332
 
@@ -12572,6 +12486,23 @@ const APIError404AllOfCodeEnum$1 = {
12572
12486
  ResourceNotFound: 'RESOURCE_NOT_FOUND'
12573
12487
  };
12574
12488
 
12489
+ /* tslint:disable */
12490
+ /* eslint-disable */
12491
+ /**
12492
+ * Immutable zkEVM API
12493
+ * Immutable Multi Rollup API
12494
+ *
12495
+ * The version of the OpenAPI document: 1.0.0
12496
+ * Contact: support@immutable.com
12497
+ *
12498
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12499
+ * https://openapi-generator.tech
12500
+ * Do not edit the class manually.
12501
+ */
12502
+ const APIError409AllOfCodeEnum = {
12503
+ ConflictError: 'CONFLICT_ERROR'
12504
+ };
12505
+
12575
12506
  /* tslint:disable */
12576
12507
  /* eslint-disable */
12577
12508
  /**
@@ -12667,6 +12598,32 @@ const ActivityType$1 = {
12667
12598
  Withdrawal: 'withdrawal'
12668
12599
  };
12669
12600
 
12601
+ /* tslint:disable */
12602
+ /* eslint-disable */
12603
+ /**
12604
+ * Immutable zkEVM API
12605
+ * Immutable Multi Rollup API
12606
+ *
12607
+ * The version of the OpenAPI document: 1.0.0
12608
+ * Contact: support@immutable.com
12609
+ *
12610
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12611
+ * https://openapi-generator.tech
12612
+ * Do not edit the class manually.
12613
+ */
12614
+ /**
12615
+ * The verification status for a given contract
12616
+ * @export
12617
+ * @enum {string}
12618
+ */
12619
+ const AssetVerificationStatus = {
12620
+ Pending: 'pending',
12621
+ Verified: 'verified',
12622
+ Unverified: 'unverified',
12623
+ Spam: 'spam',
12624
+ Inactive: 'inactive'
12625
+ };
12626
+
12670
12627
  /* tslint:disable */
12671
12628
  /* eslint-disable */
12672
12629
  /**
@@ -13064,6 +13021,92 @@ const SaleFeeTypeEnum$1 = {
13064
13021
  Royalty: 'ROYALTY'
13065
13022
  };
13066
13023
 
13024
+ /* tslint:disable */
13025
+ /* eslint-disable */
13026
+ /**
13027
+ * Immutable zkEVM API
13028
+ * Immutable Multi Rollup API
13029
+ *
13030
+ * The version of the OpenAPI document: 1.0.0
13031
+ * Contact: support@immutable.com
13032
+ *
13033
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
13034
+ * https://openapi-generator.tech
13035
+ * Do not edit the class manually.
13036
+ */
13037
+ const SeaportERC20ItemTypeEnum = {
13038
+ Erc20: 'ERC20'
13039
+ };
13040
+
13041
+ /* tslint:disable */
13042
+ /* eslint-disable */
13043
+ /**
13044
+ * Immutable zkEVM API
13045
+ * Immutable Multi Rollup API
13046
+ *
13047
+ * The version of the OpenAPI document: 1.0.0
13048
+ * Contact: support@immutable.com
13049
+ *
13050
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
13051
+ * https://openapi-generator.tech
13052
+ * Do not edit the class manually.
13053
+ */
13054
+ const SeaportERC721ItemTypeEnum = {
13055
+ Erc721: 'ERC721'
13056
+ };
13057
+
13058
+ /* tslint:disable */
13059
+ /* eslint-disable */
13060
+ /**
13061
+ * Immutable zkEVM API
13062
+ * Immutable Multi Rollup API
13063
+ *
13064
+ * The version of the OpenAPI document: 1.0.0
13065
+ * Contact: support@immutable.com
13066
+ *
13067
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
13068
+ * https://openapi-generator.tech
13069
+ * Do not edit the class manually.
13070
+ */
13071
+ const SeaportFeeTypeEnum = {
13072
+ Erc20: 'ERC20',
13073
+ Native: 'NATIVE'
13074
+ };
13075
+
13076
+ /* tslint:disable */
13077
+ /* eslint-disable */
13078
+ /**
13079
+ * Immutable zkEVM API
13080
+ * Immutable Multi Rollup API
13081
+ *
13082
+ * The version of the OpenAPI document: 1.0.0
13083
+ * Contact: support@immutable.com
13084
+ *
13085
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
13086
+ * https://openapi-generator.tech
13087
+ * Do not edit the class manually.
13088
+ */
13089
+ const SeaportFulfillAvailableAdvancedOrdersMetadataTransactionTypeEnum = {
13090
+ SeaportFulfillAvailableAdvancedOrders: 'SEAPORT_FULFILL_AVAILABLE_ADVANCED_ORDERS'
13091
+ };
13092
+
13093
+ /* tslint:disable */
13094
+ /* eslint-disable */
13095
+ /**
13096
+ * Immutable zkEVM API
13097
+ * Immutable Multi Rollup API
13098
+ *
13099
+ * The version of the OpenAPI document: 1.0.0
13100
+ * Contact: support@immutable.com
13101
+ *
13102
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
13103
+ * https://openapi-generator.tech
13104
+ * Do not edit the class manually.
13105
+ */
13106
+ const SeaportNativeItemTypeEnum = {
13107
+ Native: 'NATIVE'
13108
+ };
13109
+
13067
13110
  /* tslint:disable */
13068
13111
  /* eslint-disable */
13069
13112
  /**
@@ -13123,6 +13166,7 @@ var index$1 = /*#__PURE__*/Object.freeze({
13123
13166
  APIError401AllOfCodeEnum: APIError401AllOfCodeEnum$1,
13124
13167
  APIError403AllOfCodeEnum: APIError403AllOfCodeEnum$1,
13125
13168
  APIError404AllOfCodeEnum: APIError404AllOfCodeEnum$1,
13169
+ APIError409AllOfCodeEnum: APIError409AllOfCodeEnum,
13126
13170
  APIError429AllOfCodeEnum: APIError429AllOfCodeEnum$1,
13127
13171
  APIError500AllOfCodeEnum: APIError500AllOfCodeEnum$1,
13128
13172
  APIError501AllOfCodeEnum: APIError501AllOfCodeEnum$1,
@@ -13132,6 +13176,7 @@ var index$1 = /*#__PURE__*/Object.freeze({
13132
13176
  ActivitiesApiFactory: ActivitiesApiFactory,
13133
13177
  ActivitiesApiFp: ActivitiesApiFp,
13134
13178
  ActivityType: ActivityType$1,
13179
+ AssetVerificationStatus: AssetVerificationStatus,
13135
13180
  CancelledOrderStatusCancellationTypeEnum: CancelledOrderStatusCancellationTypeEnum,
13136
13181
  CancelledOrderStatusNameEnum: CancelledOrderStatusNameEnum,
13137
13182
  ChainsApi: ChainsApi,
@@ -13188,6 +13233,11 @@ var index$1 = /*#__PURE__*/Object.freeze({
13188
13233
  PendingOrderStatusNameEnum: PendingOrderStatusNameEnum,
13189
13234
  ProtocolDataOrderTypeEnum: ProtocolDataOrderTypeEnum,
13190
13235
  SaleFeeTypeEnum: SaleFeeTypeEnum$1,
13236
+ SeaportERC20ItemTypeEnum: SeaportERC20ItemTypeEnum,
13237
+ SeaportERC721ItemTypeEnum: SeaportERC721ItemTypeEnum,
13238
+ SeaportFeeTypeEnum: SeaportFeeTypeEnum,
13239
+ SeaportFulfillAvailableAdvancedOrdersMetadataTransactionTypeEnum: SeaportFulfillAvailableAdvancedOrdersMetadataTransactionTypeEnum,
13240
+ SeaportNativeItemTypeEnum: SeaportNativeItemTypeEnum,
13191
13241
  TokenContractType: TokenContractType$1,
13192
13242
  TokensApi: TokensApi$2,
13193
13243
  TokensApiAxiosParamCreator: TokensApiAxiosParamCreator,
@@ -13710,7 +13760,7 @@ class MultiRollupApiClients {
13710
13760
  }
13711
13761
 
13712
13762
  // eslint-disable-next-line @typescript-eslint/naming-convention
13713
- const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.26.2-alpha.2' };
13763
+ const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.26.3' };
13714
13764
  const createConfig$1 = ({ basePath, headers, }) => {
13715
13765
  if (!basePath.trim()) {
13716
13766
  throw Error('basePath can not be empty');
@@ -13782,7 +13832,7 @@ class APIError extends Error {
13782
13832
 
13783
13833
  /* eslint-disable implicit-arrow-linebreak */
13784
13834
  const defaultHeaders$1 = {
13785
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.26.2-alpha.2',
13835
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.26.3',
13786
13836
  };
13787
13837
  /**
13788
13838
  * createAPIConfiguration to create a custom Configuration
@@ -14256,7 +14306,7 @@ var blockchain_data = /*#__PURE__*/Object.freeze({
14256
14306
  /* eslint-disable @typescript-eslint/naming-convention */
14257
14307
  class ApiConfiguration extends index$2.Configuration {
14258
14308
  }
14259
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.26.2-alpha.2' };
14309
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.26.3' };
14260
14310
  /**
14261
14311
  * @dev use createImmutableXConfiguration instead
14262
14312
  */
@@ -14295,7 +14345,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
14295
14345
  chainID,
14296
14346
  coreContractAddress,
14297
14347
  registrationContractAddress,
14298
- sdkVersion: 'ts-immutable-sdk-1.26.2-alpha.2',
14348
+ sdkVersion: 'ts-immutable-sdk-1.26.3',
14299
14349
  baseConfig,
14300
14350
  });
14301
14351
  const production = ({ baseConfig }) => createImmutableXConfiguration({
@@ -26780,10 +26830,17 @@ class Passport {
26780
26830
  catch (err) {
26781
26831
  logger$f.warn('Failed to logout from confirmation screen', err);
26782
26832
  }
26783
- await Promise.allSettled([
26784
- this.authManager.logout(),
26785
- this.magicAdapter.logout(),
26786
- ]);
26833
+ if (this.config.oidcConfiguration.logoutMode === 'silent') {
26834
+ await Promise.allSettled([
26835
+ this.authManager.logout(),
26836
+ this.magicAdapter.logout(),
26837
+ ]);
26838
+ }
26839
+ else {
26840
+ // We need to ensure that the Magic wallet is logged out BEFORE redirecting
26841
+ await this.magicAdapter.logout();
26842
+ await this.authManager.logout();
26843
+ }
26787
26844
  this.passportEventEmitter.emit(PassportEvents.LOGGED_OUT);
26788
26845
  }
26789
26846
  /**
@@ -45686,7 +45743,7 @@ const flattenProperties = (properties) => {
45686
45743
  };
45687
45744
 
45688
45745
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
45689
- const SDK_VERSION = '1.26.2-alpha.2';
45746
+ const SDK_VERSION = '1.26.3';
45690
45747
  const getReferrer = () => {
45691
45748
  if (isNode()) {
45692
45749
  return '';
@@ -50881,7 +50938,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
50881
50938
  maxPriorityFeePerGas: BigNumber$1.from(10e9),
50882
50939
  };
50883
50940
 
50884
- const SDK_VERSION_MARKER = '1.26.2-alpha.2';
50941
+ const SDK_VERSION_MARKER = '1.26.3';
50885
50942
  // This SDK version is replaced by the `yarn build` command ran on the root level
50886
50943
  const globalPackageVersion = () => SDK_VERSION_MARKER;
50887
50944
 
package/dist/orderbook.js CHANGED
@@ -132,7 +132,7 @@ const flattenProperties = (properties) => {
132
132
  };
133
133
 
134
134
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
135
- const SDK_VERSION = '1.26.2-alpha.2';
135
+ const SDK_VERSION = '1.26.3';
136
136
  const getReferrer = () => {
137
137
  if (isNode()) {
138
138
  return '';