ChancellorSenateControl
Extension to handle comunication with the Senate Contract
The ChancellorSenateControl extension is the one that allows communication with the Senate contract to fetch senate settings (proposalThreshold, votingDelay and VotingPeriod) and the senator (holder) data (votingPower, member status, senator status).
One-trip external call
Since all data is on the Senate Contract, including the Settings in case the SenateSettings extension is been used, the contract that uses the Chancellor pattern must implements a getSettings function.
The ChancellorSenateControl extension is the one that will implement this function for you, but you can easily override it and do your thing.
Although the getSettings function brings all information, the ChancellorSenateControl extension also implements functions to call each info separately.
Last updated