Giter Site home page Giter Site logo

minter-contract-blueprint's Introduction

Jetton Minter

READ THIS BEFORE PROCEEDING

This project is based on minter-contract + token-contract and acts as a re-implementation of said contracts using Blueprint and latest versions of TON SDK.

  • JettonMinter:

    • Contracts migrated
    • Wrapper re-implemented
      • Deployer
      • Minter
      • Burner
    • Functional deploy script
    • Test cases
  • JettonWallet:

    • Contracts migrated
    • Wrapper re-implemented
    • Scripts
  • Post deployment scripts

    • Mint
    • Info
    • Transfer Admin
    • Burn
    • Transfer Coins

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.

How to use

Build

npx blueprint build or yarn blueprint build

Test

npx blueprint test or yarn blueprint test

Deploy The Jetton

  1. Modify JettonMinter\scripts\deployJettonMinter.ts with the desired parameters, like name, symbol, supply, etc.
  2. Run npx blueprint run and choose deployJettonMinter.ts from the list.

Get Info About A Deployed Jetton

  1. Modify JettonMinter\scripts\deployInfo.ts with the address of deployed Jetton.
  2. Run npx blueprint run and choose deployInfo.ts from the list.

Mint More Coins

  1. Modify JettonMinter\scripts\deployMint.ts with the address of deployed Jetton and the amount to mint.
  2. Run npx blueprint run and choose deployMint.ts from the list.

Transfer Admin Rights

  1. Modify JettonMinter\scripts\deployAdminChange.ts with the address of deployed Jetton and the new admin address.
  2. Run npx blueprint run and choose deployAdminChange.ts from the list.

Transfer Coins

  1. Modify JettonMinter\scripts\deployTransferJettons.ts with the address of deployed Jetton, the sender address, and the amount to transfer.
  2. Run npx blueprint run and choose deployTransferJettons.ts from the list.

Burn Coins

  1. Modify JettonMinter\scripts\deployBurnJettons.ts with the address of deployed Jetton and the amount to burn.
  2. Run npx blueprint run and choose deployBurnJettons.ts from the list.

minter-contract-blueprint's People

Contributors

swafox avatar

Stargazers

 avatar Andrey Gulitsky avatar

minter-contract-blueprint's Issues

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.