@ardier16/q-js-sdk
Version:
Typescript Library to interact with Q System Contracts
249 lines • 4.03 kB
JSON
[
{
"inputs": [],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"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": false,
"internalType": "uint256",
"name": "_auctionId",
"type": "uint256"
},
{
"indexed": true,
"internalType": "address",
"name": "_bidder",
"type": "address"
},
{
"components": [
{
"internalType": "bool",
"name": "isExecuted",
"type": "bool"
},
{
"internalType": "address",
"name": "bidder",
"type": "address"
},
{
"internalType": "uint256",
"name": "highestBid",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "lot",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "endTime",
"type": "uint256"
}
],
"indexed": false,
"internalType": "struct SystemSurplusAuction.AuctionInfo",
"name": "_info",
"type": "tuple"
}
],
"name": "Executed",
"type": "event"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "auctions",
"outputs": [
{
"internalType": "bool",
"name": "isExecuted",
"type": "bool"
},
{
"internalType": "address",
"name": "bidder",
"type": "address"
},
{
"internalType": "uint256",
"name": "highestBid",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "lot",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "endTime",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "auctionsCount",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_registry",
"type": "address"
},
{
"internalType": "string",
"name": "_stc",
"type": "string"
}
],
"name": "initialize",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "startAuction",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_auctionId",
"type": "uint256"
}
],
"name": "bid",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_auctionId",
"type": "uint256"
}
],
"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"
}
]