@iotexproject/kit 0.0.18 → 0.0.20

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 +68 -17
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -4396,7 +4396,8 @@ declare class VoterEntity {
4396
4396
  isZero: boolean;
4397
4397
  }>;
4398
4398
  weeklyVoteEmissions(): Promise<string | 0>;
4399
- apr(account: `0x${string}`): Promise<number>;
4399
+ apr(): Promise<string>;
4400
+ vault: () => Promise<any>;
4400
4401
  governor: () => Promise<any>;
4401
4402
  epochNext: (_timestamp: string) => Promise<any>;
4402
4403
  forwarder: () => Promise<any>;
@@ -4464,38 +4465,61 @@ declare class MarshallDao {
4464
4465
  `0x${string}`
4465
4466
  ];
4466
4467
  weeklyVoteEmissions: true;
4468
+ apr: true;
4467
4469
  }> | undefined>;
4468
4470
  voteToGauge(args: {
4469
4471
  stakingTokens: `0x${string}`[];
4470
4472
  weights: number[];
4471
- }): Promise<any>;
4473
+ }): Promise<{
4474
+ data: any;
4475
+ address: string;
4476
+ error?: undefined;
4477
+ } | {
4478
+ error: unknown;
4479
+ data?: undefined;
4480
+ address?: undefined;
4481
+ }>;
4472
4482
  depositToGauge(args: {
4473
4483
  gagueAddress: `0x${string}`;
4474
4484
  amountOrTokenId: string;
4475
4485
  account: `0x${string}`;
4476
4486
  }): Promise<{
4477
- deposit: any;
4487
+ data: any;
4478
4488
  approve: `0x${string}` | null | undefined;
4489
+ address: `0x${string}`;
4479
4490
  error?: undefined;
4480
4491
  } | {
4481
4492
  error: unknown;
4482
- deposit?: undefined;
4493
+ data?: undefined;
4483
4494
  approve?: undefined;
4495
+ address?: undefined;
4484
4496
  }>;
4485
4497
  withdrawFromGauge(args: {
4486
4498
  gagueAddress: string;
4487
4499
  amount: string;
4488
- }): Promise<any>;
4500
+ }): Promise<{
4501
+ data: any;
4502
+ address: string;
4503
+ }>;
4489
4504
  getRewardFromGauge(args: {
4490
4505
  gaugeAddress: string;
4491
4506
  account: string;
4492
- }): Promise<any>;
4507
+ }): Promise<{
4508
+ data: any;
4509
+ address: string;
4510
+ }>;
4493
4511
  batchGetRewardFromGauge(args: {
4494
4512
  gaugeAddress: any[];
4495
- }): Promise<any>;
4513
+ }): Promise<{
4514
+ data: any;
4515
+ address: string;
4516
+ }>;
4496
4517
  claimIncentiveRewards(args: {
4497
4518
  gaugeAddress: string;
4498
- }): Promise<any>;
4519
+ }): Promise<{
4520
+ data: any;
4521
+ address: `0x${string}`;
4522
+ } | null>;
4499
4523
  }
4500
4524
  declare class UniswapV2LPEntity {
4501
4525
  address: `0x${string}`;
@@ -7558,33 +7582,60 @@ declare class MSP {
7558
7582
  }>;
7559
7583
  stakeBucket(args: {
7560
7584
  bucketId: string;
7561
- }): Promise<any>;
7585
+ }): Promise<{
7586
+ data: any;
7587
+ address: string;
7588
+ }>;
7562
7589
  approveBucket(args: {
7563
7590
  bucketId: string;
7564
- }): Promise<any>;
7591
+ }): Promise<{
7592
+ data: any;
7593
+ address: string;
7594
+ }>;
7565
7595
  unStakeBucket(args: {
7566
7596
  bucketIds: string[];
7567
- }): Promise<any>;
7597
+ }): Promise<{
7598
+ data: any;
7599
+ address: string;
7600
+ }>;
7568
7601
  withdrawBucket(args: {
7569
7602
  bucketIds: string[];
7570
7603
  recipient: `0x${string}`;
7571
- }): Promise<any>;
7572
- claimBucketReward(): Promise<any>;
7604
+ }): Promise<{
7605
+ data: any;
7606
+ address: string;
7607
+ }>;
7608
+ claimBucketReward(): Promise<{
7609
+ data: any;
7610
+ address: string;
7611
+ } | null>;
7573
7612
  stakeLST(args: {
7574
7613
  lstContractAddress: string;
7575
7614
  amount: string;
7576
- }): Promise<any>;
7615
+ }): Promise<{
7616
+ data: any;
7617
+ address: string;
7618
+ }>;
7577
7619
  unStakeLST(args: {
7578
7620
  lstContractAddress: string;
7579
7621
  amount: string;
7580
- }): Promise<any>;
7622
+ }): Promise<{
7623
+ data: any;
7624
+ address: string;
7625
+ }>;
7581
7626
  withdrawLST(args: {
7582
7627
  lstContractAddress: string;
7583
7628
  account: `0x${string}`;
7584
- }): Promise<any>;
7629
+ }): Promise<{
7630
+ data: any;
7631
+ address: string;
7632
+ }>;
7585
7633
  claimLSTReward(args: {
7586
7634
  lstContractAddress: string;
7587
- }): Promise<any>;
7635
+ }): Promise<{
7636
+ data: any;
7637
+ address: string;
7638
+ }>;
7588
7639
  }
7589
7640
  export interface Bucket {
7590
7641
  index: bigint;
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.18",
5
+ "version": "v0.0.20",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "scripts": {