@imtbl/sdk 0.42.0 → 0.42.1
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 +3 -3
- package/dist/browser/checkout/widgets.js +67 -60
- package/dist/checkout.d.ts +17 -2
- package/dist/checkout.js +3 -2
- 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 +5 -4
- package/dist/index.d.ts +18 -1
- package/dist/index.js +5 -4
- package/dist/passport.js +2 -2
- package/package.json +2 -2
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.
|
|
10644
|
+
const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.42.1' };
|
|
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.
|
|
10716
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.42.1',
|
|
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.
|
|
11155
|
+
sdkVersion: 'ts-immutable-sdk-0.42.1',
|
|
11156
11156
|
});
|
|
11157
11157
|
/**
|
|
11158
11158
|
* Sets `sdkVersion` at the time of build
|
|
@@ -41069,6 +41069,7 @@ 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 = {}));
|
|
41073
41074
|
|
|
41074
41075
|
/**
|
|
@@ -41936,7 +41937,7 @@ const GAS_OVERRIDES = {
|
|
|
41936
41937
|
maxPriorityFeePerGas: ethers.BigNumber.from(101e9),
|
|
41937
41938
|
};
|
|
41938
41939
|
|
|
41939
|
-
const SDK_VERSION_MARKER = '0.42.
|
|
41940
|
+
const SDK_VERSION_MARKER = '0.42.1';
|
|
41940
41941
|
// This SDK version is replaced by the `yarn build` command ran on the root level
|
|
41941
41942
|
const globalPackageVersion = () => SDK_VERSION_MARKER;
|
|
41942
41943
|
|
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: string | 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: string | undefined;
|
|
18652
18657
|
/** The executed transactions */
|
|
18653
18658
|
transactions: {
|
|
18654
18659
|
method: string;
|
|
@@ -18660,12 +18665,21 @@ type SaleFailed = {
|
|
|
18660
18665
|
* @property {Object} transactions
|
|
18661
18666
|
*/
|
|
18662
18667
|
type SaleTransactionSuccess = {
|
|
18668
|
+
paymentMethod: string | 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: string | undefined;
|
|
18682
|
+
};
|
|
18669
18683
|
|
|
18670
18684
|
/**
|
|
18671
18685
|
* Enum of possible Bridge Widget event types.
|
|
@@ -18997,6 +19011,7 @@ type WidgetEventData = {
|
|
|
18997
19011
|
[SaleEventType.REJECTED]: any;
|
|
18998
19012
|
[SaleEventType.CLOSE_WIDGET]: {};
|
|
18999
19013
|
[SaleEventType.TRANSACTION_SUCCESS]: SaleTransactionSuccess;
|
|
19014
|
+
[SaleEventType.PAYMENT_METHOD]: SalePaymentMethod;
|
|
19000
19015
|
} & OrchestrationMapping & ProviderEventMapping;
|
|
19001
19016
|
};
|
|
19002
19017
|
/**
|
|
@@ -19561,6 +19576,7 @@ type checkout_d_SaleEventType = SaleEventType;
|
|
|
19561
19576
|
declare const checkout_d_SaleEventType: typeof SaleEventType;
|
|
19562
19577
|
type checkout_d_SaleFailed = SaleFailed;
|
|
19563
19578
|
type checkout_d_SaleItem = SaleItem;
|
|
19579
|
+
type checkout_d_SalePaymentMethod = SalePaymentMethod;
|
|
19564
19580
|
type checkout_d_SaleSuccess = SaleSuccess;
|
|
19565
19581
|
type checkout_d_SaleTransactionSuccess = SaleTransactionSuccess;
|
|
19566
19582
|
type checkout_d_SaleWidgetConfiguration = SaleWidgetConfiguration;
|
|
@@ -19744,6 +19760,7 @@ declare namespace checkout_d {
|
|
|
19744
19760
|
checkout_d_SaleEventType as SaleEventType,
|
|
19745
19761
|
checkout_d_SaleFailed as SaleFailed,
|
|
19746
19762
|
checkout_d_SaleItem as SaleItem,
|
|
19763
|
+
checkout_d_SalePaymentMethod as SalePaymentMethod,
|
|
19747
19764
|
checkout_d_SaleSuccess as SaleSuccess,
|
|
19748
19765
|
checkout_d_SaleTransactionSuccess as SaleTransactionSuccess,
|
|
19749
19766
|
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.
|
|
10622
|
+
const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.42.1' };
|
|
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.
|
|
10694
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.42.1',
|
|
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.
|
|
11133
|
+
sdkVersion: 'ts-immutable-sdk-0.42.1',
|
|
11134
11134
|
});
|
|
11135
11135
|
/**
|
|
11136
11136
|
* Sets `sdkVersion` at the time of build
|
|
@@ -41047,6 +41047,7 @@ 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 = {}));
|
|
41051
41052
|
|
|
41052
41053
|
/**
|
|
@@ -41914,7 +41915,7 @@ const GAS_OVERRIDES = {
|
|
|
41914
41915
|
maxPriorityFeePerGas: BigNumber$1.from(101e9),
|
|
41915
41916
|
};
|
|
41916
41917
|
|
|
41917
|
-
const SDK_VERSION_MARKER = '0.42.
|
|
41918
|
+
const SDK_VERSION_MARKER = '0.42.1';
|
|
41918
41919
|
// This SDK version is replaced by the `yarn build` command ran on the root level
|
|
41919
41920
|
const globalPackageVersion = () => SDK_VERSION_MARKER;
|
|
41920
41921
|
|
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.
|
|
8727
|
+
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-0.42.1' };
|
|
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.
|
|
8795
|
+
sdkVersion: 'ts-immutable-sdk-0.42.1',
|
|
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.
|
|
4
|
+
"version": "0.42.1",
|
|
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.
|
|
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",
|