ton-ion
tonion-contracts
TypeScript

TonIon Contracts is a reusable smart contract library and toolkit for the Tact language on the TON blockchain

Last updated Jul 1, 2026
23
Stars
4
Forks
13
Issues
0
Stars/day
Attention Score
11
Language breakdown
TypeScript 51.6%
Tact 48.4%
โ–ธ Files click to expand
README

TonIon


TonIon Contracts is a reusable smart contract library and toolkit for the Tact language on the TON blockchain. TonIon aims to provide reliable and efficient contract components to streamline the development of TON-based decentralized applications.

Document

You can find Tonion documents on Tonion docs

Traits

add the traits (contracts/traits) to your project contracts/imports, then Import the required contracts and traits in your Tact code.

Sample Jetton Master:

import "@stdlib/deploy";
import "../imports/tonion/JettonMaster.tact";
import "../imports/tonion/JettonWallet.tact";

contract MyJetton with JettonMaster, Deployable { total_supply: Int as coins; owner: Address; jetton_content: Cell; mintable: Bool; init(owner: Address, content: Cell){ self.total_supply = 0; self.owner = owner; self.mintable = true; self.jetton_content = content; }

override inline fun calculatejettonwalletinit(owneraddress: Address): StateInit { return initOf MyJettonWallet(owner_address, myAddress()); }

}

Sample Jetton Wallet:

import "@stdlib/deploy";
import "../imports/tonion/JettonMaster.tact";
import "../imports/tonion/JettonWallet.tact";

contract MyJettonWallet with JettonWallet, Deployable { balance: Int as coins = 0; owner: Address; jetton_master: Address;

init(owner: Address, jetton_master: Address) { self.owner = owner; self.jettonmaster = jettonmaster; }

override inline fun calculatejettonwalletinit(owneraddress: Address): StateInit { return initOf MyJettonWallet(owneraddress, self.jettonmaster); } }


implementation

actually you can find implementation for the traits or TEPs in mock contracts/mock directory


Tonion-CLI

We are working on a solution to use npm to install Tonion Contracts and import them directly into your contracts without copying the files manually. Additionally, we are exploring potential changes in Tact to support importing directly from GitHub or similar platforms.

Traits

โ”Œ contracts/traits
โ”‚
โ”œโ”€โ”€ access
โ”‚   โ”‚
โ”‚   โ”œโ”€โ”€ OwnableTransferable2Step.tact โœ…
โ”‚   โ”‚
โ”‚   โ””โ”€โ”€ AccessControl.tact โœ…
โ”‚
โ”œโ”€โ”€ utils
โ”‚   โ”‚
โ”‚   โ””โ”€โ”€ Counter.tact โœ…
โ”‚   
โ”œโ”€โ”€ payments
โ”‚   โ”‚
โ”‚   โ””โ”€โ”€ PaymentSplitter.tact โœ…
โ”‚   
โ””โ”€โ”€ tokens
    โ”‚
    โ”œโ”€โ”€ jetton
    โ”‚   โ”‚
    โ”‚   โ”œโ”€โ”€ JettonMaster.tact โœ…
    โ”‚   โ”œโ”€โ”€ JettonWallet.tact โœ…
    โ”‚   โ”‚
    โ”‚   โ””โ”€โ”€ extensions
    โ”‚       โ”‚
    โ”‚       โ”œโ”€โ”€ MaxSupply.tact โœ…
    โ”‚       โ”‚
    โ”‚       โ””โ”€โ”€ Approveable.tact โ“
    โ”‚
    โ”‚
    โ””โ”€โ”€ NFT
        โ”‚
        โ”œโ”€โ”€ NFTCollection.tact โณ
        โ”œโ”€โ”€ NFTItem.tact โณ
        โ”‚
        โ””โ”€โ”€ extensions
            โ”‚
            โ”œโ”€โ”€ Editable.tact โณ
            โ”‚
            โ”œโ”€โ”€ MaxSupply.tact โณ
            โ”‚
            โ””โ”€โ”€ Royalty.tact โณ

Scripts

  • Build All Contracts: Compiles all the contracts in the library.
npm run build:all
  • Run Tests: Executes the test suite using Jest.
npm test

Project Structure

โ”Œโ”€โ”€ contracts
โ”‚   โ”‚
โ”‚   โ”œโ”€โ”€ traits
โ”‚   โ”‚   โ”‚
โ”‚   โ”‚   โ””โ”€โ”€ (trait categories)
โ”‚   โ”‚           โ”‚
โ”‚   โ”‚           โ””โ”€โ”€ (trait sub-categories)
โ”‚   โ”‚               โ”‚
โ”‚   โ”‚               โ””โ”€โ”€ (trait files)
โ”‚   โ”œโ”€โ”€ mocks
โ”‚   โ”‚   โ”‚
โ”‚   โ”‚   โ””โ”€โ”€ (mock categories)
โ”‚   โ”‚           โ”‚
โ”‚   โ”‚           โ””โ”€โ”€ (mock sub-categories)
โ”‚   โ”‚               โ”‚
โ”‚   โ”‚               โ””โ”€โ”€ (mock files)
โ”œโ”€โ”€ tests
โ”‚   โ”‚
โ”‚   โ”œโ”€โ”€ (test categories)
โ”‚   โ”‚       โ”‚
โ”‚   โ”‚       โ””โ”€โ”€ (test files)
โ”‚   โ”‚
โ”‚   โ””โ”€โ”€ main.spec.ts
โ”‚
โ”œโ”€โ”€ wrappers
โ”‚   โ”‚
โ”‚   โ””โ”€โ”€(wrapper file)
โ”‚
โ”œโ”€โ”€ package.json
โ”‚
โ””โ”€โ”€ README.md

Contributing

We welcome contributions from the community! If you'd like to contribute, please follow these steps:

  • Fork the repository.
  • Add a feature or fix a bug
  • Open a pull request.

Contributors

ZigBalthazar
Zig Blathazar
kehiy
Kay
olumo-oke
olumo-oke
satyasai69
satya sai
seniorGarin
seniorGarin

License

This project is licensed under the MIT License - see the MIT License file for details.

๐Ÿ”— More in this category

ยฉ 2026 GitRepoTrend ยท ton-ion/tonion-contracts ยท Updated daily from GitHub