fix : implements the bkpr-listincome plugin for grpc interface.

Changelog-added support for the `bkpr-listincome` for grpc interface

Signed-off-by: harshit933 <harshitverma933@gmail.com>
This commit is contained in:
Harshit933 2023-08-18 21:02:57 +05:30 committed by Christian Decker
parent 6bf97ac259
commit 85b79bc2e1
2 changed files with 23 additions and 0 deletions

View file

@ -559,6 +559,8 @@ class GrpcServerGenerator(GrpcConverterGenerator):
mname = method_name_overrides.get(method.name, method.name)
# Tonic will convert to snake-case, so we have to do it here too
name = re.sub(r'(?<!^)(?=[A-Z])', '_', mname).lower()
name = name.replace("-", "")
method.name = method.name.replace("-", "")
self.write(f"""\
async fn {name}(
&self,

View file

@ -0,0 +1,21 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"added": "pre-v0.10.1",
"required": [],
"additionalProperties": false,
"properties": {
"consolidate_fees": {
"type": "boolean",
"description": "A brief description about consolidate_fees"
},
"start_time": {
"type": "u32",
"description": "Filters the events after the time"
},
"end_time": {
"type": "u32",
"description": "Filters the events up to the timestamp"
}
}
}