Extract logs expected by firehose-starknet from a trusted JSON-RPC source.
This tool exists because it could be slow to sync a Starknet node from scratch, which is currently the only way to bootstrap a firehose-starknet deployment. This tool makes calls to the JSON-RPC endpoint offered by a trusted synced node, and emits the exact same format as an instrumented client node would do.
This tool keeps track of the sync progress through a checkpoint file, specified by the --checkpoint
command line option or CHECKPOINT_FILE
environment variable. The content of the checkpoint file is updated every 50
blocks, which means it's likely that some blocks might be sycned more than once when the tool restarts. This is fine as Firehose handles duplicated blocks without issue.
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.