// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" // @generated from file injective/auction/v1beta1/auction.proto (package injective.auction.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"; /** * @generated from message injective.auction.v1beta1.Params */ export class Params extends Message { /** * auction_period_duration defines the auction period duration * * @generated from field: int64 auction_period = 1; */ auctionPeriod = protoInt64.zero; /** * min_next_bid_increment_rate defines the minimum increment rate for new bids * * @generated from field: string min_next_bid_increment_rate = 2; */ minNextBidIncrementRate = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.auction.v1beta1.Params"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "auction_period", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 2, name: "min_next_bid_increment_rate", 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); } } /** * @generated from message injective.auction.v1beta1.Bid */ export class Bid extends Message { /** * @generated from field: string bidder = 1; */ bidder = ""; /** * @generated from field: string amount = 2; */ amount = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.auction.v1beta1.Bid"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "bidder", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Bid { return new Bid().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): Bid { return new Bid().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): Bid { return new Bid().fromJsonString(jsonString, options); } static equals(a: Bid | PlainMessage | undefined, b: Bid | PlainMessage | undefined): boolean { return proto3.util.equals(Bid, a, b); } } /** * @generated from message injective.auction.v1beta1.EventBid */ export class EventBid extends Message { /** * bidder describes the address of bidder * * @generated from field: string bidder = 1; */ bidder = ""; /** * amount describes the amount the bidder put on the auction * * @generated from field: string amount = 2; */ amount = ""; /** * round defines the round number of auction * * @generated from field: uint64 round = 3; */ round = protoInt64.zero; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.auction.v1beta1.EventBid"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "bidder", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "round", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): EventBid { return new EventBid().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): EventBid { return new EventBid().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): EventBid { return new EventBid().fromJsonString(jsonString, options); } static equals(a: EventBid | PlainMessage | undefined, b: EventBid | PlainMessage | undefined): boolean { return proto3.util.equals(EventBid, a, b); } } /** * @generated from message injective.auction.v1beta1.EventAuctionResult */ export class EventAuctionResult extends Message { /** * winner describes the address of the winner * * @generated from field: string winner = 1; */ winner = ""; /** * amount describes the amount the winner get from the auction * * @generated from field: string amount = 2; */ amount = ""; /** * round defines the round number of auction * * @generated from field: uint64 round = 3; */ round = protoInt64.zero; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.auction.v1beta1.EventAuctionResult"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "winner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "round", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): EventAuctionResult { return new EventAuctionResult().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): EventAuctionResult { return new EventAuctionResult().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): EventAuctionResult { return new EventAuctionResult().fromJsonString(jsonString, options); } static equals(a: EventAuctionResult | PlainMessage | undefined, b: EventAuctionResult | PlainMessage | undefined): boolean { return proto3.util.equals(EventAuctionResult, a, b); } } /** * @generated from message injective.auction.v1beta1.EventAuctionStart */ export class EventAuctionStart extends Message { /** * round defines the round number of auction * * @generated from field: uint64 round = 1; */ round = protoInt64.zero; /** * ending_timestamp describes auction end time * * @generated from field: int64 ending_timestamp = 2; */ endingTimestamp = protoInt64.zero; /** * new_basket describes auction module balance at the time of new auction * start * * @generated from field: repeated cosmos.base.v1beta1.Coin new_basket = 3; */ newBasket: Coin[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.auction.v1beta1.EventAuctionStart"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "round", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 2, name: "ending_timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, { no: 3, name: "new_basket", kind: "message", T: Coin, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): EventAuctionStart { return new EventAuctionStart().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): EventAuctionStart { return new EventAuctionStart().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): EventAuctionStart { return new EventAuctionStart().fromJsonString(jsonString, options); } static equals(a: EventAuctionStart | PlainMessage | undefined, b: EventAuctionStart | PlainMessage | undefined): boolean { return proto3.util.equals(EventAuctionStart, a, b); } }