@iotexproject/kit 0.1.49 → 0.1.51

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +50 -7
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -7948,7 +7948,7 @@ declare class SmartChefEntity {
7948
7948
  decimals: string;
7949
7949
  };
7950
7950
  myPoolBalanceUSD: string;
7951
- }>;
7951
+ } | null>;
7952
7952
  apr(): Promise<string | undefined>;
7953
7953
  myPendingReward(account: `0x${string}`): Promise<{
7954
7954
  pendingReward: {
@@ -7963,21 +7963,24 @@ declare class SmartChefEntity {
7963
7963
  originFormat: string;
7964
7964
  decimals: string;
7965
7965
  };
7966
- }>;
7967
- totalReward(): Promise<{
7968
- totalRewardUSD: {
7966
+ } | {
7967
+ pendingReward: {
7969
7968
  value: string;
7970
7969
  format: string;
7971
7970
  originFormat: string;
7972
7971
  decimals: string;
7973
7972
  };
7973
+ pendingRewardUSD: string;
7974
+ }>;
7975
+ totalReward(): Promise<{
7976
+ totalRewardUSD: string;
7974
7977
  totalReward: {
7975
7978
  value: string;
7976
7979
  format: string;
7977
7980
  originFormat: string;
7978
7981
  decimals: string;
7979
7982
  };
7980
- } | undefined>;
7983
+ } | null | undefined>;
7981
7984
  totalStakedBalance(): Promise<{
7982
7985
  totalStakedBalance: {
7983
7986
  value: string;
@@ -8000,6 +8003,36 @@ declare class SmartChefEntity {
8000
8003
  decimals: true;
8001
8004
  tokenUrl: true;
8002
8005
  }>>;
8006
+ getStakeTokenInner(): Promise<import("@dappworks/kit/aiem").QueryReturnType<LPTokenEntity, {
8007
+ address: true;
8008
+ decimals: true;
8009
+ symbol: true;
8010
+ balanceOf: [
8011
+ `0x${string}`
8012
+ ];
8013
+ priceUSD: true;
8014
+ tokenUrl: true;
8015
+ type: true;
8016
+ token0: true;
8017
+ token1: true;
8018
+ }> | import("@dappworks/kit/aiem").QueryReturnType<ERC20Entity, {
8019
+ decimals: true;
8020
+ address: true;
8021
+ symbol: true;
8022
+ balanceOf: [
8023
+ `0x${string}`
8024
+ ];
8025
+ priceUSD: true;
8026
+ tokenUrl: true;
8027
+ type: true;
8028
+ }> | undefined>;
8029
+ getRewardTokenInnter(): Promise<import("@dappworks/kit/aiem").QueryReturnType<ERC20Entity, {
8030
+ address: true;
8031
+ symbol: true;
8032
+ priceUSD: true;
8033
+ decimals: true;
8034
+ tokenUrl: true;
8035
+ }>>;
8003
8036
  StakedToken(): Promise<import("@dappworks/kit/aiem").QueryReturnType<LPTokenEntity, {
8004
8037
  address: true;
8005
8038
  decimals: true;
@@ -8054,12 +8087,17 @@ declare class LiquidityMining {
8054
8087
  address: `0x${string}`;
8055
8088
  amount: string;
8056
8089
  account: `0x${string}`;
8057
- }, ctx?: ConfigContext): Promise<{
8090
+ }, ctx?: ConfigContext): Promise<({
8091
+ data: `0x${string}`;
8092
+ address: `0x${string}` | undefined;
8093
+ chainId: string;
8094
+ type: string;
8095
+ } | {
8058
8096
  data: any;
8059
8097
  address: `0x${string}`;
8060
8098
  chainId: string;
8061
8099
  type: string;
8062
- }[]>;
8100
+ })[]>;
8063
8101
  harvest({ address }: {
8064
8102
  address: `0x${string}`;
8065
8103
  }, ctx?: ConfigContext): Promise<{
@@ -8678,6 +8716,11 @@ export type DBModuleType = typeof modules$1;
8678
8716
  export interface ConfigOptions {
8679
8717
  ttl?: number;
8680
8718
  checkAuth?: boolean;
8719
+ route?: {
8720
+ method: "get" | "post" | "put" | "delete";
8721
+ path: string;
8722
+ absolutePath?: boolean;
8723
+ };
8681
8724
  }
8682
8725
  export type KitModuleFunction<I extends z.AnyZodObject = z.AnyZodObject, O extends z.ZodType | undefined = undefined, R = any> = {
8683
8726
  input?: I;
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.49",
5
+ "version": "v0.1.51",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "scripts": {