chainlinnk 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/bvh7av34.cjs +1 -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/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,164 @@
|
|
1
|
+
{
|
2
|
+
"__comment": "bytecode from verification on https://etherscan.io/address/0x514910771af9ca656af840dff83e8264ecf986ca#contracts",
|
3
|
+
"bytecode": "0x6060604052341561000f57600080fd5b5b600160a060020a03331660009081526001602052604090206b033b2e3c9fd0803ce800000090555b5b610c51806100486000396000f300606060405236156100b75763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100bc578063095ea7b31461014757806318160ddd1461017d57806323b872dd146101a2578063313ce567146101de5780634000aea014610207578063661884631461028057806370a08231146102b657806395d89b41146102e7578063a9059cbb14610372578063d73dd623146103a8578063dd62ed3e146103de575b600080fd5b34156100c757600080fd5b6100cf610415565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561010c5780820151818401525b6020016100f3565b50505050905090810190601f1680156101395780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561015257600080fd5b610169600160a060020a036004351660243561044c565b604051901515815260200160405180910390f35b341561018857600080fd5b610190610499565b60405190815260200160405180910390f35b34156101ad57600080fd5b610169600160a060020a03600435811690602435166044356104a9565b604051901515815260200160405180910390f35b34156101e957600080fd5b6101f16104f8565b60405160ff909116815260200160405180910390f35b341561021257600080fd5b61016960048035600160a060020a03169060248035919060649060443590810190830135806020601f820181900481020160405190810160405281815292919060208401838380828437509496506104fd95505050505050565b604051901515815260200160405180910390f35b341561028b57600080fd5b610169600160a060020a036004351660243561054c565b604051901515815260200160405180910390f35b34156102c157600080fd5b610190600160a060020a0360043516610648565b60405190815260200160405180910390f35b34156102f257600080fd5b6100cf610667565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561010c5780820151818401525b6020016100f3565b50505050905090810190601f1680156101395780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561037d57600080fd5b610169600160a060020a036004351660243561069e565b604051901515815260200160405180910390f35b34156103b357600080fd5b610169600160a060020a03600435166024356106eb565b604051901515815260200160405180910390f35b34156103e957600080fd5b610190600160a060020a0360043581169060243516610790565b60405190815260200160405180910390f35b60408051908101604052600f81527f436861696e4c696e6b20546f6b656e0000000000000000000000000000000000602082015281565b600082600160a060020a03811615801590610479575030600160a060020a031681600160a060020a031614155b151561048457600080fd5b61048e84846107bd565b91505b5b5092915050565b6b033b2e3c9fd0803ce800000081565b600082600160a060020a038116158015906104d6575030600160a060020a031681600160a060020a031614155b15156104e157600080fd5b6104ec85858561082a565b91505b5b509392505050565b601281565b600083600160a060020a0381161580159061052a575030600160a060020a031681600160a060020a031614155b151561053557600080fd5b6104ec85858561093c565b91505b5b509392505050565b600160a060020a033381166000908152600260209081526040808320938616835292905290812054808311156105a957600160a060020a0333811660009081526002602090815260408083209388168352929052908120556105e0565b6105b9818463ffffffff610a2316565b600160a060020a033381166000908152600260209081526040808320938916835292905220555b600160a060020a0333811660008181526002602090815260408083209489168084529490915290819020547f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925915190815260200160405180910390a3600191505b5092915050565b600160a060020a0381166000908152600160205260409020545b919050565b60408051908101604052600481527f4c494e4b00000000000000000000000000000000000000000000000000000000602082015281565b600082600160a060020a038116158015906106cb575030600160a060020a031681600160a060020a031614155b15156106d657600080fd5b61048e8484610a3a565b91505b5b5092915050565b600160a060020a033381166000908152600260209081526040808320938616835292905290812054610723908363ffffffff610afa16565b600160a060020a0333811660008181526002602090815260408083209489168084529490915290819020849055919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591905190815260200160405180910390a35060015b92915050565b600160a060020a038083166000908152600260209081526040808320938516835292905220545b92915050565b600160a060020a03338116600081815260026020908152604080832094871680845294909152808220859055909291907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a35060015b92915050565b600160a060020a03808416600081815260026020908152604080832033909516835293815283822054928252600190529182205461086e908463ffffffff610a2316565b600160a060020a0380871660009081526001602052604080822093909355908616815220546108a3908463ffffffff610afa16565b600160a060020a0385166000908152600160205260409020556108cc818463ffffffff610a2316565b600160a060020a03808716600081815260026020908152604080832033861684529091529081902093909355908616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9086905190815260200160405180910390a3600191505b509392505050565b60006109488484610a3a565b5083600160a060020a031633600160a060020a03167fe19260aff97b920c7df27010903aeb9c8d2be5d310a2c67824cf3f15396e4c16858560405182815260406020820181815290820183818151815260200191508051906020019080838360005b838110156109c35780820151818401525b6020016109aa565b50505050905090810190601f1680156109f05780820380516001836020036101000a031916815260200191505b50935050505060405180910390a3610a0784610b14565b15610a1757610a17848484610b23565b5b5060015b9392505050565b600082821115610a2f57fe5b508082035b92915050565b600160a060020a033316600090815260016020526040812054610a63908363ffffffff610a2316565b600160a060020a033381166000908152600160205260408082209390935590851681522054610a98908363ffffffff610afa16565b600160a060020a0380851660008181526001602052604090819020939093559133909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a35060015b92915050565b600082820183811015610b0957fe5b8091505b5092915050565b6000813b908111905b50919050565b82600160a060020a03811663a4c0ed363385856040518463ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018084600160a060020a0316600160a060020a0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610bbd5780820151818401525b602001610ba4565b50505050905090810190601f168015610bea5780820380516001836020036101000a031916815260200191505b50945050505050600060405180830381600087803b1515610c0a57600080fd5b6102c65a03f11515610c1b57600080fd5b5050505b505050505600a165627a7a72305820c5f438ff94e5ddaf2058efa0019e246c636c37a622e04bb67827c7374acad8d60029",
|
4
|
+
"abi": [
|
5
|
+
{
|
6
|
+
"constant": true,
|
7
|
+
"inputs": [],
|
8
|
+
"name": "name",
|
9
|
+
"outputs": [{ "name": "", "type": "string" }],
|
10
|
+
"payable": false,
|
11
|
+
"stateMutability": "view",
|
12
|
+
"type": "function"
|
13
|
+
},
|
14
|
+
{
|
15
|
+
"constant": false,
|
16
|
+
"inputs": [
|
17
|
+
{ "name": "_spender", "type": "address" },
|
18
|
+
{ "name": "_value", "type": "uint256" }
|
19
|
+
],
|
20
|
+
"name": "approve",
|
21
|
+
"outputs": [{ "name": "", "type": "bool" }],
|
22
|
+
"payable": false,
|
23
|
+
"stateMutability": "nonpayable",
|
24
|
+
"type": "function"
|
25
|
+
},
|
26
|
+
{
|
27
|
+
"constant": true,
|
28
|
+
"inputs": [],
|
29
|
+
"name": "totalSupply",
|
30
|
+
"outputs": [{ "name": "", "type": "uint256" }],
|
31
|
+
"payable": false,
|
32
|
+
"stateMutability": "view",
|
33
|
+
"type": "function"
|
34
|
+
},
|
35
|
+
{
|
36
|
+
"constant": false,
|
37
|
+
"inputs": [
|
38
|
+
{ "name": "_from", "type": "address" },
|
39
|
+
{ "name": "_to", "type": "address" },
|
40
|
+
{ "name": "_value", "type": "uint256" }
|
41
|
+
],
|
42
|
+
"name": "transferFrom",
|
43
|
+
"outputs": [{ "name": "", "type": "bool" }],
|
44
|
+
"payable": false,
|
45
|
+
"stateMutability": "nonpayable",
|
46
|
+
"type": "function"
|
47
|
+
},
|
48
|
+
{
|
49
|
+
"constant": true,
|
50
|
+
"inputs": [],
|
51
|
+
"name": "decimals",
|
52
|
+
"outputs": [{ "name": "", "type": "uint8" }],
|
53
|
+
"payable": false,
|
54
|
+
"stateMutability": "view",
|
55
|
+
"type": "function"
|
56
|
+
},
|
57
|
+
{
|
58
|
+
"constant": false,
|
59
|
+
"inputs": [
|
60
|
+
{ "name": "_to", "type": "address" },
|
61
|
+
{ "name": "_value", "type": "uint256" },
|
62
|
+
{ "name": "_data", "type": "bytes" }
|
63
|
+
],
|
64
|
+
"name": "transferAndCall",
|
65
|
+
"outputs": [{ "name": "success", "type": "bool" }],
|
66
|
+
"payable": false,
|
67
|
+
"stateMutability": "nonpayable",
|
68
|
+
"type": "function"
|
69
|
+
},
|
70
|
+
{
|
71
|
+
"constant": false,
|
72
|
+
"inputs": [
|
73
|
+
{ "name": "_spender", "type": "address" },
|
74
|
+
{ "name": "_subtractedValue", "type": "uint256" }
|
75
|
+
],
|
76
|
+
"name": "decreaseApproval",
|
77
|
+
"outputs": [{ "name": "success", "type": "bool" }],
|
78
|
+
"payable": false,
|
79
|
+
"stateMutability": "nonpayable",
|
80
|
+
"type": "function"
|
81
|
+
},
|
82
|
+
{
|
83
|
+
"constant": true,
|
84
|
+
"inputs": [{ "name": "_owner", "type": "address" }],
|
85
|
+
"name": "balanceOf",
|
86
|
+
"outputs": [{ "name": "balance", "type": "uint256" }],
|
87
|
+
"payable": false,
|
88
|
+
"stateMutability": "view",
|
89
|
+
"type": "function"
|
90
|
+
},
|
91
|
+
{
|
92
|
+
"constant": true,
|
93
|
+
"inputs": [],
|
94
|
+
"name": "symbol",
|
95
|
+
"outputs": [{ "name": "", "type": "string" }],
|
96
|
+
"payable": false,
|
97
|
+
"stateMutability": "view",
|
98
|
+
"type": "function"
|
99
|
+
},
|
100
|
+
{
|
101
|
+
"constant": false,
|
102
|
+
"inputs": [
|
103
|
+
{ "name": "_to", "type": "address" },
|
104
|
+
{ "name": "_value", "type": "uint256" }
|
105
|
+
],
|
106
|
+
"name": "transfer",
|
107
|
+
"outputs": [{ "name": "success", "type": "bool" }],
|
108
|
+
"payable": false,
|
109
|
+
"stateMutability": "nonpayable",
|
110
|
+
"type": "function"
|
111
|
+
},
|
112
|
+
{
|
113
|
+
"constant": false,
|
114
|
+
"inputs": [
|
115
|
+
{ "name": "_spender", "type": "address" },
|
116
|
+
{ "name": "_addedValue", "type": "uint256" }
|
117
|
+
],
|
118
|
+
"name": "increaseApproval",
|
119
|
+
"outputs": [{ "name": "success", "type": "bool" }],
|
120
|
+
"payable": false,
|
121
|
+
"stateMutability": "nonpayable",
|
122
|
+
"type": "function"
|
123
|
+
},
|
124
|
+
{
|
125
|
+
"constant": true,
|
126
|
+
"inputs": [
|
127
|
+
{ "name": "_owner", "type": "address" },
|
128
|
+
{ "name": "_spender", "type": "address" }
|
129
|
+
],
|
130
|
+
"name": "allowance",
|
131
|
+
"outputs": [{ "name": "remaining", "type": "uint256" }],
|
132
|
+
"payable": false,
|
133
|
+
"stateMutability": "view",
|
134
|
+
"type": "function"
|
135
|
+
},
|
136
|
+
{
|
137
|
+
"inputs": [],
|
138
|
+
"payable": false,
|
139
|
+
"stateMutability": "nonpayable",
|
140
|
+
"type": "constructor"
|
141
|
+
},
|
142
|
+
{
|
143
|
+
"anonymous": false,
|
144
|
+
"inputs": [
|
145
|
+
{ "indexed": true, "name": "from", "type": "address" },
|
146
|
+
{ "indexed": true, "name": "to", "type": "address" },
|
147
|
+
{ "indexed": false, "name": "value", "type": "uint256" },
|
148
|
+
{ "indexed": false, "name": "data", "type": "bytes" }
|
149
|
+
],
|
150
|
+
"name": "Transfer",
|
151
|
+
"type": "event"
|
152
|
+
},
|
153
|
+
{
|
154
|
+
"anonymous": false,
|
155
|
+
"inputs": [
|
156
|
+
{ "indexed": true, "name": "owner", "type": "address" },
|
157
|
+
{ "indexed": true, "name": "spender", "type": "address" },
|
158
|
+
{ "indexed": false, "name": "value", "type": "uint256" }
|
159
|
+
],
|
160
|
+
"name": "Approval",
|
161
|
+
"type": "event"
|
162
|
+
}
|
163
|
+
]
|
164
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
/**
|
2
|
+
* The type of any function that is deployable
|
3
|
+
*/
|
4
|
+
declare type Deployable = {
|
5
|
+
deploy: (...deployArgs: any[]) => Promise<any>;
|
6
|
+
};
|
7
|
+
/**
|
8
|
+
* Get the return type of a function, and unbox any promises
|
9
|
+
*/
|
10
|
+
export declare type Instance<T extends Deployable> = T extends {
|
11
|
+
deploy: (...deployArgs: any[]) => Promise<infer U>;
|
12
|
+
} ? U : never;
|
13
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"contract.js","sourceRoot":"","sources":["../../src/contract.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import debug from 'debug';
|
2
|
+
/**
|
3
|
+
* This creates a debug logger instance to be used within our internal code.
|
4
|
+
* @see https://www.npmjs.com/package/debug to see how to use the logger at runtime
|
5
|
+
* @see wallet.ts makes extensive use of this function.
|
6
|
+
* @param name The root namespace to assign to the log messages
|
7
|
+
*/
|
8
|
+
export declare function makeDebug(name: string): debug.Debugger;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
const debug_1 = __importDefault(require("debug"));
|
7
|
+
/**
|
8
|
+
* This creates a debug logger instance to be used within our internal code.
|
9
|
+
* @see https://www.npmjs.com/package/debug to see how to use the logger at runtime
|
10
|
+
* @see wallet.ts makes extensive use of this function.
|
11
|
+
* @param name The root namespace to assign to the log messages
|
12
|
+
*/
|
13
|
+
function makeDebug(name) {
|
14
|
+
return debug_1.default(name);
|
15
|
+
}
|
16
|
+
exports.makeDebug = makeDebug;
|
17
|
+
//# sourceMappingURL=debug.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"debug.js","sourceRoot":"","sources":["../../src/debug.ts"],"names":[],"mappings":";;;;;AAAA,kDAAyB;AAEzB;;;;;GAKG;AACH,SAAgB,SAAS,CAAC,IAAY;IACpC,OAAO,eAAK,CAAC,IAAI,CAAC,CAAA;AACpB,CAAC;AAFD,8BAEC"}
|
@@ -0,0 +1,372 @@
|
|
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 AggregatorInterface extends Interface {
|
14
|
+
functions: {
|
15
|
+
cancelRequest: TypedFunctionDescription<{
|
16
|
+
encode([_requestId, _payment, _expiration]: [
|
17
|
+
Arrayish,
|
18
|
+
BigNumberish,
|
19
|
+
BigNumberish
|
20
|
+
]): string;
|
21
|
+
}>;
|
22
|
+
|
23
|
+
authorizedRequesters: TypedFunctionDescription<{
|
24
|
+
encode([]: [string]): string;
|
25
|
+
}>;
|
26
|
+
|
27
|
+
jobIds: TypedFunctionDescription<{ encode([]: [BigNumberish]): string }>;
|
28
|
+
|
29
|
+
latestAnswer: TypedFunctionDescription<{ encode([]: []): string }>;
|
30
|
+
|
31
|
+
minimumResponses: TypedFunctionDescription<{ encode([]: []): string }>;
|
32
|
+
|
33
|
+
oracles: TypedFunctionDescription<{ encode([]: [BigNumberish]): string }>;
|
34
|
+
|
35
|
+
transferLINK: TypedFunctionDescription<{
|
36
|
+
encode([_recipient, _amount]: [string, BigNumberish]): string;
|
37
|
+
}>;
|
38
|
+
|
39
|
+
latestRound: TypedFunctionDescription<{ encode([]: []): string }>;
|
40
|
+
|
41
|
+
chainlinkCallback: TypedFunctionDescription<{
|
42
|
+
encode([_clRequestId, _response]: [Arrayish, BigNumberish]): string;
|
43
|
+
}>;
|
44
|
+
|
45
|
+
renounceOwnership: TypedFunctionDescription<{ encode([]: []): string }>;
|
46
|
+
|
47
|
+
updateRequestDetails: TypedFunctionDescription<{
|
48
|
+
encode([_paymentAmount, _minimumResponses, _oracles, _jobIds]: [
|
49
|
+
BigNumberish,
|
50
|
+
BigNumberish,
|
51
|
+
string[],
|
52
|
+
Arrayish[]
|
53
|
+
]): string;
|
54
|
+
}>;
|
55
|
+
|
56
|
+
latestTimestamp: TypedFunctionDescription<{ encode([]: []): string }>;
|
57
|
+
|
58
|
+
destroy: TypedFunctionDescription<{ encode([]: []): string }>;
|
59
|
+
|
60
|
+
owner: TypedFunctionDescription<{ encode([]: []): string }>;
|
61
|
+
|
62
|
+
getAnswer: TypedFunctionDescription<{
|
63
|
+
encode([_roundId]: [BigNumberish]): string;
|
64
|
+
}>;
|
65
|
+
|
66
|
+
getTimestamp: TypedFunctionDescription<{
|
67
|
+
encode([_roundId]: [BigNumberish]): string;
|
68
|
+
}>;
|
69
|
+
|
70
|
+
paymentAmount: TypedFunctionDescription<{ encode([]: []): string }>;
|
71
|
+
|
72
|
+
requestRateUpdate: TypedFunctionDescription<{ encode([]: []): string }>;
|
73
|
+
|
74
|
+
setAuthorization: TypedFunctionDescription<{
|
75
|
+
encode([_requester, _allowed]: [string, boolean]): string;
|
76
|
+
}>;
|
77
|
+
|
78
|
+
transferOwnership: TypedFunctionDescription<{
|
79
|
+
encode([_newOwner]: [string]): string;
|
80
|
+
}>;
|
81
|
+
};
|
82
|
+
|
83
|
+
events: {
|
84
|
+
ResponseReceived: TypedEventDescription<{
|
85
|
+
encodeTopics([response, answerId, sender]: [
|
86
|
+
BigNumberish | null,
|
87
|
+
BigNumberish | null,
|
88
|
+
string | null
|
89
|
+
]): string[];
|
90
|
+
}>;
|
91
|
+
|
92
|
+
OwnershipRenounced: TypedEventDescription<{
|
93
|
+
encodeTopics([previousOwner]: [string | null]): string[];
|
94
|
+
}>;
|
95
|
+
|
96
|
+
OwnershipTransferred: TypedEventDescription<{
|
97
|
+
encodeTopics([previousOwner, newOwner]: [
|
98
|
+
string | null,
|
99
|
+
string | null
|
100
|
+
]): string[];
|
101
|
+
}>;
|
102
|
+
|
103
|
+
ChainlinkRequested: TypedEventDescription<{
|
104
|
+
encodeTopics([id]: [Arrayish | null]): string[];
|
105
|
+
}>;
|
106
|
+
|
107
|
+
ChainlinkFulfilled: TypedEventDescription<{
|
108
|
+
encodeTopics([id]: [Arrayish | null]): string[];
|
109
|
+
}>;
|
110
|
+
|
111
|
+
ChainlinkCancelled: TypedEventDescription<{
|
112
|
+
encodeTopics([id]: [Arrayish | null]): string[];
|
113
|
+
}>;
|
114
|
+
|
115
|
+
AnswerUpdated: TypedEventDescription<{
|
116
|
+
encodeTopics([current, roundId, timestamp]: [
|
117
|
+
BigNumberish | null,
|
118
|
+
BigNumberish | null,
|
119
|
+
null
|
120
|
+
]): string[];
|
121
|
+
}>;
|
122
|
+
|
123
|
+
NewRound: TypedEventDescription<{
|
124
|
+
encodeTopics([roundId, startedBy]: [
|
125
|
+
BigNumberish | null,
|
126
|
+
string | null
|
127
|
+
]): string[];
|
128
|
+
}>;
|
129
|
+
};
|
130
|
+
}
|
131
|
+
|
132
|
+
export class Aggregator extends Contract {
|
133
|
+
connect(signerOrProvider: Signer | Provider | string): Aggregator;
|
134
|
+
attach(addressOrName: string): Aggregator;
|
135
|
+
deployed(): Promise<Aggregator>;
|
136
|
+
|
137
|
+
on(event: EventFilter | string, listener: Listener): Aggregator;
|
138
|
+
once(event: EventFilter | string, listener: Listener): Aggregator;
|
139
|
+
addListener(eventName: EventFilter | string, listener: Listener): Aggregator;
|
140
|
+
removeAllListeners(eventName: EventFilter | string): Aggregator;
|
141
|
+
removeListener(eventName: any, listener: Listener): Aggregator;
|
142
|
+
|
143
|
+
interface: AggregatorInterface;
|
144
|
+
|
145
|
+
functions: {
|
146
|
+
cancelRequest(
|
147
|
+
_requestId: Arrayish,
|
148
|
+
_payment: BigNumberish,
|
149
|
+
_expiration: BigNumberish,
|
150
|
+
overrides?: TransactionOverrides
|
151
|
+
): Promise<ContractTransaction>;
|
152
|
+
|
153
|
+
authorizedRequesters(arg0: string): Promise<boolean>;
|
154
|
+
|
155
|
+
jobIds(arg0: BigNumberish): Promise<string>;
|
156
|
+
|
157
|
+
latestAnswer(): Promise<BigNumber>;
|
158
|
+
|
159
|
+
minimumResponses(): Promise<BigNumber>;
|
160
|
+
|
161
|
+
oracles(arg0: BigNumberish): Promise<string>;
|
162
|
+
|
163
|
+
transferLINK(
|
164
|
+
_recipient: string,
|
165
|
+
_amount: BigNumberish,
|
166
|
+
overrides?: TransactionOverrides
|
167
|
+
): Promise<ContractTransaction>;
|
168
|
+
|
169
|
+
latestRound(): Promise<BigNumber>;
|
170
|
+
|
171
|
+
chainlinkCallback(
|
172
|
+
_clRequestId: Arrayish,
|
173
|
+
_response: BigNumberish,
|
174
|
+
overrides?: TransactionOverrides
|
175
|
+
): Promise<ContractTransaction>;
|
176
|
+
|
177
|
+
renounceOwnership(
|
178
|
+
overrides?: TransactionOverrides
|
179
|
+
): Promise<ContractTransaction>;
|
180
|
+
|
181
|
+
updateRequestDetails(
|
182
|
+
_paymentAmount: BigNumberish,
|
183
|
+
_minimumResponses: BigNumberish,
|
184
|
+
_oracles: string[],
|
185
|
+
_jobIds: Arrayish[],
|
186
|
+
overrides?: TransactionOverrides
|
187
|
+
): Promise<ContractTransaction>;
|
188
|
+
|
189
|
+
latestTimestamp(): Promise<BigNumber>;
|
190
|
+
|
191
|
+
destroy(overrides?: TransactionOverrides): Promise<ContractTransaction>;
|
192
|
+
|
193
|
+
owner(): Promise<string>;
|
194
|
+
|
195
|
+
getAnswer(_roundId: BigNumberish): Promise<BigNumber>;
|
196
|
+
|
197
|
+
getTimestamp(_roundId: BigNumberish): Promise<BigNumber>;
|
198
|
+
|
199
|
+
paymentAmount(): Promise<BigNumber>;
|
200
|
+
|
201
|
+
requestRateUpdate(
|
202
|
+
overrides?: TransactionOverrides
|
203
|
+
): Promise<ContractTransaction>;
|
204
|
+
|
205
|
+
setAuthorization(
|
206
|
+
_requester: string,
|
207
|
+
_allowed: boolean,
|
208
|
+
overrides?: TransactionOverrides
|
209
|
+
): Promise<ContractTransaction>;
|
210
|
+
|
211
|
+
transferOwnership(
|
212
|
+
_newOwner: string,
|
213
|
+
overrides?: TransactionOverrides
|
214
|
+
): Promise<ContractTransaction>;
|
215
|
+
};
|
216
|
+
|
217
|
+
cancelRequest(
|
218
|
+
_requestId: Arrayish,
|
219
|
+
_payment: BigNumberish,
|
220
|
+
_expiration: BigNumberish,
|
221
|
+
overrides?: TransactionOverrides
|
222
|
+
): Promise<ContractTransaction>;
|
223
|
+
|
224
|
+
authorizedRequesters(arg0: string): Promise<boolean>;
|
225
|
+
|
226
|
+
jobIds(arg0: BigNumberish): Promise<string>;
|
227
|
+
|
228
|
+
latestAnswer(): Promise<BigNumber>;
|
229
|
+
|
230
|
+
minimumResponses(): Promise<BigNumber>;
|
231
|
+
|
232
|
+
oracles(arg0: BigNumberish): Promise<string>;
|
233
|
+
|
234
|
+
transferLINK(
|
235
|
+
_recipient: string,
|
236
|
+
_amount: BigNumberish,
|
237
|
+
overrides?: TransactionOverrides
|
238
|
+
): Promise<ContractTransaction>;
|
239
|
+
|
240
|
+
latestRound(): Promise<BigNumber>;
|
241
|
+
|
242
|
+
chainlinkCallback(
|
243
|
+
_clRequestId: Arrayish,
|
244
|
+
_response: BigNumberish,
|
245
|
+
overrides?: TransactionOverrides
|
246
|
+
): Promise<ContractTransaction>;
|
247
|
+
|
248
|
+
renounceOwnership(
|
249
|
+
overrides?: TransactionOverrides
|
250
|
+
): Promise<ContractTransaction>;
|
251
|
+
|
252
|
+
updateRequestDetails(
|
253
|
+
_paymentAmount: BigNumberish,
|
254
|
+
_minimumResponses: BigNumberish,
|
255
|
+
_oracles: string[],
|
256
|
+
_jobIds: Arrayish[],
|
257
|
+
overrides?: TransactionOverrides
|
258
|
+
): Promise<ContractTransaction>;
|
259
|
+
|
260
|
+
latestTimestamp(): Promise<BigNumber>;
|
261
|
+
|
262
|
+
destroy(overrides?: TransactionOverrides): Promise<ContractTransaction>;
|
263
|
+
|
264
|
+
owner(): Promise<string>;
|
265
|
+
|
266
|
+
getAnswer(_roundId: BigNumberish): Promise<BigNumber>;
|
267
|
+
|
268
|
+
getTimestamp(_roundId: BigNumberish): Promise<BigNumber>;
|
269
|
+
|
270
|
+
paymentAmount(): Promise<BigNumber>;
|
271
|
+
|
272
|
+
requestRateUpdate(
|
273
|
+
overrides?: TransactionOverrides
|
274
|
+
): Promise<ContractTransaction>;
|
275
|
+
|
276
|
+
setAuthorization(
|
277
|
+
_requester: string,
|
278
|
+
_allowed: boolean,
|
279
|
+
overrides?: TransactionOverrides
|
280
|
+
): Promise<ContractTransaction>;
|
281
|
+
|
282
|
+
transferOwnership(
|
283
|
+
_newOwner: string,
|
284
|
+
overrides?: TransactionOverrides
|
285
|
+
): Promise<ContractTransaction>;
|
286
|
+
|
287
|
+
filters: {
|
288
|
+
ResponseReceived(
|
289
|
+
response: BigNumberish | null,
|
290
|
+
answerId: BigNumberish | null,
|
291
|
+
sender: string | null
|
292
|
+
): EventFilter;
|
293
|
+
|
294
|
+
OwnershipRenounced(previousOwner: string | null): EventFilter;
|
295
|
+
|
296
|
+
OwnershipTransferred(
|
297
|
+
previousOwner: string | null,
|
298
|
+
newOwner: string | null
|
299
|
+
): EventFilter;
|
300
|
+
|
301
|
+
ChainlinkRequested(id: Arrayish | null): EventFilter;
|
302
|
+
|
303
|
+
ChainlinkFulfilled(id: Arrayish | null): EventFilter;
|
304
|
+
|
305
|
+
ChainlinkCancelled(id: Arrayish | null): EventFilter;
|
306
|
+
|
307
|
+
AnswerUpdated(
|
308
|
+
current: BigNumberish | null,
|
309
|
+
roundId: BigNumberish | null,
|
310
|
+
timestamp: null
|
311
|
+
): EventFilter;
|
312
|
+
|
313
|
+
NewRound(
|
314
|
+
roundId: BigNumberish | null,
|
315
|
+
startedBy: string | null
|
316
|
+
): EventFilter;
|
317
|
+
};
|
318
|
+
|
319
|
+
estimate: {
|
320
|
+
cancelRequest(
|
321
|
+
_requestId: Arrayish,
|
322
|
+
_payment: BigNumberish,
|
323
|
+
_expiration: BigNumberish
|
324
|
+
): Promise<BigNumber>;
|
325
|
+
|
326
|
+
authorizedRequesters(arg0: string): Promise<BigNumber>;
|
327
|
+
|
328
|
+
jobIds(arg0: BigNumberish): Promise<BigNumber>;
|
329
|
+
|
330
|
+
latestAnswer(): Promise<BigNumber>;
|
331
|
+
|
332
|
+
minimumResponses(): Promise<BigNumber>;
|
333
|
+
|
334
|
+
oracles(arg0: BigNumberish): Promise<BigNumber>;
|
335
|
+
|
336
|
+
transferLINK(_recipient: string, _amount: BigNumberish): Promise<BigNumber>;
|
337
|
+
|
338
|
+
latestRound(): Promise<BigNumber>;
|
339
|
+
|
340
|
+
chainlinkCallback(
|
341
|
+
_clRequestId: Arrayish,
|
342
|
+
_response: BigNumberish
|
343
|
+
): Promise<BigNumber>;
|
344
|
+
|
345
|
+
renounceOwnership(): Promise<BigNumber>;
|
346
|
+
|
347
|
+
updateRequestDetails(
|
348
|
+
_paymentAmount: BigNumberish,
|
349
|
+
_minimumResponses: BigNumberish,
|
350
|
+
_oracles: string[],
|
351
|
+
_jobIds: Arrayish[]
|
352
|
+
): Promise<BigNumber>;
|
353
|
+
|
354
|
+
latestTimestamp(): Promise<BigNumber>;
|
355
|
+
|
356
|
+
destroy(): Promise<BigNumber>;
|
357
|
+
|
358
|
+
owner(): Promise<BigNumber>;
|
359
|
+
|
360
|
+
getAnswer(_roundId: BigNumberish): Promise<BigNumber>;
|
361
|
+
|
362
|
+
getTimestamp(_roundId: BigNumberish): Promise<BigNumber>;
|
363
|
+
|
364
|
+
paymentAmount(): Promise<BigNumber>;
|
365
|
+
|
366
|
+
requestRateUpdate(): Promise<BigNumber>;
|
367
|
+
|
368
|
+
setAuthorization(_requester: string, _allowed: boolean): Promise<BigNumber>;
|
369
|
+
|
370
|
+
transferOwnership(_newOwner: string): Promise<BigNumber>;
|
371
|
+
};
|
372
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { ContractFactory, Signer } from "ethers";
|
2
|
+
import { Provider } from "ethers/providers";
|
3
|
+
import { UnsignedTransaction } from "ethers/utils/transaction";
|
4
|
+
import { Arrayish, BigNumberish } from "ethers/utils";
|
5
|
+
import { Aggregator } from "./Aggregator";
|
6
|
+
export declare class AggregatorFactory extends ContractFactory {
|
7
|
+
constructor(signer?: Signer);
|
8
|
+
deploy(_link: string, _paymentAmount: BigNumberish, _minimumResponses: BigNumberish, _oracles: string[], _jobIds: Arrayish[]): Promise<Aggregator>;
|
9
|
+
getDeployTransaction(_link: string, _paymentAmount: BigNumberish, _minimumResponses: BigNumberish, _oracles: string[], _jobIds: Arrayish[]): UnsignedTransaction;
|
10
|
+
attach(address: string): Aggregator;
|
11
|
+
connect(signer: Signer): AggregatorFactory;
|
12
|
+
static connect(address: string, signerOrProvider: Signer | Provider): Aggregator;
|
13
|
+
}
|