This boilerplate serves as a template for implementing the Friend Tech protocol on the TON Blockchain using the Tact programming language. The pricing structure adheres to a predetermined equation. Please feel free to verify the code before using it; use it at your own risk.
-
There are three primary smart contracts involved:
- Main Contract
- Role Contract
- Balance Contract
- Only an admin address has the authority to create a new Role contract. The admin can assign individuals as owners, also referred to as "Profiles for Celebrities."
Anyone can buy the shares for any Profile contract they like.
- A transaction fee of 10% will be applied when people purchase shares. Of this fee, 5% will go towards the protocol, and the remaining 5% will be allocated to the owner of the Profile Contract.
yarn build # To build contract
yarn test # To run test cases
yarn deploy # To deploy contract
yarn read # The way to read the smart contract data after your deployed the code
For more information about this GitHub repository, or if you have any questions related to Tact, feel free to visit:
If you have more specific questions related to the Tact Language, please refer to: