@imtbl/sdk 0.42.0 → 0.43.0

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
@@ -10641,7 +10641,7 @@ class MultiRollupApiClients {
10641
10641
  }
10642
10642
 
10643
10643
  // eslint-disable-next-line @typescript-eslint/naming-convention
10644
- const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.42.0' };
10644
+ const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.43.0' };
10645
10645
  const createConfig = ({ basePath, headers, }) => {
10646
10646
  if (!basePath.trim()) {
10647
10647
  throw Error('basePath can not be empty');
@@ -10713,7 +10713,7 @@ class APIError extends Error {
10713
10713
 
10714
10714
  /* eslint-disable implicit-arrow-linebreak */
10715
10715
  const defaultHeaders = {
10716
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.42.0',
10716
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.43.0',
10717
10717
  };
10718
10718
  /**
10719
10719
  * createAPIConfiguration to create a custom Configuration
@@ -11152,7 +11152,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
11152
11152
  chainID,
11153
11153
  coreContractAddress,
11154
11154
  registrationContractAddress,
11155
- sdkVersion: 'ts-immutable-sdk-0.42.0',
11155
+ sdkVersion: 'ts-immutable-sdk-0.43.0',
11156
11156
  });
11157
11157
  /**
11158
11158
  * Sets `sdkVersion` at the time of build
@@ -41069,7 +41069,16 @@ var SaleEventType;
41069
41069
  SaleEventType["REJECTED"] = "rejected";
41070
41070
  SaleEventType["TRANSACTION_SUCCESS"] = "transaction-success";
41071
41071
  SaleEventType["LANGUAGE_CHANGED"] = "language-changed";
41072
+ SaleEventType["PAYMENT_METHOD"] = "payment-method";
41072
41073
  })(SaleEventType || (SaleEventType = {}));
41074
+ /**
41075
+ * Enum representing Sale Widget available payment types.
41076
+ */
41077
+ var SalePaymentTypes;
41078
+ (function (SalePaymentTypes) {
41079
+ SalePaymentTypes["CRYPTO"] = "crypto";
41080
+ SalePaymentTypes["FIAT"] = "fiat";
41081
+ })(SalePaymentTypes || (SalePaymentTypes = {}));
41073
41082
 
41074
41083
  /**
41075
41084
  * Enum of possible Bridge Widget event types.
@@ -41936,7 +41945,7 @@ const GAS_OVERRIDES = {
41936
41945
  maxPriorityFeePerGas: ethers.BigNumber.from(101e9),
41937
41946
  };
41938
41947
 
41939
- const SDK_VERSION_MARKER = '0.42.0';
41948
+ const SDK_VERSION_MARKER = '0.43.0';
41940
41949
  // This SDK version is replaced by the `yarn build` command ran on the root level
41941
41950
  const globalPackageVersion = () => SDK_VERSION_MARKER;
41942
41951
 
@@ -45842,6 +45851,7 @@ var checkout = /*#__PURE__*/Object.freeze({
45842
45851
  get ProviderEventType () { return ProviderEventType; },
45843
45852
  get RoutingOutcomeType () { return RoutingOutcomeType; },
45844
45853
  get SaleEventType () { return SaleEventType; },
45854
+ get SalePaymentTypes () { return SalePaymentTypes; },
45845
45855
  get SwapEventType () { return SwapEventType; },
45846
45856
  get TokenFilterTypes () { return TokenFilterTypes; },
45847
45857
  get TransactionOrGasType () { return TransactionOrGasType; },
package/dist/index.d.ts CHANGED
@@ -18624,13 +18624,16 @@ declare enum SaleEventType {
18624
18624
  FAILURE = "failure",
18625
18625
  REJECTED = "rejected",
18626
18626
  TRANSACTION_SUCCESS = "transaction-success",
18627
- LANGUAGE_CHANGED = "language-changed"
18627
+ LANGUAGE_CHANGED = "language-changed",
18628
+ PAYMENT_METHOD = "payment-method"
18628
18629
  }
18629
18630
  /**
18630
18631
  * Represents a successful Sale transaction.
18631
18632
  * @property {Array} transactions -
18632
18633
  */
18633
18634
  type SaleSuccess = {
18635
+ /** Chosen payment method */
18636
+ paymentMethod: SalePaymentTypes | undefined;
18634
18637
  /** The executed transactions */
18635
18638
  transactions: {
18636
18639
  method: string;
@@ -18649,6 +18652,8 @@ type SaleFailed = {
18649
18652
  reason: string;
18650
18653
  /** The timestamp of the failed swap. */
18651
18654
  timestamp: number;
18655
+ /** Chosen payment method */
18656
+ paymentMethod: SalePaymentTypes | undefined;
18652
18657
  /** The executed transactions */
18653
18658
  transactions: {
18654
18659
  method: string;
@@ -18660,12 +18665,28 @@ type SaleFailed = {
18660
18665
  * @property {Object} transactions
18661
18666
  */
18662
18667
  type SaleTransactionSuccess = {
18668
+ paymentMethod: SalePaymentTypes | undefined;
18663
18669
  /** The executed transactions */
18664
18670
  transactions: {
18665
18671
  method: string;
18666
18672
  hash: string | undefined;
18667
18673
  }[];
18668
18674
  };
18675
+ /**
18676
+ * Type representing a Sale Widget with type PAYMENT_METHOD.
18677
+ * @property {Object} transactions
18678
+ */
18679
+ type SalePaymentMethod = {
18680
+ /** Chosen payment method */
18681
+ paymentMethod: SalePaymentTypes | undefined;
18682
+ };
18683
+ /**
18684
+ * Enum representing Sale Widget available payment types.
18685
+ */
18686
+ declare enum SalePaymentTypes {
18687
+ CRYPTO = "crypto",
18688
+ FIAT = "fiat"
18689
+ }
18669
18690
 
18670
18691
  /**
18671
18692
  * Enum of possible Bridge Widget event types.
@@ -18997,6 +19018,7 @@ type WidgetEventData = {
18997
19018
  [SaleEventType.REJECTED]: any;
18998
19019
  [SaleEventType.CLOSE_WIDGET]: {};
18999
19020
  [SaleEventType.TRANSACTION_SUCCESS]: SaleTransactionSuccess;
19021
+ [SaleEventType.PAYMENT_METHOD]: SalePaymentMethod;
19000
19022
  } & OrchestrationMapping & ProviderEventMapping;
19001
19023
  };
19002
19024
  /**
@@ -19561,6 +19583,9 @@ type checkout_d_SaleEventType = SaleEventType;
19561
19583
  declare const checkout_d_SaleEventType: typeof SaleEventType;
19562
19584
  type checkout_d_SaleFailed = SaleFailed;
19563
19585
  type checkout_d_SaleItem = SaleItem;
19586
+ type checkout_d_SalePaymentMethod = SalePaymentMethod;
19587
+ type checkout_d_SalePaymentTypes = SalePaymentTypes;
19588
+ declare const checkout_d_SalePaymentTypes: typeof SalePaymentTypes;
19564
19589
  type checkout_d_SaleSuccess = SaleSuccess;
19565
19590
  type checkout_d_SaleTransactionSuccess = SaleTransactionSuccess;
19566
19591
  type checkout_d_SaleWidgetConfiguration = SaleWidgetConfiguration;
@@ -19744,6 +19769,8 @@ declare namespace checkout_d {
19744
19769
  checkout_d_SaleEventType as SaleEventType,
19745
19770
  checkout_d_SaleFailed as SaleFailed,
19746
19771
  checkout_d_SaleItem as SaleItem,
19772
+ checkout_d_SalePaymentMethod as SalePaymentMethod,
19773
+ checkout_d_SalePaymentTypes as SalePaymentTypes,
19747
19774
  checkout_d_SaleSuccess as SaleSuccess,
19748
19775
  checkout_d_SaleTransactionSuccess as SaleTransactionSuccess,
19749
19776
  checkout_d_SaleWidgetConfiguration as SaleWidgetConfiguration,
package/dist/index.js CHANGED
@@ -10619,7 +10619,7 @@ class MultiRollupApiClients {
10619
10619
  }
10620
10620
 
10621
10621
  // eslint-disable-next-line @typescript-eslint/naming-convention
10622
- const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.42.0' };
10622
+ const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.43.0' };
10623
10623
  const createConfig = ({ basePath, headers, }) => {
10624
10624
  if (!basePath.trim()) {
10625
10625
  throw Error('basePath can not be empty');
@@ -10691,7 +10691,7 @@ class APIError extends Error {
10691
10691
 
10692
10692
  /* eslint-disable implicit-arrow-linebreak */
10693
10693
  const defaultHeaders = {
10694
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.42.0',
10694
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.43.0',
10695
10695
  };
10696
10696
  /**
10697
10697
  * createAPIConfiguration to create a custom Configuration
@@ -11130,7 +11130,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
11130
11130
  chainID,
11131
11131
  coreContractAddress,
11132
11132
  registrationContractAddress,
11133
- sdkVersion: 'ts-immutable-sdk-0.42.0',
11133
+ sdkVersion: 'ts-immutable-sdk-0.43.0',
11134
11134
  });
11135
11135
  /**
11136
11136
  * Sets `sdkVersion` at the time of build
@@ -41047,7 +41047,16 @@ var SaleEventType;
41047
41047
  SaleEventType["REJECTED"] = "rejected";
41048
41048
  SaleEventType["TRANSACTION_SUCCESS"] = "transaction-success";
41049
41049
  SaleEventType["LANGUAGE_CHANGED"] = "language-changed";
41050
+ SaleEventType["PAYMENT_METHOD"] = "payment-method";
41050
41051
  })(SaleEventType || (SaleEventType = {}));
41052
+ /**
41053
+ * Enum representing Sale Widget available payment types.
41054
+ */
41055
+ var SalePaymentTypes;
41056
+ (function (SalePaymentTypes) {
41057
+ SalePaymentTypes["CRYPTO"] = "crypto";
41058
+ SalePaymentTypes["FIAT"] = "fiat";
41059
+ })(SalePaymentTypes || (SalePaymentTypes = {}));
41051
41060
 
41052
41061
  /**
41053
41062
  * Enum of possible Bridge Widget event types.
@@ -41914,7 +41923,7 @@ const GAS_OVERRIDES = {
41914
41923
  maxPriorityFeePerGas: BigNumber$1.from(101e9),
41915
41924
  };
41916
41925
 
41917
- const SDK_VERSION_MARKER = '0.42.0';
41926
+ const SDK_VERSION_MARKER = '0.43.0';
41918
41927
  // This SDK version is replaced by the `yarn build` command ran on the root level
41919
41928
  const globalPackageVersion = () => SDK_VERSION_MARKER;
41920
41929
 
@@ -45820,6 +45829,7 @@ var checkout = /*#__PURE__*/Object.freeze({
45820
45829
  get ProviderEventType () { return ProviderEventType; },
45821
45830
  get RoutingOutcomeType () { return RoutingOutcomeType; },
45822
45831
  get SaleEventType () { return SaleEventType; },
45832
+ get SalePaymentTypes () { return SalePaymentTypes; },
45823
45833
  get SwapEventType () { return SwapEventType; },
45824
45834
  get TokenFilterTypes () { return TokenFilterTypes; },
45825
45835
  get TransactionOrGasType () { return TransactionOrGasType; },
package/dist/passport.js CHANGED
@@ -8724,7 +8724,7 @@ class MultiRollupApiClients {
8724
8724
  }
8725
8725
 
8726
8726
  // eslint-disable-next-line @typescript-eslint/naming-convention
8727
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-0.42.0' };
8727
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-0.43.0' };
8728
8728
  const createConfig = ({ basePath, headers, }) => {
8729
8729
  if (!basePath.trim()) {
8730
8730
  throw Error('basePath can not be empty');
@@ -8792,7 +8792,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
8792
8792
  chainID,
8793
8793
  coreContractAddress,
8794
8794
  registrationContractAddress,
8795
- sdkVersion: 'ts-immutable-sdk-0.42.0',
8795
+ sdkVersion: 'ts-immutable-sdk-0.43.0',
8796
8796
  });
8797
8797
  /**
8798
8798
  * Sets `sdkVersion` at the time of build
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@imtbl/sdk",
3
3
  "description": "Immutable Unified SDK",
4
- "version": "0.42.0",
4
+ "version": "0.43.0",
5
5
  "author": "Immutable",
6
6
  "browser": "./dist/index.browser.js",
7
7
  "bugs": "https://github.com/immutable/ts-immutable-sdk/issues",
@@ -9,7 +9,7 @@
9
9
  "@0xsequence/abi": "^1.4.3",
10
10
  "@0xsequence/core": "^1.4.3",
11
11
  "@biom3/design-tokens": "0.2.9",
12
- "@biom3/react": "^0.19.22",
12
+ "@biom3/react": "^0.19.34",
13
13
  "@ethersproject/abi": "^5.7.0",
14
14
  "@ethersproject/abstract-signer": "^5.7.0",
15
15
  "@ethersproject/providers": "^5.7.2",