@orbs-network/spot-react 0.0.20 → 0.0.22

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-BsP3sOmP.js → ccip-N7r3mRnZ.js} +1 -1
  2. package/dist/{index-JG9komnp.js → index-BWbxJ-r-.js} +13759 -14286
  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 +1 -1
  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,14 @@
1
+ import { default as Configs } from '@orbs-network/twap/configs.json';
2
+ export * from './lib/abi';
3
+ export * from './lib/types';
4
+ export * from './lib/consts';
5
+ export * from './lib/lib';
6
+ export * from './lib/build-repermit-order-data';
7
+ export * from './lib/submit-order';
8
+ export { analytics, setUIVersion } from './lib/analytics';
9
+ export { isNativeAddress, getNetwork, amountBN, amountUi, eqIgnoreCase, getOrderFillDelayMillis, getQueryParam, getPartnerChains } from './lib/utils';
10
+ export { networks } from './lib/networks';
11
+ export { getAccountOrders } from './lib/orders';
12
+ export { type GetOrdersFilters } from './lib/orders/v1-orders';
13
+ export { Configs };
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../spot-ui/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,iCAAiC,CAAC;AAEtD,cAAc,WAAW,CAAC;AAE1B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,iCAAiC,CAAC;AAChD,cAAc,oBAAoB,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE1D,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,YAAY,EAAE,uBAAuB,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACtJ,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAEhD,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE/D,OAAO,EAAE,OAAO,EAAE,CAAC"}
@@ -0,0 +1,291 @@
1
+ declare const _default: [
2
+ {
3
+ "inputs": [
4
+ {
5
+ "internalType": "string",
6
+ "name": "name_",
7
+ "type": "string"
8
+ },
9
+ {
10
+ "internalType": "string",
11
+ "name": "symbol_",
12
+ "type": "string"
13
+ }
14
+ ],
15
+ "stateMutability": "nonpayable",
16
+ "type": "constructor"
17
+ },
18
+ {
19
+ "anonymous": false,
20
+ "inputs": [
21
+ {
22
+ "indexed": true,
23
+ "internalType": "address",
24
+ "name": "owner",
25
+ "type": "address"
26
+ },
27
+ {
28
+ "indexed": true,
29
+ "internalType": "address",
30
+ "name": "spender",
31
+ "type": "address"
32
+ },
33
+ {
34
+ "indexed": false,
35
+ "internalType": "uint256",
36
+ "name": "value",
37
+ "type": "uint256"
38
+ }
39
+ ],
40
+ "name": "Approval",
41
+ "type": "event"
42
+ },
43
+ {
44
+ "anonymous": false,
45
+ "inputs": [
46
+ {
47
+ "indexed": true,
48
+ "internalType": "address",
49
+ "name": "from",
50
+ "type": "address"
51
+ },
52
+ {
53
+ "indexed": true,
54
+ "internalType": "address",
55
+ "name": "to",
56
+ "type": "address"
57
+ },
58
+ {
59
+ "indexed": false,
60
+ "internalType": "uint256",
61
+ "name": "value",
62
+ "type": "uint256"
63
+ }
64
+ ],
65
+ "name": "Transfer",
66
+ "type": "event"
67
+ },
68
+ {
69
+ "inputs": [
70
+ {
71
+ "internalType": "address",
72
+ "name": "owner",
73
+ "type": "address"
74
+ },
75
+ {
76
+ "internalType": "address",
77
+ "name": "spender",
78
+ "type": "address"
79
+ }
80
+ ],
81
+ "name": "allowance",
82
+ "outputs": [
83
+ {
84
+ "internalType": "uint256",
85
+ "name": "",
86
+ "type": "uint256"
87
+ }
88
+ ],
89
+ "stateMutability": "view",
90
+ "type": "function"
91
+ },
92
+ {
93
+ "inputs": [
94
+ {
95
+ "internalType": "address",
96
+ "name": "spender",
97
+ "type": "address"
98
+ },
99
+ {
100
+ "internalType": "uint256",
101
+ "name": "amount",
102
+ "type": "uint256"
103
+ }
104
+ ],
105
+ "name": "approve",
106
+ "outputs": [
107
+ {
108
+ "internalType": "bool",
109
+ "name": "",
110
+ "type": "bool"
111
+ }
112
+ ],
113
+ "stateMutability": "nonpayable",
114
+ "type": "function"
115
+ },
116
+ {
117
+ "inputs": [
118
+ {
119
+ "internalType": "address",
120
+ "name": "account",
121
+ "type": "address"
122
+ }
123
+ ],
124
+ "name": "balanceOf",
125
+ "outputs": [
126
+ {
127
+ "internalType": "uint256",
128
+ "name": "",
129
+ "type": "uint256"
130
+ }
131
+ ],
132
+ "stateMutability": "view",
133
+ "type": "function"
134
+ },
135
+ {
136
+ "inputs": [],
137
+ "name": "decimals",
138
+ "outputs": [
139
+ {
140
+ "internalType": "uint8",
141
+ "name": "",
142
+ "type": "uint8"
143
+ }
144
+ ],
145
+ "stateMutability": "view",
146
+ "type": "function"
147
+ },
148
+ {
149
+ "inputs": [
150
+ {
151
+ "internalType": "address",
152
+ "name": "spender",
153
+ "type": "address"
154
+ },
155
+ {
156
+ "internalType": "uint256",
157
+ "name": "subtractedValue",
158
+ "type": "uint256"
159
+ }
160
+ ],
161
+ "name": "decreaseAllowance",
162
+ "outputs": [
163
+ {
164
+ "internalType": "bool",
165
+ "name": "",
166
+ "type": "bool"
167
+ }
168
+ ],
169
+ "stateMutability": "nonpayable",
170
+ "type": "function"
171
+ },
172
+ {
173
+ "inputs": [
174
+ {
175
+ "internalType": "address",
176
+ "name": "spender",
177
+ "type": "address"
178
+ },
179
+ {
180
+ "internalType": "uint256",
181
+ "name": "addedValue",
182
+ "type": "uint256"
183
+ }
184
+ ],
185
+ "name": "increaseAllowance",
186
+ "outputs": [
187
+ {
188
+ "internalType": "bool",
189
+ "name": "",
190
+ "type": "bool"
191
+ }
192
+ ],
193
+ "stateMutability": "nonpayable",
194
+ "type": "function"
195
+ },
196
+ {
197
+ "inputs": [],
198
+ "name": "name",
199
+ "outputs": [
200
+ {
201
+ "internalType": "string",
202
+ "name": "",
203
+ "type": "string"
204
+ }
205
+ ],
206
+ "stateMutability": "view",
207
+ "type": "function"
208
+ },
209
+ {
210
+ "inputs": [],
211
+ "name": "symbol",
212
+ "outputs": [
213
+ {
214
+ "internalType": "string",
215
+ "name": "",
216
+ "type": "string"
217
+ }
218
+ ],
219
+ "stateMutability": "view",
220
+ "type": "function"
221
+ },
222
+ {
223
+ "inputs": [],
224
+ "name": "totalSupply",
225
+ "outputs": [
226
+ {
227
+ "internalType": "uint256",
228
+ "name": "",
229
+ "type": "uint256"
230
+ }
231
+ ],
232
+ "stateMutability": "view",
233
+ "type": "function"
234
+ },
235
+ {
236
+ "inputs": [
237
+ {
238
+ "internalType": "address",
239
+ "name": "recipient",
240
+ "type": "address"
241
+ },
242
+ {
243
+ "internalType": "uint256",
244
+ "name": "amount",
245
+ "type": "uint256"
246
+ }
247
+ ],
248
+ "name": "transfer",
249
+ "outputs": [
250
+ {
251
+ "internalType": "bool",
252
+ "name": "",
253
+ "type": "bool"
254
+ }
255
+ ],
256
+ "stateMutability": "nonpayable",
257
+ "type": "function"
258
+ },
259
+ {
260
+ "inputs": [
261
+ {
262
+ "internalType": "address",
263
+ "name": "sender",
264
+ "type": "address"
265
+ },
266
+ {
267
+ "internalType": "address",
268
+ "name": "recipient",
269
+ "type": "address"
270
+ },
271
+ {
272
+ "internalType": "uint256",
273
+ "name": "amount",
274
+ "type": "uint256"
275
+ }
276
+ ],
277
+ "name": "transferFrom",
278
+ "outputs": [
279
+ {
280
+ "internalType": "bool",
281
+ "name": "",
282
+ "type": "bool"
283
+ }
284
+ ],
285
+ "stateMutability": "nonpayable",
286
+ "type": "function"
287
+ }
288
+ ]
289
+ ;
290
+
291
+ export default _default;