Follow these steps to deploy the TimeLockFactory
smart contract:
- Install dependencies
yarn install
-
Create a new file called "token_address" and paste into it your token's address
-
If you want to deploy to Rinkeby, save your private key/mnemonic to a file called
rinkeby_private_key
/rinkeby_mnemonic
. For mainnet, usemainnet_private_key
/mainnet_mnemonic
. -
Compile the smart contract
truffle compile
- Export your Infura API KEY
export INFURA_API_KEY=<YOUR INFURA API KEY>
- Deploy
truffle deploy --network rinkeby
or
truffle deploy --network mainnet