@@ -28,19 +28,19 @@ type JsonAssetUtxo struct {
28
28
DecimalDisplay uint8 `json:"decimal_display"`
29
29
}
30
30
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
-
40
31
// JsonAssetChannel is a struct that represents the channel information of all
41
32
// assets within a channel.
42
33
type 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"`
44
44
}
45
45
46
46
// JsonAssetChannelBalances is a struct that represents the balance information
@@ -58,16 +58,16 @@ type JsonCloseOutput struct {
58
58
ScriptKeys map [string ]string `json:"script_keys"`
59
59
}
60
60
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 {
64
64
AssetID string `json:"asset_id"`
65
65
Amount uint64 `json:"amount"`
66
66
}
67
67
68
68
// JsonHtlc is a struct that represents the asset information that can be
69
69
// transferred via an HTLC.
70
70
type JsonHtlc struct {
71
- Balances []* JsonHtlcBalance `json:"balances"`
72
- RfqID string `json:"rfq_id"`
71
+ Balances []* JsonAssetTranche `json:"balances"`
72
+ RfqID string `json:"rfq_id"`
73
73
}
0 commit comments