Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 7 from a total of 7 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Approval For... | 16194343 | 670 days ago | IN | 0 ETH | 0.00035893 | ||||
Transfer From | 15149843 | 823 days ago | IN | 0 ETH | 0.00148023 | ||||
Set Approval For... | 15014750 | 845 days ago | IN | 0 ETH | 0.00335394 | ||||
Transfer Ownersh... | 15014737 | 845 days ago | IN | 0 ETH | 0.00227281 | ||||
Set Approval For... | 15014636 | 845 days ago | IN | 0 ETH | 0.00701481 | ||||
Mint | 15014477 | 845 days ago | IN | 0.0004 ETH | 0.01549165 | ||||
Set Merkle Root | 15014474 | 845 days ago | IN | 0 ETH | 0.00248464 |
Loading...
Loading
Contract Name:
ShopXReserveNFT
Compiler Version
v0.8.13+commit.abaa5c0e
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.13; import "erc721a/contracts/ERC721A.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "./helpers/ERC2981ContractWideRoyalties.sol"; import "./helpers/IShopXReserveNFT.sol"; contract ShopXReserveNFT is ERC721A, Ownable, ERC2981ContractWideRoyalties, AccessControl, Pausable { bytes32 public merkleRoot; address public factory; mapping(address => uint256) private claimed; string private brand; // Brand Name // ERC721 string private baseURI;// Include '/' at the end. ex) www.shopx.co/nft/ uint256 public maxSupply; // Maximum supply of NFT uint256 public mintPrice; // Price in ETH required to mint NFTs (in wei) uint256 public mintLimitPerWallet; // EIP2981 // value percentage (using 2 decimals: 10000 = 100.00%, 0 = 0.00%) // shopxFee value (between 0 and 10000) uint256 public royaltyValue; address public royaltyRecipient; // SHOPX Settings // value percentage (using 2 decimals: 10000 = 100.00%, 0 = 0.00%) // shopxFee value (between 0 and 10000) address public shopxAddress; uint256 public shopxFee; // Brand Settings address public beneficiaryAddress; // Access Control - Admin Roles bytes32 public constant SHOPX_ADMIN = keccak256("SHOPX"); bytes32 public constant BRAND_ADMIN = keccak256("BRAND"); bytes32 public constant SALE_ADMIN = keccak256("SALE"); // Events event NFTClaim(address indexed _claimant, uint256 indexed _tokenId, uint256 _mintPrice); event PriceChange(uint _mintPrice); event MerkleRootChange(bytes32 indexed merkleRoot); event ShopxAddressUpdate(address indexed _shopxAddress); event BeneficiaryAddressUpdate(address indexed _beneficiaryAddress); /* // Constructor() string memory _name, string memory _symbol, string memory _brand, // Initializer() // ERC721 string memory _baseURI, uint256 _maxSupply, uint256 _mintPrice, uint256 _mintLimitPerWallet, // EIP2981 //address _royaltyRecipient, //uint256 _royaltyValue, // SHOPX Settings //address _shopxAddress, //uint256 _shopxFee, // Brand Settings //address _beneficiaryAddress, // Grouping arguments to avoid stack too deep (too many arguments) error _uintArgs[0]: _maxSupply _uintArgs[1]: _mintPrice _uintArgs[2]: _mintLimitPerWallet _uintArgs[3]: _royaltyValue _addressArgs[0]: _royaltyRecipient _addressArgs[1]: _beneficiaryAddress */ constructor ( string memory _name, string memory _symbol, string memory _brand ) ERC721A(_name, _symbol) { brand = _brand; factory = msg.sender; } // called once by the factory at time of deployment function initialize( address _owner, string memory _baseURI, uint256[4] memory _uintArgs, address[2] memory _addressArgs, address[] memory _brandAdmins, address[] memory _saleAdmins, uint256 _shopxFee, address _shopxAddress, address[] memory _shopxAdmins ) external { require(msg.sender == factory, "ReserveNFT: FORBIDDEN"); // sufficient check transferOwnership(_owner); _setBaseURI(_baseURI); maxSupply = _uintArgs[0]; mintPrice = _uintArgs[1]; //in wei mintLimitPerWallet = _uintArgs[2]; // EIP2981 // value percentage (using 2 decimals: 10000 = 100.00%, 0 = 0.00%) // royalties value (between 0 and 10000) _setRoyalties(_addressArgs[0], _uintArgs[3]); royaltyValue = _uintArgs[3]; royaltyRecipient = _addressArgs[0]; // Brand Settings beneficiaryAddress = _addressArgs[1]; // SHOPX Settings // value percentage (using 2 decimals: 10000 = 100.00%, 0 = 0.00%) // shopxFee value (between 0 and 10000) shopxFee = _shopxFee; shopxAddress = _shopxAddress; // Access Control - Roles // _setRoleAdmin(bytes32 role, bytes32 adminRole): Sets adminRole as role's admin role. _setRoleAdmin(SHOPX_ADMIN, SHOPX_ADMIN); _setRoleAdmin(BRAND_ADMIN, BRAND_ADMIN); _setRoleAdmin(SALE_ADMIN, SALE_ADMIN); for (uint i = 0; i < _shopxAdmins.length; i++) { _setupRole(SHOPX_ADMIN, _shopxAdmins[i]); } for (uint i = 0; i < _brandAdmins.length; i++) { _setupRole(BRAND_ADMIN, _brandAdmins[i]); } for (uint i = 0; i < _saleAdmins.length; i++) { _setupRole(SALE_ADMIN, _saleAdmins[i]); } _pause(); // initializes in paused state. setMerkleRoot() or unpause() will unpause the contract. } /** * @notice Fails on calls with no `msg.data` but with `msg.value` */ receive() external payable { revert("Bad Call: ETH should be sent to mint() function."); } // ----------------------------------------------------------------------- // SETTERS // ----------------------------------------------------------------------- function updateShopxAddress (address _shopxAddress) onlyRole(SHOPX_ADMIN) external { require(_shopxAddress != address(0), "ReserveX: address zero is not a valid shopxAddress"); shopxAddress = _shopxAddress; emit ShopxAddressUpdate(shopxAddress); } function updateBeneficiaryAddress (address _beneficiaryAddress) onlyRole(BRAND_ADMIN) external { require(_beneficiaryAddress != address(0), "ReserveX: address zero is not a valid beneficiaryAddress"); beneficiaryAddress = _beneficiaryAddress; emit BeneficiaryAddressUpdate(beneficiaryAddress); } /** * @dev Sets the merkle root. * @param _merkleRoot The merkle root to set. */ //addToAllowList function setMerkleRoot(bytes32 _merkleRoot) external onlyRole(SALE_ADMIN) { // Enable this will make setMerkleRoot() only callable if the root is not yet set. // require(merkleRoot == bytes32(0), "ReserveNFT: Merkle root already set"); merkleRoot = _merkleRoot; emit MerkleRootChange(_merkleRoot); _unpause(); } function setMintPrice(uint256 _mintPrice) onlyRole(SALE_ADMIN) external { mintPrice = _mintPrice; emit PriceChange(_mintPrice); } // Grand and Revoke Admin Roles function addAdmin(bytes32 _role, address _address) onlyRole(_role) external { grantRole(_role, _address); } function removeAdmin(bytes32 _role, address _address) onlyRole(_role) external { revokeRole(_role, _address); } /** * @dev function to set the base URI for all token IDs. It is * automatically added as a prefix to the value returned in {tokenURI}, * or to the token ID if {tokenURI} is empty. */ function setBaseURI(string memory _baseURI) onlyRole(SALE_ADMIN) external { _setBaseURI(_baseURI); } function pause() onlyRole(SALE_ADMIN) external { _pause(); } function unpause() onlyRole(SALE_ADMIN) external { _unpause(); } // ----------------------------------------------------------------------- // GETTERS // ----------------------------------------------------------------------- /** * @dev Returns the number of NFTs that has been claimed by an address so far. * @param _address The address to check. */ function getClaimed(address _address) public view returns (uint256) { return claimed[_address]; } /** * @dev Returns the balance of the fund */ function getBalance() public view returns(uint) { return address(this).balance; } function exists(uint256 tokenId) public view returns (bool) { return _exists(tokenId); } /** * @dev Returns the name of brand */ function getBrand() public view returns(string memory) { return brand; } /** * @dev Returns the base URI set via {_setBaseURI}. This will be * automatically added as a prefix in {tokenURI} to each token's URI, or * to the token ID if no specific URI is set for that token ID. */ function getBaseURI() public view returns (string memory) { return _baseURI(); } /** * @dev totalMintedSupply():Returns the total tokens minted so far. * 1 is always subtracted from the Counter since it tracks the next available tokenId. * * @dev Note. totalSupply() is the count of valid NFTs tracked by this contract, where each one of * them has an assigned and queryable owner not equal to the zero address * totalSupply(): NFTs minted so far - NFTs burned so far (totalCirculatingSupply) * ref: https://eips.ethereum.org/EIPS/eip-721 * See {IERC721Enumerable-totalSupply} */ function totalMintedSupply() public view returns (uint256) { return _totalMinted(); } function getShopXFee() public view returns (uint256) { return shopxFee; } /** * @dev Gets info about line nft */ function getInfo() public view returns ( uint256 _balance, uint256 _maxSupply, uint256 _totalSupply, uint256 _totalMintedSupply, uint256 _mintPrice, uint256 _mintLimitPerWallet, bool _paused, address _royaltyRecipient, address _shopxAddress, address _beneficiaryAddress, uint256 _royaltyValue, uint256 _shopxFee ) { return ( getBalance(), maxSupply, totalSupply(), totalMintedSupply(), mintPrice, mintLimitPerWallet, paused(), royaltyRecipient, shopxAddress, beneficiaryAddress, royaltyValue, shopxFee ); } // ----------------------------------------------------------------------- // Royalties // ----------------------------------------------------------------------- /// @inheritdoc ERC165 function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721A, ERC2981Base, AccessControl) returns (bool) { return ERC721A.supportsInterface(interfaceId) || ERC2981Base.supportsInterface(interfaceId) || AccessControl.supportsInterface(interfaceId); } /// @notice Allows to set the royalties on the contract /// @dev This function in a real contract should be protected with a onlyOwner (or equivalent) modifier /// @param recipient the royalties recipient function updateRoyaltyAddress(address recipient) onlyRole(BRAND_ADMIN) external { require(recipient != address(0), "ReserveX: address zero is not a valid royalty recipient"); _setRoyalties(recipient, royaltyValue); } // ----------------------------------------------------------------------- // NFT // ----------------------------------------------------------------------- /** * @dev Mints a token to the msg.sender. It consumes whitelisted supplies. */ function mint(bytes32[] calldata merkleProof, uint256 quantity) payable external whenNotPaused { require(totalSupply() + quantity <= maxSupply, "NotEnoughNFT: NFT supply not available"); require(claimed[msg.sender] + quantity <= mintLimitPerWallet, "ReserveNFT: NFTs already claimed."); require(msg.value == mintPrice * quantity, "WrongETHAmount: More or less than the required amount of ETH sent."); require (merkleRoot == bytes32(0) || MerkleProof.verify(merkleProof, merkleRoot, keccak256(abi.encodePacked(msg.sender))), "ReserveNFT: Invalid Proof. Valid proof required."); // Mark it claimed and send the NFT claimed[msg.sender] += quantity; // Mint _safeMint(msg.sender, quantity); for (uint i = 0; i < quantity; i++) { emit NFTClaim(msg.sender, _nextTokenId()-quantity+i, mintPrice); } // Fee payable(shopxAddress).transfer(this.getBalance()*shopxFee/10000); // Sweep payable(beneficiaryAddress).transfer(this.getBalance()); } /** * @dev Mints a token to an address with a tokenURI. * @param to address of the future owner of the token. */ function mintTo(address to, uint256 quantity) external whenNotPaused onlyRole(SALE_ADMIN) { require(totalSupply() + quantity <= maxSupply, "NotEnoughNFT: NFT supply not available"); // Mint _safeMint(to, quantity); } /** * @dev Burns `tokenId`. See {ERC721-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) external { _burn(tokenId, true); } // ----------------------------------------------------------------------- // Helpers // ----------------------------------------------------------------------- /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual override returns (uint256) { return 1; } /** * @dev function to set the base URI for all token IDs. It is * automatically added as a prefix to the value returned in {tokenURI}, * or to the token ID if {tokenURI} is empty. */ function _setBaseURI(string memory baseURI_) internal { baseURI = baseURI_; } /** * @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 override returns (string memory) { return baseURI; } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.1.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 bit position of `extraData` in packed ownership. uint256 private constant BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with `_mintERC2309`. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to `_mintERC2309` // is required to cause an overflow, which is unrealistic. uint256 private constant MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // 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` // - [232..255] `extraData` 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 auxiliary 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 auxiliary 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; // Cast `aux` with assembly to avoid redundant masking. assembly { 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; ownership.extraData = uint24(packed >> BITPOS_EXTRA_DATA); } /** * 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 Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, BITMASK_ADDRESS) // `owner | (block.timestamp << BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @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, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << BITPOS_NEXT_INITIALIZED`. result := shl(BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ownerOf(tokenId); 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-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 { transferFrom(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. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @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 for each mint. */ 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` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _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] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 tokenId = startTokenId; uint256 end = startTokenId + quantity; do { emit Transfer(address(0), to, tokenId++); } while (tokenId < end); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _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] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { mapping(uint256 => address) storage tokenApprovalsPtr = _tokenApprovals; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId]`. assembly { // Compute the slot. mstore(0x00, tokenId) mstore(0x20, tokenApprovalsPtr.slot) approvedAddressSlot := keccak256(0x00, 0x40) // Load the slot's value from storage. approvedAddress := sload(approvedAddressSlot) } } /** * @dev Returns whether the `approvedAddress` is equals to `from` or `msgSender`. */ function _isOwnerOrApproved( address approvedAddress, address from, address msgSender ) private pure returns (bool result) { assembly { // Mask `from` to the lower 160 bits, in case the upper bits somehow aren't clean. from := and(from, BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, BITMASK_ADDRESS) // `msgSender == from || msgSender == approvedAddress`. result := or(eq(msgSender, from), eq(msgSender, approvedAddress)) } } /** * @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 transferFrom( address from, address to, uint256 tokenId ) public virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isOwnerOrApproved(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // 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] = _packOwnershipData( to, BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // 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)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isOwnerOrApproved(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // 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] = _packOwnershipData( from, (BITMASK_BURNED | BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // 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 Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << BITPOS_EXTRA_DATA; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * 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 _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @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 pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = keccak256(abi.encodePacked(computedHash, proofElement)); } else { // Hash(current element of the proof + current computed hash) computedHash = keccak256(abi.encodePacked(proofElement, computedHash)); } } // Check if the computed hash (root) is equal to the provided root return computedHash == root; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { function hasRole(bytes32 role, address account) external view returns (bool); function getRoleAdmin(bytes32 role) external view returns (bytes32); function grantRole(bytes32 role, address account) external; function revokeRole(bytes32 role, address account) external; function renounceRole(bytes32 role, address account) external; } /** * @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 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 {_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 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]{20}) is missing role (0x[0-9a-f]{32})$/ * * _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 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]{20}) is missing role (0x[0-9a-f]{32})$/ */ function _checkRole(bytes32 role, address account) internal view { 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 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 granted `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}. * ==== */ 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 { emit RoleAdminChanged(role, getRoleAdmin(role), adminRole); _roles[role].adminRole = adminRole; } function _grantRole(bytes32 role, address account) private { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } function _revokeRole(bytes32 role, address account) private { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import '@openzeppelin/contracts/utils/introspection/ERC165.sol'; import './ERC2981Base.sol'; /// @dev This is a contract used to add ERC2981 support to ERC721 and 1155 /// @dev This implementation has the same royalties for each and every tokens abstract contract ERC2981ContractWideRoyalties is ERC2981Base { RoyaltyInfo private _royalties; /// @dev Sets token royalties /// @param recipient recipient of the royalties /// @param value percentage (using 2 decimals - 10000 = 100, 0 = 0) function _setRoyalties(address recipient, uint256 value) internal { require(value <= 10000, 'ERC2981Royalties: Too high'); _royalties = RoyaltyInfo(recipient, uint24(value)); } /// @inheritdoc IERC2981Royalties function royaltyInfo(uint256, uint256 value) external view override returns (address receiver, uint256 royaltyAmount) { RoyaltyInfo memory royalties = _royalties; receiver = royalties.recipient; royaltyAmount = (value * royalties.amount) / 10000; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface IShopXReserveNFT { event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); event ApprovalForAll(address indexed owner, address indexed operator, bool approved); event BeneficiaryAddressUpdate(address indexed _beneficiaryAddress); event ETHReceive(address indexed _from, uint256 _amount); event MerkleRootChange(bytes32 indexed merkleRoot); event NFTClaim(address indexed _claimant, uint256 indexed _tokenId, uint256 mintPrice); event Paused(address account); event PriceChange(uint256 indexed _price, uint256 indexed _tokenId); event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); event ShopxAddressUpdate(address indexed _shopxAddress); event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); event Unpaused(address account); function BRAND_ADMIN() external view returns (bytes32); function DEFAULT_ADMIN_ROLE() external view returns (bytes32); function SALE_ADMIN() external view returns (bytes32); function SHOPX_ADMIN() external view returns (bytes32); function addAdmin(bytes32 _role, address _address) external; function approve(address to, uint256 tokenId) external; function balanceOf(address owner) external view returns (uint256); function burn(uint256 tokenId) external; function exists(uint256 tokenId) external view returns (bool); function factory() external view returns (address); function getApproved(uint256 tokenId) external view returns (address); function getBalance() external view returns (uint256); function getBaseURI() external view returns (string memory); function getBrand() external view returns (string memory); function getClaimed(address _address) external view returns (uint256); function getInfo() external view returns (uint256 _balance, uint256 _maxSupply, uint256 _totalSupply, uint256 _totalMintedSupply, uint256 _mintPrice, uint256 _mintLimitPerWallet, bool _paused, address _royaltyRecipient, address _shopxAddress, address _beneficiaryAddress, uint256 _royaltyValue, uint256 _shopxFee); function getRoleAdmin(bytes32 role) external view returns (bytes32); function getShopXFee() external view returns (uint256); function grantRole(bytes32 role, address account) external; function hasRole(bytes32 role, address account) external view returns (bool); function initialize(address _owner, string memory _baseURI, uint256[4] memory _uintArgs, address[2] memory _addressArgs, address[] memory _brandAdmins, address[] memory _saleAdmins, uint256 _shopxFee, address _shopxAddress, address[] memory _shopxAdmins) external; function isApprovedForAll(address owner, address operator) external view returns (bool); function merkleRoot() external view returns (bytes32); function mint(bytes32[] memory merkleProof) external payable; function mintTo(address to) external; function name() external view returns (string memory); function ownerOf(uint256 tokenId) external view returns (address); function pause() external; function paused() external view returns (bool); function removeAdmin(bytes32 _role, address _address) external; function renounceRole(bytes32 role, address account) external; function revokeRole(bytes32 role, address account) external; function royaltyInfo(uint256, uint256 value) external view returns (address receiver, uint256 royaltyAmount); function safeTransferFrom(address from, address to, uint256 tokenId) external; function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) external; function setApprovalForAll(address operator, bool approved) external; function setBaseURI(string memory _baseURI) external; function setMaxSupply(uint256 _maxSupply) external; function setMerkleRoot(bytes32 _merkleRoot) external; function setMintPrice(uint256 _mintPrice) external; function setTokenURI(uint256 tokenId, string memory _tokenURI) external; function supportsInterface(bytes4 interfaceId) external view returns (bool); function symbol() external view returns (string memory); function tokenByIndex(uint256 index) external view returns (uint256); function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); function tokenURI(uint256 tokenId) external view returns (string memory); function totalSupply() external view returns (uint256); function transferFrom(address from, address to, uint256 tokenId) external; function unpause() external; function updateBeneficiaryAddress(address _beneficiaryAddress) external; function updateRoyaltyAddress(address recipient) external; function updateShopxAddress(address _shopxAddress) external; receive() external payable; }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.1.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(); /** * 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(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); 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; // Arbitrary data similar to `startTimestamp` that can be set through `_extraData`. uint24 extraData; } /** * @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); // ============================== // IERC2309 // ============================== /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` (inclusive) is transferred from `from` to `to`, * as defined in the ERC2309 standard. See `_mintERC2309` for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import '@openzeppelin/contracts/utils/introspection/ERC165.sol'; import './IERC2981Royalties.sol'; /// @dev This is a contract used to add ERC2981 support to ERC721 and 1155 abstract contract ERC2981Base is ERC165, IERC2981Royalties { struct RoyaltyInfo { address recipient; uint24 amount; } /// @inheritdoc ERC165 function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC2981Royalties).interfaceId || super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /// @title IERC2981Royalties /// @dev Interface for the ERC2981 - Token Royalty standard interface IERC2981Royalties { /// @notice Called with the sale price to determine how much royalty // is owed and to whom. /// @param _tokenId - the NFT asset queried for royalty information /// @param _value - the sale price of the NFT asset specified by _tokenId /// @return _receiver - address of who should be sent the royalty payment /// @return _royaltyAmount - the royalty payment amount for value sale price function royaltyInfo(uint256 _tokenId, uint256 _value) external view returns (address _receiver, uint256 _royaltyAmount); }
{ "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":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_brand","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_beneficiaryAddress","type":"address"}],"name":"BeneficiaryAddressUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"MerkleRootChange","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_claimant","type":"address"},{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_mintPrice","type":"uint256"}],"name":"NFTClaim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_mintPrice","type":"uint256"}],"name":"PriceChange","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":true,"internalType":"address","name":"_shopxAddress","type":"address"}],"name":"ShopxAddressUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"BRAND_ADMIN","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SALE_ADMIN","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SHOPX_ADMIN","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_role","type":"bytes32"},{"internalType":"address","name":"_address","type":"address"}],"name":"addAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"beneficiaryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBaseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBrand","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getInfo","outputs":[{"internalType":"uint256","name":"_balance","type":"uint256"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"uint256","name":"_totalSupply","type":"uint256"},{"internalType":"uint256","name":"_totalMintedSupply","type":"uint256"},{"internalType":"uint256","name":"_mintPrice","type":"uint256"},{"internalType":"uint256","name":"_mintLimitPerWallet","type":"uint256"},{"internalType":"bool","name":"_paused","type":"bool"},{"internalType":"address","name":"_royaltyRecipient","type":"address"},{"internalType":"address","name":"_shopxAddress","type":"address"},{"internalType":"address","name":"_beneficiaryAddress","type":"address"},{"internalType":"uint256","name":"_royaltyValue","type":"uint256"},{"internalType":"uint256","name":"_shopxFee","type":"uint256"}],"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":"getShopXFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"string","name":"_baseURI","type":"string"},{"internalType":"uint256[4]","name":"_uintArgs","type":"uint256[4]"},{"internalType":"address[2]","name":"_addressArgs","type":"address[2]"},{"internalType":"address[]","name":"_brandAdmins","type":"address[]"},{"internalType":"address[]","name":"_saleAdmins","type":"address[]"},{"internalType":"uint256","name":"_shopxFee","type":"uint256"},{"internalType":"address","name":"_shopxAddress","type":"address"},{"internalType":"address[]","name":"_shopxAdmins","type":"address[]"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintLimitPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mintTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_role","type":"bytes32"},{"internalType":"address","name":"_address","type":"address"}],"name":"removeAdmin","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":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltyRecipient","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltyValue","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":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintPrice","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"shopxAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"shopxFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMintedSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_beneficiaryAddress","type":"address"}],"name":"updateBeneficiaryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"}],"name":"updateRoyaltyAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_shopxAddress","type":"address"}],"name":"updateShopxAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040516200376a3803806200376a833981016040819052620000349162000277565b8251839083906200004d90600290602085019062000104565b5080516200006390600390602084019062000104565b50506001600055506200007633620000b2565b600b805460ff1916905580516200009590600f90602084019062000104565b5050600d80546001600160a01b0319163317905550620003449050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001129062000308565b90600052602060002090601f01602090048101928262000136576000855562000181565b82601f106200015157805160ff191683800117855562000181565b8280016001018555821562000181579182015b828111156200018157825182559160200191906001019062000164565b506200018f92915062000193565b5090565b5b808211156200018f576000815560010162000194565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620001d257600080fd5b81516001600160401b0380821115620001ef57620001ef620001aa565b604051601f8301601f19908116603f011681019082821181831017156200021a576200021a620001aa565b816040528381526020925086838588010111156200023757600080fd5b600091505b838210156200025b57858201830151818301840152908201906200023c565b838211156200026d5760008385830101525b9695505050505050565b6000806000606084860312156200028d57600080fd5b83516001600160401b0380821115620002a557600080fd5b620002b387838801620001c0565b94506020860151915080821115620002ca57600080fd5b620002d887838801620001c0565b93506040860151915080821115620002ef57600080fd5b50620002fe86828701620001c0565b9150509250925092565b600181811c908216806200031d57607f821691505b6020821081036200033e57634e487b7160e01b600052602260045260246000fd5b50919050565b61341680620003546000396000f3fe60806040526004361061039b5760003560e01c806370a08231116101dc578063bd0d7b4e11610102578063d9c4870e116100a0578063eb46260e1161006f578063eb46260e14610b40578063f2fde38b14610b76578063f4a0a52814610b96578063fac1d50f14610bb657600080fd5b8063d9c4870e14610aa1578063e0f9b47914610ac1578063e8fa923314610ad7578063e985e9c514610af757600080fd5b8063cda9f323116100dc578063cda9f32314610a33578063d547741f14610a49578063d5abeb0114610a69578063d7124f4414610a7f57600080fd5b8063bd0d7b4e146109d1578063c45a0155146109f3578063c87b56dd14610a1357600080fd5b806391d148541161017a578063a22cb46511610149578063a22cb4651461095c578063a3946e261461097c578063a7bb9ea014610991578063b88d4fde146109b157600080fd5b806391d14854146108f257806395d89b41146109125780639a387ce614610927578063a217fddf1461094757600080fd5b80637cb64759116101b65780637cb647591461088a5780638456cb59146108aa57806388b49c21146108bf5780638da5cb5b146108d457600080fd5b806370a0823114610840578063714c539814610860578063715018a61461087557600080fd5b806342966c68116102c157806356c1da301161025f578063601e26031161022e578063601e2603146107d15780636352211e146107ea5780636419bcdb1461080a5780636817c76c1461082a57600080fd5b806356c1da30146107045780635a9b0b89146107245780635c975abb146107a35780635fc20588146107bb57600080fd5b80634c00de821161029b5780634c00de82146106845780634f558e79146106a4578063519a2044146106c457806355f804b3146106e457600080fd5b806342966c6814610631578063449a52f81461065157806345de0d9b1461067157600080fd5b806323b872dd116103395780632f2ff15d116103085780632f2ff15d146105bc57806336568abe146105dc5780633f4ba83a146105fc57806342842e0e1461061157600080fd5b806323b872dd14610517578063248a9ca3146105375780632a55205a146105675780632eb4a7ab146105a657600080fd5b8063095ea7b311610375578063095ea7b31461049a57806312065fe0146104bc578063123f8ad6146104d957806318160ddd146104f957600080fd5b806301ffc9a71461040b57806306fdde0314610440578063081812fc1461046257600080fd5b366104065760405162461bcd60e51b815260206004820152603060248201527f4261642043616c6c3a204554482073686f756c642062652073656e7420746f2060448201526f36b4b73a141490333ab731ba34b7b71760811b60648201526084015b60405180910390fd5b600080fd5b34801561041757600080fd5b5061042b610426366004612ab5565b610bd8565b60405190151581526020015b60405180910390f35b34801561044c57600080fd5b50610455610c07565b6040516104379190612b2a565b34801561046e57600080fd5b5061048261047d366004612b3d565b610c99565b6040516001600160a01b039091168152602001610437565b3480156104a657600080fd5b506104ba6104b5366004612b72565b610cdd565b005b3480156104c857600080fd5b50475b604051908152602001610437565b3480156104e557600080fd5b506104ba6104f4366004612dbc565b610d7d565b34801561050557600080fd5b506104cb600154600054036000190190565b34801561052357600080fd5b506104ba610532366004612ebc565b610f8a565b34801561054357600080fd5b506104cb610552366004612b3d565b6000908152600a602052604090206001015490565b34801561057357600080fd5b50610587610582366004612ef8565b61112c565b604080516001600160a01b039093168352602083019190915201610437565b3480156105b257600080fd5b506104cb600c5481565b3480156105c857600080fd5b506104ba6105d7366004612f1a565b611181565b3480156105e857600080fd5b506104ba6105f7366004612f1a565b6111ac565b34801561060857600080fd5b506104ba61122a565b34801561061d57600080fd5b506104ba61062c366004612ebc565b61124e565b34801561063d57600080fd5b506104ba61064c366004612b3d565b611269565b34801561065d57600080fd5b506104ba61066c366004612b72565b611274565b6104ba61067f366004612f46565b6112f7565b34801561069057600080fd5b50601554610482906001600160a01b031681565b3480156106b057600080fd5b5061042b6106bf366004612b3d565b61175b565b3480156106d057600080fd5b506104ba6106df366004612fc1565b611766565b3480156106f057600080fd5b506104ba6106ff366004612fdc565b611807565b34801561071057600080fd5b50601654610482906001600160a01b031681565b34801561073057600080fd5b50610739611829565b604080519c8d5260208d019b909b52998b019890985260608a0196909652608089019490945260a0880192909252151560c08701526001600160a01b0390811660e08701529081166101008601521661012084015261014083015261016082015261018001610437565b3480156107af57600080fd5b50600b5460ff1661042b565b3480156107c757600080fd5b506104cb60145481565b3480156107dd57600080fd5b50600054600019016104cb565b3480156107f657600080fd5b50610482610805366004612b3d565b6118d1565b34801561081657600080fd5b506104ba610825366004612f1a565b6118dc565b34801561083657600080fd5b506104cb60125481565b34801561084c57600080fd5b506104cb61085b366004612fc1565b6118f1565b34801561086c57600080fd5b50610455611940565b34801561088157600080fd5b506104ba61194a565b34801561089657600080fd5b506104ba6108a5366004612b3d565b6119b0565b3480156108b657600080fd5b506104ba611a01565b3480156108cb57600080fd5b506017546104cb565b3480156108e057600080fd5b506008546001600160a01b0316610482565b3480156108fe57600080fd5b5061042b61090d366004612f1a565b611a22565b34801561091e57600080fd5b50610455611a4d565b34801561093357600080fd5b506104ba610942366004612f1a565b611a5c565b34801561095357600080fd5b506104cb600081565b34801561096857600080fd5b506104ba610977366004613011565b611a71565b34801561098857600080fd5b50610455611b06565b34801561099d57600080fd5b506104ba6109ac366004612fc1565b611b15565b3480156109bd57600080fd5b506104ba6109cc36600461304d565b611bea565b3480156109dd57600080fd5b506104cb6000805160206133a183398151915281565b3480156109ff57600080fd5b50600d54610482906001600160a01b031681565b348015610a1f57600080fd5b50610455610a2e366004612b3d565b611c2e565b348015610a3f57600080fd5b506104cb60175481565b348015610a5557600080fd5b506104ba610a64366004612f1a565b611cb2565b348015610a7557600080fd5b506104cb60115481565b348015610a8b57600080fd5b506104cb60008051602061338183398151915281565b348015610aad57600080fd5b50601854610482906001600160a01b031681565b348015610acd57600080fd5b506104cb60135481565b348015610ae357600080fd5b506104ba610af2366004612fc1565b611cd8565b348015610b0357600080fd5b5061042b610b123660046130c9565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610b4c57600080fd5b506104cb610b5b366004612fc1565b6001600160a01b03166000908152600e602052604090205490565b348015610b8257600080fd5b506104ba610b91366004612fc1565b611db8565b348015610ba257600080fd5b506104ba610bb1366004612b3d565b611e80565b348015610bc257600080fd5b506104cb6000805160206133c183398151915281565b6000610be382611ed5565b80610bf25750610bf282611f23565b80610c015750610c0182611f58565b92915050565b606060028054610c16906130f3565b80601f0160208091040260200160405190810160405280929190818152602001828054610c42906130f3565b8015610c8f5780601f10610c6457610100808354040283529160200191610c8f565b820191906000526020600020905b815481529060010190602001808311610c7257829003601f168201915b5050505050905090565b6000610ca482611f7d565b610cc1576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610ce8826118d1565b9050336001600160a01b03821614610d2157610d048133610b12565b610d21576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600d546001600160a01b03163314610dcf5760405162461bcd60e51b81526020600482015260156024820152742932b9b2b93b32a7232a1d102327a92124a22222a760591b60448201526064016103fd565b610dd889611db8565b610de188611fb2565b86516011556020870151601255604087015160135585516060880151610e079190611fc5565b60608701516014558551601580546001600160a01b03199081166001600160a01b03938416179091556020880151601880548316918416919091179055601785905560168054909116918416919091179055610e7160008051602061338183398151915280612061565b610e896000805160206133a183398151915280612061565b610ea16000805160206133c183398151915280612061565b60005b8151811015610ef057610ede600080516020613381833981519152838381518110610ed157610ed161312d565b60200260200101516120b5565b80610ee881613159565b915050610ea4565b5060005b8551811015610f3357610f216000805160206133a1833981519152878381518110610ed157610ed161312d565b80610f2b81613159565b915050610ef4565b5060005b8451811015610f7657610f646000805160206133c1833981519152868381518110610ed157610ed161312d565b80610f6e81613159565b915050610f37565b50610f7f6120bf565b505050505050505050565b6000610f9582612134565b9050836001600160a01b0316816001600160a01b031614610fc85760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054610ff48187335b6001600160a01b039081169116811491141790565b61101f576110028633610b12565b61101f57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661104657604051633a954ecd60e21b815260040160405180910390fd5b801561105157600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b841690036110e3576001840160008181526004602052604081205490036110e15760005481146110e15760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b604080518082019091526009546001600160a01b038116808352600160a01b90910462ffffff166020830181905290916000916127109061116d9086613172565b6111779190613191565b9150509250929050565b6000828152600a602052604090206001015461119d81336121a3565b6111a78383612207565b505050565b6001600160a01b038116331461121c5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016103fd565b611226828261228d565b5050565b6000805160206133c183398151915261124381336121a3565b61124b6122f4565b50565b6111a783838360405180602001604052806000815250611bea565b61124b81600161236e565b600b5460ff16156112975760405162461bcd60e51b81526004016103fd906131b3565b6000805160206133c18339815191526112b081336121a3565b601154826112c5600154600054036000190190565b6112cf91906131dd565b11156112ed5760405162461bcd60e51b81526004016103fd906131f5565b6111a783836124b8565b600b5460ff161561131a5760405162461bcd60e51b81526004016103fd906131b3565b6011548161132f600154600054036000190190565b61133991906131dd565b11156113575760405162461bcd60e51b81526004016103fd906131f5565b601354336000908152600e60205260409020546113759083906131dd565b11156113cd5760405162461bcd60e51b815260206004820152602160248201527f526573657276654e46543a204e46547320616c726561647920636c61696d65646044820152601760f91b60648201526084016103fd565b806012546113db9190613172565b341461145a5760405162461bcd60e51b815260206004820152604260248201527f57726f6e67455448416d6f756e743a204d6f7265206f72206c6573732074686160448201527f6e2074686520726571756972656420616d6f756e74206f66204554482073656e6064820152613a1760f11b608482015260a4016103fd565b600c5415806114d957506114d983838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600c546040516bffffffffffffffffffffffff193360601b1660208201529092506034019050604051602081830303815290604052805190602001206124d2565b61153e5760405162461bcd60e51b815260206004820152603060248201527f526573657276654e46543a20496e76616c69642050726f6f662e2056616c696460448201526f10383937b7b3103932b8bab4b932b21760811b60648201526084016103fd565b336000908152600e60205260408120805483929061155d9084906131dd565b9091555061156d905033826124b8565b60005b818110156115e157808261158360005490565b61158d919061323b565b61159791906131dd565b60125460405190815233907fa8e193fb0a4b997168512a36a0e00a6dd16624597d196cea0001e98cbbf307969060200160405180910390a3806115d981613159565b915050611570565b50601660009054906101000a90046001600160a01b03166001600160a01b03166108fc612710601754306001600160a01b03166312065fe06040518163ffffffff1660e01b8152600401602060405180830381865afa158015611648573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061166c9190613252565b6116769190613172565b6116809190613191565b6040518115909202916000818181858888f193505050501580156116a8573d6000803e3d6000fd5b50601860009054906101000a90046001600160a01b03166001600160a01b03166108fc306001600160a01b03166312065fe06040518163ffffffff1660e01b8152600401602060405180830381865afa158015611709573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061172d9190613252565b6040518115909202916000818181858888f19350505050158015611755573d6000803e3d6000fd5b50505050565b6000610c0182611f7d565b6000805160206133a183398151915261177f81336121a3565b6001600160a01b0382166117fb5760405162461bcd60e51b815260206004820152603760248201527f52657365727665583a2061646472657373207a65726f206973206e6f7420612060448201527f76616c696420726f79616c747920726563697069656e7400000000000000000060648201526084016103fd565b61122682601454611fc5565b6000805160206133c183398151915261182081336121a3565b61122682611fb2565b600080808080808080808080804760115461184b600154600054036000190190565b60005460001901601254601354600b5460ff16601560009054906101000a90046001600160a01b0316601660009054906101000a90046001600160a01b0316601860009054906101000a90046001600160a01b03166014546017549b509b509b509b509b509b509b509b509b509b509b509b50909192939495969798999a9b565b905090565b6000610c0182612134565b816118e781336121a3565b6111a78383611181565b60006001600160a01b03821661191a576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b60606118cc612581565b6008546001600160a01b031633146119a45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103fd565b6119ae6000612590565b565b6000805160206133c18339815191526119c981336121a3565b600c82905560405182907fa703ba761b78e04c2d3a078b442e01dd5b5121fd24b0a6d1ab0452399b1c8ebd90600090a26112266122f4565b6000805160206133c1833981519152611a1a81336121a3565b61124b6120bf565b6000918252600a602090815260408084206001600160a01b0393909316845291905290205460ff1690565b606060038054610c16906130f3565b81611a6781336121a3565b6111a78383611cb2565b336001600160a01b03831603611a9a5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6060600f8054610c16906130f3565b600080516020613381833981519152611b2e81336121a3565b6001600160a01b038216611b9f5760405162461bcd60e51b815260206004820152603260248201527f52657365727665583a2061646472657373207a65726f206973206e6f7420612060448201527176616c69642073686f70784164647265737360701b60648201526084016103fd565b601680546001600160a01b0319166001600160a01b0384169081179091556040517f6145df3d17d9763eaeef0fd39c95673069047b54529085f282d56bafa2039ecc90600090a25050565b611bf5848484610f8a565b6001600160a01b0383163b1561175557611c11848484846125e2565b611755576040516368d2bf6b60e11b815260040160405180910390fd5b6060611c3982611f7d565b611c5657604051630a14c4b560e41b815260040160405180910390fd5b6000611c60612581565b90508051600003611c805760405180602001604052806000815250611cab565b80611c8a846126ce565b604051602001611c9b92919061326b565b6040516020818303038152906040525b9392505050565b6000828152600a6020526040902060010154611cce81336121a3565b6111a7838361228d565b6000805160206133a1833981519152611cf181336121a3565b6001600160a01b038216611d6d5760405162461bcd60e51b815260206004820152603860248201527f52657365727665583a2061646472657373207a65726f206973206e6f7420612060448201527f76616c69642062656e656669636961727941646472657373000000000000000060648201526084016103fd565b601880546001600160a01b0319166001600160a01b0384169081179091556040517f23a02b8a2e78b2df3757216a270ad6e776e83460801d3a0adfed347c6ff50f6990600090a25050565b6008546001600160a01b03163314611e125760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103fd565b6001600160a01b038116611e775760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103fd565b61124b81612590565b6000805160206133c1833981519152611e9981336121a3565b60128290556040518281527ff347ee99503bf19c028bd6b18f3c676e82a9bb5b2bb5225aebe0fd62fd6a0d199060200160405180910390a15050565b60006301ffc9a760e01b6001600160e01b031983161480611f0657506380ac58cd60e01b6001600160e01b03198316145b80610c015750506001600160e01b031916635b5e139f60e01b1490565b60006001600160e01b0319821663152a902d60e11b1480610c0157506301ffc9a760e01b6001600160e01b0319831614610c01565b60006001600160e01b03198216637965db0b60e01b1480610c015750610c0182611f23565b600081600111158015611f91575060005482105b8015610c01575050600090815260046020526040902054600160e01b161590565b8051611226906010906020840190612a06565b6127108111156120175760405162461bcd60e51b815260206004820152601a60248201527f45524332393831526f79616c746965733a20546f6f206869676800000000000060448201526064016103fd565b604080518082019091526001600160a01b0390921680835262ffffff909116602090920182905260098054600160a01b9093026001600160b81b0319909316909117919091179055565b6000828152600a6020526040902060010154819060405184907fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff90600090a46000918252600a602052604090912060010155565b6112268282612207565b600b5460ff16156120e25760405162461bcd60e51b81526004016103fd906131b3565b600b805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586121173390565b6040516001600160a01b03909116815260200160405180910390a1565b6000818060011161218a5760005481101561218a5760008181526004602052604081205490600160e01b82169003612188575b80600003611cab575060001901600081815260046020526040902054612167565b505b604051636f96cda160e11b815260040160405180910390fd5b6121ad8282611a22565b611226576121c5816001600160a01b0316601461271d565b6121d083602061271d565b6040516020016121e192919061329a565b60408051601f198184030181529082905262461bcd60e51b82526103fd91600401612b2a565b6122118282611a22565b611226576000828152600a602090815260408083206001600160a01b03851684529091529020805460ff191660011790556122493390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6122978282611a22565b15611226576000828152600a602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600b5460ff1661233d5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016103fd565b600b805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33612117565b600061237983612134565b90508060008061239786600090815260066020526040902080549091565b9150915084156123d7576123ac818433610fdf565b6123d7576123ba8333610b12565b6123d757604051632ce44b5f60e11b815260040160405180910390fd5b80156123e257600082555b6001600160a01b038316600081815260056020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b17600360e01b17600087815260046020526040812091909155600160e11b851690036124705760018601600081815260046020526040812054900361246e57600054811461246e5760008181526004602052604090208590555b505b60405186906000906001600160a01b038616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050600180548101905550505050565b6112268282604051806020016040528060008152506128b9565b600081815b85518110156125765760008682815181106124f4576124f461312d565b60200260200101519050808311612536576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250612563565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b508061256e81613159565b9150506124d7565b509092149392505050565b606060108054610c16906130f3565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061261790339089908890889060040161330f565b6020604051808303816000875af1925050508015612652575060408051601f3d908101601f1916820190925261264f9181019061334c565b60015b6126b0573d808015612680576040519150601f19603f3d011682016040523d82523d6000602084013e612685565b606091505b5080516000036126a8576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b604080516080810191829052607f0190826030600a8206018353600a90045b801561270b57600183039250600a81066030018353600a90046126ed565b50819003601f19909101908152919050565b6060600061272c836002613172565b6127379060026131dd565b67ffffffffffffffff81111561274f5761274f612b9c565b6040519080825280601f01601f191660200182016040528015612779576020820181803683370190505b509050600360fc1b816000815181106127945761279461312d565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106127c3576127c361312d565b60200101906001600160f81b031916908160001a90535060006127e7846002613172565b6127f29060016131dd565b90505b600181111561286a576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106128265761282661312d565b1a60f81b82828151811061283c5761283c61312d565b60200101906001600160f81b031916908160001a90535060049490941c9361286381613369565b90506127f5565b508315611cab5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016103fd565b6128c38383612926565b6001600160a01b0383163b156111a7576000548281035b6128ed60008683806001019450866125e2565b61290a576040516368d2bf6b60e11b815260040160405180910390fd5b8181106128da57816000541461291f57600080fd5b5050505050565b6000546001600160a01b03831661294f57604051622e076360e81b815260040160405180910390fd5b816000036129705760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038316600081815260056020526040902080546801000000000000000185020190554260a01b6001841460e11b1717600082815260046020526040902055808281015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082106129ba5760005550505050565b828054612a12906130f3565b90600052602060002090601f016020900481019282612a345760008555612a7a565b82601f10612a4d57805160ff1916838001178555612a7a565b82800160010185558215612a7a579182015b82811115612a7a578251825591602001919060010190612a5f565b50612a86929150612a8a565b5090565b5b80821115612a865760008155600101612a8b565b6001600160e01b03198116811461124b57600080fd5b600060208284031215612ac757600080fd5b8135611cab81612a9f565b60005b83811015612aed578181015183820152602001612ad5565b838111156117555750506000910152565b60008151808452612b16816020860160208601612ad2565b601f01601f19169290920160200192915050565b602081526000611cab6020830184612afe565b600060208284031215612b4f57600080fd5b5035919050565b80356001600160a01b0381168114612b6d57600080fd5b919050565b60008060408385031215612b8557600080fd5b612b8e83612b56565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612bdb57612bdb612b9c565b604052919050565b600067ffffffffffffffff831115612bfd57612bfd612b9c565b612c10601f8401601f1916602001612bb2565b9050828152838383011115612c2457600080fd5b828260208301376000602084830101529392505050565b600082601f830112612c4c57600080fd5b611cab83833560208501612be3565b600082601f830112612c6c57600080fd5b6040516080810181811067ffffffffffffffff82111715612c8f57612c8f612b9c565b604052806080840185811115612ca457600080fd5b845b81811015612cbe578035835260209283019201612ca6565b509195945050505050565b600082601f830112612cda57600080fd5b6040516040810181811067ffffffffffffffff82111715612cfd57612cfd612b9c565b8060405250806040840185811115612d1457600080fd5b845b81811015612cbe57612d2781612b56565b835260209283019201612d16565b600082601f830112612d4657600080fd5b8135602067ffffffffffffffff821115612d6257612d62612b9c565b8160051b612d71828201612bb2565b9283528481018201928281019087851115612d8b57600080fd5b83870192505b84831015612db157612da283612b56565b82529183019190830190612d91565b979650505050505050565b60008060008060008060008060006101a08a8c031215612ddb57600080fd5b612de48a612b56565b985060208a013567ffffffffffffffff80821115612e0157600080fd5b612e0d8d838e01612c3b565b9950612e1c8d60408e01612c5b565b9850612e2b8d60c08e01612cc9565b97506101008c0135915080821115612e4257600080fd5b612e4e8d838e01612d35565b96506101208c0135915080821115612e6557600080fd5b612e718d838e01612d35565b95506101408c01359450612e886101608d01612b56565b93506101808c0135915080821115612e9f57600080fd5b50612eac8c828d01612d35565b9150509295985092959850929598565b600080600060608486031215612ed157600080fd5b612eda84612b56565b9250612ee860208501612b56565b9150604084013590509250925092565b60008060408385031215612f0b57600080fd5b50508035926020909101359150565b60008060408385031215612f2d57600080fd5b82359150612f3d60208401612b56565b90509250929050565b600080600060408486031215612f5b57600080fd5b833567ffffffffffffffff80821115612f7357600080fd5b818601915086601f830112612f8757600080fd5b813581811115612f9657600080fd5b8760208260051b8501011115612fab57600080fd5b6020928301989097509590910135949350505050565b600060208284031215612fd357600080fd5b611cab82612b56565b600060208284031215612fee57600080fd5b813567ffffffffffffffff81111561300557600080fd5b6126c684828501612c3b565b6000806040838503121561302457600080fd5b61302d83612b56565b91506020830135801515811461304257600080fd5b809150509250929050565b6000806000806080858703121561306357600080fd5b61306c85612b56565b935061307a60208601612b56565b925060408501359150606085013567ffffffffffffffff81111561309d57600080fd5b8501601f810187136130ae57600080fd5b6130bd87823560208401612be3565b91505092959194509250565b600080604083850312156130dc57600080fd5b6130e583612b56565b9150612f3d60208401612b56565b600181811c9082168061310757607f821691505b60208210810361312757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006001820161316b5761316b613143565b5060010190565b600081600019048311821515161561318c5761318c613143565b500290565b6000826131ae57634e487b7160e01b600052601260045260246000fd5b500490565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b600082198211156131f0576131f0613143565b500190565b60208082526026908201527f4e6f74456e6f7567684e46543a204e465420737570706c79206e6f7420617661604082015265696c61626c6560d01b606082015260800190565b60008282101561324d5761324d613143565b500390565b60006020828403121561326457600080fd5b5051919050565b6000835161327d818460208801612ad2565b835190830190613291818360208801612ad2565b01949350505050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516132d2816017850160208801612ad2565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613303816028840160208801612ad2565b01602801949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061334290830184612afe565b9695505050505050565b60006020828403121561335e57600080fd5b8151611cab81612a9f565b60008161337857613378613143565b50600019019056fed707eb1eb09ba3b6f5c206f874ca7aa75c63377dc3686cf0265bf4362134adccff28910afdcdeffd71e8f21aae10e10199aeff01c161098302653365ad05510c9f566e66e3fe95040f2178cc6bf558ca13dd7af2eac028523bbf86acda6b390fa264697066735822122094b26c9c69bf443674c7fbf7e185d386fb07c2525db46a4007cb48383ec6fcfd64736f6c634300080d0033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000001445786f6475732043727920446f6e6174696f6e73000000000000000000000000000000000000000000000000000000000000000000000000000000000000000545584f4458000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002461343565356338332d626664382d346366302d383864372d34373330613633393236613800000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x60806040526004361061039b5760003560e01c806370a08231116101dc578063bd0d7b4e11610102578063d9c4870e116100a0578063eb46260e1161006f578063eb46260e14610b40578063f2fde38b14610b76578063f4a0a52814610b96578063fac1d50f14610bb657600080fd5b8063d9c4870e14610aa1578063e0f9b47914610ac1578063e8fa923314610ad7578063e985e9c514610af757600080fd5b8063cda9f323116100dc578063cda9f32314610a33578063d547741f14610a49578063d5abeb0114610a69578063d7124f4414610a7f57600080fd5b8063bd0d7b4e146109d1578063c45a0155146109f3578063c87b56dd14610a1357600080fd5b806391d148541161017a578063a22cb46511610149578063a22cb4651461095c578063a3946e261461097c578063a7bb9ea014610991578063b88d4fde146109b157600080fd5b806391d14854146108f257806395d89b41146109125780639a387ce614610927578063a217fddf1461094757600080fd5b80637cb64759116101b65780637cb647591461088a5780638456cb59146108aa57806388b49c21146108bf5780638da5cb5b146108d457600080fd5b806370a0823114610840578063714c539814610860578063715018a61461087557600080fd5b806342966c68116102c157806356c1da301161025f578063601e26031161022e578063601e2603146107d15780636352211e146107ea5780636419bcdb1461080a5780636817c76c1461082a57600080fd5b806356c1da30146107045780635a9b0b89146107245780635c975abb146107a35780635fc20588146107bb57600080fd5b80634c00de821161029b5780634c00de82146106845780634f558e79146106a4578063519a2044146106c457806355f804b3146106e457600080fd5b806342966c6814610631578063449a52f81461065157806345de0d9b1461067157600080fd5b806323b872dd116103395780632f2ff15d116103085780632f2ff15d146105bc57806336568abe146105dc5780633f4ba83a146105fc57806342842e0e1461061157600080fd5b806323b872dd14610517578063248a9ca3146105375780632a55205a146105675780632eb4a7ab146105a657600080fd5b8063095ea7b311610375578063095ea7b31461049a57806312065fe0146104bc578063123f8ad6146104d957806318160ddd146104f957600080fd5b806301ffc9a71461040b57806306fdde0314610440578063081812fc1461046257600080fd5b366104065760405162461bcd60e51b815260206004820152603060248201527f4261642043616c6c3a204554482073686f756c642062652073656e7420746f2060448201526f36b4b73a141490333ab731ba34b7b71760811b60648201526084015b60405180910390fd5b600080fd5b34801561041757600080fd5b5061042b610426366004612ab5565b610bd8565b60405190151581526020015b60405180910390f35b34801561044c57600080fd5b50610455610c07565b6040516104379190612b2a565b34801561046e57600080fd5b5061048261047d366004612b3d565b610c99565b6040516001600160a01b039091168152602001610437565b3480156104a657600080fd5b506104ba6104b5366004612b72565b610cdd565b005b3480156104c857600080fd5b50475b604051908152602001610437565b3480156104e557600080fd5b506104ba6104f4366004612dbc565b610d7d565b34801561050557600080fd5b506104cb600154600054036000190190565b34801561052357600080fd5b506104ba610532366004612ebc565b610f8a565b34801561054357600080fd5b506104cb610552366004612b3d565b6000908152600a602052604090206001015490565b34801561057357600080fd5b50610587610582366004612ef8565b61112c565b604080516001600160a01b039093168352602083019190915201610437565b3480156105b257600080fd5b506104cb600c5481565b3480156105c857600080fd5b506104ba6105d7366004612f1a565b611181565b3480156105e857600080fd5b506104ba6105f7366004612f1a565b6111ac565b34801561060857600080fd5b506104ba61122a565b34801561061d57600080fd5b506104ba61062c366004612ebc565b61124e565b34801561063d57600080fd5b506104ba61064c366004612b3d565b611269565b34801561065d57600080fd5b506104ba61066c366004612b72565b611274565b6104ba61067f366004612f46565b6112f7565b34801561069057600080fd5b50601554610482906001600160a01b031681565b3480156106b057600080fd5b5061042b6106bf366004612b3d565b61175b565b3480156106d057600080fd5b506104ba6106df366004612fc1565b611766565b3480156106f057600080fd5b506104ba6106ff366004612fdc565b611807565b34801561071057600080fd5b50601654610482906001600160a01b031681565b34801561073057600080fd5b50610739611829565b604080519c8d5260208d019b909b52998b019890985260608a0196909652608089019490945260a0880192909252151560c08701526001600160a01b0390811660e08701529081166101008601521661012084015261014083015261016082015261018001610437565b3480156107af57600080fd5b50600b5460ff1661042b565b3480156107c757600080fd5b506104cb60145481565b3480156107dd57600080fd5b50600054600019016104cb565b3480156107f657600080fd5b50610482610805366004612b3d565b6118d1565b34801561081657600080fd5b506104ba610825366004612f1a565b6118dc565b34801561083657600080fd5b506104cb60125481565b34801561084c57600080fd5b506104cb61085b366004612fc1565b6118f1565b34801561086c57600080fd5b50610455611940565b34801561088157600080fd5b506104ba61194a565b34801561089657600080fd5b506104ba6108a5366004612b3d565b6119b0565b3480156108b657600080fd5b506104ba611a01565b3480156108cb57600080fd5b506017546104cb565b3480156108e057600080fd5b506008546001600160a01b0316610482565b3480156108fe57600080fd5b5061042b61090d366004612f1a565b611a22565b34801561091e57600080fd5b50610455611a4d565b34801561093357600080fd5b506104ba610942366004612f1a565b611a5c565b34801561095357600080fd5b506104cb600081565b34801561096857600080fd5b506104ba610977366004613011565b611a71565b34801561098857600080fd5b50610455611b06565b34801561099d57600080fd5b506104ba6109ac366004612fc1565b611b15565b3480156109bd57600080fd5b506104ba6109cc36600461304d565b611bea565b3480156109dd57600080fd5b506104cb6000805160206133a183398151915281565b3480156109ff57600080fd5b50600d54610482906001600160a01b031681565b348015610a1f57600080fd5b50610455610a2e366004612b3d565b611c2e565b348015610a3f57600080fd5b506104cb60175481565b348015610a5557600080fd5b506104ba610a64366004612f1a565b611cb2565b348015610a7557600080fd5b506104cb60115481565b348015610a8b57600080fd5b506104cb60008051602061338183398151915281565b348015610aad57600080fd5b50601854610482906001600160a01b031681565b348015610acd57600080fd5b506104cb60135481565b348015610ae357600080fd5b506104ba610af2366004612fc1565b611cd8565b348015610b0357600080fd5b5061042b610b123660046130c9565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610b4c57600080fd5b506104cb610b5b366004612fc1565b6001600160a01b03166000908152600e602052604090205490565b348015610b8257600080fd5b506104ba610b91366004612fc1565b611db8565b348015610ba257600080fd5b506104ba610bb1366004612b3d565b611e80565b348015610bc257600080fd5b506104cb6000805160206133c183398151915281565b6000610be382611ed5565b80610bf25750610bf282611f23565b80610c015750610c0182611f58565b92915050565b606060028054610c16906130f3565b80601f0160208091040260200160405190810160405280929190818152602001828054610c42906130f3565b8015610c8f5780601f10610c6457610100808354040283529160200191610c8f565b820191906000526020600020905b815481529060010190602001808311610c7257829003601f168201915b5050505050905090565b6000610ca482611f7d565b610cc1576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610ce8826118d1565b9050336001600160a01b03821614610d2157610d048133610b12565b610d21576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600d546001600160a01b03163314610dcf5760405162461bcd60e51b81526020600482015260156024820152742932b9b2b93b32a7232a1d102327a92124a22222a760591b60448201526064016103fd565b610dd889611db8565b610de188611fb2565b86516011556020870151601255604087015160135585516060880151610e079190611fc5565b60608701516014558551601580546001600160a01b03199081166001600160a01b03938416179091556020880151601880548316918416919091179055601785905560168054909116918416919091179055610e7160008051602061338183398151915280612061565b610e896000805160206133a183398151915280612061565b610ea16000805160206133c183398151915280612061565b60005b8151811015610ef057610ede600080516020613381833981519152838381518110610ed157610ed161312d565b60200260200101516120b5565b80610ee881613159565b915050610ea4565b5060005b8551811015610f3357610f216000805160206133a1833981519152878381518110610ed157610ed161312d565b80610f2b81613159565b915050610ef4565b5060005b8451811015610f7657610f646000805160206133c1833981519152868381518110610ed157610ed161312d565b80610f6e81613159565b915050610f37565b50610f7f6120bf565b505050505050505050565b6000610f9582612134565b9050836001600160a01b0316816001600160a01b031614610fc85760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054610ff48187335b6001600160a01b039081169116811491141790565b61101f576110028633610b12565b61101f57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661104657604051633a954ecd60e21b815260040160405180910390fd5b801561105157600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b841690036110e3576001840160008181526004602052604081205490036110e15760005481146110e15760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b604080518082019091526009546001600160a01b038116808352600160a01b90910462ffffff166020830181905290916000916127109061116d9086613172565b6111779190613191565b9150509250929050565b6000828152600a602052604090206001015461119d81336121a3565b6111a78383612207565b505050565b6001600160a01b038116331461121c5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016103fd565b611226828261228d565b5050565b6000805160206133c183398151915261124381336121a3565b61124b6122f4565b50565b6111a783838360405180602001604052806000815250611bea565b61124b81600161236e565b600b5460ff16156112975760405162461bcd60e51b81526004016103fd906131b3565b6000805160206133c18339815191526112b081336121a3565b601154826112c5600154600054036000190190565b6112cf91906131dd565b11156112ed5760405162461bcd60e51b81526004016103fd906131f5565b6111a783836124b8565b600b5460ff161561131a5760405162461bcd60e51b81526004016103fd906131b3565b6011548161132f600154600054036000190190565b61133991906131dd565b11156113575760405162461bcd60e51b81526004016103fd906131f5565b601354336000908152600e60205260409020546113759083906131dd565b11156113cd5760405162461bcd60e51b815260206004820152602160248201527f526573657276654e46543a204e46547320616c726561647920636c61696d65646044820152601760f91b60648201526084016103fd565b806012546113db9190613172565b341461145a5760405162461bcd60e51b815260206004820152604260248201527f57726f6e67455448416d6f756e743a204d6f7265206f72206c6573732074686160448201527f6e2074686520726571756972656420616d6f756e74206f66204554482073656e6064820152613a1760f11b608482015260a4016103fd565b600c5415806114d957506114d983838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600c546040516bffffffffffffffffffffffff193360601b1660208201529092506034019050604051602081830303815290604052805190602001206124d2565b61153e5760405162461bcd60e51b815260206004820152603060248201527f526573657276654e46543a20496e76616c69642050726f6f662e2056616c696460448201526f10383937b7b3103932b8bab4b932b21760811b60648201526084016103fd565b336000908152600e60205260408120805483929061155d9084906131dd565b9091555061156d905033826124b8565b60005b818110156115e157808261158360005490565b61158d919061323b565b61159791906131dd565b60125460405190815233907fa8e193fb0a4b997168512a36a0e00a6dd16624597d196cea0001e98cbbf307969060200160405180910390a3806115d981613159565b915050611570565b50601660009054906101000a90046001600160a01b03166001600160a01b03166108fc612710601754306001600160a01b03166312065fe06040518163ffffffff1660e01b8152600401602060405180830381865afa158015611648573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061166c9190613252565b6116769190613172565b6116809190613191565b6040518115909202916000818181858888f193505050501580156116a8573d6000803e3d6000fd5b50601860009054906101000a90046001600160a01b03166001600160a01b03166108fc306001600160a01b03166312065fe06040518163ffffffff1660e01b8152600401602060405180830381865afa158015611709573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061172d9190613252565b6040518115909202916000818181858888f19350505050158015611755573d6000803e3d6000fd5b50505050565b6000610c0182611f7d565b6000805160206133a183398151915261177f81336121a3565b6001600160a01b0382166117fb5760405162461bcd60e51b815260206004820152603760248201527f52657365727665583a2061646472657373207a65726f206973206e6f7420612060448201527f76616c696420726f79616c747920726563697069656e7400000000000000000060648201526084016103fd565b61122682601454611fc5565b6000805160206133c183398151915261182081336121a3565b61122682611fb2565b600080808080808080808080804760115461184b600154600054036000190190565b60005460001901601254601354600b5460ff16601560009054906101000a90046001600160a01b0316601660009054906101000a90046001600160a01b0316601860009054906101000a90046001600160a01b03166014546017549b509b509b509b509b509b509b509b509b509b509b509b50909192939495969798999a9b565b905090565b6000610c0182612134565b816118e781336121a3565b6111a78383611181565b60006001600160a01b03821661191a576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b60606118cc612581565b6008546001600160a01b031633146119a45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103fd565b6119ae6000612590565b565b6000805160206133c18339815191526119c981336121a3565b600c82905560405182907fa703ba761b78e04c2d3a078b442e01dd5b5121fd24b0a6d1ab0452399b1c8ebd90600090a26112266122f4565b6000805160206133c1833981519152611a1a81336121a3565b61124b6120bf565b6000918252600a602090815260408084206001600160a01b0393909316845291905290205460ff1690565b606060038054610c16906130f3565b81611a6781336121a3565b6111a78383611cb2565b336001600160a01b03831603611a9a5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6060600f8054610c16906130f3565b600080516020613381833981519152611b2e81336121a3565b6001600160a01b038216611b9f5760405162461bcd60e51b815260206004820152603260248201527f52657365727665583a2061646472657373207a65726f206973206e6f7420612060448201527176616c69642073686f70784164647265737360701b60648201526084016103fd565b601680546001600160a01b0319166001600160a01b0384169081179091556040517f6145df3d17d9763eaeef0fd39c95673069047b54529085f282d56bafa2039ecc90600090a25050565b611bf5848484610f8a565b6001600160a01b0383163b1561175557611c11848484846125e2565b611755576040516368d2bf6b60e11b815260040160405180910390fd5b6060611c3982611f7d565b611c5657604051630a14c4b560e41b815260040160405180910390fd5b6000611c60612581565b90508051600003611c805760405180602001604052806000815250611cab565b80611c8a846126ce565b604051602001611c9b92919061326b565b6040516020818303038152906040525b9392505050565b6000828152600a6020526040902060010154611cce81336121a3565b6111a7838361228d565b6000805160206133a1833981519152611cf181336121a3565b6001600160a01b038216611d6d5760405162461bcd60e51b815260206004820152603860248201527f52657365727665583a2061646472657373207a65726f206973206e6f7420612060448201527f76616c69642062656e656669636961727941646472657373000000000000000060648201526084016103fd565b601880546001600160a01b0319166001600160a01b0384169081179091556040517f23a02b8a2e78b2df3757216a270ad6e776e83460801d3a0adfed347c6ff50f6990600090a25050565b6008546001600160a01b03163314611e125760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103fd565b6001600160a01b038116611e775760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103fd565b61124b81612590565b6000805160206133c1833981519152611e9981336121a3565b60128290556040518281527ff347ee99503bf19c028bd6b18f3c676e82a9bb5b2bb5225aebe0fd62fd6a0d199060200160405180910390a15050565b60006301ffc9a760e01b6001600160e01b031983161480611f0657506380ac58cd60e01b6001600160e01b03198316145b80610c015750506001600160e01b031916635b5e139f60e01b1490565b60006001600160e01b0319821663152a902d60e11b1480610c0157506301ffc9a760e01b6001600160e01b0319831614610c01565b60006001600160e01b03198216637965db0b60e01b1480610c015750610c0182611f23565b600081600111158015611f91575060005482105b8015610c01575050600090815260046020526040902054600160e01b161590565b8051611226906010906020840190612a06565b6127108111156120175760405162461bcd60e51b815260206004820152601a60248201527f45524332393831526f79616c746965733a20546f6f206869676800000000000060448201526064016103fd565b604080518082019091526001600160a01b0390921680835262ffffff909116602090920182905260098054600160a01b9093026001600160b81b0319909316909117919091179055565b6000828152600a6020526040902060010154819060405184907fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff90600090a46000918252600a602052604090912060010155565b6112268282612207565b600b5460ff16156120e25760405162461bcd60e51b81526004016103fd906131b3565b600b805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586121173390565b6040516001600160a01b03909116815260200160405180910390a1565b6000818060011161218a5760005481101561218a5760008181526004602052604081205490600160e01b82169003612188575b80600003611cab575060001901600081815260046020526040902054612167565b505b604051636f96cda160e11b815260040160405180910390fd5b6121ad8282611a22565b611226576121c5816001600160a01b0316601461271d565b6121d083602061271d565b6040516020016121e192919061329a565b60408051601f198184030181529082905262461bcd60e51b82526103fd91600401612b2a565b6122118282611a22565b611226576000828152600a602090815260408083206001600160a01b03851684529091529020805460ff191660011790556122493390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6122978282611a22565b15611226576000828152600a602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600b5460ff1661233d5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016103fd565b600b805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33612117565b600061237983612134565b90508060008061239786600090815260066020526040902080549091565b9150915084156123d7576123ac818433610fdf565b6123d7576123ba8333610b12565b6123d757604051632ce44b5f60e11b815260040160405180910390fd5b80156123e257600082555b6001600160a01b038316600081815260056020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b17600360e01b17600087815260046020526040812091909155600160e11b851690036124705760018601600081815260046020526040812054900361246e57600054811461246e5760008181526004602052604090208590555b505b60405186906000906001600160a01b038616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050600180548101905550505050565b6112268282604051806020016040528060008152506128b9565b600081815b85518110156125765760008682815181106124f4576124f461312d565b60200260200101519050808311612536576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250612563565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b508061256e81613159565b9150506124d7565b509092149392505050565b606060108054610c16906130f3565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061261790339089908890889060040161330f565b6020604051808303816000875af1925050508015612652575060408051601f3d908101601f1916820190925261264f9181019061334c565b60015b6126b0573d808015612680576040519150601f19603f3d011682016040523d82523d6000602084013e612685565b606091505b5080516000036126a8576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b604080516080810191829052607f0190826030600a8206018353600a90045b801561270b57600183039250600a81066030018353600a90046126ed565b50819003601f19909101908152919050565b6060600061272c836002613172565b6127379060026131dd565b67ffffffffffffffff81111561274f5761274f612b9c565b6040519080825280601f01601f191660200182016040528015612779576020820181803683370190505b509050600360fc1b816000815181106127945761279461312d565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106127c3576127c361312d565b60200101906001600160f81b031916908160001a90535060006127e7846002613172565b6127f29060016131dd565b90505b600181111561286a576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106128265761282661312d565b1a60f81b82828151811061283c5761283c61312d565b60200101906001600160f81b031916908160001a90535060049490941c9361286381613369565b90506127f5565b508315611cab5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016103fd565b6128c38383612926565b6001600160a01b0383163b156111a7576000548281035b6128ed60008683806001019450866125e2565b61290a576040516368d2bf6b60e11b815260040160405180910390fd5b8181106128da57816000541461291f57600080fd5b5050505050565b6000546001600160a01b03831661294f57604051622e076360e81b815260040160405180910390fd5b816000036129705760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038316600081815260056020526040902080546801000000000000000185020190554260a01b6001841460e11b1717600082815260046020526040902055808281015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082106129ba5760005550505050565b828054612a12906130f3565b90600052602060002090601f016020900481019282612a345760008555612a7a565b82601f10612a4d57805160ff1916838001178555612a7a565b82800160010185558215612a7a579182015b82811115612a7a578251825591602001919060010190612a5f565b50612a86929150612a8a565b5090565b5b80821115612a865760008155600101612a8b565b6001600160e01b03198116811461124b57600080fd5b600060208284031215612ac757600080fd5b8135611cab81612a9f565b60005b83811015612aed578181015183820152602001612ad5565b838111156117555750506000910152565b60008151808452612b16816020860160208601612ad2565b601f01601f19169290920160200192915050565b602081526000611cab6020830184612afe565b600060208284031215612b4f57600080fd5b5035919050565b80356001600160a01b0381168114612b6d57600080fd5b919050565b60008060408385031215612b8557600080fd5b612b8e83612b56565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612bdb57612bdb612b9c565b604052919050565b600067ffffffffffffffff831115612bfd57612bfd612b9c565b612c10601f8401601f1916602001612bb2565b9050828152838383011115612c2457600080fd5b828260208301376000602084830101529392505050565b600082601f830112612c4c57600080fd5b611cab83833560208501612be3565b600082601f830112612c6c57600080fd5b6040516080810181811067ffffffffffffffff82111715612c8f57612c8f612b9c565b604052806080840185811115612ca457600080fd5b845b81811015612cbe578035835260209283019201612ca6565b509195945050505050565b600082601f830112612cda57600080fd5b6040516040810181811067ffffffffffffffff82111715612cfd57612cfd612b9c565b8060405250806040840185811115612d1457600080fd5b845b81811015612cbe57612d2781612b56565b835260209283019201612d16565b600082601f830112612d4657600080fd5b8135602067ffffffffffffffff821115612d6257612d62612b9c565b8160051b612d71828201612bb2565b9283528481018201928281019087851115612d8b57600080fd5b83870192505b84831015612db157612da283612b56565b82529183019190830190612d91565b979650505050505050565b60008060008060008060008060006101a08a8c031215612ddb57600080fd5b612de48a612b56565b985060208a013567ffffffffffffffff80821115612e0157600080fd5b612e0d8d838e01612c3b565b9950612e1c8d60408e01612c5b565b9850612e2b8d60c08e01612cc9565b97506101008c0135915080821115612e4257600080fd5b612e4e8d838e01612d35565b96506101208c0135915080821115612e6557600080fd5b612e718d838e01612d35565b95506101408c01359450612e886101608d01612b56565b93506101808c0135915080821115612e9f57600080fd5b50612eac8c828d01612d35565b9150509295985092959850929598565b600080600060608486031215612ed157600080fd5b612eda84612b56565b9250612ee860208501612b56565b9150604084013590509250925092565b60008060408385031215612f0b57600080fd5b50508035926020909101359150565b60008060408385031215612f2d57600080fd5b82359150612f3d60208401612b56565b90509250929050565b600080600060408486031215612f5b57600080fd5b833567ffffffffffffffff80821115612f7357600080fd5b818601915086601f830112612f8757600080fd5b813581811115612f9657600080fd5b8760208260051b8501011115612fab57600080fd5b6020928301989097509590910135949350505050565b600060208284031215612fd357600080fd5b611cab82612b56565b600060208284031215612fee57600080fd5b813567ffffffffffffffff81111561300557600080fd5b6126c684828501612c3b565b6000806040838503121561302457600080fd5b61302d83612b56565b91506020830135801515811461304257600080fd5b809150509250929050565b6000806000806080858703121561306357600080fd5b61306c85612b56565b935061307a60208601612b56565b925060408501359150606085013567ffffffffffffffff81111561309d57600080fd5b8501601f810187136130ae57600080fd5b6130bd87823560208401612be3565b91505092959194509250565b600080604083850312156130dc57600080fd5b6130e583612b56565b9150612f3d60208401612b56565b600181811c9082168061310757607f821691505b60208210810361312757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006001820161316b5761316b613143565b5060010190565b600081600019048311821515161561318c5761318c613143565b500290565b6000826131ae57634e487b7160e01b600052601260045260246000fd5b500490565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b600082198211156131f0576131f0613143565b500190565b60208082526026908201527f4e6f74456e6f7567684e46543a204e465420737570706c79206e6f7420617661604082015265696c61626c6560d01b606082015260800190565b60008282101561324d5761324d613143565b500390565b60006020828403121561326457600080fd5b5051919050565b6000835161327d818460208801612ad2565b835190830190613291818360208801612ad2565b01949350505050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516132d2816017850160208801612ad2565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613303816028840160208801612ad2565b01602801949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061334290830184612afe565b9695505050505050565b60006020828403121561335e57600080fd5b8151611cab81612a9f565b60008161337857613378613143565b50600019019056fed707eb1eb09ba3b6f5c206f874ca7aa75c63377dc3686cf0265bf4362134adccff28910afdcdeffd71e8f21aae10e10199aeff01c161098302653365ad05510c9f566e66e3fe95040f2178cc6bf558ca13dd7af2eac028523bbf86acda6b390fa264697066735822122094b26c9c69bf443674c7fbf7e185d386fb07c2525db46a4007cb48383ec6fcfd64736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000001445786f6475732043727920446f6e6174696f6e73000000000000000000000000000000000000000000000000000000000000000000000000000000000000000545584f4458000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002461343565356338332d626664382d346366302d383864372d34373330613633393236613800000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): Exodus Cry Donations
Arg [1] : _symbol (string): EXODX
Arg [2] : _brand (string): a45e5c83-bfd8-4cf0-88d7-4730a63926a8
-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [4] : 45786f6475732043727920446f6e6174696f6e73000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [6] : 45584f4458000000000000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000024
Arg [8] : 61343565356338332d626664382d346366302d383864372d3437333061363339
Arg [9] : 3236613800000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 27 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.