pullv2.ts 866 B

1234567891011121314151617181920212223
  1. import { web3 } from "hardhat";
  2. import History from "./interface/history";
  3. import contracts from "../config/contracts";
  4. import log4js from 'log4js'
  5. const logger = log4js.getLogger()
  6. logger.level = "debug";
  7. async function main() {
  8. // const appendRst = await History.appendOrUpdate('UNIV2DEX', '0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f', {"now": 0})
  9. // console.log(appendRst)
  10. // console.log(JSON.stringify(await History.findByHashOrBlockOrDataVague('UNIV2DEX', '', '')))
  11. // const univ2_tool_abi = require('../abi/410_V2_TOOLS.json')
  12. // const univ2_tool_410 = new web3.eth.Contract(univ2_tool_abi, contracts.TOOLS_410_V2)
  13. // const pairIdInfo = await univ2_tool_410.methods.getPairIdInfo('0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f', 0).call()
  14. // console.log(pairIdInfo)
  15. }
  16. main().catch((error) => {
  17. console.error(error);
  18. process.exitCode = 1;
  19. })