Skip to content

Commit

Permalink
fix : implements the bkpr-listincome plugin for grpc interface.
Browse files Browse the repository at this point in the history
Changelog-added support for the `bkpr-listincome` for grpc interface

Signed-off-by: harshit933 <[email protected]>
  • Loading branch information
Harshit933 authored and cdecker committed Feb 1, 2024
1 parent 6bf97ac commit 85b79bc
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
2 changes: 2 additions & 0 deletions contrib/msggen/msggen/gen/grpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,8 @@ def generate(self, service: Service) -> None:
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,
Expand Down
21 changes: 21 additions & 0 deletions doc/schemas/bkpr-listincome.request.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
}

0 comments on commit 85b79bc

Please sign in to comment.