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

add Tact language #600

Merged
merged 2 commits into from
Apr 7, 2025
Merged

add Tact language #600

merged 2 commits into from
Apr 7, 2025

Conversation

novusnota
Copy link
Contributor

@novusnota novusnota commented Apr 5, 2025

About

Tact is a smart contract programming language for TON Blockchain.

It is supported in tokei and on GitHub:

message(1) Ping {}
message(2) Pong {}
message(3) Hello {}

contract HelloWorld {
    receive(_: Ping) {
        reply(Pong {}.toCell());
    }

    receive(_: Hello) {
        reply(Hello {}.toCell());
    }

    receive() {
        cashback(sender());
    }
}

inline fun reply(msgBody: Cell) {
    message(MessageParameters {
        to: sender(),
        value: 0,
        mode: SendRemainingValue | SendIgnoreErrors,
        body: msgBody,
    });
}

Changes made

• Added an entry in languages.json and ran go generate
• Added an example to examples/ folder and an entry to LANGUAGES.md
• Run all tests via test-all.sh

Hope everything is correct here :)

@boytertesting boytertesting bot added M/size Normal or medium sized change VL/complexity Very low complexity M/complexity Normal or medium complexity and removed M/size Normal or medium sized change VL/complexity Very low complexity M/complexity Normal or medium complexity labels Apr 5, 2025
@boytertesting boytertesting bot added M/complexity Normal or medium complexity M/size Normal or medium sized change and removed M/size Normal or medium sized change M/complexity Normal or medium complexity labels Apr 5, 2025
@boyter
Copy link
Owner

boyter commented Apr 7, 2025

Thanks so much for this! Will make the next release.

@boyter boyter merged commit 0fe958e into boyter:master Apr 7, 2025
@novusnota novusnota deleted the tact branch April 7, 2025 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
M/complexity Normal or medium complexity M/size Normal or medium sized change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants