Skip to content
Verified contractPartial

Proxy

Address0x1b284a9d27dcbfc33a3ceb12e13d8c64eea9d9e2
Balance

0 ETH

 

Transactions

3

 

Compiler

solc 0.2.0-nightly.2015.12.10

 

Same code

Only this contract

 

Details

Compiler
solc 0.2.0-nightly.2015.12.10+commit.e7098958
Language
solidity
Optimization
Yes, 200 runs
License
Not stated
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
672,267
Creation transaction
0xefa5f70254…bec7a791c8

Proxy.sol

// Recovered by EthereumHistory (ethereumhistory.com) -sw
contract Recipient {
    function getAccountBalance(address addr) returns (uint);
}

contract Proxy {
    address owner;
    address recipient;

    function Proxy(address _recipient) {
        owner = msg.sender;
        recipient = _recipient;
    }

    function setOwner(address _owner) returns (bool) {
        if (msg.sender == owner) {
            owner = _owner;
            return true;
        }
    }

    function getOwner() returns (address) {
        return owner;
    }

    function setRecipient(address _recipient) returns (bool) {
        if (msg.sender == owner) {
            recipient = _recipient;
            return true;
        }
    }

    function getRecipient() returns (address) {
        return recipient;
    }

    function getAccountBalance(address addr) returns (uint) {
        Recipient r = Recipient(recipient);
        uint balance = r.getAccountBalance(addr);
        return balance;
    }

    function transfer(address from, address to, uint value) returns (bool ok) {
        if (msg.sender == owner) ok = recipient.call(bytes4(sha3("transfer(address,address,uint)")), from, to, value);
    }

    function initAccount(address a, uint32 b, bytes32[] c, uint8[] d, uint e, address[] f) returns (bool) {
        return true;
    }
}
Compiler settingsShow
{
  "optimizer": {
    "runs": 200,
    "enabled": true
  }
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.