Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Transfer Ownersh... | 14696049 | 1032 days ago | IN | 0 ETH | 0.00201983 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
TimelockExcludeList
Compiler Version
v0.8.4+commit.c7e474f2
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-05-02 */ // Sources flattened with hardhat v2.8.2 https://hardhat.org // File contracts/solidity/testing/Context.sol // SPDX-License-Identifier: MIT 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) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } // File contracts/solidity/util/Ownable.sol pragma solidity ^0.8.0; /** * @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() { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), 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 { emit OwnershipTransferred(_owner, address(0)); _owner = 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"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } // File contracts/solidity/other/TimelockExcludeList.sol pragma solidity ^0.8.0; contract TimelockExcludeList is Ownable { mapping(address => bool) public excludeFromAll; mapping(address => mapping(uint256 => bool)) public excludeFromVault; event ExcludeFromAllSet(address, bool); event ExcludeFromVaultSet(address, uint256, bool); function isExcludedFromAll(address addr) public view returns (bool) { return excludeFromAll[addr]; } function isExcludedFromVault(address addr, uint256 vaultId) public view returns (bool) { return excludeFromVault[addr][vaultId]; } function isExcluded(address addr, uint256 vaultId) external view returns (bool) { return isExcludedFromAll(addr) || isExcludedFromVault(addr, vaultId); } function setExcludeFromAll(address addr, bool setting) external onlyOwner { excludeFromAll[addr] = setting; emit ExcludeFromAllSet(addr, setting); } function setExcludeFromVault( address addr, uint256 vaultId, bool setting ) external onlyOwner { excludeFromVault[addr][vaultId] = setting; emit ExcludeFromVaultSet(addr, vaultId, setting); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"","type":"address"},{"indexed":false,"internalType":"bool","name":"","type":"bool"}],"name":"ExcludeFromAllSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"","type":"address"},{"indexed":false,"internalType":"uint256","name":"","type":"uint256"},{"indexed":false,"internalType":"bool","name":"","type":"bool"}],"name":"ExcludeFromVaultSet","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":"","type":"address"}],"name":"excludeFromAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"excludeFromVault","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint256","name":"vaultId","type":"uint256"}],"name":"isExcluded","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"isExcludedFromAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint256","name":"vaultId","type":"uint256"}],"name":"isExcludedFromVault","outputs":[{"internalType":"bool","name":"","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":"address","name":"addr","type":"address"},{"internalType":"bool","name":"setting","type":"bool"}],"name":"setExcludeFromAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint256","name":"vaultId","type":"uint256"},{"internalType":"bool","name":"setting","type":"bool"}],"name":"setExcludeFromVault","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50600080546001600160a01b031916339081178255604051909182917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506106e1806100616000396000f3fe608060405234801561001057600080fd5b50600436106100be5760003560e01c8063a4d6d29211610076578063b874c0381161005b578063b874c03814610187578063e5951756146101b3578063f2fde38b146101ec57600080fd5b8063a4d6d29214610146578063ac98c9381461017457600080fd5b8063715018a6116100a7578063715018a61461011057806381e97b66146101185780638da5cb5b1461012b57600080fd5b8063370f0a60146100c3578063518f037c146100fb575b600080fd5b6100e66100d13660046105fb565b60016020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b61010e610109366004610615565b6101ff565b005b61010e6102c1565b6100e6610126366004610647565b610372565b6000546040516001600160a01b0390911681526020016100f2565b6100e6610154366004610647565b600260209081526000928352604080842090915290825290205460ff1681565b61010e610182366004610670565b6103c3565b6100e66101953660046105fb565b6001600160a01b031660009081526001602052604090205460ff1690565b6100e66101c1366004610647565b6001600160a01b03919091166000908152600260209081526040808320938352929052205460ff1690565b61010e6101fa3660046105fb565b610491565b6000546001600160a01b0316331461025e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6001600160a01b038216600081815260016020908152604091829020805460ff19168515159081179091558251938452908301527f6c25d7a16f87af6c8f2bd27b2d9d88d7f6beedb8f4d8bee2f09507bde88ee979910160405180910390a15050565b6000546001600160a01b0316331461031b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610255565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36000805473ffffffffffffffffffffffffffffffffffffffff19169055565b6001600160a01b03821660009081526001602052604081205460ff16806103bc57506001600160a01b038316600090815260026020908152604080832085845290915290205460ff165b9392505050565b6000546001600160a01b0316331461041d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610255565b6001600160a01b0383166000818152600260209081526040808320868452825291829020805460ff19168515159081179091558251938452908301859052908201527f1b5035f0e2caa5edc420739aae4c76fba5381d22d1fa3c1810cd6a71fe32a2569060600160405180910390a1505050565b6000546001600160a01b031633146104eb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610255565b6001600160a01b0381166105675760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610255565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b80356001600160a01b03811681146105e657600080fd5b919050565b803580151581146105e657600080fd5b60006020828403121561060c578081fd5b6103bc826105cf565b60008060408385031215610627578081fd5b610630836105cf565b915061063e602084016105eb565b90509250929050565b60008060408385031215610659578182fd5b610662836105cf565b946020939093013593505050565b600080600060608486031215610684578081fd5b61068d846105cf565b9250602084013591506106a2604085016105eb565b9050925092509256fea2646970667358221220a6100df5ef6cd69abcfdc701935f85125e5a61b1f3313426a12cfe48ad25b5ae64736f6c63430008040033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100be5760003560e01c8063a4d6d29211610076578063b874c0381161005b578063b874c03814610187578063e5951756146101b3578063f2fde38b146101ec57600080fd5b8063a4d6d29214610146578063ac98c9381461017457600080fd5b8063715018a6116100a7578063715018a61461011057806381e97b66146101185780638da5cb5b1461012b57600080fd5b8063370f0a60146100c3578063518f037c146100fb575b600080fd5b6100e66100d13660046105fb565b60016020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b61010e610109366004610615565b6101ff565b005b61010e6102c1565b6100e6610126366004610647565b610372565b6000546040516001600160a01b0390911681526020016100f2565b6100e6610154366004610647565b600260209081526000928352604080842090915290825290205460ff1681565b61010e610182366004610670565b6103c3565b6100e66101953660046105fb565b6001600160a01b031660009081526001602052604090205460ff1690565b6100e66101c1366004610647565b6001600160a01b03919091166000908152600260209081526040808320938352929052205460ff1690565b61010e6101fa3660046105fb565b610491565b6000546001600160a01b0316331461025e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6001600160a01b038216600081815260016020908152604091829020805460ff19168515159081179091558251938452908301527f6c25d7a16f87af6c8f2bd27b2d9d88d7f6beedb8f4d8bee2f09507bde88ee979910160405180910390a15050565b6000546001600160a01b0316331461031b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610255565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36000805473ffffffffffffffffffffffffffffffffffffffff19169055565b6001600160a01b03821660009081526001602052604081205460ff16806103bc57506001600160a01b038316600090815260026020908152604080832085845290915290205460ff165b9392505050565b6000546001600160a01b0316331461041d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610255565b6001600160a01b0383166000818152600260209081526040808320868452825291829020805460ff19168515159081179091558251938452908301859052908201527f1b5035f0e2caa5edc420739aae4c76fba5381d22d1fa3c1810cd6a71fe32a2569060600160405180910390a1505050565b6000546001600160a01b031633146104eb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610255565b6001600160a01b0381166105675760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610255565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b80356001600160a01b03811681146105e657600080fd5b919050565b803580151581146105e657600080fd5b60006020828403121561060c578081fd5b6103bc826105cf565b60008060408385031215610627578081fd5b610630836105cf565b915061063e602084016105eb565b90509250929050565b60008060408385031215610659578182fd5b610662836105cf565b946020939093013593505050565b600080600060608486031215610684578081fd5b61068d846105cf565b9250602084013591506106a2604085016105eb565b9050925092509256fea2646970667358221220a6100df5ef6cd69abcfdc701935f85125e5a61b1f3313426a12cfe48ad25b5ae64736f6c63430008040033
Deployed Bytecode Sourcemap
3448:1221:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3495:46;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;2547:14:1;;2540:22;2522:41;;2510:2;2495:18;3495:46:0;;;;;;;;4241:171;;;;;;:::i;:::-;;:::i;:::-;;2801:148;;;:::i;4034:199::-;;;;;;:::i;:::-;;:::i;2150:87::-;2196:7;2223:6;2150:87;;-1:-1:-1;;;;;2223:6:0;;;1602:74:1;;1590:2;1575:18;2150:87:0;1557:125:1;3548:68:0;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;4420:246;;;;;;:::i;:::-;;:::i;3728:114::-;;;;;;:::i;:::-;-1:-1:-1;;;;;3814:20:0;3790:4;3814:20;;;:14;:20;;;;;;;;;3728:114;3850:176;;;;;;:::i;:::-;-1:-1:-1;;;;;3987:22:0;;;;3958:4;3987:22;;;:16;:22;;;;;;;;:31;;;;;;;;;;;3850:176;3104:244;;;;;;:::i;:::-;;:::i;4241:171::-;2196:7;2223:6;-1:-1:-1;;;;;2223:6:0;795:10;2370:23;2362:68;;;;-1:-1:-1;;;2362:68:0;;3183:2:1;2362:68:0;;;3165:21:1;;;3202:18;;;3195:30;3261:34;3241:18;;;3234:62;3313:18;;2362:68:0;;;;;;;;;-1:-1:-1;;;;;4326:20:0;::::1;;::::0;;;:14:::1;:20;::::0;;;;;;;;:30;;-1:-1:-1;;4326:30:0::1;::::0;::::1;;::::0;;::::1;::::0;;;4372:32;;1855:74:1;;;1945:18;;;1938:50;4372:32:0::1;::::0;1828:18:1;4372:32:0::1;;;;;;;4241:171:::0;;:::o;2801:148::-;2196:7;2223:6;-1:-1:-1;;;;;2223:6:0;795:10;2370:23;2362:68;;;;-1:-1:-1;;;2362:68:0;;3183:2:1;2362:68:0;;;3165:21:1;;;3202:18;;;3195:30;3261:34;3241:18;;;3234:62;3313:18;;2362:68:0;3155:182:1;2362:68:0;2908:1:::1;2892:6:::0;;2871:40:::1;::::0;-1:-1:-1;;;;;2892:6:0;;::::1;::::0;2871:40:::1;::::0;2908:1;;2871:40:::1;2939:1;2922:19:::0;;-1:-1:-1;;2922:19:0::1;::::0;;2801:148::o;4034:199::-;-1:-1:-1;;;;;3814:20:0;;4135:4;3814:20;;;:14;:20;;;;;;;;4164:61;;;-1:-1:-1;;;;;;3987:22:0;;3958:4;3987:22;;;:16;:22;;;;;;;;:31;;;;;;;;;;;4191:34;4157:68;4034:199;-1:-1:-1;;;4034:199:0:o;4420:246::-;2196:7;2223:6;-1:-1:-1;;;;;2223:6:0;795:10;2370:23;2362:68;;;;-1:-1:-1;;;2362:68:0;;3183:2:1;2362:68:0;;;3165:21:1;;;3202:18;;;3195:30;3261:34;3241:18;;;3234:62;3313:18;;2362:68:0;3155:182:1;2362:68:0;-1:-1:-1;;;;;4558:22:0;::::1;;::::0;;;:16:::1;:22;::::0;;;;;;;:31;;;;;;;;;:41;;-1:-1:-1;;4558:41:0::1;::::0;::::1;;::::0;;::::1;::::0;;;4615:43;;2195:74:1;;;2285:18;;;2278:34;;;2328:18;;;2321:50;4615:43:0::1;::::0;2183:2:1;2168:18;4615:43:0::1;;;;;;;4420:246:::0;;;:::o;3104:244::-;2196:7;2223:6;-1:-1:-1;;;;;2223:6:0;795:10;2370:23;2362:68;;;;-1:-1:-1;;;2362:68:0;;3183:2:1;2362:68:0;;;3165:21:1;;;3202:18;;;3195:30;3261:34;3241:18;;;3234:62;3313:18;;2362:68:0;3155:182:1;2362:68:0;-1:-1:-1;;;;;3193:22:0;::::1;3185:73;;;::::0;-1:-1:-1;;;3185:73:0;;2776:2:1;3185:73:0::1;::::0;::::1;2758:21:1::0;2815:2;2795:18;;;2788:30;2854:34;2834:18;;;2827:62;2925:8;2905:18;;;2898:36;2951:19;;3185:73:0::1;2748:228:1::0;3185:73:0::1;3295:6;::::0;;3274:38:::1;::::0;-1:-1:-1;;;;;3274:38:0;;::::1;::::0;3295:6;::::1;::::0;3274:38:::1;::::0;::::1;3323:6;:17:::0;;-1:-1:-1;;3323:17:0::1;-1:-1:-1::0;;;;;3323:17:0;;;::::1;::::0;;;::::1;::::0;;3104:244::o;14:196:1:-;82:20;;-1:-1:-1;;;;;131:54:1;;121:65;;111:2;;200:1;197;190:12;111:2;63:147;;;:::o;215:160::-;280:20;;336:13;;329:21;319:32;;309:2;;365:1;362;355:12;380:196;439:6;492:2;480:9;471:7;467:23;463:32;460:2;;;513:6;505;498:22;460:2;541:29;560:9;541:29;:::i;581:264::-;646:6;654;707:2;695:9;686:7;682:23;678:32;675:2;;;728:6;720;713:22;675:2;756:29;775:9;756:29;:::i;:::-;746:39;;804:35;835:2;824:9;820:18;804:35;:::i;:::-;794:45;;665:180;;;;;:::o;850:264::-;918:6;926;979:2;967:9;958:7;954:23;950:32;947:2;;;1000:6;992;985:22;947:2;1028:29;1047:9;1028:29;:::i;:::-;1018:39;1104:2;1089:18;;;;1076:32;;-1:-1:-1;;;937:177:1:o;1119:332::-;1193:6;1201;1209;1262:2;1250:9;1241:7;1237:23;1233:32;1230:2;;;1283:6;1275;1268:22;1230:2;1311:29;1330:9;1311:29;:::i;:::-;1301:39;;1387:2;1376:9;1372:18;1359:32;1349:42;;1410:35;1441:2;1430:9;1426:18;1410:35;:::i;:::-;1400:45;;1220:231;;;;;:::o
Swarm Source
ipfs://a6100df5ef6cd69abcfdc701935f85125e5a61b1f3313426a12cfe48ad25b5ae
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 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.