howardpen9 / staking-in-tact

Staking Jetton token(ERC20 in TON) implement in Tact-lang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Example of Jetton Token Staking

yarn test # To test contract
yarn build # To build contract
yarn deploy # To deploy contract
yarn d1 # To run 1_Transfer_Stake, that transfers stake from one jetton wallet to the staking contract
yarn d2 # Generate the link to run 2_Stake, that enable for user to stakes jettons(based on the walletV4 contract address you gave to)

Deployment

To deploy contract you should:

  1. Specify contract.tact that will be used as entry point of your contract
  2. Configure contract.deploy.ts according to your contract.tact to generate a deployment link. In particular, it is necessary to correctly call the Init() function from the contract.

If you renamed contract.tact to something else, you need to update tact.config.json correspondingly. For more information , see Tact Documentation

Testing

Example of contract tests are in contract.spec.ts. For more information about testing, see Tact Documentation

To add new test files to contract you should create *.spec.ts files similar to template's one and they would be automatically included in testing.

Licence

MIT

About

Staking Jetton token(ERC20 in TON) implement in Tact-lang


Languages

Language:TypeScript 99.9%Language:JavaScript 0.1%