Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIXED double "need to" on "If statements" page #6

Open
wants to merge 33 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
cc53fba
FIXED double "need to" on "If statements" page
beerlincur May 6, 2023
58a3455
FIXED double "need to" on "If statements" page [builded]
beerlincur May 6, 2023
47fe0a2
Update Tact compiler to latest version
howardpen9 Aug 31, 2023
17f78cf
Merge pull request #10 from howardpen9/howard-patch-4-UpdateCompilerV…
talkol Sep 5, 2023
925a9ae
update Readme and adding Changelog
howardpen9 Sep 8, 2023
98e359e
Update Readme and adding changelog
howardpen9 Sep 8, 2023
0c711fd
Merge pull request #11 from howardpen9/howard-patch-5-add-change-log
howardpen9 Sep 26, 2023
d49e627
Update
howardpen9 Sep 27, 2023
8f75a9f
Merge pull request #12 from howardpen9/howard-patch-6--Optimized-Term…
howardpen9 Sep 27, 2023
63f1ca2
[0.4.0] - 2023-09-29
howardpen9 Sep 29, 2023
517a508
Merge pull request #13 from howardpen9/howard-patch-7
howardpen9 Sep 29, 2023
75a75e5
Update: [0.5.0]
howardpen9 Oct 5, 2023
83b320c
Update content.md
arashnm80 Oct 10, 2023
b56946c
Merge pull request #14 from tact-lang/howard-patch-8-JettonToken
howardpen9 Oct 16, 2023
e60b5e8
just changed the sender's message to be match.
SC-One Oct 17, 2023
05af0be
corerction msg.
SC-One Oct 17, 2023
94d40d0
update doc for message correction
SC-One Oct 17, 2023
eb8b471
Merge pull request #16 from arashnm80/patch-1
howardpen9 Oct 26, 2023
19288b3
Merge pull request #20 from SC-One/dev_patch
howardpen9 Oct 26, 2023
9b69403
Updates
howardpen9 Oct 29, 2023
b5e61a2
Merge pull request #22 from tact-lang/howard-patch-9-content
howardpen9 Oct 29, 2023
6c9ca93
Updates. [0.6.2] - 2023-10-30
howardpen9 Oct 29, 2023
770837d
Merge pull request #23 from tact-lang/howard-patch-9-content
howardpen9 Oct 29, 2023
c75ac50
Fix comments for shl/shr
anton-trunov Nov 27, 2023
736ed59
Merge pull request #27 from tact-lang/fix-shr-shl
howardpen9 Nov 27, 2023
334313f
Replace `overrides` with `override` in a contract (#26)
mhbdev Nov 27, 2023
c6e8f6c
fix: remove `overrides` leftovers (#29)
anton-trunov Nov 27, 2023
7e85f62
Fixed address bit length (#8)
ProgramCrafter Nov 27, 2023
0c45422
Revert "FIXED double "need to" on "If statements" page [builded]"
beerlincur Nov 27, 2023
996de3c
FIXED double "need to" on "If statements" page
beerlincur May 6, 2023
cd57972
FIXED double "need to" on "If statements" page [builded]
beerlincur May 6, 2023
13b3706
Revert "FIXED double "need to" on "If statements" page [builded]"
beerlincur Nov 27, 2023
fe564ec
Merge remote-tracking branch 'origin/main'
beerlincur Nov 27, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
60 changes: 60 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

Original goal is followed [Tact Compiler Changelog](https://github.com/tact-lang/tact/tree/main), and keep this project in sync. Enjoy! ❤️❤️❤️

## [0.6.2] - 2023-10-30

- Add 2 PRs from [Breakfast](https://github.com/topics/hacktoberfest)
- https://github.com/tact-lang/tact-by-example/commit/19288b393e07cbf14fa6bffec995eebdad7b06be
- https://github.com/tact-lang/tact-by-example/commit/eb8b47123218b24b5ecf8938eafe9ab31c0482d2
- Modify and add the new content and fix the grammer errors

## [0.5.0] - 2023-10-05

### Added

- Add the Jetton Token Standard example.

## [0.4.0] - 2023-09-29

### Changed

- Turn `src/routes/(examples)/00-hello-world` from 01 to 00.
- Optimzed `src/routes/(examples)/06-communicating-children/contract.tact` code in dump log.
- Optimzed `src/routes/(examples)/06-authenticating-children/contract.tact` code in dump log.
- Change the name of `06-communicating-children` to `06-communicating-subcontract`.

### Added

- Added `😃, 😑` in dump log in `src/routes/(examples)/06-authenticating-children` for better understanding.
- `require(sender() == parent, "not the parent");` in `src/routes/(examples)/06-authenticating-children/contract.tact` file.

## [0.3.0] - 2023-09-27

### Added

- Emoji support in terminal log. (📝, 🔍, 📤)

### Changed

- Optimized `src/routes/(examples)/06-unbounded-arrays/content.md` text and add the callout blocks.
- Fixed some type errors in the `src/routes/(examples)/06-unbounded-arrays/content.md` file.
- Fixed the text typo in the terminal log.

## [0.2.0] - 2023-09-08

### Added

- The first version of ChangeLog.md

## [0.1.0] - 2023-09-01

### Fixed

- Update the compiler version in the package.json
- Fix the `reply` syntax to the `self.reply`.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
- [🔍 Changelog](/CHANGELOG.md)
- [🫂 Telegram Group Chat](https://t.me/tactlang)

## Developing

### About Tact Source Code

1. Tact code is under the `src` directory. The `src` directory contains the following files: `src/routes/(examples)` - The source code for the examples.
2. The terminal output is located in `src/routes/(examples)/+layout.svelte` file.
3. Run `npm run tact-build` to compile the Tact code you just added.

### About the Examples Order

1. Check the order in the `src/routes/(examples)/examples.json` file.
2. The `id` determines the sequence of the examples in the app.

### Running the project

Once you've run `npm install` start a development server:

```bash
Expand Down
51 changes: 15 additions & 36 deletions docs/01-hello-world.html → docs/00-hello-world.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,20 +34,20 @@
<meta http-equiv="content-security-policy" content="">
<link href="./_app/immutable/assets/_layout.e2caa7e1.css" rel="stylesheet">
<link href="./_app/immutable/assets/app.8bddbbc4.css" rel="stylesheet">
<link rel="modulepreload" href="./_app/immutable/entry/start.932e2960.js">
<link rel="modulepreload" href="./_app/immutable/entry/start.b5438541.js">
<link rel="modulepreload" href="./_app/immutable/chunks/index.9fe14626.js">
<link rel="modulepreload" href="./_app/immutable/chunks/singletons.0d6f68c3.js">
<link rel="modulepreload" href="./_app/immutable/chunks/singletons.25c14d13.js">
<link rel="modulepreload" href="./_app/immutable/chunks/index.1c761ed5.js">
<link rel="modulepreload" href="./_app/immutable/entry/app.92c75275.js">
<link rel="modulepreload" href="./_app/immutable/entry/app.06a021a8.js">
<link rel="modulepreload" href="./_app/immutable/entry/layout.svelte.2cd9eabd.js">
<link rel="modulepreload" href="./_app/immutable/entry/_layout.ts.984db11e.js">
<link rel="modulepreload" href="./_app/immutable/chunks/_layout.da46b06b.js">
<link rel="modulepreload" href="./_app/immutable/entry/(examples)-layout.svelte.322916d1.js">
<link rel="modulepreload" href="./_app/immutable/chunks/store.d3ab02ad.js">
<link rel="modulepreload" href="./_app/immutable/chunks/examples.2096c2f1.js">
<link rel="modulepreload" href="./_app/immutable/entry/(examples)-layout.svelte.01f6cb21.js">
<link rel="modulepreload" href="./_app/immutable/chunks/store.476c3091.js">
<link rel="modulepreload" href="./_app/immutable/chunks/examples.ec427188.js">
<link rel="modulepreload" href="./_app/immutable/chunks/app.cf8f4105.js">
<link rel="modulepreload" href="./_app/immutable/entry/(examples)-01-hello-world-page.svelte.bd09d3c0.js">
<link rel="modulepreload" href="./_app/immutable/chunks/index.78404594.js">
<link rel="modulepreload" href="./_app/immutable/entry/(examples)-00-hello-world-page.svelte.16f8154b.js">
<link rel="modulepreload" href="./_app/immutable/chunks/index.c056099e.js">
</head>
<body>
<div style="display: contents">
Expand All @@ -59,14 +59,7 @@
<div class="sk-cube3 sk-cube"></div></div></div>


<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>
<p>This is a simple counter contract that allows users to increment its value.</p>
<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>
<p>State variables should be initialized in <code>init()</code> that runs on deployment of the contract.</p>
<h2 id="receiving-messages">Receiving messages</h2>
<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>
<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>
<!-- HTML_TAG_END -->
<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 --><!-- HTML_TAG_END -->
<div class="navMarkdown">
</div>
<a class="allExamples" href="all">All Examples</a></div></div>
Expand Down Expand Up @@ -97,21 +90,7 @@ <h2 id="receiving-messages">Receiving messages</h2>





<button class="buttonAction svelteui-c-fAernD svelteui-c-fAernD-hkqluh-variation-filled svelteui-c-fAernD-iPJLV-css svelte-1qnpzwq" tabindex="0">
Get value
<div class="ripple svelte-1dillie"></div>
</button>





<button class="buttonAction svelteui-c-hYnOVn svelteui-c-hYnOVn-cKczaq-variation-filled svelteui-c-hYnOVn-iPJLV-css svelte-1qnpzwq" tabindex="0">
Send increment
<div class="ripple svelte-1dillie"></div>
</button></div>
</div>
<pre style="flex: 1; color: #666; overflow: scroll;"></pre></div></div>
</div>
</div>
Expand All @@ -121,7 +100,7 @@ <h2 id="receiving-messages">Receiving messages</h2>

<script>
{
__sveltekit_102lvw5 = {
__sveltekit_12rs9i2 = {
env: {},
base: new URL(".", location).pathname.slice(0, -1),
element: document.currentScript.parentElement
Expand All @@ -130,11 +109,11 @@ <h2 id="receiving-messages">Receiving messages</h2>
const data = [null,null,null];

Promise.all([
import("./_app/immutable/entry/start.932e2960.js"),
import("./_app/immutable/entry/app.92c75275.js")
import("./_app/immutable/entry/start.b5438541.js"),
import("./_app/immutable/entry/app.06a021a8.js")
]).then(([kit, app]) => {
kit.start(app, __sveltekit_102lvw5.element, {
node_ids: [0, 2, 6],
kit.start(app, __sveltekit_12rs9i2.element, {
node_ids: [0, 2, 5],
data,
form: null,
error: null
Expand Down
43 changes: 29 additions & 14 deletions docs/01-a-simple-counter.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,20 +34,20 @@
<meta http-equiv="content-security-policy" content="">
<link href="./_app/immutable/assets/_layout.e2caa7e1.css" rel="stylesheet">
<link href="./_app/immutable/assets/app.8bddbbc4.css" rel="stylesheet">
<link rel="modulepreload" href="./_app/immutable/entry/start.932e2960.js">
<link rel="modulepreload" href="./_app/immutable/entry/start.b5438541.js">
<link rel="modulepreload" href="./_app/immutable/chunks/index.9fe14626.js">
<link rel="modulepreload" href="./_app/immutable/chunks/singletons.0d6f68c3.js">
<link rel="modulepreload" href="./_app/immutable/chunks/singletons.25c14d13.js">
<link rel="modulepreload" href="./_app/immutable/chunks/index.1c761ed5.js">
<link rel="modulepreload" href="./_app/immutable/entry/app.92c75275.js">
<link rel="modulepreload" href="./_app/immutable/entry/app.06a021a8.js">
<link rel="modulepreload" href="./_app/immutable/entry/layout.svelte.2cd9eabd.js">
<link rel="modulepreload" href="./_app/immutable/entry/_layout.ts.984db11e.js">
<link rel="modulepreload" href="./_app/immutable/chunks/_layout.da46b06b.js">
<link rel="modulepreload" href="./_app/immutable/entry/(examples)-layout.svelte.322916d1.js">
<link rel="modulepreload" href="./_app/immutable/chunks/store.d3ab02ad.js">
<link rel="modulepreload" href="./_app/immutable/chunks/examples.2096c2f1.js">
<link rel="modulepreload" href="./_app/immutable/entry/(examples)-layout.svelte.01f6cb21.js">
<link rel="modulepreload" href="./_app/immutable/chunks/store.476c3091.js">
<link rel="modulepreload" href="./_app/immutable/chunks/examples.ec427188.js">
<link rel="modulepreload" href="./_app/immutable/chunks/app.cf8f4105.js">
<link rel="modulepreload" href="./_app/immutable/entry/(examples)-01-a-simple-counter-page.svelte.60e4d560.js">
<link rel="modulepreload" href="./_app/immutable/chunks/index.78404594.js">
<link rel="modulepreload" href="./_app/immutable/entry/(examples)-01-a-simple-counter-page.svelte.d7d63907.js">
<link rel="modulepreload" href="./_app/immutable/chunks/index.c056099e.js">
</head>
<body>
<div style="display: contents">
Expand All @@ -59,7 +59,15 @@
<div class="sk-cube3 sk-cube"></div></div></div>


<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 --><!-- HTML_TAG_END -->
<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>
<p>This is probably the simplest possible Tact program. It will provide callers with the classic output &quot;hello world&quot;.</p>
<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>
<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>
<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>
<h2 id="a-simple-interaction">A simple interaction</h2>
<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>
<p>Don&#39;t worry if some things aren&#39;t clear now, we will dive into getters in more detail later.</p>
<!-- HTML_TAG_END -->
<div class="navMarkdown">
</div>
<a class="allExamples" href="all">All Examples</a></div></div>
Expand Down Expand Up @@ -103,6 +111,13 @@





<button class="buttonAction svelteui-c-fAernD svelteui-c-fAernD-hkqluh-variation-filled svelteui-c-fAernD-iPJLV-css svelte-1qnpzwq" tabindex="0">
Get greeting
<div class="ripple svelte-1dillie"></div>
</button>

</div>
<pre style="flex: 1; color: #666; overflow: scroll;"></pre></div></div>
</div>
Expand All @@ -113,7 +128,7 @@

<script>
{
__sveltekit_102lvw5 = {
__sveltekit_12rs9i2 = {
env: {},
base: new URL(".", location).pathname.slice(0, -1),
element: document.currentScript.parentElement
Expand All @@ -122,11 +137,11 @@
const data = [null,null,null];

Promise.all([
import("./_app/immutable/entry/start.932e2960.js"),
import("./_app/immutable/entry/app.92c75275.js")
import("./_app/immutable/entry/start.b5438541.js"),
import("./_app/immutable/entry/app.06a021a8.js")
]).then(([kit, app]) => {
kit.start(app, __sveltekit_102lvw5.element, {
node_ids: [0, 2, 5],
kit.start(app, __sveltekit_12rs9i2.element, {
node_ids: [0, 2, 6],
data,
form: null,
error: null
Expand Down
Loading