More Info
Private Name Tags
ContractCreator
Latest 7 from a total of 7 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Execute | 134711631 | 575 days ago | IN | 0 ETH | 0.00006701 | ||||
Execute | 134711334 | 575 days ago | IN | 0.00327175 ETH | 0.00006104 | ||||
Execute | 134710802 | 575 days ago | IN | 0 ETH | 0.00010301 | ||||
Execute | 56087454 | 815 days ago | IN | 0 ETH | 0.00007552 | ||||
Execute | 56087105 | 815 days ago | IN | 0.000001 ETH | 0.00011212 | ||||
Execute | 12462297 | 1070 days ago | IN | 0 ETH | 0.000283688147 ETH | ||||
Execute | 12462134 | 1070 days ago | IN | 0.008 ETH | 0.000307745417 ETH |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
134711631 | 575 days ago | 0.00790704 ETH | ||||
134711631 | 575 days ago | 0.00790704 ETH | ||||
134711334 | 575 days ago | 0.00327175 ETH | ||||
134711334 | 575 days ago | 0.00327175 ETH | ||||
134711334 | 575 days ago | 0.00327175 ETH | ||||
134710802 | 575 days ago | 0.00008251 ETH | ||||
134710802 | 575 days ago | 0.00008251 ETH | ||||
134710802 | 575 days ago | 0.00335427 ETH | ||||
134710802 | 575 days ago | 0.00335427 ETH | ||||
56087454 | 815 days ago | 0 ETH | ||||
56087454 | 815 days ago | 0 ETH | ||||
56087454 | 815 days ago | 0 ETH | ||||
56087454 | 815 days ago | 0 ETH | ||||
56087454 | 815 days ago | 0 ETH | ||||
56087454 | 815 days ago | 0 ETH | ||||
56087105 | 815 days ago | 0 ETH | ||||
56087105 | 815 days ago | 0 ETH | ||||
56087105 | 815 days ago | 0 ETH | ||||
56087105 | 815 days ago | 0 ETH | ||||
56087105 | 815 days ago | 0 ETH | ||||
56087105 | 815 days ago | 0 ETH | ||||
56087105 | 815 days ago | 0 ETH | ||||
56087105 | 815 days ago | 0 ETH | ||||
56087105 | 815 days ago | 0 ETH | ||||
56087105 | 815 days ago | 0 ETH |
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x17CfCC23...d412EbAaa The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
DSProxy
Compiler Version
v0.4.26+commit.4563c3fc
Contract Source Code (Solidity)
/** *Submitted for verification at Arbiscan.io on 2023-03-15 */ /** *Submitted for verification at Optimistic.Etherscan.io on 2022-07-19 */ /** *Submitted for verification at Etherscan.io on 2018-09-06 */ // proxy.sol - execute actions atomically through the proxy's identity // Copyright (C) 2017 DappHub, LLC // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // You should have received a copy of the GNU General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. pragma solidity ^0.4.23; contract DSAuthority { function canCall( address src, address dst, bytes4 sig ) public view returns (bool); } contract DSAuthEvents { event LogSetAuthority (address indexed authority); event LogSetOwner (address indexed owner); } contract DSAuth is DSAuthEvents { DSAuthority public authority; address public owner; constructor() public { owner = msg.sender; emit LogSetOwner(msg.sender); } function setOwner(address owner_) public auth { owner = owner_; emit LogSetOwner(owner); } function setAuthority(DSAuthority authority_) public auth { authority = authority_; emit LogSetAuthority(authority); } modifier auth { require(isAuthorized(msg.sender, msg.sig)); _; } function isAuthorized(address src, bytes4 sig) internal view returns (bool) { if (src == address(this)) { return true; } else if (src == owner) { return true; } else if (authority == DSAuthority(0)) { return false; } else { return authority.canCall(src, this, sig); } } } contract DSNote { event LogNote( bytes4 indexed sig, address indexed guy, bytes32 indexed foo, bytes32 indexed bar, uint wad, bytes fax ) anonymous; modifier note { bytes32 foo; bytes32 bar; assembly { foo := calldataload(4) bar := calldataload(36) } emit LogNote(msg.sig, msg.sender, foo, bar, msg.value, msg.data); _; } } // DSProxy // Allows code execution using a persistant identity This can be very // useful to execute a sequence of atomic actions. Since the owner of // the proxy can be changed, this allows for dynamic ownership models // i.e. a multisig contract DSProxy is DSAuth, DSNote { DSProxyCache public cache; // global cache for contracts constructor(address _cacheAddr) public { require(setCache(_cacheAddr)); } function() public payable { } // use the proxy to execute calldata _data on contract _code function execute(bytes _code, bytes _data) public payable returns (address target, bytes32 response) { target = cache.read(_code); if (target == 0x0) { // deploy contract & store its address in cache target = cache.write(_code); } response = execute(target, _data); } function execute(address _target, bytes _data) public auth note payable returns (bytes32 response) { require(_target != 0x0); // call contract in current context assembly { let succeeded := delegatecall(sub(gas, 5000), _target, add(_data, 0x20), mload(_data), 0, 32) response := mload(0) // load delegatecall output switch iszero(succeeded) case 1 { // throw if delegatecall failed revert(0, 0) } } } //set new cache function setCache(address _cacheAddr) public auth note returns (bool) { require(_cacheAddr != 0x0); // invalid cache address cache = DSProxyCache(_cacheAddr); // overwrite cache return true; } } // DSProxyFactory // This factory deploys new proxy instances through build() // Deployed proxy addresses are logged contract DSProxyFactory { event Created(address indexed sender, address indexed owner, address proxy, address cache); mapping(address=>bool) public isProxy; DSProxyCache public cache = new DSProxyCache(); // deploys a new proxy instance // sets owner of proxy to caller function build() public returns (DSProxy proxy) { proxy = build(msg.sender); } // deploys a new proxy instance // sets custom owner of proxy function build(address owner) public returns (DSProxy proxy) { proxy = new DSProxy(cache); emit Created(msg.sender, owner, address(proxy), address(cache)); proxy.setOwner(owner); isProxy[proxy] = true; } } // DSProxyCache // This global cache stores addresses of contracts previously deployed // by a proxy. This saves gas from repeat deployment of the same // contracts and eliminates blockchain bloat. // By default, all proxies deployed from the same factory store // contracts in the same cache. The cache a proxy instance uses can be // changed. The cache uses the sha3 hash of a contract's bytecode to // lookup the address contract DSProxyCache { mapping(bytes32 => address) cache; function read(bytes _code) public view returns (address) { bytes32 hash = keccak256(_code); return cache[hash]; } function write(bytes _code) public returns (address target) { assembly { target := create(0, add(_code, 0x20), mload(_code)) switch iszero(extcodesize(target)) case 1 { // throw if contract failed to deploy revert(0, 0) } } bytes32 hash = keccak256(_code); cache[hash] = target; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"constant":false,"inputs":[{"name":"owner_","type":"address"}],"name":"setOwner","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_target","type":"address"},{"name":"_data","type":"bytes"}],"name":"execute","outputs":[{"name":"response","type":"bytes32"}],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"_code","type":"bytes"},{"name":"_data","type":"bytes"}],"name":"execute","outputs":[{"name":"target","type":"address"},{"name":"response","type":"bytes32"}],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"cache","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"authority_","type":"address"}],"name":"setAuthority","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_cacheAddr","type":"address"}],"name":"setCache","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"authority","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_cacheAddr","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":true,"inputs":[{"indexed":true,"name":"sig","type":"bytes4"},{"indexed":true,"name":"guy","type":"address"},{"indexed":true,"name":"foo","type":"bytes32"},{"indexed":true,"name":"bar","type":"bytes32"},{"indexed":false,"name":"wad","type":"uint256"},{"indexed":false,"name":"fax","type":"bytes"}],"name":"LogNote","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"authority","type":"address"}],"name":"LogSetAuthority","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"}],"name":"LogSetOwner","type":"event"}]
Deployed Bytecode
0x60806040526004361061008d5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166313af4035811461008f5780631cff79cd146100b05780631f6a1eb91461011c57806360c7d295146101c95780637a9e5e4b146101fa5780638da5cb5b1461021b578063948f507614610230578063bf7e214f14610265575b005b34801561009b57600080fd5b5061008d600160a060020a036004351661027a565b60408051602060046024803582810135601f810185900485028601850190965285855261010a958335600160a060020a03169536956044949193909101919081908401838280828437509497506102f89650505050505050565b60408051918252519081900360200190f35b6040805160206004803580820135601f81018490048402850184019095528484526101a694369492936024939284019190819084018382808284375050604080516020601f89358b018035918201839004830284018301909452808352979a9998810197919650918201945092508291508401838280828437509497506103b59650505050505050565b60408051600160a060020a03909316835260208301919091528051918290030190f35b3480156101d557600080fd5b506101de6105c5565b60408051600160a060020a039092168252519081900360200190f35b34801561020657600080fd5b5061008d600160a060020a03600435166105d4565b34801561022757600080fd5b506101de61064e565b34801561023c57600080fd5b50610251600160a060020a036004351661065d565b604080519115158252519081900360200190f35b34801561027157600080fd5b506101de61071b565b61029033600035600160e060020a03191661072a565b151561029b57600080fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383811691909117918290556040519116907fce241d7ca1f669fee44b6fc00b8eba2df3bb514eed0f6f668f8f89096e81ed9490600090a250565b600061031033600035600160e060020a03191661072a565b151561031b57600080fd5b60408051348082526020820183815236938301849052600435936024359384938693339360008035600160e060020a031916949092606082018484808284376040519201829003965090945050505050a4600160a060020a038516151561038157600080fd5b60206000855160208701886113885a03f460005193508015600181146103a6576103ab565b600080fd5b5050505092915050565b6002546040517f8bf4515c0000000000000000000000000000000000000000000000000000000081526020600482018181528551602484015285516000948594600160a060020a0390911693638bf4515c93899390928392604490910191908501908083838b5b8381101561043457818101518382015260200161041c565b50505050905090810190601f1680156104615780820380516001836020036101000a031916815260200191505b5092505050602060405180830381600087803b15801561048057600080fd5b505af1158015610494573d6000803e3d6000fd5b505050506040513d60208110156104aa57600080fd5b50519150600160a060020a03821615156105b2576002546040517f7ed0c3b2000000000000000000000000000000000000000000000000000000008152602060048201818152875160248401528751600160a060020a0390941693637ed0c3b293899383926044909201919085019080838360005b8381101561053757818101518382015260200161051f565b50505050905090810190601f1680156105645780820380516001836020036101000a031916815260200191505b5092505050602060405180830381600087803b15801561058357600080fd5b505af1158015610597573d6000803e3d6000fd5b505050506040513d60208110156105ad57600080fd5b505191505b6105bc82846102f8565b90509250929050565b600254600160a060020a031681565b6105ea33600035600160e060020a03191661072a565b15156105f557600080fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03838116919091178083556040519116917f1abebea81bfa2637f28358c371278fb15ede7ea8dd28d2e03b112ff6d936ada491a250565b600154600160a060020a031681565b600061067533600035600160e060020a03191661072a565b151561068057600080fd5b60408051348082526020820183815236938301849052600435936024359384938693339360008035600160e060020a031916949092606082018484808284376040519201829003965090945050505050a4600160a060020a03841615156106e657600080fd5b60028054600160a060020a03861673ffffffffffffffffffffffffffffffffffffffff19909116179055600192505050919050565b600054600160a060020a031681565b6000600160a060020a0383163014156107455750600161082d565b600154600160a060020a03848116911614156107635750600161082d565b600054600160a060020a0316151561077d5750600061082d565b60008054604080517fb7009613000000000000000000000000000000000000000000000000000000008152600160a060020a038781166004830152306024830152600160e060020a0319871660448301529151919092169263b700961392606480820193602093909283900390910190829087803b1580156107fe57600080fd5b505af1158015610812573d6000803e3d6000fd5b505050506040513d602081101561082857600080fd5b505190505b929150505600a165627a7a72305820bdb5c3cfc245342143869af3287244064942a81fd3e79007f3cc3e7a155718830029
Deployed Bytecode Sourcemap
2995:1588:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1437:136;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1437:136:0;;;-1:-1:-1;;;;;1437:136:0;;;3681:597;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;3681:597:0;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3681:597:0;;-1:-1:-1;3681:597:0;;-1:-1:-1;;;;;;;3681:597:0;;;;;;;;;;;;;;;;;3305:368;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;3305:368:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3305:368:0;;;;-1:-1:-1;3305:368:0;-1:-1:-1;3305:368:0;;-1:-1:-1;3305:368:0;;;;;;;;-1:-1:-1;3305:368:0;;-1:-1:-1;3305:368:0;;-1:-1:-1;;;;;;;3305:368:0;;;;;-1:-1:-1;;;;;3305:368:0;;;;;;;;;;;;;;;;;;;;;;3037:25;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3037:25:0;;;;;;;;-1:-1:-1;;;;;3037:25:0;;;;;;;;;;;;;;1581:164;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1581:164:0;;;-1:-1:-1;;;;;1581:164:0;;;1297:26;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1297:26:0;;;;4307:273;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;4307:273:0;;;-1:-1:-1;;;;;4307:273:0;;;;;;;;;;;;;;;;;;;;;1260:30;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1260:30:0;;;;1437:136;1786:33;1799:10;-1:-1:-1;;;;;;1811:7:0;;;1786:12;:33::i;:::-;1778:42;;;;;;;;1517:5;:14;;-1:-1:-1;;1517:14:0;-1:-1:-1;;;;;1517:14:0;;;;;;;;;;;1547:18;;1559:5;;;1547:18;;-1:-1:-1;;1547:18:0;1437:136;:::o;3681:597::-;3807:16;1786:33;1799:10;-1:-1:-1;;;;;;1811:7:0;;;1786:12;:33::i;:::-;1778:42;;;;;;;;2662:59;;;2701:9;2662:59;;;;;;;;;2712:8;2662:59;;;;;;2595:1;2582:15;;2631:2;2618:16;;;;2582:15;;2679:10;;-1:-1:-1;2670:7:0;;-1:-1:-1;;;;;;2670:7:0;;-1:-1:-1;;2662:59:0;;;-1:-1:-1;2712:8:0;;-1:-1:-1;2662:59:0;;;;;;;;;;-1:-1:-1;2662:59:0;;-1:-1:-1;;;;;2662:59:0;-1:-1:-1;;;;;3849:14:0;;;;3841:23;;;;;;4036:2;4033:1;4025:5;4019:12;4012:4;4005:5;4001:16;3992:7;3985:4;3980:3;3976:14;3963:76;4071:1;4065:8;4053:20;;4134:9;4127:17;4163:1;4158:102;;;;4120:140;;4158:102;4243:1;4240;4233:12;4120:140;;3931:340;1831:1;;3681:597;;;;:::o;3305:368::-;3458:5;;:17;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;3458:5:0;;;;:10;;:17;;;;;;;;;;;;;;;;;;-1:-1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;3458:17:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3458:17:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;3458:17:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;3458:17:0;;-1:-1:-1;;;;;;3490:13:0;;;3486:134;;;3590:5;;:18;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;3590:5:0;;;;:11;;:18;;;;;;;;;;;;;;;;-1:-1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;3590:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3590:18:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;3590:18:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;3590:18:0;;-1:-1:-1;3486:134:0;3643:22;3651:6;3659:5;3643:7;:22::i;:::-;3632:33;;3305:368;;;;;:::o;3037:25::-;;;-1:-1:-1;;;;;3037:25:0;;:::o;1581:164::-;1786:33;1799:10;-1:-1:-1;;;;;;1811:7:0;;;1786:12;:33::i;:::-;1778:42;;;;;;;;1673:9;:22;;-1:-1:-1;;1673:22:0;-1:-1:-1;;;;;1673:22:0;;;;;;;;;;1711:26;;1727:9;;;1711:26;;;1581:164;:::o;1297:26::-;;;-1:-1:-1;;;;;1297:26:0;;:::o;4307:273::-;4407:4;1786:33;1799:10;-1:-1:-1;;;;;;1811:7:0;;;1786:12;:33::i;:::-;1778:42;;;;;;;;2662:59;;;2701:9;2662:59;;;;;;;;;2712:8;2662:59;;;;;;2595:1;2582:15;;2631:2;2618:16;;;;2582:15;;2679:10;;-1:-1:-1;2670:7:0;;-1:-1:-1;;;;;;2670:7:0;;-1:-1:-1;;2662:59:0;;;-1:-1:-1;2712:8:0;;-1:-1:-1;2662:59:0;;;;;;;;;;-1:-1:-1;2662:59:0;;-1:-1:-1;;;;;2662:59:0;-1:-1:-1;;;;;4437:17:0;;;;4429:26;;;;;;-1:-1:-1;;4498:5:0;:32;;-1:-1:-1;;4498:32:0;-1:-1:-1;;;;;4498:32:0;;;;;;;;;;;-1:-1:-1;;;4307:273:0:o;1260:30::-;;;-1:-1:-1;;;;;1260:30:0;;:::o;1848:371::-;1918:4;1954;-1:-1:-1;;;;;1939:20:0;;;1935:277;;;-1:-1:-1;1983:4:0;1976:11;;1935:277;2016:5;;-1:-1:-1;;;;;2009:12:0;;;2016:5;;2009:12;2005:207;;;-1:-1:-1;2045:4:0;2038:11;;2005:207;2096:1;2071:9;-1:-1:-1;;;;;2071:9:0;:27;2067:145;;;-1:-1:-1;2122:5:0;2115:12;;2067:145;2167:9;;;:33;;;;;;-1:-1:-1;;;;;2167:33:0;;;;;;;2190:4;2167:33;;;;-1:-1:-1;;;;;;2167:33:0;;;;;;;;:9;;;;;:17;;:33;;;;;;;;;;;;;;;;;;:9;:33;;;5:2:-1;;;;30:1;27;20:12;5:2;2167:33:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2167:33:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2167:33:0;;-1:-1:-1;2067:145:0;1848:371;;;;:::o
Swarm Source
bzzr://bdb5c3cfc245342143869af3287244064942a81fd3e79007f3cc3e7a15571883
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
Loading...
Loading
[ 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.