harb/subgraph/harb/abis/Stake.json
2024-03-21 21:33:41 +01:00

209 lines
5.6 KiB
JSON

[
{
"inputs": [
{ "internalType": "address", "name": "_tokenContract", "type": "address" }
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [
{ "internalType": "address", "name": "receiver", "type": "address" },
{ "internalType": "uint256", "name": "stakeWanted", "type": "uint256" },
{ "internalType": "uint256", "name": "availableStake", "type": "uint256" }
],
"name": "ExceededAvailableStake",
"type": "error"
},
{
"inputs": [
{ "internalType": "address", "name": "requester", "type": "address" },
{ "internalType": "address", "name": "owner", "type": "address" }
],
"name": "NoPermission",
"type": "error"
},
{ "inputs": [], "name": "PositionNotFound", "type": "error" },
{
"inputs": [
{ "internalType": "address", "name": "receiver", "type": "address" },
{ "internalType": "uint256", "name": "assets", "type": "uint256" },
{ "internalType": "uint256", "name": "sharesWanted", "type": "uint256" },
{ "internalType": "uint256", "name": "minStake", "type": "uint256" }
],
"name": "SharesTooLow",
"type": "error"
},
{
"inputs": [
{ "internalType": "address", "name": "receiver", "type": "address" },
{ "internalType": "uint64", "name": "taxRateWanted", "type": "uint64" },
{ "internalType": "uint64", "name": "taxRateMet", "type": "uint64" },
{ "internalType": "uint256", "name": "positionId", "type": "uint256" }
],
"name": "TaxTooLow",
"type": "error"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "positionId",
"type": "uint256"
},
{
"indexed": true,
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "share",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint32",
"name": "creationTime",
"type": "uint32"
},
{
"indexed": false,
"internalType": "uint32",
"name": "taxRate",
"type": "uint32"
}
],
"name": "PositionCreated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "positionId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "share",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint32",
"name": "lastTaxTime",
"type": "uint32"
}
],
"name": "PositionRemoved",
"type": "event"
},
{
"inputs": [],
"name": "dormantSupply",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{ "internalType": "uint256", "name": "positionId", "type": "uint256" }
],
"name": "exitPosition",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "minStake",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "nextPositionId",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "outstandingStake",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{ "internalType": "uint256", "name": "positionID", "type": "uint256" }
],
"name": "payTax",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"name": "positions",
"outputs": [
{ "internalType": "uint256", "name": "share", "type": "uint256" },
{ "internalType": "address", "name": "owner", "type": "address" },
{ "internalType": "uint32", "name": "creationTime", "type": "uint32" },
{ "internalType": "uint32", "name": "lastTaxTime", "type": "uint32" },
{ "internalType": "uint32", "name": "taxRate", "type": "uint32" }
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{ "internalType": "uint256", "name": "assets", "type": "uint256" },
{ "internalType": "address", "name": "receiver", "type": "address" },
{ "internalType": "uint32", "name": "taxRate", "type": "uint32" },
{
"internalType": "uint256[]",
"name": "positionsToSnatch",
"type": "uint256[]"
}
],
"name": "snatch",
"outputs": [
{ "internalType": "uint256", "name": "positionId", "type": "uint256" }
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{ "internalType": "uint256", "name": "positionID", "type": "uint256" },
{
"internalType": "uint256",
"name": "taxFloorDuration",
"type": "uint256"
}
],
"name": "taxDue",
"outputs": [
{ "internalType": "uint256", "name": "amountDue", "type": "uint256" }
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "totalSupply",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"stateMutability": "view",
"type": "function"
}
]