[][src]Module sunshine_util::traits

Traits

AccessGenesis
AccessProfile
Apply

Defines how Votes are applied to the VoteState

ApplyVote

Applies vote in the context of the existing module instance

ApproveGrant
ApproveWithoutTransfer
Approved

Defines conditions for vote passage (for VoteState)

BankDepositsAndSpends
BankReservations
BankSpends
BankStorageInfo
BurnableSignal

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

ChainSudoPermissions
ChangeGroupMembership

All changes to the organizational membership are infallible

CheckBankBalances
CheckVoteStatus

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

CommitAndTransfer
CommitSpendReservation
ConsistentThresholdStructure

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

CreateBounty
DepositIntoBank
DepositSpendOps
DeriveThresholdRequirement

Derives the threshold requirement from turnout (for ThresholdConfig)

FlatShareWrapper
FoundationParts
FreeToReserved
GenerateUniqueID
GetBalance
GetCurrentVoteIdentifiers
GetFlatShareGroup
GetGroupSize
GetInnerOuterShareGroups
GetMagnitude
GetVoteOutcome

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

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

MoveFundsOutCommittedOnly
MoveFundsOutUnCommittedOnly
OffChainBank
OnChainBank
OpenPetition
OpenShareGroupVote

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

OrgChecks
OrganizationDNS
OrganizationSupervisorPermissions
OwnershipProportionCalculations
PollActiveProposal

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

RegisterBankAccount
RegisterFoundation
RegisterOffChainBankAccount
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

SeededGenerateUniqueID
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

SetMakeTransfer
ShareBank

Issuance logic for existing shares (not new shares)

ShareGroupChecks
SignPetition
SpendApprovedGrant
StartReview
StartTeamConsentPetition
SubGroupSupervisorPermissions
SubSubGroupSupervisorPermissions
SubmitGrantApplication
SubmitMilestone
SuperviseGrantApplication
SupervisorPermissions
SupportedOrganizationShapes
TermSheetExit
TermSheetIssuance
ThresholdVote
UpdateOutcome
UpdatePetition
UpdatePetitionTerms
UseTermsOfAgreement
VerifyShape

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

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
WeightedShareIssuanceWrapper
WeightedShareWrapper