- Pre-req install and update local packages
yarn -
Update the .env file with the variables
-
Deploy the SimpleVault contract (from new owner address)
yarn hardhat run --network mainnet scripts/0-deploy-vault.ts-
Set privatekey in .env file with private key of the owner of old vesting contract
-
Withdraw all tokens from old vesting contract by using withdraw-lumerin.ts
yarn hardhat run --network mainnet scripts/1-withdraw-lumerin.ts- Run get-balances.ts to get the addresses and balances of the old vesting contract
yarn hardhat run --network mainnet scripts/2-get-balances.ts-
Check "address-amounts.json" file for the address and amount of tokens to be distributed
-
Distribute tokens to new vault contract by using distribute-lumerin.ts
yarn hardhat run --network mainnet scripts/3-distribute-lumerin.ts- Check the new vesting contract for the distributed tokens
yarn hardhat run --network mainnet scripts/4-check-vault.ts