// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" // @generated from file osmosis/gamm/v1beta1/query.proto (package dymensionxyz.dymension.gamm.v1beta1, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Any, Message, proto3, protoInt64 } from "@bufbuild/protobuf"; import { Params } from "./genesis_pb.js"; import { PageRequest, PageResponse } from "../../../cosmos/base/query/v1beta1/pagination_pb.js"; import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; import { SwapAmountInRoute, SwapAmountOutRoute } from "../../poolmanager/v1beta1/swap_route_pb.js"; /** * ================================================== Params * * @generated from message dymensionxyz.dymension.gamm.v1beta1.QueryParamsRequest */ export class QueryParamsRequest extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "dymensionxyz.dymension.gamm.v1beta1.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); } } /** * @generated from message dymensionxyz.dymension.gamm.v1beta1.QueryParamsResponse */ export class QueryParamsResponse extends Message { /** * @generated from field: dymensionxyz.dymension.gamm.v1beta1.Params params = 1; */ params?: Params; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "dymensionxyz.dymension.gamm.v1beta1.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); } } /** * =============================== Pool * * @generated from message dymensionxyz.dymension.gamm.v1beta1.QueryPoolRequest */ export class QueryPoolRequest extends Message { /** * @generated from field: uint64 pool_id = 1; */ poolId = protoInt64.zero; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "dymensionxyz.dymension.gamm.v1beta1.QueryPoolRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryPoolRequest { return new QueryPoolRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryPoolRequest { return new QueryPoolRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryPoolRequest { return new QueryPoolRequest().fromJsonString(jsonString, options); } static equals(a: QueryPoolRequest | PlainMessage | undefined, b: QueryPoolRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryPoolRequest, a, b); } } /** * @generated from message dymensionxyz.dymension.gamm.v1beta1.QueryPoolResponse */ export class QueryPoolResponse extends Message { /** * @generated from field: google.protobuf.Any pool = 1; */ pool?: Any; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "dymensionxyz.dymension.gamm.v1beta1.QueryPoolResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "pool", kind: "message", T: Any }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryPoolResponse { return new QueryPoolResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryPoolResponse { return new QueryPoolResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryPoolResponse { return new QueryPoolResponse().fromJsonString(jsonString, options); } static equals(a: QueryPoolResponse | PlainMessage | undefined, b: QueryPoolResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryPoolResponse, a, b); } } /** * =============================== Pools * * @generated from message dymensionxyz.dymension.gamm.v1beta1.QueryPoolsRequest */ export class QueryPoolsRequest 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 = "dymensionxyz.dymension.gamm.v1beta1.QueryPoolsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 2, name: "pagination", kind: "message", T: PageRequest }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryPoolsRequest { return new QueryPoolsRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryPoolsRequest { return new QueryPoolsRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryPoolsRequest { return new QueryPoolsRequest().fromJsonString(jsonString, options); } static equals(a: QueryPoolsRequest | PlainMessage | undefined, b: QueryPoolsRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryPoolsRequest, a, b); } } /** * @generated from message dymensionxyz.dymension.gamm.v1beta1.QueryPoolsResponse */ export class QueryPoolsResponse extends Message { /** * @generated from field: repeated google.protobuf.Any pools = 1; */ pools: Any[] = []; /** * 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 = "dymensionxyz.dymension.gamm.v1beta1.QueryPoolsResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "pools", kind: "message", T: Any, repeated: true }, { no: 2, name: "pagination", kind: "message", T: PageResponse }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryPoolsResponse { return new QueryPoolsResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryPoolsResponse { return new QueryPoolsResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryPoolsResponse { return new QueryPoolsResponse().fromJsonString(jsonString, options); } static equals(a: QueryPoolsResponse | PlainMessage | undefined, b: QueryPoolsResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryPoolsResponse, a, b); } } /** * =============================== NumPools * * @generated from message dymensionxyz.dymension.gamm.v1beta1.QueryNumPoolsRequest * @deprecated */ export class QueryNumPoolsRequest extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "dymensionxyz.dymension.gamm.v1beta1.QueryNumPoolsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryNumPoolsRequest { return new QueryNumPoolsRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryNumPoolsRequest { return new QueryNumPoolsRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryNumPoolsRequest { return new QueryNumPoolsRequest().fromJsonString(jsonString, options); } static equals(a: QueryNumPoolsRequest | PlainMessage | undefined, b: QueryNumPoolsRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryNumPoolsRequest, a, b); } } /** * @generated from message dymensionxyz.dymension.gamm.v1beta1.QueryNumPoolsResponse * @deprecated */ export class QueryNumPoolsResponse extends Message { /** * @generated from field: uint64 num_pools = 1; */ numPools = protoInt64.zero; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "dymensionxyz.dymension.gamm.v1beta1.QueryNumPoolsResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "num_pools", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryNumPoolsResponse { return new QueryNumPoolsResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryNumPoolsResponse { return new QueryNumPoolsResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryNumPoolsResponse { return new QueryNumPoolsResponse().fromJsonString(jsonString, options); } static equals(a: QueryNumPoolsResponse | PlainMessage | undefined, b: QueryNumPoolsResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryNumPoolsResponse, a, b); } } /** * =============================== CalcJoinPoolShares * * @generated from message dymensionxyz.dymension.gamm.v1beta1.QueryCalcJoinPoolSharesRequest */ export class QueryCalcJoinPoolSharesRequest extends Message { /** * @generated from field: uint64 pool_id = 1; */ poolId = protoInt64.zero; /** * @generated from field: repeated cosmos.base.v1beta1.Coin tokens_in = 2; */ tokensIn: Coin[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "dymensionxyz.dymension.gamm.v1beta1.QueryCalcJoinPoolSharesRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 2, name: "tokens_in", kind: "message", T: Coin, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryCalcJoinPoolSharesRequest { return new QueryCalcJoinPoolSharesRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryCalcJoinPoolSharesRequest { return new QueryCalcJoinPoolSharesRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryCalcJoinPoolSharesRequest { return new QueryCalcJoinPoolSharesRequest().fromJsonString(jsonString, options); } static equals(a: QueryCalcJoinPoolSharesRequest | PlainMessage | undefined, b: QueryCalcJoinPoolSharesRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryCalcJoinPoolSharesRequest, a, b); } } /** * @generated from message dymensionxyz.dymension.gamm.v1beta1.QueryCalcJoinPoolSharesResponse */ export class QueryCalcJoinPoolSharesResponse extends Message { /** * @generated from field: string share_out_amount = 1; */ shareOutAmount = ""; /** * @generated from field: repeated cosmos.base.v1beta1.Coin tokens_out = 2; */ tokensOut: Coin[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "dymensionxyz.dymension.gamm.v1beta1.QueryCalcJoinPoolSharesResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "share_out_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "tokens_out", kind: "message", T: Coin, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryCalcJoinPoolSharesResponse { return new QueryCalcJoinPoolSharesResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryCalcJoinPoolSharesResponse { return new QueryCalcJoinPoolSharesResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryCalcJoinPoolSharesResponse { return new QueryCalcJoinPoolSharesResponse().fromJsonString(jsonString, options); } static equals(a: QueryCalcJoinPoolSharesResponse | PlainMessage | undefined, b: QueryCalcJoinPoolSharesResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryCalcJoinPoolSharesResponse, a, b); } } /** * =============================== CalcExitPoolCoinsFromShares * * @generated from message dymensionxyz.dymension.gamm.v1beta1.QueryCalcExitPoolCoinsFromSharesRequest */ export class QueryCalcExitPoolCoinsFromSharesRequest extends Message { /** * @generated from field: uint64 pool_id = 1; */ poolId = protoInt64.zero; /** * @generated from field: string share_in_amount = 2; */ shareInAmount = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "dymensionxyz.dymension.gamm.v1beta1.QueryCalcExitPoolCoinsFromSharesRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 2, name: "share_in_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryCalcExitPoolCoinsFromSharesRequest { return new QueryCalcExitPoolCoinsFromSharesRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryCalcExitPoolCoinsFromSharesRequest { return new QueryCalcExitPoolCoinsFromSharesRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryCalcExitPoolCoinsFromSharesRequest { return new QueryCalcExitPoolCoinsFromSharesRequest().fromJsonString(jsonString, options); } static equals(a: QueryCalcExitPoolCoinsFromSharesRequest | PlainMessage | undefined, b: QueryCalcExitPoolCoinsFromSharesRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryCalcExitPoolCoinsFromSharesRequest, a, b); } } /** * @generated from message dymensionxyz.dymension.gamm.v1beta1.QueryCalcExitPoolCoinsFromSharesResponse */ export class QueryCalcExitPoolCoinsFromSharesResponse extends Message { /** * @generated from field: repeated cosmos.base.v1beta1.Coin tokens_out = 1; */ tokensOut: Coin[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "dymensionxyz.dymension.gamm.v1beta1.QueryCalcExitPoolCoinsFromSharesResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "tokens_out", kind: "message", T: Coin, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryCalcExitPoolCoinsFromSharesResponse { return new QueryCalcExitPoolCoinsFromSharesResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryCalcExitPoolCoinsFromSharesResponse { return new QueryCalcExitPoolCoinsFromSharesResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryCalcExitPoolCoinsFromSharesResponse { return new QueryCalcExitPoolCoinsFromSharesResponse().fromJsonString(jsonString, options); } static equals(a: QueryCalcExitPoolCoinsFromSharesResponse | PlainMessage | undefined, b: QueryCalcExitPoolCoinsFromSharesResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryCalcExitPoolCoinsFromSharesResponse, a, b); } } /** * =============================== PoolParams * * @generated from message dymensionxyz.dymension.gamm.v1beta1.QueryPoolParamsRequest */ export class QueryPoolParamsRequest extends Message { /** * @generated from field: uint64 pool_id = 1; */ poolId = protoInt64.zero; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "dymensionxyz.dymension.gamm.v1beta1.QueryPoolParamsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryPoolParamsRequest { return new QueryPoolParamsRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryPoolParamsRequest { return new QueryPoolParamsRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryPoolParamsRequest { return new QueryPoolParamsRequest().fromJsonString(jsonString, options); } static equals(a: QueryPoolParamsRequest | PlainMessage | undefined, b: QueryPoolParamsRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryPoolParamsRequest, a, b); } } /** * @generated from message dymensionxyz.dymension.gamm.v1beta1.QueryPoolParamsResponse */ export class QueryPoolParamsResponse extends Message { /** * @generated from field: google.protobuf.Any params = 1; */ params?: Any; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "dymensionxyz.dymension.gamm.v1beta1.QueryPoolParamsResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "params", kind: "message", T: Any }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryPoolParamsResponse { return new QueryPoolParamsResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryPoolParamsResponse { return new QueryPoolParamsResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryPoolParamsResponse { return new QueryPoolParamsResponse().fromJsonString(jsonString, options); } static equals(a: QueryPoolParamsResponse | PlainMessage | undefined, b: QueryPoolParamsResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryPoolParamsResponse, a, b); } } /** * =============================== PoolLiquidity * * @generated from message dymensionxyz.dymension.gamm.v1beta1.QueryTotalPoolLiquidityRequest */ export class QueryTotalPoolLiquidityRequest extends Message { /** * @generated from field: uint64 pool_id = 1; */ poolId = protoInt64.zero; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "dymensionxyz.dymension.gamm.v1beta1.QueryTotalPoolLiquidityRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalPoolLiquidityRequest { return new QueryTotalPoolLiquidityRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalPoolLiquidityRequest { return new QueryTotalPoolLiquidityRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryTotalPoolLiquidityRequest { return new QueryTotalPoolLiquidityRequest().fromJsonString(jsonString, options); } static equals(a: QueryTotalPoolLiquidityRequest | PlainMessage | undefined, b: QueryTotalPoolLiquidityRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryTotalPoolLiquidityRequest, a, b); } } /** * @generated from message dymensionxyz.dymension.gamm.v1beta1.QueryTotalPoolLiquidityResponse */ export class QueryTotalPoolLiquidityResponse extends Message { /** * @generated from field: repeated cosmos.base.v1beta1.Coin liquidity = 1; */ liquidity: Coin[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "dymensionxyz.dymension.gamm.v1beta1.QueryTotalPoolLiquidityResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "liquidity", kind: "message", T: Coin, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalPoolLiquidityResponse { return new QueryTotalPoolLiquidityResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalPoolLiquidityResponse { return new QueryTotalPoolLiquidityResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryTotalPoolLiquidityResponse { return new QueryTotalPoolLiquidityResponse().fromJsonString(jsonString, options); } static equals(a: QueryTotalPoolLiquidityResponse | PlainMessage | undefined, b: QueryTotalPoolLiquidityResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryTotalPoolLiquidityResponse, a, b); } } /** * =============================== TotalShares * * @generated from message dymensionxyz.dymension.gamm.v1beta1.QueryTotalSharesRequest */ export class QueryTotalSharesRequest extends Message { /** * @generated from field: uint64 pool_id = 1; */ poolId = protoInt64.zero; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "dymensionxyz.dymension.gamm.v1beta1.QueryTotalSharesRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalSharesRequest { return new QueryTotalSharesRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalSharesRequest { return new QueryTotalSharesRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryTotalSharesRequest { return new QueryTotalSharesRequest().fromJsonString(jsonString, options); } static equals(a: QueryTotalSharesRequest | PlainMessage | undefined, b: QueryTotalSharesRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryTotalSharesRequest, a, b); } } /** * @generated from message dymensionxyz.dymension.gamm.v1beta1.QueryTotalSharesResponse */ export class QueryTotalSharesResponse extends Message { /** * @generated from field: cosmos.base.v1beta1.Coin total_shares = 1; */ totalShares?: Coin; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "dymensionxyz.dymension.gamm.v1beta1.QueryTotalSharesResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "total_shares", kind: "message", T: Coin }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalSharesResponse { return new QueryTotalSharesResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalSharesResponse { return new QueryTotalSharesResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryTotalSharesResponse { return new QueryTotalSharesResponse().fromJsonString(jsonString, options); } static equals(a: QueryTotalSharesResponse | PlainMessage | undefined, b: QueryTotalSharesResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryTotalSharesResponse, a, b); } } /** * =============================== CalcJoinPoolNoSwapShares * * @generated from message dymensionxyz.dymension.gamm.v1beta1.QueryCalcJoinPoolNoSwapSharesRequest */ export class QueryCalcJoinPoolNoSwapSharesRequest extends Message { /** * @generated from field: uint64 pool_id = 1; */ poolId = protoInt64.zero; /** * @generated from field: repeated cosmos.base.v1beta1.Coin tokens_in = 2; */ tokensIn: Coin[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "dymensionxyz.dymension.gamm.v1beta1.QueryCalcJoinPoolNoSwapSharesRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 2, name: "tokens_in", kind: "message", T: Coin, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryCalcJoinPoolNoSwapSharesRequest { return new QueryCalcJoinPoolNoSwapSharesRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryCalcJoinPoolNoSwapSharesRequest { return new QueryCalcJoinPoolNoSwapSharesRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryCalcJoinPoolNoSwapSharesRequest { return new QueryCalcJoinPoolNoSwapSharesRequest().fromJsonString(jsonString, options); } static equals(a: QueryCalcJoinPoolNoSwapSharesRequest | PlainMessage | undefined, b: QueryCalcJoinPoolNoSwapSharesRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryCalcJoinPoolNoSwapSharesRequest, a, b); } } /** * @generated from message dymensionxyz.dymension.gamm.v1beta1.QueryCalcJoinPoolNoSwapSharesResponse */ export class QueryCalcJoinPoolNoSwapSharesResponse extends Message { /** * @generated from field: repeated cosmos.base.v1beta1.Coin tokens_out = 1; */ tokensOut: Coin[] = []; /** * @generated from field: string shares_out = 2; */ sharesOut = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "dymensionxyz.dymension.gamm.v1beta1.QueryCalcJoinPoolNoSwapSharesResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "tokens_out", kind: "message", T: Coin, repeated: true }, { no: 2, name: "shares_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryCalcJoinPoolNoSwapSharesResponse { return new QueryCalcJoinPoolNoSwapSharesResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryCalcJoinPoolNoSwapSharesResponse { return new QueryCalcJoinPoolNoSwapSharesResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryCalcJoinPoolNoSwapSharesResponse { return new QueryCalcJoinPoolNoSwapSharesResponse().fromJsonString(jsonString, options); } static equals(a: QueryCalcJoinPoolNoSwapSharesResponse | PlainMessage | undefined, b: QueryCalcJoinPoolNoSwapSharesResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryCalcJoinPoolNoSwapSharesResponse, a, b); } } /** * QuerySpotPriceRequest defines the gRPC request structure for a SpotPrice * query. * * @generated from message dymensionxyz.dymension.gamm.v1beta1.QuerySpotPriceRequest * @deprecated */ export class QuerySpotPriceRequest extends Message { /** * @generated from field: uint64 pool_id = 1; */ poolId = protoInt64.zero; /** * @generated from field: string base_asset_denom = 2; */ baseAssetDenom = ""; /** * @generated from field: string quote_asset_denom = 3; */ quoteAssetDenom = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "dymensionxyz.dymension.gamm.v1beta1.QuerySpotPriceRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 2, name: "base_asset_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "quote_asset_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QuerySpotPriceRequest { return new QuerySpotPriceRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QuerySpotPriceRequest { return new QuerySpotPriceRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QuerySpotPriceRequest { return new QuerySpotPriceRequest().fromJsonString(jsonString, options); } static equals(a: QuerySpotPriceRequest | PlainMessage | undefined, b: QuerySpotPriceRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QuerySpotPriceRequest, a, b); } } /** * @generated from message dymensionxyz.dymension.gamm.v1beta1.QueryPoolsWithFilterRequest */ export class QueryPoolsWithFilterRequest extends Message { /** * String of the coins in single string seperated by comma. Ex) * 10uatom,100uosmo * * @generated from field: string min_liquidity = 1; */ minLiquidity = ""; /** * @generated from field: string pool_type = 2; */ poolType = ""; /** * @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 = "dymensionxyz.dymension.gamm.v1beta1.QueryPoolsWithFilterRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "min_liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "pool_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "pagination", kind: "message", T: PageRequest }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryPoolsWithFilterRequest { return new QueryPoolsWithFilterRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryPoolsWithFilterRequest { return new QueryPoolsWithFilterRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryPoolsWithFilterRequest { return new QueryPoolsWithFilterRequest().fromJsonString(jsonString, options); } static equals(a: QueryPoolsWithFilterRequest | PlainMessage | undefined, b: QueryPoolsWithFilterRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryPoolsWithFilterRequest, a, b); } } /** * @generated from message dymensionxyz.dymension.gamm.v1beta1.QueryPoolsWithFilterResponse */ export class QueryPoolsWithFilterResponse extends Message { /** * @generated from field: repeated google.protobuf.Any pools = 1; */ pools: Any[] = []; /** * 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 = "dymensionxyz.dymension.gamm.v1beta1.QueryPoolsWithFilterResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "pools", kind: "message", T: Any, repeated: true }, { no: 2, name: "pagination", kind: "message", T: PageResponse }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryPoolsWithFilterResponse { return new QueryPoolsWithFilterResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryPoolsWithFilterResponse { return new QueryPoolsWithFilterResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryPoolsWithFilterResponse { return new QueryPoolsWithFilterResponse().fromJsonString(jsonString, options); } static equals(a: QueryPoolsWithFilterResponse | PlainMessage | undefined, b: QueryPoolsWithFilterResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryPoolsWithFilterResponse, a, b); } } /** * QuerySpotPriceResponse defines the gRPC response structure for a SpotPrice * query. * * @generated from message dymensionxyz.dymension.gamm.v1beta1.QuerySpotPriceResponse * @deprecated */ export class QuerySpotPriceResponse extends Message { /** * String of the Dec. Ex) 10.203uatom * * @generated from field: string spot_price = 1; */ spotPrice = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "dymensionxyz.dymension.gamm.v1beta1.QuerySpotPriceResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "spot_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QuerySpotPriceResponse { return new QuerySpotPriceResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QuerySpotPriceResponse { return new QuerySpotPriceResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QuerySpotPriceResponse { return new QuerySpotPriceResponse().fromJsonString(jsonString, options); } static equals(a: QuerySpotPriceResponse | PlainMessage | undefined, b: QuerySpotPriceResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QuerySpotPriceResponse, a, b); } } /** * =============================== EstimateSwapExactAmountIn * * @generated from message dymensionxyz.dymension.gamm.v1beta1.QuerySwapExactAmountInRequest */ export class QuerySwapExactAmountInRequest extends Message { /** * @generated from field: string sender = 1; */ sender = ""; /** * @generated from field: uint64 pool_id = 2; */ poolId = protoInt64.zero; /** * @generated from field: string token_in = 3; */ tokenIn = ""; /** * @generated from field: repeated dymensionxyz.dymension.poolmanager.v1beta1.SwapAmountInRoute routes = 4; */ routes: SwapAmountInRoute[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "dymensionxyz.dymension.gamm.v1beta1.QuerySwapExactAmountInRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 3, name: "token_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "routes", kind: "message", T: SwapAmountInRoute, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QuerySwapExactAmountInRequest { return new QuerySwapExactAmountInRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QuerySwapExactAmountInRequest { return new QuerySwapExactAmountInRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QuerySwapExactAmountInRequest { return new QuerySwapExactAmountInRequest().fromJsonString(jsonString, options); } static equals(a: QuerySwapExactAmountInRequest | PlainMessage | undefined, b: QuerySwapExactAmountInRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QuerySwapExactAmountInRequest, a, b); } } /** * @generated from message dymensionxyz.dymension.gamm.v1beta1.QuerySwapExactAmountInResponse */ export class QuerySwapExactAmountInResponse extends Message { /** * @generated from field: string token_out_amount = 1; */ tokenOutAmount = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "dymensionxyz.dymension.gamm.v1beta1.QuerySwapExactAmountInResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "token_out_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QuerySwapExactAmountInResponse { return new QuerySwapExactAmountInResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QuerySwapExactAmountInResponse { return new QuerySwapExactAmountInResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QuerySwapExactAmountInResponse { return new QuerySwapExactAmountInResponse().fromJsonString(jsonString, options); } static equals(a: QuerySwapExactAmountInResponse | PlainMessage | undefined, b: QuerySwapExactAmountInResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QuerySwapExactAmountInResponse, a, b); } } /** * =============================== EstimateSwapExactAmountOut * * @generated from message dymensionxyz.dymension.gamm.v1beta1.QuerySwapExactAmountOutRequest */ export class QuerySwapExactAmountOutRequest extends Message { /** * @generated from field: string sender = 1; */ sender = ""; /** * @generated from field: uint64 pool_id = 2; */ poolId = protoInt64.zero; /** * @generated from field: repeated dymensionxyz.dymension.poolmanager.v1beta1.SwapAmountOutRoute routes = 3; */ routes: SwapAmountOutRoute[] = []; /** * @generated from field: string token_out = 4; */ tokenOut = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "dymensionxyz.dymension.gamm.v1beta1.QuerySwapExactAmountOutRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 3, name: "routes", kind: "message", T: SwapAmountOutRoute, repeated: true }, { no: 4, name: "token_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QuerySwapExactAmountOutRequest { return new QuerySwapExactAmountOutRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QuerySwapExactAmountOutRequest { return new QuerySwapExactAmountOutRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QuerySwapExactAmountOutRequest { return new QuerySwapExactAmountOutRequest().fromJsonString(jsonString, options); } static equals(a: QuerySwapExactAmountOutRequest | PlainMessage | undefined, b: QuerySwapExactAmountOutRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QuerySwapExactAmountOutRequest, a, b); } } /** * @generated from message dymensionxyz.dymension.gamm.v1beta1.QuerySwapExactAmountOutResponse */ export class QuerySwapExactAmountOutResponse extends Message { /** * @generated from field: string token_in_amount = 1; */ tokenInAmount = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "dymensionxyz.dymension.gamm.v1beta1.QuerySwapExactAmountOutResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "token_in_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QuerySwapExactAmountOutResponse { return new QuerySwapExactAmountOutResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QuerySwapExactAmountOutResponse { return new QuerySwapExactAmountOutResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QuerySwapExactAmountOutResponse { return new QuerySwapExactAmountOutResponse().fromJsonString(jsonString, options); } static equals(a: QuerySwapExactAmountOutResponse | PlainMessage | undefined, b: QuerySwapExactAmountOutResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QuerySwapExactAmountOutResponse, a, b); } } /** * @generated from message dymensionxyz.dymension.gamm.v1beta1.QueryTotalLiquidityRequest */ export class QueryTotalLiquidityRequest extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "dymensionxyz.dymension.gamm.v1beta1.QueryTotalLiquidityRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalLiquidityRequest { return new QueryTotalLiquidityRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalLiquidityRequest { return new QueryTotalLiquidityRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryTotalLiquidityRequest { return new QueryTotalLiquidityRequest().fromJsonString(jsonString, options); } static equals(a: QueryTotalLiquidityRequest | PlainMessage | undefined, b: QueryTotalLiquidityRequest | PlainMessage | undefined): boolean { return proto3.util.equals(QueryTotalLiquidityRequest, a, b); } } /** * @generated from message dymensionxyz.dymension.gamm.v1beta1.QueryTotalLiquidityResponse */ export class QueryTotalLiquidityResponse extends Message { /** * @generated from field: repeated cosmos.base.v1beta1.Coin liquidity = 1; */ liquidity: Coin[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "dymensionxyz.dymension.gamm.v1beta1.QueryTotalLiquidityResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "liquidity", kind: "message", T: Coin, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): QueryTotalLiquidityResponse { return new QueryTotalLiquidityResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): QueryTotalLiquidityResponse { return new QueryTotalLiquidityResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): QueryTotalLiquidityResponse { return new QueryTotalLiquidityResponse().fromJsonString(jsonString, options); } static equals(a: QueryTotalLiquidityResponse | PlainMessage | undefined, b: QueryTotalLiquidityResponse | PlainMessage | undefined): boolean { return proto3.util.equals(QueryTotalLiquidityResponse, a, b); } }