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

Historical synchronizer #62

Merged
merged 21 commits into from
Sep 30, 2024
Merged
Show file tree
Hide file tree
Changes from 18 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
653 changes: 514 additions & 139 deletions blockchain/arbitrum_one/arbitrum_one.go

Large diffs are not rendered by default.

653 changes: 514 additions & 139 deletions blockchain/arbitrum_sepolia/arbitrum_sepolia.go

Large diffs are not rendered by default.

647 changes: 506 additions & 141 deletions blockchain/b3/b3.go

Large diffs are not rendered by default.

647 changes: 506 additions & 141 deletions blockchain/b3_sepolia/b3_sepolia.go

Large diffs are not rendered by default.

617 changes: 499 additions & 118 deletions blockchain/blockchain.go.tmpl

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions blockchain/common/decoding.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,13 @@ type QueryFilter struct {
Topics [][]string `json:"topics"`
}

type BlockWithTransactions struct {
BlockNumber uint64
BlockHash string
BlockTimestamp uint64
Transactions map[string]TransactionJson
}

// ReadJsonBlocks reads blocks from a JSON file
func ReadJsonBlocks() []*BlockJson {
file, err := os.Open("data/blocks_go.json")
Expand Down
Loading
Loading