@iotexproject/kit 0.1.99 → 0.2.2
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 +60 -19
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -9360,69 +9360,110 @@ export type DelegateMember = {
|
|
|
9360
9360
|
id: number;
|
|
9361
9361
|
member_address: string;
|
|
9362
9362
|
};
|
|
9363
|
+
export type MyProfileListItem = {
|
|
9364
|
+
candidate_meta_id: number;
|
|
9365
|
+
profile_address: string;
|
|
9366
|
+
member_address: string;
|
|
9367
|
+
name: string;
|
|
9368
|
+
owner_address: string;
|
|
9369
|
+
};
|
|
9363
9370
|
declare class Delegate$1 extends BaseDBModule {
|
|
9364
9371
|
upsertCandidateProfile(args: ProfileMeta): Promise<{
|
|
9365
|
-
|
|
9366
|
-
|
|
9372
|
+
status: string;
|
|
9373
|
+
data: {
|
|
9374
|
+
id: number;
|
|
9375
|
+
} | null;
|
|
9376
|
+
}>;
|
|
9367
9377
|
getCandidateByAddress({ address }: {
|
|
9368
9378
|
address: string;
|
|
9369
|
-
}): Promise<
|
|
9379
|
+
}): Promise<{
|
|
9380
|
+
status: string;
|
|
9381
|
+
data: CandidateProfile;
|
|
9382
|
+
}>;
|
|
9370
9383
|
upsertCandidateSecret(args: Candidate$1): Promise<{
|
|
9371
|
-
|
|
9384
|
+
status: string;
|
|
9385
|
+
data: null;
|
|
9372
9386
|
}>;
|
|
9373
9387
|
upsertCandidateMeta(args: Candidate$1): Promise<{
|
|
9374
|
-
|
|
9388
|
+
status: string;
|
|
9389
|
+
data: null;
|
|
9375
9390
|
}>;
|
|
9376
9391
|
getDelegateHeight({ name }: {
|
|
9377
9392
|
name: string;
|
|
9378
9393
|
}): Promise<{
|
|
9379
|
-
|
|
9394
|
+
status: string;
|
|
9395
|
+
data: {
|
|
9396
|
+
block_height: string;
|
|
9397
|
+
};
|
|
9380
9398
|
}>;
|
|
9381
9399
|
getProductivityHistory({ startDate, endDate, candidate }: {
|
|
9382
9400
|
startDate?: string;
|
|
9383
9401
|
endDate: string;
|
|
9384
9402
|
candidate: string;
|
|
9385
|
-
}): Promise<
|
|
9403
|
+
}): Promise<{
|
|
9404
|
+
status: string;
|
|
9405
|
+
data: import("postgres").RowList<ProductivityHistory[]>;
|
|
9406
|
+
}>;
|
|
9386
9407
|
getProbationHistory({ startDate, endDate, candidate }: {
|
|
9387
9408
|
startDate: string;
|
|
9388
9409
|
endDate: string;
|
|
9389
9410
|
candidate: string;
|
|
9390
|
-
}): Promise<
|
|
9391
|
-
|
|
9411
|
+
}): Promise<{
|
|
9412
|
+
status: string;
|
|
9413
|
+
data: import("postgres").RowList<ProbationHistory[]>;
|
|
9414
|
+
}>;
|
|
9415
|
+
getDelegateLatestVersion(): Promise<{
|
|
9416
|
+
status: string;
|
|
9417
|
+
data: NodeVersion;
|
|
9418
|
+
}>;
|
|
9392
9419
|
getDelegateRewards({ candidate }: {
|
|
9393
9420
|
candidate: string;
|
|
9394
|
-
}): Promise<
|
|
9421
|
+
}): Promise<{
|
|
9422
|
+
status: string;
|
|
9423
|
+
data: DelegateRewards;
|
|
9424
|
+
}>;
|
|
9395
9425
|
getDelegateRewardsHistory({ startDate, endDate, candidate }: {
|
|
9396
9426
|
startDate: string;
|
|
9397
9427
|
endDate: string;
|
|
9398
9428
|
candidate: string;
|
|
9399
|
-
}): Promise<
|
|
9429
|
+
}): Promise<{
|
|
9430
|
+
status: string;
|
|
9431
|
+
data: import("postgres").RowList<DelegateRewardsHistory[]>;
|
|
9432
|
+
}>;
|
|
9400
9433
|
getDelegateMembers({ candidate_meta_id }: {
|
|
9401
9434
|
candidate_meta_id: number;
|
|
9402
|
-
}): Promise<
|
|
9435
|
+
}): Promise<{
|
|
9436
|
+
status: string;
|
|
9437
|
+
data: import("postgres").RowList<DelegateMember[]>;
|
|
9438
|
+
}>;
|
|
9403
9439
|
upsertMember({ member_address, candidate_meta_id, is_active, creator }: {
|
|
9404
9440
|
member_address: string;
|
|
9405
9441
|
candidate_meta_id: number;
|
|
9406
9442
|
is_active: boolean;
|
|
9407
9443
|
creator: string;
|
|
9408
9444
|
}): Promise<{
|
|
9409
|
-
|
|
9410
|
-
|
|
9411
|
-
} | {
|
|
9412
|
-
success: boolean;
|
|
9413
|
-
error?: undefined;
|
|
9445
|
+
status: string;
|
|
9446
|
+
data: null;
|
|
9414
9447
|
}>;
|
|
9415
9448
|
updateCandidateOwner({ candidate_owner, id }: {
|
|
9416
9449
|
candidate_owner: string;
|
|
9417
9450
|
id: number;
|
|
9418
9451
|
}): Promise<{
|
|
9419
|
-
|
|
9452
|
+
status: string;
|
|
9453
|
+
data: null;
|
|
9420
9454
|
}>;
|
|
9421
9455
|
transferDelegateOwnership({ candidate_owner, id }: {
|
|
9422
9456
|
candidate_owner: string;
|
|
9423
9457
|
id: number;
|
|
9424
9458
|
}): Promise<{
|
|
9425
|
-
|
|
9459
|
+
status: string;
|
|
9460
|
+
data: null;
|
|
9461
|
+
}>;
|
|
9462
|
+
getMyProfileList({ member_address }: {
|
|
9463
|
+
member_address: string;
|
|
9464
|
+
}): Promise<{
|
|
9465
|
+
status: string;
|
|
9466
|
+
data: MyProfileListItem[];
|
|
9426
9467
|
}>;
|
|
9427
9468
|
}
|
|
9428
9469
|
declare const modules$1: {
|