// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" // @generated from file osmosis/cosmwasmpool/v1beta1/model/pool_query_msg.proto (package osmosis.cosmwasmpool.v1beta1, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3 } from "@bufbuild/protobuf"; import { Coin } from "../../../../cosmos/base/v1beta1/coin_pb.js"; /** * ===================== GetSwapFeeQueryMsg * * @generated from message osmosis.cosmwasmpool.v1beta1.GetSwapFeeQueryMsg */ export class GetSwapFeeQueryMsg extends Message { /** * get_swap_fee is the query structure to get swap fee. * * @generated from field: osmosis.cosmwasmpool.v1beta1.EmptyStruct get_swap_fee = 1; */ getSwapFee?: EmptyStruct; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "osmosis.cosmwasmpool.v1beta1.GetSwapFeeQueryMsg"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "get_swap_fee", kind: "message", T: EmptyStruct }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetSwapFeeQueryMsg { return new GetSwapFeeQueryMsg().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetSwapFeeQueryMsg { return new GetSwapFeeQueryMsg().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetSwapFeeQueryMsg { return new GetSwapFeeQueryMsg().fromJsonString(jsonString, options); } static equals(a: GetSwapFeeQueryMsg | PlainMessage | undefined, b: GetSwapFeeQueryMsg | PlainMessage | undefined): boolean { return proto3.util.equals(GetSwapFeeQueryMsg, a, b); } } /** * @generated from message osmosis.cosmwasmpool.v1beta1.GetSwapFeeQueryMsgResponse */ export class GetSwapFeeQueryMsgResponse extends Message { /** * swap_fee is the swap fee for this swap estimate. * * @generated from field: string swap_fee = 3; */ swapFee = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "osmosis.cosmwasmpool.v1beta1.GetSwapFeeQueryMsgResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 3, name: "swap_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetSwapFeeQueryMsgResponse { return new GetSwapFeeQueryMsgResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetSwapFeeQueryMsgResponse { return new GetSwapFeeQueryMsgResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetSwapFeeQueryMsgResponse { return new GetSwapFeeQueryMsgResponse().fromJsonString(jsonString, options); } static equals(a: GetSwapFeeQueryMsgResponse | PlainMessage | undefined, b: GetSwapFeeQueryMsgResponse | PlainMessage | undefined): boolean { return proto3.util.equals(GetSwapFeeQueryMsgResponse, a, b); } } /** * ===================== SpotPriceQueryMsg * * @generated from message osmosis.cosmwasmpool.v1beta1.SpotPrice */ export class SpotPrice extends Message { /** * quote_asset_denom is the quote asset of the spot query. * * @generated from field: string quote_asset_denom = 1; */ quoteAssetDenom = ""; /** * base_asset_denom is the base asset of the spot query. * * @generated from field: string base_asset_denom = 2; */ baseAssetDenom = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "osmosis.cosmwasmpool.v1beta1.SpotPrice"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "quote_asset_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "base_asset_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SpotPrice { return new SpotPrice().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): SpotPrice { return new SpotPrice().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): SpotPrice { return new SpotPrice().fromJsonString(jsonString, options); } static equals(a: SpotPrice | PlainMessage | undefined, b: SpotPrice | PlainMessage | undefined): boolean { return proto3.util.equals(SpotPrice, a, b); } } /** * @generated from message osmosis.cosmwasmpool.v1beta1.SpotPriceQueryMsg */ export class SpotPriceQueryMsg extends Message { /** * spot_price is the structure containing request field of the spot price * query message. * * @generated from field: osmosis.cosmwasmpool.v1beta1.SpotPrice spot_price = 1; */ spotPrice?: SpotPrice; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "osmosis.cosmwasmpool.v1beta1.SpotPriceQueryMsg"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "spot_price", kind: "message", T: SpotPrice }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SpotPriceQueryMsg { return new SpotPriceQueryMsg().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): SpotPriceQueryMsg { return new SpotPriceQueryMsg().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): SpotPriceQueryMsg { return new SpotPriceQueryMsg().fromJsonString(jsonString, options); } static equals(a: SpotPriceQueryMsg | PlainMessage | undefined, b: SpotPriceQueryMsg | PlainMessage | undefined): boolean { return proto3.util.equals(SpotPriceQueryMsg, a, b); } } /** * @generated from message osmosis.cosmwasmpool.v1beta1.SpotPriceQueryMsgResponse */ export class SpotPriceQueryMsgResponse extends Message { /** * spot_price is the spot price returned. * * @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.cosmwasmpool.v1beta1.SpotPriceQueryMsgResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "spot_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SpotPriceQueryMsgResponse { return new SpotPriceQueryMsgResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): SpotPriceQueryMsgResponse { return new SpotPriceQueryMsgResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): SpotPriceQueryMsgResponse { return new SpotPriceQueryMsgResponse().fromJsonString(jsonString, options); } static equals(a: SpotPriceQueryMsgResponse | PlainMessage | undefined, b: SpotPriceQueryMsgResponse | PlainMessage | undefined): boolean { return proto3.util.equals(SpotPriceQueryMsgResponse, a, b); } } /** * ===================== GetTotalPoolLiquidityQueryMsg * * @generated from message osmosis.cosmwasmpool.v1beta1.EmptyStruct */ export class EmptyStruct extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "osmosis.cosmwasmpool.v1beta1.EmptyStruct"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): EmptyStruct { return new EmptyStruct().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): EmptyStruct { return new EmptyStruct().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): EmptyStruct { return new EmptyStruct().fromJsonString(jsonString, options); } static equals(a: EmptyStruct | PlainMessage | undefined, b: EmptyStruct | PlainMessage | undefined): boolean { return proto3.util.equals(EmptyStruct, a, b); } } /** * @generated from message osmosis.cosmwasmpool.v1beta1.GetTotalPoolLiquidityQueryMsg */ export class GetTotalPoolLiquidityQueryMsg extends Message { /** * get_total_pool_liquidity is the structure containing request field of the * total pool liquidity query message. * * @generated from field: osmosis.cosmwasmpool.v1beta1.EmptyStruct get_total_pool_liquidity = 1; */ getTotalPoolLiquidity?: EmptyStruct; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "osmosis.cosmwasmpool.v1beta1.GetTotalPoolLiquidityQueryMsg"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "get_total_pool_liquidity", kind: "message", T: EmptyStruct }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetTotalPoolLiquidityQueryMsg { return new GetTotalPoolLiquidityQueryMsg().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetTotalPoolLiquidityQueryMsg { return new GetTotalPoolLiquidityQueryMsg().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetTotalPoolLiquidityQueryMsg { return new GetTotalPoolLiquidityQueryMsg().fromJsonString(jsonString, options); } static equals(a: GetTotalPoolLiquidityQueryMsg | PlainMessage | undefined, b: GetTotalPoolLiquidityQueryMsg | PlainMessage | undefined): boolean { return proto3.util.equals(GetTotalPoolLiquidityQueryMsg, a, b); } } /** * @generated from message osmosis.cosmwasmpool.v1beta1.GetTotalPoolLiquidityQueryMsgResponse */ export class GetTotalPoolLiquidityQueryMsgResponse extends Message { /** * total_pool_liquidity is the total liquidity in the pool denominated in * coins. * * @generated from field: repeated cosmos.base.v1beta1.Coin total_pool_liquidity = 1; */ totalPoolLiquidity: Coin[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "osmosis.cosmwasmpool.v1beta1.GetTotalPoolLiquidityQueryMsgResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "total_pool_liquidity", kind: "message", T: Coin, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetTotalPoolLiquidityQueryMsgResponse { return new GetTotalPoolLiquidityQueryMsgResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetTotalPoolLiquidityQueryMsgResponse { return new GetTotalPoolLiquidityQueryMsgResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetTotalPoolLiquidityQueryMsgResponse { return new GetTotalPoolLiquidityQueryMsgResponse().fromJsonString(jsonString, options); } static equals(a: GetTotalPoolLiquidityQueryMsgResponse | PlainMessage | undefined, b: GetTotalPoolLiquidityQueryMsgResponse | PlainMessage | undefined): boolean { return proto3.util.equals(GetTotalPoolLiquidityQueryMsgResponse, a, b); } } /** * ===================== GetTotalSharesQueryMsg * * @generated from message osmosis.cosmwasmpool.v1beta1.GetTotalSharesQueryMsg */ export class GetTotalSharesQueryMsg extends Message { /** * get_total_shares is the structure containing request field of the * total shares query message. * * @generated from field: osmosis.cosmwasmpool.v1beta1.EmptyStruct get_total_shares = 1; */ getTotalShares?: EmptyStruct; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "osmosis.cosmwasmpool.v1beta1.GetTotalSharesQueryMsg"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "get_total_shares", kind: "message", T: EmptyStruct }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetTotalSharesQueryMsg { return new GetTotalSharesQueryMsg().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetTotalSharesQueryMsg { return new GetTotalSharesQueryMsg().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetTotalSharesQueryMsg { return new GetTotalSharesQueryMsg().fromJsonString(jsonString, options); } static equals(a: GetTotalSharesQueryMsg | PlainMessage | undefined, b: GetTotalSharesQueryMsg | PlainMessage | undefined): boolean { return proto3.util.equals(GetTotalSharesQueryMsg, a, b); } } /** * @generated from message osmosis.cosmwasmpool.v1beta1.GetTotalSharesQueryMsgResponse */ export class GetTotalSharesQueryMsgResponse extends Message { /** * total_shares is the amount of shares returned. * * @generated from field: string total_shares = 1; */ totalShares = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "osmosis.cosmwasmpool.v1beta1.GetTotalSharesQueryMsgResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "total_shares", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetTotalSharesQueryMsgResponse { return new GetTotalSharesQueryMsgResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GetTotalSharesQueryMsgResponse { return new GetTotalSharesQueryMsgResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GetTotalSharesQueryMsgResponse { return new GetTotalSharesQueryMsgResponse().fromJsonString(jsonString, options); } static equals(a: GetTotalSharesQueryMsgResponse | PlainMessage | undefined, b: GetTotalSharesQueryMsgResponse | PlainMessage | undefined): boolean { return proto3.util.equals(GetTotalSharesQueryMsgResponse, a, b); } }