Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/howardpen9/friendtech_in_tact
https://github.com/howardpen9/friendtech_in_tact
Last synced: 30 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/howardpen9/friendtech_in_tact
- Owner: howardpen9
- Created: 2023-10-15T15:18:52.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-20T03:22:59.000Z (10 months ago)
- Last Synced: 2024-02-20T04:28:33.959Z (10 months ago)
- Language: TypeScript
- Size: 436 KB
- Stars: 9
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Boilerplate for Implementing Friend Tech Protocol in Tact Language on TON Blockchain
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.
## Key Components
- There are three primary smart contracts involved:
1. Main Contract
2. Role Contract
3. Balance Contract![imsage](image/1.png)
## Administrative Permissions
- 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."
![image](image/3.png)
## Buy Shares
Anyone can buy the shares for any Profile contract they like.
![image](image/2.png)## Fee Structure
- 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.
# Commends
```bash
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
```## More
For more information about this GitHub repository, or if you have any questions related to Tact, feel free to visit:
- https://t.me/ton101
- https://t.me/tactlangIf you have more specific questions related to the Tact Language, please refer to:
- https://tact-lang.org/