Documentation
¶
Index ¶
- type CalculatedDelegatesInProfile
- type DAO
- type DaoList
- type DaoListRequest
- type Delegate
- type DelegateInProfile
- type DelegateProfile
- type DelegateWithDao
- type DelegatesWrapper
- type Delegation
- type DelegationType
- type GetDelegatesRequest
- type ListTop
- type PrepareSplitDelegationRequest
- type PreparedDelegate
- type PreparedSplitDelegation
- type ShortDAO
- type SubscriptionInfo
- type SuccessDelegationRequest
- type Top
- type UserDelegationInfo
- type Voting
- type VotingPowerInProfile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CalculatedDelegatesInProfile ¶
type CalculatedDelegatesInProfile struct { Delegates []DelegateInProfile `json:"delegates"` ExpirationDate *time.Time `json:"expiration_date,omitempty"` VotingPower float64 `json:"power"` FromCache bool `json:"from_cache"` }
type DAO ¶
type DAO struct { ID uuid.UUID `json:"id"` Alias string `json:"alias"` CreatedAt common.Time `json:"created_at"` UpdatedAt common.Time `json:"updated_at"` Name string `json:"name"` About []common.Content `json:"about"` Avatar *string `json:"avatar"` // deprecated, use avatars instead Avatars common.UserAvatars `json:"avatars"` Terms *string `json:"terms"` Location *string `json:"location"` Website *string `json:"website"` Twitter *string `json:"twitter"` Github *string `json:"github"` Coingecko *string `json:"coingecko"` Email *string `json:"email"` Symbol string `json:"symbol"` Domain *string `json:"domain"` Network common.Network `json:"network"` Strategies []common.Strategy `json:"-"` Voting Voting `json:"-"` Categories []common.Category `json:"categories"` Treasures []common.Treasury `json:"treasures"` Admins []common.User `json:"admins"` FollowersCount int `json:"followers_count"` VotersCount int `json:"voters_count"` ProposalsCount int `json:"proposals_count"` Guidelines *string `json:"-"` Template *string `json:"-"` ParentID *string `json:"parent_id,omitempty"` ActivitySince *common.Time `json:"activity_since,omitempty"` SubscriptionInfo *SubscriptionInfo `json:"subscription_info"` ActiveVotes int `json:"active_votes"` ActiveProposalsIDs []string `json:"active_proposals_ids"` Verified bool `json:"verified"` PopularityIndex float64 `json:"popularity_index"` Delegation *Delegation `json:"delegation,omitempty"` }
type DaoListRequest ¶
type Delegate ¶
type Delegate struct { User common.User `json:"user"` DelegatorCount int32 `json:"delegator_count"` PercentOfDelegators float64 `json:"percent_of_delegators"` VotingPower VotingPowerInProfile `json:"voting_power"` PercentOfVotingPower float64 `json:"percent_of_voting_power"` VotesCount int32 `json:"votes_count"` CreatedProposalsCount int32 `json:"created_proposals_count"` About string `json:"about"` Statement string `json:"statement"` UserDelegationInfo UserDelegationInfo `json:"user_delegation_info"` Muted bool `json:"muted"` }
type DelegateInProfile ¶
type DelegateProfile ¶
type DelegateProfile struct { Dao ShortDAO `json:"dao"` VotingPower VotingPowerInProfile `json:"voting_power"` Chains map[string]chain.Info `json:"chains"` Delegates []DelegateInProfile `json:"delegates"` ExpirationDate *time.Time `json:"expiration_date,omitempty"` }
type DelegateWithDao ¶
type DelegatesWrapper ¶
type Delegation ¶
type Delegation struct {
Type DelegationType `json:"type"`
}
type DelegationType ¶
type DelegationType string
const (
SplitDelegationType DelegationType = "split-delegation"
)
type GetDelegatesRequest ¶
type PrepareSplitDelegationRequest ¶
type PrepareSplitDelegationRequest struct { ChainID chain.ChainID `json:"chain_id"` Delegates []PreparedDelegate `json:"delegates"` Expiration time.Time `json:"expiration_date"` }
type PreparedDelegate ¶
type PreparedSplitDelegation ¶
type ShortDAO ¶
type ShortDAO struct { ID uuid.UUID `json:"id"` Alias string `json:"alias"` CreatedAt common.Time `json:"created_at"` UpdatedAt common.Time `json:"updated_at"` Name string `json:"name"` Avatar *string `json:"avatar"` // deprecated, use avatars instead Avatars common.UserAvatars `json:"avatars"` Terms *string `json:"terms"` Symbol string `json:"symbol"` Network common.Network `json:"network"` Categories []common.Category `json:"categories"` FollowersCount int `json:"followers_count"` VotersCount int `json:"voters_count"` ProposalsCount int `json:"proposals_count"` SubscriptionInfo *SubscriptionInfo `json:"subscription_info"` ActiveVotes int `json:"active_votes"` Verified bool `json:"verified"` ActiveProposalsUnvoted int `json:"active_proposals_unvoted"` }
func NewShortDAO ¶
type SubscriptionInfo ¶
type UserDelegationInfo ¶
type UserDelegationInfo struct {
PercentOfDelegated float64 `json:"percent_of_delegated"`
}
type VotingPowerInProfile ¶
Click to show internal directories.
Click to hide internal directories.