Проверенный контрактТочноеGPL-3.0-or-later
MirrorDutchAuctionProxy
Адрес0xa4ec6ef236578dd740be2f6b6c4c0155db46bbc4
- Баланс
0 ETH
- Транзакций
57
- Компилятор
solc 0.8.6
- Тот же код
ещё 6 контрактов
Подробности
- Компилятор
- solc 0.8.6+commit.11564f7e
- Язык
- solidity
- Оптимизация
- Да, 2 000 прогонов
- Версия EVM
- berlin
- Лицензия
- GPL-3.0-or-later
- Совпадение
- Точноекод создания: да, код в сети: да
- Проверен на Sourcify
- Создан в блоке
- 13 999 612
- Транзакция создания
- 0x2dd581ad6b…b00bdcaa46
- Реализация прокси
- 0x9ae96b2e…4ce5bc02MirrorDutchAuctionLogic
- Основная копия (больше всего транзакций)
- 0xc763cef7…3cade1dc
contracts/producers/auction/MirrorDutchAuctionProxy.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.8.6;
/**
* @title MirrorDutchAuctionProxy
* @author MirrorXYZ
*/
contract MirrorDutchAuctionProxy {
/**
* @dev Storage slot with the address of the current implementation.
* This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1, and is
* validated in the constructor.
*/
bytes32 internal constant _IMPLEMENTATION_SLOT =
0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
/**
* @notice Stores implementation logic.
* @param implementation - the implementation holds the logic for all proxies
* @param initializationData - initialization call
*/
constructor(address implementation, bytes memory initializationData) {
// Delegatecall into the relayer, supplying initialization calldata.
(bool ok, ) = implementation.delegatecall(initializationData);
// Revert and include revert data if delegatecall to implementation reverts.
if (!ok) {
assembly {
returndatacopy(0, 0, returndatasize())
revert(0, returndatasize())
}
}
assembly {
sstore(_IMPLEMENTATION_SLOT, implementation)
}
}
/**
* @notice When any function is called on this contract, we delegate to
* the logic contract stored in the implementation storage slot.
*/
fallback() external payable {
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)
}
}
}
receive() external payable {}
}
Настройки компилятораПоказать
{
"metadata": {
"bytecodeHash": "ipfs"
},
"libraries": {},
"optimizer": {
"runs": 2000,
"enabled": true
},
"evmVersion": "berlin",
"remappings": []
}Исходный код и метаданные: Sourcify.
Исходный код принадлежит авторам контракта.