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,581 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
const test_helpers_1 = require("@chainlink/test-helpers");
|
4
|
+
const chai_1 = require("chai");
|
5
|
+
const ethers_1 = require("ethers");
|
6
|
+
const AggregatorFactory_1 = require("../src/generated/AggregatorFactory");
|
7
|
+
const OracleFactory_1 = require("../src/generated/OracleFactory");
|
8
|
+
const aggregatorFactory = new AggregatorFactory_1.AggregatorFactory();
|
9
|
+
const oracleFactory = new OracleFactory_1.OracleFactory();
|
10
|
+
const linkTokenFactory = new test_helpers_1.contract.LinkTokenFactory();
|
11
|
+
let personas;
|
12
|
+
let defaultAccount;
|
13
|
+
const provider = test_helpers_1.setup.provider();
|
14
|
+
beforeAll(async () => {
|
15
|
+
const users = await test_helpers_1.setup.users(provider);
|
16
|
+
personas = users.personas;
|
17
|
+
defaultAccount = users.roles.defaultAccount;
|
18
|
+
});
|
19
|
+
describe('Aggregator', () => {
|
20
|
+
const jobId1 = '0x4c7b7ffb66b344fbaa64995af81e355a00000000000000000000000000000001';
|
21
|
+
const jobId2 = '0x4c7b7ffb66b344fbaa64995af81e355a00000000000000000000000000000002';
|
22
|
+
const jobId3 = '0x4c7b7ffb66b344fbaa64995af81e355a00000000000000000000000000000003';
|
23
|
+
const jobId4 = '0x4c7b7ffb66b344fbaa64995af81e355a00000000000000000000000000000004';
|
24
|
+
const deposit = test_helpers_1.helpers.toWei('100');
|
25
|
+
const basePayment = test_helpers_1.helpers.toWei('1');
|
26
|
+
let link;
|
27
|
+
let rate;
|
28
|
+
let oc1;
|
29
|
+
let oc2;
|
30
|
+
let oc3;
|
31
|
+
let oc4;
|
32
|
+
let oracles;
|
33
|
+
let jobIds = [];
|
34
|
+
const deployment = test_helpers_1.setup.snapshot(provider, async () => {
|
35
|
+
link = await linkTokenFactory.connect(defaultAccount).deploy();
|
36
|
+
oc1 = await oracleFactory.connect(defaultAccount).deploy(link.address);
|
37
|
+
oc2 = await oracleFactory.connect(defaultAccount).deploy(link.address);
|
38
|
+
oc3 = await oracleFactory.connect(defaultAccount).deploy(link.address);
|
39
|
+
oc4 = await oracleFactory.connect(defaultAccount).deploy(link.address);
|
40
|
+
oracles = [oc1, oc2, oc3];
|
41
|
+
});
|
42
|
+
beforeEach(async () => {
|
43
|
+
await deployment();
|
44
|
+
});
|
45
|
+
it('has a limited public interface', () => {
|
46
|
+
test_helpers_1.matchers.publicAbi(aggregatorFactory, [
|
47
|
+
'authorizedRequesters',
|
48
|
+
'cancelRequest',
|
49
|
+
'chainlinkCallback',
|
50
|
+
'latestAnswer',
|
51
|
+
'getAnswer',
|
52
|
+
'destroy',
|
53
|
+
'jobIds',
|
54
|
+
'latestRound',
|
55
|
+
'minimumResponses',
|
56
|
+
'oracles',
|
57
|
+
'paymentAmount',
|
58
|
+
'requestRateUpdate',
|
59
|
+
'setAuthorization',
|
60
|
+
'transferLINK',
|
61
|
+
'updateRequestDetails',
|
62
|
+
'latestTimestamp',
|
63
|
+
'getTimestamp',
|
64
|
+
// Ownable methods:
|
65
|
+
'owner',
|
66
|
+
'renounceOwnership',
|
67
|
+
'transferOwnership',
|
68
|
+
]);
|
69
|
+
});
|
70
|
+
describe('#requestRateUpdate', () => {
|
71
|
+
const response = test_helpers_1.helpers.numToBytes32(100);
|
72
|
+
describe('basic updates', () => {
|
73
|
+
beforeEach(async () => {
|
74
|
+
rate = await aggregatorFactory
|
75
|
+
.connect(defaultAccount)
|
76
|
+
.deploy(link.address, basePayment, 1, [oc1.address], [jobId1]);
|
77
|
+
await link.transfer(rate.address, deposit);
|
78
|
+
const current = await rate.latestAnswer();
|
79
|
+
test_helpers_1.matchers.bigNum(ethers_1.ethers.constants.Zero, current);
|
80
|
+
});
|
81
|
+
it('emits a new round log', async () => {
|
82
|
+
var _a, _b;
|
83
|
+
const requestTx = await rate.requestRateUpdate();
|
84
|
+
const receipt = await requestTx.wait();
|
85
|
+
const answerId = test_helpers_1.helpers.numToBytes32(1);
|
86
|
+
const newRoundLog = (_a = receipt.logs) === null || _a === void 0 ? void 0 : _a[receipt.logs.length - 1];
|
87
|
+
chai_1.assert.equal(answerId, (_b = newRoundLog) === null || _b === void 0 ? void 0 : _b.topics[1]);
|
88
|
+
});
|
89
|
+
it('trigger a request to the oracle and accepts a response', async () => {
|
90
|
+
var _a, _b;
|
91
|
+
const requestTx = await rate.requestRateUpdate();
|
92
|
+
const receipt = await requestTx.wait();
|
93
|
+
const log = (_a = receipt.logs) === null || _a === void 0 ? void 0 : _a[3];
|
94
|
+
chai_1.assert.equal(oc1.address, (_b = log) === null || _b === void 0 ? void 0 : _b.address);
|
95
|
+
const request = test_helpers_1.oracle.decodeRunRequest(log);
|
96
|
+
await oc1.fulfillOracleRequest(...test_helpers_1.oracle.convertFufillParams(request, response));
|
97
|
+
const current = await rate.latestAnswer();
|
98
|
+
test_helpers_1.matchers.bigNum(response, current);
|
99
|
+
const answerId = await rate.latestRound();
|
100
|
+
const currentMappingValue = await rate.getAnswer(answerId);
|
101
|
+
test_helpers_1.matchers.bigNum(current, currentMappingValue);
|
102
|
+
});
|
103
|
+
it('change the updatedAt record', async () => {
|
104
|
+
var _a;
|
105
|
+
let updatedAt = await rate.latestTimestamp();
|
106
|
+
chai_1.assert.equal('0', updatedAt.toString());
|
107
|
+
const requestTx = await rate.requestRateUpdate();
|
108
|
+
const receipt = await requestTx.wait();
|
109
|
+
const request = test_helpers_1.oracle.decodeRunRequest((_a = receipt.logs) === null || _a === void 0 ? void 0 : _a[3]);
|
110
|
+
await oc1.fulfillOracleRequest(...test_helpers_1.oracle.convertFufillParams(request, response));
|
111
|
+
updatedAt = await rate.latestTimestamp();
|
112
|
+
chai_1.assert.notEqual('0', updatedAt.toString());
|
113
|
+
const answerId = await rate.latestRound();
|
114
|
+
const timestampMappingValue = await rate.getTimestamp(answerId);
|
115
|
+
test_helpers_1.matchers.bigNum(updatedAt, timestampMappingValue);
|
116
|
+
});
|
117
|
+
it('emits a log with the response, answer ID, and sender', async () => {
|
118
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
119
|
+
const requestTx = await rate.requestRateUpdate();
|
120
|
+
const requestTxreceipt = await requestTx.wait();
|
121
|
+
const request = test_helpers_1.oracle.decodeRunRequest((_a = requestTxreceipt.logs) === null || _a === void 0 ? void 0 : _a[3]);
|
122
|
+
const fulfillOracleRequest = await oc1.fulfillOracleRequest(...test_helpers_1.oracle.convertFufillParams(request, response));
|
123
|
+
const fulfillOracleRequestReceipt = await fulfillOracleRequest.wait();
|
124
|
+
const answerId = test_helpers_1.helpers.numToBytes32(1);
|
125
|
+
const receivedLog = (_b = fulfillOracleRequestReceipt.logs) === null || _b === void 0 ? void 0 : _b[1];
|
126
|
+
chai_1.assert.equal(response, (_d = (_c = receivedLog) === null || _c === void 0 ? void 0 : _c.topics) === null || _d === void 0 ? void 0 : _d[1]);
|
127
|
+
chai_1.assert.equal(answerId, (_f = (_e = receivedLog) === null || _e === void 0 ? void 0 : _e.topics) === null || _f === void 0 ? void 0 : _f[2]);
|
128
|
+
chai_1.assert.equal(oc1.address, ethers_1.ethers.utils.getAddress((_k = (_j = (_h = (_g = receivedLog) === null || _g === void 0 ? void 0 : _g.topics) === null || _h === void 0 ? void 0 : _h[3]) === null || _j === void 0 ? void 0 : _j.slice(26, 66), (_k !== null && _k !== void 0 ? _k : ''))));
|
129
|
+
});
|
130
|
+
it('emits a log with the new answer', async () => {
|
131
|
+
var _a, _b, _c, _d;
|
132
|
+
const requestTx = await rate.requestRateUpdate();
|
133
|
+
const requestReceipt = await requestTx.wait();
|
134
|
+
const request = test_helpers_1.oracle.decodeRunRequest((_a = requestReceipt.logs) === null || _a === void 0 ? void 0 : _a[3]);
|
135
|
+
const fulfillOracleRequest = await oc1.fulfillOracleRequest(...test_helpers_1.oracle.convertFufillParams(request, response));
|
136
|
+
const fulfillOracleRequestReceipt = await fulfillOracleRequest.wait();
|
137
|
+
const answerId = test_helpers_1.helpers.numToBytes32(1);
|
138
|
+
const answerUpdatedLog = (_b = fulfillOracleRequestReceipt.logs) === null || _b === void 0 ? void 0 : _b[2];
|
139
|
+
chai_1.assert.equal(response, (_c = answerUpdatedLog) === null || _c === void 0 ? void 0 : _c.topics[1]);
|
140
|
+
chai_1.assert.equal(answerId, (_d = answerUpdatedLog) === null || _d === void 0 ? void 0 : _d.topics[2]);
|
141
|
+
});
|
142
|
+
});
|
143
|
+
describe('with multiple oracles', () => {
|
144
|
+
beforeEach(async () => {
|
145
|
+
rate = await aggregatorFactory.connect(defaultAccount).deploy(link.address, basePayment, oracles.length, oracles.map(o => o.address), [jobId1, jobId2, jobId3]);
|
146
|
+
await link.transfer(rate.address, deposit);
|
147
|
+
const current = await rate.latestAnswer();
|
148
|
+
test_helpers_1.matchers.bigNum(ethers_1.ethers.constants.Zero, current);
|
149
|
+
});
|
150
|
+
it('triggers requests to the oracles and the median of the responses', async () => {
|
151
|
+
var _a, _b, _c;
|
152
|
+
const requestTx = await rate.requestRateUpdate();
|
153
|
+
const receipt = await requestTx.wait();
|
154
|
+
const responses = [77, 66, 111].map(test_helpers_1.helpers.numToBytes32);
|
155
|
+
for (let i = 0; i < oracles.length; i++) {
|
156
|
+
const o = oracles[i];
|
157
|
+
const log = (_b = (_a = receipt) === null || _a === void 0 ? void 0 : _a.logs) === null || _b === void 0 ? void 0 : _b[i * 4 + 3];
|
158
|
+
chai_1.assert.equal(o.address, (_c = log) === null || _c === void 0 ? void 0 : _c.address);
|
159
|
+
const request = test_helpers_1.oracle.decodeRunRequest(log);
|
160
|
+
await o.fulfillOracleRequest(...test_helpers_1.oracle.convertFufillParams(request, responses[i]));
|
161
|
+
}
|
162
|
+
const current = await rate.latestAnswer();
|
163
|
+
test_helpers_1.matchers.bigNum(test_helpers_1.helpers.numToBytes32(77), current);
|
164
|
+
const answerId = await rate.latestRound();
|
165
|
+
const currentMappingValue = await rate.getAnswer(answerId);
|
166
|
+
test_helpers_1.matchers.bigNum(current, currentMappingValue);
|
167
|
+
const updatedAt = await rate.latestTimestamp();
|
168
|
+
chai_1.assert.notEqual('0', updatedAt.toString());
|
169
|
+
const timestampMappingValue = await rate.getTimestamp(answerId);
|
170
|
+
test_helpers_1.matchers.bigNum(updatedAt, timestampMappingValue);
|
171
|
+
});
|
172
|
+
it('does not accept old responses', async () => {
|
173
|
+
var _a, _b, _c, _d;
|
174
|
+
const request1 = await rate.requestRateUpdate();
|
175
|
+
const receipt1 = await request1.wait();
|
176
|
+
const response1 = test_helpers_1.helpers.numToBytes32(100);
|
177
|
+
const requests = [
|
178
|
+
test_helpers_1.oracle.decodeRunRequest((_a = receipt1.logs) === null || _a === void 0 ? void 0 : _a[3]),
|
179
|
+
test_helpers_1.oracle.decodeRunRequest((_b = receipt1.logs) === null || _b === void 0 ? void 0 : _b[7]),
|
180
|
+
test_helpers_1.oracle.decodeRunRequest((_c = receipt1.logs) === null || _c === void 0 ? void 0 : _c[11]),
|
181
|
+
];
|
182
|
+
const request2 = await rate.requestRateUpdate();
|
183
|
+
const receipt2 = await request2.wait();
|
184
|
+
const response2 = test_helpers_1.helpers.numToBytes32(200);
|
185
|
+
for (let i = 0; i < oracles.length; i++) {
|
186
|
+
const log = (_d = receipt2.logs) === null || _d === void 0 ? void 0 : _d[i * 4 + 3];
|
187
|
+
const request = test_helpers_1.oracle.decodeRunRequest(log);
|
188
|
+
await oracles[i].fulfillOracleRequest(...test_helpers_1.oracle.convertFufillParams(request, response2));
|
189
|
+
}
|
190
|
+
test_helpers_1.matchers.bigNum(response2, await rate.latestAnswer());
|
191
|
+
for (let i = 0; i < oracles.length; i++) {
|
192
|
+
await oracles[i].fulfillOracleRequest(...test_helpers_1.oracle.convertFufillParams(requests[i], response1));
|
193
|
+
}
|
194
|
+
test_helpers_1.matchers.bigNum(response2, await rate.latestAnswer());
|
195
|
+
});
|
196
|
+
});
|
197
|
+
describe('with an even number of oracles', () => {
|
198
|
+
beforeEach(async () => {
|
199
|
+
oracles = [oc1, oc2, oc3, oc4];
|
200
|
+
rate = await aggregatorFactory.connect(defaultAccount).deploy(link.address, basePayment, oracles.length, oracles.map(o => o.address), [jobId1, jobId2, jobId3, jobId4]);
|
201
|
+
await link.transfer(rate.address, deposit);
|
202
|
+
const current = await rate.latestAnswer();
|
203
|
+
test_helpers_1.matchers.bigNum(ethers_1.ethers.constants.Zero, current);
|
204
|
+
});
|
205
|
+
it('triggers requests to the oracles and the median of the responses', async () => {
|
206
|
+
var _a, _b;
|
207
|
+
const requestTx = await rate.requestRateUpdate();
|
208
|
+
const receipt = await requestTx.wait();
|
209
|
+
const responses = [66, 76, 78, 111].map(test_helpers_1.helpers.numToBytes32);
|
210
|
+
for (let i = 0; i < oracles.length; i++) {
|
211
|
+
const o = oracles[i];
|
212
|
+
const log = (_a = receipt.logs) === null || _a === void 0 ? void 0 : _a[i * 4 + 3];
|
213
|
+
chai_1.assert.equal(o.address, (_b = log) === null || _b === void 0 ? void 0 : _b.address);
|
214
|
+
const request = test_helpers_1.oracle.decodeRunRequest(log);
|
215
|
+
await o.fulfillOracleRequest(...test_helpers_1.oracle.convertFufillParams(request, responses[i]));
|
216
|
+
}
|
217
|
+
const current = await rate.latestAnswer();
|
218
|
+
test_helpers_1.matchers.bigNum(77, current);
|
219
|
+
});
|
220
|
+
});
|
221
|
+
});
|
222
|
+
describe('#updateRequestDetails', () => {
|
223
|
+
beforeEach(async () => {
|
224
|
+
rate = await aggregatorFactory
|
225
|
+
.connect(defaultAccount)
|
226
|
+
.deploy(link.address, basePayment, 1, [oc1.address], [jobId1]);
|
227
|
+
await rate.transferOwnership(personas.Carol.address);
|
228
|
+
oc2 = await oracleFactory.connect(defaultAccount).deploy(link.address);
|
229
|
+
await link.transfer(rate.address, deposit);
|
230
|
+
const current = await rate.latestAnswer();
|
231
|
+
test_helpers_1.matchers.bigNum(ethers_1.ethers.constants.Zero, current);
|
232
|
+
});
|
233
|
+
describe('when called by the owner', () => {
|
234
|
+
it('changes the amout of LINK sent on a request', async () => {
|
235
|
+
const uniquePayment = 7777777;
|
236
|
+
await rate
|
237
|
+
.connect(personas.Carol)
|
238
|
+
.updateRequestDetails(uniquePayment, 1, [oc2.address], [jobId2]);
|
239
|
+
await rate.connect(personas.Carol).requestRateUpdate();
|
240
|
+
test_helpers_1.matchers.bigNum(uniquePayment, await link.balanceOf(oc2.address));
|
241
|
+
});
|
242
|
+
it('can be configured to accept fewer responses than oracles', async () => {
|
243
|
+
var _a, _b;
|
244
|
+
await rate
|
245
|
+
.connect(personas.Carol)
|
246
|
+
.updateRequestDetails(basePayment, 1, [oc1.address, oc2.address], [jobId1, jobId2]);
|
247
|
+
const requestTx = await rate.connect(personas.Carol).requestRateUpdate();
|
248
|
+
const requestTxReceipt = await requestTx.wait();
|
249
|
+
const request1 = test_helpers_1.oracle.decodeRunRequest((_a = requestTxReceipt.logs) === null || _a === void 0 ? void 0 : _a[3]);
|
250
|
+
const request2 = test_helpers_1.oracle.decodeRunRequest((_b = requestTxReceipt.logs) === null || _b === void 0 ? void 0 : _b[7]);
|
251
|
+
const response1 = test_helpers_1.helpers.numToBytes32(100);
|
252
|
+
await oc1.fulfillOracleRequest(...test_helpers_1.oracle.convertFufillParams(request1, response1));
|
253
|
+
test_helpers_1.matchers.bigNum(response1, await rate.latestAnswer());
|
254
|
+
const response2 = test_helpers_1.helpers.numToBytes32(200);
|
255
|
+
await oc2.fulfillOracleRequest(...test_helpers_1.oracle.convertFufillParams(request2, response2));
|
256
|
+
const response1Bn = ethers_1.ethers.utils.bigNumberify(response1);
|
257
|
+
const response2Bn = ethers_1.ethers.utils.bigNumberify(response2);
|
258
|
+
const expected = response1Bn.add(response2Bn).div(2);
|
259
|
+
chai_1.assert.isTrue(expected.eq(await rate.latestAnswer()));
|
260
|
+
});
|
261
|
+
describe('and the number of jobs does not match number of oracles', () => {
|
262
|
+
it('fails', async () => {
|
263
|
+
await test_helpers_1.matchers.evmRevert(async () => {
|
264
|
+
await rate
|
265
|
+
.connect(personas.Carol)
|
266
|
+
.updateRequestDetails(basePayment, 2, [oc1.address, oc2.address], [jobId2]);
|
267
|
+
});
|
268
|
+
});
|
269
|
+
});
|
270
|
+
describe('and the oracles required exceeds the available amount', () => {
|
271
|
+
it('fails', async () => {
|
272
|
+
await test_helpers_1.matchers.evmRevert(async () => {
|
273
|
+
await rate
|
274
|
+
.connect(personas.Carol)
|
275
|
+
.updateRequestDetails(basePayment, 3, [oc1.address, oc2.address], [jobId1, jobId2]);
|
276
|
+
});
|
277
|
+
});
|
278
|
+
});
|
279
|
+
});
|
280
|
+
describe('when called by a non-owner', () => {
|
281
|
+
it('fails', async () => {
|
282
|
+
await test_helpers_1.matchers.evmRevert(async () => {
|
283
|
+
await rate
|
284
|
+
.connect(personas.Eddy)
|
285
|
+
.updateRequestDetails(basePayment, 1, [oc2.address], [jobId2]);
|
286
|
+
});
|
287
|
+
});
|
288
|
+
});
|
289
|
+
describe('when called before a past answer is fulfilled', () => {
|
290
|
+
beforeEach(async () => {
|
291
|
+
rate = await aggregatorFactory
|
292
|
+
.connect(defaultAccount)
|
293
|
+
.deploy(link.address, basePayment, 1, [oc1.address], [jobId1]);
|
294
|
+
await link.transfer(rate.address, deposit);
|
295
|
+
oc2 = await oracleFactory.connect(defaultAccount).deploy(link.address);
|
296
|
+
oc3 = await oracleFactory.connect(defaultAccount).deploy(link.address);
|
297
|
+
});
|
298
|
+
it('accepts answers from oracles at the time the request was made', async () => {
|
299
|
+
var _a, _b, _c;
|
300
|
+
// make request 1
|
301
|
+
const request1Tx = await rate.requestRateUpdate();
|
302
|
+
const request1Receipt = await request1Tx.wait();
|
303
|
+
const request1 = test_helpers_1.oracle.decodeRunRequest((_a = request1Receipt.logs) === null || _a === void 0 ? void 0 : _a[3]);
|
304
|
+
// change oracles
|
305
|
+
await rate.updateRequestDetails(basePayment, 2, [oc2.address, oc3.address], [jobId2, jobId3]);
|
306
|
+
// make new request
|
307
|
+
const request2Tx = await rate.requestRateUpdate();
|
308
|
+
const request2Receipt = await request2Tx.wait();
|
309
|
+
const request2 = test_helpers_1.oracle.decodeRunRequest((_b = request2Receipt.logs) === null || _b === void 0 ? void 0 : _b[3]);
|
310
|
+
const request3 = test_helpers_1.oracle.decodeRunRequest((_c = request2Receipt.logs) === null || _c === void 0 ? void 0 : _c[7]);
|
311
|
+
// fulfill request 1
|
312
|
+
const response1 = test_helpers_1.helpers.numToBytes32(100);
|
313
|
+
await oc1.fulfillOracleRequest(...test_helpers_1.oracle.convertFufillParams(request1, response1));
|
314
|
+
test_helpers_1.matchers.bigNum(response1, await rate.latestAnswer());
|
315
|
+
// fulfill request 2
|
316
|
+
const responses2 = [202, 222].map(test_helpers_1.helpers.numToBytes32);
|
317
|
+
await oc2.fulfillOracleRequest(...test_helpers_1.oracle.convertFufillParams(request2, responses2[0]));
|
318
|
+
await oc3.fulfillOracleRequest(...test_helpers_1.oracle.convertFufillParams(request3, responses2[1]));
|
319
|
+
test_helpers_1.matchers.bigNum(212, await rate.latestAnswer());
|
320
|
+
});
|
321
|
+
});
|
322
|
+
describe('when calling with a large number of oracles', () => {
|
323
|
+
const maxOracleCount = 28;
|
324
|
+
beforeEach(() => {
|
325
|
+
oracles = [];
|
326
|
+
jobIds = [];
|
327
|
+
});
|
328
|
+
it(`does not revert with up to ${maxOracleCount} oracles`, async () => {
|
329
|
+
for (let i = 0; i < maxOracleCount; i++) {
|
330
|
+
oracles.push(oc1);
|
331
|
+
jobIds.push(jobId1);
|
332
|
+
}
|
333
|
+
chai_1.assert.equal(maxOracleCount, oracles.length);
|
334
|
+
chai_1.assert.equal(maxOracleCount, jobIds.length);
|
335
|
+
await rate.connect(personas.Carol).updateRequestDetails(basePayment, maxOracleCount, oracles.map(o => o.address), jobIds);
|
336
|
+
});
|
337
|
+
it(`reverts with more than ${maxOracleCount} oracles`, async () => {
|
338
|
+
const overMaxOracles = maxOracleCount + 1;
|
339
|
+
for (let i = 0; i < overMaxOracles; i++) {
|
340
|
+
oracles.push(oc1);
|
341
|
+
jobIds.push(jobId1);
|
342
|
+
}
|
343
|
+
chai_1.assert.equal(overMaxOracles, oracles.length);
|
344
|
+
chai_1.assert.equal(overMaxOracles, jobIds.length);
|
345
|
+
await test_helpers_1.matchers.evmRevert(async () => {
|
346
|
+
await rate.connect(personas.Carol).updateRequestDetails(basePayment, overMaxOracles, oracles.map(o => o.address), jobIds);
|
347
|
+
});
|
348
|
+
});
|
349
|
+
});
|
350
|
+
});
|
351
|
+
describe('#transferLINK', () => {
|
352
|
+
beforeEach(async () => {
|
353
|
+
rate = await aggregatorFactory
|
354
|
+
.connect(defaultAccount)
|
355
|
+
.deploy(link.address, basePayment, 1, [oc1.address], [jobId1]);
|
356
|
+
await rate.transferOwnership(personas.Carol.address);
|
357
|
+
await link.transfer(rate.address, deposit);
|
358
|
+
test_helpers_1.matchers.bigNum(deposit, await link.balanceOf(rate.address));
|
359
|
+
});
|
360
|
+
describe('when called by the owner', () => {
|
361
|
+
it('succeeds', async () => {
|
362
|
+
await rate
|
363
|
+
.connect(personas.Carol)
|
364
|
+
.transferLINK(personas.Carol.address, deposit);
|
365
|
+
test_helpers_1.matchers.bigNum(0, await link.balanceOf(rate.address));
|
366
|
+
test_helpers_1.matchers.bigNum(deposit, await link.balanceOf(personas.Carol.address));
|
367
|
+
});
|
368
|
+
describe('with a number higher than the LINK balance', () => {
|
369
|
+
it('fails', async () => {
|
370
|
+
await test_helpers_1.matchers.evmRevert(async () => {
|
371
|
+
await rate
|
372
|
+
.connect(personas.Carol)
|
373
|
+
.transferLINK(personas.Carol.address, deposit.add(basePayment));
|
374
|
+
});
|
375
|
+
test_helpers_1.matchers.bigNum(deposit, await link.balanceOf(rate.address));
|
376
|
+
});
|
377
|
+
});
|
378
|
+
});
|
379
|
+
describe('when called by a non-owner', () => {
|
380
|
+
it('fails', async () => {
|
381
|
+
await test_helpers_1.matchers.evmRevert(async () => {
|
382
|
+
await rate
|
383
|
+
.connect(personas.Eddy)
|
384
|
+
.transferLINK(personas.Carol.address, deposit);
|
385
|
+
});
|
386
|
+
test_helpers_1.matchers.bigNum(deposit, await link.balanceOf(rate.address));
|
387
|
+
});
|
388
|
+
});
|
389
|
+
});
|
390
|
+
describe('#destroy', () => {
|
391
|
+
beforeEach(async () => {
|
392
|
+
rate = await aggregatorFactory
|
393
|
+
.connect(defaultAccount)
|
394
|
+
.deploy(link.address, basePayment, 1, [oc1.address], [jobId1]);
|
395
|
+
await rate.transferOwnership(personas.Carol.address);
|
396
|
+
await link.transfer(rate.address, deposit);
|
397
|
+
test_helpers_1.matchers.bigNum(deposit, await link.balanceOf(rate.address));
|
398
|
+
});
|
399
|
+
describe('when called by the owner', () => {
|
400
|
+
it('succeeds', async () => {
|
401
|
+
await rate.connect(personas.Carol).destroy();
|
402
|
+
test_helpers_1.matchers.bigNum(0, await link.balanceOf(rate.address));
|
403
|
+
test_helpers_1.matchers.bigNum(deposit, await link.balanceOf(personas.Carol.address));
|
404
|
+
chai_1.assert.equal('0x', await provider.getCode(rate.address));
|
405
|
+
});
|
406
|
+
});
|
407
|
+
describe('when called by a non-owner', () => {
|
408
|
+
it('fails', async () => {
|
409
|
+
await test_helpers_1.matchers.evmRevert(async () => {
|
410
|
+
await rate.connect(personas.Eddy).destroy();
|
411
|
+
});
|
412
|
+
test_helpers_1.matchers.bigNum(deposit, await link.balanceOf(rate.address));
|
413
|
+
chai_1.assert.notEqual('0x', await provider.getCode(rate.address));
|
414
|
+
});
|
415
|
+
});
|
416
|
+
});
|
417
|
+
describe('#setAuthorization', () => {
|
418
|
+
beforeEach(async () => {
|
419
|
+
rate = await aggregatorFactory
|
420
|
+
.connect(defaultAccount)
|
421
|
+
.deploy(link.address, basePayment, 1, [oc1.address], [jobId1]);
|
422
|
+
await link.transfer(rate.address, deposit);
|
423
|
+
});
|
424
|
+
describe('when called by an authorized address', () => {
|
425
|
+
beforeEach(async () => {
|
426
|
+
await rate.setAuthorization(personas.Eddy.address, true);
|
427
|
+
chai_1.assert.equal(true, await rate.authorizedRequesters(personas.Eddy.address));
|
428
|
+
});
|
429
|
+
it('succeeds', async () => {
|
430
|
+
await rate.connect(personas.Eddy).requestRateUpdate();
|
431
|
+
});
|
432
|
+
it('can be unset', async () => {
|
433
|
+
await rate.setAuthorization(personas.Eddy.address, false);
|
434
|
+
chai_1.assert.equal(false, await rate.authorizedRequesters(personas.Eddy.address));
|
435
|
+
await test_helpers_1.matchers.evmRevert(async () => {
|
436
|
+
await rate.connect(personas.Eddy).requestRateUpdate();
|
437
|
+
});
|
438
|
+
});
|
439
|
+
});
|
440
|
+
describe('when called by a non-authorized address', () => {
|
441
|
+
beforeEach(async () => {
|
442
|
+
chai_1.assert.equal(false, await rate.authorizedRequesters(personas.Eddy.address));
|
443
|
+
});
|
444
|
+
it('fails', async () => {
|
445
|
+
await test_helpers_1.matchers.evmRevert(async () => {
|
446
|
+
await rate.connect(personas.Eddy).requestRateUpdate();
|
447
|
+
});
|
448
|
+
});
|
449
|
+
});
|
450
|
+
});
|
451
|
+
describe('#cancelRequest', () => {
|
452
|
+
let request;
|
453
|
+
beforeEach(async () => {
|
454
|
+
var _a;
|
455
|
+
rate = await aggregatorFactory
|
456
|
+
.connect(defaultAccount)
|
457
|
+
.deploy(link.address, basePayment, 1, [oc1.address], [jobId1]);
|
458
|
+
await link.transfer(rate.address, basePayment);
|
459
|
+
test_helpers_1.matchers.bigNum(basePayment, await link.balanceOf(rate.address));
|
460
|
+
test_helpers_1.matchers.bigNum(0, await link.balanceOf(oc1.address));
|
461
|
+
const requestTx = await rate.requestRateUpdate();
|
462
|
+
const receipt = await requestTx.wait();
|
463
|
+
request = test_helpers_1.oracle.decodeRunRequest((_a = receipt.logs) === null || _a === void 0 ? void 0 : _a[3]);
|
464
|
+
test_helpers_1.matchers.bigNum(0, await link.balanceOf(rate.address));
|
465
|
+
test_helpers_1.matchers.bigNum(basePayment, await link.balanceOf(oc1.address));
|
466
|
+
await test_helpers_1.helpers.increaseTime5Minutes(provider); // wait for request to expire
|
467
|
+
});
|
468
|
+
describe('when a later answer has been provided', () => {
|
469
|
+
beforeEach(async () => {
|
470
|
+
var _a;
|
471
|
+
await link.transfer(rate.address, basePayment);
|
472
|
+
const requestTx2 = await rate.requestRateUpdate();
|
473
|
+
const receipt = await requestTx2.wait();
|
474
|
+
const request2 = test_helpers_1.oracle.decodeRunRequest((_a = receipt.logs) === null || _a === void 0 ? void 0 : _a[3]);
|
475
|
+
await oc1.fulfillOracleRequest(...test_helpers_1.oracle.convertFufillParams(request2, '17'));
|
476
|
+
test_helpers_1.matchers.bigNum(basePayment.mul(2), await link.balanceOf(oc1.address));
|
477
|
+
});
|
478
|
+
it('gets the LINK deposited back from the oracle', async () => {
|
479
|
+
await rate.cancelRequest(request.requestId, request.payment, request.expiration);
|
480
|
+
test_helpers_1.matchers.bigNum(basePayment, await link.balanceOf(rate.address));
|
481
|
+
test_helpers_1.matchers.bigNum(basePayment, await link.balanceOf(oc1.address));
|
482
|
+
});
|
483
|
+
});
|
484
|
+
describe('when a later answer has not been provided', () => {
|
485
|
+
it('does not allow the request to be cancelled', async () => {
|
486
|
+
test_helpers_1.matchers.evmRevert(async () => {
|
487
|
+
await rate.cancelRequest(request.requestId, request.payment, request.expiration);
|
488
|
+
});
|
489
|
+
test_helpers_1.matchers.bigNum(0, await link.balanceOf(rate.address));
|
490
|
+
test_helpers_1.matchers.bigNum(basePayment, await link.balanceOf(oc1.address));
|
491
|
+
});
|
492
|
+
});
|
493
|
+
});
|
494
|
+
describe('testing various sets of inputs', () => {
|
495
|
+
const tests = [
|
496
|
+
{
|
497
|
+
name: 'ordered ascending',
|
498
|
+
responses: [0, 1, 2, 3, 4, 5, 6, 7].map(test_helpers_1.helpers.numToBytes32),
|
499
|
+
want: test_helpers_1.helpers.numToBytes32(3),
|
500
|
+
},
|
501
|
+
{
|
502
|
+
name: 'ordered descending',
|
503
|
+
responses: [7, 6, 5, 4, 3, 2, 1, 0].map(test_helpers_1.helpers.numToBytes32),
|
504
|
+
want: test_helpers_1.helpers.numToBytes32(3),
|
505
|
+
},
|
506
|
+
{
|
507
|
+
name: 'unordered 1',
|
508
|
+
responses: [1001, 1, 101, 10, 11, 0, 111].map(test_helpers_1.helpers.numToBytes32),
|
509
|
+
want: test_helpers_1.helpers.numToBytes32(11),
|
510
|
+
},
|
511
|
+
{
|
512
|
+
name: 'unordered 2',
|
513
|
+
responses: [8, 8, 4, 5, 5, 7, 9, 5, 9].map(test_helpers_1.helpers.numToBytes32),
|
514
|
+
want: test_helpers_1.helpers.numToBytes32(7),
|
515
|
+
},
|
516
|
+
{
|
517
|
+
name: 'unordered 3',
|
518
|
+
responses: [33, 44, 89, 101, 67, 7, 23, 55, 88, 324, 0, 88].map(test_helpers_1.helpers.numToBytes32),
|
519
|
+
want: test_helpers_1.helpers.numToBytes32(61),
|
520
|
+
},
|
521
|
+
{
|
522
|
+
name: 'long unordered',
|
523
|
+
responses: [
|
524
|
+
333121,
|
525
|
+
323453,
|
526
|
+
337654,
|
527
|
+
345363,
|
528
|
+
345363,
|
529
|
+
333456,
|
530
|
+
335477,
|
531
|
+
333323,
|
532
|
+
332352,
|
533
|
+
354648,
|
534
|
+
983260,
|
535
|
+
333856,
|
536
|
+
335468,
|
537
|
+
376987,
|
538
|
+
333253,
|
539
|
+
388867,
|
540
|
+
337879,
|
541
|
+
333324,
|
542
|
+
338678,
|
543
|
+
].map(test_helpers_1.helpers.numToBytes32),
|
544
|
+
want: test_helpers_1.helpers.numToBytes32(335477),
|
545
|
+
},
|
546
|
+
];
|
547
|
+
beforeEach(async () => {
|
548
|
+
rate = await aggregatorFactory
|
549
|
+
.connect(defaultAccount)
|
550
|
+
.deploy(link.address, basePayment, 0, [], []);
|
551
|
+
await link.transfer(rate.address, deposit);
|
552
|
+
});
|
553
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
554
|
+
for (const test of tests) {
|
555
|
+
const responses = test.responses;
|
556
|
+
const oracles = [];
|
557
|
+
const jobIds = [];
|
558
|
+
it(test.name, async () => {
|
559
|
+
var _a, _b;
|
560
|
+
for (let i = 0; i < responses.length; i++) {
|
561
|
+
oracles[i] = await oracleFactory
|
562
|
+
.connect(defaultAccount)
|
563
|
+
.deploy(link.address);
|
564
|
+
jobIds[i] = jobId1; // doesn't really matter in this test
|
565
|
+
}
|
566
|
+
await rate.updateRequestDetails(basePayment, oracles.length, oracles.map(o => o.address), jobIds);
|
567
|
+
const requestTx = await rate.requestRateUpdate();
|
568
|
+
for (let i = 0; i < responses.length; i++) {
|
569
|
+
const o = oracles[i];
|
570
|
+
const receipt = await requestTx.wait();
|
571
|
+
const log = (_a = receipt.logs) === null || _a === void 0 ? void 0 : _a[i * 4 + 3];
|
572
|
+
chai_1.assert.equal(o.address, (_b = log) === null || _b === void 0 ? void 0 : _b.address);
|
573
|
+
const request = test_helpers_1.oracle.decodeRunRequest(log);
|
574
|
+
await o.fulfillOracleRequest(...test_helpers_1.oracle.convertFufillParams(request, responses[i]));
|
575
|
+
}
|
576
|
+
test_helpers_1.matchers.bigNum(test.want, await rate.latestAnswer());
|
577
|
+
});
|
578
|
+
}
|
579
|
+
});
|
580
|
+
});
|
581
|
+
//# sourceMappingURL=Aggregator.test.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Aggregator.test.js","sourceRoot":"","sources":["../../test/Aggregator.test.ts"],"names":[],"mappings":";;AAAA,0DAMgC;AAChC,+BAA6B;AAC7B,mCAA+B;AAC/B,0EAAsE;AACtE,kEAA8D;AAE9D,MAAM,iBAAiB,GAAG,IAAI,qCAAiB,EAAE,CAAA;AACjD,MAAM,aAAa,GAAG,IAAI,6BAAa,EAAE,CAAA;AACzC,MAAM,gBAAgB,GAAG,IAAI,uBAAQ,CAAC,gBAAgB,EAAE,CAAA;AAExD,IAAI,QAAwB,CAAA;AAC5B,IAAI,cAA6B,CAAA;AACjC,MAAM,QAAQ,GAAG,oBAAK,CAAC,QAAQ,EAAE,CAAA;AAEjC,SAAS,CAAC,KAAK,IAAI,EAAE;IACnB,MAAM,KAAK,GAAG,MAAM,oBAAK,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAA;IAEzC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAA;IACzB,cAAc,GAAG,KAAK,CAAC,KAAK,CAAC,cAAc,CAAA;AAC7C,CAAC,CAAC,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