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
TON Production used Smart Contracts
Contracts | Description |
---|---|
wallet-contract | Wallet v4 is proposed version of wallet to replace v3 or older wallets |
governance-contract | Core TON Blockchain contracts elector-code.fc and config-code.fc . |
bridge-func | TON-EVM Toncoin Bridge. |
token-bridge-func | TON-EVM token bridge - FunC smart contracts. |
lockup-wallet-contract/universal | Universal lockup wallet is contract that can store locked and restricted coins. |
lockup-wallet-contract/vesting | Vesting wallet smart-contract |
multisig-contract | (n, k) -multisig wallet is a wallet with n private keys holders, which accepts requests to send messages if the request collects at least k signatures of the holders. |
token-contract | Fungible, Non-Fungible, Semi-Fungible Tokens Smart Contracts |
dns-contract | Smart contracts of .ton zone. |
nominator-pool | Nominator pool smart contract |
storage | TON Storage provider and fabric contracts |
TON Ecosystem Smart Contracts
Contracts | Description |
---|---|
telemint | Telegram Usenames(nft-item.fc ) and Telegram Numbers(nft-item-no-dns.fc ) contracts. |
WTON | This smart contract provides an implementation of wrapped toncoin, called WTON |
capped-fungible-token | Basic implementation of smart contracts for Jetton wallet and Jetton minter |
getgems-io/nft-contracts | Getgems NFT Contracts |
lockup-wallet-deployment | Deploy and run lockup Contract end to end |
wton-contract | wTON contracts |
contract-verifier-contracts | Sources registry contracts which stores an on-chain proof per code cell hash. |
vanity-contract | Smart contract that allows to "mine" any suitable address for any contract. |
ton-config-smc | Simple contract for storing versioned data in TON Blockchain. |
ratelance | Ratelance is freelance platform that seeks to remove barriers between potential employers and workers. |
ton-forwarder.fc | Contract that accepts exact sum and forwards it to specified address. On wrong amount or subsequent returns money. |
logger.fc | Contract that saves data in the local storage. |
ton-nominators | Ton Whales Nominator pool source code. |
ton-link-contract-v3 | Ton-link allows smart contracts to access data outside of the blockchain while maintaining data security. |
delab-team/fungible-token | DeLab TON fungible-token implementation |
whitelisted-wallet.fc | Simple Whitelisted Wallet Contract |
delab-team/jetton-pool | The Jetton Pool TON smart contract is designed to create farm pools. |
ston-fi/contracts | Stonfi DEX core contracts |
onda-ton | Onda Lending Pool - Core smart contracts of the first lending protocol on TON |
ton-stable-timer | TON Stable Timer contract |
Learning Contracts
- counter.fc
- simple-distributor
- ping-pong.fc
- disintar/sale-dapp
- ton-random
- TonFunClessons_Eng
- Blueprint simple contract
- Blueprint jetton_minter.fc
- Simple TON DNS Subdomain manager
Ton Smart Challenge Solutions
Ton Smart Challenge 1
- 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
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
- 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
- validator-elect-req.fif
- validator-elect-signed.fif
- wallet-v2.fif
- wallet-v3.fif
- wallet.fif
- wallet-v3-code.fif
Examples of Tests for Smart Contracts
- governance_tests
- governance_tests
- MassSender.spec.ts
- TonForwarder.spec.ts
- ton-tvm-bus
- wTON-contract tests
- getgems tests
- Distributor.spec.ts
- Migration.spec.ts
- SubdomainManager.spec.ts
- Token.spec.ts
- Scheduler.spec.ts
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 share new example smart contract, make your PR for this page.