@iotexproject/kit 0.0.35 → 0.0.36

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 +32 -5
  2. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -1047,7 +1047,13 @@ declare class IncentivesEntity {
1047
1047
  voter: () => Promise<any>;
1048
1048
  earned: (_account: `0x${string}`, _token: `0x${string}`) => Promise<any>;
1049
1049
  allRewards(account: `0x${string}`): Promise<any[]>;
1050
- rewards: (_: `0x${string}`, __: `0x${string}`) => Promise<any>;
1050
+ rewards(token: `0x${string}`, account: `0x${string}`): Promise<{
1051
+ value: string;
1052
+ format: string;
1053
+ originFormat: string;
1054
+ decimals: string;
1055
+ isZero: boolean;
1056
+ }>;
1051
1057
  isReward: (_: `0x${string}`) => Promise<any>;
1052
1058
  balanceOf: (_: `0x${string}`) => Promise<any>;
1053
1059
  rewardRate: (_: `0x${string}`) => Promise<any>;
@@ -3142,16 +3148,16 @@ declare class GaugeEntity {
3142
3148
  name: true;
3143
3149
  symbol: true;
3144
3150
  tokenUrl: true;
3145
- balanceOf: [
3146
- `0x${string}` | undefined
3151
+ balanceOf: true | [
3152
+ `0x${string}`
3147
3153
  ];
3148
3154
  }> | import("@dappworks/kit/aiem").QueryReturnType<LPTokenEntity, {
3149
3155
  name: true;
3150
3156
  symbol: true;
3151
3157
  tokenUrl: true;
3152
3158
  type: true;
3153
- balanceOf: [
3154
- `0x${string}` | undefined
3159
+ balanceOf: true | [
3160
+ `0x${string}`
3155
3161
  ];
3156
3162
  }> | null | undefined>;
3157
3163
  apr(): Promise<string | 0>;
@@ -4456,6 +4462,15 @@ declare class MarshallDao {
4456
4462
  rewardAllTokens: true;
4457
4463
  };
4458
4464
  }>[] | undefined>;
4465
+ totalGaugeRewards(args: {
4466
+ account?: `0x${string}`;
4467
+ }): Promise<{
4468
+ rewards: number | undefined;
4469
+ rewardsUSD: number | undefined;
4470
+ } | {
4471
+ rewards?: undefined;
4472
+ rewardsUSD?: undefined;
4473
+ } | null | undefined>;
4459
4474
  voterInfo(args: {
4460
4475
  account?: `0x${string}`;
4461
4476
  }): Promise<import("@dappworks/kit/aiem").QueryReturnType<VoterEntity, {
@@ -6736,6 +6751,18 @@ declare class MSP {
6736
6751
  data: any;
6737
6752
  address: string;
6738
6753
  }>;
6754
+ totalMSPRewards(args: {
6755
+ account?: `0x${string}`;
6756
+ }): Promise<{
6757
+ totalBucketRewards: {
6758
+ rewards: number | undefined;
6759
+ rewardsUSD: number;
6760
+ };
6761
+ totalLstRewards: {
6762
+ rewards: number | undefined;
6763
+ rewardsUSD: number;
6764
+ };
6765
+ } | null>;
6739
6766
  myBucketsAndLSTs(args: {
6740
6767
  account?: `0x${string}`;
6741
6768
  }): 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.0.35",
5
+ "version": "v0.0.36",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "scripts": {
@@ -30,7 +30,7 @@
30
30
  "viem": "^2.17.5"
31
31
  },
32
32
  "devDependencies": {
33
- "@dappworks/kit": "0.4.139",
33
+ "@dappworks/kit": "0.4.144",
34
34
  "@types/bun": "latest",
35
35
  "@types/tryghost__content-api": "^1.3.16",
36
36
  "bun-plugin-dts": "^0.2.3",