Contract 0xbD7bf2cf60036368eE2993CC8985B85B9Dc794C8

Contract Overview

Balance:
0 DEV
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x65de6124aad45032f7025350225d45b6697eecbfb8bfd4cf925210683f665059Set Answer24962942022-07-16 6:43:24253 days 18 hrs ago0xaaaa8c5867f5c44b6025688f481b34514e09fd8d IN 0xbd7bf2cf60036368ee2993cc8985b85b9dc794c80 DEV0.000047368
0x4cfa96b43027d1f9120d769702de389affc00cdb808cc68b4616f64f98dc958cSet Answer24296362022-07-05 18:02:30264 days 6 hrs ago0xbad1b4713249a21d8ac2737eee3c1d12b76ac52c IN 0xbd7bf2cf60036368ee2993cc8985b85b9dc794c80 DEV0.000047368
0x16b78b5974accba997ab0a3de8fb2771920016bbf4b516661720cf11a8c931570x6080604020886292022-05-02 6:27:30328 days 18 hrs ago0xace4eab92940df29977f8b44c0ef1a89f221f21c IN  Create: TestChainlinkFeed0 DEV0.000256719
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xef91a7636cb7d75fc43c73d17e35fc2ef5a4ea9056cffa48f3b96bf69bee04d138315882023-02-26 15:03:3028 days 9 hrs ago 0x8c119ec6d5f1030fc810d9085db6cb74da47d4d50xbd7bf2cf60036368ee2993cc8985b85b9dc794c80 DEV
0xef91a7636cb7d75fc43c73d17e35fc2ef5a4ea9056cffa48f3b96bf69bee04d138315882023-02-26 15:03:3028 days 9 hrs ago 0x8c119ec6d5f1030fc810d9085db6cb74da47d4d50xbd7bf2cf60036368ee2993cc8985b85b9dc794c80 DEV
0xef91a7636cb7d75fc43c73d17e35fc2ef5a4ea9056cffa48f3b96bf69bee04d138315882023-02-26 15:03:3028 days 9 hrs ago 0x8c119ec6d5f1030fc810d9085db6cb74da47d4d50xbd7bf2cf60036368ee2993cc8985b85b9dc794c80 DEV
0xef91a7636cb7d75fc43c73d17e35fc2ef5a4ea9056cffa48f3b96bf69bee04d138315882023-02-26 15:03:3028 days 9 hrs ago 0x8c119ec6d5f1030fc810d9085db6cb74da47d4d50xbd7bf2cf60036368ee2993cc8985b85b9dc794c80 DEV
0xef91a7636cb7d75fc43c73d17e35fc2ef5a4ea9056cffa48f3b96bf69bee04d138315882023-02-26 15:03:3028 days 9 hrs ago 0x8c119ec6d5f1030fc810d9085db6cb74da47d4d50xbd7bf2cf60036368ee2993cc8985b85b9dc794c80 DEV
0xef91a7636cb7d75fc43c73d17e35fc2ef5a4ea9056cffa48f3b96bf69bee04d138315882023-02-26 15:03:3028 days 9 hrs ago 0x8c119ec6d5f1030fc810d9085db6cb74da47d4d50xbd7bf2cf60036368ee2993cc8985b85b9dc794c80 DEV
0xef91a7636cb7d75fc43c73d17e35fc2ef5a4ea9056cffa48f3b96bf69bee04d138315882023-02-26 15:03:3028 days 9 hrs ago 0x8c119ec6d5f1030fc810d9085db6cb74da47d4d50xbd7bf2cf60036368ee2993cc8985b85b9dc794c80 DEV
0xef91a7636cb7d75fc43c73d17e35fc2ef5a4ea9056cffa48f3b96bf69bee04d138315882023-02-26 15:03:3028 days 9 hrs ago 0x8c119ec6d5f1030fc810d9085db6cb74da47d4d50xbd7bf2cf60036368ee2993cc8985b85b9dc794c80 DEV
0xef91a7636cb7d75fc43c73d17e35fc2ef5a4ea9056cffa48f3b96bf69bee04d138315882023-02-26 15:03:3028 days 9 hrs ago 0x8c119ec6d5f1030fc810d9085db6cb74da47d4d50xbd7bf2cf60036368ee2993cc8985b85b9dc794c80 DEV
0xef91a7636cb7d75fc43c73d17e35fc2ef5a4ea9056cffa48f3b96bf69bee04d138315882023-02-26 15:03:3028 days 9 hrs ago 0x8c119ec6d5f1030fc810d9085db6cb74da47d4d50xbd7bf2cf60036368ee2993cc8985b85b9dc794c80 DEV
0xef91a7636cb7d75fc43c73d17e35fc2ef5a4ea9056cffa48f3b96bf69bee04d138315882023-02-26 15:03:3028 days 9 hrs ago 0x8c119ec6d5f1030fc810d9085db6cb74da47d4d50xbd7bf2cf60036368ee2993cc8985b85b9dc794c80 DEV
0xef91a7636cb7d75fc43c73d17e35fc2ef5a4ea9056cffa48f3b96bf69bee04d138315882023-02-26 15:03:3028 days 9 hrs ago 0x8c119ec6d5f1030fc810d9085db6cb74da47d4d50xbd7bf2cf60036368ee2993cc8985b85b9dc794c80 DEV
0xef91a7636cb7d75fc43c73d17e35fc2ef5a4ea9056cffa48f3b96bf69bee04d138315882023-02-26 15:03:3028 days 9 hrs ago 0x8c119ec6d5f1030fc810d9085db6cb74da47d4d50xbd7bf2cf60036368ee2993cc8985b85b9dc794c80 DEV
0xef91a7636cb7d75fc43c73d17e35fc2ef5a4ea9056cffa48f3b96bf69bee04d138315882023-02-26 15:03:3028 days 9 hrs ago 0x8c119ec6d5f1030fc810d9085db6cb74da47d4d50xbd7bf2cf60036368ee2993cc8985b85b9dc794c80 DEV
0x085924766119f19eba66b099723cbbabab02bd90b050baf21366a3463e18155837161262023-02-09 15:29:4845 days 9 hrs ago 0x8c119ec6d5f1030fc810d9085db6cb74da47d4d50xbd7bf2cf60036368ee2993cc8985b85b9dc794c80 DEV
0x085924766119f19eba66b099723cbbabab02bd90b050baf21366a3463e18155837161262023-02-09 15:29:4845 days 9 hrs ago 0x8c119ec6d5f1030fc810d9085db6cb74da47d4d50xbd7bf2cf60036368ee2993cc8985b85b9dc794c80 DEV
0x085924766119f19eba66b099723cbbabab02bd90b050baf21366a3463e18155837161262023-02-09 15:29:4845 days 9 hrs ago 0x8c119ec6d5f1030fc810d9085db6cb74da47d4d50xbd7bf2cf60036368ee2993cc8985b85b9dc794c80 DEV
0x085924766119f19eba66b099723cbbabab02bd90b050baf21366a3463e18155837161262023-02-09 15:29:4845 days 9 hrs ago 0x8c119ec6d5f1030fc810d9085db6cb74da47d4d50xbd7bf2cf60036368ee2993cc8985b85b9dc794c80 DEV
0x085924766119f19eba66b099723cbbabab02bd90b050baf21366a3463e18155837161262023-02-09 15:29:4845 days 9 hrs ago 0x8c119ec6d5f1030fc810d9085db6cb74da47d4d50xbd7bf2cf60036368ee2993cc8985b85b9dc794c80 DEV
0x085924766119f19eba66b099723cbbabab02bd90b050baf21366a3463e18155837161262023-02-09 15:29:4845 days 9 hrs ago 0x8c119ec6d5f1030fc810d9085db6cb74da47d4d50xbd7bf2cf60036368ee2993cc8985b85b9dc794c80 DEV
0x8acf9fb97a4d210921ea8903c9fa8d469e074a27467dfd5130471baa048f354b36450262023-01-30 3:35:4855 days 21 hrs ago 0x8c119ec6d5f1030fc810d9085db6cb74da47d4d50xbd7bf2cf60036368ee2993cc8985b85b9dc794c80 DEV
0x8acf9fb97a4d210921ea8903c9fa8d469e074a27467dfd5130471baa048f354b36450262023-01-30 3:35:4855 days 21 hrs ago 0x8c119ec6d5f1030fc810d9085db6cb74da47d4d50xbd7bf2cf60036368ee2993cc8985b85b9dc794c80 DEV
0x8acf9fb97a4d210921ea8903c9fa8d469e074a27467dfd5130471baa048f354b36450262023-01-30 3:35:4855 days 21 hrs ago 0x8c119ec6d5f1030fc810d9085db6cb74da47d4d50xbd7bf2cf60036368ee2993cc8985b85b9dc794c80 DEV
0x8acf9fb97a4d210921ea8903c9fa8d469e074a27467dfd5130471baa048f354b36450262023-01-30 3:35:4855 days 21 hrs ago 0x8c119ec6d5f1030fc810d9085db6cb74da47d4d50xbd7bf2cf60036368ee2993cc8985b85b9dc794c80 DEV
0x8acf9fb97a4d210921ea8903c9fa8d469e074a27467dfd5130471baa048f354b36450262023-01-30 3:35:4855 days 21 hrs ago 0x8c119ec6d5f1030fc810d9085db6cb74da47d4d50xbd7bf2cf60036368ee2993cc8985b85b9dc794c80 DEV
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TestChainlinkFeed

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 2 : AggregatorV3Interface.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

interface AggregatorV3Interface {
    /**
     * Returns the decimals to offset on the getLatestPrice call
     */
    function decimals() external view returns (uint8);

    /**
     * Returns the description of the underlying price feed aggregator
     */
    function description() external view returns (string memory);

    /**
     * Returns the version number representing the type of aggregator the proxy points to
     */
    function version() external view returns (uint256);

    /**
     * Returns price data about a specific round
     */
    function getRoundData(uint80 _roundId) external view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);

    /**
     * Returns price data from the latest round
     */
    function latestRoundData() external view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);
}

File 2 of 2 : TestChainlinkFeed.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import "./interfaces/AggregatorV3Interface.sol";

contract TestChainlinkFeed is AggregatorV3Interface {

  int256 private _answer;
  string private _description;
  
  constructor(int256 answer_, string memory description_) {
    _answer = answer_;
    _description = description_;
  }

  function setAnswer(int256 answer_) external {
    _answer = answer_;
  }
  
  function decimals() external view returns(uint8){
    return 8;
  }

  function description() external view returns(string memory){
    return _description;
  }

  function version() external view returns(uint256){
    return 1;
  }
  
  function getRoundData(uint80 _roundId) external view returns(
                                                               uint80 roundId,
                                                               int256 answer,
                                                               uint256 startedAt,
                                                               uint256 updatedAt,
                                                               uint80 answeredInRound
                                                               ){
    return (_roundId, _answer, block.timestamp, block.timestamp, 0);
  }

  function latestRoundData() external view returns(
                                                   uint80 roundId,
                                                   int256 answer,
                                                   uint256 startedAt,
                                                   uint256 updatedAt,
                                                   uint80 answeredInRound
                                                   ){
    return (0, _answer, block.timestamp, block.timestamp, 0);
  }
  
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  },
  "metadata": {
    "useLiteralContent": true
  }
}

Contract ABI

[{"inputs":[{"internalType":"int256","name":"answer_","type":"int256"},{"internalType":"string","name":"description_","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"description","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint80","name":"_roundId","type":"uint80"}],"name":"getRoundData","outputs":[{"internalType":"uint80","name":"roundId","type":"uint80"},{"internalType":"int256","name":"answer","type":"int256"},{"internalType":"uint256","name":"startedAt","type":"uint256"},{"internalType":"uint256","name":"updatedAt","type":"uint256"},{"internalType":"uint80","name":"answeredInRound","type":"uint80"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"latestRoundData","outputs":[{"internalType":"uint80","name":"roundId","type":"uint80"},{"internalType":"int256","name":"answer","type":"int256"},{"internalType":"uint256","name":"startedAt","type":"uint256"},{"internalType":"uint256","name":"updatedAt","type":"uint256"},{"internalType":"uint80","name":"answeredInRound","type":"uint80"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"int256","name":"answer_","type":"int256"}],"name":"setAnswer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"version","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b506040516104da3803806104da83398101604081905261002f916100fe565b6000829055805161004790600190602084019061004f565b505050610216565b82805461005b906101db565b90600052602060002090601f01602090048101928261007d57600085556100c3565b82601f1061009657805160ff19168380011785556100c3565b828001600101855582156100c3579182015b828111156100c35782518255916020019190600101906100a8565b506100cf9291506100d3565b5090565b5b808211156100cf57600081556001016100d4565b634e487b7160e01b600052604160045260246000fd5b6000806040838503121561011157600080fd5b8251602080850151919350906001600160401b038082111561013257600080fd5b818601915086601f83011261014657600080fd5b815181811115610158576101586100e8565b604051601f8201601f19908116603f01168101908382118183101715610180576101806100e8565b81604052828152898684870101111561019857600080fd5b600093505b828410156101ba578484018601518185018701529285019261019d565b828411156101cb5760008684830101525b8096505050505050509250929050565b600181811c908216806101ef57607f821691505b6020821081141561021057634e487b7160e01b600052602260045260246000fd5b50919050565b6102b5806102256000396000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c8063313ce5671461006757806354fd4d501461007b5780637284e4161461008a57806399213cd81461009f5780639a6fc8f5146100b4578063feaf968c14610105575b600080fd5b604051600881526020015b60405180910390f35b60405160018152602001610072565b610092610111565b60405161007291906101a3565b6100b26100ad3660046101f8565b600055565b005b6100ce6100c2366004610211565b60008054919242918291565b6040805169ffffffffffffffffffff968716815260208101959095528401929092526060830152909116608082015260a001610072565b600080544280836100ce565b60606001805461012090610244565b80601f016020809104026020016040519081016040528092919081815260200182805461014c90610244565b80156101995780601f1061016e57610100808354040283529160200191610199565b820191906000526020600020905b81548152906001019060200180831161017c57829003601f168201915b5050505050905090565b600060208083528351808285015260005b818110156101d0578581018301518582016040015282016101b4565b818111156101e2576000604083870101525b50601f01601f1916929092016040019392505050565b60006020828403121561020a57600080fd5b5035919050565b60006020828403121561022357600080fd5b813569ffffffffffffffffffff8116811461023d57600080fd5b9392505050565b600181811c9082168061025857607f821691505b6020821081141561027957634e487b7160e01b600052602260045260246000fd5b5091905056fea26469706673582212200ca9c441e45560cf5e8b500b167ed93a7be8415c49e8a061f0927b6b57d39c4464736f6c634300080900330000000000000000000000000000000000000000000000000000000011e1a3000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000d574445562f555344206665656400000000000000000000000000000000000000

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000000000000000000000000000000000000011e1a3000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000d574445562f555344206665656400000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : answer_ (int256): 300000000
Arg [1] : description_ (string): WDEV/USD feed

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000011e1a300
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [2] : 000000000000000000000000000000000000000000000000000000000000000d
Arg [3] : 574445562f555344206665656400000000000000000000000000000000000000


Deployed ByteCode Sourcemap

107:1686:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;423:67;;;484:1;156:36:2;;144:2;129:18;423:67:0;;;;;;;;587:68;;;649:1;349:25:2;;337:2;322:18;587:68:0;203:177:2;494:89:0;;;:::i;:::-;;;;;;;:::i;345:72::-;;;;;;:::i;:::-;395:7;:17;345:72;;;661:607;;;;;;:::i;:::-;786:14;1218:7;;1208:8;;1227:15;;;;661:607;;;;;1727:22:2;1776:15;;;1758:34;;1823:2;1808:18;;1801:34;;;;1851:18;;1844:34;;;;1909:2;1894:18;;1887:34;1958:15;;;1952:3;1937:19;;1930:44;1704:3;1689:19;661:607:0;1464:516:2;1272::0;1373:14;1738:7;;1747:15;;1373:14;1272:516;;494:89;539:13;566:12;559:19;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;494:89;:::o;385:597:2:-;497:4;526:2;555;544:9;537:21;587:6;581:13;630:6;625:2;614:9;610:18;603:34;655:1;665:140;679:6;676:1;673:13;665:140;;;774:14;;;770:23;;764:30;740:17;;;759:2;736:26;729:66;694:10;;665:140;;;823:6;820:1;817:13;814:91;;;893:1;888:2;879:6;868:9;864:22;860:31;853:42;814:91;-1:-1:-1;966:2:2;945:15;-1:-1:-1;;941:29:2;926:45;;;;973:2;922:54;;385:597;-1:-1:-1;;;385:597:2:o;987:179::-;1045:6;1098:2;1086:9;1077:7;1073:23;1069:32;1066:52;;;1114:1;1111;1104:12;1066:52;-1:-1:-1;1137:23:2;;987:179;-1:-1:-1;987:179:2:o;1171:288::-;1229:6;1282:2;1270:9;1261:7;1257:23;1253:32;1250:52;;;1298:1;1295;1288:12;1250:52;1337:9;1324:23;1387:22;1380:5;1376:34;1369:5;1366:45;1356:73;;1425:1;1422;1415:12;1356:73;1448:5;1171:288;-1:-1:-1;;;1171:288:2:o;1985:380::-;2064:1;2060:12;;;;2107;;;2128:61;;2182:4;2174:6;2170:17;2160:27;;2128:61;2235:2;2227:6;2224:14;2204:18;2201:38;2198:161;;;2281:10;2276:3;2272:20;2269:1;2262:31;2316:4;2313:1;2306:15;2344:4;2341:1;2334:15;2198:161;;1985:380;;;:::o

Swarm Source

ipfs://0ca9c441e45560cf5e8b500b167ed93a7be8415c49e8a061f0927b6b57d39c44
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading