Your
Description
Here
/TODO/
- Go to Remix https://remix.ethereum.org
- Open the ./contracts folder (of https://github.com/DataHighway-DHX/mining) in Remix
- Change imports so they compile in the browser (e.g. change import "./interface/ERC20.sol"; to import "./ERC20.sol";)
- Go to "Solidity Compiler" tab, pick compiler version 0.5.17, click "Compile Lockdrop.sol"
- Copy ABI code to
./contracts/lockdrop.abi.json
, Bytecode to./contracts/lockdrop.code
- Copy ABI code of Lock to
./contracts/lock.abi.json
, Bytecode to./contracts/lock.code
- Copy ABI code of ERC20 to
./contracts/erc20.abi.json
, Bytecode to./contracts/erc20.code
- Download Metamask extension
- Follow "Get started" steps to create (or import) Ethereum account
- Go to "Account details" and export private key
- Copy
.env.example
to.env
- Ensure that
CONTRACT_*_ABI_SOURCE
andCONTRACT_*_CODE_SOURCE
are paths to files from "Contract compilation" section (optional) - Replace
0xSAMPLE_ADDRESS
with account address from "Setup Ethereum account section", replaceSAMPLE_PRIVATE_KEY
with private key - Register your Infura account, create a project. Replace
wss://goerli.infura.io/ws/v3/INFURA_SAMPLE_WSS
with WSS endpoint taken from Infura. - Make sure
CHAIN_TYPE
equals to first section of domain from the previous step (e.g. goerli, mainnet, ropsten).
$ yarn install
$ yarn run build
$ yarn run serve
- Install docker and docker-compose
- Configure deployer parameters as in above steps for .env file
- Start the containers
$ docker-compose up -d
- To rebuild the local image to include code changes run
$ docker-compose build
$ docker-compose up -d