Code Monkey home page Code Monkey logo

ab-spl-token-mint-contract's Introduction

ART_Token_Vesting

$ART SPL token vesting program by using freeze authority of token

This program is designed to keep the token accounts in a frozen state so that the holders can't use the SPL tokens for their purpose until a certain period.

The only allowed usage is paying the SPL token for minting a new Aiko Collection NFTs with SPL token paying.

Getting Set Up

Prerequisites

  • Ensure you have recent versions of both node and yarn installed.

  • Follow the instructions here to install the Solana Command Line Toolkit.

Installation

Install all npm dependencies by running yarn install.

Command Usage

To run the project, start commands in cli/command.ts with yarn ts-node script:

init 

Initialize the Aiko Vesting program. Don't need it after init once.

status

Get current config and whitelist of the Aiko Vesting program.

update_status

Able to update the program's config and whitelist with this command.
-a --admin <string> - The admin address of the Aiko Vesting program. Admin can send private all transactions such as update_status.
-s --active <boolean> - If the active status is false, all requests for transfer from/to frozen account will be allowed. And also don't freeze all accounts after running instructions.

add_whitelist

Add certain owner wallet or token account which allows transferring and thaw. Admin can call this intruction.
-a --address <string> - The allowed address adds to the whitelist of the program.

remove_whitelist

Remove certain owner wallet or token account which allows transferring and thaw. Admin can call this intruction.
-a --address <string> - The blocked address removes from the whitelist of the program.

transfer_authority

Transfer the freeze authority of $ART token which the PDA of the program got. Admin can call this intruction.
-a --address <string> - The wallet address to transfer the freeze authority of $ART token.

freeze

Freeze a certain token account with PDA's freeze authority. This request allowed for all callers even one isn't on the whitelist.
-a --account <string> - The $ART token account address to freeze.

thaw

Thaw a certain token account with PDA's freeze authority. This request is limited to particular callers who are on the whitelist.
-a --account <string> - The $ART token account address to thaw.

transfer

Transfer a certain amount of $ART token from one owner to another. This request is allowed if the source or destination token accounts or its owner are on the whitelist.
-a --account <string> - The $ART token account address to thaw.

Cluster Config

All commands have one option to configure the Cluster of Solana Network.
-e --env <string> - Cluster config value
mainnet-beta, devnet, testnet - One of this value is config. Default is devnet.

ab-spl-token-mint-contract's People

Contributors

asseph avatar

Stargazers

 avatar  avatar RABNAIL1015 avatar BiTronicHHH avatar Light Fury avatar Steven avatar Steven Springer avatar  avatar  avatar  avatar Charlee avatar RuneSats avatar

Watchers

BiTronicHHH avatar  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.