Giter Site home page Giter Site logo

vanishmax / foton Goto Github PK

View Code? Open in Web Editor NEW
25.0 2.0 2.0 4.04 MB

⚡ Create TON dApps with the speed of a foton

Home Page: https://foton.sh

License: MIT License

Batchfile 0.03% JavaScript 0.57% TypeScript 82.59% HTML 0.19% CSS 1.74% MDX 14.87%
blockchain dapp javascript theopennetwork ton typescript web3

foton's Introduction

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?

License

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

foton's People

Contributors

vanishmax avatar

Stargazers

 avatar Roman Inozemtsev avatar こちらで avatar  avatar JackyHuang avatar Ruslan Korneev avatar  avatar Panic avatar Takhir Kudusov avatar  avatar lz.piotr avatar Duc Pham Le  avatar Mehdi Baneshi avatar  avatar  avatar  avatar Andrey Gulitsky avatar Hossein Mayboudi avatar JohnDen avatar Vitor Py avatar Five Stars avatar  avatar  avatar Aleksandr Krivonosov avatar Ahmad Hamdan avatar

Watchers

Mehdi Baneshi avatar  avatar

foton's Issues

TypeError: (0 , S.default) is not a function

I receive this stack trace when trying to invoke createPublicClient in nodejs environment:

TypeError: (0 , S.default) is not a function
    at G (/Users/petrpotapov/Projects/lottery-smart-func/smart-func/node_modules/@fotonjs/api/dist/index.cjs:1:2864)
    at $ (/Users/petrpotapov/Projects/lottery-smart-func/smart-func/node_modules/@fotonjs/core/dist/index.cjs:1:1207)
    at Object.<anonymous> (/Users/petrpotapov/Projects/lottery-smart-func/smart-func/scripts/getLotteryResults.ts:16:47)
    at Module._compile (node:internal/modules/cjs/loader:1369:14)
    at Module.m._compile (/Users/petrpotapov/Projects/lottery-smart-func/smart-func/node_modules/ts-node/src/index.ts:1618:23)
    at Module._extensions..js (node:internal/modules/cjs/loader:1427:10)
    at Object.require.extensions.<computed> [as .ts] (/Users/petrpotapov/Projects/lottery-smart-func/smart-func/node_modules/ts-node/src/index.ts:1621:12)
    at Module.load (node:internal/modules/cjs/loader:1206:32)
    at Function.Module._load (node:internal/modules/cjs/loader:1022:12)
    at Module.require (node:internal/modules/cjs/loader:1231:19)

Environment:
"@fotonjs/core": "^0.0.7",
"@ton/core": "^0.56.3",

TS config (tested in different environments, didn't help):
{
"compilerOptions": {
"target": "ES2020",
"outDir": "dist",
"module": "commonjs",
"declaration": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true
}
}

My current ideation process is that this library is designed to be used in browser environment with nodejs polyfills and isn't designed to be used on the backend. Is that correct assumption?

Add mnemonics for WalletClient

It would be great to add mnemonic initialization to the WalletClient in the foton library. This feature would allow users to import wallets using mnemonic phrases, derive key pairs, and sign transactions using those keys.

Requirements
Implement a method to initialize WalletClient with a mnemonic phrase.
Derive key pairs using a standard derivation path.
Enable transaction signing with the derived keys.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.