Enum tg_bindings::GovProposal
source · pub enum GovProposal {
Show 13 variants
Text {},
RegisterUpgrade {
name: String,
height: u64,
info: String,
},
CancelUpgrade {},
ChangeParams(Vec<ParamChange>),
IbcClientUpdate {
client_id: String,
header: ProtoAny,
},
PromoteToPrivilegedContract {
contract: String,
},
DemotePrivilegedContract {
contract: String,
},
InstantiateContract {
run_as: String,
admin: String,
code_id: u64,
label: String,
init_msg: Binary,
funds: Vec<Coin>,
},
MigrateContract {
run_as: String,
contract: String,
code_id: u64,
migrate_msg: Binary,
},
SetContractAdmin {
contract: String,
new_admin: String,
},
ClearContractAdmin {
contract: String,
},
PinCodes {
code_ids: Vec<u64>,
},
UnpinCodes {
code_ids: Vec<u64>,
},
}
Variants§
Text
Fields
Signaling proposal, the text and description field will be recorded
RegisterUpgrade
Fields
name: String
Sets the name for the upgrade. This name will be used by the upgraded version of the software to apply any special “on-upgrade” commands during the first BeginBlock method after the upgrade is applied.
Register an “live upgrade” on the x/upgrade module See https://github.com/cosmos/cosmos-sdk/blob/v0.42.3/proto/cosmos/upgrade/v1beta1/upgrade.proto#L12-L53
CancelUpgrade
Fields
There can only be one pending upgrade at a given time. This cancels the pending upgrade, if any. See https://github.com/cosmos/cosmos-sdk/blob/v0.42.3/proto/cosmos/upgrade/v1beta1/upgrade.proto#L57-L62
ChangeParams(Vec<ParamChange>)
Defines a proposal to change one or more parameters. See https://github.com/cosmos/cosmos-sdk/blob/v0.42.3/proto/cosmos/params/v1beta1/params.proto#L9-L27
IbcClientUpdate
Updates the matching client to set a new trusted header. This can be used by governance to restore a client that has timed out or forked or otherwise broken. See https://github.com/cosmos/cosmos-sdk/blob/v0.42.3/proto/ibc/core/client/v1/client.proto#L36-L49
PromoteToPrivilegedContract
See https://github.com/confio/tgrade/blob/privileged_contracts_5/proto/confio/twasm/v1beta1/proposal.proto
DemotePrivilegedContract
See https://github.com/confio/tgrade/blob/privileged_contracts_5/proto/confio/twasm/v1beta1/proposal.proto
InstantiateContract
Fields
See https://github.com/CosmWasm/wasmd/blob/master/proto/cosmwasm/wasm/v1beta1/proposal.proto#L32-L54
MigrateContract
Fields
See https://github.com/CosmWasm/wasmd/blob/master/proto/cosmwasm/wasm/v1beta1/proposal.proto#L56-L70
SetContractAdmin
Fields
See https://github.com/CosmWasm/wasmd/blob/master/proto/cosmwasm/wasm/v1beta1/proposal.proto#L72-L82
ClearContractAdmin
See https://github.com/CosmWasm/wasmd/blob/master/proto/cosmwasm/wasm/v1beta1/proposal.proto#L84-L93
PinCodes
See https://github.com/CosmWasm/wasmd/blob/master/proto/cosmwasm/wasm/v1beta1/proposal.proto#L95-L107
UnpinCodes
See https://github.com/CosmWasm/wasmd/blob/master/proto/cosmwasm/wasm/v1beta1/proposal.proto#L109-L121
Trait Implementations§
source§impl Clone for GovProposal
impl Clone for GovProposal
source§fn clone(&self) -> GovProposal
fn clone(&self) -> GovProposal
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GovProposal
impl Debug for GovProposal
source§impl<'de> Deserialize<'de> for GovProposal
impl<'de> Deserialize<'de> for GovProposal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl JsonSchema for GovProposal
impl JsonSchema for GovProposal
source§fn schema_name() -> String
fn schema_name() -> String
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read moresource§impl PartialEq<GovProposal> for GovProposal
impl PartialEq<GovProposal> for GovProposal
source§fn eq(&self, other: &GovProposal) -> bool
fn eq(&self, other: &GovProposal) -> bool
self
and other
values to be equal, and is used
by ==
.