Setup
Developer Setup
The stack is a simple one:
- Solidity
- JavaScript
- Node/NPM
- HardHat
- Waffle
- Ethers
Install Node (also installs NPM)
- Use the latest LTS (long term support) version.
Install required Node modules
All NPM resources are project local. No global installs required.
cd path/to/boson-protocol-contracts
npm install
Configure Environment
- Copy
.env.exampleto.envand edit to suit. - API keys are only needed for deploying to public networks.
.envis included in.gitignoreand will not be committed to the repo.
Local Development
If you are only perusing the repo, generating documentation, or running tests, the above setup is fine.
However if you are building a dapp or scripting against the protocol, you'll want to get set up for local development, running a node process, etc.