@tonconnect/sdk 3.3.0 → 3.3.1-beta.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.
package/lib/cjs/index.cjs CHANGED
@@ -1814,7 +1814,18 @@ const FALLBACK_WALLETS_LIST = [
1814
1814
  url: 'https://walletbot.me/tonconnect-bridge/bridge'
1815
1815
  }
1816
1816
  ],
1817
- platforms: ['ios', 'android', 'macos', 'windows', 'linux']
1817
+ platforms: ['ios', 'android', 'macos', 'windows', 'linux'],
1818
+ features: [
1819
+ {
1820
+ name: 'SendTransaction',
1821
+ maxMessages: 255,
1822
+ extraCurrencySupported: true
1823
+ },
1824
+ {
1825
+ name: 'SignData',
1826
+ types: ['text', 'binary', 'cell']
1827
+ }
1828
+ ]
1818
1829
  },
1819
1830
  {
1820
1831
  app_name: 'tonkeeper',
@@ -1834,7 +1845,18 @@ const FALLBACK_WALLETS_LIST = [
1834
1845
  key: 'tonkeeper'
1835
1846
  }
1836
1847
  ],
1837
- platforms: ['ios', 'android', 'chrome', 'firefox', 'macos']
1848
+ platforms: ['ios', 'android', 'chrome', 'firefox', 'macos'],
1849
+ features: [
1850
+ {
1851
+ name: 'SendTransaction',
1852
+ maxMessages: 255,
1853
+ extraCurrencySupported: true
1854
+ },
1855
+ {
1856
+ name: 'SignData',
1857
+ types: ['text', 'binary', 'cell']
1858
+ }
1859
+ ]
1838
1860
  },
1839
1861
  {
1840
1862
  app_name: 'mytonwallet',
@@ -1842,6 +1864,7 @@ const FALLBACK_WALLETS_LIST = [
1842
1864
  image: 'https://static.mytonwallet.io/icon-256.png',
1843
1865
  about_url: 'https://mytonwallet.io',
1844
1866
  universal_url: 'https://connect.mytonwallet.org',
1867
+ deepLink: 'mytonwallet-tc://',
1845
1868
  bridge: [
1846
1869
  {
1847
1870
  type: 'js',
@@ -1852,7 +1875,18 @@ const FALLBACK_WALLETS_LIST = [
1852
1875
  url: 'https://tonconnectbridge.mytonwallet.org/bridge/'
1853
1876
  }
1854
1877
  ],
1855
- platforms: ['chrome', 'windows', 'macos', 'linux', 'ios', 'android', 'firefox']
1878
+ platforms: ['chrome', 'windows', 'macos', 'linux', 'ios', 'android', 'firefox'],
1879
+ features: [
1880
+ {
1881
+ name: 'SendTransaction',
1882
+ maxMessages: 255,
1883
+ extraCurrencySupported: false
1884
+ },
1885
+ {
1886
+ name: 'SignData',
1887
+ types: ['text', 'binary', 'cell']
1888
+ }
1889
+ ]
1856
1890
  },
1857
1891
  {
1858
1892
  app_name: 'tonhub',
@@ -1870,7 +1904,18 @@ const FALLBACK_WALLETS_LIST = [
1870
1904
  url: 'https://connect.tonhubapi.com/tonconnect'
1871
1905
  }
1872
1906
  ],
1873
- platforms: ['ios', 'android']
1907
+ platforms: ['ios', 'android'],
1908
+ features: [
1909
+ {
1910
+ name: 'SendTransaction',
1911
+ maxMessages: 255,
1912
+ extraCurrencySupported: true
1913
+ },
1914
+ {
1915
+ name: 'SignData',
1916
+ types: ['text', 'binary', 'cell']
1917
+ }
1918
+ ]
1874
1919
  },
1875
1920
  {
1876
1921
  app_name: 'bitgetTonWallet',
@@ -1889,7 +1934,14 @@ const FALLBACK_WALLETS_LIST = [
1889
1934
  }
1890
1935
  ],
1891
1936
  platforms: ['ios', 'android', 'chrome'],
1892
- universal_url: 'https://bkcode.vip/ton-connect'
1937
+ universal_url: 'https://bkcode.vip/ton-connect',
1938
+ features: [
1939
+ {
1940
+ name: 'SendTransaction',
1941
+ maxMessages: 4,
1942
+ extraCurrencySupported: false
1943
+ }
1944
+ ]
1893
1945
  },
1894
1946
  {
1895
1947
  app_name: 'okxMiniWallet',
@@ -1903,11 +1955,18 @@ const FALLBACK_WALLETS_LIST = [
1903
1955
  url: 'https://www.okx.com/tonbridge/discover/rpc/bridge'
1904
1956
  }
1905
1957
  ],
1906
- platforms: ['ios', 'android', 'macos', 'windows', 'linux']
1958
+ platforms: ['ios', 'android', 'macos', 'windows', 'linux'],
1959
+ features: [
1960
+ {
1961
+ name: 'SendTransaction',
1962
+ maxMessages: 4,
1963
+ extraCurrencySupported: false
1964
+ }
1965
+ ]
1907
1966
  },
1908
1967
  {
1909
1968
  app_name: 'binanceWeb3TonWallet',
1910
- name: 'Binance Web3 Wallet',
1969
+ name: 'Binance Wallet',
1911
1970
  image: 'https://public.bnbstatic.com/static/binance-w3w/ton-provider/binancew3w.png',
1912
1971
  about_url: 'https://www.binance.com/en/web3wallet',
1913
1972
  deepLink: 'bnc://app.binance.com/cedefi/ton-connect',
@@ -1922,12 +1981,19 @@ const FALLBACK_WALLETS_LIST = [
1922
1981
  }
1923
1982
  ],
1924
1983
  platforms: ['ios', 'android', 'macos', 'windows', 'linux'],
1925
- universal_url: 'https://app.binance.com/cedefi/ton-connect'
1984
+ universal_url: 'https://app.binance.com/cedefi/ton-connect',
1985
+ features: [
1986
+ {
1987
+ name: 'SendTransaction',
1988
+ maxMessages: 4,
1989
+ extraCurrencySupported: false
1990
+ }
1991
+ ]
1926
1992
  },
1927
1993
  {
1928
1994
  app_name: 'fintopio-tg',
1929
1995
  name: 'Fintopio',
1930
- image: 'https://fintopio.com/tonconnect-icon.png',
1996
+ image: 'https://raw.githubusercontent.com/fintopio/ton-pub/refs/heads/main/logos/tonconnect-icon.png',
1931
1997
  about_url: 'https://fintopio.com',
1932
1998
  universal_url: 'https://t.me/fintopio?attach=wallet',
1933
1999
  bridge: [
@@ -1936,7 +2002,14 @@ const FALLBACK_WALLETS_LIST = [
1936
2002
  url: 'https://wallet-bridge.fintopio.com/bridge'
1937
2003
  }
1938
2004
  ],
1939
- platforms: ['ios', 'android', 'macos', 'windows', 'linux']
2005
+ platforms: ['ios', 'android', 'macos', 'windows', 'linux'],
2006
+ features: [
2007
+ {
2008
+ name: 'SendTransaction',
2009
+ maxMessages: 4,
2010
+ extraCurrencySupported: false
2011
+ }
2012
+ ]
1940
2013
  },
1941
2014
  {
1942
2015
  app_name: 'okxTonWallet',
@@ -1954,7 +2027,14 @@ const FALLBACK_WALLETS_LIST = [
1954
2027
  url: 'https://www.okx.com/tonbridge/discover/rpc/bridge'
1955
2028
  }
1956
2029
  ],
1957
- platforms: ['chrome', 'safari', 'firefox', 'ios', 'android']
2030
+ platforms: ['chrome', 'safari', 'firefox', 'ios', 'android'],
2031
+ features: [
2032
+ {
2033
+ name: 'SendTransaction',
2034
+ maxMessages: 4,
2035
+ extraCurrencySupported: false
2036
+ }
2037
+ ]
1958
2038
  },
1959
2039
  {
1960
2040
  app_name: 'hot',
@@ -1972,7 +2052,14 @@ const FALLBACK_WALLETS_LIST = [
1972
2052
  key: 'hotWallet'
1973
2053
  }
1974
2054
  ],
1975
- platforms: ['ios', 'android', 'macos', 'windows', 'linux']
2055
+ platforms: ['ios', 'android', 'macos', 'windows', 'linux'],
2056
+ features: [
2057
+ {
2058
+ name: 'SendTransaction',
2059
+ maxMessages: 4,
2060
+ extraCurrencySupported: false
2061
+ }
2062
+ ]
1976
2063
  },
1977
2064
  {
1978
2065
  app_name: 'bybitTonWallet',
@@ -1991,7 +2078,14 @@ const FALLBACK_WALLETS_LIST = [
1991
2078
  url: 'https://api-node.bybit.com/spot/api/web3/bridge/ton/bridge'
1992
2079
  }
1993
2080
  ],
1994
- platforms: ['ios', 'android', 'chrome']
2081
+ platforms: ['ios', 'android', 'chrome'],
2082
+ features: [
2083
+ {
2084
+ name: 'SendTransaction',
2085
+ maxMessages: 4,
2086
+ extraCurrencySupported: false
2087
+ }
2088
+ ]
1995
2089
  },
1996
2090
  {
1997
2091
  app_name: 'dewallet',
@@ -2005,7 +2099,14 @@ const FALLBACK_WALLETS_LIST = [
2005
2099
  url: 'https://bridge.dewallet.pro/bridge'
2006
2100
  }
2007
2101
  ],
2008
- platforms: ['ios', 'android', 'macos', 'windows', 'linux']
2102
+ platforms: ['ios', 'android', 'macos', 'windows', 'linux'],
2103
+ features: [
2104
+ {
2105
+ name: 'SendTransaction',
2106
+ maxMessages: 4,
2107
+ extraCurrencySupported: false
2108
+ }
2109
+ ]
2009
2110
  },
2010
2111
  {
2011
2112
  app_name: 'safepalwallet',
@@ -2025,7 +2126,14 @@ const FALLBACK_WALLETS_LIST = [
2025
2126
  key: 'safepalwallet'
2026
2127
  }
2027
2128
  ],
2028
- platforms: ['ios', 'android', 'chrome', 'firefox']
2129
+ platforms: ['ios', 'android', 'chrome', 'firefox'],
2130
+ features: [
2131
+ {
2132
+ name: 'SendTransaction',
2133
+ maxMessages: 1,
2134
+ extraCurrencySupported: false
2135
+ }
2136
+ ]
2029
2137
  },
2030
2138
  {
2031
2139
  app_name: 'GateWallet',
@@ -2043,7 +2151,14 @@ const FALLBACK_WALLETS_LIST = [
2043
2151
  }
2044
2152
  ],
2045
2153
  platforms: ['ios', 'android'],
2046
- universal_url: 'https://gateio.go.link/gateio/web3?adj_t=1ff8khdw_1fu4ccc7'
2154
+ universal_url: 'https://gate.onelink.me/Hls0/web3?gate_web3_wallet_universal_type=ton_connect',
2155
+ features: [
2156
+ {
2157
+ name: 'SendTransaction',
2158
+ maxMessages: 4,
2159
+ extraCurrencySupported: false
2160
+ }
2161
+ ]
2047
2162
  },
2048
2163
  {
2049
2164
  app_name: 'openmask',
@@ -2056,7 +2171,14 @@ const FALLBACK_WALLETS_LIST = [
2056
2171
  key: 'openmask'
2057
2172
  }
2058
2173
  ],
2059
- platforms: ['chrome']
2174
+ platforms: ['chrome'],
2175
+ features: [
2176
+ {
2177
+ name: 'SendTransaction',
2178
+ maxMessages: 4,
2179
+ extraCurrencySupported: false
2180
+ }
2181
+ ]
2060
2182
  },
2061
2183
  {
2062
2184
  app_name: 'BitgetWeb3',
@@ -2070,21 +2192,14 @@ const FALLBACK_WALLETS_LIST = [
2070
2192
  url: 'https://ton-connect-bridge.bgwapi.io/bridge'
2071
2193
  }
2072
2194
  ],
2073
- platforms: ['ios', 'android', 'windows', 'macos', 'linux']
2074
- },
2075
- {
2076
- app_name: 'tobi',
2077
- name: 'Tobi',
2078
- image: 'https://app.tobiwallet.app/icons/logo-288.png',
2079
- about_url: 'https://tobi.fun',
2080
- universal_url: 'https://t.me/TobiCopilotBot?attach=wallet',
2081
- bridge: [
2195
+ platforms: ['ios', 'android', 'windows', 'macos', 'linux'],
2196
+ features: [
2082
2197
  {
2083
- type: 'sse',
2084
- url: 'https://ton-bridge.tobiwallet.app/bridge'
2198
+ name: 'SendTransaction',
2199
+ maxMessages: 4,
2200
+ extraCurrencySupported: false
2085
2201
  }
2086
- ],
2087
- platforms: ['ios', 'android', 'macos', 'windows', 'linux']
2202
+ ]
2088
2203
  },
2089
2204
  {
2090
2205
  app_name: 'xtonwallet',
@@ -2097,7 +2212,14 @@ const FALLBACK_WALLETS_LIST = [
2097
2212
  key: 'xtonwallet'
2098
2213
  }
2099
2214
  ],
2100
- platforms: ['chrome', 'firefox']
2215
+ platforms: ['chrome', 'firefox'],
2216
+ features: [
2217
+ {
2218
+ name: 'SendTransaction',
2219
+ maxMessages: 1,
2220
+ extraCurrencySupported: false
2221
+ }
2222
+ ]
2101
2223
  },
2102
2224
  {
2103
2225
  app_name: 'tonwallet',
@@ -2110,7 +2232,339 @@ const FALLBACK_WALLETS_LIST = [
2110
2232
  key: 'tonwallet'
2111
2233
  }
2112
2234
  ],
2113
- platforms: ['chrome']
2235
+ platforms: ['chrome'],
2236
+ features: [
2237
+ {
2238
+ name: 'SendTransaction',
2239
+ maxMessages: 4,
2240
+ extraCurrencySupported: false
2241
+ }
2242
+ ]
2243
+ },
2244
+ {
2245
+ app_name: 'bitgetWalletLite',
2246
+ name: 'Bitget Wallet Lite',
2247
+ image: 'https://raw.githubusercontent.com/bitgetwallet/download/refs/heads/main/logo/png/bitget_wallet_lite_logo_288.png',
2248
+ about_url: 'https://web3.bitget.com',
2249
+ universal_url: 'https://t.me/BitgetWallet_TGBot?attach=wallet',
2250
+ bridge: [
2251
+ {
2252
+ type: 'sse',
2253
+ url: 'https://ton-connect-bridge.bgwapi.io/bridge'
2254
+ }
2255
+ ],
2256
+ platforms: ['ios', 'android', 'macos', 'windows', 'linux'],
2257
+ features: [
2258
+ {
2259
+ name: 'SendTransaction',
2260
+ maxMessages: 255,
2261
+ extraCurrencySupported: false
2262
+ }
2263
+ ]
2264
+ },
2265
+ {
2266
+ app_name: 'tomoWallet',
2267
+ name: 'Tomo Wallet',
2268
+ image: 'https://pub.tomo.inc/logo.png',
2269
+ about_url: 'https://www.tomo.inc/',
2270
+ universal_url: 'https://t.me/tomowalletbot?attach=wallet',
2271
+ bridge: [
2272
+ {
2273
+ type: 'sse',
2274
+ url: 'https://go-bridge.tomo.inc/bridge'
2275
+ }
2276
+ ],
2277
+ platforms: ['ios', 'android', 'macos', 'windows', 'linux'],
2278
+ features: [
2279
+ {
2280
+ name: 'SendTransaction',
2281
+ maxMessages: 4,
2282
+ extraCurrencySupported: false
2283
+ }
2284
+ ]
2285
+ },
2286
+ {
2287
+ app_name: 'miraiapp-tg',
2288
+ name: 'Mirai Mini App',
2289
+ image: 'https://cdn.mirailabs.co/miraihub/miraiapp-tg-icon-288.png',
2290
+ about_url: 'https://mirai.app',
2291
+ universal_url: 'https://t.me/MiraiAppBot?attach=wallet',
2292
+ bridge: [
2293
+ {
2294
+ type: 'sse',
2295
+ url: 'https://bridge.mirai.app'
2296
+ }
2297
+ ],
2298
+ platforms: ['ios', 'android', 'macos', 'windows', 'linux'],
2299
+ features: [
2300
+ {
2301
+ name: 'SendTransaction',
2302
+ maxMessages: 255,
2303
+ extraCurrencySupported: false
2304
+ },
2305
+ {
2306
+ name: 'SignData',
2307
+ types: ['text', 'binary', 'cell']
2308
+ }
2309
+ ]
2310
+ },
2311
+ {
2312
+ app_name: 'Architec.ton',
2313
+ name: 'Architec.ton',
2314
+ image: 'https://raw.githubusercontent.com/Architec-Ton/wallet-tma/refs/heads/dev/public/images/arcwallet_logo.png',
2315
+ about_url: 'https://architecton.tech',
2316
+ universal_url: 'https://t.me/architec_ton_bot?attach=wallet',
2317
+ bridge: [
2318
+ {
2319
+ type: 'sse',
2320
+ url: 'https://tc.architecton.su/bridge'
2321
+ }
2322
+ ],
2323
+ platforms: ['ios', 'android', 'macos', 'windows', 'linux'],
2324
+ features: [
2325
+ {
2326
+ name: 'SendTransaction',
2327
+ maxMessages: 255,
2328
+ extraCurrencySupported: false
2329
+ }
2330
+ ]
2331
+ },
2332
+ {
2333
+ app_name: 'tokenpocket',
2334
+ name: 'TokenPocket',
2335
+ image: 'https://hk.tpstatic.net/logo/tokenpocket.png',
2336
+ about_url: 'https://www.tokenpocket.pro',
2337
+ universal_url: 'https://tp-lab.tptool.pro/ton-connect/',
2338
+ bridge: [
2339
+ {
2340
+ type: 'js',
2341
+ key: 'tokenpocket'
2342
+ },
2343
+ {
2344
+ type: 'sse',
2345
+ url: 'https://ton-connect.mytokenpocket.vip/bridge'
2346
+ }
2347
+ ],
2348
+ platforms: ['ios', 'android'],
2349
+ features: [
2350
+ {
2351
+ name: 'SendTransaction',
2352
+ maxMessages: 4,
2353
+ extraCurrencySupported: false
2354
+ }
2355
+ ]
2356
+ },
2357
+ {
2358
+ app_name: 'uxuyWallet',
2359
+ name: 'UXUY Wallet',
2360
+ image: 'https://chain-cdn.uxuy.com/logo/square_288.png',
2361
+ about_url: 'https://docs.uxuy.com',
2362
+ universal_url: 'https://t.me/UXUYbot?attach=wallet',
2363
+ bridge: [
2364
+ {
2365
+ type: 'sse',
2366
+ url: 'https://bridge.uxuy.me/bridge'
2367
+ }
2368
+ ],
2369
+ platforms: ['ios', 'android', 'macos', 'windows', 'linux'],
2370
+ features: [
2371
+ {
2372
+ name: 'SendTransaction',
2373
+ maxMessages: 4,
2374
+ extraCurrencySupported: false
2375
+ }
2376
+ ]
2377
+ },
2378
+ {
2379
+ app_name: 'tonkeeper-pro',
2380
+ name: 'Tonkeeper Pro',
2381
+ image: 'https://tonkeeper.com/assets/tonconnect-icon-pro.png',
2382
+ tondns: 'tonkeeper.ton',
2383
+ about_url: 'https://tonkeeper.com/pro',
2384
+ universal_url: 'https://app.tonkeeper.com/pro/ton-connect',
2385
+ deepLink: 'tonkeeper-pro-tc://',
2386
+ bridge: [
2387
+ {
2388
+ type: 'sse',
2389
+ url: 'https://bridge.tonapi.io/bridge'
2390
+ }
2391
+ ],
2392
+ platforms: ['ios', 'macos', 'windows', 'linux'],
2393
+ features: [
2394
+ {
2395
+ name: 'SendTransaction',
2396
+ maxMessages: 255,
2397
+ extraCurrencySupported: true
2398
+ },
2399
+ {
2400
+ name: 'SignData',
2401
+ types: ['text', 'binary', 'cell']
2402
+ }
2403
+ ]
2404
+ },
2405
+ {
2406
+ app_name: 'nicegramWallet',
2407
+ name: 'Nicegram Wallet',
2408
+ image: 'https://static.nicegram.app/icon.png',
2409
+ about_url: 'https://nicegram.app',
2410
+ universal_url: 'https://nicegram.app/tc',
2411
+ deepLink: 'nicegram-tc://',
2412
+ bridge: [
2413
+ {
2414
+ type: 'sse',
2415
+ url: 'https://tc.nicegram.app/bridge'
2416
+ },
2417
+ {
2418
+ type: 'js',
2419
+ key: 'nicegramWallet'
2420
+ }
2421
+ ],
2422
+ platforms: ['ios', 'android'],
2423
+ features: [
2424
+ {
2425
+ name: 'SendTransaction',
2426
+ maxMessages: 255,
2427
+ extraCurrencySupported: false
2428
+ }
2429
+ ]
2430
+ },
2431
+ {
2432
+ app_name: 'echoooTonWallet',
2433
+ name: 'EchoooWallet',
2434
+ image: 'https://cdn.echooo.xyz/front-end/source/images/logo/echooo-ton.png',
2435
+ about_url: 'https://www.echooo.xyz',
2436
+ universal_url: 'https://www.echooo.xyz/ton-connect',
2437
+ deepLink: 'echooo://',
2438
+ bridge: [
2439
+ {
2440
+ type: 'js',
2441
+ key: 'echoooTonWallet'
2442
+ },
2443
+ {
2444
+ type: 'sse',
2445
+ url: 'https://ton-connect-bridge.echooo.link/bridge'
2446
+ }
2447
+ ],
2448
+ platforms: ['ios', 'android'],
2449
+ features: [
2450
+ {
2451
+ name: 'SendTransaction',
2452
+ maxMessages: 255,
2453
+ extraCurrencySupported: false
2454
+ }
2455
+ ]
2456
+ },
2457
+ {
2458
+ app_name: 'blitzwallet',
2459
+ name: 'BLITZ wallet',
2460
+ image: 'https://blitzwallet.cfd/wallet/public/logo.png',
2461
+ about_url: 'https://blitzwallet.cfd',
2462
+ universal_url: 'https://t.me/blitz_wallet_bot?attach=wallet',
2463
+ bridge: [
2464
+ {
2465
+ type: 'sse',
2466
+ url: 'https://blitzwallet.cfd/bridge/'
2467
+ }
2468
+ ],
2469
+ platforms: ['ios', 'android', 'macos', 'windows', 'linux'],
2470
+ features: [
2471
+ {
2472
+ name: 'SendTransaction',
2473
+ maxMessages: 4,
2474
+ extraCurrencySupported: false
2475
+ }
2476
+ ]
2477
+ },
2478
+ {
2479
+ app_name: 'koloWeb3Wallet',
2480
+ name: 'Kolo',
2481
+ image: 'https://raw.githubusercontent.com/onidev1/tc-assets/refs/heads/main/kolo_logo_288.png',
2482
+ about_url: 'https://kolo.xyz',
2483
+ universal_url: 'https://t.me/kolo?attach=wallet',
2484
+ bridge: [
2485
+ {
2486
+ type: 'sse',
2487
+ url: 'https://web3-bridge.kolo.in/bridge'
2488
+ }
2489
+ ],
2490
+ platforms: ['ios', 'android', 'macos', 'windows', 'linux'],
2491
+ features: [
2492
+ {
2493
+ name: 'SendTransaction',
2494
+ maxMessages: 255,
2495
+ extraCurrencySupported: false
2496
+ }
2497
+ ]
2498
+ },
2499
+ {
2500
+ app_name: 'imToken',
2501
+ name: 'imToken',
2502
+ image: 'https://aws-v2-cdn.token.im/orbit/token-v2/icons/logo-ton-connect.png',
2503
+ about_url: 'https://token.im',
2504
+ universal_url: 'https://connect.token.im/link/ton-connect',
2505
+ deepLink: 'imtokenv2://link/ton-connect',
2506
+ bridge: [
2507
+ {
2508
+ type: 'sse',
2509
+ url: 'https://connect.token.im/tonbridge'
2510
+ },
2511
+ {
2512
+ type: 'js',
2513
+ key: 'imToken'
2514
+ }
2515
+ ],
2516
+ platforms: ['ios', 'android'],
2517
+ features: [
2518
+ {
2519
+ name: 'SendTransaction',
2520
+ maxMessages: 255,
2521
+ extraCurrencySupported: false
2522
+ }
2523
+ ]
2524
+ },
2525
+ {
2526
+ app_name: 'cactuslink',
2527
+ name: 'Cactus Link',
2528
+ image: 'https://downloads.mycactus.com/288_cactus_link.png',
2529
+ about_url: 'https://www.mycactus.com/defi-connector',
2530
+ bridge: [
2531
+ {
2532
+ type: 'js',
2533
+ key: 'cactuslink_ton'
2534
+ }
2535
+ ],
2536
+ platforms: ['chrome'],
2537
+ features: [
2538
+ {
2539
+ name: 'SendTransaction',
2540
+ maxMessages: 4,
2541
+ extraCurrencySupported: false
2542
+ },
2543
+ {
2544
+ name: 'SignData',
2545
+ types: ['text', 'binary']
2546
+ }
2547
+ ]
2548
+ },
2549
+ {
2550
+ app_name: 'onekey',
2551
+ name: 'OneKey',
2552
+ image: 'https://uni.onekey-asset.com/static/logo/onekey-x288.png',
2553
+ about_url: 'https://onekey.so',
2554
+ bridge: [
2555
+ {
2556
+ type: 'js',
2557
+ key: 'onekeyTonWallet'
2558
+ }
2559
+ ],
2560
+ platforms: ['chrome'],
2561
+ features: [
2562
+ {
2563
+ name: 'SendTransaction',
2564
+ maxMessages: 4,
2565
+ extraCurrencySupported: false
2566
+ }
2567
+ ]
2114
2568
  }
2115
2569
  ];
2116
2570
 
@@ -2234,7 +2688,7 @@ class WalletsListManager {
2234
2688
  }
2235
2689
  else {
2236
2690
  this.walletsListSource =
2237
- (_a = options === null || options === void 0 ? void 0 : options.walletsListSource) !== null && _a !== void 0 ? _a : 'https://raw.githubusercontent.com/ton-blockchain/wallets-list/main/wallets-v2.json';
2691
+ (_a = options === null || options === void 0 ? void 0 : options.walletsListSource) !== null && _a !== void 0 ? _a : 'https://config.ton.org/wallets-v2.json';
2238
2692
  }
2239
2693
  this.cacheTTLMs = options === null || options === void 0 ? void 0 : options.cacheTTLMs;
2240
2694
  }
@@ -2953,7 +3407,7 @@ class TonConnectTracker {
2953
3407
  }
2954
3408
  }
2955
3409
 
2956
- const tonConnectSdkVersion = "3.3.0";
3410
+ const tonConnectSdkVersion = "3.3.1-beta.0";
2957
3411
 
2958
3412
  const bounceableTag = 0x11;
2959
3413
  const noBounceableTag = 0x51;
@@ -3132,6 +3586,7 @@ function hexToBytes(hex) {
3132
3586
  }
3133
3587
 
3134
3588
  const BASE64_REGEX = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/;
3589
+ const BASE64URL_REGEX = /^[A-Za-z0-9\-_]+$/;
3135
3590
  const BOC_PREFIX = 'te6cc';
3136
3591
  const INTEGER_REGEX = /^-?\d+$/;
3137
3592
  const POSITIVE_INTEGER_REGEX = /^\d+$/;
@@ -3151,7 +3606,9 @@ function isValidNetwork(value) {
3151
3606
  return isValidString(value) && /^-?\d+$/.test(value);
3152
3607
  }
3153
3608
  function isValidBoc(value) {
3154
- return typeof value === 'string' && BASE64_REGEX.test(value) && value.startsWith(BOC_PREFIX);
3609
+ return (typeof value === 'string' &&
3610
+ (BASE64_REGEX.test(value) || BASE64URL_REGEX.test(value)) &&
3611
+ value.startsWith(BOC_PREFIX));
3155
3612
  }
3156
3613
  function isValidObject(value) {
3157
3614
  return typeof value === 'object' && value !== null && !Array.isArray(value);
@@ -3442,6 +3899,13 @@ function validateTonProofItemReply(data) {
3442
3899
  return null;
3443
3900
  }
3444
3901
 
3902
+ function normalizeBase64(data) {
3903
+ if (typeof data !== 'string')
3904
+ return undefined;
3905
+ const paddedLength = data.length + ((4 - (data.length % 4)) % 4);
3906
+ return data.replace(/-/g, '+').replace(/_/g, '/').padEnd(paddedLength, '=');
3907
+ }
3908
+
3445
3909
  class TonConnect {
3446
3910
  /**
3447
3911
  * Returns available wallets list.
@@ -3698,8 +4162,8 @@ class TonConnect {
3698
4162
  const network = transaction.network || this.account.chain;
3699
4163
  const response = yield this.provider.sendRequest(sendTransactionParser.convertToRpcRequest(Object.assign(Object.assign({}, tx), { from,
3700
4164
  network, valid_until: validUntil, messages: messages.map((_a) => {
3701
- var { extraCurrency } = _a, msg = __rest(_a, ["extraCurrency"]);
3702
- return (Object.assign(Object.assign({}, msg), { extra_currency: extraCurrency }));
4165
+ var { extraCurrency, payload, stateInit } = _a, msg = __rest(_a, ["extraCurrency", "payload", "stateInit"]);
4166
+ return (Object.assign(Object.assign({}, msg), { payload: normalizeBase64(payload), stateInit: normalizeBase64(stateInit), extra_currency: extraCurrency }));
3703
4167
  }) })), { onRequestSent: options.onRequestSent, signal: abortController.signal });
3704
4168
  if (sendTransactionParser.isError(response)) {
3705
4169
  this.tracker.trackTransactionSigningFailed(this.wallet, transaction, response.error.message, response.error.code);
@@ -3731,7 +4195,7 @@ class TonConnect {
3731
4195
  this.tracker.trackDataSentForSignature(this.wallet, data);
3732
4196
  const from = data.from || this.account.address;
3733
4197
  const network = data.network || this.account.chain;
3734
- const response = yield this.provider.sendRequest(signDataParser.convertToRpcRequest(Object.assign(Object.assign({}, data), { from,
4198
+ const response = yield this.provider.sendRequest(signDataParser.convertToRpcRequest(Object.assign(Object.assign(Object.assign({}, data), (data.type === 'cell' ? { cell: normalizeBase64(data.cell) } : {})), { from,
3735
4199
  network })), { onRequestSent: options === null || options === void 0 ? void 0 : options.onRequestSent, signal: abortController.signal });
3736
4200
  if (signDataParser.isError(response)) {
3737
4201
  this.tracker.trackDataSigningFailed(this.wallet, data, response.error.message, response.error.code);