Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Onchain data number types update #61

Merged
merged 2 commits into from
Oct 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions types/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ type BatchDetails struct {
CommittedAt time.Time `json:"committedAt"` // The timestamp when the block was committed on L1.
ExecuteTxHash *common.Hash `json:"executeTxHash"` // The transaction hash of the execution on L1.
ExecutedAt time.Time `json:"executedAt"` // The timestamp when the block execution was completed on L1.
L1GasPrice uint64 `json:"l1GasPrice"` // L1 gas price at the time of the block's execution.
L1GasPrice *big.Int `json:"l1GasPrice"` // L1 gas price at the time of the block's execution.
L1TxCount uint64 `json:"l1TxCount"` // The number of L1 transactions included in the batch.
L2FairGasPrice uint64 `json:"l2FairGasPrice"` // Fair gas price on L2 at the time of the block's execution.
L2FairGasPrice *big.Int `json:"l2FairGasPrice"` // Fair gas price on L2 at the time of the block's execution.
L2TxCount uint64 `json:"l2TxCount"` // The number of L2 transactions associated with this batch.
Number uint64 `json:"number"` // L1 batch number.
Number *big.Int `json:"number"` // L1 batch number.
ProveTxHash *common.Hash `json:"proveTxHash"` // The transaction hash of the proof submission on L1.
ProvenAt time.Time `json:"provenAt"` // The timestamp when the proof was submitted on L1.
RootHash *common.Hash `json:"rootHash"` // Root hash of the state after processing the batch.
Expand All @@ -49,8 +49,8 @@ type BatchDetails struct {

// BlockDetails contains block details.
type BlockDetails struct {
Number uint64 `json:"number"` // The number of the block.
L1BatchNumber uint64 `json:"l1BatchNumber"` // Corresponding L1 batch number.
Number *big.Int `json:"number"` // The number of the block.
L1BatchNumber *big.Int `json:"l1BatchNumber"` // Corresponding L1 batch number.
Timestamp uint64 `json:"timestamp"` // Unix timestamp when the block was committed.
L1TxCount uint64 `json:"l1TxCount"` // The number of L1 transactions included in the block.
L2TxCount uint64 `json:"l2TxCount"` // The number of L2 transactions included in the block.
Expand Down