Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 29 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Add Market | 17115254 | 601 days ago | IN | 0 ETH | 0.00216538 | ||||
Add Market | 16737917 | 655 days ago | IN | 0 ETH | 0.00120118 | ||||
Add Market | 16737913 | 655 days ago | IN | 0 ETH | 0.00118226 | ||||
Transfer Ownersh... | 16581250 | 677 days ago | IN | 0 ETH | 0.00104414 | ||||
Set Market Proxy | 16195739 | 730 days ago | IN | 0 ETH | 0.00046604 | ||||
Set Market Proxy | 16195722 | 730 days ago | IN | 0 ETH | 0.00040925 | ||||
Add Market | 16045511 | 751 days ago | IN | 0 ETH | 0.00052484 | ||||
Add Market | 16045508 | 751 days ago | IN | 0 ETH | 0.00054286 | ||||
Add Market | 16045507 | 751 days ago | IN | 0 ETH | 0.00054286 | ||||
Add Market | 16045507 | 751 days ago | IN | 0 ETH | 0.00054286 | ||||
Add Market | 15588177 | 815 days ago | IN | 0 ETH | 0.00029408 | ||||
Add Market | 15567022 | 818 days ago | IN | 0 ETH | 0.00023091 | ||||
Transfer Ownersh... | 15489194 | 830 days ago | IN | 0 ETH | 0.00033014 | ||||
Transfer Ownersh... | 15482772 | 831 days ago | IN | 0 ETH | 0.00024535 | ||||
Set Market Proxy | 15437667 | 839 days ago | IN | 0 ETH | 0.00071759 | ||||
Set Market Proxy | 15437664 | 839 days ago | IN | 0 ETH | 0.0006158 | ||||
Set Market Proxy | 15437659 | 839 days ago | IN | 0 ETH | 0.00055069 | ||||
Set Market Proxy | 15401575 | 844 days ago | IN | 0 ETH | 0.00030298 | ||||
Set Market Proxy | 15345314 | 853 days ago | IN | 0 ETH | 0.00036531 | ||||
Add Market | 15343789 | 854 days ago | IN | 0 ETH | 0.00081996 | ||||
Set Market Proxy | 15311553 | 859 days ago | IN | 0 ETH | 0.00057121 | ||||
Set Market Proxy | 15307579 | 859 days ago | IN | 0 ETH | 0.0013678 | ||||
Set Market Proxy | 15171967 | 880 days ago | IN | 0 ETH | 0.0013678 | ||||
Add Market | 15171856 | 880 days ago | IN | 0 ETH | 0.0021414 | ||||
Add Market | 15119772 | 888 days ago | IN | 0 ETH | 0.00128508 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x3ff7efFe...7838f2ca2 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
MarketRegistry
Compiler Version
v0.8.4+commit.c7e474f2
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-09-13 */ /** *Submitted for verification at Etherscan.io on 2022-04-27 */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.4; // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) /** * @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; } } /** * @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); } } contract MarketRegistry is Ownable { struct TradeDetails { uint256 marketId; uint256 value; bytes32 orderHash; bytes tradeData; } struct Market { address proxy; bool isLib; bool isActive; } event NewMarketAdded( address indexed proxy, uint256 indexed marketId, bool isLib ); event MarketStatusChanged( uint256 indexed marketId, bool indexed oldStatus, bool indexed newStatus ); event MarketProxyChanged( uint256 indexed marketId, address indexed oldProxy, address indexed newProxy, bool oldIsLib, bool newIsLib ); 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)); emit NewMarketAdded(proxy, markets.length - 1, isLib); } function setMarketStatus(uint256 marketId, bool newStatus) external onlyOwner { Market storage market = markets[marketId]; emit MarketStatusChanged(marketId, market.isActive, newStatus); market.isActive = newStatus; } function setMarketProxy( uint256 marketId, address newProxy, bool isLib ) external onlyOwner { Market storage market = markets[marketId]; emit MarketProxyChanged( marketId, market.proxy, newProxy, market.isLib, isLib ); market.proxy = newProxy; market.isLib = isLib; } function getMarketInfo(uint256 marketId) external view returns ( address proxy, bool isLib, bool isActive ) { Market memory marketInfo = markets[marketId]; proxy = marketInfo.proxy; isLib = marketInfo.isLib; isActive = marketInfo.isActive; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address[]","name":"proxies","type":"address[]"},{"internalType":"bool[]","name":"isLibs","type":"bool[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"marketId","type":"uint256"},{"indexed":true,"internalType":"address","name":"oldProxy","type":"address"},{"indexed":true,"internalType":"address","name":"newProxy","type":"address"},{"indexed":false,"internalType":"bool","name":"oldIsLib","type":"bool"},{"indexed":false,"internalType":"bool","name":"newIsLib","type":"bool"}],"name":"MarketProxyChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"marketId","type":"uint256"},{"indexed":true,"internalType":"bool","name":"oldStatus","type":"bool"},{"indexed":true,"internalType":"bool","name":"newStatus","type":"bool"}],"name":"MarketStatusChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"proxy","type":"address"},{"indexed":true,"internalType":"uint256","name":"marketId","type":"uint256"},{"indexed":false,"internalType":"bool","name":"isLib","type":"bool"}],"name":"NewMarketAdded","type":"event"},{"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":"marketId","type":"uint256"}],"name":"getMarketInfo","outputs":[{"internalType":"address","name":"proxy","type":"address"},{"internalType":"bool","name":"isLib","type":"bool"},{"internalType":"bool","name":"isActive","type":"bool"}],"stateMutability":"view","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"}]
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100885760003560e01c80638da5cb5b1161005b5780638da5cb5b146100fc578063a638980c14610117578063b1283e771461012a578063f2fde38b1461013d57600080fd5b8063078e20971461008d5780633ec79193146100a2578063615fc1bb146100e1578063715018a6146100f4575b600080fd5b6100a061009b36600461067a565b610150565b005b6100b56100b0366004610662565b61023b565b604080516001600160a01b03909416845291151560208401521515908201526060015b60405180910390f35b6100a06100ef3660046106b5565b6102bd565b6100a0610370565b6000546040516001600160a01b0390911681526020016100d8565b6100a0610125366004610630565b6103a6565b6100b5610138366004610662565b6104b9565b6100a061014b36600461060f565b6104f8565b6000546001600160a01b031633146101835760405162461bcd60e51b815260040161017a906106d7565b60405180910390fd5b6000600184815481106101a657634e487b7160e01b600052603260045260246000fd5b600091825260209182902001805460408051600160a01b830460ff1615158152861515948101949094529193506001600160a01b038681169391169187917fbfb31ebb2a2e9df1e4f4c0dd3fc224c398119257f6c4787829a721a42e47ca63910160405180910390a48054911515600160a01b026001600160a81b03199092166001600160a01b039093169290921717905550565b6000806000806001858154811061026257634e487b7160e01b600052603260045260246000fd5b60009182526020918290206040805160608101825291909201546001600160a01b03811680835260ff600160a01b830481161515958401869052600160a81b9092049091161515919092018190529097919650945092505050565b6000546001600160a01b031633146102e75760405162461bcd60e51b815260040161017a906106d7565b60006001838154811061030a57634e487b7160e01b600052603260045260246000fd5b60009182526020822001805460405191935084151592600160a81b90910460ff1615159186917fca95cc93aa25433770c958ce49ac1c3c4beb8d6f89b43045e795c295ca86e6ec91a48054911515600160a81b0260ff60a81b1990921691909117905550565b6000546001600160a01b0316331461039a5760405162461bcd60e51b815260040161017a906106d7565b6103a46000610593565b565b6000546001600160a01b031633146103d05760405162461bcd60e51b815260040161017a906106d7565b604080516060810182526001600160a01b03808516825283151560208301908152600193830184815284548086018655600086905293517fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf69094018054925191511515600160a81b0260ff60a81b19921515600160a01b026001600160a81b0319909416959094169490941791909117161790558054610470919061070c565b826001600160a01b03167f39e79be9573705ad8d15a346ea268e2e8a618413217b05e2de555309a1d85e32836040516104ad911515815260200190565b60405180910390a35050565b600181815481106104c957600080fd5b6000918252602090912001546001600160a01b038116915060ff600160a01b8204811691600160a81b90041683565b6000546001600160a01b031633146105225760405162461bcd60e51b815260040161017a906106d7565b6001600160a01b0381166105875760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161017a565b61059081610593565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80356001600160a01b03811681146105fa57600080fd5b919050565b803580151581146105fa57600080fd5b600060208284031215610620578081fd5b610629826105e3565b9392505050565b60008060408385031215610642578081fd5b61064b836105e3565b9150610659602084016105ff565b90509250929050565b600060208284031215610673578081fd5b5035919050565b60008060006060848603121561068e578081fd5b8335925061069e602085016105e3565b91506106ac604085016105ff565b90509250925092565b600080604083850312156106c7578182fd5b82359150610659602084016105ff565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008282101561072a57634e487b7160e01b81526011600452602481fd5b50039056fea2646970667358221220a71c4017d65ad46c06aa6620eab65737f9725adabcb0c4980b2fdaa6d76c9a1f64736f6c63430008040033
Deployed Bytecode Sourcemap
3385:2244:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4841:415;;;;;;:::i;:::-;;:::i;:::-;;5264:362;;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;2038:32:1;;;2020:51;;2114:14;;2107:22;2102:2;2087:18;;2080:50;2173:14;2166:22;2146:18;;;2139:50;2008:2;1993:18;5264:362:0;;;;;;;;4561:272;;;;;;:::i;:::-;;:::i;2568:103::-;;;:::i;1917:87::-;1963:7;1990:6;1917:87;;-1:-1:-1;;;;;1990:6:0;;;1768:51:1;;1756:2;1741:18;1917:87:0;1723:102:1;4365:188:0;;;;;;:::i;:::-;;:::i;4126:23::-;;;;;;:::i;:::-;;:::i;2826:201::-;;;;;;:::i;:::-;;:::i;4841:415::-;1963:7;1990:6;-1:-1:-1;;;;;1990:6:0;864:10;2137:23;2129:68;;;;-1:-1:-1;;;2129:68:0;;;;;;;:::i;:::-;;;;;;;;;4977:21:::1;5001:7;5009:8;5001:17;;;;;;-1:-1:-1::0;;;5001:17:0::1;;;;;;;;;;::::0;;;::::1;::::0;;;;::::1;5090:12:::0;;5034:149:::1;::::0;;-1:-1:-1;;;5140:12:0;::::1;;;2579:14:1::0;2572:22;2554:41;;2638:14;;2631:22;2611:18;;;2604:50;;;;5001:17:0;;-1:-1:-1;;;;;;5034:149:0;;::::1;::::0;5090:12;::::1;::::0;5067:8;;5034:149:::1;::::0;2527:18:1;5034:149:0::1;;;;;;;5194:23:::0;;5228:20;::::1;;-1:-1:-1::0;;;5228:20:0::1;-1:-1:-1::0;;;;;;5228:20:0;;;-1:-1:-1;;;;;5194:23:0;;::::1;5228:20:::0;;;;::::1;::::0;;-1:-1:-1;4841:415:0:o;5264:362::-;5369:13;5397:10;5422:13;5463:24;5490:7;5498:8;5490:17;;;;;;-1:-1:-1;;;5490:17:0;;;;;;;;;;;;;;;;;;5463:44;;;;;;;;5490:17;;;;5463:44;-1:-1:-1;;;;;5463:44:0;;;;;;-1:-1:-1;;;5463:44:0;;;;;;;;;;;;-1:-1:-1;;;5463:44:0;;;;;;;;;;;;;;;;;;;-1:-1:-1;5463:44:0;-1:-1:-1;5264:362:0;-1:-1:-1;;;5264:362:0:o;4561:272::-;1963:7;1990:6;-1:-1:-1;;;;;1990:6:0;864:10;2137:23;2129:68;;;;-1:-1:-1;;;2129:68:0;;;;;;;:::i;:::-;4673:21:::1;4697:7;4705:8;4697:17;;;;;;-1:-1:-1::0;;;4697:17:0::1;;;;;;;;;;::::0;;;::::1;::::0;;::::1;4760:15:::0;;4730:57:::1;::::0;4697:17;;-1:-1:-1;4730:57:0;::::1;;::::0;-1:-1:-1;;;4760:15:0;;::::1;;;4730:57;;::::0;4750:8;;4730:57:::1;::::0;::::1;4798:27:::0;;;::::1;;-1:-1:-1::0;;;4798:27:0::1;-1:-1:-1::0;;;;4798:27:0;;::::1;::::0;;;::::1;::::0;;-1:-1:-1;4561:272:0:o;2568:103::-;1963:7;1990:6;-1:-1:-1;;;;;1990:6:0;864:10;2137:23;2129:68;;;;-1:-1:-1;;;2129:68:0;;;;;;;:::i;:::-;2633:30:::1;2660:1;2633:18;:30::i;:::-;2568:103::o:0;4365:188::-;1963:7;1990:6;-1:-1:-1;;;;;1990:6:0;864:10;2137:23;2129:68;;;;-1:-1:-1;;;2129:68:0;;;;;;;:::i;:::-;4454:26:::1;::::0;;::::1;::::0;::::1;::::0;;-1:-1:-1;;;;;4454:26:0;;::::1;::::0;;;::::1;;;::::0;::::1;::::0;;;4441:7:::1;4454:26:::0;;;;;;4441:40;;;;::::1;::::0;;-1:-1:-1;4441:40:0;;;;;;;;::::1;::::0;;;;;;::::1;;-1:-1:-1::0;;;4441:40:0::1;-1:-1:-1::0;;;;4441:40:0;::::1;;-1:-1:-1::0;;;4441:40:0::1;-1:-1:-1::0;;;;;;4441:40:0;;;;;;::::1;::::0;;;;;;;::::1;;;::::0;;4519:14;;:18:::1;::::0;4441:7;4519:18:::1;:::i;:::-;4512:5;-1:-1:-1::0;;;;;4497:48:0::1;;4539:5;4497:48;;;;2365:14:1::0;2358:22;2340:41;;2328:2;2313:18;;2295:92;4497:48:0::1;;;;;;;;4365:188:::0;;:::o;4126:23::-;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;4126:23:0;;;-1:-1:-1;4126:23:0;-1:-1:-1;;;4126:23:0;;;;;-1:-1:-1;;;4126:23:0;;;;:::o;2826:201::-;1963:7;1990:6;-1:-1:-1;;;;;1990:6:0;864:10;2137:23;2129:68;;;;-1:-1:-1;;;2129:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;2915:22:0;::::1;2907:73;;;::::0;-1:-1:-1;;;2907:73:0;;2867:2:1;2907:73:0::1;::::0;::::1;2849:21:1::0;2906:2;2886:18;;;2879:30;2945:34;2925:18;;;2918:62;-1:-1:-1;;;2996:18:1;;;2989:36;3042:19;;2907:73:0::1;2839:228:1::0;2907:73:0::1;2991:28;3010:8;2991:18;:28::i;:::-;2826:201:::0;:::o;3187:191::-;3261:16;3280:6;;-1:-1:-1;;;;;3297:17:0;;;-1:-1:-1;;;;;;3297:17:0;;;;;;3330:40;;3280:6;;;;;;;3330:40;;3261:16;3330:40;3187:191;;:::o;14:173:1:-;82:20;;-1:-1:-1;;;;;131:31:1;;121:42;;111:2;;177:1;174;167:12;111:2;63:124;;;:::o;192:160::-;257:20;;313:13;;306:21;296:32;;286:2;;342:1;339;332:12;357:196;416:6;469:2;457:9;448:7;444:23;440:32;437:2;;;490:6;482;475:22;437:2;518:29;537:9;518:29;:::i;:::-;508:39;427:126;-1:-1:-1;;;427:126:1:o;558:264::-;623:6;631;684:2;672:9;663:7;659:23;655:32;652:2;;;705:6;697;690:22;652:2;733:29;752:9;733:29;:::i;:::-;723:39;;781:35;812:2;801:9;797:18;781:35;:::i;:::-;771:45;;642:180;;;;;:::o;827:190::-;886:6;939:2;927:9;918:7;914:23;910:32;907:2;;;960:6;952;945:22;907:2;-1:-1:-1;988:23:1;;897:120;-1:-1:-1;897:120:1:o;1022:332::-;1096:6;1104;1112;1165:2;1153:9;1144:7;1140:23;1136:32;1133:2;;;1186:6;1178;1171:22;1133:2;1227:9;1214:23;1204:33;;1256:38;1290:2;1279:9;1275:18;1256:38;:::i;:::-;1246:48;;1313:35;1344:2;1333:9;1329:18;1313:35;:::i;:::-;1303:45;;1123:231;;;;;:::o;1359:258::-;1424:6;1432;1485:2;1473:9;1464:7;1460:23;1456:32;1453:2;;;1506:6;1498;1491:22;1453:2;1547:9;1534:23;1524:33;;1576:35;1607:2;1596:9;1592:18;1576:35;:::i;3072:356::-;3274:2;3256:21;;;3293:18;;;3286:30;3352:34;3347:2;3332:18;;3325:62;3419:2;3404:18;;3246:182::o;3433:228::-;3473:4;3501:1;3498;3495:8;3492:2;;;-1:-1:-1;;;3526:34:1;;3583:4;3580:1;3573:15;3614:4;3533;3601:18;3492:2;-1:-1:-1;3646:9:1;;3482:179::o
Swarm Source
ipfs://a71c4017d65ad46c06aa6620eab65737f9725adabcb0c4980b2fdaa6d76c9a1f
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.