viem 2.21.33 → 2.21.35

Sign up to get free protection for your applications and to get access to all the features.
Files changed (120) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/_cjs/actions/public/waitForTransactionReceipt.js +94 -91
  3. package/_cjs/actions/public/waitForTransactionReceipt.js.map +1 -1
  4. package/_cjs/chains/definitions/base.js +5 -0
  5. package/_cjs/chains/definitions/base.js.map +1 -1
  6. package/_cjs/chains/definitions/genesys.js +24 -0
  7. package/_cjs/chains/definitions/genesys.js.map +1 -0
  8. package/_cjs/chains/definitions/iota.js +6 -0
  9. package/_cjs/chains/definitions/iota.js.map +1 -1
  10. package/_cjs/chains/definitions/unichainSepolia.js +18 -0
  11. package/_cjs/chains/definitions/unichainSepolia.js.map +1 -1
  12. package/_cjs/chains/definitions/velas.js +22 -0
  13. package/_cjs/chains/definitions/velas.js.map +1 -0
  14. package/_cjs/chains/definitions/worldchain.js +38 -1
  15. package/_cjs/chains/definitions/worldchain.js.map +1 -1
  16. package/_cjs/chains/definitions/worldchainSepolia.js +37 -1
  17. package/_cjs/chains/definitions/worldchainSepolia.js.map +1 -1
  18. package/_cjs/chains/definitions/xdc.js +5 -5
  19. package/_cjs/chains/definitions/xdc.js.map +1 -1
  20. package/_cjs/chains/index.js +11 -7
  21. package/_cjs/chains/index.js.map +1 -1
  22. package/_cjs/errors/typedData.js +10 -1
  23. package/_cjs/errors/typedData.js.map +1 -1
  24. package/_cjs/errors/version.js +1 -1
  25. package/_cjs/index.js +5 -4
  26. package/_cjs/index.js.map +1 -1
  27. package/_cjs/linea/actions/estimateGas.js +1 -4
  28. package/_cjs/linea/actions/estimateGas.js.map +1 -1
  29. package/_cjs/op-stack/chains.js +7 -1
  30. package/_cjs/op-stack/chains.js.map +1 -1
  31. package/_cjs/utils/promise/createBatchScheduler.js +8 -11
  32. package/_cjs/utils/promise/createBatchScheduler.js.map +1 -1
  33. package/_cjs/utils/promise/withResolvers.js +13 -0
  34. package/_cjs/utils/promise/withResolvers.js.map +1 -0
  35. package/_cjs/utils/typedData.js +6 -2
  36. package/_cjs/utils/typedData.js.map +1 -1
  37. package/_esm/actions/public/waitForTransactionReceipt.js +109 -106
  38. package/_esm/actions/public/waitForTransactionReceipt.js.map +1 -1
  39. package/_esm/chains/definitions/base.js +5 -0
  40. package/_esm/chains/definitions/base.js.map +1 -1
  41. package/_esm/chains/definitions/genesys.js +21 -0
  42. package/_esm/chains/definitions/genesys.js.map +1 -0
  43. package/_esm/chains/definitions/iota.js +6 -0
  44. package/_esm/chains/definitions/iota.js.map +1 -1
  45. package/_esm/chains/definitions/unichainSepolia.js +18 -0
  46. package/_esm/chains/definitions/unichainSepolia.js.map +1 -1
  47. package/_esm/chains/definitions/velas.js +19 -0
  48. package/_esm/chains/definitions/velas.js.map +1 -0
  49. package/_esm/chains/definitions/worldchain.js +38 -1
  50. package/_esm/chains/definitions/worldchain.js.map +1 -1
  51. package/_esm/chains/definitions/worldchainSepolia.js +37 -1
  52. package/_esm/chains/definitions/worldchainSepolia.js.map +1 -1
  53. package/_esm/chains/definitions/xdc.js +5 -5
  54. package/_esm/chains/definitions/xdc.js.map +1 -1
  55. package/_esm/chains/index.js +2 -0
  56. package/_esm/chains/index.js.map +1 -1
  57. package/_esm/errors/typedData.js +8 -0
  58. package/_esm/errors/typedData.js.map +1 -1
  59. package/_esm/errors/version.js +1 -1
  60. package/_esm/index.js +1 -1
  61. package/_esm/index.js.map +1 -1
  62. package/_esm/linea/actions/estimateGas.js +1 -4
  63. package/_esm/linea/actions/estimateGas.js.map +1 -1
  64. package/_esm/op-stack/chains.js +3 -0
  65. package/_esm/op-stack/chains.js.map +1 -1
  66. package/_esm/utils/promise/createBatchScheduler.js +8 -11
  67. package/_esm/utils/promise/createBatchScheduler.js.map +1 -1
  68. package/_esm/utils/promise/withResolvers.js +11 -0
  69. package/_esm/utils/promise/withResolvers.js.map +1 -0
  70. package/_esm/utils/typedData.js +7 -3
  71. package/_esm/utils/typedData.js.map +1 -1
  72. package/_types/actions/public/waitForTransactionReceipt.d.ts.map +1 -1
  73. package/_types/chains/definitions/base.d.ts +5 -0
  74. package/_types/chains/definitions/base.d.ts.map +1 -1
  75. package/_types/chains/definitions/genesys.d.ts +37 -0
  76. package/_types/chains/definitions/genesys.d.ts.map +1 -0
  77. package/_types/chains/definitions/iota.d.ts +6 -10
  78. package/_types/chains/definitions/iota.d.ts.map +1 -1
  79. package/_types/chains/definitions/unichainSepolia.d.ts +267 -2
  80. package/_types/chains/definitions/unichainSepolia.d.ts.map +1 -1
  81. package/_types/chains/definitions/velas.d.ts +37 -0
  82. package/_types/chains/definitions/velas.d.ts.map +1 -0
  83. package/_types/chains/definitions/worldchain.d.ts +286 -14
  84. package/_types/chains/definitions/worldchain.d.ts.map +1 -1
  85. package/_types/chains/definitions/worldchainSepolia.d.ts +285 -14
  86. package/_types/chains/definitions/worldchainSepolia.d.ts.map +1 -1
  87. package/_types/chains/definitions/xdc.d.ts +5 -5
  88. package/_types/chains/index.d.ts +2 -0
  89. package/_types/chains/index.d.ts.map +1 -1
  90. package/_types/errors/typedData.d.ts +10 -0
  91. package/_types/errors/typedData.d.ts.map +1 -1
  92. package/_types/errors/version.d.ts +1 -1
  93. package/_types/index.d.ts +1 -1
  94. package/_types/index.d.ts.map +1 -1
  95. package/_types/linea/actions/estimateGas.d.ts.map +1 -1
  96. package/_types/op-stack/chains.d.ts +3 -0
  97. package/_types/op-stack/chains.d.ts.map +1 -1
  98. package/_types/utils/promise/createBatchScheduler.d.ts.map +1 -1
  99. package/_types/utils/promise/withResolvers.d.ts +9 -0
  100. package/_types/utils/promise/withResolvers.d.ts.map +1 -0
  101. package/_types/utils/typedData.d.ts.map +1 -1
  102. package/actions/public/waitForTransactionReceipt.ts +162 -156
  103. package/chains/definitions/base.ts +5 -0
  104. package/chains/definitions/genesys.ts +21 -0
  105. package/chains/definitions/iota.ts +6 -0
  106. package/chains/definitions/unichainSepolia.ts +18 -0
  107. package/chains/definitions/velas.ts +19 -0
  108. package/chains/definitions/worldchain.ts +39 -1
  109. package/chains/definitions/worldchainSepolia.ts +38 -1
  110. package/chains/definitions/xdc.ts +5 -5
  111. package/chains/index.ts +2 -0
  112. package/errors/typedData.ts +20 -0
  113. package/errors/version.ts +1 -1
  114. package/index.ts +2 -0
  115. package/linea/actions/estimateGas.ts +1 -11
  116. package/op-stack/chains.ts +3 -0
  117. package/package.json +1 -1
  118. package/utils/promise/createBatchScheduler.ts +12 -16
  119. package/utils/promise/withResolvers.ts +19 -0
  120. package/utils/typedData.ts +8 -2
@@ -11,6 +11,39 @@ export declare const unichainSepolia: {
11
11
  readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
12
12
  readonly blockCreated: 0;
13
13
  };
14
+ readonly portal: {
15
+ readonly 11155111: {
16
+ readonly address: "0x0d83dab629f0e0F9d36c0Cbc89B69a489f0751bD";
17
+ };
18
+ };
19
+ readonly l1StandardBridge: {
20
+ readonly 11155111: {
21
+ readonly address: "0xea58fcA6849d79EAd1f26608855c2D6407d54Ce2";
22
+ };
23
+ };
24
+ readonly disputeGameFactory: {
25
+ readonly 11155111: {
26
+ readonly address: "0xeff73e5aa3B9AEC32c659Aa3E00444d20a84394b";
27
+ };
28
+ };
29
+ readonly gasPriceOracle: {
30
+ readonly address: "0x420000000000000000000000000000000000000F";
31
+ };
32
+ readonly l1Block: {
33
+ readonly address: "0x4200000000000000000000000000000000000015";
34
+ };
35
+ readonly l2CrossDomainMessenger: {
36
+ readonly address: "0x4200000000000000000000000000000000000007";
37
+ };
38
+ readonly l2Erc721Bridge: {
39
+ readonly address: "0x4200000000000000000000000000000000000014";
40
+ };
41
+ readonly l2StandardBridge: {
42
+ readonly address: "0x4200000000000000000000000000000000000010";
43
+ };
44
+ readonly l2ToL1MessagePasser: {
45
+ readonly address: "0x4200000000000000000000000000000000000016";
46
+ };
14
47
  };
15
48
  id: 1301;
16
49
  name: "Unichain Sepolia";
@@ -28,7 +61,239 @@ export declare const unichainSepolia: {
28
61
  testnet: true;
29
62
  custom?: Record<string, unknown> | undefined;
30
63
  fees?: import("../../index.js").ChainFees<undefined> | undefined;
31
- formatters?: undefined;
32
- serializers?: import("../../index.js").ChainSerializers<undefined, import("../../index.js").TransactionSerializable> | undefined;
64
+ formatters: {
65
+ readonly block: {
66
+ exclude: [] | undefined;
67
+ format: (args: import("../index.js").OpStackRpcBlock) => {
68
+ baseFeePerGas: bigint | null;
69
+ blobGasUsed: bigint;
70
+ difficulty: bigint;
71
+ excessBlobGas: bigint;
72
+ extraData: import("../../index.js").Hex;
73
+ gasLimit: bigint;
74
+ gasUsed: bigint;
75
+ hash: `0x${string}` | null;
76
+ logsBloom: `0x${string}` | null;
77
+ miner: import("abitype").Address;
78
+ mixHash: import("../../index.js").Hash;
79
+ nonce: `0x${string}` | null;
80
+ number: bigint | null;
81
+ parentBeaconBlockRoot?: import("../../index.js").Hex | undefined;
82
+ parentHash: import("../../index.js").Hash;
83
+ receiptsRoot: import("../../index.js").Hex;
84
+ sealFields: import("../../index.js").Hex[];
85
+ sha3Uncles: import("../../index.js").Hash;
86
+ size: bigint;
87
+ stateRoot: import("../../index.js").Hash;
88
+ timestamp: bigint;
89
+ totalDifficulty: bigint | null;
90
+ transactions: `0x${string}`[] | import("../index.js").OpStackTransaction<boolean>[];
91
+ transactionsRoot: import("../../index.js").Hash;
92
+ uncles: import("../../index.js").Hash[];
93
+ withdrawals?: import("../../index.js").Withdrawal[] | undefined;
94
+ withdrawalsRoot?: import("../../index.js").Hex | undefined;
95
+ } & {};
96
+ type: "block";
97
+ };
98
+ readonly transaction: {
99
+ exclude: [] | undefined;
100
+ format: (args: import("../index.js").OpStackRpcTransaction) => ({
101
+ blockHash: `0x${string}` | null;
102
+ blockNumber: bigint | null;
103
+ from: import("abitype").Address;
104
+ gas: bigint;
105
+ hash: import("../../index.js").Hash;
106
+ input: import("../../index.js").Hex;
107
+ nonce: number;
108
+ r: import("../../index.js").Hex;
109
+ s: import("../../index.js").Hex;
110
+ to: import("abitype").Address | null;
111
+ transactionIndex: number | null;
112
+ typeHex: import("../../index.js").Hex | null;
113
+ v: bigint;
114
+ value: bigint;
115
+ yParity: number;
116
+ gasPrice?: undefined;
117
+ maxFeePerBlobGas?: undefined;
118
+ maxFeePerGas: bigint;
119
+ maxPriorityFeePerGas: bigint;
120
+ isSystemTx?: boolean;
121
+ mint?: bigint | undefined;
122
+ sourceHash: import("../../index.js").Hex;
123
+ type: "deposit";
124
+ } | {
125
+ r: import("../../index.js").Hex;
126
+ s: import("../../index.js").Hex;
127
+ v: bigint;
128
+ to: import("abitype").Address | null;
129
+ from: import("abitype").Address;
130
+ gas: bigint;
131
+ nonce: number;
132
+ value: bigint;
133
+ blockHash: `0x${string}` | null;
134
+ blockNumber: bigint | null;
135
+ hash: import("../../index.js").Hash;
136
+ input: import("../../index.js").Hex;
137
+ transactionIndex: number | null;
138
+ typeHex: import("../../index.js").Hex | null;
139
+ accessList?: undefined;
140
+ authorizationList?: undefined;
141
+ blobVersionedHashes?: undefined;
142
+ chainId?: number | undefined;
143
+ yParity?: undefined;
144
+ type: "legacy";
145
+ gasPrice: bigint;
146
+ maxFeePerBlobGas?: undefined;
147
+ maxFeePerGas?: undefined;
148
+ maxPriorityFeePerGas?: undefined;
149
+ isSystemTx?: undefined;
150
+ mint?: undefined;
151
+ sourceHash?: undefined;
152
+ } | {
153
+ blockHash: `0x${string}` | null;
154
+ blockNumber: bigint | null;
155
+ from: import("abitype").Address;
156
+ gas: bigint;
157
+ hash: import("../../index.js").Hash;
158
+ input: import("../../index.js").Hex;
159
+ nonce: number;
160
+ r: import("../../index.js").Hex;
161
+ s: import("../../index.js").Hex;
162
+ to: import("abitype").Address | null;
163
+ transactionIndex: number | null;
164
+ typeHex: import("../../index.js").Hex | null;
165
+ v: bigint;
166
+ value: bigint;
167
+ yParity: number;
168
+ accessList: import("../../index.js").AccessList;
169
+ authorizationList?: undefined;
170
+ blobVersionedHashes?: undefined;
171
+ chainId: number;
172
+ type: "eip2930";
173
+ gasPrice: bigint;
174
+ maxFeePerBlobGas?: undefined;
175
+ maxFeePerGas?: undefined;
176
+ maxPriorityFeePerGas?: undefined;
177
+ isSystemTx?: undefined;
178
+ mint?: undefined;
179
+ sourceHash?: undefined;
180
+ } | {
181
+ blockHash: `0x${string}` | null;
182
+ blockNumber: bigint | null;
183
+ from: import("abitype").Address;
184
+ gas: bigint;
185
+ hash: import("../../index.js").Hash;
186
+ input: import("../../index.js").Hex;
187
+ nonce: number;
188
+ r: import("../../index.js").Hex;
189
+ s: import("../../index.js").Hex;
190
+ to: import("abitype").Address | null;
191
+ transactionIndex: number | null;
192
+ typeHex: import("../../index.js").Hex | null;
193
+ v: bigint;
194
+ value: bigint;
195
+ yParity: number;
196
+ accessList: import("../../index.js").AccessList;
197
+ authorizationList?: undefined;
198
+ blobVersionedHashes?: undefined;
199
+ chainId: number;
200
+ type: "eip1559";
201
+ gasPrice?: undefined;
202
+ maxFeePerBlobGas?: undefined;
203
+ maxFeePerGas: bigint;
204
+ maxPriorityFeePerGas: bigint;
205
+ isSystemTx?: undefined;
206
+ mint?: undefined;
207
+ sourceHash?: undefined;
208
+ } | {
209
+ blockHash: `0x${string}` | null;
210
+ blockNumber: bigint | null;
211
+ from: import("abitype").Address;
212
+ gas: bigint;
213
+ hash: import("../../index.js").Hash;
214
+ input: import("../../index.js").Hex;
215
+ nonce: number;
216
+ r: import("../../index.js").Hex;
217
+ s: import("../../index.js").Hex;
218
+ to: import("abitype").Address | null;
219
+ transactionIndex: number | null;
220
+ typeHex: import("../../index.js").Hex | null;
221
+ v: bigint;
222
+ value: bigint;
223
+ yParity: number;
224
+ accessList: import("../../index.js").AccessList;
225
+ authorizationList?: undefined;
226
+ blobVersionedHashes: readonly import("../../index.js").Hex[];
227
+ chainId: number;
228
+ type: "eip4844";
229
+ gasPrice?: undefined;
230
+ maxFeePerBlobGas: bigint;
231
+ maxFeePerGas: bigint;
232
+ maxPriorityFeePerGas: bigint;
233
+ isSystemTx?: undefined;
234
+ mint?: undefined;
235
+ sourceHash?: undefined;
236
+ } | {
237
+ blockHash: `0x${string}` | null;
238
+ blockNumber: bigint | null;
239
+ from: import("abitype").Address;
240
+ gas: bigint;
241
+ hash: import("../../index.js").Hash;
242
+ input: import("../../index.js").Hex;
243
+ nonce: number;
244
+ r: import("../../index.js").Hex;
245
+ s: import("../../index.js").Hex;
246
+ to: import("abitype").Address | null;
247
+ transactionIndex: number | null;
248
+ typeHex: import("../../index.js").Hex | null;
249
+ v: bigint;
250
+ value: bigint;
251
+ yParity: number;
252
+ accessList: import("../../index.js").AccessList;
253
+ authorizationList: import("../../experimental/index.js").SignedAuthorizationList;
254
+ blobVersionedHashes?: undefined;
255
+ chainId: number;
256
+ type: "eip7702";
257
+ gasPrice?: undefined;
258
+ maxFeePerBlobGas?: undefined;
259
+ maxFeePerGas: bigint;
260
+ maxPriorityFeePerGas: bigint;
261
+ isSystemTx?: undefined;
262
+ mint?: undefined;
263
+ sourceHash?: undefined;
264
+ }) & {};
265
+ type: "transaction";
266
+ };
267
+ readonly transactionReceipt: {
268
+ exclude: [] | undefined;
269
+ format: (args: import("../index.js").OpStackRpcTransactionReceipt) => {
270
+ blobGasPrice?: bigint | undefined;
271
+ blobGasUsed?: bigint | undefined;
272
+ blockHash: import("../../index.js").Hash;
273
+ blockNumber: bigint;
274
+ contractAddress: import("abitype").Address | null | undefined;
275
+ cumulativeGasUsed: bigint;
276
+ effectiveGasPrice: bigint;
277
+ from: import("abitype").Address;
278
+ gasUsed: bigint;
279
+ logs: import("../../index.js").Log<bigint, number, false>[];
280
+ logsBloom: import("../../index.js").Hex;
281
+ root?: import("../../index.js").Hash | undefined;
282
+ status: "success" | "reverted";
283
+ to: import("abitype").Address | null;
284
+ transactionHash: import("../../index.js").Hash;
285
+ transactionIndex: number;
286
+ type: import("../../index.js").TransactionType;
287
+ l1GasPrice: bigint | null;
288
+ l1GasUsed: bigint | null;
289
+ l1Fee: bigint | null;
290
+ l1FeeScalar: number | null;
291
+ } & {};
292
+ type: "transactionReceipt";
293
+ };
294
+ };
295
+ serializers: {
296
+ readonly transaction: typeof import("../index.js").serializeTransactionOpStack;
297
+ };
33
298
  };
34
299
  //# sourceMappingURL=unichainSepolia.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"unichainSepolia.d.ts","sourceRoot":"","sources":["../../../chains/definitions/unichainSepolia.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4B1B,CAAA"}
1
+ {"version":3,"file":"unichainSepolia.d.ts","sourceRoot":"","sources":["../../../chains/definitions/unichainSepolia.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6C1B,CAAA"}
@@ -0,0 +1,37 @@
1
+ export declare const velas: {
2
+ blockExplorers: {
3
+ readonly default: {
4
+ readonly name: "Velas Explorer";
5
+ readonly url: "https://evmexplorer.velas.com";
6
+ };
7
+ };
8
+ contracts?: import("../index.js").Prettify<{
9
+ [key: string]: import("../../index.js").ChainContract | {
10
+ [sourceId: number]: import("../../index.js").ChainContract | undefined;
11
+ } | undefined;
12
+ } & {
13
+ ensRegistry?: import("../../index.js").ChainContract | undefined;
14
+ ensUniversalResolver?: import("../../index.js").ChainContract | undefined;
15
+ multicall3?: import("../../index.js").ChainContract | undefined;
16
+ universalSignatureVerifier?: import("../../index.js").ChainContract | undefined;
17
+ }> | undefined;
18
+ id: 106;
19
+ name: "Velas EVM Mainnet";
20
+ nativeCurrency: {
21
+ readonly name: "VLX";
22
+ readonly symbol: "VLX";
23
+ readonly decimals: 18;
24
+ };
25
+ rpcUrls: {
26
+ readonly default: {
27
+ readonly http: readonly ["https://evmexplorer.velas.com/rpc"];
28
+ };
29
+ };
30
+ sourceId?: number | undefined;
31
+ testnet: false;
32
+ custom?: Record<string, unknown> | undefined;
33
+ fees?: import("../../index.js").ChainFees<undefined> | undefined;
34
+ formatters?: undefined;
35
+ serializers?: import("../../index.js").ChainSerializers<undefined, import("../../index.js").TransactionSerializable> | undefined;
36
+ };
37
+ //# sourceMappingURL=velas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"velas.d.ts","sourceRoot":"","sources":["../../../chains/definitions/velas.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK;;;;;;;;;;;;mBAiB6+B,CAAC;4BAA0D,CAAC;kBAAgD,CAAC;kCAAgE,CAAC;;;;;;;;;;;;;;;;;;;;CAD3qC,CAAA"}
@@ -1,20 +1,60 @@
1
1
  export declare const worldchain: {
2
2
  blockExplorers: {
3
3
  readonly default: {
4
- readonly name: "World Chain Explorer";
4
+ readonly name: "Worldscan";
5
+ readonly url: "https://worldscan.org";
6
+ readonly apiUrl: "https://api.worldscan.org/api";
7
+ };
8
+ readonly blockscout: {
9
+ readonly name: "Blockscout";
5
10
  readonly url: "https://worldchain-mainnet.explorer.alchemy.com";
11
+ readonly apiUrl: "https://worldchain-mainnet.explorer.alchemy.com/api";
12
+ };
13
+ };
14
+ contracts: {
15
+ readonly multicall3: {
16
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
17
+ readonly blockCreated: 0;
18
+ };
19
+ readonly disputeGameFactory: {
20
+ readonly 1: {
21
+ readonly address: "0x0E90dCAFBC242D2C861A20Bb20EC8E7182965a52";
22
+ };
23
+ };
24
+ readonly l2OutputOracle: {
25
+ readonly 1: {
26
+ readonly address: "0x19A6d1E9034596196295CF148509796978343c5D";
27
+ };
28
+ };
29
+ readonly portal: {
30
+ readonly 1: {
31
+ readonly address: "0xd5ec14a83B7d95BE1E2Ac12523e2dEE12Cbeea6C";
32
+ };
33
+ };
34
+ readonly l1StandardBridge: {
35
+ readonly 1: {
36
+ readonly address: "0x470458C91978D2d929704489Ad730DC3E3001113";
37
+ };
38
+ };
39
+ readonly gasPriceOracle: {
40
+ readonly address: "0x420000000000000000000000000000000000000F";
41
+ };
42
+ readonly l1Block: {
43
+ readonly address: "0x4200000000000000000000000000000000000015";
44
+ };
45
+ readonly l2CrossDomainMessenger: {
46
+ readonly address: "0x4200000000000000000000000000000000000007";
47
+ };
48
+ readonly l2Erc721Bridge: {
49
+ readonly address: "0x4200000000000000000000000000000000000014";
50
+ };
51
+ readonly l2StandardBridge: {
52
+ readonly address: "0x4200000000000000000000000000000000000010";
53
+ };
54
+ readonly l2ToL1MessagePasser: {
55
+ readonly address: "0x4200000000000000000000000000000000000016";
6
56
  };
7
57
  };
8
- contracts?: import("../index.js").Prettify<{
9
- [key: string]: import("../../index.js").ChainContract | {
10
- [sourceId: number]: import("../../index.js").ChainContract | undefined;
11
- } | undefined;
12
- } & {
13
- ensRegistry?: import("../../index.js").ChainContract | undefined;
14
- ensUniversalResolver?: import("../../index.js").ChainContract | undefined;
15
- multicall3?: import("../../index.js").ChainContract | undefined;
16
- universalSignatureVerifier?: import("../../index.js").ChainContract | undefined;
17
- }> | undefined;
18
58
  id: 480;
19
59
  name: "World Chain";
20
60
  nativeCurrency: {
@@ -27,12 +67,244 @@ export declare const worldchain: {
27
67
  readonly http: readonly ["https://worldchain-mainnet.g.alchemy.com/public"];
28
68
  };
29
69
  };
30
- sourceId?: number | undefined;
70
+ sourceId: 1;
31
71
  testnet: false;
32
72
  custom?: Record<string, unknown> | undefined;
33
73
  fees?: import("../../index.js").ChainFees<undefined> | undefined;
34
- formatters?: undefined;
35
- serializers?: import("../../index.js").ChainSerializers<undefined, import("../../index.js").TransactionSerializable> | undefined;
74
+ formatters: {
75
+ readonly block: {
76
+ exclude: [] | undefined;
77
+ format: (args: import("../index.js").OpStackRpcBlock) => {
78
+ baseFeePerGas: bigint | null;
79
+ blobGasUsed: bigint;
80
+ difficulty: bigint;
81
+ excessBlobGas: bigint;
82
+ extraData: import("../../index.js").Hex;
83
+ gasLimit: bigint;
84
+ gasUsed: bigint;
85
+ hash: `0x${string}` | null;
86
+ logsBloom: `0x${string}` | null;
87
+ miner: import("abitype").Address;
88
+ mixHash: import("../../index.js").Hash;
89
+ nonce: `0x${string}` | null;
90
+ number: bigint | null;
91
+ parentBeaconBlockRoot?: import("../../index.js").Hex | undefined;
92
+ parentHash: import("../../index.js").Hash;
93
+ receiptsRoot: import("../../index.js").Hex;
94
+ sealFields: import("../../index.js").Hex[];
95
+ sha3Uncles: import("../../index.js").Hash;
96
+ size: bigint;
97
+ stateRoot: import("../../index.js").Hash;
98
+ timestamp: bigint;
99
+ totalDifficulty: bigint | null;
100
+ transactions: `0x${string}`[] | import("../index.js").OpStackTransaction<boolean>[];
101
+ transactionsRoot: import("../../index.js").Hash;
102
+ uncles: import("../../index.js").Hash[];
103
+ withdrawals?: import("../../index.js").Withdrawal[] | undefined;
104
+ withdrawalsRoot?: import("../../index.js").Hex | undefined;
105
+ } & {};
106
+ type: "block";
107
+ };
108
+ readonly transaction: {
109
+ exclude: [] | undefined;
110
+ format: (args: import("../index.js").OpStackRpcTransaction) => ({
111
+ blockHash: `0x${string}` | null;
112
+ blockNumber: bigint | null;
113
+ from: import("abitype").Address;
114
+ gas: bigint;
115
+ hash: import("../../index.js").Hash;
116
+ input: import("../../index.js").Hex;
117
+ nonce: number;
118
+ r: import("../../index.js").Hex;
119
+ s: import("../../index.js").Hex;
120
+ to: import("abitype").Address | null;
121
+ transactionIndex: number | null;
122
+ typeHex: import("../../index.js").Hex | null;
123
+ v: bigint;
124
+ value: bigint;
125
+ yParity: number;
126
+ gasPrice?: undefined;
127
+ maxFeePerBlobGas?: undefined;
128
+ maxFeePerGas: bigint;
129
+ maxPriorityFeePerGas: bigint;
130
+ isSystemTx?: boolean;
131
+ mint?: bigint | undefined;
132
+ sourceHash: import("../../index.js").Hex;
133
+ type: "deposit";
134
+ } | {
135
+ r: import("../../index.js").Hex;
136
+ s: import("../../index.js").Hex;
137
+ v: bigint;
138
+ to: import("abitype").Address | null;
139
+ from: import("abitype").Address;
140
+ gas: bigint;
141
+ nonce: number;
142
+ value: bigint;
143
+ blockHash: `0x${string}` | null;
144
+ blockNumber: bigint | null;
145
+ hash: import("../../index.js").Hash;
146
+ input: import("../../index.js").Hex;
147
+ transactionIndex: number | null;
148
+ typeHex: import("../../index.js").Hex | null;
149
+ accessList?: undefined;
150
+ authorizationList?: undefined;
151
+ blobVersionedHashes?: undefined;
152
+ chainId?: number | undefined;
153
+ yParity?: undefined;
154
+ type: "legacy";
155
+ gasPrice: bigint;
156
+ maxFeePerBlobGas?: undefined;
157
+ maxFeePerGas?: undefined;
158
+ maxPriorityFeePerGas?: undefined;
159
+ isSystemTx?: undefined;
160
+ mint?: undefined;
161
+ sourceHash?: undefined;
162
+ } | {
163
+ blockHash: `0x${string}` | null;
164
+ blockNumber: bigint | null;
165
+ from: import("abitype").Address;
166
+ gas: bigint;
167
+ hash: import("../../index.js").Hash;
168
+ input: import("../../index.js").Hex;
169
+ nonce: number;
170
+ r: import("../../index.js").Hex;
171
+ s: import("../../index.js").Hex;
172
+ to: import("abitype").Address | null;
173
+ transactionIndex: number | null;
174
+ typeHex: import("../../index.js").Hex | null;
175
+ v: bigint;
176
+ value: bigint;
177
+ yParity: number;
178
+ accessList: import("../../index.js").AccessList;
179
+ authorizationList?: undefined;
180
+ blobVersionedHashes?: undefined;
181
+ chainId: number;
182
+ type: "eip2930";
183
+ gasPrice: bigint;
184
+ maxFeePerBlobGas?: undefined;
185
+ maxFeePerGas?: undefined;
186
+ maxPriorityFeePerGas?: undefined;
187
+ isSystemTx?: undefined;
188
+ mint?: undefined;
189
+ sourceHash?: undefined;
190
+ } | {
191
+ blockHash: `0x${string}` | null;
192
+ blockNumber: bigint | null;
193
+ from: import("abitype").Address;
194
+ gas: bigint;
195
+ hash: import("../../index.js").Hash;
196
+ input: import("../../index.js").Hex;
197
+ nonce: number;
198
+ r: import("../../index.js").Hex;
199
+ s: import("../../index.js").Hex;
200
+ to: import("abitype").Address | null;
201
+ transactionIndex: number | null;
202
+ typeHex: import("../../index.js").Hex | null;
203
+ v: bigint;
204
+ value: bigint;
205
+ yParity: number;
206
+ accessList: import("../../index.js").AccessList;
207
+ authorizationList?: undefined;
208
+ blobVersionedHashes?: undefined;
209
+ chainId: number;
210
+ type: "eip1559";
211
+ gasPrice?: undefined;
212
+ maxFeePerBlobGas?: undefined;
213
+ maxFeePerGas: bigint;
214
+ maxPriorityFeePerGas: bigint;
215
+ isSystemTx?: undefined;
216
+ mint?: undefined;
217
+ sourceHash?: undefined;
218
+ } | {
219
+ blockHash: `0x${string}` | null;
220
+ blockNumber: bigint | null;
221
+ from: import("abitype").Address;
222
+ gas: bigint;
223
+ hash: import("../../index.js").Hash;
224
+ input: import("../../index.js").Hex;
225
+ nonce: number;
226
+ r: import("../../index.js").Hex;
227
+ s: import("../../index.js").Hex;
228
+ to: import("abitype").Address | null;
229
+ transactionIndex: number | null;
230
+ typeHex: import("../../index.js").Hex | null;
231
+ v: bigint;
232
+ value: bigint;
233
+ yParity: number;
234
+ accessList: import("../../index.js").AccessList;
235
+ authorizationList?: undefined;
236
+ blobVersionedHashes: readonly import("../../index.js").Hex[];
237
+ chainId: number;
238
+ type: "eip4844";
239
+ gasPrice?: undefined;
240
+ maxFeePerBlobGas: bigint;
241
+ maxFeePerGas: bigint;
242
+ maxPriorityFeePerGas: bigint;
243
+ isSystemTx?: undefined;
244
+ mint?: undefined;
245
+ sourceHash?: undefined;
246
+ } | {
247
+ blockHash: `0x${string}` | null;
248
+ blockNumber: bigint | null;
249
+ from: import("abitype").Address;
250
+ gas: bigint;
251
+ hash: import("../../index.js").Hash;
252
+ input: import("../../index.js").Hex;
253
+ nonce: number;
254
+ r: import("../../index.js").Hex;
255
+ s: import("../../index.js").Hex;
256
+ to: import("abitype").Address | null;
257
+ transactionIndex: number | null;
258
+ typeHex: import("../../index.js").Hex | null;
259
+ v: bigint;
260
+ value: bigint;
261
+ yParity: number;
262
+ accessList: import("../../index.js").AccessList;
263
+ authorizationList: import("../../experimental/index.js").SignedAuthorizationList;
264
+ blobVersionedHashes?: undefined;
265
+ chainId: number;
266
+ type: "eip7702";
267
+ gasPrice?: undefined;
268
+ maxFeePerBlobGas?: undefined;
269
+ maxFeePerGas: bigint;
270
+ maxPriorityFeePerGas: bigint;
271
+ isSystemTx?: undefined;
272
+ mint?: undefined;
273
+ sourceHash?: undefined;
274
+ }) & {};
275
+ type: "transaction";
276
+ };
277
+ readonly transactionReceipt: {
278
+ exclude: [] | undefined;
279
+ format: (args: import("../index.js").OpStackRpcTransactionReceipt) => {
280
+ blobGasPrice?: bigint | undefined;
281
+ blobGasUsed?: bigint | undefined;
282
+ blockHash: import("../../index.js").Hash;
283
+ blockNumber: bigint;
284
+ contractAddress: import("abitype").Address | null | undefined;
285
+ cumulativeGasUsed: bigint;
286
+ effectiveGasPrice: bigint;
287
+ from: import("abitype").Address;
288
+ gasUsed: bigint;
289
+ logs: import("../../index.js").Log<bigint, number, false>[];
290
+ logsBloom: import("../../index.js").Hex;
291
+ root?: import("../../index.js").Hash | undefined;
292
+ status: "success" | "reverted";
293
+ to: import("abitype").Address | null;
294
+ transactionHash: import("../../index.js").Hash;
295
+ transactionIndex: number;
296
+ type: import("../../index.js").TransactionType;
297
+ l1GasPrice: bigint | null;
298
+ l1GasUsed: bigint | null;
299
+ l1Fee: bigint | null;
300
+ l1FeeScalar: number | null;
301
+ } & {};
302
+ type: "transactionReceipt";
303
+ };
304
+ };
305
+ serializers: {
306
+ readonly transaction: typeof import("../index.js").serializeTransactionOpStack;
307
+ };
36
308
  readonly network: "worldchain";
37
309
  };
38
310
  //# sourceMappingURL=worldchain.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"worldchain.d.ts","sourceRoot":"","sources":["../../../chains/definitions/worldchain.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU;;;;;;;;;;;;mBAgBm7B,CAAC;4BAA0D,CAAC;kBAAgD,CAAC;kCAAgE,CAAC;;;;;;;;;;;;;;;;;;;;;CADtnC,CAAA"}
1
+ {"version":3,"file":"worldchain.d.ts","sourceRoot":"","sources":["../../../chains/definitions/worldchain.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkDrB,CAAA"}