import { web3 } from "hardhat"; import History from "./interface/history"; import contracts from "../config/contracts"; import log4js from 'log4js' const logger = log4js.getLogger() logger.level = "debug"; async function main() { // const appendRst = await History.appendOrUpdate('UNIV2DEX', '0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f', {"now": 0}) // console.log(appendRst) // console.log(JSON.stringify(await History.findByHashOrBlockOrDataVague('UNIV2DEX', '', ''))) // const univ2_tool_abi = require('../abi/410_V2_TOOLS.json') // const univ2_tool_410 = new web3.eth.Contract(univ2_tool_abi, contracts.TOOLS_410_V2) // const pairIdInfo = await univ2_tool_410.methods.getPairIdInfo('0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f', 0).call() // console.log(pairIdInfo) } main().catch((error) => { console.error(error); process.exitCode = 1; })