@imtbl/sdk 1.4.1-alpha.2 → 1.4.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.
- package/dist/blockchain_data.js +2 -2
- package/dist/browser/checkout/sdk.js +4 -4
- package/dist/browser/checkout/widgets.js +4 -4
- package/dist/checkout.d.ts +7 -1
- package/dist/checkout.js +7 -4
- package/dist/config.js +1 -1
- package/dist/index.browser.js +4 -4
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +9 -6
- package/dist/index.d.ts +7 -1
- package/dist/index.js +9 -6
- package/dist/orderbook.js +1 -1
- package/dist/passport.js +3 -3
- package/dist/x.js +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -173,7 +173,7 @@ const flattenProperties$1 = (properties) => {
|
|
|
173
173
|
};
|
|
174
174
|
|
|
175
175
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
176
|
-
const SDK_VERSION$1 = '1.4.
|
|
176
|
+
const SDK_VERSION$1 = '1.4.2';
|
|
177
177
|
let initialised$1 = false;
|
|
178
178
|
const isInitialised$1 = () => initialised$1;
|
|
179
179
|
const getReferrer$1 = () => {
|
|
@@ -11260,7 +11260,7 @@ class MultiRollupApiClients {
|
|
|
11260
11260
|
}
|
|
11261
11261
|
|
|
11262
11262
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
11263
|
-
const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-1.4.
|
|
11263
|
+
const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-1.4.2' };
|
|
11264
11264
|
const createConfig = ({ basePath, headers, }) => {
|
|
11265
11265
|
if (!basePath.trim()) {
|
|
11266
11266
|
throw Error('basePath can not be empty');
|
|
@@ -11332,7 +11332,7 @@ class APIError extends Error {
|
|
|
11332
11332
|
|
|
11333
11333
|
/* eslint-disable implicit-arrow-linebreak */
|
|
11334
11334
|
const defaultHeaders = {
|
|
11335
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.4.
|
|
11335
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.4.2',
|
|
11336
11336
|
};
|
|
11337
11337
|
/**
|
|
11338
11338
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -11765,7 +11765,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
11765
11765
|
chainID,
|
|
11766
11766
|
coreContractAddress,
|
|
11767
11767
|
registrationContractAddress,
|
|
11768
|
-
sdkVersion: 'ts-immutable-sdk-1.4.
|
|
11768
|
+
sdkVersion: 'ts-immutable-sdk-1.4.2',
|
|
11769
11769
|
});
|
|
11770
11770
|
/**
|
|
11771
11771
|
* Sets `sdkVersion` at the time of build
|
|
@@ -37061,7 +37061,7 @@ const flattenProperties = (properties) => {
|
|
|
37061
37061
|
};
|
|
37062
37062
|
|
|
37063
37063
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
37064
|
-
const SDK_VERSION = '1.4.
|
|
37064
|
+
const SDK_VERSION = '1.4.2';
|
|
37065
37065
|
let initialised = false;
|
|
37066
37066
|
const isInitialised = () => initialised;
|
|
37067
37067
|
const getReferrer = () => {
|
|
@@ -41286,6 +41286,9 @@ var SaleEventType;
|
|
|
41286
41286
|
SaleEventType["TRANSACTION_SUCCESS"] = "transaction-success";
|
|
41287
41287
|
SaleEventType["LANGUAGE_CHANGED"] = "language-changed";
|
|
41288
41288
|
SaleEventType["PAYMENT_METHOD"] = "payment-method";
|
|
41289
|
+
SaleEventType["REQUEST_BRIDGE"] = "request-bridge";
|
|
41290
|
+
SaleEventType["REQUEST_ONRAMP"] = "request-onramp";
|
|
41291
|
+
SaleEventType["REQUEST_SWAP"] = "request-swap";
|
|
41289
41292
|
})(SaleEventType || (SaleEventType = {}));
|
|
41290
41293
|
/**
|
|
41291
41294
|
* Enum representing Sale Widget available payment types.
|
|
@@ -42166,7 +42169,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
|
|
|
42166
42169
|
maxPriorityFeePerGas: ethers.BigNumber.from(10e9),
|
|
42167
42170
|
};
|
|
42168
42171
|
|
|
42169
|
-
const SDK_VERSION_MARKER = '1.4.
|
|
42172
|
+
const SDK_VERSION_MARKER = '1.4.2';
|
|
42170
42173
|
// This SDK version is replaced by the `yarn build` command ran on the root level
|
|
42171
42174
|
const globalPackageVersion = () => SDK_VERSION_MARKER;
|
|
42172
42175
|
|
package/dist/index.d.ts
CHANGED
|
@@ -31600,7 +31600,10 @@ declare enum SaleEventType {
|
|
|
31600
31600
|
REJECTED = "rejected",
|
|
31601
31601
|
TRANSACTION_SUCCESS = "transaction-success",
|
|
31602
31602
|
LANGUAGE_CHANGED = "language-changed",
|
|
31603
|
-
PAYMENT_METHOD = "payment-method"
|
|
31603
|
+
PAYMENT_METHOD = "payment-method",
|
|
31604
|
+
REQUEST_BRIDGE = "request-bridge",
|
|
31605
|
+
REQUEST_ONRAMP = "request-onramp",
|
|
31606
|
+
REQUEST_SWAP = "request-swap"
|
|
31604
31607
|
}
|
|
31605
31608
|
/**
|
|
31606
31609
|
* Represents a successful Sale transaction.
|
|
@@ -32026,6 +32029,9 @@ type WidgetEventData = {
|
|
|
32026
32029
|
[SaleEventType.CLOSE_WIDGET]: {};
|
|
32027
32030
|
[SaleEventType.TRANSACTION_SUCCESS]: SaleTransactionSuccess;
|
|
32028
32031
|
[SaleEventType.PAYMENT_METHOD]: SalePaymentMethod;
|
|
32032
|
+
[SaleEventType.REQUEST_BRIDGE]: {};
|
|
32033
|
+
[SaleEventType.REQUEST_SWAP]: {};
|
|
32034
|
+
[SaleEventType.REQUEST_ONRAMP]: {};
|
|
32029
32035
|
} & OrchestrationMapping & ProviderEventMapping;
|
|
32030
32036
|
};
|
|
32031
32037
|
/**
|
package/dist/index.js
CHANGED
|
@@ -151,7 +151,7 @@ const flattenProperties$1 = (properties) => {
|
|
|
151
151
|
};
|
|
152
152
|
|
|
153
153
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
154
|
-
const SDK_VERSION$1 = '1.4.
|
|
154
|
+
const SDK_VERSION$1 = '1.4.2';
|
|
155
155
|
let initialised$1 = false;
|
|
156
156
|
const isInitialised$1 = () => initialised$1;
|
|
157
157
|
const getReferrer$1 = () => {
|
|
@@ -11238,7 +11238,7 @@ class MultiRollupApiClients {
|
|
|
11238
11238
|
}
|
|
11239
11239
|
|
|
11240
11240
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
11241
|
-
const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-1.4.
|
|
11241
|
+
const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-1.4.2' };
|
|
11242
11242
|
const createConfig = ({ basePath, headers, }) => {
|
|
11243
11243
|
if (!basePath.trim()) {
|
|
11244
11244
|
throw Error('basePath can not be empty');
|
|
@@ -11310,7 +11310,7 @@ class APIError extends Error {
|
|
|
11310
11310
|
|
|
11311
11311
|
/* eslint-disable implicit-arrow-linebreak */
|
|
11312
11312
|
const defaultHeaders = {
|
|
11313
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.4.
|
|
11313
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.4.2',
|
|
11314
11314
|
};
|
|
11315
11315
|
/**
|
|
11316
11316
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -11743,7 +11743,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
11743
11743
|
chainID,
|
|
11744
11744
|
coreContractAddress,
|
|
11745
11745
|
registrationContractAddress,
|
|
11746
|
-
sdkVersion: 'ts-immutable-sdk-1.4.
|
|
11746
|
+
sdkVersion: 'ts-immutable-sdk-1.4.2',
|
|
11747
11747
|
});
|
|
11748
11748
|
/**
|
|
11749
11749
|
* Sets `sdkVersion` at the time of build
|
|
@@ -37039,7 +37039,7 @@ const flattenProperties = (properties) => {
|
|
|
37039
37039
|
};
|
|
37040
37040
|
|
|
37041
37041
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
37042
|
-
const SDK_VERSION = '1.4.
|
|
37042
|
+
const SDK_VERSION = '1.4.2';
|
|
37043
37043
|
let initialised = false;
|
|
37044
37044
|
const isInitialised = () => initialised;
|
|
37045
37045
|
const getReferrer = () => {
|
|
@@ -41264,6 +41264,9 @@ var SaleEventType;
|
|
|
41264
41264
|
SaleEventType["TRANSACTION_SUCCESS"] = "transaction-success";
|
|
41265
41265
|
SaleEventType["LANGUAGE_CHANGED"] = "language-changed";
|
|
41266
41266
|
SaleEventType["PAYMENT_METHOD"] = "payment-method";
|
|
41267
|
+
SaleEventType["REQUEST_BRIDGE"] = "request-bridge";
|
|
41268
|
+
SaleEventType["REQUEST_ONRAMP"] = "request-onramp";
|
|
41269
|
+
SaleEventType["REQUEST_SWAP"] = "request-swap";
|
|
41267
41270
|
})(SaleEventType || (SaleEventType = {}));
|
|
41268
41271
|
/**
|
|
41269
41272
|
* Enum representing Sale Widget available payment types.
|
|
@@ -42144,7 +42147,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
|
|
|
42144
42147
|
maxPriorityFeePerGas: BigNumber$1.from(10e9),
|
|
42145
42148
|
};
|
|
42146
42149
|
|
|
42147
|
-
const SDK_VERSION_MARKER = '1.4.
|
|
42150
|
+
const SDK_VERSION_MARKER = '1.4.2';
|
|
42148
42151
|
// This SDK version is replaced by the `yarn build` command ran on the root level
|
|
42149
42152
|
const globalPackageVersion = () => SDK_VERSION_MARKER;
|
|
42150
42153
|
|
package/dist/orderbook.js
CHANGED
|
@@ -126,7 +126,7 @@ const flattenProperties = (properties) => {
|
|
|
126
126
|
};
|
|
127
127
|
|
|
128
128
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
129
|
-
const SDK_VERSION = '1.4.
|
|
129
|
+
const SDK_VERSION = '1.4.2';
|
|
130
130
|
let initialised = false;
|
|
131
131
|
const isInitialised = () => initialised;
|
|
132
132
|
const getReferrer = () => {
|
package/dist/passport.js
CHANGED
|
@@ -9136,7 +9136,7 @@ class MultiRollupApiClients {
|
|
|
9136
9136
|
}
|
|
9137
9137
|
|
|
9138
9138
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
9139
|
-
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.4.
|
|
9139
|
+
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.4.2' };
|
|
9140
9140
|
const createConfig = ({ basePath, headers, }) => {
|
|
9141
9141
|
if (!basePath.trim()) {
|
|
9142
9142
|
throw Error('basePath can not be empty');
|
|
@@ -9316,7 +9316,7 @@ const flattenProperties = (properties) => {
|
|
|
9316
9316
|
};
|
|
9317
9317
|
|
|
9318
9318
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
9319
|
-
const SDK_VERSION = '1.4.
|
|
9319
|
+
const SDK_VERSION = '1.4.2';
|
|
9320
9320
|
let initialised = false;
|
|
9321
9321
|
const isInitialised = () => initialised;
|
|
9322
9322
|
const getReferrer = () => {
|
|
@@ -9491,7 +9491,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
9491
9491
|
chainID,
|
|
9492
9492
|
coreContractAddress,
|
|
9493
9493
|
registrationContractAddress,
|
|
9494
|
-
sdkVersion: 'ts-immutable-sdk-1.4.
|
|
9494
|
+
sdkVersion: 'ts-immutable-sdk-1.4.2',
|
|
9495
9495
|
});
|
|
9496
9496
|
/**
|
|
9497
9497
|
* Sets `sdkVersion` at the time of build
|
package/dist/x.js
CHANGED
|
@@ -131,7 +131,7 @@ const flattenProperties = (properties) => {
|
|
|
131
131
|
};
|
|
132
132
|
|
|
133
133
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
134
|
-
const SDK_VERSION = '1.4.
|
|
134
|
+
const SDK_VERSION = '1.4.2';
|
|
135
135
|
let initialised = false;
|
|
136
136
|
const isInitialised = () => initialised;
|
|
137
137
|
const getReferrer = () => {
|
|
@@ -270,7 +270,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
270
270
|
chainID,
|
|
271
271
|
coreContractAddress,
|
|
272
272
|
registrationContractAddress,
|
|
273
|
-
sdkVersion: 'ts-immutable-sdk-1.4.
|
|
273
|
+
sdkVersion: 'ts-immutable-sdk-1.4.2',
|
|
274
274
|
});
|
|
275
275
|
/**
|
|
276
276
|
* Sets `sdkVersion` at the time of build
|
package/package.json
CHANGED