Developer Docs
  • Getting Started
    • Xircus Web3 Protocol
    • Wallet & Authentication
    • Own Your Web3 Apps
    • Deploying Web3 Apps
    • Deploying NFT Collection
    • Minting and Importing NFTs
    • Listing and Selling NFTs
    • Supported Chains
  • Terminologies
    • DUST - Template System
      • The Presets
      • Dust
      • Dust React
      • Dust Chakra
      • Dust Radix
    • Carousel - Template Routers
    • Graphee
      • for TON Chain
  • Launching Your App
    • Quest Apps
    • NFT Marketplace Apps
    • eCommerce Apps
    • Launchpad Apps
  • TON Contracts
    • ⚡Quick Start
    • ⛏️Minter
      • Quick Start
      • Jetton
      • Jetton Non-Shard
      • NFT
      • SBT
      • Wallet
    • 🏪Marketplace
      • ⚡Quick Start
      • NFT Market
      • NFT Music Market
      • NFT Ticket Market
      • NFT Subscription Market
    • 🌱Launchpad
      • Getting Started
      • Auction Instant
      • Auction Pool
      • Auction Fair Launch
      • NFT Pre-Mint Auction Randomizer
      • NFT Allowlist Auction
    • 🛍️eCommerce
      • Checkout
      • Property Rentals
      • Fleet Courier
      • Delivery Pooling
      • Real World Assets
    • ⛰️Governance
      • Staking
      • Locker
      • Vesting Locker
      • Vesting Locker Simple
      • Proposals
    • ⛳Prediction
      • Getting Started
      • Optimistic Oracles
      • Prediction Market Factory
  • Platform Tools
    • 📃Smart Contracts
    • 🏅Open Quest & Leaderboard
    • ⚒️Web3 Minters
    • 🎨Generative NFT Creator
    • ✨NFT Auctioneer
  • App Templates
    • NFT Marketplace
    • Crowdfunding Launchpad
    • DeFi Exchange
    • Prediction Market
    • NFT Social
    • Token XP Campaigns
  • TON Blockchain
    • TON React
    • Telegram Mini dApps
  • React Reference
    • ⚡Quick Start
    • Hooks
      • useTonConnect
      • useUtils
      • useRegistry
      • useApp
      • useStorage
      • useTon
      • useTelegram
    • Recipes
      • Connect via Wallet Provider
      • Using Wallet Authentication
  • GraphQL Reference
    • ⚡Quick Start
    • Schemas
      • App
      • Currency
      • Account
      • Chain
      • Market
    • Methods
      • Get Apps
      • Get App
  • Core SDK Reference
    • ⚡Quick Start
    • Methods
  • Xircus CLI
    • ⚡Quick Start
    • Commands
      • Create
      • App
      • Contract
      • Skin
      • Module
  • DUST App Template Building
    • Getting Started
    • Dust Chakra Common
      • AppBrand / AppHeader
      • EditableFields
Powered by GitBook
On this page
  • Why Propose
  • Best For
  • Safe Balance & Spender Discovery
  • Limitations
  • Contract
  • Operations
  • Methods
  1. TON Contracts
  2. Minter

Jetton Non-Shard

A new type of Jetton that follows some ERC-20 standard, account balances are stored in hash-map but with limitations

Why Propose

  • Add additional feature to request account balance in contracts

  • Add additional feature to add spender for each account

Best For

  • Safe balance and spender request

  • Implementing contracts doesn't have to identify the wallet address which causes an additional wallet discovery request to the minter to verify authenticity of the wallet for additional fees

  • Managing only one contract for mint, transfer and burn

  • Instantly determine balance of all accounts

  • No need to get wallet address of each holder

  • Jetton transactions are track in one contract

Safe Balance & Spender Discovery

  1. Contract sends op::get_balance to Jetton

  2. Jetton forwards op::jetton_balance to Contract

  3. Contract verifies Jetton as sender and process balance value

Limitations

  • Contract size grows due to balance hash-map

  • Maximum hash-map balance holder (approx 4k)

  • 1 approved spender per account

Contract

Operations

  • transfer ->

  • mint ->

  • burn ->

  • approve ->

  • get_balance -> operation to request the current balance of an account, forwards a balance_of operation to the requestor

  • jetton_balance -> internal operation forwarded to requesting contract

  • get_spender -> requests spender address and balance of an account, contract as spender can send transfer operation to minter to move jettons

  • jetton_spender -> internal operation forwarded to requesting contract

Methods

  • get_jetton_data

  • get_balance(account)

  • get_spender(account)

  • get_accounts

PreviousJettonNextNFT

Last updated 1 year ago

⛏️