pub struct MsgStoreAndInstantiateContract {
pub authority: String,
pub wasm_byte_code: Vec<u8>,
pub instantiate_permission: Option<AccessConfig>,
pub unpin_code: bool,
pub admin: String,
pub label: String,
pub msg: Vec<u8>,
pub funds: Vec<Coin>,
pub source: String,
pub builder: String,
pub code_hash: Vec<u8>,
}
Expand description
MsgStoreAndInstantiateContract is the MsgStoreAndInstantiateContract request type.
Since: 0.40
Fields§
Authority is the address of the governance account.
wasm_byte_code: Vec<u8>
WASMByteCode can be raw or gzip compressed
instantiate_permission: Option<AccessConfig>
InstantiatePermission to apply on contract creation, optional
unpin_code: bool
UnpinCode code on upload, optional. As default the uploaded contract is pinned to cache.
admin: String
Admin is an optional address that can execute migrations
label: String
Label is optional metadata to be stored with a constract instance.
msg: Vec<u8>
Msg json encoded message to be passed to the contract on instantiation
funds: Vec<Coin>
Funds coins that are transferred from the authority account to the contract on instantiation
source: String
Source is the URL where the code is hosted
builder: String
Builder is the docker image used to build the code deterministically, used for smart contract verification
code_hash: Vec<u8>
CodeHash is the SHA256 sum of the code outputted by builder, used for smart contract verification
Implementations§
Trait Implementations§
Source§impl Clone for MsgStoreAndInstantiateContract
impl Clone for MsgStoreAndInstantiateContract
Source§fn clone(&self) -> MsgStoreAndInstantiateContract
fn clone(&self) -> MsgStoreAndInstantiateContract
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl<'de> Deserialize<'de> for MsgStoreAndInstantiateContract
impl<'de> Deserialize<'de> for MsgStoreAndInstantiateContract
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 From<MsgStoreAndInstantiateContract> for Binary
impl From<MsgStoreAndInstantiateContract> for Binary
Source§fn from(msg: MsgStoreAndInstantiateContract) -> Self
fn from(msg: MsgStoreAndInstantiateContract) -> Self
Source§impl<T> From<MsgStoreAndInstantiateContract> for CosmosMsg<T>
impl<T> From<MsgStoreAndInstantiateContract> for CosmosMsg<T>
Source§fn from(msg: MsgStoreAndInstantiateContract) -> Self
fn from(msg: MsgStoreAndInstantiateContract) -> Self
Source§impl JsonSchema for MsgStoreAndInstantiateContract
impl JsonSchema for MsgStoreAndInstantiateContract
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read moreSource§impl Message for MsgStoreAndInstantiateContract
impl Message for MsgStoreAndInstantiateContract
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.Source§impl PartialEq for MsgStoreAndInstantiateContract
impl PartialEq for MsgStoreAndInstantiateContract
Source§fn eq(&self, other: &MsgStoreAndInstantiateContract) -> bool
fn eq(&self, other: &MsgStoreAndInstantiateContract) -> bool
self
and other
values to be equal, and is used by ==
.