Skip to content

feat: intent interfaces#510

Draft
jenshenJ wants to merge 15 commits intodevelopfrom
feat/intent-interfaces
Draft

feat: intent interfaces#510
jenshenJ wants to merge 15 commits intodevelopfrom
feat/intent-interfaces

Conversation

@jenshenJ
Copy link
Contributor

No description provided.

@jenshenJ jenshenJ requested a review from a team as a code owner February 24, 2026 08:06
@vercel
Copy link

vercel bot commented Feb 24, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sdk-demo-dapp-react Ready Ready Preview, Comment Mar 2, 2026 11:21am
sdk-docs Ready Ready Preview, Comment Mar 2, 2026 11:21am

Request Review

Copy link

@manuchehrsa manuchehrsa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

eee1829c6bb5eb4986ef4fb3f58d2963aff597e3

} from 'src/app/env/WALLET_CONNECT';
import { IMG } from 'src/app/env/IMG';

type TonConnectUIIntentOptions = ActionConfiguration & OptionalTraceable<IntentUrlOptions>;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove signal and onUrlReady from ui props

public async signDataIntent(
_data: SignDataIntentRequest,
_options?: TonConnectUIIntentOptions
): Promise<OptionalTraceable<SignDataResponse>> {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

map types

public async sendActionIntent(
_action: SendActionIntentRequest,
_options?: TonConnectUIIntentOptions
): Promise<OptionalTraceable<SendTransactionResponse | SignDataResponse>> {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

signMessage also

Copy link

@manuchehrsa manuchehrsa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

packages/sdk/src/models/methods/intents/send-transaction-intent-request.ts

* If user rejects transaction, method will throw the corresponding error.
*/
sendTransactionIntent(
transaction: SendTransactionIntentRequest,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add wallet as in connect request

errorsHandler?: (err: TonConnectError) => void
): () => void;

onIntentResponse(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dont remove, leave
flow is following

  1. makeIntent returns url and connect to bridges (or send it to js bridge)
  2. when intent received intent callback is called
  3. on the level of tonconnect ui this callback is awaited and then returned as a response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants