Code Monkey home page Code Monkey logo

ton-connect's People

Contributors

bogoslavskiy avatar hiyorimi avatar oleganza avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ton-connect's Issues

License question.

Is it ok to use this? to auth the users of our dApp with tonkeeper, need to ask to respect your opinion, since there isn´t a license

yarn compile fails

Bug Type

Functional

Reproduction steps

When running npm run compile or yarn compile the job fails
with the output

Actual result

➜  sdk git:(main) npm run compile

> [email protected] compile
> ttsc

src/ton-connect/core/models/index.ts:2:41 - error TS2307: Cannot find module './transaction-request' or its corresponding type declarations.

2 export type { TransactionRequest } from './transaction-request';
                                          ~~~~~~~~~~~~~~~~~~~~~~~

src/ton-connect/core/models/index.ts:3:34 - error TS2307: Cannot find module './sign-request' or its corresponding type declarations.

3 export type { SignRequest } from './sign-request';
                                   ~~~~~~~~~~~~~~~~

src/widget/widget-controller.ts:30:9 - error TS2322: Type 'SendTransactionResponse' is not assignable to type 'boolean'.

30         return this.connector.sendTransaction(tx);
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/widget/widget-controller.ts:41:9 - error TS2322: Type 'SignMessageResponse' is not assignable to type 'string'.

41         return this.connector.sign(signRequest);
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Found 4 errors in 2 files.

Errors  Files
     2  src/ton-connect/core/models/index.ts:2
     2  src/widget/widget-controller.ts:30
     
     ```

### Expected result

Should be compile typescript

### Suggested Severity

Critical

### Device

Node.js  Version
v17.8.0

### Additional Context

_No response_

Ton Connect 2.0 plan

UPDATE: Ton connect 2.0 is moved to a separate github org: https://github.com/ton-connect

Use-cases to focus on

Primary: mobile dapps serverless or via Telegram bots (TWA) working together with mobile native wallets.

Secondary:

  • server applications,
  • desktop web- or standalone apps with mobile wallets,
  • web dapps running as extensions within the mobile wallet.

Tertiary: web-apps working with a chrome extension, and non-native wallets.

Architecture

  1. Each wallet provides a bridging service for the app to connect with. User selects a wallet explicitly in the "Connect with TON" prompt.
  2. SSE and POST requests over the bridge.
  3. Sessions can be re-started at whim by the dapp.
  4. Single SDK to initiate connections.
  5. Separate starting points for connecting a wallet (passing over the unauthenticated wallet address) & signing in.

Checklist

  • Define the JS API for initiating connections and setting up the prompt.
  • Define the format for wallets' descriptions with their bridge addresses, icons and names.
  • Ton Connect prompt design and layout (buttons, modal window with wallet buttons, pending confirmation window). Moved to a separate library; we'll focus on pure API in initial release.
  • Message encoding connect requests and responses: connect, sign in, sign tx.
  • Define a mechanism for attaching TON.DNS records immutably - as DNS items or via a separate registry. Serverless dapps don't have their own backend and do not use DNS authentication.

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.