@iotexproject/kit 0.1.64 → 0.1.65

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 +28 -35
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -2670,10 +2670,10 @@ declare class LPTokenEntity {
2670
2670
  }>;
2671
2671
  approve(spender: `0x${string}`, amount: string, owner: `0x${string}`): Promise<`0x${string}` | null>;
2672
2672
  kLast: () => Promise<any>;
2673
+ token0(): Promise<`0x${string}` | undefined>;
2674
+ token1(): Promise<`0x${string}` | undefined>;
2673
2675
  name(): Promise<string | undefined>;
2674
2676
  symbol(): Promise<string | undefined>;
2675
- token0(): Promise<"" | `0x${string}` | undefined>;
2676
- token1(): Promise<"" | `0x${string}` | undefined>;
2677
2677
  priceUSD(): Promise<string | undefined>;
2678
2678
  Token0: ERC20Entity;
2679
2679
  Token1: ERC20Entity;
@@ -6703,6 +6703,7 @@ declare class MSP {
6703
6703
  address: `0x${string}`;
6704
6704
  chainId: string;
6705
6705
  Token: import("@dappworks/kit/aiem").QueryReturnType<ERC20Entity, {
6706
+ address: true;
6706
6707
  name: true;
6707
6708
  symbol: true;
6708
6709
  balanceOf: false | [
@@ -7973,7 +7974,7 @@ declare class MimoV2MiningPool {
7973
7974
  format: string;
7974
7975
  originFormat: string;
7975
7976
  decimals: string;
7976
- } | undefined;
7977
+ };
7977
7978
  totalStakedBalanceUSD: string;
7978
7979
  } | undefined>;
7979
7980
  myStakedTokenBalance(account: `0x${string}`): Promise<{
@@ -7982,26 +7983,18 @@ declare class MimoV2MiningPool {
7982
7983
  originFormat: string;
7983
7984
  decimals: string;
7984
7985
  } | undefined>;
7985
- RewardToken(): Promise<import("@dappworks/kit/aiem").QueryReturnType<ERC20Entity, {
7986
+ getStakeTokenInner(): Promise<import("@dappworks/kit/aiem").QueryReturnType<LPTokenEntity, {
7986
7987
  address: true;
7987
7988
  symbol: true;
7988
7989
  priceUSD: true;
7989
7990
  decimals: true;
7990
7991
  tokenUrl: true;
7991
- }>>;
7992
- getStakeTokenInner(): Promise<import("@dappworks/kit/aiem").QueryReturnType<LPTokenEntity, {
7993
- address: true;
7994
- decimals: true;
7995
- symbol: true;
7996
7992
  balanceOf: [
7997
7993
  `0x${string}`
7998
7994
  ];
7999
- priceUSD: true;
8000
- tokenUrl: true;
8001
- type: true;
8002
7995
  token0: true;
8003
7996
  token1: true;
8004
- }> | undefined>;
7997
+ }>>;
8005
7998
  getRewardTokenInnter(): Promise<import("@dappworks/kit/aiem").QueryReturnType<ERC20Entity, {
8006
7999
  address: true;
8007
8000
  symbol: true;
@@ -8009,19 +8002,10 @@ declare class MimoV2MiningPool {
8009
8002
  decimals: true;
8010
8003
  tokenUrl: true;
8011
8004
  }>>;
8012
- StakedToken(): Promise<import("@dappworks/kit/aiem").QueryReturnType<LPTokenEntity, {
8013
- address: true;
8014
- decimals: true;
8015
- symbol: true;
8016
- balanceOf: [
8017
- `0x${string}`
8018
- ];
8019
- priceUSD: true;
8020
- tokenUrl: true;
8021
- type: true;
8022
- token0: true;
8023
- token1: true;
8024
- }> | undefined>;
8005
+ stakedToken: () => Promise<any>;
8006
+ rewardToken: () => Promise<any>;
8007
+ StakedToken: LPTokenEntity;
8008
+ RewardToken: ERC20Entity;
8025
8009
  deposit: (_amount: string) => Promise<any>;
8026
8010
  withdraw: (_amount: string) => Promise<any>;
8027
8011
  }
@@ -8029,8 +8013,22 @@ declare class LiquidityMining {
8029
8013
  poolsList(args: {
8030
8014
  account?: `0x${string}`;
8031
8015
  }, ctx?: ConfigContext): Promise<import("@dappworks/kit/aiem").QueryReturnType<MimoV2MiningPool, {
8032
- RewardToken: true;
8033
- StakedToken: true;
8016
+ RewardToken: {
8017
+ address: true;
8018
+ symbol: true;
8019
+ priceUSD: true;
8020
+ decimals: true;
8021
+ tokenUrl: true;
8022
+ };
8023
+ StakedToken: {
8024
+ address: true;
8025
+ symbol: true;
8026
+ priceUSD: true;
8027
+ decimals: true;
8028
+ tokenUrl: true;
8029
+ token0: true;
8030
+ token1: true;
8031
+ };
8034
8032
  endTime: true;
8035
8033
  startTime: true;
8036
8034
  isNew: true;
@@ -8054,17 +8052,12 @@ declare class LiquidityMining {
8054
8052
  address: `0x${string}`;
8055
8053
  amount: string;
8056
8054
  account: `0x${string}`;
8057
- }, ctx?: ConfigContext): Promise<({
8058
- data: `0x${string}`;
8059
- address: `0x${string}` | undefined;
8060
- chainId: string;
8061
- type: string;
8062
- } | {
8055
+ }, ctx?: ConfigContext): Promise<{
8063
8056
  data: any;
8064
8057
  address: `0x${string}`;
8065
8058
  chainId: string;
8066
8059
  type: string;
8067
- })[]>;
8060
+ }[]>;
8068
8061
  harvest({ address }: {
8069
8062
  address: `0x${string}`;
8070
8063
  }, ctx?: ConfigContext): Promise<{
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.64",
5
+ "version": "v0.1.65",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "scripts": {