Interface StoreAndInstantiateContractProposal

StoreAndInstantiateContractProposal gov proposal content type to store and instantiate the contract.

interface StoreAndInstantiateContractProposal {
    $typeUrl?: "/cosmwasm.wasm.v1.StoreAndInstantiateContractProposal";
    admin: string;
    builder: string;
    codeHash: Uint8Array;
    description: string;
    funds: Coin[];
    instantiatePermission?: AccessConfig;
    label: string;
    msg: Uint8Array;
    runAs: string;
    source: string;
    title: string;
    unpinCode: boolean;
    wasmByteCode: Uint8Array;
}

Properties

$typeUrl?: "/cosmwasm.wasm.v1.StoreAndInstantiateContractProposal"
admin: string

Admin is an optional address that can execute migrations

builder: string

Builder is the docker image used to build the code deterministically, used for smart contract verification

codeHash: Uint8Array

CodeHash is the SHA256 sum of the code outputted by builder, used for smart contract verification

description: string

Description is a human readable text

funds: Coin[]

Funds coins that are transferred to the contract on instantiation

instantiatePermission?: AccessConfig

InstantiatePermission to apply on contract creation, optional

label: string

Label is optional metadata to be stored with a constract instance.

msg: Uint8Array

Msg json encoded message to be passed to the contract on instantiation

runAs: string

RunAs is the address that is passed to the contract's environment as sender

source: string

Source is the URL where the code is hosted

title: string

Title is a short summary

unpinCode: boolean

UnpinCode code on upload, optional

wasmByteCode: Uint8Array

WASMByteCode can be raw or gzip compressed