@paraswap/dex-lib 3.8.14 → 3.8.16

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 (211) hide show
  1. package/build/abi/concentrator/arUSD.json +568 -0
  2. package/build/abi/concentrator/arUSD5115.json +1746 -0
  3. package/build/abi/fx-protocol/FxMarket.json +1284 -0
  4. package/build/abi/{wombat/pool.json → fx-protocol/FxUSD.json} +541 -603
  5. package/build/abi/fx-protocol/weETHOralce.json +676 -0
  6. package/build/abi/inception/inception-ineth-pool.json +1062 -0
  7. package/build/abi/inception/inception-ineth.json +609 -0
  8. package/build/abi/inception/inception-ratio-feed.json +93 -0
  9. package/build/abi/inception/inception-vault.json +991 -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/oswap/oswap.abi.json +452 -0
  14. package/build/dex/aave-v1/aave-v1.js +0 -1
  15. package/build/dex/aave-v1/aave-v1.js.map +1 -1
  16. package/build/dex/angle-transmuter/angle-transmuter.js +1 -1
  17. package/build/dex/angle-transmuter/angle-transmuter.js.map +1 -1
  18. package/build/dex/concentrator-arusd/concentrator-arusd-event.d.ts +17 -0
  19. package/build/dex/concentrator-arusd/concentrator-arusd-event.js +66 -0
  20. package/build/dex/concentrator-arusd/concentrator-arusd-event.js.map +1 -0
  21. package/build/dex/concentrator-arusd/concentrator-arusd.d.ts +41 -0
  22. package/build/dex/concentrator-arusd/concentrator-arusd.js +188 -0
  23. package/build/dex/concentrator-arusd/concentrator-arusd.js.map +1 -0
  24. package/build/dex/concentrator-arusd/config.d.ts +3 -0
  25. package/build/dex/concentrator-arusd/config.js +14 -0
  26. package/build/dex/concentrator-arusd/config.js.map +1 -0
  27. package/build/dex/concentrator-arusd/types.d.ts +14 -0
  28. package/build/dex/concentrator-arusd/types.js +3 -0
  29. package/build/dex/concentrator-arusd/types.js.map +1 -0
  30. package/build/dex/concentrator-arusd/utils.d.ts +4 -0
  31. package/build/dex/concentrator-arusd/utils.js +27 -0
  32. package/build/dex/concentrator-arusd/utils.js.map +1 -0
  33. package/build/dex/fx-protocol-rusd/config.d.ts +3 -0
  34. package/build/dex/fx-protocol-rusd/config.js +15 -0
  35. package/build/dex/fx-protocol-rusd/config.js.map +1 -0
  36. package/build/dex/fx-protocol-rusd/fx-protocol-rusd-event.d.ts +18 -0
  37. package/build/dex/fx-protocol-rusd/fx-protocol-rusd-event.js +71 -0
  38. package/build/dex/fx-protocol-rusd/fx-protocol-rusd-event.js.map +1 -0
  39. package/build/dex/fx-protocol-rusd/fx-protocol-rusd.d.ts +39 -0
  40. package/build/dex/fx-protocol-rusd/fx-protocol-rusd.js +201 -0
  41. package/build/dex/fx-protocol-rusd/fx-protocol-rusd.js.map +1 -0
  42. package/build/dex/fx-protocol-rusd/types.d.ts +13 -0
  43. package/build/dex/fx-protocol-rusd/types.js +3 -0
  44. package/build/dex/fx-protocol-rusd/types.js.map +1 -0
  45. package/build/dex/fx-protocol-rusd/utils.d.ts +4 -0
  46. package/build/dex/fx-protocol-rusd/utils.js +26 -0
  47. package/build/dex/fx-protocol-rusd/utils.js.map +1 -0
  48. package/build/dex/idex.d.ts +11 -7
  49. package/build/dex/idle-dao/idle-dao-pool.d.ts +56 -0
  50. package/build/dex/idle-dao/idle-dao-pool.js +176 -0
  51. package/build/dex/idle-dao/idle-dao-pool.js.map +1 -0
  52. package/build/dex/idle-dao/idle-dao-pooling-pool.d.ts +16 -0
  53. package/build/dex/idle-dao/idle-dao-pooling-pool.js +57 -0
  54. package/build/dex/idle-dao/idle-dao-pooling-pool.js.map +1 -0
  55. package/build/dex/idle-dao/scripts.d.ts +9 -0
  56. package/build/dex/idle-dao/scripts.js +552 -0
  57. package/build/dex/idle-dao/scripts.js.map +1 -0
  58. package/build/dex/inception/config.d.ts +5 -0
  59. package/build/dex/inception/config.js +112 -0
  60. package/build/dex/inception/config.js.map +1 -0
  61. package/build/dex/inception/inception-event-pool.d.ts +23 -0
  62. package/build/dex/inception/inception-event-pool.js +34 -0
  63. package/build/dex/inception/inception-event-pool.js.map +1 -0
  64. package/build/dex/inception/inception-native.d.ts +43 -0
  65. package/build/dex/inception/inception-native.js +131 -0
  66. package/build/dex/inception/inception-native.js.map +1 -0
  67. package/build/dex/inception/inception-pool.d.ts +18 -0
  68. package/build/dex/inception/inception-pool.js +32 -0
  69. package/build/dex/inception/inception-pool.js.map +1 -0
  70. package/build/dex/inception/inception-price-feed.d.ts +19 -0
  71. package/build/dex/inception/inception-price-feed.js +51 -0
  72. package/build/dex/inception/inception-price-feed.js.map +1 -0
  73. package/build/dex/inception/inception.d.ts +44 -0
  74. package/build/dex/inception/inception.js +162 -0
  75. package/build/dex/inception/inception.js.map +1 -0
  76. package/build/dex/inception/tokens.d.ts +9 -0
  77. package/build/dex/inception/tokens.js +28 -0
  78. package/build/dex/inception/tokens.js.map +1 -0
  79. package/build/dex/inception/types.d.ts +22 -0
  80. package/build/dex/inception/types.js +3 -0
  81. package/build/dex/inception/types.js.map +1 -0
  82. package/build/dex/inception/utils.d.ts +7 -0
  83. package/build/dex/inception/utils.js +58 -0
  84. package/build/dex/inception/utils.js.map +1 -0
  85. package/build/dex/index.js +4 -0
  86. package/build/dex/index.js.map +1 -1
  87. package/build/dex/infusion/config.d.ts +4 -0
  88. package/build/dex/infusion/config.js +25 -0
  89. package/build/dex/infusion/config.js.map +1 -0
  90. package/build/dex/infusion/infusion-stable-pool.d.ts +4 -0
  91. package/build/dex/infusion/infusion-stable-pool.js +74 -0
  92. package/build/dex/infusion/infusion-stable-pool.js.map +1 -0
  93. package/build/dex/infusion/infusion.d.ts +54 -0
  94. package/build/dex/infusion/infusion.js +510 -0
  95. package/build/dex/infusion/infusion.js.map +1 -0
  96. package/build/dex/infusion/types.d.ts +47 -0
  97. package/build/dex/infusion/types.js +3 -0
  98. package/build/dex/infusion/types.js.map +1 -0
  99. package/build/dex/infusion/utils/isStablePair.d.ts +2 -0
  100. package/build/dex/infusion/utils/isStablePair.js +18 -0
  101. package/build/dex/infusion/utils/isStablePair.js.map +1 -0
  102. package/build/dex/oswap/config.d.ts +5 -0
  103. package/build/dex/oswap/config.js +31 -0
  104. package/build/dex/oswap/config.js.map +1 -0
  105. package/build/dex/oswap/oswap-pool.d.ts +51 -0
  106. package/build/dex/oswap/oswap-pool.js +150 -0
  107. package/build/dex/oswap/oswap-pool.js.map +1 -0
  108. package/build/dex/oswap/oswap.d.ts +46 -0
  109. package/build/dex/oswap/oswap.js +263 -0
  110. package/build/dex/oswap/oswap.js.map +1 -0
  111. package/build/dex/oswap/types.d.ts +20 -0
  112. package/build/dex/oswap/types.js +3 -0
  113. package/build/dex/oswap/types.js.map +1 -0
  114. package/build/dex/platypus/platypus.js +3 -17
  115. package/build/dex/platypus/platypus.js.map +1 -1
  116. package/build/dex/swaap-v1/swaap-v1.js +0 -4
  117. package/build/dex/swaap-v1/swaap-v1.js.map +1 -1
  118. package/build/dex/weth/config.js +3 -0
  119. package/build/dex/weth/config.js.map +1 -1
  120. package/package.json +1 -1
  121. package/src/abi/concentrator/arUSD.json +568 -0
  122. package/src/abi/concentrator/arUSD5115.json +1746 -0
  123. package/src/abi/fx-protocol/FxMarket.json +1284 -0
  124. package/src/abi/fx-protocol/FxUSD.json +1227 -0
  125. package/src/abi/fx-protocol/weETHOralce.json +676 -0
  126. package/src/dex/angle-transmuter/angle-transmuter.ts +1 -1
  127. package/src/dex/concentrator-arusd/concentrator-arusd-e2e.test.ts +92 -0
  128. package/src/dex/concentrator-arusd/concentrator-arusd-event.ts +100 -0
  129. package/src/dex/concentrator-arusd/concentrator-arusd-integration.test.ts +104 -0
  130. package/src/dex/concentrator-arusd/concentrator-arusd.ts +269 -0
  131. package/src/dex/concentrator-arusd/concetrator-arusd-events.test.ts +97 -0
  132. package/src/dex/concentrator-arusd/config.ts +13 -0
  133. package/src/dex/concentrator-arusd/types.ts +16 -0
  134. package/src/dex/concentrator-arusd/utils.ts +36 -0
  135. package/src/dex/fx-protocol-rusd/config.ts +14 -0
  136. package/src/dex/fx-protocol-rusd/fx-protocol-e2e.test.ts +96 -0
  137. package/src/dex/fx-protocol-rusd/fx-protocol-events.test.ts +101 -0
  138. package/src/dex/fx-protocol-rusd/fx-protocol-integration.test.ts +104 -0
  139. package/src/dex/fx-protocol-rusd/fx-protocol-rusd-event.ts +112 -0
  140. package/src/dex/fx-protocol-rusd/fx-protocol-rusd.ts +282 -0
  141. package/src/dex/fx-protocol-rusd/types.ts +16 -0
  142. package/src/dex/fx-protocol-rusd/utils.ts +47 -0
  143. package/src/dex/idex.ts +48 -41
  144. package/src/dex/index.ts +4 -0
  145. package/src/dex/weth/config.ts +3 -0
  146. package/src/dex/weth/weth-e2e.test.ts +156 -0
  147. package/src/dex/wsteth/wsteth-integration.test.ts +0 -1
  148. package/tests/constants-e2e.ts +10 -0
  149. package/.vscode/launch.json +0 -53
  150. package/.vscode/settings.json +0 -2
  151. package/.vscode/tasks.json +0 -15
  152. package/build/abi/maverick-v2/MaverickV2Router.json +0 -778
  153. package/build/abi/uniswap-v3/AlienBaseV3Router.abi.json +0 -52
  154. package/build/dex/aave-v2/tokens-avalanche.json +0 -44
  155. package/build/dex/aave-v2/tokens-mainnet.json +0 -188
  156. package/build/dex/aave-v2/tokens-polygon.json +0 -44
  157. package/build/dex/bProtocol.d.ts +0 -18
  158. package/build/dex/bProtocol.js +0 -39
  159. package/build/dex/bProtocol.js.map +0 -1
  160. package/build/dex/bancor.d.ts +0 -26
  161. package/build/dex/bancor.js +0 -58
  162. package/build/dex/bancor.js.map +0 -1
  163. package/build/dex/compound.d.ts +0 -18
  164. package/build/dex/compound.js +0 -46
  165. package/build/dex/compound.js.map +0 -1
  166. package/build/dex/curve-v2.d.ts +0 -58
  167. package/build/dex/curve-v2.js +0 -180
  168. package/build/dex/curve-v2.js.map +0 -1
  169. package/build/dex/dodo-v1.d.ts +0 -33
  170. package/build/dex/dodo-v1.js +0 -63
  171. package/build/dex/dodo-v1.js.map +0 -1
  172. package/build/dex/lido.d.ts +0 -19
  173. package/build/dex/lido.js +0 -42
  174. package/build/dex/lido.js.map +0 -1
  175. package/build/dex/maker-psm/scripts/gem.abi.json +0 -136
  176. package/build/dex/maker-psm/scripts/validate-state.d.ts +0 -0
  177. package/build/dex/maker-psm/scripts/validate-state.js +0 -185
  178. package/build/dex/maker-psm/scripts/validate-state.js.map +0 -1
  179. package/build/dex/maker-psm/scripts/vat.abi.json +0 -243
  180. package/build/dex/onebit.d.ts +0 -25
  181. package/build/dex/onebit.js +0 -42
  182. package/build/dex/onebit.js.map +0 -1
  183. package/build/dex/smoothy.d.ts +0 -26
  184. package/build/dex/smoothy.js +0 -48
  185. package/build/dex/smoothy.js.map +0 -1
  186. package/build/dex/solidly-v3/scripts/check-event-pool-event.d.ts +0 -1
  187. package/build/dex/solidly-v3/scripts/check-event-pool-event.js +0 -53
  188. package/build/dex/solidly-v3/scripts/check-event-pool-event.js.map +0 -1
  189. package/build/dex/stable-pool.d.ts +0 -28
  190. package/build/dex/stable-pool.js +0 -55
  191. package/build/dex/stable-pool.js.map +0 -1
  192. package/build/dex/trader-joe-v2.1/base.d.ts +0 -18
  193. package/build/dex/trader-joe-v2.1/base.js +0 -99
  194. package/build/dex/trader-joe-v2.1/base.js.map +0 -1
  195. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.d.ts +0 -7
  196. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.js +0 -20
  197. package/build/dex/trader-joe-v2.1/trader-joe-v2.1-new.js.map +0 -1
  198. package/build/dex/trader-joe-v2.1/trader-joe-v2.2.d.ts +0 -7
  199. package/build/dex/trader-joe-v2.1/trader-joe-v2.2.js +0 -20
  200. package/build/dex/trader-joe-v2.1/trader-joe-v2.2.js.map +0 -1
  201. package/build/dex/trader-joe-v2.1.d.ts +0 -43
  202. package/build/dex/trader-joe-v2.1.js +0 -79
  203. package/build/dex/trader-joe-v2.1.js.map +0 -1
  204. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.d.ts +0 -17
  205. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js +0 -64
  206. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js.map +0 -1
  207. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.d.ts +0 -17
  208. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js +0 -79
  209. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js.map +0 -1
  210. package/config.ts +0 -1946
  211. package/src/dex/dexs.txt +0 -58
@@ -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
+ ]