19 lines
438 B
JavaScript
19 lines
438 B
JavaScript
const hre = require("hardhat");
|
|
let swap = require("../src/swap-helpers");
|
|
|
|
async function main() {
|
|
var resp = await swap.setupSwap();
|
|
|
|
console.log("JSON resp");
|
|
console.log(JSON.stringify(resp));
|
|
}
|
|
|
|
// 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);
|
|
});
|