0% found this document useful (0 votes)
6 views

docs_ton_org_v3_documentation_smart_contracts_contracts_spec

The document provides a comprehensive list of TON smart contracts, including their descriptions and functionalities, such as wallet contracts, staking protocols, and token bridges. It emphasizes the importance of thorough testing before deploying contracts in production environments. Additionally, it includes links to various resources and examples for developers interested in creating or learning about smart contracts on the TON blockchain.

Uploaded by

Korn Du
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

docs_ton_org_v3_documentation_smart_contracts_contracts_spec

The document provides a comprehensive list of TON smart contracts, including their descriptions and functionalities, such as wallet contracts, staking protocols, and token bridges. It emphasizes the importance of thorough testing before deploying contracts in production environments. Additionally, it includes links to various resources and examples for developers interested in creating or learning about smart contracts on the TON blockchain.

Uploaded by

Korn Du
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

On this page

Examples of Smart
Contracts
On this page, you can find TON smart contract references implemented for various
program software.

INFO
Make sure you have thoroughly tested contracts before using them in a production
environment. This is a critical step to ensure the proper functioning and security of
your software.

FunC Smart Contracts


Production-Used Contracts
Contracts Description

wallet-contract Wallet v4 is the proposed version of the wallet to replace


🪄 Run in WebIDE v3 or older wallets

liquid-staking- Liquid Staking (LSt) is a protocol that connects TON


contract holders of all calibers with hardware node operators to

Explore our developer-friendly HTML to PDF API Printed using PDFCrowd HTML to PDF
Contracts Description

🪄 Run in WebIDE participate in TON Blockchain validation through asset


pooling.

modern_jetton Implementation of standard jetton with additional


🪄 Run in WebIDE withdraw_tons and withdraw_jettons.

This wallet is designed for those who need to send


highloadwallet-v3
transactions at very high rates, such as crypto exchanges.

Jetton-with-governance FunC smart contracts, used for


stablecoin-contract
stablecoins such as USDt.

governance-contract Core TON Blockchain contracts elector-code.fc and


🪄 Run in WebIDE config-code.fc .

bridge-func
TON-EVM Toncoin Bridge.
🪄 Run in WebIDE

token-bridge-func
TON-EVM token bridge - FunC smart contracts.
🪄 Run in WebIDE

lockup-wallet-
The universal lockup wallet is a contract that can store
contract/universal
locked and restricted coins.
🪄 Run in WebIDE

lockup-wallet-
contract/vesting Vesting wallet smart-contract
🪄 Run in WebIDE

(n, k) -multisig wallet is a wallet with n private keys


multisig-contract
holders, which accepts requests to send messages if the
🪄 Run in WebIDE
request collects at least k signatures of the holders.

Explore our developer-friendly HTML to PDF API Printed using PDFCrowd HTML to PDF
Contracts Description

token-contract Fungible, Non-Fungible, Semi-Fungible Tokens Smart


🪄 Run in WebIDE Contracts

dns-contract
Smart contracts of .ton zone.
🪄 Run in WebIDE

nominator-pool
Nominator Pool smart contract
🪄 Run in WebIDE

single-nominator-
pool Single Nominator Pool smart contract
🪄 Run in WebIDE

vesting-contract The Vesting contract allows you to lock a certain amount


🪄 Run in WebIDE of Toncoin for a specified time and gradually unlock them.

storage
TON Storage provider and fabric contracts
🪄 Run in WebIDE

Ecosystem Contracts
Contracts Description

telemint Telegram Usenames( nft-item.fc ) and Telegram


🪄 Run in WebIDE Numbers( nft-item-no-dns.fc ) contracts.

capped-fungible-token Basic implementation of smart contracts for Jetton


🪄 Run in WebIDE Wallet and Jetton Minter

Explore our developer-friendly HTML to PDF API Printed using PDFCrowd HTML to PDF
Contracts Description

Implementation of a Scalable Airdrop System for the


gusarich-airdrop TON blockchain. It can be used to distribute Jettons on-
chain to any number of wallets.

getgems-io/nft-
contracts Getgems NFT Contracts
🪄 Run in WebIDE

lockup-wallet-
deployment Deploy and run lockup Contract end to end
🪄 Run in WebIDE

WTON This smart contract provides an implementation of


🪄 Run in WebIDE wrapped Toncoin, called WTON

wton-contract
wTON contracts
🪄 Run in WebIDE

contract-verifier-
Sources registry contracts which stores an on-chain
contracts
proof per code cell hash.
🪄 Run in WebIDE

vanity-contract Smart contract that allows to "mine" any suitable address


🪄 Run in WebIDE for any contract.

ton-config-smc Simple contract for storing versioned data in TON


🪄 Run in WebIDE Blockchain.

ratelance Ratelance is freelance platform that seeks to remove


🪄 Run in WebIDE barriers between potential employers and workers.

Explore our developer-friendly HTML to PDF API Printed using PDFCrowd HTML to PDF
Contracts Description

logger.fc
Contract that saves data in the local storage.
🪄 Run in WebIDE

ton-nominators
Ton Whales Nominator pool source code.
🪄 Run in WebIDE

ton-link-contract-v3 Ton-link allows smart contracts to access data outside


🪄 Run in WebIDE of the blockchain while maintaining data security.

delab-team/fungible-
token DeLab TON fungible-token implementation
🪄 Run in WebIDE

whitelisted-wallet.fc
Simple Whitelisted Wallet Contract
🪄 Run in WebIDE

delab-team/jetton-pool The Jetton Pool TON smart contract is designed to


🪄 Run in WebIDE create farming pools.

ston-fi/contracts
Stonfi DEX core contracts
🪄 Run in WebIDE

onda-ton Onda Lending Pool - Core smart contracts of the first


🪄 Run in WebIDE lending protocol on TON

ton-stable-timer
TON Stable Timer contract
🪄 Run in WebIDE

HipoFinance/contract hTON is a decentralized, permission-less, open-source


🪄 Run in WebIDE liquid staking protocol on TON Blockchain

Explore our developer-friendly HTML to PDF API Printed using PDFCrowd HTML to PDF
Learning Contracts
Contracts Description

counter.fc
Counter smart contract with comments.
🪄 Run in WebIDE

simple-distributor
Simple TON distributor.
🪄 Run in WebIDE

ping-pong.fc Simple contract to test sending Toncoin in


🪄 Run in WebIDE different modes.

ton-random Two contracts that will help you in generating


🪄 Run in WebIDE random numbers on-chain.

Blueprint simple contract


Example smart contract
🪄 Run in WebIDE

Blueprint jetton_minter.fc
Smart contract example to mint Jettons on-chain.
🪄 Run in WebIDE

Simple TON DNS Subdomain


manager TON DNS subdomains manager.
🪄 Run in WebIDE

disintar/sale-dapp
React + NFT sale DApp with FunC
🪄 Run in WebIDE

TON Smart Challenges


TON Smart Challenge 1

Explore our developer-friendly HTML to PDF API Printed using PDFCrowd HTML to PDF
https://github.com/nns2009/TON-FunC-contest-1/tree/main

https://github.com/pyAndr3w/func-contest1-solutions

https://github.com/crazyministr/TonContest-FunC/tree/master/func-contest1

TON Smart Challenge 2

https://github.com/ton-blockchain/func-contest2-solutions

https://github.com/nns2009/TON-FunC-contest-2

https://github.com/crazyministr/TonContest-FunC/tree/master/func-contest2

TON Smart Challenge 3

https://github.com/nns2009/TON-FunC-contest-3

https://github.com/shuva10v/func-contest3-solutions

https://github.com/crazyministr/TonContest-FunC/tree/master/func-contest3

TON Smart Challenge 4

https://github.com/akifoq/tsc4 (TOP optimized)

https://github.com/Gusarich/tsc4

https://github.com/Skydev0h/tsc4

https://github.com/aSpite/tsc4-contracts (FunC solution)

https://github.com/ProgramCrafter/tsc4 (FunC solution)

Fift Smart Contracts


CreateState.fif

asm-to-cpp.fif

auto-dns.fif

complaint-vote-req.fif

complaint-vote-signed.fif

config-proposal-vote-req.fif

Explore our developer-friendly HTML to PDF API Printed using PDFCrowd HTML to PDF
config-proposal-vote-signed.fif

create-config-proposal.fif

create-config-upgrade-proposal.fif

create-elector-upgrade-proposal.fif

envelope-complaint.fif

gen-zerostate-test.fif

gen-zerostate.fif

highload-wallet-v2-one.fif

highload-wallet-v2.fif

highload-wallet.fif

manual-dns-manage.fif

new-auto-dns.fif

new-highload-wallet-v2.fif

new-highload-wallet.fif

new-manual-dns.fif

new-pinger.fif

new-pow-testgiver.fif

new-restricted-wallet.fif

new-restricted-wallet2.fif

new-restricted-wallet3.fif

new-testgiver.fif

new-wallet-v2.fif

new-wallet-v3.fif

new-wallet.fif

show-addr.fif

testgiver.fif

update-config-smc.fif

update-config.fif

update-elector-smc.fif

Explore our developer-friendly HTML to PDF API Printed using PDFCrowd HTML to PDF
validator-elect-req.fif

validator-elect-signed.fif

wallet-v2.fif

wallet-v3.fif

wallet.fif

wallet-v3-code.fif

FunC Libraries and Helpers


https://github.com/ton-blockchain/ton/blob/master/crypto/smartcont/stdlib.fc

https://github.com/TonoxDeFi/open-contracts/tree/main/contracts/crypto/elliptic-
curves

https://github.com/TonoxDeFi/open-contracts/tree/main/contracts/math

https://github.com/TonoxDeFi/open-contracts/tree/main/contracts/messages

https://github.com/TonoxDeFi/open-contracts/tree/main/contracts/slices

https://github.com/TonoxDeFi/open-contracts/tree/main/contracts/strings

https://github.com/TonoxDeFi/open-contracts/tree/main/contracts/tuples

https://github.com/TonoxDeFi/open-contracts/tree/main/contracts/utils

https://github.com/disintar/sale-dapp/tree/master/func

Add Reference
If you want to share a new example smart contract, make your PR for this page.

See Also
Develop Smart Contracts Introduction

How to work with wallet smart contracts

[You Tube] Ton Dev Study FunC & BluePrint lessons

Explore our developer-friendly HTML to PDF API Printed using PDFCrowd HTML to PDF
Edit this page
Last updated on Nov 21, 2024 by freshield.eth

Explore our developer-friendly HTML to PDF API Printed using PDFCrowd HTML to PDF

You might also like