From a018517be52b08a20cfeed20f8416cd33f4974e5 Mon Sep 17 00:00:00 2001 From: Christian Blättler Date: Tue, 5 Mar 2024 22:13:17 +0100 Subject: dd46: syntax fixes --- design-documents/046-mumimo-contracts.rst | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'design-documents') diff --git a/design-documents/046-mumimo-contracts.rst b/design-documents/046-mumimo-contracts.rst index b76d1539..9c693b01 100644 --- a/design-documents/046-mumimo-contracts.rst +++ b/design-documents/046-mumimo-contracts.rst @@ -210,7 +210,7 @@ The contract terms v1 will have the following structure: // Maximum wire fee accepted by the merchant (customer share to be // divided by the ``wire_fee_amortization`` factor, and further reduced // if deposit fees are below ``max_fee``). Default if missing is zero. - max_wire_fee: Amount; + max_wire_fee?: Amount; // Over how many customer transactions does the merchant expect to // amortize wire fees on average? If the exchange's wire fee is @@ -220,7 +220,7 @@ The contract terms v1 will have the following structure: // between the ``max_fee`` and the sum of the actual deposit fees. // Optional, default value if missing is 1. 0 and negative values are // invalid and also interpreted as 1. - wire_fee_amortization: number; + wire_fee_amortization?: number; // Exchanges that the merchant accepts for this currency. exchanges: Exchange[]; @@ -269,15 +269,15 @@ The contract terms v1 will have the following structure: // Map from authority labels to meta data abou the // respective token authority. - token_types: { [authority_label: TokenAuthority }; + token_types: { [authority_label: string]: TokenAuthority }; } .. ts:def:: ContractInput type ContractInput = - | ContractInputRation - | ContractInputToken; + ContractInputRation | + ContractInputToken; .. ts:def:: ContractInputRation @@ -450,8 +450,8 @@ The contract terms v1 will have the following structure: .. ts:def:: TokenSignerPublicKey type TokenSignerPublicKey = - | DenomGroupRsa - | DenomGroupCs; + DenomGroupRsa | + DenomGroupCs; TODO: may want to do a deep copy and rename DenomGroup* to TokenSignerPublicKey* here. -- cgit v1.2.3