rest

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNewValidatorKey

func CreateNewValidatorKey(cliCtx context.Context) http.HandlerFunc

func CreateValidatorRequest

func CreateValidatorRequest(cliCtx context.Context, writer http.ResponseWriter, request *http.Request)

func DelegateTX

func DelegateTX(cliCtx context.Context, writer http.ResponseWriter, request *http.Request)

func EditValidatorTX

func EditValidatorTX(cliCtx context.Context, writer http.ResponseWriter, request *http.Request)

func GetNodeInfo added in v1.5.23

func GetNodeInfo(cliCtx context.Context) http.HandlerFunc

func RedelegateTX

func RedelegateTX(cliCtx context.Context, writer http.ResponseWriter, request *http.Request)

func RegisterQueryRoutes

func RegisterQueryRoutes(cliCtx context.Context, r *mux.Router)

func RegisterRestNodeRoutes

func RegisterRestNodeRoutes(cliCtx context.Context, r *mux.Router)

func RegisterRestTxRoutes

func RegisterRestTxRoutes(cliCtx context.Context, r *mux.Router)

func RegisterRoutes

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

func UndelegateTX

func UndelegateTX(cliCtx context.Context, writer http.ResponseWriter, request *http.Request)

Types

type KeyValue

type KeyValue struct {
	Type  string `json:"type"`
	Value string `json:"value"`
}

type NodeInfo added in v1.5.23

type NodeInfo struct {
	Address string      `json:"address"`
	PubKey  PubKeyInfo  `json:"pub_key"`
	PriKey  PrivKeyInfo `json:"pri_key"`
}

type PrivKeyInfo added in v1.5.23

type PrivKeyInfo struct {
	Type  string            `json:"type"`
	Value crypto.PrivateKey `json:"value"`
}

type PubKeyInfo added in v1.5.23

type PubKeyInfo struct {
	Type  string           `json:"type"`
	Value crypto.PublicKey `json:"value"`
}

type Validator

type Validator struct {
	Address string   `json:"address"`
	PubKey  KeyValue `json:"pub_key"`
	PriKey  KeyValue `json:"pri_key"`
}

Jump to

Keyboard shortcuts

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