Address Details
contract
0x54A98062035d07517029b8B0d8D471B568E075F9
- Contract Name
- NounsAuctionHouse
- Creator
- 0x8b2f36–66963a at 0xcbf4ea–a3d51a
- Balance
- 0 CELO ( )
- Locked CELO Balance
- 0.00 CELO
- Voting CELO Balance
- 0.00 CELO
- Pending Unlocked Gold
- 0.00 CELO
- Tokens
-
Fetching tokens...
- Transactions
- 3 Transactions
- Transfers
- 1 Transfers
- Gas Used
- 545,079
- Last Balance Update
- 16205741
Transactions
Token Transfers
Tokens
Internal Transactions
Coin Balance History
Logs
Code
Read Contract
Write Contract
This contract has been verified via Sourcify.
View contract in Sourcify repository
- Contract name:
- NounsAuctionHouse
- Optimization enabled
- false
- Compiler version
- v0.8.7+commit.e28d00a7
- EVM Version
- london
- Verified at
- 2022-11-16T23:19:48.974478Z
contracts/NounsAuctionHouse.sol
// SPDX-License-Identifier: GPL-3.0 /// @title The Nouns DAO auction house /********************************* * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ * * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ * * ░░░░░░█████████░░█████████░░░ * * ░░░░░░██░░░████░░██░░░████░░░ * * ░░██████░░░████████░░░████░░░ * * ░░██░░██░░░████░░██░░░████░░░ * * ░░██░░██░░░████░░██░░░████░░░ * * ░░░░░░█████████░░█████████░░░ * * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ * * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ * *********************************/ // LICENSE // NounsAuctionHouse.sol is a modified version of Zora's AuctionHouse.sol: // https://github.com/ourzora/auction-house/blob/54a12ec1a6cf562e49f0a4917990474b11350a2d/contracts/AuctionHouse.sol // // AuctionHouse.sol source code Copyright Zora licensed under the GPL-3.0 license. // With modifications by Nounders DAO. pragma solidity ^0.8.6; import { PausableUpgradeable } from '@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol'; import { ReentrancyGuardUpgradeable } from '@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol'; import { OwnableUpgradeable } from '@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol'; import { IERC20 } from '@openzeppelin/contracts/token/ERC20/IERC20.sol'; import { INounsAuctionHouse } from './interfaces/INounsAuctionHouse.sol'; import { INounsToken } from './interfaces/INounsToken.sol'; import { IWETH } from './interfaces/IWETH.sol'; contract NounsAuctionHouse is INounsAuctionHouse, PausableUpgradeable, ReentrancyGuardUpgradeable, OwnableUpgradeable { // The Nouns ERC721 token contract INounsToken public nouns; // The address of the WETH contract address public weth; // The minimum amount of time left in an auction after a new bid is created uint256 public timeBuffer; // The minimum price accepted in an auction uint256 public reservePrice; // The minimum percentage difference between the last bid amount and the current bid uint8 public minBidIncrementPercentage; // The duration of a single auction uint256 public duration; // The active auction INounsAuctionHouse.Auction public auction; /** * @notice Initialize the auction house and base contracts, * populate configuration values, and pause the contract. * @dev This function can only be called once. */ function initialize( INounsToken _nouns, address _weth, uint256 _timeBuffer, uint256 _reservePrice, uint8 _minBidIncrementPercentage, uint256 _duration ) external initializer { __Pausable_init(); __ReentrancyGuard_init(); __Ownable_init(); _pause(); nouns = _nouns; weth = _weth; timeBuffer = _timeBuffer; reservePrice = _reservePrice; minBidIncrementPercentage = _minBidIncrementPercentage; duration = _duration; } /** * @notice Settle the current auction, mint a new Noun, and put it up for auction. */ function settleCurrentAndCreateNewAuction() external override nonReentrant whenNotPaused { _settleAuction(); _createAuction(); } /** * @notice Settle the current auction. * @dev This function can only be called when the contract is paused. */ function settleAuction() external override whenPaused nonReentrant { _settleAuction(); } /** * @notice Create a bid for a Noun, with a given amount. * @dev This contract only accepts payment in ETH. */ function createBid(uint256 nounId) external payable override nonReentrant { INounsAuctionHouse.Auction memory _auction = auction; require(_auction.nounId == nounId, 'Noun not up for auction'); require(block.timestamp < _auction.endTime, 'Auction expired'); require(msg.value >= reservePrice, 'Must send at least reservePrice'); require( msg.value >= _auction.amount + ((_auction.amount * minBidIncrementPercentage) / 100), 'Must send more than last bid by minBidIncrementPercentage amount' ); address payable lastBidder = _auction.bidder; // Refund the last bidder, if applicable if (lastBidder != address(0)) { _safeTransferETHWithFallback(lastBidder, _auction.amount); } auction.amount = msg.value; auction.bidder = payable(msg.sender); // Extend the auction if the bid was received within `timeBuffer` of the auction end time bool extended = _auction.endTime - block.timestamp < timeBuffer; if (extended) { auction.endTime = _auction.endTime = block.timestamp + timeBuffer; } emit AuctionBid(_auction.nounId, msg.sender, msg.value, extended); if (extended) { emit AuctionExtended(_auction.nounId, _auction.endTime); } } /** * @notice Pause the Nouns auction house. * @dev This function can only be called by the owner when the * contract is unpaused. While no new auctions can be started when paused, * anyone can settle an ongoing auction. */ function pause() external override onlyOwner { _pause(); } /** * @notice Unpause the Nouns auction house. * @dev This function can only be called by the owner when the * contract is paused. If required, this function will start a new auction. */ function unpause() external override onlyOwner { _unpause(); if (auction.startTime == 0 || auction.settled) { _createAuction(); } } /** * @notice Set the auction time buffer. * @dev Only callable by the owner. */ function setTimeBuffer(uint256 _timeBuffer) external override onlyOwner { timeBuffer = _timeBuffer; emit AuctionTimeBufferUpdated(_timeBuffer); } /** * @notice Set the auction reserve price. * @dev Only callable by the owner. */ function setReservePrice(uint256 _reservePrice) external override onlyOwner { reservePrice = _reservePrice; emit AuctionReservePriceUpdated(_reservePrice); } /** * @notice Set the auction minimum bid increment percentage. * @dev Only callable by the owner. */ function setMinBidIncrementPercentage(uint8 _minBidIncrementPercentage) external override onlyOwner { minBidIncrementPercentage = _minBidIncrementPercentage; emit AuctionMinBidIncrementPercentageUpdated(_minBidIncrementPercentage); } /** * @notice Create an auction. * @dev Store the auction details in the `auction` state variable and emit an AuctionCreated event. * If the mint reverts, the minter was updated without pausing this contract first. To remedy this, * catch the revert and pause this contract. */ function _createAuction() internal { try nouns.mint() returns (uint256 nounId) { uint256 startTime = block.timestamp; uint256 endTime = startTime + duration; auction = Auction({ nounId: nounId, amount: 0, startTime: startTime, endTime: endTime, bidder: payable(0), settled: false }); emit AuctionCreated(nounId, startTime, endTime); } catch Error(string memory) { _pause(); } } /** * @notice Settle an auction, finalizing the bid and paying out to the owner. * @dev If there are no bids, the Noun is burned. */ function _settleAuction() internal { INounsAuctionHouse.Auction memory _auction = auction; require(_auction.startTime != 0, "Auction hasn't begun"); require(!_auction.settled, 'Auction has already been settled'); require(block.timestamp >= _auction.endTime, "Auction hasn't completed"); auction.settled = true; if (_auction.bidder == address(0)) { nouns.burn(_auction.nounId); } else { nouns.transferFrom(address(this), _auction.bidder, _auction.nounId); } if (_auction.amount > 0) { _safeTransferETHWithFallback(owner(), _auction.amount); } emit AuctionSettled(_auction.nounId, _auction.bidder, _auction.amount); } /** * @notice Transfer ETH. If the ETH transfer fails, wrap the ETH and try send it as WETH. */ function _safeTransferETHWithFallback(address to, uint256 amount) internal { if (!_safeTransferETH(to, amount)) { IWETH(weth).deposit{ value: amount }(); IERC20(weth).transfer(to, amount); } } /** * @notice Transfer ETH and return the success status. * @dev This function only forwards 30,000 gas to the callee. */ function _safeTransferETH(address to, uint256 value) internal returns (bool) { (bool success, ) = to.call{ value: value, gas: 30_000 }(new bytes(0)); return success; } }
/_openzeppelin/contracts/token/ERC20/IERC20.sol
// 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); }
/_openzeppelin/contracts/token/ERC721/IERC721.sol
// 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); }
/_openzeppelin/contracts/utils/introspection/IERC165.sol
// 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); }
/_openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/utils/Initializable.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 OwnableUpgradeable is Initializable, ContextUpgradeable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init() internal onlyInitializing { __Ownable_init_unchained(); } function __Ownable_init_unchained() internal onlyInitializing { _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); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; }
/_openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (proxy/utils/Initializable.sol) pragma solidity ^0.8.2; import "../../utils/AddressUpgradeable.sol"; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in * case an upgrade adds a module that needs to be initialized. * * For example: * * [.hljs-theme-light.nopadding] * ``` * contract MyToken is ERC20Upgradeable { * function initialize() initializer public { * __ERC20_init("MyToken", "MTK"); * } * } * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable { * function initializeV2() reinitializer(2) public { * __ERC20Permit_init("MyToken"); * } * } * ``` * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. * * [CAUTION] * ==== * Avoid leaving a contract uninitialized. * * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() { * _disableInitializers(); * } * ``` * ==== */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. * @custom:oz-retyped-from bool */ uint8 private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Triggered when the contract has been initialized or reinitialized. */ event Initialized(uint8 version); /** * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope, * `onlyInitializing` functions can be used to initialize parent contracts. * * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a * constructor. * * Emits an {Initialized} event. */ modifier initializer() { bool isTopLevelCall = !_initializing; require( (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1), "Initializable: contract is already initialized" ); _initialized = 1; if (isTopLevelCall) { _initializing = true; } _; if (isTopLevelCall) { _initializing = false; emit Initialized(1); } } /** * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be * used to initialize parent contracts. * * A reinitializer may be used after the original initialization step. This is essential to configure modules that * are added through upgrades and that require initialization. * * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer` * cannot be nested. If one is invoked in the context of another, execution will revert. * * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in * a contract, executing them in the right order is up to the developer or operator. * * WARNING: setting the version to 255 will prevent any future reinitialization. * * Emits an {Initialized} event. */ modifier reinitializer(uint8 version) { require(!_initializing && _initialized < version, "Initializable: contract is already initialized"); _initialized = version; _initializing = true; _; _initializing = false; emit Initialized(version); } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} and {reinitializer} modifiers, directly or indirectly. */ modifier onlyInitializing() { require(_initializing, "Initializable: contract is not initializing"); _; } /** * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call. * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized * to any version. It is recommended to use this to lock implementation contracts that are designed to be called * through proxies. * * Emits an {Initialized} event the first time it is successfully executed. */ function _disableInitializers() internal virtual { require(!_initializing, "Initializable: contract is initializing"); if (_initialized < type(uint8).max) { _initialized = type(uint8).max; emit Initialized(type(uint8).max); } } /** * @dev Internal function that returns the initialized version. Returns `_initialized` */ function _getInitializedVersion() internal view returns (uint8) { return _initialized; } /** * @dev Internal function that returns the initialized version. Returns `_initializing` */ function _isInitializing() internal view returns (bool) { return _initializing; } }
/_openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/utils/Initializable.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract PausableUpgradeable is Initializable, ContextUpgradeable { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ function __Pausable_init() internal onlyInitializing { __Pausable_init_unchained(); } function __Pausable_init_unchained() internal onlyInitializing { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; }
/_openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; import "../proxy/utils/Initializable.sol"; /** * @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 ReentrancyGuardUpgradeable is Initializable { // 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; function __ReentrancyGuard_init() internal onlyInitializing { __ReentrancyGuard_init_unchained(); } function __ReentrancyGuard_init_unchained() internal onlyInitializing { _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; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; }
/_openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol
// 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 AddressUpgradeable { /** * @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 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); } } }
/_openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; import "../proxy/utils/Initializable.sol"; /** * @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 ContextUpgradeable is Initializable { function __Context_init() internal onlyInitializing { } function __Context_init_unchained() internal onlyInitializing { } function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; }
/contracts/interfaces/INounsAuctionHouse.sol
// SPDX-License-Identifier: GPL-3.0 /// @title Interface for Noun Auction Houses /********************************* * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ * * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ * * ░░░░░░█████████░░█████████░░░ * * ░░░░░░██░░░████░░██░░░████░░░ * * ░░██████░░░████████░░░████░░░ * * ░░██░░██░░░████░░██░░░████░░░ * * ░░██░░██░░░████░░██░░░████░░░ * * ░░░░░░█████████░░█████████░░░ * * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ * * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ * *********************************/ pragma solidity ^0.8.6; interface INounsAuctionHouse { struct Auction { // ID for the Noun (ERC721 token ID) uint256 nounId; // The current highest bid amount uint256 amount; // The time that the auction started uint256 startTime; // The time that the auction is scheduled to end uint256 endTime; // The address of the current highest bid address payable bidder; // Whether or not the auction has been settled bool settled; } event AuctionCreated(uint256 indexed nounId, uint256 startTime, uint256 endTime); event AuctionBid(uint256 indexed nounId, address sender, uint256 value, bool extended); event AuctionExtended(uint256 indexed nounId, uint256 endTime); event AuctionSettled(uint256 indexed nounId, address winner, uint256 amount); event AuctionTimeBufferUpdated(uint256 timeBuffer); event AuctionReservePriceUpdated(uint256 reservePrice); event AuctionMinBidIncrementPercentageUpdated(uint256 minBidIncrementPercentage); function settleAuction() external; function settleCurrentAndCreateNewAuction() external; function createBid(uint256 nounId) external payable; function pause() external; function unpause() external; function setTimeBuffer(uint256 timeBuffer) external; function setReservePrice(uint256 reservePrice) external; function setMinBidIncrementPercentage(uint8 minBidIncrementPercentage) external; }
/contracts/interfaces/INounsToken.sol
// SPDX-License-Identifier: GPL-3.0 /// @title Interface for NounsToken /********************************* * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ * * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ * * ░░░░░░█████████░░█████████░░░ * * ░░░░░░██░░░████░░██░░░████░░░ * * ░░██████░░░████████░░░████░░░ * * ░░██░░██░░░████░░██░░░████░░░ * * ░░██░░██░░░████░░██░░░████░░░ * * ░░░░░░█████████░░█████████░░░ * * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ * * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ * *********************************/ pragma solidity ^0.8.6; import { IERC721 } from '@openzeppelin/contracts/token/ERC721/IERC721.sol'; // import { INounsDescriptorMinimal } from './INounsDescriptorMinimal.sol'; // import { INounsSeeder } from './INounsSeeder.sol'; interface INounsToken is IERC721 { event NounCreated(uint256 indexed tokenId); event NounBurned(uint256 indexed tokenId); event NoundersDAOUpdated(address noundersDAO); event MinterUpdated(address minter); event MinterLocked(); // event DescriptorUpdated(INounsDescriptorMinimal descriptor); event DescriptorLocked(); // event SeederUpdated(INounsSeeder seeder); event SeederLocked(); function mint() external returns (uint256); function burn(uint256 tokenId) external; function dataURI(uint256 tokenId) external returns (string memory); function setNoundersDAO(address noundersDAO) external; function setMinter(address minter) external; function lockMinter() external; // function setDescriptor(INounsDescriptorMinimal descriptor) external; // function lockDescriptor() external; // function setSeeder(INounsSeeder seeder) external; // function lockSeeder() external; }
/contracts/interfaces/IWETH.sol
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.6; interface IWETH { function deposit() external payable; function withdraw(uint256 wad) external; function transfer(address to, uint256 value) external returns (bool); }
Contract ABI
[{"type":"event","name":"AuctionBid","inputs":[{"type":"uint256","name":"nounId","internalType":"uint256","indexed":true},{"type":"address","name":"sender","internalType":"address","indexed":false},{"type":"uint256","name":"value","internalType":"uint256","indexed":false},{"type":"bool","name":"extended","internalType":"bool","indexed":false}],"anonymous":false},{"type":"event","name":"AuctionCreated","inputs":[{"type":"uint256","name":"nounId","internalType":"uint256","indexed":true},{"type":"uint256","name":"startTime","internalType":"uint256","indexed":false},{"type":"uint256","name":"endTime","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"AuctionExtended","inputs":[{"type":"uint256","name":"nounId","internalType":"uint256","indexed":true},{"type":"uint256","name":"endTime","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"AuctionMinBidIncrementPercentageUpdated","inputs":[{"type":"uint256","name":"minBidIncrementPercentage","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"AuctionReservePriceUpdated","inputs":[{"type":"uint256","name":"reservePrice","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"AuctionSettled","inputs":[{"type":"uint256","name":"nounId","internalType":"uint256","indexed":true},{"type":"address","name":"winner","internalType":"address","indexed":false},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"AuctionTimeBufferUpdated","inputs":[{"type":"uint256","name":"timeBuffer","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Initialized","inputs":[{"type":"uint8","name":"version","internalType":"uint8","indexed":false}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"Paused","inputs":[{"type":"address","name":"account","internalType":"address","indexed":false}],"anonymous":false},{"type":"event","name":"Unpaused","inputs":[{"type":"address","name":"account","internalType":"address","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"nounId","internalType":"uint256"},{"type":"uint256","name":"amount","internalType":"uint256"},{"type":"uint256","name":"startTime","internalType":"uint256"},{"type":"uint256","name":"endTime","internalType":"uint256"},{"type":"address","name":"bidder","internalType":"address payable"},{"type":"bool","name":"settled","internalType":"bool"}],"name":"auction","inputs":[]},{"type":"function","stateMutability":"payable","outputs":[],"name":"createBid","inputs":[{"type":"uint256","name":"nounId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"duration","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"initialize","inputs":[{"type":"address","name":"_nouns","internalType":"contract INounsToken"},{"type":"address","name":"_weth","internalType":"address"},{"type":"uint256","name":"_timeBuffer","internalType":"uint256"},{"type":"uint256","name":"_reservePrice","internalType":"uint256"},{"type":"uint8","name":"_minBidIncrementPercentage","internalType":"uint8"},{"type":"uint256","name":"_duration","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint8","name":"","internalType":"uint8"}],"name":"minBidIncrementPercentage","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract INounsToken"}],"name":"nouns","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"pause","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"paused","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"reservePrice","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setMinBidIncrementPercentage","inputs":[{"type":"uint8","name":"_minBidIncrementPercentage","internalType":"uint8"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setReservePrice","inputs":[{"type":"uint256","name":"_reservePrice","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setTimeBuffer","inputs":[{"type":"uint256","name":"_timeBuffer","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"settleAuction","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"settleCurrentAndCreateNewAuction","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"timeBuffer","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"unpause","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"weth","inputs":[]}]
Contract Creation Code
0x608060405234801561001057600080fd5b50612986806100206000396000f3fe60806040526004361061011f5760003560e01c80638456cb59116100a0578063ce9c7c0d11610064578063ce9c7c0d14610349578063db2e1eed14610372578063ec91f2a41461039d578063f25efffc146103c8578063f2fde38b146103df5761011f565b80638456cb591461029c57806387f49f54146102b35780638da5cb5b146102dc578063a4d0a17e14610307578063b296024d1461031e5761011f565b80635c975abb116100e75780635c975abb146101e5578063659dd2b4146102105780637120334b1461022c578063715018a6146102555780637d9f6db51461026c5761011f565b80630fb5a6b4146101245780632de45f181461014f57806336ebdb381461017a5780633f4ba83a146101a35780633fc8cef3146101ba575b600080fd5b34801561013057600080fd5b50610139610408565b6040516101469190612135565b60405180910390f35b34801561015b57600080fd5b5061016461040e565b6040516101719190611f3f565b60405180910390f35b34801561018657600080fd5b506101a1600480360381019061019c9190611b63565b610434565b005b3480156101af57600080fd5b506101b8610491565b005b3480156101c657600080fd5b506101cf6104d4565b6040516101dc9190611e49565b60405180910390f35b3480156101f157600080fd5b506101fa6104fa565b6040516102079190611f24565b60405180910390f35b61022a60048036038101906102259190611b09565b610511565b005b34801561023857600080fd5b50610253600480360381019061024e9190611b09565b610880565b005b34801561026157600080fd5b5061026a6108c9565b005b34801561027857600080fd5b506102816108dd565b60405161029396959493929190612179565b60405180910390f35b3480156102a857600080fd5b506102b1610934565b005b3480156102bf57600080fd5b506102da60048036038101906102d59190611a7c565b610946565b005b3480156102e857600080fd5b506102f1610b54565b6040516102fe9190611e49565b60405180910390f35b34801561031357600080fd5b5061031c610b7e565b005b34801561032a57600080fd5b50610333610ba0565b60405161034091906121f5565b60405180910390f35b34801561035557600080fd5b50610370600480360381019061036b9190611b09565b610bb3565b005b34801561037e57600080fd5b50610387610bfc565b6040516103949190612135565b60405180910390f35b3480156103a957600080fd5b506103b2610c02565b6040516103bf9190612135565b60405180910390f35b3480156103d457600080fd5b506103dd610c08565b005b3480156103eb57600080fd5b5061040660048036038101906104019190611a22565b610c32565b005b60ce5481565b60c960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61043c610cb6565b8060cd60006101000a81548160ff021916908360ff1602179055507fec5ccd96cc77b6219e9d44143df916af68fc169339ea7de5008ff15eae13450d8160405161048691906121da565b60405180910390a150565b610499610cb6565b6104a1610d34565b600060cf6002015414806104c4575060cf60040160149054906101000a900460ff165b156104d2576104d1610d97565b5b565b60ca60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000603360009054906101000a900460ff16905090565b610519610fb0565b600060cf6040518060c0016040529081600082015481526020016001820154815260200160028201548152602001600382015481526020016004820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016004820160149054906101000a900460ff161515151581525050905081816000015114610609576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161060090612055565b60405180910390fd5b8060600151421061064f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161064690612115565b60405180910390fd5b60cc54341015610694576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161068b90611fd5565b60405180910390fd5b606460cd60009054906101000a900460ff1660ff1682602001516106b891906122c8565b6106c29190612297565b81602001516106d19190612241565b341015610713576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161070a90612035565b60405180910390fd5b600081608001519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461075f5761075e818360200151611000565b5b3460cf600101819055503360cf60040160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600060cb544284606001516107c29190612322565b10905080156107eb5760cb54426107d99190612241565b836060018181525060cf600301819055505b82600001517f1159164c56f277e6fc99c11731bd380e0347deb969b75523398734c252706ea333348460405161082393929190611eed565b60405180910390a280156108725782600001517f6e912a3a9105bdd2af817ba5adc14e6c127c1035b5b648faa29ca0d58ab8ff4e84606001516040516108699190612135565b60405180910390a25b50505061087d611146565b50565b610888610cb6565b8060cb819055507f1b55d9f7002bda4490f467e326f22a4a847629c0f2d1ed421607d318d25b410d816040516108be9190612135565b60405180910390a150565b6108d1610cb6565b6108db6000611150565b565b60cf8060000154908060010154908060020154908060030154908060040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060040160149054906101000a900460ff16905086565b61093c610cb6565b610944611216565b565b60008060019054906101000a900460ff161590508080156109775750600160008054906101000a900460ff1660ff16105b806109a4575061098630611279565b1580156109a35750600160008054906101000a900460ff1660ff16145b5b6109e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109da90612015565b60405180910390fd5b60016000806101000a81548160ff021916908360ff1602179055508015610a20576001600060016101000a81548160ff0219169083151502179055505b610a2861129c565b610a306112f5565b610a3861134e565b610a40611216565b8660c960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508560ca60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508460cb819055508360cc819055508260cd60006101000a81548160ff021916908360ff1602179055508160ce819055508015610b4b5760008060016101000a81548160ff0219169083151502179055507f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024986001604051610b429190611f5a565b60405180910390a15b50505050505050565b6000609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610b866113a7565b610b8e610fb0565b610b966113f0565b610b9e611146565b565b60cd60009054906101000a900460ff1681565b610bbb610cb6565b8060cc819055507f6ab2e127d7fdf53b8f304e59d3aab5bfe97979f52a85479691a6fab27a28a6b281604051610bf19190612135565b60405180910390a150565b60cc5481565b60cb5481565b610c10610fb0565b610c18611761565b610c206113f0565b610c28610d97565b610c30611146565b565b610c3a610cb6565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610caa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ca190611f95565b60405180910390fd5b610cb381611150565b50565b610cbe6117ab565b73ffffffffffffffffffffffffffffffffffffffff16610cdc610b54565b73ffffffffffffffffffffffffffffffffffffffff1614610d32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d2990612075565b60405180910390fd5b565b610d3c6113a7565b6000603360006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa610d806117ab565b604051610d8d9190611e49565b60405180910390a1565b60c960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631249c58b6040518163ffffffff1660e01b8152600401602060405180830381600087803b158015610e0157600080fd5b505af1925050508015610e3257506040513d601f19601f82011682018060405250810190610e2f9190611b36565b60015b610e7d57610e3e61252c565b806308c379a01415610e6c5750610e53612847565b80610e5e5750610e6e565b610e66611216565b50610e78565b505b3d6000803e3d6000fd5b610fae565b6000429050600060ce5482610e929190612241565b90506040518060c0016040528084815260200160008152602001838152602001828152602001600073ffffffffffffffffffffffffffffffffffffffff1681526020016000151581525060cf6000820151816000015560208201518160010155604082015181600201556060820151816003015560808201518160040160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060a08201518160040160146101000a81548160ff021916908315150217905550905050827fd6eddd1118d71820909c1197aa966dbc15ed6f508554252169cc3d5ccac756ca8383604051610fa2929190612150565b60405180910390a25050505b565b60026065541415610ff6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fed906120f5565b60405180910390fd5b6002606581905550565b61100a82826117b3565b6111425760ca60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b15801561107857600080fd5b505af115801561108c573d6000803e3d6000fd5b505050505060ca60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb83836040518363ffffffff1660e01b81526004016110ee929190611ec4565b602060405180830381600087803b15801561110857600080fd5b505af115801561111c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111409190611a4f565b505b5050565b6001606581905550565b6000609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081609760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61121e611761565b6001603360006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586112626117ab565b60405161126f9190611e49565b60405180910390a1565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600060019054906101000a900460ff166112eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112e2906120b5565b60405180910390fd5b6112f361187e565b565b600060019054906101000a900460ff16611344576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133b906120b5565b60405180910390fd5b61134c6118ea565b565b600060019054906101000a900460ff1661139d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611394906120b5565b60405180910390fd5b6113a5611943565b565b6113af6104fa565b6113ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113e590611f75565b60405180910390fd5b565b600060cf6040518060c0016040529081600082015481526020016001820154815260200160028201548152602001600382015481526020016004820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016004820160149054906101000a900460ff16151515158152505090506000816040015114156114e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114d990611fb5565b60405180910390fd5b8060a0015115611527576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161151e90612095565b60405180910390fd5b806060015142101561156e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611565906120d5565b60405180910390fd5b600160cf60040160146101000a81548160ff021916908315150217905550600073ffffffffffffffffffffffffffffffffffffffff16816080015173ffffffffffffffffffffffffffffffffffffffff16141561165b5760c960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342966c6882600001516040518263ffffffff1660e01b81526004016116249190612135565b600060405180830381600087803b15801561163e57600080fd5b505af1158015611652573d6000803e3d6000fd5b505050506116f5565b60c960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd30836080015184600001516040518463ffffffff1660e01b81526004016116c293929190611e8d565b600060405180830381600087803b1580156116dc57600080fd5b505af11580156116f0573d6000803e3d6000fd5b505050505b6000816020015111156117185761171761170d610b54565b8260200151611000565b5b80600001517fc9f72b276a388619c6d185d146697036241880c36654b1a3ffdad07c24038d9982608001518360200151604051611756929190611e64565b60405180910390a250565b6117696104fa565b156117a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117a090611ff5565b60405180910390fd5b565b600033905090565b6000808373ffffffffffffffffffffffffffffffffffffffff168361753090600067ffffffffffffffff8111156117ed576117ec6124fd565b5b6040519080825280601f01601f19166020018201604052801561181f5781602001600182028036833780820191505090505b5060405161182d9190611e32565b600060405180830381858888f193505050503d806000811461186b576040519150601f19603f3d011682016040523d82523d6000602084013e611870565b606091505b505090508091505092915050565b600060019054906101000a900460ff166118cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118c4906120b5565b60405180910390fd5b6000603360006101000a81548160ff021916908315150217905550565b600060019054906101000a900460ff16611939576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611930906120b5565b60405180910390fd5b6001606581905550565b600060019054906101000a900460ff16611992576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611989906120b5565b60405180910390fd5b6119a261199d6117ab565b611150565b565b6000813590506119b3816128dd565b92915050565b6000815190506119c8816128f4565b92915050565b6000813590506119dd8161290b565b92915050565b6000813590506119f281612922565b92915050565b600081519050611a0781612922565b92915050565b600081359050611a1c81612939565b92915050565b600060208284031215611a3857611a3761254e565b5b6000611a46848285016119a4565b91505092915050565b600060208284031215611a6557611a6461254e565b5b6000611a73848285016119b9565b91505092915050565b60008060008060008060c08789031215611a9957611a9861254e565b5b6000611aa789828a016119ce565b9650506020611ab889828a016119a4565b9550506040611ac989828a016119e3565b9450506060611ada89828a016119e3565b9350506080611aeb89828a01611a0d565b92505060a0611afc89828a016119e3565b9150509295509295509295565b600060208284031215611b1f57611b1e61254e565b5b6000611b2d848285016119e3565b91505092915050565b600060208284031215611b4c57611b4b61254e565b5b6000611b5a848285016119f8565b91505092915050565b600060208284031215611b7957611b7861254e565b5b6000611b8784828501611a0d565b91505092915050565b611b99816123cf565b82525050565b611ba881612368565b82525050565b611bb781612356565b82525050565b611bc68161237a565b82525050565b6000611bd78261221a565b611be18185612225565b9350611bf181856020860161243b565b80840191505092915050565b611c06816123e1565b82525050565b611c15816123f3565b82525050565b6000611c28601483612230565b9150611c3382612571565b602082019050919050565b6000611c4b602683612230565b9150611c568261259a565b604082019050919050565b6000611c6e601483612230565b9150611c79826125e9565b602082019050919050565b6000611c91601f83612230565b9150611c9c82612612565b602082019050919050565b6000611cb4601083612230565b9150611cbf8261263b565b602082019050919050565b6000611cd7602e83612230565b9150611ce282612664565b604082019050919050565b6000611cfa604083612230565b9150611d05826126b3565b604082019050919050565b6000611d1d601783612230565b9150611d2882612702565b602082019050919050565b6000611d40602083612230565b9150611d4b8261272b565b602082019050919050565b6000611d63602083612230565b9150611d6e82612754565b602082019050919050565b6000611d86602b83612230565b9150611d918261277d565b604082019050919050565b6000611da9601883612230565b9150611db4826127cc565b602082019050919050565b6000611dcc601f83612230565b9150611dd7826127f5565b602082019050919050565b6000611def600f83612230565b9150611dfa8261281e565b602082019050919050565b611e0e816123b8565b82525050565b611e1d81612429565b82525050565b611e2c816123c2565b82525050565b6000611e3e8284611bcc565b915081905092915050565b6000602082019050611e5e6000830184611bae565b92915050565b6000604082019050611e796000830185611b90565b611e866020830184611e05565b9392505050565b6000606082019050611ea26000830186611bae565b611eaf6020830185611b90565b611ebc6040830184611e05565b949350505050565b6000604082019050611ed96000830185611bae565b611ee66020830184611e05565b9392505050565b6000606082019050611f026000830186611bae565b611f0f6020830185611e05565b611f1c6040830184611bbd565b949350505050565b6000602082019050611f396000830184611bbd565b92915050565b6000602082019050611f546000830184611bfd565b92915050565b6000602082019050611f6f6000830184611c0c565b92915050565b60006020820190508181036000830152611f8e81611c1b565b9050919050565b60006020820190508181036000830152611fae81611c3e565b9050919050565b60006020820190508181036000830152611fce81611c61565b9050919050565b60006020820190508181036000830152611fee81611c84565b9050919050565b6000602082019050818103600083015261200e81611ca7565b9050919050565b6000602082019050818103600083015261202e81611cca565b9050919050565b6000602082019050818103600083015261204e81611ced565b9050919050565b6000602082019050818103600083015261206e81611d10565b9050919050565b6000602082019050818103600083015261208e81611d33565b9050919050565b600060208201905081810360008301526120ae81611d56565b9050919050565b600060208201905081810360008301526120ce81611d79565b9050919050565b600060208201905081810360008301526120ee81611d9c565b9050919050565b6000602082019050818103600083015261210e81611dbf565b9050919050565b6000602082019050818103600083015261212e81611de2565b9050919050565b600060208201905061214a6000830184611e05565b92915050565b60006040820190506121656000830185611e05565b6121726020830184611e05565b9392505050565b600060c08201905061218e6000830189611e05565b61219b6020830188611e05565b6121a86040830187611e05565b6121b56060830186611e05565b6121c26080830185611b9f565b6121cf60a0830184611bbd565b979650505050505050565b60006020820190506121ef6000830184611e14565b92915050565b600060208201905061220a6000830184611e23565b92915050565b6000604051905090565b600081519050919050565b600081905092915050565b600082825260208201905092915050565b600061224c826123b8565b9150612257836123b8565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561228c5761228b61249f565b5b828201905092915050565b60006122a2826123b8565b91506122ad836123b8565b9250826122bd576122bc6124ce565b5b828204905092915050565b60006122d3826123b8565b91506122de836123b8565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156123175761231661249f565b5b828202905092915050565b600061232d826123b8565b9150612338836123b8565b92508282101561234b5761234a61249f565b5b828203905092915050565b600061236182612398565b9050919050565b600061237382612398565b9050919050565b60008115159050919050565b600061239182612356565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60006123da82612405565b9050919050565b60006123ec82612405565b9050919050565b60006123fe826123c2565b9050919050565b600061241082612417565b9050919050565b600061242282612398565b9050919050565b6000612434826123c2565b9050919050565b60005b8381101561245957808201518184015260208101905061243e565b83811115612468576000848401525b50505050565b61247782612553565b810181811067ffffffffffffffff82111715612496576124956124fd565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600060033d111561254b5760046000803e612548600051612564565b90505b90565b600080fd5b6000601f19601f8301169050919050565b60008160e01c9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f41756374696f6e206861736e277420626567756e000000000000000000000000600082015250565b7f4d7573742073656e64206174206c656173742072657365727665507269636500600082015250565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b7f4d7573742073656e64206d6f7265207468616e206c617374206269642062792060008201527f6d696e426964496e6372656d656e7450657263656e7461676520616d6f756e74602082015250565b7f4e6f756e206e6f7420757020666f722061756374696f6e000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f41756374696f6e2068617320616c7265616479206265656e20736574746c6564600082015250565b7f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960008201527f6e697469616c697a696e67000000000000000000000000000000000000000000602082015250565b7f41756374696f6e206861736e277420636f6d706c657465640000000000000000600082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b7f41756374696f6e20657870697265640000000000000000000000000000000000600082015250565b600060443d1015612857576128da565b61285f612210565b60043d036004823e80513d602482011167ffffffffffffffff821117156128875750506128da565b808201805167ffffffffffffffff8111156128a557505050506128da565b80602083010160043d0385018111156128c25750505050506128da565b6128d18260200185018661246e565b82955050505050505b90565b6128e681612356565b81146128f157600080fd5b50565b6128fd8161237a565b811461290857600080fd5b50565b61291481612386565b811461291f57600080fd5b50565b61292b816123b8565b811461293657600080fd5b50565b612942816123c2565b811461294d57600080fd5b5056fea26469706673582212207cd651ac75f9021962c7078618fdd7a97e8c14eb2d0d5b2ad6f8074a5638161b64736f6c63430008070033
Deployed ByteCode
0x60806040526004361061011f5760003560e01c80638456cb59116100a0578063ce9c7c0d11610064578063ce9c7c0d14610349578063db2e1eed14610372578063ec91f2a41461039d578063f25efffc146103c8578063f2fde38b146103df5761011f565b80638456cb591461029c57806387f49f54146102b35780638da5cb5b146102dc578063a4d0a17e14610307578063b296024d1461031e5761011f565b80635c975abb116100e75780635c975abb146101e5578063659dd2b4146102105780637120334b1461022c578063715018a6146102555780637d9f6db51461026c5761011f565b80630fb5a6b4146101245780632de45f181461014f57806336ebdb381461017a5780633f4ba83a146101a35780633fc8cef3146101ba575b600080fd5b34801561013057600080fd5b50610139610408565b6040516101469190612135565b60405180910390f35b34801561015b57600080fd5b5061016461040e565b6040516101719190611f3f565b60405180910390f35b34801561018657600080fd5b506101a1600480360381019061019c9190611b63565b610434565b005b3480156101af57600080fd5b506101b8610491565b005b3480156101c657600080fd5b506101cf6104d4565b6040516101dc9190611e49565b60405180910390f35b3480156101f157600080fd5b506101fa6104fa565b6040516102079190611f24565b60405180910390f35b61022a60048036038101906102259190611b09565b610511565b005b34801561023857600080fd5b50610253600480360381019061024e9190611b09565b610880565b005b34801561026157600080fd5b5061026a6108c9565b005b34801561027857600080fd5b506102816108dd565b60405161029396959493929190612179565b60405180910390f35b3480156102a857600080fd5b506102b1610934565b005b3480156102bf57600080fd5b506102da60048036038101906102d59190611a7c565b610946565b005b3480156102e857600080fd5b506102f1610b54565b6040516102fe9190611e49565b60405180910390f35b34801561031357600080fd5b5061031c610b7e565b005b34801561032a57600080fd5b50610333610ba0565b60405161034091906121f5565b60405180910390f35b34801561035557600080fd5b50610370600480360381019061036b9190611b09565b610bb3565b005b34801561037e57600080fd5b50610387610bfc565b6040516103949190612135565b60405180910390f35b3480156103a957600080fd5b506103b2610c02565b6040516103bf9190612135565b60405180910390f35b3480156103d457600080fd5b506103dd610c08565b005b3480156103eb57600080fd5b5061040660048036038101906104019190611a22565b610c32565b005b60ce5481565b60c960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61043c610cb6565b8060cd60006101000a81548160ff021916908360ff1602179055507fec5ccd96cc77b6219e9d44143df916af68fc169339ea7de5008ff15eae13450d8160405161048691906121da565b60405180910390a150565b610499610cb6565b6104a1610d34565b600060cf6002015414806104c4575060cf60040160149054906101000a900460ff165b156104d2576104d1610d97565b5b565b60ca60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000603360009054906101000a900460ff16905090565b610519610fb0565b600060cf6040518060c0016040529081600082015481526020016001820154815260200160028201548152602001600382015481526020016004820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016004820160149054906101000a900460ff161515151581525050905081816000015114610609576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161060090612055565b60405180910390fd5b8060600151421061064f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161064690612115565b60405180910390fd5b60cc54341015610694576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161068b90611fd5565b60405180910390fd5b606460cd60009054906101000a900460ff1660ff1682602001516106b891906122c8565b6106c29190612297565b81602001516106d19190612241565b341015610713576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161070a90612035565b60405180910390fd5b600081608001519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461075f5761075e818360200151611000565b5b3460cf600101819055503360cf60040160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600060cb544284606001516107c29190612322565b10905080156107eb5760cb54426107d99190612241565b836060018181525060cf600301819055505b82600001517f1159164c56f277e6fc99c11731bd380e0347deb969b75523398734c252706ea333348460405161082393929190611eed565b60405180910390a280156108725782600001517f6e912a3a9105bdd2af817ba5adc14e6c127c1035b5b648faa29ca0d58ab8ff4e84606001516040516108699190612135565b60405180910390a25b50505061087d611146565b50565b610888610cb6565b8060cb819055507f1b55d9f7002bda4490f467e326f22a4a847629c0f2d1ed421607d318d25b410d816040516108be9190612135565b60405180910390a150565b6108d1610cb6565b6108db6000611150565b565b60cf8060000154908060010154908060020154908060030154908060040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060040160149054906101000a900460ff16905086565b61093c610cb6565b610944611216565b565b60008060019054906101000a900460ff161590508080156109775750600160008054906101000a900460ff1660ff16105b806109a4575061098630611279565b1580156109a35750600160008054906101000a900460ff1660ff16145b5b6109e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109da90612015565b60405180910390fd5b60016000806101000a81548160ff021916908360ff1602179055508015610a20576001600060016101000a81548160ff0219169083151502179055505b610a2861129c565b610a306112f5565b610a3861134e565b610a40611216565b8660c960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508560ca60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508460cb819055508360cc819055508260cd60006101000a81548160ff021916908360ff1602179055508160ce819055508015610b4b5760008060016101000a81548160ff0219169083151502179055507f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024986001604051610b429190611f5a565b60405180910390a15b50505050505050565b6000609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610b866113a7565b610b8e610fb0565b610b966113f0565b610b9e611146565b565b60cd60009054906101000a900460ff1681565b610bbb610cb6565b8060cc819055507f6ab2e127d7fdf53b8f304e59d3aab5bfe97979f52a85479691a6fab27a28a6b281604051610bf19190612135565b60405180910390a150565b60cc5481565b60cb5481565b610c10610fb0565b610c18611761565b610c206113f0565b610c28610d97565b610c30611146565b565b610c3a610cb6565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610caa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ca190611f95565b60405180910390fd5b610cb381611150565b50565b610cbe6117ab565b73ffffffffffffffffffffffffffffffffffffffff16610cdc610b54565b73ffffffffffffffffffffffffffffffffffffffff1614610d32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d2990612075565b60405180910390fd5b565b610d3c6113a7565b6000603360006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa610d806117ab565b604051610d8d9190611e49565b60405180910390a1565b60c960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631249c58b6040518163ffffffff1660e01b8152600401602060405180830381600087803b158015610e0157600080fd5b505af1925050508015610e3257506040513d601f19601f82011682018060405250810190610e2f9190611b36565b60015b610e7d57610e3e61252c565b806308c379a01415610e6c5750610e53612847565b80610e5e5750610e6e565b610e66611216565b50610e78565b505b3d6000803e3d6000fd5b610fae565b6000429050600060ce5482610e929190612241565b90506040518060c0016040528084815260200160008152602001838152602001828152602001600073ffffffffffffffffffffffffffffffffffffffff1681526020016000151581525060cf6000820151816000015560208201518160010155604082015181600201556060820151816003015560808201518160040160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060a08201518160040160146101000a81548160ff021916908315150217905550905050827fd6eddd1118d71820909c1197aa966dbc15ed6f508554252169cc3d5ccac756ca8383604051610fa2929190612150565b60405180910390a25050505b565b60026065541415610ff6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fed906120f5565b60405180910390fd5b6002606581905550565b61100a82826117b3565b6111425760ca60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b15801561107857600080fd5b505af115801561108c573d6000803e3d6000fd5b505050505060ca60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb83836040518363ffffffff1660e01b81526004016110ee929190611ec4565b602060405180830381600087803b15801561110857600080fd5b505af115801561111c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111409190611a4f565b505b5050565b6001606581905550565b6000609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081609760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61121e611761565b6001603360006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586112626117ab565b60405161126f9190611e49565b60405180910390a1565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600060019054906101000a900460ff166112eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112e2906120b5565b60405180910390fd5b6112f361187e565b565b600060019054906101000a900460ff16611344576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133b906120b5565b60405180910390fd5b61134c6118ea565b565b600060019054906101000a900460ff1661139d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611394906120b5565b60405180910390fd5b6113a5611943565b565b6113af6104fa565b6113ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113e590611f75565b60405180910390fd5b565b600060cf6040518060c0016040529081600082015481526020016001820154815260200160028201548152602001600382015481526020016004820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016004820160149054906101000a900460ff16151515158152505090506000816040015114156114e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114d990611fb5565b60405180910390fd5b8060a0015115611527576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161151e90612095565b60405180910390fd5b806060015142101561156e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611565906120d5565b60405180910390fd5b600160cf60040160146101000a81548160ff021916908315150217905550600073ffffffffffffffffffffffffffffffffffffffff16816080015173ffffffffffffffffffffffffffffffffffffffff16141561165b5760c960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342966c6882600001516040518263ffffffff1660e01b81526004016116249190612135565b600060405180830381600087803b15801561163e57600080fd5b505af1158015611652573d6000803e3d6000fd5b505050506116f5565b60c960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd30836080015184600001516040518463ffffffff1660e01b81526004016116c293929190611e8d565b600060405180830381600087803b1580156116dc57600080fd5b505af11580156116f0573d6000803e3d6000fd5b505050505b6000816020015111156117185761171761170d610b54565b8260200151611000565b5b80600001517fc9f72b276a388619c6d185d146697036241880c36654b1a3ffdad07c24038d9982608001518360200151604051611756929190611e64565b60405180910390a250565b6117696104fa565b156117a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117a090611ff5565b60405180910390fd5b565b600033905090565b6000808373ffffffffffffffffffffffffffffffffffffffff168361753090600067ffffffffffffffff8111156117ed576117ec6124fd565b5b6040519080825280601f01601f19166020018201604052801561181f5781602001600182028036833780820191505090505b5060405161182d9190611e32565b600060405180830381858888f193505050503d806000811461186b576040519150601f19603f3d011682016040523d82523d6000602084013e611870565b606091505b505090508091505092915050565b600060019054906101000a900460ff166118cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118c4906120b5565b60405180910390fd5b6000603360006101000a81548160ff021916908315150217905550565b600060019054906101000a900460ff16611939576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611930906120b5565b60405180910390fd5b6001606581905550565b600060019054906101000a900460ff16611992576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611989906120b5565b60405180910390fd5b6119a261199d6117ab565b611150565b565b6000813590506119b3816128dd565b92915050565b6000815190506119c8816128f4565b92915050565b6000813590506119dd8161290b565b92915050565b6000813590506119f281612922565b92915050565b600081519050611a0781612922565b92915050565b600081359050611a1c81612939565b92915050565b600060208284031215611a3857611a3761254e565b5b6000611a46848285016119a4565b91505092915050565b600060208284031215611a6557611a6461254e565b5b6000611a73848285016119b9565b91505092915050565b60008060008060008060c08789031215611a9957611a9861254e565b5b6000611aa789828a016119ce565b9650506020611ab889828a016119a4565b9550506040611ac989828a016119e3565b9450506060611ada89828a016119e3565b9350506080611aeb89828a01611a0d565b92505060a0611afc89828a016119e3565b9150509295509295509295565b600060208284031215611b1f57611b1e61254e565b5b6000611b2d848285016119e3565b91505092915050565b600060208284031215611b4c57611b4b61254e565b5b6000611b5a848285016119f8565b91505092915050565b600060208284031215611b7957611b7861254e565b5b6000611b8784828501611a0d565b91505092915050565b611b99816123cf565b82525050565b611ba881612368565b82525050565b611bb781612356565b82525050565b611bc68161237a565b82525050565b6000611bd78261221a565b611be18185612225565b9350611bf181856020860161243b565b80840191505092915050565b611c06816123e1565b82525050565b611c15816123f3565b82525050565b6000611c28601483612230565b9150611c3382612571565b602082019050919050565b6000611c4b602683612230565b9150611c568261259a565b604082019050919050565b6000611c6e601483612230565b9150611c79826125e9565b602082019050919050565b6000611c91601f83612230565b9150611c9c82612612565b602082019050919050565b6000611cb4601083612230565b9150611cbf8261263b565b602082019050919050565b6000611cd7602e83612230565b9150611ce282612664565b604082019050919050565b6000611cfa604083612230565b9150611d05826126b3565b604082019050919050565b6000611d1d601783612230565b9150611d2882612702565b602082019050919050565b6000611d40602083612230565b9150611d4b8261272b565b602082019050919050565b6000611d63602083612230565b9150611d6e82612754565b602082019050919050565b6000611d86602b83612230565b9150611d918261277d565b604082019050919050565b6000611da9601883612230565b9150611db4826127cc565b602082019050919050565b6000611dcc601f83612230565b9150611dd7826127f5565b602082019050919050565b6000611def600f83612230565b9150611dfa8261281e565b602082019050919050565b611e0e816123b8565b82525050565b611e1d81612429565b82525050565b611e2c816123c2565b82525050565b6000611e3e8284611bcc565b915081905092915050565b6000602082019050611e5e6000830184611bae565b92915050565b6000604082019050611e796000830185611b90565b611e866020830184611e05565b9392505050565b6000606082019050611ea26000830186611bae565b611eaf6020830185611b90565b611ebc6040830184611e05565b949350505050565b6000604082019050611ed96000830185611bae565b611ee66020830184611e05565b9392505050565b6000606082019050611f026000830186611bae565b611f0f6020830185611e05565b611f1c6040830184611bbd565b949350505050565b6000602082019050611f396000830184611bbd565b92915050565b6000602082019050611f546000830184611bfd565b92915050565b6000602082019050611f6f6000830184611c0c565b92915050565b60006020820190508181036000830152611f8e81611c1b565b9050919050565b60006020820190508181036000830152611fae81611c3e565b9050919050565b60006020820190508181036000830152611fce81611c61565b9050919050565b60006020820190508181036000830152611fee81611c84565b9050919050565b6000602082019050818103600083015261200e81611ca7565b9050919050565b6000602082019050818103600083015261202e81611cca565b9050919050565b6000602082019050818103600083015261204e81611ced565b9050919050565b6000602082019050818103600083015261206e81611d10565b9050919050565b6000602082019050818103600083015261208e81611d33565b9050919050565b600060208201905081810360008301526120ae81611d56565b9050919050565b600060208201905081810360008301526120ce81611d79565b9050919050565b600060208201905081810360008301526120ee81611d9c565b9050919050565b6000602082019050818103600083015261210e81611dbf565b9050919050565b6000602082019050818103600083015261212e81611de2565b9050919050565b600060208201905061214a6000830184611e05565b92915050565b60006040820190506121656000830185611e05565b6121726020830184611e05565b9392505050565b600060c08201905061218e6000830189611e05565b61219b6020830188611e05565b6121a86040830187611e05565b6121b56060830186611e05565b6121c26080830185611b9f565b6121cf60a0830184611bbd565b979650505050505050565b60006020820190506121ef6000830184611e14565b92915050565b600060208201905061220a6000830184611e23565b92915050565b6000604051905090565b600081519050919050565b600081905092915050565b600082825260208201905092915050565b600061224c826123b8565b9150612257836123b8565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561228c5761228b61249f565b5b828201905092915050565b60006122a2826123b8565b91506122ad836123b8565b9250826122bd576122bc6124ce565b5b828204905092915050565b60006122d3826123b8565b91506122de836123b8565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156123175761231661249f565b5b828202905092915050565b600061232d826123b8565b9150612338836123b8565b92508282101561234b5761234a61249f565b5b828203905092915050565b600061236182612398565b9050919050565b600061237382612398565b9050919050565b60008115159050919050565b600061239182612356565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60006123da82612405565b9050919050565b60006123ec82612405565b9050919050565b60006123fe826123c2565b9050919050565b600061241082612417565b9050919050565b600061242282612398565b9050919050565b6000612434826123c2565b9050919050565b60005b8381101561245957808201518184015260208101905061243e565b83811115612468576000848401525b50505050565b61247782612553565b810181811067ffffffffffffffff82111715612496576124956124fd565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600060033d111561254b5760046000803e612548600051612564565b90505b90565b600080fd5b6000601f19601f8301169050919050565b60008160e01c9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f41756374696f6e206861736e277420626567756e000000000000000000000000600082015250565b7f4d7573742073656e64206174206c656173742072657365727665507269636500600082015250565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b7f4d7573742073656e64206d6f7265207468616e206c617374206269642062792060008201527f6d696e426964496e6372656d656e7450657263656e7461676520616d6f756e74602082015250565b7f4e6f756e206e6f7420757020666f722061756374696f6e000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f41756374696f6e2068617320616c7265616479206265656e20736574746c6564600082015250565b7f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960008201527f6e697469616c697a696e67000000000000000000000000000000000000000000602082015250565b7f41756374696f6e206861736e277420636f6d706c657465640000000000000000600082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b7f41756374696f6e20657870697265640000000000000000000000000000000000600082015250565b600060443d1015612857576128da565b61285f612210565b60043d036004823e80513d602482011167ffffffffffffffff821117156128875750506128da565b808201805167ffffffffffffffff8111156128a557505050506128da565b80602083010160043d0385018111156128c25750505050506128da565b6128d18260200185018661246e565b82955050505050505b90565b6128e681612356565b81146128f157600080fd5b50565b6128fd8161237a565b811461290857600080fd5b50565b61291481612386565b811461291f57600080fd5b50565b61292b816123b8565b811461293657600080fd5b50565b612942816123c2565b811461294d57600080fd5b5056fea26469706673582212207cd651ac75f9021962c7078618fdd7a97e8c14eb2d0d5b2ad6f8074a5638161b64736f6c63430008070033