Skip to content

Commit

Permalink
feat(sdk-core): add backup codecs
Browse files Browse the repository at this point in the history
  • Loading branch information
ericli-bitgo committed Jan 21, 2025
1 parent 5e27a5c commit cddf32c
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions modules/sdk-core/src/bitgo/lightning/codecs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,3 +173,23 @@ export const LndGetBalancesResponse = t.strict(
);

export type LndGetBalancesResponse = t.TypeOf<typeof LndGetBalancesResponse>;

export const ChanPoints = t.strict(
{
fundingTxid: t.string,
outputIndex: t.number,
},
'ChanPoints'
);

export type ChanPoints = t.TypeOf<typeof ChanPoints>;

export const BackupResponse = t.strict(
{
chanPoints: t.array(ChanPoints),
multiChanBackup: t.string,
},
'BackupResponse'
);

export type BackupResponse = t.TypeOf<typeof BackupResponse>;

0 comments on commit cddf32c

Please sign in to comment.