UNPKG

@q-dev/q-js-sdk

Version:

Typescript Library to interact with Q System Contracts

284 lines 7.22 kB
"use strict"; /* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ Object.defineProperty(exports, "__esModule", { value: true }); exports.SystemDebtAuction__factory = void 0; const ethers_1 = require("ethers"); const _abi = [ { inputs: [], stateMutability: "nonpayable", type: "constructor", }, { anonymous: false, inputs: [ { indexed: true, internalType: "uint256", name: "_auctionId", type: "uint256", }, { indexed: true, internalType: "address", name: "_bidder", type: "address", }, { indexed: false, internalType: "uint256", name: "_bid", type: "uint256", }, ], name: "AuctionStarted", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "uint256", name: "_auctionId", type: "uint256", }, { indexed: true, internalType: "address", name: "_bidder", type: "address", }, { indexed: false, internalType: "uint256", name: "_bid", type: "uint256", }, ], name: "Bid", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "uint256", name: "_auctionId", type: "uint256", }, { indexed: true, internalType: "address", name: "_bidder", type: "address", }, { components: [ { internalType: "enum SystemDebtAuction.AuctionStatus", name: "status", type: "uint8", }, { internalType: "address", name: "bidder", type: "address", }, { internalType: "uint256", name: "highestBid", type: "uint256", }, { internalType: "uint256", name: "endTime", type: "uint256", }, { internalType: "uint256", name: "reserveLot", type: "uint256", }, ], indexed: false, internalType: "struct SystemDebtAuction.AuctionInfo", name: "_info", type: "tuple", }, ], name: "Executed", type: "event", }, { inputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], name: "auctions", outputs: [ { internalType: "enum SystemDebtAuction.AuctionStatus", name: "status", type: "uint8", }, { internalType: "address", name: "bidder", type: "address", }, { internalType: "uint256", name: "highestBid", type: "uint256", }, { internalType: "uint256", name: "endTime", type: "uint256", }, { internalType: "uint256", name: "reserveLot", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "currentAuctionId", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { stateMutability: "payable", type: "receive", }, { inputs: [ { internalType: "address", name: "_registry", type: "address", }, { internalType: "string", name: "_stc", type: "string", }, ], name: "initialize", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint256", name: "_bid", type: "uint256", }, ], name: "startAuction", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint256", name: "_bid", type: "uint256", }, ], name: "bid", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "execute", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint256", name: "_auctionId", type: "uint256", }, ], name: "getRaisingBid", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "hasActiveAuction", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "view", type: "function", }, ]; class SystemDebtAuction__factory { static createInterface() { return new ethers_1.utils.Interface(_abi); } static connect(address, signerOrProvider) { return new ethers_1.Contract(address, _abi, signerOrProvider); } } exports.SystemDebtAuction__factory = SystemDebtAuction__factory; SystemDebtAuction__factory.abi = _abi; //# sourceMappingURL=SystemDebtAuction__factory.js.map