event-contracts-base
BaseEvent
onRelaysLoaded
onRelaysLoadedChanges status to Pending
function onRelaysLoaded() virtual internalloadRelays
loadRelaysGets address of the current relayer round
function loadRelays() internal view_checkVoteReceiver
_checkVoteReceiverChecks if vote receiver is this address
function _checkVoteReceiver(address voteReceiver)Parameters:
voteReceiver
address
Address of the receiver of the vote
receiveRoundAddress
receiveRoundAddressBased on the round contract retrieves round address
function receiveRoundAddress(
address roundContract,
uint32 roundNum
) external onlyStakingParameters:
roundContract
address
The address of the round contract
roundNum
uint32
The round’s number
receiveRoundRelays
receiveRoundRelaysLoads relayers based on their keys
function receiveRoundRelays(uint[] keys) external onlyRelayRoundParameters:
keys
uint[]
Keys of the round’s relayers
EthereumBaseEvent
confirm
confirmConfirm event. Can be called only by relayer which is in charge at this round. Can be called only when event configuration is in Pending status
function confirm(address voteReceiver) public eventPendingParameters:
signature
bytes
relayer's signature of the Everscale event data
voteReceiver
address
Address of the receiver of the vote (event contract address)
Events emitted:
Confirm
reject
rejectReject event. Can be called only by relayer which is in charge at this round. Can be called only when event configuration is in Pending status.
function reject(address voteReceiver) public eventPendingParameters:
voteReceiver
address
Address of the receiver of the vote (event contract address)
Events emitted:
Reject
Last updated
Was this helpful?