@iotexproject/kit 0.2.10 → 0.2.12

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 +15 -0
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -7056,6 +7056,9 @@ declare class Staking {
7056
7056
  getDelegateByAddress(args: {
7057
7057
  ownerAddress: `0x${string}` | `io${string}`;
7058
7058
  }, ctx?: ConfigContext): Promise<CandidateV4>;
7059
+ getDelegateByName(args: {
7060
+ delegateName: string;
7061
+ }, ctx?: ConfigContext): Promise<CandidateV4>;
7059
7062
  upsertRewardDistribution(args: {
7060
7063
  foundationRewardPortion: number;
7061
7064
  epochRewardPortion: number;
@@ -8704,6 +8707,18 @@ declare class Delegate {
8704
8707
  rewardAddress: string;
8705
8708
  blsPubKey: string;
8706
8709
  }, ctx?: ConfigContext): Promise<any>;
8710
+ claim(args: {
8711
+ amount: number | string;
8712
+ }, ctx?: ConfigContext): Promise<any>;
8713
+ unclaimedReward(args: {
8714
+ account: `0x${string}` | `io${string}`;
8715
+ }, ctx?: ConfigContext): Promise<{
8716
+ unclaimedBalance: any;
8717
+ error?: undefined;
8718
+ } | {
8719
+ error: unknown;
8720
+ unclaimedBalance?: undefined;
8721
+ }>;
8707
8722
  }
8708
8723
  declare const modules: {
8709
8724
  mimo: Mimo;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@iotexproject/kit",
3
3
  "module": "index.ts",
4
4
  "type": "module",
5
- "version": "0.2.10",
5
+ "version": "0.2.12",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "scripts": {