Skip to content

Latest commit

 

History

History
74 lines (64 loc) · 2.43 KB

DEVELOPMENT.md

File metadata and controls

74 lines (64 loc) · 2.43 KB

How to process this jetton

ℹ️ This document describes how to build application based on this jetton. If you are looking for guideline how to contribute to this project, please read this document

Definitions

According to TON Jetton Standard there are actually 2 smart contracts:

  • Jetton Master contract that deploys in single copy for your jetton
  • Jetton Wallet contract that deploys for each jetton owner

Read more about jetton architecture on TON

Exit codes

This project using custom exit codes for specific error. You can match received exit code with following list and get human-friednly error text.

Standard Tact exit codes

Code Description
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
6901 No enough TON on contract balance.
6902 No enough 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.
6905 Invalid transfer amount.
Occurs when you try to send, burn or mint 0 tokens.
6906 Minting already disabled.
Occurs when you attempt to enable minting after it has been permanently disabled.
6907 Minting is disabled.
Occurs when you try to mint tokens while the minting functionality is disabled.