@talken/talkenkit 2.4.16 → 2.4.17

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 (233) hide show
  1. package/dist/abcWallet-54KUGWUZ.js +192 -0
  2. package/dist/abcWallet-KZHOADBJ.js +192 -0
  3. package/dist/abcWallet-NZAVB4PI.js +190 -0
  4. package/dist/chunk-5X3ROW3U.js +8777 -0
  5. package/dist/chunk-DKA3NVFM.js +8497 -0
  6. package/dist/chunk-QNZ5HSPM.js +8339 -0
  7. package/dist/chunk-VE53ZNZV.js +331 -0
  8. package/dist/components/ConfirmationModal/ApproveSection.css.d.ts +16 -0
  9. package/dist/components/ConfirmationModal/ApproveSection.d.ts +8 -0
  10. package/dist/components/ConfirmationModal/NFTPlaceholder.css.d.ts +7 -0
  11. package/dist/components/ConfirmationModal/NFTPlaceholder.d.ts +8 -0
  12. package/dist/components/ConfirmationModal/NftApprovalSection.css.d.ts +10 -0
  13. package/dist/components/ConfirmationModal/NftApprovalSection.d.ts +7 -0
  14. package/dist/components/ConfirmationModal/SignConfirmationModal.css.d.ts +35 -0
  15. package/dist/components/ConfirmationModal/SignConfirmationModal.d.ts +17 -0
  16. package/dist/components/ConfirmationModal/SwapSection.css.d.ts +17 -0
  17. package/dist/components/ConfirmationModal/SwapSection.d.ts +7 -0
  18. package/dist/components/ConfirmationModal/TransactionConfirmationModal.css.d.ts +49 -0
  19. package/dist/components/ConfirmationModal/TransactionConfirmationModal.d.ts +12 -0
  20. package/dist/components/ConfirmationModal/TransferSection.css.d.ts +17 -0
  21. package/dist/components/ConfirmationModal/TransferSection.d.ts +7 -0
  22. package/dist/components/ConfirmationModal/commonStyles.css.d.ts +37 -0
  23. package/dist/components/ConfirmationModal/constants.d.ts +16 -0
  24. package/dist/components/ConfirmationModal/index.d.ts +9 -0
  25. package/dist/components/ConfirmationModal/modalTheme.css.d.ts +20 -0
  26. package/dist/components/ConfirmationModal/transactionUIRegistry.d.ts +134 -0
  27. package/dist/components/ConfirmationModal/utils.d.ts +37 -0
  28. package/dist/components/ConnectOptions/AbcWaasAuth/AbcWaasAuthSections.css.d.ts +1 -0
  29. package/dist/components/ConnectOptions/AbcWaasAuth/AbcWaasAuthSections.d.ts +1 -1
  30. package/dist/components/ConnectOptions/AbcWaasAuth/hooks/useAbcWaasAuth.d.ts +2 -25
  31. package/dist/components/ConnectOptions/AbcWaasAuth/hooks/useAbcWaasSocial.d.ts +1 -47
  32. package/dist/components/ConnectOptions/PinAuth/hooks/useWalletGeneration.d.ts +4 -21
  33. package/dist/components/GasFeeModal/GasFeeEditModal.css.d.ts +32 -0
  34. package/dist/components/GasFeeModal/GasFeeEditModal.d.ts +21 -0
  35. package/dist/components/GasFeeModal/index.d.ts +3 -0
  36. package/dist/components/GasFeeModal/modalTheme.css.d.ts +19 -0
  37. package/dist/components/Icons/Close2.d.ts +7 -0
  38. package/dist/components/Icons/Copy2.d.ts +4 -0
  39. package/dist/components/Icons/Dropdown2.d.ts +4 -0
  40. package/dist/components/Icons/Edit.d.ts +4 -0
  41. package/dist/components/Icons/InfoCircle.d.ts +4 -0
  42. package/dist/components/Icons/Kakao.d.ts +2 -0
  43. package/dist/components/Icons/Minus.d.ts +4 -0
  44. package/dist/components/Icons/Plus.d.ts +4 -0
  45. package/dist/components/Icons/SettingsGear.d.ts +4 -0
  46. package/dist/components/Icons/SpeedHigh.d.ts +4 -0
  47. package/dist/components/Icons/SpeedLow.d.ts +4 -0
  48. package/dist/components/Icons/SpeedMedium.d.ts +4 -0
  49. package/dist/components/RainbowKitProvider/InternalPinProvider.d.ts +7 -9
  50. package/dist/components/RainbowKitProvider/RainbowKitProvider.d.ts +7 -1
  51. package/dist/components/Toast/Toast.css.d.ts +2 -0
  52. package/dist/components/Toast/Toast.d.ts +6 -0
  53. package/dist/components/Toast/index.d.ts +4 -0
  54. package/dist/components/Toast/useToast.d.ts +10 -0
  55. package/dist/config/networks.d.ts +10 -0
  56. package/dist/css/sprinkles.css.d.ts +1 -1
  57. package/dist/hooks/useSolanaWallet.d.ts +5 -23
  58. package/dist/hooks/useTronWallet.d.ts +63 -0
  59. package/dist/index.css +1903 -236
  60. package/dist/index.d.ts +8 -3
  61. package/dist/index.js +7970 -4015
  62. package/dist/klipWallet-RD5Y4UEK.js +8 -0
  63. package/dist/providers/SignConfirmationProvider/SignConfirmationProvider.d.ts +22 -0
  64. package/dist/providers/SignConfirmationProvider/index.d.ts +6 -0
  65. package/dist/providers/SignConfirmationProvider/requestParsers.d.ts +24 -0
  66. package/dist/providers/SignConfirmationProvider/types.d.ts +91 -0
  67. package/dist/providers/SignConfirmationProvider/useApiClient.d.ts +15 -0
  68. package/dist/providers/SignConfirmationProvider/useTransactionResolver.d.ts +18 -0
  69. package/dist/secure-AEBFSVWE.js +8 -0
  70. package/dist/services/AbcAgenticWalletService.d.ts +111 -0
  71. package/dist/services/AbcAuthService.d.ts +26 -20
  72. package/dist/types/index.d.ts +3 -0
  73. package/dist/types/token.d.ts +82 -0
  74. package/dist/utils/abi/abiDecoder.d.ts +144 -0
  75. package/dist/utils/apiClientFactory.d.ts +21 -0
  76. package/dist/utils/blockies.d.ts +12 -0
  77. package/dist/utils/tokenMapper.d.ts +10 -0
  78. package/dist/wallets/walletConnectors/abcWallet/abcApi.d.ts +4 -1
  79. package/dist/wallets/walletConnectors/abcWallet/abcApi.js +7 -7
  80. package/dist/wallets/walletConnectors/abcWallet/abcBitcoinConnector.js +5 -5
  81. package/dist/wallets/walletConnectors/abcWallet/abcBitcoinProvider.d.ts +6 -8
  82. package/dist/wallets/walletConnectors/abcWallet/abcBitcoinProvider.js +1 -1
  83. package/dist/wallets/walletConnectors/abcWallet/abcConnector.js +9 -9
  84. package/dist/wallets/walletConnectors/abcWallet/abcProvider.d.ts +17 -6
  85. package/dist/wallets/walletConnectors/abcWallet/abcProvider.js +5 -4
  86. package/dist/wallets/walletConnectors/abcWallet/abcSolanaProvider.d.ts +11 -34
  87. package/dist/wallets/walletConnectors/abcWallet/abcSolanaProvider.js +1 -1
  88. package/dist/wallets/walletConnectors/abcWallet/abcSolanaWalletAdapter.d.ts +3 -11
  89. package/dist/wallets/walletConnectors/abcWallet/abcSolanaWalletAdapter.js +17 -80
  90. package/dist/wallets/walletConnectors/abcWallet/abcTronProvider.d.ts +112 -0
  91. package/dist/wallets/walletConnectors/abcWallet/abcTronProvider.js +11 -0
  92. package/dist/wallets/walletConnectors/abcWallet/abcWallet.d.ts +2 -0
  93. package/dist/wallets/walletConnectors/abcWallet/abcWallet.js +11 -10
  94. package/dist/wallets/walletConnectors/abcWallet/api/AuthApi.d.ts +9 -11
  95. package/dist/wallets/walletConnectors/abcWallet/api/AuthApi.js +6 -6
  96. package/dist/wallets/walletConnectors/abcWallet/api/BaseApiClient.d.ts +1 -1
  97. package/dist/wallets/walletConnectors/abcWallet/api/BaseApiClient.js +5 -5
  98. package/dist/wallets/walletConnectors/abcWallet/api/BitcoinApi.js +6 -6
  99. package/dist/wallets/walletConnectors/abcWallet/api/GasApi.d.ts +45 -0
  100. package/dist/wallets/walletConnectors/abcWallet/api/GasApi.js +12 -0
  101. package/dist/wallets/walletConnectors/abcWallet/api/SigningApi.js +7 -7
  102. package/dist/wallets/walletConnectors/abcWallet/api/SolanaApi.d.ts +9 -1
  103. package/dist/wallets/walletConnectors/abcWallet/api/SolanaApi.js +7 -7
  104. package/dist/wallets/walletConnectors/abcWallet/api/TalkenApiClient.d.ts +333 -0
  105. package/dist/wallets/walletConnectors/abcWallet/api/TalkenApiClient.js +11 -0
  106. package/dist/wallets/walletConnectors/abcWallet/api/TalkenApiSingleton.d.ts +18 -0
  107. package/dist/wallets/walletConnectors/abcWallet/api/TalkenApiSingleton.js +14 -0
  108. package/dist/wallets/walletConnectors/abcWallet/api/TransactionApi.d.ts +2 -2
  109. package/dist/wallets/walletConnectors/abcWallet/api/TransactionApi.js +7 -7
  110. package/dist/wallets/walletConnectors/abcWallet/api/TronApi.d.ts +102 -0
  111. package/dist/wallets/walletConnectors/abcWallet/api/TronApi.js +12 -0
  112. package/dist/wallets/walletConnectors/abcWallet/api/WalletApi.d.ts +4 -2
  113. package/dist/wallets/walletConnectors/abcWallet/api/WalletApi.js +7 -7
  114. package/dist/wallets/walletConnectors/abcWallet/api/WalletscanApi.d.ts +60 -0
  115. package/dist/wallets/walletConnectors/abcWallet/api/WalletscanApi.js +12 -0
  116. package/dist/wallets/walletConnectors/abcWallet/api/index.d.ts +24 -0
  117. package/dist/wallets/walletConnectors/abcWallet/api/index.js +35 -17
  118. package/dist/wallets/walletConnectors/abcWallet/constants.d.ts +39 -1
  119. package/dist/wallets/walletConnectors/abcWallet/constants.js +5 -1
  120. package/dist/wallets/walletConnectors/abcWallet/googleAuth.d.ts +6 -0
  121. package/dist/wallets/walletConnectors/abcWallet/googleAuth.js +37 -1
  122. package/dist/wallets/walletConnectors/abcWallet/index.d.ts +5 -3
  123. package/dist/wallets/walletConnectors/abcWallet/index.js +44 -31
  124. package/dist/wallets/walletConnectors/abcWallet/kakaoAuth.d.ts +27 -0
  125. package/dist/wallets/walletConnectors/abcWallet/kakaoAuth.js +290 -0
  126. package/dist/wallets/walletConnectors/abcWallet/networkConfig.d.ts +39 -3
  127. package/dist/wallets/walletConnectors/abcWallet/networkConfig.js +11 -3
  128. package/dist/wallets/walletConnectors/abcWallet/secure.js +2 -2
  129. package/dist/wallets/walletConnectors/abcWallet/sessionUtils.js +1 -1
  130. package/dist/wallets/walletConnectors/abcWallet/types.d.ts +369 -7
  131. package/dist/wallets/walletConnectors/abcWallet/types.js +5 -3
  132. package/dist/wallets/walletConnectors/abcWallet/utils.js +3 -3
  133. package/dist/wallets/walletConnectors/abcWallet/walletGeneration.d.ts +10 -19
  134. package/dist/wallets/walletConnectors/abcWallet/walletGeneration.js +2 -2
  135. package/dist/wallets/walletConnectors/berasigWallet/berasigWallet.js +2 -2
  136. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  137. package/dist/wallets/walletConnectors/binanceWallet/binanceWallet.js +2 -2
  138. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  139. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
  140. package/dist/wallets/walletConnectors/chunk-25V3FW3O.js +282 -0
  141. package/dist/wallets/walletConnectors/chunk-27346T3J.js +134 -0
  142. package/dist/wallets/walletConnectors/chunk-5CNLMOB2.js +75 -0
  143. package/dist/wallets/walletConnectors/chunk-5K45TCAM.js +333 -0
  144. package/dist/wallets/walletConnectors/chunk-5VDSMZC4.js +286 -0
  145. package/dist/wallets/walletConnectors/chunk-5W7RBMPH.js +351 -0
  146. package/dist/wallets/walletConnectors/chunk-5XORKEWE.js +326 -0
  147. package/dist/wallets/walletConnectors/chunk-63WBO52A.js +77 -0
  148. package/dist/wallets/walletConnectors/chunk-7IRF225N.js +75 -0
  149. package/dist/wallets/walletConnectors/chunk-7QHCSJDN.js +726 -0
  150. package/dist/wallets/walletConnectors/chunk-A27H6PEU.js +739 -0
  151. package/dist/wallets/walletConnectors/chunk-A4WR3CFN.js +130 -0
  152. package/dist/wallets/walletConnectors/chunk-A6FUNQWF.js +572 -0
  153. package/dist/wallets/walletConnectors/chunk-AF4OCS7N.js +46 -0
  154. package/dist/wallets/walletConnectors/chunk-AFWBXEEC.js +66 -0
  155. package/dist/wallets/walletConnectors/chunk-AUGP2LJR.js +182 -0
  156. package/dist/wallets/walletConnectors/chunk-AWLDVQXC.js +317 -0
  157. package/dist/wallets/walletConnectors/chunk-BLEKTKBN.js +479 -0
  158. package/dist/wallets/walletConnectors/chunk-BVL6G5HI.js +1757 -0
  159. package/dist/wallets/walletConnectors/chunk-CMTGEHDI.js +485 -0
  160. package/dist/wallets/walletConnectors/chunk-D5EFTEOM.js +56 -0
  161. package/dist/wallets/walletConnectors/chunk-DM5NLSWD.js +346 -0
  162. package/dist/wallets/walletConnectors/chunk-EBGI4D2T.js +69 -0
  163. package/dist/wallets/walletConnectors/chunk-EEH2HMFG.js +47 -0
  164. package/dist/wallets/walletConnectors/chunk-F5JWDBKK.js +47 -0
  165. package/dist/wallets/walletConnectors/chunk-FN67MIIH.js +75 -0
  166. package/dist/wallets/walletConnectors/chunk-FWYVBX5F.js +75 -0
  167. package/dist/wallets/walletConnectors/chunk-GH6ZDY4K.js +58 -0
  168. package/dist/wallets/walletConnectors/chunk-GIJZMIBD.js +63 -0
  169. package/dist/wallets/walletConnectors/chunk-GO6OLTNF.js +479 -0
  170. package/dist/wallets/walletConnectors/chunk-HKXBK3NY.js +75 -0
  171. package/dist/wallets/walletConnectors/chunk-HMD2WWFQ.js +75 -0
  172. package/dist/wallets/walletConnectors/chunk-HO5Z2CTL.js +280 -0
  173. package/dist/wallets/walletConnectors/chunk-I3GFVK5O.js +151 -0
  174. package/dist/wallets/walletConnectors/chunk-IUHZ5ZCE.js +121 -0
  175. package/dist/wallets/walletConnectors/chunk-JODNZWWG.js +330 -0
  176. package/dist/wallets/walletConnectors/chunk-JTST3KMW.js +75 -0
  177. package/dist/wallets/walletConnectors/chunk-KH2L3ONV.js +1599 -0
  178. package/dist/wallets/walletConnectors/chunk-LHV22375.js +182 -0
  179. package/dist/wallets/walletConnectors/chunk-LZZE462U.js +315 -0
  180. package/dist/wallets/walletConnectors/chunk-MGCRUAHX.js +276 -0
  181. package/dist/wallets/walletConnectors/chunk-MURSKRMJ.js +63 -0
  182. package/dist/wallets/walletConnectors/chunk-NG7PSAPX.js +115 -0
  183. package/dist/wallets/walletConnectors/chunk-NHP6D6AH.js +204 -0
  184. package/dist/wallets/walletConnectors/chunk-O4AU63LK.js +181 -0
  185. package/dist/wallets/walletConnectors/chunk-OBS74J5N.js +221 -0
  186. package/dist/wallets/walletConnectors/chunk-ON4U54WO.js +115 -0
  187. package/dist/wallets/walletConnectors/chunk-PPYBE5TV.js +276 -0
  188. package/dist/wallets/walletConnectors/chunk-PWWSAM4G.js +309 -0
  189. package/dist/wallets/walletConnectors/chunk-QB5GDLRU.js +330 -0
  190. package/dist/wallets/walletConnectors/chunk-QMLG7MAP.js +107 -0
  191. package/dist/wallets/walletConnectors/chunk-RGIB7FFH.js +47 -0
  192. package/dist/wallets/walletConnectors/chunk-SHJBMDP4.js +278 -0
  193. package/dist/wallets/walletConnectors/chunk-SOBJYYIX.js +484 -0
  194. package/dist/wallets/walletConnectors/chunk-T66U3ADD.js +58 -0
  195. package/dist/wallets/walletConnectors/chunk-THCKLFSJ.js +75 -0
  196. package/dist/wallets/walletConnectors/chunk-TS466TDR.js +286 -0
  197. package/dist/wallets/walletConnectors/chunk-UJGFYQEV.js +459 -0
  198. package/dist/wallets/walletConnectors/chunk-UXNEBBUV.js +224 -0
  199. package/dist/wallets/walletConnectors/chunk-VRCNFVPM.js +276 -0
  200. package/dist/wallets/walletConnectors/chunk-WODNUC65.js +333 -0
  201. package/dist/wallets/walletConnectors/chunk-X6A2FSHK.js +484 -0
  202. package/dist/wallets/walletConnectors/chunk-XVRNEES5.js +1541 -0
  203. package/dist/wallets/walletConnectors/chunk-XWVM2Y5A.js +306 -0
  204. package/dist/wallets/walletConnectors/chunk-XXG7ABSJ.js +328 -0
  205. package/dist/wallets/walletConnectors/chunk-YJH4BHSB.js +254 -0
  206. package/dist/wallets/walletConnectors/chunk-YRDNIP2H.js +90 -0
  207. package/dist/wallets/walletConnectors/chunk-YTPAWPCA.js +156 -0
  208. package/dist/wallets/walletConnectors/chunk-ZCSHD7UG.js +562 -0
  209. package/dist/wallets/walletConnectors/chunk-ZZCZ3RJU.js +272 -0
  210. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  211. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  212. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  213. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  214. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  215. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  216. package/dist/wallets/walletConnectors/index.js +57 -56
  217. package/dist/wallets/walletConnectors/iopayWallet/iopayWallet.js +2 -2
  218. package/dist/wallets/walletConnectors/kaiaWallet/kaiaWallet.js +2 -2
  219. package/dist/wallets/walletConnectors/kaikasWallet/kaikasWallet.js +2 -2
  220. package/dist/wallets/walletConnectors/klipWallet/klipWallet.d.ts +3 -0
  221. package/dist/wallets/walletConnectors/klipWallet/klipWallet.js +8 -0
  222. package/dist/wallets/walletConnectors/klipWallet-PPTYYB5G.js +7 -0
  223. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  224. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  225. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  226. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
  227. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  228. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  229. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  230. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  231. package/dist/wallets/walletConnectors/zealWallet/zealWallet.js +2 -2
  232. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  233. package/package.json +2 -1
@@ -0,0 +1,331 @@
1
+ "use client";
2
+
3
+ // src/wallets/walletConnectors/abcWallet/secure.ts
4
+ import CryptoJS from "crypto-js";
5
+ import elliptic from "elliptic";
6
+
7
+ // src/wallets/walletConnectors/abcWallet/constants.ts
8
+ var DEFAULT_ABC_CONFIG = {
9
+ environment: "development",
10
+ waasUrl: process.env.VITE_ABC_WAAS_URL || "https://api.abcwallet.com"
11
+ };
12
+ var TOKEN_EXPIRY = {
13
+ ACCESS_TOKEN: 10 * 60 * 1e3,
14
+ // 10 minutes
15
+ REFRESH_TOKEN: 60 * 60 * 1e3,
16
+ // 60 minutes
17
+ REFRESH_BUFFER: 60 * 1e3
18
+ // Refresh 60s before expiry (increased for network latency tolerance)
19
+ };
20
+ var ABC_ENDPOINTS = {
21
+ // Authentication
22
+ SNS_LOGIN: "/abc/snsLogin",
23
+ // Legacy - may need to update
24
+ REGISTER_SNS_USER: "/abc/registerSnsUser",
25
+ // Legacy - may need to update
26
+ // Secure channel
27
+ SECURE_CHANNEL_CREATE: "/secure/channel/create",
28
+ // Email OTP
29
+ SEND_OTP: "/member/mail-service/{email}/sendcode",
30
+ // {email} placeholder
31
+ VERIFY_OTP: "/member/mail-service/{email}/verifycode",
32
+ // {email} placeholder
33
+ // Wallet operations (EVM)
34
+ // Based on tg-wallet-frontend reference
35
+ MPC_WALLETS: "/wapi/v2/mpc/wallets",
36
+ // EVM wallet generation/recovery
37
+ MPC_WALLETS_INFO: "/wapi/v2/mpc/wallets/info",
38
+ // Get wallet info
39
+ // Signing operations
40
+ // Based on tg-wallet-frontend reference implementation
41
+ SIGN_HASH: "/wapi/v2/sign/hash",
42
+ // Personal sign with hash (EIP-191)
43
+ SIGN_TYPED: "/wapi/v2/sign/typed-data",
44
+ // Typed data sign (EIP-712)
45
+ SIGN_TRANSACTION: "/wapi/v2/sign",
46
+ // EVM transaction sign (LEGACY, EIP1559, PERSONAL)
47
+ // Transaction operations
48
+ SEND_RAW_TX: "/wapi/v2/transactions/raw-tx/send",
49
+ // Send signed transaction
50
+ TRANSACTION_COUNT: "/wapi/v2/transactions/count",
51
+ // Get transaction count (nonce)
52
+ // Gas estimation and fee data
53
+ GAS_SUGGESTED_FEES: "/wapi/v2/gas/suggestedGasFees",
54
+ // Get suggested gas fees for EIP-1559
55
+ GAS_ESTIMATE_EIP1559: "/wapi/v2/gas/estimate/eip1559",
56
+ // Estimate gas limit for EIP-1559
57
+ // Token info (Walletscan)
58
+ WALLETSCAN_TOKEN: "/wapi/v2/walletscan/token",
59
+ // GET /{contractAddress}?networks=xxx
60
+ WALLETSCAN_NATIVES: "/wapi/v2/walletscan/natives",
61
+ // GET ?walletAddress=xxx&networks=xxx
62
+ WALLETSCAN_NFTS: "/wapi/v2/walletscan/nfts",
63
+ // GET /{contractAddress}?walletAddress=xxx&networks=xxx
64
+ // Token refresh (based on tg-wallet-frontend reference)
65
+ REFRESH_TOKEN: "/abc/abcRefresh",
66
+ // Token refresh endpoint
67
+ // Legacy endpoints (kept for compatibility)
68
+ WALLETS_V3: "/abc/wallets/v3",
69
+ // Solana only
70
+ INFO: "/abc/info"
71
+ };
72
+ var AUTH_PROVIDERS = {
73
+ EMAIL: "email",
74
+ GOOGLE: "google",
75
+ APPLE: "apple",
76
+ TELEGRAM: "telegram",
77
+ TWITTER: "twitter"
78
+ };
79
+ var CHAIN_TYPES = {
80
+ EVM: "evm",
81
+ SOLANA: "solana",
82
+ BITCOIN: "bitcoin"
83
+ };
84
+ var SOLANA_CHAIN_ID = 900;
85
+ var BITCOIN_CHAIN_ID = 800;
86
+ var EVM_CHAINS = {
87
+ ETHEREUM_MAINNET: 1,
88
+ ETHEREUM_GOERLI: 5,
89
+ ETHEREUM_SEPOLIA: 11155111,
90
+ POLYGON_MAINNET: 137,
91
+ POLYGON_MUMBAI: 80001,
92
+ BSC_MAINNET: 56,
93
+ BSC_TESTNET: 97,
94
+ ARBITRUM_MAINNET: 42161,
95
+ ARBITRUM_GOERLI: 421613,
96
+ OPTIMISM_MAINNET: 10,
97
+ OPTIMISM_GOERLI: 420,
98
+ AVALANCHE_MAINNET: 43114,
99
+ AVALANCHE_FUJI: 43113,
100
+ KLAYTN_MAINNET: 8217,
101
+ KLAYTN_BAOBAB: 1001
102
+ };
103
+ var ABC_AUDIENCE = "https://mw.myabcwallet.com";
104
+ var PIN_CONFIG = {
105
+ MIN_LENGTH: 6,
106
+ MAX_LENGTH: 6,
107
+ MAX_ATTEMPTS: 5,
108
+ LOCKOUT_DURATION: 15 * 60 * 1e3
109
+ // 15 minutes
110
+ };
111
+ var STORAGE_VERSION = "1.0.0";
112
+ var REQUEST_TIMEOUT = 3e4;
113
+ var RETRY_CONFIG = {
114
+ MAX_RETRIES: 3,
115
+ RETRY_DELAY: 1e3,
116
+ // 1 second
117
+ BACKOFF_MULTIPLIER: 2
118
+ };
119
+ var ABC_WALLET_METADATA = {
120
+ id: "abc",
121
+ name: "ABC Wallet",
122
+ iconBackground: "#ffffff",
123
+ rdns: "com.abcwallet"
124
+ };
125
+ var MODAL_CONFIG = {
126
+ WIDTH: 400,
127
+ MAX_WIDTH: "90vw",
128
+ BORDER_RADIUS: 16,
129
+ PADDING: 24
130
+ };
131
+ var SOCIAL_BUTTONS = [
132
+ {
133
+ provider: AUTH_PROVIDERS.GOOGLE,
134
+ label: "Google",
135
+ iconName: "google"
136
+ },
137
+ {
138
+ provider: AUTH_PROVIDERS.APPLE,
139
+ label: "Apple",
140
+ iconName: "apple"
141
+ },
142
+ {
143
+ provider: AUTH_PROVIDERS.TELEGRAM,
144
+ label: "Telegram",
145
+ iconName: "telegram"
146
+ },
147
+ {
148
+ provider: AUTH_PROVIDERS.TWITTER,
149
+ label: "X (Twitter)",
150
+ iconName: "twitter"
151
+ }
152
+ ];
153
+ var ERROR_MESSAGES = {
154
+ INVALID_CREDENTIALS: "Invalid email or password",
155
+ TOKEN_EXPIRED: "Your session has expired. Please login again.",
156
+ WALLET_NOT_FOUND: "Wallet not found. Please create a new wallet.",
157
+ INVALID_PIN: "Invalid PIN code",
158
+ NETWORK_ERROR: "Network error. Please check your connection.",
159
+ SIGNATURE_FAILED: "Failed to sign transaction",
160
+ USER_CANCELLED: "User cancelled the operation",
161
+ UNKNOWN_ERROR: "An unknown error occurred",
162
+ INVALID_OTP: "Invalid or expired OTP code",
163
+ EMAIL_REQUIRED: "Email address is required",
164
+ PIN_REQUIRED: "PIN code is required",
165
+ WALLET_GENERATION_FAILED: "Failed to generate wallet"
166
+ };
167
+ var SUCCESS_MESSAGES = {
168
+ LOGIN_SUCCESS: "Successfully logged in",
169
+ WALLET_CREATED: "Wallet created successfully",
170
+ TRANSACTION_SENT: "Transaction sent successfully",
171
+ OTP_SENT: "OTP code sent to your email"
172
+ };
173
+ var ABC_EVENTS = {
174
+ CONNECT: "abc:connect",
175
+ DISCONNECT: "abc:disconnect",
176
+ ACCOUNTS_CHANGED: "abc:accountsChanged",
177
+ CHAIN_CHANGED: "abc:chainChanged",
178
+ ERROR: "abc:error",
179
+ AUTH_STATE_CHANGED: "abc:authStateChanged"
180
+ };
181
+ var STORAGE_PREFIX = "talkenkit_abc_";
182
+ var DEBUG_MODE = true;
183
+ var DEFAULT_HEADERS = {
184
+ "Content-Type": "application/x-www-form-urlencoded",
185
+ Accept: "application/json"
186
+ };
187
+ var ABC_FEATURES = {
188
+ EMAIL_LOGIN: true,
189
+ SOCIAL_LOGIN: true,
190
+ MULTI_CHAIN: true,
191
+ EVM_SUPPORT: true,
192
+ SOLANA_SUPPORT: true,
193
+ BITCOIN_SUPPORT: false,
194
+ // Future feature
195
+ GASLESS_TRANSACTIONS: false,
196
+ // Future feature
197
+ SOCIAL_RECOVERY: false
198
+ // Future feature
199
+ };
200
+
201
+ // src/wallets/walletConnectors/abcWallet/secure.ts
202
+ var EC = elliptic.ec;
203
+ var SecureService = class {
204
+ constructor(baseURL) {
205
+ this.secureChannel = null;
206
+ this.channelExpiry = 0;
207
+ this.baseURL = baseURL;
208
+ }
209
+ async getSecureChannel() {
210
+ if (this.secureChannel && Date.now() < this.channelExpiry) {
211
+ return this.secureChannel;
212
+ }
213
+ const result = {};
214
+ const plain = Array.from(crypto.getRandomValues(new Uint8Array(32))).map((b) => b.toString(16).padStart(2, "0")).join("");
215
+ const ec = new EC("p256");
216
+ const myKey = ec.genKeyPair();
217
+ const pubkey = myKey.getPublic().encode("hex", false);
218
+ const url = `${this.baseURL}${ABC_ENDPOINTS.SECURE_CHANNEL_CREATE}`;
219
+ const bodyString = new URLSearchParams({ pubkey, plain }).toString();
220
+ const response = await fetch(url, {
221
+ method: "POST",
222
+ headers: {
223
+ "Content-Type": "application/x-www-form-urlencoded"
224
+ },
225
+ body: bodyString
226
+ });
227
+ if (!response.ok) {
228
+ const errorText = await response.text();
229
+ console.error(
230
+ `\u274C Secure channel HTTP error: ${response.status} ${response.statusText}`
231
+ );
232
+ console.error("Response body:", errorText);
233
+ throw new Error(
234
+ `Failed to create secure channel: HTTP ${response.status} - ${errorText}`
235
+ );
236
+ }
237
+ const res = await response.json();
238
+ const resData = res;
239
+ if (resData.channelid && resData.publickey) {
240
+ const serverKey = ec.keyFromPublic(resData.publickey, "hex");
241
+ const sharedSecret = serverKey.getPublic().mul(myKey.getPrivate()).getX();
242
+ const secretKey = sharedSecret.toString(16).padStart(64, "0");
243
+ result.response = resData;
244
+ result.myKey = myKey;
245
+ result.secretKey = secretKey;
246
+ this.secureChannel = result;
247
+ this.channelExpiry = Date.now() + 20 * 60 * 1e3;
248
+ } else if (res.status === "success" && res.result) {
249
+ const result_data = res.result;
250
+ const serverKey = ec.keyFromPublic(result_data.publickey, "hex");
251
+ const sharedSecret = serverKey.getPublic().mul(myKey.getPrivate()).getX();
252
+ const secretKey = sharedSecret.toString(16).padStart(64, "0");
253
+ result.response = result_data;
254
+ result.myKey = myKey;
255
+ result.secretKey = secretKey;
256
+ this.secureChannel = result;
257
+ this.channelExpiry = Date.now() + 20 * 60 * 1e3;
258
+ console.log("\u2705 Secure channel created successfully (wrapped format)");
259
+ } else {
260
+ const errorMsg = res.message || res.detail || "Unknown error";
261
+ console.error("\u274C Failed to create secure channel:", res);
262
+ throw new Error(`Failed to create secure channel: ${errorMsg}`);
263
+ }
264
+ return result;
265
+ }
266
+ async encrypt(plain) {
267
+ const secureChannel = await this.getSecureChannel();
268
+ if (!secureChannel.secretKey || !secureChannel.response) {
269
+ throw new Error("Secure channel not established");
270
+ }
271
+ const secretKey = secureChannel.secretKey;
272
+ const key = secretKey.substring(0, 32);
273
+ const iv = secretKey.substring(32);
274
+ const encrypted = CryptoJS.AES.encrypt(plain, CryptoJS.enc.Hex.parse(key), {
275
+ iv: CryptoJS.enc.Hex.parse(iv),
276
+ padding: CryptoJS.pad.Pkcs7,
277
+ mode: CryptoJS.mode.CBC
278
+ });
279
+ return {
280
+ encryptPlain: encrypted.toString(),
281
+ secureChannel: secureChannel.response.channelid
282
+ };
283
+ }
284
+ async getSecureChannelId() {
285
+ const channel = await this.getSecureChannel();
286
+ if (!channel.response?.channelid) {
287
+ throw new Error("Secure channel not established");
288
+ }
289
+ return channel.response.channelid;
290
+ }
291
+ async getEncryptPlain(plain) {
292
+ const result = await this.encrypt(plain);
293
+ return result.encryptPlain;
294
+ }
295
+ /**
296
+ * Clear cached secure channel (for testing or reset)
297
+ */
298
+ clearCache() {
299
+ this.secureChannel = null;
300
+ this.channelExpiry = 0;
301
+ console.log("\u{1F504} Secure channel cache cleared");
302
+ }
303
+ };
304
+ var secure_default = SecureService;
305
+
306
+ export {
307
+ DEFAULT_ABC_CONFIG,
308
+ TOKEN_EXPIRY,
309
+ ABC_ENDPOINTS,
310
+ AUTH_PROVIDERS,
311
+ CHAIN_TYPES,
312
+ SOLANA_CHAIN_ID,
313
+ BITCOIN_CHAIN_ID,
314
+ EVM_CHAINS,
315
+ ABC_AUDIENCE,
316
+ PIN_CONFIG,
317
+ STORAGE_VERSION,
318
+ REQUEST_TIMEOUT,
319
+ RETRY_CONFIG,
320
+ ABC_WALLET_METADATA,
321
+ MODAL_CONFIG,
322
+ SOCIAL_BUTTONS,
323
+ ERROR_MESSAGES,
324
+ SUCCESS_MESSAGES,
325
+ ABC_EVENTS,
326
+ STORAGE_PREFIX,
327
+ DEBUG_MODE,
328
+ DEFAULT_HEADERS,
329
+ ABC_FEATURES,
330
+ secure_default
331
+ };
@@ -0,0 +1,16 @@
1
+ export declare const approveSection: string;
2
+ export { tokenIconLg as tokenIcon, tokenSymbolLg as tokenSymbol, infoIconWrapper, infoIcon, tooltip, tooltipArrow, tooltipText, } from './commonStyles.css';
3
+ export declare const tokenRow: string;
4
+ export declare const spendingCapSection: string;
5
+ export declare const spendingCapHeader: string;
6
+ export declare const labelWithInfo: string;
7
+ export declare const sectionLabel: string;
8
+ export declare const inputWithMax: string;
9
+ export declare const spendingCapInput: string;
10
+ export declare const maxButton: string;
11
+ export declare const suggestionLink: string;
12
+ export declare const spenderSection: string;
13
+ export declare const spenderRow: string;
14
+ export declare const spenderBlockie: string;
15
+ export declare const spenderAddress: string;
16
+ export declare const copyButton: string;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import type { ApproveInfo } from '../../providers/SignConfirmationProvider';
3
+ export interface ApproveSectionProps {
4
+ approveInfo: ApproveInfo;
5
+ onAmountChange?: (newAmount: string) => void;
6
+ }
7
+ export declare function ApproveSection({ approveInfo, onAmountChange, }: ApproveSectionProps): React.JSX.Element;
8
+ export default ApproveSection;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * NFT Placeholder styles
3
+ * Theme-aware placeholder icon for NFT display when image is unavailable
4
+ */
5
+ export declare const wrapper: string;
6
+ export declare const darkIcon: string;
7
+ export declare const lightIcon: string;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ /**
3
+ * Theme-aware NFT placeholder icon
4
+ * Shows different icons based on light/dark mode preference
5
+ * Used when NFT image is unavailable or fails to load
6
+ */
7
+ export declare function NFTPlaceholder(): React.JSX.Element;
8
+ export default NFTPlaceholder;
@@ -0,0 +1,10 @@
1
+ export { nftSection, nftImageWrapper, nftImage, nftImagePlaceholder, nftPlaceholderDark, nftPlaceholderLight, nftInfo, nftName, nftTokenId, } from './commonStyles.css';
2
+ export declare const nftApprovalSection: string;
3
+ export declare const infoSection: string;
4
+ export declare const sectionHeader: string;
5
+ export declare const sectionLabel: string;
6
+ export { infoIconWrapper, infoIcon, tooltip, tooltipArrow, tooltipText, blockiesAvatar as addressBlockie, addressText, } from './commonStyles.css';
7
+ export declare const infoRow: string;
8
+ export declare const rowLabelWithInfo: string;
9
+ export declare const rowLabel: string;
10
+ export declare const addressDisplay: string;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import type { NftApprovalInfo } from '../../providers/SignConfirmationProvider';
3
+ export interface NftApprovalSectionProps {
4
+ nftApprovalInfo: NftApprovalInfo;
5
+ }
6
+ export declare function NftApprovalSection({ nftApprovalInfo, }: NftApprovalSectionProps): React.JSX.Element;
7
+ export default NftApprovalSection;
@@ -0,0 +1,35 @@
1
+ export declare const overlay: string;
2
+ export declare const modal: string;
3
+ export declare const header: string;
4
+ export declare const title: string;
5
+ export { infoIconWrapper, tooltip, tooltipArrow, tooltipText, } from './commonStyles.css';
6
+ export declare const infoIcon: string;
7
+ export declare const sectionBox: string;
8
+ export declare const sectionHeader: string;
9
+ export declare const sectionLabelRow: string;
10
+ export declare const sectionLabel: string;
11
+ export declare const sectionLabelIcon: string;
12
+ export declare const originRow: string;
13
+ export declare const originIcon: string;
14
+ export declare const originText: string;
15
+ export declare const messageSection: string;
16
+ export declare const messageSectionHeader: string;
17
+ export declare const messageLabelRow: string;
18
+ export declare const messageLabel: string;
19
+ export declare const messageActions: string;
20
+ export declare const iconButton: string;
21
+ export declare const chevron: string;
22
+ export declare const chevronExpanded: string;
23
+ export declare const chevronCollapsed: string;
24
+ export declare const messageContent: string;
25
+ export declare const messageContentExpanded: string;
26
+ export declare const messageContentCollapsed: string;
27
+ export declare const messageBox: string;
28
+ export declare const actions: string;
29
+ export declare const cancelButton: string;
30
+ export declare const confirmButton: string;
31
+ export declare const subtitle: string;
32
+ export declare const label: string;
33
+ export declare const infoGrid: string;
34
+ export declare const infoItem: string;
35
+ export declare const infoValue: string;
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ export interface SignConfirmationModalProps {
3
+ isOpen: boolean;
4
+ onClose: () => void;
5
+ onConfirm: () => void;
6
+ message: string;
7
+ walletAddress: string;
8
+ chainId: number;
9
+ chainName: string;
10
+ /** Domain that initiated the request. Falls back to current page hostname if not provided */
11
+ requestOrigin?: string;
12
+ /** Favicon URL for the origin. Falls back to current page favicon if not provided */
13
+ requestOriginIcon?: string;
14
+ /** Whether message section is expanded by default */
15
+ defaultExpanded?: boolean;
16
+ }
17
+ export declare function SignConfirmationModal({ isOpen, onClose, onConfirm, message, walletAddress: _walletAddress, chainId: _chainId, chainName: _chainName, requestOrigin, requestOriginIcon, defaultExpanded, }: SignConfirmationModalProps): React.JSX.Element | null;
@@ -0,0 +1,17 @@
1
+ export declare const swapSection: string;
2
+ export declare const estimatedChangesHeader: string;
3
+ export declare const headerLabel: string;
4
+ export { infoIconWrapper, infoIcon, tooltip, tooltipArrow, tooltipText, } from './commonStyles.css';
5
+ export declare const changesCard: string;
6
+ export declare const swapRow: string;
7
+ export declare const swapRowContent: string;
8
+ export declare const rowLabel: string;
9
+ export declare const tokenAmount: string;
10
+ export declare const amountText: string;
11
+ export declare const amountNegative: string;
12
+ export declare const amountPositive: string;
13
+ export { tokenIconSm as tokenIcon, tokenSymbolMd as tokenSymbol, } from './commonStyles.css';
14
+ export declare const usdValue: string;
15
+ export declare const amountSummary: string;
16
+ export declare const summaryLabel: string;
17
+ export declare const summaryValue: string;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import type { SwapInfo } from '../../providers/SignConfirmationProvider';
3
+ export interface SwapSectionProps {
4
+ swapInfo: SwapInfo;
5
+ }
6
+ export declare function SwapSection({ swapInfo }: SwapSectionProps): React.JSX.Element;
7
+ export default SwapSection;
@@ -0,0 +1,49 @@
1
+ export declare const overlay: string;
2
+ export declare const modal: string;
3
+ export declare const header: string;
4
+ export declare const title: string;
5
+ export { infoIconWrapper, tooltip, tooltipArrow, tooltipText, addressWithIcon, blockiesAvatar, addressText, } from './commonStyles.css';
6
+ export declare const infoIcon: string;
7
+ export declare const combinedSectionBox: string;
8
+ export declare const combinedSectionRow: string;
9
+ export declare const sectionDivider: string;
10
+ export declare const sectionHeader: string;
11
+ export declare const sectionLabelRow: string;
12
+ export declare const sectionLabel: string;
13
+ export declare const sectionLabelIcon: string;
14
+ export declare const networkRow: string;
15
+ export declare const networkValue: string;
16
+ export declare const chainIcon: string;
17
+ export declare const originRow: string;
18
+ export declare const originIcon: string;
19
+ export declare const originText: string;
20
+ export declare const networkFeeSection: string;
21
+ export declare const networkFeeHeader: string;
22
+ export declare const feeRow: string;
23
+ export declare const feeLabel: string;
24
+ export declare const feeValue: string;
25
+ export declare const feeValueHighlight: string;
26
+ export declare const feeUsd: string;
27
+ export declare const feeRowWithSub: string;
28
+ export declare const feeValueColumn: string;
29
+ export declare const feeValueRow: string;
30
+ export { tokenIconSm as feeTokenIcon, tokenSymbolSm as feeTokenSymbol, } from './commonStyles.css';
31
+ export declare const editIconButton: string;
32
+ export declare const dataSection: string;
33
+ export declare const dataSectionHeader: string;
34
+ export declare const dataLabelRow: string;
35
+ export declare const dataLabel: string;
36
+ export declare const dataActions: string;
37
+ export declare const iconButton: string;
38
+ export declare const chevron: string;
39
+ export declare const chevronExpanded: string;
40
+ export declare const chevronCollapsed: string;
41
+ export declare const dataContent: string;
42
+ export declare const dataContentExpanded: string;
43
+ export declare const dataContentCollapsed: string;
44
+ export declare const dataBox: string;
45
+ export declare const functionName: string;
46
+ export declare const dataHex: string;
47
+ export declare const actions: string;
48
+ export declare const cancelButton: string;
49
+ export declare const confirmButton: string;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import type { ResolvedTransactionRequest } from '../../providers/SignConfirmationProvider';
3
+ export interface TransactionConfirmationModalProps {
4
+ isOpen: boolean;
5
+ onClose: () => void;
6
+ onConfirm: (resolved?: ResolvedTransactionRequest) => void;
7
+ transaction: ResolvedTransactionRequest;
8
+ requestOrigin?: string;
9
+ requestOriginIcon?: string;
10
+ defaultDataExpanded?: boolean;
11
+ }
12
+ export declare function TransactionConfirmationModal({ isOpen, onClose, onConfirm, transaction, requestOrigin, requestOriginIcon, defaultDataExpanded, }: TransactionConfirmationModalProps): React.JSX.Element | null;
@@ -0,0 +1,17 @@
1
+ export { tokenIconWrapperLg as tokenIconWrapper, tokenIconLg as tokenIcon, tokenIconPlaceholderLg as tokenIconPlaceholder, tokenSymbolLg as tokenSymbol, nftImageWrapper, nftImage, nftImagePlaceholder, nftPlaceholderDark, nftPlaceholderLight, nftInfo, nftName, nftTokenId, addressWithIcon, blockiesAvatar, addressText, } from './commonStyles.css';
2
+ export declare const transferSection: string;
3
+ export declare const nftSection: string;
4
+ export declare const tokenDisplaySection: string;
5
+ export declare const tokenTextGroup: string;
6
+ export declare const tokenAmountRow: string;
7
+ export declare const tokenAmount: string;
8
+ export declare const tokenUsdValue: string;
9
+ export declare const fromToSection: string;
10
+ export declare const fromToRow: string;
11
+ export declare const addressColumn: string;
12
+ export declare const addressColumnEnd: string;
13
+ export declare const fromToLabel: string;
14
+ export declare const blockiesAvatarPlaceholder: string;
15
+ export declare const arrowIcon: string;
16
+ export declare const nativeTransferBadge: string;
17
+ export declare const badgeIcon: string;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import type { TransferInfo } from '../../providers/SignConfirmationProvider';
3
+ export interface TransferSectionProps {
4
+ transferInfo: TransferInfo;
5
+ }
6
+ export declare function TransferSection({ transferInfo }: TransferSectionProps): React.JSX.Element;
7
+ export default TransferSection;
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Common token icon/symbol styles for ConfirmationModal components
3
+ *
4
+ * Sizes:
5
+ * - Large (Lg): 40px icon, 20px symbol - Main token display area
6
+ * - Medium (Md): 20px icon, 16px symbol - Secondary displays
7
+ * - Small (Sm): 16px icon, 16px symbol - Gas fee area
8
+ */
9
+ export declare const tokenIconLg: string;
10
+ export declare const tokenIconMd: string;
11
+ export declare const tokenIconSm: string;
12
+ export declare const tokenIconWrapperLg: string;
13
+ export declare const tokenIconWrapperMd: string;
14
+ export declare const tokenIconWrapperSm: string;
15
+ export declare const tokenIconPlaceholderLg: string;
16
+ export declare const tokenIconPlaceholderMd: string;
17
+ export declare const tokenIconPlaceholderSm: string;
18
+ export declare const tokenSymbolLg: string;
19
+ export declare const tokenSymbolMd: string;
20
+ export declare const tokenSymbolSm: string;
21
+ export declare const infoIconWrapper: string;
22
+ export declare const infoIcon: string;
23
+ export declare const tooltip: string;
24
+ export declare const tooltipArrow: string;
25
+ export declare const tooltipText: string;
26
+ export declare const nftSection: string;
27
+ export declare const nftImageWrapper: string;
28
+ export declare const nftImage: string;
29
+ export declare const nftImagePlaceholder: string;
30
+ export declare const nftPlaceholderDark: string;
31
+ export declare const nftPlaceholderLight: string;
32
+ export declare const nftInfo: string;
33
+ export declare const nftName: string;
34
+ export declare const nftTokenId: string;
35
+ export declare const addressWithIcon: string;
36
+ export declare const blockiesAvatar: string;
37
+ export declare const addressText: string;
@@ -0,0 +1,16 @@
1
+ /**
2
+ * ConfirmationModal shared constants
3
+ */
4
+ /**
5
+ * Generate a token placeholder icon as a data URI SVG.
6
+ * Shows the token symbol (up to 3 characters) in a gray circle.
7
+ */
8
+ export declare function getTokenPlaceholderIcon(symbol?: string): string;
9
+ /**
10
+ * Default token icon placeholder (generic "?" fallback)
11
+ */
12
+ export declare const DEFAULT_TOKEN_ICON: string;
13
+ /**
14
+ * Maximum value for uint256 - represents unlimited ERC20 approval
15
+ */
16
+ export declare const MAX_UINT256: bigint;
@@ -0,0 +1,9 @@
1
+ export { SignConfirmationModal, type SignConfirmationModalProps, } from './SignConfirmationModal';
2
+ export { TransactionConfirmationModal, type TransactionConfirmationModalProps, } from './TransactionConfirmationModal';
3
+ export { ApproveSection, type ApproveSectionProps, } from './ApproveSection';
4
+ export { TransferSection, type TransferSectionProps, } from './TransferSection';
5
+ export { SwapSection, type SwapSectionProps, } from './SwapSection';
6
+ export { NftApprovalSection, type NftApprovalSectionProps, } from './NftApprovalSection';
7
+ export { type FunctionType, type TransactionUIConfig, type TransactionSectionProps, type DecodedApprove, type DecodedTransfer, type DecodedTransferFrom, type DecodedSwap, type DecodedNftApproval, getFunctionType, getTransactionConfig, getTransactionComponent, mapDecodedTransaction, mapParametersToApprove, mapParametersToTransfer, mapParametersToTransferFrom, mapParametersToSwap, mapParametersToNftApproval, decodeTransactionData, formatTokenAmount, isUnlimitedAmount, } from './transactionUIRegistry';
8
+ export { MAX_UINT256 } from './constants';
9
+ export { truncateAddress, formatTypedDataValue, hexToGwei } from './utils';
@@ -0,0 +1,20 @@
1
+ export declare const modalVars: {
2
+ colors: {
3
+ background: `var(--${string})`;
4
+ border: `var(--${string})`;
5
+ labelText: `var(--${string})`;
6
+ primaryText: `var(--${string})`;
7
+ secondaryText: `var(--${string})`;
8
+ buttonCancel: `var(--${string})`;
9
+ buttonCancelText: `var(--${string})`;
10
+ buttonConfirm: `var(--${string})`;
11
+ buttonConfirmText: `var(--${string})`;
12
+ tooltipBackground: `var(--${string})`;
13
+ tooltipText: `var(--${string})`;
14
+ systemRed: `var(--${string})`;
15
+ systemGreen: `var(--${string})`;
16
+ };
17
+ };
18
+ export declare const darkModeTheme: string;
19
+ export declare const lightModeTheme: string;
20
+ export declare const autoTheme: string;