// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" // @generated from file cosmwasm/wasm/v1/tx.proto (package cosmwasm.wasm.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; import { AccessConfig, Params } from "./types_pb.js"; import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; /** * MsgStoreCode submit Wasm code to the system * * @generated from message cosmwasm.wasm.v1.MsgStoreCode */ export class MsgStoreCode extends Message { /** * Sender is the actor that signed the messages * * @generated from field: string sender = 1; */ sender = ""; /** * WASMByteCode can be raw or gzip compressed * * @generated from field: bytes wasm_byte_code = 2; */ wasmByteCode = new Uint8Array(0); /** * InstantiatePermission access control to apply on contract creation, * optional * * @generated from field: cosmwasm.wasm.v1.AccessConfig instantiate_permission = 5; */ instantiatePermission?: AccessConfig; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmwasm.wasm.v1.MsgStoreCode"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "wasm_byte_code", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, { no: 5, name: "instantiate_permission", kind: "message", T: AccessConfig }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgStoreCode { return new MsgStoreCode().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgStoreCode { return new MsgStoreCode().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgStoreCode { return new MsgStoreCode().fromJsonString(jsonString, options); } static equals(a: MsgStoreCode | PlainMessage | undefined, b: MsgStoreCode | PlainMessage | undefined): boolean { return proto3.util.equals(MsgStoreCode, a, b); } } /** * MsgStoreCodeResponse returns store result data. * * @generated from message cosmwasm.wasm.v1.MsgStoreCodeResponse */ export class MsgStoreCodeResponse extends Message { /** * CodeID is the reference to the stored WASM code * * @generated from field: uint64 code_id = 1; */ codeId = protoInt64.zero; /** * Checksum is the sha256 hash of the stored code * * @generated from field: bytes checksum = 2; */ checksum = new Uint8Array(0); constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmwasm.wasm.v1.MsgStoreCodeResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "code_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 2, name: "checksum", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgStoreCodeResponse { return new MsgStoreCodeResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgStoreCodeResponse { return new MsgStoreCodeResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgStoreCodeResponse { return new MsgStoreCodeResponse().fromJsonString(jsonString, options); } static equals(a: MsgStoreCodeResponse | PlainMessage | undefined, b: MsgStoreCodeResponse | PlainMessage | undefined): boolean { return proto3.util.equals(MsgStoreCodeResponse, a, b); } } /** * MsgInstantiateContract create a new smart contract instance for the given * code id. * * @generated from message cosmwasm.wasm.v1.MsgInstantiateContract */ export class MsgInstantiateContract extends Message { /** * Sender is the that actor that signed the messages * * @generated from field: string sender = 1; */ sender = ""; /** * Admin is an optional address that can execute migrations * * @generated from field: string admin = 2; */ admin = ""; /** * CodeID is the reference to the stored WASM code * * @generated from field: uint64 code_id = 3; */ codeId = protoInt64.zero; /** * Label is optional metadata to be stored with a contract instance. * * @generated from field: string label = 4; */ label = ""; /** * Msg json encoded message to be passed to the contract on instantiation * * @generated from field: bytes msg = 5; */ msg = new Uint8Array(0); /** * Funds coins that are transferred to the contract on instantiation * * @generated from field: repeated cosmos.base.v1beta1.Coin funds = 6; */ funds: Coin[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmwasm.wasm.v1.MsgInstantiateContract"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "code_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 4, name: "label", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 5, name: "msg", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, { no: 6, name: "funds", kind: "message", T: Coin, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgInstantiateContract { return new MsgInstantiateContract().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgInstantiateContract { return new MsgInstantiateContract().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgInstantiateContract { return new MsgInstantiateContract().fromJsonString(jsonString, options); } static equals(a: MsgInstantiateContract | PlainMessage | undefined, b: MsgInstantiateContract | PlainMessage | undefined): boolean { return proto3.util.equals(MsgInstantiateContract, a, b); } } /** * MsgInstantiateContractResponse return instantiation result data * * @generated from message cosmwasm.wasm.v1.MsgInstantiateContractResponse */ export class MsgInstantiateContractResponse extends Message { /** * Address is the bech32 address of the new contract instance. * * @generated from field: string address = 1; */ address = ""; /** * Data contains bytes to returned from the contract * * @generated from field: bytes data = 2; */ data = new Uint8Array(0); constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmwasm.wasm.v1.MsgInstantiateContractResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgInstantiateContractResponse { return new MsgInstantiateContractResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgInstantiateContractResponse { return new MsgInstantiateContractResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgInstantiateContractResponse { return new MsgInstantiateContractResponse().fromJsonString(jsonString, options); } static equals(a: MsgInstantiateContractResponse | PlainMessage | undefined, b: MsgInstantiateContractResponse | PlainMessage | undefined): boolean { return proto3.util.equals(MsgInstantiateContractResponse, a, b); } } /** * MsgInstantiateContract2 create a new smart contract instance for the given * code id with a predicable address. * * @generated from message cosmwasm.wasm.v1.MsgInstantiateContract2 */ export class MsgInstantiateContract2 extends Message { /** * Sender is the that actor that signed the messages * * @generated from field: string sender = 1; */ sender = ""; /** * Admin is an optional address that can execute migrations * * @generated from field: string admin = 2; */ admin = ""; /** * CodeID is the reference to the stored WASM code * * @generated from field: uint64 code_id = 3; */ codeId = protoInt64.zero; /** * Label is optional metadata to be stored with a contract instance. * * @generated from field: string label = 4; */ label = ""; /** * Msg json encoded message to be passed to the contract on instantiation * * @generated from field: bytes msg = 5; */ msg = new Uint8Array(0); /** * Funds coins that are transferred to the contract on instantiation * * @generated from field: repeated cosmos.base.v1beta1.Coin funds = 6; */ funds: Coin[] = []; /** * Salt is an arbitrary value provided by the sender. Size can be 1 to 64. * * @generated from field: bytes salt = 7; */ salt = new Uint8Array(0); /** * FixMsg include the msg value into the hash for the predictable address. * Default is false * * @generated from field: bool fix_msg = 8; */ fixMsg = false; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmwasm.wasm.v1.MsgInstantiateContract2"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "code_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 4, name: "label", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 5, name: "msg", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, { no: 6, name: "funds", kind: "message", T: Coin, repeated: true }, { no: 7, name: "salt", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, { no: 8, name: "fix_msg", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgInstantiateContract2 { return new MsgInstantiateContract2().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgInstantiateContract2 { return new MsgInstantiateContract2().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgInstantiateContract2 { return new MsgInstantiateContract2().fromJsonString(jsonString, options); } static equals(a: MsgInstantiateContract2 | PlainMessage | undefined, b: MsgInstantiateContract2 | PlainMessage | undefined): boolean { return proto3.util.equals(MsgInstantiateContract2, a, b); } } /** * MsgInstantiateContract2Response return instantiation result data * * @generated from message cosmwasm.wasm.v1.MsgInstantiateContract2Response */ export class MsgInstantiateContract2Response extends Message { /** * Address is the bech32 address of the new contract instance. * * @generated from field: string address = 1; */ address = ""; /** * Data contains bytes to returned from the contract * * @generated from field: bytes data = 2; */ data = new Uint8Array(0); constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmwasm.wasm.v1.MsgInstantiateContract2Response"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgInstantiateContract2Response { return new MsgInstantiateContract2Response().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgInstantiateContract2Response { return new MsgInstantiateContract2Response().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgInstantiateContract2Response { return new MsgInstantiateContract2Response().fromJsonString(jsonString, options); } static equals(a: MsgInstantiateContract2Response | PlainMessage | undefined, b: MsgInstantiateContract2Response | PlainMessage | undefined): boolean { return proto3.util.equals(MsgInstantiateContract2Response, a, b); } } /** * MsgExecuteContract submits the given message data to a smart contract * * @generated from message cosmwasm.wasm.v1.MsgExecuteContract */ export class MsgExecuteContract extends Message { /** * Sender is the that actor that signed the messages * * @generated from field: string sender = 1; */ sender = ""; /** * Contract is the address of the smart contract * * @generated from field: string contract = 2; */ contract = ""; /** * Msg json encoded message to be passed to the contract * * @generated from field: bytes msg = 3; */ msg = new Uint8Array(0); /** * Funds coins that are transferred to the contract on execution * * @generated from field: repeated cosmos.base.v1beta1.Coin funds = 5; */ funds: Coin[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmwasm.wasm.v1.MsgExecuteContract"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "contract", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "msg", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, { no: 5, name: "funds", kind: "message", T: Coin, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgExecuteContract { return new MsgExecuteContract().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgExecuteContract { return new MsgExecuteContract().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgExecuteContract { return new MsgExecuteContract().fromJsonString(jsonString, options); } static equals(a: MsgExecuteContract | PlainMessage | undefined, b: MsgExecuteContract | PlainMessage | undefined): boolean { return proto3.util.equals(MsgExecuteContract, a, b); } } /** * MsgExecuteContractResponse returns execution result data. * * @generated from message cosmwasm.wasm.v1.MsgExecuteContractResponse */ export class MsgExecuteContractResponse extends Message { /** * Data contains bytes to returned from the contract * * @generated from field: bytes data = 1; */ data = new Uint8Array(0); constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmwasm.wasm.v1.MsgExecuteContractResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgExecuteContractResponse { return new MsgExecuteContractResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgExecuteContractResponse { return new MsgExecuteContractResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgExecuteContractResponse { return new MsgExecuteContractResponse().fromJsonString(jsonString, options); } static equals(a: MsgExecuteContractResponse | PlainMessage | undefined, b: MsgExecuteContractResponse | PlainMessage | undefined): boolean { return proto3.util.equals(MsgExecuteContractResponse, a, b); } } /** * MsgMigrateContract runs a code upgrade/ downgrade for a smart contract * * @generated from message cosmwasm.wasm.v1.MsgMigrateContract */ export class MsgMigrateContract extends Message { /** * Sender is the that actor that signed the messages * * @generated from field: string sender = 1; */ sender = ""; /** * Contract is the address of the smart contract * * @generated from field: string contract = 2; */ contract = ""; /** * CodeID references the new WASM code * * @generated from field: uint64 code_id = 3; */ codeId = protoInt64.zero; /** * Msg json encoded message to be passed to the contract on migration * * @generated from field: bytes msg = 4; */ msg = new Uint8Array(0); constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmwasm.wasm.v1.MsgMigrateContract"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "contract", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "code_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 4, name: "msg", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgMigrateContract { return new MsgMigrateContract().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgMigrateContract { return new MsgMigrateContract().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgMigrateContract { return new MsgMigrateContract().fromJsonString(jsonString, options); } static equals(a: MsgMigrateContract | PlainMessage | undefined, b: MsgMigrateContract | PlainMessage | undefined): boolean { return proto3.util.equals(MsgMigrateContract, a, b); } } /** * MsgMigrateContractResponse returns contract migration result data. * * @generated from message cosmwasm.wasm.v1.MsgMigrateContractResponse */ export class MsgMigrateContractResponse extends Message { /** * Data contains same raw bytes returned as data from the wasm contract. * (May be empty) * * @generated from field: bytes data = 1; */ data = new Uint8Array(0); constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmwasm.wasm.v1.MsgMigrateContractResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgMigrateContractResponse { return new MsgMigrateContractResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgMigrateContractResponse { return new MsgMigrateContractResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgMigrateContractResponse { return new MsgMigrateContractResponse().fromJsonString(jsonString, options); } static equals(a: MsgMigrateContractResponse | PlainMessage | undefined, b: MsgMigrateContractResponse | PlainMessage | undefined): boolean { return proto3.util.equals(MsgMigrateContractResponse, a, b); } } /** * MsgUpdateAdmin sets a new admin for a smart contract * * @generated from message cosmwasm.wasm.v1.MsgUpdateAdmin */ export class MsgUpdateAdmin extends Message { /** * Sender is the that actor that signed the messages * * @generated from field: string sender = 1; */ sender = ""; /** * NewAdmin address to be set * * @generated from field: string new_admin = 2; */ newAdmin = ""; /** * Contract is the address of the smart contract * * @generated from field: string contract = 3; */ contract = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmwasm.wasm.v1.MsgUpdateAdmin"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "new_admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "contract", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateAdmin { return new MsgUpdateAdmin().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateAdmin { return new MsgUpdateAdmin().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgUpdateAdmin { return new MsgUpdateAdmin().fromJsonString(jsonString, options); } static equals(a: MsgUpdateAdmin | PlainMessage | undefined, b: MsgUpdateAdmin | PlainMessage | undefined): boolean { return proto3.util.equals(MsgUpdateAdmin, a, b); } } /** * MsgUpdateAdminResponse returns empty data * * @generated from message cosmwasm.wasm.v1.MsgUpdateAdminResponse */ export class MsgUpdateAdminResponse extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmwasm.wasm.v1.MsgUpdateAdminResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateAdminResponse { return new MsgUpdateAdminResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateAdminResponse { return new MsgUpdateAdminResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgUpdateAdminResponse { return new MsgUpdateAdminResponse().fromJsonString(jsonString, options); } static equals(a: MsgUpdateAdminResponse | PlainMessage | undefined, b: MsgUpdateAdminResponse | PlainMessage | undefined): boolean { return proto3.util.equals(MsgUpdateAdminResponse, a, b); } } /** * MsgClearAdmin removes any admin stored for a smart contract * * @generated from message cosmwasm.wasm.v1.MsgClearAdmin */ export class MsgClearAdmin extends Message { /** * Sender is the actor that signed the messages * * @generated from field: string sender = 1; */ sender = ""; /** * Contract is the address of the smart contract * * @generated from field: string contract = 3; */ contract = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmwasm.wasm.v1.MsgClearAdmin"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "contract", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgClearAdmin { return new MsgClearAdmin().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgClearAdmin { return new MsgClearAdmin().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgClearAdmin { return new MsgClearAdmin().fromJsonString(jsonString, options); } static equals(a: MsgClearAdmin | PlainMessage | undefined, b: MsgClearAdmin | PlainMessage | undefined): boolean { return proto3.util.equals(MsgClearAdmin, a, b); } } /** * MsgClearAdminResponse returns empty data * * @generated from message cosmwasm.wasm.v1.MsgClearAdminResponse */ export class MsgClearAdminResponse extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmwasm.wasm.v1.MsgClearAdminResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgClearAdminResponse { return new MsgClearAdminResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgClearAdminResponse { return new MsgClearAdminResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgClearAdminResponse { return new MsgClearAdminResponse().fromJsonString(jsonString, options); } static equals(a: MsgClearAdminResponse | PlainMessage | undefined, b: MsgClearAdminResponse | PlainMessage | undefined): boolean { return proto3.util.equals(MsgClearAdminResponse, a, b); } } /** * MsgUpdateInstantiateConfig updates instantiate config for a smart contract * * @generated from message cosmwasm.wasm.v1.MsgUpdateInstantiateConfig */ export class MsgUpdateInstantiateConfig extends Message { /** * Sender is the that actor that signed the messages * * @generated from field: string sender = 1; */ sender = ""; /** * CodeID references the stored WASM code * * @generated from field: uint64 code_id = 2; */ codeId = protoInt64.zero; /** * NewInstantiatePermission is the new access control * * @generated from field: cosmwasm.wasm.v1.AccessConfig new_instantiate_permission = 3; */ newInstantiatePermission?: AccessConfig; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmwasm.wasm.v1.MsgUpdateInstantiateConfig"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "code_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 3, name: "new_instantiate_permission", kind: "message", T: AccessConfig }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateInstantiateConfig { return new MsgUpdateInstantiateConfig().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateInstantiateConfig { return new MsgUpdateInstantiateConfig().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgUpdateInstantiateConfig { return new MsgUpdateInstantiateConfig().fromJsonString(jsonString, options); } static equals(a: MsgUpdateInstantiateConfig | PlainMessage | undefined, b: MsgUpdateInstantiateConfig | PlainMessage | undefined): boolean { return proto3.util.equals(MsgUpdateInstantiateConfig, a, b); } } /** * MsgUpdateInstantiateConfigResponse returns empty data * * @generated from message cosmwasm.wasm.v1.MsgUpdateInstantiateConfigResponse */ export class MsgUpdateInstantiateConfigResponse extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmwasm.wasm.v1.MsgUpdateInstantiateConfigResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateInstantiateConfigResponse { return new MsgUpdateInstantiateConfigResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateInstantiateConfigResponse { return new MsgUpdateInstantiateConfigResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgUpdateInstantiateConfigResponse { return new MsgUpdateInstantiateConfigResponse().fromJsonString(jsonString, options); } static equals(a: MsgUpdateInstantiateConfigResponse | PlainMessage | undefined, b: MsgUpdateInstantiateConfigResponse | PlainMessage | undefined): boolean { return proto3.util.equals(MsgUpdateInstantiateConfigResponse, a, b); } } /** * MsgUpdateParams is the MsgUpdateParams request type. * * Since: 0.40 * * @generated from message cosmwasm.wasm.v1.MsgUpdateParams */ export class MsgUpdateParams extends Message { /** * Authority is the address of the governance account. * * @generated from field: string authority = 1; */ authority = ""; /** * params defines the x/wasm parameters to update. * * NOTE: All parameters must be supplied. * * @generated from field: cosmwasm.wasm.v1.Params params = 2; */ params?: Params; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmwasm.wasm.v1.MsgUpdateParams"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "params", kind: "message", T: Params }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams { return new MsgUpdateParams().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams { return new MsgUpdateParams().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams { return new MsgUpdateParams().fromJsonString(jsonString, options); } static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean { return proto3.util.equals(MsgUpdateParams, a, b); } } /** * MsgUpdateParamsResponse defines the response structure for executing a * MsgUpdateParams message. * * Since: 0.40 * * @generated from message cosmwasm.wasm.v1.MsgUpdateParamsResponse */ export class MsgUpdateParamsResponse extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmwasm.wasm.v1.MsgUpdateParamsResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse { return new MsgUpdateParamsResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse { return new MsgUpdateParamsResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse { return new MsgUpdateParamsResponse().fromJsonString(jsonString, options); } static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean { return proto3.util.equals(MsgUpdateParamsResponse, a, b); } } /** * MsgSudoContract is the MsgSudoContract request type. * * Since: 0.40 * * @generated from message cosmwasm.wasm.v1.MsgSudoContract */ export class MsgSudoContract extends Message { /** * Authority is the address of the governance account. * * @generated from field: string authority = 1; */ authority = ""; /** * Contract is the address of the smart contract * * @generated from field: string contract = 2; */ contract = ""; /** * Msg json encoded message to be passed to the contract as sudo * * @generated from field: bytes msg = 3; */ msg = new Uint8Array(0); constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmwasm.wasm.v1.MsgSudoContract"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "contract", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "msg", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgSudoContract { return new MsgSudoContract().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgSudoContract { return new MsgSudoContract().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgSudoContract { return new MsgSudoContract().fromJsonString(jsonString, options); } static equals(a: MsgSudoContract | PlainMessage | undefined, b: MsgSudoContract | PlainMessage | undefined): boolean { return proto3.util.equals(MsgSudoContract, a, b); } } /** * MsgSudoContractResponse defines the response structure for executing a * MsgSudoContract message. * * Since: 0.40 * * @generated from message cosmwasm.wasm.v1.MsgSudoContractResponse */ export class MsgSudoContractResponse extends Message { /** * Data contains bytes to returned from the contract * * @generated from field: bytes data = 1; */ data = new Uint8Array(0); constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmwasm.wasm.v1.MsgSudoContractResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgSudoContractResponse { return new MsgSudoContractResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgSudoContractResponse { return new MsgSudoContractResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgSudoContractResponse { return new MsgSudoContractResponse().fromJsonString(jsonString, options); } static equals(a: MsgSudoContractResponse | PlainMessage | undefined, b: MsgSudoContractResponse | PlainMessage | undefined): boolean { return proto3.util.equals(MsgSudoContractResponse, a, b); } } /** * MsgPinCodes is the MsgPinCodes request type. * * Since: 0.40 * * @generated from message cosmwasm.wasm.v1.MsgPinCodes */ export class MsgPinCodes extends Message { /** * Authority is the address of the governance account. * * @generated from field: string authority = 1; */ authority = ""; /** * CodeIDs references the new WASM codes * * @generated from field: repeated uint64 code_ids = 2; */ codeIds: bigint[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmwasm.wasm.v1.MsgPinCodes"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "code_ids", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgPinCodes { return new MsgPinCodes().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgPinCodes { return new MsgPinCodes().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgPinCodes { return new MsgPinCodes().fromJsonString(jsonString, options); } static equals(a: MsgPinCodes | PlainMessage | undefined, b: MsgPinCodes | PlainMessage | undefined): boolean { return proto3.util.equals(MsgPinCodes, a, b); } } /** * MsgPinCodesResponse defines the response structure for executing a * MsgPinCodes message. * * Since: 0.40 * * @generated from message cosmwasm.wasm.v1.MsgPinCodesResponse */ export class MsgPinCodesResponse extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmwasm.wasm.v1.MsgPinCodesResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgPinCodesResponse { return new MsgPinCodesResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgPinCodesResponse { return new MsgPinCodesResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgPinCodesResponse { return new MsgPinCodesResponse().fromJsonString(jsonString, options); } static equals(a: MsgPinCodesResponse | PlainMessage | undefined, b: MsgPinCodesResponse | PlainMessage | undefined): boolean { return proto3.util.equals(MsgPinCodesResponse, a, b); } } /** * MsgUnpinCodes is the MsgUnpinCodes request type. * * Since: 0.40 * * @generated from message cosmwasm.wasm.v1.MsgUnpinCodes */ export class MsgUnpinCodes extends Message { /** * Authority is the address of the governance account. * * @generated from field: string authority = 1; */ authority = ""; /** * CodeIDs references the WASM codes * * @generated from field: repeated uint64 code_ids = 2; */ codeIds: bigint[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmwasm.wasm.v1.MsgUnpinCodes"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "code_ids", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgUnpinCodes { return new MsgUnpinCodes().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgUnpinCodes { return new MsgUnpinCodes().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgUnpinCodes { return new MsgUnpinCodes().fromJsonString(jsonString, options); } static equals(a: MsgUnpinCodes | PlainMessage | undefined, b: MsgUnpinCodes | PlainMessage | undefined): boolean { return proto3.util.equals(MsgUnpinCodes, a, b); } } /** * MsgUnpinCodesResponse defines the response structure for executing a * MsgUnpinCodes message. * * Since: 0.40 * * @generated from message cosmwasm.wasm.v1.MsgUnpinCodesResponse */ export class MsgUnpinCodesResponse extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmwasm.wasm.v1.MsgUnpinCodesResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgUnpinCodesResponse { return new MsgUnpinCodesResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgUnpinCodesResponse { return new MsgUnpinCodesResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgUnpinCodesResponse { return new MsgUnpinCodesResponse().fromJsonString(jsonString, options); } static equals(a: MsgUnpinCodesResponse | PlainMessage | undefined, b: MsgUnpinCodesResponse | PlainMessage | undefined): boolean { return proto3.util.equals(MsgUnpinCodesResponse, a, b); } } /** * MsgStoreAndInstantiateContract is the MsgStoreAndInstantiateContract * request type. * * Since: 0.40 * * @generated from message cosmwasm.wasm.v1.MsgStoreAndInstantiateContract */ export class MsgStoreAndInstantiateContract extends Message { /** * Authority is the address of the governance account. * * @generated from field: string authority = 1; */ authority = ""; /** * WASMByteCode can be raw or gzip compressed * * @generated from field: bytes wasm_byte_code = 3; */ wasmByteCode = new Uint8Array(0); /** * InstantiatePermission to apply on contract creation, optional * * @generated from field: cosmwasm.wasm.v1.AccessConfig instantiate_permission = 4; */ instantiatePermission?: AccessConfig; /** * UnpinCode code on upload, optional. As default the uploaded contract is * pinned to cache. * * @generated from field: bool unpin_code = 5; */ unpinCode = false; /** * Admin is an optional address that can execute migrations * * @generated from field: string admin = 6; */ admin = ""; /** * Label is optional metadata to be stored with a constract instance. * * @generated from field: string label = 7; */ label = ""; /** * Msg json encoded message to be passed to the contract on instantiation * * @generated from field: bytes msg = 8; */ msg = new Uint8Array(0); /** * Funds coins that are transferred from the authority account to the contract * on instantiation * * @generated from field: repeated cosmos.base.v1beta1.Coin funds = 9; */ funds: Coin[] = []; /** * Source is the URL where the code is hosted * * @generated from field: string source = 10; */ source = ""; /** * Builder is the docker image used to build the code deterministically, used * for smart contract verification * * @generated from field: string builder = 11; */ builder = ""; /** * CodeHash is the SHA256 sum of the code outputted by builder, used for smart * contract verification * * @generated from field: bytes code_hash = 12; */ codeHash = new Uint8Array(0); constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmwasm.wasm.v1.MsgStoreAndInstantiateContract"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "wasm_byte_code", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, { no: 4, name: "instantiate_permission", kind: "message", T: AccessConfig }, { no: 5, name: "unpin_code", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 6, name: "admin", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 7, name: "label", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 8, name: "msg", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, { no: 9, name: "funds", kind: "message", T: Coin, repeated: true }, { no: 10, name: "source", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 11, name: "builder", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 12, name: "code_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgStoreAndInstantiateContract { return new MsgStoreAndInstantiateContract().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgStoreAndInstantiateContract { return new MsgStoreAndInstantiateContract().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgStoreAndInstantiateContract { return new MsgStoreAndInstantiateContract().fromJsonString(jsonString, options); } static equals(a: MsgStoreAndInstantiateContract | PlainMessage | undefined, b: MsgStoreAndInstantiateContract | PlainMessage | undefined): boolean { return proto3.util.equals(MsgStoreAndInstantiateContract, a, b); } } /** * MsgStoreAndInstantiateContractResponse defines the response structure * for executing a MsgStoreAndInstantiateContract message. * * Since: 0.40 * * @generated from message cosmwasm.wasm.v1.MsgStoreAndInstantiateContractResponse */ export class MsgStoreAndInstantiateContractResponse extends Message { /** * Address is the bech32 address of the new contract instance. * * @generated from field: string address = 1; */ address = ""; /** * Data contains bytes to returned from the contract * * @generated from field: bytes data = 2; */ data = new Uint8Array(0); constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmwasm.wasm.v1.MsgStoreAndInstantiateContractResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgStoreAndInstantiateContractResponse { return new MsgStoreAndInstantiateContractResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgStoreAndInstantiateContractResponse { return new MsgStoreAndInstantiateContractResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgStoreAndInstantiateContractResponse { return new MsgStoreAndInstantiateContractResponse().fromJsonString(jsonString, options); } static equals(a: MsgStoreAndInstantiateContractResponse | PlainMessage | undefined, b: MsgStoreAndInstantiateContractResponse | PlainMessage | undefined): boolean { return proto3.util.equals(MsgStoreAndInstantiateContractResponse, a, b); } } /** * MsgAddCodeUploadParamsAddresses is the * MsgAddCodeUploadParamsAddresses request type. * * @generated from message cosmwasm.wasm.v1.MsgAddCodeUploadParamsAddresses */ export class MsgAddCodeUploadParamsAddresses extends Message { /** * Authority is the address of the governance account. * * @generated from field: string authority = 1; */ authority = ""; /** * @generated from field: repeated string addresses = 2; */ addresses: string[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmwasm.wasm.v1.MsgAddCodeUploadParamsAddresses"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "addresses", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddCodeUploadParamsAddresses { return new MsgAddCodeUploadParamsAddresses().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddCodeUploadParamsAddresses { return new MsgAddCodeUploadParamsAddresses().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgAddCodeUploadParamsAddresses { return new MsgAddCodeUploadParamsAddresses().fromJsonString(jsonString, options); } static equals(a: MsgAddCodeUploadParamsAddresses | PlainMessage | undefined, b: MsgAddCodeUploadParamsAddresses | PlainMessage | undefined): boolean { return proto3.util.equals(MsgAddCodeUploadParamsAddresses, a, b); } } /** * MsgAddCodeUploadParamsAddressesResponse defines the response * structure for executing a MsgAddCodeUploadParamsAddresses message. * * @generated from message cosmwasm.wasm.v1.MsgAddCodeUploadParamsAddressesResponse */ export class MsgAddCodeUploadParamsAddressesResponse extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmwasm.wasm.v1.MsgAddCodeUploadParamsAddressesResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddCodeUploadParamsAddressesResponse { return new MsgAddCodeUploadParamsAddressesResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddCodeUploadParamsAddressesResponse { return new MsgAddCodeUploadParamsAddressesResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgAddCodeUploadParamsAddressesResponse { return new MsgAddCodeUploadParamsAddressesResponse().fromJsonString(jsonString, options); } static equals(a: MsgAddCodeUploadParamsAddressesResponse | PlainMessage | undefined, b: MsgAddCodeUploadParamsAddressesResponse | PlainMessage | undefined): boolean { return proto3.util.equals(MsgAddCodeUploadParamsAddressesResponse, a, b); } } /** * MsgRemoveCodeUploadParamsAddresses is the * MsgRemoveCodeUploadParamsAddresses request type. * * @generated from message cosmwasm.wasm.v1.MsgRemoveCodeUploadParamsAddresses */ export class MsgRemoveCodeUploadParamsAddresses extends Message { /** * Authority is the address of the governance account. * * @generated from field: string authority = 1; */ authority = ""; /** * @generated from field: repeated string addresses = 2; */ addresses: string[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmwasm.wasm.v1.MsgRemoveCodeUploadParamsAddresses"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "addresses", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgRemoveCodeUploadParamsAddresses { return new MsgRemoveCodeUploadParamsAddresses().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgRemoveCodeUploadParamsAddresses { return new MsgRemoveCodeUploadParamsAddresses().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgRemoveCodeUploadParamsAddresses { return new MsgRemoveCodeUploadParamsAddresses().fromJsonString(jsonString, options); } static equals(a: MsgRemoveCodeUploadParamsAddresses | PlainMessage | undefined, b: MsgRemoveCodeUploadParamsAddresses | PlainMessage | undefined): boolean { return proto3.util.equals(MsgRemoveCodeUploadParamsAddresses, a, b); } } /** * MsgRemoveCodeUploadParamsAddressesResponse defines the response * structure for executing a MsgRemoveCodeUploadParamsAddresses message. * * @generated from message cosmwasm.wasm.v1.MsgRemoveCodeUploadParamsAddressesResponse */ export class MsgRemoveCodeUploadParamsAddressesResponse extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmwasm.wasm.v1.MsgRemoveCodeUploadParamsAddressesResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgRemoveCodeUploadParamsAddressesResponse { return new MsgRemoveCodeUploadParamsAddressesResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgRemoveCodeUploadParamsAddressesResponse { return new MsgRemoveCodeUploadParamsAddressesResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgRemoveCodeUploadParamsAddressesResponse { return new MsgRemoveCodeUploadParamsAddressesResponse().fromJsonString(jsonString, options); } static equals(a: MsgRemoveCodeUploadParamsAddressesResponse | PlainMessage | undefined, b: MsgRemoveCodeUploadParamsAddressesResponse | PlainMessage | undefined): boolean { return proto3.util.equals(MsgRemoveCodeUploadParamsAddressesResponse, a, b); } } /** * MsgStoreAndMigrateContract is the MsgStoreAndMigrateContract * request type. * * Since: 0.42 * * @generated from message cosmwasm.wasm.v1.MsgStoreAndMigrateContract */ export class MsgStoreAndMigrateContract extends Message { /** * Authority is the address of the governance account. * * @generated from field: string authority = 1; */ authority = ""; /** * WASMByteCode can be raw or gzip compressed * * @generated from field: bytes wasm_byte_code = 2; */ wasmByteCode = new Uint8Array(0); /** * InstantiatePermission to apply on contract creation, optional * * @generated from field: cosmwasm.wasm.v1.AccessConfig instantiate_permission = 3; */ instantiatePermission?: AccessConfig; /** * Contract is the address of the smart contract * * @generated from field: string contract = 4; */ contract = ""; /** * Msg json encoded message to be passed to the contract on migration * * @generated from field: bytes msg = 5; */ msg = new Uint8Array(0); constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmwasm.wasm.v1.MsgStoreAndMigrateContract"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "authority", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "wasm_byte_code", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, { no: 3, name: "instantiate_permission", kind: "message", T: AccessConfig }, { no: 4, name: "contract", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 5, name: "msg", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgStoreAndMigrateContract { return new MsgStoreAndMigrateContract().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgStoreAndMigrateContract { return new MsgStoreAndMigrateContract().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgStoreAndMigrateContract { return new MsgStoreAndMigrateContract().fromJsonString(jsonString, options); } static equals(a: MsgStoreAndMigrateContract | PlainMessage | undefined, b: MsgStoreAndMigrateContract | PlainMessage | undefined): boolean { return proto3.util.equals(MsgStoreAndMigrateContract, a, b); } } /** * MsgStoreAndMigrateContractResponse defines the response structure * for executing a MsgStoreAndMigrateContract message. * * Since: 0.42 * * @generated from message cosmwasm.wasm.v1.MsgStoreAndMigrateContractResponse */ export class MsgStoreAndMigrateContractResponse extends Message { /** * CodeID is the reference to the stored WASM code * * @generated from field: uint64 code_id = 1; */ codeId = protoInt64.zero; /** * Checksum is the sha256 hash of the stored code * * @generated from field: bytes checksum = 2; */ checksum = new Uint8Array(0); /** * Data contains bytes to returned from the contract * * @generated from field: bytes data = 3; */ data = new Uint8Array(0); constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmwasm.wasm.v1.MsgStoreAndMigrateContractResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "code_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 2, name: "checksum", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, { no: 3, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgStoreAndMigrateContractResponse { return new MsgStoreAndMigrateContractResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgStoreAndMigrateContractResponse { return new MsgStoreAndMigrateContractResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgStoreAndMigrateContractResponse { return new MsgStoreAndMigrateContractResponse().fromJsonString(jsonString, options); } static equals(a: MsgStoreAndMigrateContractResponse | PlainMessage | undefined, b: MsgStoreAndMigrateContractResponse | PlainMessage | undefined): boolean { return proto3.util.equals(MsgStoreAndMigrateContractResponse, a, b); } } /** * MsgUpdateContractLabel sets a new label for a smart contract * * @generated from message cosmwasm.wasm.v1.MsgUpdateContractLabel */ export class MsgUpdateContractLabel extends Message { /** * Sender is the that actor that signed the messages * * @generated from field: string sender = 1; */ sender = ""; /** * NewLabel string to be set * * @generated from field: string new_label = 2; */ newLabel = ""; /** * Contract is the address of the smart contract * * @generated from field: string contract = 3; */ contract = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmwasm.wasm.v1.MsgUpdateContractLabel"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "new_label", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "contract", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateContractLabel { return new MsgUpdateContractLabel().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateContractLabel { return new MsgUpdateContractLabel().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgUpdateContractLabel { return new MsgUpdateContractLabel().fromJsonString(jsonString, options); } static equals(a: MsgUpdateContractLabel | PlainMessage | undefined, b: MsgUpdateContractLabel | PlainMessage | undefined): boolean { return proto3.util.equals(MsgUpdateContractLabel, a, b); } } /** * MsgUpdateContractLabelResponse returns empty data * * @generated from message cosmwasm.wasm.v1.MsgUpdateContractLabelResponse */ export class MsgUpdateContractLabelResponse extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmwasm.wasm.v1.MsgUpdateContractLabelResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateContractLabelResponse { return new MsgUpdateContractLabelResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateContractLabelResponse { return new MsgUpdateContractLabelResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgUpdateContractLabelResponse { return new MsgUpdateContractLabelResponse().fromJsonString(jsonString, options); } static equals(a: MsgUpdateContractLabelResponse | PlainMessage | undefined, b: MsgUpdateContractLabelResponse | PlainMessage | undefined): boolean { return proto3.util.equals(MsgUpdateContractLabelResponse, a, b); } }