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