Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct { Router *mux.Router DB *shared.Database IpfsClient *shared.IpfsClient FlowAdapter *shared.FlowAdapter TxOptionsAddresses []string Env string AdminAllowlist shared.Allowlist CommunityBlocklist shared.Allowlist Config shared.Config }
func (*App) Initialize ¶
func (a *App) Initialize()
type CommunityUser ¶
type CommunityUser models.CommunityUser
type CommunityUserPayload ¶
type CommunityUserPayload models.CommunityUserPayload
type IpfsClient ¶
type IpfsClient shared.IpfsClient
type ListRequest ¶
type ListRequest models.ListPayload
type ListUpdatePayload ¶
type ListUpdatePayload models.ListUpdatePayload
type Strategy ¶
type Strategy interface { TallyVotes(votes []*models.VoteWithBalance, p *models.ProposalResults, proposal *models.Proposal) (models.ProposalResults, error) GetVotes(votes []*models.VoteWithBalance, proposal *models.Proposal) ([]*models.VoteWithBalance, error) GetVoteWeightForBalance(vote *models.VoteWithBalance, proposal *models.Proposal) (float64, error) InitStrategy(f *shared.FlowAdapter, db *shared.Database) FetchBalance(b *models.Balance, p *models.Proposal) (*models.Balance, error) RequiresSnapshot() bool }
type TxOptionsAddresses ¶
type TxOptionsAddresses []string
type UserCommunity ¶
type UserCommunity models.UserCommunity
Click to show internal directories.
Click to hide internal directories.