hive-react-kit 0.11.10 → 1.0.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.
@@ -197,5 +197,29 @@ export interface GrowthAnalyticsResult {
197
197
  benefactorUsd: number;
198
198
  };
199
199
  }
200
+ export interface KERatioResult {
201
+ username: string;
202
+ /** Own staked HP (vesting_shares only — excludes received and delegated). */
203
+ currentHP: number;
204
+ /** Posting rewards in HP. */
205
+ postingRewards: number;
206
+ /** Curation rewards in HP. */
207
+ curationRewards: number;
208
+ /** Total lifetime rewards in HP. */
209
+ totalRewards: number;
210
+ /** ke = (postingRewardsHP + curationRewardsHP) / ownHP */
211
+ ke: number;
212
+ }
213
+ /**
214
+ * KE ratio for a Hive account — lifetime rewards divided by own staked HP.
215
+ * Matches the value shown on peakd.com and mirrors the server-side calculator
216
+ * at curation-marketing/Server/utils/ke-ratio-of-account.js.
217
+ *
218
+ * ke = (posting_rewards + curation_rewards in HP) / own_HP
219
+ *
220
+ * Own HP only — received delegations and delegations-out are excluded so the
221
+ * ratio reflects whether the account keeps its earnings staked.
222
+ */
223
+ export declare function calculateKERatio(username: string, signal?: AbortSignal): Promise<KERatioResult>;
200
224
  export declare const userService: UserService;
201
225
  export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hive-react-kit",
3
3
  "private": false,
4
- "version": "0.11.10",
4
+ "version": "1.0.12",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs.js",
7
7
  "module": "./dist/index.esm.js",