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:
Christian Decker 2022-01-14 14:03:19 +01:00
parent b0053e2ca2
commit 3c32f7d8f6
8 changed files with 148 additions and 0 deletions

View 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."
}
}
}

View 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"
}
}
}

View 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."
}
}
}

View 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": ""
}
}
}

View file

@ -0,0 +1,7 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"required": [],
"additionalProperties": false,
"properties": {}
}

View 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."
}
}
}

View 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?"
}
}
}

View 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”."
}
}
}