@q-dev/q-dex
v1.0.2
Published
Q-DEX Smart Contracts
Downloads
2
Readme
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