More Info
Private Name Tags
ContractCreator
Latest 11 from a total of 11 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Direct Deposit | 110716748 | 425 days ago | IN | 0 ETH | 0.0000350199 | ||||
Direct Deposit | 110629487 | 427 days ago | IN | 0 ETH | 0.000053482597 | ||||
Direct Deposit | 110372082 | 433 days ago | IN | 0 ETH | 0.000077017154 | ||||
Direct Deposit | 110198153 | 437 days ago | IN | 0 ETH | 0.00006973622 | ||||
Direct Deposit | 110193945 | 437 days ago | IN | 0 ETH | 0.000050146635 | ||||
Direct Deposit | 105669305 | 542 days ago | IN | 0 ETH | 0.000053238314 | ||||
Direct Deposit | 88879921 | 608 days ago | IN | 0 ETH | 0.000118340855 | ||||
Set Admin | 86474768 | 614 days ago | IN | 0 ETH | 0.000155753488 | ||||
Transfer Ownersh... | 86474658 | 614 days ago | IN | 0 ETH | 0.000156380346 | ||||
Set Operator Man... | 86474570 | 614 days ago | IN | 0 ETH | 0.000155930046 | ||||
Upgrade To | 86474412 | 614 days ago | IN | 0 ETH | 0.000155755186 |
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x8aEb89D5...5BDc74CE6 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
EIP1967Proxy
Compiler Version
v0.8.15+commit.e14f2714
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: CC0-1.0 pragma solidity 0.8.15; import "./EIP1967Admin.sol"; /** * @title EIP1967Proxy * @dev Upgradeable proxy pattern implementation according to minimalistic EIP1967. */ contract EIP1967Proxy is EIP1967Admin { // EIP 1967 // bytes32(uint256(keccak256('eip1967.proxy.implementation')) - 1) uint256 internal constant EIP1967_IMPLEMENTATION_STORAGE = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; event Upgraded(address indexed implementation); event AdminChanged(address previousAdmin, address newAdmin); constructor(address _admin, address _implementation, bytes memory _data) payable { _setAdmin(_admin); _setImplementation(_implementation); if (_data.length > 0) { bool status; assembly { status := callcode(gas(), _implementation, callvalue(), add(_data, 32), mload(_data), 0, 0) } require(status, "EIP1967Proxy: initialize call failed"); } } /** * @dev Tells the proxy admin account address. * @return proxy admin address. */ function admin() public view returns (address) { return _admin(); } /** * @dev Tells the proxy implementation contract address. * @return res implementation address. */ function implementation() public view returns (address res) { assembly { res := sload(EIP1967_IMPLEMENTATION_STORAGE) } } /** * @dev Updates address of the proxy owner. * Callable only by the proxy admin. * @param _admin address of the new proxy admin. */ function setAdmin(address _admin) external onlyAdmin { _setAdmin(_admin); } /** * @dev Updates proxy implementation address. * Callable only by the proxy admin. * @param _implementation address of the new proxy implementation. */ function upgradeTo(address _implementation) external onlyAdmin { _setImplementation(_implementation); } /** * @dev Updates proxy implementation address and makes an initialization call to new implementation. * Callable only by the proxy admin. * @param _implementation address of the new proxy implementation. * @param _data calldata to pass through the new implementation after the upgrade. */ function upgradeToAndCall(address _implementation, bytes calldata _data) external payable onlyAdmin { _setImplementation(_implementation); (bool status,) = address(this).call{value: msg.value}(_data); require(status, "EIP1967Proxy: update call failed"); } /** * @dev Fallback function allowing to perform a delegatecall to the given implementation. * This function will return whatever the implementation call returns */ fallback() external payable { address impl = implementation(); require(impl != address(0)); assembly { // Copy msg.data. We take full control of memory in this inline assembly // block because it will not return to Solidity code. We overwrite the // Solidity scratch pad at memory position 0. calldatacopy(0, 0, calldatasize()) // Call the implementation. // out and outsize are 0 because we don't know the size yet. let result := delegatecall(gas(), impl, 0, calldatasize(), 0, 0) // Copy the returned data. returndatacopy(0, 0, returndatasize()) switch result // delegatecall returns 0 on error. case 0 { revert(0, returndatasize()) } default { return(0, returndatasize()) } } } /** * @dev Internal function for transfer current admin rights to a different account. * @param _admin address of the new administrator. */ function _setAdmin(address _admin) internal { address previousAdmin = admin(); require(_admin != address(0)); require(previousAdmin != _admin); assembly { sstore(EIP1967_ADMIN_STORAGE, _admin) } emit AdminChanged(previousAdmin, _admin); } /** * @dev Internal function for setting a new implementation address. * @param _implementation address of the new implementation contract. */ function _setImplementation(address _implementation) internal { require(_implementation != address(0)); require(implementation() != _implementation); assembly { sstore(EIP1967_IMPLEMENTATION_STORAGE, _implementation) } emit Upgraded(_implementation); } }
// SPDX-License-Identifier: CC0-1.0 pragma solidity 0.8.15; /** * @title EIP1967Admin * @dev Upgradeable proxy pattern implementation according to minimalistic EIP1967. */ contract EIP1967Admin { // EIP 1967 // bytes32(uint256(keccak256('eip1967.proxy.admin')) - 1) uint256 internal constant EIP1967_ADMIN_STORAGE = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103; modifier onlyAdmin() { require(msg.sender == _admin(), "EIP1967Admin: not an admin"); _; } function _admin() internal view returns (address res) { assembly { res := sload(EIP1967_ADMIN_STORAGE) } } }
{ "remappings": [ "@base58-solidity/=lib/base58-solidity/contracts/", "@gnosis/=lib/@gnosis/", "@gnosis/auction/=lib/@gnosis/auction/contracts/", "@openzeppelin/=lib/@openzeppelin/contracts/", "@openzeppelin/contracts/=lib/@openzeppelin/contracts/contracts/", "@uniswap/=lib/@uniswap/", "base58-solidity/=lib/base58-solidity/contracts/", "ds-test/=lib/forge-std/lib/ds-test/src/", "forge-std/=lib/forge-std/src/" ], "optimizer": { "enabled": true, "runs": 200 }, "metadata": { "bytecodeHash": "ipfs" }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "london", "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_admin","type":"address"},{"internalType":"address","name":"_implementation","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"stateMutability":"payable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"res","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_admin","type":"address"}],"name":"setAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_implementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_implementation","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"}]
Deployed Bytecode
0x60806040526004361061004a5760003560e01c80633659cfe61461009d5780634f1ef286146100bd5780635c60da1b146100d0578063704b6c021461010a578063f851a4401461012a575b60006100626000805160206105478339815191525490565b90506001600160a01b03811661007757600080fd5b3660008037600080366000845af43d6000803e808015610096573d6000f35b3d6000fd5b005b3480156100a957600080fd5b5061009b6100b836600461043a565b61013f565b61009b6100cb36600461045c565b610194565b3480156100dc57600080fd5b50600080516020610547833981519152545b6040516001600160a01b03909116815260200160405180910390f35b34801561011657600080fd5b5061009b61012536600461043a565b610293565b34801561013657600080fd5b506100ee6102dc565b600080516020610527833981519152546001600160a01b0316336001600160a01b0316146101885760405162461bcd60e51b815260040161017f906104df565b60405180910390fd5b610191816102f9565b50565b600080516020610527833981519152546001600160a01b0316336001600160a01b0316146101d45760405162461bcd60e51b815260040161017f906104df565b6101dd836102f9565b6000306001600160a01b03163484846040516101fa929190610516565b60006040518083038185875af1925050503d8060008114610237576040519150601f19603f3d011682016040523d82523d6000602084013e61023c565b606091505b505090508061028d5760405162461bcd60e51b815260206004820181905260248201527f4549503139363750726f78793a207570646174652063616c6c206661696c6564604482015260640161017f565b50505050565b600080516020610527833981519152546001600160a01b0316336001600160a01b0316146102d35760405162461bcd60e51b815260040161017f906104df565b61019181610388565b60006102f46000805160206105278339815191525490565b905090565b6001600160a01b03811661030c57600080fd5b806001600160a01b031661032c6000805160206105478339815191525490565b6001600160a01b03160361033f57600080fd5b6000805160206105478339815191528190556040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60006103926102dc565b90506001600160a01b0382166103a757600080fd5b816001600160a01b0316816001600160a01b0316036103c557600080fd5b600080516020610527833981519152829055604080516001600160a01b038084168252841660208201527f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f910160405180910390a15050565b80356001600160a01b038116811461043557600080fd5b919050565b60006020828403121561044c57600080fd5b6104558261041e565b9392505050565b60008060006040848603121561047157600080fd5b61047a8461041e565b9250602084013567ffffffffffffffff8082111561049757600080fd5b818601915086601f8301126104ab57600080fd5b8135818111156104ba57600080fd5b8760208285010111156104cc57600080fd5b6020830194508093505050509250925092565b6020808252601a908201527f4549503139363741646d696e3a206e6f7420616e2061646d696e000000000000604082015260600190565b818382376000910190815291905056feb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122051ae92e3cd1e271e31a474971c688af9c2bf0f3bc0c4d6358ba5701f7a751af864736f6c634300080f0033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
OP | 100.00% | $1 | 13.5 | $13.5 |
[ 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.