Skip to content

Commit

Permalink
feat: adding offer command to pyln-testing and msggen
Browse files Browse the repository at this point in the history
  • Loading branch information
vacwmX authored and cdecker committed Feb 7, 2024
1 parent 68bb1ff commit 5eacb5b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/msggen/msggen/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def load_jsonrpc_service(schema_dir: str):
"ListHtlcs",
# "multifundchannel",
# "multiwithdraw",
# "offer",
"Offer",
# "openchannel_abort",
# "openchannel_bump",
# "openchannel_init",
Expand Down
12 changes: 12 additions & 0 deletions contrib/pyln-testing/pyln/testing/grpc2py.py
Original file line number Diff line number Diff line change
Expand Up @@ -1421,6 +1421,18 @@ def listhtlcs2py(m):
})


def offer2py(m):
return remove_default({
"offer_id": m.offer_id, # PrimitiveField in generate_composite
"active": m.active, # PrimitiveField in generate_composite
"single_use": m.single_use, # PrimitiveField in generate_composite
"bolt12": m.bolt12, # PrimitiveField in generate_composite
"used": m.used, # PrimitiveField in generate_composite
"created": c.created, # PrimitiveField in generate_composite
"label": c.label, # PrimitiveField in generate_composite # PrimitiveField in generate_composite
})


def ping2py(m):
return remove_default({
"totlen": m.totlen, # PrimitiveField in generate_composite
Expand Down

0 comments on commit 5eacb5b

Please sign in to comment.