rest

package
v0.46.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActivateContractProposalHandler added in v0.46.0

func ActivateContractProposalHandler(cliCtx client.Context) govrest.ProposalRESTHandler

func ClearContractAdminProposalHandler

func ClearContractAdminProposalHandler(cliCtx client.Context) govrest.ProposalRESTHandler

func DeactivateContractProposalHandler added in v0.46.0

func DeactivateContractProposalHandler(cliCtx client.Context) govrest.ProposalRESTHandler

func ExecuteProposalHandler added in v0.46.0

func ExecuteProposalHandler(cliCtx client.Context) govrest.ProposalRESTHandler

func InstantiateProposalHandler

func InstantiateProposalHandler(cliCtx client.Context) govrest.ProposalRESTHandler

func MigrateProposalHandler

func MigrateProposalHandler(cliCtx client.Context) govrest.ProposalRESTHandler

func PinCodeProposalHandler added in v0.46.0

func PinCodeProposalHandler(cliCtx client.Context) govrest.ProposalRESTHandler

func RegisterRoutes

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

RegisterRoutes registers staking-related REST handlers to a router

func StoreCodeProposalHandler

func StoreCodeProposalHandler(cliCtx client.Context) govrest.ProposalRESTHandler

func SudoProposalHandler added in v0.46.0

func SudoProposalHandler(cliCtx client.Context) govrest.ProposalRESTHandler

func UnpinCodeProposalHandler added in v0.46.0

func UnpinCodeProposalHandler(cliCtx client.Context) govrest.ProposalRESTHandler

func UpdateContractAdminProposalHandler

func UpdateContractAdminProposalHandler(cliCtx client.Context) govrest.ProposalRESTHandler

func UpdateInstantiateConfigProposalHandler added in v0.46.0

func UpdateInstantiateConfigProposalHandler(cliCtx client.Context) govrest.ProposalRESTHandler

Types

type ClearAdminJSONReq

type ClearAdminJSONReq struct {
	BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"`

	Title       string `json:"title" yaml:"title"`
	Description string `json:"description" yaml:"description"`

	Proposer string    `json:"proposer" yaml:"proposer"`
	Deposit  sdk.Coins `json:"deposit" yaml:"deposit"`

	Contract string `json:"contract" yaml:"contract"`
}

func (ClearAdminJSONReq) Content

func (s ClearAdminJSONReq) Content() govtypes.Content

func (ClearAdminJSONReq) GetBaseReq

func (s ClearAdminJSONReq) GetBaseReq() rest.BaseReq

func (ClearAdminJSONReq) GetDeposit

func (s ClearAdminJSONReq) GetDeposit() sdk.Coins

func (ClearAdminJSONReq) GetProposer

func (s ClearAdminJSONReq) GetProposer() string

type ExecuteProposalJSONReq added in v0.46.0

type ExecuteProposalJSONReq struct {
	BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"`

	Title       string `json:"title" yaml:"title"`
	Description string `json:"description" yaml:"description"`

	Proposer string    `json:"proposer" yaml:"proposer"`
	Deposit  sdk.Coins `json:"deposit" yaml:"deposit"`

	Contract string          `json:"contract" yaml:"contract"`
	Msg      json.RawMessage `json:"msg" yaml:"msg"`
	// RunAs is the role that is passed to the contract's environment
	RunAs string    `json:"run_as" yaml:"run_as"`
	Funds sdk.Coins `json:"funds" yaml:"funds"`
}

func (ExecuteProposalJSONReq) Content added in v0.46.0

func (ExecuteProposalJSONReq) GetBaseReq added in v0.46.0

func (s ExecuteProposalJSONReq) GetBaseReq() rest.BaseReq

func (ExecuteProposalJSONReq) GetDeposit added in v0.46.0

func (s ExecuteProposalJSONReq) GetDeposit() sdk.Coins

func (ExecuteProposalJSONReq) GetProposer added in v0.46.0

func (s ExecuteProposalJSONReq) GetProposer() string

type InactiveContractProposalJSONReq added in v0.46.0

type InactiveContractProposalJSONReq struct {
	BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"`

	Title       string    `json:"title" yaml:"title"`
	Description string    `json:"description" yaml:"description"`
	Proposer    string    `json:"proposer" yaml:"proposer"`
	Deposit     sdk.Coins `json:"deposit" yaml:"deposit"`

	Contract string `json:"contract" yaml:"contract"`
}

func (InactiveContractProposalJSONReq) Content added in v0.46.0

func (InactiveContractProposalJSONReq) GetBaseReq added in v0.46.0

func (InactiveContractProposalJSONReq) GetDeposit added in v0.46.0

func (s InactiveContractProposalJSONReq) GetDeposit() sdk.Coins

func (InactiveContractProposalJSONReq) GetProposer added in v0.46.0

func (s InactiveContractProposalJSONReq) GetProposer() string

type InstantiateProposalJSONReq

type InstantiateProposalJSONReq struct {
	BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"`

	Title       string `json:"title" yaml:"title"`
	Description string `json:"description" yaml:"description"`

	Proposer string    `json:"proposer" yaml:"proposer"`
	Deposit  sdk.Coins `json:"deposit" yaml:"deposit"`

	RunAs string `json:"run_as" yaml:"run_as"`
	// Admin is an optional address that can execute migrations
	Admin string          `json:"admin,omitempty" yaml:"admin"`
	Code  uint64          `json:"code_id" yaml:"code_id"`
	Label string          `json:"label" yaml:"label"`
	Msg   json.RawMessage `json:"msg" yaml:"msg"`
	Funds sdk.Coins       `json:"funds" yaml:"funds"`
}

func (InstantiateProposalJSONReq) Content

func (InstantiateProposalJSONReq) GetBaseReq

func (s InstantiateProposalJSONReq) GetBaseReq() rest.BaseReq

func (InstantiateProposalJSONReq) GetDeposit

func (s InstantiateProposalJSONReq) GetDeposit() sdk.Coins

func (InstantiateProposalJSONReq) GetProposer

func (s InstantiateProposalJSONReq) GetProposer() string

type MigrateProposalJSONReq

type MigrateProposalJSONReq struct {
	BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"`

	Title       string `json:"title" yaml:"title"`
	Description string `json:"description" yaml:"description"`

	Proposer string    `json:"proposer" yaml:"proposer"`
	Deposit  sdk.Coins `json:"deposit" yaml:"deposit"`

	Contract string          `json:"contract" yaml:"contract"`
	Code     uint64          `json:"code_id" yaml:"code_id"`
	Msg      json.RawMessage `json:"msg" yaml:"msg"`
}

func (MigrateProposalJSONReq) Content

func (MigrateProposalJSONReq) GetBaseReq

func (s MigrateProposalJSONReq) GetBaseReq() rest.BaseReq

func (MigrateProposalJSONReq) GetDeposit

func (s MigrateProposalJSONReq) GetDeposit() sdk.Coins

func (MigrateProposalJSONReq) GetProposer

func (s MigrateProposalJSONReq) GetProposer() string

type PinCodeJSONReq added in v0.46.0

type PinCodeJSONReq struct {
	BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"`

	Title       string `json:"title" yaml:"title"`
	Description string `json:"description" yaml:"description"`

	Proposer string    `json:"proposer" yaml:"proposer"`
	Deposit  sdk.Coins `json:"deposit" yaml:"deposit"`

	CodeIDs []uint64 `json:"code_ids" yaml:"code_ids"`
}

func (PinCodeJSONReq) Content added in v0.46.0

func (s PinCodeJSONReq) Content() govtypes.Content

func (PinCodeJSONReq) GetBaseReq added in v0.46.0

func (s PinCodeJSONReq) GetBaseReq() rest.BaseReq

func (PinCodeJSONReq) GetDeposit added in v0.46.0

func (s PinCodeJSONReq) GetDeposit() sdk.Coins

func (PinCodeJSONReq) GetProposer added in v0.46.0

func (s PinCodeJSONReq) GetProposer() string

type StoreCodeProposalJSONReq

type StoreCodeProposalJSONReq struct {
	BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"`

	Title       string    `json:"title" yaml:"title"`
	Description string    `json:"description" yaml:"description"`
	Proposer    string    `json:"proposer" yaml:"proposer"`
	Deposit     sdk.Coins `json:"deposit" yaml:"deposit"`

	RunAs string `json:"run_as" yaml:"run_as"`
	// WASMByteCode can be raw or gzip compressed
	WASMByteCode []byte `json:"wasm_byte_code" yaml:"wasm_byte_code"`
	// InstantiatePermission to apply on contract creation, optional
	InstantiatePermission *types.AccessConfig `json:"instantiate_permission" yaml:"instantiate_permission"`
}

func (StoreCodeProposalJSONReq) Content

func (StoreCodeProposalJSONReq) GetBaseReq

func (s StoreCodeProposalJSONReq) GetBaseReq() rest.BaseReq

func (StoreCodeProposalJSONReq) GetDeposit

func (s StoreCodeProposalJSONReq) GetDeposit() sdk.Coins

func (StoreCodeProposalJSONReq) GetProposer

func (s StoreCodeProposalJSONReq) GetProposer() string

type SudoProposalJSONReq added in v0.46.0

type SudoProposalJSONReq struct {
	BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"`

	Title       string `json:"title" yaml:"title"`
	Description string `json:"description" yaml:"description"`

	Proposer string    `json:"proposer" yaml:"proposer"`
	Deposit  sdk.Coins `json:"deposit" yaml:"deposit"`

	Contract string          `json:"contract" yaml:"contract"`
	Msg      json.RawMessage `json:"msg" yaml:"msg"`
}

func (SudoProposalJSONReq) Content added in v0.46.0

func (s SudoProposalJSONReq) Content() govtypes.Content

func (SudoProposalJSONReq) GetBaseReq added in v0.46.0

func (s SudoProposalJSONReq) GetBaseReq() rest.BaseReq

func (SudoProposalJSONReq) GetDeposit added in v0.46.0

func (s SudoProposalJSONReq) GetDeposit() sdk.Coins

func (SudoProposalJSONReq) GetProposer added in v0.46.0

func (s SudoProposalJSONReq) GetProposer() string

type UnpinCodeJSONReq added in v0.46.0

type UnpinCodeJSONReq struct {
	BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"`

	Title       string `json:"title" yaml:"title"`
	Description string `json:"description" yaml:"description"`

	Proposer string    `json:"proposer" yaml:"proposer"`
	Deposit  sdk.Coins `json:"deposit" yaml:"deposit"`

	CodeIDs []uint64 `json:"code_ids" yaml:"code_ids"`
}

func (UnpinCodeJSONReq) Content added in v0.46.0

func (s UnpinCodeJSONReq) Content() govtypes.Content

func (UnpinCodeJSONReq) GetBaseReq added in v0.46.0

func (s UnpinCodeJSONReq) GetBaseReq() rest.BaseReq

func (UnpinCodeJSONReq) GetDeposit added in v0.46.0

func (s UnpinCodeJSONReq) GetDeposit() sdk.Coins

func (UnpinCodeJSONReq) GetProposer added in v0.46.0

func (s UnpinCodeJSONReq) GetProposer() string

type UpdateAdminJSONReq

type UpdateAdminJSONReq struct {
	BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"`

	Title       string `json:"title" yaml:"title"`
	Description string `json:"description" yaml:"description"`

	Proposer string    `json:"proposer" yaml:"proposer"`
	Deposit  sdk.Coins `json:"deposit" yaml:"deposit"`

	NewAdmin string `json:"new_admin" yaml:"new_admin"`
	Contract string `json:"contract" yaml:"contract"`
}

func (UpdateAdminJSONReq) Content

func (s UpdateAdminJSONReq) Content() govtypes.Content

func (UpdateAdminJSONReq) GetBaseReq

func (s UpdateAdminJSONReq) GetBaseReq() rest.BaseReq

func (UpdateAdminJSONReq) GetDeposit

func (s UpdateAdminJSONReq) GetDeposit() sdk.Coins

func (UpdateAdminJSONReq) GetProposer

func (s UpdateAdminJSONReq) GetProposer() string

type UpdateInstantiateConfigProposalJSONReq added in v0.46.0

type UpdateInstantiateConfigProposalJSONReq struct {
	BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"`

	Title               string                     `json:"title" yaml:"title"`
	Description         string                     `json:"description" yaml:"description"`
	Proposer            string                     `json:"proposer" yaml:"proposer"`
	Deposit             sdk.Coins                  `json:"deposit" yaml:"deposit"`
	AccessConfigUpdates []types.AccessConfigUpdate `json:"access_config_updates" yaml:"access_config_updates"`
}

func (UpdateInstantiateConfigProposalJSONReq) Content added in v0.46.0

func (UpdateInstantiateConfigProposalJSONReq) GetBaseReq added in v0.46.0

func (UpdateInstantiateConfigProposalJSONReq) GetDeposit added in v0.46.0

func (UpdateInstantiateConfigProposalJSONReq) GetProposer added in v0.46.0

Jump to

Keyboard shortcuts

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