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,253 @@
|
|
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 LinkTokenInterfaceFactory {
|
7
|
+
static connect(address, signerOrProvider) {
|
8
|
+
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
9
|
+
}
|
10
|
+
}
|
11
|
+
exports.LinkTokenInterfaceFactory = LinkTokenInterfaceFactory;
|
12
|
+
const _abi = [
|
13
|
+
{
|
14
|
+
constant: false,
|
15
|
+
inputs: [],
|
16
|
+
name: "name",
|
17
|
+
outputs: [
|
18
|
+
{
|
19
|
+
name: "tokenName",
|
20
|
+
type: "string"
|
21
|
+
}
|
22
|
+
],
|
23
|
+
payable: false,
|
24
|
+
stateMutability: "nonpayable",
|
25
|
+
type: "function"
|
26
|
+
},
|
27
|
+
{
|
28
|
+
constant: false,
|
29
|
+
inputs: [
|
30
|
+
{
|
31
|
+
name: "spender",
|
32
|
+
type: "address"
|
33
|
+
},
|
34
|
+
{
|
35
|
+
name: "value",
|
36
|
+
type: "uint256"
|
37
|
+
}
|
38
|
+
],
|
39
|
+
name: "approve",
|
40
|
+
outputs: [
|
41
|
+
{
|
42
|
+
name: "success",
|
43
|
+
type: "bool"
|
44
|
+
}
|
45
|
+
],
|
46
|
+
payable: false,
|
47
|
+
stateMutability: "nonpayable",
|
48
|
+
type: "function"
|
49
|
+
},
|
50
|
+
{
|
51
|
+
constant: false,
|
52
|
+
inputs: [],
|
53
|
+
name: "totalSupply",
|
54
|
+
outputs: [
|
55
|
+
{
|
56
|
+
name: "totalTokensIssued",
|
57
|
+
type: "uint256"
|
58
|
+
}
|
59
|
+
],
|
60
|
+
payable: false,
|
61
|
+
stateMutability: "nonpayable",
|
62
|
+
type: "function"
|
63
|
+
},
|
64
|
+
{
|
65
|
+
constant: false,
|
66
|
+
inputs: [
|
67
|
+
{
|
68
|
+
name: "from",
|
69
|
+
type: "address"
|
70
|
+
},
|
71
|
+
{
|
72
|
+
name: "to",
|
73
|
+
type: "address"
|
74
|
+
},
|
75
|
+
{
|
76
|
+
name: "value",
|
77
|
+
type: "uint256"
|
78
|
+
}
|
79
|
+
],
|
80
|
+
name: "transferFrom",
|
81
|
+
outputs: [
|
82
|
+
{
|
83
|
+
name: "success",
|
84
|
+
type: "bool"
|
85
|
+
}
|
86
|
+
],
|
87
|
+
payable: false,
|
88
|
+
stateMutability: "nonpayable",
|
89
|
+
type: "function"
|
90
|
+
},
|
91
|
+
{
|
92
|
+
constant: false,
|
93
|
+
inputs: [],
|
94
|
+
name: "decimals",
|
95
|
+
outputs: [
|
96
|
+
{
|
97
|
+
name: "decimalPlaces",
|
98
|
+
type: "uint8"
|
99
|
+
}
|
100
|
+
],
|
101
|
+
payable: false,
|
102
|
+
stateMutability: "nonpayable",
|
103
|
+
type: "function"
|
104
|
+
},
|
105
|
+
{
|
106
|
+
constant: false,
|
107
|
+
inputs: [
|
108
|
+
{
|
109
|
+
name: "to",
|
110
|
+
type: "address"
|
111
|
+
},
|
112
|
+
{
|
113
|
+
name: "value",
|
114
|
+
type: "uint256"
|
115
|
+
},
|
116
|
+
{
|
117
|
+
name: "data",
|
118
|
+
type: "bytes"
|
119
|
+
}
|
120
|
+
],
|
121
|
+
name: "transferAndCall",
|
122
|
+
outputs: [
|
123
|
+
{
|
124
|
+
name: "success",
|
125
|
+
type: "bool"
|
126
|
+
}
|
127
|
+
],
|
128
|
+
payable: false,
|
129
|
+
stateMutability: "nonpayable",
|
130
|
+
type: "function"
|
131
|
+
},
|
132
|
+
{
|
133
|
+
constant: false,
|
134
|
+
inputs: [
|
135
|
+
{
|
136
|
+
name: "spender",
|
137
|
+
type: "address"
|
138
|
+
},
|
139
|
+
{
|
140
|
+
name: "addedValue",
|
141
|
+
type: "uint256"
|
142
|
+
}
|
143
|
+
],
|
144
|
+
name: "decreaseApproval",
|
145
|
+
outputs: [
|
146
|
+
{
|
147
|
+
name: "success",
|
148
|
+
type: "bool"
|
149
|
+
}
|
150
|
+
],
|
151
|
+
payable: false,
|
152
|
+
stateMutability: "nonpayable",
|
153
|
+
type: "function"
|
154
|
+
},
|
155
|
+
{
|
156
|
+
constant: false,
|
157
|
+
inputs: [
|
158
|
+
{
|
159
|
+
name: "owner",
|
160
|
+
type: "address"
|
161
|
+
}
|
162
|
+
],
|
163
|
+
name: "balanceOf",
|
164
|
+
outputs: [
|
165
|
+
{
|
166
|
+
name: "balance",
|
167
|
+
type: "uint256"
|
168
|
+
}
|
169
|
+
],
|
170
|
+
payable: false,
|
171
|
+
stateMutability: "nonpayable",
|
172
|
+
type: "function"
|
173
|
+
},
|
174
|
+
{
|
175
|
+
constant: false,
|
176
|
+
inputs: [],
|
177
|
+
name: "symbol",
|
178
|
+
outputs: [
|
179
|
+
{
|
180
|
+
name: "tokenSymbol",
|
181
|
+
type: "string"
|
182
|
+
}
|
183
|
+
],
|
184
|
+
payable: false,
|
185
|
+
stateMutability: "nonpayable",
|
186
|
+
type: "function"
|
187
|
+
},
|
188
|
+
{
|
189
|
+
constant: false,
|
190
|
+
inputs: [
|
191
|
+
{
|
192
|
+
name: "to",
|
193
|
+
type: "address"
|
194
|
+
},
|
195
|
+
{
|
196
|
+
name: "value",
|
197
|
+
type: "uint256"
|
198
|
+
}
|
199
|
+
],
|
200
|
+
name: "transfer",
|
201
|
+
outputs: [
|
202
|
+
{
|
203
|
+
name: "success",
|
204
|
+
type: "bool"
|
205
|
+
}
|
206
|
+
],
|
207
|
+
payable: false,
|
208
|
+
stateMutability: "nonpayable",
|
209
|
+
type: "function"
|
210
|
+
},
|
211
|
+
{
|
212
|
+
constant: false,
|
213
|
+
inputs: [
|
214
|
+
{
|
215
|
+
name: "spender",
|
216
|
+
type: "address"
|
217
|
+
},
|
218
|
+
{
|
219
|
+
name: "subtractedValue",
|
220
|
+
type: "uint256"
|
221
|
+
}
|
222
|
+
],
|
223
|
+
name: "increaseApproval",
|
224
|
+
outputs: [],
|
225
|
+
payable: false,
|
226
|
+
stateMutability: "nonpayable",
|
227
|
+
type: "function"
|
228
|
+
},
|
229
|
+
{
|
230
|
+
constant: false,
|
231
|
+
inputs: [
|
232
|
+
{
|
233
|
+
name: "owner",
|
234
|
+
type: "address"
|
235
|
+
},
|
236
|
+
{
|
237
|
+
name: "spender",
|
238
|
+
type: "address"
|
239
|
+
}
|
240
|
+
],
|
241
|
+
name: "allowance",
|
242
|
+
outputs: [
|
243
|
+
{
|
244
|
+
name: "remaining",
|
245
|
+
type: "uint256"
|
246
|
+
}
|
247
|
+
],
|
248
|
+
payable: false,
|
249
|
+
stateMutability: "nonpayable",
|
250
|
+
type: "function"
|
251
|
+
}
|
252
|
+
];
|
253
|
+
//# sourceMappingURL=LinkTokenInterfaceFactory.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"LinkTokenInterfaceFactory.js","sourceRoot":"","sources":["../../../src/generated/LinkTokenInterfaceFactory.ts"],"names":[],"mappings":"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"}
|
@@ -0,0 +1,58 @@
|
|
1
|
+
/* Generated by ts-generator ver. 0.0.8 */
|
2
|
+
/* tslint:disable */
|
3
|
+
|
4
|
+
import { Contract, ContractTransaction, EventFilter, Signer } from "ethers";
|
5
|
+
import { Listener, Provider } from "ethers/providers";
|
6
|
+
import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils";
|
7
|
+
import {
|
8
|
+
TransactionOverrides,
|
9
|
+
TypedEventDescription,
|
10
|
+
TypedFunctionDescription
|
11
|
+
} from ".";
|
12
|
+
|
13
|
+
interface MaliciousChainlinkedInterface extends Interface {
|
14
|
+
functions: {};
|
15
|
+
|
16
|
+
events: {
|
17
|
+
ChainlinkRequested: TypedEventDescription<{
|
18
|
+
encodeTopics([id]: [Arrayish | null]): string[];
|
19
|
+
}>;
|
20
|
+
|
21
|
+
ChainlinkFulfilled: TypedEventDescription<{
|
22
|
+
encodeTopics([id]: [Arrayish | null]): string[];
|
23
|
+
}>;
|
24
|
+
|
25
|
+
ChainlinkCancelled: TypedEventDescription<{
|
26
|
+
encodeTopics([id]: [Arrayish | null]): string[];
|
27
|
+
}>;
|
28
|
+
};
|
29
|
+
}
|
30
|
+
|
31
|
+
export class MaliciousChainlinked extends Contract {
|
32
|
+
connect(signerOrProvider: Signer | Provider | string): MaliciousChainlinked;
|
33
|
+
attach(addressOrName: string): MaliciousChainlinked;
|
34
|
+
deployed(): Promise<MaliciousChainlinked>;
|
35
|
+
|
36
|
+
on(event: EventFilter | string, listener: Listener): MaliciousChainlinked;
|
37
|
+
once(event: EventFilter | string, listener: Listener): MaliciousChainlinked;
|
38
|
+
addListener(
|
39
|
+
eventName: EventFilter | string,
|
40
|
+
listener: Listener
|
41
|
+
): MaliciousChainlinked;
|
42
|
+
removeAllListeners(eventName: EventFilter | string): MaliciousChainlinked;
|
43
|
+
removeListener(eventName: any, listener: Listener): MaliciousChainlinked;
|
44
|
+
|
45
|
+
interface: MaliciousChainlinkedInterface;
|
46
|
+
|
47
|
+
functions: {};
|
48
|
+
|
49
|
+
filters: {
|
50
|
+
ChainlinkRequested(id: Arrayish | null): EventFilter;
|
51
|
+
|
52
|
+
ChainlinkFulfilled(id: Arrayish | null): EventFilter;
|
53
|
+
|
54
|
+
ChainlinkCancelled(id: Arrayish | null): EventFilter;
|
55
|
+
};
|
56
|
+
|
57
|
+
estimate: {};
|
58
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { ContractFactory, Signer } from "ethers";
|
2
|
+
import { Provider } from "ethers/providers";
|
3
|
+
import { UnsignedTransaction } from "ethers/utils/transaction";
|
4
|
+
import { MaliciousChainlinked } from "./MaliciousChainlinked";
|
5
|
+
export declare class MaliciousChainlinkedFactory extends ContractFactory {
|
6
|
+
constructor(signer?: Signer);
|
7
|
+
deploy(): Promise<MaliciousChainlinked>;
|
8
|
+
getDeployTransaction(): UnsignedTransaction;
|
9
|
+
attach(address: string): MaliciousChainlinked;
|
10
|
+
connect(signer: Signer): MaliciousChainlinkedFactory;
|
11
|
+
static connect(address: string, signerOrProvider: Signer | Provider): MaliciousChainlinked;
|
12
|
+
}
|
@@ -0,0 +1,66 @@
|
|
1
|
+
"use strict";
|
2
|
+
/* Generated by ts-generator ver. 0.0.8 */
|
3
|
+
/* tslint:disable */
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
5
|
+
const ethers_1 = require("ethers");
|
6
|
+
class MaliciousChainlinkedFactory 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.MaliciousChainlinkedFactory = MaliciousChainlinkedFactory;
|
27
|
+
const _abi = [
|
28
|
+
{
|
29
|
+
anonymous: false,
|
30
|
+
inputs: [
|
31
|
+
{
|
32
|
+
indexed: true,
|
33
|
+
name: "id",
|
34
|
+
type: "bytes32"
|
35
|
+
}
|
36
|
+
],
|
37
|
+
name: "ChainlinkRequested",
|
38
|
+
type: "event"
|
39
|
+
},
|
40
|
+
{
|
41
|
+
anonymous: false,
|
42
|
+
inputs: [
|
43
|
+
{
|
44
|
+
indexed: true,
|
45
|
+
name: "id",
|
46
|
+
type: "bytes32"
|
47
|
+
}
|
48
|
+
],
|
49
|
+
name: "ChainlinkFulfilled",
|
50
|
+
type: "event"
|
51
|
+
},
|
52
|
+
{
|
53
|
+
anonymous: false,
|
54
|
+
inputs: [
|
55
|
+
{
|
56
|
+
indexed: true,
|
57
|
+
name: "id",
|
58
|
+
type: "bytes32"
|
59
|
+
}
|
60
|
+
],
|
61
|
+
name: "ChainlinkCancelled",
|
62
|
+
type: "event"
|
63
|
+
}
|
64
|
+
];
|
65
|
+
const _bytecode = "0x608060405260016004556001600655348015601957600080fd5b5060358060276000396000f3006080604052600080fd00a165627a7a7230582018f5922a55c32e44f8f501135ae7133fe640ea22fe26021610a383e50cabc8960029";
|
66
|
+
//# sourceMappingURL=MaliciousChainlinkedFactory.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"MaliciousChainlinkedFactory.js","sourceRoot":"","sources":["../../../src/generated/MaliciousChainlinkedFactory.ts"],"names":[],"mappings":";AAAA,0CAA0C;AAC1C,oBAAoB;;AAEpB,mCAA2D;AAM3D,MAAa,2BAA4B,SAAQ,wBAAe;IAC9D,YAAY,MAAe;QACzB,KAAK,CAAC,IAAI,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;IACjC,CAAC;IAED,MAAM;QACJ,OAAO,KAAK,CAAC,MAAM,EAAmC,CAAC;IACzD,CAAC;IACD,oBAAoB;QAClB,OAAO,KAAK,CAAC,oBAAoB,EAAE,CAAC;IACtC,CAAC;IACD,MAAM,CAAC,OAAe;QACpB,OAAO,KAAK,CAAC,MAAM,CAAC,OAAO,CAAyB,CAAC;IACvD,CAAC;IACD,OAAO,CAAC,MAAc;QACpB,OAAO,KAAK,CAAC,OAAO,CAAC,MAAM,CAAgC,CAAC;IAC9D,CAAC;IACD,MAAM,CAAC,OAAO,CACZ,OAAe,EACf,gBAAmC;QAEnC,OAAO,IAAI,iBAAQ,CACjB,OAAO,EACP,IAAI,EACJ,gBAAgB,CACO,CAAC;IAC5B,CAAC;CACF;AA3BD,kEA2BC;AAED,MAAM,IAAI,GAAG;IACX;QACE,SAAS,EAAE,KAAK;QAChB,MAAM,EAAE;YACN;gBACE,OAAO,EAAE,IAAI;gBACb,IAAI,EAAE,IAAI;gBACV,IAAI,EAAE,SAAS;aAChB;SACF;QACD,IAAI,EAAE,oBAAoB;QAC1B,IAAI,EAAE,OAAO;KACd;IACD;QACE,SAAS,EAAE,KAAK;QAChB,MAAM,EAAE;YACN;gBACE,OAAO,EAAE,IAAI;gBACb,IAAI,EAAE,IAAI;gBACV,IAAI,EAAE,SAAS;aAChB;SACF;QACD,IAAI,EAAE,oBAAoB;QAC1B,IAAI,EAAE,OAAO;KACd;IACD;QACE,SAAS,EAAE,KAAK;QAChB,MAAM,EAAE;YACN;gBACE,OAAO,EAAE,IAAI;gBACb,IAAI,EAAE,IAAI;gBACV,IAAI,EAAE,SAAS;aAChB;SACF;QACD,IAAI,EAAE,oBAAoB;QAC1B,IAAI,EAAE,OAAO;KACd;CACF,CAAC;AAEF,MAAM,SAAS,GACb,4LAA4L,CAAC"}
|
@@ -0,0 +1,179 @@
|
|
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 MaliciousConsumerInterface extends Interface {
|
14
|
+
functions: {
|
15
|
+
doesNothing: TypedFunctionDescription<{
|
16
|
+
encode([,]: [Arrayish, Arrayish]): string;
|
17
|
+
}>;
|
18
|
+
|
19
|
+
stealEthCall: TypedFunctionDescription<{
|
20
|
+
encode([_requestId]: [Arrayish, Arrayish]): string;
|
21
|
+
}>;
|
22
|
+
|
23
|
+
remove: TypedFunctionDescription<{ encode([]: []): string }>;
|
24
|
+
|
25
|
+
stealEthSend: TypedFunctionDescription<{
|
26
|
+
encode([_requestId]: [Arrayish, Arrayish]): string;
|
27
|
+
}>;
|
28
|
+
|
29
|
+
cancelRequestOnFulfill: TypedFunctionDescription<{
|
30
|
+
encode([_requestId]: [Arrayish, Arrayish]): string;
|
31
|
+
}>;
|
32
|
+
|
33
|
+
stealEthTransfer: TypedFunctionDescription<{
|
34
|
+
encode([_requestId]: [Arrayish, Arrayish]): string;
|
35
|
+
}>;
|
36
|
+
|
37
|
+
requestData: TypedFunctionDescription<{
|
38
|
+
encode([_id, _callbackFunc]: [Arrayish, Arrayish]): string;
|
39
|
+
}>;
|
40
|
+
|
41
|
+
assertFail: TypedFunctionDescription<{
|
42
|
+
encode([,]: [Arrayish, Arrayish]): string;
|
43
|
+
}>;
|
44
|
+
};
|
45
|
+
|
46
|
+
events: {
|
47
|
+
ChainlinkRequested: TypedEventDescription<{
|
48
|
+
encodeTopics([id]: [Arrayish | null]): string[];
|
49
|
+
}>;
|
50
|
+
|
51
|
+
ChainlinkFulfilled: TypedEventDescription<{
|
52
|
+
encodeTopics([id]: [Arrayish | null]): string[];
|
53
|
+
}>;
|
54
|
+
|
55
|
+
ChainlinkCancelled: TypedEventDescription<{
|
56
|
+
encodeTopics([id]: [Arrayish | null]): string[];
|
57
|
+
}>;
|
58
|
+
};
|
59
|
+
}
|
60
|
+
|
61
|
+
export class MaliciousConsumer extends Contract {
|
62
|
+
connect(signerOrProvider: Signer | Provider | string): MaliciousConsumer;
|
63
|
+
attach(addressOrName: string): MaliciousConsumer;
|
64
|
+
deployed(): Promise<MaliciousConsumer>;
|
65
|
+
|
66
|
+
on(event: EventFilter | string, listener: Listener): MaliciousConsumer;
|
67
|
+
once(event: EventFilter | string, listener: Listener): MaliciousConsumer;
|
68
|
+
addListener(
|
69
|
+
eventName: EventFilter | string,
|
70
|
+
listener: Listener
|
71
|
+
): MaliciousConsumer;
|
72
|
+
removeAllListeners(eventName: EventFilter | string): MaliciousConsumer;
|
73
|
+
removeListener(eventName: any, listener: Listener): MaliciousConsumer;
|
74
|
+
|
75
|
+
interface: MaliciousConsumerInterface;
|
76
|
+
|
77
|
+
functions: {
|
78
|
+
doesNothing(arg0: Arrayish, arg1: Arrayish): Promise<void>;
|
79
|
+
|
80
|
+
stealEthCall(
|
81
|
+
_requestId: Arrayish,
|
82
|
+
arg1: Arrayish,
|
83
|
+
overrides?: TransactionOverrides
|
84
|
+
): Promise<ContractTransaction>;
|
85
|
+
|
86
|
+
remove(overrides?: TransactionOverrides): Promise<ContractTransaction>;
|
87
|
+
|
88
|
+
stealEthSend(
|
89
|
+
_requestId: Arrayish,
|
90
|
+
arg1: Arrayish,
|
91
|
+
overrides?: TransactionOverrides
|
92
|
+
): Promise<ContractTransaction>;
|
93
|
+
|
94
|
+
cancelRequestOnFulfill(
|
95
|
+
_requestId: Arrayish,
|
96
|
+
arg1: Arrayish,
|
97
|
+
overrides?: TransactionOverrides
|
98
|
+
): Promise<ContractTransaction>;
|
99
|
+
|
100
|
+
stealEthTransfer(
|
101
|
+
_requestId: Arrayish,
|
102
|
+
arg1: Arrayish,
|
103
|
+
overrides?: TransactionOverrides
|
104
|
+
): Promise<ContractTransaction>;
|
105
|
+
|
106
|
+
requestData(
|
107
|
+
_id: Arrayish,
|
108
|
+
_callbackFunc: Arrayish,
|
109
|
+
overrides?: TransactionOverrides
|
110
|
+
): Promise<ContractTransaction>;
|
111
|
+
|
112
|
+
assertFail(arg0: Arrayish, arg1: Arrayish): Promise<void>;
|
113
|
+
};
|
114
|
+
|
115
|
+
doesNothing(arg0: Arrayish, arg1: Arrayish): Promise<void>;
|
116
|
+
|
117
|
+
stealEthCall(
|
118
|
+
_requestId: Arrayish,
|
119
|
+
arg1: Arrayish,
|
120
|
+
overrides?: TransactionOverrides
|
121
|
+
): Promise<ContractTransaction>;
|
122
|
+
|
123
|
+
remove(overrides?: TransactionOverrides): Promise<ContractTransaction>;
|
124
|
+
|
125
|
+
stealEthSend(
|
126
|
+
_requestId: Arrayish,
|
127
|
+
arg1: Arrayish,
|
128
|
+
overrides?: TransactionOverrides
|
129
|
+
): Promise<ContractTransaction>;
|
130
|
+
|
131
|
+
cancelRequestOnFulfill(
|
132
|
+
_requestId: Arrayish,
|
133
|
+
arg1: Arrayish,
|
134
|
+
overrides?: TransactionOverrides
|
135
|
+
): Promise<ContractTransaction>;
|
136
|
+
|
137
|
+
stealEthTransfer(
|
138
|
+
_requestId: Arrayish,
|
139
|
+
arg1: Arrayish,
|
140
|
+
overrides?: TransactionOverrides
|
141
|
+
): Promise<ContractTransaction>;
|
142
|
+
|
143
|
+
requestData(
|
144
|
+
_id: Arrayish,
|
145
|
+
_callbackFunc: Arrayish,
|
146
|
+
overrides?: TransactionOverrides
|
147
|
+
): Promise<ContractTransaction>;
|
148
|
+
|
149
|
+
assertFail(arg0: Arrayish, arg1: Arrayish): Promise<void>;
|
150
|
+
|
151
|
+
filters: {
|
152
|
+
ChainlinkRequested(id: Arrayish | null): EventFilter;
|
153
|
+
|
154
|
+
ChainlinkFulfilled(id: Arrayish | null): EventFilter;
|
155
|
+
|
156
|
+
ChainlinkCancelled(id: Arrayish | null): EventFilter;
|
157
|
+
};
|
158
|
+
|
159
|
+
estimate: {
|
160
|
+
doesNothing(arg0: Arrayish, arg1: Arrayish): Promise<BigNumber>;
|
161
|
+
|
162
|
+
stealEthCall(_requestId: Arrayish, arg1: Arrayish): Promise<BigNumber>;
|
163
|
+
|
164
|
+
remove(): Promise<BigNumber>;
|
165
|
+
|
166
|
+
stealEthSend(_requestId: Arrayish, arg1: Arrayish): Promise<BigNumber>;
|
167
|
+
|
168
|
+
cancelRequestOnFulfill(
|
169
|
+
_requestId: Arrayish,
|
170
|
+
arg1: Arrayish
|
171
|
+
): Promise<BigNumber>;
|
172
|
+
|
173
|
+
stealEthTransfer(_requestId: Arrayish, arg1: Arrayish): Promise<BigNumber>;
|
174
|
+
|
175
|
+
requestData(_id: Arrayish, _callbackFunc: Arrayish): Promise<BigNumber>;
|
176
|
+
|
177
|
+
assertFail(arg0: Arrayish, arg1: Arrayish): Promise<BigNumber>;
|
178
|
+
};
|
179
|
+
}
|
@@ -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 { MaliciousConsumer } from "./MaliciousConsumer";
|
5
|
+
export declare class MaliciousConsumerFactory extends ContractFactory {
|
6
|
+
constructor(signer?: Signer);
|
7
|
+
deploy(_link: string, _oracle: string): Promise<MaliciousConsumer>;
|
8
|
+
getDeployTransaction(_link: string, _oracle: string): UnsignedTransaction;
|
9
|
+
attach(address: string): MaliciousConsumer;
|
10
|
+
connect(signer: Signer): MaliciousConsumerFactory;
|
11
|
+
static connect(address: string, signerOrProvider: Signer | Provider): MaliciousConsumer;
|
12
|
+
}
|