commit a018517be52b08a20cfeed20f8416cd33f4974e5
parent 9d329e9f27894c62e390c4eea37533e9679911df
Author: Christian Blättler <blatc2@bfh.ch>
Date: Tue, 5 Mar 2024 22:13:17 +0100
dd46: syntax fixes
Diffstat:
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git 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.