From 1cf39e27a8d2bfb9e7449e8fab45a21554f9b342 Mon Sep 17 00:00:00 2001 From: Suprun Date: Tue, 29 Oct 2024 21:39:44 +0300 Subject: [PATCH] chore: update readme (#13) --- README.md | 77 +++++++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 61 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 57ddcee..5d88b3c 100644 --- a/README.md +++ b/README.md @@ -1,27 +1,72 @@ -# jetton -TON jetton standard implementation on tact +# TON Jetton contract on Tact -## Project structure +ℹ️ Jetton implementation for The Open Network written in Tact language. Metadata is fully decentralized, it means that full token metadata is stored on-chain. + +⚠️ Warning! This contract is not 100% tested and I would not recommend using it in production yet. -- `contracts` - source code of all the smart contracts of the project and their dependencies. -- `wrappers` - wrapper classes (implementing `Contract` from ton-core) for the contracts, including any [de]serialization primitives and compilation functions. -- `tests` - tests for the contracts. -- `scripts` - scripts used by the project, mainly the deployment scripts. +❤️ I'll be very grateful for any kind of contribution: code, docs, issues, bug reports, github stars or whatever -## How to use + -### Build +# Development -`npx blueprint build` or `yarn blueprint build` +This is default Tact blueprint project with default commands: -### Test +- `npm run build` - build project and compile contracts +- `npm test` - run contracts tests +- `npx blueprint run` - execute script from `/scripts` directory -`npx blueprint test` or `yarn blueprint test` +# Docs + +## Project structure -### Deploy or run another script +- `contracts` - source code of all the smart contracts +- - `jetton` - entrypoints of jetton contracts with dependencies (traits) specified +- - - `master.tact` - jetton master contract entrypoint +- - - `wallet.tact` - jetton wallet contract entrypoint +- - `teps` - traits with [TEPs](https://github.com/ton-blockchain/TEPs/) realization +- - - `tep64.tact` - trait implementation of [TEP 64](https://github.com/ton-blockchain/TEPs/blob/master/text/0064-token-data-standard.md) +- - - `tep74.tact` - trait implementation of [TEP 74](https://github.com/ton-blockchain/TEPs/blob/master/text/0074-jettons-standard.md) +- - - `tep89.tact` - trait implementation of [TEP 89](https://github.com/ton-blockchain/TEPs/blob/master/text/0089-jetton-wallet-discovery.md) +- - `consts.tact` - project constants +- - `errors.tact` - custom project error codes (exit codes) +- - `messages.tact` - contracts API messages -`npx blueprint run` or `yarn blueprint run` +## Exit codes -### Add a new contract +[Standard Tact exit codes](https://docs.tact-lang.org/book/exit-codes) -`npx blueprint create ContractName` or `yarn blueprint create ContractName` + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CodeDescription
Tact lang exit codes
132 + Invalid owner of contract.
Occurs when sender wallet is not owner of receiver contract when it is required. +
Custom exit codes
6901No enough TON on contract balance.
6902No enoght TON in message
6903 + Jetton already initialized.
Occurs when you send 0x133701 message to jetton that has been already initialized. +
6904 + Max supply exceeded.
Occurs when you try mint more tokens than max_supply parameter allow. +
\ No newline at end of file