client

package
v0.1.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

ProposalHandler is the param change proposal handler.

Functions

func CreateConsumerProposalRESTHandler

func CreateConsumerProposalRESTHandler(clientCtx client.Context) govrest.ProposalRESTHandler

CreateConsumerProposalRESTHandler returns a ProposalRESTHandler that exposes the param change REST handler with a given sub-route.

func NewCreateConsumerChainProposalTxCmd

func NewCreateConsumerChainProposalTxCmd() *cobra.Command

NewCreateConsumerChainProposalTxCmd returns a CLI command handler for creating a new consumer chain proposal governance transaction.

func NewStopConsumerChainProposalTxCmd

func NewStopConsumerChainProposalTxCmd() *cobra.Command

NewStopConsumerChainProposalTxCmd returns a CLI command handler for stopping a new consumer chain proposal governance transaction.

func StopConsumerProposalRESTHandler

func StopConsumerProposalRESTHandler(clientCtx client.Context) govrest.ProposalRESTHandler

StopConsumerProposalRESTHandler returns a ProposalRESTHandler that exposes the param change REST handler with a given sub-route.

Types

type CreateConsumerChainProposalJSON

type CreateConsumerChainProposalJSON struct {
	Title         string             `json:"title"`
	Description   string             `json:"description"`
	ChainId       string             `json:"chain_id"`
	InitialHeight clienttypes.Height `json:"initial_height"`
	GenesisHash   []byte             `json:"genesis_hash"`
	BinaryHash    []byte             `json:"binary_hash"`
	SpawnTime     time.Time          `json:"spawn_time"`
	Deposit       string             `json:"deposit"`
}

func ParseCreateConsumerChainProposalJSON

func ParseCreateConsumerChainProposalJSON(proposalFile string) (CreateConsumerChainProposalJSON, error)

type CreateConsumerChainProposalReq

type CreateConsumerChainProposalReq struct {
	BaseReq  rest.BaseReq   `json:"base_req"`
	Proposer sdk.AccAddress `json:"proposer"`

	Title         string             `json:"title"`
	Description   string             `json:"description"`
	ChainId       string             `json:"chainId"`
	InitialHeight clienttypes.Height `json:"initialHeight"`
	GenesisHash   []byte             `json:"genesisHash"`
	BinaryHash    []byte             `json:"binaryHash"`
	SpawnTime     time.Time          `json:"spawnTime"`
	Deposit       sdk.Coins          `json:"deposit"`
}

type StopConsumerChainProposalJSON

type StopConsumerChainProposalJSON struct {
	Title       string    `json:"title"`
	Description string    `json:"description"`
	ChainId     string    `json:"chain_id"`
	StopTime    time.Time `json:"stop_time"`
	Deposit     string    `json:"deposit"`
}

func ParseStopConsumerChainProposalJSON

func ParseStopConsumerChainProposalJSON(proposalFile string) (StopConsumerChainProposalJSON, error)

type StopConsumerChainProposalReq

type StopConsumerChainProposalReq struct {
	BaseReq  rest.BaseReq   `json:"base_req"`
	Proposer sdk.AccAddress `json:"proposer"`

	Title       string `json:"title"`
	Description string `json:"description"`
	ChainId     string `json:"chainId"`

	StopTime time.Time `json:"stopTime"`
	Deposit  sdk.Coins `json:"deposit"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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