- Intall truffle: npm i -g truffle truffle-flattener
- Install dependencies:
npm i - Compile contracts:
truffle compile - Configure your private key and web3 URL (usually from infura) to deploy your contract: copy
.env.exampleto.envand fill your info. - Deploy:
node deploy <token address>wheretoken addressis the token to be locked in the contract.
- Install Ganache or ganache-cli and turn it on port 7545
- truffle test --network-name development