Skip to content

Extension points

tilttek/raffle

The package is at 0.x: its extension points are stable only from its 1.0 release. Until then, a minor version may change them, and its CHANGELOG says how.

PointWhat an application givesWhere
Contract\RaffleStoreThe storage of the raffles and their entrantsStoring
Contract\RandomnessBeaconA public randomness beacon; Drand\DrandBeacon reads dranddrand
Contract\BeaconSignatureVerifierThe verification of a round's signature, a BLS one for dranddrand
Psr\EventDispatcher\EventDispatcherInterfaceWho hears of each draw, through Event\RaffleDrawn, and of each read of the relays, through Event\BeaconRelaysReadRunning a raffle, drand
Psr\Clock\ClockInterfaceThe time of the openings, closings and draws, and the end of each read of the relaysInstallation
Random\RandomizerThe source of the organisers' seedsInstallation
Symfony\Contracts\HttpClient\HttpClientInterfaceThe client the relays are read withdrand

Every point is passed to a constructor; none of the library's services keeps state between two calls.