Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00Latest 4 internal transactions
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
||
|---|---|---|---|---|---|---|---|
| 0x60a06040 | 22989096 | 212 days ago | Contract Creation | 0 ETH | |||
| 0x60a06040 | 22129470 | 333 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 22129457 | 333 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 22129440 | 333 days ago | Contract Creation | 0 ETH |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
SolvBTCFactoryV3
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
Yes with 1 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity 0.8.20;
import "@openzeppelin/contracts/proxy/beacon/UpgradeableBeacon.sol";
import "@openzeppelin/contracts/proxy/beacon/BeaconProxy.sol";
import "./access/AdminControl.sol";
import "./access/GovernorControl.sol";
contract SolvBTCFactoryV3 is AdminControl, GovernorControl {
event NewImplementation(string indexed productType, address indexed implementation);
event NewBeacon(string indexed productType, address indexed beacon, address indexed implementation);
event ImportBeacon(string indexed productType, address indexed beacon, address indexed implementation);
event UpgradeBeacon(string indexed productType, address indexed beacon, address indexed implementation);
event TransferBeaconOwnership(string indexed productType, address indexed beacon, address indexed newOwner);
event NewBeaconProxy(string indexed productType, string indexed productName, address indexed beaconProxy);
event ImportBeaconProxy(string indexed productType, string indexed productName, address indexed beaconProxy);
event RemoveBeaconProxy(string indexed productType, string indexed productName, address indexed beaconProxy);
struct ProductType {
address implementation;
address beacon;
mapping(string => address) proxies;
}
mapping(string => ProductType) public productTypes;
constructor(address admin_, address governor_) AdminControl(admin_) GovernorControl(governor_) {
require(admin_ != address(0), "SolvBTCFactory: invalid admin");
require(governor_ != address(0), "SolvBTCFactory: invalid governor");
}
function setImplementation(string memory productType_, address implementation_)
external virtual onlyAdmin returns (address beacon_)
{
require(implementation_ != address(0), "SolvBTCFactory: invalid implementation");
require(implementation_ != productTypes[productType_].implementation, "SolvBTCFactory: same implementation");
productTypes[productType_].implementation = implementation_;
emit NewImplementation(productType_, implementation_);
beacon_ = productTypes[productType_].beacon;
if (beacon_ == address(0)) {
beacon_ = address(new UpgradeableBeacon(implementation_, address(this)));
productTypes[productType_].beacon = beacon_;
emit NewBeacon(productType_, beacon_, implementation_);
} else {
UpgradeableBeacon(beacon_).upgradeTo(implementation_);
emit UpgradeBeacon(productType_, beacon_, implementation_);
}
}
function transferBeaconOwnership(string memory productType_, address newOwner_) external virtual onlyAdmin {
address beacon = productTypes[productType_].beacon;
UpgradeableBeacon(beacon).transferOwnership(newOwner_);
emit TransferBeaconOwnership(productType_, beacon, newOwner_);
}
function importBeacon(string memory productType_, address beacon_) external virtual onlyAdmin {
require(beacon_ != address(0), "SolvBTCFactory: invalid beacon address");
productTypes[productType_].beacon = beacon_;
emit ImportBeacon(productType_, beacon_, UpgradeableBeacon(beacon_).implementation());
}
function deployProductProxy(
string memory productType_, string memory productName_,
string memory tokenName_, string memory tokenSymbol_, address owner_
)
external virtual onlyGovernor returns (address proxy_)
{
ProductType storage productType = productTypes[productType_];
require(productType.proxies[productName_] == address(0), "SolvBTCFactory: product already deployed");
require(productType.beacon != address(0), "SolvBTCFactory: beacon not deployed");
bytes32 salt = keccak256(abi.encodePacked(productType_, productName_));
proxy_ = address(new BeaconProxy{salt: salt}(productType.beacon, new bytes(0)));
bytes memory initData = abi.encodeWithSignature(
"initialize(string,string,address)", tokenName_, tokenSymbol_, owner_
);
(bool success, ) = proxy_.call(initData);
require(success, "SolvBTCFactory: proxy initialization failed");
productType.proxies[productName_] = proxy_;
emit NewBeaconProxy(productType_, productName_, proxy_);
}
function importProductProxy(string memory productType_, string memory productName_, address proxy_) external onlyAdmin {
require(productTypes[productType_].beacon != address(0), "SolvBTCFactory: beacon not deployed");
productTypes[productType_].proxies[productName_] = proxy_;
emit ImportBeaconProxy(productType_, productName_, proxy_);
}
function removeProductProxy(string memory productType_, string memory productName_) external onlyAdmin {
address proxy = productTypes[productType_].proxies[productName_];
require(proxy != address(0), "SolvBTCFactory: proxy not deployed");
delete productTypes[productType_].proxies[productName_];
emit RemoveBeaconProxy(productType_, productName_, proxy);
}
function getImplementation(string memory productType_) external view virtual returns (address) {
return productTypes[productType_].implementation;
}
function getBeacon(string memory productType_) external view virtual returns (address) {
return productTypes[productType_].beacon;
}
function getProxy(string memory productType_, string memory productName_) public view returns (address) {
return productTypes[productType_].proxies[productName_];
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)
pragma solidity ^0.8.20;
import {Context} from "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* The initial owner is set to the address provided by the deployer. This can
* later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
/**
* @dev The caller account is not authorized to perform an operation.
*/
error OwnableUnauthorizedAccount(address account);
/**
* @dev The owner is not a valid owner account. (eg. `address(0)`)
*/
error OwnableInvalidOwner(address owner);
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the address provided by the deployer as the initial owner.
*/
constructor(address initialOwner) {
if (initialOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(initialOwner);
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
if (owner() != _msgSender()) {
revert OwnableUnauthorizedAccount(_msgSender());
}
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
if (newOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (proxy/beacon/BeaconProxy.sol)
pragma solidity ^0.8.20;
import {IBeacon} from "./IBeacon.sol";
import {Proxy} from "../Proxy.sol";
import {ERC1967Utils} from "../ERC1967/ERC1967Utils.sol";
/**
* @dev This contract implements a proxy that gets the implementation address for each call from an {UpgradeableBeacon}.
*
* The beacon address can only be set once during construction, and cannot be changed afterwards. It is stored in an
* immutable variable to avoid unnecessary storage reads, and also in the beacon storage slot specified by
* https://eips.ethereum.org/EIPS/eip-1967[EIP1967] so that it can be accessed externally.
*
* CAUTION: Since the beacon address can never be changed, you must ensure that you either control the beacon, or trust
* the beacon to not upgrade the implementation maliciously.
*
* IMPORTANT: Do not use the implementation logic to modify the beacon storage slot. Doing so would leave the proxy in
* an inconsistent state where the beacon storage slot does not match the beacon address.
*/
contract BeaconProxy is Proxy {
// An immutable address for the beacon to avoid unnecessary SLOADs before each delegate call.
address private immutable _beacon;
/**
* @dev Initializes the proxy with `beacon`.
*
* If `data` is nonempty, it's used as data in a delegate call to the implementation returned by the beacon. This
* will typically be an encoded function call, and allows initializing the storage of the proxy like a Solidity
* constructor.
*
* Requirements:
*
* - `beacon` must be a contract with the interface {IBeacon}.
* - If `data` is empty, `msg.value` must be zero.
*/
constructor(address beacon, bytes memory data) payable {
ERC1967Utils.upgradeBeaconToAndCall(beacon, data);
_beacon = beacon;
}
/**
* @dev Returns the current implementation address of the associated beacon.
*/
function _implementation() internal view virtual override returns (address) {
return IBeacon(_getBeacon()).implementation();
}
/**
* @dev Returns the beacon.
*/
function _getBeacon() internal view virtual returns (address) {
return _beacon;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (proxy/beacon/IBeacon.sol)
pragma solidity ^0.8.20;
/**
* @dev This is the interface that {BeaconProxy} expects of its beacon.
*/
interface IBeacon {
/**
* @dev Must return an address that can be used as a delegate call target.
*
* {UpgradeableBeacon} will check that this address is a contract.
*/
function implementation() external view returns (address);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (proxy/beacon/UpgradeableBeacon.sol)
pragma solidity ^0.8.20;
import {IBeacon} from "./IBeacon.sol";
import {Ownable} from "../../access/Ownable.sol";
/**
* @dev This contract is used in conjunction with one or more instances of {BeaconProxy} to determine their
* implementation contract, which is where they will delegate all function calls.
*
* An owner is able to change the implementation the beacon points to, thus upgrading the proxies that use this beacon.
*/
contract UpgradeableBeacon is IBeacon, Ownable {
address private _implementation;
/**
* @dev The `implementation` of the beacon is invalid.
*/
error BeaconInvalidImplementation(address implementation);
/**
* @dev Emitted when the implementation returned by the beacon is changed.
*/
event Upgraded(address indexed implementation);
/**
* @dev Sets the address of the initial implementation, and the initial owner who can upgrade the beacon.
*/
constructor(address implementation_, address initialOwner) Ownable(initialOwner) {
_setImplementation(implementation_);
}
/**
* @dev Returns the current implementation address.
*/
function implementation() public view virtual returns (address) {
return _implementation;
}
/**
* @dev Upgrades the beacon to a new implementation.
*
* Emits an {Upgraded} event.
*
* Requirements:
*
* - msg.sender must be the owner of the contract.
* - `newImplementation` must be a contract.
*/
function upgradeTo(address newImplementation) public virtual onlyOwner {
_setImplementation(newImplementation);
}
/**
* @dev Sets the implementation contract address for this beacon
*
* Requirements:
*
* - `newImplementation` must be a contract.
*/
function _setImplementation(address newImplementation) private {
if (newImplementation.code.length == 0) {
revert BeaconInvalidImplementation(newImplementation);
}
_implementation = newImplementation;
emit Upgraded(newImplementation);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (proxy/ERC1967/ERC1967Utils.sol)
pragma solidity ^0.8.20;
import {IBeacon} from "../beacon/IBeacon.sol";
import {Address} from "../../utils/Address.sol";
import {StorageSlot} from "../../utils/StorageSlot.sol";
/**
* @dev This abstract contract provides getters and event emitting update functions for
* https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.
*/
library ERC1967Utils {
// We re-declare ERC-1967 events here because they can't be used directly from IERC1967.
// This will be fixed in Solidity 0.8.21. At that point we should remove these events.
/**
* @dev Emitted when the implementation is upgraded.
*/
event Upgraded(address indexed implementation);
/**
* @dev Emitted when the admin account has changed.
*/
event AdminChanged(address previousAdmin, address newAdmin);
/**
* @dev Emitted when the beacon is changed.
*/
event BeaconUpgraded(address indexed beacon);
/**
* @dev Storage slot with the address of the current implementation.
* This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1.
*/
// solhint-disable-next-line private-vars-leading-underscore
bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
/**
* @dev The `implementation` of the proxy is invalid.
*/
error ERC1967InvalidImplementation(address implementation);
/**
* @dev The `admin` of the proxy is invalid.
*/
error ERC1967InvalidAdmin(address admin);
/**
* @dev The `beacon` of the proxy is invalid.
*/
error ERC1967InvalidBeacon(address beacon);
/**
* @dev An upgrade function sees `msg.value > 0` that may be lost.
*/
error ERC1967NonPayable();
/**
* @dev Returns the current implementation address.
*/
function getImplementation() internal view returns (address) {
return StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value;
}
/**
* @dev Stores a new address in the EIP1967 implementation slot.
*/
function _setImplementation(address newImplementation) private {
if (newImplementation.code.length == 0) {
revert ERC1967InvalidImplementation(newImplementation);
}
StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;
}
/**
* @dev Performs implementation upgrade with additional setup call if data is nonempty.
* This function is payable only if the setup call is performed, otherwise `msg.value` is rejected
* to avoid stuck value in the contract.
*
* Emits an {IERC1967-Upgraded} event.
*/
function upgradeToAndCall(address newImplementation, bytes memory data) internal {
_setImplementation(newImplementation);
emit Upgraded(newImplementation);
if (data.length > 0) {
Address.functionDelegateCall(newImplementation, data);
} else {
_checkNonPayable();
}
}
/**
* @dev Storage slot with the admin of the contract.
* This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1.
*/
// solhint-disable-next-line private-vars-leading-underscore
bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;
/**
* @dev Returns the current admin.
*
* TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using
* the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.
* `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`
*/
function getAdmin() internal view returns (address) {
return StorageSlot.getAddressSlot(ADMIN_SLOT).value;
}
/**
* @dev Stores a new address in the EIP1967 admin slot.
*/
function _setAdmin(address newAdmin) private {
if (newAdmin == address(0)) {
revert ERC1967InvalidAdmin(address(0));
}
StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;
}
/**
* @dev Changes the admin of the proxy.
*
* Emits an {IERC1967-AdminChanged} event.
*/
function changeAdmin(address newAdmin) internal {
emit AdminChanged(getAdmin(), newAdmin);
_setAdmin(newAdmin);
}
/**
* @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.
* This is the keccak-256 hash of "eip1967.proxy.beacon" subtracted by 1.
*/
// solhint-disable-next-line private-vars-leading-underscore
bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;
/**
* @dev Returns the current beacon.
*/
function getBeacon() internal view returns (address) {
return StorageSlot.getAddressSlot(BEACON_SLOT).value;
}
/**
* @dev Stores a new beacon in the EIP1967 beacon slot.
*/
function _setBeacon(address newBeacon) private {
if (newBeacon.code.length == 0) {
revert ERC1967InvalidBeacon(newBeacon);
}
StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;
address beaconImplementation = IBeacon(newBeacon).implementation();
if (beaconImplementation.code.length == 0) {
revert ERC1967InvalidImplementation(beaconImplementation);
}
}
/**
* @dev Change the beacon and trigger a setup call if data is nonempty.
* This function is payable only if the setup call is performed, otherwise `msg.value` is rejected
* to avoid stuck value in the contract.
*
* Emits an {IERC1967-BeaconUpgraded} event.
*
* CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since
* it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for
* efficiency.
*/
function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {
_setBeacon(newBeacon);
emit BeaconUpgraded(newBeacon);
if (data.length > 0) {
Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);
} else {
_checkNonPayable();
}
}
/**
* @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract
* if an upgrade doesn't perform an initialization call.
*/
function _checkNonPayable() private {
if (msg.value > 0) {
revert ERC1967NonPayable();
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (proxy/Proxy.sol)
pragma solidity ^0.8.20;
/**
* @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM
* instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to
* be specified by overriding the virtual {_implementation} function.
*
* Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a
* different contract through the {_delegate} function.
*
* The success and return data of the delegated call will be returned back to the caller of the proxy.
*/
abstract contract Proxy {
/**
* @dev Delegates the current call to `implementation`.
*
* This function does not return to its internal call site, it will return directly to the external caller.
*/
function _delegate(address implementation) internal virtual {
assembly {
// Copy msg.data. We take full control of memory in this inline assembly
// block because it will not return to Solidity code. We overwrite the
// Solidity scratch pad at memory position 0.
calldatacopy(0, 0, calldatasize())
// Call the implementation.
// out and outsize are 0 because we don't know the size yet.
let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0)
// Copy the returned data.
returndatacopy(0, 0, returndatasize())
switch result
// delegatecall returns 0 on error.
case 0 {
revert(0, returndatasize())
}
default {
return(0, returndatasize())
}
}
}
/**
* @dev This is a virtual function that should be overridden so it returns the address to which the fallback
* function and {_fallback} should delegate.
*/
function _implementation() internal view virtual returns (address);
/**
* @dev Delegates the current call to the address returned by `_implementation()`.
*
* This function does not return to its internal call site, it will return directly to the external caller.
*/
function _fallback() internal virtual {
_delegate(_implementation());
}
/**
* @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other
* function in the contract matches the call data.
*/
fallback() external payable virtual {
_fallback();
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol)
pragma solidity ^0.8.20;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev The ETH balance of the account is not enough to perform the operation.
*/
error AddressInsufficientBalance(address account);
/**
* @dev There's no code at `target` (it is not a contract).
*/
error AddressEmptyCode(address target);
/**
* @dev A call to an address target failed. The target may have reverted.
*/
error FailedInnerCall();
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
if (address(this).balance < amount) {
revert AddressInsufficientBalance(address(this));
}
(bool success, ) = recipient.call{value: amount}("");
if (!success) {
revert FailedInnerCall();
}
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason or custom error, it is bubbled
* up by this function (like regular Solidity function calls). However, if
* the call reverted with no returned reason, this function reverts with a
* {FailedInnerCall} error.
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*/
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
if (address(this).balance < value) {
revert AddressInsufficientBalance(address(this));
}
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target
* was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an
* unsuccessful call.
*/
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata
) internal view returns (bytes memory) {
if (!success) {
_revert(returndata);
} else {
// only check if target is a contract if the call was successful and the return data is empty
// otherwise we already know that it was a contract
if (returndata.length == 0 && target.code.length == 0) {
revert AddressEmptyCode(target);
}
return returndata;
}
}
/**
* @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the
* revert reason or with a default {FailedInnerCall} error.
*/
function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {
if (!success) {
_revert(returndata);
} else {
return returndata;
}
}
/**
* @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}.
*/
function _revert(bytes memory returndata) private pure {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
/// @solidity memory-safe-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert FailedInnerCall();
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)
pragma solidity ^0.8.20;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/StorageSlot.sol)
// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.
pragma solidity ^0.8.20;
/**
* @dev Library for reading and writing primitive types to specific storage slots.
*
* Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
* This library helps with reading and writing to such slots without the need for inline assembly.
*
* The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
*
* Example usage to set ERC1967 implementation slot:
* ```solidity
* contract ERC1967 {
* bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
*
* function _getImplementation() internal view returns (address) {
* return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
* }
*
* function _setImplementation(address newImplementation) internal {
* require(newImplementation.code.length > 0);
* StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
* }
* }
* ```
*/
library StorageSlot {
struct AddressSlot {
address value;
}
struct BooleanSlot {
bool value;
}
struct Bytes32Slot {
bytes32 value;
}
struct Uint256Slot {
uint256 value;
}
struct StringSlot {
string value;
}
struct BytesSlot {
bytes value;
}
/**
* @dev Returns an `AddressSlot` with member `value` located at `slot`.
*/
function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `BooleanSlot` with member `value` located at `slot`.
*/
function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `Bytes32Slot` with member `value` located at `slot`.
*/
function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `Uint256Slot` with member `value` located at `slot`.
*/
function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `StringSlot` with member `value` located at `slot`.
*/
function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `StringSlot` representation of the string storage pointer `store`.
*/
function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := store.slot
}
}
/**
* @dev Returns an `BytesSlot` with member `value` located at `slot`.
*/
function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.
*/
function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := store.slot
}
}
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.20;
abstract contract AdminControl {
event NewAdmin(address oldAdmin, address newAdmin);
event NewPendingAdmin(address oldPendingAdmin, address newPendingAdmin);
address public admin;
address public pendingAdmin;
modifier onlyAdmin() {
require(msg.sender == admin, "only admin");
_;
}
modifier onlyPendingAdmin() {
require(msg.sender == pendingAdmin, "only pending admin");
_;
}
constructor(address admin_) {
admin = admin_;
emit NewAdmin(address(0), admin_);
}
function transferAdmin(address newPendingAdmin_) external virtual onlyAdmin {
emit NewPendingAdmin(pendingAdmin, newPendingAdmin_);
pendingAdmin = newPendingAdmin_;
}
function acceptAdmin() external virtual onlyPendingAdmin {
emit NewAdmin(admin, pendingAdmin);
admin = pendingAdmin;
delete pendingAdmin;
}
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.20;
abstract contract GovernorControl {
event NewGovernor(address oldGovernor, address newGovernor);
event NewPendingGovernor(address oldPendingGovernor, address newPendingGovernor);
address public governor;
address public pendingGovernor;
modifier onlyGovernor() {
require(governor == msg.sender, "only governor");
_;
}
modifier onlyPendingGovernor() {
require(pendingGovernor == msg.sender, "only governor");
_;
}
constructor(address governor_) {
governor = governor_;
emit NewGovernor(address(0), governor_);
}
function transferGovernance(address newPendingGovernor_) external virtual onlyGovernor {
emit NewPendingGovernor(pendingGovernor, newPendingGovernor_);
pendingGovernor = newPendingGovernor_;
}
function acceptGovernance() external virtual onlyPendingGovernor {
emit NewGovernor(governor, pendingGovernor);
governor = pendingGovernor;
delete pendingGovernor;
}
}{
"optimizer": {
"enabled": true,
"runs": 1
},
"evmVersion": "paris",
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"metadata": {
"useLiteralContent": true
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"admin_","type":"address"},{"internalType":"address","name":"governor_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"string","name":"productType","type":"string"},{"indexed":true,"internalType":"address","name":"beacon","type":"address"},{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"ImportBeacon","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"string","name":"productType","type":"string"},{"indexed":true,"internalType":"string","name":"productName","type":"string"},{"indexed":true,"internalType":"address","name":"beaconProxy","type":"address"}],"name":"ImportBeaconProxy","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"NewAdmin","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"string","name":"productType","type":"string"},{"indexed":true,"internalType":"address","name":"beacon","type":"address"},{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"NewBeacon","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"string","name":"productType","type":"string"},{"indexed":true,"internalType":"string","name":"productName","type":"string"},{"indexed":true,"internalType":"address","name":"beaconProxy","type":"address"}],"name":"NewBeaconProxy","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldGovernor","type":"address"},{"indexed":false,"internalType":"address","name":"newGovernor","type":"address"}],"name":"NewGovernor","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"string","name":"productType","type":"string"},{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"NewImplementation","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldPendingAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newPendingAdmin","type":"address"}],"name":"NewPendingAdmin","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldPendingGovernor","type":"address"},{"indexed":false,"internalType":"address","name":"newPendingGovernor","type":"address"}],"name":"NewPendingGovernor","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"string","name":"productType","type":"string"},{"indexed":true,"internalType":"string","name":"productName","type":"string"},{"indexed":true,"internalType":"address","name":"beaconProxy","type":"address"}],"name":"RemoveBeaconProxy","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"string","name":"productType","type":"string"},{"indexed":true,"internalType":"address","name":"beacon","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"TransferBeaconOwnership","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"string","name":"productType","type":"string"},{"indexed":true,"internalType":"address","name":"beacon","type":"address"},{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"UpgradeBeacon","type":"event"},{"inputs":[],"name":"acceptAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"acceptGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"productType_","type":"string"},{"internalType":"string","name":"productName_","type":"string"},{"internalType":"string","name":"tokenName_","type":"string"},{"internalType":"string","name":"tokenSymbol_","type":"string"},{"internalType":"address","name":"owner_","type":"address"}],"name":"deployProductProxy","outputs":[{"internalType":"address","name":"proxy_","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"productType_","type":"string"}],"name":"getBeacon","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"productType_","type":"string"}],"name":"getImplementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"productType_","type":"string"},{"internalType":"string","name":"productName_","type":"string"}],"name":"getProxy","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"productType_","type":"string"},{"internalType":"address","name":"beacon_","type":"address"}],"name":"importBeacon","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"productType_","type":"string"},{"internalType":"string","name":"productName_","type":"string"},{"internalType":"address","name":"proxy_","type":"address"}],"name":"importProductProxy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pendingAdmin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingGovernor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"productTypes","outputs":[{"internalType":"address","name":"implementation","type":"address"},{"internalType":"address","name":"beacon","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"productType_","type":"string"},{"internalType":"string","name":"productName_","type":"string"}],"name":"removeProductProxy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"productType_","type":"string"},{"internalType":"address","name":"implementation_","type":"address"}],"name":"setImplementation","outputs":[{"internalType":"address","name":"beacon_","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newPendingAdmin_","type":"address"}],"name":"transferAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"productType_","type":"string"},{"internalType":"address","name":"newOwner_","type":"address"}],"name":"transferBeaconOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newPendingGovernor_","type":"address"}],"name":"transferGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60806040523480156200001157600080fd5b50604051620023e9380380620023e98339810160408190526200003491620001c0565b600080546001600160a01b0319166001600160a01b038416178155604051829184917ff9ffabca9c8276e99321725bcb43fb076a6c66a54b7f21c4e8146d8519b417dc9162000085918490620001f8565b60405180910390a150600280546001600160a01b0319166001600160a01b0383161790556040517f1ba669d4a78521f2ad26e8e0fcbcdd626a63f34d68f326bc232a3abe2a5d042a90620000de906000908490620001f8565b60405180910390a1506001600160a01b038216620001435760405162461bcd60e51b815260206004820152601d60248201527f536f6c76425443466163746f72793a20696e76616c69642061646d696e00000060448201526064015b60405180910390fd5b6001600160a01b0381166200019b5760405162461bcd60e51b815260206004820181905260248201527f536f6c76425443466163746f72793a20696e76616c696420676f7665726e6f7260448201526064016200013a565b505062000212565b80516001600160a01b0381168114620001bb57600080fd5b919050565b60008060408385031215620001d457600080fd5b620001df83620001a3565b9150620001ef60208401620001a3565b90509250929050565b6001600160a01b0392831681529116602082015260400190565b6121c780620002226000396000f3fe60806040523480156200001157600080fd5b5060043610620000fa5760003560e01c806302bc365c14620000ff57806303789a5b146200011857806306419fe5146200012f5780630c340a24146200015e5780630ddcef5314620001725780630e18b6811462000189578063238efcbc146200019357806326782247146200019d5780636b68389614620001b157806375829def14620001c8578063a04c507914620001df578063a844babb14620001f6578063bc47eb1d1462000248578063d38bfff4146200025f578063e3056a341462000276578063f5dccfa1146200028a578063f851a44014620002a1578063fb8d872b14620002b5575b600080fd5b620001166200011036600462001300565b620002cc565b005b620001166200012936600462001383565b62000461565b620001466200014036600462001383565b620005ec565b604051620001559190620013da565b60405180910390f35b60025462000146906001600160a01b031681565b6200014662000183366004620013ee565b62000946565b620001166200097c565b6200011662000a41565b60015462000146906001600160a01b031681565b62000146620001c2366004620013ee565b62000ae2565b62000116620001d93660046200142e565b62000b15565b62000116620001f036600462001383565b62000bad565b6200023862000207366004620013ee565b8051602081830181018051600482529282019190930120915280546001909101546001600160a01b03918216911682565b6040516200015592919062001455565b620001466200025936600462001300565b62000cbb565b62000116620002703660046200142e565b62000d11565b60035462000146906001600160a01b031681565b620001166200029b3660046200146f565b62000da9565b60005462000146906001600160a01b031681565b62000146620002c6366004620014ef565b62000eec565b6000546001600160a01b03163314620003025760405162461bcd60e51b8152600401620002f990620015bf565b60405180910390fd5b600060048360405162000316919062001609565b90815260200160405180910390206002018260405162000337919062001609565b908152604051908190036020019020546001600160a01b0316905080620003ac5760405162461bcd60e51b815260206004820152602260248201527f536f6c76425443466163746f72793a2070726f7879206e6f74206465706c6f79604482015261195960f21b6064820152608401620002f9565b600483604051620003be919062001609565b908152602001604051809103902060020182604051620003df919062001609565b90815260405190819003602001812080546001600160a01b03191690556001600160a01b038216906200041490849062001609565b6040518091039020846040516200042c919062001609565b604051908190038120907f72871655cb8e08a51370cd107b066dc7fa642b39f87eba10447580209c3207cc90600090a4505050565b6000546001600160a01b031633146200048e5760405162461bcd60e51b8152600401620002f990620015bf565b6001600160a01b038116620004f55760405162461bcd60e51b815260206004820152602660248201527f536f6c76425443466163746f72793a20696e76616c696420626561636f6e206160448201526564647265737360d01b6064820152608401620002f9565b8060048360405162000508919062001609565b908152604080516020928190038301812060010180546001600160a01b0319166001600160a01b03958616179055635c60da1b60e01b8152905192841692635c60da1b926004808401939192918290030181865afa1580156200056f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000595919062001627565b6001600160a01b0316816001600160a01b031683604051620005b8919062001609565b604051908190038120907fd4be5182216f129f579eb83fde3f2711012ecb2a370c95ebed03cd2d2c66f8e290600090a45050565b600080546001600160a01b031633146200061a5760405162461bcd60e51b8152600401620002f990620015bf565b6001600160a01b038216620006815760405162461bcd60e51b815260206004820152602660248201527f536f6c76425443466163746f72793a20696e76616c696420696d706c656d656e6044820152653a30ba34b7b760d11b6064820152608401620002f9565b60048360405162000693919062001609565b908152604051908190036020019020546001600160a01b03908116908316036200070c5760405162461bcd60e51b815260206004820152602360248201527f536f6c76425443466163746f72793a2073616d6520696d706c656d656e74617460448201526234b7b760e91b6064820152608401620002f9565b816004846040516200071f919062001609565b90815260405190819003602001812080546001600160a01b039384166001600160a01b0319909116179055908316906200075b90859062001609565b604051908190038120907f70cc12b129d10f00c73743b4313ad6997088babca4be2b6732a960391203c31f90600090a36004836040516200079d919062001609565b908152604051908190036020019020600101546001600160a01b031690508062000889578130604051620007d1906200123a565b620007de92919062001455565b604051809103906000f080158015620007fb573d6000803e3d6000fd5b5090508060048460405162000811919062001609565b90815260405190819003602001812060010180546001600160a01b039384166001600160a01b0319909116179055838216918316906200085390869062001609565b604051908190038120907fcd7ef590b717071b3f540fe9b93410b1e56b126b254fe215336ea709fba59b2190600090a462000940565b604051631b2ce7f360e11b81526001600160a01b03821690633659cfe690620008b7908590600401620013da565b600060405180830381600087803b158015620008d257600080fd5b505af1158015620008e7573d6000803e3d6000fd5b50505050816001600160a01b0316816001600160a01b0316846040516200090f919062001609565b604051908190038120907fc73db28a0b1cf26933458afb626169fba2899e9fb8b2dd91ceac16f1f815d85290600090a45b92915050565b60006004826040516200095a919062001609565b908152604051908190036020019020600101546001600160a01b031692915050565b6001546001600160a01b03163314620009cd5760405162461bcd60e51b815260206004820152601260248201527137b7363c903832b73234b7339030b236b4b760711b6044820152606401620002f9565b6000546001546040517ff9ffabca9c8276e99321725bcb43fb076a6c66a54b7f21c4e8146d8519b417dc9262000a12926001600160a01b039182169291169062001455565b60405180910390a160018054600080546001600160a01b03199081166001600160a01b03841617909155169055565b6003546001600160a01b0316331462000a6e5760405162461bcd60e51b8152600401620002f99062001647565b6002546003546040517f1ba669d4a78521f2ad26e8e0fcbcdd626a63f34d68f326bc232a3abe2a5d042a9262000ab3926001600160a01b039182169291169062001455565b60405180910390a160038054600280546001600160a01b03199081166001600160a01b03841617909155169055565b600060048260405162000af6919062001609565b908152604051908190036020019020546001600160a01b031692915050565b6000546001600160a01b0316331462000b425760405162461bcd60e51b8152600401620002f990620015bf565b6001546040517fca4f2f25d0898edd99413412fb94012f9e54ec8142f9b093e7720646a95b16a99162000b83916001600160a01b0390911690849062001455565b60405180910390a1600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b0316331462000bda5760405162461bcd60e51b8152600401620002f990620015bf565b600060048360405162000bee919062001609565b9081526040519081900360200181206001015463f2fde38b60e01b82526001600160a01b03169150819063f2fde38b9062000c2e908590600401620013da565b600060405180830381600087803b15801562000c4957600080fd5b505af115801562000c5e573d6000803e3d6000fd5b50505050816001600160a01b0316816001600160a01b03168460405162000c86919062001609565b604051908190038120907fc69903c0cec4f4503aa4496d78dcbf9f6e045679a04c0e921b7bad8e72b209d090600090a4505050565b600060048360405162000ccf919062001609565b90815260200160405180910390206002018260405162000cf0919062001609565b908152604051908190036020019020546001600160a01b0316905092915050565b6002546001600160a01b0316331462000d3e5760405162461bcd60e51b8152600401620002f99062001647565b6003546040517f7d767be5a57784412a13945bd5114db84487d2b007bfcdb2f449fc9ea35437f79162000d7f916001600160a01b0390911690849062001455565b60405180910390a1600380546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b0316331462000dd65760405162461bcd60e51b8152600401620002f990620015bf565b60006001600160a01b031660048460405162000df3919062001609565b908152604051908190036020019020600101546001600160a01b03160362000e2f5760405162461bcd60e51b8152600401620002f9906200166e565b8060048460405162000e42919062001609565b90815260200160405180910390206002018360405162000e63919062001609565b90815260405190819003602001812080546001600160a01b039384166001600160a01b03199091161790559082169062000e9f90849062001609565b60405180910390208460405162000eb7919062001609565b604051908190038120907f0ef163d0880f2992313f190506962752ba93927541e4f93693e30c8109da774590600090a4505050565b6002546000906001600160a01b0316331462000f1c5760405162461bcd60e51b8152600401620002f99062001647565b600060048760405162000f30919062001609565b9081526040519081900360200181209150600090600283019062000f5690899062001609565b908152604051908190036020019020546001600160a01b03161462000fcf5760405162461bcd60e51b815260206004820152602860248201527f536f6c76425443466163746f72793a2070726f6475637420616c72656164792060448201526719195c1b1bde595960c21b6064820152608401620002f9565b60018101546001600160a01b031662000ffc5760405162461bcd60e51b8152600401620002f9906200166e565b6000878760405160200162001013929190620016b1565b60408051601f19818403018152828252805160209182012060018601546000855291840192839052935083926001600160a01b0390911691620010569062001248565b6200106392919062001712565b8190604051809103906000f590508015801562001084573d6000803e3d6000fd5b5092506000868686604051602401620010a09392919062001738565b60408051601f198184030181529181526020820180516001600160e01b03166303bf912560e11b179052519091506000906001600160a01b03861690620010e990849062001609565b6000604051808303816000865af19150503d806000811462001128576040519150601f19603f3d011682016040523d82523d6000602084013e6200112d565b606091505b5050905080620011945760405162461bcd60e51b815260206004820152602b60248201527f536f6c76425443466163746f72793a2070726f787920696e697469616c697a6160448201526a1d1a5bdb8819985a5b195960aa1b6064820152608401620002f9565b84846002018a604051620011a9919062001609565b90815260405190819003602001812080546001600160a01b039384166001600160a01b031990911617905590861690620011e5908b9062001609565b60405180910390208b604051620011fd919062001609565b604051908190038120907fc30ce88f5e35e9e52ef522887407c7e48fc30575f887289cd41d63bbc665e7ec90600090a45050505095945050505050565b61045b806200177b83390190565b6105bc8062001bd683390190565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200127e57600080fd5b81356001600160401b03808211156200129b576200129b62001256565b604051601f8301601f19908116603f01168101908282118183101715620012c657620012c662001256565b81604052838152866020858801011115620012e057600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080604083850312156200131457600080fd5b82356001600160401b03808211156200132c57600080fd5b6200133a868387016200126c565b935060208501359150808211156200135157600080fd5b5062001360858286016200126c565b9150509250929050565b6001600160a01b03811681146200138057600080fd5b50565b600080604083850312156200139757600080fd5b82356001600160401b03811115620013ae57600080fd5b620013bc858286016200126c565b9250506020830135620013cf816200136a565b809150509250929050565b6001600160a01b0391909116815260200190565b6000602082840312156200140157600080fd5b81356001600160401b038111156200141857600080fd5b62001426848285016200126c565b949350505050565b6000602082840312156200144157600080fd5b81356200144e816200136a565b9392505050565b6001600160a01b0392831681529116602082015260400190565b6000806000606084860312156200148557600080fd5b83356001600160401b03808211156200149d57600080fd5b620014ab878388016200126c565b94506020860135915080821115620014c257600080fd5b50620014d1868287016200126c565b9250506040840135620014e4816200136a565b809150509250925092565b600080600080600060a086880312156200150857600080fd5b85356001600160401b03808211156200152057600080fd5b6200152e89838a016200126c565b965060208801359150808211156200154557600080fd5b6200155389838a016200126c565b955060408801359150808211156200156a57600080fd5b6200157889838a016200126c565b945060608801359150808211156200158f57600080fd5b506200159e888289016200126c565b9250506080860135620015b1816200136a565b809150509295509295909350565b6020808252600a908201526937b7363c9030b236b4b760b11b604082015260600190565b60005b8381101562001600578181015183820152602001620015e6565b50506000910152565b600082516200161d818460208701620015e3565b9190910192915050565b6000602082840312156200163a57600080fd5b81516200144e816200136a565b6020808252600d908201526c37b7363c9033b7bb32b93737b960991b604082015260600190565b60208082526023908201527f536f6c76425443466163746f72793a20626561636f6e206e6f74206465706c6f6040820152621e595960ea1b606082015260800190565b60008351620016c5818460208801620015e3565b835190830190620016db818360208801620015e3565b01949350505050565b60008151808452620016fe816020860160208601620015e3565b601f01601f19169290920160200192915050565b6001600160a01b03831681526040602082018190526000906200142690830184620016e4565b6060815260006200174d6060830186620016e4565b8281036020840152620017618186620016e4565b91505060018060a01b038316604083015294935050505056fe608060405234801561001057600080fd5b5060405161045b38038061045b83398101604081905261002f91610160565b806001600160a01b038116610063576000604051631e4fbdf760e01b815260040161005a9190610193565b60405180910390fd5b61006c8161007d565b50610076826100cd565b50506101a7565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b806001600160a01b03163b6000036100fa578060405163211eb15960e21b815260040161005a9190610193565b600180546001600160a01b0319166001600160a01b0383169081179091556040517fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b80516001600160a01b038116811461015b57600080fd5b919050565b6000806040838503121561017357600080fd5b61017c83610144565b915061018a60208401610144565b90509250929050565b6001600160a01b0391909116815260200190565b6102a5806101b66000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c80633659cfe61461005c5780635c60da1b14610071578063715018a6146100945780638da5cb5b1461009c578063f2fde38b146100a4575b600080fd5b61006f61006a36600461022b565b6100b7565b005b6001546001600160a01b03165b60405161008b919061025b565b60405180910390f35b61006f6100cb565b61007e6100df565b61006f6100b236600461022b565b6100ee565b6100bf610132565b6100c881610164565b50565b6100d3610132565b6100dd60006101db565b565b6000546001600160a01b031690565b6100f6610132565b6001600160a01b038116610129576000604051631e4fbdf760e01b8152600401610120919061025b565b60405180910390fd5b6100c8816101db565b3361013b6100df565b6001600160a01b0316146100dd573360405163118cdaa760e01b8152600401610120919061025b565b806001600160a01b03163b600003610191578060405163211eb15960e21b8152600401610120919061025b565b600180546001600160a01b0319166001600160a01b0383169081179091556040517fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561023d57600080fd5b81356001600160a01b038116811461025457600080fd5b9392505050565b6001600160a01b039190911681526020019056fea26469706673582212202ee2b89d96094391782842b0cdf3533e06f0dc733bd57d969ac3d7009da714d864736f6c6343000814003360a06040526040516105bc3803806105bc83398101604081905261002291610370565b61002c828261003e565b506001600160a01b031660805261047b565b610047826100fe565b6040516001600160a01b038316907f1cf3b03a6cf19fa2baba4df148e9dcabedea7f8a5c07840e207e5c089be95d3e90600090a28051156100f2576100ed826001600160a01b0316635c60da1b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156100c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100e79190610430565b82610203565b505050565b6100fa61027a565b5050565b806001600160a01b03163b6000036101345780604051631933b43b60e21b815260040161012b919061044b565b60405180910390fd5b807fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d5080546001600160a01b0319166001600160a01b0392831617905560408051635c60da1b60e01b81529051600092841691635c60da1b9160048083019260209291908290030181865afa1580156101b0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d49190610430565b9050806001600160a01b03163b6000036100fa5780604051634c9c8ce360e01b815260040161012b919061044b565b6060600080846001600160a01b031684604051610220919061045f565b600060405180830381855af49150503d806000811461025b576040519150601f19603f3d011682016040523d82523d6000602084013e610260565b606091505b50909250905061027185838361029b565b95945050505050565b34156102995760405163b398979f60e01b815260040160405180910390fd5b565b6060826102b0576102ab826102f1565b6102ea565b81511580156102c757506001600160a01b0384163b155b156102e75783604051639996b31560e01b815260040161012b919061044b565b50805b9392505050565b8051156103015780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b80516001600160a01b038116811461033157600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561036757818101518382015260200161034f565b50506000910152565b6000806040838503121561038357600080fd5b61038c8361031a565b60208401519092506001600160401b03808211156103a957600080fd5b818501915085601f8301126103bd57600080fd5b8151818111156103cf576103cf610336565b604051601f8201601f19908116603f011681019083821181831017156103f7576103f7610336565b8160405282815288602084870101111561041057600080fd5b61042183602083016020880161034c565b80955050505050509250929050565b60006020828403121561044257600080fd5b6102ea8261031a565b6001600160a01b0391909116815260200190565b6000825161047181846020870161034c565b9190910192915050565b6080516101276104956000396000601e01526101276000f3fe6080604052600a600c565b005b60186014601a565b60a0565b565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316635c60da1b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156079573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190609b919060c3565b905090565b3660008037600080366000845af43d6000803e80801560be573d6000f35b3d6000fd5b60006020828403121560d457600080fd5b81516001600160a01b038116811460ea57600080fd5b939250505056fea2646970667358221220986f251d4075ce92271f1941774010b4b15f973ef37f152c539f8e838fd19ce464736f6c63430008140033a2646970667358221220495a36625ec1be9204d336f9ada7f23d01ee7d4e947f177213eb3c222f3c9c4464736f6c63430008140033000000000000000000000000fdf6b2cab8cc6d36926a3d1ce99775e6653ae9f1000000000000000000000000fdf6b2cab8cc6d36926a3d1ce99775e6653ae9f1
Deployed Bytecode
0x60806040523480156200001157600080fd5b5060043610620000fa5760003560e01c806302bc365c14620000ff57806303789a5b146200011857806306419fe5146200012f5780630c340a24146200015e5780630ddcef5314620001725780630e18b6811462000189578063238efcbc146200019357806326782247146200019d5780636b68389614620001b157806375829def14620001c8578063a04c507914620001df578063a844babb14620001f6578063bc47eb1d1462000248578063d38bfff4146200025f578063e3056a341462000276578063f5dccfa1146200028a578063f851a44014620002a1578063fb8d872b14620002b5575b600080fd5b620001166200011036600462001300565b620002cc565b005b620001166200012936600462001383565b62000461565b620001466200014036600462001383565b620005ec565b604051620001559190620013da565b60405180910390f35b60025462000146906001600160a01b031681565b6200014662000183366004620013ee565b62000946565b620001166200097c565b6200011662000a41565b60015462000146906001600160a01b031681565b62000146620001c2366004620013ee565b62000ae2565b62000116620001d93660046200142e565b62000b15565b62000116620001f036600462001383565b62000bad565b6200023862000207366004620013ee565b8051602081830181018051600482529282019190930120915280546001909101546001600160a01b03918216911682565b6040516200015592919062001455565b620001466200025936600462001300565b62000cbb565b62000116620002703660046200142e565b62000d11565b60035462000146906001600160a01b031681565b620001166200029b3660046200146f565b62000da9565b60005462000146906001600160a01b031681565b62000146620002c6366004620014ef565b62000eec565b6000546001600160a01b03163314620003025760405162461bcd60e51b8152600401620002f990620015bf565b60405180910390fd5b600060048360405162000316919062001609565b90815260200160405180910390206002018260405162000337919062001609565b908152604051908190036020019020546001600160a01b0316905080620003ac5760405162461bcd60e51b815260206004820152602260248201527f536f6c76425443466163746f72793a2070726f7879206e6f74206465706c6f79604482015261195960f21b6064820152608401620002f9565b600483604051620003be919062001609565b908152602001604051809103902060020182604051620003df919062001609565b90815260405190819003602001812080546001600160a01b03191690556001600160a01b038216906200041490849062001609565b6040518091039020846040516200042c919062001609565b604051908190038120907f72871655cb8e08a51370cd107b066dc7fa642b39f87eba10447580209c3207cc90600090a4505050565b6000546001600160a01b031633146200048e5760405162461bcd60e51b8152600401620002f990620015bf565b6001600160a01b038116620004f55760405162461bcd60e51b815260206004820152602660248201527f536f6c76425443466163746f72793a20696e76616c696420626561636f6e206160448201526564647265737360d01b6064820152608401620002f9565b8060048360405162000508919062001609565b908152604080516020928190038301812060010180546001600160a01b0319166001600160a01b03958616179055635c60da1b60e01b8152905192841692635c60da1b926004808401939192918290030181865afa1580156200056f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000595919062001627565b6001600160a01b0316816001600160a01b031683604051620005b8919062001609565b604051908190038120907fd4be5182216f129f579eb83fde3f2711012ecb2a370c95ebed03cd2d2c66f8e290600090a45050565b600080546001600160a01b031633146200061a5760405162461bcd60e51b8152600401620002f990620015bf565b6001600160a01b038216620006815760405162461bcd60e51b815260206004820152602660248201527f536f6c76425443466163746f72793a20696e76616c696420696d706c656d656e6044820152653a30ba34b7b760d11b6064820152608401620002f9565b60048360405162000693919062001609565b908152604051908190036020019020546001600160a01b03908116908316036200070c5760405162461bcd60e51b815260206004820152602360248201527f536f6c76425443466163746f72793a2073616d6520696d706c656d656e74617460448201526234b7b760e91b6064820152608401620002f9565b816004846040516200071f919062001609565b90815260405190819003602001812080546001600160a01b039384166001600160a01b0319909116179055908316906200075b90859062001609565b604051908190038120907f70cc12b129d10f00c73743b4313ad6997088babca4be2b6732a960391203c31f90600090a36004836040516200079d919062001609565b908152604051908190036020019020600101546001600160a01b031690508062000889578130604051620007d1906200123a565b620007de92919062001455565b604051809103906000f080158015620007fb573d6000803e3d6000fd5b5090508060048460405162000811919062001609565b90815260405190819003602001812060010180546001600160a01b039384166001600160a01b0319909116179055838216918316906200085390869062001609565b604051908190038120907fcd7ef590b717071b3f540fe9b93410b1e56b126b254fe215336ea709fba59b2190600090a462000940565b604051631b2ce7f360e11b81526001600160a01b03821690633659cfe690620008b7908590600401620013da565b600060405180830381600087803b158015620008d257600080fd5b505af1158015620008e7573d6000803e3d6000fd5b50505050816001600160a01b0316816001600160a01b0316846040516200090f919062001609565b604051908190038120907fc73db28a0b1cf26933458afb626169fba2899e9fb8b2dd91ceac16f1f815d85290600090a45b92915050565b60006004826040516200095a919062001609565b908152604051908190036020019020600101546001600160a01b031692915050565b6001546001600160a01b03163314620009cd5760405162461bcd60e51b815260206004820152601260248201527137b7363c903832b73234b7339030b236b4b760711b6044820152606401620002f9565b6000546001546040517ff9ffabca9c8276e99321725bcb43fb076a6c66a54b7f21c4e8146d8519b417dc9262000a12926001600160a01b039182169291169062001455565b60405180910390a160018054600080546001600160a01b03199081166001600160a01b03841617909155169055565b6003546001600160a01b0316331462000a6e5760405162461bcd60e51b8152600401620002f99062001647565b6002546003546040517f1ba669d4a78521f2ad26e8e0fcbcdd626a63f34d68f326bc232a3abe2a5d042a9262000ab3926001600160a01b039182169291169062001455565b60405180910390a160038054600280546001600160a01b03199081166001600160a01b03841617909155169055565b600060048260405162000af6919062001609565b908152604051908190036020019020546001600160a01b031692915050565b6000546001600160a01b0316331462000b425760405162461bcd60e51b8152600401620002f990620015bf565b6001546040517fca4f2f25d0898edd99413412fb94012f9e54ec8142f9b093e7720646a95b16a99162000b83916001600160a01b0390911690849062001455565b60405180910390a1600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b0316331462000bda5760405162461bcd60e51b8152600401620002f990620015bf565b600060048360405162000bee919062001609565b9081526040519081900360200181206001015463f2fde38b60e01b82526001600160a01b03169150819063f2fde38b9062000c2e908590600401620013da565b600060405180830381600087803b15801562000c4957600080fd5b505af115801562000c5e573d6000803e3d6000fd5b50505050816001600160a01b0316816001600160a01b03168460405162000c86919062001609565b604051908190038120907fc69903c0cec4f4503aa4496d78dcbf9f6e045679a04c0e921b7bad8e72b209d090600090a4505050565b600060048360405162000ccf919062001609565b90815260200160405180910390206002018260405162000cf0919062001609565b908152604051908190036020019020546001600160a01b0316905092915050565b6002546001600160a01b0316331462000d3e5760405162461bcd60e51b8152600401620002f99062001647565b6003546040517f7d767be5a57784412a13945bd5114db84487d2b007bfcdb2f449fc9ea35437f79162000d7f916001600160a01b0390911690849062001455565b60405180910390a1600380546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b0316331462000dd65760405162461bcd60e51b8152600401620002f990620015bf565b60006001600160a01b031660048460405162000df3919062001609565b908152604051908190036020019020600101546001600160a01b03160362000e2f5760405162461bcd60e51b8152600401620002f9906200166e565b8060048460405162000e42919062001609565b90815260200160405180910390206002018360405162000e63919062001609565b90815260405190819003602001812080546001600160a01b039384166001600160a01b03199091161790559082169062000e9f90849062001609565b60405180910390208460405162000eb7919062001609565b604051908190038120907f0ef163d0880f2992313f190506962752ba93927541e4f93693e30c8109da774590600090a4505050565b6002546000906001600160a01b0316331462000f1c5760405162461bcd60e51b8152600401620002f99062001647565b600060048760405162000f30919062001609565b9081526040519081900360200181209150600090600283019062000f5690899062001609565b908152604051908190036020019020546001600160a01b03161462000fcf5760405162461bcd60e51b815260206004820152602860248201527f536f6c76425443466163746f72793a2070726f6475637420616c72656164792060448201526719195c1b1bde595960c21b6064820152608401620002f9565b60018101546001600160a01b031662000ffc5760405162461bcd60e51b8152600401620002f9906200166e565b6000878760405160200162001013929190620016b1565b60408051601f19818403018152828252805160209182012060018601546000855291840192839052935083926001600160a01b0390911691620010569062001248565b6200106392919062001712565b8190604051809103906000f590508015801562001084573d6000803e3d6000fd5b5092506000868686604051602401620010a09392919062001738565b60408051601f198184030181529181526020820180516001600160e01b03166303bf912560e11b179052519091506000906001600160a01b03861690620010e990849062001609565b6000604051808303816000865af19150503d806000811462001128576040519150601f19603f3d011682016040523d82523d6000602084013e6200112d565b606091505b5050905080620011945760405162461bcd60e51b815260206004820152602b60248201527f536f6c76425443466163746f72793a2070726f787920696e697469616c697a6160448201526a1d1a5bdb8819985a5b195960aa1b6064820152608401620002f9565b84846002018a604051620011a9919062001609565b90815260405190819003602001812080546001600160a01b039384166001600160a01b031990911617905590861690620011e5908b9062001609565b60405180910390208b604051620011fd919062001609565b604051908190038120907fc30ce88f5e35e9e52ef522887407c7e48fc30575f887289cd41d63bbc665e7ec90600090a45050505095945050505050565b61045b806200177b83390190565b6105bc8062001bd683390190565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200127e57600080fd5b81356001600160401b03808211156200129b576200129b62001256565b604051601f8301601f19908116603f01168101908282118183101715620012c657620012c662001256565b81604052838152866020858801011115620012e057600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080604083850312156200131457600080fd5b82356001600160401b03808211156200132c57600080fd5b6200133a868387016200126c565b935060208501359150808211156200135157600080fd5b5062001360858286016200126c565b9150509250929050565b6001600160a01b03811681146200138057600080fd5b50565b600080604083850312156200139757600080fd5b82356001600160401b03811115620013ae57600080fd5b620013bc858286016200126c565b9250506020830135620013cf816200136a565b809150509250929050565b6001600160a01b0391909116815260200190565b6000602082840312156200140157600080fd5b81356001600160401b038111156200141857600080fd5b62001426848285016200126c565b949350505050565b6000602082840312156200144157600080fd5b81356200144e816200136a565b9392505050565b6001600160a01b0392831681529116602082015260400190565b6000806000606084860312156200148557600080fd5b83356001600160401b03808211156200149d57600080fd5b620014ab878388016200126c565b94506020860135915080821115620014c257600080fd5b50620014d1868287016200126c565b9250506040840135620014e4816200136a565b809150509250925092565b600080600080600060a086880312156200150857600080fd5b85356001600160401b03808211156200152057600080fd5b6200152e89838a016200126c565b965060208801359150808211156200154557600080fd5b6200155389838a016200126c565b955060408801359150808211156200156a57600080fd5b6200157889838a016200126c565b945060608801359150808211156200158f57600080fd5b506200159e888289016200126c565b9250506080860135620015b1816200136a565b809150509295509295909350565b6020808252600a908201526937b7363c9030b236b4b760b11b604082015260600190565b60005b8381101562001600578181015183820152602001620015e6565b50506000910152565b600082516200161d818460208701620015e3565b9190910192915050565b6000602082840312156200163a57600080fd5b81516200144e816200136a565b6020808252600d908201526c37b7363c9033b7bb32b93737b960991b604082015260600190565b60208082526023908201527f536f6c76425443466163746f72793a20626561636f6e206e6f74206465706c6f6040820152621e595960ea1b606082015260800190565b60008351620016c5818460208801620015e3565b835190830190620016db818360208801620015e3565b01949350505050565b60008151808452620016fe816020860160208601620015e3565b601f01601f19169290920160200192915050565b6001600160a01b03831681526040602082018190526000906200142690830184620016e4565b6060815260006200174d6060830186620016e4565b8281036020840152620017618186620016e4565b91505060018060a01b038316604083015294935050505056fe608060405234801561001057600080fd5b5060405161045b38038061045b83398101604081905261002f91610160565b806001600160a01b038116610063576000604051631e4fbdf760e01b815260040161005a9190610193565b60405180910390fd5b61006c8161007d565b50610076826100cd565b50506101a7565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b806001600160a01b03163b6000036100fa578060405163211eb15960e21b815260040161005a9190610193565b600180546001600160a01b0319166001600160a01b0383169081179091556040517fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b80516001600160a01b038116811461015b57600080fd5b919050565b6000806040838503121561017357600080fd5b61017c83610144565b915061018a60208401610144565b90509250929050565b6001600160a01b0391909116815260200190565b6102a5806101b66000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c80633659cfe61461005c5780635c60da1b14610071578063715018a6146100945780638da5cb5b1461009c578063f2fde38b146100a4575b600080fd5b61006f61006a36600461022b565b6100b7565b005b6001546001600160a01b03165b60405161008b919061025b565b60405180910390f35b61006f6100cb565b61007e6100df565b61006f6100b236600461022b565b6100ee565b6100bf610132565b6100c881610164565b50565b6100d3610132565b6100dd60006101db565b565b6000546001600160a01b031690565b6100f6610132565b6001600160a01b038116610129576000604051631e4fbdf760e01b8152600401610120919061025b565b60405180910390fd5b6100c8816101db565b3361013b6100df565b6001600160a01b0316146100dd573360405163118cdaa760e01b8152600401610120919061025b565b806001600160a01b03163b600003610191578060405163211eb15960e21b8152600401610120919061025b565b600180546001600160a01b0319166001600160a01b0383169081179091556040517fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561023d57600080fd5b81356001600160a01b038116811461025457600080fd5b9392505050565b6001600160a01b039190911681526020019056fea26469706673582212202ee2b89d96094391782842b0cdf3533e06f0dc733bd57d969ac3d7009da714d864736f6c6343000814003360a06040526040516105bc3803806105bc83398101604081905261002291610370565b61002c828261003e565b506001600160a01b031660805261047b565b610047826100fe565b6040516001600160a01b038316907f1cf3b03a6cf19fa2baba4df148e9dcabedea7f8a5c07840e207e5c089be95d3e90600090a28051156100f2576100ed826001600160a01b0316635c60da1b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156100c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100e79190610430565b82610203565b505050565b6100fa61027a565b5050565b806001600160a01b03163b6000036101345780604051631933b43b60e21b815260040161012b919061044b565b60405180910390fd5b807fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d5080546001600160a01b0319166001600160a01b0392831617905560408051635c60da1b60e01b81529051600092841691635c60da1b9160048083019260209291908290030181865afa1580156101b0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d49190610430565b9050806001600160a01b03163b6000036100fa5780604051634c9c8ce360e01b815260040161012b919061044b565b6060600080846001600160a01b031684604051610220919061045f565b600060405180830381855af49150503d806000811461025b576040519150601f19603f3d011682016040523d82523d6000602084013e610260565b606091505b50909250905061027185838361029b565b95945050505050565b34156102995760405163b398979f60e01b815260040160405180910390fd5b565b6060826102b0576102ab826102f1565b6102ea565b81511580156102c757506001600160a01b0384163b155b156102e75783604051639996b31560e01b815260040161012b919061044b565b50805b9392505050565b8051156103015780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b80516001600160a01b038116811461033157600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561036757818101518382015260200161034f565b50506000910152565b6000806040838503121561038357600080fd5b61038c8361031a565b60208401519092506001600160401b03808211156103a957600080fd5b818501915085601f8301126103bd57600080fd5b8151818111156103cf576103cf610336565b604051601f8201601f19908116603f011681019083821181831017156103f7576103f7610336565b8160405282815288602084870101111561041057600080fd5b61042183602083016020880161034c565b80955050505050509250929050565b60006020828403121561044257600080fd5b6102ea8261031a565b6001600160a01b0391909116815260200190565b6000825161047181846020870161034c565b9190910192915050565b6080516101276104956000396000601e01526101276000f3fe6080604052600a600c565b005b60186014601a565b60a0565b565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316635c60da1b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156079573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190609b919060c3565b905090565b3660008037600080366000845af43d6000803e80801560be573d6000f35b3d6000fd5b60006020828403121560d457600080fd5b81516001600160a01b038116811460ea57600080fd5b939250505056fea2646970667358221220986f251d4075ce92271f1941774010b4b15f973ef37f152c539f8e838fd19ce464736f6c63430008140033a2646970667358221220495a36625ec1be9204d336f9ada7f23d01ee7d4e947f177213eb3c222f3c9c4464736f6c63430008140033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000fdf6b2cab8cc6d36926a3d1ce99775e6653ae9f1000000000000000000000000fdf6b2cab8cc6d36926a3d1ce99775e6653ae9f1
-----Decoded View---------------
Arg [0] : admin_ (address): 0xfDf6B2caB8cC6D36926A3d1cE99775E6653Ae9F1
Arg [1] : governor_ (address): 0xfDf6B2caB8cC6D36926A3d1cE99775E6653Ae9F1
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000fdf6b2cab8cc6d36926a3d1ce99775e6653ae9f1
Arg [1] : 000000000000000000000000fdf6b2cab8cc6d36926a3d1ce99775e6653ae9f1
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.