Documentation ¶
Index ¶
Constants ¶
View Source
const ( CACHE_NOTHING = iota CACHE_SIGNAL_ROOT = iota CACHE_STATE_ROOT = iota CACHE_BOTH = iota )
Variables ¶
View Source
var BridgeABI *abi.ABI
Functions ¶
func EncodeHopProofs ¶
Types ¶
type BlockHeader ¶
type BlockHeader struct { ParentHash [32]byte `abi:"parentHash"` OmmersHash [32]byte `abi:"ommersHash"` Beneficiary common.Address `abi:"beneficiary"` StateRoot [32]byte `abi:"stateRoot"` TransactionsRoot [32]byte `abi:"transactionsRoot"` ReceiptsRoot [32]byte `abi:"receiptsRoot"` LogsBloom [8][32]byte `abi:"logsBloom"` Difficulty *big.Int `abi:"difficulty"` Height *big.Int `abi:"height"` GasLimit uint64 `abi:"gasLimit"` GasUsed uint64 `abi:"gasUsed"` Timestamp uint64 `abi:"timestamp"` ExtraData []byte `abi:"extraData"` MixHash [32]byte `abi:"mixHash"` Nonce uint64 `abi:"nonce"` BaseFeePerGas *big.Int `abi:"baseFeePerGas"` WithdrawalsRoot [32]byte `abi:"withdrawalsRoot"` }
func BlockToBlockHeader ¶
func BlockToBlockHeader(block *types.Block) BlockHeader
type CacheOption ¶
type CacheOption uint8
Click to show internal directories.
Click to hide internal directories.