@orbs-network/spot-react 0.1.0 → 1.0.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 (138) hide show
  1. package/dist/ccip-bPFWIGtu.js +149 -0
  2. package/dist/index-Jq763Rdi.js +45137 -0
  3. package/dist/index.d.ts +2 -2
  4. package/dist/spot-react/package.json.d.ts +63 -0
  5. package/dist/spot-react/src/components/TokenLogo.d.ts +9 -0
  6. package/dist/spot-react/src/components/TokenLogo.d.ts.map +1 -0
  7. package/dist/spot-react/src/components/format-number.d.ts +10 -0
  8. package/dist/spot-react/src/components/format-number.d.ts.map +1 -0
  9. package/dist/spot-react/src/components/order-details.d.ts +75 -0
  10. package/dist/spot-react/src/components/order-details.d.ts.map +1 -0
  11. package/dist/spot-react/src/components/orders/order-fills.d.ts +8 -0
  12. package/dist/spot-react/src/components/orders/order-fills.d.ts.map +1 -0
  13. package/dist/spot-react/src/components/orders/order-preview.d.ts +3 -0
  14. package/dist/spot-react/src/components/orders/order-preview.d.ts.map +1 -0
  15. package/dist/spot-react/src/components/orders/orders-list.d.ts +2 -0
  16. package/dist/spot-react/src/components/orders/orders-list.d.ts.map +1 -0
  17. package/dist/spot-react/src/components/orders/orders.d.ts +2 -0
  18. package/dist/spot-react/src/components/orders/orders.d.ts.map +1 -0
  19. package/dist/spot-react/src/components/portal.d.ts +6 -0
  20. package/dist/spot-react/src/components/portal.d.ts.map +1 -0
  21. package/dist/spot-react/src/components/submit-order-panel.d.ts +10 -0
  22. package/dist/spot-react/src/components/submit-order-panel.d.ts.map +1 -0
  23. package/dist/spot-react/src/consts.d.ts +8 -0
  24. package/dist/spot-react/src/consts.d.ts.map +1 -0
  25. package/dist/spot-react/src/hooks/helper-hooks.d.ts +438 -0
  26. package/dist/spot-react/src/hooks/helper-hooks.d.ts.map +1 -0
  27. package/dist/spot-react/src/hooks/order-hooks.d.ts +39 -0
  28. package/dist/spot-react/src/hooks/order-hooks.d.ts.map +1 -0
  29. package/dist/spot-react/src/hooks/use-addresses.d.ts +4 -0
  30. package/dist/spot-react/src/hooks/use-addresses.d.ts.map +1 -0
  31. package/dist/spot-react/src/hooks/use-amounts-usd.d.ts +5 -0
  32. package/dist/spot-react/src/hooks/use-amounts-usd.d.ts.map +1 -0
  33. package/dist/spot-react/src/hooks/use-build-order-info.d.ts +90 -0
  34. package/dist/spot-react/src/hooks/use-build-order-info.d.ts.map +1 -0
  35. package/dist/spot-react/src/hooks/use-cancel-order.d.ts +6 -0
  36. package/dist/spot-react/src/hooks/use-cancel-order.d.ts.map +1 -0
  37. package/dist/spot-react/src/hooks/use-deadline.d.ts +2 -0
  38. package/dist/spot-react/src/hooks/use-deadline.d.ts.map +1 -0
  39. package/dist/spot-react/src/hooks/use-default-values.d.ts +3 -0
  40. package/dist/spot-react/src/hooks/use-default-values.d.ts.map +1 -0
  41. package/dist/spot-react/src/hooks/use-disclaimer-panel.d.ts +5 -0
  42. package/dist/spot-react/src/hooks/use-disclaimer-panel.d.ts.map +1 -0
  43. package/dist/spot-react/src/hooks/use-dst-amount.d.ts +11 -0
  44. package/dist/spot-react/src/hooks/use-dst-amount.d.ts.map +1 -0
  45. package/dist/spot-react/src/hooks/use-dst-token-panel.d.ts +7 -0
  46. package/dist/spot-react/src/hooks/use-dst-token-panel.d.ts.map +1 -0
  47. package/dist/spot-react/src/hooks/use-duration.d.ts +25 -0
  48. package/dist/spot-react/src/hooks/use-duration.d.ts.map +1 -0
  49. package/dist/spot-react/src/hooks/use-fees.d.ts +6 -0
  50. package/dist/spot-react/src/hooks/use-fees.d.ts.map +1 -0
  51. package/dist/spot-react/src/hooks/use-fill-delay.d.ts +19 -0
  52. package/dist/spot-react/src/hooks/use-fill-delay.d.ts.map +1 -0
  53. package/dist/spot-react/src/hooks/use-get-transaction-receipt.d.ts +2 -0
  54. package/dist/spot-react/src/hooks/use-get-transaction-receipt.d.ts.map +1 -0
  55. package/dist/spot-react/src/hooks/use-history-order.d.ts +3 -0
  56. package/dist/spot-react/src/hooks/use-history-order.d.ts.map +1 -0
  57. package/dist/spot-react/src/hooks/use-input-errors.d.ts +2 -0
  58. package/dist/spot-react/src/hooks/use-input-errors.d.ts.map +1 -0
  59. package/dist/spot-react/src/hooks/use-input-with-percentage.d.ts +18 -0
  60. package/dist/spot-react/src/hooks/use-input-with-percentage.d.ts.map +1 -0
  61. package/dist/spot-react/src/hooks/use-invert-trade-panel.d.ts +8 -0
  62. package/dist/spot-react/src/hooks/use-invert-trade-panel.d.ts.map +1 -0
  63. package/dist/spot-react/src/hooks/use-limit-price-panel.d.ts +27 -0
  64. package/dist/spot-react/src/hooks/use-limit-price-panel.d.ts.map +1 -0
  65. package/dist/spot-react/src/hooks/use-limit-price.d.ts +27 -0
  66. package/dist/spot-react/src/hooks/use-limit-price.d.ts.map +1 -0
  67. package/dist/spot-react/src/hooks/use-order.d.ts +121 -0
  68. package/dist/spot-react/src/hooks/use-order.d.ts.map +1 -0
  69. package/dist/spot-react/src/hooks/use-partner-chains.d.ts +2 -0
  70. package/dist/spot-react/src/hooks/use-partner-chains.d.ts.map +1 -0
  71. package/dist/spot-react/src/hooks/use-repermit-order-data.d.ts +37 -0
  72. package/dist/spot-react/src/hooks/use-repermit-order-data.d.ts.map +1 -0
  73. package/dist/spot-react/src/hooks/use-src-amount.d.ts +6 -0
  74. package/dist/spot-react/src/hooks/use-src-amount.d.ts.map +1 -0
  75. package/dist/spot-react/src/hooks/use-submit-order-panel.d.ts +31 -0
  76. package/dist/spot-react/src/hooks/use-submit-order-panel.d.ts.map +1 -0
  77. package/dist/spot-react/src/hooks/use-submit-order.d.ts +3 -0
  78. package/dist/spot-react/src/hooks/use-submit-order.d.ts.map +1 -0
  79. package/dist/spot-react/src/hooks/use-toggle-price.d.ts +5 -0
  80. package/dist/spot-react/src/hooks/use-toggle-price.d.ts.map +1 -0
  81. package/dist/spot-react/src/hooks/use-trade-price.d.ts +2 -0
  82. package/dist/spot-react/src/hooks/use-trade-price.d.ts.map +1 -0
  83. package/dist/spot-react/src/hooks/use-trades.d.ts +32 -0
  84. package/dist/spot-react/src/hooks/use-trades.d.ts.map +1 -0
  85. package/dist/spot-react/src/hooks/use-translations.d.ts +3 -0
  86. package/dist/spot-react/src/hooks/use-translations.d.ts.map +1 -0
  87. package/dist/spot-react/src/hooks/use-trigger-price-panel.d.ts +28 -0
  88. package/dist/spot-react/src/hooks/use-trigger-price-panel.d.ts.map +1 -0
  89. package/dist/spot-react/src/hooks/use-trigger-price.d.ts +25 -0
  90. package/dist/spot-react/src/hooks/use-trigger-price.d.ts.map +1 -0
  91. package/dist/spot-react/src/i18n/en.json.d.ts +99 -0
  92. package/dist/spot-react/src/index.d.ts +38 -0
  93. package/dist/spot-react/src/index.d.ts.map +1 -0
  94. package/dist/spot-react/src/spot-context.d.ts +6 -0
  95. package/dist/spot-react/src/spot-context.d.ts.map +1 -0
  96. package/dist/spot-react/src/store.d.ts +11 -0
  97. package/dist/spot-react/src/store.d.ts.map +1 -0
  98. package/dist/spot-react/src/types.d.ts +487 -0
  99. package/dist/spot-react/src/types.d.ts.map +1 -0
  100. package/dist/spot-react/src/utils.d.ts +26 -0
  101. package/dist/spot-react/src/utils.d.ts.map +1 -0
  102. package/dist/spot-react.js +133 -0
  103. package/dist/spot-react.umd.cjs +126 -0
  104. package/dist/spot-ui/src/index.d.ts +14 -0
  105. package/dist/spot-ui/src/index.d.ts.map +1 -0
  106. package/dist/spot-ui/src/lib/abi/erc20.json.d.ts +291 -0
  107. package/dist/spot-ui/src/lib/abi/index.d.ts +260 -0
  108. package/dist/spot-ui/src/lib/abi/index.d.ts.map +1 -0
  109. package/dist/spot-ui/src/lib/abi/iweth.json.d.ts +41 -0
  110. package/dist/spot-ui/src/lib/abi/repermit.json.d.ts +315 -0
  111. package/dist/spot-ui/src/lib/analytics.d.ts +108 -0
  112. package/dist/spot-ui/src/lib/analytics.d.ts.map +1 -0
  113. package/dist/spot-ui/src/lib/build-repermit-order-data.d.ts +55 -0
  114. package/dist/spot-ui/src/lib/build-repermit-order-data.d.ts.map +1 -0
  115. package/dist/spot-ui/src/lib/consts.d.ts +118 -0
  116. package/dist/spot-ui/src/lib/consts.d.ts.map +1 -0
  117. package/dist/spot-ui/src/lib/lib.d.ts +67 -0
  118. package/dist/spot-ui/src/lib/lib.d.ts.map +1 -0
  119. package/dist/spot-ui/src/lib/networks.d.ts +445 -0
  120. package/dist/spot-ui/src/lib/networks.d.ts.map +1 -0
  121. package/dist/spot-ui/src/lib/orders/index.d.ts +11 -0
  122. package/dist/spot-ui/src/lib/orders/index.d.ts.map +1 -0
  123. package/dist/spot-ui/src/lib/orders/v1-orders.d.ts +34 -0
  124. package/dist/spot-ui/src/lib/orders/v1-orders.d.ts.map +1 -0
  125. package/dist/spot-ui/src/lib/orders/v2-orders.d.ts +10 -0
  126. package/dist/spot-ui/src/lib/orders/v2-orders.d.ts.map +1 -0
  127. package/dist/spot-ui/src/lib/submit-order.d.ts +3 -0
  128. package/dist/spot-ui/src/lib/submit-order.d.ts.map +1 -0
  129. package/dist/spot-ui/src/lib/types.d.ts +308 -0
  130. package/dist/spot-ui/src/lib/types.d.ts.map +1 -0
  131. package/dist/spot-ui/src/lib/utils.d.ts +458 -0
  132. package/dist/spot-ui/src/lib/utils.d.ts.map +1 -0
  133. package/package.json +41 -19
  134. package/dist/index.cjs.js +0 -14
  135. package/dist/index.d.ts.map +0 -1
  136. package/dist/index.es.js +0 -626
  137. package/dist/wallet-info.d.ts +0 -7
  138. package/dist/wallet-info.d.ts.map +0 -1
@@ -0,0 +1,133 @@
1
+ import { a_ as e, C as r, ac as t, D as i, aJ as n, aY as E, aW as o, aZ as _, aX as T, aU as P, aN as u, aO as l, ap as A, aL as O, aK as S, N as I, ao as d, au as R, aI as g, aA as L, ay as D, az as m, aC as b, aB as M, V as C, aR as U, aS as N, aQ as p, aP as c, aT as F, as as k, T as y, U as h, P as B, R as G, aV as x, aq as Y, aM as f, av as H, ax as V, S as W, O as v, Q as w, aD as K, ar as z, at as Q, ad as X, bm as j, an as q, Z as J, a3 as Z, a9 as $, _ as aa, F as sa, am as ea, aw as ra, b3 as ta, bi as ia, b5 as na, a$ as Ea, b0 as oa, b2 as _a, bl as Ta, b6 as Pa, ab as ua, bh as la, b8 as Aa, bd as Oa, b4 as Sa, bk as Ia, bf as da, a2 as Ra, be as ga, bg as La, af as Da, ai as ma, ag as ba, aj as Ma, a6 as Ca, ah as Ua, aH as Na, bj as pa, b7 as ca, bb as Fa, b9 as ka, bc as ya, ba as ha, b1 as Ba, ak as Ga, aa as xa, a1 as Ya, $ as fa, aG as Ha, a4 as Va, a5 as Wa, aF as va, al as wa, a0 as Ka, W as za, ae as Qa, a8 as Xa, a7 as ja, bn as qa, Y as Ja, X as Za, y as $a, q as as, m as ss, h as es, j as rs, M as ts, t as is, r as ns, k as Es, A as os, E as _s, o as Ts, J as Ps, x as us, K as ls, L as As, I as Os, G as Ss, z as Is, p as ds, v as Rs, u as gs, w as Ls, n as Ds, aE as ms } from "./index-Jq763Rdi.js";
2
+ export {
3
+ e as CRASH_ERROR_MESSAGE,
4
+ r as Components,
5
+ t as Configs,
6
+ i as DEFAULT_DURATION_OPTIONS,
7
+ n as DEFAULT_FILL_DELAY,
8
+ E as DEFAULT_STOP_LOSS_LIMIT_PERCENTAGE,
9
+ o as DEFAULT_STOP_LOSS_PERCENTAGE,
10
+ _ as DEFAULT_TAKE_PROFIT_LIMIT_PERCENTAGE,
11
+ T as DEFAULT_TAKE_PROFIT_PERCENTAGE,
12
+ P as DISCLAIMER_URL,
13
+ u as EIP712_TYPES,
14
+ l as EIP712_TYPES_DEV,
15
+ A as ERC20_ABI,
16
+ O as EXCLUSIVITY_OVERRIDE_BPS,
17
+ S as FEES,
18
+ I as FormatNumber,
19
+ d as IWETH_ABI,
20
+ R as InputErrors,
21
+ g as LEGACY_EXCHANGES_MAP,
22
+ L as MAX_ORDER_DURATION_MILLIS,
23
+ D as MIN_CHUNKS,
24
+ m as MIN_FILL_DELAY_MILLIS,
25
+ b as MIN_FILL_DELAY_MINUTES,
26
+ M as MIN_ORDER_DURATION_MILLIS,
27
+ C as Module,
28
+ U as ORBS_LOGO,
29
+ N as ORBS_LOGO_FALLBACK,
30
+ p as ORBS_SLTP_FAQ_URL,
31
+ c as ORBS_TWAP_FAQ_URL,
32
+ F as ORBS_WEBSITE_URL,
33
+ k as OrderFilter,
34
+ y as OrderStatus,
35
+ h as OrderType,
36
+ B as PRICE_PROTECTION_SETTINGS,
37
+ G as Partners,
38
+ x as QUERY_PARAMS,
39
+ Y as REPERMIT_ABI,
40
+ f as REPERMIT_PRIMARY_TYPE,
41
+ H as SPOT_VERSION,
42
+ V as SUGGEST_CHUNK_VALUE,
43
+ W as SpotProvider,
44
+ v as Steps,
45
+ w as SwapStatus,
46
+ K as THE_GRAPH_ORDERS_API,
47
+ z as TWAP_ABI,
48
+ Q as TimeUnit,
49
+ X as analytics,
50
+ j as buildRePermitOrderData,
51
+ q as buildV2Order,
52
+ J as copy,
53
+ Z as ensureWrappedToken,
54
+ $ as eqIgnoreCase,
55
+ aa as fillDelayText,
56
+ sa as formatDecimals,
57
+ ea as getAccountOrders,
58
+ ra as getApiEndpoint,
59
+ ta as getChunks,
60
+ ia as getConfig,
61
+ na as getDeadline,
62
+ Ea as getDestTokenAmount,
63
+ oa as getDestTokenMinAmountPerChunk,
64
+ _a as getDuration,
65
+ Ta as getErrors,
66
+ Pa as getEstimatedDelayBetweenChunksMillis,
67
+ ua as getExplorerUrl,
68
+ la as getMaxChunksError,
69
+ Aa as getMaxFillDelayError,
70
+ Oa as getMaxOrderDurationError,
71
+ Sa as getMaxPossibleChunks,
72
+ Ia as getMinChunkSizeUsd,
73
+ da as getMinFillDelayError,
74
+ Ra as getMinNativeBalance,
75
+ ga as getMinOrderDurationError,
76
+ La as getMinTradeSizeError,
77
+ Da as getNetwork,
78
+ ma as getOrderExecutionRate,
79
+ ba as getOrderFillDelayMillis,
80
+ Ma as getOrderLimitPriceRate,
81
+ Ca as getOrderType,
82
+ Ua as getPartnerChains,
83
+ Na as getPartnerIdentifier,
84
+ pa as getPartners,
85
+ ca as getSrcTokenChunkAmount,
86
+ Fa as getStopLossLimitPriceError,
87
+ ka as getStopLossPriceError,
88
+ ya as getTakeProfitLimitPriceError,
89
+ ha as getTakeProfitPriceError,
90
+ Ba as getTriggerPricePerChunk,
91
+ Ga as getTriggerPricePerTrade,
92
+ xa as isNativeAddress,
93
+ Ya as isTxRejected,
94
+ fa as makeElipsisAddress,
95
+ Ha as maxUint256,
96
+ Va as millisToDays,
97
+ Wa as millisToMinutes,
98
+ va as nativeTokenAddresses,
99
+ wa as networks,
100
+ Ka as parseError,
101
+ za as removeCommas,
102
+ Qa as setUIVersion,
103
+ Xa as shouldUnwrapOnly,
104
+ ja as shouldWrapOnly,
105
+ qa as submitOrder,
106
+ Ja as toAmountUi,
107
+ Za as toAmountWei,
108
+ $a as useAddresses,
109
+ as as useDisclaimerPanel,
110
+ ss as useDstTokenPanel,
111
+ es as useDurationPanel,
112
+ rs as useFillDelayPanel,
113
+ ts as useFormatNumber,
114
+ is as useInputErrors,
115
+ ns as useInvertTradePanel,
116
+ Es as useLimitPricePanel,
117
+ os as useOrder,
118
+ _s as useOrderDisplay,
119
+ Ts as useOrderHistoryPanel,
120
+ Ps as useOrderType,
121
+ us as usePartnerChains,
122
+ ls as useRePermitOrderData,
123
+ As as useRefetchUntilStatusSynced,
124
+ Os as useSignOrder,
125
+ Ss as useSubmitOrder,
126
+ Is as useSubmitOrderButton,
127
+ ds as useSubmitOrderPanel,
128
+ Rs as useTogglePricePanel,
129
+ gs as useTradesPanel,
130
+ Ls as useTranslations,
131
+ Ds as useTriggerPricePanel,
132
+ ms as zeroAddress
133
+ };