Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 931 Bytes

contracts.md

File metadata and controls

25 lines (16 loc) · 931 Bytes

Smart Contracts Management

Pre-requisites

Make sure foundry is updated: https://book.getfoundry.sh/getting-started/installation

You can install the lastest version with curl -L https://foundry.paradigm.xyz | bash

Helpful commands:

  • format: npm run lint:contracts:fix (update .sol files to adhere to styling rules)
  • install: forge install install Solidity dependencies
  • test: forge test (optionally add -v through -vvvv for failure message verbosity)

Unlock Hooks

This Smart Contract is used to manage the Unlock hooks for the Cabin app. See the Unlock Protocol documentation here for more information. You can run.

Mock Cabin Token Contract

This Smart Contract is used to mock the Cabin Token contract. It is used for testing purposes only.