@orbs-network/spot-react 1.0.0 → 1.0.1
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-ghobQCPh.js} +1 -1
- package/dist/{index-Jq763Rdi.js → index-kIt8svRl.js} +3795 -3803
- package/dist/spot-react/package.json.d.ts +1 -1
- package/dist/spot-react/src/components/submit-order-panel.d.ts.map +1 -1
- package/dist/spot-react/src/hooks/helper-hooks.d.ts +40 -0
- package/dist/spot-react/src/hooks/helper-hooks.d.ts.map +1 -1
- package/dist/spot-react/src/hooks/order-hooks.d.ts +1 -1
- package/dist/spot-react/src/hooks/use-cancel-order.d.ts +1 -1
- package/dist/spot-react/src/hooks/use-cancel-order.d.ts.map +1 -1
- package/dist/spot-react/src/hooks/use-submit-order.d.ts.map +1 -1
- package/dist/spot-react/src/index.d.ts +1 -1
- 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.map +1 -1
- package/dist/spot-react/src/types.d.ts +1 -1
- package/dist/spot-react/src/utils.d.ts +1 -1
- package/dist/spot-react/src/utils.d.ts.map +1 -1
- package/dist/spot-react.js +84 -131
- package/dist/spot-react.umd.cjs +50 -50
- 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/utils.d.ts +41 -1
- package/dist/spot-ui/src/lib/utils.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"submit-order-panel.d.ts","sourceRoot":"","sources":["../../../../src/components/submit-order-panel.tsx"],"names":[],"mappings":"AACA,OAAO,EAAiB,SAAS,EAAuB,MAAM,OAAO,CAAC;AAMtE,OAAO,EAAsB,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAiBrE,KAAK,KAAK,GAAG,qBAAqB,GAAG;IACnC,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,0BAA0B,GAAI,uBAAuB,KAAK,4CAEtE,CAAC;AAEF,eAAO,MAAM,0BAA0B,6BAEtC,CAAC;
|
|
1
|
+
{"version":3,"file":"submit-order-panel.d.ts","sourceRoot":"","sources":["../../../../src/components/submit-order-panel.tsx"],"names":[],"mappings":"AACA,OAAO,EAAiB,SAAS,EAAuB,MAAM,OAAO,CAAC;AAMtE,OAAO,EAAsB,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAiBrE,KAAK,KAAK,GAAG,qBAAqB,GAAG;IACnC,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,0BAA0B,GAAI,uBAAuB,KAAK,4CAEtE,CAAC;AAEF,eAAO,MAAM,0BAA0B,6BAEtC,CAAC;AAsOF,QAAA,MAAM,gBAAgB,GAAI,OAAO,qBAAqB,4CAsDrD,CAAC;AAoBF,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -420,6 +420,46 @@ export declare const useNetwork: () => {
|
|
|
420
420
|
logoUrl: string;
|
|
421
421
|
explorer: string;
|
|
422
422
|
eip1559: boolean;
|
|
423
|
+
} | {
|
|
424
|
+
id: number;
|
|
425
|
+
name: string;
|
|
426
|
+
shortname: string;
|
|
427
|
+
native: {
|
|
428
|
+
address: string;
|
|
429
|
+
symbol: string;
|
|
430
|
+
decimals: number;
|
|
431
|
+
logoUrl: string;
|
|
432
|
+
};
|
|
433
|
+
wToken: {
|
|
434
|
+
symbol: string;
|
|
435
|
+
address: string;
|
|
436
|
+
decimals: number;
|
|
437
|
+
logoUrl: string;
|
|
438
|
+
};
|
|
439
|
+
publicRpcUrl: string;
|
|
440
|
+
logoUrl: string;
|
|
441
|
+
explorer: string;
|
|
442
|
+
eip1559: boolean;
|
|
443
|
+
} | {
|
|
444
|
+
id: number;
|
|
445
|
+
name: string;
|
|
446
|
+
shortname: string;
|
|
447
|
+
native: {
|
|
448
|
+
address: string;
|
|
449
|
+
symbol: string;
|
|
450
|
+
decimals: number;
|
|
451
|
+
logoUrl: string;
|
|
452
|
+
};
|
|
453
|
+
wToken: {
|
|
454
|
+
symbol: string;
|
|
455
|
+
address: string;
|
|
456
|
+
decimals: number;
|
|
457
|
+
logoUrl: string;
|
|
458
|
+
};
|
|
459
|
+
publicRpcUrl: string;
|
|
460
|
+
logoUrl: string;
|
|
461
|
+
explorer: string;
|
|
462
|
+
eip1559: boolean;
|
|
423
463
|
} | undefined;
|
|
424
464
|
export declare const useExplorerLink: (txHash?: string) => string | undefined;
|
|
425
465
|
export declare const useUsdAmount: (amount?: string, usd?: string | number) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helper-hooks.d.ts","sourceRoot":"","sources":["../../../../src/hooks/helper-hooks.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,WAAW,GAAI,WAAW,MAAM,EAAE,QAAQ,MAAM,WAE5D,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,WAAW,MAAM,EAAE,QAAQ,MAAM,WAE5D,CAAC;AAEF,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"helper-hooks.d.ts","sourceRoot":"","sources":["../../../../src/hooks/helper-hooks.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,WAAW,GAAI,WAAW,MAAM,EAAE,QAAQ,MAAM,WAE5D,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,WAAW,MAAM,EAAE,QAAQ,MAAM,WAE5D,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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
|
onCancelOrder: (order: Order) => Promise<string>;
|
|
18
18
|
onSelectOrderFilter: (orderHistoryStatusFilter: OrderFilter) => void;
|
|
19
19
|
onDisplayOrder: (id?: string) => void;
|
|
20
|
-
onCancelAllOpenOrders: () => Promise<string[] | undefined>;
|
|
20
|
+
onCancelAllOpenOrders: () => Promise<(string | undefined)[] | undefined>;
|
|
21
21
|
onHideOrderFills: () => void;
|
|
22
22
|
isRefetching: boolean;
|
|
23
23
|
allOrders: Order[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Order } from '../../../spot-ui/src/index.ts';
|
|
2
2
|
export declare const useRefetchUntilStatusSynced: () => import('@tanstack/react-query').UseMutationResult<void, Error, string[], unknown>;
|
|
3
|
-
export declare const useCancelOrderMutation: () => import('@tanstack/react-query').UseMutationResult<string[] | undefined, Error, {
|
|
3
|
+
export declare const useCancelOrderMutation: () => import('@tanstack/react-query').UseMutationResult<(string | undefined)[] | undefined, Error, {
|
|
4
4
|
orders: Order[];
|
|
5
5
|
}, unknown>;
|
|
6
6
|
//# sourceMappingURL=use-cancel-order.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-cancel-order.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-cancel-order.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,EAIN,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"use-cancel-order.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-cancel-order.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,EAIN,MAAM,uBAAuB,CAAC;AAU/B,eAAO,MAAM,2BAA2B,yFA0BvC,CAAC;AAEF,eAAO,MAAM,sBAAsB;YAqEU,KAAK,EAAE;WAwCnD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-submit-order.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-submit-order.ts"],"names":[],"mappings":"AAgGA,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"use-submit-order.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-submit-order.ts"],"names":[],"mappings":"AAgGA,eAAO,MAAM,YAAY,sHAmDxB,CAAC;AA6LF,eAAO,MAAM,sBAAsB,sHA0FlC,CAAC"}
|
|
@@ -33,6 +33,6 @@ declare const Components: {
|
|
|
33
33
|
container?: Element | DocumentFragment | null;
|
|
34
34
|
}) => import('react').ReactPortal | null;
|
|
35
35
|
};
|
|
36
|
-
export
|
|
36
|
+
export { type Config, type SpotConfig, type TimeDuration, type PartnerPayloadItem, type RePermitOrder, type Signature, type Address, type Hex, type InputError, Module, OrderStatus, OrderFilter, OrderType, TimeUnit, Partners, InputErrors, getConfig, getPartners, getMinChunkSizeUsd, getAccountOrders, buildRePermitOrderData, submitOrder, getNetwork, getPartnerChains, isNativeAddress, eqIgnoreCase, getOrderExecutionRate, getOrderLimitPriceRate, getOrderFillDelayMillis, getTriggerPricePerTrade, SPOT_VERSION, DISCLAIMER_URL, ORBS_TWAP_FAQ_URL, ORBS_SLTP_FAQ_URL, ORBS_LOGO, ORBS_WEBSITE_URL, FEES, networks, Configs, IWETH_ABI, ERC20_ABI, REPERMIT_ABI, TWAP_ABI, analytics, } from '../../spot-ui/src/index.ts';
|
|
37
37
|
export { SpotProvider, DEFAULT_DURATION_OPTIONS, Components, useTradesPanel, useDurationPanel, useFillDelayPanel, useLimitPricePanel, useDstTokenPanel, useTriggerPricePanel, useOrderHistoryPanel, useSubmitOrderPanel, useDisclaimerPanel, useInvertTradePanel, useInputErrors, useTogglePricePanel, useTranslations, usePartnerChains, useAddresses, useSubmitOrderButton, useOrder, useOrderDisplay, formatDecimals, useSubmitOrderMutation as useSubmitOrder, useSignOrder, useOrderType, useRePermitOrderData, useRefetchUntilStatusSynced };
|
|
38
38
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../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EACjB,kBAAkB,EAClB,gBAAgB,EAChB,oBAAoB,EACpB,oBAAoB,EACpB,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACnB,cAAc,EACd,mBAAmB,EACnB,eAAe,EACf,gBAAgB,EAChB,YAAY,EACZ,oBAAoB,EACpB,QAAQ,EACR,eAAe,EACf,cAAc,EACd,sBAAsB,IAAI,cAAc,EACxC,YAAY,EACZ,YAAY,EACZ,oBAAoB,EACpB,2BAA2B,EAC5B,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { SpotProps, SpotContextType } from './types';
|
|
3
3
|
export declare const SpotContext: React.Context<SpotContextType | null>;
|
|
4
|
-
export declare const SpotProvider: (props:
|
|
4
|
+
export declare const SpotProvider: (props: SpotProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export declare const useSpotContext: () => SpotContextType;
|
|
6
6
|
//# sourceMappingURL=spot-context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spot-context.d.ts","sourceRoot":"","sources":["../../../src/spot-context.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwD,MAAM,OAAO,CAAC;AAU7E,OAAO,EACL,SAAS,EACT,eAAe,EAGhB,MAAM,SAAS,CAAC;AAgEjB,eAAO,MAAM,WAAW,uCAA8C,CAAC;
|
|
1
|
+
{"version":3,"file":"spot-context.d.ts","sourceRoot":"","sources":["../../../src/spot-context.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwD,MAAM,OAAO,CAAC;AAU7E,OAAO,EACL,SAAS,EACT,eAAe,EAGhB,MAAM,SAAS,CAAC;AAgEjB,eAAO,MAAM,WAAW,uCAA8C,CAAC;AAsLvE,eAAO,MAAM,YAAY,GAAI,OAAO,SAAS,4CAM5C,CAAC;AAEF,eAAO,MAAM,cAAc,uBAM1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../src/store.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAG/C,UAAU,SAAS;IACjB,UAAU,EAAE,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC;IAC5C,WAAW,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC;IAC7C,mBAAmB,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,aAAa,CAAC,KAAK,IAAI,CAAC;IAC7D,kBAAkB,EAAE,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,KAAK,IAAI,CAAC;IAC7D,KAAK,EAAE,KAAK,CAAC;CACd;AAQD,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../src/store.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAG/C,UAAU,SAAS;IACjB,UAAU,EAAE,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC;IAC5C,WAAW,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC;IAC7C,mBAAmB,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,aAAa,CAAC,KAAK,IAAI,CAAC;IAC7D,kBAAkB,EAAE,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,KAAK,IAAI,CAAC;IAC7D,KAAK,EAAE,KAAK,CAAC;CACd;AAQD,eAAO,MAAM,YAAY,wEAoBtB,CAAC"}
|
|
@@ -5,7 +5,7 @@ export declare const toAmountWei: (value?: string, decimals?: number) => string;
|
|
|
5
5
|
export declare const toAmountUi: (value?: string, decimals?: number) => string;
|
|
6
6
|
export declare const copy: (text: string) => Promise<boolean>;
|
|
7
7
|
export declare const fillDelayText: (value?: number) => string;
|
|
8
|
-
export declare const
|
|
8
|
+
export declare const makeEllipsisAddress: (address?: string, padding?: AddressPadding) => string;
|
|
9
9
|
export declare const parseError: (error?: any) => "An error occurred." | "Transaction Rejected";
|
|
10
10
|
export declare function formatDecimals(value?: string, scale?: number, maxDecimals?: number): string;
|
|
11
11
|
export declare const isTxRejected: (error: any) => any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAE3D,OAAO,EACL,YAAY,EAEZ,eAAe,EAEhB,MAAM,uBAAuB,CAAC;AAE/B,eAAO,MAAM,YAAY,GAAI,QAAQ,MAAM,KAAG,MAE7C,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,QAAQ,MAAM,EAAE,WAAW,MAAM,WAG5D,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,QAAQ,MAAM,EAAE,WAAW,MAAM,WAS3D,CAAC;AAEF,eAAO,MAAM,IAAI,GAAU,MAAM,MAAM,qBAetC,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,QAAQ,MAAM,WA2B3C,CAAC;AAEF,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAE3D,OAAO,EACL,YAAY,EAEZ,eAAe,EAEhB,MAAM,uBAAuB,CAAC;AAE/B,eAAO,MAAM,YAAY,GAAI,QAAQ,MAAM,KAAG,MAE7C,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,QAAQ,MAAM,EAAE,WAAW,MAAM,WAG5D,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,QAAQ,MAA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as d, O, ad as P, ac as T, ab as m, ae as S, R as g, Q as R, T as E, P as p, V as I, ak as _, a9 as A, S as c, an as y, ao as D, al as C, U, am as B, $ as L, as as N, ay as F, a4 as b, at as h, F as k, _ as M, X as W, aE as f, Z as v, ax as x, a1 as w, a5 as j, a7 as q, a6 as z, aB as G, a2 as Q, Y as H, a8 as V, a3 as J, aw as K, au as X, az as Y, aA as Z, ag as $, av as aa, ap as sa, aD as ea, aC as ra, a0 as ta, ar as ia, aq as na, y as ua, q as la, m as oa, h as da, j as Oa, M as Pa, t as Ta, r as ma, k as Sa, A as ga, E as Ra, o as Ea, J as pa, x as Ia, K as _a, L as Aa, I as ca, G as ya, z as Da, p as Ca, v as Ua, u as Ba, w as La, n as Na } from "./index-kIt8svRl.js";
|
|
2
2
|
export {
|
|
3
|
-
e as
|
|
4
|
-
r as
|
|
5
|
-
t as
|
|
6
|
-
i as
|
|
7
|
-
n as
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
C as
|
|
28
|
-
U as
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
F as
|
|
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
|
|
55
|
-
aa as
|
|
56
|
-
sa as
|
|
57
|
-
ea as
|
|
58
|
-
ra as
|
|
59
|
-
ta as
|
|
60
|
-
ia as
|
|
61
|
-
na as
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
Ca as
|
|
82
|
-
Ua as
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
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 Components,
|
|
4
|
+
r as Configs,
|
|
5
|
+
t as DEFAULT_DURATION_OPTIONS,
|
|
6
|
+
i as DISCLAIMER_URL,
|
|
7
|
+
n as ERC20_ABI,
|
|
8
|
+
u as FEES,
|
|
9
|
+
l as FormatNumber,
|
|
10
|
+
o as IWETH_ABI,
|
|
11
|
+
d as InputErrors,
|
|
12
|
+
O as Module,
|
|
13
|
+
P as ORBS_LOGO,
|
|
14
|
+
T as ORBS_SLTP_FAQ_URL,
|
|
15
|
+
m as ORBS_TWAP_FAQ_URL,
|
|
16
|
+
S as ORBS_WEBSITE_URL,
|
|
17
|
+
g as OrderFilter,
|
|
18
|
+
R as OrderStatus,
|
|
19
|
+
E as OrderType,
|
|
20
|
+
p as PRICE_PROTECTION_SETTINGS,
|
|
21
|
+
I as Partners,
|
|
22
|
+
_ as REPERMIT_ABI,
|
|
23
|
+
A as SPOT_VERSION,
|
|
24
|
+
c as SpotProvider,
|
|
25
|
+
y as Steps,
|
|
26
|
+
D as SwapStatus,
|
|
27
|
+
C as TWAP_ABI,
|
|
28
|
+
U as TimeUnit,
|
|
29
|
+
B as analytics,
|
|
30
|
+
L as buildRePermitOrderData,
|
|
31
|
+
N as copy,
|
|
32
|
+
F as ensureWrappedToken,
|
|
33
|
+
b as eqIgnoreCase,
|
|
34
|
+
h as fillDelayText,
|
|
35
|
+
k as formatDecimals,
|
|
36
|
+
M as getAccountOrders,
|
|
37
|
+
W as getConfig,
|
|
38
|
+
f as getExplorerUrl,
|
|
39
|
+
v as getMinChunkSizeUsd,
|
|
40
|
+
x as getMinNativeBalance,
|
|
41
|
+
w as getNetwork,
|
|
42
|
+
j as getOrderExecutionRate,
|
|
43
|
+
q as getOrderFillDelayMillis,
|
|
44
|
+
z as getOrderLimitPriceRate,
|
|
45
|
+
G as getOrderType,
|
|
46
|
+
Q as getPartnerChains,
|
|
47
|
+
H as getPartners,
|
|
48
|
+
V as getTriggerPricePerTrade,
|
|
49
|
+
J as isNativeAddress,
|
|
50
|
+
K as isTxRejected,
|
|
51
|
+
X as makeEllipsisAddress,
|
|
52
|
+
Y as millisToDays,
|
|
53
|
+
Z as millisToMinutes,
|
|
54
|
+
$ as networks,
|
|
55
|
+
aa as parseError,
|
|
56
|
+
sa as removeCommas,
|
|
57
|
+
ea as shouldUnwrapOnly,
|
|
58
|
+
ra as shouldWrapOnly,
|
|
59
|
+
ta as submitOrder,
|
|
60
|
+
ia as toAmountUi,
|
|
61
|
+
na as toAmountWei,
|
|
62
|
+
ua as useAddresses,
|
|
63
|
+
la as useDisclaimerPanel,
|
|
64
|
+
oa as useDstTokenPanel,
|
|
65
|
+
da as useDurationPanel,
|
|
66
|
+
Oa as useFillDelayPanel,
|
|
67
|
+
Pa as useFormatNumber,
|
|
68
|
+
Ta as useInputErrors,
|
|
69
|
+
ma as useInvertTradePanel,
|
|
70
|
+
Sa as useLimitPricePanel,
|
|
71
|
+
ga as useOrder,
|
|
72
|
+
Ra as useOrderDisplay,
|
|
73
|
+
Ea as useOrderHistoryPanel,
|
|
74
|
+
pa as useOrderType,
|
|
75
|
+
Ia as usePartnerChains,
|
|
76
|
+
_a as useRePermitOrderData,
|
|
77
|
+
Aa as useRefetchUntilStatusSynced,
|
|
78
|
+
ca as useSignOrder,
|
|
79
|
+
ya as useSubmitOrder,
|
|
80
|
+
Da as useSubmitOrderButton,
|
|
81
|
+
Ca as useSubmitOrderPanel,
|
|
82
|
+
Ua as useTogglePricePanel,
|
|
83
|
+
Ba as useTradesPanel,
|
|
84
|
+
La as useTranslations,
|
|
85
|
+
Na as useTriggerPricePanel
|
|
133
86
|
};
|