@orbs-network/spot-react 0.0.11 → 0.0.13
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-BTalXzxA.js → ccip-B0SUbLBC.js} +1 -1
- package/dist/{index-DJyC7-yy.js → index-CXDjLyJG.js} +11325 -10957
- package/dist/spot-react/package.json.d.ts +1 -1
- package/dist/spot-react/src/consts.d.ts +1 -1
- package/dist/spot-react/src/hooks/order-hooks.d.ts +1 -1
- package/dist/spot-react/src/hooks/use-build-repermit-order-data-callback.d.ts +1 -1
- package/dist/spot-react/src/hooks/use-cancel-order.d.ts +1 -1
- package/dist/spot-react/src/hooks/use-duration.d.ts +1 -1
- package/dist/spot-react/src/hooks/use-fill-delay.d.ts +1 -1
- package/dist/spot-react/src/hooks/use-history-order.d.ts +1 -1
- package/dist/spot-react/src/hooks/use-submit-order.d.ts +1 -1
- package/dist/spot-react/src/hooks/use-submit-swap-panel.d.ts +1 -1
- package/dist/spot-react/src/index.d.ts +2 -2
- package/dist/spot-react/src/index.d.ts.map +1 -1
- package/dist/spot-react/src/types.d.ts +3 -3
- package/dist/spot-react/src/utils.d.ts +1 -1
- package/dist/spot-react.js +118 -50
- package/dist/spot-react.umd.cjs +57 -57
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Configs, ORBS_TWAP_FAQ_URL, ORBS_LOGO, ORBS_LOGO_FALLBACK, ORBS_WEBSITE_URL, DISCLAIMER_URL, TimeUnit } from '
|
|
1
|
+
import { Configs, ORBS_TWAP_FAQ_URL, ORBS_LOGO, ORBS_LOGO_FALLBACK, ORBS_WEBSITE_URL, DISCLAIMER_URL, TimeUnit } from '@orbs-network/spot-ui';
|
|
2
2
|
export declare const REFETCH_ORDER_HISTORY = 20000;
|
|
3
3
|
export declare const MIN_NATIVE_BALANCE = 0.01;
|
|
4
4
|
export declare const SLIPPAGE_MULTIPLIER = 10;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Order, OrderStatus } from '
|
|
1
|
+
import { Order, OrderStatus } from '@orbs-network/spot-ui';
|
|
2
2
|
import { Token } from '../types';
|
|
3
3
|
export declare const useOrderName: (order?: Order) => string;
|
|
4
4
|
export declare const usePersistedOrdersStore: () => {
|
|
@@ -5,7 +5,7 @@ export declare const useBuildRePermitOrderDataCallback: () => {
|
|
|
5
5
|
chainId: number;
|
|
6
6
|
verifyingContract: `0x${string}`;
|
|
7
7
|
};
|
|
8
|
-
order: import('
|
|
8
|
+
order: import('@orbs-network/spot-ui').RePermitOrder;
|
|
9
9
|
types: {
|
|
10
10
|
RePermitWitnessTransferFrom: {
|
|
11
11
|
name: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const useSubmitOrderMutation: () => import('@tanstack/react-query').UseMutationResult<import('
|
|
1
|
+
export declare const useSubmitOrderMutation: () => import('@tanstack/react-query').UseMutationResult<import('@orbs-network/spot-ui').Order | undefined, Error, void, unknown>;
|
|
2
2
|
//# sourceMappingURL=use-submit-order.d.ts.map
|
|
@@ -99,6 +99,6 @@ export declare const useSubmitSwapPanel: () => {
|
|
|
99
99
|
resetSwap: () => void;
|
|
100
100
|
onCloseModal: () => void;
|
|
101
101
|
onOpenModal: () => void;
|
|
102
|
-
onSubmitOrder: () => Promise<import('
|
|
102
|
+
onSubmitOrder: () => Promise<import('@orbs-network/spot-ui').Order | undefined>;
|
|
103
103
|
};
|
|
104
104
|
//# sourceMappingURL=use-submit-swap-panel.d.ts.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Partners } from '../../spot-ui/src/index.ts';
|
|
2
1
|
import { SpotProvider } from './spot-context';
|
|
3
2
|
import { DISCLAIMER_URL, ORBS_LOGO, ORBS_WEBSITE_URL, DEFAULT_DURATION_OPTIONS } from './consts';
|
|
4
3
|
import { useTradesPanel } from './hooks/use-trades';
|
|
@@ -27,5 +26,6 @@ declare const Components: {
|
|
|
27
26
|
SubmitOrderPanel: (props: import('./types').SubmitOrderPanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
28
27
|
Orders: () => import("react/jsx-runtime").JSX.Element;
|
|
29
28
|
};
|
|
30
|
-
export
|
|
29
|
+
export * from '@orbs-network/spot-ui';
|
|
30
|
+
export { SpotProvider, ORBS_WEBSITE_URL, ORBS_LOGO, DEFAULT_DURATION_OPTIONS, DISCLAIMER_URL, Components, useTradesPanel, useDurationPanel, useFillDelayPanel, useLimitPricePanel, useMarketPricePanel, useSrcTokenPanel, useDstTokenPanel, useTriggerPricePanel, useOrderHistoryPanel, useSubmitSwapPanel, useDisclaimerPanel, useInvertTradePanel, useInputErrors, useTogglePricePanel, useBuildRePermitOrderDataCallback, useTypedSrcAmount };
|
|
31
31
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAEjG,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC7E,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,iCAAiC,EAAE,MAAM,gDAAgD,CAAC;AACnG,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,OAAO,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAOvD,QAAA,MAAM,iBAAiB;;;CAOtB,CAAC;AAGF,QAAA,MAAM,UAAU;;;CAGf,CAAC;AAEF,cAAc,uBAAuB,CAAC;AAGtC,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,SAAS,EACT,wBAAwB,EACxB,cAAc,EACd,UAAU,EACV,cAAc,EACd,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,EAChB,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,cAAc,EACd,mBAAmB,EACnB,iCAAiC,EACjC,iBAAiB,EAClB,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { CSSProperties, FC, ReactNode } from 'react';
|
|
2
|
-
import { Partners, Module, Order, OrderStatus, SpotConfig, TimeDuration } from '
|
|
2
|
+
import { Partners, Module, Order, OrderStatus, SpotConfig, TimeDuration } from '@orbs-network/spot-ui';
|
|
3
3
|
import { SwapStatus } from '@orbs-network/swap-ui';
|
|
4
4
|
import { createPublicClient, createWalletClient, TransactionReceipt as _TransactionReceipt, Abi } from 'viem';
|
|
5
|
-
export type { Order } from '
|
|
6
|
-
export { OrderStatus, type TwapFill, OrderType, Module } from '
|
|
5
|
+
export type { Order } from '@orbs-network/spot-ui';
|
|
6
|
+
export { OrderStatus, type TwapFill, OrderType, Module } from '@orbs-network/spot-ui';
|
|
7
7
|
export type TransactionReceipt = _TransactionReceipt;
|
|
8
8
|
export interface Translations {
|
|
9
9
|
deadlineTooltip: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AddressPadding, OrderType, Token } from './types';
|
|
2
|
-
import { eqIgnoreCase, isNativeAddress, Order } from '
|
|
2
|
+
import { eqIgnoreCase, isNativeAddress, Order } from '@orbs-network/spot-ui';
|
|
3
3
|
export declare const removeCommas: (numStr: string) => string;
|
|
4
4
|
type CopyFn = (text: string) => Promise<boolean>;
|
|
5
5
|
export declare const copy: CopyFn;
|
package/dist/spot-react.js
CHANGED
|
@@ -1,55 +1,123 @@
|
|
|
1
1
|
import "react";
|
|
2
|
-
import { C as r, F as t, D as
|
|
2
|
+
import { C as r, F as t, D as i, aE as n, aP as E, aN as o, aQ as _, aO as T, j as P, aI as l, an as u, aG as A, ak as I, aF as R, am as L, I as S, aD as O, ap as g, av as D, at as d, au as m, ax as M, aw as C, Q as U, h as c, aL as p, aK as N, aJ as k, O as F, M as b, N as B, P as y, L as G, aM as h, aj as x, al as Y, aH as f, as as v, S as w, J as H, K as W, ay as K, ao as Q, aq as V, ac as X, ad as z, a9 as j, bb as q, T as J, a0 as Z, a6 as $, U as aa, X as sa, ai as ea, ar as ra, aV as ta, b9 as ia, aY as na, aR as Ea, aS as oa, aU as _a, aZ as Ta, a8 as Pa, b8 as la, a$ as ua, b4 as Aa, aW as Ia, b6 as Ra, Z as La, b5 as Sa, b7 as Oa, aX as ga, ab as Da, _ as da, ae as ma, $ as Ma, a3 as Ca, ag as Ua, aC as ca, ba as pa, af as Na, a_ as ka, b2 as Fa, b0 as ba, b3 as Ba, b1 as ya, aT as Ga, a7 as ha, Y as xa, V as Ya, aB as fa, a1 as va, a2 as wa, aA as Ha, ah as Wa, W as Ka, R as Qa, aa as Va, a5 as Xa, a4 as za, bc as ja, A as qa, w as Ja, q as Za, k as $a, m as as, G as ss, y as es, x as rs, n as ts, o as is, t as ns, p as Es, v as os, z as _s, u as Ts, r as Ps, E as ls, az as us } from "./index-CXDjLyJG.js";
|
|
3
3
|
export {
|
|
4
4
|
r as Components,
|
|
5
5
|
t as Configs,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
D as
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
Z as
|
|
54
|
-
$ as
|
|
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
|
+
l as EIP712_TYPES,
|
|
14
|
+
u as ERC20_ABI,
|
|
15
|
+
A as EXCLUSIVITY_OVERRIDE_BPS,
|
|
16
|
+
I as EXECUTOR_ABI,
|
|
17
|
+
R as FEES,
|
|
18
|
+
L as IWETH_ABI,
|
|
19
|
+
S as InputErrors,
|
|
20
|
+
O as LEGACY_EXCHANGES_MAP,
|
|
21
|
+
g as LENS_ABI,
|
|
22
|
+
D as MAX_ORDER_DURATION_MILLIS,
|
|
23
|
+
d as MIN_CHUNKS,
|
|
24
|
+
m as MIN_FILL_DELAY_MILLIS,
|
|
25
|
+
M as MIN_FILL_DELAY_MINUTES,
|
|
26
|
+
C as MIN_ORDER_DURATION_MILLIS,
|
|
27
|
+
U as Module,
|
|
28
|
+
c as ORBS_LOGO,
|
|
29
|
+
p as ORBS_LOGO_FALLBACK,
|
|
30
|
+
N as ORBS_SLTP_FAQ_URL,
|
|
31
|
+
k as ORBS_TWAP_FAQ_URL,
|
|
32
|
+
F as ORBS_WEBSITE_URL,
|
|
33
|
+
b as OrderStatus,
|
|
34
|
+
B as OrderType,
|
|
35
|
+
y as PRICE_PROTECTION_SETTINGS,
|
|
36
|
+
G as Partners,
|
|
37
|
+
h as QUERY_PARAMS,
|
|
38
|
+
x as REACTOR_ABI,
|
|
39
|
+
Y as REPERMIT_ABI,
|
|
40
|
+
f as REPERMIT_PRIMARY_TYPE,
|
|
41
|
+
v as SUGGEST_CHUNK_VALUE,
|
|
42
|
+
w as SpotProvider,
|
|
43
|
+
H as Steps,
|
|
44
|
+
W as SwapStatus,
|
|
45
|
+
K as THE_GRAPH_ORDERS_API,
|
|
46
|
+
Q as TWAP_ABI,
|
|
47
|
+
V as TimeUnit,
|
|
48
|
+
X as amountBN,
|
|
49
|
+
z as amountUi,
|
|
50
|
+
j as analytics,
|
|
51
|
+
q as buildRePermitOrderData,
|
|
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 getEstimatedDelayBetweenChunksMillis,
|
|
66
|
+
Pa as getExplorerUrl,
|
|
67
|
+
la as getMaxChunksError,
|
|
68
|
+
ua as getMaxFillDelayError,
|
|
69
|
+
Aa as getMaxOrderDurationError,
|
|
70
|
+
Ia as getMaxPossibleChunks,
|
|
71
|
+
Ra as getMinFillDelayError,
|
|
72
|
+
La as getMinNativeBalance,
|
|
73
|
+
Sa as getMinOrderDurationError,
|
|
74
|
+
Oa as getMinTradeSizeError,
|
|
75
|
+
ga as getMinimumDelayMinutes,
|
|
76
|
+
Da as getNetwork,
|
|
77
|
+
da as getOrderExcecutionRate,
|
|
78
|
+
ma as getOrderFillDelayMillis,
|
|
79
|
+
Ma as getOrderLimitPriceRate,
|
|
80
|
+
Ca as getOrderType,
|
|
81
|
+
Ua as getPartnerChains,
|
|
82
|
+
ca as getPartnerIdentifier,
|
|
83
|
+
pa as getPartners,
|
|
84
|
+
Na as getQueryParam,
|
|
85
|
+
ka as getSrcTokenChunkAmount,
|
|
86
|
+
Fa as getStopLossLimitPriceError,
|
|
87
|
+
ba as getStopLossPriceError,
|
|
88
|
+
Ba as getTakeProfitLimitPriceError,
|
|
89
|
+
ya as getTakeProfitPriceError,
|
|
90
|
+
Ga as getTriggerPricePerChunk,
|
|
91
|
+
ha as isNativeAddress,
|
|
92
|
+
xa as isTxRejected,
|
|
93
|
+
Ya as makeElipsisAddress,
|
|
94
|
+
fa as maxUint256,
|
|
95
|
+
va as millisToDays,
|
|
96
|
+
wa as millisToMinutes,
|
|
97
|
+
Ha as nativeTokenAddresses,
|
|
98
|
+
Wa as networks,
|
|
99
|
+
Ka as parseError,
|
|
100
|
+
Qa as removeCommas,
|
|
101
|
+
Va as setUIVersion,
|
|
102
|
+
Xa as shouldUnwrapOnly,
|
|
103
|
+
za as shouldWrapOnly,
|
|
104
|
+
ja as submitOrder,
|
|
105
|
+
qa as useBuildRePermitOrderDataCallback,
|
|
106
|
+
Ja as useDisclaimerPanel,
|
|
107
|
+
Za as useDstTokenPanel,
|
|
108
|
+
$a as useDurationPanel,
|
|
109
|
+
as as useFillDelayPanel,
|
|
110
|
+
ss as useFormatNumber,
|
|
111
|
+
es as useInputErrors,
|
|
112
|
+
rs as useInvertTradePanel,
|
|
113
|
+
ts as useLimitPricePanel,
|
|
114
|
+
is as useMarketPricePanel,
|
|
115
|
+
ns as useOrderHistoryPanel,
|
|
116
|
+
Es as useSrcTokenPanel,
|
|
117
|
+
os as useSubmitSwapPanel,
|
|
118
|
+
_s as useTogglePricePanel,
|
|
119
|
+
Ts as useTradesPanel,
|
|
120
|
+
Ps as useTriggerPricePanel,
|
|
121
|
+
ls as useTypedSrcAmount,
|
|
122
|
+
us as zeroAddress
|
|
55
123
|
};
|