-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
69 changed files
with
38,007 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,265 @@ | ||
// @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<Params> { | ||
/** | ||
* 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<Params>) { | ||
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<BinaryReadOptions>): Params { | ||
return new Params().fromBinary(bytes, options); | ||
} | ||
|
||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Params { | ||
return new Params().fromJson(jsonValue, options); | ||
} | ||
|
||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Params { | ||
return new Params().fromJsonString(jsonString, options); | ||
} | ||
|
||
static equals(a: Params | PlainMessage<Params> | undefined, b: Params | PlainMessage<Params> | undefined): boolean { | ||
return proto3.util.equals(Params, a, b); | ||
} | ||
} | ||
|
||
/** | ||
* @generated from message injective.auction.v1beta1.Bid | ||
*/ | ||
export class Bid extends Message<Bid> { | ||
/** | ||
* @generated from field: string bidder = 1; | ||
*/ | ||
bidder = ""; | ||
|
||
/** | ||
* @generated from field: string amount = 2; | ||
*/ | ||
amount = ""; | ||
|
||
constructor(data?: PartialMessage<Bid>) { | ||
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<BinaryReadOptions>): Bid { | ||
return new Bid().fromBinary(bytes, options); | ||
} | ||
|
||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Bid { | ||
return new Bid().fromJson(jsonValue, options); | ||
} | ||
|
||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Bid { | ||
return new Bid().fromJsonString(jsonString, options); | ||
} | ||
|
||
static equals(a: Bid | PlainMessage<Bid> | undefined, b: Bid | PlainMessage<Bid> | undefined): boolean { | ||
return proto3.util.equals(Bid, a, b); | ||
} | ||
} | ||
|
||
/** | ||
* @generated from message injective.auction.v1beta1.EventBid | ||
*/ | ||
export class EventBid extends Message<EventBid> { | ||
/** | ||
* 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<EventBid>) { | ||
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<BinaryReadOptions>): EventBid { | ||
return new EventBid().fromBinary(bytes, options); | ||
} | ||
|
||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EventBid { | ||
return new EventBid().fromJson(jsonValue, options); | ||
} | ||
|
||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EventBid { | ||
return new EventBid().fromJsonString(jsonString, options); | ||
} | ||
|
||
static equals(a: EventBid | PlainMessage<EventBid> | undefined, b: EventBid | PlainMessage<EventBid> | undefined): boolean { | ||
return proto3.util.equals(EventBid, a, b); | ||
} | ||
} | ||
|
||
/** | ||
* @generated from message injective.auction.v1beta1.EventAuctionResult | ||
*/ | ||
export class EventAuctionResult extends Message<EventAuctionResult> { | ||
/** | ||
* 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<EventAuctionResult>) { | ||
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<BinaryReadOptions>): EventAuctionResult { | ||
return new EventAuctionResult().fromBinary(bytes, options); | ||
} | ||
|
||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EventAuctionResult { | ||
return new EventAuctionResult().fromJson(jsonValue, options); | ||
} | ||
|
||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EventAuctionResult { | ||
return new EventAuctionResult().fromJsonString(jsonString, options); | ||
} | ||
|
||
static equals(a: EventAuctionResult | PlainMessage<EventAuctionResult> | undefined, b: EventAuctionResult | PlainMessage<EventAuctionResult> | undefined): boolean { | ||
return proto3.util.equals(EventAuctionResult, a, b); | ||
} | ||
} | ||
|
||
/** | ||
* @generated from message injective.auction.v1beta1.EventAuctionStart | ||
*/ | ||
export class EventAuctionStart extends Message<EventAuctionStart> { | ||
/** | ||
* 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<EventAuctionStart>) { | ||
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<BinaryReadOptions>): EventAuctionStart { | ||
return new EventAuctionStart().fromBinary(bytes, options); | ||
} | ||
|
||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EventAuctionStart { | ||
return new EventAuctionStart().fromJson(jsonValue, options); | ||
} | ||
|
||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EventAuctionStart { | ||
return new EventAuctionStart().fromJsonString(jsonString, options); | ||
} | ||
|
||
static equals(a: EventAuctionStart | PlainMessage<EventAuctionStart> | undefined, b: EventAuctionStart | PlainMessage<EventAuctionStart> | undefined): boolean { | ||
return proto3.util.equals(EventAuctionStart, a, b); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" | ||
// @generated from file injective/auction/v1beta1/genesis.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 { Bid, Params } from "./auction_pb.js"; | ||
|
||
/** | ||
* GenesisState defines the auction module's genesis state. | ||
* | ||
* @generated from message injective.auction.v1beta1.GenesisState | ||
*/ | ||
export class GenesisState extends Message<GenesisState> { | ||
/** | ||
* params defines all the parameters of related to auction. | ||
* | ||
* @generated from field: injective.auction.v1beta1.Params params = 1; | ||
*/ | ||
params?: Params; | ||
|
||
/** | ||
* current auction round | ||
* | ||
* @generated from field: uint64 auction_round = 2; | ||
*/ | ||
auctionRound = protoInt64.zero; | ||
|
||
/** | ||
* current highest bid | ||
* | ||
* @generated from field: injective.auction.v1beta1.Bid highest_bid = 3; | ||
*/ | ||
highestBid?: Bid; | ||
|
||
/** | ||
* auction ending timestamp | ||
* | ||
* @generated from field: int64 auction_ending_timestamp = 4; | ||
*/ | ||
auctionEndingTimestamp = protoInt64.zero; | ||
|
||
constructor(data?: PartialMessage<GenesisState>) { | ||
super(); | ||
proto3.util.initPartial(data, this); | ||
} | ||
|
||
static readonly runtime: typeof proto3 = proto3; | ||
static readonly typeName = "injective.auction.v1beta1.GenesisState"; | ||
static readonly fields: FieldList = proto3.util.newFieldList(() => [ | ||
{ no: 1, name: "params", kind: "message", T: Params }, | ||
{ no: 2, name: "auction_round", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, | ||
{ no: 3, name: "highest_bid", kind: "message", T: Bid }, | ||
{ no: 4, name: "auction_ending_timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, | ||
]); | ||
|
||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GenesisState { | ||
return new GenesisState().fromBinary(bytes, options); | ||
} | ||
|
||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GenesisState { | ||
return new GenesisState().fromJson(jsonValue, options); | ||
} | ||
|
||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GenesisState { | ||
return new GenesisState().fromJsonString(jsonString, options); | ||
} | ||
|
||
static equals(a: GenesisState | PlainMessage<GenesisState> | undefined, b: GenesisState | PlainMessage<GenesisState> | undefined): boolean { | ||
return proto3.util.equals(GenesisState, a, b); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
// @generated by protoc-gen-cosmes v0.0.1 with parameter "target=ts" | ||
// @generated from file injective/auction/v1beta1/query.proto (package injective.auction.v1beta1, syntax proto3) | ||
/* eslint-disable */ | ||
// @ts-nocheck | ||
|
||
import { QueryAuctionParamsRequest, QueryAuctionParamsResponse, QueryCurrentAuctionBasketRequest, QueryCurrentAuctionBasketResponse, QueryModuleStateRequest, QueryModuleStateResponse } from "./query_pb.js"; | ||
|
||
const TYPE_NAME = "injective.auction.v1beta1.Query"; | ||
|
||
/** | ||
* Retrieves auction params | ||
* | ||
* @generated from rpc injective.auction.v1beta1.Query.AuctionParams | ||
*/ | ||
export const QueryAuctionParamsService = { | ||
typeName: TYPE_NAME, | ||
method: "AuctionParams", | ||
Request: QueryAuctionParamsRequest, | ||
Response: QueryAuctionParamsResponse, | ||
} as const; | ||
|
||
/** | ||
* Retrieves current auction basket with current highest bid and bidder | ||
* | ||
* @generated from rpc injective.auction.v1beta1.Query.CurrentAuctionBasket | ||
*/ | ||
export const QueryCurrentAuctionBasketService = { | ||
typeName: TYPE_NAME, | ||
method: "CurrentAuctionBasket", | ||
Request: QueryCurrentAuctionBasketRequest, | ||
Response: QueryCurrentAuctionBasketResponse, | ||
} as const; | ||
|
||
/** | ||
* Retrieves the entire auction module's state | ||
* | ||
* @generated from rpc injective.auction.v1beta1.Query.AuctionModuleState | ||
*/ | ||
export const QueryAuctionModuleStateService = { | ||
typeName: TYPE_NAME, | ||
method: "AuctionModuleState", | ||
Request: QueryModuleStateRequest, | ||
Response: QueryModuleStateResponse, | ||
} as const; | ||
|
Oops, something went wrong.