ETH Price: $3,610.80 (+4.58%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Add Market171926772023-05-05 6:33:59609 days ago1683268439IN
0x5a20c388...d87F1Ece7
0 ETH0.0042865783.32673348
Add Market171219482023-04-25 7:59:35619 days ago1682409575IN
0x5a20c388...d87F1Ece7
0 ETH0.0016492432
Add Market171151222023-04-24 9:01:23620 days ago1682326883IN
0x5a20c388...d87F1Ece7
0 ETH0.0020577240
Add Market167477302023-03-03 11:36:59672 days ago1677843419IN
0x5a20c388...d87F1Ece7
0 ETH0.0012290323.88556716
Set Market Proxy164161652023-01-16 1:47:23718 days ago1673833643IN
0x5a20c388...d87F1Ece7
0 ETH0.0005101816.19839702
Add Market163885432023-01-12 5:10:11722 days ago1673500211IN
0x5a20c388...d87F1Ece7
0 ETH0.0009368518.18182472
Set Market Proxy163885392023-01-12 5:09:23722 days ago1673500163IN
0x5a20c388...d87F1Ece7
0 ETH0.0006174319.56626103
Add Market163457412023-01-06 5:45:23728 days ago1672983923IN
0x5a20c388...d87F1Ece7
0 ETH0.0009274818
Add Market163457402023-01-06 5:45:11728 days ago1672983911IN
0x5a20c388...d87F1Ece7
0 ETH0.0009274818
Add Market163457382023-01-06 5:44:47728 days ago1672983887IN
0x5a20c388...d87F1Ece7
0 ETH0.001234218

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MarketRegistry

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 3 : MarketRegistry.sol
// SPDX-License-Identifier: MIT

pragma solidity >= 0.8.10;


import "@openzeppelin/contracts/access/Ownable.sol";

contract MarketRegistry is Ownable {

    struct TradeDetails {
        uint256 marketId;
        uint256 value;
        bytes tradeData;
    }

    struct Market {
        address proxy;
        bool isLib;
        bool isActive;
    }

    Market[] public markets;

    constructor(address[] memory proxies, bool[] memory isLibs) {
        for (uint256 i = 0; i < proxies.length; i++) {
            markets.push(Market(proxies[i], isLibs[i], true));
        }
    }

    function addMarket(address proxy, bool isLib) external onlyOwner {
        markets.push(Market(proxy, isLib, true));
    }

    function setMarketStatus(uint256 marketId, bool newStatus) external onlyOwner {
        Market storage market = markets[marketId];
        market.isActive = newStatus;
    }

    function setMarketProxy(uint256 marketId, address newProxy, bool isLib) external onlyOwner {
        Market storage market = markets[marketId];
        market.proxy = newProxy;
        market.isLib = isLib;
    }
}

File 2 of 3 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 3 of 3 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address[]","name":"proxies","type":"address[]"},{"internalType":"bool[]","name":"isLibs","type":"bool[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"address","name":"proxy","type":"address"},{"internalType":"bool","name":"isLib","type":"bool"}],"name":"addMarket","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"markets","outputs":[{"internalType":"address","name":"proxy","type":"address"},{"internalType":"bool","name":"isLib","type":"bool"},{"internalType":"bool","name":"isActive","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"marketId","type":"uint256"},{"internalType":"address","name":"newProxy","type":"address"},{"internalType":"bool","name":"isLib","type":"bool"}],"name":"setMarketProxy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"marketId","type":"uint256"},{"internalType":"bool","name":"newStatus","type":"bool"}],"name":"setMarketStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b506040516200092a3803806200092a8339810160408190526100319161024f565b61003a3361011c565b60005b8251811015610114576001604051806060016040528085848151811061006557610065610320565b60200260200101516001600160a01b0316815260200184848151811061008d5761008d610320565b60209081029190910181015115158252600191810182905283549182018455600093845292839020825191018054938301516040909301511515600160a81b0260ff60a81b19931515600160a01b026001600160a81b03199095166001600160a01b039093169290921793909317919091161790558061010c81610336565b91505061003d565b50505061035d565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156101aa576101aa61016c565b604052919050565b60006001600160401b038211156101cb576101cb61016c565b5060051b60200190565b600082601f8301126101e657600080fd5b815160206101fb6101f6836101b2565b610182565b82815260059290921b8401810191818101908684111561021a57600080fd5b8286015b8481101561024457805180151581146102375760008081fd5b835291830191830161021e565b509695505050505050565b6000806040838503121561026257600080fd5b82516001600160401b038082111561027957600080fd5b818501915085601f83011261028d57600080fd5b8151602061029d6101f6836101b2565b82815260059290921b840181019181810190898411156102bc57600080fd5b948201945b838610156102f05785516001600160a01b03811681146102e15760008081fd5b825294820194908201906102c1565b9188015191965090935050508082111561030957600080fd5b50610316858286016101d5565b9150509250929050565b634e487b7160e01b600052603260045260246000fd5b60006001820161035657634e487b7160e01b600052601160045260246000fd5b5060010190565b6105bd806200036d6000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c80638da5cb5b1161005b5780638da5cb5b146100b2578063a638980c146100d2578063b1283e77146100e5578063f2fde38b1461011f57600080fd5b8063078e209714610082578063615fc1bb14610097578063715018a6146100aa575b600080fd5b61009561009036600461046f565b610132565b005b6100956100a53660046104ab565b6101b6565b61009561021f565b6000546040516001600160a01b0390911681526020015b60405180910390f35b6100956100e03660046104d7565b610255565b6100f86100f3366004610501565b610319565b604080516001600160a01b03909416845291151560208401521515908201526060016100c9565b61009561012d36600461051a565b610358565b6000546001600160a01b031633146101655760405162461bcd60e51b815260040161015c9061053c565b60405180910390fd5b60006001848154811061017a5761017a610571565b60009182526020909120018054921515600160a01b026001600160a81b03199093166001600160a01b0390941693909317919091179091555050565b6000546001600160a01b031633146101e05760405162461bcd60e51b815260040161015c9061053c565b6000600183815481106101f5576101f5610571565b60009182526020909120018054921515600160a81b0260ff60a81b19909316929092179091555050565b6000546001600160a01b031633146102495760405162461bcd60e51b815260040161015c9061053c565b61025360006103f3565b565b6000546001600160a01b0316331461027f5760405162461bcd60e51b815260040161015c9061053c565b604080516060810182526001600160a01b0393841681529115156020830190815260019183018281528254808401845560009390935292517fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf69092018054915193511515600160a81b0260ff60a81b19941515600160a01b026001600160a81b031990931693909516929092171791909116919091179055565b6001818154811061032957600080fd5b6000918252602090912001546001600160a01b038116915060ff600160a01b8204811691600160a81b90041683565b6000546001600160a01b031633146103825760405162461bcd60e51b815260040161015c9061053c565b6001600160a01b0381166103e75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161015c565b6103f0816103f3565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80356001600160a01b038116811461045a57600080fd5b919050565b8035801515811461045a57600080fd5b60008060006060848603121561048457600080fd5b8335925061049460208501610443565b91506104a26040850161045f565b90509250925092565b600080604083850312156104be57600080fd5b823591506104ce6020840161045f565b90509250929050565b600080604083850312156104ea57600080fd5b6104f383610443565b91506104ce6020840161045f565b60006020828403121561051357600080fd5b5035919050565b60006020828403121561052c57600080fd5b61053582610443565b9392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fdfea2646970667358221220ca20b2f653236134114132b1b11489f8668b504e143acc49b6162816ccc13f5c64736f6c634300080d00330000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061007d5760003560e01c80638da5cb5b1161005b5780638da5cb5b146100b2578063a638980c146100d2578063b1283e77146100e5578063f2fde38b1461011f57600080fd5b8063078e209714610082578063615fc1bb14610097578063715018a6146100aa575b600080fd5b61009561009036600461046f565b610132565b005b6100956100a53660046104ab565b6101b6565b61009561021f565b6000546040516001600160a01b0390911681526020015b60405180910390f35b6100956100e03660046104d7565b610255565b6100f86100f3366004610501565b610319565b604080516001600160a01b03909416845291151560208401521515908201526060016100c9565b61009561012d36600461051a565b610358565b6000546001600160a01b031633146101655760405162461bcd60e51b815260040161015c9061053c565b60405180910390fd5b60006001848154811061017a5761017a610571565b60009182526020909120018054921515600160a01b026001600160a81b03199093166001600160a01b0390941693909317919091179091555050565b6000546001600160a01b031633146101e05760405162461bcd60e51b815260040161015c9061053c565b6000600183815481106101f5576101f5610571565b60009182526020909120018054921515600160a81b0260ff60a81b19909316929092179091555050565b6000546001600160a01b031633146102495760405162461bcd60e51b815260040161015c9061053c565b61025360006103f3565b565b6000546001600160a01b0316331461027f5760405162461bcd60e51b815260040161015c9061053c565b604080516060810182526001600160a01b0393841681529115156020830190815260019183018281528254808401845560009390935292517fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf69092018054915193511515600160a81b0260ff60a81b19941515600160a01b026001600160a81b031990931693909516929092171791909116919091179055565b6001818154811061032957600080fd5b6000918252602090912001546001600160a01b038116915060ff600160a01b8204811691600160a81b90041683565b6000546001600160a01b031633146103825760405162461bcd60e51b815260040161015c9061053c565b6001600160a01b0381166103e75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161015c565b6103f0816103f3565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80356001600160a01b038116811461045a57600080fd5b919050565b8035801515811461045a57600080fd5b60008060006060848603121561048457600080fd5b8335925061049460208501610443565b91506104a26040850161045f565b90509250925092565b600080604083850312156104be57600080fd5b823591506104ce6020840161045f565b90509250929050565b600080604083850312156104ea57600080fd5b6104f383610443565b91506104ce6020840161045f565b60006020828403121561051357600080fd5b5035919050565b60006020828403121561052c57600080fd5b61053582610443565b9392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fdfea2646970667358221220ca20b2f653236134114132b1b11489f8668b504e143acc49b6162816ccc13f5c64736f6c634300080d0033

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

0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000000


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
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.