@imtbl/sdk 0.42.1 → 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/blockchain_data.js +1 -1
- package/dist/browser/checkout/sdk.js +6 -6
- package/dist/browser/checkout/widgets.js +13 -13
- package/dist/checkout.d.ts +12 -5
- package/dist/checkout.js +11 -3
- package/dist/immutablex_client.js +1 -1
- package/dist/index.browser.js +3 -3
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +13 -4
- package/dist/index.d.ts +14 -4
- package/dist/index.js +13 -4
- package/dist/passport.js +2 -2
- package/package.json +1 -1
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.
|
|
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.
|
|
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.
|
|
11155
|
+
sdkVersion: 'ts-immutable-sdk-0.43.0',
|
|
11156
11156
|
});
|
|
11157
11157
|
/**
|
|
11158
11158
|
* Sets `sdkVersion` at the time of build
|
|
@@ -41071,6 +41071,14 @@ var SaleEventType;
|
|
|
41071
41071
|
SaleEventType["LANGUAGE_CHANGED"] = "language-changed";
|
|
41072
41072
|
SaleEventType["PAYMENT_METHOD"] = "payment-method";
|
|
41073
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 = {}));
|
|
41074
41082
|
|
|
41075
41083
|
/**
|
|
41076
41084
|
* Enum of possible Bridge Widget event types.
|
|
@@ -41937,7 +41945,7 @@ const GAS_OVERRIDES = {
|
|
|
41937
41945
|
maxPriorityFeePerGas: ethers.BigNumber.from(101e9),
|
|
41938
41946
|
};
|
|
41939
41947
|
|
|
41940
|
-
const SDK_VERSION_MARKER = '0.
|
|
41948
|
+
const SDK_VERSION_MARKER = '0.43.0';
|
|
41941
41949
|
// This SDK version is replaced by the `yarn build` command ran on the root level
|
|
41942
41950
|
const globalPackageVersion = () => SDK_VERSION_MARKER;
|
|
41943
41951
|
|
|
@@ -45843,6 +45851,7 @@ var checkout = /*#__PURE__*/Object.freeze({
|
|
|
45843
45851
|
get ProviderEventType () { return ProviderEventType; },
|
|
45844
45852
|
get RoutingOutcomeType () { return RoutingOutcomeType; },
|
|
45845
45853
|
get SaleEventType () { return SaleEventType; },
|
|
45854
|
+
get SalePaymentTypes () { return SalePaymentTypes; },
|
|
45846
45855
|
get SwapEventType () { return SwapEventType; },
|
|
45847
45856
|
get TokenFilterTypes () { return TokenFilterTypes; },
|
|
45848
45857
|
get TransactionOrGasType () { return TransactionOrGasType; },
|
package/dist/index.d.ts
CHANGED
|
@@ -18633,7 +18633,7 @@ declare enum SaleEventType {
|
|
|
18633
18633
|
*/
|
|
18634
18634
|
type SaleSuccess = {
|
|
18635
18635
|
/** Chosen payment method */
|
|
18636
|
-
paymentMethod:
|
|
18636
|
+
paymentMethod: SalePaymentTypes | undefined;
|
|
18637
18637
|
/** The executed transactions */
|
|
18638
18638
|
transactions: {
|
|
18639
18639
|
method: string;
|
|
@@ -18653,7 +18653,7 @@ type SaleFailed = {
|
|
|
18653
18653
|
/** The timestamp of the failed swap. */
|
|
18654
18654
|
timestamp: number;
|
|
18655
18655
|
/** Chosen payment method */
|
|
18656
|
-
paymentMethod:
|
|
18656
|
+
paymentMethod: SalePaymentTypes | undefined;
|
|
18657
18657
|
/** The executed transactions */
|
|
18658
18658
|
transactions: {
|
|
18659
18659
|
method: string;
|
|
@@ -18665,7 +18665,7 @@ type SaleFailed = {
|
|
|
18665
18665
|
* @property {Object} transactions
|
|
18666
18666
|
*/
|
|
18667
18667
|
type SaleTransactionSuccess = {
|
|
18668
|
-
paymentMethod:
|
|
18668
|
+
paymentMethod: SalePaymentTypes | undefined;
|
|
18669
18669
|
/** The executed transactions */
|
|
18670
18670
|
transactions: {
|
|
18671
18671
|
method: string;
|
|
@@ -18678,8 +18678,15 @@ type SaleTransactionSuccess = {
|
|
|
18678
18678
|
*/
|
|
18679
18679
|
type SalePaymentMethod = {
|
|
18680
18680
|
/** Chosen payment method */
|
|
18681
|
-
paymentMethod:
|
|
18681
|
+
paymentMethod: SalePaymentTypes | undefined;
|
|
18682
18682
|
};
|
|
18683
|
+
/**
|
|
18684
|
+
* Enum representing Sale Widget available payment types.
|
|
18685
|
+
*/
|
|
18686
|
+
declare enum SalePaymentTypes {
|
|
18687
|
+
CRYPTO = "crypto",
|
|
18688
|
+
FIAT = "fiat"
|
|
18689
|
+
}
|
|
18683
18690
|
|
|
18684
18691
|
/**
|
|
18685
18692
|
* Enum of possible Bridge Widget event types.
|
|
@@ -19577,6 +19584,8 @@ declare const checkout_d_SaleEventType: typeof SaleEventType;
|
|
|
19577
19584
|
type checkout_d_SaleFailed = SaleFailed;
|
|
19578
19585
|
type checkout_d_SaleItem = SaleItem;
|
|
19579
19586
|
type checkout_d_SalePaymentMethod = SalePaymentMethod;
|
|
19587
|
+
type checkout_d_SalePaymentTypes = SalePaymentTypes;
|
|
19588
|
+
declare const checkout_d_SalePaymentTypes: typeof SalePaymentTypes;
|
|
19580
19589
|
type checkout_d_SaleSuccess = SaleSuccess;
|
|
19581
19590
|
type checkout_d_SaleTransactionSuccess = SaleTransactionSuccess;
|
|
19582
19591
|
type checkout_d_SaleWidgetConfiguration = SaleWidgetConfiguration;
|
|
@@ -19761,6 +19770,7 @@ declare namespace checkout_d {
|
|
|
19761
19770
|
checkout_d_SaleFailed as SaleFailed,
|
|
19762
19771
|
checkout_d_SaleItem as SaleItem,
|
|
19763
19772
|
checkout_d_SalePaymentMethod as SalePaymentMethod,
|
|
19773
|
+
checkout_d_SalePaymentTypes as SalePaymentTypes,
|
|
19764
19774
|
checkout_d_SaleSuccess as SaleSuccess,
|
|
19765
19775
|
checkout_d_SaleTransactionSuccess as SaleTransactionSuccess,
|
|
19766
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.
|
|
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.
|
|
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.
|
|
11133
|
+
sdkVersion: 'ts-immutable-sdk-0.43.0',
|
|
11134
11134
|
});
|
|
11135
11135
|
/**
|
|
11136
11136
|
* Sets `sdkVersion` at the time of build
|
|
@@ -41049,6 +41049,14 @@ var SaleEventType;
|
|
|
41049
41049
|
SaleEventType["LANGUAGE_CHANGED"] = "language-changed";
|
|
41050
41050
|
SaleEventType["PAYMENT_METHOD"] = "payment-method";
|
|
41051
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 = {}));
|
|
41052
41060
|
|
|
41053
41061
|
/**
|
|
41054
41062
|
* Enum of possible Bridge Widget event types.
|
|
@@ -41915,7 +41923,7 @@ const GAS_OVERRIDES = {
|
|
|
41915
41923
|
maxPriorityFeePerGas: BigNumber$1.from(101e9),
|
|
41916
41924
|
};
|
|
41917
41925
|
|
|
41918
|
-
const SDK_VERSION_MARKER = '0.
|
|
41926
|
+
const SDK_VERSION_MARKER = '0.43.0';
|
|
41919
41927
|
// This SDK version is replaced by the `yarn build` command ran on the root level
|
|
41920
41928
|
const globalPackageVersion = () => SDK_VERSION_MARKER;
|
|
41921
41929
|
|
|
@@ -45821,6 +45829,7 @@ var checkout = /*#__PURE__*/Object.freeze({
|
|
|
45821
45829
|
get ProviderEventType () { return ProviderEventType; },
|
|
45822
45830
|
get RoutingOutcomeType () { return RoutingOutcomeType; },
|
|
45823
45831
|
get SaleEventType () { return SaleEventType; },
|
|
45832
|
+
get SalePaymentTypes () { return SalePaymentTypes; },
|
|
45824
45833
|
get SwapEventType () { return SwapEventType; },
|
|
45825
45834
|
get TokenFilterTypes () { return TokenFilterTypes; },
|
|
45826
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.
|
|
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.
|
|
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