Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
104 commits
Select commit Hold shift + click to select a range
db683a5
feat: implement intent API for WalletKit
nikdim03 Feb 23, 2026
807f176
fix: align intent API with TonConnect spec
nikdim03 Feb 23, 2026
dc32a9e
feat: add support for object storage and trace ID propagation
nikdim03 Feb 25, 2026
d1eeb77
feat: improve type definitions & model generation
nikdim03 Feb 25, 2026
d8408b2
fix: unwrap { type, value } event wrapper in bridge approve/reject me…
nikdim03 Feb 25, 2026
d4ee71a
feat: update address type to UserFriendlyAddress in IntentSignDataRes…
nikdim03 Feb 26, 2026
630a663
refactor: simplify intent API methods and improve type handling
nikdim03 Feb 26, 2026
9911d08
refactor: fix lint
nikdim03 Feb 26, 2026
5b6b794
test: add unit tests for IntentHandler and IntentParser
nikdim03 Feb 26, 2026
c502e40
refactor: fix lint
nikdim03 Feb 26, 2026
0c5b9f2
feat: add approveBatchedIntent and related functionality for handling…
nikdim03 Feb 26, 2026
16952ca
refactor: remove processConnectAfterIntent and related connect reques…
nikdim03 Feb 26, 2026
ed14b6c
feat: enhance approveBatchedIntent to handle signData items and updat…
nikdim03 Feb 27, 2026
dce87ec
feat: update getSignedSendTransaction to support internal message sig…
nikdim03 Feb 27, 2026
6d63d3e
refactor: fix lint
nikdim03 Feb 27, 2026
e1c7d1e
feat: refactor intent models to flat interface unions
nikdim03 Mar 6, 2026
51492c8
feat: update intent API to use 'txDraft' and 'signMsgDraft' terminolo…
nikdim03 Mar 13, 2026
74266fb
feat: rename intent approval methods to use 'Draft' terminology for c…
nikdim03 Mar 13, 2026
6d2313f
feat: enhance isIntentUrl method to support new URL format and pre-in…
nikdim03 Mar 13, 2026
6209fc8
feat: refactor intent request types and validation
nikdim03 Mar 13, 2026
5da4e79
fix: lint
nikdim03 Mar 13, 2026
b607ff8
refactor: update buildInlineUrl to use method and params structure in…
nikdim03 Mar 13, 2026
b081f97
feat: implement action intent handling with transaction and signData …
nikdim03 Mar 13, 2026
95438ea
fix: enhance error handling for action URL response to ensure valid JSON
nikdim03 Mar 13, 2026
3159514
feat: implement payload decryption using NaCl crypto_box with ephemer…
nikdim03 Mar 13, 2026
b1f5b1c
fix: lint
nikdim03 Mar 13, 2026
7d54d81
fix: remove redundant retry mechanism in transaction emulation
nikdim03 Mar 13, 2026
3fd48c1
Revert "fix: remove redundant retry mechanism in transaction emulation"
nikdim03 Mar 13, 2026
b84d3cb
feat: add support for https universal link scheme in IntentParser
nikdim03 Mar 13, 2026
7a7c6e4
feat: add new event types and draft intents to EventStore and wallet …
nikdim03 Mar 13, 2026
c1291f3
feat: update intent origin and event types to include 'connectedBridg…
nikdim03 Mar 13, 2026
8edad0a
feat: add handling for bridge-delivered draft events and enhance Inte…
nikdim03 Mar 13, 2026
b2046cc
feat: route draft events directly via event emitter for existing sess…
nikdim03 Mar 13, 2026
b173e8d
feat: add RawBridgeEvent type import to TonWalletKit
nikdim03 Mar 13, 2026
cbad602
feat: add SignMessage and related intent features to WalletV4R2 and W…
nikdim03 Mar 13, 2026
a606961
fix: use correct wire response format for signMsgDraft (internal_boc)
nikdim03 Mar 15, 2026
44a59fb
fix: pass deliveryMode to sendBatchResponse so signMsgDraft returns i…
nikdim03 Mar 15, 2026
ee1b5a1
fix: fix quality
nikdim03 Mar 13, 2026
2fbf8c0
refactor: rename approveTransactionIntent/approveActionIntent to Draf…
nikdim03 Mar 16, 2026
21cddde
fix: cast intent features to bypass outdated protocol types
nikdim03 Mar 16, 2026
a4b515e
refactor: clean up intent API — remove dead code, fix bugs, deduplicate
nikdim03 Mar 16, 2026
8e6ce7a
fix: restore removeEvent, fix IntentParser.spec.ts formatting
nikdim03 Mar 16, 2026
48b09a9
fix: remove intent features from adapters to fix e2e connect validation
nikdim03 Mar 16, 2026
0499ad3
refactor: update intent API types and methods for consistency
nikdim03 Mar 16, 2026
e59f703
Add type:'batched' discriminant to BatchedIntentEvent
nikdim03 Mar 16, 2026
4b48674
Filter intent features from DeviceInfo in TonConnect connect handshake
nikdim03 Mar 17, 2026
d4be325
feat: add signMessageSupported property to supported features in Wall…
nikdim03 Mar 24, 2026
3aadfa1
feat: implement sign message request handling and approval process
nikdim03 Mar 24, 2026
54e2bac
fix: fix lint
nikdim03 Mar 24, 2026
d755479
feat: add sign message request handling and related hooks
nikdim03 Mar 24, 2026
96cc313
feat: add support for signMessage event in StorageEventStore
nikdim03 Mar 24, 2026
7d6955d
fix: update address validation to use isValidAddress function
nikdim03 Mar 25, 2026
db92ce1
fix: handle address parsing errors in WalletV4R2 and WalletV5R1 adapters
nikdim03 Mar 25, 2026
bfb1a23
refactor: remove unused transaction preview logic in SignMessageHandler
nikdim03 Mar 25, 2026
5bff9d0
refactor: update type annotations to use 'unknown' for network and va…
nikdim03 Mar 25, 2026
24beb99
refactor: enhance transaction message validation to support optional …
nikdim03 Mar 25, 2026
323f8b6
refactor: replace 'any' type with 'unknown' in transaction validation…
nikdim03 Mar 25, 2026
c4dcbfc
refactor: update device info to include all wallet-supported features
nikdim03 Mar 27, 2026
a08cbec
feat: enhance supported features in WalletV4R2 and WalletV5R1 adapters
nikdim03 Mar 27, 2026
e5abdd6
feat: add support for signMessage action in IntentParser
nikdim03 Mar 27, 2026
9c85d24
fix: add timeout to fetch manifest request in ConnectHandler
nikdim03 Mar 25, 2026
bb7ebe2
fix: add retry limit and error predicate to sendBoc in IntentHandler
nikdim03 Mar 27, 2026
f7b7d51
revert: move demo-only sign message files back to demo wallet branch
nikdim03 Mar 30, 2026
ede6a73
Merge branch 'feature/ton-359-new-intent-api-design' into feature/ton…
nikdim03 Mar 30, 2026
4c07c9d
chore: merge main into feature/ton-359-new-intent-api-design
nikdim03 Mar 30, 2026
890d4b9
fix: remove extra blank line in TonWalletKit.ts
nikdim03 Mar 30, 2026
87815d9
fix: update resolveAndApproveAction to return resolved event alongsid…
nikdim03 Mar 30, 2026
42e6507
fix: streamline intent response handling and add missing fields to so…
nikdim03 Mar 30, 2026
28814b1
chore: revert unrelated logic
nikdim03 Apr 1, 2026
c667f61
chore: add TODO
nikdim03 Apr 1, 2026
6e93f71
refactor: extract validation logic into separate transactionValidator…
nikdim03 Apr 1, 2026
cfdf884
refactor: remove preview property from SignMessageRequestEvent and re…
nikdim03 Apr 1, 2026
cdcccd9
fix: add BOC validation to sign message approval response
nikdim03 Apr 1, 2026
c3e0332
refactor: remove sendIntentResponse method and update IntentHandler t…
nikdim03 Apr 1, 2026
b561654
fix: add TODO comments for future removal of type casting in Wallet a…
nikdim03 Mar 30, 2026
348461a
fix: add comments to clarify opcode definitions in WalletV5R1Adapter
nikdim03 Mar 30, 2026
a196de2
chore: revert sendIntentResponse
nikdim03 Apr 1, 2026
3634279
refactor: replace IntentParser instance with isIntentUrl function for…
nikdim03 Apr 1, 2026
3e72a09
test: enhance IntentParser tests with object storage scenarios and re…
nikdim03 Apr 1, 2026
f6102f3
refactor: streamline connect request parsing with a dedicated method …
nikdim03 Apr 1, 2026
6898551
fix: improve error handling and validation for signData and item mapp…
nikdim03 Apr 1, 2026
a1ab8e2
refactor: optimize intentItemsToTransactionRequest by using Promise.a…
nikdim03 Apr 1, 2026
d120e1f
fix: enhance URL validation in IntentParser and add timeout for fetch…
nikdim03 Apr 1, 2026
51d3a25
refactor: prevent duplicate intent request callbacks and optimize bat…
nikdim03 Apr 1, 2026
3b0f471
feat: add traceId and returnStrategy to batch processing in IntentHan…
nikdim03 Apr 1, 2026
f908ea8
refactor: streamline error handling in sendIntentResponse for batched…
nikdim03 Apr 1, 2026
8a778c2
test: add unit test for signMessage action response parsing as signOn…
nikdim03 Apr 1, 2026
4fd3cf7
refactor: rename TransactionDraftRequestEvent to TransactionIntentReq…
nikdim03 Apr 1, 2026
bf3034b
fix: remove timeout from fetch action URL to improve reliability
nikdim03 Apr 1, 2026
d33891d
Merge branch 'main' into feature/ton-359-new-intent-api-design
nikdim03 Apr 1, 2026
8e1c747
fix: remove timeout from fetch manifest
nikdim03 Apr 1, 2026
b9d04fc
fix: if the transaction throws, the connect approval never runs
nikdim03 Apr 1, 2026
12cffe0
fix: handle session not found error when sending response in connecte…
nikdim03 Apr 1, 2026
0e45e1f
Merge branch 'main' into feature/ton-359-new-intent-api-design
nikdim03 Apr 2, 2026
d35ab87
fix: update eventEmitter type and error event handling in SignMessage…
nikdim03 Apr 2, 2026
08ffa16
fix: deliver signed body via an internal message for gasless
nikdim03 Apr 6, 2026
5ef1c61
feat: implement connectWithIntent method and associated event handling
nikdim03 Apr 6, 2026
3c26c22
Merge branch 'main' into feature/ton-359-new-intent-api-design
nikdim03 Apr 6, 2026
2173130
Merge branch 'main' into feature/ton-359-new-intent-api-design
nikdim03 Apr 6, 2026
ea64bbf
feat: update handleIntentUrl method to include optional jsBridgeConte…
nikdim03 Apr 6, 2026
ce79dad
feat: extend jsBridgeContext in handleIntentUrl to include connectReq…
nikdim03 Apr 6, 2026
c38cfad
Merge branch 'main' into feature/ton-359-new-intent-api-design
TrueCarry Apr 6, 2026
a2e5064
chore: fix quality
TrueCarry Apr 6, 2026
c7ae9ef
feat: route intent draft events and connectWithIntent through EventSt…
nikdim03 Apr 6, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 23 additions & 5 deletions packages/walletkit-android-bridge/src/api/eventListeners.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,36 @@ import type {
RequestErrorEvent,
SendTransactionRequestEvent,
SignDataRequestEvent,
IntentRequestEvent,
BatchedIntentEvent,
} from '@ton/walletkit';

type ConnectEventListener = ((event: ConnectionRequestEvent) => void) | null;
type TransactionEventListener = ((event: SendTransactionRequestEvent) => void) | null;
type SignDataEventListener = ((event: SignDataRequestEvent) => void) | null;
type DisconnectEventListener = ((event: DisconnectionEvent) => void) | null;
type ErrorEventListener = ((event: RequestErrorEvent) => void) | null;
/**
* Shared event listener references used to manage WalletKit callbacks.
*/
export type ConnectEventListener = ((event: ConnectionRequestEvent) => void) | null;
export type TransactionEventListener = ((event: SendTransactionRequestEvent) => void) | null;
export type SignDataEventListener = ((event: SignDataRequestEvent) => void) | null;
export type DisconnectEventListener = ((event: DisconnectionEvent) => void) | null;
export type ErrorEventListener = ((event: RequestErrorEvent) => void) | null;
export type IntentEventListener = ((event: IntentRequestEvent | BatchedIntentEvent) => void) | null;

/**
* Union type for all bridge event listeners.
*/
export type BridgeEventListener =
| ConnectEventListener
| TransactionEventListener
| SignDataEventListener
| DisconnectEventListener
| ErrorEventListener
| IntentEventListener;

export const eventListeners = {
onConnectListener: null as ConnectEventListener,
onTransactionListener: null as TransactionEventListener,
onSignDataListener: null as SignDataEventListener,
onDisconnectListener: null as DisconnectEventListener,
onErrorListener: null as ErrorEventListener,
onIntentListener: null as IntentEventListener,
};
11 changes: 11 additions & 0 deletions packages/walletkit-android-bridge/src/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import * as tonconnect from './tonconnect';
import * as nft from './nft';
import * as jettons from './jettons';
import * as browser from './browser';
import * as intents from './intents';
import { eventListeners } from './eventListeners';

export { eventListeners };
Expand Down Expand Up @@ -90,4 +91,14 @@ export const api: WalletKitBridgeApi = {
emitBrowserPageFinished: browser.emitBrowserPageFinished,
emitBrowserError: browser.emitBrowserError,
emitBrowserBridgeRequest: browser.emitBrowserBridgeRequest,

// Intents
isIntentUrl: intents.isIntentUrl,
handleIntentUrl: intents.handleIntentUrl,
approveTransactionDraft: intents.approveTransactionDraft,
approveSignDataIntent: intents.approveSignDataIntent,
approveActionDraft: intents.approveActionDraft,
approveBatchedIntent: intents.approveBatchedIntent,
rejectIntent: intents.rejectIntent,
intentItemsToTransactionRequest: intents.intentItemsToTransactionRequest,
} as unknown as WalletKitBridgeApi;
18 changes: 18 additions & 0 deletions packages/walletkit-android-bridge/src/api/initialization.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ import type {
RequestErrorEvent,
SendTransactionRequestEvent,
SignDataRequestEvent,
IntentRequestEvent,
BatchedIntentEvent,
} from '@ton/walletkit';

import type { WalletKitBridgeInitConfig, SetEventsListenersArgs, WalletKitBridgeEventCallback } from '../types';
Expand Down Expand Up @@ -105,6 +107,17 @@ export async function setEventsListeners(args?: SetEventsListenersArgs): Promise

kit.onRequestError(eventListeners.onErrorListener);

// Register intent listener
if (eventListeners.onIntentListener) {
kit.removeIntentRequestCallback(eventListeners.onIntentListener);
}

eventListeners.onIntentListener = (event: IntentRequestEvent | BatchedIntentEvent) => {
callback('intentRequest', event);
};

kit.onIntentRequest(eventListeners.onIntentListener);

return { ok: true };
}

Expand Down Expand Up @@ -139,5 +152,10 @@ export async function removeEventListeners(): Promise<{ ok: true }> {
eventListeners.onErrorListener = null;
}

if (eventListeners.onIntentListener) {
kit.removeIntentRequestCallback(eventListeners.onIntentListener);
eventListeners.onIntentListener = null;
}

return { ok: true };
}
45 changes: 45 additions & 0 deletions packages/walletkit-android-bridge/src/api/intents.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
/**
* Copyright (c) TonTech.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/

/**
* intents.ts – Bridge API for intent operations
*/

import { kit } from '../utils/bridge';

export async function isIntentUrl(args: unknown[]) {
return kit('isIntentUrl', ...args);
}

export async function handleIntentUrl(args: unknown[]) {
return kit('handleIntentUrl', ...args);
}

export async function approveTransactionDraft(args: unknown[]) {
return kit('approveTransactionDraft', ...args);
}

export async function approveSignDataIntent(args: unknown[]) {
return kit('approveSignDataIntent', ...args);
}

export async function approveActionDraft(args: unknown[]) {
return kit('approveActionDraft', ...args);
}

export async function approveBatchedIntent(args: unknown[]) {
return kit('approveBatchedIntent', ...args);
}

export async function rejectIntent(args: unknown[]) {
return kit('rejectIntent', ...args);
}

export async function intentItemsToTransactionRequest(args: unknown[]) {
return kit('intentItemsToTransactionRequest', ...args);
}
72 changes: 72 additions & 0 deletions packages/walletkit-android-bridge/src/types/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,15 @@ import type {
TransactionRequest,
Wallet,
WalletResponse,
IntentRequestEvent,
BatchedIntentEvent,
TransactionIntentRequestEvent,
SignDataIntentRequestEvent,
ActionIntentRequestEvent,
IntentTransactionResponse,
IntentSignDataResponse,
IntentErrorResponse,
IntentActionItem,
} from '@ton/walletkit';

/**
Expand Down Expand Up @@ -265,6 +274,56 @@ export interface HandleTonConnectUrlArgs {
url: string;
}

// === Intent Args ===

export interface HandleIntentUrlArgs {
url: string;
walletId: string;
}

export interface IsIntentUrlArgs {
url: string;
}

export interface ApproveTransactionDraftArgs {
event: TransactionIntentRequestEvent;
walletId: string;
}

export interface ApproveSignDataDraftArgs {
event: SignDataIntentRequestEvent;
walletId: string;
}

export interface ApproveActionDraftArgs {
event: ActionIntentRequestEvent;
walletId: string;
}

export interface ApproveBatchedIntentArgs {
batch: BatchedIntentEvent;
walletId: string;
}

export interface RejectIntentArgs {
event: IntentRequestEvent | BatchedIntentEvent;
reason?: string;
errorCode?: number;
}

export interface IntentItemsToTransactionRequestArgs {
items: IntentActionItem[];
walletId: string;
}

export interface WalletDescriptor {
address: string;
publicKey: string;
version: string;
index: number;
network: string;
}

export interface WalletKitBridgeApi {
init(config?: WalletKitBridgeInitConfig): PromiseOrValue<{ ok: true }>;
setEventsListeners(args?: SetEventsListenersArgs): PromiseOrValue<{ ok: true }>;
Expand Down Expand Up @@ -317,4 +376,17 @@ export interface WalletKitBridgeApi {
emitBrowserPageFinished(args: EmitBrowserPageArgs): PromiseOrValue<{ success: boolean }>;
emitBrowserError(args: EmitBrowserErrorArgs): PromiseOrValue<{ success: boolean }>;
emitBrowserBridgeRequest(args: EmitBrowserBridgeRequestArgs): PromiseOrValue<{ success: boolean }>;
// Intent API
isIntentUrl(args: IsIntentUrlArgs): PromiseOrValue<boolean>;
handleIntentUrl(args: HandleIntentUrlArgs): PromiseOrValue<void>;
approveTransactionDraft(args: ApproveTransactionDraftArgs): PromiseOrValue<IntentTransactionResponse>;
approveSignDataIntent(args: ApproveSignDataDraftArgs): PromiseOrValue<IntentSignDataResponse>;
approveActionDraft(
args: ApproveActionDraftArgs,
): PromiseOrValue<IntentTransactionResponse | IntentSignDataResponse>;
approveBatchedIntent(
args: ApproveBatchedIntentArgs,
): PromiseOrValue<IntentTransactionResponse | IntentSignDataResponse>;
rejectIntent(args: RejectIntentArgs): PromiseOrValue<IntentErrorResponse>;
intentItemsToTransactionRequest(args: IntentItemsToTransactionRequestArgs): PromiseOrValue<TransactionRequest>;
}
1 change: 1 addition & 0 deletions packages/walletkit-android-bridge/src/types/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export type WalletKitBridgeEventType =
| 'signDataRequest'
| 'disconnect'
| 'requestError'
| 'intentRequest'
| 'browserPageStarted'
| 'browserPageFinished'
| 'browserError'
Expand Down
30 changes: 30 additions & 0 deletions packages/walletkit-android-bridge/src/types/walletkit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,28 @@

import type {
ApiClient,
BatchedIntentEvent,
BridgeEventMessageInfo,
ConnectionApprovalResponse,
ConnectionRequestEvent,
DeviceInfo,
DisconnectionEvent,
InjectedToExtensionBridgeRequestPayload,
IntentActionItem,
IntentErrorResponse,
IntentRequestEvent,
IntentSignDataResponse,
IntentTransactionResponse,
ActionIntentRequestEvent,
Network,
RequestErrorEvent,
SendTransactionApprovalResponse,
SendTransactionRequestEvent,
SignDataApprovalResponse,
SignDataIntentRequestEvent,
SignDataRequestEvent,
TONConnectSession,
TransactionIntentRequestEvent,
TransactionRequest,
Wallet,
WalletAdapter,
Expand Down Expand Up @@ -116,4 +125,25 @@ export interface WalletKitInstance {
event: SignDataRequestEvent,
reason?: string | SendTransactionRpcResponseError['error'],
): Promise<void>;
// Intent API
isIntentUrl(url: string): boolean;
handleIntentUrl(url: string, walletId: string): Promise<void>;
onIntentRequest(cb: (event: IntentRequestEvent | BatchedIntentEvent) => void): void;
removeIntentRequestCallback(cb: (event: IntentRequestEvent | BatchedIntentEvent) => void): void;
approveTransactionDraft(event: TransactionIntentRequestEvent, walletId: string): Promise<IntentTransactionResponse>;
approveSignDataIntent(event: SignDataIntentRequestEvent, walletId: string): Promise<IntentSignDataResponse>;
approveActionDraft(
event: ActionIntentRequestEvent,
walletId: string,
): Promise<IntentTransactionResponse | IntentSignDataResponse>;
approveBatchedIntent(
batch: BatchedIntentEvent,
walletId: string,
): Promise<IntentTransactionResponse | IntentSignDataResponse>;
rejectIntent(
event: IntentRequestEvent | BatchedIntentEvent,
reason?: string,
errorCode?: number,
): Promise<IntentErrorResponse>;
intentItemsToTransactionRequest(items: IntentActionItem[], walletId: string): Promise<TransactionRequest>;
}
4 changes: 3 additions & 1 deletion packages/walletkit/src/api/interfaces/WalletAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ export interface WalletAdapter {
getSignedSendTransaction(
input: TransactionRequest,
options?: {
fakeSignature: boolean;
fakeSignature?: boolean;
/** Use internal message opcode (0x73696e74) instead of external (0x7369676e) for gasless relaying */
internal?: boolean;
},
): Promise<Base64String>;
getSignedSignData(
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/**
* Copyright (c) TonTech.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/

import type { Base64String } from '../core/Primitives';

/**
* Response after user approves a sign-message request.
*/
export interface SignMessageApprovalResponse {
/**
* Signed internal message BoC (Bag of Cells) format, encoded in Base64.
* This is a signed internal message (internal opcode) that the dApp can relay via a third-party relayer.
*/
internalBoc: Base64String;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/**
* Copyright (c) TonTech.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/

import type { TransactionRequest } from '../transactions/TransactionRequest';
import type { BridgeEvent } from './BridgeEvent';

/**
* Event containing a sign-message (sign-only transaction) request from a dApp via TON Connect.
* The wallet signs the transaction using the internal opcode and returns the signed BoC
* without broadcasting it on-chain.
*/
export interface SignMessageRequestEvent extends BridgeEvent {
/**
* Raw transaction request data
*/
request: TransactionRequest;
}
23 changes: 23 additions & 0 deletions packages/walletkit/src/api/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ export type {
SendTransactionRequestEvent,
SendTransactionRequestEventPreview,
} from './bridge/SendTransactionRequestEvent';
export type { SignMessageApprovalResponse } from './bridge/SignMessageApprovalResponse';
export type { SignMessageRequestEvent } from './bridge/SignMessageRequestEvent';
export type { RequestErrorEvent } from './bridge/RequestErrorEvent';
export type { TONConnectSession } from './sessions/TONConnectSession';

Expand Down Expand Up @@ -106,6 +108,27 @@ export type {
TransactionTraceMoneyFlowItem,
} from './transactions/TransactionTraceMoneyFlow';

// Intent models
export type { SendTonAction, SendJettonAction, SendNftAction, IntentActionItem } from './intents/IntentActionItem';
export type {
IntentOrigin,
IntentDeliveryMode,
IntentRequestBase,
TransactionIntentRequestEvent,
SignDataIntentRequestEvent,
ActionIntentRequestEvent,
ConnectIntentRequestEvent,
IntentRequestEvent,
} from './intents/IntentRequestEvent';
export type {
IntentTransactionResponse,
IntentSignDataResponse,
IntentErrorResponse,
IntentError,
IntentResponseResult,
} from './intents/IntentResponse';
export type { BatchedIntentEvent } from './intents/BatchedIntentEvent';

// RPC models
export type { GetMethodResult } from './rpc/GetMethodResult';

Expand Down
Loading
Loading