UNPKG

@unruggable/gateways

Version:

Trustless Ethereum Multichain CCIP-Read Gateway

48 lines 1.49 kB
import type { EncodedProof, HexAddress, HexString, HexString32 } from '../types.js'; export type EthProof = HexString[]; export type EthStorageProof = { key: HexString; value: HexString; proof: EthProof; }; export type RPCEthGetProof = { address: HexAddress; balance: HexString; codeHash?: HexString32; keccakCodeHash?: HexString32; nonce: HexString; accountProof: EthProof; storageHash: HexString32; storageProof: EthStorageProof[]; }; export type EthAccountProof = Omit<RPCEthGetProof, 'storageProof'>; export type RPCEthGetBlock<TransactionT = HexString> = { hash: HexString32; stateRoot: HexString32; parentHash: HexString32; sha3Uncles: HexString32; miner: HexAddress; transactionsRoot: HexString32; receiptsRoot: HexString32; logsBloom: HexString; difficulty: HexString; number: HexString; gasLimit: HexString; gasUsed: HexString; extraData: HexString; mixHash: HexString32; nonce: HexString; transactions: TransactionT[]; timestamp: HexString; uncles: HexString[]; baseFeePerGas?: HexString; withdrawals?: HexString[]; withdrawalsRoot?: HexString32; blobGasUsed?: HexString; excessBlobGas?: HexString; parentBeaconBlockRoot?: HexString32; requestsHash?: HexString32; }; export declare function isContract(proof: EthAccountProof): boolean; export declare function encodeProof(proof: EthProof): EncodedProof; //# sourceMappingURL=types.d.ts.map