@paraswap/dex-lib 3.8.13-arusd-fxusd.2 → 3.8.13-infusion

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 (283) hide show
  1. package/build/abi/{integral/pool.json → inception/inception-ineth-pool.json} +558 -537
  2. package/build/abi/inception/inception-ineth.json +609 -0
  3. package/build/abi/inception/inception-ratio-feed.json +93 -0
  4. package/build/abi/inception/inception-vault.json +991 -0
  5. package/build/abi/infusion/InfusionFactory.json +147 -0
  6. package/build/abi/infusion/InfusionPair.json +658 -0
  7. package/build/abi/infusion/InfusionRouter.json +442 -0
  8. package/build/dex/aave-v1/aave-v1.d.ts +2 -1
  9. package/build/dex/aave-v1/aave-v1.js +22 -0
  10. package/build/dex/aave-v1/aave-v1.js.map +1 -1
  11. package/build/dex/concentrator-arusd/concentrator-arusd.d.ts +1 -4
  12. package/build/dex/concentrator-arusd/concentrator-arusd.js +34 -30
  13. package/build/dex/concentrator-arusd/concentrator-arusd.js.map +1 -1
  14. package/build/dex/concentrator-arusd/config.js +1 -1
  15. package/build/dex/concentrator-arusd/config.js.map +1 -1
  16. package/build/dex/concentrator-arusd/types.d.ts +2 -6
  17. package/build/dex/fx-protocol-rusd/config.d.ts +2 -1
  18. package/build/dex/fx-protocol-rusd/config.js +6 -3
  19. package/build/dex/fx-protocol-rusd/config.js.map +1 -1
  20. package/build/dex/fx-protocol-rusd/fx-protocol-rusd.d.ts +10 -10
  21. package/build/dex/fx-protocol-rusd/fx-protocol-rusd.js +66 -83
  22. package/build/dex/fx-protocol-rusd/fx-protocol-rusd.js.map +1 -1
  23. package/build/dex/fx-protocol-rusd/types.d.ts +2 -5
  24. package/build/dex/idle-dao/idle-dao-pool.d.ts +56 -0
  25. package/build/dex/idle-dao/idle-dao-pool.js +176 -0
  26. package/build/dex/idle-dao/idle-dao-pool.js.map +1 -0
  27. package/build/dex/idle-dao/idle-dao-pooling-pool.d.ts +16 -0
  28. package/build/dex/idle-dao/idle-dao-pooling-pool.js +57 -0
  29. package/build/dex/idle-dao/idle-dao-pooling-pool.js.map +1 -0
  30. package/build/dex/idle-dao/scripts.d.ts +9 -0
  31. package/build/dex/idle-dao/scripts.js +552 -0
  32. package/build/dex/idle-dao/scripts.js.map +1 -0
  33. package/build/dex/inception/config.d.ts +5 -0
  34. package/build/dex/inception/config.js +112 -0
  35. package/build/dex/inception/config.js.map +1 -0
  36. package/build/dex/inception/inception-event-pool.d.ts +23 -0
  37. package/build/dex/inception/inception-event-pool.js +34 -0
  38. package/build/dex/inception/inception-event-pool.js.map +1 -0
  39. package/build/dex/{integral/integral.d.ts → inception/inception-native.d.ts} +21 -19
  40. package/build/dex/inception/inception-native.js +131 -0
  41. package/build/dex/inception/inception-native.js.map +1 -0
  42. package/build/dex/inception/inception-pool.d.ts +18 -0
  43. package/build/dex/inception/inception-pool.js +32 -0
  44. package/build/dex/inception/inception-pool.js.map +1 -0
  45. package/build/dex/inception/inception-price-feed.d.ts +19 -0
  46. package/build/dex/inception/inception-price-feed.js +51 -0
  47. package/build/dex/inception/inception-price-feed.js.map +1 -0
  48. package/build/dex/inception/inception.d.ts +44 -0
  49. package/build/dex/inception/inception.js +162 -0
  50. package/build/dex/inception/inception.js.map +1 -0
  51. package/build/dex/inception/tokens.d.ts +9 -0
  52. package/build/dex/inception/tokens.js +28 -0
  53. package/build/dex/inception/tokens.js.map +1 -0
  54. package/build/dex/inception/types.d.ts +22 -0
  55. package/build/dex/inception/types.js +3 -0
  56. package/build/dex/inception/types.js.map +1 -0
  57. package/build/dex/inception/utils.d.ts +7 -0
  58. package/build/dex/inception/utils.js +58 -0
  59. package/build/dex/inception/utils.js.map +1 -0
  60. package/build/dex/index.js +2 -4
  61. package/build/dex/index.js.map +1 -1
  62. package/build/dex/{integral → infusion}/config.d.ts +1 -1
  63. package/build/dex/infusion/config.js +25 -0
  64. package/build/dex/infusion/config.js.map +1 -0
  65. package/build/dex/infusion/infusion-stable-pool.d.ts +4 -0
  66. package/build/dex/infusion/infusion-stable-pool.js +74 -0
  67. package/build/dex/infusion/infusion-stable-pool.js.map +1 -0
  68. package/build/dex/infusion/infusion.d.ts +54 -0
  69. package/build/dex/infusion/infusion.js +510 -0
  70. package/build/dex/infusion/infusion.js.map +1 -0
  71. package/build/dex/infusion/types.d.ts +47 -0
  72. package/build/dex/infusion/types.js +3 -0
  73. package/build/dex/infusion/types.js.map +1 -0
  74. package/build/dex/infusion/utils/isStablePair.d.ts +2 -0
  75. package/build/dex/infusion/utils/isStablePair.js +18 -0
  76. package/build/dex/infusion/utils/isStablePair.js.map +1 -0
  77. package/build/dex/oswap/oswap.js +1 -4
  78. package/build/dex/oswap/oswap.js.map +1 -1
  79. package/build/dex/platypus/platypus.d.ts +2 -1
  80. package/build/dex/platypus/platypus.js +31 -0
  81. package/build/dex/platypus/platypus.js.map +1 -1
  82. package/build/dex/swaap-v1/swaap-v1.d.ts +2 -1
  83. package/build/dex/swaap-v1/swaap-v1.js +10 -0
  84. package/build/dex/swaap-v1/swaap-v1.js.map +1 -1
  85. package/package.json +1 -1
  86. package/src/abi/infusion/InfusionFactory.json +147 -0
  87. package/src/abi/infusion/InfusionPair.json +658 -0
  88. package/src/abi/infusion/InfusionRouter.json +442 -0
  89. package/src/dex/index.ts +2 -4
  90. package/src/dex/infusion/config.ts +27 -0
  91. package/src/dex/infusion/infusion-e2e.test.ts +110 -0
  92. package/src/dex/infusion/infusion-integration.test.ts +232 -0
  93. package/src/dex/infusion/infusion-stable-pool.ts +91 -0
  94. package/src/dex/infusion/infusion.ts +749 -0
  95. package/src/dex/infusion/types.ts +60 -0
  96. package/src/dex/infusion/utils/isStablePair.ts +18 -0
  97. package/src/dex/wsteth/wsteth-integration.test.ts +1 -0
  98. package/tests/constants-e2e.ts +1 -11
  99. package/.vscode/launch.json +0 -16
  100. package/.vscode/settings.json +0 -3
  101. package/build/abi/Uncompressor.json +0 -250
  102. package/build/abi/concentrator/arUSD5115.json +0 -1746
  103. package/build/abi/fx-protocol/FxMarket.json +0 -1284
  104. package/build/abi/fx-protocol/weETHOralce.json +0 -676
  105. package/build/abi/integral/factory.json +0 -333
  106. package/build/abi/integral/oracle.json +0 -501
  107. package/build/abi/integral/relayer.json +0 -1536
  108. package/build/abi/maverick-v2/MaverickV2Router.json +0 -778
  109. package/build/dex/bProtocol.d.ts +0 -18
  110. package/build/dex/bProtocol.js +0 -39
  111. package/build/dex/bProtocol.js.map +0 -1
  112. package/build/dex/bancor.d.ts +0 -26
  113. package/build/dex/bancor.js +0 -58
  114. package/build/dex/bancor.js.map +0 -1
  115. package/build/dex/compound.d.ts +0 -18
  116. package/build/dex/compound.js +0 -46
  117. package/build/dex/compound.js.map +0 -1
  118. package/build/dex/concentrator-arusd/concentrator-arusd-event.d.ts +0 -16
  119. package/build/dex/concentrator-arusd/concentrator-arusd-event.js +0 -53
  120. package/build/dex/concentrator-arusd/concentrator-arusd-event.js.map +0 -1
  121. package/build/dex/concentrator-arusd/utils.d.ts +0 -4
  122. package/build/dex/concentrator-arusd/utils.js +0 -27
  123. package/build/dex/concentrator-arusd/utils.js.map +0 -1
  124. package/build/dex/curve-v2.d.ts +0 -58
  125. package/build/dex/curve-v2.js +0 -180
  126. package/build/dex/curve-v2.js.map +0 -1
  127. package/build/dex/dodo-v1.d.ts +0 -33
  128. package/build/dex/dodo-v1.js +0 -63
  129. package/build/dex/dodo-v1.js.map +0 -1
  130. package/build/dex/etherfi/etherfi.d.ts +0 -26
  131. package/build/dex/etherfi/etherfi.js +0 -96
  132. package/build/dex/etherfi/etherfi.js.map +0 -1
  133. package/build/dex/fx-protocol-rusd/fx-protocol-rusd-event.d.ts +0 -18
  134. package/build/dex/fx-protocol-rusd/fx-protocol-rusd-event.js +0 -63
  135. package/build/dex/fx-protocol-rusd/fx-protocol-rusd-event.js.map +0 -1
  136. package/build/dex/fx-protocol-rusd/utils.d.ts +0 -4
  137. package/build/dex/fx-protocol-rusd/utils.js +0 -26
  138. package/build/dex/fx-protocol-rusd/utils.js.map +0 -1
  139. package/build/dex/integral/config.js +0 -20
  140. package/build/dex/integral/config.js.map +0 -1
  141. package/build/dex/integral/context.d.ts +0 -40
  142. package/build/dex/integral/context.js +0 -158
  143. package/build/dex/integral/context.js.map +0 -1
  144. package/build/dex/integral/helpers.d.ts +0 -17
  145. package/build/dex/integral/helpers.js +0 -157
  146. package/build/dex/integral/helpers.js.map +0 -1
  147. package/build/dex/integral/integral-factory.d.ts +0 -24
  148. package/build/dex/integral/integral-factory.js +0 -95
  149. package/build/dex/integral/integral-factory.js.map +0 -1
  150. package/build/dex/integral/integral-pool.d.ts +0 -50
  151. package/build/dex/integral/integral-pool.js +0 -149
  152. package/build/dex/integral/integral-pool.js.map +0 -1
  153. package/build/dex/integral/integral-pricing.d.ts +0 -18
  154. package/build/dex/integral/integral-pricing.js +0 -114
  155. package/build/dex/integral/integral-pricing.js.map +0 -1
  156. package/build/dex/integral/integral-relayer.d.ts +0 -42
  157. package/build/dex/integral/integral-relayer.js +0 -192
  158. package/build/dex/integral/integral-relayer.js.map +0 -1
  159. package/build/dex/integral/integral-token.d.ts +0 -27
  160. package/build/dex/integral/integral-token.js +0 -59
  161. package/build/dex/integral/integral-token.js.map +0 -1
  162. package/build/dex/integral/integral.js +0 -377
  163. package/build/dex/integral/integral.js.map +0 -1
  164. package/build/dex/integral/types.d.ts +0 -84
  165. package/build/dex/integral/types.js +0 -9
  166. package/build/dex/integral/types.js.map +0 -1
  167. package/build/dex/integral/utils-e2e.d.ts +0 -9
  168. package/build/dex/integral/utils-e2e.js +0 -131
  169. package/build/dex/integral/utils-e2e.js.map +0 -1
  170. package/build/dex/integral/utils.d.ts +0 -17
  171. package/build/dex/integral/utils.js +0 -94
  172. package/build/dex/integral/utils.js.map +0 -1
  173. package/build/dex/lido.d.ts +0 -19
  174. package/build/dex/lido.js +0 -42
  175. package/build/dex/lido.js.map +0 -1
  176. package/build/dex/onebit.d.ts +0 -25
  177. package/build/dex/onebit.js +0 -42
  178. package/build/dex/onebit.js.map +0 -1
  179. package/build/dex/sdai/config.d.ts +0 -11
  180. package/build/dex/sdai/config.js +0 -21
  181. package/build/dex/sdai/config.js.map +0 -1
  182. package/build/dex/sdai/constants.d.ts +0 -2
  183. package/build/dex/sdai/constants.js +0 -6
  184. package/build/dex/sdai/constants.js.map +0 -1
  185. package/build/dex/sdai/scripts/validate-state.d.ts +0 -1
  186. package/build/dex/sdai/scripts/validate-state.js +0 -102
  187. package/build/dex/sdai/scripts/validate-state.js.map +0 -1
  188. package/build/dex/sdai/sdai-pool.d.ts +0 -16
  189. package/build/dex/sdai/sdai-pool.js +0 -85
  190. package/build/dex/sdai/sdai-pool.js.map +0 -1
  191. package/build/dex/sdai/sdai.d.ts +0 -51
  192. package/build/dex/sdai/sdai.js +0 -172
  193. package/build/dex/sdai/sdai.js.map +0 -1
  194. package/build/dex/sdai/types.d.ts +0 -21
  195. package/build/dex/sdai/types.js +0 -11
  196. package/build/dex/sdai/types.js.map +0 -1
  197. package/build/dex/sdai/utils.d.ts +0 -4
  198. package/build/dex/sdai/utils.js +0 -39
  199. package/build/dex/sdai/utils.js.map +0 -1
  200. package/build/dex/smoothy.d.ts +0 -26
  201. package/build/dex/smoothy.js +0 -48
  202. package/build/dex/smoothy.js.map +0 -1
  203. package/build/dex/stable-pool.d.ts +0 -28
  204. package/build/dex/stable-pool.js +0 -62
  205. package/build/dex/stable-pool.js.map +0 -1
  206. package/build/dex/trader-joe-v2.1.d.ts +0 -43
  207. package/build/dex/trader-joe-v2.1.js +0 -79
  208. package/build/dex/trader-joe-v2.1.js.map +0 -1
  209. package/build/executor/compressor/Compressor.d.ts +0 -23
  210. package/build/executor/compressor/Compressor.js +0 -144
  211. package/build/executor/compressor/Compressor.js.map +0 -1
  212. package/build/executor/compressor/compress.d.ts +0 -17
  213. package/build/executor/compressor/compress.js +0 -187
  214. package/build/executor/compressor/compress.js.map +0 -1
  215. package/build/executor/compressor/compress_functions/addressSubstitution.d.ts +0 -6
  216. package/build/executor/compressor/compress_functions/addressSubstitution.js +0 -29
  217. package/build/executor/compressor/compress_functions/addressSubstitution.js.map +0 -1
  218. package/build/executor/compressor/compress_functions/addressSubstitutionFromObject.d.ts +0 -10
  219. package/build/executor/compressor/compress_functions/addressSubstitutionFromObject.js +0 -40
  220. package/build/executor/compressor/compress_functions/addressSubstitutionFromObject.js.map +0 -1
  221. package/build/executor/compressor/compress_functions/byteSubstitution.d.ts +0 -11
  222. package/build/executor/compressor/compress_functions/byteSubstitution.js +0 -64
  223. package/build/executor/compressor/compress_functions/byteSubstitution.js.map +0 -1
  224. package/build/executor/compressor/compress_functions/ffSubstitution.d.ts +0 -7
  225. package/build/executor/compressor/compress_functions/ffSubstitution.js +0 -54
  226. package/build/executor/compressor/compress_functions/ffSubstitution.js.map +0 -1
  227. package/build/executor/compressor/compress_functions/findLongestAndSubstitute.d.ts +0 -8
  228. package/build/executor/compressor/compress_functions/findLongestAndSubstitute.js +0 -67
  229. package/build/executor/compressor/compress_functions/findLongestAndSubstitute.js.map +0 -1
  230. package/build/executor/compressor/compress_functions/findLongestAndSubstitute_old.d.ts +0 -8
  231. package/build/executor/compressor/compress_functions/findLongestAndSubstitute_old.js +0 -61
  232. package/build/executor/compressor/compress_functions/findLongestAndSubstitute_old.js.map +0 -1
  233. package/build/executor/compressor/compress_functions/reverseAddressSubstitution.d.ts +0 -6
  234. package/build/executor/compressor/compress_functions/reverseAddressSubstitution.js +0 -37
  235. package/build/executor/compressor/compress_functions/reverseAddressSubstitution.js.map +0 -1
  236. package/build/executor/compressor/compress_functions/searchUnusedBytes.d.ts +0 -9
  237. package/build/executor/compressor/compress_functions/searchUnusedBytes.js +0 -33
  238. package/build/executor/compressor/compress_functions/searchUnusedBytes.js.map +0 -1
  239. package/build/executor/compressor/fetchSaved.d.ts +0 -0
  240. package/build/executor/compressor/fetchSaved.js +0 -17
  241. package/build/executor/compressor/fetchSaved.js.map +0 -1
  242. package/build/executor/compressor/utils/computeCostL2.d.ts +0 -2
  243. package/build/executor/compressor/utils/computeCostL2.js +0 -14
  244. package/build/executor/compressor/utils/computeCostL2.js.map +0 -1
  245. package/build/executor/compressor/utils/findLongestDuplicatedString.d.ts +0 -2
  246. package/build/executor/compressor/utils/findLongestDuplicatedString.js +0 -30
  247. package/build/executor/compressor/utils/findLongestDuplicatedString.js.map +0 -1
  248. package/build/executor/compressor/utils/getAllIndexes.d.ts +0 -2
  249. package/build/executor/compressor/utils/getAllIndexes.js +0 -12
  250. package/build/executor/compressor/utils/getAllIndexes.js.map +0 -1
  251. package/build/executor/compressor/utils/getByteForAddress.d.ts +0 -2
  252. package/build/executor/compressor/utils/getByteForAddress.js +0 -14
  253. package/build/executor/compressor/utils/getByteForAddress.js.map +0 -1
  254. package/build/executor/compressor/utils/intTo2Bytes.d.ts +0 -2
  255. package/build/executor/compressor/utils/intTo2Bytes.js +0 -14
  256. package/build/executor/compressor/utils/intTo2Bytes.js.map +0 -1
  257. package/build/executor/compressor/utils/intTo3Bytes.d.ts +0 -2
  258. package/build/executor/compressor/utils/intTo3Bytes.js +0 -18
  259. package/build/executor/compressor/utils/intTo3Bytes.js.map +0 -1
  260. package/build/executor/compressor/utils/intToByte.d.ts +0 -2
  261. package/build/executor/compressor/utils/intToByte.js +0 -10
  262. package/build/executor/compressor/utils/intToByte.js.map +0 -1
  263. package/src/abi/concentrator/arUSD.json +0 -568
  264. package/src/abi/concentrator/arUSD5115.json +0 -1746
  265. package/src/abi/fx-protocol/FxMarket.json +0 -1284
  266. package/src/abi/fx-protocol/FxUSD.json +0 -1227
  267. package/src/abi/fx-protocol/weETHOralce.json +0 -676
  268. package/src/dex/concentrator-arusd/concentrator-arusd-e2e.test.ts +0 -92
  269. package/src/dex/concentrator-arusd/concentrator-arusd-event.ts +0 -70
  270. package/src/dex/concentrator-arusd/concentrator-arusd-integration.test.ts +0 -104
  271. package/src/dex/concentrator-arusd/concentrator-arusd.ts +0 -255
  272. package/src/dex/concentrator-arusd/concetrator-arusd-events.test.ts +0 -97
  273. package/src/dex/concentrator-arusd/config.ts +0 -18
  274. package/src/dex/concentrator-arusd/types.ts +0 -16
  275. package/src/dex/concentrator-arusd/utils.ts +0 -36
  276. package/src/dex/fx-protocol-rusd/config.ts +0 -14
  277. package/src/dex/fx-protocol-rusd/fx-protocol-e2e.test.ts +0 -96
  278. package/src/dex/fx-protocol-rusd/fx-protocol-events.test.ts +0 -101
  279. package/src/dex/fx-protocol-rusd/fx-protocol-integration.test.ts +0 -104
  280. package/src/dex/fx-protocol-rusd/fx-protocol-rusd-event.ts +0 -80
  281. package/src/dex/fx-protocol-rusd/fx-protocol-rusd.ts +0 -303
  282. package/src/dex/fx-protocol-rusd/types.ts +0 -16
  283. package/src/dex/fx-protocol-rusd/utils.ts +0 -46
@@ -1,676 +0,0 @@
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
- ]