@iotexproject/kit 0.1.28 → 0.1.29
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 +38 -7
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -8432,6 +8432,23 @@ export interface Candidate {
|
|
|
8432
8432
|
export interface CandidateV3 extends Candidate {
|
|
8433
8433
|
id: string;
|
|
8434
8434
|
}
|
|
8435
|
+
export interface CompositeBucket {
|
|
8436
|
+
index: bigint;
|
|
8437
|
+
candidateAddress: string;
|
|
8438
|
+
stakedAmount: bigint;
|
|
8439
|
+
stakedDuration: number;
|
|
8440
|
+
createTime: bigint;
|
|
8441
|
+
stakeStartTime: bigint;
|
|
8442
|
+
unstakeStartTime: bigint;
|
|
8443
|
+
autoStake: boolean;
|
|
8444
|
+
owner: string;
|
|
8445
|
+
contractAddress: string;
|
|
8446
|
+
stakedDurationBlockNumber: bigint;
|
|
8447
|
+
createBlockHeight: bigint;
|
|
8448
|
+
stakeStartBlockHeight: bigint;
|
|
8449
|
+
unstakeStartBlockHeight: bigint;
|
|
8450
|
+
endorsementExpireBlockHeight: bigint;
|
|
8451
|
+
}
|
|
8435
8452
|
export interface Bucket {
|
|
8436
8453
|
index: bigint;
|
|
8437
8454
|
candidateAddress: string;
|
|
@@ -8570,13 +8587,16 @@ declare class Staking {
|
|
|
8570
8587
|
}): Promise<any>;
|
|
8571
8588
|
getEndorseBucketsByDelegate(args: {
|
|
8572
8589
|
ownerAddress: `0x${string}` | `io${string}`;
|
|
8573
|
-
}): Promise<
|
|
8590
|
+
}): Promise<CompositeBucket[]>;
|
|
8574
8591
|
candidateTransferOwnership({ newOwner }: {
|
|
8575
8592
|
newOwner: `0x${string}`;
|
|
8576
8593
|
}): Promise<any>;
|
|
8577
8594
|
candidateActivate({ bucketIndex }: {
|
|
8578
8595
|
bucketIndex: string;
|
|
8579
8596
|
}): Promise<any>;
|
|
8597
|
+
getSelfStakeBucketByDelegate(args: {
|
|
8598
|
+
ownerAddress: `0x${string}` | `io${string}`;
|
|
8599
|
+
}): Promise<CompositeBucket | null>;
|
|
8580
8600
|
}
|
|
8581
8601
|
declare class utils {
|
|
8582
8602
|
erc20(args: {
|
|
@@ -8911,10 +8931,18 @@ declare class Analyzer extends BaseDBModule {
|
|
|
8911
8931
|
start_date?: string;
|
|
8912
8932
|
end_date?: string;
|
|
8913
8933
|
}): Promise<any>;
|
|
8934
|
+
sumGasFeeIotx({ start_date, end_date }?: {
|
|
8935
|
+
start_date?: string;
|
|
8936
|
+
end_date?: string;
|
|
8937
|
+
}): Promise<any>;
|
|
8914
8938
|
avgGasFee({ start_date, end_date }?: {
|
|
8915
8939
|
start_date?: string;
|
|
8916
8940
|
end_date?: string;
|
|
8917
8941
|
}): Promise<any>;
|
|
8942
|
+
avgGasFeeIotx({ start_date, end_date }?: {
|
|
8943
|
+
start_date?: string;
|
|
8944
|
+
end_date?: string;
|
|
8945
|
+
}): Promise<any>;
|
|
8918
8946
|
nodesCount(): Promise<any>;
|
|
8919
8947
|
dappsCount(): Promise<any>;
|
|
8920
8948
|
totalCrossChainTxCount(): Promise<number>;
|
|
@@ -9057,6 +9085,9 @@ declare class Resource {
|
|
|
9057
9085
|
id: ComponentType;
|
|
9058
9086
|
}): Promise<ComponentData>;
|
|
9059
9087
|
}
|
|
9088
|
+
declare class IoPay extends BaseDBModule {
|
|
9089
|
+
get_point_task(): Promise<import("postgres").RowList<import("postgres").Row[]>>;
|
|
9090
|
+
}
|
|
9060
9091
|
declare const modules$1: {
|
|
9061
9092
|
account: Account;
|
|
9062
9093
|
analyzer: Analyzer;
|
|
@@ -9067,6 +9098,7 @@ declare const modules$1: {
|
|
|
9067
9098
|
analysis: Analysis;
|
|
9068
9099
|
contract: Contract;
|
|
9069
9100
|
resource: Resource;
|
|
9101
|
+
iopay: IoPay;
|
|
9070
9102
|
};
|
|
9071
9103
|
export type DBModuleType = typeof modules$1;
|
|
9072
9104
|
export interface ConfigOptions {
|
|
@@ -10116,15 +10148,14 @@ declare class Point {
|
|
|
10116
10148
|
sub: string | undefined;
|
|
10117
10149
|
};
|
|
10118
10150
|
}>;
|
|
10119
|
-
upload_event(
|
|
10120
|
-
|
|
10121
|
-
|
|
10122
|
-
point: number;
|
|
10123
|
-
} & Record<string, any>, authData?: {
|
|
10151
|
+
upload_event({ action_type, }: {
|
|
10152
|
+
action_type: string;
|
|
10153
|
+
}, authData?: {
|
|
10124
10154
|
sub: string;
|
|
10125
10155
|
}): Promise<any>;
|
|
10126
|
-
create_ref(
|
|
10156
|
+
create_ref({ refer_id, device_id, user_id, }: {
|
|
10127
10157
|
refer_id: string;
|
|
10158
|
+
device_id: string;
|
|
10128
10159
|
user_id: string;
|
|
10129
10160
|
}, authData?: {
|
|
10130
10161
|
sub: string;
|