Skip to content
View toncverifier's full-sized avatar

Block or report toncverifier

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
toncverifier/README.md

twa-template

Starter template for a new TWA interacting with the TON blockchain

Overview

The project is highly-opinionated, and there are many other alternate routes it could have taken. Some examples:

  • Supports Ton Connect 2 wallets
  • Uses vite with react (alternative to create-react-app)
  • Uses the ton npm package

Prerequesities

  • Node.js v16 (other versions may work, needs more testing)
  • A TON Connect compatible wallet (e.g. Tonkeeper)

What does this repo contain?

  • A react-based TWA-ready app, interacting with TON
  • Github actions set to deploy app to github pages
  • A script to connect a telegram bot to the deployed app

How to use

  1. Create a template from this repo with the "Use this template" button

    1. Choose a name for your repo
    2. **IMPORTANT!!** mark "Include all branches", otherwise github pages deployment will not work. image
  2. Clone this repo and run yarn

  3. Create a new bot with botfather

    1. Type /newbot
    2. Choose a name for your bot, e.g. My Ton TWA
    3. Choose a username for your bot, e.g. my_ton_twa_482765_bot
    4. Take note of the access token, e.g. 5712441624:AAHmiHvwrrju1F3h29rlVOZLRLnv-B8ZZZ
    5. Run yarn configbot to link your bot to the webapp

Development

  1. Run npm run dev and edit the code as needed
  2. On push to the main branch, the app will be automatically deployed via github actions.

Roadmap

  • Jetton transfer support

License

MIT

Popular repositories Loading

  1. ton-key ton-key Public

  2. tact tact Public template

    TypeScript

  3. ton-asset ton-asset Public

    Forked from broxus/ton-assets

    Collection of information about TIP3 tokens available in Everscale

  4. sdk-samples sdk-samples Public

    Forked from everx-labs/sdk-samples

    EVER SDK samples

    JavaScript

  5. samples samples Public

    Forked from everx-labs/samples

    Samples of Free TON smart contracts in Solidity, C++ and C

    Solidity

  6. tip3 tip3 Public

    Forked from broxus/tip3

    Venom token implementation. Complies with the TIP3 token standard.

    TypeScript