Skip to content

snapshot-labs/boost

Repository files navigation

GitHub license

Boost

Programmable token distribution.

Documentation

Deployment

To deploy the protocol to an EVM chain, first set the following environment variables:

# The address of the account that will be set as the owner of the protocol.
PROTOCOL_OWNER=
# The name of the chain you want to deploy on. The addresses of the deployed contracts will be stored at /deployments/[network].json.
NETWORK=
# An RPC URL for the chain.
RPC_URL=
# Private Key for the deployer address.
PRIVATE_KEY=
# An API key for a block explorer on the chain.
(Optional).
ETHERSCAN_API_KEY=

Following this, a Foundry Script can be run to deploy the entire protocol. Example usage to deploy from a Ledger Hardware Wallet and verify on a block explorer:

forge script script/Deployer.s.sol:Deployer --rpc-url $RPC_URL --optimize --broadcast --verify -vvvv

The script uses the CREATE3 Factory for the deployments which ensures that the addresses of the contracts are the same on all chains even if the constructor arguments for the contract are different.

About

A protocol for token distribution

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •