import Long from "long"; import _m0 from "protobufjs/minimal"; import { Coin } from "../../../cosmos/base/v1beta1/coin"; import { AccessConfig } from "./types"; export declare const protobufPackage = "cosmwasm.wasm.v1"; /** * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for * an explicit StoreCodeProposal. To submit WASM code to the system, * a simple MsgStoreCode can be invoked from the x/gov module via * a v1 governance proposal. * * @deprecated */ export interface StoreCodeProposal { /** Title is a short summary */ title: string; /** Description is a human readable text */ description: string; /** RunAs is the address that is passed to the contract's environment as sender */ runAs: string; /** WASMByteCode can be raw or gzip compressed */ wasmByteCode: Uint8Array; /** InstantiatePermission to apply on contract creation, optional */ instantiatePermission: AccessConfig | undefined; /** UnpinCode code on upload, optional */ unpinCode: boolean; /** Source is the URL where the code is hosted */ source: string; /** * Builder is the docker image used to build the code deterministically, used * for smart contract verification */ builder: string; /** * CodeHash is the SHA256 sum of the code outputted by builder, used for smart * contract verification */ codeHash: Uint8Array; } /** * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for * an explicit InstantiateContractProposal. To instantiate a contract, * a simple MsgInstantiateContract can be invoked from the x/gov module via * a v1 governance proposal. * * @deprecated */ export interface InstantiateContractProposal { /** Title is a short summary */ title: string; /** Description is a human readable text */ description: string; /** RunAs is the address that is passed to the contract's environment as sender */ runAs: string; /** Admin is an optional address that can execute migrations */ admin: string; /** CodeID is the reference to the stored WASM code */ codeId: Long; /** Label is optional metadata to be stored with a contract instance. */ label: string; /** Msg json encoded message to be passed to the contract on instantiation */ msg: Uint8Array; /** Funds coins that are transferred to the contract on instantiation */ funds: Coin[]; } /** * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for * an explicit InstantiateContract2Proposal. To instantiate contract 2, * a simple MsgInstantiateContract2 can be invoked from the x/gov module via * a v1 governance proposal. * * @deprecated */ export interface InstantiateContract2Proposal { /** Title is a short summary */ title: string; /** Description is a human readable text */ description: string; /** RunAs is the address that is passed to the contract's environment as sender */ runAs: string; /** Admin is an optional address that can execute migrations */ admin: string; /** CodeID is the reference to the stored WASM code */ codeId: Long; /** Label is optional metadata to be stored with a contract instance. */ label: string; /** Msg json encode message to be passed to the contract on instantiation */ msg: Uint8Array; /** Funds coins that are transferred to the contract on instantiation */ funds: Coin[]; /** Salt is an arbitrary value provided by the sender. Size can be 1 to 64. */ salt: Uint8Array; /** * FixMsg include the msg value into the hash for the predictable address. * Default is false */ fixMsg: boolean; } /** * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for * an explicit MigrateContractProposal. To migrate a contract, * a simple MsgMigrateContract can be invoked from the x/gov module via * a v1 governance proposal. * * @deprecated */ export interface MigrateContractProposal { /** Title is a short summary */ title: string; /** Description is a human readable text */ description: string; /** Contract is the address of the smart contract */ contract: string; /** CodeID references the new WASM code */ codeId: Long; /** Msg json encoded message to be passed to the contract on migration */ msg: Uint8Array; } /** * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for * an explicit SudoContractProposal. To call sudo on a contract, * a simple MsgSudoContract can be invoked from the x/gov module via * a v1 governance proposal. * * @deprecated */ export interface SudoContractProposal { /** Title is a short summary */ title: string; /** Description is a human readable text */ description: string; /** Contract is the address of the smart contract */ contract: string; /** Msg json encoded message to be passed to the contract as sudo */ msg: Uint8Array; } /** * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for * an explicit ExecuteContractProposal. To call execute on a contract, * a simple MsgExecuteContract can be invoked from the x/gov module via * a v1 governance proposal. * * @deprecated */ export interface ExecuteContractProposal { /** Title is a short summary */ title: string; /** Description is a human readable text */ description: string; /** RunAs is the address that is passed to the contract's environment as sender */ runAs: string; /** Contract is the address of the smart contract */ contract: string; /** Msg json encoded message to be passed to the contract as execute */ msg: Uint8Array; /** Funds coins that are transferred to the contract on instantiation */ funds: Coin[]; } /** * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for * an explicit UpdateAdminProposal. To set an admin for a contract, * a simple MsgUpdateAdmin can be invoked from the x/gov module via * a v1 governance proposal. * * @deprecated */ export interface UpdateAdminProposal { /** Title is a short summary */ title: string; /** Description is a human readable text */ description: string; /** NewAdmin address to be set */ newAdmin: string; /** Contract is the address of the smart contract */ contract: string; } /** * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for * an explicit ClearAdminProposal. To clear the admin of a contract, * a simple MsgClearAdmin can be invoked from the x/gov module via * a v1 governance proposal. * * @deprecated */ export interface ClearAdminProposal { /** Title is a short summary */ title: string; /** Description is a human readable text */ description: string; /** Contract is the address of the smart contract */ contract: string; } /** * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for * an explicit PinCodesProposal. To pin a set of code ids in the wasmvm * cache, a simple MsgPinCodes can be invoked from the x/gov module via * a v1 governance proposal. * * @deprecated */ export interface PinCodesProposal { /** Title is a short summary */ title: string; /** Description is a human readable text */ description: string; /** CodeIDs references the new WASM codes */ codeIds: Long[]; } /** * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for * an explicit UnpinCodesProposal. To unpin a set of code ids in the wasmvm * cache, a simple MsgUnpinCodes can be invoked from the x/gov module via * a v1 governance proposal. * * @deprecated */ export interface UnpinCodesProposal { /** Title is a short summary */ title: string; /** Description is a human readable text */ description: string; /** CodeIDs references the WASM codes */ codeIds: Long[]; } /** * AccessConfigUpdate contains the code id and the access config to be * applied. */ export interface AccessConfigUpdate { /** CodeID is the reference to the stored WASM code to be updated */ codeId: Long; /** InstantiatePermission to apply to the set of code ids */ instantiatePermission: AccessConfig | undefined; } /** * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for * an explicit UpdateInstantiateConfigProposal. To update instantiate config * to a set of code ids, a simple MsgUpdateInstantiateConfig can be invoked from * the x/gov module via a v1 governance proposal. * * @deprecated */ export interface UpdateInstantiateConfigProposal { /** Title is a short summary */ title: string; /** Description is a human readable text */ description: string; /** * AccessConfigUpdate contains the list of code ids and the access config * to be applied. */ accessConfigUpdates: AccessConfigUpdate[]; } /** * Deprecated: Do not use. Since wasmd v0.40, there is no longer a need for * an explicit StoreAndInstantiateContractProposal. To store and instantiate * the contract, a simple MsgStoreAndInstantiateContract can be invoked from * the x/gov module via a v1 governance proposal. * * @deprecated */ export interface StoreAndInstantiateContractProposal { /** Title is a short summary */ title: string; /** Description is a human readable text */ description: string; /** RunAs is the address that is passed to the contract's environment as sender */ runAs: string; /** WASMByteCode can be raw or gzip compressed */ wasmByteCode: Uint8Array; /** InstantiatePermission to apply on contract creation, optional */ instantiatePermission: AccessConfig | undefined; /** UnpinCode code on upload, optional */ unpinCode: boolean; /** Admin is an optional address that can execute migrations */ admin: string; /** Label is optional metadata to be stored with a contract instance. */ label: string; /** Msg json encoded message to be passed to the contract on instantiation */ msg: Uint8Array; /** Funds coins that are transferred to the contract on instantiation */ funds: Coin[]; /** Source is the URL where the code is hosted */ source: string; /** * Builder is the docker image used to build the code deterministically, used * for smart contract verification */ builder: string; /** * CodeHash is the SHA256 sum of the code outputted by builder, used for smart * contract verification */ codeHash: Uint8Array; } export declare const StoreCodeProposal: { encode(message: StoreCodeProposal, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): StoreCodeProposal; fromJSON(object: any): StoreCodeProposal; toJSON(message: StoreCodeProposal): unknown; create(base?: DeepPartial): StoreCodeProposal; fromPartial(object: DeepPartial): StoreCodeProposal; }; export declare const InstantiateContractProposal: { encode(message: InstantiateContractProposal, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): InstantiateContractProposal; fromJSON(object: any): InstantiateContractProposal; toJSON(message: InstantiateContractProposal): unknown; create(base?: DeepPartial): InstantiateContractProposal; fromPartial(object: DeepPartial): InstantiateContractProposal; }; export declare const InstantiateContract2Proposal: { encode(message: InstantiateContract2Proposal, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): InstantiateContract2Proposal; fromJSON(object: any): InstantiateContract2Proposal; toJSON(message: InstantiateContract2Proposal): unknown; create(base?: DeepPartial): InstantiateContract2Proposal; fromPartial(object: DeepPartial): InstantiateContract2Proposal; }; export declare const MigrateContractProposal: { encode(message: MigrateContractProposal, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MigrateContractProposal; fromJSON(object: any): MigrateContractProposal; toJSON(message: MigrateContractProposal): unknown; create(base?: DeepPartial): MigrateContractProposal; fromPartial(object: DeepPartial): MigrateContractProposal; }; export declare const SudoContractProposal: { encode(message: SudoContractProposal, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): SudoContractProposal; fromJSON(object: any): SudoContractProposal; toJSON(message: SudoContractProposal): unknown; create(base?: DeepPartial): SudoContractProposal; fromPartial(object: DeepPartial): SudoContractProposal; }; export declare const ExecuteContractProposal: { encode(message: ExecuteContractProposal, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ExecuteContractProposal; fromJSON(object: any): ExecuteContractProposal; toJSON(message: ExecuteContractProposal): unknown; create(base?: DeepPartial): ExecuteContractProposal; fromPartial(object: DeepPartial): ExecuteContractProposal; }; export declare const UpdateAdminProposal: { encode(message: UpdateAdminProposal, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): UpdateAdminProposal; fromJSON(object: any): UpdateAdminProposal; toJSON(message: UpdateAdminProposal): unknown; create(base?: DeepPartial): UpdateAdminProposal; fromPartial(object: DeepPartial): UpdateAdminProposal; }; export declare const ClearAdminProposal: { encode(message: ClearAdminProposal, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ClearAdminProposal; fromJSON(object: any): ClearAdminProposal; toJSON(message: ClearAdminProposal): unknown; create(base?: DeepPartial): ClearAdminProposal; fromPartial(object: DeepPartial): ClearAdminProposal; }; export declare const PinCodesProposal: { encode(message: PinCodesProposal, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): PinCodesProposal; fromJSON(object: any): PinCodesProposal; toJSON(message: PinCodesProposal): unknown; create(base?: DeepPartial): PinCodesProposal; fromPartial(object: DeepPartial): PinCodesProposal; }; export declare const UnpinCodesProposal: { encode(message: UnpinCodesProposal, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): UnpinCodesProposal; fromJSON(object: any): UnpinCodesProposal; toJSON(message: UnpinCodesProposal): unknown; create(base?: DeepPartial): UnpinCodesProposal; fromPartial(object: DeepPartial): UnpinCodesProposal; }; export declare const AccessConfigUpdate: { encode(message: AccessConfigUpdate, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): AccessConfigUpdate; fromJSON(object: any): AccessConfigUpdate; toJSON(message: AccessConfigUpdate): unknown; create(base?: DeepPartial): AccessConfigUpdate; fromPartial(object: DeepPartial): AccessConfigUpdate; }; export declare const UpdateInstantiateConfigProposal: { encode(message: UpdateInstantiateConfigProposal, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): UpdateInstantiateConfigProposal; fromJSON(object: any): UpdateInstantiateConfigProposal; toJSON(message: UpdateInstantiateConfigProposal): unknown; create(base?: DeepPartial): UpdateInstantiateConfigProposal; fromPartial(object: DeepPartial): UpdateInstantiateConfigProposal; }; export declare const StoreAndInstantiateContractProposal: { encode(message: StoreAndInstantiateContractProposal, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): StoreAndInstantiateContractProposal; fromJSON(object: any): StoreAndInstantiateContractProposal; toJSON(message: StoreAndInstantiateContractProposal): unknown; create(base?: DeepPartial): StoreAndInstantiateContractProposal; fromPartial(object: DeepPartial): StoreAndInstantiateContractProposal; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial = T extends Builtin ? T : T extends Long ? string | number | Long : T extends globalThis.Array ? globalThis.Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; export {};