19 lines
438 B
JavaScript
Raw Permalink Normal View History

2021-01-29 13:26:28 +08:00
const hre = require("hardhat");
2021-02-09 11:49:46 +08:00
let swap = require("../src/swap-helpers");
2021-01-29 13:26:28 +08:00
async function main() {
2021-02-08 21:59:19 +08:00
var resp = await swap.setupSwap();
console.log("JSON resp");
console.log(JSON.stringify(resp));
2021-01-29 13:26:28 +08:00
}
// We recommend this pattern to be able to use async/await everywhere
// and properly handle errors.
main()
.then(() => process.exit(0))
.catch(error => {
console.error(error);
process.exit(1);
});