[][src]Module sunshine_util::traits

Traits

AccessGenesis
Apply

Defines how Votes are applied to the VoteState

ApplyVote

Applies vote in the context of the existing module instance

Approved

Defines conditions for vote passage (for VoteState)

BurnableSignal

Define the rate at which signal is burned to unreserve shares in an organization

ChangeBankBalances
ChangeGroupMembership

All changes to the organizational membership are infallible

CheckVoteStatus

For the module to check the status of the vote in the context of the existing module instance

ConsistentThresholdStructure

Checks that the ThresholdConfig that impls this method has both fields with the same ThresholdType variant

DepositWithdrawalOps
DeriveThresholdRequirement

Derives the threshold requirement from turnout (for ThresholdConfig)

EmpowerWithVeto
GenerateUniqueID

For the module to implement for its id type (typically a common double_map prefix key)

GetCurrentVoteIdentifiers
GetDepositsByAccountForBank
GetFlatShareGroup
GetFullVetoContext
GetGroupSize
GetMagnitude
GetPetitionStatus
GetTotalShareIssuance
GetVoteOutcome

Retrieves the outcome of a vote associated with the vote identifier vote_id

GetWeightedShareGroupShape
GroupMembership

Checks that the AccountId is a member of a share group in an organization

IDIsAvailable

For the module to implement for its id type (typically a common double_map prefix key)

LockableProfile

Lock shares for an individual AccountId

ManageVoteSchedule

Manages live vote schedules

MintableSignal

Define the rate at which signal is minted for shares in an organization

OffChainBank
OnChainBank
OnChainWithdrawalFilters
OpenPetition
OpenShareGroupVote

Open a new vote for the organization, share_id and a custom threshold requirement

OrganizationDNS
PollActiveProposal

Checks the progress of a scheduled vote sequence and pushes the schedule along

RegisterOffChainBankAccount
RegisterOnChainBankAccount
RegisterShareGroup
Rejected
RequestChanges
ReservableProfile

Reserve shares for an individual AccountId

Revert

Defines how previous Vote to the VoteState applications are reverted

ScheduleVoteSequence

Default uses the default vote schedule configured in VoteBuilder to dispatch a VoteSchedule

SetDefaultShareApprovalOrder

Set the default order of share groups for which approval will be required

SetDefaultShareIdThreshold

Set the default passage, turnout thresholds for each share group

ShareBank

Issuance logic for existing shares (not new shares)

SignPetition
SubSupervisorKeyManagement
SudoKeyManagement
SupervisorKeyManagement
SupportedOrganizationShapes
UpdatePetition
UpdatePetitionTerms
VerifyShape

Checks that the total field is correct by summing all assigned share quantities

Vetoed
VoteOnProposal

For module to update vote state

VoteScheduleBuilder

Helper methods to define a default VoteSchedule using the default threshold setter and default share approval order setter

VoteVector
WeightedShareGroup