client

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

Functions

func ConsumerAdditionProposalRESTHandler added in v0.2.0

func ConsumerAdditionProposalRESTHandler(clientCtx client.Context) govrest.ProposalRESTHandler

ConsumerAdditionProposalRESTHandler returns a ProposalRESTHandler that exposes the consumer addition rest handler.

func ConsumerRemovalProposalRESTHandler added in v0.2.0

func ConsumerRemovalProposalRESTHandler(clientCtx client.Context) govrest.ProposalRESTHandler

ConsumerRemovalProposalRESTHandler returns a ProposalRESTHandler that exposes the consumer removal rest handler.

func SubmitConsumerAdditionPropTxCmd added in v0.2.0

func SubmitConsumerAdditionPropTxCmd() *cobra.Command

SubmitConsumerAdditionPropTxCmd returns a CLI command handler for submitting a consumer addition proposal via a transaction.

func SubmitConsumerRemovalProposalTxCmd added in v0.2.0

func SubmitConsumerRemovalProposalTxCmd() *cobra.Command

SubmitConsumerRemovalPropTxCmd returns a CLI command handler for submitting a consumer addition proposal via a transaction.

Types

type ConsumerAdditionProposalJSON added in v0.2.0

type ConsumerAdditionProposalJSON 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 ParseConsumerAdditionProposalJSON added in v0.2.0

func ParseConsumerAdditionProposalJSON(proposalFile string) (ConsumerAdditionProposalJSON, error)

type ConsumerAdditionProposalReq added in v0.2.0

type ConsumerAdditionProposalReq 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 ConsumerRemovalProposalJSON added in v0.2.0

type ConsumerRemovalProposalJSON 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 ParseConsumerRemovalProposalJSON added in v0.2.0

func ParseConsumerRemovalProposalJSON(proposalFile string) (ConsumerRemovalProposalJSON, error)

type ConsumerRemovalProposalReq added in v0.2.0

type ConsumerRemovalProposalReq 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