@stacks/codec 2.0.0-pox5.2 → 2.0.0-pox5.3
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 +85 -6
- package/index.js +6 -0
- package/index.mjs +6 -0
- package/native/darwin-arm64.node +0 -0
- package/native/linux-arm64-glibc.node +0 -0
- package/native/linux-arm64-musl.node +0 -0
- package/native/linux-x64-glibc.node +0 -0
- package/native/linux-x64-musl.node +0 -0
- package/native/win32-x64.node +0 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -728,6 +728,7 @@ export interface Pox4EventRevokeDelegateStx extends Pox4EventBase {
|
|
|
728
728
|
}
|
|
729
729
|
export type Pox4Event = Pox4EventHandleUnlock | Pox4EventStackStx | Pox4EventStackIncrease | Pox4EventStackExtend | Pox4EventDelegateStx | Pox4EventDelegateStackStx | Pox4EventDelegateStackIncrease | Pox4EventDelegateStackExtend | Pox4EventStackAggregationCommit | Pox4EventStackAggregationCommitIndexed | Pox4EventStackAggregationIncrease | Pox4EventRevokeDelegateStx;
|
|
730
730
|
export declare enum Pox5EventName {
|
|
731
|
+
SetBondAdmin = "set-bond-admin",
|
|
731
732
|
SetupBond = "setup-bond",
|
|
732
733
|
AddToAllowlist = "add-to-allowlist",
|
|
733
734
|
RegisterForBond = "register-for-bond",
|
|
@@ -740,7 +741,12 @@ export declare enum Pox5EventName {
|
|
|
740
741
|
Unstake = "unstake",
|
|
741
742
|
CalculateRewards = "calculate-rewards",
|
|
742
743
|
BondDistribution = "bond-distribution",
|
|
743
|
-
ClaimRewards = "claim-rewards"
|
|
744
|
+
ClaimRewards = "claim-rewards",
|
|
745
|
+
ClaimStakerRewardsForSigner = "claim-staker-rewards-for-signer",
|
|
746
|
+
GrantSignerKey = "grant-signer-key",
|
|
747
|
+
RevokeSignerGrant = "revoke-signer-grant",
|
|
748
|
+
DisallowContractCaller = "disallow-contract-caller",
|
|
749
|
+
AllowContractCaller = "allow-contract-caller"
|
|
744
750
|
}
|
|
745
751
|
export interface Pox5EventBase {
|
|
746
752
|
/**
|
|
@@ -750,6 +756,15 @@ export interface Pox5EventBase {
|
|
|
750
756
|
*/
|
|
751
757
|
pox_version: 'pox5';
|
|
752
758
|
}
|
|
759
|
+
export interface Pox5EventSetBondAdmin extends Pox5EventBase {
|
|
760
|
+
name: Pox5EventName.SetBondAdmin;
|
|
761
|
+
data: {
|
|
762
|
+
/** c32 principal of the previous bond admin. */
|
|
763
|
+
old_admin: string;
|
|
764
|
+
/** c32 principal of the new bond admin. */
|
|
765
|
+
new_admin: string;
|
|
766
|
+
};
|
|
767
|
+
}
|
|
753
768
|
export interface Pox5EventSetupBond extends Pox5EventBase {
|
|
754
769
|
name: Pox5EventName.SetupBond;
|
|
755
770
|
data: {
|
|
@@ -762,12 +777,11 @@ export interface Pox5EventSetupBond extends Pox5EventBase {
|
|
|
762
777
|
/** String-quoted unsigned integer */
|
|
763
778
|
min_ustx_ratio: string;
|
|
764
779
|
/**
|
|
765
|
-
* `(buff 683)` hex string.
|
|
766
|
-
* (e.g. `<pubkey>
|
|
780
|
+
* `(buff 683)` hex string. Bitcoin script subscript guarding the
|
|
781
|
+
* early-exit (`OP_ELSE`) branch of the L1 lockup (e.g. `<pubkey>
|
|
782
|
+
* OP_CHECKSIG`, or an M-of-N `CHECKMULTISIG` template).
|
|
767
783
|
*/
|
|
768
784
|
early_unlock_bytes: string;
|
|
769
|
-
/** c32 principal allowed to call `announce-l1-early-exit` for stakers in this bond. */
|
|
770
|
-
early_unlock_admin: string;
|
|
771
785
|
/** String-quoted unsigned integer */
|
|
772
786
|
first_reward_cycle: string;
|
|
773
787
|
/** String-quoted unsigned integer */
|
|
@@ -996,6 +1010,10 @@ export interface Pox5BondRewardsInfo extends Pox5ClaimRewardsInfo {
|
|
|
996
1010
|
export interface Pox5EventClaimRewards extends Pox5EventBase {
|
|
997
1011
|
name: Pox5EventName.ClaimRewards;
|
|
998
1012
|
data: {
|
|
1013
|
+
/** c32 principal of the signer manager that claimed. */
|
|
1014
|
+
signer_manager: string;
|
|
1015
|
+
/** String-quoted unsigned integer */
|
|
1016
|
+
reward_cycle: string;
|
|
999
1017
|
stx_rewards: Pox5ClaimRewardsInfo;
|
|
1000
1018
|
bond_rewards: Pox5BondRewardsInfo[];
|
|
1001
1019
|
/** String-quoted unsigned integer */
|
|
@@ -1004,7 +1022,68 @@ export interface Pox5EventClaimRewards extends Pox5EventBase {
|
|
|
1004
1022
|
total_rewards: string;
|
|
1005
1023
|
};
|
|
1006
1024
|
}
|
|
1007
|
-
export
|
|
1025
|
+
export interface Pox5EventClaimStakerRewardsForSigner extends Pox5EventBase {
|
|
1026
|
+
name: Pox5EventName.ClaimStakerRewardsForSigner;
|
|
1027
|
+
data: {
|
|
1028
|
+
/** c32 principal of the signer manager. */
|
|
1029
|
+
signer_manager: string;
|
|
1030
|
+
/** c32 principal of the staker. */
|
|
1031
|
+
staker: string;
|
|
1032
|
+
/** String-quoted unsigned integer */
|
|
1033
|
+
reward_cycle: string;
|
|
1034
|
+
/**
|
|
1035
|
+
* String-quoted unsigned integer for bond rewards, or `null` for
|
|
1036
|
+
* STX-only staking rewards.
|
|
1037
|
+
*/
|
|
1038
|
+
bond_index: string | null;
|
|
1039
|
+
/** String-quoted unsigned integer */
|
|
1040
|
+
rewards_claimed: string;
|
|
1041
|
+
};
|
|
1042
|
+
}
|
|
1043
|
+
export interface Pox5EventGrantSignerKey extends Pox5EventBase {
|
|
1044
|
+
name: Pox5EventName.GrantSignerKey;
|
|
1045
|
+
data: {
|
|
1046
|
+
/** `(buff 33)` hex string — compressed secp256k1 public key. */
|
|
1047
|
+
signer_key: string;
|
|
1048
|
+
/** c32 principal of the signer manager. */
|
|
1049
|
+
signer_manager: string;
|
|
1050
|
+
/** String-quoted unsigned integer */
|
|
1051
|
+
auth_id: string;
|
|
1052
|
+
};
|
|
1053
|
+
}
|
|
1054
|
+
export interface Pox5EventRevokeSignerGrant extends Pox5EventBase {
|
|
1055
|
+
name: Pox5EventName.RevokeSignerGrant;
|
|
1056
|
+
data: {
|
|
1057
|
+
/** `(buff 33)` hex string — compressed secp256k1 public key. */
|
|
1058
|
+
signer_key: string;
|
|
1059
|
+
/** c32 principal of the signer manager. */
|
|
1060
|
+
signer_manager: string;
|
|
1061
|
+
};
|
|
1062
|
+
}
|
|
1063
|
+
export interface Pox5EventDisallowContractCaller extends Pox5EventBase {
|
|
1064
|
+
name: Pox5EventName.DisallowContractCaller;
|
|
1065
|
+
data: {
|
|
1066
|
+
/** c32 principal of the tx-sender that revoked the allowance. */
|
|
1067
|
+
sender: string;
|
|
1068
|
+
/** c32 principal of the contract-caller whose allowance was removed. */
|
|
1069
|
+
contract_caller: string;
|
|
1070
|
+
};
|
|
1071
|
+
}
|
|
1072
|
+
export interface Pox5EventAllowContractCaller extends Pox5EventBase {
|
|
1073
|
+
name: Pox5EventName.AllowContractCaller;
|
|
1074
|
+
data: {
|
|
1075
|
+
/** c32 principal of the tx-sender that granted the allowance. */
|
|
1076
|
+
sender: string;
|
|
1077
|
+
/** c32 principal of the allowed contract-caller. */
|
|
1078
|
+
contract_caller: string;
|
|
1079
|
+
/**
|
|
1080
|
+
* String-quoted unsigned integer burn height at which the allowance
|
|
1081
|
+
* expires, or `null` if it never expires.
|
|
1082
|
+
*/
|
|
1083
|
+
until_burn_ht: string | null;
|
|
1084
|
+
};
|
|
1085
|
+
}
|
|
1086
|
+
export type Pox5Event = Pox5EventSetBondAdmin | Pox5EventSetupBond | Pox5EventAddToAllowlist | Pox5EventRegisterForBond | Pox5EventUpdateBondRegistration | Pox5EventRegisterSigner | Pox5EventStake | Pox5EventStakeUpdate | Pox5EventAnnounceL1EarlyExit | Pox5EventUnstakeSbtc | Pox5EventUnstake | Pox5EventCalculateRewards | Pox5EventBondDistribution | Pox5EventClaimRewards | Pox5EventClaimStakerRewardsForSigner | Pox5EventGrantSignerKey | Pox5EventRevokeSignerGrant | Pox5EventDisallowContractCaller | Pox5EventAllowContractCaller;
|
|
1008
1087
|
/**
|
|
1009
1088
|
* Any decoded PoX synthetic event, regardless of the source contract version.
|
|
1010
1089
|
*
|
package/index.js
CHANGED
|
@@ -249,6 +249,7 @@ var Pox4EventName;
|
|
|
249
249
|
// ============================================================================
|
|
250
250
|
var Pox5EventName;
|
|
251
251
|
(function (Pox5EventName) {
|
|
252
|
+
Pox5EventName["SetBondAdmin"] = "set-bond-admin";
|
|
252
253
|
Pox5EventName["SetupBond"] = "setup-bond";
|
|
253
254
|
Pox5EventName["AddToAllowlist"] = "add-to-allowlist";
|
|
254
255
|
Pox5EventName["RegisterForBond"] = "register-for-bond";
|
|
@@ -262,4 +263,9 @@ var Pox5EventName;
|
|
|
262
263
|
Pox5EventName["CalculateRewards"] = "calculate-rewards";
|
|
263
264
|
Pox5EventName["BondDistribution"] = "bond-distribution";
|
|
264
265
|
Pox5EventName["ClaimRewards"] = "claim-rewards";
|
|
266
|
+
Pox5EventName["ClaimStakerRewardsForSigner"] = "claim-staker-rewards-for-signer";
|
|
267
|
+
Pox5EventName["GrantSignerKey"] = "grant-signer-key";
|
|
268
|
+
Pox5EventName["RevokeSignerGrant"] = "revoke-signer-grant";
|
|
269
|
+
Pox5EventName["DisallowContractCaller"] = "disallow-contract-caller";
|
|
270
|
+
Pox5EventName["AllowContractCaller"] = "allow-contract-caller";
|
|
265
271
|
})(Pox5EventName || (exports.Pox5EventName = Pox5EventName = {}));
|
package/index.mjs
CHANGED
|
@@ -158,6 +158,7 @@ var Pox4EventName = /* @__PURE__ */ ((Pox4EventName2) => {
|
|
|
158
158
|
return Pox4EventName2;
|
|
159
159
|
})(Pox4EventName || {});
|
|
160
160
|
var Pox5EventName = /* @__PURE__ */ ((Pox5EventName2) => {
|
|
161
|
+
Pox5EventName2["SetBondAdmin"] = "set-bond-admin";
|
|
161
162
|
Pox5EventName2["SetupBond"] = "setup-bond";
|
|
162
163
|
Pox5EventName2["AddToAllowlist"] = "add-to-allowlist";
|
|
163
164
|
Pox5EventName2["RegisterForBond"] = "register-for-bond";
|
|
@@ -171,6 +172,11 @@ var Pox5EventName = /* @__PURE__ */ ((Pox5EventName2) => {
|
|
|
171
172
|
Pox5EventName2["CalculateRewards"] = "calculate-rewards";
|
|
172
173
|
Pox5EventName2["BondDistribution"] = "bond-distribution";
|
|
173
174
|
Pox5EventName2["ClaimRewards"] = "claim-rewards";
|
|
175
|
+
Pox5EventName2["ClaimStakerRewardsForSigner"] = "claim-staker-rewards-for-signer";
|
|
176
|
+
Pox5EventName2["GrantSignerKey"] = "grant-signer-key";
|
|
177
|
+
Pox5EventName2["RevokeSignerGrant"] = "revoke-signer-grant";
|
|
178
|
+
Pox5EventName2["DisallowContractCaller"] = "disallow-contract-caller";
|
|
179
|
+
Pox5EventName2["AllowContractCaller"] = "allow-contract-caller";
|
|
174
180
|
return Pox5EventName2;
|
|
175
181
|
})(Pox5EventName || {});
|
|
176
182
|
export {
|
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