Moonbase Alpha Testnet

Contract

0xbD7bf2cf60036368eE2993CC8985B85B9Dc794C8

Overview

DEV Balance

Moonbase Alpha LogoMoonbase Alpha LogoMoonbase Alpha Logo0 DEV

Multichain Info

N/A
Transaction Hash
Method
Block
From
To
Value
Set Answer24962942022-07-16 6:43:24702 days ago1657953804IN
0xbD7bf2cf...B9Dc794C8
0 DEV0.000047362
Set Answer24296362022-07-05 18:02:30713 days ago1657044150IN
0xbD7bf2cf...B9Dc794C8
0 DEV0.000047362
0x6080604020886292022-05-02 6:27:30777 days ago1651472850IN
 Create: TestChainlinkFeed
0 DEV0.000256711

Latest 25 internal transactions (View All)

Parent Transaction Hash Block From To Value
41325722023-04-12 17:55:54432 days ago1681322154
0xbD7bf2cf...B9Dc794C8
0 DEV
41325722023-04-12 17:55:54432 days ago1681322154
0xbD7bf2cf...B9Dc794C8
0 DEV
41325722023-04-12 17:55:54432 days ago1681322154
0xbD7bf2cf...B9Dc794C8
0 DEV
41325722023-04-12 17:55:54432 days ago1681322154
0xbD7bf2cf...B9Dc794C8
0 DEV
41325722023-04-12 17:55:54432 days ago1681322154
0xbD7bf2cf...B9Dc794C8
0 DEV
41325722023-04-12 17:55:54432 days ago1681322154
0xbD7bf2cf...B9Dc794C8
0 DEV
41242242023-04-11 12:58:42433 days ago1681217922
0xbD7bf2cf...B9Dc794C8
0 DEV
41242242023-04-11 12:58:42433 days ago1681217922
0xbD7bf2cf...B9Dc794C8
0 DEV
41242242023-04-11 12:58:42433 days ago1681217922
0xbD7bf2cf...B9Dc794C8
0 DEV
41242242023-04-11 12:58:42433 days ago1681217922
0xbD7bf2cf...B9Dc794C8
0 DEV
41242242023-04-11 12:58:42433 days ago1681217922
0xbD7bf2cf...B9Dc794C8
0 DEV
41242242023-04-11 12:58:42433 days ago1681217922
0xbD7bf2cf...B9Dc794C8
0 DEV
38315882023-02-26 15:03:30477 days ago1677423810
0xbD7bf2cf...B9Dc794C8
0 DEV
38315882023-02-26 15:03:30477 days ago1677423810
0xbD7bf2cf...B9Dc794C8
0 DEV
38315882023-02-26 15:03:30477 days ago1677423810
0xbD7bf2cf...B9Dc794C8
0 DEV
38315882023-02-26 15:03:30477 days ago1677423810
0xbD7bf2cf...B9Dc794C8
0 DEV
38315882023-02-26 15:03:30477 days ago1677423810
0xbD7bf2cf...B9Dc794C8
0 DEV
38315882023-02-26 15:03:30477 days ago1677423810
0xbD7bf2cf...B9Dc794C8
0 DEV
38315882023-02-26 15:03:30477 days ago1677423810
0xbD7bf2cf...B9Dc794C8
0 DEV
38315882023-02-26 15:03:30477 days ago1677423810
0xbD7bf2cf...B9Dc794C8
0 DEV
38315882023-02-26 15:03:30477 days ago1677423810
0xbD7bf2cf...B9Dc794C8
0 DEV
38315882023-02-26 15:03:30477 days ago1677423810
0xbD7bf2cf...B9Dc794C8
0 DEV
38315882023-02-26 15:03:30477 days ago1677423810
0xbD7bf2cf...B9Dc794C8
0 DEV
38315882023-02-26 15:03:30477 days ago1677423810
0xbD7bf2cf...B9Dc794C8
0 DEV
38315882023-02-26 15:03:30477 days ago1677423810
0xbD7bf2cf...B9Dc794C8
0 DEV
View All Internal Transactions
Loading...
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 : 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);
  }
  
}

File 2 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);
}

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

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100625760003560e01c8063313ce5671461006757806354fd4d501461007b5780637284e4161461008a57806399213cd81461009f5780639a6fc8f5146100b4578063feaf968c14610105575b600080fd5b604051600881526020015b60405180910390f35b60405160018152602001610072565b610092610111565b60405161007291906101a3565b6100b26100ad3660046101f8565b600055565b005b6100ce6100c2366004610211565b60008054919242918291565b6040805169ffffffffffffffffffff968716815260208101959095528401929092526060830152909116608082015260a001610072565b600080544280836100ce565b60606001805461012090610244565b80601f016020809104026020016040519081016040528092919081815260200182805461014c90610244565b80156101995780601f1061016e57610100808354040283529160200191610199565b820191906000526020600020905b81548152906001019060200180831161017c57829003601f168201915b5050505050905090565b600060208083528351808285015260005b818110156101d0578581018301518582016040015282016101b4565b818111156101e2576000604083870101525b50601f01601f1916929092016040019392505050565b60006020828403121561020a57600080fd5b5035919050565b60006020828403121561022357600080fd5b813569ffffffffffffffffffff8116811461023d57600080fd5b9392505050565b600181811c9082168061025857607f821691505b6020821081141561027957634e487b7160e01b600052602260045260246000fd5b5091905056fea26469706673582212200ca9c441e45560cf5e8b500b167ed93a7be8415c49e8a061f0927b6b57d39c4464736f6c63430008090033

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
view all blocks collator

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.