Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DelegateProfile ¶
type DelegateProfile struct { Address string `json:"address"` VotingPower float64 `json:"voting_power"` IncomingPower float64 `json:"incoming_power"` OutgoingPower float64 `json:"outgoing_power"` PercentOfVotingPower float64 `json:"percent_of_voting_power"` PercentOfDelegators float64 `json:"percent_of_delegators"` Delegates []ProfileDelegateItem `json:"delegates"` Expiration *time.Time `json:"expiration"` }
type DelegatesWrapper ¶ added in v0.6.2
type GetDelegateProfileParams ¶
type GetDelegateProfileParams struct { Dao string Strategy json.RawMessage Address string }
type GetDelegatesParams ¶
type GrpcServer ¶
type GrpcServer struct { delegatepb.UnimplementedDelegateServer // contains filtered or unexported fields }
func NewGrpcServer ¶
func NewGrpcServer(s *Service) *GrpcServer
func (*GrpcServer) GetDelegateProfile ¶
func (g *GrpcServer) GetDelegateProfile(ctx context.Context, req *delegatepb.GetDelegateProfileRequest) (*delegatepb.GetDelegateProfileResponse, error)
func (*GrpcServer) GetDelegates ¶
func (g *GrpcServer) GetDelegates(ctx context.Context, req *delegatepb.GetDelegatesRequest) (*delegatepb.GetDelegatesResponse, error)
type ProfileDelegateItem ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) GetDelegateProfile ¶
func (s *Service) GetDelegateProfile(ctx context.Context, req GetDelegateProfileParams) (DelegateProfile, error)
func (*Service) GetDelegates ¶
func (s *Service) GetDelegates(ctx context.Context, req GetDelegatesParams) (DelegatesWrapper, error)
Click to show internal directories.
Click to hide internal directories.