yarn
yarn compile
yarn test
- Create .env file using .env.example as example
- Fill the distribution.json file with data
- Change the names of generated files in generate-merkle-root.ts
fs.writeFileSync('scripts/<NAME>.front.json', JSON.stringify(parsed, null, 4));
fs.writeFileSync('scripts/<NAME>.qa.json', JSON.stringify(claims, null, 4));
- Generate the merkle root and proofs
yarn generate-merkle-root
- Change data in the deployMerkleDistributor.js file
const merkleDistributor = await MerkleDistributor.deploy(
// Token Address
'<TOKEN_ADDRESS>',
// Merkle root
'<MERKLE_ROOT>'
)
- Deploy
yarn deploy --network <NETWORK>
- Change data in the deployMerkleDistributorToStaking.js file
const merkleDistributor = await MerkleDistributor.deploy(
// Token Address
'<TOKEN_ADDRESS>',
// Merkle root
'<MERKLE_ROOT>'
)
- Deploy
yarn deploy-to-staking --network <NETWORK>