ERC-721
Overview
Max Total Supply
400 MGLAD
Holders
104
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
4 MGLADLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Gladiator
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // Creator: 0xR pragma solidity ^0.8.13; import "erc721a/contracts/ERC721A.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; error MintTotalLimitIsReached(); error MintIndividualLimitIsReached(); error MintIsNotOpen(); error NotWhitelist(); error UnvalidPayment(); /** * @notice Meta Gladiators is a play-to-earn (P2E) NFT gladiator game. * Holders of this NFT can compete in the arenas. */ contract Gladiator is ERC721A, Ownable { // Able to mint when true bool public isMintOpen; // Only whitelist can mint when true bool public isWhitelistOnly; // Revealing the correct tokenURI when true bool public isRevealed; // Team wallet to collect mint revenue address payable public treasury; // Current mint cap for batch minting uint256 public mintTotalLimit; // Project mint cap uint256 public immutable mintTotalLimitMax; // Whitelist and public individual mint cap uint256 public mintIndividualLimit; // Mint price in wei uint256 public mintPrice; // Root hash for whitelist bytes32 private _whitelistRootHash; // ipfs://<hash>/ string public ipfsUrl; // Used to keep track of free minters mapping(address => uint256) public addressToFreeMints; // Used to keep track on whitelist and public minters mapping(address => uint256) public addressToMints; // Gladiator points are used in the arenas to compete mapping(uint256 => uint256) public tokenIdToGladiatorPoints; constructor( string memory name, string memory symbol, address payable _treasury, uint256 _mintTotalLimit, uint256 _mintTotalLimitMax, uint256 _mintIndividualLimit, uint256 _mintPrice, string memory _ipfsUrl ) ERC721A(name, symbol) { treasury = _treasury; mintTotalLimit = _mintTotalLimit; mintTotalLimitMax = _mintTotalLimitMax; mintIndividualLimit = _mintIndividualLimit; mintPrice = _mintPrice; ipfsUrl = _ipfsUrl; isWhitelistOnly = true; } /** @notice Check that address in _merkleProof is on the whitelist. */ modifier onlyWhitelistIfRequired(bytes32[] calldata _merkleProof) { if (isWhitelistOnly) { bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); if (!MerkleProof.verify(_merkleProof, _whitelistRootHash, leaf)) revert NotWhitelist(); } _; } /** @notice Check that quantity is not 0 or exeeding project cap */ modifier onlyValidQuantity(uint256 _quantity) { if ((totalSupply() + _quantity) > mintTotalLimit) revert MintTotalLimitIsReached(); if (_quantity < 1) revert MintZeroQuantity(); _; } /** @notice Mint function. Called by both whitelist and public. */ function mint(uint256 _quantity, bytes32[] calldata _merkleProof) external payable onlyWhitelistIfRequired(_merkleProof) onlyValidQuantity(_quantity) { uint256 numberOfMintsLeft = (mintIndividualLimit - addressToMints[msg.sender]); if (!isMintOpen) revert MintIsNotOpen(); if (_quantity > numberOfMintsLeft) revert MintIndividualLimitIsReached(); if (msg.value != (_quantity * mintPrice)) revert UnvalidPayment(); addressToMints[msg.sender] = (addressToMints[msg.sender] + _quantity); _safeMint(msg.sender, _quantity); } /** @notice Free mint function. Called by team members and partners. */ function mintFree(uint256 _quantity) external onlyValidQuantity(_quantity) { uint256 freeMintsLeft = addressToFreeMints[msg.sender]; addressToFreeMints[msg.sender] = (freeMintsLeft - _quantity); if (_quantity > freeMintsLeft) revert MintIndividualLimitIsReached(); _safeMint(msg.sender, _quantity); } /** @notice Called to collect mint revenue. */ function withdraw() external onlyOwner { payable(treasury).transfer(address(this).balance); } /** @notice Called to update the list of free minters. Each wallet can have an individual number of free mints. */ function updateFreeMints( address[] calldata _addresses, uint256[] calldata _freeMints ) external onlyOwner { for (uint256 i = 0; i < _addresses.length; i++) { addressToFreeMints[_addresses[i]] = _freeMints[i]; } } /** @notice Called to update gladiator points before a game. The gladiator points need to be uploaded from the metadata to this smart contract before the gladiator can compete in the arenas. */ function updateGladiatorPoints( uint256[] memory _tokenIds, uint256[] memory gladiatorPoints ) external onlyOwner { for (uint256 i = 0; i < _tokenIds.length; i++) { tokenIdToGladiatorPoints[_tokenIds[i]] = gladiatorPoints[i]; } } /** @notice The metadata uri (ipfs://<hash>/<tokenId>.json) Initiated with an "unrevealed" uri, then updated to the correct uri. */ function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) { if (!_exists(_tokenId)) revert URIQueryForNonexistentToken(); if (!isRevealed) return string(ipfsUrl); return string(abi.encodePacked(ipfsUrl, Strings.toString(_tokenId), ".json")); } /** @notice Check if tokenId exists. */ function exists(uint256 _tokenId) external view returns (bool) { return _exists(_tokenId); } /** @notice Set the treasury team wallet address. */ function setTreasury(address payable _treasury) external onlyOwner { treasury = _treasury; } /** @notice Set the current mint limit. Used when releasing mint batches. Not allowed to go over mintTotalLimitMax. */ function setMintTotalLimit(uint256 _mintTotalLimit) external onlyOwner { if (_mintTotalLimit > mintTotalLimitMax) revert MintTotalLimitIsReached(); mintTotalLimit = _mintTotalLimit; } /** @notice Set whitelist root hash. Called to update the whitelist. */ function setWhitelistRootHash(bytes32 __whitelistRootHash) external onlyOwner { _whitelistRootHash = __whitelistRootHash; } /** @notice Set mint price in wei. */ function setMintPrice(uint256 _mintPrice) external onlyOwner { mintPrice = _mintPrice; } /** @notice Check if wallet is on the whitelist. If isWhitelistOnly is false, this function will return true always. For UX purposes only. */ function checkWhitelist(bytes32[] calldata _merkleProof) external view onlyWhitelistIfRequired(_merkleProof) returns (bool) { return true; } /** @notice "Allow minting. */ function openMint() external onlyOwner { isMintOpen = !isMintOpen; } /** @notice Allow public mint when whitelist mint is over. */ function openPublicMint() external onlyOwner { isWhitelistOnly = !isWhitelistOnly; } /** @notice Reveal all NFTs by updating the tokenURI to the correct ipfs uri. */ function reveal(string memory _ipfsUrl) external onlyOwner { ipfsUrl = _ipfsUrl; isRevealed = true; } /** @notice Retrieve a list of tokens owned by an address. For UX purposes only. */ function tokensByOwner(address owner) public view returns (uint256[] memory) { uint256 ownerBalance = super.balanceOf(owner); uint256[] memory results = new uint256[](ownerBalance); uint256 j; for (uint256 i = 1; i <= super.totalSupply(); i++) { if (super.ownerOf(i) == owner) { results[j] = i; j++; } if (j == ownerBalance) break; } return results; } /** @notice ERC721A override. Set first tokenId to start on 1 instead of 0. */ function _startTokenId() internal view virtual override returns (uint256) { return 1; } }
// 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 // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/cryptography/MerkleProof.sol) 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) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { 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)); } } return computedHash; } }
// 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 // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
{ "optimizer": { "enabled": false, "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":"address payable","name":"_treasury","type":"address"},{"internalType":"uint256","name":"_mintTotalLimit","type":"uint256"},{"internalType":"uint256","name":"_mintTotalLimitMax","type":"uint256"},{"internalType":"uint256","name":"_mintIndividualLimit","type":"uint256"},{"internalType":"uint256","name":"_mintPrice","type":"uint256"},{"internalType":"string","name":"_ipfsUrl","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":"MintIndividualLimitIsReached","type":"error"},{"inputs":[],"name":"MintIsNotOpen","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintTotalLimitIsReached","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"NotWhitelist","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"},{"inputs":[],"name":"UnvalidPayment","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":"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":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressToFreeMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressToMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"checkWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"ipfsUrl","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isMintOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isRevealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isWhitelistOnly","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"mintFree","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintIndividualLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintTotalLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintTotalLimitMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"openMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"openPublicMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_ipfsUrl","type":"string"}],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintPrice","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintTotalLimit","type":"uint256"}],"name":"setMintTotalLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_treasury","type":"address"}],"name":"setTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"__whitelistRootHash","type":"bytes32"}],"name":"setWhitelistRootHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenIdToGladiatorPoints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensByOwner","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":"treasury","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"},{"internalType":"uint256[]","name":"_freeMints","type":"uint256[]"}],"name":"updateFreeMints","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"gladiatorPoints","type":"uint256[]"}],"name":"updateGladiatorPoints","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a06040523480156200001157600080fd5b506040516200493f3803806200493f833981810160405281019062000037919062000507565b87878160029080519060200190620000519291906200021a565b5080600390805190602001906200006a9291906200021a565b506200007b6200014360201b60201c565b6000819055505050620000a3620000976200014c60201b60201c565b6200015460201b60201c565b85600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084600a81905550836080818152505082600b8190555081600c8190555080600e9080519060200190620001199291906200021a565b506001600860156101000a81548160ff021916908315150217905550505050505050505062000691565b60006001905090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b82805462000228906200065c565b90600052602060002090601f0160209004810192826200024c576000855562000298565b82601f106200026757805160ff191683800117855562000298565b8280016001018555821562000298579182015b82811115620002975782518255916020019190600101906200027a565b5b509050620002a79190620002ab565b5090565b5b80821115620002c6576000816000905550600101620002ac565b5090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6200033382620002e8565b810181811067ffffffffffffffff82111715620003555762000354620002f9565b5b80604052505050565b60006200036a620002ca565b905062000378828262000328565b919050565b600067ffffffffffffffff8211156200039b576200039a620002f9565b5b620003a682620002e8565b9050602081019050919050565b60005b83811015620003d3578082015181840152602081019050620003b6565b83811115620003e3576000848401525b50505050565b600062000400620003fa846200037d565b6200035e565b9050828152602081018484840111156200041f576200041e620002e3565b5b6200042c848285620003b3565b509392505050565b600082601f8301126200044c576200044b620002de565b5b81516200045e848260208601620003e9565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620004948262000467565b9050919050565b620004a68162000487565b8114620004b257600080fd5b50565b600081519050620004c6816200049b565b92915050565b6000819050919050565b620004e181620004cc565b8114620004ed57600080fd5b50565b6000815190506200050181620004d6565b92915050565b600080600080600080600080610100898b0312156200052b576200052a620002d4565b5b600089015167ffffffffffffffff8111156200054c576200054b620002d9565b5b6200055a8b828c0162000434565b985050602089015167ffffffffffffffff8111156200057e576200057d620002d9565b5b6200058c8b828c0162000434565b97505060406200059f8b828c01620004b5565b9650506060620005b28b828c01620004f0565b9550506080620005c58b828c01620004f0565b94505060a0620005d88b828c01620004f0565b93505060c0620005eb8b828c01620004f0565b92505060e089015167ffffffffffffffff8111156200060f576200060e620002d9565b5b6200061d8b828c0162000434565b9150509295985092959890939650565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200067557607f821691505b6020821081036200068b576200068a6200062d565b5b50919050565b60805161428b620006b4600039600081816120450152612610015261428b6000f3fe6080604052600436106102675760003560e01c8063715018a611610144578063bb0c7242116100b6578063d357154e1161007a578063d357154e14610923578063e985e9c51461094c578063f0f4426014610989578063f2fde38b146109b2578063f4a0a528146109db578063f89b3d2b14610a0457610267565b8063bb0c72421461083e578063bce6d67214610867578063bedd1e431461087e578063c87b56dd146108a9578063d1688e38146108e657610267565b8063a22cb46511610108578063a22cb4651461073f578063a414673314610768578063aeef151714610791578063b88d4fde146107bc578063b8dde112146107e5578063ba41b0c61461082257610267565b8063715018a61461067c57806384295aa5146106935780638da5cb5b146106be57806395d89b41146106e957806397b90ad61461071457610267565b806345f7e06e116101dd57806354214f69116101a157806354214f691461054457806361d027b31461056f5780636352211e1461059a57806363820f23146105d75780636817c76c1461061457806370a082311461063f57610267565b806345f7e06e1461045f57806348fece7c146104765780634ad89b5a146104a15780634c261247146104de5780634f558e791461050757610267565b806318160ddd1161022f57806318160ddd1461037757806319908016146103a257806323b872dd146103cd578063367998df146103f65780633ccfd60b1461041f57806342842e0e1461043657610267565b806301ffc9a71461026c57806306fdde03146102a9578063081812fc146102d4578063095ea7b3146103115780630d381a281461033a575b600080fd5b34801561027857600080fd5b50610293600480360381019061028e9190613070565b610a2d565b6040516102a091906130b8565b60405180910390f35b3480156102b557600080fd5b506102be610abf565b6040516102cb919061316c565b60405180910390f35b3480156102e057600080fd5b506102fb60048036038101906102f691906131c4565b610b51565b6040516103089190613232565b60405180910390f35b34801561031d57600080fd5b5061033860048036038101906103339190613279565b610bcd565b005b34801561034657600080fd5b50610361600480360381019061035c91906132b9565b610d0e565b60405161036e91906133a4565b60405180910390f35b34801561038357600080fd5b5061038c610e11565b60405161039991906133d5565b60405180910390f35b3480156103ae57600080fd5b506103b7610e28565b6040516103c491906130b8565b60405180910390f35b3480156103d957600080fd5b506103f460048036038101906103ef91906133f0565b610e3b565b005b34801561040257600080fd5b5061041d60048036038101906104189190613479565b61115d565b005b34801561042b57600080fd5b506104346111e3565b005b34801561044257600080fd5b5061045d600480360381019061045891906133f0565b6112ca565b005b34801561046b57600080fd5b506104746112ea565b005b34801561048257600080fd5b5061048b611392565b60405161049891906130b8565b60405180910390f35b3480156104ad57600080fd5b506104c860048036038101906104c391906131c4565b6113a5565b6040516104d591906133d5565b60405180910390f35b3480156104ea57600080fd5b50610505600480360381019061050091906135db565b6113bd565b005b34801561051357600080fd5b5061052e600480360381019061052991906131c4565b61146e565b60405161053b91906130b8565b60405180910390f35b34801561055057600080fd5b50610559611480565b60405161056691906130b8565b60405180910390f35b34801561057b57600080fd5b50610584611493565b6040516105919190613645565b60405180910390f35b3480156105a657600080fd5b506105c160048036038101906105bc91906131c4565b6114b9565b6040516105ce9190613232565b60405180910390f35b3480156105e357600080fd5b506105fe60048036038101906105f991906132b9565b6114cb565b60405161060b91906133d5565b60405180910390f35b34801561062057600080fd5b506106296114e3565b60405161063691906133d5565b60405180910390f35b34801561064b57600080fd5b50610666600480360381019061066191906132b9565b6114e9565b60405161067391906133d5565b60405180910390f35b34801561068857600080fd5b506106916115a1565b005b34801561069f57600080fd5b506106a8611629565b6040516106b5919061316c565b60405180910390f35b3480156106ca57600080fd5b506106d36116b7565b6040516106e09190613232565b60405180910390f35b3480156106f557600080fd5b506106fe6116e1565b60405161070b919061316c565b60405180910390f35b34801561072057600080fd5b50610729611773565b60405161073691906133d5565b60405180910390f35b34801561074b57600080fd5b506107666004803603810190610761919061368c565b611779565b005b34801561077457600080fd5b5061078f600480360381019061078a91906131c4565b6118f0565b005b34801561079d57600080fd5b506107a6611a56565b6040516107b391906133d5565b60405180910390f35b3480156107c857600080fd5b506107e360048036038101906107de919061376d565b611a5c565b005b3480156107f157600080fd5b5061080c60048036038101906108079190613850565b611acf565b60405161081991906130b8565b60405180910390f35b61083c6004803603810190610837919061389d565b611ba5565b005b34801561084a57600080fd5b50610865600480360381019061086091906139c0565b611eaf565b005b34801561087357600080fd5b5061087c611f9b565b005b34801561088a57600080fd5b50610893612043565b6040516108a091906133d5565b60405180910390f35b3480156108b557600080fd5b506108d060048036038101906108cb91906131c4565b612067565b6040516108dd919061316c565b60405180910390f35b3480156108f257600080fd5b5061090d600480360381019061090891906132b9565b612181565b60405161091a91906133d5565b60405180910390f35b34801561092f57600080fd5b5061094a60048036038101906109459190613ae4565b612199565b005b34801561095857600080fd5b50610973600480360381019061096e9190613b65565b6122c1565b60405161098091906130b8565b60405180910390f35b34801561099557600080fd5b506109b060048036038101906109ab9190613bd1565b612355565b005b3480156109be57600080fd5b506109d960048036038101906109d491906132b9565b612415565b005b3480156109e757600080fd5b50610a0260048036038101906109fd91906131c4565b61250c565b005b348015610a1057600080fd5b50610a2b6004803603810190610a2691906131c4565b612592565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610a8857506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610ab85750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b606060028054610ace90613c2d565b80601f0160208091040260200160405190810160405280929190818152602001828054610afa90613c2d565b8015610b475780601f10610b1c57610100808354040283529160200191610b47565b820191906000526020600020905b815481529060010190602001808311610b2a57829003601f168201915b5050505050905090565b6000610b5c82612672565b610b92576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610bd8826114b9565b90508073ffffffffffffffffffffffffffffffffffffffff16610bf96126d1565b73ffffffffffffffffffffffffffffffffffffffff1614610c5c57610c2581610c206126d1565b6122c1565b610c5b576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60606000610d1b836114e9565b905060008167ffffffffffffffff811115610d3957610d386134b0565b5b604051908082528060200260200182016040528015610d675781602001602082028036833780820191505090505b509050600080600190505b610d7a610e11565b8111610e05578573ffffffffffffffffffffffffffffffffffffffff16610da0826114b9565b73ffffffffffffffffffffffffffffffffffffffff1603610dea5780838381518110610dcf57610dce613c5e565b5b6020026020010181815250508180610de690613cbc565b9250505b83820315610e05578080610dfd90613cbc565b915050610d72565b50819350505050919050565b6000610e1b6126d9565b6001546000540303905090565b600860149054906101000a900460ff1681565b6000610e46826126e2565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610ead576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610eb9846127ae565b91509150610ecf8187610eca6126d1565b6127d0565b610f1b57610ee486610edf6126d1565b6122c1565b610f1a576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610f81576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610f8e8686866001612814565b8015610f9957600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055506110678561104388888761281a565b7c020000000000000000000000000000000000000000000000000000000017612842565b600460008681526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008416036110ed57600060018501905060006004600083815260200190815260200160002054036110eb5760005481146110ea578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611155868686600161286d565b505050505050565b611165612873565b73ffffffffffffffffffffffffffffffffffffffff166111836116b7565b73ffffffffffffffffffffffffffffffffffffffff16146111d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111d090613d50565b60405180910390fd5b80600d8190555050565b6111eb612873565b73ffffffffffffffffffffffffffffffffffffffff166112096116b7565b73ffffffffffffffffffffffffffffffffffffffff161461125f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161125690613d50565b60405180910390fd5b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f193505050501580156112c7573d6000803e3d6000fd5b50565b6112e583838360405180602001604052806000815250611a5c565b505050565b6112f2612873565b73ffffffffffffffffffffffffffffffffffffffff166113106116b7565b73ffffffffffffffffffffffffffffffffffffffff1614611366576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161135d90613d50565b60405180910390fd5b600860159054906101000a900460ff1615600860156101000a81548160ff021916908315150217905550565b600860159054906101000a900460ff1681565b60116020528060005260406000206000915090505481565b6113c5612873565b73ffffffffffffffffffffffffffffffffffffffff166113e36116b7565b73ffffffffffffffffffffffffffffffffffffffff1614611439576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161143090613d50565b60405180910390fd5b80600e908051906020019061144f929190612f61565b506001600860166101000a81548160ff02191690831515021790555050565b600061147982612672565b9050919050565b600860169054906101000a900460ff1681565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60006114c4826126e2565b9050919050565b60106020528060005260406000206000915090505481565b600c5481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611550576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6115a9612873565b73ffffffffffffffffffffffffffffffffffffffff166115c76116b7565b73ffffffffffffffffffffffffffffffffffffffff161461161d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161161490613d50565b60405180910390fd5b611627600061287b565b565b600e805461163690613c2d565b80601f016020809104026020016040519081016040528092919081815260200182805461166290613c2d565b80156116af5780601f10611684576101008083540402835291602001916116af565b820191906000526020600020905b81548152906001019060200180831161169257829003601f168201915b505050505081565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600380546116f090613c2d565b80601f016020809104026020016040519081016040528092919081815260200182805461171c90613c2d565b80156117695780601f1061173e57610100808354040283529160200191611769565b820191906000526020600020905b81548152906001019060200180831161174c57829003601f168201915b5050505050905090565b600a5481565b6117816126d1565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036117e5576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600760006117f26126d1565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661189f6126d1565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516118e491906130b8565b60405180910390a35050565b80600a54816118fd610e11565b6119079190613d70565b111561193f576040517f9fe652b200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600181101561197a576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082816119ca9190613dc6565b600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080831115611a47576040517f4aa1b51b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611a513384612941565b505050565b600b5481565b611a67848484610e3b565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611ac957611a928484848461295f565b611ac8576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b60008282600860159054906101000a900460ff1615611b9957600033604051602001611afb9190613e42565b604051602081830303815290604052805190602001209050611b61838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600d5483612aaf565b611b97576040517f1db1756700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505b60019250505092915050565b8181600860159054906101000a900460ff1615611c6d57600033604051602001611bcf9190613e42565b604051602081830303815290604052805190602001209050611c35838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600d5483612aaf565b611c6b576040517f1db1756700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505b84600a5481611c7a610e11565b611c849190613d70565b1115611cbc576040517f9fe652b200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001811015611cf7576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600b54611d469190613dc6565b9050600860149054906101000a900460ff16611d8e576040517ff47e7f7e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80871115611dc8576040517f4aa1b51b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600c5487611dd69190613e5d565b3414611e0e576040517ff018736900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b86601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611e599190613d70565b601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611ea63388612941565b50505050505050565b611eb7612873565b73ffffffffffffffffffffffffffffffffffffffff16611ed56116b7565b73ffffffffffffffffffffffffffffffffffffffff1614611f2b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f2290613d50565b60405180910390fd5b60005b8251811015611f9657818181518110611f4a57611f49613c5e565b5b602002602001015160116000858481518110611f6957611f68613c5e565b5b60200260200101518152602001908152602001600020819055508080611f8e90613cbc565b915050611f2e565b505050565b611fa3612873565b73ffffffffffffffffffffffffffffffffffffffff16611fc16116b7565b73ffffffffffffffffffffffffffffffffffffffff1614612017576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161200e90613d50565b60405180910390fd5b600860149054906101000a900460ff1615600860146101000a81548160ff021916908315150217905550565b7f000000000000000000000000000000000000000000000000000000000000000081565b606061207282612672565b6120a8576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600860169054906101000a900460ff1661214e57600e80546120c990613c2d565b80601f01602080910402602001604051908101604052809291908181526020018280546120f590613c2d565b80156121425780601f1061211757610100808354040283529160200191612142565b820191906000526020600020905b81548152906001019060200180831161212557829003601f168201915b5050505050905061217c565b600e61215983612ac6565b60405160200161216a929190613fd3565b60405160208183030381529060405290505b919050565b600f6020528060005260406000206000915090505481565b6121a1612873565b73ffffffffffffffffffffffffffffffffffffffff166121bf6116b7565b73ffffffffffffffffffffffffffffffffffffffff1614612215576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161220c90613d50565b60405180910390fd5b60005b848490508110156122ba5782828281811061223657612235613c5e565b5b90506020020135600f600087878581811061225457612253613c5e565b5b905060200201602081019061226991906132b9565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080806122b290613cbc565b915050612218565b5050505050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61235d612873565b73ffffffffffffffffffffffffffffffffffffffff1661237b6116b7565b73ffffffffffffffffffffffffffffffffffffffff16146123d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123c890613d50565b60405180910390fd5b80600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61241d612873565b73ffffffffffffffffffffffffffffffffffffffff1661243b6116b7565b73ffffffffffffffffffffffffffffffffffffffff1614612491576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161248890613d50565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612500576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124f790614074565b60405180910390fd5b6125098161287b565b50565b612514612873565b73ffffffffffffffffffffffffffffffffffffffff166125326116b7565b73ffffffffffffffffffffffffffffffffffffffff1614612588576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161257f90613d50565b60405180910390fd5b80600c8190555050565b61259a612873565b73ffffffffffffffffffffffffffffffffffffffff166125b86116b7565b73ffffffffffffffffffffffffffffffffffffffff161461260e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161260590613d50565b60405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000000000811115612668576040517f9fe652b200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600a8190555050565b60008161267d6126d9565b1115801561268c575060005482105b80156126ca575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b60006001905090565b600080829050806126f16126d9565b11612777576000548110156127765760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603612774575b6000810361276a576004600083600190039350838152602001908152602001600020549050612740565b80925050506127a9565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000806000600690508360005280602052604060002092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8612831868684612c26565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61295b828260405180602001604052806000815250612c2f565b5050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026129856126d1565b8786866040518563ffffffff1660e01b81526004016129a794939291906140e9565b6020604051808303816000875af19250505080156129e357506040513d601f19601f820116820180604052508101906129e0919061414a565b60015b612a5c573d8060008114612a13576040519150601f19603f3d011682016040523d82523d6000602084013e612a18565b606091505b506000815103612a54576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b600082612abc8584612ccc565b1490509392505050565b606060008203612b0d576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612c21565b600082905060005b60008214612b3f578080612b2890613cbc565b915050600a82612b3891906141a6565b9150612b15565b60008167ffffffffffffffff811115612b5b57612b5a6134b0565b5b6040519080825280601f01601f191660200182016040528015612b8d5781602001600182028036833780820191505090505b5090505b60008514612c1a57600182612ba69190613dc6565b9150600a85612bb591906141d7565b6030612bc19190613d70565b60f81b818381518110612bd757612bd6613c5e565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612c1391906141a6565b9450612b91565b8093505050505b919050565b60009392505050565b612c398383612d7f565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612cc757600080549050600083820390505b612c79600086838060010194508661295f565b612caf576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110612c66578160005414612cc457600080fd5b50505b505050565b60008082905060005b8451811015612d74576000858281518110612cf357612cf2613c5e565b5b60200260200101519050808311612d34578281604051602001612d17929190614229565b604051602081830303815290604052805190602001209250612d60565b8083604051602001612d47929190614229565b6040516020818303038152906040528051906020012092505b508080612d6c90613cbc565b915050612cd5565b508091505092915050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612deb576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008203612e25576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612e326000848385612814565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612ea983612e9a600086600061281a565b612ea385612f51565b17612842565b60046000838152602001908152602001600020819055506000819050600083830190505b818060010192508573ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4808210612ecd57806000819055505050612f4c600084838561286d565b505050565b60006001821460e11b9050919050565b828054612f6d90613c2d565b90600052602060002090601f016020900481019282612f8f5760008555612fd6565b82601f10612fa857805160ff1916838001178555612fd6565b82800160010185558215612fd6579182015b82811115612fd5578251825591602001919060010190612fba565b5b509050612fe39190612fe7565b5090565b5b80821115613000576000816000905550600101612fe8565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61304d81613018565b811461305857600080fd5b50565b60008135905061306a81613044565b92915050565b6000602082840312156130865761308561300e565b5b60006130948482850161305b565b91505092915050565b60008115159050919050565b6130b28161309d565b82525050565b60006020820190506130cd60008301846130a9565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561310d5780820151818401526020810190506130f2565b8381111561311c576000848401525b50505050565b6000601f19601f8301169050919050565b600061313e826130d3565b61314881856130de565b93506131588185602086016130ef565b61316181613122565b840191505092915050565b600060208201905081810360008301526131868184613133565b905092915050565b6000819050919050565b6131a18161318e565b81146131ac57600080fd5b50565b6000813590506131be81613198565b92915050565b6000602082840312156131da576131d961300e565b5b60006131e8848285016131af565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061321c826131f1565b9050919050565b61322c81613211565b82525050565b60006020820190506132476000830184613223565b92915050565b61325681613211565b811461326157600080fd5b50565b6000813590506132738161324d565b92915050565b600080604083850312156132905761328f61300e565b5b600061329e85828601613264565b92505060206132af858286016131af565b9150509250929050565b6000602082840312156132cf576132ce61300e565b5b60006132dd84828501613264565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61331b8161318e565b82525050565b600061332d8383613312565b60208301905092915050565b6000602082019050919050565b6000613351826132e6565b61335b81856132f1565b935061336683613302565b8060005b8381101561339757815161337e8882613321565b975061338983613339565b92505060018101905061336a565b5085935050505092915050565b600060208201905081810360008301526133be8184613346565b905092915050565b6133cf8161318e565b82525050565b60006020820190506133ea60008301846133c6565b92915050565b6000806000606084860312156134095761340861300e565b5b600061341786828701613264565b935050602061342886828701613264565b9250506040613439868287016131af565b9150509250925092565b6000819050919050565b61345681613443565b811461346157600080fd5b50565b6000813590506134738161344d565b92915050565b60006020828403121561348f5761348e61300e565b5b600061349d84828501613464565b91505092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6134e882613122565b810181811067ffffffffffffffff82111715613507576135066134b0565b5b80604052505050565b600061351a613004565b905061352682826134df565b919050565b600067ffffffffffffffff821115613546576135456134b0565b5b61354f82613122565b9050602081019050919050565b82818337600083830152505050565b600061357e6135798461352b565b613510565b90508281526020810184848401111561359a576135996134ab565b5b6135a584828561355c565b509392505050565b600082601f8301126135c2576135c16134a6565b5b81356135d284826020860161356b565b91505092915050565b6000602082840312156135f1576135f061300e565b5b600082013567ffffffffffffffff81111561360f5761360e613013565b5b61361b848285016135ad565b91505092915050565b600061362f826131f1565b9050919050565b61363f81613624565b82525050565b600060208201905061365a6000830184613636565b92915050565b6136698161309d565b811461367457600080fd5b50565b60008135905061368681613660565b92915050565b600080604083850312156136a3576136a261300e565b5b60006136b185828601613264565b92505060206136c285828601613677565b9150509250929050565b600067ffffffffffffffff8211156136e7576136e66134b0565b5b6136f082613122565b9050602081019050919050565b600061371061370b846136cc565b613510565b90508281526020810184848401111561372c5761372b6134ab565b5b61373784828561355c565b509392505050565b600082601f830112613754576137536134a6565b5b81356137648482602086016136fd565b91505092915050565b600080600080608085870312156137875761378661300e565b5b600061379587828801613264565b94505060206137a687828801613264565b93505060406137b7878288016131af565b925050606085013567ffffffffffffffff8111156137d8576137d7613013565b5b6137e48782880161373f565b91505092959194509250565b600080fd5b600080fd5b60008083601f8401126138105761380f6134a6565b5b8235905067ffffffffffffffff81111561382d5761382c6137f0565b5b602083019150836020820283011115613849576138486137f5565b5b9250929050565b600080602083850312156138675761386661300e565b5b600083013567ffffffffffffffff81111561388557613884613013565b5b613891858286016137fa565b92509250509250929050565b6000806000604084860312156138b6576138b561300e565b5b60006138c4868287016131af565b935050602084013567ffffffffffffffff8111156138e5576138e4613013565b5b6138f1868287016137fa565b92509250509250925092565b600067ffffffffffffffff821115613918576139176134b0565b5b602082029050602081019050919050565b600061393c613937846138fd565b613510565b9050808382526020820190506020840283018581111561395f5761395e6137f5565b5b835b81811015613988578061397488826131af565b845260208401935050602081019050613961565b5050509392505050565b600082601f8301126139a7576139a66134a6565b5b81356139b7848260208601613929565b91505092915050565b600080604083850312156139d7576139d661300e565b5b600083013567ffffffffffffffff8111156139f5576139f4613013565b5b613a0185828601613992565b925050602083013567ffffffffffffffff811115613a2257613a21613013565b5b613a2e85828601613992565b9150509250929050565b60008083601f840112613a4e57613a4d6134a6565b5b8235905067ffffffffffffffff811115613a6b57613a6a6137f0565b5b602083019150836020820283011115613a8757613a866137f5565b5b9250929050565b60008083601f840112613aa457613aa36134a6565b5b8235905067ffffffffffffffff811115613ac157613ac06137f0565b5b602083019150836020820283011115613add57613adc6137f5565b5b9250929050565b60008060008060408587031215613afe57613afd61300e565b5b600085013567ffffffffffffffff811115613b1c57613b1b613013565b5b613b2887828801613a38565b9450945050602085013567ffffffffffffffff811115613b4b57613b4a613013565b5b613b5787828801613a8e565b925092505092959194509250565b60008060408385031215613b7c57613b7b61300e565b5b6000613b8a85828601613264565b9250506020613b9b85828601613264565b9150509250929050565b613bae81613624565b8114613bb957600080fd5b50565b600081359050613bcb81613ba5565b92915050565b600060208284031215613be757613be661300e565b5b6000613bf584828501613bbc565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613c4557607f821691505b602082108103613c5857613c57613bfe565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613cc78261318e565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613cf957613cf8613c8d565b5b600182019050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613d3a6020836130de565b9150613d4582613d04565b602082019050919050565b60006020820190508181036000830152613d6981613d2d565b9050919050565b6000613d7b8261318e565b9150613d868361318e565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613dbb57613dba613c8d565b5b828201905092915050565b6000613dd18261318e565b9150613ddc8361318e565b925082821015613def57613dee613c8d565b5b828203905092915050565b60008160601b9050919050565b6000613e1282613dfa565b9050919050565b6000613e2482613e07565b9050919050565b613e3c613e3782613211565b613e19565b82525050565b6000613e4e8284613e2b565b60148201915081905092915050565b6000613e688261318e565b9150613e738361318e565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613eac57613eab613c8d565b5b828202905092915050565b600081905092915050565b60008190508160005260206000209050919050565b60008154613ee481613c2d565b613eee8186613eb7565b94506001821660008114613f095760018114613f1a57613f4d565b60ff19831686528186019350613f4d565b613f2385613ec2565b60005b83811015613f4557815481890152600182019150602081019050613f26565b838801955050505b50505092915050565b6000613f61826130d3565b613f6b8185613eb7565b9350613f7b8185602086016130ef565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b6000613fbd600583613eb7565b9150613fc882613f87565b600582019050919050565b6000613fdf8285613ed7565b9150613feb8284613f56565b9150613ff682613fb0565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061405e6026836130de565b915061406982614002565b604082019050919050565b6000602082019050818103600083015261408d81614051565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006140bb82614094565b6140c5818561409f565b93506140d58185602086016130ef565b6140de81613122565b840191505092915050565b60006080820190506140fe6000830187613223565b61410b6020830186613223565b61411860408301856133c6565b818103606083015261412a81846140b0565b905095945050505050565b60008151905061414481613044565b92915050565b6000602082840312156141605761415f61300e565b5b600061416e84828501614135565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006141b18261318e565b91506141bc8361318e565b9250826141cc576141cb614177565b5b828204905092915050565b60006141e28261318e565b91506141ed8361318e565b9250826141fd576141fc614177565b5b828206905092915050565b6000819050919050565b61422361421e82613443565b614208565b82525050565b60006142358285614212565b6020820191506142458284614212565b602082019150819050939250505056fea2646970667358221220677f2f1958c82252b8beb6419cf4c4307594cefa55324e5a0a67a551a62e71f464736f6c634300080d0033000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001400000000000000000000000009467fe8424211beaf0c7e284b3d02c4780d8af140000000000000000000000000000000000000000000000000000000000000190000000000000000000000000000000000000000000000000000000000000138800000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000058d15e176280000000000000000000000000000000000000000000000000000000000000000180000000000000000000000000000000000000000000000000000000000000000f4d65746120476c61646961746f7273000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000054d474c4144000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003268747470733a2f2f6d657461676c61646961746f72732e636f2f756e72657665616c65642f6d657461646174612e6a736f6e0000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102675760003560e01c8063715018a611610144578063bb0c7242116100b6578063d357154e1161007a578063d357154e14610923578063e985e9c51461094c578063f0f4426014610989578063f2fde38b146109b2578063f4a0a528146109db578063f89b3d2b14610a0457610267565b8063bb0c72421461083e578063bce6d67214610867578063bedd1e431461087e578063c87b56dd146108a9578063d1688e38146108e657610267565b8063a22cb46511610108578063a22cb4651461073f578063a414673314610768578063aeef151714610791578063b88d4fde146107bc578063b8dde112146107e5578063ba41b0c61461082257610267565b8063715018a61461067c57806384295aa5146106935780638da5cb5b146106be57806395d89b41146106e957806397b90ad61461071457610267565b806345f7e06e116101dd57806354214f69116101a157806354214f691461054457806361d027b31461056f5780636352211e1461059a57806363820f23146105d75780636817c76c1461061457806370a082311461063f57610267565b806345f7e06e1461045f57806348fece7c146104765780634ad89b5a146104a15780634c261247146104de5780634f558e791461050757610267565b806318160ddd1161022f57806318160ddd1461037757806319908016146103a257806323b872dd146103cd578063367998df146103f65780633ccfd60b1461041f57806342842e0e1461043657610267565b806301ffc9a71461026c57806306fdde03146102a9578063081812fc146102d4578063095ea7b3146103115780630d381a281461033a575b600080fd5b34801561027857600080fd5b50610293600480360381019061028e9190613070565b610a2d565b6040516102a091906130b8565b60405180910390f35b3480156102b557600080fd5b506102be610abf565b6040516102cb919061316c565b60405180910390f35b3480156102e057600080fd5b506102fb60048036038101906102f691906131c4565b610b51565b6040516103089190613232565b60405180910390f35b34801561031d57600080fd5b5061033860048036038101906103339190613279565b610bcd565b005b34801561034657600080fd5b50610361600480360381019061035c91906132b9565b610d0e565b60405161036e91906133a4565b60405180910390f35b34801561038357600080fd5b5061038c610e11565b60405161039991906133d5565b60405180910390f35b3480156103ae57600080fd5b506103b7610e28565b6040516103c491906130b8565b60405180910390f35b3480156103d957600080fd5b506103f460048036038101906103ef91906133f0565b610e3b565b005b34801561040257600080fd5b5061041d60048036038101906104189190613479565b61115d565b005b34801561042b57600080fd5b506104346111e3565b005b34801561044257600080fd5b5061045d600480360381019061045891906133f0565b6112ca565b005b34801561046b57600080fd5b506104746112ea565b005b34801561048257600080fd5b5061048b611392565b60405161049891906130b8565b60405180910390f35b3480156104ad57600080fd5b506104c860048036038101906104c391906131c4565b6113a5565b6040516104d591906133d5565b60405180910390f35b3480156104ea57600080fd5b50610505600480360381019061050091906135db565b6113bd565b005b34801561051357600080fd5b5061052e600480360381019061052991906131c4565b61146e565b60405161053b91906130b8565b60405180910390f35b34801561055057600080fd5b50610559611480565b60405161056691906130b8565b60405180910390f35b34801561057b57600080fd5b50610584611493565b6040516105919190613645565b60405180910390f35b3480156105a657600080fd5b506105c160048036038101906105bc91906131c4565b6114b9565b6040516105ce9190613232565b60405180910390f35b3480156105e357600080fd5b506105fe60048036038101906105f991906132b9565b6114cb565b60405161060b91906133d5565b60405180910390f35b34801561062057600080fd5b506106296114e3565b60405161063691906133d5565b60405180910390f35b34801561064b57600080fd5b50610666600480360381019061066191906132b9565b6114e9565b60405161067391906133d5565b60405180910390f35b34801561068857600080fd5b506106916115a1565b005b34801561069f57600080fd5b506106a8611629565b6040516106b5919061316c565b60405180910390f35b3480156106ca57600080fd5b506106d36116b7565b6040516106e09190613232565b60405180910390f35b3480156106f557600080fd5b506106fe6116e1565b60405161070b919061316c565b60405180910390f35b34801561072057600080fd5b50610729611773565b60405161073691906133d5565b60405180910390f35b34801561074b57600080fd5b506107666004803603810190610761919061368c565b611779565b005b34801561077457600080fd5b5061078f600480360381019061078a91906131c4565b6118f0565b005b34801561079d57600080fd5b506107a6611a56565b6040516107b391906133d5565b60405180910390f35b3480156107c857600080fd5b506107e360048036038101906107de919061376d565b611a5c565b005b3480156107f157600080fd5b5061080c60048036038101906108079190613850565b611acf565b60405161081991906130b8565b60405180910390f35b61083c6004803603810190610837919061389d565b611ba5565b005b34801561084a57600080fd5b50610865600480360381019061086091906139c0565b611eaf565b005b34801561087357600080fd5b5061087c611f9b565b005b34801561088a57600080fd5b50610893612043565b6040516108a091906133d5565b60405180910390f35b3480156108b557600080fd5b506108d060048036038101906108cb91906131c4565b612067565b6040516108dd919061316c565b60405180910390f35b3480156108f257600080fd5b5061090d600480360381019061090891906132b9565b612181565b60405161091a91906133d5565b60405180910390f35b34801561092f57600080fd5b5061094a60048036038101906109459190613ae4565b612199565b005b34801561095857600080fd5b50610973600480360381019061096e9190613b65565b6122c1565b60405161098091906130b8565b60405180910390f35b34801561099557600080fd5b506109b060048036038101906109ab9190613bd1565b612355565b005b3480156109be57600080fd5b506109d960048036038101906109d491906132b9565b612415565b005b3480156109e757600080fd5b50610a0260048036038101906109fd91906131c4565b61250c565b005b348015610a1057600080fd5b50610a2b6004803603810190610a2691906131c4565b612592565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610a8857506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610ab85750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b606060028054610ace90613c2d565b80601f0160208091040260200160405190810160405280929190818152602001828054610afa90613c2d565b8015610b475780601f10610b1c57610100808354040283529160200191610b47565b820191906000526020600020905b815481529060010190602001808311610b2a57829003601f168201915b5050505050905090565b6000610b5c82612672565b610b92576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610bd8826114b9565b90508073ffffffffffffffffffffffffffffffffffffffff16610bf96126d1565b73ffffffffffffffffffffffffffffffffffffffff1614610c5c57610c2581610c206126d1565b6122c1565b610c5b576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60606000610d1b836114e9565b905060008167ffffffffffffffff811115610d3957610d386134b0565b5b604051908082528060200260200182016040528015610d675781602001602082028036833780820191505090505b509050600080600190505b610d7a610e11565b8111610e05578573ffffffffffffffffffffffffffffffffffffffff16610da0826114b9565b73ffffffffffffffffffffffffffffffffffffffff1603610dea5780838381518110610dcf57610dce613c5e565b5b6020026020010181815250508180610de690613cbc565b9250505b83820315610e05578080610dfd90613cbc565b915050610d72565b50819350505050919050565b6000610e1b6126d9565b6001546000540303905090565b600860149054906101000a900460ff1681565b6000610e46826126e2565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610ead576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610eb9846127ae565b91509150610ecf8187610eca6126d1565b6127d0565b610f1b57610ee486610edf6126d1565b6122c1565b610f1a576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610f81576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610f8e8686866001612814565b8015610f9957600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055506110678561104388888761281a565b7c020000000000000000000000000000000000000000000000000000000017612842565b600460008681526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008416036110ed57600060018501905060006004600083815260200190815260200160002054036110eb5760005481146110ea578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611155868686600161286d565b505050505050565b611165612873565b73ffffffffffffffffffffffffffffffffffffffff166111836116b7565b73ffffffffffffffffffffffffffffffffffffffff16146111d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111d090613d50565b60405180910390fd5b80600d8190555050565b6111eb612873565b73ffffffffffffffffffffffffffffffffffffffff166112096116b7565b73ffffffffffffffffffffffffffffffffffffffff161461125f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161125690613d50565b60405180910390fd5b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f193505050501580156112c7573d6000803e3d6000fd5b50565b6112e583838360405180602001604052806000815250611a5c565b505050565b6112f2612873565b73ffffffffffffffffffffffffffffffffffffffff166113106116b7565b73ffffffffffffffffffffffffffffffffffffffff1614611366576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161135d90613d50565b60405180910390fd5b600860159054906101000a900460ff1615600860156101000a81548160ff021916908315150217905550565b600860159054906101000a900460ff1681565b60116020528060005260406000206000915090505481565b6113c5612873565b73ffffffffffffffffffffffffffffffffffffffff166113e36116b7565b73ffffffffffffffffffffffffffffffffffffffff1614611439576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161143090613d50565b60405180910390fd5b80600e908051906020019061144f929190612f61565b506001600860166101000a81548160ff02191690831515021790555050565b600061147982612672565b9050919050565b600860169054906101000a900460ff1681565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60006114c4826126e2565b9050919050565b60106020528060005260406000206000915090505481565b600c5481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611550576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6115a9612873565b73ffffffffffffffffffffffffffffffffffffffff166115c76116b7565b73ffffffffffffffffffffffffffffffffffffffff161461161d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161161490613d50565b60405180910390fd5b611627600061287b565b565b600e805461163690613c2d565b80601f016020809104026020016040519081016040528092919081815260200182805461166290613c2d565b80156116af5780601f10611684576101008083540402835291602001916116af565b820191906000526020600020905b81548152906001019060200180831161169257829003601f168201915b505050505081565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600380546116f090613c2d565b80601f016020809104026020016040519081016040528092919081815260200182805461171c90613c2d565b80156117695780601f1061173e57610100808354040283529160200191611769565b820191906000526020600020905b81548152906001019060200180831161174c57829003601f168201915b5050505050905090565b600a5481565b6117816126d1565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036117e5576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600760006117f26126d1565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661189f6126d1565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516118e491906130b8565b60405180910390a35050565b80600a54816118fd610e11565b6119079190613d70565b111561193f576040517f9fe652b200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600181101561197a576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082816119ca9190613dc6565b600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080831115611a47576040517f4aa1b51b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611a513384612941565b505050565b600b5481565b611a67848484610e3b565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611ac957611a928484848461295f565b611ac8576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b60008282600860159054906101000a900460ff1615611b9957600033604051602001611afb9190613e42565b604051602081830303815290604052805190602001209050611b61838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600d5483612aaf565b611b97576040517f1db1756700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505b60019250505092915050565b8181600860159054906101000a900460ff1615611c6d57600033604051602001611bcf9190613e42565b604051602081830303815290604052805190602001209050611c35838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600d5483612aaf565b611c6b576040517f1db1756700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505b84600a5481611c7a610e11565b611c849190613d70565b1115611cbc576040517f9fe652b200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001811015611cf7576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600b54611d469190613dc6565b9050600860149054906101000a900460ff16611d8e576040517ff47e7f7e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80871115611dc8576040517f4aa1b51b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600c5487611dd69190613e5d565b3414611e0e576040517ff018736900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b86601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611e599190613d70565b601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611ea63388612941565b50505050505050565b611eb7612873565b73ffffffffffffffffffffffffffffffffffffffff16611ed56116b7565b73ffffffffffffffffffffffffffffffffffffffff1614611f2b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f2290613d50565b60405180910390fd5b60005b8251811015611f9657818181518110611f4a57611f49613c5e565b5b602002602001015160116000858481518110611f6957611f68613c5e565b5b60200260200101518152602001908152602001600020819055508080611f8e90613cbc565b915050611f2e565b505050565b611fa3612873565b73ffffffffffffffffffffffffffffffffffffffff16611fc16116b7565b73ffffffffffffffffffffffffffffffffffffffff1614612017576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161200e90613d50565b60405180910390fd5b600860149054906101000a900460ff1615600860146101000a81548160ff021916908315150217905550565b7f000000000000000000000000000000000000000000000000000000000000138881565b606061207282612672565b6120a8576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600860169054906101000a900460ff1661214e57600e80546120c990613c2d565b80601f01602080910402602001604051908101604052809291908181526020018280546120f590613c2d565b80156121425780601f1061211757610100808354040283529160200191612142565b820191906000526020600020905b81548152906001019060200180831161212557829003601f168201915b5050505050905061217c565b600e61215983612ac6565b60405160200161216a929190613fd3565b60405160208183030381529060405290505b919050565b600f6020528060005260406000206000915090505481565b6121a1612873565b73ffffffffffffffffffffffffffffffffffffffff166121bf6116b7565b73ffffffffffffffffffffffffffffffffffffffff1614612215576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161220c90613d50565b60405180910390fd5b60005b848490508110156122ba5782828281811061223657612235613c5e565b5b90506020020135600f600087878581811061225457612253613c5e565b5b905060200201602081019061226991906132b9565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080806122b290613cbc565b915050612218565b5050505050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61235d612873565b73ffffffffffffffffffffffffffffffffffffffff1661237b6116b7565b73ffffffffffffffffffffffffffffffffffffffff16146123d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123c890613d50565b60405180910390fd5b80600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61241d612873565b73ffffffffffffffffffffffffffffffffffffffff1661243b6116b7565b73ffffffffffffffffffffffffffffffffffffffff1614612491576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161248890613d50565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612500576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124f790614074565b60405180910390fd5b6125098161287b565b50565b612514612873565b73ffffffffffffffffffffffffffffffffffffffff166125326116b7565b73ffffffffffffffffffffffffffffffffffffffff1614612588576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161257f90613d50565b60405180910390fd5b80600c8190555050565b61259a612873565b73ffffffffffffffffffffffffffffffffffffffff166125b86116b7565b73ffffffffffffffffffffffffffffffffffffffff161461260e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161260590613d50565b60405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000001388811115612668576040517f9fe652b200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600a8190555050565b60008161267d6126d9565b1115801561268c575060005482105b80156126ca575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b60006001905090565b600080829050806126f16126d9565b11612777576000548110156127765760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603612774575b6000810361276a576004600083600190039350838152602001908152602001600020549050612740565b80925050506127a9565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000806000600690508360005280602052604060002092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8612831868684612c26565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61295b828260405180602001604052806000815250612c2f565b5050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026129856126d1565b8786866040518563ffffffff1660e01b81526004016129a794939291906140e9565b6020604051808303816000875af19250505080156129e357506040513d601f19601f820116820180604052508101906129e0919061414a565b60015b612a5c573d8060008114612a13576040519150601f19603f3d011682016040523d82523d6000602084013e612a18565b606091505b506000815103612a54576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b600082612abc8584612ccc565b1490509392505050565b606060008203612b0d576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612c21565b600082905060005b60008214612b3f578080612b2890613cbc565b915050600a82612b3891906141a6565b9150612b15565b60008167ffffffffffffffff811115612b5b57612b5a6134b0565b5b6040519080825280601f01601f191660200182016040528015612b8d5781602001600182028036833780820191505090505b5090505b60008514612c1a57600182612ba69190613dc6565b9150600a85612bb591906141d7565b6030612bc19190613d70565b60f81b818381518110612bd757612bd6613c5e565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612c1391906141a6565b9450612b91565b8093505050505b919050565b60009392505050565b612c398383612d7f565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612cc757600080549050600083820390505b612c79600086838060010194508661295f565b612caf576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110612c66578160005414612cc457600080fd5b50505b505050565b60008082905060005b8451811015612d74576000858281518110612cf357612cf2613c5e565b5b60200260200101519050808311612d34578281604051602001612d17929190614229565b604051602081830303815290604052805190602001209250612d60565b8083604051602001612d47929190614229565b6040516020818303038152906040528051906020012092505b508080612d6c90613cbc565b915050612cd5565b508091505092915050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612deb576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008203612e25576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612e326000848385612814565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612ea983612e9a600086600061281a565b612ea385612f51565b17612842565b60046000838152602001908152602001600020819055506000819050600083830190505b818060010192508573ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4808210612ecd57806000819055505050612f4c600084838561286d565b505050565b60006001821460e11b9050919050565b828054612f6d90613c2d565b90600052602060002090601f016020900481019282612f8f5760008555612fd6565b82601f10612fa857805160ff1916838001178555612fd6565b82800160010185558215612fd6579182015b82811115612fd5578251825591602001919060010190612fba565b5b509050612fe39190612fe7565b5090565b5b80821115613000576000816000905550600101612fe8565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61304d81613018565b811461305857600080fd5b50565b60008135905061306a81613044565b92915050565b6000602082840312156130865761308561300e565b5b60006130948482850161305b565b91505092915050565b60008115159050919050565b6130b28161309d565b82525050565b60006020820190506130cd60008301846130a9565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561310d5780820151818401526020810190506130f2565b8381111561311c576000848401525b50505050565b6000601f19601f8301169050919050565b600061313e826130d3565b61314881856130de565b93506131588185602086016130ef565b61316181613122565b840191505092915050565b600060208201905081810360008301526131868184613133565b905092915050565b6000819050919050565b6131a18161318e565b81146131ac57600080fd5b50565b6000813590506131be81613198565b92915050565b6000602082840312156131da576131d961300e565b5b60006131e8848285016131af565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061321c826131f1565b9050919050565b61322c81613211565b82525050565b60006020820190506132476000830184613223565b92915050565b61325681613211565b811461326157600080fd5b50565b6000813590506132738161324d565b92915050565b600080604083850312156132905761328f61300e565b5b600061329e85828601613264565b92505060206132af858286016131af565b9150509250929050565b6000602082840312156132cf576132ce61300e565b5b60006132dd84828501613264565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61331b8161318e565b82525050565b600061332d8383613312565b60208301905092915050565b6000602082019050919050565b6000613351826132e6565b61335b81856132f1565b935061336683613302565b8060005b8381101561339757815161337e8882613321565b975061338983613339565b92505060018101905061336a565b5085935050505092915050565b600060208201905081810360008301526133be8184613346565b905092915050565b6133cf8161318e565b82525050565b60006020820190506133ea60008301846133c6565b92915050565b6000806000606084860312156134095761340861300e565b5b600061341786828701613264565b935050602061342886828701613264565b9250506040613439868287016131af565b9150509250925092565b6000819050919050565b61345681613443565b811461346157600080fd5b50565b6000813590506134738161344d565b92915050565b60006020828403121561348f5761348e61300e565b5b600061349d84828501613464565b91505092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6134e882613122565b810181811067ffffffffffffffff82111715613507576135066134b0565b5b80604052505050565b600061351a613004565b905061352682826134df565b919050565b600067ffffffffffffffff821115613546576135456134b0565b5b61354f82613122565b9050602081019050919050565b82818337600083830152505050565b600061357e6135798461352b565b613510565b90508281526020810184848401111561359a576135996134ab565b5b6135a584828561355c565b509392505050565b600082601f8301126135c2576135c16134a6565b5b81356135d284826020860161356b565b91505092915050565b6000602082840312156135f1576135f061300e565b5b600082013567ffffffffffffffff81111561360f5761360e613013565b5b61361b848285016135ad565b91505092915050565b600061362f826131f1565b9050919050565b61363f81613624565b82525050565b600060208201905061365a6000830184613636565b92915050565b6136698161309d565b811461367457600080fd5b50565b60008135905061368681613660565b92915050565b600080604083850312156136a3576136a261300e565b5b60006136b185828601613264565b92505060206136c285828601613677565b9150509250929050565b600067ffffffffffffffff8211156136e7576136e66134b0565b5b6136f082613122565b9050602081019050919050565b600061371061370b846136cc565b613510565b90508281526020810184848401111561372c5761372b6134ab565b5b61373784828561355c565b509392505050565b600082601f830112613754576137536134a6565b5b81356137648482602086016136fd565b91505092915050565b600080600080608085870312156137875761378661300e565b5b600061379587828801613264565b94505060206137a687828801613264565b93505060406137b7878288016131af565b925050606085013567ffffffffffffffff8111156137d8576137d7613013565b5b6137e48782880161373f565b91505092959194509250565b600080fd5b600080fd5b60008083601f8401126138105761380f6134a6565b5b8235905067ffffffffffffffff81111561382d5761382c6137f0565b5b602083019150836020820283011115613849576138486137f5565b5b9250929050565b600080602083850312156138675761386661300e565b5b600083013567ffffffffffffffff81111561388557613884613013565b5b613891858286016137fa565b92509250509250929050565b6000806000604084860312156138b6576138b561300e565b5b60006138c4868287016131af565b935050602084013567ffffffffffffffff8111156138e5576138e4613013565b5b6138f1868287016137fa565b92509250509250925092565b600067ffffffffffffffff821115613918576139176134b0565b5b602082029050602081019050919050565b600061393c613937846138fd565b613510565b9050808382526020820190506020840283018581111561395f5761395e6137f5565b5b835b81811015613988578061397488826131af565b845260208401935050602081019050613961565b5050509392505050565b600082601f8301126139a7576139a66134a6565b5b81356139b7848260208601613929565b91505092915050565b600080604083850312156139d7576139d661300e565b5b600083013567ffffffffffffffff8111156139f5576139f4613013565b5b613a0185828601613992565b925050602083013567ffffffffffffffff811115613a2257613a21613013565b5b613a2e85828601613992565b9150509250929050565b60008083601f840112613a4e57613a4d6134a6565b5b8235905067ffffffffffffffff811115613a6b57613a6a6137f0565b5b602083019150836020820283011115613a8757613a866137f5565b5b9250929050565b60008083601f840112613aa457613aa36134a6565b5b8235905067ffffffffffffffff811115613ac157613ac06137f0565b5b602083019150836020820283011115613add57613adc6137f5565b5b9250929050565b60008060008060408587031215613afe57613afd61300e565b5b600085013567ffffffffffffffff811115613b1c57613b1b613013565b5b613b2887828801613a38565b9450945050602085013567ffffffffffffffff811115613b4b57613b4a613013565b5b613b5787828801613a8e565b925092505092959194509250565b60008060408385031215613b7c57613b7b61300e565b5b6000613b8a85828601613264565b9250506020613b9b85828601613264565b9150509250929050565b613bae81613624565b8114613bb957600080fd5b50565b600081359050613bcb81613ba5565b92915050565b600060208284031215613be757613be661300e565b5b6000613bf584828501613bbc565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613c4557607f821691505b602082108103613c5857613c57613bfe565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613cc78261318e565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613cf957613cf8613c8d565b5b600182019050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613d3a6020836130de565b9150613d4582613d04565b602082019050919050565b60006020820190508181036000830152613d6981613d2d565b9050919050565b6000613d7b8261318e565b9150613d868361318e565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613dbb57613dba613c8d565b5b828201905092915050565b6000613dd18261318e565b9150613ddc8361318e565b925082821015613def57613dee613c8d565b5b828203905092915050565b60008160601b9050919050565b6000613e1282613dfa565b9050919050565b6000613e2482613e07565b9050919050565b613e3c613e3782613211565b613e19565b82525050565b6000613e4e8284613e2b565b60148201915081905092915050565b6000613e688261318e565b9150613e738361318e565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613eac57613eab613c8d565b5b828202905092915050565b600081905092915050565b60008190508160005260206000209050919050565b60008154613ee481613c2d565b613eee8186613eb7565b94506001821660008114613f095760018114613f1a57613f4d565b60ff19831686528186019350613f4d565b613f2385613ec2565b60005b83811015613f4557815481890152600182019150602081019050613f26565b838801955050505b50505092915050565b6000613f61826130d3565b613f6b8185613eb7565b9350613f7b8185602086016130ef565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b6000613fbd600583613eb7565b9150613fc882613f87565b600582019050919050565b6000613fdf8285613ed7565b9150613feb8284613f56565b9150613ff682613fb0565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061405e6026836130de565b915061406982614002565b604082019050919050565b6000602082019050818103600083015261408d81614051565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006140bb82614094565b6140c5818561409f565b93506140d58185602086016130ef565b6140de81613122565b840191505092915050565b60006080820190506140fe6000830187613223565b61410b6020830186613223565b61411860408301856133c6565b818103606083015261412a81846140b0565b905095945050505050565b60008151905061414481613044565b92915050565b6000602082840312156141605761415f61300e565b5b600061416e84828501614135565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006141b18261318e565b91506141bc8361318e565b9250826141cc576141cb614177565b5b828204905092915050565b60006141e28261318e565b91506141ed8361318e565b9250826141fd576141fc614177565b5b828206905092915050565b6000819050919050565b61422361421e82613443565b614208565b82525050565b60006142358285614212565b6020820191506142458284614212565b602082019150819050939250505056fea2646970667358221220677f2f1958c82252b8beb6419cf4c4307594cefa55324e5a0a67a551a62e71f464736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001400000000000000000000000009467fe8424211beaf0c7e284b3d02c4780d8af140000000000000000000000000000000000000000000000000000000000000190000000000000000000000000000000000000000000000000000000000000138800000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000058d15e176280000000000000000000000000000000000000000000000000000000000000000180000000000000000000000000000000000000000000000000000000000000000f4d65746120476c61646961746f7273000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000054d474c4144000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003268747470733a2f2f6d657461676c61646961746f72732e636f2f756e72657665616c65642f6d657461646174612e6a736f6e0000000000000000000000000000
-----Decoded View---------------
Arg [0] : name (string): Meta Gladiators
Arg [1] : symbol (string): MGLAD
Arg [2] : _treasury (address): 0x9467FE8424211beAF0C7e284B3D02C4780D8AF14
Arg [3] : _mintTotalLimit (uint256): 400
Arg [4] : _mintTotalLimitMax (uint256): 5000
Arg [5] : _mintIndividualLimit (uint256): 4
Arg [6] : _mintPrice (uint256): 25000000000000000
Arg [7] : _ipfsUrl (string): https://metagladiators.co/unrevealed/metadata.json
-----Encoded View---------------
15 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [2] : 0000000000000000000000009467fe8424211beaf0c7e284b3d02c4780d8af14
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000190
Arg [4] : 0000000000000000000000000000000000000000000000000000000000001388
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [6] : 0000000000000000000000000000000000000000000000000058d15e17628000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [8] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [9] : 4d65746120476c61646961746f72730000000000000000000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [11] : 4d474c4144000000000000000000000000000000000000000000000000000000
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000032
Arg [13] : 68747470733a2f2f6d657461676c61646961746f72732e636f2f756e72657665
Arg [14] : 616c65642f6d657461646174612e6a736f6e0000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.