diff options
author | Christian Blättler <blatc2@bfh.ch> | 2024-03-05 22:13:17 +0100 |
---|---|---|
committer | Christian Blättler <blatc2@bfh.ch> | 2024-03-05 22:13:17 +0100 |
commit | a018517be52b08a20cfeed20f8416cd33f4974e5 (patch) | |
tree | b7bb9a8e5126674e1215acf106a1a654c329a8fa /design-documents | |
parent | 9d329e9f27894c62e390c4eea37533e9679911df (diff) | |
download | docs-a018517be52b08a20cfeed20f8416cd33f4974e5.tar.gz docs-a018517be52b08a20cfeed20f8416cd33f4974e5.tar.bz2 docs-a018517be52b08a20cfeed20f8416cd33f4974e5.zip |
dd46: syntax fixes
Diffstat (limited to 'design-documents')
-rw-r--r-- | design-documents/046-mumimo-contracts.rst | 14 |
1 files changed, 7 insertions, 7 deletions
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. |