event-configuration-contracts
EthereumEventConfiguration
buildEventInitData
buildEventInitDataBuild initial data for the event contract by extending the event vote data with configuration params.
function buildEventInitData(
IEthereumEvent.EthereumEventVoteData eventVoteData
) internal view returns(
IEthereumEvent.EthereumEventInitData eventInitData)Parameters:
eventVoteData
EthereumEventVoteData
Event vote data structure, passed by relayer
signatures
bytes[] memory
Payload signatures
deployEvent
deployEventDeploys the event contract (creates a new instance of EthereumBaseEvent contract).
function deployEvent(
IEthereumEvent.EthereumEventVoteData eventVoteData
) external override reserveMinBalance(MIN_CONTRACT_BALANCE)Parameters
eventVoteData
EthereumEventVoteData
Event vote data structure
Events emitted:
NewEventContract
deriveEventAddress
deriveEventAddressDerive the Ethereum event contract address from its init data.
Parameters:
address
Address to return the remaining gas
EverscaleEventConfiguration
buildEventInitData
buildEventInitDataExtends event vote data with configuration params.
Parameters:
eventVoteData
EverscaleEventVoteData
Event vote data structure, passed by relayer
Return values:
eventInitData
EverscaleEventVoteData
Initial data for event contract
deployEvent
deployEventDeploy event contract (creates new instance of EverscaleBaseEvent contract).
Parameters:
eventVoteData
EverscaleEventVoteData
Event vote data structure
Events emitted:
NewEventContract
deriveEventAddress
deriveEventAddressDerives the Everscale event contract address from it's initial data.
Parameters:
eventVoteData
EverscaleEventVoteData
Event vote data structure
Return values:
eventContract
address
Address of the corresponding everscale event contract
onEventConfirmedExtended
onEventConfirmedExtendedReceives "confirm" callback from the event contract and checks event contract correctness. If it's correct, then sends the callback to the proxy with the same signature.
Parameters:
address
Address to return the remaining gas
Last updated
Was this helpful?