@imtbl/sdk 1.47.4-alpha → 1.47.4-alpha.2

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 (35) hide show
  1. package/dist/{blockchain_data-CbBJsalL.js → blockchain_data-CgPm4WL5.js} +2 -2
  2. package/dist/blockchain_data.js +3 -3
  3. package/dist/browser/checkout/sdk.js +4 -4
  4. package/dist/browser.index.d.ts +6 -0
  5. package/dist/{checkout-B7xLDjmO.js → checkout-CjKpSjmR.js} +5 -8
  6. package/dist/checkout.d.ts +179 -104
  7. package/dist/checkout.js +5 -5
  8. package/dist/checkout_widgets.d.ts +1 -0
  9. package/dist/{config-BYNJw3md.js → config-BXtXHfQn.js} +1 -1
  10. package/dist/config.js +1 -1
  11. package/dist/{index-d4gxVDah.js → index-BV7-TPDO.js} +1 -1
  12. package/dist/{index-DYxygwhG.js → index-CKYKddDO.js} +1 -1
  13. package/dist/{index-DvP-uJex.js → index-CyjAw8zw.js} +1 -1
  14. package/dist/{index-CW8ylME5.js → index-DBPf0qx4.js} +7 -6
  15. package/dist/{index-C42TjV84.js → index-DSMUrJvb.js} +1 -1
  16. package/dist/{index-DL2_Qli2.js → index-W-3MOFL6.js} +3 -3
  17. package/dist/index.browser.js +4 -4
  18. package/dist/index.browser.js.map +1 -1
  19. package/dist/index.cjs +10 -12
  20. package/dist/index.d.ts +253 -151
  21. package/dist/index.js +14 -14
  22. package/dist/{minting_backend-uIbayhXa.js → minting_backend-BORU2Kp9.js} +3 -3
  23. package/dist/minting_backend.js +5 -5
  24. package/dist/{orderbook-DG-99QpD.js → orderbook-E6MgHlqQ.js} +1 -1
  25. package/dist/orderbook.js +2 -2
  26. package/dist/{passport-BZiTNYmZ.js → passport-Q4ja38LX.js} +3 -3
  27. package/dist/passport.d.ts +179 -103
  28. package/dist/passport.js +4 -4
  29. package/dist/tsconfig.tsbuildinfo +1 -0
  30. package/dist/{webhook-Dku53DbA.js → webhook-Dz9ivzHM.js} +1 -1
  31. package/dist/webhook.js +2 -2
  32. package/dist/{x-DoAGu-CP.js → x-iD3L5vwX.js} +3 -3
  33. package/dist/x.d.ts +189 -115
  34. package/dist/x.js +4 -4
  35. package/package.json +3 -2
package/dist/checkout.js CHANGED
@@ -1,5 +1,5 @@
1
- export { B as BlockExplorerService, a as BridgeEventType, C as ChainId, b as ChainName, d as ChainSlug, e as Checkout, f as CheckoutConfiguration, g as CheckoutErrorType, h as CheckoutEventType, i as CheckoutFailureEventType, j as CheckoutFlowType, k as CheckoutStatus, l as CheckoutSuccessEventType, m as CheckoutUserActionEventType, n as ConnectEventType, o as ConnectTargetLayer, E as ExchangeType, F as FeeType, p as FundingStepType, G as GasEstimateType, q as GasTokenType, I as IMMUTABLE_API_BASE_URL, r as IMTBLWidgetEvents, s as ItemType, N as NetworkFilterTypes, O as OnRampEventType, t as OrchestrationEventType, P as PostMessageHandler, u as PostMessageHandlerEventType, v as ProviderEventType, R as RoutingOutcomeType, S as SaleEventType, w as SalePaymentTypes, x as SwapEventType, T as TokenFilterTypes, y as TransactionOrGasType, W as WalletEventType, z as WalletFilterTypes, A as WalletProviderName, D as WalletProviderRdns, H as WidgetTheme, J as WidgetType, K as getMetaMaskProviderDetail, L as getPassportProviderDetail, M as isAddressSanctioned, Q as validateProvider } from './checkout-B7xLDjmO.js';
2
- import './index-DYxygwhG.js';
1
+ export { B as BlockExplorerService, a as BridgeEventType, C as ChainId, b as ChainName, d as ChainSlug, e as Checkout, f as CheckoutConfiguration, g as CheckoutErrorType, h as CheckoutEventType, i as CheckoutFailureEventType, j as CheckoutFlowType, k as CheckoutStatus, l as CheckoutSuccessEventType, m as CheckoutUserActionEventType, n as ConnectEventType, o as ConnectTargetLayer, E as ExchangeType, F as FeeType, p as FundingStepType, G as GasEstimateType, q as GasTokenType, I as IMMUTABLE_API_BASE_URL, r as IMTBLWidgetEvents, s as ItemType, N as NetworkFilterTypes, O as OnRampEventType, t as OrchestrationEventType, P as PostMessageHandler, u as PostMessageHandlerEventType, v as ProviderEventType, R as RoutingOutcomeType, S as SaleEventType, w as SalePaymentTypes, x as SwapEventType, T as TokenFilterTypes, y as TransactionOrGasType, W as WalletEventType, z as WalletFilterTypes, A as WalletProviderName, D as WalletProviderRdns, H as WidgetTheme, J as WidgetType, K as getMetaMaskProviderDetail, L as getPassportProviderDetail, M as isAddressSanctioned, Q as validateProvider } from './checkout-CjKpSjmR.js';
2
+ import './index-CKYKddDO.js';
3
3
  import 'axios';
4
4
  import 'lru-memorise';
5
5
  import 'global-const';
@@ -11,10 +11,10 @@ import 'assert';
11
11
  import '@uniswap/v3-sdk';
12
12
  import '@ethersproject/solidity';
13
13
  import '@uniswap/router-sdk';
14
- import './index-DvP-uJex.js';
14
+ import './index-CyjAw8zw.js';
15
15
  import 'form-data';
16
16
  import 'ethers-v6';
17
17
  import 'merkletreejs';
18
18
  import '@opensea/seaport-js';
19
- import './index-DL2_Qli2.js';
20
- import './index-C42TjV84.js';
19
+ import './index-W-3MOFL6.js';
20
+ import './index-DSMUrJvb.js';
@@ -0,0 +1 @@
1
+ export * from '@imtbl/checkout-widgets';
@@ -1,4 +1,4 @@
1
- import { E as Environment, I as ImmutableConfiguration, K as KeyHeaders, a as addKeysToHeadersOverride } from './index-DYxygwhG.js';
1
+ import { E as Environment, I as ImmutableConfiguration, K as KeyHeaders, a as addKeysToHeadersOverride } from './index-CKYKddDO.js';
2
2
 
3
3
  var config = /*#__PURE__*/Object.freeze({
4
4
  __proto__: null,
package/dist/config.js CHANGED
@@ -1,4 +1,4 @@
1
- export { E as Environment, I as ImmutableConfiguration, K as KeyHeaders, a as addKeysToHeadersOverride } from './index-DYxygwhG.js';
1
+ export { E as Environment, I as ImmutableConfiguration, K as KeyHeaders, a as addKeysToHeadersOverride } from './index-CKYKddDO.js';
2
2
  import 'axios';
3
3
  import 'lru-memorise';
4
4
  import 'global-const';
@@ -1,5 +1,5 @@
1
1
  import MessageValidator from 'sns-validator';
2
- import { E as Environment } from './index-DYxygwhG.js';
2
+ import { E as Environment } from './index-CKYKddDO.js';
3
3
 
4
4
  const validator = new MessageValidator();
5
5
  const allowedTopicArnPrefix = {
@@ -158,7 +158,7 @@ const flattenProperties = (properties) => {
158
158
  };
159
159
 
160
160
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
161
- const SDK_VERSION = '1.47.4-alpha';
161
+ const SDK_VERSION = '1.47.4-alpha.2';
162
162
  const getFrameParentDomain = () => {
163
163
  if (isNode()) {
164
164
  return '';
@@ -3,7 +3,7 @@ import FormData from 'form-data';
3
3
  import { providers, BigNumber, constants as constants$1 } from 'ethers';
4
4
  import { ethers, FetchRequest, JsonRpcProvider, JsonRpcSigner, keccak256, toUtf8Bytes, concat, TypedDataEncoder, zeroPadValue, toBeHex, AbiCoder } from 'ethers-v6';
5
5
  import { MerkleTree } from 'merkletreejs';
6
- import { E as Environment } from './index-DYxygwhG.js';
6
+ import { E as Environment } from './index-CKYKddDO.js';
7
7
  import { Seaport as Seaport$1 } from '@opensea/seaport-js';
8
8
 
9
9
  class BaseHttpRequest {
@@ -1,5 +1,5 @@
1
- import { b as index$2, I as ImxApiClients } from './index-C42TjV84.js';
2
- import { a as addKeysToHeadersOverride, E as Environment, I as ImmutableConfiguration } from './index-DYxygwhG.js';
1
+ import { b as index$2, I as ImxApiClients } from './index-DSMUrJvb.js';
2
+ import { a as addKeysToHeadersOverride, E as Environment, I as ImmutableConfiguration } from './index-CKYKddDO.js';
3
3
  import globalAxios from 'axios';
4
4
  import { keccak256 } from '@ethersproject/keccak256';
5
5
  import { toUtf8Bytes } from '@ethersproject/strings';
@@ -16,7 +16,7 @@ import '@ethersproject/abstract-signer';
16
16
  /* eslint-disable @typescript-eslint/naming-convention */
17
17
  class ApiConfiguration extends index$2.Configuration {
18
18
  }
19
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.47.4-alpha' };
19
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.47.4-alpha.2' };
20
20
  /**
21
21
  * @dev use createImmutableXConfiguration instead
22
22
  */
@@ -57,7 +57,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
57
57
  coreContractAddress,
58
58
  registrationContractAddress,
59
59
  registrationV4ContractAddress,
60
- sdkVersion: 'ts-immutable-sdk-1.47.4-alpha',
60
+ sdkVersion: 'ts-immutable-sdk-1.47.4-alpha.2',
61
61
  baseConfig,
62
62
  });
63
63
  const production = ({ baseConfig }) => createImmutableXConfiguration({
@@ -3207,7 +3207,7 @@ class IMXClient {
3207
3207
  * @param collectionAddress - the Collection contract address
3208
3208
  * @param name - the Metadata schema name
3209
3209
  * @param request - the request object containing the parameters to be provided in the API request
3210
- * @returns a promise that resolves with the SuccessResponse if successful
3210
+ * @returns a promise that resolves with the {@link SuccessResponse}
3211
3211
  * @throws {@link IMXError}
3212
3212
  */
3213
3213
  updateMetadataSchemaByName(ethSigner, collectionAddress, name, request) {
@@ -8745,7 +8745,8 @@ class UsersApi extends index$2.UsersApi {
8745
8745
  }
8746
8746
  class WithdrawalsApi extends index$2.WithdrawalsApi {
8747
8747
  }
8748
- const { MetadataSchemaRequestTypeEnum } = index$2;
8748
+ // eslint-disable-next-line prefer-destructuring
8749
+ const MetadataSchemaRequestTypeEnum = index$2.MetadataSchemaRequestTypeEnum;
8749
8750
 
8750
8751
  // used to sign message with L1 keys. Used for registration
8751
8752
  function serializeEthSignature(sig) {
@@ -13838,7 +13838,7 @@ class MultiRollupApiClients {
13838
13838
  }
13839
13839
 
13840
13840
  // eslint-disable-next-line @typescript-eslint/naming-convention
13841
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.47.4-alpha' };
13841
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.47.4-alpha.2' };
13842
13842
  const createConfig = ({ basePath, headers, }) => {
13843
13843
  if (!basePath.trim()) {
13844
13844
  throw Error('basePath can not be empty');
@@ -1,5 +1,5 @@
1
- import { a as index$1 } from './index-C42TjV84.js';
2
- import { E as Environment, a as addKeysToHeadersOverride } from './index-DYxygwhG.js';
1
+ import { a as index$1 } from './index-DSMUrJvb.js';
2
+ import { E as Environment, a as addKeysToHeadersOverride } from './index-CKYKddDO.js';
3
3
  import globalAxios from 'axios';
4
4
 
5
5
  /**
@@ -21,7 +21,7 @@ class APIError extends Error {
21
21
 
22
22
  /* eslint-disable implicit-arrow-linebreak */
23
23
  const defaultHeaders = {
24
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.47.4-alpha',
24
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.47.4-alpha.2',
25
25
  };
26
26
  /**
27
27
  * createAPIConfiguration to create a custom Configuration