@imtbl/sdk 1.19.5-alpha → 1.20.0-alpha
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/{BridgeWidget-24521d11.js → BridgeWidget-312cb2c2.js} +1 -1
- package/dist/browser/checkout/{HorizontalMenu-actual-6612c0c3.js → HorizontalMenu-actual-4dbb5c81.js} +1 -1
- package/dist/browser/checkout/{OnRampWidget-d264f707.js → OnRampWidget-1340f0cc.js} +1 -1
- package/dist/browser/checkout/SaleWidget-be034e41.js +2 -0
- package/dist/browser/checkout/{SpendingCapHero-0db6d7ed.js → SpendingCapHero-39ee51d6.js} +1 -1
- package/dist/browser/checkout/{SwapWidget-2c06420c.js → SwapWidget-e092d01c.js} +1 -1
- package/dist/browser/checkout/{TopUpView-d9658bbd.js → TopUpView-6e32a129.js} +1 -1
- package/dist/browser/checkout/{WalletWidget-43fb112d.js → WalletWidget-abb75fc8.js} +1 -1
- package/dist/browser/checkout/{auto-track-a398bcd2.js → auto-track-0ac33efe.js} +1 -1
- package/dist/browser/checkout/{balance-124a9c3c.js → balance-713e469c.js} +1 -1
- package/dist/browser/checkout/{index-5327f330.js → index-2d9d6340.js} +1 -1
- package/dist/browser/checkout/{index-dcf79a29.js → index-4f810b18.js} +1 -1
- package/dist/browser/checkout/{index-384fe7dd.js → index-63dc0a81.js} +1 -1
- package/dist/browser/checkout/{index-80d8482d.js → index-a8a9e072.js} +2 -2
- package/dist/browser/checkout/{index-e22be227.js → index-ad4dc41d.js} +1 -1
- package/dist/browser/checkout/{index-bc84abbd.js → index-ceb8406f.js} +1 -1
- package/dist/browser/checkout/{index-6e2b798d.js → index-d2f39097.js} +1 -1
- package/dist/browser/checkout/index-e0acfcc2.js +1 -0
- package/dist/browser/checkout/{index.umd-4fe7c784.js → index.umd-74591847.js} +1 -1
- package/dist/browser/checkout/{retry-21d3107e.js → retry-5e0ff99b.js} +1 -1
- package/dist/browser/checkout/sdk.js +4 -4
- package/dist/browser/checkout/widgets-esm.js +1 -1
- package/dist/browser/checkout/widgets.js +4 -4
- package/dist/checkout.js +41 -31
- 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 +46 -38
- package/dist/index.js +47 -38
- package/dist/orderbook.js +1 -1
- package/dist/passport.js +7 -8
- package/dist/x.js +6 -7
- package/package.json +1 -1
- package/dist/browser/checkout/SaleWidget-82dbc082.js +0 -2
- package/dist/browser/checkout/index-9ed7d230.js +0 -1
package/dist/index.cjs
CHANGED
|
@@ -52,7 +52,6 @@ function _interopNamespaceDefault(e) {
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
var encUtils__namespace = /*#__PURE__*/_interopNamespaceDefault(encUtils);
|
|
55
|
-
var elliptic__namespace = /*#__PURE__*/_interopNamespaceDefault(elliptic);
|
|
56
55
|
var crypto__namespace = /*#__PURE__*/_interopNamespaceDefault(crypto);
|
|
57
56
|
var Uniswap__namespace = /*#__PURE__*/_interopNamespaceDefault(Uniswap);
|
|
58
57
|
|
|
@@ -182,7 +181,7 @@ const flattenProperties$1 = (properties) => {
|
|
|
182
181
|
};
|
|
183
182
|
|
|
184
183
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
185
|
-
const SDK_VERSION$1 = '1.
|
|
184
|
+
const SDK_VERSION$1 = '1.20.0-alpha';
|
|
186
185
|
const getReferrer$1 = () => {
|
|
187
186
|
if (isNode$1()) {
|
|
188
187
|
return '';
|
|
@@ -13558,7 +13557,7 @@ class MultiRollupApiClients {
|
|
|
13558
13557
|
}
|
|
13559
13558
|
|
|
13560
13559
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
13561
|
-
const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.
|
|
13560
|
+
const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.20.0-alpha' };
|
|
13562
13561
|
const createConfig$1 = ({ basePath, headers, }) => {
|
|
13563
13562
|
if (!basePath.trim()) {
|
|
13564
13563
|
throw Error('basePath can not be empty');
|
|
@@ -13630,7 +13629,7 @@ class APIError extends Error {
|
|
|
13630
13629
|
|
|
13631
13630
|
/* eslint-disable implicit-arrow-linebreak */
|
|
13632
13631
|
const defaultHeaders$1 = {
|
|
13633
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.
|
|
13632
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.20.0-alpha',
|
|
13634
13633
|
};
|
|
13635
13634
|
/**
|
|
13636
13635
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -14104,7 +14103,7 @@ var blockchain_data = /*#__PURE__*/Object.freeze({
|
|
|
14104
14103
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
14105
14104
|
class ApiConfiguration extends index$2.Configuration {
|
|
14106
14105
|
}
|
|
14107
|
-
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.
|
|
14106
|
+
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.20.0-alpha' };
|
|
14108
14107
|
/**
|
|
14109
14108
|
* @dev use createImmutableXConfiguration instead
|
|
14110
14109
|
*/
|
|
@@ -14143,7 +14142,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
14143
14142
|
chainID,
|
|
14144
14143
|
coreContractAddress,
|
|
14145
14144
|
registrationContractAddress,
|
|
14146
|
-
sdkVersion: 'ts-immutable-sdk-1.
|
|
14145
|
+
sdkVersion: 'ts-immutable-sdk-1.20.0-alpha',
|
|
14147
14146
|
baseConfig,
|
|
14148
14147
|
});
|
|
14149
14148
|
const production = ({ baseConfig }) => createImmutableXConfiguration({
|
|
@@ -16355,8 +16354,7 @@ const DEFAULT_ACCOUNT_APPLICATION = 'immutablex';
|
|
|
16355
16354
|
const DEFAULT_ACCOUNT_INDEX = '1';
|
|
16356
16355
|
const prime = new BN$2('800000000000011000000000000000000000000000000000000000000000001', 16);
|
|
16357
16356
|
const order = new BN$2('08000000 00000010 ffffffff ffffffff b781126d cae7b232 1e66a241 adc64d2f', 16);
|
|
16358
|
-
|
|
16359
|
-
const starkEc = new elliptic__namespace.ec(new elliptic__namespace.curves.PresetCurve({
|
|
16357
|
+
const starkEc = new elliptic.ec(new elliptic.curves.PresetCurve({
|
|
16360
16358
|
type: 'short',
|
|
16361
16359
|
prime: null,
|
|
16362
16360
|
p: prime,
|
|
@@ -16545,7 +16543,7 @@ https://docs.starkware.co/starkex-v4/crypto/stark-curve
|
|
|
16545
16543
|
*/
|
|
16546
16544
|
const starkEcOrder = new BN$2('08000000 00000010 ffffffff ffffffff b781126d cae7b232 1e66a241 adc64d2f', 16);
|
|
16547
16545
|
// eslint-disable-next-line new-cap
|
|
16548
|
-
new
|
|
16546
|
+
new elliptic.ec(new elliptic.curves.PresetCurve({
|
|
16549
16547
|
type: 'short',
|
|
16550
16548
|
prime: null,
|
|
16551
16549
|
p: '08000000 00000011 00000000 00000000 00000000 00000000 00000000 00000001',
|
|
@@ -45439,7 +45437,7 @@ const flattenProperties = (properties) => {
|
|
|
45439
45437
|
};
|
|
45440
45438
|
|
|
45441
45439
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
45442
|
-
const SDK_VERSION = '1.
|
|
45440
|
+
const SDK_VERSION = '1.20.0-alpha';
|
|
45443
45441
|
const getReferrer = () => {
|
|
45444
45442
|
if (isNode()) {
|
|
45445
45443
|
return '';
|
|
@@ -50634,7 +50632,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
|
|
|
50634
50632
|
maxPriorityFeePerGas: ethers.BigNumber.from(10e9),
|
|
50635
50633
|
};
|
|
50636
50634
|
|
|
50637
|
-
const SDK_VERSION_MARKER = '1.
|
|
50635
|
+
const SDK_VERSION_MARKER = '1.20.0-alpha';
|
|
50638
50636
|
// This SDK version is replaced by the `yarn build` command ran on the root level
|
|
50639
50637
|
const globalPackageVersion = () => SDK_VERSION_MARKER;
|
|
50640
50638
|
|
|
@@ -54145,44 +54143,54 @@ class FiatRampService {
|
|
|
54145
54143
|
return (await this.getTransakWidgetUrl(params));
|
|
54146
54144
|
}
|
|
54147
54145
|
async getTransakWidgetUrl(params) {
|
|
54148
|
-
let widgetUrl = `${TRANSAK_API_BASE_URL[this.config.environment]}?`;
|
|
54149
54146
|
const onRampConfig = (await this.config.remote.getConfig('onramp'));
|
|
54150
|
-
const
|
|
54151
|
-
|
|
54152
|
-
|
|
54153
|
-
|
|
54154
|
-
|
|
54155
|
-
|
|
54156
|
-
|
|
54157
|
-
|
|
54158
|
-
|
|
54159
|
-
|
|
54160
|
-
|
|
54161
|
-
|
|
54162
|
-
+ `${zkevmNetwork}&`
|
|
54163
|
-
+ `${defaultPaymentMethod}&`
|
|
54164
|
-
+ `${disableBankTransfer}&`
|
|
54165
|
-
+ `${productsAvailed}&`
|
|
54166
|
-
+ `${exchangeScreenTitle}&`
|
|
54167
|
-
+ `${themeColor}&`
|
|
54168
|
-
+ `${defaultFiat}`;
|
|
54147
|
+
const widgetUrl = TRANSAK_API_BASE_URL[this.config.environment];
|
|
54148
|
+
let widgetParams = {
|
|
54149
|
+
apiKey: onRampConfig[OnRampProvider.TRANSAK].publishableApiKey,
|
|
54150
|
+
network: 'immutablezkevm',
|
|
54151
|
+
defaultPaymentMethod: 'credit_debit_card',
|
|
54152
|
+
disablePaymentMethods: 'sepa_bank_transfer,gbp_bank_transfer,pm_cash_app,pm_jwire,pm_paymaya,'
|
|
54153
|
+
+ 'pm_bpi,pm_ubp,pm_grabpay,pm_shopeepay,pm_gcash,pm_pix,pm_astropay,pm_pse,inr_bank_transfer',
|
|
54154
|
+
productsAvailed: 'buy',
|
|
54155
|
+
exchangeScreenTitle: 'Buy',
|
|
54156
|
+
themeColor: '0D0D0D',
|
|
54157
|
+
defaultFiatCurrency: 'usd',
|
|
54158
|
+
};
|
|
54169
54159
|
if (params.isPassport && params.email) {
|
|
54170
|
-
|
|
54171
|
-
|
|
54160
|
+
widgetParams = {
|
|
54161
|
+
...widgetParams,
|
|
54162
|
+
email: encodeURIComponent(params.email),
|
|
54163
|
+
isAutoFillUserData: true,
|
|
54164
|
+
disableWalletAddressForm: true,
|
|
54165
|
+
};
|
|
54172
54166
|
}
|
|
54173
54167
|
if (params.tokenAmount && params.tokenSymbol) {
|
|
54174
|
-
|
|
54168
|
+
widgetParams = {
|
|
54169
|
+
...widgetParams,
|
|
54170
|
+
defaultCryptoAmount: params.tokenAmount,
|
|
54171
|
+
cryptoCurrencyCode: params.tokenSymbol,
|
|
54172
|
+
};
|
|
54175
54173
|
}
|
|
54176
54174
|
else {
|
|
54177
|
-
|
|
54175
|
+
widgetParams = {
|
|
54176
|
+
...widgetParams,
|
|
54177
|
+
defaultFiatAmount: '50',
|
|
54178
|
+
defaultCryptoCurrency: 'IMX',
|
|
54179
|
+
};
|
|
54178
54180
|
}
|
|
54179
54181
|
if (params.walletAddress) {
|
|
54180
|
-
|
|
54182
|
+
widgetParams = {
|
|
54183
|
+
...widgetParams,
|
|
54184
|
+
walletAddress: params.walletAddress,
|
|
54185
|
+
};
|
|
54181
54186
|
}
|
|
54182
54187
|
if (params.allowedTokens) {
|
|
54183
|
-
|
|
54188
|
+
widgetParams = {
|
|
54189
|
+
...widgetParams,
|
|
54190
|
+
cryptoCurrencyList: params.allowedTokens?.join(',').toLowerCase(),
|
|
54191
|
+
};
|
|
54184
54192
|
}
|
|
54185
|
-
return widgetUrl
|
|
54193
|
+
return `${widgetUrl}?${new URLSearchParams(widgetParams).toString()}`;
|
|
54186
54194
|
}
|
|
54187
54195
|
}
|
|
54188
54196
|
|
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import BN$2 from 'bn.js';
|
|
|
7
7
|
import * as encUtils from 'enc-utils';
|
|
8
8
|
import { splitSignature } from '@ethersproject/bytes';
|
|
9
9
|
import hashJS from 'hash.js';
|
|
10
|
-
import
|
|
10
|
+
import { ec, curves } from 'elliptic';
|
|
11
11
|
import { hdkey } from 'ethereumjs-wallet';
|
|
12
12
|
import assert from 'assert';
|
|
13
13
|
import { utils as utils$3, Contract as Contract$1, ContractFactory, BigNumber as BigNumber$1, errors, ethers, constants as constants$1, providers } from 'ethers';
|
|
@@ -159,7 +159,7 @@ const flattenProperties$1 = (properties) => {
|
|
|
159
159
|
};
|
|
160
160
|
|
|
161
161
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
162
|
-
const SDK_VERSION$1 = '1.
|
|
162
|
+
const SDK_VERSION$1 = '1.20.0-alpha';
|
|
163
163
|
const getReferrer$1 = () => {
|
|
164
164
|
if (isNode$1()) {
|
|
165
165
|
return '';
|
|
@@ -13535,7 +13535,7 @@ class MultiRollupApiClients {
|
|
|
13535
13535
|
}
|
|
13536
13536
|
|
|
13537
13537
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
13538
|
-
const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.
|
|
13538
|
+
const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.20.0-alpha' };
|
|
13539
13539
|
const createConfig$1 = ({ basePath, headers, }) => {
|
|
13540
13540
|
if (!basePath.trim()) {
|
|
13541
13541
|
throw Error('basePath can not be empty');
|
|
@@ -13607,7 +13607,7 @@ class APIError extends Error {
|
|
|
13607
13607
|
|
|
13608
13608
|
/* eslint-disable implicit-arrow-linebreak */
|
|
13609
13609
|
const defaultHeaders$1 = {
|
|
13610
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.
|
|
13610
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.20.0-alpha',
|
|
13611
13611
|
};
|
|
13612
13612
|
/**
|
|
13613
13613
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -14081,7 +14081,7 @@ var blockchain_data = /*#__PURE__*/Object.freeze({
|
|
|
14081
14081
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
14082
14082
|
class ApiConfiguration extends index$2.Configuration {
|
|
14083
14083
|
}
|
|
14084
|
-
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.
|
|
14084
|
+
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.20.0-alpha' };
|
|
14085
14085
|
/**
|
|
14086
14086
|
* @dev use createImmutableXConfiguration instead
|
|
14087
14087
|
*/
|
|
@@ -14120,7 +14120,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
14120
14120
|
chainID,
|
|
14121
14121
|
coreContractAddress,
|
|
14122
14122
|
registrationContractAddress,
|
|
14123
|
-
sdkVersion: 'ts-immutable-sdk-1.
|
|
14123
|
+
sdkVersion: 'ts-immutable-sdk-1.20.0-alpha',
|
|
14124
14124
|
baseConfig,
|
|
14125
14125
|
});
|
|
14126
14126
|
const production = ({ baseConfig }) => createImmutableXConfiguration({
|
|
@@ -16332,8 +16332,7 @@ const DEFAULT_ACCOUNT_APPLICATION = 'immutablex';
|
|
|
16332
16332
|
const DEFAULT_ACCOUNT_INDEX = '1';
|
|
16333
16333
|
const prime = new BN$2('800000000000011000000000000000000000000000000000000000000000001', 16);
|
|
16334
16334
|
const order = new BN$2('08000000 00000010 ffffffff ffffffff b781126d cae7b232 1e66a241 adc64d2f', 16);
|
|
16335
|
-
|
|
16336
|
-
const starkEc = new elliptic.ec(new elliptic.curves.PresetCurve({
|
|
16335
|
+
const starkEc = new ec(new curves.PresetCurve({
|
|
16337
16336
|
type: 'short',
|
|
16338
16337
|
prime: null,
|
|
16339
16338
|
p: prime,
|
|
@@ -16522,7 +16521,7 @@ https://docs.starkware.co/starkex-v4/crypto/stark-curve
|
|
|
16522
16521
|
*/
|
|
16523
16522
|
const starkEcOrder = new BN$2('08000000 00000010 ffffffff ffffffff b781126d cae7b232 1e66a241 adc64d2f', 16);
|
|
16524
16523
|
// eslint-disable-next-line new-cap
|
|
16525
|
-
new
|
|
16524
|
+
new ec(new curves.PresetCurve({
|
|
16526
16525
|
type: 'short',
|
|
16527
16526
|
prime: null,
|
|
16528
16527
|
p: '08000000 00000011 00000000 00000000 00000000 00000000 00000000 00000001',
|
|
@@ -45416,7 +45415,7 @@ const flattenProperties = (properties) => {
|
|
|
45416
45415
|
};
|
|
45417
45416
|
|
|
45418
45417
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
45419
|
-
const SDK_VERSION = '1.
|
|
45418
|
+
const SDK_VERSION = '1.20.0-alpha';
|
|
45420
45419
|
const getReferrer = () => {
|
|
45421
45420
|
if (isNode()) {
|
|
45422
45421
|
return '';
|
|
@@ -50611,7 +50610,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
|
|
|
50611
50610
|
maxPriorityFeePerGas: BigNumber$1.from(10e9),
|
|
50612
50611
|
};
|
|
50613
50612
|
|
|
50614
|
-
const SDK_VERSION_MARKER = '1.
|
|
50613
|
+
const SDK_VERSION_MARKER = '1.20.0-alpha';
|
|
50615
50614
|
// This SDK version is replaced by the `yarn build` command ran on the root level
|
|
50616
50615
|
const globalPackageVersion = () => SDK_VERSION_MARKER;
|
|
50617
50616
|
|
|
@@ -54122,44 +54121,54 @@ class FiatRampService {
|
|
|
54122
54121
|
return (await this.getTransakWidgetUrl(params));
|
|
54123
54122
|
}
|
|
54124
54123
|
async getTransakWidgetUrl(params) {
|
|
54125
|
-
let widgetUrl = `${TRANSAK_API_BASE_URL[this.config.environment]}?`;
|
|
54126
54124
|
const onRampConfig = (await this.config.remote.getConfig('onramp'));
|
|
54127
|
-
const
|
|
54128
|
-
|
|
54129
|
-
|
|
54130
|
-
|
|
54131
|
-
|
|
54132
|
-
|
|
54133
|
-
|
|
54134
|
-
|
|
54135
|
-
|
|
54136
|
-
|
|
54137
|
-
|
|
54138
|
-
|
|
54139
|
-
+ `${zkevmNetwork}&`
|
|
54140
|
-
+ `${defaultPaymentMethod}&`
|
|
54141
|
-
+ `${disableBankTransfer}&`
|
|
54142
|
-
+ `${productsAvailed}&`
|
|
54143
|
-
+ `${exchangeScreenTitle}&`
|
|
54144
|
-
+ `${themeColor}&`
|
|
54145
|
-
+ `${defaultFiat}`;
|
|
54125
|
+
const widgetUrl = TRANSAK_API_BASE_URL[this.config.environment];
|
|
54126
|
+
let widgetParams = {
|
|
54127
|
+
apiKey: onRampConfig[OnRampProvider.TRANSAK].publishableApiKey,
|
|
54128
|
+
network: 'immutablezkevm',
|
|
54129
|
+
defaultPaymentMethod: 'credit_debit_card',
|
|
54130
|
+
disablePaymentMethods: 'sepa_bank_transfer,gbp_bank_transfer,pm_cash_app,pm_jwire,pm_paymaya,'
|
|
54131
|
+
+ 'pm_bpi,pm_ubp,pm_grabpay,pm_shopeepay,pm_gcash,pm_pix,pm_astropay,pm_pse,inr_bank_transfer',
|
|
54132
|
+
productsAvailed: 'buy',
|
|
54133
|
+
exchangeScreenTitle: 'Buy',
|
|
54134
|
+
themeColor: '0D0D0D',
|
|
54135
|
+
defaultFiatCurrency: 'usd',
|
|
54136
|
+
};
|
|
54146
54137
|
if (params.isPassport && params.email) {
|
|
54147
|
-
|
|
54148
|
-
|
|
54138
|
+
widgetParams = {
|
|
54139
|
+
...widgetParams,
|
|
54140
|
+
email: encodeURIComponent(params.email),
|
|
54141
|
+
isAutoFillUserData: true,
|
|
54142
|
+
disableWalletAddressForm: true,
|
|
54143
|
+
};
|
|
54149
54144
|
}
|
|
54150
54145
|
if (params.tokenAmount && params.tokenSymbol) {
|
|
54151
|
-
|
|
54146
|
+
widgetParams = {
|
|
54147
|
+
...widgetParams,
|
|
54148
|
+
defaultCryptoAmount: params.tokenAmount,
|
|
54149
|
+
cryptoCurrencyCode: params.tokenSymbol,
|
|
54150
|
+
};
|
|
54152
54151
|
}
|
|
54153
54152
|
else {
|
|
54154
|
-
|
|
54153
|
+
widgetParams = {
|
|
54154
|
+
...widgetParams,
|
|
54155
|
+
defaultFiatAmount: '50',
|
|
54156
|
+
defaultCryptoCurrency: 'IMX',
|
|
54157
|
+
};
|
|
54155
54158
|
}
|
|
54156
54159
|
if (params.walletAddress) {
|
|
54157
|
-
|
|
54160
|
+
widgetParams = {
|
|
54161
|
+
...widgetParams,
|
|
54162
|
+
walletAddress: params.walletAddress,
|
|
54163
|
+
};
|
|
54158
54164
|
}
|
|
54159
54165
|
if (params.allowedTokens) {
|
|
54160
|
-
|
|
54166
|
+
widgetParams = {
|
|
54167
|
+
...widgetParams,
|
|
54168
|
+
cryptoCurrencyList: params.allowedTokens?.join(',').toLowerCase(),
|
|
54169
|
+
};
|
|
54161
54170
|
}
|
|
54162
|
-
return widgetUrl
|
|
54171
|
+
return `${widgetUrl}?${new URLSearchParams(widgetParams).toString()}`;
|
|
54163
54172
|
}
|
|
54164
54173
|
}
|
|
54165
54174
|
|
package/dist/orderbook.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.
|
|
134
|
+
const SDK_VERSION = '1.20.0-alpha';
|
|
135
135
|
const getReferrer = () => {
|
|
136
136
|
if (isNode()) {
|
|
137
137
|
return '';
|
package/dist/passport.js
CHANGED
|
@@ -7,7 +7,7 @@ import BN from 'bn.js';
|
|
|
7
7
|
import * as encUtils from 'enc-utils';
|
|
8
8
|
import '@ethersproject/bytes';
|
|
9
9
|
import hashJS from 'hash.js';
|
|
10
|
-
import
|
|
10
|
+
import { ec, curves } from 'elliptic';
|
|
11
11
|
import 'ethereumjs-wallet';
|
|
12
12
|
import 'assert';
|
|
13
13
|
import { BigNumber, Contract, errors, utils as utils$2, ethers, constants } from 'ethers';
|
|
@@ -11350,7 +11350,7 @@ class MultiRollupApiClients {
|
|
|
11350
11350
|
}
|
|
11351
11351
|
|
|
11352
11352
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
11353
|
-
const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-1.
|
|
11353
|
+
const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-1.20.0-alpha' };
|
|
11354
11354
|
const createConfig$1 = ({ basePath, headers, }) => {
|
|
11355
11355
|
if (!basePath.trim()) {
|
|
11356
11356
|
throw Error('basePath can not be empty');
|
|
@@ -11529,7 +11529,7 @@ const flattenProperties = (properties) => {
|
|
|
11529
11529
|
};
|
|
11530
11530
|
|
|
11531
11531
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
11532
|
-
const SDK_VERSION = '1.
|
|
11532
|
+
const SDK_VERSION = '1.20.0-alpha';
|
|
11533
11533
|
const getReferrer = () => {
|
|
11534
11534
|
if (isNode()) {
|
|
11535
11535
|
return '';
|
|
@@ -11779,7 +11779,7 @@ const addKeysToHeadersOverride = (baseConfig, overrides) => {
|
|
|
11779
11779
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
11780
11780
|
class ApiConfiguration extends index$2.Configuration {
|
|
11781
11781
|
}
|
|
11782
|
-
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.
|
|
11782
|
+
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.20.0-alpha' };
|
|
11783
11783
|
/**
|
|
11784
11784
|
* @dev use createImmutableXConfiguration instead
|
|
11785
11785
|
*/
|
|
@@ -11818,7 +11818,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
11818
11818
|
chainID,
|
|
11819
11819
|
coreContractAddress,
|
|
11820
11820
|
registrationContractAddress,
|
|
11821
|
-
sdkVersion: 'ts-immutable-sdk-1.
|
|
11821
|
+
sdkVersion: 'ts-immutable-sdk-1.20.0-alpha',
|
|
11822
11822
|
baseConfig,
|
|
11823
11823
|
});
|
|
11824
11824
|
const production = ({ baseConfig }) => createImmutableXConfiguration({
|
|
@@ -14001,8 +14001,7 @@ const constantPointsHex = [
|
|
|
14001
14001
|
];
|
|
14002
14002
|
const prime = new BN('800000000000011000000000000000000000000000000000000000000000001', 16);
|
|
14003
14003
|
const order = new BN('08000000 00000010 ffffffff ffffffff b781126d cae7b232 1e66a241 adc64d2f', 16);
|
|
14004
|
-
|
|
14005
|
-
const starkEc = new elliptic.ec(new elliptic.curves.PresetCurve({
|
|
14004
|
+
const starkEc = new ec(new curves.PresetCurve({
|
|
14006
14005
|
type: 'short',
|
|
14007
14006
|
prime: null,
|
|
14008
14007
|
p: prime,
|
|
@@ -14071,7 +14070,7 @@ https://docs.starkware.co/starkex-v4/crypto/stark-curve
|
|
|
14071
14070
|
*/
|
|
14072
14071
|
const starkEcOrder = new BN('08000000 00000010 ffffffff ffffffff b781126d cae7b232 1e66a241 adc64d2f', 16);
|
|
14073
14072
|
// eslint-disable-next-line new-cap
|
|
14074
|
-
new
|
|
14073
|
+
new ec(new curves.PresetCurve({
|
|
14075
14074
|
type: 'short',
|
|
14076
14075
|
prime: null,
|
|
14077
14076
|
p: '08000000 00000011 00000000 00000000 00000000 00000000 00000000 00000001',
|
package/dist/x.js
CHANGED
|
@@ -7,7 +7,7 @@ import BN from 'bn.js';
|
|
|
7
7
|
import * as encUtils from 'enc-utils';
|
|
8
8
|
import { splitSignature } from '@ethersproject/bytes';
|
|
9
9
|
import hashJS from 'hash.js';
|
|
10
|
-
import
|
|
10
|
+
import { ec, curves } from 'elliptic';
|
|
11
11
|
import { hdkey } from 'ethereumjs-wallet';
|
|
12
12
|
import 'assert';
|
|
13
13
|
import { utils, Contract, ContractFactory, ethers } from 'ethers';
|
|
@@ -8953,7 +8953,7 @@ const flattenProperties = (properties) => {
|
|
|
8953
8953
|
};
|
|
8954
8954
|
|
|
8955
8955
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
8956
|
-
const SDK_VERSION = '1.
|
|
8956
|
+
const SDK_VERSION = '1.20.0-alpha';
|
|
8957
8957
|
const getReferrer = () => {
|
|
8958
8958
|
if (isNode()) {
|
|
8959
8959
|
return '';
|
|
@@ -9196,7 +9196,7 @@ const addKeysToHeadersOverride = (baseConfig, overrides) => {
|
|
|
9196
9196
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
9197
9197
|
class ApiConfiguration extends index$2.Configuration {
|
|
9198
9198
|
}
|
|
9199
|
-
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.
|
|
9199
|
+
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.20.0-alpha' };
|
|
9200
9200
|
/**
|
|
9201
9201
|
* @dev use createImmutableXConfiguration instead
|
|
9202
9202
|
*/
|
|
@@ -9235,7 +9235,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
9235
9235
|
chainID,
|
|
9236
9236
|
coreContractAddress,
|
|
9237
9237
|
registrationContractAddress,
|
|
9238
|
-
sdkVersion: 'ts-immutable-sdk-1.
|
|
9238
|
+
sdkVersion: 'ts-immutable-sdk-1.20.0-alpha',
|
|
9239
9239
|
baseConfig,
|
|
9240
9240
|
});
|
|
9241
9241
|
const production = ({ baseConfig }) => createImmutableXConfiguration({
|
|
@@ -11447,8 +11447,7 @@ const DEFAULT_ACCOUNT_APPLICATION = 'immutablex';
|
|
|
11447
11447
|
const DEFAULT_ACCOUNT_INDEX = '1';
|
|
11448
11448
|
const prime = new BN('800000000000011000000000000000000000000000000000000000000000001', 16);
|
|
11449
11449
|
const order = new BN('08000000 00000010 ffffffff ffffffff b781126d cae7b232 1e66a241 adc64d2f', 16);
|
|
11450
|
-
|
|
11451
|
-
const starkEc = new elliptic.ec(new elliptic.curves.PresetCurve({
|
|
11450
|
+
const starkEc = new ec(new curves.PresetCurve({
|
|
11452
11451
|
type: 'short',
|
|
11453
11452
|
prime: null,
|
|
11454
11453
|
p: prime,
|
|
@@ -11637,7 +11636,7 @@ https://docs.starkware.co/starkex-v4/crypto/stark-curve
|
|
|
11637
11636
|
*/
|
|
11638
11637
|
const starkEcOrder = new BN('08000000 00000010 ffffffff ffffffff b781126d cae7b232 1e66a241 adc64d2f', 16);
|
|
11639
11638
|
// eslint-disable-next-line new-cap
|
|
11640
|
-
new
|
|
11639
|
+
new ec(new curves.PresetCurve({
|
|
11641
11640
|
type: 'short',
|
|
11642
11641
|
prime: null,
|
|
11643
11642
|
p: '08000000 00000011 00000000 00000000 00000000 00000000 00000000 00000001',
|
package/package.json
CHANGED