@blazium/ton-connect-mobile 1.0.8 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -109,6 +109,7 @@ function buildConnectionRequest(manifestUrl, returnScheme, walletUniversalLink)
109
109
  const payload = {
110
110
  manifestUrl,
111
111
  items: [{ name: 'ton_addr' }],
112
+ returnScheme, // CRITICAL: Wallet needs to know the callback scheme for mobile apps
112
113
  returnStrategy: 'back',
113
114
  };
114
115
  const encoded = encodeBase64URL(payload);
@@ -139,6 +140,7 @@ function buildTransactionRequest(manifestUrl, request, returnScheme, walletUnive
139
140
  network: request.network,
140
141
  from: request.from,
141
142
  },
143
+ returnScheme, // CRITICAL: Wallet needs to know the callback scheme for mobile apps
142
144
  returnStrategy: 'back',
143
145
  };
144
146
  const encoded = encodeBase64URL(payload);
@@ -75,7 +75,9 @@ export interface ConnectionRequestPayload {
75
75
  items: Array<{
76
76
  name: 'ton_addr';
77
77
  }>;
78
- /** Return URL scheme */
78
+ /** Return URL scheme (for mobile apps) */
79
+ returnScheme?: string;
80
+ /** Return strategy */
79
81
  returnStrategy?: 'back' | 'none';
80
82
  }
81
83
  /**
@@ -130,7 +132,9 @@ export interface TransactionRequestPayload {
130
132
  /** Optional from address */
131
133
  from?: string;
132
134
  };
133
- /** Return URL scheme */
135
+ /** Return URL scheme (for mobile apps) */
136
+ returnScheme?: string;
137
+ /** Return strategy */
134
138
  returnStrategy?: 'back' | 'none';
135
139
  }
136
140
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blazium/ton-connect-mobile",
3
- "version": "1.0.8",
3
+ "version": "1.1.0",
4
4
  "description": "Production-ready TON Connect Mobile SDK for React Native and Expo. Implements the real TonConnect protocol for mobile applications using deep links and callbacks.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -135,6 +135,7 @@ export function buildConnectionRequest(
135
135
  const payload: ConnectionRequestPayload = {
136
136
  manifestUrl,
137
137
  items: [{ name: 'ton_addr' }],
138
+ returnScheme, // CRITICAL: Wallet needs to know the callback scheme for mobile apps
138
139
  returnStrategy: 'back',
139
140
  };
140
141
 
@@ -174,6 +175,7 @@ export function buildTransactionRequest(
174
175
  network: request.network,
175
176
  from: request.from,
176
177
  },
178
+ returnScheme, // CRITICAL: Wallet needs to know the callback scheme for mobile apps
177
179
  returnStrategy: 'back',
178
180
  };
179
181
 
@@ -81,7 +81,9 @@ export interface ConnectionRequestPayload {
81
81
  items: Array<{
82
82
  name: 'ton_addr';
83
83
  }>;
84
- /** Return URL scheme */
84
+ /** Return URL scheme (for mobile apps) */
85
+ returnScheme?: string;
86
+ /** Return strategy */
85
87
  returnStrategy?: 'back' | 'none';
86
88
  }
87
89
 
@@ -138,7 +140,9 @@ export interface TransactionRequestPayload {
138
140
  /** Optional from address */
139
141
  from?: string;
140
142
  };
141
- /** Return URL scheme */
143
+ /** Return URL scheme (for mobile apps) */
144
+ returnScheme?: string;
145
+ /** Return strategy */
142
146
  returnStrategy?: 'back' | 'none';
143
147
  }
144
148