@imtbl/sdk 1.21.0 → 1.21.2-alpha

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.
Files changed (39) hide show
  1. package/dist/blockchain_data.d.ts +72 -22
  2. package/dist/blockchain_data.js +276 -101
  3. package/dist/browser/checkout/{BridgeWidget-48ef95fb.js → BridgeWidget-050bb010.js} +1 -1
  4. package/dist/browser/checkout/{HorizontalMenu-actual-1b0aa351.js → HorizontalMenu-actual-254df9f7.js} +1 -1
  5. package/dist/browser/checkout/{OnRampWidget-1c87f5ac.js → OnRampWidget-84f16f28.js} +1 -1
  6. package/dist/browser/checkout/{SaleWidget-51e77b6f.js → SaleWidget-b493918f.js} +2 -2
  7. package/dist/browser/checkout/{SpendingCapHero-43d4d6a1.js → SpendingCapHero-c21b087f.js} +1 -1
  8. package/dist/browser/checkout/{SwapWidget-3040f466.js → SwapWidget-9190ea19.js} +1 -1
  9. package/dist/browser/checkout/{TopUpView-9237bc6c.js → TopUpView-5fed36e0.js} +1 -1
  10. package/dist/browser/checkout/{WalletWidget-b5e4f4d7.js → WalletWidget-ce8ba9a4.js} +1 -1
  11. package/dist/browser/checkout/{auto-track-dbd0e9c6.js → auto-track-d773ecc1.js} +1 -1
  12. package/dist/browser/checkout/{balance-3b1416a3.js → balance-faa2470f.js} +1 -1
  13. package/dist/browser/checkout/{index-d80910d5.js → index-43c6ad17.js} +1 -1
  14. package/dist/browser/checkout/index-46c773de.js +1 -0
  15. package/dist/browser/checkout/{index-383a69c3.js → index-4b5a276c.js} +1 -1
  16. package/dist/browser/checkout/{index-ebf766fc.js → index-70723ad3.js} +1 -1
  17. package/dist/browser/checkout/{index-f5dd3066.js → index-8d9a8e86.js} +1 -1
  18. package/dist/browser/checkout/{index-67abd982.js → index-a247827a.js} +3 -3
  19. package/dist/browser/checkout/{index-a4b63381.js → index-a45f92e4.js} +1 -1
  20. package/dist/browser/checkout/{index-8107ef81.js → index-a6bbe105.js} +1 -1
  21. package/dist/browser/checkout/{index.umd-b03c715d.js → index.umd-26384df2.js} +1 -1
  22. package/dist/browser/checkout/{retry-da82ba74.js → retry-5c1764e1.js} +1 -1
  23. package/dist/browser/checkout/sdk.js +4 -4
  24. package/dist/browser/checkout/widgets-esm.js +1 -1
  25. package/dist/browser/checkout/widgets.js +5 -5
  26. package/dist/checkout.d.ts +2 -0
  27. package/dist/checkout.js +278 -103
  28. package/dist/config.js +1 -1
  29. package/dist/index.browser.js +11 -28
  30. package/dist/index.browser.js.map +1 -1
  31. package/dist/index.cjs +286 -110
  32. package/dist/index.d.ts +83 -22
  33. package/dist/index.js +286 -110
  34. package/dist/orderbook.js +1 -1
  35. package/dist/passport.js +455 -78
  36. package/dist/x.d.ts +6 -1
  37. package/dist/x.js +5 -4
  38. package/package.json +1 -2
  39. package/dist/browser/checkout/index-a81361a5.js +0 -1
package/dist/index.cjs CHANGED
@@ -19,7 +19,6 @@ var jwt_decode = require('jwt-decode');
19
19
  var crypto = require('crypto');
20
20
  var magicSdk = require('magic-sdk');
21
21
  var oidc = require('@magic-ext/oidc');
22
- var coreSdk = require('@imtbl/core-sdk');
23
22
  var providers = require('@ethersproject/providers');
24
23
  var events = require('events');
25
24
  var abi = require('@0xsequence/abi');
@@ -181,7 +180,7 @@ const flattenProperties$1 = (properties) => {
181
180
  };
182
181
 
183
182
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
184
- const SDK_VERSION$1 = '1.21.0';
183
+ const SDK_VERSION$1 = '1.21.2-alpha';
185
184
  const getReferrer$1 = () => {
186
185
  if (isNode$1()) {
187
186
  return '';
@@ -9081,12 +9080,13 @@ const ActivitiesApiAxiosParamCreator = function (configuration) {
9081
9080
  * @param {string} fromUpdatedAt From indexed at including given date
9082
9081
  * @param {string} [toUpdatedAt] To indexed at including given date
9083
9082
  * @param {string} [contractAddress] The contract address of the collection
9083
+ * @param {ActivityType} [activityType] The activity type
9084
9084
  * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
9085
9085
  * @param {number} [pageSize] Maximum number of items to return
9086
9086
  * @param {*} [options] Override http request option.
9087
9087
  * @throws {RequiredError}
9088
9088
  */
9089
- listActivityHistory: async (chainName, fromUpdatedAt, toUpdatedAt, contractAddress, pageCursor, pageSize, options = {}) => {
9089
+ listActivityHistory: async (chainName, fromUpdatedAt, toUpdatedAt, contractAddress, activityType, pageCursor, pageSize, options = {}) => {
9090
9090
  // verify required parameter 'chainName' is not null or undefined
9091
9091
  assertParamExists$2('listActivityHistory', 'chainName', chainName);
9092
9092
  // verify required parameter 'fromUpdatedAt' is not null or undefined
@@ -9115,6 +9115,9 @@ const ActivitiesApiAxiosParamCreator = function (configuration) {
9115
9115
  if (contractAddress !== undefined) {
9116
9116
  localVarQueryParameter['contract_address'] = contractAddress;
9117
9117
  }
9118
+ if (activityType !== undefined) {
9119
+ localVarQueryParameter['activity_type'] = activityType;
9120
+ }
9118
9121
  if (pageCursor !== undefined) {
9119
9122
  localVarQueryParameter['page_cursor'] = pageCursor;
9120
9123
  }
@@ -9175,13 +9178,14 @@ const ActivitiesApiFp = function (configuration) {
9175
9178
  * @param {string} fromUpdatedAt From indexed at including given date
9176
9179
  * @param {string} [toUpdatedAt] To indexed at including given date
9177
9180
  * @param {string} [contractAddress] The contract address of the collection
9181
+ * @param {ActivityType} [activityType] The activity type
9178
9182
  * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
9179
9183
  * @param {number} [pageSize] Maximum number of items to return
9180
9184
  * @param {*} [options] Override http request option.
9181
9185
  * @throws {RequiredError}
9182
9186
  */
9183
- async listActivityHistory(chainName, fromUpdatedAt, toUpdatedAt, contractAddress, pageCursor, pageSize, options) {
9184
- const localVarAxiosArgs = await localVarAxiosParamCreator.listActivityHistory(chainName, fromUpdatedAt, toUpdatedAt, contractAddress, pageCursor, pageSize, options);
9187
+ async listActivityHistory(chainName, fromUpdatedAt, toUpdatedAt, contractAddress, activityType, pageCursor, pageSize, options) {
9188
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listActivityHistory(chainName, fromUpdatedAt, toUpdatedAt, contractAddress, activityType, pageCursor, pageSize, options);
9185
9189
  return createRequestFunction$2(localVarAxiosArgs, globalAxios$1, BASE_PATH$2, configuration);
9186
9190
  },
9187
9191
  };
@@ -9221,7 +9225,7 @@ const ActivitiesApiFactory = function (configuration, basePath, axios) {
9221
9225
  * @throws {RequiredError}
9222
9226
  */
9223
9227
  listActivityHistory(requestParameters, options) {
9224
- return localVarFp.listActivityHistory(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.toUpdatedAt, requestParameters.contractAddress, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
9228
+ return localVarFp.listActivityHistory(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.toUpdatedAt, requestParameters.contractAddress, requestParameters.activityType, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
9225
9229
  },
9226
9230
  };
9227
9231
  };
@@ -9263,7 +9267,7 @@ class ActivitiesApi extends BaseAPI$2 {
9263
9267
  * @memberof ActivitiesApi
9264
9268
  */
9265
9269
  listActivityHistory(requestParameters, options) {
9266
- return ActivitiesApiFp(this.configuration).listActivityHistory(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.toUpdatedAt, requestParameters.contractAddress, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
9270
+ return ActivitiesApiFp(this.configuration).listActivityHistory(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.toUpdatedAt, requestParameters.contractAddress, requestParameters.activityType, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
9267
9271
  }
9268
9272
  }
9269
9273
 
@@ -10473,7 +10477,7 @@ const NftsApiAxiosParamCreator = function (configuration) {
10473
10477
  * @summary Mint NFTs
10474
10478
  * @param {string} contractAddress The address of contract
10475
10479
  * @param {string} chainName The name of chain
10476
- * @param {CreateMintRequestRequest} createMintRequestRequest the request body
10480
+ * @param {CreateMintRequestRequest} createMintRequestRequest Create Mint Request Body
10477
10481
  * @param {*} [options] Override http request option.
10478
10482
  * @throws {RequiredError}
10479
10483
  */
@@ -10513,7 +10517,7 @@ const NftsApiAxiosParamCreator = function (configuration) {
10513
10517
  * @summary Get mint request by reference ID
10514
10518
  * @param {string} contractAddress The address of contract
10515
10519
  * @param {string} chainName The name of chain
10516
- * @param {string} referenceId The ID of the mint request
10520
+ * @param {string} referenceId The id of the mint request
10517
10521
  * @param {*} [options] Override http request option.
10518
10522
  * @throws {RequiredError}
10519
10523
  */
@@ -10784,7 +10788,7 @@ const NftsApiFp = function (configuration) {
10784
10788
  * @summary Mint NFTs
10785
10789
  * @param {string} contractAddress The address of contract
10786
10790
  * @param {string} chainName The name of chain
10787
- * @param {CreateMintRequestRequest} createMintRequestRequest the request body
10791
+ * @param {CreateMintRequestRequest} createMintRequestRequest Create Mint Request Body
10788
10792
  * @param {*} [options] Override http request option.
10789
10793
  * @throws {RequiredError}
10790
10794
  */
@@ -10797,7 +10801,7 @@ const NftsApiFp = function (configuration) {
10797
10801
  * @summary Get mint request by reference ID
10798
10802
  * @param {string} contractAddress The address of contract
10799
10803
  * @param {string} chainName The name of chain
10800
- * @param {string} referenceId The ID of the mint request
10804
+ * @param {string} referenceId The id of the mint request
10801
10805
  * @param {*} [options] Override http request option.
10802
10806
  * @throws {RequiredError}
10803
10807
  */
@@ -11238,6 +11242,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
11238
11242
  * @param {string} chainName
11239
11243
  * @param {OrderStatusName} [status] Order status to filter by
11240
11244
  * @param {string} [sellItemContractAddress] Sell item contract address to filter by
11245
+ * @param {ListListingsBuyItemTypeEnum} [buyItemType] Buy item type to filter by
11241
11246
  * @param {string} [buyItemContractAddress] Buy item contract address to filter by
11242
11247
  * @param {string} [accountAddress] The account address of the user who created the listing
11243
11248
  * @param {string} [sellItemMetadataId] The metadata_id of the sell item
@@ -11250,7 +11255,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
11250
11255
  * @param {*} [options] Override http request option.
11251
11256
  * @throws {RequiredError}
11252
11257
  */
11253
- listListings: async (chainName, status, sellItemContractAddress, buyItemContractAddress, accountAddress, sellItemMetadataId, sellItemTokenId, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor, options = {}) => {
11258
+ listListings: async (chainName, status, sellItemContractAddress, buyItemType, buyItemContractAddress, accountAddress, sellItemMetadataId, sellItemTokenId, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor, options = {}) => {
11254
11259
  // verify required parameter 'chainName' is not null or undefined
11255
11260
  assertParamExists$2('listListings', 'chainName', chainName);
11256
11261
  const localVarPath = `/v1/chains/{chain_name}/orders/listings`
@@ -11270,6 +11275,9 @@ const OrdersApiAxiosParamCreator = function (configuration) {
11270
11275
  if (sellItemContractAddress !== undefined) {
11271
11276
  localVarQueryParameter['sell_item_contract_address'] = sellItemContractAddress;
11272
11277
  }
11278
+ if (buyItemType !== undefined) {
11279
+ localVarQueryParameter['buy_item_type'] = buyItemType;
11280
+ }
11273
11281
  if (buyItemContractAddress !== undefined) {
11274
11282
  localVarQueryParameter['buy_item_contract_address'] = buyItemContractAddress;
11275
11283
  }
@@ -11437,6 +11445,7 @@ const OrdersApiFp = function (configuration) {
11437
11445
  * @param {string} chainName
11438
11446
  * @param {OrderStatusName} [status] Order status to filter by
11439
11447
  * @param {string} [sellItemContractAddress] Sell item contract address to filter by
11448
+ * @param {ListListingsBuyItemTypeEnum} [buyItemType] Buy item type to filter by
11440
11449
  * @param {string} [buyItemContractAddress] Buy item contract address to filter by
11441
11450
  * @param {string} [accountAddress] The account address of the user who created the listing
11442
11451
  * @param {string} [sellItemMetadataId] The metadata_id of the sell item
@@ -11449,8 +11458,8 @@ const OrdersApiFp = function (configuration) {
11449
11458
  * @param {*} [options] Override http request option.
11450
11459
  * @throws {RequiredError}
11451
11460
  */
11452
- async listListings(chainName, status, sellItemContractAddress, buyItemContractAddress, accountAddress, sellItemMetadataId, sellItemTokenId, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor, options) {
11453
- const localVarAxiosArgs = await localVarAxiosParamCreator.listListings(chainName, status, sellItemContractAddress, buyItemContractAddress, accountAddress, sellItemMetadataId, sellItemTokenId, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor, options);
11461
+ async listListings(chainName, status, sellItemContractAddress, buyItemType, buyItemContractAddress, accountAddress, sellItemMetadataId, sellItemTokenId, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor, options) {
11462
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listListings(chainName, status, sellItemContractAddress, buyItemType, buyItemContractAddress, accountAddress, sellItemMetadataId, sellItemTokenId, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor, options);
11454
11463
  return createRequestFunction$2(localVarAxiosArgs, globalAxios$1, BASE_PATH$2, configuration);
11455
11464
  },
11456
11465
  /**
@@ -11537,7 +11546,7 @@ const OrdersApiFactory = function (configuration, basePath, axios) {
11537
11546
  * @throws {RequiredError}
11538
11547
  */
11539
11548
  listListings(requestParameters, options) {
11540
- return localVarFp.listListings(requestParameters.chainName, requestParameters.status, requestParameters.sellItemContractAddress, requestParameters.buyItemContractAddress, requestParameters.accountAddress, requestParameters.sellItemMetadataId, requestParameters.sellItemTokenId, requestParameters.fromUpdatedAt, requestParameters.pageSize, requestParameters.sortBy, requestParameters.sortDirection, requestParameters.pageCursor, options).then((request) => request(axios, basePath));
11549
+ return localVarFp.listListings(requestParameters.chainName, requestParameters.status, requestParameters.sellItemContractAddress, requestParameters.buyItemType, requestParameters.buyItemContractAddress, requestParameters.accountAddress, requestParameters.sellItemMetadataId, requestParameters.sellItemTokenId, requestParameters.fromUpdatedAt, requestParameters.pageSize, requestParameters.sortBy, requestParameters.sortDirection, requestParameters.pageCursor, options).then((request) => request(axios, basePath));
11541
11550
  },
11542
11551
  /**
11543
11552
  * List all trades
@@ -11622,7 +11631,7 @@ let OrdersApi$2 = class OrdersApi extends BaseAPI$2 {
11622
11631
  * @memberof OrdersApi
11623
11632
  */
11624
11633
  listListings(requestParameters, options) {
11625
- return OrdersApiFp(this.configuration).listListings(requestParameters.chainName, requestParameters.status, requestParameters.sellItemContractAddress, requestParameters.buyItemContractAddress, requestParameters.accountAddress, requestParameters.sellItemMetadataId, requestParameters.sellItemTokenId, requestParameters.fromUpdatedAt, requestParameters.pageSize, requestParameters.sortBy, requestParameters.sortDirection, requestParameters.pageCursor, options).then((request) => request(this.axios, this.basePath));
11634
+ return OrdersApiFp(this.configuration).listListings(requestParameters.chainName, requestParameters.status, requestParameters.sellItemContractAddress, requestParameters.buyItemType, requestParameters.buyItemContractAddress, requestParameters.accountAddress, requestParameters.sellItemMetadataId, requestParameters.sellItemTokenId, requestParameters.fromUpdatedAt, requestParameters.pageSize, requestParameters.sortBy, requestParameters.sortDirection, requestParameters.pageCursor, options).then((request) => request(this.axios, this.basePath));
11626
11635
  }
11627
11636
  /**
11628
11637
  * List all trades
@@ -11636,6 +11645,13 @@ let OrdersApi$2 = class OrdersApi extends BaseAPI$2 {
11636
11645
  return OrdersApiFp(this.configuration).listTrades(requestParameters.chainName, requestParameters.accountAddress, requestParameters.fromIndexedAt, requestParameters.pageSize, requestParameters.sortBy, requestParameters.sortDirection, requestParameters.pageCursor, options).then((request) => request(this.axios, this.basePath));
11637
11646
  }
11638
11647
  };
11648
+ /**
11649
+ * @export
11650
+ */
11651
+ const ListListingsBuyItemTypeEnum = {
11652
+ Native: 'NATIVE',
11653
+ Erc20: 'ERC20'
11654
+ };
11639
11655
  /**
11640
11656
  * @export
11641
11657
  */
@@ -11690,6 +11706,7 @@ const PassportApiAxiosParamCreator = function (configuration) {
11690
11706
  * @param {string} chainName
11691
11707
  * @param {CreateCounterfactualAddressRequest} createCounterfactualAddressRequest
11692
11708
  * @param {*} [options] Override http request option.
11709
+ * @deprecated
11693
11710
  * @throws {RequiredError}
11694
11711
  */
11695
11712
  createCounterfactualAddress: async (chainName, createCounterfactualAddressRequest, options = {}) => {
@@ -11726,6 +11743,7 @@ const PassportApiAxiosParamCreator = function (configuration) {
11726
11743
  * @summary Deprecated Create a counterfactual address
11727
11744
  * @param {CreateCounterfactualAddressRequestDeprecated} createCounterfactualAddressRequestDeprecated
11728
11745
  * @param {*} [options] Override http request option.
11746
+ * @deprecated
11729
11747
  * @throws {RequiredError}
11730
11748
  */
11731
11749
  createCounterfactualAddressDeprecated: async (createCounterfactualAddressRequestDeprecated, options = {}) => {
@@ -11792,22 +11810,20 @@ const PassportApiAxiosParamCreator = function (configuration) {
11792
11810
  };
11793
11811
  },
11794
11812
  /**
11795
- * Get a contract abi by contract address and method id
11796
- * @summary Get a contract abi
11813
+ * Get all the Ethereum linked addresses for a user based on its userId
11814
+ * @summary Get Ethereum linked addresses for a user
11815
+ * @param {string} userId The user\'s userId
11797
11816
  * @param {string} chainName
11798
- * @param {string} contractAddress contract address
11799
- * @param {string} methodId method id
11800
11817
  * @param {*} [options] Override http request option.
11801
11818
  * @throws {RequiredError}
11802
11819
  */
11803
- getContractAbi: async (chainName, contractAddress, methodId, options = {}) => {
11820
+ getLinkedAddresses: async (userId, chainName, options = {}) => {
11821
+ // verify required parameter 'userId' is not null or undefined
11822
+ assertParamExists$2('getLinkedAddresses', 'userId', userId);
11804
11823
  // verify required parameter 'chainName' is not null or undefined
11805
- assertParamExists$2('getContractAbi', 'chainName', chainName);
11806
- // verify required parameter 'contractAddress' is not null or undefined
11807
- assertParamExists$2('getContractAbi', 'contractAddress', contractAddress);
11808
- // verify required parameter 'methodId' is not null or undefined
11809
- assertParamExists$2('getContractAbi', 'methodId', methodId);
11810
- const localVarPath = `/v1/chains/{chain_name}/passport/transaction-metadata`
11824
+ assertParamExists$2('getLinkedAddresses', 'chainName', chainName);
11825
+ const localVarPath = `/v1/chains/{chain_name}/passport/users/{user_id}/linked-addresses`
11826
+ .replace(`{${"user_id"}}`, encodeURIComponent(String(userId)))
11811
11827
  .replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
11812
11828
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11813
11829
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$2);
@@ -11821,12 +11837,6 @@ const PassportApiAxiosParamCreator = function (configuration) {
11821
11837
  // authentication BearerAuth required
11822
11838
  // http bearer authentication required
11823
11839
  await setBearerAuthToObject$1(localVarHeaderParameter, configuration);
11824
- if (contractAddress !== undefined) {
11825
- localVarQueryParameter['contract_address'] = contractAddress;
11826
- }
11827
- if (methodId !== undefined) {
11828
- localVarQueryParameter['method_id'] = methodId;
11829
- }
11830
11840
  setSearchParams$2(localVarUrlObj, localVarQueryParameter);
11831
11841
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11832
11842
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -11837,19 +11847,51 @@ const PassportApiAxiosParamCreator = function (configuration) {
11837
11847
  },
11838
11848
  /**
11839
11849
  * Get all the Ethereum linked addresses for a user based on its userId
11840
- * @summary Get Ethereum linked addresses for a user
11850
+ * @summary Deprecated Get Ethereum linked addresses for a user
11841
11851
  * @param {string} userId The user\'s userId
11842
- * @param {string} chainName
11843
11852
  * @param {*} [options] Override http request option.
11853
+ * @deprecated
11844
11854
  * @throws {RequiredError}
11845
11855
  */
11846
- getLinkedAddresses: async (userId, chainName, options = {}) => {
11856
+ getLinkedAddressesDeprecated: async (userId, options = {}) => {
11847
11857
  // verify required parameter 'userId' is not null or undefined
11848
- assertParamExists$2('getLinkedAddresses', 'userId', userId);
11858
+ assertParamExists$2('getLinkedAddressesDeprecated', 'userId', userId);
11859
+ const localVarPath = `/passport-mr/v1/users/{userId}/linked-addresses`
11860
+ .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
11861
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11862
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$2);
11863
+ let baseOptions;
11864
+ if (configuration) {
11865
+ baseOptions = configuration.baseOptions;
11866
+ }
11867
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
11868
+ const localVarHeaderParameter = {};
11869
+ const localVarQueryParameter = {};
11870
+ // authentication BearerAuth required
11871
+ // http bearer authentication required
11872
+ await setBearerAuthToObject$1(localVarHeaderParameter, configuration);
11873
+ setSearchParams$2(localVarUrlObj, localVarQueryParameter);
11874
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11875
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
11876
+ return {
11877
+ url: toPathString$2(localVarUrlObj),
11878
+ options: localVarRequestOptions,
11879
+ };
11880
+ },
11881
+ /**
11882
+ * Get transaction metadata for a given encoded transaction
11883
+ * @summary Get transaction metadata
11884
+ * @param {string} chainName
11885
+ * @param {GetTransactionMetadataRequest} getTransactionMetadataRequest
11886
+ * @param {*} [options] Override http request option.
11887
+ * @throws {RequiredError}
11888
+ */
11889
+ getTransactionMetadata: async (chainName, getTransactionMetadataRequest, options = {}) => {
11849
11890
  // verify required parameter 'chainName' is not null or undefined
11850
- assertParamExists$2('getLinkedAddresses', 'chainName', chainName);
11851
- const localVarPath = `/v1/chains/{chain_name}/passport/users/{user_id}/linked-addresses`
11852
- .replace(`{${"user_id"}}`, encodeURIComponent(String(userId)))
11891
+ assertParamExists$2('getTransactionMetadata', 'chainName', chainName);
11892
+ // verify required parameter 'getTransactionMetadataRequest' is not null or undefined
11893
+ assertParamExists$2('getTransactionMetadata', 'getTransactionMetadataRequest', getTransactionMetadataRequest);
11894
+ const localVarPath = `/v1/chains/{chain_name}/passport/transaction-metadata`
11853
11895
  .replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
11854
11896
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11855
11897
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$2);
@@ -11857,32 +11899,47 @@ const PassportApiAxiosParamCreator = function (configuration) {
11857
11899
  if (configuration) {
11858
11900
  baseOptions = configuration.baseOptions;
11859
11901
  }
11860
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
11902
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
11861
11903
  const localVarHeaderParameter = {};
11862
11904
  const localVarQueryParameter = {};
11863
11905
  // authentication BearerAuth required
11864
11906
  // http bearer authentication required
11865
11907
  await setBearerAuthToObject$1(localVarHeaderParameter, configuration);
11908
+ localVarHeaderParameter['Content-Type'] = 'application/json';
11866
11909
  setSearchParams$2(localVarUrlObj, localVarQueryParameter);
11867
11910
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11868
11911
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
11912
+ localVarRequestOptions.data = serializeDataIfNeeded$2(getTransactionMetadataRequest, localVarRequestOptions, configuration);
11869
11913
  return {
11870
11914
  url: toPathString$2(localVarUrlObj),
11871
11915
  options: localVarRequestOptions,
11872
11916
  };
11873
11917
  },
11874
11918
  /**
11875
- * Get all the Ethereum linked addresses for a user based on its userId
11876
- * @summary Deprecated Get Ethereum linked addresses for a user
11877
- * @param {string} userId The user\'s userId
11919
+ * Get transaction metadata for a given encoded transaction
11920
+ * @summary Get transaction metadata
11921
+ * @param {string} chainName
11922
+ * @param {string} contractAddress The address of the contract intended for interaction with this transaction
11923
+ * @param {string} methodId The method ID of the contract intended for interaction with this transaction
11924
+ * @param {string} transactionId ID of the given transaction to be decoded
11925
+ * @param {string} transactionData Encoded transaction data
11878
11926
  * @param {*} [options] Override http request option.
11927
+ * @deprecated
11879
11928
  * @throws {RequiredError}
11880
11929
  */
11881
- getLinkedAddressesDeprecated: async (userId, options = {}) => {
11882
- // verify required parameter 'userId' is not null or undefined
11883
- assertParamExists$2('getLinkedAddressesDeprecated', 'userId', userId);
11884
- const localVarPath = `/passport-mr/v1/users/{userId}/linked-addresses`
11885
- .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
11930
+ getTransactionMetadataDeprecated: async (chainName, contractAddress, methodId, transactionId, transactionData, options = {}) => {
11931
+ // verify required parameter 'chainName' is not null or undefined
11932
+ assertParamExists$2('getTransactionMetadataDeprecated', 'chainName', chainName);
11933
+ // verify required parameter 'contractAddress' is not null or undefined
11934
+ assertParamExists$2('getTransactionMetadataDeprecated', 'contractAddress', contractAddress);
11935
+ // verify required parameter 'methodId' is not null or undefined
11936
+ assertParamExists$2('getTransactionMetadataDeprecated', 'methodId', methodId);
11937
+ // verify required parameter 'transactionId' is not null or undefined
11938
+ assertParamExists$2('getTransactionMetadataDeprecated', 'transactionId', transactionId);
11939
+ // verify required parameter 'transactionData' is not null or undefined
11940
+ assertParamExists$2('getTransactionMetadataDeprecated', 'transactionData', transactionData);
11941
+ const localVarPath = `/v1/chains/{chain_name}/passport/transaction-metadata`
11942
+ .replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
11886
11943
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11887
11944
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$2);
11888
11945
  let baseOptions;
@@ -11895,6 +11952,18 @@ const PassportApiAxiosParamCreator = function (configuration) {
11895
11952
  // authentication BearerAuth required
11896
11953
  // http bearer authentication required
11897
11954
  await setBearerAuthToObject$1(localVarHeaderParameter, configuration);
11955
+ if (contractAddress !== undefined) {
11956
+ localVarQueryParameter['contract_address'] = contractAddress;
11957
+ }
11958
+ if (methodId !== undefined) {
11959
+ localVarQueryParameter['method_id'] = methodId;
11960
+ }
11961
+ if (transactionId !== undefined) {
11962
+ localVarQueryParameter['transaction_id'] = transactionId;
11963
+ }
11964
+ if (transactionData !== undefined) {
11965
+ localVarQueryParameter['transaction_data'] = transactionData;
11966
+ }
11898
11967
  setSearchParams$2(localVarUrlObj, localVarQueryParameter);
11899
11968
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11900
11969
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -11918,6 +11987,7 @@ const PassportApiFp = function (configuration) {
11918
11987
  * @param {string} chainName
11919
11988
  * @param {CreateCounterfactualAddressRequest} createCounterfactualAddressRequest
11920
11989
  * @param {*} [options] Override http request option.
11990
+ * @deprecated
11921
11991
  * @throws {RequiredError}
11922
11992
  */
11923
11993
  async createCounterfactualAddress(chainName, createCounterfactualAddressRequest, options) {
@@ -11929,6 +11999,7 @@ const PassportApiFp = function (configuration) {
11929
11999
  * @summary Deprecated Create a counterfactual address
11930
12000
  * @param {CreateCounterfactualAddressRequestDeprecated} createCounterfactualAddressRequestDeprecated
11931
12001
  * @param {*} [options] Override http request option.
12002
+ * @deprecated
11932
12003
  * @throws {RequiredError}
11933
12004
  */
11934
12005
  async createCounterfactualAddressDeprecated(createCounterfactualAddressRequestDeprecated, options) {
@@ -11947,19 +12018,6 @@ const PassportApiFp = function (configuration) {
11947
12018
  const localVarAxiosArgs = await localVarAxiosParamCreator.createCounterfactualAddressV2(chainName, createCounterfactualAddressRequest, options);
11948
12019
  return createRequestFunction$2(localVarAxiosArgs, globalAxios$1, BASE_PATH$2, configuration);
11949
12020
  },
11950
- /**
11951
- * Get a contract abi by contract address and method id
11952
- * @summary Get a contract abi
11953
- * @param {string} chainName
11954
- * @param {string} contractAddress contract address
11955
- * @param {string} methodId method id
11956
- * @param {*} [options] Override http request option.
11957
- * @throws {RequiredError}
11958
- */
11959
- async getContractAbi(chainName, contractAddress, methodId, options) {
11960
- const localVarAxiosArgs = await localVarAxiosParamCreator.getContractAbi(chainName, contractAddress, methodId, options);
11961
- return createRequestFunction$2(localVarAxiosArgs, globalAxios$1, BASE_PATH$2, configuration);
11962
- },
11963
12021
  /**
11964
12022
  * Get all the Ethereum linked addresses for a user based on its userId
11965
12023
  * @summary Get Ethereum linked addresses for a user
@@ -11977,12 +12035,41 @@ const PassportApiFp = function (configuration) {
11977
12035
  * @summary Deprecated Get Ethereum linked addresses for a user
11978
12036
  * @param {string} userId The user\'s userId
11979
12037
  * @param {*} [options] Override http request option.
12038
+ * @deprecated
11980
12039
  * @throws {RequiredError}
11981
12040
  */
11982
12041
  async getLinkedAddressesDeprecated(userId, options) {
11983
12042
  const localVarAxiosArgs = await localVarAxiosParamCreator.getLinkedAddressesDeprecated(userId, options);
11984
12043
  return createRequestFunction$2(localVarAxiosArgs, globalAxios$1, BASE_PATH$2, configuration);
11985
12044
  },
12045
+ /**
12046
+ * Get transaction metadata for a given encoded transaction
12047
+ * @summary Get transaction metadata
12048
+ * @param {string} chainName
12049
+ * @param {GetTransactionMetadataRequest} getTransactionMetadataRequest
12050
+ * @param {*} [options] Override http request option.
12051
+ * @throws {RequiredError}
12052
+ */
12053
+ async getTransactionMetadata(chainName, getTransactionMetadataRequest, options) {
12054
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getTransactionMetadata(chainName, getTransactionMetadataRequest, options);
12055
+ return createRequestFunction$2(localVarAxiosArgs, globalAxios$1, BASE_PATH$2, configuration);
12056
+ },
12057
+ /**
12058
+ * Get transaction metadata for a given encoded transaction
12059
+ * @summary Get transaction metadata
12060
+ * @param {string} chainName
12061
+ * @param {string} contractAddress The address of the contract intended for interaction with this transaction
12062
+ * @param {string} methodId The method ID of the contract intended for interaction with this transaction
12063
+ * @param {string} transactionId ID of the given transaction to be decoded
12064
+ * @param {string} transactionData Encoded transaction data
12065
+ * @param {*} [options] Override http request option.
12066
+ * @deprecated
12067
+ * @throws {RequiredError}
12068
+ */
12069
+ async getTransactionMetadataDeprecated(chainName, contractAddress, methodId, transactionId, transactionData, options) {
12070
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getTransactionMetadataDeprecated(chainName, contractAddress, methodId, transactionId, transactionData, options);
12071
+ return createRequestFunction$2(localVarAxiosArgs, globalAxios$1, BASE_PATH$2, configuration);
12072
+ },
11986
12073
  };
11987
12074
  };
11988
12075
  /**
@@ -11997,6 +12084,7 @@ const PassportApiFactory = function (configuration, basePath, axios) {
11997
12084
  * @summary Create a counterfactual address
11998
12085
  * @param {PassportApiCreateCounterfactualAddressRequest} requestParameters Request parameters.
11999
12086
  * @param {*} [options] Override http request option.
12087
+ * @deprecated
12000
12088
  * @throws {RequiredError}
12001
12089
  */
12002
12090
  createCounterfactualAddress(requestParameters, options) {
@@ -12007,6 +12095,7 @@ const PassportApiFactory = function (configuration, basePath, axios) {
12007
12095
  * @summary Deprecated Create a counterfactual address
12008
12096
  * @param {PassportApiCreateCounterfactualAddressDeprecatedRequest} requestParameters Request parameters.
12009
12097
  * @param {*} [options] Override http request option.
12098
+ * @deprecated
12010
12099
  * @throws {RequiredError}
12011
12100
  */
12012
12101
  createCounterfactualAddressDeprecated(requestParameters, options) {
@@ -12022,16 +12111,6 @@ const PassportApiFactory = function (configuration, basePath, axios) {
12022
12111
  createCounterfactualAddressV2(requestParameters, options) {
12023
12112
  return localVarFp.createCounterfactualAddressV2(requestParameters.chainName, requestParameters.createCounterfactualAddressRequest, options).then((request) => request(axios, basePath));
12024
12113
  },
12025
- /**
12026
- * Get a contract abi by contract address and method id
12027
- * @summary Get a contract abi
12028
- * @param {PassportApiGetContractAbiRequest} requestParameters Request parameters.
12029
- * @param {*} [options] Override http request option.
12030
- * @throws {RequiredError}
12031
- */
12032
- getContractAbi(requestParameters, options) {
12033
- return localVarFp.getContractAbi(requestParameters.chainName, requestParameters.contractAddress, requestParameters.methodId, options).then((request) => request(axios, basePath));
12034
- },
12035
12114
  /**
12036
12115
  * Get all the Ethereum linked addresses for a user based on its userId
12037
12116
  * @summary Get Ethereum linked addresses for a user
@@ -12047,11 +12126,33 @@ const PassportApiFactory = function (configuration, basePath, axios) {
12047
12126
  * @summary Deprecated Get Ethereum linked addresses for a user
12048
12127
  * @param {PassportApiGetLinkedAddressesDeprecatedRequest} requestParameters Request parameters.
12049
12128
  * @param {*} [options] Override http request option.
12129
+ * @deprecated
12050
12130
  * @throws {RequiredError}
12051
12131
  */
12052
12132
  getLinkedAddressesDeprecated(requestParameters, options) {
12053
12133
  return localVarFp.getLinkedAddressesDeprecated(requestParameters.userId, options).then((request) => request(axios, basePath));
12054
12134
  },
12135
+ /**
12136
+ * Get transaction metadata for a given encoded transaction
12137
+ * @summary Get transaction metadata
12138
+ * @param {PassportApiGetTransactionMetadataRequest} requestParameters Request parameters.
12139
+ * @param {*} [options] Override http request option.
12140
+ * @throws {RequiredError}
12141
+ */
12142
+ getTransactionMetadata(requestParameters, options) {
12143
+ return localVarFp.getTransactionMetadata(requestParameters.chainName, requestParameters.getTransactionMetadataRequest, options).then((request) => request(axios, basePath));
12144
+ },
12145
+ /**
12146
+ * Get transaction metadata for a given encoded transaction
12147
+ * @summary Get transaction metadata
12148
+ * @param {PassportApiGetTransactionMetadataDeprecatedRequest} requestParameters Request parameters.
12149
+ * @param {*} [options] Override http request option.
12150
+ * @deprecated
12151
+ * @throws {RequiredError}
12152
+ */
12153
+ getTransactionMetadataDeprecated(requestParameters, options) {
12154
+ return localVarFp.getTransactionMetadataDeprecated(requestParameters.chainName, requestParameters.contractAddress, requestParameters.methodId, requestParameters.transactionId, requestParameters.transactionData, options).then((request) => request(axios, basePath));
12155
+ },
12055
12156
  };
12056
12157
  };
12057
12158
  /**
@@ -12066,6 +12167,7 @@ class PassportApi extends BaseAPI$2 {
12066
12167
  * @summary Create a counterfactual address
12067
12168
  * @param {PassportApiCreateCounterfactualAddressRequest} requestParameters Request parameters.
12068
12169
  * @param {*} [options] Override http request option.
12170
+ * @deprecated
12069
12171
  * @throws {RequiredError}
12070
12172
  * @memberof PassportApi
12071
12173
  */
@@ -12077,6 +12179,7 @@ class PassportApi extends BaseAPI$2 {
12077
12179
  * @summary Deprecated Create a counterfactual address
12078
12180
  * @param {PassportApiCreateCounterfactualAddressDeprecatedRequest} requestParameters Request parameters.
12079
12181
  * @param {*} [options] Override http request option.
12182
+ * @deprecated
12080
12183
  * @throws {RequiredError}
12081
12184
  * @memberof PassportApi
12082
12185
  */
@@ -12094,17 +12197,6 @@ class PassportApi extends BaseAPI$2 {
12094
12197
  createCounterfactualAddressV2(requestParameters, options) {
12095
12198
  return PassportApiFp(this.configuration).createCounterfactualAddressV2(requestParameters.chainName, requestParameters.createCounterfactualAddressRequest, options).then((request) => request(this.axios, this.basePath));
12096
12199
  }
12097
- /**
12098
- * Get a contract abi by contract address and method id
12099
- * @summary Get a contract abi
12100
- * @param {PassportApiGetContractAbiRequest} requestParameters Request parameters.
12101
- * @param {*} [options] Override http request option.
12102
- * @throws {RequiredError}
12103
- * @memberof PassportApi
12104
- */
12105
- getContractAbi(requestParameters, options) {
12106
- return PassportApiFp(this.configuration).getContractAbi(requestParameters.chainName, requestParameters.contractAddress, requestParameters.methodId, options).then((request) => request(this.axios, this.basePath));
12107
- }
12108
12200
  /**
12109
12201
  * Get all the Ethereum linked addresses for a user based on its userId
12110
12202
  * @summary Get Ethereum linked addresses for a user
@@ -12121,12 +12213,36 @@ class PassportApi extends BaseAPI$2 {
12121
12213
  * @summary Deprecated Get Ethereum linked addresses for a user
12122
12214
  * @param {PassportApiGetLinkedAddressesDeprecatedRequest} requestParameters Request parameters.
12123
12215
  * @param {*} [options] Override http request option.
12216
+ * @deprecated
12124
12217
  * @throws {RequiredError}
12125
12218
  * @memberof PassportApi
12126
12219
  */
12127
12220
  getLinkedAddressesDeprecated(requestParameters, options) {
12128
12221
  return PassportApiFp(this.configuration).getLinkedAddressesDeprecated(requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
12129
12222
  }
12223
+ /**
12224
+ * Get transaction metadata for a given encoded transaction
12225
+ * @summary Get transaction metadata
12226
+ * @param {PassportApiGetTransactionMetadataRequest} requestParameters Request parameters.
12227
+ * @param {*} [options] Override http request option.
12228
+ * @throws {RequiredError}
12229
+ * @memberof PassportApi
12230
+ */
12231
+ getTransactionMetadata(requestParameters, options) {
12232
+ return PassportApiFp(this.configuration).getTransactionMetadata(requestParameters.chainName, requestParameters.getTransactionMetadataRequest, options).then((request) => request(this.axios, this.basePath));
12233
+ }
12234
+ /**
12235
+ * Get transaction metadata for a given encoded transaction
12236
+ * @summary Get transaction metadata
12237
+ * @param {PassportApiGetTransactionMetadataDeprecatedRequest} requestParameters Request parameters.
12238
+ * @param {*} [options] Override http request option.
12239
+ * @deprecated
12240
+ * @throws {RequiredError}
12241
+ * @memberof PassportApi
12242
+ */
12243
+ getTransactionMetadataDeprecated(requestParameters, options) {
12244
+ return PassportApiFp(this.configuration).getTransactionMetadataDeprecated(requestParameters.chainName, requestParameters.contractAddress, requestParameters.methodId, requestParameters.transactionId, requestParameters.transactionData, options).then((request) => request(this.axios, this.basePath));
12245
+ }
12130
12246
  }
12131
12247
 
12132
12248
  /* tslint:disable */
@@ -12633,6 +12749,23 @@ const ERC1155ItemTypeEnum$1 = {
12633
12749
  Erc1155: 'ERC1155'
12634
12750
  };
12635
12751
 
12752
+ /* tslint:disable */
12753
+ /* eslint-disable */
12754
+ /**
12755
+ * Immutable zkEVM API
12756
+ * Immutable Multi Rollup API
12757
+ *
12758
+ * The version of the OpenAPI document: 1.0.0
12759
+ * Contact: support@immutable.com
12760
+ *
12761
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12762
+ * https://openapi-generator.tech
12763
+ * Do not edit the class manually.
12764
+ */
12765
+ const ERC20ApproveMetadataTransactionTypeEnum = {
12766
+ Erc20Approve: 'ERC20_APPROVE'
12767
+ };
12768
+
12636
12769
  /* tslint:disable */
12637
12770
  /* eslint-disable */
12638
12771
  /**
@@ -12663,8 +12796,8 @@ const ERC20ItemTypeEnum$1 = {
12663
12796
  * https://openapi-generator.tech
12664
12797
  * Do not edit the class manually.
12665
12798
  */
12666
- const ERC721ItemTypeEnum$1 = {
12667
- Erc721: 'ERC721'
12799
+ const ERC721ApproveMetadataTransactionTypeEnum = {
12800
+ Erc721Approve: 'ERC721_APPROVE'
12668
12801
  };
12669
12802
 
12670
12803
  /* tslint:disable */
@@ -12680,8 +12813,8 @@ const ERC721ItemTypeEnum$1 = {
12680
12813
  * https://openapi-generator.tech
12681
12814
  * Do not edit the class manually.
12682
12815
  */
12683
- const ExpiredOrderStatusNameEnum = {
12684
- Expired: 'EXPIRED'
12816
+ const ERC721ItemTypeEnum$1 = {
12817
+ Erc721: 'ERC721'
12685
12818
  };
12686
12819
 
12687
12820
  /* tslint:disable */
@@ -12697,8 +12830,8 @@ const ExpiredOrderStatusNameEnum = {
12697
12830
  * https://openapi-generator.tech
12698
12831
  * Do not edit the class manually.
12699
12832
  */
12700
- const FailedOrderCancellationReasonCodeEnum = {
12701
- Filled: 'FILLED'
12833
+ const ExpiredOrderStatusNameEnum = {
12834
+ Expired: 'EXPIRED'
12702
12835
  };
12703
12836
 
12704
12837
  /* tslint:disable */
@@ -12714,11 +12847,8 @@ const FailedOrderCancellationReasonCodeEnum = {
12714
12847
  * https://openapi-generator.tech
12715
12848
  * Do not edit the class manually.
12716
12849
  */
12717
- const FeeTypeEnum = {
12718
- Royalty: 'ROYALTY',
12719
- MakerEcosystem: 'MAKER_ECOSYSTEM',
12720
- TakerEcosystem: 'TAKER_ECOSYSTEM',
12721
- Protocol: 'PROTOCOL'
12850
+ const FailedOrderCancellationReasonCodeEnum = {
12851
+ Filled: 'FILLED'
12722
12852
  };
12723
12853
 
12724
12854
  /* tslint:disable */
@@ -12734,8 +12864,11 @@ const FeeTypeEnum = {
12734
12864
  * https://openapi-generator.tech
12735
12865
  * Do not edit the class manually.
12736
12866
  */
12737
- const FilledOrderStatusNameEnum = {
12738
- Filled: 'FILLED'
12867
+ const FeeTypeEnum = {
12868
+ Royalty: 'ROYALTY',
12869
+ MakerEcosystem: 'MAKER_ECOSYSTEM',
12870
+ TakerEcosystem: 'TAKER_ECOSYSTEM',
12871
+ Protocol: 'PROTOCOL'
12739
12872
  };
12740
12873
 
12741
12874
  /* tslint:disable */
@@ -12751,8 +12884,8 @@ const FilledOrderStatusNameEnum = {
12751
12884
  * https://openapi-generator.tech
12752
12885
  * Do not edit the class manually.
12753
12886
  */
12754
- const GetContractAbiResTransactionTypeEnum = {
12755
- Erc20Approve: 'ERC20_APPROVE'
12887
+ const FilledOrderStatusNameEnum = {
12888
+ Filled: 'FILLED'
12756
12889
  };
12757
12890
 
12758
12891
  /* tslint:disable */
@@ -12815,7 +12948,26 @@ const MintRequestStatus$1 = {
12815
12948
  * @enum {string}
12816
12949
  */
12817
12950
  const NFTContractType$1 = {
12818
- Erc721: 'ERC721'
12951
+ Erc721: 'ERC721',
12952
+ Erc1155: 'ERC1155'
12953
+ };
12954
+
12955
+ /* tslint:disable */
12956
+ /* eslint-disable */
12957
+ /**
12958
+ * Immutable zkEVM API
12959
+ * Immutable Multi Rollup API
12960
+ *
12961
+ * The version of the OpenAPI document: 1.0.0
12962
+ * Contact: support@immutable.com
12963
+ *
12964
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12965
+ * https://openapi-generator.tech
12966
+ * Do not edit the class manually.
12967
+ */
12968
+ const NFTSetApprovalForAllMetadataTransactionTypeEnum = {
12969
+ Erc721SetApprovalForAll: 'ERC721_SET_APPROVAL_FOR_ALL',
12970
+ Erc1155SetApprovalForAll: 'ERC1155_SET_APPROVAL_FOR_ALL'
12819
12971
  };
12820
12972
 
12821
12973
  /* tslint:disable */
@@ -12955,6 +13107,23 @@ const TokenContractType$1 = {
12955
13107
  Erc20: 'ERC20'
12956
13108
  };
12957
13109
 
13110
+ /* tslint:disable */
13111
+ /* eslint-disable */
13112
+ /**
13113
+ * Immutable zkEVM API
13114
+ * Immutable Multi Rollup API
13115
+ *
13116
+ * The version of the OpenAPI document: 1.0.0
13117
+ * Contact: support@immutable.com
13118
+ *
13119
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
13120
+ * https://openapi-generator.tech
13121
+ * Do not edit the class manually.
13122
+ */
13123
+ const UnknownMetadataTransactionTypeEnum = {
13124
+ Unknown: 'UNKNOWN'
13125
+ };
13126
+
12958
13127
  /* tslint:disable */
12959
13128
  /* eslint-disable */
12960
13129
  /**
@@ -12997,14 +13166,16 @@ var index$1 = /*#__PURE__*/Object.freeze({
12997
13166
  CollectionsApiFp: CollectionsApiFp,
12998
13167
  Configuration: Configuration$2,
12999
13168
  ERC1155ItemTypeEnum: ERC1155ItemTypeEnum$1,
13169
+ ERC20ApproveMetadataTransactionTypeEnum: ERC20ApproveMetadataTransactionTypeEnum,
13000
13170
  ERC20ItemTypeEnum: ERC20ItemTypeEnum$1,
13171
+ ERC721ApproveMetadataTransactionTypeEnum: ERC721ApproveMetadataTransactionTypeEnum,
13001
13172
  ERC721ItemTypeEnum: ERC721ItemTypeEnum$1,
13002
13173
  ExpiredOrderStatusNameEnum: ExpiredOrderStatusNameEnum,
13003
13174
  FailedOrderCancellationReasonCodeEnum: FailedOrderCancellationReasonCodeEnum,
13004
13175
  FeeTypeEnum: FeeTypeEnum,
13005
13176
  FilledOrderStatusNameEnum: FilledOrderStatusNameEnum,
13006
- GetContractAbiResTransactionTypeEnum: GetContractAbiResTransactionTypeEnum,
13007
13177
  InactiveOrderStatusNameEnum: InactiveOrderStatusNameEnum,
13178
+ ListListingsBuyItemTypeEnum: ListListingsBuyItemTypeEnum,
13008
13179
  ListListingsSortByEnum: ListListingsSortByEnum,
13009
13180
  ListListingsSortDirectionEnum: ListListingsSortDirectionEnum,
13010
13181
  ListTradesSortByEnum: ListTradesSortByEnum,
@@ -13015,6 +13186,7 @@ var index$1 = /*#__PURE__*/Object.freeze({
13015
13186
  MetadataApiFp: MetadataApiFp,
13016
13187
  MintRequestStatus: MintRequestStatus$1,
13017
13188
  NFTContractType: NFTContractType$1,
13189
+ NFTSetApprovalForAllMetadataTransactionTypeEnum: NFTSetApprovalForAllMetadataTransactionTypeEnum,
13018
13190
  NativeItemTypeEnum: NativeItemTypeEnum$1,
13019
13191
  NftOwnersApi: NftOwnersApi,
13020
13192
  NftOwnersApiAxiosParamCreator: NftOwnersApiAxiosParamCreator,
@@ -13041,7 +13213,8 @@ var index$1 = /*#__PURE__*/Object.freeze({
13041
13213
  TokensApi: TokensApi$2,
13042
13214
  TokensApiAxiosParamCreator: TokensApiAxiosParamCreator,
13043
13215
  TokensApiFactory: TokensApiFactory,
13044
- TokensApiFp: TokensApiFp
13216
+ TokensApiFp: TokensApiFp,
13217
+ UnknownMetadataTransactionTypeEnum: UnknownMetadataTransactionTypeEnum
13045
13218
  });
13046
13219
 
13047
13220
  /* tslint:disable */
@@ -13384,6 +13557,7 @@ var MintRequestStatus;
13384
13557
  var NFTContractType;
13385
13558
  (function (NFTContractType) {
13386
13559
  NFTContractType["Erc721"] = "ERC721";
13560
+ NFTContractType["Erc1155"] = "ERC1155";
13387
13561
  })(NFTContractType || (NFTContractType = {}));
13388
13562
 
13389
13563
  /* tslint:disable */
@@ -13557,7 +13731,7 @@ class MultiRollupApiClients {
13557
13731
  }
13558
13732
 
13559
13733
  // eslint-disable-next-line @typescript-eslint/naming-convention
13560
- const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.21.0' };
13734
+ const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.21.2-alpha' };
13561
13735
  const createConfig$1 = ({ basePath, headers, }) => {
13562
13736
  if (!basePath.trim()) {
13563
13737
  throw Error('basePath can not be empty');
@@ -13629,7 +13803,7 @@ class APIError extends Error {
13629
13803
 
13630
13804
  /* eslint-disable implicit-arrow-linebreak */
13631
13805
  const defaultHeaders$1 = {
13632
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.21.0',
13806
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.21.2-alpha',
13633
13807
  };
13634
13808
  /**
13635
13809
  * createAPIConfiguration to create a custom Configuration
@@ -14103,7 +14277,7 @@ var blockchain_data = /*#__PURE__*/Object.freeze({
14103
14277
  /* eslint-disable @typescript-eslint/naming-convention */
14104
14278
  class ApiConfiguration extends index$2.Configuration {
14105
14279
  }
14106
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.21.0' };
14280
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.21.2-alpha' };
14107
14281
  /**
14108
14282
  * @dev use createImmutableXConfiguration instead
14109
14283
  */
@@ -14142,7 +14316,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
14142
14316
  chainID,
14143
14317
  coreContractAddress,
14144
14318
  registrationContractAddress,
14145
- sdkVersion: 'ts-immutable-sdk-1.21.0',
14319
+ sdkVersion: 'ts-immutable-sdk-1.21.2-alpha',
14146
14320
  baseConfig,
14147
14321
  });
14148
14322
  const production = ({ baseConfig }) => createImmutableXConfiguration({
@@ -24732,8 +24906,8 @@ class MagicAdapter {
24732
24906
  }
24733
24907
 
24734
24908
  const getStarkSigner = async (signer) => withPassportError(async () => {
24735
- const privateKey = await coreSdk.generateLegacyStarkPrivateKey(signer);
24736
- return coreSdk.createStarkSigner(privateKey);
24909
+ const privateKey = await generateLegacyStarkPrivateKey(signer);
24910
+ return createStarkSigner(privateKey);
24737
24911
  }, PassportErrorType.WALLET_CONNECTION_ERROR);
24738
24912
 
24739
24913
  async function exchangeTransfer$1({ user, starkSigner, request, exchangesApi, }) {
@@ -45458,7 +45632,7 @@ const flattenProperties = (properties) => {
45458
45632
  };
45459
45633
 
45460
45634
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
45461
- const SDK_VERSION = '1.21.0';
45635
+ const SDK_VERSION = '1.21.2-alpha';
45462
45636
  const getReferrer = () => {
45463
45637
  if (isNode()) {
45464
45638
  return '';
@@ -50653,7 +50827,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
50653
50827
  maxPriorityFeePerGas: ethers.BigNumber.from(10e9),
50654
50828
  };
50655
50829
 
50656
- const SDK_VERSION_MARKER = '1.21.0';
50830
+ const SDK_VERSION_MARKER = '1.21.2-alpha';
50657
50831
  // This SDK version is replaced by the `yarn build` command ran on the root level
50658
50832
  const globalPackageVersion = () => SDK_VERSION_MARKER;
50659
50833
 
@@ -55892,7 +56066,9 @@ var x = /*#__PURE__*/Object.freeze({
55892
56066
  generateStarkPrivateKey: generateStarkPrivateKey,
55893
56067
  imxClientConfig: imxClientConfig,
55894
56068
  imxClientCreateStarkSigner: createStarkSigner,
55895
- imxClientGenerateLegacyStarkPrivateKey: generateLegacyStarkPrivateKey
56069
+ imxClientGenerateLegacyStarkPrivateKey: generateLegacyStarkPrivateKey,
56070
+ production: production,
56071
+ sandbox: sandbox
55896
56072
  });
55897
56073
 
55898
56074
  exports.blockchainData = blockchain_data;