Skip to content

Commit b13ae62

Browse files
committed
release
1 parent 9595261 commit b13ae62

File tree

150 files changed

+9608
-499
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

150 files changed

+9608
-499
lines changed

docs/01-a-simple-counter.html

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,21 @@
3333
-->
3434
<meta http-equiv="content-security-policy" content="">
3535
<link href="./_app/immutable/assets/_layout.e2caa7e1.css" rel="stylesheet">
36-
<link href="./_app/immutable/assets/app.643df88b.css" rel="stylesheet">
37-
<link rel="modulepreload" href="./_app/immutable/entry/start.c2425ebb.js">
36+
<link href="./_app/immutable/assets/app.8bddbbc4.css" rel="stylesheet">
37+
<link rel="modulepreload" href="./_app/immutable/entry/start.57fba29c.js">
3838
<link rel="modulepreload" href="./_app/immutable/chunks/index.9fe14626.js">
39-
<link rel="modulepreload" href="./_app/immutable/chunks/singletons.801b6ae2.js">
39+
<link rel="modulepreload" href="./_app/immutable/chunks/singletons.8eba159b.js">
4040
<link rel="modulepreload" href="./_app/immutable/chunks/index.1c761ed5.js">
41-
<link rel="modulepreload" href="./_app/immutable/entry/app.84914b12.js">
41+
<link rel="modulepreload" href="./_app/immutable/entry/app.40bbec70.js">
4242
<link rel="modulepreload" href="./_app/immutable/entry/layout.svelte.2cd9eabd.js">
4343
<link rel="modulepreload" href="./_app/immutable/entry/_layout.ts.984db11e.js">
4444
<link rel="modulepreload" href="./_app/immutable/chunks/_layout.da46b06b.js">
45-
<link rel="modulepreload" href="./_app/immutable/entry/(examples)-layout.svelte.e930d547.js">
46-
<link rel="modulepreload" href="./_app/immutable/chunks/store.cab86f52.js">
47-
<link rel="modulepreload" href="./_app/immutable/chunks/examples.963926c2.js">
48-
<link rel="modulepreload" href="./_app/immutable/chunks/app.ecb9aaff.js">
49-
<link rel="modulepreload" href="./_app/immutable/entry/(examples)-01-a-simple-counter-page.svelte.e9141ee2.js">
50-
<link rel="modulepreload" href="./_app/immutable/chunks/index.f166c76f.js">
45+
<link rel="modulepreload" href="./_app/immutable/entry/(examples)-layout.svelte.ff919840.js">
46+
<link rel="modulepreload" href="./_app/immutable/chunks/store.7ab6b232.js">
47+
<link rel="modulepreload" href="./_app/immutable/chunks/examples.698e07fa.js">
48+
<link rel="modulepreload" href="./_app/immutable/chunks/app.cf8f4105.js">
49+
<link rel="modulepreload" href="./_app/immutable/entry/(examples)-01-a-simple-counter-page.svelte.b729bc3c.js">
50+
<link rel="modulepreload" href="./_app/immutable/chunks/index.639aa391.js">
5151
</head>
5252
<body>
5353
<div style="display: contents">
@@ -83,7 +83,7 @@
8383
self.val = self.val + 1;
8484
}
8585

86-
// read only getter for querying the counter value
86+
// read-only getter for querying the counter value
8787
get fun value(): Int {
8888
return self.val;
8989
}
@@ -113,7 +113,7 @@
113113

114114
<script>
115115
{
116-
__sveltekit_1pqugmw = {
116+
__sveltekit_on1xqs = {
117117
env: {},
118118
base: new URL(".", location).pathname.slice(0, -1),
119119
element: document.currentScript.parentElement
@@ -122,10 +122,10 @@
122122
const data = [null,null,null];
123123

124124
Promise.all([
125-
import("./_app/immutable/entry/start.c2425ebb.js"),
126-
import("./_app/immutable/entry/app.84914b12.js")
125+
import("./_app/immutable/entry/start.57fba29c.js"),
126+
import("./_app/immutable/entry/app.40bbec70.js")
127127
]).then(([kit, app]) => {
128-
kit.start(app, __sveltekit_1pqugmw.element, {
128+
kit.start(app, __sveltekit_on1xqs.element, {
129129
node_ids: [0, 2, 5],
130130
data,
131131
form: null,

docs/01-hello-world.html

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,21 @@
3333
-->
3434
<meta http-equiv="content-security-policy" content="">
3535
<link href="./_app/immutable/assets/_layout.e2caa7e1.css" rel="stylesheet">
36-
<link href="./_app/immutable/assets/app.643df88b.css" rel="stylesheet">
37-
<link rel="modulepreload" href="./_app/immutable/entry/start.c2425ebb.js">
36+
<link href="./_app/immutable/assets/app.8bddbbc4.css" rel="stylesheet">
37+
<link rel="modulepreload" href="./_app/immutable/entry/start.57fba29c.js">
3838
<link rel="modulepreload" href="./_app/immutable/chunks/index.9fe14626.js">
39-
<link rel="modulepreload" href="./_app/immutable/chunks/singletons.801b6ae2.js">
39+
<link rel="modulepreload" href="./_app/immutable/chunks/singletons.8eba159b.js">
4040
<link rel="modulepreload" href="./_app/immutable/chunks/index.1c761ed5.js">
41-
<link rel="modulepreload" href="./_app/immutable/entry/app.84914b12.js">
41+
<link rel="modulepreload" href="./_app/immutable/entry/app.40bbec70.js">
4242
<link rel="modulepreload" href="./_app/immutable/entry/layout.svelte.2cd9eabd.js">
4343
<link rel="modulepreload" href="./_app/immutable/entry/_layout.ts.984db11e.js">
4444
<link rel="modulepreload" href="./_app/immutable/chunks/_layout.da46b06b.js">
45-
<link rel="modulepreload" href="./_app/immutable/entry/(examples)-layout.svelte.e930d547.js">
46-
<link rel="modulepreload" href="./_app/immutable/chunks/store.cab86f52.js">
47-
<link rel="modulepreload" href="./_app/immutable/chunks/examples.963926c2.js">
48-
<link rel="modulepreload" href="./_app/immutable/chunks/app.ecb9aaff.js">
49-
<link rel="modulepreload" href="./_app/immutable/entry/(examples)-01-hello-world-page.svelte.cd06dd42.js">
50-
<link rel="modulepreload" href="./_app/immutable/chunks/index.f166c76f.js">
45+
<link rel="modulepreload" href="./_app/immutable/entry/(examples)-layout.svelte.ff919840.js">
46+
<link rel="modulepreload" href="./_app/immutable/chunks/store.7ab6b232.js">
47+
<link rel="modulepreload" href="./_app/immutable/chunks/examples.698e07fa.js">
48+
<link rel="modulepreload" href="./_app/immutable/chunks/app.cf8f4105.js">
49+
<link rel="modulepreload" href="./_app/immutable/entry/(examples)-01-hello-world-page.svelte.e4fc0913.js">
50+
<link rel="modulepreload" href="./_app/immutable/chunks/index.639aa391.js">
5151
</head>
5252
<body>
5353
<div style="display: contents">
@@ -60,11 +60,12 @@
6060

6161

6262
<div class="split vertical svelte-9dft0e" style="--primary-size:47%;--min-primary-size:0;--min-secondary-size:0;--splitter-size:7px"><div class="primary svelte-9dft0e"><div slot="primary" class="panelMarkdown" style="position: absolute; top: 0; bottom: 0; left: 0; right: 0; overflow: scroll;"><!-- HTML_TAG_START --><h1 id="a-simple-counter">A Simple Counter</h1>
63-
<p>This contract has a state variable that persists between contract calls, the counter value. When persisted, it&#39;s encoded as a <code>uint32</code> - a 32-bit unsigned integer. Contracts pay rent in proportion to the amount of persistent space they consume, so compact representations are encouraged.</p>
63+
<p>This is a simple counter contract that allows users to increment its value.</p>
64+
<p>This contract has a state variable <code>val</code> that persists between contract calls - the counter value. When persisted, this variable is encoded <code>as uint32</code> - a 32-bit unsigned integer. Contracts pay rent in proportion to the amount of persistent space they consume, so compact representations are encouraged.</p>
6465
<p>State variables should be initialized in <code>init()</code> that runs on deployment of the contract.</p>
6566
<h2 id="receiving-messages">Receiving messages</h2>
66-
<p>This contract can receive messages. Unlike getters that are read-only and are free to call, messages can do write operations and change the persistent state. Incoming messages are processed in <code>receive()</code> methods as transactions and cost gas for the sender.</p>
67-
<p>After deploying the contract, send the <code>increment</code> message by pressing the <span class="mdButton grape">Send increment</span> button and then call the getter to see that the value indeed changed.</p>
67+
<p>This contract can receive <em>messages</em> from users. Unlike getters that are just read-only, messages can do write operations and change the contract&#39;s persistent state. Incoming messages are processed in <code>receive()</code> methods as transactions and cost gas for the sender.</p>
68+
<p>After deploying the contract, send the <code>increment</code> message by pressing the <span class="mdButton grape">Send increment</span> button in order to increase the counter value by one. Afterwards, call the getter <code>value()</code> to see that the value indeed changed.</p>
6869
<!-- HTML_TAG_END -->
6970
<div class="navMarkdown">
7071
</div>
@@ -77,7 +78,7 @@ <h2 id="receiving-messages">Receiving messages</h2>
7778
<div class="split horizontal svelte-9dft0e" style="--primary-size:80%;--min-primary-size:0;--min-secondary-size:0;--splitter-size:7px"><div class="primary svelte-9dft0e"><div slot="primary" class="panelCode" style="position: absolute; top: 0; bottom: 0; left: 0; right: 0;"><div style="height: 100%; overflow: scroll;"><div contenteditable="false" class="dark"><pre>contract HelloWorld {
7879

7980
get fun greeting(): String {
80-
return "Hello World";
81+
return "hello world";
8182
}
8283

8384
}</pre></div></div></div></div>
@@ -120,7 +121,7 @@ <h2 id="receiving-messages">Receiving messages</h2>
120121

121122
<script>
122123
{
123-
__sveltekit_1pqugmw = {
124+
__sveltekit_on1xqs = {
124125
env: {},
125126
base: new URL(".", location).pathname.slice(0, -1),
126127
element: document.currentScript.parentElement
@@ -129,10 +130,10 @@ <h2 id="receiving-messages">Receiving messages</h2>
129130
const data = [null,null,null];
130131

131132
Promise.all([
132-
import("./_app/immutable/entry/start.c2425ebb.js"),
133-
import("./_app/immutable/entry/app.84914b12.js")
133+
import("./_app/immutable/entry/start.57fba29c.js"),
134+
import("./_app/immutable/entry/app.40bbec70.js")
134135
]).then(([kit, app]) => {
135-
kit.start(app, __sveltekit_1pqugmw.element, {
136+
kit.start(app, __sveltekit_on1xqs.element, {
136137
node_ids: [0, 2, 6],
137138
data,
138139
form: null,

docs/01-the-deployable-trait.html

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,21 @@
3333
-->
3434
<meta http-equiv="content-security-policy" content="">
3535
<link href="./_app/immutable/assets/_layout.e2caa7e1.css" rel="stylesheet">
36-
<link href="./_app/immutable/assets/app.643df88b.css" rel="stylesheet">
37-
<link rel="modulepreload" href="./_app/immutable/entry/start.c2425ebb.js">
36+
<link href="./_app/immutable/assets/app.8bddbbc4.css" rel="stylesheet">
37+
<link rel="modulepreload" href="./_app/immutable/entry/start.57fba29c.js">
3838
<link rel="modulepreload" href="./_app/immutable/chunks/index.9fe14626.js">
39-
<link rel="modulepreload" href="./_app/immutable/chunks/singletons.801b6ae2.js">
39+
<link rel="modulepreload" href="./_app/immutable/chunks/singletons.8eba159b.js">
4040
<link rel="modulepreload" href="./_app/immutable/chunks/index.1c761ed5.js">
41-
<link rel="modulepreload" href="./_app/immutable/entry/app.84914b12.js">
41+
<link rel="modulepreload" href="./_app/immutable/entry/app.40bbec70.js">
4242
<link rel="modulepreload" href="./_app/immutable/entry/layout.svelte.2cd9eabd.js">
4343
<link rel="modulepreload" href="./_app/immutable/entry/_layout.ts.984db11e.js">
4444
<link rel="modulepreload" href="./_app/immutable/chunks/_layout.da46b06b.js">
45-
<link rel="modulepreload" href="./_app/immutable/entry/(examples)-layout.svelte.e930d547.js">
46-
<link rel="modulepreload" href="./_app/immutable/chunks/store.cab86f52.js">
47-
<link rel="modulepreload" href="./_app/immutable/chunks/examples.963926c2.js">
48-
<link rel="modulepreload" href="./_app/immutable/chunks/app.ecb9aaff.js">
49-
<link rel="modulepreload" href="./_app/immutable/entry/(examples)-01-the-deployable-trait-page.svelte.9a028988.js">
50-
<link rel="modulepreload" href="./_app/immutable/chunks/index.f166c76f.js">
45+
<link rel="modulepreload" href="./_app/immutable/entry/(examples)-layout.svelte.ff919840.js">
46+
<link rel="modulepreload" href="./_app/immutable/chunks/store.7ab6b232.js">
47+
<link rel="modulepreload" href="./_app/immutable/chunks/examples.698e07fa.js">
48+
<link rel="modulepreload" href="./_app/immutable/chunks/app.cf8f4105.js">
49+
<link rel="modulepreload" href="./_app/immutable/entry/(examples)-01-the-deployable-trait-page.svelte.00d09636.js">
50+
<link rel="modulepreload" href="./_app/immutable/chunks/index.639aa391.js">
5151
</head>
5252
<body>
5353
<div style="display: contents">
@@ -61,9 +61,11 @@
6161

6262
<div class="split vertical svelte-9dft0e" style="--primary-size:47%;--min-primary-size:0;--min-secondary-size:0;--splitter-size:7px"><div class="primary svelte-9dft0e"><div slot="primary" class="panelMarkdown" style="position: absolute; top: 0; bottom: 0; left: 0; right: 0; overflow: scroll;"><!-- HTML_TAG_START --><h1 id="hello-world">Hello World</h1>
6363
<p>This is probably the simplest possible Tact program. It will provide callers with the classic output &quot;hello world&quot;.</p>
64-
<p>Tact lets you write smart contracts. This code defines a single contract named <code>HelloWorld</code>. Smart contracts must be deployed on-chain to be usable, try to deploy this contract by pressing the <span class="mdButton blue">Deploy</span> button.</p>
64+
<p>Tact lets you write smart contracts. This code defines a single contract named <code>HelloWorld</code>. Smart contracts must be deployed to the blockchain network to be usable, try to deploy this contract by pressing the <span class="mdButton blue">Deploy</span> button.</p>
65+
<p>Contract deployments usually cost gas. This learning tool deploys to an <a href="https://github.com/tact-lang/tact-emulator">emulator</a> of TON blockchain, so gas is emulated TON coin (which is free).</p>
6566
<h2 id="a-simple-interaction">A simple interaction</h2>
66-
<p>Contracts can have <em>getters</em> like <code>greeting()</code>. These are special functions that allow users to query information from the contract. Try to call the getter by pressing the <span class="mdButton teal">Get greeting</span> button.</p>
67+
<p>Contracts can have <em>getters</em> like <code>greeting()</code>. Getters are special external interface functions that allow users to query information from the contract. Try to call the getter by pressing the <span class="mdButton teal">Get greeting</span> button. Calling getters is free and does not cost gas.</p>
68+
<p>Getter declarations in Tact always start with the <code>get</code> prefix. The getter must also specify its return type - <code>String</code> in this case. If we were to omit the <code>get</code> from the function declaration, external users would no longer be able call this function and it would essentially become a private method.</p>
6769
<!-- HTML_TAG_END -->
6870
<div class="navMarkdown">
6971
</div>
@@ -125,7 +127,7 @@ <h2 id="a-simple-interaction">A simple interaction</h2>
125127

126128
<script>
127129
{
128-
__sveltekit_1pqugmw = {
130+
__sveltekit_on1xqs = {
129131
env: {},
130132
base: new URL(".", location).pathname.slice(0, -1),
131133
element: document.currentScript.parentElement
@@ -134,10 +136,10 @@ <h2 id="a-simple-interaction">A simple interaction</h2>
134136
const data = [null,null,null];
135137

136138
Promise.all([
137-
import("./_app/immutable/entry/start.c2425ebb.js"),
138-
import("./_app/immutable/entry/app.84914b12.js")
139+
import("./_app/immutable/entry/start.57fba29c.js"),
140+
import("./_app/immutable/entry/app.40bbec70.js")
139141
]).then(([kit, app]) => {
140-
kit.start(app, __sveltekit_1pqugmw.element, {
142+
kit.start(app, __sveltekit_on1xqs.element, {
141143
node_ids: [0, 2, 7],
142144
data,
143145
form: null,

docs/02-addresses.html

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,21 @@
3333
-->
3434
<meta http-equiv="content-security-policy" content="">
3535
<link href="./_app/immutable/assets/_layout.e2caa7e1.css" rel="stylesheet">
36-
<link href="./_app/immutable/assets/app.643df88b.css" rel="stylesheet">
37-
<link rel="modulepreload" href="./_app/immutable/entry/start.c2425ebb.js">
36+
<link href="./_app/immutable/assets/app.8bddbbc4.css" rel="stylesheet">
37+
<link rel="modulepreload" href="./_app/immutable/entry/start.57fba29c.js">
3838
<link rel="modulepreload" href="./_app/immutable/chunks/index.9fe14626.js">
39-
<link rel="modulepreload" href="./_app/immutable/chunks/singletons.801b6ae2.js">
39+
<link rel="modulepreload" href="./_app/immutable/chunks/singletons.8eba159b.js">
4040
<link rel="modulepreload" href="./_app/immutable/chunks/index.1c761ed5.js">
41-
<link rel="modulepreload" href="./_app/immutable/entry/app.84914b12.js">
41+
<link rel="modulepreload" href="./_app/immutable/entry/app.40bbec70.js">
4242
<link rel="modulepreload" href="./_app/immutable/entry/layout.svelte.2cd9eabd.js">
4343
<link rel="modulepreload" href="./_app/immutable/entry/_layout.ts.984db11e.js">
4444
<link rel="modulepreload" href="./_app/immutable/chunks/_layout.da46b06b.js">
45-
<link rel="modulepreload" href="./_app/immutable/entry/(examples)-layout.svelte.e930d547.js">
46-
<link rel="modulepreload" href="./_app/immutable/chunks/store.cab86f52.js">
47-
<link rel="modulepreload" href="./_app/immutable/chunks/examples.963926c2.js">
48-
<link rel="modulepreload" href="./_app/immutable/chunks/app.ecb9aaff.js">
49-
<link rel="modulepreload" href="./_app/immutable/entry/(examples)-02-addresses-page.svelte.b9201afa.js">
50-
<link rel="modulepreload" href="./_app/immutable/chunks/index.f166c76f.js">
45+
<link rel="modulepreload" href="./_app/immutable/entry/(examples)-layout.svelte.ff919840.js">
46+
<link rel="modulepreload" href="./_app/immutable/chunks/store.7ab6b232.js">
47+
<link rel="modulepreload" href="./_app/immutable/chunks/examples.698e07fa.js">
48+
<link rel="modulepreload" href="./_app/immutable/chunks/app.cf8f4105.js">
49+
<link rel="modulepreload" href="./_app/immutable/entry/(examples)-02-addresses-page.svelte.57ef7558.js">
50+
<link rel="modulepreload" href="./_app/immutable/chunks/index.639aa391.js">
5151
</head>
5252
<body>
5353
<div style="display: contents">
@@ -161,7 +161,7 @@
161161

162162
<script>
163163
{
164-
__sveltekit_1pqugmw = {
164+
__sveltekit_on1xqs = {
165165
env: {},
166166
base: new URL(".", location).pathname.slice(0, -1),
167167
element: document.currentScript.parentElement
@@ -170,10 +170,10 @@
170170
const data = [null,null,null];
171171

172172
Promise.all([
173-
import("./_app/immutable/entry/start.c2425ebb.js"),
174-
import("./_app/immutable/entry/app.84914b12.js")
173+
import("./_app/immutable/entry/start.57fba29c.js"),
174+
import("./_app/immutable/entry/app.40bbec70.js")
175175
]).then(([kit, app]) => {
176-
kit.start(app, __sveltekit_1pqugmw.element, {
176+
kit.start(app, __sveltekit_on1xqs.element, {
177177
node_ids: [0, 2, 8],
178178
data,
179179
form: null,

0 commit comments

Comments
 (0)