Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TxBatchParseFailedError = errors.New("Failed to create TxBatch from decoded tx data")
Functions ¶
This section is empty.
Types ¶
type Assertion ¶
type Assertion struct { ID *big.Int VmHash common.Hash InboxSize *big.Int Parent *big.Int Deadline *big.Int ProposalTime *big.Int }
Assertion represents disputable assertion for L1 rollup contract
func (*Assertion) GetParentAssertion ¶
func (a *Assertion) GetParentAssertion(assertionMap *bindings.AssertionMapCallerSession) (*Assertion, error)
type SequenceBlock ¶
type SequenceBlock struct { SequenceContext Txs types.Transactions }
SequenceBlock is a block sequenced to L1 sequencer inbox It is used by validators to reconstruct L2 chain from L1 activities
type SequenceContext ¶
SequenceContext is the relavent context of each block sequenced to L1 sequncer inbox
type Staker ¶
type Staker struct { IsStaked bool AmountStaked *big.Int AssertionID *big.Int CurrentChallenge common.Address }
Staker represents fraud-proof assertion stake status
type TxBatch ¶
type TxBatch struct { Blocks types.Blocks Contexts []SequenceContext Txs types.Transactions GasUsed *big.Int }
TxBatch represents a transaction batch to be sequenced to L1 sequencer inbox It may contain multiple blocks
func TxBatchFromDecoded ¶
TxBatchFromDecoded decodes the input of SequencerInbox#appendTxBatch call It will only fill Contexts and Txs fields
func (*TxBatch) LastBlockNumber ¶
func (*TxBatch) LastBlockRoot ¶
func (*TxBatch) SerializeToArgs ¶
func (*TxBatch) ToAssertion ¶
Click to show internal directories.
Click to hide internal directories.