pullv2.ts 808 B

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