@imtbl/sdk 1.44.3-alpha.3 → 1.44.3-alpha.4

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.3';
218
+ const SDK_VERSION$1 = '1.44.3-alpha.4';
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.3' };
14283
+ const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.44.3-alpha.4' };
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.3',
14355
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.44.3-alpha.4',
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.3' };
14829
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.44.3-alpha.4' };
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.3',
14870
+ sdkVersion: 'ts-immutable-sdk-1.44.3-alpha.4',
14871
14871
  baseConfig,
14872
14872
  });
14873
14873
  const production = ({ baseConfig }) => createImmutableXConfiguration({
@@ -29724,7 +29724,6 @@ class TypedEventEmitter {
29724
29724
  }
29725
29725
  }
29726
29726
 
29727
- /* eslint-disable no-console */
29728
29727
  const SIGNATURE_WEIGHT = 1; // Weight of a single signature in the multi-sig
29729
29728
  const TRANSACTION_SIGNATURE_THRESHOLD = 1; // Total required weight in the multi-sig for a transaction
29730
29729
  const PACKED_SIGNATURE_THRESHOLD = 2; // Total required weight in the multi-sig for data signing
@@ -29860,17 +29859,12 @@ const signAndPackTypedData = async (typedData, relayerSignature, chainId, wallet
29860
29859
  return packSignatures(eoaSignature, eoaAddress, relayerSignature);
29861
29860
  };
29862
29861
  const signERC191Message = async (chainId, payload, signer, walletAddress) => {
29863
- console.log('signERC191Message', payload, walletAddress);
29864
29862
  // Generate digest
29865
29863
  const digest = ethers.utils.hashMessage(payload);
29866
- console.log('digest', digest);
29867
29864
  // Generate subDigest
29868
29865
  const subDigest = encodeMessageSubDigest(chainId, walletAddress, digest);
29869
29866
  const subDigestHash = ethers.utils.keccak256(subDigest);
29870
29867
  const subDigestHashArray = ethers.utils.arrayify(subDigestHash);
29871
- console.log('subDigest', subDigest);
29872
- console.log('subDigestHash', subDigestHash);
29873
- console.log('subDigestHashArray', subDigestHashArray);
29874
29868
  return signer.signMessage(subDigestHashArray);
29875
29869
  };
29876
29870
  const getEip155ChainId = (chainId) => `eip155:${chainId}`;
@@ -30406,26 +30400,15 @@ const signTypedDataV4 = async ({ params, method, ethSigner, rpcProvider, relayer
30406
30400
  return signature;
30407
30401
  };
30408
30402
 
30409
- /* eslint-disable no-console */
30410
30403
  const hexToString = (hex) => {
30411
30404
  if (!hex)
30412
30405
  return hex;
30413
- console.log('hex', hex);
30414
30406
  try {
30415
30407
  const stripped = ethers.utils.stripZeros(ethers.utils.arrayify(hex));
30416
30408
  const buff = Buffer.from(stripped);
30417
- console.log('stripped', stripped);
30418
- console.log('buff', buff);
30419
- if (buff.length === 32) {
30420
- console.log('buff.length === 32', hex);
30421
- }
30422
- else {
30423
- console.log('buff.length !== 32', ethers.utils.toUtf8String(stripped));
30424
- }
30425
30409
  return buff.length === 32 ? hex : ethers.utils.toUtf8String(stripped);
30426
30410
  }
30427
30411
  catch (e) {
30428
- console.log('error from hexToString', e);
30429
30412
  return hex;
30430
30413
  }
30431
30414
  };
@@ -30439,11 +30422,12 @@ const personalSign = async ({ params, ethSigner, zkEvmAddress, rpcProvider, guar
30439
30422
  if (fromAddress.toLowerCase() !== zkEvmAddress.toLowerCase()) {
30440
30423
  throw new JsonRpcError(RpcErrorCode.INVALID_PARAMS, 'personal_sign requires the signer to be the from address');
30441
30424
  }
30442
- // Convert message into a string if it's a hex
30443
- console.log('message', message);
30444
- console.log('fromAddress', fromAddress);
30425
+ if (typeof window !== 'undefined' && !window.Buffer) {
30426
+ // Use dynamic import to load Buffer
30427
+ const bufferModule = await import('buffer');
30428
+ window.Buffer = bufferModule.Buffer;
30429
+ }
30445
30430
  const payload = hexToString(message);
30446
- console.log('payload - after hexToString', payload);
30447
30431
  const { chainId } = await rpcProvider.detectNetwork();
30448
30432
  flow.addEvent('endDetectNetwork');
30449
30433
  const chainIdBigNumber = ethers.BigNumber.from(chainId);
@@ -30874,10 +30858,6 @@ class ZkEvmProvider {
30874
30858
  })(async () => {
30875
30859
  const ethSigner = await this.#getSigner();
30876
30860
  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);
30881
30861
  return await personalSign({
30882
30862
  params: request.params || [],
30883
30863
  ethSigner,
@@ -31176,11 +31156,6 @@ class Passport {
31176
31156
  this.guardianClient = privateVars.guardianClient;
31177
31157
  setPassportClientId(passportModuleConfiguration.clientId);
31178
31158
  track('passport', 'initialise');
31179
- if (typeof window !== 'undefined' && !window.Buffer) {
31180
- // Define Buffer here for browsers
31181
- // eslint-disable-next-line global-require
31182
- window.Buffer = require('buffer').Buffer;
31183
- }
31184
31159
  }
31185
31160
  /**
31186
31161
  * @deprecated The method `login` with an argument of `{ useCachedSession: true }` should be used in conjunction with
@@ -52609,7 +52584,7 @@ const flattenProperties = (properties) => {
52609
52584
  };
52610
52585
 
52611
52586
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
52612
- const SDK_VERSION = '1.44.3-alpha.3';
52587
+ const SDK_VERSION = '1.44.3-alpha.4';
52613
52588
  const getFrameParentDomain = () => {
52614
52589
  if (isNode()) {
52615
52590
  return '';
@@ -57931,7 +57906,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
57931
57906
  maxPriorityFeePerGas: ethers.BigNumber.from(10e9),
57932
57907
  };
57933
57908
 
57934
- const SDK_VERSION_MARKER = '1.44.3-alpha.3';
57909
+ const SDK_VERSION_MARKER = '1.44.3-alpha.4';
57935
57910
  // This SDK version is replaced by the `yarn build` command ran on the root level
57936
57911
  const globalPackageVersion = () => SDK_VERSION_MARKER;
57937
57912
 
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.3';
195
+ const SDK_VERSION$1 = '1.44.3-alpha.4';
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.3' };
14260
+ const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.44.3-alpha.4' };
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.3',
14332
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.44.3-alpha.4',
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.3' };
14806
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.44.3-alpha.4' };
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.3',
14847
+ sdkVersion: 'ts-immutable-sdk-1.44.3-alpha.4',
14848
14848
  baseConfig,
14849
14849
  });
14850
14850
  const production = ({ baseConfig }) => createImmutableXConfiguration({
@@ -29701,7 +29701,6 @@ class TypedEventEmitter {
29701
29701
  }
29702
29702
  }
29703
29703
 
29704
- /* eslint-disable no-console */
29705
29704
  const SIGNATURE_WEIGHT = 1; // Weight of a single signature in the multi-sig
29706
29705
  const TRANSACTION_SIGNATURE_THRESHOLD = 1; // Total required weight in the multi-sig for a transaction
29707
29706
  const PACKED_SIGNATURE_THRESHOLD = 2; // Total required weight in the multi-sig for data signing
@@ -29837,17 +29836,12 @@ const signAndPackTypedData = async (typedData, relayerSignature, chainId, wallet
29837
29836
  return packSignatures(eoaSignature, eoaAddress, relayerSignature);
29838
29837
  };
29839
29838
  const signERC191Message = async (chainId, payload, signer, walletAddress) => {
29840
- console.log('signERC191Message', payload, walletAddress);
29841
29839
  // Generate digest
29842
29840
  const digest = utils$4.hashMessage(payload);
29843
- console.log('digest', digest);
29844
29841
  // Generate subDigest
29845
29842
  const subDigest = encodeMessageSubDigest(chainId, walletAddress, digest);
29846
29843
  const subDigestHash = utils$4.keccak256(subDigest);
29847
29844
  const subDigestHashArray = utils$4.arrayify(subDigestHash);
29848
- console.log('subDigest', subDigest);
29849
- console.log('subDigestHash', subDigestHash);
29850
- console.log('subDigestHashArray', subDigestHashArray);
29851
29845
  return signer.signMessage(subDigestHashArray);
29852
29846
  };
29853
29847
  const getEip155ChainId = (chainId) => `eip155:${chainId}`;
@@ -30383,26 +30377,15 @@ const signTypedDataV4 = async ({ params, method, ethSigner, rpcProvider, relayer
30383
30377
  return signature;
30384
30378
  };
30385
30379
 
30386
- /* eslint-disable no-console */
30387
30380
  const hexToString = (hex) => {
30388
30381
  if (!hex)
30389
30382
  return hex;
30390
- console.log('hex', hex);
30391
30383
  try {
30392
30384
  const stripped = utils$4.stripZeros(utils$4.arrayify(hex));
30393
30385
  const buff = Buffer.from(stripped);
30394
- console.log('stripped', stripped);
30395
- console.log('buff', buff);
30396
- if (buff.length === 32) {
30397
- console.log('buff.length === 32', hex);
30398
- }
30399
- else {
30400
- console.log('buff.length !== 32', utils$4.toUtf8String(stripped));
30401
- }
30402
30386
  return buff.length === 32 ? hex : utils$4.toUtf8String(stripped);
30403
30387
  }
30404
30388
  catch (e) {
30405
- console.log('error from hexToString', e);
30406
30389
  return hex;
30407
30390
  }
30408
30391
  };
@@ -30416,11 +30399,12 @@ const personalSign = async ({ params, ethSigner, zkEvmAddress, rpcProvider, guar
30416
30399
  if (fromAddress.toLowerCase() !== zkEvmAddress.toLowerCase()) {
30417
30400
  throw new JsonRpcError(RpcErrorCode.INVALID_PARAMS, 'personal_sign requires the signer to be the from address');
30418
30401
  }
30419
- // Convert message into a string if it's a hex
30420
- console.log('message', message);
30421
- console.log('fromAddress', fromAddress);
30402
+ if (typeof window !== 'undefined' && !window.Buffer) {
30403
+ // Use dynamic import to load Buffer
30404
+ const bufferModule = await import('buffer');
30405
+ window.Buffer = bufferModule.Buffer;
30406
+ }
30422
30407
  const payload = hexToString(message);
30423
- console.log('payload - after hexToString', payload);
30424
30408
  const { chainId } = await rpcProvider.detectNetwork();
30425
30409
  flow.addEvent('endDetectNetwork');
30426
30410
  const chainIdBigNumber = BigNumber$1.from(chainId);
@@ -30851,10 +30835,6 @@ class ZkEvmProvider {
30851
30835
  })(async () => {
30852
30836
  const ethSigner = await this.#getSigner();
30853
30837
  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);
30858
30838
  return await personalSign({
30859
30839
  params: request.params || [],
30860
30840
  ethSigner,
@@ -31153,11 +31133,6 @@ class Passport {
31153
31133
  this.guardianClient = privateVars.guardianClient;
31154
31134
  setPassportClientId(passportModuleConfiguration.clientId);
31155
31135
  track('passport', 'initialise');
31156
- if (typeof window !== 'undefined' && !window.Buffer) {
31157
- // Define Buffer here for browsers
31158
- // eslint-disable-next-line global-require
31159
- window.Buffer = require('buffer').Buffer;
31160
- }
31161
31136
  }
31162
31137
  /**
31163
31138
  * @deprecated The method `login` with an argument of `{ useCachedSession: true }` should be used in conjunction with
@@ -52586,7 +52561,7 @@ const flattenProperties = (properties) => {
52586
52561
  };
52587
52562
 
52588
52563
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
52589
- const SDK_VERSION = '1.44.3-alpha.3';
52564
+ const SDK_VERSION = '1.44.3-alpha.4';
52590
52565
  const getFrameParentDomain = () => {
52591
52566
  if (isNode()) {
52592
52567
  return '';
@@ -57908,7 +57883,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
57908
57883
  maxPriorityFeePerGas: BigNumber$1.from(10e9),
57909
57884
  };
57910
57885
 
57911
- const SDK_VERSION_MARKER = '1.44.3-alpha.3';
57886
+ const SDK_VERSION_MARKER = '1.44.3-alpha.4';
57912
57887
  // This SDK version is replaced by the `yarn build` command ran on the root level
57913
57888
  const globalPackageVersion = () => SDK_VERSION_MARKER;
57914
57889
 
@@ -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.3';
5305
+ const SDK_VERSION = '1.44.3-alpha.4';
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.3',
5576
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.44.3-alpha.4',
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.3';
152
+ const SDK_VERSION = '1.44.3-alpha.4';
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.3' };
11462
+ const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-1.44.3-alpha.4' };
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.3';
11671
+ const SDK_VERSION = '1.44.3-alpha.4';
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.3' };
12099
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.44.3-alpha.4' };
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.3',
12140
+ sdkVersion: 'ts-immutable-sdk-1.44.3-alpha.4',
12141
12141
  baseConfig,
12142
12142
  });
12143
12143
  const production = ({ baseConfig }) => createImmutableXConfiguration({
@@ -21884,7 +21884,6 @@ class TypedEventEmitter {
21884
21884
  }
21885
21885
  }
21886
21886
 
21887
- /* eslint-disable no-console */
21888
21887
  const SIGNATURE_WEIGHT = 1; // Weight of a single signature in the multi-sig
21889
21888
  const TRANSACTION_SIGNATURE_THRESHOLD = 1; // Total required weight in the multi-sig for a transaction
21890
21889
  const PACKED_SIGNATURE_THRESHOLD = 2; // Total required weight in the multi-sig for data signing
@@ -22020,17 +22019,12 @@ const signAndPackTypedData = async (typedData, relayerSignature, chainId, wallet
22020
22019
  return packSignatures(eoaSignature, eoaAddress, relayerSignature);
22021
22020
  };
22022
22021
  const signERC191Message = async (chainId, payload, signer, walletAddress) => {
22023
- console.log('signERC191Message', payload, walletAddress);
22024
22022
  // Generate digest
22025
22023
  const digest = utils$3.hashMessage(payload);
22026
- console.log('digest', digest);
22027
22024
  // Generate subDigest
22028
22025
  const subDigest = encodeMessageSubDigest(chainId, walletAddress, digest);
22029
22026
  const subDigestHash = utils$3.keccak256(subDigest);
22030
22027
  const subDigestHashArray = utils$3.arrayify(subDigestHash);
22031
- console.log('subDigest', subDigest);
22032
- console.log('subDigestHash', subDigestHash);
22033
- console.log('subDigestHashArray', subDigestHashArray);
22034
22028
  return signer.signMessage(subDigestHashArray);
22035
22029
  };
22036
22030
  const getEip155ChainId = (chainId) => `eip155:${chainId}`;
@@ -22566,26 +22560,15 @@ const signTypedDataV4 = async ({ params, method, ethSigner, rpcProvider, relayer
22566
22560
  return signature;
22567
22561
  };
22568
22562
 
22569
- /* eslint-disable no-console */
22570
22563
  const hexToString = (hex) => {
22571
22564
  if (!hex)
22572
22565
  return hex;
22573
- console.log('hex', hex);
22574
22566
  try {
22575
22567
  const stripped = utils$3.stripZeros(utils$3.arrayify(hex));
22576
22568
  const buff = Buffer.from(stripped);
22577
- console.log('stripped', stripped);
22578
- console.log('buff', buff);
22579
- if (buff.length === 32) {
22580
- console.log('buff.length === 32', hex);
22581
- }
22582
- else {
22583
- console.log('buff.length !== 32', utils$3.toUtf8String(stripped));
22584
- }
22585
22569
  return buff.length === 32 ? hex : utils$3.toUtf8String(stripped);
22586
22570
  }
22587
22571
  catch (e) {
22588
- console.log('error from hexToString', e);
22589
22572
  return hex;
22590
22573
  }
22591
22574
  };
@@ -22599,11 +22582,12 @@ const personalSign = async ({ params, ethSigner, zkEvmAddress, rpcProvider, guar
22599
22582
  if (fromAddress.toLowerCase() !== zkEvmAddress.toLowerCase()) {
22600
22583
  throw new JsonRpcError(RpcErrorCode.INVALID_PARAMS, 'personal_sign requires the signer to be the from address');
22601
22584
  }
22602
- // Convert message into a string if it's a hex
22603
- console.log('message', message);
22604
- console.log('fromAddress', fromAddress);
22585
+ if (typeof window !== 'undefined' && !window.Buffer) {
22586
+ // Use dynamic import to load Buffer
22587
+ const bufferModule = await import('buffer');
22588
+ window.Buffer = bufferModule.Buffer;
22589
+ }
22605
22590
  const payload = hexToString(message);
22606
- console.log('payload - after hexToString', payload);
22607
22591
  const { chainId } = await rpcProvider.detectNetwork();
22608
22592
  flow.addEvent('endDetectNetwork');
22609
22593
  const chainIdBigNumber = BigNumber.from(chainId);
@@ -23034,10 +23018,6 @@ class ZkEvmProvider {
23034
23018
  })(async () => {
23035
23019
  const ethSigner = await this.#getSigner();
23036
23020
  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);
23041
23021
  return await personalSign({
23042
23022
  params: request.params || [],
23043
23023
  ethSigner,
@@ -23336,11 +23316,6 @@ class Passport {
23336
23316
  this.guardianClient = privateVars.guardianClient;
23337
23317
  setPassportClientId(passportModuleConfiguration.clientId);
23338
23318
  track('passport', 'initialise');
23339
- if (typeof window !== 'undefined' && !window.Buffer) {
23340
- // Define Buffer here for browsers
23341
- // eslint-disable-next-line global-require
23342
- window.Buffer = require('buffer').Buffer;
23343
- }
23344
23319
  }
23345
23320
  /**
23346
23321
  * @deprecated The method `login` with an argument of `{ useCachedSession: true }` should be used in conjunction with
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.3';
148
+ const SDK_VERSION = '1.44.3-alpha.4';
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.3';
9022
+ const SDK_VERSION = '1.44.3-alpha.4';
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.3' };
9291
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.44.3-alpha.4' };
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.3',
9332
+ sdkVersion: 'ts-immutable-sdk-1.44.3-alpha.4',
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.3",
4
+ "version": "1.44.3-alpha.4",
5
5
  "author": "Immutable",
6
6
  "browser": "./dist/index.browser.js",
7
7
  "bugs": "https://github.com/immutable/ts-immutable-sdk/issues",