Work in progress!
The Boost Guard is in charge of attesting that a user is indeed eligible to claim a boost (whether via vote incentive or vote bribe).
To run your own instance:
- Make sure you have cargo and Rust installed: https://www.rust-lang.org/tools/install
- Clone the repository
gcl https://github.com/snapshot-labs/boost-guard.git - Move to the directory
cd boost-guard - Create your .env file
- Run the client:
cargo run --release - Profit!
The following variable environment are required for the guard to run:
MAINNET_SUBGRAPH_URL: The url to the mainnet subgraphSEPOLIA_SUBGRAPH_URL: The url to the sepolia subgraphPRIVATE_KEY: The guard private keyBOOST_NAME: The boost name used for EIP712 signature (should match the onchain name)BOOST_VERSION: The boost version used for EIP712 signature (should match the onchain version)VERIFYING_CONTRACT: The onchain boost addressSLOT_URL: The URL to/api/v1/slot/of an eth2 nodeEPOCH_URL: The URL to/api/v1/epoch/of an eth2 nodeDATABASE_URL: A read-only URL acces to the hub's databaseBEACONCHAIN_API_KEY: API key to your beaconcha.in account (can be empty if you use your own eth2 node)
Please feel free to read the docs.