Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
digraph MarloweRequest {
rankdir=TD;
graph [pad="0.02", nodesep="0.6", ranksep="0.5", splines="line"];
node [shape="rect", pad="0.1", style="filled, rounded", fillcolor="#f9f9f9", fontname="Courier New", fontsize="10"];
edge [tailport="s", headport="n", color="#aaa", fontname="Courier New", fontsize="10"];

OracleChoiceStep [label=<<b>WHEN CHOICE</b> <i>x</i> <b>BY</b> <i>oracle pubKeyHash</i>> color="#aaa" ];

OracleChoiceStep2 [label=<<b>WHEN CHOICE</b> <i>y</i> <b>BY</b> <i>oracle pubKeyHash</i>> color="#aaa" ];

PayStep [label=<<b>PAY </b><i>fee</i> <b>TO</b> <i>oracle pubKeyHash</i>> color="#aaa" ];

OracleChoiceStep -> OracleChoiceStep2;
OracleChoiceStep2 -> PayStep;

ContinuationStep [label=<<b>post oracle choice contract</b>> color="#aaa" ];

PayStep -> ContinuationStep;
}
326 changes: 326 additions & 0 deletions CIP XXX Marlowe Oracle Protocol/diagrams/marlowe-multiple-choices.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ digraph MarloweRequestDelay {

OracleChoiceStep -> PayStep;

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

PayStep -> DelayStep;

Expand Down
256 changes: 116 additions & 140 deletions CIP XXX Marlowe Oracle Protocol/diagrams/marlowe-request-delay.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions CIP XXX Marlowe Oracle Protocol/diagrams/marlowe-request.dot
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ digraph MarloweRequest {

OracleChoiceStep -> PayStep;

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

PayStep -> CloseStep;
PayStep -> ContinuationStep;
}
70 changes: 61 additions & 9 deletions CIP XXX Marlowe Oracle Protocol/diagrams/marlowe-request.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions CIP XXX Marlowe Oracle Protocol/diagrams/marlowe-split-payment.dot
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
digraph MarloweRequest {
rankdir=TD;
graph [pad="0.02", nodesep="0.6", ranksep="0.5", splines="line"];
node [shape="rect", pad="0.1", style="filled, rounded", fillcolor="#f9f9f9", fontname="Courier New", fontsize="10"];
edge [tailport="s", headport="n", color="#aaa", fontname="Courier New", fontsize="10"];

OracleChoiceStep [label=<<b>WHEN CHOICE</b> <i>x</i> <b>BY</b> <i>oracle pubKeyHash</i>> color="#aaa" ];

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" ];

OracleChoiceStep -> PayStep1;

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" ];

PayStep1 -> PayStep2;

ContinuationStep [label=<<b>post oracle choice contract</b>> color="#aaa" ];

PayStep2 -> ContinuationStep;
}
401 changes: 401 additions & 0 deletions CIP XXX Marlowe Oracle Protocol/diagrams/marlowe-split-payment.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 6 additions & 2 deletions CIP XXX Marlowe Oracle Protocol/markdown-watcher.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
#!/usr/bin/env bash


inotifywait -m -e modify --quiet --format '%w%f' --include '.*\.md$' . | while read -r mdfile; do
inotifywait -m -e close_write --quiet --format '%w%f' --include '.*\.md$' . | while read -r mdfile; do
echo ""
echo ""
echo ""
echo ""
echo "Detected change in $mdfile"
htmlfile="${mdfile%.md}.html"
# Compile only the modified .dot to .svg
Expand All @@ -13,5 +17,5 @@ inotifywait -m -e modify --quiet --format '%w%f' --include '.*\.md$' . | while r
"$mdfile" -o "$htmlfile"
echo "Generated $htmlfile"
# Open (or bring to front) only that single SVG
firefox "$htmlfile" &
# firefox "$htmlfile" &
done
313 changes: 313 additions & 0 deletions CIP XXX Marlowe Oracle Protocol/v0.2.0.md

Large diffs are not rendered by default.

415 changes: 415 additions & 0 deletions CIP XXX Marlowe Oracle Protocol/v0.3.0.md

Large diffs are not rendered by default.