UNPKG

@thirdweb-dev/contracts-js

Version:
185 lines • 3.57 kB
[ { "type": "function", "name": "claimRewards", "inputs": [], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "getStakeInfo", "inputs": [ { "name": "staker", "type": "address", "internalType": "address" } ], "outputs": [ { "name": "_tokensStaked", "type": "uint256", "internalType": "uint256" }, { "name": "_rewards", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "stake", "inputs": [ { "name": "amount", "type": "uint256", "internalType": "uint256" } ], "outputs": [], "stateMutability": "payable" }, { "type": "function", "name": "withdraw", "inputs": [ { "name": "amount", "type": "uint256", "internalType": "uint256" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "event", "name": "RewardsClaimed", "inputs": [ { "name": "staker", "type": "address", "indexed": true, "internalType": "address" }, { "name": "rewardAmount", "type": "uint256", "indexed": false, "internalType": "uint256" } ], "anonymous": false }, { "type": "event", "name": "TokensStaked", "inputs": [ { "name": "staker", "type": "address", "indexed": true, "internalType": "address" }, { "name": "amount", "type": "uint256", "indexed": false, "internalType": "uint256" } ], "anonymous": false }, { "type": "event", "name": "TokensWithdrawn", "inputs": [ { "name": "staker", "type": "address", "indexed": true, "internalType": "address" }, { "name": "amount", "type": "uint256", "indexed": false, "internalType": "uint256" } ], "anonymous": false }, { "type": "event", "name": "UpdatedMinStakeAmount", "inputs": [ { "name": "oldAmount", "type": "uint256", "indexed": false, "internalType": "uint256" }, { "name": "newAmount", "type": "uint256", "indexed": false, "internalType": "uint256" } ], "anonymous": false }, { "type": "event", "name": "UpdatedRewardRatio", "inputs": [ { "name": "oldNumerator", "type": "uint256", "indexed": false, "internalType": "uint256" }, { "name": "newNumerator", "type": "uint256", "indexed": false, "internalType": "uint256" }, { "name": "oldDenominator", "type": "uint256", "indexed": false, "internalType": "uint256" }, { "name": "newDenominator", "type": "uint256", "indexed": false, "internalType": "uint256" } ], "anonymous": false }, { "type": "event", "name": "UpdatedTimeUnit", "inputs": [ { "name": "oldTimeUnit", "type": "uint256", "indexed": false, "internalType": "uint256" }, { "name": "newTimeUnit", "type": "uint256", "indexed": false, "internalType": "uint256" } ], "anonymous": false } ]