/admin-wallet

FUNC smart contract for TON blockchain.

Primary LanguageTypeScript

Admin wallet

Description

Smart contract - simple wallet for receiving funds from users. Later admin are able to withdraw all sent funds.

Smart Contract parameters:

  • min_balance - minimal funds amount, which must be on the contract after withdrawal
  • min_accept_amount - minimal funds amount, which are accepted by the contract from users

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 or run another script

npx blueprint run or yarn blueprint run

Add a new contract

npx blueprint create ContractName or yarn blueprint create ContractName