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,383 @@
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 OracleFactory extends ethers_1.ContractFactory {
7
+ constructor(signer) {
8
+ super(_abi, _bytecode, signer);
9
+ }
10
+ deploy(_link) {
11
+ return super.deploy(_link);
12
+ }
13
+ getDeployTransaction(_link) {
14
+ return super.getDeployTransaction(_link);
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.OracleFactory = OracleFactory;
27
+ const _abi = [
28
+ {
29
+ constant: false,
30
+ inputs: [
31
+ {
32
+ name: "_sender",
33
+ type: "address"
34
+ },
35
+ {
36
+ name: "_payment",
37
+ type: "uint256"
38
+ },
39
+ {
40
+ name: "_specId",
41
+ type: "bytes32"
42
+ },
43
+ {
44
+ name: "_callbackAddress",
45
+ type: "address"
46
+ },
47
+ {
48
+ name: "_callbackFunctionId",
49
+ type: "bytes4"
50
+ },
51
+ {
52
+ name: "_nonce",
53
+ type: "uint256"
54
+ },
55
+ {
56
+ name: "_dataVersion",
57
+ type: "uint256"
58
+ },
59
+ {
60
+ name: "_data",
61
+ type: "bytes"
62
+ }
63
+ ],
64
+ name: "oracleRequest",
65
+ outputs: [],
66
+ payable: false,
67
+ stateMutability: "nonpayable",
68
+ type: "function"
69
+ },
70
+ {
71
+ constant: false,
72
+ inputs: [
73
+ {
74
+ name: "_requestId",
75
+ type: "bytes32"
76
+ },
77
+ {
78
+ name: "_payment",
79
+ type: "uint256"
80
+ },
81
+ {
82
+ name: "_callbackAddress",
83
+ type: "address"
84
+ },
85
+ {
86
+ name: "_callbackFunctionId",
87
+ type: "bytes4"
88
+ },
89
+ {
90
+ name: "_expiration",
91
+ type: "uint256"
92
+ },
93
+ {
94
+ name: "_data",
95
+ type: "bytes32"
96
+ }
97
+ ],
98
+ name: "fulfillOracleRequest",
99
+ outputs: [
100
+ {
101
+ name: "",
102
+ type: "bool"
103
+ }
104
+ ],
105
+ payable: false,
106
+ stateMutability: "nonpayable",
107
+ type: "function"
108
+ },
109
+ {
110
+ constant: true,
111
+ inputs: [],
112
+ name: "EXPIRY_TIME",
113
+ outputs: [
114
+ {
115
+ name: "",
116
+ type: "uint256"
117
+ }
118
+ ],
119
+ payable: false,
120
+ stateMutability: "view",
121
+ type: "function"
122
+ },
123
+ {
124
+ constant: true,
125
+ inputs: [],
126
+ name: "withdrawable",
127
+ outputs: [
128
+ {
129
+ name: "",
130
+ type: "uint256"
131
+ }
132
+ ],
133
+ payable: false,
134
+ stateMutability: "view",
135
+ type: "function"
136
+ },
137
+ {
138
+ constant: false,
139
+ inputs: [
140
+ {
141
+ name: "_requestId",
142
+ type: "bytes32"
143
+ },
144
+ {
145
+ name: "_payment",
146
+ type: "uint256"
147
+ },
148
+ {
149
+ name: "_callbackFunc",
150
+ type: "bytes4"
151
+ },
152
+ {
153
+ name: "_expiration",
154
+ type: "uint256"
155
+ }
156
+ ],
157
+ name: "cancelOracleRequest",
158
+ outputs: [],
159
+ payable: false,
160
+ stateMutability: "nonpayable",
161
+ type: "function"
162
+ },
163
+ {
164
+ constant: false,
165
+ inputs: [],
166
+ name: "renounceOwnership",
167
+ outputs: [],
168
+ payable: false,
169
+ stateMutability: "nonpayable",
170
+ type: "function"
171
+ },
172
+ {
173
+ constant: false,
174
+ inputs: [
175
+ {
176
+ name: "_node",
177
+ type: "address"
178
+ },
179
+ {
180
+ name: "_allowed",
181
+ type: "bool"
182
+ }
183
+ ],
184
+ name: "setFulfillmentPermission",
185
+ outputs: [],
186
+ payable: false,
187
+ stateMutability: "nonpayable",
188
+ type: "function"
189
+ },
190
+ {
191
+ constant: true,
192
+ inputs: [],
193
+ name: "owner",
194
+ outputs: [
195
+ {
196
+ name: "",
197
+ type: "address"
198
+ }
199
+ ],
200
+ payable: false,
201
+ stateMutability: "view",
202
+ type: "function"
203
+ },
204
+ {
205
+ constant: false,
206
+ inputs: [
207
+ {
208
+ name: "_sender",
209
+ type: "address"
210
+ },
211
+ {
212
+ name: "_amount",
213
+ type: "uint256"
214
+ },
215
+ {
216
+ name: "_data",
217
+ type: "bytes"
218
+ }
219
+ ],
220
+ name: "onTokenTransfer",
221
+ outputs: [],
222
+ payable: false,
223
+ stateMutability: "nonpayable",
224
+ type: "function"
225
+ },
226
+ {
227
+ constant: true,
228
+ inputs: [
229
+ {
230
+ name: "_node",
231
+ type: "address"
232
+ }
233
+ ],
234
+ name: "getAuthorizationStatus",
235
+ outputs: [
236
+ {
237
+ name: "",
238
+ type: "bool"
239
+ }
240
+ ],
241
+ payable: false,
242
+ stateMutability: "view",
243
+ type: "function"
244
+ },
245
+ {
246
+ constant: false,
247
+ inputs: [
248
+ {
249
+ name: "_newOwner",
250
+ type: "address"
251
+ }
252
+ ],
253
+ name: "transferOwnership",
254
+ outputs: [],
255
+ payable: false,
256
+ stateMutability: "nonpayable",
257
+ type: "function"
258
+ },
259
+ {
260
+ constant: false,
261
+ inputs: [
262
+ {
263
+ name: "_recipient",
264
+ type: "address"
265
+ },
266
+ {
267
+ name: "_amount",
268
+ type: "uint256"
269
+ }
270
+ ],
271
+ name: "withdraw",
272
+ outputs: [],
273
+ payable: false,
274
+ stateMutability: "nonpayable",
275
+ type: "function"
276
+ },
277
+ {
278
+ inputs: [
279
+ {
280
+ name: "_link",
281
+ type: "address"
282
+ }
283
+ ],
284
+ payable: false,
285
+ stateMutability: "nonpayable",
286
+ type: "constructor"
287
+ },
288
+ {
289
+ anonymous: false,
290
+ inputs: [
291
+ {
292
+ indexed: true,
293
+ name: "specId",
294
+ type: "bytes32"
295
+ },
296
+ {
297
+ indexed: false,
298
+ name: "requester",
299
+ type: "address"
300
+ },
301
+ {
302
+ indexed: false,
303
+ name: "requestId",
304
+ type: "bytes32"
305
+ },
306
+ {
307
+ indexed: false,
308
+ name: "payment",
309
+ type: "uint256"
310
+ },
311
+ {
312
+ indexed: false,
313
+ name: "callbackAddr",
314
+ type: "address"
315
+ },
316
+ {
317
+ indexed: false,
318
+ name: "callbackFunctionId",
319
+ type: "bytes4"
320
+ },
321
+ {
322
+ indexed: false,
323
+ name: "cancelExpiration",
324
+ type: "uint256"
325
+ },
326
+ {
327
+ indexed: false,
328
+ name: "dataVersion",
329
+ type: "uint256"
330
+ },
331
+ {
332
+ indexed: false,
333
+ name: "data",
334
+ type: "bytes"
335
+ }
336
+ ],
337
+ name: "OracleRequest",
338
+ type: "event"
339
+ },
340
+ {
341
+ anonymous: false,
342
+ inputs: [
343
+ {
344
+ indexed: true,
345
+ name: "requestId",
346
+ type: "bytes32"
347
+ }
348
+ ],
349
+ name: "CancelOracleRequest",
350
+ type: "event"
351
+ },
352
+ {
353
+ anonymous: false,
354
+ inputs: [
355
+ {
356
+ indexed: true,
357
+ name: "previousOwner",
358
+ type: "address"
359
+ }
360
+ ],
361
+ name: "OwnershipRenounced",
362
+ type: "event"
363
+ },
364
+ {
365
+ anonymous: false,
366
+ inputs: [
367
+ {
368
+ indexed: true,
369
+ name: "previousOwner",
370
+ type: "address"
371
+ },
372
+ {
373
+ indexed: true,
374
+ name: "newOwner",
375
+ type: "address"
376
+ }
377
+ ],
378
+ name: "OwnershipTransferred",
379
+ type: "event"
380
+ }
381
+ ];
382
+ const _bytecode = "0x6080604052600160045534801561001557600080fd5b50604051602080611dd383398101806040528101908080519060200190929190505050336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050611d0a806100c96000396000f3006080604052600436106100ba576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806340429946146100bf5780634ab0d1901461018f5780634b60228214610243578063501883011461026e5780636ee4d55314610299578063715018a6146103075780637fcd56db1461031e5780638da5cb5b1461036d578063a4c0ed36146103c4578063d3e9c31414610457578063f2fde38b146104b2578063f3fef3a3146104f5575b600080fd5b3480156100cb57600080fd5b5061018d600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291908035600019169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080357bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690602001909291908035906020019092919080359060200190929190803590602001908201803590602001919091929391929390505050610542565b005b34801561019b57600080fd5b50610229600480360381019080803560001916906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080357bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19169060200190929190803590602001909291908035600019169060200190929190505050610ab9565b604051808215151515815260200191505060405180910390f35b34801561024f57600080fd5b50610258610fa3565b6040518082815260200191505060405180910390f35b34801561027a57600080fd5b50610283610fa9565b6040518082815260200191505060405180910390f35b3480156102a557600080fd5b5061030560048036038101908080356000191690602001909291908035906020019092919080357bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916906020019092919080359060200190929190505050611021565b005b34801561031357600080fd5b5061031c6113a9565b005b34801561032a57600080fd5b5061036b600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035151590602001909291905050506114ab565b005b34801561037957600080fd5b50610382611561565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156103d057600080fd5b50610455600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050611586565b005b34801561046357600080fd5b50610498600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506118bb565b604051808215151515815260200191505060405180910390f35b3480156104be57600080fd5b506104f3600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611911565b005b34801561050157600080fd5b50610540600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611978565b005b600080600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561060a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f4d75737420757365204c494e4b20746f6b656e0000000000000000000000000081525060200191505060405180910390fd5b87600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141515156106d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260178152602001807f43616e6e6f742063616c6c6261636b20746f204c494e4b00000000000000000081525060200191505060405180910390fd5b8b87604051602001808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166c01000000000000000000000000028152601401828152602001925050506040516020818303038152906040526040518082805190602001908083835b6020831015156107695780518252602082019150602081019050602083039250610744565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040518091039020925060006001026002600085600019166000191681526020019081526020016000205460001916141515610832576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f4d75737420757365206120756e6971756520494400000000000000000000000081525060200191505060405180910390fd5b61084761012c42611baf90919063ffffffff16565b91508a898984604051602001808581526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166c01000000000000000000000000028152601401837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681526004018281526020019450505050506040516020818303038152906040526040518082805190602001908083835b60208310151561092f578051825260208201915060208101905060208303925061090a565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040518091039020600260008560001916600019168152602001908152602001600020816000191690555089600019167fd8d7ecc4800d25fa53ce0372f13a416d98907a7ef3d8d3bdd79cf4fe75529c658d858e8d8d888d8d8d604051808a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200189600019166000191681526020018881526020018773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001867bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200185815260200184815260200180602001828103825284848281815260200192508082843782019150509a505050505050505050505060405180910390a2505050505050505050505050565b600080600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680610b6057506000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b1515610bfa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a8152602001807f4e6f7420616e20617574686f72697a6564206e6f646520746f2066756c66696c81526020017f6c2072657175657374730000000000000000000000000000000000000000000081525060400191505060405180910390fd5b876000600102600260008360001916600019168152602001908152602001600020546000191614151515610c96576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f4d757374206861766520612076616c696420726571756573744964000000000081525060200191505060405180910390fd5b87878787604051602001808581526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166c01000000000000000000000000028152601401837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681526004018281526020019450505050506040516020818303038152906040526040518082805190602001908083835b602083101515610d7c5780518252602082019150602081019050602083039250610d57565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902091508160001916600260008b600019166000191681526020019081526020016000205460001916141515610e45576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f506172616d7320646f206e6f74206d617463682072657175657374204944000081525060200191505060405180910390fd5b610e5a88600454611baf90919063ffffffff16565b600481905550600260008a600019166000191681526020019081526020016000206000905562061a805a10151515610efa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4d7573742070726f7669646520636f6e73756d657220656e6f7567682067617381525060200191505060405180910390fd5b8673ffffffffffffffffffffffffffffffffffffffff16867c010000000000000000000000000000000000000000000000000000000090048a866040518363ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018083600019166000191681526020018260001916600019168152602001925050506000604051808303816000875af192505050925050509695505050505050565b61012c81565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561100657600080fd5b61101c6001600454611bcb90919063ffffffff16565b905090565b600083338484604051602001808581526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166c01000000000000000000000000028152601401837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681526004018281526020019450505050506040516020818303038152906040526040518082805190602001908083835b60208310151561110957805182526020820191506020810190506020830392506110e4565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390209050600260008660001916600019168152602001908152602001600020546000191681600019161415156111d2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f506172616d7320646f206e6f74206d617463682072657175657374204944000081525060200191505060405180910390fd5b42821115151561124a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f52657175657374206973206e6f7420657870697265640000000000000000000081525060200191505060405180910390fd5b6002600086600019166000191681526020019081526020016000206000905584600019167fa7842b9ec549398102c0d91b1b9919b2f20558aefdadf57528a95c6cd3292e9360405160405180910390a2600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33866040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561135f57600080fd5b505af1158015611373573d6000803e3d6000fd5b505050506040513d602081101561138957600080fd5b810190808051906020019092919050505015156113a257fe5b5050505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561140457600080fd5b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482060405160405180910390a260008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561150657600080fd5b80600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561164b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f4d75737420757365204c494e4b20746f6b656e0000000000000000000000000081525060200191505060405180910390fd5b8060026020026004018151101515156116cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f496e76616c69642072657175657374206c656e6774680000000000000000000081525060200191505060405180910390fd5b8160006020820151905063404299467c0100000000000000000000000000000000000000000000000000000000027bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161415156117ae576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f4d757374207573652077686974656c69737465642066756e6374696f6e73000081525060200191505060405180910390fd5b8560248501528460448501523073ffffffffffffffffffffffffffffffffffffffff168460405180828051906020019080838360005b838110156117ff5780820151818401526020810190506117e4565b50505050905090810190601f16801561182c5780820380516001836020036101000a031916815260200191505b50915050600060405180830381855af491505015156118b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f556e61626c6520746f206372656174652072657175657374000000000000000081525060200191505060405180910390fd5b505050505050565b6000600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561196c57600080fd5b61197581611be4565b50565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156119d357600080fd5b806119e8600182611baf90919063ffffffff16565b60045410151515611a87576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260358152602001807f416d6f756e74207265717565737465642069732067726561746572207468616e81526020017f20776974686472617761626c652062616c616e6365000000000000000000000081525060400191505060405180910390fd5b611a9c82600454611bcb90919063ffffffff16565b600481905550600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb84846040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015611b6757600080fd5b505af1158015611b7b573d6000803e3d6000fd5b505050506040513d6020811015611b9157600080fd5b81019080805190602001909291905050501515611baa57fe5b505050565b60008183019050828110151515611bc257fe5b80905092915050565b6000828211151515611bd957fe5b818303905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515611c2057600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505600a165627a7a723058204f9b881f3ae02173686d5ff8918c53802541cf2f52d6e4961136f47b609fab2f0029";
383
+ //# sourceMappingURL=OracleFactory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OracleFactory.js","sourceRoot":"","sources":["../../../src/generated/OracleFactory.ts"],"names":[],"mappings":";AAAA,0CAA0C;AAC1C,oBAAoB;;AAEpB,mCAA2D;AAM3D,MAAa,aAAc,SAAQ,wBAAe;IAChD,YAAY,MAAe;QACzB,KAAK,CAAC,IAAI,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;IACjC,CAAC;IAED,MAAM,CAAC,KAAa;QAClB,OAAO,KAAK,CAAC,MAAM,CAAC,KAAK,CAAoB,CAAC;IAChD,CAAC;IACD,oBAA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F,MAAM,SAAS,GACb,06dAA06d,CAAC"}
@@ -0,0 +1,144 @@
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 OracleInterfaceInterface extends Interface {
14
+ functions: {
15
+ fulfillOracleRequest: TypedFunctionDescription<{
16
+ encode([
17
+ requestId,
18
+ payment,
19
+ callbackAddress,
20
+ callbackFunctionId,
21
+ expiration,
22
+ data
23
+ ]: [
24
+ Arrayish,
25
+ BigNumberish,
26
+ string,
27
+ Arrayish,
28
+ BigNumberish,
29
+ Arrayish
30
+ ]): string;
31
+ }>;
32
+
33
+ withdrawable: TypedFunctionDescription<{ encode([]: []): string }>;
34
+
35
+ setFulfillmentPermission: TypedFunctionDescription<{
36
+ encode([node, allowed]: [string, boolean]): string;
37
+ }>;
38
+
39
+ getAuthorizationStatus: TypedFunctionDescription<{
40
+ encode([node]: [string]): string;
41
+ }>;
42
+
43
+ withdraw: TypedFunctionDescription<{
44
+ encode([recipient, amount]: [string, BigNumberish]): string;
45
+ }>;
46
+ };
47
+
48
+ events: {};
49
+ }
50
+
51
+ export class OracleInterface extends Contract {
52
+ connect(signerOrProvider: Signer | Provider | string): OracleInterface;
53
+ attach(addressOrName: string): OracleInterface;
54
+ deployed(): Promise<OracleInterface>;
55
+
56
+ on(event: EventFilter | string, listener: Listener): OracleInterface;
57
+ once(event: EventFilter | string, listener: Listener): OracleInterface;
58
+ addListener(
59
+ eventName: EventFilter | string,
60
+ listener: Listener
61
+ ): OracleInterface;
62
+ removeAllListeners(eventName: EventFilter | string): OracleInterface;
63
+ removeListener(eventName: any, listener: Listener): OracleInterface;
64
+
65
+ interface: OracleInterfaceInterface;
66
+
67
+ functions: {
68
+ fulfillOracleRequest(
69
+ requestId: Arrayish,
70
+ payment: BigNumberish,
71
+ callbackAddress: string,
72
+ callbackFunctionId: Arrayish,
73
+ expiration: BigNumberish,
74
+ data: Arrayish,
75
+ overrides?: TransactionOverrides
76
+ ): Promise<ContractTransaction>;
77
+
78
+ withdrawable(): Promise<BigNumber>;
79
+
80
+ setFulfillmentPermission(
81
+ node: string,
82
+ allowed: boolean,
83
+ overrides?: TransactionOverrides
84
+ ): Promise<ContractTransaction>;
85
+
86
+ getAuthorizationStatus(node: string): Promise<boolean>;
87
+
88
+ withdraw(
89
+ recipient: string,
90
+ amount: BigNumberish,
91
+ overrides?: TransactionOverrides
92
+ ): Promise<ContractTransaction>;
93
+ };
94
+
95
+ fulfillOracleRequest(
96
+ requestId: Arrayish,
97
+ payment: BigNumberish,
98
+ callbackAddress: string,
99
+ callbackFunctionId: Arrayish,
100
+ expiration: BigNumberish,
101
+ data: Arrayish,
102
+ overrides?: TransactionOverrides
103
+ ): Promise<ContractTransaction>;
104
+
105
+ withdrawable(): Promise<BigNumber>;
106
+
107
+ setFulfillmentPermission(
108
+ node: string,
109
+ allowed: boolean,
110
+ overrides?: TransactionOverrides
111
+ ): Promise<ContractTransaction>;
112
+
113
+ getAuthorizationStatus(node: string): Promise<boolean>;
114
+
115
+ withdraw(
116
+ recipient: string,
117
+ amount: BigNumberish,
118
+ overrides?: TransactionOverrides
119
+ ): Promise<ContractTransaction>;
120
+
121
+ filters: {};
122
+
123
+ estimate: {
124
+ fulfillOracleRequest(
125
+ requestId: Arrayish,
126
+ payment: BigNumberish,
127
+ callbackAddress: string,
128
+ callbackFunctionId: Arrayish,
129
+ expiration: BigNumberish,
130
+ data: Arrayish
131
+ ): Promise<BigNumber>;
132
+
133
+ withdrawable(): Promise<BigNumber>;
134
+
135
+ setFulfillmentPermission(
136
+ node: string,
137
+ allowed: boolean
138
+ ): Promise<BigNumber>;
139
+
140
+ getAuthorizationStatus(node: string): Promise<BigNumber>;
141
+
142
+ withdraw(recipient: string, amount: BigNumberish): Promise<BigNumber>;
143
+ };
144
+ }
@@ -0,0 +1,6 @@
1
+ import { Signer } from "ethers";
2
+ import { Provider } from "ethers/providers";
3
+ import { OracleInterface } from "./OracleInterface";
4
+ export declare class OracleInterfaceFactory {
5
+ static connect(address: string, signerOrProvider: Signer | Provider): OracleInterface;
6
+ }
@@ -0,0 +1,122 @@
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 OracleInterfaceFactory {
7
+ static connect(address, signerOrProvider) {
8
+ return new ethers_1.Contract(address, _abi, signerOrProvider);
9
+ }
10
+ }
11
+ exports.OracleInterfaceFactory = OracleInterfaceFactory;
12
+ const _abi = [
13
+ {
14
+ constant: false,
15
+ inputs: [
16
+ {
17
+ name: "requestId",
18
+ type: "bytes32"
19
+ },
20
+ {
21
+ name: "payment",
22
+ type: "uint256"
23
+ },
24
+ {
25
+ name: "callbackAddress",
26
+ type: "address"
27
+ },
28
+ {
29
+ name: "callbackFunctionId",
30
+ type: "bytes4"
31
+ },
32
+ {
33
+ name: "expiration",
34
+ type: "uint256"
35
+ },
36
+ {
37
+ name: "data",
38
+ type: "bytes32"
39
+ }
40
+ ],
41
+ name: "fulfillOracleRequest",
42
+ outputs: [
43
+ {
44
+ name: "",
45
+ type: "bool"
46
+ }
47
+ ],
48
+ payable: false,
49
+ stateMutability: "nonpayable",
50
+ type: "function"
51
+ },
52
+ {
53
+ constant: true,
54
+ inputs: [],
55
+ name: "withdrawable",
56
+ outputs: [
57
+ {
58
+ name: "",
59
+ type: "uint256"
60
+ }
61
+ ],
62
+ payable: false,
63
+ stateMutability: "view",
64
+ type: "function"
65
+ },
66
+ {
67
+ constant: false,
68
+ inputs: [
69
+ {
70
+ name: "node",
71
+ type: "address"
72
+ },
73
+ {
74
+ name: "allowed",
75
+ type: "bool"
76
+ }
77
+ ],
78
+ name: "setFulfillmentPermission",
79
+ outputs: [],
80
+ payable: false,
81
+ stateMutability: "nonpayable",
82
+ type: "function"
83
+ },
84
+ {
85
+ constant: true,
86
+ inputs: [
87
+ {
88
+ name: "node",
89
+ type: "address"
90
+ }
91
+ ],
92
+ name: "getAuthorizationStatus",
93
+ outputs: [
94
+ {
95
+ name: "",
96
+ type: "bool"
97
+ }
98
+ ],
99
+ payable: false,
100
+ stateMutability: "view",
101
+ type: "function"
102
+ },
103
+ {
104
+ constant: false,
105
+ inputs: [
106
+ {
107
+ name: "recipient",
108
+ type: "address"
109
+ },
110
+ {
111
+ name: "amount",
112
+ type: "uint256"
113
+ }
114
+ ],
115
+ name: "withdraw",
116
+ outputs: [],
117
+ payable: false,
118
+ stateMutability: "nonpayable",
119
+ type: "function"
120
+ }
121
+ ];
122
+ //# sourceMappingURL=OracleInterfaceFactory.js.map