event-configuration-contracts
EthereumEventConfiguration
buildEventInitData
buildEventInitData
Build initial data for the event contract by extending the event vote data with configuration params.
Parameters:
Name | Type | Description |
---|---|---|
eventVoteData | EthereumEventVoteData | Event vote data structure, passed by relayer |
signatures | bytes[] memory | Payload signatures |
deployEvent
deployEvent
Deploys the event contract (creates a new instance of EthereumBaseEvent contract).
Parameters
Name | Type | Description |
---|---|---|
eventVoteData | EthereumEventVoteData | Event vote data structure |
Events emitted:
NewEventContract
deriveEventAddress
deriveEventAddress
Derive the Ethereum event contract address from its init data.
Parameters:
Type | Description |
---|---|
address | Address to return the remaining gas |
EverscaleEventConfiguration
buildEventInitData
buildEventInitData
Extends event vote data with configuration params.
Parameters:
Name | Type | Description |
---|---|---|
eventVoteData | EverscaleEventVoteData | Event vote data structure, passed by relayer |
Return values:
Name | Type | Description |
---|---|---|
eventInitData | EverscaleEventVoteData | Initial data for event contract |
deployEvent
deployEvent
Deploy event contract (creates new instance of EverscaleBaseEvent contract).
Parameters:
Name | Type | Description |
---|---|---|
eventVoteData | EverscaleEventVoteData | Event vote data structure |
Events emitted:
NewEventContract
deriveEventAddress
deriveEventAddress
Derives the Everscale event contract address from it's initial data.
Parameters:
Name | Type | Description |
---|---|---|
eventVoteData | EverscaleEventVoteData | Event vote data structure |
Return values:
Name | Type | Description |
---|---|---|
eventContract | address | Address of the corresponding everscale event contract |
onEventConfirmedExtended
onEventConfirmedExtended
Receives "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:
Type | Description |
---|---|
address | Address to return the remaining gas |
Last updated