MCPcopy Index your code
hub / github.com/VanishMax/foton

github.com/VanishMax/foton @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
461 symbols 750 edges 117 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Foton Logo

Foton

⚡ Create TON dApps with the speed of a photon

Warning: This project is under active development and is not ready for production use. Each release might and probably will contain breaking changes. If you find bugs when using it, please submit an issue.

Foton is a TypeScript toolkit for interacting with TON wallets and blockchain as a whole. The library wraps existing solutions into one comfortable API. It supports:

  • ✅ Wallet connection
  • ✅ Sending transactions
  • ✅ Querying the blockchain
  • ✅ Deploying and interacting with smart contracts
  • ✅ Blueprint and TON Connect integration for easy code migrations
  • ✅ Type safe interfaces with full auto-completion for contract methods and returns

Not sure where to start? - Explore Foton documentation - Try building a simple Counter dApp with React and Foton by following the tutorial. - Ask for help or share your feedback in the Telegram chat - Look for a ways to contribute or donate to the project

License

The source code is licensed under the terms of MIT License. 2024, Max Korsunov.

Extension points exported contracts — how you extend this code

ExtendedContract (Interface)
(no doc) [3 implementers]
packages/core/src/contract/helper-types.ts
FileSystemEntity (Interface)
(no doc)
packages/cli/src/utils/findTactFiles.ts
CreateClientOptions (Interface)
(no doc)
packages/api/src/types.ts
ImportMetaEnv (Interface)
(no doc)
apps/jetton/src/vite-env.d.ts
CompiledContract (Interface)
(no doc) [3 implementers]
packages/core/src/contract/helper-types.ts
paths (Interface)
(no doc)
packages/api/src/schemas/toncenter-v3.ts
ImportMeta (Interface)
(no doc)
apps/jetton/src/vite-env.d.ts
WaitForTransactionOptions (Interface)
(no doc)
packages/core/src/public/wait-for-transaction.ts

Core symbols most depended-on inside this repo

returnError
called by 22
packages/core/src/shared/errors/return-error.ts
returnData
called by 13
packages/core/src/shared/errors/return-data.ts
getNetwork
called by 3
packages/core/src/shared/chains.ts
bocToHash
called by 3
packages/core/src/shared/utils/boc-to-hash.ts
createPublicClient
called by 2
packages/core/src/public/client.ts
createWalletClientUI
called by 2
packages/core/src/wallet/ui-client.ts
filterWallets
called by 2
packages/core/src/wallet/get-wallets.ts
closeConnectionModal
called by 2
packages/core/src/wallet/ui-connect.ts

Shape

Function 332
Method 46
Class 42
Interface 41

Languages

TypeScript100%

Modules by API surface

packages/contracts/src/jetton/jetton_SampleJetton.ts97 symbols
packages/contracts/src/jetton/jetton_JettonDefaultWallet.ts95 symbols
packages/contracts/src/counter/counter_SimpleCounter.ts65 symbols
packages/core/src/shared/errors/syntax-errors.ts21 symbols
packages/core/src/shared/errors/ton-errors.ts18 symbols
packages/core/src/shared/errors/user-errors.ts12 symbols
packages/core/src/contract/helper-types.ts6 symbols
packages/core/src/contract/abi/compose-payload.ts6 symbols
apps/jetton/src/components/jetton-minters/index.tsx6 symbols
apps/counter/src/hooks/useContract.tsx5 symbols
packages/core/src/wallet/ui-client.ts4 symbols
packages/core/src/wallet/client.ts4 symbols

For agents

$ claude mcp add foton \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact