-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathrholang-playground.html
180 lines (167 loc) · 7.35 KB
/
rholang-playground.html
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
<!DOCTYPE html>
<html>
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-DG68B6L79K"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-DG68B6L79K');
</script>
<script src="js/jquery-3.3.1.min.js"></script>
<title>Rholang Playground - RChain</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" charset="UTF-8">
<link rel='stylesheet' href='css/layout.css' />
<link rel='stylesheet' href='css/ladl.css' />
<link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet">
<link rel="shortcut icon" href="assets/favicon-red.png" />
<style>
pre {
line-height: 1
}
</style>
</head>
<body>
<div id="navOpen" onclick="navOpen()">
<div class="burger"></div>
<div class="burger"></div>
<div class="burger"></div>
</div>
<div class="nav" id="nav">
<div id="navClose" onclick="navClose()">X</div>
<div class="item" onclick="">
<a href="index.html">Home</a>
</div>
<div class="item" onclick="">
<a href="documentation.html">Documentation</a>
</div>
<div class="item" onclick="">
<a href="https://faq.rchain.coop" target="_blank">FAQ</a>
</div>
<div class="item" onclick="">
<a href="token-swap.html">REV Issuance</a>
</div>
<div class="item" onclick="">
<a href="https://rchain.coop" target="_blank">RChain.Coop</a>
</div>
</div>
<div class="masthead">
<div id="logoWrapper">
<img src="assets/rchain-redwhite-logo.png" alt="RChain">
</div>
</div>
<div class="bodyText">
<h1>Rholang Playground</h1>
<form>
<fieldset>
<input type="hidden" name="node" value="https://observer.testnet.rchain.coop" />
<label>Example:
<select name="example">
<option>Hello World</option>
</select>
</label>
<!-- prettier-ignore -->
<textarea id='rholang-term' cols="80" rows="16">new world in {
world!("Hello!")
}
</textarea>
<br />
<button id="run">Run</button>
</fieldset>
</form>
<section id="resultSection" style="display: none">
<h2>Result</h2>
<pre id="result"></pre>
<h2>Block Info</h2>
<small>
<pre id="blockInfo"></pre>
</small>
</section>
<section id="problemSection" style="display: none">
<h3>Problem</h3>
<pre id="problem"></pre>
</section>
<h2>More on Rholang</h2>
<ul>
<li>
<a href="https://marketplace.visualstudio.com/items?itemName=tgrospic.rholang">
vs-code extension for Rholang</a>
</li>
<li>
<a href="https://github.com/rchain/rchain/blob/dev/rholang/reference_doc/rho_cheatsheet.pdf">
Rholang cheat-sheet</a></li>
<li>
<a href="https://github.com/rchain/rchain/tree/dev/rholang/examples">rholang/examples</a>
</li>
<li>
<a href="https://github.com/rchain/rchain/tree/dev/rholang/reference_doc">A Rholang Reference</a>
</li>
<li>
<a href="https://github.com/rchain/rchain/blob/dev/rholang/src/main/bnfc/rholang_mercury.cf">
Rholang Mercury BNF specification
</a>
</li>
<li>
<a href="https://drive.google.com/file/d/1FvPuiPm7ytGyklex_PEmVyJ8XgbTdIEg/view?usp=sharing">Rholang
1.1</a>
May 2019 by L.G. Meredith
</li>
<li>
<a href="https://github.com/rchain/rchain/tree/dev/casper/src/main/resources">genesis contracts</a>:
Casper Proof of Stake, REV Vault, MakeMint, ListOps, Either
</li>
<li>
<a href="https://github.com/JoshOrndorff/LearnRholangByExample">Learn Rholang By Example</a> course, Nov
2018
</li>
<li>
<a
href="https://www.youtube.com/watch?v=gRxXQx3cn9c&list=PLf2bbiic5ZjD2QuelvOaoLF7gFiSj7u7j&index=31">Getting
started with Rholang smart contracts</a> 1hr talk, Jun 2018
</li>
<li>
<a href="https://developer.rchain.coop/assets/rholang-spec-0.2.pdf">
Contracts, Composition, and Scaling:
The Rholang specification</a> Feb 2018<br />
Draft version 0.2
by Meredith, Pettersson, Stephenson, Stay, Shikama, and Denman
</li>
</ul>
<script type="module">
import { RholangForm } from './js/rholang-playground.js';
const $ = (selector) => document.querySelector(selector);
window.addEventListener("DOMContentLoaded", () => {
RholangForm({ $, fetch });
});
</script>
</div>
<div id="footer">
<div class="footer-social">
<ul>
<li><a href="https://www.facebook.com/rchaincooperative/" target="_blank"><img
src="assets/fb-circle.png"><span class="socialText">Facebook</span></a></li>
<li><a href="https://twitter.com/rchain_coop" target="_blank"><img
src="assets/twitter-circle2.png"><span class="socialText">Twitter</span></a></li>
<li><a href="https://github.com/rchain" target="_blank"><img src="assets/github-circle.png"><span
class="socialText">Github</span></a></li>
<li><a href="https://medium.com/rchain-cooperative" target="_blank"><img
src="assets/medium-circle.png"><span class="socialText">Medium</span></a></li>
<li><a href="https://www.reddit.com/r/RChain/" target="_blank"><img
src="assets/reddit-circle2.png"><span class="socialText">Reddit</span></a></li>
<li><a href="https://t.me/rchaincoop" target="_blank"><img src="assets/telegram2.png"><span
class="socialText">Telegram</span></a></li>
<li><a href="https://discord.gg/NWkQnfH" target="_blank"><img src="assets/discord-circle.png"><span
class="socialText">Discord</span></a></li>
<li><a href="https://www.youtube.com/channel/UCSS3jCffMiz574_q64Ukj_w" target="_blank"><img
src="assets/youtube-circle.png"><span class="socialText">Youtube</span></a></li>
<li><a href="https://www.linkedin.com/company/rchain-cooperative/" target="_blank"><img
src="assets/linkedin-circle.png"><span class="socialText">Linkedin</span></a></li>
</ul>
</div>
<div class="copy">© 2020 RChain Cooperative</div>
</div>
<script src="js/developer.rchain.js"></script>
</body>
</html>