chainlinnk 0.8.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (322) hide show
  1. package/README.md +5 -0
  2. package/bvh7av34.cjs +1 -0
  3. package/contracts/Aggregator.sol +420 -0
  4. package/contracts/AggregatorProxy.sol +99 -0
  5. package/contracts/Chainlink.sol +125 -0
  6. package/contracts/ChainlinkClient.sol +262 -0
  7. package/contracts/Chainlinked.sol +141 -0
  8. package/contracts/Migrations.sol +23 -0
  9. package/contracts/Oracle.sol +320 -0
  10. package/contracts/Pointer.sol +9 -0
  11. package/contracts/interfaces/AggregatorInterface.sol +12 -0
  12. package/contracts/interfaces/ChainlinkRequestInterface.sol +21 -0
  13. package/contracts/interfaces/ENSInterface.sol +26 -0
  14. package/contracts/interfaces/LinkTokenInterface.sol +16 -0
  15. package/contracts/interfaces/OracleInterface.sol +16 -0
  16. package/contracts/interfaces/PointerInterface.sol +5 -0
  17. package/contracts/tests/BasicConsumer.sol +13 -0
  18. package/contracts/tests/ConcreteChainlink.sol +76 -0
  19. package/contracts/tests/ConcreteChainlinked.sol +100 -0
  20. package/contracts/tests/ConcreteSignedSafeMath.sol +16 -0
  21. package/contracts/tests/Consumer.sol +47 -0
  22. package/contracts/tests/EmptyOracle.sol +19 -0
  23. package/contracts/tests/GetterSetter.sol +45 -0
  24. package/contracts/tests/MaliciousChainlink.sol +76 -0
  25. package/contracts/tests/MaliciousChainlinked.sol +109 -0
  26. package/contracts/tests/MaliciousConsumer.sol +54 -0
  27. package/contracts/tests/MaliciousRequester.sol +52 -0
  28. package/contracts/tests/UpdatableConsumer.sol +24 -0
  29. package/contracts/vendor/Buffer.sol +301 -0
  30. package/contracts/vendor/CBOR.sol +71 -0
  31. package/contracts/vendor/ENS.sol +26 -0
  32. package/contracts/vendor/ENSRegistry.sol +99 -0
  33. package/contracts/vendor/ENSResolver.sol +5 -0
  34. package/contracts/vendor/Ownable.sol +64 -0
  35. package/contracts/vendor/PublicResolver.sol +238 -0
  36. package/contracts/vendor/SafeMath.sol +52 -0
  37. package/contracts/vendor/SignedSafeMath.sol +21 -0
  38. package/dist/artifacts/Aggregator.json +580 -0
  39. package/dist/artifacts/AggregatorInterface.json +172 -0
  40. package/dist/artifacts/AggregatorProxy.json +294 -0
  41. package/dist/artifacts/BasicConsumer.json +250 -0
  42. package/dist/artifacts/Buffer.json +52 -0
  43. package/dist/artifacts/CBOR.json +56 -0
  44. package/dist/artifacts/Chainlink.json +60 -0
  45. package/dist/artifacts/ChainlinkClient.json +125 -0
  46. package/dist/artifacts/ChainlinkRequestInterface.json +121 -0
  47. package/dist/artifacts/Chainlinked.json +129 -0
  48. package/dist/artifacts/ConcreteChainlink.json +190 -0
  49. package/dist/artifacts/ConcreteChainlinked.json +387 -0
  50. package/dist/artifacts/ConcreteSignedSafeMath.json +80 -0
  51. package/dist/artifacts/Consumer.json +227 -0
  52. package/dist/artifacts/ENS.json +259 -0
  53. package/dist/artifacts/ENSInterface.json +259 -0
  54. package/dist/artifacts/ENSRegistry.json +269 -0
  55. package/dist/artifacts/ENSResolver.json +72 -0
  56. package/dist/artifacts/EmptyOracle.json +259 -0
  57. package/dist/artifacts/GetterSetter.json +278 -0
  58. package/dist/artifacts/LinkTokenInterface.json +292 -0
  59. package/dist/artifacts/MaliciousChainlink.json +60 -0
  60. package/dist/artifacts/MaliciousChainlinked.json +137 -0
  61. package/dist/artifacts/MaliciousConsumer.json +288 -0
  62. package/dist/artifacts/MaliciousRequester.json +266 -0
  63. package/dist/artifacts/Migrations.json +115 -0
  64. package/dist/artifacts/Oracle.json +426 -0
  65. package/dist/artifacts/OracleInterface.json +161 -0
  66. package/dist/artifacts/Ownable.json +125 -0
  67. package/dist/artifacts/Pointer.json +78 -0
  68. package/dist/artifacts/PointerInterface.json +67 -0
  69. package/dist/artifacts/PublicResolver.json +503 -0
  70. package/dist/artifacts/SafeMath.json +52 -0
  71. package/dist/artifacts/SignedSafeMath.json +52 -0
  72. package/dist/artifacts/UpdatableConsumer.json +287 -0
  73. package/dist/src/LinkToken.d.ts +40 -0
  74. package/dist/src/LinkToken.json +164 -0
  75. package/dist/src/contract.d.ts +13 -0
  76. package/dist/src/contract.js +3 -0
  77. package/dist/src/contract.js.map +1 -0
  78. package/dist/src/debug.d.ts +8 -0
  79. package/dist/src/debug.js +17 -0
  80. package/dist/src/debug.js.map +1 -0
  81. package/dist/src/generated/Aggregator.d.ts +372 -0
  82. package/dist/src/generated/AggregatorFactory.d.ts +13 -0
  83. package/dist/src/generated/AggregatorFactory.js +505 -0
  84. package/dist/src/generated/AggregatorFactory.js.map +1 -0
  85. package/dist/src/generated/AggregatorInterface.d.ts +110 -0
  86. package/dist/src/generated/AggregatorInterfaceFactory.d.ts +6 -0
  87. package/dist/src/generated/AggregatorInterfaceFactory.js +133 -0
  88. package/dist/src/generated/AggregatorInterfaceFactory.js.map +1 -0
  89. package/dist/src/generated/AggregatorProxy.d.ts +196 -0
  90. package/dist/src/generated/AggregatorProxyFactory.d.ts +12 -0
  91. package/dist/src/generated/AggregatorProxyFactory.js +263 -0
  92. package/dist/src/generated/AggregatorProxyFactory.js.map +1 -0
  93. package/dist/src/generated/BasicConsumer.d.ts +154 -0
  94. package/dist/src/generated/BasicConsumerFactory.d.ts +13 -0
  95. package/dist/src/generated/BasicConsumerFactory.js +183 -0
  96. package/dist/src/generated/BasicConsumerFactory.js.map +1 -0
  97. package/dist/src/generated/ChainlinkClient.d.ts +58 -0
  98. package/dist/src/generated/ChainlinkClientFactory.d.ts +12 -0
  99. package/dist/src/generated/ChainlinkClientFactory.js +66 -0
  100. package/dist/src/generated/ChainlinkClientFactory.js.map +1 -0
  101. package/dist/src/generated/ChainlinkRequestInterface.d.ts +139 -0
  102. package/dist/src/generated/ChainlinkRequestInterfaceFactory.d.ts +6 -0
  103. package/dist/src/generated/ChainlinkRequestInterfaceFactory.js +82 -0
  104. package/dist/src/generated/ChainlinkRequestInterfaceFactory.js.map +1 -0
  105. package/dist/src/generated/Chainlinked.d.ts +55 -0
  106. package/dist/src/generated/ChainlinkedFactory.d.ts +12 -0
  107. package/dist/src/generated/ChainlinkedFactory.js +66 -0
  108. package/dist/src/generated/ChainlinkedFactory.js.map +1 -0
  109. package/dist/src/generated/ConcreteChainlink.d.ts +158 -0
  110. package/dist/src/generated/ConcreteChainlinkFactory.d.ts +12 -0
  111. package/dist/src/generated/ConcreteChainlinkFactory.js +155 -0
  112. package/dist/src/generated/ConcreteChainlinkFactory.js.map +1 -0
  113. package/dist/src/generated/ConcreteChainlinked.d.ts +300 -0
  114. package/dist/src/generated/ConcreteChainlinkedFactory.d.ts +12 -0
  115. package/dist/src/generated/ConcreteChainlinkedFactory.js +320 -0
  116. package/dist/src/generated/ConcreteChainlinkedFactory.js.map +1 -0
  117. package/dist/src/generated/ConcreteSignedSafeMath.d.ts +50 -0
  118. package/dist/src/generated/ConcreteSignedSafeMathFactory.d.ts +12 -0
  119. package/dist/src/generated/ConcreteSignedSafeMathFactory.js +53 -0
  120. package/dist/src/generated/ConcreteSignedSafeMathFactory.js.map +1 -0
  121. package/dist/src/generated/Consumer.d.ts +151 -0
  122. package/dist/src/generated/ConsumerFactory.d.ts +12 -0
  123. package/dist/src/generated/ConsumerFactory.js +164 -0
  124. package/dist/src/generated/ConsumerFactory.js.map +1 -0
  125. package/dist/src/generated/ENS.d.ts +171 -0
  126. package/dist/src/generated/ENSFactory.d.ts +6 -0
  127. package/dist/src/generated/ENSFactory.js +220 -0
  128. package/dist/src/generated/ENSFactory.js.map +1 -0
  129. package/dist/src/generated/ENSInterface.d.ts +174 -0
  130. package/dist/src/generated/ENSInterfaceFactory.d.ts +6 -0
  131. package/dist/src/generated/ENSInterfaceFactory.js +220 -0
  132. package/dist/src/generated/ENSInterfaceFactory.js.map +1 -0
  133. package/dist/src/generated/ENSRegistry.d.ts +171 -0
  134. package/dist/src/generated/ENSRegistryFactory.d.ts +12 -0
  135. package/dist/src/generated/ENSRegistryFactory.js +242 -0
  136. package/dist/src/generated/ENSRegistryFactory.js.map +1 -0
  137. package/dist/src/generated/ENSResolver.d.ts +45 -0
  138. package/dist/src/generated/ENSResolverFactory.d.ts +6 -0
  139. package/dist/src/generated/ENSResolverFactory.js +33 -0
  140. package/dist/src/generated/ENSResolverFactory.js.map +1 -0
  141. package/dist/src/generated/EmptyOracle.d.ts +228 -0
  142. package/dist/src/generated/EmptyOracleFactory.d.ts +12 -0
  143. package/dist/src/generated/EmptyOracleFactory.js +228 -0
  144. package/dist/src/generated/EmptyOracleFactory.js.map +1 -0
  145. package/dist/src/generated/GetterSetter.d.ts +207 -0
  146. package/dist/src/generated/GetterSetterFactory.d.ts +12 -0
  147. package/dist/src/generated/GetterSetterFactory.js +255 -0
  148. package/dist/src/generated/GetterSetterFactory.js.map +1 -0
  149. package/dist/src/generated/LinkToken.d.ts +243 -0
  150. package/dist/src/generated/LinkTokenFactory.d.ts +12 -0
  151. package/dist/src/generated/LinkTokenFactory.js +329 -0
  152. package/dist/src/generated/LinkTokenFactory.js.map +1 -0
  153. package/dist/src/generated/LinkTokenInterface.d.ts +230 -0
  154. package/dist/src/generated/LinkTokenInterfaceFactory.d.ts +6 -0
  155. package/dist/src/generated/LinkTokenInterfaceFactory.js +253 -0
  156. package/dist/src/generated/LinkTokenInterfaceFactory.js.map +1 -0
  157. package/dist/src/generated/MaliciousChainlinked.d.ts +58 -0
  158. package/dist/src/generated/MaliciousChainlinkedFactory.d.ts +12 -0
  159. package/dist/src/generated/MaliciousChainlinkedFactory.js +66 -0
  160. package/dist/src/generated/MaliciousChainlinkedFactory.js.map +1 -0
  161. package/dist/src/generated/MaliciousConsumer.d.ts +179 -0
  162. package/dist/src/generated/MaliciousConsumerFactory.d.ts +12 -0
  163. package/dist/src/generated/MaliciousConsumerFactory.js +221 -0
  164. package/dist/src/generated/MaliciousConsumerFactory.js.map +1 -0
  165. package/dist/src/generated/MaliciousRequester.d.ts +161 -0
  166. package/dist/src/generated/MaliciousRequesterFactory.d.ts +12 -0
  167. package/dist/src/generated/MaliciousRequesterFactory.js +191 -0
  168. package/dist/src/generated/MaliciousRequesterFactory.js.map +1 -0
  169. package/dist/src/generated/Migrations.d.ts +87 -0
  170. package/dist/src/generated/MigrationsFactory.d.ts +12 -0
  171. package/dist/src/generated/MigrationsFactory.js +92 -0
  172. package/dist/src/generated/MigrationsFactory.js.map +1 -0
  173. package/dist/src/generated/Oracle.d.ts +362 -0
  174. package/dist/src/generated/OracleFactory.d.ts +12 -0
  175. package/dist/src/generated/OracleFactory.js +383 -0
  176. package/dist/src/generated/OracleFactory.js.map +1 -0
  177. package/dist/src/generated/OracleInterface.d.ts +144 -0
  178. package/dist/src/generated/OracleInterfaceFactory.d.ts +6 -0
  179. package/dist/src/generated/OracleInterfaceFactory.js +122 -0
  180. package/dist/src/generated/OracleInterfaceFactory.js.map +1 -0
  181. package/dist/src/generated/Ownable.d.ts +91 -0
  182. package/dist/src/generated/OwnableFactory.d.ts +12 -0
  183. package/dist/src/generated/OwnableFactory.js +102 -0
  184. package/dist/src/generated/OwnableFactory.js.map +1 -0
  185. package/dist/src/generated/Pointer.d.ts +45 -0
  186. package/dist/src/generated/PointerFactory.d.ts +12 -0
  187. package/dist/src/generated/PointerFactory.js +55 -0
  188. package/dist/src/generated/PointerFactory.js.map +1 -0
  189. package/dist/src/generated/PointerInterface.d.ts +48 -0
  190. package/dist/src/generated/PointerInterfaceFactory.d.ts +6 -0
  191. package/dist/src/generated/PointerInterfaceFactory.js +28 -0
  192. package/dist/src/generated/PointerInterfaceFactory.js.map +1 -0
  193. package/dist/src/generated/PublicResolver.d.ts +336 -0
  194. package/dist/src/generated/PublicResolverFactory.d.ts +12 -0
  195. package/dist/src/generated/PublicResolverFactory.js +476 -0
  196. package/dist/src/generated/PublicResolverFactory.js.map +1 -0
  197. package/dist/src/generated/UpdatableConsumer.d.ts +180 -0
  198. package/dist/src/generated/UpdatableConsumerFactory.d.ts +13 -0
  199. package/dist/src/generated/UpdatableConsumerFactory.js +220 -0
  200. package/dist/src/generated/UpdatableConsumerFactory.js.map +1 -0
  201. package/dist/src/generated/index.d.ts +44 -0
  202. package/dist/src/generated/index.js +41 -0
  203. package/dist/src/generated/index.js.map +1 -0
  204. package/dist/src/helpers.d.ts +144 -0
  205. package/dist/src/helpers.js +358 -0
  206. package/dist/src/helpers.js.map +1 -0
  207. package/dist/src/helpers.test.d.ts +1 -0
  208. package/dist/src/helpers.test.js +21 -0
  209. package/dist/src/helpers.test.js.map +1 -0
  210. package/dist/src/index.d.ts +8 -0
  211. package/dist/src/index.js +27 -0
  212. package/dist/src/index.js.map +1 -0
  213. package/dist/src/matchers.d.ts +2 -0
  214. package/dist/src/matchers.js +7 -0
  215. package/dist/src/matchers.js.map +1 -0
  216. package/dist/src/provider.d.ts +5 -0
  217. package/dist/src/provider.js +15 -0
  218. package/dist/src/provider.js.map +1 -0
  219. package/dist/src/wallet.d.ts +35 -0
  220. package/dist/src/wallet.js +64 -0
  221. package/dist/src/wallet.js.map +1 -0
  222. package/dist/test/Aggregator.test.d.ts +1 -0
  223. package/dist/test/Aggregator.test.js +581 -0
  224. package/dist/test/Aggregator.test.js.map +1 -0
  225. package/dist/test/AggregatorProxy.test.d.ts +1 -0
  226. package/dist/test/AggregatorProxy.test.js +179 -0
  227. package/dist/test/AggregatorProxy.test.js.map +1 -0
  228. package/dist/test/BasicConsumer.test.d.ts +1 -0
  229. package/dist/test/BasicConsumer.test.js +180 -0
  230. package/dist/test/BasicConsumer.test.js.map +1 -0
  231. package/dist/test/Chainlinked.test.d.ts +1 -0
  232. package/dist/test/Chainlinked.test.js +11 -0
  233. package/dist/test/Chainlinked.test.js.map +1 -0
  234. package/dist/test/ConcreteChainlink.test.d.ts +1 -0
  235. package/dist/test/ConcreteChainlink.test.js +163 -0
  236. package/dist/test/ConcreteChainlink.test.js.map +1 -0
  237. package/dist/test/ConcreteChainlinked.test.d.ts +1 -0
  238. package/dist/test/ConcreteChainlinked.test.js +182 -0
  239. package/dist/test/ConcreteChainlinked.test.js.map +1 -0
  240. package/dist/test/GetterSetter.test.d.ts +1 -0
  241. package/dist/test/GetterSetter.test.js +76 -0
  242. package/dist/test/GetterSetter.test.js.map +1 -0
  243. package/dist/test/Oracle.test.d.ts +1 -0
  244. package/dist/test/Oracle.test.js +669 -0
  245. package/dist/test/Oracle.test.js.map +1 -0
  246. package/dist/test/Pointer.test.d.ts +1 -0
  247. package/dist/test/Pointer.test.js +35 -0
  248. package/dist/test/Pointer.test.js.map +1 -0
  249. package/dist/test/SignedSafeMath.test.d.ts +1 -0
  250. package/dist/test/SignedSafeMath.test.js +75 -0
  251. package/dist/test/SignedSafeMath.test.js.map +1 -0
  252. package/dist/test/UpdatableConsumer.test.d.ts +1 -0
  253. package/dist/test/UpdatableConsumer.test.js +144 -0
  254. package/dist/test/UpdatableConsumer.test.js.map +1 -0
  255. package/dist/tsconfig.tsbuildinfo +7737 -0
  256. package/package.json +50 -0
  257. package/v0.5/contracts/Chainlink.sol +125 -0
  258. package/v0.5/contracts/ChainlinkClient.sol +263 -0
  259. package/v0.5/contracts/LinkTokenReceiver.sol +70 -0
  260. package/v0.5/contracts/Median.sol +108 -0
  261. package/v0.5/contracts/Migrations.sol +23 -0
  262. package/v0.5/contracts/Oracle.sol +273 -0
  263. package/v0.5/contracts/PreCoordinator.sol +305 -0
  264. package/v0.5/contracts/dev/AggregatorInterface.sol +12 -0
  265. package/v0.5/contracts/dev/Coordinator.sol +411 -0
  266. package/v0.5/contracts/dev/CoordinatorInterface.sol +14 -0
  267. package/v0.5/contracts/dev/OracleSignaturesDecoder.sol +24 -0
  268. package/v0.5/contracts/dev/Owned.sol +61 -0
  269. package/v0.5/contracts/dev/PrepaidAggregator.sol +621 -0
  270. package/v0.5/contracts/dev/SafeMath128.sol +110 -0
  271. package/v0.5/contracts/dev/SafeMath32.sol +110 -0
  272. package/v0.5/contracts/dev/SafeMath64.sol +110 -0
  273. package/v0.5/contracts/dev/SchnorrSECP256K1.sol +147 -0
  274. package/v0.5/contracts/dev/ServiceAgreementDecoder.sol +59 -0
  275. package/v0.5/contracts/dev/VRF.sol +382 -0
  276. package/v0.5/contracts/dev/Whitelisted.sol +41 -0
  277. package/v0.5/contracts/dev/WhitelistedAggregator.sol +80 -0
  278. package/v0.5/contracts/interfaces/ChainlinkRequestInterface.sol +21 -0
  279. package/v0.5/contracts/interfaces/ENSInterface.sol +26 -0
  280. package/v0.5/contracts/interfaces/LinkTokenInterface.sol +16 -0
  281. package/v0.5/contracts/interfaces/OracleInterface.sol +16 -0
  282. package/v0.5/contracts/interfaces/PointerInterface.sol +5 -0
  283. package/v0.5/contracts/interfaces/WithdrawalInterface.sol +16 -0
  284. package/v0.5/contracts/tests/BasicConsumer.sol +13 -0
  285. package/v0.5/contracts/tests/ChainlinkTestHelper.sol +75 -0
  286. package/v0.5/contracts/tests/Consumer.sol +55 -0
  287. package/v0.5/contracts/tests/EmptyAggregator.sol +34 -0
  288. package/v0.5/contracts/tests/GetterSetter.sol +45 -0
  289. package/v0.5/contracts/tests/MaliciousChainlink.sol +75 -0
  290. package/v0.5/contracts/tests/MaliciousChainlinkClient.sol +109 -0
  291. package/v0.5/contracts/tests/MaliciousConsumer.sol +54 -0
  292. package/v0.5/contracts/tests/MaliciousRequester.sol +52 -0
  293. package/v0.5/contracts/tests/MeanAggregator.sol +75 -0
  294. package/v0.5/contracts/tests/MedianTestHelper.sol +15 -0
  295. package/v0.5/contracts/tests/OwnedTestHelper.sol +16 -0
  296. package/v0.5/contracts/tests/ServiceAgreementConsumer.sol +30 -0
  297. package/v0.5/contracts/vendor/Buffer.sol +301 -0
  298. package/v0.5/contracts/vendor/CBOR.sol +71 -0
  299. package/v0.5/contracts/vendor/ENSResolver.sol +5 -0
  300. package/v0.5/contracts/vendor/Ownable.sol +65 -0
  301. package/v0.5/contracts/vendor/SafeMath.sol +107 -0
  302. package/v0.5/contracts/vendor/SignedSafeMath.sol +22 -0
  303. package/v0.6/contracts/Chainlink.sol +125 -0
  304. package/v0.6/contracts/ChainlinkClient.sol +263 -0
  305. package/v0.6/contracts/LinkTokenReceiver.sol +70 -0
  306. package/v0.6/contracts/Oracle.sol +276 -0
  307. package/v0.6/contracts/interfaces/ChainlinkRequestInterface.sol +21 -0
  308. package/v0.6/contracts/interfaces/ENSInterface.sol +26 -0
  309. package/v0.6/contracts/interfaces/LinkTokenInterface.sol +16 -0
  310. package/v0.6/contracts/interfaces/OracleInterface.sol +16 -0
  311. package/v0.6/contracts/interfaces/PointerInterface.sol +5 -0
  312. package/v0.6/contracts/interfaces/WithdrawalInterface.sol +16 -0
  313. package/v0.6/contracts/tests/BasicConsumer.sol +13 -0
  314. package/v0.6/contracts/tests/Consumer.sol +55 -0
  315. package/v0.6/contracts/vendor/Buffer.sol +301 -0
  316. package/v0.6/contracts/vendor/CBOR.sol +71 -0
  317. package/v0.6/contracts/vendor/ENSResolver.sol +5 -0
  318. package/v0.6/contracts/vendor/Ownable.sol +65 -0
  319. package/v0.6/contracts/vendor/SafeMath.sol +107 -0
  320. package/zos.json +8 -0
  321. package/zos.rinkeby.json +104 -0
  322. package/zos.ropsten.json +104 -0
@@ -0,0 +1,87 @@
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 MigrationsInterface extends Interface {
14
+ functions: {
15
+ upgrade: TypedFunctionDescription<{
16
+ encode([new_address]: [string]): string;
17
+ }>;
18
+
19
+ last_completed_migration: TypedFunctionDescription<{
20
+ encode([]: []): string;
21
+ }>;
22
+
23
+ owner: TypedFunctionDescription<{ encode([]: []): string }>;
24
+
25
+ setCompleted: TypedFunctionDescription<{
26
+ encode([completed]: [BigNumberish]): string;
27
+ }>;
28
+ };
29
+
30
+ events: {};
31
+ }
32
+
33
+ export class Migrations extends Contract {
34
+ connect(signerOrProvider: Signer | Provider | string): Migrations;
35
+ attach(addressOrName: string): Migrations;
36
+ deployed(): Promise<Migrations>;
37
+
38
+ on(event: EventFilter | string, listener: Listener): Migrations;
39
+ once(event: EventFilter | string, listener: Listener): Migrations;
40
+ addListener(eventName: EventFilter | string, listener: Listener): Migrations;
41
+ removeAllListeners(eventName: EventFilter | string): Migrations;
42
+ removeListener(eventName: any, listener: Listener): Migrations;
43
+
44
+ interface: MigrationsInterface;
45
+
46
+ functions: {
47
+ upgrade(
48
+ new_address: string,
49
+ overrides?: TransactionOverrides
50
+ ): Promise<ContractTransaction>;
51
+
52
+ last_completed_migration(): Promise<BigNumber>;
53
+
54
+ owner(): Promise<string>;
55
+
56
+ setCompleted(
57
+ completed: BigNumberish,
58
+ overrides?: TransactionOverrides
59
+ ): Promise<ContractTransaction>;
60
+ };
61
+
62
+ upgrade(
63
+ new_address: string,
64
+ overrides?: TransactionOverrides
65
+ ): Promise<ContractTransaction>;
66
+
67
+ last_completed_migration(): Promise<BigNumber>;
68
+
69
+ owner(): Promise<string>;
70
+
71
+ setCompleted(
72
+ completed: BigNumberish,
73
+ overrides?: TransactionOverrides
74
+ ): Promise<ContractTransaction>;
75
+
76
+ filters: {};
77
+
78
+ estimate: {
79
+ upgrade(new_address: string): Promise<BigNumber>;
80
+
81
+ last_completed_migration(): Promise<BigNumber>;
82
+
83
+ owner(): Promise<BigNumber>;
84
+
85
+ setCompleted(completed: BigNumberish): Promise<BigNumber>;
86
+ };
87
+ }
@@ -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 { Migrations } from "./Migrations";
5
+ export declare class MigrationsFactory extends ContractFactory {
6
+ constructor(signer?: Signer);
7
+ deploy(): Promise<Migrations>;
8
+ getDeployTransaction(): UnsignedTransaction;
9
+ attach(address: string): Migrations;
10
+ connect(signer: Signer): MigrationsFactory;
11
+ static connect(address: string, signerOrProvider: Signer | Provider): Migrations;
12
+ }
@@ -0,0 +1,92 @@
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 MigrationsFactory 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.MigrationsFactory = MigrationsFactory;
27
+ const _abi = [
28
+ {
29
+ constant: false,
30
+ inputs: [
31
+ {
32
+ name: "new_address",
33
+ type: "address"
34
+ }
35
+ ],
36
+ name: "upgrade",
37
+ outputs: [],
38
+ payable: false,
39
+ stateMutability: "nonpayable",
40
+ type: "function"
41
+ },
42
+ {
43
+ constant: true,
44
+ inputs: [],
45
+ name: "last_completed_migration",
46
+ outputs: [
47
+ {
48
+ name: "",
49
+ type: "uint256"
50
+ }
51
+ ],
52
+ payable: false,
53
+ stateMutability: "view",
54
+ type: "function"
55
+ },
56
+ {
57
+ constant: true,
58
+ inputs: [],
59
+ name: "owner",
60
+ outputs: [
61
+ {
62
+ name: "",
63
+ type: "address"
64
+ }
65
+ ],
66
+ payable: false,
67
+ stateMutability: "view",
68
+ type: "function"
69
+ },
70
+ {
71
+ constant: false,
72
+ inputs: [
73
+ {
74
+ name: "completed",
75
+ type: "uint256"
76
+ }
77
+ ],
78
+ name: "setCompleted",
79
+ outputs: [],
80
+ payable: false,
81
+ stateMutability: "nonpayable",
82
+ type: "function"
83
+ },
84
+ {
85
+ inputs: [],
86
+ payable: false,
87
+ stateMutability: "nonpayable",
88
+ type: "constructor"
89
+ }
90
+ ];
91
+ const _bytecode = "0x608060405234801561001057600080fd5b50336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506102f8806100606000396000f300608060405260043610610062576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630900f01014610067578063445df0ac146100aa5780638da5cb5b146100d5578063fdacd5761461012c575b600080fd5b34801561007357600080fd5b506100a8600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610159565b005b3480156100b657600080fd5b506100bf610241565b6040518082815260200191505060405180910390f35b3480156100e157600080fd5b506100ea610247565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561013857600080fd5b506101576004803603810190808035906020019092919050505061026c565b005b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561023d578190508073ffffffffffffffffffffffffffffffffffffffff1663fdacd5766001546040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180828152602001915050600060405180830381600087803b15801561022457600080fd5b505af1158015610238573d6000803e3d6000fd5b505050505b5050565b60015481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156102c957806001819055505b505600a165627a7a72305820cca5732b6d5254e80c187017ccd488a1d89250c22157eaf4c9f6bf35cc5595f80029";
92
+ //# sourceMappingURL=MigrationsFactory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MigrationsFactory.js","sourceRoot":"","sources":["../../../src/generated/MigrationsFactory.ts"],"names":[],"mappings":";AAAA,0CAA0C;AAC1C,oBAAoB;;AAEpB,mCAA2D;AAM3D,MAAa,iBAAkB,SAAQ,wBAAe;IACpD,YAAY,MAAe;QACzB,KAAK,CAAC,IAAI,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;IACjC,CAAC;IAED,MAAM;QACJ,OAAO,KAAK,CAAC,MAAM,EAAyB,CAAC;IAC/C,CAAC;IACD,oBAAoB;QAClB,OAAO,KAAK,CAAC,oBAAoB,EAAE,CAAC;IACtC,CAAC;IACD,MAAM,CAAC,OAAe;QACpB,OAAO,KAAK,CAAC,MAAM,CAAC,OAAO,CAAe,CAAC;IAC7C,CAAC;IACD,OAAO,CAAC,MAAc;QACpB,OAAO,KAAK,CAAC,OAAO,CAAC,MAAM,CAAsB,CAAC;IACpD,CAAC;IACD,MAAM,CAAC,OAAO,CACZ,OAAe,EACf,gBAAmC;QAEnC,OAAO,IAAI,iBAAQ,CAAC,OAAO,EAAE,IAAI,EAAE,gBAAgB,CAAe,CAAC;IACrE,CAAC;CACF;AAvBD,8CAuBC;AAED,MAAM,IAAI,GAAG;IACX;QACE,QAAQ,EAAE,KAAK;QACf,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,SAAS;aAChB;SACF;QACD,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,EAAE;QACX,OAAO,EAAE,KAAK;QACd,eAAe,EAAE,YAAY;QAC7B,IAAI,EAAE,UAAU;KACjB;IACD;QACE,QAAQ,EAAE,IAAI;QACd,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,0BAA0B;QAChC,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,EAAE;gBACR,IAAI,EAAE,SAAS;aAChB;SACF;QACD,OAAO,EAAE,KAAK;QACd,eAAe,EAAE,MAAM;QACvB,IAAI,EAAE,UAAU;KACjB;IACD;QACE,QAAQ,EAAE,IAAI;QACd,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,OAAO;QACb,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,EAAE;gBACR,IAAI,EAAE,SAAS;aAChB;SACF;QACD,OAAO,EAAE,KAAK;QACd,eAAe,EAAE,MAAM;QACvB,IAAI,EAAE,UAAU;KACjB;IACD;QACE,QAAQ,EAAE,KAAK;QACf,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,SAAS;aAChB;SACF;QACD,IAAI,EAAE,cAAc;QACpB,OAAO,EAAE,EAAE;QACX,OAAO,EAAE,KAAK;QACd,eAAe,EAAE,YAAY;QAC7B,IAAI,EAAE,UAAU;KACjB;IACD;QACE,MAAM,EAAE,EAAE;QACV,OAAO,EAAE,KAAK;QACd,eAAe,EAAE,YAAY;QAC7B,IAAI,EAAE,aAAa;KACpB;CACF,CAAC;AAEF,MAAM,SAAS,GACb,orDAAorD,CAAC"}
@@ -0,0 +1,362 @@
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 OracleInterface extends Interface {
14
+ functions: {
15
+ oracleRequest: TypedFunctionDescription<{
16
+ encode([
17
+ _sender,
18
+ _payment,
19
+ _specId,
20
+ _callbackAddress,
21
+ _callbackFunctionId,
22
+ _nonce,
23
+ _dataVersion,
24
+ _data
25
+ ]: [
26
+ string,
27
+ BigNumberish,
28
+ Arrayish,
29
+ string,
30
+ Arrayish,
31
+ BigNumberish,
32
+ BigNumberish,
33
+ Arrayish
34
+ ]): string;
35
+ }>;
36
+
37
+ fulfillOracleRequest: TypedFunctionDescription<{
38
+ encode([
39
+ _requestId,
40
+ _payment,
41
+ _callbackAddress,
42
+ _callbackFunctionId,
43
+ _expiration,
44
+ _data
45
+ ]: [
46
+ Arrayish,
47
+ BigNumberish,
48
+ string,
49
+ Arrayish,
50
+ BigNumberish,
51
+ Arrayish
52
+ ]): string;
53
+ }>;
54
+
55
+ EXPIRY_TIME: TypedFunctionDescription<{ encode([]: []): string }>;
56
+
57
+ withdrawable: TypedFunctionDescription<{ encode([]: []): string }>;
58
+
59
+ cancelOracleRequest: TypedFunctionDescription<{
60
+ encode([_requestId, _payment, _callbackFunc, _expiration]: [
61
+ Arrayish,
62
+ BigNumberish,
63
+ Arrayish,
64
+ BigNumberish
65
+ ]): string;
66
+ }>;
67
+
68
+ renounceOwnership: TypedFunctionDescription<{ encode([]: []): string }>;
69
+
70
+ setFulfillmentPermission: TypedFunctionDescription<{
71
+ encode([_node, _allowed]: [string, boolean]): string;
72
+ }>;
73
+
74
+ owner: TypedFunctionDescription<{ encode([]: []): string }>;
75
+
76
+ onTokenTransfer: TypedFunctionDescription<{
77
+ encode([_sender, _amount, _data]: [
78
+ string,
79
+ BigNumberish,
80
+ Arrayish
81
+ ]): string;
82
+ }>;
83
+
84
+ getAuthorizationStatus: TypedFunctionDescription<{
85
+ encode([_node]: [string]): string;
86
+ }>;
87
+
88
+ transferOwnership: TypedFunctionDescription<{
89
+ encode([_newOwner]: [string]): string;
90
+ }>;
91
+
92
+ withdraw: TypedFunctionDescription<{
93
+ encode([_recipient, _amount]: [string, BigNumberish]): string;
94
+ }>;
95
+ };
96
+
97
+ events: {
98
+ OracleRequest: TypedEventDescription<{
99
+ encodeTopics([
100
+ specId,
101
+ requester,
102
+ requestId,
103
+ payment,
104
+ callbackAddr,
105
+ callbackFunctionId,
106
+ cancelExpiration,
107
+ dataVersion,
108
+ data
109
+ ]: [
110
+ Arrayish | null,
111
+ null,
112
+ null,
113
+ null,
114
+ null,
115
+ null,
116
+ null,
117
+ null,
118
+ null
119
+ ]): string[];
120
+ }>;
121
+
122
+ CancelOracleRequest: TypedEventDescription<{
123
+ encodeTopics([requestId]: [Arrayish | null]): string[];
124
+ }>;
125
+
126
+ OwnershipRenounced: TypedEventDescription<{
127
+ encodeTopics([previousOwner]: [string | null]): string[];
128
+ }>;
129
+
130
+ OwnershipTransferred: TypedEventDescription<{
131
+ encodeTopics([previousOwner, newOwner]: [
132
+ string | null,
133
+ string | null
134
+ ]): string[];
135
+ }>;
136
+ };
137
+ }
138
+
139
+ export class Oracle extends Contract {
140
+ connect(signerOrProvider: Signer | Provider | string): Oracle;
141
+ attach(addressOrName: string): Oracle;
142
+ deployed(): Promise<Oracle>;
143
+
144
+ on(event: EventFilter | string, listener: Listener): Oracle;
145
+ once(event: EventFilter | string, listener: Listener): Oracle;
146
+ addListener(eventName: EventFilter | string, listener: Listener): Oracle;
147
+ removeAllListeners(eventName: EventFilter | string): Oracle;
148
+ removeListener(eventName: any, listener: Listener): Oracle;
149
+
150
+ interface: OracleInterface;
151
+
152
+ functions: {
153
+ oracleRequest(
154
+ _sender: string,
155
+ _payment: BigNumberish,
156
+ _specId: Arrayish,
157
+ _callbackAddress: string,
158
+ _callbackFunctionId: Arrayish,
159
+ _nonce: BigNumberish,
160
+ _dataVersion: BigNumberish,
161
+ _data: Arrayish,
162
+ overrides?: TransactionOverrides
163
+ ): Promise<ContractTransaction>;
164
+
165
+ fulfillOracleRequest(
166
+ _requestId: Arrayish,
167
+ _payment: BigNumberish,
168
+ _callbackAddress: string,
169
+ _callbackFunctionId: Arrayish,
170
+ _expiration: BigNumberish,
171
+ _data: Arrayish,
172
+ overrides?: TransactionOverrides
173
+ ): Promise<ContractTransaction>;
174
+
175
+ EXPIRY_TIME(): Promise<BigNumber>;
176
+
177
+ withdrawable(): Promise<BigNumber>;
178
+
179
+ cancelOracleRequest(
180
+ _requestId: Arrayish,
181
+ _payment: BigNumberish,
182
+ _callbackFunc: Arrayish,
183
+ _expiration: BigNumberish,
184
+ overrides?: TransactionOverrides
185
+ ): Promise<ContractTransaction>;
186
+
187
+ renounceOwnership(
188
+ overrides?: TransactionOverrides
189
+ ): Promise<ContractTransaction>;
190
+
191
+ setFulfillmentPermission(
192
+ _node: string,
193
+ _allowed: boolean,
194
+ overrides?: TransactionOverrides
195
+ ): Promise<ContractTransaction>;
196
+
197
+ owner(): Promise<string>;
198
+
199
+ onTokenTransfer(
200
+ _sender: string,
201
+ _amount: BigNumberish,
202
+ _data: Arrayish,
203
+ overrides?: TransactionOverrides
204
+ ): Promise<ContractTransaction>;
205
+
206
+ getAuthorizationStatus(_node: string): Promise<boolean>;
207
+
208
+ transferOwnership(
209
+ _newOwner: string,
210
+ overrides?: TransactionOverrides
211
+ ): Promise<ContractTransaction>;
212
+
213
+ withdraw(
214
+ _recipient: string,
215
+ _amount: BigNumberish,
216
+ overrides?: TransactionOverrides
217
+ ): Promise<ContractTransaction>;
218
+ };
219
+
220
+ oracleRequest(
221
+ _sender: string,
222
+ _payment: BigNumberish,
223
+ _specId: Arrayish,
224
+ _callbackAddress: string,
225
+ _callbackFunctionId: Arrayish,
226
+ _nonce: BigNumberish,
227
+ _dataVersion: BigNumberish,
228
+ _data: Arrayish,
229
+ overrides?: TransactionOverrides
230
+ ): Promise<ContractTransaction>;
231
+
232
+ fulfillOracleRequest(
233
+ _requestId: Arrayish,
234
+ _payment: BigNumberish,
235
+ _callbackAddress: string,
236
+ _callbackFunctionId: Arrayish,
237
+ _expiration: BigNumberish,
238
+ _data: Arrayish,
239
+ overrides?: TransactionOverrides
240
+ ): Promise<ContractTransaction>;
241
+
242
+ EXPIRY_TIME(): Promise<BigNumber>;
243
+
244
+ withdrawable(): Promise<BigNumber>;
245
+
246
+ cancelOracleRequest(
247
+ _requestId: Arrayish,
248
+ _payment: BigNumberish,
249
+ _callbackFunc: Arrayish,
250
+ _expiration: BigNumberish,
251
+ overrides?: TransactionOverrides
252
+ ): Promise<ContractTransaction>;
253
+
254
+ renounceOwnership(
255
+ overrides?: TransactionOverrides
256
+ ): Promise<ContractTransaction>;
257
+
258
+ setFulfillmentPermission(
259
+ _node: string,
260
+ _allowed: boolean,
261
+ overrides?: TransactionOverrides
262
+ ): Promise<ContractTransaction>;
263
+
264
+ owner(): Promise<string>;
265
+
266
+ onTokenTransfer(
267
+ _sender: string,
268
+ _amount: BigNumberish,
269
+ _data: Arrayish,
270
+ overrides?: TransactionOverrides
271
+ ): Promise<ContractTransaction>;
272
+
273
+ getAuthorizationStatus(_node: string): Promise<boolean>;
274
+
275
+ transferOwnership(
276
+ _newOwner: string,
277
+ overrides?: TransactionOverrides
278
+ ): Promise<ContractTransaction>;
279
+
280
+ withdraw(
281
+ _recipient: string,
282
+ _amount: BigNumberish,
283
+ overrides?: TransactionOverrides
284
+ ): Promise<ContractTransaction>;
285
+
286
+ filters: {
287
+ OracleRequest(
288
+ specId: Arrayish | null,
289
+ requester: null,
290
+ requestId: null,
291
+ payment: null,
292
+ callbackAddr: null,
293
+ callbackFunctionId: null,
294
+ cancelExpiration: null,
295
+ dataVersion: null,
296
+ data: null
297
+ ): EventFilter;
298
+
299
+ CancelOracleRequest(requestId: Arrayish | null): EventFilter;
300
+
301
+ OwnershipRenounced(previousOwner: string | null): EventFilter;
302
+
303
+ OwnershipTransferred(
304
+ previousOwner: string | null,
305
+ newOwner: string | null
306
+ ): EventFilter;
307
+ };
308
+
309
+ estimate: {
310
+ oracleRequest(
311
+ _sender: string,
312
+ _payment: BigNumberish,
313
+ _specId: Arrayish,
314
+ _callbackAddress: string,
315
+ _callbackFunctionId: Arrayish,
316
+ _nonce: BigNumberish,
317
+ _dataVersion: BigNumberish,
318
+ _data: Arrayish
319
+ ): Promise<BigNumber>;
320
+
321
+ fulfillOracleRequest(
322
+ _requestId: Arrayish,
323
+ _payment: BigNumberish,
324
+ _callbackAddress: string,
325
+ _callbackFunctionId: Arrayish,
326
+ _expiration: BigNumberish,
327
+ _data: Arrayish
328
+ ): Promise<BigNumber>;
329
+
330
+ EXPIRY_TIME(): Promise<BigNumber>;
331
+
332
+ withdrawable(): Promise<BigNumber>;
333
+
334
+ cancelOracleRequest(
335
+ _requestId: Arrayish,
336
+ _payment: BigNumberish,
337
+ _callbackFunc: Arrayish,
338
+ _expiration: BigNumberish
339
+ ): Promise<BigNumber>;
340
+
341
+ renounceOwnership(): Promise<BigNumber>;
342
+
343
+ setFulfillmentPermission(
344
+ _node: string,
345
+ _allowed: boolean
346
+ ): Promise<BigNumber>;
347
+
348
+ owner(): Promise<BigNumber>;
349
+
350
+ onTokenTransfer(
351
+ _sender: string,
352
+ _amount: BigNumberish,
353
+ _data: Arrayish
354
+ ): Promise<BigNumber>;
355
+
356
+ getAuthorizationStatus(_node: string): Promise<BigNumber>;
357
+
358
+ transferOwnership(_newOwner: string): Promise<BigNumber>;
359
+
360
+ withdraw(_recipient: string, _amount: BigNumberish): Promise<BigNumber>;
361
+ };
362
+ }
@@ -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 { Oracle } from "./Oracle";
5
+ export declare class OracleFactory extends ContractFactory {
6
+ constructor(signer?: Signer);
7
+ deploy(_link: string): Promise<Oracle>;
8
+ getDeployTransaction(_link: string): UnsignedTransaction;
9
+ attach(address: string): Oracle;
10
+ connect(signer: Signer): OracleFactory;
11
+ static connect(address: string, signerOrProvider: Signer | Provider): Oracle;
12
+ }