Skip to content

brainstems/brainstems-token-smart-contracts

Repository files navigation

Brainstems ERC 20 Token

Getting Started

Requirements

  • Nodejs (v19.6.1)
    • You'll know you've installed nodejs right if you can run:
      • node --version and get an ouput like v19.6.1

Quickstart

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

Compile & Test

Clean:

To clear the cache and delete the artifacts.

npm run clean

Compile:

Compile the smart contracts with Hardhat:

npm run build

Test

Run the tests:

npm run test

Deployment to a testnet or mainnet

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published