debondingdelegation

package
v0.10.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGetByAddressHttpHandler added in v0.7.0

func NewGetByAddressHttpHandler(db *store.Store, c *client.Client) *getByAddressHttpHandler

func NewGetByAddressUseCase added in v0.7.0

func NewGetByAddressUseCase(db *store.Store, c *client.Client) *getByAddressUseCase

func NewGetByHeightHttpHandler

func NewGetByHeightHttpHandler(db *store.Store, c *client.Client) *getByHeightHttpHandler

func NewGetByHeightUseCase

func NewGetByHeightUseCase(db *store.Store, c *client.Client) *getByHeightUseCase

Types

type GetByAddressRequest added in v0.7.0

type GetByAddressRequest struct {
	Address string `uri:"address" binding:"required"`
	Height  *int64 `form:"height" binding:"-"`
}

type ListItem added in v0.4.0

type ListItem struct {
	ValidatorUID string         `json:"validator_uid, omitempty"`
	DelegatorUID string         `json:"delegator_uid"`
	Shares       types.Quantity `json:"shares"`
	DebondEnd    uint64         `json:"debond_end"`
}

type ListView

type ListView struct {
	Items []ListItem `json:"items"`
}

func ToListView

func ToListView(rawDebondingDelegations map[string]*debondingdelegationpb.DebondingDelegationEntry) *ListView

func ToListViewForAddress added in v0.7.0

func ToListViewForAddress(rawDelegations map[string]*debondingdelegationpb.DebondingDelegationInnerEntry, delegatorAddress string) *ListView

type Request

type Request struct {
	Height *int64 `form:"height" binding:"-"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL