@wormhole-foundation/wormhole-connect 4.1.0-beta.0-development → 4.2.0-beta.0-development

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 (359) hide show
  1. package/README.md +1 -1
  2. package/dist/assets/{aptos-C9pj8h2Q.js → aptos-DgUCX7ng.js} +3 -3
  3. package/dist/assets/{evm-DCydYqBI.js → evm-B6bqAPTR.js} +4 -4
  4. package/dist/assets/{evm-CJXv6IQV.js → evm-Ve5nG8Fs.js} +1 -1
  5. package/dist/assets/{index-LvDsy6wR.js → index-BJokXZAc.js} +1 -1
  6. package/dist/assets/{index-BqxX-Ey7.js → index-BJv9sngo.js} +1 -1
  7. package/dist/assets/{index-C9cy4cDs.js → index-BjZMFLjq.js} +1 -1
  8. package/dist/assets/{index-FJ-n91Op.js → index-BwbPlAQZ.js} +1 -1
  9. package/dist/assets/{index-Clu5I99l.js → index-Bzg4DNh9.js} +1 -1
  10. package/dist/assets/{index-ezhfpCvx.js → index-CKXa657f.js} +1 -1
  11. package/dist/assets/index-CXiuP738.js +1 -0
  12. package/dist/assets/{index-CNExx9Zb.js → index-CvTvoHH-.js} +1 -1
  13. package/dist/assets/{index-C25bHdOM.js → index-D1ULRVbZ.js} +1 -1
  14. package/dist/assets/{index-DpabQJOX.js → index-DlH9IMQl.js} +1 -1
  15. package/dist/assets/{index-C8u74RER.js → index-Dsb-5apv.js} +1 -1
  16. package/dist/assets/{index-D9ApKauA.js → index-_YFUWLUM.js} +1 -1
  17. package/dist/assets/{index-CoIvdDsX.js → index-jg26xdEi.js} +1 -1
  18. package/dist/assets/{provider-jsonrpc-DuMpLBV0.js → provider-jsonrpc-DNgUKjG6.js} +1 -1
  19. package/dist/assets/{solana-DWuIx6gK.js → solana-D4RepnSA.js} +2 -2
  20. package/dist/assets/{sui-BcTGBE_4.js → sui-Du5h-f8S.js} +3 -3
  21. package/dist/main.mjs +185 -140
  22. package/dist/src/components/ConfigurablePageHeader.d.ts +1 -1
  23. package/dist/src/components/ConfigurablePageHeader.d.ts.map +1 -1
  24. package/dist/src/components/Header.d.ts +1 -0
  25. package/dist/src/components/Header.d.ts.map +1 -1
  26. package/dist/src/components/PageHeader.d.ts +1 -3
  27. package/dist/src/components/PageHeader.d.ts.map +1 -1
  28. package/dist/src/components/SampleApp/index.d.ts.map +1 -1
  29. package/dist/src/components/v3/BackButton.d.ts +6 -0
  30. package/dist/src/components/v3/BackButton.d.ts.map +1 -0
  31. package/dist/src/components/v3/FormContent.d.ts +5 -0
  32. package/dist/src/components/v3/FormContent.d.ts.map +1 -0
  33. package/dist/src/config/constants.d.ts.map +1 -1
  34. package/dist/src/config/events.d.ts +2 -1
  35. package/dist/src/config/events.d.ts.map +1 -1
  36. package/dist/src/config/mainnet/chains.d.ts.map +1 -1
  37. package/dist/src/config/mainnet/rpcs.d.ts.map +1 -1
  38. package/dist/src/config/mainnet/tokens.d.ts.map +1 -1
  39. package/dist/src/config/mainnet/wrappedTokens.d.ts +6 -0
  40. package/dist/src/config/mainnet/wrappedTokens.d.ts.map +1 -1
  41. package/dist/src/config/testnet/chains.d.ts.map +1 -1
  42. package/dist/src/config/testnet/rpcs.d.ts.map +1 -1
  43. package/dist/src/config/testnet/tokens.d.ts.map +1 -1
  44. package/dist/src/config/types.d.ts +6 -11
  45. package/dist/src/config/types.d.ts.map +1 -1
  46. package/dist/src/config/ui.d.ts +9 -0
  47. package/dist/src/config/ui.d.ts.map +1 -1
  48. package/dist/src/consts/wallet.d.ts.map +1 -1
  49. package/dist/src/hooks/useAutoEnableGasDropoff.d.ts +3 -1
  50. package/dist/src/hooks/useAutoEnableGasDropoff.d.ts.map +1 -1
  51. package/dist/src/hooks/useConnectToLastUsedWallet.d.ts.map +1 -1
  52. package/dist/src/hooks/useSortedRoutesWithQuotes.d.ts.map +1 -1
  53. package/dist/src/hooks/useTransactionHistory.d.ts.map +1 -1
  54. package/dist/src/hooks/useTransactionHistoryLiFi.d.ts +2 -0
  55. package/dist/src/hooks/useTransactionHistoryLiFi.d.ts.map +1 -1
  56. package/dist/src/hooks/useTransactionHistoryMayan.d.ts +2 -0
  57. package/dist/src/hooks/useTransactionHistoryMayan.d.ts.map +1 -1
  58. package/dist/src/hooks/useTransactionHistoryWHScan.d.ts +2 -1
  59. package/dist/src/hooks/useTransactionHistoryWHScan.d.ts.map +1 -1
  60. package/dist/src/icons/PoweredBy.d.ts.map +1 -1
  61. package/dist/src/icons/TokenIcons.d.ts.map +1 -1
  62. package/dist/src/icons/Tokens/AUSD.d.ts +4 -0
  63. package/dist/src/icons/Tokens/AUSD.d.ts.map +1 -0
  64. package/dist/src/routes/lifi/LiFiRoute.d.ts.map +1 -1
  65. package/dist/src/routes/mayan/utils.d.ts.map +1 -1
  66. package/dist/src/routes/monad/consts.d.ts +1 -0
  67. package/dist/src/routes/monad/consts.d.ts.map +1 -1
  68. package/dist/src/routes/monad/monad.test.d.ts +1 -0
  69. package/dist/src/routes/monad/monad.test.d.ts.map +1 -0
  70. package/dist/src/routes/monad/utils.d.ts.map +1 -1
  71. package/dist/src/sdklegacy/config/MAINNET.d.ts.map +1 -1
  72. package/dist/src/sdklegacy/config/TESTNET.d.ts.map +1 -1
  73. package/dist/src/telemetry/types.d.ts +4 -2
  74. package/dist/src/telemetry/types.d.ts.map +1 -1
  75. package/dist/src/theme.d.ts +4 -3
  76. package/dist/src/theme.d.ts.map +1 -1
  77. package/dist/src/utils/errors.d.ts.map +1 -1
  78. package/dist/src/utils/fees.d.ts.map +1 -1
  79. package/dist/src/utils/index.d.ts.map +1 -1
  80. package/dist/src/utils/sdkv2.d.ts.map +1 -1
  81. package/dist/src/utils/wallet/index.d.ts +1 -0
  82. package/dist/src/utils/wallet/index.d.ts.map +1 -1
  83. package/dist/src/views/Terms.d.ts.map +1 -1
  84. package/dist/src/views/TxSearch.d.ts.map +1 -1
  85. package/dist/src/views/v3/Bridge/AssetPicker/PickerModal.d.ts.map +1 -1
  86. package/dist/src/views/v3/Bridge/AssetPicker/TokenPickerButton.d.ts +17 -0
  87. package/dist/src/views/v3/Bridge/AssetPicker/TokenPickerButton.d.ts.map +1 -0
  88. package/dist/src/views/v3/Bridge/AssetPicker/TokenPickerButtonContent.d.ts +8 -0
  89. package/dist/src/views/v3/Bridge/AssetPicker/TokenPickerButtonContent.d.ts.map +1 -0
  90. package/dist/src/views/v3/Bridge/AssetPicker/__tests__/TokenPickerButton.test.d.ts +2 -0
  91. package/dist/src/views/v3/Bridge/AssetPicker/__tests__/TokenPickerButton.test.d.ts.map +1 -0
  92. package/dist/src/views/v3/Bridge/AssetPicker/__tests__/TokenPickerButtonContent.test.d.ts +2 -0
  93. package/dist/src/views/v3/Bridge/AssetPicker/__tests__/TokenPickerButtonContent.test.d.ts.map +1 -0
  94. package/dist/src/views/v3/Bridge/AssetPicker/index.d.ts.map +1 -1
  95. package/dist/src/views/v3/Bridge/GasSlider/index.d.ts.map +1 -1
  96. package/dist/src/views/v3/Bridge/Routes/SingleRoute.d.ts.map +1 -1
  97. package/dist/src/views/v3/Bridge/Routes/index.d.ts +2 -1
  98. package/dist/src/views/v3/Bridge/Routes/index.d.ts.map +1 -1
  99. package/dist/src/views/v3/Bridge/WalletConnector/Controller.d.ts.map +1 -1
  100. package/dist/src/views/v3/Bridge/WalletConnector/ExplorerLink.d.ts.map +1 -1
  101. package/dist/src/views/v3/Bridge/WalletConnector/WalletAddress.d.ts +9 -0
  102. package/dist/src/views/v3/Bridge/WalletConnector/WalletAddress.d.ts.map +1 -0
  103. package/dist/src/views/v3/Bridge/WalletConnector/WalletPickerContent.d.ts.map +1 -1
  104. package/dist/src/views/v3/Bridge/WalletConnector/__tests__/WalletAddress.test.d.ts +2 -0
  105. package/dist/src/views/v3/Bridge/WalletConnector/__tests__/WalletAddress.test.d.ts.map +1 -0
  106. package/dist/src/views/v3/Bridge/index.d.ts.map +1 -1
  107. package/dist/src/views/v3/Redeem/TransactionDetails/index.d.ts.map +1 -1
  108. package/dist/src/views/v3/Redeem/index.d.ts.map +1 -1
  109. package/dist/src/views/v3/TxHistory/Item/index.d.ts.map +1 -1
  110. package/dist/src/views/v3/TxHistory/Widget/Item.d.ts.map +1 -1
  111. package/lib/{account-cIQhxn1E.js → account-K005OXgL.js} +1 -1
  112. package/lib/{account-BVl6Reot.mjs → account-TXlxMyv4.mjs} +2 -2
  113. package/lib/{address-rVHWlcKQ.mjs → address-CX0E32ut.mjs} +1 -1
  114. package/lib/{address-W9jn6Qdk.js → address-DqbIfKOu.js} +1 -1
  115. package/lib/{aptos-BRApiL_4.mjs → aptos-B1Gf2eCD.mjs} +5 -5
  116. package/lib/{aptos-CNHYHK9c.js → aptos-CnswqE-C.js} +2 -2
  117. package/lib/{aptos-D1WFzBMy.mjs → aptos-DRfXJ8Ba.mjs} +7 -7
  118. package/lib/{aptos-d56Mw8DO.js → aptos-DcdKyekw.js} +1 -1
  119. package/lib/{associatedTokenAccount-C4vEEbG5.js → associatedTokenAccount-CeqdaO2m.js} +1 -1
  120. package/lib/{associatedTokenAccount-DF6phO3l.mjs → associatedTokenAccount-Dsm4Hq32.mjs} +3 -3
  121. package/lib/{basic-BxzNlZH2.js → basic-BS7Z1PMG.js} +1 -1
  122. package/lib/{basic-Bj1RjRlj.js → basic-C6VXQ7m-.js} +1 -1
  123. package/lib/{basic-DR75AlQZ.mjs → basic-CFbslwLM.mjs} +3 -3
  124. package/lib/{basic-DjAbnFVK.mjs → basic-DnhL0oWa.mjs} +3 -3
  125. package/lib/{chunk-KJH4KKG6-Brt4fyqz.mjs → chunk-KJH4KKG6-BfVMUPsB.mjs} +3 -3
  126. package/lib/{chunk-KJH4KKG6-BbF5W1_N.js → chunk-KJH4KKG6-CJx-rDa6.js} +1 -1
  127. package/lib/constants-BCFTvlgh.js +1 -0
  128. package/lib/{constants-PWEvTwIh.mjs → constants-CTJ_-E0d.mjs} +5 -4
  129. package/lib/{core-CkIseV8K.mjs → core-DT6TBPQP.mjs} +6 -6
  130. package/lib/{core-CCO0WKg_.js → core-RRp0K__1.js} +3 -3
  131. package/lib/{create-CChLkbGc.mjs → create-C5dhTMHL.mjs} +1 -1
  132. package/lib/{create-4w0DrcRO.js → create-bA3Gyivs.js} +1 -1
  133. package/lib/{evm-BAU31wxF.js → evm-BwCfQIyJ.js} +2 -2
  134. package/lib/{evm-CMxUV_bG.mjs → evm-BxF9XPn4.mjs} +7 -7
  135. package/lib/{evm-9NnChBii.js → evm-C3B8jHD7.js} +1 -1
  136. package/lib/{evm-2dSclZz6.mjs → evm-DlOCiplA.mjs} +5 -5
  137. package/lib/executor.js +1 -1
  138. package/lib/executor.mjs +13 -15
  139. package/lib/hosted.js +1 -1
  140. package/lib/hosted.mjs +1 -1
  141. package/lib/hypercore-DbqOAqKF.js +4 -0
  142. package/lib/{hypercore-Bmlyd4uI.mjs → hypercore-H7pw_pN4.mjs} +4858 -3107
  143. package/lib/{index-qL4D-cpk.js → index-1T4sIL8n.js} +1 -1
  144. package/lib/{index-Ap7250Gf.mjs → index-39tU5Y5t.mjs} +6 -6
  145. package/lib/{index-D7gCsil9.js → index-6m7yero0.js} +1 -1
  146. package/lib/{index-C5I7QiZ7.mjs → index-B6Ppg6EZ.mjs} +3 -3
  147. package/lib/{index-xvG6cxNx.js → index-BEIFBxtP.js} +1 -1
  148. package/lib/{index-zIzzPp6D.mjs → index-BHpJUZne.mjs} +3 -3
  149. package/lib/{index-CS6YnwIH.js → index-BJ0xVutl.js} +1 -1
  150. package/lib/{index-DUyGY36L.js → index-BNpkgexR.js} +1 -1
  151. package/lib/{index-C61IKE_V.mjs → index-BSIPYyeZ.mjs} +2 -2
  152. package/lib/{index-EbSw7SbC.js → index-BTjUHY0e.js} +1 -1
  153. package/lib/{index-BuHdMHLz.mjs → index-Ba1zbu3Q.mjs} +2 -2
  154. package/lib/{index-CPGWCfWD.js → index-BbE02hdW.js} +8 -8
  155. package/lib/{index-BU35GfG0.mjs → index-Bdtj4LUz.mjs} +2 -2
  156. package/lib/{index-BCKX-m7h.mjs → index-BmP0jPVN.mjs} +12 -11
  157. package/lib/{index-hyk_rzOj.mjs → index-BnKf2rOm.mjs} +3246 -3039
  158. package/lib/{index-Ds7-hb1n.mjs → index-BtU67kjy.mjs} +1 -1
  159. package/lib/{index-Cl9Df47-.mjs → index-BuEKhdrW.mjs} +3 -3
  160. package/lib/{index-CN7M4gwf.mjs → index-BviSNDV7.mjs} +5 -5
  161. package/lib/{index-Cys9e11O.js → index-C-SMuVS3.js} +1 -1
  162. package/lib/{index-Cg1Xo1eZ.js → index-C85u3Gj5.js} +1 -1
  163. package/lib/{index-arjwwpj2.mjs → index-CGqJokTg.mjs} +1 -1
  164. package/lib/{index-Da9rvmCc.js → index-Cb0UWLGI.js} +1 -1
  165. package/lib/{index-DHnmtpvA.mjs → index-CcbY14s5.mjs} +4 -4
  166. package/lib/{index-BKgliEPZ.mjs → index-CrWTw0Se.mjs} +2 -2
  167. package/lib/{index-B16yfCYF.mjs → index-CsLyPoC6.mjs} +4 -4
  168. package/lib/{index-B_JJ50Y-.mjs → index-D-HUNEka.mjs} +4 -4
  169. package/lib/index-DAJZN12d.js +1 -0
  170. package/lib/{index-BhMcIAHt.js → index-DJ2w1fz1.js} +1 -1
  171. package/lib/{index-C5j1HoFr.js → index-DVm_f5E1.js} +1 -1
  172. package/lib/{index-CO4ZoIAU.mjs → index-DjmVBSGQ.mjs} +4 -4
  173. package/lib/{index-Co3mm7UN.mjs → index-DrJE8udd.mjs} +1 -1
  174. package/lib/{index-fTUcaKb4.js → index-DuhYwr0t.js} +1 -1
  175. package/lib/{index-BQ0lWQfT.mjs → index-DwEx1Hn-.mjs} +2 -2
  176. package/lib/{index-DBofyYkS.js → index-DziujHu1.js} +1 -1
  177. package/lib/{index-Dou5sFku.js → index-JWbF-m3e.js} +1 -1
  178. package/lib/{index-_IZO0QRl.mjs → index-NAUBlFLG.mjs} +4 -4
  179. package/lib/{index-D1odbjeH.mjs → index-VnJcNK62.mjs} +3 -3
  180. package/lib/{index-DVxmRy4C.js → index-WrXSs0ic.js} +1 -1
  181. package/lib/{index-CsdD1TNi.js → index-aMKUba1k.js} +1 -1
  182. package/lib/{index-BXsTZ9x_.mjs → index-dufPAW5T.mjs} +298 -267
  183. package/lib/{index-lZY5fTXF.js → index-lAqXlt-a.js} +1 -1
  184. package/lib/{index-cRi8si5A.js → index-mikg85u5.js} +1 -1
  185. package/lib/{index-BScgBddV.mjs → index-o1SAPXm_.mjs} +3 -3
  186. package/lib/{index-CZHdN9pg.js → index-pn6NZmOS.js} +1 -1
  187. package/lib/{index-DNZ-Pkpm.mjs → index-rxQSA9t0.mjs} +6 -6
  188. package/lib/{index-CHvWl09c.js → index-t_koRpGi.js} +1 -1
  189. package/lib/{index-DALvn9lg.js → index-v7w8krM0.js} +1 -1
  190. package/lib/{index-japympio.js → index-wadjmD_G.js} +1 -1
  191. package/lib/{index.es-BC9c-IV7.mjs → index.es-3KAM8l3G.mjs} +4 -4
  192. package/lib/{index.es-DxdcaWwJ.js → index.es-B3FwsRfN.js} +3 -3
  193. package/lib/{index.es-ByyzusUN.mjs → index.es-CYyuSfPG.mjs} +4 -4
  194. package/lib/{index.es-BmZ1Eaml.js → index.es-ClIr5Gv-.js} +1 -1
  195. package/lib/index.js +78 -33
  196. package/lib/index.mjs +9157 -8833
  197. package/lib/{keypair-DWucLGoA.js → keypair-DCgXFOw5.js} +1 -1
  198. package/lib/{keypair-CP7syX9B.mjs → keypair-vpG2fl-q.mjs} +3 -3
  199. package/lib/lifi.js +1 -1
  200. package/lib/lifi.mjs +75 -76
  201. package/lib/mayan.js +2 -2
  202. package/lib/mayan.mjs +11 -10
  203. package/lib/{mint-CoNdQTGM.mjs → mint-BPrKG-Zc.mjs} +3 -3
  204. package/lib/{mint-CxQ6P5lT.js → mint-DW-XgF68.js} +1 -1
  205. package/lib/monad.js +1 -1
  206. package/lib/monad.mjs +91 -58
  207. package/lib/multiToken-B9BoSxdr.js +1 -0
  208. package/lib/{multiToken-Bm-K5dRJ.mjs → multiToken-DMllgxzT.mjs} +4 -3
  209. package/lib/ntt.js +2 -2
  210. package/lib/ntt.mjs +77 -86
  211. package/lib/{platform-Cil_UtAQ.mjs → platform-CSpAb386.mjs} +2788 -2748
  212. package/lib/{platform-BMKYxqvv.js → platform-Csj1Outc.js} +1 -1
  213. package/lib/platform-DCcL7jHP.js +11 -0
  214. package/lib/{platform-vRQufc6j.mjs → platform-YzJZdSCf.mjs} +3 -3
  215. package/lib/{secp256k1-D24BZJAq.js → secp256k1-B2G0zB-5.js} +1 -1
  216. package/lib/{secp256k1-CXRI4XfW.mjs → secp256k1-BZFiBDHQ.mjs} +1 -1
  217. package/lib/{secp256k1-r0ke-jeG.js → secp256k1-Bz-QjKBU.js} +1 -1
  218. package/lib/{secp256k1-rufcCDcw.mjs → secp256k1-Cteng3v9.mjs} +1 -1
  219. package/lib/{secp256k1-BLiUzGcX.js → secp256k1-CxjctkO3.js} +1 -1
  220. package/lib/{secp256k1-ZQ8UIhmk.mjs → secp256k1-D3i7kc2M.mjs} +1 -1
  221. package/lib/{signer-0hWrZ5BZ.mjs → signer-D2GRgRrw.mjs} +2 -2
  222. package/lib/{signer-DyqulDUM.js → signer-gjSiV5v3.js} +1 -1
  223. package/lib/{solana-CXtk3UX1.js → solana-BE2DAanS.js} +4 -4
  224. package/lib/{solana-lhrSUH_P.mjs → solana-Df231Yni.mjs} +10 -10
  225. package/lib/solana-DfW5T_64.mjs +18 -0
  226. package/lib/solana-Edd9tIkX.js +1 -0
  227. package/lib/{solanaEmbed.esm-CFu0h50b.mjs → solanaEmbed.esm-B9WG-Afi.mjs} +4 -4
  228. package/lib/{solanaEmbed.esm-BMynjubZ.js → solanaEmbed.esm-BqcrHrhl.js} +1 -1
  229. package/lib/{solidity-CbDkqHjE.js → solidity-BW7c8rFv.js} +1 -1
  230. package/lib/{solidity-Dk_mvceo.mjs → solidity-D9gSgFcp.mjs} +1 -1
  231. package/lib/src/components/ConfigurablePageHeader.d.ts +1 -1
  232. package/lib/src/components/ConfigurablePageHeader.d.ts.map +1 -1
  233. package/lib/src/components/Header.d.ts +1 -0
  234. package/lib/src/components/Header.d.ts.map +1 -1
  235. package/lib/src/components/PageHeader.d.ts +1 -3
  236. package/lib/src/components/PageHeader.d.ts.map +1 -1
  237. package/lib/src/components/SampleApp/index.d.ts.map +1 -1
  238. package/lib/src/components/v3/BackButton.d.ts +6 -0
  239. package/lib/src/components/v3/BackButton.d.ts.map +1 -0
  240. package/lib/src/components/v3/FormContent.d.ts +5 -0
  241. package/lib/src/components/v3/FormContent.d.ts.map +1 -0
  242. package/lib/src/config/constants.d.ts.map +1 -1
  243. package/lib/src/config/events.d.ts +2 -1
  244. package/lib/src/config/events.d.ts.map +1 -1
  245. package/lib/src/config/mainnet/chains.d.ts.map +1 -1
  246. package/lib/src/config/mainnet/rpcs.d.ts.map +1 -1
  247. package/lib/src/config/mainnet/tokens.d.ts.map +1 -1
  248. package/lib/src/config/mainnet/wrappedTokens.d.ts +6 -0
  249. package/lib/src/config/mainnet/wrappedTokens.d.ts.map +1 -1
  250. package/lib/src/config/testnet/chains.d.ts.map +1 -1
  251. package/lib/src/config/testnet/rpcs.d.ts.map +1 -1
  252. package/lib/src/config/testnet/tokens.d.ts.map +1 -1
  253. package/lib/src/config/types.d.ts +6 -11
  254. package/lib/src/config/types.d.ts.map +1 -1
  255. package/lib/src/config/ui.d.ts +9 -0
  256. package/lib/src/config/ui.d.ts.map +1 -1
  257. package/lib/src/consts/wallet.d.ts.map +1 -1
  258. package/lib/src/hooks/useAutoEnableGasDropoff.d.ts +3 -1
  259. package/lib/src/hooks/useAutoEnableGasDropoff.d.ts.map +1 -1
  260. package/lib/src/hooks/useConnectToLastUsedWallet.d.ts.map +1 -1
  261. package/lib/src/hooks/useSortedRoutesWithQuotes.d.ts.map +1 -1
  262. package/lib/src/hooks/useTransactionHistory.d.ts.map +1 -1
  263. package/lib/src/hooks/useTransactionHistoryLiFi.d.ts +2 -0
  264. package/lib/src/hooks/useTransactionHistoryLiFi.d.ts.map +1 -1
  265. package/lib/src/hooks/useTransactionHistoryMayan.d.ts +2 -0
  266. package/lib/src/hooks/useTransactionHistoryMayan.d.ts.map +1 -1
  267. package/lib/src/hooks/useTransactionHistoryWHScan.d.ts +2 -1
  268. package/lib/src/hooks/useTransactionHistoryWHScan.d.ts.map +1 -1
  269. package/lib/src/icons/PoweredBy.d.ts.map +1 -1
  270. package/lib/src/icons/TokenIcons.d.ts.map +1 -1
  271. package/lib/src/icons/Tokens/AUSD.d.ts +4 -0
  272. package/lib/src/icons/Tokens/AUSD.d.ts.map +1 -0
  273. package/lib/src/routes/lifi/LiFiRoute.d.ts.map +1 -1
  274. package/lib/src/routes/mayan/utils.d.ts.map +1 -1
  275. package/lib/src/routes/monad/consts.d.ts +1 -0
  276. package/lib/src/routes/monad/consts.d.ts.map +1 -1
  277. package/lib/src/routes/monad/monad.test.d.ts +1 -0
  278. package/lib/src/routes/monad/monad.test.d.ts.map +1 -0
  279. package/lib/src/routes/monad/utils.d.ts.map +1 -1
  280. package/lib/src/sdklegacy/config/MAINNET.d.ts.map +1 -1
  281. package/lib/src/sdklegacy/config/TESTNET.d.ts.map +1 -1
  282. package/lib/src/telemetry/types.d.ts +4 -2
  283. package/lib/src/telemetry/types.d.ts.map +1 -1
  284. package/lib/src/theme.d.ts +4 -3
  285. package/lib/src/theme.d.ts.map +1 -1
  286. package/lib/src/utils/errors.d.ts.map +1 -1
  287. package/lib/src/utils/fees.d.ts.map +1 -1
  288. package/lib/src/utils/index.d.ts.map +1 -1
  289. package/lib/src/utils/sdkv2.d.ts.map +1 -1
  290. package/lib/src/utils/wallet/index.d.ts +1 -0
  291. package/lib/src/utils/wallet/index.d.ts.map +1 -1
  292. package/lib/src/views/Terms.d.ts.map +1 -1
  293. package/lib/src/views/TxSearch.d.ts.map +1 -1
  294. package/lib/src/views/v3/Bridge/AssetPicker/PickerModal.d.ts.map +1 -1
  295. package/lib/src/views/v3/Bridge/AssetPicker/TokenPickerButton.d.ts +17 -0
  296. package/lib/src/views/v3/Bridge/AssetPicker/TokenPickerButton.d.ts.map +1 -0
  297. package/lib/src/views/v3/Bridge/AssetPicker/TokenPickerButtonContent.d.ts +8 -0
  298. package/lib/src/views/v3/Bridge/AssetPicker/TokenPickerButtonContent.d.ts.map +1 -0
  299. package/lib/src/views/v3/Bridge/AssetPicker/__tests__/TokenPickerButton.test.d.ts +2 -0
  300. package/lib/src/views/v3/Bridge/AssetPicker/__tests__/TokenPickerButton.test.d.ts.map +1 -0
  301. package/lib/src/views/v3/Bridge/AssetPicker/__tests__/TokenPickerButtonContent.test.d.ts +2 -0
  302. package/lib/src/views/v3/Bridge/AssetPicker/__tests__/TokenPickerButtonContent.test.d.ts.map +1 -0
  303. package/lib/src/views/v3/Bridge/AssetPicker/index.d.ts.map +1 -1
  304. package/lib/src/views/v3/Bridge/GasSlider/index.d.ts.map +1 -1
  305. package/lib/src/views/v3/Bridge/Routes/SingleRoute.d.ts.map +1 -1
  306. package/lib/src/views/v3/Bridge/Routes/index.d.ts +2 -1
  307. package/lib/src/views/v3/Bridge/Routes/index.d.ts.map +1 -1
  308. package/lib/src/views/v3/Bridge/WalletConnector/Controller.d.ts.map +1 -1
  309. package/lib/src/views/v3/Bridge/WalletConnector/ExplorerLink.d.ts.map +1 -1
  310. package/lib/src/views/v3/Bridge/WalletConnector/WalletAddress.d.ts +9 -0
  311. package/lib/src/views/v3/Bridge/WalletConnector/WalletAddress.d.ts.map +1 -0
  312. package/lib/src/views/v3/Bridge/WalletConnector/WalletPickerContent.d.ts.map +1 -1
  313. package/lib/src/views/v3/Bridge/WalletConnector/__tests__/WalletAddress.test.d.ts +2 -0
  314. package/lib/src/views/v3/Bridge/WalletConnector/__tests__/WalletAddress.test.d.ts.map +1 -0
  315. package/lib/src/views/v3/Bridge/index.d.ts.map +1 -1
  316. package/lib/src/views/v3/Redeem/TransactionDetails/index.d.ts.map +1 -1
  317. package/lib/src/views/v3/Redeem/index.d.ts.map +1 -1
  318. package/lib/src/views/v3/TxHistory/Item/index.d.ts.map +1 -1
  319. package/lib/src/views/v3/TxHistory/Widget/Item.d.ts.map +1 -1
  320. package/lib/{sui-CZNJPZ5q.mjs → sui-B9tYcgyb.mjs} +4 -4
  321. package/lib/{sui-CBxh7zmc.js → sui-BVwNcgQT.js} +1 -1
  322. package/lib/{sui-LiXjD27c.js → sui-BtyZE8YC.js} +1 -1
  323. package/lib/{sui-cpCvd7RC.mjs → sui-QP4AZGNc.mjs} +6 -6
  324. package/lib/{tokenHelpers-DT6mPtNP.mjs → tokenHelpers-C53sepsl.mjs} +1 -1
  325. package/lib/{tokenHelpers-DZRdlDO-.js → tokenHelpers-DITWDel1.js} +1 -1
  326. package/lib/{tokens-FIs8YBYj.mjs → tokens-CO0YQ3R2.mjs} +3 -3
  327. package/lib/{tokens--uOMY2-j.js → tokens-CiSHS7oi.js} +1 -1
  328. package/lib/types-CgveSjsw.js +1 -0
  329. package/lib/{types-iFgwQ7vG.mjs → types-Dxx2g1wS.mjs} +170 -168
  330. package/lib/{unsignedTransaction-DCDxTFq8.mjs → unsignedTransaction-D2Ja0SuN.mjs} +2 -2
  331. package/lib/{unsignedTransaction-DA4tlY5u.js → unsignedTransaction-qRBv5Cnd.js} +2 -2
  332. package/lib/{utils-DMf7wRGI.js → utils-BEljbqMf.js} +1 -1
  333. package/lib/{utils-BSxsyW2c.mjs → utils-mBHX3Jpu.mjs} +4 -4
  334. package/lib/{w3m-modal-CBYJj-sR.mjs → w3m-modal-5v-rsnN8.mjs} +2 -2
  335. package/lib/{w3m-modal-B3FfPDki.js → w3m-modal-B0Lu-6W8.js} +1 -1
  336. package/lib/{w3m-modal-B5PtkowQ.js → w3m-modal-B2xHxAWg.js} +1 -1
  337. package/lib/{w3m-modal-h85Jyy9l.mjs → w3m-modal-SlcSCSnx.mjs} +2 -2
  338. package/lib/{wallet-CMTEE6Oa.mjs → wallet-Cyosy4Hc.mjs} +1 -1
  339. package/lib/{wallet-BMli0fbu.js → wallet-a0_jwP8j.js} +1 -1
  340. package/lib/{web3-CUwFm9Lx.mjs → web3-CdErAVj5.mjs} +2 -2
  341. package/lib/{web3-DdUeM7iQ.js → web3-x1WCGDiy.js} +1 -1
  342. package/package.json +49 -47
  343. package/dist/assets/index-_UMHESh0.js +0 -1
  344. package/dist/src/components/Button.d.ts +0 -13
  345. package/dist/src/components/Button.d.ts.map +0 -1
  346. package/dist/src/icons/Down.d.ts +0 -5
  347. package/dist/src/icons/Down.d.ts.map +0 -1
  348. package/lib/constants-Bkyn6tLV.js +0 -1
  349. package/lib/hypercore-DJV-pPts.js +0 -4
  350. package/lib/index-BYuhx88C.js +0 -1
  351. package/lib/multiToken-YoNvxjur.js +0 -1
  352. package/lib/platform-CCG_jgOO.js +0 -11
  353. package/lib/solana-DKFJvqX8.mjs +0 -18
  354. package/lib/solana-Dmje_Si8.js +0 -1
  355. package/lib/src/components/Button.d.ts +0 -13
  356. package/lib/src/components/Button.d.ts.map +0 -1
  357. package/lib/src/icons/Down.d.ts +0 -5
  358. package/lib/src/icons/Down.d.ts.map +0 -1
  359. package/lib/types-CjNs2oB0.js +0 -1
package/lib/ntt.mjs CHANGED
@@ -1,12 +1,12 @@
1
- import { N as Q, g as bs, c as As, f as Is, a as ks, b as Pa, i as Ts, d as Nt, n as Ca } from "./types-iFgwQ7vG.mjs";
2
- import "./index-BXsTZ9x_.mjs";
3
- import { ac as xs, a as Yn, i as Xn, ad as ea, ae as ta, af as na, u as It, W as it, ag as mt, e as ee, v as Mt, Y as Dt, N as nt, d as kt, f as dt, j as aa, z as Tt, _ as sa, $ as ia, M as ss, n as Ps, ah as at, ai as Cs, aj as jn, ak as Ea, m as _a, al as en, am as Es, y as Rn, R as _s, C as H, an as Gt, ao as Rs, ap as Os, aq as Ns, ar as Ds, L as Ra, w as Ls, as as ot, at as qn, au as cn, av as Bs, c as st } from "./platform-Cil_UtAQ.mjs";
4
- import { P as pt, t as Fs, p as Us } from "./index-BU35GfG0.mjs";
5
- import { n as js, o as qs, O as Oa, p as Bt, t as Na, q as $s, r as Vs, s as Ws, u as zs, v as Gs, L as te, T as un, P as L, w as Ks, g as Qs, x as gt, V as bt, S as $e, y as tn, d as Hs, b as Zs, z as Pt, B as X, D as Fe, j as $n, K as Ot, l as Js, _ as is, F as je, i as Ys, k as At, e as Je, m as tt, h as Qe, G as rs, H as Xs, I as os } from "./unsignedTransaction-DCDxTFq8.mjs";
6
- import { g as Kt, S as ei, d as ti } from "./index-CN7M4gwf.mjs";
7
- import { T as dn, c as rt, d as ni, e as ai, A as si, f as Ft, b as lt, h as Vn, N as On } from "./mint-CoNdQTGM.mjs";
8
- import { u as ra, p as Lt, b as Wn } from "./web3-CUwFm9Lx.mjs";
9
- import { a as cs, T as oa, b as Da, c as ii } from "./associatedTokenAccount-DF6phO3l.mjs";
1
+ import { N as Q, g as bs, c as As, f as Is, a as ks, b as Pa, i as Ts, d as Nt, n as Ca } from "./types-Dxx2g1wS.mjs";
2
+ import "./index-dufPAW5T.mjs";
3
+ import { ac as xs, a as Yn, i as Xn, ad as ea, ae as ta, af as na, u as kt, W as it, ag as mt, e as ee, v as bt, Y as Dt, N as nt, d as pt, f as dt, j as aa, z as Tt, _ as sa, $ as ia, M as ss, n as Ps, ah as at, ai as Cs, aj as jn, ak as Ea, m as _a, al as en, am as Es, y as Rn, R as _s, C as H, an as Gt, ao as Rs, ap as Os, aq as Ns, ar as Ds, L as Ra, w as Ls, as as ot, at as qn, au as cn, av as Bs, c as st } from "./platform-CSpAb386.mjs";
4
+ import { P as yt, t as Fs, p as Us } from "./index-Bdtj4LUz.mjs";
5
+ import { n as js, o as qs, O as Oa, p as Bt, t as Na, q as $s, r as Vs, s as Ws, u as zs, v as Gs, L as te, T as un, P as L, w as Ks, g as Qs, x as gt, V as At, S as $e, y as tn, d as Hs, b as Zs, z as Pt, B as X, D as Fe, j as $n, K as Ot, l as Js, _ as is, F as je, i as Ys, k as It, e as Je, m as tt, h as Qe, G as rs, H as Xs, I as os } from "./unsignedTransaction-D2Ja0SuN.mjs";
6
+ import { g as Kt, S as ei, d as ti } from "./index-BviSNDV7.mjs";
7
+ import { T as dn, c as rt, d as ni, e as ai, A as si, f as Ft, b as lt, h as Vn, N as On } from "./mint-BPrKG-Zc.mjs";
8
+ import { u as ra, p as Lt, b as Wn } from "./web3-CdErAVj5.mjs";
9
+ import { a as cs, T as oa, b as Da, c as ii } from "./associatedTokenAccount-Dsm4Hq32.mjs";
10
10
  function ri(i, e) {
11
11
  if (!!!i)
12
12
  throw new Error(e);
@@ -1697,7 +1697,7 @@ class Gi extends xs {
1697
1697
  }), w = await p.getRateLimitDuration();
1698
1698
  if (w > 0n) {
1699
1699
  const v = await p.getCurrentInboundCapacity(a.chain);
1700
- Q.isCapacityThresholdExceeded(It(s), v) && (c.warnings = [
1700
+ Q.isCapacityThresholdExceeded(kt(s), v) && (c.warnings = [
1701
1701
  {
1702
1702
  type: "DestinationCapacityWarning",
1703
1703
  delayDurationSec: Number(w)
@@ -1709,7 +1709,7 @@ class Gi extends xs {
1709
1709
  async initiate(e, n, s, c) {
1710
1710
  const { params: a } = s, { fromChain: l } = e, p = it.parseAddress(n.chain(), n.address()), v = (await l.getProtocol("Ntt", {
1711
1711
  ntt: a.normalizedParams.sourceContracts
1712
- })).transfer(p, It(a.normalizedParams.amount), c, a.normalizedParams.options), b = await mt(l, v, n);
1712
+ })).transfer(p, kt(a.normalizedParams.amount), c, a.normalizedParams.options), b = await mt(l, v, n);
1713
1713
  return {
1714
1714
  from: l.chain,
1715
1715
  to: c.chain,
@@ -1719,7 +1719,7 @@ class Gi extends xs {
1719
1719
  };
1720
1720
  }
1721
1721
  async complete(e, n) {
1722
- if (!Mt(n)) {
1722
+ if (!bt(n)) {
1723
1723
  if (Dt(n))
1724
1724
  return n;
1725
1725
  throw new Error("The source must be finalized in order to complete the transfer");
@@ -1747,7 +1747,7 @@ class Gi extends xs {
1747
1747
  }), p = nt({
1748
1748
  chain: n.emitterChain,
1749
1749
  address: n.payload.sourceNttManager
1750
- }), w = kt(n.emitterChain) === "Solana" ? p : nt({
1750
+ }), w = pt(n.emitterChain) === "Solana" ? p : nt({
1751
1751
  chain: n.emitterChain,
1752
1752
  address: n.emitterAddress
1753
1753
  }), v = Q.resolveDestinationNttContracts(this.staticConfig, {
@@ -1821,7 +1821,7 @@ class Gi extends xs {
1821
1821
  const c = await this.wh.getChain(e.to).getProtocol("Ntt", {
1822
1822
  ntt: e.params.normalizedParams.destinationContracts
1823
1823
  });
1824
- if (Mt(e)) {
1824
+ if (bt(e)) {
1825
1825
  const { attestation: { attestation: a } } = e;
1826
1826
  await c.getIsApproved(a) && (e = {
1827
1827
  ...e,
@@ -1929,7 +1929,7 @@ class Qi extends ss {
1929
1929
  }), b = await v.getRateLimitDuration();
1930
1930
  if (b > 0n) {
1931
1931
  const M = await v.getCurrentInboundCapacity(s.chain);
1932
- Q.isCapacityThresholdExceeded(It(p), M) && (w.warnings = [
1932
+ Q.isCapacityThresholdExceeded(kt(p), M) && (w.warnings = [
1933
1933
  {
1934
1934
  type: "DestinationCapacityWarning",
1935
1935
  delayDurationSec: Number(b)
@@ -1941,7 +1941,7 @@ class Qi extends ss {
1941
1941
  async initiate(e, n, s, c) {
1942
1942
  const { params: a } = s, { fromChain: l } = e, p = it.parseAddress(n.chain(), n.address()), v = (await l.getProtocol("Ntt", {
1943
1943
  ntt: a.normalizedParams.sourceContracts
1944
- })).transfer(p, It(a.normalizedParams.amount), c, a.normalizedParams.options), b = await mt(l, v, n);
1944
+ })).transfer(p, kt(a.normalizedParams.amount), c, a.normalizedParams.options), b = await mt(l, v, n);
1945
1945
  return {
1946
1946
  from: l.chain,
1947
1947
  to: c.chain,
@@ -1964,7 +1964,7 @@ class Qi extends ss {
1964
1964
  }), w = nt({
1965
1965
  chain: n.emitterChain,
1966
1966
  address: c.sourceNttManager
1967
- }), v = kt(n.emitterChain) === "Solana" ? w : nt({
1967
+ }), v = pt(n.emitterChain) === "Solana" ? w : nt({
1968
1968
  chain: n.emitterChain,
1969
1969
  address: n.emitterAddress
1970
1970
  }), b = Q.resolveDestinationNttContracts(this.staticConfig, {
@@ -2020,7 +2020,7 @@ class Qi extends ss {
2020
2020
  }
2021
2021
  async *track(e, n) {
2022
2022
  if (sa(e) || ia(e)) {
2023
- const { txid: a } = e.originTxs[e.originTxs.length - 1], l = (b) => kt(b) === "Evm", p = l(e.from) && l(e.to) ? (
2023
+ const { txid: a } = e.originTxs[e.originTxs.length - 1], l = (b) => pt(b) === "Evm", p = l(e.from) && l(e.to) ? (
2024
2024
  // Automatic NTT transfers between EVM chains use standard relayers
2025
2025
  "Ntt:WormholeTransferStandardRelayer"
2026
2026
  ) : "Ntt:WormholeTransfer", w = await this.wh.getVaa(a, p, n);
@@ -2043,7 +2043,7 @@ class Qi extends ss {
2043
2043
  const c = await this.wh.getChain(e.to).getProtocol("Ntt", {
2044
2044
  ntt: e.params.normalizedParams.destinationContracts
2045
2045
  });
2046
- if (Mt(e)) {
2046
+ if (bt(e)) {
2047
2047
  const { attestation: { attestation: a } } = e;
2048
2048
  await c.getIsApproved(a) && (e = {
2049
2049
  ...e,
@@ -2152,7 +2152,7 @@ class Zi extends ss {
2152
2152
  }), k = await I.getRateLimitDuration();
2153
2153
  if (k > 0n) {
2154
2154
  const _ = await I.getCurrentInboundCapacity(s.chain);
2155
- Q.isCapacityThresholdExceeded(It(b), _) && (M.warnings = [
2155
+ Q.isCapacityThresholdExceeded(kt(b), _) && (M.warnings = [
2156
2156
  {
2157
2157
  type: "DestinationCapacityWarning",
2158
2158
  delayDurationSec: Number(k)
@@ -2172,7 +2172,7 @@ class Zi extends ss {
2172
2172
  let a = bs(s.chain);
2173
2173
  const l = this.staticConfig.referrerFee;
2174
2174
  if (l) {
2175
- const We = kt(s.chain), Ue = l.referrerAddresses?.[We] ?? "";
2175
+ const We = pt(s.chain), Ue = l.referrerAddresses?.[We] ?? "";
2176
2176
  Ue && (a = it.chainAddress(s.chain, Ue));
2177
2177
  }
2178
2178
  const { referrerFee: p, remainingAmount: w, referrerFeeDbps: v } = As(n.normalizedParams.amount, n.normalizedParams.referrerFeeDbps, e.destination.decimals);
@@ -2240,7 +2240,7 @@ class Zi extends ss {
2240
2240
  ntt: a.normalizedParams.sourceContracts
2241
2241
  }), M = await w.getProtocol("Ntt", {
2242
2242
  ntt: a.normalizedParams.sourceContracts
2243
- }), I = Xn(e.source.id.address), k = b.transfer(v, c, It(a.normalizedParams.amount), l, M, I), _ = await mt(w, k, n);
2243
+ }), I = Xn(e.source.id.address), k = b.transfer(v, c, kt(a.normalizedParams.amount), l, M, I), _ = await mt(w, k, n);
2244
2244
  let N = 0;
2245
2245
  return (async () => {
2246
2246
  for (; N < 20; ) {
@@ -2261,7 +2261,7 @@ class Zi extends ss {
2261
2261
  };
2262
2262
  }
2263
2263
  async complete(e, n) {
2264
- if (!Mt(n) && !Rn(n)) {
2264
+ if (!bt(n) && !Rn(n)) {
2265
2265
  if (Dt(n))
2266
2266
  return n;
2267
2267
  throw new Error("The source must be finalized in order to complete the transfer");
@@ -2292,7 +2292,7 @@ class Zi extends ss {
2292
2292
  }), p = nt({
2293
2293
  chain: n.emitterChain,
2294
2294
  address: n.payload.sourceNttManager
2295
- }), w = kt(n.emitterChain) === "Solana" ? p : nt({
2295
+ }), w = pt(n.emitterChain) === "Solana" ? p : nt({
2296
2296
  chain: n.emitterChain,
2297
2297
  address: n.emitterAddress
2298
2298
  }), v = Q.resolveDestinationNttContracts(this.staticConfig.ntt, {
@@ -2368,7 +2368,7 @@ class Zi extends ss {
2368
2368
  const c = await this.wh.getChain(e.to).getProtocol("Ntt", {
2369
2369
  ntt: e.params.normalizedParams.destinationContracts
2370
2370
  });
2371
- if (Mt(e) && !Rn(e)) {
2371
+ if (bt(e) && !Rn(e)) {
2372
2372
  const [a] = await Pa(this.wh.network, e.originTxs.at(-1).txid, e.from);
2373
2373
  if (!a)
2374
2374
  throw new Error("No transaction status found");
@@ -2379,7 +2379,7 @@ class Zi extends ss {
2379
2379
  error: new _s(`Relay failed with status: ${l}`)
2380
2380
  }, yield e);
2381
2381
  }
2382
- if (Mt(e) || Rn(e)) {
2382
+ if (bt(e) || Rn(e)) {
2383
2383
  if (!e.attestation)
2384
2384
  throw new Error("No attestation found");
2385
2385
  const { attestation: { attestation: a } } = e;
@@ -13506,13 +13506,13 @@ function ys(i) {
13506
13506
  }
13507
13507
  function vs(i, e, n) {
13508
13508
  const { idl: { ntt: s } } = ys(n);
13509
- return new pt(s, e, {
13509
+ return new yt(s, e, {
13510
13510
  connection: i
13511
13511
  });
13512
13512
  }
13513
13513
  function Qa(i, e, n, s = !1) {
13514
13514
  const { idl: { transceiver: c, transceiverLegacy: a } } = ys(n), l = s ? a : c;
13515
- return new pt(l, e, {
13515
+ return new yt(l, e, {
13516
13516
  connection: i
13517
13517
  });
13518
13518
  }
@@ -13520,7 +13520,7 @@ const Ct = new L("BPFLoaderUpgradeab1e11111111111111111111111");
13520
13520
  function Et(i) {
13521
13521
  return L.findProgramAddressSync([new L(i).toBytes()], Ct)[0];
13522
13522
  }
13523
- function wt(i) {
13523
+ function St(i) {
13524
13524
  const e = i.split(".");
13525
13525
  if (e.length < 3)
13526
13526
  throw new Error("Invalid version string");
@@ -13638,7 +13638,7 @@ var J;
13638
13638
  payerKey: r,
13639
13639
  recentBlockhash: g,
13640
13640
  instructions: [f]
13641
- }).compileToV0Message(), S = new bt(y), m = await u.provider.connection.simulateTransaction(S, { sigVerify: !1 });
13641
+ }).compileToV0Message(), S = new At(y), m = await u.provider.connection.simulateTransaction(S, { sigVerify: !1 });
13642
13642
  if (!m.value.returnData || m.value.err)
13643
13643
  throw new Error("Could not fetch IDL version: " + JSON.stringify(Fs(m.value.err, Us(u.idl))));
13644
13644
  const o = Ds.decode(m.value.returnData?.data[0]), h = en(Lr, o), x = Gt.decode(h.version);
@@ -13649,7 +13649,7 @@ var J;
13649
13649
  }
13650
13650
  i.getVersion = n;
13651
13651
  async function s(d, t, r) {
13652
- const [u, , ,] = wt(d.idl.version), f = t.mode === "burning" ? { burning: {} } : { locking: {} }, g = at(t.chain);
13652
+ const [u, , ,] = St(d.idl.version), f = t.mode === "burning" ? { burning: {} } : { locking: {} }, g = at(t.chain);
13653
13653
  r = r ?? i.pdas(d.programId);
13654
13654
  const y = new Ze(t.outboundLimit.toString());
13655
13655
  return d.methods.initialize({ chainId: g, limit: y, mode: f }).accounts({
@@ -13673,7 +13673,7 @@ var J;
13673
13673
  }
13674
13674
  i.createInitializeInstruction = s;
13675
13675
  async function c(d, t, r, u, f) {
13676
- const [g, , ,] = wt(d.idl.version);
13676
+ const [g, , ,] = St(d.idl.version);
13677
13677
  if (g < 2)
13678
13678
  return;
13679
13679
  f = f ?? i.pdas(d.programId);
@@ -13805,7 +13805,7 @@ var J;
13805
13805
  }
13806
13806
  i.createTransferLockInstruction = l;
13807
13807
  async function p(d, t, r, u) {
13808
- const [f, , ,] = wt(d.idl.version);
13808
+ const [f, , ,] = St(d.idl.version);
13809
13809
  u = u ?? i.pdas(d.programId);
13810
13810
  const g = await Ft(d.provider.connection, t.mint, void 0, t.tokenProgram);
13811
13811
  let y = null;
@@ -14113,7 +14113,7 @@ var J;
14113
14113
  }
14114
14114
  i.getInboxItem = Ue;
14115
14115
  async function B(d, t) {
14116
- const [r, , ,] = wt(d.idl.version);
14116
+ const [r, , ,] = St(d.idl.version);
14117
14117
  if (r < 2)
14118
14118
  return null;
14119
14119
  t = t ?? i.pdas(d.programId);
@@ -14169,14 +14169,14 @@ const Ur = "2.0.0", jr = "ntt_quoter", qr = [{ name: "requestRelay", accounts: [
14169
14169
  accounts: $r,
14170
14170
  types: Vr,
14171
14171
  errors: Wr
14172
- }, yt = 1e6, vt = 1e9, Za = 1e9, Gr = "instance", Kr = "registered_chain", Qr = "registered_ntt", Hr = "relay_request";
14172
+ }, vt = 1e6, wt = 1e9, Za = 1e9, Gr = "instance", Kr = "registered_chain", Qr = "registered_ntt", Hr = "relay_request";
14173
14173
  class Zr {
14174
14174
  instance;
14175
14175
  program;
14176
14176
  nttProgramId;
14177
14177
  pdas;
14178
14178
  constructor(e, n, s) {
14179
- this.program = new pt(zr, new L(n), {
14179
+ this.program = new yt(zr, new L(n), {
14180
14180
  connection: e
14181
14181
  }), this.nttProgramId = new L(s), this.pdas = Br(this.program.programId), this.instance = G([Gr], this.program.programId);
14182
14182
  }
@@ -14200,7 +14200,7 @@ class Zr {
14200
14200
  ]);
14201
14201
  if (s > c.maxGasDropoffEth)
14202
14202
  throw new Error("Requested gas dropoff exceeds allowed maximum");
14203
- const w = c.nativePriceUsd * (s + c.gasPriceGwei * a.gasCost / vt);
14203
+ const w = c.nativePriceUsd * (s + c.gasPriceGwei * a.gasCost / wt);
14204
14204
  return p / Pt + (c.basePriceUsd + w) / l.solPriceUsd;
14205
14205
  }
14206
14206
  /**
@@ -14210,7 +14210,7 @@ class Zr {
14210
14210
  * @returns The estimated cost in lamports
14211
14211
  */
14212
14212
  async quoteDeliveryPrice(e, n) {
14213
- if (kt(e) !== "Evm")
14213
+ if (pt(e) !== "Evm")
14214
14214
  throw new Error("Only EVM chains are supported");
14215
14215
  const s = Ls(dt(n ?? 0n, 18)), [c, a, l, p] = await Promise.all([
14216
14216
  this.getRegisteredChain(e),
@@ -14224,13 +14224,13 @@ class Zr {
14224
14224
  throw new Error("SOL price is 0");
14225
14225
  if (s > c.maxGasDropoffEth)
14226
14226
  throw new Error("Requested gas dropoff exceeds allowed maximum");
14227
- const w = c.nativePriceUsd * (s + c.gasPriceGwei * l.gasCost / vt), v = p / Pt + (c.basePriceUsd + w) / a.solPriceUsd;
14227
+ const w = c.nativePriceUsd * (s + c.gasPriceGwei * l.gasCost / wt), v = p / Pt + (c.basePriceUsd + w) / a.solPriceUsd;
14228
14228
  return BigInt(qe.to(v * 1.05, Pt).toString());
14229
14229
  }
14230
14230
  async createRequestRelayInstruction(e, n, s, c, a) {
14231
14231
  return this.program.methods.requestRelay({
14232
14232
  maxFee: qe.to(c, Pt),
14233
- gasDropoff: qe.to(a, vt)
14233
+ gasDropoff: qe.to(a, wt)
14234
14234
  }).accountsStrict({
14235
14235
  payer: e,
14236
14236
  instance: this.instance,
@@ -14248,16 +14248,16 @@ class Zr {
14248
14248
  owner: e.owner,
14249
14249
  assistant: e.assistant,
14250
14250
  feeRecipient: e.feeRecipient,
14251
- solPriceUsd: qe.from(e.solPrice, yt)
14251
+ solPriceUsd: qe.from(e.solPrice, vt)
14252
14252
  };
14253
14253
  }
14254
14254
  async getRegisteredChain(e) {
14255
14255
  const n = await this.program.account.registeredChain.fetch(this.registeredChainPda(e));
14256
14256
  return {
14257
14257
  paused: n.basePrice.eq(qe.MAX),
14258
- maxGasDropoffEth: qe.from(n.maxGasDropoff, vt),
14259
- basePriceUsd: qe.from(n.basePrice, yt),
14260
- nativePriceUsd: qe.from(n.nativePrice, yt),
14258
+ maxGasDropoffEth: qe.from(n.maxGasDropoff, wt),
14259
+ basePriceUsd: qe.from(n.basePrice, vt),
14260
+ nativePriceUsd: qe.from(n.nativePrice, vt),
14261
14261
  gasPriceGwei: qe.from(n.gasPrice, Za)
14262
14262
  };
14263
14263
  }
@@ -14272,7 +14272,7 @@ class Zr {
14272
14272
  // which can be 0, so a strict === null check is required!
14273
14273
  async wasRelayRequested(e) {
14274
14274
  const n = await this.program.account.relayRequest.fetchNullable(this.relayRequestPda(e));
14275
- return n ? qe.from(n.requestedGasDropoff, vt) : null;
14275
+ return n ? qe.from(n.requestedGasDropoff, wt) : null;
14276
14276
  }
14277
14277
  async createInitalizeInstruction(e) {
14278
14278
  if (!this.program.account.instance.fetchNullable(this.instance))
@@ -14344,7 +14344,7 @@ class Zr {
14344
14344
  }
14345
14345
  async createUpdateSolPriceInstruction(e, n) {
14346
14346
  return this.program.methods.updateSolPrice({
14347
- solPrice: qe.to(n, yt)
14347
+ solPrice: qe.to(n, vt)
14348
14348
  }).accounts({
14349
14349
  authority: e,
14350
14350
  instance: this.instance
@@ -14352,8 +14352,8 @@ class Zr {
14352
14352
  }
14353
14353
  async createUpdateChainParamsInstruction(e, n, s, c) {
14354
14354
  return this.program.methods.updateChainParams({
14355
- maxGasDropoff: qe.to(s, vt),
14356
- basePrice: qe.to(c, yt)
14355
+ maxGasDropoff: qe.to(s, wt),
14356
+ basePrice: qe.to(c, vt)
14357
14357
  }).accounts({
14358
14358
  authority: e,
14359
14359
  instance: this.instance,
@@ -14372,7 +14372,7 @@ class Zr {
14372
14372
  }
14373
14373
  async createUpdateChainPricesInstruction(e, n, s, c) {
14374
14374
  return this.program.methods.updateChainPrices({
14375
- nativePrice: qe.to(s, yt),
14375
+ nativePrice: qe.to(s, vt),
14376
14376
  gasPrice: qe.to(c, Za)
14377
14377
  }).accounts({
14378
14378
  authority: e,
@@ -14658,11 +14658,11 @@ class Ja {
14658
14658
  const a = c.postMessageShimOverride ?? Nt.DEFAULT_SVM_SHIM_ADDRESSES[this.manager.chain]?.postMessageShim;
14659
14659
  if (!a)
14660
14660
  throw new Error("No default or override Wormhole Post Message Shim address provided");
14661
- this.postMessageShim = new pt(Jr, a, { connection: this.program.provider.connection });
14661
+ this.postMessageShim = new yt(Jr, a, { connection: this.program.provider.connection });
14662
14662
  const l = c.verifyVaaShimOverride ?? Nt.DEFAULT_SVM_SHIM_ADDRESSES[this.manager.chain]?.verifyVaaShim;
14663
14663
  if (!l)
14664
14664
  throw new Error("No default or override Wormhole Verify VAA Shim address provided");
14665
- this.verifyVaaShim = new pt(Yr, l, { connection: this.program.provider.connection });
14665
+ this.verifyVaaShim = new yt(Yr, l, { connection: this.program.provider.connection });
14666
14666
  }
14667
14667
  }
14668
14668
  async getPauser() {
@@ -14759,14 +14759,14 @@ class Ja {
14759
14759
  a.feePayer = e, a.add(c), yield this.manager.createUnsignedTx({ transaction: a }, "Ntt.CloseUnverifiedWormholeMessageAccount");
14760
14760
  }
14761
14761
  async getTransceiverType(e) {
14762
- const [n, , ,] = wt(this.version);
14762
+ const [n, , ,] = St(this.version);
14763
14763
  if (n < 3)
14764
14764
  return "wormhole";
14765
14765
  const s = new X(e).unwrap(), c = await this.program.methods.transceiverType().accountsStrict({}).instruction(), a = await this.program.provider.connection.getLatestBlockhash(), l = new gt({
14766
14766
  payerKey: s,
14767
14767
  recentBlockhash: a.blockhash,
14768
14768
  instructions: [c]
14769
- }).compileToV0Message(), p = new bt(l), w = await this.program.provider.connection.simulateTransaction(p, {
14769
+ }).compileToV0Message(), p = new At(l), w = await this.program.provider.connection.simulateTransaction(p, {
14770
14770
  sigVerify: !1
14771
14771
  });
14772
14772
  if (w.value.returnData?.data[0]) {
@@ -14845,7 +14845,7 @@ class Ja {
14845
14845
  }).instruction();
14846
14846
  }
14847
14847
  async createReleaseWormholeOutboundIx(e, n, s) {
14848
- const [c, , ,] = wt(this.version), a = Kt(this.program.programId, this.manager.core.address), l = this.postMessageShim ? this.pdas.wormholeMessageWithShimAccount(this.postMessageShim.programId) : this.pdas.wormholeMessageAccount(n);
14848
+ const [c, , ,] = St(this.version), a = Kt(this.program.programId, this.manager.core.address), l = this.postMessageShim ? this.pdas.wormholeMessageWithShimAccount(this.postMessageShim.programId) : this.pdas.wormholeMessageAccount(n);
14849
14849
  return this.program.methods.releaseWormholeOutbound({
14850
14850
  revertOnDelay: s
14851
14851
  }).accounts({
@@ -15136,7 +15136,7 @@ class an {
15136
15136
  payerKey: p,
15137
15137
  instructions: $,
15138
15138
  recentBlockhash: V
15139
- }).compileToV0Message(), Ve = new bt(Y);
15139
+ }).compileToV0Message(), Ve = new At(Y);
15140
15140
  yield this.createUnsignedTx({ transaction: Ve }, "Ntt.WrapNative");
15141
15141
  }
15142
15142
  const b = J.transferArgs(n, s, c.queue), M = {
@@ -15171,7 +15171,7 @@ class an {
15171
15171
  payerKey: p,
15172
15172
  instructions: N.instructions,
15173
15173
  recentBlockhash: (await this.connection.getLatestBlockhash()).blockhash
15174
- }).compileToV0Message(U), q = new bt(O);
15174
+ }).compileToV0Message(U), q = new At(O);
15175
15175
  yield this.createUnsignedTx({ transaction: q, signers: [a] }, "Ntt.Transfer");
15176
15176
  }
15177
15177
  async getTokenAccount(e) {
@@ -15246,7 +15246,7 @@ class an {
15246
15246
  payerKey: w,
15247
15247
  instructions: N.instructions,
15248
15248
  recentBlockhash: (await this.connection.getLatestBlockhash()).blockhash
15249
- }).compileToV0Message(U), q = new bt(O);
15249
+ }).compileToV0Message(U), q = new At(O);
15250
15250
  yield this.createUnsignedTx({ transaction: q }, "Ntt.Redeem");
15251
15251
  }
15252
15252
  }
@@ -15548,7 +15548,7 @@ const Xr = {
15548
15548
  }
15549
15549
  ]
15550
15550
  };
15551
- class St {
15551
+ class Mt {
15552
15552
  network;
15553
15553
  chain;
15554
15554
  connection;
@@ -15563,7 +15563,7 @@ class St {
15563
15563
  const [s, c] = await $n.chainFromRpc(e), a = n[c];
15564
15564
  if (a.network !== s)
15565
15565
  throw new Error(`Network mismatch: ${a.network} != ${s}`);
15566
- return new St(s, c, e, a.contracts);
15566
+ return new Mt(s, c, e, a.contracts);
15567
15567
  }
15568
15568
  async *transfer(e, n, s, c, a, l = !1) {
15569
15569
  const p = new X(e).unwrap(), w = { queue: !1, automatic: !1, wrapNative: l }, v = Ot.generate(), b = a.transfer(e, c.remainingAmount, n, w, v);
@@ -15580,7 +15580,7 @@ class St {
15580
15580
  const O = new L(c.referrer.address.toString()), { mint: q, tokenProgram: R } = await a.getConfig(), D = lt(q, O, !0, R), $ = lt(q, p, !0, R);
15581
15581
  await this.connection.getAccountInfo(D) || k.instructions.push(ii(p, D, O, q, R)), k.instructions.push(Mr($, D, p, c.referrerFee, void 0, R));
15582
15582
  }
15583
- const _ = new pt(eo, this.nttWithExecutorProgramId, { connection: this.connection }), N = new L(this.contracts.ntt.manager), U = L.findProgramAddressSync([H.from("peer"), ct(n.chain)], N)[0];
15583
+ const _ = new yt(eo, this.nttWithExecutorProgramId, { connection: this.connection }), N = new L(this.contracts.ntt.manager), U = L.findProgramAddressSync([H.from("peer"), ct(n.chain)], N)[0];
15584
15584
  if (k.instructions.push(await _.methods.relayNttMesage({
15585
15585
  execAmount: new Ze(c.estimatedCost.toString()),
15586
15586
  recipientChain: at(n.chain),
@@ -15595,7 +15595,7 @@ class St {
15595
15595
  executorProgram: this.executorProgramId
15596
15596
  }).instruction()), I.length === 0) {
15597
15597
  console.debug("no manager lookup table found, checking helper program");
15598
- const O = new pt(Xr, this.nttLutProgramId, { connection: this.connection }), q = L.findProgramAddressSync([H.from("lut"), N.toBuffer()], O.programId)[0];
15598
+ const O = new yt(Xr, this.nttLutProgramId, { connection: this.connection }), q = L.findProgramAddressSync([H.from("lut"), N.toBuffer()], O.programId)[0];
15599
15599
  let R = (
15600
15600
  // @ts-ignore
15601
15601
  await O.account.lut.fetchNullable(q)
@@ -15619,7 +15619,7 @@ class St {
15619
15619
  recentBlockhash: (await this.connection.getLatestBlockhash("finalized")).blockhash,
15620
15620
  instructions: [Ue]
15621
15621
  }).compileToV0Message();
15622
- yield a.createUnsignedTx({ transaction: new bt(B) }, "NttSvmLut.InitializeLut"), console.debug(`initialized lookup table: ${M}`);
15622
+ yield a.createUnsignedTx({ transaction: new At(B) }, "NttSvmLut.InitializeLut"), console.debug(`initialized lookup table: ${M}`);
15623
15623
  let Z = 0;
15624
15624
  for (; !R && Z < 10; )
15625
15625
  await new Promise((d) => setTimeout(d, 2e3)), R = // @ts-ignore
@@ -15642,10 +15642,10 @@ class St {
15642
15642
  if (a === null)
15643
15643
  throw new Error("Couldn't determine token program. Mint account is null.");
15644
15644
  const l = lt(c, s, !0, a.owner);
15645
- await this.connection.getAccountInfo(l) === null && (St.associatedTokenAccountMinRent || (St.associatedTokenAccountMinRent = BigInt(
15645
+ await this.connection.getAccountInfo(l) === null && (Mt.associatedTokenAccountMinRent || (Mt.associatedTokenAccountMinRent = BigInt(
15646
15646
  await this.connection.getMinimumBalanceForRentExemption(165)
15647
15647
  // ATA is 165 bytes
15648
- )), n += St.associatedTokenAccountMinRent);
15648
+ )), n += Mt.associatedTokenAccountMinRent);
15649
15649
  }
15650
15650
  return { msgValue: n, gasLimit: 250000n };
15651
15651
  }
@@ -15661,7 +15661,7 @@ class St {
15661
15661
  };
15662
15662
  })();
15663
15663
  cn(is, "Ntt", an);
15664
- cn(is, "NttWithExecutor", St);
15664
+ cn(is, "NttWithExecutor", Mt);
15665
15665
  const _t = {
15666
15666
  Mainnet: {
15667
15667
  coreBridgeStateId: "0xaeab97f96cf9877fee2883315d459552b2b921edc16d7ceac6eab944dd88919c",
@@ -16369,7 +16369,7 @@ class on {
16369
16369
  this.network = e, this.chain = n, this.provider = s, this.coreBridgeStateId = _t[e].coreBridgeStateId;
16370
16370
  }
16371
16371
  static async fromRpc(e, n) {
16372
- const [s, c] = await At.chainFromRpc(e), a = n[c];
16372
+ const [s, c] = await It.chainFromRpc(e), a = n[c];
16373
16373
  if (a.network !== s)
16374
16374
  throw new Error(`Network mismatch: ${a.network} != ${s}`);
16375
16375
  if (!("ntt" in a.contracts))
@@ -16634,11 +16634,11 @@ class on {
16634
16634
  } catch (B) {
16635
16635
  throw new Error(`Failed to convert destination address to bytes: ${B instanceof Error ? B.message : String(B)}`);
16636
16636
  }
16637
- const v = await Jn(this.network, this.contracts.ntt.token), b = this.contracts.ntt.token, M = Ms(b), k = new rs(M ? At.nativeTokenId(this.network, this.chain).address : b).getCoinType(), [_] = await (async () => {
16637
+ const v = await Jn(this.network, this.contracts.ntt.token), b = this.contracts.ntt.token, M = Ms(b), k = new rs(M ? It.nativeTokenId(this.network, this.chain).address : b).getCoinType(), [_] = await (async () => {
16638
16638
  if (M)
16639
16639
  return l.splitCoins(l.gas, [n]);
16640
16640
  {
16641
- const B = await At.getCoins(this.provider, e, k);
16641
+ const B = await It.getCoins(this.provider, e, k);
16642
16642
  if (B.length === 0)
16643
16643
  throw new Error(`No coins found for token type ${k}`);
16644
16644
  const [Z, ...d] = B;
@@ -17213,7 +17213,7 @@ class da {
17213
17213
  this.executorId = _t[e].executorId, this.executorRequestsId = _t[e].executorRequestsId, this.coreBridgeStateId = _t[e].coreBridgeStateId, this.nttContracts = c.ntt;
17214
17214
  }
17215
17215
  static async fromRpc(e, n) {
17216
- const [s, c] = await At.chainFromRpc(e), a = n[c];
17216
+ const [s, c] = await It.chainFromRpc(e), a = n[c];
17217
17217
  if (a.network !== s)
17218
17218
  throw new Error(`Network mismatch: ${a.network} != ${s}`);
17219
17219
  return new da(s, c, e, a.contracts);
@@ -17221,13 +17221,13 @@ class da {
17221
17221
  async *transfer(e, n, s, c, a, l = !1) {
17222
17222
  if (/* @__PURE__ */ new Date() > c.expires)
17223
17223
  throw new Error("Quote has expired");
17224
- if (!(await this.getSupportedDestinationChains()).includes(n.chain))
17224
+ if (!this.isSupportedDestinationChain(n.chain))
17225
17225
  throw new Error("Executor only supports Solana and EVM destination chains");
17226
- const w = await this.createSuiNttTransferWithExecutor(e, n, c, a);
17227
- yield new tt(w, this.network, this.chain, "NTT Transfer with Executor");
17226
+ const p = await this.createSuiNttTransferWithExecutor(e, n, c, a);
17227
+ yield new tt(p, this.network, this.chain, "NTT Transfer with Executor");
17228
17228
  }
17229
17229
  async createSuiNttTransferWithExecutor(e, n, s, c) {
17230
- const a = new Je(), l = st(n.chain), p = c.contracts.ntt.manager, w = c.contracts.ntt.token, v = Ms(w), M = new rs(v ? At.nativeTokenId(this.network, this.chain).address : w).getCoinType(), { packageId: I, fields: k } = await ts(c.provider, p), [_] = await bo(c.provider, k.transceivers.fields.id.id);
17230
+ const a = new Je(), l = st(n.chain), p = c.contracts.ntt.manager, w = c.contracts.ntt.token, v = Ms(w), M = new rs(v ? It.nativeTokenId(this.network, this.chain).address : w).getCoinType(), { packageId: I, fields: k } = await ts(c.provider, p), [_] = await bo(c.provider, k.transceivers.fields.id.id);
17231
17231
  if (!_)
17232
17232
  throw new Error("No transceiver state ID found");
17233
17233
  const { packageId: N } = await ts(c.provider, _);
@@ -17240,7 +17240,7 @@ class da {
17240
17240
  const O = await Jn(this.network, this.contracts.ntt.token);
17241
17241
  let q;
17242
17242
  if (!v) {
17243
- const o = await At.getCoins(this.provider, e, M), [h, ...x] = o.filter((T) => Xs(T.coinType, M));
17243
+ const o = await It.getCoins(this.provider, e, M), [h, ...x] = o.filter((T) => Xs(T.coinType, M));
17244
17244
  if (h === void 0)
17245
17245
  throw new Error(`Coins array doesn't contain any coins of type ${M}`);
17246
17246
  q = a.object(h.coinObjectId), x.length && a.mergeCoins(q, x.map((T) => a.object(T.coinObjectId)));
@@ -17358,18 +17358,9 @@ class da {
17358
17358
  async estimateMsgValueAndGasLimit(e) {
17359
17359
  return { msgValue: 0n, gasLimit: 20000000n };
17360
17360
  }
17361
- // Helper function to get supported destination chains
17362
- getSupportedDestinationChains() {
17363
- return [
17364
- "Solana",
17365
- "Ethereum",
17366
- "Bsc",
17367
- "Polygon",
17368
- "Avalanche",
17369
- "Arbitrum",
17370
- "Optimism",
17371
- "Base"
17372
- ];
17361
+ isSupportedDestinationChain(e) {
17362
+ const n = pt(e);
17363
+ return n === "Solana" || n === "Evm";
17373
17364
  }
17374
17365
  }
17375
17366
  cn(os, "Ntt", on);