@@ -28,19 +28,19 @@ type JsonAssetUtxo struct {
2828 DecimalDisplay uint8 `json:"decimal_display"`
2929}
3030
31- // JsonAssetChanInfo is a struct that represents the channel information of a
32- // single asset within a channel.
33- type JsonAssetChanInfo struct {
34- AssetInfo JsonAssetUtxo `json:"asset_utxo"`
35- Capacity uint64 `json:"capacity"`
36- LocalBalance uint64 `json:"local_balance"`
37- RemoteBalance uint64 `json:"remote_balance"`
38- }
39-
4031// JsonAssetChannel is a struct that represents the channel information of all
4132// assets within a channel.
4233type JsonAssetChannel struct {
43- Assets []JsonAssetChanInfo `json:"assets"`
34+ FundingAssets []JsonAssetUtxo `json:"funding_assets"`
35+ LocalAssets []JsonAssetTranche `json:"local_assets"`
36+ RemoteAssets []JsonAssetTranche `json:"remote_assets"`
37+ OutgoingHtlcs []JsonAssetTranche `json:"outgoing_htlcs"`
38+ IncomingHtlcs []JsonAssetTranche `json:"incoming_htlcs"`
39+ Capacity uint64 `json:"capacity"`
40+ LocalBalance uint64 `json:"local_balance"`
41+ RemoteBalance uint64 `json:"remote_balance"`
42+ OutgoingHtlcBalance uint64 `json:"outgoing_htlc_balance"`
43+ IncomingHtlcBalance uint64 `json:"incoming_htlc_balance"`
4444}
4545
4646// JsonAssetChannelBalances is a struct that represents the balance information
@@ -58,16 +58,16 @@ type JsonCloseOutput struct {
5858 ScriptKeys map [string ]string `json:"script_keys"`
5959}
6060
61- // JsonHtlcBalance is a struct that represents the balance of a single asset
62- // HTLC .
63- type JsonHtlcBalance struct {
61+ // JsonAssetTranche is a struct that represents the balance of a single asset
62+ // tranche .
63+ type JsonAssetTranche struct {
6464 AssetID string `json:"asset_id"`
6565 Amount uint64 `json:"amount"`
6666}
6767
6868// JsonHtlc is a struct that represents the asset information that can be
6969// transferred via an HTLC.
7070type JsonHtlc struct {
71- Balances []* JsonHtlcBalance `json:"balances"`
72- RfqID string `json:"rfq_id"`
71+ Balances []* JsonAssetTranche `json:"balances"`
72+ RfqID string `json:"rfq_id"`
7373}
0 commit comments