Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
- Contract name:
- PhuxTimelockController
- Optimization enabled
- true
- Compiler version
- v0.8.9+commit.e5eed63a
- Optimization runs
- 200
- EVM Version
- default
- Verified at
- 2023-06-11T11:28:43.434482Z
Constructor Arguments
0x000000000000000000000000149b870831eeef959e806dd0206a4b22f57ca418
Arg [0] (address) : 0x149b870831eeef959e806dd0206a4b22f57ca418
contracts/PhuxTimelockController.sol
// SPDX-License-Identifier: agpl-3.0
pragma solidity 0.8.9;
pragma experimental ABIEncoderV2;
contract PhuxTimelockController {
uint256 public constant MIN_DELAY = 2 days;
uint256 internal constant _DONE_TIMESTAMP = uint256(1);
address public admin;
mapping(bytes32 => uint256) private _timestamps;
/**
* @dev Emitted when a call is scheduled as part of operation `id`.
*/
event CallScheduled(
bytes32 indexed id,
uint256 indexed index,
address target,
uint256 value,
bytes data,
bytes32 predecessor,
uint256 delay
);
/**
* @dev Emitted when a call is performed as part of operation `id`.
*/
event CallExecuted(
bytes32 indexed id,
uint256 indexed index,
address target,
uint256 value,
bytes data
);
/**
* @dev Emitted when operation `id` is cancelled.
*/
event Cancelled(bytes32 indexed id);
event AdminTransferred(
address indexed previousAdmin,
address indexed newAdmin
);
/**
* @dev Initializes the contract with given 'admin_'.
*/
constructor(address admin_) {
require(
admin_ != address(0),
"PhuxTimelockController: admin should not be the zero address"
);
admin = admin_;
emit AdminTransferred(address(0), admin);
}
/**
* @dev Modifier to make a function callable only by this contract itself.
*/
modifier onlySelf() {
require(
msg.sender == address(this),
"PhuxTimelockController: sender is not this contract"
);
_;
}
/**
* @dev Modifier to make a function callable only by admin.
*/
modifier onlyAdmin() {
require(
msg.sender == admin,
"PhuxTimelockController: sender is not admin"
);
_;
}
/**
* @dev Contract might receive/hold ETH as part of the maintenance process.
*/
receive() external payable {}
/**
* @dev Transfers admin of the contract to a new account (`newAdmin`).
* Can only be called by this contract itself.
*/
function transferAdmin(address newAdmin) external onlySelf {
require(
newAdmin != address(0),
"PhuxTimelockController: admin should not be the zero address"
);
emit AdminTransferred(admin, newAdmin);
admin = newAdmin;
}
/**
* @dev Returns whether an id correspond to a registered operation. This
* includes both Pending, Ready and Done operations.
*/
function isOperation(
bytes32 id
) public view virtual returns (bool pending) {
return getTimestamp(id) > 0;
}
/**
* @dev Returns whether an operation is pending or not.
*/
function isOperationPending(
bytes32 id
) public view virtual returns (bool pending) {
return getTimestamp(id) > _DONE_TIMESTAMP;
}
/**
* @dev Returns whether an operation is ready or not.
*/
function isOperationReady(
bytes32 id
) public view virtual returns (bool ready) {
uint256 timestamp = getTimestamp(id);
// solhint-disable-next-line not-rely-on-time
return timestamp > _DONE_TIMESTAMP && timestamp <= block.timestamp;
}
/**
* @dev Returns whether an operation is done or not.
*/
function isOperationDone(
bytes32 id
) public view virtual returns (bool done) {
return getTimestamp(id) == _DONE_TIMESTAMP;
}
/**
* @dev Returns the timestamp at with an operation becomes ready (0 for
* unset operations, 1 for done operations).
*/
function getTimestamp(
bytes32 id
) public view virtual returns (uint256 timestamp) {
return _timestamps[id];
}
/**
* @dev Returns the identifier of an operation containing a single
* transaction.
*/
function hashOperation(
address target,
uint256 value,
bytes calldata data,
bytes32 predecessor,
bytes32 salt
) public pure virtual returns (bytes32 hash) {
return keccak256(abi.encode(target, value, data, predecessor, salt));
}
/**
* @dev Returns the identifier of an operation containing a batch of
* transactions.
*/
function hashOperationBatch(
address[] calldata targets,
uint256[] calldata values,
bytes[] calldata datas,
bytes32 predecessor,
bytes32 salt
) public pure virtual returns (bytes32 hash) {
return keccak256(abi.encode(targets, values, datas, predecessor, salt));
}
/**
* @dev Schedule an operation containing a single transaction.
*
* Emits a {CallScheduled} event.
*
* Requirements:
*
* - the caller must have the 'admin' role.
*/
function schedule(
address target,
uint256 value,
bytes calldata data,
bytes32 predecessor,
bytes32 salt,
uint256 delay
) public virtual onlyAdmin {
bytes32 id = hashOperation(target, value, data, predecessor, salt);
_schedule(id, delay);
emit CallScheduled(id, 0, target, value, data, predecessor, delay);
}
/**
* @dev Schedule an operation containing a batch of transactions.
*
* Emits one {CallScheduled} event per transaction in the batch.
*
* Requirements:
*
* - the caller must have the 'admin' role.
*/
function scheduleBatch(
address[] calldata targets,
uint256[] calldata values,
bytes[] calldata datas,
bytes32 predecessor,
bytes32 salt,
uint256 delay
) public virtual onlyAdmin {
require(
targets.length == values.length,
"PhuxTimelockController: length mismatch"
);
require(
targets.length == datas.length,
"PhuxTimelockController: length mismatch"
);
bytes32 id = hashOperationBatch(
targets,
values,
datas,
predecessor,
salt
);
_schedule(id, delay);
for (uint256 i = 0; i < targets.length; ++i) {
emit CallScheduled(
id,
i,
targets[i],
values[i],
datas[i],
predecessor,
delay
);
}
}
/**
* @dev Schedule an operation that is to becomes valid after a given delay.
*/
function _schedule(bytes32 id, uint256 delay) private {
require(
!isOperation(id),
"PhuxTimelockController: operation already scheduled"
);
require(
delay >= MIN_DELAY,
"PhuxTimelockController: insufficient delay"
);
// solhint-disable-next-line not-rely-on-time
_timestamps[id] = block.timestamp + delay;
}
/**
* @dev Cancel an operation.
*
* Requirements:
*
* - the caller must have the 'admin' role.
*/
function cancel(bytes32 id) public virtual onlyAdmin {
require(
isOperationPending(id),
"PhuxTimelockController: operation cannot be cancelled"
);
delete _timestamps[id];
emit Cancelled(id);
}
/**
* @dev Execute an (ready) operation containing a single transaction.
*
* Emits a {CallExecuted} event.
*
* Requirements:
*
* - the caller must have the 'admin' role.
*/
function execute(
address target,
uint256 value,
bytes calldata data,
bytes32 predecessor,
bytes32 salt
) public payable virtual onlyAdmin {
bytes32 id = hashOperation(target, value, data, predecessor, salt);
_beforeCall(id, predecessor);
_call(id, 0, target, value, data);
_afterCall(id);
}
/**
* @dev Execute an (ready) operation containing a batch of transactions.
*
* Emits one {CallExecuted} event per transaction in the batch.
*
* Requirements:
*
* - the caller must have the 'admin' role.
*/
function executeBatch(
address[] calldata targets,
uint256[] calldata values,
bytes[] calldata datas,
bytes32 predecessor,
bytes32 salt
) public payable virtual onlyAdmin {
require(
targets.length == values.length,
"PhuxTimelockController: length mismatch"
);
require(
targets.length == datas.length,
"PhuxTimelockController: length mismatch"
);
bytes32 id = hashOperationBatch(
targets,
values,
datas,
predecessor,
salt
);
_beforeCall(id, predecessor);
for (uint256 i = 0; i < targets.length; ++i) {
_call(id, i, targets[i], values[i], datas[i]);
}
_afterCall(id);
}
/**
* @dev Checks before execution of an operation's calls.
*/
function _beforeCall(bytes32 id, bytes32 predecessor) private view {
require(
isOperationReady(id),
"PhuxTimelockController: operation is not ready"
);
require(
predecessor == bytes32(0) || isOperationDone(predecessor),
"PhuxTimelockController: missing dependency"
);
}
/**
* @dev Checks after execution of an operation's calls.
*/
function _afterCall(bytes32 id) private {
require(
isOperationReady(id),
"PhuxTimelockController: operation is not ready"
);
_timestamps[id] = _DONE_TIMESTAMP;
}
/**
* @dev Execute an operation's call.
*
* Emits a {CallExecuted} event.
*/
function _call(
bytes32 id,
uint256 index,
address target,
uint256 value,
bytes calldata data
) private {
(bool success, ) = target.call{value: value}(data);
require(
success,
"PhuxTimelockController: underlying transaction reverted"
);
emit CallExecuted(id, index, target, value, data);
}
}
Compiler Settings
{"outputSelection":{"*":{"*":["abi","evm.bytecode","evm.deployedBytecode","evm.methodIdentifiers"]}},"optimizer":{"runs":200,"enabled":true},"libraries":{}}
Contract ABI
[{"type":"constructor","inputs":[{"type":"address","name":"admin_","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"MIN_DELAY","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"admin","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"cancel","inputs":[{"type":"bytes32","name":"id","internalType":"bytes32"}]},{"type":"function","stateMutability":"payable","outputs":[],"name":"execute","inputs":[{"type":"address","name":"target","internalType":"address"},{"type":"uint256","name":"value","internalType":"uint256"},{"type":"bytes","name":"data","internalType":"bytes"},{"type":"bytes32","name":"predecessor","internalType":"bytes32"},{"type":"bytes32","name":"salt","internalType":"bytes32"}]},{"type":"function","stateMutability":"payable","outputs":[],"name":"executeBatch","inputs":[{"type":"address[]","name":"targets","internalType":"address[]"},{"type":"uint256[]","name":"values","internalType":"uint256[]"},{"type":"bytes[]","name":"datas","internalType":"bytes[]"},{"type":"bytes32","name":"predecessor","internalType":"bytes32"},{"type":"bytes32","name":"salt","internalType":"bytes32"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"timestamp","internalType":"uint256"}],"name":"getTimestamp","inputs":[{"type":"bytes32","name":"id","internalType":"bytes32"}]},{"type":"function","stateMutability":"pure","outputs":[{"type":"bytes32","name":"hash","internalType":"bytes32"}],"name":"hashOperation","inputs":[{"type":"address","name":"target","internalType":"address"},{"type":"uint256","name":"value","internalType":"uint256"},{"type":"bytes","name":"data","internalType":"bytes"},{"type":"bytes32","name":"predecessor","internalType":"bytes32"},{"type":"bytes32","name":"salt","internalType":"bytes32"}]},{"type":"function","stateMutability":"pure","outputs":[{"type":"bytes32","name":"hash","internalType":"bytes32"}],"name":"hashOperationBatch","inputs":[{"type":"address[]","name":"targets","internalType":"address[]"},{"type":"uint256[]","name":"values","internalType":"uint256[]"},{"type":"bytes[]","name":"datas","internalType":"bytes[]"},{"type":"bytes32","name":"predecessor","internalType":"bytes32"},{"type":"bytes32","name":"salt","internalType":"bytes32"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"pending","internalType":"bool"}],"name":"isOperation","inputs":[{"type":"bytes32","name":"id","internalType":"bytes32"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"done","internalType":"bool"}],"name":"isOperationDone","inputs":[{"type":"bytes32","name":"id","internalType":"bytes32"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"pending","internalType":"bool"}],"name":"isOperationPending","inputs":[{"type":"bytes32","name":"id","internalType":"bytes32"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"ready","internalType":"bool"}],"name":"isOperationReady","inputs":[{"type":"bytes32","name":"id","internalType":"bytes32"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"schedule","inputs":[{"type":"address","name":"target","internalType":"address"},{"type":"uint256","name":"value","internalType":"uint256"},{"type":"bytes","name":"data","internalType":"bytes"},{"type":"bytes32","name":"predecessor","internalType":"bytes32"},{"type":"bytes32","name":"salt","internalType":"bytes32"},{"type":"uint256","name":"delay","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"scheduleBatch","inputs":[{"type":"address[]","name":"targets","internalType":"address[]"},{"type":"uint256[]","name":"values","internalType":"uint256[]"},{"type":"bytes[]","name":"datas","internalType":"bytes[]"},{"type":"bytes32","name":"predecessor","internalType":"bytes32"},{"type":"bytes32","name":"salt","internalType":"bytes32"},{"type":"uint256","name":"delay","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferAdmin","inputs":[{"type":"address","name":"newAdmin","internalType":"address"}]},{"type":"event","name":"AdminTransferred","inputs":[{"type":"address","name":"previousAdmin","indexed":true},{"type":"address","name":"newAdmin","indexed":true}],"anonymous":false},{"type":"event","name":"CallExecuted","inputs":[{"type":"bytes32","name":"id","indexed":true},{"type":"uint256","name":"index","indexed":true},{"type":"address","name":"target","indexed":false},{"type":"uint256","name":"value","indexed":false},{"type":"bytes","name":"data","indexed":false}],"anonymous":false},{"type":"event","name":"CallScheduled","inputs":[{"type":"bytes32","name":"id","indexed":true},{"type":"uint256","name":"index","indexed":true},{"type":"address","name":"target","indexed":false},{"type":"uint256","name":"value","indexed":false},{"type":"bytes","name":"data","indexed":false},{"type":"bytes32","name":"predecessor","indexed":false},{"type":"uint256","name":"delay","indexed":false}],"anonymous":false},{"type":"event","name":"Cancelled","inputs":[{"type":"bytes32","name":"id","indexed":true}],"anonymous":false},{"type":"receive"}]
Contract Creation Code
0x608060405234801561001057600080fd5b5060405161146538038061146583398101604081905261002f916100fd565b6001600160a01b0381166100af5760405162461bcd60e51b815260206004820152603c60248201527f5068757854696d656c6f636b436f6e74726f6c6c65723a2061646d696e20736860448201527f6f756c64206e6f7420626520746865207a65726f206164647265737300000000606482015260840160405180910390fd5b600080546001600160a01b0319166001600160a01b03831690811782556040519091907ff8ccb027dfcd135e000e9d45e6cc2d662578a8825d4c45b5e32e0adf67e79ec6908290a35061012d565b60006020828403121561010f57600080fd5b81516001600160a01b038116811461012657600080fd5b9392505050565b6113298061013c6000396000f3fe6080604052600436106100ec5760003560e01c80638065657f1161008a578063c4d252f511610059578063c4d252f514610278578063d45c443514610298578063e38335e5146102c5578063f851a440146102d857600080fd5b80638065657f146101f35780638f2a0bb0146102215780639f81aed714610241578063b1c5f4271461025857600080fd5b80632ab0f529116100c65780632ab0f5291461016257806331d5075014610193578063584b153e146101b357806375829def146101d357600080fd5b806301d5062a146100f8578063134008d31461011a57806313bc9f201461012d57600080fd5b366100f357005b600080fd5b34801561010457600080fd5b50610118610113366004610cd4565b610310565b005b610118610128366004610d49565b6103ad565b34801561013957600080fd5b5061014d610148366004610db5565b610414565b60405190151581526020015b60405180910390f35b34801561016e57600080fd5b5061014d61017d366004610db5565b6000908152600160208190526040909120541490565b34801561019f57600080fd5b5061014d6101ae366004610db5565b61043a565b3480156101bf57600080fd5b5061014d6101ce366004610db5565b610453565b3480156101df57600080fd5b506101186101ee366004610dce565b610469565b3480156101ff57600080fd5b5061021361020e366004610d49565b6105ab565b604051908152602001610159565b34801561022d57600080fd5b5061011861023c366004610e2e565b6105ea565b34801561024d57600080fd5b506102136202a30081565b34801561026457600080fd5b50610213610273366004610ee0565b61073b565b34801561028457600080fd5b50610118610293366004610db5565b610780565b3480156102a457600080fd5b506102136102b3366004610db5565b60009081526001602052604090205490565b6101186102d3366004610ee0565b610858565b3480156102e457600080fd5b506000546102f8906001600160a01b031681565b6040516001600160a01b039091168152602001610159565b6000546001600160a01b031633146103435760405162461bcd60e51b815260040161033a90610f89565b60405180910390fd5b60006103538888888888886105ab565b905061035f818361097c565b6000817f4cf4410cc57040e44862ef0f45f3dd5a5e02db8eb8add648d4b0e236f1d07dca8a8a8a8a8a8960405161039b96959493929190610ffd565b60405180910390a35050505050505050565b6000546001600160a01b031633146103d75760405162461bcd60e51b815260040161033a90610f89565b60006103e78787878787876105ab565b90506103f38184610a74565b61040281600089898989610b18565b61040b81610c36565b50505050505050565b6000818152600160205260408120546001811180156104335750428111155b9392505050565b60008181526001602052604081205481905b1192915050565b600081815260016020819052604082205461044c565b3330146104d45760405162461bcd60e51b815260206004820152603360248201527f5068757854696d656c6f636b436f6e74726f6c6c65723a2073656e64657220696044820152721cc81b9bdd081d1a1a5cc818dbdb9d1c9858dd606a1b606482015260840161033a565b6001600160a01b0381166105505760405162461bcd60e51b815260206004820152603c60248201527f5068757854696d656c6f636b436f6e74726f6c6c65723a2061646d696e20736860448201527f6f756c64206e6f7420626520746865207a65726f206164647265737300000000606482015260840161033a565b600080546040516001600160a01b03808516939216917ff8ccb027dfcd135e000e9d45e6cc2d662578a8825d4c45b5e32e0adf67e79ec691a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60008686868686866040516020016105c896959493929190610ffd565b6040516020818303038152906040528051906020012090509695505050505050565b6000546001600160a01b031633146106145760405162461bcd60e51b815260040161033a90610f89565b8786146106335760405162461bcd60e51b815260040161033a9061103a565b8784146106525760405162461bcd60e51b815260040161033a9061103a565b60006106648a8a8a8a8a8a8a8a61073b565b9050610670818361097c565b60005b8981101561072e5780827f4cf4410cc57040e44862ef0f45f3dd5a5e02db8eb8add648d4b0e236f1d07dca8d8d858181106106b0576106b0611081565b90506020020160208101906106c59190610dce565b8c8c868181106106d7576106d7611081565b905060200201358b8b878181106106f0576106f0611081565b90506020028101906107029190611097565b8b8a60405161071696959493929190610ffd565b60405180910390a3610727816110f4565b9050610673565b5050505050505050505050565b6000888888888888888860405160200161075c9897969594939291906111a0565b60405160208183030381529060405280519060200120905098975050505050505050565b6000546001600160a01b031633146107aa5760405162461bcd60e51b815260040161033a90610f89565b6107b381610453565b61081d5760405162461bcd60e51b815260206004820152603560248201527f5068757854696d656c6f636b436f6e74726f6c6c65723a206f7065726174696f6044820152741b8818d85b9b9bdd0818994818d85b98d95b1b1959605a1b606482015260840161033a565b6000818152600160205260408082208290555182917fbaa1eb22f2a492ba1a5fea61b8df4d27c6c8b5f3971e63bb58fa14ff72eedb7091a250565b6000546001600160a01b031633146108825760405162461bcd60e51b815260040161033a90610f89565b8685146108a15760405162461bcd60e51b815260040161033a9061103a565b8683146108c05760405162461bcd60e51b815260040161033a9061103a565b60006108d2898989898989898961073b565b90506108de8184610a74565b60005b888110156109675761095782828c8c8581811061090057610900611081565b90506020020160208101906109159190610dce565b8b8b8681811061092757610927611081565b905060200201358a8a8781811061094057610940611081565b90506020028101906109529190611097565b610b18565b610960816110f4565b90506108e1565b5061097181610c36565b505050505050505050565b6109858261043a565b156109ee5760405162461bcd60e51b815260206004820152603360248201527f5068757854696d656c6f636b436f6e74726f6c6c65723a206f7065726174696f6044820152721b88185b1c9958591e481cd8da19591d5b1959606a1b606482015260840161033a565b6202a300811015610a545760405162461bcd60e51b815260206004820152602a60248201527f5068757854696d656c6f636b436f6e74726f6c6c65723a20696e73756666696360448201526969656e742064656c617960b01b606482015260840161033a565b610a5e814261124b565b6000928352600160205260409092209190915550565b610a7d82610414565b610a995760405162461bcd60e51b815260040161033a90611263565b801580610ab55750600081815260016020819052604090912054145b610b145760405162461bcd60e51b815260206004820152602a60248201527f5068757854696d656c6f636b436f6e74726f6c6c65723a206d697373696e6720604482015269646570656e64656e637960b01b606482015260840161033a565b5050565b6000846001600160a01b0316848484604051610b359291906112b1565b60006040518083038185875af1925050503d8060008114610b72576040519150601f19603f3d011682016040523d82523d6000602084013e610b77565b606091505b5050905080610bee5760405162461bcd60e51b815260206004820152603760248201527f5068757854696d656c6f636b436f6e74726f6c6c65723a20756e6465726c796960448201527f6e67207472616e73616374696f6e207265766572746564000000000000000000606482015260840161033a565b85877fc2617efa69bab66782fa219543714338489c4e9e178271560a91b82c3f612b5887878787604051610c2594939291906112c1565b60405180910390a350505050505050565b610c3f81610414565b610c5b5760405162461bcd60e51b815260040161033a90611263565b600090815260016020819052604090912055565b80356001600160a01b0381168114610c8657600080fd5b919050565b60008083601f840112610c9d57600080fd5b50813567ffffffffffffffff811115610cb557600080fd5b602083019150836020828501011115610ccd57600080fd5b9250929050565b600080600080600080600060c0888a031215610cef57600080fd5b610cf888610c6f565b965060208801359550604088013567ffffffffffffffff811115610d1b57600080fd5b610d278a828b01610c8b565b989b979a50986060810135976080820135975060a09091013595509350505050565b60008060008060008060a08789031215610d6257600080fd5b610d6b87610c6f565b955060208701359450604087013567ffffffffffffffff811115610d8e57600080fd5b610d9a89828a01610c8b565b979a9699509760608101359660809091013595509350505050565b600060208284031215610dc757600080fd5b5035919050565b600060208284031215610de057600080fd5b61043382610c6f565b60008083601f840112610dfb57600080fd5b50813567ffffffffffffffff811115610e1357600080fd5b6020830191508360208260051b8501011115610ccd57600080fd5b600080600080600080600080600060c08a8c031215610e4c57600080fd5b893567ffffffffffffffff80821115610e6457600080fd5b610e708d838e01610de9565b909b50995060208c0135915080821115610e8957600080fd5b610e958d838e01610de9565b909950975060408c0135915080821115610eae57600080fd5b50610ebb8c828d01610de9565b9a9d999c50979a969997986060880135976080810135975060a0013595509350505050565b60008060008060008060008060a0898b031215610efc57600080fd5b883567ffffffffffffffff80821115610f1457600080fd5b610f208c838d01610de9565b909a50985060208b0135915080821115610f3957600080fd5b610f458c838d01610de9565b909850965060408b0135915080821115610f5e57600080fd5b50610f6b8b828c01610de9565b999c989b509699959896976060870135966080013595509350505050565b6020808252602b908201527f5068757854696d656c6f636b436f6e74726f6c6c65723a2073656e646572206960408201526a39903737ba1030b236b4b760a91b606082015260800190565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60018060a01b038716815285602082015260a06040820152600061102560a083018688610fd4565b60608301949094525060800152949350505050565b60208082526027908201527f5068757854696d656c6f636b436f6e74726f6c6c65723a206c656e677468206d6040820152660d2e6dac2e8c6d60cb1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126110ae57600080fd5b83018035915067ffffffffffffffff8211156110c957600080fd5b602001915036819003821315610ccd57600080fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415611108576111086110de565b5060010190565b81835260006020808501808196508560051b810191508460005b878110156111935782840389528135601e1988360301811261114a57600080fd5b8701803567ffffffffffffffff81111561116357600080fd5b80360389131561117257600080fd5b61117f8682898501610fd4565b9a87019a9550505090840190600101611129565b5091979650505050505050565b60a0808252810188905260008960c08301825b8b8110156111e1576001600160a01b036111cc84610c6f565b168252602092830192909101906001016111b3565b5083810360208501528881526001600160fb1b0389111561120157600080fd5b8860051b9150818a60208301378181019150506020810160008152602084830301604085015261123281888a61110f565b6060850196909652505050608001529695505050505050565b6000821982111561125e5761125e6110de565b500190565b6020808252602e908201527f5068757854696d656c6f636b436f6e74726f6c6c65723a206f7065726174696f60408201526d6e206973206e6f7420726561647960901b606082015260800190565b8183823760009101908152919050565b60018060a01b03851681528360208201526060604082015260006112e9606083018486610fd4565b969550505050505056fea2646970667358221220ab63f5acfad841a57dc43b0945d2cbdb3ac2ae386be033ae9223809d9eb0afc564736f6c63430008090033000000000000000000000000149b870831eeef959e806dd0206a4b22f57ca418
Deployed ByteCode
0x6080604052600436106100ec5760003560e01c80638065657f1161008a578063c4d252f511610059578063c4d252f514610278578063d45c443514610298578063e38335e5146102c5578063f851a440146102d857600080fd5b80638065657f146101f35780638f2a0bb0146102215780639f81aed714610241578063b1c5f4271461025857600080fd5b80632ab0f529116100c65780632ab0f5291461016257806331d5075014610193578063584b153e146101b357806375829def146101d357600080fd5b806301d5062a146100f8578063134008d31461011a57806313bc9f201461012d57600080fd5b366100f357005b600080fd5b34801561010457600080fd5b50610118610113366004610cd4565b610310565b005b610118610128366004610d49565b6103ad565b34801561013957600080fd5b5061014d610148366004610db5565b610414565b60405190151581526020015b60405180910390f35b34801561016e57600080fd5b5061014d61017d366004610db5565b6000908152600160208190526040909120541490565b34801561019f57600080fd5b5061014d6101ae366004610db5565b61043a565b3480156101bf57600080fd5b5061014d6101ce366004610db5565b610453565b3480156101df57600080fd5b506101186101ee366004610dce565b610469565b3480156101ff57600080fd5b5061021361020e366004610d49565b6105ab565b604051908152602001610159565b34801561022d57600080fd5b5061011861023c366004610e2e565b6105ea565b34801561024d57600080fd5b506102136202a30081565b34801561026457600080fd5b50610213610273366004610ee0565b61073b565b34801561028457600080fd5b50610118610293366004610db5565b610780565b3480156102a457600080fd5b506102136102b3366004610db5565b60009081526001602052604090205490565b6101186102d3366004610ee0565b610858565b3480156102e457600080fd5b506000546102f8906001600160a01b031681565b6040516001600160a01b039091168152602001610159565b6000546001600160a01b031633146103435760405162461bcd60e51b815260040161033a90610f89565b60405180910390fd5b60006103538888888888886105ab565b905061035f818361097c565b6000817f4cf4410cc57040e44862ef0f45f3dd5a5e02db8eb8add648d4b0e236f1d07dca8a8a8a8a8a8960405161039b96959493929190610ffd565b60405180910390a35050505050505050565b6000546001600160a01b031633146103d75760405162461bcd60e51b815260040161033a90610f89565b60006103e78787878787876105ab565b90506103f38184610a74565b61040281600089898989610b18565b61040b81610c36565b50505050505050565b6000818152600160205260408120546001811180156104335750428111155b9392505050565b60008181526001602052604081205481905b1192915050565b600081815260016020819052604082205461044c565b3330146104d45760405162461bcd60e51b815260206004820152603360248201527f5068757854696d656c6f636b436f6e74726f6c6c65723a2073656e64657220696044820152721cc81b9bdd081d1a1a5cc818dbdb9d1c9858dd606a1b606482015260840161033a565b6001600160a01b0381166105505760405162461bcd60e51b815260206004820152603c60248201527f5068757854696d656c6f636b436f6e74726f6c6c65723a2061646d696e20736860448201527f6f756c64206e6f7420626520746865207a65726f206164647265737300000000606482015260840161033a565b600080546040516001600160a01b03808516939216917ff8ccb027dfcd135e000e9d45e6cc2d662578a8825d4c45b5e32e0adf67e79ec691a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60008686868686866040516020016105c896959493929190610ffd565b6040516020818303038152906040528051906020012090509695505050505050565b6000546001600160a01b031633146106145760405162461bcd60e51b815260040161033a90610f89565b8786146106335760405162461bcd60e51b815260040161033a9061103a565b8784146106525760405162461bcd60e51b815260040161033a9061103a565b60006106648a8a8a8a8a8a8a8a61073b565b9050610670818361097c565b60005b8981101561072e5780827f4cf4410cc57040e44862ef0f45f3dd5a5e02db8eb8add648d4b0e236f1d07dca8d8d858181106106b0576106b0611081565b90506020020160208101906106c59190610dce565b8c8c868181106106d7576106d7611081565b905060200201358b8b878181106106f0576106f0611081565b90506020028101906107029190611097565b8b8a60405161071696959493929190610ffd565b60405180910390a3610727816110f4565b9050610673565b5050505050505050505050565b6000888888888888888860405160200161075c9897969594939291906111a0565b60405160208183030381529060405280519060200120905098975050505050505050565b6000546001600160a01b031633146107aa5760405162461bcd60e51b815260040161033a90610f89565b6107b381610453565b61081d5760405162461bcd60e51b815260206004820152603560248201527f5068757854696d656c6f636b436f6e74726f6c6c65723a206f7065726174696f6044820152741b8818d85b9b9bdd0818994818d85b98d95b1b1959605a1b606482015260840161033a565b6000818152600160205260408082208290555182917fbaa1eb22f2a492ba1a5fea61b8df4d27c6c8b5f3971e63bb58fa14ff72eedb7091a250565b6000546001600160a01b031633146108825760405162461bcd60e51b815260040161033a90610f89565b8685146108a15760405162461bcd60e51b815260040161033a9061103a565b8683146108c05760405162461bcd60e51b815260040161033a9061103a565b60006108d2898989898989898961073b565b90506108de8184610a74565b60005b888110156109675761095782828c8c8581811061090057610900611081565b90506020020160208101906109159190610dce565b8b8b8681811061092757610927611081565b905060200201358a8a8781811061094057610940611081565b90506020028101906109529190611097565b610b18565b610960816110f4565b90506108e1565b5061097181610c36565b505050505050505050565b6109858261043a565b156109ee5760405162461bcd60e51b815260206004820152603360248201527f5068757854696d656c6f636b436f6e74726f6c6c65723a206f7065726174696f6044820152721b88185b1c9958591e481cd8da19591d5b1959606a1b606482015260840161033a565b6202a300811015610a545760405162461bcd60e51b815260206004820152602a60248201527f5068757854696d656c6f636b436f6e74726f6c6c65723a20696e73756666696360448201526969656e742064656c617960b01b606482015260840161033a565b610a5e814261124b565b6000928352600160205260409092209190915550565b610a7d82610414565b610a995760405162461bcd60e51b815260040161033a90611263565b801580610ab55750600081815260016020819052604090912054145b610b145760405162461bcd60e51b815260206004820152602a60248201527f5068757854696d656c6f636b436f6e74726f6c6c65723a206d697373696e6720604482015269646570656e64656e637960b01b606482015260840161033a565b5050565b6000846001600160a01b0316848484604051610b359291906112b1565b60006040518083038185875af1925050503d8060008114610b72576040519150601f19603f3d011682016040523d82523d6000602084013e610b77565b606091505b5050905080610bee5760405162461bcd60e51b815260206004820152603760248201527f5068757854696d656c6f636b436f6e74726f6c6c65723a20756e6465726c796960448201527f6e67207472616e73616374696f6e207265766572746564000000000000000000606482015260840161033a565b85877fc2617efa69bab66782fa219543714338489c4e9e178271560a91b82c3f612b5887878787604051610c2594939291906112c1565b60405180910390a350505050505050565b610c3f81610414565b610c5b5760405162461bcd60e51b815260040161033a90611263565b600090815260016020819052604090912055565b80356001600160a01b0381168114610c8657600080fd5b919050565b60008083601f840112610c9d57600080fd5b50813567ffffffffffffffff811115610cb557600080fd5b602083019150836020828501011115610ccd57600080fd5b9250929050565b600080600080600080600060c0888a031215610cef57600080fd5b610cf888610c6f565b965060208801359550604088013567ffffffffffffffff811115610d1b57600080fd5b610d278a828b01610c8b565b989b979a50986060810135976080820135975060a09091013595509350505050565b60008060008060008060a08789031215610d6257600080fd5b610d6b87610c6f565b955060208701359450604087013567ffffffffffffffff811115610d8e57600080fd5b610d9a89828a01610c8b565b979a9699509760608101359660809091013595509350505050565b600060208284031215610dc757600080fd5b5035919050565b600060208284031215610de057600080fd5b61043382610c6f565b60008083601f840112610dfb57600080fd5b50813567ffffffffffffffff811115610e1357600080fd5b6020830191508360208260051b8501011115610ccd57600080fd5b600080600080600080600080600060c08a8c031215610e4c57600080fd5b893567ffffffffffffffff80821115610e6457600080fd5b610e708d838e01610de9565b909b50995060208c0135915080821115610e8957600080fd5b610e958d838e01610de9565b909950975060408c0135915080821115610eae57600080fd5b50610ebb8c828d01610de9565b9a9d999c50979a969997986060880135976080810135975060a0013595509350505050565b60008060008060008060008060a0898b031215610efc57600080fd5b883567ffffffffffffffff80821115610f1457600080fd5b610f208c838d01610de9565b909a50985060208b0135915080821115610f3957600080fd5b610f458c838d01610de9565b909850965060408b0135915080821115610f5e57600080fd5b50610f6b8b828c01610de9565b999c989b509699959896976060870135966080013595509350505050565b6020808252602b908201527f5068757854696d656c6f636b436f6e74726f6c6c65723a2073656e646572206960408201526a39903737ba1030b236b4b760a91b606082015260800190565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60018060a01b038716815285602082015260a06040820152600061102560a083018688610fd4565b60608301949094525060800152949350505050565b60208082526027908201527f5068757854696d656c6f636b436f6e74726f6c6c65723a206c656e677468206d6040820152660d2e6dac2e8c6d60cb1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126110ae57600080fd5b83018035915067ffffffffffffffff8211156110c957600080fd5b602001915036819003821315610ccd57600080fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415611108576111086110de565b5060010190565b81835260006020808501808196508560051b810191508460005b878110156111935782840389528135601e1988360301811261114a57600080fd5b8701803567ffffffffffffffff81111561116357600080fd5b80360389131561117257600080fd5b61117f8682898501610fd4565b9a87019a9550505090840190600101611129565b5091979650505050505050565b60a0808252810188905260008960c08301825b8b8110156111e1576001600160a01b036111cc84610c6f565b168252602092830192909101906001016111b3565b5083810360208501528881526001600160fb1b0389111561120157600080fd5b8860051b9150818a60208301378181019150506020810160008152602084830301604085015261123281888a61110f565b6060850196909652505050608001529695505050505050565b6000821982111561125e5761125e6110de565b500190565b6020808252602e908201527f5068757854696d656c6f636b436f6e74726f6c6c65723a206f7065726174696f60408201526d6e206973206e6f7420726561647960901b606082015260800190565b8183823760009101908152919050565b60018060a01b03851681528360208201526060604082015260006112e9606083018486610fd4565b969550505050505056fea2646970667358221220ab63f5acfad841a57dc43b0945d2cbdb3ac2ae386be033ae9223809d9eb0afc564736f6c63430008090033