Bridge
verifySignedEverscaleEvent
verifySignedEverscaleEvent
Verifying signatures from EverscaleEvent (is there enough signatures, is the round rotten, etc.)
Parameters:
payload
bytes memory
EverscaleEvent structure encoded to bytes
signatures
bytes[] memory
Payload signatures
Return value:
errorCode
uint32
Error code
recoverSignature
recoverSignature
Recover signer from the payload and signature.
Parameters:
payload
bytes memory
Signer encoded to bytes
signature
bytes memory
Signature in bytes
Return value:
signer
address
Decoded signature’s address
forceRoundRelays
forceRoundRelays
Forced set of next round relayers. Can be called only by roundSubmitter
.
Parameters:
_relays
uint160[] calldata
Next round relayers
roundEnd
uint32
End of the round
setRoundSubmitter
setRoundSubmitter
Set round submitter. Can be called only by owner.
Parameters:
_roundSubmitter
address
New round submitter’s address
Events emitted:
UpdateRoundSubmitter
setRoundRelays
setRoundRelays
Grant relayer permission for set of addresses at specific round.
Parameters:
payload
bytes calldata
EverscaleEvent structure encoded to bytes
signatures
bytes[] calldata
Signatures encoded to bytes
decodeRoundRelaysEventData
decodeRoundRelaysEventData
Decodes payload event data for round relayers.
Parameters:
payload
bytes memory
Round relayers event data (EverscaleEvent) encoded to bytes
Return value:
round
uint32
Round id
_relays
uint160[] memory
Addresses of the relayers
roundEnd
uint32
End of round
decodeEverscaleEvent
decodeEverscaleEvent
Decodes payload data for everscale event.
Parameters:
payload
bytes memory
EverscaleEvent structure encoded to bytes
banRelays
banRelays
Puts specified relayer addresses on a blacklist.
Parameters:
_relays
address[] calldata
Addresses of the relayers
Events emitted:
BanRelay
unbanRelays
unbanRelays
Takes out specified relayer addresses from a blacklist.
Parameters:
_relays
address[] calldata
Addresses of the relayers
Events emitted:
BanRelay
_setRound
_setRound
Creates a new round and makes a map including all rounds and relayers.
Parameters:
round
uint32
Round Id
_relays
uint160[] memory
Addresses of relayers
roundEnd
uint32
End of the round
Events emitted:
NewRound
RoundRelay
_countRelaySignatures
_countRelaySignatures
Counts all the valid relayers signatures.
Parameters:
payload
bytes memory
EverscaleEvent data encoded to bytes
signatures
bytes[] memory
List of signatures
round
uint32
Round Id
Return value:
uint32
Number of relayers signatures
Last updated