rest

package
v2.4.3 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCoinProposalRESTHandler

func RegisterCoinProposalRESTHandler(clientCtx client.Context) govrest.ProposalRESTHandler

func RegisterERC20ProposalRESTHandler

func RegisterERC20ProposalRESTHandler(clientCtx client.Context) govrest.ProposalRESTHandler

func ToggleTokenConversionRESTHandler

func ToggleTokenConversionRESTHandler(clientCtx client.Context) govrest.ProposalRESTHandler

func UpdateDenomAliasRESTHandler added in v2.2.0

func UpdateDenomAliasRESTHandler(clientCtx client.Context) govrest.ProposalRESTHandler

Types

type RegisterCoinProposalRequest

type RegisterCoinProposalRequest struct {
	BaseReq     rest.BaseReq       `json:"base_req" yaml:"base_req"`
	Title       string             `json:"title" yaml:"title"`
	Description string             `json:"description" yaml:"description"`
	Deposit     sdk.Coins          `json:"deposit" yaml:"deposit"`
	Metadata    banktypes.Metadata `json:"metadata" yaml:"metadata"`
}

RegisterCoinProposalRequest defines a request for a new register coin proposal.

type RegisterERC20ProposalRequest

type RegisterERC20ProposalRequest struct {
	BaseReq      rest.BaseReq `json:"base_req" yaml:"base_req"`
	Title        string       `json:"title" yaml:"title"`
	Description  string       `json:"description" yaml:"description"`
	Deposit      sdk.Coins    `json:"deposit" yaml:"deposit"`
	ERC20Address string       `json:"erc20_address" yaml:"erc20_address"`
}

RegisterERC20ProposalRequest defines a request for a new register ERC20 proposal.

type ToggleTokenConversionProposalRequest

type ToggleTokenConversionProposalRequest struct {
	BaseReq     rest.BaseReq `json:"base_req" yaml:"base_req"`
	Title       string       `json:"title" yaml:"title"`
	Description string       `json:"description" yaml:"description"`
	Deposit     sdk.Coins    `json:"deposit" yaml:"deposit"`
	Token       string       `json:"token" yaml:"token"`
}

ToggleTokenConversionProposalRequest defines a request for a toggle token conversion proposal.

type UpdateDenomAliasProposalRequest added in v2.2.0

type UpdateDenomAliasProposalRequest struct {
	BaseReq     rest.BaseReq `json:"base_req" yaml:"base_req"`
	Title       string       `json:"title" yaml:"title"`
	Description string       `json:"description" yaml:"description"`
	Deposit     sdk.Coins    `json:"deposit" yaml:"deposit"`
	Denom       string       `json:"denom" yaml:"denom"`
	Alias       string       `json:"alias" yaml:"alias"`
}

UpdateDenomAliasProposalRequest defines a request for a update denom alias proposal.

Jump to

Keyboard shortcuts

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