@iotexproject/kit 0.1.51 → 0.1.53
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 +14 -17
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -7221,8 +7221,8 @@ declare class PointsPlatform {
|
|
|
7221
7221
|
user: string;
|
|
7222
7222
|
}, ctx?: ConfigContext): Promise<{
|
|
7223
7223
|
selfPoints: any;
|
|
7224
|
-
selfRank:
|
|
7225
|
-
dailyPoints:
|
|
7224
|
+
selfRank: {};
|
|
7225
|
+
dailyPoints: {};
|
|
7226
7226
|
error?: undefined;
|
|
7227
7227
|
} | {
|
|
7228
7228
|
error: unknown;
|
|
@@ -7951,19 +7951,6 @@ declare class SmartChefEntity {
|
|
|
7951
7951
|
} | null>;
|
|
7952
7952
|
apr(): Promise<string | undefined>;
|
|
7953
7953
|
myPendingReward(account: `0x${string}`): Promise<{
|
|
7954
|
-
pendingReward: {
|
|
7955
|
-
value: string;
|
|
7956
|
-
format: string;
|
|
7957
|
-
originFormat: string;
|
|
7958
|
-
decimals: string;
|
|
7959
|
-
};
|
|
7960
|
-
pendingRewardUSD: {
|
|
7961
|
-
value: string;
|
|
7962
|
-
format: string;
|
|
7963
|
-
originFormat: string;
|
|
7964
|
-
decimals: string;
|
|
7965
|
-
};
|
|
7966
|
-
} | {
|
|
7967
7954
|
pendingReward: {
|
|
7968
7955
|
value: string;
|
|
7969
7956
|
format: string;
|
|
@@ -7981,6 +7968,15 @@ declare class SmartChefEntity {
|
|
|
7981
7968
|
decimals: string;
|
|
7982
7969
|
};
|
|
7983
7970
|
} | null | undefined>;
|
|
7971
|
+
dailyRewards(): Promise<{
|
|
7972
|
+
dailyRewardUSD: string;
|
|
7973
|
+
dailyReward: {
|
|
7974
|
+
value: string;
|
|
7975
|
+
format: string;
|
|
7976
|
+
originFormat: string;
|
|
7977
|
+
decimals: string;
|
|
7978
|
+
};
|
|
7979
|
+
} | null | undefined>;
|
|
7984
7980
|
totalStakedBalance(): Promise<{
|
|
7985
7981
|
totalStakedBalance: {
|
|
7986
7982
|
value: string;
|
|
@@ -8082,6 +8078,7 @@ declare class LiquidityMining {
|
|
|
8082
8078
|
`0x${string}`
|
|
8083
8079
|
];
|
|
8084
8080
|
totalStakedBalance: true;
|
|
8081
|
+
dailyRewards: true;
|
|
8085
8082
|
}>[]>;
|
|
8086
8083
|
deposit({ address, amount, account }: {
|
|
8087
8084
|
address: `0x${string}`;
|
|
@@ -8101,7 +8098,7 @@ declare class LiquidityMining {
|
|
|
8101
8098
|
harvest({ address }: {
|
|
8102
8099
|
address: `0x${string}`;
|
|
8103
8100
|
}, ctx?: ConfigContext): Promise<{
|
|
8104
|
-
data:
|
|
8101
|
+
data: `0x${string}`;
|
|
8105
8102
|
address: `0x${string}`;
|
|
8106
8103
|
chainId: string;
|
|
8107
8104
|
}>;
|
|
@@ -8717,7 +8714,7 @@ export interface ConfigOptions {
|
|
|
8717
8714
|
ttl?: number;
|
|
8718
8715
|
checkAuth?: boolean;
|
|
8719
8716
|
route?: {
|
|
8720
|
-
method: "get" | "post" | "put" | "delete";
|
|
8717
|
+
method: "get" | "post" | "put" | "delete" | "all";
|
|
8721
8718
|
path: string;
|
|
8722
8719
|
absolutePath?: boolean;
|
|
8723
8720
|
};
|
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.1.
|
|
5
|
+
"version": "v0.1.53",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"scripts": {
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
"test": "bun --hot run tests/test-marshalldao.ts",
|
|
14
14
|
"build": "bun run build.mjs",
|
|
15
15
|
"prepublishOnly": "bun run build",
|
|
16
|
-
"postinstall": "bun generate-prisma",
|
|
17
16
|
"gen:grpc": "protoc --plugin=protoc-gen-ts=./node_modules/.bin/protoc-gen-ts --ts_out=grpc_js:./lib/grpc/generated -I ./lib/grpc/protos ./lib/grpc/protos/*.proto",
|
|
18
|
-
"generate-prisma": "prisma generate --schema=./prisma/schema.prisma"
|
|
17
|
+
"generate-prisma": "prisma generate --schema=./prisma/schema.prisma",
|
|
18
|
+
"dev-db-with-prisma": "bun generate-prisma && bun server-db.ts"
|
|
19
19
|
},
|
|
20
20
|
"files": [
|
|
21
21
|
"dist"
|