UNPKG

@gnosis.pm/dex-contracts

Version:

Contracts for dFusion multi-token batch auction exchange

17 lines (16 loc) 543 B
import { closeAuction } from "../../test/utilities"; import { factory } from "../../src/logging"; const log = factory.getLogger("scripts.close_auction"); // Note that this script only works in local blockchains module.exports = async (callback) => { try { const BatchExchange = artifacts.require("BatchExchange"); const instance = await BatchExchange.deployed(); await closeAuction(instance, web3); log.info("Auction closed"); callback(); } catch (error) { callback(error); } };