eip-1193 0.6.4 → 0.6.6
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/index.d.ts +16 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -137,6 +137,21 @@ export type EIP1193Log = {
|
|
|
137
137
|
transactionHash: EIP1193DATA | null;
|
|
138
138
|
blockHash: EIP1193DATA | null;
|
|
139
139
|
blockNumber: EIP1193QUANTITY | null;
|
|
140
|
+
/**
|
|
141
|
+
* The timestamp of the block this log is in.
|
|
142
|
+
*
|
|
143
|
+
* Added to the `Log` schema by ethereum/execution-apis#639. It is OPTIONAL in
|
|
144
|
+
* the spec (the schema's only required field is `transactionHash`) and it is
|
|
145
|
+
* optional here for the same reason: it exists to save the extra
|
|
146
|
+
* `eth_getBlockByHash` round-trip per block, but not every node emits it yet.
|
|
147
|
+
* Served by go-ethereum (>= 1.16.0), reth, besu, erigon, anvil and ethereumjs;
|
|
148
|
+
* notably NOT by Hardhat's EDR as of hardhat 3.14.0.
|
|
149
|
+
*
|
|
150
|
+
* Consumers must treat `undefined` as "this node does not provide it" and fall
|
|
151
|
+
* back, rather than defaulting it to 0: a missing timestamp is recoverable, a
|
|
152
|
+
* wrong one is not.
|
|
153
|
+
*/
|
|
154
|
+
blockTimestamp?: EIP1193QUANTITY;
|
|
140
155
|
address: EIP1193Account;
|
|
141
156
|
data: EIP1193DATA;
|
|
142
157
|
topics: EIP1193DATA[];
|
|
@@ -333,7 +348,7 @@ export type ReadMethods = {
|
|
|
333
348
|
eth_unsubscribe: {params: [EIP1193DATA]; result: boolean};
|
|
334
349
|
eth_getProof: {params: [EIP1193DATA, EIP1193DATA[]] | [EIP1193DATA, EIP1193DATA[], EIP1898BlockTag]; result: unknown}; // TODO
|
|
335
350
|
|
|
336
|
-
eth_feeHistory: {params: [
|
|
351
|
+
eth_feeHistory: {params: [EIP1193QUANTITY, EIP1193BlockTag, number[]]; result: EIP1193FeeHistory};
|
|
337
352
|
};
|
|
338
353
|
|
|
339
354
|
export type WriteMethods = {
|