// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" // @generated from file cosmos/nft/v1beta1/query.proto (package cosmos.nft.v1beta1, 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 { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination_pb.js"; import { Class, NFT } from "./nft_pb.js"; /** * QueryBalanceRequest is the request type for the Query/Balance RPC method * * @generated from message cosmos.nft.v1beta1.QueryBalanceRequest */ export class QueryBalanceRequest extends Message { /** * class_id associated with the nft * * @generated from field: string class_id = 1; */ classId = ""; /** * owner is the owner address of the nft * * @generated from field: string owner = 2; */ owner = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.nft.v1beta1.QueryBalanceRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "class_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryBalanceRequest { return new QueryBalanceRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryBalanceRequest { return new QueryBalanceRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryBalanceRequest { return new QueryBalanceRequest().fromJsonString(jsonString, options); } static equals(a: QueryBalanceRequest | PlainMessage | undefined, b: QueryBalanceRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryBalanceRequest, a, b); } } /** * QueryBalanceResponse is the response type for the Query/Balance RPC method * * @generated from message cosmos.nft.v1beta1.QueryBalanceResponse */ export class QueryBalanceResponse extends Message { /** * amount is the number of all NFTs of a given class owned by the owner * * @generated from field: uint64 amount = 1; */ amount = protoInt64.zero; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.nft.v1beta1.QueryBalanceResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "amount", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryBalanceResponse { return new QueryBalanceResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryBalanceResponse { return new QueryBalanceResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryBalanceResponse { return new QueryBalanceResponse().fromJsonString(jsonString, options); } static equals(a: QueryBalanceResponse | PlainMessage | undefined, b: QueryBalanceResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryBalanceResponse, a, b); } } /** * QueryOwnerRequest is the request type for the Query/Owner RPC method * * @generated from message cosmos.nft.v1beta1.QueryOwnerRequest */ export class QueryOwnerRequest extends Message { /** * class_id associated with the nft * * @generated from field: string class_id = 1; */ classId = ""; /** * id is a unique identifier of the NFT * * @generated from field: string id = 2; */ id = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.nft.v1beta1.QueryOwnerRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "class_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryOwnerRequest { return new QueryOwnerRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryOwnerRequest { return new QueryOwnerRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryOwnerRequest { return new QueryOwnerRequest().fromJsonString(jsonString, options); } static equals(a: QueryOwnerRequest | PlainMessage | undefined, b: QueryOwnerRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryOwnerRequest, a, b); } } /** * QueryOwnerResponse is the response type for the Query/Owner RPC method * * @generated from message cosmos.nft.v1beta1.QueryOwnerResponse */ export class QueryOwnerResponse extends Message { /** * owner is the owner address of the nft * * @generated from field: string owner = 1; */ owner = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.nft.v1beta1.QueryOwnerResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryOwnerResponse { return new QueryOwnerResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryOwnerResponse { return new QueryOwnerResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryOwnerResponse { return new QueryOwnerResponse().fromJsonString(jsonString, options); } static equals(a: QueryOwnerResponse | PlainMessage | undefined, b: QueryOwnerResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryOwnerResponse, a, b); } } /** * QuerySupplyRequest is the request type for the Query/Supply RPC method * * @generated from message cosmos.nft.v1beta1.QuerySupplyRequest */ export class QuerySupplyRequest extends Message { /** * class_id associated with the nft * * @generated from field: string class_id = 1; */ classId = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.nft.v1beta1.QuerySupplyRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "class_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QuerySupplyRequest { return new QuerySupplyRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QuerySupplyRequest { return new QuerySupplyRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QuerySupplyRequest { return new QuerySupplyRequest().fromJsonString(jsonString, options); } static equals(a: QuerySupplyRequest | PlainMessage | undefined, b: QuerySupplyRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QuerySupplyRequest, a, b); } } /** * QuerySupplyResponse is the response type for the Query/Supply RPC method * * @generated from message cosmos.nft.v1beta1.QuerySupplyResponse */ export class QuerySupplyResponse extends Message { /** * amount is the number of all NFTs from the given class * * @generated from field: uint64 amount = 1; */ amount = protoInt64.zero; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.nft.v1beta1.QuerySupplyResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "amount", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QuerySupplyResponse { return new QuerySupplyResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QuerySupplyResponse { return new QuerySupplyResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QuerySupplyResponse { return new QuerySupplyResponse().fromJsonString(jsonString, options); } static equals(a: QuerySupplyResponse | PlainMessage | undefined, b: QuerySupplyResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QuerySupplyResponse, a, b); } } /** * QueryNFTstRequest is the request type for the Query/NFTs RPC method * * @generated from message cosmos.nft.v1beta1.QueryNFTsRequest */ export class QueryNFTsRequest extends Message { /** * class_id associated with the nft * * @generated from field: string class_id = 1; */ classId = ""; /** * owner is the owner address of the nft * * @generated from field: string owner = 2; */ owner = ""; /** * pagination defines an optional pagination for the request. * * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 3; */ pagination?: PageRequest; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.nft.v1beta1.QueryNFTsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "class_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "pagination", kind: "message", T: PageRequest }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryNFTsRequest { return new QueryNFTsRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryNFTsRequest { return new QueryNFTsRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryNFTsRequest { return new QueryNFTsRequest().fromJsonString(jsonString, options); } static equals(a: QueryNFTsRequest | PlainMessage | undefined, b: QueryNFTsRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryNFTsRequest, a, b); } } /** * QueryNFTsResponse is the response type for the Query/NFTs RPC methods * * @generated from message cosmos.nft.v1beta1.QueryNFTsResponse */ export class QueryNFTsResponse extends Message { /** * NFT defines the NFT * * @generated from field: repeated cosmos.nft.v1beta1.NFT nfts = 1; */ nfts: NFT[] = []; /** * 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 = "cosmos.nft.v1beta1.QueryNFTsResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "nfts", kind: "message", T: NFT, repeated: true }, { no: 2, name: "pagination", kind: "message", T: PageResponse }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryNFTsResponse { return new QueryNFTsResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryNFTsResponse { return new QueryNFTsResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryNFTsResponse { return new QueryNFTsResponse().fromJsonString(jsonString, options); } static equals(a: QueryNFTsResponse | PlainMessage | undefined, b: QueryNFTsResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryNFTsResponse, a, b); } } /** * QueryNFTRequest is the request type for the Query/NFT RPC method * * @generated from message cosmos.nft.v1beta1.QueryNFTRequest */ export class QueryNFTRequest extends Message { /** * class_id associated with the nft * * @generated from field: string class_id = 1; */ classId = ""; /** * id is a unique identifier of the NFT * * @generated from field: string id = 2; */ id = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.nft.v1beta1.QueryNFTRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "class_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryNFTRequest { return new QueryNFTRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryNFTRequest { return new QueryNFTRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryNFTRequest { return new QueryNFTRequest().fromJsonString(jsonString, options); } static equals(a: QueryNFTRequest | PlainMessage | undefined, b: QueryNFTRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryNFTRequest, a, b); } } /** * QueryNFTResponse is the response type for the Query/NFT RPC method * * @generated from message cosmos.nft.v1beta1.QueryNFTResponse */ export class QueryNFTResponse extends Message { /** * owner is the owner address of the nft * * @generated from field: cosmos.nft.v1beta1.NFT nft = 1; */ nft?: NFT; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.nft.v1beta1.QueryNFTResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "nft", kind: "message", T: NFT }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryNFTResponse { return new QueryNFTResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryNFTResponse { return new QueryNFTResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryNFTResponse { return new QueryNFTResponse().fromJsonString(jsonString, options); } static equals(a: QueryNFTResponse | PlainMessage | undefined, b: QueryNFTResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryNFTResponse, a, b); } } /** * QueryClassRequest is the request type for the Query/Class RPC method * * @generated from message cosmos.nft.v1beta1.QueryClassRequest */ export class QueryClassRequest extends Message { /** * class_id associated with the nft * * @generated from field: string class_id = 1; */ classId = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.nft.v1beta1.QueryClassRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "class_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryClassRequest { return new QueryClassRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryClassRequest { return new QueryClassRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryClassRequest { return new QueryClassRequest().fromJsonString(jsonString, options); } static equals(a: QueryClassRequest | PlainMessage | undefined, b: QueryClassRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryClassRequest, a, b); } } /** * QueryClassResponse is the response type for the Query/Class RPC method * * @generated from message cosmos.nft.v1beta1.QueryClassResponse */ export class QueryClassResponse extends Message { /** * class defines the class of the nft type. * * @generated from field: cosmos.nft.v1beta1.Class class = 1; */ class?: Class; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "cosmos.nft.v1beta1.QueryClassResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "class", kind: "message", T: Class }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryClassResponse { return new QueryClassResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryClassResponse { return new QueryClassResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryClassResponse { return new QueryClassResponse().fromJsonString(jsonString, options); } static equals(a: QueryClassResponse | PlainMessage | undefined, b: QueryClassResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryClassResponse, a, b); } } /** * QueryClassesRequest is the request type for the Query/Classes RPC method * * @generated from message cosmos.nft.v1beta1.QueryClassesRequest */ export class QueryClassesRequest 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 = "cosmos.nft.v1beta1.QueryClassesRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "pagination", kind: "message", T: PageRequest }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryClassesRequest { return new QueryClassesRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryClassesRequest { return new QueryClassesRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryClassesRequest { return new QueryClassesRequest().fromJsonString(jsonString, options); } static equals(a: QueryClassesRequest | PlainMessage | undefined, b: QueryClassesRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryClassesRequest, a, b); } } /** * QueryClassesResponse is the response type for the Query/Classes RPC method * * @generated from message cosmos.nft.v1beta1.QueryClassesResponse */ export class QueryClassesResponse extends Message { /** * class defines the class of the nft type. * * @generated from field: repeated cosmos.nft.v1beta1.Class classes = 1; */ classes: Class[] = []; /** * 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 = "cosmos.nft.v1beta1.QueryClassesResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "classes", kind: "message", T: Class, repeated: true }, { no: 2, name: "pagination", kind: "message", T: PageResponse }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryClassesResponse { return new QueryClassesResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryClassesResponse { return new QueryClassesResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryClassesResponse { return new QueryClassesResponse().fromJsonString(jsonString, options); } static equals(a: QueryClassesResponse | PlainMessage | undefined, b: QueryClassesResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryClassesResponse, a, b); } }