@orbs-network/spot-react 2.0.1 → 2.1.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/README.md +277 -148
- package/dist/spot-react/src/context/client-error-notice.d.ts +7 -0
- package/dist/spot-react/src/context/client-error-notice.d.ts.map +1 -0
- package/dist/spot-react/src/context/create-spot-store.d.ts +53 -0
- package/dist/spot-react/src/context/create-spot-store.d.ts.map +1 -0
- package/dist/spot-react/src/context/error-boundary.d.ts +7 -0
- package/dist/spot-react/src/context/error-boundary.d.ts.map +1 -0
- package/dist/spot-react/src/context/order-form-context.d.ts +7 -0
- package/dist/spot-react/src/context/order-form-context.d.ts.map +1 -0
- package/dist/spot-react/src/context/spot-form-synchronizer.d.ts +14 -0
- package/dist/spot-react/src/context/spot-form-synchronizer.d.ts.map +1 -0
- package/dist/spot-react/src/context/spot-provider.d.ts +3 -0
- package/dist/spot-react/src/context/spot-provider.d.ts.map +1 -0
- package/dist/spot-react/src/context/spot-runtime-context.d.ts +33 -0
- package/dist/spot-react/src/context/spot-runtime-context.d.ts.map +1 -0
- package/dist/spot-react/src/context/spot-store-context.d.ts +10 -0
- package/dist/spot-react/src/context/spot-store-context.d.ts.map +1 -0
- package/dist/spot-react/src/context/use-client.d.ts +10 -0
- package/dist/spot-react/src/context/use-client.d.ts.map +1 -0
- package/dist/spot-react/src/context/use-spot-analytics.d.ts +3 -0
- package/dist/spot-react/src/context/use-spot-analytics.d.ts.map +1 -0
- package/dist/spot-react/src/context/use-spot-provider-state.d.ts +11 -0
- package/dist/spot-react/src/context/use-spot-provider-state.d.ts.map +1 -0
- package/dist/spot-react/src/execute-order.d.ts +25 -0
- package/dist/spot-react/src/execute-order.d.ts.map +1 -0
- package/dist/spot-react/src/execution-state.d.ts +19 -0
- package/dist/spot-react/src/execution-state.d.ts.map +1 -0
- package/dist/spot-react/src/hooks/helper-hooks.d.ts +0 -547
- package/dist/spot-react/src/hooks/helper-hooks.d.ts.map +1 -1
- package/dist/spot-react/src/hooks/order-hooks.d.ts +28 -18
- package/dist/spot-react/src/hooks/order-hooks.d.ts.map +1 -1
- package/dist/spot-react/src/hooks/use-cancel-order.d.ts +5 -4
- package/dist/spot-react/src/hooks/use-cancel-order.d.ts.map +1 -1
- package/dist/spot-react/src/hooks/use-disclaimer.d.ts.map +1 -1
- package/dist/spot-react/src/hooks/use-duration.d.ts +3 -20
- package/dist/spot-react/src/hooks/use-duration.d.ts.map +1 -1
- package/dist/spot-react/src/hooks/use-execution.d.ts +30 -0
- package/dist/spot-react/src/hooks/use-execution.d.ts.map +1 -0
- package/dist/spot-react/src/hooks/use-fill-delay.d.ts +3 -22
- 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 +51 -28
- 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 +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.d.ts +14 -21
- package/dist/spot-react/src/hooks/use-limit-price.d.ts.map +1 -1
- package/dist/spot-react/src/hooks/use-output-amount.d.ts +5 -0
- package/dist/spot-react/src/hooks/use-output-amount.d.ts.map +1 -0
- package/dist/spot-react/src/hooks/use-price-display.d.ts +10 -0
- package/dist/spot-react/src/hooks/use-price-display.d.ts.map +1 -0
- package/dist/spot-react/src/hooks/use-submit-order.d.ts +1 -2
- 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 +9 -10
- package/dist/spot-react/src/hooks/use-swap-execution.d.ts.map +1 -1
- package/dist/spot-react/src/hooks/use-trades.d.ts +7 -17
- package/dist/spot-react/src/hooks/use-trades.d.ts.map +1 -1
- package/dist/spot-react/src/hooks/use-trigger-price.d.ts +13 -20
- package/dist/spot-react/src/hooks/use-trigger-price.d.ts.map +1 -1
- package/dist/spot-react/src/index.d.ts +20 -11
- package/dist/spot-react/src/index.d.ts.map +1 -1
- package/dist/spot-react/src/order-history-data.d.ts +14 -0
- package/dist/spot-react/src/order-history-data.d.ts.map +1 -0
- package/dist/spot-react/src/types.d.ts +108 -123
- package/dist/spot-react/src/types.d.ts.map +1 -1
- package/dist/spot-react.js +1627 -6489
- package/dist/spot-react.umd.cjs +1 -64
- package/package.json +8 -13
- package/dist/spot-react/package.json.d.ts +0 -56
- package/dist/spot-react/src/hooks/use-amounts-usd.d.ts +0 -5
- package/dist/spot-react/src/hooks/use-amounts-usd.d.ts.map +0 -1
- package/dist/spot-react/src/hooks/use-build-order-info.d.ts +0 -62
- package/dist/spot-react/src/hooks/use-build-order-info.d.ts.map +0 -1
- package/dist/spot-react/src/hooks/use-deadline.d.ts +0 -2
- package/dist/spot-react/src/hooks/use-deadline.d.ts.map +0 -1
- package/dist/spot-react/src/hooks/use-default-values.d.ts +0 -3
- package/dist/spot-react/src/hooks/use-default-values.d.ts.map +0 -1
- package/dist/spot-react/src/hooks/use-dst-amount.d.ts +0 -11
- package/dist/spot-react/src/hooks/use-dst-amount.d.ts.map +0 -1
- package/dist/spot-react/src/hooks/use-dst-token-panel.d.ts +0 -7
- package/dist/spot-react/src/hooks/use-dst-token-panel.d.ts.map +0 -1
- package/dist/spot-react/src/hooks/use-fees.d.ts +0 -7
- package/dist/spot-react/src/hooks/use-fees.d.ts.map +0 -1
- package/dist/spot-react/src/hooks/use-form-data.d.ts +0 -57
- package/dist/spot-react/src/hooks/use-form-data.d.ts.map +0 -1
- package/dist/spot-react/src/hooks/use-input-with-percentage.d.ts +0 -16
- package/dist/spot-react/src/hooks/use-input-with-percentage.d.ts.map +0 -1
- package/dist/spot-react/src/hooks/use-limit-price-panel.d.ts +0 -22
- package/dist/spot-react/src/hooks/use-limit-price-panel.d.ts.map +0 -1
- package/dist/spot-react/src/hooks/use-partner-chains.d.ts +0 -2
- package/dist/spot-react/src/hooks/use-partner-chains.d.ts.map +0 -1
- package/dist/spot-react/src/hooks/use-price-panel.d.ts +0 -21
- package/dist/spot-react/src/hooks/use-price-panel.d.ts.map +0 -1
- package/dist/spot-react/src/hooks/use-repermit-data.d.ts +0 -7
- package/dist/spot-react/src/hooks/use-repermit-data.d.ts.map +0 -1
- package/dist/spot-react/src/hooks/use-repermit-order-data.d.ts +0 -20
- package/dist/spot-react/src/hooks/use-repermit-order-data.d.ts.map +0 -1
- package/dist/spot-react/src/hooks/use-spot.d.ts +0 -40
- package/dist/spot-react/src/hooks/use-spot.d.ts.map +0 -1
- package/dist/spot-react/src/hooks/use-src-amount.d.ts +0 -6
- package/dist/spot-react/src/hooks/use-src-amount.d.ts.map +0 -1
- package/dist/spot-react/src/hooks/use-submit-order-panel.d.ts +0 -28
- package/dist/spot-react/src/hooks/use-submit-order-panel.d.ts.map +0 -1
- package/dist/spot-react/src/hooks/use-trade-price.d.ts +0 -2
- package/dist/spot-react/src/hooks/use-trade-price.d.ts.map +0 -1
- package/dist/spot-react/src/hooks/use-trigger-price-panel.d.ts +0 -23
- package/dist/spot-react/src/hooks/use-trigger-price-panel.d.ts.map +0 -1
- package/dist/spot-react/src/spot-context.d.ts +0 -6
- package/dist/spot-react/src/spot-context.d.ts.map +0 -1
- package/dist/spot-react/src/store.d.ts +0 -11
- package/dist/spot-react/src/store.d.ts.map +0 -1
- package/dist/spot-react/src/utils.d.ts +0 -20
- package/dist/spot-react/src/utils.d.ts.map +0 -1
- package/dist/spot-ui/src/index.d.ts +0 -14
- package/dist/spot-ui/src/index.d.ts.map +0 -1
- package/dist/spot-ui/src/lib/abi/erc20.json.d.ts +0 -291
- package/dist/spot-ui/src/lib/abi/index.d.ts +0 -260
- package/dist/spot-ui/src/lib/abi/index.d.ts.map +0 -1
- package/dist/spot-ui/src/lib/abi/iweth.json.d.ts +0 -41
- package/dist/spot-ui/src/lib/abi/repermit.json.d.ts +0 -315
- package/dist/spot-ui/src/lib/analytics.d.ts +0 -111
- package/dist/spot-ui/src/lib/analytics.d.ts.map +0 -1
- package/dist/spot-ui/src/lib/build-repermit-order-data.d.ts +0 -35
- package/dist/spot-ui/src/lib/build-repermit-order-data.d.ts.map +0 -1
- package/dist/spot-ui/src/lib/consts.d.ts +0 -99
- package/dist/spot-ui/src/lib/consts.d.ts.map +0 -1
- package/dist/spot-ui/src/lib/lib.d.ts +0 -80
- package/dist/spot-ui/src/lib/lib.d.ts.map +0 -1
- package/dist/spot-ui/src/lib/networks.d.ts +0 -571
- package/dist/spot-ui/src/lib/networks.d.ts.map +0 -1
- package/dist/spot-ui/src/lib/orders/index.d.ts +0 -15
- package/dist/spot-ui/src/lib/orders/index.d.ts.map +0 -1
- package/dist/spot-ui/src/lib/orders/v1-orders.d.ts +0 -34
- package/dist/spot-ui/src/lib/orders/v1-orders.d.ts.map +0 -1
- package/dist/spot-ui/src/lib/orders/v2-orders.d.ts +0 -11
- package/dist/spot-ui/src/lib/orders/v2-orders.d.ts.map +0 -1
- package/dist/spot-ui/src/lib/submit-order.d.ts +0 -3
- package/dist/spot-ui/src/lib/submit-order.d.ts.map +0 -1
- package/dist/spot-ui/src/lib/types.d.ts +0 -318
- package/dist/spot-ui/src/lib/types.d.ts.map +0 -1
- package/dist/spot-ui/src/lib/utils.d.ts +0 -578
- package/dist/spot-ui/src/lib/utils.d.ts.map +0 -1
|
@@ -1,318 +0,0 @@
|
|
|
1
|
-
export type Config = {
|
|
2
|
-
chainName: string;
|
|
3
|
-
chainId: number;
|
|
4
|
-
twapVersion: number;
|
|
5
|
-
twapAddress: string;
|
|
6
|
-
lensAddress: string;
|
|
7
|
-
bidDelaySeconds: number;
|
|
8
|
-
minChunkSizeUsd: number;
|
|
9
|
-
name: string;
|
|
10
|
-
partner: string;
|
|
11
|
-
exchangeAddress: string;
|
|
12
|
-
exchangeType: string;
|
|
13
|
-
pathfinderKey?: string;
|
|
14
|
-
};
|
|
15
|
-
export declare enum Module {
|
|
16
|
-
TWAP = "TWAP",
|
|
17
|
-
LIMIT = "LIMIT",
|
|
18
|
-
STOP_LOSS = "STOP_LOSS",
|
|
19
|
-
TAKE_PROFIT = "TAKE_PROFIT"
|
|
20
|
-
}
|
|
21
|
-
export declare enum OrderStatus {
|
|
22
|
-
Open = "OPEN",
|
|
23
|
-
Cancelled = "CANCELLED",
|
|
24
|
-
Completed = "COMPLETED",
|
|
25
|
-
Expired = "EXPIRED"
|
|
26
|
-
}
|
|
27
|
-
export declare enum OrderFilter {
|
|
28
|
-
All = "ALL",
|
|
29
|
-
Open = "OPEN",
|
|
30
|
-
Cancelled = "CANCELLED",
|
|
31
|
-
Completed = "COMPLETED",
|
|
32
|
-
Expired = "EXPIRED"
|
|
33
|
-
}
|
|
34
|
-
export declare enum TimeUnit {
|
|
35
|
-
Minutes = 60000,
|
|
36
|
-
Hours = 3600000,
|
|
37
|
-
Weeks = 604800000,
|
|
38
|
-
Days = 86400000,
|
|
39
|
-
Months = 2592000000,
|
|
40
|
-
Years = 31536000000
|
|
41
|
-
}
|
|
42
|
-
export type TimeDuration = {
|
|
43
|
-
unit: TimeUnit;
|
|
44
|
-
value: number;
|
|
45
|
-
};
|
|
46
|
-
export declare enum OrderType {
|
|
47
|
-
LIMIT = "limit",
|
|
48
|
-
TWAP_LIMIT = "twap-limit",
|
|
49
|
-
TWAP_MARKET = "twap-market",
|
|
50
|
-
TAKE_PROFIT_MARKET = "take-profit-market",
|
|
51
|
-
TAKE_PROFIT_LIMIT = "take-profit-limit",
|
|
52
|
-
STOP_LOSS_LIMIT = "stop-loss-limit",
|
|
53
|
-
STOP_LOSS_MARKET = "stop-loss-market"
|
|
54
|
-
}
|
|
55
|
-
export type FillV1 = {
|
|
56
|
-
TWAP_id: number;
|
|
57
|
-
dollarValueIn: string;
|
|
58
|
-
dollarValueOut: string;
|
|
59
|
-
dstAmountOut: string;
|
|
60
|
-
dstFee: string;
|
|
61
|
-
id: string;
|
|
62
|
-
srcAmountIn: string;
|
|
63
|
-
srcFilledAmount: string;
|
|
64
|
-
timestamp: number;
|
|
65
|
-
twapAddress: string;
|
|
66
|
-
exchange: string;
|
|
67
|
-
transactionHash: string;
|
|
68
|
-
};
|
|
69
|
-
export type OrderFill = {
|
|
70
|
-
inAmount: string;
|
|
71
|
-
outAmount: string;
|
|
72
|
-
timestamp: number;
|
|
73
|
-
txHash: string;
|
|
74
|
-
};
|
|
75
|
-
export type Order = {
|
|
76
|
-
repermitDigest: string;
|
|
77
|
-
version: number;
|
|
78
|
-
id: string;
|
|
79
|
-
hash: string;
|
|
80
|
-
type: OrderType;
|
|
81
|
-
exchangeAddress?: string;
|
|
82
|
-
twapAddress?: string;
|
|
83
|
-
maker: string;
|
|
84
|
-
progress: number;
|
|
85
|
-
srcAmountFilled: string;
|
|
86
|
-
dstAmountFilled: string;
|
|
87
|
-
fills: OrderFill[];
|
|
88
|
-
srcTokenAddress: string;
|
|
89
|
-
dstTokenAddress: string;
|
|
90
|
-
orderDollarValueIn: string;
|
|
91
|
-
fillDelay: number;
|
|
92
|
-
deadline: number;
|
|
93
|
-
createdAt: number;
|
|
94
|
-
srcAmount: string;
|
|
95
|
-
dstMinAmountPerTrade: string;
|
|
96
|
-
triggerPricePerTrade: string;
|
|
97
|
-
dstMinAmountTotal: string;
|
|
98
|
-
srcAmountPerTrade: string;
|
|
99
|
-
txHash?: string;
|
|
100
|
-
totalTradesAmount: number;
|
|
101
|
-
isMarketPrice: boolean;
|
|
102
|
-
chainId: number;
|
|
103
|
-
filledOrderTimestamp: number;
|
|
104
|
-
status: OrderStatus;
|
|
105
|
-
rawOrder: OrderV2 | OrderV1;
|
|
106
|
-
isTriggerPrice: boolean;
|
|
107
|
-
};
|
|
108
|
-
export type Address = `0x${string}`;
|
|
109
|
-
export type Hex = `0x${string}`;
|
|
110
|
-
export interface RePermitOrder {
|
|
111
|
-
permitted: {
|
|
112
|
-
token: Address;
|
|
113
|
-
amount: string;
|
|
114
|
-
};
|
|
115
|
-
spender: Address;
|
|
116
|
-
nonce: string;
|
|
117
|
-
deadline: string;
|
|
118
|
-
witness: {
|
|
119
|
-
reactor: Address;
|
|
120
|
-
executor: Address;
|
|
121
|
-
exchange: {
|
|
122
|
-
adapter: Address;
|
|
123
|
-
ref: Address;
|
|
124
|
-
share: number;
|
|
125
|
-
data: Hex;
|
|
126
|
-
};
|
|
127
|
-
swapper: Address;
|
|
128
|
-
nonce: string;
|
|
129
|
-
deadline: string;
|
|
130
|
-
chainid: number;
|
|
131
|
-
start?: string;
|
|
132
|
-
exclusivity: number;
|
|
133
|
-
epoch: number;
|
|
134
|
-
slippage: number;
|
|
135
|
-
freshness: number;
|
|
136
|
-
input: {
|
|
137
|
-
token: Address;
|
|
138
|
-
amount: string;
|
|
139
|
-
maxAmount: string;
|
|
140
|
-
};
|
|
141
|
-
output: {
|
|
142
|
-
token: Address;
|
|
143
|
-
limit: string;
|
|
144
|
-
stop?: string;
|
|
145
|
-
triggerLower?: string;
|
|
146
|
-
triggerUpper?: string;
|
|
147
|
-
recipient: Address;
|
|
148
|
-
};
|
|
149
|
-
};
|
|
150
|
-
}
|
|
151
|
-
export type RePermitData = {
|
|
152
|
-
domain: {
|
|
153
|
-
name: string;
|
|
154
|
-
version: string;
|
|
155
|
-
chainId: number;
|
|
156
|
-
verifyingContract: Address;
|
|
157
|
-
};
|
|
158
|
-
order: RePermitOrder;
|
|
159
|
-
partner?: string;
|
|
160
|
-
primaryType: string;
|
|
161
|
-
types: Record<string, {
|
|
162
|
-
name: string;
|
|
163
|
-
type: string;
|
|
164
|
-
}[]>;
|
|
165
|
-
};
|
|
166
|
-
export type Signature = {
|
|
167
|
-
v: `0x${string}`;
|
|
168
|
-
r: `0x${string}`;
|
|
169
|
-
s: `0x${string}`;
|
|
170
|
-
};
|
|
171
|
-
export type OrderV1 = {
|
|
172
|
-
Contract_id: string | number;
|
|
173
|
-
srcTokenSymbol: string;
|
|
174
|
-
dollarValueIn: string;
|
|
175
|
-
blockNumber: number;
|
|
176
|
-
maker: string;
|
|
177
|
-
dstTokenSymbol: string;
|
|
178
|
-
ask_fillDelay: number;
|
|
179
|
-
exchange: string;
|
|
180
|
-
twapAddress: string;
|
|
181
|
-
dex: string;
|
|
182
|
-
ask_deadline: number;
|
|
183
|
-
timestamp: string;
|
|
184
|
-
ask_srcAmount: string;
|
|
185
|
-
ask_dstMinAmount: string;
|
|
186
|
-
ask_srcBidAmount: string;
|
|
187
|
-
transactionHash: string;
|
|
188
|
-
ask_srcToken: string;
|
|
189
|
-
ask_dstToken: string;
|
|
190
|
-
};
|
|
191
|
-
type OrderV2Chunk = {
|
|
192
|
-
blockId: number;
|
|
193
|
-
description: string;
|
|
194
|
-
epoch: string;
|
|
195
|
-
exchange: string;
|
|
196
|
-
executor: string;
|
|
197
|
-
inAmount: string;
|
|
198
|
-
inToken: string;
|
|
199
|
-
index: number;
|
|
200
|
-
minOut: string;
|
|
201
|
-
oraclePricingData: {
|
|
202
|
-
message: {
|
|
203
|
-
chainid: number;
|
|
204
|
-
cosigner: string;
|
|
205
|
-
input: {
|
|
206
|
-
decimals: string;
|
|
207
|
-
token: string;
|
|
208
|
-
value: "1000000000000000000";
|
|
209
|
-
};
|
|
210
|
-
output: {
|
|
211
|
-
decimals: string;
|
|
212
|
-
token: string;
|
|
213
|
-
value: string;
|
|
214
|
-
};
|
|
215
|
-
reactor: string;
|
|
216
|
-
timestamp: number;
|
|
217
|
-
};
|
|
218
|
-
oracle: string;
|
|
219
|
-
signature: Signature;
|
|
220
|
-
timestamp: string;
|
|
221
|
-
};
|
|
222
|
-
outAmount: string;
|
|
223
|
-
outToken: string;
|
|
224
|
-
settled: boolean;
|
|
225
|
-
status: string;
|
|
226
|
-
swapper: string;
|
|
227
|
-
timestamp: string;
|
|
228
|
-
txHash: string;
|
|
229
|
-
};
|
|
230
|
-
export type GetV1OrdersFilters = {
|
|
231
|
-
transactionHashes?: string[];
|
|
232
|
-
orderIds?: number[];
|
|
233
|
-
accounts?: string[];
|
|
234
|
-
configs?: Config[];
|
|
235
|
-
inTokenSymbols?: string[];
|
|
236
|
-
outTokenSymbols?: string[];
|
|
237
|
-
inTokenAddresses?: string[];
|
|
238
|
-
outTokenAddresses?: string[];
|
|
239
|
-
minDollarValueIn?: number;
|
|
240
|
-
startDate?: number;
|
|
241
|
-
endDate?: number;
|
|
242
|
-
orderType?: "limit" | "market";
|
|
243
|
-
};
|
|
244
|
-
export type OrderV2 = {
|
|
245
|
-
hash: string;
|
|
246
|
-
metadata: {
|
|
247
|
-
chunks?: OrderV2Chunk[];
|
|
248
|
-
expectedChunks: number;
|
|
249
|
-
lastPriceCheck: string;
|
|
250
|
-
nextEligibleTime: string;
|
|
251
|
-
status: string;
|
|
252
|
-
description: string;
|
|
253
|
-
displayOnlyInputTokenPriceUSD: string;
|
|
254
|
-
repermitDigest: string;
|
|
255
|
-
};
|
|
256
|
-
order: RePermitOrder;
|
|
257
|
-
signature: string;
|
|
258
|
-
timestamp: string;
|
|
259
|
-
};
|
|
260
|
-
export declare enum Partners {
|
|
261
|
-
Arbidex = "arbidex",
|
|
262
|
-
Blackhole = "blackhole",
|
|
263
|
-
Chronos = "chronos",
|
|
264
|
-
Dragon = "dragon",
|
|
265
|
-
Kodiak = "kodiak",
|
|
266
|
-
Lynex = "lynex",
|
|
267
|
-
Nami = "nami",
|
|
268
|
-
Newera = "newera",
|
|
269
|
-
Omni = "omni",
|
|
270
|
-
Pancake = "pancake",
|
|
271
|
-
Quick = "quick",
|
|
272
|
-
Ramses = "ramses",
|
|
273
|
-
Shadow = "shadow",
|
|
274
|
-
Spark = "spark",
|
|
275
|
-
Spooky = "spooky",
|
|
276
|
-
Swapx = "swapx",
|
|
277
|
-
Teafi = "teafi",
|
|
278
|
-
Thena = "thena",
|
|
279
|
-
Yowie = "yowie",
|
|
280
|
-
Pangolin = "pangolin",
|
|
281
|
-
Sushiswap = "sushiswap",
|
|
282
|
-
Agent = "agent",
|
|
283
|
-
Utila = "utila",
|
|
284
|
-
Ring = "ring",
|
|
285
|
-
EfficientFrontier = "ef",
|
|
286
|
-
HtDigital = "ht",
|
|
287
|
-
Ginco = "ginco",
|
|
288
|
-
Katana = "katana"
|
|
289
|
-
}
|
|
290
|
-
export declare enum InputErrors {
|
|
291
|
-
EMPTY_LIMIT_PRICE = "emptyLimitPrice",
|
|
292
|
-
MAX_CHUNKS = "maxChunksError",
|
|
293
|
-
MIN_CHUNKS = "minChunksError",
|
|
294
|
-
MIN_TRADE_SIZE = "minTradeSizeError",
|
|
295
|
-
MAX_FILL_DELAY = "maxFillDelayError",
|
|
296
|
-
MIN_FILL_DELAY = "minFillDelayError",
|
|
297
|
-
MAX_ORDER_DURATION = "maxDurationError",
|
|
298
|
-
MIN_ORDER_DURATION = "minDurationError",
|
|
299
|
-
MISSING_LIMIT_PRICE = "missingLimitPrice",
|
|
300
|
-
STOP_LOSS_TRIGGER_PRICE_GREATER_THAN_MARKET_PRICE = "StopLossTriggerPriceError",
|
|
301
|
-
TRIGGER_LIMIT_PRICE_GREATER_THAN_TRIGGER_PRICE = "triggerLimitPriceError",
|
|
302
|
-
TAKE_PROFIT_TRIGGER_PRICE_LESS_THAN_MARKET_PRICE = "TakeProfitTriggerPriceError",
|
|
303
|
-
EMPTY_TRIGGER_PRICE = "emptyTriggerPrice",
|
|
304
|
-
INSUFFICIENT_BALANCE = "insufficientFunds",
|
|
305
|
-
MAX_ORDER_SIZE = "maxOrderSize",
|
|
306
|
-
MIN_TRADE_SIZE_ERROR = "minTradeSizeError"
|
|
307
|
-
}
|
|
308
|
-
export type PartnerPayloadItem = {
|
|
309
|
-
chainId: number;
|
|
310
|
-
name: string;
|
|
311
|
-
};
|
|
312
|
-
export type InputError = {
|
|
313
|
-
type: InputErrors;
|
|
314
|
-
value: string | number;
|
|
315
|
-
args?: Record<string, string>;
|
|
316
|
-
};
|
|
317
|
-
export {};
|
|
318
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../spot-ui/src/lib/types.ts"],"names":[],"mappings":"AAAA,MAAM,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