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.

§height: u64

The height at which the upgrade must be performed. (Time-based upgrades are not supported due to instability)

§info: String

Any application specific upgrade info to be included on-chain such as a git commit that validators could automatically upgrade to

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

Fields

§client_id: String
§header: ProtoAny

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

Fields

§contract: String

See https://github.com/confio/tgrade/blob/privileged_contracts_5/proto/confio/twasm/v1beta1/proposal.proto

§

DemotePrivilegedContract

Fields

§contract: String

See https://github.com/confio/tgrade/blob/privileged_contracts_5/proto/confio/twasm/v1beta1/proposal.proto

§

InstantiateContract

Fields

§run_as: String

the address that is passed to the contract’s environment as sender

§admin: String

Admin is an optional address that can execute migrations

§code_id: u64

the reference to the stored WASM code

§label: String

metadata to be stored with a contract instance.

§init_msg: Binary

json encoded message to be passed to the contract on instantiation

§funds: Vec<Coin>

coins that are transferred to the contract on instantiation

See https://github.com/CosmWasm/wasmd/blob/master/proto/cosmwasm/wasm/v1beta1/proposal.proto#L32-L54

§

MigrateContract

Fields

§run_as: String

the address that is passed to the contract’s environment as sender

§contract: String

the contract address to be migrated

§code_id: u64

a reference to the new WASM code that it should be migrated to

§migrate_msg: Binary

json encoded message to be passed to the new WASM code to perform the migration

See https://github.com/CosmWasm/wasmd/blob/master/proto/cosmwasm/wasm/v1beta1/proposal.proto#L56-L70

§

SetContractAdmin

Fields

§contract: String

the contract address to be updated

§new_admin: String

the account address to become admin of this contract

See https://github.com/CosmWasm/wasmd/blob/master/proto/cosmwasm/wasm/v1beta1/proposal.proto#L72-L82

§

ClearContractAdmin

Fields

§contract: String

the contract address to be cleared

See https://github.com/CosmWasm/wasmd/blob/master/proto/cosmwasm/wasm/v1beta1/proposal.proto#L84-L93

§

PinCodes

Fields

§code_ids: Vec<u64>

all code ideas that should be pinned in cache for high performance

See https://github.com/CosmWasm/wasmd/blob/master/proto/cosmwasm/wasm/v1beta1/proposal.proto#L95-L107

§

UnpinCodes

Fields

§code_ids: Vec<u64>

all code ideas that should be removed from cache to free space

See https://github.com/CosmWasm/wasmd/blob/master/proto/cosmwasm/wasm/v1beta1/proposal.proto#L109-L121

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
The name of the generated JSON Schema. Read more
Generates a JSON Schema for this type. Read more
Whether JSON Schemas generated for this type should be re-used where possible using the $ref keyword. Read more
This method tests for self and other values to be equal, and is used by ==.
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.