@q-dev/q-dex-utils

1.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @q-dev/q-dex-utils

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

29.8 kB

Total Files

9

Last publish

Collaborators

  • aostrun
  • tynuk
  • misterzett
  • tbltzk