Проверенный контрактЧастичное
Proxy
Адрес0x759d0f38ba05d28892f3bf0e5cbdd806266fb4a4
- Баланс
0 ETH
- Транзакций
926
- Компилятор
solc 0.1.7
- Тот же код
ещё 1 контракт
Подробности
- Компилятор
- solc 0.1.7+commit.b4e666cc
- Язык
- solidity
- Оптимизация
- Да, 200 прогонов
- Лицензия
- Не указана
- Совпадение
- Частичноекод создания: да, код в сети: да
- Проверен на Sourcify
- Создан в блоке
- 670 274
- Транзакция создания
- 0x85f2953afd…2800afcdd5
Proxy.sol
// Recovered by EthereumHistory (ethereumhistory.com) -sw
contract Recipient {
function transfer(address from, address to, uint value) returns (bool);
function getAccountBalance(address account) 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 getRecipient() returns (address) {
return recipient;
}
function setRecipient(address _recipient) returns (bool) {
if (msg.sender == owner) {
recipient = _recipient;
return true;
}
}
function transfer(address from, uint32 a, bytes32[] b, uint8[] c, address to, uint value) returns (bool) {
if (msg.sender == owner) {
Recipient r = Recipient(recipient);
return r.transfer(from, to, value);
}
return false;
}
function initAccount(address a, uint32 b, bytes32[] c, uint8[] d, uint e, address[] f) returns (bool success) {
success = true;
}
function getOwner() returns (address) {
return owner;
}
function getAccountBalance(address account) returns (uint) {
Recipient r = Recipient(recipient);
uint balance = r.getAccountBalance(account);
return balance;
}
}
Настройки компилятораПоказать
{
"optimizer": {
"runs": 200,
"enabled": true
}
}Исходный код и метаданные: Sourcify.
Исходный код принадлежит авторам контракта.