@iotexproject/kit 0.1.27 → 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 +47 -7
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -6734,6 +6734,15 @@ declare class Mimo {
|
|
|
6734
6734
|
chainId: string;
|
|
6735
6735
|
contractAddress: `0x${string}`;
|
|
6736
6736
|
}): Promise<unknown>;
|
|
6737
|
+
depositWETH({ chainId, contractAddress }: {
|
|
6738
|
+
chainId: string;
|
|
6739
|
+
contractAddress: `0x${string}`;
|
|
6740
|
+
}): Promise<unknown>;
|
|
6741
|
+
withdrawWETH({ amount, chainId, contractAddress }: {
|
|
6742
|
+
amount: string;
|
|
6743
|
+
chainId: string;
|
|
6744
|
+
contractAddress: `0x${string}`;
|
|
6745
|
+
}): Promise<unknown>;
|
|
6737
6746
|
}
|
|
6738
6747
|
declare class MockBucketEntity {
|
|
6739
6748
|
address: `0x${string}`;
|
|
@@ -8423,6 +8432,23 @@ export interface Candidate {
|
|
|
8423
8432
|
export interface CandidateV3 extends Candidate {
|
|
8424
8433
|
id: string;
|
|
8425
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
|
+
}
|
|
8426
8452
|
export interface Bucket {
|
|
8427
8453
|
index: bigint;
|
|
8428
8454
|
candidateAddress: string;
|
|
@@ -8561,13 +8587,16 @@ declare class Staking {
|
|
|
8561
8587
|
}): Promise<any>;
|
|
8562
8588
|
getEndorseBucketsByDelegate(args: {
|
|
8563
8589
|
ownerAddress: `0x${string}` | `io${string}`;
|
|
8564
|
-
}): Promise<
|
|
8590
|
+
}): Promise<CompositeBucket[]>;
|
|
8565
8591
|
candidateTransferOwnership({ newOwner }: {
|
|
8566
8592
|
newOwner: `0x${string}`;
|
|
8567
8593
|
}): Promise<any>;
|
|
8568
8594
|
candidateActivate({ bucketIndex }: {
|
|
8569
8595
|
bucketIndex: string;
|
|
8570
8596
|
}): Promise<any>;
|
|
8597
|
+
getSelfStakeBucketByDelegate(args: {
|
|
8598
|
+
ownerAddress: `0x${string}` | `io${string}`;
|
|
8599
|
+
}): Promise<CompositeBucket | null>;
|
|
8571
8600
|
}
|
|
8572
8601
|
declare class utils {
|
|
8573
8602
|
erc20(args: {
|
|
@@ -8902,10 +8931,18 @@ declare class Analyzer extends BaseDBModule {
|
|
|
8902
8931
|
start_date?: string;
|
|
8903
8932
|
end_date?: string;
|
|
8904
8933
|
}): Promise<any>;
|
|
8934
|
+
sumGasFeeIotx({ start_date, end_date }?: {
|
|
8935
|
+
start_date?: string;
|
|
8936
|
+
end_date?: string;
|
|
8937
|
+
}): Promise<any>;
|
|
8905
8938
|
avgGasFee({ start_date, end_date }?: {
|
|
8906
8939
|
start_date?: string;
|
|
8907
8940
|
end_date?: string;
|
|
8908
8941
|
}): Promise<any>;
|
|
8942
|
+
avgGasFeeIotx({ start_date, end_date }?: {
|
|
8943
|
+
start_date?: string;
|
|
8944
|
+
end_date?: string;
|
|
8945
|
+
}): Promise<any>;
|
|
8909
8946
|
nodesCount(): Promise<any>;
|
|
8910
8947
|
dappsCount(): Promise<any>;
|
|
8911
8948
|
totalCrossChainTxCount(): Promise<number>;
|
|
@@ -9048,6 +9085,9 @@ declare class Resource {
|
|
|
9048
9085
|
id: ComponentType;
|
|
9049
9086
|
}): Promise<ComponentData>;
|
|
9050
9087
|
}
|
|
9088
|
+
declare class IoPay extends BaseDBModule {
|
|
9089
|
+
get_point_task(): Promise<import("postgres").RowList<import("postgres").Row[]>>;
|
|
9090
|
+
}
|
|
9051
9091
|
declare const modules$1: {
|
|
9052
9092
|
account: Account;
|
|
9053
9093
|
analyzer: Analyzer;
|
|
@@ -9058,6 +9098,7 @@ declare const modules$1: {
|
|
|
9058
9098
|
analysis: Analysis;
|
|
9059
9099
|
contract: Contract;
|
|
9060
9100
|
resource: Resource;
|
|
9101
|
+
iopay: IoPay;
|
|
9061
9102
|
};
|
|
9062
9103
|
export type DBModuleType = typeof modules$1;
|
|
9063
9104
|
export interface ConfigOptions {
|
|
@@ -10107,15 +10148,14 @@ declare class Point {
|
|
|
10107
10148
|
sub: string | undefined;
|
|
10108
10149
|
};
|
|
10109
10150
|
}>;
|
|
10110
|
-
upload_event(
|
|
10111
|
-
|
|
10112
|
-
|
|
10113
|
-
point: number;
|
|
10114
|
-
} & Record<string, any>, authData?: {
|
|
10151
|
+
upload_event({ action_type, }: {
|
|
10152
|
+
action_type: string;
|
|
10153
|
+
}, authData?: {
|
|
10115
10154
|
sub: string;
|
|
10116
10155
|
}): Promise<any>;
|
|
10117
|
-
create_ref(
|
|
10156
|
+
create_ref({ refer_id, device_id, user_id, }: {
|
|
10118
10157
|
refer_id: string;
|
|
10158
|
+
device_id: string;
|
|
10119
10159
|
user_id: string;
|
|
10120
10160
|
}, authData?: {
|
|
10121
10161
|
sub: string;
|