staking

package
v0.0.0-...-1ac23cf Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandlerDelegate

func HandlerDelegate(ctx *context.Context) http.HandlerFunc

func HandlerGetDelegations

func HandlerGetDelegations(ctx *context.Context) http.HandlerFunc

func HandlerGetValidator

func HandlerGetValidator(ctx *context.Context) http.HandlerFunc

func HandlerGetValidators

func HandlerGetValidators(ctx *context.Context) http.HandlerFunc

func HandlerRedelegate

func HandlerRedelegate(ctx *context.Context) http.HandlerFunc

func HandlerUndelegate

func HandlerUndelegate(ctx *context.Context) http.HandlerFunc

func RegisterRoutes

func RegisterRoutes(r *mux.Router, ctx *context.Context)

Types

type RequestDelegate

type RequestDelegate struct {
	Memo string      `json:"memo"`
	To   string      `json:"to"`
	Coin common.Coin `json:"coin"`
}

func NewRequestDelegate

func NewRequestDelegate(r *http.Request) (*RequestDelegate, error)

func (*RequestDelegate) Validate

func (r *RequestDelegate) Validate() error

type RequestRedelegate

type RequestRedelegate struct {
	Memo string      `json:"memo"`
	From string      `json:"from"`
	To   string      `json:"to"`
	Coin common.Coin `json:"coin"`
}

func NewRequestRedelegate

func NewRequestRedelegate(r *http.Request) (*RequestRedelegate, error)

func (*RequestRedelegate) Validate

func (r *RequestRedelegate) Validate() error

type RequestUnbond

type RequestUnbond struct {
	Memo string      `json:"memo"`
	From string      `json:"from"`
	Coin common.Coin `json:"coin"`
}

func NewRequestUnbond

func NewRequestUnbond(r *http.Request) (*RequestUnbond, error)

func (*RequestUnbond) Validate

func (r *RequestUnbond) Validate() error

Jump to

Keyboard shortcuts

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