@orbs-network/spot-react 0.1.0 → 1.0.0

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 (138) hide show
  1. package/dist/ccip-bPFWIGtu.js +149 -0
  2. package/dist/index-Jq763Rdi.js +45137 -0
  3. package/dist/index.d.ts +2 -2
  4. package/dist/spot-react/package.json.d.ts +63 -0
  5. package/dist/spot-react/src/components/TokenLogo.d.ts +9 -0
  6. package/dist/spot-react/src/components/TokenLogo.d.ts.map +1 -0
  7. package/dist/spot-react/src/components/format-number.d.ts +10 -0
  8. package/dist/spot-react/src/components/format-number.d.ts.map +1 -0
  9. package/dist/spot-react/src/components/order-details.d.ts +75 -0
  10. package/dist/spot-react/src/components/order-details.d.ts.map +1 -0
  11. package/dist/spot-react/src/components/orders/order-fills.d.ts +8 -0
  12. package/dist/spot-react/src/components/orders/order-fills.d.ts.map +1 -0
  13. package/dist/spot-react/src/components/orders/order-preview.d.ts +3 -0
  14. package/dist/spot-react/src/components/orders/order-preview.d.ts.map +1 -0
  15. package/dist/spot-react/src/components/orders/orders-list.d.ts +2 -0
  16. package/dist/spot-react/src/components/orders/orders-list.d.ts.map +1 -0
  17. package/dist/spot-react/src/components/orders/orders.d.ts +2 -0
  18. package/dist/spot-react/src/components/orders/orders.d.ts.map +1 -0
  19. package/dist/spot-react/src/components/portal.d.ts +6 -0
  20. package/dist/spot-react/src/components/portal.d.ts.map +1 -0
  21. package/dist/spot-react/src/components/submit-order-panel.d.ts +10 -0
  22. package/dist/spot-react/src/components/submit-order-panel.d.ts.map +1 -0
  23. package/dist/spot-react/src/consts.d.ts +8 -0
  24. package/dist/spot-react/src/consts.d.ts.map +1 -0
  25. package/dist/spot-react/src/hooks/helper-hooks.d.ts +438 -0
  26. package/dist/spot-react/src/hooks/helper-hooks.d.ts.map +1 -0
  27. package/dist/spot-react/src/hooks/order-hooks.d.ts +39 -0
  28. package/dist/spot-react/src/hooks/order-hooks.d.ts.map +1 -0
  29. package/dist/spot-react/src/hooks/use-addresses.d.ts +4 -0
  30. package/dist/spot-react/src/hooks/use-addresses.d.ts.map +1 -0
  31. package/dist/spot-react/src/hooks/use-amounts-usd.d.ts +5 -0
  32. package/dist/spot-react/src/hooks/use-amounts-usd.d.ts.map +1 -0
  33. package/dist/spot-react/src/hooks/use-build-order-info.d.ts +90 -0
  34. package/dist/spot-react/src/hooks/use-build-order-info.d.ts.map +1 -0
  35. package/dist/spot-react/src/hooks/use-cancel-order.d.ts +6 -0
  36. package/dist/spot-react/src/hooks/use-cancel-order.d.ts.map +1 -0
  37. package/dist/spot-react/src/hooks/use-deadline.d.ts +2 -0
  38. package/dist/spot-react/src/hooks/use-deadline.d.ts.map +1 -0
  39. package/dist/spot-react/src/hooks/use-default-values.d.ts +3 -0
  40. package/dist/spot-react/src/hooks/use-default-values.d.ts.map +1 -0
  41. package/dist/spot-react/src/hooks/use-disclaimer-panel.d.ts +5 -0
  42. package/dist/spot-react/src/hooks/use-disclaimer-panel.d.ts.map +1 -0
  43. package/dist/spot-react/src/hooks/use-dst-amount.d.ts +11 -0
  44. package/dist/spot-react/src/hooks/use-dst-amount.d.ts.map +1 -0
  45. package/dist/spot-react/src/hooks/use-dst-token-panel.d.ts +7 -0
  46. package/dist/spot-react/src/hooks/use-dst-token-panel.d.ts.map +1 -0
  47. package/dist/spot-react/src/hooks/use-duration.d.ts +25 -0
  48. package/dist/spot-react/src/hooks/use-duration.d.ts.map +1 -0
  49. package/dist/spot-react/src/hooks/use-fees.d.ts +6 -0
  50. package/dist/spot-react/src/hooks/use-fees.d.ts.map +1 -0
  51. package/dist/spot-react/src/hooks/use-fill-delay.d.ts +19 -0
  52. package/dist/spot-react/src/hooks/use-fill-delay.d.ts.map +1 -0
  53. package/dist/spot-react/src/hooks/use-get-transaction-receipt.d.ts +2 -0
  54. package/dist/spot-react/src/hooks/use-get-transaction-receipt.d.ts.map +1 -0
  55. package/dist/spot-react/src/hooks/use-history-order.d.ts +3 -0
  56. package/dist/spot-react/src/hooks/use-history-order.d.ts.map +1 -0
  57. package/dist/spot-react/src/hooks/use-input-errors.d.ts +2 -0
  58. package/dist/spot-react/src/hooks/use-input-errors.d.ts.map +1 -0
  59. package/dist/spot-react/src/hooks/use-input-with-percentage.d.ts +18 -0
  60. package/dist/spot-react/src/hooks/use-input-with-percentage.d.ts.map +1 -0
  61. package/dist/spot-react/src/hooks/use-invert-trade-panel.d.ts +8 -0
  62. package/dist/spot-react/src/hooks/use-invert-trade-panel.d.ts.map +1 -0
  63. package/dist/spot-react/src/hooks/use-limit-price-panel.d.ts +27 -0
  64. package/dist/spot-react/src/hooks/use-limit-price-panel.d.ts.map +1 -0
  65. package/dist/spot-react/src/hooks/use-limit-price.d.ts +27 -0
  66. package/dist/spot-react/src/hooks/use-limit-price.d.ts.map +1 -0
  67. package/dist/spot-react/src/hooks/use-order.d.ts +121 -0
  68. package/dist/spot-react/src/hooks/use-order.d.ts.map +1 -0
  69. package/dist/spot-react/src/hooks/use-partner-chains.d.ts +2 -0
  70. package/dist/spot-react/src/hooks/use-partner-chains.d.ts.map +1 -0
  71. package/dist/spot-react/src/hooks/use-repermit-order-data.d.ts +37 -0
  72. package/dist/spot-react/src/hooks/use-repermit-order-data.d.ts.map +1 -0
  73. package/dist/spot-react/src/hooks/use-src-amount.d.ts +6 -0
  74. package/dist/spot-react/src/hooks/use-src-amount.d.ts.map +1 -0
  75. package/dist/spot-react/src/hooks/use-submit-order-panel.d.ts +31 -0
  76. package/dist/spot-react/src/hooks/use-submit-order-panel.d.ts.map +1 -0
  77. package/dist/spot-react/src/hooks/use-submit-order.d.ts +3 -0
  78. package/dist/spot-react/src/hooks/use-submit-order.d.ts.map +1 -0
  79. package/dist/spot-react/src/hooks/use-toggle-price.d.ts +5 -0
  80. package/dist/spot-react/src/hooks/use-toggle-price.d.ts.map +1 -0
  81. package/dist/spot-react/src/hooks/use-trade-price.d.ts +2 -0
  82. package/dist/spot-react/src/hooks/use-trade-price.d.ts.map +1 -0
  83. package/dist/spot-react/src/hooks/use-trades.d.ts +32 -0
  84. package/dist/spot-react/src/hooks/use-trades.d.ts.map +1 -0
  85. package/dist/spot-react/src/hooks/use-translations.d.ts +3 -0
  86. package/dist/spot-react/src/hooks/use-translations.d.ts.map +1 -0
  87. package/dist/spot-react/src/hooks/use-trigger-price-panel.d.ts +28 -0
  88. package/dist/spot-react/src/hooks/use-trigger-price-panel.d.ts.map +1 -0
  89. package/dist/spot-react/src/hooks/use-trigger-price.d.ts +25 -0
  90. package/dist/spot-react/src/hooks/use-trigger-price.d.ts.map +1 -0
  91. package/dist/spot-react/src/i18n/en.json.d.ts +99 -0
  92. package/dist/spot-react/src/index.d.ts +38 -0
  93. package/dist/spot-react/src/index.d.ts.map +1 -0
  94. package/dist/spot-react/src/spot-context.d.ts +6 -0
  95. package/dist/spot-react/src/spot-context.d.ts.map +1 -0
  96. package/dist/spot-react/src/store.d.ts +11 -0
  97. package/dist/spot-react/src/store.d.ts.map +1 -0
  98. package/dist/spot-react/src/types.d.ts +487 -0
  99. package/dist/spot-react/src/types.d.ts.map +1 -0
  100. package/dist/spot-react/src/utils.d.ts +26 -0
  101. package/dist/spot-react/src/utils.d.ts.map +1 -0
  102. package/dist/spot-react.js +133 -0
  103. package/dist/spot-react.umd.cjs +126 -0
  104. package/dist/spot-ui/src/index.d.ts +14 -0
  105. package/dist/spot-ui/src/index.d.ts.map +1 -0
  106. package/dist/spot-ui/src/lib/abi/erc20.json.d.ts +291 -0
  107. package/dist/spot-ui/src/lib/abi/index.d.ts +260 -0
  108. package/dist/spot-ui/src/lib/abi/index.d.ts.map +1 -0
  109. package/dist/spot-ui/src/lib/abi/iweth.json.d.ts +41 -0
  110. package/dist/spot-ui/src/lib/abi/repermit.json.d.ts +315 -0
  111. package/dist/spot-ui/src/lib/analytics.d.ts +108 -0
  112. package/dist/spot-ui/src/lib/analytics.d.ts.map +1 -0
  113. package/dist/spot-ui/src/lib/build-repermit-order-data.d.ts +55 -0
  114. package/dist/spot-ui/src/lib/build-repermit-order-data.d.ts.map +1 -0
  115. package/dist/spot-ui/src/lib/consts.d.ts +118 -0
  116. package/dist/spot-ui/src/lib/consts.d.ts.map +1 -0
  117. package/dist/spot-ui/src/lib/lib.d.ts +67 -0
  118. package/dist/spot-ui/src/lib/lib.d.ts.map +1 -0
  119. package/dist/spot-ui/src/lib/networks.d.ts +445 -0
  120. package/dist/spot-ui/src/lib/networks.d.ts.map +1 -0
  121. package/dist/spot-ui/src/lib/orders/index.d.ts +11 -0
  122. package/dist/spot-ui/src/lib/orders/index.d.ts.map +1 -0
  123. package/dist/spot-ui/src/lib/orders/v1-orders.d.ts +34 -0
  124. package/dist/spot-ui/src/lib/orders/v1-orders.d.ts.map +1 -0
  125. package/dist/spot-ui/src/lib/orders/v2-orders.d.ts +10 -0
  126. package/dist/spot-ui/src/lib/orders/v2-orders.d.ts.map +1 -0
  127. package/dist/spot-ui/src/lib/submit-order.d.ts +3 -0
  128. package/dist/spot-ui/src/lib/submit-order.d.ts.map +1 -0
  129. package/dist/spot-ui/src/lib/types.d.ts +308 -0
  130. package/dist/spot-ui/src/lib/types.d.ts.map +1 -0
  131. package/dist/spot-ui/src/lib/utils.d.ts +458 -0
  132. package/dist/spot-ui/src/lib/utils.d.ts.map +1 -0
  133. package/package.json +41 -19
  134. package/dist/index.cjs.js +0 -14
  135. package/dist/index.d.ts.map +0 -1
  136. package/dist/index.es.js +0 -626
  137. package/dist/wallet-info.d.ts +0 -7
  138. package/dist/wallet-info.d.ts.map +0 -1
@@ -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, eqIgnoreCase, getOrderFillDelayMillis, getPartnerChains, getOrderExecutionRate, getOrderLimitPriceRate, getTriggerPricePerTrade, } from './lib/utils';
10
+ export { networks } from './lib/networks';
11
+ export { getAccountOrders } from './lib/orders';
12
+ export { buildV2Order } from './lib/orders/v2-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;AACtD,cAAc,WAAW,CAAC;AAC1B,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,EACL,eAAe,EACf,UAAU,EACV,YAAY,EACZ,uBAAuB,EACvB,gBAAgB,EAChB,qBAAqB,EACrB,sBAAsB,EACtB,uBAAuB,GACxB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAEtD,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;
@@ -0,0 +1,260 @@
1
+ export declare const IWETH_ABI: ({
2
+ constant: boolean;
3
+ inputs: {
4
+ name: string;
5
+ type: string;
6
+ }[];
7
+ name: string;
8
+ outputs: never[];
9
+ payable: boolean;
10
+ stateMutability: string;
11
+ type: string;
12
+ anonymous?: undefined;
13
+ } | {
14
+ anonymous: boolean;
15
+ inputs: {
16
+ indexed: boolean;
17
+ name: string;
18
+ type: string;
19
+ }[];
20
+ name: string;
21
+ type: string;
22
+ constant?: undefined;
23
+ outputs?: undefined;
24
+ payable?: undefined;
25
+ stateMutability?: undefined;
26
+ })[];
27
+ export declare const ERC20_ABI: ({
28
+ inputs: {
29
+ internalType: string;
30
+ name: string;
31
+ type: string;
32
+ }[];
33
+ stateMutability: string;
34
+ type: string;
35
+ anonymous?: undefined;
36
+ name?: undefined;
37
+ outputs?: undefined;
38
+ } | {
39
+ anonymous: boolean;
40
+ inputs: {
41
+ indexed: boolean;
42
+ internalType: string;
43
+ name: string;
44
+ type: string;
45
+ }[];
46
+ name: string;
47
+ type: string;
48
+ stateMutability?: undefined;
49
+ outputs?: undefined;
50
+ } | {
51
+ inputs: {
52
+ internalType: string;
53
+ name: string;
54
+ type: string;
55
+ }[];
56
+ name: string;
57
+ outputs: {
58
+ internalType: string;
59
+ name: string;
60
+ type: string;
61
+ }[];
62
+ stateMutability: string;
63
+ type: string;
64
+ anonymous?: undefined;
65
+ })[];
66
+ export declare const REPERMIT_ABI: ({
67
+ type: string;
68
+ inputs: never[];
69
+ stateMutability: string;
70
+ name?: undefined;
71
+ outputs?: undefined;
72
+ anonymous?: undefined;
73
+ } | {
74
+ type: string;
75
+ name: string;
76
+ inputs: {
77
+ name: string;
78
+ type: string;
79
+ internalType: string;
80
+ }[];
81
+ outputs: {
82
+ name: string;
83
+ type: string;
84
+ internalType: string;
85
+ }[];
86
+ stateMutability: string;
87
+ anonymous?: undefined;
88
+ } | {
89
+ type: string;
90
+ name: string;
91
+ inputs: ({
92
+ name: string;
93
+ type: string;
94
+ internalType: string;
95
+ components: ({
96
+ name: string;
97
+ type: string;
98
+ internalType: string;
99
+ components: {
100
+ name: string;
101
+ type: string;
102
+ internalType: string;
103
+ }[];
104
+ } | {
105
+ name: string;
106
+ type: string;
107
+ internalType: string;
108
+ components?: undefined;
109
+ })[];
110
+ } | {
111
+ name: string;
112
+ type: string;
113
+ internalType: string;
114
+ components?: undefined;
115
+ })[];
116
+ outputs: never[];
117
+ stateMutability: string;
118
+ anonymous?: undefined;
119
+ } | {
120
+ type: string;
121
+ name: string;
122
+ inputs: {
123
+ name: string;
124
+ type: string;
125
+ indexed: boolean;
126
+ internalType: string;
127
+ }[];
128
+ anonymous: boolean;
129
+ stateMutability?: undefined;
130
+ outputs?: undefined;
131
+ } | {
132
+ type: string;
133
+ name: string;
134
+ inputs: {
135
+ name: string;
136
+ type: string;
137
+ internalType: string;
138
+ }[];
139
+ stateMutability?: undefined;
140
+ outputs?: undefined;
141
+ anonymous?: undefined;
142
+ })[];
143
+ export declare const TWAP_ABI: ({
144
+ inputs: {
145
+ internalType: string;
146
+ name: string;
147
+ type: string;
148
+ }[];
149
+ stateMutability: string;
150
+ type: string;
151
+ anonymous?: undefined;
152
+ name?: undefined;
153
+ outputs?: undefined;
154
+ } | {
155
+ anonymous: boolean;
156
+ inputs: ({
157
+ indexed: boolean;
158
+ internalType: string;
159
+ name: string;
160
+ type: string;
161
+ components?: undefined;
162
+ } | {
163
+ components: {
164
+ internalType: string;
165
+ name: string;
166
+ type: string;
167
+ }[];
168
+ indexed: boolean;
169
+ internalType: string;
170
+ name: string;
171
+ type: string;
172
+ })[];
173
+ name: string;
174
+ type: string;
175
+ stateMutability?: undefined;
176
+ outputs?: undefined;
177
+ } | {
178
+ inputs: {
179
+ components: {
180
+ internalType: string;
181
+ name: string;
182
+ type: string;
183
+ }[];
184
+ internalType: string;
185
+ name: string;
186
+ type: string;
187
+ }[];
188
+ name: string;
189
+ outputs: {
190
+ internalType: string;
191
+ name: string;
192
+ type: string;
193
+ }[];
194
+ stateMutability: string;
195
+ type: string;
196
+ anonymous?: undefined;
197
+ } | {
198
+ inputs: {
199
+ internalType: string;
200
+ name: string;
201
+ type: string;
202
+ }[];
203
+ name: string;
204
+ outputs: ({
205
+ internalType: string;
206
+ name: string;
207
+ type: string;
208
+ components?: undefined;
209
+ } | {
210
+ components: {
211
+ internalType: string;
212
+ name: string;
213
+ type: string;
214
+ }[];
215
+ internalType: string;
216
+ name: string;
217
+ type: string;
218
+ })[];
219
+ stateMutability: string;
220
+ type: string;
221
+ anonymous?: undefined;
222
+ } | {
223
+ inputs: {
224
+ internalType: string;
225
+ name: string;
226
+ type: string;
227
+ }[];
228
+ name: string;
229
+ outputs: {
230
+ components: ({
231
+ internalType: string;
232
+ name: string;
233
+ type: string;
234
+ components?: undefined;
235
+ } | {
236
+ components: {
237
+ internalType: string;
238
+ name: string;
239
+ type: string;
240
+ }[];
241
+ internalType: string;
242
+ name: string;
243
+ type: string;
244
+ })[];
245
+ internalType: string;
246
+ name: string;
247
+ type: string;
248
+ }[];
249
+ stateMutability: string;
250
+ type: string;
251
+ anonymous?: undefined;
252
+ } | {
253
+ stateMutability: string;
254
+ type: string;
255
+ inputs?: undefined;
256
+ anonymous?: undefined;
257
+ name?: undefined;
258
+ outputs?: undefined;
259
+ })[];
260
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../spot-ui/src/lib/abi/index.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;IAAW,CAAC;AAClC,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAQ,CAAC;AAC/B,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAc,CAAC;AACxC,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAU,CAAC"}
@@ -0,0 +1,41 @@
1
+ declare const _default: [
2
+ {
3
+ "constant": false,
4
+ "inputs": [{ "name": "wad", "type": "uint256" }],
5
+ "name": "withdraw",
6
+ "outputs": [],
7
+ "payable": false,
8
+ "stateMutability": "nonpayable",
9
+ "type": "function"
10
+ },
11
+ {
12
+ "constant": false,
13
+ "inputs": [],
14
+ "name": "deposit",
15
+ "outputs": [],
16
+ "payable": true,
17
+ "stateMutability": "payable",
18
+ "type": "function"
19
+ },
20
+ {
21
+ "anonymous": false,
22
+ "inputs": [
23
+ { "indexed": true, "name": "dst", "type": "address" },
24
+ { "indexed": false, "name": "wad", "type": "uint256" }
25
+ ],
26
+ "name": "Deposit",
27
+ "type": "event"
28
+ },
29
+ {
30
+ "anonymous": false,
31
+ "inputs": [
32
+ { "indexed": true, "name": "src", "type": "address" },
33
+ { "indexed": false, "name": "wad", "type": "uint256" }
34
+ ],
35
+ "name": "Withdrawal",
36
+ "type": "event"
37
+ }
38
+ ]
39
+ ;
40
+
41
+ export default _default;