This proposal introduces new operations that separate sending a payment from receiving the payment. CAP 23 introduces a new ledger key type and a new set of operations.
This issue keeps track of related work to support CAP23 in the ingestion system, web API, and SDKs.
We need to extend the ingestion system to support CAP23. Depends on:
TODO: Create sub-issue for SDK related work, depends on Web API work #2860
The suggested payload format of predicates is pretty cryptic right now. Horizon usually presents more readable resources.
There's some prior work around predicate trees in a JSON format. One notable example is mongodb's query language.
I propose moving from a {"type": i, "value": x} format to a {i_str: x} format.
"predicate": {
"type": 1,
"value": [
{
"type": 4,
"value": "1594066025"
},
{
"type": 3,
"value": "1594066090"
}
]
}
"predicate": {
"and" : [
{"after": 1594066025},
{"before": 1594066090}
]
}
Horizon support for CAP23 has been completed.
Most helpful comment
The suggested payload format of predicates is pretty cryptic right now. Horizon usually presents more readable resources.
There's some prior work around predicate trees in a JSON format. One notable example is mongodb's query language.
I propose moving from a
{"type": i, "value": x}format to a{i_str: x}format.Example
Original
Proposed