// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" // @generated from file osmosis/protorev/v1beta1/genesis.proto (package osmosis.protorev.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 { Params } from "./params_pb.js"; import { BaseDenom, CyclicArbTracker, InfoByPoolType, TokenPairArbRoutes } from "./protorev_pb.js"; import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; /** * GenesisState defines the protorev module's genesis state. * * @generated from message osmosis.protorev.v1beta1.GenesisState */ export class GenesisState extends Message { /** * Parameters for the protorev module. * * @generated from field: osmosis.protorev.v1beta1.Params params = 1; */ params?: Params; /** * Token pair arb routes for the protorev module (hot routes). * * @generated from field: repeated osmosis.protorev.v1beta1.TokenPairArbRoutes token_pair_arb_routes = 2; */ tokenPairArbRoutes: TokenPairArbRoutes[] = []; /** * The base denominations being used to create cyclic arbitrage routes via the * highest liquidity method. * * @generated from field: repeated osmosis.protorev.v1beta1.BaseDenom base_denoms = 3; */ baseDenoms: BaseDenom[] = []; /** * The number of days since module genesis. * * @generated from field: uint64 days_since_module_genesis = 5; */ daysSinceModuleGenesis = protoInt64.zero; /** * The fees the developer account has accumulated over time. * * @generated from field: repeated cosmos.base.v1beta1.Coin developer_fees = 6; */ developerFees: Coin[] = []; /** * The latest block height that the module has processed. * * @generated from field: uint64 latest_block_height = 7; */ latestBlockHeight = protoInt64.zero; /** * The developer account address of the module. * * @generated from field: string developer_address = 8; */ developerAddress = ""; /** * Max pool points per block i.e. the maximum compute time (in ms) * that protorev can use per block. * * @generated from field: uint64 max_pool_points_per_block = 9; */ maxPoolPointsPerBlock = protoInt64.zero; /** * Max pool points per tx i.e. the maximum compute time (in ms) that * protorev can use per tx. * * @generated from field: uint64 max_pool_points_per_tx = 10; */ maxPoolPointsPerTx = protoInt64.zero; /** * The number of pool points that have been consumed in the current block. * * @generated from field: uint64 point_count_for_block = 11; */ pointCountForBlock = protoInt64.zero; /** * All of the profits that have been accumulated by the module. * * @generated from field: repeated cosmos.base.v1beta1.Coin profits = 12; */ profits: Coin[] = []; /** * Information that is used to estimate execution time / gas * consumption of a swap on a given pool type. * * @generated from field: osmosis.protorev.v1beta1.InfoByPoolType info_by_pool_type = 13; */ infoByPoolType?: InfoByPoolType; /** * @generated from field: osmosis.protorev.v1beta1.CyclicArbTracker cyclic_arb_tracker = 14; */ cyclicArbTracker?: CyclicArbTracker; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "osmosis.protorev.v1beta1.GenesisState"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "params", kind: "message", T: Params }, { no: 2, name: "token_pair_arb_routes", kind: "message", T: TokenPairArbRoutes, repeated: true }, { no: 3, name: "base_denoms", kind: "message", T: BaseDenom, repeated: true }, { no: 5, name: "days_since_module_genesis", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 6, name: "developer_fees", kind: "message", T: Coin, repeated: true }, { no: 7, name: "latest_block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 8, name: "developer_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 9, name: "max_pool_points_per_block", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 10, name: "max_pool_points_per_tx", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 11, name: "point_count_for_block", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 12, name: "profits", kind: "message", T: Coin, repeated: true }, { no: 13, name: "info_by_pool_type", kind: "message", T: InfoByPoolType }, { no: 14, name: "cyclic_arb_tracker", kind: "message", T: CyclicArbTracker }, ]); 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); } }