ERC-721
NFT
Overview
Max Total Supply
0 SOULS
Holders
2,801
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 SOULSLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
SOULS
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /// @artist: SiA & DOR /// @title: SOULS /// @author: manifold.xyz import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@manifoldxyz/libraries-solidity/contracts/access/AdminControl.sol"; import "./ERC721CollectionBase.sol"; // MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWWWNNXXXXKKXXXXNNWWWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWNX0kxdlc:;;,'''....''',;;:cldxk0XNWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWXOxoc;'... ...';cox0XWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWN0xl;'.. ..':okKNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWKkl;.. ..;oOXWMMMMMMMMMMMMMMMMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMMMMMMMMMWKxc'. .,lkXWMMMMMMMMMMMMMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMMMMMMWXkc'.. .,o0NMMMMMMMMMMMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMMMMW0o,. .:kNMMMMMMMMMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMMNOc.... .;xXMMMMMMMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMNOc.. . ...... ........ .;kNMMMMMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMW0l... ..,:cllllc:,.. ..;cloooooc;'. .c0WMMMMMMMMMMMMMMM // MMMMMMMMMMMMMMWXd,.. .':oddddddddddo:.. .;oddddddddddoc. .'dXWMMMMMMMMMMMMM // MMMMMMMMMMMMMW0:.. .;oddddddddddddddo;. .cddddddddddddddl. .cKWWMMMMMMMMMMM // MMMMMMMMMMWWNx,... .:dddddddddddddddddo;. .;dddddddddddddddd;. .;OWWMMMMMMMMMM // MMMMMMMMMWWXd.... ,oddddddddddddddddddo' .cddddddddddddddddc. .,kWWMMMMMMMMM // MMMMMMMMWWXl... .:dddddddddddddddddddd:. 'lddddddddddddddddl. .,kWWWMMMMMMM // MMMMMMMWWXl.... .lddddddddddddddddddddl. ,oddddddddddddddddl. .,OWWWMMMMMM // MMMMMMWWXo.... .lddddddddddddddddddddo, ;dddddddddddddddddl. .:0WWWMMMMM // MMMMMWWNx'.... 'ldddddddddddddddddddddl'. .cdddddddddddddddddl. .lXWWMMMMM // MMMMWWWO;...... ,oddddddddddddddddddddddoc::lddddddddddddddddddc. 'kWWWMMMM // MMMWWWXl....... .:ddddddddddddddddddddddddddddddddddddddddddddddl. .cKWWWMMM // MMMWWNk'....... .,oddddddddddddddddddddddddddddddddddddddddddddddo;. 'kNWWWMM // MMWWWXc........ ..:odddddddddddddddddddddddddddddddddddddddddddddddddl:'. .lXWWWMM // MMWWWO,........ .:oddddddddddddddddooddddddddddddddddddddddddddddddddddddl:. .;0WWWWM // MWWWNd.......... .,ldddddddddddddddolllllloodddddddddddddoooooodddddddddddddddo:. 'kNWWWW // WWWWXl........... .:oddddddddddddddolllllllllllodddddddddollllllloodddddddddddddddo;. ..xNWWWW // WWWNKc.......... .:ddddddddddddddddollllllllllloodddddddollcllllllloddddddddddddddddc. ..dNWWWW // WWWNKc........... .;dddddddddddddddddollllllllllloodddddddollclllllllodddddddddddddddddc. .oXNWWW // WWNNKc............ .'odddddddddddddddddolllllllllllodddddddddolllllllloddddddddddddddddddd:. ..dXNWWW // WWNNKc............ .:dddddddddddddddddddoollllllloodddddddddddooolloooddddddddddddddddddddo' .'xNNWWW // WWNNXo............... .lddddddddddddddddddddddoooooddddddddddddddddddddddddddddddddddddddddddd:. ..,kNNWWW // WWNNXd'............... 'ldddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd:. ..:0NNWWW // WWNNNO;................'lddddddddddddddddddddddddooolooooddddddoooooooodddddddddddddddddddddddd:. ...oXNNWWW // WWNNNKl.................cdddddddddddddddddddddddollllllllloooollllllllllodddddddddddddddddddddd; ...,kXNNWWW // WWWNNXk,................;ddddddddddddddddddddddollllclllllllllllllllllllodddddddddddddddddddddl. ...lKNNNWWW // WWWNNXKl.................cddddddddddddddddddddddolcllllllllllllllllllllloddddddddddddddddddddo;. ...;kXNNNWWW // WWWNNNXO:................'lddddddddddddddddddddddollllllllllllllllllllodddddddddddddddddddddo;. ....oKXNNWWWW // WWWWNNXKx,................'ldddddddddddddddddddddddoollllllllllllloooddddddddddddddddddddddo;. ....c0XXNNWWWM // MWWWNNNXKo'.................:dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddc' ....:OXXNNWWWWM // MWWWWNNXX0l'.................,lddddddddddddddddddddddddddddddddddddddddddddddddddddddddoc'. .....;kXXNNNWWWMM // MMWWWNNNXX0l'..................,coddddddddddddddddddddddddddddddddddddddddddddddddddol;.. .....;kKXXNNWWWWMM // MMWWWWNNNXX0o'....................,:lodddxdddddddddddddddddddddddddddddddddddddolc:,.. ......;kKXXNNWWWWMMM // MMMWWWWNNXXX0o,.......................,;:clllooooooooooooooooooooolllcc:::;;,'... .......:kKXXNNNWWWMMMM // MMMMWWWWNNXXXKx;...................................................... .......'lOKXXNNNWWWMMMMM // MMMMMWWWWNNXXXKkc'............................. ........;d0KXXNNNWWWWMMMMM // MMMMMMWWWWNNXXXK0d;................................ .........'lOKKXXNNNWWWWMMMMMM // MMMMMMMWWWWNNNXXKKOl,.................................. ............:x0KXXXNNNWWWMMMMMMMM // MMMMMMMMWWWWNNNXXKK0kc,..................................... ..............;oOKKXXNNNWWWWWMMMMMMMM // MMMMMMMMMWWWWNNNXXXKK0xc,......................................................................;oOKKKXXNNNWWWWMMMMMMMMMM // MMMMMMMMMMMWWWWNNNXXXKK0kl;.................................................................':dOKKKXXNNNWWWWWMMMMMMMMMMM // MMMMMMMMMMMMWWWWNNNNXXXKK0Oo:'............................................................,lx0KKKXXXNNNWWWWMMMMMMMMMMMMM // MMMMMMMMMMMMMWWWWWNNNXXXXKKK0xl;'......................................................,cdO0KKKXXXNNNWWWWWMMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMWWWWNNNNXXXKKK0Oxo:,'..............................................';cdk0KKKKXXXNNNWWWWWMMMMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMWWWWWNNNNXXXKKKK00kdl:,'......................................',coxO0KKKKKXXXNNNWWWWWWMMMMMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMWWWWWNNNNXXXXKKKKK00kdoc:,'............................,;:loxO00KKKKXXXXNNNNWWWWWMMMMMMMMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMMMWWWWWWNNNNXXXXKKKKKKK00Oxdolc:;;,,,'''''''',,,;:ccloxkO000KKKKKXXXXXNNNNWWWWWMMMMMMMMMMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMMMMMMWWWWWWNNNNXXXXXKKKKKKK00000OOOkkkxxxxxkkkkOO00000KKKKKKKKXXXXNNNNNWWWWWMMMMMMMMMMMMMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMMMMMMMMMWWWWWWNNNNNXXXXXXKKKKKKKKKKKKKK0KKKKKKKKKKKKKKKKXXXXXXXNNNNNWWWWWWMMMMMMMMMMMMMMMMMMMMMMMMMMM // MMMMMMMMMMMMMMMMMMMMMMMMMMMMMWWWWWWWNNNNNNXXXXXXXKKKKKKKKKKKKKKKKKKKKKXXXXXXXXXNNNNNWWWWWWWMMMMMMMMMMMMMMMMMMMMMMMMMMMMM /** * ERC721 Collection Drop Contract */ contract SOULS is ERC721CollectionBase, ERC721, AdminControl { constructor(address signingAddress) ERC721("SOULS", "SOULS") { _initialize( 10000, // 0.12345 eth 123450000000000000, 2, 2, // 0.12345 eth 123450000000000000, 2, signingAddress, false ); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721CollectionBase, ERC721, AdminControl) returns (bool) { return ERC721CollectionBase.supportsInterface(interfaceId) || ERC721.supportsInterface(interfaceId) || AdminControl.supportsInterface(interfaceId); } /** * @dev See {IERC721Collection-withdraw}. */ function withdraw(address payable recipient, uint256 amount) external override adminRequired { _withdraw(recipient, amount); } /** * @dev See {IERC721Collection-setTransferLocked}. */ function setTransferLocked(bool locked) external override adminRequired { _setTransferLocked(locked); } /** * @dev See {IERC721Collection-premint}. */ function premint(uint16 amount) external override adminRequired { _premint(amount, owner()); } /** * @dev See {IERC721Collection-premint}. */ function premint(address[] calldata addresses) external override adminRequired { _premint(addresses); } /** * @dev See {IERC721Collection-activate}. */ function activate(uint256 startTime_, uint256 duration, uint256 presaleInterval_, uint256 claimStartTime_, uint256 claimEndTime_) external override adminRequired { _activate(startTime_, duration, presaleInterval_, claimStartTime_, claimEndTime_); } /** * @dev See {IERC721Collection-deactivate}. */ function deactivate() external override adminRequired { _deactivate(); } /** * @dev See {IERC721Collection-setTokenURIPrefix}. */ function setTokenURIPrefix(string calldata prefix) external override adminRequired { _setTokenURIPrefix(prefix); } function _baseURI() internal view virtual override returns (string memory) { return _prefixURI; } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override (ERC721, ERC721CollectionBase) returns (uint256) { return ERC721.balanceOf(owner); } /** * @dev mint implementation */ function _mint(address to, uint256 tokenId) internal override (ERC721, ERC721CollectionBase) { ERC721._mint(to, tokenId); } /** * @dev See {ERC721-_beforeTokenTranfser}. */ function _beforeTokenTransfer(address from, address, uint256) internal virtual override { _validateTokenTransferability(from); } /** * @dev Update royalties */ function updateRoyalties(address payable recipient, uint256 bps) external adminRequired { _updateRoyalties(recipient, bps); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /// @author: manifold.xyz import "@openzeppelin/contracts/utils/Strings.sol"; import "./IERC721Collection.sol"; import "./CollectionBase.sol"; /** * ERC721 Collection Drop Contract (Base) */ abstract contract ERC721CollectionBase is CollectionBase, IERC721Collection { using Strings for uint256; // Immutable variables that should only be set by the constructor or initializer uint16 public transactionLimit; uint16 public purchaseMax; uint16 public purchaseLimit; uint256 public purchasePrice; uint16 public presalePurchaseLimit; uint256 public presalePurchasePrice; bool public useDynamicPresalePurchaseLimit; // Minted token information uint16 public purchaseCount; mapping(address => uint16) internal _addressMintCount; // Token URI configuration string internal _prefixURI; uint256 private _royaltyBps; address payable private _royaltyRecipient; bytes4 private constant _INTERFACE_ID_ROYALTIES_CREATORCORE = 0xbb3bafd6; bytes4 private constant _INTERFACE_ID_ROYALTIES_EIP2981 = 0x2a55205a; bytes4 private constant _INTERFACE_ID_ROYALTIES_RARIBLE = 0xb7799584; // Transfer lock bool public transferLocked; function _initialize(uint16 purchaseMax_, uint256 purchasePrice_, uint16 purchaseLimit_, uint16 transactionLimit_, uint256 presalePurchasePrice_, uint16 presalePurchaseLimit_, address signingAddress, bool useDynamicPresalePurchaseLimit_) internal { require(_signingAddress == address(0), "Already initialized"); purchaseMax = purchaseMax_; purchasePrice = purchasePrice_; purchaseLimit = purchaseLimit_; transactionLimit = transactionLimit_; presalePurchasePrice = presalePurchasePrice_; presalePurchaseLimit = presalePurchaseLimit_; _signingAddress = signingAddress; useDynamicPresalePurchaseLimit = useDynamicPresalePurchaseLimit_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165) returns (bool) { return interfaceId == type(IERC721Collection).interfaceId ||interfaceId == _INTERFACE_ID_ROYALTIES_CREATORCORE || interfaceId == _INTERFACE_ID_ROYALTIES_EIP2981 || interfaceId == _INTERFACE_ID_ROYALTIES_RARIBLE; } /** * Premint tokens to the owner. Sale must not be active. */ function _premint(uint16 amount, address owner) internal virtual { require(!active, "Already active"); for (uint i = 0; i < amount; ) { _mint(owner); unchecked { i++; } } } /** * Premint tokens to the list of addresses. Sale must not be active. */ function _premint(address[] calldata addresses) internal virtual { require(!active, "Already active"); for (uint i =0; i < addresses.length; ) { _mint(addresses[i]); unchecked { i++; } } } /** * @dev override if you want to perform different mint functionality */ function _mint(address to) internal virtual { purchaseCount++; // Mint token _mint(to, purchaseCount); emit Unveil(purchaseCount, address(this), purchaseCount); } /** * @dev override to define mint functionality */ function _mint(address to, uint256 tokenId) internal virtual; /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual returns (uint256); /** * @dev Use a prefix uri for all tokens (<PREFIX><TOKEN_ID>). */ function _setTokenURIPrefix(string calldata prefix) internal virtual { _prefixURI = prefix; } /** * Validate price (override for custom pricing mechanics) */ function _validatePrice(uint16 amount) internal virtual { require(msg.value == amount*purchasePrice, "Invalid purchase amount sent"); } /** * Validate price (override for custom pricing mechanics) */ function _validatePresalePrice(uint16 amount) internal virtual { require(msg.value == amount*presalePurchasePrice, "Invalid purchase amount sent"); } /** * If enabled, lock token transfers until admin unlocks. */ function _validateTokenTransferability(address from) internal view { require(!transferLocked || from == address(0), "Transfer locked until sale ends"); } /** * Set whether or not token transfers are locked till end of sale */ function _setTransferLocked(bool locked) internal { transferLocked = locked; } /** * @dev See {IERC721Collection-claim}. */ function claim(uint16 amount, bytes32 message, bytes calldata signature, bytes32 nonce) external virtual override { _validateClaimRestrictions(); _validateClaimRequest(message, signature, nonce, amount); for (uint i = 0; i < amount; ) { _mint(msg.sender); unchecked { i++; } } } /** * @dev See {IERC721Collection-purchase}. */ function purchase(uint16 amount, bytes32 message, bytes calldata signature, bytes32 nonce) public payable virtual override { _validatePurchaseRestrictions(); bool isPresale = _isPresale(); // Check purchase amounts require(amount <= purchaseRemaining() && ((isPresale && useDynamicPresalePurchaseLimit) || transactionLimit == 0 || amount <= transactionLimit), "Too many requested"); if (isPresale) { if (!useDynamicPresalePurchaseLimit) { // Make sure we are not over presalePurchaseLimit if (presalePurchaseLimit != 0) { uint16 mintCount = _addressMintCount[msg.sender]; require(presalePurchaseLimit > mintCount && amount <= (presalePurchaseLimit-mintCount), "Too many requested"); } // Make sure we are not over purchaseLimit if (purchaseLimit != 0) { uint16 mintCount = _addressMintCount[msg.sender]; require(purchaseLimit > mintCount && amount <= (purchaseLimit-mintCount), "Too many requested"); } } _validatePresalePrice(amount); // Only track mint count if needed if (!useDynamicPresalePurchaseLimit && (presalePurchaseLimit != 0 || purchaseLimit != 0)) { _addressMintCount[msg.sender] += amount; } } else { // Make sure we are not over purchaseLimit if (purchaseLimit != 0) { uint16 mintCount = _addressMintCount[msg.sender]; require(purchaseLimit > mintCount && amount <= (purchaseLimit-mintCount), "Too many requested"); } _validatePrice(amount); if (purchaseLimit != 0) { _addressMintCount[msg.sender] += amount; } } if (isPresale && useDynamicPresalePurchaseLimit) { _validatePurchaseRequestWithAmount(message, signature, nonce, amount); } else { _validatePurchaseRequest(message, signature, nonce); } for (uint i = 0; i < amount;) { _mint(msg.sender); unchecked { i++; } } } /** * @dev See {IERC721Collection-state} */ function state() external override view returns(CollectionState memory) { return CollectionState(transactionLimit, purchaseMax, purchaseRemaining(), purchasePrice, purchaseLimit, presalePurchasePrice, presalePurchaseLimit, _addressMintCount[msg.sender], active, startTime, endTime, presaleInterval, claimStartTime, claimEndTime, useDynamicPresalePurchaseLimit); } /** * @dev See {IERC721Collection-purchaseRemaining}. */ function purchaseRemaining() public view virtual override returns(uint16) { return purchaseMax-purchaseCount; } /** * ROYALTY FUNCTIONS */ function getRoyalties(uint256) external view returns (address payable[] memory recipients, uint256[] memory bps) { if (_royaltyRecipient != address(0x0)) { recipients = new address payable[](1); recipients[0] = _royaltyRecipient; bps = new uint256[](1); bps[0] = _royaltyBps; } return (recipients, bps); } function getFeeRecipients(uint256) external view returns (address payable[] memory recipients) { if (_royaltyRecipient != address(0x0)) { recipients = new address payable[](1); recipients[0] = _royaltyRecipient; } return recipients; } function getFeeBps(uint256) external view returns (uint[] memory bps) { if (_royaltyRecipient != address(0x0)) { bps = new uint256[](1); bps[0] = _royaltyBps; } return bps; } function royaltyInfo(uint256, uint256 value) external view returns (address, uint256) { return (_royaltyRecipient, value*_royaltyBps/10000); } /** * @dev Update royalties */ function _updateRoyalties(address payable recipient, uint256 bps) internal { _royaltyRecipient = recipient; _royaltyBps = bps; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /// @author: manifold.xyz import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "./IAdminControl.sol"; abstract contract AdminControl is Ownable, IAdminControl, ERC165 { using EnumerableSet for EnumerableSet.AddressSet; // Track registered admins EnumerableSet.AddressSet private _admins; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IAdminControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Only allows approved admins to call the specified function */ modifier adminRequired() { require(owner() == msg.sender || _admins.contains(msg.sender), "AdminControl: Must be owner or admin"); _; } /** * @dev See {IAdminControl-getAdmins}. */ function getAdmins() external view override returns (address[] memory admins) { admins = new address[](_admins.length()); for (uint i = 0; i < _admins.length(); i++) { admins[i] = _admins.at(i); } return admins; } /** * @dev See {IAdminControl-approveAdmin}. */ function approveAdmin(address admin) external override onlyOwner { if (!_admins.contains(admin)) { emit AdminApproved(admin, msg.sender); _admins.add(admin); } } /** * @dev See {IAdminControl-revokeAdmin}. */ function revokeAdmin(address admin) external override onlyOwner { if (_admins.contains(admin)) { emit AdminRevoked(admin, msg.sender); _admins.remove(admin); } } /** * @dev See {IAdminControl-isAdmin}. */ function isAdmin(address admin) public override view returns (bool) { return (owner() == admin || _admins.contains(admin)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol) 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: address zero is not a valid owner"); 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: invalid token ID"); 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) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden 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 token owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token 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: caller is not token 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) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == 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); _afterTokenTransfer(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); _afterTokenTransfer(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 from incorrect owner"); 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); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @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 { /// @solidity memory-safe-assembly 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 {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /// @author: manifold.xyz import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "./ICollectionBase.sol"; /** * Collection Drop Contract (Base) */ abstract contract CollectionBase is ICollectionBase { using ECDSA for bytes32; // Immutable variables that should only be set by the constructor or initializer address internal _signingAddress; // Message nonces mapping(bytes32 => bool) private _usedNonces; // Sale start/end control bool public active; uint256 public startTime; uint256 public endTime; uint256 public presaleInterval; // Claim period start/end control uint256 public claimStartTime; uint256 public claimEndTime; /** * Withdraw funds */ function _withdraw(address payable recipient, uint256 amount) internal { (bool success,) = recipient.call{value:amount}(""); require(success); } /** * Activate the sale */ function _activate(uint256 startTime_, uint256 duration, uint256 presaleInterval_, uint256 claimStartTime_, uint256 claimEndTime_) internal virtual { require(!active, "Already active"); require(startTime_ > block.timestamp, "Cannot activate in the past"); require(presaleInterval_ <= duration, "Presale Interval cannot be longer than the sale"); require(claimStartTime_ <= claimEndTime_ && claimEndTime_ <= startTime_, "Invalid claim times"); startTime = startTime_; endTime = startTime + duration; presaleInterval = presaleInterval_; claimStartTime = claimStartTime_; claimEndTime = claimEndTime_; active = true; emit CollectionActivated(startTime, endTime, presaleInterval, claimStartTime, claimEndTime); } /** * Deactivate the sale */ function _deactivate() internal virtual { startTime = 0; endTime = 0; active = false; claimStartTime = 0; claimEndTime = 0; emit CollectionDeactivated(); } /** * Validate claim signature */ function _validateClaimRequest(bytes32 message, bytes calldata signature, bytes32 nonce, uint16 amount) internal virtual { _validatePurchaseRequestWithAmount(message, signature, nonce, amount); } /** * Validate claim restrictions */ function _validateClaimRestrictions() internal virtual { require(active, "Inactive"); require(block.timestamp >= claimStartTime && block.timestamp <= claimEndTime, "Outside claim period."); } /** * Validate purchase signature */ function _validatePurchaseRequest(bytes32 message, bytes calldata signature, bytes32 nonce) internal virtual { // Verify nonce usage/re-use require(!_usedNonces[nonce], "Cannot replay transaction"); // Verify valid message based on input variables bytes32 expectedMessage = keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n52", msg.sender, nonce)); require(message == expectedMessage, "Malformed message"); // Verify signature was performed by the expected signing address address signer = message.recover(signature); require(signer == _signingAddress, "Invalid signature"); _usedNonces[nonce] = true; } /** * Validate purchase signature with amount */ function _validatePurchaseRequestWithAmount(bytes32 message, bytes calldata signature, bytes32 nonce, uint16 amount) internal virtual { // Verify nonce usage/re-use require(!_usedNonces[nonce], "Cannot replay transaction"); // Verify valid message based on input variables bytes32 expectedMessage = keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n54", msg.sender, nonce, amount)); require(message == expectedMessage, "Malformed message"); // Verify signature was performed by the expected signing address address signer = message.recover(signature); require(signer == _signingAddress, "Invalid signature"); _usedNonces[nonce] = true; } /** * Perform purchase restriciton checks. Override if more logic is needed */ function _validatePurchaseRestrictions() internal virtual { require(active, "Inactive"); require(block.timestamp >= startTime, "Purchasing not active"); } /** * @dev See {ICollectionBase-nonceUsed}. */ function nonceUsed(bytes32 nonce) external view override returns(bool) { return _usedNonces[nonce]; } /** * @dev Check if currently in presale */ function _isPresale() internal view returns (bool) { return block.timestamp > startTime && block.timestamp - startTime < presaleInterval; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /// @author: manifold.xyz import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; import "./ICollectionBase.sol"; /** * @dev ERC721 Collection Interface */ interface IERC721Collection is ICollectionBase, IERC165 { event Unveil(uint256 collectibleId, address tokenAddress, uint256 tokenId); struct CollectionState { uint16 transactionLimit; uint16 purchaseMax; uint16 purchaseRemaining; uint256 purchasePrice; uint16 purchaseLimit; uint256 presalePurchasePrice; uint16 presalePurchaseLimit; uint16 purchaseCount; bool active; uint256 startTime; uint256 endTime; uint256 presaleInterval; uint256 claimStartTime; uint256 claimEndTime; bool useDynamicPresalePurchaseLimit; } /** * @dev Pre-mint */ function premint(uint16 amount) external; function premint(address[] calldata addresses) external; /** * @dev set the tokenURI prefix */ function setTokenURIPrefix(string calldata prefix) external; /** * @dev Withdraw funds */ function withdraw(address payable recipient, uint256 amount) external; /** * @dev Set whether or not token transfers are locked until end of sale. * @param locked Whether or not transfers are locked */ function setTransferLocked(bool locked) external; /** * @dev Activate the contract */ function activate(uint256 startTime_, uint256 duration, uint256 presaleInterval_, uint256 claimStartTime_, uint256 claimEndTime_) external; /** * @dev Deactivate the contract */ function deactivate() external; /** * @dev claim */ function claim(uint16 amount, bytes32 message, bytes calldata signature, bytes32 nonce) external; /** * @dev purchase */ function purchase(uint16 amount, bytes32 message, bytes calldata signature, bytes32 nonce) external payable; /** * @dev returns the collection state */ function state() external view returns(CollectionState memory); /** * @dev Get number of tokens left */ function purchaseRemaining() external view returns(uint16); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @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); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return 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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: 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 Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /// @author: manifold.xyz import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; /** * @dev Interface for admin control */ interface IAdminControl is IERC165 { event AdminApproved(address indexed account, address indexed sender); event AdminRevoked(address indexed account, address indexed sender); /** * @dev gets address of all admins */ function getAdmins() external view returns (address[] memory); /** * @dev add an admin. Can only be called by contract owner. */ function approveAdmin(address admin) external; /** * @dev remove an admin. Can only be called by contract owner. */ function revokeAdmin(address admin) external; /** * @dev checks whether or not given address is an admin * Returns True if they are */ function isAdmin(address admin) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/structs/EnumerableSet.sol) pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. * * [WARNING] * ==== * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure unusable. * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info. * * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an array of EnumerableSet. * ==== */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastValue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastValue; // Update the index for the moved value set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { return _values(set._inner); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /// @author: manifold.xyz /** * @dev Collection Interface */ interface ICollectionBase { event CollectionActivated(uint256 startTime, uint256 endTime, uint256 presaleInterval, uint256 claimStartTime, uint256 claimEndTime); event CollectionDeactivated(); /** * @dev Check if nonce has been used */ function nonceUsed(bytes32 nonce) external view returns(bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. /// @solidity memory-safe-assembly assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. /// @solidity memory-safe-assembly assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"signingAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"AdminApproved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"AdminRevoked","type":"event"},{"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":"uint256","name":"startTime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"endTime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"presaleInterval","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"claimStartTime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"claimEndTime","type":"uint256"}],"name":"CollectionActivated","type":"event"},{"anonymous":false,"inputs":[],"name":"CollectionDeactivated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"collectibleId","type":"uint256"},{"indexed":false,"internalType":"address","name":"tokenAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Unveil","type":"event"},{"inputs":[{"internalType":"uint256","name":"startTime_","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"},{"internalType":"uint256","name":"presaleInterval_","type":"uint256"},{"internalType":"uint256","name":"claimStartTime_","type":"uint256"},{"internalType":"uint256","name":"claimEndTime_","type":"uint256"}],"name":"activate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"active","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"admin","type":"address"}],"name":"approveAdmin","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":[{"internalType":"uint16","name":"amount","type":"uint16"},{"internalType":"bytes32","name":"message","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"bytes32","name":"nonce","type":"bytes32"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deactivate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAdmins","outputs":[{"internalType":"address[]","name":"admins","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":"getFeeBps","outputs":[{"internalType":"uint256[]","name":"bps","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getFeeRecipients","outputs":[{"internalType":"address payable[]","name":"recipients","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getRoyalties","outputs":[{"internalType":"address payable[]","name":"recipients","type":"address[]"},{"internalType":"uint256[]","name":"bps","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"admin","type":"address"}],"name":"isAdmin","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"nonce","type":"bytes32"}],"name":"nonceUsed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[{"internalType":"uint16","name":"amount","type":"uint16"}],"name":"premint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"premint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"presaleInterval","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presalePurchaseLimit","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presalePurchasePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"amount","type":"uint16"},{"internalType":"bytes32","name":"message","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"bytes32","name":"nonce","type":"bytes32"}],"name":"purchase","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"purchaseCount","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"purchaseLimit","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"purchaseMax","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"purchasePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"purchaseRemaining","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"admin","type":"address"}],"name":"revokeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"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":"prefix","type":"string"}],"name":"setTokenURIPrefix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"locked","type":"bool"}],"name":"setTransferLocked","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"state","outputs":[{"components":[{"internalType":"uint16","name":"transactionLimit","type":"uint16"},{"internalType":"uint16","name":"purchaseMax","type":"uint16"},{"internalType":"uint16","name":"purchaseRemaining","type":"uint16"},{"internalType":"uint256","name":"purchasePrice","type":"uint256"},{"internalType":"uint16","name":"purchaseLimit","type":"uint16"},{"internalType":"uint256","name":"presalePurchasePrice","type":"uint256"},{"internalType":"uint16","name":"presalePurchaseLimit","type":"uint16"},{"internalType":"uint16","name":"purchaseCount","type":"uint16"},{"internalType":"bool","name":"active","type":"bool"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"uint256","name":"presaleInterval","type":"uint256"},{"internalType":"uint256","name":"claimStartTime","type":"uint256"},{"internalType":"uint256","name":"claimEndTime","type":"uint256"},{"internalType":"bool","name":"useDynamicPresalePurchaseLimit","type":"bool"}],"internalType":"struct IERC721Collection.CollectionState","name":"","type":"tuple"}],"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":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"transactionLimit","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"transferLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"recipient","type":"address"},{"internalType":"uint256","name":"bps","type":"uint256"}],"name":"updateRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"useDynamicPresalePurchaseLimit","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162003f5f38038062003f5f8339810160408190526200003491620002e5565b60405180604001604052806005815260200164534f554c5360d81b81525060405180604001604052806005815260200164534f554c5360d81b8152506200008a62000084620000ec60201b60201c565b620000f0565b81516200009f9060119060208501906200023f565b508051620000b59060129060208401906200023f565b505050620000e56127106701b6951ef585a0006002806701b6951ef585a00060028760006200014260201b60201c565b5062000354565b3390565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000546001600160a01b031615620001a05760405162461bcd60e51b815260206004820152601360248201527f416c726561647920696e697469616c697a656400000000000000000000000000604482015260640160405180910390fd5b6008805460099890985563ffffffff60b01b19909716600160b01b61ffff998a160261ffff60c01b191617600160c01b968916969096029590951761ffff60a01b1916600160a01b9488169490940293909317909455600b55600a805461ffff19169390941692909217909255600080546001600160a01b0319166001600160a01b03909216919091179055600c805460ff1916911515919091179055565b8280546200024d9062000317565b90600052602060002090601f016020900481019282620002715760008555620002bc565b82601f106200028c57805160ff1916838001178555620002bc565b82800160010185558215620002bc579182015b82811115620002bc5782518255916020019190600101906200029f565b50620002ca929150620002ce565b5090565b5b80821115620002ca5760008155600101620002cf565b600060208284031215620002f857600080fd5b81516001600160a01b03811681146200031057600080fd5b9392505050565b600181811c908216806200032c57607f821691505b602082108114156200034e57634e487b7160e01b600052602260045260246000fd5b50919050565b613bfb80620003646000396000f3fe6080604052600436106102ff5760003560e01c8063715018a611610190578063bb3bafd6116100dc578063e59bb7a811610095578063f2fde38b1161006f578063f2fde38b14610936578063f3fef3a314610956578063f474307014610976578063fe73ad771461099157600080fd5b8063e59bb7a8146108d4578063e985e9c5146108f4578063f19605d61461091457600080fd5b8063bb3bafd614610816578063c19d93fb14610844578063c87b56dd14610866578063c8a84a8214610886578063defd6c5f146108a8578063e3b9398b146108be57600080fd5b8063956447d811610149578063a22cb46511610123578063a22cb46514610793578063a6a11bb1146107b3578063b88d4fde146107c9578063b9c4d9fb146107e957600080fd5b8063956447d81461073e57806395d89b411461075e57806399e0dd7c1461077357600080fd5b8063715018a61461069f57806378e97925146106b457806379070afa146106ca57806381960b5c146106ea578063850217d8146107005780638da5cb5b1461072057600080fd5b80633197cbb61161024f57806355461d6d116102085780636741f24a116101e25780636741f24a1461062c5780636c2f5acd1461063f5780636d73e6691461065f57806370a082311461067f57600080fd5b806355461d6d146105c257806361a4422b146105dc5780636352211e1461060c57600080fd5b80633197cbb61461051157806331ae450b1461053557806335e60bd41461055757806340d1d2551461057757806342842e0e1461058d57806351b42b00146105ad57600080fd5b806312686aae116102bc57806324d7806c1161029657806324d7806c146104725780632a55205a146104925780632b85ed9c146104d15780632d345670146104f157600080fd5b806312686aae146103fc578063188866571461041d57806323b872dd1461045257600080fd5b806301ffc9a71461030457806302fb0c5e1461033957806306fdde0314610353578063081812fc14610375578063095ea7b3146103ad5780630ebd4c7f146103cf575b600080fd5b34801561031057600080fd5b5061032461031f366004613487565b6109a6565b60405190151581526020015b60405180910390f35b34801561034557600080fd5b506002546103249060ff1681565b34801561035f57600080fd5b506103686109d5565b604051610330919061378a565b34801561038157600080fd5b5061039561039036600461346e565b610a67565b6040516001600160a01b039091168152602001610330565b3480156103b957600080fd5b506103cd6103c8366004613223565b610a8e565b005b3480156103db57600080fd5b506103ef6103ea36600461346e565b610ba9565b6040516103309190613777565b34801561040857600080fd5b5060105461032490600160a01b900460ff1681565b34801561042957600080fd5b5060085461043f90600160c01b900461ffff1681565b60405161ffff9091168152602001610330565b34801561045e57600080fd5b506103cd61046d366004613288565b610c05565b34801561047e57600080fd5b5061032461048d366004613206565b610c36565b34801561049e57600080fd5b506104b26104ad366004613580565b610c6f565b604080516001600160a01b039093168352602083019190915201610330565b3480156104dd57600080fd5b50600c5461043f90610100900461ffff1681565b3480156104fd57600080fd5b506103cd61050c366004613206565b610caa565b34801561051d57600080fd5b5061052760045481565b604051908152602001610330565b34801561054157600080fd5b5061054a610d08565b60405161033091906136e9565b34801561056357600080fd5b506103cd610572366004613453565b610db7565b34801561058357600080fd5b5061052760075481565b34801561059957600080fd5b506103cd6105a8366004613288565b610e1b565b3480156105b957600080fd5b506103cd610e36565b3480156105ce57600080fd5b50600c546103249060ff1681565b3480156105e857600080fd5b506103246105f736600461346e565b60009081526001602052604090205460ff1690565b34801561061857600080fd5b5061039561062736600461346e565b610e8a565b6103cd61063a36600461351e565b610eea565b34801561064b57600080fd5b506103cd61065a366004613223565b611229565b34801561066b57600080fd5b506103cd61067a366004613206565b611298565b34801561068b57600080fd5b5061052761069a366004613206565b6112f0565b3480156106ab57600080fd5b506103cd6112fb565b3480156106c057600080fd5b5061052760035481565b3480156106d657600080fd5b506103cd6106e536600461351e565b61130d565b3480156106f657600080fd5b50610527600b5481565b34801561070c57600080fd5b506103cd61071b366004613503565b61134a565b34801561072c57600080fd5b506008546001600160a01b0316610395565b34801561074a57600080fd5b506103cd6107593660046135a2565b6113af565b34801561076a57600080fd5b5061036861140d565b34801561077f57600080fd5b506103cd61078e3660046134c1565b61141c565b34801561079f57600080fd5b506103cd6107ae3660046133a9565b611470565b3480156107bf57600080fd5b5061052760065481565b3480156107d557600080fd5b506103cd6107e43660046132c9565b61147b565b3480156107f557600080fd5b5061080961080436600461346e565b6114b3565b6040516103309190613736565b34801561082257600080fd5b5061083661083136600461346e565b61152c565b604051610330929190613749565b34801561085057600080fd5b506108596115e0565b60405161033091906138d5565b34801561087257600080fd5b5061036861088136600461346e565b61172a565b34801561089257600080fd5b5060085461043f90600160b01b900461ffff1681565b3480156108b457600080fd5b5061052760095481565b3480156108ca57600080fd5b5061052760055481565b3480156108e057600080fd5b506103cd6108ef3660046133de565b611791565b34801561090057600080fd5b5061032461090f36600461324f565b6117e5565b34801561092057600080fd5b5060085461043f90600160a01b900461ffff1681565b34801561094257600080fd5b506103cd610951366004613206565b611813565b34801561096257600080fd5b506103cd610971366004613223565b611889565b34801561098257600080fd5b50600a5461043f9061ffff1681565b34801561099d57600080fd5b5061043f6118dd565b60006109b182611909565b806109c057506109c082611975565b806109cf57506109cf826119c5565b92915050565b6060601180546109e490613a8a565b80601f0160208091040260200160405190810160405280929190818152602001828054610a1090613a8a565b8015610a5d5780601f10610a3257610100808354040283529160200191610a5d565b820191906000526020600020905b815481529060010190602001808311610a4057829003601f168201915b5050505050905090565b6000610a72826119ea565b506000908152601560205260409020546001600160a01b031690565b6000610a9982610e8a565b9050806001600160a01b0316836001600160a01b03161415610b0c5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b0382161480610b285750610b2881336117e5565b610b9a5760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610b03565b610ba48383611a49565b505050565b6010546060906001600160a01b031615610c00576040805160018082528183019092529060208083019080368337019050509050600f5481600081518110610bf357610bf3613b6e565b6020026020010181815250505b919050565b610c0f3382611ab7565b610c2b5760405162461bcd60e51b8152600401610b0390613887565b610ba4838383611b16565b6000816001600160a01b0316610c546008546001600160a01b031690565b6001600160a01b031614806109cf57506109cf601783611cbd565b601054600f5460009182916001600160a01b039091169061271090610c949086613a05565b610c9e91906139f1565b915091505b9250929050565b610cb2611cdf565b610cbd601782611cbd565b15610d055760405133906001600160a01b038316907f7c0c3c84c67c85fcac635147348bfe374c24a1a93d0366d1cfe9d8853cbf89d590600090a3610d03601782611d39565b505b50565b6060610d146017611d4e565b67ffffffffffffffff811115610d2c57610d2c613b84565b604051908082528060200260200182016040528015610d55578160200160208202803683370190505b50905060005b610d656017611d4e565b811015610db357610d77601782611d58565b828281518110610d8957610d89613b6e565b6001600160a01b039092166020928302919091019091015280610dab81613ae7565b915050610d5b565b5090565b33610dca6008546001600160a01b031690565b6001600160a01b03161480610de55750610de5601733611cbd565b610e015760405162461bcd60e51b8152600401610b0390613843565b6010805460ff60a01b1916600160a01b8315150217905550565b610ba48383836040518060200160405280600081525061147b565b33610e496008546001600160a01b031690565b6001600160a01b03161480610e645750610e64601733611cbd565b610e805760405162461bcd60e51b8152600401610b0390613843565b610e88611d64565b565b6000818152601360205260408120546001600160a01b0316806109cf5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610b03565b610ef2611dad565b6000610efc611e34565b9050610f066118dd565b61ffff168661ffff1611158015610f595750808015610f275750600c5460ff165b80610f3d5750600854600160a01b900461ffff16155b80610f59575060085461ffff600160a01b909104811690871611155b610f755760405162461bcd60e51b8152600401610b03906137ef565b80156110f257600c5460ff1661107357600a5461ffff1615610ff157336000908152600d6020526040902054600a5461ffff918216911681108015610fd35750600a54610fc790829061ffff16613a24565b61ffff168761ffff1611155b610fef5760405162461bcd60e51b8152600401610b03906137ef565b505b600854600160c01b900461ffff161561107357336000908152600d602052604090205460085461ffff91821691600160c01b90910416811080156110555750600854611049908290600160c01b900461ffff16613a24565b61ffff168761ffff1611155b6110715760405162461bcd60e51b8152600401610b03906137ef565b505b61107c86611e58565b600c5460ff161580156110aa5750600a5461ffff161515806110aa5750600854600160c01b900461ffff1615155b156110ed57336000908152600d6020526040812080548892906110d290849061ffff166139bc565b92506101000a81548161ffff021916908361ffff1602179055505b6111ce565b600854600160c01b900461ffff161561117457336000908152600d602052604090205460085461ffff91821691600160c01b9091041681108015611156575060085461114a908290600160c01b900461ffff16613a24565b61ffff168761ffff1611155b6111725760405162461bcd60e51b8152600401610b03906137ef565b505b61117d86611eb7565b600854600160c01b900461ffff16156111ce57336000908152600d6020526040812080548892906111b390849061ffff166139bc565b92506101000a81548161ffff021916908361ffff1602179055505b8080156111dd5750600c5460ff165b156111f4576111ef858585858a611ec8565b611200565b6112008585858561209c565b60005b8661ffff16811015611220576112183361225b565b600101611203565b50505050505050565b3361123c6008546001600160a01b031690565b6001600160a01b031614806112575750611257601733611cbd565b6112735760405162461bcd60e51b8152600401610b0390613843565b601080546001600160a01b0319166001600160a01b038416179055600f819055610d03565b6112a0611cdf565b6112ab601782611cbd565b610d055760405133906001600160a01b038316907f7e1a1a08d52e4ba0e21554733d66165fd5151f99460116223d9e3a608eec5cb190600090a3610d036017826122f1565b60006109cf82612306565b611303611cdf565b610e88600061238c565b6113156123de565b6113228484848489612473565b60005b8561ffff168110156113425761133a3361225b565b600101611325565b505050505050565b3361135d6008546001600160a01b031690565b6001600160a01b031614806113785750611378601733611cbd565b6113945760405162461bcd60e51b8152600401610b0390613843565b610d05816113aa6008546001600160a01b031690565b612480565b336113c26008546001600160a01b031690565b6001600160a01b031614806113dd57506113dd601733611cbd565b6113f95760405162461bcd60e51b8152600401610b0390613843565b61140685858585856124c3565b5050505050565b6060601280546109e490613a8a565b3361142f6008546001600160a01b031690565b6001600160a01b0316148061144a575061144a601733611cbd565b6114665760405162461bcd60e51b8152600401610b0390613843565b610d038282612679565b610d03338383612685565b6114853383611ab7565b6114a15760405162461bcd60e51b8152600401610b0390613887565b6114ad84848484612754565b50505050565b6010546060906001600160a01b031615610c00576040805160018082528183019092529060208083019080368337505060105482519293506001600160a01b03169183915060009061150757611507613b6e565b60200260200101906001600160a01b031690816001600160a01b031681525050919050565b60105460609081906001600160a01b0316156115db576040805160018082528183019092529060208083019080368337505060105482519294506001600160a01b03169184915060009061158257611582613b6e565b6001600160a01b0392909216602092830291909101820152604080516001808252818301909252918281019080368337019050509050600f54816000815181106115ce576115ce613b6e565b6020026020010181815250505b915091565b604080516101e081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e08101829052610100810182905261012081018290526101408101829052610160810182905261018081018290526101a081018290526101c0810191909152604080516101e08101825260085461ffff600160a01b820481168352600160b01b90910416602082015290810161168e6118dd565b61ffff9081168252600954602080840191909152600854600160c01b90048216604080850191909152600b546060850152600a5483166080850152336000908152600d9092529020541660a082015260025460ff908116151560c083015260035460e0830152600454610100830152600554610120830152600654610140830152600754610160830152600c5416151561018090910152919050565b6060611735826119ea565b600061173f612787565b9050600081511161175f576040518060200160405280600081525061178a565b8061176984612796565b60405160200161177a92919061367d565b6040516020818303038152906040525b9392505050565b336117a46008546001600160a01b031690565b6001600160a01b031614806117bf57506117bf601733611cbd565b6117db5760405162461bcd60e51b8152600401610b0390613843565b610d038282612894565b6001600160a01b03918216600090815260166020908152604080832093909416825291909152205460ff1690565b61181b611cdf565b6001600160a01b0381166118805760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b03565b610d058161238c565b3361189c6008546001600160a01b031690565b6001600160a01b031614806118b757506118b7601733611cbd565b6118d35760405162461bcd60e51b8152600401610b0390613843565b610d0382826128f9565b600c546008546000916119049161ffff610100909204821691600160b01b90910416613a24565b905090565b60006001600160e01b0319821663da192f9f60e01b148061193a57506001600160e01b03198216635d9dd7eb60e11b145b8061195557506001600160e01b0319821663152a902d60e11b145b806109cf57506001600160e01b03198216632dde656160e21b1492915050565b60006001600160e01b031982166380ac58cd60e01b14806119a657506001600160e01b03198216635b5e139f60e01b145b806109cf57506301ffc9a760e01b6001600160e01b03198316146109cf565b60006001600160e01b03198216632a9f3abf60e11b14806109cf57506109cf82611975565b6000818152601360205260409020546001600160a01b0316610d055760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610b03565b600081815260156020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611a7e82610e8a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080611ac383610e8a565b9050806001600160a01b0316846001600160a01b03161480611aea5750611aea81856117e5565b80611b0e5750836001600160a01b0316611b0384610a67565b6001600160a01b0316145b949350505050565b826001600160a01b0316611b2982610e8a565b6001600160a01b031614611b8d5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610b03565b6001600160a01b038216611bef5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610b03565b611bfa838383612959565b611c05600082611a49565b6001600160a01b0383166000908152601460205260408120805460019290611c2e908490613a47565b90915550506001600160a01b0382166000908152601460205260408120805460019290611c5c9084906139d9565b909155505060008181526013602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b0381166000908152600183016020526040812054151561178a565b6008546001600160a01b03163314610e885760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b03565b600061178a836001600160a01b038416612962565b60006109cf825490565b600061178a8383612a55565b6000600381905560048190556002805460ff19169055600681905560078190556040517fb02389feab3af620e2374d4d559b436ea226b1e6c9c31fe77dfbff3d40cbe9ba9190a1565b60025460ff16611dea5760405162461bcd60e51b8152602060048201526008602482015267496e61637469766560c01b6044820152606401610b03565b600354421015610e885760405162461bcd60e51b815260206004820152601560248201527450757263686173696e67206e6f742061637469766560581b6044820152606401610b03565b6000600354421180156119045750600554600354611e529042613a47565b10905090565b600b54611e699061ffff8316613a05565b3414610d055760405162461bcd60e51b815260206004820152601c60248201527f496e76616c696420707572636861736520616d6f756e742073656e74000000006044820152606401610b03565b600954611e699061ffff8316613a05565b60008281526001602052604090205460ff1615611f235760405162461bcd60e51b815260206004820152601960248201527821b0b73737ba103932b83630bc903a3930b739b0b1ba34b7b760391b6044820152606401610b03565b6040517f19457468657265756d205369676e6564204d6573736167653a0a35340000000060208201526bffffffffffffffffffffffff193360601b16603c820152605081018390526001600160f01b031960f083901b166070820152600090607201604051602081830303815290604052805190602001209050808614611fe05760405162461bcd60e51b81526020600482015260116024820152704d616c666f726d6564206d65737361676560781b6044820152606401610b03565b600061202486868080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508b93925050612a7f9050565b6000549091506001600160a01b038083169116146120785760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964207369676e617475726560781b6044820152606401610b03565b5050506000908152600160208190526040909120805460ff19169091179055505050565b60008181526001602052604090205460ff16156120f75760405162461bcd60e51b815260206004820152601960248201527821b0b73737ba103932b83630bc903a3930b739b0b1ba34b7b760391b6044820152606401610b03565b6040517f19457468657265756d205369676e6564204d6573736167653a0a35320000000060208201526bffffffffffffffffffffffff193360601b16603c820152605081018290526000906070016040516020818303038152906040528051906020012090508085146121a05760405162461bcd60e51b81526020600482015260116024820152704d616c666f726d6564206d65737361676560781b6044820152606401610b03565b60006121e485858080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508a93925050612a7f9050565b6000549091506001600160a01b038083169116146122385760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964207369676e617475726560781b6044820152606401610b03565b50506000908152600160208190526040909120805460ff19169091179055505050565b600c8054610100900461ffff1690600161227483613ac5565b825461ffff91821661010093840a9081029083021990911617909255600c546122a39350849291900416612aa3565b600c546040805161010090920461ffff16808352306020840152908201527f7a607f1ab973d85727d0ff44300699ee672c0e1d76f35013f36c02772f524ba39060600160405180910390a150565b600061178a836001600160a01b038416612aad565b60006001600160a01b0382166123705760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610b03565b506001600160a01b031660009081526014602052604090205490565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60025460ff1661241b5760405162461bcd60e51b8152602060048201526008602482015267496e61637469766560c01b6044820152606401610b03565b600654421015801561242f57506007544211155b610e885760405162461bcd60e51b815260206004820152601560248201527427baba39b4b2329031b630b4b6903832b934b7b21760591b6044820152606401610b03565b6114068585858585611ec8565b60025460ff16156124a35760405162461bcd60e51b8152600401610b039061381b565b60005b8261ffff16811015610ba4576124bb8261225b565b6001016124a6565b60025460ff16156124e65760405162461bcd60e51b8152600401610b039061381b565b4285116125355760405162461bcd60e51b815260206004820152601b60248201527f43616e6e6f7420616374697661746520696e20746865207061737400000000006044820152606401610b03565b8383111561259d5760405162461bcd60e51b815260206004820152602f60248201527f50726573616c6520496e74657276616c2063616e6e6f74206265206c6f6e676560448201526e72207468616e207468652073616c6560881b6064820152608401610b03565b8082111580156125ad5750848111155b6125ef5760405162461bcd60e51b8152602060048201526013602482015272496e76616c696420636c61696d2074696d657360681b6044820152606401610b03565b60038590556125fe84866139d9565b60048190556005849055600683905560078290556002805460ff1916600117905560035460408051918252602082019290925290810184905260608101839052608081018290527fe512d106f8172b08abfd2fc5ddfdb7e2401381780ae29e29f1352b862f1d27319060a00160405180910390a15050505050565b610ba4600e8383613112565b816001600160a01b0316836001600160a01b031614156126e75760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b03565b6001600160a01b03838116600081815260166020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61275f848484611b16565b61276b84848484612afc565b6114ad5760405162461bcd60e51b8152600401610b039061379d565b6060600e80546109e490613a8a565b6060816127ba5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156127e457806127ce81613ae7565b91506127dd9050600a836139f1565b91506127be565b60008167ffffffffffffffff8111156127ff576127ff613b84565b6040519080825280601f01601f191660200182016040528015612829576020820181803683370190505b5090505b8415611b0e5761283e600183613a47565b915061284b600a86613b02565b6128569060306139d9565b60f81b81838151811061286b5761286b613b6e565b60200101906001600160f81b031916908160001a90535061288d600a866139f1565b945061282d565b60025460ff16156128b75760405162461bcd60e51b8152600401610b039061381b565b60005b81811015610ba4576128f18383838181106128d7576128d7613b6e565b90506020020160208101906128ec9190613206565b61225b565b6001016128ba565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612946576040519150601f19603f3d011682016040523d82523d6000602084013e61294b565b606091505b5050905080610ba457600080fd5b610ba483612c09565b60008181526001830160205260408120548015612a4b576000612986600183613a47565b855490915060009061299a90600190613a47565b90508181146129ff5760008660000182815481106129ba576129ba613b6e565b90600052602060002001549050808760000184815481106129dd576129dd613b6e565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080612a1057612a10613b58565b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506109cf565b60009150506109cf565b6000826000018281548110612a6c57612a6c613b6e565b9060005260206000200154905092915050565b6000806000612a8e8585612c75565b91509150612a9b81612ce2565b509392505050565b610d038282612e9d565b6000818152600183016020526040812054612af4575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556109cf565b5060006109cf565b60006001600160a01b0384163b15612bfe57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612b409033908990889088906004016136ac565b602060405180830381600087803b158015612b5a57600080fd5b505af1925050508015612b8a575060408051601f3d908101601f19168201909252612b87918101906134a4565b60015b612be4573d808015612bb8576040519150601f19603f3d011682016040523d82523d6000602084013e612bbd565b606091505b508051612bdc5760405162461bcd60e51b8152600401610b039061379d565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611b0e565b506001949350505050565b601054600160a01b900460ff161580612c2957506001600160a01b038116155b610d055760405162461bcd60e51b815260206004820152601f60248201527f5472616e73666572206c6f636b656420756e74696c2073616c6520656e6473006044820152606401610b03565b600080825160411415612cac5760208301516040840151606085015160001a612ca087828585612fec565b94509450505050610ca3565b825160401415612cd65760208301516040840151612ccb8683836130d9565b935093505050610ca3565b50600090506002610ca3565b6000816004811115612cf657612cf6613b42565b1415612cff5750565b6001816004811115612d1357612d13613b42565b1415612d615760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610b03565b6002816004811115612d7557612d75613b42565b1415612dc35760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610b03565b6003816004811115612dd757612dd7613b42565b1415612e305760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610b03565b6004816004811115612e4457612e44613b42565b1415610d055760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610b03565b6001600160a01b038216612ef35760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b03565b6000818152601360205260409020546001600160a01b031615612f585760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b03565b612f6460008383612959565b6001600160a01b0382166000908152601460205260408120805460019290612f8d9084906139d9565b909155505060008181526013602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4610d03565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561302357506000905060036130d0565b8460ff16601b1415801561303b57508460ff16601c14155b1561304c57506000905060046130d0565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156130a0573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166130c9576000600192509250506130d0565b9150600090505b94509492505050565b6000806001600160ff1b038316816130f660ff86901c601b6139d9565b905061310487828885612fec565b935093505050935093915050565b82805461311e90613a8a565b90600052602060002090601f0160209004810192826131405760008555613186565b82601f106131595782800160ff19823516178555613186565b82800160010185558215613186579182015b8281111561318657823582559160200191906001019061316b565b50610db39291505b80821115610db3576000815560010161318e565b80358015158114610c0057600080fd5b60008083601f8401126131c457600080fd5b50813567ffffffffffffffff8111156131dc57600080fd5b602083019150836020828501011115610ca357600080fd5b803561ffff81168114610c0057600080fd5b60006020828403121561321857600080fd5b813561178a81613b9a565b6000806040838503121561323657600080fd5b823561324181613b9a565b946020939093013593505050565b6000806040838503121561326257600080fd5b823561326d81613b9a565b9150602083013561327d81613b9a565b809150509250929050565b60008060006060848603121561329d57600080fd5b83356132a881613b9a565b925060208401356132b881613b9a565b929592945050506040919091013590565b600080600080608085870312156132df57600080fd5b84356132ea81613b9a565b935060208501356132fa81613b9a565b925060408501359150606085013567ffffffffffffffff8082111561331e57600080fd5b818701915087601f83011261333257600080fd5b81358181111561334457613344613b84565b604051601f8201601f19908116603f0116810190838211818310171561336c5761336c613b84565b816040528281528a602084870101111561338557600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600080604083850312156133bc57600080fd5b82356133c781613b9a565b91506133d5602084016131a2565b90509250929050565b600080602083850312156133f157600080fd5b823567ffffffffffffffff8082111561340957600080fd5b818501915085601f83011261341d57600080fd5b81358181111561342c57600080fd5b8660208260051b850101111561344157600080fd5b60209290920196919550909350505050565b60006020828403121561346557600080fd5b61178a826131a2565b60006020828403121561348057600080fd5b5035919050565b60006020828403121561349957600080fd5b813561178a81613baf565b6000602082840312156134b657600080fd5b815161178a81613baf565b600080602083850312156134d457600080fd5b823567ffffffffffffffff8111156134eb57600080fd5b6134f7858286016131b2565b90969095509350505050565b60006020828403121561351557600080fd5b61178a826131f4565b60008060008060006080868803121561353657600080fd5b61353f866131f4565b945060208601359350604086013567ffffffffffffffff81111561356257600080fd5b61356e888289016131b2565b96999598509660600135949350505050565b6000806040838503121561359357600080fd5b50508035926020909101359150565b600080600080600060a086880312156135ba57600080fd5b505083359560208501359550604085013594606081013594506080013592509050565b600081518084526020808501945080840160005b838110156136165781516001600160a01b0316875295820195908201906001016135f1565b509495945050505050565b600081518084526020808501945080840160005b8381101561361657815187529582019590820190600101613635565b60008151808452613669816020860160208601613a5e565b601f01601f19169290920160200192915050565b6000835161368f818460208801613a5e565b8351908301906136a3818360208801613a5e565b01949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906136df90830184613651565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b8181101561372a5783516001600160a01b031683529284019291840191600101613705565b50909695505050505050565b60208152600061178a60208301846135dd565b60408152600061375c60408301856135dd565b828103602084015261376e8185613621565b95945050505050565b60208152600061178a6020830184613621565b60208152600061178a6020830184613651565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b602080825260129082015271151bdbc81b585b9e481c995c5d595cdd195960721b604082015260600190565b6020808252600e908201526d416c72656164792061637469766560901b604082015260600190565b60208082526024908201527f41646d696e436f6e74726f6c3a204d757374206265206f776e6572206f7220616040820152633236b4b760e11b606082015260800190565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b815161ffff1681526101e0810160208301516138f7602084018261ffff169052565b50604083015161390d604084018261ffff169052565b5060608301516060830152608083015161392d608084018261ffff169052565b5060a083015160a083015260c083015161394d60c084018261ffff169052565b5060e083015161396360e084018261ffff169052565b506101008381015115159083015261012080840151908301526101408084015190830152610160808401519083015261018080840151908301526101a080840151908301526101c0928301511515929091019190915290565b600061ffff8083168185168083038211156136a3576136a3613b16565b600082198211156139ec576139ec613b16565b500190565b600082613a0057613a00613b2c565b500490565b6000816000190483118215151615613a1f57613a1f613b16565b500290565b600061ffff83811690831681811015613a3f57613a3f613b16565b039392505050565b600082821015613a5957613a59613b16565b500390565b60005b83811015613a79578181015183820152602001613a61565b838111156114ad5750506000910152565b600181811c90821680613a9e57607f821691505b60208210811415613abf57634e487b7160e01b600052602260045260246000fd5b50919050565b600061ffff80831681811415613add57613add613b16565b6001019392505050565b6000600019821415613afb57613afb613b16565b5060010190565b600082613b1157613b11613b2c565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610d0557600080fd5b6001600160e01b031981168114610d0557600080fdfea2646970667358221220f41c03b4e0ac5d997ac693d9c0ddaf290b4c2717324d73c7d1047847d2684e4764736f6c63430008070033000000000000000000000000e6e48e8fda74521e2ee1de95737f06b95764a0c1
Deployed Bytecode
0x6080604052600436106102ff5760003560e01c8063715018a611610190578063bb3bafd6116100dc578063e59bb7a811610095578063f2fde38b1161006f578063f2fde38b14610936578063f3fef3a314610956578063f474307014610976578063fe73ad771461099157600080fd5b8063e59bb7a8146108d4578063e985e9c5146108f4578063f19605d61461091457600080fd5b8063bb3bafd614610816578063c19d93fb14610844578063c87b56dd14610866578063c8a84a8214610886578063defd6c5f146108a8578063e3b9398b146108be57600080fd5b8063956447d811610149578063a22cb46511610123578063a22cb46514610793578063a6a11bb1146107b3578063b88d4fde146107c9578063b9c4d9fb146107e957600080fd5b8063956447d81461073e57806395d89b411461075e57806399e0dd7c1461077357600080fd5b8063715018a61461069f57806378e97925146106b457806379070afa146106ca57806381960b5c146106ea578063850217d8146107005780638da5cb5b1461072057600080fd5b80633197cbb61161024f57806355461d6d116102085780636741f24a116101e25780636741f24a1461062c5780636c2f5acd1461063f5780636d73e6691461065f57806370a082311461067f57600080fd5b806355461d6d146105c257806361a4422b146105dc5780636352211e1461060c57600080fd5b80633197cbb61461051157806331ae450b1461053557806335e60bd41461055757806340d1d2551461057757806342842e0e1461058d57806351b42b00146105ad57600080fd5b806312686aae116102bc57806324d7806c1161029657806324d7806c146104725780632a55205a146104925780632b85ed9c146104d15780632d345670146104f157600080fd5b806312686aae146103fc578063188866571461041d57806323b872dd1461045257600080fd5b806301ffc9a71461030457806302fb0c5e1461033957806306fdde0314610353578063081812fc14610375578063095ea7b3146103ad5780630ebd4c7f146103cf575b600080fd5b34801561031057600080fd5b5061032461031f366004613487565b6109a6565b60405190151581526020015b60405180910390f35b34801561034557600080fd5b506002546103249060ff1681565b34801561035f57600080fd5b506103686109d5565b604051610330919061378a565b34801561038157600080fd5b5061039561039036600461346e565b610a67565b6040516001600160a01b039091168152602001610330565b3480156103b957600080fd5b506103cd6103c8366004613223565b610a8e565b005b3480156103db57600080fd5b506103ef6103ea36600461346e565b610ba9565b6040516103309190613777565b34801561040857600080fd5b5060105461032490600160a01b900460ff1681565b34801561042957600080fd5b5060085461043f90600160c01b900461ffff1681565b60405161ffff9091168152602001610330565b34801561045e57600080fd5b506103cd61046d366004613288565b610c05565b34801561047e57600080fd5b5061032461048d366004613206565b610c36565b34801561049e57600080fd5b506104b26104ad366004613580565b610c6f565b604080516001600160a01b039093168352602083019190915201610330565b3480156104dd57600080fd5b50600c5461043f90610100900461ffff1681565b3480156104fd57600080fd5b506103cd61050c366004613206565b610caa565b34801561051d57600080fd5b5061052760045481565b604051908152602001610330565b34801561054157600080fd5b5061054a610d08565b60405161033091906136e9565b34801561056357600080fd5b506103cd610572366004613453565b610db7565b34801561058357600080fd5b5061052760075481565b34801561059957600080fd5b506103cd6105a8366004613288565b610e1b565b3480156105b957600080fd5b506103cd610e36565b3480156105ce57600080fd5b50600c546103249060ff1681565b3480156105e857600080fd5b506103246105f736600461346e565b60009081526001602052604090205460ff1690565b34801561061857600080fd5b5061039561062736600461346e565b610e8a565b6103cd61063a36600461351e565b610eea565b34801561064b57600080fd5b506103cd61065a366004613223565b611229565b34801561066b57600080fd5b506103cd61067a366004613206565b611298565b34801561068b57600080fd5b5061052761069a366004613206565b6112f0565b3480156106ab57600080fd5b506103cd6112fb565b3480156106c057600080fd5b5061052760035481565b3480156106d657600080fd5b506103cd6106e536600461351e565b61130d565b3480156106f657600080fd5b50610527600b5481565b34801561070c57600080fd5b506103cd61071b366004613503565b61134a565b34801561072c57600080fd5b506008546001600160a01b0316610395565b34801561074a57600080fd5b506103cd6107593660046135a2565b6113af565b34801561076a57600080fd5b5061036861140d565b34801561077f57600080fd5b506103cd61078e3660046134c1565b61141c565b34801561079f57600080fd5b506103cd6107ae3660046133a9565b611470565b3480156107bf57600080fd5b5061052760065481565b3480156107d557600080fd5b506103cd6107e43660046132c9565b61147b565b3480156107f557600080fd5b5061080961080436600461346e565b6114b3565b6040516103309190613736565b34801561082257600080fd5b5061083661083136600461346e565b61152c565b604051610330929190613749565b34801561085057600080fd5b506108596115e0565b60405161033091906138d5565b34801561087257600080fd5b5061036861088136600461346e565b61172a565b34801561089257600080fd5b5060085461043f90600160b01b900461ffff1681565b3480156108b457600080fd5b5061052760095481565b3480156108ca57600080fd5b5061052760055481565b3480156108e057600080fd5b506103cd6108ef3660046133de565b611791565b34801561090057600080fd5b5061032461090f36600461324f565b6117e5565b34801561092057600080fd5b5060085461043f90600160a01b900461ffff1681565b34801561094257600080fd5b506103cd610951366004613206565b611813565b34801561096257600080fd5b506103cd610971366004613223565b611889565b34801561098257600080fd5b50600a5461043f9061ffff1681565b34801561099d57600080fd5b5061043f6118dd565b60006109b182611909565b806109c057506109c082611975565b806109cf57506109cf826119c5565b92915050565b6060601180546109e490613a8a565b80601f0160208091040260200160405190810160405280929190818152602001828054610a1090613a8a565b8015610a5d5780601f10610a3257610100808354040283529160200191610a5d565b820191906000526020600020905b815481529060010190602001808311610a4057829003601f168201915b5050505050905090565b6000610a72826119ea565b506000908152601560205260409020546001600160a01b031690565b6000610a9982610e8a565b9050806001600160a01b0316836001600160a01b03161415610b0c5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b0382161480610b285750610b2881336117e5565b610b9a5760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610b03565b610ba48383611a49565b505050565b6010546060906001600160a01b031615610c00576040805160018082528183019092529060208083019080368337019050509050600f5481600081518110610bf357610bf3613b6e565b6020026020010181815250505b919050565b610c0f3382611ab7565b610c2b5760405162461bcd60e51b8152600401610b0390613887565b610ba4838383611b16565b6000816001600160a01b0316610c546008546001600160a01b031690565b6001600160a01b031614806109cf57506109cf601783611cbd565b601054600f5460009182916001600160a01b039091169061271090610c949086613a05565b610c9e91906139f1565b915091505b9250929050565b610cb2611cdf565b610cbd601782611cbd565b15610d055760405133906001600160a01b038316907f7c0c3c84c67c85fcac635147348bfe374c24a1a93d0366d1cfe9d8853cbf89d590600090a3610d03601782611d39565b505b50565b6060610d146017611d4e565b67ffffffffffffffff811115610d2c57610d2c613b84565b604051908082528060200260200182016040528015610d55578160200160208202803683370190505b50905060005b610d656017611d4e565b811015610db357610d77601782611d58565b828281518110610d8957610d89613b6e565b6001600160a01b039092166020928302919091019091015280610dab81613ae7565b915050610d5b565b5090565b33610dca6008546001600160a01b031690565b6001600160a01b03161480610de55750610de5601733611cbd565b610e015760405162461bcd60e51b8152600401610b0390613843565b6010805460ff60a01b1916600160a01b8315150217905550565b610ba48383836040518060200160405280600081525061147b565b33610e496008546001600160a01b031690565b6001600160a01b03161480610e645750610e64601733611cbd565b610e805760405162461bcd60e51b8152600401610b0390613843565b610e88611d64565b565b6000818152601360205260408120546001600160a01b0316806109cf5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610b03565b610ef2611dad565b6000610efc611e34565b9050610f066118dd565b61ffff168661ffff1611158015610f595750808015610f275750600c5460ff165b80610f3d5750600854600160a01b900461ffff16155b80610f59575060085461ffff600160a01b909104811690871611155b610f755760405162461bcd60e51b8152600401610b03906137ef565b80156110f257600c5460ff1661107357600a5461ffff1615610ff157336000908152600d6020526040902054600a5461ffff918216911681108015610fd35750600a54610fc790829061ffff16613a24565b61ffff168761ffff1611155b610fef5760405162461bcd60e51b8152600401610b03906137ef565b505b600854600160c01b900461ffff161561107357336000908152600d602052604090205460085461ffff91821691600160c01b90910416811080156110555750600854611049908290600160c01b900461ffff16613a24565b61ffff168761ffff1611155b6110715760405162461bcd60e51b8152600401610b03906137ef565b505b61107c86611e58565b600c5460ff161580156110aa5750600a5461ffff161515806110aa5750600854600160c01b900461ffff1615155b156110ed57336000908152600d6020526040812080548892906110d290849061ffff166139bc565b92506101000a81548161ffff021916908361ffff1602179055505b6111ce565b600854600160c01b900461ffff161561117457336000908152600d602052604090205460085461ffff91821691600160c01b9091041681108015611156575060085461114a908290600160c01b900461ffff16613a24565b61ffff168761ffff1611155b6111725760405162461bcd60e51b8152600401610b03906137ef565b505b61117d86611eb7565b600854600160c01b900461ffff16156111ce57336000908152600d6020526040812080548892906111b390849061ffff166139bc565b92506101000a81548161ffff021916908361ffff1602179055505b8080156111dd5750600c5460ff165b156111f4576111ef858585858a611ec8565b611200565b6112008585858561209c565b60005b8661ffff16811015611220576112183361225b565b600101611203565b50505050505050565b3361123c6008546001600160a01b031690565b6001600160a01b031614806112575750611257601733611cbd565b6112735760405162461bcd60e51b8152600401610b0390613843565b601080546001600160a01b0319166001600160a01b038416179055600f819055610d03565b6112a0611cdf565b6112ab601782611cbd565b610d055760405133906001600160a01b038316907f7e1a1a08d52e4ba0e21554733d66165fd5151f99460116223d9e3a608eec5cb190600090a3610d036017826122f1565b60006109cf82612306565b611303611cdf565b610e88600061238c565b6113156123de565b6113228484848489612473565b60005b8561ffff168110156113425761133a3361225b565b600101611325565b505050505050565b3361135d6008546001600160a01b031690565b6001600160a01b031614806113785750611378601733611cbd565b6113945760405162461bcd60e51b8152600401610b0390613843565b610d05816113aa6008546001600160a01b031690565b612480565b336113c26008546001600160a01b031690565b6001600160a01b031614806113dd57506113dd601733611cbd565b6113f95760405162461bcd60e51b8152600401610b0390613843565b61140685858585856124c3565b5050505050565b6060601280546109e490613a8a565b3361142f6008546001600160a01b031690565b6001600160a01b0316148061144a575061144a601733611cbd565b6114665760405162461bcd60e51b8152600401610b0390613843565b610d038282612679565b610d03338383612685565b6114853383611ab7565b6114a15760405162461bcd60e51b8152600401610b0390613887565b6114ad84848484612754565b50505050565b6010546060906001600160a01b031615610c00576040805160018082528183019092529060208083019080368337505060105482519293506001600160a01b03169183915060009061150757611507613b6e565b60200260200101906001600160a01b031690816001600160a01b031681525050919050565b60105460609081906001600160a01b0316156115db576040805160018082528183019092529060208083019080368337505060105482519294506001600160a01b03169184915060009061158257611582613b6e565b6001600160a01b0392909216602092830291909101820152604080516001808252818301909252918281019080368337019050509050600f54816000815181106115ce576115ce613b6e565b6020026020010181815250505b915091565b604080516101e081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e08101829052610100810182905261012081018290526101408101829052610160810182905261018081018290526101a081018290526101c0810191909152604080516101e08101825260085461ffff600160a01b820481168352600160b01b90910416602082015290810161168e6118dd565b61ffff9081168252600954602080840191909152600854600160c01b90048216604080850191909152600b546060850152600a5483166080850152336000908152600d9092529020541660a082015260025460ff908116151560c083015260035460e0830152600454610100830152600554610120830152600654610140830152600754610160830152600c5416151561018090910152919050565b6060611735826119ea565b600061173f612787565b9050600081511161175f576040518060200160405280600081525061178a565b8061176984612796565b60405160200161177a92919061367d565b6040516020818303038152906040525b9392505050565b336117a46008546001600160a01b031690565b6001600160a01b031614806117bf57506117bf601733611cbd565b6117db5760405162461bcd60e51b8152600401610b0390613843565b610d038282612894565b6001600160a01b03918216600090815260166020908152604080832093909416825291909152205460ff1690565b61181b611cdf565b6001600160a01b0381166118805760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b03565b610d058161238c565b3361189c6008546001600160a01b031690565b6001600160a01b031614806118b757506118b7601733611cbd565b6118d35760405162461bcd60e51b8152600401610b0390613843565b610d0382826128f9565b600c546008546000916119049161ffff610100909204821691600160b01b90910416613a24565b905090565b60006001600160e01b0319821663da192f9f60e01b148061193a57506001600160e01b03198216635d9dd7eb60e11b145b8061195557506001600160e01b0319821663152a902d60e11b145b806109cf57506001600160e01b03198216632dde656160e21b1492915050565b60006001600160e01b031982166380ac58cd60e01b14806119a657506001600160e01b03198216635b5e139f60e01b145b806109cf57506301ffc9a760e01b6001600160e01b03198316146109cf565b60006001600160e01b03198216632a9f3abf60e11b14806109cf57506109cf82611975565b6000818152601360205260409020546001600160a01b0316610d055760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610b03565b600081815260156020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611a7e82610e8a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080611ac383610e8a565b9050806001600160a01b0316846001600160a01b03161480611aea5750611aea81856117e5565b80611b0e5750836001600160a01b0316611b0384610a67565b6001600160a01b0316145b949350505050565b826001600160a01b0316611b2982610e8a565b6001600160a01b031614611b8d5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610b03565b6001600160a01b038216611bef5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610b03565b611bfa838383612959565b611c05600082611a49565b6001600160a01b0383166000908152601460205260408120805460019290611c2e908490613a47565b90915550506001600160a01b0382166000908152601460205260408120805460019290611c5c9084906139d9565b909155505060008181526013602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b0381166000908152600183016020526040812054151561178a565b6008546001600160a01b03163314610e885760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b03565b600061178a836001600160a01b038416612962565b60006109cf825490565b600061178a8383612a55565b6000600381905560048190556002805460ff19169055600681905560078190556040517fb02389feab3af620e2374d4d559b436ea226b1e6c9c31fe77dfbff3d40cbe9ba9190a1565b60025460ff16611dea5760405162461bcd60e51b8152602060048201526008602482015267496e61637469766560c01b6044820152606401610b03565b600354421015610e885760405162461bcd60e51b815260206004820152601560248201527450757263686173696e67206e6f742061637469766560581b6044820152606401610b03565b6000600354421180156119045750600554600354611e529042613a47565b10905090565b600b54611e699061ffff8316613a05565b3414610d055760405162461bcd60e51b815260206004820152601c60248201527f496e76616c696420707572636861736520616d6f756e742073656e74000000006044820152606401610b03565b600954611e699061ffff8316613a05565b60008281526001602052604090205460ff1615611f235760405162461bcd60e51b815260206004820152601960248201527821b0b73737ba103932b83630bc903a3930b739b0b1ba34b7b760391b6044820152606401610b03565b6040517f19457468657265756d205369676e6564204d6573736167653a0a35340000000060208201526bffffffffffffffffffffffff193360601b16603c820152605081018390526001600160f01b031960f083901b166070820152600090607201604051602081830303815290604052805190602001209050808614611fe05760405162461bcd60e51b81526020600482015260116024820152704d616c666f726d6564206d65737361676560781b6044820152606401610b03565b600061202486868080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508b93925050612a7f9050565b6000549091506001600160a01b038083169116146120785760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964207369676e617475726560781b6044820152606401610b03565b5050506000908152600160208190526040909120805460ff19169091179055505050565b60008181526001602052604090205460ff16156120f75760405162461bcd60e51b815260206004820152601960248201527821b0b73737ba103932b83630bc903a3930b739b0b1ba34b7b760391b6044820152606401610b03565b6040517f19457468657265756d205369676e6564204d6573736167653a0a35320000000060208201526bffffffffffffffffffffffff193360601b16603c820152605081018290526000906070016040516020818303038152906040528051906020012090508085146121a05760405162461bcd60e51b81526020600482015260116024820152704d616c666f726d6564206d65737361676560781b6044820152606401610b03565b60006121e485858080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508a93925050612a7f9050565b6000549091506001600160a01b038083169116146122385760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964207369676e617475726560781b6044820152606401610b03565b50506000908152600160208190526040909120805460ff19169091179055505050565b600c8054610100900461ffff1690600161227483613ac5565b825461ffff91821661010093840a9081029083021990911617909255600c546122a39350849291900416612aa3565b600c546040805161010090920461ffff16808352306020840152908201527f7a607f1ab973d85727d0ff44300699ee672c0e1d76f35013f36c02772f524ba39060600160405180910390a150565b600061178a836001600160a01b038416612aad565b60006001600160a01b0382166123705760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610b03565b506001600160a01b031660009081526014602052604090205490565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60025460ff1661241b5760405162461bcd60e51b8152602060048201526008602482015267496e61637469766560c01b6044820152606401610b03565b600654421015801561242f57506007544211155b610e885760405162461bcd60e51b815260206004820152601560248201527427baba39b4b2329031b630b4b6903832b934b7b21760591b6044820152606401610b03565b6114068585858585611ec8565b60025460ff16156124a35760405162461bcd60e51b8152600401610b039061381b565b60005b8261ffff16811015610ba4576124bb8261225b565b6001016124a6565b60025460ff16156124e65760405162461bcd60e51b8152600401610b039061381b565b4285116125355760405162461bcd60e51b815260206004820152601b60248201527f43616e6e6f7420616374697661746520696e20746865207061737400000000006044820152606401610b03565b8383111561259d5760405162461bcd60e51b815260206004820152602f60248201527f50726573616c6520496e74657276616c2063616e6e6f74206265206c6f6e676560448201526e72207468616e207468652073616c6560881b6064820152608401610b03565b8082111580156125ad5750848111155b6125ef5760405162461bcd60e51b8152602060048201526013602482015272496e76616c696420636c61696d2074696d657360681b6044820152606401610b03565b60038590556125fe84866139d9565b60048190556005849055600683905560078290556002805460ff1916600117905560035460408051918252602082019290925290810184905260608101839052608081018290527fe512d106f8172b08abfd2fc5ddfdb7e2401381780ae29e29f1352b862f1d27319060a00160405180910390a15050505050565b610ba4600e8383613112565b816001600160a01b0316836001600160a01b031614156126e75760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b03565b6001600160a01b03838116600081815260166020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61275f848484611b16565b61276b84848484612afc565b6114ad5760405162461bcd60e51b8152600401610b039061379d565b6060600e80546109e490613a8a565b6060816127ba5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156127e457806127ce81613ae7565b91506127dd9050600a836139f1565b91506127be565b60008167ffffffffffffffff8111156127ff576127ff613b84565b6040519080825280601f01601f191660200182016040528015612829576020820181803683370190505b5090505b8415611b0e5761283e600183613a47565b915061284b600a86613b02565b6128569060306139d9565b60f81b81838151811061286b5761286b613b6e565b60200101906001600160f81b031916908160001a90535061288d600a866139f1565b945061282d565b60025460ff16156128b75760405162461bcd60e51b8152600401610b039061381b565b60005b81811015610ba4576128f18383838181106128d7576128d7613b6e565b90506020020160208101906128ec9190613206565b61225b565b6001016128ba565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612946576040519150601f19603f3d011682016040523d82523d6000602084013e61294b565b606091505b5050905080610ba457600080fd5b610ba483612c09565b60008181526001830160205260408120548015612a4b576000612986600183613a47565b855490915060009061299a90600190613a47565b90508181146129ff5760008660000182815481106129ba576129ba613b6e565b90600052602060002001549050808760000184815481106129dd576129dd613b6e565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080612a1057612a10613b58565b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506109cf565b60009150506109cf565b6000826000018281548110612a6c57612a6c613b6e565b9060005260206000200154905092915050565b6000806000612a8e8585612c75565b91509150612a9b81612ce2565b509392505050565b610d038282612e9d565b6000818152600183016020526040812054612af4575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556109cf565b5060006109cf565b60006001600160a01b0384163b15612bfe57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612b409033908990889088906004016136ac565b602060405180830381600087803b158015612b5a57600080fd5b505af1925050508015612b8a575060408051601f3d908101601f19168201909252612b87918101906134a4565b60015b612be4573d808015612bb8576040519150601f19603f3d011682016040523d82523d6000602084013e612bbd565b606091505b508051612bdc5760405162461bcd60e51b8152600401610b039061379d565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611b0e565b506001949350505050565b601054600160a01b900460ff161580612c2957506001600160a01b038116155b610d055760405162461bcd60e51b815260206004820152601f60248201527f5472616e73666572206c6f636b656420756e74696c2073616c6520656e6473006044820152606401610b03565b600080825160411415612cac5760208301516040840151606085015160001a612ca087828585612fec565b94509450505050610ca3565b825160401415612cd65760208301516040840151612ccb8683836130d9565b935093505050610ca3565b50600090506002610ca3565b6000816004811115612cf657612cf6613b42565b1415612cff5750565b6001816004811115612d1357612d13613b42565b1415612d615760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610b03565b6002816004811115612d7557612d75613b42565b1415612dc35760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610b03565b6003816004811115612dd757612dd7613b42565b1415612e305760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610b03565b6004816004811115612e4457612e44613b42565b1415610d055760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610b03565b6001600160a01b038216612ef35760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b03565b6000818152601360205260409020546001600160a01b031615612f585760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b03565b612f6460008383612959565b6001600160a01b0382166000908152601460205260408120805460019290612f8d9084906139d9565b909155505060008181526013602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4610d03565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561302357506000905060036130d0565b8460ff16601b1415801561303b57508460ff16601c14155b1561304c57506000905060046130d0565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156130a0573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166130c9576000600192509250506130d0565b9150600090505b94509492505050565b6000806001600160ff1b038316816130f660ff86901c601b6139d9565b905061310487828885612fec565b935093505050935093915050565b82805461311e90613a8a565b90600052602060002090601f0160209004810192826131405760008555613186565b82601f106131595782800160ff19823516178555613186565b82800160010185558215613186579182015b8281111561318657823582559160200191906001019061316b565b50610db39291505b80821115610db3576000815560010161318e565b80358015158114610c0057600080fd5b60008083601f8401126131c457600080fd5b50813567ffffffffffffffff8111156131dc57600080fd5b602083019150836020828501011115610ca357600080fd5b803561ffff81168114610c0057600080fd5b60006020828403121561321857600080fd5b813561178a81613b9a565b6000806040838503121561323657600080fd5b823561324181613b9a565b946020939093013593505050565b6000806040838503121561326257600080fd5b823561326d81613b9a565b9150602083013561327d81613b9a565b809150509250929050565b60008060006060848603121561329d57600080fd5b83356132a881613b9a565b925060208401356132b881613b9a565b929592945050506040919091013590565b600080600080608085870312156132df57600080fd5b84356132ea81613b9a565b935060208501356132fa81613b9a565b925060408501359150606085013567ffffffffffffffff8082111561331e57600080fd5b818701915087601f83011261333257600080fd5b81358181111561334457613344613b84565b604051601f8201601f19908116603f0116810190838211818310171561336c5761336c613b84565b816040528281528a602084870101111561338557600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600080604083850312156133bc57600080fd5b82356133c781613b9a565b91506133d5602084016131a2565b90509250929050565b600080602083850312156133f157600080fd5b823567ffffffffffffffff8082111561340957600080fd5b818501915085601f83011261341d57600080fd5b81358181111561342c57600080fd5b8660208260051b850101111561344157600080fd5b60209290920196919550909350505050565b60006020828403121561346557600080fd5b61178a826131a2565b60006020828403121561348057600080fd5b5035919050565b60006020828403121561349957600080fd5b813561178a81613baf565b6000602082840312156134b657600080fd5b815161178a81613baf565b600080602083850312156134d457600080fd5b823567ffffffffffffffff8111156134eb57600080fd5b6134f7858286016131b2565b90969095509350505050565b60006020828403121561351557600080fd5b61178a826131f4565b60008060008060006080868803121561353657600080fd5b61353f866131f4565b945060208601359350604086013567ffffffffffffffff81111561356257600080fd5b61356e888289016131b2565b96999598509660600135949350505050565b6000806040838503121561359357600080fd5b50508035926020909101359150565b600080600080600060a086880312156135ba57600080fd5b505083359560208501359550604085013594606081013594506080013592509050565b600081518084526020808501945080840160005b838110156136165781516001600160a01b0316875295820195908201906001016135f1565b509495945050505050565b600081518084526020808501945080840160005b8381101561361657815187529582019590820190600101613635565b60008151808452613669816020860160208601613a5e565b601f01601f19169290920160200192915050565b6000835161368f818460208801613a5e565b8351908301906136a3818360208801613a5e565b01949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906136df90830184613651565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b8181101561372a5783516001600160a01b031683529284019291840191600101613705565b50909695505050505050565b60208152600061178a60208301846135dd565b60408152600061375c60408301856135dd565b828103602084015261376e8185613621565b95945050505050565b60208152600061178a6020830184613621565b60208152600061178a6020830184613651565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b602080825260129082015271151bdbc81b585b9e481c995c5d595cdd195960721b604082015260600190565b6020808252600e908201526d416c72656164792061637469766560901b604082015260600190565b60208082526024908201527f41646d696e436f6e74726f6c3a204d757374206265206f776e6572206f7220616040820152633236b4b760e11b606082015260800190565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b815161ffff1681526101e0810160208301516138f7602084018261ffff169052565b50604083015161390d604084018261ffff169052565b5060608301516060830152608083015161392d608084018261ffff169052565b5060a083015160a083015260c083015161394d60c084018261ffff169052565b5060e083015161396360e084018261ffff169052565b506101008381015115159083015261012080840151908301526101408084015190830152610160808401519083015261018080840151908301526101a080840151908301526101c0928301511515929091019190915290565b600061ffff8083168185168083038211156136a3576136a3613b16565b600082198211156139ec576139ec613b16565b500190565b600082613a0057613a00613b2c565b500490565b6000816000190483118215151615613a1f57613a1f613b16565b500290565b600061ffff83811690831681811015613a3f57613a3f613b16565b039392505050565b600082821015613a5957613a59613b16565b500390565b60005b83811015613a79578181015183820152602001613a61565b838111156114ad5750506000910152565b600181811c90821680613a9e57607f821691505b60208210811415613abf57634e487b7160e01b600052602260045260246000fd5b50919050565b600061ffff80831681811415613add57613add613b16565b6001019392505050565b6000600019821415613afb57613afb613b16565b5060010190565b600082613b1157613b11613b2c565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610d0557600080fd5b6001600160e01b031981168114610d0557600080fdfea2646970667358221220f41c03b4e0ac5d997ac693d9c0ddaf290b4c2717324d73c7d1047847d2684e4764736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000e6e48e8fda74521e2ee1de95737f06b95764a0c1
-----Decoded View---------------
Arg [0] : signingAddress (address): 0xe6E48E8Fda74521E2ee1dE95737F06b95764a0C1
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000e6e48e8fda74521e2ee1de95737f06b95764a0c1
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.