@stacks/codec 2.0.0-pox5.1 → 2.0.0-pox5.2
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.
package/index.d.ts
CHANGED
|
@@ -934,17 +934,8 @@ export interface Pox5EventUnstake extends Pox5EventBase {
|
|
|
934
934
|
};
|
|
935
935
|
}
|
|
936
936
|
/**
|
|
937
|
-
* Logged
|
|
938
|
-
*
|
|
939
|
-
* and a phase-2 (post-distribution) print carrying `new_reserve`. Exactly
|
|
940
|
-
* one of those two fields is populated per event; the other is `null`.
|
|
941
|
-
*
|
|
942
|
-
* Phase-1 fires before reserve and accounting state are updated; useful for
|
|
943
|
-
* inspecting whether the staker cut was folded into the reserve because no
|
|
944
|
-
* STX was staked.
|
|
945
|
-
*
|
|
946
|
-
* Phase-2 fires after state is committed and matches the value returned to
|
|
947
|
-
* the caller.
|
|
937
|
+
* Logged once per `calculate-rewards` call, after all per-bond distributions
|
|
938
|
+
* have been folded and the STX reward cycle accounting has been committed.
|
|
948
939
|
*/
|
|
949
940
|
export interface Pox5EventCalculateRewards extends Pox5EventBase {
|
|
950
941
|
name: Pox5EventName.CalculateRewards;
|
|
@@ -953,29 +944,24 @@ export interface Pox5EventCalculateRewards extends Pox5EventBase {
|
|
|
953
944
|
bond_periods: string[];
|
|
954
945
|
/** String-quoted unsigned integer */
|
|
955
946
|
calculation_height: string;
|
|
956
|
-
/** String-quoted unsigned integer */
|
|
957
|
-
|
|
958
|
-
/** String-quoted unsigned integer */
|
|
959
|
-
|
|
960
|
-
/**
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
new_reserve: string | null;
|
|
965
|
-
/**
|
|
966
|
-
* Phase-1 only. String-quoted unsigned integer — the would-be STX
|
|
967
|
-
* staker cut that gets folded into the reserve when no STX is staked
|
|
968
|
-
* for the cycle. `null` on the phase-2 event.
|
|
969
|
-
*/
|
|
970
|
-
stranded_staker_cut: string | null;
|
|
971
|
-
/** String-quoted unsigned integer */
|
|
972
|
-
stx_staker_rewards: string;
|
|
947
|
+
/** String-quoted unsigned integer — total new rewards accrued since the last calculation. */
|
|
948
|
+
gross_accrued_rewards: string;
|
|
949
|
+
/** String-quoted unsigned integer — portion of `gross_accrued_rewards` paid out to bonds. */
|
|
950
|
+
total_bond_rewards: string;
|
|
951
|
+
/** String-quoted unsigned integer — amount added to the reserve this calculation. */
|
|
952
|
+
reserve_deposit: string;
|
|
953
|
+
/** String-quoted unsigned integer — reserve balance after `reserve_deposit` was applied. */
|
|
954
|
+
reserve_balance: string;
|
|
973
955
|
/** String-quoted unsigned integer */
|
|
974
956
|
stx_cycle: string;
|
|
957
|
+
/** String-quoted unsigned integer — rewards allocated to STX stakers for the cycle. */
|
|
958
|
+
total_stx_staker_rewards: string;
|
|
975
959
|
/** String-quoted unsigned integer */
|
|
976
960
|
cycle_staked_ustx: string;
|
|
977
|
-
/** String-quoted unsigned integer */
|
|
978
|
-
|
|
961
|
+
/** String-quoted unsigned integer — per-uSTX rewards accrued this calculation (zero when no STX is staked). */
|
|
962
|
+
accrued_rewards_per_ustx: string;
|
|
963
|
+
/** String-quoted unsigned integer — running per-uSTX reward total for the cycle after this calculation. */
|
|
964
|
+
cumulative_rewards_per_ustx: string;
|
|
979
965
|
};
|
|
980
966
|
}
|
|
981
967
|
export interface Pox5EventBondDistribution extends Pox5EventBase {
|
|
@@ -985,8 +971,14 @@ export interface Pox5EventBondDistribution extends Pox5EventBase {
|
|
|
985
971
|
bond_index: string;
|
|
986
972
|
/** String-quoted unsigned integer */
|
|
987
973
|
target_yield: string;
|
|
988
|
-
/** String-quoted unsigned integer */
|
|
989
|
-
|
|
974
|
+
/** String-quoted unsigned integer — rewards earned by this bond this calculation. */
|
|
975
|
+
bond_rewards: string;
|
|
976
|
+
/** String-quoted unsigned integer */
|
|
977
|
+
bond_staked_sats: string;
|
|
978
|
+
/** String-quoted unsigned integer — per-sat rewards accrued this calculation. */
|
|
979
|
+
accrued_rewards_per_sat: string;
|
|
980
|
+
/** String-quoted unsigned integer — running per-sat reward total for the bond after this calculation. */
|
|
981
|
+
cumulative_rewards_per_sat: string;
|
|
990
982
|
};
|
|
991
983
|
}
|
|
992
984
|
/** Sub-tuple emitted under `stx_rewards` in `claim-rewards` events. */
|
package/native/darwin-arm64.node
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/native/win32-x64.node
CHANGED
|
Binary file
|
package/package.json
CHANGED