Skip to content

Latest commit

 

History

History
52 lines (30 loc) · 1006 Bytes

README.md

File metadata and controls

52 lines (30 loc) · 1006 Bytes

vibes-contracts

Solidity smart contracts for the VIBES project

Development

Compile and build all contracts:

npm run build

Cleanup build artifacts and dev blockchain db:

npm run clean

Testing

Currently some tests will intermittently fail because they rely on time-based view functions, if the test is running a bit slow oftentimes some of the asserts will be slightly off.

It helps to run less tests I've noticed (using .only or similar). There's likely a better way to handle this.

Some tests for older contracts from the BVAL project repos have been omitted.

Start local blockchain:

npm run blockchain:local

Run unit tests:

npm test

Verifying Contracts

The following env vars must be set (.env in this directory will be sourced if present):

Verify NFT contract on Polygonscan:

npx truffle --network polygon run verify $CONTRACT_NAME@$CONTRACT_ADDRESS