Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DelegateProfileRequest ¶
type DelegateProfileRequest struct { Dao string Address string Strategy json.RawMessage }
type DelegateProfileResponse ¶
type DelegateProfileResponse struct { BlockNumber int64 `json:"blockNumber"` ChainID int64 `json:"chainId"` Address string `json:"address"` VotingPower float64 `json:"votingPower"` IncomingPower float64 `json:"incomingPower"` OutgoingPower float64 `json:"outgoingPower"` PercentOfVotingPower float64 `json:"percentOfVotingPower"` PercentOfDelegators float64 `json:"percentOfDelegators"` Delegators []string `json:"delegators"` Delegates []string `json:"delegates"` DelegateTree []DelegateTreeItem `json:"delegateTree"` DelegatorTree []DelegatorTreeItem `json:"delegatorTree"` }
type DelegateTreeItem ¶
type DelegatorTreeItem ¶
type Pagination ¶ added in v0.6.2
type SDK ¶
type SDK struct {
// contains filtered or unexported fields
}
func (*SDK) GetDelegateProfile ¶
func (s *SDK) GetDelegateProfile(ctx context.Context, req DelegateProfileRequest) (DelegateProfileResponse, error)
func (*SDK) GetTopDelegates ¶
func (s *SDK) GetTopDelegates(ctx context.Context, req TopDelegatesRequest) (TopDelegatesResponse, error)
type TopDelegatesRequest ¶
type TopDelegatesResponse ¶
type TopDelegatesResponse struct { BlockNumber int64 `json:"blockNumber"` ChainID int64 `json:"chainId"` Delegates []Delegate `json:"delegates"` Pagination Pagination `json:"pagination"` }
Click to show internal directories.
Click to hide internal directories.