UNPKG

@ardier16/q-js-sdk

Version:

Typescript Library to interact with Q System Contracts

266 lines 4.35 kB
[ { "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" } ]