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:
HUB_URL
: The url to the snapshot hubSUBGRAPH_URL
: The url of the 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 address
todo
Please feel free to read the docs.