@latticexyz/common 2.2.18-90aac1d4acce19ac592d47a090732dd11c1c3e7a → 2.2.18-9fa07c8489f1fbf167d0db01cd9aaa645a29c8e2

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 (67) hide show
  1. package/dist/actions.cjs +334 -0
  2. package/dist/actions.cjs.map +1 -0
  3. package/dist/actions.d.cts +27 -0
  4. package/dist/actions.js +39 -1
  5. package/dist/actions.js.map +1 -1
  6. package/dist/chains.cjs +106 -0
  7. package/dist/chains.cjs.map +1 -0
  8. package/dist/chains.d.cts +968 -0
  9. package/dist/chains.js +75 -1
  10. package/dist/chains.js.map +1 -1
  11. package/dist/chunk-D4GDXAMP.js +64 -0
  12. package/dist/{chunk-ZIUX7JCQ.js.map → chunk-D4GDXAMP.js.map} +1 -1
  13. package/dist/chunk-IYZZFDNO.js +16 -0
  14. package/dist/{chunk-ZV2KGJCD.js.map → chunk-IYZZFDNO.js.map} +1 -1
  15. package/dist/chunk-MF5NFUW7.js +12 -0
  16. package/dist/{chunk-QQCZY3XJ.js.map → chunk-MF5NFUW7.js.map} +1 -1
  17. package/dist/chunk-MK6UECU7.js +11 -0
  18. package/dist/{chunk-TCWGPC6G.js.map → chunk-MK6UECU7.js.map} +1 -1
  19. package/dist/chunk-MYWRXQQH.js +208 -0
  20. package/dist/{chunk-6FIKI2CG.js.map → chunk-MYWRXQQH.js.map} +1 -1
  21. package/dist/chunk-Z6SVAIZN.js +70 -0
  22. package/dist/{chunk-DPUUE7NM.js.map → chunk-Z6SVAIZN.js.map} +1 -1
  23. package/dist/codegen.cjs +889 -0
  24. package/dist/codegen.cjs.map +1 -0
  25. package/dist/codegen.d.cts +228 -0
  26. package/dist/codegen.js +706 -49
  27. package/dist/codegen.js.map +1 -1
  28. package/dist/errors.cjs +38 -0
  29. package/dist/errors.cjs.map +1 -0
  30. package/dist/errors.d.cts +5 -0
  31. package/dist/errors.js +6 -1
  32. package/dist/foundry.cjs +105 -0
  33. package/dist/foundry.cjs.map +1 -0
  34. package/dist/foundry.d.cts +69 -0
  35. package/dist/foundry.js +71 -2
  36. package/dist/foundry.js.map +1 -1
  37. package/dist/getContract-CA0EdVg6.d.cts +20 -0
  38. package/dist/index.cjs +597 -0
  39. package/dist/index.cjs.map +1 -0
  40. package/dist/index.d.cts +160 -0
  41. package/dist/index.js +233 -1
  42. package/dist/index.js.map +1 -1
  43. package/dist/internal.cjs +459 -0
  44. package/dist/internal.cjs.map +1 -0
  45. package/dist/internal.d.cts +36 -0
  46. package/dist/internal.js +205 -9
  47. package/dist/internal.js.map +1 -1
  48. package/dist/kms.cjs +204 -0
  49. package/dist/kms.cjs.map +1 -0
  50. package/dist/kms.d.cts +18 -0
  51. package/dist/kms.js +168 -1
  52. package/dist/kms.js.map +1 -1
  53. package/dist/type-utils.cjs +19 -0
  54. package/dist/type-utils.cjs.map +1 -0
  55. package/dist/type-utils.d.cts +19 -0
  56. package/dist/utils.cjs +174 -0
  57. package/dist/utils.cjs.map +1 -0
  58. package/dist/utils.d.cts +40 -0
  59. package/dist/utils.js +122 -1
  60. package/dist/utils.js.map +1 -1
  61. package/package.json +104 -16
  62. package/dist/chunk-6FIKI2CG.js +0 -2
  63. package/dist/chunk-DPUUE7NM.js +0 -2
  64. package/dist/chunk-QQCZY3XJ.js +0 -2
  65. package/dist/chunk-TCWGPC6G.js +0 -2
  66. package/dist/chunk-ZIUX7JCQ.js +0 -2
  67. package/dist/chunk-ZV2KGJCD.js +0 -2
@@ -0,0 +1,968 @@
1
+ import * as viem_chains from 'viem/chains';
2
+ import { Chain } from 'viem/chains';
3
+ import * as viem from 'viem';
4
+ import * as viem_experimental from 'viem/experimental';
5
+ import * as viem_op_stack from 'viem/op-stack';
6
+
7
+ type MUDChain = Chain & {
8
+ iconUrls?: readonly string[];
9
+ indexerUrl?: string;
10
+ /** @deprecated */
11
+ faucetUrl?: string;
12
+ };
13
+
14
+ declare const mudFoundry: {
15
+ readonly fees: {
16
+ readonly defaultPriorityFee: 0n;
17
+ };
18
+ readonly blockExplorers?: {
19
+ [key: string]: {
20
+ name: string;
21
+ url: string;
22
+ apiUrl?: string | undefined;
23
+ };
24
+ default: {
25
+ name: string;
26
+ url: string;
27
+ apiUrl?: string | undefined;
28
+ };
29
+ } | undefined;
30
+ readonly contracts?: {
31
+ [x: string]: viem.ChainContract | {
32
+ [sourceId: number]: viem.ChainContract | undefined;
33
+ } | undefined;
34
+ ensRegistry?: viem.ChainContract | undefined;
35
+ ensUniversalResolver?: viem.ChainContract | undefined;
36
+ multicall3?: viem.ChainContract | undefined;
37
+ } | undefined;
38
+ readonly id: 31337;
39
+ readonly name: "Foundry";
40
+ readonly nativeCurrency: {
41
+ readonly decimals: 18;
42
+ readonly name: "Ether";
43
+ readonly symbol: "ETH";
44
+ };
45
+ readonly rpcUrls: {
46
+ readonly default: {
47
+ readonly http: readonly ["http://127.0.0.1:8545"];
48
+ readonly webSocket: readonly ["ws://127.0.0.1:8545"];
49
+ };
50
+ };
51
+ readonly sourceId?: number | undefined;
52
+ readonly testnet?: boolean | undefined;
53
+ readonly custom?: Record<string, unknown> | undefined;
54
+ readonly formatters?: undefined;
55
+ readonly serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable<bigint, number>> | undefined;
56
+ };
57
+
58
+ declare const redstone: {
59
+ readonly iconUrls: readonly ["https://redstone.xyz/chain-icons/redstone.png"];
60
+ readonly indexerUrl: "https://indexer.mud.redstonechain.com";
61
+ readonly blockExplorers: {
62
+ readonly default: {
63
+ readonly name: "Blockscout";
64
+ readonly url: "https://explorer.redstone.xyz";
65
+ };
66
+ };
67
+ readonly contracts: {
68
+ readonly multicall3: {
69
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
70
+ };
71
+ readonly portal: {
72
+ readonly 1: {
73
+ readonly address: "0xC7bCb0e8839a28A1cFadd1CF716de9016CdA51ae";
74
+ readonly blockCreated: 19578329;
75
+ };
76
+ };
77
+ readonly l2OutputOracle: {
78
+ readonly 1: {
79
+ readonly address: "0xa426A052f657AEEefc298b3B5c35a470e4739d69";
80
+ readonly blockCreated: 19578337;
81
+ };
82
+ };
83
+ readonly l1StandardBridge: {
84
+ readonly 1: {
85
+ readonly address: "0xc473ca7E02af24c129c2eEf51F2aDf0411c1Df69";
86
+ readonly blockCreated: 19578331;
87
+ };
88
+ };
89
+ readonly gasPriceOracle: {
90
+ readonly address: "0x420000000000000000000000000000000000000F";
91
+ };
92
+ readonly l1Block: {
93
+ readonly address: "0x4200000000000000000000000000000000000015";
94
+ };
95
+ readonly l2CrossDomainMessenger: {
96
+ readonly address: "0x4200000000000000000000000000000000000007";
97
+ };
98
+ readonly l2Erc721Bridge: {
99
+ readonly address: "0x4200000000000000000000000000000000000014";
100
+ };
101
+ readonly l2StandardBridge: {
102
+ readonly address: "0x4200000000000000000000000000000000000010";
103
+ };
104
+ readonly l2ToL1MessagePasser: {
105
+ readonly address: "0x4200000000000000000000000000000000000016";
106
+ };
107
+ };
108
+ readonly id: 690;
109
+ readonly name: "Redstone";
110
+ readonly nativeCurrency: {
111
+ readonly decimals: 18;
112
+ readonly name: "Ether";
113
+ readonly symbol: "ETH";
114
+ };
115
+ readonly rpcUrls: {
116
+ readonly default: {
117
+ readonly http: readonly ["https://rpc.redstonechain.com"];
118
+ readonly webSocket: readonly ["wss://rpc.redstonechain.com"];
119
+ };
120
+ };
121
+ readonly sourceId: 1;
122
+ readonly testnet?: boolean | undefined;
123
+ readonly custom?: Record<string, unknown> | undefined;
124
+ readonly fees?: viem.ChainFees<undefined> | undefined;
125
+ readonly formatters: {
126
+ readonly block: {
127
+ exclude: [] | undefined;
128
+ format: (args: viem_chains.OpStackRpcBlock<viem.BlockTag, boolean>) => {
129
+ baseFeePerGas: bigint | null;
130
+ blobGasUsed: bigint;
131
+ difficulty: bigint;
132
+ excessBlobGas: bigint;
133
+ extraData: `0x${string}`;
134
+ gasLimit: bigint;
135
+ gasUsed: bigint;
136
+ hash: `0x${string}` | null;
137
+ logsBloom: `0x${string}` | null;
138
+ miner: `0x${string}`;
139
+ mixHash: `0x${string}`;
140
+ nonce: `0x${string}` | null;
141
+ number: bigint | null;
142
+ parentBeaconBlockRoot?: `0x${string}` | undefined;
143
+ parentHash: `0x${string}`;
144
+ receiptsRoot: `0x${string}`;
145
+ sealFields: `0x${string}`[];
146
+ sha3Uncles: `0x${string}`;
147
+ size: bigint;
148
+ stateRoot: `0x${string}`;
149
+ timestamp: bigint;
150
+ totalDifficulty: bigint | null;
151
+ transactions: `0x${string}`[] | viem_chains.OpStackTransaction<boolean>[];
152
+ transactionsRoot: `0x${string}`;
153
+ uncles: `0x${string}`[];
154
+ withdrawals?: viem.Withdrawal[] | undefined;
155
+ withdrawalsRoot?: `0x${string}` | undefined;
156
+ };
157
+ type: "block";
158
+ };
159
+ readonly transaction: {
160
+ exclude: [] | undefined;
161
+ format: (args: viem_chains.OpStackRpcTransaction<boolean>) => {
162
+ blockHash: `0x${string}` | null;
163
+ blockNumber: bigint | null;
164
+ from: `0x${string}`;
165
+ gas: bigint;
166
+ hash: `0x${string}`;
167
+ input: `0x${string}`;
168
+ nonce: number;
169
+ r: `0x${string}`;
170
+ s: `0x${string}`;
171
+ to: `0x${string}` | null;
172
+ transactionIndex: number | null;
173
+ typeHex: `0x${string}` | null;
174
+ v: bigint;
175
+ value: bigint;
176
+ yParity: number;
177
+ gasPrice?: undefined;
178
+ maxFeePerBlobGas?: undefined;
179
+ maxFeePerGas: bigint;
180
+ maxPriorityFeePerGas: bigint;
181
+ isSystemTx?: boolean | undefined;
182
+ mint?: bigint | undefined;
183
+ sourceHash: `0x${string}`;
184
+ type: "deposit";
185
+ } | {
186
+ r: `0x${string}`;
187
+ s: `0x${string}`;
188
+ v: bigint;
189
+ to: `0x${string}` | null;
190
+ from: `0x${string}`;
191
+ gas: bigint;
192
+ nonce: number;
193
+ value: bigint;
194
+ blockHash: `0x${string}` | null;
195
+ blockNumber: bigint | null;
196
+ hash: `0x${string}`;
197
+ input: `0x${string}`;
198
+ transactionIndex: number | null;
199
+ typeHex: `0x${string}` | null;
200
+ accessList?: undefined;
201
+ authorizationList?: undefined;
202
+ blobVersionedHashes?: undefined;
203
+ chainId?: number | undefined;
204
+ yParity?: undefined;
205
+ type: "legacy";
206
+ gasPrice: bigint;
207
+ maxFeePerBlobGas?: undefined;
208
+ maxFeePerGas?: undefined;
209
+ maxPriorityFeePerGas?: undefined;
210
+ isSystemTx?: undefined;
211
+ mint?: undefined;
212
+ sourceHash?: undefined;
213
+ } | {
214
+ blockHash: `0x${string}` | null;
215
+ blockNumber: bigint | null;
216
+ from: `0x${string}`;
217
+ gas: bigint;
218
+ hash: `0x${string}`;
219
+ input: `0x${string}`;
220
+ nonce: number;
221
+ r: `0x${string}`;
222
+ s: `0x${string}`;
223
+ to: `0x${string}` | null;
224
+ transactionIndex: number | null;
225
+ typeHex: `0x${string}` | null;
226
+ v: bigint;
227
+ value: bigint;
228
+ yParity: number;
229
+ accessList: viem.AccessList;
230
+ authorizationList?: undefined;
231
+ blobVersionedHashes?: undefined;
232
+ chainId: number;
233
+ type: "eip2930";
234
+ gasPrice: bigint;
235
+ maxFeePerBlobGas?: undefined;
236
+ maxFeePerGas?: undefined;
237
+ maxPriorityFeePerGas?: undefined;
238
+ isSystemTx?: undefined;
239
+ mint?: undefined;
240
+ sourceHash?: undefined;
241
+ } | {
242
+ blockHash: `0x${string}` | null;
243
+ blockNumber: bigint | null;
244
+ from: `0x${string}`;
245
+ gas: bigint;
246
+ hash: `0x${string}`;
247
+ input: `0x${string}`;
248
+ nonce: number;
249
+ r: `0x${string}`;
250
+ s: `0x${string}`;
251
+ to: `0x${string}` | null;
252
+ transactionIndex: number | null;
253
+ typeHex: `0x${string}` | null;
254
+ v: bigint;
255
+ value: bigint;
256
+ yParity: number;
257
+ accessList: viem.AccessList;
258
+ authorizationList?: undefined;
259
+ blobVersionedHashes?: undefined;
260
+ chainId: number;
261
+ type: "eip1559";
262
+ gasPrice?: undefined;
263
+ maxFeePerBlobGas?: undefined;
264
+ maxFeePerGas: bigint;
265
+ maxPriorityFeePerGas: bigint;
266
+ isSystemTx?: undefined;
267
+ mint?: undefined;
268
+ sourceHash?: undefined;
269
+ } | {
270
+ blockHash: `0x${string}` | null;
271
+ blockNumber: bigint | null;
272
+ from: `0x${string}`;
273
+ gas: bigint;
274
+ hash: `0x${string}`;
275
+ input: `0x${string}`;
276
+ nonce: number;
277
+ r: `0x${string}`;
278
+ s: `0x${string}`;
279
+ to: `0x${string}` | null;
280
+ transactionIndex: number | null;
281
+ typeHex: `0x${string}` | null;
282
+ v: bigint;
283
+ value: bigint;
284
+ yParity: number;
285
+ accessList: viem.AccessList;
286
+ authorizationList?: undefined;
287
+ blobVersionedHashes: readonly `0x${string}`[];
288
+ chainId: number;
289
+ type: "eip4844";
290
+ gasPrice?: undefined;
291
+ maxFeePerBlobGas: bigint;
292
+ maxFeePerGas: bigint;
293
+ maxPriorityFeePerGas: bigint;
294
+ isSystemTx?: undefined;
295
+ mint?: undefined;
296
+ sourceHash?: undefined;
297
+ } | {
298
+ blockHash: `0x${string}` | null;
299
+ blockNumber: bigint | null;
300
+ from: `0x${string}`;
301
+ gas: bigint;
302
+ hash: `0x${string}`;
303
+ input: `0x${string}`;
304
+ nonce: number;
305
+ r: `0x${string}`;
306
+ s: `0x${string}`;
307
+ to: `0x${string}` | null;
308
+ transactionIndex: number | null;
309
+ typeHex: `0x${string}` | null;
310
+ v: bigint;
311
+ value: bigint;
312
+ yParity: number;
313
+ accessList: viem.AccessList;
314
+ authorizationList: viem_experimental.SignedAuthorizationList<number>;
315
+ blobVersionedHashes?: undefined;
316
+ chainId: number;
317
+ type: "eip7702";
318
+ gasPrice?: undefined;
319
+ maxFeePerBlobGas?: undefined;
320
+ maxFeePerGas: bigint;
321
+ maxPriorityFeePerGas: bigint;
322
+ isSystemTx?: undefined;
323
+ mint?: undefined;
324
+ sourceHash?: undefined;
325
+ };
326
+ type: "transaction";
327
+ };
328
+ readonly transactionReceipt: {
329
+ exclude: [] | undefined;
330
+ format: (args: viem_chains.OpStackRpcTransactionReceipt) => {
331
+ blobGasPrice?: bigint | undefined;
332
+ blobGasUsed?: bigint | undefined;
333
+ blockHash: `0x${string}`;
334
+ blockNumber: bigint;
335
+ contractAddress: `0x${string}` | null | undefined;
336
+ cumulativeGasUsed: bigint;
337
+ effectiveGasPrice: bigint;
338
+ from: `0x${string}`;
339
+ gasUsed: bigint;
340
+ logs: viem.Log<bigint, number, false, undefined, undefined, undefined, undefined>[];
341
+ logsBloom: `0x${string}`;
342
+ root?: `0x${string}` | undefined;
343
+ status: "success" | "reverted";
344
+ to: `0x${string}` | null;
345
+ transactionHash: `0x${string}`;
346
+ transactionIndex: number;
347
+ type: viem.TransactionType;
348
+ l1GasPrice: bigint | null;
349
+ l1GasUsed: bigint | null;
350
+ l1Fee: bigint | null;
351
+ l1FeeScalar: number | null;
352
+ };
353
+ type: "transactionReceipt";
354
+ };
355
+ };
356
+ readonly serializers: {
357
+ readonly transaction: typeof viem_chains.serializeTransactionOpStack;
358
+ };
359
+ };
360
+
361
+ declare const garnet: {
362
+ readonly iconUrls: readonly ["https://redstone.xyz/chain-icons/garnet.png"];
363
+ readonly indexerUrl: "https://indexer.mud.garnetchain.com";
364
+ readonly blockExplorers: {
365
+ readonly default: {
366
+ readonly name: "Blockscout";
367
+ readonly url: "https://explorer.garnetchain.com";
368
+ };
369
+ };
370
+ readonly contracts: {
371
+ readonly multicall3: {
372
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
373
+ };
374
+ readonly portal: {
375
+ readonly 17000: {
376
+ readonly address: "0x57ee40586fbE286AfC75E67cb69511A6D9aF5909";
377
+ readonly blockCreated: 1274684;
378
+ };
379
+ };
380
+ readonly l2OutputOracle: {
381
+ readonly 17000: {
382
+ readonly address: "0xCb8E7AC561b8EF04F2a15865e9fbc0766FEF569B";
383
+ readonly blockCreated: 1274684;
384
+ };
385
+ };
386
+ readonly l1StandardBridge: {
387
+ readonly 17000: {
388
+ readonly address: "0x09bcDd311FE398F80a78BE37E489f5D440DB95DE";
389
+ readonly blockCreated: 1274684;
390
+ };
391
+ };
392
+ readonly gasPriceOracle: {
393
+ readonly address: "0x420000000000000000000000000000000000000F";
394
+ };
395
+ readonly l1Block: {
396
+ readonly address: "0x4200000000000000000000000000000000000015";
397
+ };
398
+ readonly l2CrossDomainMessenger: {
399
+ readonly address: "0x4200000000000000000000000000000000000007";
400
+ };
401
+ readonly l2Erc721Bridge: {
402
+ readonly address: "0x4200000000000000000000000000000000000014";
403
+ };
404
+ readonly l2StandardBridge: {
405
+ readonly address: "0x4200000000000000000000000000000000000010";
406
+ };
407
+ readonly l2ToL1MessagePasser: {
408
+ readonly address: "0x4200000000000000000000000000000000000016";
409
+ };
410
+ };
411
+ readonly id: 17069;
412
+ readonly name: "Garnet Testnet";
413
+ readonly nativeCurrency: {
414
+ readonly name: "Ether";
415
+ readonly symbol: "ETH";
416
+ readonly decimals: 18;
417
+ };
418
+ readonly rpcUrls: {
419
+ readonly default: {
420
+ readonly http: readonly ["https://rpc.garnetchain.com"];
421
+ readonly webSocket: readonly ["wss://rpc.garnetchain.com"];
422
+ };
423
+ };
424
+ readonly sourceId: 17000;
425
+ readonly testnet: true;
426
+ readonly custom?: Record<string, unknown> | undefined;
427
+ readonly fees?: viem.ChainFees<undefined> | undefined;
428
+ readonly formatters: {
429
+ readonly block: {
430
+ exclude: [] | undefined;
431
+ format: (args: viem_chains.OpStackRpcBlock<viem.BlockTag, boolean>) => {
432
+ baseFeePerGas: bigint | null;
433
+ blobGasUsed: bigint;
434
+ difficulty: bigint;
435
+ excessBlobGas: bigint;
436
+ extraData: `0x${string}`;
437
+ gasLimit: bigint;
438
+ gasUsed: bigint;
439
+ hash: `0x${string}` | null;
440
+ logsBloom: `0x${string}` | null;
441
+ miner: `0x${string}`;
442
+ mixHash: `0x${string}`;
443
+ nonce: `0x${string}` | null;
444
+ number: bigint | null;
445
+ parentBeaconBlockRoot?: `0x${string}` | undefined;
446
+ parentHash: `0x${string}`;
447
+ receiptsRoot: `0x${string}`;
448
+ sealFields: `0x${string}`[];
449
+ sha3Uncles: `0x${string}`;
450
+ size: bigint;
451
+ stateRoot: `0x${string}`;
452
+ timestamp: bigint;
453
+ totalDifficulty: bigint | null;
454
+ transactions: `0x${string}`[] | viem_chains.OpStackTransaction<boolean>[];
455
+ transactionsRoot: `0x${string}`;
456
+ uncles: `0x${string}`[];
457
+ withdrawals?: viem.Withdrawal[] | undefined;
458
+ withdrawalsRoot?: `0x${string}` | undefined;
459
+ };
460
+ type: "block";
461
+ };
462
+ readonly transaction: {
463
+ exclude: [] | undefined;
464
+ format: (args: viem_chains.OpStackRpcTransaction<boolean>) => {
465
+ blockHash: `0x${string}` | null;
466
+ blockNumber: bigint | null;
467
+ from: `0x${string}`;
468
+ gas: bigint;
469
+ hash: `0x${string}`;
470
+ input: `0x${string}`;
471
+ nonce: number;
472
+ r: `0x${string}`;
473
+ s: `0x${string}`;
474
+ to: `0x${string}` | null;
475
+ transactionIndex: number | null;
476
+ typeHex: `0x${string}` | null;
477
+ v: bigint;
478
+ value: bigint;
479
+ yParity: number;
480
+ gasPrice?: undefined;
481
+ maxFeePerBlobGas?: undefined;
482
+ maxFeePerGas: bigint;
483
+ maxPriorityFeePerGas: bigint;
484
+ isSystemTx?: boolean | undefined;
485
+ mint?: bigint | undefined;
486
+ sourceHash: `0x${string}`;
487
+ type: "deposit";
488
+ } | {
489
+ r: `0x${string}`;
490
+ s: `0x${string}`;
491
+ v: bigint;
492
+ to: `0x${string}` | null;
493
+ from: `0x${string}`;
494
+ gas: bigint;
495
+ nonce: number;
496
+ value: bigint;
497
+ blockHash: `0x${string}` | null;
498
+ blockNumber: bigint | null;
499
+ hash: `0x${string}`;
500
+ input: `0x${string}`;
501
+ transactionIndex: number | null;
502
+ typeHex: `0x${string}` | null;
503
+ accessList?: undefined;
504
+ authorizationList?: undefined;
505
+ blobVersionedHashes?: undefined;
506
+ chainId?: number | undefined;
507
+ yParity?: undefined;
508
+ type: "legacy";
509
+ gasPrice: bigint;
510
+ maxFeePerBlobGas?: undefined;
511
+ maxFeePerGas?: undefined;
512
+ maxPriorityFeePerGas?: undefined;
513
+ isSystemTx?: undefined;
514
+ mint?: undefined;
515
+ sourceHash?: undefined;
516
+ } | {
517
+ blockHash: `0x${string}` | null;
518
+ blockNumber: bigint | null;
519
+ from: `0x${string}`;
520
+ gas: bigint;
521
+ hash: `0x${string}`;
522
+ input: `0x${string}`;
523
+ nonce: number;
524
+ r: `0x${string}`;
525
+ s: `0x${string}`;
526
+ to: `0x${string}` | null;
527
+ transactionIndex: number | null;
528
+ typeHex: `0x${string}` | null;
529
+ v: bigint;
530
+ value: bigint;
531
+ yParity: number;
532
+ accessList: viem.AccessList;
533
+ authorizationList?: undefined;
534
+ blobVersionedHashes?: undefined;
535
+ chainId: number;
536
+ type: "eip2930";
537
+ gasPrice: bigint;
538
+ maxFeePerBlobGas?: undefined;
539
+ maxFeePerGas?: undefined;
540
+ maxPriorityFeePerGas?: undefined;
541
+ isSystemTx?: undefined;
542
+ mint?: undefined;
543
+ sourceHash?: undefined;
544
+ } | {
545
+ blockHash: `0x${string}` | null;
546
+ blockNumber: bigint | null;
547
+ from: `0x${string}`;
548
+ gas: bigint;
549
+ hash: `0x${string}`;
550
+ input: `0x${string}`;
551
+ nonce: number;
552
+ r: `0x${string}`;
553
+ s: `0x${string}`;
554
+ to: `0x${string}` | null;
555
+ transactionIndex: number | null;
556
+ typeHex: `0x${string}` | null;
557
+ v: bigint;
558
+ value: bigint;
559
+ yParity: number;
560
+ accessList: viem.AccessList;
561
+ authorizationList?: undefined;
562
+ blobVersionedHashes?: undefined;
563
+ chainId: number;
564
+ type: "eip1559";
565
+ gasPrice?: undefined;
566
+ maxFeePerBlobGas?: undefined;
567
+ maxFeePerGas: bigint;
568
+ maxPriorityFeePerGas: bigint;
569
+ isSystemTx?: undefined;
570
+ mint?: undefined;
571
+ sourceHash?: undefined;
572
+ } | {
573
+ blockHash: `0x${string}` | null;
574
+ blockNumber: bigint | null;
575
+ from: `0x${string}`;
576
+ gas: bigint;
577
+ hash: `0x${string}`;
578
+ input: `0x${string}`;
579
+ nonce: number;
580
+ r: `0x${string}`;
581
+ s: `0x${string}`;
582
+ to: `0x${string}` | null;
583
+ transactionIndex: number | null;
584
+ typeHex: `0x${string}` | null;
585
+ v: bigint;
586
+ value: bigint;
587
+ yParity: number;
588
+ accessList: viem.AccessList;
589
+ authorizationList?: undefined;
590
+ blobVersionedHashes: readonly `0x${string}`[];
591
+ chainId: number;
592
+ type: "eip4844";
593
+ gasPrice?: undefined;
594
+ maxFeePerBlobGas: bigint;
595
+ maxFeePerGas: bigint;
596
+ maxPriorityFeePerGas: bigint;
597
+ isSystemTx?: undefined;
598
+ mint?: undefined;
599
+ sourceHash?: undefined;
600
+ } | {
601
+ blockHash: `0x${string}` | null;
602
+ blockNumber: bigint | null;
603
+ from: `0x${string}`;
604
+ gas: bigint;
605
+ hash: `0x${string}`;
606
+ input: `0x${string}`;
607
+ nonce: number;
608
+ r: `0x${string}`;
609
+ s: `0x${string}`;
610
+ to: `0x${string}` | null;
611
+ transactionIndex: number | null;
612
+ typeHex: `0x${string}` | null;
613
+ v: bigint;
614
+ value: bigint;
615
+ yParity: number;
616
+ accessList: viem.AccessList;
617
+ authorizationList: viem_experimental.SignedAuthorizationList<number>;
618
+ blobVersionedHashes?: undefined;
619
+ chainId: number;
620
+ type: "eip7702";
621
+ gasPrice?: undefined;
622
+ maxFeePerBlobGas?: undefined;
623
+ maxFeePerGas: bigint;
624
+ maxPriorityFeePerGas: bigint;
625
+ isSystemTx?: undefined;
626
+ mint?: undefined;
627
+ sourceHash?: undefined;
628
+ };
629
+ type: "transaction";
630
+ };
631
+ readonly transactionReceipt: {
632
+ exclude: [] | undefined;
633
+ format: (args: viem_chains.OpStackRpcTransactionReceipt) => {
634
+ blobGasPrice?: bigint | undefined;
635
+ blobGasUsed?: bigint | undefined;
636
+ blockHash: `0x${string}`;
637
+ blockNumber: bigint;
638
+ contractAddress: `0x${string}` | null | undefined;
639
+ cumulativeGasUsed: bigint;
640
+ effectiveGasPrice: bigint;
641
+ from: `0x${string}`;
642
+ gasUsed: bigint;
643
+ logs: viem.Log<bigint, number, false, undefined, undefined, undefined, undefined>[];
644
+ logsBloom: `0x${string}`;
645
+ root?: `0x${string}` | undefined;
646
+ status: "success" | "reverted";
647
+ to: `0x${string}` | null;
648
+ transactionHash: `0x${string}`;
649
+ transactionIndex: number;
650
+ type: viem.TransactionType;
651
+ l1GasPrice: bigint | null;
652
+ l1GasUsed: bigint | null;
653
+ l1Fee: bigint | null;
654
+ l1FeeScalar: number | null;
655
+ };
656
+ type: "transactionReceipt";
657
+ };
658
+ };
659
+ readonly serializers: {
660
+ readonly transaction: typeof viem_chains.serializeTransactionOpStack;
661
+ };
662
+ };
663
+
664
+ declare const rhodolite: {
665
+ readonly name: "Rhodolite Devnet";
666
+ readonly testnet: true;
667
+ readonly id: 17420;
668
+ readonly sourceId: 17000;
669
+ readonly nativeCurrency: {
670
+ readonly name: "Ether";
671
+ readonly symbol: "ETH";
672
+ readonly decimals: 18;
673
+ };
674
+ readonly rpcUrls: {
675
+ readonly default: {
676
+ readonly http: readonly ["https://rpc.rhodolitechain.com"];
677
+ readonly webSocket: readonly ["wss://rpc.rhodolitechain.com"];
678
+ };
679
+ readonly bundler: {
680
+ readonly http: readonly ["https://rpc.rhodolitechain.com"];
681
+ readonly webSocket: readonly ["wss://rpc.rhodolitechain.com"];
682
+ };
683
+ readonly quarryPassIssuer: {
684
+ readonly http: readonly ["https://rpc.rhodolitechain.com"];
685
+ readonly webSocket: readonly ["wss://rpc.rhodolitechain.com"];
686
+ };
687
+ readonly wiresaw: {
688
+ readonly http: readonly ["https://rpc.rhodolitechain.com"];
689
+ readonly webSocket: readonly ["wss://rpc.rhodolitechain.com"];
690
+ };
691
+ };
692
+ readonly contracts: {
693
+ readonly l1StandardBridge: {
694
+ readonly 17000: {
695
+ readonly address: "0x6487446e0B9FAEa90F6a9772A6448cFa780E30F9";
696
+ };
697
+ };
698
+ readonly quarryPaymaster: {
699
+ readonly address: "0x7ca1b85aca23fccf2fbac14c02b5e8a6432639b9";
700
+ };
701
+ readonly gasPriceOracle: {
702
+ readonly address: "0x420000000000000000000000000000000000000F";
703
+ };
704
+ readonly l1Block: {
705
+ readonly address: "0x4200000000000000000000000000000000000015";
706
+ };
707
+ readonly l2CrossDomainMessenger: {
708
+ readonly address: "0x4200000000000000000000000000000000000007";
709
+ };
710
+ readonly l2Erc721Bridge: {
711
+ readonly address: "0x4200000000000000000000000000000000000014";
712
+ };
713
+ readonly l2StandardBridge: {
714
+ readonly address: "0x4200000000000000000000000000000000000010";
715
+ };
716
+ readonly l2ToL1MessagePasser: {
717
+ readonly address: "0x4200000000000000000000000000000000000016";
718
+ };
719
+ };
720
+ readonly blockExplorers: {
721
+ readonly default: {
722
+ readonly name: "Blockscout";
723
+ readonly url: "https://explorer.rhodolitechain.com";
724
+ };
725
+ readonly worldsExplorer: {
726
+ readonly name: "MUD Worlds Explorer";
727
+ readonly url: "https://explorer.mud.dev/rhodolite/worlds";
728
+ };
729
+ };
730
+ readonly iconUrls: readonly ["https://redstone.xyz/chain-icons/rhodolite.png"];
731
+ readonly indexerUrl: "https://indexer.mud.rhodolitechain.com";
732
+ readonly formatters: {
733
+ readonly block: {
734
+ exclude: [] | undefined;
735
+ format: (args: viem_op_stack.OpStackRpcBlock<viem.BlockTag, boolean>) => {
736
+ baseFeePerGas: bigint | null;
737
+ blobGasUsed: bigint;
738
+ difficulty: bigint;
739
+ excessBlobGas: bigint;
740
+ extraData: `0x${string}`;
741
+ gasLimit: bigint;
742
+ gasUsed: bigint;
743
+ hash: `0x${string}` | null;
744
+ logsBloom: `0x${string}` | null;
745
+ miner: `0x${string}`;
746
+ mixHash: `0x${string}`;
747
+ nonce: `0x${string}` | null;
748
+ number: bigint | null;
749
+ parentBeaconBlockRoot?: `0x${string}` | undefined;
750
+ parentHash: `0x${string}`;
751
+ receiptsRoot: `0x${string}`;
752
+ sealFields: `0x${string}`[];
753
+ sha3Uncles: `0x${string}`;
754
+ size: bigint;
755
+ stateRoot: `0x${string}`;
756
+ timestamp: bigint;
757
+ totalDifficulty: bigint | null;
758
+ transactions: `0x${string}`[] | viem_op_stack.OpStackTransaction<boolean>[];
759
+ transactionsRoot: `0x${string}`;
760
+ uncles: `0x${string}`[];
761
+ withdrawals?: viem.Withdrawal[] | undefined;
762
+ withdrawalsRoot?: `0x${string}` | undefined;
763
+ };
764
+ type: "block";
765
+ };
766
+ readonly transaction: {
767
+ exclude: [] | undefined;
768
+ format: (args: viem_op_stack.OpStackRpcTransaction<boolean>) => {
769
+ blockHash: `0x${string}` | null;
770
+ blockNumber: bigint | null;
771
+ from: `0x${string}`;
772
+ gas: bigint;
773
+ hash: `0x${string}`;
774
+ input: `0x${string}`;
775
+ nonce: number;
776
+ r: `0x${string}`;
777
+ s: `0x${string}`;
778
+ to: `0x${string}` | null;
779
+ transactionIndex: number | null;
780
+ typeHex: `0x${string}` | null;
781
+ v: bigint;
782
+ value: bigint;
783
+ yParity: number;
784
+ gasPrice?: undefined;
785
+ maxFeePerBlobGas?: undefined;
786
+ maxFeePerGas: bigint;
787
+ maxPriorityFeePerGas: bigint;
788
+ isSystemTx?: boolean | undefined;
789
+ mint?: bigint | undefined;
790
+ sourceHash: `0x${string}`;
791
+ type: "deposit";
792
+ } | {
793
+ r: `0x${string}`;
794
+ s: `0x${string}`;
795
+ v: bigint;
796
+ to: `0x${string}` | null;
797
+ from: `0x${string}`;
798
+ gas: bigint;
799
+ nonce: number;
800
+ value: bigint;
801
+ blockHash: `0x${string}` | null;
802
+ blockNumber: bigint | null;
803
+ hash: `0x${string}`;
804
+ input: `0x${string}`;
805
+ transactionIndex: number | null;
806
+ typeHex: `0x${string}` | null;
807
+ accessList?: undefined;
808
+ authorizationList?: undefined;
809
+ blobVersionedHashes?: undefined;
810
+ chainId?: number | undefined;
811
+ yParity?: undefined;
812
+ type: "legacy";
813
+ gasPrice: bigint;
814
+ maxFeePerBlobGas?: undefined;
815
+ maxFeePerGas?: undefined;
816
+ maxPriorityFeePerGas?: undefined;
817
+ isSystemTx?: undefined;
818
+ mint?: undefined;
819
+ sourceHash?: undefined;
820
+ } | {
821
+ blockHash: `0x${string}` | null;
822
+ blockNumber: bigint | null;
823
+ from: `0x${string}`;
824
+ gas: bigint;
825
+ hash: `0x${string}`;
826
+ input: `0x${string}`;
827
+ nonce: number;
828
+ r: `0x${string}`;
829
+ s: `0x${string}`;
830
+ to: `0x${string}` | null;
831
+ transactionIndex: number | null;
832
+ typeHex: `0x${string}` | null;
833
+ v: bigint;
834
+ value: bigint;
835
+ yParity: number;
836
+ accessList: viem.AccessList;
837
+ authorizationList?: undefined;
838
+ blobVersionedHashes?: undefined;
839
+ chainId: number;
840
+ type: "eip2930";
841
+ gasPrice: bigint;
842
+ maxFeePerBlobGas?: undefined;
843
+ maxFeePerGas?: undefined;
844
+ maxPriorityFeePerGas?: undefined;
845
+ isSystemTx?: undefined;
846
+ mint?: undefined;
847
+ sourceHash?: undefined;
848
+ } | {
849
+ blockHash: `0x${string}` | null;
850
+ blockNumber: bigint | null;
851
+ from: `0x${string}`;
852
+ gas: bigint;
853
+ hash: `0x${string}`;
854
+ input: `0x${string}`;
855
+ nonce: number;
856
+ r: `0x${string}`;
857
+ s: `0x${string}`;
858
+ to: `0x${string}` | null;
859
+ transactionIndex: number | null;
860
+ typeHex: `0x${string}` | null;
861
+ v: bigint;
862
+ value: bigint;
863
+ yParity: number;
864
+ accessList: viem.AccessList;
865
+ authorizationList?: undefined;
866
+ blobVersionedHashes?: undefined;
867
+ chainId: number;
868
+ type: "eip1559";
869
+ gasPrice?: undefined;
870
+ maxFeePerBlobGas?: undefined;
871
+ maxFeePerGas: bigint;
872
+ maxPriorityFeePerGas: bigint;
873
+ isSystemTx?: undefined;
874
+ mint?: undefined;
875
+ sourceHash?: undefined;
876
+ } | {
877
+ blockHash: `0x${string}` | null;
878
+ blockNumber: bigint | null;
879
+ from: `0x${string}`;
880
+ gas: bigint;
881
+ hash: `0x${string}`;
882
+ input: `0x${string}`;
883
+ nonce: number;
884
+ r: `0x${string}`;
885
+ s: `0x${string}`;
886
+ to: `0x${string}` | null;
887
+ transactionIndex: number | null;
888
+ typeHex: `0x${string}` | null;
889
+ v: bigint;
890
+ value: bigint;
891
+ yParity: number;
892
+ accessList: viem.AccessList;
893
+ authorizationList?: undefined;
894
+ blobVersionedHashes: readonly `0x${string}`[];
895
+ chainId: number;
896
+ type: "eip4844";
897
+ gasPrice?: undefined;
898
+ maxFeePerBlobGas: bigint;
899
+ maxFeePerGas: bigint;
900
+ maxPriorityFeePerGas: bigint;
901
+ isSystemTx?: undefined;
902
+ mint?: undefined;
903
+ sourceHash?: undefined;
904
+ } | {
905
+ blockHash: `0x${string}` | null;
906
+ blockNumber: bigint | null;
907
+ from: `0x${string}`;
908
+ gas: bigint;
909
+ hash: `0x${string}`;
910
+ input: `0x${string}`;
911
+ nonce: number;
912
+ r: `0x${string}`;
913
+ s: `0x${string}`;
914
+ to: `0x${string}` | null;
915
+ transactionIndex: number | null;
916
+ typeHex: `0x${string}` | null;
917
+ v: bigint;
918
+ value: bigint;
919
+ yParity: number;
920
+ accessList: viem.AccessList;
921
+ authorizationList: viem_experimental.SignedAuthorizationList<number>;
922
+ blobVersionedHashes?: undefined;
923
+ chainId: number;
924
+ type: "eip7702";
925
+ gasPrice?: undefined;
926
+ maxFeePerBlobGas?: undefined;
927
+ maxFeePerGas: bigint;
928
+ maxPriorityFeePerGas: bigint;
929
+ isSystemTx?: undefined;
930
+ mint?: undefined;
931
+ sourceHash?: undefined;
932
+ };
933
+ type: "transaction";
934
+ };
935
+ readonly transactionReceipt: {
936
+ exclude: [] | undefined;
937
+ format: (args: viem_op_stack.OpStackRpcTransactionReceipt) => {
938
+ blobGasPrice?: bigint | undefined;
939
+ blobGasUsed?: bigint | undefined;
940
+ blockHash: `0x${string}`;
941
+ blockNumber: bigint;
942
+ contractAddress: `0x${string}` | null | undefined;
943
+ cumulativeGasUsed: bigint;
944
+ effectiveGasPrice: bigint;
945
+ from: `0x${string}`;
946
+ gasUsed: bigint;
947
+ logs: viem.Log<bigint, number, false, undefined, undefined, undefined, undefined>[];
948
+ logsBloom: `0x${string}`;
949
+ root?: `0x${string}` | undefined;
950
+ status: "success" | "reverted";
951
+ to: `0x${string}` | null;
952
+ transactionHash: `0x${string}`;
953
+ transactionIndex: number;
954
+ type: viem.TransactionType;
955
+ l1GasPrice: bigint | null;
956
+ l1GasUsed: bigint | null;
957
+ l1Fee: bigint | null;
958
+ l1FeeScalar: number | null;
959
+ };
960
+ type: "transactionReceipt";
961
+ };
962
+ };
963
+ readonly serializers: {
964
+ readonly transaction: typeof viem_op_stack.serializeTransaction;
965
+ };
966
+ };
967
+
968
+ export { type MUDChain, garnet, mudFoundry, redstone, rhodolite };