Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(sdk-core): add backup codecs #5407

Merged
merged 1 commit into from
Jan 21, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Base 64 encoded string.

},
'BackupResponse'
);

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