@upcoming/multichain-widget 0.1.5 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (147) hide show
  1. package/README.md +75 -43
  2. package/dist/Intent.d.ts +5 -0
  3. package/dist/MultichainTheme.d.ts +1 -0
  4. package/dist/Router.d.ts +6 -1
  5. package/dist/Tab1.d.ts +4 -1
  6. package/dist/Tab2.d.ts +2 -1
  7. package/dist/Utility.d.ts +1 -0
  8. package/dist/{add-DCmjdKhv.mjs → add-DKTOrhmM.mjs} +1 -1
  9. package/dist/{all-wallets-BenOl5cn.mjs → all-wallets-aYzIazvp.mjs} +1 -1
  10. package/dist/{app-store-BAxV9Oss.mjs → app-store-CKrxMlxU.mjs} +1 -1
  11. package/dist/{apple-Js7x0n29.mjs → apple-CJFbfjqC.mjs} +1 -1
  12. package/dist/{ar_AR-CTNWGWSS-B2yhhasT.mjs → ar_AR-44JUQ6EW-DZr8TU0E.mjs} +85 -25
  13. package/dist/{arrow-bottom-C8mDCNTG.mjs → arrow-bottom-6hVe7wm0.mjs} +1 -1
  14. package/dist/{arrow-bottom-circle-Dr2y1qr6.mjs → arrow-bottom-circle-_rfKaesm.mjs} +1 -1
  15. package/dist/{arrow-left-DHVTMU70.mjs → arrow-left-vFsMFs5X.mjs} +1 -1
  16. package/dist/{arrow-right-CIl_WFc-.mjs → arrow-right-DNmCe1hl.mjs} +1 -1
  17. package/dist/{arrow-top-CLhr_7rE.mjs → arrow-top-3kV0--PO.mjs} +1 -1
  18. package/dist/{bank-9jFrSkdD.mjs → bank-UC0Wo-M3.mjs} +1 -1
  19. package/dist/baseAccount-44UITRK7-BPWMYfgK.mjs +4 -0
  20. package/dist/{basic-BWB5d8iC.mjs → basic-Dr7uchAM.mjs} +72 -77
  21. package/dist/{browser-BOE99Y2D.mjs → browser-DIrq4E9X.mjs} +1 -1
  22. package/dist/{card-7au0qNmZ.mjs → card-DyGXQ_xB.mjs} +1 -1
  23. package/dist/{ccip-CDxxpPZc.mjs → ccip-CdYPmLxY.mjs} +1 -1
  24. package/dist/{checkmark-BI6X2oer.mjs → checkmark-DDFrz950.mjs} +1 -1
  25. package/dist/{checkmark-bold-Bi3X4ks1.mjs → checkmark-bold-BlZK2WdM.mjs} +1 -1
  26. package/dist/{chevron-bottom-AfWhEXZt.mjs → chevron-bottom-DjQbReGh.mjs} +1 -1
  27. package/dist/{chevron-left-DMC2Idxg.mjs → chevron-left-2vPMoi5c.mjs} +1 -1
  28. package/dist/{chevron-right-C0KBLzab.mjs → chevron-right-YWtBje-5.mjs} +1 -1
  29. package/dist/{chevron-top-BCyXD5so.mjs → chevron-top-DKmWxpPJ.mjs} +1 -1
  30. package/dist/{chrome-store-B4tbU_2j.mjs → chrome-store-uwPUSaie.mjs} +1 -1
  31. package/dist/{clock-DNeo7jWU.mjs → clock-BkMC4mPm.mjs} +1 -1
  32. package/dist/{close-Db-rUE7b.mjs → close-CMJ1Hqmj.mjs} +1 -1
  33. package/dist/{coinPlaceholder-6nJSLCLq.mjs → coinPlaceholder-Bf8G7kLI.mjs} +1 -1
  34. package/dist/{compass-BpG_zXGe.mjs → compass-C1Z0-p-N.mjs} +1 -1
  35. package/dist/components/IntentInfo.d.ts +8 -0
  36. package/dist/{ProgressStatus.d.ts → components/ProgressStatus.d.ts} +2 -2
  37. package/dist/{ProgressTracker.d.ts → components/ProgressTracker.d.ts} +2 -2
  38. package/dist/components/QuoteIndicator.d.ts +8 -0
  39. package/dist/components/TokenDisplay.d.ts +8 -0
  40. package/dist/{copy-DbcHRukM.mjs → copy-DxCof3yl.mjs} +1 -1
  41. package/dist/{core-L3uBGNm9.mjs → core-BSjxlOS1.mjs} +2890 -3401
  42. package/dist/{cursor-DJPChK-X.mjs → cursor-T-6Bjeul.mjs} +1 -1
  43. package/dist/{cursor-transparent-So5kf6gj.mjs → cursor-transparent-BjMsPQO7.mjs} +1 -1
  44. package/dist/{de_DE-P43L3PR7-CtO9uiNS.mjs → de_DE-PYAO5YD6-DRiWndek.mjs} +81 -21
  45. package/dist/{desktop-DUIlnasS.mjs → desktop-DfO5SLm6.mjs} +1 -1
  46. package/dist/{disconnect-ZL28HL8X.mjs → disconnect-eMvwMOmY.mjs} +1 -1
  47. package/dist/{discord-DzLsLKbK.mjs → discord-COTxDMht.mjs} +1 -1
  48. package/dist/en_US-Y4ZOVFV4-D0OdwtbY.mjs +4 -0
  49. package/dist/{es_419-JBX5FS3Q-hWy9nCEf.mjs → es_419-HRGOJ6VT-Bb7kiWEN.mjs} +85 -25
  50. package/dist/{etherscan-DcrP0jpt.mjs → etherscan-5t_QMu3H.mjs} +1 -1
  51. package/dist/{exclamation-triangle-DLef7KmF.mjs → exclamation-triangle-CUSwVJ4f.mjs} +1 -1
  52. package/dist/{extension-FJg24rxQ.mjs → extension-DHr5hKWR.mjs} +1 -1
  53. package/dist/{external-link-BD7uWlTh.mjs → external-link-D9dw6uW7.mjs} +1 -1
  54. package/dist/{facebook-BkVFCPGV.mjs → facebook-Dh1MaE-D.mjs} +1 -1
  55. package/dist/{farcaster-DADgTeUQ.mjs → farcaster-BwHBSUHq.mjs} +1 -1
  56. package/dist/{filters-apfONpDY.mjs → filters-Ci9_-8gk.mjs} +1 -1
  57. package/dist/{fr_FR-CM2EDAQC-B_30pesA.mjs → fr_FR-IGGVC6RM-Kc8NKbgI.mjs} +85 -25
  58. package/dist/{github-DL9jQjc6.mjs → github-D-aswXYW.mjs} +1 -1
  59. package/dist/{google-BxOOWfnV.mjs → google-Cg2bg_u1.mjs} +1 -1
  60. package/dist/{help-circle-Dlaxrxpk.mjs → help-circle-Bf77TB4n.mjs} +1 -1
  61. package/dist/{hi_IN-GYVCUYRD-BaP4Kv7X.mjs → hi_IN-XSKAA3MF-DvyeO32P.mjs} +84 -24
  62. package/dist/{id-q12cdS3E.mjs → id-AZ2aaL73.mjs} +1 -1
  63. package/dist/{id_ID-7ZWSMOOE-Dmml3uJR.mjs → id_ID-KUOB4UAL-CvWLNQ5n.mjs} +82 -22
  64. package/dist/{image-DInRmCOf.mjs → image-DN24oYU5.mjs} +1 -1
  65. package/dist/{index-BqAwFqh4.mjs → index-CI8DqE6i.mjs} +29 -29
  66. package/dist/{index-k2xI1AaR.mjs → index-Cow4wrLS.mjs} +2 -2
  67. package/dist/{index-T_kCRjgI.mjs → index-CpY9bbaW.mjs} +143 -188
  68. package/dist/index-D6iw71H8.mjs +8122 -0
  69. package/dist/{index-Bl2FnAAv.mjs → index-S7ky17PZ.mjs} +34339 -28419
  70. package/dist/{index-DhCSttFR.mjs → index-sJo3KuR-.mjs} +30 -30
  71. package/dist/index.d.ts +6 -1
  72. package/dist/{index.es-BKOcc8jm.mjs → index.es-C3Qo-3Ux.mjs} +3128 -3414
  73. package/dist/{info-BV067llH.mjs → info-D8HP_HFm.mjs} +1 -1
  74. package/dist/{info-circle-CC9X6OLr.mjs → info-circle-DU5yWmbI.mjs} +1 -1
  75. package/dist/{ja_JP-CGMP6VLZ-k1qEQOBd.mjs → ja_JP-4WRQ63RX-BSsyVYkC.mjs} +84 -24
  76. package/dist/{ko_KR-YCZDTF7X-N5e302Ee.mjs → ko_KR-I2K7AIEP-BMvlvp6c.mjs} +86 -26
  77. package/dist/{lightbulb-DqJuyaT7.mjs → lightbulb-B1sLPMar.mjs} +1 -1
  78. package/dist/{mail-D_9QwMJ6.mjs → mail-zyLW0GA2.mjs} +1 -1
  79. package/dist/{metamask-sdk-Da_Rt1Jd.mjs → metamask-sdk-B9LkT1MT.mjs} +4382 -4059
  80. package/dist/{mobile-Brxughbi.mjs → mobile-BVHS3wgS.mjs} +1 -1
  81. package/dist/monad-4KWC6TSS-Bme_0Zcf.mjs +4 -0
  82. package/dist/{more-C26kIVIA.mjs → more-CRMgNmQB.mjs} +1 -1
  83. package/dist/{ms_MY-5LHAYMS7-DXUqJsVQ.mjs → ms_MY-6VZW6Q3Z-C_wmMLsb.mjs} +81 -21
  84. package/dist/multichain-widget.css +1 -1
  85. package/dist/multichain-widget.es.js +2 -2
  86. package/dist/multichain-widget.umd.js +2134 -1143
  87. package/dist/{network-placeholder-CE97HZT0.mjs → network-placeholder-DJZa7rha.mjs} +1 -1
  88. package/dist/{nftPlaceholder-BEtN_Of9.mjs → nftPlaceholder-Q9oiORp0.mjs} +1 -1
  89. package/dist/{off-BjUo07j6.mjs → off-CAr43_hg.mjs} +1 -1
  90. package/dist/{play-store-BC7_UIyg.mjs → play-store-CV-rgkWN.mjs} +1 -1
  91. package/dist/{plus-Dbij_8c7.mjs → plus-BN0_SE4g.mjs} +1 -1
  92. package/dist/primitives/AdvancedSelect.d.ts +15 -0
  93. package/dist/{Button.d.ts → primitives/Button.d.ts} +3 -2
  94. package/dist/{LabelSpacing.d.ts → primitives/LabelSpacing.d.ts} +1 -1
  95. package/dist/primitives/NumberInput.d.ts +11 -0
  96. package/dist/{Select.d.ts → primitives/Select.d.ts} +1 -1
  97. package/dist/primitives/Span.d.ts +9 -0
  98. package/dist/{TextInput.d.ts → primitives/TextInput.d.ts} +1 -1
  99. package/dist/primitives/Typography.d.ts +10 -0
  100. package/dist/{pt_BR-3JTS4PSK-BcqTSqXX.mjs → pt_BR-N3XOZ4SV-BeWb5NJg.mjs} +81 -21
  101. package/dist/{qr-code-DmoPQ4rD.mjs → qr-code-BVi76DFP.mjs} +1 -1
  102. package/dist/{recycle-horizontal-CiDJcSFJ.mjs → recycle-horizontal-BcRw_UNP.mjs} +1 -1
  103. package/dist/{refresh--wreWa7i.mjs → refresh-DJ3BZaaj.mjs} +1 -1
  104. package/dist/{reown-logo-BmbhGWDB.mjs → reown-logo-CCWTtbuu.mjs} +1 -1
  105. package/dist/{ru_RU-6J6XERHI-NHs582yY.mjs → ru_RU-IITAPRET-DRURjjb_.mjs} +87 -27
  106. package/dist/{search-C8Poxuvb.mjs → search-o94pc9rb.mjs} +1 -1
  107. package/dist/{secp256k1-D2ZbLApY.mjs → secp256k1-VpNRZe_5.mjs} +1 -7
  108. package/dist/{send-Cm7nV_s1.mjs → send-Bhav5IN3.mjs} +1 -1
  109. package/dist/{swapHorizontal-eCgjN0ht.mjs → swapHorizontal-Cl_oieI4.mjs} +1 -1
  110. package/dist/{swapHorizontalBold-DRovEp8h.mjs → swapHorizontalBold-BCBblPoZ.mjs} +1 -1
  111. package/dist/{swapHorizontalMedium-BYxIUheZ.mjs → swapHorizontalMedium-Dyqzi3S6.mjs} +1 -1
  112. package/dist/{swapHorizontalRoundedBold-BA2XWgcK.mjs → swapHorizontalRoundedBold-pDaj9vii.mjs} +1 -1
  113. package/dist/{swapVertical-DwFggi6x.mjs → swapVertical-BNmp3Dzg.mjs} +1 -1
  114. package/dist/{telegram-BTuHT8yc.mjs → telegram-BnQwQL76.mjs} +1 -1
  115. package/dist/{th_TH-STXOD4CR-BIfWqO2o.mjs → th_TH-3ZQCKCQE-nFsMfjJa.mjs} +84 -24
  116. package/dist/{three-dots-B-Hcg6Vv.mjs → three-dots-CKbCNNgf.mjs} +1 -1
  117. package/dist/{tr_TR-P7QAUUZU-eG8PiHRZ.mjs → tr_TR-QUPUGMUF-DF0OeGUb.mjs} +85 -25
  118. package/dist/{twitch-DHu4D8Jc.mjs → twitch-CzO4NbKk.mjs} +1 -1
  119. package/dist/{twitterIcon-BZmT6kch.mjs → twitterIcon-CveQoc1B.mjs} +1 -1
  120. package/dist/{uk_UA-JTTBGJGQ-Dr7NKTT4.mjs → uk_UA-SSN6SV5E-Bb4huhf1.mjs} +82 -22
  121. package/dist/{verify-C9gAzN46.mjs → verify-CK4nN_ws.mjs} +1 -1
  122. package/dist/{verify-filled-DR04DwDe.mjs → verify-filled-DyAcfygi.mjs} +1 -1
  123. package/dist/{vi_VN-5XUUAVWW-DDODReq8.mjs → vi_VN-7BUVRNYY-PCI3QRx7.mjs} +81 -21
  124. package/dist/{w3m-modal-Ik6-BhU0.mjs → w3m-modal-vt_J_1rX.mjs} +6 -6
  125. package/dist/{wallet-BiV4Fy7L.mjs → wallet-aWN31O_F.mjs} +1 -1
  126. package/dist/{wallet-placeholder-D4-bUGBn.mjs → wallet-placeholder-DY6aHfJB.mjs} +1 -1
  127. package/dist/{walletconnect-FGvoBSQb.mjs → walletconnect-CbYhWFVg.mjs} +1 -1
  128. package/dist/{warning-circle-DZn0de2I.mjs → warning-circle-CXIUoCj7.mjs} +1 -1
  129. package/dist/{x-BmOwg8W9.mjs → x-Dne6OfNb.mjs} +1 -1
  130. package/dist/{zh_CN-RGMLPFEP-CTX3PM0F.mjs → zh_CN-HJBN674C-Bo2gNwt5.mjs} +83 -23
  131. package/dist/{zh_HK-YM3T6EI5-DZjb_17i.mjs → zh_HK-JW3WLRKE-BY2ft2ew.mjs} +81 -21
  132. package/dist/{zh_TW-HAEH6VE5-BOq1c4Vl.mjs → zh_TW-VNNRNXY7-CyIPkoVZ.mjs} +81 -21
  133. package/package.json +3 -3
  134. package/dist/NumberInput.d.ts +0 -13
  135. package/dist/Typography.d.ts +0 -9
  136. package/dist/browser-3VflZ6uC.mjs +0 -308
  137. package/dist/coinbaseWallet-OKXU3TRC-5iCQMeiP.mjs +0 -4
  138. package/dist/en_US-RFN65H63-D5Jd76AN.mjs +0 -4
  139. package/dist/hooks.module-CsKUm6iL.mjs +0 -487
  140. package/dist/index-7o-8-k6p.mjs +0 -13987
  141. package/dist/index-CYj_i5FF.mjs +0 -48
  142. package/dist/index-K9XDDbu6.mjs +0 -9170
  143. package/dist/preview.d.ts +0 -1
  144. package/dist/secp256k1-D1jtNaxO.mjs +0 -1509
  145. /package/dist/{StatusIndicator.d.ts → components/StatusIndicator.d.ts} +0 -0
  146. /package/dist/{Spinner.d.ts → primitives/Spinner.d.ts} +0 -0
  147. /package/dist/{Vertical.d.ts → primitives/Vertical.d.ts} +0 -0
package/README.md CHANGED
@@ -1,3 +1,73 @@
1
+ # Installation
2
+
3
+ ```
4
+ npm install @upcoming/multichain-widget
5
+ ```
6
+
7
+ # Usage
8
+
9
+ Import the component and accompanying styles:
10
+
11
+ ```ts
12
+ import '@rainbow-me/rainbowkit/styles.css'
13
+ import { MultichainWidget } from '@upcoming/multichain-widget'
14
+ import '@upcoming/multichain-widget/styles.css'
15
+ ```
16
+
17
+ Then simply place the component in your app:
18
+
19
+ ```tsx
20
+ <MultichainWidget />
21
+ ```
22
+
23
+ ## Props and Query params
24
+
25
+ It is possible to specify query params or pass some props to `<MultichainWidget />` to customize its behavior:
26
+
27
+ ### `theme`
28
+
29
+ Colors, fonts, sizes, etc. can be overwritten by using this prop.
30
+
31
+ Does not support query params.
32
+
33
+ ### `hooks`
34
+
35
+ Callbacks can be specified for various events in the flow. The most important hook is the `onCompletion` hook, which is called when the flow is completed successfully.
36
+
37
+ Applications embedding the widget and conditionally rendering it can use this hook to unmount the widget when the flow is done.
38
+
39
+ Does not support query params.
40
+
41
+ ### `settings`
42
+
43
+ Mainly used to customize the `gnosisJsonRpcProviders` array.
44
+
45
+ Does not support query params.
46
+
47
+ ### `intent`
48
+
49
+ The intent modifies the information text displayed on the first screen. Possible values are `initial-funding`, `postage-batch` and `arbitrary`.
50
+
51
+ Can be specified in the query params with the `intent` key.
52
+
53
+ ### `destination`
54
+
55
+ The default target address where the xBZZ and xDAI tokens will be sent.
56
+
57
+ Can be specified in the query params with the `destination` key.
58
+
59
+ ### `dai`
60
+
61
+ The default amount of xDAI to receive at the end of the flow.
62
+
63
+ Can be specified in the query params with the `dai` key.
64
+
65
+ ### `bzz`
66
+
67
+ The default amount of xBZZ to receive at the end of the flow.
68
+
69
+ Can be specified in the query params with the `bzz` key.
70
+
1
71
  # Flow
2
72
 
3
73
  1. Cross-swap a token to xDAI using Relay, goes to a temporary wallet.
@@ -6,11 +76,11 @@
6
76
 
7
77
  # Dependencies
8
78
 
9
- ## Relay
79
+ ### Relay
10
80
 
11
81
  We use the Relay API to cross-swap to xDAI.
12
82
 
13
- ## SushiSwap
83
+ ### SushiSwap
14
84
 
15
85
  We use SushiSwap contracts and its API to swap xDAI to xBZZ.
16
86
 
@@ -26,7 +96,9 @@ A backup of every generated private key is stored in `localStorage` with a times
26
96
 
27
97
  ## Recoverability
28
98
 
29
- It is OK if the flow errors out or the user navigates away. The app can detect which steps have been completed and resume from there.
99
+ ~~It is OK if the flow errors out or the user navigates away. The app can detect which steps have been completed and resume from there.~~
100
+
101
+ This one is still under investigation. By having absolute amounts for xDAI and xBZZ initially, this used to work, but for the ideal UX we switched to relative amounts. This makes it much harder to guess whether there was a flow interruption or not.
30
102
 
31
103
  ## Reactivity
32
104
 
@@ -38,46 +110,6 @@ Hooks can be set by passing `hooks` prop to the `MultichainWidget` component. Cu
38
110
 
39
111
  # Known issues / Remaining tasks
40
112
 
41
- ## Absolute amounts
42
-
43
- The specified xBZZ amount is absolute, not relative. For example, if the user already has 90 xBZZ, they would have to specify 100 xBZZ to receive 10 more.
44
-
45
- ## No quote available on Relay
46
-
47
- This can happen when the amount is too low or too high. May happen more frequently with unpopular tokens.
48
-
49
- ## SushiSwap transaction failure
50
-
51
- This can happen when Gnosis experiences a sudden spike in gas prices.
52
-
53
- ## xDAI source support
54
-
55
- The end user will not receive any quotes if they attempt to use xDAI as the source token. This is because in this case, we attempt to get a quote from xDAI to xDAI.
56
-
57
- ## Add slippage and fee considerations
58
-
59
- The resulting xBZZ and xDAI and currently lower than expected due to fees and slippage. This can never be fully eliminated, and for the MVP a fixed 5% buffer is recommended.
60
-
61
- ## Network check
62
-
63
- The app currently does not check if the user is on the correct network. This leads to failed transactions.
64
-
65
- ## JSON-RPC provider array
66
-
67
- Allow passing an array of JSON-RPC providers to increase reliability.
68
-
69
- ## Retriable requests
70
-
71
- Some requests can fail due to temporary JSON-RPC issues. These should be retried a few times before giving up.
72
-
73
- ## Gas spike handling
74
-
75
- There is an error which is easy to detect: `Details: FeeTooLow, EffectivePriorityFeePerGas too low 0 < 1, BaseFee: 2783571`. This should be handled by retrying the transaction with a higher gas price.
76
-
77
113
  ## React version dependency
78
114
 
79
115
  It seems that the app only works with React 18+. This may not be compatible with Bee Dashboard using React 17 (due to Material UI 4 dependency). It would be best to upgrade Bee Dashboard to React 18 and Material UI 5. React 18 is already 4 years old.
80
-
81
- ## Implement other intents
82
-
83
- Only the "initial funding" intent is implemented. Other intents should be implemented as well, e.g. "get funds for postage batch", "free funding", etc.
@@ -0,0 +1,5 @@
1
+ export type Intent = 'initial-funding' | 'postage-batch' | 'arbitrary';
2
+ export declare function getAmountsForIntent(_intent: Intent): {
3
+ bzzAmount: number;
4
+ nativeAmount: number;
5
+ };
@@ -7,6 +7,7 @@ export interface MultichainTheme {
7
7
  fontFamily: string;
8
8
  smallFontSize: string;
9
9
  smallFontWeight: number;
10
+ secondaryTextColor: string;
10
11
  inputBackgroundColor: string;
11
12
  inputBorderColor: string;
12
13
  inputTextColor: string;
package/dist/Router.d.ts CHANGED
@@ -1,10 +1,15 @@
1
1
  import { MultichainLibrary } from '@upcoming/multichain-library';
2
+ import { Intent } from './Intent';
2
3
  import { MultichainHooks } from './MultichainHooks';
3
4
  import { MultichainTheme } from './MultichainTheme';
4
5
  interface Props {
5
6
  theme: MultichainTheme;
6
7
  hooks: MultichainHooks;
7
8
  library: MultichainLibrary;
9
+ intent: Intent;
10
+ destination: string;
11
+ dai: number;
12
+ bzz: number;
8
13
  }
9
- export declare function Router({ theme, hooks, library }: Props): import("react/jsx-runtime").JSX.Element;
14
+ export declare function Router({ theme, hooks, library, intent, destination, dai, bzz }: Props): import("react/jsx-runtime").JSX.Element;
10
15
  export {};
package/dist/Tab1.d.ts CHANGED
@@ -1,11 +1,14 @@
1
1
  import { Dispatch, SetStateAction } from 'react';
2
+ import { Intent } from './Intent';
2
3
  import { MultichainTheme } from './MultichainTheme';
3
4
  import { SwapData } from './SwapData';
4
5
  interface Props {
5
6
  theme: MultichainTheme;
7
+ intent: Intent;
6
8
  setTab: (tab: 1 | 2) => void;
7
9
  swapData: SwapData;
8
10
  setSwapData: Dispatch<SetStateAction<SwapData>>;
11
+ setInitialChainId: Dispatch<SetStateAction<number | null>>;
9
12
  }
10
- export declare function Tab1({ theme, setTab, swapData, setSwapData }: Props): import("react/jsx-runtime").JSX.Element;
13
+ export declare function Tab1({ theme, intent, setTab, swapData, setSwapData, setInitialChainId }: Props): import("react/jsx-runtime").JSX.Element;
11
14
  export {};
package/dist/Tab2.d.ts CHANGED
@@ -7,7 +7,8 @@ interface Props {
7
7
  hooks: MultichainHooks;
8
8
  setTab: (tab: 1 | 2) => void;
9
9
  swapData: SwapData;
10
+ initialChainId: number;
10
11
  library: MultichainLibrary;
11
12
  }
12
- export declare function Tab2({ theme, hooks, setTab, swapData, library }: Props): import("react/jsx-runtime").JSX.Element;
13
+ export declare function Tab2({ theme, hooks, setTab, swapData, initialChainId, library }: Props): import("react/jsx-runtime").JSX.Element;
13
14
  export {};
@@ -0,0 +1 @@
1
+ export declare function shortenHash(hash: string, length?: number): string;
@@ -1,4 +1,4 @@
1
- import { b as l } from "./core-L3uBGNm9.mjs";
1
+ import { w as l } from "./core-BSjxlOS1.mjs";
2
2
  const o = l`<svg
3
3
  width="14"
4
4
  height="14"
@@ -1,4 +1,4 @@
1
- import { b as l } from "./core-L3uBGNm9.mjs";
1
+ import { w as l } from "./core-BSjxlOS1.mjs";
2
2
  const o = l`<svg fill="none" viewBox="0 0 24 24">
3
3
  <path
4
4
  style="fill: var(--wui-color-accent-100);"
@@ -1,4 +1,4 @@
1
- import { b as t } from "./core-L3uBGNm9.mjs";
1
+ import { w as t } from "./core-BSjxlOS1.mjs";
2
2
  const e = t`
3
3
  <svg width="36" height="36">
4
4
  <path
@@ -1,4 +1,4 @@
1
- import { b as l } from "./core-L3uBGNm9.mjs";
1
+ import { w as l } from "./core-BSjxlOS1.mjs";
2
2
  const f = l`<svg fill="none" viewBox="0 0 40 40">
3
3
  <g clip-path="url(#a)">
4
4
  <g clip-path="url(#b)">
@@ -214,11 +214,11 @@ var u = `{
214
214
  }
215
215
  },
216
216
  "wallet_connectors": {
217
- "argent": {
217
+ "ready": {
218
218
  "qr_code": {
219
219
  "step1": {
220
- "description": "ضع أرجنت على شاشتك الرئيسية للوصول السريع إلى محفظتك.",
221
- "title": "افتح تطبيق Argent"
220
+ "description": "أضف Ready إلى شاشتك الرئيسية للوصول الأسرع إلى محفظتك.",
221
+ "title": "افتح تطبيق Ready"
222
222
  },
223
223
  "step2": {
224
224
  "description": "أنشئ محفظة واسم مستخدم، أو استورد محفظة موجودة بالفعل.",
@@ -400,6 +400,20 @@ var u = `{
400
400
  "description": "بعد الفحص، سيظهر لك موجه الاتصال لتوصيل المحفظة الخاصة بك.",
401
401
  "title": "اضغط على زر WalletConnect"
402
402
  }
403
+ },
404
+ "extension": {
405
+ "step1": {
406
+ "title": "ثبّت امتداد محفظة Binance",
407
+ "description": "نوصي بتثبيت محفظة Binance على شريط المهام للوصول الأسرع إلى محفظتك."
408
+ },
409
+ "step2": {
410
+ "title": "إنشاء أو استيراد محفظة",
411
+ "description": "تأكد من عمل نسخة احتياطية لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أحد."
412
+ },
413
+ "step3": {
414
+ "title": "قم بتحديث متصفحك",
415
+ "description": "بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الامتداد."
416
+ }
403
417
  }
404
418
  },
405
419
  "coin98": {
@@ -1130,19 +1144,19 @@ var u = `{
1130
1144
  }
1131
1145
  }
1132
1146
  },
1133
- "xdefi": {
1147
+ "ctrl": {
1134
1148
  "extension": {
1135
1149
  "step1": {
1136
- "title": "قم بتثبيت إضافة XDEFI Wallet",
1137
- "description": "نوصي بتثبيت XDEFI Wallet على شريط المهام للوصول الأسرع إلى محفظتك."
1150
+ "title": "قم بتثبيت إضافة CTRL Wallet",
1151
+ "description": "نوصي بتثبيت CTRL Wallet على شريط المهام الخاص بك للوصول الأسرع إلى محفظتك."
1138
1152
  },
1139
1153
  "step2": {
1140
- "title": "أنشئ محفظة أو استورد محفظة",
1141
- "description": "تأكد من النسخ الاحتياطي لمحفظتك باستخدام طريقة آمنة. لا تشارك العبارة السرية الخاصة بك مع أي شخص."
1154
+ "title": "إنشاء أو استيراد محفظة",
1155
+ "description": "تأكد من عمل نسخة احتياطية لمحفظتك باستخدام طريقة آمنة. لا تشارك عبارتك السرية مع أحد."
1142
1156
  },
1143
1157
  "step3": {
1144
- "title": "قم بتحديث المستعرض الخاص بك",
1145
- "description": "بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الإضافة."
1158
+ "title": "قم بتحديث متصفحك",
1159
+ "description": "بمجرد إعداد محفظتك، انقر أدناه لتحديث المتصفح وتحميل الامتداد."
1146
1160
  }
1147
1161
  }
1148
1162
  },
@@ -1374,6 +1388,36 @@ var u = `{
1374
1388
  }
1375
1389
  }
1376
1390
  },
1391
+ "gemini": {
1392
+ "qr_code": {
1393
+ "step1": {
1394
+ "title": "افتح keys.gemini.com",
1395
+ "description": "قم بزيارة keys.gemini.com على متصفح الهاتف المحمول - لا يلزم تنزيل تطبيق."
1396
+ },
1397
+ "step2": {
1398
+ "title": "أنشئ محفظتك فوراً",
1399
+ "description": "قم بإعداد محفظتك الذكية في ثوانٍ باستخدام التحقق المبني في جهازك."
1400
+ },
1401
+ "step3": {
1402
+ "title": "امسح للاتصال",
1403
+ "description": "امسح رمز الاستجابة السريعة للاتصال بمحضتك فوراً - يعمل بكل سلاسة."
1404
+ }
1405
+ },
1406
+ "extension": {
1407
+ "step1": {
1408
+ "title": "اذهب إلى keys.gemini.com",
1409
+ "description": "لا حاجة لملحقات أو تنزيلات - محفظتك تبقى آمنة في المتصفح."
1410
+ },
1411
+ "step2": {
1412
+ "title": "إعداد بنقرة واحدة",
1413
+ "description": "أنشئ محفظتك الذكية فورًا باستخدام مصادقة المفتاح - أسهل من أي محفظة أخرى."
1414
+ },
1415
+ "step3": {
1416
+ "title": "اتصل وانطلق",
1417
+ "description": "قم بالموافقة على الاتصال وستكون جاهزًا - المحفظة الخالية من الآراء والتي تعمل بكل بساطة."
1418
+ }
1419
+ }
1420
+ },
1377
1421
  "xportal": {
1378
1422
  "qr_code": {
1379
1423
  "step1": {
@@ -1405,21 +1449,37 @@ var u = `{
1405
1449
  "title": "اضغط على زر المسح"
1406
1450
  }
1407
1451
  }
1408
- }
1409
- },
1410
- "zilpay": {
1411
- "qr_code": {
1412
- "step1": {
1413
- "title": "افتح تطبيق ZilPay",
1414
- "description": "أضف ZilPay إلى شاشتك الرئيسية للوصول الأسرع إلى محفظتك."
1415
- },
1416
- "step2": {
1417
- "title": "إنشاء أو استيراد محفظة",
1418
- "description": "أنشئ محفظة جديدة أو استورد واحدة موجودة بالفعل."
1419
- },
1420
- "step3": {
1421
- "title": "اضغط على زر المسح",
1422
- "description": "بعد الفحص، سيظهر لك موجه الاتصال لتوصيل المحفظة الخاصة بك."
1452
+ },
1453
+ "zilpay": {
1454
+ "qr_code": {
1455
+ "step1": {
1456
+ "title": "افتح تطبيق ZilPay",
1457
+ "description": "أضف ZilPay إلى شاشتك الرئيسية للوصول الأسرع إلى محفظتك."
1458
+ },
1459
+ "step2": {
1460
+ "title": "إنشاء أو استيراد محفظة",
1461
+ "description": "أنشئ محفظة جديدة أو استورد واحدة موجودة بالفعل."
1462
+ },
1463
+ "step3": {
1464
+ "title": "اضغط على زر المسح",
1465
+ "description": "بعد الفحص، سيظهر لك موجه الاتصال لتوصيل المحفظة الخاصة بك."
1466
+ }
1467
+ }
1468
+ },
1469
+ "nova": {
1470
+ "qr_code": {
1471
+ "step1": {
1472
+ "title": "افتح تطبيق محفظة Nova",
1473
+ "description": "أضف محفظة Nova إلى الشاشة الرئيسية للوصول الأسرع إلى محفظتك."
1474
+ },
1475
+ "step2": {
1476
+ "title": "إنشاء أو استيراد محفظة",
1477
+ "description": "أنشئ محفظة جديدة أو استورد واحدة موجودة بالفعل."
1478
+ },
1479
+ "step3": {
1480
+ "title": "اضغط على زر المسح",
1481
+ "description": "بعد الفحص، سيظهر لك موجه الاتصال لتوصيل المحفظة الخاصة بك."
1482
+ }
1423
1483
  }
1424
1484
  }
1425
1485
  }
@@ -1,4 +1,4 @@
1
- import { b as o } from "./core-L3uBGNm9.mjs";
1
+ import { w as o } from "./core-BSjxlOS1.mjs";
2
2
  const e = o`<svg fill="none" viewBox="0 0 14 15">
3
3
  <path
4
4
  fill="currentColor"
@@ -1,4 +1,4 @@
1
- import { b as C } from "./core-L3uBGNm9.mjs";
1
+ import { w as C } from "./core-BSjxlOS1.mjs";
2
2
  const e = C`<svg
3
3
  fill="none"
4
4
  viewBox="0 0 21 20"
@@ -1,4 +1,4 @@
1
- import { b as e } from "./core-L3uBGNm9.mjs";
1
+ import { w as e } from "./core-BSjxlOS1.mjs";
2
2
  const o = e`<svg fill="none" viewBox="0 0 14 15">
3
3
  <path
4
4
  fill="currentColor"
@@ -1,4 +1,4 @@
1
- import { b as l } from "./core-L3uBGNm9.mjs";
1
+ import { w as l } from "./core-BSjxlOS1.mjs";
2
2
  const e = l`<svg fill="none" viewBox="0 0 14 15">
3
3
  <path
4
4
  fill="currentColor"
@@ -1,4 +1,4 @@
1
- import { b as o } from "./core-L3uBGNm9.mjs";
1
+ import { w as o } from "./core-BSjxlOS1.mjs";
2
2
  const e = o`<svg fill="none" viewBox="0 0 14 15">
3
3
  <path
4
4
  fill="currentColor"
@@ -1,4 +1,4 @@
1
- import { b as e } from "./core-L3uBGNm9.mjs";
1
+ import { w as e } from "./core-BSjxlOS1.mjs";
2
2
  const o = e`<svg
3
3
  xmlns="http://www.w3.org/2000/svg"
4
4
  width="12"
@@ -0,0 +1,4 @@
1
+ var C = "data:image/svg+xml,%3Csvg%20width%3D%2296%22%20height%3D%2296%22%20viewBox%3D%220%200%2096%2096%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M0%207.584C0%204.98628%200%203.68742%200.489468%202.68829C0.958114%201.73167%201.73167%200.958114%202.68829%200.489468C3.68742%200%204.98628%200%207.584%200H88.416C91.0137%200%2092.3126%200%2093.3117%200.489468C94.2683%200.958114%2095.0419%201.73167%2095.5105%202.68829C96%203.68742%2096%204.98628%2096%207.584V88.416C96%2091.0137%2096%2092.3126%2095.5105%2093.3117C95.0419%2094.2683%2094.2683%2095.0419%2093.3117%2095.5105C92.3126%2096%2091.0137%2096%2088.416%2096H7.584C4.98628%2096%203.68742%2096%202.68829%2095.5105C1.73167%2095.0419%200.958114%2094.2683%200.489468%2093.3117C0%2092.3126%200%2091.0137%200%2088.416V7.584Z%22%20fill%3D%22%230000FF%22%2F%3E%0A%3C%2Fsvg%3E%0A";
2
+ export {
3
+ C as default
4
+ };