ERC-721
Overview
Max Total Supply
4,444 VALK
Holders
1,145
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 VALKLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
AngryApeArmyValkyrieCollection
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.4; import "erc721a/contracts/extensions/ERC721ABurnable.sol"; import "@massless.io/smart-contract-library/contracts/royalty/Royalty.sol"; import "@massless.io/smart-contract-library/contracts/interfaces/IContractURI.sol"; import "@massless.io/smart-contract-library/contracts/sale/SaleState.sol"; import "@massless.io/smart-contract-library/contracts/utils/AdminPermissionable.sol"; import "@massless.io/smart-contract-library/contracts/utils/PreAuthorisable.sol"; error MustMintMinimumOne(); error WalletMintLimit(uint256 limit); error NotOwnerOfToken(uint256 tokenId); error SoldOut(); error BadArrayLength(); error ArrayLengthMismatch(); error NoTrailingSlash(); contract AngryApeArmyValkyrieCollection is AdminPermissionable, PreAuthorisable, ERC721ABurnable, Royalty, SaleState { // Constants uint32 public constant MAX_SUPPLY = 4444; uint32 public constant MINT_SUPPLY = 1111; uint32 public constant MAX_MINT = 4; // ERC721 Metadata string private __baseURI = "https://api.massless.io/"; // Evo contract ERC721ABurnable private _evoContract; // Events event SetBaseURI(string _baseURI_); event MintBegins(); event MintEnds(); constructor( address admin_, address royaltyReceiver_, ERC721ABurnable evoContract_, address[] memory preAuthorised_ ) ERC721A("Angry Ape Army Valkyrie Collection", "VALK") PreAuthorisable(preAuthorised_) { _evoContract = evoContract_; _setRoyaltyReceiver(royaltyReceiver_); _setRoyaltyBasisPoints(500); _grantRole(DEFAULT_ADMIN_ROLE, _msgSender()); _grantRole(DEFAULT_ADMIN_ROLE, admin_); } modifier maxLimit(uint256 quantity_, uint256 supply_) { uint256 supplyLimit = supply_ - _totalMinted(); if (quantity_ == 0) revert MustMintMinimumOne(); if (quantity_ > supplyLimit) revert SoldOut(); _; } function mint(uint256[] calldata tokenIds_) external whenSaleIsActive("Mint") maxLimit(tokenIds_.length / 2, MINT_SUPPLY) { if (tokenIds_.length % 2 != 0 || tokenIds_.length == 0) revert BadArrayLength(); uint256 quantity = tokenIds_.length / 2; if (_numberMinted(_msgSender()) + quantity > MAX_MINT) revert WalletMintLimit(MAX_MINT); for (uint256 i; i < tokenIds_.length; i++) { if (_evoContract.ownerOf(tokenIds_[i]) != _msgSender()) revert NotOwnerOfToken(tokenIds_[i]); _evoContract.burn(tokenIds_[i]); } _safeMint(_msgSender(), quantity); } function airdrop(address[] calldata to_, uint32[] calldata quantity_) public onlyAdmin maxLimit(_sumArray(quantity_), MAX_SUPPLY) { if (to_.length != quantity_.length) revert ArrayLengthMismatch(); if (to_.length == 0) revert BadArrayLength(); for (uint256 i; i < to_.length; i++) { _safeMint(to_[i], quantity_[i]); } } function startMint() external onlyAdminOrModerator { _setSaleType("Mint"); _setSaleState(State.ACTIVE); emit MintBegins(); } function pauseMint() external onlyAdminOrModerator { _pause(); } function unpauseMint() external onlyAdminOrModerator { _unpause(); } function endMint() external onlyAdmin { if (getSaleState() != State.ACTIVE) revert NoActiveSale(); _setSaleState(State.FINISHED); emit MintEnds(); } // Contract & token metadata function setBaseURI(string memory baseURI_) public onlyAdminOrModerator { if (bytes(baseURI_)[bytes(baseURI_).length - 1] != bytes1("/")) revert NoTrailingSlash(); __baseURI = baseURI_; emit SetBaseURI(baseURI_); } function contractURI() public view returns (string memory) { return string(abi.encodePacked(__baseURI, "contract.json")); } function tokenURI(uint256 tokenId) public view override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); return string( abi.encodePacked( __baseURI, "token/", _toString(tokenId), ".json" ) ); } // Royalty details function setRoyaltyReceiver(address royaltyReceiver_) public onlyAdmin { _setRoyaltyReceiver(royaltyReceiver_); } function setRoyaltyBasisPoints(uint32 royaltyBasisPoints_) public onlyAdmin { _setRoyaltyBasisPoints(royaltyBasisPoints_); } // Access and Ownership function transferOwnership(address newOwner) public virtual override onlyOwner { require( newOwner != address(0), "Ownable: new owner is the zero address" ); _grantRole(DEFAULT_ADMIN_ROLE, newOwner); _revokeRole(DEFAULT_ADMIN_ROLE, owner()); _transferOwnership(newOwner); } function setAuthorizedAddress(address authorizedAddress_, bool authorized_) public onlyAdmin { _setAuthorizedAddress(authorizedAddress_, authorized_); } // Compulsory overrides function supportsInterface(bytes4 interfaceId) public view override(ERC721A, Royalty, AccessControl) returns (bool) { return interfaceId == type(IAccessControl).interfaceId || interfaceId == type(IERC2981).interfaceId || interfaceId == type(IContractURI).interfaceId || ERC721A.supportsInterface(interfaceId); } function isApprovedForAll(address _owner, address _operator) public view override returns (bool isOperator) { if (_isAuthorizedAddress(_operator)) { return true; } return ERC721A.isApprovedForAll(_owner, _operator); } function numberMinted(address owner) public view returns (uint256) { return _numberMinted(owner); } // Utils function _sumArray(uint32[] calldata array_) private pure returns (uint256 result) { for (uint256 i; i < array_.length; i++) { result += array_[i]; } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.0.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721ABurnable.sol'; import '../ERC721A.sol'; /** * @title ERC721A Burnable Token * @dev ERC721A Token that can be irreversibly burned (destroyed). */ abstract contract ERC721ABurnable is ERC721A, IERC721ABurnable { /** * @dev Burns `tokenId`. See {ERC721A-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) public virtual override { _burn(tokenId, true); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; import "./IERC2981.sol"; abstract contract Royalty is ERC165, IERC2981 { address public royaltyReceiver; uint32 public royaltyBasisPoints; // A integer representing 1/100th of 1% (fixed point with 100 = 1.00%) function _setRoyaltyReceiver(address receiver_) internal { royaltyReceiver = receiver_; } function _setRoyaltyBasisPoints(uint32 basisPoints_) internal { royaltyBasisPoints = basisPoints_; } function royaltyInfo(uint256, uint256 salePrice_) public view virtual override returns (address receiver, uint256 amount) { // All tokens return the same royalty amount to the receiver uint256 royaltyAmount = (salePrice_ * royaltyBasisPoints) / 10000; // Normalises in basis points reference. (10000 = 100.00%) return (royaltyReceiver, royaltyAmount); } // Compulsory overrides function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; /// /// @dev Interface for the proposed contractURI standard /// interface IContractURI is IERC165 { /// ERC165 bytes to add to interface array - set in parent contract /// implementing this standard /// /// bytes4(keccak256("contractURI()")) == 0xe8a3d485 /// @notice Called to return the URI pertaining to the contract metadata /// @return contractURI - the URI that pertaining to the contract metadata function contractURI() external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; error NoActiveSale(); error IncorrectSaleType(); error AllSalesFinished(); error NoPausedSale(); abstract contract SaleState { enum State { NOT_STARTED, // 0 ACTIVE, // 1 PAUSED, // 2 FINISHED // 3 } struct Sale{ State state; string saleType; } event StateOfSale(State _state); event TypeOfSale(string _saleType); event IsPaused(bool _paused); Sale private _sale = Sale({saleType: "None", state: State.NOT_STARTED}); modifier whenSaleIsActive(string memory saleType) { if (_sale.state != State.ACTIVE) revert NoActiveSale(); if (keccak256(bytes(_sale.saleType)) != keccak256(bytes(saleType))) revert IncorrectSaleType(); _; } function _setSaleState(State state) internal { if (_sale.state == State.FINISHED) revert AllSalesFinished(); _sale.state = state; if (state == State.FINISHED) { _sale.saleType = "Finished"; emit TypeOfSale(_sale.saleType); } emit StateOfSale(_sale.state); } function _setSaleType(string memory saleType) internal { if (_sale.state == State.FINISHED) revert AllSalesFinished(); _sale.saleType = saleType; _sale.state = State.NOT_STARTED; emit TypeOfSale(_sale.saleType); } function getSaleState() public view returns (State) { return _sale.state; } function getSaleType() public view returns (string memory) { return _sale.saleType; } function _pause() internal { if (_sale.state != State.ACTIVE) revert NoActiveSale(); _sale.state = State.PAUSED; emit IsPaused(true); } function _unpause() internal { if (_sale.state != State.PAUSED) revert NoPausedSale(); _sale.state = State.ACTIVE; emit IsPaused(false); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; abstract contract AdminPermissionable is AccessControl, Ownable { error NotAdminOrOwner(); error NotAdminOrModerator(); error ZeroAdminAddress(); bytes32 public constant MODERATOR_ROLE = keccak256("MODERATOR_ROLE"); modifier onlyAdmin() { if (!(owner() == _msgSender() || hasRole(DEFAULT_ADMIN_ROLE, _msgSender()))) revert NotAdminOrOwner(); _; } modifier onlyAdminOrModerator() { if (!(owner() == _msgSender() || hasRole(DEFAULT_ADMIN_ROLE, _msgSender()) || hasRole(MODERATOR_ROLE, _msgSender()))) revert NotAdminOrModerator(); _; } modifier checkAdminAddress(address _address) { if (_address == address(0)){ revert ZeroAdminAddress(); } _; } function setAdminPermission(address _address) external onlyAdmin checkAdminAddress(_address) { _grantRole(DEFAULT_ADMIN_ROLE, _address); } function removeAdminPermission(address _address) external onlyAdmin checkAdminAddress(_address) { _revokeRole(DEFAULT_ADMIN_ROLE, _address); } }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.4; abstract contract PreAuthorisable { mapping(address => bool) private authorizedAddresses; constructor(address[] memory _preAuthorized) { for (uint256 i = 0; i < _preAuthorized.length; i++) { _setAuthorizedAddress(_preAuthorized[i], true); } } function _setAuthorizedAddress(address authorizedAddress, bool authorized) internal { authorizedAddresses[authorizedAddress] = authorized; } function _isAuthorizedAddress(address operator) internal view returns (bool) { return authorizedAddresses[operator]; } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.0.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import '../IERC721A.sol'; /** * @dev Interface of an ERC721ABurnable compliant contract. */ interface IERC721ABurnable is IERC721A { /** * @dev Burns `tokenId`. See {ERC721A-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) external; }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.0.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev ERC721 token receiver interface. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Mask of an entry in packed address data. uint256 private constant BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant BITMASK_NEXT_INITIALIZED = 1 << 225; // The tokenId of the next token to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See `_packedOwnershipOf` implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // 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; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see `_totalMinted`. */ function totalSupply() public view override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to `_startTokenId()` unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view returns (uint256) { return _burnCounter; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes of the XOR of // all function selectors in the interface. See: https://eips.ethereum.org/EIPS/eip-165 // e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)` return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> BITPOS_NUMBER_MINTED) & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> BITPOS_NUMBER_BURNED) & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> BITPOS_AUX); } /** * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; assembly { // Cast aux without masking. auxCasted := aux } packed = (packed & BITMASK_AUX_COMPLEMENT) | (auxCasted << BITPOS_AUX); _packedAddressData[owner] = packed; } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & BITMASK_BURNED == 0) { // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. // // We can directly compare the packed value. // If the address is zero, packed is zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> BITPOS_START_TIMESTAMP); ownership.burned = packed & BITMASK_BURNED != 0; } /** * Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @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) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @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 Casts the address to uint256 without masking. */ function _addressToUint256(address value) private pure returns (uint256 result) { assembly { result := value } } /** * @dev Casts the boolean to uint256 without branching. */ function _boolToUint256(bool value) private pure returns (uint256 result) { assembly { result := value } } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = address(uint160(_packedOwnershipOf(tokenId))); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSenderERC721A()) revert ApproveToCaller(); _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), 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 { _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 { _transfer(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @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`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & BITMASK_BURNED == 0; // and not burned. } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the balance and number minted. _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _addressToUint256(to) | (block.timestamp << BITPOS_START_TIMESTAMP) | (_boolToUint256(quantity == 1) << BITPOS_NEXT_INITIALIZED); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; if (to.code.length != 0) { do { emit Transfer(address(0), to, updatedIndex); if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (updatedIndex < end); // Reentrancy protection if (_currentIndex != startTokenId) revert(); } else { do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); } _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint(address to, uint256 quantity) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the balance and number minted. _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _addressToUint256(to) | (block.timestamp << BITPOS_START_TIMESTAMP) | (_boolToUint256(quantity == 1) << BITPOS_NEXT_INITIALIZED); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * 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 ) private { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); bool isApprovedOrOwner = (_msgSenderERC721A() == from || isApprovedForAll(from, _msgSenderERC721A()) || getApproved(tokenId) == _msgSenderERC721A()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. delete _tokenApprovals[tokenId]; // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _addressToUint256(to) | (block.timestamp << BITPOS_START_TIMESTAMP) | BITMASK_NEXT_INITIALIZED; // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); if (approvalCheck) { bool isApprovedOrOwner = (_msgSenderERC721A() == from || isApprovedForAll(from, _msgSenderERC721A()) || getApproved(tokenId) == _msgSenderERC721A()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. delete _tokenApprovals[tokenId]; // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _addressToUint256(from) | (block.timestamp << BITPOS_START_TIMESTAMP) | BITMASK_BURNED | BITMASK_NEXT_INITIALIZED; // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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 _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * 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, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function _toString(uint256 value) internal pure returns (string memory ptr) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), // but we allocate 128 bytes to keep the free memory pointer 32-byte word aliged. // We will need 1 32-byte word to store the length, // and 3 32-byte words to store a maximum of 78 digits. Total: 32 + 3 * 32 = 128. ptr := add(mload(0x40), 128) // Update the free memory pointer to allocate. mstore(0x40, ptr) // Cache the end of the memory to calculate the length later. let end := ptr // We write the string from the rightmost digit to the leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // Costs a bit more than early returning for the zero case, // but cheaper in terms of deployment and overall runtime costs. for { // Initialize and perform the first pass without check. let temp := value // Move the pointer 1 byte leftwards to point to an empty character slot. ptr := sub(ptr, 1) // Write the character to the pointer. 48 is the ASCII index of '0'. mstore8(ptr, add(48, mod(temp, 10))) temp := div(temp, 10) } temp { // Keep dividing `temp` until zero. temp := div(temp, 10) } { // Body of the for loop. ptr := sub(ptr, 1) mstore8(ptr, add(48, mod(temp, 10))) } let length := sub(end, ptr) // Move the pointer 32 bytes leftwards to make room for the length. ptr := sub(ptr, 32) // Store the length. mstore(ptr, length) } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.0.0 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of an ERC721A compliant contract. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * The caller cannot approve to the current owner. */ error ApprovalToCurrentOwner(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; } /** * @dev Returns the total amount of tokens stored by the contract. * * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens. */ function totalSupply() external view returns (uint256); // ============================== // 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); // ============================== // IERC721 // ============================== /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must 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 Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================== // IERC721Metadata // ============================== /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; /// /// @dev Interface for the NFT Royalty Standard /// interface IERC2981 is IERC165 { /// ERC165 bytes to add to interface array - set in parent contract /// implementing this standard /// /// bytes4(keccak256("royaltyInfo(uint256,uint256)")) == 0x2a55205a /// bytes4 private constant _INTERFACE_ID_ERC2981 = 0x2a55205a; /// _registerInterface(_INTERFACE_ID_ERC2981); /// @notice Called with the sale price to determine how much royalty // is owed and to whom. /// @param _tokenId - the NFT asset queried for royalty information /// @param _salePrice - the sale price of the NFT asset specified by _tokenId /// @return receiver - address of who should be sent the royalty payment /// @return royaltyAmount - the royalty payment amount for _salePrice function royaltyInfo(uint256 _tokenId, uint256 _salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"admin_","type":"address"},{"internalType":"address","name":"royaltyReceiver_","type":"address"},{"internalType":"contract ERC721ABurnable","name":"evoContract_","type":"address"},{"internalType":"address[]","name":"preAuthorised_","type":"address[]"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AllSalesFinished","type":"error"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"ArrayLengthMismatch","type":"error"},{"inputs":[],"name":"BadArrayLength","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"IncorrectSaleType","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"MustMintMinimumOne","type":"error"},{"inputs":[],"name":"NoActiveSale","type":"error"},{"inputs":[],"name":"NoPausedSale","type":"error"},{"inputs":[],"name":"NoTrailingSlash","type":"error"},{"inputs":[],"name":"NotAdminOrModerator","type":"error"},{"inputs":[],"name":"NotAdminOrOwner","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"NotOwnerOfToken","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"SoldOut","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"inputs":[{"internalType":"uint256","name":"limit","type":"uint256"}],"name":"WalletMintLimit","type":"error"},{"inputs":[],"name":"ZeroAdminAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"_paused","type":"bool"}],"name":"IsPaused","type":"event"},{"anonymous":false,"inputs":[],"name":"MintBegins","type":"event"},{"anonymous":false,"inputs":[],"name":"MintEnds","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"_baseURI_","type":"string"}],"name":"SetBaseURI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"enum SaleState.State","name":"_state","type":"uint8"}],"name":"StateOfSale","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":"string","name":"_saleType","type":"string"}],"name":"TypeOfSale","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_MINT","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_SUPPLY","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MODERATOR_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"to_","type":"address[]"},{"internalType":"uint32[]","name":"quantity_","type":"uint32[]"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSaleState","outputs":[{"internalType":"enum SaleState.State","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSaleType","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"isOperator","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds_","type":"uint256[]"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"numberMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pauseMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"removeAdminPermission","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"royaltyBasisPoints","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"salePrice_","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltyReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setAdminPermission","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":"address","name":"authorizedAddress_","type":"address"},{"internalType":"bool","name":"authorized_","type":"bool"}],"name":"setAuthorizedAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"royaltyBasisPoints_","type":"uint32"}],"name":"setRoyaltyBasisPoints","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"royaltyReceiver_","type":"address"}],"name":"setRoyaltyReceiver","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"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":"unpauseMint","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60006080908152610100604052600460c0818152634e6f6e6560e01b60e090815260a091909152600c805460ff19168155916200003f91600d9162000327565b50506040805180820190915260188082527f68747470733a2f2f6170692e6d6173736c6573732e696f2f00000000000000006020909201918252620000899250600e919062000327565b503480156200009757600080fd5b506040516200338938038062003389833981016040819052620000ba91620003df565b604051806060016040528060228152602001620033676022913960408051808201909152600481526356414c4b60e01b602082015282620000fb3362000209565b60005b81518110156200015857620001438282815181106200012d57634e487b7160e01b600052603260045260246000fd5b602002602001015160016200025b60201b60201c565b806200014f8162000532565b915050620000fe565b505081516200016f90600590602085019062000327565b5080516200018590600690602084019062000327565b5060006003555050600f80546001600160a01b0319166001600160a01b038416179055620001cf83600b80546001600160a01b0319166001600160a01b0392909216919091179055565b600b805463ffffffff60a01b1916607d60a21b179055620001f260003362000286565b620001ff60008562000286565b5050505062000589565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03919091166000908152600260205260409020805460ff1916911515919091179055565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1662000323576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620002e23390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b8280546200033590620004f5565b90600052602060002090601f016020900481019282620003595760008555620003a4565b82601f106200037457805160ff1916838001178555620003a4565b82800160010185558215620003a4579182015b82811115620003a457825182559160200191906001019062000387565b50620003b2929150620003b6565b5090565b5b80821115620003b25760008155600101620003b7565b8051620003da8162000570565b919050565b60008060008060808587031215620003f5578384fd5b8451620004028162000570565b80945050602080860151620004178162000570565b60408701519094506200042a8162000570565b60608701519093506001600160401b038082111562000447578384fd5b818801915088601f8301126200045b578384fd5b8151818111156200047057620004706200055a565b8060051b604051601f19603f830116810181811085821117156200049857620004986200055a565b604052828152858101935084860182860187018d1015620004b7578788fd5b8795505b83861015620004e457620004cf81620003cd565b855260019590950194938601938601620004bb565b50989b979a50959850505050505050565b600181811c908216806200050a57607f821691505b602082108114156200052c57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156200055357634e487b7160e01b81526011600452602481fd5b5060010190565b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146200058657600080fd5b50565b612dce80620005996000396000f3fe608060405234801561001057600080fd5b50600436106102955760003560e01c80636352211e11610167578063b88d4fde116100ce578063dc33e68111610087578063dc33e681146105b5578063e8a3d485146105c8578063e985e9c5146105d0578063f0292a03146105e3578063f2fde38b146105eb578063f8e93ef9146105fe57600080fd5b8063b88d4fde14610559578063bdbd20a51461056c578063c87b56dd1461057f578063cd85cdb514610592578063d1e812a31461059a578063d547741f146105a257600080fd5b806391d148541161012057806391d148541461050757806395d89b411461051a5780639dfbcde8146105225780639fbc87131461052b578063a217fddf1461053e578063a22cb4651461054657600080fd5b80636352211e146104a057806370a08231146104b3578063715018a6146104c6578063797669c9146104ce5780638da5cb5b146104e35780638dc251e3146104f457600080fd5b806325bdb2a81161020b578063404a1f37116101c4578063404a1f371461042a57806342260b5d1461043d57806342842e0e1461045457806342966c681461046757806355f804b31461047a5780635c6fd90b1461048d57600080fd5b806325bdb2a8146103995780632a55205a146103ac5780632be09561146103de5780632f2ff15d146103e657806332cb6b0c146103f957806336568abe1461041757600080fd5b80631351cf511161025d5780631351cf511461031f57806318160ddd146103325780631a8bd2da146103485780631cf015c61461035057806323b872dd14610363578063248a9ca31461037657600080fd5b8063017043a51461029a57806301ffc9a7146102a457806306fdde03146102cc578063081812fc146102e1578063095ea7b31461030c575b600080fd5b6102a2610611565b005b6102b76102b236600461282f565b6106c7565b60405190151581526020015b60405180910390f35b6102d4610728565b6040516102c39190612b48565b6102f46102ef3660046127f3565b6107ba565b6040516001600160a01b0390911681526020016102c3565b6102a261031a36600461271f565b6107fe565b6102a261032d3660046126ee565b6108d1565b600454600354035b6040519081526020016102c3565b6102a2610939565b6102a261035e3660046128ce565b61099d565b6102a2610371366004612631565b6109fd565b61033a6103843660046127f3565b60009081526020819052604090206001015490565b600c5460ff166040516102c39190612b20565b6103bf6103ba3660046128ad565b610a0d565b604080516001600160a01b0390931683526020830191909152016102c3565b6102a2610a55565b6102a26103f436600461280b565b610b09565b61040261115c81565b60405163ffffffff90911681526020016102c3565b6102a261042536600461280b565b610b2f565b6102a26104383660046125c1565b610bae565b600b5461040290600160a01b900463ffffffff1681565b6102a2610462366004612631565b610c1d565b6102a26104753660046127f3565b610c38565b6102a2610488366004612867565b610c43565b6102a261049b3660046125c1565b610d4c565b6102f46104ae3660046127f3565b610dbb565b61033a6104c13660046125c1565b610dc6565b6102a2610e15565b61033a600080516020612d5983398151915281565b6001546001600160a01b03166102f4565b6102a26105023660046125c1565b610e79565b6102b761051536600461280b565b610ed3565b6102d4610efc565b61040261045781565b600b546102f4906001600160a01b031681565b61033a600081565b6102a26105543660046126ee565b610f0b565b6102a2610567366004612671565b610fa1565b6102a261057a36600461274a565b610feb565b6102d461058d3660046127f3565b611167565b6102a26111c1565b6102d4611223565b6102a26105b036600461280b565b611235565b61033a6105c33660046125c1565b61125b565b6102d4611286565b6102b76105de3660046125f9565b6112ae565b610402600481565b6102a26105f93660046125c1565b611308565b6102a261060c3660046127b3565b6113f7565b6001546001600160a01b03163314806106305750610630600033610ed3565b61064d57604051637bb62a2160e01b815260040160405180910390fd5b6001600c5460ff16600381111561067457634e487b7160e01b600052602160045260246000fd5b1461069257604051638ca755f560e01b815260040160405180910390fd5b61069c6003611748565b6040517faf24d3bccd7e329975f60c4d13b81252ff061649fb46d1c416c9b6a13100bff190600090a1565b60006001600160e01b03198216637965db0b60e01b14806106f857506001600160e01b0319821663152a902d60e11b145b8061071357506001600160e01b0319821663e8a3d48560e01b145b80610722575061072282611889565b92915050565b60606005805461073790612c81565b80601f016020809104026020016040519081016040528092919081815260200182805461076390612c81565b80156107b05780601f10610785576101008083540402835291602001916107b0565b820191906000526020600020905b81548152906001019060200180831161079357829003601f168201915b5050505050905090565b60006107c5826118d7565b6107e2576040516333d1c03960e21b815260040160405180910390fd5b506000908152600960205260409020546001600160a01b031690565b6000610809826118ff565b9050806001600160a01b0316836001600160a01b0316141561083e5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216146108755761085881336112ae565b610875576040516367d9dca160e11b815260040160405180910390fd5b60008281526009602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6001546001600160a01b03163314806108f057506108f0600033610ed3565b61090d57604051637bb62a2160e01b815260040160405180910390fd5b6001600160a01b0382166000908152600260205260409020805460ff19168215151790555050565b5050565b6001546001600160a01b03163314806109585750610958600033610ed3565b806109765750610976600080516020612d5983398151915233610ed3565b6109935760405163c5cca88d60e01b815260040160405180910390fd5b61099b611960565b565b6001546001600160a01b03163314806109bc57506109bc600033610ed3565b6109d957604051637bb62a2160e01b815260040160405180910390fd5b600b805463ffffffff60a01b1916600160a01b63ffffffff84160217905550565b50565b610a088383836119e9565b505050565b600b546000908190819061271090610a3290600160a01b900463ffffffff1686612c08565b610a3c9190612bf4565b600b546001600160a01b031693509150505b9250929050565b6001546001600160a01b0316331480610a745750610a74600033610ed3565b80610a925750610a92600080516020612d5983398151915233610ed3565b610aaf5760405163c5cca88d60e01b815260040160405180910390fd5b610ad460405180604001604052806004815260200163135a5b9d60e21b815250611b7a565b610ade6001611748565b6040517f96266d6a53ec58aa3297367be80d53849d07d09d8560baf4c5c8fe89e2aada7590600090a1565b600082815260208190526040902060010154610b258133611c0f565b610a088383611c73565b6001600160a01b0381163314610ba45760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b6109358282611cf7565b6001546001600160a01b0316331480610bcd5750610bcd600033610ed3565b610bea57604051637bb62a2160e01b815260040160405180910390fd5b806001600160a01b038116610c1257604051633ef39b8160e01b815260040160405180910390fd5b610935600083611cf7565b610a0883838360405180602001604052806000815250610fa1565b6109fa816001611d5c565b6001546001600160a01b0316331480610c625750610c62600033610ed3565b80610c805750610c80600080516020612d5983398151915233610ed3565b610c9d5760405163c5cca88d60e01b815260040160405180910390fd5b8051602f60f81b908290610cb390600190612c27565b81518110610cd157634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b03191614610cfe5760405163a467f6f560e01b815260040160405180910390fd5b8051610d1190600e90602084019061246f565b507f23c8c9488efebfd474e85a7956de6f39b17c7ab88502d42a623db2d8e382bbaa81604051610d419190612b48565b60405180910390a150565b6001546001600160a01b0316331480610d6b5750610d6b600033610ed3565b610d8857604051637bb62a2160e01b815260040160405180910390fd5b806001600160a01b038116610db057604051633ef39b8160e01b815260040160405180910390fd5b610935600083611c73565b6000610722826118ff565b60006001600160a01b038216610def576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526008602052604090205467ffffffffffffffff1690565b6001546001600160a01b03163314610e6f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b9b565b61099b6000611e9f565b6001546001600160a01b0316331480610e985750610e98600033610ed3565b610eb557604051637bb62a2160e01b815260040160405180910390fd5b600b80546001600160a01b0319166001600160a01b03831617905550565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b60606006805461073790612c81565b6001600160a01b038216331415610f355760405163b06307db60e01b815260040160405180910390fd5b336000818152600a602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610fac8484846119e9565b6001600160a01b0383163b15610fe557610fc884848484611ef1565b610fe5576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6001546001600160a01b031633148061100a575061100a600033610ed3565b61102757604051637bb62a2160e01b815260040160405180910390fd5b6110318282611fe9565b61115c600061103f60035490565b6110499083612c27565b90508261106957604051633f44c9b160e11b815260040160405180910390fd5b8083111561108a576040516352df9fe560e01b815260040160405180910390fd5b8584146110aa5760405163512509d360e11b815260040160405180910390fd5b856110c857604051633296c17360e01b815260040160405180910390fd5b60005b8681101561115d5761114b8888838181106110f657634e487b7160e01b600052603260045260246000fd5b905060200201602081019061110b91906125c1565b87878481811061112b57634e487b7160e01b600052603260045260246000fd5b905060200201602081019061114091906128ce565b63ffffffff16612055565b8061115581612cbc565b9150506110cb565b5050505050505050565b6060611172826118d7565b61118f57604051630a14c4b560e41b815260040160405180910390fd5b600e61119a8361206f565b6040516020016111ab929190612a25565b6040516020818303038152906040529050919050565b6001546001600160a01b03163314806111e057506111e0600033610ed3565b806111fe57506111fe600080516020612d5983398151915233610ed3565b61121b5760405163c5cca88d60e01b815260040160405180910390fd5b61099b6120be565b6060600c600101805461073790612c81565b6000828152602081905260409020600101546112518133611c0f565b610a088383611cf7565b6001600160a01b0381166000908152600860205260408082205467ffffffffffffffff911c16610722565b6060600e60405160200161129a91906129fc565b604051602081830303815290604052905090565b6001600160a01b03811660009081526002602052604081205460ff16156112d757506001610722565b6001600160a01b038084166000908152600a602090815260408083209386168352929052205460ff165b9392505050565b6001546001600160a01b031633146113625760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b9b565b6001600160a01b0381166113c75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b9b565b6113d2600082611c73565b6113ee60006113e96001546001600160a01b031690565b611cf7565b6109fa81611e9f565b604080518082019091526004815263135a5b9d60e21b60208201526001600c5460ff16600381111561143957634e487b7160e01b600052602160045260246000fd5b1461145757604051638ca755f560e01b815260040160405180910390fd5b8051602082012060405161146d90600d9061298d565b60405180910390201461149357604051630a761c7560e31b815260040160405180910390fd5b61149e600283612bf4565b61045760006114ac60035490565b6114b69083612c27565b9050826114d657604051633f44c9b160e11b815260040160405180910390fd5b808311156114f7576040516352df9fe560e01b815260040160405180910390fd5b611502600286612cd7565b15158061150d575084155b1561152b57604051633296c17360e01b815260040160405180910390fd5b6000611538600287612bf4565b905060048161156a336001600160a01b03166000908152600860205260409081902054901c67ffffffffffffffff1690565b6115749190612bdc565b111561159557604051633d234c3760e21b8152600481810152602401610b9b565b60005b8681101561173457600f5433906001600160a01b0316636352211e8a8a858181106115d357634e487b7160e01b600052603260045260246000fd5b905060200201356040518263ffffffff1660e01b81526004016115f891815260200190565b60206040518083038186803b15801561161057600080fd5b505afa158015611624573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061164891906125dd565b6001600160a01b0316146116995787878281811061167657634e487b7160e01b600052603260045260246000fd5b90506020020135604051633b94a19960e01b8152600401610b9b91815260200190565b600f546001600160a01b03166342966c688989848181106116ca57634e487b7160e01b600052603260045260246000fd5b905060200201356040518263ffffffff1660e01b81526004016116ef91815260200190565b600060405180830381600087803b15801561170957600080fd5b505af115801561171d573d6000803e3d6000fd5b50505050808061172c90612cbc565b915050611598565b5061173f3382612055565b50505050505050565b6003600c5460ff16600381111561176f57634e487b7160e01b600052602160045260246000fd5b141561178e57604051630ddc900960e11b815260040160405180910390fd5b600c805482919060ff191660018360038111156117bb57634e487b7160e01b600052602160045260246000fd5b021790555060038160038111156117e257634e487b7160e01b600052602160045260246000fd5b14156118525760408051808201909152600880825267119a5b9a5cda195960c21b602090920191825261181791600d9161246f565b506040517f73c24a7893680131e7c50fcccddb220f15bfc9f6968bef4235b6cc59940491249061184990600d90612b5b565b60405180910390a15b600c546040517f115b0a20885b9271082b68a739b15a23986a94c5e2807b824f9ad7dd918f8aeb91610d419160ff90911690612b20565b60006301ffc9a760e01b6001600160e01b0319831614806118ba57506380ac58cd60e01b6001600160e01b03198316145b806107225750506001600160e01b031916635b5e139f60e01b1490565b600060035482108015610722575050600090815260076020526040902054600160e01b161590565b60008160035481101561194757600081815260076020526040902054600160e01b8116611945575b80611301575060001901600081815260076020526040902054611927565b505b604051636f96cda160e11b815260040160405180910390fd5b6002600c5460ff16600381111561198757634e487b7160e01b600052602160045260246000fd5b146119a557604051635402932b60e01b815260040160405180910390fd5b600c805460ff19166001179055604051600081527fff4a5dbbab6b1963d10f5edd139f33a7987ecb3c4f65969be77ddba28d946594906020015b60405180910390a1565b60006119f4826118ff565b9050836001600160a01b0316816001600160a01b031614611a275760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480611a455750611a4585336112ae565b80611a60575033611a55846107ba565b6001600160a01b0316145b905080611a8057604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038416611aa757604051633a954ecd60e21b815260040160405180910390fd5b600083815260096020908152604080832080546001600160a01b03191690556001600160a01b038881168452600883528184208054600019019055871683528083208054600101905585835260079091529020600160e11b4260a01b861781179091558216611b445760018301600081815260076020526040902054611b42576003548114611b425760008181526007602052604090208390555b505b82846001600160a01b0316866001600160a01b0316600080516020612d7983398151915260405160405180910390a45050505050565b6003600c5460ff166003811115611ba157634e487b7160e01b600052602160045260246000fd5b1415611bc057604051630ddc900960e11b815260040160405180910390fd5b8051611bd390600d90602084019061246f565b50600c805460ff191690556040517f73c24a7893680131e7c50fcccddb220f15bfc9f6968bef4235b6cc599404912490610d4190600d90612b5b565b611c198282610ed3565b61093557611c31816001600160a01b03166014612141565b611c3c836020612141565b604051602001611c4d929190612a6e565b60408051601f198184030181529082905262461bcd60e51b8252610b9b91600401612b48565b611c7d8282610ed3565b610935576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055611cb33390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b611d018282610ed3565b15610935576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000611d67836118ff565b9050808215611dcb576000336001600160a01b0383161480611d8e5750611d8e82336112ae565b80611da9575033611d9e866107ba565b6001600160a01b0316145b905080611dc957604051632ce44b5f60e11b815260040160405180910390fd5b505b600084815260096020908152604080832080546001600160a01b03191690556001600160a01b03841683526008825280832080546fffffffffffffffffffffffffffffffff01905586835260079091529020600360e01b4260a01b8317179055600160e11b8216611e6a5760018401600081815260076020526040902054611e68576003548114611e685760008181526007602052604090208390555b505b60405184906000906001600160a01b03841690600080516020612d79833981519152908390a450506004805460010190555050565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611f26903390899088908890600401612ae3565b602060405180830381600087803b158015611f4057600080fd5b505af1925050508015611f70575060408051601f3d908101601f19168201909252611f6d9181019061284b565b60015b611fcb573d808015611f9e576040519150601f19603f3d011682016040523d82523d6000602084013e611fa3565b606091505b508051611fc3576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6000805b8281101561204e5783838281811061201557634e487b7160e01b600052603260045260246000fd5b905060200201602081019061202a91906128ce565b61203a9063ffffffff1683612bdc565b91508061204681612cbc565b915050611fed565b5092915050565b610935828260405180602001604052806000815250612323565b604080516080810191829052607f0190826030600a8206018353600a90045b80156120ac57600183039250600a81066030018353600a900461208e565b50819003601f19909101908152919050565b6001600c5460ff1660038111156120e557634e487b7160e01b600052602160045260246000fd5b1461210357604051638ca755f560e01b815260040160405180910390fd5b600c805460ff19166002179055604051600181527fff4a5dbbab6b1963d10f5edd139f33a7987ecb3c4f65969be77ddba28d946594906020016119df565b60606000612150836002612c08565b61215b906002612bdc565b67ffffffffffffffff81111561218157634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156121ab576020820181803683370190505b509050600360fc1b816000815181106121d457634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061221157634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506000612235846002612c08565b612240906001612bdc565b90505b60018111156122d4576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061228257634e487b7160e01b600052603260045260246000fd5b1a60f81b8282815181106122a657634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c936122cd81612c6a565b9050612243565b5083156113015760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610b9b565b6003546001600160a01b03841661234c57604051622e076360e81b815260040160405180910390fd5b8261236a5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03841660008181526008602090815260408083208054680100000000000000018902019055848352600790915290204260a01b86176001861460e11b1790558190818501903b1561242d575b60405182906001600160a01b03881690600090600080516020612d79833981519152908290a46123f66000878480600101955087611ef1565b612413576040516368d2bf6b60e11b815260040160405180910390fd5b8082106123bd57826003541461242857600080fd5b612460565b5b6040516001830192906001600160a01b03881690600090600080516020612d79833981519152908290a480821061242e575b50600355610fe5600085838684565b82805461247b90612c81565b90600052602060002090601f01602090048101928261249d57600085556124e3565b82601f106124b657805160ff19168380011785556124e3565b828001600101855582156124e3579182015b828111156124e35782518255916020019190600101906124c8565b506124ef9291506124f3565b5090565b5b808211156124ef57600081556001016124f4565b600067ffffffffffffffff8084111561252357612523612d17565b604051601f8501601f19908116603f0116810190828211818310171561254b5761254b612d17565b8160405280935085815286868601111561256457600080fd5b858560208301376000602087830101525050509392505050565b60008083601f84011261258f578182fd5b50813567ffffffffffffffff8111156125a6578182fd5b6020830191508360208260051b8501011115610a4e57600080fd5b6000602082840312156125d2578081fd5b813561130181612d2d565b6000602082840312156125ee578081fd5b815161130181612d2d565b6000806040838503121561260b578081fd5b823561261681612d2d565b9150602083013561262681612d2d565b809150509250929050565b600080600060608486031215612645578081fd5b833561265081612d2d565b9250602084013561266081612d2d565b929592945050506040919091013590565b60008060008060808587031215612686578081fd5b843561269181612d2d565b935060208501356126a181612d2d565b925060408501359150606085013567ffffffffffffffff8111156126c3578182fd5b8501601f810187136126d3578182fd5b6126e287823560208401612508565b91505092959194509250565b60008060408385031215612700578182fd5b823561270b81612d2d565b915060208301358015158114612626578182fd5b60008060408385031215612731578182fd5b823561273c81612d2d565b946020939093013593505050565b6000806000806040858703121561275f578384fd5b843567ffffffffffffffff80821115612776578586fd5b6127828883890161257e565b9096509450602087013591508082111561279a578384fd5b506127a78782880161257e565b95989497509550505050565b600080602083850312156127c5578182fd5b823567ffffffffffffffff8111156127db578283fd5b6127e78582860161257e565b90969095509350505050565b600060208284031215612804578081fd5b5035919050565b6000806040838503121561281d578182fd5b82359150602083013561262681612d2d565b600060208284031215612840578081fd5b813561130181612d42565b60006020828403121561285c578081fd5b815161130181612d42565b600060208284031215612878578081fd5b813567ffffffffffffffff81111561288e578182fd5b8201601f8101841361289e578182fd5b611fe184823560208401612508565b600080604083850312156128bf578182fd5b50508035926020909101359150565b6000602082840312156128df578081fd5b813563ffffffff81168114611301578182fd5b6000815180845261290a816020860160208601612c3e565b601f01601f19169290920160200192915050565b6000815461292b81612c81565b60018281168015612943576001811461295457612983565b60ff19841687528287019450612983565b8560005260208060002060005b8581101561297a5781548a820152908401908201612961565b50505082870194505b5050505092915050565b600080835461299b81612c81565b600182811680156129b357600181146129c4576129f0565b60ff198416875282870194506129f0565b8786526020808720875b858110156129e75781548a8201529084019082016129ce565b50505082870194505b50929695505050505050565b6000612a08828461291e565b6c31b7b73a3930b1ba173539b7b760991b8152600d019392505050565b6000612a31828561291e565b65746f6b656e2f60d01b81528351612a50816006840160208801612c3e565b64173539b7b760d91b60069290910191820152600b01949350505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351612aa6816017850160208801612c3e565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351612ad7816028840160208801612c3e565b01602801949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612b16908301846128f2565b9695505050505050565b6020810160048310612b4257634e487b7160e01b600052602160045260246000fd5b91905290565b60208152600061130160208301846128f2565b60006020808352818454612b6e81612c81565b80848701526040600180841660008114612b8f5760018114612ba357612bce565b60ff19851689840152606089019550612bce565b898852868820885b85811015612bc65781548b8201860152908301908801612bab565b8a0184019650505b509398975050505050505050565b60008219821115612bef57612bef612ceb565b500190565b600082612c0357612c03612d01565b500490565b6000816000190483118215151615612c2257612c22612ceb565b500290565b600082821015612c3957612c39612ceb565b500390565b60005b83811015612c59578181015183820152602001612c41565b83811115610fe55750506000910152565b600081612c7957612c79612ceb565b506000190190565b600181811c90821680612c9557607f821691505b60208210811415612cb657634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612cd057612cd0612ceb565b5060010190565b600082612ce657612ce6612d01565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146109fa57600080fd5b6001600160e01b0319811681146109fa57600080fdfe71f3d55856e4058ed06ee057d79ada615f65cdf5f9ee88181b914225088f834fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa264697066735822122077c1c19241259ea82cf6c05715898a53f04140e05720065d1e6c93109387ca0b64736f6c63430008040033416e677279204170652041726d792056616c6b7972696520436f6c6c656374696f6e0000000000000000000000003984db1bee5b386f0211822a5bdf67fc6c7abc6600000000000000000000000079e5cd379f0d9c4e598f528e31f1a206b36d6c6400000000000000000000000074f1716a9f452dd36d945368d806cd491290b24000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102955760003560e01c80636352211e11610167578063b88d4fde116100ce578063dc33e68111610087578063dc33e681146105b5578063e8a3d485146105c8578063e985e9c5146105d0578063f0292a03146105e3578063f2fde38b146105eb578063f8e93ef9146105fe57600080fd5b8063b88d4fde14610559578063bdbd20a51461056c578063c87b56dd1461057f578063cd85cdb514610592578063d1e812a31461059a578063d547741f146105a257600080fd5b806391d148541161012057806391d148541461050757806395d89b411461051a5780639dfbcde8146105225780639fbc87131461052b578063a217fddf1461053e578063a22cb4651461054657600080fd5b80636352211e146104a057806370a08231146104b3578063715018a6146104c6578063797669c9146104ce5780638da5cb5b146104e35780638dc251e3146104f457600080fd5b806325bdb2a81161020b578063404a1f37116101c4578063404a1f371461042a57806342260b5d1461043d57806342842e0e1461045457806342966c681461046757806355f804b31461047a5780635c6fd90b1461048d57600080fd5b806325bdb2a8146103995780632a55205a146103ac5780632be09561146103de5780632f2ff15d146103e657806332cb6b0c146103f957806336568abe1461041757600080fd5b80631351cf511161025d5780631351cf511461031f57806318160ddd146103325780631a8bd2da146103485780631cf015c61461035057806323b872dd14610363578063248a9ca31461037657600080fd5b8063017043a51461029a57806301ffc9a7146102a457806306fdde03146102cc578063081812fc146102e1578063095ea7b31461030c575b600080fd5b6102a2610611565b005b6102b76102b236600461282f565b6106c7565b60405190151581526020015b60405180910390f35b6102d4610728565b6040516102c39190612b48565b6102f46102ef3660046127f3565b6107ba565b6040516001600160a01b0390911681526020016102c3565b6102a261031a36600461271f565b6107fe565b6102a261032d3660046126ee565b6108d1565b600454600354035b6040519081526020016102c3565b6102a2610939565b6102a261035e3660046128ce565b61099d565b6102a2610371366004612631565b6109fd565b61033a6103843660046127f3565b60009081526020819052604090206001015490565b600c5460ff166040516102c39190612b20565b6103bf6103ba3660046128ad565b610a0d565b604080516001600160a01b0390931683526020830191909152016102c3565b6102a2610a55565b6102a26103f436600461280b565b610b09565b61040261115c81565b60405163ffffffff90911681526020016102c3565b6102a261042536600461280b565b610b2f565b6102a26104383660046125c1565b610bae565b600b5461040290600160a01b900463ffffffff1681565b6102a2610462366004612631565b610c1d565b6102a26104753660046127f3565b610c38565b6102a2610488366004612867565b610c43565b6102a261049b3660046125c1565b610d4c565b6102f46104ae3660046127f3565b610dbb565b61033a6104c13660046125c1565b610dc6565b6102a2610e15565b61033a600080516020612d5983398151915281565b6001546001600160a01b03166102f4565b6102a26105023660046125c1565b610e79565b6102b761051536600461280b565b610ed3565b6102d4610efc565b61040261045781565b600b546102f4906001600160a01b031681565b61033a600081565b6102a26105543660046126ee565b610f0b565b6102a2610567366004612671565b610fa1565b6102a261057a36600461274a565b610feb565b6102d461058d3660046127f3565b611167565b6102a26111c1565b6102d4611223565b6102a26105b036600461280b565b611235565b61033a6105c33660046125c1565b61125b565b6102d4611286565b6102b76105de3660046125f9565b6112ae565b610402600481565b6102a26105f93660046125c1565b611308565b6102a261060c3660046127b3565b6113f7565b6001546001600160a01b03163314806106305750610630600033610ed3565b61064d57604051637bb62a2160e01b815260040160405180910390fd5b6001600c5460ff16600381111561067457634e487b7160e01b600052602160045260246000fd5b1461069257604051638ca755f560e01b815260040160405180910390fd5b61069c6003611748565b6040517faf24d3bccd7e329975f60c4d13b81252ff061649fb46d1c416c9b6a13100bff190600090a1565b60006001600160e01b03198216637965db0b60e01b14806106f857506001600160e01b0319821663152a902d60e11b145b8061071357506001600160e01b0319821663e8a3d48560e01b145b80610722575061072282611889565b92915050565b60606005805461073790612c81565b80601f016020809104026020016040519081016040528092919081815260200182805461076390612c81565b80156107b05780601f10610785576101008083540402835291602001916107b0565b820191906000526020600020905b81548152906001019060200180831161079357829003601f168201915b5050505050905090565b60006107c5826118d7565b6107e2576040516333d1c03960e21b815260040160405180910390fd5b506000908152600960205260409020546001600160a01b031690565b6000610809826118ff565b9050806001600160a01b0316836001600160a01b0316141561083e5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216146108755761085881336112ae565b610875576040516367d9dca160e11b815260040160405180910390fd5b60008281526009602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6001546001600160a01b03163314806108f057506108f0600033610ed3565b61090d57604051637bb62a2160e01b815260040160405180910390fd5b6001600160a01b0382166000908152600260205260409020805460ff19168215151790555050565b5050565b6001546001600160a01b03163314806109585750610958600033610ed3565b806109765750610976600080516020612d5983398151915233610ed3565b6109935760405163c5cca88d60e01b815260040160405180910390fd5b61099b611960565b565b6001546001600160a01b03163314806109bc57506109bc600033610ed3565b6109d957604051637bb62a2160e01b815260040160405180910390fd5b600b805463ffffffff60a01b1916600160a01b63ffffffff84160217905550565b50565b610a088383836119e9565b505050565b600b546000908190819061271090610a3290600160a01b900463ffffffff1686612c08565b610a3c9190612bf4565b600b546001600160a01b031693509150505b9250929050565b6001546001600160a01b0316331480610a745750610a74600033610ed3565b80610a925750610a92600080516020612d5983398151915233610ed3565b610aaf5760405163c5cca88d60e01b815260040160405180910390fd5b610ad460405180604001604052806004815260200163135a5b9d60e21b815250611b7a565b610ade6001611748565b6040517f96266d6a53ec58aa3297367be80d53849d07d09d8560baf4c5c8fe89e2aada7590600090a1565b600082815260208190526040902060010154610b258133611c0f565b610a088383611c73565b6001600160a01b0381163314610ba45760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b6109358282611cf7565b6001546001600160a01b0316331480610bcd5750610bcd600033610ed3565b610bea57604051637bb62a2160e01b815260040160405180910390fd5b806001600160a01b038116610c1257604051633ef39b8160e01b815260040160405180910390fd5b610935600083611cf7565b610a0883838360405180602001604052806000815250610fa1565b6109fa816001611d5c565b6001546001600160a01b0316331480610c625750610c62600033610ed3565b80610c805750610c80600080516020612d5983398151915233610ed3565b610c9d5760405163c5cca88d60e01b815260040160405180910390fd5b8051602f60f81b908290610cb390600190612c27565b81518110610cd157634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b03191614610cfe5760405163a467f6f560e01b815260040160405180910390fd5b8051610d1190600e90602084019061246f565b507f23c8c9488efebfd474e85a7956de6f39b17c7ab88502d42a623db2d8e382bbaa81604051610d419190612b48565b60405180910390a150565b6001546001600160a01b0316331480610d6b5750610d6b600033610ed3565b610d8857604051637bb62a2160e01b815260040160405180910390fd5b806001600160a01b038116610db057604051633ef39b8160e01b815260040160405180910390fd5b610935600083611c73565b6000610722826118ff565b60006001600160a01b038216610def576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526008602052604090205467ffffffffffffffff1690565b6001546001600160a01b03163314610e6f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b9b565b61099b6000611e9f565b6001546001600160a01b0316331480610e985750610e98600033610ed3565b610eb557604051637bb62a2160e01b815260040160405180910390fd5b600b80546001600160a01b0319166001600160a01b03831617905550565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b60606006805461073790612c81565b6001600160a01b038216331415610f355760405163b06307db60e01b815260040160405180910390fd5b336000818152600a602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610fac8484846119e9565b6001600160a01b0383163b15610fe557610fc884848484611ef1565b610fe5576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6001546001600160a01b031633148061100a575061100a600033610ed3565b61102757604051637bb62a2160e01b815260040160405180910390fd5b6110318282611fe9565b61115c600061103f60035490565b6110499083612c27565b90508261106957604051633f44c9b160e11b815260040160405180910390fd5b8083111561108a576040516352df9fe560e01b815260040160405180910390fd5b8584146110aa5760405163512509d360e11b815260040160405180910390fd5b856110c857604051633296c17360e01b815260040160405180910390fd5b60005b8681101561115d5761114b8888838181106110f657634e487b7160e01b600052603260045260246000fd5b905060200201602081019061110b91906125c1565b87878481811061112b57634e487b7160e01b600052603260045260246000fd5b905060200201602081019061114091906128ce565b63ffffffff16612055565b8061115581612cbc565b9150506110cb565b5050505050505050565b6060611172826118d7565b61118f57604051630a14c4b560e41b815260040160405180910390fd5b600e61119a8361206f565b6040516020016111ab929190612a25565b6040516020818303038152906040529050919050565b6001546001600160a01b03163314806111e057506111e0600033610ed3565b806111fe57506111fe600080516020612d5983398151915233610ed3565b61121b5760405163c5cca88d60e01b815260040160405180910390fd5b61099b6120be565b6060600c600101805461073790612c81565b6000828152602081905260409020600101546112518133611c0f565b610a088383611cf7565b6001600160a01b0381166000908152600860205260408082205467ffffffffffffffff911c16610722565b6060600e60405160200161129a91906129fc565b604051602081830303815290604052905090565b6001600160a01b03811660009081526002602052604081205460ff16156112d757506001610722565b6001600160a01b038084166000908152600a602090815260408083209386168352929052205460ff165b9392505050565b6001546001600160a01b031633146113625760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b9b565b6001600160a01b0381166113c75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b9b565b6113d2600082611c73565b6113ee60006113e96001546001600160a01b031690565b611cf7565b6109fa81611e9f565b604080518082019091526004815263135a5b9d60e21b60208201526001600c5460ff16600381111561143957634e487b7160e01b600052602160045260246000fd5b1461145757604051638ca755f560e01b815260040160405180910390fd5b8051602082012060405161146d90600d9061298d565b60405180910390201461149357604051630a761c7560e31b815260040160405180910390fd5b61149e600283612bf4565b61045760006114ac60035490565b6114b69083612c27565b9050826114d657604051633f44c9b160e11b815260040160405180910390fd5b808311156114f7576040516352df9fe560e01b815260040160405180910390fd5b611502600286612cd7565b15158061150d575084155b1561152b57604051633296c17360e01b815260040160405180910390fd5b6000611538600287612bf4565b905060048161156a336001600160a01b03166000908152600860205260409081902054901c67ffffffffffffffff1690565b6115749190612bdc565b111561159557604051633d234c3760e21b8152600481810152602401610b9b565b60005b8681101561173457600f5433906001600160a01b0316636352211e8a8a858181106115d357634e487b7160e01b600052603260045260246000fd5b905060200201356040518263ffffffff1660e01b81526004016115f891815260200190565b60206040518083038186803b15801561161057600080fd5b505afa158015611624573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061164891906125dd565b6001600160a01b0316146116995787878281811061167657634e487b7160e01b600052603260045260246000fd5b90506020020135604051633b94a19960e01b8152600401610b9b91815260200190565b600f546001600160a01b03166342966c688989848181106116ca57634e487b7160e01b600052603260045260246000fd5b905060200201356040518263ffffffff1660e01b81526004016116ef91815260200190565b600060405180830381600087803b15801561170957600080fd5b505af115801561171d573d6000803e3d6000fd5b50505050808061172c90612cbc565b915050611598565b5061173f3382612055565b50505050505050565b6003600c5460ff16600381111561176f57634e487b7160e01b600052602160045260246000fd5b141561178e57604051630ddc900960e11b815260040160405180910390fd5b600c805482919060ff191660018360038111156117bb57634e487b7160e01b600052602160045260246000fd5b021790555060038160038111156117e257634e487b7160e01b600052602160045260246000fd5b14156118525760408051808201909152600880825267119a5b9a5cda195960c21b602090920191825261181791600d9161246f565b506040517f73c24a7893680131e7c50fcccddb220f15bfc9f6968bef4235b6cc59940491249061184990600d90612b5b565b60405180910390a15b600c546040517f115b0a20885b9271082b68a739b15a23986a94c5e2807b824f9ad7dd918f8aeb91610d419160ff90911690612b20565b60006301ffc9a760e01b6001600160e01b0319831614806118ba57506380ac58cd60e01b6001600160e01b03198316145b806107225750506001600160e01b031916635b5e139f60e01b1490565b600060035482108015610722575050600090815260076020526040902054600160e01b161590565b60008160035481101561194757600081815260076020526040902054600160e01b8116611945575b80611301575060001901600081815260076020526040902054611927565b505b604051636f96cda160e11b815260040160405180910390fd5b6002600c5460ff16600381111561198757634e487b7160e01b600052602160045260246000fd5b146119a557604051635402932b60e01b815260040160405180910390fd5b600c805460ff19166001179055604051600081527fff4a5dbbab6b1963d10f5edd139f33a7987ecb3c4f65969be77ddba28d946594906020015b60405180910390a1565b60006119f4826118ff565b9050836001600160a01b0316816001600160a01b031614611a275760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480611a455750611a4585336112ae565b80611a60575033611a55846107ba565b6001600160a01b0316145b905080611a8057604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038416611aa757604051633a954ecd60e21b815260040160405180910390fd5b600083815260096020908152604080832080546001600160a01b03191690556001600160a01b038881168452600883528184208054600019019055871683528083208054600101905585835260079091529020600160e11b4260a01b861781179091558216611b445760018301600081815260076020526040902054611b42576003548114611b425760008181526007602052604090208390555b505b82846001600160a01b0316866001600160a01b0316600080516020612d7983398151915260405160405180910390a45050505050565b6003600c5460ff166003811115611ba157634e487b7160e01b600052602160045260246000fd5b1415611bc057604051630ddc900960e11b815260040160405180910390fd5b8051611bd390600d90602084019061246f565b50600c805460ff191690556040517f73c24a7893680131e7c50fcccddb220f15bfc9f6968bef4235b6cc599404912490610d4190600d90612b5b565b611c198282610ed3565b61093557611c31816001600160a01b03166014612141565b611c3c836020612141565b604051602001611c4d929190612a6e565b60408051601f198184030181529082905262461bcd60e51b8252610b9b91600401612b48565b611c7d8282610ed3565b610935576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055611cb33390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b611d018282610ed3565b15610935576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000611d67836118ff565b9050808215611dcb576000336001600160a01b0383161480611d8e5750611d8e82336112ae565b80611da9575033611d9e866107ba565b6001600160a01b0316145b905080611dc957604051632ce44b5f60e11b815260040160405180910390fd5b505b600084815260096020908152604080832080546001600160a01b03191690556001600160a01b03841683526008825280832080546fffffffffffffffffffffffffffffffff01905586835260079091529020600360e01b4260a01b8317179055600160e11b8216611e6a5760018401600081815260076020526040902054611e68576003548114611e685760008181526007602052604090208390555b505b60405184906000906001600160a01b03841690600080516020612d79833981519152908390a450506004805460010190555050565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611f26903390899088908890600401612ae3565b602060405180830381600087803b158015611f4057600080fd5b505af1925050508015611f70575060408051601f3d908101601f19168201909252611f6d9181019061284b565b60015b611fcb573d808015611f9e576040519150601f19603f3d011682016040523d82523d6000602084013e611fa3565b606091505b508051611fc3576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6000805b8281101561204e5783838281811061201557634e487b7160e01b600052603260045260246000fd5b905060200201602081019061202a91906128ce565b61203a9063ffffffff1683612bdc565b91508061204681612cbc565b915050611fed565b5092915050565b610935828260405180602001604052806000815250612323565b604080516080810191829052607f0190826030600a8206018353600a90045b80156120ac57600183039250600a81066030018353600a900461208e565b50819003601f19909101908152919050565b6001600c5460ff1660038111156120e557634e487b7160e01b600052602160045260246000fd5b1461210357604051638ca755f560e01b815260040160405180910390fd5b600c805460ff19166002179055604051600181527fff4a5dbbab6b1963d10f5edd139f33a7987ecb3c4f65969be77ddba28d946594906020016119df565b60606000612150836002612c08565b61215b906002612bdc565b67ffffffffffffffff81111561218157634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156121ab576020820181803683370190505b509050600360fc1b816000815181106121d457634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061221157634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506000612235846002612c08565b612240906001612bdc565b90505b60018111156122d4576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061228257634e487b7160e01b600052603260045260246000fd5b1a60f81b8282815181106122a657634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c936122cd81612c6a565b9050612243565b5083156113015760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610b9b565b6003546001600160a01b03841661234c57604051622e076360e81b815260040160405180910390fd5b8261236a5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03841660008181526008602090815260408083208054680100000000000000018902019055848352600790915290204260a01b86176001861460e11b1790558190818501903b1561242d575b60405182906001600160a01b03881690600090600080516020612d79833981519152908290a46123f66000878480600101955087611ef1565b612413576040516368d2bf6b60e11b815260040160405180910390fd5b8082106123bd57826003541461242857600080fd5b612460565b5b6040516001830192906001600160a01b03881690600090600080516020612d79833981519152908290a480821061242e575b50600355610fe5600085838684565b82805461247b90612c81565b90600052602060002090601f01602090048101928261249d57600085556124e3565b82601f106124b657805160ff19168380011785556124e3565b828001600101855582156124e3579182015b828111156124e35782518255916020019190600101906124c8565b506124ef9291506124f3565b5090565b5b808211156124ef57600081556001016124f4565b600067ffffffffffffffff8084111561252357612523612d17565b604051601f8501601f19908116603f0116810190828211818310171561254b5761254b612d17565b8160405280935085815286868601111561256457600080fd5b858560208301376000602087830101525050509392505050565b60008083601f84011261258f578182fd5b50813567ffffffffffffffff8111156125a6578182fd5b6020830191508360208260051b8501011115610a4e57600080fd5b6000602082840312156125d2578081fd5b813561130181612d2d565b6000602082840312156125ee578081fd5b815161130181612d2d565b6000806040838503121561260b578081fd5b823561261681612d2d565b9150602083013561262681612d2d565b809150509250929050565b600080600060608486031215612645578081fd5b833561265081612d2d565b9250602084013561266081612d2d565b929592945050506040919091013590565b60008060008060808587031215612686578081fd5b843561269181612d2d565b935060208501356126a181612d2d565b925060408501359150606085013567ffffffffffffffff8111156126c3578182fd5b8501601f810187136126d3578182fd5b6126e287823560208401612508565b91505092959194509250565b60008060408385031215612700578182fd5b823561270b81612d2d565b915060208301358015158114612626578182fd5b60008060408385031215612731578182fd5b823561273c81612d2d565b946020939093013593505050565b6000806000806040858703121561275f578384fd5b843567ffffffffffffffff80821115612776578586fd5b6127828883890161257e565b9096509450602087013591508082111561279a578384fd5b506127a78782880161257e565b95989497509550505050565b600080602083850312156127c5578182fd5b823567ffffffffffffffff8111156127db578283fd5b6127e78582860161257e565b90969095509350505050565b600060208284031215612804578081fd5b5035919050565b6000806040838503121561281d578182fd5b82359150602083013561262681612d2d565b600060208284031215612840578081fd5b813561130181612d42565b60006020828403121561285c578081fd5b815161130181612d42565b600060208284031215612878578081fd5b813567ffffffffffffffff81111561288e578182fd5b8201601f8101841361289e578182fd5b611fe184823560208401612508565b600080604083850312156128bf578182fd5b50508035926020909101359150565b6000602082840312156128df578081fd5b813563ffffffff81168114611301578182fd5b6000815180845261290a816020860160208601612c3e565b601f01601f19169290920160200192915050565b6000815461292b81612c81565b60018281168015612943576001811461295457612983565b60ff19841687528287019450612983565b8560005260208060002060005b8581101561297a5781548a820152908401908201612961565b50505082870194505b5050505092915050565b600080835461299b81612c81565b600182811680156129b357600181146129c4576129f0565b60ff198416875282870194506129f0565b8786526020808720875b858110156129e75781548a8201529084019082016129ce565b50505082870194505b50929695505050505050565b6000612a08828461291e565b6c31b7b73a3930b1ba173539b7b760991b8152600d019392505050565b6000612a31828561291e565b65746f6b656e2f60d01b81528351612a50816006840160208801612c3e565b64173539b7b760d91b60069290910191820152600b01949350505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351612aa6816017850160208801612c3e565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351612ad7816028840160208801612c3e565b01602801949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612b16908301846128f2565b9695505050505050565b6020810160048310612b4257634e487b7160e01b600052602160045260246000fd5b91905290565b60208152600061130160208301846128f2565b60006020808352818454612b6e81612c81565b80848701526040600180841660008114612b8f5760018114612ba357612bce565b60ff19851689840152606089019550612bce565b898852868820885b85811015612bc65781548b8201860152908301908801612bab565b8a0184019650505b509398975050505050505050565b60008219821115612bef57612bef612ceb565b500190565b600082612c0357612c03612d01565b500490565b6000816000190483118215151615612c2257612c22612ceb565b500290565b600082821015612c3957612c39612ceb565b500390565b60005b83811015612c59578181015183820152602001612c41565b83811115610fe55750506000910152565b600081612c7957612c79612ceb565b506000190190565b600181811c90821680612c9557607f821691505b60208210811415612cb657634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612cd057612cd0612ceb565b5060010190565b600082612ce657612ce6612d01565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146109fa57600080fd5b6001600160e01b0319811681146109fa57600080fdfe71f3d55856e4058ed06ee057d79ada615f65cdf5f9ee88181b914225088f834fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa264697066735822122077c1c19241259ea82cf6c05715898a53f04140e05720065d1e6c93109387ca0b64736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000003984db1bee5b386f0211822a5bdf67fc6c7abc6600000000000000000000000079e5cd379f0d9c4e598f528e31f1a206b36d6c6400000000000000000000000074f1716a9f452dd36d945368d806cd491290b24000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : admin_ (address): 0x3984DB1beE5b386f0211822A5Bdf67fc6c7abC66
Arg [1] : royaltyReceiver_ (address): 0x79e5CD379F0d9c4e598F528E31F1a206b36d6C64
Arg [2] : evoContract_ (address): 0x74F1716A9F452dD36d945368d806cD491290B240
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000003984db1bee5b386f0211822a5bdf67fc6c7abc66
Arg [1] : 00000000000000000000000079e5cd379f0d9c4e598f528e31f1a206b36d6c64
Arg [2] : 00000000000000000000000074f1716a9f452dd36d945368d806cd491290b240
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000000
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.