Either make sure you're running a version of node compliant with the engines
requirement in package.json
, or install Node Version Manager nvm
and run nvm use
to use the correct version of node.
Run
yarn
This project demonstrates a basic Hardhat use case. It comes with a sample contract, a test for that contract, a sample script that deploys that contract, and an example of a task implementation, which simply lists the available accounts.
Try running some of the following tasks:
npx hardhat accounts
npx hardhat compile
npx hardhat clean
npx hardhat test
npx hardhat node
node scripts/sample-script.js
npx hardhat help
or
Run
npm install --python=/usr/bin/python2.7
- You'll need to sign up for Infura. and get an API key.
- You'll need Rinkeby ether to pay for the gas to deploy your contract. Visit https://faucet.rinkeby.io/ to get some.
- Using your API key and the mnemonic for your MetaMask wallet (make sure you're using a MetaMask seed phrase that you're comfortable using for testing purposes), run:
export INFURA_KEY="<infura_key>"
export MNEMONIC="<metmask_mnemonic>"
yarn truffle migrate --network rinkeby
Make sure your wallet has at least a few dollars worth of ETH in it. Then run:
yarn truffle migrate --network live
Look for your newly deployed contract address in the logs! š„³
These contracts are available to the public under an MIT License.