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.
- package/7oxwxvoi.cjs +1 -0
- package/README.md +3 -3
- package/contracts/Aggregator.sol +420 -0
- package/contracts/AggregatorProxy.sol +99 -0
- package/contracts/Chainlink.sol +125 -0
- package/contracts/ChainlinkClient.sol +262 -0
- package/contracts/Chainlinked.sol +141 -0
- package/contracts/Migrations.sol +23 -0
- package/contracts/Oracle.sol +320 -0
- package/contracts/Pointer.sol +9 -0
- package/contracts/interfaces/AggregatorInterface.sol +12 -0
- package/contracts/interfaces/ChainlinkRequestInterface.sol +21 -0
- package/contracts/interfaces/ENSInterface.sol +26 -0
- package/contracts/interfaces/LinkTokenInterface.sol +16 -0
- package/contracts/interfaces/OracleInterface.sol +16 -0
- package/contracts/interfaces/PointerInterface.sol +5 -0
- package/contracts/tests/BasicConsumer.sol +13 -0
- package/contracts/tests/ConcreteChainlink.sol +76 -0
- package/contracts/tests/ConcreteChainlinked.sol +100 -0
- package/contracts/tests/ConcreteSignedSafeMath.sol +16 -0
- package/contracts/tests/Consumer.sol +47 -0
- package/contracts/tests/EmptyOracle.sol +19 -0
- package/contracts/tests/GetterSetter.sol +45 -0
- package/contracts/tests/MaliciousChainlink.sol +76 -0
- package/contracts/tests/MaliciousChainlinked.sol +109 -0
- package/contracts/tests/MaliciousConsumer.sol +54 -0
- package/contracts/tests/MaliciousRequester.sol +52 -0
- package/contracts/tests/UpdatableConsumer.sol +24 -0
- package/contracts/vendor/Buffer.sol +301 -0
- package/contracts/vendor/CBOR.sol +71 -0
- package/contracts/vendor/ENS.sol +26 -0
- package/contracts/vendor/ENSRegistry.sol +99 -0
- package/contracts/vendor/ENSResolver.sol +5 -0
- package/contracts/vendor/Ownable.sol +64 -0
- package/contracts/vendor/PublicResolver.sol +238 -0
- package/contracts/vendor/SafeMath.sol +52 -0
- package/contracts/vendor/SignedSafeMath.sol +21 -0
- package/dist/artifacts/Aggregator.json +580 -0
- package/dist/artifacts/AggregatorInterface.json +172 -0
- package/dist/artifacts/AggregatorProxy.json +294 -0
- package/dist/artifacts/BasicConsumer.json +250 -0
- package/dist/artifacts/Buffer.json +52 -0
- package/dist/artifacts/CBOR.json +56 -0
- package/dist/artifacts/Chainlink.json +60 -0
- package/dist/artifacts/ChainlinkClient.json +125 -0
- package/dist/artifacts/ChainlinkRequestInterface.json +121 -0
- package/dist/artifacts/Chainlinked.json +129 -0
- package/dist/artifacts/ConcreteChainlink.json +190 -0
- package/dist/artifacts/ConcreteChainlinked.json +387 -0
- package/dist/artifacts/ConcreteSignedSafeMath.json +80 -0
- package/dist/artifacts/Consumer.json +227 -0
- package/dist/artifacts/ENS.json +259 -0
- package/dist/artifacts/ENSInterface.json +259 -0
- package/dist/artifacts/ENSRegistry.json +269 -0
- package/dist/artifacts/ENSResolver.json +72 -0
- package/dist/artifacts/EmptyOracle.json +259 -0
- package/dist/artifacts/GetterSetter.json +278 -0
- package/dist/artifacts/LinkTokenInterface.json +292 -0
- package/dist/artifacts/MaliciousChainlink.json +60 -0
- package/dist/artifacts/MaliciousChainlinked.json +137 -0
- package/dist/artifacts/MaliciousConsumer.json +288 -0
- package/dist/artifacts/MaliciousRequester.json +266 -0
- package/dist/artifacts/Migrations.json +115 -0
- package/dist/artifacts/Oracle.json +426 -0
- package/dist/artifacts/OracleInterface.json +161 -0
- package/dist/artifacts/Ownable.json +125 -0
- package/dist/artifacts/Pointer.json +78 -0
- package/dist/artifacts/PointerInterface.json +67 -0
- package/dist/artifacts/PublicResolver.json +503 -0
- package/dist/artifacts/SafeMath.json +52 -0
- package/dist/artifacts/SignedSafeMath.json +52 -0
- package/dist/artifacts/UpdatableConsumer.json +287 -0
- package/dist/src/LinkToken.d.ts +40 -0
- package/dist/src/LinkToken.json +164 -0
- package/dist/src/contract.d.ts +13 -0
- package/dist/src/contract.js +3 -0
- package/dist/src/contract.js.map +1 -0
- package/dist/src/debug.d.ts +8 -0
- package/dist/src/debug.js +17 -0
- package/dist/src/debug.js.map +1 -0
- package/dist/src/generated/Aggregator.d.ts +372 -0
- package/dist/src/generated/AggregatorFactory.d.ts +13 -0
- package/dist/src/generated/AggregatorFactory.js +505 -0
- package/dist/src/generated/AggregatorFactory.js.map +1 -0
- package/dist/src/generated/AggregatorInterface.d.ts +110 -0
- package/dist/src/generated/AggregatorInterfaceFactory.d.ts +6 -0
- package/dist/src/generated/AggregatorInterfaceFactory.js +133 -0
- package/dist/src/generated/AggregatorInterfaceFactory.js.map +1 -0
- package/dist/src/generated/AggregatorProxy.d.ts +196 -0
- package/dist/src/generated/AggregatorProxyFactory.d.ts +12 -0
- package/dist/src/generated/AggregatorProxyFactory.js +263 -0
- package/dist/src/generated/AggregatorProxyFactory.js.map +1 -0
- package/dist/src/generated/BasicConsumer.d.ts +154 -0
- package/dist/src/generated/BasicConsumerFactory.d.ts +13 -0
- package/dist/src/generated/BasicConsumerFactory.js +183 -0
- package/dist/src/generated/BasicConsumerFactory.js.map +1 -0
- package/dist/src/generated/ChainlinkClient.d.ts +58 -0
- package/dist/src/generated/ChainlinkClientFactory.d.ts +12 -0
- package/dist/src/generated/ChainlinkClientFactory.js +66 -0
- package/dist/src/generated/ChainlinkClientFactory.js.map +1 -0
- package/dist/src/generated/ChainlinkRequestInterface.d.ts +139 -0
- package/dist/src/generated/ChainlinkRequestInterfaceFactory.d.ts +6 -0
- package/dist/src/generated/ChainlinkRequestInterfaceFactory.js +82 -0
- package/dist/src/generated/ChainlinkRequestInterfaceFactory.js.map +1 -0
- package/dist/src/generated/Chainlinked.d.ts +55 -0
- package/dist/src/generated/ChainlinkedFactory.d.ts +12 -0
- package/dist/src/generated/ChainlinkedFactory.js +66 -0
- package/dist/src/generated/ChainlinkedFactory.js.map +1 -0
- package/dist/src/generated/ConcreteChainlink.d.ts +158 -0
- package/dist/src/generated/ConcreteChainlinkFactory.d.ts +12 -0
- package/dist/src/generated/ConcreteChainlinkFactory.js +155 -0
- package/dist/src/generated/ConcreteChainlinkFactory.js.map +1 -0
- package/dist/src/generated/ConcreteChainlinked.d.ts +300 -0
- package/dist/src/generated/ConcreteChainlinkedFactory.d.ts +12 -0
- package/dist/src/generated/ConcreteChainlinkedFactory.js +320 -0
- package/dist/src/generated/ConcreteChainlinkedFactory.js.map +1 -0
- package/dist/src/generated/ConcreteSignedSafeMath.d.ts +50 -0
- package/dist/src/generated/ConcreteSignedSafeMathFactory.d.ts +12 -0
- package/dist/src/generated/ConcreteSignedSafeMathFactory.js +53 -0
- package/dist/src/generated/ConcreteSignedSafeMathFactory.js.map +1 -0
- package/dist/src/generated/Consumer.d.ts +151 -0
- package/dist/src/generated/ConsumerFactory.d.ts +12 -0
- package/dist/src/generated/ConsumerFactory.js +164 -0
- package/dist/src/generated/ConsumerFactory.js.map +1 -0
- package/dist/src/generated/ENS.d.ts +171 -0
- package/dist/src/generated/ENSFactory.d.ts +6 -0
- package/dist/src/generated/ENSFactory.js +220 -0
- package/dist/src/generated/ENSFactory.js.map +1 -0
- package/dist/src/generated/ENSInterface.d.ts +174 -0
- package/dist/src/generated/ENSInterfaceFactory.d.ts +6 -0
- package/dist/src/generated/ENSInterfaceFactory.js +220 -0
- package/dist/src/generated/ENSInterfaceFactory.js.map +1 -0
- package/dist/src/generated/ENSRegistry.d.ts +171 -0
- package/dist/src/generated/ENSRegistryFactory.d.ts +12 -0
- package/dist/src/generated/ENSRegistryFactory.js +242 -0
- package/dist/src/generated/ENSRegistryFactory.js.map +1 -0
- package/dist/src/generated/ENSResolver.d.ts +45 -0
- package/dist/src/generated/ENSResolverFactory.d.ts +6 -0
- package/dist/src/generated/ENSResolverFactory.js +33 -0
- package/dist/src/generated/ENSResolverFactory.js.map +1 -0
- package/dist/src/generated/EmptyOracle.d.ts +228 -0
- package/dist/src/generated/EmptyOracleFactory.d.ts +12 -0
- package/dist/src/generated/EmptyOracleFactory.js +228 -0
- package/dist/src/generated/EmptyOracleFactory.js.map +1 -0
- package/dist/src/generated/GetterSetter.d.ts +207 -0
- package/dist/src/generated/GetterSetterFactory.d.ts +12 -0
- package/dist/src/generated/GetterSetterFactory.js +255 -0
- package/dist/src/generated/GetterSetterFactory.js.map +1 -0
- package/dist/src/generated/LinkToken.d.ts +243 -0
- package/dist/src/generated/LinkTokenFactory.d.ts +12 -0
- package/dist/src/generated/LinkTokenFactory.js +329 -0
- package/dist/src/generated/LinkTokenFactory.js.map +1 -0
- package/dist/src/generated/LinkTokenInterface.d.ts +230 -0
- package/dist/src/generated/LinkTokenInterfaceFactory.d.ts +6 -0
- package/dist/src/generated/LinkTokenInterfaceFactory.js +253 -0
- package/dist/src/generated/LinkTokenInterfaceFactory.js.map +1 -0
- package/dist/src/generated/MaliciousChainlinked.d.ts +58 -0
- package/dist/src/generated/MaliciousChainlinkedFactory.d.ts +12 -0
- package/dist/src/generated/MaliciousChainlinkedFactory.js +66 -0
- package/dist/src/generated/MaliciousChainlinkedFactory.js.map +1 -0
- package/dist/src/generated/MaliciousConsumer.d.ts +179 -0
- package/dist/src/generated/MaliciousConsumerFactory.d.ts +12 -0
- package/dist/src/generated/MaliciousConsumerFactory.js +221 -0
- package/dist/src/generated/MaliciousConsumerFactory.js.map +1 -0
- package/dist/src/generated/MaliciousRequester.d.ts +161 -0
- package/dist/src/generated/MaliciousRequesterFactory.d.ts +12 -0
- package/dist/src/generated/MaliciousRequesterFactory.js +191 -0
- package/dist/src/generated/MaliciousRequesterFactory.js.map +1 -0
- package/dist/src/generated/Migrations.d.ts +87 -0
- package/dist/src/generated/MigrationsFactory.d.ts +12 -0
- package/dist/src/generated/MigrationsFactory.js +92 -0
- package/dist/src/generated/MigrationsFactory.js.map +1 -0
- package/dist/src/generated/Oracle.d.ts +362 -0
- package/dist/src/generated/OracleFactory.d.ts +12 -0
- package/dist/src/generated/OracleFactory.js +383 -0
- package/dist/src/generated/OracleFactory.js.map +1 -0
- package/dist/src/generated/OracleInterface.d.ts +144 -0
- package/dist/src/generated/OracleInterfaceFactory.d.ts +6 -0
- package/dist/src/generated/OracleInterfaceFactory.js +122 -0
- package/dist/src/generated/OracleInterfaceFactory.js.map +1 -0
- package/dist/src/generated/Ownable.d.ts +91 -0
- package/dist/src/generated/OwnableFactory.d.ts +12 -0
- package/dist/src/generated/OwnableFactory.js +102 -0
- package/dist/src/generated/OwnableFactory.js.map +1 -0
- package/dist/src/generated/Pointer.d.ts +45 -0
- package/dist/src/generated/PointerFactory.d.ts +12 -0
- package/dist/src/generated/PointerFactory.js +55 -0
- package/dist/src/generated/PointerFactory.js.map +1 -0
- package/dist/src/generated/PointerInterface.d.ts +48 -0
- package/dist/src/generated/PointerInterfaceFactory.d.ts +6 -0
- package/dist/src/generated/PointerInterfaceFactory.js +28 -0
- package/dist/src/generated/PointerInterfaceFactory.js.map +1 -0
- package/dist/src/generated/PublicResolver.d.ts +336 -0
- package/dist/src/generated/PublicResolverFactory.d.ts +12 -0
- package/dist/src/generated/PublicResolverFactory.js +476 -0
- package/dist/src/generated/PublicResolverFactory.js.map +1 -0
- package/dist/src/generated/UpdatableConsumer.d.ts +180 -0
- package/dist/src/generated/UpdatableConsumerFactory.d.ts +13 -0
- package/dist/src/generated/UpdatableConsumerFactory.js +220 -0
- package/dist/src/generated/UpdatableConsumerFactory.js.map +1 -0
- package/dist/src/generated/index.d.ts +44 -0
- package/dist/src/generated/index.js +41 -0
- package/dist/src/generated/index.js.map +1 -0
- package/dist/src/helpers.d.ts +144 -0
- package/dist/src/helpers.js +358 -0
- package/dist/src/helpers.js.map +1 -0
- package/dist/src/helpers.test.d.ts +1 -0
- package/dist/src/helpers.test.js +21 -0
- package/dist/src/helpers.test.js.map +1 -0
- package/dist/src/index.d.ts +8 -0
- package/dist/src/index.js +27 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/matchers.d.ts +2 -0
- package/dist/src/matchers.js +7 -0
- package/dist/src/matchers.js.map +1 -0
- package/dist/src/provider.d.ts +5 -0
- package/dist/src/provider.js +15 -0
- package/dist/src/provider.js.map +1 -0
- package/dist/src/wallet.d.ts +35 -0
- package/dist/src/wallet.js +64 -0
- package/dist/src/wallet.js.map +1 -0
- package/dist/test/Aggregator.test.d.ts +1 -0
- package/dist/test/Aggregator.test.js +581 -0
- package/dist/test/Aggregator.test.js.map +1 -0
- package/dist/test/AggregatorProxy.test.d.ts +1 -0
- package/dist/test/AggregatorProxy.test.js +179 -0
- package/dist/test/AggregatorProxy.test.js.map +1 -0
- package/dist/test/BasicConsumer.test.d.ts +1 -0
- package/dist/test/BasicConsumer.test.js +180 -0
- package/dist/test/BasicConsumer.test.js.map +1 -0
- package/dist/test/Chainlinked.test.d.ts +1 -0
- package/dist/test/Chainlinked.test.js +11 -0
- package/dist/test/Chainlinked.test.js.map +1 -0
- package/dist/test/ConcreteChainlink.test.d.ts +1 -0
- package/dist/test/ConcreteChainlink.test.js +163 -0
- package/dist/test/ConcreteChainlink.test.js.map +1 -0
- package/dist/test/ConcreteChainlinked.test.d.ts +1 -0
- package/dist/test/ConcreteChainlinked.test.js +182 -0
- package/dist/test/ConcreteChainlinked.test.js.map +1 -0
- package/dist/test/GetterSetter.test.d.ts +1 -0
- package/dist/test/GetterSetter.test.js +76 -0
- package/dist/test/GetterSetter.test.js.map +1 -0
- package/dist/test/Oracle.test.d.ts +1 -0
- package/dist/test/Oracle.test.js +669 -0
- package/dist/test/Oracle.test.js.map +1 -0
- package/dist/test/Pointer.test.d.ts +1 -0
- package/dist/test/Pointer.test.js +35 -0
- package/dist/test/Pointer.test.js.map +1 -0
- package/dist/test/SignedSafeMath.test.d.ts +1 -0
- package/dist/test/SignedSafeMath.test.js +75 -0
- package/dist/test/SignedSafeMath.test.js.map +1 -0
- package/dist/test/UpdatableConsumer.test.d.ts +1 -0
- package/dist/test/UpdatableConsumer.test.js +144 -0
- package/dist/test/UpdatableConsumer.test.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +7737 -0
- package/package.json +48 -4
- package/v0.5/contracts/Chainlink.sol +125 -0
- package/v0.5/contracts/ChainlinkClient.sol +263 -0
- package/v0.5/contracts/LinkTokenReceiver.sol +70 -0
- package/v0.5/contracts/Median.sol +108 -0
- package/v0.5/contracts/Migrations.sol +23 -0
- package/v0.5/contracts/Oracle.sol +273 -0
- package/v0.5/contracts/PreCoordinator.sol +305 -0
- package/v0.5/contracts/dev/AggregatorInterface.sol +12 -0
- package/v0.5/contracts/dev/Coordinator.sol +411 -0
- package/v0.5/contracts/dev/CoordinatorInterface.sol +14 -0
- package/v0.5/contracts/dev/OracleSignaturesDecoder.sol +24 -0
- package/v0.5/contracts/dev/Owned.sol +61 -0
- package/v0.5/contracts/dev/PrepaidAggregator.sol +621 -0
- package/v0.5/contracts/dev/SafeMath128.sol +110 -0
- package/v0.5/contracts/dev/SafeMath32.sol +110 -0
- package/v0.5/contracts/dev/SafeMath64.sol +110 -0
- package/v0.5/contracts/dev/SchnorrSECP256K1.sol +147 -0
- package/v0.5/contracts/dev/ServiceAgreementDecoder.sol +59 -0
- package/v0.5/contracts/dev/VRF.sol +382 -0
- package/v0.5/contracts/dev/Whitelisted.sol +41 -0
- package/v0.5/contracts/dev/WhitelistedAggregator.sol +80 -0
- package/v0.5/contracts/interfaces/ChainlinkRequestInterface.sol +21 -0
- package/v0.5/contracts/interfaces/ENSInterface.sol +26 -0
- package/v0.5/contracts/interfaces/LinkTokenInterface.sol +16 -0
- package/v0.5/contracts/interfaces/OracleInterface.sol +16 -0
- package/v0.5/contracts/interfaces/PointerInterface.sol +5 -0
- package/v0.5/contracts/interfaces/WithdrawalInterface.sol +16 -0
- package/v0.5/contracts/tests/BasicConsumer.sol +13 -0
- package/v0.5/contracts/tests/ChainlinkTestHelper.sol +75 -0
- package/v0.5/contracts/tests/Consumer.sol +55 -0
- package/v0.5/contracts/tests/EmptyAggregator.sol +34 -0
- package/v0.5/contracts/tests/GetterSetter.sol +45 -0
- package/v0.5/contracts/tests/MaliciousChainlink.sol +75 -0
- package/v0.5/contracts/tests/MaliciousChainlinkClient.sol +109 -0
- package/v0.5/contracts/tests/MaliciousConsumer.sol +54 -0
- package/v0.5/contracts/tests/MaliciousRequester.sol +52 -0
- package/v0.5/contracts/tests/MeanAggregator.sol +75 -0
- package/v0.5/contracts/tests/MedianTestHelper.sol +15 -0
- package/v0.5/contracts/tests/OwnedTestHelper.sol +16 -0
- package/v0.5/contracts/tests/ServiceAgreementConsumer.sol +30 -0
- package/v0.5/contracts/vendor/Buffer.sol +301 -0
- package/v0.5/contracts/vendor/CBOR.sol +71 -0
- package/v0.5/contracts/vendor/ENSResolver.sol +5 -0
- package/v0.5/contracts/vendor/Ownable.sol +65 -0
- package/v0.5/contracts/vendor/SafeMath.sol +107 -0
- package/v0.5/contracts/vendor/SignedSafeMath.sol +22 -0
- package/v0.6/contracts/Chainlink.sol +125 -0
- package/v0.6/contracts/ChainlinkClient.sol +263 -0
- package/v0.6/contracts/LinkTokenReceiver.sol +70 -0
- package/v0.6/contracts/Oracle.sol +276 -0
- package/v0.6/contracts/interfaces/ChainlinkRequestInterface.sol +21 -0
- package/v0.6/contracts/interfaces/ENSInterface.sol +26 -0
- package/v0.6/contracts/interfaces/LinkTokenInterface.sol +16 -0
- package/v0.6/contracts/interfaces/OracleInterface.sol +16 -0
- package/v0.6/contracts/interfaces/PointerInterface.sol +5 -0
- package/v0.6/contracts/interfaces/WithdrawalInterface.sol +16 -0
- package/v0.6/contracts/tests/BasicConsumer.sol +13 -0
- package/v0.6/contracts/tests/Consumer.sol +55 -0
- package/v0.6/contracts/vendor/Buffer.sol +301 -0
- package/v0.6/contracts/vendor/CBOR.sol +71 -0
- package/v0.6/contracts/vendor/ENSResolver.sol +5 -0
- package/v0.6/contracts/vendor/Ownable.sol +65 -0
- package/v0.6/contracts/vendor/SafeMath.sol +107 -0
- package/zos.json +8 -0
- package/zos.rinkeby.json +104 -0
- package/zos.ropsten.json +104 -0
@@ -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 { UpdatableConsumer } from "./UpdatableConsumer";
|
6
|
+
export declare class UpdatableConsumerFactory extends ContractFactory {
|
7
|
+
constructor(signer?: Signer);
|
8
|
+
deploy(_specId: Arrayish, _ens: string, _node: Arrayish): Promise<UpdatableConsumer>;
|
9
|
+
getDeployTransaction(_specId: Arrayish, _ens: string, _node: Arrayish): UnsignedTransaction;
|
10
|
+
attach(address: string): UpdatableConsumer;
|
11
|
+
connect(signer: Signer): UpdatableConsumerFactory;
|
12
|
+
static connect(address: string, signerOrProvider: Signer | Provider): UpdatableConsumer;
|
13
|
+
}
|
@@ -0,0 +1,220 @@
|
|
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 UpdatableConsumerFactory extends ethers_1.ContractFactory {
|
7
|
+
constructor(signer) {
|
8
|
+
super(_abi, _bytecode, signer);
|
9
|
+
}
|
10
|
+
deploy(_specId, _ens, _node) {
|
11
|
+
return super.deploy(_specId, _ens, _node);
|
12
|
+
}
|
13
|
+
getDeployTransaction(_specId, _ens, _node) {
|
14
|
+
return super.getDeployTransaction(_specId, _ens, _node);
|
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.UpdatableConsumerFactory = UpdatableConsumerFactory;
|
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: true,
|
48
|
+
inputs: [],
|
49
|
+
name: "getChainlinkToken",
|
50
|
+
outputs: [
|
51
|
+
{
|
52
|
+
name: "",
|
53
|
+
type: "address"
|
54
|
+
}
|
55
|
+
],
|
56
|
+
payable: false,
|
57
|
+
stateMutability: "view",
|
58
|
+
type: "function"
|
59
|
+
},
|
60
|
+
{
|
61
|
+
constant: false,
|
62
|
+
inputs: [
|
63
|
+
{
|
64
|
+
name: "_currency",
|
65
|
+
type: "string"
|
66
|
+
}
|
67
|
+
],
|
68
|
+
name: "requestEthereumPrice",
|
69
|
+
outputs: [],
|
70
|
+
payable: false,
|
71
|
+
stateMutability: "nonpayable",
|
72
|
+
type: "function"
|
73
|
+
},
|
74
|
+
{
|
75
|
+
constant: true,
|
76
|
+
inputs: [],
|
77
|
+
name: "getOracle",
|
78
|
+
outputs: [
|
79
|
+
{
|
80
|
+
name: "",
|
81
|
+
type: "address"
|
82
|
+
}
|
83
|
+
],
|
84
|
+
payable: false,
|
85
|
+
stateMutability: "view",
|
86
|
+
type: "function"
|
87
|
+
},
|
88
|
+
{
|
89
|
+
constant: false,
|
90
|
+
inputs: [],
|
91
|
+
name: "withdrawLink",
|
92
|
+
outputs: [],
|
93
|
+
payable: false,
|
94
|
+
stateMutability: "nonpayable",
|
95
|
+
type: "function"
|
96
|
+
},
|
97
|
+
{
|
98
|
+
constant: true,
|
99
|
+
inputs: [],
|
100
|
+
name: "currentPrice",
|
101
|
+
outputs: [
|
102
|
+
{
|
103
|
+
name: "",
|
104
|
+
type: "bytes32"
|
105
|
+
}
|
106
|
+
],
|
107
|
+
payable: false,
|
108
|
+
stateMutability: "view",
|
109
|
+
type: "function"
|
110
|
+
},
|
111
|
+
{
|
112
|
+
constant: false,
|
113
|
+
inputs: [],
|
114
|
+
name: "updateOracle",
|
115
|
+
outputs: [],
|
116
|
+
payable: false,
|
117
|
+
stateMutability: "nonpayable",
|
118
|
+
type: "function"
|
119
|
+
},
|
120
|
+
{
|
121
|
+
constant: false,
|
122
|
+
inputs: [
|
123
|
+
{
|
124
|
+
name: "_requestId",
|
125
|
+
type: "bytes32"
|
126
|
+
},
|
127
|
+
{
|
128
|
+
name: "_payment",
|
129
|
+
type: "uint256"
|
130
|
+
},
|
131
|
+
{
|
132
|
+
name: "_callbackFunctionId",
|
133
|
+
type: "bytes4"
|
134
|
+
},
|
135
|
+
{
|
136
|
+
name: "_expiration",
|
137
|
+
type: "uint256"
|
138
|
+
}
|
139
|
+
],
|
140
|
+
name: "cancelRequest",
|
141
|
+
outputs: [],
|
142
|
+
payable: false,
|
143
|
+
stateMutability: "nonpayable",
|
144
|
+
type: "function"
|
145
|
+
},
|
146
|
+
{
|
147
|
+
inputs: [
|
148
|
+
{
|
149
|
+
name: "_specId",
|
150
|
+
type: "bytes32"
|
151
|
+
},
|
152
|
+
{
|
153
|
+
name: "_ens",
|
154
|
+
type: "address"
|
155
|
+
},
|
156
|
+
{
|
157
|
+
name: "_node",
|
158
|
+
type: "bytes32"
|
159
|
+
}
|
160
|
+
],
|
161
|
+
payable: false,
|
162
|
+
stateMutability: "nonpayable",
|
163
|
+
type: "constructor"
|
164
|
+
},
|
165
|
+
{
|
166
|
+
anonymous: false,
|
167
|
+
inputs: [
|
168
|
+
{
|
169
|
+
indexed: true,
|
170
|
+
name: "requestId",
|
171
|
+
type: "bytes32"
|
172
|
+
},
|
173
|
+
{
|
174
|
+
indexed: true,
|
175
|
+
name: "price",
|
176
|
+
type: "bytes32"
|
177
|
+
}
|
178
|
+
],
|
179
|
+
name: "RequestFulfilled",
|
180
|
+
type: "event"
|
181
|
+
},
|
182
|
+
{
|
183
|
+
anonymous: false,
|
184
|
+
inputs: [
|
185
|
+
{
|
186
|
+
indexed: true,
|
187
|
+
name: "id",
|
188
|
+
type: "bytes32"
|
189
|
+
}
|
190
|
+
],
|
191
|
+
name: "ChainlinkRequested",
|
192
|
+
type: "event"
|
193
|
+
},
|
194
|
+
{
|
195
|
+
anonymous: false,
|
196
|
+
inputs: [
|
197
|
+
{
|
198
|
+
indexed: true,
|
199
|
+
name: "id",
|
200
|
+
type: "bytes32"
|
201
|
+
}
|
202
|
+
],
|
203
|
+
name: "ChainlinkFulfilled",
|
204
|
+
type: "event"
|
205
|
+
},
|
206
|
+
{
|
207
|
+
anonymous: false,
|
208
|
+
inputs: [
|
209
|
+
{
|
210
|
+
indexed: true,
|
211
|
+
name: "id",
|
212
|
+
type: "bytes32"
|
213
|
+
}
|
214
|
+
],
|
215
|
+
name: "ChainlinkCancelled",
|
216
|
+
type: "event"
|
217
|
+
}
|
218
|
+
];
|
219
|
+
const _bytecode = "0x608060405260016004553480156200001657600080fd5b506040516060806200205183398101806040528101908080519060200190929190805190602001909291908051906020019092919050505082600681600019169055506200007482826200007d640100000000026401000000009004565b5050506200066f565b600080836000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550826001816000191690555060015460405180807f6c696e6b00000000000000000000000000000000000000000000000000000000815250600401905060405180910390206040516020018083600019166000191681526020018260001916600019168152602001925050506040516020818303038152906040526040518082805190602001908083835b6020831015156200017157805182526020820191506020810190506020830392506200014a565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902091506000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630178b8bf836040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808260001916600019168152602001915050602060405180830381600087803b1580156200023957600080fd5b505af11580156200024e573d6000803e3d6000fd5b505050506040513d60208110156200026557600080fd5b81019080805190602001909291905050509050620003468173ffffffffffffffffffffffffffffffffffffffff16633b3b57de846040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808260001916600019168152602001915050602060405180830381600087803b158015620002f457600080fd5b505af115801562000309573d6000803e3d6000fd5b505050506040513d60208110156200032057600080fd5b810190808051906020019092919050505062000365640100000000026401000000009004565b6200035f620003a9640100000000026401000000009004565b50505050565b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008060015460405180807f6f7261636c650000000000000000000000000000000000000000000000000000815250600601905060405180910390206040516020018083600019166000191681526020018260001916600019168152602001925050506040516020818303038152906040526040518082805190602001908083835b6020831015156200045257805182526020820191506020810190506020830392506200042b565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902091506000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630178b8bf836040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808260001916600019168152602001915050602060405180830381600087803b1580156200051a57600080fd5b505af11580156200052f573d6000803e3d6000fd5b505050506040513d60208110156200054657600080fd5b81019080805190602001909291905050509050620006278173ffffffffffffffffffffffffffffffffffffffff16633b3b57de846040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808260001916600019168152602001915050602060405180830381600087803b158015620005d557600080fd5b505af1158015620005ea573d6000803e3d6000fd5b505050506040513d60208110156200060157600080fd5b81019080805190602001909291905050506200062b640100000000026401000000009004565b5050565b80600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6119d2806200067f6000396000f30060806040526004361061008e576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff168063042f2b6514610093578063165d35e1146100d25780636c0cae6814610129578063833b1fce146101925780638dc654a2146101e95780639d1b464a14610200578063d6f124f014610233578063ec65d0f81461024a575b600080fd5b34801561009f57600080fd5b506100d0600480360381019080803560001916906020019092919080356000191690602001909291905050506102b8565b005b3480156100de57600080fd5b506100e7610472565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561013557600080fd5b50610190600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610481565b005b34801561019e57600080fd5b506101a7610643565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156101f557600080fd5b506101fe610652565b005b34801561020c57600080fd5b50610215610888565b60405180826000191660001916815260200191505060405180910390f35b34801561023f57600080fd5b5061024861088e565b005b34801561025657600080fd5b506102b660048036038101908080356000191690602001909291908035906020019092919080357bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916906020019092919080359060200190929190505050610898565b005b8160056000826000191660001916815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156103bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260288152602001807f536f75726365206d75737420626520746865206f7261636c65206f662074686581526020017f207265717565737400000000000000000000000000000000000000000000000081525060400191505060405180910390fd5b60056000826000191660001916815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905580600019167f7cc135e0cebb02c3480ae5d74d377283180a2601f8f644edf7987b009316c63a60405160405180910390a2816000191683600019167f0c2366233f634048c0f0458060d1228fab36d00f7c0ecf6bdf2d9c458503631160405160405180910390a38160078160001916905550505050565b600061047c6108aa565b905090565b610489611904565b60606104bb6006543063042f2b657c0100000000000000000000000000000000000000000000000000000000026108d4565b91506105896040805190810160405280600381526020017f6765740000000000000000000000000000000000000000000000000000000000815250608060405190810160405280604781526020017f68747470733a2f2f6d696e2d6170692e63727970746f636f6d706172652e636f81526020017f6d2f646174612f70726963653f6673796d3d455448267473796d733d5553442c81526020017f4555522c4a505900000000000000000000000000000000000000000000000000815250846109059092919063ffffffff16565b60016040519080825280602002602001820160405280156105be57816020015b60608152602001906001900390816105a95790505b509050828160008151811015156105d157fe5b906020019060200201819052506106286040805190810160405280600481526020017f706174680000000000000000000000000000000000000000000000000000000081525082846109389092919063ffffffff16565b61063d82670de0b6b3a76400006001026109ba565b50505050565b600061064d6109f1565b905090565b600061065c6108aa565b90508073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb338373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b15801561071657600080fd5b505af115801561072a573d6000803e3d6000fd5b505050506040513d602081101561074057600080fd5b81019080805190602001909291905050506040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156107d657600080fd5b505af11580156107ea573d6000803e3d6000fd5b505050506040513d602081101561080057600080fd5b81019080805190602001909291905050501515610885576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260128152602001807f556e61626c6520746f207472616e73666572000000000000000000000000000081525060200191505060405180910390fd5b50565b60075481565b610896610a1b565b565b6108a484848484610c84565b50505050565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6108dc611904565b6108e4611904565b6108fb85858584610e1f909392919063ffffffff16565b9150509392505050565b61091c828460800151610ed990919063ffffffff16565b610933818460800151610ed990919063ffffffff16565b505050565b6000610951838560800151610ed990919063ffffffff16565b61095e8460800151610efe565b600090505b81518110156109a75761099a828281518110151561097d57fe5b906020019060200201518560800151610ed990919063ffffffff16565b8080600101915050610963565b6109b48460800151610f0c565b50505050565b60006109e9600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168484610f1a565b905092915050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60008060015460405180807f6f7261636c650000000000000000000000000000000000000000000000000000815250600601905060405180910390206040516020018083600019166000191681526020018260001916600019168152602001925050506040516020818303038152906040526040518082805190602001908083835b602083101515610ac25780518252602082019150602081019050602083039250610a9d565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902091506000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630178b8bf836040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808260001916600019168152602001915050602060405180830381600087803b158015610b8957600080fd5b505af1158015610b9d573d6000803e3d6000fd5b505050506040513d6020811015610bb357600080fd5b81019080805190602001909291905050509050610c808173ffffffffffffffffffffffffffffffffffffffff16633b3b57de846040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808260001916600019168152602001915050602060405180830381600087803b158015610c4057600080fd5b505af1158015610c54573d6000803e3d6000fd5b505050506040513d6020811015610c6a57600080fd5b81019080805190602001909291905050506112a6565b5050565b600060056000866000191660001916815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060056000866000191660001916815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905584600019167fe1fe3afa0f7f761ff0a8b89086790efd5140d2907ebd5b7ff6bfcb5e075fd4c560405160405180910390a28073ffffffffffffffffffffffffffffffffffffffff16636ee4d553868686866040518563ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808560001916600019168152602001848152602001837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168152602001828152602001945050505050600060405180830381600087803b158015610e0057600080fd5b505af1158015610e14573d6000803e3d6000fd5b505050505050505050565b610e27611904565b610e3785608001516101006112ea565b50838560000190600019169081600019168152505082856020019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508185604001907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681525050849050949350505050565b610ee68260038351611344565b610ef981836114a290919063ffffffff16565b505050565b610f098160046114c4565b50565b610f178160076114c4565b50565b600030600454604051602001808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166c01000000000000000000000000028152601401828152602001925050506040516020818303038152906040526040518082805190602001908083835b602083101515610fb65780518252602082019150602081019050602083039250610f91565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902090506004548360600181815250508360056000836000191660001916815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600019167fb5e6e01e79f91267dc17b4e6314d5d4d03593d2ceee0fbb452b750bd70ea5af960405160405180910390a2600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634000aea085846110c5876114e9565b6040518463ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561116857808201518184015260208101905061114d565b50505050905090810190601f1680156111955780820380516001836020036101000a031916815260200191505b50945050505050602060405180830381600087803b1580156111b657600080fd5b505af11580156111ca573d6000803e3d6000fd5b505050506040513d60208110156111e057600080fd5b8101908080519060200190929190505050151561128b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001807f756e61626c6520746f207472616e73666572416e6443616c6c20746f206f726181526020017f636c65000000000000000000000000000000000000000000000000000000000081525060400191505060405180910390fd5b60016004600082825401925050819055508090509392505050565b80600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6112f2611972565b600060208381151561130057fe5b0614151561131d5760208281151561131457fe5b06602003820191505b81836020018181525050604051808452600081528281016020016040525082905092915050565b601781111515611376576113708160058460ff169060020a0260ff16178461171490919063ffffffff16565b5061149d565b60ff811115156113bd576113a0601860058460ff169060020a02178461171490919063ffffffff16565b506113b7816001856117349092919063ffffffff16565b5061149c565b61ffff81111515611405576113e8601960058460ff169060020a02178461171490919063ffffffff16565b506113ff816002856117349092919063ffffffff16565b5061149b565b63ffffffff8111151561144f57611432601a60058460ff169060020a02178461171490919063ffffffff16565b50611449816004856117349092919063ffffffff16565b5061149a565b67ffffffffffffffff8111151561149957611480601b60058460ff169060020a02178461171490919063ffffffff16565b50611497816008856117349092919063ffffffff16565b505b5b5b5b5b505050565b6114aa611972565b6114bc83846000015151848551611756565b905092915050565b6114e4601f60058360ff169060020a02178361171490919063ffffffff16565b505050565b6060600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634042994690507c01000000000000000000000000000000000000000000000000000000000260008084600001518560200151866040015187606001516001896080015160000151604051602401808973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200188815260200187600019166000191681526020018673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001857bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561167757808201518184015260208101905061165c565b50505050905090810190601f1680156116a45780820380516001836020036101000a031916815260200191505b509950505050505050505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050509050919050565b61171c611972565b61172c8384600001515184611813565b905092915050565b61173c611972565b61174d848560000151518585611863565b90509392505050565b61175e611972565b60008060008551851115151561177357600080fd5b8760200151858801111561179e5761179d8860026117978b602001518b8a016118c4565b026118e0565b5b8751805188602083010194508089880111156117ba5788870182525b60208801935050505b6020851015156117e857815183526020830192506020820191506020850394506117c3565b6001856020036101000a03905080198251168184511681811785525050879350505050949350505050565b61181b611972565b83602001518310151561183a576118398460028660200151026118e0565b5b8351805160208583010184815381861415611856576001820183525b5050508390509392505050565b61186b611972565b60008560200151858401111561188b5761188a866002878601026118e0565b5b6001836101000a03905085518386820101858319825116178152815185880111156118b65784870182525b505085915050949350505050565b6000818311156118d6578290506118da565b8190505b92915050565b6060826000015190506118f383836112ea565b506118fe83826114a2565b50505050565b60c06040519081016040528060008019168152602001600073ffffffffffffffffffffffffffffffffffffffff16815260200160007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681526020016000815260200161196c61198c565b81525090565b604080519081016040528060608152602001600081525090565b6040805190810160405280606081526020016000815250905600a165627a7a7230582068549ec872a5c6214b1f4ff269d54fc14149b51277d82b577741535e7926b83a0029";
|
220
|
+
//# sourceMappingURL=UpdatableConsumerFactory.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"UpdatableConsumerFactory.js","sourceRoot":"","sources":["../../../src/generated/UpdatableConsumerFactory.ts"],"names":[],"mappings":"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"}
|
@@ -0,0 +1,44 @@
|
|
1
|
+
import { BigNumberish, EventDescription, FunctionDescription } from "ethers/utils";
|
2
|
+
export declare class TransactionOverrides {
|
3
|
+
nonce?: BigNumberish | Promise<BigNumberish>;
|
4
|
+
gasLimit?: BigNumberish | Promise<BigNumberish>;
|
5
|
+
gasPrice?: BigNumberish | Promise<BigNumberish>;
|
6
|
+
value?: BigNumberish | Promise<BigNumberish>;
|
7
|
+
chainId?: number | Promise<number>;
|
8
|
+
}
|
9
|
+
export interface TypedEventDescription<T extends Pick<EventDescription, "encodeTopics">> extends EventDescription {
|
10
|
+
encodeTopics: T["encodeTopics"];
|
11
|
+
}
|
12
|
+
export interface TypedFunctionDescription<T extends Pick<FunctionDescription, "encode">> extends FunctionDescription {
|
13
|
+
encode: T["encode"];
|
14
|
+
}
|
15
|
+
export * from './AggregatorFactory';
|
16
|
+
export * from './AggregatorInterfaceFactory';
|
17
|
+
export * from './AggregatorProxyFactory';
|
18
|
+
export * from './BasicConsumerFactory';
|
19
|
+
export * from './ChainlinkClientFactory';
|
20
|
+
export * from './ChainlinkRequestInterfaceFactory';
|
21
|
+
export * from './ChainlinkedFactory';
|
22
|
+
export * from './ConcreteChainlinkFactory';
|
23
|
+
export * from './ConcreteChainlinkedFactory';
|
24
|
+
export * from './ConcreteSignedSafeMathFactory';
|
25
|
+
export * from './ConsumerFactory';
|
26
|
+
export * from './ENSFactory';
|
27
|
+
export * from './ENSInterfaceFactory';
|
28
|
+
export * from './ENSRegistryFactory';
|
29
|
+
export * from './ENSResolverFactory';
|
30
|
+
export * from './EmptyOracleFactory';
|
31
|
+
export * from './GetterSetterFactory';
|
32
|
+
export * from './LinkTokenFactory';
|
33
|
+
export * from './LinkTokenInterfaceFactory';
|
34
|
+
export * from './MaliciousChainlinkedFactory';
|
35
|
+
export * from './MaliciousConsumerFactory';
|
36
|
+
export * from './MaliciousRequesterFactory';
|
37
|
+
export * from './MigrationsFactory';
|
38
|
+
export * from './OracleFactory';
|
39
|
+
export * from './OracleInterfaceFactory';
|
40
|
+
export * from './OwnableFactory';
|
41
|
+
export * from './PointerFactory';
|
42
|
+
export * from './PointerInterfaceFactory';
|
43
|
+
export * from './PublicResolverFactory';
|
44
|
+
export * from './UpdatableConsumerFactory';
|
@@ -0,0 +1,41 @@
|
|
1
|
+
"use strict";
|
2
|
+
/* Generated by ts-generator ver. 0.0.8 */
|
3
|
+
/* tslint:disable */
|
4
|
+
function __export(m) {
|
5
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
6
|
+
}
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
8
|
+
class TransactionOverrides {
|
9
|
+
}
|
10
|
+
exports.TransactionOverrides = TransactionOverrides;
|
11
|
+
__export(require("./AggregatorFactory"));
|
12
|
+
__export(require("./AggregatorInterfaceFactory"));
|
13
|
+
__export(require("./AggregatorProxyFactory"));
|
14
|
+
__export(require("./BasicConsumerFactory"));
|
15
|
+
__export(require("./ChainlinkClientFactory"));
|
16
|
+
__export(require("./ChainlinkRequestInterfaceFactory"));
|
17
|
+
__export(require("./ChainlinkedFactory"));
|
18
|
+
__export(require("./ConcreteChainlinkFactory"));
|
19
|
+
__export(require("./ConcreteChainlinkedFactory"));
|
20
|
+
__export(require("./ConcreteSignedSafeMathFactory"));
|
21
|
+
__export(require("./ConsumerFactory"));
|
22
|
+
__export(require("./ENSFactory"));
|
23
|
+
__export(require("./ENSInterfaceFactory"));
|
24
|
+
__export(require("./ENSRegistryFactory"));
|
25
|
+
__export(require("./ENSResolverFactory"));
|
26
|
+
__export(require("./EmptyOracleFactory"));
|
27
|
+
__export(require("./GetterSetterFactory"));
|
28
|
+
__export(require("./LinkTokenFactory"));
|
29
|
+
__export(require("./LinkTokenInterfaceFactory"));
|
30
|
+
__export(require("./MaliciousChainlinkedFactory"));
|
31
|
+
__export(require("./MaliciousConsumerFactory"));
|
32
|
+
__export(require("./MaliciousRequesterFactory"));
|
33
|
+
__export(require("./MigrationsFactory"));
|
34
|
+
__export(require("./OracleFactory"));
|
35
|
+
__export(require("./OracleInterfaceFactory"));
|
36
|
+
__export(require("./OwnableFactory"));
|
37
|
+
__export(require("./PointerFactory"));
|
38
|
+
__export(require("./PointerInterfaceFactory"));
|
39
|
+
__export(require("./PublicResolverFactory"));
|
40
|
+
__export(require("./UpdatableConsumerFactory"));
|
41
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/generated/index.ts"],"names":[],"mappings":";AAAA,0CAA0C;AAC1C,oBAAoB;;;;;AAQpB,MAAa,oBAAoB;CAMhC;AAND,oDAMC;AAcD,yCAAmC;AACnC,kDAA4C;AAC5C,8CAAwC;AACxC,4CAAsC;AACtC,8CAAwC;AACxC,wDAAkD;AAClD,0CAAoC;AACpC,gDAA0C;AAC1C,kDAA4C;AAC5C,qDAA+C;AAC/C,uCAAiC;AACjC,kCAA4B;AAC5B,2CAAqC;AACrC,0CAAoC;AACpC,0CAAoC;AACpC,0CAAoC;AACpC,2CAAqC;AACrC,wCAAkC;AAClC,iDAA2C;AAC3C,mDAA6C;AAC7C,gDAA0C;AAC1C,iDAA2C;AAC3C,yCAAmC;AACnC,qCAA+B;AAC/B,8CAAwC;AACxC,sCAAgC;AAChC,sCAAgC;AAChC,+CAAyC;AACzC,6CAAuC;AACvC,gDAA0C"}
|
@@ -0,0 +1,144 @@
|
|
1
|
+
/// <reference types="node" />
|
2
|
+
import { ethers } from 'ethers';
|
3
|
+
import { Oracle } from './generated/Oracle';
|
4
|
+
import { LinkToken } from './generated/LinkToken';
|
5
|
+
import { EmptyOracle } from './generated/EmptyOracle';
|
6
|
+
export interface Roles {
|
7
|
+
defaultAccount: ethers.Wallet;
|
8
|
+
oracleNode: ethers.Wallet;
|
9
|
+
oracleNode1: ethers.Wallet;
|
10
|
+
oracleNode2: ethers.Wallet;
|
11
|
+
oracleNode3: ethers.Wallet;
|
12
|
+
stranger: ethers.Wallet;
|
13
|
+
consumer: ethers.Wallet;
|
14
|
+
}
|
15
|
+
export interface Personas {
|
16
|
+
Default: ethers.Wallet;
|
17
|
+
Neil: ethers.Wallet;
|
18
|
+
Ned: ethers.Wallet;
|
19
|
+
Nelly: ethers.Wallet;
|
20
|
+
Carol: ethers.Wallet;
|
21
|
+
Eddy: ethers.Wallet;
|
22
|
+
}
|
23
|
+
interface RolesAndPersonas {
|
24
|
+
roles: Roles;
|
25
|
+
personas: Personas;
|
26
|
+
}
|
27
|
+
export interface ServiceAgreement {
|
28
|
+
payment: ethers.utils.BigNumberish;
|
29
|
+
expiration: ethers.utils.BigNumberish;
|
30
|
+
endAt: ethers.utils.BigNumberish;
|
31
|
+
oracles: string[];
|
32
|
+
requestDigest: string;
|
33
|
+
aggregator: string;
|
34
|
+
aggInitiateJobSelector: string;
|
35
|
+
aggFulfillSelector: string;
|
36
|
+
}
|
37
|
+
export interface OracleSignatures {
|
38
|
+
vs: ethers.utils.BigNumberish[];
|
39
|
+
rs: string[];
|
40
|
+
ss: string[];
|
41
|
+
}
|
42
|
+
/**
|
43
|
+
* This helper function allows us to make use of ganache snapshots,
|
44
|
+
* which allows us to snapshot one state instance and revert back to it.
|
45
|
+
*
|
46
|
+
* This is used to memoize expensive setup calls typically found in beforeEach hooks when we
|
47
|
+
* need to setup our state with contract deployments before running assertions.
|
48
|
+
*
|
49
|
+
* @param provider The provider that's used within the tests
|
50
|
+
* @param cb The callback to execute that generates the state we want to snapshot
|
51
|
+
*/
|
52
|
+
export declare function useSnapshot(provider: ethers.providers.JsonRpcProvider, cb: () => Promise<void>): () => Promise<void>;
|
53
|
+
/**
|
54
|
+
* A wrapper function to make generated contracts compatible with truffle test suites.
|
55
|
+
*
|
56
|
+
* Note that the returned contract is an instance of ethers.Contract, not a @truffle/contract, so there are slight
|
57
|
+
* api differences, though largely the same.
|
58
|
+
*
|
59
|
+
* @see https://docs.ethers.io/ethers.js/html/api-contract.html
|
60
|
+
* @param contractFactory The ethers based contract factory to interop with
|
61
|
+
* @param address The address to supply as the signer
|
62
|
+
*/
|
63
|
+
export declare function create<T extends new (...args: any[]) => any>(contractFactory: T, address: string): InstanceType<T>;
|
64
|
+
/**
|
65
|
+
* Generate roles and personas for tests along with their corrolated account addresses
|
66
|
+
*/
|
67
|
+
export declare function initializeRolesAndPersonas(provider: ethers.providers.JsonRpcProvider): Promise<RolesAndPersonas>;
|
68
|
+
declare type AsyncFunction = () => Promise<void>;
|
69
|
+
export declare function assertActionThrows(action: AsyncFunction): Promise<void>;
|
70
|
+
export declare function checkPublicABI(contract: ethers.Contract | ethers.ContractFactory, expectedPublic: string[]): void;
|
71
|
+
export declare const utils: typeof ethers.utils;
|
72
|
+
/**
|
73
|
+
* Convert a value to a hex string
|
74
|
+
* @param args Value to convert to a hex string
|
75
|
+
*/
|
76
|
+
export declare function toHex(...args: Parameters<typeof utils.hexlify>): ReturnType<typeof utils.hexlify>;
|
77
|
+
/**
|
78
|
+
* Convert an Ether value to a wei amount
|
79
|
+
* @param args Ether value to convert to an Ether amount
|
80
|
+
*/
|
81
|
+
export declare function toWei(...args: Parameters<typeof utils.parseEther>): ReturnType<typeof utils.parseEther>;
|
82
|
+
export declare function decodeRunRequest(log?: ethers.providers.Log): RunRequest;
|
83
|
+
/**
|
84
|
+
* Decode a log into a run
|
85
|
+
* @param log The log to decode
|
86
|
+
* @todo Do we really need this?
|
87
|
+
*/
|
88
|
+
export declare function decodeRunABI(log: ethers.providers.Log): [string, string, string, string];
|
89
|
+
/**
|
90
|
+
* Decodes a CBOR hex string, and adds opening and closing brackets to the CBOR if they are not present.
|
91
|
+
*
|
92
|
+
* @param hexstr The hex string to decode
|
93
|
+
*/
|
94
|
+
export declare function decodeDietCBOR(hexstr: string): any;
|
95
|
+
export interface RunRequest {
|
96
|
+
callbackAddr: string;
|
97
|
+
callbackFunc: string;
|
98
|
+
data: Buffer;
|
99
|
+
dataVersion: number;
|
100
|
+
expiration: string;
|
101
|
+
id: string;
|
102
|
+
jobId: string;
|
103
|
+
payment: string;
|
104
|
+
requester: string;
|
105
|
+
topic: string;
|
106
|
+
}
|
107
|
+
/**
|
108
|
+
* Add a hex prefix to a hex string
|
109
|
+
* @param hex The hex string to prepend the hex prefix to
|
110
|
+
*/
|
111
|
+
export declare function addHexPrefix(hex: string): string;
|
112
|
+
export declare function stripHexPrefix(hex: string): string;
|
113
|
+
/**
|
114
|
+
* Convert a number value to bytes32 format
|
115
|
+
*
|
116
|
+
* @param num The number value to convert to bytes32 format
|
117
|
+
*/
|
118
|
+
export declare function numToBytes32(num: Parameters<typeof ethers.utils.hexlify>[0]): string;
|
119
|
+
export declare function toUtf8(...args: Parameters<typeof ethers.utils.toUtf8Bytes>): ReturnType<typeof ethers.utils.toUtf8Bytes>;
|
120
|
+
/**
|
121
|
+
* Compute the keccak256 cryptographic hash of a value, returned as a hex string.
|
122
|
+
* (Note: often Ethereum documentation refers to this, incorrectly, as SHA3)
|
123
|
+
* @param args The data to compute the keccak256 hash of
|
124
|
+
*/
|
125
|
+
export declare function keccak(...args: Parameters<typeof ethers.utils.keccak256>): ReturnType<typeof ethers.utils.keccak256>;
|
126
|
+
declare type TxOptions = Omit<ethers.providers.TransactionRequest, 'to' | 'from'>;
|
127
|
+
export declare function fulfillOracleRequest(oracleContract: Oracle | EmptyOracle, runRequest: RunRequest, response: string, options?: TxOptions): ReturnType<typeof oracleContract.fulfillOracleRequest>;
|
128
|
+
export declare function cancelOracleRequest(oracleContract: Oracle | EmptyOracle, request: RunRequest, options?: TxOptions): ReturnType<typeof oracleContract.cancelOracleRequest>;
|
129
|
+
export declare function requestDataBytes(specId: string, to: string, fHash: string, nonce: number, dataBytes: string): string;
|
130
|
+
export declare function requestDataFrom(oc: Oracle, link: LinkToken, amount: ethers.utils.BigNumberish, args: string, options?: Omit<ethers.providers.TransactionRequest, 'to' | 'from'>): ReturnType<typeof link.transferAndCall>;
|
131
|
+
export declare function increaseTime5Minutes(provider: ethers.providers.JsonRpcProvider): Promise<void>;
|
132
|
+
/**
|
133
|
+
* Convert a buffer to a hex string
|
134
|
+
* @param hexstr The hex string to convert to a buffer
|
135
|
+
*/
|
136
|
+
export declare function hexToBuf(hexstr: string): Buffer;
|
137
|
+
declare type Hash = ReturnType<typeof ethers.utils.keccak256>;
|
138
|
+
export declare function encodeServiceAgreement(sa: ServiceAgreement): string;
|
139
|
+
export declare function encodeOracleSignatures(os: OracleSignatures): string;
|
140
|
+
/**
|
141
|
+
* Digest of the ServiceAgreement.
|
142
|
+
*/
|
143
|
+
export declare function generateSAID(sa: ServiceAgreement): Hash;
|
144
|
+
export {};
|