@matterlabs/zksync-js 0.0.11 → 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/README.md +13 -0
- package/dist/adapters/ethers/client.cjs +722 -4
- package/dist/adapters/ethers/client.cjs.map +1 -1
- package/dist/adapters/ethers/client.js +6 -6
- package/dist/adapters/ethers/index.cjs +774 -45
- package/dist/adapters/ethers/index.cjs.map +1 -1
- package/dist/adapters/ethers/index.js +9 -9
- package/dist/adapters/ethers/resources/deposits/services/gas.d.ts +4 -4
- package/dist/adapters/ethers/sdk.cjs +772 -41
- package/dist/adapters/ethers/sdk.cjs.map +1 -1
- package/dist/adapters/ethers/sdk.js +7 -7
- package/dist/adapters/viem/client.cjs +2 -4
- package/dist/adapters/viem/client.cjs.map +1 -1
- package/dist/adapters/viem/client.js +6 -6
- package/dist/adapters/viem/index.cjs +38 -33
- package/dist/adapters/viem/index.cjs.map +1 -1
- package/dist/adapters/viem/index.js +9 -9
- package/dist/adapters/viem/resources/deposits/services/gas.d.ts +4 -4
- package/dist/adapters/viem/sdk.cjs +36 -29
- package/dist/adapters/viem/sdk.cjs.map +1 -1
- package/dist/adapters/viem/sdk.js +7 -7
- package/dist/{chunk-EWBYKU4G.js → chunk-2RIARDXZ.js} +4 -4
- package/dist/{chunk-USXSAFYA.js → chunk-4S4XDA4N.js} +4 -6
- package/dist/{chunk-H3BPVVMN.js → chunk-53MC5BR2.js} +1 -1
- package/dist/{chunk-IQVH7YZT.js → chunk-5L6EYUJB.js} +2 -2
- package/dist/{chunk-QUI3J42E.js → chunk-5R7L5NM5.js} +2 -2
- package/dist/{chunk-ZVHFVUDE.js → chunk-E3KP7XCG.js} +1 -1
- package/dist/{chunk-CCUAGJ6K.js → chunk-EDWBCPO3.js} +40 -33
- package/dist/{chunk-6IT5PEEN.js → chunk-HI64OOAR.js} +1 -1
- package/dist/{chunk-TL26ZONW.js → chunk-JHO2UQ5F.js} +56 -45
- package/dist/{chunk-C3AGOEHR.js → chunk-QQ2OR434.js} +1 -1
- package/dist/{chunk-FXSFLZ6D.js → chunk-R5WRFPK2.js} +4 -4
- package/dist/{chunk-QFEYV4O3.js → chunk-RI73VJSH.js} +716 -2
- package/dist/{chunk-N4PR5SVB.js → chunk-UDBRUBEK.js} +10 -2
- package/dist/core/abi.d.ts +2 -0
- package/dist/core/constants.cjs +1 -1
- package/dist/core/constants.d.ts +1 -1
- package/dist/core/constants.js +1 -1
- package/dist/core/index.cjs +716 -4
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.js +5 -5
- 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 +1 -1
- package/dist/index.cjs +717 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -5
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { createEthersSdk } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
4
|
-
import '../../chunk-
|
|
5
|
-
import '../../chunk-
|
|
6
|
-
import '../../chunk-
|
|
7
|
-
import '../../chunk-
|
|
1
|
+
export { createEthersSdk } from '../../chunk-JHO2UQ5F.js';
|
|
2
|
+
import '../../chunk-UDBRUBEK.js';
|
|
3
|
+
import '../../chunk-5L6EYUJB.js';
|
|
4
|
+
import '../../chunk-E3KP7XCG.js';
|
|
5
|
+
import '../../chunk-53MC5BR2.js';
|
|
6
|
+
import '../../chunk-RI73VJSH.js';
|
|
7
|
+
import '../../chunk-QQ2OR434.js';
|
|
@@ -267,8 +267,8 @@ function ensureHex(value, field, context) {
|
|
|
267
267
|
});
|
|
268
268
|
}
|
|
269
269
|
function ensureNumber(value, field, opts) {
|
|
270
|
-
const operation = opts?.operation
|
|
271
|
-
const messagePrefix = opts?.messagePrefix
|
|
270
|
+
const operation = opts?.operation;
|
|
271
|
+
const messagePrefix = opts?.messagePrefix;
|
|
272
272
|
if (isNumber(value)) return value;
|
|
273
273
|
if (isBigint(value)) return Number(value);
|
|
274
274
|
if (typeof value === "string" && value.trim() !== "") {
|
|
@@ -406,7 +406,6 @@ function normalizeGenesis(raw) {
|
|
|
406
406
|
context: { valueType: typeof contractsRaw }
|
|
407
407
|
});
|
|
408
408
|
}
|
|
409
|
-
const executionVersion = ensureNumber(record["execution_version"], "execution_version");
|
|
410
409
|
const genesisRoot = ensureHex(record["genesis_root"], "genesis_root", {});
|
|
411
410
|
const initialContracts = contractsRaw.map(
|
|
412
411
|
(entry, index) => normalizeContractTuple(entry, index)
|
|
@@ -415,7 +414,6 @@ function normalizeGenesis(raw) {
|
|
|
415
414
|
return {
|
|
416
415
|
initialContracts,
|
|
417
416
|
additionalStorage,
|
|
418
|
-
executionVersion,
|
|
419
417
|
genesisRoot
|
|
420
418
|
};
|
|
421
419
|
} catch (e) {
|