Source Code
Latest 1 from a total of 1 transactions
| Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Transfer Ownersh... | 20359461 | 483 days ago | IN | 0 ETH | 0.00029071 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
ZivoeDAO
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 10 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.17;
import "./libraries/OwnableLocked.sol";
import "../lib/openzeppelin-contracts/contracts/security/ReentrancyGuard.sol";
import "../lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol";
import "../lib/openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol";
import "../lib/openzeppelin-contracts/contracts/token/ERC721/IERC721.sol";
import "../lib/openzeppelin-contracts/contracts/token/ERC721/utils/ERC721Holder.sol";
import "../lib/openzeppelin-contracts/contracts/token/ERC1155/IERC1155.sol";
import "../lib/openzeppelin-contracts/contracts/token/ERC1155/utils/ERC1155Holder.sol";
interface ILocker_DAO {
/// @notice Migrates specific amount of ERC20 from owner() to locker.
/// @param asset The asset to migrate.
/// @param amount The amount of "asset" to migrate.
/// @param data Accompanying transaction data.
function pushToLocker(address asset, uint256 amount, bytes calldata data) external;
/// @notice Migrates entire ERC20 balance from locker to owner().
/// @param asset The asset to migrate.
/// @param data Accompanying transaction data.
function pullFromLocker(address asset, bytes calldata data) external;
/// @notice Migrates specific amount of ERC20 from locker to owner().
/// @param asset The asset to migrate.
/// @param amount The amount of "asset" to migrate.
/// @param data Accompanying transaction data.
function pullFromLockerPartial(address asset, uint256 amount, bytes calldata data) external;
/// @notice Migrates specific amounts of ERC20s from owner() to locker.
/// @param assets The assets to migrate.
/// @param amounts The amounts of "assets" to migrate, corresponds to "assets" by position in array.
/// @param data Accompanying transaction data.
function pushToLockerMulti(address[] calldata assets, uint256[] calldata amounts, bytes[] calldata data) external;
/// @notice Migrates full amount of ERC20s from locker to owner().
/// @param assets The assets to migrate.
/// @param data Accompanying transaction data.
function pullFromLockerMulti(address[] calldata assets, bytes[] calldata data) external;
/// @notice Migrates specific amounts of ERC20s from locker to owner().
/// @param assets The assets to migrate.
/// @param amounts The amounts of "assets" to migrate, corresponds to "assets" by position in array.
/// @param data Accompanying transaction data.
function pullFromLockerMultiPartial(
address[] calldata assets, uint256[] calldata amounts, bytes[] calldata data
) external;
/// @notice Migrates an ERC721 from owner() to locker.
/// @param asset The NFT contract.
/// @param tokenId The ID of the NFT to migrate.
/// @param data Accompanying transaction data.
function pushToLockerERC721(address asset, uint256 tokenId, bytes calldata data) external;
/// @notice Migrates an ERC721 from locker to owner().
/// @param asset The NFT contract.
/// @param tokenId The ID of the NFT to migrate.
/// @param data Accompanying transaction data.
function pullFromLockerERC721(address asset, uint256 tokenId, bytes calldata data) external;
/// @notice Migrates ERC721s from owner() to locker.
/// @param assets The NFT contracts.
/// @param tokenIds The IDs of the NFTs to migrate.
/// @param data Accompanying transaction data.
function pushToLockerMultiERC721(
address[] calldata assets, uint256[] calldata tokenIds, bytes[] calldata data
) external;
/// @notice Migrates ERC721s from locker to owner().
/// @param assets The NFT contracts.
/// @param tokenIds The IDs of the NFTs to migrate.
/// @param data Accompanying transaction data.
function pullFromLockerMultiERC721(
address[] calldata assets, uint256[] calldata tokenIds, bytes[] calldata data
) external;
/// @notice Migrates ERC1155 assets from owner() to locker.
/// @param asset The ERC1155 contract.
/// @param ids The IDs of the assets within the ERC1155 to migrate.
/// @param amounts The amounts to migrate.
/// @param data Accompanying transaction data.
function pushToLockerERC1155(
address asset, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data
) external;
/// @notice Migrates ERC1155 assets from locker to owner().
/// @param asset The ERC1155 contract.
/// @param ids The IDs of the assets within the ERC1155 to migrate.
/// @param amounts The amounts to migrate.
/// @param data Accompanying transaction data.
function pullFromLockerERC1155(
address asset, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data
) external;
/// @notice Permission for calling pushToLocker().
function canPush() external view returns (bool);
/// @notice Permission for calling pullFromLocker().
function canPull() external view returns (bool);
/// @notice Permission for calling pullFromLockerPartial().
function canPullPartial() external view returns (bool);
/// @notice Permission for calling pushToLockerMulti().
function canPushMulti() external view returns (bool);
/// @notice Permission for calling pullFromLockerMulti().
function canPullMulti() external view returns (bool);
/// @notice Permission for calling pullFromLockerMultiPartial().
function canPullMultiPartial() external view returns (bool);
/// @notice Permission for calling pushToLockerERC721().
function canPushERC721() external view returns (bool);
/// @notice Permission for calling pullFromLockerERC721().
function canPullERC721() external view returns (bool);
/// @notice Permission for calling pushToLockerMultiERC721().
function canPushMultiERC721() external view returns (bool);
/// @notice Permission for calling pullFromLockerMultiERC721().
function canPullMultiERC721() external view returns (bool);
/// @notice Permission for calling pushToLockerERC1155().
function canPushERC1155() external view returns (bool);
/// @notice Permission for calling pullFromLockerERC1155().
function canPullERC1155() external view returns (bool);
}
interface IZivoeGlobals_DAO {
/// @notice Returns "true" if a locker is whitelisted for DAO interactions and accounting accessibility.
/// @param locker The address of the locker to check for.
function isLocker(address locker) external view returns (bool);
}
/// @notice This contract escrows assets for the Zivoe protocol and is governed by TimelockController.
/// This contract MUST be owned by TimelockController. This ownership MUST be locked through OwnableLocked.
/// This contract MUST be capable of owning ERC721s & ERC1155s via ERC721Holder and ERC1155Holder.
/// This contract has the following responsibilities:
/// - Manage the asset(s) held in escrow:
/// - Push assets (ERC20, ERC721, ERC1155) to a locker.
/// - Pull assets (ERC20, ERC721, ERC1155) from a locker.
/// - MUST enforce a whitelist of lockers for pushing assets, MUST NOT enforce whitelist for pulling asset(s).
/// - MUST enforce validity of lockers when pushing or pulling through respective endpoint(s), i.e. canPush().
contract ZivoeDAO is ERC1155Holder, ERC721Holder, OwnableLocked, ReentrancyGuard {
using SafeERC20 for IERC20;
// ---------------------
// State Variables
// ---------------------
address public immutable GBL; /// @dev The ZivoeGlobals contract.
// -----------------
// Constructor
// -----------------
/// @notice Initializes the ZivoeDAO contract.
/// @param _GBL The ZivoeGlobals contract.
constructor(address _GBL) { GBL = _GBL; }
// ------------
// Events
// ------------
/// @notice Emitted during push() and pushMulti().
/// @param locker The locker receiving "asset".
/// @param asset The asset being pushed.
/// @param amount The amount of "asset" being pushed.
/// @param data Accompanying transaction data.
event Pushed(address indexed locker, address indexed asset, uint256 amount, bytes data);
/// @notice Emitted during pull() and pullMulti().
/// @param locker The locker "asset" is pulled from.
/// @param asset The asset being pulled.
/// @param data Accompanying transaction data.
event Pulled(address indexed locker, address indexed asset, bytes data);
/// @notice Emitted during pullPartial() and pullMultiPartial().
/// @param locker The locker "asset" is pulled from.
/// @param asset The asset being pulled.
/// @param amount The amount of "asset" being pulled (or could represent a percentage, in basis points).
/// @param data Accompanying transaction data.
event PulledPartial(address indexed locker, address indexed asset, uint256 amount, bytes data);
/// @notice Emitted during pushERC721() and pushMultiERC721().
/// @param locker The locker receiving "asset".
/// @param asset The ERC721 contract.
/// @param tokenId The ID for a given "asset" / NFT.
/// @param data Accompanying data for the transaction.
event PushedERC721(address indexed locker, address indexed asset, uint256 indexed tokenId, bytes data);
/// @notice Emitted during pullERC721() and pullMultiERC721().
/// @param locker The locker "assets" are pulled from.
/// @param asset The ERC721 contract.
/// @param tokenId The ID for a given "asset" / NFT.
/// @param data Accompanying data for the transaction.
event PulledERC721(address indexed locker, address indexed asset, uint256 indexed tokenId, bytes data);
/// @notice Emitted during pushERC1155().
/// @param locker The locker receiving "asset".
/// @param asset The ERC1155 contract.
/// @param ids The IDs for a given "asset" (ERC1155), corresponds to "amounts".
/// @param amounts The amount of "id" to transfer.
/// @param data Accompanying data for the transaction.
event PushedERC1155(address indexed locker, address indexed asset, uint256[] ids, uint256[] amounts, bytes data);
/// @notice Emitted during pullERC1155().
/// @param locker The locker "asset" is pulled from.
/// @param asset The ERC1155 contract.
/// @param ids The IDs for a given "asset" (ERC1155), corresponds to "amounts".
/// @param amounts The amount of "id" to transfer.
/// @param data Accompanying data for the transaction.
event PulledERC1155(address indexed locker, address indexed asset, uint256[] ids, uint256[] amounts, bytes data);
// ----------------
// Functions
// ----------------
/// @notice Pushes an ERC20 token from ZivoeDAO to locker.
/// @dev Only the owner (TimelockController) can call this. MUST be marked onlyOwner and nonReentrant.
/// @param locker The locker to push an ERC20 token to.
/// @param asset The ERC20 token to push.
/// @param amount The amount of "asset" to push.
/// @param data Accompanying transaction data.
function push(address locker, address asset, uint256 amount, bytes calldata data) external onlyOwner nonReentrant {
require(IZivoeGlobals_DAO(GBL).isLocker(locker), "ZivoeDAO::push() !IZivoeGlobals_DAO(GBL).isLocker(locker)");
require(ILocker_DAO(locker).canPush(), "ZivoeDAO::push() !ILocker_DAO(locker).canPush()");
emit Pushed(locker, asset, amount, data);
IERC20(asset).safeIncreaseAllowance(locker, amount);
ILocker_DAO(locker).pushToLocker(asset, amount, data);
// ZivoeDAO MUST ensure "locker" has 0 allowance before this function concludes.
if (IERC20(asset).allowance(address(this), locker) > 0) {
IERC20(asset).safeDecreaseAllowance(locker, IERC20(asset).allowance(address(this), locker));
}
}
/// @notice Pulls ERC20 from locker to ZivoeDAO.
/// @dev This function SHOULD pull the entire balance of "asset" from the locker.
/// @dev Only the owner (TimelockController) can call this. MUST be marked onlyOwner and nonReentrant.
/// @param locker The locker to pull from.
/// @param asset The asset to pull.
/// @param data Accompanying transaction data.
function pull(address locker, address asset, bytes calldata data) external onlyOwner nonReentrant {
require(ILocker_DAO(locker).canPull(), "ZivoeDAO::pull() !ILocker_DAO(locker).canPull()");
emit Pulled(locker, asset, data);
ILocker_DAO(locker).pullFromLocker(asset, data);
}
/// @notice Pulls specific amount of ERC20 from locker to ZivoeDAO.
/// @dev The input "amount" might represent a ratio, BIPS, or an absolute amount, depending on the context.
/// @dev Only the owner (TimelockController) can call this. MUST be marked onlyOwner and nonReentrant.
/// @param locker The locker to pull from.
/// @param asset The asset to pull.
/// @param amount The amount to pull (may not refer to "asset", but rather a different asset within the locker).
/// @param data Accompanying transaction data.
function pullPartial(
address locker, address asset, uint256 amount, bytes calldata data
) external onlyOwner nonReentrant {
require(ILocker_DAO(locker).canPullPartial(), "ZivoeDAO::pullPartial() !ILocker_DAO(locker).canPullPartial()");
emit PulledPartial(locker, asset, amount, data);
ILocker_DAO(locker).pullFromLockerPartial(asset, amount, data);
}
/// @notice Pushes ERC20(s) from locker to ZivoeDAO.
/// @dev Only the owner (TimelockController) can call this. MUST be marked onlyOwner and nonReentrant.
/// @param locker The locker to push capital to.
/// @param assets The assets to push to locker.
/// @param amounts The amount of "asset" to push.
/// @param data Accompanying transaction data.
function pushMulti(
address locker, address[] calldata assets, uint256[] calldata amounts, bytes[] calldata data
) external onlyOwner nonReentrant {
require(
IZivoeGlobals_DAO(GBL).isLocker(locker),
"ZivoeDAO::pushMulti() !IZivoeGlobals_DAO(GBL).isLocker(locker)"
);
require(assets.length == amounts.length, "ZivoeDAO::pushMulti() assets.length != amounts.length");
require(amounts.length == data.length, "ZivoeDAO::pushMulti() amounts.length != data.length");
require(ILocker_DAO(locker).canPushMulti(), "ZivoeDAO::pushMulti() !ILocker_DAO(locker).canPushMulti()");
for (uint256 i = 0; i < assets.length; i++) {
IERC20(assets[i]).safeIncreaseAllowance(locker, amounts[i]);
emit Pushed(locker, assets[i], amounts[i], data[i]);
}
ILocker_DAO(locker).pushToLockerMulti(assets, amounts, data);
for (uint256 i = 0; i < assets.length; i++) {
// ZivoeDAO MUST ensure "locker" has 0 allowance for each ERC20 token before this function concludes.
if (IERC20(assets[i]).allowance(address(this), locker) > 0) {
IERC20(assets[i]).safeDecreaseAllowance(locker, IERC20(assets[i]).allowance(address(this), locker));
}
}
}
/// @notice Pulls ERC20(s) from locker to ZivoeDAO.
/// @dev This function SHOULD pull the entire balance of each "asset" from the locker.
/// @dev Only the owner (TimelockController) can call this. MUST be marked onlyOwner and nonReentrant.
/// @param locker The locker to pull from.
/// @param assets The assets to pull.
/// @param data Accompanying transaction data.
function pullMulti(
address locker, address[] calldata assets, bytes[] calldata data
) external onlyOwner nonReentrant {
require(ILocker_DAO(locker).canPullMulti(), "ZivoeDAO::pullMulti() !ILocker_DAO(locker).canPullMulti()");
require(assets.length == data.length, "ZivoeDAO::pullMulti() assets.length != data.length");
for (uint256 i = 0; i < assets.length; i++) { emit Pulled(locker, assets[i], data[i]); }
ILocker_DAO(locker).pullFromLockerMulti(assets, data);
}
/// @notice Pulls specific amount(s) of ERC20(s) from locker to ZivoeDAO.
/// @dev The input "amounts" might represent a ratio, BIPS, or an absolute amount, depending on the context.
/// @dev Only the owner (TimelockController) can call this. MUST be marked onlyOwner and nonReentrant.
/// @param locker The locker to pull from.
/// @param assets The asset(s) to pull.
/// @param amounts The amount(s) to pull (may not refer to "asset", rather a different asset within the locker).
/// @param data Accompanying transaction data.
function pullMultiPartial(
address locker, address[] calldata assets, uint256[] calldata amounts, bytes[] calldata data
) external onlyOwner nonReentrant {
require(
ILocker_DAO(locker).canPullMultiPartial(),
"ZivoeDAO::pullMultiPartial() !ILocker_DAO(locker).canPullMultiPartial()"
);
require(assets.length == amounts.length, "ZivoeDAO::pullMultiPartial() assets.length != amounts.length");
require(amounts.length == data.length, "ZivoeDAO::pullMultiPartial() amounts.length != data.length");
for (uint256 i = 0; i < assets.length; i++) { emit PulledPartial(locker, assets[i], amounts[i], data[i]); }
ILocker_DAO(locker).pullFromLockerMultiPartial(assets, amounts, data);
}
/// @notice Pushes an NFT from ZivoeDAO to locker.
/// @dev Only the owner (TimelockController) can call this. MUST be marked onlyOwner and nonReentrant.
/// @param locker The locker to push an NFT to.
/// @param asset The NFT contract.
/// @param tokenId The NFT tokenId to push.
/// @param data Accompanying data for the transaction.
function pushERC721(
address locker, address asset, uint256 tokenId, bytes calldata data
) external onlyOwner nonReentrant {
require(
IZivoeGlobals_DAO(GBL).isLocker(locker),
"ZivoeDAO::pushERC721() !IZivoeGlobals_DAO(GBL).isLocker(locker)"
);
require(ILocker_DAO(locker).canPushERC721(), "ZivoeDAO::pushERC721() !ILocker_DAO(locker).canPushERC721()");
emit PushedERC721(locker, asset, tokenId, data);
IERC721(asset).approve(locker, tokenId);
ILocker_DAO(locker).pushToLockerERC721(asset, tokenId, data);
// ZivoeDAO MUST ensure "locker" has consumed its allowance during pushToLockerERC721().
assert(IERC721(asset).getApproved(tokenId) == address(0));
}
/// @notice Pushes NFT(s) from ZivoeDAO to locker.
/// @dev Only the owner (TimelockController) can call this. MUST be marked onlyOwner and nonReentrant.
/// @param locker The locker to push NFTs to.
/// @param assets The NFT contract(s).
/// @param tokenIds The NFT tokenId(s) to push.
/// @param data Accompanying data for the transaction(s).
function pushMultiERC721(
address locker, address[] calldata assets, uint256[] calldata tokenIds, bytes[] calldata data
) external onlyOwner nonReentrant {
require(
IZivoeGlobals_DAO(GBL).isLocker(locker),
"ZivoeDAO::pushMultiERC721() !IZivoeGlobals_DAO(GBL).isLocker(locker)"
);
require(assets.length == tokenIds.length, "ZivoeDAO::pushMultiERC721() assets.length != tokenIds.length");
require(tokenIds.length == data.length, "ZivoeDAO::pushMultiERC721() tokenIds.length != data.length");
require(
ILocker_DAO(locker).canPushMultiERC721(),
"ZivoeDAO::pushMultiERC721() !ILocker_DAO(locker).canPushMultiERC721()"
);
for (uint256 i = 0; i < assets.length; i++) {
IERC721(assets[i]).approve(locker, tokenIds[i]);
emit PushedERC721(locker, assets[i], tokenIds[i], data[i]);
}
ILocker_DAO(locker).pushToLockerMultiERC721(assets, tokenIds, data);
for (uint256 i = 0; i < assets.length; i++) {
// ZivoeDAO MUST ensure "locker" has consumed its allowance during pushToLockerMultiERC721().
assert(IERC721(assets[i]).getApproved(tokenIds[i]) == address(0));
}
}
/// @notice Pulls an NFT from locker to ZivoeDAO.
/// @dev Only the owner (TimelockController) can call this. MUST be marked onlyOwner and nonReentrant.
/// @param locker The locker to pull from.
/// @param asset The NFT contract.
/// @param tokenId The NFT tokenId to pull.
/// @param data Accompanying data for the transaction.
function pullERC721(
address locker, address asset, uint256 tokenId, bytes calldata data
) external onlyOwner nonReentrant {
require(ILocker_DAO(locker).canPullERC721(), "ZivoeDAO::pullERC721() !ILocker_DAO(locker).canPullERC721()");
emit PulledERC721(locker, asset, tokenId, data);
ILocker_DAO(locker).pullFromLockerERC721(asset, tokenId, data);
}
/// @notice Pulls NFT(s) from locker to ZivoeDAO.
/// @dev Only the owner (TimelockController) can call this. MUST be marked onlyOwner and nonReentrant.
/// @param locker The locker to pull from.
/// @param assets The NFT contract(s).
/// @param tokenIds The NFT tokenId(s) to pull.
/// @param data Accompanying data for the transaction(s).
function pullMultiERC721(
address locker, address[] calldata assets, uint256[] calldata tokenIds, bytes[] calldata data
) external onlyOwner nonReentrant {
require(
ILocker_DAO(locker).canPullMultiERC721(),
"ZivoeDAO::pullMultiERC721() !ILocker_DAO(locker).canPullMultiERC721()"
);
require(assets.length == tokenIds.length, "ZivoeDAO::pullMultiERC721() assets.length != tokenIds.length");
require(tokenIds.length == data.length, "ZivoeDAO::pullMultiERC721() tokenIds.length != data.length");
for (uint256 i = 0; i < assets.length; i++) { emit PulledERC721(locker, assets[i], tokenIds[i], data[i]); }
ILocker_DAO(locker).pullFromLockerMultiERC721(assets, tokenIds, data);
}
/// @notice Pushes ERC1155 assets from ZivoeDAO to locker.
/// @dev Only the owner (TimelockController) can call this. MUST be marked onlyOwner and nonReentrant.
/// @param locker The locker to push ERC1155 assets to.
/// @param asset The ERC1155 asset to push to locker.
/// @param ids The ids of "assets" to push.
/// @param amounts The amounts of "assets" to push.
/// @param data Accompanying data for the transaction.
function pushERC1155(
address locker, address asset, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data
) external onlyOwner nonReentrant {
require(
IZivoeGlobals_DAO(GBL).isLocker(locker),
"ZivoeDAO::pushERC1155() !IZivoeGlobals_DAO(GBL).isLocker(locker)"
);
require(
ILocker_DAO(locker).canPushERC1155(),
"ZivoeDAO::pushERC1155() !ILocker_DAO(locker).canPushERC1155()"
);
require(ids.length == amounts.length, "ZivoeDAO::pushERC1155() ids.length != amounts.length");
emit PushedERC1155(locker, asset, ids, amounts, data);
IERC1155(asset).setApprovalForAll(locker, true);
ILocker_DAO(locker).pushToLockerERC1155(asset, ids, amounts, data);
// ZivoeDAO MUST ensure "locker" has 0 allowance for "asset" (ERC1155) before this function concludes.
IERC1155(asset).setApprovalForAll(locker, false);
}
/// @notice Pulls ERC1155 assets from locker to ZivoeDAO.
/// @dev Only the owner (TimelockController) can call this. MUST be marked onlyOwner and nonReentrant.
/// @param locker The locker to pull from.
/// @param asset The ERC1155 asset to pull.
/// @param ids The ids of "assets" to pull.
/// @param amounts The amounts of "assets" to pull.
/// @param data Accompanying data for the transaction.
function pullERC1155(
address locker, address asset, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data
) external onlyOwner nonReentrant {
require(
ILocker_DAO(locker).canPullERC1155(),
"ZivoeDAO::pullERC1155() !ILocker_DAO(locker).canPullERC1155()"
);
require(ids.length == amounts.length, "ZivoeDAO::pullERC1155() ids.length != amounts.length");
emit PulledERC1155(locker, asset, ids, amounts, data);
ILocker_DAO(locker).pullFromLockerERC1155(asset, ids, amounts, data);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../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.
*
* By default, the owner account will be the one that deploys the contract. 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;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @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 {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing 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 {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_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 v4.8.0) (security/ReentrancyGuard.sol)
pragma solidity ^0.8.0;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor() {
_status = _NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
_nonReentrantBefore();
_;
_nonReentrantAfter();
}
function _nonReentrantBefore() private {
// On the first call to nonReentrant, _status will be _NOT_ENTERED
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
}
function _nonReentrantAfter() private {
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/IERC1155.sol)
pragma solidity ^0.8.0;
import "../../utils/introspection/IERC165.sol";
/**
* @dev Required interface of an ERC1155 compliant contract, as defined in the
* https://eips.ethereum.org/EIPS/eip-1155[EIP].
*
* _Available since v3.1._
*/
interface IERC1155 is IERC165 {
/**
* @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
*/
event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);
/**
* @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
* transfers.
*/
event TransferBatch(
address indexed operator,
address indexed from,
address indexed to,
uint256[] ids,
uint256[] values
);
/**
* @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
* `approved`.
*/
event ApprovalForAll(address indexed account, address indexed operator, bool approved);
/**
* @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
*
* If an {URI} event was emitted for `id`, the standard
* https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
* returned by {IERC1155MetadataURI-uri}.
*/
event URI(string value, uint256 indexed id);
/**
* @dev Returns the amount of tokens of token type `id` owned by `account`.
*
* Requirements:
*
* - `account` cannot be the zero address.
*/
function balanceOf(address account, uint256 id) external view returns (uint256);
/**
* @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
*
* Requirements:
*
* - `accounts` and `ids` must have the same length.
*/
function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)
external
view
returns (uint256[] memory);
/**
* @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
*
* Emits an {ApprovalForAll} event.
*
* Requirements:
*
* - `operator` cannot be the caller.
*/
function setApprovalForAll(address operator, bool approved) external;
/**
* @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
*
* See {setApprovalForAll}.
*/
function isApprovedForAll(address account, address operator) external view returns (bool);
/**
* @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
*
* Emits a {TransferSingle} event.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}.
* - `from` must have a balance of tokens of type `id` of at least `amount`.
* - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
* acceptance magic value.
*/
function safeTransferFrom(
address from,
address to,
uint256 id,
uint256 amount,
bytes calldata data
) external;
/**
* @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
*
* Emits a {TransferBatch} event.
*
* Requirements:
*
* - `ids` and `amounts` must have the same length.
* - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
* acceptance magic value.
*/
function safeBatchTransferFrom(
address from,
address to,
uint256[] calldata ids,
uint256[] calldata amounts,
bytes calldata data
) external;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol)
pragma solidity ^0.8.0;
import "../../utils/introspection/IERC165.sol";
/**
* @dev _Available since v3.1._
*/
interface IERC1155Receiver is IERC165 {
/**
* @dev Handles the receipt of a single ERC1155 token type. This function is
* called at the end of a `safeTransferFrom` after the balance has been updated.
*
* NOTE: To accept the transfer, this must return
* `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
* (i.e. 0xf23a6e61, or its own function selector).
*
* @param operator The address which initiated the transfer (i.e. msg.sender)
* @param from The address which previously owned the token
* @param id The ID of the token being transferred
* @param value The amount of tokens being transferred
* @param data Additional data with no specified format
* @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
*/
function onERC1155Received(
address operator,
address from,
uint256 id,
uint256 value,
bytes calldata data
) external returns (bytes4);
/**
* @dev Handles the receipt of a multiple ERC1155 token types. This function
* is called at the end of a `safeBatchTransferFrom` after the balances have
* been updated.
*
* NOTE: To accept the transfer(s), this must return
* `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
* (i.e. 0xbc197c81, or its own function selector).
*
* @param operator The address which initiated the batch transfer (i.e. msg.sender)
* @param from The address which previously owned the token
* @param ids An array containing ids of each token being transferred (order and length must match values array)
* @param values An array containing amounts of each token being transferred (order and length must match ids array)
* @param data Additional data with no specified format
* @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
*/
function onERC1155BatchReceived(
address operator,
address from,
uint256[] calldata ids,
uint256[] calldata values,
bytes calldata data
) external returns (bytes4);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/utils/ERC1155Holder.sol)
pragma solidity ^0.8.0;
import "./ERC1155Receiver.sol";
/**
* Simple implementation of `ERC1155Receiver` that will allow a contract to hold ERC1155 tokens.
*
* IMPORTANT: When inheriting this contract, you must include a way to use the received tokens, otherwise they will be
* stuck.
*
* @dev _Available since v3.1._
*/
contract ERC1155Holder is ERC1155Receiver {
function onERC1155Received(
address,
address,
uint256,
uint256,
bytes memory
) public virtual override returns (bytes4) {
return this.onERC1155Received.selector;
}
function onERC1155BatchReceived(
address,
address,
uint256[] memory,
uint256[] memory,
bytes memory
) public virtual override returns (bytes4) {
return this.onERC1155BatchReceived.selector;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/utils/ERC1155Receiver.sol)
pragma solidity ^0.8.0;
import "../IERC1155Receiver.sol";
import "../../../utils/introspection/ERC165.sol";
/**
* @dev _Available since v3.1._
*/
abstract contract ERC1155Receiver is ERC165, IERC1155Receiver {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
return interfaceId == type(IERC1155Receiver).interfaceId || super.supportsInterface(interfaceId);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
* https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
*
* Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
* presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
* need to send a transaction, and thus is not required to hold Ether at all.
*/
interface IERC20Permit {
/**
* @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
* given ``owner``'s signed approval.
*
* IMPORTANT: The same issues {IERC20-approve} has related to transaction
* ordering also apply here.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `deadline` must be a timestamp in the future.
* - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
* over the EIP712-formatted function arguments.
* - the signature must use ``owner``'s current nonce (see {nonces}).
*
* For more information on the signature format, see the
* https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
* section].
*/
function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) external;
/**
* @dev Returns the current nonce for `owner`. This value must be
* included whenever a signature is generated for {permit}.
*
* Every successful call to {permit} increases ``owner``'s nonce by one. This
* prevents a signature from being used multiple times.
*/
function nonces(address owner) external view returns (uint256);
/**
* @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
*/
// solhint-disable-next-line func-name-mixedcase
function DOMAIN_SEPARATOR() external view returns (bytes32);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `from` to `to` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 amount
) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.0;
import "../IERC20.sol";
import "../extensions/draft-IERC20Permit.sol";
import "../../../utils/Address.sol";
/**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
* which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
*/
library SafeERC20 {
using Address for address;
function safeTransfer(
IERC20 token,
address to,
uint256 value
) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
function safeTransferFrom(
IERC20 token,
address from,
address to,
uint256 value
) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
}
/**
* @dev Deprecated. This function has issues similar to the ones found in
* {IERC20-approve}, and its usage is discouraged.
*
* Whenever possible, use {safeIncreaseAllowance} and
* {safeDecreaseAllowance} instead.
*/
function safeApprove(
IERC20 token,
address spender,
uint256 value
) internal {
// safeApprove should only be called when setting an initial allowance,
// or when resetting it to zero. To increase and decrease it, use
// 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
require(
(value == 0) || (token.allowance(address(this), spender) == 0),
"SafeERC20: approve from non-zero to non-zero allowance"
);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
}
function safeIncreaseAllowance(
IERC20 token,
address spender,
uint256 value
) internal {
uint256 newAllowance = token.allowance(address(this), spender) + value;
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
function safeDecreaseAllowance(
IERC20 token,
address spender,
uint256 value
) internal {
unchecked {
uint256 oldAllowance = token.allowance(address(this), spender);
require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
uint256 newAllowance = oldAllowance - value;
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
}
function safePermit(
IERC20Permit token,
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) internal {
uint256 nonceBefore = token.nonces(owner);
token.permit(owner, spender, value, deadline, v, r, s);
uint256 nonceAfter = token.nonces(owner);
require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
// the target address contains contract code and also asserts for success in the low-level call.
bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
if (returndata.length > 0) {
// Return data is optional
require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol)
pragma solidity ^0.8.0;
import "../../utils/introspection/IERC165.sol";
/**
* @dev Required interface of an ERC721 compliant contract.
*/
interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
*/
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
/**
* @dev Returns the number of tokens in ``owner``'s account.
*/
function balanceOf(address owner) external view returns (uint256 balance);
/**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function ownerOf(uint256 tokenId) external view returns (address owner);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes calldata data
) external;
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Transfers `tokenId` token from `from` to `to`.
*
* WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
* or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
* understand this adds an external call which potentially creates a reentrancy vulnerability.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token or be an approved operator.
* - `tokenId` must exist.
*
* Emits an {Approval} event.
*/
function approve(address to, uint256 tokenId) external;
/**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the caller.
*
* Emits an {ApprovalForAll} event.
*/
function setApprovalForAll(address operator, bool _approved) external;
/**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(uint256 tokenId) external view returns (address operator);
/**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}
*/
function isApprovedForAll(address owner, address operator) external view returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)
pragma solidity ^0.8.0;
/**
* @title ERC721 token receiver interface
* @dev Interface for any contract that wants to support safeTransfers
* from ERC721 asset contracts.
*/
interface IERC721Receiver {
/**
* @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
* by `operator` from `from`, this function is called.
*
* It must return its Solidity selector to confirm the token transfer.
* If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
*
* The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.
*/
function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) external returns (bytes4);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/utils/ERC721Holder.sol)
pragma solidity ^0.8.0;
import "../IERC721Receiver.sol";
/**
* @dev Implementation of the {IERC721Receiver} interface.
*
* Accepts all token transfers.
* Make sure the contract is able to use its token with {IERC721-safeTransferFrom}, {IERC721-approve} or {IERC721-setApprovalForAll}.
*/
contract ERC721Holder is IERC721Receiver {
/**
* @dev See {IERC721Receiver-onERC721Received}.
*
* Always returns `IERC721Receiver.onERC721Received.selector`.
*/
function onERC721Received(
address,
address,
uint256,
bytes memory
) public virtual override returns (bytes4) {
return this.onERC721Received.selector;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 0;
}
/**
* @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://diligence.consensys.net/posts/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.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @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, it is bubbled up by this
* function (like regular Solidity function calls).
*
* 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.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @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`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
* the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
*
* _Available since v4.8._
*/
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata,
string memory errorMessage
) internal view returns (bytes memory) {
if (success) {
if (returndata.length == 0) {
// only check isContract if the call was successful and the return data is empty
// otherwise we already know that it was a contract
require(isContract(target), "Address: call to non-contract");
}
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
/**
* @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason or using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
function _revert(bytes memory returndata, string memory errorMessage) 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(errorMessage);
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @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;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)
pragma solidity ^0.8.0;
import "./IERC165.sol";
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
* }
* ```
*
* Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
*/
abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.17;
import "../../lib/openzeppelin-contracts/contracts/access/Ownable.sol";
abstract contract OwnableLocked is Ownable {
bool public locked; /// @dev A variable "locked" that prevents future ownership transfer.
/**
* @dev Throws if called by any account other than the owner.
*/
modifier unlocked() {
require(!locked, "OwnableLocked::unlocked() locked");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner and if !locked.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public override(Ownable) onlyOwner unlocked { _transferOwnership(address(0)); }
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner and if !locked.
*/
function transferOwnership(address newOwner) public override(Ownable) onlyOwner unlocked {
require(newOwner != address(0), "OwnableLocked::transferOwnership() newOwner == address(0)");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner and if !locked.
*/
function transferOwnershipAndLock(address newOwner) public onlyOwner unlocked {
require(newOwner != address(0), "OwnableLocked::transferOwnershipAndLock() newOwner == address(0)");
locked = true;
_transferOwnership(newOwner);
}
}{
"optimizer": {
"enabled": true,
"runs": 10
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_GBL","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"locker","type":"address"},{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"}],"name":"Pulled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"locker","type":"address"},{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"}],"name":"PulledERC1155","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"locker","type":"address"},{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"}],"name":"PulledERC721","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"locker","type":"address"},{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"}],"name":"PulledPartial","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"locker","type":"address"},{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"}],"name":"Pushed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"locker","type":"address"},{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"}],"name":"PushedERC1155","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"locker","type":"address"},{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"}],"name":"PushedERC721","type":"event"},{"inputs":[],"name":"GBL","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"locked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"locker","type":"address"},{"internalType":"address","name":"asset","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"pull","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"locker","type":"address"},{"internalType":"address","name":"asset","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"pullERC1155","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"locker","type":"address"},{"internalType":"address","name":"asset","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"pullERC721","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"locker","type":"address"},{"internalType":"address[]","name":"assets","type":"address[]"},{"internalType":"bytes[]","name":"data","type":"bytes[]"}],"name":"pullMulti","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"locker","type":"address"},{"internalType":"address[]","name":"assets","type":"address[]"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"bytes[]","name":"data","type":"bytes[]"}],"name":"pullMultiERC721","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"locker","type":"address"},{"internalType":"address[]","name":"assets","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes[]","name":"data","type":"bytes[]"}],"name":"pullMultiPartial","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"locker","type":"address"},{"internalType":"address","name":"asset","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"pullPartial","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"locker","type":"address"},{"internalType":"address","name":"asset","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"push","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"locker","type":"address"},{"internalType":"address","name":"asset","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"pushERC1155","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"locker","type":"address"},{"internalType":"address","name":"asset","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"pushERC721","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"locker","type":"address"},{"internalType":"address[]","name":"assets","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes[]","name":"data","type":"bytes[]"}],"name":"pushMulti","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"locker","type":"address"},{"internalType":"address[]","name":"assets","type":"address[]"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"bytes[]","name":"data","type":"bytes[]"}],"name":"pushMultiERC721","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnershipAndLock","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60a06040523480156200001157600080fd5b5060405162003b6038038062003b608339810160408190526200003491620000a5565b6200003f3362000055565b600180556001600160a01b0316608052620000d7565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600060208284031215620000b857600080fd5b81516001600160a01b0381168114620000d057600080fd5b9392505050565b608051613a4a62000116600039600081816101700152818161069001528181610d0f0152818161108201528181611869015261240a0152613a4a6000f3fe608060405234801561001057600080fd5b50600436106101125760003560e01c806301ffc9a714610117578063150b7a021461013f5780633ce8d4321461016b578063406df6bb1461019f5780634828e137146101b457806358289c7e146101c757806370240769146101da57806370defbad146101ed578063715018a61461020057806374c011b11461020857806386595bb01461021b5780638a0008361461022e5780638da5cb5b14610241578063aeb3408714610249578063bbe10bad1461025c578063bc197c811461026f578063c60173131461028e578063c73f43e7146102a1578063cf309012146102b4578063cf57f922146102c8578063f23a6e61146102db578063f2fde38b146102fa575b600080fd5b61012a610125366004612e2b565b61030d565b60405190151581526020015b60405180910390f35b61015261014d366004612f26565b610344565b6040516001600160e01b03199091168152602001610136565b6101927f000000000000000000000000000000000000000000000000000000000000000081565b6040516101369190612f91565b6101b26101ad366004612ff0565b610355565b005b6101b26101c2366004612ff0565b610669565b6101b26101d536600461309c565b610c2b565b6101b26101e83660046130fa565b610ce8565b6101b26101fb366004612ff0565b61105b565b6101b26115e2565b6101b261021636600461316c565b611620565b6101b261022936600461316c565b611842565b6101b261023c366004612ff0565b611be2565b610192611eaa565b6101b26102573660046130fa565b611eb9565b6101b261026a36600461322a565b612044565b61015261027d36600461330f565b63bc197c8160e01b95945050505050565b6101b261029c3660046133bc565b612261565b6101b26102af3660046130fa565b6123e3565b60005461012a90600160a01b900460ff1681565b6101b26102d63660046130fa565b612765565b6101526102e9366004613420565b63f23a6e6160e01b95945050505050565b6101b261030836600461309c565b6128b8565b60006001600160e01b03198216630271189760e51b148061033e57506301ffc9a760e01b6001600160e01b03198316145b92915050565b630a85bd0160e11b5b949350505050565b61035d612959565b6103656129b8565b866001600160a01b0316632f08d48b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156103a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103c79190613488565b61044e5760405162461bcd60e51b815260206004820152604760248201527f5a69766f6544414f3a3a70756c6c4d756c74695061727469616c28292021494c60448201527f6f636b65725f44414f286c6f636b6572292e63616e50756c6c4d756c74695061606482015266727469616c282960c81b608482015260a4015b60405180910390fd5b8483146104c25760405162461bcd60e51b815260206004820152603c60248201527f5a69766f6544414f3a3a70756c6c4d756c74695061727469616c28292061737360448201527b0cae8e65cd8cadccee8d040427a40c2dadeeadce8e65cd8cadccee8d60231b6064820152608401610445565b8281146105345760405162461bcd60e51b815260206004820152603a60248201527f5a69766f6544414f3a3a70756c6c4d756c74695061727469616c282920616d6f6044820152790eadce8e65cd8cadccee8d040427a40c8c2e8c25cd8cadccee8d60331b6064820152608401610445565b60005b858110156105ee57868682818110610551576105516134aa565b9050602002016020810190610566919061309c565b6001600160a01b0316886001600160a01b031660008051602061397583398151915287878581811061059a5761059a6134aa565b905060200201358686868181106105b3576105b36134aa565b90506020028101906105c591906134c0565b6040516105d49392919061352f565b60405180910390a3806105e681613568565b915050610537565b506040516334a12be560e21b81526001600160a01b0388169063d284af94906106259089908990899089908990899060040161368d565b600060405180830381600087803b15801561063f57600080fd5b505af1158015610653573d6000803e3d6000fd5b5050505061066060018055565b50505050505050565b610671612959565b6106796129b8565b604051630bb18f5f60e21b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690632ec63d7c906106c5908a90600401612f91565b602060405180830381865afa1580156106e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107069190613488565b6107785760405162461bcd60e51b815260206004820152603e60248201527f5a69766f6544414f3a3a707573684d756c746928292021495a69766f65476c6f60448201527f62616c735f44414f2847424c292e69734c6f636b6572286c6f636b65722900006064820152608401610445565b8483146107e55760405162461bcd60e51b815260206004820152603560248201527f5a69766f6544414f3a3a707573684d756c74692829206173736574732e6c656e6044820152740cee8d040427a40c2dadeeadce8e65cd8cadccee8d605b1b6064820152608401610445565b8281146108505760405162461bcd60e51b815260206004820152603360248201527f5a69766f6544414f3a3a707573684d756c7469282920616d6f756e74732e6c656044820152720dccee8d040427a40c8c2e8c25cd8cadccee8d606b1b6064820152608401610445565b866001600160a01b031663a4a3e79d6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561088e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108b29190613488565b6109205760405162461bcd60e51b815260206004820152603960248201527f5a69766f6544414f3a3a707573684d756c746928292021494c6f636b65725f44604482015278414f286c6f636b6572292e63616e507573684d756c7469282960381b6064820152608401610445565b60005b85811015610a2e5761097f88868684818110610941576109416134aa565b9050602002013589898581811061095a5761095a6134aa565b905060200201602081019061096f919061309c565b6001600160a01b03169190612a11565b868682818110610991576109916134aa565b90506020020160208101906109a6919061309c565b6001600160a01b0316886001600160a01b03166000805160206139b58339815191528787858181106109da576109da6134aa565b905060200201358686868181106109f3576109f36134aa565b9050602002810190610a0591906134c0565b604051610a149392919061352f565b60405180910390a380610a2681613568565b915050610923565b50604051636a7ab9af60e01b81526001600160a01b03881690636a7ab9af90610a659089908990899089908990899060040161368d565b600060405180830381600087803b158015610a7f57600080fd5b505af1158015610a93573d6000803e3d6000fd5b5050505060005b85811015610c21576000878783818110610ab657610ab66134aa565b9050602002016020810190610acb919061309c565b6001600160a01b031663dd62ed3e308b6040518363ffffffff1660e01b8152600401610af89291906136d6565b602060405180830381865afa158015610b15573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b3991906136f0565b1115610c0f57610c0f88888884818110610b5557610b556134aa565b9050602002016020810190610b6a919061309c565b6001600160a01b031663dd62ed3e308c6040518363ffffffff1660e01b8152600401610b979291906136d6565b602060405180830381865afa158015610bb4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bd891906136f0565b898985818110610bea57610bea6134aa565b9050602002016020810190610bff919061309c565b6001600160a01b03169190612ae5565b80610c1981613568565b915050610a9a565b5061066060018055565b610c33612959565b600054600160a01b900460ff1615610c5d5760405162461bcd60e51b815260040161044590613709565b6001600160a01b038116610cc9576040805162461bcd60e51b81526020600482015260248101919091526000805160206139d583398151915260448201527f416e644c6f636b2829206e65774f776e6572203d3d20616464726573732830296064820152608401610445565b6000805460ff60a01b1916600160a01b179055610ce581612be1565b50565b610cf0612959565b610cf86129b8565b604051630bb18f5f60e21b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690632ec63d7c90610d44908890600401612f91565b602060405180830381865afa158015610d61573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d859190613488565b610df75760405162461bcd60e51b815260206004820152603f60248201527f5a69766f6544414f3a3a7075736845524337323128292021495a69766f65476c60448201527f6f62616c735f44414f2847424c292e69734c6f636b6572286c6f636b657229006064820152608401610445565b846001600160a01b0316638b648ee26040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e35573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e599190613488565b610ec95760405162461bcd60e51b815260206004820152603b60248201527f5a69766f6544414f3a3a7075736845524337323128292021494c6f636b65725f60448201527a44414f286c6f636b6572292e63616e50757368455243373231282960281b6064820152608401610445565b82846001600160a01b0316866001600160a01b03166000805160206139f58339815191528585604051610efd92919061373e565b60405180910390a460405163095ea7b360e01b81526001600160a01b0385169063095ea7b390610f339088908790600401613752565b600060405180830381600087803b158015610f4d57600080fd5b505af1158015610f61573d6000803e3d6000fd5b5050604051631d9389e960e01b81526001600160a01b0388169250631d9389e99150610f9790879087908790879060040161376b565b600060405180830381600087803b158015610fb157600080fd5b505af1158015610fc5573d6000803e3d6000fd5b505060405163020604bf60e21b815260048101869052600092506001600160a01b038716915063081812fc90602401602060405180830381865afa158015611011573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611035919061379d565b6001600160a01b03161461104b5761104b6137ba565b61105460018055565b5050505050565b611063612959565b61106b6129b8565b604051630bb18f5f60e21b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690632ec63d7c906110b7908a90600401612f91565b602060405180830381865afa1580156110d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110f89190613488565b6111785760405162461bcd60e51b8152602060048201526044602482018190527f5a69766f6544414f3a3a707573684d756c746945524337323128292021495a69908201527f766f65476c6f62616c735f44414f2847424c292e69734c6f636b6572286c6f636064820152636b65722960e01b608482015260a401610445565b8483146111ec5760405162461bcd60e51b815260206004820152603c60248201527f5a69766f6544414f3a3a707573684d756c74694552433732312829206173736560448201527b0e8e65cd8cadccee8d040427a40e8ded6cadc92c8e65cd8cadccee8d60231b6064820152608401610445565b82811461125e5760405162461bcd60e51b815260206004820152603a60248201527f5a69766f6544414f3a3a707573684d756c7469455243373231282920746f6b656044820152790dc92c8e65cd8cadccee8d040427a40c8c2e8c25cd8cadccee8d60331b6064820152608401610445565b866001600160a01b031663dd913bdb6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561129c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112c09190613488565b6113405760405162461bcd60e51b815260206004820152604560248201527f5a69766f6544414f3a3a707573684d756c746945524337323128292021494c6f60448201527f636b65725f44414f286c6f636b6572292e63616e507573684d756c7469455243606482015264373231282960d81b608482015260a401610445565b60005b858110156114975786868281811061135d5761135d6134aa565b9050602002016020810190611372919061309c565b6001600160a01b031663095ea7b389878785818110611393576113936134aa565b905060200201356040518363ffffffff1660e01b81526004016113b7929190613752565b600060405180830381600087803b1580156113d157600080fd5b505af11580156113e5573d6000803e3d6000fd5b505050508484828181106113fb576113fb6134aa565b90506020020135878783818110611414576114146134aa565b9050602002016020810190611429919061309c565b6001600160a01b0316896001600160a01b03166000805160206139f583398151915286868681811061145d5761145d6134aa565b905060200281019061146f91906134c0565b60405161147d92919061373e565b60405180910390a48061148f81613568565b915050611343565b506040516302e24af360e61b81526001600160a01b0388169063b892bcc0906114ce9089908990899089908990899060040161368d565b600060405180830381600087803b1580156114e857600080fd5b505af11580156114fc573d6000803e3d6000fd5b5050505060005b85811015610c2157600087878381811061151f5761151f6134aa565b9050602002016020810190611534919061309c565b6001600160a01b031663081812fc878785818110611554576115546134aa565b905060200201356040518263ffffffff1660e01b815260040161157991815260200190565b602060405180830381865afa158015611596573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115ba919061379d565b6001600160a01b0316146115d0576115d06137ba565b806115da81613568565b915050611503565b6115ea612959565b600054600160a01b900460ff16156116145760405162461bcd60e51b815260040161044590613709565b61161e6000612be1565b565b611628612959565b6116306129b8565b876001600160a01b031663b0607cf86040518163ffffffff1660e01b8152600401602060405180830381865afa15801561166e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116929190613488565b6117045760405162461bcd60e51b815260206004820152603d60248201527f5a69766f6544414f3a3a70756c6c4552433131353528292021494c6f636b657260448201527f5f44414f286c6f636b6572292e63616e50756c6c4552433131353528290000006064820152608401610445565b8483146117705760405162461bcd60e51b815260206004820152603460248201527f5a69766f6544414f3a3a70756c6c455243313135352829206964732e6c656e676044820152730e8d040427a40c2dadeeadce8e65cd8cadccee8d60631b6064820152608401610445565b866001600160a01b0316886001600160a01b03167fb84de6f38f3772af791fe710e181e9fae3fdfbe871593408d624cefdc818e5e48888888888886040516117bd969594939291906137d0565b60405180910390a3604051630845640360e31b81526001600160a01b0389169063422b2018906117fd908a908a908a908a908a908a908a9060040161380c565b600060405180830381600087803b15801561181757600080fd5b505af115801561182b573d6000803e3d6000fd5b5050505061183860018055565b5050505050505050565b61184a612959565b6118526129b8565b604051630bb18f5f60e21b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690632ec63d7c9061189e908b90600401612f91565b602060405180830381865afa1580156118bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118df9190613488565b611953576040805162461bcd60e51b81526020600482015260248101919091527f5a69766f6544414f3a3a707573684552433131353528292021495a69766f654760448201527f6c6f62616c735f44414f2847424c292e69734c6f636b6572286c6f636b6572296064820152608401610445565b876001600160a01b031663cf10b7ab6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611991573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119b59190613488565b611a275760405162461bcd60e51b815260206004820152603d60248201527f5a69766f6544414f3a3a707573684552433131353528292021494c6f636b657260448201527f5f44414f286c6f636b6572292e63616e507573684552433131353528290000006064820152608401610445565b848314611a935760405162461bcd60e51b815260206004820152603460248201527f5a69766f6544414f3a3a70757368455243313135352829206964732e6c656e676044820152730e8d040427a40c2dadeeadce8e65cd8cadccee8d60631b6064820152608401610445565b866001600160a01b0316886001600160a01b03167f57fb18048adcacd0dbc30815547d4f9d7c564e0e63dfa2a2b27999bcf941bbe0888888888888604051611ae0969594939291906137d0565b60405180910390a360405163a22cb46560e01b81526001600160a01b0388169063a22cb46590611b17908b90600190600401613867565b600060405180830381600087803b158015611b3157600080fd5b505af1158015611b45573d6000803e3d6000fd5b505060405163fd76f59d60e01b81526001600160a01b038b16925063fd76f59d9150611b81908a908a908a908a908a908a908a9060040161380c565b600060405180830381600087803b158015611b9b57600080fd5b505af1158015611baf573d6000803e3d6000fd5b505060405163a22cb46560e01b81526001600160a01b038a16925063a22cb46591506117fd908b90600090600401613867565b611bea612959565b611bf26129b8565b866001600160a01b0316631852b3836040518163ffffffff1660e01b8152600401602060405180830381865afa158015611c30573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c549190613488565b611cd45760405162461bcd60e51b815260206004820152604560248201527f5a69766f6544414f3a3a70756c6c4d756c746945524337323128292021494c6f60448201527f636b65725f44414f286c6f636b6572292e63616e50756c6c4d756c7469455243606482015264373231282960d81b608482015260a401610445565b848314611d485760405162461bcd60e51b815260206004820152603c60248201527f5a69766f6544414f3a3a70756c6c4d756c74694552433732312829206173736560448201527b0e8e65cd8cadccee8d040427a40e8ded6cadc92c8e65cd8cadccee8d60231b6064820152608401610445565b828114611dba5760405162461bcd60e51b815260206004820152603a60248201527f5a69766f6544414f3a3a70756c6c4d756c7469455243373231282920746f6b656044820152790dc92c8e65cd8cadccee8d040427a40c8c2e8c25cd8cadccee8d60331b6064820152608401610445565b60005b85811015611e7357848482818110611dd757611dd76134aa565b90506020020135878783818110611df057611df06134aa565b9050602002016020810190611e05919061309c565b6001600160a01b0316896001600160a01b0316600080516020613955833981519152868686818110611e3957611e396134aa565b9050602002810190611e4b91906134c0565b604051611e5992919061373e565b60405180910390a480611e6b81613568565b915050611dbd565b5060405163057a61d160e21b81526001600160a01b038816906315e98744906106259089908990899089908990899060040161368d565b6000546001600160a01b031690565b611ec1612959565b611ec96129b8565b846001600160a01b0316633c1172446040518163ffffffff1660e01b8152600401602060405180830381865afa158015611f07573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f2b9190613488565b611f9b5760405162461bcd60e51b815260206004820152603b60248201527f5a69766f6544414f3a3a70756c6c45524337323128292021494c6f636b65725f60448201527a44414f286c6f636b6572292e63616e50756c6c455243373231282960281b6064820152608401610445565b82846001600160a01b0316866001600160a01b03166000805160206139558339815191528585604051611fcf92919061373e565b60405180910390a460405163090290bb60e11b81526001600160a01b0386169063120521769061200990879087908790879060040161376b565b600060405180830381600087803b15801561202357600080fd5b505af1158015612037573d6000803e3d6000fd5b5050505061105460018055565b61204c612959565b6120546129b8565b846001600160a01b0316633eda81ad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612092573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120b69190613488565b6121245760405162461bcd60e51b815260206004820152603960248201527f5a69766f6544414f3a3a70756c6c4d756c746928292021494c6f636b65725f44604482015278414f286c6f636b6572292e63616e50756c6c4d756c7469282960381b6064820152608401610445565b82811461218e5760405162461bcd60e51b815260206004820152603260248201527f5a69766f6544414f3a3a70756c6c4d756c74692829206173736574732e6c656e6044820152710cee8d040427a40c8c2e8c25cd8cadccee8d60731b6064820152608401610445565b60005b8381101561222e578484828181106121ab576121ab6134aa565b90506020020160208101906121c0919061309c565b6001600160a01b0316866001600160a01b03166000805160206139958339815191528585858181106121f4576121f46134aa565b905060200281019061220691906134c0565b60405161221492919061373e565b60405180910390a38061222681613568565b915050612191565b50604051630645961d60e21b81526001600160a01b03861690631916587490612009908790879087908790600401613882565b612269612959565b6122716129b8565b836001600160a01b031663215cccdd6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156122af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122d39190613488565b6123375760405162461bcd60e51b815260206004820152602f60248201527f5a69766f6544414f3a3a70756c6c28292021494c6f636b65725f44414f286c6f60448201526e636b6572292e63616e50756c6c282960881b6064820152608401610445565b826001600160a01b0316846001600160a01b0316600080516020613995833981519152848460405161236a92919061373e565b60405180910390a360405163cd45e1fb60e01b81526001600160a01b0385169063cd45e1fb906123a2908690869086906004016138a9565b600060405180830381600087803b1580156123bc57600080fd5b505af11580156123d0573d6000803e3d6000fd5b505050506123dd60018055565b50505050565b6123eb612959565b6123f36129b8565b604051630bb18f5f60e21b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690632ec63d7c9061243f908890600401612f91565b602060405180830381865afa15801561245c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124809190613488565b6124ee5760405162461bcd60e51b815260206004820152603960248201527f5a69766f6544414f3a3a7075736828292021495a69766f65476c6f62616c735f60448201527844414f2847424c292e69734c6f636b6572286c6f636b65722960381b6064820152608401610445565b846001600160a01b031663e7f446296040518163ffffffff1660e01b8152600401602060405180830381865afa15801561252c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125509190613488565b6125b45760405162461bcd60e51b815260206004820152602f60248201527f5a69766f6544414f3a3a7075736828292021494c6f636b65725f44414f286c6f60448201526e636b6572292e63616e50757368282960881b6064820152608401610445565b836001600160a01b0316856001600160a01b03166000805160206139b58339815191528585856040516125e99392919061352f565b60405180910390a36126056001600160a01b0385168685612a11565b604051632118ab1960e11b81526001600160a01b0386169063423156329061263790879087908790879060040161376b565b600060405180830381600087803b15801561265157600080fd5b505af1158015612665573d6000803e3d6000fd5b5050604051636eb1769f60e11b8152600092506001600160a01b038716915063dd62ed3e9061269a9030908a906004016136d6565b602060405180830381865afa1580156126b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126db91906136f0565b111561104b5761104b85856001600160a01b031663dd62ed3e30896040518363ffffffff1660e01b81526004016127139291906136d6565b602060405180830381865afa158015612730573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061275491906136f0565b6001600160a01b0387169190612ae5565b61276d612959565b6127756129b8565b846001600160a01b03166364c777356040518163ffffffff1660e01b8152600401602060405180830381865afa1580156127b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127d79190613488565b6128495760405162461bcd60e51b815260206004820152603d60248201527f5a69766f6544414f3a3a70756c6c5061727469616c28292021494c6f636b657260448201527f5f44414f286c6f636b6572292e63616e50756c6c5061727469616c28290000006064820152608401610445565b836001600160a01b0316856001600160a01b031660008051602061397583398151915285858560405161287e9392919061352f565b60405180910390a360405163d8f2a78b60e01b81526001600160a01b0386169063d8f2a78b9061200990879087908790879060040161376b565b6128c0612959565b600054600160a01b900460ff16156128ea5760405162461bcd60e51b815260040161044590613709565b6001600160a01b0381166129505760405162461bcd60e51b815260206004820152603960248201526000805160206139d58339815191526044820152782829206e65774f776e6572203d3d206164647265737328302960381b6064820152608401610445565b610ce581612be1565b33612962611eaa565b6001600160a01b03161461161e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610445565b600260015403612a0a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610445565b6002600155565b600081846001600160a01b031663dd62ed3e30866040518363ffffffff1660e01b8152600401612a429291906136d6565b602060405180830381865afa158015612a5f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a8391906136f0565b612a8d91906138ce565b90506123dd8463095ea7b360e01b8584604051602401612aae929190613752565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152612c31565b604051636eb1769f60e11b81526000906001600160a01b0385169063dd62ed3e90612b1690309087906004016136d6565b602060405180830381865afa158015612b33573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b5791906136f0565b905081811015612bbb5760405162461bcd60e51b815260206004820152602960248201527f5361666545524332303a2064656372656173656420616c6c6f77616e63652062604482015268656c6f77207a65726f60b81b6064820152608401610445565b6040518282039061105490869063095ea7b360e01b90612aae9088908690602401613752565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000612c86826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612d089092919063ffffffff16565b805190915015612d035780806020019051810190612ca49190613488565b612d035760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610445565b505050565b606061034d848460008585600080866001600160a01b03168587604051612d2f9190613905565b60006040518083038185875af1925050503d8060008114612d6c576040519150601f19603f3d011682016040523d82523d6000602084013e612d71565b606091505b5091509150612d8287838387612d8d565b979650505050505050565b60608315612dfc578251600003612df5576001600160a01b0385163b612df55760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610445565b508161034d565b61034d8383815115612e115781518083602001fd5b8060405162461bcd60e51b81526004016104459190613921565b600060208284031215612e3d57600080fd5b81356001600160e01b031981168114612e5557600080fd5b9392505050565b6001600160a01b0381168114610ce557600080fd5b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715612eaf57612eaf612e71565b604052919050565b600082601f830112612ec857600080fd5b81356001600160401b03811115612ee157612ee1612e71565b612ef4601f8201601f1916602001612e87565b818152846020838601011115612f0957600080fd5b816020850160208301376000918101602001919091529392505050565b60008060008060808587031215612f3c57600080fd5b8435612f4781612e5c565b93506020850135612f5781612e5c565b92506040850135915060608501356001600160401b03811115612f7957600080fd5b612f8587828801612eb7565b91505092959194509250565b6001600160a01b0391909116815260200190565b60008083601f840112612fb757600080fd5b5081356001600160401b03811115612fce57600080fd5b6020830191508360208260051b8501011115612fe957600080fd5b9250929050565b60008060008060008060006080888a03121561300b57600080fd5b873561301681612e5c565b965060208801356001600160401b038082111561303257600080fd5b61303e8b838c01612fa5565b909850965060408a013591508082111561305757600080fd5b6130638b838c01612fa5565b909650945060608a013591508082111561307c57600080fd5b506130898a828b01612fa5565b989b979a50959850939692959293505050565b6000602082840312156130ae57600080fd5b8135612e5581612e5c565b60008083601f8401126130cb57600080fd5b5081356001600160401b038111156130e257600080fd5b602083019150836020828501011115612fe957600080fd5b60008060008060006080868803121561311257600080fd5b853561311d81612e5c565b9450602086013561312d81612e5c565b93506040860135925060608601356001600160401b0381111561314f57600080fd5b61315b888289016130b9565b969995985093965092949392505050565b60008060008060008060008060a0898b03121561318857600080fd5b883561319381612e5c565b975060208901356131a381612e5c565b965060408901356001600160401b03808211156131bf57600080fd5b6131cb8c838d01612fa5565b909850965060608b01359150808211156131e457600080fd5b6131f08c838d01612fa5565b909650945060808b013591508082111561320957600080fd5b506132168b828c016130b9565b999c989b5096995094979396929594505050565b60008060008060006060868803121561324257600080fd5b853561324d81612e5c565b945060208601356001600160401b038082111561326957600080fd5b61327589838a01612fa5565b9096509450604088013591508082111561328e57600080fd5b5061315b88828901612fa5565b600082601f8301126132ac57600080fd5b813560206001600160401b038211156132c7576132c7612e71565b8160051b6132d6828201612e87565b92835284810182019282810190878511156132f057600080fd5b83870192505b84831015612d82578235825291830191908301906132f6565b600080600080600060a0868803121561332757600080fd5b853561333281612e5c565b9450602086013561334281612e5c565b935060408601356001600160401b038082111561335e57600080fd5b61336a89838a0161329b565b9450606088013591508082111561338057600080fd5b61338c89838a0161329b565b935060808801359150808211156133a257600080fd5b506133af88828901612eb7565b9150509295509295909350565b600080600080606085870312156133d257600080fd5b84356133dd81612e5c565b935060208501356133ed81612e5c565b925060408501356001600160401b0381111561340857600080fd5b613414878288016130b9565b95989497509550505050565b600080600080600060a0868803121561343857600080fd5b853561344381612e5c565b9450602086013561345381612e5c565b9350604086013592506060860135915060808601356001600160401b0381111561347c57600080fd5b6133af88828901612eb7565b60006020828403121561349a57600080fd5b81518015158114612e5557600080fd5b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126134d757600080fd5b8301803591506001600160401b038211156134f157600080fd5b602001915036819003821315612fe957600080fd5b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b838152604060208201526000613549604083018486613506565b95945050505050565b634e487b7160e01b600052601160045260246000fd5b60006001820161357a5761357a613552565b5060010190565b8183526000602080850194508260005b858110156135bf5781356135a481612e5c565b6001600160a01b031687529582019590820190600101613591565b509495945050505050565b81835260006001600160fb1b038311156135e357600080fd5b8260051b80836020870137939093016020019392505050565b81835260006020808501808196508560051b810191508460005b878110156136805782840389528135601e1988360301811261363757600080fd5b870185810190356001600160401b0381111561365257600080fd5b80360382131561366157600080fd5b61366c868284613506565b9a87019a9550505090840190600101613616565b5091979650505050505050565b6060815260006136a160608301888a613581565b82810360208401526136b48187896135ca565b905082810360408401526136c98185876135fc565b9998505050505050505050565b6001600160a01b0392831681529116602082015260400190565b60006020828403121561370257600080fd5b5051919050565b6020808252818101527f4f776e61626c654c6f636b65643a3a756e6c6f636b65642829206c6f636b6564604082015260600190565b60208152600061034d602083018486613506565b6001600160a01b03929092168252602082015260400190565b60018060a01b0385168152836020820152606060408201526000613793606083018486613506565b9695505050505050565b6000602082840312156137af57600080fd5b8151612e5581612e5c565b634e487b7160e01b600052600160045260246000fd5b6060815260006137e460608301888a6135ca565b82810360208401526137f78187896135ca565b905082810360408401526136c9818587613506565b6001600160a01b0388168152608060208201819052600090613831908301888a6135ca565b82810360408401526138448187896135ca565b90508281036060840152613859818587613506565b9a9950505050505050505050565b6001600160a01b039290921682521515602082015260400190565b604081526000613896604083018688613581565b8281036020840152612d828185876135fc565b6001600160a01b03841681526040602082018190526000906135499083018486613506565b8082018082111561033e5761033e613552565b60005b838110156138fc5781810151838201526020016138e4565b50506000910152565b600082516139178184602087016138e1565b9190910192915050565b60208152600082518060208401526139408160408501602087016138e1565b601f01601f1916919091016040019291505056fe16c8e5e1e7bd6ca58a21983a6d3e782beecebb9a3a96b8045315114442f1e2681194c210bf0fe9671e3a2b530c454475d11448b442cc22aa0771ad587dc42dbc36e2c0c53dfd30fe9dd5d20a904abfa42a5b6386c540652604d835a855bf8c4f0f1f7d4ae7fe91e4751ad2feb1831c86c59e214c817fde6b93cf8f042ba6490d4f776e61626c654c6f636b65643a3a7472616e736665724f776e657273686970cceb6f80504f6106e3c6300bbfad14fee293050b503ea55c5d0e6bea39771749a26469706673582212201692b70f2c1445afd98d6846ee3aa63c4f329922377eb5e28892846be4357f4664736f6c63430008110033000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da66
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101125760003560e01c806301ffc9a714610117578063150b7a021461013f5780633ce8d4321461016b578063406df6bb1461019f5780634828e137146101b457806358289c7e146101c757806370240769146101da57806370defbad146101ed578063715018a61461020057806374c011b11461020857806386595bb01461021b5780638a0008361461022e5780638da5cb5b14610241578063aeb3408714610249578063bbe10bad1461025c578063bc197c811461026f578063c60173131461028e578063c73f43e7146102a1578063cf309012146102b4578063cf57f922146102c8578063f23a6e61146102db578063f2fde38b146102fa575b600080fd5b61012a610125366004612e2b565b61030d565b60405190151581526020015b60405180910390f35b61015261014d366004612f26565b610344565b6040516001600160e01b03199091168152602001610136565b6101927f000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da6681565b6040516101369190612f91565b6101b26101ad366004612ff0565b610355565b005b6101b26101c2366004612ff0565b610669565b6101b26101d536600461309c565b610c2b565b6101b26101e83660046130fa565b610ce8565b6101b26101fb366004612ff0565b61105b565b6101b26115e2565b6101b261021636600461316c565b611620565b6101b261022936600461316c565b611842565b6101b261023c366004612ff0565b611be2565b610192611eaa565b6101b26102573660046130fa565b611eb9565b6101b261026a36600461322a565b612044565b61015261027d36600461330f565b63bc197c8160e01b95945050505050565b6101b261029c3660046133bc565b612261565b6101b26102af3660046130fa565b6123e3565b60005461012a90600160a01b900460ff1681565b6101b26102d63660046130fa565b612765565b6101526102e9366004613420565b63f23a6e6160e01b95945050505050565b6101b261030836600461309c565b6128b8565b60006001600160e01b03198216630271189760e51b148061033e57506301ffc9a760e01b6001600160e01b03198316145b92915050565b630a85bd0160e11b5b949350505050565b61035d612959565b6103656129b8565b866001600160a01b0316632f08d48b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156103a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103c79190613488565b61044e5760405162461bcd60e51b815260206004820152604760248201527f5a69766f6544414f3a3a70756c6c4d756c74695061727469616c28292021494c60448201527f6f636b65725f44414f286c6f636b6572292e63616e50756c6c4d756c74695061606482015266727469616c282960c81b608482015260a4015b60405180910390fd5b8483146104c25760405162461bcd60e51b815260206004820152603c60248201527f5a69766f6544414f3a3a70756c6c4d756c74695061727469616c28292061737360448201527b0cae8e65cd8cadccee8d040427a40c2dadeeadce8e65cd8cadccee8d60231b6064820152608401610445565b8281146105345760405162461bcd60e51b815260206004820152603a60248201527f5a69766f6544414f3a3a70756c6c4d756c74695061727469616c282920616d6f6044820152790eadce8e65cd8cadccee8d040427a40c8c2e8c25cd8cadccee8d60331b6064820152608401610445565b60005b858110156105ee57868682818110610551576105516134aa565b9050602002016020810190610566919061309c565b6001600160a01b0316886001600160a01b031660008051602061397583398151915287878581811061059a5761059a6134aa565b905060200201358686868181106105b3576105b36134aa565b90506020028101906105c591906134c0565b6040516105d49392919061352f565b60405180910390a3806105e681613568565b915050610537565b506040516334a12be560e21b81526001600160a01b0388169063d284af94906106259089908990899089908990899060040161368d565b600060405180830381600087803b15801561063f57600080fd5b505af1158015610653573d6000803e3d6000fd5b5050505061066060018055565b50505050505050565b610671612959565b6106796129b8565b604051630bb18f5f60e21b81526001600160a01b037f000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da661690632ec63d7c906106c5908a90600401612f91565b602060405180830381865afa1580156106e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107069190613488565b6107785760405162461bcd60e51b815260206004820152603e60248201527f5a69766f6544414f3a3a707573684d756c746928292021495a69766f65476c6f60448201527f62616c735f44414f2847424c292e69734c6f636b6572286c6f636b65722900006064820152608401610445565b8483146107e55760405162461bcd60e51b815260206004820152603560248201527f5a69766f6544414f3a3a707573684d756c74692829206173736574732e6c656e6044820152740cee8d040427a40c2dadeeadce8e65cd8cadccee8d605b1b6064820152608401610445565b8281146108505760405162461bcd60e51b815260206004820152603360248201527f5a69766f6544414f3a3a707573684d756c7469282920616d6f756e74732e6c656044820152720dccee8d040427a40c8c2e8c25cd8cadccee8d606b1b6064820152608401610445565b866001600160a01b031663a4a3e79d6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561088e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108b29190613488565b6109205760405162461bcd60e51b815260206004820152603960248201527f5a69766f6544414f3a3a707573684d756c746928292021494c6f636b65725f44604482015278414f286c6f636b6572292e63616e507573684d756c7469282960381b6064820152608401610445565b60005b85811015610a2e5761097f88868684818110610941576109416134aa565b9050602002013589898581811061095a5761095a6134aa565b905060200201602081019061096f919061309c565b6001600160a01b03169190612a11565b868682818110610991576109916134aa565b90506020020160208101906109a6919061309c565b6001600160a01b0316886001600160a01b03166000805160206139b58339815191528787858181106109da576109da6134aa565b905060200201358686868181106109f3576109f36134aa565b9050602002810190610a0591906134c0565b604051610a149392919061352f565b60405180910390a380610a2681613568565b915050610923565b50604051636a7ab9af60e01b81526001600160a01b03881690636a7ab9af90610a659089908990899089908990899060040161368d565b600060405180830381600087803b158015610a7f57600080fd5b505af1158015610a93573d6000803e3d6000fd5b5050505060005b85811015610c21576000878783818110610ab657610ab66134aa565b9050602002016020810190610acb919061309c565b6001600160a01b031663dd62ed3e308b6040518363ffffffff1660e01b8152600401610af89291906136d6565b602060405180830381865afa158015610b15573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b3991906136f0565b1115610c0f57610c0f88888884818110610b5557610b556134aa565b9050602002016020810190610b6a919061309c565b6001600160a01b031663dd62ed3e308c6040518363ffffffff1660e01b8152600401610b979291906136d6565b602060405180830381865afa158015610bb4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bd891906136f0565b898985818110610bea57610bea6134aa565b9050602002016020810190610bff919061309c565b6001600160a01b03169190612ae5565b80610c1981613568565b915050610a9a565b5061066060018055565b610c33612959565b600054600160a01b900460ff1615610c5d5760405162461bcd60e51b815260040161044590613709565b6001600160a01b038116610cc9576040805162461bcd60e51b81526020600482015260248101919091526000805160206139d583398151915260448201527f416e644c6f636b2829206e65774f776e6572203d3d20616464726573732830296064820152608401610445565b6000805460ff60a01b1916600160a01b179055610ce581612be1565b50565b610cf0612959565b610cf86129b8565b604051630bb18f5f60e21b81526001600160a01b037f000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da661690632ec63d7c90610d44908890600401612f91565b602060405180830381865afa158015610d61573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d859190613488565b610df75760405162461bcd60e51b815260206004820152603f60248201527f5a69766f6544414f3a3a7075736845524337323128292021495a69766f65476c60448201527f6f62616c735f44414f2847424c292e69734c6f636b6572286c6f636b657229006064820152608401610445565b846001600160a01b0316638b648ee26040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e35573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e599190613488565b610ec95760405162461bcd60e51b815260206004820152603b60248201527f5a69766f6544414f3a3a7075736845524337323128292021494c6f636b65725f60448201527a44414f286c6f636b6572292e63616e50757368455243373231282960281b6064820152608401610445565b82846001600160a01b0316866001600160a01b03166000805160206139f58339815191528585604051610efd92919061373e565b60405180910390a460405163095ea7b360e01b81526001600160a01b0385169063095ea7b390610f339088908790600401613752565b600060405180830381600087803b158015610f4d57600080fd5b505af1158015610f61573d6000803e3d6000fd5b5050604051631d9389e960e01b81526001600160a01b0388169250631d9389e99150610f9790879087908790879060040161376b565b600060405180830381600087803b158015610fb157600080fd5b505af1158015610fc5573d6000803e3d6000fd5b505060405163020604bf60e21b815260048101869052600092506001600160a01b038716915063081812fc90602401602060405180830381865afa158015611011573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611035919061379d565b6001600160a01b03161461104b5761104b6137ba565b61105460018055565b5050505050565b611063612959565b61106b6129b8565b604051630bb18f5f60e21b81526001600160a01b037f000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da661690632ec63d7c906110b7908a90600401612f91565b602060405180830381865afa1580156110d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110f89190613488565b6111785760405162461bcd60e51b8152602060048201526044602482018190527f5a69766f6544414f3a3a707573684d756c746945524337323128292021495a69908201527f766f65476c6f62616c735f44414f2847424c292e69734c6f636b6572286c6f636064820152636b65722960e01b608482015260a401610445565b8483146111ec5760405162461bcd60e51b815260206004820152603c60248201527f5a69766f6544414f3a3a707573684d756c74694552433732312829206173736560448201527b0e8e65cd8cadccee8d040427a40e8ded6cadc92c8e65cd8cadccee8d60231b6064820152608401610445565b82811461125e5760405162461bcd60e51b815260206004820152603a60248201527f5a69766f6544414f3a3a707573684d756c7469455243373231282920746f6b656044820152790dc92c8e65cd8cadccee8d040427a40c8c2e8c25cd8cadccee8d60331b6064820152608401610445565b866001600160a01b031663dd913bdb6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561129c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112c09190613488565b6113405760405162461bcd60e51b815260206004820152604560248201527f5a69766f6544414f3a3a707573684d756c746945524337323128292021494c6f60448201527f636b65725f44414f286c6f636b6572292e63616e507573684d756c7469455243606482015264373231282960d81b608482015260a401610445565b60005b858110156114975786868281811061135d5761135d6134aa565b9050602002016020810190611372919061309c565b6001600160a01b031663095ea7b389878785818110611393576113936134aa565b905060200201356040518363ffffffff1660e01b81526004016113b7929190613752565b600060405180830381600087803b1580156113d157600080fd5b505af11580156113e5573d6000803e3d6000fd5b505050508484828181106113fb576113fb6134aa565b90506020020135878783818110611414576114146134aa565b9050602002016020810190611429919061309c565b6001600160a01b0316896001600160a01b03166000805160206139f583398151915286868681811061145d5761145d6134aa565b905060200281019061146f91906134c0565b60405161147d92919061373e565b60405180910390a48061148f81613568565b915050611343565b506040516302e24af360e61b81526001600160a01b0388169063b892bcc0906114ce9089908990899089908990899060040161368d565b600060405180830381600087803b1580156114e857600080fd5b505af11580156114fc573d6000803e3d6000fd5b5050505060005b85811015610c2157600087878381811061151f5761151f6134aa565b9050602002016020810190611534919061309c565b6001600160a01b031663081812fc878785818110611554576115546134aa565b905060200201356040518263ffffffff1660e01b815260040161157991815260200190565b602060405180830381865afa158015611596573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115ba919061379d565b6001600160a01b0316146115d0576115d06137ba565b806115da81613568565b915050611503565b6115ea612959565b600054600160a01b900460ff16156116145760405162461bcd60e51b815260040161044590613709565b61161e6000612be1565b565b611628612959565b6116306129b8565b876001600160a01b031663b0607cf86040518163ffffffff1660e01b8152600401602060405180830381865afa15801561166e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116929190613488565b6117045760405162461bcd60e51b815260206004820152603d60248201527f5a69766f6544414f3a3a70756c6c4552433131353528292021494c6f636b657260448201527f5f44414f286c6f636b6572292e63616e50756c6c4552433131353528290000006064820152608401610445565b8483146117705760405162461bcd60e51b815260206004820152603460248201527f5a69766f6544414f3a3a70756c6c455243313135352829206964732e6c656e676044820152730e8d040427a40c2dadeeadce8e65cd8cadccee8d60631b6064820152608401610445565b866001600160a01b0316886001600160a01b03167fb84de6f38f3772af791fe710e181e9fae3fdfbe871593408d624cefdc818e5e48888888888886040516117bd969594939291906137d0565b60405180910390a3604051630845640360e31b81526001600160a01b0389169063422b2018906117fd908a908a908a908a908a908a908a9060040161380c565b600060405180830381600087803b15801561181757600080fd5b505af115801561182b573d6000803e3d6000fd5b5050505061183860018055565b5050505050505050565b61184a612959565b6118526129b8565b604051630bb18f5f60e21b81526001600160a01b037f000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da661690632ec63d7c9061189e908b90600401612f91565b602060405180830381865afa1580156118bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118df9190613488565b611953576040805162461bcd60e51b81526020600482015260248101919091527f5a69766f6544414f3a3a707573684552433131353528292021495a69766f654760448201527f6c6f62616c735f44414f2847424c292e69734c6f636b6572286c6f636b6572296064820152608401610445565b876001600160a01b031663cf10b7ab6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611991573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119b59190613488565b611a275760405162461bcd60e51b815260206004820152603d60248201527f5a69766f6544414f3a3a707573684552433131353528292021494c6f636b657260448201527f5f44414f286c6f636b6572292e63616e507573684552433131353528290000006064820152608401610445565b848314611a935760405162461bcd60e51b815260206004820152603460248201527f5a69766f6544414f3a3a70757368455243313135352829206964732e6c656e676044820152730e8d040427a40c2dadeeadce8e65cd8cadccee8d60631b6064820152608401610445565b866001600160a01b0316886001600160a01b03167f57fb18048adcacd0dbc30815547d4f9d7c564e0e63dfa2a2b27999bcf941bbe0888888888888604051611ae0969594939291906137d0565b60405180910390a360405163a22cb46560e01b81526001600160a01b0388169063a22cb46590611b17908b90600190600401613867565b600060405180830381600087803b158015611b3157600080fd5b505af1158015611b45573d6000803e3d6000fd5b505060405163fd76f59d60e01b81526001600160a01b038b16925063fd76f59d9150611b81908a908a908a908a908a908a908a9060040161380c565b600060405180830381600087803b158015611b9b57600080fd5b505af1158015611baf573d6000803e3d6000fd5b505060405163a22cb46560e01b81526001600160a01b038a16925063a22cb46591506117fd908b90600090600401613867565b611bea612959565b611bf26129b8565b866001600160a01b0316631852b3836040518163ffffffff1660e01b8152600401602060405180830381865afa158015611c30573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c549190613488565b611cd45760405162461bcd60e51b815260206004820152604560248201527f5a69766f6544414f3a3a70756c6c4d756c746945524337323128292021494c6f60448201527f636b65725f44414f286c6f636b6572292e63616e50756c6c4d756c7469455243606482015264373231282960d81b608482015260a401610445565b848314611d485760405162461bcd60e51b815260206004820152603c60248201527f5a69766f6544414f3a3a70756c6c4d756c74694552433732312829206173736560448201527b0e8e65cd8cadccee8d040427a40e8ded6cadc92c8e65cd8cadccee8d60231b6064820152608401610445565b828114611dba5760405162461bcd60e51b815260206004820152603a60248201527f5a69766f6544414f3a3a70756c6c4d756c7469455243373231282920746f6b656044820152790dc92c8e65cd8cadccee8d040427a40c8c2e8c25cd8cadccee8d60331b6064820152608401610445565b60005b85811015611e7357848482818110611dd757611dd76134aa565b90506020020135878783818110611df057611df06134aa565b9050602002016020810190611e05919061309c565b6001600160a01b0316896001600160a01b0316600080516020613955833981519152868686818110611e3957611e396134aa565b9050602002810190611e4b91906134c0565b604051611e5992919061373e565b60405180910390a480611e6b81613568565b915050611dbd565b5060405163057a61d160e21b81526001600160a01b038816906315e98744906106259089908990899089908990899060040161368d565b6000546001600160a01b031690565b611ec1612959565b611ec96129b8565b846001600160a01b0316633c1172446040518163ffffffff1660e01b8152600401602060405180830381865afa158015611f07573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f2b9190613488565b611f9b5760405162461bcd60e51b815260206004820152603b60248201527f5a69766f6544414f3a3a70756c6c45524337323128292021494c6f636b65725f60448201527a44414f286c6f636b6572292e63616e50756c6c455243373231282960281b6064820152608401610445565b82846001600160a01b0316866001600160a01b03166000805160206139558339815191528585604051611fcf92919061373e565b60405180910390a460405163090290bb60e11b81526001600160a01b0386169063120521769061200990879087908790879060040161376b565b600060405180830381600087803b15801561202357600080fd5b505af1158015612037573d6000803e3d6000fd5b5050505061105460018055565b61204c612959565b6120546129b8565b846001600160a01b0316633eda81ad6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612092573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120b69190613488565b6121245760405162461bcd60e51b815260206004820152603960248201527f5a69766f6544414f3a3a70756c6c4d756c746928292021494c6f636b65725f44604482015278414f286c6f636b6572292e63616e50756c6c4d756c7469282960381b6064820152608401610445565b82811461218e5760405162461bcd60e51b815260206004820152603260248201527f5a69766f6544414f3a3a70756c6c4d756c74692829206173736574732e6c656e6044820152710cee8d040427a40c8c2e8c25cd8cadccee8d60731b6064820152608401610445565b60005b8381101561222e578484828181106121ab576121ab6134aa565b90506020020160208101906121c0919061309c565b6001600160a01b0316866001600160a01b03166000805160206139958339815191528585858181106121f4576121f46134aa565b905060200281019061220691906134c0565b60405161221492919061373e565b60405180910390a38061222681613568565b915050612191565b50604051630645961d60e21b81526001600160a01b03861690631916587490612009908790879087908790600401613882565b612269612959565b6122716129b8565b836001600160a01b031663215cccdd6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156122af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122d39190613488565b6123375760405162461bcd60e51b815260206004820152602f60248201527f5a69766f6544414f3a3a70756c6c28292021494c6f636b65725f44414f286c6f60448201526e636b6572292e63616e50756c6c282960881b6064820152608401610445565b826001600160a01b0316846001600160a01b0316600080516020613995833981519152848460405161236a92919061373e565b60405180910390a360405163cd45e1fb60e01b81526001600160a01b0385169063cd45e1fb906123a2908690869086906004016138a9565b600060405180830381600087803b1580156123bc57600080fd5b505af11580156123d0573d6000803e3d6000fd5b505050506123dd60018055565b50505050565b6123eb612959565b6123f36129b8565b604051630bb18f5f60e21b81526001600160a01b037f000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da661690632ec63d7c9061243f908890600401612f91565b602060405180830381865afa15801561245c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124809190613488565b6124ee5760405162461bcd60e51b815260206004820152603960248201527f5a69766f6544414f3a3a7075736828292021495a69766f65476c6f62616c735f60448201527844414f2847424c292e69734c6f636b6572286c6f636b65722960381b6064820152608401610445565b846001600160a01b031663e7f446296040518163ffffffff1660e01b8152600401602060405180830381865afa15801561252c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125509190613488565b6125b45760405162461bcd60e51b815260206004820152602f60248201527f5a69766f6544414f3a3a7075736828292021494c6f636b65725f44414f286c6f60448201526e636b6572292e63616e50757368282960881b6064820152608401610445565b836001600160a01b0316856001600160a01b03166000805160206139b58339815191528585856040516125e99392919061352f565b60405180910390a36126056001600160a01b0385168685612a11565b604051632118ab1960e11b81526001600160a01b0386169063423156329061263790879087908790879060040161376b565b600060405180830381600087803b15801561265157600080fd5b505af1158015612665573d6000803e3d6000fd5b5050604051636eb1769f60e11b8152600092506001600160a01b038716915063dd62ed3e9061269a9030908a906004016136d6565b602060405180830381865afa1580156126b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126db91906136f0565b111561104b5761104b85856001600160a01b031663dd62ed3e30896040518363ffffffff1660e01b81526004016127139291906136d6565b602060405180830381865afa158015612730573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061275491906136f0565b6001600160a01b0387169190612ae5565b61276d612959565b6127756129b8565b846001600160a01b03166364c777356040518163ffffffff1660e01b8152600401602060405180830381865afa1580156127b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127d79190613488565b6128495760405162461bcd60e51b815260206004820152603d60248201527f5a69766f6544414f3a3a70756c6c5061727469616c28292021494c6f636b657260448201527f5f44414f286c6f636b6572292e63616e50756c6c5061727469616c28290000006064820152608401610445565b836001600160a01b0316856001600160a01b031660008051602061397583398151915285858560405161287e9392919061352f565b60405180910390a360405163d8f2a78b60e01b81526001600160a01b0386169063d8f2a78b9061200990879087908790879060040161376b565b6128c0612959565b600054600160a01b900460ff16156128ea5760405162461bcd60e51b815260040161044590613709565b6001600160a01b0381166129505760405162461bcd60e51b815260206004820152603960248201526000805160206139d58339815191526044820152782829206e65774f776e6572203d3d206164647265737328302960381b6064820152608401610445565b610ce581612be1565b33612962611eaa565b6001600160a01b03161461161e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610445565b600260015403612a0a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610445565b6002600155565b600081846001600160a01b031663dd62ed3e30866040518363ffffffff1660e01b8152600401612a429291906136d6565b602060405180830381865afa158015612a5f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a8391906136f0565b612a8d91906138ce565b90506123dd8463095ea7b360e01b8584604051602401612aae929190613752565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152612c31565b604051636eb1769f60e11b81526000906001600160a01b0385169063dd62ed3e90612b1690309087906004016136d6565b602060405180830381865afa158015612b33573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b5791906136f0565b905081811015612bbb5760405162461bcd60e51b815260206004820152602960248201527f5361666545524332303a2064656372656173656420616c6c6f77616e63652062604482015268656c6f77207a65726f60b81b6064820152608401610445565b6040518282039061105490869063095ea7b360e01b90612aae9088908690602401613752565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000612c86826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612d089092919063ffffffff16565b805190915015612d035780806020019051810190612ca49190613488565b612d035760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610445565b505050565b606061034d848460008585600080866001600160a01b03168587604051612d2f9190613905565b60006040518083038185875af1925050503d8060008114612d6c576040519150601f19603f3d011682016040523d82523d6000602084013e612d71565b606091505b5091509150612d8287838387612d8d565b979650505050505050565b60608315612dfc578251600003612df5576001600160a01b0385163b612df55760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610445565b508161034d565b61034d8383815115612e115781518083602001fd5b8060405162461bcd60e51b81526004016104459190613921565b600060208284031215612e3d57600080fd5b81356001600160e01b031981168114612e5557600080fd5b9392505050565b6001600160a01b0381168114610ce557600080fd5b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715612eaf57612eaf612e71565b604052919050565b600082601f830112612ec857600080fd5b81356001600160401b03811115612ee157612ee1612e71565b612ef4601f8201601f1916602001612e87565b818152846020838601011115612f0957600080fd5b816020850160208301376000918101602001919091529392505050565b60008060008060808587031215612f3c57600080fd5b8435612f4781612e5c565b93506020850135612f5781612e5c565b92506040850135915060608501356001600160401b03811115612f7957600080fd5b612f8587828801612eb7565b91505092959194509250565b6001600160a01b0391909116815260200190565b60008083601f840112612fb757600080fd5b5081356001600160401b03811115612fce57600080fd5b6020830191508360208260051b8501011115612fe957600080fd5b9250929050565b60008060008060008060006080888a03121561300b57600080fd5b873561301681612e5c565b965060208801356001600160401b038082111561303257600080fd5b61303e8b838c01612fa5565b909850965060408a013591508082111561305757600080fd5b6130638b838c01612fa5565b909650945060608a013591508082111561307c57600080fd5b506130898a828b01612fa5565b989b979a50959850939692959293505050565b6000602082840312156130ae57600080fd5b8135612e5581612e5c565b60008083601f8401126130cb57600080fd5b5081356001600160401b038111156130e257600080fd5b602083019150836020828501011115612fe957600080fd5b60008060008060006080868803121561311257600080fd5b853561311d81612e5c565b9450602086013561312d81612e5c565b93506040860135925060608601356001600160401b0381111561314f57600080fd5b61315b888289016130b9565b969995985093965092949392505050565b60008060008060008060008060a0898b03121561318857600080fd5b883561319381612e5c565b975060208901356131a381612e5c565b965060408901356001600160401b03808211156131bf57600080fd5b6131cb8c838d01612fa5565b909850965060608b01359150808211156131e457600080fd5b6131f08c838d01612fa5565b909650945060808b013591508082111561320957600080fd5b506132168b828c016130b9565b999c989b5096995094979396929594505050565b60008060008060006060868803121561324257600080fd5b853561324d81612e5c565b945060208601356001600160401b038082111561326957600080fd5b61327589838a01612fa5565b9096509450604088013591508082111561328e57600080fd5b5061315b88828901612fa5565b600082601f8301126132ac57600080fd5b813560206001600160401b038211156132c7576132c7612e71565b8160051b6132d6828201612e87565b92835284810182019282810190878511156132f057600080fd5b83870192505b84831015612d82578235825291830191908301906132f6565b600080600080600060a0868803121561332757600080fd5b853561333281612e5c565b9450602086013561334281612e5c565b935060408601356001600160401b038082111561335e57600080fd5b61336a89838a0161329b565b9450606088013591508082111561338057600080fd5b61338c89838a0161329b565b935060808801359150808211156133a257600080fd5b506133af88828901612eb7565b9150509295509295909350565b600080600080606085870312156133d257600080fd5b84356133dd81612e5c565b935060208501356133ed81612e5c565b925060408501356001600160401b0381111561340857600080fd5b613414878288016130b9565b95989497509550505050565b600080600080600060a0868803121561343857600080fd5b853561344381612e5c565b9450602086013561345381612e5c565b9350604086013592506060860135915060808601356001600160401b0381111561347c57600080fd5b6133af88828901612eb7565b60006020828403121561349a57600080fd5b81518015158114612e5557600080fd5b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126134d757600080fd5b8301803591506001600160401b038211156134f157600080fd5b602001915036819003821315612fe957600080fd5b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b838152604060208201526000613549604083018486613506565b95945050505050565b634e487b7160e01b600052601160045260246000fd5b60006001820161357a5761357a613552565b5060010190565b8183526000602080850194508260005b858110156135bf5781356135a481612e5c565b6001600160a01b031687529582019590820190600101613591565b509495945050505050565b81835260006001600160fb1b038311156135e357600080fd5b8260051b80836020870137939093016020019392505050565b81835260006020808501808196508560051b810191508460005b878110156136805782840389528135601e1988360301811261363757600080fd5b870185810190356001600160401b0381111561365257600080fd5b80360382131561366157600080fd5b61366c868284613506565b9a87019a9550505090840190600101613616565b5091979650505050505050565b6060815260006136a160608301888a613581565b82810360208401526136b48187896135ca565b905082810360408401526136c98185876135fc565b9998505050505050505050565b6001600160a01b0392831681529116602082015260400190565b60006020828403121561370257600080fd5b5051919050565b6020808252818101527f4f776e61626c654c6f636b65643a3a756e6c6f636b65642829206c6f636b6564604082015260600190565b60208152600061034d602083018486613506565b6001600160a01b03929092168252602082015260400190565b60018060a01b0385168152836020820152606060408201526000613793606083018486613506565b9695505050505050565b6000602082840312156137af57600080fd5b8151612e5581612e5c565b634e487b7160e01b600052600160045260246000fd5b6060815260006137e460608301888a6135ca565b82810360208401526137f78187896135ca565b905082810360408401526136c9818587613506565b6001600160a01b0388168152608060208201819052600090613831908301888a6135ca565b82810360408401526138448187896135ca565b90508281036060840152613859818587613506565b9a9950505050505050505050565b6001600160a01b039290921682521515602082015260400190565b604081526000613896604083018688613581565b8281036020840152612d828185876135fc565b6001600160a01b03841681526040602082018190526000906135499083018486613506565b8082018082111561033e5761033e613552565b60005b838110156138fc5781810151838201526020016138e4565b50506000910152565b600082516139178184602087016138e1565b9190910192915050565b60208152600082518060208401526139408160408501602087016138e1565b601f01601f1916919091016040019291505056fe16c8e5e1e7bd6ca58a21983a6d3e782beecebb9a3a96b8045315114442f1e2681194c210bf0fe9671e3a2b530c454475d11448b442cc22aa0771ad587dc42dbc36e2c0c53dfd30fe9dd5d20a904abfa42a5b6386c540652604d835a855bf8c4f0f1f7d4ae7fe91e4751ad2feb1831c86c59e214c817fde6b93cf8f042ba6490d4f776e61626c654c6f636b65643a3a7472616e736665724f776e657273686970cceb6f80504f6106e3c6300bbfad14fee293050b503ea55c5d0e6bea39771749a26469706673582212201692b70f2c1445afd98d6846ee3aa63c4f329922377eb5e28892846be4357f4664736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da66
-----Decoded View---------------
Arg [0] : _GBL (address): 0xEa537eB0bBcC7783bDF7c595bF9371984583dA66
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000ea537eb0bbcc7783bdf7c595bf9371984583da66
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ 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.