Relay
Relay
This file documents a contract which is not yet deployed to Mainnet.
Data
relaySeed
Seed used as the first relay entry value. It's a G1 point G * PI = G * 31415926535897932384626433832795028841971693993751058209749445923078164062862 Where G is the generator of G1 abstract cyclic group.
RelayEntryRequested
RelayEntrySubmitted
RelayEntryTimedOut
initSeedEntry
Initializes the very first previousEntry
with an initial relaySeed
value. Can be performed only once.
requestEntry
Creates a request to generate a new relay entry, which will include a random number (by signing the previous entry's random number).
Parameters
submitEntryBeforeSoftTimeout
Creates a new relay entry. Gas-optimized version that can be called only before the soft timeout. This should be the majority of cases.
Parameters
submitEntry
Creates a new relay entry. Can be called at any time. In case the soft timeout has not been exceeded, it is more gas-efficient to call the second variation of submitEntry
.
Parameters
Return Values
_submitEntry
calculateSlashingAmount
Calculates the slashing amount for all group members.
Must be used when a soft timeout was hit.
Return Values
setTimeouts
Updates relay-related parameters
Parameters
setRelayEntrySubmissionFailureSlashingAmount
Set relayEntrySubmissionFailureSlashingAmount parameter.
Parameters
retryOnEntryTimeout
Retries the current relay request in case a relay entry timeout was reported.
Parameters
cleanupOnEntryTimeout
Cleans up the current relay request in case a relay entry timeout was reported.
isRequestInProgress
Returns whether a relay entry request is currently in progress.
Return Values
hasRequestTimedOut
Returns whether the current relay request has timed out.
Return Values
softTimeoutBlock
Calculates soft timeout block for the pending relay request.
Return Values
Last updated