| 1234567891011121314151617181920212223 |
- import {web3} from "hardhat";
- import fee from "../config/fee";
- import contracts from "../config/contracts";
- describe('Calc test', () => {
- it('Univ3 swap test', async () => {
- const Calc_ABI = require('../abi/Calc_ABI').default
- let calc = new web3.eth.Contract(Calc_ABI, contracts.CALC)
- // 1334059008
- await calc.methods.getQuote(contracts.WETH, 1e15, contracts.HEX, fee._30_per_10000).call().then(console.log)
- })
- it('Univ3 calc test', async () => {
- const Calc_ABI = require('../abi/Calc_ABI').default
- let calc = new web3.eth.Contract(Calc_ABI, contracts.CALC)
- await calc.methods.calc1(1375318565, fee._30_per_10000).call().then(console.log)
- await calc.methods.calc2(1375318565, fee._30_per_10000).call().then(console.log)
- })
- })
|