@@ -67,19 +67,36 @@ export const LndBalance = t.strict(
6767
6868export type LndBalance = t . TypeOf < typeof LndBalance > ;
6969
70- export const LndGetBalancesResponse = t . strict (
70+ export const LndGetOffchainBalances = t . strict (
7171 {
72- inboundBalance : BigIntFromString ,
73- inboundPendingBalance : BigIntFromString ,
74- inboundUnsettledBalance : BigIntFromString ,
7572 outboundBalance : BigIntFromString ,
7673 outboundPendingBalance : BigIntFromString ,
7774 outboundUnsettledBalance : BigIntFromString ,
78- // wallet balances, names forced by type in AbstractCoin
75+ inboundBalance : BigIntFromString ,
76+ inboundPendingBalance : BigIntFromString ,
77+ inboundUnsettledBalance : BigIntFromString ,
78+ lockedBalance : BigIntFromString ,
79+ } ,
80+ 'LndGetOffchainBalances'
81+ ) ;
82+
83+ // wallet onchain balances, names forced by type in AbstractCoin
84+ export const LndGetOnchainBalances = t . strict (
85+ {
7986 spendableBalanceString : BigIntFromString ,
8087 balanceString : BigIntFromString ,
8188 confirmedBalanceString : BigIntFromString ,
8289 } ,
90+ 'LndGetOnchainBalances'
91+ ) ;
92+
93+ export const LndGetBalancesResponse = t . intersection (
94+ [
95+ t . strict ( {
96+ offchain : LndGetOffchainBalances ,
97+ } ) ,
98+ LndGetOnchainBalances ,
99+ ] ,
83100 'LndGetBalancesResponse'
84101) ;
85102
0 commit comments