https://github.com/jbx-protocol/juice-721-staking-delegate
Project just meant for staking.
https://github.com/jbx-protocol/juice-721-staking-delegate
Last synced: about 2 months ago
JSON representation
Project just meant for staking.
- Host: GitHub
- URL: https://github.com/jbx-protocol/juice-721-staking-delegate
- Owner: jbx-protocol
- Created: 2023-04-19T19:16:36.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-16T18:04:12.000Z (about 3 years ago)
- Last Synced: 2025-01-09T09:26:22.962Z (over 1 year ago)
- Language: Solidity
- Size: 1.15 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# juice-contract-template
Template used to code juicy solidity stuff - includes forge, libs, etc
Install dependencies (forge tests, Juice-contracts-V3, OZ) via `forge install && yarn install`
Use this template as a starting point, do not push straight on main, rather create a new branch and open a PR - your reviewer will love you for this.
# Usage
use `yarn test` to run tests
use `yarn test:fork` to run tests in CI mode (including slower mainnet fork tests)
use `yarn size` to check contract size
use `yarn doc` to generate natspec docs
use `yarn lint` to lint the code
use `yarn tree` to generate a Solidity dependency tree
use `yarn deploy:mainnet` and `yarn deploy:goerli` to deploy and verify (see .env.example for required env vars, using a ledger by default).
## Code coverage
Run `yarn coverage`to display code coverage summary and generate an LCOV report
To display code coverage in VSCode:
- You need to install the [coverage gutters extension (Ryan Luker)](https://marketplace.visualstudio.com/items?itemName=ryanluker.vscode-coverage-gutters) or any other extension handling LCOV reports
- ctrl shift p > "Coverage Gutters: Display Coverage" (coverage are the colored markdown lines in the left gutter, after the line numbers)
## PR
Github CI flow will run both unit and forked tests, log the contracts size (with the tests) and check linting compliance.