Skip to content

Manifest-Holdings/library-contract

Repository files navigation

Solidity Project Template

Providing a project with a template for the files, folder structure, dependencies, scripting, configuration (local & remote) and development standards used in a Windranger Soldity project with TypeScript tests.


Development Process

Development follows these processes outlined in development process


Install, build and run

Start by cloning the git repo locally.

Install

To retrieve the project dependencies and before any further tasks will run correctly.

npm ci

Husky Git Commit Hooks

To enable Husky commit hooks to trigger the lint-staged behaviour of formatting and linting the staged files prior before committing, prepare your repo with prepare.

npm run prepare

Build and Test

npm run build
npm test

If you make changes that don't get picked up then add a clean into the process

npm run clean
npm run build
npm test

Deploy to Rinkeby

npx hardhat run scripts/deploy-library.ts --network rinkeby
npx hardhat verify --network rinkeby DEPLOYED_CONTRACT_ADDRESS  "Constructor argument 1" "Constructor argument 1"

If you make changes that don't get picked up then add a clean into the process

npm run clean
npm run build
npm test


## Tools

Setup and run instructions:

- [Hardhat](./docs/tools/hardhat.md)
- [PlantUML](./docs/tools/plantuml.md); UML diagram generation from code.
- [Slither](./docs/tools/slither.md); Trail of Bits Solidity static analyzer.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published