Source Code
Overview
DEV Balance
0 DEV
More Info
ContractCreator:
Multichain Info
N/A
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
Value | ||||
---|---|---|---|---|---|---|---|---|---|
0x60806040 | 2804845 | 566 days ago | IN | Contract Creation | 0 DEV | 0.02509471 |
Latest 25 internal transactions (View All)
Parent Txn Hash | Block | From | To | Value | ||
---|---|---|---|---|---|---|
2867362 | 555 days ago | 0 DEV | ||||
2867362 | 555 days ago | 0 DEV | ||||
2866659 | 555 days ago | 0 DEV | ||||
2866659 | 555 days ago | 0 DEV | ||||
2866659 | 555 days ago | 0 DEV | ||||
2866659 | 555 days ago | 0 DEV | ||||
2866583 | 555 days ago | 0 DEV | ||||
2866583 | 555 days ago | 0 DEV | ||||
2866583 | 555 days ago | 0 DEV | ||||
2866583 | 555 days ago | 0 DEV | ||||
2866498 | 555 days ago | 0 DEV | ||||
2866498 | 555 days ago | 0 DEV | ||||
2866498 | 555 days ago | 0 DEV | ||||
2866498 | 555 days ago | 0 DEV | ||||
2866075 | 555 days ago | 0 DEV | ||||
2866075 | 555 days ago | 0 DEV | ||||
2866004 | 555 days ago | 0 DEV | ||||
2866004 | 555 days ago | 0 DEV | ||||
2866004 | 555 days ago | 0 DEV | ||||
2866004 | 555 days ago | 0 DEV | ||||
2866004 | 555 days ago | 0 DEV | ||||
2866004 | 555 days ago | 0 DEV | ||||
2865745 | 555 days ago | 0 DEV | ||||
2865745 | 555 days ago | 0 DEV | ||||
2865745 | 555 days ago | 0 DEV |
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x51146798...aBf7AD0B1 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
AggregatorV3InterfaceMock
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // Chainlink Contracts v0.8 pragma solidity ^0.8.4; import "./interfaces/AggregatorV3Interface.sol"; contract AggregatorV3InterfaceMock is AggregatorV3Interface { int256 latestAnswer; uint256 latestTimestamp; uint256 latestUpdate; uint80 latestRoundId; uint8 priceDecimals; string tokenSymbol; uint256 versionId; mapping (uint80 => Observation) observations; struct Observation { int256 answer; uint256 timestamp; uint256 update; } constructor( int256 latestAnswerParam, uint256 latestTimestampParam, uint80 latestRoundIdParam, uint8 decimalsParam, string memory descriptionParam, uint256 versionParam ) { latestAnswer = latestAnswerParam; latestRoundId = latestRoundIdParam; latestTimestamp = latestTimestampParam; priceDecimals = decimalsParam; tokenSymbol = descriptionParam; versionId = versionParam; } function decimals() external override view returns (uint8) { return priceDecimals; } function description() external override view returns (string memory){ return tokenSymbol; } function version() external override view returns (uint256){ return versionId; } function getRoundData(uint80 _roundId) external override view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound){ Observation memory roundInfo = observations[_roundId]; return (_roundId, roundInfo.answer, roundInfo.timestamp, roundInfo.update, _roundId); } function latestRoundData() external override view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound){ return (latestRoundId, latestAnswer, latestTimestamp, latestUpdate, latestRoundId); } function setAnswer(uint80 roundId, int256 answer) public { observations[roundId] = Observation(answer, block.timestamp, block.timestamp); latestRoundId = roundId; latestAnswer = answer; latestTimestamp = block.timestamp; latestUpdate = block.timestamp; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; interface AggregatorV3Interface { function decimals() external view returns (uint8); function description() external view returns (string memory); function version() external view returns (uint256); // getRoundData and latestRoundData should both raise "No data present" // if they do not have data to report, instead of returning unset values // which could be misinterpreted as actual reported values. function getRoundData(uint80 _roundId) external view returns ( uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound ); function latestRoundData() external view returns ( uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound ); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
[{"inputs":[{"internalType":"int256","name":"latestAnswerParam","type":"int256"},{"internalType":"uint256","name":"latestTimestampParam","type":"uint256"},{"internalType":"uint80","name":"latestRoundIdParam","type":"uint80"},{"internalType":"uint8","name":"decimalsParam","type":"uint8"},{"internalType":"string","name":"descriptionParam","type":"string"},{"internalType":"uint256","name":"versionParam","type":"uint256"}],"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":"uint80","name":"roundId","type":"uint80"},{"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"}]
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100625760003560e01c8063313ce5671461006757806354fd4d501461008b5780637284e4161461009c5780638a20a121146100b15780639a6fc8f51461012e578063feaf968c146101b8575b600080fd5b600354600160501b900460ff1660405160ff90911681526020015b60405180910390f35b600554604051908152602001610082565b6100a46101d6565b6040516100829190610268565b61012c6100bf3660046102d9565b604080516060810182528281524260208083018281528385018381526001600160501b0390971660008181526006909352948220935184555160018085019190915595516002938401556003805469ffffffffffffffffffff191690941790935592909155918190559055565b005b61018461013c366004610303565b6001600160501b038116600090815260066020908152604091829020825160608101845281548082526001830154938201849052600290920154930183905292939091908490565b604080516001600160501b03968716815260208101959095528401929092526060830152909116608082015260a001610082565b6003546000546001546002546001600160501b039093169283610184565b6060600480546101e590610325565b80601f016020809104026020016040519081016040528092919081815260200182805461021190610325565b801561025e5780601f106102335761010080835404028352916020019161025e565b820191906000526020600020905b81548152906001019060200180831161024157829003601f168201915b5050505050905090565b600060208083528351808285015260005b8181101561029557858101830151858201604001528201610279565b818111156102a7576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160501b03811681146102d457600080fd5b919050565b600080604083850312156102ec57600080fd5b6102f5836102bd565b946020939093013593505050565b60006020828403121561031557600080fd5b61031e826102bd565b9392505050565b600181811c9082168061033957607f821691505b6020821081141561035a57634e487b7160e01b600052602260045260246000fd5b5091905056fea264697066735822122014df435b3546db3bcf81b2f5e613e4f093fe256d230d07446204ca295061a99464736f6c63430008090033
Loading...
Loading
[ 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.