ERC-721
Overview
Max Total Supply
2,420 OWLS
Holders
1,097
Market
Volume (24H)
0.0171 ETH
Min Price (24H)
$20.21 @ 0.005500 ETH
Max Price (24H)
$21.31 @ 0.005800 ETH
Other Info
Token Contract
Balance
2 OWLSLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
NightOwls
Compiler Version
v0.8.10+commit.fc410830
Optimization Enabled:
No with 20000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./Address.sol"; import "./CollaborativeOwnable.sol"; import "./ERC721Enumerable.sol"; import "./IOwlToken.sol"; import "./MerkleProof.sol"; import "./ProxyRegistry.sol"; import "./ReentrancyGuard.sol"; import "./SafeMath.sol"; import "./Strings.sol"; contract NightOwls is ERC721Enumerable, CollaborativeOwnable, ReentrancyGuard { using SafeMath for uint256; using Address for address; using Strings for uint256; uint256 public maxSupply = 2420; string public baseURI = ""; address public proxyRegistryAddress = address(0); address public owlTokenAddress = address(0); uint256 public mintPrice = 50000000000000000; uint16 public mintLimit = 4; bool public mintIsActive = false; mapping(address => uint16) public whitelistMinted; bytes32 public whitelistMerkleRoot; uint256 public whitelistMintPrice = 50000000000000000; uint16 public whitelistMintLimit = 2; bool public whitelistMintIsActive = false; mapping(address => bool) public prepaidMinted; bytes32 public prepaidMerkleRoot; bool public prepaidMintIsActive = false; uint16 public reservedForPrepaid = 0; address public projectWithdrawAddress = address(0); address public developerWithdrawAddress = address(0); uint16 public developerPercentage = 155; constructor(address _proxyRegistryAddress, address _developerWithdrawAddress, address _projectWithdrawAddress) ERC721("Night Owls", "OWLS") { proxyRegistryAddress = _proxyRegistryAddress; developerWithdrawAddress = _developerWithdrawAddress; projectWithdrawAddress = _projectWithdrawAddress; } // // Public / External // function remainingForMint() public view returns (uint256) { uint256 ts = totalSupply(); uint256 available = maxSupply.sub(ts.add(reservedForPrepaid)); return available; } function mint(uint16 quantity) external payable nonReentrant { require(mintIsActive); require(quantity > 0 && quantity <= mintLimit && quantity <= remainingForMint()); require(msg.value >= mintPrice.mul(quantity)); uint256 ts = totalSupply(); for (uint16 i = 0; i < quantity; i++) { _safeMint(_msgSender(), ts + i); } } function whitelistMint(bytes32[] calldata merkleProof, uint16 quantity) external payable nonReentrant { require(whitelistMintIsActive); require(quantity > 0 && quantity <= whitelistMintLimit && quantity <= remainingForMint()); require(msg.value >= whitelistMintPrice.mul(quantity)); uint16 alreadyMinted = whitelistMinted[_msgSender()]; require(alreadyMinted < whitelistMintLimit); bytes32 leaf = keccak256(abi.encodePacked(_msgSender())); require(MerkleProof.verify(merkleProof, whitelistMerkleRoot, leaf), "1"); uint256 ts = totalSupply(); for (uint16 i = 0; i < quantity; i++) { _safeMint(_msgSender(), ts + i); } whitelistMinted[_msgSender()] = alreadyMinted + quantity; } function prepaidMint(bytes32[] calldata merkleProof, uint16 quantity) external nonReentrant { require(prepaidMintIsActive); require(quantity > 0 && quantity <= reservedForPrepaid); require(!prepaidMinted[_msgSender()]); bytes32 leaf = keccak256(abi.encodePacked(_msgSender(), uint256(quantity))); require(MerkleProof.verify(merkleProof, prepaidMerkleRoot, leaf), "2"); uint256 ts = totalSupply(); require(ts.add(quantity) <= maxSupply); for (uint16 i = 0; i < quantity; i++) { _safeMint(_msgSender(), ts + i); } prepaidMinted[_msgSender()] = true; reservedForPrepaid = reservedForPrepaid - quantity; } // Override ERC721 function _baseURI() internal view override returns (string memory) { return baseURI; } // Override ERC721 function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId)); string memory __baseURI = _baseURI(); return bytes(__baseURI).length > 0 ? string(abi.encodePacked(__baseURI, tokenId.toString(), ".json")) : '.json'; } // Override ERC721 function isApprovedForAll(address owner, address operator) override public view returns (bool) { if (address(proxyRegistryAddress) != address(0)) { ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress); if (address(proxyRegistry.proxies(owner)) == operator) { return true; } } return super.isApprovedForAll(owner, operator); } // Override ERC721 function transferFrom(address from, address to, uint256 tokenId) public override { if (owlTokenAddress != address(0)) { IOwlToken(owlTokenAddress).onNightOwlTransfer(from, to); } super.transferFrom(from, to, tokenId); } // Override ERC721 function safeTransferFrom(address from, address to, uint256 tokenId) public override { if (owlTokenAddress != address(0)) { IOwlToken(owlTokenAddress).onNightOwlTransfer(from, to); } super.safeTransferFrom(from, to, tokenId); } // Override ERC721 function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public override { if (owlTokenAddress != address(0)) { IOwlToken(owlTokenAddress).onNightOwlTransfer(from, to); } super.safeTransferFrom(from, to, tokenId, data); } // // Collaborator Access // function setBaseURI(string memory uri) external onlyCollaborator { baseURI = uri; } function reduceMaxSupply(uint256 newMaxSupply) external onlyCollaborator { require(newMaxSupply >= 0 && newMaxSupply < maxSupply); require(newMaxSupply >= totalSupply()); maxSupply = newMaxSupply; } function reduceMintPrice(uint256 newPrice) external onlyCollaborator { require(newPrice >= 0 && newPrice < mintPrice); mintPrice = newPrice; } function reduceWhitelistMintPrice(uint256 newPrice) external onlyCollaborator { require(newPrice >= 0 && newPrice < whitelistMintPrice); whitelistMintPrice = newPrice; } function airDrop(address to, uint16 quantity) external onlyCollaborator { require(to != address(0)); require(quantity > 0); require(quantity <= remainingForMint()); uint256 ts = totalSupply(); for (uint16 i = 0; i < quantity; i++) { _safeMint(to, ts + i); } } function setMintIsActive(bool active) external onlyCollaborator { mintIsActive = active; } function setWhitelistMintIsActive(bool active) external onlyCollaborator { whitelistMintIsActive = active; } function setWhitelistMerkleRoot(bytes32 newRoot) external onlyCollaborator { whitelistMerkleRoot = newRoot; } function setPrepaidMintIsActive(bool active) external onlyCollaborator { prepaidMintIsActive = active; } function setPrepaidMerkleRoot(bytes32 newRoot, uint16 newReserved) external onlyCollaborator { require(newReserved <= maxSupply); prepaidMerkleRoot = newRoot; reservedForPrepaid = newReserved; } function setProxyRegistryAddress(address prAddress) external onlyCollaborator { proxyRegistryAddress = prAddress; } function setOwlTokenAddress(address newAddress) external onlyCollaborator { owlTokenAddress = newAddress; } function withdraw() external onlyCollaborator nonReentrant { uint256 balance = address(this).balance; uint256 developerBalance = balance.mul(developerPercentage).div(1000); uint256 collaboratorBalance = balance.sub(developerBalance); payable(projectWithdrawAddress).transfer(collaboratorBalance); payable(developerWithdrawAddress).transfer(developerBalance); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.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() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // 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 pragma solidity ^0.8.0; contract OwnableDelegateProxy {} contract ProxyRegistry { mapping(address => OwnableDelegateProxy) public proxies; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (access/Ownable.sol) pragma solidity ^0.8.0; import "./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 Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { 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 v4.4.0 (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = keccak256(abi.encodePacked(computedHash, proofElement)); } else { // Hash(current element of the proof + current computed hash) computedHash = keccak256(abi.encodePacked(proofElement, computedHash)); } } return computedHash; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface IOwlToken { function redeemTokens(address addr, uint256 amount) external; function onNightOwlTransfer(address from, address to) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.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 `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "./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`, 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 be 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: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * 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 Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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 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); /** * @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; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (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: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; import "./ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner)); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply()); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./IERC721Metadata.sol"; import "./Address.sol"; import "./Context.sol"; import "./Strings.sol"; import "./ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0)); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0)); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId)); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner); require(_msgSender() == owner || isApprovedForAll(owner, _msgSender())); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId)); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId)); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId)); _safeTransfer(from, to, tokenId, _data); } /** * @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. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data)); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId)); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require(_checkOnERC721Received(address(0), to, tokenId, _data)); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0)); require(!_exists(tokenId)); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from); require(to != address(0)); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (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.0 (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 pragma solidity ^0.8.0; import "./Ownable.sol"; import "./Address.sol"; abstract contract CollaborativeOwnable is Ownable { using Address for address; mapping(address => bool) private _collaborators; uint256 private _collaboratorCount; constructor() { } function isCollaborator(address collaboratorAddress) public view virtual returns (bool) { return _collaborators[collaboratorAddress]; } modifier onlyCollaborator() { require(owner() == _msgSender() || _collaborators[_msgSender()], "CO1"); _; } function addCollaborator(address collaboratorAddress) public onlyCollaborator { require(collaboratorAddress != address(0), "CO2"); require(!_collaborators[collaboratorAddress], "CO3"); _collaborators[collaboratorAddress] = true; _collaboratorCount++; } function removeCollaborator(address collaboratorAddress) public onlyCollaborator { require(collaboratorAddress != address(0), "CO4"); require(_collaborators[collaboratorAddress], "CO4"); require(_collaboratorCount > 1, "CO4"); _collaborators[collaboratorAddress] = false; _collaboratorCount--; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/Address.sol) pragma solidity ^0.8.0; /** * @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 * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 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 functionCall(target, data, "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"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(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) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(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) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason 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 { // 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 assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
{ "remappings": [], "optimizer": { "enabled": false, "runs": 20000 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_proxyRegistryAddress","type":"address"},{"internalType":"address","name":"_developerWithdrawAddress","type":"address"},{"internalType":"address","name":"_projectWithdrawAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"collaboratorAddress","type":"address"}],"name":"addCollaborator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint16","name":"quantity","type":"uint16"}],"name":"airDrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"developerPercentage","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"developerWithdrawAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"collaboratorAddress","type":"address"}],"name":"isCollaborator","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"quantity","type":"uint16"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintLimit","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owlTokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"prepaidMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"},{"internalType":"uint16","name":"quantity","type":"uint16"}],"name":"prepaidMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"prepaidMintIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"prepaidMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"projectWithdrawAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxyRegistryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMaxSupply","type":"uint256"}],"name":"reduceMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"reduceMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"reduceWhitelistMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"remainingForMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"collaboratorAddress","type":"address"}],"name":"removeCollaborator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reservedForPrepaid","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"active","type":"bool"}],"name":"setMintIsActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAddress","type":"address"}],"name":"setOwlTokenAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"newRoot","type":"bytes32"},{"internalType":"uint16","name":"newReserved","type":"uint16"}],"name":"setPrepaidMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"active","type":"bool"}],"name":"setPrepaidMintIsActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"prAddress","type":"address"}],"name":"setProxyRegistryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"newRoot","type":"bytes32"}],"name":"setWhitelistMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"active","type":"bool"}],"name":"setWhitelistMintIsActive","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":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"whitelistMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"},{"internalType":"uint16","name":"quantity","type":"uint16"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"whitelistMintIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistMintLimit","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistMinted","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052610974600e5560405180602001604052806000815250600f908051906020019062000031929190620004ae565b506000601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555066b1a2bc2ec500006012556004601360006101000a81548161ffff021916908361ffff1602179055506000601360026101000a81548160ff02191690831515021790555066b1a2bc2ec500006016556002601760006101000a81548161ffff021916908361ffff1602179055506000601760026101000a81548160ff0219169083151502179055506000601a60006101000a81548160ff0219169083151502179055506000601a60016101000a81548161ffff021916908361ffff1602179055506000601a60036101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000601b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550609b601b60146101000a81548161ffff021916908361ffff1602179055503480156200022657600080fd5b506040516200630a3803806200630a83398181016040528101906200024c9190620005c8565b6040518060400160405280600a81526020017f4e69676874204f776c73000000000000000000000000000000000000000000008152506040518060400160405280600481526020017f4f574c53000000000000000000000000000000000000000000000000000000008152508160009080519060200190620002d0929190620004ae565b508060019080519060200190620002e9929190620004ae565b5050506200030c62000300620003e060201b60201c565b620003e860201b60201c565b6001600d8190555082601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081601b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080601a60036101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505062000689565b600033905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620004bc9062000653565b90600052602060002090601f016020900481019282620004e057600085556200052c565b82601f10620004fb57805160ff19168380011785556200052c565b828001600101855582156200052c579182015b828111156200052b5782518255916020019190600101906200050e565b5b5090506200053b91906200053f565b5090565b5b808211156200055a57600081600090555060010162000540565b5090565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620005908262000563565b9050919050565b620005a28162000583565b8114620005ae57600080fd5b50565b600081519050620005c28162000597565b92915050565b600080600060608486031215620005e457620005e36200055e565b5b6000620005f486828701620005b1565b93505060206200060786828701620005b1565b92505060406200061a86828701620005b1565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200066c57607f821691505b6020821081141562000683576200068262000624565b5b50919050565b615c7180620006996000396000f3fe6080604052600436106103815760003560e01c806373532802116101d1578063b821915911610102578063d19653fb116100a0578063ddd1783a1161006f578063ddd1783a14610ce0578063e985e9c514610d0b578063ee483f7214610d48578063f2fde38b14610d7157610381565b8063d19653fb14610c38578063d26ea6c014610c61578063d5abeb0114610c8a578063d6e7bec414610cb557610381565b8063c83be22b116100dc578063c83be22b14610b7c578063c87b56dd14610ba7578063ccdbe6a614610be4578063cd7c032614610c0d57610381565b8063b821915914610b01578063b88d4fde14610b2a578063bd32fb6614610b5357610381565b806398a8cffe1161016f578063a22cb46511610149578063a22cb46514610a57578063a49a7a2014610a80578063aa98e0c614610aab578063ac8f1e0614610ad657610381565b806398a8cffe146109c6578063996517cf14610a035780639d91a6c514610a2e57610381565b80638d5307b3116101ab5780638d5307b31461092b5780638da5cb5b14610954578063938da7711461097f57806395d89b411461099b57610381565b806373532802146108ae578063791d04db146108d7578063863a8e9a1461090257610381565b806335c6aaf8116102b65780635171f43a116102545780636af8c4e7116102235780636af8c4e7146107f25780636c0360eb1461082f57806370a082311461085a578063715018a61461089757610381565b80635171f43a1461073657806355f804b3146107615780636352211e1461078a5780636817c76c146107c757610381565b806342842e0e1161029057806342842e0e1461067a578063471a4294146106a35780634e7aa2df146106ce5780634f6ccce7146106f957610381565b806335c6aaf81461060f578063369e40b31461063a5780633ccfd60b1461066357610381565b80631cf266841161032357806323cf0a22116102fd57806323cf0a22146105645780632f745c59146105805780633109c19d146105bd57806332eb569e146105e657610381565b80631cf26684146104e75780631e23e36c1461051057806323b872dd1461053b57610381565b8063081812fc1161035f578063081812fc14610419578063095ea7b3146104565780630c037a831461047f57806318160ddd146104bc57610381565b806301ffc9a71461038657806306bf3051146103c357806306fdde03146103ee575b600080fd5b34801561039257600080fd5b506103ad60048036038101906103a891906148bf565b610d9a565b6040516103ba9190614907565b60405180910390f35b3480156103cf57600080fd5b506103d8610e14565b6040516103e5919061493f565b60405180910390f35b3480156103fa57600080fd5b50610403610e28565b60405161041091906149f3565b60405180910390f35b34801561042557600080fd5b50610440600480360381019061043b9190614a4b565b610eba565b60405161044d9190614ab9565b60405180910390f35b34801561046257600080fd5b5061047d60048036038101906104789190614b00565b610f09565b005b34801561048b57600080fd5b506104a660048036038101906104a19190614b40565b610fb5565b6040516104b39190614907565b60405180910390f35b3480156104c857600080fd5b506104d1610fd5565b6040516104de9190614b7c565b60405180910390f35b3480156104f357600080fd5b5061050e60048036038101906105099190614bc3565b610fe2565b005b34801561051c57600080fd5b5061052561116d565b6040516105329190614ab9565b60405180910390f35b34801561054757600080fd5b50610562600480360381019061055d9190614c03565b611193565b005b61057e60048036038101906105799190614c56565b611289565b005b34801561058c57600080fd5b506105a760048036038101906105a29190614b00565b61138a565b6040516105b49190614b7c565b60405180910390f35b3480156105c957600080fd5b506105e460048036038101906105df9190614b40565b6113f9565b005b3480156105f257600080fd5b5061060d60048036038101906106089190614ce8565b611684565b005b34801561061b57600080fd5b5061062461192b565b6040516106319190614b7c565b60405180910390f35b34801561064657600080fd5b50610661600480360381019061065c9190614d7e565b611931565b005b34801561066f57600080fd5b50610678611a43565b005b34801561068657600080fd5b506106a1600480360381019061069c9190614c03565b611c6c565b005b3480156106af57600080fd5b506106b8611d62565b6040516106c59190614907565b60405180910390f35b3480156106da57600080fd5b506106e3611d75565b6040516106f0919061493f565b60405180910390f35b34801561070557600080fd5b50610720600480360381019061071b9190614a4b565b611d89565b60405161072d9190614b7c565b60405180910390f35b34801561074257600080fd5b5061074b611dc4565b6040516107589190614ab9565b60405180910390f35b34801561076d57600080fd5b5061078860048036038101906107839190614eee565b611dea565b005b34801561079657600080fd5b506107b160048036038101906107ac9190614a4b565b611edb565b6040516107be9190614ab9565b60405180910390f35b3480156107d357600080fd5b506107dc611f57565b6040516107e99190614b7c565b60405180910390f35b3480156107fe57600080fd5b5061081960048036038101906108149190614b40565b611f5d565b6040516108269190614907565b60405180910390f35b34801561083b57600080fd5b50610844611fb3565b60405161085191906149f3565b60405180910390f35b34801561086657600080fd5b50610881600480360381019061087c9190614b40565b612041565b60405161088e9190614b7c565b60405180910390f35b3480156108a357600080fd5b506108ac6120c3565b005b3480156108ba57600080fd5b506108d560048036038101906108d09190614a4b565b61214b565b005b3480156108e357600080fd5b506108ec61225b565b6040516108f99190614907565b60405180910390f35b34801561090e57600080fd5b5061092960048036038101906109249190614a4b565b61226e565b005b34801561093757600080fd5b50610952600480360381019061094d9190614f63565b61236a565b005b34801561096057600080fd5b5061096961245e565b6040516109769190614ab9565b60405180910390f35b61099960048036038101906109949190614ce8565b612488565b005b3480156109a757600080fd5b506109b0612735565b6040516109bd91906149f3565b60405180910390f35b3480156109d257600080fd5b506109ed60048036038101906109e89190614b40565b6127c7565b6040516109fa919061493f565b60405180910390f35b348015610a0f57600080fd5b50610a186127e8565b604051610a25919061493f565b60405180910390f35b348015610a3a57600080fd5b50610a556004803603810190610a509190614a4b565b6127fc565b005b348015610a6357600080fd5b50610a7e6004803603810190610a799190614f90565b6128f8565b005b348015610a8c57600080fd5b50610a9561290e565b604051610aa29190614b7c565b60405180910390f35b348015610ab757600080fd5b50610ac0612962565b604051610acd9190614fdf565b60405180910390f35b348015610ae257600080fd5b50610aeb612968565b604051610af89190614907565b60405180910390f35b348015610b0d57600080fd5b50610b286004803603810190610b239190614f63565b61297b565b005b348015610b3657600080fd5b50610b516004803603810190610b4c919061509b565b612a6f565b005b348015610b5f57600080fd5b50610b7a6004803603810190610b75919061511e565b612b67565b005b348015610b8857600080fd5b50610b91612c48565b604051610b9e9190614fdf565b60405180910390f35b348015610bb357600080fd5b50610bce6004803603810190610bc99190614a4b565b612c4e565b604051610bdb91906149f3565b60405180910390f35b348015610bf057600080fd5b50610c0b6004803603810190610c069190614b40565b612ce5565b005b348015610c1957600080fd5b50610c22612f2c565b604051610c2f9190614ab9565b60405180910390f35b348015610c4457600080fd5b50610c5f6004803603810190610c5a9190614f63565b612f52565b005b348015610c6d57600080fd5b50610c886004803603810190610c839190614b40565b613046565b005b348015610c9657600080fd5b50610c9f613161565b604051610cac9190614b7c565b60405180910390f35b348015610cc157600080fd5b50610cca613167565b604051610cd79190614ab9565b60405180910390f35b348015610cec57600080fd5b50610cf561318d565b604051610d02919061493f565b60405180910390f35b348015610d1757600080fd5b50610d326004803603810190610d2d919061514b565b6131a1565b604051610d3f9190614907565b60405180910390f35b348015610d5457600080fd5b50610d6f6004803603810190610d6a9190614b40565b6132eb565b005b348015610d7d57600080fd5b50610d986004803603810190610d939190614b40565b613406565b005b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610e0d5750610e0c826134fe565b5b9050919050565b601a60019054906101000a900461ffff1681565b606060008054610e37906151ba565b80601f0160208091040260200160405190810160405280929190818152602001828054610e63906151ba565b8015610eb05780601f10610e8557610100808354040283529160200191610eb0565b820191906000526020600020905b815481529060010190602001808311610e9357829003601f168201915b5050505050905090565b6000610ec5826135e0565b610ece57600080fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610f1482611edb565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610f4f57600080fd5b8073ffffffffffffffffffffffffffffffffffffffff16610f6e61364c565b73ffffffffffffffffffffffffffffffffffffffff161480610f9d5750610f9c81610f9761364c565b6131a1565b5b610fa657600080fd5b610fb08383613654565b505050565b60186020528060005260406000206000915054906101000a900460ff1681565b6000600880549050905090565b610fea61364c565b73ffffffffffffffffffffffffffffffffffffffff1661100861245e565b73ffffffffffffffffffffffffffffffffffffffff16148061107a5750600b600061103161364c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b6110b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110b090615238565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156110f357600080fd5b60008161ffff161161110457600080fd5b61110c61290e565b8161ffff16111561111c57600080fd5b6000611126610fd5565b905060005b8261ffff168161ffff16101561116757611154848261ffff168461114f9190615287565b61370d565b808061115f906152dd565b91505061112b565b50505050565b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600073ffffffffffffffffffffffffffffffffffffffff16601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461127957601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16637b35185584846040518363ffffffff1660e01b8152600401611246929190615308565b600060405180830381600087803b15801561126057600080fd5b505af1158015611274573d6000803e3d6000fd5b505050505b61128483838361372b565b505050565b6002600d54141561129957600080fd5b6002600d81905550601360029054906101000a900460ff166112ba57600080fd5b60008161ffff161180156112e65750601360009054906101000a900461ffff1661ffff168161ffff1611155b80156112fd57506112f561290e565b8161ffff1611155b61130657600080fd5b61131f8161ffff1660125461375590919063ffffffff16565b34101561132b57600080fd5b6000611335610fd5565b905060005b8261ffff168161ffff16101561137d5761136a61135561364c565b8261ffff16846113659190615287565b61370d565b8080611375906152dd565b91505061133a565b50506001600d8190555050565b600061139583612041565b82106113a057600080fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b61140161364c565b73ffffffffffffffffffffffffffffffffffffffff1661141f61245e565b73ffffffffffffffffffffffffffffffffffffffff1614806114915750600b600061144861364c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b6114d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114c790615238565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611540576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115379061537d565b60405180910390fd5b600b60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166115cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115c39061537d565b60405180910390fd5b6001600c5411611611576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116089061537d565b60405180910390fd5b6000600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550600c600081548092919061167c9061539d565b919050555050565b6002600d54141561169457600080fd5b6002600d81905550601a60009054906101000a900460ff166116b557600080fd5b60008161ffff161180156116e15750601a60019054906101000a900461ffff1661ffff168161ffff1611155b6116ea57600080fd5b601860006116f661364c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161561174857600080fd5b600061175261364c565b8261ffff16604051602001611768929190615430565b6040516020818303038152906040528051906020012090506117ce848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506019548361376b565b61180d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611804906154a8565b60405180910390fd5b6000611817610fd5565b9050600e546118338461ffff168361378290919063ffffffff16565b111561183e57600080fd5b60005b8361ffff168161ffff1610156118845761187161185c61364c565b8261ffff168461186c9190615287565b61370d565b808061187c906152dd565b915050611841565b5060016018600061189361364c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555082601a60019054906101000a900461ffff1661190091906154c8565b601a60016101000a81548161ffff021916908361ffff16021790555050506001600d81905550505050565b60165481565b61193961364c565b73ffffffffffffffffffffffffffffffffffffffff1661195761245e565b73ffffffffffffffffffffffffffffffffffffffff1614806119c95750600b600061198061364c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b611a08576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119ff90615238565b60405180910390fd5b600e548161ffff161115611a1b57600080fd5b8160198190555080601a60016101000a81548161ffff021916908361ffff1602179055505050565b611a4b61364c565b73ffffffffffffffffffffffffffffffffffffffff16611a6961245e565b73ffffffffffffffffffffffffffffffffffffffff161480611adb5750600b6000611a9261364c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b611b1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b1190615238565b60405180910390fd5b6002600d541415611b2a57600080fd5b6002600d8190555060004790506000611b746103e8611b66601b60149054906101000a900461ffff1661ffff168561375590919063ffffffff16565b61379890919063ffffffff16565b90506000611b8b82846137ae90919063ffffffff16565b9050601a60039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611bf5573d6000803e3d6000fd5b50601b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f19350505050158015611c5e573d6000803e3d6000fd5b505050506001600d81905550565b600073ffffffffffffffffffffffffffffffffffffffff16601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611d5257601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16637b35185584846040518363ffffffff1660e01b8152600401611d1f929190615308565b600060405180830381600087803b158015611d3957600080fd5b505af1158015611d4d573d6000803e3d6000fd5b505050505b611d5d8383836137c4565b505050565b601360029054906101000a900460ff1681565b601b60149054906101000a900461ffff1681565b6000611d93610fd5565b8210611d9e57600080fd5b60088281548110611db257611db16154fc565b5b90600052602060002001549050919050565b601b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611df261364c565b73ffffffffffffffffffffffffffffffffffffffff16611e1061245e565b73ffffffffffffffffffffffffffffffffffffffff161480611e825750600b6000611e3961364c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b611ec1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eb890615238565b60405180910390fd5b80600f9080519060200190611ed79291906147b0565b5050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611f4e57600080fd5b80915050919050565b60125481565b6000600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b600f8054611fc0906151ba565b80601f0160208091040260200160405190810160405280929190818152602001828054611fec906151ba565b80156120395780601f1061200e57610100808354040283529160200191612039565b820191906000526020600020905b81548152906001019060200180831161201c57829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561207c57600080fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6120cb61364c565b73ffffffffffffffffffffffffffffffffffffffff166120e961245e565b73ffffffffffffffffffffffffffffffffffffffff161461213f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161213690615577565b60405180910390fd5b61214960006137e4565b565b61215361364c565b73ffffffffffffffffffffffffffffffffffffffff1661217161245e565b73ffffffffffffffffffffffffffffffffffffffff1614806121e35750600b600061219a61364c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b612222576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161221990615238565b60405180910390fd5b600081101580156122345750600e5481105b61223d57600080fd5b612245610fd5565b81101561225157600080fd5b80600e8190555050565b601760029054906101000a900460ff1681565b61227661364c565b73ffffffffffffffffffffffffffffffffffffffff1661229461245e565b73ffffffffffffffffffffffffffffffffffffffff1614806123065750600b60006122bd61364c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b612345576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161233c90615238565b60405180910390fd5b60008110158015612357575060165481105b61236057600080fd5b8060168190555050565b61237261364c565b73ffffffffffffffffffffffffffffffffffffffff1661239061245e565b73ffffffffffffffffffffffffffffffffffffffff1614806124025750600b60006123b961364c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b612441576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161243890615238565b60405180910390fd5b80601a60006101000a81548160ff02191690831515021790555050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6002600d54141561249857600080fd5b6002600d81905550601760029054906101000a900460ff166124b957600080fd5b60008161ffff161180156124e55750601760009054906101000a900461ffff1661ffff168161ffff1611155b80156124fc57506124f461290e565b8161ffff1611155b61250557600080fd5b61251e8161ffff1660165461375590919063ffffffff16565b34101561252a57600080fd5b60006014600061253861364c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900461ffff169050601760009054906101000a900461ffff1661ffff168161ffff16106125a757600080fd5b60006125b161364c565b6040516020016125c19190615597565b604051602081830303815290604052805190602001209050612627858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506015548361376b565b612666576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161265d906155fe565b60405180910390fd5b6000612670610fd5565b905060005b8461ffff168161ffff1610156126b8576126a561269061364c565b8261ffff16846126a09190615287565b61370d565b80806126b0906152dd565b915050612675565b5083836126c5919061561e565b601460006126d161364c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548161ffff021916908361ffff1602179055505050506001600d81905550505050565b606060018054612744906151ba565b80601f0160208091040260200160405190810160405280929190818152602001828054612770906151ba565b80156127bd5780601f10612792576101008083540402835291602001916127bd565b820191906000526020600020905b8154815290600101906020018083116127a057829003601f168201915b5050505050905090565b60146020528060005260406000206000915054906101000a900461ffff1681565b601360009054906101000a900461ffff1681565b61280461364c565b73ffffffffffffffffffffffffffffffffffffffff1661282261245e565b73ffffffffffffffffffffffffffffffffffffffff1614806128945750600b600061284b61364c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b6128d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128ca90615238565b60405180910390fd5b600081101580156128e5575060125481105b6128ee57600080fd5b8060128190555050565b61290a61290361364c565b83836138aa565b5050565b600080612919610fd5565b90506000612958612947601a60019054906101000a900461ffff1661ffff168461378290919063ffffffff16565b600e546137ae90919063ffffffff16565b9050809250505090565b60155481565b601a60009054906101000a900460ff1681565b61298361364c565b73ffffffffffffffffffffffffffffffffffffffff166129a161245e565b73ffffffffffffffffffffffffffffffffffffffff161480612a135750600b60006129ca61364c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b612a52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a4990615238565b60405180910390fd5b80601760026101000a81548160ff02191690831515021790555050565b600073ffffffffffffffffffffffffffffffffffffffff16601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614612b5557601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16637b35185585856040518363ffffffff1660e01b8152600401612b22929190615308565b600060405180830381600087803b158015612b3c57600080fd5b505af1158015612b50573d6000803e3d6000fd5b505050505b612b61848484846139e1565b50505050565b612b6f61364c565b73ffffffffffffffffffffffffffffffffffffffff16612b8d61245e565b73ffffffffffffffffffffffffffffffffffffffff161480612bff5750600b6000612bb661364c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b612c3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c3590615238565b60405180910390fd5b8060158190555050565b60195481565b6060612c59826135e0565b612c6257600080fd5b6000612c6c613a0d565b90506000815111612cb2576040518060400160405280600581526020017f2e6a736f6e000000000000000000000000000000000000000000000000000000815250612cdd565b80612cbc84613a9f565b604051602001612ccd9291906156de565b6040516020818303038152906040525b915050919050565b612ced61364c565b73ffffffffffffffffffffffffffffffffffffffff16612d0b61245e565b73ffffffffffffffffffffffffffffffffffffffff161480612d7d5750600b6000612d3461364c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b612dbc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612db390615238565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612e2c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e2390615759565b60405180910390fd5b600b60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615612eb9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612eb0906157c5565b60405180910390fd5b6001600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550600c6000815480929190612f24906157e5565b919050555050565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b612f5a61364c565b73ffffffffffffffffffffffffffffffffffffffff16612f7861245e565b73ffffffffffffffffffffffffffffffffffffffff161480612fea5750600b6000612fa161364c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b613029576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161302090615238565b60405180910390fd5b80601360026101000a81548160ff02191690831515021790555050565b61304e61364c565b73ffffffffffffffffffffffffffffffffffffffff1661306c61245e565b73ffffffffffffffffffffffffffffffffffffffff1614806130de5750600b600061309561364c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b61311d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161311490615238565b60405180910390fd5b80601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600e5481565b601a60039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b601760009054906101000a900461ffff1681565b60008073ffffffffffffffffffffffffffffffffffffffff16601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146132d8576000601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1663c4552791866040518263ffffffff1660e01b815260040161326f9190614ab9565b602060405180830381865afa15801561328c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132b0919061586c565b73ffffffffffffffffffffffffffffffffffffffff1614156132d65760019150506132e5565b505b6132e28383613c00565b90505b92915050565b6132f361364c565b73ffffffffffffffffffffffffffffffffffffffff1661331161245e565b73ffffffffffffffffffffffffffffffffffffffff1614806133835750600b600061333a61364c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b6133c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133b990615238565b60405180910390fd5b80601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61340e61364c565b73ffffffffffffffffffffffffffffffffffffffff1661342c61245e565b73ffffffffffffffffffffffffffffffffffffffff1614613482576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161347990615577565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156134f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134e99061590b565b60405180910390fd5b6134fb816137e4565b50565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806135c957507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806135d957506135d882613c94565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166136c783611edb565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b613727828260405180602001604052806000815250613cfe565b5050565b61373c61373661364c565b82613d23565b61374557600080fd5b613750838383613dcb565b505050565b60008183613763919061592b565b905092915050565b6000826137788584613fbb565b1490509392505050565b600081836137909190615287565b905092915050565b600081836137a691906159b4565b905092915050565b600081836137bc91906159e5565b905092915050565b6137df83838360405180602001604052806000815250612a6f565b505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156138e357600080fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516139d49190614907565b60405180910390a3505050565b6139f26139ec61364c565b83613d23565b6139fb57600080fd5b613a078484848461406e565b50505050565b6060600f8054613a1c906151ba565b80601f0160208091040260200160405190810160405280929190818152602001828054613a48906151ba565b8015613a955780601f10613a6a57610100808354040283529160200191613a95565b820191906000526020600020905b815481529060010190602001808311613a7857829003601f168201915b5050505050905090565b60606000821415613ae7576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613bfb565b600082905060005b60008214613b19578080613b02906157e5565b915050600a82613b1291906159b4565b9150613aef565b60008167ffffffffffffffff811115613b3557613b34614dc3565b5b6040519080825280601f01601f191660200182016040528015613b675781602001600182028036833780820191505090505b5090505b60008514613bf457600182613b8091906159e5565b9150600a85613b8f9190615a19565b6030613b9b9190615287565b60f81b818381518110613bb157613bb06154fc565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85613bed91906159b4565b9450613b6b565b8093505050505b919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b613d088383614094565b613d1560008484846141f6565b613d1e57600080fd5b505050565b6000613d2e826135e0565b613d3757600080fd5b6000613d4283611edb565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480613db157508373ffffffffffffffffffffffffffffffffffffffff16613d9984610eba565b73ffffffffffffffffffffffffffffffffffffffff16145b80613dc25750613dc181856131a1565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16613deb82611edb565b73ffffffffffffffffffffffffffffffffffffffff1614613e0b57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613e4557600080fd5b613e5083838361437e565b613e5b600082613654565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254613eab91906159e5565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254613f029190615287565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60008082905060005b8451811015614063576000858281518110613fe257613fe16154fc565b5b60200260200101519050808311614023578281604051602001614006929190615a6b565b60405160208183030381529060405280519060200120925061404f565b8083604051602001614036929190615a6b565b6040516020818303038152906040528051906020012092505b50808061405b906157e5565b915050613fc4565b508091505092915050565b614079848484613dcb565b614085848484846141f6565b61408e57600080fd5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156140ce57600080fd5b6140d7816135e0565b156140e157600080fd5b6140ed6000838361437e565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461413d9190615287565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b60006142178473ffffffffffffffffffffffffffffffffffffffff16614492565b15614371578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261424061364c565b8786866040518563ffffffff1660e01b81526004016142629493929190615aec565b6020604051808303816000875af192505050801561429e57506040513d601f19601f8201168201806040525081019061429b9190615b4d565b60015b614321573d80600081146142ce576040519150601f19603f3d011682016040523d82523d6000602084013e6142d3565b606091505b50600081511415614319576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161431090615bec565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050614376565b600190505b949350505050565b6143898383836144a5565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156143cc576143c7816144aa565b61440b565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461440a5761440983826144f3565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561444e5761444981614660565b61448d565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161461448c5761448b8282614731565b5b5b505050565b600080823b905060008111915050919050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000600161450084612041565b61450a91906159e5565b90506000600760008481526020019081526020016000205490508181146145ef576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b6000600160088054905061467491906159e5565b90506000600960008481526020019081526020016000205490506000600883815481106146a4576146a36154fc565b5b9060005260206000200154905080600883815481106146c6576146c56154fc565b5b90600052602060002001819055508160096000838152602001908152602001600020819055506009600085815260200190815260200160002060009055600880548061471557614714615c0c565b5b6001900381819060005260206000200160009055905550505050565b600061473c83612041565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b8280546147bc906151ba565b90600052602060002090601f0160209004810192826147de5760008555614825565b82601f106147f757805160ff1916838001178555614825565b82800160010185558215614825579182015b82811115614824578251825591602001919060010190614809565b5b5090506148329190614836565b5090565b5b8082111561484f576000816000905550600101614837565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61489c81614867565b81146148a757600080fd5b50565b6000813590506148b981614893565b92915050565b6000602082840312156148d5576148d461485d565b5b60006148e3848285016148aa565b91505092915050565b60008115159050919050565b614901816148ec565b82525050565b600060208201905061491c60008301846148f8565b92915050565b600061ffff82169050919050565b61493981614922565b82525050565b60006020820190506149546000830184614930565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015614994578082015181840152602081019050614979565b838111156149a3576000848401525b50505050565b6000601f19601f8301169050919050565b60006149c58261495a565b6149cf8185614965565b93506149df818560208601614976565b6149e8816149a9565b840191505092915050565b60006020820190508181036000830152614a0d81846149ba565b905092915050565b6000819050919050565b614a2881614a15565b8114614a3357600080fd5b50565b600081359050614a4581614a1f565b92915050565b600060208284031215614a6157614a6061485d565b5b6000614a6f84828501614a36565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000614aa382614a78565b9050919050565b614ab381614a98565b82525050565b6000602082019050614ace6000830184614aaa565b92915050565b614add81614a98565b8114614ae857600080fd5b50565b600081359050614afa81614ad4565b92915050565b60008060408385031215614b1757614b1661485d565b5b6000614b2585828601614aeb565b9250506020614b3685828601614a36565b9150509250929050565b600060208284031215614b5657614b5561485d565b5b6000614b6484828501614aeb565b91505092915050565b614b7681614a15565b82525050565b6000602082019050614b916000830184614b6d565b92915050565b614ba081614922565b8114614bab57600080fd5b50565b600081359050614bbd81614b97565b92915050565b60008060408385031215614bda57614bd961485d565b5b6000614be885828601614aeb565b9250506020614bf985828601614bae565b9150509250929050565b600080600060608486031215614c1c57614c1b61485d565b5b6000614c2a86828701614aeb565b9350506020614c3b86828701614aeb565b9250506040614c4c86828701614a36565b9150509250925092565b600060208284031215614c6c57614c6b61485d565b5b6000614c7a84828501614bae565b91505092915050565b600080fd5b600080fd5b600080fd5b60008083601f840112614ca857614ca7614c83565b5b8235905067ffffffffffffffff811115614cc557614cc4614c88565b5b602083019150836020820283011115614ce157614ce0614c8d565b5b9250929050565b600080600060408486031215614d0157614d0061485d565b5b600084013567ffffffffffffffff811115614d1f57614d1e614862565b5b614d2b86828701614c92565b93509350506020614d3e86828701614bae565b9150509250925092565b6000819050919050565b614d5b81614d48565b8114614d6657600080fd5b50565b600081359050614d7881614d52565b92915050565b60008060408385031215614d9557614d9461485d565b5b6000614da385828601614d69565b9250506020614db485828601614bae565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b614dfb826149a9565b810181811067ffffffffffffffff82111715614e1a57614e19614dc3565b5b80604052505050565b6000614e2d614853565b9050614e398282614df2565b919050565b600067ffffffffffffffff821115614e5957614e58614dc3565b5b614e62826149a9565b9050602081019050919050565b82818337600083830152505050565b6000614e91614e8c84614e3e565b614e23565b905082815260208101848484011115614ead57614eac614dbe565b5b614eb8848285614e6f565b509392505050565b600082601f830112614ed557614ed4614c83565b5b8135614ee5848260208601614e7e565b91505092915050565b600060208284031215614f0457614f0361485d565b5b600082013567ffffffffffffffff811115614f2257614f21614862565b5b614f2e84828501614ec0565b91505092915050565b614f40816148ec565b8114614f4b57600080fd5b50565b600081359050614f5d81614f37565b92915050565b600060208284031215614f7957614f7861485d565b5b6000614f8784828501614f4e565b91505092915050565b60008060408385031215614fa757614fa661485d565b5b6000614fb585828601614aeb565b9250506020614fc685828601614f4e565b9150509250929050565b614fd981614d48565b82525050565b6000602082019050614ff46000830184614fd0565b92915050565b600067ffffffffffffffff82111561501557615014614dc3565b5b61501e826149a9565b9050602081019050919050565b600061503e61503984614ffa565b614e23565b90508281526020810184848401111561505a57615059614dbe565b5b615065848285614e6f565b509392505050565b600082601f83011261508257615081614c83565b5b813561509284826020860161502b565b91505092915050565b600080600080608085870312156150b5576150b461485d565b5b60006150c387828801614aeb565b94505060206150d487828801614aeb565b93505060406150e587828801614a36565b925050606085013567ffffffffffffffff81111561510657615105614862565b5b6151128782880161506d565b91505092959194509250565b6000602082840312156151345761513361485d565b5b600061514284828501614d69565b91505092915050565b600080604083850312156151625761516161485d565b5b600061517085828601614aeb565b925050602061518185828601614aeb565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806151d257607f821691505b602082108114156151e6576151e561518b565b5b50919050565b7f434f310000000000000000000000000000000000000000000000000000000000600082015250565b6000615222600383614965565b915061522d826151ec565b602082019050919050565b6000602082019050818103600083015261525181615215565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061529282614a15565b915061529d83614a15565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156152d2576152d1615258565b5b828201905092915050565b60006152e882614922565b915061ffff8214156152fd576152fc615258565b5b600182019050919050565b600060408201905061531d6000830185614aaa565b61532a6020830184614aaa565b9392505050565b7f434f340000000000000000000000000000000000000000000000000000000000600082015250565b6000615367600383614965565b915061537282615331565b602082019050919050565b600060208201905081810360008301526153968161535a565b9050919050565b60006153a882614a15565b915060008214156153bc576153bb615258565b5b600182039050919050565b60008160601b9050919050565b60006153df826153c7565b9050919050565b60006153f1826153d4565b9050919050565b61540961540482614a98565b6153e6565b82525050565b6000819050919050565b61542a61542582614a15565b61540f565b82525050565b600061543c82856153f8565b60148201915061544c8284615419565b6020820191508190509392505050565b7f3200000000000000000000000000000000000000000000000000000000000000600082015250565b6000615492600183614965565b915061549d8261545c565b602082019050919050565b600060208201905081810360008301526154c181615485565b9050919050565b60006154d382614922565b91506154de83614922565b9250828210156154f1576154f0615258565b5b828203905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000615561602083614965565b915061556c8261552b565b602082019050919050565b6000602082019050818103600083015261559081615554565b9050919050565b60006155a382846153f8565b60148201915081905092915050565b7f3100000000000000000000000000000000000000000000000000000000000000600082015250565b60006155e8600183614965565b91506155f3826155b2565b602082019050919050565b60006020820190508181036000830152615617816155db565b9050919050565b600061562982614922565b915061563483614922565b92508261ffff0382111561564b5761564a615258565b5b828201905092915050565b600081905092915050565b600061566c8261495a565b6156768185615656565b9350615686818560208601614976565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b60006156c8600583615656565b91506156d382615692565b600582019050919050565b60006156ea8285615661565b91506156f68284615661565b9150615701826156bb565b91508190509392505050565b7f434f320000000000000000000000000000000000000000000000000000000000600082015250565b6000615743600383614965565b915061574e8261570d565b602082019050919050565b6000602082019050818103600083015261577281615736565b9050919050565b7f434f330000000000000000000000000000000000000000000000000000000000600082015250565b60006157af600383614965565b91506157ba82615779565b602082019050919050565b600060208201905081810360008301526157de816157a2565b9050919050565b60006157f082614a15565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561582357615822615258565b5b600182019050919050565b600061583982614a98565b9050919050565b6158498161582e565b811461585457600080fd5b50565b60008151905061586681615840565b92915050565b6000602082840312156158825761588161485d565b5b600061589084828501615857565b91505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006158f5602683614965565b915061590082615899565b604082019050919050565b60006020820190508181036000830152615924816158e8565b9050919050565b600061593682614a15565b915061594183614a15565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561597a57615979615258565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006159bf82614a15565b91506159ca83614a15565b9250826159da576159d9615985565b5b828204905092915050565b60006159f082614a15565b91506159fb83614a15565b925082821015615a0e57615a0d615258565b5b828203905092915050565b6000615a2482614a15565b9150615a2f83614a15565b925082615a3f57615a3e615985565b5b828206905092915050565b6000819050919050565b615a65615a6082614d48565b615a4a565b82525050565b6000615a778285615a54565b602082019150615a878284615a54565b6020820191508190509392505050565b600081519050919050565b600082825260208201905092915050565b6000615abe82615a97565b615ac88185615aa2565b9350615ad8818560208601614976565b615ae1816149a9565b840191505092915050565b6000608082019050615b016000830187614aaa565b615b0e6020830186614aaa565b615b1b6040830185614b6d565b8181036060830152615b2d8184615ab3565b905095945050505050565b600081519050615b4781614893565b92915050565b600060208284031215615b6357615b6261485d565b5b6000615b7184828501615b38565b91505092915050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000615bd6603283614965565b9150615be182615b7a565b604082019050919050565b60006020820190508181036000830152615c0581615bc9565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea26469706673582212207804f60f3dc38f0fcef56ccd8f291ebb317bb1aab0b43e0d995d5e1b5564ecfc64736f6c634300080a0033000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c10000000000000000000000003bd412742678c7cd46da5141d19d02ffa41440e8000000000000000000000000d280a97023de886931db36ba30b40f4d169b0077
Deployed Bytecode
0x6080604052600436106103815760003560e01c806373532802116101d1578063b821915911610102578063d19653fb116100a0578063ddd1783a1161006f578063ddd1783a14610ce0578063e985e9c514610d0b578063ee483f7214610d48578063f2fde38b14610d7157610381565b8063d19653fb14610c38578063d26ea6c014610c61578063d5abeb0114610c8a578063d6e7bec414610cb557610381565b8063c83be22b116100dc578063c83be22b14610b7c578063c87b56dd14610ba7578063ccdbe6a614610be4578063cd7c032614610c0d57610381565b8063b821915914610b01578063b88d4fde14610b2a578063bd32fb6614610b5357610381565b806398a8cffe1161016f578063a22cb46511610149578063a22cb46514610a57578063a49a7a2014610a80578063aa98e0c614610aab578063ac8f1e0614610ad657610381565b806398a8cffe146109c6578063996517cf14610a035780639d91a6c514610a2e57610381565b80638d5307b3116101ab5780638d5307b31461092b5780638da5cb5b14610954578063938da7711461097f57806395d89b411461099b57610381565b806373532802146108ae578063791d04db146108d7578063863a8e9a1461090257610381565b806335c6aaf8116102b65780635171f43a116102545780636af8c4e7116102235780636af8c4e7146107f25780636c0360eb1461082f57806370a082311461085a578063715018a61461089757610381565b80635171f43a1461073657806355f804b3146107615780636352211e1461078a5780636817c76c146107c757610381565b806342842e0e1161029057806342842e0e1461067a578063471a4294146106a35780634e7aa2df146106ce5780634f6ccce7146106f957610381565b806335c6aaf81461060f578063369e40b31461063a5780633ccfd60b1461066357610381565b80631cf266841161032357806323cf0a22116102fd57806323cf0a22146105645780632f745c59146105805780633109c19d146105bd57806332eb569e146105e657610381565b80631cf26684146104e75780631e23e36c1461051057806323b872dd1461053b57610381565b8063081812fc1161035f578063081812fc14610419578063095ea7b3146104565780630c037a831461047f57806318160ddd146104bc57610381565b806301ffc9a71461038657806306bf3051146103c357806306fdde03146103ee575b600080fd5b34801561039257600080fd5b506103ad60048036038101906103a891906148bf565b610d9a565b6040516103ba9190614907565b60405180910390f35b3480156103cf57600080fd5b506103d8610e14565b6040516103e5919061493f565b60405180910390f35b3480156103fa57600080fd5b50610403610e28565b60405161041091906149f3565b60405180910390f35b34801561042557600080fd5b50610440600480360381019061043b9190614a4b565b610eba565b60405161044d9190614ab9565b60405180910390f35b34801561046257600080fd5b5061047d60048036038101906104789190614b00565b610f09565b005b34801561048b57600080fd5b506104a660048036038101906104a19190614b40565b610fb5565b6040516104b39190614907565b60405180910390f35b3480156104c857600080fd5b506104d1610fd5565b6040516104de9190614b7c565b60405180910390f35b3480156104f357600080fd5b5061050e60048036038101906105099190614bc3565b610fe2565b005b34801561051c57600080fd5b5061052561116d565b6040516105329190614ab9565b60405180910390f35b34801561054757600080fd5b50610562600480360381019061055d9190614c03565b611193565b005b61057e60048036038101906105799190614c56565b611289565b005b34801561058c57600080fd5b506105a760048036038101906105a29190614b00565b61138a565b6040516105b49190614b7c565b60405180910390f35b3480156105c957600080fd5b506105e460048036038101906105df9190614b40565b6113f9565b005b3480156105f257600080fd5b5061060d60048036038101906106089190614ce8565b611684565b005b34801561061b57600080fd5b5061062461192b565b6040516106319190614b7c565b60405180910390f35b34801561064657600080fd5b50610661600480360381019061065c9190614d7e565b611931565b005b34801561066f57600080fd5b50610678611a43565b005b34801561068657600080fd5b506106a1600480360381019061069c9190614c03565b611c6c565b005b3480156106af57600080fd5b506106b8611d62565b6040516106c59190614907565b60405180910390f35b3480156106da57600080fd5b506106e3611d75565b6040516106f0919061493f565b60405180910390f35b34801561070557600080fd5b50610720600480360381019061071b9190614a4b565b611d89565b60405161072d9190614b7c565b60405180910390f35b34801561074257600080fd5b5061074b611dc4565b6040516107589190614ab9565b60405180910390f35b34801561076d57600080fd5b5061078860048036038101906107839190614eee565b611dea565b005b34801561079657600080fd5b506107b160048036038101906107ac9190614a4b565b611edb565b6040516107be9190614ab9565b60405180910390f35b3480156107d357600080fd5b506107dc611f57565b6040516107e99190614b7c565b60405180910390f35b3480156107fe57600080fd5b5061081960048036038101906108149190614b40565b611f5d565b6040516108269190614907565b60405180910390f35b34801561083b57600080fd5b50610844611fb3565b60405161085191906149f3565b60405180910390f35b34801561086657600080fd5b50610881600480360381019061087c9190614b40565b612041565b60405161088e9190614b7c565b60405180910390f35b3480156108a357600080fd5b506108ac6120c3565b005b3480156108ba57600080fd5b506108d560048036038101906108d09190614a4b565b61214b565b005b3480156108e357600080fd5b506108ec61225b565b6040516108f99190614907565b60405180910390f35b34801561090e57600080fd5b5061092960048036038101906109249190614a4b565b61226e565b005b34801561093757600080fd5b50610952600480360381019061094d9190614f63565b61236a565b005b34801561096057600080fd5b5061096961245e565b6040516109769190614ab9565b60405180910390f35b61099960048036038101906109949190614ce8565b612488565b005b3480156109a757600080fd5b506109b0612735565b6040516109bd91906149f3565b60405180910390f35b3480156109d257600080fd5b506109ed60048036038101906109e89190614b40565b6127c7565b6040516109fa919061493f565b60405180910390f35b348015610a0f57600080fd5b50610a186127e8565b604051610a25919061493f565b60405180910390f35b348015610a3a57600080fd5b50610a556004803603810190610a509190614a4b565b6127fc565b005b348015610a6357600080fd5b50610a7e6004803603810190610a799190614f90565b6128f8565b005b348015610a8c57600080fd5b50610a9561290e565b604051610aa29190614b7c565b60405180910390f35b348015610ab757600080fd5b50610ac0612962565b604051610acd9190614fdf565b60405180910390f35b348015610ae257600080fd5b50610aeb612968565b604051610af89190614907565b60405180910390f35b348015610b0d57600080fd5b50610b286004803603810190610b239190614f63565b61297b565b005b348015610b3657600080fd5b50610b516004803603810190610b4c919061509b565b612a6f565b005b348015610b5f57600080fd5b50610b7a6004803603810190610b75919061511e565b612b67565b005b348015610b8857600080fd5b50610b91612c48565b604051610b9e9190614fdf565b60405180910390f35b348015610bb357600080fd5b50610bce6004803603810190610bc99190614a4b565b612c4e565b604051610bdb91906149f3565b60405180910390f35b348015610bf057600080fd5b50610c0b6004803603810190610c069190614b40565b612ce5565b005b348015610c1957600080fd5b50610c22612f2c565b604051610c2f9190614ab9565b60405180910390f35b348015610c4457600080fd5b50610c5f6004803603810190610c5a9190614f63565b612f52565b005b348015610c6d57600080fd5b50610c886004803603810190610c839190614b40565b613046565b005b348015610c9657600080fd5b50610c9f613161565b604051610cac9190614b7c565b60405180910390f35b348015610cc157600080fd5b50610cca613167565b604051610cd79190614ab9565b60405180910390f35b348015610cec57600080fd5b50610cf561318d565b604051610d02919061493f565b60405180910390f35b348015610d1757600080fd5b50610d326004803603810190610d2d919061514b565b6131a1565b604051610d3f9190614907565b60405180910390f35b348015610d5457600080fd5b50610d6f6004803603810190610d6a9190614b40565b6132eb565b005b348015610d7d57600080fd5b50610d986004803603810190610d939190614b40565b613406565b005b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610e0d5750610e0c826134fe565b5b9050919050565b601a60019054906101000a900461ffff1681565b606060008054610e37906151ba565b80601f0160208091040260200160405190810160405280929190818152602001828054610e63906151ba565b8015610eb05780601f10610e8557610100808354040283529160200191610eb0565b820191906000526020600020905b815481529060010190602001808311610e9357829003601f168201915b5050505050905090565b6000610ec5826135e0565b610ece57600080fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610f1482611edb565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610f4f57600080fd5b8073ffffffffffffffffffffffffffffffffffffffff16610f6e61364c565b73ffffffffffffffffffffffffffffffffffffffff161480610f9d5750610f9c81610f9761364c565b6131a1565b5b610fa657600080fd5b610fb08383613654565b505050565b60186020528060005260406000206000915054906101000a900460ff1681565b6000600880549050905090565b610fea61364c565b73ffffffffffffffffffffffffffffffffffffffff1661100861245e565b73ffffffffffffffffffffffffffffffffffffffff16148061107a5750600b600061103161364c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b6110b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110b090615238565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156110f357600080fd5b60008161ffff161161110457600080fd5b61110c61290e565b8161ffff16111561111c57600080fd5b6000611126610fd5565b905060005b8261ffff168161ffff16101561116757611154848261ffff168461114f9190615287565b61370d565b808061115f906152dd565b91505061112b565b50505050565b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600073ffffffffffffffffffffffffffffffffffffffff16601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461127957601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16637b35185584846040518363ffffffff1660e01b8152600401611246929190615308565b600060405180830381600087803b15801561126057600080fd5b505af1158015611274573d6000803e3d6000fd5b505050505b61128483838361372b565b505050565b6002600d54141561129957600080fd5b6002600d81905550601360029054906101000a900460ff166112ba57600080fd5b60008161ffff161180156112e65750601360009054906101000a900461ffff1661ffff168161ffff1611155b80156112fd57506112f561290e565b8161ffff1611155b61130657600080fd5b61131f8161ffff1660125461375590919063ffffffff16565b34101561132b57600080fd5b6000611335610fd5565b905060005b8261ffff168161ffff16101561137d5761136a61135561364c565b8261ffff16846113659190615287565b61370d565b8080611375906152dd565b91505061133a565b50506001600d8190555050565b600061139583612041565b82106113a057600080fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b61140161364c565b73ffffffffffffffffffffffffffffffffffffffff1661141f61245e565b73ffffffffffffffffffffffffffffffffffffffff1614806114915750600b600061144861364c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b6114d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114c790615238565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611540576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115379061537d565b60405180910390fd5b600b60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166115cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115c39061537d565b60405180910390fd5b6001600c5411611611576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116089061537d565b60405180910390fd5b6000600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550600c600081548092919061167c9061539d565b919050555050565b6002600d54141561169457600080fd5b6002600d81905550601a60009054906101000a900460ff166116b557600080fd5b60008161ffff161180156116e15750601a60019054906101000a900461ffff1661ffff168161ffff1611155b6116ea57600080fd5b601860006116f661364c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161561174857600080fd5b600061175261364c565b8261ffff16604051602001611768929190615430565b6040516020818303038152906040528051906020012090506117ce848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506019548361376b565b61180d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611804906154a8565b60405180910390fd5b6000611817610fd5565b9050600e546118338461ffff168361378290919063ffffffff16565b111561183e57600080fd5b60005b8361ffff168161ffff1610156118845761187161185c61364c565b8261ffff168461186c9190615287565b61370d565b808061187c906152dd565b915050611841565b5060016018600061189361364c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555082601a60019054906101000a900461ffff1661190091906154c8565b601a60016101000a81548161ffff021916908361ffff16021790555050506001600d81905550505050565b60165481565b61193961364c565b73ffffffffffffffffffffffffffffffffffffffff1661195761245e565b73ffffffffffffffffffffffffffffffffffffffff1614806119c95750600b600061198061364c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b611a08576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119ff90615238565b60405180910390fd5b600e548161ffff161115611a1b57600080fd5b8160198190555080601a60016101000a81548161ffff021916908361ffff1602179055505050565b611a4b61364c565b73ffffffffffffffffffffffffffffffffffffffff16611a6961245e565b73ffffffffffffffffffffffffffffffffffffffff161480611adb5750600b6000611a9261364c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b611b1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b1190615238565b60405180910390fd5b6002600d541415611b2a57600080fd5b6002600d8190555060004790506000611b746103e8611b66601b60149054906101000a900461ffff1661ffff168561375590919063ffffffff16565b61379890919063ffffffff16565b90506000611b8b82846137ae90919063ffffffff16565b9050601a60039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611bf5573d6000803e3d6000fd5b50601b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f19350505050158015611c5e573d6000803e3d6000fd5b505050506001600d81905550565b600073ffffffffffffffffffffffffffffffffffffffff16601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611d5257601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16637b35185584846040518363ffffffff1660e01b8152600401611d1f929190615308565b600060405180830381600087803b158015611d3957600080fd5b505af1158015611d4d573d6000803e3d6000fd5b505050505b611d5d8383836137c4565b505050565b601360029054906101000a900460ff1681565b601b60149054906101000a900461ffff1681565b6000611d93610fd5565b8210611d9e57600080fd5b60088281548110611db257611db16154fc565b5b90600052602060002001549050919050565b601b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611df261364c565b73ffffffffffffffffffffffffffffffffffffffff16611e1061245e565b73ffffffffffffffffffffffffffffffffffffffff161480611e825750600b6000611e3961364c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b611ec1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eb890615238565b60405180910390fd5b80600f9080519060200190611ed79291906147b0565b5050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611f4e57600080fd5b80915050919050565b60125481565b6000600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b600f8054611fc0906151ba565b80601f0160208091040260200160405190810160405280929190818152602001828054611fec906151ba565b80156120395780601f1061200e57610100808354040283529160200191612039565b820191906000526020600020905b81548152906001019060200180831161201c57829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561207c57600080fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6120cb61364c565b73ffffffffffffffffffffffffffffffffffffffff166120e961245e565b73ffffffffffffffffffffffffffffffffffffffff161461213f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161213690615577565b60405180910390fd5b61214960006137e4565b565b61215361364c565b73ffffffffffffffffffffffffffffffffffffffff1661217161245e565b73ffffffffffffffffffffffffffffffffffffffff1614806121e35750600b600061219a61364c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b612222576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161221990615238565b60405180910390fd5b600081101580156122345750600e5481105b61223d57600080fd5b612245610fd5565b81101561225157600080fd5b80600e8190555050565b601760029054906101000a900460ff1681565b61227661364c565b73ffffffffffffffffffffffffffffffffffffffff1661229461245e565b73ffffffffffffffffffffffffffffffffffffffff1614806123065750600b60006122bd61364c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b612345576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161233c90615238565b60405180910390fd5b60008110158015612357575060165481105b61236057600080fd5b8060168190555050565b61237261364c565b73ffffffffffffffffffffffffffffffffffffffff1661239061245e565b73ffffffffffffffffffffffffffffffffffffffff1614806124025750600b60006123b961364c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b612441576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161243890615238565b60405180910390fd5b80601a60006101000a81548160ff02191690831515021790555050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6002600d54141561249857600080fd5b6002600d81905550601760029054906101000a900460ff166124b957600080fd5b60008161ffff161180156124e55750601760009054906101000a900461ffff1661ffff168161ffff1611155b80156124fc57506124f461290e565b8161ffff1611155b61250557600080fd5b61251e8161ffff1660165461375590919063ffffffff16565b34101561252a57600080fd5b60006014600061253861364c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900461ffff169050601760009054906101000a900461ffff1661ffff168161ffff16106125a757600080fd5b60006125b161364c565b6040516020016125c19190615597565b604051602081830303815290604052805190602001209050612627858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050506015548361376b565b612666576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161265d906155fe565b60405180910390fd5b6000612670610fd5565b905060005b8461ffff168161ffff1610156126b8576126a561269061364c565b8261ffff16846126a09190615287565b61370d565b80806126b0906152dd565b915050612675565b5083836126c5919061561e565b601460006126d161364c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548161ffff021916908361ffff1602179055505050506001600d81905550505050565b606060018054612744906151ba565b80601f0160208091040260200160405190810160405280929190818152602001828054612770906151ba565b80156127bd5780601f10612792576101008083540402835291602001916127bd565b820191906000526020600020905b8154815290600101906020018083116127a057829003601f168201915b5050505050905090565b60146020528060005260406000206000915054906101000a900461ffff1681565b601360009054906101000a900461ffff1681565b61280461364c565b73ffffffffffffffffffffffffffffffffffffffff1661282261245e565b73ffffffffffffffffffffffffffffffffffffffff1614806128945750600b600061284b61364c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b6128d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128ca90615238565b60405180910390fd5b600081101580156128e5575060125481105b6128ee57600080fd5b8060128190555050565b61290a61290361364c565b83836138aa565b5050565b600080612919610fd5565b90506000612958612947601a60019054906101000a900461ffff1661ffff168461378290919063ffffffff16565b600e546137ae90919063ffffffff16565b9050809250505090565b60155481565b601a60009054906101000a900460ff1681565b61298361364c565b73ffffffffffffffffffffffffffffffffffffffff166129a161245e565b73ffffffffffffffffffffffffffffffffffffffff161480612a135750600b60006129ca61364c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b612a52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a4990615238565b60405180910390fd5b80601760026101000a81548160ff02191690831515021790555050565b600073ffffffffffffffffffffffffffffffffffffffff16601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614612b5557601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16637b35185585856040518363ffffffff1660e01b8152600401612b22929190615308565b600060405180830381600087803b158015612b3c57600080fd5b505af1158015612b50573d6000803e3d6000fd5b505050505b612b61848484846139e1565b50505050565b612b6f61364c565b73ffffffffffffffffffffffffffffffffffffffff16612b8d61245e565b73ffffffffffffffffffffffffffffffffffffffff161480612bff5750600b6000612bb661364c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b612c3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c3590615238565b60405180910390fd5b8060158190555050565b60195481565b6060612c59826135e0565b612c6257600080fd5b6000612c6c613a0d565b90506000815111612cb2576040518060400160405280600581526020017f2e6a736f6e000000000000000000000000000000000000000000000000000000815250612cdd565b80612cbc84613a9f565b604051602001612ccd9291906156de565b6040516020818303038152906040525b915050919050565b612ced61364c565b73ffffffffffffffffffffffffffffffffffffffff16612d0b61245e565b73ffffffffffffffffffffffffffffffffffffffff161480612d7d5750600b6000612d3461364c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b612dbc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612db390615238565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612e2c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e2390615759565b60405180910390fd5b600b60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615612eb9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612eb0906157c5565b60405180910390fd5b6001600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550600c6000815480929190612f24906157e5565b919050555050565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b612f5a61364c565b73ffffffffffffffffffffffffffffffffffffffff16612f7861245e565b73ffffffffffffffffffffffffffffffffffffffff161480612fea5750600b6000612fa161364c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b613029576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161302090615238565b60405180910390fd5b80601360026101000a81548160ff02191690831515021790555050565b61304e61364c565b73ffffffffffffffffffffffffffffffffffffffff1661306c61245e565b73ffffffffffffffffffffffffffffffffffffffff1614806130de5750600b600061309561364c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b61311d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161311490615238565b60405180910390fd5b80601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600e5481565b601a60039054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b601760009054906101000a900461ffff1681565b60008073ffffffffffffffffffffffffffffffffffffffff16601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146132d8576000601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1663c4552791866040518263ffffffff1660e01b815260040161326f9190614ab9565b602060405180830381865afa15801561328c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132b0919061586c565b73ffffffffffffffffffffffffffffffffffffffff1614156132d65760019150506132e5565b505b6132e28383613c00565b90505b92915050565b6132f361364c565b73ffffffffffffffffffffffffffffffffffffffff1661331161245e565b73ffffffffffffffffffffffffffffffffffffffff1614806133835750600b600061333a61364c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b6133c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133b990615238565b60405180910390fd5b80601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61340e61364c565b73ffffffffffffffffffffffffffffffffffffffff1661342c61245e565b73ffffffffffffffffffffffffffffffffffffffff1614613482576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161347990615577565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156134f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134e99061590b565b60405180910390fd5b6134fb816137e4565b50565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806135c957507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806135d957506135d882613c94565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166136c783611edb565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b613727828260405180602001604052806000815250613cfe565b5050565b61373c61373661364c565b82613d23565b61374557600080fd5b613750838383613dcb565b505050565b60008183613763919061592b565b905092915050565b6000826137788584613fbb565b1490509392505050565b600081836137909190615287565b905092915050565b600081836137a691906159b4565b905092915050565b600081836137bc91906159e5565b905092915050565b6137df83838360405180602001604052806000815250612a6f565b505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156138e357600080fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516139d49190614907565b60405180910390a3505050565b6139f26139ec61364c565b83613d23565b6139fb57600080fd5b613a078484848461406e565b50505050565b6060600f8054613a1c906151ba565b80601f0160208091040260200160405190810160405280929190818152602001828054613a48906151ba565b8015613a955780601f10613a6a57610100808354040283529160200191613a95565b820191906000526020600020905b815481529060010190602001808311613a7857829003601f168201915b5050505050905090565b60606000821415613ae7576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613bfb565b600082905060005b60008214613b19578080613b02906157e5565b915050600a82613b1291906159b4565b9150613aef565b60008167ffffffffffffffff811115613b3557613b34614dc3565b5b6040519080825280601f01601f191660200182016040528015613b675781602001600182028036833780820191505090505b5090505b60008514613bf457600182613b8091906159e5565b9150600a85613b8f9190615a19565b6030613b9b9190615287565b60f81b818381518110613bb157613bb06154fc565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85613bed91906159b4565b9450613b6b565b8093505050505b919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b613d088383614094565b613d1560008484846141f6565b613d1e57600080fd5b505050565b6000613d2e826135e0565b613d3757600080fd5b6000613d4283611edb565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480613db157508373ffffffffffffffffffffffffffffffffffffffff16613d9984610eba565b73ffffffffffffffffffffffffffffffffffffffff16145b80613dc25750613dc181856131a1565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16613deb82611edb565b73ffffffffffffffffffffffffffffffffffffffff1614613e0b57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613e4557600080fd5b613e5083838361437e565b613e5b600082613654565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254613eab91906159e5565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254613f029190615287565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60008082905060005b8451811015614063576000858281518110613fe257613fe16154fc565b5b60200260200101519050808311614023578281604051602001614006929190615a6b565b60405160208183030381529060405280519060200120925061404f565b8083604051602001614036929190615a6b565b6040516020818303038152906040528051906020012092505b50808061405b906157e5565b915050613fc4565b508091505092915050565b614079848484613dcb565b614085848484846141f6565b61408e57600080fd5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156140ce57600080fd5b6140d7816135e0565b156140e157600080fd5b6140ed6000838361437e565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461413d9190615287565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b60006142178473ffffffffffffffffffffffffffffffffffffffff16614492565b15614371578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261424061364c565b8786866040518563ffffffff1660e01b81526004016142629493929190615aec565b6020604051808303816000875af192505050801561429e57506040513d601f19601f8201168201806040525081019061429b9190615b4d565b60015b614321573d80600081146142ce576040519150601f19603f3d011682016040523d82523d6000602084013e6142d3565b606091505b50600081511415614319576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161431090615bec565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050614376565b600190505b949350505050565b6143898383836144a5565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156143cc576143c7816144aa565b61440b565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461440a5761440983826144f3565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561444e5761444981614660565b61448d565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161461448c5761448b8282614731565b5b5b505050565b600080823b905060008111915050919050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000600161450084612041565b61450a91906159e5565b90506000600760008481526020019081526020016000205490508181146145ef576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b6000600160088054905061467491906159e5565b90506000600960008481526020019081526020016000205490506000600883815481106146a4576146a36154fc565b5b9060005260206000200154905080600883815481106146c6576146c56154fc565b5b90600052602060002001819055508160096000838152602001908152602001600020819055506009600085815260200190815260200160002060009055600880548061471557614714615c0c565b5b6001900381819060005260206000200160009055905550505050565b600061473c83612041565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b8280546147bc906151ba565b90600052602060002090601f0160209004810192826147de5760008555614825565b82601f106147f757805160ff1916838001178555614825565b82800160010185558215614825579182015b82811115614824578251825591602001919060010190614809565b5b5090506148329190614836565b5090565b5b8082111561484f576000816000905550600101614837565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61489c81614867565b81146148a757600080fd5b50565b6000813590506148b981614893565b92915050565b6000602082840312156148d5576148d461485d565b5b60006148e3848285016148aa565b91505092915050565b60008115159050919050565b614901816148ec565b82525050565b600060208201905061491c60008301846148f8565b92915050565b600061ffff82169050919050565b61493981614922565b82525050565b60006020820190506149546000830184614930565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015614994578082015181840152602081019050614979565b838111156149a3576000848401525b50505050565b6000601f19601f8301169050919050565b60006149c58261495a565b6149cf8185614965565b93506149df818560208601614976565b6149e8816149a9565b840191505092915050565b60006020820190508181036000830152614a0d81846149ba565b905092915050565b6000819050919050565b614a2881614a15565b8114614a3357600080fd5b50565b600081359050614a4581614a1f565b92915050565b600060208284031215614a6157614a6061485d565b5b6000614a6f84828501614a36565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000614aa382614a78565b9050919050565b614ab381614a98565b82525050565b6000602082019050614ace6000830184614aaa565b92915050565b614add81614a98565b8114614ae857600080fd5b50565b600081359050614afa81614ad4565b92915050565b60008060408385031215614b1757614b1661485d565b5b6000614b2585828601614aeb565b9250506020614b3685828601614a36565b9150509250929050565b600060208284031215614b5657614b5561485d565b5b6000614b6484828501614aeb565b91505092915050565b614b7681614a15565b82525050565b6000602082019050614b916000830184614b6d565b92915050565b614ba081614922565b8114614bab57600080fd5b50565b600081359050614bbd81614b97565b92915050565b60008060408385031215614bda57614bd961485d565b5b6000614be885828601614aeb565b9250506020614bf985828601614bae565b9150509250929050565b600080600060608486031215614c1c57614c1b61485d565b5b6000614c2a86828701614aeb565b9350506020614c3b86828701614aeb565b9250506040614c4c86828701614a36565b9150509250925092565b600060208284031215614c6c57614c6b61485d565b5b6000614c7a84828501614bae565b91505092915050565b600080fd5b600080fd5b600080fd5b60008083601f840112614ca857614ca7614c83565b5b8235905067ffffffffffffffff811115614cc557614cc4614c88565b5b602083019150836020820283011115614ce157614ce0614c8d565b5b9250929050565b600080600060408486031215614d0157614d0061485d565b5b600084013567ffffffffffffffff811115614d1f57614d1e614862565b5b614d2b86828701614c92565b93509350506020614d3e86828701614bae565b9150509250925092565b6000819050919050565b614d5b81614d48565b8114614d6657600080fd5b50565b600081359050614d7881614d52565b92915050565b60008060408385031215614d9557614d9461485d565b5b6000614da385828601614d69565b9250506020614db485828601614bae565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b614dfb826149a9565b810181811067ffffffffffffffff82111715614e1a57614e19614dc3565b5b80604052505050565b6000614e2d614853565b9050614e398282614df2565b919050565b600067ffffffffffffffff821115614e5957614e58614dc3565b5b614e62826149a9565b9050602081019050919050565b82818337600083830152505050565b6000614e91614e8c84614e3e565b614e23565b905082815260208101848484011115614ead57614eac614dbe565b5b614eb8848285614e6f565b509392505050565b600082601f830112614ed557614ed4614c83565b5b8135614ee5848260208601614e7e565b91505092915050565b600060208284031215614f0457614f0361485d565b5b600082013567ffffffffffffffff811115614f2257614f21614862565b5b614f2e84828501614ec0565b91505092915050565b614f40816148ec565b8114614f4b57600080fd5b50565b600081359050614f5d81614f37565b92915050565b600060208284031215614f7957614f7861485d565b5b6000614f8784828501614f4e565b91505092915050565b60008060408385031215614fa757614fa661485d565b5b6000614fb585828601614aeb565b9250506020614fc685828601614f4e565b9150509250929050565b614fd981614d48565b82525050565b6000602082019050614ff46000830184614fd0565b92915050565b600067ffffffffffffffff82111561501557615014614dc3565b5b61501e826149a9565b9050602081019050919050565b600061503e61503984614ffa565b614e23565b90508281526020810184848401111561505a57615059614dbe565b5b615065848285614e6f565b509392505050565b600082601f83011261508257615081614c83565b5b813561509284826020860161502b565b91505092915050565b600080600080608085870312156150b5576150b461485d565b5b60006150c387828801614aeb565b94505060206150d487828801614aeb565b93505060406150e587828801614a36565b925050606085013567ffffffffffffffff81111561510657615105614862565b5b6151128782880161506d565b91505092959194509250565b6000602082840312156151345761513361485d565b5b600061514284828501614d69565b91505092915050565b600080604083850312156151625761516161485d565b5b600061517085828601614aeb565b925050602061518185828601614aeb565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806151d257607f821691505b602082108114156151e6576151e561518b565b5b50919050565b7f434f310000000000000000000000000000000000000000000000000000000000600082015250565b6000615222600383614965565b915061522d826151ec565b602082019050919050565b6000602082019050818103600083015261525181615215565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061529282614a15565b915061529d83614a15565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156152d2576152d1615258565b5b828201905092915050565b60006152e882614922565b915061ffff8214156152fd576152fc615258565b5b600182019050919050565b600060408201905061531d6000830185614aaa565b61532a6020830184614aaa565b9392505050565b7f434f340000000000000000000000000000000000000000000000000000000000600082015250565b6000615367600383614965565b915061537282615331565b602082019050919050565b600060208201905081810360008301526153968161535a565b9050919050565b60006153a882614a15565b915060008214156153bc576153bb615258565b5b600182039050919050565b60008160601b9050919050565b60006153df826153c7565b9050919050565b60006153f1826153d4565b9050919050565b61540961540482614a98565b6153e6565b82525050565b6000819050919050565b61542a61542582614a15565b61540f565b82525050565b600061543c82856153f8565b60148201915061544c8284615419565b6020820191508190509392505050565b7f3200000000000000000000000000000000000000000000000000000000000000600082015250565b6000615492600183614965565b915061549d8261545c565b602082019050919050565b600060208201905081810360008301526154c181615485565b9050919050565b60006154d382614922565b91506154de83614922565b9250828210156154f1576154f0615258565b5b828203905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000615561602083614965565b915061556c8261552b565b602082019050919050565b6000602082019050818103600083015261559081615554565b9050919050565b60006155a382846153f8565b60148201915081905092915050565b7f3100000000000000000000000000000000000000000000000000000000000000600082015250565b60006155e8600183614965565b91506155f3826155b2565b602082019050919050565b60006020820190508181036000830152615617816155db565b9050919050565b600061562982614922565b915061563483614922565b92508261ffff0382111561564b5761564a615258565b5b828201905092915050565b600081905092915050565b600061566c8261495a565b6156768185615656565b9350615686818560208601614976565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b60006156c8600583615656565b91506156d382615692565b600582019050919050565b60006156ea8285615661565b91506156f68284615661565b9150615701826156bb565b91508190509392505050565b7f434f320000000000000000000000000000000000000000000000000000000000600082015250565b6000615743600383614965565b915061574e8261570d565b602082019050919050565b6000602082019050818103600083015261577281615736565b9050919050565b7f434f330000000000000000000000000000000000000000000000000000000000600082015250565b60006157af600383614965565b91506157ba82615779565b602082019050919050565b600060208201905081810360008301526157de816157a2565b9050919050565b60006157f082614a15565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561582357615822615258565b5b600182019050919050565b600061583982614a98565b9050919050565b6158498161582e565b811461585457600080fd5b50565b60008151905061586681615840565b92915050565b6000602082840312156158825761588161485d565b5b600061589084828501615857565b91505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006158f5602683614965565b915061590082615899565b604082019050919050565b60006020820190508181036000830152615924816158e8565b9050919050565b600061593682614a15565b915061594183614a15565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561597a57615979615258565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006159bf82614a15565b91506159ca83614a15565b9250826159da576159d9615985565b5b828204905092915050565b60006159f082614a15565b91506159fb83614a15565b925082821015615a0e57615a0d615258565b5b828203905092915050565b6000615a2482614a15565b9150615a2f83614a15565b925082615a3f57615a3e615985565b5b828206905092915050565b6000819050919050565b615a65615a6082614d48565b615a4a565b82525050565b6000615a778285615a54565b602082019150615a878284615a54565b6020820191508190509392505050565b600081519050919050565b600082825260208201905092915050565b6000615abe82615a97565b615ac88185615aa2565b9350615ad8818560208601614976565b615ae1816149a9565b840191505092915050565b6000608082019050615b016000830187614aaa565b615b0e6020830186614aaa565b615b1b6040830185614b6d565b8181036060830152615b2d8184615ab3565b905095945050505050565b600081519050615b4781614893565b92915050565b600060208284031215615b6357615b6261485d565b5b6000615b7184828501615b38565b91505092915050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000615bd6603283614965565b9150615be182615b7a565b604082019050919050565b60006020820190508181036000830152615c0581615bc9565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea26469706673582212207804f60f3dc38f0fcef56ccd8f291ebb317bb1aab0b43e0d995d5e1b5564ecfc64736f6c634300080a0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c10000000000000000000000003bd412742678c7cd46da5141d19d02ffa41440e8000000000000000000000000d280a97023de886931db36ba30b40f4d169b0077
-----Decoded View---------------
Arg [0] : _proxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
Arg [1] : _developerWithdrawAddress (address): 0x3Bd412742678C7cd46dA5141d19d02Ffa41440E8
Arg [2] : _projectWithdrawAddress (address): 0xD280a97023De886931dB36BA30B40f4d169b0077
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [1] : 0000000000000000000000003bd412742678c7cd46da5141d19d02ffa41440e8
Arg [2] : 000000000000000000000000d280a97023de886931db36ba30b40f4d169b0077
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.