mirror of
https://github.com/colinear-labs/chain.git
synced 2026-03-05 19:44:25 -08:00
regenerate auction type
This commit is contained in:
@@ -13,8 +13,12 @@ export interface CosmostestAuction {
|
||||
index?: string;
|
||||
name?: string;
|
||||
description?: string;
|
||||
bids?: string;
|
||||
highestBid?: string;
|
||||
|
||||
/** @format int64 */
|
||||
bids?: number;
|
||||
|
||||
/** @format int64 */
|
||||
highestBid?: number;
|
||||
}
|
||||
|
||||
export interface CosmostestMsgNewAuctionResponse {
|
||||
@@ -110,13 +114,6 @@ export interface V1Beta1PageRequest {
|
||||
* is set.
|
||||
*/
|
||||
count_total?: boolean;
|
||||
|
||||
/**
|
||||
* reverse is set to true if results are to be returned in the descending order.
|
||||
*
|
||||
* Since: cosmos-sdk 0.43
|
||||
*/
|
||||
reverse?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -346,7 +343,6 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
||||
"pagination.offset"?: string;
|
||||
"pagination.limit"?: string;
|
||||
"pagination.count_total"?: boolean;
|
||||
"pagination.reverse"?: boolean;
|
||||
},
|
||||
params: RequestParams = {},
|
||||
) =>
|
||||
|
||||
@@ -38,12 +38,6 @@ export interface PageRequest {
|
||||
* is set.
|
||||
*/
|
||||
count_total: boolean;
|
||||
/**
|
||||
* reverse is set to true if results are to be returned in the descending order.
|
||||
*
|
||||
* Since: cosmos-sdk 0.43
|
||||
*/
|
||||
reverse: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -68,12 +62,7 @@ export interface PageResponse {
|
||||
total: number;
|
||||
}
|
||||
|
||||
const basePageRequest: object = {
|
||||
offset: 0,
|
||||
limit: 0,
|
||||
count_total: false,
|
||||
reverse: false,
|
||||
};
|
||||
const basePageRequest: object = { offset: 0, limit: 0, count_total: false };
|
||||
|
||||
export const PageRequest = {
|
||||
encode(message: PageRequest, writer: Writer = Writer.create()): Writer {
|
||||
@@ -89,9 +78,6 @@ export const PageRequest = {
|
||||
if (message.count_total === true) {
|
||||
writer.uint32(32).bool(message.count_total);
|
||||
}
|
||||
if (message.reverse === true) {
|
||||
writer.uint32(40).bool(message.reverse);
|
||||
}
|
||||
return writer;
|
||||
},
|
||||
|
||||
@@ -114,9 +100,6 @@ export const PageRequest = {
|
||||
case 4:
|
||||
message.count_total = reader.bool();
|
||||
break;
|
||||
case 5:
|
||||
message.reverse = reader.bool();
|
||||
break;
|
||||
default:
|
||||
reader.skipType(tag & 7);
|
||||
break;
|
||||
@@ -145,11 +128,6 @@ export const PageRequest = {
|
||||
} else {
|
||||
message.count_total = false;
|
||||
}
|
||||
if (object.reverse !== undefined && object.reverse !== null) {
|
||||
message.reverse = Boolean(object.reverse);
|
||||
} else {
|
||||
message.reverse = false;
|
||||
}
|
||||
return message;
|
||||
},
|
||||
|
||||
@@ -163,7 +141,6 @@ export const PageRequest = {
|
||||
message.limit !== undefined && (obj.limit = message.limit);
|
||||
message.count_total !== undefined &&
|
||||
(obj.count_total = message.count_total);
|
||||
message.reverse !== undefined && (obj.reverse = message.reverse);
|
||||
return obj;
|
||||
},
|
||||
|
||||
@@ -189,11 +166,6 @@ export const PageRequest = {
|
||||
} else {
|
||||
message.count_total = false;
|
||||
}
|
||||
if (object.reverse !== undefined && object.reverse !== null) {
|
||||
message.reverse = object.reverse;
|
||||
} else {
|
||||
message.reverse = false;
|
||||
}
|
||||
return message;
|
||||
},
|
||||
};
|
||||
|
||||
@@ -7,16 +7,16 @@ export interface Auction {
|
||||
index: string;
|
||||
name: string;
|
||||
description: string;
|
||||
bids: string;
|
||||
highestBid: string;
|
||||
bids: number;
|
||||
highestBid: number;
|
||||
}
|
||||
|
||||
const baseAuction: object = {
|
||||
index: "",
|
||||
name: "",
|
||||
description: "",
|
||||
bids: "",
|
||||
highestBid: "",
|
||||
bids: 0,
|
||||
highestBid: 0,
|
||||
};
|
||||
|
||||
export const Auction = {
|
||||
@@ -30,11 +30,11 @@ export const Auction = {
|
||||
if (message.description !== "") {
|
||||
writer.uint32(26).string(message.description);
|
||||
}
|
||||
if (message.bids !== "") {
|
||||
writer.uint32(34).string(message.bids);
|
||||
if (message.bids !== 0) {
|
||||
writer.uint32(32).uint32(message.bids);
|
||||
}
|
||||
if (message.highestBid !== "") {
|
||||
writer.uint32(42).string(message.highestBid);
|
||||
if (message.highestBid !== 0) {
|
||||
writer.uint32(40).uint32(message.highestBid);
|
||||
}
|
||||
return writer;
|
||||
},
|
||||
@@ -56,10 +56,10 @@ export const Auction = {
|
||||
message.description = reader.string();
|
||||
break;
|
||||
case 4:
|
||||
message.bids = reader.string();
|
||||
message.bids = reader.uint32();
|
||||
break;
|
||||
case 5:
|
||||
message.highestBid = reader.string();
|
||||
message.highestBid = reader.uint32();
|
||||
break;
|
||||
default:
|
||||
reader.skipType(tag & 7);
|
||||
@@ -87,14 +87,14 @@ export const Auction = {
|
||||
message.description = "";
|
||||
}
|
||||
if (object.bids !== undefined && object.bids !== null) {
|
||||
message.bids = String(object.bids);
|
||||
message.bids = Number(object.bids);
|
||||
} else {
|
||||
message.bids = "";
|
||||
message.bids = 0;
|
||||
}
|
||||
if (object.highestBid !== undefined && object.highestBid !== null) {
|
||||
message.highestBid = String(object.highestBid);
|
||||
message.highestBid = Number(object.highestBid);
|
||||
} else {
|
||||
message.highestBid = "";
|
||||
message.highestBid = 0;
|
||||
}
|
||||
return message;
|
||||
},
|
||||
@@ -130,12 +130,12 @@ export const Auction = {
|
||||
if (object.bids !== undefined && object.bids !== null) {
|
||||
message.bids = object.bids;
|
||||
} else {
|
||||
message.bids = "";
|
||||
message.bids = 0;
|
||||
}
|
||||
if (object.highestBid !== undefined && object.highestBid !== null) {
|
||||
message.highestBid = object.highestBid;
|
||||
} else {
|
||||
message.highestBid = "";
|
||||
message.highestBid = 0;
|
||||
}
|
||||
return message;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user