0.1.26 • Published 9 months ago
@majora-finance/fees v0.1.26
Majora Protocol Fees
Description
Majora Protocol Fees is a Hardhat-based project that implements fee management for the Majora protocol. This project demonstrates the use of smart contracts for handling protocol fees in a decentralized finance (DeFi) environment.
Features
- Smart contract implementation for fee management
- Integration with Hardhat for development and testing
- Comprehensive test suite
- Gas optimization
- Upgradeable contracts using OpenZeppelin
Installation
To set up the project locally, follow these steps:
Clone the repository:
git clone https://github.com/majora-finance/fees.git
Navigate to the project directory:
cd fees
Install dependencies:
npm install
Usage
Here are some common commands you can use:
Compile contracts:
npx hardhat compile
Run tests:
npx hardhat test
Deploy contracts:
npx hardhat run scripts/deploy.ts
Generate documentation:
npx hardhat docgen
Development
This project uses Hardhat as the development environment. You can find the Hardhat configuration in the hardhat.config.ts
file.
Testing
We use Hardhat's built-in testing framework. Run the tests using:
npx hardhat test
Code Coverage
To generate a code coverage report, run:
npx hardhat coverage