@snowmonster_defi/widget 1.0.1 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +70 -39
- package/dist/{add-C1-3Nxd0.mjs → add-BPV517ty.mjs} +1 -1
- package/dist/{add-BMx827fr.js → add-BPho8Nes.js} +1 -1
- package/dist/{all-wallets-CeboYmll.mjs → all-wallets-CiIBeiWr.mjs} +1 -1
- package/dist/{all-wallets-Bw2RRXQf.js → all-wallets-vW2hc4rM.js} +1 -1
- package/dist/{app-store-C-SLhk-c.mjs → app-store-C6Z4049-.mjs} +1 -1
- package/dist/{app-store-DWCVxk5n.js → app-store-DsTJJkbc.js} +1 -1
- package/dist/{apple-C6JNxC7s.js → apple-BaIvScvo.js} +1 -1
- package/dist/{apple-C0-QMsmX.mjs → apple-BoVttKqM.mjs} +1 -1
- package/dist/{arrow-bottom-BQlfsLH7.js → arrow-bottom-B-4Ygcmm.js} +1 -1
- package/dist/{arrow-bottom-DBsoY1j4.mjs → arrow-bottom-IMykiiHq.mjs} +1 -1
- package/dist/{arrow-bottom-circle-BWbOWcMy.js → arrow-bottom-circle-u-wHHjSl.js} +1 -1
- package/dist/{arrow-bottom-circle-0d4DMC8k.mjs → arrow-bottom-circle-ww23Oo7w.mjs} +1 -1
- package/dist/{arrow-left-Buye_G_C.mjs → arrow-left-8UMbM21G.mjs} +1 -1
- package/dist/{arrow-left-CYea8lr5.js → arrow-left-D0A5ZeHX.js} +1 -1
- package/dist/{arrow-right-NcpIvTiP.mjs → arrow-right-D4msWuyB.mjs} +1 -1
- package/dist/{arrow-right-Bz07l-7m.js → arrow-right-Dof9_DCu.js} +1 -1
- package/dist/{arrow-top-CE8kNyrN.js → arrow-top-CvBYy8tE.js} +1 -1
- package/dist/{arrow-top-BHtmjrGh.mjs → arrow-top-GvPPq7Oj.mjs} +1 -1
- package/dist/{bank-54nZmUNU.js → bank-DVoUwWPa.js} +1 -1
- package/dist/{bank-foInih1V.mjs → bank-DitzyCyd.mjs} +1 -1
- package/dist/{basic-DgjjeOAX.js → basic-BZtwfI9s.js} +1 -1
- package/dist/{basic-BoWB3br8.mjs → basic-DaftXE56.mjs} +2 -2
- package/dist/{browser-b-nGXlqN.js → browser-BOjOgqqR.js} +1 -1
- package/dist/{browser-BC7vNobG.mjs → browser-DAoS0pqS.mjs} +1 -1
- package/dist/{card--XvDDn3y.mjs → card-BKTwGF3D.mjs} +1 -1
- package/dist/{card-BkMuyW1R.js → card-dnj6ci0D.js} +1 -1
- package/dist/{ccip-DKFQjR9A.mjs → ccip-C4MhpzIT.mjs} +1 -1
- package/dist/{ccip-B3WUowc8.js → ccip-D5uz0WmF.js} +1 -1
- package/dist/{checkmark-DXb72YHc.js → checkmark-X3jF2to2.js} +1 -1
- package/dist/{checkmark-BbGho5Io.mjs → checkmark-a4R9tQ59.mjs} +1 -1
- package/dist/{checkmark-bold-B1F7R5EK.mjs → checkmark-bold-B5m6nFJs.mjs} +1 -1
- package/dist/{checkmark-bold-DdBV1Lmi.js → checkmark-bold-CQsgaDa-.js} +1 -1
- package/dist/{chevron-bottom-XyYYwAR8.mjs → chevron-bottom-BxqBvchZ.mjs} +1 -1
- package/dist/{chevron-bottom-CQZ-Wq5W.js → chevron-bottom-DeedT_F1.js} +1 -1
- package/dist/{chevron-left-DuAvtNd0.mjs → chevron-left-BO7jNn6D.mjs} +1 -1
- package/dist/{chevron-left-8n-It-m1.js → chevron-left-CSnmuYaP.js} +1 -1
- package/dist/{chevron-right-W5vVm_KB.mjs → chevron-right-BDLOHLOC.mjs} +1 -1
- package/dist/{chevron-right-D59N_heq.js → chevron-right-C947RiRa.js} +1 -1
- package/dist/{chevron-top-DFkm04W3.mjs → chevron-top-DQeh2Y_5.mjs} +1 -1
- package/dist/{chevron-top-CEOzd8Ij.js → chevron-top-DcT74sQW.js} +1 -1
- package/dist/{chrome-store-BrkLwaGp.js → chrome-store-D5kzIuNb.js} +1 -1
- package/dist/{chrome-store-CP2NiEXz.mjs → chrome-store-N3_b-aes.mjs} +1 -1
- package/dist/{clock-B5JaCeFx.mjs → clock-CinkYoNf.mjs} +1 -1
- package/dist/{clock-LQXXXzZd.js → clock-Dtf4mH84.js} +1 -1
- package/dist/{close-w5A4PucI.mjs → close-D4MWwtJe.mjs} +1 -1
- package/dist/{close-CvPH2PaL.js → close-DI1RHF8v.js} +1 -1
- package/dist/{coinPlaceholder-haEbTDpA.mjs → coinPlaceholder-CsoXT7JB.mjs} +1 -1
- package/dist/{coinPlaceholder-DFh7VbZT.js → coinPlaceholder-DA1nHq9_.js} +1 -1
- package/dist/{compass-CvRkiQHa.mjs → compass-BLnQinlT.mjs} +1 -1
- package/dist/{compass-Df_6O9--.js → compass-C6vJRUYh.js} +1 -1
- package/dist/{copy-D0w04l-Q.js → copy-BrHIxCKf.js} +1 -1
- package/dist/{copy-CyrCMq2Q.mjs → copy-BuRNtKMA.mjs} +1 -1
- package/dist/{core-auWK_7Ox.mjs → core-7LtihVxb.mjs} +4 -4
- package/dist/{core-BdUBRviB.js → core-CKEBRqJG.js} +3 -3
- package/dist/{cursor-DFMotZ-L.js → cursor--U2SHjOW.js} +1 -1
- package/dist/{cursor-D5uRbW9D.mjs → cursor-B7D1R5Jx.mjs} +1 -1
- package/dist/{cursor-transparent-BanA5rDD.mjs → cursor-transparent-CLfz5eqc.mjs} +1 -1
- package/dist/{cursor-transparent-Cs4NrQu6.js → cursor-transparent-D8mgBLhV.js} +1 -1
- package/dist/{desktop-CheS5Az_.js → desktop-D15Zh6YB.js} +1 -1
- package/dist/{desktop-6Q-_rh47.mjs → desktop-LJLhtmCr.mjs} +1 -1
- package/dist/{disconnect-DltoX_gP.js → disconnect-Btu0RPvp.js} +1 -1
- package/dist/{disconnect-CRF11ye0.mjs → disconnect-DtHq3NW3.mjs} +1 -1
- package/dist/{discord-B6nj8oD_.mjs → discord-B2wex93m.mjs} +1 -1
- package/dist/{discord-CqY7Pilo.js → discord-D2XZHgYW.js} +1 -1
- package/dist/en_US-Y4ZOVFV4-D2wGVa2b.mjs +4 -0
- package/dist/{en_US-Y4ZOVFV4-Dn3zitY_.js → en_US-Y4ZOVFV4-DBqUKfQh.js} +1 -1
- package/dist/{etherscan-CLcbtjKR.mjs → etherscan-DnhJnMc1.mjs} +1 -1
- package/dist/{etherscan-DxjvKQo9.js → etherscan-DsJEkOUz.js} +1 -1
- package/dist/{exclamation-triangle-CxJuBpFB.mjs → exclamation-triangle-BU3gP5qY.mjs} +1 -1
- package/dist/{exclamation-triangle-D9vGQKFQ.js → exclamation-triangle-zwn1pVGJ.js} +1 -1
- package/dist/{extension-t0E2b7ef.mjs → extension-6YBZn5l5.mjs} +1 -1
- package/dist/{extension-CSqCxcZG.js → extension-tCaHxyD9.js} +1 -1
- package/dist/{external-link-B-Lcyi6R.mjs → external-link-DBT7XJ7w.mjs} +1 -1
- package/dist/{external-link-BoArXGTq.js → external-link-DvaiPeiZ.js} +1 -1
- package/dist/{facebook-DOkj8R5F.js → facebook-D_R2Ch8w.js} +1 -1
- package/dist/{facebook-Cnfem7th.mjs → facebook-Di4nk83F.mjs} +1 -1
- package/dist/{farcaster-BlN1w-oR.mjs → farcaster-DK7J9QZQ.mjs} +1 -1
- package/dist/{farcaster-DKhgfKln.js → farcaster-_bmxN7eE.js} +1 -1
- package/dist/{filters-w4oLgYuJ.js → filters-DMA0z9Xf.js} +1 -1
- package/dist/{filters-DY5tpPJB.mjs → filters-DYn3A8Qc.mjs} +1 -1
- package/dist/{github-Bq8YXj-l.js → github-BAqh5GDr.js} +1 -1
- package/dist/{github-BnOjmw_1.mjs → github-DTQwjsGN.mjs} +1 -1
- package/dist/{google-ySq_VIsy.mjs → google-Bxyl2WXy.mjs} +1 -1
- package/dist/{google-BjbAYNIf.js → google-Di6zv-2m.js} +1 -1
- package/dist/{help-circle-D_pee-dG.mjs → help-circle-BwuxonVp.mjs} +1 -1
- package/dist/{help-circle-MVmAyaVF.js → help-circle-CCnRbe9g.js} +1 -1
- package/dist/{id-ByfWOnEX.js → id-5NWvRbPW.js} +1 -1
- package/dist/{id-CuusF9Qd.mjs → id-CEIaI4H1.mjs} +1 -1
- package/dist/{image-BlN-YE3X.js → image-BO81Uk1U.js} +1 -1
- package/dist/{image-Cs26jwi7.mjs → image-ODLhaGq9.mjs} +1 -1
- package/dist/{index-BUG5Ve0i.mjs → index-C06gpTYX.mjs} +78 -78
- package/dist/{index-STIsWesT.js → index-CL3HAprc.js} +2 -2
- package/dist/{index-BKj9Y5tv.js → index-VHB4k7R7.js} +52 -52
- package/dist/{index-C8nreL9m.mjs → index-zFOcZ90F.mjs} +2785 -2791
- package/dist/index.cjs.js +1 -1
- package/dist/{index.es-e80IGd_J.mjs → index.es-0IhW12Mz.mjs} +3 -3
- package/dist/{index.es-APae9KBk.js → index.es-5uEkuPzw.js} +3 -3
- package/dist/index.es.js +1 -1
- package/dist/{info-Cb2Tnwp9.mjs → info-DOWjMq4g.mjs} +1 -1
- package/dist/{info-D7vY5t3I.js → info-Da_tw9Vb.js} +1 -1
- package/dist/{info-circle-CIVy5nVm.js → info-circle-BVI3pzZy.js} +1 -1
- package/dist/{info-circle-sI2i5HOv.mjs → info-circle-G3naLW3K.mjs} +1 -1
- package/dist/{lightbulb-5NUvCVy3.js → lightbulb-B-lGHBBk.js} +1 -1
- package/dist/{lightbulb-BYmcwWUA.mjs → lightbulb-BThmcys-.mjs} +1 -1
- package/dist/{mail-CT9BLct_.mjs → mail-BMjkQGoD.mjs} +1 -1
- package/dist/{mail-DAYPcxbx.js → mail-BXlcglnW.js} +1 -1
- package/dist/{metamask-sdk-5m3nvPtB.js → metamask-sdk-CKwOy3_1.js} +1 -1
- package/dist/{metamask-sdk-CPh1Wi1b.mjs → metamask-sdk-Y-ZzvFgh.mjs} +1 -1
- package/dist/{mobile-DNsm674z.js → mobile-BnBBc98F.js} +1 -1
- package/dist/{mobile-DRfo1ZAq.mjs → mobile-D7E8ud2a.mjs} +1 -1
- package/dist/{more-DFKbhNg4.js → more-CdcjjGWT.js} +1 -1
- package/dist/{more-DvtnI5Dv.mjs → more-st65oVJ-.mjs} +1 -1
- package/dist/{network-placeholder-BPGY0Pea.js → network-placeholder-BGP5yudU.js} +1 -1
- package/dist/{network-placeholder-DOmySIjI.mjs → network-placeholder-CIh7bVKs.mjs} +1 -1
- package/dist/{nftPlaceholder-CRB7uOjv.mjs → nftPlaceholder-B0i5-z9I.mjs} +1 -1
- package/dist/{nftPlaceholder-Dp6Tl1yi.js → nftPlaceholder-CHTKmYr7.js} +1 -1
- package/dist/{off-BVEy2I2N.js → off-CO2d06NG.js} +1 -1
- package/dist/{off-LjovEQOy.mjs → off-D3SBQ1uB.mjs} +1 -1
- package/dist/{play-store-DlHvVfW-.js → play-store-DqVbl3Da.js} +1 -1
- package/dist/{play-store-BwddU0Wq.mjs → play-store-md1rTEdi.mjs} +1 -1
- package/dist/{plus-ZMKluBd6.js → plus-9CuDNjjZ.js} +1 -1
- package/dist/{plus-C-X64_gj.mjs → plus-DKO6pqvO.mjs} +1 -1
- package/dist/{qr-code-bLEKEk0B.mjs → qr-code-CoBdSlMj.mjs} +1 -1
- package/dist/{qr-code-Dhu5TPha.js → qr-code-DnrpOmnA.js} +1 -1
- package/dist/{recycle-horizontal-9JHHDd4h.js → recycle-horizontal-FSLMVZm8.js} +1 -1
- package/dist/{recycle-horizontal-CS_0PZGV.mjs → recycle-horizontal-QVM9S5AC.mjs} +1 -1
- package/dist/{refresh-C_qXNL0S.mjs → refresh-BLIVGKaq.mjs} +1 -1
- package/dist/{refresh-DkMlARk7.js → refresh-COfPS7vr.js} +1 -1
- package/dist/{reown-logo-UwMrTrcX.js → reown-logo-CZAsRrs0.js} +1 -1
- package/dist/{reown-logo-CBPzCyQW.mjs → reown-logo-DUChpH7H.mjs} +1 -1
- package/dist/{search-CQuKFVAx.mjs → search-CLiLGFA4.mjs} +1 -1
- package/dist/{search-B4itLiVW.js → search-DLgB_GbD.js} +1 -1
- package/dist/{secp256k1-BB5DYugF.mjs → secp256k1-BJsOrooe.mjs} +1 -1
- package/dist/{secp256k1-BiRGPPqo.js → secp256k1-CNUh3htr.js} +1 -1
- package/dist/{secp256k1-Cf9t2cTM.mjs → secp256k1-Ccv5OiSV.mjs} +1 -1
- package/dist/{secp256k1-CI29X52U.js → secp256k1-bnuRwvDw.js} +1 -1
- package/dist/{send-qTi-ybzM.mjs → send-C1u-6SHt.mjs} +1 -1
- package/dist/{send-porC6mPB.js → send-DGshrpDA.js} +1 -1
- package/dist/{swapHorizontal-HantsmRd.js → swapHorizontal-CFbfyLgn.js} +1 -1
- package/dist/{swapHorizontal-C3MNcVMo.mjs → swapHorizontal-Cwjkdsr_.mjs} +1 -1
- package/dist/{swapHorizontalBold-XlXD6Scp.js → swapHorizontalBold-09z63E9T.js} +1 -1
- package/dist/{swapHorizontalBold-C_GQta-j.mjs → swapHorizontalBold-B28dKslj.mjs} +1 -1
- package/dist/{swapHorizontalMedium-ChYk0TiL.js → swapHorizontalMedium-DJYNXSPW.js} +1 -1
- package/dist/{swapHorizontalMedium-Bo6Sszm7.mjs → swapHorizontalMedium-trPBtiFC.mjs} +1 -1
- package/dist/{swapHorizontalRoundedBold-B5EvZSwz.mjs → swapHorizontalRoundedBold-CMZxOUua.mjs} +1 -1
- package/dist/{swapHorizontalRoundedBold-Dx_Co5wk.js → swapHorizontalRoundedBold-Ptc8r0vg.js} +1 -1
- package/dist/{swapVertical-cHQwpGr0.mjs → swapVertical-DY90vFiN.mjs} +1 -1
- package/dist/{swapVertical-fmzZLSPI.js → swapVertical-ny4gtovd.js} +1 -1
- package/dist/{telegram-Dv7wEgKb.js → telegram-C2ZKHNWF.js} +1 -1
- package/dist/{telegram-BdrptLN3.mjs → telegram-l0Kq7QNJ.mjs} +1 -1
- package/dist/{three-dots-DEs9ZhDC.mjs → three-dots-BfIVjHqD.mjs} +1 -1
- package/dist/{three-dots-CPXRPIKy.js → three-dots-D7fNl4Y3.js} +1 -1
- package/dist/{twitch-Ck5pSyDI.js → twitch-Cp3J00vk.js} +1 -1
- package/dist/{twitch-IQhZ8m1X.mjs → twitch-mse8Ps_4.mjs} +1 -1
- package/dist/{twitterIcon-DsS9CDA5.mjs → twitterIcon-BJ_sFyVT.mjs} +1 -1
- package/dist/{twitterIcon-DO8XDAwC.js → twitterIcon-H4h5Aywp.js} +1 -1
- package/dist/types/index.d.ts +7 -0
- package/dist/utils/constants.d.ts +15 -2
- package/dist/{verify-CgTgRejE.js → verify-CGPWx5np.js} +1 -1
- package/dist/{verify-filled-BhxgjhKC.js → verify-filled-D9Glq4lu.js} +1 -1
- package/dist/{verify-filled-QPe9Hi2W.mjs → verify-filled-DUK_OCSP.mjs} +1 -1
- package/dist/{verify-DOD4hBvs.mjs → verify-s1BE8BKh.mjs} +1 -1
- package/dist/{w3m-modal-DLEWxfrc.js → w3m-modal-B5jwhJmy.js} +1 -1
- package/dist/{w3m-modal-C3JE1VNb.mjs → w3m-modal-C6jLvRzV.mjs} +2 -2
- package/dist/{wallet-ByF6bf_R.mjs → wallet-Bzh0erOH.mjs} +1 -1
- package/dist/{wallet-DU_BeJ1K.js → wallet-g7RENq36.js} +1 -1
- package/dist/{wallet-placeholder-C3VkDDkp.js → wallet-placeholder-BcUgE4NN.js} +1 -1
- package/dist/{wallet-placeholder-DBpXjyqE.mjs → wallet-placeholder-CEzpeXcS.mjs} +1 -1
- package/dist/{walletconnect-DC4CEinm.js → walletconnect-BKjSlNIP.js} +1 -1
- package/dist/{walletconnect-B2bmSYc7.mjs → walletconnect-CK6Oi70p.mjs} +1 -1
- package/dist/{warning-circle-CYTT9cYz.mjs → warning-circle-A8bchW2N.mjs} +1 -1
- package/dist/{warning-circle-BBKO7OkV.js → warning-circle-CkEcV2BW.js} +1 -1
- package/dist/{x-DG2aE2ub.mjs → x-D9Vj3f9W.mjs} +1 -1
- package/dist/{x-PLo7_AhG.js → x-DZ3xIhAs.js} +1 -1
- package/package.json +9 -4
- package/dist/en_US-Y4ZOVFV4-hyEPVcDM.mjs +0 -4
package/README.md
CHANGED
|
@@ -1,71 +1,107 @@
|
|
|
1
|
-
#
|
|
1
|
+
# AVAX Router Widget
|
|
2
2
|
|
|
3
|
-
Embeddable swap widget for Avalanche DEX Router
|
|
3
|
+
Embeddable swap widget for Avalanche DEX Router. Add DeFi swaps to your React app in minutes — and **earn 0.25% on every swap** through partner fee sharing.
|
|
4
|
+
|
|
5
|
+
## 💰 Partner Fee Sharing
|
|
6
|
+
|
|
7
|
+
When you integrate the widget with your `partnerId`, you earn **0.25% of every swap** automatically:
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
$1,000 swap through your app → You earn $2.50
|
|
11
|
+
$10,000 swap through your app → You earn $25.00
|
|
12
|
+
$100,000 swap through your app → You earn $250.00
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Fees are split on-chain by our `PartnerRegistry` contract — transparent and trustless.
|
|
4
16
|
|
|
5
17
|
## Installation
|
|
6
18
|
|
|
7
19
|
```bash
|
|
8
|
-
npm install @
|
|
20
|
+
npm install @snowmonster_defi/widget
|
|
9
21
|
# or
|
|
10
|
-
yarn add @
|
|
22
|
+
yarn add @snowmonster_defi/widget
|
|
11
23
|
```
|
|
12
24
|
|
|
13
|
-
##
|
|
25
|
+
## Quick Start
|
|
14
26
|
|
|
15
|
-
###
|
|
27
|
+
### 1. Wrap your app with Web3Provider
|
|
16
28
|
|
|
17
29
|
```tsx
|
|
18
|
-
import {
|
|
30
|
+
import { Web3Provider } from '@snowmonster_defi/widget';
|
|
19
31
|
|
|
20
32
|
function App() {
|
|
21
33
|
return (
|
|
22
|
-
<
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
defaultTokenOut="0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E" // USDC
|
|
26
|
-
onSwapSuccess={(receipt) => console.log('Swapped!', receipt)}
|
|
27
|
-
/>
|
|
34
|
+
<Web3Provider theme="dark">
|
|
35
|
+
<YourApp />
|
|
36
|
+
</Web3Provider>
|
|
28
37
|
);
|
|
29
38
|
}
|
|
30
39
|
```
|
|
31
40
|
|
|
32
|
-
###
|
|
41
|
+
### 2. Add the Widget
|
|
42
|
+
|
|
43
|
+
```tsx
|
|
44
|
+
import { DexRouterWidget } from '@snowmonster_defi/widget';
|
|
33
45
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
46
|
+
function SwapPage() {
|
|
47
|
+
return (
|
|
48
|
+
<DexRouterWidget
|
|
49
|
+
theme="dark"
|
|
50
|
+
primaryColor="#E84142"
|
|
51
|
+
defaultTokenIn="AVAX"
|
|
52
|
+
defaultTokenOut="USDC"
|
|
53
|
+
partnerId="your-partner-id"
|
|
54
|
+
onSwapSuccess={(receipt) => console.log('Swap done!', receipt)}
|
|
55
|
+
/>
|
|
56
|
+
);
|
|
57
|
+
}
|
|
41
58
|
```
|
|
42
59
|
|
|
43
60
|
## Configuration
|
|
44
61
|
|
|
45
62
|
| Prop | Type | Default | Description |
|
|
46
63
|
|------|------|---------|-------------|
|
|
47
|
-
| `theme` | `'light' \| 'dark'
|
|
64
|
+
| `theme` | `'light' \| 'dark'` | `'dark'` | Color theme |
|
|
48
65
|
| `primaryColor` | `string` | `'#E84142'` | Brand color (hex) |
|
|
49
66
|
| `borderRadius` | `'sm' \| 'md' \| 'lg' \| 'full'` | `'lg'` | Corner radius |
|
|
50
67
|
| `width` | `'compact' \| 'default' \| 'wide'` | `'default'` | Widget width |
|
|
51
|
-
| `defaultTokenIn` | `string` | - | Default input token address |
|
|
52
|
-
| `defaultTokenOut` | `string` | - | Default output token address |
|
|
68
|
+
| `defaultTokenIn` | `string` | - | Default input token (address or symbol) |
|
|
69
|
+
| `defaultTokenOut` | `string` | - | Default output token (address or symbol) |
|
|
53
70
|
| `slippage` | `number` | `0.5` | Slippage tolerance (%) |
|
|
54
|
-
| `partnerId` | `string` | - |
|
|
55
|
-
| `apiUrl` | `string` |
|
|
71
|
+
| `partnerId` | `string` | - | **Your partner ID for fee sharing** |
|
|
72
|
+
| `apiUrl` | `string` | Cloudflare Worker | Custom API endpoint |
|
|
73
|
+
| `hideRouteInfo` | `boolean` | `false` | Hide route details |
|
|
74
|
+
| `hideSettings` | `boolean` | `false` | Hide settings button |
|
|
56
75
|
| `onSwapStart` | `(quote) => void` | - | Swap initiated callback |
|
|
57
76
|
| `onSwapSuccess` | `(receipt) => void` | - | Swap success callback |
|
|
58
77
|
| `onSwapError` | `(error) => void` | - | Swap error callback |
|
|
59
78
|
|
|
60
79
|
## Features
|
|
61
80
|
|
|
62
|
-
- ✅ Real-time price quotes
|
|
63
|
-
- ✅
|
|
64
|
-
- ✅
|
|
65
|
-
- ✅ Customizable themes
|
|
66
|
-
- ✅ Partner tracking
|
|
81
|
+
- ✅ Real-time price quotes from top DEXs
|
|
82
|
+
- ✅ Partner fee sharing (earn 0.25%)
|
|
83
|
+
- ✅ Auto AVAX wrapping for native swaps
|
|
84
|
+
- ✅ Customizable themes and colors
|
|
67
85
|
- ✅ Mobile responsive
|
|
68
|
-
- ✅ Wallet connection
|
|
86
|
+
- ✅ Wallet connection (RainbowKit)
|
|
87
|
+
- ✅ 18+ Avalanche tokens supported
|
|
88
|
+
- ✅ TypeScript native
|
|
89
|
+
|
|
90
|
+
## Supported DEXs
|
|
91
|
+
|
|
92
|
+
| DEX | Status |
|
|
93
|
+
|-----|--------|
|
|
94
|
+
| Trader Joe V1 | ✅ Live |
|
|
95
|
+
|
|
96
|
+
More DEX integrations coming soon.
|
|
97
|
+
|
|
98
|
+
## Deployed Contracts (Avalanche Mainnet)
|
|
99
|
+
|
|
100
|
+
| Contract | Address |
|
|
101
|
+
|----------|---------|
|
|
102
|
+
| DexRouter | `0x81308B8e4C72E5aA042ADA30f9b29729c5a43098` |
|
|
103
|
+
| PartnerRegistry | `0xBF1f8E2872E82555e1Ce85b31077e2903368d943` |
|
|
104
|
+
| TraderJoe V1 Adapter | `0x108831f20954211336704eaE0483e887a7bfd3A1` |
|
|
69
105
|
|
|
70
106
|
## Build
|
|
71
107
|
|
|
@@ -75,11 +111,6 @@ npm install
|
|
|
75
111
|
npm run build
|
|
76
112
|
```
|
|
77
113
|
|
|
78
|
-
##
|
|
79
|
-
|
|
80
|
-
```bash
|
|
81
|
-
npm run build
|
|
82
|
-
# Publish to npm
|
|
83
|
-
npm publish
|
|
84
|
-
```
|
|
114
|
+
## License
|
|
85
115
|
|
|
116
|
+
MIT
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./core-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./core-CKEBRqJG.js"),l=e.w`<svg
|
|
2
2
|
width="14"
|
|
3
3
|
height="14"
|
|
4
4
|
viewBox="0 0 14 14"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./core-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./core-CKEBRqJG.js"),e=l.w`<svg fill="none" viewBox="0 0 24 24">
|
|
2
2
|
<path
|
|
3
3
|
style="fill: var(--wui-color-accent-100);"
|
|
4
4
|
d="M10.2 6.6a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0ZM21 6.6a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0ZM10.2 17.4a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0ZM21 17.4a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0Z"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./core-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./core-CKEBRqJG.js"),t=e.w`
|
|
2
2
|
<svg width="36" height="36">
|
|
3
3
|
<path
|
|
4
4
|
d="M28.724 0H7.271A7.269 7.269 0 0 0 0 7.272v21.46A7.268 7.268 0 0 0 7.271 36H28.73A7.272 7.272 0 0 0 36 28.728V7.272A7.275 7.275 0 0 0 28.724 0Z"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./core-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./core-CKEBRqJG.js"),i=l.w`<svg fill="none" viewBox="0 0 40 40">
|
|
2
2
|
<g clip-path="url(#a)">
|
|
3
3
|
<g clip-path="url(#b)">
|
|
4
4
|
<circle cx="20" cy="19.89" r="20" fill="#000" />
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./core-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./core-CKEBRqJG.js"),o=e.w`<svg fill="none" viewBox="0 0 14 15">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./core-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./core-CKEBRqJG.js"),o=e.w`<svg
|
|
2
2
|
fill="none"
|
|
3
3
|
viewBox="0 0 21 20"
|
|
4
4
|
>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./core-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./core-CKEBRqJG.js"),r=e.w`<svg fill="none" viewBox="0 0 14 15">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./core-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./core-CKEBRqJG.js"),l=e.w`<svg fill="none" viewBox="0 0 14 15">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./core-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./core-CKEBRqJG.js"),o=e.w`<svg fill="none" viewBox="0 0 14 15">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./core-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./core-CKEBRqJG.js"),l=e.w`<svg
|
|
2
2
|
xmlns="http://www.w3.org/2000/svg"
|
|
3
3
|
width="12"
|
|
4
4
|
height="13"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./core-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./core-CKEBRqJG.js"),c=require("./index-CL3HAprc.js"),bn=a.i`
|
|
2
2
|
:host {
|
|
3
3
|
position: relative;
|
|
4
4
|
background-color: var(--wui-color-gray-glass-002);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { k as P, o as M, l as A, m as I, n as c, y as L, D as T, O as Y, G as E, E as J, R as O, P as je, u as D, Q as S, U as ft, I as Hi, W as gt, C as kt, v as si, T as jt, B as Qe, M as vi, V as yi, w as Ae, L as li, q as Ki } from "./core-
|
|
2
|
-
import { n as u, c as C, o as y, r as v, U as se, e as Gi, f as Yi, a as Ji } from "./index-
|
|
1
|
+
import { k as P, o as M, l as A, m as I, n as c, y as L, D as T, O as Y, G as E, E as J, R as O, P as je, u as D, Q as S, U as ft, I as Hi, W as gt, C as kt, v as si, T as jt, B as Qe, M as vi, V as yi, w as Ae, L as li, q as Ki } from "./core-7LtihVxb.mjs";
|
|
2
|
+
import { n as u, c as C, o as y, r as v, U as se, e as Gi, f as Yi, a as Ji } from "./index-C06gpTYX.mjs";
|
|
3
3
|
const Qi = P`
|
|
4
4
|
:host {
|
|
5
5
|
position: relative;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./core-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./core-CKEBRqJG.js"),l=e.w`<svg fill="none" viewBox="0 0 20 20">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("./core-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("./core-CKEBRqJG.js"),e=C.w`<svg
|
|
2
2
|
xmlns="http://www.w3.org/2000/svg"
|
|
3
3
|
width="12"
|
|
4
4
|
height="13"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as p, g as m, s as w, d as k, i as b, l as L, a as O, c as E, b as x, f as R, H as y, h as M } from "./index-
|
|
1
|
+
import { B as p, g as m, s as w, d as k, i as b, l as L, a as O, c as E, b as x, f as R, H as y, h as M } from "./index-zFOcZ90F.mjs";
|
|
2
2
|
class S extends p {
|
|
3
3
|
constructor({ callbackSelector: r, cause: a, data: n, extraData: i, sender: f, urls: t }) {
|
|
4
4
|
var o;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-VHB4k7R7.js");class w extends e.BaseError{constructor({callbackSelector:o,cause:a,data:c,extraData:u,sender:d,urls:r}){var n;super(a.shortMessage||"An error occurred while fetching for an offchain result.",{cause:a,metaMessages:[...a.metaMessages||[],(n=a.metaMessages)!=null&&n.length?"":[],"Offchain Gateway Call:",r&&[" Gateway URL(s):",...r.map(f=>` ${e.getUrl(f)}`)],` Sender: ${d}`,` Data: ${c}`,` Callback selector: ${o}`,` Extra data: ${u}`].flat(),name:"OffchainLookupError"})}}class k extends e.BaseError{constructor({result:o,url:a}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${e.getUrl(a)}`,`Response: ${e.stringify(o)}`],name:"OffchainLookupResponseMalformedError"})}}class b extends e.BaseError{constructor({sender:o,to:a}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${a}`,`OffchainLookup sender address: ${o}`],name:"OffchainLookupSenderMismatchError"})}}const L="0x556f1830",y={name:"OffchainLookup",type:"error",inputs:[{name:"sender",type:"address"},{name:"urls",type:"string[]"},{name:"callData",type:"bytes"},{name:"callbackFunction",type:"bytes4"},{name:"extraData",type:"bytes"}]};async function E(i,{blockNumber:o,blockTag:a,data:c,to:u}){const{args:d}=e.decodeErrorResult({data:c,abi:[y]}),[r,n,f,l,s]=d,{ccipRead:t}=i,h=t&&typeof(t==null?void 0:t.request)=="function"?t.request:m;try{if(!e.isAddressEqual(u,r))throw new b({sender:r,to:u});const p=n.includes(e.localBatchGatewayUrl)?await e.localBatchGatewayRequest({data:f,ccipRequest:h}):await h({data:f,sender:r,urls:n}),{data:g}=await e.call(i,{blockNumber:o,blockTag:a,data:e.concat([l,e.encodeAbiParameters([{type:"bytes"},{type:"bytes"}],[p,s])]),to:u});return g}catch(p){throw new w({callbackSelector:l,cause:p,data:c,extraData:s,sender:r,urls:n})}}async function m({data:i,sender:o,urls:a}){var u;let c=new Error("An unknown error occurred.");for(let d=0;d<a.length;d++){const r=a[d],n=r.includes("{data}")?"GET":"POST",f=n==="POST"?{data:i,sender:o}:void 0,l=n==="POST"?{"Content-Type":"application/json"}:{};try{const s=await fetch(r.replace("{sender}",o.toLowerCase()).replace("{data}",i),{body:JSON.stringify(f),headers:l,method:n});let t;if((u=s.headers.get("Content-Type"))!=null&&u.startsWith("application/json")?t=(await s.json()).data:t=await s.text(),!s.ok){c=new e.HttpRequestError({body:f,details:t!=null&&t.error?e.stringify(t.error):s.statusText,headers:s.headers,status:s.status,url:r});continue}if(!e.isHex(t)){c=new k({result:t,url:r});continue}return t}catch(s){c=new e.HttpRequestError({body:f,details:s.message,url:r})}}throw c}exports.ccipRequest=m;exports.offchainLookup=E;exports.offchainLookupAbiItem=y;exports.offchainLookupSignature=L;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./core-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./core-CKEBRqJG.js"),r=e.w`<svg
|
|
2
2
|
width="28"
|
|
3
3
|
height="28"
|
|
4
4
|
viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./core-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./core-CKEBRqJG.js"),l=e.w`<svg fill="none" viewBox="0 0 14 14">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./core-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./core-CKEBRqJG.js"),o=e.w`<svg fill="none" viewBox="0 0 16 16">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./core-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./core-CKEBRqJG.js"),l=e.w`<svg fill="none" viewBox="0 0 16 16">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./core-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./core-CKEBRqJG.js"),l=e.w`<svg fill="none" viewBox="0 0 16 16">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./core-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./core-CKEBRqJG.js"),o=e.w`<svg fill="none" viewBox="0 0 16 16">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./core-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./core-CKEBRqJG.js"),e=t.w`<svg width="36" height="36" fill="none">
|
|
2
2
|
<path
|
|
3
3
|
fill="#fff"
|
|
4
4
|
fill-opacity=".05"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./core-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./core-CKEBRqJG.js"),l=e.w`<svg width="14" height="14" viewBox="0 0 14 14" fill="none">
|
|
2
2
|
<path
|
|
3
3
|
fill-rule="evenodd"
|
|
4
4
|
clip-rule="evenodd"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./core-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./core-CKEBRqJG.js"),l=e.w`<svg fill="none" viewBox="0 0 16 16">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./core-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./core-CKEBRqJG.js"),l=e.w`<svg fill="none" viewBox="0 0 20 20">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./core-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./core-CKEBRqJG.js"),l=e.w`<svg fill="none" viewBox="0 0 16 16">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("./core-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("./core-CKEBRqJG.js"),e=C.w`<svg
|
|
2
2
|
xmlns="http://www.w3.org/2000/svg"
|
|
3
3
|
width="16"
|
|
4
4
|
height="16"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { h as Yi, s as In, i as la, j as Hh, k as Kh, l as Vh, m as Gh, n as Jh, o as Ta, I as Hr, p as Yh, q as Ot, u as dt, v as D, x as Rr, C as Xh, y as Yl, z as Zh, A as Qh, B as mi, D as _o, E as er, F as Li, G as Xl, J as rt, K as ed, L as Et, M as qs, N as Kr, O as ua, P as Tt, Q as td, R as ha, S as da, T as $n, U as pa, V as ka, W as sd, X as rd, Y as Sr, Z as Zl, _ as is, $ as Ht, a0 as us, a1 as Bt } from "./index.es-
|
|
2
|
-
import { n as id, T as nd, U as od, W as ad, E as cd, w as ld, o as ud, p as Xi, t as xa } from "./index-
|
|
1
|
+
import { h as Yi, s as In, i as la, j as Hh, k as Kh, l as Vh, m as Gh, n as Jh, o as Ta, I as Hr, p as Yh, q as Ot, u as dt, v as D, x as Rr, C as Xh, y as Yl, z as Zh, A as Qh, B as mi, D as _o, E as er, F as Li, G as Xl, J as rt, K as ed, L as Et, M as qs, N as Kr, O as ua, P as Tt, Q as td, R as ha, S as da, T as $n, U as pa, V as ka, W as sd, X as rd, Y as Sr, Z as Zl, _ as is, $ as Ht, a0 as us, a1 as Bt } from "./index.es-0IhW12Mz.mjs";
|
|
2
|
+
import { n as id, T as nd, U as od, W as ad, E as cd, w as ld, o as ud, p as Xi, t as xa } from "./index-zFOcZ90F.mjs";
|
|
3
3
|
function $a(t, e = {}) {
|
|
4
4
|
const { key: s = "fallback", name: r = "Fallback", rank: i = !1, shouldThrow: n = hd, retryCount: o, retryDelay: a } = e;
|
|
5
5
|
return ({ chain: c, pollingInterval: l = 4e3, timeout: u, ...h }) => {
|
|
@@ -5726,7 +5726,7 @@ function Ff(t) {
|
|
|
5726
5726
|
return Bf(`0x${e}`);
|
|
5727
5727
|
}
|
|
5728
5728
|
async function jf({ hash: t, signature: e }) {
|
|
5729
|
-
const s = Pi(t) ? t : $o(t), { secp256k1: r } = await import("./secp256k1-
|
|
5729
|
+
const s = Pi(t) ? t : $o(t), { secp256k1: r } = await import("./secp256k1-Ccv5OiSV.mjs");
|
|
5730
5730
|
return `0x${(() => {
|
|
5731
5731
|
if (typeof e == "object" && "r" in e && "s" in e) {
|
|
5732
5732
|
const { r: l, s: u, v: h, yParity: d } = e, p = Number(d ?? h), w = ec(p);
|
|
@@ -16176,7 +16176,7 @@ class Wh extends zC {
|
|
|
16176
16176
|
}
|
|
16177
16177
|
async injectModalUi() {
|
|
16178
16178
|
if (!Gl && X.isClient()) {
|
|
16179
|
-
if (await import("./basic-
|
|
16179
|
+
if (await import("./basic-DaftXE56.mjs"), await import("./w3m-modal-C6jLvRzV.mjs"), !document.querySelector("w3m-modal")) {
|
|
16180
16180
|
const s = document.createElement("w3m-modal");
|
|
16181
16181
|
!T.state.disableAppend && !T.state.enableEmbedded && document.body.insertAdjacentElement("beforeend", s);
|
|
16182
16182
|
}
|