@stacks/codec 2.0.0-pox5.3 → 2.0.0-pox5.4
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
|
@@ -803,6 +803,23 @@ export interface Pox5EventAddToAllowlist extends Pox5EventBase {
|
|
|
803
803
|
bond_index: string;
|
|
804
804
|
};
|
|
805
805
|
}
|
|
806
|
+
/** One proven L1 output in a `register-for-bond` `btc_lockup`. */
|
|
807
|
+
export interface Pox5BtcLockupTx {
|
|
808
|
+
/** Reversed (big-endian) txid as a `0x`-prefixed hex string. */
|
|
809
|
+
txid: string;
|
|
810
|
+
/** String-quoted unsigned integer */
|
|
811
|
+
output_index: string;
|
|
812
|
+
}
|
|
813
|
+
/** The `btc_lockup` sub-object of a `register-for-bond` event. */
|
|
814
|
+
export interface Pox5BtcLockup {
|
|
815
|
+
/** `'l1'` for a Bitcoin L1 lockup, `'l2'` for an sBTC lockup. */
|
|
816
|
+
type: string;
|
|
817
|
+
/**
|
|
818
|
+
* The proven L1 outputs for an `'l1'` lockup, or `null` for an `'l2'`
|
|
819
|
+
* (sBTC) lockup.
|
|
820
|
+
*/
|
|
821
|
+
txs: Pox5BtcLockupTx[] | null;
|
|
822
|
+
}
|
|
806
823
|
export interface Pox5EventRegisterForBond extends Pox5EventBase {
|
|
807
824
|
name: Pox5EventName.RegisterForBond;
|
|
808
825
|
data: {
|
|
@@ -824,6 +841,8 @@ export interface Pox5EventRegisterForBond extends Pox5EventBase {
|
|
|
824
841
|
unlock_cycle: string;
|
|
825
842
|
/** True if the participant proved an L1 BTC lockup; false if they locked sBTC. */
|
|
826
843
|
is_l1_lock: boolean;
|
|
844
|
+
/** How the BTC was locked (L1 proof outputs vs. sBTC). */
|
|
845
|
+
btc_lockup: Pox5BtcLockup;
|
|
827
846
|
};
|
|
828
847
|
}
|
|
829
848
|
export interface Pox5EventUpdateBondRegistration extends Pox5EventBase {
|
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