UNPKG

noob-ethereum

Version:
161 lines 3.72 kB
declare interface IRawBlock { baseFeePerGas?: string; difficulty: string; extraData: string; gasLimit: string; gasUsed: string; hash: string; logsBloom: string; miner: string; mixHash: string; nonce: string; number: string; parentHash: string; receiptsRoot: string; sha3Uncles: string; size: string; stateRoot: string; timestamp: string; totalDifficulty: string; transactions: string[] | RawTransactions; transactionsRoot: string; uncles: string[]; } declare type RawTransaction = RawLegacyTransaction | Raw2930Transaction | Raw1559Transaction; declare type RawTransactions = (RawLegacyTransaction | Raw2930Transaction | Raw1559Transaction)[]; declare interface RawLegacyTransaction { blockHash: string; blockNumber: string; from: string; gas: string; gasPrice: string; hash: string; input: string; nonce: string; r: string; s: string; v: string; to: string; transactionIndex: string; type: string; value: string; } declare interface Raw2930Transaction { accessList: string[]; blockHash: string; blockNumber: string; chainId: string; from: string; gas: string; gasPrice: string; hash: string; input: string; nonce: string; r: string; s: string; v: string; to: string; transactionIndex: string; type: string; value: string; } declare interface Raw1559Transaction { accessList: string[]; blockHash: string; blockNumber: string; chainId: string; from: string; gas: string; gasPrice: string; hash: string; input: string; maxFeePerGas: string; maxPriorityFeePerGas: string; nonce: string; r: string; s: string; to: string; transactionIndex: string; type: string; v: string; value: string; } declare interface IRawTransactionReceipt { blockHash: string; blockNumber: string; contractAddress: string | null; cumulativeGasUsed: string; effectiveGasPrice: string; from: string; gasUsed: string; logs: any[]; logsBloom: string; status: string; to: string; transactionHash: string; transactionIndex: string; type: string; } declare type ILegacyBlockTuple = [ parentHash: string, sha3Uncles: string, miner: string, stateRoot: string, transactionsRoot: string, receiptsRoot: string, logsBloom: string, difficulty: string, number: string, gasLimit: string, gasUsed: string, time: string, extraData: string, mixHash: string, nonce: string ]; declare type IPost1559Tuple = [ parentHash: string, sha3Uncles: string, miner: string, stateRoot: string, transactionsRoot: string, receiptsRoot: string, logsBloom: string, difficulty: string, number: string, gasLimit: string, gasUsed: string, time: string, extraData: string, mixHash: string, nonce: string, baseFeePerGas: string ]; declare interface RawTransactionReceipt { blockHash: string; blockNumber: string; contractAddress: string | null; cumulativeGasUsed: string; effectiveGasPrice: string; from: string; gasUsed: string; logs: RawTransactionLogItem[]; logsBloom: string; status: string; to: string; transactionHash: string; transactionIndex: string; type: string; } declare interface RawTransactionLogItem { address: string; blockHash: string; blockNumber: string; data: string; logIndex: string; removed: boolean; topics: string[]; transactionHash: string; transactionIndex: string; } //# sourceMappingURL=raw.d.ts.map