viem 2.0.0-rc.0 → 2.0.0-rc.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/CHANGELOG.md +10 -0
- package/_cjs/actions/public/getFilterChanges.js +3 -2
- package/_cjs/actions/public/getFilterChanges.js.map +1 -1
- package/_cjs/actions/public/getFilterLogs.js +3 -2
- package/_cjs/actions/public/getFilterLogs.js.map +1 -1
- package/_cjs/actions/public/getLogs.js +3 -2
- package/_cjs/actions/public/getLogs.js.map +1 -1
- package/_cjs/actions/public/verifyTypedData.js +2 -1
- package/_cjs/actions/public/verifyTypedData.js.map +1 -1
- package/_cjs/chains/celo/formatters.js +0 -10
- package/_cjs/chains/celo/formatters.js.map +1 -1
- package/_cjs/chains/definitions/astar.js +0 -1
- package/_cjs/chains/definitions/astar.js.map +1 -1
- package/_cjs/chains/definitions/astarZkatana.js +0 -6
- package/_cjs/chains/definitions/astarZkatana.js.map +1 -1
- package/_cjs/chains/definitions/baseSepolia.js +0 -3
- package/_cjs/chains/definitions/baseSepolia.js.map +1 -1
- package/_cjs/chains/definitions/bscTestnet.js +0 -1
- package/_cjs/chains/definitions/bscTestnet.js.map +1 -1
- package/_cjs/chains/definitions/confluxESpaceTestnet.js +0 -4
- package/_cjs/chains/definitions/confluxESpaceTestnet.js.map +1 -1
- package/_cjs/chains/definitions/fantomSonicTestnet.js +0 -1
- package/_cjs/chains/definitions/fantomSonicTestnet.js.map +1 -1
- package/_cjs/chains/definitions/kava.js +0 -1
- package/_cjs/chains/definitions/kava.js.map +1 -1
- package/_cjs/chains/definitions/kavaTestnet.js +0 -1
- package/_cjs/chains/definitions/kavaTestnet.js.map +1 -1
- package/_cjs/chains/definitions/klaytnBaobab.js +0 -1
- package/_cjs/chains/definitions/klaytnBaobab.js.map +1 -1
- package/_cjs/chains/definitions/lukso.js +0 -4
- package/_cjs/chains/definitions/lukso.js.map +1 -1
- package/_cjs/chains/definitions/manta.js +0 -1
- package/_cjs/chains/definitions/manta.js.map +1 -1
- package/_cjs/chains/definitions/mantaTestnet.js +0 -1
- package/_cjs/chains/definitions/mantaTestnet.js.map +1 -1
- package/_cjs/chains/definitions/neonMainnet.js +0 -3
- package/_cjs/chains/definitions/neonMainnet.js.map +1 -1
- package/_cjs/chains/definitions/pgn.js +0 -3
- package/_cjs/chains/definitions/pgn.js.map +1 -1
- package/_cjs/chains/definitions/pgnTestnet.js +0 -3
- package/_cjs/chains/definitions/pgnTestnet.js.map +1 -1
- package/_cjs/chains/definitions/rootstock.js +0 -1
- package/_cjs/chains/definitions/rootstock.js.map +1 -1
- package/_cjs/chains/definitions/sapphire.js +0 -4
- package/_cjs/chains/definitions/sapphire.js.map +1 -1
- package/_cjs/chains/definitions/sapphireTestnet.js +0 -4
- package/_cjs/chains/definitions/sapphireTestnet.js.map +1 -1
- package/_cjs/chains/definitions/shibarium.js +0 -3
- package/_cjs/chains/definitions/shibarium.js.map +1 -1
- package/_cjs/chains/definitions/shimmer.js +0 -3
- package/_cjs/chains/definitions/shimmer.js.map +1 -1
- package/_cjs/chains/definitions/shimmerTestnet.js +0 -3
- package/_cjs/chains/definitions/shimmerTestnet.js.map +1 -1
- package/_cjs/chains/definitions/taikoJolnir.js +2 -2
- package/_cjs/chains/definitions/taikoJolnir.js.map +1 -1
- package/_cjs/chains/definitions/tenet.js +0 -1
- package/_cjs/chains/definitions/tenet.js.map +1 -1
- package/_cjs/chains/definitions/zilliqa.js +0 -3
- package/_cjs/chains/definitions/zilliqa.js.map +1 -1
- package/_cjs/chains/definitions/zilliqaTestnet.js +0 -3
- package/_cjs/chains/definitions/zilliqaTestnet.js.map +1 -1
- package/_cjs/chains/definitions/zkSyncSepoliaTestnet.js +0 -4
- package/_cjs/chains/definitions/zkSyncSepoliaTestnet.js.map +1 -1
- package/_cjs/chains/definitions/zkSyncTestnet.js +0 -4
- package/_cjs/chains/definitions/zkSyncTestnet.js.map +1 -1
- package/_cjs/chains/definitions/zoraSepolia.js +0 -4
- package/_cjs/chains/definitions/zoraSepolia.js.map +1 -1
- package/_cjs/errors/version.js +1 -1
- package/_esm/actions/public/getFilterChanges.js +3 -2
- package/_esm/actions/public/getFilterChanges.js.map +1 -1
- package/_esm/actions/public/getFilterLogs.js +3 -2
- package/_esm/actions/public/getFilterLogs.js.map +1 -1
- package/_esm/actions/public/getLogs.js +3 -2
- package/_esm/actions/public/getLogs.js.map +1 -1
- package/_esm/actions/public/verifyTypedData.js +2 -1
- package/_esm/actions/public/verifyTypedData.js.map +1 -1
- package/_esm/chains/celo/formatters.js +0 -10
- package/_esm/chains/celo/formatters.js.map +1 -1
- package/_esm/chains/definitions/astar.js +0 -1
- package/_esm/chains/definitions/astar.js.map +1 -1
- package/_esm/chains/definitions/astarZkatana.js +0 -6
- package/_esm/chains/definitions/astarZkatana.js.map +1 -1
- package/_esm/chains/definitions/baseSepolia.js +0 -3
- package/_esm/chains/definitions/baseSepolia.js.map +1 -1
- package/_esm/chains/definitions/bscTestnet.js +0 -1
- package/_esm/chains/definitions/bscTestnet.js.map +1 -1
- package/_esm/chains/definitions/confluxESpaceTestnet.js +0 -4
- package/_esm/chains/definitions/confluxESpaceTestnet.js.map +1 -1
- package/_esm/chains/definitions/fantomSonicTestnet.js +0 -1
- package/_esm/chains/definitions/fantomSonicTestnet.js.map +1 -1
- package/_esm/chains/definitions/kava.js +0 -1
- package/_esm/chains/definitions/kava.js.map +1 -1
- package/_esm/chains/definitions/kavaTestnet.js +0 -1
- package/_esm/chains/definitions/kavaTestnet.js.map +1 -1
- package/_esm/chains/definitions/klaytnBaobab.js +0 -1
- package/_esm/chains/definitions/klaytnBaobab.js.map +1 -1
- package/_esm/chains/definitions/lukso.js +0 -4
- package/_esm/chains/definitions/lukso.js.map +1 -1
- package/_esm/chains/definitions/manta.js +0 -1
- package/_esm/chains/definitions/manta.js.map +1 -1
- package/_esm/chains/definitions/mantaTestnet.js +0 -1
- package/_esm/chains/definitions/mantaTestnet.js.map +1 -1
- package/_esm/chains/definitions/neonMainnet.js +0 -3
- package/_esm/chains/definitions/neonMainnet.js.map +1 -1
- package/_esm/chains/definitions/pgn.js +0 -3
- package/_esm/chains/definitions/pgn.js.map +1 -1
- package/_esm/chains/definitions/pgnTestnet.js +0 -3
- package/_esm/chains/definitions/pgnTestnet.js.map +1 -1
- package/_esm/chains/definitions/rootstock.js +0 -1
- package/_esm/chains/definitions/rootstock.js.map +1 -1
- package/_esm/chains/definitions/sapphire.js +0 -4
- package/_esm/chains/definitions/sapphire.js.map +1 -1
- package/_esm/chains/definitions/sapphireTestnet.js +0 -4
- package/_esm/chains/definitions/sapphireTestnet.js.map +1 -1
- package/_esm/chains/definitions/shibarium.js +0 -3
- package/_esm/chains/definitions/shibarium.js.map +1 -1
- package/_esm/chains/definitions/shimmer.js +0 -3
- package/_esm/chains/definitions/shimmer.js.map +1 -1
- package/_esm/chains/definitions/shimmerTestnet.js +0 -3
- package/_esm/chains/definitions/shimmerTestnet.js.map +1 -1
- package/_esm/chains/definitions/taikoJolnir.js +2 -2
- package/_esm/chains/definitions/taikoJolnir.js.map +1 -1
- package/_esm/chains/definitions/tenet.js +0 -1
- package/_esm/chains/definitions/tenet.js.map +1 -1
- package/_esm/chains/definitions/zilliqa.js +0 -3
- package/_esm/chains/definitions/zilliqa.js.map +1 -1
- package/_esm/chains/definitions/zilliqaTestnet.js +0 -3
- package/_esm/chains/definitions/zilliqaTestnet.js.map +1 -1
- package/_esm/chains/definitions/zkSyncSepoliaTestnet.js +0 -4
- package/_esm/chains/definitions/zkSyncSepoliaTestnet.js.map +1 -1
- package/_esm/chains/definitions/zkSyncTestnet.js +0 -4
- package/_esm/chains/definitions/zkSyncTestnet.js.map +1 -1
- package/_esm/chains/definitions/zoraSepolia.js +0 -4
- package/_esm/chains/definitions/zoraSepolia.js.map +1 -1
- package/_esm/errors/version.js +1 -1
- package/_types/actions/public/getFilterChanges.d.ts.map +1 -1
- package/_types/actions/public/verifyTypedData.d.ts +2 -4
- package/_types/actions/public/verifyTypedData.d.ts.map +1 -1
- package/_types/chains/celo/chainConfig.d.ts +180 -203
- package/_types/chains/celo/chainConfig.d.ts.map +1 -1
- package/_types/chains/celo/formatters.d.ts +181 -204
- package/_types/chains/celo/formatters.d.ts.map +1 -1
- package/_types/chains/celo/index.d.ts +1 -1
- package/_types/chains/celo/index.d.ts.map +1 -1
- package/_types/chains/celo/types.d.ts +2 -14
- package/_types/chains/celo/types.d.ts.map +1 -1
- package/_types/chains/definitions/astar.d.ts +0 -3
- package/_types/chains/definitions/astar.d.ts.map +1 -1
- package/_types/chains/definitions/astarZkatana.d.ts +0 -3
- package/_types/chains/definitions/astarZkatana.d.ts.map +1 -1
- package/_types/chains/definitions/base.d.ts +136 -136
- package/_types/chains/definitions/baseGoerli.d.ts +136 -136
- package/_types/chains/definitions/baseSepolia.d.ts +136 -139
- package/_types/chains/definitions/baseSepolia.d.ts.map +1 -1
- package/_types/chains/definitions/bscTestnet.d.ts +0 -3
- package/_types/chains/definitions/bscTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/celo.d.ts +180 -203
- package/_types/chains/definitions/celo.d.ts.map +1 -1
- package/_types/chains/definitions/celoAlfajores.d.ts +180 -203
- package/_types/chains/definitions/celoAlfajores.d.ts.map +1 -1
- package/_types/chains/definitions/celoCannoli.d.ts +180 -203
- package/_types/chains/definitions/celoCannoli.d.ts.map +1 -1
- package/_types/chains/definitions/confluxESpaceTestnet.d.ts +0 -4
- package/_types/chains/definitions/confluxESpaceTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/fantomSonicTestnet.d.ts +0 -3
- package/_types/chains/definitions/fantomSonicTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/kava.d.ts +0 -3
- package/_types/chains/definitions/kava.d.ts.map +1 -1
- package/_types/chains/definitions/kavaTestnet.d.ts +0 -3
- package/_types/chains/definitions/kavaTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/klaytnBaobab.d.ts +0 -3
- package/_types/chains/definitions/klaytnBaobab.d.ts.map +1 -1
- package/_types/chains/definitions/lukso.d.ts +0 -4
- package/_types/chains/definitions/lukso.d.ts.map +1 -1
- package/_types/chains/definitions/manta.d.ts +0 -3
- package/_types/chains/definitions/manta.d.ts.map +1 -1
- package/_types/chains/definitions/mantaTestnet.d.ts +0 -3
- package/_types/chains/definitions/mantaTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/neonMainnet.d.ts +0 -3
- package/_types/chains/definitions/neonMainnet.d.ts.map +1 -1
- package/_types/chains/definitions/optimism.d.ts +136 -136
- package/_types/chains/definitions/optimismGoerli.d.ts +136 -136
- package/_types/chains/definitions/optimismSepolia.d.ts +136 -136
- package/_types/chains/definitions/pgn.d.ts +136 -139
- package/_types/chains/definitions/pgn.d.ts.map +1 -1
- package/_types/chains/definitions/pgnTestnet.d.ts +136 -139
- package/_types/chains/definitions/pgnTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/rootstock.d.ts +0 -3
- package/_types/chains/definitions/rootstock.d.ts.map +1 -1
- package/_types/chains/definitions/sapphire.d.ts +0 -4
- package/_types/chains/definitions/sapphire.d.ts.map +1 -1
- package/_types/chains/definitions/sapphireTestnet.d.ts +0 -4
- package/_types/chains/definitions/sapphireTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/shibarium.d.ts +0 -3
- package/_types/chains/definitions/shibarium.d.ts.map +1 -1
- package/_types/chains/definitions/shimmer.d.ts +0 -3
- package/_types/chains/definitions/shimmer.d.ts.map +1 -1
- package/_types/chains/definitions/shimmerTestnet.d.ts +0 -3
- package/_types/chains/definitions/shimmerTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/taikoJolnir.d.ts +2 -2
- package/_types/chains/definitions/tenet.d.ts +0 -3
- package/_types/chains/definitions/tenet.d.ts.map +1 -1
- package/_types/chains/definitions/zilliqa.d.ts +0 -3
- package/_types/chains/definitions/zilliqa.d.ts.map +1 -1
- package/_types/chains/definitions/zilliqaTestnet.d.ts +0 -3
- package/_types/chains/definitions/zilliqaTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/zkSync.d.ts +24 -24
- package/_types/chains/definitions/zkSyncSepoliaTestnet.d.ts +24 -28
- package/_types/chains/definitions/zkSyncSepoliaTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/zkSyncTestnet.d.ts +24 -28
- package/_types/chains/definitions/zkSyncTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/zora.d.ts +136 -136
- package/_types/chains/definitions/zoraSepolia.d.ts +136 -140
- package/_types/chains/definitions/zoraSepolia.d.ts.map +1 -1
- package/_types/chains/definitions/zoraTestnet.d.ts +136 -136
- package/_types/chains/index.d.ts +1 -1
- package/_types/chains/index.d.ts.map +1 -1
- package/_types/chains/opStack/chainConfig.d.ts +136 -136
- package/_types/chains/opStack/formatters.d.ts +136 -136
- package/_types/chains/zksync/chainConfig.d.ts +24 -24
- package/_types/chains/zksync/formatters.d.ts +24 -24
- package/_types/errors/version.d.ts +1 -1
- package/_types/utils/formatters/transaction.d.ts +1 -1
- package/_types/utils/formatters/transactionRequest.d.ts +1 -1
- package/actions/public/getFilterChanges.ts +3 -5
- package/actions/public/getFilterLogs.ts +3 -3
- package/actions/public/getLogs.ts +3 -3
- package/actions/public/verifyTypedData.ts +13 -8
- package/chains/celo/formatters.ts +0 -14
- package/chains/celo/index.ts +0 -4
- package/chains/celo/types.ts +0 -18
- package/chains/definitions/astar.ts +0 -1
- package/chains/definitions/astarZkatana.ts +0 -6
- package/chains/definitions/baseSepolia.ts +0 -3
- package/chains/definitions/bscTestnet.ts +0 -1
- package/chains/definitions/confluxESpaceTestnet.ts +0 -4
- package/chains/definitions/fantomSonicTestnet.ts +0 -1
- package/chains/definitions/kava.ts +0 -1
- package/chains/definitions/kavaTestnet.ts +0 -1
- package/chains/definitions/klaytnBaobab.ts +0 -1
- package/chains/definitions/lukso.ts +0 -4
- package/chains/definitions/manta.ts +0 -1
- package/chains/definitions/mantaTestnet.ts +0 -1
- package/chains/definitions/neonMainnet.ts +0 -3
- package/chains/definitions/pgn.ts +0 -3
- package/chains/definitions/pgnTestnet.ts +0 -3
- package/chains/definitions/rootstock.ts +0 -1
- package/chains/definitions/sapphire.ts +0 -4
- package/chains/definitions/sapphireTestnet.ts +0 -4
- package/chains/definitions/shibarium.ts +0 -3
- package/chains/definitions/shimmer.ts +0 -3
- package/chains/definitions/shimmerTestnet.ts +0 -3
- package/chains/definitions/taikoJolnir.ts +2 -2
- package/chains/definitions/tenet.ts +0 -1
- package/chains/definitions/zilliqa.ts +0 -3
- package/chains/definitions/zilliqaTestnet.ts +0 -3
- package/chains/definitions/zkSyncSepoliaTestnet.ts +0 -4
- package/chains/definitions/zkSyncTestnet.ts +0 -4
- package/chains/definitions/zoraSepolia.ts +0 -4
- package/chains/index.ts +8 -1
- package/errors/version.ts +1 -1
- package/package.json +34 -12
@@ -37,24 +37,24 @@ export declare const formatters: {
|
|
37
37
|
readonly transaction: {
|
38
38
|
exclude: [] | undefined;
|
39
39
|
format: (args: ({
|
40
|
-
gas?: `0x${string}` | undefined;
|
41
|
-
nonce?: `0x${string}` | undefined;
|
42
|
-
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
43
|
-
maxFeePerGas?: `0x${string}` | undefined;
|
44
|
-
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
45
|
-
gasPrice?: `0x${string}` | undefined;
|
46
|
-
from?: `0x${string}` | undefined;
|
47
|
-
to?: `0x${string}` | null | undefined;
|
48
|
-
value?: `0x${string}` | undefined;
|
49
|
-
r?: `0x${string}` | undefined;
|
50
|
-
s?: `0x${string}` | undefined;
|
51
|
-
v?: `0x${string}` | undefined;
|
52
40
|
yParity?: `0x${string}` | undefined;
|
53
41
|
blockHash?: `0x${string}` | null | undefined;
|
54
42
|
blockNumber?: `0x${string}` | null | undefined;
|
43
|
+
from?: `0x${string}` | undefined;
|
44
|
+
gas?: `0x${string}` | undefined;
|
55
45
|
hash?: `0x${string}` | undefined;
|
56
46
|
input?: `0x${string}` | undefined;
|
47
|
+
nonce?: `0x${string}` | undefined;
|
48
|
+
r?: `0x${string}` | undefined;
|
49
|
+
s?: `0x${string}` | undefined;
|
50
|
+
to?: `0x${string}` | null | undefined;
|
57
51
|
transactionIndex?: `0x${string}` | null | undefined;
|
52
|
+
v?: `0x${string}` | undefined;
|
53
|
+
value?: `0x${string}` | undefined;
|
54
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
55
|
+
gasPrice?: `0x${string}` | undefined;
|
56
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
57
|
+
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
58
58
|
accessList?: undefined;
|
59
59
|
chainId?: `0x${string}` | undefined;
|
60
60
|
} & import("../index.js").Omit<import("../index.js").PartialBy<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "yParity">, "typeHex"> & {
|
@@ -62,24 +62,24 @@ export declare const formatters: {
|
|
62
62
|
mint?: undefined;
|
63
63
|
sourceHash?: undefined;
|
64
64
|
}) | ({
|
65
|
-
gas?: `0x${string}` | undefined;
|
66
|
-
nonce?: `0x${string}` | undefined;
|
67
|
-
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
68
|
-
maxFeePerGas?: `0x${string}` | undefined;
|
69
|
-
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
70
|
-
gasPrice?: `0x${string}` | undefined;
|
71
|
-
from?: `0x${string}` | undefined;
|
72
|
-
to?: `0x${string}` | null | undefined;
|
73
|
-
value?: `0x${string}` | undefined;
|
74
|
-
r?: `0x${string}` | undefined;
|
75
|
-
s?: `0x${string}` | undefined;
|
76
|
-
v?: `0x${string}` | undefined;
|
77
65
|
yParity?: `0x${string}` | undefined;
|
78
66
|
blockHash?: `0x${string}` | null | undefined;
|
79
67
|
blockNumber?: `0x${string}` | null | undefined;
|
68
|
+
from?: `0x${string}` | undefined;
|
69
|
+
gas?: `0x${string}` | undefined;
|
80
70
|
hash?: `0x${string}` | undefined;
|
81
71
|
input?: `0x${string}` | undefined;
|
72
|
+
nonce?: `0x${string}` | undefined;
|
73
|
+
r?: `0x${string}` | undefined;
|
74
|
+
s?: `0x${string}` | undefined;
|
75
|
+
to?: `0x${string}` | null | undefined;
|
82
76
|
transactionIndex?: `0x${string}` | null | undefined;
|
77
|
+
v?: `0x${string}` | undefined;
|
78
|
+
value?: `0x${string}` | undefined;
|
79
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
80
|
+
gasPrice?: `0x${string}` | undefined;
|
81
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
82
|
+
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
83
83
|
accessList?: undefined;
|
84
84
|
chainId?: `0x${string}` | undefined;
|
85
85
|
} & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
|
@@ -88,24 +88,24 @@ export declare const formatters: {
|
|
88
88
|
sourceHash: `0x${string}`;
|
89
89
|
type: "0x7e";
|
90
90
|
}) | ({
|
91
|
-
gas?: `0x${string}` | undefined;
|
92
|
-
nonce?: `0x${string}` | undefined;
|
93
|
-
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
94
|
-
maxFeePerGas?: `0x${string}` | undefined;
|
95
|
-
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
96
|
-
gasPrice?: `0x${string}` | undefined;
|
97
|
-
from?: `0x${string}` | undefined;
|
98
|
-
to?: `0x${string}` | null | undefined;
|
99
|
-
value?: `0x${string}` | undefined;
|
100
|
-
r?: `0x${string}` | undefined;
|
101
|
-
s?: `0x${string}` | undefined;
|
102
|
-
v?: `0x${string}` | undefined;
|
103
91
|
yParity?: `0x${string}` | undefined;
|
104
92
|
blockHash?: `0x${string}` | null | undefined;
|
105
93
|
blockNumber?: `0x${string}` | null | undefined;
|
94
|
+
from?: `0x${string}` | undefined;
|
95
|
+
gas?: `0x${string}` | undefined;
|
106
96
|
hash?: `0x${string}` | undefined;
|
107
97
|
input?: `0x${string}` | undefined;
|
98
|
+
nonce?: `0x${string}` | undefined;
|
99
|
+
r?: `0x${string}` | undefined;
|
100
|
+
s?: `0x${string}` | undefined;
|
101
|
+
to?: `0x${string}` | null | undefined;
|
108
102
|
transactionIndex?: `0x${string}` | null | undefined;
|
103
|
+
v?: `0x${string}` | undefined;
|
104
|
+
value?: `0x${string}` | undefined;
|
105
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
106
|
+
gasPrice?: `0x${string}` | undefined;
|
107
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
108
|
+
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
109
109
|
accessList?: import("../../index.js").AccessList | undefined;
|
110
110
|
chainId?: `0x${string}` | undefined;
|
111
111
|
} & import("../index.js").Omit<import("../index.js").PartialBy<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "yParity">, "typeHex"> & {
|
@@ -113,24 +113,24 @@ export declare const formatters: {
|
|
113
113
|
mint?: undefined;
|
114
114
|
sourceHash?: undefined;
|
115
115
|
}) | ({
|
116
|
-
gas?: `0x${string}` | undefined;
|
117
|
-
nonce?: `0x${string}` | undefined;
|
118
|
-
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
119
|
-
maxFeePerGas?: `0x${string}` | undefined;
|
120
|
-
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
121
|
-
gasPrice?: `0x${string}` | undefined;
|
122
|
-
from?: `0x${string}` | undefined;
|
123
|
-
to?: `0x${string}` | null | undefined;
|
124
|
-
value?: `0x${string}` | undefined;
|
125
|
-
r?: `0x${string}` | undefined;
|
126
|
-
s?: `0x${string}` | undefined;
|
127
|
-
v?: `0x${string}` | undefined;
|
128
116
|
yParity?: `0x${string}` | undefined;
|
129
117
|
blockHash?: `0x${string}` | null | undefined;
|
130
118
|
blockNumber?: `0x${string}` | null | undefined;
|
119
|
+
from?: `0x${string}` | undefined;
|
120
|
+
gas?: `0x${string}` | undefined;
|
131
121
|
hash?: `0x${string}` | undefined;
|
132
122
|
input?: `0x${string}` | undefined;
|
123
|
+
nonce?: `0x${string}` | undefined;
|
124
|
+
r?: `0x${string}` | undefined;
|
125
|
+
s?: `0x${string}` | undefined;
|
126
|
+
to?: `0x${string}` | null | undefined;
|
133
127
|
transactionIndex?: `0x${string}` | null | undefined;
|
128
|
+
v?: `0x${string}` | undefined;
|
129
|
+
value?: `0x${string}` | undefined;
|
130
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
131
|
+
gasPrice?: `0x${string}` | undefined;
|
132
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
133
|
+
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
134
134
|
accessList?: import("../../index.js").AccessList | undefined;
|
135
135
|
chainId?: `0x${string}` | undefined;
|
136
136
|
} & import("../index.js").Omit<import("../index.js").PartialBy<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "yParity">, "typeHex"> & {
|
@@ -138,24 +138,24 @@ export declare const formatters: {
|
|
138
138
|
mint?: undefined;
|
139
139
|
sourceHash?: undefined;
|
140
140
|
}) | ({
|
141
|
-
gas?: `0x${string}` | undefined;
|
142
|
-
nonce?: `0x${string}` | undefined;
|
143
|
-
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
144
|
-
maxFeePerGas?: `0x${string}` | undefined;
|
145
|
-
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
146
|
-
gasPrice?: `0x${string}` | undefined;
|
147
|
-
from?: `0x${string}` | undefined;
|
148
|
-
to?: `0x${string}` | null | undefined;
|
149
|
-
value?: `0x${string}` | undefined;
|
150
|
-
r?: `0x${string}` | undefined;
|
151
|
-
s?: `0x${string}` | undefined;
|
152
|
-
v?: `0x${string}` | undefined;
|
153
141
|
yParity?: `0x${string}` | undefined;
|
154
142
|
blockHash?: `0x${string}` | null | undefined;
|
155
143
|
blockNumber?: `0x${string}` | null | undefined;
|
144
|
+
from?: `0x${string}` | undefined;
|
145
|
+
gas?: `0x${string}` | undefined;
|
156
146
|
hash?: `0x${string}` | undefined;
|
157
147
|
input?: `0x${string}` | undefined;
|
148
|
+
nonce?: `0x${string}` | undefined;
|
149
|
+
r?: `0x${string}` | undefined;
|
150
|
+
s?: `0x${string}` | undefined;
|
151
|
+
to?: `0x${string}` | null | undefined;
|
158
152
|
transactionIndex?: `0x${string}` | null | undefined;
|
153
|
+
v?: `0x${string}` | undefined;
|
154
|
+
value?: `0x${string}` | undefined;
|
155
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
156
|
+
gasPrice?: `0x${string}` | undefined;
|
157
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
158
|
+
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
159
159
|
accessList?: import("../../index.js").AccessList | undefined;
|
160
160
|
chainId?: `0x${string}` | undefined;
|
161
161
|
} & import("../index.js").Omit<import("../index.js").PartialBy<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "yParity">, "typeHex"> & {
|
@@ -163,24 +163,24 @@ export declare const formatters: {
|
|
163
163
|
mint?: undefined;
|
164
164
|
sourceHash?: undefined;
|
165
165
|
}) | ({
|
166
|
-
gas?: `0x${string}` | undefined;
|
167
|
-
nonce?: `0x${string}` | undefined;
|
168
|
-
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
169
|
-
maxFeePerGas?: `0x${string}` | undefined;
|
170
|
-
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
171
|
-
gasPrice?: `0x${string}` | undefined;
|
172
|
-
from?: `0x${string}` | undefined;
|
173
|
-
to?: `0x${string}` | null | undefined;
|
174
|
-
value?: `0x${string}` | undefined;
|
175
|
-
r?: `0x${string}` | undefined;
|
176
|
-
s?: `0x${string}` | undefined;
|
177
|
-
v?: `0x${string}` | undefined;
|
178
166
|
yParity?: `0x${string}` | undefined;
|
179
167
|
blockHash?: `0x${string}` | null | undefined;
|
180
168
|
blockNumber?: `0x${string}` | null | undefined;
|
169
|
+
from?: `0x${string}` | undefined;
|
170
|
+
gas?: `0x${string}` | undefined;
|
181
171
|
hash?: `0x${string}` | undefined;
|
182
172
|
input?: `0x${string}` | undefined;
|
173
|
+
nonce?: `0x${string}` | undefined;
|
174
|
+
r?: `0x${string}` | undefined;
|
175
|
+
s?: `0x${string}` | undefined;
|
176
|
+
to?: `0x${string}` | null | undefined;
|
183
177
|
transactionIndex?: `0x${string}` | null | undefined;
|
178
|
+
v?: `0x${string}` | undefined;
|
179
|
+
value?: `0x${string}` | undefined;
|
180
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
181
|
+
gasPrice?: `0x${string}` | undefined;
|
182
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
183
|
+
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
184
184
|
accessList?: import("../../index.js").AccessList | undefined;
|
185
185
|
chainId?: `0x${string}` | undefined;
|
186
186
|
} & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
|
@@ -189,24 +189,24 @@ export declare const formatters: {
|
|
189
189
|
sourceHash: `0x${string}`;
|
190
190
|
type: "0x7e";
|
191
191
|
}) | ({
|
192
|
-
gas?: `0x${string}` | undefined;
|
193
|
-
nonce?: `0x${string}` | undefined;
|
194
|
-
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
195
|
-
maxFeePerGas?: `0x${string}` | undefined;
|
196
|
-
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
197
|
-
gasPrice?: `0x${string}` | undefined;
|
198
|
-
from?: `0x${string}` | undefined;
|
199
|
-
to?: `0x${string}` | null | undefined;
|
200
|
-
value?: `0x${string}` | undefined;
|
201
|
-
r?: `0x${string}` | undefined;
|
202
|
-
s?: `0x${string}` | undefined;
|
203
|
-
v?: `0x${string}` | undefined;
|
204
192
|
yParity?: `0x${string}` | undefined;
|
205
193
|
blockHash?: `0x${string}` | null | undefined;
|
206
194
|
blockNumber?: `0x${string}` | null | undefined;
|
195
|
+
from?: `0x${string}` | undefined;
|
196
|
+
gas?: `0x${string}` | undefined;
|
207
197
|
hash?: `0x${string}` | undefined;
|
208
198
|
input?: `0x${string}` | undefined;
|
199
|
+
nonce?: `0x${string}` | undefined;
|
200
|
+
r?: `0x${string}` | undefined;
|
201
|
+
s?: `0x${string}` | undefined;
|
202
|
+
to?: `0x${string}` | null | undefined;
|
209
203
|
transactionIndex?: `0x${string}` | null | undefined;
|
204
|
+
v?: `0x${string}` | undefined;
|
205
|
+
value?: `0x${string}` | undefined;
|
206
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
207
|
+
gasPrice?: `0x${string}` | undefined;
|
208
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
209
|
+
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
210
210
|
accessList?: import("../../index.js").AccessList | undefined;
|
211
211
|
chainId?: `0x${string}` | undefined;
|
212
212
|
} & import("../index.js").Omit<import("../index.js").PartialBy<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "yParity">, "typeHex"> & {
|
@@ -214,24 +214,24 @@ export declare const formatters: {
|
|
214
214
|
mint?: undefined;
|
215
215
|
sourceHash?: undefined;
|
216
216
|
}) | ({
|
217
|
-
gas?: `0x${string}` | undefined;
|
218
|
-
nonce?: `0x${string}` | undefined;
|
219
|
-
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
220
|
-
maxFeePerGas?: `0x${string}` | undefined;
|
221
|
-
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
222
|
-
gasPrice?: `0x${string}` | undefined;
|
223
|
-
from?: `0x${string}` | undefined;
|
224
|
-
to?: `0x${string}` | null | undefined;
|
225
|
-
value?: `0x${string}` | undefined;
|
226
|
-
r?: `0x${string}` | undefined;
|
227
|
-
s?: `0x${string}` | undefined;
|
228
|
-
v?: `0x${string}` | undefined;
|
229
217
|
yParity?: `0x${string}` | undefined;
|
230
218
|
blockHash?: `0x${string}` | null | undefined;
|
231
219
|
blockNumber?: `0x${string}` | null | undefined;
|
220
|
+
from?: `0x${string}` | undefined;
|
221
|
+
gas?: `0x${string}` | undefined;
|
232
222
|
hash?: `0x${string}` | undefined;
|
233
223
|
input?: `0x${string}` | undefined;
|
224
|
+
nonce?: `0x${string}` | undefined;
|
225
|
+
r?: `0x${string}` | undefined;
|
226
|
+
s?: `0x${string}` | undefined;
|
227
|
+
to?: `0x${string}` | null | undefined;
|
234
228
|
transactionIndex?: `0x${string}` | null | undefined;
|
229
|
+
v?: `0x${string}` | undefined;
|
230
|
+
value?: `0x${string}` | undefined;
|
231
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
232
|
+
gasPrice?: `0x${string}` | undefined;
|
233
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
234
|
+
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
235
235
|
accessList?: import("../../index.js").AccessList | undefined;
|
236
236
|
chainId?: `0x${string}` | undefined;
|
237
237
|
} & import("../index.js").Omit<import("../index.js").PartialBy<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "yParity">, "typeHex"> & {
|
@@ -239,24 +239,24 @@ export declare const formatters: {
|
|
239
239
|
mint?: undefined;
|
240
240
|
sourceHash?: undefined;
|
241
241
|
}) | ({
|
242
|
-
gas?: `0x${string}` | undefined;
|
243
|
-
nonce?: `0x${string}` | undefined;
|
244
|
-
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
245
|
-
maxFeePerGas?: `0x${string}` | undefined;
|
246
|
-
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
247
|
-
gasPrice?: `0x${string}` | undefined;
|
248
|
-
from?: `0x${string}` | undefined;
|
249
|
-
to?: `0x${string}` | null | undefined;
|
250
|
-
value?: `0x${string}` | undefined;
|
251
|
-
r?: `0x${string}` | undefined;
|
252
|
-
s?: `0x${string}` | undefined;
|
253
|
-
v?: `0x${string}` | undefined;
|
254
242
|
yParity?: `0x${string}` | undefined;
|
255
243
|
blockHash?: `0x${string}` | null | undefined;
|
256
244
|
blockNumber?: `0x${string}` | null | undefined;
|
245
|
+
from?: `0x${string}` | undefined;
|
246
|
+
gas?: `0x${string}` | undefined;
|
257
247
|
hash?: `0x${string}` | undefined;
|
258
248
|
input?: `0x${string}` | undefined;
|
249
|
+
nonce?: `0x${string}` | undefined;
|
250
|
+
r?: `0x${string}` | undefined;
|
251
|
+
s?: `0x${string}` | undefined;
|
252
|
+
to?: `0x${string}` | null | undefined;
|
259
253
|
transactionIndex?: `0x${string}` | null | undefined;
|
254
|
+
v?: `0x${string}` | undefined;
|
255
|
+
value?: `0x${string}` | undefined;
|
256
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
257
|
+
gasPrice?: `0x${string}` | undefined;
|
258
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
259
|
+
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
260
260
|
accessList?: import("../../index.js").AccessList | undefined;
|
261
261
|
chainId?: `0x${string}` | undefined;
|
262
262
|
} & import("../index.js").Omit<import("../index.js").PartialBy<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "yParity">, "typeHex"> & {
|
@@ -264,24 +264,24 @@ export declare const formatters: {
|
|
264
264
|
mint?: undefined;
|
265
265
|
sourceHash?: undefined;
|
266
266
|
}) | ({
|
267
|
-
gas?: `0x${string}` | undefined;
|
268
|
-
nonce?: `0x${string}` | undefined;
|
269
|
-
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
270
|
-
maxFeePerGas?: `0x${string}` | undefined;
|
271
|
-
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
272
|
-
gasPrice?: `0x${string}` | undefined;
|
273
|
-
from?: `0x${string}` | undefined;
|
274
|
-
to?: `0x${string}` | null | undefined;
|
275
|
-
value?: `0x${string}` | undefined;
|
276
|
-
r?: `0x${string}` | undefined;
|
277
|
-
s?: `0x${string}` | undefined;
|
278
|
-
v?: `0x${string}` | undefined;
|
279
267
|
yParity?: `0x${string}` | undefined;
|
280
268
|
blockHash?: `0x${string}` | null | undefined;
|
281
269
|
blockNumber?: `0x${string}` | null | undefined;
|
270
|
+
from?: `0x${string}` | undefined;
|
271
|
+
gas?: `0x${string}` | undefined;
|
282
272
|
hash?: `0x${string}` | undefined;
|
283
273
|
input?: `0x${string}` | undefined;
|
274
|
+
nonce?: `0x${string}` | undefined;
|
275
|
+
r?: `0x${string}` | undefined;
|
276
|
+
s?: `0x${string}` | undefined;
|
277
|
+
to?: `0x${string}` | null | undefined;
|
284
278
|
transactionIndex?: `0x${string}` | null | undefined;
|
279
|
+
v?: `0x${string}` | undefined;
|
280
|
+
value?: `0x${string}` | undefined;
|
281
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
282
|
+
gasPrice?: `0x${string}` | undefined;
|
283
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
284
|
+
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
285
285
|
accessList?: import("../../index.js").AccessList | undefined;
|
286
286
|
chainId?: `0x${string}` | undefined;
|
287
287
|
} & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
|
@@ -290,20 +290,20 @@ export declare const formatters: {
|
|
290
290
|
sourceHash: `0x${string}`;
|
291
291
|
type: "0x7e";
|
292
292
|
})) => ({
|
293
|
-
gas: bigint;
|
294
|
-
nonce: number;
|
295
|
-
from: `0x${string}`;
|
296
|
-
to: `0x${string}` | null;
|
297
|
-
value: bigint;
|
298
|
-
r: `0x${string}`;
|
299
|
-
s: `0x${string}`;
|
300
|
-
v: bigint;
|
301
293
|
blockHash: `0x${string}` | null;
|
302
294
|
blockNumber: bigint | null;
|
295
|
+
from: `0x${string}`;
|
296
|
+
gas: bigint;
|
303
297
|
hash: `0x${string}`;
|
304
298
|
input: `0x${string}`;
|
299
|
+
nonce: number;
|
300
|
+
r: `0x${string}`;
|
301
|
+
s: `0x${string}`;
|
302
|
+
to: `0x${string}` | null;
|
305
303
|
transactionIndex: number | null;
|
306
304
|
typeHex: `0x${string}` | null;
|
305
|
+
v: bigint;
|
306
|
+
value: bigint;
|
307
307
|
gasPrice: bigint;
|
308
308
|
maxFeePerGas?: undefined;
|
309
309
|
maxPriorityFeePerGas?: undefined;
|
@@ -315,20 +315,20 @@ export declare const formatters: {
|
|
315
315
|
mint?: undefined;
|
316
316
|
sourceHash?: undefined;
|
317
317
|
} | {
|
318
|
-
gas: bigint;
|
319
|
-
nonce: number;
|
320
|
-
from: `0x${string}`;
|
321
|
-
to: `0x${string}` | null;
|
322
|
-
value: bigint;
|
323
|
-
r: `0x${string}`;
|
324
|
-
s: `0x${string}`;
|
325
|
-
v: bigint;
|
326
318
|
blockHash: `0x${string}` | null;
|
327
319
|
blockNumber: bigint | null;
|
320
|
+
from: `0x${string}`;
|
321
|
+
gas: bigint;
|
328
322
|
hash: `0x${string}`;
|
329
323
|
input: `0x${string}`;
|
324
|
+
nonce: number;
|
325
|
+
r: `0x${string}`;
|
326
|
+
s: `0x${string}`;
|
327
|
+
to: `0x${string}` | null;
|
330
328
|
transactionIndex: number | null;
|
331
329
|
typeHex: `0x${string}` | null;
|
330
|
+
v: bigint;
|
331
|
+
value: bigint;
|
332
332
|
gasPrice: undefined;
|
333
333
|
maxFeePerGas: bigint;
|
334
334
|
maxPriorityFeePerGas: bigint;
|
@@ -37,20 +37,20 @@ export declare const chainConfig: {
|
|
37
37
|
readonly transaction: {
|
38
38
|
exclude: [] | undefined;
|
39
39
|
format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcTransaction>, import("./types.js").ZkSyncRpcTransaction>) => ({
|
40
|
-
gas: bigint;
|
41
|
-
nonce: number;
|
42
|
-
from: `0x${string}`;
|
43
|
-
to: `0x${string}` | null;
|
44
|
-
value: bigint;
|
45
|
-
r: `0x${string}`;
|
46
|
-
s: `0x${string}`;
|
47
|
-
v: bigint;
|
48
40
|
blockHash: `0x${string}` | null;
|
49
41
|
blockNumber: bigint | null;
|
42
|
+
from: `0x${string}`;
|
43
|
+
gas: bigint;
|
50
44
|
hash: `0x${string}`;
|
51
45
|
input: `0x${string}`;
|
46
|
+
nonce: number;
|
47
|
+
r: `0x${string}`;
|
48
|
+
s: `0x${string}`;
|
49
|
+
to: `0x${string}` | null;
|
52
50
|
transactionIndex: number | null;
|
53
51
|
typeHex: `0x${string}` | null;
|
52
|
+
v: bigint;
|
53
|
+
value: bigint;
|
54
54
|
gasPrice: bigint;
|
55
55
|
maxFeePerGas?: undefined;
|
56
56
|
maxPriorityFeePerGas?: undefined;
|
@@ -61,20 +61,20 @@ export declare const chainConfig: {
|
|
61
61
|
l1BatchNumber: bigint | null;
|
62
62
|
l1BatchTxIndex: bigint | null;
|
63
63
|
} | {
|
64
|
-
gas: bigint;
|
65
|
-
nonce: number;
|
66
|
-
from: `0x${string}`;
|
67
|
-
to: `0x${string}` | null;
|
68
|
-
value: bigint;
|
69
|
-
r: `0x${string}`;
|
70
|
-
s: `0x${string}`;
|
71
|
-
v: bigint;
|
72
64
|
blockHash: `0x${string}` | null;
|
73
65
|
blockNumber: bigint | null;
|
66
|
+
from: `0x${string}`;
|
67
|
+
gas: bigint;
|
74
68
|
hash: `0x${string}`;
|
75
69
|
input: `0x${string}`;
|
70
|
+
nonce: number;
|
71
|
+
r: `0x${string}`;
|
72
|
+
s: `0x${string}`;
|
73
|
+
to: `0x${string}` | null;
|
76
74
|
transactionIndex: number | null;
|
77
75
|
typeHex: `0x${string}` | null;
|
76
|
+
v: bigint;
|
77
|
+
value: bigint;
|
78
78
|
gasPrice: undefined;
|
79
79
|
maxFeePerGas: bigint;
|
80
80
|
maxPriorityFeePerGas: bigint;
|
@@ -85,20 +85,20 @@ export declare const chainConfig: {
|
|
85
85
|
l1BatchNumber: bigint | null;
|
86
86
|
l1BatchTxIndex: bigint | null;
|
87
87
|
} | {
|
88
|
-
gas: bigint;
|
89
|
-
nonce: number;
|
90
|
-
from: `0x${string}`;
|
91
|
-
to: `0x${string}` | null;
|
92
|
-
value: bigint;
|
93
|
-
r: `0x${string}`;
|
94
|
-
s: `0x${string}`;
|
95
|
-
v: bigint;
|
96
88
|
blockHash: `0x${string}` | null;
|
97
89
|
blockNumber: bigint | null;
|
90
|
+
from: `0x${string}`;
|
91
|
+
gas: bigint;
|
98
92
|
hash: `0x${string}`;
|
99
93
|
input: `0x${string}`;
|
94
|
+
nonce: number;
|
95
|
+
r: `0x${string}`;
|
96
|
+
s: `0x${string}`;
|
97
|
+
to: `0x${string}` | null;
|
100
98
|
transactionIndex: number | null;
|
101
99
|
typeHex: `0x${string}` | null;
|
100
|
+
v: bigint;
|
101
|
+
value: bigint;
|
102
102
|
gasPrice: undefined;
|
103
103
|
maxFeePerGas: bigint;
|
104
104
|
maxPriorityFeePerGas: bigint;
|
@@ -38,20 +38,20 @@ export declare const formatters: {
|
|
38
38
|
readonly transaction: {
|
39
39
|
exclude: [] | undefined;
|
40
40
|
format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcTransaction>, ZkSyncRpcTransaction>) => ({
|
41
|
-
gas: bigint;
|
42
|
-
nonce: number;
|
43
|
-
from: `0x${string}`;
|
44
|
-
to: `0x${string}` | null;
|
45
|
-
value: bigint;
|
46
|
-
r: `0x${string}`;
|
47
|
-
s: `0x${string}`;
|
48
|
-
v: bigint;
|
49
41
|
blockHash: `0x${string}` | null;
|
50
42
|
blockNumber: bigint | null;
|
43
|
+
from: `0x${string}`;
|
44
|
+
gas: bigint;
|
51
45
|
hash: `0x${string}`;
|
52
46
|
input: `0x${string}`;
|
47
|
+
nonce: number;
|
48
|
+
r: `0x${string}`;
|
49
|
+
s: `0x${string}`;
|
50
|
+
to: `0x${string}` | null;
|
53
51
|
transactionIndex: number | null;
|
54
52
|
typeHex: `0x${string}` | null;
|
53
|
+
v: bigint;
|
54
|
+
value: bigint;
|
55
55
|
gasPrice: bigint;
|
56
56
|
maxFeePerGas?: undefined;
|
57
57
|
maxPriorityFeePerGas?: undefined;
|
@@ -62,20 +62,20 @@ export declare const formatters: {
|
|
62
62
|
l1BatchNumber: bigint | null;
|
63
63
|
l1BatchTxIndex: bigint | null;
|
64
64
|
} | {
|
65
|
-
gas: bigint;
|
66
|
-
nonce: number;
|
67
|
-
from: `0x${string}`;
|
68
|
-
to: `0x${string}` | null;
|
69
|
-
value: bigint;
|
70
|
-
r: `0x${string}`;
|
71
|
-
s: `0x${string}`;
|
72
|
-
v: bigint;
|
73
65
|
blockHash: `0x${string}` | null;
|
74
66
|
blockNumber: bigint | null;
|
67
|
+
from: `0x${string}`;
|
68
|
+
gas: bigint;
|
75
69
|
hash: `0x${string}`;
|
76
70
|
input: `0x${string}`;
|
71
|
+
nonce: number;
|
72
|
+
r: `0x${string}`;
|
73
|
+
s: `0x${string}`;
|
74
|
+
to: `0x${string}` | null;
|
77
75
|
transactionIndex: number | null;
|
78
76
|
typeHex: `0x${string}` | null;
|
77
|
+
v: bigint;
|
78
|
+
value: bigint;
|
79
79
|
gasPrice: undefined;
|
80
80
|
maxFeePerGas: bigint;
|
81
81
|
maxPriorityFeePerGas: bigint;
|
@@ -86,20 +86,20 @@ export declare const formatters: {
|
|
86
86
|
l1BatchNumber: bigint | null;
|
87
87
|
l1BatchTxIndex: bigint | null;
|
88
88
|
} | {
|
89
|
-
gas: bigint;
|
90
|
-
nonce: number;
|
91
|
-
from: `0x${string}`;
|
92
|
-
to: `0x${string}` | null;
|
93
|
-
value: bigint;
|
94
|
-
r: `0x${string}`;
|
95
|
-
s: `0x${string}`;
|
96
|
-
v: bigint;
|
97
89
|
blockHash: `0x${string}` | null;
|
98
90
|
blockNumber: bigint | null;
|
91
|
+
from: `0x${string}`;
|
92
|
+
gas: bigint;
|
99
93
|
hash: `0x${string}`;
|
100
94
|
input: `0x${string}`;
|
95
|
+
nonce: number;
|
96
|
+
r: `0x${string}`;
|
97
|
+
s: `0x${string}`;
|
98
|
+
to: `0x${string}` | null;
|
101
99
|
transactionIndex: number | null;
|
102
100
|
typeHex: `0x${string}` | null;
|
101
|
+
v: bigint;
|
102
|
+
value: bigint;
|
103
103
|
gasPrice: undefined;
|
104
104
|
maxFeePerGas: bigint;
|
105
105
|
maxPriorityFeePerGas: bigint;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export declare const version = "2.0.0-rc.
|
1
|
+
export declare const version = "2.0.0-rc.2";
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
@@ -18,7 +18,7 @@ export declare const transactionType: {
|
|
18
18
|
export type FormatTransactionErrorType = ErrorType;
|
19
19
|
export declare function formatTransaction(transaction: Partial<RpcTransaction>): Transaction;
|
20
20
|
export type DefineTransactionErrorType = DefineFormatterErrorType | ErrorType;
|
21
|
-
export declare const defineTransaction: <TOverrideParameters, TOverrideReturnType, TExclude extends ("
|
21
|
+
export declare const defineTransaction: <TOverrideParameters, TOverrideReturnType, TExclude extends ("yParity" | "blockHash" | "blockNumber" | "from" | "gas" | "hash" | "input" | "nonce" | "r" | "s" | "to" | "transactionIndex" | "v" | "value" | "type" | "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" | "accessList" | "chainId" | keyof TOverrideParameters)[] = []>({ exclude, format: overrides, }: {
|
22
22
|
exclude?: TExclude | undefined;
|
23
23
|
format: (_: TOverrideParameters) => TOverrideReturnType;
|
24
24
|
}) => {
|
@@ -12,7 +12,7 @@ export declare const rpcTransactionType: {
|
|
12
12
|
export type FormatTransactionRequestErrorType = ErrorType;
|
13
13
|
export declare function formatTransactionRequest(transactionRequest: Partial<TransactionRequest>): RpcTransactionRequest;
|
14
14
|
export type DefineTransactionRequestErrorType = DefineFormatterErrorType | ErrorType;
|
15
|
-
export declare const defineTransactionRequest: <TOverrideParameters, TOverrideReturnType, TExclude extends ("
|
15
|
+
export declare const defineTransactionRequest: <TOverrideParameters, TOverrideReturnType, TExclude extends ("from" | "gas" | "nonce" | "to" | "value" | "type" | "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" | "accessList" | "data" | keyof TOverrideParameters)[] = []>({ exclude, format: overrides, }: {
|
16
16
|
exclude?: TExclude | undefined;
|
17
17
|
format: (_: TOverrideParameters) => TOverrideReturnType;
|
18
18
|
}) => {
|
@@ -191,10 +191,9 @@ export async function getFilterChanges<
|
|
191
191
|
TToBlock
|
192
192
|
>
|
193
193
|
|
194
|
+
const formattedLogs = logs.map((log) => formatLog(log as RpcLog))
|
194
195
|
if (!('abi' in filter) || !filter.abi)
|
195
|
-
return
|
196
|
-
formatLog(log as RpcLog),
|
197
|
-
) as GetFilterChangesReturnType<
|
196
|
+
return formattedLogs as GetFilterChangesReturnType<
|
198
197
|
TFilterType,
|
199
198
|
TAbi,
|
200
199
|
TEventName,
|
@@ -202,10 +201,9 @@ export async function getFilterChanges<
|
|
202
201
|
TFromBlock,
|
203
202
|
TToBlock
|
204
203
|
>
|
205
|
-
|
206
204
|
return parseEventLogs({
|
207
205
|
abi: filter.abi,
|
208
|
-
logs:
|
206
|
+
logs: formattedLogs,
|
209
207
|
strict,
|
210
208
|
}) as unknown as GetFilterChangesReturnType<
|
211
209
|
TFilterType,
|
@@ -96,18 +96,18 @@ export async function getFilterLogs<
|
|
96
96
|
params: [filter.id],
|
97
97
|
})
|
98
98
|
|
99
|
+
const formattedLogs = logs.map((log) => formatLog(log))
|
99
100
|
if (!filter.abi)
|
100
|
-
return
|
101
|
+
return formattedLogs as GetFilterLogsReturnType<
|
101
102
|
TAbi,
|
102
103
|
TEventName,
|
103
104
|
TStrict,
|
104
105
|
TFromBlock,
|
105
106
|
TToBlock
|
106
107
|
>
|
107
|
-
|
108
108
|
return parseEventLogs({
|
109
109
|
abi: filter.abi,
|
110
|
-
logs,
|
110
|
+
logs: formattedLogs,
|
111
111
|
strict,
|
112
112
|
}) as unknown as GetFilterLogsReturnType<
|
113
113
|
TAbi,
|