Address Contract Partially Verified
Address
0xa4057dadA9217A8E64Ee7d469A5A7e7c40B7380f
Balance
0 ETH
Nonce
1
Code Size
1398 bytes
Creator
0xD82Fdbf7...912E at tx 0x9833e9ad...51afda
Indexed Transactions
0
Contract Bytecode
1398 bytes
0x608060405234801561001057600080fd5b506004361061005b5760003560e01c80635c60da1b14610085578063715018a6146100a35780638da5cb5b146100ad578063d784d426146100cb578063f2fde38b146100e75761005c565b5b604051366000823760008036836001545af43d806000843e8160008114610081578184f35b8184fd5b61008d610103565b60405161009a9190610413565b60405180910390f35b6100ab610129565b005b6100b561013d565b6040516100c29190610413565b60405180910390f35b6100e560048036038101906100e09190610395565b610166565b005b61010160048036038101906100fc9190610395565b6101b2565b005b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610131610236565b61013b60006102b4565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61016e610236565b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6101ba610236565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561022a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102219061042e565b60405180910390fd5b610233816102b4565b50565b61023e610378565b73ffffffffffffffffffffffffffffffffffffffff1661025c61013d565b73ffffffffffffffffffffffffffffffffffffffff16146102b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102a99061044e565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b60008135905061038f81610529565b92915050565b6000602082840312156103a757600080fd5b60006103b584828501610380565b91505092915050565b6103c78161047f565b82525050565b60006103da60268361046e565b91506103e5826104b1565b604082019050919050565b60006103fd60208361046e565b915061040882610500565b602082019050919050565b600060208201905061042860008301846103be565b92915050565b60006020820190508181036000830152610447816103cd565b9050919050565b60006020820190508181036000830152610467816103f0565b9050919050565b600082825260208201905092915050565b600061048a82610491565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6105328161047f565b811461053d57600080fd5b5056fea26469706673582212200a8fe56adc3e52adad6e5d9189c1f166951def083186266833bc0c57dd41b41264736f6c63430008010033
Verified Source Code Partial Match
Compiler: v0.8.1+commit.df193b15
EVM: istanbul
Optimization: No
Proxy.sol 46 lines
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/3dac7bbed7b4c0dbf504180c33e8ed8e350b93eb/contracts/access/Ownable.sol";
contract ProxyStorage is Ownable {
address public implementation;
}
contract Proxy is ProxyStorage {
constructor(address _implementation) {
setImplementation(_implementation);
}
function setImplementation(address _implementation) public onlyOwner() {
implementation = _implementation;
}
fallback () external {
assembly {
let ptr := mload(0x40)
calldatacopy(ptr, 0, calldatasize())
let result := delegatecall (
gas(),
sload(implementation.slot),
ptr,
calldatasize(),
0,
0
)
let size := returndatasize()
returndatacopy(ptr, 0, size)
switch result
case 0 {
revert(ptr, size)
}
default {
return(ptr, size)
}
}
}
}
Context.sol 24 lines
// 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;
}
}
Ownable.sol 83 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (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 Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
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);
}
}
Read Contract
implementation 0x5c60da1b → address
owner 0x8da5cb5b → address
Write Contract 3 functions
These functions modify contract state and require a wallet transaction to execute.
renounceOwnership 0x715018a6
No parameters
setImplementation 0xd784d426
address _implementation
transferOwnership 0xf2fde38b
address newOwner
Recent Transactions
No transactions found for this address