This project is a custom token smart contract built on the Soroban smart contract platform of the Stellar blockchain. It extends the default token interface with administrative capabilities, such as:
- ✅ Custom minting and burning logic
- 🧊 Account freezing feature
- 👮 Admin management
- 🔐 Standard token features (transfer, approve, burn, etc.)
CDXZQLZMQLCC2F3FMSQAEWXMJCDIBHNW6SQ3DUJFFGDEASY4BYJAG6EJ
-
🔐 Admin-controlled Minting
Only the administrator can mint new tokens. -
🧊 Freeze Accounts
The admin can freeze accounts. Frozen accounts cannot burn tokens. -
🔄 ERC20-like Token Interface
Supports functions such astransfer,approve,allowance,burn,transfer_from. -
📊 Metadata Support
Includes tokenname,symbol, anddecimals. -
🔁 TTL Extensions
Storage entries have TTL (time to live) mechanics to manage storage efficiently.
Initializes the token with metadata and sets the admin.
Mints amount tokens to to address. Admin only.
Burns tokens from an address. Cannot burn if account is frozen.
Freezes a given account.
Transfers admin rights to another address.
transfer(from, to, amount)approve(from, spender, amount, expiration)allowance(from, spender)balance(id)burn_from(spender, from, amount)
You can run tests with:
cargo test