File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
modules/abstract-lightning/src/codecs/api Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 11import * as t from 'io-ts' ;
2- import { LightningOnchainRecipient , optionalString } from '@bitgo/public-types' ;
2+ import { LightningOnchainRecipient , LightningOnchainRequest , optionalString } from '@bitgo/public-types' ;
33import { PendingApprovalData , TxRequestState } from '@bitgo/sdk-core' ;
44import { BigIntFromString } from 'io-ts-types' ;
55
@@ -73,6 +73,17 @@ export type LightningOnchainWithdrawResponse = {
7373 transfer ?: any ;
7474} ;
7575
76+ export const FundPsbtRequest = t . intersection (
77+ [
78+ LightningOnchainRequest ,
79+ t . type ( {
80+ txRequestId : t . string ,
81+ } ) ,
82+ ] ,
83+ 'FundPsbtRequest'
84+ ) ;
85+ export type FundPsbtRequest = t . TypeOf < typeof FundPsbtRequest > ;
86+
7687export const FundPsbtResponse = t . type (
7788 {
7889 fundedPsbt : t . string ,
You can’t perform that action at this time.
0 commit comments