commit 0cb6b9d4878f4acc45e833ec8abbfaaf58b99d03
parent aaa97dbe48f9e3ffb253a140cdcaadab8f8bdfd5
Author: Christian Blättler <blatc2@bfh.ch>
Date: Thu, 13 Jun 2024 10:00:37 +0200
fix design document code highlight
Diffstat:
1 file changed, 13 insertions(+), 2 deletions(-)
diff --git a/design-documents/046-mumimo-contracts.rst b/design-documents/046-mumimo-contracts.rst
@@ -90,7 +90,7 @@ New Contract Terms Format
The contract terms v1 will have the following structure:
-.. ts:def::
+.. ts:def:: ContractTermsV1
interface ContractTermsV1 {
// This is version 1, the previous contract terms SHOULD
@@ -212,6 +212,8 @@ The contract terms v1 will have the following structure:
exchanges: Exchange[];
}
+.. ts:def:: ContractChoice
+
interface ContractChoice {
// Price to be paid for this choice. Could be 0.
// The price is in addition to other instruments,
@@ -232,6 +234,8 @@ The contract terms v1 will have the following structure:
max_fee: Amount;
}
+.. ts:def:: ContractInput
+
type ContractInput =
| ContractInputRation
| ContractInputToken;
@@ -319,10 +323,14 @@ The contract terms v1 will have the following structure:
number?: Integer;
}
+.. ts:def:: ContractTokenDetails
+
type ContractTokenDetails =
| ContractSubscriptionTokenDetails
| ContractDiscountTokenDetails
+.. ts:def:: ContractSubscriptionTokenDetails
+
interface ContractSubscriptionTokenDetails {
class: "subscription";
@@ -334,6 +342,7 @@ The contract terms v1 will have the following structure:
trusted_domains: string[];
};
+.. ts:def:: ContractDiscountTokenDetails
interface ContractDiscountTokenDetails {
class: "discount";
@@ -349,7 +358,6 @@ The contract terms v1 will have the following structure:
expected_domains: string[];
};
-
.. ts:def:: ContractTokenFamily
interface ContractTokenFamily {
@@ -387,11 +395,13 @@ The contract terms v1 will have the following structure:
ass_sig?: EddsaSignature;
};
+.. ts:def:: TokenIssuePublicKey
type TokenIssuePublicKey =
| TokenIssueRsaPublicKey
| TokenIssueCsPublicKey;
+.. ts:def:: TokenIssueRsaPublicKey
interface TokenIssueRsaPublicKey {
cipher: "RSA";
@@ -406,6 +416,7 @@ The contract terms v1 will have the following structure:
valid_before: Timestamp;
}
+.. ts:def:: TokenIssueCsPublicKey
interface TokenIssueCsPublicKey {
cipher: "CS";