viem 1.19.7 → 1.19.9

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.
Files changed (41) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/_cjs/chains/definitions/filecoin.js +6 -0
  3. package/_cjs/chains/definitions/filecoin.js.map +1 -1
  4. package/_cjs/chains/definitions/pgn.js +38 -0
  5. package/_cjs/chains/definitions/pgn.js.map +1 -0
  6. package/_cjs/chains/definitions/pgnTestnet.js +39 -0
  7. package/_cjs/chains/definitions/pgnTestnet.js.map +1 -0
  8. package/_cjs/chains/definitions/rootstock.js +29 -0
  9. package/_cjs/chains/definitions/rootstock.js.map +1 -0
  10. package/_cjs/chains/index.js +8 -2
  11. package/_cjs/chains/index.js.map +1 -1
  12. package/_cjs/errors/version.js +1 -1
  13. package/_esm/chains/definitions/filecoin.js +6 -0
  14. package/_esm/chains/definitions/filecoin.js.map +1 -1
  15. package/_esm/chains/definitions/pgn.js +35 -0
  16. package/_esm/chains/definitions/pgn.js.map +1 -0
  17. package/_esm/chains/definitions/pgnTestnet.js +36 -0
  18. package/_esm/chains/definitions/pgnTestnet.js.map +1 -0
  19. package/_esm/chains/definitions/rootstock.js +26 -0
  20. package/_esm/chains/definitions/rootstock.js.map +1 -0
  21. package/_esm/chains/index.js +3 -0
  22. package/_esm/chains/index.js.map +1 -1
  23. package/_esm/errors/version.js +1 -1
  24. package/_types/chains/definitions/filecoin.d.ts +6 -0
  25. package/_types/chains/definitions/filecoin.d.ts.map +1 -1
  26. package/_types/chains/definitions/pgn.d.ts +340 -0
  27. package/_types/chains/definitions/pgn.d.ts.map +1 -0
  28. package/_types/chains/definitions/pgnTestnet.d.ts +341 -0
  29. package/_types/chains/definitions/pgnTestnet.d.ts.map +1 -0
  30. package/_types/chains/definitions/rootstock.d.ts +35 -0
  31. package/_types/chains/definitions/rootstock.d.ts.map +1 -0
  32. package/_types/chains/index.d.ts +3 -0
  33. package/_types/chains/index.d.ts.map +1 -1
  34. package/_types/errors/version.d.ts +1 -1
  35. package/chains/definitions/filecoin.ts +6 -0
  36. package/chains/definitions/pgn.ts +38 -0
  37. package/chains/definitions/pgnTestnet.ts +39 -0
  38. package/chains/definitions/rootstock.ts +26 -0
  39. package/chains/index.ts +3 -0
  40. package/errors/version.ts +1 -1
  41. package/package.json +1 -1
@@ -0,0 +1,340 @@
1
+ export declare const pgn: import("../../types/utils.js").Assign<{
2
+ readonly id: 424;
3
+ readonly network: "pgn";
4
+ readonly name: "PGN";
5
+ readonly nativeCurrency: {
6
+ readonly name: "Ether";
7
+ readonly symbol: "ETH";
8
+ readonly decimals: 18;
9
+ };
10
+ readonly rpcUrls: {
11
+ readonly default: {
12
+ readonly http: readonly ["https://rpc.publicgoods.network"];
13
+ };
14
+ readonly public: {
15
+ readonly http: readonly ["https://rpc.publicgoods.network"];
16
+ };
17
+ };
18
+ readonly blockExplorers: {
19
+ readonly default: {
20
+ readonly name: "PGN Explorer";
21
+ readonly url: "https://explorer.publicgoods.network";
22
+ };
23
+ readonly blocksout: {
24
+ readonly name: "PGN Explorer";
25
+ readonly url: "https://explorer.publicgoods.network";
26
+ };
27
+ };
28
+ readonly contracts: {
29
+ readonly multicall3: {
30
+ readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
31
+ readonly blockCreated: 3380209;
32
+ };
33
+ };
34
+ }, import("../../types/chain.js").ChainConfig<{
35
+ readonly block: {
36
+ exclude: [] | undefined;
37
+ format: (args: import("../../types/utils.js").Assign<Partial<import("../../index.js").RpcBlock>, import("../optimism/types.js").OptimismRpcBlockOverrides & {
38
+ transactions: `0x${string}`[] | import("../optimism/types.js").OptimismRpcTransaction[];
39
+ }>) => {
40
+ baseFeePerGas: bigint | null;
41
+ difficulty: bigint;
42
+ extraData: `0x${string}`;
43
+ gasLimit: bigint;
44
+ gasUsed: bigint;
45
+ hash: `0x${string}` | null;
46
+ logsBloom: `0x${string}` | null;
47
+ miner: `0x${string}`;
48
+ mixHash: `0x${string}`;
49
+ nonce: `0x${string}` | null;
50
+ number: bigint | null;
51
+ parentHash: `0x${string}`;
52
+ receiptsRoot: `0x${string}`;
53
+ sealFields: `0x${string}`[];
54
+ sha3Uncles: `0x${string}`;
55
+ size: bigint;
56
+ stateRoot: `0x${string}`;
57
+ timestamp: bigint;
58
+ totalDifficulty: bigint | null;
59
+ transactions: `0x${string}`[] | import("../optimism/types.js").OptimismTransaction[];
60
+ transactionsRoot: `0x${string}`;
61
+ uncles: `0x${string}`[];
62
+ withdrawals?: import("../../index.js").Withdrawal[] | undefined;
63
+ withdrawalsRoot?: `0x${string}` | undefined;
64
+ } & {};
65
+ type: "block";
66
+ };
67
+ readonly transaction: {
68
+ exclude: [] | undefined;
69
+ format: (args: (import("../../types/utils.js").Assign_<Partial<Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "yParity">, "typeHex">>, import("../optimism/types.js").OptimismRpcTransaction> & Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "yParity">, "typeHex"> & {
70
+ isSystemTx?: undefined;
71
+ mint?: undefined;
72
+ sourceHash?: undefined;
73
+ }) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "yParity">, "typeHex">>, import("../optimism/types.js").OptimismRpcTransaction> & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
74
+ isSystemTx?: boolean | undefined;
75
+ mint?: `0x${string}` | undefined;
76
+ sourceHash: `0x${string}`;
77
+ type: "0x7e";
78
+ }) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "yParity">, "typeHex">>, import("../optimism/types.js").OptimismRpcTransaction> & Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "yParity">, "typeHex"> & {
79
+ isSystemTx?: undefined;
80
+ mint?: undefined;
81
+ sourceHash?: undefined;
82
+ }) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "yParity">, "typeHex">>, import("../optimism/types.js").OptimismRpcTransaction> & Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "yParity">, "typeHex"> & {
83
+ isSystemTx?: undefined;
84
+ mint?: undefined;
85
+ sourceHash?: undefined;
86
+ }) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "yParity">, "typeHex">>, import("../optimism/types.js").OptimismRpcTransaction> & Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "yParity">, "typeHex"> & {
87
+ isSystemTx?: undefined;
88
+ mint?: undefined;
89
+ sourceHash?: undefined;
90
+ }) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "yParity">, "typeHex">>, import("../optimism/types.js").OptimismRpcTransaction> & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
91
+ isSystemTx?: boolean | undefined;
92
+ mint?: `0x${string}` | undefined;
93
+ sourceHash: `0x${string}`;
94
+ type: "0x7e";
95
+ }) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "yParity">, "typeHex">>, import("../optimism/types.js").OptimismRpcTransaction> & Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "yParity">, "typeHex"> & {
96
+ isSystemTx?: undefined;
97
+ mint?: undefined;
98
+ sourceHash?: undefined;
99
+ }) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "yParity">, "typeHex">>, import("../optimism/types.js").OptimismRpcTransaction> & Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "yParity">, "typeHex"> & {
100
+ isSystemTx?: undefined;
101
+ mint?: undefined;
102
+ sourceHash?: undefined;
103
+ }) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "yParity">, "typeHex">>, import("../optimism/types.js").OptimismRpcTransaction> & Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "yParity">, "typeHex"> & {
104
+ isSystemTx?: undefined;
105
+ mint?: undefined;
106
+ sourceHash?: undefined;
107
+ }) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../types/utils.js").PartialBy<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "yParity">, "typeHex">>, import("../optimism/types.js").OptimismRpcTransaction> & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
108
+ isSystemTx?: boolean | undefined;
109
+ mint?: `0x${string}` | undefined;
110
+ sourceHash: `0x${string}`;
111
+ type: "0x7e";
112
+ })) => ({
113
+ blockHash: `0x${string}` | null;
114
+ blockNumber: bigint | null;
115
+ from: `0x${string}`;
116
+ gas: bigint;
117
+ hash: `0x${string}`;
118
+ input: `0x${string}`;
119
+ nonce: number;
120
+ r: `0x${string}`;
121
+ s: `0x${string}`;
122
+ to: `0x${string}` | null;
123
+ transactionIndex: number | null;
124
+ typeHex: `0x${string}` | null;
125
+ v: bigint;
126
+ value: bigint;
127
+ gasPrice: bigint;
128
+ maxFeePerGas?: undefined;
129
+ maxPriorityFeePerGas?: undefined;
130
+ accessList?: undefined;
131
+ chainId?: number | undefined;
132
+ yParity?: undefined;
133
+ type: "legacy";
134
+ isSystemTx?: undefined;
135
+ mint?: undefined;
136
+ sourceHash?: undefined;
137
+ } | {
138
+ blockHash: `0x${string}` | null;
139
+ blockNumber: bigint | null;
140
+ from: `0x${string}`;
141
+ gas: bigint;
142
+ hash: `0x${string}`;
143
+ input: `0x${string}`;
144
+ nonce: number;
145
+ r: `0x${string}`;
146
+ s: `0x${string}`;
147
+ to: `0x${string}` | null;
148
+ transactionIndex: number | null;
149
+ typeHex: `0x${string}` | null;
150
+ v: bigint;
151
+ value: bigint;
152
+ gasPrice: undefined;
153
+ maxFeePerGas: bigint;
154
+ maxPriorityFeePerGas: bigint;
155
+ accessList?: undefined;
156
+ chainId?: number | undefined;
157
+ yParity: number;
158
+ type: "deposit";
159
+ isSystemTx?: boolean | undefined;
160
+ mint?: bigint | undefined;
161
+ sourceHash: `0x${string}`;
162
+ } | {
163
+ blockHash: `0x${string}` | null;
164
+ blockNumber: bigint | null;
165
+ from: `0x${string}`;
166
+ gas: bigint;
167
+ hash: `0x${string}`;
168
+ input: `0x${string}`;
169
+ nonce: number;
170
+ r: `0x${string}`;
171
+ s: `0x${string}`;
172
+ to: `0x${string}` | null;
173
+ transactionIndex: number | null;
174
+ typeHex: `0x${string}` | null;
175
+ v: bigint;
176
+ value: bigint;
177
+ yParity: number;
178
+ gasPrice: bigint;
179
+ maxFeePerGas?: undefined;
180
+ maxPriorityFeePerGas?: undefined;
181
+ accessList: import("../../index.js").AccessList;
182
+ chainId: number;
183
+ type: "eip2930";
184
+ isSystemTx?: undefined;
185
+ mint?: undefined;
186
+ sourceHash?: undefined;
187
+ } | {
188
+ blockHash: `0x${string}` | null;
189
+ blockNumber: bigint | null;
190
+ from: `0x${string}`;
191
+ gas: bigint;
192
+ hash: `0x${string}`;
193
+ input: `0x${string}`;
194
+ nonce: number;
195
+ r: `0x${string}`;
196
+ s: `0x${string}`;
197
+ to: `0x${string}` | null;
198
+ transactionIndex: number | null;
199
+ typeHex: `0x${string}` | null;
200
+ v: bigint;
201
+ value: bigint;
202
+ yParity: number;
203
+ gasPrice: undefined;
204
+ maxFeePerGas: bigint;
205
+ maxPriorityFeePerGas: bigint;
206
+ accessList: import("../../index.js").AccessList;
207
+ chainId: number;
208
+ type: "eip1559";
209
+ isSystemTx?: undefined;
210
+ mint?: undefined;
211
+ sourceHash?: undefined;
212
+ } | {
213
+ blockHash: `0x${string}` | null;
214
+ blockNumber: bigint | null;
215
+ from: `0x${string}`;
216
+ gas: bigint;
217
+ hash: `0x${string}`;
218
+ input: `0x${string}`;
219
+ nonce: number;
220
+ r: `0x${string}`;
221
+ s: `0x${string}`;
222
+ to: `0x${string}` | null;
223
+ transactionIndex: number | null;
224
+ typeHex: `0x${string}` | null;
225
+ v: bigint;
226
+ value: bigint;
227
+ yParity: number;
228
+ gasPrice: undefined;
229
+ maxFeePerGas: bigint;
230
+ maxPriorityFeePerGas: bigint;
231
+ accessList: import("../../index.js").AccessList;
232
+ chainId: number;
233
+ type: "deposit";
234
+ isSystemTx?: boolean | undefined;
235
+ mint?: bigint | undefined;
236
+ sourceHash: `0x${string}`;
237
+ } | {
238
+ blockHash: `0x${string}` | null;
239
+ blockNumber: bigint | null;
240
+ from: `0x${string}`;
241
+ gas: bigint;
242
+ hash: `0x${string}`;
243
+ input: `0x${string}`;
244
+ nonce: number;
245
+ r: `0x${string}`;
246
+ s: `0x${string}`;
247
+ to: `0x${string}` | null;
248
+ transactionIndex: number | null;
249
+ typeHex: `0x${string}` | null;
250
+ v: bigint;
251
+ value: bigint;
252
+ yParity: number;
253
+ gasPrice: bigint;
254
+ maxFeePerGas: undefined;
255
+ maxPriorityFeePerGas: undefined;
256
+ accessList: import("../../index.js").AccessList;
257
+ chainId: number;
258
+ type: "eip2930";
259
+ isSystemTx?: undefined;
260
+ mint?: undefined;
261
+ sourceHash?: undefined;
262
+ } | {
263
+ blockHash: `0x${string}` | null;
264
+ blockNumber: bigint | null;
265
+ from: `0x${string}`;
266
+ gas: bigint;
267
+ hash: `0x${string}`;
268
+ input: `0x${string}`;
269
+ nonce: number;
270
+ r: `0x${string}`;
271
+ s: `0x${string}`;
272
+ to: `0x${string}` | null;
273
+ transactionIndex: number | null;
274
+ typeHex: `0x${string}` | null;
275
+ v: bigint;
276
+ value: bigint;
277
+ yParity: number;
278
+ gasPrice?: undefined;
279
+ maxFeePerGas: bigint;
280
+ maxPriorityFeePerGas: bigint;
281
+ accessList: import("../../index.js").AccessList;
282
+ chainId: number;
283
+ type: "eip1559";
284
+ isSystemTx?: undefined;
285
+ mint?: undefined;
286
+ sourceHash?: undefined;
287
+ } | {
288
+ blockHash: `0x${string}` | null;
289
+ blockNumber: bigint | null;
290
+ from: `0x${string}`;
291
+ gas: bigint;
292
+ hash: `0x${string}`;
293
+ input: `0x${string}`;
294
+ nonce: number;
295
+ r: `0x${string}`;
296
+ s: `0x${string}`;
297
+ to: `0x${string}` | null;
298
+ transactionIndex: number | null;
299
+ typeHex: `0x${string}` | null;
300
+ v: bigint;
301
+ value: bigint;
302
+ yParity: number;
303
+ gasPrice?: undefined;
304
+ maxFeePerGas: bigint;
305
+ maxPriorityFeePerGas: bigint;
306
+ accessList: import("../../index.js").AccessList;
307
+ chainId: number;
308
+ type: "deposit";
309
+ isSystemTx?: boolean | undefined;
310
+ mint?: bigint | undefined;
311
+ sourceHash: `0x${string}`;
312
+ }) & {};
313
+ type: "transaction";
314
+ };
315
+ readonly transactionReceipt: {
316
+ exclude: [] | undefined;
317
+ format: (args: import("../../types/utils.js").Assign<Partial<import("../../index.js").RpcTransactionReceipt>, import("../optimism/types.js").OptimismRpcTransactionReceiptOverrides>) => {
318
+ blockHash: `0x${string}`;
319
+ blockNumber: bigint;
320
+ contractAddress: `0x${string}` | null;
321
+ cumulativeGasUsed: bigint;
322
+ effectiveGasPrice: bigint;
323
+ from: `0x${string}`;
324
+ gasUsed: bigint;
325
+ logs: import("../../index.js").Log<bigint, number, false>[];
326
+ logsBloom: `0x${string}`;
327
+ status: "success" | "reverted";
328
+ to: `0x${string}` | null;
329
+ transactionHash: `0x${string}`;
330
+ transactionIndex: number;
331
+ type: import("../../index.js").TransactionType;
332
+ l1GasPrice: bigint | null;
333
+ l1GasUsed: bigint | null;
334
+ l1Fee: bigint | null;
335
+ l1FeeScalar: number | null;
336
+ } & {};
337
+ type: "transactionReceipt";
338
+ };
339
+ }>>;
340
+ //# sourceMappingURL=pgn.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pgn.d.ts","sourceRoot":"","sources":["../../../chains/definitions/pgn.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCf,CAAA"}