Bokuto Testnet

Contract

0x308dE2Fee4369D4A3FD99B6ad8A339aC85C94D74

Overview

ETH Balance

0 ETH

More Info

Multichain Info

N/A
Transaction Hash
Method
Block
From
To
Amount
Set Mock79532582025-08-28 7:00:3073 days ago1756364430IN
0x308dE2Fe...C85C94D74
0 ETH0.000000040.0010002

Parent Transaction Hash Block From To Amount
View All Internal Transactions

Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0xFFB7952e...9eE6Fc021
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
MockRedstoneChainlinkOracleAlwaysAlive

Compiler Version
v0.8.22+commit.4fc1097e

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion, MIT license

Contract Source Code (Solidity Standard Json-Input format)

// SPDX-License-Identifier: MIT
/* ———————————————————————————————————————————————————————————————————————————————— *
 *    _____     ______   ______     __     __   __     __     ______   __  __       *
 *   /\  __-.  /\__  _\ /\  == \   /\ \   /\ "-.\ \   /\ \   /\__  _\ /\ \_\ \      *
 *   \ \ \/\ \ \/_/\ \/ \ \  __<   \ \ \  \ \ \-.  \  \ \ \  \/_/\ \/ \ \____ \     *
 *    \ \____-    \ \_\  \ \_\ \_\  \ \_\  \ \_\\"\_\  \ \_\    \ \_\  \/\_____\    *
 *     \/____/     \/_/   \/_/ /_/   \/_/   \/_/ \/_/   \/_/     \/_/   \/_____/    *
 *                                                                                  *
 * ————————————————————————————————— dtrinity.org ————————————————————————————————— *
 *                                                                                  *
 *                                         ▲                                        *
 *                                        ▲ ▲                                       *
 *                                                                                  *
 * ———————————————————————————————————————————————————————————————————————————————— *
 * dTRINITY Protocol: https://github.com/dtrinity                                   *
 * ———————————————————————————————————————————————————————————————————————————————— */

pragma solidity ^0.8.20;

import { IPriceFeed } from "../../oracle_aggregator/interface/chainlink/IPriceFeed.sol";

contract MockRedstoneChainlinkOracleAlwaysAlive is IPriceFeed {
  int256 private mockPrice;
  uint80 private mockRoundId;

  constructor() {
    mockRoundId = 1;
  }

  function decimals() external pure override returns (uint8) {
    return 8;
  }

  function setMock(int256 _price) external {
    mockPrice = _price;
    mockRoundId++;
  }

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

// SPDX-License-Identifier: MIT
/* ———————————————————————————————————————————————————————————————————————————————— *
 *    _____     ______   ______     __     __   __     __     ______   __  __       *
 *   /\  __-.  /\__  _\ /\  == \   /\ \   /\ "-.\ \   /\ \   /\__  _\ /\ \_\ \      *
 *   \ \ \/\ \ \/_/\ \/ \ \  __<   \ \ \  \ \ \-.  \  \ \ \  \/_/\ \/ \ \____ \     *
 *    \ \____-    \ \_\  \ \_\ \_\  \ \_\  \ \_\\"\_\  \ \_\    \ \_\  \/\_____\    *
 *     \/____/     \/_/   \/_/ /_/   \/_/   \/_/ \/_/   \/_/     \/_/   \/_____/    *
 *                                                                                  *
 * ————————————————————————————————— dtrinity.org ————————————————————————————————— *
 *                                                                                  *
 *                                         ▲                                        *
 *                                        ▲ ▲                                       *
 *                                                                                  *
 * ———————————————————————————————————————————————————————————————————————————————— *
 * dTRINITY Protocol: https://github.com/dtrinity                                   *
 * ———————————————————————————————————————————————————————————————————————————————— */

pragma solidity ^0.8.20;

interface IPriceFeed {
  function decimals() external view returns (uint8);

  function latestRoundData()
    external
    view
    returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);
}

Settings
{
  "evmVersion": "paris",
  "metadata": {
    "bytecodeHash": "ipfs",
    "useLiteralContent": true
  },
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "remappings": [],
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract ABI

API
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","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":"_price","type":"int256"}],"name":"setMock","outputs":[],"stateMutability":"nonpayable","type":"function"}]

0x608060405234801561001057600080fd5b50600180546001600160501b0319168117905561016f806100326000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c8063313ce5671461004657806333f3998b1461005a578063feaf968c1461006f575b600080fd5b604051600881526020015b60405180910390f35b61006d6100683660046100ec565b6100a8565b005b600154600054604080516001600160501b039093168084526020840192909252429083018190526060830152608082015260a001610051565b6000818155600180546001600160501b0316916100c483610105565b91906101000a8154816001600160501b0302191690836001600160501b031602179055505050565b6000602082840312156100fe57600080fd5b5035919050565b60006001600160501b0380831681810361012f57634e487b7160e01b600052601160045260246000fd5b600101939250505056fea26469706673582212200e0d8d9d934f368023993287130b1115bc8c82a0a57fc2c29c63dfe621f706f664736f6c63430008160033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100415760003560e01c8063313ce5671461004657806333f3998b1461005a578063feaf968c1461006f575b600080fd5b604051600881526020015b60405180910390f35b61006d6100683660046100ec565b6100a8565b005b600154600054604080516001600160501b039093168084526020840192909252429083018190526060830152608082015260a001610051565b6000818155600180546001600160501b0316916100c483610105565b91906101000a8154816001600160501b0302191690836001600160501b031602179055505050565b6000602082840312156100fe57600080fd5b5035919050565b60006001600160501b0380831681810361012f57634e487b7160e01b600052601160045260246000fd5b600101939250505056fea26469706673582212200e0d8d9d934f368023993287130b1115bc8c82a0a57fc2c29c63dfe621f706f664736f6c63430008160033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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
0x308dE2Fee4369D4A3FD99B6ad8A339aC85C94D74
Loading...
Loading
Loading...
Loading
[ 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.