Comment on page
BeaconTimelockTrigger
The BeaconTimelockTrigger smart contract passes the information about the current draw to the prizeDistributionFactory for the creation of a prizeDistribution.
Allows to initialize the contract during the deployment.
Parameters:
Name | Type | Description |
---|---|---|
_owner | address | An account that will become a new owner of a contract. |
_prizeDistributionFactory | address | PrizeDistributionFactory address. |
_timelock | address | DrawCalculatorTimelock address. |
Locks next Draw, logs the
totalNetworkTicketSupply
to PrizeDistributionFactory and triggers the prize distribution push. Restricts new draws for N seconds by forcing time lock on the next target draw ID.Parameters:
Name | Type | Description |
---|---|---|
_draw | IDrawBeacon.Draw | Draw including values like: drawId, timestamp, beaconPeriodStartedAt, beaconPeriodSeconds, paid. |
_totalNetworkTicketSupply | uint256 | Total network ticket supply calculated off chain. |
Transfers ownership of the contract to a
_pendingOwner
. Can only be called by the current owner.Parameters:
Name | Type | Description |
---|---|---|
_newOwner | address | An account that will become the _pendingOwner . |
Allows the
pendingOwner
address to claim the owner role. This function is only callable by the pendingOwner
.Leaves the contract without owner. It will not be possible to call the owner's functions anymore. Can only be called by the current owner. The method does not take any parameters. Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.
Allows the owner to give the manager role to an address. The manager role has access to the functions with the modified
onlyManager
or onlyManagerOrOwner
.Parameters:
Name | Type | Description |
---|---|---|
_newManager | address | An account that will become the new manager. |
Address of the PrizeDistributionFactory contract.
Address of the DrawCalculatorTimelock contract.
Wwner role that can be granted exclusive access to specific functions with the modifier
onlyOwner
.Manager role that can be granted exclusive access to specific functions with the modifier
onlyManager
or onlyManagerOrOwner
.The address that can claim the owner role. It is used to transfer the owner.
Last modified 6mo ago