@iotexproject/kit 0.1.24 → 0.1.26
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 +70 -6
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -6724,6 +6724,16 @@ declare class Mimo {
|
|
|
6724
6724
|
getAllTokens({ account }: {
|
|
6725
6725
|
account: `0x${string}`;
|
|
6726
6726
|
}): Promise<any>;
|
|
6727
|
+
getBridgeTokensBalance({ addresses }: {
|
|
6728
|
+
addresses: `0x${string}`[];
|
|
6729
|
+
}): Promise<never[] | {
|
|
6730
|
+
[k: string]: any;
|
|
6731
|
+
}>;
|
|
6732
|
+
depositWithXcashier({ receiptAddress, chainId, contractAddress }: {
|
|
6733
|
+
receiptAddress: `0x${string}`;
|
|
6734
|
+
chainId: string;
|
|
6735
|
+
contractAddress: `0x${string}`;
|
|
6736
|
+
}): Promise<unknown>;
|
|
6727
6737
|
}
|
|
6728
6738
|
declare class MockBucketEntity {
|
|
6729
6739
|
address: `0x${string}`;
|
|
@@ -8806,10 +8816,11 @@ declare class Analysis extends BaseDBModule {
|
|
|
8806
8816
|
api_key: string;
|
|
8807
8817
|
};
|
|
8808
8818
|
}>;
|
|
8809
|
-
create_ref({ device_id, refer_id, user_id }: {
|
|
8819
|
+
create_ref({ device_id, refer_id, user_id, point }: {
|
|
8810
8820
|
device_id: string;
|
|
8811
8821
|
refer_id: string;
|
|
8812
8822
|
user_id: string;
|
|
8823
|
+
point?: number;
|
|
8813
8824
|
}, authData?: {
|
|
8814
8825
|
app_id: string;
|
|
8815
8826
|
api_key: string;
|
|
@@ -8817,7 +8828,9 @@ declare class Analysis extends BaseDBModule {
|
|
|
8817
8828
|
ok: boolean;
|
|
8818
8829
|
msg: any;
|
|
8819
8830
|
}>;
|
|
8820
|
-
upload_event({ event }: {
|
|
8831
|
+
upload_event({ user_id, type, event }: {
|
|
8832
|
+
type: string;
|
|
8833
|
+
user_id: string;
|
|
8821
8834
|
event: Record<string, any>;
|
|
8822
8835
|
}, authData?: {
|
|
8823
8836
|
app_id: string;
|
|
@@ -8947,6 +8960,49 @@ declare class Contract extends BaseDBModule {
|
|
|
8947
8960
|
address: string;
|
|
8948
8961
|
}): Promise<import("postgres").Row>;
|
|
8949
8962
|
}
|
|
8963
|
+
export type ItemVote = {
|
|
8964
|
+
isNative: boolean;
|
|
8965
|
+
remainingDuration: string;
|
|
8966
|
+
voterIotexAddress: string;
|
|
8967
|
+
votes: string;
|
|
8968
|
+
weightedVotes: string;
|
|
8969
|
+
};
|
|
8970
|
+
export type DelegateVotes = {
|
|
8971
|
+
data: {
|
|
8972
|
+
bucketInfo: ItemVote[];
|
|
8973
|
+
count: number;
|
|
8974
|
+
epochNumber: number;
|
|
8975
|
+
};
|
|
8976
|
+
};
|
|
8977
|
+
declare class Staking$1 extends BaseDBModule {
|
|
8978
|
+
delegatesByHeight({ height }?: {
|
|
8979
|
+
height?: number;
|
|
8980
|
+
}): Promise<never[] | import("postgres").RowList<import("postgres").Row[]>>;
|
|
8981
|
+
bucketByHash({ hash }: {
|
|
8982
|
+
hash: string;
|
|
8983
|
+
}): Promise<import("postgres").Row | null>;
|
|
8984
|
+
delegate_votes(args: {
|
|
8985
|
+
delegateName: string;
|
|
8986
|
+
page: number;
|
|
8987
|
+
limit?: number;
|
|
8988
|
+
}): Promise<DelegateVotes | {
|
|
8989
|
+
error: any;
|
|
8990
|
+
}>;
|
|
8991
|
+
delegate_recent_blocks(args: {
|
|
8992
|
+
producerAddress: string;
|
|
8993
|
+
page: number;
|
|
8994
|
+
limit: number;
|
|
8995
|
+
}): Promise<{
|
|
8996
|
+
data: {
|
|
8997
|
+
blocks: import("postgres").Row[] & Iterable<import("postgres").Row> & import("postgres").ResultQueryMeta<number, string | number>;
|
|
8998
|
+
total: number;
|
|
8999
|
+
};
|
|
9000
|
+
error?: undefined;
|
|
9001
|
+
} | {
|
|
9002
|
+
error: unknown;
|
|
9003
|
+
data?: undefined;
|
|
9004
|
+
}>;
|
|
9005
|
+
}
|
|
8950
9006
|
export type ComponentType = "banner-latest" | "iotex-2.0";
|
|
8951
9007
|
export interface ComponentData {
|
|
8952
9008
|
id: ComponentType;
|
|
@@ -8961,7 +9017,7 @@ declare class Resource {
|
|
|
8961
9017
|
declare const modules$1: {
|
|
8962
9018
|
account: Account;
|
|
8963
9019
|
analyzer: Analyzer;
|
|
8964
|
-
staking: Staking;
|
|
9020
|
+
staking: Staking$1;
|
|
8965
9021
|
transaction: Transaction;
|
|
8966
9022
|
nft: NFT;
|
|
8967
9023
|
health: Health;
|
|
@@ -10015,12 +10071,20 @@ declare class Point {
|
|
|
10015
10071
|
message: string;
|
|
10016
10072
|
authData: {
|
|
10017
10073
|
sub: string | undefined;
|
|
10018
|
-
data: any;
|
|
10019
10074
|
};
|
|
10020
10075
|
}>;
|
|
10021
|
-
upload_event(args
|
|
10076
|
+
upload_event(args: {
|
|
10077
|
+
user_id: string;
|
|
10078
|
+
event_name: string;
|
|
10079
|
+
point: number;
|
|
10080
|
+
} & Record<string, any>, authData?: {
|
|
10081
|
+
sub: string;
|
|
10082
|
+
}): Promise<any>;
|
|
10083
|
+
create_ref(args: {
|
|
10084
|
+
refer_id: string;
|
|
10085
|
+
user_id: string;
|
|
10086
|
+
}, authData?: {
|
|
10022
10087
|
sub: string;
|
|
10023
|
-
data: Record<string, any>;
|
|
10024
10088
|
}): Promise<any>;
|
|
10025
10089
|
}
|
|
10026
10090
|
declare const modules$4: {
|