@imtbl/sdk 1.44.2-alpha.6 → 1.44.3-alpha.1
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/blockchain_data.js +2 -2
- package/dist/browser/checkout/sdk.js +4 -4
- package/dist/checkout.js +4 -4
- package/dist/config.js +1 -1
- package/dist/index.browser.js +25 -25
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +23 -7
- package/dist/index.js +23 -7
- package/dist/minting_backend.js +2 -2
- package/dist/orderbook.js +1 -1
- package/dist/passport.js +20 -4
- package/dist/webhook.js +1 -1
- package/dist/x.js +3 -3
- package/package.json +1 -1
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.
|
|
218
|
+
const SDK_VERSION$1 = '1.44.3-alpha.1';
|
|
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.
|
|
14283
|
+
const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.44.3-alpha.1' };
|
|
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.
|
|
14355
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.44.3-alpha.1',
|
|
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.
|
|
14829
|
+
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.44.3-alpha.1' };
|
|
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.
|
|
14870
|
+
sdkVersion: 'ts-immutable-sdk-1.44.3-alpha.1',
|
|
14871
14871
|
baseConfig,
|
|
14872
14872
|
});
|
|
14873
14873
|
const production = ({ baseConfig }) => createImmutableXConfiguration({
|
|
@@ -29724,6 +29724,7 @@ class TypedEventEmitter {
|
|
|
29724
29724
|
}
|
|
29725
29725
|
}
|
|
29726
29726
|
|
|
29727
|
+
/* eslint-disable no-console */
|
|
29727
29728
|
const SIGNATURE_WEIGHT = 1; // Weight of a single signature in the multi-sig
|
|
29728
29729
|
const TRANSACTION_SIGNATURE_THRESHOLD = 1; // Total required weight in the multi-sig for a transaction
|
|
29729
29730
|
const PACKED_SIGNATURE_THRESHOLD = 2; // Total required weight in the multi-sig for data signing
|
|
@@ -29859,12 +29860,17 @@ const signAndPackTypedData = async (typedData, relayerSignature, chainId, wallet
|
|
|
29859
29860
|
return packSignatures(eoaSignature, eoaAddress, relayerSignature);
|
|
29860
29861
|
};
|
|
29861
29862
|
const signERC191Message = async (chainId, payload, signer, walletAddress) => {
|
|
29863
|
+
console.log('signERC191Message', payload, walletAddress);
|
|
29862
29864
|
// Generate digest
|
|
29863
29865
|
const digest = ethers.utils.hashMessage(payload);
|
|
29866
|
+
console.log('digest', digest);
|
|
29864
29867
|
// Generate subDigest
|
|
29865
29868
|
const subDigest = encodeMessageSubDigest(chainId, walletAddress, digest);
|
|
29866
29869
|
const subDigestHash = ethers.utils.keccak256(subDigest);
|
|
29867
29870
|
const subDigestHashArray = ethers.utils.arrayify(subDigestHash);
|
|
29871
|
+
console.log('subDigest', subDigest);
|
|
29872
|
+
console.log('subDigestHash', subDigestHash);
|
|
29873
|
+
console.log('subDigestHashArray', subDigestHashArray);
|
|
29868
29874
|
return signer.signMessage(subDigestHashArray);
|
|
29869
29875
|
};
|
|
29870
29876
|
const getEip155ChainId = (chainId) => `eip155:${chainId}`;
|
|
@@ -30400,12 +30406,20 @@ const signTypedDataV4 = async ({ params, method, ethSigner, rpcProvider, relayer
|
|
|
30400
30406
|
return signature;
|
|
30401
30407
|
};
|
|
30402
30408
|
|
|
30409
|
+
/* eslint-disable no-console */
|
|
30403
30410
|
const hexToString = (hex) => {
|
|
30404
30411
|
if (!hex)
|
|
30405
30412
|
return hex;
|
|
30413
|
+
console.log('hex', hex);
|
|
30406
30414
|
try {
|
|
30407
30415
|
const stripped = ethers.utils.stripZeros(ethers.utils.arrayify(hex));
|
|
30408
30416
|
const buff = Buffer.from(stripped);
|
|
30417
|
+
if (buff.length === 32) {
|
|
30418
|
+
console.log('buff.length === 32', hex);
|
|
30419
|
+
}
|
|
30420
|
+
else {
|
|
30421
|
+
console.log('buff.length !== 32', ethers.utils.toUtf8String(stripped));
|
|
30422
|
+
}
|
|
30409
30423
|
return buff.length === 32 ? hex : ethers.utils.toUtf8String(stripped);
|
|
30410
30424
|
}
|
|
30411
30425
|
catch (e) {
|
|
@@ -30423,7 +30437,9 @@ const personalSign = async ({ params, ethSigner, zkEvmAddress, rpcProvider, guar
|
|
|
30423
30437
|
throw new JsonRpcError(RpcErrorCode.INVALID_PARAMS, 'personal_sign requires the signer to be the from address');
|
|
30424
30438
|
}
|
|
30425
30439
|
// Convert message into a string if it's a hex
|
|
30440
|
+
console.log('message', message);
|
|
30426
30441
|
const payload = hexToString(message);
|
|
30442
|
+
console.log('payload - after hexToString', payload);
|
|
30427
30443
|
const { chainId } = await rpcProvider.detectNetwork();
|
|
30428
30444
|
flow.addEvent('endDetectNetwork');
|
|
30429
30445
|
const chainIdBigNumber = ethers.BigNumber.from(chainId);
|
|
@@ -52580,7 +52596,7 @@ const flattenProperties = (properties) => {
|
|
|
52580
52596
|
};
|
|
52581
52597
|
|
|
52582
52598
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
52583
|
-
const SDK_VERSION = '1.44.
|
|
52599
|
+
const SDK_VERSION = '1.44.3-alpha.1';
|
|
52584
52600
|
const getFrameParentDomain = () => {
|
|
52585
52601
|
if (isNode()) {
|
|
52586
52602
|
return '';
|
|
@@ -57902,7 +57918,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
|
|
|
57902
57918
|
maxPriorityFeePerGas: ethers.BigNumber.from(10e9),
|
|
57903
57919
|
};
|
|
57904
57920
|
|
|
57905
|
-
const SDK_VERSION_MARKER = '1.44.
|
|
57921
|
+
const SDK_VERSION_MARKER = '1.44.3-alpha.1';
|
|
57906
57922
|
// This SDK version is replaced by the `yarn build` command ran on the root level
|
|
57907
57923
|
const globalPackageVersion = () => SDK_VERSION_MARKER;
|
|
57908
57924
|
|
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.
|
|
195
|
+
const SDK_VERSION$1 = '1.44.3-alpha.1';
|
|
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.
|
|
14260
|
+
const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.44.3-alpha.1' };
|
|
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.
|
|
14332
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.44.3-alpha.1',
|
|
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.
|
|
14806
|
+
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.44.3-alpha.1' };
|
|
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.
|
|
14847
|
+
sdkVersion: 'ts-immutable-sdk-1.44.3-alpha.1',
|
|
14848
14848
|
baseConfig,
|
|
14849
14849
|
});
|
|
14850
14850
|
const production = ({ baseConfig }) => createImmutableXConfiguration({
|
|
@@ -29701,6 +29701,7 @@ class TypedEventEmitter {
|
|
|
29701
29701
|
}
|
|
29702
29702
|
}
|
|
29703
29703
|
|
|
29704
|
+
/* eslint-disable no-console */
|
|
29704
29705
|
const SIGNATURE_WEIGHT = 1; // Weight of a single signature in the multi-sig
|
|
29705
29706
|
const TRANSACTION_SIGNATURE_THRESHOLD = 1; // Total required weight in the multi-sig for a transaction
|
|
29706
29707
|
const PACKED_SIGNATURE_THRESHOLD = 2; // Total required weight in the multi-sig for data signing
|
|
@@ -29836,12 +29837,17 @@ const signAndPackTypedData = async (typedData, relayerSignature, chainId, wallet
|
|
|
29836
29837
|
return packSignatures(eoaSignature, eoaAddress, relayerSignature);
|
|
29837
29838
|
};
|
|
29838
29839
|
const signERC191Message = async (chainId, payload, signer, walletAddress) => {
|
|
29840
|
+
console.log('signERC191Message', payload, walletAddress);
|
|
29839
29841
|
// Generate digest
|
|
29840
29842
|
const digest = utils$4.hashMessage(payload);
|
|
29843
|
+
console.log('digest', digest);
|
|
29841
29844
|
// Generate subDigest
|
|
29842
29845
|
const subDigest = encodeMessageSubDigest(chainId, walletAddress, digest);
|
|
29843
29846
|
const subDigestHash = utils$4.keccak256(subDigest);
|
|
29844
29847
|
const subDigestHashArray = utils$4.arrayify(subDigestHash);
|
|
29848
|
+
console.log('subDigest', subDigest);
|
|
29849
|
+
console.log('subDigestHash', subDigestHash);
|
|
29850
|
+
console.log('subDigestHashArray', subDigestHashArray);
|
|
29845
29851
|
return signer.signMessage(subDigestHashArray);
|
|
29846
29852
|
};
|
|
29847
29853
|
const getEip155ChainId = (chainId) => `eip155:${chainId}`;
|
|
@@ -30377,12 +30383,20 @@ const signTypedDataV4 = async ({ params, method, ethSigner, rpcProvider, relayer
|
|
|
30377
30383
|
return signature;
|
|
30378
30384
|
};
|
|
30379
30385
|
|
|
30386
|
+
/* eslint-disable no-console */
|
|
30380
30387
|
const hexToString = (hex) => {
|
|
30381
30388
|
if (!hex)
|
|
30382
30389
|
return hex;
|
|
30390
|
+
console.log('hex', hex);
|
|
30383
30391
|
try {
|
|
30384
30392
|
const stripped = utils$4.stripZeros(utils$4.arrayify(hex));
|
|
30385
30393
|
const buff = Buffer.from(stripped);
|
|
30394
|
+
if (buff.length === 32) {
|
|
30395
|
+
console.log('buff.length === 32', hex);
|
|
30396
|
+
}
|
|
30397
|
+
else {
|
|
30398
|
+
console.log('buff.length !== 32', utils$4.toUtf8String(stripped));
|
|
30399
|
+
}
|
|
30386
30400
|
return buff.length === 32 ? hex : utils$4.toUtf8String(stripped);
|
|
30387
30401
|
}
|
|
30388
30402
|
catch (e) {
|
|
@@ -30400,7 +30414,9 @@ const personalSign = async ({ params, ethSigner, zkEvmAddress, rpcProvider, guar
|
|
|
30400
30414
|
throw new JsonRpcError(RpcErrorCode.INVALID_PARAMS, 'personal_sign requires the signer to be the from address');
|
|
30401
30415
|
}
|
|
30402
30416
|
// Convert message into a string if it's a hex
|
|
30417
|
+
console.log('message', message);
|
|
30403
30418
|
const payload = hexToString(message);
|
|
30419
|
+
console.log('payload - after hexToString', payload);
|
|
30404
30420
|
const { chainId } = await rpcProvider.detectNetwork();
|
|
30405
30421
|
flow.addEvent('endDetectNetwork');
|
|
30406
30422
|
const chainIdBigNumber = BigNumber$1.from(chainId);
|
|
@@ -52557,7 +52573,7 @@ const flattenProperties = (properties) => {
|
|
|
52557
52573
|
};
|
|
52558
52574
|
|
|
52559
52575
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
52560
|
-
const SDK_VERSION = '1.44.
|
|
52576
|
+
const SDK_VERSION = '1.44.3-alpha.1';
|
|
52561
52577
|
const getFrameParentDomain = () => {
|
|
52562
52578
|
if (isNode()) {
|
|
52563
52579
|
return '';
|
|
@@ -57879,7 +57895,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
|
|
|
57879
57895
|
maxPriorityFeePerGas: BigNumber$1.from(10e9),
|
|
57880
57896
|
};
|
|
57881
57897
|
|
|
57882
|
-
const SDK_VERSION_MARKER = '1.44.
|
|
57898
|
+
const SDK_VERSION_MARKER = '1.44.3-alpha.1';
|
|
57883
57899
|
// This SDK version is replaced by the `yarn build` command ran on the root level
|
|
57884
57900
|
const globalPackageVersion = () => SDK_VERSION_MARKER;
|
|
57885
57901
|
|
package/dist/minting_backend.js
CHANGED
|
@@ -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.
|
|
5305
|
+
const SDK_VERSION = '1.44.3-alpha.1';
|
|
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.
|
|
5576
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.44.3-alpha.1',
|
|
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.
|
|
152
|
+
const SDK_VERSION = '1.44.3-alpha.1';
|
|
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.
|
|
11462
|
+
const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-1.44.3-alpha.1' };
|
|
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.
|
|
11671
|
+
const SDK_VERSION = '1.44.3-alpha.1';
|
|
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.
|
|
12099
|
+
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.44.3-alpha.1' };
|
|
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.
|
|
12140
|
+
sdkVersion: 'ts-immutable-sdk-1.44.3-alpha.1',
|
|
12141
12141
|
baseConfig,
|
|
12142
12142
|
});
|
|
12143
12143
|
const production = ({ baseConfig }) => createImmutableXConfiguration({
|
|
@@ -21884,6 +21884,7 @@ class TypedEventEmitter {
|
|
|
21884
21884
|
}
|
|
21885
21885
|
}
|
|
21886
21886
|
|
|
21887
|
+
/* eslint-disable no-console */
|
|
21887
21888
|
const SIGNATURE_WEIGHT = 1; // Weight of a single signature in the multi-sig
|
|
21888
21889
|
const TRANSACTION_SIGNATURE_THRESHOLD = 1; // Total required weight in the multi-sig for a transaction
|
|
21889
21890
|
const PACKED_SIGNATURE_THRESHOLD = 2; // Total required weight in the multi-sig for data signing
|
|
@@ -22019,12 +22020,17 @@ const signAndPackTypedData = async (typedData, relayerSignature, chainId, wallet
|
|
|
22019
22020
|
return packSignatures(eoaSignature, eoaAddress, relayerSignature);
|
|
22020
22021
|
};
|
|
22021
22022
|
const signERC191Message = async (chainId, payload, signer, walletAddress) => {
|
|
22023
|
+
console.log('signERC191Message', payload, walletAddress);
|
|
22022
22024
|
// Generate digest
|
|
22023
22025
|
const digest = utils$3.hashMessage(payload);
|
|
22026
|
+
console.log('digest', digest);
|
|
22024
22027
|
// Generate subDigest
|
|
22025
22028
|
const subDigest = encodeMessageSubDigest(chainId, walletAddress, digest);
|
|
22026
22029
|
const subDigestHash = utils$3.keccak256(subDigest);
|
|
22027
22030
|
const subDigestHashArray = utils$3.arrayify(subDigestHash);
|
|
22031
|
+
console.log('subDigest', subDigest);
|
|
22032
|
+
console.log('subDigestHash', subDigestHash);
|
|
22033
|
+
console.log('subDigestHashArray', subDigestHashArray);
|
|
22028
22034
|
return signer.signMessage(subDigestHashArray);
|
|
22029
22035
|
};
|
|
22030
22036
|
const getEip155ChainId = (chainId) => `eip155:${chainId}`;
|
|
@@ -22560,12 +22566,20 @@ const signTypedDataV4 = async ({ params, method, ethSigner, rpcProvider, relayer
|
|
|
22560
22566
|
return signature;
|
|
22561
22567
|
};
|
|
22562
22568
|
|
|
22569
|
+
/* eslint-disable no-console */
|
|
22563
22570
|
const hexToString = (hex) => {
|
|
22564
22571
|
if (!hex)
|
|
22565
22572
|
return hex;
|
|
22573
|
+
console.log('hex', hex);
|
|
22566
22574
|
try {
|
|
22567
22575
|
const stripped = utils$3.stripZeros(utils$3.arrayify(hex));
|
|
22568
22576
|
const buff = Buffer.from(stripped);
|
|
22577
|
+
if (buff.length === 32) {
|
|
22578
|
+
console.log('buff.length === 32', hex);
|
|
22579
|
+
}
|
|
22580
|
+
else {
|
|
22581
|
+
console.log('buff.length !== 32', utils$3.toUtf8String(stripped));
|
|
22582
|
+
}
|
|
22569
22583
|
return buff.length === 32 ? hex : utils$3.toUtf8String(stripped);
|
|
22570
22584
|
}
|
|
22571
22585
|
catch (e) {
|
|
@@ -22583,7 +22597,9 @@ const personalSign = async ({ params, ethSigner, zkEvmAddress, rpcProvider, guar
|
|
|
22583
22597
|
throw new JsonRpcError(RpcErrorCode.INVALID_PARAMS, 'personal_sign requires the signer to be the from address');
|
|
22584
22598
|
}
|
|
22585
22599
|
// Convert message into a string if it's a hex
|
|
22600
|
+
console.log('message', message);
|
|
22586
22601
|
const payload = hexToString(message);
|
|
22602
|
+
console.log('payload - after hexToString', payload);
|
|
22587
22603
|
const { chainId } = await rpcProvider.detectNetwork();
|
|
22588
22604
|
flow.addEvent('endDetectNetwork');
|
|
22589
22605
|
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.44.
|
|
148
|
+
const SDK_VERSION = '1.44.3-alpha.1';
|
|
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.
|
|
9022
|
+
const SDK_VERSION = '1.44.3-alpha.1';
|
|
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.
|
|
9291
|
+
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.44.3-alpha.1' };
|
|
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.
|
|
9332
|
+
sdkVersion: 'ts-immutable-sdk-1.44.3-alpha.1',
|
|
9333
9333
|
baseConfig,
|
|
9334
9334
|
});
|
|
9335
9335
|
const production = ({ baseConfig }) => createImmutableXConfiguration({
|
package/package.json
CHANGED