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