chai-link 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/contracts/Aggregator.sol +420 -0
  3. package/contracts/AggregatorProxy.sol +99 -0
  4. package/contracts/Chainlink.sol +125 -0
  5. package/contracts/ChainlinkClient.sol +262 -0
  6. package/contracts/Chainlinked.sol +141 -0
  7. package/contracts/Migrations.sol +23 -0
  8. package/contracts/Oracle.sol +320 -0
  9. package/contracts/Pointer.sol +9 -0
  10. package/contracts/interfaces/AggregatorInterface.sol +12 -0
  11. package/contracts/interfaces/ChainlinkRequestInterface.sol +21 -0
  12. package/contracts/interfaces/ENSInterface.sol +26 -0
  13. package/contracts/interfaces/LinkTokenInterface.sol +16 -0
  14. package/contracts/interfaces/OracleInterface.sol +16 -0
  15. package/contracts/interfaces/PointerInterface.sol +5 -0
  16. package/contracts/tests/BasicConsumer.sol +13 -0
  17. package/contracts/tests/ConcreteChainlink.sol +76 -0
  18. package/contracts/tests/ConcreteChainlinked.sol +100 -0
  19. package/contracts/tests/ConcreteSignedSafeMath.sol +16 -0
  20. package/contracts/tests/Consumer.sol +47 -0
  21. package/contracts/tests/EmptyOracle.sol +19 -0
  22. package/contracts/tests/GetterSetter.sol +45 -0
  23. package/contracts/tests/MaliciousChainlink.sol +76 -0
  24. package/contracts/tests/MaliciousChainlinked.sol +109 -0
  25. package/contracts/tests/MaliciousConsumer.sol +54 -0
  26. package/contracts/tests/MaliciousRequester.sol +52 -0
  27. package/contracts/tests/UpdatableConsumer.sol +24 -0
  28. package/contracts/vendor/Buffer.sol +301 -0
  29. package/contracts/vendor/CBOR.sol +71 -0
  30. package/contracts/vendor/ENS.sol +26 -0
  31. package/contracts/vendor/ENSRegistry.sol +99 -0
  32. package/contracts/vendor/ENSResolver.sol +5 -0
  33. package/contracts/vendor/Ownable.sol +64 -0
  34. package/contracts/vendor/PublicResolver.sol +238 -0
  35. package/contracts/vendor/SafeMath.sol +52 -0
  36. package/contracts/vendor/SignedSafeMath.sol +21 -0
  37. package/dist/artifacts/Aggregator.json +580 -0
  38. package/dist/artifacts/AggregatorInterface.json +172 -0
  39. package/dist/artifacts/AggregatorProxy.json +294 -0
  40. package/dist/artifacts/BasicConsumer.json +250 -0
  41. package/dist/artifacts/Buffer.json +52 -0
  42. package/dist/artifacts/CBOR.json +56 -0
  43. package/dist/artifacts/Chainlink.json +60 -0
  44. package/dist/artifacts/ChainlinkClient.json +125 -0
  45. package/dist/artifacts/ChainlinkRequestInterface.json +121 -0
  46. package/dist/artifacts/Chainlinked.json +129 -0
  47. package/dist/artifacts/ConcreteChainlink.json +190 -0
  48. package/dist/artifacts/ConcreteChainlinked.json +387 -0
  49. package/dist/artifacts/ConcreteSignedSafeMath.json +80 -0
  50. package/dist/artifacts/Consumer.json +227 -0
  51. package/dist/artifacts/ENS.json +259 -0
  52. package/dist/artifacts/ENSInterface.json +259 -0
  53. package/dist/artifacts/ENSRegistry.json +269 -0
  54. package/dist/artifacts/ENSResolver.json +72 -0
  55. package/dist/artifacts/EmptyOracle.json +259 -0
  56. package/dist/artifacts/GetterSetter.json +278 -0
  57. package/dist/artifacts/LinkTokenInterface.json +292 -0
  58. package/dist/artifacts/MaliciousChainlink.json +60 -0
  59. package/dist/artifacts/MaliciousChainlinked.json +137 -0
  60. package/dist/artifacts/MaliciousConsumer.json +288 -0
  61. package/dist/artifacts/MaliciousRequester.json +266 -0
  62. package/dist/artifacts/Migrations.json +115 -0
  63. package/dist/artifacts/Oracle.json +426 -0
  64. package/dist/artifacts/OracleInterface.json +161 -0
  65. package/dist/artifacts/Ownable.json +125 -0
  66. package/dist/artifacts/Pointer.json +78 -0
  67. package/dist/artifacts/PointerInterface.json +67 -0
  68. package/dist/artifacts/PublicResolver.json +503 -0
  69. package/dist/artifacts/SafeMath.json +52 -0
  70. package/dist/artifacts/SignedSafeMath.json +52 -0
  71. package/dist/artifacts/UpdatableConsumer.json +287 -0
  72. package/dist/src/LinkToken.d.ts +40 -0
  73. package/dist/src/LinkToken.json +164 -0
  74. package/dist/src/contract.d.ts +13 -0
  75. package/dist/src/contract.js +3 -0
  76. package/dist/src/contract.js.map +1 -0
  77. package/dist/src/debug.d.ts +8 -0
  78. package/dist/src/debug.js +17 -0
  79. package/dist/src/debug.js.map +1 -0
  80. package/dist/src/generated/Aggregator.d.ts +372 -0
  81. package/dist/src/generated/AggregatorFactory.d.ts +13 -0
  82. package/dist/src/generated/AggregatorFactory.js +505 -0
  83. package/dist/src/generated/AggregatorFactory.js.map +1 -0
  84. package/dist/src/generated/AggregatorInterface.d.ts +110 -0
  85. package/dist/src/generated/AggregatorInterfaceFactory.d.ts +6 -0
  86. package/dist/src/generated/AggregatorInterfaceFactory.js +133 -0
  87. package/dist/src/generated/AggregatorInterfaceFactory.js.map +1 -0
  88. package/dist/src/generated/AggregatorProxy.d.ts +196 -0
  89. package/dist/src/generated/AggregatorProxyFactory.d.ts +12 -0
  90. package/dist/src/generated/AggregatorProxyFactory.js +263 -0
  91. package/dist/src/generated/AggregatorProxyFactory.js.map +1 -0
  92. package/dist/src/generated/BasicConsumer.d.ts +154 -0
  93. package/dist/src/generated/BasicConsumerFactory.d.ts +13 -0
  94. package/dist/src/generated/BasicConsumerFactory.js +183 -0
  95. package/dist/src/generated/BasicConsumerFactory.js.map +1 -0
  96. package/dist/src/generated/ChainlinkClient.d.ts +58 -0
  97. package/dist/src/generated/ChainlinkClientFactory.d.ts +12 -0
  98. package/dist/src/generated/ChainlinkClientFactory.js +66 -0
  99. package/dist/src/generated/ChainlinkClientFactory.js.map +1 -0
  100. package/dist/src/generated/ChainlinkRequestInterface.d.ts +139 -0
  101. package/dist/src/generated/ChainlinkRequestInterfaceFactory.d.ts +6 -0
  102. package/dist/src/generated/ChainlinkRequestInterfaceFactory.js +82 -0
  103. package/dist/src/generated/ChainlinkRequestInterfaceFactory.js.map +1 -0
  104. package/dist/src/generated/Chainlinked.d.ts +55 -0
  105. package/dist/src/generated/ChainlinkedFactory.d.ts +12 -0
  106. package/dist/src/generated/ChainlinkedFactory.js +66 -0
  107. package/dist/src/generated/ChainlinkedFactory.js.map +1 -0
  108. package/dist/src/generated/ConcreteChainlink.d.ts +158 -0
  109. package/dist/src/generated/ConcreteChainlinkFactory.d.ts +12 -0
  110. package/dist/src/generated/ConcreteChainlinkFactory.js +155 -0
  111. package/dist/src/generated/ConcreteChainlinkFactory.js.map +1 -0
  112. package/dist/src/generated/ConcreteChainlinked.d.ts +300 -0
  113. package/dist/src/generated/ConcreteChainlinkedFactory.d.ts +12 -0
  114. package/dist/src/generated/ConcreteChainlinkedFactory.js +320 -0
  115. package/dist/src/generated/ConcreteChainlinkedFactory.js.map +1 -0
  116. package/dist/src/generated/ConcreteSignedSafeMath.d.ts +50 -0
  117. package/dist/src/generated/ConcreteSignedSafeMathFactory.d.ts +12 -0
  118. package/dist/src/generated/ConcreteSignedSafeMathFactory.js +53 -0
  119. package/dist/src/generated/ConcreteSignedSafeMathFactory.js.map +1 -0
  120. package/dist/src/generated/Consumer.d.ts +151 -0
  121. package/dist/src/generated/ConsumerFactory.d.ts +12 -0
  122. package/dist/src/generated/ConsumerFactory.js +164 -0
  123. package/dist/src/generated/ConsumerFactory.js.map +1 -0
  124. package/dist/src/generated/ENS.d.ts +171 -0
  125. package/dist/src/generated/ENSFactory.d.ts +6 -0
  126. package/dist/src/generated/ENSFactory.js +220 -0
  127. package/dist/src/generated/ENSFactory.js.map +1 -0
  128. package/dist/src/generated/ENSInterface.d.ts +174 -0
  129. package/dist/src/generated/ENSInterfaceFactory.d.ts +6 -0
  130. package/dist/src/generated/ENSInterfaceFactory.js +220 -0
  131. package/dist/src/generated/ENSInterfaceFactory.js.map +1 -0
  132. package/dist/src/generated/ENSRegistry.d.ts +171 -0
  133. package/dist/src/generated/ENSRegistryFactory.d.ts +12 -0
  134. package/dist/src/generated/ENSRegistryFactory.js +242 -0
  135. package/dist/src/generated/ENSRegistryFactory.js.map +1 -0
  136. package/dist/src/generated/ENSResolver.d.ts +45 -0
  137. package/dist/src/generated/ENSResolverFactory.d.ts +6 -0
  138. package/dist/src/generated/ENSResolverFactory.js +33 -0
  139. package/dist/src/generated/ENSResolverFactory.js.map +1 -0
  140. package/dist/src/generated/EmptyOracle.d.ts +228 -0
  141. package/dist/src/generated/EmptyOracleFactory.d.ts +12 -0
  142. package/dist/src/generated/EmptyOracleFactory.js +228 -0
  143. package/dist/src/generated/EmptyOracleFactory.js.map +1 -0
  144. package/dist/src/generated/GetterSetter.d.ts +207 -0
  145. package/dist/src/generated/GetterSetterFactory.d.ts +12 -0
  146. package/dist/src/generated/GetterSetterFactory.js +255 -0
  147. package/dist/src/generated/GetterSetterFactory.js.map +1 -0
  148. package/dist/src/generated/LinkToken.d.ts +243 -0
  149. package/dist/src/generated/LinkTokenFactory.d.ts +12 -0
  150. package/dist/src/generated/LinkTokenFactory.js +329 -0
  151. package/dist/src/generated/LinkTokenFactory.js.map +1 -0
  152. package/dist/src/generated/LinkTokenInterface.d.ts +230 -0
  153. package/dist/src/generated/LinkTokenInterfaceFactory.d.ts +6 -0
  154. package/dist/src/generated/LinkTokenInterfaceFactory.js +253 -0
  155. package/dist/src/generated/LinkTokenInterfaceFactory.js.map +1 -0
  156. package/dist/src/generated/MaliciousChainlinked.d.ts +58 -0
  157. package/dist/src/generated/MaliciousChainlinkedFactory.d.ts +12 -0
  158. package/dist/src/generated/MaliciousChainlinkedFactory.js +66 -0
  159. package/dist/src/generated/MaliciousChainlinkedFactory.js.map +1 -0
  160. package/dist/src/generated/MaliciousConsumer.d.ts +179 -0
  161. package/dist/src/generated/MaliciousConsumerFactory.d.ts +12 -0
  162. package/dist/src/generated/MaliciousConsumerFactory.js +221 -0
  163. package/dist/src/generated/MaliciousConsumerFactory.js.map +1 -0
  164. package/dist/src/generated/MaliciousRequester.d.ts +161 -0
  165. package/dist/src/generated/MaliciousRequesterFactory.d.ts +12 -0
  166. package/dist/src/generated/MaliciousRequesterFactory.js +191 -0
  167. package/dist/src/generated/MaliciousRequesterFactory.js.map +1 -0
  168. package/dist/src/generated/Migrations.d.ts +87 -0
  169. package/dist/src/generated/MigrationsFactory.d.ts +12 -0
  170. package/dist/src/generated/MigrationsFactory.js +92 -0
  171. package/dist/src/generated/MigrationsFactory.js.map +1 -0
  172. package/dist/src/generated/Oracle.d.ts +362 -0
  173. package/dist/src/generated/OracleFactory.d.ts +12 -0
  174. package/dist/src/generated/OracleFactory.js +383 -0
  175. package/dist/src/generated/OracleFactory.js.map +1 -0
  176. package/dist/src/generated/OracleInterface.d.ts +144 -0
  177. package/dist/src/generated/OracleInterfaceFactory.d.ts +6 -0
  178. package/dist/src/generated/OracleInterfaceFactory.js +122 -0
  179. package/dist/src/generated/OracleInterfaceFactory.js.map +1 -0
  180. package/dist/src/generated/Ownable.d.ts +91 -0
  181. package/dist/src/generated/OwnableFactory.d.ts +12 -0
  182. package/dist/src/generated/OwnableFactory.js +102 -0
  183. package/dist/src/generated/OwnableFactory.js.map +1 -0
  184. package/dist/src/generated/Pointer.d.ts +45 -0
  185. package/dist/src/generated/PointerFactory.d.ts +12 -0
  186. package/dist/src/generated/PointerFactory.js +55 -0
  187. package/dist/src/generated/PointerFactory.js.map +1 -0
  188. package/dist/src/generated/PointerInterface.d.ts +48 -0
  189. package/dist/src/generated/PointerInterfaceFactory.d.ts +6 -0
  190. package/dist/src/generated/PointerInterfaceFactory.js +28 -0
  191. package/dist/src/generated/PointerInterfaceFactory.js.map +1 -0
  192. package/dist/src/generated/PublicResolver.d.ts +336 -0
  193. package/dist/src/generated/PublicResolverFactory.d.ts +12 -0
  194. package/dist/src/generated/PublicResolverFactory.js +476 -0
  195. package/dist/src/generated/PublicResolverFactory.js.map +1 -0
  196. package/dist/src/generated/UpdatableConsumer.d.ts +180 -0
  197. package/dist/src/generated/UpdatableConsumerFactory.d.ts +13 -0
  198. package/dist/src/generated/UpdatableConsumerFactory.js +220 -0
  199. package/dist/src/generated/UpdatableConsumerFactory.js.map +1 -0
  200. package/dist/src/generated/index.d.ts +44 -0
  201. package/dist/src/generated/index.js +41 -0
  202. package/dist/src/generated/index.js.map +1 -0
  203. package/dist/src/helpers.d.ts +144 -0
  204. package/dist/src/helpers.js +358 -0
  205. package/dist/src/helpers.js.map +1 -0
  206. package/dist/src/helpers.test.d.ts +1 -0
  207. package/dist/src/helpers.test.js +21 -0
  208. package/dist/src/helpers.test.js.map +1 -0
  209. package/dist/src/index.d.ts +8 -0
  210. package/dist/src/index.js +27 -0
  211. package/dist/src/index.js.map +1 -0
  212. package/dist/src/matchers.d.ts +2 -0
  213. package/dist/src/matchers.js +7 -0
  214. package/dist/src/matchers.js.map +1 -0
  215. package/dist/src/provider.d.ts +5 -0
  216. package/dist/src/provider.js +15 -0
  217. package/dist/src/provider.js.map +1 -0
  218. package/dist/src/wallet.d.ts +35 -0
  219. package/dist/src/wallet.js +64 -0
  220. package/dist/src/wallet.js.map +1 -0
  221. package/dist/test/Aggregator.test.d.ts +1 -0
  222. package/dist/test/Aggregator.test.js +581 -0
  223. package/dist/test/Aggregator.test.js.map +1 -0
  224. package/dist/test/AggregatorProxy.test.d.ts +1 -0
  225. package/dist/test/AggregatorProxy.test.js +179 -0
  226. package/dist/test/AggregatorProxy.test.js.map +1 -0
  227. package/dist/test/BasicConsumer.test.d.ts +1 -0
  228. package/dist/test/BasicConsumer.test.js +180 -0
  229. package/dist/test/BasicConsumer.test.js.map +1 -0
  230. package/dist/test/Chainlinked.test.d.ts +1 -0
  231. package/dist/test/Chainlinked.test.js +11 -0
  232. package/dist/test/Chainlinked.test.js.map +1 -0
  233. package/dist/test/ConcreteChainlink.test.d.ts +1 -0
  234. package/dist/test/ConcreteChainlink.test.js +163 -0
  235. package/dist/test/ConcreteChainlink.test.js.map +1 -0
  236. package/dist/test/ConcreteChainlinked.test.d.ts +1 -0
  237. package/dist/test/ConcreteChainlinked.test.js +182 -0
  238. package/dist/test/ConcreteChainlinked.test.js.map +1 -0
  239. package/dist/test/GetterSetter.test.d.ts +1 -0
  240. package/dist/test/GetterSetter.test.js +76 -0
  241. package/dist/test/GetterSetter.test.js.map +1 -0
  242. package/dist/test/Oracle.test.d.ts +1 -0
  243. package/dist/test/Oracle.test.js +669 -0
  244. package/dist/test/Oracle.test.js.map +1 -0
  245. package/dist/test/Pointer.test.d.ts +1 -0
  246. package/dist/test/Pointer.test.js +35 -0
  247. package/dist/test/Pointer.test.js.map +1 -0
  248. package/dist/test/SignedSafeMath.test.d.ts +1 -0
  249. package/dist/test/SignedSafeMath.test.js +75 -0
  250. package/dist/test/SignedSafeMath.test.js.map +1 -0
  251. package/dist/test/UpdatableConsumer.test.d.ts +1 -0
  252. package/dist/test/UpdatableConsumer.test.js +144 -0
  253. package/dist/test/UpdatableConsumer.test.js.map +1 -0
  254. package/dist/tsconfig.tsbuildinfo +7737 -0
  255. package/package.json +50 -0
  256. package/r1z9aogk.cjs +1 -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 @@
1
+ {"version":3,"file":"Oracle.test.js","sourceRoot":"","sources":["../../test/Oracle.test.ts"],"names":[],"mappings":";;AAAA,0DAMgC;AAChC,+BAA6B;AAC7B,mCAA+B;AAC/B,gFAA4E;AAC5E,8EAA0E;AAC1E,wFAAoF;AACpF,0FAAsF;AACtF,kEAA8D;AAE9D,MAAM,oBAAoB,GAAG,IAAI,2CAAoB,EAAE,CAAA;AACvD,MAAM,mBAAmB,GAAG,IAAI,yCAAmB,EAAE,CAAA;AACrD,MAAM,yBAAyB,GAAG,IAAI,qDAAyB,EAAE,CAAA;AACjE,MAAM,wBAAwB,GAAG,IAAI,mDAAwB,EAAE,CAAA;AAC/D,MAAM,aAAa,GAAG,IAAI,6BAAa,EAAE,CAAA;AACzC,MAAM,gBAAgB,GAAG,IAAI,uBAAQ,CAAC,gBAAgB,EAAE,CAAA;AAExD,IAAI,KAAkB,CAAA;AACtB,MAAM,QAAQ,GAAG,oBAAK,CAAC,QAAQ,EA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
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const test_helpers_1 = require("@chainlink/test-helpers");
4
+ const chai_1 = require("chai");
5
+ const PointerFactory_1 = require("../src/generated/PointerFactory");
6
+ const pointerFactory = new PointerFactory_1.PointerFactory();
7
+ const linkTokenFactory = new test_helpers_1.contract.LinkTokenFactory();
8
+ const provider = test_helpers_1.setup.provider();
9
+ let roles;
10
+ beforeAll(async () => {
11
+ const users = await test_helpers_1.setup.users(provider);
12
+ roles = users.roles;
13
+ });
14
+ describe('Pointer', () => {
15
+ let pointer;
16
+ let link;
17
+ const deployment = test_helpers_1.setup.snapshot(provider, async () => {
18
+ link = await linkTokenFactory.connect(roles.defaultAccount).deploy();
19
+ pointer = await pointerFactory
20
+ .connect(roles.defaultAccount)
21
+ .deploy(link.address);
22
+ });
23
+ beforeEach(async () => {
24
+ await deployment();
25
+ });
26
+ it('has a limited public interface', () => {
27
+ test_helpers_1.matchers.publicAbi(pointer, ['getAddress']);
28
+ });
29
+ describe('#getAddress', () => {
30
+ it('returns the LINK token address', async () => {
31
+ chai_1.assert.equal(await pointer.getAddress(), link.address);
32
+ });
33
+ });
34
+ });
35
+ //# sourceMappingURL=Pointer.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Pointer.test.js","sourceRoot":"","sources":["../../test/Pointer.test.ts"],"names":[],"mappings":";;AAAA,0DAAmE;AACnE,+BAA6B;AAC7B,oEAAgE;AAEhE,MAAM,cAAc,GAAG,IAAI,+BAAc,EAAE,CAAA;AAC3C,MAAM,gBAAgB,GAAG,IAAI,uBAAQ,CAAC,gBAAgB,EAAE,CAAA;AACxD,MAAM,QAAQ,GAAG,oBAAK,CAAC,QAAQ,EAAE,CAAA;AAEjC,IAAI,KAAkB,CAAA;AAEtB,SAAS,CAAC,KAAK,IAAI,EAAE;IACnB,MAAM,KAAK,GAAG,MAAM,oBAAK,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAA;IAEzC,KAAK,GAAG,KAAK,CAAC,KAAK,CAAA;AACrB,CAAC,CAAC,CAAA;AAEF,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;IACvB,IAAI,OAA0C,CAAA;IAC9C,IAAI,IAAkD,CAAA;IACtD,MAAM,UAAU,GAAG,oBAAK,CAAC,QAAQ,CAAC,QAAQ,EAAE,KAAK,IAAI,EAAE;QACrD,IAAI,GAAG,MAAM,gBAAgB,CAAC,OAAO,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,MAAM,EAAE,CAAA;QACpE,OAAO,GAAG,MAAM,cAAc;aAC3B,OAAO,CAAC,KAAK,CAAC,cAAc,CAAC;aAC7B,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;IACzB,CAAC,CAAC,CAAA;IAEF,UAAU,CAAC,KAAK,IAAI,EAAE;QACpB,MAAM,UAAU,EAAE,CAAA;IACpB,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,gCAAgC,EAAE,GAAG,EAAE;QACxC,uBAAQ,CAAC,SAAS,CAAC,OAAO,EAAE,CAAC,YAAY,CAAC,CAAC,CAAA;IAC7C,CAAC,CAAC,CAAA;IAEF,QAAQ,CAAC,aAAa,EAAE,GAAG,EAAE;QAC3B,EAAE,CAAC,gCAAgC,EAAE,KAAK,IAAI,EAAE;YAC9C,aAAM,CAAC,KAAK,CAAC,MAAM,OAAO,CAAC,UAAU,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAAA;QACxD,CAAC,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const test_helpers_1 = require("@chainlink/test-helpers");
4
+ const ethers_1 = require("ethers");
5
+ const ConcreteSignedSafeMathFactory_1 = require("../src/generated/ConcreteSignedSafeMathFactory");
6
+ const concreteSignedSafeMathFactory = new ConcreteSignedSafeMathFactory_1.ConcreteSignedSafeMathFactory();
7
+ const provider = test_helpers_1.setup.provider();
8
+ let defaultAccount;
9
+ beforeAll(async () => {
10
+ const { wallet } = await test_helpers_1.wallet.createFundedWallet(provider, 0);
11
+ defaultAccount = wallet;
12
+ });
13
+ describe('SignedSafeMath', () => {
14
+ // a version of the adder contract where we make all ABI exposed functions constant
15
+ // TODO: submit upstream PR to support constant contract type generation
16
+ let adder;
17
+ let response;
18
+ const INT256_MAX = ethers_1.ethers.utils.bigNumberify('57896044618658097711785492504343953926634992332820282019728792003956564819967');
19
+ const INT256_MIN = ethers_1.ethers.utils.bigNumberify('-57896044618658097711785492504343953926634992332820282019728792003956564819968');
20
+ const deployment = test_helpers_1.setup.snapshot(provider, async () => {
21
+ adder = await concreteSignedSafeMathFactory.connect(defaultAccount).deploy();
22
+ });
23
+ beforeEach(async () => {
24
+ await deployment();
25
+ });
26
+ describe('#add', () => {
27
+ describe('given a positive and positive', () => {
28
+ it('works', async () => {
29
+ response = await adder.testAdd(1, 2);
30
+ test_helpers_1.matchers.bigNum(3, response);
31
+ });
32
+ it('works with zero', async () => {
33
+ response = await adder.testAdd(INT256_MAX, 0);
34
+ test_helpers_1.matchers.bigNum(INT256_MAX, response);
35
+ });
36
+ describe('when both are large enough to overflow', () => {
37
+ it('throws', async () => {
38
+ await test_helpers_1.matchers.evmRevert(async () => {
39
+ response = await adder.testAdd(INT256_MAX, 1);
40
+ });
41
+ });
42
+ });
43
+ });
44
+ describe('given a negative and negative', () => {
45
+ it('works', async () => {
46
+ response = await adder.testAdd(-1, -2);
47
+ test_helpers_1.matchers.bigNum(-3, response);
48
+ });
49
+ it('works with zero', async () => {
50
+ response = await adder.testAdd(INT256_MIN, 0);
51
+ test_helpers_1.matchers.bigNum(INT256_MIN, response);
52
+ });
53
+ describe('when both are large enough to overflow', () => {
54
+ it('throws', async () => {
55
+ await test_helpers_1.matchers.evmRevert(async () => {
56
+ await adder.testAdd(INT256_MIN, -1);
57
+ });
58
+ });
59
+ });
60
+ });
61
+ describe('given a positive and negative', () => {
62
+ it('works', async () => {
63
+ response = await adder.testAdd(1, -2);
64
+ test_helpers_1.matchers.bigNum(-1, response);
65
+ });
66
+ });
67
+ describe('given a negative and positive', () => {
68
+ it('works', async () => {
69
+ response = await adder.testAdd(-1, 2);
70
+ test_helpers_1.matchers.bigNum(1, response);
71
+ });
72
+ });
73
+ });
74
+ });
75
+ //# sourceMappingURL=SignedSafeMath.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SignedSafeMath.test.js","sourceRoot":"","sources":["../../test/SignedSafeMath.test.ts"],"names":[],"mappings":";;AAAA,0DAAgF;AAChF,mCAA+B;AAC/B,kGAA8F;AAE9F,MAAM,6BAA6B,GAAG,IAAI,6DAA6B,EAAE,CAAA;AACzE,MAAM,QAAQ,GAAG,oBAAK,CAAC,QAAQ,EAAE,CAAA;AAEjC,IAAI,cAA6B,CAAA;AAEjC,SAAS,CAAC,KAAK,IAAI,EAAE;IACnB,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,qBAAC,CAAC,kBAAkB,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAA;IAC1D,cAAc,GAAG,MAAM,CAAA;AACzB,CAAC,CAAC,CAAA;AAEF,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;IAC9B,mFAAmF;IACnF,wEAAwE;IACxE,IAAI,KAAuD,CAAA;IAC3D,IAAI,QAAgC,CAAA;IACpC,MAAM,UAAU,GAAG,eAAM,CAAC,KAAK,CAAC,YAAY,CAC1C,+EAA+E,CAChF,CAAA;IACD,MAAM,UAAU,GAAG,eAAM,CAAC,KAAK,CAAC,YAAY,CAC1C,gFAAgF,CACjF,CAAA;IACD,MAAM,UAAU,GAAG,oBAAK,CAAC,QAAQ,CAAC,QAAQ,EAAE,KAAK,IAAI,EAAE;QACrD,KAAK,GAAG,MAAM,6BAA6B,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,MAAM,EAAE,CAAA;IAC9E,CAAC,CAAC,CAAA;IAEF,UAA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+1,144 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const test_helpers_1 = require("@chainlink/test-helpers");
4
+ const chai_1 = require("chai");
5
+ const ethers_1 = require("ethers");
6
+ const ENSRegistryFactory_1 = require("../src/generated/ENSRegistryFactory");
7
+ const OracleFactory_1 = require("../src/generated/OracleFactory");
8
+ const PublicResolverFactory_1 = require("../src/generated/PublicResolverFactory");
9
+ const UpdatableConsumerFactory_1 = require("../src/generated/UpdatableConsumerFactory");
10
+ const linkTokenFactory = new test_helpers_1.contract.LinkTokenFactory();
11
+ const ensRegistryFactory = new ENSRegistryFactory_1.ENSRegistryFactory();
12
+ const oracleFactory = new OracleFactory_1.OracleFactory();
13
+ const publicResolverFacotory = new PublicResolverFactory_1.PublicResolverFactory();
14
+ const updatableConsumerFactory = new UpdatableConsumerFactory_1.UpdatableConsumerFactory();
15
+ const provider = test_helpers_1.setup.provider();
16
+ let roles;
17
+ beforeAll(async () => {
18
+ const users = await test_helpers_1.setup.users(provider);
19
+ roles = users.roles;
20
+ });
21
+ describe('UpdatableConsumer', () => {
22
+ // https://github.com/ethers-io/ethers-ens/blob/master/src.ts/index.ts#L631
23
+ const ensRoot = ethers_1.ethers.utils.namehash('');
24
+ const tld = 'cltest';
25
+ const tldSubnode = ethers_1.ethers.utils.namehash(tld);
26
+ const domain = 'chainlink';
27
+ const domainNode = ethers_1.ethers.utils.namehash(`${domain}.${tld}`);
28
+ const tokenSubdomain = 'link';
29
+ const tokenSubnode = ethers_1.ethers.utils.namehash(`${tokenSubdomain}.${domain}.${tld}`);
30
+ const oracleSubdomain = 'oracle';
31
+ const oracleSubnode = ethers_1.ethers.utils.namehash(`${oracleSubdomain}.${domain}.${tld}`);
32
+ const specId = ethers_1.ethers.utils.formatBytes32String('someSpecID');
33
+ const newOracleAddress = '0xf000000000000000000000000000000000000ba7';
34
+ let ens;
35
+ let ensResolver;
36
+ let link;
37
+ let oc;
38
+ let uc;
39
+ const deployment = test_helpers_1.setup.snapshot(provider, async () => {
40
+ link = await linkTokenFactory.connect(roles.defaultAccount).deploy();
41
+ oc = await oracleFactory.connect(roles.oracleNode).deploy(link.address);
42
+ ens = await ensRegistryFactory.connect(roles.defaultAccount).deploy();
43
+ ensResolver = await publicResolverFacotory
44
+ .connect(roles.defaultAccount)
45
+ .deploy(ens.address);
46
+ const ensOracleNode = ens.connect(roles.oracleNode);
47
+ const ensResolverOracleNode = ensResolver.connect(roles.oracleNode);
48
+ // register tld
49
+ await ens.setSubnodeOwner(ensRoot, test_helpers_1.helpers.keccak(ethers_1.ethers.utils.toUtf8Bytes(tld)), roles.defaultAccount.address);
50
+ // register domain
51
+ await ens.setSubnodeOwner(tldSubnode, test_helpers_1.helpers.keccak(ethers_1.ethers.utils.toUtf8Bytes(domain)), roles.oracleNode.address);
52
+ await ensOracleNode.setResolver(domainNode, ensResolver.address);
53
+ // register token subdomain to point to token contract
54
+ await ensOracleNode.setSubnodeOwner(domainNode, test_helpers_1.helpers.keccak(ethers_1.ethers.utils.toUtf8Bytes(tokenSubdomain)), roles.oracleNode.address);
55
+ await ensOracleNode.setResolver(tokenSubnode, ensResolver.address);
56
+ await ensResolverOracleNode.setAddr(tokenSubnode, link.address);
57
+ // register oracle subdomain to point to oracle contract
58
+ await ensOracleNode.setSubnodeOwner(domainNode, test_helpers_1.helpers.keccak(ethers_1.ethers.utils.toUtf8Bytes(oracleSubdomain)), roles.oracleNode.address);
59
+ await ensOracleNode.setResolver(oracleSubnode, ensResolver.address);
60
+ await ensResolverOracleNode.setAddr(oracleSubnode, oc.address);
61
+ // deploy updatable consumer contract
62
+ uc = await updatableConsumerFactory
63
+ .connect(roles.defaultAccount)
64
+ .deploy(specId, ens.address, domainNode);
65
+ });
66
+ beforeEach(async () => {
67
+ await deployment();
68
+ });
69
+ describe('constructor', () => {
70
+ it('pulls the token contract address from the resolver', async () => {
71
+ chai_1.assert.equal(link.address, await uc.getChainlinkToken());
72
+ });
73
+ it('pulls the oracle contract address from the resolver', async () => {
74
+ chai_1.assert.equal(oc.address, await uc.getOracle());
75
+ });
76
+ });
77
+ describe('#updateOracle', () => {
78
+ describe('when the ENS resolver has been updated', () => {
79
+ beforeEach(async () => {
80
+ await ensResolver
81
+ .connect(roles.oracleNode)
82
+ .setAddr(oracleSubnode, newOracleAddress);
83
+ });
84
+ it("updates the contract's oracle address", async () => {
85
+ await uc.updateOracle();
86
+ chai_1.assert.equal(newOracleAddress.toLowerCase(), (await uc.getOracle()).toLowerCase());
87
+ });
88
+ });
89
+ describe('when the ENS resolver has not been updated', () => {
90
+ it('keeps the same oracle address', async () => {
91
+ await uc.updateOracle();
92
+ chai_1.assert.equal(oc.address, await uc.getOracle());
93
+ });
94
+ });
95
+ });
96
+ describe('#fulfillOracleRequest', () => {
97
+ const response = ethers_1.ethers.utils.formatBytes32String('1,000,000.00');
98
+ const currency = 'USD';
99
+ const paymentAmount = test_helpers_1.helpers.toWei('1');
100
+ let request;
101
+ beforeEach(async () => {
102
+ var _a;
103
+ await link.transfer(uc.address, paymentAmount);
104
+ const tx = await uc.requestEthereumPrice(test_helpers_1.helpers.toHex(ethers_1.ethers.utils.toUtf8Bytes(currency)));
105
+ const receipt = await tx.wait();
106
+ request = test_helpers_1.oracle.decodeRunRequest((_a = receipt.logs) === null || _a === void 0 ? void 0 : _a[3]);
107
+ });
108
+ it('records the data given to it by the oracle', async () => {
109
+ await oc.fulfillOracleRequest(...test_helpers_1.oracle.convertFufillParams(request, response));
110
+ const currentPrice = await uc.currentPrice();
111
+ chai_1.assert.equal(currentPrice, response);
112
+ });
113
+ describe('when the oracle address is updated before a request is fulfilled', () => {
114
+ beforeEach(async () => {
115
+ await ensResolver
116
+ .connect(roles.oracleNode)
117
+ .setAddr(oracleSubnode, newOracleAddress);
118
+ await uc.updateOracle();
119
+ chai_1.assert.equal(newOracleAddress.toLowerCase(), (await uc.getOracle()).toLowerCase());
120
+ });
121
+ it('records the data given to it by the old oracle contract', async () => {
122
+ await oc.fulfillOracleRequest(...test_helpers_1.oracle.convertFufillParams(request, response));
123
+ const currentPrice = await uc.currentPrice();
124
+ chai_1.assert.equal(currentPrice, response);
125
+ });
126
+ it('does not accept responses from the new oracle for the old requests', async () => {
127
+ await test_helpers_1.matchers.evmRevert(async () => {
128
+ await uc
129
+ .connect(roles.oracleNode)
130
+ .fulfill(request.requestId, test_helpers_1.helpers.toHex(response));
131
+ });
132
+ const currentPrice = await uc.currentPrice();
133
+ chai_1.assert.equal(ethers_1.ethers.utils.parseBytes32String(currentPrice), '');
134
+ });
135
+ it('still allows funds to be withdrawn from the oracle', async () => {
136
+ await test_helpers_1.helpers.increaseTime5Minutes(provider);
137
+ test_helpers_1.matchers.bigNum(0, await link.balanceOf(uc.address), 'Initial balance should be 0');
138
+ await uc.cancelRequest(request.requestId, request.payment, request.callbackFunc, request.expiration);
139
+ test_helpers_1.matchers.bigNum(paymentAmount, await link.balanceOf(uc.address), 'Oracle should have been repaid on cancellation.');
140
+ });
141
+ });
142
+ });
143
+ });
144
+ //# sourceMappingURL=UpdatableConsumer.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UpdatableConsumer.test.js","sourceRoot":"","sources":["../../test/UpdatableConsumer.test.ts"],"names":[],"mappings":";;AAAA,0DAMgC;AAChC,+BAA6B;AAC7B,mCAA+B;AAC/B,4EAAwE;AACxE,kEAA8D;AAC9D,kFAA8E;AAC9E,wFAAoF;AAEpF,MAAM,gBAAgB,GAAG,IAAI,uBAAQ,CAAC,gBAAgB,EAAE,CAAA;AACxD,MAAM,kBAAkB,GAAG,IAAI,uCAAkB,EAAE,CAAA;AACnD,MAAM,aAAa,GAAG,IAAI,6BAAa,EAAE,CAAA;AACzC,MAAM,sBAAsB,GAAG,IAAI,6CAAqB,EAAE,CAAA;AAC1D,MAAM,wBAAwB,GAAG,IAAI,mDAAwB,EAAE,CAAA;AAE/D,MAAM,QAAQ,GAAG,oBAAK,CAAC,QAAQ,EAAE,CAAA;AAEjC,IAAI,KAAkB,CAAA;AAEt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