Skip to content

Commit

Permalink
feat: modify dlcHandlerType by removing _ prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
Polybius93 committed Dec 10, 2024
1 parent 8b619e2 commit 7c6bc77
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/dlc-handlers/abstract-dlc-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import {
import { RawVault } from '../models/ethereum-models.js';

export abstract class AbstractDLCHandler {
abstract readonly _dlcHandlerType: DLCHandlerType;
abstract readonly dlcHandlerType: DLCHandlerType;
protected fundingPaymentType: FundingPaymentType;
protected _payment?: PaymentInformation;
protected readonly bitcoinNetwork: Network;
Expand Down
2 changes: 1 addition & 1 deletion src/dlc-handlers/dfns-dlc-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
import { AbstractDLCHandler } from './abstract-dlc-handler.js';

export class DFNSDLCHandler extends AbstractDLCHandler {
readonly _dlcHandlerType = 'dfns' as const;
readonly dlcHandlerType = 'dfns' as const;
private readonly dfnsDelegatedAPIClient: DfnsDelegatedApiClient;
private _taprootDerivedPublicKey?: string;
private _dfnsWalletID?: string;
Expand Down
2 changes: 1 addition & 1 deletion src/dlc-handlers/keypair-dlc-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
import { AbstractDLCHandler } from './abstract-dlc-handler.js';

export class KeyPairDLCHandler extends AbstractDLCHandler {
readonly _dlcHandlerType = 'keypair' as const;
readonly dlcHandlerType = 'keypair' as const;
private fundingDerivedKeyPair: BIP32Interface;
private taprootDerivedKeyPair: BIP32Interface;

Expand Down
2 changes: 1 addition & 1 deletion src/dlc-handlers/leather-dlc-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ interface SignPsbtRequestParams {
}

export class LeatherDLCHandler extends AbstractDLCHandler {
readonly _dlcHandlerType = 'leather' as const;
readonly dlcHandlerType = 'leather' as const;
private taprootDerivedPublicKey: string;
private fundingDerivedPublicKey: string;

Expand Down
2 changes: 1 addition & 1 deletion src/dlc-handlers/ledger-dlc-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ interface LedgerPolicyInformation {
}

export class LedgerDLCHandler extends AbstractDLCHandler {
readonly _dlcHandlerType = 'ledger' as const;
readonly dlcHandlerType = 'ledger' as const;
private ledgerApp: AppClient;
private masterFingerprint: string;
private walletAccountIndex: number;
Expand Down
2 changes: 1 addition & 1 deletion src/dlc-handlers/unisat-fordefi-dlc-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export interface UnisatSignPsbtRequestOptions {
}

export class UnisatFordefiDLCHandler extends AbstractDLCHandler {
readonly _dlcHandlerType = 'unisat/fordefi' as const;
readonly dlcHandlerType = 'unisat/fordefi' as const;
private taprootDerivedPublicKey: string;
private fundingDerivedPublicKey: string;

Expand Down

0 comments on commit 7c6bc77

Please sign in to comment.