Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
NFT
Overview
Max Total Supply
5,550 APEDREMIX
Holders
2,421
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
0 APEDREMIXLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
ApeDaoRemix
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 200 runs
Other Settings:
petersburg EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// .......................................................................... // .......................................................................... // .......................................................................... // .......................................................................... // ..........................*&&&&&,........&&&&&&........................... // .....................,(....&&&&&(.......&&*..,&&.......................... // .................,&&/.&&....&&&&#.........&&&&&...,&&&&&&................. // ...................&&&.........................../&#&&&&.................. // ....................#&............***.***.............&&....,............. // ...........&&&&&&&&...............***.***................*&&&*&&.......... // ............&&&&..........................................&&...&&......... // .............&&.......&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&%......,&&&&.......... // ....................&&&&&.....,*#&&&&&&&&&#*,.....&&&&%................... // ....................&&&............&&&&&...........,&&&................... // ...................&&&&............,&&&,............&&&&.................. // ...................&&&&%........*%&&&&&&&#*........&&&&&.................. // ...................&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&.................. // ..............,......&&&&&&&&%&&&&&&...&&&&&&%&&&&&&&&......*............. // ...............*.............&&&&&.......&&&&&............**.............. // ...............,**..........&&&&%....&....&&&&&.........***............... // ................****........&&&&&&&&&&&&&&&&&&&.......****................ // ...............*******.......&&&&&&&&&&&&&&&&&......,******............... // .................****.......&&&&&&,(&&&&*&&&&&&......****................. // ..................****..............................****.................. // ..................******.....&&&.*&&&&&&&.,&&&....******.................. // .....................**.......&&&&&&&&&&&&&&&......**..................... // .......................**......&&&&&&&&&&&&&.....**....................... // ..................................#&&&&&(................................. // .......................................................................... // ....................................***................................... // .......................................................................... // .......................................................................... // @chrishol // SPDX-License-Identifier: MIT pragma solidity ^0.8.2; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; contract ApeDaoRemix is ERC721, ERC721Enumerable, ERC721URIStorage, Pausable, Ownable, ERC721Burnable, ReentrancyGuard { using Counters for Counters.Counter; Counters.Counter private _tokenIdCounter; string public baseURI; string public provenanceHash; address public apedTokenAddress; uint256 public constant mintPrice = 200000000000000000; // 0.2 ETH uint256 public constant maximumSupply = 50 * 111; // 50 editions of 111 uint256 public constant maximumMintLimit = 5; // Maximum 5 per transaction uint256[3] public apedTokensForTier; mapping(uint256 => uint256) internal apedTokensClaimedByToken; mapping(uint256 => uint8) internal tokenTier; mapping(address => uint256) internal amountPreMintableByAddress; mapping(address => uint256) internal restrictedTokensMinted; /* Distribution of APED Tokens */ function claimApedTokens(uint256[] memory _tokenIds) public nonReentrant { require(distributionActive); require(_tokenIds.length <= 20, "Can only claim 20 per tx"); uint256 totalClaimable = 0; for (uint8 i = 0; i < _tokenIds.length; i++) { require(_isApprovedOrOwner(_msgSender(), _tokenIds[i]), "Token not approved"); uint256 amount = getClaimableApedTokens(_tokenIds[i]); totalClaimable += amount; apedTokensClaimedByToken[_tokenIds[i]] += amount; } require(totalClaimable > 0, "Nothing to claim"); IERC20(apedTokenAddress).transfer(_msgSender(), totalClaimable); // Assumes enough APED in the contract } function getClaimableApedTokens(uint256 _tokenId) public view returns (uint256) { require(_exists(_tokenId), "Token not minted"); return max(apedTokensForTier[tokenTier[_tokenId]] - apedTokensClaimedByToken[_tokenId], 0); } /* Configuration of APED Token Distribution */ function setTokenTiers(uint256[] memory _tokenIds, uint8 _tier) public onlyOwner { require(_tier <= 2); // Only three possible tiers for (uint8 i = 0; i < _tokenIds.length; i++) { tokenTier[_tokenIds[i]] = _tier; } } bool public distributionActive = false; function toggleDistributionActive() public onlyOwner { distributionActive = !distributionActive; } /* Constructor */ constructor(address _apeDaoContract, string memory _provenance) ERC721("APE DAO REMIX!", "APEDREMIX") { pause(); // Start with main sale paused provenanceHash = _provenance; apedTokenAddress = _apeDaoContract; apedTokensForTier[0] = 10000000000000000000; // 10 APED per basic token apedTokensForTier[1] = 50000000000000000000; // 50 APED per silver token apedTokensForTier[2] = 250000000000000000000; // 250 APED per gold token } /* Minting */ bool public walletRestrictionActive = true; function toggleWalletRestrictionActive() public onlyOwner { walletRestrictionActive = !walletRestrictionActive; } function pause() public onlyOwner { _pause(); } function unpause() public onlyOwner { _unpause(); } event ApeDaoRemixMinted( address account, uint256 tokenId ); function mintApeDaoRemix(uint256 _quantity) public payable whenNotPaused nonReentrant { require(_tokenIdCounter.current() + _quantity <= maximumSupply, "Not enough left"); require(_quantity <= maximumMintLimit, "Max 5 per tx"); require(mintPrice * _quantity <= msg.value, "Not enough ETH"); // Limit to 10 mints per address until we take the handbrake off if (walletRestrictionActive) { require(restrictedTokensMinted[_msgSender()] + _quantity <= 10, "Only 10 per address"); restrictedTokensMinted[_msgSender()] += _quantity; } mint(_quantity); } function mint(uint256 _quantity) internal { for(uint8 i = 0; i < _quantity; i++) { _tokenIdCounter.increment(); // Increment first so that we start at token 1 _safeMint(_msgSender(), _tokenIdCounter.current()); emit ApeDaoRemixMinted(_msgSender(), _tokenIdCounter.current()); } } /* Pre-Minting - For APED holders */ bool public preMintingActive = false; function togglePreMintingActive() public onlyOwner { preMintingActive = !preMintingActive; } function preMint(uint256 _quantity) public payable nonReentrant { require(preMintingActive); require(_tokenIdCounter.current() + _quantity <= maximumSupply, "Not enough left"); require(_quantity < amountPreMintableByAddress[_msgSender()] + 1, "Over allowance"); require(_quantity <= maximumMintLimit, "Max 5 per tx"); require(mintPrice * _quantity <= msg.value, "Not enough ETH"); amountPreMintableByAddress[_msgSender()] -= _quantity; mint(_quantity); } function pushPreMinters(address[] memory _preMinters, uint256 _amount) public onlyOwner { for(uint8 i = 0; i < _preMinters.length; i++) { amountPreMintableByAddress[_preMinters[i]] += _amount; } } function getAmountPreMintable(address _userAddress) public view returns (uint256 amountPreMintable) { amountPreMintable = amountPreMintableByAddress[_userAddress]; } /* Owner Minting - Allow a small number of pre-mints without ETH payment required */ function ownerMint(uint256 _quantity) public onlyOwner { require(_tokenIdCounter.current() + _quantity <= 10); mint(_quantity); } /* Helpers */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } /* Open Zeppelin Overrides and Default Methods */ function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal override(ERC721, ERC721Enumerable) { super._beforeTokenTransfer(from, to, tokenId); } function setTokenURI(uint256 _tokenId, string memory _tokenURI) public onlyOwner { _setTokenURI(_tokenId, _tokenURI); } function setBaseURI(string memory baseURI_) public onlyOwner { baseURI = baseURI_; } function _baseURI() internal view virtual override returns (string memory) { return baseURI; } function _burn(uint256 tokenId) internal override(ERC721, ERC721URIStorage) { super._burn(tokenId); } function tokenURI(uint256 tokenId) public view override(ERC721, ERC721URIStorage) returns (string memory) { return super.tokenURI(tokenId); } function supportsInterface(bytes4 interfaceId) public view override(ERC721, ERC721Enumerable) returns (bool) { return super.supportsInterface(interfaceId); } function withdraw() public onlyOwner { Address.sendValue(payable(0xCa52757875aBDFc1DDed370828DFc2bE2d4D53c4), address(this).balance * 2 / 100); Address.sendValue(payable(0xA7Ab7a265F274FA664187698932D3CaBb851023d), address(this).balance); } function withdrawTokens(IERC20 token) public onlyOwner { require(address(token) != address(0)); token.transfer(_msgSender(), token.balanceOf(address(this))); } receive() external payable {} }
// SPDX-License-Identifier: MIT 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() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC721.sol"; import "../../../utils/Context.sol"; /** * @title ERC721 Burnable Token * @dev ERC721 Token that can be irreversibly burned (destroyed). */ abstract contract ERC721Burnable is Context, ERC721 { /** * @dev Burns `tokenId`. See {ERC721-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) public virtual { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved"); _burn(tokenId); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC721.sol"; /** * @dev ERC721 token with storage based token URI management. */ abstract contract ERC721URIStorage is ERC721 { using Strings for uint256; // Optional mapping for token URIs mapping(uint256 => string) private _tokenURIs; /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721URIStorage: URI query for nonexistent token"); string memory _tokenURI = _tokenURIs[tokenId]; string memory base = _baseURI(); // If there is no base URI, return the token URI. if (bytes(base).length == 0) { return _tokenURI; } // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked). if (bytes(_tokenURI).length > 0) { return string(abi.encodePacked(base, _tokenURI)); } return super.tokenURI(tokenId); } /** * @dev Sets `_tokenURI` as the tokenURI of `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual { require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token"); _tokenURIs[tokenId] = _tokenURI; } /** * @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 override { super._burn(tokenId); if (bytes(_tokenURIs[tokenId]).length != 0) { delete _tokenURIs[tokenId]; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "petersburg", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_apeDaoContract","type":"address"},{"internalType":"string","name":"_provenance","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ApeDaoRemixMinted","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":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"apedTokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"apedTokensForTier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"claimApedTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"distributionActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_userAddress","type":"address"}],"name":"getAmountPreMintable","outputs":[{"internalType":"uint256","name":"amountPreMintable","type":"uint256"}],"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":"_tokenId","type":"uint256"}],"name":"getClaimableApedTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"maximumMintLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maximumSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"mintApeDaoRemix","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"preMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"preMintingActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"provenanceHash","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_preMinters","type":"address[]"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"pushPreMinters","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"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":"baseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"},{"internalType":"uint8","name":"_tier","type":"uint8"}],"name":"setTokenTiers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"string","name":"_tokenURI","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleDistributionActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"togglePreMintingActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleWalletRestrictionActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"walletRestrictionActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040526018805462ffffff19166101001790553480156200002157600080fd5b5060405162003b4a38038062003b4a8339810160408190526200004491620003ac565b604080518082018252600e81527f4150452044414f2052454d49582100000000000000000000000000000000000060208083019182528351808501909452600984527f4150454452454d49580000000000000000000000000000000000000000000000908401528151919291620000be9160009162000306565b508051620000d490600190602084019062000306565b5050600b805460ff1916905550620000ec336200015e565b6001600c55620000fb620001b8565b80516200011090600f90602084019062000306565b5050601080546001600160a01b0319166001600160a01b0392909216919091179055678ac7230489e800006011556802b5e3af16b1880000601255680d8d726b7177a8000060135562000531565b600b80546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600b546001600160a01b0361010090910416331462000238576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6200024262000244565b565b600b5460ff1615620002b3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016200022f565b600b805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620002e93390565b6040516001600160a01b03909116815260200160405180910390a1565b8280546200031490620004ac565b90600052602060002090601f01602090048101928262000338576000855562000383565b82601f106200035357805160ff191683800117855562000383565b8280016001018555821562000383579182015b828111156200038357825182559160200191906001019062000366565b506200039192915062000395565b5090565b5b8082111562000391576000815560010162000396565b60008060408385031215620003c057600080fd5b82516001600160a01b0381168114620003d857600080fd5b602084810151919350906001600160401b0380821115620003f857600080fd5b818601915086601f8301126200040d57600080fd5b81518181111562000422576200042262000502565b604051601f8201601f19908116603f011681019083821181831017156200044d576200044d62000502565b8160405282815289868487010111156200046657600080fd5b600093505b828410156200048a57848401860151818501870152928501926200046b565b828411156200049c5760008684830101525b8096505050505050509250929050565b600181811c90821680620004c157607f821691505b60208210811415620004fc577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61360980620005416000396000f3fe6080604052600436106102975760003560e01c80637d655d191161015a578063b6f42861116100c1578063e45090c81161007a578063e45090c81461078b578063e6ec0339146107ab578063e985e9c5146107c0578063f19e75d414610809578063f2fde38b14610829578063fe4583191461084957600080fd5b8063b6f42861146106ec578063b88d4fde14610701578063befd7b8114610721578063c6ab67a314610741578063c87b56dd14610756578063cf580ec61461077657600080fd5b80639df7c798116101135780639df7c7981461062e578063a22cb46514610664578063a40b447514610684578063a8be1b88146106a4578063a8f96ac0146106b9578063b570e315146106d957600080fd5b80637d655d19146105945780638456cb59146105b45780638ad433ac146105c95780638da5cb5b146105dc57806395d89b41146105ff57806399fb15d21461061457600080fd5b80633f4ba83a116101fe5780635c975abb116101b75780635c975abb146104f65780636352211e1461050e5780636817c76c1461052e5780636c0360eb1461054a57806370a082311461055f578063715018a61461057f57600080fd5b80633f4ba83a1461044157806342842e0e1461045657806342966c681461047657806349df728c146104965780634f6ccce7146104b657806355f804b3146104d657600080fd5b806318160ddd1161025057806318160ddd1461039857806323b872dd146103ad5780632b319691146103cd5780632f745c59146103ec57806336005dc11461040c5780633ccfd60b1461042c57600080fd5b806301ffc9a7146102a35780630480e58b146102d857806306fdde03146102fc578063081812fc1461031e578063095ea7b314610356578063162094c41461037857600080fd5b3661029e57005b600080fd5b3480156102af57600080fd5b506102c36102be36600461311d565b610869565b60405190151581526020015b60405180910390f35b3480156102e457600080fd5b506102ee6115ae81565b6040519081526020016102cf565b34801561030857600080fd5b5061031161087a565b6040516102cf919061329d565b34801561032a57600080fd5b5061033e61033936600461318c565b61090c565b6040516001600160a01b0390911681526020016102cf565b34801561036257600080fd5b50610376610371366004612fab565b610999565b005b34801561038457600080fd5b506103766103933660046131be565b610aaf565b3480156103a457600080fd5b506008546102ee565b3480156103b957600080fd5b506103766103c8366004612ebc565b610aed565b3480156103d957600080fd5b506018546102c390610100900460ff1681565b3480156103f857600080fd5b506102ee610407366004612fab565b610b1f565b34801561041857600080fd5b506102ee61042736600461318c565b610bb5565b34801561043857600080fd5b50610376610c48565b34801561044d57600080fd5b50610376610cce565b34801561046257600080fd5b50610376610471366004612ebc565b610d06565b34801561048257600080fd5b5061037661049136600461318c565b610d21565b3480156104a257600080fd5b506103766104b1366004612e66565b610d9b565b3480156104c257600080fd5b506102ee6104d136600461318c565b610ee3565b3480156104e257600080fd5b506103766104f1366004613157565b610f76565b34801561050257600080fd5b50600b5460ff166102c3565b34801561051a57600080fd5b5061033e61052936600461318c565b610fb9565b34801561053a57600080fd5b506102ee6702c68af0bb14000081565b34801561055657600080fd5b50610311611030565b34801561056b57600080fd5b506102ee61057a366004612e66565b6110be565b34801561058b57600080fd5b50610376611145565b3480156105a057600080fd5b506103766105af36600461307e565b61117f565b3480156105c057600080fd5b506103766113ed565b6103766105d736600461318c565b611425565b3480156105e857600080fd5b50600b5461010090046001600160a01b031661033e565b34801561060b57600080fd5b506103116115db565b34801561062057600080fd5b506018546102c39060ff1681565b34801561063a57600080fd5b506102ee610649366004612e66565b6001600160a01b031660009081526016602052604090205490565b34801561067057600080fd5b5061037661067f366004612f7d565b6115ea565b34801561069057600080fd5b5060105461033e906001600160a01b031681565b3480156106b057600080fd5b506103766116af565b3480156106c557600080fd5b506018546102c39062010000900460ff1681565b6103766106e736600461318c565b6116fe565b3480156106f857600080fd5b506103766118ef565b34801561070d57600080fd5b5061037661071c366004612efd565b611933565b34801561072d57600080fd5b5061037661073c366004612fd7565b61196b565b34801561074d57600080fd5b50610311611a13565b34801561076257600080fd5b5061031161077136600461318c565b611a20565b34801561078257600080fd5b506102ee600581565b34801561079757600080fd5b506102ee6107a636600461318c565b611a2b565b3480156107b757600080fd5b50610376611a42565b3480156107cc57600080fd5b506102c36107db366004612e83565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561081557600080fd5b5061037661082436600461318c565b611a8f565b34801561083557600080fd5b50610376610844366004612e66565b611ae9565b34801561085557600080fd5b506103766108643660046130b3565b611b87565b600061087482611c32565b92915050565b606060008054610889906134a2565b80601f01602080910402602001604051908101604052809291908181526020018280546108b5906134a2565b80156109025780601f106108d757610100808354040283529160200191610902565b820191906000526020600020905b8154815290600101906020018083116108e557829003601f168201915b5050505050905090565b600061091782611c57565b61097d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006109a482610fb9565b9050806001600160a01b0316836001600160a01b03161415610a125760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610974565b336001600160a01b0382161480610a2e5750610a2e81336107db565b610aa05760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610974565b610aaa8383611c74565b505050565b600b546001600160a01b03610100909104163314610adf5760405162461bcd60e51b815260040161097490613302565b610ae98282611ce2565b5050565b610af8335b82611d6d565b610b145760405162461bcd60e51b815260040161097490613337565b610aaa838383611e57565b6000610b2a836110be565b8210610b8c5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610974565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6000610bc082611c57565b610bff5760405162461bcd60e51b815260206004820152601060248201526f151bdad95b881b9bdd081b5a5b9d195960821b6044820152606401610974565b600082815260146020908152604080832054601590925290912054610874919060119060ff1660038110610c3557610c3561356e565b0154610c41919061345f565b6000612002565b600b546001600160a01b03610100909104163314610c785760405162461bcd60e51b815260040161097490613302565b610cad73ca52757875abdfc1dded370828dfc2be2d4d53c46064610c9e30316002613440565b610ca8919061342c565b61201b565b610ccc73a7ab7a265f274fa664187698932d3cabb851023d303161201b565b565b600b546001600160a01b03610100909104163314610cfe5760405162461bcd60e51b815260040161097490613302565b610ccc612135565b610aaa83838360405180602001604052806000815250611933565b610d2a33610af2565b610d8f5760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b6064820152608401610974565b610d98816121c8565b50565b600b546001600160a01b03610100909104163314610dcb5760405162461bcd60e51b815260040161097490613302565b6001600160a01b038116610dde57600080fd5b6001600160a01b03811663a9059cbb336040516370a0823160e01b81523060048201526001600160a01b038516906370a082319060240160206040518083038186803b158015610e2d57600080fd5b505afa158015610e41573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e6591906131a5565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b158015610eab57600080fd5b505af1158015610ebf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ae99190613100565b6000610eee60085490565b8210610f515760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610974565b60088281548110610f6457610f6461356e565b90600052602060002001549050919050565b600b546001600160a01b03610100909104163314610fa65760405162461bcd60e51b815260040161097490613302565b8051610ae990600e906020840190612cad565b6000818152600260205260408120546001600160a01b0316806108745760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610974565b600e805461103d906134a2565b80601f0160208091040260200160405190810160405280929190818152602001828054611069906134a2565b80156110b65780601f1061108b576101008083540402835291602001916110b6565b820191906000526020600020905b81548152906001019060200180831161109957829003601f168201915b505050505081565b60006001600160a01b0382166111295760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610974565b506001600160a01b031660009081526003602052604090205490565b600b546001600160a01b036101009091041633146111755760405162461bcd60e51b815260040161097490613302565b610ccc60006121d1565b6002600c5414156111a25760405162461bcd60e51b815260040161097490613388565b6002600c5560185460ff166111b657600080fd5b6014815111156112085760405162461bcd60e51b815260206004820152601860248201527f43616e206f6e6c7920636c61696d2032302070657220747800000000000000006044820152606401610974565b6000805b82518160ff16101561130d5761123e33848360ff16815181106112315761123161356e565b6020026020010151611d6d565b61127f5760405162461bcd60e51b8152602060048201526012602482015271151bdad95b881b9bdd08185c1c1c9bdd995960721b6044820152606401610974565b60006112a6848360ff16815181106112995761129961356e565b6020026020010151610bb5565b90506112b28184613414565b92508060146000868560ff16815181106112ce576112ce61356e565b6020026020010151815260200190815260200160002060008282546112f39190613414565b909155508291506113059050816134f8565b91505061120c565b50600081116113515760405162461bcd60e51b815260206004820152601060248201526f4e6f7468696e6720746f20636c61696d60801b6044820152606401610974565b6010546001600160a01b031663a9059cbb336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401602060405180830381600087803b1580156113ab57600080fd5b505af11580156113bf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113e39190613100565b50506001600c5550565b600b546001600160a01b0361010090910416331461141d5760405162461bcd60e51b815260040161097490613302565b610ccc61222b565b6002600c5414156114485760405162461bcd60e51b815260040161097490613388565b6002600c5560185462010000900460ff1661146257600080fd5b6115ae8161146f600d5490565b6114799190613414565b11156114b95760405162461bcd60e51b815260206004820152600f60248201526e139bdd08195b9bdd59da081b19599d608a1b6044820152606401610974565b336000908152601660205260409020546114d4906001613414565b81106115135760405162461bcd60e51b815260206004820152600e60248201526d4f76657220616c6c6f77616e636560901b6044820152606401610974565b60058111156115535760405162461bcd60e51b815260206004820152600c60248201526b09ac2f0406a40e0cae440e8f60a31b6044820152606401610974565b34611566826702c68af0bb140000613440565b11156115a55760405162461bcd60e51b815260206004820152600e60248201526d09cdee840cadcdeeaced0408aa8960931b6044820152606401610974565b33600090815260166020526040812080548392906115c490849061345f565b909155506115d39050816122a6565b506001600c55565b606060018054610889906134a2565b6001600160a01b0382163314156116435760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610974565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600b546001600160a01b036101009091041633146116df5760405162461bcd60e51b815260040161097490613302565b6018805462ff0000198116620100009182900460ff1615909102179055565b600b5460ff16156117445760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610974565b6002600c5414156117675760405162461bcd60e51b815260040161097490613388565b6002600c556115ae81611779600d5490565b6117839190613414565b11156117c35760405162461bcd60e51b815260206004820152600f60248201526e139bdd08195b9bdd59da081b19599d608a1b6044820152606401610974565b60058111156118035760405162461bcd60e51b815260206004820152600c60248201526b09ac2f0406a40e0cae440e8f60a31b6044820152606401610974565b34611816826702c68af0bb140000613440565b11156118555760405162461bcd60e51b815260206004820152600e60248201526d09cdee840cadcdeeaced0408aa8960931b6044820152606401610974565b601854610100900460ff16156118e65733600090815260176020526040902054600a90611883908390613414565b11156118c75760405162461bcd60e51b81526020600482015260136024820152724f6e6c7920313020706572206164647265737360681b6044820152606401610974565b33600090815260176020526040812080548392906115c4908490613414565b6115d3816122a6565b600b546001600160a01b0361010090910416331461191f5760405162461bcd60e51b815260040161097490613302565b6018805460ff19811660ff90911615179055565b61193d3383611d6d565b6119595760405162461bcd60e51b815260040161097490613337565b6119658484848461231e565b50505050565b600b546001600160a01b0361010090910416331461199b5760405162461bcd60e51b815260040161097490613302565b60005b82518160ff161015610aaa578160166000858460ff16815181106119c4576119c461356e565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060008282546119fb9190613414565b90915550819050611a0b816134f8565b91505061199e565b600f805461103d906134a2565b606061087482612351565b60118160038110611a3b57600080fd5b0154905081565b600b546001600160a01b03610100909104163314611a725760405162461bcd60e51b815260040161097490613302565b6018805461ff001981166101009182900460ff1615909102179055565b600b546001600160a01b03610100909104163314611abf5760405162461bcd60e51b815260040161097490613302565b600a81611acb600d5490565b611ad59190613414565b1115611ae057600080fd5b610d98816122a6565b600b546001600160a01b03610100909104163314611b195760405162461bcd60e51b815260040161097490613302565b6001600160a01b038116611b7e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610974565b610d98816121d1565b600b546001600160a01b03610100909104163314611bb75760405162461bcd60e51b815260040161097490613302565b60028160ff161115611bc857600080fd5b60005b82518160ff161015610aaa578160156000858460ff1681518110611bf157611bf161356e565b6020026020010151815260200190815260200160002060006101000a81548160ff021916908360ff1602179055508080611c2a906134f8565b915050611bcb565b60006001600160e01b0319821663780e9d6360e01b14806108745750610874826124b3565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611ca982610fb9565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b611ceb82611c57565b611d4e5760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b6064820152608401610974565b6000828152600a602090815260409091208251610aaa92840190612cad565b6000611d7882611c57565b611dd95760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610974565b6000611de483610fb9565b9050806001600160a01b0316846001600160a01b03161480611e1f5750836001600160a01b0316611e148461090c565b6001600160a01b0316145b80611e4f57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611e6a82610fb9565b6001600160a01b031614611ed25760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610974565b6001600160a01b038216611f345760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610974565b611f3f838383612503565b611f4a600082611c74565b6001600160a01b0383166000908152600360205260408120805460019290611f7390849061345f565b90915550506001600160a01b0382166000908152600360205260408120805460019290611fa1908490613414565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000818310156120125781612014565b825b9392505050565b303181111561206c5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610974565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146120b9576040519150601f19603f3d011682016040523d82523d6000602084013e6120be565b606091505b5050905080610aaa5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610974565b600b5460ff1661217e5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610974565b600b805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b610d988161250e565b600b80546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600b5460ff16156122715760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610974565b600b805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586121ab3390565b60005b818160ff161015610ae9576122c2600d80546001019055565b6122ce33600d5461254e565b600d5460408051338152602081019290925280517fd0a1daf61d49b134b9d7f7af3536e9a643ea4cacfca38b549c941029bce017a29281900390910190a180612316816134f8565b9150506122a9565b612329848484611e57565b61233584848484612568565b6119655760405162461bcd60e51b8152600401610974906132b0565b606061235c82611c57565b6123c25760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f72206044820152703737b732bc34b9ba32b73a103a37b5b2b760791b6064820152608401610974565b6000828152600a6020526040812080546123db906134a2565b80601f0160208091040260200160405190810160405280929190818152602001828054612407906134a2565b80156124545780601f1061242957610100808354040283529160200191612454565b820191906000526020600020905b81548152906001019060200180831161243757829003601f168201915b505050505090506000612465612675565b9050805160001415612478575092915050565b8151156124aa578082604051602001612492929190613231565b60405160208183030381529060405292505050919050565b611e4f84612684565b60006001600160e01b031982166380ac58cd60e01b14806124e457506001600160e01b03198216635b5e139f60e01b145b8061087457506301ffc9a760e01b6001600160e01b0319831614610874565b610aaa83838361274e565b61251781612806565b6000818152600a602052604090208054612530906134a2565b159050610d98576000818152600a60205260408120610d9891612d31565b610ae98282604051806020016040528060008152506128ad565b60006001600160a01b0384163b1561266a57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906125ac903390899088908890600401613260565b602060405180830381600087803b1580156125c657600080fd5b505af19250505080156125f6575060408051601f3d908101601f191682019092526125f39181019061313a565b60015b612650573d808015612624576040519150601f19603f3d011682016040523d82523d6000602084013e612629565b606091505b5080516126485760405162461bcd60e51b8152600401610974906132b0565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611e4f565b506001949350505050565b6060600e8054610889906134a2565b606061268f82611c57565b6126f35760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610974565b60006126fd612675565b9050600081511161271d5760405180602001604052806000815250612014565b80612727846128e0565b604051602001612738929190613231565b6040516020818303038152906040529392505050565b6001600160a01b0383166127a9576127a481600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6127cc565b816001600160a01b0316836001600160a01b0316146127cc576127cc83826129de565b6001600160a01b0382166127e357610aaa81612a7b565b826001600160a01b0316826001600160a01b031614610aaa57610aaa8282612b2a565b600061281182610fb9565b905061281f81600084612503565b61282a600083611c74565b6001600160a01b038116600090815260036020526040812080546001929061285390849061345f565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6128b78383612b6e565b6128c46000848484612568565b610aaa5760405162461bcd60e51b8152600401610974906132b0565b6060816129045750506040805180820190915260018152600360fc1b602082015290565b8160005b811561292e5780612918816134dd565b91506129279050600a8361342c565b9150612908565b60008167ffffffffffffffff81111561294957612949613584565b6040519080825280601f01601f191660200182016040528015612973576020820181803683370190505b5090505b8415611e4f5761298860018361345f565b9150612995600a86613518565b6129a0906030613414565b60f81b8183815181106129b5576129b561356e565b60200101906001600160f81b031916908160001a9053506129d7600a8661342c565b9450612977565b600060016129eb846110be565b6129f5919061345f565b600083815260076020526040902054909150808214612a48576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612a8d9060019061345f565b60008381526009602052604081205460088054939450909284908110612ab557612ab561356e565b906000526020600020015490508060088381548110612ad657612ad661356e565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612b0e57612b0e613558565b6001900381819060005260206000200160009055905550505050565b6000612b35836110be565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b038216612bc45760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610974565b612bcd81611c57565b15612c1a5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610974565b612c2660008383612503565b6001600160a01b0382166000908152600360205260408120805460019290612c4f908490613414565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054612cb9906134a2565b90600052602060002090601f016020900481019282612cdb5760008555612d21565b82601f10612cf457805160ff1916838001178555612d21565b82800160010185558215612d21579182015b82811115612d21578251825591602001919060010190612d06565b50612d2d929150612d67565b5090565b508054612d3d906134a2565b6000825580601f10612d4d575050565b601f016020900490600052602060002090810190610d9891905b5b80821115612d2d5760008155600101612d68565b600067ffffffffffffffff831115612d9657612d96613584565b612da9601f8401601f19166020016133bf565b9050828152838383011115612dbd57600080fd5b828260208301376000602084830101529392505050565b600082601f830112612de557600080fd5b81356020612dfa612df5836133f0565b6133bf565b80838252828201915082860187848660051b8901011115612e1a57600080fd5b60005b85811015612e3957813584529284019290840190600101612e1d565b5090979650505050505050565b600082601f830112612e5757600080fd5b61201483833560208501612d7c565b600060208284031215612e7857600080fd5b81356120148161359a565b60008060408385031215612e9657600080fd5b8235612ea18161359a565b91506020830135612eb18161359a565b809150509250929050565b600080600060608486031215612ed157600080fd5b8335612edc8161359a565b92506020840135612eec8161359a565b929592945050506040919091013590565b60008060008060808587031215612f1357600080fd5b8435612f1e8161359a565b93506020850135612f2e8161359a565b925060408501359150606085013567ffffffffffffffff811115612f5157600080fd5b8501601f81018713612f6257600080fd5b612f7187823560208401612d7c565b91505092959194509250565b60008060408385031215612f9057600080fd5b8235612f9b8161359a565b91506020830135612eb1816135af565b60008060408385031215612fbe57600080fd5b8235612fc98161359a565b946020939093013593505050565b60008060408385031215612fea57600080fd5b823567ffffffffffffffff81111561300157600080fd5b8301601f8101851361301257600080fd5b80356020613022612df5836133f0565b80838252828201915082850189848660051b880101111561304257600080fd5b600095505b8486101561306e57803561305a8161359a565b835260019590950194918301918301613047565b5098969091013596505050505050565b60006020828403121561309057600080fd5b813567ffffffffffffffff8111156130a757600080fd5b611e4f84828501612dd4565b600080604083850312156130c657600080fd5b823567ffffffffffffffff8111156130dd57600080fd5b6130e985828601612dd4565b925050602083013560ff81168114612eb157600080fd5b60006020828403121561311257600080fd5b8151612014816135af565b60006020828403121561312f57600080fd5b8135612014816135bd565b60006020828403121561314c57600080fd5b8151612014816135bd565b60006020828403121561316957600080fd5b813567ffffffffffffffff81111561318057600080fd5b611e4f84828501612e46565b60006020828403121561319e57600080fd5b5035919050565b6000602082840312156131b757600080fd5b5051919050565b600080604083850312156131d157600080fd5b82359150602083013567ffffffffffffffff8111156131ef57600080fd5b6131fb85828601612e46565b9150509250929050565b6000815180845261321d816020860160208601613476565b601f01601f19169290920160200192915050565b60008351613243818460208801613476565b835190830190613257818360208801613476565b01949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061329390830184613205565b9695505050505050565b6020815260006120146020830184613205565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b604051601f8201601f1916810167ffffffffffffffff811182821017156133e8576133e8613584565b604052919050565b600067ffffffffffffffff82111561340a5761340a613584565b5060051b60200190565b600082198211156134275761342761352c565b500190565b60008261343b5761343b613542565b500490565b600081600019048311821515161561345a5761345a61352c565b500290565b6000828210156134715761347161352c565b500390565b60005b83811015613491578181015183820152602001613479565b838111156119655750506000910152565b600181811c908216806134b657607f821691505b602082108114156134d757634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156134f1576134f161352c565b5060010190565b600060ff821660ff81141561350f5761350f61352c565b60010192915050565b60008261352757613527613542565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610d9857600080fd5b8015158114610d9857600080fd5b6001600160e01b031981168114610d9857600080fdfea2646970667358221220aab8db5314e9976a4438fe5a6142cf35f710838522da13098530f82c6558c0de64736f6c63430008070033000000000000000000000000fa898efdb91e35bd311c45b9b955f742b6719aa20000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000004066313831343039313261623036316665363135313965383735366339613834653137666366343838366633303864323664393237366436366534386638636662
Deployed Bytecode
0x6080604052600436106102975760003560e01c80637d655d191161015a578063b6f42861116100c1578063e45090c81161007a578063e45090c81461078b578063e6ec0339146107ab578063e985e9c5146107c0578063f19e75d414610809578063f2fde38b14610829578063fe4583191461084957600080fd5b8063b6f42861146106ec578063b88d4fde14610701578063befd7b8114610721578063c6ab67a314610741578063c87b56dd14610756578063cf580ec61461077657600080fd5b80639df7c798116101135780639df7c7981461062e578063a22cb46514610664578063a40b447514610684578063a8be1b88146106a4578063a8f96ac0146106b9578063b570e315146106d957600080fd5b80637d655d19146105945780638456cb59146105b45780638ad433ac146105c95780638da5cb5b146105dc57806395d89b41146105ff57806399fb15d21461061457600080fd5b80633f4ba83a116101fe5780635c975abb116101b75780635c975abb146104f65780636352211e1461050e5780636817c76c1461052e5780636c0360eb1461054a57806370a082311461055f578063715018a61461057f57600080fd5b80633f4ba83a1461044157806342842e0e1461045657806342966c681461047657806349df728c146104965780634f6ccce7146104b657806355f804b3146104d657600080fd5b806318160ddd1161025057806318160ddd1461039857806323b872dd146103ad5780632b319691146103cd5780632f745c59146103ec57806336005dc11461040c5780633ccfd60b1461042c57600080fd5b806301ffc9a7146102a35780630480e58b146102d857806306fdde03146102fc578063081812fc1461031e578063095ea7b314610356578063162094c41461037857600080fd5b3661029e57005b600080fd5b3480156102af57600080fd5b506102c36102be36600461311d565b610869565b60405190151581526020015b60405180910390f35b3480156102e457600080fd5b506102ee6115ae81565b6040519081526020016102cf565b34801561030857600080fd5b5061031161087a565b6040516102cf919061329d565b34801561032a57600080fd5b5061033e61033936600461318c565b61090c565b6040516001600160a01b0390911681526020016102cf565b34801561036257600080fd5b50610376610371366004612fab565b610999565b005b34801561038457600080fd5b506103766103933660046131be565b610aaf565b3480156103a457600080fd5b506008546102ee565b3480156103b957600080fd5b506103766103c8366004612ebc565b610aed565b3480156103d957600080fd5b506018546102c390610100900460ff1681565b3480156103f857600080fd5b506102ee610407366004612fab565b610b1f565b34801561041857600080fd5b506102ee61042736600461318c565b610bb5565b34801561043857600080fd5b50610376610c48565b34801561044d57600080fd5b50610376610cce565b34801561046257600080fd5b50610376610471366004612ebc565b610d06565b34801561048257600080fd5b5061037661049136600461318c565b610d21565b3480156104a257600080fd5b506103766104b1366004612e66565b610d9b565b3480156104c257600080fd5b506102ee6104d136600461318c565b610ee3565b3480156104e257600080fd5b506103766104f1366004613157565b610f76565b34801561050257600080fd5b50600b5460ff166102c3565b34801561051a57600080fd5b5061033e61052936600461318c565b610fb9565b34801561053a57600080fd5b506102ee6702c68af0bb14000081565b34801561055657600080fd5b50610311611030565b34801561056b57600080fd5b506102ee61057a366004612e66565b6110be565b34801561058b57600080fd5b50610376611145565b3480156105a057600080fd5b506103766105af36600461307e565b61117f565b3480156105c057600080fd5b506103766113ed565b6103766105d736600461318c565b611425565b3480156105e857600080fd5b50600b5461010090046001600160a01b031661033e565b34801561060b57600080fd5b506103116115db565b34801561062057600080fd5b506018546102c39060ff1681565b34801561063a57600080fd5b506102ee610649366004612e66565b6001600160a01b031660009081526016602052604090205490565b34801561067057600080fd5b5061037661067f366004612f7d565b6115ea565b34801561069057600080fd5b5060105461033e906001600160a01b031681565b3480156106b057600080fd5b506103766116af565b3480156106c557600080fd5b506018546102c39062010000900460ff1681565b6103766106e736600461318c565b6116fe565b3480156106f857600080fd5b506103766118ef565b34801561070d57600080fd5b5061037661071c366004612efd565b611933565b34801561072d57600080fd5b5061037661073c366004612fd7565b61196b565b34801561074d57600080fd5b50610311611a13565b34801561076257600080fd5b5061031161077136600461318c565b611a20565b34801561078257600080fd5b506102ee600581565b34801561079757600080fd5b506102ee6107a636600461318c565b611a2b565b3480156107b757600080fd5b50610376611a42565b3480156107cc57600080fd5b506102c36107db366004612e83565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b34801561081557600080fd5b5061037661082436600461318c565b611a8f565b34801561083557600080fd5b50610376610844366004612e66565b611ae9565b34801561085557600080fd5b506103766108643660046130b3565b611b87565b600061087482611c32565b92915050565b606060008054610889906134a2565b80601f01602080910402602001604051908101604052809291908181526020018280546108b5906134a2565b80156109025780601f106108d757610100808354040283529160200191610902565b820191906000526020600020905b8154815290600101906020018083116108e557829003601f168201915b5050505050905090565b600061091782611c57565b61097d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006109a482610fb9565b9050806001600160a01b0316836001600160a01b03161415610a125760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610974565b336001600160a01b0382161480610a2e5750610a2e81336107db565b610aa05760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610974565b610aaa8383611c74565b505050565b600b546001600160a01b03610100909104163314610adf5760405162461bcd60e51b815260040161097490613302565b610ae98282611ce2565b5050565b610af8335b82611d6d565b610b145760405162461bcd60e51b815260040161097490613337565b610aaa838383611e57565b6000610b2a836110be565b8210610b8c5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610974565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6000610bc082611c57565b610bff5760405162461bcd60e51b815260206004820152601060248201526f151bdad95b881b9bdd081b5a5b9d195960821b6044820152606401610974565b600082815260146020908152604080832054601590925290912054610874919060119060ff1660038110610c3557610c3561356e565b0154610c41919061345f565b6000612002565b600b546001600160a01b03610100909104163314610c785760405162461bcd60e51b815260040161097490613302565b610cad73ca52757875abdfc1dded370828dfc2be2d4d53c46064610c9e30316002613440565b610ca8919061342c565b61201b565b610ccc73a7ab7a265f274fa664187698932d3cabb851023d303161201b565b565b600b546001600160a01b03610100909104163314610cfe5760405162461bcd60e51b815260040161097490613302565b610ccc612135565b610aaa83838360405180602001604052806000815250611933565b610d2a33610af2565b610d8f5760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b6064820152608401610974565b610d98816121c8565b50565b600b546001600160a01b03610100909104163314610dcb5760405162461bcd60e51b815260040161097490613302565b6001600160a01b038116610dde57600080fd5b6001600160a01b03811663a9059cbb336040516370a0823160e01b81523060048201526001600160a01b038516906370a082319060240160206040518083038186803b158015610e2d57600080fd5b505afa158015610e41573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e6591906131a5565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b158015610eab57600080fd5b505af1158015610ebf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ae99190613100565b6000610eee60085490565b8210610f515760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610974565b60088281548110610f6457610f6461356e565b90600052602060002001549050919050565b600b546001600160a01b03610100909104163314610fa65760405162461bcd60e51b815260040161097490613302565b8051610ae990600e906020840190612cad565b6000818152600260205260408120546001600160a01b0316806108745760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610974565b600e805461103d906134a2565b80601f0160208091040260200160405190810160405280929190818152602001828054611069906134a2565b80156110b65780601f1061108b576101008083540402835291602001916110b6565b820191906000526020600020905b81548152906001019060200180831161109957829003601f168201915b505050505081565b60006001600160a01b0382166111295760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610974565b506001600160a01b031660009081526003602052604090205490565b600b546001600160a01b036101009091041633146111755760405162461bcd60e51b815260040161097490613302565b610ccc60006121d1565b6002600c5414156111a25760405162461bcd60e51b815260040161097490613388565b6002600c5560185460ff166111b657600080fd5b6014815111156112085760405162461bcd60e51b815260206004820152601860248201527f43616e206f6e6c7920636c61696d2032302070657220747800000000000000006044820152606401610974565b6000805b82518160ff16101561130d5761123e33848360ff16815181106112315761123161356e565b6020026020010151611d6d565b61127f5760405162461bcd60e51b8152602060048201526012602482015271151bdad95b881b9bdd08185c1c1c9bdd995960721b6044820152606401610974565b60006112a6848360ff16815181106112995761129961356e565b6020026020010151610bb5565b90506112b28184613414565b92508060146000868560ff16815181106112ce576112ce61356e565b6020026020010151815260200190815260200160002060008282546112f39190613414565b909155508291506113059050816134f8565b91505061120c565b50600081116113515760405162461bcd60e51b815260206004820152601060248201526f4e6f7468696e6720746f20636c61696d60801b6044820152606401610974565b6010546001600160a01b031663a9059cbb336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401602060405180830381600087803b1580156113ab57600080fd5b505af11580156113bf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113e39190613100565b50506001600c5550565b600b546001600160a01b0361010090910416331461141d5760405162461bcd60e51b815260040161097490613302565b610ccc61222b565b6002600c5414156114485760405162461bcd60e51b815260040161097490613388565b6002600c5560185462010000900460ff1661146257600080fd5b6115ae8161146f600d5490565b6114799190613414565b11156114b95760405162461bcd60e51b815260206004820152600f60248201526e139bdd08195b9bdd59da081b19599d608a1b6044820152606401610974565b336000908152601660205260409020546114d4906001613414565b81106115135760405162461bcd60e51b815260206004820152600e60248201526d4f76657220616c6c6f77616e636560901b6044820152606401610974565b60058111156115535760405162461bcd60e51b815260206004820152600c60248201526b09ac2f0406a40e0cae440e8f60a31b6044820152606401610974565b34611566826702c68af0bb140000613440565b11156115a55760405162461bcd60e51b815260206004820152600e60248201526d09cdee840cadcdeeaced0408aa8960931b6044820152606401610974565b33600090815260166020526040812080548392906115c490849061345f565b909155506115d39050816122a6565b506001600c55565b606060018054610889906134a2565b6001600160a01b0382163314156116435760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610974565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600b546001600160a01b036101009091041633146116df5760405162461bcd60e51b815260040161097490613302565b6018805462ff0000198116620100009182900460ff1615909102179055565b600b5460ff16156117445760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610974565b6002600c5414156117675760405162461bcd60e51b815260040161097490613388565b6002600c556115ae81611779600d5490565b6117839190613414565b11156117c35760405162461bcd60e51b815260206004820152600f60248201526e139bdd08195b9bdd59da081b19599d608a1b6044820152606401610974565b60058111156118035760405162461bcd60e51b815260206004820152600c60248201526b09ac2f0406a40e0cae440e8f60a31b6044820152606401610974565b34611816826702c68af0bb140000613440565b11156118555760405162461bcd60e51b815260206004820152600e60248201526d09cdee840cadcdeeaced0408aa8960931b6044820152606401610974565b601854610100900460ff16156118e65733600090815260176020526040902054600a90611883908390613414565b11156118c75760405162461bcd60e51b81526020600482015260136024820152724f6e6c7920313020706572206164647265737360681b6044820152606401610974565b33600090815260176020526040812080548392906115c4908490613414565b6115d3816122a6565b600b546001600160a01b0361010090910416331461191f5760405162461bcd60e51b815260040161097490613302565b6018805460ff19811660ff90911615179055565b61193d3383611d6d565b6119595760405162461bcd60e51b815260040161097490613337565b6119658484848461231e565b50505050565b600b546001600160a01b0361010090910416331461199b5760405162461bcd60e51b815260040161097490613302565b60005b82518160ff161015610aaa578160166000858460ff16815181106119c4576119c461356e565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060008282546119fb9190613414565b90915550819050611a0b816134f8565b91505061199e565b600f805461103d906134a2565b606061087482612351565b60118160038110611a3b57600080fd5b0154905081565b600b546001600160a01b03610100909104163314611a725760405162461bcd60e51b815260040161097490613302565b6018805461ff001981166101009182900460ff1615909102179055565b600b546001600160a01b03610100909104163314611abf5760405162461bcd60e51b815260040161097490613302565b600a81611acb600d5490565b611ad59190613414565b1115611ae057600080fd5b610d98816122a6565b600b546001600160a01b03610100909104163314611b195760405162461bcd60e51b815260040161097490613302565b6001600160a01b038116611b7e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610974565b610d98816121d1565b600b546001600160a01b03610100909104163314611bb75760405162461bcd60e51b815260040161097490613302565b60028160ff161115611bc857600080fd5b60005b82518160ff161015610aaa578160156000858460ff1681518110611bf157611bf161356e565b6020026020010151815260200190815260200160002060006101000a81548160ff021916908360ff1602179055508080611c2a906134f8565b915050611bcb565b60006001600160e01b0319821663780e9d6360e01b14806108745750610874826124b3565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611ca982610fb9565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b611ceb82611c57565b611d4e5760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b6064820152608401610974565b6000828152600a602090815260409091208251610aaa92840190612cad565b6000611d7882611c57565b611dd95760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610974565b6000611de483610fb9565b9050806001600160a01b0316846001600160a01b03161480611e1f5750836001600160a01b0316611e148461090c565b6001600160a01b0316145b80611e4f57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611e6a82610fb9565b6001600160a01b031614611ed25760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610974565b6001600160a01b038216611f345760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610974565b611f3f838383612503565b611f4a600082611c74565b6001600160a01b0383166000908152600360205260408120805460019290611f7390849061345f565b90915550506001600160a01b0382166000908152600360205260408120805460019290611fa1908490613414565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000818310156120125781612014565b825b9392505050565b303181111561206c5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610974565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146120b9576040519150601f19603f3d011682016040523d82523d6000602084013e6120be565b606091505b5050905080610aaa5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610974565b600b5460ff1661217e5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610974565b600b805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b610d988161250e565b600b80546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600b5460ff16156122715760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610974565b600b805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586121ab3390565b60005b818160ff161015610ae9576122c2600d80546001019055565b6122ce33600d5461254e565b600d5460408051338152602081019290925280517fd0a1daf61d49b134b9d7f7af3536e9a643ea4cacfca38b549c941029bce017a29281900390910190a180612316816134f8565b9150506122a9565b612329848484611e57565b61233584848484612568565b6119655760405162461bcd60e51b8152600401610974906132b0565b606061235c82611c57565b6123c25760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f72206044820152703737b732bc34b9ba32b73a103a37b5b2b760791b6064820152608401610974565b6000828152600a6020526040812080546123db906134a2565b80601f0160208091040260200160405190810160405280929190818152602001828054612407906134a2565b80156124545780601f1061242957610100808354040283529160200191612454565b820191906000526020600020905b81548152906001019060200180831161243757829003601f168201915b505050505090506000612465612675565b9050805160001415612478575092915050565b8151156124aa578082604051602001612492929190613231565b60405160208183030381529060405292505050919050565b611e4f84612684565b60006001600160e01b031982166380ac58cd60e01b14806124e457506001600160e01b03198216635b5e139f60e01b145b8061087457506301ffc9a760e01b6001600160e01b0319831614610874565b610aaa83838361274e565b61251781612806565b6000818152600a602052604090208054612530906134a2565b159050610d98576000818152600a60205260408120610d9891612d31565b610ae98282604051806020016040528060008152506128ad565b60006001600160a01b0384163b1561266a57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906125ac903390899088908890600401613260565b602060405180830381600087803b1580156125c657600080fd5b505af19250505080156125f6575060408051601f3d908101601f191682019092526125f39181019061313a565b60015b612650573d808015612624576040519150601f19603f3d011682016040523d82523d6000602084013e612629565b606091505b5080516126485760405162461bcd60e51b8152600401610974906132b0565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611e4f565b506001949350505050565b6060600e8054610889906134a2565b606061268f82611c57565b6126f35760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610974565b60006126fd612675565b9050600081511161271d5760405180602001604052806000815250612014565b80612727846128e0565b604051602001612738929190613231565b6040516020818303038152906040529392505050565b6001600160a01b0383166127a9576127a481600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6127cc565b816001600160a01b0316836001600160a01b0316146127cc576127cc83826129de565b6001600160a01b0382166127e357610aaa81612a7b565b826001600160a01b0316826001600160a01b031614610aaa57610aaa8282612b2a565b600061281182610fb9565b905061281f81600084612503565b61282a600083611c74565b6001600160a01b038116600090815260036020526040812080546001929061285390849061345f565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6128b78383612b6e565b6128c46000848484612568565b610aaa5760405162461bcd60e51b8152600401610974906132b0565b6060816129045750506040805180820190915260018152600360fc1b602082015290565b8160005b811561292e5780612918816134dd565b91506129279050600a8361342c565b9150612908565b60008167ffffffffffffffff81111561294957612949613584565b6040519080825280601f01601f191660200182016040528015612973576020820181803683370190505b5090505b8415611e4f5761298860018361345f565b9150612995600a86613518565b6129a0906030613414565b60f81b8183815181106129b5576129b561356e565b60200101906001600160f81b031916908160001a9053506129d7600a8661342c565b9450612977565b600060016129eb846110be565b6129f5919061345f565b600083815260076020526040902054909150808214612a48576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090612a8d9060019061345f565b60008381526009602052604081205460088054939450909284908110612ab557612ab561356e565b906000526020600020015490508060088381548110612ad657612ad661356e565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480612b0e57612b0e613558565b6001900381819060005260206000200160009055905550505050565b6000612b35836110be565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b038216612bc45760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610974565b612bcd81611c57565b15612c1a5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610974565b612c2660008383612503565b6001600160a01b0382166000908152600360205260408120805460019290612c4f908490613414565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054612cb9906134a2565b90600052602060002090601f016020900481019282612cdb5760008555612d21565b82601f10612cf457805160ff1916838001178555612d21565b82800160010185558215612d21579182015b82811115612d21578251825591602001919060010190612d06565b50612d2d929150612d67565b5090565b508054612d3d906134a2565b6000825580601f10612d4d575050565b601f016020900490600052602060002090810190610d9891905b5b80821115612d2d5760008155600101612d68565b600067ffffffffffffffff831115612d9657612d96613584565b612da9601f8401601f19166020016133bf565b9050828152838383011115612dbd57600080fd5b828260208301376000602084830101529392505050565b600082601f830112612de557600080fd5b81356020612dfa612df5836133f0565b6133bf565b80838252828201915082860187848660051b8901011115612e1a57600080fd5b60005b85811015612e3957813584529284019290840190600101612e1d565b5090979650505050505050565b600082601f830112612e5757600080fd5b61201483833560208501612d7c565b600060208284031215612e7857600080fd5b81356120148161359a565b60008060408385031215612e9657600080fd5b8235612ea18161359a565b91506020830135612eb18161359a565b809150509250929050565b600080600060608486031215612ed157600080fd5b8335612edc8161359a565b92506020840135612eec8161359a565b929592945050506040919091013590565b60008060008060808587031215612f1357600080fd5b8435612f1e8161359a565b93506020850135612f2e8161359a565b925060408501359150606085013567ffffffffffffffff811115612f5157600080fd5b8501601f81018713612f6257600080fd5b612f7187823560208401612d7c565b91505092959194509250565b60008060408385031215612f9057600080fd5b8235612f9b8161359a565b91506020830135612eb1816135af565b60008060408385031215612fbe57600080fd5b8235612fc98161359a565b946020939093013593505050565b60008060408385031215612fea57600080fd5b823567ffffffffffffffff81111561300157600080fd5b8301601f8101851361301257600080fd5b80356020613022612df5836133f0565b80838252828201915082850189848660051b880101111561304257600080fd5b600095505b8486101561306e57803561305a8161359a565b835260019590950194918301918301613047565b5098969091013596505050505050565b60006020828403121561309057600080fd5b813567ffffffffffffffff8111156130a757600080fd5b611e4f84828501612dd4565b600080604083850312156130c657600080fd5b823567ffffffffffffffff8111156130dd57600080fd5b6130e985828601612dd4565b925050602083013560ff81168114612eb157600080fd5b60006020828403121561311257600080fd5b8151612014816135af565b60006020828403121561312f57600080fd5b8135612014816135bd565b60006020828403121561314c57600080fd5b8151612014816135bd565b60006020828403121561316957600080fd5b813567ffffffffffffffff81111561318057600080fd5b611e4f84828501612e46565b60006020828403121561319e57600080fd5b5035919050565b6000602082840312156131b757600080fd5b5051919050565b600080604083850312156131d157600080fd5b82359150602083013567ffffffffffffffff8111156131ef57600080fd5b6131fb85828601612e46565b9150509250929050565b6000815180845261321d816020860160208601613476565b601f01601f19169290920160200192915050565b60008351613243818460208801613476565b835190830190613257818360208801613476565b01949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061329390830184613205565b9695505050505050565b6020815260006120146020830184613205565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b604051601f8201601f1916810167ffffffffffffffff811182821017156133e8576133e8613584565b604052919050565b600067ffffffffffffffff82111561340a5761340a613584565b5060051b60200190565b600082198211156134275761342761352c565b500190565b60008261343b5761343b613542565b500490565b600081600019048311821515161561345a5761345a61352c565b500290565b6000828210156134715761347161352c565b500390565b60005b83811015613491578181015183820152602001613479565b838111156119655750506000910152565b600181811c908216806134b657607f821691505b602082108114156134d757634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156134f1576134f161352c565b5060010190565b600060ff821660ff81141561350f5761350f61352c565b60010192915050565b60008261352757613527613542565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610d9857600080fd5b8015158114610d9857600080fd5b6001600160e01b031981168114610d9857600080fdfea2646970667358221220aab8db5314e9976a4438fe5a6142cf35f710838522da13098530f82c6558c0de64736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000fa898efdb91e35bd311c45b9b955f742b6719aa20000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000004066313831343039313261623036316665363135313965383735366339613834653137666366343838366633303864323664393237366436366534386638636662
-----Decoded View---------------
Arg [0] : _apeDaoContract (address): 0xFa898efdB91E35BD311c45b9B955F742b6719aa2
Arg [1] : _provenance (string): f18140912ab061fe61519e8756c9a84e17fcf4886f308d26d9276d66e48f8cfb
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 000000000000000000000000fa898efdb91e35bd311c45b9b955f742b6719aa2
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [3] : 6631383134303931326162303631666536313531396538373536633961383465
Arg [4] : 3137666366343838366633303864323664393237366436366534386638636662
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.