Skip to content

Commit 10b2822

Browse files
committed
release
1 parent a728c1b commit 10b2822

File tree

135 files changed

+1215
-654
lines changed

Some content is hidden

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

135 files changed

+1215
-654
lines changed

docs/01-a-simple-counter.html

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,20 +34,20 @@
3434
<meta http-equiv="content-security-policy" content="">
3535
<link href="./_app/immutable/assets/_layout.e2caa7e1.css" rel="stylesheet">
3636
<link href="./_app/immutable/assets/app.8bddbbc4.css" rel="stylesheet">
37-
<link rel="modulepreload" href="./_app/immutable/entry/start.57fba29c.js">
37+
<link rel="modulepreload" href="./_app/immutable/entry/start.3bc5e522.js">
3838
<link rel="modulepreload" href="./_app/immutable/chunks/index.9fe14626.js">
39-
<link rel="modulepreload" href="./_app/immutable/chunks/singletons.8eba159b.js">
39+
<link rel="modulepreload" href="./_app/immutable/chunks/singletons.b8bd0a18.js">
4040
<link rel="modulepreload" href="./_app/immutable/chunks/index.1c761ed5.js">
41-
<link rel="modulepreload" href="./_app/immutable/entry/app.40bbec70.js">
41+
<link rel="modulepreload" href="./_app/immutable/entry/app.eb37a970.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.ff919840.js">
46-
<link rel="modulepreload" href="./_app/immutable/chunks/store.7ab6b232.js">
47-
<link rel="modulepreload" href="./_app/immutable/chunks/examples.698e07fa.js">
45+
<link rel="modulepreload" href="./_app/immutable/entry/(examples)-layout.svelte.0b8adaff.js">
46+
<link rel="modulepreload" href="./_app/immutable/chunks/store.380869d4.js">
47+
<link rel="modulepreload" href="./_app/immutable/chunks/examples.586a823f.js">
4848
<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">
49+
<link rel="modulepreload" href="./_app/immutable/entry/(examples)-01-a-simple-counter-page.svelte.82bdcf7b.js">
50+
<link rel="modulepreload" href="./_app/immutable/chunks/index.b268dd33.js">
5151
</head>
5252
<body>
5353
<div style="display: contents">
@@ -113,7 +113,7 @@
113113

114114
<script>
115115
{
116-
__sveltekit_on1xqs = {
116+
__sveltekit_1vzu2s7 = {
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.57fba29c.js"),
126-
import("./_app/immutable/entry/app.40bbec70.js")
125+
import("./_app/immutable/entry/start.3bc5e522.js"),
126+
import("./_app/immutable/entry/app.eb37a970.js")
127127
]).then(([kit, app]) => {
128-
kit.start(app, __sveltekit_on1xqs.element, {
128+
kit.start(app, __sveltekit_1vzu2s7.element, {
129129
node_ids: [0, 2, 5],
130130
data,
131131
form: null,

docs/01-hello-world.html

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,20 +34,20 @@
3434
<meta http-equiv="content-security-policy" content="">
3535
<link href="./_app/immutable/assets/_layout.e2caa7e1.css" rel="stylesheet">
3636
<link href="./_app/immutable/assets/app.8bddbbc4.css" rel="stylesheet">
37-
<link rel="modulepreload" href="./_app/immutable/entry/start.57fba29c.js">
37+
<link rel="modulepreload" href="./_app/immutable/entry/start.3bc5e522.js">
3838
<link rel="modulepreload" href="./_app/immutable/chunks/index.9fe14626.js">
39-
<link rel="modulepreload" href="./_app/immutable/chunks/singletons.8eba159b.js">
39+
<link rel="modulepreload" href="./_app/immutable/chunks/singletons.b8bd0a18.js">
4040
<link rel="modulepreload" href="./_app/immutable/chunks/index.1c761ed5.js">
41-
<link rel="modulepreload" href="./_app/immutable/entry/app.40bbec70.js">
41+
<link rel="modulepreload" href="./_app/immutable/entry/app.eb37a970.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.ff919840.js">
46-
<link rel="modulepreload" href="./_app/immutable/chunks/store.7ab6b232.js">
47-
<link rel="modulepreload" href="./_app/immutable/chunks/examples.698e07fa.js">
45+
<link rel="modulepreload" href="./_app/immutable/entry/(examples)-layout.svelte.0b8adaff.js">
46+
<link rel="modulepreload" href="./_app/immutable/chunks/store.380869d4.js">
47+
<link rel="modulepreload" href="./_app/immutable/chunks/examples.586a823f.js">
4848
<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">
49+
<link rel="modulepreload" href="./_app/immutable/entry/(examples)-01-hello-world-page.svelte.b131a12f.js">
50+
<link rel="modulepreload" href="./_app/immutable/chunks/index.b268dd33.js">
5151
</head>
5252
<body>
5353
<div style="display: contents">
@@ -121,7 +121,7 @@ <h2 id="receiving-messages">Receiving messages</h2>
121121

122122
<script>
123123
{
124-
__sveltekit_on1xqs = {
124+
__sveltekit_1vzu2s7 = {
125125
env: {},
126126
base: new URL(".", location).pathname.slice(0, -1),
127127
element: document.currentScript.parentElement
@@ -130,10 +130,10 @@ <h2 id="receiving-messages">Receiving messages</h2>
130130
const data = [null,null,null];
131131

132132
Promise.all([
133-
import("./_app/immutable/entry/start.57fba29c.js"),
134-
import("./_app/immutable/entry/app.40bbec70.js")
133+
import("./_app/immutable/entry/start.3bc5e522.js"),
134+
import("./_app/immutable/entry/app.eb37a970.js")
135135
]).then(([kit, app]) => {
136-
kit.start(app, __sveltekit_on1xqs.element, {
136+
kit.start(app, __sveltekit_1vzu2s7.element, {
137137
node_ids: [0, 2, 6],
138138
data,
139139
form: null,

docs/01-the-deployable-trait.html

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -34,20 +34,20 @@
3434
<meta http-equiv="content-security-policy" content="">
3535
<link href="./_app/immutable/assets/_layout.e2caa7e1.css" rel="stylesheet">
3636
<link href="./_app/immutable/assets/app.8bddbbc4.css" rel="stylesheet">
37-
<link rel="modulepreload" href="./_app/immutable/entry/start.57fba29c.js">
37+
<link rel="modulepreload" href="./_app/immutable/entry/start.3bc5e522.js">
3838
<link rel="modulepreload" href="./_app/immutable/chunks/index.9fe14626.js">
39-
<link rel="modulepreload" href="./_app/immutable/chunks/singletons.8eba159b.js">
39+
<link rel="modulepreload" href="./_app/immutable/chunks/singletons.b8bd0a18.js">
4040
<link rel="modulepreload" href="./_app/immutable/chunks/index.1c761ed5.js">
41-
<link rel="modulepreload" href="./_app/immutable/entry/app.40bbec70.js">
41+
<link rel="modulepreload" href="./_app/immutable/entry/app.eb37a970.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.ff919840.js">
46-
<link rel="modulepreload" href="./_app/immutable/chunks/store.7ab6b232.js">
47-
<link rel="modulepreload" href="./_app/immutable/chunks/examples.698e07fa.js">
45+
<link rel="modulepreload" href="./_app/immutable/entry/(examples)-layout.svelte.0b8adaff.js">
46+
<link rel="modulepreload" href="./_app/immutable/chunks/store.380869d4.js">
47+
<link rel="modulepreload" href="./_app/immutable/chunks/examples.586a823f.js">
4848
<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">
49+
<link rel="modulepreload" href="./_app/immutable/entry/(examples)-01-the-deployable-trait-page.svelte.105c095f.js">
50+
<link rel="modulepreload" href="./_app/immutable/chunks/index.b268dd33.js">
5151
</head>
5252
<body>
5353
<div style="display: contents">
@@ -62,10 +62,11 @@
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>
6464
<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>
65+
<p>Contract deployments usually cost gas. This website 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>
66+
<p>If you&#39;re unfamilar with terms like <em>contract</em>, <em>deployment</em> and <em>gas</em>, please <a href="https://blog.ton.org/what_is_blockchain">read this post</a> first. It&#39;s a great introduction to all blockchain terminology you will need to learn Tact.</p>
6667
<h2 id="a-simple-interaction">A simple interaction</h2>
6768
<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>
69+
<p>Don&#39;t worry if some things aren&#39;t clear now, we will dive into getters in more detail later.</p>
6970
<!-- HTML_TAG_END -->
7071
<div class="navMarkdown">
7172
</div>
@@ -127,7 +128,7 @@ <h2 id="a-simple-interaction">A simple interaction</h2>
127128

128129
<script>
129130
{
130-
__sveltekit_on1xqs = {
131+
__sveltekit_1vzu2s7 = {
131132
env: {},
132133
base: new URL(".", location).pathname.slice(0, -1),
133134
element: document.currentScript.parentElement
@@ -136,10 +137,10 @@ <h2 id="a-simple-interaction">A simple interaction</h2>
136137
const data = [null,null,null];
137138

138139
Promise.all([
139-
import("./_app/immutable/entry/start.57fba29c.js"),
140-
import("./_app/immutable/entry/app.40bbec70.js")
140+
import("./_app/immutable/entry/start.3bc5e522.js"),
141+
import("./_app/immutable/entry/app.eb37a970.js")
141142
]).then(([kit, app]) => {
142-
kit.start(app, __sveltekit_on1xqs.element, {
143+
kit.start(app, __sveltekit_1vzu2s7.element, {
143144
node_ids: [0, 2, 7],
144145
data,
145146
form: null,

docs/02-addresses.html

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -34,20 +34,20 @@
3434
<meta http-equiv="content-security-policy" content="">
3535
<link href="./_app/immutable/assets/_layout.e2caa7e1.css" rel="stylesheet">
3636
<link href="./_app/immutable/assets/app.8bddbbc4.css" rel="stylesheet">
37-
<link rel="modulepreload" href="./_app/immutable/entry/start.57fba29c.js">
37+
<link rel="modulepreload" href="./_app/immutable/entry/start.3bc5e522.js">
3838
<link rel="modulepreload" href="./_app/immutable/chunks/index.9fe14626.js">
39-
<link rel="modulepreload" href="./_app/immutable/chunks/singletons.8eba159b.js">
39+
<link rel="modulepreload" href="./_app/immutable/chunks/singletons.b8bd0a18.js">
4040
<link rel="modulepreload" href="./_app/immutable/chunks/index.1c761ed5.js">
41-
<link rel="modulepreload" href="./_app/immutable/entry/app.40bbec70.js">
41+
<link rel="modulepreload" href="./_app/immutable/entry/app.eb37a970.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.ff919840.js">
46-
<link rel="modulepreload" href="./_app/immutable/chunks/store.7ab6b232.js">
47-
<link rel="modulepreload" href="./_app/immutable/chunks/examples.698e07fa.js">
45+
<link rel="modulepreload" href="./_app/immutable/entry/(examples)-layout.svelte.0b8adaff.js">
46+
<link rel="modulepreload" href="./_app/immutable/chunks/store.380869d4.js">
47+
<link rel="modulepreload" href="./_app/immutable/chunks/examples.586a823f.js">
4848
<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">
49+
<link rel="modulepreload" href="./_app/immutable/entry/(examples)-02-addresses-page.svelte.e01e8b8d.js">
50+
<link rel="modulepreload" href="./_app/immutable/chunks/index.b268dd33.js">
5151
</head>
5252
<body>
5353
<div style="display: contents">
@@ -62,11 +62,12 @@
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="the-deployable-trait">The Deployable Trait</h1>
6363
<p>Tact doesn&#39;t support classical class inheritance, but contracts can implement <em>traits</em>. One of the commonly used traits is <code>Deployable</code>. It implements a simple receiver for the <code>Deploy</code> message which helps deploy contracts in a standard way.</p>
6464
<p>All contracts are deployed by sending them a message. This can be any message, but best practice is to designate the special <code>Deploy</code> message for this purpose.</p>
65-
<p>This message has a single field, <code>queryId</code>, which is provided by the deployer. If the deploy succeeds, the contract will reply with the message <code>DeployOk</code> and echo the same <code>queryId</code> in the response.</p>
66-
<p>If you&#39;re using TypeScript to deploy, sending the deploy message should look like:</p>
65+
<p>This message has a single field, <code>queryId</code>, which is provided by the deployer (normally zero). If the deploy succeeds, the contract will reply with the message <code>DeployOk</code> and echo the same <code>queryId</code> in the response.</p>
66+
<p>If you&#39;re using Tact&#39;s <a href="https://docs.tact-lang.org/tools/typescript#tact-contract-in-typescript">auto-generated</a> TypeScript classes to deploy, sending the deploy message should look like:</p>
6767
<pre><code class="language-ts">const msg = { $$type: &quot;Deploy&quot;, queryId: 0n };
6868
await contract.send(sender, { value: toNano(1) }, msg);
6969
</code></pre>
70+
<p>You can see the implementation of the trait <a href="https://github.com/tact-lang/tact/blob/main/stdlib/libs/deploy.tact">here</a>. Notice that the file <em>deploy.tact</em> needs to be imported from the standard library using the <code>import</code> keyword.</p>
7071
<!-- HTML_TAG_END -->
7172
<div class="navMarkdown">
7273
</div>
@@ -161,7 +162,7 @@
161162

162163
<script>
163164
{
164-
__sveltekit_on1xqs = {
165+
__sveltekit_1vzu2s7 = {
165166
env: {},
166167
base: new URL(".", location).pathname.slice(0, -1),
167168
element: document.currentScript.parentElement
@@ -170,10 +171,10 @@
170171
const data = [null,null,null];
171172

172173
Promise.all([
173-
import("./_app/immutable/entry/start.57fba29c.js"),
174-
import("./_app/immutable/entry/app.40bbec70.js")
174+
import("./_app/immutable/entry/start.3bc5e522.js"),
175+
import("./_app/immutable/entry/app.eb37a970.js")
175176
]).then(([kit, app]) => {
176-
kit.start(app, __sveltekit_on1xqs.element, {
177+
kit.start(app, __sveltekit_1vzu2s7.element, {
177178
node_ids: [0, 2, 8],
178179
data,
179180
form: null,

0 commit comments

Comments
 (0)