@q-dev/q-dex

1.0.2 • Public • Published

Q-DEX

This repository contains smart contracts for DEX ecosystem on Q blockchain.

Usage

$ npm i @q-dev/q-dex

Example

pragma solidity 0.8.9;

import "@q-dev/q-dex/contracts/v2-periphery/IWQ.sol";

contract Example {
  function getWQBalance(address _addr) public view returns (uint256 _balance) {
    return IWQ(_addr).balanceOf(_addr);
  }
}

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

Weekly Downloads

1

Version

1.0.2

License

ISC

Unpacked Size

116 kB

Total Files

26

Last publish

Collaborators

  • aostrun
  • tynuk
  • misterzett
  • tbltzk