Skip to content

Commit 8772ff5

Browse files
OttoAllmendingerllm-git
andcommitted
feat(babylonlabs-io-btc-staking-ts): change instance fields to protected
Change class fields from private to protected in BabylonBtcStakingManager to enable inheritance for extending functionality. Also improved documentation for the createProofOfPossession method. Issue: BTC-2079 Co-authored-by: llm-git <[email protected]>
1 parent 5de2096 commit 8772ff5

File tree

1 file changed

+6
-5
lines changed
  • modules/babylonlabs-io-btc-staking-ts/src/staking

1 file changed

+6
-5
lines changed

modules/babylonlabs-io-btc-staking-ts/src/staking/manager.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ interface InclusionProof {
9393
}
9494

9595
export class BabylonBtcStakingManager {
96-
private stakingParams: VersionedStakingParams[];
97-
private btcProvider: BtcProvider;
98-
private network: networks.Network;
99-
private babylonProvider: BabylonProvider;
96+
protected stakingParams: VersionedStakingParams[];
97+
protected btcProvider: BtcProvider;
98+
protected network: networks.Network;
99+
protected babylonProvider: BabylonProvider;
100100

101101
constructor(
102102
network: networks.Network,
@@ -624,7 +624,8 @@ export class BabylonBtcStakingManager {
624624

625625
/**
626626
* Creates a proof of possession for the staker based on ECDSA signature.
627-
* @param bech32Address - The staker's bech32 address.
627+
* @param bech32Address - The staker's bech32 address on the babylon chain
628+
* @param stakerBtcAddress - The staker's BTC address.
628629
* @returns The proof of possession.
629630
*/
630631
async createProofOfPossession(

0 commit comments

Comments
 (0)