@orbs-network/spot-react 0.0.21 → 0.0.23

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 (163) hide show
  1. package/dist/{ccip-DCn7SCg6.js → ccip-BGEM0Bfc.js} +1 -1
  2. package/dist/{index-CTa7tQT1.js → index-CzHrQQ9W.js} +13682 -14297
  3. package/dist/index.d.ts +1 -1
  4. package/dist/{package.json.d.ts → spot-react/package.json.d.ts} +1 -1
  5. package/dist/spot-react/src/components/TokenLogo.d.ts.map +1 -0
  6. package/dist/spot-react/src/components/order-details.d.ts.map +1 -0
  7. package/dist/spot-react/src/components/orders/order-preview.d.ts.map +1 -0
  8. package/dist/spot-react/src/components/orders/orders-list.d.ts.map +1 -0
  9. package/dist/spot-react/src/components/orders/orders.d.ts.map +1 -0
  10. package/dist/spot-react/src/components/submit-order-panel.d.ts.map +1 -0
  11. package/dist/{src → spot-react/src}/consts.d.ts +1 -2
  12. package/dist/spot-react/src/consts.d.ts.map +1 -0
  13. package/dist/spot-react/src/hooks/helper-hooks.d.ts.map +1 -0
  14. package/dist/{src → spot-react/src}/hooks/order-hooks.d.ts +1 -1
  15. package/dist/spot-react/src/hooks/order-hooks.d.ts.map +1 -0
  16. package/dist/spot-react/src/hooks/use-amounts-usd.d.ts.map +1 -0
  17. package/dist/spot-react/src/hooks/use-base-order.d.ts.map +1 -0
  18. package/dist/{src → spot-react/src}/hooks/use-build-repermit-order-data-callback.d.ts +1 -1
  19. package/dist/spot-react/src/hooks/use-build-repermit-order-data-callback.d.ts.map +1 -0
  20. package/dist/{src → spot-react/src}/hooks/use-cancel-order.d.ts +1 -1
  21. package/dist/spot-react/src/hooks/use-cancel-order.d.ts.map +1 -0
  22. package/dist/spot-react/src/hooks/use-current-order.d.ts.map +1 -0
  23. package/dist/spot-react/src/hooks/use-deadline.d.ts.map +1 -0
  24. package/dist/spot-react/src/hooks/use-default-values.d.ts.map +1 -0
  25. package/dist/spot-react/src/hooks/use-disclaimer-panel.d.ts.map +1 -0
  26. package/dist/spot-react/src/hooks/use-dst-amount.d.ts.map +1 -0
  27. package/dist/{src → spot-react/src}/hooks/use-duration.d.ts +1 -1
  28. package/dist/spot-react/src/hooks/use-duration.d.ts.map +1 -0
  29. package/dist/{src → spot-react/src}/hooks/use-fill-delay.d.ts +1 -1
  30. package/dist/spot-react/src/hooks/use-fill-delay.d.ts.map +1 -0
  31. package/dist/spot-react/src/hooks/use-get-transaction-receipt.d.ts.map +1 -0
  32. package/dist/{src → spot-react/src}/hooks/use-history-order.d.ts +1 -1
  33. package/dist/spot-react/src/hooks/use-history-order.d.ts.map +1 -0
  34. package/dist/spot-react/src/hooks/use-input-errors.d.ts.map +1 -0
  35. package/dist/spot-react/src/hooks/use-input-with-percentage.d.ts.map +1 -0
  36. package/dist/spot-react/src/hooks/use-invert-trade-panel.d.ts.map +1 -0
  37. package/dist/spot-react/src/hooks/use-limit-price.d.ts.map +1 -0
  38. package/dist/spot-react/src/hooks/use-market-price.d.ts.map +1 -0
  39. package/dist/spot-react/src/hooks/use-src-amount.d.ts.map +1 -0
  40. package/dist/spot-react/src/hooks/use-submit-order.d.ts +2 -0
  41. package/dist/spot-react/src/hooks/use-submit-order.d.ts.map +1 -0
  42. package/dist/{src → spot-react/src}/hooks/use-submit-swap-panel.d.ts +1 -1
  43. package/dist/spot-react/src/hooks/use-submit-swap-panel.d.ts.map +1 -0
  44. package/dist/spot-react/src/hooks/use-toggle-price.d.ts.map +1 -0
  45. package/dist/spot-react/src/hooks/use-token-panel.d.ts.map +1 -0
  46. package/dist/spot-react/src/hooks/use-trade-price.d.ts.map +1 -0
  47. package/dist/spot-react/src/hooks/use-trades.d.ts.map +1 -0
  48. package/dist/spot-react/src/hooks/use-translations.d.ts.map +1 -0
  49. package/dist/spot-react/src/hooks/use-trigger-price.d.ts.map +1 -0
  50. package/dist/{src → spot-react/src}/i18n/en.json.d.ts +3 -8
  51. package/dist/{src → spot-react/src}/index.d.ts +4 -4
  52. package/dist/spot-react/src/index.d.ts.map +1 -0
  53. package/dist/spot-react/src/spot-context.d.ts.map +1 -0
  54. package/dist/spot-react/src/store.d.ts.map +1 -0
  55. package/dist/{src → spot-react/src}/types.d.ts +6 -11
  56. package/dist/spot-react/src/types.d.ts.map +1 -0
  57. package/dist/{src → spot-react/src}/utils.d.ts +7 -2
  58. package/dist/spot-react/src/utils.d.ts.map +1 -0
  59. package/dist/spot-react.js +109 -108
  60. package/dist/spot-react.umd.cjs +62 -62
  61. package/dist/spot-ui/src/index.d.ts +14 -0
  62. package/dist/spot-ui/src/index.d.ts.map +1 -0
  63. package/dist/spot-ui/src/lib/abi/erc20.json.d.ts +291 -0
  64. package/dist/spot-ui/src/lib/abi/executor.json.d.ts +757 -0
  65. package/dist/spot-ui/src/lib/abi/index.d.ts +501 -0
  66. package/dist/spot-ui/src/lib/abi/index.d.ts.map +1 -0
  67. package/dist/spot-ui/src/lib/abi/iweth.json.d.ts +41 -0
  68. package/dist/spot-ui/src/lib/abi/reactor.json.d.ts +647 -0
  69. package/dist/spot-ui/src/lib/abi/repermit.json.d.ts +316 -0
  70. package/dist/spot-ui/src/lib/analytics.d.ts +107 -0
  71. package/dist/spot-ui/src/lib/analytics.d.ts.map +1 -0
  72. package/dist/spot-ui/src/lib/build-repermit-order-data.d.ts +51 -0
  73. package/dist/spot-ui/src/lib/build-repermit-order-data.d.ts.map +1 -0
  74. package/dist/spot-ui/src/lib/consts.d.ts +90 -0
  75. package/dist/spot-ui/src/lib/consts.d.ts.map +1 -0
  76. package/dist/spot-ui/src/lib/lib.d.ts +59 -0
  77. package/dist/spot-ui/src/lib/lib.d.ts.map +1 -0
  78. package/dist/spot-ui/src/lib/networks.d.ts +445 -0
  79. package/dist/spot-ui/src/lib/networks.d.ts.map +1 -0
  80. package/dist/spot-ui/src/lib/orders/index.d.ts +10 -0
  81. package/dist/spot-ui/src/lib/orders/index.d.ts.map +1 -0
  82. package/dist/spot-ui/src/lib/orders/v1-orders.d.ts +48 -0
  83. package/dist/spot-ui/src/lib/orders/v1-orders.d.ts.map +1 -0
  84. package/dist/spot-ui/src/lib/orders/v2-orders.d.ts +8 -0
  85. package/dist/spot-ui/src/lib/orders/v2-orders.d.ts.map +1 -0
  86. package/dist/spot-ui/src/lib/submit-order.d.ts +3 -0
  87. package/dist/spot-ui/src/lib/submit-order.d.ts.map +1 -0
  88. package/dist/spot-ui/src/lib/types.d.ts +267 -0
  89. package/dist/spot-ui/src/lib/types.d.ts.map +1 -0
  90. package/dist/spot-ui/src/lib/utils.d.ts +456 -0
  91. package/dist/spot-ui/src/lib/utils.d.ts.map +1 -0
  92. package/package.json +2 -2
  93. package/dist/src/components/TokenLogo.d.ts.map +0 -1
  94. package/dist/src/components/order-details.d.ts.map +0 -1
  95. package/dist/src/components/orders/order-preview.d.ts.map +0 -1
  96. package/dist/src/components/orders/orders-list.d.ts.map +0 -1
  97. package/dist/src/components/orders/orders.d.ts.map +0 -1
  98. package/dist/src/components/submit-order-panel.d.ts.map +0 -1
  99. package/dist/src/consts.d.ts.map +0 -1
  100. package/dist/src/hooks/helper-hooks.d.ts.map +0 -1
  101. package/dist/src/hooks/order-hooks.d.ts.map +0 -1
  102. package/dist/src/hooks/use-amounts-usd.d.ts.map +0 -1
  103. package/dist/src/hooks/use-base-order.d.ts.map +0 -1
  104. package/dist/src/hooks/use-build-repermit-order-data-callback.d.ts.map +0 -1
  105. package/dist/src/hooks/use-cancel-order.d.ts.map +0 -1
  106. package/dist/src/hooks/use-current-order.d.ts.map +0 -1
  107. package/dist/src/hooks/use-deadline.d.ts.map +0 -1
  108. package/dist/src/hooks/use-default-values.d.ts.map +0 -1
  109. package/dist/src/hooks/use-disclaimer-panel.d.ts.map +0 -1
  110. package/dist/src/hooks/use-dst-amount.d.ts.map +0 -1
  111. package/dist/src/hooks/use-duration.d.ts.map +0 -1
  112. package/dist/src/hooks/use-fill-delay.d.ts.map +0 -1
  113. package/dist/src/hooks/use-get-transaction-receipt.d.ts.map +0 -1
  114. package/dist/src/hooks/use-history-order.d.ts.map +0 -1
  115. package/dist/src/hooks/use-input-errors.d.ts.map +0 -1
  116. package/dist/src/hooks/use-input-with-percentage.d.ts.map +0 -1
  117. package/dist/src/hooks/use-invert-trade-panel.d.ts.map +0 -1
  118. package/dist/src/hooks/use-limit-price.d.ts.map +0 -1
  119. package/dist/src/hooks/use-market-price.d.ts.map +0 -1
  120. package/dist/src/hooks/use-src-amount.d.ts.map +0 -1
  121. package/dist/src/hooks/use-submit-order.d.ts +0 -2
  122. package/dist/src/hooks/use-submit-order.d.ts.map +0 -1
  123. package/dist/src/hooks/use-submit-swap-panel.d.ts.map +0 -1
  124. package/dist/src/hooks/use-toggle-price.d.ts.map +0 -1
  125. package/dist/src/hooks/use-token-panel.d.ts.map +0 -1
  126. package/dist/src/hooks/use-trade-price.d.ts.map +0 -1
  127. package/dist/src/hooks/use-trades.d.ts.map +0 -1
  128. package/dist/src/hooks/use-translations.d.ts.map +0 -1
  129. package/dist/src/hooks/use-trigger-price.d.ts.map +0 -1
  130. package/dist/src/index.d.ts.map +0 -1
  131. package/dist/src/spot-context.d.ts.map +0 -1
  132. package/dist/src/store.d.ts.map +0 -1
  133. package/dist/src/types.d.ts.map +0 -1
  134. package/dist/src/utils.d.ts.map +0 -1
  135. /package/dist/{src → spot-react/src}/components/TokenLogo.d.ts +0 -0
  136. /package/dist/{src → spot-react/src}/components/order-details.d.ts +0 -0
  137. /package/dist/{src → spot-react/src}/components/orders/order-preview.d.ts +0 -0
  138. /package/dist/{src → spot-react/src}/components/orders/orders-list.d.ts +0 -0
  139. /package/dist/{src → spot-react/src}/components/orders/orders.d.ts +0 -0
  140. /package/dist/{src → spot-react/src}/components/submit-order-panel.d.ts +0 -0
  141. /package/dist/{src → spot-react/src}/hooks/helper-hooks.d.ts +0 -0
  142. /package/dist/{src → spot-react/src}/hooks/use-amounts-usd.d.ts +0 -0
  143. /package/dist/{src → spot-react/src}/hooks/use-base-order.d.ts +0 -0
  144. /package/dist/{src → spot-react/src}/hooks/use-current-order.d.ts +0 -0
  145. /package/dist/{src → spot-react/src}/hooks/use-deadline.d.ts +0 -0
  146. /package/dist/{src → spot-react/src}/hooks/use-default-values.d.ts +0 -0
  147. /package/dist/{src → spot-react/src}/hooks/use-disclaimer-panel.d.ts +0 -0
  148. /package/dist/{src → spot-react/src}/hooks/use-dst-amount.d.ts +0 -0
  149. /package/dist/{src → spot-react/src}/hooks/use-get-transaction-receipt.d.ts +0 -0
  150. /package/dist/{src → spot-react/src}/hooks/use-input-errors.d.ts +0 -0
  151. /package/dist/{src → spot-react/src}/hooks/use-input-with-percentage.d.ts +0 -0
  152. /package/dist/{src → spot-react/src}/hooks/use-invert-trade-panel.d.ts +0 -0
  153. /package/dist/{src → spot-react/src}/hooks/use-limit-price.d.ts +0 -0
  154. /package/dist/{src → spot-react/src}/hooks/use-market-price.d.ts +0 -0
  155. /package/dist/{src → spot-react/src}/hooks/use-src-amount.d.ts +0 -0
  156. /package/dist/{src → spot-react/src}/hooks/use-toggle-price.d.ts +0 -0
  157. /package/dist/{src → spot-react/src}/hooks/use-token-panel.d.ts +0 -0
  158. /package/dist/{src → spot-react/src}/hooks/use-trade-price.d.ts +0 -0
  159. /package/dist/{src → spot-react/src}/hooks/use-trades.d.ts +0 -0
  160. /package/dist/{src → spot-react/src}/hooks/use-translations.d.ts +0 -0
  161. /package/dist/{src → spot-react/src}/hooks/use-trigger-price.d.ts +0 -0
  162. /package/dist/{src → spot-react/src}/spot-context.d.ts +0 -0
  163. /package/dist/{src → spot-react/src}/store.d.ts +0 -0
@@ -0,0 +1,316 @@
1
+ declare const _default: [
2
+ {
3
+ "type": "constructor",
4
+ "inputs": [],
5
+ "stateMutability": "nonpayable"
6
+ },
7
+ {
8
+ "type": "function",
9
+ "name": "DOMAIN_SEPARATOR",
10
+ "inputs": [],
11
+ "outputs": [
12
+ {
13
+ "name": "",
14
+ "type": "bytes32",
15
+ "internalType": "bytes32"
16
+ }
17
+ ],
18
+ "stateMutability": "view"
19
+ },
20
+ {
21
+ "type": "function",
22
+ "name": "cancel",
23
+ "inputs": [
24
+ {
25
+ "name": "digests",
26
+ "type": "bytes32[]",
27
+ "internalType": "bytes32[]"
28
+ }
29
+ ],
30
+ "outputs": [],
31
+ "stateMutability": "nonpayable"
32
+ },
33
+ {
34
+ "type": "function",
35
+ "name": "eip712Domain",
36
+ "inputs": [],
37
+ "outputs": [
38
+ {
39
+ "name": "fields",
40
+ "type": "bytes1",
41
+ "internalType": "bytes1"
42
+ },
43
+ {
44
+ "name": "name",
45
+ "type": "string",
46
+ "internalType": "string"
47
+ },
48
+ {
49
+ "name": "version",
50
+ "type": "string",
51
+ "internalType": "string"
52
+ },
53
+ {
54
+ "name": "chainId",
55
+ "type": "uint256",
56
+ "internalType": "uint256"
57
+ },
58
+ {
59
+ "name": "verifyingContract",
60
+ "type": "address",
61
+ "internalType": "address"
62
+ },
63
+ {
64
+ "name": "salt",
65
+ "type": "bytes32",
66
+ "internalType": "bytes32"
67
+ },
68
+ {
69
+ "name": "extensions",
70
+ "type": "uint256[]",
71
+ "internalType": "uint256[]"
72
+ }
73
+ ],
74
+ "stateMutability": "view"
75
+ },
76
+ {
77
+ "type": "function",
78
+ "name": "hashTypedData",
79
+ "inputs": [
80
+ {
81
+ "name": "structHash",
82
+ "type": "bytes32",
83
+ "internalType": "bytes32"
84
+ }
85
+ ],
86
+ "outputs": [
87
+ {
88
+ "name": "digest",
89
+ "type": "bytes32",
90
+ "internalType": "bytes32"
91
+ }
92
+ ],
93
+ "stateMutability": "view"
94
+ },
95
+ {
96
+ "type": "function",
97
+ "name": "repermitWitnessTransferFrom",
98
+ "inputs": [
99
+ {
100
+ "name": "permit",
101
+ "type": "tuple",
102
+ "internalType": "struct RePermitLib.RePermitTransferFrom",
103
+ "components": [
104
+ {
105
+ "name": "permitted",
106
+ "type": "tuple",
107
+ "internalType": "struct RePermitLib.TokenPermissions",
108
+ "components": [
109
+ {
110
+ "name": "token",
111
+ "type": "address",
112
+ "internalType": "address"
113
+ },
114
+ {
115
+ "name": "amount",
116
+ "type": "uint256",
117
+ "internalType": "uint256"
118
+ }
119
+ ]
120
+ },
121
+ {
122
+ "name": "nonce",
123
+ "type": "uint256",
124
+ "internalType": "uint256"
125
+ },
126
+ {
127
+ "name": "deadline",
128
+ "type": "uint256",
129
+ "internalType": "uint256"
130
+ }
131
+ ]
132
+ },
133
+ {
134
+ "name": "request",
135
+ "type": "tuple",
136
+ "internalType": "struct RePermitLib.TransferRequest",
137
+ "components": [
138
+ {
139
+ "name": "to",
140
+ "type": "address",
141
+ "internalType": "address"
142
+ },
143
+ {
144
+ "name": "amount",
145
+ "type": "uint256",
146
+ "internalType": "uint256"
147
+ }
148
+ ]
149
+ },
150
+ {
151
+ "name": "signer",
152
+ "type": "address",
153
+ "internalType": "address"
154
+ },
155
+ {
156
+ "name": "witness",
157
+ "type": "bytes32",
158
+ "internalType": "bytes32"
159
+ },
160
+ {
161
+ "name": "witnessTypeString",
162
+ "type": "string",
163
+ "internalType": "string"
164
+ },
165
+ {
166
+ "name": "signature",
167
+ "type": "bytes",
168
+ "internalType": "bytes"
169
+ }
170
+ ],
171
+ "outputs": [],
172
+ "stateMutability": "nonpayable"
173
+ },
174
+ {
175
+ "type": "function",
176
+ "name": "spent",
177
+ "inputs": [
178
+ {
179
+ "name": "",
180
+ "type": "address",
181
+ "internalType": "address"
182
+ },
183
+ {
184
+ "name": "",
185
+ "type": "bytes32",
186
+ "internalType": "bytes32"
187
+ }
188
+ ],
189
+ "outputs": [
190
+ {
191
+ "name": "",
192
+ "type": "uint256",
193
+ "internalType": "uint256"
194
+ }
195
+ ],
196
+ "stateMutability": "view"
197
+ },
198
+ {
199
+ "type": "event",
200
+ "name": "Cancel",
201
+ "inputs": [
202
+ {
203
+ "name": "signer",
204
+ "type": "address",
205
+ "indexed": true,
206
+ "internalType": "address"
207
+ },
208
+ {
209
+ "name": "digest",
210
+ "type": "bytes32",
211
+ "indexed": false,
212
+ "internalType": "bytes32"
213
+ }
214
+ ],
215
+ "anonymous": false
216
+ },
217
+ {
218
+ "type": "event",
219
+ "name": "EIP712DomainChanged",
220
+ "inputs": [],
221
+ "anonymous": false
222
+ },
223
+ {
224
+ "type": "event",
225
+ "name": "Spend",
226
+ "inputs": [
227
+ {
228
+ "name": "signer",
229
+ "type": "address",
230
+ "indexed": true,
231
+ "internalType": "address"
232
+ },
233
+ {
234
+ "name": "permitHash",
235
+ "type": "bytes32",
236
+ "indexed": true,
237
+ "internalType": "bytes32"
238
+ },
239
+ {
240
+ "name": "token",
241
+ "type": "address",
242
+ "indexed": true,
243
+ "internalType": "address"
244
+ },
245
+ {
246
+ "name": "to",
247
+ "type": "address",
248
+ "indexed": false,
249
+ "internalType": "address"
250
+ },
251
+ {
252
+ "name": "amount",
253
+ "type": "uint256",
254
+ "indexed": false,
255
+ "internalType": "uint256"
256
+ },
257
+ {
258
+ "name": "totalSpent",
259
+ "type": "uint256",
260
+ "indexed": false,
261
+ "internalType": "uint256"
262
+ }
263
+ ],
264
+ "anonymous": false
265
+ },
266
+ {
267
+ "type": "error",
268
+ "name": "Canceled",
269
+ "inputs": []
270
+ },
271
+ {
272
+ "type": "error",
273
+ "name": "Expired",
274
+ "inputs": []
275
+ },
276
+ {
277
+ "type": "error",
278
+ "name": "InsufficientAllowance",
279
+ "inputs": []
280
+ },
281
+ {
282
+ "type": "error",
283
+ "name": "InvalidShortString",
284
+ "inputs": []
285
+ },
286
+ {
287
+ "type": "error",
288
+ "name": "InvalidSignature",
289
+ "inputs": []
290
+ },
291
+ {
292
+ "type": "error",
293
+ "name": "SafeERC20FailedOperation",
294
+ "inputs": [
295
+ {
296
+ "name": "token",
297
+ "type": "address",
298
+ "internalType": "address"
299
+ }
300
+ ]
301
+ },
302
+ {
303
+ "type": "error",
304
+ "name": "StringTooLong",
305
+ "inputs": [
306
+ {
307
+ "name": "str",
308
+ "type": "string",
309
+ "internalType": "string"
310
+ }
311
+ ]
312
+ }
313
+ ]
314
+ ;
315
+
316
+ export default _default;
@@ -0,0 +1,107 @@
1
+ import { Address, Module, Partners, RePermitOrder, SpotConfig } from './types';
2
+ export declare function setUIVersion(version: string): void;
3
+ interface Token {
4
+ address: string;
5
+ symbol: string;
6
+ decimals: number;
7
+ }
8
+ type Action = "cancel order" | "wrap" | "approve" | "sign order" | "create order" | "module-import" | "reset" | "crash";
9
+ interface Data {
10
+ _id: string;
11
+ spotVersion?: string;
12
+ uiVersion?: string;
13
+ origin?: string;
14
+ actionError?: string;
15
+ cancelOrderSuccess?: boolean;
16
+ orderSubmitted?: boolean;
17
+ orderHash?: string;
18
+ orderSuccess?: boolean;
19
+ action?: Action;
20
+ wrapTxHash?: string;
21
+ cancelOrderTxHash?: string;
22
+ cancelOrderIdsV1?: string[];
23
+ cancelOrderIdsV2?: string[];
24
+ approvalTxHash?: string;
25
+ walletAddress?: string;
26
+ fromTokenAddress?: string;
27
+ fromTokenSymbol?: string;
28
+ toTokenAddress?: string;
29
+ order?: RePermitOrder;
30
+ signature?: string;
31
+ toTokenSymbol?: string;
32
+ fromTokenAmount?: string;
33
+ chunksAmount?: number;
34
+ minDstAmountOutPerTrade?: string;
35
+ triggerPricePerTrade?: string;
36
+ deadline?: number;
37
+ fillDelay?: number;
38
+ srcChunkAmount?: string;
39
+ module?: Module;
40
+ slippage?: number;
41
+ orderType?: "market" | "limit";
42
+ partner?: Partners;
43
+ adapter?: Address;
44
+ cosigner?: Address;
45
+ executor?: Address;
46
+ fee?: Address;
47
+ reactor?: Address;
48
+ refinery?: Address;
49
+ repermit?: Address;
50
+ router?: Address;
51
+ type?: string;
52
+ wm?: Address;
53
+ chainName?: string;
54
+ chainId?: number;
55
+ twapVersion?: number;
56
+ twapAddress?: string;
57
+ lensAddress?: string;
58
+ bidDelaySeconds?: number;
59
+ minChunkSizeUsd?: number;
60
+ name?: string;
61
+ exchangeAddress?: string;
62
+ exchangeType?: string;
63
+ pathfinderKey?: string;
64
+ }
65
+ declare class Analytics {
66
+ timeout: any;
67
+ config: SpotConfig | undefined;
68
+ data: Data;
69
+ updateAndSend(values?: Partial<Data>, noTimeout?: boolean, callback?: () => void): Promise<void>;
70
+ onCancelOrderRequest(cancelOrderIds: string[], version: 1 | 2): void;
71
+ onCancelOrderSuccess(hash?: string): void;
72
+ onCancelOrderError(error: any): void;
73
+ onWrapSuccess(wrapTxHash?: string): void;
74
+ onWrapRequest(): void;
75
+ onWrapError(error: any): void;
76
+ onApproveRequest(): void;
77
+ onApproveSuccess(approvalTxHash?: string): void;
78
+ onApproveError(error: any): void;
79
+ onCrash(error: any): void;
80
+ onTxError(error: any): void;
81
+ onRequestOrder({ account, chainId, module, srcToken, dstToken, fromTokenAmount, srcChunkAmount, minDstAmountOutPerTrade, triggerPricePerTrade, deadline, fillDelay, slippage, isMarketOrder, }: {
82
+ account: string;
83
+ chainId: number;
84
+ module: Module;
85
+ srcToken: Token;
86
+ dstToken: Token;
87
+ fromTokenAmount: string;
88
+ srcChunkAmount: string;
89
+ minDstAmountOutPerTrade: string;
90
+ triggerPricePerTrade: string;
91
+ deadline: number;
92
+ fillDelay: number;
93
+ slippage: number;
94
+ isMarketOrder: boolean;
95
+ }): void;
96
+ onSignOrderRequest(order: RePermitOrder): void;
97
+ onSignOrderError(error: any): void;
98
+ onSignOrderSuccess(signature: string): void;
99
+ init(config: SpotConfig, minChunkSizeUsd: number, chainId?: number): void;
100
+ onCreateOrderError(error: any): void;
101
+ onCreateOrderRequest(): void;
102
+ onCreateOrderSuccess(orderHash?: string): Promise<void>;
103
+ onLoad(): void;
104
+ }
105
+ export declare const analytics: Analytics;
106
+ export {};
107
+ //# sourceMappingURL=analytics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"analytics.d.ts","sourceRoot":"","sources":["../../../../../spot-ui/src/lib/analytics.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAW/E,wBAAgB,YA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AAU,EAAE,eAAe,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM;IAclE,kBAAkB,CAAC,KAAK,EAAE,GAAG;IAI7B,oBAAoB;IAMd,oBAAoB,CAAC,SAAS,CAAC,EAAE,MAAM;IAyC7C,MAAM;CAMP;AAED,eAAO,MAAM,SAAS,WAAkB,CAAC"}
@@ -0,0 +1,51 @@
1
+ import { RePermitOrder, SpotConfig } from './types';
2
+ export declare const buildRePermitOrderData: ({ chainId, srcToken, dstToken, srcAmount, deadlineMillis, fillDelayMillis, slippage, account, srcAmountPerTrade, dstMinAmountPerTrade, triggerAmountPerTrade, config, }: {
3
+ chainId: number;
4
+ srcToken: string;
5
+ dstToken: string;
6
+ srcAmount: string;
7
+ deadlineMillis: number;
8
+ fillDelayMillis: number;
9
+ slippage: number;
10
+ account: string;
11
+ srcAmountPerTrade: string;
12
+ dstMinAmountPerTrade?: string;
13
+ triggerAmountPerTrade?: string;
14
+ config: SpotConfig;
15
+ }) => {
16
+ domain: {
17
+ name: string;
18
+ version: string;
19
+ chainId: number;
20
+ verifyingContract: `0x${string}`;
21
+ };
22
+ order: RePermitOrder;
23
+ types: {
24
+ RePermitWitnessTransferFrom: {
25
+ name: string;
26
+ type: string;
27
+ }[];
28
+ Exchange: {
29
+ name: string;
30
+ type: string;
31
+ }[];
32
+ Input: {
33
+ name: string;
34
+ type: string;
35
+ }[];
36
+ Order: {
37
+ name: string;
38
+ type: string;
39
+ }[];
40
+ Output: {
41
+ name: string;
42
+ type: string;
43
+ }[];
44
+ TokenPermissions: {
45
+ name: string;
46
+ type: string;
47
+ }[];
48
+ };
49
+ primaryType: "RePermitWitnessTransferFrom";
50
+ };
51
+ //# sourceMappingURL=build-repermit-order-data.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"build-repermit-order-data.d.ts","sourceRoot":"","sources":["../../../../../spot-ui/src/lib/build-repermit-order-data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,aAAa,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAK7D,eAAO,MAAM,sBAAsB,GAAI,yKAapC;IACD,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,MAAM,EAAE,UAAU,CAAC;CACpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4DA,CAAC"}
@@ -0,0 +1,90 @@
1
+ import { networks } from './networks';
2
+ import { Config, TimeDuration } from './types';
3
+ export declare const setApiMode: (mode: "prod" | "dev") => void;
4
+ export declare const getApiEndpoint: () => "https://order-sink-dev.orbs.network" | "https://order-sink.orbs.network";
5
+ export declare const SUGGEST_CHUNK_VALUE = 100;
6
+ export declare const MIN_CHUNKS = 1;
7
+ export declare const MIN_FILL_DELAY_MILLIS: number;
8
+ export declare const MAX_ORDER_DURATION_MILLIS: number;
9
+ export declare const MIN_ORDER_DURATION_MILLIS: number;
10
+ export declare const MIN_FILL_DELAY_MINUTES: number;
11
+ export declare const THE_GRAPH_ORDERS_API: {
12
+ [networks.eth
13
+ .id]: string;
14
+ [networks.bsc
15
+ .id]: string;
16
+ [networks.poly
17
+ .id]: string;
18
+ [networks.arb
19
+ .id]: string;
20
+ [networks.base
21
+ .id]: string;
22
+ [networks.sei
23
+ .id]: string;
24
+ [networks.linea
25
+ .id]: string;
26
+ [networks.sonic
27
+ .id]: string;
28
+ [networks.ftm
29
+ .id]: string;
30
+ [networks.katana
31
+ .id]: string;
32
+ [networks.avax
33
+ .id]: string;
34
+ [networks.bera
35
+ .id]: string;
36
+ [networks.flare.id]: string;
37
+ [networks.cronosZkEvm.id]: string;
38
+ };
39
+ export declare const zeroAddress = "0x0000000000000000000000000000000000000000";
40
+ export declare const nativeTokenAddresses: string[];
41
+ export declare const maxUint256 = "115792089237316195423570985008687907853269984665640564039457584007913129639935";
42
+ export declare const getPartnerIdentifier: (config: Config) => string;
43
+ export declare const LEGACY_EXCHANGES_MAP: Record<string, string[]>;
44
+ export declare const DEFAULT_FILL_DELAY: TimeDuration;
45
+ export declare const FEES = 0.25;
46
+ export declare const EXCLUSIVITY_OVERRIDE_BPS = "100";
47
+ export declare const REPERMIT_PRIMARY_TYPE: "RePermitWitnessTransferFrom";
48
+ export declare const EIP712_TYPES: {
49
+ RePermitWitnessTransferFrom: {
50
+ name: string;
51
+ type: string;
52
+ }[];
53
+ Exchange: {
54
+ name: string;
55
+ type: string;
56
+ }[];
57
+ Input: {
58
+ name: string;
59
+ type: string;
60
+ }[];
61
+ Order: {
62
+ name: string;
63
+ type: string;
64
+ }[];
65
+ Output: {
66
+ name: string;
67
+ type: string;
68
+ }[];
69
+ TokenPermissions: {
70
+ name: string;
71
+ type: string;
72
+ }[];
73
+ };
74
+ export declare const ORBS_TWAP_FAQ_URL = "https://www.orbs.com/dtwap-and-dlimit-faq/";
75
+ export declare const ORBS_SLTP_FAQ_URL = "https://www.orbs.com/dtwap-and-dlimit-faq/#dSLTP";
76
+ export declare const ORBS_LOGO = "https://raw.githubusercontent.com/orbs-network/twap-ui/master/logo/orbslogo.svg";
77
+ export declare const ORBS_LOGO_FALLBACK = "https://www.orbs.com/assets/img/common/logo.svg";
78
+ export declare const ORBS_WEBSITE_URL = "https://www.orbs.com/";
79
+ export declare const DISCLAIMER_URL = "https://www.orbs.com/dtwap-dlimit-disclaimer";
80
+ export declare enum QUERY_PARAMS {
81
+ FRESHNESS = "freshness",
82
+ MIN_CHUNK_SIZE_USD = "minChunkSizeUsd",
83
+ ENV = "env"
84
+ }
85
+ export declare const DEFAULT_STOP_LOSS_PERCENTAGE = "-5";
86
+ export declare const DEFAULT_TAKE_PROFIT_PERCENTAGE = "10";
87
+ export declare const DEFAULT_STOP_LOSS_LIMIT_PERCENTAGE = "-10";
88
+ export declare const DEFAULT_TAKE_PROFIT_LIMIT_PERCENTAGE = "5";
89
+ export declare const CRASH_ERROR_MESSAGE = "Something went wrong";
90
+ //# sourceMappingURL=consts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../../../../../spot-ui/src/lib/consts.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,YAAY,EAAY,MAAM,SAAS,CAAC;AASzD,eAAO,MAAM,UAAU,GAAI,MAAM,MAAM,GAAG,KAAK,SAE9C,CAAC;AAEF,eAAO,MAAM,cAAc,iFAoB1B,CAAC;AACF,eAAO,MAAM,mBAAmB,MAAM,CAAC;AAEvC,eAAO,MAAM,UAAU,IAAI,CAAC;AAC5B,eAAO,MAAM,qBAAqB,QAAgB,CAAC;AAEnD,eAAO,MAAM,yBAAyB,QAA4B,CAAC;AAEnE,eAAO,MAAM,yBAAyB,QAAgB,CAAC;AAEvD,eAAO,MAAM,sBAAsB,QAErB,CAAC;AAOf,eAAO,MAAM,oBAAoB;IAC/B,CAAC,QAAQ,CAAC,GAAG;SACV,EAAE,CAAC,SAAgE;IACtE,CAAC,QAAQ,CAAC,GAAG;SACV,EAAE,CAAC,SAAiE;IACvE,CAAC,QAAQ,CAAC,IAAI;SACX,EAAE,CAAC,SAAiE;IACvE,CAAC,QAAQ,CAAC,GAAG;SACV,EAAE,CAAC,SAAiE;IACvE,CAAC,QAAQ,CAAC,IAAI;SACX,EAAE,CAAC,SAAiE;IACvE,CAAC,QAAQ,CAAC,GAAG;SACV,EAAE,CAAC,SAAiE;IACvE,CAAC,QAAQ,CAAC,KAAK;SACZ,EAAE,CAAC,SAAiE;IACvE,CAAC,QAAQ,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AAO,CAAC;AACjD,eAAO,MAAM,8BAA8B,OAAO,CAAC;AAEnD,eAAO,MAAM,kCAAkC,QAAQ,CAAC;AACxD,eAAO,MAAM,oCAAoC,MAAM,CAAC;AAIxD,eAAO,MAAM,mBAAmB,yBAAyB,CAAC"}
@@ -0,0 +1,59 @@
1
+ import { Config, Module, Partners, SpotConfig, TimeDuration } from './types';
2
+ export declare const getDestTokenAmount: (srcAmount?: string, limitPrice?: string, srcTokenDecimals?: number) => string | undefined;
3
+ export declare const getDestTokenMinAmountPerChunk: (srcChunkAmount?: string, limitPrice?: string, isMarketOrder?: boolean, srcTokenDecimals?: number) => string;
4
+ export declare const getTriggerPricePerChunk: (module: Module, srcChunkAmount?: string, triggerPrice?: string, srcTokenDecimals?: number) => string | undefined;
5
+ export declare const getDuration: (module: Module, chunks: number, fillDelay: TimeDuration, customDuration?: TimeDuration) => TimeDuration;
6
+ export declare const getChunks: (maxPossibleChunks: number, module: Module, typedChunks?: number) => number;
7
+ export declare const getMaxPossibleChunks: (fillDelay: TimeDuration, typedSrcAmount?: string, oneSrcTokenUsd?: string, minChunkSizeUsd?: number) => number;
8
+ export declare const getMinimumDelayMinutes: (config: Config) => number;
9
+ export declare const getDeadline: (currentTimeMillis: number, duration: TimeDuration) => number;
10
+ export declare const getEstimatedDelayBetweenChunksMillis: (config: Config) => number;
11
+ export declare const getSrcTokenChunkAmount: (srcAmount?: string, chunks?: number) => string;
12
+ export declare const getMaxFillDelayError: (fillDelay: TimeDuration, chunks: number) => {
13
+ isError: boolean;
14
+ value: number;
15
+ };
16
+ export declare const getStopLossPriceError: (marketPrice: string | undefined, triggerPrice: string | undefined, module: Module) => {
17
+ isError: boolean;
18
+ value: string;
19
+ } | undefined;
20
+ export declare const getTakeProfitPriceError: (marketPrice: string | undefined, triggerPrice: string | undefined, module: Module) => {
21
+ isError: boolean;
22
+ value: string;
23
+ } | undefined;
24
+ export declare const getStopLossLimitPriceError: (triggerPrice: string | undefined, limitPrice: string | undefined, isMarketOrder: boolean | undefined, module: Module) => {
25
+ isError: boolean;
26
+ value: string;
27
+ } | undefined;
28
+ export declare const getTakeProfitLimitPriceError: (triggerPrice: string | undefined, limitPrice: string | undefined, isMarketOrder: boolean | undefined, module: Module) => {
29
+ isError: boolean;
30
+ value: string;
31
+ } | undefined;
32
+ export declare const getMaxOrderDurationError: (module: Module, duration: TimeDuration) => {
33
+ isError: boolean;
34
+ value: number;
35
+ };
36
+ export declare const getMinOrderDurationError: (duration: TimeDuration) => {
37
+ isError: boolean;
38
+ value: number;
39
+ };
40
+ export declare const getMinFillDelayError: (fillDelay: TimeDuration) => {
41
+ isError: boolean;
42
+ value: number;
43
+ };
44
+ export declare const getMinTradeSizeError: (typedSrcAmount: string, oneSrcTokenUsd: string, minChunkSizeUsd: number) => {
45
+ isError: boolean;
46
+ value: number;
47
+ };
48
+ export declare const getMaxChunksError: (chunks: number, maxChunks: number, module: Module) => {
49
+ isError: boolean;
50
+ value: number;
51
+ };
52
+ export declare const getConfig: (chainId?: number, _dex?: Partners) => SpotConfig | undefined;
53
+ export type PartnerPayloadItem = {
54
+ chainId: number;
55
+ name: string;
56
+ config: SpotConfig | undefined;
57
+ };
58
+ export declare const getPartners: () => PartnerPayloadItem[];
59
+ //# sourceMappingURL=lib.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../../../../../spot-ui/src/lib/lib.ts"],"names":[],"mappings":"AAWA,OAAO,EACL,MAAM,EACN,MAAM,EACN,QAAQ,EACR,UAAU,EACV,YAAY,EAEb,MAAM,SAAS,CAAC;AAKjB,eAAO,MAAM,kBAAkB,GAC7B,YAAY,MAAM,EAClB,aAAa,MAAM,EACnB,mBAAmB,MAAM,uBAO1B,CAAC;AAEF,eAAO,MAAM,6BAA6B,GACxC,iBAAiB,MAAM,EACvB,aAAa,MAAM,EACnB,gBAAgB,OAAO,EACvB,mBAAmB,MAAM,WAQ1B,CAAC;AAEF,eAAO,MAAM,uBAAuB,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