@imtbl/sdk 1.44.3-alpha.1 → 1.44.3-alpha.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/index.cjs CHANGED
@@ -215,7 +215,7 @@ const flattenProperties$1 = (properties) => {
215
215
  };
216
216
 
217
217
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
218
- const SDK_VERSION$1 = '1.44.3-alpha.1';
218
+ const SDK_VERSION$1 = '1.44.3-alpha.2';
219
219
  const getFrameParentDomain$1 = () => {
220
220
  if (isNode$1()) {
221
221
  return '';
@@ -14280,7 +14280,7 @@ class MultiRollupApiClients {
14280
14280
  }
14281
14281
 
14282
14282
  // eslint-disable-next-line @typescript-eslint/naming-convention
14283
- const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.44.3-alpha.1' };
14283
+ const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.44.3-alpha.2' };
14284
14284
  const createConfig$1 = ({ basePath, headers, }) => {
14285
14285
  if (!basePath.trim()) {
14286
14286
  throw Error('basePath can not be empty');
@@ -14352,7 +14352,7 @@ class APIError extends Error {
14352
14352
 
14353
14353
  /* eslint-disable implicit-arrow-linebreak */
14354
14354
  const defaultHeaders$1 = {
14355
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.44.3-alpha.1',
14355
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.44.3-alpha.2',
14356
14356
  };
14357
14357
  /**
14358
14358
  * createAPIConfiguration to create a custom Configuration
@@ -14826,7 +14826,7 @@ var blockchain_data = /*#__PURE__*/Object.freeze({
14826
14826
  /* eslint-disable @typescript-eslint/naming-convention */
14827
14827
  class ApiConfiguration extends index$2.Configuration {
14828
14828
  }
14829
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.44.3-alpha.1' };
14829
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.44.3-alpha.2' };
14830
14830
  /**
14831
14831
  * @dev use createImmutableXConfiguration instead
14832
14832
  */
@@ -14867,7 +14867,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
14867
14867
  coreContractAddress,
14868
14868
  registrationContractAddress,
14869
14869
  registrationV4ContractAddress,
14870
- sdkVersion: 'ts-immutable-sdk-1.44.3-alpha.1',
14870
+ sdkVersion: 'ts-immutable-sdk-1.44.3-alpha.2',
14871
14871
  baseConfig,
14872
14872
  });
14873
14873
  const production = ({ baseConfig }) => createImmutableXConfiguration({
@@ -30414,6 +30414,8 @@ const hexToString = (hex) => {
30414
30414
  try {
30415
30415
  const stripped = ethers.utils.stripZeros(ethers.utils.arrayify(hex));
30416
30416
  const buff = Buffer.from(stripped);
30417
+ console.log('stripped', stripped);
30418
+ console.log('buff', buff);
30417
30419
  if (buff.length === 32) {
30418
30420
  console.log('buff.length === 32', hex);
30419
30421
  }
@@ -30423,6 +30425,7 @@ const hexToString = (hex) => {
30423
30425
  return buff.length === 32 ? hex : ethers.utils.toUtf8String(stripped);
30424
30426
  }
30425
30427
  catch (e) {
30428
+ console.log('error from hexToString', e);
30426
30429
  return hex;
30427
30430
  }
30428
30431
  };
@@ -30438,6 +30441,7 @@ const personalSign = async ({ params, ethSigner, zkEvmAddress, rpcProvider, guar
30438
30441
  }
30439
30442
  // Convert message into a string if it's a hex
30440
30443
  console.log('message', message);
30444
+ console.log('fromAddress', fromAddress);
30441
30445
  const payload = hexToString(message);
30442
30446
  console.log('payload - after hexToString', payload);
30443
30447
  const { chainId } = await rpcProvider.detectNetwork();
@@ -30870,6 +30874,10 @@ class ZkEvmProvider {
30870
30874
  })(async () => {
30871
30875
  const ethSigner = await this.#getSigner();
30872
30876
  flow.addEvent('endGetSigner');
30877
+ // eslint-disable-next-line no-console
30878
+ console.log('request', request);
30879
+ // eslint-disable-next-line no-console
30880
+ console.log('request.params', request.params);
30873
30881
  return await personalSign({
30874
30882
  params: request.params || [],
30875
30883
  ethSigner,
@@ -52596,7 +52604,7 @@ const flattenProperties = (properties) => {
52596
52604
  };
52597
52605
 
52598
52606
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
52599
- const SDK_VERSION = '1.44.3-alpha.1';
52607
+ const SDK_VERSION = '1.44.3-alpha.2';
52600
52608
  const getFrameParentDomain = () => {
52601
52609
  if (isNode()) {
52602
52610
  return '';
@@ -57918,7 +57926,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
57918
57926
  maxPriorityFeePerGas: ethers.BigNumber.from(10e9),
57919
57927
  };
57920
57928
 
57921
- const SDK_VERSION_MARKER = '1.44.3-alpha.1';
57929
+ const SDK_VERSION_MARKER = '1.44.3-alpha.2';
57922
57930
  // This SDK version is replaced by the `yarn build` command ran on the root level
57923
57931
  const globalPackageVersion = () => SDK_VERSION_MARKER;
57924
57932
 
package/dist/index.js CHANGED
@@ -192,7 +192,7 @@ const flattenProperties$1 = (properties) => {
192
192
  };
193
193
 
194
194
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
195
- const SDK_VERSION$1 = '1.44.3-alpha.1';
195
+ const SDK_VERSION$1 = '1.44.3-alpha.2';
196
196
  const getFrameParentDomain$1 = () => {
197
197
  if (isNode$1()) {
198
198
  return '';
@@ -14257,7 +14257,7 @@ class MultiRollupApiClients {
14257
14257
  }
14258
14258
 
14259
14259
  // eslint-disable-next-line @typescript-eslint/naming-convention
14260
- const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.44.3-alpha.1' };
14260
+ const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.44.3-alpha.2' };
14261
14261
  const createConfig$1 = ({ basePath, headers, }) => {
14262
14262
  if (!basePath.trim()) {
14263
14263
  throw Error('basePath can not be empty');
@@ -14329,7 +14329,7 @@ class APIError extends Error {
14329
14329
 
14330
14330
  /* eslint-disable implicit-arrow-linebreak */
14331
14331
  const defaultHeaders$1 = {
14332
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.44.3-alpha.1',
14332
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.44.3-alpha.2',
14333
14333
  };
14334
14334
  /**
14335
14335
  * createAPIConfiguration to create a custom Configuration
@@ -14803,7 +14803,7 @@ var blockchain_data = /*#__PURE__*/Object.freeze({
14803
14803
  /* eslint-disable @typescript-eslint/naming-convention */
14804
14804
  class ApiConfiguration extends index$2.Configuration {
14805
14805
  }
14806
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.44.3-alpha.1' };
14806
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.44.3-alpha.2' };
14807
14807
  /**
14808
14808
  * @dev use createImmutableXConfiguration instead
14809
14809
  */
@@ -14844,7 +14844,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
14844
14844
  coreContractAddress,
14845
14845
  registrationContractAddress,
14846
14846
  registrationV4ContractAddress,
14847
- sdkVersion: 'ts-immutable-sdk-1.44.3-alpha.1',
14847
+ sdkVersion: 'ts-immutable-sdk-1.44.3-alpha.2',
14848
14848
  baseConfig,
14849
14849
  });
14850
14850
  const production = ({ baseConfig }) => createImmutableXConfiguration({
@@ -30391,6 +30391,8 @@ const hexToString = (hex) => {
30391
30391
  try {
30392
30392
  const stripped = utils$4.stripZeros(utils$4.arrayify(hex));
30393
30393
  const buff = Buffer.from(stripped);
30394
+ console.log('stripped', stripped);
30395
+ console.log('buff', buff);
30394
30396
  if (buff.length === 32) {
30395
30397
  console.log('buff.length === 32', hex);
30396
30398
  }
@@ -30400,6 +30402,7 @@ const hexToString = (hex) => {
30400
30402
  return buff.length === 32 ? hex : utils$4.toUtf8String(stripped);
30401
30403
  }
30402
30404
  catch (e) {
30405
+ console.log('error from hexToString', e);
30403
30406
  return hex;
30404
30407
  }
30405
30408
  };
@@ -30415,6 +30418,7 @@ const personalSign = async ({ params, ethSigner, zkEvmAddress, rpcProvider, guar
30415
30418
  }
30416
30419
  // Convert message into a string if it's a hex
30417
30420
  console.log('message', message);
30421
+ console.log('fromAddress', fromAddress);
30418
30422
  const payload = hexToString(message);
30419
30423
  console.log('payload - after hexToString', payload);
30420
30424
  const { chainId } = await rpcProvider.detectNetwork();
@@ -30847,6 +30851,10 @@ class ZkEvmProvider {
30847
30851
  })(async () => {
30848
30852
  const ethSigner = await this.#getSigner();
30849
30853
  flow.addEvent('endGetSigner');
30854
+ // eslint-disable-next-line no-console
30855
+ console.log('request', request);
30856
+ // eslint-disable-next-line no-console
30857
+ console.log('request.params', request.params);
30850
30858
  return await personalSign({
30851
30859
  params: request.params || [],
30852
30860
  ethSigner,
@@ -52573,7 +52581,7 @@ const flattenProperties = (properties) => {
52573
52581
  };
52574
52582
 
52575
52583
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
52576
- const SDK_VERSION = '1.44.3-alpha.1';
52584
+ const SDK_VERSION = '1.44.3-alpha.2';
52577
52585
  const getFrameParentDomain = () => {
52578
52586
  if (isNode()) {
52579
52587
  return '';
@@ -57895,7 +57903,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
57895
57903
  maxPriorityFeePerGas: BigNumber$1.from(10e9),
57896
57904
  };
57897
57905
 
57898
- const SDK_VERSION_MARKER = '1.44.3-alpha.1';
57906
+ const SDK_VERSION_MARKER = '1.44.3-alpha.2';
57899
57907
  // This SDK version is replaced by the `yarn build` command ran on the root level
57900
57908
  const globalPackageVersion = () => SDK_VERSION_MARKER;
57901
57909
 
@@ -5302,7 +5302,7 @@ const flattenProperties = (properties) => {
5302
5302
  };
5303
5303
 
5304
5304
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
5305
- const SDK_VERSION = '1.44.3-alpha.1';
5305
+ const SDK_VERSION = '1.44.3-alpha.2';
5306
5306
  const getFrameParentDomain = () => {
5307
5307
  if (isNode()) {
5308
5308
  return '';
@@ -5573,7 +5573,7 @@ class APIError extends Error {
5573
5573
 
5574
5574
  /* eslint-disable implicit-arrow-linebreak */
5575
5575
  const defaultHeaders = {
5576
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.44.3-alpha.1',
5576
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.44.3-alpha.2',
5577
5577
  };
5578
5578
  /**
5579
5579
  * createAPIConfiguration to create a custom Configuration
package/dist/orderbook.js CHANGED
@@ -149,7 +149,7 @@ const flattenProperties = (properties) => {
149
149
  };
150
150
 
151
151
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
152
- const SDK_VERSION = '1.44.3-alpha.1';
152
+ const SDK_VERSION = '1.44.3-alpha.2';
153
153
  const getFrameParentDomain = () => {
154
154
  if (isNode()) {
155
155
  return '';
package/dist/passport.js CHANGED
@@ -11459,7 +11459,7 @@ class MultiRollupApiClients {
11459
11459
  }
11460
11460
 
11461
11461
  // eslint-disable-next-line @typescript-eslint/naming-convention
11462
- const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-1.44.3-alpha.1' };
11462
+ const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-1.44.3-alpha.2' };
11463
11463
  const createConfig$1 = ({ basePath, headers, }) => {
11464
11464
  if (!basePath.trim()) {
11465
11465
  throw Error('basePath can not be empty');
@@ -11668,7 +11668,7 @@ const flattenProperties = (properties) => {
11668
11668
  };
11669
11669
 
11670
11670
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
11671
- const SDK_VERSION = '1.44.3-alpha.1';
11671
+ const SDK_VERSION = '1.44.3-alpha.2';
11672
11672
  const getFrameParentDomain = () => {
11673
11673
  if (isNode()) {
11674
11674
  return '';
@@ -12096,7 +12096,7 @@ const addKeysToHeadersOverride = (baseConfig, overrides) => {
12096
12096
  /* eslint-disable @typescript-eslint/naming-convention */
12097
12097
  class ApiConfiguration extends index$2.Configuration {
12098
12098
  }
12099
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.44.3-alpha.1' };
12099
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.44.3-alpha.2' };
12100
12100
  /**
12101
12101
  * @dev use createImmutableXConfiguration instead
12102
12102
  */
@@ -12137,7 +12137,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
12137
12137
  coreContractAddress,
12138
12138
  registrationContractAddress,
12139
12139
  registrationV4ContractAddress,
12140
- sdkVersion: 'ts-immutable-sdk-1.44.3-alpha.1',
12140
+ sdkVersion: 'ts-immutable-sdk-1.44.3-alpha.2',
12141
12141
  baseConfig,
12142
12142
  });
12143
12143
  const production = ({ baseConfig }) => createImmutableXConfiguration({
@@ -22574,6 +22574,8 @@ const hexToString = (hex) => {
22574
22574
  try {
22575
22575
  const stripped = utils$3.stripZeros(utils$3.arrayify(hex));
22576
22576
  const buff = Buffer.from(stripped);
22577
+ console.log('stripped', stripped);
22578
+ console.log('buff', buff);
22577
22579
  if (buff.length === 32) {
22578
22580
  console.log('buff.length === 32', hex);
22579
22581
  }
@@ -22583,6 +22585,7 @@ const hexToString = (hex) => {
22583
22585
  return buff.length === 32 ? hex : utils$3.toUtf8String(stripped);
22584
22586
  }
22585
22587
  catch (e) {
22588
+ console.log('error from hexToString', e);
22586
22589
  return hex;
22587
22590
  }
22588
22591
  };
@@ -22598,6 +22601,7 @@ const personalSign = async ({ params, ethSigner, zkEvmAddress, rpcProvider, guar
22598
22601
  }
22599
22602
  // Convert message into a string if it's a hex
22600
22603
  console.log('message', message);
22604
+ console.log('fromAddress', fromAddress);
22601
22605
  const payload = hexToString(message);
22602
22606
  console.log('payload - after hexToString', payload);
22603
22607
  const { chainId } = await rpcProvider.detectNetwork();
@@ -23030,6 +23034,10 @@ class ZkEvmProvider {
23030
23034
  })(async () => {
23031
23035
  const ethSigner = await this.#getSigner();
23032
23036
  flow.addEvent('endGetSigner');
23037
+ // eslint-disable-next-line no-console
23038
+ console.log('request', request);
23039
+ // eslint-disable-next-line no-console
23040
+ console.log('request.params', request.params);
23033
23041
  return await personalSign({
23034
23042
  params: request.params || [],
23035
23043
  ethSigner,
package/dist/webhook.js CHANGED
@@ -145,7 +145,7 @@ const flattenProperties = (properties) => {
145
145
  };
146
146
 
147
147
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
148
- const SDK_VERSION = '1.44.3-alpha.1';
148
+ const SDK_VERSION = '1.44.3-alpha.2';
149
149
  const getFrameParentDomain = () => {
150
150
  if (isNode()) {
151
151
  return '';
package/dist/x.js CHANGED
@@ -9019,7 +9019,7 @@ const flattenProperties = (properties) => {
9019
9019
  };
9020
9020
 
9021
9021
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
9022
- const SDK_VERSION = '1.44.3-alpha.1';
9022
+ const SDK_VERSION = '1.44.3-alpha.2';
9023
9023
  const getFrameParentDomain = () => {
9024
9024
  if (isNode()) {
9025
9025
  return '';
@@ -9288,7 +9288,7 @@ const addKeysToHeadersOverride = (baseConfig, overrides) => {
9288
9288
  /* eslint-disable @typescript-eslint/naming-convention */
9289
9289
  class ApiConfiguration extends index$2.Configuration {
9290
9290
  }
9291
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.44.3-alpha.1' };
9291
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.44.3-alpha.2' };
9292
9292
  /**
9293
9293
  * @dev use createImmutableXConfiguration instead
9294
9294
  */
@@ -9329,7 +9329,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
9329
9329
  coreContractAddress,
9330
9330
  registrationContractAddress,
9331
9331
  registrationV4ContractAddress,
9332
- sdkVersion: 'ts-immutable-sdk-1.44.3-alpha.1',
9332
+ sdkVersion: 'ts-immutable-sdk-1.44.3-alpha.2',
9333
9333
  baseConfig,
9334
9334
  });
9335
9335
  const production = ({ baseConfig }) => createImmutableXConfiguration({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@imtbl/sdk",
3
3
  "description": "Immutable Typescript SDK",
4
- "version": "1.44.3-alpha.1",
4
+ "version": "1.44.3-alpha.2",
5
5
  "author": "Immutable",
6
6
  "browser": "./dist/index.browser.js",
7
7
  "bugs": "https://github.com/immutable/ts-immutable-sdk/issues",