- Nodejs (v19.6.1)
- You'll know you've installed nodejs right if you can run:
node --version
and get an ouput likev19.6.1
- You'll know you've installed nodejs right if you can run:
git https://github.com/brainstems/brainstems-token-smart-contracts.git
npm install
Add a .env
file in the root of the project, and as stated in the .env.example
add:
TESTNET_PRIVATE_KEY=000000000000000000000000000000000000000000000000000000000000003c
MAINNET_PRIVATE_KEY=000000000000000000000000000000000000000000000000000000000000003c
To clear the cache and delete the artifacts.
npm run clean
Compile the smart contracts with Hardhat:
npm run build
Run the tests:
npm run test
For localhost, you can start your own hardhat node by running:
npx hardhat node
For contracts deployment you can run the script:
npm run deploy-contracts -- [args]
With the following possible Arguments:
--network [network]
--> This can be 'localhost', 'fuji', etc.-token
--> Deploys the Brainstems Token Contract.
Example command to run all contracts in localhost:
npx run deploy-contracts -- --network localhost -token