- Read our White Paper to see how the general idea works
You should have already installed the following things beforehand:
-
Truffle
npm i -g truffle
- Once you have completed all the steps from the Prerequisite, go ahead and install the rest of the dependencies.
npm install
- This will install all the other dependencies listed on
package.json
To generate types
the following scripts can be used.
// For generating the types.
npm run generate-types
// For compiling and generating the types.
npm run postinstall
- To compile and test the contract, the following scripts can be used.
// For compiling the contracts.
truffle compile
// For testing the contracts.
truffle test
// For compiling the contracts.
forge build
// For testing all the contracts.
forge test
// For testing a specific contract.
forge test --match-contract `name of test contract`
// For testing a specific func.
forge test --match-test `name of test func`