Verified contractPartial
Proxy
Address0x28b908db0a32e561a40eab4bc1dc437ac0140ed2
- Balance
0 ETH
- Transactions
4
- Compiler
solc 0.2.0
- Same code
Only this contract
Details
- Compiler
- solc 0.2.0+commit.4dc2445e
- Language
- solidity
- Optimization
- Yes, 200 runs
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 672,134
- Creation transaction
- 0xa695951bad…41ec78c122
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 initAccount(address a, uint32 b, bytes32[] c, uint8[] d, uint e, address[] f) returns (bool) {
return true;
}
function transfer(address from, uint32 x, bytes32[] a, uint8[] b, address to, uint value) returns (bool ok) {
if (msg.sender == owner) {
recipient.call(bytes4(sha3("transfer(address,address,uint)")), from, to, value);
return;
}
return false;
}
}
Compiler settingsShow
{
"optimizer": {
"runs": 200,
"enabled": true
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.