mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-11 01:27:58 +01:00
json-rpc: Add request stubs for a couple of calls
These are required so we can generate the requests, not just the responses. We'll add more as we test compatibility with our generation code.
This commit is contained in:
parent
b0053e2ca2
commit
3c32f7d8f6
8 changed files with 148 additions and 0 deletions
14
doc/schemas/addgossip.request.json
Normal file
14
doc/schemas/addgossip.request.json
Normal file
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"message"
|
||||
],
|
||||
"properties": {
|
||||
"message": {
|
||||
"type": "hex",
|
||||
"description": "The raw, hex-encoded, gossip message to add to the local gossip view."
|
||||
}
|
||||
}
|
||||
}
|
16
doc/schemas/autocleaninvoice.request.json
Normal file
16
doc/schemas/autocleaninvoice.request.json
Normal file
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [],
|
||||
"properties": {
|
||||
"expired_by": {
|
||||
"type": "u64",
|
||||
"description": "How long an invoice must be expired (seconds) before we delete it."
|
||||
},
|
||||
"cycle_seconds": {
|
||||
"type": "u64",
|
||||
"description": "The interval (in seconds) between cleaning expired invoices"
|
||||
}
|
||||
}
|
||||
}
|
23
doc/schemas/checkmessage.request.json
Normal file
23
doc/schemas/checkmessage.request.json
Normal file
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"message",
|
||||
"zbase"
|
||||
],
|
||||
"properties": {
|
||||
"message": {
|
||||
"type": "string",
|
||||
"description": "Message to be checked against the signature."
|
||||
},
|
||||
"zbase": {
|
||||
"type": "string",
|
||||
"description": "The Zbase32 encoded signature to verify."
|
||||
},
|
||||
"pubkey": {
|
||||
"type": "pubkey",
|
||||
"description": "The Zbase32 encoded signature to verify."
|
||||
}
|
||||
}
|
||||
}
|
40
doc/schemas/close.request.json
Normal file
40
doc/schemas/close.request.json
Normal file
|
@ -0,0 +1,40 @@
|
|||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"id"
|
||||
],
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "pubkey",
|
||||
"description": ""
|
||||
},
|
||||
"unilateraltimeout": {
|
||||
"type": "u32",
|
||||
"description": ""
|
||||
},
|
||||
"destination": {
|
||||
"type": "string",
|
||||
"description": ""
|
||||
},
|
||||
"fee_negotiation_step": {
|
||||
"type": "string",
|
||||
"description": ""
|
||||
},
|
||||
"wrong_funding": {
|
||||
"type": "txid",
|
||||
"description": ""
|
||||
},
|
||||
"force_lease_closed": {
|
||||
"type": "boolean",
|
||||
"description": ""
|
||||
},
|
||||
"feerange": {
|
||||
"type": {
|
||||
"type": "array",
|
||||
"items": "u32"
|
||||
},
|
||||
"description": ""
|
||||
}
|
||||
}
|
||||
}
|
7
doc/schemas/getinfo.request.json
Normal file
7
doc/schemas/getinfo.request.json
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"required": [],
|
||||
"additionalProperties": false,
|
||||
"properties": {}
|
||||
}
|
20
doc/schemas/listchannels.request.json
Normal file
20
doc/schemas/listchannels.request.json
Normal file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"required": [],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"short_channel_id": {
|
||||
"type": "short_channel_id",
|
||||
"description": "If short_channel_id is a short channel id, then only known channels with a matching short_channel_id are returned. Otherwise, it must be null."
|
||||
},
|
||||
"source": {
|
||||
"type": "pubkey",
|
||||
"description": "If source is a node id, then only channels leading from that node id are returned."
|
||||
},
|
||||
"destination": {
|
||||
"type": "pubkey",
|
||||
"description": "If destination is a node id, then only channels leading to that node id are returned."
|
||||
}
|
||||
}
|
||||
}
|
12
doc/schemas/listfunds.request.json
Normal file
12
doc/schemas/listfunds.request.json
Normal file
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"required": [],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"spent": {
|
||||
"type": "boolean",
|
||||
"description": "Should outputs that are already spent be included in the result?"
|
||||
}
|
||||
}
|
||||
}
|
16
doc/schemas/listpeers.request.json
Normal file
16
doc/schemas/listpeers.request.json
Normal file
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"required": [],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "pubkey",
|
||||
"description": "If supplied, limits the result to just the peer with the given ID, if it exists."
|
||||
},
|
||||
"level": {
|
||||
"type": "string",
|
||||
"description": "Supplying level will show log entries related to that peer at the given log level. Valid log levels are “io”, “debug”, “info”, and “unusual”."
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue