@imtbl/sdk 1.15.1-alpha.2 → 1.15.3-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/index.cjs CHANGED
@@ -9,7 +9,7 @@ var BN$2 = require('bn.js');
9
9
  var encUtils = require('enc-utils');
10
10
  var bytes = require('@ethersproject/bytes');
11
11
  var hashJS = require('hash.js');
12
- var elliptic = require('elliptic');
12
+ var pkg = require('elliptic');
13
13
  var ethereumjsWallet = require('ethereumjs-wallet');
14
14
  var assert = require('assert');
15
15
  var ethers = require('ethers');
@@ -52,6 +52,7 @@ function _interopNamespaceDefault(e) {
52
52
  }
53
53
 
54
54
  var encUtils__namespace = /*#__PURE__*/_interopNamespaceDefault(encUtils);
55
+ var pkg__namespace = /*#__PURE__*/_interopNamespaceDefault(pkg);
55
56
  var crypto__namespace = /*#__PURE__*/_interopNamespaceDefault(crypto);
56
57
  var Uniswap__namespace = /*#__PURE__*/_interopNamespaceDefault(Uniswap);
57
58
 
@@ -181,7 +182,7 @@ const flattenProperties$1 = (properties) => {
181
182
  };
182
183
 
183
184
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
184
- const SDK_VERSION$1 = '1.15.1-alpha.2';
185
+ const SDK_VERSION$1 = '1.15.3-alpha';
185
186
  const getReferrer$1 = () => {
186
187
  if (isNode$1()) {
187
188
  return '';
@@ -13557,7 +13558,7 @@ class MultiRollupApiClients {
13557
13558
  }
13558
13559
 
13559
13560
  // eslint-disable-next-line @typescript-eslint/naming-convention
13560
- const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.15.1-alpha.2' };
13561
+ const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.15.3-alpha' };
13561
13562
  const createConfig$1 = ({ basePath, headers, }) => {
13562
13563
  if (!basePath.trim()) {
13563
13564
  throw Error('basePath can not be empty');
@@ -13629,7 +13630,7 @@ class APIError extends Error {
13629
13630
 
13630
13631
  /* eslint-disable implicit-arrow-linebreak */
13631
13632
  const defaultHeaders$1 = {
13632
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.15.1-alpha.2',
13633
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.15.3-alpha',
13633
13634
  };
13634
13635
  /**
13635
13636
  * createAPIConfiguration to create a custom Configuration
@@ -14106,7 +14107,7 @@ var blockchain_data = /*#__PURE__*/Object.freeze({
14106
14107
  /* eslint-disable @typescript-eslint/naming-convention */
14107
14108
  class ApiConfiguration extends index$2.Configuration {
14108
14109
  }
14109
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.15.1-alpha.2' };
14110
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.15.3-alpha' };
14110
14111
  /**
14111
14112
  * @dev use createImmutableXConfiguration instead
14112
14113
  */
@@ -14141,7 +14142,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
14141
14142
  chainID,
14142
14143
  coreContractAddress,
14143
14144
  registrationContractAddress,
14144
- sdkVersion: 'ts-immutable-sdk-1.15.1-alpha.2',
14145
+ sdkVersion: 'ts-immutable-sdk-1.15.3-alpha',
14145
14146
  });
14146
14147
  /**
14147
14148
  * Sets `sdkVersion` at the time of build
@@ -16356,7 +16357,7 @@ const DEFAULT_ACCOUNT_APPLICATION = 'immutablex';
16356
16357
  const DEFAULT_ACCOUNT_INDEX = '1';
16357
16358
  const prime = new BN$2('800000000000011000000000000000000000000000000000000000000000001', 16);
16358
16359
  const order = new BN$2('08000000 00000010 ffffffff ffffffff b781126d cae7b232 1e66a241 adc64d2f', 16);
16359
- const starkEc = new elliptic.ec(new elliptic.curves.PresetCurve({
16360
+ const starkEc = new pkg.ec(new pkg.curves.PresetCurve({
16360
16361
  type: 'short',
16361
16362
  prime: null,
16362
16363
  p: prime,
@@ -16520,6 +16521,7 @@ async function getStarkPublicKeyFromImx(ethAddress) {
16520
16521
  return undefined;
16521
16522
  }
16522
16523
 
16524
+ const { ec, curves } = pkg__namespace;
16523
16525
  /*
16524
16526
  Stark-friendly elliptic curve
16525
16527
 
@@ -16545,7 +16547,7 @@ https://docs.starkware.co/starkex-v4/crypto/stark-curve
16545
16547
  */
16546
16548
  const starkEcOrder = new BN$2('08000000 00000010 ffffffff ffffffff b781126d cae7b232 1e66a241 adc64d2f', 16);
16547
16549
  // eslint-disable-next-line new-cap
16548
- new elliptic.ec(new elliptic.curves.PresetCurve({
16550
+ new ec(new curves.PresetCurve({
16549
16551
  type: 'short',
16550
16552
  prime: null,
16551
16553
  p: '08000000 00000011 00000000 00000000 00000000 00000000 00000000 00000001',
@@ -45437,7 +45439,7 @@ const flattenProperties = (properties) => {
45437
45439
  };
45438
45440
 
45439
45441
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
45440
- const SDK_VERSION = '1.15.1-alpha.2';
45442
+ const SDK_VERSION = '1.15.3-alpha';
45441
45443
  const getReferrer = () => {
45442
45444
  if (isNode()) {
45443
45445
  return '';
@@ -50617,7 +50619,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
50617
50619
  maxPriorityFeePerGas: ethers.BigNumber.from(10e9),
50618
50620
  };
50619
50621
 
50620
- const SDK_VERSION_MARKER = '1.15.1-alpha.2';
50622
+ const SDK_VERSION_MARKER = '1.15.3-alpha';
50621
50623
  // This SDK version is replaced by the `yarn build` command ran on the root level
50622
50624
  const globalPackageVersion = () => SDK_VERSION_MARKER;
50623
50625
 
@@ -54147,7 +54149,7 @@ class FiatRampService {
54147
54149
  widgetUrl += `&email=${encodedEmail}&isAutoFillUserData=true&disableWalletAddressForm=true`;
54148
54150
  }
54149
54151
  if (params.tokenAmount && params.tokenSymbol) {
54150
- widgetUrl += `&defaultCryptoAmount=${params.tokenAmount}&cryptoCurrencyCode=${params.tokenSymbol}`;
54152
+ widgetUrl += `&defaultCryptoAmount=${params.tokenAmount}&defaultCryptoCurrency=${params.tokenSymbol}`;
54151
54153
  }
54152
54154
  else {
54153
54155
  widgetUrl += '&defaultCryptoCurrency=IMX';
package/dist/index.js CHANGED
@@ -7,7 +7,8 @@ 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 { ec, curves } from 'elliptic';
10
+ import * as pkg from 'elliptic';
11
+ import { ec as ec$1, curves as curves$1 } from 'elliptic';
11
12
  import { hdkey } from 'ethereumjs-wallet';
12
13
  import assert from 'assert';
13
14
  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 +160,7 @@ const flattenProperties$1 = (properties) => {
159
160
  };
160
161
 
161
162
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
162
- const SDK_VERSION$1 = '1.15.1-alpha.2';
163
+ const SDK_VERSION$1 = '1.15.3-alpha';
163
164
  const getReferrer$1 = () => {
164
165
  if (isNode$1()) {
165
166
  return '';
@@ -13535,7 +13536,7 @@ class MultiRollupApiClients {
13535
13536
  }
13536
13537
 
13537
13538
  // eslint-disable-next-line @typescript-eslint/naming-convention
13538
- const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.15.1-alpha.2' };
13539
+ const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.15.3-alpha' };
13539
13540
  const createConfig$1 = ({ basePath, headers, }) => {
13540
13541
  if (!basePath.trim()) {
13541
13542
  throw Error('basePath can not be empty');
@@ -13607,7 +13608,7 @@ class APIError extends Error {
13607
13608
 
13608
13609
  /* eslint-disable implicit-arrow-linebreak */
13609
13610
  const defaultHeaders$1 = {
13610
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.15.1-alpha.2',
13611
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.15.3-alpha',
13611
13612
  };
13612
13613
  /**
13613
13614
  * createAPIConfiguration to create a custom Configuration
@@ -14084,7 +14085,7 @@ var blockchain_data = /*#__PURE__*/Object.freeze({
14084
14085
  /* eslint-disable @typescript-eslint/naming-convention */
14085
14086
  class ApiConfiguration extends index$2.Configuration {
14086
14087
  }
14087
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.15.1-alpha.2' };
14088
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.15.3-alpha' };
14088
14089
  /**
14089
14090
  * @dev use createImmutableXConfiguration instead
14090
14091
  */
@@ -14119,7 +14120,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
14119
14120
  chainID,
14120
14121
  coreContractAddress,
14121
14122
  registrationContractAddress,
14122
- sdkVersion: 'ts-immutable-sdk-1.15.1-alpha.2',
14123
+ sdkVersion: 'ts-immutable-sdk-1.15.3-alpha',
14123
14124
  });
14124
14125
  /**
14125
14126
  * Sets `sdkVersion` at the time of build
@@ -16334,7 +16335,7 @@ const DEFAULT_ACCOUNT_APPLICATION = 'immutablex';
16334
16335
  const DEFAULT_ACCOUNT_INDEX = '1';
16335
16336
  const prime = new BN$2('800000000000011000000000000000000000000000000000000000000000001', 16);
16336
16337
  const order = new BN$2('08000000 00000010 ffffffff ffffffff b781126d cae7b232 1e66a241 adc64d2f', 16);
16337
- const starkEc = new ec(new curves.PresetCurve({
16338
+ const starkEc = new ec$1(new curves$1.PresetCurve({
16338
16339
  type: 'short',
16339
16340
  prime: null,
16340
16341
  p: prime,
@@ -16498,6 +16499,7 @@ async function getStarkPublicKeyFromImx(ethAddress) {
16498
16499
  return undefined;
16499
16500
  }
16500
16501
 
16502
+ const { ec, curves } = pkg;
16501
16503
  /*
16502
16504
  Stark-friendly elliptic curve
16503
16505
 
@@ -45415,7 +45417,7 @@ const flattenProperties = (properties) => {
45415
45417
  };
45416
45418
 
45417
45419
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
45418
- const SDK_VERSION = '1.15.1-alpha.2';
45420
+ const SDK_VERSION = '1.15.3-alpha';
45419
45421
  const getReferrer = () => {
45420
45422
  if (isNode()) {
45421
45423
  return '';
@@ -50595,7 +50597,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
50595
50597
  maxPriorityFeePerGas: BigNumber$1.from(10e9),
50596
50598
  };
50597
50599
 
50598
- const SDK_VERSION_MARKER = '1.15.1-alpha.2';
50600
+ const SDK_VERSION_MARKER = '1.15.3-alpha';
50599
50601
  // This SDK version is replaced by the `yarn build` command ran on the root level
50600
50602
  const globalPackageVersion = () => SDK_VERSION_MARKER;
50601
50603
 
@@ -54125,7 +54127,7 @@ class FiatRampService {
54125
54127
  widgetUrl += `&email=${encodedEmail}&isAutoFillUserData=true&disableWalletAddressForm=true`;
54126
54128
  }
54127
54129
  if (params.tokenAmount && params.tokenSymbol) {
54128
- widgetUrl += `&defaultCryptoAmount=${params.tokenAmount}&cryptoCurrencyCode=${params.tokenSymbol}`;
54130
+ widgetUrl += `&defaultCryptoAmount=${params.tokenAmount}&defaultCryptoCurrency=${params.tokenSymbol}`;
54129
54131
  }
54130
54132
  else {
54131
54133
  widgetUrl += '&defaultCryptoCurrency=IMX';
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.15.1-alpha.2';
134
+ const SDK_VERSION = '1.15.3-alpha';
135
135
  const getReferrer = () => {
136
136
  if (isNode()) {
137
137
  return '';
package/dist/passport.js CHANGED
@@ -7,7 +7,8 @@ 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 { ec, curves } from 'elliptic';
10
+ import * as pkg from 'elliptic';
11
+ import { ec as ec$1, curves as curves$1 } from 'elliptic';
11
12
  import 'ethereumjs-wallet';
12
13
  import 'assert';
13
14
  import { BigNumber, Contract, errors, utils as utils$2, ethers, constants } from 'ethers';
@@ -11350,7 +11351,7 @@ class MultiRollupApiClients {
11350
11351
  }
11351
11352
 
11352
11353
  // eslint-disable-next-line @typescript-eslint/naming-convention
11353
- const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-1.15.1-alpha.2' };
11354
+ const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-1.15.3-alpha' };
11354
11355
  const createConfig$1 = ({ basePath, headers, }) => {
11355
11356
  if (!basePath.trim()) {
11356
11357
  throw Error('basePath can not be empty');
@@ -11529,7 +11530,7 @@ const flattenProperties = (properties) => {
11529
11530
  };
11530
11531
 
11531
11532
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
11532
- const SDK_VERSION = '1.15.1-alpha.2';
11533
+ const SDK_VERSION = '1.15.3-alpha';
11533
11534
  const getReferrer = () => {
11534
11535
  if (isNode()) {
11535
11536
  return '';
@@ -11746,7 +11747,7 @@ var KeyHeaders;
11746
11747
  /* eslint-disable @typescript-eslint/naming-convention */
11747
11748
  class ApiConfiguration extends index$2.Configuration {
11748
11749
  }
11749
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.15.1-alpha.2' };
11750
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.15.3-alpha' };
11750
11751
  /**
11751
11752
  * @dev use createImmutableXConfiguration instead
11752
11753
  */
@@ -11781,7 +11782,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
11781
11782
  chainID,
11782
11783
  coreContractAddress,
11783
11784
  registrationContractAddress,
11784
- sdkVersion: 'ts-immutable-sdk-1.15.1-alpha.2',
11785
+ sdkVersion: 'ts-immutable-sdk-1.15.3-alpha',
11785
11786
  });
11786
11787
  /**
11787
11788
  * Sets `sdkVersion` at the time of build
@@ -13967,7 +13968,7 @@ const constantPointsHex = [
13967
13968
  ];
13968
13969
  const prime = new BN('800000000000011000000000000000000000000000000000000000000000001', 16);
13969
13970
  const order = new BN('08000000 00000010 ffffffff ffffffff b781126d cae7b232 1e66a241 adc64d2f', 16);
13970
- const starkEc = new ec(new curves.PresetCurve({
13971
+ const starkEc = new ec$1(new curves$1.PresetCurve({
13971
13972
  type: 'short',
13972
13973
  prime: null,
13973
13974
  p: prime,
@@ -14011,6 +14012,7 @@ var Errors;
14011
14012
  Errors["StarkCurveInvalidMessageLength"] = "invalid message length";
14012
14013
  })(Errors || (Errors = {}));
14013
14014
 
14015
+ const { ec, curves } = pkg;
14014
14016
  /*
14015
14017
  Stark-friendly elliptic curve
14016
14018
 
package/dist/x.js CHANGED
@@ -7,7 +7,8 @@ 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 { ec, curves } from 'elliptic';
10
+ import * as pkg from 'elliptic';
11
+ import { ec as ec$1, curves as curves$1 } from 'elliptic';
11
12
  import { hdkey } from 'ethereumjs-wallet';
12
13
  import 'assert';
13
14
  import { utils, Contract, ContractFactory, ethers } from 'ethers';
@@ -8954,7 +8955,7 @@ const flattenProperties = (properties) => {
8954
8955
  };
8955
8956
 
8956
8957
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
8957
- const SDK_VERSION = '1.15.1-alpha.2';
8958
+ const SDK_VERSION = '1.15.3-alpha';
8958
8959
  const getReferrer = () => {
8959
8960
  if (isNode()) {
8960
8961
  return '';
@@ -9164,7 +9165,7 @@ class ImmutableConfiguration {
9164
9165
  /* eslint-disable @typescript-eslint/naming-convention */
9165
9166
  class ApiConfiguration extends index$2.Configuration {
9166
9167
  }
9167
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.15.1-alpha.2' };
9168
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.15.3-alpha' };
9168
9169
  /**
9169
9170
  * @dev use createImmutableXConfiguration instead
9170
9171
  */
@@ -9199,7 +9200,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
9199
9200
  chainID,
9200
9201
  coreContractAddress,
9201
9202
  registrationContractAddress,
9202
- sdkVersion: 'ts-immutable-sdk-1.15.1-alpha.2',
9203
+ sdkVersion: 'ts-immutable-sdk-1.15.3-alpha',
9203
9204
  });
9204
9205
  /**
9205
9206
  * Sets `sdkVersion` at the time of build
@@ -11414,7 +11415,7 @@ const DEFAULT_ACCOUNT_APPLICATION = 'immutablex';
11414
11415
  const DEFAULT_ACCOUNT_INDEX = '1';
11415
11416
  const prime = new BN('800000000000011000000000000000000000000000000000000000000000001', 16);
11416
11417
  const order = new BN('08000000 00000010 ffffffff ffffffff b781126d cae7b232 1e66a241 adc64d2f', 16);
11417
- const starkEc = new ec(new curves.PresetCurve({
11418
+ const starkEc = new ec$1(new curves$1.PresetCurve({
11418
11419
  type: 'short',
11419
11420
  prime: null,
11420
11421
  p: prime,
@@ -11578,6 +11579,7 @@ async function getStarkPublicKeyFromImx(ethAddress) {
11578
11579
  return undefined;
11579
11580
  }
11580
11581
 
11582
+ const { ec, curves } = pkg;
11581
11583
  /*
11582
11584
  Stark-friendly elliptic curve
11583
11585
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@imtbl/sdk",
3
3
  "description": "Immutable Unified SDK",
4
- "version": "1.15.1-alpha.2",
4
+ "version": "1.15.3-alpha",
5
5
  "author": "Immutable",
6
6
  "browser": "./dist/index.browser.js",
7
7
  "bugs": "https://github.com/immutable/ts-immutable-sdk/issues",