Delegated Claim Campaigns are a contract using merkle trees to create a efficient way to distribute token claims to any number of wallet addreses. The contract is optimized to not only give the ability for users to claim unlocked tokens, but also taps into the Hedgey Vesting and Hedgey Lockup contracts that bake in and automate vesting or token lockup schedules. The contract can be used to distribute tokens where users have to delegate tokens when they claim them, or optionally without delegating, but the creator can define if delegation is required.
The intent is that for some DAOs, they require an initial amount of token delegations to meet quorum, and this contract is designed to help DAOs launching their token claims / airdrops where users have to delegate such that the quorum will always be met once users have claimed and delegated their tokens.
Clone repistory
npm install
npx hardhat compile
npx hardhat test
To deploy the DelegatedClaimCampaign contract create a .env file in the main directory with your private key(s), network RPCs and etherscan API keys. Use the scripts/deploy.js file to deploy the contract, you can use hardhat to deploy and verify the contract using the command:
npx hardhat run scripts/deploy.js --network <network-name>
Deployed address: 0x66f9323C7298B98f9F91a1D3f507Bf765EbEDf0B
Deployed address: 0x5Ae97e4770b7034C7Ca99Ab7edC26a18a23CB412
- Ethereum
- Arbitrum
- Optimism
- Base
- Polygon
- Linea
- Mantle
- Binance Smart Chain
- Mode
- Zora
- IotaEVM
- Filecoin EVM