Versions in this module Expand all Collapse all v0 v0.7.0 Jun 7, 2023 v0.6.0 Jun 6, 2023 Changes in this version + var ErrU256ContainsDecimal = errors.New("number contains fractional digits") + var ErrU256NotNull = errors.New("number cannot be null") + var ErrU256Overflow = errors.New("number exceeds u256") + type BlockHeader struct + Hash common.Hash + Number U256 + ParentHash common.Hash + Timestamp uint64 + type BlocksDB interface + MarkFinalizedL1RootForL2Block func(common.Hash, common.Hash) error + StoreL1BlockHeaders func([]*L1BlockHeader) error + StoreL2BlockHeaders func([]*L2BlockHeader) error + StoreLegacyStateBatch func(*LegacyStateBatch) error + type BlocksView interface + FinalizedL1BlockHeight func() (*big.Int, error) + FinalizedL2BlockHeight func() (*big.Int, error) + type BridgeDB interface + MarkFinalizedWithdrawalEvent func(string, string) error + MarkProvenWithdrawalEvent func(string, string) error + StoreDeposits func([]*Deposit) error + StoreWithdrawals func([]*Withdrawal) error + type BridgeView interface + DepositsByAddress func(address common.Address) ([]*DepositWithTransactionHash, error) + WithdrawalsByAddress func(address common.Address) ([]*WithdrawalWithTransactionHashes, error) + type ContractEvent struct + BlockHash common.Hash + EventSignature hexutil.Bytes + GUID string + LogIndex uint64 + Timestamp uint64 + TransactionHash common.Hash + type ContractEventsDB interface + StoreL1ContractEvents func([]*L1ContractEvent) error + StoreL2ContractEvents func([]*L2ContractEvent) error + type ContractEventsView interface + L1ContractEventByGUID func(string) (*L1ContractEvent, error) + L2ContractEventByGUID func(string) (*L2ContractEvent, error) + type DB struct + Blocks BlocksDB + Bridge BridgeDB + ContractEvents ContractEventsDB + func NewDB(dsn string) (*DB, error) + type Deposit struct + GUID string + InitiatedL1EventGUID string + TokenPair TokenPair + Tx Transaction + type DepositWithTransactionHash struct + Deposit Deposit + L1TransactionHash common.Hash + type L1BlockHeader struct + type L1ContractEvent struct + type L2BlockHeader struct + L1BlockHash *common.Hash + LegacyStateBatchIndex *uint64 + type L2ContractEvent struct + type LegacyStateBatch struct + Index uint64 + L1BlockHash common.Hash + PrevTotal uint64 + Root common.Hash + Size uint64 + type TokenPair struct + L1TokenAddress common.Address + L2TokenAddress common.Address + type Transaction struct + Amount U256 + Data hexutil.Bytes + FromAddress common.Address + Timestamp uint64 + ToAddress common.Address + type U256 struct + Int *big.Int + func (u256 *U256) Scan(src interface{}) error + func (u256 U256) Value() (driver.Value, error) + type Withdrawal struct + FinalizedL1EventGUID *string + GUID string + InitiatedL2EventGUID string + ProvenL1EventGUID *string + TokenPair TokenPair + Tx Transaction + WithdrawalHash common.Hash + type WithdrawalWithTransactionHashes struct + FinalizedL1TransactionHash *common.Hash + L2TransactionHash common.Hash + ProvenL1TransactionHash *common.Hash + Withdrawal Withdrawal Other modules containing this package github.com/ethereum-optimism/optimism