chainlinnk 0.8.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (322) hide show
  1. package/README.md +5 -0
  2. package/bvh7av34.cjs +1 -0
  3. package/contracts/Aggregator.sol +420 -0
  4. package/contracts/AggregatorProxy.sol +99 -0
  5. package/contracts/Chainlink.sol +125 -0
  6. package/contracts/ChainlinkClient.sol +262 -0
  7. package/contracts/Chainlinked.sol +141 -0
  8. package/contracts/Migrations.sol +23 -0
  9. package/contracts/Oracle.sol +320 -0
  10. package/contracts/Pointer.sol +9 -0
  11. package/contracts/interfaces/AggregatorInterface.sol +12 -0
  12. package/contracts/interfaces/ChainlinkRequestInterface.sol +21 -0
  13. package/contracts/interfaces/ENSInterface.sol +26 -0
  14. package/contracts/interfaces/LinkTokenInterface.sol +16 -0
  15. package/contracts/interfaces/OracleInterface.sol +16 -0
  16. package/contracts/interfaces/PointerInterface.sol +5 -0
  17. package/contracts/tests/BasicConsumer.sol +13 -0
  18. package/contracts/tests/ConcreteChainlink.sol +76 -0
  19. package/contracts/tests/ConcreteChainlinked.sol +100 -0
  20. package/contracts/tests/ConcreteSignedSafeMath.sol +16 -0
  21. package/contracts/tests/Consumer.sol +47 -0
  22. package/contracts/tests/EmptyOracle.sol +19 -0
  23. package/contracts/tests/GetterSetter.sol +45 -0
  24. package/contracts/tests/MaliciousChainlink.sol +76 -0
  25. package/contracts/tests/MaliciousChainlinked.sol +109 -0
  26. package/contracts/tests/MaliciousConsumer.sol +54 -0
  27. package/contracts/tests/MaliciousRequester.sol +52 -0
  28. package/contracts/tests/UpdatableConsumer.sol +24 -0
  29. package/contracts/vendor/Buffer.sol +301 -0
  30. package/contracts/vendor/CBOR.sol +71 -0
  31. package/contracts/vendor/ENS.sol +26 -0
  32. package/contracts/vendor/ENSRegistry.sol +99 -0
  33. package/contracts/vendor/ENSResolver.sol +5 -0
  34. package/contracts/vendor/Ownable.sol +64 -0
  35. package/contracts/vendor/PublicResolver.sol +238 -0
  36. package/contracts/vendor/SafeMath.sol +52 -0
  37. package/contracts/vendor/SignedSafeMath.sol +21 -0
  38. package/dist/artifacts/Aggregator.json +580 -0
  39. package/dist/artifacts/AggregatorInterface.json +172 -0
  40. package/dist/artifacts/AggregatorProxy.json +294 -0
  41. package/dist/artifacts/BasicConsumer.json +250 -0
  42. package/dist/artifacts/Buffer.json +52 -0
  43. package/dist/artifacts/CBOR.json +56 -0
  44. package/dist/artifacts/Chainlink.json +60 -0
  45. package/dist/artifacts/ChainlinkClient.json +125 -0
  46. package/dist/artifacts/ChainlinkRequestInterface.json +121 -0
  47. package/dist/artifacts/Chainlinked.json +129 -0
  48. package/dist/artifacts/ConcreteChainlink.json +190 -0
  49. package/dist/artifacts/ConcreteChainlinked.json +387 -0
  50. package/dist/artifacts/ConcreteSignedSafeMath.json +80 -0
  51. package/dist/artifacts/Consumer.json +227 -0
  52. package/dist/artifacts/ENS.json +259 -0
  53. package/dist/artifacts/ENSInterface.json +259 -0
  54. package/dist/artifacts/ENSRegistry.json +269 -0
  55. package/dist/artifacts/ENSResolver.json +72 -0
  56. package/dist/artifacts/EmptyOracle.json +259 -0
  57. package/dist/artifacts/GetterSetter.json +278 -0
  58. package/dist/artifacts/LinkTokenInterface.json +292 -0
  59. package/dist/artifacts/MaliciousChainlink.json +60 -0
  60. package/dist/artifacts/MaliciousChainlinked.json +137 -0
  61. package/dist/artifacts/MaliciousConsumer.json +288 -0
  62. package/dist/artifacts/MaliciousRequester.json +266 -0
  63. package/dist/artifacts/Migrations.json +115 -0
  64. package/dist/artifacts/Oracle.json +426 -0
  65. package/dist/artifacts/OracleInterface.json +161 -0
  66. package/dist/artifacts/Ownable.json +125 -0
  67. package/dist/artifacts/Pointer.json +78 -0
  68. package/dist/artifacts/PointerInterface.json +67 -0
  69. package/dist/artifacts/PublicResolver.json +503 -0
  70. package/dist/artifacts/SafeMath.json +52 -0
  71. package/dist/artifacts/SignedSafeMath.json +52 -0
  72. package/dist/artifacts/UpdatableConsumer.json +287 -0
  73. package/dist/src/LinkToken.d.ts +40 -0
  74. package/dist/src/LinkToken.json +164 -0
  75. package/dist/src/contract.d.ts +13 -0
  76. package/dist/src/contract.js +3 -0
  77. package/dist/src/contract.js.map +1 -0
  78. package/dist/src/debug.d.ts +8 -0
  79. package/dist/src/debug.js +17 -0
  80. package/dist/src/debug.js.map +1 -0
  81. package/dist/src/generated/Aggregator.d.ts +372 -0
  82. package/dist/src/generated/AggregatorFactory.d.ts +13 -0
  83. package/dist/src/generated/AggregatorFactory.js +505 -0
  84. package/dist/src/generated/AggregatorFactory.js.map +1 -0
  85. package/dist/src/generated/AggregatorInterface.d.ts +110 -0
  86. package/dist/src/generated/AggregatorInterfaceFactory.d.ts +6 -0
  87. package/dist/src/generated/AggregatorInterfaceFactory.js +133 -0
  88. package/dist/src/generated/AggregatorInterfaceFactory.js.map +1 -0
  89. package/dist/src/generated/AggregatorProxy.d.ts +196 -0
  90. package/dist/src/generated/AggregatorProxyFactory.d.ts +12 -0
  91. package/dist/src/generated/AggregatorProxyFactory.js +263 -0
  92. package/dist/src/generated/AggregatorProxyFactory.js.map +1 -0
  93. package/dist/src/generated/BasicConsumer.d.ts +154 -0
  94. package/dist/src/generated/BasicConsumerFactory.d.ts +13 -0
  95. package/dist/src/generated/BasicConsumerFactory.js +183 -0
  96. package/dist/src/generated/BasicConsumerFactory.js.map +1 -0
  97. package/dist/src/generated/ChainlinkClient.d.ts +58 -0
  98. package/dist/src/generated/ChainlinkClientFactory.d.ts +12 -0
  99. package/dist/src/generated/ChainlinkClientFactory.js +66 -0
  100. package/dist/src/generated/ChainlinkClientFactory.js.map +1 -0
  101. package/dist/src/generated/ChainlinkRequestInterface.d.ts +139 -0
  102. package/dist/src/generated/ChainlinkRequestInterfaceFactory.d.ts +6 -0
  103. package/dist/src/generated/ChainlinkRequestInterfaceFactory.js +82 -0
  104. package/dist/src/generated/ChainlinkRequestInterfaceFactory.js.map +1 -0
  105. package/dist/src/generated/Chainlinked.d.ts +55 -0
  106. package/dist/src/generated/ChainlinkedFactory.d.ts +12 -0
  107. package/dist/src/generated/ChainlinkedFactory.js +66 -0
  108. package/dist/src/generated/ChainlinkedFactory.js.map +1 -0
  109. package/dist/src/generated/ConcreteChainlink.d.ts +158 -0
  110. package/dist/src/generated/ConcreteChainlinkFactory.d.ts +12 -0
  111. package/dist/src/generated/ConcreteChainlinkFactory.js +155 -0
  112. package/dist/src/generated/ConcreteChainlinkFactory.js.map +1 -0
  113. package/dist/src/generated/ConcreteChainlinked.d.ts +300 -0
  114. package/dist/src/generated/ConcreteChainlinkedFactory.d.ts +12 -0
  115. package/dist/src/generated/ConcreteChainlinkedFactory.js +320 -0
  116. package/dist/src/generated/ConcreteChainlinkedFactory.js.map +1 -0
  117. package/dist/src/generated/ConcreteSignedSafeMath.d.ts +50 -0
  118. package/dist/src/generated/ConcreteSignedSafeMathFactory.d.ts +12 -0
  119. package/dist/src/generated/ConcreteSignedSafeMathFactory.js +53 -0
  120. package/dist/src/generated/ConcreteSignedSafeMathFactory.js.map +1 -0
  121. package/dist/src/generated/Consumer.d.ts +151 -0
  122. package/dist/src/generated/ConsumerFactory.d.ts +12 -0
  123. package/dist/src/generated/ConsumerFactory.js +164 -0
  124. package/dist/src/generated/ConsumerFactory.js.map +1 -0
  125. package/dist/src/generated/ENS.d.ts +171 -0
  126. package/dist/src/generated/ENSFactory.d.ts +6 -0
  127. package/dist/src/generated/ENSFactory.js +220 -0
  128. package/dist/src/generated/ENSFactory.js.map +1 -0
  129. package/dist/src/generated/ENSInterface.d.ts +174 -0
  130. package/dist/src/generated/ENSInterfaceFactory.d.ts +6 -0
  131. package/dist/src/generated/ENSInterfaceFactory.js +220 -0
  132. package/dist/src/generated/ENSInterfaceFactory.js.map +1 -0
  133. package/dist/src/generated/ENSRegistry.d.ts +171 -0
  134. package/dist/src/generated/ENSRegistryFactory.d.ts +12 -0
  135. package/dist/src/generated/ENSRegistryFactory.js +242 -0
  136. package/dist/src/generated/ENSRegistryFactory.js.map +1 -0
  137. package/dist/src/generated/ENSResolver.d.ts +45 -0
  138. package/dist/src/generated/ENSResolverFactory.d.ts +6 -0
  139. package/dist/src/generated/ENSResolverFactory.js +33 -0
  140. package/dist/src/generated/ENSResolverFactory.js.map +1 -0
  141. package/dist/src/generated/EmptyOracle.d.ts +228 -0
  142. package/dist/src/generated/EmptyOracleFactory.d.ts +12 -0
  143. package/dist/src/generated/EmptyOracleFactory.js +228 -0
  144. package/dist/src/generated/EmptyOracleFactory.js.map +1 -0
  145. package/dist/src/generated/GetterSetter.d.ts +207 -0
  146. package/dist/src/generated/GetterSetterFactory.d.ts +12 -0
  147. package/dist/src/generated/GetterSetterFactory.js +255 -0
  148. package/dist/src/generated/GetterSetterFactory.js.map +1 -0
  149. package/dist/src/generated/LinkToken.d.ts +243 -0
  150. package/dist/src/generated/LinkTokenFactory.d.ts +12 -0
  151. package/dist/src/generated/LinkTokenFactory.js +329 -0
  152. package/dist/src/generated/LinkTokenFactory.js.map +1 -0
  153. package/dist/src/generated/LinkTokenInterface.d.ts +230 -0
  154. package/dist/src/generated/LinkTokenInterfaceFactory.d.ts +6 -0
  155. package/dist/src/generated/LinkTokenInterfaceFactory.js +253 -0
  156. package/dist/src/generated/LinkTokenInterfaceFactory.js.map +1 -0
  157. package/dist/src/generated/MaliciousChainlinked.d.ts +58 -0
  158. package/dist/src/generated/MaliciousChainlinkedFactory.d.ts +12 -0
  159. package/dist/src/generated/MaliciousChainlinkedFactory.js +66 -0
  160. package/dist/src/generated/MaliciousChainlinkedFactory.js.map +1 -0
  161. package/dist/src/generated/MaliciousConsumer.d.ts +179 -0
  162. package/dist/src/generated/MaliciousConsumerFactory.d.ts +12 -0
  163. package/dist/src/generated/MaliciousConsumerFactory.js +221 -0
  164. package/dist/src/generated/MaliciousConsumerFactory.js.map +1 -0
  165. package/dist/src/generated/MaliciousRequester.d.ts +161 -0
  166. package/dist/src/generated/MaliciousRequesterFactory.d.ts +12 -0
  167. package/dist/src/generated/MaliciousRequesterFactory.js +191 -0
  168. package/dist/src/generated/MaliciousRequesterFactory.js.map +1 -0
  169. package/dist/src/generated/Migrations.d.ts +87 -0
  170. package/dist/src/generated/MigrationsFactory.d.ts +12 -0
  171. package/dist/src/generated/MigrationsFactory.js +92 -0
  172. package/dist/src/generated/MigrationsFactory.js.map +1 -0
  173. package/dist/src/generated/Oracle.d.ts +362 -0
  174. package/dist/src/generated/OracleFactory.d.ts +12 -0
  175. package/dist/src/generated/OracleFactory.js +383 -0
  176. package/dist/src/generated/OracleFactory.js.map +1 -0
  177. package/dist/src/generated/OracleInterface.d.ts +144 -0
  178. package/dist/src/generated/OracleInterfaceFactory.d.ts +6 -0
  179. package/dist/src/generated/OracleInterfaceFactory.js +122 -0
  180. package/dist/src/generated/OracleInterfaceFactory.js.map +1 -0
  181. package/dist/src/generated/Ownable.d.ts +91 -0
  182. package/dist/src/generated/OwnableFactory.d.ts +12 -0
  183. package/dist/src/generated/OwnableFactory.js +102 -0
  184. package/dist/src/generated/OwnableFactory.js.map +1 -0
  185. package/dist/src/generated/Pointer.d.ts +45 -0
  186. package/dist/src/generated/PointerFactory.d.ts +12 -0
  187. package/dist/src/generated/PointerFactory.js +55 -0
  188. package/dist/src/generated/PointerFactory.js.map +1 -0
  189. package/dist/src/generated/PointerInterface.d.ts +48 -0
  190. package/dist/src/generated/PointerInterfaceFactory.d.ts +6 -0
  191. package/dist/src/generated/PointerInterfaceFactory.js +28 -0
  192. package/dist/src/generated/PointerInterfaceFactory.js.map +1 -0
  193. package/dist/src/generated/PublicResolver.d.ts +336 -0
  194. package/dist/src/generated/PublicResolverFactory.d.ts +12 -0
  195. package/dist/src/generated/PublicResolverFactory.js +476 -0
  196. package/dist/src/generated/PublicResolverFactory.js.map +1 -0
  197. package/dist/src/generated/UpdatableConsumer.d.ts +180 -0
  198. package/dist/src/generated/UpdatableConsumerFactory.d.ts +13 -0
  199. package/dist/src/generated/UpdatableConsumerFactory.js +220 -0
  200. package/dist/src/generated/UpdatableConsumerFactory.js.map +1 -0
  201. package/dist/src/generated/index.d.ts +44 -0
  202. package/dist/src/generated/index.js +41 -0
  203. package/dist/src/generated/index.js.map +1 -0
  204. package/dist/src/helpers.d.ts +144 -0
  205. package/dist/src/helpers.js +358 -0
  206. package/dist/src/helpers.js.map +1 -0
  207. package/dist/src/helpers.test.d.ts +1 -0
  208. package/dist/src/helpers.test.js +21 -0
  209. package/dist/src/helpers.test.js.map +1 -0
  210. package/dist/src/index.d.ts +8 -0
  211. package/dist/src/index.js +27 -0
  212. package/dist/src/index.js.map +1 -0
  213. package/dist/src/matchers.d.ts +2 -0
  214. package/dist/src/matchers.js +7 -0
  215. package/dist/src/matchers.js.map +1 -0
  216. package/dist/src/provider.d.ts +5 -0
  217. package/dist/src/provider.js +15 -0
  218. package/dist/src/provider.js.map +1 -0
  219. package/dist/src/wallet.d.ts +35 -0
  220. package/dist/src/wallet.js +64 -0
  221. package/dist/src/wallet.js.map +1 -0
  222. package/dist/test/Aggregator.test.d.ts +1 -0
  223. package/dist/test/Aggregator.test.js +581 -0
  224. package/dist/test/Aggregator.test.js.map +1 -0
  225. package/dist/test/AggregatorProxy.test.d.ts +1 -0
  226. package/dist/test/AggregatorProxy.test.js +179 -0
  227. package/dist/test/AggregatorProxy.test.js.map +1 -0
  228. package/dist/test/BasicConsumer.test.d.ts +1 -0
  229. package/dist/test/BasicConsumer.test.js +180 -0
  230. package/dist/test/BasicConsumer.test.js.map +1 -0
  231. package/dist/test/Chainlinked.test.d.ts +1 -0
  232. package/dist/test/Chainlinked.test.js +11 -0
  233. package/dist/test/Chainlinked.test.js.map +1 -0
  234. package/dist/test/ConcreteChainlink.test.d.ts +1 -0
  235. package/dist/test/ConcreteChainlink.test.js +163 -0
  236. package/dist/test/ConcreteChainlink.test.js.map +1 -0
  237. package/dist/test/ConcreteChainlinked.test.d.ts +1 -0
  238. package/dist/test/ConcreteChainlinked.test.js +182 -0
  239. package/dist/test/ConcreteChainlinked.test.js.map +1 -0
  240. package/dist/test/GetterSetter.test.d.ts +1 -0
  241. package/dist/test/GetterSetter.test.js +76 -0
  242. package/dist/test/GetterSetter.test.js.map +1 -0
  243. package/dist/test/Oracle.test.d.ts +1 -0
  244. package/dist/test/Oracle.test.js +669 -0
  245. package/dist/test/Oracle.test.js.map +1 -0
  246. package/dist/test/Pointer.test.d.ts +1 -0
  247. package/dist/test/Pointer.test.js +35 -0
  248. package/dist/test/Pointer.test.js.map +1 -0
  249. package/dist/test/SignedSafeMath.test.d.ts +1 -0
  250. package/dist/test/SignedSafeMath.test.js +75 -0
  251. package/dist/test/SignedSafeMath.test.js.map +1 -0
  252. package/dist/test/UpdatableConsumer.test.d.ts +1 -0
  253. package/dist/test/UpdatableConsumer.test.js +144 -0
  254. package/dist/test/UpdatableConsumer.test.js.map +1 -0
  255. package/dist/tsconfig.tsbuildinfo +7737 -0
  256. package/package.json +50 -0
  257. package/v0.5/contracts/Chainlink.sol +125 -0
  258. package/v0.5/contracts/ChainlinkClient.sol +263 -0
  259. package/v0.5/contracts/LinkTokenReceiver.sol +70 -0
  260. package/v0.5/contracts/Median.sol +108 -0
  261. package/v0.5/contracts/Migrations.sol +23 -0
  262. package/v0.5/contracts/Oracle.sol +273 -0
  263. package/v0.5/contracts/PreCoordinator.sol +305 -0
  264. package/v0.5/contracts/dev/AggregatorInterface.sol +12 -0
  265. package/v0.5/contracts/dev/Coordinator.sol +411 -0
  266. package/v0.5/contracts/dev/CoordinatorInterface.sol +14 -0
  267. package/v0.5/contracts/dev/OracleSignaturesDecoder.sol +24 -0
  268. package/v0.5/contracts/dev/Owned.sol +61 -0
  269. package/v0.5/contracts/dev/PrepaidAggregator.sol +621 -0
  270. package/v0.5/contracts/dev/SafeMath128.sol +110 -0
  271. package/v0.5/contracts/dev/SafeMath32.sol +110 -0
  272. package/v0.5/contracts/dev/SafeMath64.sol +110 -0
  273. package/v0.5/contracts/dev/SchnorrSECP256K1.sol +147 -0
  274. package/v0.5/contracts/dev/ServiceAgreementDecoder.sol +59 -0
  275. package/v0.5/contracts/dev/VRF.sol +382 -0
  276. package/v0.5/contracts/dev/Whitelisted.sol +41 -0
  277. package/v0.5/contracts/dev/WhitelistedAggregator.sol +80 -0
  278. package/v0.5/contracts/interfaces/ChainlinkRequestInterface.sol +21 -0
  279. package/v0.5/contracts/interfaces/ENSInterface.sol +26 -0
  280. package/v0.5/contracts/interfaces/LinkTokenInterface.sol +16 -0
  281. package/v0.5/contracts/interfaces/OracleInterface.sol +16 -0
  282. package/v0.5/contracts/interfaces/PointerInterface.sol +5 -0
  283. package/v0.5/contracts/interfaces/WithdrawalInterface.sol +16 -0
  284. package/v0.5/contracts/tests/BasicConsumer.sol +13 -0
  285. package/v0.5/contracts/tests/ChainlinkTestHelper.sol +75 -0
  286. package/v0.5/contracts/tests/Consumer.sol +55 -0
  287. package/v0.5/contracts/tests/EmptyAggregator.sol +34 -0
  288. package/v0.5/contracts/tests/GetterSetter.sol +45 -0
  289. package/v0.5/contracts/tests/MaliciousChainlink.sol +75 -0
  290. package/v0.5/contracts/tests/MaliciousChainlinkClient.sol +109 -0
  291. package/v0.5/contracts/tests/MaliciousConsumer.sol +54 -0
  292. package/v0.5/contracts/tests/MaliciousRequester.sol +52 -0
  293. package/v0.5/contracts/tests/MeanAggregator.sol +75 -0
  294. package/v0.5/contracts/tests/MedianTestHelper.sol +15 -0
  295. package/v0.5/contracts/tests/OwnedTestHelper.sol +16 -0
  296. package/v0.5/contracts/tests/ServiceAgreementConsumer.sol +30 -0
  297. package/v0.5/contracts/vendor/Buffer.sol +301 -0
  298. package/v0.5/contracts/vendor/CBOR.sol +71 -0
  299. package/v0.5/contracts/vendor/ENSResolver.sol +5 -0
  300. package/v0.5/contracts/vendor/Ownable.sol +65 -0
  301. package/v0.5/contracts/vendor/SafeMath.sol +107 -0
  302. package/v0.5/contracts/vendor/SignedSafeMath.sol +22 -0
  303. package/v0.6/contracts/Chainlink.sol +125 -0
  304. package/v0.6/contracts/ChainlinkClient.sol +263 -0
  305. package/v0.6/contracts/LinkTokenReceiver.sol +70 -0
  306. package/v0.6/contracts/Oracle.sol +276 -0
  307. package/v0.6/contracts/interfaces/ChainlinkRequestInterface.sol +21 -0
  308. package/v0.6/contracts/interfaces/ENSInterface.sol +26 -0
  309. package/v0.6/contracts/interfaces/LinkTokenInterface.sol +16 -0
  310. package/v0.6/contracts/interfaces/OracleInterface.sol +16 -0
  311. package/v0.6/contracts/interfaces/PointerInterface.sol +5 -0
  312. package/v0.6/contracts/interfaces/WithdrawalInterface.sol +16 -0
  313. package/v0.6/contracts/tests/BasicConsumer.sol +13 -0
  314. package/v0.6/contracts/tests/Consumer.sol +55 -0
  315. package/v0.6/contracts/vendor/Buffer.sol +301 -0
  316. package/v0.6/contracts/vendor/CBOR.sol +71 -0
  317. package/v0.6/contracts/vendor/ENSResolver.sol +5 -0
  318. package/v0.6/contracts/vendor/Ownable.sol +65 -0
  319. package/v0.6/contracts/vendor/SafeMath.sol +107 -0
  320. package/zos.json +8 -0
  321. package/zos.rinkeby.json +104 -0
  322. package/zos.ropsten.json +104 -0
@@ -0,0 +1,164 @@
1
+ {
2
+ "__comment": "bytecode from verification on https://etherscan.io/address/0x514910771af9ca656af840dff83e8264ecf986ca#contracts",
3
+ "bytecode": "0x6060604052341561000f57600080fd5b5b600160a060020a03331660009081526001602052604090206b033b2e3c9fd0803ce800000090555b5b610c51806100486000396000f300606060405236156100b75763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100bc578063095ea7b31461014757806318160ddd1461017d57806323b872dd146101a2578063313ce567146101de5780634000aea014610207578063661884631461028057806370a08231146102b657806395d89b41146102e7578063a9059cbb14610372578063d73dd623146103a8578063dd62ed3e146103de575b600080fd5b34156100c757600080fd5b6100cf610415565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561010c5780820151818401525b6020016100f3565b50505050905090810190601f1680156101395780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561015257600080fd5b610169600160a060020a036004351660243561044c565b604051901515815260200160405180910390f35b341561018857600080fd5b610190610499565b60405190815260200160405180910390f35b34156101ad57600080fd5b610169600160a060020a03600435811690602435166044356104a9565b604051901515815260200160405180910390f35b34156101e957600080fd5b6101f16104f8565b60405160ff909116815260200160405180910390f35b341561021257600080fd5b61016960048035600160a060020a03169060248035919060649060443590810190830135806020601f820181900481020160405190810160405281815292919060208401838380828437509496506104fd95505050505050565b604051901515815260200160405180910390f35b341561028b57600080fd5b610169600160a060020a036004351660243561054c565b604051901515815260200160405180910390f35b34156102c157600080fd5b610190600160a060020a0360043516610648565b60405190815260200160405180910390f35b34156102f257600080fd5b6100cf610667565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561010c5780820151818401525b6020016100f3565b50505050905090810190601f1680156101395780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561037d57600080fd5b610169600160a060020a036004351660243561069e565b604051901515815260200160405180910390f35b34156103b357600080fd5b610169600160a060020a03600435166024356106eb565b604051901515815260200160405180910390f35b34156103e957600080fd5b610190600160a060020a0360043581169060243516610790565b60405190815260200160405180910390f35b60408051908101604052600f81527f436861696e4c696e6b20546f6b656e0000000000000000000000000000000000602082015281565b600082600160a060020a03811615801590610479575030600160a060020a031681600160a060020a031614155b151561048457600080fd5b61048e84846107bd565b91505b5b5092915050565b6b033b2e3c9fd0803ce800000081565b600082600160a060020a038116158015906104d6575030600160a060020a031681600160a060020a031614155b15156104e157600080fd5b6104ec85858561082a565b91505b5b509392505050565b601281565b600083600160a060020a0381161580159061052a575030600160a060020a031681600160a060020a031614155b151561053557600080fd5b6104ec85858561093c565b91505b5b509392505050565b600160a060020a033381166000908152600260209081526040808320938616835292905290812054808311156105a957600160a060020a0333811660009081526002602090815260408083209388168352929052908120556105e0565b6105b9818463ffffffff610a2316565b600160a060020a033381166000908152600260209081526040808320938916835292905220555b600160a060020a0333811660008181526002602090815260408083209489168084529490915290819020547f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925915190815260200160405180910390a3600191505b5092915050565b600160a060020a0381166000908152600160205260409020545b919050565b60408051908101604052600481527f4c494e4b00000000000000000000000000000000000000000000000000000000602082015281565b600082600160a060020a038116158015906106cb575030600160a060020a031681600160a060020a031614155b15156106d657600080fd5b61048e8484610a3a565b91505b5b5092915050565b600160a060020a033381166000908152600260209081526040808320938616835292905290812054610723908363ffffffff610afa16565b600160a060020a0333811660008181526002602090815260408083209489168084529490915290819020849055919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591905190815260200160405180910390a35060015b92915050565b600160a060020a038083166000908152600260209081526040808320938516835292905220545b92915050565b600160a060020a03338116600081815260026020908152604080832094871680845294909152808220859055909291907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a35060015b92915050565b600160a060020a03808416600081815260026020908152604080832033909516835293815283822054928252600190529182205461086e908463ffffffff610a2316565b600160a060020a0380871660009081526001602052604080822093909355908616815220546108a3908463ffffffff610afa16565b600160a060020a0385166000908152600160205260409020556108cc818463ffffffff610a2316565b600160a060020a03808716600081815260026020908152604080832033861684529091529081902093909355908616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9086905190815260200160405180910390a3600191505b509392505050565b60006109488484610a3a565b5083600160a060020a031633600160a060020a03167fe19260aff97b920c7df27010903aeb9c8d2be5d310a2c67824cf3f15396e4c16858560405182815260406020820181815290820183818151815260200191508051906020019080838360005b838110156109c35780820151818401525b6020016109aa565b50505050905090810190601f1680156109f05780820380516001836020036101000a031916815260200191505b50935050505060405180910390a3610a0784610b14565b15610a1757610a17848484610b23565b5b5060015b9392505050565b600082821115610a2f57fe5b508082035b92915050565b600160a060020a033316600090815260016020526040812054610a63908363ffffffff610a2316565b600160a060020a033381166000908152600160205260408082209390935590851681522054610a98908363ffffffff610afa16565b600160a060020a0380851660008181526001602052604090819020939093559133909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a35060015b92915050565b600082820183811015610b0957fe5b8091505b5092915050565b6000813b908111905b50919050565b82600160a060020a03811663a4c0ed363385856040518463ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018084600160a060020a0316600160a060020a0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610bbd5780820151818401525b602001610ba4565b50505050905090810190601f168015610bea5780820380516001836020036101000a031916815260200191505b50945050505050600060405180830381600087803b1515610c0a57600080fd5b6102c65a03f11515610c1b57600080fd5b5050505b505050505600a165627a7a72305820c5f438ff94e5ddaf2058efa0019e246c636c37a622e04bb67827c7374acad8d60029",
4
+ "abi": [
5
+ {
6
+ "constant": true,
7
+ "inputs": [],
8
+ "name": "name",
9
+ "outputs": [{ "name": "", "type": "string" }],
10
+ "payable": false,
11
+ "stateMutability": "view",
12
+ "type": "function"
13
+ },
14
+ {
15
+ "constant": false,
16
+ "inputs": [
17
+ { "name": "_spender", "type": "address" },
18
+ { "name": "_value", "type": "uint256" }
19
+ ],
20
+ "name": "approve",
21
+ "outputs": [{ "name": "", "type": "bool" }],
22
+ "payable": false,
23
+ "stateMutability": "nonpayable",
24
+ "type": "function"
25
+ },
26
+ {
27
+ "constant": true,
28
+ "inputs": [],
29
+ "name": "totalSupply",
30
+ "outputs": [{ "name": "", "type": "uint256" }],
31
+ "payable": false,
32
+ "stateMutability": "view",
33
+ "type": "function"
34
+ },
35
+ {
36
+ "constant": false,
37
+ "inputs": [
38
+ { "name": "_from", "type": "address" },
39
+ { "name": "_to", "type": "address" },
40
+ { "name": "_value", "type": "uint256" }
41
+ ],
42
+ "name": "transferFrom",
43
+ "outputs": [{ "name": "", "type": "bool" }],
44
+ "payable": false,
45
+ "stateMutability": "nonpayable",
46
+ "type": "function"
47
+ },
48
+ {
49
+ "constant": true,
50
+ "inputs": [],
51
+ "name": "decimals",
52
+ "outputs": [{ "name": "", "type": "uint8" }],
53
+ "payable": false,
54
+ "stateMutability": "view",
55
+ "type": "function"
56
+ },
57
+ {
58
+ "constant": false,
59
+ "inputs": [
60
+ { "name": "_to", "type": "address" },
61
+ { "name": "_value", "type": "uint256" },
62
+ { "name": "_data", "type": "bytes" }
63
+ ],
64
+ "name": "transferAndCall",
65
+ "outputs": [{ "name": "success", "type": "bool" }],
66
+ "payable": false,
67
+ "stateMutability": "nonpayable",
68
+ "type": "function"
69
+ },
70
+ {
71
+ "constant": false,
72
+ "inputs": [
73
+ { "name": "_spender", "type": "address" },
74
+ { "name": "_subtractedValue", "type": "uint256" }
75
+ ],
76
+ "name": "decreaseApproval",
77
+ "outputs": [{ "name": "success", "type": "bool" }],
78
+ "payable": false,
79
+ "stateMutability": "nonpayable",
80
+ "type": "function"
81
+ },
82
+ {
83
+ "constant": true,
84
+ "inputs": [{ "name": "_owner", "type": "address" }],
85
+ "name": "balanceOf",
86
+ "outputs": [{ "name": "balance", "type": "uint256" }],
87
+ "payable": false,
88
+ "stateMutability": "view",
89
+ "type": "function"
90
+ },
91
+ {
92
+ "constant": true,
93
+ "inputs": [],
94
+ "name": "symbol",
95
+ "outputs": [{ "name": "", "type": "string" }],
96
+ "payable": false,
97
+ "stateMutability": "view",
98
+ "type": "function"
99
+ },
100
+ {
101
+ "constant": false,
102
+ "inputs": [
103
+ { "name": "_to", "type": "address" },
104
+ { "name": "_value", "type": "uint256" }
105
+ ],
106
+ "name": "transfer",
107
+ "outputs": [{ "name": "success", "type": "bool" }],
108
+ "payable": false,
109
+ "stateMutability": "nonpayable",
110
+ "type": "function"
111
+ },
112
+ {
113
+ "constant": false,
114
+ "inputs": [
115
+ { "name": "_spender", "type": "address" },
116
+ { "name": "_addedValue", "type": "uint256" }
117
+ ],
118
+ "name": "increaseApproval",
119
+ "outputs": [{ "name": "success", "type": "bool" }],
120
+ "payable": false,
121
+ "stateMutability": "nonpayable",
122
+ "type": "function"
123
+ },
124
+ {
125
+ "constant": true,
126
+ "inputs": [
127
+ { "name": "_owner", "type": "address" },
128
+ { "name": "_spender", "type": "address" }
129
+ ],
130
+ "name": "allowance",
131
+ "outputs": [{ "name": "remaining", "type": "uint256" }],
132
+ "payable": false,
133
+ "stateMutability": "view",
134
+ "type": "function"
135
+ },
136
+ {
137
+ "inputs": [],
138
+ "payable": false,
139
+ "stateMutability": "nonpayable",
140
+ "type": "constructor"
141
+ },
142
+ {
143
+ "anonymous": false,
144
+ "inputs": [
145
+ { "indexed": true, "name": "from", "type": "address" },
146
+ { "indexed": true, "name": "to", "type": "address" },
147
+ { "indexed": false, "name": "value", "type": "uint256" },
148
+ { "indexed": false, "name": "data", "type": "bytes" }
149
+ ],
150
+ "name": "Transfer",
151
+ "type": "event"
152
+ },
153
+ {
154
+ "anonymous": false,
155
+ "inputs": [
156
+ { "indexed": true, "name": "owner", "type": "address" },
157
+ { "indexed": true, "name": "spender", "type": "address" },
158
+ { "indexed": false, "name": "value", "type": "uint256" }
159
+ ],
160
+ "name": "Approval",
161
+ "type": "event"
162
+ }
163
+ ]
164
+ }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * The type of any function that is deployable
3
+ */
4
+ declare type Deployable = {
5
+ deploy: (...deployArgs: any[]) => Promise<any>;
6
+ };
7
+ /**
8
+ * Get the return type of a function, and unbox any promises
9
+ */
10
+ export declare type Instance<T extends Deployable> = T extends {
11
+ deploy: (...deployArgs: any[]) => Promise<infer U>;
12
+ } ? U : never;
13
+ export {};
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=contract.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contract.js","sourceRoot":"","sources":["../../src/contract.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ import debug from 'debug';
2
+ /**
3
+ * This creates a debug logger instance to be used within our internal code.
4
+ * @see https://www.npmjs.com/package/debug to see how to use the logger at runtime
5
+ * @see wallet.ts makes extensive use of this function.
6
+ * @param name The root namespace to assign to the log messages
7
+ */
8
+ export declare function makeDebug(name: string): debug.Debugger;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const debug_1 = __importDefault(require("debug"));
7
+ /**
8
+ * This creates a debug logger instance to be used within our internal code.
9
+ * @see https://www.npmjs.com/package/debug to see how to use the logger at runtime
10
+ * @see wallet.ts makes extensive use of this function.
11
+ * @param name The root namespace to assign to the log messages
12
+ */
13
+ function makeDebug(name) {
14
+ return debug_1.default(name);
15
+ }
16
+ exports.makeDebug = makeDebug;
17
+ //# sourceMappingURL=debug.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"debug.js","sourceRoot":"","sources":["../../src/debug.ts"],"names":[],"mappings":";;;;;AAAA,kDAAyB;AAEzB;;;;;GAKG;AACH,SAAgB,SAAS,CAAC,IAAY;IACpC,OAAO,eAAK,CAAC,IAAI,CAAC,CAAA;AACpB,CAAC;AAFD,8BAEC"}
@@ -0,0 +1,372 @@
1
+ /* Generated by ts-generator ver. 0.0.8 */
2
+ /* tslint:disable */
3
+
4
+ import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
5
+ import { Listener, Provider } from "ethers/providers";
6
+ import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
7
+ import {
8
+ TransactionOverrides,
9
+ TypedEventDescription,
10
+ TypedFunctionDescription
11
+ } from ".";
12
+
13
+ interface AggregatorInterface extends Interface {
14
+ functions: {
15
+ cancelRequest: TypedFunctionDescription<{
16
+ encode([_requestId, _payment, _expiration]: [
17
+ Arrayish,
18
+ BigNumberish,
19
+ BigNumberish
20
+ ]): string;
21
+ }>;
22
+
23
+ authorizedRequesters: TypedFunctionDescription<{
24
+ encode([]: [string]): string;
25
+ }>;
26
+
27
+ jobIds: TypedFunctionDescription<{ encode([]: [BigNumberish]): string }>;
28
+
29
+ latestAnswer: TypedFunctionDescription<{ encode([]: []): string }>;
30
+
31
+ minimumResponses: TypedFunctionDescription<{ encode([]: []): string }>;
32
+
33
+ oracles: TypedFunctionDescription<{ encode([]: [BigNumberish]): string }>;
34
+
35
+ transferLINK: TypedFunctionDescription<{
36
+ encode([_recipient, _amount]: [string, BigNumberish]): string;
37
+ }>;
38
+
39
+ latestRound: TypedFunctionDescription<{ encode([]: []): string }>;
40
+
41
+ chainlinkCallback: TypedFunctionDescription<{
42
+ encode([_clRequestId, _response]: [Arrayish, BigNumberish]): string;
43
+ }>;
44
+
45
+ renounceOwnership: TypedFunctionDescription<{ encode([]: []): string }>;
46
+
47
+ updateRequestDetails: TypedFunctionDescription<{
48
+ encode([_paymentAmount, _minimumResponses, _oracles, _jobIds]: [
49
+ BigNumberish,
50
+ BigNumberish,
51
+ string[],
52
+ Arrayish[]
53
+ ]): string;
54
+ }>;
55
+
56
+ latestTimestamp: TypedFunctionDescription<{ encode([]: []): string }>;
57
+
58
+ destroy: TypedFunctionDescription<{ encode([]: []): string }>;
59
+
60
+ owner: TypedFunctionDescription<{ encode([]: []): string }>;
61
+
62
+ getAnswer: TypedFunctionDescription<{
63
+ encode([_roundId]: [BigNumberish]): string;
64
+ }>;
65
+
66
+ getTimestamp: TypedFunctionDescription<{
67
+ encode([_roundId]: [BigNumberish]): string;
68
+ }>;
69
+
70
+ paymentAmount: TypedFunctionDescription<{ encode([]: []): string }>;
71
+
72
+ requestRateUpdate: TypedFunctionDescription<{ encode([]: []): string }>;
73
+
74
+ setAuthorization: TypedFunctionDescription<{
75
+ encode([_requester, _allowed]: [string, boolean]): string;
76
+ }>;
77
+
78
+ transferOwnership: TypedFunctionDescription<{
79
+ encode([_newOwner]: [string]): string;
80
+ }>;
81
+ };
82
+
83
+ events: {
84
+ ResponseReceived: TypedEventDescription<{
85
+ encodeTopics([response, answerId, sender]: [
86
+ BigNumberish | null,
87
+ BigNumberish | null,
88
+ string | null
89
+ ]): string[];
90
+ }>;
91
+
92
+ OwnershipRenounced: TypedEventDescription<{
93
+ encodeTopics([previousOwner]: [string | null]): string[];
94
+ }>;
95
+
96
+ OwnershipTransferred: TypedEventDescription<{
97
+ encodeTopics([previousOwner, newOwner]: [
98
+ string | null,
99
+ string | null
100
+ ]): string[];
101
+ }>;
102
+
103
+ ChainlinkRequested: TypedEventDescription<{
104
+ encodeTopics([id]: [Arrayish | null]): string[];
105
+ }>;
106
+
107
+ ChainlinkFulfilled: TypedEventDescription<{
108
+ encodeTopics([id]: [Arrayish | null]): string[];
109
+ }>;
110
+
111
+ ChainlinkCancelled: TypedEventDescription<{
112
+ encodeTopics([id]: [Arrayish | null]): string[];
113
+ }>;
114
+
115
+ AnswerUpdated: TypedEventDescription<{
116
+ encodeTopics([current, roundId, timestamp]: [
117
+ BigNumberish | null,
118
+ BigNumberish | null,
119
+ null
120
+ ]): string[];
121
+ }>;
122
+
123
+ NewRound: TypedEventDescription<{
124
+ encodeTopics([roundId, startedBy]: [
125
+ BigNumberish | null,
126
+ string | null
127
+ ]): string[];
128
+ }>;
129
+ };
130
+ }
131
+
132
+ export class Aggregator extends Contract {
133
+ connect(signerOrProvider: Signer | Provider | string): Aggregator;
134
+ attach(addressOrName: string): Aggregator;
135
+ deployed(): Promise<Aggregator>;
136
+
137
+ on(event: EventFilter | string, listener: Listener): Aggregator;
138
+ once(event: EventFilter | string, listener: Listener): Aggregator;
139
+ addListener(eventName: EventFilter | string, listener: Listener): Aggregator;
140
+ removeAllListeners(eventName: EventFilter | string): Aggregator;
141
+ removeListener(eventName: any, listener: Listener): Aggregator;
142
+
143
+ interface: AggregatorInterface;
144
+
145
+ functions: {
146
+ cancelRequest(
147
+ _requestId: Arrayish,
148
+ _payment: BigNumberish,
149
+ _expiration: BigNumberish,
150
+ overrides?: TransactionOverrides
151
+ ): Promise<ContractTransaction>;
152
+
153
+ authorizedRequesters(arg0: string): Promise<boolean>;
154
+
155
+ jobIds(arg0: BigNumberish): Promise<string>;
156
+
157
+ latestAnswer(): Promise<BigNumber>;
158
+
159
+ minimumResponses(): Promise<BigNumber>;
160
+
161
+ oracles(arg0: BigNumberish): Promise<string>;
162
+
163
+ transferLINK(
164
+ _recipient: string,
165
+ _amount: BigNumberish,
166
+ overrides?: TransactionOverrides
167
+ ): Promise<ContractTransaction>;
168
+
169
+ latestRound(): Promise<BigNumber>;
170
+
171
+ chainlinkCallback(
172
+ _clRequestId: Arrayish,
173
+ _response: BigNumberish,
174
+ overrides?: TransactionOverrides
175
+ ): Promise<ContractTransaction>;
176
+
177
+ renounceOwnership(
178
+ overrides?: TransactionOverrides
179
+ ): Promise<ContractTransaction>;
180
+
181
+ updateRequestDetails(
182
+ _paymentAmount: BigNumberish,
183
+ _minimumResponses: BigNumberish,
184
+ _oracles: string[],
185
+ _jobIds: Arrayish[],
186
+ overrides?: TransactionOverrides
187
+ ): Promise<ContractTransaction>;
188
+
189
+ latestTimestamp(): Promise<BigNumber>;
190
+
191
+ destroy(overrides?: TransactionOverrides): Promise<ContractTransaction>;
192
+
193
+ owner(): Promise<string>;
194
+
195
+ getAnswer(_roundId: BigNumberish): Promise<BigNumber>;
196
+
197
+ getTimestamp(_roundId: BigNumberish): Promise<BigNumber>;
198
+
199
+ paymentAmount(): Promise<BigNumber>;
200
+
201
+ requestRateUpdate(
202
+ overrides?: TransactionOverrides
203
+ ): Promise<ContractTransaction>;
204
+
205
+ setAuthorization(
206
+ _requester: string,
207
+ _allowed: boolean,
208
+ overrides?: TransactionOverrides
209
+ ): Promise<ContractTransaction>;
210
+
211
+ transferOwnership(
212
+ _newOwner: string,
213
+ overrides?: TransactionOverrides
214
+ ): Promise<ContractTransaction>;
215
+ };
216
+
217
+ cancelRequest(
218
+ _requestId: Arrayish,
219
+ _payment: BigNumberish,
220
+ _expiration: BigNumberish,
221
+ overrides?: TransactionOverrides
222
+ ): Promise<ContractTransaction>;
223
+
224
+ authorizedRequesters(arg0: string): Promise<boolean>;
225
+
226
+ jobIds(arg0: BigNumberish): Promise<string>;
227
+
228
+ latestAnswer(): Promise<BigNumber>;
229
+
230
+ minimumResponses(): Promise<BigNumber>;
231
+
232
+ oracles(arg0: BigNumberish): Promise<string>;
233
+
234
+ transferLINK(
235
+ _recipient: string,
236
+ _amount: BigNumberish,
237
+ overrides?: TransactionOverrides
238
+ ): Promise<ContractTransaction>;
239
+
240
+ latestRound(): Promise<BigNumber>;
241
+
242
+ chainlinkCallback(
243
+ _clRequestId: Arrayish,
244
+ _response: BigNumberish,
245
+ overrides?: TransactionOverrides
246
+ ): Promise<ContractTransaction>;
247
+
248
+ renounceOwnership(
249
+ overrides?: TransactionOverrides
250
+ ): Promise<ContractTransaction>;
251
+
252
+ updateRequestDetails(
253
+ _paymentAmount: BigNumberish,
254
+ _minimumResponses: BigNumberish,
255
+ _oracles: string[],
256
+ _jobIds: Arrayish[],
257
+ overrides?: TransactionOverrides
258
+ ): Promise<ContractTransaction>;
259
+
260
+ latestTimestamp(): Promise<BigNumber>;
261
+
262
+ destroy(overrides?: TransactionOverrides): Promise<ContractTransaction>;
263
+
264
+ owner(): Promise<string>;
265
+
266
+ getAnswer(_roundId: BigNumberish): Promise<BigNumber>;
267
+
268
+ getTimestamp(_roundId: BigNumberish): Promise<BigNumber>;
269
+
270
+ paymentAmount(): Promise<BigNumber>;
271
+
272
+ requestRateUpdate(
273
+ overrides?: TransactionOverrides
274
+ ): Promise<ContractTransaction>;
275
+
276
+ setAuthorization(
277
+ _requester: string,
278
+ _allowed: boolean,
279
+ overrides?: TransactionOverrides
280
+ ): Promise<ContractTransaction>;
281
+
282
+ transferOwnership(
283
+ _newOwner: string,
284
+ overrides?: TransactionOverrides
285
+ ): Promise<ContractTransaction>;
286
+
287
+ filters: {
288
+ ResponseReceived(
289
+ response: BigNumberish | null,
290
+ answerId: BigNumberish | null,
291
+ sender: string | null
292
+ ): EventFilter;
293
+
294
+ OwnershipRenounced(previousOwner: string | null): EventFilter;
295
+
296
+ OwnershipTransferred(
297
+ previousOwner: string | null,
298
+ newOwner: string | null
299
+ ): EventFilter;
300
+
301
+ ChainlinkRequested(id: Arrayish | null): EventFilter;
302
+
303
+ ChainlinkFulfilled(id: Arrayish | null): EventFilter;
304
+
305
+ ChainlinkCancelled(id: Arrayish | null): EventFilter;
306
+
307
+ AnswerUpdated(
308
+ current: BigNumberish | null,
309
+ roundId: BigNumberish | null,
310
+ timestamp: null
311
+ ): EventFilter;
312
+
313
+ NewRound(
314
+ roundId: BigNumberish | null,
315
+ startedBy: string | null
316
+ ): EventFilter;
317
+ };
318
+
319
+ estimate: {
320
+ cancelRequest(
321
+ _requestId: Arrayish,
322
+ _payment: BigNumberish,
323
+ _expiration: BigNumberish
324
+ ): Promise<BigNumber>;
325
+
326
+ authorizedRequesters(arg0: string): Promise<BigNumber>;
327
+
328
+ jobIds(arg0: BigNumberish): Promise<BigNumber>;
329
+
330
+ latestAnswer(): Promise<BigNumber>;
331
+
332
+ minimumResponses(): Promise<BigNumber>;
333
+
334
+ oracles(arg0: BigNumberish): Promise<BigNumber>;
335
+
336
+ transferLINK(_recipient: string, _amount: BigNumberish): Promise<BigNumber>;
337
+
338
+ latestRound(): Promise<BigNumber>;
339
+
340
+ chainlinkCallback(
341
+ _clRequestId: Arrayish,
342
+ _response: BigNumberish
343
+ ): Promise<BigNumber>;
344
+
345
+ renounceOwnership(): Promise<BigNumber>;
346
+
347
+ updateRequestDetails(
348
+ _paymentAmount: BigNumberish,
349
+ _minimumResponses: BigNumberish,
350
+ _oracles: string[],
351
+ _jobIds: Arrayish[]
352
+ ): Promise<BigNumber>;
353
+
354
+ latestTimestamp(): Promise<BigNumber>;
355
+
356
+ destroy(): Promise<BigNumber>;
357
+
358
+ owner(): Promise<BigNumber>;
359
+
360
+ getAnswer(_roundId: BigNumberish): Promise<BigNumber>;
361
+
362
+ getTimestamp(_roundId: BigNumberish): Promise<BigNumber>;
363
+
364
+ paymentAmount(): Promise<BigNumber>;
365
+
366
+ requestRateUpdate(): Promise<BigNumber>;
367
+
368
+ setAuthorization(_requester: string, _allowed: boolean): Promise<BigNumber>;
369
+
370
+ transferOwnership(_newOwner: string): Promise<BigNumber>;
371
+ };
372
+ }
@@ -0,0 +1,13 @@
1
+ import { ContractFactory, Signer } from "ethers";
2
+ import { Provider } from "ethers/providers";
3
+ import { UnsignedTransaction } from "ethers/utils/transaction";
4
+ import { Arrayish, BigNumberish } from "ethers/utils";
5
+ import { Aggregator } from "./Aggregator";
6
+ export declare class AggregatorFactory extends ContractFactory {
7
+ constructor(signer?: Signer);
8
+ deploy(_link: string, _paymentAmount: BigNumberish, _minimumResponses: BigNumberish, _oracles: string[], _jobIds: Arrayish[]): Promise<Aggregator>;
9
+ getDeployTransaction(_link: string, _paymentAmount: BigNumberish, _minimumResponses: BigNumberish, _oracles: string[], _jobIds: Arrayish[]): UnsignedTransaction;
10
+ attach(address: string): Aggregator;
11
+ connect(signer: Signer): AggregatorFactory;
12
+ static connect(address: string, signerOrProvider: Signer | Provider): Aggregator;
13
+ }