// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" // @generated from file cosmwasm/wasm/v1/query.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, ContractCodeHistoryEntry, ContractInfo, Model, Params } from "./types_pb.js"; import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination_pb.js"; /** * QueryContractInfoRequest is the request type for the Query/ContractInfo RPC * method * * @generated from message cosmwasm.wasm.v1.QueryContractInfoRequest */ export class QueryContractInfoRequest extends Message { /** * address is the address of the contract to query * * @generated from field: string address = 1; */ address = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmwasm.wasm.v1.QueryContractInfoRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryContractInfoRequest { return new QueryContractInfoRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryContractInfoRequest { return new QueryContractInfoRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryContractInfoRequest { return new QueryContractInfoRequest().fromJsonString(jsonString, options); } static equals(a: QueryContractInfoRequest | PlainMessage | undefined, b: QueryContractInfoRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryContractInfoRequest, a, b); } } /** * QueryContractInfoResponse is the response type for the Query/ContractInfo RPC * method * * @generated from message cosmwasm.wasm.v1.QueryContractInfoResponse */ export class QueryContractInfoResponse extends Message { /** * address is the address of the contract * * @generated from field: string address = 1; */ address = ""; /** * @generated from field: cosmwasm.wasm.v1.ContractInfo contract_info = 2; */ contractInfo?: ContractInfo; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmwasm.wasm.v1.QueryContractInfoResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "contract_info", kind: "message", T: ContractInfo }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryContractInfoResponse { return new QueryContractInfoResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryContractInfoResponse { return new QueryContractInfoResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryContractInfoResponse { return new QueryContractInfoResponse().fromJsonString(jsonString, options); } static equals(a: QueryContractInfoResponse | PlainMessage | undefined, b: QueryContractInfoResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryContractInfoResponse, a, b); } } /** * QueryContractHistoryRequest is the request type for the Query/ContractHistory * RPC method * * @generated from message cosmwasm.wasm.v1.QueryContractHistoryRequest */ export class QueryContractHistoryRequest extends Message { /** * address is the address of the contract to query * * @generated from field: string address = 1; */ address = ""; /** * pagination defines an optional pagination for the request. * * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; */ pagination?: PageRequest; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmwasm.wasm.v1.QueryContractHistoryRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "pagination", kind: "message", T: PageRequest }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryContractHistoryRequest { return new QueryContractHistoryRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryContractHistoryRequest { return new QueryContractHistoryRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryContractHistoryRequest { return new QueryContractHistoryRequest().fromJsonString(jsonString, options); } static equals(a: QueryContractHistoryRequest | PlainMessage | undefined, b: QueryContractHistoryRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryContractHistoryRequest, a, b); } } /** * QueryContractHistoryResponse is the response type for the * Query/ContractHistory RPC method * * @generated from message cosmwasm.wasm.v1.QueryContractHistoryResponse */ export class QueryContractHistoryResponse extends Message { /** * @generated from field: repeated cosmwasm.wasm.v1.ContractCodeHistoryEntry entries = 1; */ entries: ContractCodeHistoryEntry[] = []; /** * pagination defines the pagination in the response. * * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; */ pagination?: PageResponse; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmwasm.wasm.v1.QueryContractHistoryResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "entries", kind: "message", T: ContractCodeHistoryEntry, repeated: true }, { no: 2, name: "pagination", kind: "message", T: PageResponse }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryContractHistoryResponse { return new QueryContractHistoryResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryContractHistoryResponse { return new QueryContractHistoryResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryContractHistoryResponse { return new QueryContractHistoryResponse().fromJsonString(jsonString, options); } static equals(a: QueryContractHistoryResponse | PlainMessage | undefined, b: QueryContractHistoryResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryContractHistoryResponse, a, b); } } /** * QueryContractsByCodeRequest is the request type for the Query/ContractsByCode * RPC method * * @generated from message cosmwasm.wasm.v1.QueryContractsByCodeRequest */ export class QueryContractsByCodeRequest extends Message { /** * grpc-gateway_out does not support Go style CodID * * @generated from field: uint64 code_id = 1; */ codeId = protoInt64.zero; /** * pagination defines an optional pagination for the request. * * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; */ pagination?: PageRequest; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmwasm.wasm.v1.QueryContractsByCodeRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "code_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 2, name: "pagination", kind: "message", T: PageRequest }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryContractsByCodeRequest { return new QueryContractsByCodeRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryContractsByCodeRequest { return new QueryContractsByCodeRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryContractsByCodeRequest { return new QueryContractsByCodeRequest().fromJsonString(jsonString, options); } static equals(a: QueryContractsByCodeRequest | PlainMessage | undefined, b: QueryContractsByCodeRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryContractsByCodeRequest, a, b); } } /** * QueryContractsByCodeResponse is the response type for the * Query/ContractsByCode RPC method * * @generated from message cosmwasm.wasm.v1.QueryContractsByCodeResponse */ export class QueryContractsByCodeResponse extends Message { /** * contracts are a set of contract addresses * * @generated from field: repeated string contracts = 1; */ contracts: string[] = []; /** * pagination defines the pagination in the response. * * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; */ pagination?: PageResponse; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmwasm.wasm.v1.QueryContractsByCodeResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "contracts", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, { no: 2, name: "pagination", kind: "message", T: PageResponse }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryContractsByCodeResponse { return new QueryContractsByCodeResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryContractsByCodeResponse { return new QueryContractsByCodeResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryContractsByCodeResponse { return new QueryContractsByCodeResponse().fromJsonString(jsonString, options); } static equals(a: QueryContractsByCodeResponse | PlainMessage | undefined, b: QueryContractsByCodeResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryContractsByCodeResponse, a, b); } } /** * QueryAllContractStateRequest is the request type for the * Query/AllContractState RPC method * * @generated from message cosmwasm.wasm.v1.QueryAllContractStateRequest */ export class QueryAllContractStateRequest extends Message { /** * address is the address of the contract * * @generated from field: string address = 1; */ address = ""; /** * pagination defines an optional pagination for the request. * * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; */ pagination?: PageRequest; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmwasm.wasm.v1.QueryAllContractStateRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "pagination", kind: "message", T: PageRequest }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllContractStateRequest { return new QueryAllContractStateRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllContractStateRequest { return new QueryAllContractStateRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryAllContractStateRequest { return new QueryAllContractStateRequest().fromJsonString(jsonString, options); } static equals(a: QueryAllContractStateRequest | PlainMessage | undefined, b: QueryAllContractStateRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryAllContractStateRequest, a, b); } } /** * QueryAllContractStateResponse is the response type for the * Query/AllContractState RPC method * * @generated from message cosmwasm.wasm.v1.QueryAllContractStateResponse */ export class QueryAllContractStateResponse extends Message { /** * @generated from field: repeated cosmwasm.wasm.v1.Model models = 1; */ models: Model[] = []; /** * pagination defines the pagination in the response. * * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; */ pagination?: PageResponse; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmwasm.wasm.v1.QueryAllContractStateResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "models", kind: "message", T: Model, repeated: true }, { no: 2, name: "pagination", kind: "message", T: PageResponse }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryAllContractStateResponse { return new QueryAllContractStateResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryAllContractStateResponse { return new QueryAllContractStateResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryAllContractStateResponse { return new QueryAllContractStateResponse().fromJsonString(jsonString, options); } static equals(a: QueryAllContractStateResponse | PlainMessage | undefined, b: QueryAllContractStateResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryAllContractStateResponse, a, b); } } /** * QueryRawContractStateRequest is the request type for the * Query/RawContractState RPC method * * @generated from message cosmwasm.wasm.v1.QueryRawContractStateRequest */ export class QueryRawContractStateRequest extends Message { /** * address is the address of the contract * * @generated from field: string address = 1; */ address = ""; /** * @generated from field: bytes query_data = 2; */ queryData = new Uint8Array(0); constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmwasm.wasm.v1.QueryRawContractStateRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "query_data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryRawContractStateRequest { return new QueryRawContractStateRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryRawContractStateRequest { return new QueryRawContractStateRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryRawContractStateRequest { return new QueryRawContractStateRequest().fromJsonString(jsonString, options); } static equals(a: QueryRawContractStateRequest | PlainMessage | undefined, b: QueryRawContractStateRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryRawContractStateRequest, a, b); } } /** * QueryRawContractStateResponse is the response type for the * Query/RawContractState RPC method * * @generated from message cosmwasm.wasm.v1.QueryRawContractStateResponse */ export class QueryRawContractStateResponse extends Message { /** * Data contains the raw store data * * @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.QueryRawContractStateResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryRawContractStateResponse { return new QueryRawContractStateResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryRawContractStateResponse { return new QueryRawContractStateResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryRawContractStateResponse { return new QueryRawContractStateResponse().fromJsonString(jsonString, options); } static equals(a: QueryRawContractStateResponse | PlainMessage | undefined, b: QueryRawContractStateResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryRawContractStateResponse, a, b); } } /** * QuerySmartContractStateRequest is the request type for the * Query/SmartContractState RPC method * * @generated from message cosmwasm.wasm.v1.QuerySmartContractStateRequest */ export class QuerySmartContractStateRequest extends Message { /** * address is the address of the contract * * @generated from field: string address = 1; */ address = ""; /** * QueryData contains the query data passed to the contract * * @generated from field: bytes query_data = 2; */ queryData = new Uint8Array(0); constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmwasm.wasm.v1.QuerySmartContractStateRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "query_data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QuerySmartContractStateRequest { return new QuerySmartContractStateRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QuerySmartContractStateRequest { return new QuerySmartContractStateRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QuerySmartContractStateRequest { return new QuerySmartContractStateRequest().fromJsonString(jsonString, options); } static equals(a: QuerySmartContractStateRequest | PlainMessage | undefined, b: QuerySmartContractStateRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QuerySmartContractStateRequest, a, b); } } /** * QuerySmartContractStateResponse is the response type for the * Query/SmartContractState RPC method * * @generated from message cosmwasm.wasm.v1.QuerySmartContractStateResponse */ export class QuerySmartContractStateResponse extends Message { /** * Data contains the json data returned from the smart 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.QuerySmartContractStateResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QuerySmartContractStateResponse { return new QuerySmartContractStateResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QuerySmartContractStateResponse { return new QuerySmartContractStateResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QuerySmartContractStateResponse { return new QuerySmartContractStateResponse().fromJsonString(jsonString, options); } static equals(a: QuerySmartContractStateResponse | PlainMessage | undefined, b: QuerySmartContractStateResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QuerySmartContractStateResponse, a, b); } } /** * QueryCodeRequest is the request type for the Query/Code RPC method * * @generated from message cosmwasm.wasm.v1.QueryCodeRequest */ export class QueryCodeRequest extends Message { /** * grpc-gateway_out does not support Go style CodID * * @generated from field: uint64 code_id = 1; */ codeId = protoInt64.zero; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmwasm.wasm.v1.QueryCodeRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "code_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryCodeRequest { return new QueryCodeRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryCodeRequest { return new QueryCodeRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryCodeRequest { return new QueryCodeRequest().fromJsonString(jsonString, options); } static equals(a: QueryCodeRequest | PlainMessage | undefined, b: QueryCodeRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryCodeRequest, a, b); } } /** * CodeInfoResponse contains code meta data from CodeInfo * * @generated from message cosmwasm.wasm.v1.CodeInfoResponse */ export class CodeInfoResponse extends Message { /** * id for legacy support * * @generated from field: uint64 code_id = 1; */ codeId = protoInt64.zero; /** * @generated from field: string creator = 2; */ creator = ""; /** * @generated from field: bytes data_hash = 3; */ dataHash = new Uint8Array(0); /** * @generated from field: cosmwasm.wasm.v1.AccessConfig instantiate_permission = 6; */ instantiatePermission?: AccessConfig; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmwasm.wasm.v1.CodeInfoResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "code_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 2, name: "creator", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "data_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, { no: 6, name: "instantiate_permission", kind: "message", T: AccessConfig }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): CodeInfoResponse { return new CodeInfoResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): CodeInfoResponse { return new CodeInfoResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): CodeInfoResponse { return new CodeInfoResponse().fromJsonString(jsonString, options); } static equals(a: CodeInfoResponse | PlainMessage | undefined, b: CodeInfoResponse | PlainMessage | undefined): boolean { return proto3.util.equals(CodeInfoResponse, a, b); } } /** * QueryCodeResponse is the response type for the Query/Code RPC method * * @generated from message cosmwasm.wasm.v1.QueryCodeResponse */ export class QueryCodeResponse extends Message { /** * @generated from field: cosmwasm.wasm.v1.CodeInfoResponse code_info = 1; */ codeInfo?: CodeInfoResponse; /** * @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.QueryCodeResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "code_info", kind: "message", T: CodeInfoResponse }, { no: 2, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryCodeResponse { return new QueryCodeResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryCodeResponse { return new QueryCodeResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryCodeResponse { return new QueryCodeResponse().fromJsonString(jsonString, options); } static equals(a: QueryCodeResponse | PlainMessage | undefined, b: QueryCodeResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryCodeResponse, a, b); } } /** * QueryCodesRequest is the request type for the Query/Codes RPC method * * @generated from message cosmwasm.wasm.v1.QueryCodesRequest */ export class QueryCodesRequest extends Message { /** * pagination defines an optional pagination for the request. * * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 1; */ pagination?: PageRequest; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmwasm.wasm.v1.QueryCodesRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "pagination", kind: "message", T: PageRequest }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryCodesRequest { return new QueryCodesRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryCodesRequest { return new QueryCodesRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryCodesRequest { return new QueryCodesRequest().fromJsonString(jsonString, options); } static equals(a: QueryCodesRequest | PlainMessage | undefined, b: QueryCodesRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryCodesRequest, a, b); } } /** * QueryCodesResponse is the response type for the Query/Codes RPC method * * @generated from message cosmwasm.wasm.v1.QueryCodesResponse */ export class QueryCodesResponse extends Message { /** * @generated from field: repeated cosmwasm.wasm.v1.CodeInfoResponse code_infos = 1; */ codeInfos: CodeInfoResponse[] = []; /** * pagination defines the pagination in the response. * * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; */ pagination?: PageResponse; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmwasm.wasm.v1.QueryCodesResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "code_infos", kind: "message", T: CodeInfoResponse, repeated: true }, { no: 2, name: "pagination", kind: "message", T: PageResponse }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryCodesResponse { return new QueryCodesResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryCodesResponse { return new QueryCodesResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryCodesResponse { return new QueryCodesResponse().fromJsonString(jsonString, options); } static equals(a: QueryCodesResponse | PlainMessage | undefined, b: QueryCodesResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryCodesResponse, a, b); } } /** * QueryPinnedCodesRequest is the request type for the Query/PinnedCodes * RPC method * * @generated from message cosmwasm.wasm.v1.QueryPinnedCodesRequest */ export class QueryPinnedCodesRequest extends Message { /** * pagination defines an optional pagination for the request. * * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; */ pagination?: PageRequest; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmwasm.wasm.v1.QueryPinnedCodesRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 2, name: "pagination", kind: "message", T: PageRequest }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryPinnedCodesRequest { return new QueryPinnedCodesRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryPinnedCodesRequest { return new QueryPinnedCodesRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryPinnedCodesRequest { return new QueryPinnedCodesRequest().fromJsonString(jsonString, options); } static equals(a: QueryPinnedCodesRequest | PlainMessage | undefined, b: QueryPinnedCodesRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryPinnedCodesRequest, a, b); } } /** * QueryPinnedCodesResponse is the response type for the * Query/PinnedCodes RPC method * * @generated from message cosmwasm.wasm.v1.QueryPinnedCodesResponse */ export class QueryPinnedCodesResponse extends Message { /** * @generated from field: repeated uint64 code_ids = 1; */ codeIds: bigint[] = []; /** * pagination defines the pagination in the response. * * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; */ pagination?: PageResponse; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmwasm.wasm.v1.QueryPinnedCodesResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "code_ids", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, { no: 2, name: "pagination", kind: "message", T: PageResponse }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryPinnedCodesResponse { return new QueryPinnedCodesResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryPinnedCodesResponse { return new QueryPinnedCodesResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryPinnedCodesResponse { return new QueryPinnedCodesResponse().fromJsonString(jsonString, options); } static equals(a: QueryPinnedCodesResponse | PlainMessage | undefined, b: QueryPinnedCodesResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryPinnedCodesResponse, a, b); } } /** * QueryParamsRequest is the request type for the Query/Params RPC method. * * @generated from message cosmwasm.wasm.v1.QueryParamsRequest */ export class QueryParamsRequest extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmwasm.wasm.v1.QueryParamsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest { return new QueryParamsRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest { return new QueryParamsRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest { return new QueryParamsRequest().fromJsonString(jsonString, options); } static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryParamsRequest, a, b); } } /** * QueryParamsResponse is the response type for the Query/Params RPC method. * * @generated from message cosmwasm.wasm.v1.QueryParamsResponse */ export class QueryParamsResponse extends Message { /** * params defines the parameters of the module. * * @generated from field: cosmwasm.wasm.v1.Params params = 1; */ params?: Params; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmwasm.wasm.v1.QueryParamsResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "params", kind: "message", T: Params }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse { return new QueryParamsResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse { return new QueryParamsResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse { return new QueryParamsResponse().fromJsonString(jsonString, options); } static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryParamsResponse, a, b); } } /** * QueryContractsByCreatorRequest is the request type for the * Query/ContractsByCreator RPC method. * * @generated from message cosmwasm.wasm.v1.QueryContractsByCreatorRequest */ export class QueryContractsByCreatorRequest extends Message { /** * CreatorAddress is the address of contract creator * * @generated from field: string creator_address = 1; */ creatorAddress = ""; /** * Pagination defines an optional pagination for the request. * * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; */ pagination?: PageRequest; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmwasm.wasm.v1.QueryContractsByCreatorRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "creator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "pagination", kind: "message", T: PageRequest }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryContractsByCreatorRequest { return new QueryContractsByCreatorRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryContractsByCreatorRequest { return new QueryContractsByCreatorRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryContractsByCreatorRequest { return new QueryContractsByCreatorRequest().fromJsonString(jsonString, options); } static equals(a: QueryContractsByCreatorRequest | PlainMessage | undefined, b: QueryContractsByCreatorRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryContractsByCreatorRequest, a, b); } } /** * QueryContractsByCreatorResponse is the response type for the * Query/ContractsByCreator RPC method. * * @generated from message cosmwasm.wasm.v1.QueryContractsByCreatorResponse */ export class QueryContractsByCreatorResponse extends Message { /** * ContractAddresses result set * * @generated from field: repeated string contract_addresses = 1; */ contractAddresses: string[] = []; /** * Pagination defines the pagination in the response. * * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; */ pagination?: PageResponse; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmwasm.wasm.v1.QueryContractsByCreatorResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "contract_addresses", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, { no: 2, name: "pagination", kind: "message", T: PageResponse }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryContractsByCreatorResponse { return new QueryContractsByCreatorResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryContractsByCreatorResponse { return new QueryContractsByCreatorResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryContractsByCreatorResponse { return new QueryContractsByCreatorResponse().fromJsonString(jsonString, options); } static equals(a: QueryContractsByCreatorResponse | PlainMessage | undefined, b: QueryContractsByCreatorResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryContractsByCreatorResponse, a, b); } } /** * QueryBuildAddressRequest is the request type for the Query/BuildAddress RPC * method. * * @generated from message cosmwasm.wasm.v1.QueryBuildAddressRequest */ export class QueryBuildAddressRequest extends Message { /** * CodeHash is the hash of the code * * @generated from field: string code_hash = 1; */ codeHash = ""; /** * CreatorAddress is the address of the contract instantiator * * @generated from field: string creator_address = 2; */ creatorAddress = ""; /** * Salt is a hex encoded salt * * @generated from field: string salt = 3; */ salt = ""; /** * InitArgs are optional json encoded init args to be used in contract address * building if provided * * @generated from field: bytes init_args = 4; */ initArgs = new Uint8Array(0); constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmwasm.wasm.v1.QueryBuildAddressRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "code_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "creator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "salt", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "init_args", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryBuildAddressRequest { return new QueryBuildAddressRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryBuildAddressRequest { return new QueryBuildAddressRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryBuildAddressRequest { return new QueryBuildAddressRequest().fromJsonString(jsonString, options); } static equals(a: QueryBuildAddressRequest | PlainMessage | undefined, b: QueryBuildAddressRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryBuildAddressRequest, a, b); } } /** * QueryBuildAddressResponse is the response type for the Query/BuildAddress RPC * method. * * @generated from message cosmwasm.wasm.v1.QueryBuildAddressResponse */ export class QueryBuildAddressResponse extends Message { /** * Address is the contract address * * @generated from field: string address = 1; */ address = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmwasm.wasm.v1.QueryBuildAddressResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryBuildAddressResponse { return new QueryBuildAddressResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryBuildAddressResponse { return new QueryBuildAddressResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryBuildAddressResponse { return new QueryBuildAddressResponse().fromJsonString(jsonString, options); } static equals(a: QueryBuildAddressResponse | PlainMessage | undefined, b: QueryBuildAddressResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryBuildAddressResponse, a, b); } }