@matterlabs/zksync-js 0.0.12 → 0.0.13
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/adapters/ethers/client.cjs +722 -4
- package/dist/adapters/ethers/client.cjs.map +1 -1
- package/dist/adapters/ethers/client.js +5 -5
- package/dist/adapters/ethers/index.cjs +735 -14
- package/dist/adapters/ethers/index.cjs.map +1 -1
- package/dist/adapters/ethers/index.js +7 -7
- package/dist/adapters/ethers/sdk.cjs +733 -10
- package/dist/adapters/ethers/sdk.cjs.map +1 -1
- package/dist/adapters/ethers/sdk.js +5 -5
- package/dist/adapters/viem/client.cjs +2 -4
- package/dist/adapters/viem/client.cjs.map +1 -1
- package/dist/adapters/viem/client.js +5 -5
- package/dist/adapters/viem/index.cjs +2 -4
- package/dist/adapters/viem/index.cjs.map +1 -1
- package/dist/adapters/viem/index.js +7 -7
- package/dist/adapters/viem/sdk.js +5 -5
- package/dist/{chunk-BGUNJK2H.js → chunk-2RIARDXZ.js} +3 -3
- package/dist/{chunk-NBQVHW2N.js → chunk-4S4XDA4N.js} +3 -5
- package/dist/{chunk-GMNLOTNG.js → chunk-53MC5BR2.js} +1 -1
- package/dist/{chunk-I5VQBVQ2.js → chunk-5L6EYUJB.js} +1 -1
- package/dist/{chunk-TE2YQHVI.js → chunk-5R7L5NM5.js} +2 -2
- package/dist/{chunk-AUN5Y2A3.js → chunk-EDWBCPO3.js} +3 -3
- package/dist/{chunk-IUSH7YBZ.js → chunk-HI64OOAR.js} +1 -1
- package/dist/{chunk-6JM4PE62.js → chunk-JHO2UQ5F.js} +16 -13
- package/dist/{chunk-LWA7LC3N.js → chunk-R5WRFPK2.js} +3 -3
- package/dist/{chunk-6CLYCJMV.js → chunk-RI73VJSH.js} +715 -1
- package/dist/{chunk-4PFO3J7W.js → chunk-UDBRUBEK.js} +10 -2
- package/dist/core/abi.d.ts +2 -0
- package/dist/core/index.cjs +716 -4
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.js +3 -3
- package/dist/core/internal/abis/IInteropErrors.d.ts +197 -0
- package/dist/core/internal/abis/IL1ContractErrors.d.ts +1021 -0
- package/dist/core/rpc/types.d.ts +0 -1
- package/dist/index.cjs +716 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { createViemClient } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
4
|
-
import '../../chunk-
|
|
5
|
-
import '../../chunk-
|
|
1
|
+
export { createViemClient } from '../../chunk-2RIARDXZ.js';
|
|
2
|
+
import '../../chunk-5R7L5NM5.js';
|
|
3
|
+
import '../../chunk-4S4XDA4N.js';
|
|
4
|
+
import '../../chunk-53MC5BR2.js';
|
|
5
|
+
import '../../chunk-RI73VJSH.js';
|
|
6
6
|
import '../../chunk-QQ2OR434.js';
|
|
@@ -450,8 +450,8 @@ function ensureHex(value, field, context) {
|
|
|
450
450
|
});
|
|
451
451
|
}
|
|
452
452
|
function ensureNumber(value, field, opts) {
|
|
453
|
-
const operation = opts?.operation
|
|
454
|
-
const messagePrefix = opts?.messagePrefix
|
|
453
|
+
const operation = opts?.operation;
|
|
454
|
+
const messagePrefix = opts?.messagePrefix;
|
|
455
455
|
if (isNumber(value)) return value;
|
|
456
456
|
if (isBigint(value)) return Number(value);
|
|
457
457
|
if (typeof value === "string" && value.trim() !== "") {
|
|
@@ -589,7 +589,6 @@ function normalizeGenesis(raw) {
|
|
|
589
589
|
context: { valueType: typeof contractsRaw }
|
|
590
590
|
});
|
|
591
591
|
}
|
|
592
|
-
const executionVersion = ensureNumber(record["execution_version"], "execution_version");
|
|
593
592
|
const genesisRoot = ensureHex(record["genesis_root"], "genesis_root", {});
|
|
594
593
|
const initialContracts = contractsRaw.map(
|
|
595
594
|
(entry, index) => normalizeContractTuple(entry, index)
|
|
@@ -598,7 +597,6 @@ function normalizeGenesis(raw) {
|
|
|
598
597
|
return {
|
|
599
598
|
initialContracts,
|
|
600
599
|
additionalStorage,
|
|
601
|
-
executionVersion,
|
|
602
600
|
genesisRoot
|
|
603
601
|
};
|
|
604
602
|
} catch (e) {
|