Giter VIP home page Giter VIP logo

tact-token's Introduction

TACT Token and Wallet Contracts

This repository contains two main TON smart contracts: Token and JettonDefaultWallet. These contracts are designed to manage and interact with the TACT token, a custom token.

How to install

    git clone https://github.com/ipromise2324/Tact-Token-Contract.git
    cd Tact-Token-Contract
    yarn install
    yarn build # Run this command for two times to build both Token and JettonDefaultWallet contract
    yarn test

Token Contract

The Token contract represents the TACT token. It provides functionalities such as:

  • Minting: New tokens can be created and added to the total supply.
  • Token Metadata: The contract holds metadata like the token's name, symbol, and decimals.

JettonDefaultWallet Contract

The JettonDefaultWallet contract represents a user's wallet for the TACT token. It provides functionalities such as:

  • Token Transfers: Users can send tokens to other wallets.
  • Token Receipt: The wallet can receive tokens from other wallets or from the main token contract.
  • Token Burning: Users can destroy a certain amount of tokens, reducing the total supply.
  • Balance Query: Users can check the balance of their wallet.

Test

The tests in this repository cover various functionalities of the contracts:

  1. Deployment: Ensures that the Token contract can be successfully deployed.
  2. Minting: Tests the ability to mint new tokens and add them to a user's wallet.
  3. Token Burn: Confirms the ability to burn tokens, which results in a reduction of the wallet's balance. However, the overall total supply remains unaffected.
  4. Safe Token Burn: Tests the secure burning method, ensuring both the wallet balance and total supply are reduced.

To run the tests, use the command:

npx blueprint test

Project structure

  • 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.

Build

npx blueprint build or yarn blueprint build

Test

npx blueprint test or yarn blueprint test

Deploy or run another script

npx blueprint run or yarn blueprint run

Add a new contract

npx blueprint create ContractName or yarn blueprint create ContractName

Tact-Token-Contract

tact-token's People

Contributors

ipromise2324 avatar howardpen9 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.