@imtbl/sdk 1.45.0-alpha.1 → 1.45.0-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.45.0-alpha.1';
218
+ const SDK_VERSION$1 = '1.45.0-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.45.0-alpha.1' };
14283
+ const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.45.0-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.45.0-alpha.1',
14355
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.45.0-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.45.0-alpha.1' };
14829
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.45.0-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.45.0-alpha.1',
14870
+ sdkVersion: 'ts-immutable-sdk-1.45.0-alpha.2',
14871
14871
  baseConfig,
14872
14872
  });
14873
14873
  const production = ({ baseConfig }) => createImmutableXConfiguration({
@@ -30400,18 +30400,12 @@ const signTypedDataV4 = async ({ params, method, ethSigner, rpcProvider, relayer
30400
30400
  return signature;
30401
30401
  };
30402
30402
 
30403
- const hexToString = async (hex) => {
30403
+ const hexToString = (hex) => {
30404
30404
  if (!hex)
30405
30405
  return hex;
30406
30406
  try {
30407
- // Ensures Buffer is available when using the browser bundle of the SDK
30408
- if (typeof window !== 'undefined' && !window.Buffer) {
30409
- const bufferModule = await import('buffer');
30410
- window.Buffer = bufferModule.Buffer;
30411
- }
30412
30407
  const stripped = ethers.utils.stripZeros(ethers.utils.arrayify(hex));
30413
- const buff = Buffer.from(stripped);
30414
- return buff.length === 32 ? hex : ethers.utils.toUtf8String(stripped);
30408
+ return ethers.utils.toUtf8String(stripped);
30415
30409
  }
30416
30410
  catch (e) {
30417
30411
  return hex;
@@ -30428,7 +30422,7 @@ const personalSign = async ({ params, ethSigner, zkEvmAddress, rpcProvider, guar
30428
30422
  throw new JsonRpcError(RpcErrorCode.INVALID_PARAMS, 'personal_sign requires the signer to be the from address');
30429
30423
  }
30430
30424
  // Convert message into a string if it's a hex
30431
- const payload = await hexToString(message);
30425
+ const payload = hexToString(message);
30432
30426
  const { chainId } = await rpcProvider.detectNetwork();
30433
30427
  flow.addEvent('endDetectNetwork');
30434
30428
  const chainIdBigNumber = ethers.BigNumber.from(chainId);
@@ -52585,7 +52579,7 @@ const flattenProperties = (properties) => {
52585
52579
  };
52586
52580
 
52587
52581
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
52588
- const SDK_VERSION = '1.45.0-alpha.1';
52582
+ const SDK_VERSION = '1.45.0-alpha.2';
52589
52583
  const getFrameParentDomain = () => {
52590
52584
  if (isNode()) {
52591
52585
  return '';
@@ -57907,7 +57901,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
57907
57901
  maxPriorityFeePerGas: ethers.BigNumber.from(10e9),
57908
57902
  };
57909
57903
 
57910
- const SDK_VERSION_MARKER = '1.45.0-alpha.1';
57904
+ const SDK_VERSION_MARKER = '1.45.0-alpha.2';
57911
57905
  // This SDK version is replaced by the `yarn build` command ran on the root level
57912
57906
  const globalPackageVersion = () => SDK_VERSION_MARKER;
57913
57907
 
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.45.0-alpha.1';
195
+ const SDK_VERSION$1 = '1.45.0-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.45.0-alpha.1' };
14260
+ const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.45.0-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.45.0-alpha.1',
14332
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.45.0-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.45.0-alpha.1' };
14806
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.45.0-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.45.0-alpha.1',
14847
+ sdkVersion: 'ts-immutable-sdk-1.45.0-alpha.2',
14848
14848
  baseConfig,
14849
14849
  });
14850
14850
  const production = ({ baseConfig }) => createImmutableXConfiguration({
@@ -30377,18 +30377,12 @@ const signTypedDataV4 = async ({ params, method, ethSigner, rpcProvider, relayer
30377
30377
  return signature;
30378
30378
  };
30379
30379
 
30380
- const hexToString = async (hex) => {
30380
+ const hexToString = (hex) => {
30381
30381
  if (!hex)
30382
30382
  return hex;
30383
30383
  try {
30384
- // Ensures Buffer is available when using the browser bundle of the SDK
30385
- if (typeof window !== 'undefined' && !window.Buffer) {
30386
- const bufferModule = await import('buffer');
30387
- window.Buffer = bufferModule.Buffer;
30388
- }
30389
30384
  const stripped = utils$4.stripZeros(utils$4.arrayify(hex));
30390
- const buff = Buffer.from(stripped);
30391
- return buff.length === 32 ? hex : utils$4.toUtf8String(stripped);
30385
+ return utils$4.toUtf8String(stripped);
30392
30386
  }
30393
30387
  catch (e) {
30394
30388
  return hex;
@@ -30405,7 +30399,7 @@ const personalSign = async ({ params, ethSigner, zkEvmAddress, rpcProvider, guar
30405
30399
  throw new JsonRpcError(RpcErrorCode.INVALID_PARAMS, 'personal_sign requires the signer to be the from address');
30406
30400
  }
30407
30401
  // Convert message into a string if it's a hex
30408
- const payload = await hexToString(message);
30402
+ const payload = hexToString(message);
30409
30403
  const { chainId } = await rpcProvider.detectNetwork();
30410
30404
  flow.addEvent('endDetectNetwork');
30411
30405
  const chainIdBigNumber = BigNumber$1.from(chainId);
@@ -52562,7 +52556,7 @@ const flattenProperties = (properties) => {
52562
52556
  };
52563
52557
 
52564
52558
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
52565
- const SDK_VERSION = '1.45.0-alpha.1';
52559
+ const SDK_VERSION = '1.45.0-alpha.2';
52566
52560
  const getFrameParentDomain = () => {
52567
52561
  if (isNode()) {
52568
52562
  return '';
@@ -57884,7 +57878,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
57884
57878
  maxPriorityFeePerGas: BigNumber$1.from(10e9),
57885
57879
  };
57886
57880
 
57887
- const SDK_VERSION_MARKER = '1.45.0-alpha.1';
57881
+ const SDK_VERSION_MARKER = '1.45.0-alpha.2';
57888
57882
  // This SDK version is replaced by the `yarn build` command ran on the root level
57889
57883
  const globalPackageVersion = () => SDK_VERSION_MARKER;
57890
57884
 
@@ -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.45.0-alpha.1';
5305
+ const SDK_VERSION = '1.45.0-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.45.0-alpha.1',
5576
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.45.0-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.45.0-alpha.1';
152
+ const SDK_VERSION = '1.45.0-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.45.0-alpha.1' };
11462
+ const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-1.45.0-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.45.0-alpha.1';
11671
+ const SDK_VERSION = '1.45.0-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.45.0-alpha.1' };
12099
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.45.0-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.45.0-alpha.1',
12140
+ sdkVersion: 'ts-immutable-sdk-1.45.0-alpha.2',
12141
12141
  baseConfig,
12142
12142
  });
12143
12143
  const production = ({ baseConfig }) => createImmutableXConfiguration({
@@ -22560,18 +22560,12 @@ const signTypedDataV4 = async ({ params, method, ethSigner, rpcProvider, relayer
22560
22560
  return signature;
22561
22561
  };
22562
22562
 
22563
- const hexToString = async (hex) => {
22563
+ const hexToString = (hex) => {
22564
22564
  if (!hex)
22565
22565
  return hex;
22566
22566
  try {
22567
- // Ensures Buffer is available when using the browser bundle of the SDK
22568
- if (typeof window !== 'undefined' && !window.Buffer) {
22569
- const bufferModule = await import('buffer');
22570
- window.Buffer = bufferModule.Buffer;
22571
- }
22572
22567
  const stripped = utils$3.stripZeros(utils$3.arrayify(hex));
22573
- const buff = Buffer.from(stripped);
22574
- return buff.length === 32 ? hex : utils$3.toUtf8String(stripped);
22568
+ return utils$3.toUtf8String(stripped);
22575
22569
  }
22576
22570
  catch (e) {
22577
22571
  return hex;
@@ -22588,7 +22582,7 @@ const personalSign = async ({ params, ethSigner, zkEvmAddress, rpcProvider, guar
22588
22582
  throw new JsonRpcError(RpcErrorCode.INVALID_PARAMS, 'personal_sign requires the signer to be the from address');
22589
22583
  }
22590
22584
  // Convert message into a string if it's a hex
22591
- const payload = await hexToString(message);
22585
+ const payload = hexToString(message);
22592
22586
  const { chainId } = await rpcProvider.detectNetwork();
22593
22587
  flow.addEvent('endDetectNetwork');
22594
22588
  const chainIdBigNumber = BigNumber.from(chainId);
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.45.0-alpha.1';
148
+ const SDK_VERSION = '1.45.0-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.45.0-alpha.1';
9022
+ const SDK_VERSION = '1.45.0-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.45.0-alpha.1' };
9291
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.45.0-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.45.0-alpha.1',
9332
+ sdkVersion: 'ts-immutable-sdk-1.45.0-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.45.0-alpha.1",
4
+ "version": "1.45.0-alpha.2",
5
5
  "author": "Immutable",
6
6
  "browser": "./dist/index.browser.js",
7
7
  "bugs": "https://github.com/immutable/ts-immutable-sdk/issues",