// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" // @generated from file osmosis/poolmanager/v1beta1/genesis.proto (package osmosis.poolmanager.v1beta1, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; import { ModuleRoute } from "./module_route_pb.js"; import { DenomPairTakerFee } from "./tx_pb.js"; /** * Params holds parameters for the poolmanager module * * @generated from message osmosis.poolmanager.v1beta1.Params */ export class Params extends Message { /** * @generated from field: repeated cosmos.base.v1beta1.Coin pool_creation_fee = 1; */ poolCreationFee: Coin[] = []; /** * taker_fee_params is the container of taker fee parameters. * * @generated from field: osmosis.poolmanager.v1beta1.TakerFeeParams taker_fee_params = 2; */ takerFeeParams?: TakerFeeParams; /** * authorized_quote_denoms is a list of quote denoms that can be used as * token1 when creating a concentrated pool. We limit the quote assets to a * small set for the purposes of having convenient price increments stemming * from tick to price conversion. These increments are in a human readable * magnitude only for token1 as a quote. For limit orders in the future, this * will be a desirable property in terms of UX as to allow users to set limit * orders at prices in terms of token1 (quote asset) that are easy to reason * about. * * @generated from field: repeated string authorized_quote_denoms = 3; */ authorizedQuoteDenoms: string[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "osmosis.poolmanager.v1beta1.Params"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "pool_creation_fee", kind: "message", T: Coin, repeated: true }, { no: 2, name: "taker_fee_params", kind: "message", T: TakerFeeParams }, { no: 3, name: "authorized_quote_denoms", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Params { return new Params().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): Params { return new Params().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): Params { return new Params().fromJsonString(jsonString, options); } static equals(a: Params | PlainMessage | undefined, b: Params | PlainMessage | undefined): boolean { return proto3.util.equals(Params, a, b); } } /** * GenesisState defines the poolmanager module's genesis state. * * @generated from message osmosis.poolmanager.v1beta1.GenesisState */ export class GenesisState extends Message { /** * the next_pool_id * * @generated from field: uint64 next_pool_id = 1; */ nextPoolId = protoInt64.zero; /** * params is the container of poolmanager parameters. * * @generated from field: osmosis.poolmanager.v1beta1.Params params = 2; */ params?: Params; /** * pool_routes is the container of the mappings from pool id to pool type. * * @generated from field: repeated osmosis.poolmanager.v1beta1.ModuleRoute pool_routes = 3; */ poolRoutes: ModuleRoute[] = []; /** * KVStore state * * @generated from field: osmosis.poolmanager.v1beta1.TakerFeesTracker taker_fees_tracker = 4; */ takerFeesTracker?: TakerFeesTracker; /** * @generated from field: repeated osmosis.poolmanager.v1beta1.PoolVolume pool_volumes = 5; */ poolVolumes: PoolVolume[] = []; /** * @generated from field: repeated osmosis.poolmanager.v1beta1.DenomPairTakerFee denom_pair_taker_fee_store = 6; */ denomPairTakerFeeStore: DenomPairTakerFee[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "osmosis.poolmanager.v1beta1.GenesisState"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "next_pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 2, name: "params", kind: "message", T: Params }, { no: 3, name: "pool_routes", kind: "message", T: ModuleRoute, repeated: true }, { no: 4, name: "taker_fees_tracker", kind: "message", T: TakerFeesTracker }, { no: 5, name: "pool_volumes", kind: "message", T: PoolVolume, repeated: true }, { no: 6, name: "denom_pair_taker_fee_store", kind: "message", T: DenomPairTakerFee, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GenesisState { return new GenesisState().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): GenesisState { return new GenesisState().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): GenesisState { return new GenesisState().fromJsonString(jsonString, options); } static equals(a: GenesisState | PlainMessage | undefined, b: GenesisState | PlainMessage | undefined): boolean { return proto3.util.equals(GenesisState, a, b); } } /** * TakerFeeParams consolidates the taker fee parameters for the poolmanager. * * @generated from message osmosis.poolmanager.v1beta1.TakerFeeParams */ export class TakerFeeParams extends Message { /** * default_taker_fee is the fee used when creating a new pool that doesn't * fall under a custom pool taker fee or stableswap taker fee category. * * @generated from field: string default_taker_fee = 1; */ defaultTakerFee = ""; /** * osmo_taker_fee_distribution defines the distribution of taker fees * generated in OSMO. As of this writing, it has two categories: * - staking_rewards: the percent of the taker fee that gets distributed to * stakers. * - community_pool: the percent of the taker fee that gets sent to the * community pool. * * @generated from field: osmosis.poolmanager.v1beta1.TakerFeeDistributionPercentage osmo_taker_fee_distribution = 2; */ osmoTakerFeeDistribution?: TakerFeeDistributionPercentage; /** * non_osmo_taker_fee_distribution defines the distribution of taker fees * generated in non-OSMO. As of this writing, it has two categories: * - staking_rewards: the percent of the taker fee that gets swapped to OSMO * and then distributed to stakers. * - community_pool: the percent of the taker fee that gets sent to the * community pool. Note: If the non-OSMO asset is an authorized_quote_denom, * that denom is sent directly to the community pool. Otherwise, it is * swapped to the community_pool_denom_to_swap_non_whitelisted_assets_to and * then sent to the community pool as that denom. * * @generated from field: osmosis.poolmanager.v1beta1.TakerFeeDistributionPercentage non_osmo_taker_fee_distribution = 3; */ nonOsmoTakerFeeDistribution?: TakerFeeDistributionPercentage; /** * admin_addresses is a list of addresses that are allowed to set and remove * custom taker fees for denom pairs. Governance also has the ability to set * and remove custom taker fees for denom pairs, but with the normal * governance delay. * * @generated from field: repeated string admin_addresses = 4; */ adminAddresses: string[] = []; /** * community_pool_denom_to_swap_non_whitelisted_assets_to is the denom that * non-whitelisted taker fees will be swapped to before being sent to * the community pool. * * @generated from field: string community_pool_denom_to_swap_non_whitelisted_assets_to = 5; */ communityPoolDenomToSwapNonWhitelistedAssetsTo = ""; /** * reduced_fee_whitelist is a list of addresses that are * allowed to pay a reduce taker fee when performing a swap * (i.e. swap without paying the taker fee). * It is intended to be used for integrators who meet qualifying factors * that are approved by governance. * Initially, the taker fee is allowed to be bypassed completely. However * In the future, we will charge a reduced taker fee instead of no fee at all. * * @generated from field: repeated string reduced_fee_whitelist = 6; */ reducedFeeWhitelist: string[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "osmosis.poolmanager.v1beta1.TakerFeeParams"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "default_taker_fee", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "osmo_taker_fee_distribution", kind: "message", T: TakerFeeDistributionPercentage }, { no: 3, name: "non_osmo_taker_fee_distribution", kind: "message", T: TakerFeeDistributionPercentage }, { no: 4, name: "admin_addresses", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, { no: 5, name: "community_pool_denom_to_swap_non_whitelisted_assets_to", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 6, name: "reduced_fee_whitelist", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): TakerFeeParams { return new TakerFeeParams().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): TakerFeeParams { return new TakerFeeParams().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): TakerFeeParams { return new TakerFeeParams().fromJsonString(jsonString, options); } static equals(a: TakerFeeParams | PlainMessage | undefined, b: TakerFeeParams | PlainMessage | undefined): boolean { return proto3.util.equals(TakerFeeParams, a, b); } } /** * TakerFeeDistributionPercentage defines what percent of the taker fee category * gets distributed to the available categories. * * @generated from message osmosis.poolmanager.v1beta1.TakerFeeDistributionPercentage */ export class TakerFeeDistributionPercentage extends Message { /** * @generated from field: string staking_rewards = 1; */ stakingRewards = ""; /** * @generated from field: string community_pool = 2; */ communityPool = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "osmosis.poolmanager.v1beta1.TakerFeeDistributionPercentage"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "staking_rewards", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "community_pool", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): TakerFeeDistributionPercentage { return new TakerFeeDistributionPercentage().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): TakerFeeDistributionPercentage { return new TakerFeeDistributionPercentage().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): TakerFeeDistributionPercentage { return new TakerFeeDistributionPercentage().fromJsonString(jsonString, options); } static equals(a: TakerFeeDistributionPercentage | PlainMessage | undefined, b: TakerFeeDistributionPercentage | PlainMessage | undefined): boolean { return proto3.util.equals(TakerFeeDistributionPercentage, a, b); } } /** * @generated from message osmosis.poolmanager.v1beta1.TakerFeesTracker */ export class TakerFeesTracker extends Message { /** * @generated from field: repeated cosmos.base.v1beta1.Coin taker_fees_to_stakers = 1; */ takerFeesToStakers: Coin[] = []; /** * @generated from field: repeated cosmos.base.v1beta1.Coin taker_fees_to_community_pool = 2; */ takerFeesToCommunityPool: Coin[] = []; /** * @generated from field: int64 height_accounting_starts_from = 3; */ heightAccountingStartsFrom = protoInt64.zero; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "osmosis.poolmanager.v1beta1.TakerFeesTracker"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "taker_fees_to_stakers", kind: "message", T: Coin, repeated: true }, { no: 2, name: "taker_fees_to_community_pool", kind: "message", T: Coin, repeated: true }, { no: 3, name: "height_accounting_starts_from", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): TakerFeesTracker { return new TakerFeesTracker().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): TakerFeesTracker { return new TakerFeesTracker().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): TakerFeesTracker { return new TakerFeesTracker().fromJsonString(jsonString, options); } static equals(a: TakerFeesTracker | PlainMessage | undefined, b: TakerFeesTracker | PlainMessage | undefined): boolean { return proto3.util.equals(TakerFeesTracker, a, b); } } /** * PoolVolume stores the KVStore entries for each pool's volume, which * is used in export/import genesis. * * @generated from message osmosis.poolmanager.v1beta1.PoolVolume */ export class PoolVolume extends Message { /** * pool_id is the id of the pool. * * @generated from field: uint64 pool_id = 1; */ poolId = protoInt64.zero; /** * pool_volume is the cumulative volume of the pool. * * @generated from field: repeated cosmos.base.v1beta1.Coin pool_volume = 2; */ poolVolume: Coin[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "osmosis.poolmanager.v1beta1.PoolVolume"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 2, name: "pool_volume", kind: "message", T: Coin, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PoolVolume { return new PoolVolume().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): PoolVolume { return new PoolVolume().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): PoolVolume { return new PoolVolume().fromJsonString(jsonString, options); } static equals(a: PoolVolume | PlainMessage | undefined, b: PoolVolume | PlainMessage | undefined): boolean { return proto3.util.equals(PoolVolume, a, b); } }