@imtbl/sdk 1.47.2-alpha → 1.47.3-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.
package/dist/index.cjs CHANGED
@@ -216,7 +216,7 @@ const flattenProperties$1 = (properties) => {
216
216
  };
217
217
 
218
218
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
219
- const SDK_VERSION$1 = '1.47.2-alpha';
219
+ const SDK_VERSION$1 = '1.47.3-alpha';
220
220
  const getFrameParentDomain$1 = () => {
221
221
  if (isNode$1()) {
222
222
  return '';
@@ -14501,7 +14501,7 @@ class MultiRollupApiClients {
14501
14501
  }
14502
14502
 
14503
14503
  // eslint-disable-next-line @typescript-eslint/naming-convention
14504
- const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.47.2-alpha' };
14504
+ const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.47.3-alpha' };
14505
14505
  const createConfig$1 = ({ basePath, headers, }) => {
14506
14506
  if (!basePath.trim()) {
14507
14507
  throw Error('basePath can not be empty');
@@ -14573,7 +14573,7 @@ class APIError extends Error {
14573
14573
 
14574
14574
  /* eslint-disable implicit-arrow-linebreak */
14575
14575
  const defaultHeaders$1 = {
14576
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.47.2-alpha',
14576
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.47.3-alpha',
14577
14577
  };
14578
14578
  /**
14579
14579
  * createAPIConfiguration to create a custom Configuration
@@ -15047,7 +15047,7 @@ var blockchain_data = /*#__PURE__*/Object.freeze({
15047
15047
  /* eslint-disable @typescript-eslint/naming-convention */
15048
15048
  class ApiConfiguration extends index$2.Configuration {
15049
15049
  }
15050
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.47.2-alpha' };
15050
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.47.3-alpha' };
15051
15051
  /**
15052
15052
  * @dev use createImmutableXConfiguration instead
15053
15053
  */
@@ -15088,7 +15088,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
15088
15088
  coreContractAddress,
15089
15089
  registrationContractAddress,
15090
15090
  registrationV4ContractAddress,
15091
- sdkVersion: 'ts-immutable-sdk-1.47.2-alpha',
15091
+ sdkVersion: 'ts-immutable-sdk-1.47.3-alpha',
15092
15092
  baseConfig,
15093
15093
  });
15094
15094
  const production = ({ baseConfig }) => createImmutableXConfiguration({
@@ -33467,12 +33467,12 @@ class Orderbook {
33467
33467
  const prepareListingResponse = await this.seaport.prepareSeaportOrder(makerAddress, listingParams[0].sell, listingParams[0].buy, new Date(), listingParams[0].orderExpiry || new Date(Date.now() + 1000 * 60 * 60 * 24 * 365 * 2));
33468
33468
  return {
33469
33469
  actions: prepareListingResponse.actions,
33470
- completeListings: async (signature) => {
33470
+ completeListings: async (signatures) => {
33471
33471
  const createListingResult = await this.createListing({
33472
33472
  makerFees: listingParams[0].makerFees,
33473
33473
  orderComponents: prepareListingResponse.orderComponents,
33474
33474
  orderHash: prepareListingResponse.orderHash,
33475
- orderSignature: typeof signature === 'string' ? signature : signature[0],
33475
+ orderSignature: signatures[0],
33476
33476
  });
33477
33477
  return {
33478
33478
  result: [{
@@ -33489,10 +33489,12 @@ class Orderbook {
33489
33489
  track('orderbookmr', 'bulkListings', { walletType: 'Passport', makerAddress, listingsCount: listingParams.length });
33490
33490
  // eslint-disable-next-line max-len
33491
33491
  const prepareListingResponses = await Promise.all(listingParams.map((l) => this.seaport.prepareSeaportOrder(makerAddress, l.sell, l.buy, new Date(), l.orderExpiry || new Date(Date.now() + 1000 * 60 * 60 * 24 * 365 * 2))));
33492
+ const pendingApproval = [];
33493
+ const dedupedActions = [];
33492
33494
  return {
33493
33495
  actions: prepareListingResponses.flatMap((r) => {
33494
- const pendingApproval = [];
33495
- const dedupedActions = [];
33496
+ // de-dupe approval transactions to ensure every contract has
33497
+ // a maximum of 1 approval transaction
33496
33498
  r.actions.forEach((action) => {
33497
33499
  if (action.type === ActionType.TRANSACTION) {
33498
33500
  // Assuming only a single item is on offer per listing
@@ -33509,19 +33511,14 @@ class Orderbook {
33509
33511
  return dedupedActions;
33510
33512
  }),
33511
33513
  completeListings: async (signatures) => {
33512
- const createListingsApiResponses = await Promise.all(prepareListingResponses.map(async (prepareListingResponse, i) => {
33514
+ const createListingsApiResponses = await Promise.all(prepareListingResponses.map((prepareListingResponse, i) => {
33513
33515
  const signature = signatures[i];
33514
- try {
33515
- return await this.apiClient.createListing({
33516
- makerFees: listingParams[i].makerFees,
33517
- orderComponents: prepareListingResponse.orderComponents,
33518
- orderHash: prepareListingResponse.orderHash,
33519
- orderSignature: signature,
33520
- });
33521
- }
33522
- catch {
33523
- return undefined;
33524
- }
33516
+ return this.apiClient.createListing({
33517
+ makerFees: listingParams[i].makerFees,
33518
+ orderComponents: prepareListingResponse.orderComponents,
33519
+ orderHash: prepareListingResponse.orderHash,
33520
+ orderSignature: signature,
33521
+ }).catch(() => undefined);
33525
33522
  }));
33526
33523
  return {
33527
33524
  result: createListingsApiResponses.map((apiListingResponse, i) => ({
@@ -52944,7 +52941,7 @@ const flattenProperties = (properties) => {
52944
52941
  };
52945
52942
 
52946
52943
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
52947
- const SDK_VERSION = '1.47.2-alpha';
52944
+ const SDK_VERSION = '1.47.3-alpha';
52948
52945
  const getFrameParentDomain = () => {
52949
52946
  if (isNode()) {
52950
52947
  return '';
@@ -58308,7 +58305,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
58308
58305
  maxPriorityFeePerGas: ethers.BigNumber.from(10e9),
58309
58306
  };
58310
58307
 
58311
- const SDK_VERSION_MARKER = '1.47.2-alpha';
58308
+ const SDK_VERSION_MARKER = '1.47.3-alpha';
58312
58309
  // This SDK version is replaced by the `yarn build` command ran on the root level
58313
58310
  const globalPackageVersion = () => SDK_VERSION_MARKER;
58314
58311
 
package/dist/index.js CHANGED
@@ -1,18 +1,18 @@
1
- export { c as config } from './config-G7gJjF_C.js';
2
- export { b as blockchainData } from './blockchain_data-CYDJnqwk.js';
3
- export { p as passport } from './passport-zLKPkNSJ.js';
4
- export { o as orderbook } from './orderbook-CT9K2EiU.js';
5
- export { c as checkout } from './checkout-LOXnSKL6.js';
6
- export { x } from './x-rkvSakBu.js';
7
- export { w as webhook } from './webhook-B8RsrpA9.js';
8
- export { m as mintingBackend } from './minting_backend-BJpFwBu9.js';
9
- import './index-BH5dp6EM.js';
1
+ export { c as config } from './config-BYIUpYtz.js';
2
+ export { b as blockchainData } from './blockchain_data-D69s_-Pq.js';
3
+ export { p as passport } from './passport-BXRytlE-.js';
4
+ export { o as orderbook } from './orderbook-CRtUOcSt.js';
5
+ export { c as checkout } from './checkout-BDOS4XQS.js';
6
+ export { x } from './x-BSwaqutw.js';
7
+ export { w as webhook } from './webhook-Bfdo6h3s.js';
8
+ export { m as mintingBackend } from './minting_backend-DTa-bWrV.js';
9
+ import './index-DMiYgH67.js';
10
10
  import 'axios';
11
11
  import 'lru-memorise';
12
12
  import 'global-const';
13
- import './index-DiOzfTJ-.js';
14
- import './index-DtSdLtV-.js';
15
- import './index-Bm9bq6An.js';
13
+ import './index-BG254zdq.js';
14
+ import './index-D5lJqicF.js';
15
+ import './index-BXODrCZw.js';
16
16
  import '@ethersproject/keccak256';
17
17
  import '@ethersproject/strings';
18
18
  import 'bn.js';
@@ -35,7 +35,7 @@ import 'events';
35
35
  import '@0xsequence/abi';
36
36
  import '@0xsequence/core';
37
37
  import 'uuid';
38
- import './index-CYRF7M9x.js';
38
+ import './index-Ch_niP5h.js';
39
39
  import 'form-data';
40
40
  import 'ethers-v6';
41
41
  import 'merkletreejs';
@@ -47,5 +47,5 @@ import '@ethersproject/solidity';
47
47
  import '@uniswap/router-sdk';
48
48
  import '@ethersproject/units';
49
49
  import '@ethersproject/bignumber';
50
- import './index-BkJ3X-zS.js';
50
+ import './index-BcS1m_DG.js';
51
51
  import 'sns-validator';
@@ -1,6 +1,6 @@
1
- import { B as BlockchainData } from './index-DiOzfTJ-.js';
2
- import { h as handle } from './index-BkJ3X-zS.js';
3
- import { t as track, s as setEnvironment, b as setPublishableApiKey } from './index-BH5dp6EM.js';
1
+ import { B as BlockchainData } from './index-BG254zdq.js';
2
+ import { h as handle } from './index-BcS1m_DG.js';
3
+ import { t as track, s as setEnvironment, b as setPublishableApiKey } from './index-DMiYgH67.js';
4
4
 
5
5
  const moduleName = 'minting_backend_sdk';
6
6
  const trackInitializePersistencePG = () => {
@@ -1,9 +1,9 @@
1
- export { M as MintingBackendModule, a as mintingPersistencePg, b as mintingPersistencePrismaSqlite, p as processMint, r as recordMint, s as submitMintingRequests } from './minting_backend-BJpFwBu9.js';
2
- import './index-DiOzfTJ-.js';
3
- import './index-DtSdLtV-.js';
1
+ export { M as MintingBackendModule, a as mintingPersistencePg, b as mintingPersistencePrismaSqlite, p as processMint, r as recordMint, s as submitMintingRequests } from './minting_backend-DTa-bWrV.js';
2
+ import './index-BG254zdq.js';
3
+ import './index-D5lJqicF.js';
4
4
  import 'axios';
5
- import './index-BH5dp6EM.js';
5
+ import './index-DMiYgH67.js';
6
6
  import 'lru-memorise';
7
7
  import 'global-const';
8
- import './index-BkJ3X-zS.js';
8
+ import './index-BcS1m_DG.js';
9
9
  import 'sns-validator';
@@ -1,4 +1,4 @@
1
- import { A as ActionType, F as FeeType, O as OrderStatusName, a as Orderbook, S as SignablePurpose, T as TransactionPurpose, c as constants } from './index-CYRF7M9x.js';
1
+ import { A as ActionType, F as FeeType, O as OrderStatusName, a as Orderbook, S as SignablePurpose, T as TransactionPurpose, c as constants } from './index-Ch_niP5h.js';
2
2
 
3
3
  var orderbook = /*#__PURE__*/Object.freeze({
4
4
  __proto__: null,
package/dist/orderbook.js CHANGED
@@ -1,5 +1,5 @@
1
- export { A as ActionType, F as FeeType, O as OrderStatusName, a as Orderbook, S as SignablePurpose, T as TransactionPurpose, c as constants } from './index-CYRF7M9x.js';
2
- import './index-BH5dp6EM.js';
1
+ export { A as ActionType, F as FeeType, O as OrderStatusName, a as Orderbook, S as SignablePurpose, T as TransactionPurpose, c as constants } from './index-Ch_niP5h.js';
2
+ import './index-DMiYgH67.js';
3
3
  import 'axios';
4
4
  import 'lru-memorise';
5
5
  import 'global-const';
@@ -1,7 +1,7 @@
1
1
  import globalAxios, { isAxiosError as isAxiosError$1 } from 'axios';
2
- import { c as setPassportClientId, t as track, i as identify, d as trackError, u as utils$2, e as trackFlow, g as getDetail, D as Detail, f as trackDuration, E as Environment } from './index-BH5dp6EM.js';
3
- import { M as MultiRollupApiClients, c as createConfig, m as multiRollupConfig, I as ImxApiClients, d as imxApiConfig } from './index-DtSdLtV-.js';
4
- import { g as IMXClient, s as signRaw, c as convertToSignableToken, t as generateLegacyStarkPrivateKey, r as createStarkSigner } from './index-Bm9bq6An.js';
2
+ import { c as setPassportClientId, t as track, i as identify, d as trackError, u as utils$2, e as trackFlow, g as getDetail, D as Detail, f as trackDuration, E as Environment } from './index-DMiYgH67.js';
3
+ import { M as MultiRollupApiClients, c as createConfig, m as multiRollupConfig, I as ImxApiClients, d as imxApiConfig } from './index-D5lJqicF.js';
4
+ import { g as IMXClient, s as signRaw, c as convertToSignableToken, t as generateLegacyStarkPrivateKey, r as createStarkSigner } from './index-BXODrCZw.js';
5
5
  import { UserManager, User, ErrorTimeout, ErrorResponse, InMemoryWebStorage, WebStorageStateStore } from 'oidc-client-ts';
6
6
  import * as crypto from 'crypto';
7
7
  import jwt_decode from 'jwt-decode';
package/dist/passport.js CHANGED
@@ -1,10 +1,10 @@
1
- export { J as JsonRpcError, P as Passport, a as PassportError, b as ProviderErrorCode, c as ProviderEvent, R as RpcErrorCode } from './passport-zLKPkNSJ.js';
1
+ export { J as JsonRpcError, P as Passport, a as PassportError, b as ProviderErrorCode, c as ProviderEvent, R as RpcErrorCode } from './passport-BXRytlE-.js';
2
2
  import 'axios';
3
- import './index-BH5dp6EM.js';
3
+ import './index-DMiYgH67.js';
4
4
  import 'lru-memorise';
5
5
  import 'global-const';
6
- import './index-DtSdLtV-.js';
7
- import './index-Bm9bq6An.js';
6
+ import './index-D5lJqicF.js';
7
+ import './index-BXODrCZw.js';
8
8
  import '@ethersproject/keccak256';
9
9
  import '@ethersproject/strings';
10
10
  import 'bn.js';
@@ -1,4 +1,4 @@
1
- import { h as handle } from './index-BkJ3X-zS.js';
1
+ import { h as handle } from './index-BcS1m_DG.js';
2
2
 
3
3
  var webhook = /*#__PURE__*/Object.freeze({
4
4
  __proto__: null,
package/dist/webhook.js CHANGED
@@ -1,6 +1,6 @@
1
- export { h as handle } from './index-BkJ3X-zS.js';
1
+ export { h as handle } from './index-BcS1m_DG.js';
2
2
  import 'sns-validator';
3
- import './index-BH5dp6EM.js';
3
+ import './index-DMiYgH67.js';
4
4
  import 'axios';
5
5
  import 'lru-memorise';
6
6
  import 'global-const';
@@ -1,12 +1,12 @@
1
- import { I as ImxConfiguration, c as convertToSignableToken, s as signRaw, e as exportContracts, a as signMessage, E as EncodingApi, M as MintsApi, b as signRegisterEthAddress, A as ApiConfiguration, d as AssetsApi, B as BalancesApi, C as CollectionsApi, D as DepositsApi, f as ExchangesApi, g as IMXClient, h as IMXError, i as ImmutableX, j as MetadataApi, k as MetadataRefreshesApi, l as MetadataSchemaRequestTypeEnum, N as NftCheckoutPrimaryApi, O as OrdersApi, P as PrimarySalesApi, m as ProjectsApi, T as TokensApi, n as TradesApi, o as TransfersApi, U as UsersApi, W as WithdrawalsApi, p as createConfig, q as createImmutableXConfiguration, r as createStarkSigner, t as generateLegacyStarkPrivateKey, u as generateStarkPrivateKey, v as imxClientConfig, w as production, x as sandbox, y as serializePackedSignature, z as starkEcOrder } from './index-Bm9bq6An.js';
2
- import { b as index$2 } from './index-DtSdLtV-.js';
1
+ import { I as ImxConfiguration, c as convertToSignableToken, s as signRaw, e as exportContracts, a as signMessage, E as EncodingApi, M as MintsApi, b as signRegisterEthAddress, A as ApiConfiguration, d as AssetsApi, B as BalancesApi, C as CollectionsApi, D as DepositsApi, f as ExchangesApi, g as IMXClient, h as IMXError, i as ImmutableX, j as MetadataApi, k as MetadataRefreshesApi, l as MetadataSchemaRequestTypeEnum, N as NftCheckoutPrimaryApi, O as OrdersApi, P as PrimarySalesApi, m as ProjectsApi, T as TokensApi, n as TradesApi, o as TransfersApi, U as UsersApi, W as WithdrawalsApi, p as createConfig, q as createImmutableXConfiguration, r as createStarkSigner, t as generateLegacyStarkPrivateKey, u as generateStarkPrivateKey, v as imxClientConfig, w as production, x as sandbox, y as serializePackedSignature, z as starkEcOrder } from './index-BXODrCZw.js';
2
+ import { b as index$2 } from './index-D5lJqicF.js';
3
3
  import { isAxiosError } from 'axios';
4
4
  import * as encUtils from 'enc-utils';
5
5
  import { parseUnits } from '@ethersproject/units';
6
6
  import { BigNumber } from '@ethersproject/bignumber';
7
7
  import { ethers } from 'ethers';
8
8
  import detectEthereumProvider from '@metamask/detect-provider';
9
- import { E as Environment, I as ImmutableConfiguration } from './index-BH5dp6EM.js';
9
+ import { E as Environment, I as ImmutableConfiguration } from './index-DMiYgH67.js';
10
10
  import { Signer } from '@ethersproject/abstract-signer';
11
11
 
12
12
  function isChainValid(chainID, config) {
package/dist/x.js CHANGED
@@ -1,8 +1,8 @@
1
- export { A as ApiConfiguration, d as AssetsApi, B as BalancesApi, C as CollectionsApi, e as Contracts, D as DepositsApi, E as EncodingApi, f as ExchangesApi, g as IMXClient, h as IMXError, i as ImmutableX, I as ImxConfiguration, j as MetadataApi, k as MetadataRefreshesApi, l as MetadataSchemaRequestTypeEnum, M as MintsApi, N as NftCheckoutPrimaryApi, O as OrdersApi, P as PrimarySalesApi, m as ProjectsApi, T as TokensApi, n as TradesApi, o as TransfersApi, U as UsersApi, W as WithdrawalsApi, p as createConfig, q as createImmutableXConfiguration, r as createStarkSigner, t as generateLegacyStarkPrivateKey, u as generateStarkPrivateKey, v as imxClientConfig, r as imxClientCreateStarkSigner, t as imxClientGenerateLegacyStarkPrivateKey, w as production, x as sandbox, y as serializePackedSignature, b as signRegisterEthAddress, z as starkEcOrder } from './index-Bm9bq6An.js';
2
- export { G as GenericIMXProvider, M as MetaMaskIMXProvider, P as ProviderConfiguration } from './x-rkvSakBu.js';
3
- export { E as Environment, I as ImmutableConfiguration } from './index-BH5dp6EM.js';
1
+ export { A as ApiConfiguration, d as AssetsApi, B as BalancesApi, C as CollectionsApi, e as Contracts, D as DepositsApi, E as EncodingApi, f as ExchangesApi, g as IMXClient, h as IMXError, i as ImmutableX, I as ImxConfiguration, j as MetadataApi, k as MetadataRefreshesApi, l as MetadataSchemaRequestTypeEnum, M as MintsApi, N as NftCheckoutPrimaryApi, O as OrdersApi, P as PrimarySalesApi, m as ProjectsApi, T as TokensApi, n as TradesApi, o as TransfersApi, U as UsersApi, W as WithdrawalsApi, p as createConfig, q as createImmutableXConfiguration, r as createStarkSigner, t as generateLegacyStarkPrivateKey, u as generateStarkPrivateKey, v as imxClientConfig, r as imxClientCreateStarkSigner, t as imxClientGenerateLegacyStarkPrivateKey, w as production, x as sandbox, y as serializePackedSignature, b as signRegisterEthAddress, z as starkEcOrder } from './index-BXODrCZw.js';
2
+ export { G as GenericIMXProvider, M as MetaMaskIMXProvider, P as ProviderConfiguration } from './x-BSwaqutw.js';
3
+ export { E as Environment, I as ImmutableConfiguration } from './index-DMiYgH67.js';
4
4
  export { Signer as EthSigner } from '@ethersproject/abstract-signer';
5
- import './index-DtSdLtV-.js';
5
+ import './index-D5lJqicF.js';
6
6
  import 'axios';
7
7
  import '@ethersproject/keccak256';
8
8
  import '@ethersproject/strings';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@imtbl/sdk",
3
3
  "description": "Immutable Typescript SDK",
4
- "version": "1.47.2-alpha",
4
+ "version": "1.47.3-alpha",
5
5
  "author": "Immutable",
6
6
  "browser": "./dist/index.browser.js",
7
7
  "bugs": "https://github.com/immutable/ts-immutable-sdk/issues",