@iotexproject/kit 0.0.19 → 0.0.21
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 +21 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -4396,7 +4396,8 @@ declare class VoterEntity {
|
|
|
4396
4396
|
isZero: boolean;
|
|
4397
4397
|
}>;
|
|
4398
4398
|
weeklyVoteEmissions(): Promise<string | 0>;
|
|
4399
|
-
apr(
|
|
4399
|
+
apr(): Promise<string>;
|
|
4400
|
+
vault: () => Promise<any>;
|
|
4400
4401
|
governor: () => Promise<any>;
|
|
4401
4402
|
epochNext: (_timestamp: string) => Promise<any>;
|
|
4402
4403
|
forwarder: () => Promise<any>;
|
|
@@ -4464,6 +4465,7 @@ declare class MarshallDao {
|
|
|
4464
4465
|
`0x${string}`
|
|
4465
4466
|
];
|
|
4466
4467
|
weeklyVoteEmissions: true;
|
|
4468
|
+
apr: true;
|
|
4467
4469
|
}> | undefined>;
|
|
4468
4470
|
voteToGauge(args: {
|
|
4469
4471
|
stakingTokens: `0x${string}`[];
|
|
@@ -7717,6 +7719,23 @@ declare class utils {
|
|
|
7717
7719
|
];
|
|
7718
7720
|
}>>;
|
|
7719
7721
|
}
|
|
7722
|
+
export interface Dapp {
|
|
7723
|
+
id: string;
|
|
7724
|
+
chains: string;
|
|
7725
|
+
content: string;
|
|
7726
|
+
content_cn: string;
|
|
7727
|
+
img_url: string;
|
|
7728
|
+
popularity: string;
|
|
7729
|
+
source_priority: number;
|
|
7730
|
+
tags: string;
|
|
7731
|
+
title: string;
|
|
7732
|
+
url: string;
|
|
7733
|
+
weight: number;
|
|
7734
|
+
}
|
|
7735
|
+
declare class Explore {
|
|
7736
|
+
dapps(): Promise<Dapp[] | any>;
|
|
7737
|
+
dappCategorys(): Promise<any>;
|
|
7738
|
+
}
|
|
7720
7739
|
declare const modules: {
|
|
7721
7740
|
mimo: Mimo;
|
|
7722
7741
|
staking: Staking;
|
|
@@ -7724,6 +7743,7 @@ declare const modules: {
|
|
|
7724
7743
|
ioid: IoID;
|
|
7725
7744
|
msp: MSP;
|
|
7726
7745
|
utils: utils;
|
|
7746
|
+
explore: Explore;
|
|
7727
7747
|
};
|
|
7728
7748
|
export type ModuleType = typeof modules;
|
|
7729
7749
|
export declare const createClient: ({ url }?: {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@iotexproject/kit",
|
|
3
3
|
"module": "index.ts",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "v0.0.
|
|
5
|
+
"version": "v0.0.21",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"scripts": {
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
"files": [
|
|
15
15
|
"dist"
|
|
16
16
|
],
|
|
17
|
-
"peerDependencies": {},
|
|
18
17
|
"dependencies": {
|
|
19
18
|
"@iotexproject/iotex-address-ts": "^1.0.4",
|
|
20
19
|
"axios": "^1.7.2",
|
|
@@ -23,6 +22,7 @@
|
|
|
23
22
|
"bignumber.js": "^9.1.2",
|
|
24
23
|
"dataloader": "^2.2.2",
|
|
25
24
|
"dayjs": "^1.11.12",
|
|
25
|
+
"graphql-request": "^7.1.0",
|
|
26
26
|
"lru-cache": "^11.0.0",
|
|
27
27
|
"reflect-metadata": "^0.2.2",
|
|
28
28
|
"viem": "^2.17.5"
|