@gmx-io/sdk 0.0.1-alpha-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.
Files changed (237) hide show
  1. package/LICENSE +40 -0
  2. package/README.md +79 -0
  3. package/build/abis/CustomErrors.json +3254 -0
  4. package/build/abis/DataStore.json +1440 -0
  5. package/build/abis/ERC721.json +442 -0
  6. package/build/abis/EventEmitter.json +2065 -0
  7. package/build/abis/ExchangeRouter.json +1598 -0
  8. package/build/abis/GMT.json +522 -0
  9. package/build/abis/GlpManager.json +592 -0
  10. package/build/abis/GlvReader.json +1425 -0
  11. package/build/abis/GlvRouter.json +613 -0
  12. package/build/abis/GmxMigrator.json +657 -0
  13. package/build/abis/GovToken.json +1121 -0
  14. package/build/abis/MintableBaseToken.json +696 -0
  15. package/build/abis/Multicall.json +333 -0
  16. package/build/abis/OrderBook.json +1997 -0
  17. package/build/abis/OrderBookReader.json +111 -0
  18. package/build/abis/OrderExecutor.json +122 -0
  19. package/build/abis/PositionManager.json +1165 -0
  20. package/build/abis/PositionRouter.json +2030 -0
  21. package/build/abis/Reader.json +355 -0
  22. package/build/abis/ReaderV2.json +630 -0
  23. package/build/abis/ReferralStorage.json +507 -0
  24. package/build/abis/RewardReader.json +86 -0
  25. package/build/abis/RewardRouter.json +769 -0
  26. package/build/abis/RewardTracker.json +918 -0
  27. package/build/abis/Router-v2.json +605 -0
  28. package/build/abis/Router.json +605 -0
  29. package/build/abis/SubaccountRouter.json +648 -0
  30. package/build/abis/SyntheticsReader.json +4577 -0
  31. package/build/abis/SyntheticsRouter.json +77 -0
  32. package/build/abis/Timelock.json +1737 -0
  33. package/build/abis/Token.json +345 -0
  34. package/build/abis/Treasury.json +411 -0
  35. package/build/abis/UniPool.json +89 -0
  36. package/build/abis/UniswapV2.json +1 -0
  37. package/build/abis/Vault.json +3220 -0
  38. package/build/abis/VaultReader.json +87 -0
  39. package/build/abis/VaultV2.json +3019 -0
  40. package/build/abis/VaultV2b.json +3220 -0
  41. package/build/abis/Vester.json +1031 -0
  42. package/build/abis/WETH.json +320 -0
  43. package/build/abis/YieldFarm.json +599 -0
  44. package/build/abis/YieldToken.json +560 -0
  45. package/build/prebuilt/hashedMarketConfigKeys.json +3658 -0
  46. package/build/prebuilt/hashedMarketValuesKeys.json +1103 -0
  47. package/build/prebuilt/index.ts +28 -0
  48. package/build/src/abis/CustomErrors.json +3254 -0
  49. package/build/src/abis/DataStore.json +1440 -0
  50. package/build/src/abis/ERC721.json +442 -0
  51. package/build/src/abis/EventEmitter.json +2065 -0
  52. package/build/src/abis/ExchangeRouter.json +1598 -0
  53. package/build/src/abis/GMT.json +522 -0
  54. package/build/src/abis/GlpManager.json +591 -0
  55. package/build/src/abis/GlvReader.json +1424 -0
  56. package/build/src/abis/GlvRouter.json +612 -0
  57. package/build/src/abis/GmxMigrator.json +657 -0
  58. package/build/src/abis/GovToken.json +1121 -0
  59. package/build/src/abis/MintableBaseToken.json +696 -0
  60. package/build/src/abis/Multicall.json +333 -0
  61. package/build/src/abis/OrderBook.json +1997 -0
  62. package/build/src/abis/OrderBookReader.json +111 -0
  63. package/build/src/abis/OrderExecutor.json +122 -0
  64. package/build/src/abis/PositionManager.json +1165 -0
  65. package/build/src/abis/PositionRouter.json +2030 -0
  66. package/build/src/abis/Reader.json +355 -0
  67. package/build/src/abis/ReaderV2.json +630 -0
  68. package/build/src/abis/ReferralStorage.json +507 -0
  69. package/build/src/abis/RewardReader.json +86 -0
  70. package/build/src/abis/RewardRouter.json +769 -0
  71. package/build/src/abis/RewardTracker.json +918 -0
  72. package/build/src/abis/Router-v2.json +605 -0
  73. package/build/src/abis/Router.json +605 -0
  74. package/build/src/abis/SubaccountRouter.json +648 -0
  75. package/build/src/abis/SyntheticsReader.json +4577 -0
  76. package/build/src/abis/SyntheticsRouter.json +77 -0
  77. package/build/src/abis/Timelock.json +1737 -0
  78. package/build/src/abis/Token.json +345 -0
  79. package/build/src/abis/Treasury.json +411 -0
  80. package/build/src/abis/UniPool.json +89 -0
  81. package/build/src/abis/UniswapV2.json +1 -0
  82. package/build/src/abis/Vault.json +3220 -0
  83. package/build/src/abis/VaultReader.json +87 -0
  84. package/build/src/abis/VaultV2.json +3019 -0
  85. package/build/src/abis/VaultV2b.json +3220 -0
  86. package/build/src/abis/Vester.json +1031 -0
  87. package/build/src/abis/WETH.json +320 -0
  88. package/build/src/abis/YieldFarm.json +599 -0
  89. package/build/src/abis/YieldToken.json +560 -0
  90. package/build/src/configs/batch.d.ts +6 -0
  91. package/build/src/configs/batch.js +51 -0
  92. package/build/src/configs/chains.d.ts +37 -0
  93. package/build/src/configs/chains.js +90 -0
  94. package/build/src/configs/contracts.d.ts +2 -0
  95. package/build/src/configs/contracts.js +218 -0
  96. package/build/src/configs/dataStore.d.ts +149 -0
  97. package/build/src/configs/dataStore.js +276 -0
  98. package/build/src/configs/factors.d.ts +20 -0
  99. package/build/src/configs/factors.js +21 -0
  100. package/build/src/configs/markets.d.ts +8 -0
  101. package/build/src/configs/markets.js +528 -0
  102. package/build/src/configs/subgraph.d.ts +3 -0
  103. package/build/src/configs/subgraph.js +3 -0
  104. package/build/src/configs/tokens.d.ts +89 -0
  105. package/build/src/configs/tokens.js +1269 -0
  106. package/build/src/index.d.ts +44 -0
  107. package/build/src/index.js +245 -0
  108. package/build/src/modules/accounts/accounts.d.ts +5 -0
  109. package/build/src/modules/accounts/accounts.js +36 -0
  110. package/build/src/modules/accounts/accounts.spec.d.ts +1 -0
  111. package/build/src/modules/accounts/accounts.spec.js +7 -0
  112. package/build/src/modules/base.d.ts +9 -0
  113. package/build/src/modules/base.js +15 -0
  114. package/build/src/modules/markets/index.d.ts +26 -0
  115. package/build/src/modules/markets/index.js +339 -0
  116. package/build/src/modules/markets/markets.spec.d.ts +1 -0
  117. package/build/src/modules/markets/markets.spec.js +38 -0
  118. package/build/src/modules/markets/query-builders.d.ts +40 -0
  119. package/build/src/modules/markets/query-builders.js +379 -0
  120. package/build/src/modules/markets/types.d.ts +42 -0
  121. package/build/src/modules/markets/types.js +1 -0
  122. package/build/src/modules/oracle.d.ts +31 -0
  123. package/build/src/modules/oracle.js +53 -0
  124. package/build/src/modules/orders/orders.d.ts +60 -0
  125. package/build/src/modules/orders/orders.js +270 -0
  126. package/build/src/modules/orders/orders.spec.d.ts +1 -0
  127. package/build/src/modules/orders/orders.spec.js +16 -0
  128. package/build/src/modules/orders/transactions/cancelOrdersTxn.d.ts +6 -0
  129. package/build/src/modules/orders/transactions/cancelOrdersTxn.js +15 -0
  130. package/build/src/modules/orders/transactions/createDecreaseOrderTxn.d.ts +32 -0
  131. package/build/src/modules/orders/transactions/createDecreaseOrderTxn.js +98 -0
  132. package/build/src/modules/orders/transactions/createIncreaseOrderTxn.d.ts +77 -0
  133. package/build/src/modules/orders/transactions/createIncreaseOrderTxn.js +164 -0
  134. package/build/src/modules/orders/transactions/createSwapOrderTxn.d.ts +16 -0
  135. package/build/src/modules/orders/transactions/createSwapOrderTxn.js +97 -0
  136. package/build/src/modules/orders/transactions/createWrapOrUnwrapTxn.d.ts +6 -0
  137. package/build/src/modules/orders/transactions/createWrapOrUnwrapTxn.js +13 -0
  138. package/build/src/modules/orders/transactions/updateOrderTxn.d.ts +23 -0
  139. package/build/src/modules/orders/transactions/updateOrderTxn.js +44 -0
  140. package/build/src/modules/orders/utils.d.ts +248 -0
  141. package/build/src/modules/orders/utils.js +151 -0
  142. package/build/src/modules/positions/positions.d.ts +48 -0
  143. package/build/src/modules/positions/positions.js +563 -0
  144. package/build/src/modules/positions/positions.spec.d.ts +1 -0
  145. package/build/src/modules/positions/positions.spec.js +25 -0
  146. package/build/src/modules/tokens/tokens.d.ts +26 -0
  147. package/build/src/modules/tokens/tokens.js +132 -0
  148. package/build/src/modules/tokens/tokens.spec.d.ts +1 -0
  149. package/build/src/modules/tokens/tokens.spec.js +19 -0
  150. package/build/src/modules/trades/trades.d.ts +48 -0
  151. package/build/src/modules/trades/trades.js +390 -0
  152. package/build/src/modules/trades/trades.spec.d.ts +1 -0
  153. package/build/src/modules/trades/trades.spec.js +14 -0
  154. package/build/src/prebuilt/hashedMarketConfigKeys.json +3658 -0
  155. package/build/src/prebuilt/hashedMarketValuesKeys.json +1103 -0
  156. package/build/src/prebuilt/index.d.ts +14 -0
  157. package/build/src/prebuilt/index.js +9 -0
  158. package/build/src/types/amounts.d.ts +223 -0
  159. package/build/src/types/amounts.js +17 -0
  160. package/build/src/types/fees.d.ts +34 -0
  161. package/build/src/types/fees.js +1 -0
  162. package/build/src/types/markets.d.ts +143 -0
  163. package/build/src/types/markets.js +1 -0
  164. package/build/src/types/orders.d.ts +74 -0
  165. package/build/src/types/orders.js +33 -0
  166. package/build/src/types/positions.d.ts +53 -0
  167. package/build/src/types/positions.js +1 -0
  168. package/build/src/types/referrals.d.ts +124 -0
  169. package/build/src/types/referrals.js +9 -0
  170. package/build/src/types/sdk.d.ts +32 -0
  171. package/build/src/types/sdk.js +1 -0
  172. package/build/src/types/sidecarOrders.d.ts +54 -0
  173. package/build/src/types/sidecarOrders.js +1 -0
  174. package/build/src/types/syntheticsEvents.d.ts +88 -0
  175. package/build/src/types/syntheticsEvents.js +1 -0
  176. package/build/src/types/tokens.d.ts +89 -0
  177. package/build/src/types/tokens.js +1 -0
  178. package/build/src/types/trade.d.ts +223 -0
  179. package/build/src/types/trade.js +17 -0
  180. package/build/src/types/tradeHistory.d.ts +107 -0
  181. package/build/src/types/tradeHistory.js +8 -0
  182. package/build/src/utils/LruCache.d.ts +10 -0
  183. package/build/src/utils/LruCache.js +45 -0
  184. package/build/src/utils/bigmath.d.ts +7 -0
  185. package/build/src/utils/bigmath.js +23 -0
  186. package/build/src/utils/buildUrl.d.ts +1 -0
  187. package/build/src/utils/buildUrl.js +5 -0
  188. package/build/src/utils/callContract.d.ts +17 -0
  189. package/build/src/utils/callContract.js +133 -0
  190. package/build/src/utils/common.d.ts +2 -0
  191. package/build/src/utils/common.js +2 -0
  192. package/build/src/utils/fees/estimateOraclePriceCount.d.ts +6 -0
  193. package/build/src/utils/fees/estimateOraclePriceCount.js +19 -0
  194. package/build/src/utils/fees/executionFee.d.ts +59 -0
  195. package/build/src/utils/fees/executionFee.js +108 -0
  196. package/build/src/utils/fees/index.d.ts +29 -0
  197. package/build/src/utils/fees/index.js +89 -0
  198. package/build/src/utils/fees/priceImpact.d.ts +75 -0
  199. package/build/src/utils/fees/priceImpact.js +287 -0
  200. package/build/src/utils/graphqlFetcher.d.ts +1 -0
  201. package/build/src/utils/graphqlFetcher.js +18 -0
  202. package/build/src/utils/hash.d.ts +5 -0
  203. package/build/src/utils/hash.js +35 -0
  204. package/build/src/utils/marketKeysAndConfigs.d.ts +66 -0
  205. package/build/src/utils/marketKeysAndConfigs.js +257 -0
  206. package/build/src/utils/markets.d.ts +40 -0
  207. package/build/src/utils/markets.js +129 -0
  208. package/build/src/utils/multicall.d.ts +64 -0
  209. package/build/src/utils/multicall.js +116 -0
  210. package/build/src/utils/numbers.d.ts +9 -0
  211. package/build/src/utils/numbers.js +30 -0
  212. package/build/src/utils/objects.d.ts +18 -0
  213. package/build/src/utils/objects.js +30 -0
  214. package/build/src/utils/orders.d.ts +28 -0
  215. package/build/src/utils/orders.js +178 -0
  216. package/build/src/utils/positions.d.ts +60 -0
  217. package/build/src/utils/positions.js +133 -0
  218. package/build/src/utils/prices.d.ts +15 -0
  219. package/build/src/utils/prices.js +34 -0
  220. package/build/src/utils/referrals.d.ts +2 -0
  221. package/build/src/utils/referrals.js +27 -0
  222. package/build/src/utils/simulateExecuteOrder.d.ts +16 -0
  223. package/build/src/utils/simulateExecuteOrder.js +143 -0
  224. package/build/src/utils/slidingWindowFallbackSwitcher.d.ts +24 -0
  225. package/build/src/utils/slidingWindowFallbackSwitcher.js +40 -0
  226. package/build/src/utils/subgraph.d.ts +21 -0
  227. package/build/src/utils/subgraph.js +72 -0
  228. package/build/src/utils/swapStats.d.ts +35 -0
  229. package/build/src/utils/swapStats.js +197 -0
  230. package/build/src/utils/test.d.ts +2 -0
  231. package/build/src/utils/test.js +24 -0
  232. package/build/src/utils/tokens.d.ts +18 -0
  233. package/build/src/utils/tokens.js +64 -0
  234. package/build/src/utils/trade.d.ts +10 -0
  235. package/build/src/utils/trade.js +32 -0
  236. package/build/tsconfig.tsbuildinfo +1 -0
  237. package/package.json +96 -0
@@ -0,0 +1,1424 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "GlvReader",
4
+ "sourceName": "contracts/reader/GlvReader.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [],
8
+ "name": "EmptyMarketTokenSupply",
9
+ "type": "error"
10
+ },
11
+ {
12
+ "inputs": [
13
+ {
14
+ "internalType": "address",
15
+ "name": "glv",
16
+ "type": "address"
17
+ },
18
+ {
19
+ "internalType": "address",
20
+ "name": "market",
21
+ "type": "address"
22
+ }
23
+ ],
24
+ "name": "GlvNegativeMarketPoolValue",
25
+ "type": "error"
26
+ },
27
+ {
28
+ "inputs": [
29
+ {
30
+ "internalType": "contract DataStore",
31
+ "name": "dataStore",
32
+ "type": "address"
33
+ },
34
+ {
35
+ "internalType": "address",
36
+ "name": "account",
37
+ "type": "address"
38
+ },
39
+ {
40
+ "internalType": "uint256",
41
+ "name": "start",
42
+ "type": "uint256"
43
+ },
44
+ {
45
+ "internalType": "uint256",
46
+ "name": "end",
47
+ "type": "uint256"
48
+ }
49
+ ],
50
+ "name": "getAccountGlvDeposits",
51
+ "outputs": [
52
+ {
53
+ "components": [
54
+ {
55
+ "components": [
56
+ {
57
+ "internalType": "address",
58
+ "name": "glv",
59
+ "type": "address"
60
+ },
61
+ {
62
+ "internalType": "address",
63
+ "name": "account",
64
+ "type": "address"
65
+ },
66
+ {
67
+ "internalType": "address",
68
+ "name": "receiver",
69
+ "type": "address"
70
+ },
71
+ {
72
+ "internalType": "address",
73
+ "name": "callbackContract",
74
+ "type": "address"
75
+ },
76
+ {
77
+ "internalType": "address",
78
+ "name": "uiFeeReceiver",
79
+ "type": "address"
80
+ },
81
+ {
82
+ "internalType": "address",
83
+ "name": "market",
84
+ "type": "address"
85
+ },
86
+ {
87
+ "internalType": "address",
88
+ "name": "initialLongToken",
89
+ "type": "address"
90
+ },
91
+ {
92
+ "internalType": "address",
93
+ "name": "initialShortToken",
94
+ "type": "address"
95
+ },
96
+ {
97
+ "internalType": "address[]",
98
+ "name": "longTokenSwapPath",
99
+ "type": "address[]"
100
+ },
101
+ {
102
+ "internalType": "address[]",
103
+ "name": "shortTokenSwapPath",
104
+ "type": "address[]"
105
+ }
106
+ ],
107
+ "internalType": "struct GlvDeposit.Addresses",
108
+ "name": "addresses",
109
+ "type": "tuple"
110
+ },
111
+ {
112
+ "components": [
113
+ {
114
+ "internalType": "uint256",
115
+ "name": "marketTokenAmount",
116
+ "type": "uint256"
117
+ },
118
+ {
119
+ "internalType": "uint256",
120
+ "name": "initialLongTokenAmount",
121
+ "type": "uint256"
122
+ },
123
+ {
124
+ "internalType": "uint256",
125
+ "name": "initialShortTokenAmount",
126
+ "type": "uint256"
127
+ },
128
+ {
129
+ "internalType": "uint256",
130
+ "name": "minGlvTokens",
131
+ "type": "uint256"
132
+ },
133
+ {
134
+ "internalType": "uint256",
135
+ "name": "updatedAtTime",
136
+ "type": "uint256"
137
+ },
138
+ {
139
+ "internalType": "uint256",
140
+ "name": "executionFee",
141
+ "type": "uint256"
142
+ },
143
+ {
144
+ "internalType": "uint256",
145
+ "name": "callbackGasLimit",
146
+ "type": "uint256"
147
+ }
148
+ ],
149
+ "internalType": "struct GlvDeposit.Numbers",
150
+ "name": "numbers",
151
+ "type": "tuple"
152
+ },
153
+ {
154
+ "components": [
155
+ {
156
+ "internalType": "bool",
157
+ "name": "shouldUnwrapNativeToken",
158
+ "type": "bool"
159
+ },
160
+ {
161
+ "internalType": "bool",
162
+ "name": "isMarketTokenDeposit",
163
+ "type": "bool"
164
+ }
165
+ ],
166
+ "internalType": "struct GlvDeposit.Flags",
167
+ "name": "flags",
168
+ "type": "tuple"
169
+ }
170
+ ],
171
+ "internalType": "struct GlvDeposit.Props[]",
172
+ "name": "",
173
+ "type": "tuple[]"
174
+ }
175
+ ],
176
+ "stateMutability": "view",
177
+ "type": "function"
178
+ },
179
+ {
180
+ "inputs": [
181
+ {
182
+ "internalType": "contract DataStore",
183
+ "name": "dataStore",
184
+ "type": "address"
185
+ },
186
+ {
187
+ "internalType": "address",
188
+ "name": "account",
189
+ "type": "address"
190
+ },
191
+ {
192
+ "internalType": "uint256",
193
+ "name": "start",
194
+ "type": "uint256"
195
+ },
196
+ {
197
+ "internalType": "uint256",
198
+ "name": "end",
199
+ "type": "uint256"
200
+ }
201
+ ],
202
+ "name": "getAccountGlvWithdrawals",
203
+ "outputs": [
204
+ {
205
+ "components": [
206
+ {
207
+ "components": [
208
+ {
209
+ "internalType": "address",
210
+ "name": "glv",
211
+ "type": "address"
212
+ },
213
+ {
214
+ "internalType": "address",
215
+ "name": "market",
216
+ "type": "address"
217
+ },
218
+ {
219
+ "internalType": "address",
220
+ "name": "account",
221
+ "type": "address"
222
+ },
223
+ {
224
+ "internalType": "address",
225
+ "name": "receiver",
226
+ "type": "address"
227
+ },
228
+ {
229
+ "internalType": "address",
230
+ "name": "callbackContract",
231
+ "type": "address"
232
+ },
233
+ {
234
+ "internalType": "address",
235
+ "name": "uiFeeReceiver",
236
+ "type": "address"
237
+ },
238
+ {
239
+ "internalType": "address[]",
240
+ "name": "longTokenSwapPath",
241
+ "type": "address[]"
242
+ },
243
+ {
244
+ "internalType": "address[]",
245
+ "name": "shortTokenSwapPath",
246
+ "type": "address[]"
247
+ }
248
+ ],
249
+ "internalType": "struct GlvWithdrawal.Addresses",
250
+ "name": "addresses",
251
+ "type": "tuple"
252
+ },
253
+ {
254
+ "components": [
255
+ {
256
+ "internalType": "uint256",
257
+ "name": "glvTokenAmount",
258
+ "type": "uint256"
259
+ },
260
+ {
261
+ "internalType": "uint256",
262
+ "name": "minLongTokenAmount",
263
+ "type": "uint256"
264
+ },
265
+ {
266
+ "internalType": "uint256",
267
+ "name": "minShortTokenAmount",
268
+ "type": "uint256"
269
+ },
270
+ {
271
+ "internalType": "uint256",
272
+ "name": "updatedAtTime",
273
+ "type": "uint256"
274
+ },
275
+ {
276
+ "internalType": "uint256",
277
+ "name": "executionFee",
278
+ "type": "uint256"
279
+ },
280
+ {
281
+ "internalType": "uint256",
282
+ "name": "callbackGasLimit",
283
+ "type": "uint256"
284
+ }
285
+ ],
286
+ "internalType": "struct GlvWithdrawal.Numbers",
287
+ "name": "numbers",
288
+ "type": "tuple"
289
+ },
290
+ {
291
+ "components": [
292
+ {
293
+ "internalType": "bool",
294
+ "name": "shouldUnwrapNativeToken",
295
+ "type": "bool"
296
+ }
297
+ ],
298
+ "internalType": "struct GlvWithdrawal.Flags",
299
+ "name": "flags",
300
+ "type": "tuple"
301
+ }
302
+ ],
303
+ "internalType": "struct GlvWithdrawal.Props[]",
304
+ "name": "",
305
+ "type": "tuple[]"
306
+ }
307
+ ],
308
+ "stateMutability": "view",
309
+ "type": "function"
310
+ },
311
+ {
312
+ "inputs": [
313
+ {
314
+ "internalType": "contract DataStore",
315
+ "name": "dataStore",
316
+ "type": "address"
317
+ },
318
+ {
319
+ "internalType": "address",
320
+ "name": "glv",
321
+ "type": "address"
322
+ }
323
+ ],
324
+ "name": "getGlv",
325
+ "outputs": [
326
+ {
327
+ "components": [
328
+ {
329
+ "internalType": "address",
330
+ "name": "glvToken",
331
+ "type": "address"
332
+ },
333
+ {
334
+ "internalType": "address",
335
+ "name": "longToken",
336
+ "type": "address"
337
+ },
338
+ {
339
+ "internalType": "address",
340
+ "name": "shortToken",
341
+ "type": "address"
342
+ }
343
+ ],
344
+ "internalType": "struct Glv.Props",
345
+ "name": "",
346
+ "type": "tuple"
347
+ }
348
+ ],
349
+ "stateMutability": "view",
350
+ "type": "function"
351
+ },
352
+ {
353
+ "inputs": [
354
+ {
355
+ "internalType": "contract DataStore",
356
+ "name": "dataStore",
357
+ "type": "address"
358
+ },
359
+ {
360
+ "internalType": "bytes32",
361
+ "name": "salt",
362
+ "type": "bytes32"
363
+ }
364
+ ],
365
+ "name": "getGlvBySalt",
366
+ "outputs": [
367
+ {
368
+ "components": [
369
+ {
370
+ "internalType": "address",
371
+ "name": "glvToken",
372
+ "type": "address"
373
+ },
374
+ {
375
+ "internalType": "address",
376
+ "name": "longToken",
377
+ "type": "address"
378
+ },
379
+ {
380
+ "internalType": "address",
381
+ "name": "shortToken",
382
+ "type": "address"
383
+ }
384
+ ],
385
+ "internalType": "struct Glv.Props",
386
+ "name": "",
387
+ "type": "tuple"
388
+ }
389
+ ],
390
+ "stateMutability": "view",
391
+ "type": "function"
392
+ },
393
+ {
394
+ "inputs": [
395
+ {
396
+ "internalType": "contract DataStore",
397
+ "name": "dataStore",
398
+ "type": "address"
399
+ },
400
+ {
401
+ "internalType": "bytes32",
402
+ "name": "key",
403
+ "type": "bytes32"
404
+ }
405
+ ],
406
+ "name": "getGlvDeposit",
407
+ "outputs": [
408
+ {
409
+ "components": [
410
+ {
411
+ "components": [
412
+ {
413
+ "internalType": "address",
414
+ "name": "glv",
415
+ "type": "address"
416
+ },
417
+ {
418
+ "internalType": "address",
419
+ "name": "account",
420
+ "type": "address"
421
+ },
422
+ {
423
+ "internalType": "address",
424
+ "name": "receiver",
425
+ "type": "address"
426
+ },
427
+ {
428
+ "internalType": "address",
429
+ "name": "callbackContract",
430
+ "type": "address"
431
+ },
432
+ {
433
+ "internalType": "address",
434
+ "name": "uiFeeReceiver",
435
+ "type": "address"
436
+ },
437
+ {
438
+ "internalType": "address",
439
+ "name": "market",
440
+ "type": "address"
441
+ },
442
+ {
443
+ "internalType": "address",
444
+ "name": "initialLongToken",
445
+ "type": "address"
446
+ },
447
+ {
448
+ "internalType": "address",
449
+ "name": "initialShortToken",
450
+ "type": "address"
451
+ },
452
+ {
453
+ "internalType": "address[]",
454
+ "name": "longTokenSwapPath",
455
+ "type": "address[]"
456
+ },
457
+ {
458
+ "internalType": "address[]",
459
+ "name": "shortTokenSwapPath",
460
+ "type": "address[]"
461
+ }
462
+ ],
463
+ "internalType": "struct GlvDeposit.Addresses",
464
+ "name": "addresses",
465
+ "type": "tuple"
466
+ },
467
+ {
468
+ "components": [
469
+ {
470
+ "internalType": "uint256",
471
+ "name": "marketTokenAmount",
472
+ "type": "uint256"
473
+ },
474
+ {
475
+ "internalType": "uint256",
476
+ "name": "initialLongTokenAmount",
477
+ "type": "uint256"
478
+ },
479
+ {
480
+ "internalType": "uint256",
481
+ "name": "initialShortTokenAmount",
482
+ "type": "uint256"
483
+ },
484
+ {
485
+ "internalType": "uint256",
486
+ "name": "minGlvTokens",
487
+ "type": "uint256"
488
+ },
489
+ {
490
+ "internalType": "uint256",
491
+ "name": "updatedAtTime",
492
+ "type": "uint256"
493
+ },
494
+ {
495
+ "internalType": "uint256",
496
+ "name": "executionFee",
497
+ "type": "uint256"
498
+ },
499
+ {
500
+ "internalType": "uint256",
501
+ "name": "callbackGasLimit",
502
+ "type": "uint256"
503
+ }
504
+ ],
505
+ "internalType": "struct GlvDeposit.Numbers",
506
+ "name": "numbers",
507
+ "type": "tuple"
508
+ },
509
+ {
510
+ "components": [
511
+ {
512
+ "internalType": "bool",
513
+ "name": "shouldUnwrapNativeToken",
514
+ "type": "bool"
515
+ },
516
+ {
517
+ "internalType": "bool",
518
+ "name": "isMarketTokenDeposit",
519
+ "type": "bool"
520
+ }
521
+ ],
522
+ "internalType": "struct GlvDeposit.Flags",
523
+ "name": "flags",
524
+ "type": "tuple"
525
+ }
526
+ ],
527
+ "internalType": "struct GlvDeposit.Props",
528
+ "name": "",
529
+ "type": "tuple"
530
+ }
531
+ ],
532
+ "stateMutability": "view",
533
+ "type": "function"
534
+ },
535
+ {
536
+ "inputs": [
537
+ {
538
+ "internalType": "contract DataStore",
539
+ "name": "dataStore",
540
+ "type": "address"
541
+ },
542
+ {
543
+ "internalType": "uint256",
544
+ "name": "start",
545
+ "type": "uint256"
546
+ },
547
+ {
548
+ "internalType": "uint256",
549
+ "name": "end",
550
+ "type": "uint256"
551
+ }
552
+ ],
553
+ "name": "getGlvDeposits",
554
+ "outputs": [
555
+ {
556
+ "components": [
557
+ {
558
+ "components": [
559
+ {
560
+ "internalType": "address",
561
+ "name": "glv",
562
+ "type": "address"
563
+ },
564
+ {
565
+ "internalType": "address",
566
+ "name": "account",
567
+ "type": "address"
568
+ },
569
+ {
570
+ "internalType": "address",
571
+ "name": "receiver",
572
+ "type": "address"
573
+ },
574
+ {
575
+ "internalType": "address",
576
+ "name": "callbackContract",
577
+ "type": "address"
578
+ },
579
+ {
580
+ "internalType": "address",
581
+ "name": "uiFeeReceiver",
582
+ "type": "address"
583
+ },
584
+ {
585
+ "internalType": "address",
586
+ "name": "market",
587
+ "type": "address"
588
+ },
589
+ {
590
+ "internalType": "address",
591
+ "name": "initialLongToken",
592
+ "type": "address"
593
+ },
594
+ {
595
+ "internalType": "address",
596
+ "name": "initialShortToken",
597
+ "type": "address"
598
+ },
599
+ {
600
+ "internalType": "address[]",
601
+ "name": "longTokenSwapPath",
602
+ "type": "address[]"
603
+ },
604
+ {
605
+ "internalType": "address[]",
606
+ "name": "shortTokenSwapPath",
607
+ "type": "address[]"
608
+ }
609
+ ],
610
+ "internalType": "struct GlvDeposit.Addresses",
611
+ "name": "addresses",
612
+ "type": "tuple"
613
+ },
614
+ {
615
+ "components": [
616
+ {
617
+ "internalType": "uint256",
618
+ "name": "marketTokenAmount",
619
+ "type": "uint256"
620
+ },
621
+ {
622
+ "internalType": "uint256",
623
+ "name": "initialLongTokenAmount",
624
+ "type": "uint256"
625
+ },
626
+ {
627
+ "internalType": "uint256",
628
+ "name": "initialShortTokenAmount",
629
+ "type": "uint256"
630
+ },
631
+ {
632
+ "internalType": "uint256",
633
+ "name": "minGlvTokens",
634
+ "type": "uint256"
635
+ },
636
+ {
637
+ "internalType": "uint256",
638
+ "name": "updatedAtTime",
639
+ "type": "uint256"
640
+ },
641
+ {
642
+ "internalType": "uint256",
643
+ "name": "executionFee",
644
+ "type": "uint256"
645
+ },
646
+ {
647
+ "internalType": "uint256",
648
+ "name": "callbackGasLimit",
649
+ "type": "uint256"
650
+ }
651
+ ],
652
+ "internalType": "struct GlvDeposit.Numbers",
653
+ "name": "numbers",
654
+ "type": "tuple"
655
+ },
656
+ {
657
+ "components": [
658
+ {
659
+ "internalType": "bool",
660
+ "name": "shouldUnwrapNativeToken",
661
+ "type": "bool"
662
+ },
663
+ {
664
+ "internalType": "bool",
665
+ "name": "isMarketTokenDeposit",
666
+ "type": "bool"
667
+ }
668
+ ],
669
+ "internalType": "struct GlvDeposit.Flags",
670
+ "name": "flags",
671
+ "type": "tuple"
672
+ }
673
+ ],
674
+ "internalType": "struct GlvDeposit.Props[]",
675
+ "name": "",
676
+ "type": "tuple[]"
677
+ }
678
+ ],
679
+ "stateMutability": "view",
680
+ "type": "function"
681
+ },
682
+ {
683
+ "inputs": [
684
+ {
685
+ "internalType": "contract DataStore",
686
+ "name": "dataStore",
687
+ "type": "address"
688
+ },
689
+ {
690
+ "internalType": "address",
691
+ "name": "glv",
692
+ "type": "address"
693
+ }
694
+ ],
695
+ "name": "getGlvInfo",
696
+ "outputs": [
697
+ {
698
+ "components": [
699
+ {
700
+ "components": [
701
+ {
702
+ "internalType": "address",
703
+ "name": "glvToken",
704
+ "type": "address"
705
+ },
706
+ {
707
+ "internalType": "address",
708
+ "name": "longToken",
709
+ "type": "address"
710
+ },
711
+ {
712
+ "internalType": "address",
713
+ "name": "shortToken",
714
+ "type": "address"
715
+ }
716
+ ],
717
+ "internalType": "struct Glv.Props",
718
+ "name": "glv",
719
+ "type": "tuple"
720
+ },
721
+ {
722
+ "internalType": "address[]",
723
+ "name": "markets",
724
+ "type": "address[]"
725
+ }
726
+ ],
727
+ "internalType": "struct GlvReader.GlvInfo",
728
+ "name": "",
729
+ "type": "tuple"
730
+ }
731
+ ],
732
+ "stateMutability": "view",
733
+ "type": "function"
734
+ },
735
+ {
736
+ "inputs": [
737
+ {
738
+ "internalType": "contract DataStore",
739
+ "name": "dataStore",
740
+ "type": "address"
741
+ },
742
+ {
743
+ "internalType": "uint256",
744
+ "name": "start",
745
+ "type": "uint256"
746
+ },
747
+ {
748
+ "internalType": "uint256",
749
+ "name": "end",
750
+ "type": "uint256"
751
+ }
752
+ ],
753
+ "name": "getGlvInfoList",
754
+ "outputs": [
755
+ {
756
+ "components": [
757
+ {
758
+ "components": [
759
+ {
760
+ "internalType": "address",
761
+ "name": "glvToken",
762
+ "type": "address"
763
+ },
764
+ {
765
+ "internalType": "address",
766
+ "name": "longToken",
767
+ "type": "address"
768
+ },
769
+ {
770
+ "internalType": "address",
771
+ "name": "shortToken",
772
+ "type": "address"
773
+ }
774
+ ],
775
+ "internalType": "struct Glv.Props",
776
+ "name": "glv",
777
+ "type": "tuple"
778
+ },
779
+ {
780
+ "internalType": "address[]",
781
+ "name": "markets",
782
+ "type": "address[]"
783
+ }
784
+ ],
785
+ "internalType": "struct GlvReader.GlvInfo[]",
786
+ "name": "",
787
+ "type": "tuple[]"
788
+ }
789
+ ],
790
+ "stateMutability": "view",
791
+ "type": "function"
792
+ },
793
+ {
794
+ "inputs": [
795
+ {
796
+ "internalType": "contract DataStore",
797
+ "name": "dataStore",
798
+ "type": "address"
799
+ },
800
+ {
801
+ "internalType": "bytes32",
802
+ "name": "key",
803
+ "type": "bytes32"
804
+ }
805
+ ],
806
+ "name": "getGlvShift",
807
+ "outputs": [
808
+ {
809
+ "components": [
810
+ {
811
+ "components": [
812
+ {
813
+ "internalType": "address",
814
+ "name": "glv",
815
+ "type": "address"
816
+ },
817
+ {
818
+ "internalType": "address",
819
+ "name": "fromMarket",
820
+ "type": "address"
821
+ },
822
+ {
823
+ "internalType": "address",
824
+ "name": "toMarket",
825
+ "type": "address"
826
+ }
827
+ ],
828
+ "internalType": "struct GlvShift.Addresses",
829
+ "name": "addresses",
830
+ "type": "tuple"
831
+ },
832
+ {
833
+ "components": [
834
+ {
835
+ "internalType": "uint256",
836
+ "name": "marketTokenAmount",
837
+ "type": "uint256"
838
+ },
839
+ {
840
+ "internalType": "uint256",
841
+ "name": "minMarketTokens",
842
+ "type": "uint256"
843
+ },
844
+ {
845
+ "internalType": "uint256",
846
+ "name": "updatedAtTime",
847
+ "type": "uint256"
848
+ },
849
+ {
850
+ "internalType": "uint256",
851
+ "name": "executionFee",
852
+ "type": "uint256"
853
+ }
854
+ ],
855
+ "internalType": "struct GlvShift.Numbers",
856
+ "name": "numbers",
857
+ "type": "tuple"
858
+ }
859
+ ],
860
+ "internalType": "struct GlvShift.Props",
861
+ "name": "",
862
+ "type": "tuple"
863
+ }
864
+ ],
865
+ "stateMutability": "view",
866
+ "type": "function"
867
+ },
868
+ {
869
+ "inputs": [
870
+ {
871
+ "internalType": "contract DataStore",
872
+ "name": "dataStore",
873
+ "type": "address"
874
+ },
875
+ {
876
+ "internalType": "uint256",
877
+ "name": "start",
878
+ "type": "uint256"
879
+ },
880
+ {
881
+ "internalType": "uint256",
882
+ "name": "end",
883
+ "type": "uint256"
884
+ }
885
+ ],
886
+ "name": "getGlvShifts",
887
+ "outputs": [
888
+ {
889
+ "components": [
890
+ {
891
+ "components": [
892
+ {
893
+ "internalType": "address",
894
+ "name": "glv",
895
+ "type": "address"
896
+ },
897
+ {
898
+ "internalType": "address",
899
+ "name": "fromMarket",
900
+ "type": "address"
901
+ },
902
+ {
903
+ "internalType": "address",
904
+ "name": "toMarket",
905
+ "type": "address"
906
+ }
907
+ ],
908
+ "internalType": "struct GlvShift.Addresses",
909
+ "name": "addresses",
910
+ "type": "tuple"
911
+ },
912
+ {
913
+ "components": [
914
+ {
915
+ "internalType": "uint256",
916
+ "name": "marketTokenAmount",
917
+ "type": "uint256"
918
+ },
919
+ {
920
+ "internalType": "uint256",
921
+ "name": "minMarketTokens",
922
+ "type": "uint256"
923
+ },
924
+ {
925
+ "internalType": "uint256",
926
+ "name": "updatedAtTime",
927
+ "type": "uint256"
928
+ },
929
+ {
930
+ "internalType": "uint256",
931
+ "name": "executionFee",
932
+ "type": "uint256"
933
+ }
934
+ ],
935
+ "internalType": "struct GlvShift.Numbers",
936
+ "name": "numbers",
937
+ "type": "tuple"
938
+ }
939
+ ],
940
+ "internalType": "struct GlvShift.Props[]",
941
+ "name": "",
942
+ "type": "tuple[]"
943
+ }
944
+ ],
945
+ "stateMutability": "view",
946
+ "type": "function"
947
+ },
948
+ {
949
+ "inputs": [
950
+ {
951
+ "internalType": "contract DataStore",
952
+ "name": "dataStore",
953
+ "type": "address"
954
+ },
955
+ {
956
+ "internalType": "address[]",
957
+ "name": "marketAddresses",
958
+ "type": "address[]"
959
+ },
960
+ {
961
+ "components": [
962
+ {
963
+ "internalType": "uint256",
964
+ "name": "min",
965
+ "type": "uint256"
966
+ },
967
+ {
968
+ "internalType": "uint256",
969
+ "name": "max",
970
+ "type": "uint256"
971
+ }
972
+ ],
973
+ "internalType": "struct Price.Props[]",
974
+ "name": "indexTokenPrices",
975
+ "type": "tuple[]"
976
+ },
977
+ {
978
+ "components": [
979
+ {
980
+ "internalType": "uint256",
981
+ "name": "min",
982
+ "type": "uint256"
983
+ },
984
+ {
985
+ "internalType": "uint256",
986
+ "name": "max",
987
+ "type": "uint256"
988
+ }
989
+ ],
990
+ "internalType": "struct Price.Props",
991
+ "name": "longTokenPrice",
992
+ "type": "tuple"
993
+ },
994
+ {
995
+ "components": [
996
+ {
997
+ "internalType": "uint256",
998
+ "name": "min",
999
+ "type": "uint256"
1000
+ },
1001
+ {
1002
+ "internalType": "uint256",
1003
+ "name": "max",
1004
+ "type": "uint256"
1005
+ }
1006
+ ],
1007
+ "internalType": "struct Price.Props",
1008
+ "name": "shortTokenPrice",
1009
+ "type": "tuple"
1010
+ },
1011
+ {
1012
+ "internalType": "address",
1013
+ "name": "glv",
1014
+ "type": "address"
1015
+ },
1016
+ {
1017
+ "internalType": "bool",
1018
+ "name": "maximize",
1019
+ "type": "bool"
1020
+ }
1021
+ ],
1022
+ "name": "getGlvTokenPrice",
1023
+ "outputs": [
1024
+ {
1025
+ "internalType": "uint256",
1026
+ "name": "",
1027
+ "type": "uint256"
1028
+ },
1029
+ {
1030
+ "internalType": "uint256",
1031
+ "name": "",
1032
+ "type": "uint256"
1033
+ },
1034
+ {
1035
+ "internalType": "uint256",
1036
+ "name": "",
1037
+ "type": "uint256"
1038
+ }
1039
+ ],
1040
+ "stateMutability": "view",
1041
+ "type": "function"
1042
+ },
1043
+ {
1044
+ "inputs": [
1045
+ {
1046
+ "internalType": "contract DataStore",
1047
+ "name": "dataStore",
1048
+ "type": "address"
1049
+ },
1050
+ {
1051
+ "internalType": "address[]",
1052
+ "name": "marketAddresses",
1053
+ "type": "address[]"
1054
+ },
1055
+ {
1056
+ "components": [
1057
+ {
1058
+ "internalType": "uint256",
1059
+ "name": "min",
1060
+ "type": "uint256"
1061
+ },
1062
+ {
1063
+ "internalType": "uint256",
1064
+ "name": "max",
1065
+ "type": "uint256"
1066
+ }
1067
+ ],
1068
+ "internalType": "struct Price.Props[]",
1069
+ "name": "indexTokenPrices",
1070
+ "type": "tuple[]"
1071
+ },
1072
+ {
1073
+ "components": [
1074
+ {
1075
+ "internalType": "uint256",
1076
+ "name": "min",
1077
+ "type": "uint256"
1078
+ },
1079
+ {
1080
+ "internalType": "uint256",
1081
+ "name": "max",
1082
+ "type": "uint256"
1083
+ }
1084
+ ],
1085
+ "internalType": "struct Price.Props",
1086
+ "name": "longTokenPrice",
1087
+ "type": "tuple"
1088
+ },
1089
+ {
1090
+ "components": [
1091
+ {
1092
+ "internalType": "uint256",
1093
+ "name": "min",
1094
+ "type": "uint256"
1095
+ },
1096
+ {
1097
+ "internalType": "uint256",
1098
+ "name": "max",
1099
+ "type": "uint256"
1100
+ }
1101
+ ],
1102
+ "internalType": "struct Price.Props",
1103
+ "name": "shortTokenPrice",
1104
+ "type": "tuple"
1105
+ },
1106
+ {
1107
+ "internalType": "address",
1108
+ "name": "glv",
1109
+ "type": "address"
1110
+ },
1111
+ {
1112
+ "internalType": "bool",
1113
+ "name": "maximize",
1114
+ "type": "bool"
1115
+ }
1116
+ ],
1117
+ "name": "getGlvValue",
1118
+ "outputs": [
1119
+ {
1120
+ "internalType": "uint256",
1121
+ "name": "",
1122
+ "type": "uint256"
1123
+ }
1124
+ ],
1125
+ "stateMutability": "view",
1126
+ "type": "function"
1127
+ },
1128
+ {
1129
+ "inputs": [
1130
+ {
1131
+ "internalType": "contract DataStore",
1132
+ "name": "dataStore",
1133
+ "type": "address"
1134
+ },
1135
+ {
1136
+ "internalType": "bytes32",
1137
+ "name": "key",
1138
+ "type": "bytes32"
1139
+ }
1140
+ ],
1141
+ "name": "getGlvWithdrawal",
1142
+ "outputs": [
1143
+ {
1144
+ "components": [
1145
+ {
1146
+ "components": [
1147
+ {
1148
+ "internalType": "address",
1149
+ "name": "glv",
1150
+ "type": "address"
1151
+ },
1152
+ {
1153
+ "internalType": "address",
1154
+ "name": "market",
1155
+ "type": "address"
1156
+ },
1157
+ {
1158
+ "internalType": "address",
1159
+ "name": "account",
1160
+ "type": "address"
1161
+ },
1162
+ {
1163
+ "internalType": "address",
1164
+ "name": "receiver",
1165
+ "type": "address"
1166
+ },
1167
+ {
1168
+ "internalType": "address",
1169
+ "name": "callbackContract",
1170
+ "type": "address"
1171
+ },
1172
+ {
1173
+ "internalType": "address",
1174
+ "name": "uiFeeReceiver",
1175
+ "type": "address"
1176
+ },
1177
+ {
1178
+ "internalType": "address[]",
1179
+ "name": "longTokenSwapPath",
1180
+ "type": "address[]"
1181
+ },
1182
+ {
1183
+ "internalType": "address[]",
1184
+ "name": "shortTokenSwapPath",
1185
+ "type": "address[]"
1186
+ }
1187
+ ],
1188
+ "internalType": "struct GlvWithdrawal.Addresses",
1189
+ "name": "addresses",
1190
+ "type": "tuple"
1191
+ },
1192
+ {
1193
+ "components": [
1194
+ {
1195
+ "internalType": "uint256",
1196
+ "name": "glvTokenAmount",
1197
+ "type": "uint256"
1198
+ },
1199
+ {
1200
+ "internalType": "uint256",
1201
+ "name": "minLongTokenAmount",
1202
+ "type": "uint256"
1203
+ },
1204
+ {
1205
+ "internalType": "uint256",
1206
+ "name": "minShortTokenAmount",
1207
+ "type": "uint256"
1208
+ },
1209
+ {
1210
+ "internalType": "uint256",
1211
+ "name": "updatedAtTime",
1212
+ "type": "uint256"
1213
+ },
1214
+ {
1215
+ "internalType": "uint256",
1216
+ "name": "executionFee",
1217
+ "type": "uint256"
1218
+ },
1219
+ {
1220
+ "internalType": "uint256",
1221
+ "name": "callbackGasLimit",
1222
+ "type": "uint256"
1223
+ }
1224
+ ],
1225
+ "internalType": "struct GlvWithdrawal.Numbers",
1226
+ "name": "numbers",
1227
+ "type": "tuple"
1228
+ },
1229
+ {
1230
+ "components": [
1231
+ {
1232
+ "internalType": "bool",
1233
+ "name": "shouldUnwrapNativeToken",
1234
+ "type": "bool"
1235
+ }
1236
+ ],
1237
+ "internalType": "struct GlvWithdrawal.Flags",
1238
+ "name": "flags",
1239
+ "type": "tuple"
1240
+ }
1241
+ ],
1242
+ "internalType": "struct GlvWithdrawal.Props",
1243
+ "name": "",
1244
+ "type": "tuple"
1245
+ }
1246
+ ],
1247
+ "stateMutability": "view",
1248
+ "type": "function"
1249
+ },
1250
+ {
1251
+ "inputs": [
1252
+ {
1253
+ "internalType": "contract DataStore",
1254
+ "name": "dataStore",
1255
+ "type": "address"
1256
+ },
1257
+ {
1258
+ "internalType": "uint256",
1259
+ "name": "start",
1260
+ "type": "uint256"
1261
+ },
1262
+ {
1263
+ "internalType": "uint256",
1264
+ "name": "end",
1265
+ "type": "uint256"
1266
+ }
1267
+ ],
1268
+ "name": "getGlvWithdrawals",
1269
+ "outputs": [
1270
+ {
1271
+ "components": [
1272
+ {
1273
+ "components": [
1274
+ {
1275
+ "internalType": "address",
1276
+ "name": "glv",
1277
+ "type": "address"
1278
+ },
1279
+ {
1280
+ "internalType": "address",
1281
+ "name": "market",
1282
+ "type": "address"
1283
+ },
1284
+ {
1285
+ "internalType": "address",
1286
+ "name": "account",
1287
+ "type": "address"
1288
+ },
1289
+ {
1290
+ "internalType": "address",
1291
+ "name": "receiver",
1292
+ "type": "address"
1293
+ },
1294
+ {
1295
+ "internalType": "address",
1296
+ "name": "callbackContract",
1297
+ "type": "address"
1298
+ },
1299
+ {
1300
+ "internalType": "address",
1301
+ "name": "uiFeeReceiver",
1302
+ "type": "address"
1303
+ },
1304
+ {
1305
+ "internalType": "address[]",
1306
+ "name": "longTokenSwapPath",
1307
+ "type": "address[]"
1308
+ },
1309
+ {
1310
+ "internalType": "address[]",
1311
+ "name": "shortTokenSwapPath",
1312
+ "type": "address[]"
1313
+ }
1314
+ ],
1315
+ "internalType": "struct GlvWithdrawal.Addresses",
1316
+ "name": "addresses",
1317
+ "type": "tuple"
1318
+ },
1319
+ {
1320
+ "components": [
1321
+ {
1322
+ "internalType": "uint256",
1323
+ "name": "glvTokenAmount",
1324
+ "type": "uint256"
1325
+ },
1326
+ {
1327
+ "internalType": "uint256",
1328
+ "name": "minLongTokenAmount",
1329
+ "type": "uint256"
1330
+ },
1331
+ {
1332
+ "internalType": "uint256",
1333
+ "name": "minShortTokenAmount",
1334
+ "type": "uint256"
1335
+ },
1336
+ {
1337
+ "internalType": "uint256",
1338
+ "name": "updatedAtTime",
1339
+ "type": "uint256"
1340
+ },
1341
+ {
1342
+ "internalType": "uint256",
1343
+ "name": "executionFee",
1344
+ "type": "uint256"
1345
+ },
1346
+ {
1347
+ "internalType": "uint256",
1348
+ "name": "callbackGasLimit",
1349
+ "type": "uint256"
1350
+ }
1351
+ ],
1352
+ "internalType": "struct GlvWithdrawal.Numbers",
1353
+ "name": "numbers",
1354
+ "type": "tuple"
1355
+ },
1356
+ {
1357
+ "components": [
1358
+ {
1359
+ "internalType": "bool",
1360
+ "name": "shouldUnwrapNativeToken",
1361
+ "type": "bool"
1362
+ }
1363
+ ],
1364
+ "internalType": "struct GlvWithdrawal.Flags",
1365
+ "name": "flags",
1366
+ "type": "tuple"
1367
+ }
1368
+ ],
1369
+ "internalType": "struct GlvWithdrawal.Props[]",
1370
+ "name": "",
1371
+ "type": "tuple[]"
1372
+ }
1373
+ ],
1374
+ "stateMutability": "view",
1375
+ "type": "function"
1376
+ },
1377
+ {
1378
+ "inputs": [
1379
+ {
1380
+ "internalType": "contract DataStore",
1381
+ "name": "dataStore",
1382
+ "type": "address"
1383
+ },
1384
+ {
1385
+ "internalType": "uint256",
1386
+ "name": "start",
1387
+ "type": "uint256"
1388
+ },
1389
+ {
1390
+ "internalType": "uint256",
1391
+ "name": "end",
1392
+ "type": "uint256"
1393
+ }
1394
+ ],
1395
+ "name": "getGlvs",
1396
+ "outputs": [
1397
+ {
1398
+ "components": [
1399
+ {
1400
+ "internalType": "address",
1401
+ "name": "glvToken",
1402
+ "type": "address"
1403
+ },
1404
+ {
1405
+ "internalType": "address",
1406
+ "name": "longToken",
1407
+ "type": "address"
1408
+ },
1409
+ {
1410
+ "internalType": "address",
1411
+ "name": "shortToken",
1412
+ "type": "address"
1413
+ }
1414
+ ],
1415
+ "internalType": "struct Glv.Props[]",
1416
+ "name": "",
1417
+ "type": "tuple[]"
1418
+ }
1419
+ ],
1420
+ "stateMutability": "view",
1421
+ "type": "function"
1422
+ }
1423
+ ]
1424
+ }