@q-dev/q-dex-utils
v1.0.1
Published
Q-DEX Utilities
Downloads
1
Readme
Q-Dex Utils
This repository contains smart contracts for maintaining DEX ecosystem on Q blockchain.
Usage
$ npm i @q-dev/q-dex-utils
Example
pragma solidity 0.8.9;
import "@q-dev/q-dex-utils/contracts/RevenuePool.sol";
contract Example {
address revenuePool = 0xc3E589056Ece16BCB88c6f9318e9a7343b663522;
function getFlatFee() public view returns (uint256 _flatFee) {
return RevenuePool(revenuePool).flatFee();
}
}
Prepare
Install package dependencies
npm install
Compile smart contracts
npx hardhat compile
Deploy
npx hardhat run scripts/deploy.ts --network <network_name>
Run tests
npx hardhat test