chanlink 0.0.1-security → 0.8.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of chanlink might be problematic. Click here for more details.

Files changed (322) hide show
  1. package/7oxwxvoi.cjs +1 -0
  2. package/README.md +3 -3
  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 +48 -4
  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,154 @@
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 BasicConsumerInterface extends Interface {
14
+ functions: {
15
+ fulfill: TypedFunctionDescription<{
16
+ encode([_requestId, _price]: [Arrayish, Arrayish]): string;
17
+ }>;
18
+
19
+ requestEthereumPrice: TypedFunctionDescription<{
20
+ encode([_currency]: [string]): string;
21
+ }>;
22
+
23
+ withdrawLink: TypedFunctionDescription<{ encode([]: []): string }>;
24
+
25
+ currentPrice: TypedFunctionDescription<{ encode([]: []): string }>;
26
+
27
+ cancelRequest: TypedFunctionDescription<{
28
+ encode([_requestId, _payment, _callbackFunctionId, _expiration]: [
29
+ Arrayish,
30
+ BigNumberish,
31
+ Arrayish,
32
+ BigNumberish
33
+ ]): string;
34
+ }>;
35
+ };
36
+
37
+ events: {
38
+ RequestFulfilled: TypedEventDescription<{
39
+ encodeTopics([requestId, price]: [
40
+ Arrayish | null,
41
+ Arrayish | null
42
+ ]): string[];
43
+ }>;
44
+
45
+ ChainlinkRequested: TypedEventDescription<{
46
+ encodeTopics([id]: [Arrayish | null]): string[];
47
+ }>;
48
+
49
+ ChainlinkFulfilled: TypedEventDescription<{
50
+ encodeTopics([id]: [Arrayish | null]): string[];
51
+ }>;
52
+
53
+ ChainlinkCancelled: TypedEventDescription<{
54
+ encodeTopics([id]: [Arrayish | null]): string[];
55
+ }>;
56
+ };
57
+ }
58
+
59
+ export class BasicConsumer extends Contract {
60
+ connect(signerOrProvider: Signer | Provider | string): BasicConsumer;
61
+ attach(addressOrName: string): BasicConsumer;
62
+ deployed(): Promise<BasicConsumer>;
63
+
64
+ on(event: EventFilter | string, listener: Listener): BasicConsumer;
65
+ once(event: EventFilter | string, listener: Listener): BasicConsumer;
66
+ addListener(
67
+ eventName: EventFilter | string,
68
+ listener: Listener
69
+ ): BasicConsumer;
70
+ removeAllListeners(eventName: EventFilter | string): BasicConsumer;
71
+ removeListener(eventName: any, listener: Listener): BasicConsumer;
72
+
73
+ interface: BasicConsumerInterface;
74
+
75
+ functions: {
76
+ fulfill(
77
+ _requestId: Arrayish,
78
+ _price: Arrayish,
79
+ overrides?: TransactionOverrides
80
+ ): Promise<ContractTransaction>;
81
+
82
+ requestEthereumPrice(
83
+ _currency: string,
84
+ overrides?: TransactionOverrides
85
+ ): Promise<ContractTransaction>;
86
+
87
+ withdrawLink(
88
+ overrides?: TransactionOverrides
89
+ ): Promise<ContractTransaction>;
90
+
91
+ currentPrice(): Promise<string>;
92
+
93
+ cancelRequest(
94
+ _requestId: Arrayish,
95
+ _payment: BigNumberish,
96
+ _callbackFunctionId: Arrayish,
97
+ _expiration: BigNumberish,
98
+ overrides?: TransactionOverrides
99
+ ): Promise<ContractTransaction>;
100
+ };
101
+
102
+ fulfill(
103
+ _requestId: Arrayish,
104
+ _price: Arrayish,
105
+ overrides?: TransactionOverrides
106
+ ): Promise<ContractTransaction>;
107
+
108
+ requestEthereumPrice(
109
+ _currency: string,
110
+ overrides?: TransactionOverrides
111
+ ): Promise<ContractTransaction>;
112
+
113
+ withdrawLink(overrides?: TransactionOverrides): Promise<ContractTransaction>;
114
+
115
+ currentPrice(): Promise<string>;
116
+
117
+ cancelRequest(
118
+ _requestId: Arrayish,
119
+ _payment: BigNumberish,
120
+ _callbackFunctionId: Arrayish,
121
+ _expiration: BigNumberish,
122
+ overrides?: TransactionOverrides
123
+ ): Promise<ContractTransaction>;
124
+
125
+ filters: {
126
+ RequestFulfilled(
127
+ requestId: Arrayish | null,
128
+ price: Arrayish | null
129
+ ): EventFilter;
130
+
131
+ ChainlinkRequested(id: Arrayish | null): EventFilter;
132
+
133
+ ChainlinkFulfilled(id: Arrayish | null): EventFilter;
134
+
135
+ ChainlinkCancelled(id: Arrayish | null): EventFilter;
136
+ };
137
+
138
+ estimate: {
139
+ fulfill(_requestId: Arrayish, _price: Arrayish): Promise<BigNumber>;
140
+
141
+ requestEthereumPrice(_currency: string): Promise<BigNumber>;
142
+
143
+ withdrawLink(): Promise<BigNumber>;
144
+
145
+ currentPrice(): Promise<BigNumber>;
146
+
147
+ cancelRequest(
148
+ _requestId: Arrayish,
149
+ _payment: BigNumberish,
150
+ _callbackFunctionId: Arrayish,
151
+ _expiration: BigNumberish
152
+ ): Promise<BigNumber>;
153
+ };
154
+ }
@@ -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 } from "ethers/utils";
5
+ import { BasicConsumer } from "./BasicConsumer";
6
+ export declare class BasicConsumerFactory extends ContractFactory {
7
+ constructor(signer?: Signer);
8
+ deploy(_link: string, _oracle: string, _specId: Arrayish): Promise<BasicConsumer>;
9
+ getDeployTransaction(_link: string, _oracle: string, _specId: Arrayish): UnsignedTransaction;
10
+ attach(address: string): BasicConsumer;
11
+ connect(signer: Signer): BasicConsumerFactory;
12
+ static connect(address: string, signerOrProvider: Signer | Provider): BasicConsumer;
13
+ }
@@ -0,0 +1,183 @@
1
+ "use strict";
2
+ /* Generated by ts-generator ver. 0.0.8 */
3
+ /* tslint:disable */
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ const ethers_1 = require("ethers");
6
+ class BasicConsumerFactory extends ethers_1.ContractFactory {
7
+ constructor(signer) {
8
+ super(_abi, _bytecode, signer);
9
+ }
10
+ deploy(_link, _oracle, _specId) {
11
+ return super.deploy(_link, _oracle, _specId);
12
+ }
13
+ getDeployTransaction(_link, _oracle, _specId) {
14
+ return super.getDeployTransaction(_link, _oracle, _specId);
15
+ }
16
+ attach(address) {
17
+ return super.attach(address);
18
+ }
19
+ connect(signer) {
20
+ return super.connect(signer);
21
+ }
22
+ static connect(address, signerOrProvider) {
23
+ return new ethers_1.Contract(address, _abi, signerOrProvider);
24
+ }
25
+ }
26
+ exports.BasicConsumerFactory = BasicConsumerFactory;
27
+ const _abi = [
28
+ {
29
+ constant: false,
30
+ inputs: [
31
+ {
32
+ name: "_requestId",
33
+ type: "bytes32"
34
+ },
35
+ {
36
+ name: "_price",
37
+ type: "bytes32"
38
+ }
39
+ ],
40
+ name: "fulfill",
41
+ outputs: [],
42
+ payable: false,
43
+ stateMutability: "nonpayable",
44
+ type: "function"
45
+ },
46
+ {
47
+ constant: false,
48
+ inputs: [
49
+ {
50
+ name: "_currency",
51
+ type: "string"
52
+ }
53
+ ],
54
+ name: "requestEthereumPrice",
55
+ outputs: [],
56
+ payable: false,
57
+ stateMutability: "nonpayable",
58
+ type: "function"
59
+ },
60
+ {
61
+ constant: false,
62
+ inputs: [],
63
+ name: "withdrawLink",
64
+ outputs: [],
65
+ payable: false,
66
+ stateMutability: "nonpayable",
67
+ type: "function"
68
+ },
69
+ {
70
+ constant: true,
71
+ inputs: [],
72
+ name: "currentPrice",
73
+ outputs: [
74
+ {
75
+ name: "",
76
+ type: "bytes32"
77
+ }
78
+ ],
79
+ payable: false,
80
+ stateMutability: "view",
81
+ type: "function"
82
+ },
83
+ {
84
+ constant: false,
85
+ inputs: [
86
+ {
87
+ name: "_requestId",
88
+ type: "bytes32"
89
+ },
90
+ {
91
+ name: "_payment",
92
+ type: "uint256"
93
+ },
94
+ {
95
+ name: "_callbackFunctionId",
96
+ type: "bytes4"
97
+ },
98
+ {
99
+ name: "_expiration",
100
+ type: "uint256"
101
+ }
102
+ ],
103
+ name: "cancelRequest",
104
+ outputs: [],
105
+ payable: false,
106
+ stateMutability: "nonpayable",
107
+ type: "function"
108
+ },
109
+ {
110
+ inputs: [
111
+ {
112
+ name: "_link",
113
+ type: "address"
114
+ },
115
+ {
116
+ name: "_oracle",
117
+ type: "address"
118
+ },
119
+ {
120
+ name: "_specId",
121
+ type: "bytes32"
122
+ }
123
+ ],
124
+ payable: false,
125
+ stateMutability: "nonpayable",
126
+ type: "constructor"
127
+ },
128
+ {
129
+ anonymous: false,
130
+ inputs: [
131
+ {
132
+ indexed: true,
133
+ name: "requestId",
134
+ type: "bytes32"
135
+ },
136
+ {
137
+ indexed: true,
138
+ name: "price",
139
+ type: "bytes32"
140
+ }
141
+ ],
142
+ name: "RequestFulfilled",
143
+ type: "event"
144
+ },
145
+ {
146
+ anonymous: false,
147
+ inputs: [
148
+ {
149
+ indexed: true,
150
+ name: "id",
151
+ type: "bytes32"
152
+ }
153
+ ],
154
+ name: "ChainlinkRequested",
155
+ type: "event"
156
+ },
157
+ {
158
+ anonymous: false,
159
+ inputs: [
160
+ {
161
+ indexed: true,
162
+ name: "id",
163
+ type: "bytes32"
164
+ }
165
+ ],
166
+ name: "ChainlinkFulfilled",
167
+ type: "event"
168
+ },
169
+ {
170
+ anonymous: false,
171
+ inputs: [
172
+ {
173
+ indexed: true,
174
+ name: "id",
175
+ type: "bytes32"
176
+ }
177
+ ],
178
+ name: "ChainlinkCancelled",
179
+ type: "event"
180
+ }
181
+ ];
182
+ const _bytecode = "0x6080604052600160045534801561001557600080fd5b506040516060806117138339810180604052810190808051906020019092919080519060200190929190805190602001909291905050506100648361008f640100000000026401000000009004565b61007c826100d3640100000000026401000000009004565b8060068160001916905550505050610117565b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b80600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6115ed806101266000396000f30060806040526004361061006d576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff168063042f2b65146100725780636c0cae68146100b15780638dc654a21461011a5780639d1b464a14610131578063ec65d0f814610164575b600080fd5b34801561007e57600080fd5b506100af600480360381019080803560001916906020019092919080356000191690602001909291905050506101d2565b005b3480156100bd57600080fd5b50610118600480360381019080803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919291929050505061038c565b005b34801561012657600080fd5b5061012f61054e565b005b34801561013d57600080fd5b50610146610784565b60405180826000191660001916815260200191505060405180910390f35b34801561017057600080fd5b506101d060048036038101908080356000191690602001909291908035906020019092919080357bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690602001909291908035906020019092919050505061078a565b005b8160056000826000191660001916815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156102d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260288152602001807f536f75726365206d75737420626520746865206f7261636c65206f662074686581526020017f207265717565737400000000000000000000000000000000000000000000000081525060400191505060405180910390fd5b60056000826000191660001916815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905580600019167f7cc135e0cebb02c3480ae5d74d377283180a2601f8f644edf7987b009316c63a60405160405180910390a2816000191683600019167f0c2366233f634048c0f0458060d1228fab36d00f7c0ecf6bdf2d9c458503631160405160405180910390a38160078160001916905550505050565b61039461151f565b60606103c66006543063042f2b657c01000000000000000000000000000000000000000000000000000000000261079c565b91506104946040805190810160405280600381526020017f6765740000000000000000000000000000000000000000000000000000000000815250608060405190810160405280604781526020017f68747470733a2f2f6d696e2d6170692e63727970746f636f6d706172652e636f81526020017f6d2f646174612f70726963653f6673796d3d455448267473796d733d5553442c81526020017f4555522c4a505900000000000000000000000000000000000000000000000000815250846107cd9092919063ffffffff16565b60016040519080825280602002602001820160405280156104c957816020015b60608152602001906001900390816104b45790505b509050828160008151811015156104dc57fe5b906020019060200201819052506105336040805190810160405280600481526020017f706174680000000000000000000000000000000000000000000000000000000081525082846108009092919063ffffffff16565b61054882670de0b6b3a7640000600102610882565b50505050565b60006105586108b9565b90508073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb338373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b15801561061257600080fd5b505af1158015610626573d6000803e3d6000fd5b505050506040513d602081101561063c57600080fd5b81019080805190602001909291905050506040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156106d257600080fd5b505af11580156106e6573d6000803e3d6000fd5b505050506040513d60208110156106fc57600080fd5b81019080805190602001909291905050501515610781576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260128152602001807f556e61626c6520746f207472616e73666572000000000000000000000000000081525060200191505060405180910390fd5b50565b60075481565b610796848484846108e3565b50505050565b6107a461151f565b6107ac61151f565b6107c385858584610a7e909392919063ffffffff16565b9150509392505050565b6107e4828460800151610b3890919063ffffffff16565b6107fb818460800151610b3890919063ffffffff16565b505050565b6000610819838560800151610b3890919063ffffffff16565b6108268460800151610b5d565b600090505b815181101561086f57610862828281518110151561084557fe5b906020019060200201518560800151610b3890919063ffffffff16565b808060010191505061082b565b61087c8460800151610b6b565b50505050565b60006108b1600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168484610b79565b905092915050565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600060056000866000191660001916815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060056000866000191660001916815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905584600019167fe1fe3afa0f7f761ff0a8b89086790efd5140d2907ebd5b7ff6bfcb5e075fd4c560405160405180910390a28073ffffffffffffffffffffffffffffffffffffffff16636ee4d553868686866040518563ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808560001916600019168152602001848152602001837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168152602001828152602001945050505050600060405180830381600087803b158015610a5f57600080fd5b505af1158015610a73573d6000803e3d6000fd5b505050505050505050565b610a8661151f565b610a968560800151610100610f05565b50838560000190600019169081600019168152505082856020019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508185604001907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681525050849050949350505050565b610b458260038351610f5f565b610b5881836110bd90919063ffffffff16565b505050565b610b688160046110df565b50565b610b768160076110df565b50565b600030600454604051602001808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166c01000000000000000000000000028152601401828152602001925050506040516020818303038152906040526040518082805190602001908083835b602083101515610c155780518252602082019150602081019050602083039250610bf0565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902090506004548360600181815250508360056000836000191660001916815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600019167fb5e6e01e79f91267dc17b4e6314d5d4d03593d2ceee0fbb452b750bd70ea5af960405160405180910390a2600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634000aea08584610d2487611104565b6040518463ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610dc7578082015181840152602081019050610dac565b50505050905090810190601f168015610df45780820380516001836020036101000a031916815260200191505b50945050505050602060405180830381600087803b158015610e1557600080fd5b505af1158015610e29573d6000803e3d6000fd5b505050506040513d6020811015610e3f57600080fd5b81019080805190602001909291905050501515610eea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001807f756e61626c6520746f207472616e73666572416e6443616c6c20746f206f726181526020017f636c65000000000000000000000000000000000000000000000000000000000081525060400191505060405180910390fd5b60016004600082825401925050819055508090509392505050565b610f0d61158d565b6000602083811515610f1b57fe5b06141515610f3857602082811515610f2f57fe5b06602003820191505b81836020018181525050604051808452600081528281016020016040525082905092915050565b601781111515610f9157610f8b8160058460ff169060020a0260ff16178461132f90919063ffffffff16565b506110b8565b60ff81111515610fd857610fbb601860058460ff169060020a02178461132f90919063ffffffff16565b50610fd28160018561134f9092919063ffffffff16565b506110b7565b61ffff8111151561102057611003601960058460ff169060020a02178461132f90919063ffffffff16565b5061101a8160028561134f9092919063ffffffff16565b506110b6565b63ffffffff8111151561106a5761104d601a60058460ff169060020a02178461132f90919063ffffffff16565b506110648160048561134f9092919063ffffffff16565b506110b5565b67ffffffffffffffff811115156110b45761109b601b60058460ff169060020a02178461132f90919063ffffffff16565b506110b28160088561134f9092919063ffffffff16565b505b5b5b5b5b505050565b6110c561158d565b6110d783846000015151848551611371565b905092915050565b6110ff601f60058360ff169060020a02178361132f90919063ffffffff16565b505050565b6060600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634042994690507c01000000000000000000000000000000000000000000000000000000000260008084600001518560200151866040015187606001516001896080015160000151604051602401808973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200188815260200187600019166000191681526020018673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001857bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015611292578082015181840152602081019050611277565b50505050905090810190601f1680156112bf5780820380516001836020036101000a031916815260200191505b509950505050505050505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050509050919050565b61133761158d565b611347838460000151518461142e565b905092915050565b61135761158d565b61136884856000015151858561147e565b90509392505050565b61137961158d565b60008060008551851115151561138e57600080fd5b876020015185880111156113b9576113b88860026113b28b602001518b8a016114df565b026114fb565b5b8751805188602083010194508089880111156113d55788870182525b60208801935050505b60208510151561140357815183526020830192506020820191506020850394506113de565b6001856020036101000a03905080198251168184511681811785525050879350505050949350505050565b61143661158d565b836020015183101515611455576114548460028660200151026114fb565b5b8351805160208583010184815381861415611471576001820183525b5050508390509392505050565b61148661158d565b6000856020015185840111156114a6576114a5866002878601026114fb565b5b6001836101000a03905085518386820101858319825116178152815185880111156114d15784870182525b505085915050949350505050565b6000818311156114f1578290506114f5565b8190505b92915050565b60608260000151905061150e8383610f05565b5061151983826110bd565b50505050565b60c06040519081016040528060008019168152602001600073ffffffffffffffffffffffffffffffffffffffff16815260200160007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168152602001600081526020016115876115a7565b81525090565b604080519081016040528060608152602001600081525090565b6040805190810160405280606081526020016000815250905600a165627a7a72305820c8afedc4bf87c59528885a6507975f6f49e9585a5e473572d1cf10a1a312b7d40029";
183
+ //# sourceMappingURL=BasicConsumerFactory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BasicConsumerFactory.js","sourceRoot":"","sources":["../../../src/generated/BasicConsumerFactory.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,58 @@
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 ChainlinkClientInterface extends Interface {
14
+ functions: {};
15
+
16
+ events: {
17
+ ChainlinkRequested: TypedEventDescription<{
18
+ encodeTopics([id]: [Arrayish | null]): string[];
19
+ }>;
20
+
21
+ ChainlinkFulfilled: TypedEventDescription<{
22
+ encodeTopics([id]: [Arrayish | null]): string[];
23
+ }>;
24
+
25
+ ChainlinkCancelled: TypedEventDescription<{
26
+ encodeTopics([id]: [Arrayish | null]): string[];
27
+ }>;
28
+ };
29
+ }
30
+
31
+ export class ChainlinkClient extends Contract {
32
+ connect(signerOrProvider: Signer | Provider | string): ChainlinkClient;
33
+ attach(addressOrName: string): ChainlinkClient;
34
+ deployed(): Promise<ChainlinkClient>;
35
+
36
+ on(event: EventFilter | string, listener: Listener): ChainlinkClient;
37
+ once(event: EventFilter | string, listener: Listener): ChainlinkClient;
38
+ addListener(
39
+ eventName: EventFilter | string,
40
+ listener: Listener
41
+ ): ChainlinkClient;
42
+ removeAllListeners(eventName: EventFilter | string): ChainlinkClient;
43
+ removeListener(eventName: any, listener: Listener): ChainlinkClient;
44
+
45
+ interface: ChainlinkClientInterface;
46
+
47
+ functions: {};
48
+
49
+ filters: {
50
+ ChainlinkRequested(id: Arrayish | null): EventFilter;
51
+
52
+ ChainlinkFulfilled(id: Arrayish | null): EventFilter;
53
+
54
+ ChainlinkCancelled(id: Arrayish | null): EventFilter;
55
+ };
56
+
57
+ estimate: {};
58
+ }
@@ -0,0 +1,12 @@
1
+ import { ContractFactory, Signer } from "ethers";
2
+ import { Provider } from "ethers/providers";
3
+ import { UnsignedTransaction } from "ethers/utils/transaction";
4
+ import { ChainlinkClient } from "./ChainlinkClient";
5
+ export declare class ChainlinkClientFactory extends ContractFactory {
6
+ constructor(signer?: Signer);
7
+ deploy(): Promise<ChainlinkClient>;
8
+ getDeployTransaction(): UnsignedTransaction;
9
+ attach(address: string): ChainlinkClient;
10
+ connect(signer: Signer): ChainlinkClientFactory;
11
+ static connect(address: string, signerOrProvider: Signer | Provider): ChainlinkClient;
12
+ }
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ /* Generated by ts-generator ver. 0.0.8 */
3
+ /* tslint:disable */
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ const ethers_1 = require("ethers");
6
+ class ChainlinkClientFactory extends ethers_1.ContractFactory {
7
+ constructor(signer) {
8
+ super(_abi, _bytecode, signer);
9
+ }
10
+ deploy() {
11
+ return super.deploy();
12
+ }
13
+ getDeployTransaction() {
14
+ return super.getDeployTransaction();
15
+ }
16
+ attach(address) {
17
+ return super.attach(address);
18
+ }
19
+ connect(signer) {
20
+ return super.connect(signer);
21
+ }
22
+ static connect(address, signerOrProvider) {
23
+ return new ethers_1.Contract(address, _abi, signerOrProvider);
24
+ }
25
+ }
26
+ exports.ChainlinkClientFactory = ChainlinkClientFactory;
27
+ const _abi = [
28
+ {
29
+ anonymous: false,
30
+ inputs: [
31
+ {
32
+ indexed: true,
33
+ name: "id",
34
+ type: "bytes32"
35
+ }
36
+ ],
37
+ name: "ChainlinkRequested",
38
+ type: "event"
39
+ },
40
+ {
41
+ anonymous: false,
42
+ inputs: [
43
+ {
44
+ indexed: true,
45
+ name: "id",
46
+ type: "bytes32"
47
+ }
48
+ ],
49
+ name: "ChainlinkFulfilled",
50
+ type: "event"
51
+ },
52
+ {
53
+ anonymous: false,
54
+ inputs: [
55
+ {
56
+ indexed: true,
57
+ name: "id",
58
+ type: "bytes32"
59
+ }
60
+ ],
61
+ name: "ChainlinkCancelled",
62
+ type: "event"
63
+ }
64
+ ];
65
+ const _bytecode = "0x60806040526001600455348015601457600080fd5b5060358060226000396000f3006080604052600080fd00a165627a7a7230582027b7bf66f743b304f1b41ac68d356d6faba92fdb4aae107e5cef49c0cfeda2d60029";
66
+ //# sourceMappingURL=ChainlinkClientFactory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChainlinkClientFactory.js","sourceRoot":"","sources":["../../../src/generated/ChainlinkClientFactory.ts"],"names":[],"mappings":";AAAA,0CAA0C;AAC1C,oBAAoB;;AAEpB,mCAA2D;AAM3D,MAAa,sBAAuB,SAAQ,wBAAe;IACzD,YAAY,MAAe;QACzB,KAAK,CAAC,IAAI,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;IACjC,CAAC;IAED,MAAM;QACJ,OAAO,KAAK,CAAC,MAAM,EAA8B,CAAC;IACpD,CAAC;IACD,oBAAoB;QAClB,OAAO,KAAK,CAAC,oBAAoB,EAAE,CAAC;IACtC,CAAC;IACD,MAAM,CAAC,OAAe;QACpB,OAAO,KAAK,CAAC,MAAM,CAAC,OAAO,CAAoB,CAAC;IAClD,CAAC;IACD,OAAO,CAAC,MAAc;QACpB,OAAO,KAAK,CAAC,OAAO,CAAC,MAAM,CAA2B,CAAC;IACzD,CAAC;IACD,MAAM,CAAC,OAAO,CACZ,OAAe,EACf,gBAAmC;QAEnC,OAAO,IAAI,iBAAQ,CAAC,OAAO,EAAE,IAAI,EAAE,gBAAgB,CAAoB,CAAC;IAC1E,CAAC;CACF;AAvBD,wDAuBC;AAED,MAAM,IAAI,GAAG;IACX;QACE,SAAS,EAAE,KAAK;QAChB,MAAM,EAAE;YACN;gBACE,OAAO,EAAE,IAAI;gBACb,IAAI,EAAE,IAAI;gBACV,IAAI,EAAE,SAAS;aAChB;SACF;QACD,IAAI,EAAE,oBAAoB;QAC1B,IAAI,EAAE,OAAO;KACd;IACD;QACE,SAAS,EAAE,KAAK;QAChB,MAAM,EAAE;YACN;gBACE,OAAO,EAAE,IAAI;gBACb,IAAI,EAAE,IAAI;gBACV,IAAI,EAAE,SAAS;aAChB;SACF;QACD,IAAI,EAAE,oBAAoB;QAC1B,IAAI,EAAE,OAAO;KACd;IACD;QACE,SAAS,EAAE,KAAK;QAChB,MAAM,EAAE;YACN;gBACE,OAAO,EAAE,IAAI;gBACb,IAAI,EAAE,IAAI;gBACV,IAAI,EAAE,SAAS;aAChB;SACF;QACD,IAAI,EAAE,oBAAoB;QAC1B,IAAI,EAAE,OAAO;KACd;CACF,CAAC;AAEF,MAAM,SAAS,GACb,kLAAkL,CAAC"}
@@ -0,0 +1,139 @@
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 ChainlinkRequestInterfaceInterface extends Interface {
14
+ functions: {
15
+ oracleRequest: TypedFunctionDescription<{
16
+ encode([
17
+ sender,
18
+ payment,
19
+ id,
20
+ callbackAddress,
21
+ callbackFunctionId,
22
+ nonce,
23
+ version,
24
+ data
25
+ ]: [
26
+ string,
27
+ BigNumberish,
28
+ Arrayish,
29
+ string,
30
+ Arrayish,
31
+ BigNumberish,
32
+ BigNumberish,
33
+ Arrayish
34
+ ]): string;
35
+ }>;
36
+
37
+ cancelOracleRequest: TypedFunctionDescription<{
38
+ encode([requestId, payment, callbackFunctionId, expiration]: [
39
+ Arrayish,
40
+ BigNumberish,
41
+ Arrayish,
42
+ BigNumberish
43
+ ]): string;
44
+ }>;
45
+ };
46
+
47
+ events: {};
48
+ }
49
+
50
+ export class ChainlinkRequestInterface extends Contract {
51
+ connect(
52
+ signerOrProvider: Signer | Provider | string
53
+ ): ChainlinkRequestInterface;
54
+ attach(addressOrName: string): ChainlinkRequestInterface;
55
+ deployed(): Promise<ChainlinkRequestInterface>;
56
+
57
+ on(
58
+ event: EventFilter | string,
59
+ listener: Listener
60
+ ): ChainlinkRequestInterface;
61
+ once(
62
+ event: EventFilter | string,
63
+ listener: Listener
64
+ ): ChainlinkRequestInterface;
65
+ addListener(
66
+ eventName: EventFilter | string,
67
+ listener: Listener
68
+ ): ChainlinkRequestInterface;
69
+ removeAllListeners(
70
+ eventName: EventFilter | string
71
+ ): ChainlinkRequestInterface;
72
+ removeListener(eventName: any, listener: Listener): ChainlinkRequestInterface;
73
+
74
+ interface: ChainlinkRequestInterfaceInterface;
75
+
76
+ functions: {
77
+ oracleRequest(
78
+ sender: string,
79
+ payment: BigNumberish,
80
+ id: Arrayish,
81
+ callbackAddress: string,
82
+ callbackFunctionId: Arrayish,
83
+ nonce: BigNumberish,
84
+ version: BigNumberish,
85
+ data: Arrayish,
86
+ overrides?: TransactionOverrides
87
+ ): Promise<ContractTransaction>;
88
+
89
+ cancelOracleRequest(
90
+ requestId: Arrayish,
91
+ payment: BigNumberish,
92
+ callbackFunctionId: Arrayish,
93
+ expiration: BigNumberish,
94
+ overrides?: TransactionOverrides
95
+ ): Promise<ContractTransaction>;
96
+ };
97
+
98
+ oracleRequest(
99
+ sender: string,
100
+ payment: BigNumberish,
101
+ id: Arrayish,
102
+ callbackAddress: string,
103
+ callbackFunctionId: Arrayish,
104
+ nonce: BigNumberish,
105
+ version: BigNumberish,
106
+ data: Arrayish,
107
+ overrides?: TransactionOverrides
108
+ ): Promise<ContractTransaction>;
109
+
110
+ cancelOracleRequest(
111
+ requestId: Arrayish,
112
+ payment: BigNumberish,
113
+ callbackFunctionId: Arrayish,
114
+ expiration: BigNumberish,
115
+ overrides?: TransactionOverrides
116
+ ): Promise<ContractTransaction>;
117
+
118
+ filters: {};
119
+
120
+ estimate: {
121
+ oracleRequest(
122
+ sender: string,
123
+ payment: BigNumberish,
124
+ id: Arrayish,
125
+ callbackAddress: string,
126
+ callbackFunctionId: Arrayish,
127
+ nonce: BigNumberish,
128
+ version: BigNumberish,
129
+ data: Arrayish
130
+ ): Promise<BigNumber>;
131
+
132
+ cancelOracleRequest(
133
+ requestId: Arrayish,
134
+ payment: BigNumberish,
135
+ callbackFunctionId: Arrayish,
136
+ expiration: BigNumberish
137
+ ): Promise<BigNumber>;
138
+ };
139
+ }
@@ -0,0 +1,6 @@
1
+ import { Signer } from "ethers";
2
+ import { Provider } from "ethers/providers";
3
+ import { ChainlinkRequestInterface } from "./ChainlinkRequestInterface";
4
+ export declare class ChainlinkRequestInterfaceFactory {
5
+ static connect(address: string, signerOrProvider: Signer | Provider): ChainlinkRequestInterface;
6
+ }