-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmarlowe.lbnf
62 lines (51 loc) · 1.95 KB
/
marlowe.lbnf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<Contract> ::= "Close"
| "Pay" <Party> <Payee> <Token> <Value> <Contract>
| "If" <Observation> <Contract> <Contract>
| "When" "[" {<Case> ","} "]" <Timeout> <Contract>
| "Let" <ValueId> <Value> <Contract>
| "Assert" <Observation> <Contract>
| "(" <Contract> ")"
<Case> ::= "Case" <Action> <Contract>
| "MerkleizedCase" <Action> <String>
<Action> ::= "Deposit" <Party> <Party> <Token> <Value>
| "Choice" <ChoiceId> "[" {<Bound> ","} "]"
| "Notify" <Observation>
| "(" <Action> ")"
<Value> ::= "AvailableMoney" <Party> <Token>
| "Constant" <Integer>
| "NegValue" <Value>
| "AddValue" <Value> <Value>
| "SubValue" <Value> <Value>
| "MulValue" <Value> <Value>
| "DivValue" <Value> <Value>
| "ChoiceValue" <ChoiceId>
| "TimeIntervalStart"
| "TimeIntervalEnd"
| "UseValue" <ValueId>
| "Cond" <Observation> <Value> <Value>
| "(" <Value> ")"
<Observation> ::= "AndObs" <Observation> <Observation>
| "OrObs" <Observation> <Observation>
| "NotObs" <Observation>
| "ChoseSomething" <ChoiceId>
| "ValueGE" <Value> <Value>
| "ValueGT" <Value> <Value>
| "ValueLT" <Value> <Value>
| "ValueLE" <Value> <Value>
| "ValueEQ" <Value> <Value>
| "TrueObs"
| "FalseObs"
| "(" <Observation> ")"
<Token> ::= "Token" <String> <String>
| "(" <Token> ")"
<Party> ::= "Address" <String>
| "Role" <String>
| "(" <Party> ")"
<Payee> ::= "Account" <Party>
| "Party" <Party>
| "(" <Payee> ")"
<ChoiceId> ::= "ChoiceId" <String> <Party>
| "(" <ChoiceId> ")"
<ValueId> ::= <String>
<Bound> ::= "Bound" <Integer> <Integer>
<Timeout> ::= <Integer>