Skip to content

Commit d45b36a

Browse files
authored
Merge pull request #5 from marlowe-lang/develop
v0.2.0 & v0.3.0 of the spec
2 parents 486f64d + 6f9377c commit d45b36a

File tree

11 files changed

+1680
-154
lines changed

11 files changed

+1680
-154
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
digraph MarloweRequest {
2+
rankdir=TD;
3+
graph [pad="0.02", nodesep="0.6", ranksep="0.5", splines="line"];
4+
node [shape="rect", pad="0.1", style="filled, rounded", fillcolor="#f9f9f9", fontname="Courier New", fontsize="10"];
5+
edge [tailport="s", headport="n", color="#aaa", fontname="Courier New", fontsize="10"];
6+
7+
OracleChoiceStep [label=<<b>WHEN CHOICE</b> <i>x</i> <b>BY</b> <i>oracle pubKeyHash</i>> color="#aaa" ];
8+
9+
OracleChoiceStep2 [label=<<b>WHEN CHOICE</b> <i>y</i> <b>BY</b> <i>oracle pubKeyHash</i>> color="#aaa" ];
10+
11+
PayStep [label=<<b>PAY </b><i>fee</i> <b>TO</b> <i>oracle pubKeyHash</i>> color="#aaa" ];
12+
13+
OracleChoiceStep -> OracleChoiceStep2;
14+
OracleChoiceStep2 -> PayStep;
15+
16+
ContinuationStep [label=<<b>post oracle choice contract</b>> color="#aaa" ];
17+
18+
PayStep -> ContinuationStep;
19+
}

CIP XXX Marlowe Oracle Protocol/diagrams/marlowe-multiple-choices.svg

Lines changed: 326 additions & 0 deletions
Loading

CIP XXX Marlowe Oracle Protocol/diagrams/marlowe-request-delay.dot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ digraph MarloweRequestDelay {
1111

1212
OracleChoiceStep -> PayStep;
1313

14-
DelayStep [label=<<b>WHEN TX_INTERVAL_START</b> &gt; <i>delay timestamp</i> > color="#aaa" ];
14+
DelayStep [label=<<b>WHEN []</b> <i>delayTimestamp</i> > color="#aaa" ];
1515

1616
PayStep -> DelayStep;
1717

CIP XXX Marlowe Oracle Protocol/diagrams/marlowe-request-delay.svg

Lines changed: 116 additions & 140 deletions
Loading

CIP XXX Marlowe Oracle Protocol/diagrams/marlowe-request.dot

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ digraph MarloweRequest {
1010

1111
OracleChoiceStep -> PayStep;
1212

13-
CloseStep [label=<<b>CLOSE</b>> color="#aaa" ];
13+
ContinuationStep [label=<<b>post oracle choice contract</b>> color="#aaa" ];
1414

15-
PayStep -> CloseStep;
15+
PayStep -> ContinuationStep;
1616
}

CIP XXX Marlowe Oracle Protocol/diagrams/marlowe-request.svg

Lines changed: 61 additions & 9 deletions
Loading
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
digraph MarloweRequest {
2+
rankdir=TD;
3+
graph [pad="0.02", nodesep="0.6", ranksep="0.5", splines="line"];
4+
node [shape="rect", pad="0.1", style="filled, rounded", fillcolor="#f9f9f9", fontname="Courier New", fontsize="10"];
5+
edge [tailport="s", headport="n", color="#aaa", fontname="Courier New", fontsize="10"];
6+
7+
OracleChoiceStep [label=<<b>WHEN CHOICE</b> <i>x</i> <b>BY</b> <i>oracle pubKeyHash</i>> color="#aaa" ];
8+
9+
PayStep1 [label=<<b>PAY </b><i>1/2 * oracleFee</i> <b>TO</b> <i>oracle pubKeyHash</i> <b>BY</b> <i>party A</i>> color="#aaa" ];
10+
11+
OracleChoiceStep -> PayStep1;
12+
13+
PayStep2 [label=<<b>PAY </b><i>1/2 * oracleFee</i> <b>TO</b> <i>oracle pubKeyHash</i> <b>BY</b> <i>party B</i>> color="#aaa" ];
14+
15+
PayStep1 -> PayStep2;
16+
17+
ContinuationStep [label=<<b>post oracle choice contract</b>> color="#aaa" ];
18+
19+
PayStep2 -> ContinuationStep;
20+
}

CIP XXX Marlowe Oracle Protocol/diagrams/marlowe-split-payment.svg

Lines changed: 401 additions & 0 deletions
Loading

CIP XXX Marlowe Oracle Protocol/markdown-watcher.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
#!/usr/bin/env bash
22

33

4-
inotifywait -m -e modify --quiet --format '%w%f' --include '.*\.md$' . | while read -r mdfile; do
4+
inotifywait -m -e close_write --quiet --format '%w%f' --include '.*\.md$' . | while read -r mdfile; do
5+
echo ""
6+
echo ""
7+
echo ""
8+
echo ""
59
echo "Detected change in $mdfile"
610
htmlfile="${mdfile%.md}.html"
711
# Compile only the modified .dot to .svg
@@ -13,5 +17,5 @@ inotifywait -m -e modify --quiet --format '%w%f' --include '.*\.md$' . | while r
1317
"$mdfile" -o "$htmlfile"
1418
echo "Generated $htmlfile"
1519
# Open (or bring to front) only that single SVG
16-
firefox "$htmlfile" &
20+
# firefox "$htmlfile" &
1721
done

CIP XXX Marlowe Oracle Protocol/v0.2.0.md

Lines changed: 313 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)