@talken/talkenkit 2.4.22 → 2.4.23

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.
Files changed (185) hide show
  1. package/README.md +159 -325
  2. package/dist/Arc-R3PUWRPJ.js +7 -0
  3. package/dist/Brave-24BM36UM.js +7 -0
  4. package/dist/Browser-4R4QKTV2.js +7 -0
  5. package/dist/Chrome-TLI42HDP.js +7 -0
  6. package/dist/Edge-AZ34LAFM.js +7 -0
  7. package/dist/Firefox-ZDK7RHKK.js +7 -0
  8. package/dist/Linux-VYP66PDO.js +7 -0
  9. package/dist/Macos-5QL4JBJE.js +7 -0
  10. package/dist/Opera-BKMCKUXC.js +7 -0
  11. package/dist/Safari-PXQIVS6N.js +7 -0
  12. package/dist/Windows-GTAT3OTE.js +7 -0
  13. package/dist/abcWallet-AYWSIGAG.js +7 -0
  14. package/dist/abcWallet-O4GH6RHS.js +181 -0
  15. package/dist/ar_AR-ZRPPM56D.js +7 -0
  16. package/dist/arbitrum-IA4OWRTN.js +7 -0
  17. package/dist/argentWallet-M6SBG4CU.js +7 -0
  18. package/dist/assets-NU2OP443.js +7 -0
  19. package/dist/avalanche-MXEFEDSW.js +7 -0
  20. package/dist/base-Z4LFBE5D.js +7 -0
  21. package/dist/berasigWallet-NNBFDHFK.js +7 -0
  22. package/dist/bestWallet-XRIABRUE.js +7 -0
  23. package/dist/bifrostWallet-ORF3DABG.js +7 -0
  24. package/dist/binanceWallet-BCWLBY3Q.js +7 -0
  25. package/dist/bitgetWallet-CLYTW54T.js +7 -0
  26. package/dist/bitskiWallet-X5NWL5CE.js +7 -0
  27. package/dist/bitverseWallet-6SGDFATJ.js +7 -0
  28. package/dist/blast-TN2WIMWF.js +7 -0
  29. package/dist/bloomWallet-MXLAOWS6.js +7 -0
  30. package/dist/braveWallet-6QAF4GDN.js +7 -0
  31. package/dist/bsc-RVE67I5L.js +7 -0
  32. package/dist/bybitWallet-GR4PFINZ.js +7 -0
  33. package/dist/celo-E6XU57FO.js +7 -0
  34. package/dist/chunk-N7AWNQBH.js +5319 -0
  35. package/dist/clvWallet-ZIMSRU5J.js +7 -0
  36. package/dist/coin98Wallet-RFXRNVWP.js +7 -0
  37. package/dist/coinbaseWallet-WWX6LF36.js +7 -0
  38. package/dist/compassWallet-3LBTWCKI.js +7 -0
  39. package/dist/connect-MR6XDLIE.js +7 -0
  40. package/dist/coreWallet-52SXITOT.js +7 -0
  41. package/dist/create-X4WFHLCW.js +7 -0
  42. package/dist/cronos-ROYR77VZ.js +7 -0
  43. package/dist/dawnWallet-ONVAA3S4.js +7 -0
  44. package/dist/de_DE-GYZFZXWH.js +7 -0
  45. package/dist/desigWallet-WJMSF3PS.js +7 -0
  46. package/dist/en_US-AV7YDYDW.js +7 -0
  47. package/dist/enkryptWallet-FR4QCDFK.js +7 -0
  48. package/dist/es_419-OGVOQEFZ.js +7 -0
  49. package/dist/ethereum-RFBAMUVK.js +7 -0
  50. package/dist/flow-NBCRNYVF.js +7 -0
  51. package/dist/foxWallet-5ESSNXJV.js +7 -0
  52. package/dist/fr_FR-Q5QBQBX2.js +1355 -0
  53. package/dist/frameWallet-FDBUY4AA.js +7 -0
  54. package/dist/frontierWallet-HNIG7QYQ.js +7 -0
  55. package/dist/gateWallet-ZVEZILRP.js +7 -0
  56. package/dist/gnosis-T7U5EW2Q.js +7 -0
  57. package/dist/hardhat-NEEC6JX7.js +7 -0
  58. package/dist/hi_IN-7I7LRHGW.js +7 -0
  59. package/dist/id_ID-ZMGZ2JFV.js +7 -0
  60. package/dist/imTokenWallet-N2MYFADO.js +7 -0
  61. package/dist/index.d.ts +3 -3
  62. package/dist/index.js +168 -243
  63. package/dist/injectedWallet-H7LYKTQS.js +7 -0
  64. package/dist/iopayWallet-IJHJ7NYT.js +7 -0
  65. package/dist/ja_JP-NYBCHQTZ.js +7 -0
  66. package/dist/kaia-A33DVQBT.js +7 -0
  67. package/dist/kaiaWallet-5K6WZ3AH.js +7 -0
  68. package/dist/kaikasWallet-F6Z6IPWN.js +7 -0
  69. package/dist/ko_KR-67WE736M.js +7 -0
  70. package/dist/krakenWallet-DAOXUKWO.js +7 -0
  71. package/dist/kresusWallet-AUJWLAOF.js +7 -0
  72. package/dist/ledgerWallet-KZKJ5Q2S.js +7 -0
  73. package/dist/login-CWDTIDNK.js +7 -0
  74. package/dist/magicEden-PKT2ZXEQ.js +7 -0
  75. package/dist/manta-5V6W5D7G.js +7 -0
  76. package/dist/mantle-KBL3OIYT.js +7 -0
  77. package/dist/metaMaskWallet-YFHEHW7V.js +7 -0
  78. package/dist/mewWallet-6V4UZOQC.js +7 -0
  79. package/dist/ms_MY-65AJIBUS.js +7 -0
  80. package/dist/nestWallet-BFZZZYLV.js +7 -0
  81. package/dist/oktoWallet-GJFOPPEA.js +7 -0
  82. package/dist/okxWallet-GJMKZIND.js +7 -0
  83. package/dist/omniWallet-DEYUMT4A.js +7 -0
  84. package/dist/oneInchWallet-D7BQOLOO.js +7 -0
  85. package/dist/oneKeyWallet-4MM7G2SZ.js +7 -0
  86. package/dist/optimism-YWJ3IQHA.js +7 -0
  87. package/dist/paraSwapWallet-TMV5MUEF.js +7 -0
  88. package/dist/phantomWallet-IPGVKCAB.js +7 -0
  89. package/dist/polygon-WWEUOMKW.js +7 -0
  90. package/dist/pt_BR-DMJANC65.js +7 -0
  91. package/dist/rabbyWallet-FLVUU35F.js +7 -0
  92. package/dist/rainbowWallet-2SR6TVBF.js +7 -0
  93. package/dist/ramperWallet-AF5AKK2S.js +7 -0
  94. package/dist/refresh-HJGJRASX.js +7 -0
  95. package/dist/ronin-PNHX5V6H.js +7 -0
  96. package/dist/roninWallet-SAB5ESVK.js +7 -0
  97. package/dist/ru_RU-WER7RQ6A.js +1355 -0
  98. package/dist/safeWallet-VUYZPLY4.js +7 -0
  99. package/dist/safeheronWallet-6JG77AKC.js +7 -0
  100. package/dist/safepalWallet-KQJ4OCNH.js +7 -0
  101. package/dist/scan-DEOT2M37.js +7 -0
  102. package/dist/scroll-NMZWDUQH.js +7 -0
  103. package/dist/seifWallet-QATOS33A.js +7 -0
  104. package/dist/services/AbcAuthService.d.ts +11 -12
  105. package/dist/sign-A7IJEUT5.js +7 -0
  106. package/dist/subWallet-LOZELSAO.js +7 -0
  107. package/dist/tahoWallet-L6KHUNKD.js +7 -0
  108. package/dist/talismanWallet-BLXUHONV.js +7 -0
  109. package/dist/th_TH-JOSHEZ6D.js +1355 -0
  110. package/dist/themes/baseTheme.js +0 -1
  111. package/dist/themes/darkTheme.js +0 -1
  112. package/dist/themes/lightTheme.js +0 -1
  113. package/dist/themes/midnightTheme.js +0 -1
  114. package/dist/tokenPocketWallet-BVMBOYTC.js +7 -0
  115. package/dist/tokenaryWallet-Z2IGVXSA.js +7 -0
  116. package/dist/tr_TR-EAMG2YPO.js +1355 -0
  117. package/dist/trustWallet-E2GVGE4U.js +7 -0
  118. package/dist/uk_UA-GO2TRVWA.js +1355 -0
  119. package/dist/uniswapWallet-T26M44R7.js +7 -0
  120. package/dist/utils/apiClientFactory.d.ts +1 -6
  121. package/dist/utils/embeddedTxAdapter.d.ts +54 -0
  122. package/dist/valoraWallet-RX3ONO47.js +7 -0
  123. package/dist/vi_VN-5HLLSOJA.js +7 -0
  124. package/dist/walletConnectWallet-FNSU4KNU.js +7 -0
  125. package/dist/wallets/walletConnectors/abcWallet/abcBitcoinConnector.d.ts +0 -3
  126. package/dist/wallets/walletConnectors/abcWallet/abcBitcoinConnector.js +3 -3
  127. package/dist/wallets/walletConnectors/abcWallet/abcBitcoinProvider.d.ts +1 -3
  128. package/dist/wallets/walletConnectors/abcWallet/abcBitcoinProvider.js +1 -1
  129. package/dist/wallets/walletConnectors/abcWallet/abcConnector.js +7 -6
  130. package/dist/wallets/walletConnectors/abcWallet/abcProvider.d.ts +3 -4
  131. package/dist/wallets/walletConnectors/abcWallet/abcProvider.js +3 -4
  132. package/dist/wallets/walletConnectors/abcWallet/abcSolanaProvider.d.ts +3 -3
  133. package/dist/wallets/walletConnectors/abcWallet/abcSolanaProvider.js +1 -1
  134. package/dist/wallets/walletConnectors/abcWallet/abcSolanaWalletAdapter.d.ts +4 -6
  135. package/dist/wallets/walletConnectors/abcWallet/abcSolanaWalletAdapter.js +37 -44
  136. package/dist/wallets/walletConnectors/abcWallet/abcTronProvider.d.ts +1 -2
  137. package/dist/wallets/walletConnectors/abcWallet/abcTronProvider.js +1 -1
  138. package/dist/wallets/walletConnectors/abcWallet/abcWallet.d.ts +1 -3
  139. package/dist/wallets/walletConnectors/abcWallet/abcWallet.js +8 -8
  140. package/dist/wallets/walletConnectors/abcWallet/api/GasApi.d.ts +1 -2
  141. package/dist/wallets/walletConnectors/abcWallet/api/GasApi.js +1 -5
  142. package/dist/wallets/walletConnectors/abcWallet/api/TalkenApiClient.js +2 -2
  143. package/dist/wallets/walletConnectors/abcWallet/api/TalkenApiSingleton.js +4 -9
  144. package/dist/wallets/walletConnectors/abcWallet/api/WalletscanApi.d.ts +2 -4
  145. package/dist/wallets/walletConnectors/abcWallet/api/WalletscanApi.js +1 -5
  146. package/dist/wallets/walletConnectors/abcWallet/api/index.d.ts +3 -68
  147. package/dist/wallets/walletConnectors/abcWallet/api/index.js +6 -41
  148. package/dist/wallets/walletConnectors/abcWallet/constants.d.ts +1 -38
  149. package/dist/wallets/walletConnectors/abcWallet/constants.js +1 -7
  150. package/dist/wallets/walletConnectors/abcWallet/index.d.ts +3 -3
  151. package/dist/wallets/walletConnectors/abcWallet/index.js +33 -45
  152. package/dist/wallets/walletConnectors/abcWallet/resolveTalkenApiUrl.d.ts +1 -0
  153. package/dist/wallets/walletConnectors/abcWallet/resolveTalkenApiUrl.js +7 -0
  154. package/dist/wallets/walletConnectors/abcWallet/types.d.ts +4 -4
  155. package/dist/wallets/walletConnectors/abcWallet/utils.js +2 -2
  156. package/dist/wallets/walletConnectors/chunk-35RTM3PL.js +1 -0
  157. package/dist/wallets/walletConnectors/chunk-AFM6KHDP.js +314 -0
  158. package/dist/wallets/walletConnectors/chunk-AXMN57KP.js +1387 -0
  159. package/dist/wallets/walletConnectors/chunk-BYZ5QLMX.js +436 -0
  160. package/dist/wallets/walletConnectors/chunk-CC6GTQBN.js +148 -0
  161. package/dist/wallets/walletConnectors/chunk-FAVNVTIA.js +479 -0
  162. package/dist/wallets/walletConnectors/chunk-GFWUFYT2.js +16 -0
  163. package/dist/wallets/walletConnectors/chunk-QP36UXD5.js +54 -0
  164. package/dist/wallets/walletConnectors/chunk-R6ZE7JAZ.js +15 -0
  165. package/dist/wallets/walletConnectors/chunk-RIJTOH57.js +771 -0
  166. package/dist/wallets/walletConnectors/chunk-RY43MKRA.js +552 -0
  167. package/dist/wallets/walletConnectors/chunk-TQXCRSMS.js +199 -0
  168. package/dist/wallets/walletConnectors/chunk-URFU24K7.js +273 -0
  169. package/dist/wallets/walletConnectors/chunk-USS5CPXQ.js +54 -0
  170. package/dist/wallets/walletConnectors/chunk-VQYS4NXP.js +314 -0
  171. package/dist/wallets/walletConnectors/chunk-YPM7FC4M.js +104 -0
  172. package/dist/wallets/walletConnectors/chunk-Z3L3JJNU.js +356 -0
  173. package/dist/wallets/walletConnectors/index.js +76 -76
  174. package/dist/wigwamWallet-5GKUN7ZJ.js +7 -0
  175. package/dist/xdc-X7V4QFNF.js +7 -0
  176. package/dist/xdefiWallet-ZA65GDWS.js +7 -0
  177. package/dist/zealWallet-URNQ2AWF.js +7 -0
  178. package/dist/zerionWallet-CYFHB5PA.js +7 -0
  179. package/dist/zetachain-BMJKVYBN.js +7 -0
  180. package/dist/zh_CN-THPIFVWJ.js +7 -0
  181. package/dist/zh_HK-R7XP4TGF.js +7 -0
  182. package/dist/zh_TW-F5LD752V.js +7 -0
  183. package/dist/zkSync-JL26RB7U.js +7 -0
  184. package/dist/zora-YZH32HP3.js +7 -0
  185. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -10,25 +10,18 @@ import {
10
10
  } from "./chunk-7ZP3ENJ2.js";
11
11
  import "./chunk-DQLAW7KN.js";
12
12
  import {
13
- AbcWaasApiClient,
14
- AuthApi,
15
- BaseApiClient,
16
13
  BitcoinNetwork,
17
- DEFAULT_ABC_CONFIG,
18
14
  GasApi,
19
15
  NETWORK_BY_PARAM,
20
16
  NETWORK_CONFIGS,
21
17
  NetworkType,
22
18
  SessionExpiredError,
23
- SolanaApi,
24
19
  SolanaNetwork,
25
- TransactionApi,
20
+ TalkenApiClient,
26
21
  TronNetwork,
27
- WalletApi,
28
22
  WalletscanApi,
29
23
  chainIdToNetwork,
30
- createAbcWaasApiClient,
31
- createAbcWaasClient,
24
+ createTalkenApiClient,
32
25
  getBitcoinNetwork,
33
26
  getEvmNetwork,
34
27
  getExplorerAddressUrl,
@@ -39,20 +32,18 @@ import {
39
32
  getSolanaNetwork,
40
33
  getSupportedChainIds,
41
34
  getSupportedNetworks,
35
+ getTalkenApiClient,
42
36
  getTronNetwork,
43
- init_networks,
44
37
  isEvmNetwork,
45
38
  isTestnet,
46
39
  networkNameToChainKey,
47
40
  networkToChainId,
48
- networks_exports
49
- } from "./chunk-P77BVZZF.js";
41
+ resolveTalkenApiUrl,
42
+ setTalkenApiClient
43
+ } from "./chunk-N7AWNQBH.js";
50
44
  import {
51
45
  en_US_default
52
46
  } from "./chunk-X4GSACNW.js";
53
- import {
54
- __toCommonJS
55
- } from "./chunk-TJX4M23U.js";
56
47
 
57
48
  // src/components/ConnectButton/ConnectButton.tsx
58
49
  import React100, { useContext as useContext29, useEffect as useEffect31, useState as useState38 } from "react";
@@ -144,14 +135,8 @@ function useBitcoinWallet() {
144
135
  });
145
136
  return;
146
137
  }
147
- const { AbcBitcoinProvider, createAbcWaasApiClient: createAbcWaasApiClient2 } = await import("./abcWallet-VZMW2DR3.js");
148
- const client = createAbcWaasApiClient2({
149
- waasUrl: "",
150
- // All operations routed through TalkenApiClient
151
- plain: "",
152
- environment: process.env.NEXT_PUBLIC_ENVIRONMENT || "development"
153
- });
154
- const bitcoinProvider = new AbcBitcoinProvider(client);
138
+ const { AbcBitcoinProvider } = await import("./abcWallet-O4GH6RHS.js");
139
+ const bitcoinProvider = new AbcBitcoinProvider();
155
140
  bitcoinProvider.setWallet(bitcoinWallet);
156
141
  if (requestInterceptor) {
157
142
  bitcoinProvider.setRequestInterceptor(requestInterceptor);
@@ -878,63 +863,63 @@ var fetchTranslations = async (locale) => {
878
863
  switch (locale) {
879
864
  case "ar":
880
865
  case "ar-AR":
881
- return (await import("./ar_AR-YBBYUEGS.js")).default;
866
+ return (await import("./ar_AR-ZRPPM56D.js")).default;
882
867
  case "de":
883
868
  case "de-DE":
884
- return (await import("./de_DE-RUWMVYCQ.js")).default;
869
+ return (await import("./de_DE-GYZFZXWH.js")).default;
885
870
  case "en":
886
871
  case "en-US":
887
- return (await import("./en_US-NQ25CUR4.js")).default;
872
+ return (await import("./en_US-AV7YDYDW.js")).default;
888
873
  case "es":
889
874
  case "es-419":
890
- return (await import("./es_419-HKJPYJRI.js")).default;
875
+ return (await import("./es_419-OGVOQEFZ.js")).default;
891
876
  case "fr":
892
877
  case "fr-FR":
893
- return (await import("./fr_FR-2O5ZDLPQ.js")).default;
878
+ return (await import("./fr_FR-Q5QBQBX2.js")).default;
894
879
  case "hi":
895
880
  case "hi-IN":
896
- return (await import("./hi_IN-XRZ4YIUW.js")).default;
881
+ return (await import("./hi_IN-7I7LRHGW.js")).default;
897
882
  case "id":
898
883
  case "id-ID":
899
- return (await import("./id_ID-REEY4CSS.js")).default;
884
+ return (await import("./id_ID-ZMGZ2JFV.js")).default;
900
885
  case "ja":
901
886
  case "ja-JP":
902
- return (await import("./ja_JP-2OPCVN6X.js")).default;
887
+ return (await import("./ja_JP-NYBCHQTZ.js")).default;
903
888
  case "ko":
904
889
  case "ko-KR":
905
- return (await import("./ko_KR-DDXBZTYT.js")).default;
890
+ return (await import("./ko_KR-67WE736M.js")).default;
906
891
  case "ms":
907
892
  case "ms-MY":
908
- return (await import("./ms_MY-PX7G4XTD.js")).default;
893
+ return (await import("./ms_MY-65AJIBUS.js")).default;
909
894
  case "pt":
910
895
  case "pt-BR":
911
- return (await import("./pt_BR-A5R4SBSC.js")).default;
896
+ return (await import("./pt_BR-DMJANC65.js")).default;
912
897
  case "ru":
913
898
  case "ru-RU":
914
- return (await import("./ru_RU-4QDZLRSW.js")).default;
899
+ return (await import("./ru_RU-WER7RQ6A.js")).default;
915
900
  case "th":
916
901
  case "th-TH":
917
- return (await import("./th_TH-4TWPYDKX.js")).default;
902
+ return (await import("./th_TH-JOSHEZ6D.js")).default;
918
903
  case "tr":
919
904
  case "tr-TR":
920
- return (await import("./tr_TR-C37KIU7M.js")).default;
905
+ return (await import("./tr_TR-EAMG2YPO.js")).default;
921
906
  case "ua":
922
907
  case "uk-UA":
923
- return (await import("./uk_UA-I77HS4GO.js")).default;
908
+ return (await import("./uk_UA-GO2TRVWA.js")).default;
924
909
  case "vi":
925
910
  case "vi-VN":
926
- return (await import("./vi_VN-KVPDLW26.js")).default;
911
+ return (await import("./vi_VN-5HLLSOJA.js")).default;
927
912
  case "zh":
928
913
  case "zh-CN":
929
914
  case "zh-Hans":
930
- return (await import("./zh_CN-KGLAIP3N.js")).default;
915
+ return (await import("./zh_CN-THPIFVWJ.js")).default;
931
916
  case "zh-HK":
932
- return (await import("./zh_HK-AEXEN6P6.js")).default;
917
+ return (await import("./zh_HK-R7XP4TGF.js")).default;
933
918
  case "zh-Hant":
934
919
  case "zh-TW":
935
- return (await import("./zh_TW-6C7R5V3K.js")).default;
920
+ return (await import("./zh_TW-F5LD752V.js")).default;
936
921
  default:
937
- return (await import("./en_US-NQ25CUR4.js")).default;
922
+ return (await import("./en_US-AV7YDYDW.js")).default;
938
923
  }
939
924
  };
940
925
  async function setLocale(locale) {
@@ -1003,91 +988,91 @@ function isNotNullish(value) {
1003
988
  // src/components/RainbowKitProvider/provideRainbowKitChains.ts
1004
989
  var arbitrumIcon = {
1005
990
  iconBackground: "#96bedc",
1006
- iconUrl: async () => (await import("./arbitrum-D2TUFPZI.js")).default
991
+ iconUrl: async () => (await import("./arbitrum-IA4OWRTN.js")).default
1007
992
  };
1008
993
  var avalancheIcon = {
1009
994
  iconBackground: "#e84141",
1010
- iconUrl: async () => (await import("./avalanche-BOOSH35S.js")).default
995
+ iconUrl: async () => (await import("./avalanche-MXEFEDSW.js")).default
1011
996
  };
1012
997
  var baseIcon = {
1013
998
  iconBackground: "#0052ff",
1014
- iconUrl: async () => (await import("./base-3JMRS35B.js")).default
999
+ iconUrl: async () => (await import("./base-Z4LFBE5D.js")).default
1015
1000
  };
1016
1001
  var blastIcon = {
1017
1002
  iconBackground: "#000000",
1018
- iconUrl: async () => (await import("./blast-4GF24NR7.js")).default
1003
+ iconUrl: async () => (await import("./blast-TN2WIMWF.js")).default
1019
1004
  };
1020
1005
  var bscIcon = {
1021
1006
  iconBackground: "#ebac0e",
1022
- iconUrl: async () => (await import("./bsc-KU6MBOYR.js")).default
1007
+ iconUrl: async () => (await import("./bsc-RVE67I5L.js")).default
1023
1008
  };
1024
1009
  var celoIcon = {
1025
1010
  iconBackground: "#FCFF52",
1026
- iconUrl: async () => (await import("./celo-5A5VXMPX.js")).default
1011
+ iconUrl: async () => (await import("./celo-E6XU57FO.js")).default
1027
1012
  };
1028
1013
  var cronosIcon = {
1029
1014
  iconBackground: "#002D74",
1030
- iconUrl: async () => (await import("./cronos-KZAB32FC.js")).default
1015
+ iconUrl: async () => (await import("./cronos-ROYR77VZ.js")).default
1031
1016
  };
1032
1017
  var ethereumIcon = {
1033
1018
  iconBackground: "#484c50",
1034
- iconUrl: async () => (await import("./ethereum-WAFT6DML.js")).default
1019
+ iconUrl: async () => (await import("./ethereum-RFBAMUVK.js")).default
1035
1020
  };
1036
1021
  var flowIcon = {
1037
1022
  iconBackground: "transparent",
1038
- iconUrl: async () => (await import("./flow-XANNOAPJ.js")).default
1023
+ iconUrl: async () => (await import("./flow-NBCRNYVF.js")).default
1039
1024
  };
1040
1025
  var gnosisIcon = {
1041
1026
  iconBackground: "#04795c",
1042
- iconUrl: async () => (await import("./gnosis-7GFI4V27.js")).default
1027
+ iconUrl: async () => (await import("./gnosis-T7U5EW2Q.js")).default
1043
1028
  };
1044
1029
  var hardhatIcon = {
1045
1030
  iconBackground: "#f9f7ec",
1046
- iconUrl: async () => (await import("./hardhat-6HKZWC4T.js")).default
1031
+ iconUrl: async () => (await import("./hardhat-NEEC6JX7.js")).default
1047
1032
  };
1048
1033
  var kaiaIcon = {
1049
1034
  iconBackground: "transparent",
1050
- iconUrl: async () => (await import("./kaia-DQ3OSYXE.js")).default
1035
+ iconUrl: async () => (await import("./kaia-A33DVQBT.js")).default
1051
1036
  };
1052
1037
  var optimismIcon = {
1053
1038
  iconBackground: "#ff5a57",
1054
- iconUrl: async () => (await import("./optimism-6GXRYJDW.js")).default
1039
+ iconUrl: async () => (await import("./optimism-YWJ3IQHA.js")).default
1055
1040
  };
1056
1041
  var mantaIcon = {
1057
1042
  iconBackground: "#ffffff",
1058
- iconUrl: async () => (await import("./manta-OEF3QP66.js")).default
1043
+ iconUrl: async () => (await import("./manta-5V6W5D7G.js")).default
1059
1044
  };
1060
1045
  var mantleIcon = {
1061
1046
  iconBackground: "#000000",
1062
- iconUrl: async () => (await import("./mantle-EYIH4GGM.js")).default
1047
+ iconUrl: async () => (await import("./mantle-KBL3OIYT.js")).default
1063
1048
  };
1064
1049
  var polygonIcon = {
1065
1050
  iconBackground: "#9f71ec",
1066
- iconUrl: async () => (await import("./polygon-YNJM552P.js")).default
1051
+ iconUrl: async () => (await import("./polygon-WWEUOMKW.js")).default
1067
1052
  };
1068
1053
  var xdcIcon = {
1069
1054
  iconBackground: "#f9f7ec",
1070
- iconUrl: async () => (await import("./xdc-5NQHQJE5.js")).default
1055
+ iconUrl: async () => (await import("./xdc-X7V4QFNF.js")).default
1071
1056
  };
1072
1057
  var zetachainIcon = {
1073
1058
  iconBackground: "#000000",
1074
- iconUrl: async () => (await import("./zetachain-U6IILKZJ.js")).default
1059
+ iconUrl: async () => (await import("./zetachain-BMJKVYBN.js")).default
1075
1060
  };
1076
1061
  var zkSyncIcon = {
1077
1062
  iconBackground: "#f9f7ec",
1078
- iconUrl: async () => (await import("./zkSync-TMPB52ZN.js")).default
1063
+ iconUrl: async () => (await import("./zkSync-JL26RB7U.js")).default
1079
1064
  };
1080
1065
  var zoraIcon = {
1081
1066
  iconBackground: "#000000",
1082
- iconUrl: async () => (await import("./zora-S46CHEOU.js")).default
1067
+ iconUrl: async () => (await import("./zora-YZH32HP3.js")).default
1083
1068
  };
1084
1069
  var roninIcon = {
1085
1070
  iconBackground: "#1273EA",
1086
- iconUrl: async () => (await import("./ronin-LU7LZPWA.js")).default
1071
+ iconUrl: async () => (await import("./ronin-PNHX5V6H.js")).default
1087
1072
  };
1088
1073
  var scrollIcon = {
1089
1074
  iconBackground: "#000000",
1090
- iconUrl: async () => (await import("./scroll-XRP46UTI.js")).default
1075
+ iconUrl: async () => (await import("./scroll-NMZWDUQH.js")).default
1091
1076
  };
1092
1077
  var chainMetadataByName = {
1093
1078
  arbitrum: { chainId: 42161, name: "Arbitrum", ...arbitrumIcon },
@@ -5185,9 +5170,6 @@ function NonEvmTransferConfirmationModal({
5185
5170
  );
5186
5171
  }
5187
5172
 
5188
- // src/providers/SignConfirmationProvider/SignConfirmationProvider.tsx
5189
- init_networks();
5190
-
5191
5173
  // src/utils/abi/abiDecoder.ts
5192
5174
  var ABIDecoder = class {
5193
5175
  constructor(selectorIndexJson) {
@@ -5684,27 +5666,17 @@ function parseTransactionParams(params) {
5684
5666
  import { useCallback as useCallback12 } from "react";
5685
5667
  import { erc20Abi as erc20Abi2 } from "viem";
5686
5668
  import { usePublicClient as usePublicClient2 } from "wagmi";
5687
- init_networks();
5688
5669
 
5689
5670
  // src/providers/SignConfirmationProvider/useApiClient.ts
5690
- init_networks();
5691
5671
  import { useCallback as useCallback11 } from "react";
5692
5672
  import { toHex } from "viem";
5693
5673
 
5694
5674
  // src/utils/apiClientFactory.ts
5695
- function getAbcApiConfig() {
5696
- return {
5697
- ...DEFAULT_ABC_CONFIG,
5698
- environment: process.env.NEXT_PUBLIC_ENVIRONMENT === "production" ? "production" : "development",
5699
- waasUrl: ""
5700
- // All operations routed through TalkenApiClient
5701
- };
5702
- }
5703
5675
  function createWalletscanApi() {
5704
- return new WalletscanApi(getAbcApiConfig());
5676
+ return new WalletscanApi();
5705
5677
  }
5706
5678
  function createGasApi() {
5707
- return new GasApi(getAbcApiConfig());
5679
+ return new GasApi();
5708
5680
  }
5709
5681
 
5710
5682
  // src/providers/SignConfirmationProvider/useApiClient.ts
@@ -6821,8 +6793,7 @@ var AbcSolanaWalletAdapter = class extends BaseMessageSignerWalletAdapter {
6821
6793
  this._wallet = null;
6822
6794
  this._publicKey = null;
6823
6795
  this._config = {
6824
- waasUrl: config2.waasUrl || "",
6825
- // All operations routed through TalkenApiClient
6796
+ talkenApiUrl: resolveTalkenApiUrl(config2.talkenApiUrl),
6826
6797
  environment: config2.environment || "production",
6827
6798
  network: config2.network || "solana",
6828
6799
  // ABC WaaS format (mainnet)
@@ -6831,14 +6802,11 @@ var AbcSolanaWalletAdapter = class extends BaseMessageSignerWalletAdapter {
6831
6802
  disableBuiltInAuth: config2.disableBuiltInAuth ?? true
6832
6803
  // Default: true (TalkenKit integration mode)
6833
6804
  };
6834
- const plain = Array.from(crypto.getRandomValues(new Uint8Array(32))).map((b) => b.toString(16).padStart(2, "0")).join("");
6835
- const walletConfig = {
6836
- waasUrl: this._config.waasUrl,
6837
- plain,
6805
+ this._talkenApi = createTalkenApiClient({
6806
+ baseUrl: this._config.talkenApiUrl,
6807
+ debug: this._config.environment === "development",
6838
6808
  environment: this._config.environment
6839
- };
6840
- this._client = createAbcWaasClient(walletConfig);
6841
- this._solanaApi = new SolanaApi(walletConfig);
6809
+ });
6842
6810
  this._injectStyles();
6843
6811
  if (typeof window !== "undefined") {
6844
6812
  this._handleStorageUpdate = this._handleStorageUpdate.bind(this);
@@ -6904,12 +6872,7 @@ var AbcSolanaWalletAdapter = class extends BaseMessageSignerWalletAdapter {
6904
6872
  encryptedShare,
6905
6873
  secretStore: secretStore || ""
6906
6874
  };
6907
- this._client.setTokens(
6908
- authData.accessToken,
6909
- authData.refreshToken,
6910
- authData.expiresAt
6911
- );
6912
- this._solanaApi.setTokens(
6875
+ this._talkenApi.setTokens(
6913
6876
  authData.accessToken,
6914
6877
  authData.refreshToken,
6915
6878
  authData.expiresAt
@@ -6950,24 +6913,17 @@ var AbcSolanaWalletAdapter = class extends BaseMessageSignerWalletAdapter {
6950
6913
  );
6951
6914
  }
6952
6915
  const authHandler = this._config.onRequestAuth || this._showAuthModal.bind(this);
6953
- const authResult = await authHandler();
6954
- const loginResponse = await this._client.snsLogin({
6955
- email: authResult.email,
6916
+ await authHandler();
6917
+ const loginResponse = await this._talkenApi.auth.loginWithSns({
6956
6918
  token: "demo-token",
6957
6919
  // Simplified authentication for standalone adapter
6958
6920
  service: "google",
6959
- // Default to Google for now
6960
6921
  audience: "abc_wallet"
6961
6922
  });
6962
- const expiresAt = Date.now() + 3600 * 1e3;
6963
- this._client.setTokens(
6964
- loginResponse.access_token,
6965
- loginResponse.refresh_token,
6966
- expiresAt
6967
- );
6968
- this._solanaApi.setTokens(
6969
- loginResponse.access_token,
6970
- loginResponse.refresh_token,
6923
+ const expiresAt = Date.now() + loginResponse.expiresIn * 1e3;
6924
+ this._talkenApi.setTokens(
6925
+ loginResponse.accessToken,
6926
+ loginResponse.refreshToken,
6971
6927
  expiresAt
6972
6928
  );
6973
6929
  const pinHandler = this._config.onRequestPin || this._showPinModal.bind(this);
@@ -6975,10 +6931,18 @@ var AbcSolanaWalletAdapter = class extends BaseMessageSignerWalletAdapter {
6975
6931
  const pinHash = await hashPin(pin);
6976
6932
  let walletResult;
6977
6933
  try {
6978
- walletResult = await this._solanaApi.generateSolanaWallet(pinHash);
6934
+ const response = await this._talkenApi.wallet.generate(pinHash);
6935
+ if (!response.solana) {
6936
+ throw new Error("Solana wallet not returned from generation");
6937
+ }
6938
+ walletResult = response.solana;
6979
6939
  } catch (error2) {
6980
6940
  if (error2.response?.status === 409 || error2.message?.includes("already exists")) {
6981
- walletResult = await this._solanaApi.recoverSolanaWallet(pinHash);
6941
+ const response = await this._talkenApi.wallet.recover(pinHash);
6942
+ if (!response.solana) {
6943
+ throw new Error("Solana wallet not returned from recovery");
6944
+ }
6945
+ walletResult = response.solana;
6982
6946
  } else {
6983
6947
  throw error2;
6984
6948
  }
@@ -7051,7 +7015,7 @@ var AbcSolanaWalletAdapter = class extends BaseMessageSignerWalletAdapter {
7051
7015
  this._wallet = null;
7052
7016
  this._publicKey = null;
7053
7017
  try {
7054
- await this._client.logout();
7018
+ this._talkenApi.auth.logout();
7055
7019
  } catch (error2) {
7056
7020
  this.emit("error", new WalletConnectionError(error2?.message, error2));
7057
7021
  }
@@ -7075,12 +7039,13 @@ var AbcSolanaWalletAdapter = class extends BaseMessageSignerWalletAdapter {
7075
7039
  });
7076
7040
  const messageHex = Buffer.from(message).toString("hex");
7077
7041
  const pinHash = localStorage.getItem("talkenkit_abc_pin_hash") || "";
7078
- const signatureResponse = await this._solanaApi.signSolanaTransaction({
7042
+ const signatureResponse = await this._talkenApi.solana.sign({
7079
7043
  keyId: this._wallet.keyId || "",
7080
7044
  encryptedShare: this._wallet.encryptedShare || "",
7081
7045
  secretStore: this._wallet.secretStore || "",
7082
7046
  message: messageHex,
7083
- pin: pinHash
7047
+ pin: pinHash,
7048
+ network: this._getSigningNetwork()
7084
7049
  });
7085
7050
  const sig = signatureResponse.signature;
7086
7051
  const signatureBytes = /^[0-9a-fA-F]+$/.test(sig) && sig.length === 128 ? Buffer.from(sig, "hex") : Buffer.from(sig, "base64");
@@ -7128,11 +7093,12 @@ var AbcSolanaWalletAdapter = class extends BaseMessageSignerWalletAdapter {
7128
7093
  throw new WalletNotReadyError();
7129
7094
  const messageBytes = isVersionedTransaction(transaction) ? transaction.message.serialize() : transaction.serializeMessage();
7130
7095
  const messageHex = Buffer.from(messageBytes).toString("hex");
7131
- const signatureResponse = await this._solanaApi.signSolanaTransaction({
7096
+ const signatureResponse = await this._talkenApi.solana.sign({
7132
7097
  keyId: this._wallet.keyId,
7133
7098
  encryptedShare: this._wallet.encryptedShare,
7134
7099
  secretStore: this._wallet.secretStore || "",
7135
- message: messageHex
7100
+ message: messageHex,
7101
+ network: this._getSigningNetwork()
7136
7102
  });
7137
7103
  const signature = Buffer.from(signatureResponse.signature, "hex");
7138
7104
  if (isVersionedTransaction(transaction)) {
@@ -7229,6 +7195,9 @@ var AbcSolanaWalletAdapter = class extends BaseMessageSignerWalletAdapter {
7229
7195
  console.error("[AbcSolanaWalletAdapter] Auto-connect failed:", error2);
7230
7196
  }
7231
7197
  }
7198
+ _getSigningNetwork() {
7199
+ return this._config.network === "solana" ? "solana" : "solana_devnet";
7200
+ }
7232
7201
  /**
7233
7202
  * Show built-in authentication modal
7234
7203
  */
@@ -7645,7 +7614,7 @@ function setRainbowKitVersion({ version }) {
7645
7614
  }
7646
7615
  function useFingerprint() {
7647
7616
  const fingerprint = useCallback14(() => {
7648
- setRainbowKitVersion({ version: "2.4.22" });
7617
+ setRainbowKitVersion({ version: "2.4.23" });
7649
7618
  }, []);
7650
7619
  useEffect18(() => {
7651
7620
  fingerprint();
@@ -7930,7 +7899,7 @@ function useWalletConnectors(mergeEIP6963WithRkConnectors = false) {
7930
7899
 
7931
7900
  // src/components/Icons/Assets.tsx
7932
7901
  import React41 from "react";
7933
- var src = async () => (await import("./assets-4NDWRKXE.js")).default;
7902
+ var src = async () => (await import("./assets-NU2OP443.js")).default;
7934
7903
  var preloadAssetsIcon = () => loadImages(src);
7935
7904
  var AssetsIcon = () => /* @__PURE__ */ React41.createElement(
7936
7905
  AsyncImage,
@@ -7945,7 +7914,7 @@ var AssetsIcon = () => /* @__PURE__ */ React41.createElement(
7945
7914
 
7946
7915
  // src/components/Icons/Login.tsx
7947
7916
  import React42 from "react";
7948
- var src2 = async () => (await import("./login-DGIK764Z.js")).default;
7917
+ var src2 = async () => (await import("./login-CWDTIDNK.js")).default;
7949
7918
  var preloadLoginIcon = () => loadImages(src2);
7950
7919
  var LoginIcon = () => /* @__PURE__ */ React42.createElement(
7951
7920
  AsyncImage,
@@ -8155,7 +8124,7 @@ var CloseButton = ({
8155
8124
  };
8156
8125
 
8157
8126
  // src/components/SignIn/SignIn.tsx
8158
- var signInIcon = async () => (await import("./sign-PREOQ4RR.js")).default;
8127
+ var signInIcon = async () => (await import("./sign-A7IJEUT5.js")).default;
8159
8128
  function SignIn({
8160
8129
  onClose,
8161
8130
  onCloseModal
@@ -10380,7 +10349,7 @@ function AbcWaasAuthSections(props) {
10380
10349
  }
10381
10350
 
10382
10351
  // src/components/ConnectOptions/AbcWaasAuth/hooks/useAbcWaasAuth.ts
10383
- import { getTalkenApiClient } from "@talken/talkenkit";
10352
+ import { getTalkenApiClient as getTalkenApiClient2 } from "@talken/talkenkit";
10384
10353
  import { useState as useState24 } from "react";
10385
10354
  function useAbcWaasAuth(props) {
10386
10355
  const { onAuthSuccess, onPinRequired } = props || {};
@@ -10415,7 +10384,7 @@ function useAbcWaasAuth(props) {
10415
10384
  }
10416
10385
  };
10417
10386
  const getApi = () => {
10418
- const api = getTalkenApiClient();
10387
+ const api = getTalkenApiClient2();
10419
10388
  if (!api) {
10420
10389
  throw new Error("TalkenApiClient not initialized");
10421
10390
  }
@@ -10640,7 +10609,7 @@ function useAbcWaasAuth(props) {
10640
10609
  import { useState as useState25 } from "react";
10641
10610
 
10642
10611
  // src/services/AbcAuthService.ts
10643
- import { getTalkenApiClient as getTalkenApiClient2 } from "@talken/talkenkit";
10612
+ import { getTalkenApiClient as getTalkenApiClient3 } from "@talken/talkenkit";
10644
10613
 
10645
10614
  // src/wallets/walletConnectors/abcWallet/firebase.ts
10646
10615
  import { initializeApp } from "firebase/app";
@@ -11060,7 +11029,7 @@ async function kakaoLogin() {
11060
11029
 
11061
11030
  // src/services/AbcAuthService.ts
11062
11031
  async function registerUser(params, _config) {
11063
- const api = getTalkenApiClient2();
11032
+ const api = getTalkenApiClient3();
11064
11033
  if (!api) {
11065
11034
  throw new Error("TalkenApiClient not initialized");
11066
11035
  }
@@ -11073,7 +11042,7 @@ async function registerUser(params, _config) {
11073
11042
  return { status: "success", data: res };
11074
11043
  }
11075
11044
  async function registerSnsUser(params, _config) {
11076
- const api = getTalkenApiClient2();
11045
+ const api = getTalkenApiClient3();
11077
11046
  if (!api) {
11078
11047
  throw new Error("TalkenApiClient not initialized");
11079
11048
  }
@@ -11086,7 +11055,7 @@ async function registerSnsUser(params, _config) {
11086
11055
  return { status: "success", data: res };
11087
11056
  }
11088
11057
  async function resetPassword(params, _config) {
11089
- const api = getTalkenApiClient2();
11058
+ const api = getTalkenApiClient3();
11090
11059
  if (!api) {
11091
11060
  throw new Error("TalkenApiClient not initialized");
11092
11061
  }
@@ -11098,7 +11067,7 @@ async function resetPassword(params, _config) {
11098
11067
  return { status: "success", data: res };
11099
11068
  }
11100
11069
  async function emailCheck(email, _config) {
11101
- const api = getTalkenApiClient2();
11070
+ const api = getTalkenApiClient3();
11102
11071
  if (!api) {
11103
11072
  throw new Error("TalkenApiClient not initialized");
11104
11073
  }
@@ -11109,7 +11078,7 @@ async function emailCheck(email, _config) {
11109
11078
  };
11110
11079
  }
11111
11080
  async function sendOtpCode(email, _config) {
11112
- const api = getTalkenApiClient2();
11081
+ const api = getTalkenApiClient3();
11113
11082
  if (!api) {
11114
11083
  throw new Error("TalkenApiClient not initialized");
11115
11084
  }
@@ -11117,7 +11086,7 @@ async function sendOtpCode(email, _config) {
11117
11086
  return { status: "success", data: { sent: true } };
11118
11087
  }
11119
11088
  async function verifyOtpCode(email, code, _config) {
11120
- const api = getTalkenApiClient2();
11089
+ const api = getTalkenApiClient3();
11121
11090
  if (!api) {
11122
11091
  throw new Error("TalkenApiClient not initialized");
11123
11092
  }
@@ -11125,7 +11094,7 @@ async function verifyOtpCode(email, code, _config) {
11125
11094
  return { status: "success", data: { verified: true } };
11126
11095
  }
11127
11096
  async function loginWithPassword(params, _apiServer) {
11128
- const api = getTalkenApiClient2();
11097
+ const api = getTalkenApiClient3();
11129
11098
  if (!api) {
11130
11099
  throw new Error("TalkenApiClient not initialized");
11131
11100
  }
@@ -11142,7 +11111,7 @@ async function loginWithPassword(params, _apiServer) {
11142
11111
  };
11143
11112
  }
11144
11113
  async function performSnsLogin(token, service, email) {
11145
- const api = getTalkenApiClient2();
11114
+ const api = getTalkenApiClient3();
11146
11115
  if (!api) {
11147
11116
  throw new Error("TalkenApiClient not initialized");
11148
11117
  }
@@ -11257,10 +11226,7 @@ function useAbcWaasSocial(props) {
11257
11226
  setError("");
11258
11227
  try {
11259
11228
  const response = await googleLogin2({
11260
- waasUrl: "",
11261
- // Routed through TalkenApiClient
11262
- environment: process.env.NEXT_PUBLIC_ENVIRONMENT || "development",
11263
- apiServer: process.env.NEXT_PUBLIC_API_URL
11229
+ environment: process.env.NEXT_PUBLIC_ENVIRONMENT || "development"
11264
11230
  });
11265
11231
  if (!response)
11266
11232
  return;
@@ -11276,10 +11242,7 @@ function useAbcWaasSocial(props) {
11276
11242
  setError("");
11277
11243
  try {
11278
11244
  const response = await appleLogin2({
11279
- waasUrl: "",
11280
- // Routed through TalkenApiClient
11281
- environment: process.env.NEXT_PUBLIC_ENVIRONMENT || "development",
11282
- apiServer: process.env.NEXT_PUBLIC_API_URL
11245
+ environment: process.env.NEXT_PUBLIC_ENVIRONMENT || "development"
11283
11246
  });
11284
11247
  if (!response)
11285
11248
  return;
@@ -11295,10 +11258,7 @@ function useAbcWaasSocial(props) {
11295
11258
  setError("");
11296
11259
  try {
11297
11260
  const response = await kakaoLogin2({
11298
- waasUrl: "",
11299
- // Routed through TalkenApiClient
11300
- environment: process.env.NEXT_PUBLIC_ENVIRONMENT || "development",
11301
- apiServer: process.env.NEXT_PUBLIC_API_URL
11261
+ environment: process.env.NEXT_PUBLIC_ENVIRONMENT || "development"
11302
11262
  });
11303
11263
  if (!response)
11304
11264
  return;
@@ -11444,7 +11404,7 @@ var isHexString = (color) => {
11444
11404
 
11445
11405
  // src/components/Icons/Connect.tsx
11446
11406
  import React78 from "react";
11447
- var src3 = async () => (await import("./connect-Q2RLUT5B.js")).default;
11407
+ var src3 = async () => (await import("./connect-MR6XDLIE.js")).default;
11448
11408
  var preloadConnectIcon = () => loadImages(src3);
11449
11409
  var ConnectIcon = () => /* @__PURE__ */ React78.createElement(
11450
11410
  AsyncImage,
@@ -11460,7 +11420,7 @@ var ConnectIcon = () => /* @__PURE__ */ React78.createElement(
11460
11420
 
11461
11421
  // src/components/Icons/Create.tsx
11462
11422
  import React79 from "react";
11463
- var src4 = async () => (await import("./create-HQ4QXTKY.js")).default;
11423
+ var src4 = async () => (await import("./create-X4WFHLCW.js")).default;
11464
11424
  var preloadCreateIcon = () => loadImages(src4);
11465
11425
  var CreateIcon = () => /* @__PURE__ */ React79.createElement(
11466
11426
  AsyncImage,
@@ -11476,7 +11436,7 @@ var CreateIcon = () => /* @__PURE__ */ React79.createElement(
11476
11436
 
11477
11437
  // src/components/Icons/Refresh.tsx
11478
11438
  import React80 from "react";
11479
- var src5 = async () => (await import("./refresh-R5NYTT3S.js")).default;
11439
+ var src5 = async () => (await import("./refresh-HJGJRASX.js")).default;
11480
11440
  var preloadRefreshIcon = () => loadImages(src5);
11481
11441
  var RefreshIcon = () => /* @__PURE__ */ React80.createElement(
11482
11442
  AsyncImage,
@@ -11492,7 +11452,7 @@ var RefreshIcon = () => /* @__PURE__ */ React80.createElement(
11492
11452
 
11493
11453
  // src/components/Icons/Scan.tsx
11494
11454
  import React81 from "react";
11495
- var src6 = async () => (await import("./scan-BVZ7DVJ4.js")).default;
11455
+ var src6 = async () => (await import("./scan-DEOT2M37.js")).default;
11496
11456
  var preloadScanIcon = () => loadImages(src6);
11497
11457
  var ScanIcon = () => /* @__PURE__ */ React81.createElement(
11498
11458
  AsyncImage,
@@ -11654,21 +11614,21 @@ var getBrowserSrc = async () => {
11654
11614
  const browser = getBrowser();
11655
11615
  switch (browser) {
11656
11616
  case "Arc" /* Arc */:
11657
- return (await import("./Arc-ILTINY4C.js")).default;
11617
+ return (await import("./Arc-R3PUWRPJ.js")).default;
11658
11618
  case "Brave" /* Brave */:
11659
- return (await import("./Brave-4L5B7JJR.js")).default;
11619
+ return (await import("./Brave-24BM36UM.js")).default;
11660
11620
  case "Chrome" /* Chrome */:
11661
- return (await import("./Chrome-6ZDQIHC5.js")).default;
11621
+ return (await import("./Chrome-TLI42HDP.js")).default;
11662
11622
  case "Edge" /* Edge */:
11663
- return (await import("./Edge-OAWCEU7H.js")).default;
11623
+ return (await import("./Edge-AZ34LAFM.js")).default;
11664
11624
  case "Firefox" /* Firefox */:
11665
- return (await import("./Firefox-O66FZK3V.js")).default;
11625
+ return (await import("./Firefox-ZDK7RHKK.js")).default;
11666
11626
  case "Opera" /* Opera */:
11667
- return (await import("./Opera-KTUB3UWN.js")).default;
11627
+ return (await import("./Opera-BKMCKUXC.js")).default;
11668
11628
  case "Safari" /* Safari */:
11669
- return (await import("./Safari-A3Q6PIT2.js")).default;
11629
+ return (await import("./Safari-PXQIVS6N.js")).default;
11670
11630
  default:
11671
- return (await import("./Browser-XMB4J5WD.js")).default;
11631
+ return (await import("./Browser-4R4QKTV2.js")).default;
11672
11632
  }
11673
11633
  };
11674
11634
  var preloadBrowserIcon = () => loadImages(getBrowserSrc);
@@ -11676,13 +11636,13 @@ var getPlatformSrc = async () => {
11676
11636
  const platform = getPlatform();
11677
11637
  switch (platform) {
11678
11638
  case "Windows" /* Windows */:
11679
- return (await import("./Windows-NL32NG52.js")).default;
11639
+ return (await import("./Windows-GTAT3OTE.js")).default;
11680
11640
  case "macOS" /* MacOS */:
11681
- return (await import("./Macos-46EJ2NPK.js")).default;
11641
+ return (await import("./Macos-5QL4JBJE.js")).default;
11682
11642
  case "Linux" /* Linux */:
11683
- return (await import("./Linux-NUJF4EPC.js")).default;
11643
+ return (await import("./Linux-VYP66PDO.js")).default;
11684
11644
  default:
11685
- return (await import("./Linux-NUJF4EPC.js")).default;
11645
+ return (await import("./Linux-VYP66PDO.js")).default;
11686
11646
  }
11687
11647
  };
11688
11648
  var preloadPlatformIcon = () => loadImages(getPlatformSrc);
@@ -13477,17 +13437,6 @@ function usePinCreation(props) {
13477
13437
 
13478
13438
  // src/components/ConnectOptions/PinAuth/hooks/usePinVerification.ts
13479
13439
  import { useState as useState29 } from "react";
13480
-
13481
- // src/wallets/walletConnectors/abcWallet/api/TalkenApiSingleton.ts
13482
- var _instance;
13483
- function setTalkenApiClient(client) {
13484
- _instance = client;
13485
- }
13486
- function getTalkenApiClient3() {
13487
- return _instance;
13488
- }
13489
-
13490
- // src/components/ConnectOptions/PinAuth/hooks/usePinVerification.ts
13491
13440
  function usePinVerification(props) {
13492
13441
  const {
13493
13442
  email,
@@ -13569,7 +13518,7 @@ function usePinVerification(props) {
13569
13518
  if (!refreshToken) {
13570
13519
  throw new Error("No refresh token available");
13571
13520
  }
13572
- const api = getTalkenApiClient3();
13521
+ const api = getTalkenApiClient();
13573
13522
  if (!api) {
13574
13523
  throw new Error("TalkenApiClient not initialized");
13575
13524
  }
@@ -13736,7 +13685,7 @@ function useWalletGeneration(props) {
13736
13685
  loginData.refresh_token || ""
13737
13686
  );
13738
13687
  localStorage.setItem(`${storagePrefix}expires_at`, String(expiresAt));
13739
- const api = getTalkenApiClient3();
13688
+ const api = getTalkenApiClient();
13740
13689
  api.setTokens(
13741
13690
  loginData.access_token,
13742
13691
  loginData.refresh_token || "",
@@ -16398,7 +16347,7 @@ var coinbaseWallet = ({ appName, appIcon }) => {
16398
16347
  name: "Coinbase Wallet",
16399
16348
  shortName: "Coinbase",
16400
16349
  rdns: "com.coinbase.wallet",
16401
- iconUrl: async () => (await import("./coinbaseWallet-L4QDZB5W.js")).default,
16350
+ iconUrl: async () => (await import("./coinbaseWallet-WWX6LF36.js")).default,
16402
16351
  iconAccent: "#2c5ff6",
16403
16352
  iconBackground: "#2c5ff6",
16404
16353
  // If the coinbase wallet browser extension is not installed, a popup will appear
@@ -16570,7 +16519,7 @@ var metaMaskWallet = ({
16570
16519
  id: "metaMask",
16571
16520
  name: "MetaMask",
16572
16521
  rdns: "io.metamask",
16573
- iconUrl: async () => (await import("./metaMaskWallet-ZZMFVM52.js")).default,
16522
+ iconUrl: async () => (await import("./metaMaskWallet-YFHEHW7V.js")).default,
16574
16523
  iconAccent: "#f6851a",
16575
16524
  iconBackground: "#fff",
16576
16525
  installed: !shouldUseWalletConnect ? isMetaMaskInjected : void 0,
@@ -16660,7 +16609,7 @@ var rainbowWallet = ({
16660
16609
  id: "rainbow",
16661
16610
  name: "Rainbow",
16662
16611
  rdns: "me.rainbow",
16663
- iconUrl: async () => (await import("./rainbowWallet-4ALDT5ZL.js")).default,
16612
+ iconUrl: async () => (await import("./rainbowWallet-2SR6TVBF.js")).default,
16664
16613
  iconBackground: "#0c2f78",
16665
16614
  installed: !shouldUseWalletConnect ? isRainbowInjected : void 0,
16666
16615
  downloadUrls: {
@@ -16709,7 +16658,7 @@ var safeWallet = () => ({
16709
16658
  name: "Safe",
16710
16659
  iconAccent: "#12ff80",
16711
16660
  iconBackground: "#fff",
16712
- iconUrl: async () => (await import("./safeWallet-5NR62MJV.js")).default,
16661
+ iconUrl: async () => (await import("./safeWallet-VUYZPLY4.js")).default,
16713
16662
  installed: (
16714
16663
  // Only allowed in iframe context
16715
16664
  // borrowed from wagmi safe connector
@@ -16738,7 +16687,7 @@ var walletConnectWallet = ({
16738
16687
  id: "walletConnect",
16739
16688
  name: "WalletConnect",
16740
16689
  installed: void 0,
16741
- iconUrl: async () => (await import("./walletConnectWallet-AJ36XVBT.js")).default,
16690
+ iconUrl: async () => (await import("./walletConnectWallet-FNSU4KNU.js")).default,
16742
16691
  iconBackground: "#3b99fc",
16743
16692
  qrCode: { getUri },
16744
16693
  createConnector: getWalletConnectConnector({
@@ -17166,8 +17115,7 @@ function getDefaultRpcEndpoint(network) {
17166
17115
  }
17167
17116
  function createAbcSolanaAdapter(config2) {
17168
17117
  return new AbcSolanaWalletAdapter({
17169
- waasUrl: config2?.waasUrl || "",
17170
- // All operations routed through TalkenApiClient
17118
+ talkenApiUrl: config2?.talkenApiUrl,
17171
17119
  environment: config2?.environment || "production",
17172
17120
  onRequestPin: config2?.onRequestPin,
17173
17121
  onRequestAuth: config2?.onRequestAuth,
@@ -17313,7 +17261,7 @@ function AbcAuthProvider({ children }) {
17313
17261
  return false;
17314
17262
  }
17315
17263
  try {
17316
- const api = getTalkenApiClient3();
17264
+ const api = getTalkenApiClient();
17317
17265
  if (!api) {
17318
17266
  console.error("[AbcAuthProvider] TalkenApiClient not initialized");
17319
17267
  return false;
@@ -17648,14 +17596,8 @@ function useSolanaWallet() {
17648
17596
  });
17649
17597
  return;
17650
17598
  }
17651
- const { AbcSolanaProvider, createAbcWaasApiClient: createAbcWaasApiClient2 } = await import("./abcWallet-VZMW2DR3.js");
17652
- const client = createAbcWaasApiClient2({
17653
- waasUrl: "",
17654
- // All operations routed through TalkenApiClient
17655
- plain: "",
17656
- environment: process.env.NEXT_PUBLIC_ENVIRONMENT || "development"
17657
- });
17658
- const solanaProvider = new AbcSolanaProvider(client);
17599
+ const { AbcSolanaProvider } = await import("./abcWallet-O4GH6RHS.js");
17600
+ const solanaProvider = new AbcSolanaProvider();
17659
17601
  solanaProvider.setWallet(solanaWallet);
17660
17602
  if (requestInterceptor) {
17661
17603
  solanaProvider.setRequestInterceptor(requestInterceptor);
@@ -17996,14 +17938,8 @@ function useTronWallet() {
17996
17938
  });
17997
17939
  return;
17998
17940
  }
17999
- const { AbcTronProvider, createAbcWaasApiClient: createAbcWaasApiClient2 } = await import("./abcWallet-VZMW2DR3.js");
18000
- const client = createAbcWaasApiClient2({
18001
- waasUrl: "",
18002
- // All operations routed through TalkenApiClient
18003
- plain: "",
18004
- environment: process.env.NEXT_PUBLIC_ENVIRONMENT || "development"
18005
- });
18006
- const tronProvider = new AbcTronProvider(client);
17941
+ const { AbcTronProvider } = await import("./abcWallet-O4GH6RHS.js");
17942
+ const tronProvider = new AbcTronProvider();
18007
17943
  tronProvider.setWallet(tronWallet);
18008
17944
  if (requestInterceptor) {
18009
17945
  tronProvider.setRequestInterceptor(requestInterceptor);
@@ -18080,10 +18016,10 @@ async function getSecureChannel() {
18080
18016
  const mykey = ec.genKeyPair();
18081
18017
  const pubkey = mykey.getPublic().encode("hex", false);
18082
18018
  try {
18083
- const apiUrl = process.env.NEXT_PUBLIC_API_URL;
18019
+ const apiUrl = process.env.NEXT_PUBLIC_TALKEN_API_URL;
18084
18020
  if (!apiUrl) {
18085
18021
  throw new Error(
18086
- "NEXT_PUBLIC_API_URL environment variable is not set. Please add it to your .env.local file."
18022
+ "NEXT_PUBLIC_TALKEN_API_URL environment variable is not set. Please add it to your .env.local file."
18087
18023
  );
18088
18024
  }
18089
18025
  const response = await fetch(`${apiUrl}/auth/secure-channel`, {
@@ -18164,16 +18100,12 @@ function clearSecureChannel() {
18164
18100
  cacheTimestamp = null;
18165
18101
  }
18166
18102
 
18167
- // src/index.ts
18168
- init_networks();
18169
-
18170
- // src/utils/abcWaasAdapter.ts
18171
- init_networks();
18103
+ // src/utils/embeddedTxAdapter.ts
18172
18104
  function bigintToHex(value) {
18173
18105
  return `0x${value.toString(16)}`;
18174
18106
  }
18175
- function wagmiToAbcWaas(wagmiTx) {
18176
- const abcWaasTx = {
18107
+ function wagmiToEmbeddedTx(wagmiTx) {
18108
+ const embeddedTx = {
18177
18109
  to: wagmiTx.to,
18178
18110
  data: wagmiTx.data,
18179
18111
  nonce: wagmiTx.nonce
@@ -18183,62 +18115,58 @@ function wagmiToAbcWaas(wagmiTx) {
18183
18115
  if (!network) {
18184
18116
  throw new Error(`Unsupported chain ID: ${wagmiTx.chainId}`);
18185
18117
  }
18186
- abcWaasTx.network = network;
18118
+ embeddedTx.network = network;
18187
18119
  }
18188
18120
  if (wagmiTx.value !== void 0) {
18189
- abcWaasTx.value = bigintToHex(wagmiTx.value);
18121
+ embeddedTx.value = bigintToHex(wagmiTx.value);
18190
18122
  }
18191
18123
  if (wagmiTx.gas !== void 0) {
18192
- abcWaasTx.gas = bigintToHex(wagmiTx.gas);
18124
+ embeddedTx.gas = bigintToHex(wagmiTx.gas);
18193
18125
  }
18194
18126
  if (wagmiTx.gasPrice !== void 0) {
18195
- abcWaasTx.gasPrice = bigintToHex(wagmiTx.gasPrice);
18127
+ embeddedTx.gasPrice = bigintToHex(wagmiTx.gasPrice);
18196
18128
  }
18197
18129
  if (wagmiTx.maxFeePerGas !== void 0) {
18198
- abcWaasTx.maxFeePerGas = bigintToHex(wagmiTx.maxFeePerGas);
18130
+ embeddedTx.maxFeePerGas = bigintToHex(wagmiTx.maxFeePerGas);
18199
18131
  }
18200
18132
  if (wagmiTx.maxPriorityFeePerGas !== void 0) {
18201
- abcWaasTx.maxPriorityFeePerGas = bigintToHex(wagmiTx.maxPriorityFeePerGas);
18133
+ embeddedTx.maxPriorityFeePerGas = bigintToHex(wagmiTx.maxPriorityFeePerGas);
18202
18134
  }
18203
- return abcWaasTx;
18135
+ return embeddedTx;
18204
18136
  }
18205
- function abcWaasToWagmi(abcWaasTx) {
18137
+ function embeddedTxToWagmi(embeddedTx) {
18206
18138
  const wagmiTx = {
18207
- to: abcWaasTx.to,
18208
- data: abcWaasTx.data,
18209
- nonce: abcWaasTx.nonce
18139
+ to: embeddedTx.to,
18140
+ data: embeddedTx.data,
18141
+ nonce: embeddedTx.nonce
18210
18142
  };
18211
- if (abcWaasTx.network !== void 0) {
18212
- const chainId = networkToChainId2(abcWaasTx.network);
18143
+ if (embeddedTx.network !== void 0) {
18144
+ const chainId = networkToChainId(embeddedTx.network);
18213
18145
  if (chainId === void 0) {
18214
- throw new Error(`Unknown network parameter: ${abcWaasTx.network}`);
18146
+ throw new Error(`Unknown network parameter: ${embeddedTx.network}`);
18215
18147
  }
18216
18148
  if (chainId === null) {
18217
- throw new Error(`Network ${abcWaasTx.network} is not an EVM chain`);
18149
+ throw new Error(`Network ${embeddedTx.network} is not an EVM chain`);
18218
18150
  }
18219
18151
  wagmiTx.chainId = chainId;
18220
18152
  }
18221
- if (abcWaasTx.value !== void 0) {
18222
- wagmiTx.value = BigInt(abcWaasTx.value);
18153
+ if (embeddedTx.value !== void 0) {
18154
+ wagmiTx.value = BigInt(embeddedTx.value);
18223
18155
  }
18224
- if (abcWaasTx.gas !== void 0) {
18225
- wagmiTx.gas = BigInt(abcWaasTx.gas);
18156
+ if (embeddedTx.gas !== void 0) {
18157
+ wagmiTx.gas = BigInt(embeddedTx.gas);
18226
18158
  }
18227
- if (abcWaasTx.gasPrice !== void 0) {
18228
- wagmiTx.gasPrice = BigInt(abcWaasTx.gasPrice);
18159
+ if (embeddedTx.gasPrice !== void 0) {
18160
+ wagmiTx.gasPrice = BigInt(embeddedTx.gasPrice);
18229
18161
  }
18230
- if (abcWaasTx.maxFeePerGas !== void 0) {
18231
- wagmiTx.maxFeePerGas = BigInt(abcWaasTx.maxFeePerGas);
18162
+ if (embeddedTx.maxFeePerGas !== void 0) {
18163
+ wagmiTx.maxFeePerGas = BigInt(embeddedTx.maxFeePerGas);
18232
18164
  }
18233
- if (abcWaasTx.maxPriorityFeePerGas !== void 0) {
18234
- wagmiTx.maxPriorityFeePerGas = BigInt(abcWaasTx.maxPriorityFeePerGas);
18165
+ if (embeddedTx.maxPriorityFeePerGas !== void 0) {
18166
+ wagmiTx.maxPriorityFeePerGas = BigInt(embeddedTx.maxPriorityFeePerGas);
18235
18167
  }
18236
18168
  return wagmiTx;
18237
18169
  }
18238
- function networkToChainId2(network) {
18239
- const { networkToChainId: converter } = (init_networks(), __toCommonJS(networks_exports));
18240
- return converter(network);
18241
- }
18242
18170
  export {
18243
18171
  AbcAuthProvider,
18244
18172
  BitcoinNetwork as AbcBitcoinNetwork,
@@ -18247,14 +18175,12 @@ export {
18247
18175
  SolanaNetwork as AbcSolanaNetwork,
18248
18176
  AbcSolanaWalletAdapter,
18249
18177
  TronNetwork as AbcTronNetwork,
18250
- AbcWaasApiClient,
18251
18178
  abcSolanaWalletAdapter_default as AbcWallet,
18252
18179
  AbcWalletName,
18253
- AuthApi,
18254
- BaseApiClient,
18255
18180
  ChainIndicator,
18256
18181
  ChainSelector,
18257
18182
  ConnectButton,
18183
+ GasApi,
18258
18184
  Logger,
18259
18185
  MultiChainConnectOptions,
18260
18186
  NETWORK_BY_PARAM,
@@ -18267,28 +18193,27 @@ export {
18267
18193
  RainbowKitProvider,
18268
18194
  SessionExpiredError,
18269
18195
  SignConfirmationProvider,
18270
- SolanaApi,
18271
18196
  SolanaWalletList2 as SolanaWalletList,
18197
+ TalkenApiClient,
18272
18198
  RainbowKitProvider as TalkenKitProvider,
18273
- TransactionApi,
18274
- WalletApi,
18275
18199
  WalletButton2 as WalletButton,
18200
+ WalletscanApi,
18276
18201
  __private__,
18277
- abcWaasToWagmi,
18278
18202
  chainIdToNetwork,
18279
18203
  clearSecureChannel,
18280
18204
  configureLogger,
18281
18205
  connectorsForWallets,
18282
18206
  createAbcSolanaAdapter,
18283
- createAbcWaasApiClient,
18284
18207
  createAuthenticationAdapter,
18285
18208
  createLogger,
18209
+ createTalkenApiClient,
18286
18210
  cssObjectFromTheme,
18287
18211
  cssStringFromTheme,
18288
18212
  darkTheme,
18289
18213
  decrypt,
18290
18214
  decryptWithPin,
18291
18215
  emailCheck,
18216
+ embeddedTxToWagmi,
18292
18217
  encryptPlain,
18293
18218
  encryptWithPin,
18294
18219
  getBitcoinNetwork,
@@ -18306,7 +18231,7 @@ export {
18306
18231
  getSolanaNetwork,
18307
18232
  getSupportedChainIds,
18308
18233
  getSupportedNetworks,
18309
- getTalkenApiClient3 as getTalkenApiClient,
18234
+ getTalkenApiClient,
18310
18235
  getTronNetwork,
18311
18236
  getWalletConnectConnector,
18312
18237
  hashPin,
@@ -18340,5 +18265,5 @@ export {
18340
18265
  useWalletCapabilities,
18341
18266
  verifyOtpCode,
18342
18267
  verifyPin,
18343
- wagmiToAbcWaas
18268
+ wagmiToEmbeddedTx
18344
18269
  };