rest

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RestClientID   = "client-id"
	RestRootHeight = "height"
)

REST client flags

Variables

This section is empty.

Functions

func RegisterRoutes

func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router, queryRoute string)

RegisterRoutes - Central function to define routes that get registered by the main application

Types

type CreateClientReq

type CreateClientReq struct {
	BaseReq         rest.BaseReq      `json:"base_req" yaml:"base_req"`
	ClientID        string            `json:"client_id" yaml:"client_id"`
	ChainID         string            `json:"chain_id" yaml:"chain_id"`
	Header          ibctmtypes.Header `json:"header" yaml:"header"`
	TrustLevel      tmmath.Fraction   `json:"trust_level" yaml:"trust_level"`
	TrustingPeriod  time.Duration     `json:"trusting_period" yaml:"trusting_period"`
	UnbondingPeriod time.Duration     `json:"unbonding_period" yaml:"unbonding_period"`
	MaxClockDrift   time.Duration     `json:"max_clock_drift" yaml:"max_clock_drift"`
}

CreateClientReq defines the properties of a create client request's body.

type SubmitMisbehaviourReq

type SubmitMisbehaviourReq struct {
	BaseReq  rest.BaseReq              `json:"base_req" yaml:"base_req"`
	Evidence evidenceexported.Evidence `json:"evidence" yaml:"evidence"`
}

SubmitMisbehaviourReq defines the properties of a submit misbehaviour request's body.

type UpdateClientReq

type UpdateClientReq struct {
	BaseReq rest.BaseReq      `json:"base_req" yaml:"base_req"`
	Header  ibctmtypes.Header `json:"header" yaml:"header"`
}

UpdateClientReq defines the properties of a update client request's body.

Jump to

Keyboard shortcuts

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