@imtbl/sdk 1.15.3-alpha → 1.15.4-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 pkg = require('elliptic');
12
+ var elliptic = require('elliptic');
13
13
  var ethereumjsWallet = require('ethereumjs-wallet');
14
14
  var assert = require('assert');
15
15
  var ethers = require('ethers');
@@ -52,7 +52,8 @@ function _interopNamespaceDefault(e) {
52
52
  }
53
53
 
54
54
  var encUtils__namespace = /*#__PURE__*/_interopNamespaceDefault(encUtils);
55
- var pkg__namespace = /*#__PURE__*/_interopNamespaceDefault(pkg);
55
+ var elliptic__namespace = /*#__PURE__*/_interopNamespaceDefault(elliptic);
56
+ var ethereumjsWallet__namespace = /*#__PURE__*/_interopNamespaceDefault(ethereumjsWallet);
56
57
  var crypto__namespace = /*#__PURE__*/_interopNamespaceDefault(crypto);
57
58
  var Uniswap__namespace = /*#__PURE__*/_interopNamespaceDefault(Uniswap);
58
59
 
@@ -182,7 +183,7 @@ const flattenProperties$1 = (properties) => {
182
183
  };
183
184
 
184
185
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
185
- const SDK_VERSION$1 = '1.15.3-alpha';
186
+ const SDK_VERSION$1 = '1.15.4-alpha';
186
187
  const getReferrer$1 = () => {
187
188
  if (isNode$1()) {
188
189
  return '';
@@ -13558,7 +13559,7 @@ class MultiRollupApiClients {
13558
13559
  }
13559
13560
 
13560
13561
  // eslint-disable-next-line @typescript-eslint/naming-convention
13561
- const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.15.3-alpha' };
13562
+ const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.15.4-alpha' };
13562
13563
  const createConfig$1 = ({ basePath, headers, }) => {
13563
13564
  if (!basePath.trim()) {
13564
13565
  throw Error('basePath can not be empty');
@@ -13630,7 +13631,7 @@ class APIError extends Error {
13630
13631
 
13631
13632
  /* eslint-disable implicit-arrow-linebreak */
13632
13633
  const defaultHeaders$1 = {
13633
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.15.3-alpha',
13634
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.15.4-alpha',
13634
13635
  };
13635
13636
  /**
13636
13637
  * createAPIConfiguration to create a custom Configuration
@@ -14107,7 +14108,7 @@ var blockchain_data = /*#__PURE__*/Object.freeze({
14107
14108
  /* eslint-disable @typescript-eslint/naming-convention */
14108
14109
  class ApiConfiguration extends index$2.Configuration {
14109
14110
  }
14110
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.15.3-alpha' };
14111
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.15.4-alpha' };
14111
14112
  /**
14112
14113
  * @dev use createImmutableXConfiguration instead
14113
14114
  */
@@ -14142,7 +14143,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
14142
14143
  chainID,
14143
14144
  coreContractAddress,
14144
14145
  registrationContractAddress,
14145
- sdkVersion: 'ts-immutable-sdk-1.15.3-alpha',
14146
+ sdkVersion: 'ts-immutable-sdk-1.15.4-alpha',
14146
14147
  });
14147
14148
  /**
14148
14149
  * Sets `sdkVersion` at the time of build
@@ -16357,7 +16358,7 @@ const DEFAULT_ACCOUNT_APPLICATION = 'immutablex';
16357
16358
  const DEFAULT_ACCOUNT_INDEX = '1';
16358
16359
  const prime = new BN$2('800000000000011000000000000000000000000000000000000000000000001', 16);
16359
16360
  const order = new BN$2('08000000 00000010 ffffffff ffffffff b781126d cae7b232 1e66a241 adc64d2f', 16);
16360
- const starkEc = new pkg.ec(new pkg.curves.PresetCurve({
16361
+ const starkEc = new elliptic.ec(new elliptic.curves.PresetCurve({
16361
16362
  type: 'short',
16362
16363
  prime: null,
16363
16364
  p: prime,
@@ -16521,7 +16522,8 @@ async function getStarkPublicKeyFromImx(ethAddress) {
16521
16522
  return undefined;
16522
16523
  }
16523
16524
 
16524
- const { ec, curves } = pkg__namespace;
16525
+ const { ec, curves } = elliptic__namespace;
16526
+ const { hdkey } = ethereumjsWallet__namespace;
16525
16527
  /*
16526
16528
  Stark-friendly elliptic curve
16527
16529
 
@@ -16639,7 +16641,7 @@ function checkIfHashedKeyIsAboveLimit(keySeed) {
16639
16641
  return key.gte(maxAllowedVal);
16640
16642
  }
16641
16643
  function getPrivateKeyFromPath(seed, path) {
16642
- const privateKey = ethereumjsWallet.hdkey
16644
+ const privateKey = hdkey
16643
16645
  .fromMasterSeed(Buffer.from(seed.slice(2), 'hex')) // assuming seed is '0x...'
16644
16646
  .derivePath(path)
16645
16647
  .getWallet()
@@ -45439,7 +45441,7 @@ const flattenProperties = (properties) => {
45439
45441
  };
45440
45442
 
45441
45443
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
45442
- const SDK_VERSION = '1.15.3-alpha';
45444
+ const SDK_VERSION = '1.15.4-alpha';
45443
45445
  const getReferrer = () => {
45444
45446
  if (isNode()) {
45445
45447
  return '';
@@ -50619,7 +50621,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
50619
50621
  maxPriorityFeePerGas: ethers.BigNumber.from(10e9),
50620
50622
  };
50621
50623
 
50622
- const SDK_VERSION_MARKER = '1.15.3-alpha';
50624
+ const SDK_VERSION_MARKER = '1.15.4-alpha';
50623
50625
  // This SDK version is replaced by the `yarn build` command ran on the root level
50624
50626
  const globalPackageVersion = () => SDK_VERSION_MARKER;
50625
50627
 
package/dist/index.js CHANGED
@@ -7,9 +7,10 @@ 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 * as pkg from 'elliptic';
10
+ import * as elliptic from 'elliptic';
11
11
  import { ec as ec$1, curves as curves$1 } from 'elliptic';
12
- import { hdkey } from 'ethereumjs-wallet';
12
+ import * as ethereumjsWallet from 'ethereumjs-wallet';
13
+ import { hdkey as hdkey$1 } from 'ethereumjs-wallet';
13
14
  import assert from 'assert';
14
15
  import { utils as utils$3, Contract as Contract$1, ContractFactory, BigNumber as BigNumber$1, errors, ethers, constants as constants$1, providers } from 'ethers';
15
16
  import { Signer as Signer$1 } from '@ethersproject/abstract-signer';
@@ -160,7 +161,7 @@ const flattenProperties$1 = (properties) => {
160
161
  };
161
162
 
162
163
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
163
- const SDK_VERSION$1 = '1.15.3-alpha';
164
+ const SDK_VERSION$1 = '1.15.4-alpha';
164
165
  const getReferrer$1 = () => {
165
166
  if (isNode$1()) {
166
167
  return '';
@@ -13536,7 +13537,7 @@ class MultiRollupApiClients {
13536
13537
  }
13537
13538
 
13538
13539
  // eslint-disable-next-line @typescript-eslint/naming-convention
13539
- const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.15.3-alpha' };
13540
+ const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.15.4-alpha' };
13540
13541
  const createConfig$1 = ({ basePath, headers, }) => {
13541
13542
  if (!basePath.trim()) {
13542
13543
  throw Error('basePath can not be empty');
@@ -13608,7 +13609,7 @@ class APIError extends Error {
13608
13609
 
13609
13610
  /* eslint-disable implicit-arrow-linebreak */
13610
13611
  const defaultHeaders$1 = {
13611
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.15.3-alpha',
13612
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.15.4-alpha',
13612
13613
  };
13613
13614
  /**
13614
13615
  * createAPIConfiguration to create a custom Configuration
@@ -14085,7 +14086,7 @@ var blockchain_data = /*#__PURE__*/Object.freeze({
14085
14086
  /* eslint-disable @typescript-eslint/naming-convention */
14086
14087
  class ApiConfiguration extends index$2.Configuration {
14087
14088
  }
14088
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.15.3-alpha' };
14089
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.15.4-alpha' };
14089
14090
  /**
14090
14091
  * @dev use createImmutableXConfiguration instead
14091
14092
  */
@@ -14120,7 +14121,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
14120
14121
  chainID,
14121
14122
  coreContractAddress,
14122
14123
  registrationContractAddress,
14123
- sdkVersion: 'ts-immutable-sdk-1.15.3-alpha',
14124
+ sdkVersion: 'ts-immutable-sdk-1.15.4-alpha',
14124
14125
  });
14125
14126
  /**
14126
14127
  * Sets `sdkVersion` at the time of build
@@ -16408,7 +16409,7 @@ function grindKey$1(privateKey) {
16408
16409
  return key.mod(ORDER).toString('hex');
16409
16410
  }
16410
16411
  function getPrivateKeyFromPath$1(seed, path) {
16411
- return hdkey
16412
+ return hdkey$1
16412
16413
  .fromMasterSeed(Buffer.from(seed.slice(2), 'hex')) // assuming seed is '0x...'
16413
16414
  .derivePath(path)
16414
16415
  .getWallet()
@@ -16499,7 +16500,8 @@ async function getStarkPublicKeyFromImx(ethAddress) {
16499
16500
  return undefined;
16500
16501
  }
16501
16502
 
16502
- const { ec, curves } = pkg;
16503
+ const { ec, curves } = elliptic;
16504
+ const { hdkey } = ethereumjsWallet;
16503
16505
  /*
16504
16506
  Stark-friendly elliptic curve
16505
16507
 
@@ -45417,7 +45419,7 @@ const flattenProperties = (properties) => {
45417
45419
  };
45418
45420
 
45419
45421
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
45420
- const SDK_VERSION = '1.15.3-alpha';
45422
+ const SDK_VERSION = '1.15.4-alpha';
45421
45423
  const getReferrer = () => {
45422
45424
  if (isNode()) {
45423
45425
  return '';
@@ -50597,7 +50599,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
50597
50599
  maxPriorityFeePerGas: BigNumber$1.from(10e9),
50598
50600
  };
50599
50601
 
50600
- const SDK_VERSION_MARKER = '1.15.3-alpha';
50602
+ const SDK_VERSION_MARKER = '1.15.4-alpha';
50601
50603
  // This SDK version is replaced by the `yarn build` command ran on the root level
50602
50604
  const globalPackageVersion = () => SDK_VERSION_MARKER;
50603
50605
 
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.3-alpha';
134
+ const SDK_VERSION = '1.15.4-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 * as pkg from 'elliptic';
10
+ import * as elliptic from 'elliptic';
11
11
  import { ec as ec$1, curves as curves$1 } from 'elliptic';
12
12
  import 'ethereumjs-wallet';
13
13
  import 'assert';
@@ -11351,7 +11351,7 @@ class MultiRollupApiClients {
11351
11351
  }
11352
11352
 
11353
11353
  // eslint-disable-next-line @typescript-eslint/naming-convention
11354
- const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-1.15.3-alpha' };
11354
+ const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-1.15.4-alpha' };
11355
11355
  const createConfig$1 = ({ basePath, headers, }) => {
11356
11356
  if (!basePath.trim()) {
11357
11357
  throw Error('basePath can not be empty');
@@ -11530,7 +11530,7 @@ const flattenProperties = (properties) => {
11530
11530
  };
11531
11531
 
11532
11532
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
11533
- const SDK_VERSION = '1.15.3-alpha';
11533
+ const SDK_VERSION = '1.15.4-alpha';
11534
11534
  const getReferrer = () => {
11535
11535
  if (isNode()) {
11536
11536
  return '';
@@ -11747,7 +11747,7 @@ var KeyHeaders;
11747
11747
  /* eslint-disable @typescript-eslint/naming-convention */
11748
11748
  class ApiConfiguration extends index$2.Configuration {
11749
11749
  }
11750
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.15.3-alpha' };
11750
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.15.4-alpha' };
11751
11751
  /**
11752
11752
  * @dev use createImmutableXConfiguration instead
11753
11753
  */
@@ -11782,7 +11782,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
11782
11782
  chainID,
11783
11783
  coreContractAddress,
11784
11784
  registrationContractAddress,
11785
- sdkVersion: 'ts-immutable-sdk-1.15.3-alpha',
11785
+ sdkVersion: 'ts-immutable-sdk-1.15.4-alpha',
11786
11786
  });
11787
11787
  /**
11788
11788
  * Sets `sdkVersion` at the time of build
@@ -14012,7 +14012,7 @@ var Errors;
14012
14012
  Errors["StarkCurveInvalidMessageLength"] = "invalid message length";
14013
14013
  })(Errors || (Errors = {}));
14014
14014
 
14015
- const { ec, curves } = pkg;
14015
+ const { ec, curves } = elliptic;
14016
14016
  /*
14017
14017
  Stark-friendly elliptic curve
14018
14018
 
package/dist/x.js CHANGED
@@ -7,9 +7,10 @@ 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 * as pkg from 'elliptic';
10
+ import * as elliptic from 'elliptic';
11
11
  import { ec as ec$1, curves as curves$1 } from 'elliptic';
12
- import { hdkey } from 'ethereumjs-wallet';
12
+ import * as ethereumjsWallet from 'ethereumjs-wallet';
13
+ import { hdkey as hdkey$1 } from 'ethereumjs-wallet';
13
14
  import 'assert';
14
15
  import { utils, Contract, ContractFactory, ethers } from 'ethers';
15
16
  export { Signer as EthSigner } from '@ethersproject/abstract-signer';
@@ -8955,7 +8956,7 @@ const flattenProperties = (properties) => {
8955
8956
  };
8956
8957
 
8957
8958
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
8958
- const SDK_VERSION = '1.15.3-alpha';
8959
+ const SDK_VERSION = '1.15.4-alpha';
8959
8960
  const getReferrer = () => {
8960
8961
  if (isNode()) {
8961
8962
  return '';
@@ -9165,7 +9166,7 @@ class ImmutableConfiguration {
9165
9166
  /* eslint-disable @typescript-eslint/naming-convention */
9166
9167
  class ApiConfiguration extends index$2.Configuration {
9167
9168
  }
9168
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.15.3-alpha' };
9169
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.15.4-alpha' };
9169
9170
  /**
9170
9171
  * @dev use createImmutableXConfiguration instead
9171
9172
  */
@@ -9200,7 +9201,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
9200
9201
  chainID,
9201
9202
  coreContractAddress,
9202
9203
  registrationContractAddress,
9203
- sdkVersion: 'ts-immutable-sdk-1.15.3-alpha',
9204
+ sdkVersion: 'ts-immutable-sdk-1.15.4-alpha',
9204
9205
  });
9205
9206
  /**
9206
9207
  * Sets `sdkVersion` at the time of build
@@ -11488,7 +11489,7 @@ function grindKey$1(privateKey) {
11488
11489
  return key.mod(ORDER).toString('hex');
11489
11490
  }
11490
11491
  function getPrivateKeyFromPath$1(seed, path) {
11491
- return hdkey
11492
+ return hdkey$1
11492
11493
  .fromMasterSeed(Buffer.from(seed.slice(2), 'hex')) // assuming seed is '0x...'
11493
11494
  .derivePath(path)
11494
11495
  .getWallet()
@@ -11579,7 +11580,8 @@ async function getStarkPublicKeyFromImx(ethAddress) {
11579
11580
  return undefined;
11580
11581
  }
11581
11582
 
11582
- const { ec, curves } = pkg;
11583
+ const { ec, curves } = elliptic;
11584
+ const { hdkey } = ethereumjsWallet;
11583
11585
  /*
11584
11586
  Stark-friendly elliptic curve
11585
11587
 
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.3-alpha",
4
+ "version": "1.15.4-alpha",
5
5
  "author": "Immutable",
6
6
  "browser": "./dist/index.browser.js",
7
7
  "bugs": "https://github.com/immutable/ts-immutable-sdk/issues",