@iotexproject/kit 0.2.14 → 0.2.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +27 -9
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -9121,11 +9121,16 @@ export type ProposalV2 = {
|
|
|
9121
9121
|
iip_number: number | null;
|
|
9122
9122
|
title: string | null;
|
|
9123
9123
|
slug: string;
|
|
9124
|
+
creator?: string | null;
|
|
9124
9125
|
content: string;
|
|
9126
|
+
status: string | null;
|
|
9125
9127
|
repo_status: string | null;
|
|
9126
9128
|
governance_status: string | null;
|
|
9127
9129
|
created_at: string;
|
|
9128
9130
|
updated_at: string;
|
|
9131
|
+
start_time?: string | null;
|
|
9132
|
+
end_time?: string | null;
|
|
9133
|
+
is_draft?: boolean;
|
|
9129
9134
|
created_date: string | null;
|
|
9130
9135
|
synced_at: string;
|
|
9131
9136
|
authors: string | null;
|
|
@@ -9142,13 +9147,28 @@ export type ProposalV2 = {
|
|
|
9142
9147
|
no_vote_weight?: number | null;
|
|
9143
9148
|
abstain_vote_count?: number | null;
|
|
9144
9149
|
abstain_vote_weight?: number | null;
|
|
9145
|
-
start_time?: string | null;
|
|
9146
|
-
end_time?: string | null;
|
|
9147
9150
|
votes?: Vote[];
|
|
9148
9151
|
currentUser?: CurrentUser;
|
|
9149
9152
|
vote_count?: string | null;
|
|
9150
9153
|
vote_result?: "passed" | "rejected" | "closed" | null;
|
|
9151
9154
|
};
|
|
9155
|
+
export type ProposalListItemV2 = {
|
|
9156
|
+
id: number | null;
|
|
9157
|
+
iip_number: number | null;
|
|
9158
|
+
iip_key: string;
|
|
9159
|
+
title: string | null;
|
|
9160
|
+
creator?: string | null;
|
|
9161
|
+
status: string | null;
|
|
9162
|
+
repo_status: string | null;
|
|
9163
|
+
created_at: string;
|
|
9164
|
+
updated_at: string;
|
|
9165
|
+
end_time?: string | null;
|
|
9166
|
+
start_time?: string | null;
|
|
9167
|
+
slug: string;
|
|
9168
|
+
vote_count?: string | null;
|
|
9169
|
+
proposal_id?: number | null;
|
|
9170
|
+
vote_result?: "passed" | "rejected" | "closed" | null;
|
|
9171
|
+
};
|
|
9152
9172
|
export type IipProposalForVote = {
|
|
9153
9173
|
id: number;
|
|
9154
9174
|
iip_number: number;
|
|
@@ -9210,13 +9230,14 @@ declare class Dao extends BaseDBModule {
|
|
|
9210
9230
|
proposal_title?: string;
|
|
9211
9231
|
}): Promise<import("postgres").RowList<import("postgres").Row[]>>;
|
|
9212
9232
|
createProposal(args: {
|
|
9233
|
+
iip_number: number;
|
|
9213
9234
|
title: string;
|
|
9214
9235
|
content: string;
|
|
9215
9236
|
message: string;
|
|
9216
9237
|
signature: string;
|
|
9217
9238
|
start_time: string;
|
|
9218
9239
|
end_time: string;
|
|
9219
|
-
}): Promise<import("postgres").
|
|
9240
|
+
}): Promise<import("postgres").Row>;
|
|
9220
9241
|
syncProposal(args?: {
|
|
9221
9242
|
payload?: Record<string, any>;
|
|
9222
9243
|
deliveryId?: string;
|
|
@@ -9268,18 +9289,15 @@ declare class Dao extends BaseDBModule {
|
|
|
9268
9289
|
page: number;
|
|
9269
9290
|
pageSize: number;
|
|
9270
9291
|
}): Promise<{
|
|
9271
|
-
data:
|
|
9292
|
+
data: ProposalListItemV2[] & Iterable<ProposalListItemV2> & import("postgres").ResultQueryMeta<number, keyof ProposalListItemV2>;
|
|
9272
9293
|
total: number;
|
|
9273
9294
|
}>;
|
|
9274
9295
|
getProposalListV2(args: {
|
|
9275
|
-
|
|
9276
|
-
repoStatus?: string;
|
|
9277
|
-
orderBy?: string;
|
|
9278
|
-
order?: string;
|
|
9296
|
+
status?: string;
|
|
9279
9297
|
page?: number;
|
|
9280
9298
|
pageSize?: number;
|
|
9281
9299
|
}): Promise<{
|
|
9282
|
-
data:
|
|
9300
|
+
data: ProposalListItemV2[] & Iterable<ProposalListItemV2> & import("postgres").ResultQueryMeta<number, keyof ProposalListItemV2>;
|
|
9283
9301
|
total: number;
|
|
9284
9302
|
}>;
|
|
9285
9303
|
getVotesByProposalIdV2({ proposal_id, iip_number, }: {
|