@iotexproject/kit 0.0.35 → 0.0.37

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 +37 -8
  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>;
@@ -3131,28 +3137,30 @@ declare class GaugeEntity {
3131
3137
  }
3132
3138
  ];
3133
3139
  gaugeType(): Promise<"ERC20" | "ERC721" | "LPToken">;
3134
- stakingTokenInfo(account?: `0x${string}`): Promise<import("@dappworks/kit/aiem").QueryReturnType<ERC20Entity, {
3140
+ stakingTokenInfo1(account?: `0x${string}`): Promise<import("@dappworks/kit/aiem").QueryReturnType<ERC20Entity, {
3135
3141
  name: true;
3136
3142
  symbol: true;
3137
3143
  tokenUrl: true;
3138
- balanceOf: true | [
3144
+ balanceOf: false | [
3139
3145
  `0x${string}`
3140
3146
  ];
3141
3147
  }> | import("@dappworks/kit/aiem").QueryReturnType<ERC721Entity, {
3142
3148
  name: true;
3143
3149
  symbol: true;
3144
3150
  tokenUrl: true;
3145
- balanceOf: [
3146
- `0x${string}` | undefined
3151
+ balanceOf: false | [
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: false | [
3160
+ `0x${string}`
3155
3161
  ];
3162
+ token0: true;
3163
+ token1: true;
3156
3164
  }> | null | undefined>;
3157
3165
  apr(): Promise<string | 0>;
3158
3166
  rewards(account: `0x${string}`): Promise<{
@@ -4446,7 +4454,7 @@ declare class MarshallDao {
4446
4454
  ];
4447
4455
  totalVote: true;
4448
4456
  votingApr: true;
4449
- stakingTokenInfo: false | [
4457
+ stakingTokenInfo1: true | [
4450
4458
  `0x${string}`
4451
4459
  ];
4452
4460
  Incentive: {
@@ -4456,6 +4464,15 @@ declare class MarshallDao {
4456
4464
  rewardAllTokens: true;
4457
4465
  };
4458
4466
  }>[] | undefined>;
4467
+ totalGaugeRewards(args: {
4468
+ account?: `0x${string}`;
4469
+ }): Promise<{
4470
+ rewards: number | undefined;
4471
+ rewardsUSD: number | undefined;
4472
+ } | {
4473
+ rewards?: undefined;
4474
+ rewardsUSD?: undefined;
4475
+ } | null | undefined>;
4459
4476
  voterInfo(args: {
4460
4477
  account?: `0x${string}`;
4461
4478
  }): Promise<import("@dappworks/kit/aiem").QueryReturnType<VoterEntity, {
@@ -6736,6 +6753,18 @@ declare class MSP {
6736
6753
  data: any;
6737
6754
  address: string;
6738
6755
  }>;
6756
+ totalMSPRewards(args: {
6757
+ account?: `0x${string}`;
6758
+ }): Promise<{
6759
+ totalBucketRewards: {
6760
+ rewards: number | undefined;
6761
+ rewardsUSD: number;
6762
+ };
6763
+ totalLstRewards: {
6764
+ rewards: number | undefined;
6765
+ rewardsUSD: number;
6766
+ };
6767
+ } | null>;
6739
6768
  myBucketsAndLSTs(args: {
6740
6769
  account?: `0x${string}`;
6741
6770
  }): 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.37",
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",