cln-rpc: Yet more RPC methods being mapped

- disconnect
 - feerates
 - getroute
 - listforwards
 - listpays
 - ping
 - signmessage
This commit is contained in:
Christian Decker
2022-04-01 14:43:35 +10:30
committed by Rusty Russell
parent 0c08ca8f27
commit 241a891190
9 changed files with 165 additions and 11 deletions

View File

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

View File

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

View File

@@ -0,0 +1,46 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"required": [
"id",
"msatoshi",
"riskfactor"
],
"properties": {
"id": {
"type": "pubkey",
"description": ""
},
"msatoshi": {
"type": "msat",
"description": ""
},
"riskfactor": {
"type": "u64",
"description": ""
},
"cltv": {
"type": "number",
"description": ""
},
"fromid": {
"type": "pubkey",
"description": ""
},
"fuzzpercent": {
"type": "u32",
"description": ""
},
"exclude": {
"type": "array",
"description": "",
"items": {
"type": "string"
}
},
"maxhops": {
"type": "u32",
"description": ""
}
}
}

View File

@@ -0,0 +1,22 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"required": [],
"properties": {
"status": {
"type": "string",
"enum": [
"offered",
"settled",
"local_failed",
"failed"
]
},
"in_channel": {
"type": "short_channel_id"
},
"out_channel": {
"type": "short_channel_id"
}
}
}

View File

@@ -0,0 +1,22 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"required": [],
"additionalProperties": false,
"properties": {
"bolt11": {
"type": "string"
},
"payment_hash": {
"type": "hash"
},
"status": {
"type": "string",
"enum": [
"pending",
"complete",
"failed"
]
}
}
}

View File

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

View File

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