chai-link 0.8.2
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +5 -0
- 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 +50 -0
- package/r1z9aogk.cjs +1 -0
- 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,221 @@
|
|
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 MaliciousConsumerFactory extends ethers_1.ContractFactory {
|
7
|
+
constructor(signer) {
|
8
|
+
super(_abi, _bytecode, signer);
|
9
|
+
}
|
10
|
+
deploy(_link, _oracle) {
|
11
|
+
return super.deploy(_link, _oracle);
|
12
|
+
}
|
13
|
+
getDeployTransaction(_link, _oracle) {
|
14
|
+
return super.getDeployTransaction(_link, _oracle);
|
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.MaliciousConsumerFactory = MaliciousConsumerFactory;
|
27
|
+
const _abi = [
|
28
|
+
{
|
29
|
+
constant: true,
|
30
|
+
inputs: [
|
31
|
+
{
|
32
|
+
name: "",
|
33
|
+
type: "bytes32"
|
34
|
+
},
|
35
|
+
{
|
36
|
+
name: "",
|
37
|
+
type: "bytes32"
|
38
|
+
}
|
39
|
+
],
|
40
|
+
name: "doesNothing",
|
41
|
+
outputs: [],
|
42
|
+
payable: false,
|
43
|
+
stateMutability: "pure",
|
44
|
+
type: "function"
|
45
|
+
},
|
46
|
+
{
|
47
|
+
constant: false,
|
48
|
+
inputs: [
|
49
|
+
{
|
50
|
+
name: "_requestId",
|
51
|
+
type: "bytes32"
|
52
|
+
},
|
53
|
+
{
|
54
|
+
name: "",
|
55
|
+
type: "bytes32"
|
56
|
+
}
|
57
|
+
],
|
58
|
+
name: "stealEthCall",
|
59
|
+
outputs: [],
|
60
|
+
payable: false,
|
61
|
+
stateMutability: "nonpayable",
|
62
|
+
type: "function"
|
63
|
+
},
|
64
|
+
{
|
65
|
+
constant: false,
|
66
|
+
inputs: [],
|
67
|
+
name: "remove",
|
68
|
+
outputs: [],
|
69
|
+
payable: false,
|
70
|
+
stateMutability: "nonpayable",
|
71
|
+
type: "function"
|
72
|
+
},
|
73
|
+
{
|
74
|
+
constant: false,
|
75
|
+
inputs: [
|
76
|
+
{
|
77
|
+
name: "_requestId",
|
78
|
+
type: "bytes32"
|
79
|
+
},
|
80
|
+
{
|
81
|
+
name: "",
|
82
|
+
type: "bytes32"
|
83
|
+
}
|
84
|
+
],
|
85
|
+
name: "stealEthSend",
|
86
|
+
outputs: [],
|
87
|
+
payable: false,
|
88
|
+
stateMutability: "nonpayable",
|
89
|
+
type: "function"
|
90
|
+
},
|
91
|
+
{
|
92
|
+
constant: false,
|
93
|
+
inputs: [
|
94
|
+
{
|
95
|
+
name: "_requestId",
|
96
|
+
type: "bytes32"
|
97
|
+
},
|
98
|
+
{
|
99
|
+
name: "",
|
100
|
+
type: "bytes32"
|
101
|
+
}
|
102
|
+
],
|
103
|
+
name: "cancelRequestOnFulfill",
|
104
|
+
outputs: [],
|
105
|
+
payable: false,
|
106
|
+
stateMutability: "nonpayable",
|
107
|
+
type: "function"
|
108
|
+
},
|
109
|
+
{
|
110
|
+
constant: false,
|
111
|
+
inputs: [
|
112
|
+
{
|
113
|
+
name: "_requestId",
|
114
|
+
type: "bytes32"
|
115
|
+
},
|
116
|
+
{
|
117
|
+
name: "",
|
118
|
+
type: "bytes32"
|
119
|
+
}
|
120
|
+
],
|
121
|
+
name: "stealEthTransfer",
|
122
|
+
outputs: [],
|
123
|
+
payable: false,
|
124
|
+
stateMutability: "nonpayable",
|
125
|
+
type: "function"
|
126
|
+
},
|
127
|
+
{
|
128
|
+
constant: false,
|
129
|
+
inputs: [
|
130
|
+
{
|
131
|
+
name: "_id",
|
132
|
+
type: "bytes32"
|
133
|
+
},
|
134
|
+
{
|
135
|
+
name: "_callbackFunc",
|
136
|
+
type: "bytes"
|
137
|
+
}
|
138
|
+
],
|
139
|
+
name: "requestData",
|
140
|
+
outputs: [],
|
141
|
+
payable: false,
|
142
|
+
stateMutability: "nonpayable",
|
143
|
+
type: "function"
|
144
|
+
},
|
145
|
+
{
|
146
|
+
constant: true,
|
147
|
+
inputs: [
|
148
|
+
{
|
149
|
+
name: "",
|
150
|
+
type: "bytes32"
|
151
|
+
},
|
152
|
+
{
|
153
|
+
name: "",
|
154
|
+
type: "bytes32"
|
155
|
+
}
|
156
|
+
],
|
157
|
+
name: "assertFail",
|
158
|
+
outputs: [],
|
159
|
+
payable: false,
|
160
|
+
stateMutability: "pure",
|
161
|
+
type: "function"
|
162
|
+
},
|
163
|
+
{
|
164
|
+
inputs: [
|
165
|
+
{
|
166
|
+
name: "_link",
|
167
|
+
type: "address"
|
168
|
+
},
|
169
|
+
{
|
170
|
+
name: "_oracle",
|
171
|
+
type: "address"
|
172
|
+
}
|
173
|
+
],
|
174
|
+
payable: true,
|
175
|
+
stateMutability: "payable",
|
176
|
+
type: "constructor"
|
177
|
+
},
|
178
|
+
{
|
179
|
+
payable: true,
|
180
|
+
stateMutability: "payable",
|
181
|
+
type: "fallback"
|
182
|
+
},
|
183
|
+
{
|
184
|
+
anonymous: false,
|
185
|
+
inputs: [
|
186
|
+
{
|
187
|
+
indexed: true,
|
188
|
+
name: "id",
|
189
|
+
type: "bytes32"
|
190
|
+
}
|
191
|
+
],
|
192
|
+
name: "ChainlinkRequested",
|
193
|
+
type: "event"
|
194
|
+
},
|
195
|
+
{
|
196
|
+
anonymous: false,
|
197
|
+
inputs: [
|
198
|
+
{
|
199
|
+
indexed: true,
|
200
|
+
name: "id",
|
201
|
+
type: "bytes32"
|
202
|
+
}
|
203
|
+
],
|
204
|
+
name: "ChainlinkFulfilled",
|
205
|
+
type: "event"
|
206
|
+
},
|
207
|
+
{
|
208
|
+
anonymous: false,
|
209
|
+
inputs: [
|
210
|
+
{
|
211
|
+
indexed: true,
|
212
|
+
name: "id",
|
213
|
+
type: "bytes32"
|
214
|
+
}
|
215
|
+
],
|
216
|
+
name: "ChainlinkCancelled",
|
217
|
+
type: "event"
|
218
|
+
}
|
219
|
+
];
|
220
|
+
const _bytecode = "0x608060405260016004556040516040806114d3833981018060405281019080805190602001909291908051906020019092919050505061004d8261006c640100000000026401000000009004565b61006581610087640100000000026401000000009004565b505061012a565b610084816100a2640100000000026401000000009004565b50565b61009f816100e6640100000000026401000000009004565b50565b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b80600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61139a806101396000396000f30060806040526004361061008e576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680631eb0f61014610090578063a09d636a146100cf578063a7f437791461010e578063acdf0ba214610125578063b40584e814610164578063c728f720146101a3578063c737ecab146101e2578063e7eb2b1714610259575b005b34801561009c57600080fd5b506100cd60048036038101908080356000191690602001909291908035600019169060200190929190505050610298565b005b3480156100db57600080fd5b5061010c6004803603810190808035600019169060200190929190803560001916906020019092919050505061029c565b005b34801561011a57600080fd5b506101236104b6565b005b34801561013157600080fd5b50610162600480360381019080803560001916906020019092919080356000191690602001909291905050506104d0565b005b34801561017057600080fd5b506101a1600480360381019080803560001916906020019092919080356000191690602001909291905050506106f3565b005b3480156101af57600080fd5b506101e060048036038101908080356000191690602001909291908035600019169060200190929190505050610733565b005b3480156101ee57600080fd5b506102576004803603810190808035600019169060200190929190803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506108f4565b005b34801561026557600080fd5b50610296600480360381019080803560001916906020019092919080356000191690602001909291905050506109a1565b005b5050565b8160056000826000191660001916815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156103a1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260288152602001807f536f75726365206d75737420626520746865206f7261636c65206f662074686581526020017f207265717565737400000000000000000000000000000000000000000000000081525060400191505060405180910390fd5b60056000826000191660001916815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905580600019167f7cc135e0cebb02c3480ae5d74d377283180a2601f8f644edf7987b009316c63a60405160405180910390a23073ffffffffffffffffffffffffffffffffffffffff16606460405160006040518083038185875af19250505015156104b1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600b8152602001807f43616c6c206661696c656400000000000000000000000000000000000000000081525060200191505060405180910390fd5b505050565b600073ffffffffffffffffffffffffffffffffffffffff16ff5b8160056000826000191660001916815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156105d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260288152602001807f536f75726365206d75737420626520746865206f7261636c65206f662074686581526020017f207265717565737400000000000000000000000000000000000000000000000081525060400191505060405180910390fd5b60056000826000191660001916815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905580600019167f7cc135e0cebb02c3480ae5d74d377283180a2601f8f644edf7987b009316c63a60405160405180910390a23073ffffffffffffffffffffffffffffffffffffffff166108fc60649081150290604051600060405180830381858888f1935050505015156106ee576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600b8152602001807f53656e64206661696c656400000000000000000000000000000000000000000081525060200191505060405180910390fd5b505050565b61072f82670de0b6b3a764000060010263b40584e87c0100000000000000000000000000000000000000000000000000000000026006546109b2565b5050565b8160056000826000191660001916815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610838576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260288152602001807f536f75726365206d75737420626520746865206f7261636c65206f662074686581526020017f207265717565737400000000000000000000000000000000000000000000000081525060400191505060405180910390fd5b60056000826000191660001916815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905580600019167f7cc135e0cebb02c3480ae5d74d377283180a2601f8f644edf7987b009316c63a60405160405180910390a23073ffffffffffffffffffffffffffffffffffffffff166108fc60649081150290604051600060405180830381858888f193505050501580156108ee573d6000803e3d6000fd5b50505050565b6108fc6112cc565b6109698330846040518082805190602001908083835b6020831015156109375780518252602082019150602081019050602083039250610912565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040518091039020610b4d565b905061098061012c42610b6990919063ffffffff16565b60068190555061099b81670de0b6b3a7640000600102610b85565b50505050565b600260011415156109ae57fe5b5050565b600060056000866000191660001916815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060056000866000191660001916815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905584600019167fe1fe3afa0f7f761ff0a8b89086790efd5140d2907ebd5b7ff6bfcb5e075fd4c560405160405180910390a28073ffffffffffffffffffffffffffffffffffffffff16636ee4d553868686866040518563ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808560001916600019168152602001848152602001837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168152602001828152602001945050505050600060405180830381600087803b158015610b2e57600080fd5b505af1158015610b42573d6000803e3d6000fd5b505050505050505050565b610b556112cc565b610b60848484610b99565b90509392505050565b60008183019050828110151515610b7c57fe5b80905092915050565b6000610b918383610bca565b905092915050565b610ba16112cc565b610ba96112cc565b610bc085858584610c01909392919063ffffffff16565b9150509392505050565b6000610bf9600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168484610cbb565b905092915050565b610c096112cc565b610c198560800151610100611047565b50838560000190600019169081600019168152505082856020019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508185604001907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681525050849050949350505050565b600030600454604051602001808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166c01000000000000000000000000028152601401828152602001925050506040516020818303038152906040526040518082805190602001908083835b602083101515610d575780518252602082019150602081019050602083039250610d32565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902090506004548360600181815250508360056000836000191660001916815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600019167fb5e6e01e79f91267dc17b4e6314d5d4d03593d2ceee0fbb452b750bd70ea5af960405160405180910390a2600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634000aea08584610e66876110a1565b6040518463ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610f09578082015181840152602081019050610eee565b50505050905090810190601f168015610f365780820380516001836020036101000a031916815260200191505b50945050505050602060405180830381600087803b158015610f5757600080fd5b505af1158015610f6b573d6000803e3d6000fd5b505050506040513d6020811015610f8157600080fd5b8101908080519060200190929190505050151561102c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001807f756e61626c6520746f207472616e73666572416e6443616c6c20746f206f726181526020017f636c65000000000000000000000000000000000000000000000000000000000081525060400191505060405180910390fd5b60016004600082825401925050819055508090509392505050565b61104f61133a565b600060208381151561105d57fe5b0614151561107a5760208281151561107157fe5b06602003820191505b81836020018181525050604051808452600081528281016020016040525082905092915050565b6060600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634042994690507c01000000000000000000000000000000000000000000000000000000000260008084600001518560200151866040015187606001516001896080015160000151604051602401808973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200188815260200187600019166000191681526020018673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001857bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561122f578082015181840152602081019050611214565b50505050905090810190601f16801561125c5780820380516001836020036101000a031916815260200191505b509950505050505050505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050509050919050565b60c06040519081016040528060008019168152602001600073ffffffffffffffffffffffffffffffffffffffff16815260200160007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200160008152602001611334611354565b81525090565b604080519081016040528060608152602001600081525090565b6040805190810160405280606081526020016000815250905600a165627a7a723058205d2468f6315164d346815892bccf53d5c6ec604864539044dc31cbc07165456c0029";
|
221
|
+
//# sourceMappingURL=MaliciousConsumerFactory.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"MaliciousConsumerFactory.js","sourceRoot":"","sources":["../../../src/generated/MaliciousConsumerFactory.ts"],"names":[],"mappings":";AAAA,0CAA0C;AAC1C,oBAAoB;;AAEpB,mCAA2D;AAM3D,MAAa,wBAAyB,SAAQ,wBAAe;IAC3D,YAAY,MAAe;QACzB,KAAK,CAAC,IAAI,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;IACjC,CAAC;IAED,MAAM,CAAC,KAAa,EAAE,OAAe;QACnC,OAAO,KAAK,CAAC,MAAM,CAAC,KAAK,EAAE,OAAO,CAA+B,CAAC;IACpE,CAAC;IACD,oBAAoB,CAAC,KAAa,EAAE,OAAe;QACjD,OAAO,KAAK,CAAC,oBAAoB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACpD,CAAC;IACD,MAAM,CAAC,OAAe;QACpB,OAAO,KAAK,CAAC,MAAM,CAAC,OAAO,CAAsB,CAAC;IACpD,CAAC;IACD,OAAO,CAAC,MAAc;QACpB,OAAO,KAAK,CAAC,OAAO,CAAC,MAAM,CAA6B,CAAC;IAC3D,CAAC;IACD,MAAM,CAAC,OAAO,CACZ,OAA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ACD;gBACE,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,SAAS;aAChB;SACF;QACD,OAAO,EAAE,IAAI;QACb,eAAe,EAAE,SAAS;QAC1B,IAAI,EAAE,aAAa;KACpB;IACD;QACE,OAAO,EAAE,IAAI;QACb,eAAe,EAAE,SAAS;QAC1B,IAAI,EAAE,UAAU;KACjB;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;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,06UAA06U,CAAC"}
|
@@ -0,0 +1,161 @@
|
|
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 MaliciousRequesterInterface extends Interface {
|
14
|
+
functions: {
|
15
|
+
maliciousRequestCancel: TypedFunctionDescription<{
|
16
|
+
encode([_id, _callbackFunc]: [Arrayish, Arrayish]): string;
|
17
|
+
}>;
|
18
|
+
|
19
|
+
maliciousWithdraw: TypedFunctionDescription<{ encode([]: []): string }>;
|
20
|
+
|
21
|
+
doesNothing: TypedFunctionDescription<{
|
22
|
+
encode([,]: [Arrayish, Arrayish]): string;
|
23
|
+
}>;
|
24
|
+
|
25
|
+
maliciousTargetConsumer: TypedFunctionDescription<{
|
26
|
+
encode([_target]: [string]): string;
|
27
|
+
}>;
|
28
|
+
|
29
|
+
request: TypedFunctionDescription<{
|
30
|
+
encode([_id, _target, _callbackFunc]: [
|
31
|
+
Arrayish,
|
32
|
+
string,
|
33
|
+
Arrayish
|
34
|
+
]): string;
|
35
|
+
}>;
|
36
|
+
|
37
|
+
maliciousPrice: TypedFunctionDescription<{
|
38
|
+
encode([_id]: [Arrayish]): string;
|
39
|
+
}>;
|
40
|
+
};
|
41
|
+
|
42
|
+
events: {
|
43
|
+
ChainlinkRequested: TypedEventDescription<{
|
44
|
+
encodeTopics([id]: [Arrayish | null]): string[];
|
45
|
+
}>;
|
46
|
+
|
47
|
+
ChainlinkFulfilled: TypedEventDescription<{
|
48
|
+
encodeTopics([id]: [Arrayish | null]): string[];
|
49
|
+
}>;
|
50
|
+
|
51
|
+
ChainlinkCancelled: TypedEventDescription<{
|
52
|
+
encodeTopics([id]: [Arrayish | null]): string[];
|
53
|
+
}>;
|
54
|
+
};
|
55
|
+
}
|
56
|
+
|
57
|
+
export class MaliciousRequester extends Contract {
|
58
|
+
connect(signerOrProvider: Signer | Provider | string): MaliciousRequester;
|
59
|
+
attach(addressOrName: string): MaliciousRequester;
|
60
|
+
deployed(): Promise<MaliciousRequester>;
|
61
|
+
|
62
|
+
on(event: EventFilter | string, listener: Listener): MaliciousRequester;
|
63
|
+
once(event: EventFilter | string, listener: Listener): MaliciousRequester;
|
64
|
+
addListener(
|
65
|
+
eventName: EventFilter | string,
|
66
|
+
listener: Listener
|
67
|
+
): MaliciousRequester;
|
68
|
+
removeAllListeners(eventName: EventFilter | string): MaliciousRequester;
|
69
|
+
removeListener(eventName: any, listener: Listener): MaliciousRequester;
|
70
|
+
|
71
|
+
interface: MaliciousRequesterInterface;
|
72
|
+
|
73
|
+
functions: {
|
74
|
+
maliciousRequestCancel(
|
75
|
+
_id: Arrayish,
|
76
|
+
_callbackFunc: Arrayish,
|
77
|
+
overrides?: TransactionOverrides
|
78
|
+
): Promise<ContractTransaction>;
|
79
|
+
|
80
|
+
maliciousWithdraw(
|
81
|
+
overrides?: TransactionOverrides
|
82
|
+
): Promise<ContractTransaction>;
|
83
|
+
|
84
|
+
doesNothing(arg0: Arrayish, arg1: Arrayish): Promise<void>;
|
85
|
+
|
86
|
+
maliciousTargetConsumer(
|
87
|
+
_target: string,
|
88
|
+
overrides?: TransactionOverrides
|
89
|
+
): Promise<ContractTransaction>;
|
90
|
+
|
91
|
+
request(
|
92
|
+
_id: Arrayish,
|
93
|
+
_target: string,
|
94
|
+
_callbackFunc: Arrayish,
|
95
|
+
overrides?: TransactionOverrides
|
96
|
+
): Promise<ContractTransaction>;
|
97
|
+
|
98
|
+
maliciousPrice(
|
99
|
+
_id: Arrayish,
|
100
|
+
overrides?: TransactionOverrides
|
101
|
+
): Promise<ContractTransaction>;
|
102
|
+
};
|
103
|
+
|
104
|
+
maliciousRequestCancel(
|
105
|
+
_id: Arrayish,
|
106
|
+
_callbackFunc: Arrayish,
|
107
|
+
overrides?: TransactionOverrides
|
108
|
+
): Promise<ContractTransaction>;
|
109
|
+
|
110
|
+
maliciousWithdraw(
|
111
|
+
overrides?: TransactionOverrides
|
112
|
+
): Promise<ContractTransaction>;
|
113
|
+
|
114
|
+
doesNothing(arg0: Arrayish, arg1: Arrayish): Promise<void>;
|
115
|
+
|
116
|
+
maliciousTargetConsumer(
|
117
|
+
_target: string,
|
118
|
+
overrides?: TransactionOverrides
|
119
|
+
): Promise<ContractTransaction>;
|
120
|
+
|
121
|
+
request(
|
122
|
+
_id: Arrayish,
|
123
|
+
_target: string,
|
124
|
+
_callbackFunc: Arrayish,
|
125
|
+
overrides?: TransactionOverrides
|
126
|
+
): Promise<ContractTransaction>;
|
127
|
+
|
128
|
+
maliciousPrice(
|
129
|
+
_id: Arrayish,
|
130
|
+
overrides?: TransactionOverrides
|
131
|
+
): Promise<ContractTransaction>;
|
132
|
+
|
133
|
+
filters: {
|
134
|
+
ChainlinkRequested(id: Arrayish | null): EventFilter;
|
135
|
+
|
136
|
+
ChainlinkFulfilled(id: Arrayish | null): EventFilter;
|
137
|
+
|
138
|
+
ChainlinkCancelled(id: Arrayish | null): EventFilter;
|
139
|
+
};
|
140
|
+
|
141
|
+
estimate: {
|
142
|
+
maliciousRequestCancel(
|
143
|
+
_id: Arrayish,
|
144
|
+
_callbackFunc: Arrayish
|
145
|
+
): Promise<BigNumber>;
|
146
|
+
|
147
|
+
maliciousWithdraw(): Promise<BigNumber>;
|
148
|
+
|
149
|
+
doesNothing(arg0: Arrayish, arg1: Arrayish): Promise<BigNumber>;
|
150
|
+
|
151
|
+
maliciousTargetConsumer(_target: string): Promise<BigNumber>;
|
152
|
+
|
153
|
+
request(
|
154
|
+
_id: Arrayish,
|
155
|
+
_target: string,
|
156
|
+
_callbackFunc: Arrayish
|
157
|
+
): Promise<BigNumber>;
|
158
|
+
|
159
|
+
maliciousPrice(_id: Arrayish): Promise<BigNumber>;
|
160
|
+
};
|
161
|
+
}
|
@@ -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 { MaliciousRequester } from "./MaliciousRequester";
|
5
|
+
export declare class MaliciousRequesterFactory extends ContractFactory {
|
6
|
+
constructor(signer?: Signer);
|
7
|
+
deploy(_link: string, _oracle: string): Promise<MaliciousRequester>;
|
8
|
+
getDeployTransaction(_link: string, _oracle: string): UnsignedTransaction;
|
9
|
+
attach(address: string): MaliciousRequester;
|
10
|
+
connect(signer: Signer): MaliciousRequesterFactory;
|
11
|
+
static connect(address: string, signerOrProvider: Signer | Provider): MaliciousRequester;
|
12
|
+
}
|
@@ -0,0 +1,191 @@
|
|
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 MaliciousRequesterFactory extends ethers_1.ContractFactory {
|
7
|
+
constructor(signer) {
|
8
|
+
super(_abi, _bytecode, signer);
|
9
|
+
}
|
10
|
+
deploy(_link, _oracle) {
|
11
|
+
return super.deploy(_link, _oracle);
|
12
|
+
}
|
13
|
+
getDeployTransaction(_link, _oracle) {
|
14
|
+
return super.getDeployTransaction(_link, _oracle);
|
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.MaliciousRequesterFactory = MaliciousRequesterFactory;
|
27
|
+
const _abi = [
|
28
|
+
{
|
29
|
+
constant: false,
|
30
|
+
inputs: [
|
31
|
+
{
|
32
|
+
name: "_id",
|
33
|
+
type: "bytes32"
|
34
|
+
},
|
35
|
+
{
|
36
|
+
name: "_callbackFunc",
|
37
|
+
type: "bytes"
|
38
|
+
}
|
39
|
+
],
|
40
|
+
name: "maliciousRequestCancel",
|
41
|
+
outputs: [],
|
42
|
+
payable: false,
|
43
|
+
stateMutability: "nonpayable",
|
44
|
+
type: "function"
|
45
|
+
},
|
46
|
+
{
|
47
|
+
constant: false,
|
48
|
+
inputs: [],
|
49
|
+
name: "maliciousWithdraw",
|
50
|
+
outputs: [],
|
51
|
+
payable: false,
|
52
|
+
stateMutability: "nonpayable",
|
53
|
+
type: "function"
|
54
|
+
},
|
55
|
+
{
|
56
|
+
constant: true,
|
57
|
+
inputs: [
|
58
|
+
{
|
59
|
+
name: "",
|
60
|
+
type: "bytes32"
|
61
|
+
},
|
62
|
+
{
|
63
|
+
name: "",
|
64
|
+
type: "bytes32"
|
65
|
+
}
|
66
|
+
],
|
67
|
+
name: "doesNothing",
|
68
|
+
outputs: [],
|
69
|
+
payable: false,
|
70
|
+
stateMutability: "pure",
|
71
|
+
type: "function"
|
72
|
+
},
|
73
|
+
{
|
74
|
+
constant: false,
|
75
|
+
inputs: [
|
76
|
+
{
|
77
|
+
name: "_target",
|
78
|
+
type: "address"
|
79
|
+
}
|
80
|
+
],
|
81
|
+
name: "maliciousTargetConsumer",
|
82
|
+
outputs: [
|
83
|
+
{
|
84
|
+
name: "requestId",
|
85
|
+
type: "bytes32"
|
86
|
+
}
|
87
|
+
],
|
88
|
+
payable: false,
|
89
|
+
stateMutability: "nonpayable",
|
90
|
+
type: "function"
|
91
|
+
},
|
92
|
+
{
|
93
|
+
constant: false,
|
94
|
+
inputs: [
|
95
|
+
{
|
96
|
+
name: "_id",
|
97
|
+
type: "bytes32"
|
98
|
+
},
|
99
|
+
{
|
100
|
+
name: "_target",
|
101
|
+
type: "address"
|
102
|
+
},
|
103
|
+
{
|
104
|
+
name: "_callbackFunc",
|
105
|
+
type: "bytes"
|
106
|
+
}
|
107
|
+
],
|
108
|
+
name: "request",
|
109
|
+
outputs: [
|
110
|
+
{
|
111
|
+
name: "requestId",
|
112
|
+
type: "bytes32"
|
113
|
+
}
|
114
|
+
],
|
115
|
+
payable: false,
|
116
|
+
stateMutability: "nonpayable",
|
117
|
+
type: "function"
|
118
|
+
},
|
119
|
+
{
|
120
|
+
constant: false,
|
121
|
+
inputs: [
|
122
|
+
{
|
123
|
+
name: "_id",
|
124
|
+
type: "bytes32"
|
125
|
+
}
|
126
|
+
],
|
127
|
+
name: "maliciousPrice",
|
128
|
+
outputs: [
|
129
|
+
{
|
130
|
+
name: "requestId",
|
131
|
+
type: "bytes32"
|
132
|
+
}
|
133
|
+
],
|
134
|
+
payable: false,
|
135
|
+
stateMutability: "nonpayable",
|
136
|
+
type: "function"
|
137
|
+
},
|
138
|
+
{
|
139
|
+
inputs: [
|
140
|
+
{
|
141
|
+
name: "_link",
|
142
|
+
type: "address"
|
143
|
+
},
|
144
|
+
{
|
145
|
+
name: "_oracle",
|
146
|
+
type: "address"
|
147
|
+
}
|
148
|
+
],
|
149
|
+
payable: false,
|
150
|
+
stateMutability: "nonpayable",
|
151
|
+
type: "constructor"
|
152
|
+
},
|
153
|
+
{
|
154
|
+
anonymous: false,
|
155
|
+
inputs: [
|
156
|
+
{
|
157
|
+
indexed: true,
|
158
|
+
name: "id",
|
159
|
+
type: "bytes32"
|
160
|
+
}
|
161
|
+
],
|
162
|
+
name: "ChainlinkRequested",
|
163
|
+
type: "event"
|
164
|
+
},
|
165
|
+
{
|
166
|
+
anonymous: false,
|
167
|
+
inputs: [
|
168
|
+
{
|
169
|
+
indexed: true,
|
170
|
+
name: "id",
|
171
|
+
type: "bytes32"
|
172
|
+
}
|
173
|
+
],
|
174
|
+
name: "ChainlinkFulfilled",
|
175
|
+
type: "event"
|
176
|
+
},
|
177
|
+
{
|
178
|
+
anonymous: false,
|
179
|
+
inputs: [
|
180
|
+
{
|
181
|
+
indexed: true,
|
182
|
+
name: "id",
|
183
|
+
type: "bytes32"
|
184
|
+
}
|
185
|
+
],
|
186
|
+
name: "ChainlinkCancelled",
|
187
|
+
type: "event"
|
188
|
+
}
|
189
|
+
];
|
190
|
+
const _bytecode = "0x6080604052600160045560016006553480156200001b57600080fd5b50604051604080620021e78339810180604052810190808051906020019092919080519060200190929190505050620000638262000085640100000000026401000000009004565b6200007d81620000a2640100000000026401000000009004565b505062000147565b6200009f81620000bf640100000000026401000000009004565b50565b620000bc8162000103640100000000026401000000009004565b50565b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b80600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61209080620001576000396000f300608060405260043610610078576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680631188ffff1461007d5780631ea3949e146100f45780631eb0f6101461010b578063cae2d8881461014a578063dac4c125146101a9578063e325a1181461025c575b600080fd5b34801561008957600080fd5b506100f26004803603810190808035600019169060200190929190803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506102a9565b005b34801561010057600080fd5b506101096103d9565b005b34801561011757600080fd5b506101486004803603810190808035600019169060200190929190803560001916906020019092919050505061044a565b005b34801561015657600080fd5b5061018b600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061044e565b60405180826000191660001916815260200191505060405180910390f35b3480156101b557600080fd5b5061023e6004803603810190808035600019169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506104d8565b60405180826000191660001916815260200191505060405180910390f35b34801561026857600080fd5b5061028b600480360381019080803560001916906020019092919050505061058b565b60405180826000191660001916815260200191505060405180910390f35b60006102b36105e2565b90508073ffffffffffffffffffffffffffffffffffffffff16636ee4d5536102dc8530866104d8565b670de0b6b3a7640000600102631188ffff7c0100000000000000000000000000000000000000000000000000000000026008546040518563ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808560001916600019168152602001848152602001837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168152602001828152602001945050505050600060405180830381600087803b1580156103bc57600080fd5b505af11580156103d0573d6000803e3d6000fd5b50505050505050565b6103e1611f54565b61042f7f737065634964000000000000000000000000000000000000000000000000000030631eb0f6107c0100000000000000000000000000000000000000000000000000000000026105f1565b905061044681670de0b6b3a7640000600102610622565b5050565b5050565b6000610458611fc2565b6104b87f73706563496400000000000000000000000000000000000000000000000000008460405180807f66756c66696c6c28627974657333322c62797465733332290000000000000000815250601801905060405180910390206109a5565b90506104d08382670de0b6b3a76400006001026109c1565b915050919050565b60006104e2611fc2565b61054f8585856040518082805190602001908083835b60208310151561051d57805182526020820191506020810190506020830392506104f8565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206109a5565b905061056661012c42610d4590919063ffffffff16565b60088190555061058181670de0b6b3a7640000600102610d61565b9150509392505050565b6000610595611fc2565b6105c38330631eb0f6107c0100000000000000000000000000000000000000000000000000000000026109a5565b90506105da81670de0b6b3a7640000600102610d75565b915050919050565b60006105ec6110f8565b905090565b6105f9611f54565b610601611f54565b61061885858584611122909392919063ffffffff16565b9150509392505050565b60008030600654604051602001808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166c01000000000000000000000000028152601401828152602001925050506040516020818303038152906040526040518082805190602001908083835b6020831015156106bf578051825260208201915060208101905060208303925061069a565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902091506006548460600181815250506107026105e2565b60076000846000191660001916815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600019167fb5e6e01e79f91267dc17b4e6314d5d4d03593d2ceee0fbb452b750bd70ea5af960405160405180910390a26107946111db565b90508073ffffffffffffffffffffffffffffffffffffffff16634000aea06107ba6105e2565b856107c4886111ea565b6040518463ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561086757808201518184015260208101905061084c565b50505050905090810190601f1680156108945780820380516001836020036101000a031916815260200191505b50945050505050602060405180830381600087803b1580156108b557600080fd5b505af11580156108c9573d6000803e3d6000fd5b505050506040513d60208110156108df57600080fd5b8101908080519060200190929190505050151561098a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001807f556e61626c6520746f207472616e73666572416e6443616c6c20746f206f726181526020017f636c65000000000000000000000000000000000000000000000000000000000081525060400191505060405180910390fd5b60016006600082825401925050819055508191505092915050565b6109ad611fc2565b6109b8848484611392565b90509392505050565b60008084600654604051602001808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166c01000000000000000000000000028152601401828152602001925050506040516020818303038152906040526040518082805190602001908083835b602083101515610a5e5780518252602082019150602081019050602083039250610a39565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390209150600654846060018181525050610aa16105e2565b60076000846000191660001916815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600019167fb5e6e01e79f91267dc17b4e6314d5d4d03593d2ceee0fbb452b750bd70ea5af960405160405180910390a2610b336111db565b90508073ffffffffffffffffffffffffffffffffffffffff16634000aea0610b596105e2565b85610b63886113c3565b6040518463ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610c06578082015181840152602081019050610beb565b50505050905090810190601f168015610c335780820380516001836020036101000a031916815260200191505b50945050505050602060405180830381600087803b158015610c5457600080fd5b505af1158015610c68573d6000803e3d6000fd5b505050506040513d6020811015610c7e57600080fd5b81019080805190602001909291905050501515610d29576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001807f556e61626c6520746f207472616e73666572416e6443616c6c20746f206f726181526020017f636c65000000000000000000000000000000000000000000000000000000000081525060400191505060405180910390fd5b6001600660008282540192505081905550819150509392505050565b60008183019050828110151515610d5857fe5b80905092915050565b6000610d6d83836115ee565b905092915050565b60008030600654604051602001808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166c01000000000000000000000000028152601401828152602001925050506040516020818303038152906040526040518082805190602001908083835b602083101515610e125780518252602082019150602081019050602083039250610ded565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390209150600654846060018181525050610e556105e2565b60076000846000191660001916815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600019167fb5e6e01e79f91267dc17b4e6314d5d4d03593d2ceee0fbb452b750bd70ea5af960405160405180910390a2610ee76111db565b90508073ffffffffffffffffffffffffffffffffffffffff16634000aea0610f0d6105e2565b85610f1788611625565b6040518463ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610fba578082015181840152602081019050610f9f565b50505050905090810190601f168015610fe75780820380516001836020036101000a031916815260200191505b50945050505050602060405180830381600087803b15801561100857600080fd5b505af115801561101c573d6000803e3d6000fd5b505050506040513d602081101561103257600080fd5b810190808051906020019092919050505015156110dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001807f556e61626c6520746f207472616e73666572416e6443616c6c20746f206f726181526020017f636c65000000000000000000000000000000000000000000000000000000000081525060400191505060405180910390fd5b60016006600082825401925050819055508191505092915050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61112a611f54565b6111398560800151608061185f565b50838560000190600019169081600019168152505082856020019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508185604001907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681525050849050949350505050565b60006111e56118b9565b905090565b606060405180807f776974686472617728616464726573732c75696e74323536290000000000000081525060190190506040518091039020826020015183604001518460600151856080015160000151604051602401808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001847bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b838110156112f95780820151818401526020810190506112de565b50505050905090810190601f1680156113265780820380516001836020036101000a031916815260200191505b5095505050505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050509050919050565b61139a611fc2565b6113a2611fc2565b6113b9858585846118e3909392919063ffffffff16565b9150509392505050565b606060405180807f6f7261636c655265717565737428616464726573732c75696e743235362c627981526020017f74657333322c616464726573732c6279746573342c75696e743235362c75696e81526020017f743235362c627974657329000000000000000000000000000000000000000000815250604b019050604051809103902060008084600001518560200151866040015187606001516001896080015160000151604051602401808960ff1681526020018860ff16815260200187600019166000191681526020018673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001857bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681526020018481526020018360ff16815260200180602001828103825283818151815260200191508051906020019080838360005b83811015611551578082015181840152602081019050611536565b50505050905090810190601f16801561157e5780820380516001836020036101000a031916815260200191505b509950505050505050505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050509050919050565b600061161d600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16848461199d565b905092915050565b606060405180807f6f7261636c655265717565737428616464726573732c75696e743235362c627981526020017f74657333322c616464726573732c6279746573342c75696e743235362c75696e81526020017f743235362c627974657329000000000000000000000000000000000000000000815250604b01905060405180910390206000671bc16d674ec8000084600001518560200151866040015187606001516001896080015160000151604051602401808960ff1681526020018867ffffffffffffffff16815260200187600019166000191681526020018673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001857bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681526020018481526020018360ff16815260200180602001828103825283818151815260200191508051906020019080838360005b838110156117c25780820151818401526020810190506117a7565b50505050905090810190601f1680156117ef5780820380516001836020036101000a031916815260200191505b509950505050505050505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050509050919050565b611867612030565b600060208381151561187557fe5b061415156118925760208281151561188957fe5b06602003820191505b81836020018181525050604051808452600081528281016020016040525082905092915050565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6118eb611fc2565b6118fb856080015161010061185f565b50838560000190600019169081600019168152505082856020019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508185604001907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681525050849050949350505050565b600030600454604051602001808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166c01000000000000000000000000028152601401828152602001925050506040516020818303038152906040526040518082805190602001908083835b602083101515611a395780518252602082019150602081019050602083039250611a14565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902090506004548360600181815250508360056000836000191660001916815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600019167fb5e6e01e79f91267dc17b4e6314d5d4d03593d2ceee0fbb452b750bd70ea5af960405160405180910390a2600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634000aea08584611b4887611d29565b6040518463ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015611beb578082015181840152602081019050611bd0565b50505050905090810190601f168015611c185780820380516001836020036101000a031916815260200191505b50945050505050602060405180830381600087803b158015611c3957600080fd5b505af1158015611c4d573d6000803e3d6000fd5b505050506040513d6020811015611c6357600080fd5b81019080805190602001909291905050501515611d0e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001807f756e61626c6520746f207472616e73666572416e6443616c6c20746f206f726181526020017f636c65000000000000000000000000000000000000000000000000000000000081525060400191505060405180910390fd5b60016004600082825401925050819055508090509392505050565b6060600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634042994690507c01000000000000000000000000000000000000000000000000000000000260008084600001518560200151866040015187606001516001896080015160000151604051602401808973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200188815260200187600019166000191681526020018673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001857bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015611eb7578082015181840152602081019050611e9c565b50505050905090810190601f168015611ee45780820380516001836020036101000a031916815260200191505b509950505050505050505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050509050919050565b60c06040519081016040528060008019168152602001600073ffffffffffffffffffffffffffffffffffffffff16815260200160007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200160008152602001611fbc61204a565b81525090565b60c06040519081016040528060008019168152602001600073ffffffffffffffffffffffffffffffffffffffff16815260200160007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681526020016000815260200161202a61204a565b81525090565b604080519081016040528060608152602001600081525090565b6040805190810160405280606081526020016000815250905600a165627a7a72305820bc414c656fd1d1f14799889339ed4432f2e68d4a6f94d3bde8341875e4f644680029";
|
191
|
+
//# sourceMappingURL=MaliciousRequesterFactory.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"MaliciousRequesterFactory.js","sourceRoot":"","sources":["../../../src/generated/MaliciousRequesterFactory.ts"],"names":[],"mappings":";AAAA,0CAA0C;AAC1C,oBAAoB;;AAEpB,mCAA2D;AAM3D,MAAa,yBAA0B,SAAQ,wBAAe;IAC5D,YAAY,MAAe;QACzB,KAAK,CAAC,IAAI,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;IACjC,CAAC;IAED,MAAM,CAAC,KAAa,EAAE,OAAe;QACnC,OAAO,KAAK,CAAC,MAAM,CAAC,KAAK,EAAE,OAAO,CAAgC,CAAC;IACrE,CAAC;IACD,oBAAoB,CAAC,KAAa,EAAE,OAAe;QACjD,OAAO,KAAK,CAAC,oBAAoB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACpD,CAAC;IACD,MAAM,CAAC,OAAe;QACpB,OAAO,KAAK,CAAC,MAAM,CAAC,OAAO,CAAuB,CAAC;IACrD,CAAC;IACD,OAAO,CAAC,MAAc;QACpB,OAAO,KAAK,CAAC,OAAO,CAAC,MAAM,CAA8B,CAAC;IAC5D,CAAC;IACD,MAAM,CAAC,OAAO,CACZ,OAAe,EACf,gBAAmC;QAEnC,OAAO,IAAI,iBAAQ,CAAC,OAAO,EAAE,IAAI,EAAE,gBAAgB,CAAuB,CAAC;IAC7E,CAAC;CACF;AAvBD,8DAuBC;AAED,MAAM,IAAI,GAAG;IACX;QACE,QAAQ,EAAE,KAAK;QACf,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,KAAK;gBACX,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,IAAI,EAAE,eAAe;gBACrB,IAAI,EAAE,OAAO;aACd;SACF;QACD,IAAI,EAAE,wBAAwB;QAC9B,OAAO,EAAE,EAAE;QACX,OAAO,EAAE,KAAK;QACd,eAAe,EAAE,YAAY;QAC7B,IAAI,EAAE,UAAU;KACjB;IACD;QACE,QAAQ,EAAE,KAAK;QACf,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,mBAAmB;Q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