FuelLabs / fuel-indexer

🗃 The Fuel indexer is a standalone service that can be used to index various components of the Fuel blockchain.
https://docs.fuel.network/docs/indexer/
140 stars 66 forks source link

Add a `--network` flag to `fuel-indexer` #1455

Closed ra0x3 closed 10 months ago

ra0x3 commented 10 months ago

Additional context

deekerno commented 10 months ago

This is a great first issue. 👌🏽

To a would be contributor: I actually implemented this functionality in the past, but that branch is loooooooong out of date. Feel free to use this updated snippet as a clue for your work:

lazy_static! {
    pub static ref AVAILABLE_NETWORKS: HashMap<&'static str, &'static str> =
        HashMap::from([
            ("Local Node", "127.0.0.1:4000"),
            ("Beta-4", "beta-4.fuel.network:80"),
        ]);
}