Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
marshall2112 committed Dec 1, 2024
1 parent dd0edc8 commit da4dccd
Show file tree
Hide file tree
Showing 144 changed files with 29,530 additions and 2,659 deletions.
343 changes: 343 additions & 0 deletions apps/dapp/abi/contracts/templegold/AuctionBase.sol/AuctionBase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,343 @@
{
"_format": "hh-sol-artifact-1",
"contractName": "AuctionBase",
"sourceName": "contracts/templegold/AuctionBase.sol",
"abi": [
{
"inputs": [],
"name": "AlreadyClaimed",
"type": "error"
},
{
"inputs": [],
"name": "AlreadyRecovered",
"type": "error"
},
{
"inputs": [],
"name": "AuctionActive",
"type": "error"
},
{
"inputs": [],
"name": "AuctionEnded",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "epochId",
"type": "uint256"
}
],
"name": "CannotClaim",
"type": "error"
},
{
"inputs": [],
"name": "CannotDeposit",
"type": "error"
},
{
"inputs": [],
"name": "CannotStartAuction",
"type": "error"
},
{
"inputs": [],
"name": "InvalidEpoch",
"type": "error"
},
{
"inputs": [],
"name": "InvalidOperation",
"type": "error"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "epochId",
"type": "uint256"
},
{
"indexed": true,
"internalType": "address",
"name": "starter",
"type": "address"
},
{
"indexed": false,
"internalType": "uint128",
"name": "startTime",
"type": "uint128"
},
{
"indexed": false,
"internalType": "uint128",
"name": "endTime",
"type": "uint128"
},
{
"indexed": false,
"internalType": "uint256",
"name": "auctionTokenAmount",
"type": "uint256"
}
],
"name": "AuctionStarted",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "user",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "epochId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "bidTokenAmount",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "auctionTokenAmount",
"type": "uint256"
}
],
"name": "Claim",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "depositor",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "epochId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "Deposit",
"type": "event"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "bid",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "depositor",
"type": "address"
},
{
"internalType": "uint256",
"name": "epochId",
"type": "uint256"
}
],
"name": "claimed",
"outputs": [
{
"internalType": "bool",
"name": "claimed",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "depositor",
"type": "address"
},
{
"internalType": "uint256",
"name": "epochId",
"type": "uint256"
}
],
"name": "claimedAmount",
"outputs": [
{
"internalType": "uint256",
"name": "claimedAmount",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "currentEpoch",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "depositor",
"type": "address"
},
{
"internalType": "uint256",
"name": "epochId",
"type": "uint256"
}
],
"name": "depositors",
"outputs": [
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "epochId",
"type": "uint256"
}
],
"name": "epochsWithoutBidsRecovered",
"outputs": [
{
"internalType": "bool",
"name": "recovered",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "epochId",
"type": "uint256"
}
],
"name": "getEpochInfo",
"outputs": [
{
"components": [
{
"internalType": "uint128",
"name": "startTime",
"type": "uint128"
},
{
"internalType": "uint128",
"name": "endTime",
"type": "uint128"
},
{
"internalType": "uint256",
"name": "totalBidTokenAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "totalAuctionTokenAmount",
"type": "uint256"
}
],
"internalType": "struct IAuctionBase.EpochInfo",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "token",
"type": "address"
},
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "recoverToken",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "startAuction",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"bytecode": "0x",
"deployedBytecode": "0x",
"linkReferences": {},
"deployedLinkReferences": {}
}
Loading

0 comments on commit da4dccd

Please sign in to comment.