Skip to content

Commit 98994d1

Browse files
authored
Merge pull request #5407 from BitGo/BTC-0-backup-codec
feat(sdk-core): add backup codecs
2 parents 5e27a5c + cddf32c commit 98994d1

File tree

1 file changed

+20
-0
lines changed
  • modules/sdk-core/src/bitgo/lightning

1 file changed

+20
-0
lines changed

modules/sdk-core/src/bitgo/lightning/codecs.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,3 +173,23 @@ export const LndGetBalancesResponse = t.strict(
173173
);
174174

175175
export type LndGetBalancesResponse = t.TypeOf<typeof LndGetBalancesResponse>;
176+
177+
export const ChanPoints = t.strict(
178+
{
179+
fundingTxid: t.string,
180+
outputIndex: t.number,
181+
},
182+
'ChanPoints'
183+
);
184+
185+
export type ChanPoints = t.TypeOf<typeof ChanPoints>;
186+
187+
export const BackupResponse = t.strict(
188+
{
189+
chanPoints: t.array(ChanPoints),
190+
multiChanBackup: t.string,
191+
},
192+
'BackupResponse'
193+
);
194+
195+
export type BackupResponse = t.TypeOf<typeof BackupResponse>;

0 commit comments

Comments
 (0)