// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" // @generated from file osmosis/poolmanager/v1beta1/query.proto (package osmosis.poolmanager.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 { SwapAmountInRoute, SwapAmountOutRoute } from "./swap_route_pb.js"; import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; /** * =============================== Params * * @generated from message osmosis.poolmanager.v1beta1.ParamsRequest */ export class ParamsRequest extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "osmosis.poolmanager.v1beta1.ParamsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): ParamsRequest { return new ParamsRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ParamsRequest { return new ParamsRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ParamsRequest { return new ParamsRequest().fromJsonString(jsonString, options); } static equals(a: ParamsRequest | PlainMessage | undefined, b: ParamsRequest | PlainMessage | undefined): boolean { return proto3.util.equals(ParamsRequest, a, b); } } /** * @generated from message osmosis.poolmanager.v1beta1.ParamsResponse */ export class ParamsResponse extends Message { /** * @generated from field: osmosis.poolmanager.v1beta1.Params params = 1; */ params?: Params; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "osmosis.poolmanager.v1beta1.ParamsResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "params", kind: "message", T: Params }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ParamsResponse { return new ParamsResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ParamsResponse { return new ParamsResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ParamsResponse { return new ParamsResponse().fromJsonString(jsonString, options); } static equals(a: ParamsResponse | PlainMessage | undefined, b: ParamsResponse | PlainMessage | undefined): boolean { return proto3.util.equals(ParamsResponse, a, b); } } /** * =============================== EstimateSwapExactAmountIn * * @generated from message osmosis.poolmanager.v1beta1.EstimateSwapExactAmountInRequest */ export class EstimateSwapExactAmountInRequest extends Message { /** * @generated from field: uint64 pool_id = 2 [deprecated = true]; * @deprecated */ poolId = protoInt64.zero; /** * @generated from field: string token_in = 3; */ tokenIn = ""; /** * @generated from field: repeated osmosis.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 = "osmosis.poolmanager.v1beta1.EstimateSwapExactAmountInRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { 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): EstimateSwapExactAmountInRequest { return new EstimateSwapExactAmountInRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): EstimateSwapExactAmountInRequest { return new EstimateSwapExactAmountInRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): EstimateSwapExactAmountInRequest { return new EstimateSwapExactAmountInRequest().fromJsonString(jsonString, options); } static equals(a: EstimateSwapExactAmountInRequest | PlainMessage | undefined, b: EstimateSwapExactAmountInRequest | PlainMessage | undefined): boolean { return proto3.util.equals(EstimateSwapExactAmountInRequest, a, b); } } /** * @generated from message osmosis.poolmanager.v1beta1.EstimateSwapExactAmountInWithPrimitiveTypesRequest */ export class EstimateSwapExactAmountInWithPrimitiveTypesRequest extends Message { /** * @generated from field: uint64 pool_id = 1 [deprecated = true]; * @deprecated */ poolId = protoInt64.zero; /** * @generated from field: string token_in = 2; */ tokenIn = ""; /** * @generated from field: repeated uint64 routes_pool_id = 3; */ routesPoolId: bigint[] = []; /** * @generated from field: repeated string routes_token_out_denom = 4; */ routesTokenOutDenom: string[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "osmosis.poolmanager.v1beta1.EstimateSwapExactAmountInWithPrimitiveTypesRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 2, name: "token_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "routes_pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, { no: 4, name: "routes_token_out_denom", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): EstimateSwapExactAmountInWithPrimitiveTypesRequest { return new EstimateSwapExactAmountInWithPrimitiveTypesRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): EstimateSwapExactAmountInWithPrimitiveTypesRequest { return new EstimateSwapExactAmountInWithPrimitiveTypesRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): EstimateSwapExactAmountInWithPrimitiveTypesRequest { return new EstimateSwapExactAmountInWithPrimitiveTypesRequest().fromJsonString(jsonString, options); } static equals(a: EstimateSwapExactAmountInWithPrimitiveTypesRequest | PlainMessage | undefined, b: EstimateSwapExactAmountInWithPrimitiveTypesRequest | PlainMessage | undefined): boolean { return proto3.util.equals(EstimateSwapExactAmountInWithPrimitiveTypesRequest, a, b); } } /** * @generated from message osmosis.poolmanager.v1beta1.EstimateSinglePoolSwapExactAmountInRequest */ export class EstimateSinglePoolSwapExactAmountInRequest extends Message { /** * @generated from field: uint64 pool_id = 1; */ poolId = protoInt64.zero; /** * @generated from field: string token_in = 2; */ tokenIn = ""; /** * @generated from field: string token_out_denom = 3; */ tokenOutDenom = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "osmosis.poolmanager.v1beta1.EstimateSinglePoolSwapExactAmountInRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 2, name: "token_in", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "token_out_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): EstimateSinglePoolSwapExactAmountInRequest { return new EstimateSinglePoolSwapExactAmountInRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): EstimateSinglePoolSwapExactAmountInRequest { return new EstimateSinglePoolSwapExactAmountInRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): EstimateSinglePoolSwapExactAmountInRequest { return new EstimateSinglePoolSwapExactAmountInRequest().fromJsonString(jsonString, options); } static equals(a: EstimateSinglePoolSwapExactAmountInRequest | PlainMessage | undefined, b: EstimateSinglePoolSwapExactAmountInRequest | PlainMessage | undefined): boolean { return proto3.util.equals(EstimateSinglePoolSwapExactAmountInRequest, a, b); } } /** * @generated from message osmosis.poolmanager.v1beta1.EstimateSwapExactAmountInResponse */ export class EstimateSwapExactAmountInResponse 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 = "osmosis.poolmanager.v1beta1.EstimateSwapExactAmountInResponse"; 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): EstimateSwapExactAmountInResponse { return new EstimateSwapExactAmountInResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): EstimateSwapExactAmountInResponse { return new EstimateSwapExactAmountInResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): EstimateSwapExactAmountInResponse { return new EstimateSwapExactAmountInResponse().fromJsonString(jsonString, options); } static equals(a: EstimateSwapExactAmountInResponse | PlainMessage | undefined, b: EstimateSwapExactAmountInResponse | PlainMessage | undefined): boolean { return proto3.util.equals(EstimateSwapExactAmountInResponse, a, b); } } /** * =============================== EstimateSwapExactAmountOut * * @generated from message osmosis.poolmanager.v1beta1.EstimateSwapExactAmountOutRequest */ export class EstimateSwapExactAmountOutRequest extends Message { /** * @generated from field: uint64 pool_id = 2 [deprecated = true]; * @deprecated */ poolId = protoInt64.zero; /** * @generated from field: repeated osmosis.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 = "osmosis.poolmanager.v1beta1.EstimateSwapExactAmountOutRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { 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): EstimateSwapExactAmountOutRequest { return new EstimateSwapExactAmountOutRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): EstimateSwapExactAmountOutRequest { return new EstimateSwapExactAmountOutRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): EstimateSwapExactAmountOutRequest { return new EstimateSwapExactAmountOutRequest().fromJsonString(jsonString, options); } static equals(a: EstimateSwapExactAmountOutRequest | PlainMessage | undefined, b: EstimateSwapExactAmountOutRequest | PlainMessage | undefined): boolean { return proto3.util.equals(EstimateSwapExactAmountOutRequest, a, b); } } /** * @generated from message osmosis.poolmanager.v1beta1.EstimateSwapExactAmountOutWithPrimitiveTypesRequest */ export class EstimateSwapExactAmountOutWithPrimitiveTypesRequest extends Message { /** * @generated from field: uint64 pool_id = 1 [deprecated = true]; * @deprecated */ poolId = protoInt64.zero; /** * @generated from field: repeated uint64 routes_pool_id = 2; */ routesPoolId: bigint[] = []; /** * @generated from field: repeated string routes_token_in_denom = 3; */ routesTokenInDenom: string[] = []; /** * @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 = "osmosis.poolmanager.v1beta1.EstimateSwapExactAmountOutWithPrimitiveTypesRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 2, name: "routes_pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, { no: 3, name: "routes_token_in_denom", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, { no: 4, name: "token_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): EstimateSwapExactAmountOutWithPrimitiveTypesRequest { return new EstimateSwapExactAmountOutWithPrimitiveTypesRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): EstimateSwapExactAmountOutWithPrimitiveTypesRequest { return new EstimateSwapExactAmountOutWithPrimitiveTypesRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): EstimateSwapExactAmountOutWithPrimitiveTypesRequest { return new EstimateSwapExactAmountOutWithPrimitiveTypesRequest().fromJsonString(jsonString, options); } static equals(a: EstimateSwapExactAmountOutWithPrimitiveTypesRequest | PlainMessage | undefined, b: EstimateSwapExactAmountOutWithPrimitiveTypesRequest | PlainMessage | undefined): boolean { return proto3.util.equals(EstimateSwapExactAmountOutWithPrimitiveTypesRequest, a, b); } } /** * @generated from message osmosis.poolmanager.v1beta1.EstimateSinglePoolSwapExactAmountOutRequest */ export class EstimateSinglePoolSwapExactAmountOutRequest extends Message { /** * @generated from field: uint64 pool_id = 1; */ poolId = protoInt64.zero; /** * @generated from field: string token_in_denom = 2; */ tokenInDenom = ""; /** * @generated from field: string token_out = 3; */ tokenOut = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "osmosis.poolmanager.v1beta1.EstimateSinglePoolSwapExactAmountOutRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 2, name: "token_in_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "token_out", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): EstimateSinglePoolSwapExactAmountOutRequest { return new EstimateSinglePoolSwapExactAmountOutRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): EstimateSinglePoolSwapExactAmountOutRequest { return new EstimateSinglePoolSwapExactAmountOutRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): EstimateSinglePoolSwapExactAmountOutRequest { return new EstimateSinglePoolSwapExactAmountOutRequest().fromJsonString(jsonString, options); } static equals(a: EstimateSinglePoolSwapExactAmountOutRequest | PlainMessage | undefined, b: EstimateSinglePoolSwapExactAmountOutRequest | PlainMessage | undefined): boolean { return proto3.util.equals(EstimateSinglePoolSwapExactAmountOutRequest, a, b); } } /** * @generated from message osmosis.poolmanager.v1beta1.EstimateSwapExactAmountOutResponse */ export class EstimateSwapExactAmountOutResponse 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 = "osmosis.poolmanager.v1beta1.EstimateSwapExactAmountOutResponse"; 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): EstimateSwapExactAmountOutResponse { return new EstimateSwapExactAmountOutResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): EstimateSwapExactAmountOutResponse { return new EstimateSwapExactAmountOutResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): EstimateSwapExactAmountOutResponse { return new EstimateSwapExactAmountOutResponse().fromJsonString(jsonString, options); } static equals(a: EstimateSwapExactAmountOutResponse | PlainMessage | undefined, b: EstimateSwapExactAmountOutResponse | PlainMessage | undefined): boolean { return proto3.util.equals(EstimateSwapExactAmountOutResponse, a, b); } } /** * =============================== NumPools * * @generated from message osmosis.poolmanager.v1beta1.NumPoolsRequest */ export class NumPoolsRequest extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "osmosis.poolmanager.v1beta1.NumPoolsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): NumPoolsRequest { return new NumPoolsRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): NumPoolsRequest { return new NumPoolsRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): NumPoolsRequest { return new NumPoolsRequest().fromJsonString(jsonString, options); } static equals(a: NumPoolsRequest | PlainMessage | undefined, b: NumPoolsRequest | PlainMessage | undefined): boolean { return proto3.util.equals(NumPoolsRequest, a, b); } } /** * @generated from message osmosis.poolmanager.v1beta1.NumPoolsResponse */ export class NumPoolsResponse 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 = "osmosis.poolmanager.v1beta1.NumPoolsResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "num_pools", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): NumPoolsResponse { return new NumPoolsResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): NumPoolsResponse { return new NumPoolsResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): NumPoolsResponse { return new NumPoolsResponse().fromJsonString(jsonString, options); } static equals(a: NumPoolsResponse | PlainMessage | undefined, b: NumPoolsResponse | PlainMessage | undefined): boolean { return proto3.util.equals(NumPoolsResponse, a, b); } } /** * =============================== Pool * * @generated from message osmosis.poolmanager.v1beta1.PoolRequest */ export class PoolRequest 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 = "osmosis.poolmanager.v1beta1.PoolRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PoolRequest { return new PoolRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): PoolRequest { return new PoolRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): PoolRequest { return new PoolRequest().fromJsonString(jsonString, options); } static equals(a: PoolRequest | PlainMessage | undefined, b: PoolRequest | PlainMessage | undefined): boolean { return proto3.util.equals(PoolRequest, a, b); } } /** * @generated from message osmosis.poolmanager.v1beta1.PoolResponse */ export class PoolResponse 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 = "osmosis.poolmanager.v1beta1.PoolResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "pool", kind: "message", T: Any }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PoolResponse { return new PoolResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): PoolResponse { return new PoolResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): PoolResponse { return new PoolResponse().fromJsonString(jsonString, options); } static equals(a: PoolResponse | PlainMessage | undefined, b: PoolResponse | PlainMessage | undefined): boolean { return proto3.util.equals(PoolResponse, a, b); } } /** * =============================== AllPools * * @generated from message osmosis.poolmanager.v1beta1.AllPoolsRequest */ export class AllPoolsRequest extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "osmosis.poolmanager.v1beta1.AllPoolsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): AllPoolsRequest { return new AllPoolsRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): AllPoolsRequest { return new AllPoolsRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): AllPoolsRequest { return new AllPoolsRequest().fromJsonString(jsonString, options); } static equals(a: AllPoolsRequest | PlainMessage | undefined, b: AllPoolsRequest | PlainMessage | undefined): boolean { return proto3.util.equals(AllPoolsRequest, a, b); } } /** * @generated from message osmosis.poolmanager.v1beta1.AllPoolsResponse */ export class AllPoolsResponse extends Message { /** * @generated from field: repeated google.protobuf.Any pools = 1; */ pools: Any[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "osmosis.poolmanager.v1beta1.AllPoolsResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "pools", kind: "message", T: Any, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): AllPoolsResponse { return new AllPoolsResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): AllPoolsResponse { return new AllPoolsResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): AllPoolsResponse { return new AllPoolsResponse().fromJsonString(jsonString, options); } static equals(a: AllPoolsResponse | PlainMessage | undefined, b: AllPoolsResponse | PlainMessage | undefined): boolean { return proto3.util.equals(AllPoolsResponse, a, b); } } /** * ======================================================= * ListPoolsByDenomRequest * * @generated from message osmosis.poolmanager.v1beta1.ListPoolsByDenomRequest */ export class ListPoolsByDenomRequest extends Message { /** * @generated from field: string denom = 1; */ denom = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "osmosis.poolmanager.v1beta1.ListPoolsByDenomRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ListPoolsByDenomRequest { return new ListPoolsByDenomRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ListPoolsByDenomRequest { return new ListPoolsByDenomRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ListPoolsByDenomRequest { return new ListPoolsByDenomRequest().fromJsonString(jsonString, options); } static equals(a: ListPoolsByDenomRequest | PlainMessage | undefined, b: ListPoolsByDenomRequest | PlainMessage | undefined): boolean { return proto3.util.equals(ListPoolsByDenomRequest, a, b); } } /** * @generated from message osmosis.poolmanager.v1beta1.ListPoolsByDenomResponse */ export class ListPoolsByDenomResponse extends Message { /** * @generated from field: repeated google.protobuf.Any pools = 1; */ pools: Any[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "osmosis.poolmanager.v1beta1.ListPoolsByDenomResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "pools", kind: "message", T: Any, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ListPoolsByDenomResponse { return new ListPoolsByDenomResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ListPoolsByDenomResponse { return new ListPoolsByDenomResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ListPoolsByDenomResponse { return new ListPoolsByDenomResponse().fromJsonString(jsonString, options); } static equals(a: ListPoolsByDenomResponse | PlainMessage | undefined, b: ListPoolsByDenomResponse | PlainMessage | undefined): boolean { return proto3.util.equals(ListPoolsByDenomResponse, a, b); } } /** * ========================================================== * SpotPriceRequest defines the gRPC request structure for a SpotPrice * query. * * @generated from message osmosis.poolmanager.v1beta1.SpotPriceRequest */ export class SpotPriceRequest 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 = "osmosis.poolmanager.v1beta1.SpotPriceRequest"; 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): SpotPriceRequest { return new SpotPriceRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): SpotPriceRequest { return new SpotPriceRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): SpotPriceRequest { return new SpotPriceRequest().fromJsonString(jsonString, options); } static equals(a: SpotPriceRequest | PlainMessage | undefined, b: SpotPriceRequest | PlainMessage | undefined): boolean { return proto3.util.equals(SpotPriceRequest, a, b); } } /** * SpotPriceResponse defines the gRPC response structure for a SpotPrice * query. * * @generated from message osmosis.poolmanager.v1beta1.SpotPriceResponse */ export class SpotPriceResponse 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 = "osmosis.poolmanager.v1beta1.SpotPriceResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "spot_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SpotPriceResponse { return new SpotPriceResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): SpotPriceResponse { return new SpotPriceResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): SpotPriceResponse { return new SpotPriceResponse().fromJsonString(jsonString, options); } static equals(a: SpotPriceResponse | PlainMessage | undefined, b: SpotPriceResponse | PlainMessage | undefined): boolean { return proto3.util.equals(SpotPriceResponse, a, b); } } /** * =============================== TotalPoolLiquidity * * @generated from message osmosis.poolmanager.v1beta1.TotalPoolLiquidityRequest */ export class TotalPoolLiquidityRequest 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 = "osmosis.poolmanager.v1beta1.TotalPoolLiquidityRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): TotalPoolLiquidityRequest { return new TotalPoolLiquidityRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): TotalPoolLiquidityRequest { return new TotalPoolLiquidityRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): TotalPoolLiquidityRequest { return new TotalPoolLiquidityRequest().fromJsonString(jsonString, options); } static equals(a: TotalPoolLiquidityRequest | PlainMessage | undefined, b: TotalPoolLiquidityRequest | PlainMessage | undefined): boolean { return proto3.util.equals(TotalPoolLiquidityRequest, a, b); } } /** * @generated from message osmosis.poolmanager.v1beta1.TotalPoolLiquidityResponse */ export class TotalPoolLiquidityResponse 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 = "osmosis.poolmanager.v1beta1.TotalPoolLiquidityResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "liquidity", kind: "message", T: Coin, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): TotalPoolLiquidityResponse { return new TotalPoolLiquidityResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): TotalPoolLiquidityResponse { return new TotalPoolLiquidityResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): TotalPoolLiquidityResponse { return new TotalPoolLiquidityResponse().fromJsonString(jsonString, options); } static equals(a: TotalPoolLiquidityResponse | PlainMessage | undefined, b: TotalPoolLiquidityResponse | PlainMessage | undefined): boolean { return proto3.util.equals(TotalPoolLiquidityResponse, a, b); } } /** * =============================== TotalLiquidity * * @generated from message osmosis.poolmanager.v1beta1.TotalLiquidityRequest */ export class TotalLiquidityRequest extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "osmosis.poolmanager.v1beta1.TotalLiquidityRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): TotalLiquidityRequest { return new TotalLiquidityRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): TotalLiquidityRequest { return new TotalLiquidityRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): TotalLiquidityRequest { return new TotalLiquidityRequest().fromJsonString(jsonString, options); } static equals(a: TotalLiquidityRequest | PlainMessage | undefined, b: TotalLiquidityRequest | PlainMessage | undefined): boolean { return proto3.util.equals(TotalLiquidityRequest, a, b); } } /** * @generated from message osmosis.poolmanager.v1beta1.TotalLiquidityResponse */ export class TotalLiquidityResponse 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 = "osmosis.poolmanager.v1beta1.TotalLiquidityResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "liquidity", kind: "message", T: Coin, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): TotalLiquidityResponse { return new TotalLiquidityResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): TotalLiquidityResponse { return new TotalLiquidityResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): TotalLiquidityResponse { return new TotalLiquidityResponse().fromJsonString(jsonString, options); } static equals(a: TotalLiquidityResponse | PlainMessage | undefined, b: TotalLiquidityResponse | PlainMessage | undefined): boolean { return proto3.util.equals(TotalLiquidityResponse, a, b); } } /** * =============================== TotalVolumeForPool * * @generated from message osmosis.poolmanager.v1beta1.TotalVolumeForPoolRequest */ export class TotalVolumeForPoolRequest 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 = "osmosis.poolmanager.v1beta1.TotalVolumeForPoolRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): TotalVolumeForPoolRequest { return new TotalVolumeForPoolRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): TotalVolumeForPoolRequest { return new TotalVolumeForPoolRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): TotalVolumeForPoolRequest { return new TotalVolumeForPoolRequest().fromJsonString(jsonString, options); } static equals(a: TotalVolumeForPoolRequest | PlainMessage | undefined, b: TotalVolumeForPoolRequest | PlainMessage | undefined): boolean { return proto3.util.equals(TotalVolumeForPoolRequest, a, b); } } /** * @generated from message osmosis.poolmanager.v1beta1.TotalVolumeForPoolResponse */ export class TotalVolumeForPoolResponse extends Message { /** * @generated from field: repeated cosmos.base.v1beta1.Coin volume = 1; */ volume: Coin[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "osmosis.poolmanager.v1beta1.TotalVolumeForPoolResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "volume", kind: "message", T: Coin, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): TotalVolumeForPoolResponse { return new TotalVolumeForPoolResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): TotalVolumeForPoolResponse { return new TotalVolumeForPoolResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): TotalVolumeForPoolResponse { return new TotalVolumeForPoolResponse().fromJsonString(jsonString, options); } static equals(a: TotalVolumeForPoolResponse | PlainMessage | undefined, b: TotalVolumeForPoolResponse | PlainMessage | undefined): boolean { return proto3.util.equals(TotalVolumeForPoolResponse, a, b); } } /** * =============================== TradingPairTakerFee * * @generated from message osmosis.poolmanager.v1beta1.TradingPairTakerFeeRequest */ export class TradingPairTakerFeeRequest extends Message { /** * @generated from field: string denom_0 = 1; */ denom0 = ""; /** * @generated from field: string denom_1 = 2; */ denom1 = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "osmosis.poolmanager.v1beta1.TradingPairTakerFeeRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "denom_0", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "denom_1", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): TradingPairTakerFeeRequest { return new TradingPairTakerFeeRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): TradingPairTakerFeeRequest { return new TradingPairTakerFeeRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): TradingPairTakerFeeRequest { return new TradingPairTakerFeeRequest().fromJsonString(jsonString, options); } static equals(a: TradingPairTakerFeeRequest | PlainMessage | undefined, b: TradingPairTakerFeeRequest | PlainMessage | undefined): boolean { return proto3.util.equals(TradingPairTakerFeeRequest, a, b); } } /** * @generated from message osmosis.poolmanager.v1beta1.TradingPairTakerFeeResponse */ export class TradingPairTakerFeeResponse extends Message { /** * @generated from field: string taker_fee = 1; */ takerFee = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "osmosis.poolmanager.v1beta1.TradingPairTakerFeeResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "taker_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): TradingPairTakerFeeResponse { return new TradingPairTakerFeeResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): TradingPairTakerFeeResponse { return new TradingPairTakerFeeResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): TradingPairTakerFeeResponse { return new TradingPairTakerFeeResponse().fromJsonString(jsonString, options); } static equals(a: TradingPairTakerFeeResponse | PlainMessage | undefined, b: TradingPairTakerFeeResponse | PlainMessage | undefined): boolean { return proto3.util.equals(TradingPairTakerFeeResponse, a, b); } } /** * EstimateTradeBasedOnPriceImpactRequest represents a request to estimate a * trade for Balancer/StableSwap/Concentrated liquidity pool types based on the * given parameters. * * @generated from message osmosis.poolmanager.v1beta1.EstimateTradeBasedOnPriceImpactRequest */ export class EstimateTradeBasedOnPriceImpactRequest extends Message { /** * from_coin is the total amount of tokens that the user wants to sell. * * @generated from field: cosmos.base.v1beta1.Coin from_coin = 1; */ fromCoin?: Coin; /** * to_coin_denom is the denom identifier of the token that the user wants to * buy. * * @generated from field: string to_coin_denom = 2; */ toCoinDenom = ""; /** * pool_id is the identifier of the liquidity pool that the trade will occur * on. * * @generated from field: uint64 pool_id = 3; */ poolId = protoInt64.zero; /** * max_price_impact is the maximum percentage that the user is willing * to affect the price of the liquidity pool. * * @generated from field: string max_price_impact = 4; */ maxPriceImpact = ""; /** * external_price is an optional external price that the user can enter. * It adjusts the MaxPriceImpact as the SpotPrice of a pool can be changed at * any time. * * @generated from field: string external_price = 5; */ externalPrice = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "osmosis.poolmanager.v1beta1.EstimateTradeBasedOnPriceImpactRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "from_coin", kind: "message", T: Coin }, { no: 2, name: "to_coin_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 4, name: "max_price_impact", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 5, name: "external_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): EstimateTradeBasedOnPriceImpactRequest { return new EstimateTradeBasedOnPriceImpactRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): EstimateTradeBasedOnPriceImpactRequest { return new EstimateTradeBasedOnPriceImpactRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): EstimateTradeBasedOnPriceImpactRequest { return new EstimateTradeBasedOnPriceImpactRequest().fromJsonString(jsonString, options); } static equals(a: EstimateTradeBasedOnPriceImpactRequest | PlainMessage | undefined, b: EstimateTradeBasedOnPriceImpactRequest | PlainMessage | undefined): boolean { return proto3.util.equals(EstimateTradeBasedOnPriceImpactRequest, a, b); } } /** * EstimateTradeBasedOnPriceImpactResponse represents the response data * for an estimated trade based on price impact. If a trade fails to be * estimated the response would be 0,0 for input_coin and output_coin and will * not error. * * @generated from message osmosis.poolmanager.v1beta1.EstimateTradeBasedOnPriceImpactResponse */ export class EstimateTradeBasedOnPriceImpactResponse extends Message { /** * input_coin is the actual input amount that would be tradeable * under the specified price impact. * * @generated from field: cosmos.base.v1beta1.Coin input_coin = 1; */ inputCoin?: Coin; /** * output_coin is the amount of tokens of the ToCoinDenom type * that will be received for the actual InputCoin trade. * * @generated from field: cosmos.base.v1beta1.Coin output_coin = 2; */ outputCoin?: Coin; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "osmosis.poolmanager.v1beta1.EstimateTradeBasedOnPriceImpactResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "input_coin", kind: "message", T: Coin }, { no: 2, name: "output_coin", kind: "message", T: Coin }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): EstimateTradeBasedOnPriceImpactResponse { return new EstimateTradeBasedOnPriceImpactResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): EstimateTradeBasedOnPriceImpactResponse { return new EstimateTradeBasedOnPriceImpactResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): EstimateTradeBasedOnPriceImpactResponse { return new EstimateTradeBasedOnPriceImpactResponse().fromJsonString(jsonString, options); } static equals(a: EstimateTradeBasedOnPriceImpactResponse | PlainMessage | undefined, b: EstimateTradeBasedOnPriceImpactResponse | PlainMessage | undefined): boolean { return proto3.util.equals(EstimateTradeBasedOnPriceImpactResponse, a, b); } }