Skip to content

Commit

Permalink
msggen: Regenerate to include offer and listoffers
Browse files Browse the repository at this point in the history
Changelog-None Unrelease, so no notes needed.
  • Loading branch information
cdecker committed Feb 9, 2024
1 parent cfea45d commit 4c4c74f
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 3 deletions.
76 changes: 73 additions & 3 deletions contrib/msggen/msggen/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2583,7 +2583,7 @@
"description": "period starts at this UNIX timestamp"
},
"start_any_period": {
"type": "u64",
"type": "boolean",
"description": "you can start at any period (only if `basetime` present)"
},
"limit": {
Expand Down Expand Up @@ -2878,7 +2878,7 @@
"description": "period starts at this UNIX timestamp"
},
"start_any_period": {
"type": "u64",
"type": "boolean",
"description": "you can start at any period (only if `basetime` present)"
},
"limit": {
Expand Down Expand Up @@ -3242,7 +3242,7 @@
"description": "period starts at this UNIX timestamp"
},
"start_any_period": {
"type": "u64",
"type": "boolean",
"description": "you can start at any period (only if `basetime` present)"
},
"limit": {
Expand Down Expand Up @@ -10163,6 +10163,22 @@
}
}
},
"listoffers.request.json": {
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"required": [],
"additionalProperties": false,
"properties": {
"offer_id": {
"type": "hash",
"description": "Only return offers matching this ID"
},
"active_only": {
"type": "boolean",
"description": "f active_only is set and is true, only offers with active true are returned."
}
}
},
"listoffers.schema.json": {
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
Expand Down Expand Up @@ -13412,6 +13428,60 @@
"additionalProperties": false,
"properties": {}
},
"offer.request.json": {
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"required": [
"amount",
"description"
],
"properties": {
"amount": {
"type": "string",
"description": "The amount parameter can be the string \"any\", which creates an offer that can be paid with any amount (e.g. a donation). Otherwise it can be a positive value in millisatoshi precision; it can be a whole number, or a whole number ending in msat or sat, or a number with three decimal places ending in sat, or a number with 1 to 11 decimal places ending in btc. `amount` can also have an ISO 4217 postfix (i.e. USD), in which case currency conversion will need to be done for the invoice itself. A plugin is needed which provides the \"currencyconvert\" API for this currency, otherwise the offer creation will fail."
},
"description": {
"type": "string",
"description": "a short description of purpose of the offer"
},
"issuer": {
"type": "string",
"description": "who is issuing this offer"
},
"label": {
"type": "string",
"description": "an internal-use name for the offer"
},
"quantity_max": {
"type": "u64",
"description": "specifies the number of items up (and including) this maximum"
},
"absolute_expiry": {
"type": "u64",
"description": "the time the offer is valid until, in seconds since the first day of 1970 UTC"
},
"recurrence": {
"type": "string",
"description": "A recurrence period with unit (matches '[0-9]+(seconds|minutes|hours|days|weeks|months|years)' "
},
"recurrence_base": {
"type": "string",
"description": "Time in seconds since the first day of 1970 UTC. If not prefixed with an '@' the offer will start in any period (no missed payments will be performed)"
},
"recurrence_paywindow": {
"type": "string",
"description": "an optional argument of form '-time+time[%]'. The first time is the number of seconds before the start of a period in which an invoice and payment is valid, the second time is the number of seconds after the start of the period. For example -604800+86400 means you can fetch an pay the invoice 4 weeks before the given period starts, and up to 1 day afterwards. The optional % indicates that the amount of the invoice will be scaled by the time remaining in the period. If this is not specified, the default is that payment is allowed during the current and previous periods. This is encoded in the offer."
},
"recurrence_limit": {
"type": "u64",
"description": "the maximum recurrence period which exists"
},
"single_use": {
"type": "boolean",
"description": "indicates that the offer is only valid once"
}
}
},
"offer.schema.json": {
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
Expand Down
1 change: 1 addition & 0 deletions contrib/pyln-grpc-proto/pyln/grpc/node_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions contrib/pyln-grpc-proto/pyln/grpc/primitives_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4c4c74f

Please sign in to comment.