core-lightning/doc/schemas
Rusty Russell 36a2491a89 json: fix up msat amounts in non-_msat fields.
We had json_add_amount_msat_only(), which was designed to be used to
print out msat fields, if we had sats.

However, we misused it, so split it into the three different cases:
1. json_add_amount_sat_msat: We are using it correctly, with a field called
   xxx_msat.
2. json_add_amount_sats_deprecated: We were using it wrong, so deprecate
   the old field and create a new one which does end in _msat.
3. json_add_sats: we were using it to hand sats as a JSON parameter to an
   interface, where "XXXsat".

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Deprecated: Plugins: `rbf_channel` and `openchannel2` hooks `their_funding` (use `their_funding_msat`)
Changelog-Deprecated: Plugins: `openchannel2` hook `dust_limit_satoshis` (use `dust_limit_msat`)
Changelog-Deprecated: Plugins: `openchannel` hook `funding_satoshis` (use `funding_msat`)
Changelog-Deprecated: Plugins: `openchannel` hook `dust_limit_satoshis` (use `dust_limit_msat`)
Changelog-Deprecated: Plugins: `openchannel` hook `channel_reserve_satoshis` (use `channel_reserve_msat`)
Changelog-Deprecated: Plugins: `channel_opened` notification `amount` (use `funding_msat`)
Changelog-Deprecated: JSON-RPC: `listtransactions` `msat` (use `amount_msat`)
Changelog-Deprecated: Plugins: `htlc_accepted` `forward_amount` (use `forward_msat`)
2022-06-21 06:52:35 +09:30
..
addgossip.request.json json-rpc: Add request stubs for a couple of calls 2022-02-11 16:02:25 +01:00
addgossip.schema.json jsonschema: Formatting json schema and regenerate docs 2021-11-28 10:55:48 +10:30
autocleaninvoice.request.json json-rpc: Add request stubs for a couple of calls 2022-02-11 16:02:25 +01:00
autocleaninvoice.schema.json jsonschema: Formatting json schema and regenerate docs 2021-11-28 10:55:48 +10:30
check.schema.json jsonschema: Formatting json schema and regenerate docs 2021-11-28 10:55:48 +10:30
checkmessage.request.json json-rpc: Add request stubs for a couple of calls 2022-02-11 16:02:25 +01:00
checkmessage.schema.json jsonschema: Formatting json schema and regenerate docs 2021-11-28 10:55:48 +10:30
close.request.json doc/schemas: fixes for request schemas. 2022-04-02 09:46:01 +10:30
close.schema.json jsonschema: Formatting json schema and regenerate docs 2021-11-28 10:55:48 +10:30
connect.request.json doc/schemas: fixes for request schemas. 2022-04-02 09:46:01 +10:30
connect.schema.json jsonschema: Formatting json schema and regenerate docs 2021-11-28 10:55:48 +10:30
createinvoice.request.json cln-rpc: Add invoice RPC methods 2022-04-02 09:46:01 +10:30
createinvoice.schema.json doc: Annotate secrets and hashes in the JSON Schemas 2022-04-02 09:46:01 +10:30
createonion.request.json doc: Annotate secrets and hashes in the JSON Schemas 2022-04-02 09:46:01 +10:30
createonion.schema.json doc: Annotate secrets and hashes in the JSON Schemas 2022-04-02 09:46:01 +10:30
datastore.request.json doc/schemas: fixes for request schemas. 2022-04-02 09:46:01 +10:30
datastore.schema.json jsonschema: Formatting json schema and regenerate docs 2021-11-28 10:55:48 +10:30
decode.schema.json bolt11: support payment_metadata. 2022-04-02 09:40:18 +10:30
decodepay.schema.json bolt11: support payment_metadata. 2022-04-02 09:40:18 +10:30
deldatastore.request.json doc/schemas: fixes for request schemas. 2022-04-02 09:46:01 +10:30
deldatastore.schema.json jsonschema: Formatting json schema and regenerate docs 2021-11-28 10:55:48 +10:30
delexpiredinvoice.request.json doc/schemas: fixes for request schemas. 2022-04-02 09:46:01 +10:30
delexpiredinvoice.schema.json jsonschema: Formatting json schema and regenerate docs 2021-11-28 10:55:48 +10:30
delinvoice.request.json doc/schemas: fixes for request schemas. 2022-04-02 09:46:01 +10:30
delinvoice.schema.json doc: Annotate secrets and hashes in the JSON Schemas 2022-04-02 09:46:01 +10:30
delpay.schema.json jsonschema: Formatting json schema and regenerate docs 2021-11-28 10:55:48 +10:30
disableoffer.schema.json jsonschema: Formatting json schema and regenerate docs 2021-11-28 10:55:48 +10:30
disconnect.request.json cln-rpc: Yet more RPC methods being mapped 2022-04-02 09:46:01 +10:30
disconnect.schema.json jsonschema: Formatting json schema and regenerate docs 2021-11-28 10:55:48 +10:30
feerates.request.json cln-rpc: Yet more RPC methods being mapped 2022-04-02 09:46:01 +10:30
feerates.schema.json jsonschema: Formatting json schema and regenerate docs 2021-11-28 10:55:48 +10:30
fetchinvoice.schema.json jsonschema: Formatting json schema and regenerate docs 2021-11-28 10:55:48 +10:30
fundchannel_cancel.schema.json jsonschema: Formatting json schema and regenerate docs 2021-11-28 10:55:48 +10:30
fundchannel_complete.schema.json jsonschema: Formatting json schema and regenerate docs 2021-11-28 10:55:48 +10:30
fundchannel_start.schema.json Add more warnings to fundchannel_start 2022-03-24 14:11:40 +10:30
fundchannel.schema.json jsonschema: Formatting json schema and regenerate docs 2021-11-28 10:55:48 +10:30
funderupdate.schema.json jsonschema: Formatting json schema and regenerate docs 2021-11-28 10:55:48 +10:30
fundpsbt.request.json doc/schemas: fixes for request schemas. 2022-04-02 09:46:01 +10:30
fundpsbt.schema.json jsonschema: Formatting json schema and regenerate docs 2021-11-28 10:55:48 +10:30
getinfo.request.json json-rpc: Add request stubs for a couple of calls 2022-02-11 16:02:25 +01:00
getinfo.schema.json doc: fix getinfo non-ASCII chars for older mrkd. 2022-04-25 21:03:22 +09:30
getlog.schema.json jsonschema: Formatting json schema and regenerate docs 2021-11-28 10:55:48 +10:30
getroute.request.json cln-rpc: Yet more RPC methods being mapped 2022-04-02 09:46:01 +10:30
getroute.schema.json lightningd: allow 'style' 'legacy' for clboss compat (with deprecated_apis). 2022-03-24 13:19:10 +10:30
getsharedsecret.schema.json jsonschema: Formatting json schema and regenerate docs 2021-11-28 10:55:48 +10:30
help.schema.json jsonschema: Formatting json schema and regenerate docs 2021-11-28 10:55:48 +10:30
invoice.request.json doc/schemas: fixes for request schemas. 2022-04-02 09:46:01 +10:30
invoice.schema.json doc: Annotate secrets and hashes in the JSON Schemas 2022-04-02 09:46:01 +10:30
keysend.request.json doc/schemas: fixes for request schemas. 2022-04-02 09:46:01 +10:30
keysend.schema.json doc: Annotate secrets and hashes in the JSON Schemas 2022-04-02 09:46:01 +10:30
listchannels.request.json json-rpc: Add request stubs for a couple of calls 2022-02-11 16:02:25 +01:00
listchannels.schema.json doc/schemas: disallow unknown fields in listchannels. 2022-02-08 12:06:16 +01:00
listconfigs.schema.json doc: htlc_minimum_msat htlc_maximum_msat announce_discovered_ip 2022-04-05 05:45:04 +09:30
listdatastore.request.json doc/schemas: fixes for request schemas. 2022-04-02 09:46:01 +10:30
listdatastore.schema.json jsonschema: Formatting json schema and regenerate docs 2021-11-28 10:55:48 +10:30
listforwards.request.json cln-rpc: Yet more RPC methods being mapped 2022-04-02 09:46:01 +10:30
listforwards.schema.json lightningd: add "style" to listforwards. 2022-03-31 19:38:05 +10:30
listfunds.request.json json-rpc: Add request stubs for a couple of calls 2022-02-11 16:02:25 +01:00
listfunds.schema.json Restore description of "reserved" field for listfunds 2022-05-17 10:28:03 +09:30
listinvoices.request.json doc/schemas: fixes for request schemas. 2022-04-02 09:46:01 +10:30
listinvoices.schema.json doc: Annotate secrets and hashes in the JSON Schemas 2022-04-02 09:46:01 +10:30
listnodes.request.json doc: set additionalProperties to false in all request schemas. 2022-04-02 09:46:01 +10:30
listnodes.schema.json bolt7: allow announcement of ADDR_TYPE_DNS 2021-11-30 09:38:17 +10:30
listoffers.schema.json jsonschema: Formatting json schema and regenerate docs 2021-11-28 10:55:48 +10:30
listpays.request.json cln-rpc: Yet more RPC methods being mapped 2022-04-02 09:46:01 +10:30
listpays.schema.json pay/sendpay: also store description in case bolt11 uses description_hash. 2022-04-04 20:26:04 +09:30
listpeers.request.json json-rpc: Add request stubs for a couple of calls 2022-02-11 16:02:25 +01:00
listpeers.schema.json jsonrpc: adds optional remote_addr to listpeers 2022-06-17 20:30:16 +09:30
listsendpays.request.json doc: Annotate secrets and hashes in the JSON Schemas 2022-04-02 09:46:01 +10:30
listsendpays.schema.json pay/sendpay: also store description in case bolt11 uses description_hash. 2022-04-04 20:26:04 +09:30
listtransactions.request.json grpc: Map sendonion and createonion 2022-04-02 09:46:01 +10:30
listtransactions.schema.json json: fix up msat amounts in non-_msat fields. 2022-06-21 06:52:35 +09:30
multifundchannel.schema.json jsonschema: Formatting json schema and regenerate docs 2021-11-28 10:55:48 +10:30
multiwithdraw.schema.json jsonschema: Formatting json schema and regenerate docs 2021-11-28 10:55:48 +10:30
newaddr.request.json doc/schemas: fixes for request schemas. 2022-04-02 09:46:01 +10:30
newaddr.schema.json jsonschema: Formatting json schema and regenerate docs 2021-11-28 10:55:48 +10:30
notifications.schema.json jsonschema: Formatting json schema and regenerate docs 2021-11-28 10:55:48 +10:30
offer.schema.json jsonschema: Formatting json schema and regenerate docs 2021-11-28 10:55:48 +10:30
offerout.schema.json jsonschema: Formatting json schema and regenerate docs 2021-11-28 10:55:48 +10:30
openchannel_abort.schema.json jsonschema: Formatting json schema and regenerate docs 2021-11-28 10:55:48 +10:30
openchannel_bump.schema.json jsonschema: Formatting json schema and regenerate docs 2021-11-28 10:55:48 +10:30
openchannel_init.schema.json jsonschema: Formatting json schema and regenerate docs 2021-11-28 10:55:48 +10:30
openchannel_signed.schema.json jsonschema: Formatting json schema and regenerate docs 2021-11-28 10:55:48 +10:30
openchannel_update.schema.json jsonschema: Formatting json schema and regenerate docs 2021-11-28 10:55:48 +10:30
parsefeerate.schema.json jsonschema: Formatting json schema and regenerate docs 2021-11-28 10:55:48 +10:30
pay.request.json pay: require description if bolt11 only has hash. 2022-04-04 20:26:04 +09:30
pay.schema.json doc: Annotate secrets and hashes in the JSON Schemas 2022-04-02 09:46:01 +10:30
ping.request.json cln-rpc: Yet more RPC methods being mapped 2022-04-02 09:46:01 +10:30
ping.schema.json jsonschema: Formatting json schema and regenerate docs 2021-11-28 10:55:48 +10:30
plugin.schema.json jsonschema: Formatting json schema and regenerate docs 2021-11-28 10:55:48 +10:30
reserveinputs.schema.json jsonschema: Formatting json schema and regenerate docs 2021-11-28 10:55:48 +10:30
sendcustommsg.schema.json jsonschema: Formatting json schema and regenerate docs 2021-11-28 10:55:48 +10:30
sendinvoice.schema.json jsonschema: Formatting json schema and regenerate docs 2021-11-28 10:55:48 +10:30
sendonion.request.json doc: Annotate secrets and hashes in the JSON Schemas 2022-04-02 09:46:01 +10:30
sendonion.schema.json doc: Annotate secrets and hashes in the JSON Schemas 2022-04-02 09:46:01 +10:30
sendonionmessage.schema.json jsonschema: Formatting json schema and regenerate docs 2021-11-28 10:55:48 +10:30
sendpay.request.json doc: Annotate secrets and hashes in the JSON Schemas 2022-04-02 09:46:01 +10:30
sendpay.schema.json doc: Annotate secrets and hashes in the JSON Schemas 2022-04-02 09:46:01 +10:30
sendpsbt.request.json doc/schemas: fixes for request schemas. 2022-04-02 09:46:01 +10:30
sendpsbt.schema.json jsonschema: Formatting json schema and regenerate docs 2021-11-28 10:55:48 +10:30
setchannel.schema.json setchannel: don't let them advertize htlc_maximum_msat larger than capacity. 2022-03-22 18:45:41 +10:30
setchannelfee.schema.json jsonschema: Formatting json schema and regenerate docs 2021-11-28 10:55:48 +10:30
signmessage.request.json cln-rpc: Yet more RPC methods being mapped 2022-04-02 09:46:01 +10:30
signmessage.schema.json jsonschema: Formatting json schema and regenerate docs 2021-11-28 10:55:48 +10:30
signpsbt.request.json doc/schemas: fixes for request schemas. 2022-04-02 09:46:01 +10:30
signpsbt.schema.json jsonschema: Formatting json schema and regenerate docs 2021-11-28 10:55:48 +10:30
stop.schema.json jsonschema: Formatting json schema and regenerate docs 2021-11-28 10:55:48 +10:30
txdiscard.request.json doc: Annotate secrets and hashes in the JSON Schemas 2022-04-02 09:46:01 +10:30
txdiscard.schema.json jsonschema: Formatting json schema and regenerate docs 2021-11-28 10:55:48 +10:30
txprepare.request.json doc/schemas: fixes for request schemas. 2022-04-02 09:46:01 +10:30
txprepare.schema.json jsonschema: Formatting json schema and regenerate docs 2021-11-28 10:55:48 +10:30
txsend.request.json doc: Annotate secrets and hashes in the JSON Schemas 2022-04-02 09:46:01 +10:30
txsend.schema.json jsonschema: Formatting json schema and regenerate docs 2021-11-28 10:55:48 +10:30
unreserveinputs.schema.json jsonschema: Formatting json schema and regenerate docs 2021-11-28 10:55:48 +10:30
utxopsbt.request.json doc/schemas: fixes for request schemas. 2022-04-02 09:46:01 +10:30
utxopsbt.schema.json jsonschema: Formatting json schema and regenerate docs 2021-11-28 10:55:48 +10:30
waitanyinvoice.request.json doc/schemas: fixes for request schemas. 2022-04-02 09:46:01 +10:30
waitanyinvoice.schema.json doc: Annotate secrets and hashes in the JSON Schemas 2022-04-02 09:46:01 +10:30
waitblockheight.schema.json jsonschema: Formatting json schema and regenerate docs 2021-11-28 10:55:48 +10:30
waitinvoice.request.json doc: set additionalProperties to false in all request schemas. 2022-04-02 09:46:01 +10:30
waitinvoice.schema.json doc: Annotate secrets and hashes in the JSON Schemas 2022-04-02 09:46:01 +10:30
waitsendpay.request.json doc: Annotate secrets and hashes in the JSON Schemas 2022-04-02 09:46:01 +10:30
waitsendpay.schema.json doc: Annotate secrets and hashes in the JSON Schemas 2022-04-02 09:46:01 +10:30
withdraw.request.json doc/schemas: fixes for request schemas. 2022-04-02 09:46:01 +10:30
withdraw.schema.json jsonschema: Formatting json schema and regenerate docs 2021-11-28 10:55:48 +10:30
WRITING_SCHEMAS.md doc: Fixed grammars and add jq as dev dependences. 2021-11-28 10:55:48 +10:30