Source Code
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
CollectionNFTCloneableV1
Compiler Version
v0.8.6+commit.11564f7e
Optimization Enabled:
Yes with 1000000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.6; import { ICollectionFactory } from "../interfaces/ICollectionFactory.sol"; import { ICollection } from "../interfaces/ICollection.sol"; import { ICollectionCloneable } from "../interfaces/ICollectionCloneable.sol"; import { ICollectionNFTCloneableV1 } from "../interfaces/ICollectionNFTCloneableV1.sol"; import { ICollectionNFTEligibilityPredicate } from "../interfaces/ICollectionNFTEligibilityPredicate.sol"; import { ICollectionNFTMintFeePredicate } from "../interfaces/ICollectionNFTMintFeePredicate.sol"; import { IERC2981Royalties } from "../interfaces/IERC2981Royalties.sol"; import { IHashes } from "../interfaces/IHashes.sol"; import { IOwnable } from "../interfaces/IOwnable.sol"; import { OwnableCloneable } from "./OwnableCloneable.sol"; import { ERC721 } from "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import { ERC721Enumerable } from "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import { ReentrancyGuard } from "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import { SafeMath } from "@openzeppelin/contracts/utils/math/SafeMath.sol"; /** * @title CollectionNFTCloneableV1 * @author DEX Labs * @notice This contract is the cloneable template for Hashes Collections. * It is an ERC-721 contract which is preconfigured to work within * the Hashes ecosystem. Creation logic has been moved to an initialization * function so it works with the cloneable factory pattern. */ contract CollectionNFTCloneableV1 is ICollection, ICollectionCloneable, ICollectionNFTCloneableV1, OwnableCloneable, ERC721Enumerable, IERC2981Royalties, ReentrancyGuard { using SafeMath for uint16; using SafeMath for uint64; using SafeMath for uint128; using SafeMath for uint256; bool _initialized; /// @notice A structure for storing a token ID in a map. struct TokenIdEntry { bool exists; uint128 tokenId; } /// @notice A structure for decoding and storing data from the factory initializer struct InitializerSettings { string tokenName; string tokenSymbol; string baseTokenURI; uint256 cap; ICollectionNFTEligibilityPredicate mintEligibilityPredicateContract; ICollectionNFTMintFeePredicate mintFeePredicateContract; uint16 royaltyBps; address signatureBlockAddress; } /// @notice nonce Monotonically-increasing number (token ID). uint256 public nonce; /// @notice cap The supply cap for this token. Set to 0 for unlimited. uint256 public cap; /// @notice baseTokenURI The base token URI for this token. string public baseTokenURI; /// @notice tokenName The name of the ERC-721 token. string private tokenName; /// @notice tokenSymbol The symbol of the ERC-721 token. string private tokenSymbol; /// @notice creatorAddress The address of the collection creator. address public creatorAddress; /// @notice signatureBlockAddress An optional address which (when set) will cause all tokens to be /// minted from this address and then immediately transfered to the mint message sender. address public signatureBlockAddress; // Interface for contract which contains a function isTokenEligibleToMint(tokenId, hashesTokenId) // used for determining mint eligibility for a Hashes token. ICollectionNFTEligibilityPredicate public mintEligibilityPredicateContract; // Interface for contract which contains a function getTokenMintFee(tokenId, hashesTokenId) // used for determining the mint fee for a Hashes token. ICollectionNFTMintFeePredicate public mintFeePredicateContract; /// @notice hashesIdToCollectionTokenIdMapping Mapping of Hashes ID to collection token ID. mapping(uint256 => TokenIdEntry) public hashesIdToCollectionTokenIdMapping; /// @notice royaltyBps The sales royalty amount (in hundredths of a percent). uint16 public royaltyBps; uint16 private _hashesDAOMintFeePercent; uint16 private _hashesDAORoyaltyFeePercent; uint16 private _maximumCollectionRoyaltyPercent; /// @notice isSignatureBlockCompleted Whether the signature block address has interacted with this /// contract to verify their support of this contract and establish provenance. bool public isSignatureBlockCompleted; IHashes hashesToken; /// @notice CollectionInitialized Emitted when a Collection is initialized. event CollectionInitialized( string tokenName, string tokenSymbol, string baseTokenURI, uint256 cap, address mintEligibilityPredicateAddress, address mintFeePredicateAddress, uint16 royaltyBps, address signatureBlockAddress, uint64 indexed initializationBlock ); /// @notice Minted Emitted when a Hashes Collection is minted. event Minted(address indexed minter, uint256 indexed tokenId, uint256 indexed hashesTokenId); /// @notice BaseTokenURISet Emitted when the base token URI is updated. event BaseTokenURISet(string baseTokenURI); /// @notice Withdraw Emitted when a withdraw event is triggered. event Withdraw(uint256 indexed creatorAmount, uint256 indexed hashesDAOAmount); /// @notice CreatorTransferred Emitted when the creator address is transferred. event CreatorTransferred(address indexed previousCreator, address indexed newCreator); /// @notice RoyaltyBpsSet Emitted when the royalty bps is set. event RoyaltyBpsSet(uint16 royaltyBps); /// @notice Burned Emitted when a token is burned. event Burned(address indexed burner, uint256 indexed tokenId); /// @notice SignatureBlockCompleted Emitted when the signature block is completed. event SignatureBlockCompleted(address indexed signatureBlockAddress); /// @notice SignatureBlockAddressSet Emitted when the signature block address is set. event SignatureBlockAddressSet(address indexed signatureBlockAddress); modifier initialized() { require(_initialized, "CollectionNFTCloneableV1: hasn't been initialized yet."); _; } modifier onlyOwnerOrHashesDAO() { require( _msgSender() == owner() || _msgSender() == IOwnable(address(hashesToken)).owner(), "CollectionNFTCloneableV1: must be contract owner or HashesDAO" ); _; } modifier onlyCreator() { require(_msgSender() == creatorAddress, "CollectionNFTCloneableV1: must be contract creator"); _; } /** * @notice Constructor for the cloneable Hashes Collection contract. The ERC-721 token * name and symbol aren't used since they are provided in the initialize function. */ constructor() ERC721("TOKEN_NAME_PLACEHOLDER", "TOKEN_SYMBOL_PLACEHOLDER") {} receive() external payable {} /** * @notice This function is used by the Factory to verify the format of ecosystem settings * @param _settings ABI encoded ecosystem settings data. This expected encoding for * ecosystem name 'NFT_v1' is the following: * * 'uint16' hashesDAOMintFeePercent - The percentage of mint fees owable to HashesDAO. * 'uint16' hashesDAORoyaltyFeePercent - The percentage of royalties owable to HashesDAO. This will * be the percentage of the royalties percent set by the creator. * 'uint16' maximumCollectionRoyaltyPercent - The highest allowable royalty percentage * settable by creators for cloned instances of this contract. * @return The boolean result of the validation. */ function verifyEcosystemSettings(bytes memory _settings) external pure override returns (bool) { ( uint16 _settingsHashesDAOMintFeePercent, uint16 _settingsHashesDAORoyaltyFeePercent, uint16 _settingsMaximumCollectionRoyaltyPercent ) = abi.decode(_settings, (uint16, uint16, uint16)); return _settingsHashesDAOMintFeePercent <= 10000 && _settingsHashesDAORoyaltyFeePercent <= 10000 && _settingsMaximumCollectionRoyaltyPercent <= 10000; } /** * @notice This function initializes a cloneable implementation contract. * @param _hashesToken The Hashes NFT contract address. * @param _factoryMaintainerAddress The address of the current factory maintainer * which will be the Owner role of this collection. * @param _createCollectionCaller The address which has called createCollection on the factory. * This will be the Creator role of this collection. * @param _initializationData ABI encoded initialization data. This expected encoding is a struct * with the following properties: * * 'string' tokenName - The name of the resulting ERC-721 token. * 'string' tokenSymbol - The symbol of the resulting ERC-721 token. * 'string' baseTokenURI - The initial base token URI of the resulting ERC-721 token. * 'uint256' cap - The maximum token supply of the resulting ERC-721 token. Set 0 for no limit. * 'address' mintEligibilityPredicateContract - The address of a contract which contains a * function isTokenEligibleToMint(uint256 tokenId, uint256 hashesTokenId) used to * determine whether the chosen Hashes token ID is eligible for minting. Contracts * which define this logic should implement the interface ICollectionNFTEligibilityPredicate. * 'address' mintFeePredicateContract - The address of a contract which contains a function * getTokenMintFee(tokenId, hashesTokenId) used to determine the mint fee for the * chosen Hashes token ID. Contracts which define this logic should implement the * interface ICollectionNFTMintFeePredicate. * 'uint16' royaltyBps - The sales royalty that should be collected. A percentage of this * will be allocated for the HashesDAO to withdraw. * 'address' signatureBlockAddress - An optional address which can be used to establish * creator provenance. When set, the specified address (could be the artist for example) * can call completeSignatureBlock to establish provenance and sign off on the contract * values. To skip using this mechanism, set the value of this field to the 0x0 address. */ function initialize( IHashes _hashesToken, address _factoryMaintainerAddress, address _createCollectionCaller, bytes memory _initializationData ) external override { require(!_initialized, "CollectionNFTCloneableV1: already inititialized."); initializeOwnership(_factoryMaintainerAddress); creatorAddress = _createCollectionCaller; // Use this struct workaround to get around Stack Too Deep issues InitializerSettings memory _initializerSettings; (_initializerSettings) = abi.decode(_initializationData, (InitializerSettings)); tokenName = _initializerSettings.tokenName; tokenSymbol = _initializerSettings.tokenSymbol; baseTokenURI = _initializerSettings.baseTokenURI; cap = _initializerSettings.cap; mintEligibilityPredicateContract = _initializerSettings.mintEligibilityPredicateContract; mintFeePredicateContract = _initializerSettings.mintFeePredicateContract; royaltyBps = _initializerSettings.royaltyBps; signatureBlockAddress = _initializerSettings.signatureBlockAddress; uint64 _initializationBlock = safe64(block.number, "CollectionNFTCloneableV1: exceeds 64 bits."); bytes memory settingsBytes = ICollectionFactory(_msgSender()).getEcosystemSettings( keccak256(abi.encodePacked("NFT_v1")), _initializationBlock ); (_hashesDAOMintFeePercent, _hashesDAORoyaltyFeePercent, _maximumCollectionRoyaltyPercent) = abi.decode( settingsBytes, (uint16, uint16, uint16) ); require( royaltyBps <= _maximumCollectionRoyaltyPercent, "CollectionNFTCloneableV1: royalty percentage must be less than or equal to maximum allowed setting" ); _initialized = true; hashesToken = _hashesToken; emit CollectionInitialized( tokenName, tokenSymbol, baseTokenURI, cap, address(mintEligibilityPredicateContract), address(mintFeePredicateContract), royaltyBps, signatureBlockAddress, _initializationBlock ); } /** * @notice The function used to mint instances of this Hashes Collection ERC-721 token. * Minting requires passing in a specific Hashes token id which is owned by the minter. * Each Hashes token id may only be used to mint once towards a specific collection. * The minting eligibility and fee structure are determined per Hashes token id * by the Hashes Collection owner through predicate functions. The Hashes DAO will receive * a minting fee percentage of each mint, unless a DAO hash was used to mint. * @param _hashesTokenId The Hashes token Id being used to mint. */ function mint(uint256 _hashesTokenId) external payable override initialized nonReentrant { require(cap == 0 || nonce < cap, "CollectionNFTCloneableV1: supply cap has been reached"); require( _msgSender() == hashesToken.ownerOf(_hashesTokenId), "CollectionNFTCloneableV1: must be owner of supplied hashes token ID to mint" ); require( !hashesIdToCollectionTokenIdMapping[_hashesTokenId].exists, "CollectionNFTCloneableV1: supplied token ID has already been used to mint with this collection" ); // get mint eligibility through static call bool isHashesTokenIdEligibleToMint = mintEligibilityPredicateContract.isTokenEligibleToMint( nonce, _hashesTokenId ); require(isHashesTokenIdEligibleToMint, "CollectionNFTCloneableV1: supplied token ID is ineligible to mint"); // get mint fee through static call uint256 currentMintFee = mintFeePredicateContract.getTokenMintFee(nonce, _hashesTokenId); require(msg.value >= currentMintFee, "CollectionNFTCloneableV1: must pass sufficient mint fee."); hashesIdToCollectionTokenIdMapping[_hashesTokenId] = TokenIdEntry({ exists: true, tokenId: safe128(nonce, "CollectionNFTCloneableV1: exceeds 128 bits.") }); uint256 feeForHashesDAO = (currentMintFee.mul(_hashesDAOMintFeePercent)) / 10000; uint256 authorFee = currentMintFee.sub(feeForHashesDAO); uint256 mintFeePaid; if (authorFee > 0) { // If the minting fee is non-zero mintFeePaid = mintFeePaid.add(authorFee); (bool sent, ) = creatorAddress.call{ value: authorFee }(""); require(sent, "CollectionNFTCloneableV1: failed to send ETH to creator address"); } // Only apply the minting tax for non-DAO hashes (tokenID >= 1000 or deactivated DAO tokens) if (feeForHashesDAO > 0 && (_hashesTokenId >= 1000 || hashesToken.deactivated(_hashesTokenId))) { // If the hashes DAO minting fee is non-zero // Send minting tax to HashesDAO (bool sent, ) = IOwnable(address(hashesToken)).owner().call{ value: feeForHashesDAO }(""); require(sent, "CollectionNFTCloneableV1: failed to send ETH to HashesDAO"); mintFeePaid = mintFeePaid.add(feeForHashesDAO); } if (msg.value > mintFeePaid) { // If minter passed ETH value greater than the minting // fee paid/computed above // Refund the remaining ether balance to the sender. Since there are no // other payable functions, this remainder will always be the senders. (bool sent, ) = _msgSender().call{ value: msg.value.sub(mintFeePaid) }(""); require(sent, "CollectionNFTCloneableV1: failed to refund ETH."); } _safeMint(_msgSender(), nonce++); emit Minted(_msgSender(), nonce - 1, _hashesTokenId); } /** * @notice The function allows the token owner or approved address to burn the token. * @param _tokenId The token Id to be burned. */ function burn(uint256 _tokenId) external override initialized { require( _isApprovedOrOwner(_msgSender(), _tokenId), "CollectionNFTCloneableV1: caller is not owner nor approved." ); _burn(_tokenId); emit Burned(_msgSender(), _tokenId); } /** * @notice The signatureBlockAddress can call this function to establish provenance and effectively * sign off on the contract. Can be useful in cases where the creator address is different * from the artist address. */ function completeSignatureBlock() external override initialized { require(!isSignatureBlockCompleted, "CollectionNFTCloneableV1: signature block has already been completed"); require( signatureBlockAddress != address(0), "CollectionNFTCloneableV1: signature block address has not been set." ); require( _msgSender() == signatureBlockAddress, "CollectionNFTCloneableV1: only signature block address can complete signature block" ); isSignatureBlockCompleted = true; emit SignatureBlockCompleted(signatureBlockAddress); } /// @inheritdoc IERC2981Royalties function royaltyInfo(uint256, uint256 value) external view override returns (address receiver, uint256 royaltyAmount) { // Send royalties to this contract address. Note: this will only work for // marketplaces which implement the ERC2981 royalty standard. Off-chain // configuration may be required for certain marketplaces. return (address(this), (value.mul(royaltyBps)).div(10000)); } /** * @notice The function used to renounce contract ownership. This can be performed * by either the Owner or HashesDAO. This departs slightly from the traditional * implementation where only the Owner has this permission. HashesDAO may * need to perform this actions in the case of the factory maintainer changing, * getting lost, or being taken over by a bad actor. */ function renounceOwnership() public override ownershipInitialized onlyOwnerOrHashesDAO { _setOwner(address(0)); } /** * @notice The function used to transfer contract ownership. This can be performed by * either the owner or HashesDAO. This departs slightly from the traditional * implementation where only the Owner has this permission. HashesDAO may * need to perform this actions in the case of the factory maintainer changing, * getting lost, or being taken over by a bad actor. * @param newOwner The new owner address. */ function transferOwnership(address newOwner) public override ownershipInitialized onlyOwnerOrHashesDAO { require(newOwner != address(0), "CollectionNFTCloneableV1: new owner is the zero address"); _setOwner(newOwner); } /** * @notice The function used to set the base token URI. Only collection creator may call. * @param _baseTokenURI The base token URI. */ function setBaseTokenURI(string memory _baseTokenURI) external override initialized onlyCreator { baseTokenURI = _baseTokenURI; emit BaseTokenURISet(_baseTokenURI); } /** * @notice The function used to set the sales royalty bps. Only collection creator may call. * @param _royaltyBps The sales royalty percent in hundredths of a percent. */ function setRoyaltyBps(uint16 _royaltyBps) external override initialized onlyCreator { require( _royaltyBps <= _maximumCollectionRoyaltyPercent, "CollectionNFTCloneableV1: royalty percentage must be less than or equal to maximum allowed setting" ); royaltyBps = _royaltyBps; emit RoyaltyBpsSet(_royaltyBps); } /** * @notice The function used to transfer the creator address. Only collection creator may call. * This is especially important since this concerns withdrawl permissions. * @param _creatorAddress The new creator address. */ function transferCreator(address _creatorAddress) external override initialized onlyCreator { address oldCreator = creatorAddress; creatorAddress = _creatorAddress; emit CreatorTransferred(oldCreator, _creatorAddress); } function setSignatureBlockAddress(address _signatureBlockAddress) external override initialized onlyCreator { require(!isSignatureBlockCompleted, "CollectionNFTCloneableV1: signature block has already been completed"); signatureBlockAddress = _signatureBlockAddress; emit SignatureBlockAddressSet(_signatureBlockAddress); } /** * @notice The function used to withdraw funds to the Collection creator and HashesDAO addresses. * The balance of the contract is equal to the royalties and gifts owed to the creator and HashesDAO. */ function withdraw() external override initialized { // The contract balance is equal to the royalties or gifts which need to be allocated // to both the creator and HashesDAO. uint256 _contractBalance = address(this).balance; // The amount owed to the DAO will be the total royalties times the royalty // fee percent value (in bps). uint256 _daoRoyaltiesOwed = (_contractBalance.mul(_hashesDAORoyaltyFeePercent)).div(10000); // The amount owed to the creator will then be the total balance of the contract minus the DAO // royalties owed. uint256 _creatorRoyaltiesOwed = _contractBalance.sub(_daoRoyaltiesOwed); if (_creatorRoyaltiesOwed > 0) { (bool sent, ) = creatorAddress.call{ value: _creatorRoyaltiesOwed }(""); require(sent, "CollectionNFTCloneableV1: failed to send ETH to creator address"); } if (_daoRoyaltiesOwed > 0) { (bool sent, ) = IOwnable(address(hashesToken)).owner().call{ value: _daoRoyaltiesOwed }(""); require(sent, "CollectionNFTCloneableV1: failed to send ETH to HashesDAO"); } emit Withdraw(_creatorRoyaltiesOwed, _daoRoyaltiesOwed); } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721Enumerable) returns (bool) { return interfaceId == type(IERC2981Royalties).interfaceId || ERC721Enumerable.supportsInterface(interfaceId); } /** * @notice The function used to get the Hashes Collection token URI. * @param _tokenId The Hashes Collection token Id. */ function tokenURI(uint256 _tokenId) public view override initialized returns (string memory) { // Ensure that the token ID is valid and that the hash isn't empty. require(_tokenId < nonce, "CollectionNFTCloneableV1: Can't provide a token URI for a non-existent collection."); // Return the base token URI concatenated with the token ID. return string(abi.encodePacked(baseTokenURI, _toDecimalString(_tokenId))); } /** * @notice The function used to get the name of the Hashes Collection token */ function name() public view override initialized returns (string memory) { return tokenName; } /** * @notice The function used to get the symbol of the Hashes Collection token */ function symbol() public view override initialized returns (string memory) { return tokenSymbol; } function _toDecimalString(uint256 _value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT license // 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); } function safe64(uint256 n, string memory errorMessage) internal pure returns (uint64) { require(n < 2**64, errorMessage); return uint64(n); } function safe128(uint256 n, string memory errorMessage) internal pure returns (uint128) { require(n < 2**128, errorMessage); return uint128(n); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.6; interface ICollectionFactory { function addImplementationAddress( bytes32 _hashedEcosystemName, address _implementationAddress, bool cloneable ) external; function createCollection(address _implementationAddress, bytes memory _initializationData) external; function setFactoryMaintainerAddress(address _factoryMaintainerAddress) external; function removeImplementationAddresses( bytes32[] memory _hashedEcosystemNames, address[] memory _implementationAddresses, uint256[] memory _indexes ) external; function removeCollection( address _implementationAddress, address _collectionAddress, uint256 _index ) external; function createEcosystemSettings(string memory _ecosystemName, bytes memory _settings) external; function updateEcosystemSettings(bytes32 _hashedEcosystemName, bytes memory _settings) external; function getEcosystemSettings(bytes32 _hashedEcosystemName, uint64 _blockNumber) external view returns (bytes memory); function getEcosystems() external view returns (bytes32[] memory); function getEcosystems(uint256 _start, uint256 _end) external view returns (bytes32[] memory); function getCollections(address _implementationAddress) external view returns (address[] memory); function getCollections( address _implementationAddress, uint256 _start, uint256 _end ) external view returns (address[] memory); function getImplementationAddresses(bytes32 _hashedEcosystemName) external view returns (address[] memory); function getImplementationAddresses( bytes32 _hashedEcosystemName, uint256 _start, uint256 _end ) external view returns (address[] memory); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.6; interface ICollection { function verifyEcosystemSettings(bytes memory _settings) external pure returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.6; import { IHashes } from "./IHashes.sol"; interface ICollectionCloneable { function initialize( IHashes _hashesToken, address _factoryMaintainerAddress, address _createCollectionCaller, bytes memory _initializationData ) external; }
// SPDX-License-Identifier: MIT pragma solidity 0.8.6; interface ICollectionNFTCloneableV1 { function mint(uint256 _hashesTokenId) external payable; function burn(uint256 _tokenId) external; function completeSignatureBlock() external; function setBaseTokenURI(string memory _baseTokenURI) external; function setRoyaltyBps(uint16 _royaltyBps) external; function transferCreator(address _creatorAddress) external; function setSignatureBlockAddress(address _signatureBlockAddress) external; function withdraw() external; }
// SPDX-License-Identifier: MIT pragma solidity 0.8.6; interface ICollectionNFTEligibilityPredicate { function isTokenEligibleToMint(uint256 _tokenId, uint256 _hashesTokenId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.6; interface ICollectionNFTMintFeePredicate { function getTokenMintFee(uint256 _tokenId, uint256 _hashesTokenId) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.6; /// @title IERC2981Royalties /// @dev Interface for the ERC2981 - Token Royalty standard interface IERC2981Royalties { /// @notice Called with the sale price to determine how much royalty // is owed and to whom. /// @param _tokenId - the NFT asset queried for royalty information /// @param _value - the sale price of the NFT asset specified by _tokenId /// @return _receiver - address of who should be sent the royalty payment /// @return _royaltyAmount - the royalty payment amount for value sale price function royaltyInfo(uint256 _tokenId, uint256 _value) external view returns (address _receiver, uint256 _royaltyAmount); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.6; import { IERC721Enumerable } from "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; interface IHashes is IERC721Enumerable { function deactivateTokens( address _owner, uint256 _proposalId, bytes memory _signature ) external returns (uint256); function deactivated(uint256 _tokenId) external view returns (bool); function activationFee() external view returns (uint256); function verify( uint256 _tokenId, address _minter, string memory _phrase ) external view returns (bool); function getHash(uint256 _tokenId) external view returns (bytes32); function getPriorVotes(address account, uint256 blockNumber) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.6; interface IOwnable { function renounceOwnership() external; function transferOwnership(address newOwner) external; function owner() external view returns (address); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.6; import "@openzeppelin/contracts/utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. * * This is a modified version of the openzeppelin Ownable contract which works * with the cloneable contract pattern. Instead of initializing ownership in the * constructor, we have an empty constructor and then perform setup in the * initializeOwnership function. */ abstract contract OwnableCloneable is Context { bool ownableInitialized; address private _owner; modifier ownershipInitialized() { require(ownableInitialized, "OwnableCloneable: hasn't been initialized yet."); _; } event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the initialize caller as the initial owner. */ function initializeOwnership(address initialOwner) public virtual { require(!ownableInitialized, "OwnableCloneable: already initialized."); ownableInitialized = true; _setOwner(initialOwner); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual ownershipInitialized returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "OwnableCloneable: 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 ownershipInitialized onlyOwner { _setOwner(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 ownershipInitialized onlyOwner { require(newOwner != address(0), "OwnableCloneable: new owner is the zero address"); _setOwner(newOwner); } // This is set to internal so overriden versions of renounce/transfer ownership // can also be carried out by DAO address. function _setOwner(address newOwner) internal ownershipInitialized { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/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), "ERC721: balance query for the zero address"); 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), "ERC721: owner query for nonexistent token"); 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), "ERC721Metadata: URI query for nonexistent token"); 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, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_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), "ERC721: transfer caller is not owner nor approved"); _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), "ERC721: transfer caller is not owner nor approved"); _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), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @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), "ERC721: operator query for nonexistent token"); 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), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @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), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _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, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _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 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 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), "ERC721Enumerable: owner index out of bounds"); 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(), "ERC721Enumerable: global index out of bounds"); 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 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 make 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, "ReentrancyGuard: reentrant call"); // 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; // 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 no longer needed starting with Solidity 0.8. 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 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 pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, 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 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 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; /** * @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 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 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); } } } }
// SPDX-License-Identifier: MIT 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 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; } }
{ "optimizer": { "enabled": true, "runs": 1000000, "details": { "yul": false, "deduplicate": true, "cse": true, "constantOptimizer": true } }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"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":false,"internalType":"string","name":"baseTokenURI","type":"string"}],"name":"BaseTokenURISet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"burner","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Burned","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"tokenName","type":"string"},{"indexed":false,"internalType":"string","name":"tokenSymbol","type":"string"},{"indexed":false,"internalType":"string","name":"baseTokenURI","type":"string"},{"indexed":false,"internalType":"uint256","name":"cap","type":"uint256"},{"indexed":false,"internalType":"address","name":"mintEligibilityPredicateAddress","type":"address"},{"indexed":false,"internalType":"address","name":"mintFeePredicateAddress","type":"address"},{"indexed":false,"internalType":"uint16","name":"royaltyBps","type":"uint16"},{"indexed":false,"internalType":"address","name":"signatureBlockAddress","type":"address"},{"indexed":true,"internalType":"uint64","name":"initializationBlock","type":"uint64"}],"name":"CollectionInitialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousCreator","type":"address"},{"indexed":true,"internalType":"address","name":"newCreator","type":"address"}],"name":"CreatorTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"minter","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"hashesTokenId","type":"uint256"}],"name":"Minted","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":false,"internalType":"uint16","name":"royaltyBps","type":"uint16"}],"name":"RoyaltyBpsSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"signatureBlockAddress","type":"address"}],"name":"SignatureBlockAddressSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"signatureBlockAddress","type":"address"}],"name":"SignatureBlockCompleted","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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"creatorAmount","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"hashesDAOAmount","type":"uint256"}],"name":"Withdraw","type":"event"},{"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":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"completeSignatureBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"creatorAddress","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":"uint256","name":"","type":"uint256"}],"name":"hashesIdToCollectionTokenIdMapping","outputs":[{"internalType":"bool","name":"exists","type":"bool"},{"internalType":"uint128","name":"tokenId","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IHashes","name":"_hashesToken","type":"address"},{"internalType":"address","name":"_factoryMaintainerAddress","type":"address"},{"internalType":"address","name":"_createCollectionCaller","type":"address"},{"internalType":"bytes","name":"_initializationData","type":"bytes"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"initialOwner","type":"address"}],"name":"initializeOwnership","outputs":[],"stateMutability":"nonpayable","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":[],"name":"isSignatureBlockCompleted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_hashesTokenId","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintEligibilityPredicateContract","outputs":[{"internalType":"contract ICollectionNFTEligibilityPredicate","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintFeePredicateContract","outputs":[{"internalType":"contract ICollectionNFTMintFeePredicate","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"royaltyBps","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","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":"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":"_baseTokenURI","type":"string"}],"name":"setBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_royaltyBps","type":"uint16"}],"name":"setRoyaltyBps","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signatureBlockAddress","type":"address"}],"name":"setSignatureBlockAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signatureBlockAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":"_creatorAddress","type":"address"}],"name":"transferCreator","outputs":[],"stateMutability":"nonpayable","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":[{"internalType":"bytes","name":"_settings","type":"bytes"}],"name":"verifyEcosystemSettings","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040523480156200001157600080fd5b50604080518082018252601681527f544f4b454e5f4e414d455f504c414345484f4c4445520000000000000000000060208083019182528351808501909452601884527f544f4b454e5f53594d424f4c5f504c414345484f4c44455200000000000000009084015281519192916200008c91600191620000b0565b508051620000a2906002906020840190620000b0565b50506001600b55506200019d565b828054620000be9062000156565b90600052602060002090601f016020900481019282620000e257600085556200012d565b82601f10620000fd57805160ff19168380011785556200012d565b828001600101855582156200012d579182015b828111156200012d57825182559160200191906001019062000110565b506200013b9291506200013f565b5090565b5b808211156200013b576000815560010162000140565b6002810460018216806200016b57607f821691505b6020821081141562000181576200018162000187565b50919050565b634e487b7160e01b600052602260045260246000fd5b61597780620001ad6000396000f3fe6080604052600436106102ca5760003560e01c8063715018a611610179578063b88d4fde116100d6578063e927fc5c1161008a578063f2fde38b11610064578063f2fde38b1461082d578063f59d33d91461084d578063fa3fa1961461086257600080fd5b8063e927fc5c1461078a578063e985e9c5146107b7578063e99a9d971461080d57600080fd5b8063c87b56dd116100bb578063c87b56dd146106fe578063c8bedba41461071e578063d547cfb71461077557600080fd5b8063b88d4fde146106b6578063c63adb2b146106d657600080fd5b80639d65578c1161012d578063a22cb46511610112578063a22cb46514610660578063aa24c21114610680578063affed0e0146106a057600080fd5b80639d65578c14610620578063a0712d681461064d57600080fd5b80638da5cb5b1161015e5780638da5cb5b146105d057806391a690e4146105e557806395d89b411461060b57600080fd5b8063715018a61461058e5780637590cdb3146105a357600080fd5b80632f745c591161022757806342966c68116101db5780635cd9205f116101c05780635cd9205f1461052e5780636352211e1461054e57806370a082311461056e57600080fd5b806342966c68146104ee5780634f6ccce71461050e57600080fd5b8063355274ea1161020c578063355274ea146104a35780633ccfd60b146104b957806342842e0e146104ce57600080fd5b80632f745c591461046357806330176e131461048357600080fd5b806318160ddd1161027e57806323b872dd1161026357806323b872dd146103f5578063246581f7146104155780632a55205a1461043557600080fd5b806318160ddd1461039d5780631ef69ae4146103bb57600080fd5b806306fdde03116102af57806306fdde031461032c578063081812fc1461034e578063095ea7b31461037b57600080fd5b806301ffc9a7146102d657806304eff22f1461030c57600080fd5b366102d157005b600080fd5b3480156102e257600080fd5b506102f66102f1366004613fa3565b610882565b604051610303919061516b565b60405180910390f35b34801561031857600080fd5b506102f6610327366004613fe5565b6108de565b34801561033857600080fd5b50610341610935565b60405161030391906151bd565b34801561035a57600080fd5b5061036e610369366004614144565b610a0d565b60405161030391906150fe565b34801561038757600080fd5b5061039b610396366004613f4f565b610a91565b005b3480156103a957600080fd5b506009545b6040516103039190615553565b3480156103c757600080fd5b506015546103e89073ffffffffffffffffffffffffffffffffffffffff1681565b60405161030391906151af565b34801561040157600080fd5b5061039b610410366004613e4d565b610b72565b34801561042157600080fd5b5061039b61043036600461405b565b610bbe565b34801561044157600080fd5b50610455610450366004614186565b611081565b604051610303929190615150565b34801561046f57600080fd5b506103ae61047e366004613f4f565b6110b3565b34801561048f57600080fd5b5061039b61049e366004613fe5565b61112c565b3480156104af57600080fd5b506103ae600e5481565b3480156104c557600080fd5b5061039b61121d565b3480156104da57600080fd5b5061039b6104e9366004613e4d565b6114bc565b3480156104fa57600080fd5b5061039b610509366004614144565b6114d7565b34801561051a57600080fd5b506103ae610529366004614144565b61158b565b34801561053a57600080fd5b5061039b610549366004613dce565b6115f3565b34801561055a57600080fd5b5061036e610569366004614144565b611667565b34801561057a57600080fd5b506103ae610589366004613dce565b6116c3565b34801561059a57600080fd5b5061039b61173b565b3480156105af57600080fd5b506014546103e89073ffffffffffffffffffffffffffffffffffffffff1681565b3480156105dc57600080fd5b5061036e6118c4565b3480156105f157600080fd5b506017546102f69068010000000000000000900460ff1681565b34801561061757600080fd5b50610341611923565b34801561062c57600080fd5b5060135461036e9073ffffffffffffffffffffffffffffffffffffffff1681565b61039b61065b366004614144565b61196f565b34801561066c57600080fd5b5061039b61067b366004613f1c565b61223f565b34801561068c57600080fd5b5061039b61069b3660046140dd565b612329565b3480156106ac57600080fd5b506103ae600d5481565b3480156106c257600080fd5b5061039b6106d1366004613e9d565b612478565b3480156106e257600080fd5b506017546106f19061ffff1681565b6040516103039190615545565b34801561070a57600080fd5b50610341610719366004614144565b6124ca565b34801561072a57600080fd5b50610767610739366004614144565b60166020526000908152604090205460ff81169061010090046fffffffffffffffffffffffffffffffff1682565b604051610303929190615179565b34801561078157600080fd5b50610341612577565b34801561079657600080fd5b5060125461036e9073ffffffffffffffffffffffffffffffffffffffff1681565b3480156107c357600080fd5b506102f66107d2366004613e10565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561081957600080fd5b5061039b610828366004613dce565b612605565b34801561083957600080fd5b5061039b610848366004613dce565b612760565b34801561085957600080fd5b5061039b612933565b34801561086e57600080fd5b5061039b61087d366004613dce565b612ae8565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a0000000000000000000000000000000000000000000000000000000014806108d857506108d882612c02565b92915050565b600080600080848060200190518101906108f891906140fe565b9250925092506127108361ffff161115801561091a57506127108261ffff1611155b801561092c57506127108161ffff1611155b95945050505050565b600c5460609060ff1661097d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615268565b60405180910390fd5b6010805461098a906156b0565b80601f01602080910402602001604051908101604052809291908181526020018280546109b6906156b0565b8015610a035780601f106109d857610100808354040283529160200191610a03565b820191906000526020600020905b8154815290600101906020018083116109e657829003601f168201915b5050505050905090565b60008181526003602052604081205473ffffffffffffffffffffffffffffffffffffffff16610a68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610974906153e8565b5060009081526005602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b6000610a9c82611667565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b04576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615418565b3373ffffffffffffffffffffffffffffffffffffffff82161480610b2d5750610b2d81336107d2565b610b63576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615368565b610b6d8383612c58565b505050565b610b7d335b82612cf8565b610bb3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615438565b610b6d838383612e12565b600c5460ff1615610bfb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615378565b610c04836115f3565b601280547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8416179055604080516101008101825260608082526020820181905291810182905260009181018290526080810182905260a0810182905260c0810182905260e081019190915281806020019051810190610c9a91906140a2565b80518051919250610cb19160109160200190613adf565b506020808201518051610cc8926011920190613adf565b5060408101518051610ce291600f91602090910190613adf565b50606081810151600e556080820151601480547fffffffffffffffffffffffff000000000000000000000000000000000000000090811673ffffffffffffffffffffffffffffffffffffffff9384161790915560a084015160158054831691841691909117905560c0840151601780547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00001661ffff90921691909117905560e0840151601380549092169216919091179055604080519182019052602a808252600091610db9914391906159186020830139612fd9565b905060003373ffffffffffffffffffffffffffffffffffffffff1663c265d191604051602001610de8906150c8565b60405160208183030381529060405280519060200120846040518363ffffffff1660e01b8152600401610e1c929190615194565b60006040518083038186803b158015610e3457600080fd5b505afa158015610e48573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201604052610e8e9190810190614020565b905080806020019051810190610ea491906140fe565b6017805461ffff94851662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000ffff948616640100000000027fffffffffffffffffffffffffffffffffffffffffffffffffffff0000ffffffff9487166601000000000000908102959095167fffffffffffffffffffffffffffffffffffffffffffffffff00000000ffffffff9093169290921791909117938416811791829055919004831690831691909216171115610f8b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615458565b600c80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556017805473ffffffffffffffffffffffffffffffffffffffff808a166901000000000000000000027fffffff0000000000000000000000000000000000000000ffffffffffffffffff83168117909355600e5460145460155460135460405167ffffffffffffffff8a16977fe061499cb9d8b0834136da0edd7b8bed5f9a6b08339547bdf4bc95f8541a5c729761107097601097601197600f979196908316959183169461ffff90811694169390931792909116906151ce565b60405180910390a250505050505050565b601754600090819030906110a890612710906110a290879061ffff16613027565b9061303a565b915091509250929050565b60006110be836116c3565b82106110f6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610974906152a8565b5073ffffffffffffffffffffffffffffffffffffffff919091166000908152600760209081526040808320938352929052205490565b600c5460ff16611168576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615268565b60125473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146111cf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610974906152c8565b80516111e290600f906020840190613adf565b507f2e9b34e5ec7377754a85ec13c1e9a442a00db0c46dbdefbb143dd0371fd20c1c8160405161121291906151bd565b60405180910390a150565b600c5460ff16611259576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615268565b601754479060009061128090612710906110a2908590640100000000900461ffff16613027565b9050600061128e8383613046565b905080156113405760125460405160009173ffffffffffffffffffffffffffffffffffffffff169083906112c1906150f6565b60006040518083038185875af1925050503d80600081146112fe576040519150601f19603f3d011682016040523d82523d6000602084013e611303565b606091505b505090508061133e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610974906152e8565b505b811561148a576000601760099054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b1580156113b057600080fd5b505afa1580156113c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113e89190613def565b73ffffffffffffffffffffffffffffffffffffffff168360405161140b906150f6565b60006040518083038185875af1925050503d8060008114611448576040519150601f19603f3d011682016040523d82523d6000602084013e61144d565b606091505b5050905080611488576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615328565b505b604051829082907f56ca301a9219608c91e7bcee90e083c19671d2cdcc96752c7af291cee5f9c8c890600090a3505050565b610b6d83838360405180602001604052806000815250612478565b600c5460ff16611513576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615268565b61151c33610b77565b611552576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615535565b61155b81613052565b604051819033907f696de425f79f4a40bc6d2122ca50507f0efbeabbff86a84871b7196ab8ea8df790600090a350565b600061159660095490565b82106115ce576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615448565b600982815481106115e1576115e1615831565b90600052602060002001549050919050565b60005460ff1615611630576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610974906153a8565b600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556116648161312b565b50565b60008181526003602052604081205473ffffffffffffffffffffffffffffffffffffffff16806108d8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615398565b600073ffffffffffffffffffffffffffffffffffffffff8216611712576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615388565b5073ffffffffffffffffffffffffffffffffffffffff1660009081526004602052604090205490565b60005460ff16611777576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615278565b61177f6118c4565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806118825750601760099054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561181b57600080fd5b505afa15801561182f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118539190613def565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6118b8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615358565b6118c2600061312b565b565b6000805460ff16611901576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615278565b50600054610100900473ffffffffffffffffffffffffffffffffffffffff1690565b600c5460609060ff16611962576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615268565b6011805461098a906156b0565b600c5460ff166119ab576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615268565b6002600b5414156119e8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615505565b6002600b55600e5415806119ff5750600e54600d54105b611a35576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615428565b6017546040517f6352211e000000000000000000000000000000000000000000000000000000008152690100000000000000000090910473ffffffffffffffffffffffffffffffffffffffff1690636352211e90611a97908490600401615553565b60206040518083038186803b158015611aaf57600080fd5b505afa158015611ac3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ae79190613def565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611b4b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615348565b60008181526016602052604090205460ff1615611b94576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615515565b601454600d546040517f9626f09c00000000000000000000000000000000000000000000000000000000815260009273ffffffffffffffffffffffffffffffffffffffff1691639626f09c91611bef91908690600401615561565b60206040518083038186803b158015611c0757600080fd5b505afa158015611c1b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c3f9190613f82565b905080611c78576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615258565b601554600d546040517f1cc1fddb00000000000000000000000000000000000000000000000000000000815260009273ffffffffffffffffffffffffffffffffffffffff1691631cc1fddb91611cd391908790600401615561565b60206040518083038186803b158015611ceb57600080fd5b505afa158015611cff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d239190614165565b905080341015611d5f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615318565b6040518060400160405280600115158152602001611d97600d546040518060600160405280602b81526020016158ed602b91396131e4565b6fffffffffffffffffffffffffffffffff90811690915260008581526016602090815260408220845181549590920151909316610100027fffffffffffffffffffffffffffffff00000000000000000000000000000000ff911515919091167fffffffffffffffffffffffffffffff00000000000000000000000000000000009094169390931792909217905560175461271090611e4190849061ffff6201000090910416613027565b611e4b91906155e7565b90506000611e598383613046565b905060008115611f1c57611e6d8183613232565b60125460405191925060009173ffffffffffffffffffffffffffffffffffffffff909116908490611e9d906150f6565b60006040518083038185875af1925050503d8060008114611eda576040519150601f19603f3d011682016040523d82523d6000602084013e611edf565b606091505b5050905080611f1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610974906152e8565b505b600083118015611fe557506103e886101580611fe557506017546040517fa899b36c000000000000000000000000000000000000000000000000000000008152690100000000000000000090910473ffffffffffffffffffffffffffffffffffffffff169063a899b36c90611f95908990600401615553565b60206040518083038186803b158015611fad57600080fd5b505afa158015611fc1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fe59190613f82565b1561213a576000601760099054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561205457600080fd5b505afa158015612068573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061208c9190613def565b73ffffffffffffffffffffffffffffffffffffffff16846040516120af906150f6565b60006040518083038185875af1925050503d80600081146120ec576040519150601f19603f3d011682016040523d82523d6000602084013e6120f1565b606091505b505090508061212c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615328565b6121368285613232565b9150505b803411156121da5760003361214f3484613046565b60405161215b906150f6565b60006040518083038185875af1925050503d8060008114612198576040519150601f19603f3d011682016040523d82523d6000602084013e61219d565b606091505b50509050806121d8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615525565b505b6121f733600d80549060006121ee83615728565b9190505561323e565b856001600d546122079190615638565b60405133907f25b428dfde728ccfaddad7e29e4ac23c24ed7fd1a6e3e3f91894a9a073f5dfff90600090a450506001600b5550505050565b73ffffffffffffffffffffffffffffffffffffffff821633141561228f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615308565b33600081815260066020908152604080832073ffffffffffffffffffffffffffffffffffffffff871680855292529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001685151517905590519091907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319061231d90859061516b565b60405180910390a35050565b600c5460ff16612365576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615268565b60125473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146123cc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610974906152c8565b60175461ffff66010000000000009091048116908216111561241a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615458565b601780547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00001661ffff83161790556040517fb748f99079f00b44bc6b1f97eb8ee77d53ac0748bba25162555cf4c5bb48b66490611212908390615545565b6124823383612cf8565b6124b8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615438565b6124c48484848461325c565b50505050565b600c5460609060ff16612509576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615268565b600d548210612544576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615298565b600f61254f836132a9565b6040516020016125609291906150b0565b60405160208183030381529060405290505b919050565b600f8054612584906156b0565b80601f01602080910402602001604051908101604052809291908181526020018280546125b0906156b0565b80156125fd5780601f106125d2576101008083540402835291602001916125fd565b820191906000526020600020905b8154815290600101906020018083116125e057829003601f168201915b505050505081565b600c5460ff16612641576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615268565b60125473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146126a8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610974906152c8565b60175468010000000000000000900460ff16156126f1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615288565b601380547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040517fee7c5312a5f230a616620ea6d4a0d02d69c3484b7b85bd00bb8baf19afb52ce590600090a250565b60005460ff1661279c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615278565b6127a46118c4565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806128a75750601760099054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561284057600080fd5b505afa158015612854573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128789190613def565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6128dd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615358565b73ffffffffffffffffffffffffffffffffffffffff811661292a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610974906153f8565b6116648161312b565b600c5460ff1661296f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615268565b60175468010000000000000000900460ff16156129b8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615288565b60135473ffffffffffffffffffffffffffffffffffffffff16612a07576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610974906153b8565b60135473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612a6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610974906153d8565b601780547fffffffffffffffffffffffffffffffffffffffffffffff00ffffffffffffffff166801000000000000000017905560135460405173ffffffffffffffffffffffffffffffffffffffff909116907f4fabfdd37535ad45ef97f9575ac1d1a6d3306ec1bdbca6b7cd439e043059684f90600090a2565b600c5460ff16612b24576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615268565b60125473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612b8b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610974906152c8565b6012805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f7f11fe0c7098e1a76afcc68f35abaa07ef156fa7d6dd2d39664812fe37348d1690600090a35050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d630000000000000000000000000000000000000000000000000000000014806108d857506108d8826133db565b600081815260056020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff84169081179091558190612cb282611667565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008181526003602052604081205473ffffffffffffffffffffffffffffffffffffffff16612d53576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615338565b6000612d5e83611667565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612dcd57508373ffffffffffffffffffffffffffffffffffffffff16612db584610a0d565b73ffffffffffffffffffffffffffffffffffffffff16145b80612e0a575073ffffffffffffffffffffffffffffffffffffffff80821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b8273ffffffffffffffffffffffffffffffffffffffff16612e3282611667565b73ffffffffffffffffffffffffffffffffffffffff1614612e7f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615408565b73ffffffffffffffffffffffffffffffffffffffff8216612ecc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610974906152f8565b612ed78383836134be565b612ee2600082612c58565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600460205260408120805460019290612f18908490615638565b909155505073ffffffffffffffffffffffffffffffffffffffff82166000908152600460205260408120805460019290612f539084906155cf565b909155505060008181526003602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff86811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60008168010000000000000000841061301f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097491906151bd565b509192915050565b600061303382846155fb565b9392505050565b600061303382846155e7565b60006130338284615638565b600061305d82611667565b905061306b816000846134be565b613076600083612c58565b73ffffffffffffffffffffffffffffffffffffffff811660009081526004602052604081208054600192906130ac908490615638565b909155505060008281526003602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001690555183919073ffffffffffffffffffffffffffffffffffffffff8416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60005460ff16613167576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615278565b6000805473ffffffffffffffffffffffffffffffffffffffff8381166101008181027fffffffffffffffffffffff0000000000000000000000000000000000000000ff851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b600081700100000000000000000000000000000000841061301f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097491906151bd565b600061303382846155cf565b6132588282604051806020016040528060008152506135c4565b5050565b613267848484612e12565b61327384848484613611565b6124c4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610974906152b8565b6060816132e957505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b811561331357806132fd81615728565b915061330c9050600a836155e7565b91506132ed565b60008167ffffffffffffffff81111561332e5761332e615860565b6040519080825280601f01601f191660200182016040528015613358576020820181803683370190505b5090505b8415612e0a5761336d600183615638565b915061337a600a86615761565b6133859060306155cf565b60f81b81838151811061339a5761339a615831565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506133d4600a866155e7565b945061335c565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061346e57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806108d857507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316146108d8565b73ffffffffffffffffffffffffffffffffffffffff83166135265761352181600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b613563565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146135635761356383826137ba565b73ffffffffffffffffffffffffffffffffffffffff821661358757610b6d81613871565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614610b6d57610b6d8282613920565b6135ce8383613971565b6135db6000848484613611565b610b6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610974906152b8565b600073ffffffffffffffffffffffffffffffffffffffff84163b156137af576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063150b7a029061368890339089908890889060040161510c565b602060405180830381600087803b1580156136a257600080fd5b505af19250505080156136f0575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682019092526136ed91810190613fc4565b60015b613764573d80801561371e576040519150601f19603f3d011682016040523d82523d6000602084013e613723565b606091505b50805161375c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610974906152b8565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050612e0a565b506001949350505050565b600060016137c7846116c3565b6137d19190615638565b6000838152600860205260409020549091508082146138315773ffffffffffffffffffffffffffffffffffffffff841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b50600091825260086020908152604080842084905573ffffffffffffffffffffffffffffffffffffffff9094168352600781528383209183525290812055565b60095460009061388390600190615638565b6000838152600a6020526040812054600980549394509092849081106138ab576138ab615831565b9060005260206000200154905080600983815481106138cc576138cc615831565b6000918252602080832090910192909255828152600a9091526040808220849055858252812055600980548061390457613904615802565b6001900381819060005260206000200160009055905550505050565b600061392b836116c3565b73ffffffffffffffffffffffffffffffffffffffff9093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b73ffffffffffffffffffffffffffffffffffffffff82166139be576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610974906153c8565b60008181526003602052604090205473ffffffffffffffffffffffffffffffffffffffff1615613a1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610974906152d8565b613a26600083836134be565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600460205260408120805460019290613a5c9084906155cf565b909155505060008181526003602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054613aeb906156b0565b90600052602060002090601f016020900481019282613b0d5760008555613b53565b82601f10613b2657805160ff1916838001178555613b53565b82800160010185558215613b53579182015b82811115613b53578251825591602001919060010190613b38565b50613b5f929150613b63565b5090565b5b80821115613b5f5760008155600101613b64565b6000613b8b613b8684615586565b61556f565b905082815260208101848484011115613ba657613ba6600080fd5b613bb1848285615678565b509392505050565b6000613bc7613b8684615586565b905082815260208101848484011115613be257613be2600080fd5b613bb1848285615684565b80356108d88161588f565b80516108d88161588f565b80356108d8816158a3565b80516108d8816158a3565b80356108d8816158ab565b80516108d8816158ab565b600082601f830112613c4357613c43600080fd5b8135612e0a848260208601613b78565b600082601f830112613c6757613c67600080fd5b8151612e0a848260208601613bb9565b80516108d8816158d3565b80356108d8816158d3565b60006101008284031215613ca357613ca3600080fd5b613cae61010061556f565b825190915067ffffffffffffffff811115613ccb57613ccb600080fd5b613cd784828501613c53565b825250602082015167ffffffffffffffff811115613cf757613cf7600080fd5b613d0384828501613c53565b602083015250604082015167ffffffffffffffff811115613d2657613d26600080fd5b613d3284828501613c53565b6040830152506060613d4684828501613dc3565b6060830152506080613d5a84828501613c77565b60808301525060a0613d6e84828501613c77565b60a08301525060c0613d8284828501613dad565b60c08301525060e0613d9684828501613bf8565b60e08301525092915050565b80356108d8816158dc565b80516108d8816158dc565b80356108d8816158e6565b80516108d8816158e6565b600060208284031215613de357613de3600080fd5b6000612e0a8484613bed565b600060208284031215613e0457613e04600080fd5b6000612e0a8484613bf8565b60008060408385031215613e2657613e26600080fd5b6000613e328585613bed565b9250506020613e4385828601613bed565b9150509250929050565b600080600060608486031215613e6557613e65600080fd5b6000613e718686613bed565b9350506020613e8286828701613bed565b9250506040613e9386828701613db8565b9150509250925092565b60008060008060808587031215613eb657613eb6600080fd5b6000613ec28787613bed565b9450506020613ed387828801613bed565b9350506040613ee487828801613db8565b925050606085013567ffffffffffffffff811115613f0457613f04600080fd5b613f1087828801613c2f565b91505092959194509250565b60008060408385031215613f3257613f32600080fd5b6000613f3e8585613bed565b9250506020613e4385828601613c03565b60008060408385031215613f6557613f65600080fd5b6000613f718585613bed565b9250506020613e4385828601613db8565b600060208284031215613f9757613f97600080fd5b6000612e0a8484613c0e565b600060208284031215613fb857613fb8600080fd5b6000612e0a8484613c19565b600060208284031215613fd957613fd9600080fd5b6000612e0a8484613c24565b600060208284031215613ffa57613ffa600080fd5b813567ffffffffffffffff81111561401457614014600080fd5b612e0a84828501613c2f565b60006020828403121561403557614035600080fd5b815167ffffffffffffffff81111561404f5761404f600080fd5b612e0a84828501613c53565b6000806000806080858703121561407457614074600080fd5b60006140808787613c82565b945050602061409187828801613bed565b9350506040613ee487828801613bed565b6000602082840312156140b7576140b7600080fd5b815167ffffffffffffffff8111156140d1576140d1600080fd5b612e0a84828501613c8d565b6000602082840312156140f2576140f2600080fd5b6000612e0a8484613da2565b60008060006060848603121561411657614116600080fd5b60006141228686613dad565b935050602061413386828701613dad565b9250506040613e9386828701613dad565b60006020828403121561415957614159600080fd5b6000612e0a8484613db8565b60006020828403121561417a5761417a600080fd5b6000612e0a8484613dc3565b6000806040838503121561419c5761419c600080fd5b6000613f718585613db8565b6141b18161564f565b82525050565b8015156141b1565b806141b1565b60006141cf825190565b8084526020840193506141e6818560208601615684565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920192915050565b6141b18161566d565b6000614228825190565b614236818560208601615684565b9290920192915050565b6000815461424d816156b0565b80855260208501945060018216801561426d576001811461429d576142cb565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00831686526020860193506142cb565b60008581526020902060005b838110156142c5578154888201526001909101906020016142a9565b87019450505b50505092915050565b600081546142e1816156b0565b6001821680156142f85760018114614327576142cb565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008316865281860193506142cb565b60008581526020902060005b8381101561434f57815488820152600190910190602001614333565b505050939093019392505050565b604181526000602082017f436f6c6c656374696f6e4e4654436c6f6e6561626c6556313a20737570706c6981527f656420746f6b656e20494420697320696e656c696769626c6520746f206d696e60208201527f7400000000000000000000000000000000000000000000000000000000000000604082015291505b5060600190565b603681526000602082017f436f6c6c656374696f6e4e4654436c6f6e6561626c6556313a206861736e277481527f206265656e20696e697469616c697a6564207965742e00000000000000000000602082015291505b5060400190565b602e81526000602082017f4f776e61626c65436c6f6e6561626c653a206861736e2774206265656e20696e81527f697469616c697a6564207965742e00000000000000000000000000000000000060208201529150614436565b604481526000602082017f436f6c6c656374696f6e4e4654436c6f6e6561626c6556313a207369676e617481527f75726520626c6f636b2068617320616c7265616479206265656e20636f6d706c60208201527f6574656400000000000000000000000000000000000000000000000000000000604082015291506143d9565b605281526000602082017f436f6c6c656374696f6e4e4654436c6f6e6561626c6556313a2043616e27742081527f70726f76696465206120746f6b656e2055524920666f722061206e6f6e2d657860208201527f697374656e7420636f6c6c656374696f6e2e0000000000000000000000000000604082015291506143d9565b602b81526000602082017f455243373231456e756d657261626c653a206f776e657220696e646578206f7581527f74206f6620626f756e647300000000000000000000000000000000000000000060208201529150614436565b603281526000602082017f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527f63656976657220696d706c656d656e746572000000000000000000000000000060208201529150614436565b603281526000602082017f436f6c6c656374696f6e4e4654436c6f6e6561626c6556313a206d757374206281527f6520636f6e74726163742063726561746f72000000000000000000000000000060208201529150614436565b601c81526000602082017f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000815291505b5060200190565b603f81526000602082017f436f6c6c656374696f6e4e4654436c6f6e6561626c6556313a206661696c656481527f20746f2073656e642045544820746f2063726561746f7220616464726573730060208201529150614436565b602481526000602082017f4552433732313a207472616e7366657220746f20746865207a65726f2061646481527f726573730000000000000000000000000000000000000000000000000000000060208201529150614436565b601981526000602082017f4552433732313a20617070726f766520746f2063616c6c657200000000000000815291506146d5565b603881526000602082017f436f6c6c656374696f6e4e4654436c6f6e6561626c6556313a206d757374207081527f6173732073756666696369656e74206d696e74206665652e000000000000000060208201529150614436565b603981526000602082017f436f6c6c656374696f6e4e4654436c6f6e6561626c6556313a206661696c656481527f20746f2073656e642045544820746f2048617368657344414f0000000000000060208201529150614436565b602c81526000602082017f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657881527f697374656e7420746f6b656e000000000000000000000000000000000000000060208201529150614436565b604b81526000602082017f436f6c6c656374696f6e4e4654436c6f6e6561626c6556313a206d757374206281527f65206f776e6572206f6620737570706c6965642068617368657320746f6b656e60208201527f20494420746f206d696e74000000000000000000000000000000000000000000604082015291506143d9565b603d81526000602082017f436f6c6c656374696f6e4e4654436c6f6e6561626c6556313a206d757374206281527f6520636f6e7472616374206f776e6572206f722048617368657344414f00000060208201529150614436565b603881526000602082017f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7781527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060208201529150614436565b603081526000602082017f436f6c6c656374696f6e4e4654436c6f6e6561626c6556313a20616c7265616481527f7920696e6974697469616c697a65642e0000000000000000000000000000000060208201529150614436565b602a81526000602082017f4552433732313a2062616c616e636520717565727920666f7220746865207a6581527f726f20616464726573730000000000000000000000000000000000000000000060208201529150614436565b602981526000602082017f4552433732313a206f776e657220717565727920666f72206e6f6e657869737481527f656e7420746f6b656e000000000000000000000000000000000000000000000060208201529150614436565b602681526000602082017f4f776e61626c65436c6f6e6561626c653a20616c726561647920696e6974696181527f6c697a65642e000000000000000000000000000000000000000000000000000060208201529150614436565b604381526000602082017f436f6c6c656374696f6e4e4654436c6f6e6561626c6556313a207369676e617481527f75726520626c6f636b206164647265737320686173206e6f74206265656e207360208201527f65742e0000000000000000000000000000000000000000000000000000000000604082015291506143d9565b60208082527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373910190815260006146d5565b605381526000602082017f436f6c6c656374696f6e4e4654436c6f6e6561626c6556313a206f6e6c79207381527f69676e617475726520626c6f636b20616464726573732063616e20636f6d706c60208201527f657465207369676e617475726520626c6f636b00000000000000000000000000604082015291506143d9565b602c81526000602082017f4552433732313a20617070726f76656420717565727920666f72206e6f6e657881527f697374656e7420746f6b656e000000000000000000000000000000000000000060208201529150614436565b603781526000602082017f436f6c6c656374696f6e4e4654436c6f6e6561626c6556313a206e6577206f7781527f6e657220697320746865207a65726f206164647265737300000000000000000060208201529150614436565b602981526000602082017f4552433732313a207472616e73666572206f6620746f6b656e2074686174206981527f73206e6f74206f776e000000000000000000000000000000000000000000000060208201529150614436565b602181526000602082017f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6581527f720000000000000000000000000000000000000000000000000000000000000060208201529150614436565b603581526000602082017f436f6c6c656374696f6e4e4654436c6f6e6561626c6556313a20737570706c7981527f2063617020686173206265656e2072656163686564000000000000000000000060208201529150614436565b603181526000602082017f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f81527f776e6572206e6f7220617070726f76656400000000000000000000000000000060208201529150614436565b602c81526000602082017f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f81527f7574206f6620626f756e6473000000000000000000000000000000000000000060208201529150614436565b601f81526000602082017f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00815291506146d5565b605e81526000602082017f436f6c6c656374696f6e4e4654436c6f6e6561626c6556313a20737570706c6981527f656420746f6b656e2049442068617320616c7265616479206265656e2075736560208201527f6420746f206d696e742077697468207468697320636f6c6c656374696f6e0000604082015291506143d9565b602f81526000602082017f436f6c6c656374696f6e4e4654436c6f6e6561626c6556313a206661696c656481527f20746f20726566756e64204554482e000000000000000000000000000000000060208201529150614436565b603b81526000602082017f436f6c6c656374696f6e4e4654436c6f6e6561626c6556313a2063616c6c657281527f206973206e6f74206f776e6572206e6f7220617070726f7665642e000000000060208201529150614436565b6fffffffffffffffffffffffffffffffff81166141b1565b61ffff81166141b1565b67ffffffffffffffff81166141b1565b60006150bc82856142d4565b9150612e0a828461421e565b7f4e46545f7631000000000000000000000000000000000000000000000000000081526000600682016108d8565b6000816108d8565b602081016108d882846141a8565b6080810161511a82876141a8565b61512760208301866141a8565b61513460408301856141bf565b818103606083015261514681846141c5565b9695505050505050565b6040810161515e82856141a8565b61303360208301846141bf565b602081016108d882846141b7565b6040810161518782856141b7565b613033602083018461507e565b604081016151a282856141bf565b61303360208301846150a0565b602081016108d88284614215565b6020808252810161303381846141c5565b61010080825281016151e0818b614240565b905081810360208301526151f4818a614240565b905081810360408301526152088189614240565b905061521760608301886141bf565b61522460808301876141a8565b61523160a08301866141a8565b61523e60c0830185615096565b61524b60e08301846141a8565b9998505050505050505050565b602080825281016108d88161435d565b602080825281016108d8816143e0565b602080825281016108d88161443d565b602080825281016108d881614497565b602080825281016108d881614517565b602080825281016108d881614597565b602080825281016108d8816145f1565b602080825281016108d88161464b565b602080825281016108d8816146a5565b602080825281016108d8816146dc565b602080825281016108d881614736565b602080825281016108d881614790565b602080825281016108d8816147c4565b602080825281016108d88161481e565b602080825281016108d881614878565b602080825281016108d8816148d2565b602080825281016108d881614952565b602080825281016108d8816149ac565b602080825281016108d881614a06565b602080825281016108d881614a60565b602080825281016108d881614aba565b602080825281016108d881614b14565b602080825281016108d881614b6e565b602080825281016108d881614bee565b602080825281016108d881614c20565b602080825281016108d881614ca0565b602080825281016108d881614cfa565b602080825281016108d881614d54565b602080825281016108d881614dae565b602080825281016108d881614e08565b602080825281016108d881614e62565b602080825281016108d881614ebc565b602080825281016108d881606281527f436f6c6c656374696f6e4e4654436c6f6e6561626c6556313a20726f79616c7460208201527f792070657263656e74616765206d757374206265206c657373207468616e206f60408201527f7220657175616c20746f206d6178696d756d20616c6c6f77656420736574746960608201527f6e67000000000000000000000000000000000000000000000000000000000000608082015260a00190565b602080825281016108d881614f16565b602080825281016108d881614f4a565b602080825281016108d881614fca565b602080825281016108d881615024565b602081016108d88284615096565b602081016108d882846141bf565b6040810161515e82856141bf565b600061557a60405190565b905061257282826156dd565b600067ffffffffffffffff8211156155a0576155a0615860565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011660200192915050565b600082198211156155e2576155e2615775565b500190565b6000826155f6576155f66157a4565b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561563357615633615775565b500290565b60008282101561564a5761564a615775565b500390565b600073ffffffffffffffffffffffffffffffffffffffff82166108d8565b60006108d88261564f565b82818337506000910152565b60005b8381101561569f578181015183820152602001615687565b838111156124c45750506000910152565b6002810460018216806156c457607f821691505b602082108114156156d7576156d76157d3565b50919050565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f830116810181811067ffffffffffffffff8211171561572157615721615860565b6040525050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561575a5761575a615775565b5060010190565b600082615770576157706157a4565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6158988161564f565b811461166457600080fd5b801515615898565b7fffffffff000000000000000000000000000000000000000000000000000000008116615898565b6158988161566d565b61ffff8116615898565b8061589856fe436f6c6c656374696f6e4e4654436c6f6e6561626c6556313a20657863656564732031323820626974732e436f6c6c656374696f6e4e4654436c6f6e6561626c6556313a206578636565647320363420626974732ea2646970667358221220746bc6734010d7704302dda9920ba548d75db6636073d236d11179655a658ed564736f6c63430008060033
Deployed Bytecode
0x6080604052600436106102ca5760003560e01c8063715018a611610179578063b88d4fde116100d6578063e927fc5c1161008a578063f2fde38b11610064578063f2fde38b1461082d578063f59d33d91461084d578063fa3fa1961461086257600080fd5b8063e927fc5c1461078a578063e985e9c5146107b7578063e99a9d971461080d57600080fd5b8063c87b56dd116100bb578063c87b56dd146106fe578063c8bedba41461071e578063d547cfb71461077557600080fd5b8063b88d4fde146106b6578063c63adb2b146106d657600080fd5b80639d65578c1161012d578063a22cb46511610112578063a22cb46514610660578063aa24c21114610680578063affed0e0146106a057600080fd5b80639d65578c14610620578063a0712d681461064d57600080fd5b80638da5cb5b1161015e5780638da5cb5b146105d057806391a690e4146105e557806395d89b411461060b57600080fd5b8063715018a61461058e5780637590cdb3146105a357600080fd5b80632f745c591161022757806342966c68116101db5780635cd9205f116101c05780635cd9205f1461052e5780636352211e1461054e57806370a082311461056e57600080fd5b806342966c68146104ee5780634f6ccce71461050e57600080fd5b8063355274ea1161020c578063355274ea146104a35780633ccfd60b146104b957806342842e0e146104ce57600080fd5b80632f745c591461046357806330176e131461048357600080fd5b806318160ddd1161027e57806323b872dd1161026357806323b872dd146103f5578063246581f7146104155780632a55205a1461043557600080fd5b806318160ddd1461039d5780631ef69ae4146103bb57600080fd5b806306fdde03116102af57806306fdde031461032c578063081812fc1461034e578063095ea7b31461037b57600080fd5b806301ffc9a7146102d657806304eff22f1461030c57600080fd5b366102d157005b600080fd5b3480156102e257600080fd5b506102f66102f1366004613fa3565b610882565b604051610303919061516b565b60405180910390f35b34801561031857600080fd5b506102f6610327366004613fe5565b6108de565b34801561033857600080fd5b50610341610935565b60405161030391906151bd565b34801561035a57600080fd5b5061036e610369366004614144565b610a0d565b60405161030391906150fe565b34801561038757600080fd5b5061039b610396366004613f4f565b610a91565b005b3480156103a957600080fd5b506009545b6040516103039190615553565b3480156103c757600080fd5b506015546103e89073ffffffffffffffffffffffffffffffffffffffff1681565b60405161030391906151af565b34801561040157600080fd5b5061039b610410366004613e4d565b610b72565b34801561042157600080fd5b5061039b61043036600461405b565b610bbe565b34801561044157600080fd5b50610455610450366004614186565b611081565b604051610303929190615150565b34801561046f57600080fd5b506103ae61047e366004613f4f565b6110b3565b34801561048f57600080fd5b5061039b61049e366004613fe5565b61112c565b3480156104af57600080fd5b506103ae600e5481565b3480156104c557600080fd5b5061039b61121d565b3480156104da57600080fd5b5061039b6104e9366004613e4d565b6114bc565b3480156104fa57600080fd5b5061039b610509366004614144565b6114d7565b34801561051a57600080fd5b506103ae610529366004614144565b61158b565b34801561053a57600080fd5b5061039b610549366004613dce565b6115f3565b34801561055a57600080fd5b5061036e610569366004614144565b611667565b34801561057a57600080fd5b506103ae610589366004613dce565b6116c3565b34801561059a57600080fd5b5061039b61173b565b3480156105af57600080fd5b506014546103e89073ffffffffffffffffffffffffffffffffffffffff1681565b3480156105dc57600080fd5b5061036e6118c4565b3480156105f157600080fd5b506017546102f69068010000000000000000900460ff1681565b34801561061757600080fd5b50610341611923565b34801561062c57600080fd5b5060135461036e9073ffffffffffffffffffffffffffffffffffffffff1681565b61039b61065b366004614144565b61196f565b34801561066c57600080fd5b5061039b61067b366004613f1c565b61223f565b34801561068c57600080fd5b5061039b61069b3660046140dd565b612329565b3480156106ac57600080fd5b506103ae600d5481565b3480156106c257600080fd5b5061039b6106d1366004613e9d565b612478565b3480156106e257600080fd5b506017546106f19061ffff1681565b6040516103039190615545565b34801561070a57600080fd5b50610341610719366004614144565b6124ca565b34801561072a57600080fd5b50610767610739366004614144565b60166020526000908152604090205460ff81169061010090046fffffffffffffffffffffffffffffffff1682565b604051610303929190615179565b34801561078157600080fd5b50610341612577565b34801561079657600080fd5b5060125461036e9073ffffffffffffffffffffffffffffffffffffffff1681565b3480156107c357600080fd5b506102f66107d2366004613e10565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561081957600080fd5b5061039b610828366004613dce565b612605565b34801561083957600080fd5b5061039b610848366004613dce565b612760565b34801561085957600080fd5b5061039b612933565b34801561086e57600080fd5b5061039b61087d366004613dce565b612ae8565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a0000000000000000000000000000000000000000000000000000000014806108d857506108d882612c02565b92915050565b600080600080848060200190518101906108f891906140fe565b9250925092506127108361ffff161115801561091a57506127108261ffff1611155b801561092c57506127108161ffff1611155b95945050505050565b600c5460609060ff1661097d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615268565b60405180910390fd5b6010805461098a906156b0565b80601f01602080910402602001604051908101604052809291908181526020018280546109b6906156b0565b8015610a035780601f106109d857610100808354040283529160200191610a03565b820191906000526020600020905b8154815290600101906020018083116109e657829003601f168201915b5050505050905090565b60008181526003602052604081205473ffffffffffffffffffffffffffffffffffffffff16610a68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610974906153e8565b5060009081526005602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b6000610a9c82611667565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b04576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615418565b3373ffffffffffffffffffffffffffffffffffffffff82161480610b2d5750610b2d81336107d2565b610b63576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615368565b610b6d8383612c58565b505050565b610b7d335b82612cf8565b610bb3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615438565b610b6d838383612e12565b600c5460ff1615610bfb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615378565b610c04836115f3565b601280547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8416179055604080516101008101825260608082526020820181905291810182905260009181018290526080810182905260a0810182905260c0810182905260e081019190915281806020019051810190610c9a91906140a2565b80518051919250610cb19160109160200190613adf565b506020808201518051610cc8926011920190613adf565b5060408101518051610ce291600f91602090910190613adf565b50606081810151600e556080820151601480547fffffffffffffffffffffffff000000000000000000000000000000000000000090811673ffffffffffffffffffffffffffffffffffffffff9384161790915560a084015160158054831691841691909117905560c0840151601780547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00001661ffff90921691909117905560e0840151601380549092169216919091179055604080519182019052602a808252600091610db9914391906159186020830139612fd9565b905060003373ffffffffffffffffffffffffffffffffffffffff1663c265d191604051602001610de8906150c8565b60405160208183030381529060405280519060200120846040518363ffffffff1660e01b8152600401610e1c929190615194565b60006040518083038186803b158015610e3457600080fd5b505afa158015610e48573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201604052610e8e9190810190614020565b905080806020019051810190610ea491906140fe565b6017805461ffff94851662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000ffff948616640100000000027fffffffffffffffffffffffffffffffffffffffffffffffffffff0000ffffffff9487166601000000000000908102959095167fffffffffffffffffffffffffffffffffffffffffffffffff00000000ffffffff9093169290921791909117938416811791829055919004831690831691909216171115610f8b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615458565b600c80547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556017805473ffffffffffffffffffffffffffffffffffffffff808a166901000000000000000000027fffffff0000000000000000000000000000000000000000ffffffffffffffffff83168117909355600e5460145460155460135460405167ffffffffffffffff8a16977fe061499cb9d8b0834136da0edd7b8bed5f9a6b08339547bdf4bc95f8541a5c729761107097601097601197600f979196908316959183169461ffff90811694169390931792909116906151ce565b60405180910390a250505050505050565b601754600090819030906110a890612710906110a290879061ffff16613027565b9061303a565b915091509250929050565b60006110be836116c3565b82106110f6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610974906152a8565b5073ffffffffffffffffffffffffffffffffffffffff919091166000908152600760209081526040808320938352929052205490565b600c5460ff16611168576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615268565b60125473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146111cf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610974906152c8565b80516111e290600f906020840190613adf565b507f2e9b34e5ec7377754a85ec13c1e9a442a00db0c46dbdefbb143dd0371fd20c1c8160405161121291906151bd565b60405180910390a150565b600c5460ff16611259576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615268565b601754479060009061128090612710906110a2908590640100000000900461ffff16613027565b9050600061128e8383613046565b905080156113405760125460405160009173ffffffffffffffffffffffffffffffffffffffff169083906112c1906150f6565b60006040518083038185875af1925050503d80600081146112fe576040519150601f19603f3d011682016040523d82523d6000602084013e611303565b606091505b505090508061133e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610974906152e8565b505b811561148a576000601760099054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b1580156113b057600080fd5b505afa1580156113c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113e89190613def565b73ffffffffffffffffffffffffffffffffffffffff168360405161140b906150f6565b60006040518083038185875af1925050503d8060008114611448576040519150601f19603f3d011682016040523d82523d6000602084013e61144d565b606091505b5050905080611488576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615328565b505b604051829082907f56ca301a9219608c91e7bcee90e083c19671d2cdcc96752c7af291cee5f9c8c890600090a3505050565b610b6d83838360405180602001604052806000815250612478565b600c5460ff16611513576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615268565b61151c33610b77565b611552576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615535565b61155b81613052565b604051819033907f696de425f79f4a40bc6d2122ca50507f0efbeabbff86a84871b7196ab8ea8df790600090a350565b600061159660095490565b82106115ce576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615448565b600982815481106115e1576115e1615831565b90600052602060002001549050919050565b60005460ff1615611630576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610974906153a8565b600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556116648161312b565b50565b60008181526003602052604081205473ffffffffffffffffffffffffffffffffffffffff16806108d8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615398565b600073ffffffffffffffffffffffffffffffffffffffff8216611712576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615388565b5073ffffffffffffffffffffffffffffffffffffffff1660009081526004602052604090205490565b60005460ff16611777576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615278565b61177f6118c4565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806118825750601760099054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561181b57600080fd5b505afa15801561182f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118539190613def565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6118b8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615358565b6118c2600061312b565b565b6000805460ff16611901576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615278565b50600054610100900473ffffffffffffffffffffffffffffffffffffffff1690565b600c5460609060ff16611962576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615268565b6011805461098a906156b0565b600c5460ff166119ab576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615268565b6002600b5414156119e8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615505565b6002600b55600e5415806119ff5750600e54600d54105b611a35576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615428565b6017546040517f6352211e000000000000000000000000000000000000000000000000000000008152690100000000000000000090910473ffffffffffffffffffffffffffffffffffffffff1690636352211e90611a97908490600401615553565b60206040518083038186803b158015611aaf57600080fd5b505afa158015611ac3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ae79190613def565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611b4b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615348565b60008181526016602052604090205460ff1615611b94576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615515565b601454600d546040517f9626f09c00000000000000000000000000000000000000000000000000000000815260009273ffffffffffffffffffffffffffffffffffffffff1691639626f09c91611bef91908690600401615561565b60206040518083038186803b158015611c0757600080fd5b505afa158015611c1b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c3f9190613f82565b905080611c78576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615258565b601554600d546040517f1cc1fddb00000000000000000000000000000000000000000000000000000000815260009273ffffffffffffffffffffffffffffffffffffffff1691631cc1fddb91611cd391908790600401615561565b60206040518083038186803b158015611ceb57600080fd5b505afa158015611cff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d239190614165565b905080341015611d5f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615318565b6040518060400160405280600115158152602001611d97600d546040518060600160405280602b81526020016158ed602b91396131e4565b6fffffffffffffffffffffffffffffffff90811690915260008581526016602090815260408220845181549590920151909316610100027fffffffffffffffffffffffffffffff00000000000000000000000000000000ff911515919091167fffffffffffffffffffffffffffffff00000000000000000000000000000000009094169390931792909217905560175461271090611e4190849061ffff6201000090910416613027565b611e4b91906155e7565b90506000611e598383613046565b905060008115611f1c57611e6d8183613232565b60125460405191925060009173ffffffffffffffffffffffffffffffffffffffff909116908490611e9d906150f6565b60006040518083038185875af1925050503d8060008114611eda576040519150601f19603f3d011682016040523d82523d6000602084013e611edf565b606091505b5050905080611f1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610974906152e8565b505b600083118015611fe557506103e886101580611fe557506017546040517fa899b36c000000000000000000000000000000000000000000000000000000008152690100000000000000000090910473ffffffffffffffffffffffffffffffffffffffff169063a899b36c90611f95908990600401615553565b60206040518083038186803b158015611fad57600080fd5b505afa158015611fc1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fe59190613f82565b1561213a576000601760099054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561205457600080fd5b505afa158015612068573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061208c9190613def565b73ffffffffffffffffffffffffffffffffffffffff16846040516120af906150f6565b60006040518083038185875af1925050503d80600081146120ec576040519150601f19603f3d011682016040523d82523d6000602084013e6120f1565b606091505b505090508061212c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615328565b6121368285613232565b9150505b803411156121da5760003361214f3484613046565b60405161215b906150f6565b60006040518083038185875af1925050503d8060008114612198576040519150601f19603f3d011682016040523d82523d6000602084013e61219d565b606091505b50509050806121d8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615525565b505b6121f733600d80549060006121ee83615728565b9190505561323e565b856001600d546122079190615638565b60405133907f25b428dfde728ccfaddad7e29e4ac23c24ed7fd1a6e3e3f91894a9a073f5dfff90600090a450506001600b5550505050565b73ffffffffffffffffffffffffffffffffffffffff821633141561228f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615308565b33600081815260066020908152604080832073ffffffffffffffffffffffffffffffffffffffff871680855292529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001685151517905590519091907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319061231d90859061516b565b60405180910390a35050565b600c5460ff16612365576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615268565b60125473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146123cc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610974906152c8565b60175461ffff66010000000000009091048116908216111561241a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615458565b601780547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00001661ffff83161790556040517fb748f99079f00b44bc6b1f97eb8ee77d53ac0748bba25162555cf4c5bb48b66490611212908390615545565b6124823383612cf8565b6124b8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615438565b6124c48484848461325c565b50505050565b600c5460609060ff16612509576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615268565b600d548210612544576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615298565b600f61254f836132a9565b6040516020016125609291906150b0565b60405160208183030381529060405290505b919050565b600f8054612584906156b0565b80601f01602080910402602001604051908101604052809291908181526020018280546125b0906156b0565b80156125fd5780601f106125d2576101008083540402835291602001916125fd565b820191906000526020600020905b8154815290600101906020018083116125e057829003601f168201915b505050505081565b600c5460ff16612641576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615268565b60125473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146126a8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610974906152c8565b60175468010000000000000000900460ff16156126f1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615288565b601380547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040517fee7c5312a5f230a616620ea6d4a0d02d69c3484b7b85bd00bb8baf19afb52ce590600090a250565b60005460ff1661279c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615278565b6127a46118c4565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806128a75750601760099054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561284057600080fd5b505afa158015612854573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128789190613def565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6128dd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615358565b73ffffffffffffffffffffffffffffffffffffffff811661292a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610974906153f8565b6116648161312b565b600c5460ff1661296f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615268565b60175468010000000000000000900460ff16156129b8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615288565b60135473ffffffffffffffffffffffffffffffffffffffff16612a07576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610974906153b8565b60135473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612a6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610974906153d8565b601780547fffffffffffffffffffffffffffffffffffffffffffffff00ffffffffffffffff166801000000000000000017905560135460405173ffffffffffffffffffffffffffffffffffffffff909116907f4fabfdd37535ad45ef97f9575ac1d1a6d3306ec1bdbca6b7cd439e043059684f90600090a2565b600c5460ff16612b24576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615268565b60125473ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612b8b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610974906152c8565b6012805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f7f11fe0c7098e1a76afcc68f35abaa07ef156fa7d6dd2d39664812fe37348d1690600090a35050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d630000000000000000000000000000000000000000000000000000000014806108d857506108d8826133db565b600081815260056020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff84169081179091558190612cb282611667565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008181526003602052604081205473ffffffffffffffffffffffffffffffffffffffff16612d53576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615338565b6000612d5e83611667565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612dcd57508373ffffffffffffffffffffffffffffffffffffffff16612db584610a0d565b73ffffffffffffffffffffffffffffffffffffffff16145b80612e0a575073ffffffffffffffffffffffffffffffffffffffff80821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b8273ffffffffffffffffffffffffffffffffffffffff16612e3282611667565b73ffffffffffffffffffffffffffffffffffffffff1614612e7f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615408565b73ffffffffffffffffffffffffffffffffffffffff8216612ecc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610974906152f8565b612ed78383836134be565b612ee2600082612c58565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600460205260408120805460019290612f18908490615638565b909155505073ffffffffffffffffffffffffffffffffffffffff82166000908152600460205260408120805460019290612f539084906155cf565b909155505060008181526003602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff86811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60008168010000000000000000841061301f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097491906151bd565b509192915050565b600061303382846155fb565b9392505050565b600061303382846155e7565b60006130338284615638565b600061305d82611667565b905061306b816000846134be565b613076600083612c58565b73ffffffffffffffffffffffffffffffffffffffff811660009081526004602052604081208054600192906130ac908490615638565b909155505060008281526003602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001690555183919073ffffffffffffffffffffffffffffffffffffffff8416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60005460ff16613167576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097490615278565b6000805473ffffffffffffffffffffffffffffffffffffffff8381166101008181027fffffffffffffffffffffff0000000000000000000000000000000000000000ff851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b600081700100000000000000000000000000000000841061301f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097491906151bd565b600061303382846155cf565b6132588282604051806020016040528060008152506135c4565b5050565b613267848484612e12565b61327384848484613611565b6124c4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610974906152b8565b6060816132e957505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b811561331357806132fd81615728565b915061330c9050600a836155e7565b91506132ed565b60008167ffffffffffffffff81111561332e5761332e615860565b6040519080825280601f01601f191660200182016040528015613358576020820181803683370190505b5090505b8415612e0a5761336d600183615638565b915061337a600a86615761565b6133859060306155cf565b60f81b81838151811061339a5761339a615831565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506133d4600a866155e7565b945061335c565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061346e57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806108d857507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316146108d8565b73ffffffffffffffffffffffffffffffffffffffff83166135265761352181600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b613563565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146135635761356383826137ba565b73ffffffffffffffffffffffffffffffffffffffff821661358757610b6d81613871565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614610b6d57610b6d8282613920565b6135ce8383613971565b6135db6000848484613611565b610b6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610974906152b8565b600073ffffffffffffffffffffffffffffffffffffffff84163b156137af576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063150b7a029061368890339089908890889060040161510c565b602060405180830381600087803b1580156136a257600080fd5b505af19250505080156136f0575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682019092526136ed91810190613fc4565b60015b613764573d80801561371e576040519150601f19603f3d011682016040523d82523d6000602084013e613723565b606091505b50805161375c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610974906152b8565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050612e0a565b506001949350505050565b600060016137c7846116c3565b6137d19190615638565b6000838152600860205260409020549091508082146138315773ffffffffffffffffffffffffffffffffffffffff841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b50600091825260086020908152604080842084905573ffffffffffffffffffffffffffffffffffffffff9094168352600781528383209183525290812055565b60095460009061388390600190615638565b6000838152600a6020526040812054600980549394509092849081106138ab576138ab615831565b9060005260206000200154905080600983815481106138cc576138cc615831565b6000918252602080832090910192909255828152600a9091526040808220849055858252812055600980548061390457613904615802565b6001900381819060005260206000200160009055905550505050565b600061392b836116c3565b73ffffffffffffffffffffffffffffffffffffffff9093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b73ffffffffffffffffffffffffffffffffffffffff82166139be576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610974906153c8565b60008181526003602052604090205473ffffffffffffffffffffffffffffffffffffffff1615613a1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610974906152d8565b613a26600083836134be565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600460205260408120805460019290613a5c9084906155cf565b909155505060008181526003602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054613aeb906156b0565b90600052602060002090601f016020900481019282613b0d5760008555613b53565b82601f10613b2657805160ff1916838001178555613b53565b82800160010185558215613b53579182015b82811115613b53578251825591602001919060010190613b38565b50613b5f929150613b63565b5090565b5b80821115613b5f5760008155600101613b64565b6000613b8b613b8684615586565b61556f565b905082815260208101848484011115613ba657613ba6600080fd5b613bb1848285615678565b509392505050565b6000613bc7613b8684615586565b905082815260208101848484011115613be257613be2600080fd5b613bb1848285615684565b80356108d88161588f565b80516108d88161588f565b80356108d8816158a3565b80516108d8816158a3565b80356108d8816158ab565b80516108d8816158ab565b600082601f830112613c4357613c43600080fd5b8135612e0a848260208601613b78565b600082601f830112613c6757613c67600080fd5b8151612e0a848260208601613bb9565b80516108d8816158d3565b80356108d8816158d3565b60006101008284031215613ca357613ca3600080fd5b613cae61010061556f565b825190915067ffffffffffffffff811115613ccb57613ccb600080fd5b613cd784828501613c53565b825250602082015167ffffffffffffffff811115613cf757613cf7600080fd5b613d0384828501613c53565b602083015250604082015167ffffffffffffffff811115613d2657613d26600080fd5b613d3284828501613c53565b6040830152506060613d4684828501613dc3565b6060830152506080613d5a84828501613c77565b60808301525060a0613d6e84828501613c77565b60a08301525060c0613d8284828501613dad565b60c08301525060e0613d9684828501613bf8565b60e08301525092915050565b80356108d8816158dc565b80516108d8816158dc565b80356108d8816158e6565b80516108d8816158e6565b600060208284031215613de357613de3600080fd5b6000612e0a8484613bed565b600060208284031215613e0457613e04600080fd5b6000612e0a8484613bf8565b60008060408385031215613e2657613e26600080fd5b6000613e328585613bed565b9250506020613e4385828601613bed565b9150509250929050565b600080600060608486031215613e6557613e65600080fd5b6000613e718686613bed565b9350506020613e8286828701613bed565b9250506040613e9386828701613db8565b9150509250925092565b60008060008060808587031215613eb657613eb6600080fd5b6000613ec28787613bed565b9450506020613ed387828801613bed565b9350506040613ee487828801613db8565b925050606085013567ffffffffffffffff811115613f0457613f04600080fd5b613f1087828801613c2f565b91505092959194509250565b60008060408385031215613f3257613f32600080fd5b6000613f3e8585613bed565b9250506020613e4385828601613c03565b60008060408385031215613f6557613f65600080fd5b6000613f718585613bed565b9250506020613e4385828601613db8565b600060208284031215613f9757613f97600080fd5b6000612e0a8484613c0e565b600060208284031215613fb857613fb8600080fd5b6000612e0a8484613c19565b600060208284031215613fd957613fd9600080fd5b6000612e0a8484613c24565b600060208284031215613ffa57613ffa600080fd5b813567ffffffffffffffff81111561401457614014600080fd5b612e0a84828501613c2f565b60006020828403121561403557614035600080fd5b815167ffffffffffffffff81111561404f5761404f600080fd5b612e0a84828501613c53565b6000806000806080858703121561407457614074600080fd5b60006140808787613c82565b945050602061409187828801613bed565b9350506040613ee487828801613bed565b6000602082840312156140b7576140b7600080fd5b815167ffffffffffffffff8111156140d1576140d1600080fd5b612e0a84828501613c8d565b6000602082840312156140f2576140f2600080fd5b6000612e0a8484613da2565b60008060006060848603121561411657614116600080fd5b60006141228686613dad565b935050602061413386828701613dad565b9250506040613e9386828701613dad565b60006020828403121561415957614159600080fd5b6000612e0a8484613db8565b60006020828403121561417a5761417a600080fd5b6000612e0a8484613dc3565b6000806040838503121561419c5761419c600080fd5b6000613f718585613db8565b6141b18161564f565b82525050565b8015156141b1565b806141b1565b60006141cf825190565b8084526020840193506141e6818560208601615684565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920192915050565b6141b18161566d565b6000614228825190565b614236818560208601615684565b9290920192915050565b6000815461424d816156b0565b80855260208501945060018216801561426d576001811461429d576142cb565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00831686526020860193506142cb565b60008581526020902060005b838110156142c5578154888201526001909101906020016142a9565b87019450505b50505092915050565b600081546142e1816156b0565b6001821680156142f85760018114614327576142cb565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008316865281860193506142cb565b60008581526020902060005b8381101561434f57815488820152600190910190602001614333565b505050939093019392505050565b604181526000602082017f436f6c6c656374696f6e4e4654436c6f6e6561626c6556313a20737570706c6981527f656420746f6b656e20494420697320696e656c696769626c6520746f206d696e60208201527f7400000000000000000000000000000000000000000000000000000000000000604082015291505b5060600190565b603681526000602082017f436f6c6c656374696f6e4e4654436c6f6e6561626c6556313a206861736e277481527f206265656e20696e697469616c697a6564207965742e00000000000000000000602082015291505b5060400190565b602e81526000602082017f4f776e61626c65436c6f6e6561626c653a206861736e2774206265656e20696e81527f697469616c697a6564207965742e00000000000000000000000000000000000060208201529150614436565b604481526000602082017f436f6c6c656374696f6e4e4654436c6f6e6561626c6556313a207369676e617481527f75726520626c6f636b2068617320616c7265616479206265656e20636f6d706c60208201527f6574656400000000000000000000000000000000000000000000000000000000604082015291506143d9565b605281526000602082017f436f6c6c656374696f6e4e4654436c6f6e6561626c6556313a2043616e27742081527f70726f76696465206120746f6b656e2055524920666f722061206e6f6e2d657860208201527f697374656e7420636f6c6c656374696f6e2e0000000000000000000000000000604082015291506143d9565b602b81526000602082017f455243373231456e756d657261626c653a206f776e657220696e646578206f7581527f74206f6620626f756e647300000000000000000000000000000000000000000060208201529150614436565b603281526000602082017f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527f63656976657220696d706c656d656e746572000000000000000000000000000060208201529150614436565b603281526000602082017f436f6c6c656374696f6e4e4654436c6f6e6561626c6556313a206d757374206281527f6520636f6e74726163742063726561746f72000000000000000000000000000060208201529150614436565b601c81526000602082017f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000815291505b5060200190565b603f81526000602082017f436f6c6c656374696f6e4e4654436c6f6e6561626c6556313a206661696c656481527f20746f2073656e642045544820746f2063726561746f7220616464726573730060208201529150614436565b602481526000602082017f4552433732313a207472616e7366657220746f20746865207a65726f2061646481527f726573730000000000000000000000000000000000000000000000000000000060208201529150614436565b601981526000602082017f4552433732313a20617070726f766520746f2063616c6c657200000000000000815291506146d5565b603881526000602082017f436f6c6c656374696f6e4e4654436c6f6e6561626c6556313a206d757374207081527f6173732073756666696369656e74206d696e74206665652e000000000000000060208201529150614436565b603981526000602082017f436f6c6c656374696f6e4e4654436c6f6e6561626c6556313a206661696c656481527f20746f2073656e642045544820746f2048617368657344414f0000000000000060208201529150614436565b602c81526000602082017f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657881527f697374656e7420746f6b656e000000000000000000000000000000000000000060208201529150614436565b604b81526000602082017f436f6c6c656374696f6e4e4654436c6f6e6561626c6556313a206d757374206281527f65206f776e6572206f6620737570706c6965642068617368657320746f6b656e60208201527f20494420746f206d696e74000000000000000000000000000000000000000000604082015291506143d9565b603d81526000602082017f436f6c6c656374696f6e4e4654436c6f6e6561626c6556313a206d757374206281527f6520636f6e7472616374206f776e6572206f722048617368657344414f00000060208201529150614436565b603881526000602082017f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7781527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060208201529150614436565b603081526000602082017f436f6c6c656374696f6e4e4654436c6f6e6561626c6556313a20616c7265616481527f7920696e6974697469616c697a65642e0000000000000000000000000000000060208201529150614436565b602a81526000602082017f4552433732313a2062616c616e636520717565727920666f7220746865207a6581527f726f20616464726573730000000000000000000000000000000000000000000060208201529150614436565b602981526000602082017f4552433732313a206f776e657220717565727920666f72206e6f6e657869737481527f656e7420746f6b656e000000000000000000000000000000000000000000000060208201529150614436565b602681526000602082017f4f776e61626c65436c6f6e6561626c653a20616c726561647920696e6974696181527f6c697a65642e000000000000000000000000000000000000000000000000000060208201529150614436565b604381526000602082017f436f6c6c656374696f6e4e4654436c6f6e6561626c6556313a207369676e617481527f75726520626c6f636b206164647265737320686173206e6f74206265656e207360208201527f65742e0000000000000000000000000000000000000000000000000000000000604082015291506143d9565b60208082527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373910190815260006146d5565b605381526000602082017f436f6c6c656374696f6e4e4654436c6f6e6561626c6556313a206f6e6c79207381527f69676e617475726520626c6f636b20616464726573732063616e20636f6d706c60208201527f657465207369676e617475726520626c6f636b00000000000000000000000000604082015291506143d9565b602c81526000602082017f4552433732313a20617070726f76656420717565727920666f72206e6f6e657881527f697374656e7420746f6b656e000000000000000000000000000000000000000060208201529150614436565b603781526000602082017f436f6c6c656374696f6e4e4654436c6f6e6561626c6556313a206e6577206f7781527f6e657220697320746865207a65726f206164647265737300000000000000000060208201529150614436565b602981526000602082017f4552433732313a207472616e73666572206f6620746f6b656e2074686174206981527f73206e6f74206f776e000000000000000000000000000000000000000000000060208201529150614436565b602181526000602082017f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6581527f720000000000000000000000000000000000000000000000000000000000000060208201529150614436565b603581526000602082017f436f6c6c656374696f6e4e4654436c6f6e6561626c6556313a20737570706c7981527f2063617020686173206265656e2072656163686564000000000000000000000060208201529150614436565b603181526000602082017f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f81527f776e6572206e6f7220617070726f76656400000000000000000000000000000060208201529150614436565b602c81526000602082017f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f81527f7574206f6620626f756e6473000000000000000000000000000000000000000060208201529150614436565b601f81526000602082017f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00815291506146d5565b605e81526000602082017f436f6c6c656374696f6e4e4654436c6f6e6561626c6556313a20737570706c6981527f656420746f6b656e2049442068617320616c7265616479206265656e2075736560208201527f6420746f206d696e742077697468207468697320636f6c6c656374696f6e0000604082015291506143d9565b602f81526000602082017f436f6c6c656374696f6e4e4654436c6f6e6561626c6556313a206661696c656481527f20746f20726566756e64204554482e000000000000000000000000000000000060208201529150614436565b603b81526000602082017f436f6c6c656374696f6e4e4654436c6f6e6561626c6556313a2063616c6c657281527f206973206e6f74206f776e6572206e6f7220617070726f7665642e000000000060208201529150614436565b6fffffffffffffffffffffffffffffffff81166141b1565b61ffff81166141b1565b67ffffffffffffffff81166141b1565b60006150bc82856142d4565b9150612e0a828461421e565b7f4e46545f7631000000000000000000000000000000000000000000000000000081526000600682016108d8565b6000816108d8565b602081016108d882846141a8565b6080810161511a82876141a8565b61512760208301866141a8565b61513460408301856141bf565b818103606083015261514681846141c5565b9695505050505050565b6040810161515e82856141a8565b61303360208301846141bf565b602081016108d882846141b7565b6040810161518782856141b7565b613033602083018461507e565b604081016151a282856141bf565b61303360208301846150a0565b602081016108d88284614215565b6020808252810161303381846141c5565b61010080825281016151e0818b614240565b905081810360208301526151f4818a614240565b905081810360408301526152088189614240565b905061521760608301886141bf565b61522460808301876141a8565b61523160a08301866141a8565b61523e60c0830185615096565b61524b60e08301846141a8565b9998505050505050505050565b602080825281016108d88161435d565b602080825281016108d8816143e0565b602080825281016108d88161443d565b602080825281016108d881614497565b602080825281016108d881614517565b602080825281016108d881614597565b602080825281016108d8816145f1565b602080825281016108d88161464b565b602080825281016108d8816146a5565b602080825281016108d8816146dc565b602080825281016108d881614736565b602080825281016108d881614790565b602080825281016108d8816147c4565b602080825281016108d88161481e565b602080825281016108d881614878565b602080825281016108d8816148d2565b602080825281016108d881614952565b602080825281016108d8816149ac565b602080825281016108d881614a06565b602080825281016108d881614a60565b602080825281016108d881614aba565b602080825281016108d881614b14565b602080825281016108d881614b6e565b602080825281016108d881614bee565b602080825281016108d881614c20565b602080825281016108d881614ca0565b602080825281016108d881614cfa565b602080825281016108d881614d54565b602080825281016108d881614dae565b602080825281016108d881614e08565b602080825281016108d881614e62565b602080825281016108d881614ebc565b602080825281016108d881606281527f436f6c6c656374696f6e4e4654436c6f6e6561626c6556313a20726f79616c7460208201527f792070657263656e74616765206d757374206265206c657373207468616e206f60408201527f7220657175616c20746f206d6178696d756d20616c6c6f77656420736574746960608201527f6e67000000000000000000000000000000000000000000000000000000000000608082015260a00190565b602080825281016108d881614f16565b602080825281016108d881614f4a565b602080825281016108d881614fca565b602080825281016108d881615024565b602081016108d88284615096565b602081016108d882846141bf565b6040810161515e82856141bf565b600061557a60405190565b905061257282826156dd565b600067ffffffffffffffff8211156155a0576155a0615860565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011660200192915050565b600082198211156155e2576155e2615775565b500190565b6000826155f6576155f66157a4565b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561563357615633615775565b500290565b60008282101561564a5761564a615775565b500390565b600073ffffffffffffffffffffffffffffffffffffffff82166108d8565b60006108d88261564f565b82818337506000910152565b60005b8381101561569f578181015183820152602001615687565b838111156124c45750506000910152565b6002810460018216806156c457607f821691505b602082108114156156d7576156d76157d3565b50919050565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f830116810181811067ffffffffffffffff8211171561572157615721615860565b6040525050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561575a5761575a615775565b5060010190565b600082615770576157706157a4565b500690565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6158988161564f565b811461166457600080fd5b801515615898565b7fffffffff000000000000000000000000000000000000000000000000000000008116615898565b6158988161566d565b61ffff8116615898565b8061589856fe436f6c6c656374696f6e4e4654436c6f6e6561626c6556313a20657863656564732031323820626974732e436f6c6c656374696f6e4e4654436c6f6e6561626c6556313a206578636565647320363420626974732ea2646970667358221220746bc6734010d7704302dda9920ba548d75db6636073d236d11179655a658ed564736f6c63430008060033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.