// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" // @generated from file osmosis/incentives/tx.proto (package osmosis.incentives, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; import { QueryCondition } from "../lockup/lock_pb.js"; import { Coin } from "../../cosmos/base/v1beta1/coin_pb.js"; /** * MsgCreateGauge creates a gague to distribute rewards to users * * @generated from message osmosis.incentives.MsgCreateGauge */ export class MsgCreateGauge extends Message { /** * is_perpetual shows if it's a perpetual or non-perpetual gauge * Non-perpetual gauges distribute their tokens equally per epoch while the * gauge is in the active period. Perpetual gauges distribute all their tokens * at a single time and only distribute their tokens again once the gauge is * refilled * * @generated from field: bool is_perpetual = 1; */ isPerpetual = false; /** * owner is the address of gauge creator * * @generated from field: string owner = 2; */ owner = ""; /** * distribute_to show which lock the gauge should distribute to by time * duration or by timestamp * * @generated from field: osmosis.lockup.QueryCondition distribute_to = 3; */ distributeTo?: QueryCondition; /** * coins are coin(s) to be distributed by the gauge * * @generated from field: repeated cosmos.base.v1beta1.Coin coins = 4; */ coins: Coin[] = []; /** * start_time is the distribution start time * * @generated from field: google.protobuf.Timestamp start_time = 5; */ startTime?: Timestamp; /** * num_epochs_paid_over is the number of epochs distribution will be completed * over * * @generated from field: uint64 num_epochs_paid_over = 6; */ numEpochsPaidOver = protoInt64.zero; /** * pool_id is the ID of the pool that the gauge is meant to be associated * with. if pool_id is set, then the "QueryCondition.LockQueryType" must be * "NoLock" with all other fields of the "QueryCondition.LockQueryType" struct * unset, including "QueryCondition.Denom". However, note that, internally, * the empty string in "QueryCondition.Denom" ends up being overwritten with * incentivestypes.NoLockExternalGaugeDenom() so that the gauges * associated with a pool can be queried by this prefix if needed. * * @generated from field: uint64 pool_id = 7; */ poolId = protoInt64.zero; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "osmosis.incentives.MsgCreateGauge"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "is_perpetual", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 2, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "distribute_to", kind: "message", T: QueryCondition }, { no: 4, name: "coins", kind: "message", T: Coin, repeated: true }, { no: 5, name: "start_time", kind: "message", T: Timestamp }, { no: 6, name: "num_epochs_paid_over", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 7, name: "pool_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateGauge { return new MsgCreateGauge().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateGauge { return new MsgCreateGauge().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgCreateGauge { return new MsgCreateGauge().fromJsonString(jsonString, options); } static equals(a: MsgCreateGauge | PlainMessage | undefined, b: MsgCreateGauge | PlainMessage | undefined): boolean { return proto3.util.equals(MsgCreateGauge, a, b); } } /** * @generated from message osmosis.incentives.MsgCreateGaugeResponse */ export class MsgCreateGaugeResponse extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "osmosis.incentives.MsgCreateGaugeResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateGaugeResponse { return new MsgCreateGaugeResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateGaugeResponse { return new MsgCreateGaugeResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgCreateGaugeResponse { return new MsgCreateGaugeResponse().fromJsonString(jsonString, options); } static equals(a: MsgCreateGaugeResponse | PlainMessage | undefined, b: MsgCreateGaugeResponse | PlainMessage | undefined): boolean { return proto3.util.equals(MsgCreateGaugeResponse, a, b); } } /** * MsgAddToGauge adds coins to a previously created gauge * * @generated from message osmosis.incentives.MsgAddToGauge */ export class MsgAddToGauge extends Message { /** * owner is the gauge owner's address * * @generated from field: string owner = 1; */ owner = ""; /** * gauge_id is the ID of gauge that rewards are getting added to * * @generated from field: uint64 gauge_id = 2; */ gaugeId = protoInt64.zero; /** * rewards are the coin(s) to add to gauge * * @generated from field: repeated cosmos.base.v1beta1.Coin rewards = 3; */ rewards: Coin[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "osmosis.incentives.MsgAddToGauge"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "gauge_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 3, name: "rewards", kind: "message", T: Coin, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddToGauge { return new MsgAddToGauge().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddToGauge { return new MsgAddToGauge().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgAddToGauge { return new MsgAddToGauge().fromJsonString(jsonString, options); } static equals(a: MsgAddToGauge | PlainMessage | undefined, b: MsgAddToGauge | PlainMessage | undefined): boolean { return proto3.util.equals(MsgAddToGauge, a, b); } } /** * @generated from message osmosis.incentives.MsgAddToGaugeResponse */ export class MsgAddToGaugeResponse extends Message { constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "osmosis.incentives.MsgAddToGaugeResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgAddToGaugeResponse { return new MsgAddToGaugeResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgAddToGaugeResponse { return new MsgAddToGaugeResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgAddToGaugeResponse { return new MsgAddToGaugeResponse().fromJsonString(jsonString, options); } static equals(a: MsgAddToGaugeResponse | PlainMessage | undefined, b: MsgAddToGaugeResponse | PlainMessage | undefined): boolean { return proto3.util.equals(MsgAddToGaugeResponse, a, b); } } /** * MsgCreateGroup creates a group to distribute rewards to a group of pools * * @generated from message osmosis.incentives.MsgCreateGroup */ export class MsgCreateGroup extends Message { /** * coins are the provided coins that the group will distribute * * @generated from field: repeated cosmos.base.v1beta1.Coin coins = 1; */ coins: Coin[] = []; /** * num_epochs_paid_over is the number of epochs distribution will be completed * in. 0 means it's perpetual * * @generated from field: uint64 num_epochs_paid_over = 2; */ numEpochsPaidOver = protoInt64.zero; /** * owner is the group owner's address * * @generated from field: string owner = 3; */ owner = ""; /** * pool_ids are the IDs of pools that the group is comprised of * * @generated from field: repeated uint64 pool_ids = 4; */ poolIds: bigint[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "osmosis.incentives.MsgCreateGroup"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "coins", kind: "message", T: Coin, repeated: true }, { no: 2, name: "num_epochs_paid_over", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 3, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "pool_ids", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateGroup { return new MsgCreateGroup().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateGroup { return new MsgCreateGroup().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgCreateGroup { return new MsgCreateGroup().fromJsonString(jsonString, options); } static equals(a: MsgCreateGroup | PlainMessage | undefined, b: MsgCreateGroup | PlainMessage | undefined): boolean { return proto3.util.equals(MsgCreateGroup, a, b); } } /** * @generated from message osmosis.incentives.MsgCreateGroupResponse */ export class MsgCreateGroupResponse extends Message { /** * group_id is the ID of the group that is created from this msg * * @generated from field: uint64 group_id = 1; */ groupId = protoInt64.zero; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "osmosis.incentives.MsgCreateGroupResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "group_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): MsgCreateGroupResponse { return new MsgCreateGroupResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): MsgCreateGroupResponse { return new MsgCreateGroupResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): MsgCreateGroupResponse { return new MsgCreateGroupResponse().fromJsonString(jsonString, options); } static equals(a: MsgCreateGroupResponse | PlainMessage | undefined, b: MsgCreateGroupResponse | PlainMessage | undefined): boolean { return proto3.util.equals(MsgCreateGroupResponse, a, b); } }