@iotexproject/kit 0.0.20 → 0.0.22
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 +25 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -4486,12 +4486,14 @@ declare class MarshallDao {
|
|
|
4486
4486
|
}): Promise<{
|
|
4487
4487
|
data: any;
|
|
4488
4488
|
approve: `0x${string}` | null | undefined;
|
|
4489
|
+
approveAddress: `0x${string}`;
|
|
4489
4490
|
address: `0x${string}`;
|
|
4490
4491
|
error?: undefined;
|
|
4491
4492
|
} | {
|
|
4492
4493
|
error: unknown;
|
|
4493
4494
|
data?: undefined;
|
|
4494
4495
|
approve?: undefined;
|
|
4496
|
+
approveAddress?: undefined;
|
|
4495
4497
|
address?: undefined;
|
|
4496
4498
|
}>;
|
|
4497
4499
|
withdrawFromGauge(args: {
|
|
@@ -7698,7 +7700,7 @@ declare class utils {
|
|
|
7698
7700
|
}): Promise<import("@dappworks/kit/aiem").QueryReturnType<ERC20Entity, {
|
|
7699
7701
|
name: true;
|
|
7700
7702
|
symbol: true;
|
|
7701
|
-
balanceOf: [
|
|
7703
|
+
balanceOf: false | [
|
|
7702
7704
|
`0x${string}`
|
|
7703
7705
|
];
|
|
7704
7706
|
decimals: true;
|
|
@@ -7719,6 +7721,26 @@ declare class utils {
|
|
|
7719
7721
|
];
|
|
7720
7722
|
}>>;
|
|
7721
7723
|
}
|
|
7724
|
+
export interface Dapp {
|
|
7725
|
+
id: string;
|
|
7726
|
+
chains: string;
|
|
7727
|
+
content: string;
|
|
7728
|
+
content_cn: string;
|
|
7729
|
+
img_url: string;
|
|
7730
|
+
popularity: string;
|
|
7731
|
+
source_priority: number;
|
|
7732
|
+
tags: string;
|
|
7733
|
+
title: string;
|
|
7734
|
+
url: string;
|
|
7735
|
+
weight: number;
|
|
7736
|
+
}
|
|
7737
|
+
declare class Explore {
|
|
7738
|
+
dapps(): Promise<Dapp[] | any>;
|
|
7739
|
+
dappCategorys(): Promise<any>;
|
|
7740
|
+
}
|
|
7741
|
+
declare class UseHub {
|
|
7742
|
+
userDashboard(): Promise<void>;
|
|
7743
|
+
}
|
|
7722
7744
|
declare const modules: {
|
|
7723
7745
|
mimo: Mimo;
|
|
7724
7746
|
staking: Staking;
|
|
@@ -7726,6 +7748,8 @@ declare const modules: {
|
|
|
7726
7748
|
ioid: IoID;
|
|
7727
7749
|
msp: MSP;
|
|
7728
7750
|
utils: utils;
|
|
7751
|
+
explore: Explore;
|
|
7752
|
+
hub: UseHub;
|
|
7729
7753
|
};
|
|
7730
7754
|
export type ModuleType = typeof modules;
|
|
7731
7755
|
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.22",
|
|
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"
|