@mantleio/contracts
Version:
[Mantle] L1 and L2 smart contracts for Mantle
244 lines (243 loc) • 5.23 kB
JSON
{
"_format": "hh-sol-artifact-1",
"contractName": "ITssRewardContract",
"sourceName": "contracts/L2/predeploys/iTssRewardContract.sol",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "Claim",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "lastBatchTime",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "batchTime",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"indexed": false,
"internalType": "address[]",
"name": "tssMembers",
"type": "address[]"
}
],
"name": "DistributeTssReward",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "blockStartHeight",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint32",
"name": "length",
"type": "uint32"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"indexed": false,
"internalType": "address[]",
"name": "tssMembers",
"type": "address[]"
}
],
"name": "DistributeTssRewardByBlock",
"type": "event"
},
{
"inputs": [],
"name": "claim",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_blockStartHeight",
"type": "uint256"
},
{
"internalType": "uint32",
"name": "_length",
"type": "uint32"
},
{
"internalType": "uint256",
"name": "_batchTime",
"type": "uint256"
},
{
"internalType": "address[]",
"name": "_tssMembers",
"type": "address[]"
}
],
"name": "claimReward",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "queryClaimTime",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "queryReward",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "requestClaim",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_staker",
"type": "address"
},
{
"internalType": "address",
"name": "_claimer",
"type": "address"
}
],
"name": "setClaimer",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "sccAddr",
"type": "address"
}
],
"name": "setSccAddr",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "setSendAmountPerYear",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "ssAddr",
"type": "address"
}
],
"name": "setStakeSlashAddr",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "setWaitingTime",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "withdraw",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"bytecode": "0x",
"deployedBytecode": "0x",
"linkReferences": {},
"deployedLinkReferences": {}
}