Skip to content

Commit

Permalink
Merge pull request #62 from moonstream-to/historical-synchronizer
Browse files Browse the repository at this point in the history
Historical synchronizer
  • Loading branch information
Andrei-Dolgolev authored Sep 30, 2024
2 parents 2be1c2c + 39c1ad4 commit 493acb9
Show file tree
Hide file tree
Showing 54 changed files with 9,924 additions and 2,386 deletions.
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

0 comments on commit 493acb9

Please sign in to comment.