@iotexproject/kit 0.1.52 → 0.1.54

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 +21 -77
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -6603,84 +6603,11 @@ declare class MSP {
6603
6603
  rewards: number;
6604
6604
  rewardsUSD: number;
6605
6605
  };
6606
- totalLstRewards: {
6606
+ totalErc20Rewards: {
6607
6607
  rewards: number;
6608
6608
  rewardsUSD: number;
6609
6609
  };
6610
6610
  } | null>;
6611
- myBucketList(args: {
6612
- account?: `0x${string}`;
6613
- }, ctx?: ConfigContext): Promise<{
6614
- bucketId: number;
6615
- owner: `0x${string}`;
6616
- address: `0x${string}`;
6617
- chainId: string;
6618
- MockBucket: import("@dappworks/kit/aiem").QueryReturnType<MockBucketEntity, {
6619
- name: true;
6620
- }>;
6621
- pendingRewards: {
6622
- value: string;
6623
- format: string;
6624
- originFormat: string;
6625
- decimals: string;
6626
- };
6627
- bucketAmount: {
6628
- value: string;
6629
- format: string;
6630
- originFormat: string;
6631
- decimals: string;
6632
- };
6633
- stakeStatus: any;
6634
- totalAmount: () => Promise<any>;
6635
- unstakeTime: any;
6636
- bucketStaker: (_: string) => Promise<any>;
6637
- withdrawTime: any;
6638
- pendingReward: (token: `0x${string}`, staker: `0x${string}`) => Promise<any>;
6639
- stakerBuckets: (staker: `0x${string}`) => Promise<any>;
6640
- remainingReward: (_: `0x${string}`) => Promise<any>;
6641
- strategyManager: () => Promise<any>;
6642
- underlyingToken: () => Promise<any>;
6643
- IOTX_REWARD_TOKEN: () => Promise<any>;
6644
- accTokenPerAmount: (_: `0x${string}`) => Promise<any>;
6645
- calculateBucketRestakeAmount: (_duration: string, _amount: string) => Promise<any>;
6646
- poke: (bucketId: string) => Promise<any>;
6647
- stake: (bucketId: string) => Promise<any>;
6648
- deposit: (bucketId: string) => Promise<any>;
6649
- unstake: (bucketIds: any[]) => Promise<any>;
6650
- withdraw: (bucketIds: any[], recipient: `0x${string}`) => Promise<any>;
6651
- claimReward: () => Promise<any>;
6652
- renounceOwnership: () => Promise<any>;
6653
- transferOwnership: (newOwner: `0x${string}`) => Promise<any>;
6654
- }[]>;
6655
- myRestakeERC20List(args: {
6656
- account?: `0x${string}`;
6657
- }, ctx?: ConfigContext): Promise<{
6658
- ERC20StrategyAddress: `0x${string}`;
6659
- address: `0x${string}`;
6660
- chainId: string;
6661
- isEther: boolean;
6662
- type: () => Promise<string>;
6663
- totalSupply: number;
6664
- name: string;
6665
- symbol: string;
6666
- decimals: () => Promise<number | undefined>;
6667
- balanceOf: {
6668
- value: string;
6669
- format: string;
6670
- originFormat: string;
6671
- decimals: string;
6672
- };
6673
- balanceUSD: (account?: `0x${string}`) => Promise<string | {
6674
- value: string;
6675
- format: string;
6676
- originFormat: string;
6677
- decimals: string;
6678
- }>;
6679
- allowance: (owner: string, spender: string) => Promise<any>;
6680
- approve: (spender: `0x${string}`, amount: string, owner: `0x${string}`) => Promise<`0x${string}` | null>;
6681
- priceUSD: () => Promise<any>;
6682
- tokenUrl: () => Promise<any>;
6683
- }[]>;
6684
6611
  myStakedBucketList(args: {
6685
6612
  account?: `0x${string}`;
6686
6613
  }, ctx?: ConfigContext): Promise<{
@@ -6725,13 +6652,19 @@ declare class MSP {
6725
6652
  renounceOwnership: () => Promise<any>;
6726
6653
  transferOwnership: (newOwner: `0x${string}`) => Promise<any>;
6727
6654
  }[]>;
6728
- RestakeERC20List(args: {
6655
+ restakeERC20List(args: {
6729
6656
  account?: `0x${string}`;
6730
6657
  }, ctx?: ConfigContext): Promise<{
6731
6658
  ERC20StrategyAddress: `0x${string}`;
6732
6659
  address: `0x${string}`;
6733
6660
  chainId: string;
6734
- Token: ERC20Entity;
6661
+ Token: import("@dappworks/kit/aiem").QueryReturnType<ERC20Entity, {
6662
+ name: true;
6663
+ symbol: true;
6664
+ balanceOf: false | [
6665
+ `0x${string}`
6666
+ ];
6667
+ }>;
6735
6668
  pendingRewards: {
6736
6669
  value: string;
6737
6670
  format: string;
@@ -6780,6 +6713,7 @@ declare class MSP {
6780
6713
  }[]>;
6781
6714
  restakeBucket(args: {
6782
6715
  bucketId: string;
6716
+ contractAddress: `0x${string}`;
6783
6717
  }, ctx?: ConfigContext): Promise<{
6784
6718
  data: any;
6785
6719
  address: `0x${string}`;
@@ -7968,6 +7902,15 @@ declare class SmartChefEntity {
7968
7902
  decimals: string;
7969
7903
  };
7970
7904
  } | null | undefined>;
7905
+ dailyRewards(): Promise<{
7906
+ dailyRewardUSD: string;
7907
+ dailyReward: {
7908
+ value: string;
7909
+ format: string;
7910
+ originFormat: string;
7911
+ decimals: string;
7912
+ };
7913
+ } | null | undefined>;
7971
7914
  totalStakedBalance(): Promise<{
7972
7915
  totalStakedBalance: {
7973
7916
  value: string;
@@ -8069,6 +8012,7 @@ declare class LiquidityMining {
8069
8012
  `0x${string}`
8070
8013
  ];
8071
8014
  totalStakedBalance: true;
8015
+ dailyRewards: true;
8072
8016
  }>[]>;
8073
8017
  deposit({ address, amount, account }: {
8074
8018
  address: `0x${string}`;
@@ -8088,7 +8032,7 @@ declare class LiquidityMining {
8088
8032
  harvest({ address }: {
8089
8033
  address: `0x${string}`;
8090
8034
  }, ctx?: ConfigContext): Promise<{
8091
- data: any;
8035
+ data: `0x${string}`;
8092
8036
  address: `0x${string}`;
8093
8037
  chainId: string;
8094
8038
  }>;
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.52",
5
+ "version": "v0.1.54",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "scripts": {