// @generated by protoc-gen-es v1.3.1 with parameter "target=ts" // @generated from file evmos/erc20/v1/query.proto (package evmos.erc20.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3 } from "@bufbuild/protobuf"; import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination_pb.js"; import { TokenPair } from "./erc20_pb.js"; import { Params } from "./genesis_pb.js"; /** * QueryTokenPairsRequest is the request type for the Query/TokenPairs RPC * method. * * @generated from message evmos.erc20.v1.QueryTokenPairsRequest */ export class QueryTokenPairsRequest 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 = "evmos.erc20.v1.QueryTokenPairsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "pagination", kind: "message", T: PageRequest }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryTokenPairsRequest { return new QueryTokenPairsRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryTokenPairsRequest { return new QueryTokenPairsRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryTokenPairsRequest { return new QueryTokenPairsRequest().fromJsonString(jsonString, options); } static equals(a: QueryTokenPairsRequest | PlainMessage | undefined, b: QueryTokenPairsRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryTokenPairsRequest, a, b); } } /** * QueryTokenPairsResponse is the response type for the Query/TokenPairs RPC * method. * * @generated from message evmos.erc20.v1.QueryTokenPairsResponse */ export class QueryTokenPairsResponse extends Message { /** * token_pairs is a slice of registered token pairs for the erc20 module * * @generated from field: repeated evmos.erc20.v1.TokenPair token_pairs = 1; */ tokenPairs: TokenPair[] = []; /** * 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 = "evmos.erc20.v1.QueryTokenPairsResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "token_pairs", kind: "message", T: TokenPair, repeated: true }, { no: 2, name: "pagination", kind: "message", T: PageResponse }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryTokenPairsResponse { return new QueryTokenPairsResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryTokenPairsResponse { return new QueryTokenPairsResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryTokenPairsResponse { return new QueryTokenPairsResponse().fromJsonString(jsonString, options); } static equals(a: QueryTokenPairsResponse | PlainMessage | undefined, b: QueryTokenPairsResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryTokenPairsResponse, a, b); } } /** * QueryTokenPairRequest is the request type for the Query/TokenPair RPC method. * * @generated from message evmos.erc20.v1.QueryTokenPairRequest */ export class QueryTokenPairRequest extends Message { /** * token identifier can be either the hex contract address of the ERC20 or the * Cosmos base denomination * * @generated from field: string token = 1; */ token = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "evmos.erc20.v1.QueryTokenPairRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryTokenPairRequest { return new QueryTokenPairRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryTokenPairRequest { return new QueryTokenPairRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryTokenPairRequest { return new QueryTokenPairRequest().fromJsonString(jsonString, options); } static equals(a: QueryTokenPairRequest | PlainMessage | undefined, b: QueryTokenPairRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryTokenPairRequest, a, b); } } /** * QueryTokenPairResponse is the response type for the Query/TokenPair RPC * method. * * @generated from message evmos.erc20.v1.QueryTokenPairResponse */ export class QueryTokenPairResponse extends Message { /** * token_pairs returns the info about a registered token pair for the erc20 * module * * @generated from field: evmos.erc20.v1.TokenPair token_pair = 1; */ tokenPair?: TokenPair; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "evmos.erc20.v1.QueryTokenPairResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "token_pair", kind: "message", T: TokenPair }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryTokenPairResponse { return new QueryTokenPairResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryTokenPairResponse { return new QueryTokenPairResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryTokenPairResponse { return new QueryTokenPairResponse().fromJsonString(jsonString, options); } static equals(a: QueryTokenPairResponse | PlainMessage | undefined, b: QueryTokenPairResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryTokenPairResponse, a, b); } } /** * QueryParamsRequest is the request type for the Query/Params RPC method. * * @generated from message evmos.erc20.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 = "evmos.erc20.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 evmos.erc20.v1.QueryParamsResponse */ export class QueryParamsResponse extends Message { /** * params are the erc20 module parameters * * @generated from field: evmos.erc20.v1.Params params = 1; */ params?: Params; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "evmos.erc20.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); } }