Skip to content

Commit

Permalink
docs: Lock example values to avoid unnecessary updates in schemas
Browse files Browse the repository at this point in the history
Changelog-None.
  • Loading branch information
ShahanaFarooqui authored and endothermicdev committed Feb 19, 2025
1 parent 26359e4 commit 3649a54
Show file tree
Hide file tree
Showing 9 changed files with 109 additions and 104 deletions.
102 changes: 51 additions & 51 deletions contrib/msggen/msggen/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2819,16 +2819,16 @@
"channels_apy": [
{
"account": "channelid0120000120000120000120000120000120000120000120000120000",
"routed_out_msat": 1000000,
"routed_in_msat": 510091208,
"routed_out_msat": 1001000,
"routed_in_msat": 510092209,
"lease_fee_paid_msat": 0,
"lease_fee_earned_msat": 0,
"pushed_out_msat": 0,
"pushed_in_msat": 0,
"our_start_balance_msat": 0,
"channel_start_balance_msat": 1000000000,
"fees_out_msat": 0,
"fees_in_msat": 106,
"fees_out_msat": 1,
"fees_in_msat": 107,
"utilization_out": "30.7060%",
"utilization_in": "10.0027%",
"utilization_in_initial": "50.0081%",
Expand Down Expand Up @@ -2881,16 +2881,16 @@
},
{
"account": "net",
"routed_out_msat": 1011190102,
"routed_in_msat": 510091208,
"routed_out_msat": 1011191102,
"routed_in_msat": 510092209,
"lease_fee_paid_msat": 0,
"lease_fee_earned_msat": 0,
"pushed_out_msat": 0,
"pushed_in_msat": 0,
"our_start_balance_msat": 2000000000,
"channel_start_balance_msat": 3000000000,
"fees_out_msat": 106,
"fees_in_msat": 106,
"fees_out_msat": 107,
"fees_in_msat": 107,
"utilization_out": "33.7060%",
"utilization_out_initial": "53.5591%",
"utilization_in": "13.0027%",
Expand Down Expand Up @@ -11004,7 +11004,7 @@
"method": "delforward",
"params": {
"in_channel": "109x1x1",
"in_htlc_id": 21,
"in_htlc_id": 22,
"status": "failed"
}
},
Expand Down Expand Up @@ -21750,10 +21750,10 @@
"response": {
"forwards": [
{
"created_index": 12,
"updated_index": 7,
"created_index": 13,
"updated_index": 8,
"in_channel": "109x1x1",
"in_htlc_id": 19,
"in_htlc_id": 20,
"out_channel": "123x1x1",
"out_htlc_id": 2,
"in_msat": 50000501,
Expand All @@ -21765,10 +21765,10 @@
"resolved_time": 1738500000
},
{
"created_index": 13,
"updated_index": 8,
"created_index": 14,
"updated_index": 9,
"in_channel": "109x1x1",
"in_htlc_id": 20,
"in_htlc_id": 21,
"out_channel": "123x1x1",
"out_htlc_id": 3,
"in_msat": 50000501,
Expand Down Expand Up @@ -23542,24 +23542,24 @@
"response": {
"offers": [
{
"offer_id": "offeridl23000002300000230000023000002300000230000023000002300000",
"offer_id": "offeridl21000002100000210000021000002100000210000021000002100000",
"active": true,
"single_use": false,
"bolt12": "lno1qgsq000bolt230002300023000230002300023000230002300023000230002300023000230002300023000230002300023000230002300023000230002300023000",
"bolt12": "lno1qgsq000bolt210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000",
"used": false
},
{
"offer_id": "offeridl21000002100000210000021000002100000210000021000002100000",
"offer_id": "offeridl22000002200000220000022000002200000220000022000002200000",
"active": true,
"single_use": false,
"bolt12": "lno1qgsq000bolt210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000",
"bolt12": "lno1qgsq000bolt220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000",
"used": false
},
{
"offer_id": "offeridl22000002200000220000022000002200000220000022000002200000",
"offer_id": "offeridl23000002300000230000023000002300000230000023000002300000",
"active": true,
"single_use": false,
"bolt12": "lno1qgsq000bolt220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000",
"bolt12": "lno1qgsq000bolt230002300023000230002300023000230002300023000230002300023000230002300023000230002300023000230002300023000230002300023000",
"used": false
}
]
Expand All @@ -23570,7 +23570,7 @@
"id": "example:listoffers#2",
"method": "listoffers",
"params": [
"b791f88cebf775853112c30828e116487f4d6c252d669372532b468bc7de8a24"
"offeridl23000002300000230000023000002300000230000023000002300000"
]
},
"response": {
Expand Down Expand Up @@ -25372,8 +25372,8 @@
"remote_funds_msat": 0,
"pushed_msat": 0
},
"to_us_msat": 390492790,
"min_to_us_msat": 390492790,
"to_us_msat": 390492789,
"min_to_us_msat": 390492789,
"max_to_us_msat": 1000000000,
"total_msat": 1000000000,
"fee_base_msat": 1,
Expand All @@ -25382,8 +25382,8 @@
"max_total_htlc_in_msat": 18446744073709552000,
"their_reserve_msat": 10000000,
"our_reserve_msat": 10000000,
"spendable_msat": 363951708,
"receivable_msat": 599507210,
"spendable_msat": 363951707,
"receivable_msat": 599507211,
"minimum_htlc_in_msat": 0,
"minimum_htlc_out_msat": 0,
"maximum_htlc_out_msat": 990000000,
Expand All @@ -25409,18 +25409,18 @@
"status": [
"CHANNELD_NORMAL:Channel ready for use."
],
"in_payments_offered": 1,
"in_offered_msat": 1000000,
"in_payments_fulfilled": 1,
"in_fulfilled_msat": 1000000,
"out_payments_offered": 22,
"out_offered_msat": 665528797,
"out_payments_fulfilled": 16,
"out_fulfilled_msat": 610507210,
"in_payments_offered": 2,
"in_offered_msat": 1001000,
"in_payments_fulfilled": 2,
"in_fulfilled_msat": 1001000,
"out_payments_offered": 23,
"out_offered_msat": 665529798,
"out_payments_fulfilled": 17,
"out_fulfilled_msat": 610508211,
"htlcs": [
{
"direction": "out",
"id": 17,
"id": 18,
"amount_msat": 4000082,
"expiry": 181,
"payment_hash": "paymenthashdelpay30303030303030303030303030303030303030303030303",
Expand Down Expand Up @@ -25502,8 +25502,8 @@
"remote_funds_msat": 0,
"pushed_msat": 0
},
"to_us_msat": 390492790,
"min_to_us_msat": 390492790,
"to_us_msat": 390492789,
"min_to_us_msat": 390492789,
"max_to_us_msat": 1000000000,
"total_msat": 1000000000,
"fee_base_msat": 1,
Expand All @@ -25512,8 +25512,8 @@
"max_total_htlc_in_msat": 18446744073709552000,
"their_reserve_msat": 10000000,
"our_reserve_msat": 10000000,
"spendable_msat": 363951708,
"receivable_msat": 599507210,
"spendable_msat": 363951707,
"receivable_msat": 599507211,
"minimum_htlc_in_msat": 0,
"minimum_htlc_out_msat": 0,
"maximum_htlc_out_msat": 990000000,
Expand All @@ -25539,18 +25539,18 @@
"status": [
"CHANNELD_NORMAL:Channel ready for use."
],
"in_payments_offered": 1,
"in_offered_msat": 1000000,
"in_payments_fulfilled": 1,
"in_fulfilled_msat": 1000000,
"out_payments_offered": 22,
"out_offered_msat": 665528797,
"out_payments_fulfilled": 16,
"out_fulfilled_msat": 610507210,
"in_payments_offered": 2,
"in_offered_msat": 1001000,
"in_payments_fulfilled": 2,
"in_fulfilled_msat": 1001000,
"out_payments_offered": 23,
"out_offered_msat": 665529798,
"out_payments_fulfilled": 17,
"out_fulfilled_msat": 610508211,
"htlcs": [
{
"direction": "out",
"id": 17,
"id": 18,
"amount_msat": 4000082,
"expiry": 181,
"payment_hash": "paymenthashdelpay30303030303030303030303030303030303030303030303",
Expand Down Expand Up @@ -34330,7 +34330,7 @@
"rows": [
[
"nodeid020202020202020202020202020202020202020202020202020202020202",
490493792,
490493791,
1000000000,
"CHANNELD_NORMAL:Channel ready for use."
]
Expand All @@ -34351,7 +34351,7 @@
"response": {
"rows": [
[
9
10
]
]
}
Expand Down Expand Up @@ -36935,7 +36935,7 @@
"response": {
"payment_preimage": "paymentpreimgxp2020202020202020202020202020202020202020202020202",
"amount_msat": 1000,
"amount_sent_msat": 1000,
"amount_sent_msat": 1001,
"failed_parts": 0,
"successful_parts": 1
}
Expand Down
16 changes: 8 additions & 8 deletions doc/schemas/lightning-bkpr-channelsapy.json
Original file line number Diff line number Diff line change
Expand Up @@ -216,16 +216,16 @@
"channels_apy": [
{
"account": "channelid0120000120000120000120000120000120000120000120000120000",
"routed_out_msat": 1000000,
"routed_in_msat": 510091208,
"routed_out_msat": 1001000,
"routed_in_msat": 510092209,
"lease_fee_paid_msat": 0,
"lease_fee_earned_msat": 0,
"pushed_out_msat": 0,
"pushed_in_msat": 0,
"our_start_balance_msat": 0,
"channel_start_balance_msat": 1000000000,
"fees_out_msat": 0,
"fees_in_msat": 106,
"fees_out_msat": 1,
"fees_in_msat": 107,
"utilization_out": "30.7060%",
"utilization_in": "10.0027%",
"utilization_in_initial": "50.0081%",
Expand Down Expand Up @@ -278,16 +278,16 @@
},
{
"account": "net",
"routed_out_msat": 1011190102,
"routed_in_msat": 510091208,
"routed_out_msat": 1011191102,
"routed_in_msat": 510092209,
"lease_fee_paid_msat": 0,
"lease_fee_earned_msat": 0,
"pushed_out_msat": 0,
"pushed_in_msat": 0,
"our_start_balance_msat": 2000000000,
"channel_start_balance_msat": 3000000000,
"fees_out_msat": 106,
"fees_in_msat": 106,
"fees_out_msat": 107,
"fees_in_msat": 107,
"utilization_out": "33.7060%",
"utilization_out_initial": "53.5591%",
"utilization_in": "13.0027%",
Expand Down
2 changes: 1 addition & 1 deletion doc/schemas/lightning-delforward.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
"method": "delforward",
"params": {
"in_channel": "109x1x1",
"in_htlc_id": 21,
"in_htlc_id": 22,
"status": "failed"
}
},
Expand Down
12 changes: 6 additions & 6 deletions doc/schemas/lightning-listforwards.json
Original file line number Diff line number Diff line change
Expand Up @@ -392,10 +392,10 @@
"response": {
"forwards": [
{
"created_index": 12,
"updated_index": 7,
"created_index": 13,
"updated_index": 8,
"in_channel": "109x1x1",
"in_htlc_id": 19,
"in_htlc_id": 20,
"out_channel": "123x1x1",
"out_htlc_id": 2,
"in_msat": 50000501,
Expand All @@ -407,10 +407,10 @@
"resolved_time": 1738500000
},
{
"created_index": 13,
"updated_index": 8,
"created_index": 14,
"updated_index": 9,
"in_channel": "109x1x1",
"in_htlc_id": 20,
"in_htlc_id": 21,
"out_channel": "123x1x1",
"out_htlc_id": 3,
"in_msat": 50000501,
Expand Down
14 changes: 7 additions & 7 deletions doc/schemas/lightning-listoffers.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,24 +109,24 @@
"response": {
"offers": [
{
"offer_id": "offeridl23000002300000230000023000002300000230000023000002300000",
"offer_id": "offeridl21000002100000210000021000002100000210000021000002100000",
"active": true,
"single_use": false,
"bolt12": "lno1qgsq000bolt230002300023000230002300023000230002300023000230002300023000230002300023000230002300023000230002300023000230002300023000",
"bolt12": "lno1qgsq000bolt210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000",
"used": false
},
{
"offer_id": "offeridl21000002100000210000021000002100000210000021000002100000",
"offer_id": "offeridl22000002200000220000022000002200000220000022000002200000",
"active": true,
"single_use": false,
"bolt12": "lno1qgsq000bolt210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000",
"bolt12": "lno1qgsq000bolt220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000",
"used": false
},
{
"offer_id": "offeridl22000002200000220000022000002200000220000022000002200000",
"offer_id": "offeridl23000002300000230000023000002300000230000023000002300000",
"active": true,
"single_use": false,
"bolt12": "lno1qgsq000bolt220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000",
"bolt12": "lno1qgsq000bolt230002300023000230002300023000230002300023000230002300023000230002300023000230002300023000230002300023000230002300023000",
"used": false
}
]
Expand All @@ -137,7 +137,7 @@
"id": "example:listoffers#2",
"method": "listoffers",
"params": [
"b791f88cebf775853112c30828e116487f4d6c252d669372532b468bc7de8a24"
"offeridl23000002300000230000023000002300000230000023000002300000"
]
},
"response": {
Expand Down
Loading

0 comments on commit 3649a54

Please sign in to comment.