@fleupold/dex-contracts
Version:
Contracts for dFusion multi-token batch auction exchange
22 lines (21 loc) • 573 B
JavaScript
import { waitForNSeconds } from "../../test/utilities";
import { factory } from "../../src/logging";
const log = factory.getLogger("scripts.wait_seconds");
const argv = require("yargs")
.option("seconds", {
describe: "Number of seconds to wait",
type: "int",
demandOption: true,
})
.help(false)
.version(false).argv;
module.exports = async (callback) => {
try {
await waitForNSeconds(argv.seconds, web3);
log.info(`waited ${argv.seconds} seconds`);
callback();
}
catch (error) {
callback(error);
}
};