mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-18 22:54:25 +01:00
jsonschema: Formatting json schema and regenerate docs
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
This commit is contained in:
committed by
Rusty Russell
parent
b933b2fa4d
commit
bd3c0ef85c
@@ -42,4 +42,4 @@ RESOURCES
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
|
||||
[comment]: # ( SHA256STAMP:86b47e27413141ffd6e8b79d83ac4a5cc80e5a7e6f5ba4b0df6825e744f9eea7)
|
||||
[comment]: # ( SHA256STAMP:1a64fbaed63ffee21df3d46956a6dca193982b1b135a9b095e68652a720c77ac)
|
||||
|
||||
@@ -50,4 +50,4 @@ RESOURCES
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
|
||||
[comment]: # ( SHA256STAMP:dc9caae8f7ca886630f2685ea972fb1113ffcfd5a5e46c2d212c3c4bbc4e5f44)
|
||||
[comment]: # ( SHA256STAMP:4506a00326dbfa7d44cbf891ad31cbfa66351d852aa0c58735bae03d32938edb)
|
||||
|
||||
@@ -40,4 +40,4 @@ RESOURCES
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
|
||||
[comment]: # ( SHA256STAMP:47419eb2a6d8d83866773a49170f6fa6047de01435d602fa08487c59d87fb93c)
|
||||
[comment]: # ( SHA256STAMP:10d986d91af6315ee755d119cb1b77f306e2360105191116282f3faead350ce8)
|
||||
|
||||
@@ -50,4 +50,4 @@ RESOURCES
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
|
||||
[comment]: # ( SHA256STAMP:eb1ea64cb5e8e16e8e7214f38184b60f2c30d8e7f68db1623fabda665bf1fdec)
|
||||
[comment]: # ( SHA256STAMP:6df0e61e28118786861aacc073e3289268fe1b00837c3fd02a537aa13e5acae5)
|
||||
|
||||
@@ -133,4 +133,4 @@ RESOURCES
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
|
||||
[comment]: # ( SHA256STAMP:db5ba99eb3393f6c55833f0bbace34b3ca504d490a25cb26c53b8790ae325981)
|
||||
[comment]: # ( SHA256STAMP:3540adff8d75123f90598a2c0657924c0d5a53aa26716980f9a59879fcfb1f6b)
|
||||
|
||||
@@ -89,4 +89,4 @@ RESOURCES
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
|
||||
[comment]: # ( SHA256STAMP:306d0966721f20c9a8688f33a030114a5ac095c6218eeb7fafd88fca97b9ee52)
|
||||
[comment]: # ( SHA256STAMP:540ce22f5d912b59732b8b2659e4a950d1344eb926901e26476a246d9eb473b8)
|
||||
|
||||
@@ -74,4 +74,4 @@ RESOURCES
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
|
||||
[comment]: # ( SHA256STAMP:4582bb142f91497a1bc09a10c745d5c03b5540c6c53675426a6c5c5d079420a9)
|
||||
[comment]: # ( SHA256STAMP:ea89ed849c8ad6cac8e1e136999046d1f7589bf176be0e65438174357f87ed11)
|
||||
|
||||
@@ -136,4 +136,4 @@ RESOURCES
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
|
||||
[bolt04]: https://github.com/lightningnetwork/lightning-rfc/blob/master/04-onion-routing.md
|
||||
[comment]: # ( SHA256STAMP:a00e746c41b59c6f34fb4a875cf3bf1cded7101f3e4d6d5b35f577d6aca6387f)
|
||||
[comment]: # ( SHA256STAMP:23e999fedfde74a200c0e6626fa828548b3b60952de30c5885cd63b1922f4508)
|
||||
|
||||
@@ -65,4 +65,4 @@ RESOURCES
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
|
||||
[comment]: # ( SHA256STAMP:fd53ebaf7190249460f62aa509010207dbdbc3ae3c90279f49d3c61d4a621c7d)
|
||||
[comment]: # ( SHA256STAMP:89e1f4926dd83df233b92aae626de776ec3bb2d29887ec29e8cf479ee2a16b85)
|
||||
|
||||
@@ -180,4 +180,4 @@ RESOURCES
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
|
||||
[comment]: # ( SHA256STAMP:7ddb369a73cb0bf8782e2176d0726e13015d9099f71a5ceda39d3e1cb7cd2241)
|
||||
[comment]: # ( SHA256STAMP:cd4a18d07c23b6a995f8db7cac25344e340e512c786b8cf743f56ecceeb84960)
|
||||
|
||||
@@ -69,4 +69,4 @@ RESOURCES
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
|
||||
[comment]: # ( SHA256STAMP:b6cf489b74ca9719c8adc7d17115f8109d61e288e77f8b3bed02ac64d7ede08f)
|
||||
[comment]: # ( SHA256STAMP:d92e1197708fff40f8ad71ccec3c0d8122d8088da1803c02bb042b09dbf2ee33)
|
||||
|
||||
@@ -48,4 +48,4 @@ RESOURCES
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
|
||||
[comment]: # ( SHA256STAMP:b9d59e2d14e91b9440f75fc1577e9f26848821d87d8281e5ca2393adf412fa0d)
|
||||
[comment]: # ( SHA256STAMP:ac7468cf6eadc8ab85216b4d5ecb55a32f3d0bc84180f477151c3748901824de)
|
||||
|
||||
@@ -38,4 +38,4 @@ RESOURCES
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
|
||||
[comment]: # ( SHA256STAMP:cfc042477a22946d8f3a07fbecf543a0063a73b54f955b1fc6adc4e8a294ec32)
|
||||
[comment]: # ( SHA256STAMP:20cca78dbc3681427e1d536ba2f81e0bc05e2b5209edf884137f2ad25e642e84)
|
||||
|
||||
@@ -73,4 +73,4 @@ RESOURCES
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
|
||||
[comment]: # ( SHA256STAMP:63d72da38a7b758ef7fb7f3a35fbb1c48fd3f3c2a5bffef6559fc98dccd77cf6)
|
||||
[comment]: # ( SHA256STAMP:cd3b009a6ef0c220ca21c6d8e3a5716ca2080997016cf00a2e26defc03cfac73)
|
||||
|
||||
@@ -101,4 +101,4 @@ RESOURCES
|
||||
---------
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
[comment]: # ( SHA256STAMP:2fe7a92ce837282fc473f8f56b2040910fb1dcf8d0d7768fda5695dd5a5b4f01)
|
||||
[comment]: # ( SHA256STAMP:af8299cd87efe8254969069851d99bffffa033013f4a8b9fc94cdab6cfa0ff78)
|
||||
|
||||
@@ -74,4 +74,4 @@ RESOURCES
|
||||
---------
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
[comment]: # ( SHA256STAMP:75f31b4614cfb2083d7f5c5de17d0892aae8504434da600132668b326fa4e0a4)
|
||||
[comment]: # ( SHA256STAMP:a7dbc87d991d1040283b5fbfe732fb9bc7c81efad3aa8b5bfb11ffe59ed3f069)
|
||||
|
||||
@@ -59,4 +59,4 @@ RESOURCES
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
|
||||
[comment]: # ( SHA256STAMP:86b47e27413141ffd6e8b79d83ac4a5cc80e5a7e6f5ba4b0df6825e744f9eea7)
|
||||
[comment]: # ( SHA256STAMP:1a64fbaed63ffee21df3d46956a6dca193982b1b135a9b095e68652a720c77ac)
|
||||
|
||||
@@ -119,4 +119,4 @@ RESOURCES
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
|
||||
[comment]: # ( SHA256STAMP:aa3360c535d2f7e42adead8e78a290a21c5bd88d412f9afa53dfe7388c7edeab)
|
||||
[comment]: # ( SHA256STAMP:8fe321fcba7b3a471f4f83f98638dbc820fc0abe91f3d53ca55fdb0222e17a8d)
|
||||
|
||||
@@ -88,4 +88,4 @@ RESOURCES
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
|
||||
[comment]: # ( SHA256STAMP:5820acc18bb293035f040e2079363cd2ae03fd31be0c4de78b957502fbd31b4e)
|
||||
[comment]: # ( SHA256STAMP:e0033e40d86355e51abb48472f802a9a713ed5b2725828467515f9541207dac5)
|
||||
|
||||
@@ -113,4 +113,4 @@ RESOURCES
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
|
||||
[comment]: # ( SHA256STAMP:43dfc7b25dad697f3589492a5bdcd895b8edbc2d39e9edb6a9c18313fac9ca50)
|
||||
[comment]: # ( SHA256STAMP:4a8d7c524cfe257f961531929d14d3589efb6ecd182a33e92aade30af90406f8)
|
||||
|
||||
@@ -59,4 +59,4 @@ RESOURCES
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
|
||||
[comment]: # ( SHA256STAMP:9c612f1a2569f40743dff555768e2138ce31f7794eeec06d5ff834461be2e45a)
|
||||
[comment]: # ( SHA256STAMP:d433fc29ad064a09c92160038973c7161bb56947166a2701c0d5d278e276917c)
|
||||
|
||||
@@ -61,4 +61,4 @@ RESOURCES
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
|
||||
[comment]: # ( SHA256STAMP:29c1e2bbc878ffb6b7e41f552afc608af58e335a329c79d09680e8e2995ff0d5)
|
||||
[comment]: # ( SHA256STAMP:6fad848d20b3e0a6085790085b0aa91d24cc33e4b0127fc40521ce9c102182d1)
|
||||
|
||||
@@ -79,4 +79,4 @@ RESOURCES
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
|
||||
[comment]: # ( SHA256STAMP:8d7a9f3cf343f7c72148a5d0b1aa0217cd9ef91e8c618dc2ff1077b15b9f25d4)
|
||||
[comment]: # ( SHA256STAMP:eab533b02f2bffecef27724078461ed25f3a9b729c2432b80bbdc35aea670ca2)
|
||||
|
||||
@@ -146,4 +146,4 @@ RESOURCES
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
|
||||
[comment]: # ( SHA256STAMP:ed47e802b2e61f46461f5b65312c8c4de40e64a0970d1d745e59d63201dbfae8)
|
||||
[comment]: # ( SHA256STAMP:01be8ecebe9025991de323bde9bc41591a9cde1b106fa01fc328451d31eb9a70)
|
||||
|
||||
@@ -115,4 +115,4 @@ RESOURCES
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
|
||||
[comment]: # ( SHA256STAMP:fd84205c50f43a2e55b0adb1c4d0709cd5d909c211148b005674e8e1afffba53)
|
||||
[comment]: # ( SHA256STAMP:635cc321d158bcdb3ca24f13c9955cc9b867e34247c1cf3d91edbbe21eb06a48)
|
||||
|
||||
@@ -117,4 +117,4 @@ RESOURCES
|
||||
---------
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
[comment]: # ( SHA256STAMP:50c41a77a5f440cc22e5df9e3748e4280cd4508469887382690c580f10bc5af4)
|
||||
[comment]: # ( SHA256STAMP:8374064ca0f95ab0c20d3edaf7f3742316af98f4d1e0e8de88922524f1ea3ce5)
|
||||
|
||||
@@ -90,4 +90,4 @@ RESOURCES
|
||||
---------
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
[comment]: # ( SHA256STAMP:155507c9105521bb4c113232d9bc6fd585cce269303ee8e7e27ea803ca8405cf)
|
||||
[comment]: # ( SHA256STAMP:963fc75819ffb63271f25e31f30a6fe54457803d8bf296556589f76874fb39c0)
|
||||
|
||||
@@ -309,4 +309,4 @@ RESOURCES
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
|
||||
[comment]: # ( SHA256STAMP:a297c66baaf5dd18528e4e8bc1bac3348536fed7be474f1c26475b88198a2c1e)
|
||||
[comment]: # ( SHA256STAMP:0c1f92ff24ae0277fed3cf3fd41f2f45e4a57558a4b61fc51a1a698b4f3d8f01)
|
||||
|
||||
@@ -91,4 +91,4 @@ RESOURCES
|
||||
* Main web site: <https://github.com/ElementsProject/lightning>
|
||||
|
||||
|
||||
[comment]: # ( SHA256STAMP:41cce7390624f69aeac9118887ac751825087e0ef792cff8d5197500af9539ba)
|
||||
[comment]: # ( SHA256STAMP:e54898c6b950be6242a641212b71b6ce33ea31068f3572cd42be5d2b87365eb7)
|
||||
|
||||
@@ -67,4 +67,4 @@ RESOURCES
|
||||
---------
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
[comment]: # ( SHA256STAMP:2e41227e559aac229adc2cab0f0a2e591ed0ad33218bfe8647ce4022f25332fd)
|
||||
[comment]: # ( SHA256STAMP:262fdbfc6ea8142c57637e5c48a9536b0e8577ef823ebfc830cc0c14d56fb08d)
|
||||
|
||||
@@ -113,4 +113,4 @@ RESOURCES
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
|
||||
[comment]: # ( SHA256STAMP:a65026d45e3a70b98c97d838c08748f873aeab20321d930de17fb45cf5022848)
|
||||
[comment]: # ( SHA256STAMP:f7d82473482e5454fc03641fddcfa97984e6a597e7ad377ced2cbed1512e91ed)
|
||||
|
||||
@@ -114,4 +114,4 @@ RESOURCES
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
|
||||
[comment]: # ( SHA256STAMP:1c931f2ff49a169011ca6c2abde58281570a1db0dfbdca829105999723fe8bb8)
|
||||
[comment]: # ( SHA256STAMP:bf507985544575c4ef2fe194fda6a693378cb8ab3bfb30ca7a7c066be271be29)
|
||||
|
||||
@@ -77,4 +77,4 @@ Lightning RFC site
|
||||
- BOLT \#7:
|
||||
<https://github.com/lightningnetwork/lightning-rfc/blob/master/07-routing-gossip.md>
|
||||
|
||||
[comment]: # ( SHA256STAMP:ab173bcd769b6abd351a670e63be6adfbdfb0c24abcef157c0912b28f86d2250)
|
||||
[comment]: # ( SHA256STAMP:c2ebd6407a66ad5f67b5fd933552a468e306b1fed7868f92985c24e321861fae)
|
||||
|
||||
8
doc/lightning-listconfigs.7
generated
8
doc/lightning-listconfigs.7
generated
@@ -92,6 +92,8 @@ On success, an object is returned, containing:
|
||||
.IP \[bu]
|
||||
\fBexperimental-shutdown-wrong-funding\fR (boolean, optional): \fBexperimental-shutdown-wrong-funding\fR field from config or cmdline, or default
|
||||
.IP \[bu]
|
||||
\fBexperimental-websocket-port\fR (u16, optional): \fBexperimental-websocket-port\fR field from config or cmdline, or default
|
||||
.IP \[bu]
|
||||
\fBrgb\fR (hex, optional): \fBrgb\fR field from config or cmdline, or default (always 6 characters)
|
||||
.IP \[bu]
|
||||
\fBalias\fR (string, optional): \fBalias\fR field from config or cmdline, or default
|
||||
@@ -120,6 +122,8 @@ On success, an object is returned, containing:
|
||||
.IP \[bu]
|
||||
\fBmax-concurrent-htlcs\fR (u32, optional): \fBmax-concurrent-htlcs\fR field from config or cmdline, or default
|
||||
.IP \[bu]
|
||||
\fBmax-dust-htlc-exposure-msat\fR (msat, optional): \fBmax-dust-htlc-exposure-mast\fR field from config or cmdline, or default
|
||||
.IP \[bu]
|
||||
\fBmin-capacity-sat\fR (u64, optional): \fBmin-capacity-sat\fR field from config or cmdline, or default
|
||||
.IP \[bu]
|
||||
\fBaddr\fR (string, optional): \fBaddr\fR field from config or cmdline (can be more than one)
|
||||
@@ -152,6 +156,8 @@ On success, an object is returned, containing:
|
||||
.IP \[bu]
|
||||
\fBsubdaemon\fR (string, optional): \fBsubdaemon\fR fields from config or cmdline if any (can be more than one)
|
||||
.IP \[bu]
|
||||
\fBfetchinvoice-noconnect\fR (boolean, optional): \fBfeatchinvoice-noconnect\fR fileds from config or cmdline, or default
|
||||
.IP \[bu]
|
||||
\fBtor-service-password\fR (string, optional): \fBtor-service-password\fR field from config or cmdline, if any
|
||||
|
||||
.RE
|
||||
@@ -270,4 +276,4 @@ Vincenzo Palazzo \fI<vincenzo.palazzo@protonmail.com\fR> wrote the initial versi
|
||||
|
||||
Main web site: \fIhttps://github.com/ElementsProject/lightning\fR
|
||||
|
||||
\" SHA256STAMP:b6e48314de5642ec61a3e2c989ac0197630c2a3c0e8e6d86020b597679049400
|
||||
\" SHA256STAMP:37b3fd1b2c5b2c903c25579f96d0bb4116955f3aebbf6bbb97f8a62e352cf440
|
||||
|
||||
@@ -208,4 +208,4 @@ RESOURCES
|
||||
---------
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
[comment]: # ( SHA256STAMP:71a911b67203f75e7c1f717be611f505713fce4e8113fc4a84c89bc50730d2bf)
|
||||
[comment]: # ( SHA256STAMP:59b197ad256bd701744ed5aa9f663166e48ef6320cf3a1538af0bd855daa3186)
|
||||
|
||||
@@ -46,4 +46,4 @@ RESOURCES
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
|
||||
[comment]: # ( SHA256STAMP:052a5b86380b78fe292fae2f0378b4bd3d200f838a6ad36e0ee8bed619cb9d1c)
|
||||
[comment]: # ( SHA256STAMP:1e5d31c36f5aa2d2cb6bedb07a94b18880ba95529885c104b177d91bf251d420)
|
||||
|
||||
@@ -58,4 +58,4 @@ RESOURCES
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
|
||||
[comment]: # ( SHA256STAMP:8d5189bf6f515520f1acd225f372e1123378eab01b032313b5956089a635c2f7)
|
||||
[comment]: # ( SHA256STAMP:abfaaa00817734d8acb77d02d7c024112c90605a8f93a134971a617ab4d383f9)
|
||||
|
||||
@@ -37,7 +37,7 @@ On success, an object is returned, containing:
|
||||
- **reserved_to_block** (u32): Block height where reservation will expire
|
||||
- **channels** (array of objects):
|
||||
- **peer_id** (pubkey): the peer with which the channel is opened
|
||||
- **our_amount_msat** (msat): available satoshis on our node's end of the channel
|
||||
- **our_amount_msat** (msat): available satoshis on our node’s end of the channel
|
||||
- **amount_msat** (msat): total channel value
|
||||
- **funding_txid** (txid): funding transaction id
|
||||
- **funding_output** (u32): the 0-based index of the output in the funding transaction
|
||||
@@ -67,4 +67,4 @@ RESOURCES
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
|
||||
[comment]: # ( SHA256STAMP:26ae5f60c67eb3a481191ccf109b09ded7dc14d2881898b9f0173ef05a2ef47b)
|
||||
[comment]: # ( SHA256STAMP:7e2ee47b9e35c222ee8b671745990800feaba771cf60fbe8390c2afd040e878f)
|
||||
|
||||
@@ -56,4 +56,4 @@ RESOURCES
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
|
||||
[comment]: # ( SHA256STAMP:5fc525b5436359e2271f4131a626bcd1654792d980e478738a0564dcedb58761)
|
||||
[comment]: # ( SHA256STAMP:3dc5d5b8f7796d29e0d174d96e93915cbc7131b173a1547de022e021c55e8db6)
|
||||
|
||||
@@ -95,4 +95,4 @@ RESOURCES
|
||||
---------
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
[comment]: # ( SHA256STAMP:f9e1f4655b416c5e60279cf11a832bc4c652f503e48095dc3cf39deee5f0c769)
|
||||
[comment]: # ( SHA256STAMP:4a5cfb1cf3d7fd77e49d6e7e369a9a6d374345b011d7db2fa9b4062156869ca4)
|
||||
|
||||
@@ -80,4 +80,4 @@ RESOURCES
|
||||
---------
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
[comment]: # ( SHA256STAMP:12402a6d1f50df80e6efa5f10de38911385e2e5386e67d38d15b7045d661c78a)
|
||||
[comment]: # ( SHA256STAMP:5cae5e0e423e66b02602ecc433de9686b16630979e794944059c65a100f54f9e)
|
||||
|
||||
@@ -56,4 +56,4 @@ RESOURCES
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
|
||||
[comment]: # ( SHA256STAMP:7dd58bcc0886cc981dff1534fac6753a4554c801a6c03e8ed7295166fcd5f89d)
|
||||
[comment]: # ( SHA256STAMP:6ffbb1273de04f356cf79dab9a988ab030eee3317cb22e10d12d1c672249fc67)
|
||||
|
||||
@@ -376,4 +376,4 @@ Main web site: <https://github.com/ElementsProject/lightning> Lightning
|
||||
RFC site (BOLT \#9):
|
||||
<https://github.com/lightningnetwork/lightning-rfc/blob/master/09-features.md>
|
||||
|
||||
[comment]: # ( SHA256STAMP:7d11de5d2ff844d6f9e4b8093bd135c7a38d17f159ba7aca4821c5365ca11e71)
|
||||
[comment]: # ( SHA256STAMP:956a13291bebc808bf1505a5d2030280aca441c5ca9991a6baae70c8715429a4)
|
||||
|
||||
@@ -60,4 +60,4 @@ RESOURCES
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
|
||||
[comment]: # ( SHA256STAMP:4a3ec9bd1d5b1959856d3822245e94793712d23f82f5909a415125810bdcd538)
|
||||
[comment]: # ( SHA256STAMP:1dfcb495e0004b9dadffd7f69b58275bf9168c9f4007675b390ebbaea07ffde6)
|
||||
|
||||
@@ -104,4 +104,4 @@ RESOURCES
|
||||
---------
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
[comment]: # ( SHA256STAMP:f170fb4e2ab3bf44d6159f9bcf5445102db3774f19cb61e7b8c68acfaac51688)
|
||||
[comment]: # ( SHA256STAMP:ba0624377601e6e90c2ca90b709fd076f3ed0f2b813f73553ec6b935eeec54a1)
|
||||
|
||||
@@ -158,4 +158,4 @@ RESOURCES
|
||||
---------
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
[comment]: # ( SHA256STAMP:acad87896396156dff379973010ed1243af8bbb3ee5cfcc052ca177e0725bce3)
|
||||
[comment]: # ( SHA256STAMP:a6358ad8d361ae4104c727e6b8ab342923a613b78d5f13552794f827a1125e8b)
|
||||
|
||||
@@ -71,4 +71,4 @@ RESOURCES
|
||||
---------
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
[comment]: # ( SHA256STAMP:0b374dbb074a5eed153d6a153526c20bd1681f67245dfc42a8ec3a2f1510c6b5)
|
||||
[comment]: # ( SHA256STAMP:044cdcd69e6ece931b6d0f9b25dd842fd456ee479725e610c03694210256583f)
|
||||
|
||||
@@ -55,4 +55,4 @@ RESOURCES
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
|
||||
[comment]: # ( SHA256STAMP:af64240aaa930f899eda7b146a5cdc22abb7572d20ff6f9012097a84b3affeaa)
|
||||
[comment]: # ( SHA256STAMP:1a7b5336bdb0dbc93c9e160bb36c20c0d0d3fb908bdd85a84499fbc99680f3a6)
|
||||
|
||||
@@ -102,4 +102,4 @@ RESOURCES
|
||||
---------
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
[comment]: # ( SHA256STAMP:86b47e27413141ffd6e8b79d83ac4a5cc80e5a7e6f5ba4b0df6825e744f9eea7)
|
||||
[comment]: # ( SHA256STAMP:1a64fbaed63ffee21df3d46956a6dca193982b1b135a9b095e68652a720c77ac)
|
||||
|
||||
@@ -134,4 +134,4 @@ RESOURCES
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
|
||||
[comment]: # ( SHA256STAMP:c35ff51ba9c0f373c22cbf42504d1328299e5af0e37e7ae3f80324ff2c10100a)
|
||||
[comment]: # ( SHA256STAMP:4bbcec9c30f77239db780945965ad5cccf702365c3e592921fac57ed6bfd080f)
|
||||
|
||||
@@ -99,4 +99,4 @@ RESOURCES
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
|
||||
[comment]: # ( SHA256STAMP:99a4e1cdf68ec7bcf05b9d6b088b8a84f01d085fae5a1565192f488ff8484570)
|
||||
[comment]: # ( SHA256STAMP:fb60c3239f3d47b421f842304263ec73f864a307b77e39265653c3e85880a483)
|
||||
|
||||
@@ -54,4 +54,4 @@ RESOURCES
|
||||
---------
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
[comment]: # ( SHA256STAMP:898dd91de80eb022badf10bb572af5ad9211f17364207a1837f15dd0bc252eca)
|
||||
[comment]: # ( SHA256STAMP:78d6fbc1044e3a499ca618ea71845aa04043f46c169f4f50763644c7a3e35572)
|
||||
|
||||
@@ -80,4 +80,4 @@ RESOURCES
|
||||
---------
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
[comment]: # ( SHA256STAMP:4c15f6f42116769c12494154266359e025753150ec7862937c2864fd99dd3d45)
|
||||
[comment]: # ( SHA256STAMP:0b3c4fc19cdad9162b91585c4af2dc5293ecd8925628d10b612cd777dcdedeea)
|
||||
|
||||
@@ -102,4 +102,4 @@ RESOURCES
|
||||
---------
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
[comment]: # ( SHA256STAMP:d37b879bb07c8a29c3733620792bff777d8316e22cea9abd38efca9585a790e0)
|
||||
[comment]: # ( SHA256STAMP:bd405699ff27104ccc97dec81be9de1e7459c91333d78616268e4e9c198ee5af)
|
||||
|
||||
@@ -66,4 +66,4 @@ RESOURCES
|
||||
---------
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
[comment]: # ( SHA256STAMP:d0d4435e0b0885f8f3685ea381cf0b020db2ff1ea5ca44c7d0d09e59d0419cc7)
|
||||
[comment]: # ( SHA256STAMP:d85297e1ab0b3bbf206082c479dcfdc6469461e531321ce5576c6ff7f296d481)
|
||||
|
||||
@@ -71,4 +71,4 @@ RESOURCES
|
||||
---------
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
[comment]: # ( SHA256STAMP:a8f8b9f3ad51bea47548602a73c4e0844b8ed1493054a226ec97397ccef25aa4)
|
||||
[comment]: # ( SHA256STAMP:22ff9536e97ea194d9d9ba10a4f3244a0818a1605502b7ed25241a3a97f041d1)
|
||||
|
||||
@@ -43,4 +43,4 @@ RESOURCES
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
|
||||
[comment]: # ( SHA256STAMP:a7bb800571a9ae47b3fb417ef02ce62de8afb2a710c45961b4871e270b4560d9)
|
||||
[comment]: # ( SHA256STAMP:045cab2977c7fcc12ed5267d4007a704028a00bc07f90265ed1cd7a46a414e63)
|
||||
|
||||
@@ -143,4 +143,4 @@ RESOURCES
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
|
||||
[comment]: # ( SHA256STAMP:1c931f2ff49a169011ca6c2abde58281570a1db0dfbdca829105999723fe8bb8)
|
||||
[comment]: # ( SHA256STAMP:bf507985544575c4ef2fe194fda6a693378cb8ab3bfb30ca7a7c066be271be29)
|
||||
|
||||
@@ -69,4 +69,4 @@ RESOURCES
|
||||
---------
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
[comment]: # ( SHA256STAMP:aa91cd20bea0156c4b2b2ca377945c383ad3ae06d31b972fbce9fc1999cfbc70)
|
||||
[comment]: # ( SHA256STAMP:a78a1d58cfe1fbf654ee58aad20ffcaa075f63bd8774c64be5ec28857e95ae3b)
|
||||
|
||||
@@ -62,4 +62,4 @@ RESOURCES
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
|
||||
[comment]: # ( SHA256STAMP:418af4df95dc56c0d1bf1d42dded0a5fcbc875800a603d80ea6d18bb2ff0b531)
|
||||
[comment]: # ( SHA256STAMP:a07c71d232c39c0b959d07b9391d107413841753b67443d5f3698e1afd9cd2e4)
|
||||
|
||||
@@ -63,4 +63,4 @@ RESOURCES
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
|
||||
[comment]: # ( SHA256STAMP:77e6483379efd12bde3532e3d86a4305c83c7ab31819eef4b1ec0a993f6d24bc)
|
||||
[comment]: # ( SHA256STAMP:a675e16a820eca4da07743ace010deaa12aa51d2c3d73d4db6b32ffb8ee65f7a)
|
||||
|
||||
@@ -68,4 +68,4 @@ RESOURCES
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
|
||||
[comment]: # ( SHA256STAMP:ebaf8137d91cab5c0899dc749079ab5f1bbe8df998c155b41496b80820128af3)
|
||||
[comment]: # ( SHA256STAMP:f07e2df415b1ec2ad7b19acdd2909616d7aa54bb3c5ae69359d4c8b87ee839bf)
|
||||
|
||||
@@ -78,4 +78,4 @@ RESOURCES
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
|
||||
[comment]: # ( SHA256STAMP:4788ac272caee6e3dc8200cfbaf9dafffd2d10880b33f3d06e067767c1e0eee8)
|
||||
[comment]: # ( SHA256STAMP:b4cf6c380589a566c695e96f3668294b4411a57c7724aa68b293bac9e2194462)
|
||||
|
||||
@@ -127,4 +127,4 @@ RESOURCES
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
|
||||
[bolt04]: https://github.com/lightningnetwork/lightning-rfc/blob/master/04-onion-routing.md
|
||||
[comment]: # ( SHA256STAMP:aeade675a3e42ffc0b7be2bfefe429fdc5b52e6f4000687db90dfffd5b0b588d)
|
||||
[comment]: # ( SHA256STAMP:d588d85b79f709a57441479504ee8761331c852284ebb8effeab91a557437517)
|
||||
|
||||
@@ -50,4 +50,4 @@ Main web site: <https://github.com/ElementsProject/lightning>
|
||||
|
||||
[bolt04]: https://github.com/lightningnetwork/lightning-rfc/blob/master/04-onion-routing.md
|
||||
|
||||
[comment]: # ( SHA256STAMP:9125b71f093569c584c116210e488f11331029fca930dada6c040009daeb09f8)
|
||||
[comment]: # ( SHA256STAMP:39a66bd8e28db8780d7b1365372f7cc638b32a80bb5515657d381b4520f06901)
|
||||
|
||||
@@ -127,4 +127,4 @@ RESOURCES
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
|
||||
[comment]: # ( SHA256STAMP:f7572da509a442c08f73460c042d8e2aa950747ce175ebb9b89d32b88add6de6)
|
||||
[comment]: # ( SHA256STAMP:44540ace609ccfa7b023526d7a92ba7cf4a6058f3ae2124c20fa65b92137e41b)
|
||||
|
||||
@@ -65,4 +65,4 @@ RESOURCES
|
||||
---------
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
[comment]: # ( SHA256STAMP:0b374dbb074a5eed153d6a153526c20bd1681f67245dfc42a8ec3a2f1510c6b5)
|
||||
[comment]: # ( SHA256STAMP:044cdcd69e6ece931b6d0f9b25dd842fd456ee479725e610c03694210256583f)
|
||||
|
||||
@@ -81,4 +81,4 @@ RESOURCES
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
|
||||
[comment]: # ( SHA256STAMP:1f040269076ac47e5ed973225bfddbcffdec83dd91f6df143d29bcb981de04ed)
|
||||
[comment]: # ( SHA256STAMP:2245fde48f1858886e0f484cb3d96331fef9c41b0081ae51478d912189c38907)
|
||||
|
||||
@@ -41,4 +41,4 @@ RESOURCES
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
|
||||
[comment]: # ( SHA256STAMP:54ed4ed0f8e10de232b82793ffa6a1794ef632f8fd315deeb276803f6f2d639d)
|
||||
[comment]: # ( SHA256STAMP:028ade4d84a65b0438347897f4ff5cfc99b5f22d8320b606c9630a1f9da16ef2)
|
||||
|
||||
@@ -71,4 +71,4 @@ RESOURCES
|
||||
---------
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
[comment]: # ( SHA256STAMP:d306b6b0c64e9739bf6a3c6751137f23da6300c6cd8abc3fcd7ebfae9caae732)
|
||||
[comment]: # ( SHA256STAMP:5f7bc2a5f8b6fe72bf70caa3ff14d6f1260c2d366becbc7798ee3bb0374e0b1b)
|
||||
|
||||
@@ -42,4 +42,4 @@ RESOURCES
|
||||
---------
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
[comment]: # ( SHA256STAMP:42c2ed4003d088c2b42260d7c1098ae81cfe2f91fb6fce3a7dffe6b8729a5181)
|
||||
[comment]: # ( SHA256STAMP:bbdf7415bc7de519ca944c28326c334d9f014f4c987d7e3017ac628c6d1c55ec)
|
||||
|
||||
@@ -44,4 +44,4 @@ RESOURCES
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
|
||||
[comment]: # ( SHA256STAMP:1edb3d89e7c231cae344baf6bacf658bbd104c751b1e7dc6a32bb83d102a98eb)
|
||||
[comment]: # ( SHA256STAMP:ced935d8d9047fe1dfb746fc72aafc5b99a8b7b639f854a56478884e5205ffb9)
|
||||
|
||||
@@ -84,4 +84,4 @@ RESOURCES
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
|
||||
[comment]: # ( SHA256STAMP:3b18b65b58bce0ce6fcacd49d86b6da2b59828c4b3474d1de0f6ab76d810044c)
|
||||
[comment]: # ( SHA256STAMP:f16a12290870442316c8f3fb552627637610ab6a7cfed9082089040c78dce2be)
|
||||
|
||||
@@ -44,4 +44,4 @@ RESOURCES
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
|
||||
[comment]: # ( SHA256STAMP:f97eb686421f6c9636a97100787cb3af3b482e07434d9e2b158ed09f06335f32)
|
||||
[comment]: # ( SHA256STAMP:5bf27f1cbcb247cde5c5570f90be77fc7e8b3e8c80622e75c31e6ac445f2b910)
|
||||
|
||||
@@ -53,4 +53,4 @@ RESOURCES
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
|
||||
[comment]: # ( SHA256STAMP:4239256a270c707e6beb2da43fb5069ebc59affb9f22df8fc67c19229aca3f44)
|
||||
[comment]: # ( SHA256STAMP:f7aca3e1a40d66e07986cb9e98033e815c4eea2237dc75664a6c47951a8132ed)
|
||||
|
||||
@@ -100,4 +100,4 @@ RESOURCES
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
|
||||
[comment]: # ( SHA256STAMP:3be73c6c58be24510cfa792ad428990664ebf1e01d6cdb8c245607aea376d79a)
|
||||
[comment]: # ( SHA256STAMP:3c3734a0eb4c2fabf216e11e729ad582cb1fb91dbcb8d2bfc44d56f3206f20fc)
|
||||
|
||||
@@ -73,4 +73,4 @@ RESOURCES
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
|
||||
[comment]: # ( SHA256STAMP:53448470413976900d69dfd360b36e16b893b2db2bb959ee06bdfc7a98e58d7b)
|
||||
[comment]: # ( SHA256STAMP:33df5fb9bcbcb6d2240d0d18b970b2300414aae36b81fb276fcedfc21480d22f)
|
||||
|
||||
@@ -38,4 +38,4 @@ RESOURCES
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
|
||||
[comment]: # ( SHA256STAMP:bf58d803775bc97144d92449d85de21189fa00fe9cec22bd64bc7cde87ebfe06)
|
||||
[comment]: # ( SHA256STAMP:98f9993935e2820e8e407d1743764346ca6fa1b72228cc82827617a2ed3f3c80)
|
||||
|
||||
@@ -58,4 +58,4 @@ RESOURCES
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
|
||||
[comment]: # ( SHA256STAMP:53448470413976900d69dfd360b36e16b893b2db2bb959ee06bdfc7a98e58d7b)
|
||||
[comment]: # ( SHA256STAMP:33df5fb9bcbcb6d2240d0d18b970b2300414aae36b81fb276fcedfc21480d22f)
|
||||
|
||||
@@ -101,4 +101,4 @@ RESOURCES
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
|
||||
[comment]: # ( SHA256STAMP:c40814f929fb6d741e0724ba75f0833e52fae1f03ed2d1fac9a8ba1186ceabab)
|
||||
[comment]: # ( SHA256STAMP:3f89cf80acc1e9363509f0a053a617f8b381790823f8cd05fa6c708eb72fcc7e)
|
||||
|
||||
@@ -73,4 +73,4 @@ RESOURCES
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
|
||||
[comment]: # ( SHA256STAMP:10741263b2d8890b368d48ab7be8d2fc9bd149afa73c5ba7022dfb6903f0135d)
|
||||
[comment]: # ( SHA256STAMP:cef8d48a59313019e671900621426733d47be2f0c22d5cb2d06ce0b9b7d43592)
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
}
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {}
|
||||
}
|
||||
|
||||
@@ -1,41 +1,48 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"additionalProperties": true,
|
||||
"required": [ "enabled" ],
|
||||
"properties": {
|
||||
"enabled": {
|
||||
"type": "boolean",
|
||||
"description": "whether invoice autocleaning is active"
|
||||
}
|
||||
},
|
||||
"if": {
|
||||
"properties": {
|
||||
"enabled": {
|
||||
"type": "boolean",
|
||||
"enum": [ true ]
|
||||
}
|
||||
}
|
||||
},
|
||||
"then": {
|
||||
"additionalProperties": false,
|
||||
"required": [ "expired_by", "cycle_seconds" ],
|
||||
"properties": {
|
||||
"enabled": { },
|
||||
"expired_by": {
|
||||
"type": "u64",
|
||||
"description": "how long an invoice must be expired (seconds) before we delete it"
|
||||
},
|
||||
"cycle_seconds": {
|
||||
"type": "u64",
|
||||
"description": "how long an invoice must be expired (seconds) before we delete it"
|
||||
}
|
||||
}
|
||||
},
|
||||
"else": {
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"enabled": { }
|
||||
}
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"additionalProperties": true,
|
||||
"required": [
|
||||
"enabled"
|
||||
],
|
||||
"properties": {
|
||||
"enabled": {
|
||||
"type": "boolean",
|
||||
"description": "whether invoice autocleaning is active"
|
||||
}
|
||||
},
|
||||
"if": {
|
||||
"properties": {
|
||||
"enabled": {
|
||||
"type": "boolean",
|
||||
"enum": [
|
||||
true
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"then": {
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"expired_by",
|
||||
"cycle_seconds"
|
||||
],
|
||||
"properties": {
|
||||
"enabled": {},
|
||||
"expired_by": {
|
||||
"type": "u64",
|
||||
"description": "how long an invoice must be expired (seconds) before we delete it"
|
||||
},
|
||||
"cycle_seconds": {
|
||||
"type": "u64",
|
||||
"description": "how long an invoice must be expired (seconds) before we delete it"
|
||||
}
|
||||
}
|
||||
},
|
||||
"else": {
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"enabled": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,12 +1,14 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"command_to_check": {
|
||||
"type": "string",
|
||||
"description": "the *command_to_check* argument"
|
||||
}
|
||||
},
|
||||
"required": [ "command_to_check" ]
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"command_to_check": {
|
||||
"type": "string",
|
||||
"description": "the *command_to_check* argument"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"command_to_check"
|
||||
]
|
||||
}
|
||||
|
||||
@@ -1,56 +1,66 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"required": [ "verified" ],
|
||||
"additionalProperties": true,
|
||||
"properties": {
|
||||
"verified": {
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"verified"
|
||||
],
|
||||
"additionalProperties": true,
|
||||
"properties": {
|
||||
"verified": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the signature was valid"
|
||||
}
|
||||
},
|
||||
"allOf": [
|
||||
{
|
||||
"if": {
|
||||
"properties": {
|
||||
"verified": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the signature was valid"
|
||||
"enum": [
|
||||
true
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"then": {
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"pubkey"
|
||||
],
|
||||
"properties": {
|
||||
"verified": {},
|
||||
"pubkey": {
|
||||
"type": "pubkey",
|
||||
"description": "the *pubkey* parameter, or the pubkey found by looking for known nodes"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"allOf": [
|
||||
{
|
||||
"if": {
|
||||
"properties": {
|
||||
"verified": {
|
||||
"type": "boolean",
|
||||
"enum": [ true ]
|
||||
}
|
||||
}
|
||||
},
|
||||
"then": {
|
||||
"additionalProperties": false,
|
||||
"required": [ "pubkey" ],
|
||||
"properties": {
|
||||
"verified": { },
|
||||
"pubkey": {
|
||||
"type": "pubkey",
|
||||
"description": "the *pubkey* parameter, or the pubkey found by looking for known nodes"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": {
|
||||
"properties": {
|
||||
"verified": {
|
||||
"type": "boolean",
|
||||
"enum": [ false ]
|
||||
}
|
||||
}
|
||||
},
|
||||
"then": {
|
||||
"additionalProperties": false,
|
||||
"required": [ "pubkey" ],
|
||||
"properties": {
|
||||
"verified": { },
|
||||
"pubkey": {
|
||||
"type": "pubkey",
|
||||
"description": "the *pubkey* (if any) which could have signed this; this is usually not useful!"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
{
|
||||
"if": {
|
||||
"properties": {
|
||||
"verified": {
|
||||
"type": "boolean",
|
||||
"enum": [
|
||||
false
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"then": {
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"pubkey"
|
||||
],
|
||||
"properties": {
|
||||
"verified": {},
|
||||
"pubkey": {
|
||||
"type": "pubkey",
|
||||
"description": "the *pubkey* (if any) which could have signed this; this is usually not useful!"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -1,41 +1,53 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"required": [ "type" ],
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [ "mutual", "unilateral", "unopened" ],
|
||||
"description": "Whether we successfully negotiated a mutual close, closed without them, or discarded not-yet-opened channel"
|
||||
}
|
||||
},
|
||||
"if": {
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [ "mutual", "unilateral" ]
|
||||
}
|
||||
}
|
||||
},
|
||||
"then": {
|
||||
"additionalProperties": false,
|
||||
"required": [ "tx", "txid" ],
|
||||
"properties": {
|
||||
"type": { },
|
||||
"tx": {
|
||||
"type": "hex",
|
||||
"description": "the raw bitcoin transaction used to close the channel (if it was open)"
|
||||
},
|
||||
"txid": {
|
||||
"type": "txid",
|
||||
"description": "the transaction id of the *tx* field"
|
||||
}
|
||||
}
|
||||
},
|
||||
"else": {
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"type": { }
|
||||
}
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"type"
|
||||
],
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"mutual",
|
||||
"unilateral",
|
||||
"unopened"
|
||||
],
|
||||
"description": "Whether we successfully negotiated a mutual close, closed without them, or discarded not-yet-opened channel"
|
||||
}
|
||||
},
|
||||
"if": {
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"mutual",
|
||||
"unilateral"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"then": {
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"tx",
|
||||
"txid"
|
||||
],
|
||||
"properties": {
|
||||
"type": {},
|
||||
"tx": {
|
||||
"type": "hex",
|
||||
"description": "the raw bitcoin transaction used to close the channel (if it was open)"
|
||||
},
|
||||
"txid": {
|
||||
"type": "txid",
|
||||
"description": "the transaction id of the *tx* field"
|
||||
}
|
||||
}
|
||||
},
|
||||
"else": {
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"type": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,82 +1,110 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [ "id", "features", "direction", "address" ],
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "pubkey",
|
||||
"description": "the peer we connected to"
|
||||
},
|
||||
"features": {
|
||||
"type": "hex",
|
||||
"description": "BOLT 9 features bitmap offered by peer"
|
||||
},
|
||||
"direction": {
|
||||
"type": "string",
|
||||
"enum": [ "in", "out" ],
|
||||
"description": "Whether they initiated connection or we did"
|
||||
},
|
||||
"address": {
|
||||
"type": "object",
|
||||
"description": "Address information (mainly useful if **direction** is *out*)",
|
||||
"additionalProperties": true,
|
||||
"required": [ "type" ],
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [ "local socket", "ipv4", "ipv6", "torv2", "torv3" ],
|
||||
"description": "Type of connection (*torv2*/*torv3* only if **direction** is *out*)"
|
||||
}
|
||||
},
|
||||
"allOf": [
|
||||
{
|
||||
"if": {
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [ "local socket" ]
|
||||
}
|
||||
}
|
||||
},
|
||||
"then": {
|
||||
"additionalProperties": false,
|
||||
"required": [ "socket" ],
|
||||
"properties": {
|
||||
"type": { },
|
||||
"socket": {
|
||||
"type": "string",
|
||||
"description": "socket filename"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": {
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [ "ipv4", "ipv6", "torv2", "torv3" ]
|
||||
}
|
||||
}
|
||||
},
|
||||
"then": {
|
||||
"additionalProperties": false,
|
||||
"required": [ "address", "port" ],
|
||||
"properties": {
|
||||
"type": { },
|
||||
"address": {
|
||||
"type": "string",
|
||||
"description": "address in expected format for **type**"
|
||||
},
|
||||
"port": {
|
||||
"type": "u16",
|
||||
"description": "port number"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"id",
|
||||
"features",
|
||||
"direction",
|
||||
"address"
|
||||
],
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "pubkey",
|
||||
"description": "the peer we connected to"
|
||||
},
|
||||
"features": {
|
||||
"type": "hex",
|
||||
"description": "BOLT 9 features bitmap offered by peer"
|
||||
},
|
||||
"direction": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"in",
|
||||
"out"
|
||||
],
|
||||
"description": "Whether they initiated connection or we did"
|
||||
},
|
||||
"address": {
|
||||
"type": "object",
|
||||
"description": "Address information (mainly useful if **direction** is *out*)",
|
||||
"additionalProperties": true,
|
||||
"required": [
|
||||
"type"
|
||||
],
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"local socket",
|
||||
"ipv4",
|
||||
"ipv6",
|
||||
"torv2",
|
||||
"torv3"
|
||||
],
|
||||
"description": "Type of connection (*torv2*/*torv3* only if **direction** is *out*)"
|
||||
}
|
||||
},
|
||||
"allOf": [
|
||||
{
|
||||
"if": {
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"local socket"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"then": {
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"socket"
|
||||
],
|
||||
"properties": {
|
||||
"type": {},
|
||||
"socket": {
|
||||
"type": "string",
|
||||
"description": "socket filename"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": {
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"ipv4",
|
||||
"ipv6",
|
||||
"torv2",
|
||||
"torv3"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"then": {
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"address",
|
||||
"port"
|
||||
],
|
||||
"properties": {
|
||||
"type": {},
|
||||
"address": {
|
||||
"type": "string",
|
||||
"description": "address in expected format for **type**"
|
||||
},
|
||||
"port": {
|
||||
"type": "u16",
|
||||
"description": "port number"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,71 +1,81 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [ "label", "payment_hash", "status", "description", "expires_at" ],
|
||||
"properties": {
|
||||
"label": {
|
||||
"type": "string",
|
||||
"description": "the label for the invoice"
|
||||
},
|
||||
"bolt11": {
|
||||
"type": "string",
|
||||
"description": "the bolt11 string (always present unless **bolt12** is)"
|
||||
},
|
||||
"bolt12": {
|
||||
"type": "string",
|
||||
"description": "the bolt12 string instead of **bolt11** (**experimental-offers** only)"
|
||||
},
|
||||
"payment_hash": {
|
||||
"type": "hex",
|
||||
"description": "the hash of the *payment_preimage* which will prove payment",
|
||||
"maxLength": 64,
|
||||
"minLength": 64
|
||||
},
|
||||
"amount_msat": {
|
||||
"type": "msat",
|
||||
"description": "The amount of the invoice (if it has one)"
|
||||
},
|
||||
"status": {
|
||||
"type": "string",
|
||||
"enum": [ "paid", "expired", "unpaid" ],
|
||||
"description": "Whether it has been paid, or can no longer be paid"
|
||||
},
|
||||
"description": {
|
||||
"type": "string",
|
||||
"description": "Description extracted from **bolt11** or **bolt12**"
|
||||
},
|
||||
"expires_at": {
|
||||
"type": "u64",
|
||||
"description": "UNIX timestamp of when invoice expires (or expired)"
|
||||
},
|
||||
"pay_index": {
|
||||
"type": "u64",
|
||||
"description": "Incrementing id for when this was paid (**status** *paid* only)"
|
||||
},
|
||||
"amount_received_msat": {
|
||||
"type": "msat",
|
||||
"description": "Amount actually received (**status** *paid* only)"
|
||||
},
|
||||
"paid_at": {
|
||||
"type": "u64",
|
||||
"description": "UNIX timestamp of when invoice was paid (**status** *paid* only)"
|
||||
},
|
||||
"payment_preimage": {
|
||||
"type": "hex",
|
||||
"description": "the proof of payment: SHA256 of this **payment_hash**",
|
||||
"maxLength": 64,
|
||||
"minLength": 64
|
||||
},
|
||||
"local_offer_id": {
|
||||
"type": "hex",
|
||||
"description": "the *id* of our offer which created this invoice (**experimental-offers** only).",
|
||||
"maxLength": 64,
|
||||
"minLength": 64
|
||||
},
|
||||
"payer_note": {
|
||||
"type": "string",
|
||||
"description": "the optional *payer_note* from invoice_request which created this invoice (**experimental-offers** only)."
|
||||
}
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"label",
|
||||
"payment_hash",
|
||||
"status",
|
||||
"description",
|
||||
"expires_at"
|
||||
],
|
||||
"properties": {
|
||||
"label": {
|
||||
"type": "string",
|
||||
"description": "the label for the invoice"
|
||||
},
|
||||
"bolt11": {
|
||||
"type": "string",
|
||||
"description": "the bolt11 string (always present unless **bolt12** is)"
|
||||
},
|
||||
"bolt12": {
|
||||
"type": "string",
|
||||
"description": "the bolt12 string instead of **bolt11** (**experimental-offers** only)"
|
||||
},
|
||||
"payment_hash": {
|
||||
"type": "hex",
|
||||
"description": "the hash of the *payment_preimage* which will prove payment",
|
||||
"maxLength": 64,
|
||||
"minLength": 64
|
||||
},
|
||||
"amount_msat": {
|
||||
"type": "msat",
|
||||
"description": "The amount of the invoice (if it has one)"
|
||||
},
|
||||
"status": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"paid",
|
||||
"expired",
|
||||
"unpaid"
|
||||
],
|
||||
"description": "Whether it has been paid, or can no longer be paid"
|
||||
},
|
||||
"description": {
|
||||
"type": "string",
|
||||
"description": "Description extracted from **bolt11** or **bolt12**"
|
||||
},
|
||||
"expires_at": {
|
||||
"type": "u64",
|
||||
"description": "UNIX timestamp of when invoice expires (or expired)"
|
||||
},
|
||||
"pay_index": {
|
||||
"type": "u64",
|
||||
"description": "Incrementing id for when this was paid (**status** *paid* only)"
|
||||
},
|
||||
"amount_received_msat": {
|
||||
"type": "msat",
|
||||
"description": "Amount actually received (**status** *paid* only)"
|
||||
},
|
||||
"paid_at": {
|
||||
"type": "u64",
|
||||
"description": "UNIX timestamp of when invoice was paid (**status** *paid* only)"
|
||||
},
|
||||
"payment_preimage": {
|
||||
"type": "hex",
|
||||
"description": "the proof of payment: SHA256 of this **payment_hash**",
|
||||
"maxLength": 64,
|
||||
"minLength": 64
|
||||
},
|
||||
"local_offer_id": {
|
||||
"type": "hex",
|
||||
"description": "the *id* of our offer which created this invoice (**experimental-offers** only).",
|
||||
"maxLength": 64,
|
||||
"minLength": 64
|
||||
},
|
||||
"payer_note": {
|
||||
"type": "string",
|
||||
"description": "the optional *payer_note* from invoice_request which created this invoice (**experimental-offers** only)."
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,22 +1,25 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [ "onion", "shared_secrets" ],
|
||||
"properties": {
|
||||
"onion": {
|
||||
"type": "hex",
|
||||
"description": "the onion packet (*onion_size* bytes)"
|
||||
},
|
||||
"shared_secrets": {
|
||||
"type": "array",
|
||||
"description": "one shared secret for each node in the *hops* parameter",
|
||||
"items": {
|
||||
"type": "hex",
|
||||
"description": "the shared secret with this hop",
|
||||
"maxLength": 64,
|
||||
"minLength": 64
|
||||
}
|
||||
}
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"onion",
|
||||
"shared_secrets"
|
||||
],
|
||||
"properties": {
|
||||
"onion": {
|
||||
"type": "hex",
|
||||
"description": "the onion packet (*onion_size* bytes)"
|
||||
},
|
||||
"shared_secrets": {
|
||||
"type": "array",
|
||||
"description": "one shared secret for each node in the *hops* parameter",
|
||||
"items": {
|
||||
"type": "hex",
|
||||
"description": "the shared secret with this hop",
|
||||
"maxLength": 64,
|
||||
"minLength": 64
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,27 +1,29 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [ "key" ],
|
||||
"properties": {
|
||||
"key": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"description": "Part of the key added to the datastore"
|
||||
}
|
||||
},
|
||||
"generation": {
|
||||
"type": "u64",
|
||||
"description": "The number of times this has been updated"
|
||||
},
|
||||
"hex": {
|
||||
"type": "hex",
|
||||
"description": "The hex data which has been added to the datastore"
|
||||
},
|
||||
"string": {
|
||||
"type": "string",
|
||||
"description": "The data as a string, if it's valid utf-8"
|
||||
}
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"key"
|
||||
],
|
||||
"properties": {
|
||||
"key": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"description": "Part of the key added to the datastore"
|
||||
}
|
||||
},
|
||||
"generation": {
|
||||
"type": "u64",
|
||||
"description": "The number of times this has been updated"
|
||||
},
|
||||
"hex": {
|
||||
"type": "hex",
|
||||
"description": "The hex data which has been added to the datastore"
|
||||
},
|
||||
"string": {
|
||||
"type": "string",
|
||||
"description": "The data as a string, if it's valid utf-8"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,146 +1,171 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"required": [ "currency", "created_at", "expiry", "payee", "min_final_cltv_expiry", "payment_hash", "signature" ],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"currency": {
|
||||
"type": "string",
|
||||
"description": "the BIP173 name for the currency"
|
||||
},
|
||||
"created_at": {
|
||||
"type": "u64",
|
||||
"description": "the UNIX-style timestamp of the invoice"
|
||||
},
|
||||
"expiry": {
|
||||
"type": "u64",
|
||||
"description": "the number of seconds this is valid after *timestamp*"
|
||||
},
|
||||
"payee": {
|
||||
"type": "pubkey",
|
||||
"description": "the public key of the recipient"
|
||||
},
|
||||
"msatoshi": {
|
||||
"type": "u64",
|
||||
"deprecated": true
|
||||
},
|
||||
"amount_msat": {
|
||||
"type": "msat",
|
||||
"description": "Amount the invoice asked for"
|
||||
},
|
||||
"payment_hash": {
|
||||
"type": "hex",
|
||||
"description": "the hash of the *payment_preimage*",
|
||||
"maxLength": 64,
|
||||
"minLength": 64
|
||||
},
|
||||
"signature": {
|
||||
"type": "signature",
|
||||
"description": "signature of the *payee* on this invoice"
|
||||
},
|
||||
"description": {
|
||||
"type": "string",
|
||||
"description": "the description of the purpose of the purchase"
|
||||
},
|
||||
"description_hash": {
|
||||
"type": "hex",
|
||||
"description": "the hash of the description, in place of *description*",
|
||||
"maxLength": 64,
|
||||
"minLength": 64
|
||||
},
|
||||
"min_final_cltv_expiry": {
|
||||
"type": "u32",
|
||||
"description": "the minimum CLTV delay for the final node"
|
||||
},
|
||||
"payment_secret": {
|
||||
"type": "hex",
|
||||
"description": "the secret to hand to the payee node",
|
||||
"maxLength": 64,
|
||||
"minLength": 64
|
||||
},
|
||||
"features": {
|
||||
"type": "hex",
|
||||
"description": "the features bitmap for this invoice"
|
||||
},
|
||||
"fallbacks": {
|
||||
"type": "array",
|
||||
"description": "onchain addresses",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"required": ["type", "hex"],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"description": "the address type (if known)",
|
||||
"enum": [ "P2PKH", "P2SH", "P2WPKH", "P2WSH" ]
|
||||
},
|
||||
"addr": {
|
||||
"type": "string",
|
||||
"description": "the address in appropriate format for *type*"
|
||||
},
|
||||
"hex": {
|
||||
"type": "hex",
|
||||
"description": "Raw encoded address"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"routes": {
|
||||
"type": "array",
|
||||
"description": "Route hints to the *payee*",
|
||||
"items": {
|
||||
"type": "array",
|
||||
"description": "hops in the route",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"required": [ "pubkey", "short_channel_id", "fee_base_msat", "fee_proportional_millionths", "cltv_expiry_delta" ],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"pubkey": {
|
||||
"type": "pubkey",
|
||||
"description": "the public key of the node"
|
||||
},
|
||||
"short_channel_id": {
|
||||
"type": "short_channel_id",
|
||||
"description": "a channel to the next peer"
|
||||
},
|
||||
"fee_base_msat": {
|
||||
"type": "u32",
|
||||
"description": "the base fee for payments"
|
||||
},
|
||||
"fee_proportional_millionths": {
|
||||
"type": "u32",
|
||||
"description": "the parts-per-million fee for payments"
|
||||
},
|
||||
"cltv_expiry_delta": {
|
||||
"type": "u32",
|
||||
"description": "the CLTV delta across this hop"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"extra": {
|
||||
"type": "array",
|
||||
"description": "Any extra fields we didn't know how to parse",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"required": [ "tag", "data" ],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"tag": {
|
||||
"type": "string",
|
||||
"description": "The bech32 letter which identifies this field",
|
||||
"maxLength": 1,
|
||||
"minLength": 1
|
||||
},
|
||||
"data": {
|
||||
"type": "string",
|
||||
"description": "The bech32 data for this field"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"currency",
|
||||
"created_at",
|
||||
"expiry",
|
||||
"payee",
|
||||
"min_final_cltv_expiry",
|
||||
"payment_hash",
|
||||
"signature"
|
||||
],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"currency": {
|
||||
"type": "string",
|
||||
"description": "the BIP173 name for the currency"
|
||||
},
|
||||
"created_at": {
|
||||
"type": "u64",
|
||||
"description": "the UNIX-style timestamp of the invoice"
|
||||
},
|
||||
"expiry": {
|
||||
"type": "u64",
|
||||
"description": "the number of seconds this is valid after *timestamp*"
|
||||
},
|
||||
"payee": {
|
||||
"type": "pubkey",
|
||||
"description": "the public key of the recipient"
|
||||
},
|
||||
"msatoshi": {
|
||||
"type": "u64",
|
||||
"deprecated": true
|
||||
},
|
||||
"amount_msat": {
|
||||
"type": "msat",
|
||||
"description": "Amount the invoice asked for"
|
||||
},
|
||||
"payment_hash": {
|
||||
"type": "hex",
|
||||
"description": "the hash of the *payment_preimage*",
|
||||
"maxLength": 64,
|
||||
"minLength": 64
|
||||
},
|
||||
"signature": {
|
||||
"type": "signature",
|
||||
"description": "signature of the *payee* on this invoice"
|
||||
},
|
||||
"description": {
|
||||
"type": "string",
|
||||
"description": "the description of the purpose of the purchase"
|
||||
},
|
||||
"description_hash": {
|
||||
"type": "hex",
|
||||
"description": "the hash of the description, in place of *description*",
|
||||
"maxLength": 64,
|
||||
"minLength": 64
|
||||
},
|
||||
"min_final_cltv_expiry": {
|
||||
"type": "u32",
|
||||
"description": "the minimum CLTV delay for the final node"
|
||||
},
|
||||
"payment_secret": {
|
||||
"type": "hex",
|
||||
"description": "the secret to hand to the payee node",
|
||||
"maxLength": 64,
|
||||
"minLength": 64
|
||||
},
|
||||
"features": {
|
||||
"type": "hex",
|
||||
"description": "the features bitmap for this invoice"
|
||||
},
|
||||
"fallbacks": {
|
||||
"type": "array",
|
||||
"description": "onchain addresses",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"type",
|
||||
"hex"
|
||||
],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"description": "the address type (if known)",
|
||||
"enum": [
|
||||
"P2PKH",
|
||||
"P2SH",
|
||||
"P2WPKH",
|
||||
"P2WSH"
|
||||
]
|
||||
},
|
||||
"addr": {
|
||||
"type": "string",
|
||||
"description": "the address in appropriate format for *type*"
|
||||
},
|
||||
"hex": {
|
||||
"type": "hex",
|
||||
"description": "Raw encoded address"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"routes": {
|
||||
"type": "array",
|
||||
"description": "Route hints to the *payee*",
|
||||
"items": {
|
||||
"type": "array",
|
||||
"description": "hops in the route",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"pubkey",
|
||||
"short_channel_id",
|
||||
"fee_base_msat",
|
||||
"fee_proportional_millionths",
|
||||
"cltv_expiry_delta"
|
||||
],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"pubkey": {
|
||||
"type": "pubkey",
|
||||
"description": "the public key of the node"
|
||||
},
|
||||
"short_channel_id": {
|
||||
"type": "short_channel_id",
|
||||
"description": "a channel to the next peer"
|
||||
},
|
||||
"fee_base_msat": {
|
||||
"type": "u32",
|
||||
"description": "the base fee for payments"
|
||||
},
|
||||
"fee_proportional_millionths": {
|
||||
"type": "u32",
|
||||
"description": "the parts-per-million fee for payments"
|
||||
},
|
||||
"cltv_expiry_delta": {
|
||||
"type": "u32",
|
||||
"description": "the CLTV delta across this hop"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"extra": {
|
||||
"type": "array",
|
||||
"description": "Any extra fields we didn't know how to parse",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"tag",
|
||||
"data"
|
||||
],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"tag": {
|
||||
"type": "string",
|
||||
"description": "The bech32 letter which identifies this field",
|
||||
"maxLength": 1,
|
||||
"minLength": 1
|
||||
},
|
||||
"data": {
|
||||
"type": "string",
|
||||
"description": "The bech32 data for this field"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,27 +1,29 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [ "key" ],
|
||||
"properties": {
|
||||
"key": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"description": "Part of the key added to the datastore"
|
||||
}
|
||||
},
|
||||
"generation": {
|
||||
"type": "u64",
|
||||
"description": "The number of times this has been updated"
|
||||
},
|
||||
"hex": {
|
||||
"type": "hex",
|
||||
"description": "The hex data which has removed from the datastore"
|
||||
},
|
||||
"string": {
|
||||
"type": "string",
|
||||
"description": "The data as a string, if it's valid utf-8"
|
||||
}
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"key"
|
||||
],
|
||||
"properties": {
|
||||
"key": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"description": "Part of the key added to the datastore"
|
||||
}
|
||||
},
|
||||
"generation": {
|
||||
"type": "u64",
|
||||
"description": "The number of times this has been updated"
|
||||
},
|
||||
"hex": {
|
||||
"type": "hex",
|
||||
"description": "The hex data which has removed from the datastore"
|
||||
},
|
||||
"string": {
|
||||
"type": "string",
|
||||
"description": "The data as a string, if it's valid utf-8"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"required": [ ],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
}
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"required": [],
|
||||
"additionalProperties": false,
|
||||
"properties": {}
|
||||
}
|
||||
|
||||
@@ -1,159 +1,179 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"required": [ "label", "payment_hash", "status", "expires_at" ],
|
||||
"additionalProperties": true,
|
||||
"properties": {
|
||||
"label": {
|
||||
"type": "string",
|
||||
"description": "Unique label given at creation time"
|
||||
},
|
||||
"bolt11": {
|
||||
"type": "string",
|
||||
"description": "BOLT11 string"
|
||||
},
|
||||
"bolt12": {
|
||||
"type": "string",
|
||||
"description": "BOLT12 string"
|
||||
},
|
||||
"msatoshi": {
|
||||
"deprecated": "true"
|
||||
},
|
||||
"amount_msat": {
|
||||
"type": "msat",
|
||||
"description": "the amount required to pay this invoice"
|
||||
},
|
||||
"description": {
|
||||
"type": "string",
|
||||
"description": "description used in the invoice"
|
||||
},
|
||||
"payment_hash": {
|
||||
"type": "hex",
|
||||
"description": "the hash of the *payment_preimage* which will prove payment",
|
||||
"maxLength": 64,
|
||||
"minLength": 64
|
||||
},
|
||||
"status": {
|
||||
"type": "string",
|
||||
"description": "State of invoice",
|
||||
"enum": [ "paid", "expired", "unpaid" ]
|
||||
},
|
||||
"expires_at": {
|
||||
"type": "u64",
|
||||
"description": "UNIX timestamp when invoice expires (or expired)"
|
||||
}
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"label",
|
||||
"payment_hash",
|
||||
"status",
|
||||
"expires_at"
|
||||
],
|
||||
"additionalProperties": true,
|
||||
"properties": {
|
||||
"label": {
|
||||
"type": "string",
|
||||
"description": "Unique label given at creation time"
|
||||
},
|
||||
"allOf": [
|
||||
{
|
||||
"if": {
|
||||
"required": [ "bolt12" ]
|
||||
},
|
||||
"then": {
|
||||
"required": [ ],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"label": { },
|
||||
"bolt12": { },
|
||||
"status": { },
|
||||
"expires_at": { },
|
||||
"msatoshi": { },
|
||||
"amount_msat": { },
|
||||
"description": { },
|
||||
"payment_hash": { },
|
||||
"pay_index": { },
|
||||
"amount_received_msat": { },
|
||||
"paid_at": { },
|
||||
"payment_preimage": { },
|
||||
"local_offer_id": {
|
||||
"type": "hex",
|
||||
"description": "offer for which this invoice was created"
|
||||
},
|
||||
"payer_note": {
|
||||
"type": "string",
|
||||
"description": "the optional *payer_note* from invoice_request which created this invoice"
|
||||
}
|
||||
}
|
||||
},
|
||||
"else": {
|
||||
"required": [ "bolt11" ],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"label": { },
|
||||
"bolt11": { },
|
||||
"status": { },
|
||||
"expires_at": { },
|
||||
"msatoshi": { },
|
||||
"amount_msat": { },
|
||||
"description": { },
|
||||
"payment_hash": { },
|
||||
"pay_index": { },
|
||||
"amount_received_msat": { },
|
||||
"paid_at": { },
|
||||
"payment_preimage": { }
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": {
|
||||
"properties": {
|
||||
"status": {
|
||||
"type": "string",
|
||||
"enum": [ "paid" ]
|
||||
}
|
||||
}
|
||||
},
|
||||
"then": {
|
||||
"additionalProperties": false,
|
||||
"required": [ "pay_index", "amount_received_msat", "paid_at", "payment_preimage" ],
|
||||
"properties": {
|
||||
"label": { },
|
||||
"bolt11": { },
|
||||
"bolt12": { },
|
||||
"status": { },
|
||||
"expires_at": { },
|
||||
"msatoshi": { },
|
||||
"amount_msat": { },
|
||||
"description": { },
|
||||
"payment_hash": { },
|
||||
"payer_note": { },
|
||||
"local_offer_id": { },
|
||||
"pay_index": {
|
||||
"type": "u64",
|
||||
"description": "unique index for this invoice payment"
|
||||
},
|
||||
"amount_received_msat": {
|
||||
"type": "msat",
|
||||
"description": "how much was actually received"
|
||||
},
|
||||
"paid_at": {
|
||||
"type": "u64",
|
||||
"description": "UNIX timestamp of when payment was received"
|
||||
},
|
||||
"payment_preimage": {
|
||||
"type": "hex",
|
||||
"description": "SHA256 of this is the *payment_hash* offered in the invoice",
|
||||
"maxLength": 64,
|
||||
"minLength": 64
|
||||
}
|
||||
}
|
||||
},
|
||||
"else": {
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"label": { },
|
||||
"bolt11": { },
|
||||
"bolt12": { },
|
||||
"status": { },
|
||||
"msatoshi": { },
|
||||
"amount_msat": { },
|
||||
"description": { },
|
||||
"payment_hash": { },
|
||||
"expires_at": { },
|
||||
"pay_index": { },
|
||||
"payer_note": { },
|
||||
"local_offer_id": { }
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
"bolt11": {
|
||||
"type": "string",
|
||||
"description": "BOLT11 string"
|
||||
},
|
||||
"bolt12": {
|
||||
"type": "string",
|
||||
"description": "BOLT12 string"
|
||||
},
|
||||
"msatoshi": {
|
||||
"deprecated": "true"
|
||||
},
|
||||
"amount_msat": {
|
||||
"type": "msat",
|
||||
"description": "the amount required to pay this invoice"
|
||||
},
|
||||
"description": {
|
||||
"type": "string",
|
||||
"description": "description used in the invoice"
|
||||
},
|
||||
"payment_hash": {
|
||||
"type": "hex",
|
||||
"description": "the hash of the *payment_preimage* which will prove payment",
|
||||
"maxLength": 64,
|
||||
"minLength": 64
|
||||
},
|
||||
"status": {
|
||||
"type": "string",
|
||||
"description": "State of invoice",
|
||||
"enum": [
|
||||
"paid",
|
||||
"expired",
|
||||
"unpaid"
|
||||
]
|
||||
},
|
||||
"expires_at": {
|
||||
"type": "u64",
|
||||
"description": "UNIX timestamp when invoice expires (or expired)"
|
||||
}
|
||||
},
|
||||
"allOf": [
|
||||
{
|
||||
"if": {
|
||||
"required": [
|
||||
"bolt12"
|
||||
]
|
||||
},
|
||||
"then": {
|
||||
"required": [],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"label": {},
|
||||
"bolt12": {},
|
||||
"status": {},
|
||||
"expires_at": {},
|
||||
"msatoshi": {},
|
||||
"amount_msat": {},
|
||||
"description": {},
|
||||
"payment_hash": {},
|
||||
"pay_index": {},
|
||||
"amount_received_msat": {},
|
||||
"paid_at": {},
|
||||
"payment_preimage": {},
|
||||
"local_offer_id": {
|
||||
"type": "hex",
|
||||
"description": "offer for which this invoice was created"
|
||||
},
|
||||
"payer_note": {
|
||||
"type": "string",
|
||||
"description": "the optional *payer_note* from invoice_request which created this invoice"
|
||||
}
|
||||
}
|
||||
},
|
||||
"else": {
|
||||
"required": [
|
||||
"bolt11"
|
||||
],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"label": {},
|
||||
"bolt11": {},
|
||||
"status": {},
|
||||
"expires_at": {},
|
||||
"msatoshi": {},
|
||||
"amount_msat": {},
|
||||
"description": {},
|
||||
"payment_hash": {},
|
||||
"pay_index": {},
|
||||
"amount_received_msat": {},
|
||||
"paid_at": {},
|
||||
"payment_preimage": {}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": {
|
||||
"properties": {
|
||||
"status": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"paid"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"then": {
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"pay_index",
|
||||
"amount_received_msat",
|
||||
"paid_at",
|
||||
"payment_preimage"
|
||||
],
|
||||
"properties": {
|
||||
"label": {},
|
||||
"bolt11": {},
|
||||
"bolt12": {},
|
||||
"status": {},
|
||||
"expires_at": {},
|
||||
"msatoshi": {},
|
||||
"amount_msat": {},
|
||||
"description": {},
|
||||
"payment_hash": {},
|
||||
"payer_note": {},
|
||||
"local_offer_id": {},
|
||||
"pay_index": {
|
||||
"type": "u64",
|
||||
"description": "unique index for this invoice payment"
|
||||
},
|
||||
"amount_received_msat": {
|
||||
"type": "msat",
|
||||
"description": "how much was actually received"
|
||||
},
|
||||
"paid_at": {
|
||||
"type": "u64",
|
||||
"description": "UNIX timestamp of when payment was received"
|
||||
},
|
||||
"payment_preimage": {
|
||||
"type": "hex",
|
||||
"description": "SHA256 of this is the *payment_hash* offered in the invoice",
|
||||
"maxLength": 64,
|
||||
"minLength": 64
|
||||
}
|
||||
}
|
||||
},
|
||||
"else": {
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"label": {},
|
||||
"bolt11": {},
|
||||
"bolt12": {},
|
||||
"status": {},
|
||||
"msatoshi": {},
|
||||
"amount_msat": {},
|
||||
"description": {},
|
||||
"payment_hash": {},
|
||||
"expires_at": {},
|
||||
"pay_index": {},
|
||||
"payer_note": {},
|
||||
"local_offer_id": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -1,85 +1,97 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"required": [ "payments" ],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"payments": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [ "id", "payment_hash", "status", "amount_sent_msat", "created_at" ],
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "u64",
|
||||
"description": "unique ID for this payment attempt"
|
||||
},
|
||||
"payment_hash": {
|
||||
"type": "hex",
|
||||
"description": "the hash of the *payment_preimage* which will prove payment",
|
||||
"maxLength": 64,
|
||||
"minLength": 64
|
||||
},
|
||||
"status": {
|
||||
"type": "string",
|
||||
"enum": [ "pending", "failed", "complete" ],
|
||||
"description": "status of the payment"
|
||||
},
|
||||
"msatoshi_sent": {
|
||||
"deprecated": true
|
||||
},
|
||||
"amount_sent_msat": {
|
||||
"type": "msat",
|
||||
"description": "the amount we actually sent, including fees"
|
||||
},
|
||||
"partid": {
|
||||
"type": "u64",
|
||||
"description": "unique ID within this (multi-part) payment"
|
||||
},
|
||||
"destination": {
|
||||
"type": "pubkey",
|
||||
"description": "the final destination of the payment if known"
|
||||
},
|
||||
"msatoshi": {
|
||||
"deprecated": true
|
||||
},
|
||||
"amount_msat": {
|
||||
"type": "msat",
|
||||
"description": "the amount the destination received, if known"
|
||||
},
|
||||
"created_at": {
|
||||
"type": "u64",
|
||||
"description": "the UNIX timestamp showing when this payment was initiated"
|
||||
},
|
||||
"groupid": {
|
||||
"type": "u64",
|
||||
"description": "Grouping key to disambiguate multiple attempts to pay an invoice or the same payment_hash"
|
||||
},
|
||||
"payment_preimage": {
|
||||
"type": "hex",
|
||||
"description": "proof of payment",
|
||||
"maxLength": 64,
|
||||
"minLength": 64
|
||||
},
|
||||
"label": {
|
||||
"type": "string",
|
||||
"description": "the label, if given to sendpay"
|
||||
},
|
||||
"bolt11": {
|
||||
"type": "string",
|
||||
"description": "the bolt11 string (if pay supplied one)"
|
||||
},
|
||||
"bolt12": {
|
||||
"type": "string",
|
||||
"description": "the bolt12 string (if supplied for pay: **experimental-offers** only)."
|
||||
},
|
||||
"erroronion": {
|
||||
"type": "hex",
|
||||
"description": "the error onion returned on failure, if any."
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"payments"
|
||||
],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"payments": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"id",
|
||||
"payment_hash",
|
||||
"status",
|
||||
"amount_sent_msat",
|
||||
"created_at"
|
||||
],
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "u64",
|
||||
"description": "unique ID for this payment attempt"
|
||||
},
|
||||
"payment_hash": {
|
||||
"type": "hex",
|
||||
"description": "the hash of the *payment_preimage* which will prove payment",
|
||||
"maxLength": 64,
|
||||
"minLength": 64
|
||||
},
|
||||
"status": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"pending",
|
||||
"failed",
|
||||
"complete"
|
||||
],
|
||||
"description": "status of the payment"
|
||||
},
|
||||
"msatoshi_sent": {
|
||||
"deprecated": true
|
||||
},
|
||||
"amount_sent_msat": {
|
||||
"type": "msat",
|
||||
"description": "the amount we actually sent, including fees"
|
||||
},
|
||||
"partid": {
|
||||
"type": "u64",
|
||||
"description": "unique ID within this (multi-part) payment"
|
||||
},
|
||||
"destination": {
|
||||
"type": "pubkey",
|
||||
"description": "the final destination of the payment if known"
|
||||
},
|
||||
"msatoshi": {
|
||||
"deprecated": true
|
||||
},
|
||||
"amount_msat": {
|
||||
"type": "msat",
|
||||
"description": "the amount the destination received, if known"
|
||||
},
|
||||
"created_at": {
|
||||
"type": "u64",
|
||||
"description": "the UNIX timestamp showing when this payment was initiated"
|
||||
},
|
||||
"groupid": {
|
||||
"type": "u64",
|
||||
"description": "Grouping key to disambiguate multiple attempts to pay an invoice or the same payment_hash"
|
||||
},
|
||||
"payment_preimage": {
|
||||
"type": "hex",
|
||||
"description": "proof of payment",
|
||||
"maxLength": 64,
|
||||
"minLength": 64
|
||||
},
|
||||
"label": {
|
||||
"type": "string",
|
||||
"description": "the label, if given to sendpay"
|
||||
},
|
||||
"bolt11": {
|
||||
"type": "string",
|
||||
"description": "the bolt11 string (if pay supplied one)"
|
||||
},
|
||||
"bolt12": {
|
||||
"type": "string",
|
||||
"description": "the bolt12 string (if supplied for pay: **experimental-offers** only)."
|
||||
},
|
||||
"erroronion": {
|
||||
"type": "hex",
|
||||
"description": "the error onion returned on failure, if any."
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,39 +1,48 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"required": [ "offer_id", "active", "single_use", "bolt12", "bolt12_unsigned", "used" ],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"offer_id": {
|
||||
"type": "hex",
|
||||
"description": "the merkle hash of the offer",
|
||||
"maxLength": 64,
|
||||
"minLength": 64
|
||||
},
|
||||
"active": {
|
||||
"type": "boolean",
|
||||
"enum": [ false ],
|
||||
"description": "Whether the offer can produce invoices/payments"
|
||||
},
|
||||
"single_use": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the offer is disabled after first successful use"
|
||||
},
|
||||
"bolt12": {
|
||||
"type": "string",
|
||||
"description": "The bolt12 string representing this offer"
|
||||
},
|
||||
"bolt12_unsigned": {
|
||||
"type": "string",
|
||||
"description": "The bolt12 string representing this offer, without signature"
|
||||
},
|
||||
"used": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the offer has had an invoice paid / payment made"
|
||||
},
|
||||
"label": {
|
||||
"type": "string",
|
||||
"description": "The label provided when offer was created"
|
||||
}
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"offer_id",
|
||||
"active",
|
||||
"single_use",
|
||||
"bolt12",
|
||||
"bolt12_unsigned",
|
||||
"used"
|
||||
],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"offer_id": {
|
||||
"type": "hex",
|
||||
"description": "the merkle hash of the offer",
|
||||
"maxLength": 64,
|
||||
"minLength": 64
|
||||
},
|
||||
"active": {
|
||||
"type": "boolean",
|
||||
"enum": [
|
||||
false
|
||||
],
|
||||
"description": "Whether the offer can produce invoices/payments"
|
||||
},
|
||||
"single_use": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the offer is disabled after first successful use"
|
||||
},
|
||||
"bolt12": {
|
||||
"type": "string",
|
||||
"description": "The bolt12 string representing this offer"
|
||||
},
|
||||
"bolt12_unsigned": {
|
||||
"type": "string",
|
||||
"description": "The bolt12 string representing this offer, without signature"
|
||||
},
|
||||
"used": {
|
||||
"type": "boolean",
|
||||
"description": "Whether the offer has had an invoice paid / payment made"
|
||||
},
|
||||
"label": {
|
||||
"type": "string",
|
||||
"description": "The label provided when offer was created"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
}
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {}
|
||||
}
|
||||
|
||||
@@ -1,119 +1,131 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [ ],
|
||||
"properties": {
|
||||
"warning_missing_feerates": {
|
||||
"type": "string",
|
||||
"description": "Some fee estimates are missing"
|
||||
},
|
||||
"perkb": {
|
||||
"type": "object",
|
||||
"description": "If *style* parameter was perkb",
|
||||
"additionalProperties": false,
|
||||
"required": [ "min_acceptable", "max_acceptable" ],
|
||||
"properties": {
|
||||
"min_acceptable": {
|
||||
"type": "u32",
|
||||
"description": "The smallest feerate that you can use, usually the minimum relayed feerate of the backend"
|
||||
},
|
||||
"max_acceptable": {
|
||||
"type": "u32",
|
||||
"description": "The largest feerate we will accept from remote negotiations. If a peer attempts to set the feerate higher than this we will unilaterally close the channel (or simply forget it if it's not open yet)."
|
||||
},
|
||||
"opening": {
|
||||
"type": "u32",
|
||||
"description": "Default feerate for lightning-fundchannel(7) and lightning-withdraw(7)"
|
||||
},
|
||||
"mutual_close": {
|
||||
"type": "u32",
|
||||
"description": "Feerate to aim for in cooperative shutdown. Note that since mutual close is a **negotiation**, the actual feerate used in mutual close will be somewhere between this and the corresponding mutual close feerate of the peer."
|
||||
},
|
||||
"unilateral_close": {
|
||||
"type": "u32",
|
||||
"description": "Feerate for commitment_transaction in a live channel which we originally funded"
|
||||
},
|
||||
"delayed_to_us": {
|
||||
"type": "u32",
|
||||
"description": "Feerate for returning unilateral close funds to our wallet"
|
||||
},
|
||||
"htlc_resolution": {
|
||||
"type": "u32",
|
||||
"description": "Feerate for returning unilateral close HTLC outputs to our wallet"
|
||||
},
|
||||
"penalty": {
|
||||
"type": "u32",
|
||||
"description": "Feerate to start at when penalizing a cheat attempt"
|
||||
}
|
||||
}
|
||||
},
|
||||
"perkw": {
|
||||
"type": "object",
|
||||
"description": "If *style* parameter was perkw",
|
||||
"additionalProperties": false,
|
||||
"required": [ "min_acceptable", "max_acceptable" ],
|
||||
"properties": {
|
||||
"min_acceptable": {
|
||||
"type": "u32",
|
||||
"description": "The smallest feerate that you can use, usually the minimum relayed feerate of the backend"
|
||||
},
|
||||
"max_acceptable": {
|
||||
"type": "u32",
|
||||
"description": "The largest feerate we will accept from remote negotiations. If a peer attempts to set the feerate higher than this we will unilaterally close the channel (or simply forget it if it's not open yet)."
|
||||
},
|
||||
"opening": {
|
||||
"type": "u32",
|
||||
"description": "Default feerate for lightning-fundchannel(7) and lightning-withdraw(7)"
|
||||
},
|
||||
"mutual_close": {
|
||||
"type": "u32",
|
||||
"description": "Feerate to aim for in cooperative shutdown. Note that since mutual close is a **negotiation**, the actual feerate used in mutual close will be somewhere between this and the corresponding mutual close feerate of the peer."
|
||||
},
|
||||
"unilateral_close": {
|
||||
"type": "u32",
|
||||
"description": "Feerate for commitment_transaction in a live channel which we originally funded"
|
||||
},
|
||||
"delayed_to_us": {
|
||||
"type": "u32",
|
||||
"description": "Feerate for returning unilateral close funds to our wallet"
|
||||
},
|
||||
"htlc_resolution": {
|
||||
"type": "u32",
|
||||
"description": "Feerate for returning unilateral close HTLC outputs to our wallet"
|
||||
},
|
||||
"penalty": {
|
||||
"type": "u32",
|
||||
"description": "Feerate to start at when penalizing a cheat attempt"
|
||||
}
|
||||
}
|
||||
},
|
||||
"onchain_fee_estimates": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [ "opening_channel_satoshis", "mutual_close_satoshis", "unilateral_close_satoshis", "htlc_timeout_satoshis", "htlc_success_satoshis" ],
|
||||
"properties": {
|
||||
"opening_channel_satoshis": {
|
||||
"type": "u64",
|
||||
"description": "Estimated cost of typical channel open"
|
||||
},
|
||||
"mutual_close_satoshis": {
|
||||
"type": "u64",
|
||||
"description": "Estimated cost of typical channel close"
|
||||
},
|
||||
"unilateral_close_satoshis": {
|
||||
"type": "u64",
|
||||
"description": "Estimated cost of typical unilateral close (without HTLCs)"
|
||||
},
|
||||
"htlc_timeout_satoshis": {
|
||||
"type": "u64",
|
||||
"description": "Estimated cost of typical HTLC timeout transaction"
|
||||
},
|
||||
"htlc_success_satoshis": {
|
||||
"type": "u64",
|
||||
"description": "Estimated cost of typical HTLC fulfillment transaction"
|
||||
}
|
||||
}
|
||||
}
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [],
|
||||
"properties": {
|
||||
"warning_missing_feerates": {
|
||||
"type": "string",
|
||||
"description": "Some fee estimates are missing"
|
||||
},
|
||||
"perkb": {
|
||||
"type": "object",
|
||||
"description": "If *style* parameter was perkb",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"min_acceptable",
|
||||
"max_acceptable"
|
||||
],
|
||||
"properties": {
|
||||
"min_acceptable": {
|
||||
"type": "u32",
|
||||
"description": "The smallest feerate that you can use, usually the minimum relayed feerate of the backend"
|
||||
},
|
||||
"max_acceptable": {
|
||||
"type": "u32",
|
||||
"description": "The largest feerate we will accept from remote negotiations. If a peer attempts to set the feerate higher than this we will unilaterally close the channel (or simply forget it if it's not open yet)."
|
||||
},
|
||||
"opening": {
|
||||
"type": "u32",
|
||||
"description": "Default feerate for lightning-fundchannel(7) and lightning-withdraw(7)"
|
||||
},
|
||||
"mutual_close": {
|
||||
"type": "u32",
|
||||
"description": "Feerate to aim for in cooperative shutdown. Note that since mutual close is a **negotiation**, the actual feerate used in mutual close will be somewhere between this and the corresponding mutual close feerate of the peer."
|
||||
},
|
||||
"unilateral_close": {
|
||||
"type": "u32",
|
||||
"description": "Feerate for commitment_transaction in a live channel which we originally funded"
|
||||
},
|
||||
"delayed_to_us": {
|
||||
"type": "u32",
|
||||
"description": "Feerate for returning unilateral close funds to our wallet"
|
||||
},
|
||||
"htlc_resolution": {
|
||||
"type": "u32",
|
||||
"description": "Feerate for returning unilateral close HTLC outputs to our wallet"
|
||||
},
|
||||
"penalty": {
|
||||
"type": "u32",
|
||||
"description": "Feerate to start at when penalizing a cheat attempt"
|
||||
}
|
||||
}
|
||||
},
|
||||
"perkw": {
|
||||
"type": "object",
|
||||
"description": "If *style* parameter was perkw",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"min_acceptable",
|
||||
"max_acceptable"
|
||||
],
|
||||
"properties": {
|
||||
"min_acceptable": {
|
||||
"type": "u32",
|
||||
"description": "The smallest feerate that you can use, usually the minimum relayed feerate of the backend"
|
||||
},
|
||||
"max_acceptable": {
|
||||
"type": "u32",
|
||||
"description": "The largest feerate we will accept from remote negotiations. If a peer attempts to set the feerate higher than this we will unilaterally close the channel (or simply forget it if it's not open yet)."
|
||||
},
|
||||
"opening": {
|
||||
"type": "u32",
|
||||
"description": "Default feerate for lightning-fundchannel(7) and lightning-withdraw(7)"
|
||||
},
|
||||
"mutual_close": {
|
||||
"type": "u32",
|
||||
"description": "Feerate to aim for in cooperative shutdown. Note that since mutual close is a **negotiation**, the actual feerate used in mutual close will be somewhere between this and the corresponding mutual close feerate of the peer."
|
||||
},
|
||||
"unilateral_close": {
|
||||
"type": "u32",
|
||||
"description": "Feerate for commitment_transaction in a live channel which we originally funded"
|
||||
},
|
||||
"delayed_to_us": {
|
||||
"type": "u32",
|
||||
"description": "Feerate for returning unilateral close funds to our wallet"
|
||||
},
|
||||
"htlc_resolution": {
|
||||
"type": "u32",
|
||||
"description": "Feerate for returning unilateral close HTLC outputs to our wallet"
|
||||
},
|
||||
"penalty": {
|
||||
"type": "u32",
|
||||
"description": "Feerate to start at when penalizing a cheat attempt"
|
||||
}
|
||||
}
|
||||
},
|
||||
"onchain_fee_estimates": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"opening_channel_satoshis",
|
||||
"mutual_close_satoshis",
|
||||
"unilateral_close_satoshis",
|
||||
"htlc_timeout_satoshis",
|
||||
"htlc_success_satoshis"
|
||||
],
|
||||
"properties": {
|
||||
"opening_channel_satoshis": {
|
||||
"type": "u64",
|
||||
"description": "Estimated cost of typical channel open"
|
||||
},
|
||||
"mutual_close_satoshis": {
|
||||
"type": "u64",
|
||||
"description": "Estimated cost of typical channel close"
|
||||
},
|
||||
"unilateral_close_satoshis": {
|
||||
"type": "u64",
|
||||
"description": "Estimated cost of typical unilateral close (without HTLCs)"
|
||||
},
|
||||
"htlc_timeout_satoshis": {
|
||||
"type": "u64",
|
||||
"description": "Estimated cost of typical HTLC timeout transaction"
|
||||
},
|
||||
"htlc_success_satoshis": {
|
||||
"type": "u64",
|
||||
"description": "Estimated cost of typical HTLC fulfillment transaction"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,68 +1,77 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [ "invoice", "changes" ],
|
||||
"properties": {
|
||||
"invoice": {
|
||||
"type": "string",
|
||||
"description": "The BOLT12 invoice we fetched"
|
||||
},
|
||||
"changes": {
|
||||
"type": "object",
|
||||
"description": "Summary of changes from offer",
|
||||
"additionalProperties": false,
|
||||
"required": [ ],
|
||||
"properties": {
|
||||
"description_appended": {
|
||||
"type": "string",
|
||||
"description": "extra characters appended to the *description* field."
|
||||
},
|
||||
"description": {
|
||||
"type": "string",
|
||||
"description": "a completely replaced *description* field"
|
||||
},
|
||||
"vendor_removed": {
|
||||
"type": "string",
|
||||
"description": "The *vendor* from the offer, which is missing in the invoice"
|
||||
},
|
||||
"vendor": {
|
||||
"type": "string",
|
||||
"description": "a completely replaced *vendor* field"
|
||||
},
|
||||
"msat": {
|
||||
"type": "msat",
|
||||
"description": "the amount, if different from the offer amount multiplied by any *quantity* (or the offer had no amount, or was not in BTC)."
|
||||
}
|
||||
}
|
||||
},
|
||||
"next_period": {
|
||||
"type": "object",
|
||||
"description": "Only for recurring invoices if the next period is under the *recurrence_limit*",
|
||||
"additionalProperties": false,
|
||||
"required": [ "counter", "starttime", "endtime", "paywindow_start", "paywindow_end" ],
|
||||
"properties": {
|
||||
"counter": {
|
||||
"type": "u64",
|
||||
"description": "the index of the next period to fetchinvoice"
|
||||
},
|
||||
"starttime": {
|
||||
"type": "u64",
|
||||
"description": "UNIX timestamp that the next period starts"
|
||||
},
|
||||
"endtime": {
|
||||
"type": "u64",
|
||||
"description": "UNIX timestamp that the next period ends"
|
||||
},
|
||||
"paywindow_start": {
|
||||
"type": "u64",
|
||||
"description": "UNIX timestamp of the earliest time that the next invoice can be fetched"
|
||||
},
|
||||
"paywindow_end": {
|
||||
"type": "u64",
|
||||
"description": "UNIX timestamp of the latest time that the next invoice can be fetched"
|
||||
}
|
||||
}
|
||||
}
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"invoice",
|
||||
"changes"
|
||||
],
|
||||
"properties": {
|
||||
"invoice": {
|
||||
"type": "string",
|
||||
"description": "The BOLT12 invoice we fetched"
|
||||
},
|
||||
"changes": {
|
||||
"type": "object",
|
||||
"description": "Summary of changes from offer",
|
||||
"additionalProperties": false,
|
||||
"required": [],
|
||||
"properties": {
|
||||
"description_appended": {
|
||||
"type": "string",
|
||||
"description": "extra characters appended to the *description* field."
|
||||
},
|
||||
"description": {
|
||||
"type": "string",
|
||||
"description": "a completely replaced *description* field"
|
||||
},
|
||||
"vendor_removed": {
|
||||
"type": "string",
|
||||
"description": "The *vendor* from the offer, which is missing in the invoice"
|
||||
},
|
||||
"vendor": {
|
||||
"type": "string",
|
||||
"description": "a completely replaced *vendor* field"
|
||||
},
|
||||
"msat": {
|
||||
"type": "msat",
|
||||
"description": "the amount, if different from the offer amount multiplied by any *quantity* (or the offer had no amount, or was not in BTC)."
|
||||
}
|
||||
}
|
||||
},
|
||||
"next_period": {
|
||||
"type": "object",
|
||||
"description": "Only for recurring invoices if the next period is under the *recurrence_limit*",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"counter",
|
||||
"starttime",
|
||||
"endtime",
|
||||
"paywindow_start",
|
||||
"paywindow_end"
|
||||
],
|
||||
"properties": {
|
||||
"counter": {
|
||||
"type": "u64",
|
||||
"description": "the index of the next period to fetchinvoice"
|
||||
},
|
||||
"starttime": {
|
||||
"type": "u64",
|
||||
"description": "UNIX timestamp that the next period starts"
|
||||
},
|
||||
"endtime": {
|
||||
"type": "u64",
|
||||
"description": "UNIX timestamp that the next period ends"
|
||||
},
|
||||
"paywindow_start": {
|
||||
"type": "u64",
|
||||
"description": "UNIX timestamp of the earliest time that the next invoice can be fetched"
|
||||
},
|
||||
"paywindow_end": {
|
||||
"type": "u64",
|
||||
"description": "UNIX timestamp of the latest time that the next invoice can be fetched"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user