@paraswap/dex-lib 3.8.13 → 3.8.15

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 (287) hide show
  1. package/.vscode/launch.json +16 -0
  2. package/.vscode/settings.json +3 -0
  3. package/build/abi/Uncompressor.json +250 -0
  4. package/build/abi/concentrator/arUSD5115.json +1746 -0
  5. package/build/abi/fx-protocol/FxMarket.json +1284 -0
  6. package/build/abi/fx-protocol/weETHOralce.json +676 -0
  7. package/build/abi/integral/factory.json +333 -0
  8. package/build/abi/integral/oracle.json +501 -0
  9. package/build/abi/{inception/inception-ineth-pool.json → integral/pool.json} +522 -543
  10. package/build/abi/integral/relayer.json +1536 -0
  11. package/build/abi/maverick-v2/MaverickV2Router.json +778 -0
  12. package/build/dex/aave-v1/aave-v1.d.ts +1 -2
  13. package/build/dex/aave-v1/aave-v1.js +0 -22
  14. package/build/dex/aave-v1/aave-v1.js.map +1 -1
  15. package/build/dex/bProtocol.d.ts +18 -0
  16. package/build/dex/bProtocol.js +39 -0
  17. package/build/dex/bProtocol.js.map +1 -0
  18. package/build/dex/bancor.d.ts +26 -0
  19. package/build/dex/bancor.js +58 -0
  20. package/build/dex/bancor.js.map +1 -0
  21. package/build/dex/compound.d.ts +18 -0
  22. package/build/dex/compound.js +46 -0
  23. package/build/dex/compound.js.map +1 -0
  24. package/build/dex/concentrator-arusd/concentrator-arusd-event.d.ts +17 -0
  25. package/build/dex/concentrator-arusd/concentrator-arusd-event.js +66 -0
  26. package/build/dex/concentrator-arusd/concentrator-arusd-event.js.map +1 -0
  27. package/build/dex/concentrator-arusd/concentrator-arusd.d.ts +6 -3
  28. package/build/dex/concentrator-arusd/concentrator-arusd.js +45 -41
  29. package/build/dex/concentrator-arusd/concentrator-arusd.js.map +1 -1
  30. package/build/dex/concentrator-arusd/config.d.ts +1 -2
  31. package/build/dex/concentrator-arusd/config.js +2 -6
  32. package/build/dex/concentrator-arusd/config.js.map +1 -1
  33. package/build/dex/concentrator-arusd/types.d.ts +7 -3
  34. package/build/dex/concentrator-arusd/utils.d.ts +4 -0
  35. package/build/dex/concentrator-arusd/utils.js +27 -0
  36. package/build/dex/concentrator-arusd/utils.js.map +1 -0
  37. package/build/dex/curve-v2.d.ts +58 -0
  38. package/build/dex/curve-v2.js +180 -0
  39. package/build/dex/curve-v2.js.map +1 -0
  40. package/build/dex/dodo-v1.d.ts +33 -0
  41. package/build/dex/dodo-v1.js +63 -0
  42. package/build/dex/dodo-v1.js.map +1 -0
  43. package/build/dex/etherfi/etherfi.d.ts +26 -0
  44. package/build/dex/etherfi/etherfi.js +96 -0
  45. package/build/dex/etherfi/etherfi.js.map +1 -0
  46. package/build/dex/fx-protocol-rusd/config.d.ts +1 -2
  47. package/build/dex/fx-protocol-rusd/config.js +3 -6
  48. package/build/dex/fx-protocol-rusd/config.js.map +1 -1
  49. package/build/dex/fx-protocol-rusd/fx-protocol-rusd-event.d.ts +18 -0
  50. package/build/dex/fx-protocol-rusd/fx-protocol-rusd-event.js +71 -0
  51. package/build/dex/fx-protocol-rusd/fx-protocol-rusd-event.js.map +1 -0
  52. package/build/dex/fx-protocol-rusd/fx-protocol-rusd.d.ts +10 -10
  53. package/build/dex/fx-protocol-rusd/fx-protocol-rusd.js +75 -70
  54. package/build/dex/fx-protocol-rusd/fx-protocol-rusd.js.map +1 -1
  55. package/build/dex/fx-protocol-rusd/types.d.ts +6 -3
  56. package/build/dex/fx-protocol-rusd/utils.d.ts +4 -0
  57. package/build/dex/fx-protocol-rusd/utils.js +26 -0
  58. package/build/dex/fx-protocol-rusd/utils.js.map +1 -0
  59. package/build/dex/index.js +4 -0
  60. package/build/dex/index.js.map +1 -1
  61. package/build/dex/{infusion → integral}/config.d.ts +1 -1
  62. package/build/dex/integral/config.js +20 -0
  63. package/build/dex/integral/config.js.map +1 -0
  64. package/build/dex/integral/context.d.ts +40 -0
  65. package/build/dex/integral/context.js +158 -0
  66. package/build/dex/integral/context.js.map +1 -0
  67. package/build/dex/integral/helpers.d.ts +17 -0
  68. package/build/dex/integral/helpers.js +157 -0
  69. package/build/dex/integral/helpers.js.map +1 -0
  70. package/build/dex/integral/integral-factory.d.ts +24 -0
  71. package/build/dex/integral/integral-factory.js +95 -0
  72. package/build/dex/integral/integral-factory.js.map +1 -0
  73. package/build/dex/integral/integral-pool.d.ts +50 -0
  74. package/build/dex/integral/integral-pool.js +149 -0
  75. package/build/dex/integral/integral-pool.js.map +1 -0
  76. package/build/dex/integral/integral-pricing.d.ts +18 -0
  77. package/build/dex/integral/integral-pricing.js +114 -0
  78. package/build/dex/integral/integral-pricing.js.map +1 -0
  79. package/build/dex/integral/integral-relayer.d.ts +42 -0
  80. package/build/dex/integral/integral-relayer.js +192 -0
  81. package/build/dex/integral/integral-relayer.js.map +1 -0
  82. package/build/dex/integral/integral-token.d.ts +27 -0
  83. package/build/dex/integral/integral-token.js +59 -0
  84. package/build/dex/integral/integral-token.js.map +1 -0
  85. package/build/dex/{inception/inception-native.d.ts → integral/integral.d.ts} +19 -21
  86. package/build/dex/integral/integral.js +377 -0
  87. package/build/dex/integral/integral.js.map +1 -0
  88. package/build/dex/integral/types.d.ts +84 -0
  89. package/build/dex/integral/types.js +9 -0
  90. package/build/dex/integral/types.js.map +1 -0
  91. package/build/dex/integral/utils-e2e.d.ts +9 -0
  92. package/build/dex/integral/utils-e2e.js +131 -0
  93. package/build/dex/integral/utils-e2e.js.map +1 -0
  94. package/build/dex/integral/utils.d.ts +17 -0
  95. package/build/dex/integral/utils.js +94 -0
  96. package/build/dex/integral/utils.js.map +1 -0
  97. package/build/dex/lido.d.ts +19 -0
  98. package/build/dex/lido.js +42 -0
  99. package/build/dex/lido.js.map +1 -0
  100. package/build/dex/onebit.d.ts +25 -0
  101. package/build/dex/onebit.js +42 -0
  102. package/build/dex/onebit.js.map +1 -0
  103. package/build/dex/oswap/oswap.js +4 -1
  104. package/build/dex/oswap/oswap.js.map +1 -1
  105. package/build/dex/platypus/platypus.d.ts +1 -2
  106. package/build/dex/platypus/platypus.js +0 -31
  107. package/build/dex/platypus/platypus.js.map +1 -1
  108. package/build/dex/sdai/config.d.ts +11 -0
  109. package/build/dex/sdai/config.js +21 -0
  110. package/build/dex/sdai/config.js.map +1 -0
  111. package/build/dex/sdai/constants.d.ts +2 -0
  112. package/build/dex/sdai/constants.js +6 -0
  113. package/build/dex/sdai/constants.js.map +1 -0
  114. package/build/dex/sdai/scripts/validate-state.d.ts +1 -0
  115. package/build/dex/sdai/scripts/validate-state.js +102 -0
  116. package/build/dex/sdai/scripts/validate-state.js.map +1 -0
  117. package/build/dex/sdai/sdai-pool.d.ts +16 -0
  118. package/build/dex/sdai/sdai-pool.js +85 -0
  119. package/build/dex/sdai/sdai-pool.js.map +1 -0
  120. package/build/dex/sdai/sdai.d.ts +51 -0
  121. package/build/dex/sdai/sdai.js +172 -0
  122. package/build/dex/sdai/sdai.js.map +1 -0
  123. package/build/dex/sdai/types.d.ts +21 -0
  124. package/build/dex/sdai/types.js +11 -0
  125. package/build/dex/sdai/types.js.map +1 -0
  126. package/build/dex/sdai/utils.d.ts +4 -0
  127. package/build/dex/sdai/utils.js +39 -0
  128. package/build/dex/sdai/utils.js.map +1 -0
  129. package/build/dex/smoothy.d.ts +26 -0
  130. package/build/dex/smoothy.js +48 -0
  131. package/build/dex/smoothy.js.map +1 -0
  132. package/build/dex/stable-pool.d.ts +28 -0
  133. package/build/dex/stable-pool.js +62 -0
  134. package/build/dex/stable-pool.js.map +1 -0
  135. package/build/dex/swaap-v1/swaap-v1.d.ts +1 -2
  136. package/build/dex/swaap-v1/swaap-v1.js +0 -10
  137. package/build/dex/swaap-v1/swaap-v1.js.map +1 -1
  138. package/build/dex/trader-joe-v2.1.d.ts +43 -0
  139. package/build/dex/trader-joe-v2.1.js +79 -0
  140. package/build/dex/trader-joe-v2.1.js.map +1 -0
  141. package/build/executor/Executor01BytecodeBuilder.js +4 -5
  142. package/build/executor/Executor01BytecodeBuilder.js.map +1 -1
  143. package/build/executor/Executor02BytecodeBuilder.js +2 -3
  144. package/build/executor/Executor02BytecodeBuilder.js.map +1 -1
  145. package/build/executor/Executor03BytecodeBuilder.js +24 -14
  146. package/build/executor/Executor03BytecodeBuilder.js.map +1 -1
  147. package/build/executor/compressor/Compressor.d.ts +23 -0
  148. package/build/executor/compressor/Compressor.js +144 -0
  149. package/build/executor/compressor/Compressor.js.map +1 -0
  150. package/build/executor/compressor/compress.d.ts +17 -0
  151. package/build/executor/compressor/compress.js +187 -0
  152. package/build/executor/compressor/compress.js.map +1 -0
  153. package/build/executor/compressor/compress_functions/addressSubstitution.d.ts +6 -0
  154. package/build/executor/compressor/compress_functions/addressSubstitution.js +29 -0
  155. package/build/executor/compressor/compress_functions/addressSubstitution.js.map +1 -0
  156. package/build/executor/compressor/compress_functions/addressSubstitutionFromObject.d.ts +10 -0
  157. package/build/executor/compressor/compress_functions/addressSubstitutionFromObject.js +40 -0
  158. package/build/executor/compressor/compress_functions/addressSubstitutionFromObject.js.map +1 -0
  159. package/build/executor/compressor/compress_functions/byteSubstitution.d.ts +11 -0
  160. package/build/executor/compressor/compress_functions/byteSubstitution.js +64 -0
  161. package/build/executor/compressor/compress_functions/byteSubstitution.js.map +1 -0
  162. package/build/executor/compressor/compress_functions/ffSubstitution.d.ts +7 -0
  163. package/build/executor/compressor/compress_functions/ffSubstitution.js +54 -0
  164. package/build/executor/compressor/compress_functions/ffSubstitution.js.map +1 -0
  165. package/build/executor/compressor/compress_functions/findLongestAndSubstitute.d.ts +8 -0
  166. package/build/executor/compressor/compress_functions/findLongestAndSubstitute.js +67 -0
  167. package/build/executor/compressor/compress_functions/findLongestAndSubstitute.js.map +1 -0
  168. package/build/executor/compressor/compress_functions/findLongestAndSubstitute_old.d.ts +8 -0
  169. package/build/executor/compressor/compress_functions/findLongestAndSubstitute_old.js +61 -0
  170. package/build/executor/compressor/compress_functions/findLongestAndSubstitute_old.js.map +1 -0
  171. package/build/executor/compressor/compress_functions/reverseAddressSubstitution.d.ts +6 -0
  172. package/build/executor/compressor/compress_functions/reverseAddressSubstitution.js +37 -0
  173. package/build/executor/compressor/compress_functions/reverseAddressSubstitution.js.map +1 -0
  174. package/build/executor/compressor/compress_functions/searchUnusedBytes.d.ts +9 -0
  175. package/build/executor/compressor/compress_functions/searchUnusedBytes.js +33 -0
  176. package/build/executor/compressor/compress_functions/searchUnusedBytes.js.map +1 -0
  177. package/build/executor/compressor/fetchSaved.d.ts +0 -0
  178. package/build/executor/compressor/fetchSaved.js +17 -0
  179. package/build/executor/compressor/fetchSaved.js.map +1 -0
  180. package/build/executor/compressor/utils/computeCostL2.d.ts +2 -0
  181. package/build/executor/compressor/utils/computeCostL2.js +14 -0
  182. package/build/executor/compressor/utils/computeCostL2.js.map +1 -0
  183. package/build/executor/compressor/utils/findLongestDuplicatedString.d.ts +2 -0
  184. package/build/executor/compressor/utils/findLongestDuplicatedString.js +30 -0
  185. package/build/executor/compressor/utils/findLongestDuplicatedString.js.map +1 -0
  186. package/build/executor/compressor/utils/getAllIndexes.d.ts +2 -0
  187. package/build/executor/compressor/utils/getAllIndexes.js +12 -0
  188. package/build/executor/compressor/utils/getAllIndexes.js.map +1 -0
  189. package/build/executor/compressor/utils/getByteForAddress.d.ts +2 -0
  190. package/build/executor/compressor/utils/getByteForAddress.js +14 -0
  191. package/build/executor/compressor/utils/getByteForAddress.js.map +1 -0
  192. package/build/executor/compressor/utils/intTo2Bytes.d.ts +2 -0
  193. package/build/executor/compressor/utils/intTo2Bytes.js +14 -0
  194. package/build/executor/compressor/utils/intTo2Bytes.js.map +1 -0
  195. package/build/executor/compressor/utils/intTo3Bytes.d.ts +2 -0
  196. package/build/executor/compressor/utils/intTo3Bytes.js +18 -0
  197. package/build/executor/compressor/utils/intTo3Bytes.js.map +1 -0
  198. package/build/executor/compressor/utils/intToByte.d.ts +2 -0
  199. package/build/executor/compressor/utils/intToByte.js +10 -0
  200. package/build/executor/compressor/utils/intToByte.js.map +1 -0
  201. package/build/generic-swap-transaction-builder.d.ts +1 -1
  202. package/build/generic-swap-transaction-builder.js +10 -10
  203. package/build/generic-swap-transaction-builder.js.map +1 -1
  204. package/package.json +1 -1
  205. package/src/abi/concentrator/arUSD.json +568 -0
  206. package/src/abi/concentrator/arUSD5115.json +1746 -0
  207. package/src/abi/fx-protocol/FxMarket.json +1284 -0
  208. package/src/abi/fx-protocol/FxUSD.json +1227 -0
  209. package/src/abi/fx-protocol/weETHOralce.json +676 -0
  210. package/src/dex/concentrator-arusd/concentrator-arusd-e2e.test.ts +92 -0
  211. package/src/dex/concentrator-arusd/concentrator-arusd-event.ts +100 -0
  212. package/src/dex/concentrator-arusd/concentrator-arusd-integration.test.ts +104 -0
  213. package/src/dex/concentrator-arusd/concentrator-arusd.ts +269 -0
  214. package/src/dex/concentrator-arusd/concetrator-arusd-events.test.ts +97 -0
  215. package/src/dex/concentrator-arusd/config.ts +13 -0
  216. package/src/dex/concentrator-arusd/types.ts +16 -0
  217. package/src/dex/concentrator-arusd/utils.ts +36 -0
  218. package/src/dex/fx-protocol-rusd/config.ts +14 -0
  219. package/src/dex/fx-protocol-rusd/fx-protocol-e2e.test.ts +96 -0
  220. package/src/dex/fx-protocol-rusd/fx-protocol-events.test.ts +101 -0
  221. package/src/dex/fx-protocol-rusd/fx-protocol-integration.test.ts +104 -0
  222. package/src/dex/fx-protocol-rusd/fx-protocol-rusd-event.ts +112 -0
  223. package/src/dex/fx-protocol-rusd/fx-protocol-rusd.ts +282 -0
  224. package/src/dex/fx-protocol-rusd/types.ts +16 -0
  225. package/src/dex/fx-protocol-rusd/utils.ts +47 -0
  226. package/src/dex/index.ts +4 -0
  227. package/src/dex/wsteth/wsteth-integration.test.ts +0 -1
  228. package/src/executor/Executor01BytecodeBuilder.ts +4 -8
  229. package/src/executor/Executor02BytecodeBuilder.ts +2 -7
  230. package/src/executor/Executor03BytecodeBuilder.ts +34 -19
  231. package/src/generic-swap-transaction-builder.ts +3 -5
  232. package/tests/constants-e2e.ts +10 -0
  233. package/build/abi/inception/inception-ineth.json +0 -609
  234. package/build/abi/inception/inception-ratio-feed.json +0 -93
  235. package/build/abi/inception/inception-vault.json +0 -991
  236. package/build/abi/infusion/InfusionFactory.json +0 -147
  237. package/build/abi/infusion/InfusionPair.json +0 -658
  238. package/build/abi/infusion/InfusionRouter.json +0 -442
  239. package/build/dex/idle-dao/idle-dao-pool.d.ts +0 -56
  240. package/build/dex/idle-dao/idle-dao-pool.js +0 -176
  241. package/build/dex/idle-dao/idle-dao-pool.js.map +0 -1
  242. package/build/dex/idle-dao/idle-dao-pooling-pool.d.ts +0 -16
  243. package/build/dex/idle-dao/idle-dao-pooling-pool.js +0 -57
  244. package/build/dex/idle-dao/idle-dao-pooling-pool.js.map +0 -1
  245. package/build/dex/idle-dao/scripts.d.ts +0 -9
  246. package/build/dex/idle-dao/scripts.js +0 -552
  247. package/build/dex/idle-dao/scripts.js.map +0 -1
  248. package/build/dex/inception/config.d.ts +0 -5
  249. package/build/dex/inception/config.js +0 -112
  250. package/build/dex/inception/config.js.map +0 -1
  251. package/build/dex/inception/inception-event-pool.d.ts +0 -23
  252. package/build/dex/inception/inception-event-pool.js +0 -34
  253. package/build/dex/inception/inception-event-pool.js.map +0 -1
  254. package/build/dex/inception/inception-native.js +0 -131
  255. package/build/dex/inception/inception-native.js.map +0 -1
  256. package/build/dex/inception/inception-pool.d.ts +0 -18
  257. package/build/dex/inception/inception-pool.js +0 -32
  258. package/build/dex/inception/inception-pool.js.map +0 -1
  259. package/build/dex/inception/inception-price-feed.d.ts +0 -19
  260. package/build/dex/inception/inception-price-feed.js +0 -51
  261. package/build/dex/inception/inception-price-feed.js.map +0 -1
  262. package/build/dex/inception/inception.d.ts +0 -44
  263. package/build/dex/inception/inception.js +0 -162
  264. package/build/dex/inception/inception.js.map +0 -1
  265. package/build/dex/inception/tokens.d.ts +0 -9
  266. package/build/dex/inception/tokens.js +0 -28
  267. package/build/dex/inception/tokens.js.map +0 -1
  268. package/build/dex/inception/types.d.ts +0 -22
  269. package/build/dex/inception/types.js +0 -3
  270. package/build/dex/inception/types.js.map +0 -1
  271. package/build/dex/inception/utils.d.ts +0 -7
  272. package/build/dex/inception/utils.js +0 -58
  273. package/build/dex/inception/utils.js.map +0 -1
  274. package/build/dex/infusion/config.js +0 -25
  275. package/build/dex/infusion/config.js.map +0 -1
  276. package/build/dex/infusion/infusion-stable-pool.d.ts +0 -4
  277. package/build/dex/infusion/infusion-stable-pool.js +0 -74
  278. package/build/dex/infusion/infusion-stable-pool.js.map +0 -1
  279. package/build/dex/infusion/infusion.d.ts +0 -54
  280. package/build/dex/infusion/infusion.js +0 -532
  281. package/build/dex/infusion/infusion.js.map +0 -1
  282. package/build/dex/infusion/types.d.ts +0 -47
  283. package/build/dex/infusion/types.js +0 -3
  284. package/build/dex/infusion/types.js.map +0 -1
  285. package/build/dex/infusion/utils/isStablePair.d.ts +0 -2
  286. package/build/dex/infusion/utils/isStablePair.js +0 -18
  287. package/build/dex/infusion/utils/isStablePair.js.map +0 -1
@@ -0,0 +1,676 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ { "internalType": "uint256", "name": "blockTimestamp", "type": "uint256" }
5
+ ],
6
+ "name": "BlockTimestampIsTooBig",
7
+ "type": "error"
8
+ },
9
+ { "inputs": [], "name": "CalldataMustHaveValidPayload", "type": "error" },
10
+ { "inputs": [], "name": "CalldataOverOrUnderFlow", "type": "error" },
11
+ { "inputs": [], "name": "CanNotPickMedianOfEmptyArray", "type": "error" },
12
+ { "inputs": [], "name": "CannotUpdateMoreThanOneDataFeed", "type": "error" },
13
+ {
14
+ "inputs": [
15
+ { "internalType": "bytes32", "name": "dataFeedId", "type": "bytes32" }
16
+ ],
17
+ "name": "DataFeedIdNotFound",
18
+ "type": "error"
19
+ },
20
+ {
21
+ "inputs": [
22
+ { "internalType": "bytes32", "name": "dataFeedId", "type": "bytes32" }
23
+ ],
24
+ "name": "DataFeedValueCannotBeZero",
25
+ "type": "error"
26
+ },
27
+ {
28
+ "inputs": [
29
+ {
30
+ "internalType": "uint256",
31
+ "name": "expectedDataTimestamp",
32
+ "type": "uint256"
33
+ },
34
+ {
35
+ "internalType": "uint256",
36
+ "name": "dataPackageTimestamp",
37
+ "type": "uint256"
38
+ }
39
+ ],
40
+ "name": "DataPackageTimestampMismatch",
41
+ "type": "error"
42
+ },
43
+ {
44
+ "inputs": [],
45
+ "name": "DataPackageTimestampMustNotBeZero",
46
+ "type": "error"
47
+ },
48
+ { "inputs": [], "name": "DataPackageTimestampsMustBeEqual", "type": "error" },
49
+ {
50
+ "inputs": [
51
+ { "internalType": "uint256", "name": "dataTimestamp", "type": "uint256" }
52
+ ],
53
+ "name": "DataTimestampIsTooBig",
54
+ "type": "error"
55
+ },
56
+ {
57
+ "inputs": [
58
+ {
59
+ "internalType": "uint256",
60
+ "name": "receivedDataTimestampMilliseconds",
61
+ "type": "uint256"
62
+ },
63
+ {
64
+ "internalType": "uint256",
65
+ "name": "lastDataTimestampMilliseconds",
66
+ "type": "uint256"
67
+ }
68
+ ],
69
+ "name": "DataTimestampShouldBeNewerThanBefore",
70
+ "type": "error"
71
+ },
72
+ {
73
+ "inputs": [],
74
+ "name": "EachSignerMustProvideTheSameValue",
75
+ "type": "error"
76
+ },
77
+ { "inputs": [], "name": "EmptyCalldataPointersArr", "type": "error" },
78
+ { "inputs": [], "name": "GetDataServiceIdNotImplemented", "type": "error" },
79
+ { "inputs": [], "name": "IncorrectUnsignedMetadataSize", "type": "error" },
80
+ {
81
+ "inputs": [
82
+ {
83
+ "internalType": "uint256",
84
+ "name": "receivedSignersCount",
85
+ "type": "uint256"
86
+ },
87
+ {
88
+ "internalType": "uint256",
89
+ "name": "requiredSignersCount",
90
+ "type": "uint256"
91
+ }
92
+ ],
93
+ "name": "InsufficientNumberOfUniqueSigners",
94
+ "type": "error"
95
+ },
96
+ { "inputs": [], "name": "InvalidCalldataPointer", "type": "error" },
97
+ {
98
+ "inputs": [
99
+ {
100
+ "internalType": "uint256",
101
+ "name": "currentBlockTimestamp",
102
+ "type": "uint256"
103
+ },
104
+ {
105
+ "internalType": "uint256",
106
+ "name": "lastUpdateTimestamp",
107
+ "type": "uint256"
108
+ },
109
+ {
110
+ "internalType": "uint256",
111
+ "name": "minIntervalBetweenUpdates",
112
+ "type": "uint256"
113
+ }
114
+ ],
115
+ "name": "MinIntervalBetweenUpdatesHasNotPassedYet",
116
+ "type": "error"
117
+ },
118
+ {
119
+ "inputs": [],
120
+ "name": "RedstonePayloadMustHaveAtLeastOneDataPackage",
121
+ "type": "error"
122
+ },
123
+ {
124
+ "inputs": [
125
+ { "internalType": "uint256", "name": "roundId", "type": "uint256" }
126
+ ],
127
+ "name": "RoundNotFound",
128
+ "type": "error"
129
+ },
130
+ {
131
+ "inputs": [
132
+ { "internalType": "address", "name": "receivedSigner", "type": "address" }
133
+ ],
134
+ "name": "SignerNotAuthorised",
135
+ "type": "error"
136
+ },
137
+ {
138
+ "inputs": [
139
+ {
140
+ "internalType": "uint256",
141
+ "name": "receivedTimestampSeconds",
142
+ "type": "uint256"
143
+ },
144
+ { "internalType": "uint256", "name": "blockTimestamp", "type": "uint256" }
145
+ ],
146
+ "name": "TimestampFromTooLongFuture",
147
+ "type": "error"
148
+ },
149
+ {
150
+ "inputs": [
151
+ {
152
+ "internalType": "uint256",
153
+ "name": "receivedTimestampSeconds",
154
+ "type": "uint256"
155
+ },
156
+ { "internalType": "uint256", "name": "blockTimestamp", "type": "uint256" }
157
+ ],
158
+ "name": "TimestampIsTooOld",
159
+ "type": "error"
160
+ },
161
+ {
162
+ "inputs": [
163
+ { "internalType": "uint256", "name": "value", "type": "uint256" }
164
+ ],
165
+ "name": "UnsafeUint256ToUint80Conversion",
166
+ "type": "error"
167
+ },
168
+ {
169
+ "inputs": [
170
+ { "internalType": "uint256", "name": "value", "type": "uint256" }
171
+ ],
172
+ "name": "UnsafeUintToIntConversion",
173
+ "type": "error"
174
+ },
175
+ {
176
+ "inputs": [
177
+ { "internalType": "address", "name": "signer", "type": "address" }
178
+ ],
179
+ "name": "UpdaterNotAuthorised",
180
+ "type": "error"
181
+ },
182
+ {
183
+ "anonymous": false,
184
+ "inputs": [
185
+ {
186
+ "indexed": true,
187
+ "internalType": "int256",
188
+ "name": "current",
189
+ "type": "int256"
190
+ },
191
+ {
192
+ "indexed": true,
193
+ "internalType": "uint256",
194
+ "name": "roundId",
195
+ "type": "uint256"
196
+ },
197
+ {
198
+ "indexed": false,
199
+ "internalType": "uint256",
200
+ "name": "updatedAt",
201
+ "type": "uint256"
202
+ }
203
+ ],
204
+ "name": "AnswerUpdated",
205
+ "type": "event"
206
+ },
207
+ {
208
+ "anonymous": false,
209
+ "inputs": [
210
+ {
211
+ "indexed": false,
212
+ "internalType": "uint8",
213
+ "name": "version",
214
+ "type": "uint8"
215
+ }
216
+ ],
217
+ "name": "Initialized",
218
+ "type": "event"
219
+ },
220
+ {
221
+ "inputs": [
222
+ { "internalType": "uint256[]", "name": "values", "type": "uint256[]" }
223
+ ],
224
+ "name": "aggregateValues",
225
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
226
+ "stateMutability": "view",
227
+ "type": "function"
228
+ },
229
+ {
230
+ "inputs": [],
231
+ "name": "aggregator",
232
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
233
+ "stateMutability": "view",
234
+ "type": "function"
235
+ },
236
+ {
237
+ "inputs": [],
238
+ "name": "decimals",
239
+ "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }],
240
+ "stateMutability": "pure",
241
+ "type": "function"
242
+ },
243
+ {
244
+ "inputs": [],
245
+ "name": "description",
246
+ "outputs": [{ "internalType": "string", "name": "", "type": "string" }],
247
+ "stateMutability": "view",
248
+ "type": "function"
249
+ },
250
+ {
251
+ "inputs": [],
252
+ "name": "extractTimestampsAndAssertAllAreEqual",
253
+ "outputs": [
254
+ {
255
+ "internalType": "uint256",
256
+ "name": "extractedTimestamp",
257
+ "type": "uint256"
258
+ }
259
+ ],
260
+ "stateMutability": "pure",
261
+ "type": "function"
262
+ },
263
+ {
264
+ "inputs": [],
265
+ "name": "getAllowedTimestampDiffsInSeconds",
266
+ "outputs": [
267
+ {
268
+ "internalType": "uint256",
269
+ "name": "maxDataAheadSeconds",
270
+ "type": "uint256"
271
+ },
272
+ {
273
+ "internalType": "uint256",
274
+ "name": "maxDataDelaySeconds",
275
+ "type": "uint256"
276
+ }
277
+ ],
278
+ "stateMutability": "view",
279
+ "type": "function"
280
+ },
281
+ {
282
+ "inputs": [
283
+ { "internalType": "address", "name": "signerAddress", "type": "address" }
284
+ ],
285
+ "name": "getAuthorisedSignerIndex",
286
+ "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }],
287
+ "stateMutability": "view",
288
+ "type": "function"
289
+ },
290
+ {
291
+ "inputs": [],
292
+ "name": "getBlockTimestamp",
293
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
294
+ "stateMutability": "view",
295
+ "type": "function"
296
+ },
297
+ {
298
+ "inputs": [],
299
+ "name": "getBlockTimestampFromLatestUpdate",
300
+ "outputs": [
301
+ { "internalType": "uint256", "name": "blockTimestamp", "type": "uint256" }
302
+ ],
303
+ "stateMutability": "view",
304
+ "type": "function"
305
+ },
306
+ {
307
+ "inputs": [],
308
+ "name": "getDataFeedId",
309
+ "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
310
+ "stateMutability": "pure",
311
+ "type": "function"
312
+ },
313
+ {
314
+ "inputs": [],
315
+ "name": "getDataFeedIds",
316
+ "outputs": [
317
+ {
318
+ "internalType": "bytes32[]",
319
+ "name": "dataFeedIds",
320
+ "type": "bytes32[]"
321
+ }
322
+ ],
323
+ "stateMutability": "view",
324
+ "type": "function"
325
+ },
326
+ {
327
+ "inputs": [
328
+ { "internalType": "bytes32", "name": "dataFeedId", "type": "bytes32" }
329
+ ],
330
+ "name": "getDataFeedIndex",
331
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
332
+ "stateMutability": "view",
333
+ "type": "function"
334
+ },
335
+ {
336
+ "inputs": [],
337
+ "name": "getDataServiceId",
338
+ "outputs": [{ "internalType": "string", "name": "", "type": "string" }],
339
+ "stateMutability": "view",
340
+ "type": "function"
341
+ },
342
+ {
343
+ "inputs": [],
344
+ "name": "getDataTimestampFromLatestUpdate",
345
+ "outputs": [
346
+ {
347
+ "internalType": "uint256",
348
+ "name": "lastDataTimestamp",
349
+ "type": "uint256"
350
+ }
351
+ ],
352
+ "stateMutability": "view",
353
+ "type": "function"
354
+ },
355
+ {
356
+ "inputs": [],
357
+ "name": "getLatestRoundId",
358
+ "outputs": [
359
+ { "internalType": "uint256", "name": "latestRoundId", "type": "uint256" }
360
+ ],
361
+ "stateMutability": "view",
362
+ "type": "function"
363
+ },
364
+ {
365
+ "inputs": [],
366
+ "name": "getLatestRoundParams",
367
+ "outputs": [
368
+ { "internalType": "uint256", "name": "latestRoundId", "type": "uint256" },
369
+ {
370
+ "internalType": "uint128",
371
+ "name": "latestRoundDataTimestamp",
372
+ "type": "uint128"
373
+ },
374
+ {
375
+ "internalType": "uint128",
376
+ "name": "latestRoundBlockTimestamp",
377
+ "type": "uint128"
378
+ }
379
+ ],
380
+ "stateMutability": "view",
381
+ "type": "function"
382
+ },
383
+ {
384
+ "inputs": [],
385
+ "name": "getMinIntervalBetweenUpdates",
386
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
387
+ "stateMutability": "view",
388
+ "type": "function"
389
+ },
390
+ {
391
+ "inputs": [
392
+ { "internalType": "uint256", "name": "roundId", "type": "uint256" }
393
+ ],
394
+ "name": "getPackedTimestampsForRound",
395
+ "outputs": [
396
+ {
397
+ "internalType": "uint256",
398
+ "name": "roundTimestamps",
399
+ "type": "uint256"
400
+ }
401
+ ],
402
+ "stateMutability": "view",
403
+ "type": "function"
404
+ },
405
+ {
406
+ "inputs": [],
407
+ "name": "getPackedTimestampsFromLatestUpdate",
408
+ "outputs": [
409
+ {
410
+ "internalType": "uint256",
411
+ "name": "packedTimestamps",
412
+ "type": "uint256"
413
+ }
414
+ ],
415
+ "stateMutability": "view",
416
+ "type": "function"
417
+ },
418
+ {
419
+ "inputs": [],
420
+ "name": "getPriceFeedAdapter",
421
+ "outputs": [
422
+ {
423
+ "internalType": "contract IRedstoneAdapter",
424
+ "name": "",
425
+ "type": "address"
426
+ }
427
+ ],
428
+ "stateMutability": "view",
429
+ "type": "function"
430
+ },
431
+ {
432
+ "inputs": [],
433
+ "name": "getPriceFeedAdapterWithRounds",
434
+ "outputs": [
435
+ {
436
+ "internalType": "contract PriceFeedsAdapterWithRounds",
437
+ "name": "",
438
+ "type": "address"
439
+ }
440
+ ],
441
+ "stateMutability": "view",
442
+ "type": "function"
443
+ },
444
+ {
445
+ "inputs": [
446
+ { "internalType": "uint80", "name": "requestedRoundId", "type": "uint80" }
447
+ ],
448
+ "name": "getRoundData",
449
+ "outputs": [
450
+ { "internalType": "uint80", "name": "roundId", "type": "uint80" },
451
+ { "internalType": "int256", "name": "answer", "type": "int256" },
452
+ { "internalType": "uint256", "name": "startedAt", "type": "uint256" },
453
+ { "internalType": "uint256", "name": "updatedAt", "type": "uint256" },
454
+ { "internalType": "uint80", "name": "answeredInRound", "type": "uint80" }
455
+ ],
456
+ "stateMutability": "view",
457
+ "type": "function"
458
+ },
459
+ {
460
+ "inputs": [
461
+ { "internalType": "bytes32", "name": "dataFeedId", "type": "bytes32" },
462
+ { "internalType": "uint256", "name": "roundId", "type": "uint256" }
463
+ ],
464
+ "name": "getRoundDataFromAdapter",
465
+ "outputs": [
466
+ { "internalType": "uint256", "name": "dataFeedValue", "type": "uint256" },
467
+ {
468
+ "internalType": "uint128",
469
+ "name": "roundDataTimestamp",
470
+ "type": "uint128"
471
+ },
472
+ {
473
+ "internalType": "uint128",
474
+ "name": "roundBlockTimestamp",
475
+ "type": "uint128"
476
+ }
477
+ ],
478
+ "stateMutability": "view",
479
+ "type": "function"
480
+ },
481
+ {
482
+ "inputs": [],
483
+ "name": "getTimestampsFromLatestUpdate",
484
+ "outputs": [
485
+ { "internalType": "uint128", "name": "dataTimestamp", "type": "uint128" },
486
+ { "internalType": "uint128", "name": "blockTimestamp", "type": "uint128" }
487
+ ],
488
+ "stateMutability": "view",
489
+ "type": "function"
490
+ },
491
+ {
492
+ "inputs": [],
493
+ "name": "getUniqueSignersThreshold",
494
+ "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }],
495
+ "stateMutability": "view",
496
+ "type": "function"
497
+ },
498
+ {
499
+ "inputs": [
500
+ { "internalType": "bytes32", "name": "dataFeedId", "type": "bytes32" }
501
+ ],
502
+ "name": "getValueForDataFeed",
503
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
504
+ "stateMutability": "view",
505
+ "type": "function"
506
+ },
507
+ {
508
+ "inputs": [
509
+ { "internalType": "bytes32", "name": "dataFeedId", "type": "bytes32" },
510
+ { "internalType": "uint256", "name": "roundId", "type": "uint256" }
511
+ ],
512
+ "name": "getValueForDataFeedAndRound",
513
+ "outputs": [
514
+ { "internalType": "uint256", "name": "dataFeedValue", "type": "uint256" }
515
+ ],
516
+ "stateMutability": "view",
517
+ "type": "function"
518
+ },
519
+ {
520
+ "inputs": [
521
+ { "internalType": "bytes32", "name": "dataFeedId", "type": "bytes32" }
522
+ ],
523
+ "name": "getValueForDataFeedUnsafe",
524
+ "outputs": [
525
+ { "internalType": "uint256", "name": "dataFeedValue", "type": "uint256" }
526
+ ],
527
+ "stateMutability": "view",
528
+ "type": "function"
529
+ },
530
+ {
531
+ "inputs": [
532
+ {
533
+ "internalType": "bytes32[]",
534
+ "name": "dataFeedIds",
535
+ "type": "bytes32[]"
536
+ }
537
+ ],
538
+ "name": "getValuesForDataFeeds",
539
+ "outputs": [
540
+ { "internalType": "uint256[]", "name": "", "type": "uint256[]" }
541
+ ],
542
+ "stateMutability": "view",
543
+ "type": "function"
544
+ },
545
+ {
546
+ "inputs": [
547
+ {
548
+ "internalType": "bytes32[]",
549
+ "name": "requestedDataFeedIds",
550
+ "type": "bytes32[]"
551
+ }
552
+ ],
553
+ "name": "getValuesForDataFeedsUnsafe",
554
+ "outputs": [
555
+ { "internalType": "uint256[]", "name": "values", "type": "uint256[]" }
556
+ ],
557
+ "stateMutability": "view",
558
+ "type": "function"
559
+ },
560
+ {
561
+ "inputs": [],
562
+ "name": "initialize",
563
+ "outputs": [],
564
+ "stateMutability": "nonpayable",
565
+ "type": "function"
566
+ },
567
+ {
568
+ "inputs": [],
569
+ "name": "latestAnswer",
570
+ "outputs": [{ "internalType": "int256", "name": "", "type": "int256" }],
571
+ "stateMutability": "view",
572
+ "type": "function"
573
+ },
574
+ {
575
+ "inputs": [],
576
+ "name": "latestRound",
577
+ "outputs": [{ "internalType": "uint80", "name": "", "type": "uint80" }],
578
+ "stateMutability": "view",
579
+ "type": "function"
580
+ },
581
+ {
582
+ "inputs": [],
583
+ "name": "latestRoundData",
584
+ "outputs": [
585
+ { "internalType": "uint80", "name": "roundId", "type": "uint80" },
586
+ { "internalType": "int256", "name": "answer", "type": "int256" },
587
+ { "internalType": "uint256", "name": "startedAt", "type": "uint256" },
588
+ { "internalType": "uint256", "name": "updatedAt", "type": "uint256" },
589
+ { "internalType": "uint80", "name": "answeredInRound", "type": "uint80" }
590
+ ],
591
+ "stateMutability": "view",
592
+ "type": "function"
593
+ },
594
+ {
595
+ "inputs": [
596
+ { "internalType": "address", "name": "updater", "type": "address" }
597
+ ],
598
+ "name": "requireAuthorisedUpdater",
599
+ "outputs": [],
600
+ "stateMutability": "view",
601
+ "type": "function"
602
+ },
603
+ {
604
+ "inputs": [
605
+ {
606
+ "internalType": "uint256",
607
+ "name": "dataPackagesTimestamp",
608
+ "type": "uint256"
609
+ }
610
+ ],
611
+ "name": "updateDataFeedsValues",
612
+ "outputs": [],
613
+ "stateMutability": "nonpayable",
614
+ "type": "function"
615
+ },
616
+ {
617
+ "inputs": [
618
+ { "internalType": "bytes32", "name": "dataFeedId", "type": "bytes32" },
619
+ {
620
+ "internalType": "uint256",
621
+ "name": "valueForDataFeed",
622
+ "type": "uint256"
623
+ }
624
+ ],
625
+ "name": "validateDataFeedValue",
626
+ "outputs": [],
627
+ "stateMutability": "pure",
628
+ "type": "function"
629
+ },
630
+ {
631
+ "inputs": [
632
+ {
633
+ "internalType": "uint256",
634
+ "name": "dataPackagesTimestamp",
635
+ "type": "uint256"
636
+ }
637
+ ],
638
+ "name": "validateDataPackagesTimestampOnce",
639
+ "outputs": [],
640
+ "stateMutability": "view",
641
+ "type": "function"
642
+ },
643
+ {
644
+ "inputs": [
645
+ {
646
+ "internalType": "uint256",
647
+ "name": "dataPackagesTimestamp",
648
+ "type": "uint256"
649
+ }
650
+ ],
651
+ "name": "validateProposedDataPackagesTimestamp",
652
+ "outputs": [],
653
+ "stateMutability": "view",
654
+ "type": "function"
655
+ },
656
+ {
657
+ "inputs": [
658
+ {
659
+ "internalType": "uint256",
660
+ "name": "receivedTimestampMilliseconds",
661
+ "type": "uint256"
662
+ }
663
+ ],
664
+ "name": "validateTimestamp",
665
+ "outputs": [],
666
+ "stateMutability": "view",
667
+ "type": "function"
668
+ },
669
+ {
670
+ "inputs": [],
671
+ "name": "version",
672
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
673
+ "stateMutability": "pure",
674
+ "type": "function"
675
+ }
676
+ ]