This contract implements the Aspecta staking contract. Users can stake on their champion devs or projects and earn rewards based on their Build Index. Devs and projects also earn rewards for being staked and maintaining good Build Index.
- Install Rust
curl --proto '=https' --tlsv1.3 https://sh.rustup.rs -sSf | sh
- Install Forge (This may take a long time, 30 minutes to 1 hour)
cargo install --git https://github.com/foundry-rs/foundry forge --bins --locked
- Install the LATEST Node.js LTS
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
source ~/.bashrc # or ~/.zshrc
nvm ls-remote # list all available versions
nvm install xxxxxx # e.g. nvm install v20.14.0
- Install Node.js Modules
npm install
- Create
.env
file and configure environment variables, e.g..env.template
npm run test
npm run deploy
npx hardhat verify --network mainnet PROXY_ADDRESS
You need to modify the existing contract, instead of creating a new contract.
- Upgrade the AspectaBuildingPoint contract
npm run upgrade-bp
- Upgrade the AspectaDevPool contract
npm run upgrade-bc
- Upgrade the AspectaDevPoolFactory contract
npm run upgrade-pf
- Upgrade the PoolFactoryGetters contract
npm run upgrade-fg