@paraswap/dex-lib 4.8.25 → 4.8.26

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 (236) hide show
  1. package/build/abi/BProtocol.json +1155 -0
  2. package/build/abi/Jarvis.json +1172 -0
  3. package/build/abi/MStableAsset.json +1545 -0
  4. package/build/abi/OneInchLp.json +1304 -0
  5. package/build/abi/Onebit.json +736 -0
  6. package/build/abi/Shell.json +1294 -0
  7. package/build/abi/TraderJoeV2Router.json +50 -0
  8. package/build/abi/idle-dao/idle-cdo-factory.json +38 -0
  9. package/build/abi/idle-dao/idle-cdo.json +1245 -0
  10. package/build/abi/infusion/InfusionFactory.json +147 -0
  11. package/build/abi/infusion/InfusionPair.json +658 -0
  12. package/build/abi/infusion/InfusionRouter.json +442 -0
  13. package/build/abi/maker-psm/pot.json +322 -0
  14. package/build/abi/maker-psm/psm.json +243 -0
  15. package/build/abi/maker-psm/vat.json +363 -0
  16. package/build/abi/nomiswap-v2/nomiswap-v2-pool.json +773 -0
  17. package/build/abi/quick-perps/fast-price-events.json +70 -0
  18. package/build/abi/quick-perps/fast-price-feed.json +741 -0
  19. package/build/abi/quick-perps/reader.json +313 -0
  20. package/build/abi/quick-perps/vault-price-feed.json +323 -0
  21. package/build/abi/quick-perps/vault.json +1953 -0
  22. package/build/abi/uniswap-v2/excalibur-pool.json +881 -0
  23. package/build/abi/uniswap-v2/mdex-factory.json +759 -0
  24. package/build/abi/wUSDM.json +757 -0
  25. package/build/abi/zrx.v2.json +1967 -0
  26. package/build/abi/zrx.v3.json +3454 -0
  27. package/build/abi/zrx.v4.json +2193 -0
  28. package/build/config.js +12 -12
  29. package/build/dex/OneInchLp.d.ts +24 -0
  30. package/build/dex/OneInchLp.js +43 -0
  31. package/build/dex/OneInchLp.js.map +1 -0
  32. package/build/dex/bProtocol/bProtocol.d.ts +15 -0
  33. package/build/dex/bProtocol/bProtocol.js +56 -0
  34. package/build/dex/bProtocol/bProtocol.js.map +1 -0
  35. package/build/dex/bProtocol/types.d.ts +11 -0
  36. package/build/dex/bProtocol/types.js +8 -0
  37. package/build/dex/bProtocol/types.js.map +1 -0
  38. package/build/dex/ekubo/pools/base-pool.d.ts +47 -0
  39. package/build/dex/ekubo/pools/base-pool.js +184 -0
  40. package/build/dex/ekubo/pools/base-pool.js.map +1 -0
  41. package/build/dex/ekubo/pools/iface.d.ts +46 -0
  42. package/build/dex/ekubo/pools/iface.js +75 -0
  43. package/build/dex/ekubo/pools/iface.js.map +1 -0
  44. package/build/dex/ekubo/pools/math/price.d.ts +7 -0
  45. package/build/dex/ekubo/pools/math/price.js +112 -0
  46. package/build/dex/ekubo/pools/math/price.js.map +1 -0
  47. package/build/dex/ekubo/pools/oracle-pool.d.ts +10 -0
  48. package/build/dex/ekubo/pools/oracle-pool.js +19 -0
  49. package/build/dex/ekubo/pools/oracle-pool.js.map +1 -0
  50. package/build/dex/ekubo/pools/pool-utils.d.ts +44 -0
  51. package/build/dex/ekubo/pools/pool-utils.js +240 -0
  52. package/build/dex/ekubo/pools/pool-utils.js.map +1 -0
  53. package/build/dex/ekubo-v3/ekubo-v3.js +1 -0
  54. package/build/dex/ekubo-v3/ekubo-v3.js.map +1 -1
  55. package/build/dex/idle-dao/config.d.ts +5 -0
  56. package/build/dex/idle-dao/config.js +24 -0
  57. package/build/dex/idle-dao/config.js.map +1 -0
  58. package/build/dex/idle-dao/idle-dao.d.ts +42 -0
  59. package/build/dex/idle-dao/idle-dao.js +279 -0
  60. package/build/dex/idle-dao/idle-dao.js.map +1 -0
  61. package/build/dex/idle-dao/token_list.d.ts +4 -0
  62. package/build/dex/idle-dao/token_list.js +289 -0
  63. package/build/dex/idle-dao/token_list.js.map +1 -0
  64. package/build/dex/idle-dao/tokens.d.ts +9 -0
  65. package/build/dex/idle-dao/tokens.js +68 -0
  66. package/build/dex/idle-dao/tokens.js.map +1 -0
  67. package/build/dex/idle-dao/types.d.ts +35 -0
  68. package/build/dex/idle-dao/types.js +11 -0
  69. package/build/dex/idle-dao/types.js.map +1 -0
  70. package/build/dex/idle-dao/utils.d.ts +8 -0
  71. package/build/dex/idle-dao/utils.js +149 -0
  72. package/build/dex/idle-dao/utils.js.map +1 -0
  73. package/build/dex/infusion/config.d.ts +3 -0
  74. package/build/dex/infusion/config.js +20 -0
  75. package/build/dex/infusion/config.js.map +1 -0
  76. package/build/dex/infusion/infusion-stable-pool.d.ts +4 -0
  77. package/build/dex/infusion/infusion-stable-pool.js +74 -0
  78. package/build/dex/infusion/infusion-stable-pool.js.map +1 -0
  79. package/build/dex/infusion/infusion.d.ts +51 -0
  80. package/build/dex/infusion/infusion.js +500 -0
  81. package/build/dex/infusion/infusion.js.map +1 -0
  82. package/build/dex/infusion/types.d.ts +45 -0
  83. package/build/dex/infusion/types.js +3 -0
  84. package/build/dex/infusion/types.js.map +1 -0
  85. package/build/dex/infusion/utils/isStablePair.d.ts +2 -0
  86. package/build/dex/infusion/utils/isStablePair.js +18 -0
  87. package/build/dex/infusion/utils/isStablePair.js.map +1 -0
  88. package/build/dex/jarvis.d.ts +56 -0
  89. package/build/dex/jarvis.js +163 -0
  90. package/build/dex/jarvis.js.map +1 -0
  91. package/build/dex/mStable.d.ts +44 -0
  92. package/build/dex/mStable.js +75 -0
  93. package/build/dex/mStable.js.map +1 -0
  94. package/build/dex/maker-psm/config.d.ts +11 -0
  95. package/build/dex/maker-psm/config.js +53 -0
  96. package/build/dex/maker-psm/config.js.map +1 -0
  97. package/build/dex/maker-psm/maker-psm.d.ts +103 -0
  98. package/build/dex/maker-psm/maker-psm.js +493 -0
  99. package/build/dex/maker-psm/maker-psm.js.map +1 -0
  100. package/build/dex/maker-psm/types.d.ts +39 -0
  101. package/build/dex/maker-psm/types.js +3 -0
  102. package/build/dex/maker-psm/types.js.map +1 -0
  103. package/build/dex/onebit/onebit.d.ts +16 -0
  104. package/build/dex/onebit/onebit.js +61 -0
  105. package/build/dex/onebit/onebit.js.map +1 -0
  106. package/build/dex/onebit/types.d.ts +14 -0
  107. package/build/dex/onebit/types.js +8 -0
  108. package/build/dex/onebit/types.js.map +1 -0
  109. package/build/dex/quick-perps/config.d.ts +11 -0
  110. package/build/dex/quick-perps/config.js +27 -0
  111. package/build/dex/quick-perps/config.js.map +1 -0
  112. package/build/dex/quick-perps/fast-price-feed.d.ts +26 -0
  113. package/build/dex/quick-perps/fast-price-feed.js +184 -0
  114. package/build/dex/quick-perps/fast-price-feed.js.map +1 -0
  115. package/build/dex/quick-perps/pool.d.ts +21 -0
  116. package/build/dex/quick-perps/pool.js +229 -0
  117. package/build/dex/quick-perps/pool.js.map +1 -0
  118. package/build/dex/quick-perps/quick-perps.d.ts +53 -0
  119. package/build/dex/quick-perps/quick-perps.js +247 -0
  120. package/build/dex/quick-perps/quick-perps.js.map +1 -0
  121. package/build/dex/quick-perps/types.d.ts +98 -0
  122. package/build/dex/quick-perps/types.js +3 -0
  123. package/build/dex/quick-perps/types.js.map +1 -0
  124. package/build/dex/quick-perps/usdq.d.ts +15 -0
  125. package/build/dex/quick-perps/usdq.js +62 -0
  126. package/build/dex/quick-perps/usdq.js.map +1 -0
  127. package/build/dex/quick-perps/vault-price-feed.d.ts +43 -0
  128. package/build/dex/quick-perps/vault-price-feed.js +203 -0
  129. package/build/dex/quick-perps/vault-price-feed.js.map +1 -0
  130. package/build/dex/quick-perps/vault-utils.d.ts +8 -0
  131. package/build/dex/quick-perps/vault-utils.js +42 -0
  132. package/build/dex/quick-perps/vault-utils.js.map +1 -0
  133. package/build/dex/quick-perps/vault.d.ts +46 -0
  134. package/build/dex/quick-perps/vault.js +182 -0
  135. package/build/dex/quick-perps/vault.js.map +1 -0
  136. package/build/dex/se-vlr/config.d.ts +3 -0
  137. package/build/dex/se-vlr/config.js +24 -0
  138. package/build/dex/se-vlr/config.js.map +1 -0
  139. package/build/dex/se-vlr/se-vlr-pool.d.ts +39 -0
  140. package/build/dex/se-vlr/se-vlr-pool.js +70 -0
  141. package/build/dex/se-vlr/se-vlr-pool.js.map +1 -0
  142. package/build/dex/se-vlr/se-vlr.d.ts +35 -0
  143. package/build/dex/se-vlr/se-vlr.js +131 -0
  144. package/build/dex/se-vlr/se-vlr.js.map +1 -0
  145. package/build/dex/se-vlr/types.d.ts +6 -0
  146. package/build/dex/se-vlr/types.js +3 -0
  147. package/build/dex/se-vlr/types.js.map +1 -0
  148. package/build/dex/shell.d.ts +25 -0
  149. package/build/dex/shell.js +41 -0
  150. package/build/dex/shell.js.map +1 -0
  151. package/build/dex/solidly/forks-override/aerodrome.d.ts +14 -0
  152. package/build/dex/solidly/forks-override/aerodrome.js +46 -0
  153. package/build/dex/solidly/forks-override/aerodrome.js.map +1 -0
  154. package/build/dex/solidly/forks-override/chronos.d.ts +23 -0
  155. package/build/dex/solidly/forks-override/chronos.js +141 -0
  156. package/build/dex/solidly/forks-override/chronos.js.map +1 -0
  157. package/build/dex/solidly/forks-override/usdfi.d.ts +8 -0
  158. package/build/dex/solidly/forks-override/usdfi.js +15 -0
  159. package/build/dex/solidly/forks-override/usdfi.js.map +1 -0
  160. package/build/dex/solidly/forks-override/velocimeter.d.ts +23 -0
  161. package/build/dex/solidly/forks-override/velocimeter.js +77 -0
  162. package/build/dex/solidly/forks-override/velocimeter.js.map +1 -0
  163. package/build/dex/trader-joe-v2.d.ts +40 -0
  164. package/build/dex/trader-joe-v2.js +74 -0
  165. package/build/dex/trader-joe-v2.js.map +1 -0
  166. package/build/dex/uniswap-v2/dfyn.d.ts +19 -0
  167. package/build/dex/uniswap-v2/dfyn.js +61 -0
  168. package/build/dex/uniswap-v2/dfyn.js.map +1 -0
  169. package/build/dex/uniswap-v2/excalibur.d.ts +24 -0
  170. package/build/dex/uniswap-v2/excalibur.js +47 -0
  171. package/build/dex/uniswap-v2/excalibur.js.map +1 -0
  172. package/build/dex/uniswap-v2/mdex.d.ts +24 -0
  173. package/build/dex/uniswap-v2/mdex.js +50 -0
  174. package/build/dex/uniswap-v2/mdex.js.map +1 -0
  175. package/build/dex/uniswap-v2/nomiswap-v2.d.ts +24 -0
  176. package/build/dex/uniswap-v2/nomiswap-v2.js +57 -0
  177. package/build/dex/uniswap-v2/nomiswap-v2.js.map +1 -0
  178. package/build/dex/uniswap-v3/uniswap-v3-new.d.ts +94 -0
  179. package/build/dex/uniswap-v3/uniswap-v3-new.js +923 -0
  180. package/build/dex/uniswap-v3/uniswap-v3-new.js.map +1 -0
  181. package/build/dex/uniswap-v4/contract-math/Position.d.ts +3 -0
  182. package/build/dex/uniswap-v4/contract-math/Position.js +10 -0
  183. package/build/dex/uniswap-v4/contract-math/Position.js.map +1 -0
  184. package/build/dex/usual-bond/config.d.ts +3 -0
  185. package/build/dex/usual-bond/config.js +13 -0
  186. package/build/dex/usual-bond/config.js.map +1 -0
  187. package/build/dex/usual-bond/types.d.ts +7 -0
  188. package/build/dex/usual-bond/types.js +3 -0
  189. package/build/dex/usual-bond/types.js.map +1 -0
  190. package/build/dex/usual-bond/usual-bond.d.ts +35 -0
  191. package/build/dex/usual-bond/usual-bond.js +176 -0
  192. package/build/dex/usual-bond/usual-bond.js.map +1 -0
  193. package/build/dex/wusdm/config.d.ts +3 -0
  194. package/build/dex/wusdm/config.js +43 -0
  195. package/build/dex/wusdm/config.js.map +1 -0
  196. package/build/dex/wusdm/constants.d.ts +2 -0
  197. package/build/dex/wusdm/constants.js +6 -0
  198. package/build/dex/wusdm/constants.js.map +1 -0
  199. package/build/dex/wusdm/types.d.ts +18 -0
  200. package/build/dex/wusdm/types.js +11 -0
  201. package/build/dex/wusdm/types.js.map +1 -0
  202. package/build/dex/wusdm/wusdm-pool.d.ts +21 -0
  203. package/build/dex/wusdm/wusdm-pool.js +74 -0
  204. package/build/dex/wusdm/wusdm-pool.js.map +1 -0
  205. package/build/dex/wusdm/wusdm.d.ts +46 -0
  206. package/build/dex/wusdm/wusdm.js +243 -0
  207. package/build/dex/wusdm/wusdm.js.map +1 -0
  208. package/build/dex/zerox/config.d.ts +2 -0
  209. package/build/dex/zerox/config.js +33 -0
  210. package/build/dex/zerox/config.js.map +1 -0
  211. package/build/dex/zerox/index.d.ts +22 -0
  212. package/build/dex/zerox/index.js +225 -0
  213. package/build/dex/zerox/index.js.map +1 -0
  214. package/build/dex/zerox/order.d.ts +88 -0
  215. package/build/dex/zerox/order.js +53 -0
  216. package/build/dex/zerox/order.js.map +1 -0
  217. package/build/dex/zerox/types.d.ts +73 -0
  218. package/build/dex/zerox/types.js +21 -0
  219. package/build/dex/zerox/types.js.map +1 -0
  220. package/build/executor/Executor03BytecodeBuilder.d.ts +15 -0
  221. package/build/executor/Executor03BytecodeBuilder.js +67 -6
  222. package/build/executor/Executor03BytecodeBuilder.js.map +1 -1
  223. package/build/types.d.ts +1 -0
  224. package/package.json +1 -1
  225. package/build/dex/uniswap-v4/api-go/compare-pricing.d.ts +0 -1
  226. package/build/dex/uniswap-v4/api-go/compare-pricing.js +0 -187
  227. package/build/dex/uniswap-v4/api-go/compare-pricing.js.map +0 -1
  228. package/build/dex/uniswap-v4/api-go/compare-states.d.ts +0 -1
  229. package/build/dex/uniswap-v4/api-go/compare-states.js +0 -149
  230. package/build/dex/uniswap-v4/api-go/compare-states.js.map +0 -1
  231. package/build/dex/uniswap-v4/api-go/fetch-pool-key.d.ts +0 -0
  232. package/build/dex/uniswap-v4/api-go/fetch-pool-key.js +0 -140
  233. package/build/dex/uniswap-v4/api-go/fetch-pool-key.js.map +0 -1
  234. package/build/tenderly-simulation.d.ts +0 -221
  235. package/build/tenderly-simulation.js +0 -517
  236. package/build/tenderly-simulation.js.map +0 -1
@@ -0,0 +1,741 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ {
5
+ "internalType": "uint256",
6
+ "name": "_priceDuration",
7
+ "type": "uint256"
8
+ },
9
+ {
10
+ "internalType": "uint256",
11
+ "name": "_maxPriceUpdateDelay",
12
+ "type": "uint256"
13
+ },
14
+ {
15
+ "internalType": "uint256",
16
+ "name": "_minBlockInterval",
17
+ "type": "uint256"
18
+ },
19
+ {
20
+ "internalType": "uint256",
21
+ "name": "_maxDeviationBasisPoints",
22
+ "type": "uint256"
23
+ },
24
+ {
25
+ "internalType": "address",
26
+ "name": "_fastPriceEvents",
27
+ "type": "address"
28
+ },
29
+ { "internalType": "address", "name": "_tokenManager", "type": "address" }
30
+ ],
31
+ "stateMutability": "nonpayable",
32
+ "type": "constructor"
33
+ },
34
+ {
35
+ "anonymous": false,
36
+ "inputs": [
37
+ {
38
+ "indexed": false,
39
+ "internalType": "address",
40
+ "name": "signer",
41
+ "type": "address"
42
+ }
43
+ ],
44
+ "name": "DisableFastPrice",
45
+ "type": "event"
46
+ },
47
+ {
48
+ "anonymous": false,
49
+ "inputs": [
50
+ {
51
+ "indexed": false,
52
+ "internalType": "address",
53
+ "name": "signer",
54
+ "type": "address"
55
+ }
56
+ ],
57
+ "name": "EnableFastPrice",
58
+ "type": "event"
59
+ },
60
+ {
61
+ "anonymous": false,
62
+ "inputs": [
63
+ {
64
+ "indexed": false,
65
+ "internalType": "address",
66
+ "name": "token",
67
+ "type": "address"
68
+ },
69
+ {
70
+ "indexed": false,
71
+ "internalType": "uint256",
72
+ "name": "refPrice",
73
+ "type": "uint256"
74
+ },
75
+ {
76
+ "indexed": false,
77
+ "internalType": "uint256",
78
+ "name": "fastPrice",
79
+ "type": "uint256"
80
+ },
81
+ {
82
+ "indexed": false,
83
+ "internalType": "uint256",
84
+ "name": "cumulativeRefDelta",
85
+ "type": "uint256"
86
+ },
87
+ {
88
+ "indexed": false,
89
+ "internalType": "uint256",
90
+ "name": "cumulativeFastDelta",
91
+ "type": "uint256"
92
+ }
93
+ ],
94
+ "name": "MaxCumulativeDeltaDiffExceeded",
95
+ "type": "event"
96
+ },
97
+ {
98
+ "anonymous": false,
99
+ "inputs": [
100
+ {
101
+ "indexed": false,
102
+ "internalType": "address",
103
+ "name": "token",
104
+ "type": "address"
105
+ },
106
+ {
107
+ "indexed": false,
108
+ "internalType": "uint256",
109
+ "name": "refPrice",
110
+ "type": "uint256"
111
+ },
112
+ {
113
+ "indexed": false,
114
+ "internalType": "uint256",
115
+ "name": "fastPrice",
116
+ "type": "uint256"
117
+ },
118
+ {
119
+ "indexed": false,
120
+ "internalType": "uint256",
121
+ "name": "cumulativeRefDelta",
122
+ "type": "uint256"
123
+ },
124
+ {
125
+ "indexed": false,
126
+ "internalType": "uint256",
127
+ "name": "cumulativeFastDelta",
128
+ "type": "uint256"
129
+ }
130
+ ],
131
+ "name": "PriceData",
132
+ "type": "event"
133
+ },
134
+ {
135
+ "inputs": [],
136
+ "name": "BASIS_POINTS_DIVISOR",
137
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
138
+ "stateMutability": "view",
139
+ "type": "function"
140
+ },
141
+ {
142
+ "inputs": [],
143
+ "name": "BITMASK_32",
144
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
145
+ "stateMutability": "view",
146
+ "type": "function"
147
+ },
148
+ {
149
+ "inputs": [],
150
+ "name": "CUMULATIVE_DELTA_PRECISION",
151
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
152
+ "stateMutability": "view",
153
+ "type": "function"
154
+ },
155
+ {
156
+ "inputs": [],
157
+ "name": "MAX_CUMULATIVE_FAST_DELTA",
158
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
159
+ "stateMutability": "view",
160
+ "type": "function"
161
+ },
162
+ {
163
+ "inputs": [],
164
+ "name": "MAX_CUMULATIVE_REF_DELTA",
165
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
166
+ "stateMutability": "view",
167
+ "type": "function"
168
+ },
169
+ {
170
+ "inputs": [],
171
+ "name": "MAX_PRICE_DURATION",
172
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
173
+ "stateMutability": "view",
174
+ "type": "function"
175
+ },
176
+ {
177
+ "inputs": [],
178
+ "name": "MAX_REF_PRICE",
179
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
180
+ "stateMutability": "view",
181
+ "type": "function"
182
+ },
183
+ {
184
+ "inputs": [],
185
+ "name": "PRICE_PRECISION",
186
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
187
+ "stateMutability": "view",
188
+ "type": "function"
189
+ },
190
+ {
191
+ "inputs": [],
192
+ "name": "disableFastPrice",
193
+ "outputs": [],
194
+ "stateMutability": "nonpayable",
195
+ "type": "function"
196
+ },
197
+ {
198
+ "inputs": [],
199
+ "name": "disableFastPriceVoteCount",
200
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
201
+ "stateMutability": "view",
202
+ "type": "function"
203
+ },
204
+ {
205
+ "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
206
+ "name": "disableFastPriceVotes",
207
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
208
+ "stateMutability": "view",
209
+ "type": "function"
210
+ },
211
+ {
212
+ "inputs": [],
213
+ "name": "enableFastPrice",
214
+ "outputs": [],
215
+ "stateMutability": "nonpayable",
216
+ "type": "function"
217
+ },
218
+ {
219
+ "inputs": [],
220
+ "name": "fastPriceEvents",
221
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
222
+ "stateMutability": "view",
223
+ "type": "function"
224
+ },
225
+ {
226
+ "inputs": [
227
+ { "internalType": "address", "name": "_token", "type": "address" }
228
+ ],
229
+ "name": "favorFastPrice",
230
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
231
+ "stateMutability": "view",
232
+ "type": "function"
233
+ },
234
+ {
235
+ "inputs": [
236
+ { "internalType": "address", "name": "_token", "type": "address" },
237
+ { "internalType": "uint256", "name": "_refPrice", "type": "uint256" },
238
+ { "internalType": "bool", "name": "_maximise", "type": "bool" }
239
+ ],
240
+ "name": "getPrice",
241
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
242
+ "stateMutability": "view",
243
+ "type": "function"
244
+ },
245
+ {
246
+ "inputs": [
247
+ { "internalType": "address", "name": "_token", "type": "address" }
248
+ ],
249
+ "name": "getPriceData",
250
+ "outputs": [
251
+ { "internalType": "uint256", "name": "", "type": "uint256" },
252
+ { "internalType": "uint256", "name": "", "type": "uint256" },
253
+ { "internalType": "uint256", "name": "", "type": "uint256" },
254
+ { "internalType": "uint256", "name": "", "type": "uint256" }
255
+ ],
256
+ "stateMutability": "view",
257
+ "type": "function"
258
+ },
259
+ {
260
+ "inputs": [],
261
+ "name": "gov",
262
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
263
+ "stateMutability": "view",
264
+ "type": "function"
265
+ },
266
+ {
267
+ "inputs": [
268
+ {
269
+ "internalType": "uint256",
270
+ "name": "_minAuthorizations",
271
+ "type": "uint256"
272
+ },
273
+ { "internalType": "address[]", "name": "_signers", "type": "address[]" },
274
+ { "internalType": "address[]", "name": "_updaters", "type": "address[]" }
275
+ ],
276
+ "name": "initialize",
277
+ "outputs": [],
278
+ "stateMutability": "nonpayable",
279
+ "type": "function"
280
+ },
281
+ {
282
+ "inputs": [],
283
+ "name": "isInitialized",
284
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
285
+ "stateMutability": "view",
286
+ "type": "function"
287
+ },
288
+ {
289
+ "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
290
+ "name": "isSigner",
291
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
292
+ "stateMutability": "view",
293
+ "type": "function"
294
+ },
295
+ {
296
+ "inputs": [],
297
+ "name": "isSpreadEnabled",
298
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
299
+ "stateMutability": "view",
300
+ "type": "function"
301
+ },
302
+ {
303
+ "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
304
+ "name": "isUpdater",
305
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
306
+ "stateMutability": "view",
307
+ "type": "function"
308
+ },
309
+ {
310
+ "inputs": [],
311
+ "name": "lastUpdatedAt",
312
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
313
+ "stateMutability": "view",
314
+ "type": "function"
315
+ },
316
+ {
317
+ "inputs": [],
318
+ "name": "lastUpdatedBlock",
319
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
320
+ "stateMutability": "view",
321
+ "type": "function"
322
+ },
323
+ {
324
+ "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
325
+ "name": "maxCumulativeDeltaDiffs",
326
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
327
+ "stateMutability": "view",
328
+ "type": "function"
329
+ },
330
+ {
331
+ "inputs": [],
332
+ "name": "maxDeviationBasisPoints",
333
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
334
+ "stateMutability": "view",
335
+ "type": "function"
336
+ },
337
+ {
338
+ "inputs": [],
339
+ "name": "maxPriceUpdateDelay",
340
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
341
+ "stateMutability": "view",
342
+ "type": "function"
343
+ },
344
+ {
345
+ "inputs": [],
346
+ "name": "maxTimeDeviation",
347
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
348
+ "stateMutability": "view",
349
+ "type": "function"
350
+ },
351
+ {
352
+ "inputs": [],
353
+ "name": "minAuthorizations",
354
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
355
+ "stateMutability": "view",
356
+ "type": "function"
357
+ },
358
+ {
359
+ "inputs": [],
360
+ "name": "minBlockInterval",
361
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
362
+ "stateMutability": "view",
363
+ "type": "function"
364
+ },
365
+ {
366
+ "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
367
+ "name": "priceData",
368
+ "outputs": [
369
+ { "internalType": "uint160", "name": "refPrice", "type": "uint160" },
370
+ { "internalType": "uint32", "name": "refTime", "type": "uint32" },
371
+ {
372
+ "internalType": "uint32",
373
+ "name": "cumulativeRefDelta",
374
+ "type": "uint32"
375
+ },
376
+ {
377
+ "internalType": "uint32",
378
+ "name": "cumulativeFastDelta",
379
+ "type": "uint32"
380
+ }
381
+ ],
382
+ "stateMutability": "view",
383
+ "type": "function"
384
+ },
385
+ {
386
+ "inputs": [],
387
+ "name": "priceDataInterval",
388
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
389
+ "stateMutability": "view",
390
+ "type": "function"
391
+ },
392
+ {
393
+ "inputs": [],
394
+ "name": "priceDuration",
395
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
396
+ "stateMutability": "view",
397
+ "type": "function"
398
+ },
399
+ {
400
+ "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
401
+ "name": "prices",
402
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
403
+ "stateMutability": "view",
404
+ "type": "function"
405
+ },
406
+ {
407
+ "inputs": [
408
+ {
409
+ "internalType": "uint256[]",
410
+ "name": "_priceBitArray",
411
+ "type": "uint256[]"
412
+ },
413
+ { "internalType": "uint256", "name": "_timestamp", "type": "uint256" }
414
+ ],
415
+ "name": "setCompactedPrices",
416
+ "outputs": [],
417
+ "stateMutability": "nonpayable",
418
+ "type": "function"
419
+ },
420
+ {
421
+ "inputs": [
422
+ {
423
+ "internalType": "address",
424
+ "name": "_fastPriceEvents",
425
+ "type": "address"
426
+ }
427
+ ],
428
+ "name": "setFastPriceEvents",
429
+ "outputs": [],
430
+ "stateMutability": "nonpayable",
431
+ "type": "function"
432
+ },
433
+ {
434
+ "inputs": [
435
+ { "internalType": "address", "name": "_gov", "type": "address" }
436
+ ],
437
+ "name": "setGov",
438
+ "outputs": [],
439
+ "stateMutability": "nonpayable",
440
+ "type": "function"
441
+ },
442
+ {
443
+ "inputs": [
444
+ { "internalType": "bool", "name": "_isSpreadEnabled", "type": "bool" }
445
+ ],
446
+ "name": "setIsSpreadEnabled",
447
+ "outputs": [],
448
+ "stateMutability": "nonpayable",
449
+ "type": "function"
450
+ },
451
+ {
452
+ "inputs": [
453
+ { "internalType": "uint256", "name": "_lastUpdatedAt", "type": "uint256" }
454
+ ],
455
+ "name": "setLastUpdatedAt",
456
+ "outputs": [],
457
+ "stateMutability": "nonpayable",
458
+ "type": "function"
459
+ },
460
+ {
461
+ "inputs": [
462
+ { "internalType": "address[]", "name": "_tokens", "type": "address[]" },
463
+ {
464
+ "internalType": "uint256[]",
465
+ "name": "_maxCumulativeDeltaDiffs",
466
+ "type": "uint256[]"
467
+ }
468
+ ],
469
+ "name": "setMaxCumulativeDeltaDiffs",
470
+ "outputs": [],
471
+ "stateMutability": "nonpayable",
472
+ "type": "function"
473
+ },
474
+ {
475
+ "inputs": [
476
+ {
477
+ "internalType": "uint256",
478
+ "name": "_maxDeviationBasisPoints",
479
+ "type": "uint256"
480
+ }
481
+ ],
482
+ "name": "setMaxDeviationBasisPoints",
483
+ "outputs": [],
484
+ "stateMutability": "nonpayable",
485
+ "type": "function"
486
+ },
487
+ {
488
+ "inputs": [
489
+ {
490
+ "internalType": "uint256",
491
+ "name": "_maxPriceUpdateDelay",
492
+ "type": "uint256"
493
+ }
494
+ ],
495
+ "name": "setMaxPriceUpdateDelay",
496
+ "outputs": [],
497
+ "stateMutability": "nonpayable",
498
+ "type": "function"
499
+ },
500
+ {
501
+ "inputs": [
502
+ {
503
+ "internalType": "uint256",
504
+ "name": "_maxTimeDeviation",
505
+ "type": "uint256"
506
+ }
507
+ ],
508
+ "name": "setMaxTimeDeviation",
509
+ "outputs": [],
510
+ "stateMutability": "nonpayable",
511
+ "type": "function"
512
+ },
513
+ {
514
+ "inputs": [
515
+ {
516
+ "internalType": "uint256",
517
+ "name": "_minAuthorizations",
518
+ "type": "uint256"
519
+ }
520
+ ],
521
+ "name": "setMinAuthorizations",
522
+ "outputs": [],
523
+ "stateMutability": "nonpayable",
524
+ "type": "function"
525
+ },
526
+ {
527
+ "inputs": [
528
+ {
529
+ "internalType": "uint256",
530
+ "name": "_minBlockInterval",
531
+ "type": "uint256"
532
+ }
533
+ ],
534
+ "name": "setMinBlockInterval",
535
+ "outputs": [],
536
+ "stateMutability": "nonpayable",
537
+ "type": "function"
538
+ },
539
+ {
540
+ "inputs": [
541
+ {
542
+ "internalType": "uint256",
543
+ "name": "_priceDataInterval",
544
+ "type": "uint256"
545
+ }
546
+ ],
547
+ "name": "setPriceDataInterval",
548
+ "outputs": [],
549
+ "stateMutability": "nonpayable",
550
+ "type": "function"
551
+ },
552
+ {
553
+ "inputs": [
554
+ { "internalType": "uint256", "name": "_priceDuration", "type": "uint256" }
555
+ ],
556
+ "name": "setPriceDuration",
557
+ "outputs": [],
558
+ "stateMutability": "nonpayable",
559
+ "type": "function"
560
+ },
561
+ {
562
+ "inputs": [
563
+ { "internalType": "address[]", "name": "_tokens", "type": "address[]" },
564
+ { "internalType": "uint256[]", "name": "_prices", "type": "uint256[]" },
565
+ { "internalType": "uint256", "name": "_timestamp", "type": "uint256" }
566
+ ],
567
+ "name": "setPrices",
568
+ "outputs": [],
569
+ "stateMutability": "nonpayable",
570
+ "type": "function"
571
+ },
572
+ {
573
+ "inputs": [
574
+ { "internalType": "uint256", "name": "_priceBits", "type": "uint256" },
575
+ { "internalType": "uint256", "name": "_timestamp", "type": "uint256" }
576
+ ],
577
+ "name": "setPricesWithBits",
578
+ "outputs": [],
579
+ "stateMutability": "nonpayable",
580
+ "type": "function"
581
+ },
582
+ {
583
+ "inputs": [
584
+ {
585
+ "internalType": "address",
586
+ "name": "_positionRouter",
587
+ "type": "address"
588
+ },
589
+ { "internalType": "uint256", "name": "_priceBits", "type": "uint256" },
590
+ { "internalType": "uint256", "name": "_timestamp", "type": "uint256" },
591
+ {
592
+ "internalType": "uint256",
593
+ "name": "_endIndexForIncreasePositions",
594
+ "type": "uint256"
595
+ },
596
+ {
597
+ "internalType": "uint256",
598
+ "name": "_endIndexForDecreasePositions",
599
+ "type": "uint256"
600
+ },
601
+ {
602
+ "internalType": "uint256",
603
+ "name": "_maxIncreasePositions",
604
+ "type": "uint256"
605
+ },
606
+ {
607
+ "internalType": "uint256",
608
+ "name": "_maxDecreasePositions",
609
+ "type": "uint256"
610
+ }
611
+ ],
612
+ "name": "setPricesWithBitsAndExecute",
613
+ "outputs": [],
614
+ "stateMutability": "nonpayable",
615
+ "type": "function"
616
+ },
617
+ {
618
+ "inputs": [
619
+ { "internalType": "address", "name": "_account", "type": "address" },
620
+ { "internalType": "bool", "name": "_isActive", "type": "bool" }
621
+ ],
622
+ "name": "setSigner",
623
+ "outputs": [],
624
+ "stateMutability": "nonpayable",
625
+ "type": "function"
626
+ },
627
+ {
628
+ "inputs": [
629
+ {
630
+ "internalType": "uint256",
631
+ "name": "_spreadBasisPointsIfChainError",
632
+ "type": "uint256"
633
+ }
634
+ ],
635
+ "name": "setSpreadBasisPointsIfChainError",
636
+ "outputs": [],
637
+ "stateMutability": "nonpayable",
638
+ "type": "function"
639
+ },
640
+ {
641
+ "inputs": [
642
+ {
643
+ "internalType": "uint256",
644
+ "name": "_spreadBasisPointsIfInactive",
645
+ "type": "uint256"
646
+ }
647
+ ],
648
+ "name": "setSpreadBasisPointsIfInactive",
649
+ "outputs": [],
650
+ "stateMutability": "nonpayable",
651
+ "type": "function"
652
+ },
653
+ {
654
+ "inputs": [
655
+ { "internalType": "address", "name": "_tokenManager", "type": "address" }
656
+ ],
657
+ "name": "setTokenManager",
658
+ "outputs": [],
659
+ "stateMutability": "nonpayable",
660
+ "type": "function"
661
+ },
662
+ {
663
+ "inputs": [
664
+ { "internalType": "address[]", "name": "_tokens", "type": "address[]" },
665
+ {
666
+ "internalType": "uint256[]",
667
+ "name": "_tokenPrecisions",
668
+ "type": "uint256[]"
669
+ }
670
+ ],
671
+ "name": "setTokens",
672
+ "outputs": [],
673
+ "stateMutability": "nonpayable",
674
+ "type": "function"
675
+ },
676
+ {
677
+ "inputs": [
678
+ { "internalType": "address", "name": "_account", "type": "address" },
679
+ { "internalType": "bool", "name": "_isActive", "type": "bool" }
680
+ ],
681
+ "name": "setUpdater",
682
+ "outputs": [],
683
+ "stateMutability": "nonpayable",
684
+ "type": "function"
685
+ },
686
+ {
687
+ "inputs": [
688
+ {
689
+ "internalType": "address",
690
+ "name": "_vaultPriceFeed",
691
+ "type": "address"
692
+ }
693
+ ],
694
+ "name": "setVaultPriceFeed",
695
+ "outputs": [],
696
+ "stateMutability": "nonpayable",
697
+ "type": "function"
698
+ },
699
+ {
700
+ "inputs": [],
701
+ "name": "spreadBasisPointsIfChainError",
702
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
703
+ "stateMutability": "view",
704
+ "type": "function"
705
+ },
706
+ {
707
+ "inputs": [],
708
+ "name": "spreadBasisPointsIfInactive",
709
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
710
+ "stateMutability": "view",
711
+ "type": "function"
712
+ },
713
+ {
714
+ "inputs": [],
715
+ "name": "tokenManager",
716
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
717
+ "stateMutability": "view",
718
+ "type": "function"
719
+ },
720
+ {
721
+ "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
722
+ "name": "tokenPrecisions",
723
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
724
+ "stateMutability": "view",
725
+ "type": "function"
726
+ },
727
+ {
728
+ "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
729
+ "name": "tokens",
730
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
731
+ "stateMutability": "view",
732
+ "type": "function"
733
+ },
734
+ {
735
+ "inputs": [],
736
+ "name": "vaultPriceFeed",
737
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
738
+ "stateMutability": "view",
739
+ "type": "function"
740
+ }
741
+ ]