@orbs-network/spot-react 1.0.0 → 1.0.2
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/dist/{ccip-bPFWIGtu.js → ccip-BktNSwP8.js} +1 -1
- package/dist/{index-Jq763Rdi.js → index-Ij0jPMOb.js} +10745 -18599
- package/dist/spot-react/package.json.d.ts +2 -8
- package/dist/spot-react/src/consts.d.ts +1 -2
- package/dist/spot-react/src/consts.d.ts.map +1 -1
- package/dist/spot-react/src/hooks/helper-hooks.d.ts +41 -1
- package/dist/spot-react/src/hooks/helper-hooks.d.ts.map +1 -1
- package/dist/spot-react/src/hooks/order-hooks.d.ts +4 -28
- package/dist/spot-react/src/hooks/order-hooks.d.ts.map +1 -1
- package/dist/spot-react/src/hooks/use-build-order-info.d.ts +37 -65
- package/dist/spot-react/src/hooks/use-build-order-info.d.ts.map +1 -1
- package/dist/spot-react/src/hooks/use-cancel-order.d.ts +2 -2
- package/dist/spot-react/src/hooks/use-cancel-order.d.ts.map +1 -1
- package/dist/spot-react/src/hooks/use-disclaimer-panel.d.ts.map +1 -1
- package/dist/spot-react/src/hooks/use-duration.d.ts +6 -2
- package/dist/spot-react/src/hooks/use-duration.d.ts.map +1 -1
- package/dist/spot-react/src/hooks/use-fill-delay.d.ts +17 -5
- package/dist/spot-react/src/hooks/use-fill-delay.d.ts.map +1 -1
- package/dist/spot-react/src/hooks/use-history-order.d.ts +48 -2
- package/dist/spot-react/src/hooks/use-history-order.d.ts.map +1 -1
- package/dist/spot-react/src/hooks/use-input-errors.d.ts.map +1 -1
- package/dist/spot-react/src/hooks/use-limit-price-panel.d.ts +0 -2
- package/dist/spot-react/src/hooks/use-limit-price-panel.d.ts.map +1 -1
- package/dist/spot-react/src/hooks/use-limit-price.d.ts.map +1 -1
- package/dist/spot-react/src/hooks/use-order.d.ts +28 -78
- package/dist/spot-react/src/hooks/use-order.d.ts.map +1 -1
- package/dist/spot-react/src/hooks/use-src-amount.d.ts.map +1 -1
- package/dist/spot-react/src/hooks/use-submit-order-panel.d.ts +10 -10
- package/dist/spot-react/src/hooks/use-submit-order-panel.d.ts.map +1 -1
- package/dist/spot-react/src/hooks/use-submit-order.d.ts.map +1 -1
- package/dist/spot-react/src/hooks/use-swap-execution.d.ts +21 -0
- package/dist/spot-react/src/hooks/use-swap-execution.d.ts.map +1 -0
- package/dist/spot-react/src/hooks/use-trades.d.ts +5 -15
- package/dist/spot-react/src/hooks/use-trades.d.ts.map +1 -1
- package/dist/spot-react/src/hooks/use-trigger-price-panel.d.ts +0 -2
- package/dist/spot-react/src/hooks/use-trigger-price-panel.d.ts.map +1 -1
- package/dist/spot-react/src/hooks/use-trigger-price.d.ts.map +1 -1
- package/dist/spot-react/src/index.d.ts +9 -21
- package/dist/spot-react/src/index.d.ts.map +1 -1
- package/dist/spot-react/src/spot-context.d.ts +2 -2
- package/dist/spot-react/src/spot-context.d.ts.map +1 -1
- package/dist/spot-react/src/store.d.ts +2 -3
- package/dist/spot-react/src/store.d.ts.map +1 -1
- package/dist/spot-react/src/types.d.ts +16 -300
- package/dist/spot-react/src/types.d.ts.map +1 -1
- package/dist/spot-react/src/utils.d.ts +1 -7
- package/dist/spot-react/src/utils.d.ts.map +1 -1
- package/dist/spot-react.js +74 -131
- package/dist/spot-react.umd.cjs +50 -67
- package/dist/spot-ui/src/lib/analytics.d.ts.map +1 -1
- package/dist/spot-ui/src/lib/lib.d.ts +1 -1
- package/dist/spot-ui/src/lib/lib.d.ts.map +1 -1
- package/dist/spot-ui/src/lib/networks.d.ts +42 -0
- package/dist/spot-ui/src/lib/networks.d.ts.map +1 -1
- package/dist/spot-ui/src/lib/orders/v2-orders.d.ts.map +1 -1
- package/dist/spot-ui/src/lib/types.d.ts +1 -0
- package/dist/spot-ui/src/lib/types.d.ts.map +1 -1
- package/dist/spot-ui/src/lib/utils.d.ts +41 -1
- package/dist/spot-ui/src/lib/utils.d.ts.map +1 -1
- package/package.json +3 -9
- package/dist/spot-react/src/components/TokenLogo.d.ts +0 -9
- package/dist/spot-react/src/components/TokenLogo.d.ts.map +0 -1
- package/dist/spot-react/src/components/format-number.d.ts +0 -10
- package/dist/spot-react/src/components/format-number.d.ts.map +0 -1
- package/dist/spot-react/src/components/order-details.d.ts +0 -75
- package/dist/spot-react/src/components/order-details.d.ts.map +0 -1
- package/dist/spot-react/src/components/orders/order-fills.d.ts +0 -8
- package/dist/spot-react/src/components/orders/order-fills.d.ts.map +0 -1
- package/dist/spot-react/src/components/orders/order-preview.d.ts +0 -3
- package/dist/spot-react/src/components/orders/order-preview.d.ts.map +0 -1
- package/dist/spot-react/src/components/orders/orders-list.d.ts +0 -2
- package/dist/spot-react/src/components/orders/orders-list.d.ts.map +0 -1
- package/dist/spot-react/src/components/orders/orders.d.ts +0 -2
- package/dist/spot-react/src/components/orders/orders.d.ts.map +0 -1
- package/dist/spot-react/src/components/portal.d.ts +0 -6
- package/dist/spot-react/src/components/portal.d.ts.map +0 -1
- package/dist/spot-react/src/components/submit-order-panel.d.ts +0 -10
- package/dist/spot-react/src/components/submit-order-panel.d.ts.map +0 -1
- package/dist/spot-react/src/hooks/use-toggle-price.d.ts +0 -5
- package/dist/spot-react/src/hooks/use-toggle-price.d.ts.map +0 -1
- package/dist/spot-react/src/hooks/use-translations.d.ts +0 -3
- package/dist/spot-react/src/hooks/use-translations.d.ts.map +0 -1
- package/dist/spot-react/src/i18n/en.json.d.ts +0 -99
package/dist/spot-react.js
CHANGED
|
@@ -1,133 +1,76 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { D as e, a8 as r, af as t, ae as i, V as u, O as n, ab as o, aa as d, a9 as l, ac as O, Q as P, P as S, R as T, U as m, ag as p, a7 as R, S as g, aj as A, ai as E, ah as _, T as I, Z as D, ao as U, a2 as c, W as y, au as C, Y as L, $ as B, a3 as k, a5 as F, a4 as M, ar as b, a0 as h, X as W, a6 as w, a1 as x, an as N, ap as v, aq as f, ad as j, am as q, at as H, as as Q, _ as z, al as G, ak as V, w as J, I as K, E as X, z as Y, L as Z, J as $, A as aa, y as sa, q as ea, m as ra, h as ta, K as ia, j as ua, G as na, t as oa, r as da, k as la, M as Oa, o as Pa, v as Sa, F as Ta, x as ma, C as pa, p as Ra, N as ga, u as Aa, n as Ea } from "./index-Ij0jPMOb.js";
|
|
2
2
|
export {
|
|
3
|
-
e as
|
|
4
|
-
r as
|
|
5
|
-
t as
|
|
6
|
-
i as
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
o as
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
F as
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
h as
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
x as
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
Z as
|
|
54
|
-
$ as
|
|
55
|
-
aa as
|
|
56
|
-
sa as
|
|
57
|
-
ea as
|
|
58
|
-
ra as
|
|
59
|
-
ta as
|
|
60
|
-
ia as
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
oa as
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
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
|
|
3
|
+
e as DEFAULT_DURATIONS,
|
|
4
|
+
r as DISCLAIMER_URL,
|
|
5
|
+
t as ERC20_ABI,
|
|
6
|
+
i as IWETH_ABI,
|
|
7
|
+
u as InputErrors,
|
|
8
|
+
n as Module,
|
|
9
|
+
o as ORBS_LOGO,
|
|
10
|
+
d as ORBS_SLTP_FAQ_URL,
|
|
11
|
+
l as ORBS_TWAP_FAQ_URL,
|
|
12
|
+
O as ORBS_WEBSITE_URL,
|
|
13
|
+
P as OrderFilter,
|
|
14
|
+
S as OrderStatus,
|
|
15
|
+
T as OrderType,
|
|
16
|
+
m as Partners,
|
|
17
|
+
p as REPERMIT_ABI,
|
|
18
|
+
R as SPOT_VERSION,
|
|
19
|
+
g as SpotProvider,
|
|
20
|
+
A as Steps,
|
|
21
|
+
E as SwapStatus,
|
|
22
|
+
_ as TWAP_ABI,
|
|
23
|
+
I as TimeUnit,
|
|
24
|
+
D as buildRePermitOrderData,
|
|
25
|
+
U as ensureWrappedToken,
|
|
26
|
+
c as eqIgnoreCase,
|
|
27
|
+
y as getConfig,
|
|
28
|
+
C as getExplorerUrl,
|
|
29
|
+
L as getMinChunkSizeUsd,
|
|
30
|
+
B as getNetwork,
|
|
31
|
+
k as getOrderExecutionRate,
|
|
32
|
+
F as getOrderFillDelayMillis,
|
|
33
|
+
M as getOrderLimitPriceRate,
|
|
34
|
+
b as getOrderType,
|
|
35
|
+
h as getPartnerChains,
|
|
36
|
+
W as getPartners,
|
|
37
|
+
w as getTriggerPricePerTrade,
|
|
38
|
+
x as isNativeAddress,
|
|
39
|
+
N as isTxRejected,
|
|
40
|
+
v as millisToDays,
|
|
41
|
+
f as millisToMinutes,
|
|
42
|
+
j as networks,
|
|
43
|
+
q as parseError,
|
|
44
|
+
H as shouldUnwrapOnly,
|
|
45
|
+
Q as shouldWrapOnly,
|
|
46
|
+
z as submitOrder,
|
|
47
|
+
G as toAmountUi,
|
|
48
|
+
V as toAmountWei,
|
|
49
|
+
J as useAddresses,
|
|
50
|
+
K as useAmountUi,
|
|
51
|
+
X as useCancelOrderMutation,
|
|
52
|
+
Y as useCancelOrderRefetchUntilStatusSynced,
|
|
53
|
+
Z as useCopyToClipboard,
|
|
54
|
+
$ as useDateFormat,
|
|
55
|
+
aa as useDerivedHistoryOrder,
|
|
56
|
+
sa as useDerivedOrder,
|
|
57
|
+
ea as useDisclaimerPanel,
|
|
58
|
+
ra as useDstTokenPanel,
|
|
59
|
+
ta as useDurationPanel,
|
|
60
|
+
ia as useExplorerLink,
|
|
61
|
+
ua as useFillDelayPanel,
|
|
62
|
+
na as useFormatNumber,
|
|
63
|
+
oa as useInputErrors,
|
|
64
|
+
da as useInvertTradePanel,
|
|
65
|
+
la as useLimitPricePanel,
|
|
66
|
+
Oa as useNetwork,
|
|
67
|
+
Pa as useOrderHistoryPanel,
|
|
68
|
+
Sa as usePartnerChains,
|
|
69
|
+
Ta as useSignOrder,
|
|
70
|
+
ma as useSubmitOrderButton,
|
|
71
|
+
pa as useSubmitOrderMutation,
|
|
72
|
+
Ra as useSubmitOrderPanel,
|
|
73
|
+
ga as useSwapExecution,
|
|
74
|
+
Aa as useTradesPanel,
|
|
75
|
+
Ea as useTriggerPricePanel
|
|
133
76
|
};
|