IStaking1155
thirdweb
Methods
claimRewards
Claim accumulated rewards.
Parameters
tokenId
uint256
Staked token Id.
getStakeInfo
View amount staked and total rewards for a user.
Parameters
staker
address
Address for which to calculated rewards.
Returns
_tokensStaked
uint256[]
undefined
_tokenAmounts
uint256[]
undefined
_totalRewards
uint256
undefined
getStakeInfoForToken
View amount staked and total rewards for a user.
Parameters
tokenId
uint256
Staked token Id.
staker
address
Address for which to calculated rewards.
Returns
_tokensStaked
uint256
undefined
_rewards
uint256
undefined
stake
Stake ERC721 Tokens.
Parameters
tokenId
uint256
ERC1155 token-id to stake.
amount
uint256
Amount to stake.
withdraw
Withdraw staked tokens.
Parameters
tokenId
uint256
ERC1155 token-id to withdraw.
amount
uint256
Amount to withdraw.
Events
RewardsClaimed
Emitted when a staker claims staking rewards.
Parameters
staker indexed
address
undefined
rewardAmount
uint256
undefined
TokensStaked
Emitted when tokens are staked.
Parameters
staker indexed
address
undefined
tokenId indexed
uint256
undefined
amount
uint256
undefined
TokensWithdrawn
Emitted when a set of staked token-ids are withdrawn.
Parameters
staker indexed
address
undefined
tokenId indexed
uint256
undefined
amount
uint256
undefined
UpdatedDefaultRewardsPerUnitTime
Emitted when contract admin updates rewardsPerUnitTime.
Parameters
oldRewardsPerUnitTime
uint256
undefined
newRewardsPerUnitTime
uint256
undefined
UpdatedDefaultTimeUnit
Emitted when contract admin updates timeUnit.
Parameters
oldTimeUnit
uint256
undefined
newTimeUnit
uint256
undefined
UpdatedRewardsPerUnitTime
Emitted when contract admin updates rewardsPerUnitTime.
Parameters
_tokenId indexed
uint256
undefined
oldRewardsPerUnitTime
uint256
undefined
newRewardsPerUnitTime
uint256
undefined
UpdatedTimeUnit
Emitted when contract admin updates timeUnit.
Parameters
_tokenId indexed
uint256
undefined
oldTimeUnit
uint256
undefined
newTimeUnit
uint256
undefined
Last updated