RelayRound
hasUnclaimedReward
hasUnclaimedReward
Checks if user has unclaimed rewards.
Parameters:
Name | Type | Description |
---|---|---|
_relay_staker_addr | address | Address of staker |
Return value:
Name | Type | Description |
---|---|---|
has_reward | bool | True if it has unclaimed rewards, false if not |
getRewardForRound
getRewardForRound
Calculates reward for certain round and sends it to user.
Parameters:
Name | Type | Description |
---|---|---|
_relay_staker_addr | address | Staker address |
Return value:
Name | Type | Description |
---|---|---|
_ton_key | uint256 | Ton account’s public key |
_eth_addr | uint160 | Ethereum account’s address |
_staker_addr | address | Staker address |
_staked_tokens | uint128 | Amount of tokens staked |
sendRelaysToRelayRound
sendRelaysToRelayRound
Sets relayers to the specific round.
Parameters:
Name | Type | Description |
---|---|---|
relay_round_addr | address | Address of relayer round |
count | uint32 | Number of relayers to send to relayer round |
_checkRelaysInstalled
_checkRelaysInstalled
Checks whether there are enough relayers installed.
destroy
destroy
Destroy round if ended.
onCodeUpgrade
onCodeUpgrade
Sets relayer round data based on the upgraded data.
Parameters:
Name | Type | Description |
---|---|---|
upgrade_data | TvmCell | Upgraded election data in cell format |
count | uint32 | Number of relayers to send to relayer round |
upgrade
upgrade
Upgrades relayer round data and code.
Parameters:
Name | Type | Description |
---|---|---|
code | TvmCell | relayer round’s platform code |
new_version | uint32 | New version of relayer round’s platform |
send_gas_to | address | Address where to send remaining gas |
Events emitted:
RelayRoundCodeUpgraded
Last updated