// @generated by protoc-gen-es v1.3.1 with parameter "target=ts" // @generated from file haqq/coinomics/v1/genesis.proto (package haqq.coinomics.v1, 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"; /** * GenesisState defines the inflation module's genesis state. * * @generated from message haqq.coinomics.v1.GenesisState */ export class GenesisState extends Message { /** * params defines all the paramaters of the module. * * @generated from field: haqq.coinomics.v1.Params params = 1; */ params?: Params; /** * prev block block ts * * @generated from field: string prev_block_ts = 2; */ prevBlockTs = ""; /** * max supply * * @generated from field: cosmos.base.v1beta1.Coin max_supply = 3; */ maxSupply?: Coin; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "haqq.coinomics.v1.GenesisState"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "params", kind: "message", T: Params }, { no: 2, name: "prev_block_ts", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "max_supply", kind: "message", T: Coin }, ]); 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); } } /** * Params holds parameters for the coinomics module. * * @generated from message haqq.coinomics.v1.Params */ export class Params extends Message { /** * type of coin to mint * * @generated from field: string mint_denom = 1; */ mintDenom = ""; /** * parameter to enable coinmoics * * @generated from field: bool enable_coinomics = 2; */ enableCoinomics = false; /** * current staking reward coefficient * * @generated from field: string reward_coefficient = 3; */ rewardCoefficient = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "haqq.coinomics.v1.Params"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "mint_denom", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "enable_coinomics", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 3, name: "reward_coefficient", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); 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); } }