commit bc060bdb903690082556404d8951751335d17e3f parent b1de34da944f5a8b9c7f5498701e4423d6132d0e Author: Christian Grothoff <christian@grothoff.org> Date: Thu, 13 Jul 2023 21:57:00 +0200 revise /keys API a bit more: flat hierarchy is good Diffstat:
| M | core/api-exchange.rst | | | 32 | +++++++++++--------------------- |
1 file changed, 11 insertions(+), 21 deletions(-)
diff --git a/core/api-exchange.rst b/core/api-exchange.rst @@ -121,9 +121,17 @@ possibly by using HTTPS. // based on this value. asset_type: string; - // Details about the exchange's wire accounts and - // wire fees. - wire: ExchangeWireDetails; + // Array of wire accounts operated by the exchange for + // incoming wire transfers. + accounts: WireAccount[]; + + // Object mapping names of wire methods (i.e. "iban" or "x-taler-bank") + // to wire fees. + wire_fees: { method : AggregateTransferFee[] }; + + // List of exchanges that this exchange is partnering + // with to enable wallet-to-wallet transfers. + wads: ExchangePartner[]; // Set to true if this exchange allows the use // of reserves for tipping. @@ -200,24 +208,6 @@ possibly by using HTTPS. eddsa_pub: EddsaPublicKey; } - .. ts:def:: ExchangeWireDetails - - interface ExchangeWireDetails { - - // Array of wire accounts operated by the exchange for - // incoming wire transfers. - accounts: WireAccount[]; - - // Object mapping names of wire methods (i.e. "iban" or "x-taler-bank") - // to wire fees. - fees: { method : AggregateTransferFee[] }; - - // List of exchanges that this exchange is partnering - // with to enable wallet-to-wallet transfers. - wads: ExchangePartner[]; - - } - .. ts:def:: GlobalFees interface GlobalFees {