ETH Price: $3,858.18 (-1.37%)

Token

LilVillains (LILV)
 

Overview

Max Total Supply

7,587 LILV

Holders

1,942

Market

Volume (24H)

0.004 ETH

Min Price (24H)

$7.72 @ 0.002000 ETH

Max Price (24H)

$7.72 @ 0.002000 ETH
Balance
1 LILV
0xecb25c2427ea37758954d2f43fb76630612c4aa3
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.

Contract Source Code Verified (Exact Match)

Contract Name:
LilVillains

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 32 : LilVillains.sol
// SPDX-License-Identifier: CC-BY-NC-ND-4.0
// ”I have read and accept the Terms of service (link: https://lilheroes.io/tos) and privacy policy (https://lilheroes.io/privacy)”

pragma solidity ^0.8.9;

import '@openzeppelin/contracts/access/AccessControl.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
import '@gm2/blockchain/src/contracts/GM721.sol';
import '@gm2/blockchain/src/contracts/GM2981.sol';
import { TransferIsNotSupported } from '@gm2/blockchain/src/errors/GM721Errors.sol';
import { Royalty } from '@gm2/blockchain/src/structs/DynamicMetadataStructs.sol';
import './common/contracts/GMDynamicSC.sol';
import './interfaces/ILilCollection.sol';
import './errors/LilVillainsErrors.sol';

contract LilVillains is GM2981, AccessControl, GM721, GMDynamicSC, Ownable, ILilCollection {
  bytes32 public constant MINTER_ROLE = keccak256('MINTER_ROLE');
  bytes32 public constant ALTER_ATTR_ROLE = keccak256('ALTER_ATTR_ROLE');
  bytes32 public constant ALTER_IMAGE_ROLE = keccak256('ALTER_IMAGE_ROLE');
  uint32 private constant MAX_SUPPLY = 7777;
  bool revealed = false;
  string public contractURI;

  string[10] traitTypes = ['Back', 'Mouth', 'Clothes', 'Ears', 'Helmet', 'Nose', 'Eyes', 'Accessory', 'Hat', 'Skin'];

  constructor(
    address villainMinter,
    address royaltyAddressToSet,
    string memory baseURI,
    string memory collectionDescription,
    string memory contractURI_
  ) GM721('LilVillains', 'LILV') GM2981(royaltyAddressToSet, 800) GMDynamicSC(baseURI, collectionDescription) {
    //8% of royalty
    contractURI = contractURI_;
    _grantRole(DEFAULT_ADMIN_ROLE, msg.sender);
    _grantRole(ALTER_ATTR_ROLE, villainMinter);
    _grantRole(ALTER_IMAGE_ROLE, msg.sender);
    _grantRole(MINTER_ROLE, villainMinter);
  }

  modifier onlyTokenExists(uint256 tokenId) {
    if (!_exists(tokenId)) {
      revert TokenDoesNotExists(tokenId);
    }
    _;
  }

  function setContractURI(string calldata newContractURI) external onlyRole(DEFAULT_ADMIN_ROLE) {
    contractURI = newContractURI;
  }

  function setBaseURI(string calldata newBaseUri) external onlyRole(DEFAULT_ADMIN_ROLE) {
    if (revealed) {
      revert CollectionAlreadyRevealed();
    }
    _defaultBaseURI = newBaseUri;
    revealed = true;
  }

  function batchMint(address to, uint256[] calldata tokenIds) external onlyRole(MINTER_ROLE) {
    super._batchMint(to, tokenIds);
  }

  function setBaseAttributes(NFTBaseAttributes[] calldata nFTsBaseAttributes) external onlyRole(ALTER_ATTR_ROLE) {
    for (uint256 i = 0; i < nFTsBaseAttributes.length; i++) {
      NFTBaseAttributes memory nFTBaseAttributes = nFTsBaseAttributes[i];
      Attribute[] memory baseAttributes = new Attribute[](nFTBaseAttributes.values.length);
      for (uint256 j = 0; j < baseAttributes.length; j++) {
        baseAttributes[j] = Attribute('', traitTypes[j], nFTBaseAttributes.values[j]);
      }
      _setBaseAttributes(nFTBaseAttributes.id, baseAttributes);
    }
  }

  function setRoyaltyAddress(address newRoyaltyAddress) external onlyRole(DEFAULT_ADMIN_ROLE) {
    _royaltyAddress = newRoyaltyAddress;
  }

  function tokenURI(uint256 tokenId) public view virtual override onlyTokenExists(tokenId) returns (string memory) {
    return sCBehavior.getTokenURI(tokenId);
  }

  function getDynamicSCAddresses() public view override onlyRole(DEFAULT_ADMIN_ROLE) returns (address[2] memory) {
    return super.getDynamicSCAddresses();
  }

  function setDefaultImagePath(string calldata newDefaultImagePath) public onlyRole(DEFAULT_ADMIN_ROLE) {
    _defaultImagePath = newDefaultImagePath;
  }

  function setAttributesControllerSC(address newAttributesControllerSC) public onlyRole(DEFAULT_ADMIN_ROLE) {
    _setAttributesControllerSC(newAttributesControllerSC);
  }

  function setTransferControllerSC(address newTransferControllerSC) public onlyRole(DEFAULT_ADMIN_ROLE) {
    _setTransferControllerSC(newTransferControllerSC);
  }

  function setImagePath(uint256 tokenId, string memory newImageURL) public onlyRole(ALTER_IMAGE_ROLE) {
    _setImagePath(tokenId, newImageURL);
  }

  function supportsInterface(bytes4 interfaceId) public view override(GM2981, AccessControl, ERC721) returns (bool) {
    return interfaceId == type(ILilCollection).interfaceId || super.supportsInterface(interfaceId);
  }

  function transferOwnership(address newOwner)
    public
    override
    onlyRole(DEFAULT_ADMIN_ROLE)
    onlyNotZeroAddress(newOwner)
  {
    super.transferOwnership(newOwner);
    grantRole(DEFAULT_ADMIN_ROLE, newOwner);
    revokeRole(DEFAULT_ADMIN_ROLE, msg.sender);
  }

  function _beforeBatchMint(address, uint256[] calldata tokenIds) internal view override(GM721) {
    uint256 currentSupply = totalSupply();
    uint256 supplyRequired = currentSupply + tokenIds.length;
    if (supplyRequired > MAX_SUPPLY) {
      revert SupplyIsNotEnought(tokenIds.length, currentSupply, MAX_SUPPLY);
    }
  }

  function _beforeRoyaltyInfo(uint256 tokenId) internal view override(GM2981) onlyTokenExists(tokenId) {}

  function _beforeTokenTransfer(
    address from,
    address to,
    uint256 tokenId
  ) internal view override(ERC721) {
    if (!sCBehavior.canTokenBeTransferred(from, to, tokenId)) {
      revert TokenIsBlockedToTransfer(tokenId);
    }
  }

  function _getRoyaltiesData() internal view override returns (Royalty memory) {
    return Royalty(_royaltyAddress, _royaltyPercentage);
  }

  function _beforeTransferBlockedToken(address to, uint256 tokenId) internal override {
    if (!_checkERC721Compatibility(msg.sender, to, tokenId, '')) {
      revert TransferIsNotSupported(to, tokenId);
    }
  }

  function _transferBlockedToken(address to, uint256 tokenId) internal override {
    _transfer(msg.sender, to, tokenId);
  }
}

File 2 of 32 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role, _msgSender());
        _;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view virtual override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 3 of 32 : Ownable.sol
// 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);
    }
}

File 4 of 32 : GM721.sol
// SPDX-License-Identifier: MIT
// GM2 Contracts (last updated v0.0.1)

pragma solidity ^0.8.9;

import '@openzeppelin/contracts/token/ERC721/ERC721.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol';
import '@openzeppelin/contracts/utils/Address.sol';
import '../errors/GM721Errors.sol';

contract GM721 is ERC721, ERC721Burnable {
  using Address for address;
  uint256 internal _supply = 0;

  constructor(string memory name_, string memory symbol_) ERC721(name_, symbol_) {}

  function totalSupply() public view returns (uint256) {
    return _supply;
  }

  function _batchMint(address to, uint256[] calldata tokenIds) internal {
    _beforeBatchMint(to, tokenIds);

    uint256 tokensToMint = tokenIds.length;

    _supply += tokensToMint;
    for (uint256 index = 0; index < tokensToMint; index = _increment(index)) {
      _safeMint(to, tokenIds[index]);
    }
  }

  function burn(uint256 tokenId) public override {
    super.burn(tokenId);
    _supply--;
  }

  function _beforeBatchMint(address, uint256[] calldata) internal virtual {}

  function _increment(uint256 i) internal pure returns (uint256) {
    return i = i + 1;
  }

  function _checkERC721Compatibility(
    address from,
    address to,
    uint256 tokenId,
    bytes memory _data
  ) internal returns (bool) {
    if (to.isContract()) {
      try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
        return retval == IERC721Receiver.onERC721Received.selector;
      } catch (bytes memory reason) {
        if (reason.length == 0) {
          revert TransferIsNotSupported(to, tokenId);
        } else {
          assembly {
            revert(add(32, reason), mload(reason))
          }
        }
      }
    } else {
      return true;
    }
  }
}

File 5 of 32 : GM2981.sol
// SPDX-License-Identifier: MIT
// GM2 Contracts (last updated v0.0.1)

pragma solidity ^0.8.9;

import '@openzeppelin/contracts/interfaces/IERC2981.sol';
import '@openzeppelin/contracts/utils/introspection/ERC165.sol';

contract GM2981 is IERC2981, ERC165 {
  address internal _royaltyAddress;
  uint16 internal _royaltyPercentage;

  constructor(address royaltyAddress_, uint16 royaltyPercentage_) {
    require(royaltyAddress_ != address(0), 'Invalid royalty address');
    require(royaltyPercentage_ <= 2000, 'Invalid royalty percentage(MAX:2000)');
    _royaltyAddress = royaltyAddress_;
    _royaltyPercentage = royaltyPercentage_;
  }

  function royaltyInfo(uint256 tokenId, uint256 salePrice)
    external
    view
    override
    returns (address receiver, uint256 royaltyAmount)
  {
    _beforeRoyaltyInfo(tokenId);
    receiver = _royaltyAddress;
    royaltyAmount = _calculatePercentage(salePrice, _royaltyPercentage);
  }

  function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
    return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId);
  }

  function _beforeRoyaltyInfo(uint256) internal view virtual {}

  function _calculatePercentage(uint256 value, uint16 percent) internal pure returns (uint256) {
    return (value * percent) / 10000; //HUNDRED PERCENT is 10000
  }
}

File 6 of 32 : GM721Errors.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
// Invalid operation. To doesn't implements IERC721Receiver(to).onERC721Received
// @param to to address.
// @param tokenId sent tokenId.
error TransferIsNotSupported(address to, uint256 tokenId);

File 7 of 32 : DynamicMetadataStructs.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
struct Attribute {
  string displayType;
  string traitType;
  string value;
}

struct Royalty {
  address recipientAddress;
  uint16 feePercentage; // INFO: Use two decimal => 100 = 1%
}

struct Metadata {
  string description;
  string name;
  Tuple[] additionalProperties;
  Attribute[] attributes;
}

struct Tuple {
  string key;
  string value;
}

struct SCBehavior {
  function(uint256) internal view returns (string memory) getTokenURI;
  function(address, address, uint256) internal view returns (bool) canTokenBeTransferred;
  function(address, uint256) internal transferBlockedToken;
}

File 8 of 32 : GMDynamicSC.sol
// SPDX-License-Identifier: MIT
// GM2 Contracts (last updated v0.0.1)
pragma solidity ^0.8.9;

import '@openzeppelin/contracts/utils/introspection/IERC165.sol';
import '@openzeppelin/contracts/utils/Strings.sol';
import '@gm2/blockchain/src/interfaces/IGMTransferController.sol';
import '@gm2/blockchain/src/interfaces/IGMAttributesController.sol';
import '@gm2/blockchain/src/errors/AddressValidatorErrors.sol';
import { Attribute, Royalty, SCBehavior } from '@gm2/blockchain/src/structs/DynamicMetadataStructs.sol';
import { Metadata as MetadataV1 } from '../structs/DynamicMetadataStructs.sol';

import '../libraries/DynamicMetadata.sol';
import '../errors/DynamicMetadataErrors.sol';

abstract contract GMDynamicSC {
  using Strings for uint256;
  using DynamicMetadata for Attribute[];
  using DynamicMetadata for MetadataV1;

  mapping(uint256 => Attribute[]) _baseAttributesDictionary;
  mapping(uint256 => string) _imageURLDictionary;
  address _attributesControllerSC;
  address _transferControllerSC;
  string _defaultBaseURI;
  string _defaultImagePath;
  string _metadataDescription;

  SCBehavior sCBehavior = SCBehavior(_defaultTokenURI, _defaultCanTokenBeTransferred, _defaultTransferBlockedToken);

  constructor(string memory baseURI, string memory description) {
    _defaultBaseURI = baseURI;
    _metadataDescription = description;
  }

  modifier onlyNotZeroAddress(address addr) {
    if (addr == address(0)) {
      revert ZeroAddressNotSupported();
    }
    _;
  }

  modifier onlyIfSupports(address addr, bytes4 interfaceId) {
    if (IERC165(addr).supportsInterface(interfaceId) == false) {
      revert InterfaceIsNotImplemented(addr, interfaceId);
    }
    _;
  }

  function transferBlockedToken(address to, uint256 tokenId) public onlyNotZeroAddress(to) {
    sCBehavior.transferBlockedToken(to, tokenId);
  }

  function getDynamicSCAddresses() public view virtual returns (address[2] memory) {
    return [_attributesControllerSC, _transferControllerSC];
  }

  function _setAttributesControllerSC(address newAttributesControllerSC)
    internal
    virtual
    onlyNotZeroAddress(newAttributesControllerSC)
    onlyIfSupports(newAttributesControllerSC, type(IGMAttributesController).interfaceId)
  {
    _beforeSetAttributesControllerSC(newAttributesControllerSC);
    _attributesControllerSC = newAttributesControllerSC;
    sCBehavior.getTokenURI = _getDynamicTokenURI;
  }

  function _beforeSetAttributesControllerSC(address) internal virtual {
    if (bytes(_defaultImagePath).length == 0) {
      revert DefaultImagePathRequired();
    }
  }

  function _setTransferControllerSC(address newTransferControllerSC)
    internal
    virtual
    onlyNotZeroAddress(newTransferControllerSC)
    onlyIfSupports(newTransferControllerSC, type(IGMTransferController).interfaceId)
  {
    _beforeSetTransferControllerSC(newTransferControllerSC);
    _transferControllerSC = newTransferControllerSC;
    sCBehavior.canTokenBeTransferred = _dynamicCanTokenBeTransferred;
    sCBehavior.transferBlockedToken = _dynamicTransferBlockedToken;
  }

  function _beforeSetTransferControllerSC(address) internal virtual {}

  function _setImagePath(uint256 tokenId, string memory newImageURL) internal virtual {
    _beforeSetImagePath(tokenId, newImageURL);
    _imageURLDictionary[tokenId] = newImageURL;
  }

  function _beforeSetImagePath(uint256 tokenId, string memory newImageURL) internal virtual {
    if (_baseAttributesDictionary[tokenId].length == 0) {
      revert CannotSetImageWithoutBaseAttributes(tokenId, newImageURL);
    }
  }

  function _setBaseAttributes(uint256 tokenId, Attribute[] memory newBaseAttributes) internal virtual {
    _beforeSetBaseAttributes(tokenId, newBaseAttributes);
    _baseAttributesDictionary[tokenId].appendBaseAttributes(newBaseAttributes);
  }

  function _beforeSetBaseAttributes(uint256 tokenId, Attribute[] memory) internal virtual {
    if (_baseAttributesDictionary[tokenId].length != 0) {
      revert AlreadyHaveBaseAttributes(tokenId);
    }
  }

  function _dynamicTransferBlockedToken(address to, uint256 tokenId) internal {
    _beforeTransferBlockedToken(to, tokenId);
    IGMTransferController(_transferControllerSC).bypassTokenId(address(this), tokenId);
    _transferBlockedToken(to, tokenId);
    IGMTransferController(_transferControllerSC).removeBypassTokenId(address(this), tokenId);
  }

  function _beforeTransferBlockedToken(address to, uint256 tokenId) internal virtual {}

  function _transferBlockedToken(address to, uint256 tokenId) internal virtual {}

  function _getRoyaltiesData() internal view virtual returns (Royalty memory) {}

  function _getDynamicTokenURI(uint256 tokenId) internal view returns (string memory) {
    string memory tokenURI = _defaultTokenURI(tokenId);
    Attribute[] memory attributes = _baseAttributesDictionary[tokenId];

    // INFO: Has Base attributes
    if (attributes.length != 0) {
      Attribute[] memory dynamicAttributes = IGMAttributesController(_attributesControllerSC).getDynamicAttributes(
        address(this),
        tokenId
      );

      // INFO: Has dynamic attributes
      if (dynamicAttributes.length > 0) {
        attributes = _baseAttributesDictionary[tokenId].concatDynamicAttributes(dynamicAttributes);
      }

      string memory metadataImageURL = _getImageURL(tokenId);
      string memory metadataName = string(abi.encodePacked('#', tokenId.toString()));
      Royalty memory royalty = _getRoyaltiesData();

      MetadataV1 memory metadata = MetadataV1(
        _metadataDescription,
        metadataImageURL,
        metadataName,
        attributes,
        royalty
      );

      tokenURI = metadata.toBase64URI();
    }

    return tokenURI;
  }

  // INFO: Behavior dynamic methods
  function _dynamicCanTokenBeTransferred(
    address from,
    address to,
    uint256 tokenId
  ) private view returns (bool) {
    return IGMTransferController(_transferControllerSC).canTokenBeTransferred(address(this), from, to, tokenId);
  }

  function _getImageURL(uint256 tokenId) private view returns (string memory) {
    string memory imagePath = string(abi.encodePacked(_defaultImagePath, tokenId.toString()));
    if (bytes(_imageURLDictionary[tokenId]).length > 0) {
      // INFO: TokenID should be in the custom image path
      imagePath = _imageURLDictionary[tokenId];
    }
    return imagePath;
  }

  // INFO: Default behavior methods
  function _defaultTokenURI(uint256 tokenId) private view returns (string memory) {
    return string(abi.encodePacked(_defaultBaseURI, tokenId.toString()));
  }

  function _defaultCanTokenBeTransferred(
    address,
    address,
    uint256
  ) private pure returns (bool) {
    return true;
  }

  function _defaultTransferBlockedToken(address, uint256) private pure {
    revert MethodNotSupported('TransferBlockedToken');
  }
}

File 9 of 32 : ILilCollection.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import { NFTBaseAttributes } from '../structs/LilVillainsStructs.sol';

interface ILilCollection {
  function batchMint(address to, uint256[] calldata tokenIds) external;

  function setBaseAttributes(NFTBaseAttributes[] memory nFTsBaseAttributes) external;
}

File 10 of 32 : LilVillainsErrors.sol
// SPDX-License-Identifier: CC-BY-NC-ND-4.0
pragma solidity ^0.8.9;

// Invalid operation. Collection was already revealed
error CollectionAlreadyRevealed();
// Invalid operation. Token does not exists
// @param tokenId sent tokenId.
error TokenDoesNotExists(uint256 tokenId);
// Invalid operation. Not enought supply
// @param amountOfTokensToMint sent amount of tokensToMint.
// @param currentSupply currentSupply.
// @param maxSupportedSupply maxSupportedSupply.
error SupplyIsNotEnought(uint256 amountOfTokensToMint, uint256 currentSupply, uint256 maxSupportedSupply);
// Invalid operation. Token can't be transfered because is blocked
// @param tokenId sent tokenId.
error TokenIsBlockedToTransfer(uint256 tokenId);

File 11 of 32 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

File 12 of 32 : Context.sol
// 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;
    }
}

File 13 of 32 : Strings.sol
// 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);
    }
}

File 14 of 32 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 15 of 32 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 16 of 32 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

    // Mapping from owner to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);

        _afterTokenTransfer(address(0), to, tokenId);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);

        _afterTokenTransfer(owner, address(0), tokenId);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 17 of 32 : ERC721Burnable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Burnable.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "../../../utils/Context.sol";

/**
 * @title ERC721 Burnable Token
 * @dev ERC721 Token that can be irreversibly burned (destroyed).
 */
abstract contract ERC721Burnable is Context, ERC721 {
    /**
     * @dev Burns `tokenId`. See {ERC721-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    function burn(uint256 tokenId) public virtual {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved");
        _burn(tokenId);
    }
}

File 18 of 32 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 19 of 32 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;
}

File 20 of 32 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 21 of 32 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 22 of 32 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be payed in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

File 23 of 32 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol)

pragma solidity ^0.8.0;

import "../utils/introspection/IERC165.sol";

File 24 of 32 : IGMTransferController.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import '@openzeppelin/contracts/utils/introspection/IERC165.sol';
import '@openzeppelin/contracts-upgradeable/access/IAccessControlUpgradeable.sol';

interface IGMTransferController is IERC165, IAccessControlUpgradeable {
  function canTokenBeTransferred(
    address collectionAddress,
    address from,
    address to,
    uint256 tokenId
  ) external view returns (bool);

  function bypassTokenId(address collectionAddress, uint256 tokenId) external;

  function removeBypassTokenId(address collectionAddress, uint256 tokenId) external;
}

File 25 of 32 : IGMAttributesController.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import '@openzeppelin/contracts/utils/introspection/IERC165.sol';
import { Attribute } from '../structs/DynamicMetadataStructs.sol';

interface IGMAttributesController is IERC165 {
  function getDynamicAttributes(address from, uint256 tokenId) external view returns (Attribute[] memory attributes);
}

File 26 of 32 : AddressValidatorErrors.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

// Invalid address sent. It doesn't implements the require interface
// @param addressSent sent address.
// @param interfaceRequired required interface.
error InterfaceIsNotImplemented(address addressSent, bytes4 interfaceRequired);
// Invalid address sent. Needed a not zero address
error ZeroAddressNotSupported();

File 27 of 32 : DynamicMetadataStructs.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import { Attribute, Royalty, SCBehavior } from '@gm2/blockchain/src/structs/DynamicMetadataStructs.sol';

struct Metadata {
  string description;
  string image;
  string name;
  Attribute[] attributes;
  Royalty royalty;
}

File 28 of 32 : DynamicMetadata.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import '@openzeppelin/contracts/utils/Base64.sol';
import '@openzeppelin/contracts/utils/Strings.sol';
import { Attribute, Royalty } from '@gm2/blockchain/src/structs/DynamicMetadataStructs.sol';
import { Metadata as MetadataV1 } from '../structs/DynamicMetadataStructs.sol';

library DynamicMetadata {
  using Strings for uint16;

  // Returns a copy of the concated attributes
  function concatDynamicAttributes(Attribute[] calldata baseAttributes, Attribute[] calldata dynamicAttributes)
    public
    pure
    returns (Attribute[] memory)
  {
    uint256 countOfAttributes = baseAttributes.length + dynamicAttributes.length;
    Attribute[] memory allAttributes = new Attribute[](countOfAttributes);
    for (uint256 i = 0; i < baseAttributes.length; i++) {
      allAttributes[i] = baseAttributes[i];
    }

    for (uint256 i = 0; i < dynamicAttributes.length; i++) {
      allAttributes[baseAttributes.length + i] = dynamicAttributes[i];
    }

    return allAttributes;
  }

  //
  function appendBaseAttributes(Attribute[] storage baseAttributes, Attribute[] calldata newBaseAttributes) public {
    for (uint256 i = 0; i < newBaseAttributes.length; i++) {
      baseAttributes.push(newBaseAttributes[i]);
    }
  }

  function toBytes(Attribute memory attribute) public pure returns (bytes memory) {
    bytes memory attributesInByte = '{';
    if (bytes(attribute.displayType).length > 0) {
      attributesInByte = bytes.concat(
        attributesInByte,
        abi.encodePacked('"display_type":"', attribute.displayType, '",')
      );
    }

    attributesInByte = bytes.concat(
      attributesInByte,
      //TODO: ver como hacemos con el manejo de las comillas para los numeros
      abi.encodePacked('"trait_type":"', attribute.traitType, '",', '"value":"', attribute.value, '"')
    );

    return bytes.concat(attributesInByte, '}');
  }

  //INFO: This method assumes that attributesToMap has a length greather than 0
  function mapToBytes(Attribute[] calldata attributesToMap) public pure returns (bytes memory) {
    bytes memory attributesInBytes = '"attributes":[';

    for (uint32 i = 0; i < attributesToMap.length - 1; i++) {
      attributesInBytes = bytes.concat(attributesInBytes, toBytes(attributesToMap[i]), ',');
    }
    attributesInBytes = bytes.concat(attributesInBytes, toBytes(attributesToMap[attributesToMap.length - 1]), ']');

    return attributesInBytes;
  }

  //INFO: This method assumes that metadata.attributes has a length greather than 0
  function toBase64URI(MetadataV1 calldata metadata) public pure returns (string memory) {
    bytes memory descriptionInBytes = keyValueToJsonInBytes('description', metadata.description);
    bytes memory imageInBytes = keyValueToJsonInBytes('image', metadata.image);
    bytes memory nameInBytes = keyValueToJsonInBytes('name', metadata.name);
    bytes memory attributesInBytes = mapToBytes(metadata.attributes);
    bytes memory jsonInBytes = bytes.concat(
      '{',
      descriptionInBytes,
      ',',
      imageInBytes,
      ',',
      nameInBytes,
      ',',
      attributesInBytes
    );
    // INFO: If has royalties set
    if (metadata.royalty.feePercentage != 0) {
      bytes memory royaltyFeeInBytes = keyValueToJsonInBytes(
        'seller_fee_basis_points', // INFO: Open see key for royalties
        metadata.royalty.feePercentage.toString()
      );
      bytes memory royaltyRecipientInBytes = keyValueToJsonInBytes(
        'fee_recipient', // INFO: Open see key for royalties
        Strings.toHexString(uint256(uint160(metadata.royalty.recipientAddress)), 20)
      );
      jsonInBytes = bytes.concat(jsonInBytes, ',', royaltyFeeInBytes, ',', royaltyRecipientInBytes);
    }

    jsonInBytes = bytes.concat(jsonInBytes, '}');

    return string(abi.encodePacked('data:application/json;base64,', Base64.encode(jsonInBytes)));
  }

  function keyValueToJsonInBytes(string memory key, string memory value) public pure returns (bytes memory) {
    return bytes.concat('"', bytes(key), '":"', bytes(value), '"');
  }
}

File 29 of 32 : DynamicMetadataErrors.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
// Invalid operation. Needed _defaultImagePath to be set
error DefaultImagePathRequired();
// Invalid operation. Can't set imagePath to token without baseAttributes'
// @param tokenId sent tokenId.
// @param imagePath sent imagePath.
error CannotSetImageWithoutBaseAttributes(uint256 tokenId, string imagePath);
// Invalid operation. Token already has base attributes set.
// @param tokenId sent tokenId.
error AlreadyHaveBaseAttributes(uint256 tokenId);
// Invalid operation. Method is not supported yet.
// @param method method that wants to be executed.
error MethodNotSupported(string method);

File 30 of 32 : IAccessControlUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControlUpgradeable {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

File 31 of 32 : Base64.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Base64.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides a set of functions to operate with Base64 strings.
 *
 * _Available since v4.5._
 */
library Base64 {
    /**
     * @dev Base64 Encoding/Decoding Table
     */
    string internal constant _TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

    /**
     * @dev Converts a `bytes` to its Bytes64 `string` representation.
     */
    function encode(bytes memory data) internal pure returns (string memory) {
        /**
         * Inspired by Brecht Devos (Brechtpd) implementation - MIT licence
         * https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol
         */
        if (data.length == 0) return "";

        // Loads the table into memory
        string memory table = _TABLE;

        // Encoding takes 3 bytes chunks of binary data from `bytes` data parameter
        // and split into 4 numbers of 6 bits.
        // The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up
        // - `data.length + 2`  -> Round up
        // - `/ 3`              -> Number of 3-bytes chunks
        // - `4 *`              -> 4 characters for each chunk
        string memory result = new string(4 * ((data.length + 2) / 3));

        assembly {
            // Prepare the lookup table (skip the first "length" byte)
            let tablePtr := add(table, 1)

            // Prepare result pointer, jump over length
            let resultPtr := add(result, 32)

            // Run over the input, 3 bytes at a time
            for {
                let dataPtr := data
                let endPtr := add(data, mload(data))
            } lt(dataPtr, endPtr) {

            } {
                // Advance 3 bytes
                dataPtr := add(dataPtr, 3)
                let input := mload(dataPtr)

                // To write each character, shift the 3 bytes (18 bits) chunk
                // 4 times in blocks of 6 bits for each character (18, 12, 6, 0)
                // and apply logical AND with 0x3F which is the number of
                // the previous character in the ASCII table prior to the Base64 Table
                // The result is then added to the table to get the character to write,
                // and finally write it in the result pointer but with a left shift
                // of 256 (1 byte) - 8 (1 ASCII char) = 248 bits

                mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance
            }

            // When data `bytes` is not exactly 3 bytes long
            // it is padded with `=` characters at the end
            switch mod(mload(data), 3)
            case 1 {
                mstore8(sub(resultPtr, 1), 0x3d)
                mstore8(sub(resultPtr, 2), 0x3d)
            }
            case 2 {
                mstore8(sub(resultPtr, 1), 0x3d)
            }
        }

        return result;
    }
}

File 32 of 32 : LilVillainsStructs.sol
// SPDX-License-Identifier: CC-BY-NC-ND-4.0
pragma solidity ^0.8.9;

struct NFTBaseAttributes {
  uint256 id;
  //INFO: Each position in this arrays represent an attribute
  string[] values;
}

struct NFTBaseAttributesRequest {
  NFTBaseAttributes[] nFTsBaseAttributes;
}

struct Stage {
  string name;
  uint256 price;
  uint32 maxAmount;
  bytes32 root;
  mapping(address => uint32) minters;
  function(uint32, uint32, bytes32[] calldata, bytes calldata) internal beforeMint;
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {
    "contracts/common/libraries/DynamicMetadata.sol": {
      "DynamicMetadata": "0x70ccd15df4b429ac2dc5f6a4103670b8b52e9d90"
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"villainMinter","type":"address"},{"internalType":"address","name":"royaltyAddressToSet","type":"address"},{"internalType":"string","name":"baseURI","type":"string"},{"internalType":"string","name":"collectionDescription","type":"string"},{"internalType":"string","name":"contractURI_","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"AlreadyHaveBaseAttributes","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"imagePath","type":"string"}],"name":"CannotSetImageWithoutBaseAttributes","type":"error"},{"inputs":[],"name":"CollectionAlreadyRevealed","type":"error"},{"inputs":[],"name":"DefaultImagePathRequired","type":"error"},{"inputs":[{"internalType":"address","name":"addressSent","type":"address"},{"internalType":"bytes4","name":"interfaceRequired","type":"bytes4"}],"name":"InterfaceIsNotImplemented","type":"error"},{"inputs":[{"internalType":"string","name":"method","type":"string"}],"name":"MethodNotSupported","type":"error"},{"inputs":[{"internalType":"uint256","name":"amountOfTokensToMint","type":"uint256"},{"internalType":"uint256","name":"currentSupply","type":"uint256"},{"internalType":"uint256","name":"maxSupportedSupply","type":"uint256"}],"name":"SupplyIsNotEnought","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"TokenDoesNotExists","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"TokenIsBlockedToTransfer","type":"error"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"TransferIsNotSupported","type":"error"},{"inputs":[],"name":"ZeroAddressNotSupported","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":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":[],"name":"ALTER_ATTR_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ALTER_IMAGE_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"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":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"batchMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDynamicSCAddresses","outputs":[{"internalType":"address[2]","name":"","type":"address[2]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"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":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAttributesControllerSC","type":"address"}],"name":"setAttributesControllerSC","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"string[]","name":"values","type":"string[]"}],"internalType":"struct NFTBaseAttributes[]","name":"nFTsBaseAttributes","type":"tuple[]"}],"name":"setBaseAttributes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseUri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newContractURI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newDefaultImagePath","type":"string"}],"name":"setDefaultImagePath","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"newImageURL","type":"string"}],"name":"setImagePath","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newRoyaltyAddress","type":"address"}],"name":"setRoyaltyAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newTransferControllerSC","type":"address"}],"name":"setTransferControllerSC","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferBlockedToken","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":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60006008556200043d602090811b620010cb176001600160401b03908116608081905262000480831b620010ff17821660a08190526200048990931b620011081790911660c0819052601080546001600160801b0319169092176801000000000000000090930292909217600160801b600160c01b031916600160801b9092029190911790556011805460ff60a01b191690556004610220818152634261636b60e01b6102405260e090815260056102609081526409adeeae8d60db1b610280526101005260076102a090815266436c6f7468657360c81b6102c052610120526102e0828152634561727360e01b610300526101405260066103209081526512195b1b595d60d21b6103405261016052610360828152634e6f736560e01b61038052610180526103a0828152634579657360e01b6103c0526101a05260096103e0908152684163636573736f727960b81b610400526101c05260036104209081526212185d60ea1b610440526101e0526104a06040526104609182526329b5b4b760e11b61048052610200919091526200019e90601390600a620006cf565b50348015620001ac57600080fd5b506040516200495b3803806200495b833981016040819052620001cf9162000922565b82826040518060400160405280600b81526020016a4c696c56696c6c61696e7360a81b815250604051806040016040528060048152602001632624a62b60e11b81525081818961032060006001600160a01b0316826001600160a01b03161415620002815760405162461bcd60e51b815260206004820152601760248201527f496e76616c696420726f79616c7479206164647265737300000000000000000060448201526064015b60405180910390fd5b6107d08161ffff161115620002e55760405162461bcd60e51b8152602060048201526024808201527f496e76616c696420726f79616c74792070657263656e74616765284d41583a326044820152633030302960e01b606482015260840162000278565b6000805461ffff909216600160a01b026001600160b01b03199092166001600160a01b039093169290921717905581516200032890600290602085019062000726565b5080516200033e90600390602084019062000726565b50508451620003589350600d925060208601915062000726565b5080516200036e90600f90602084019062000726565b5050506200038b62000385620004d360201b60201c565b620004d7565b8051620003a090601290602084019062000726565b50620003ae60003362000529565b620003da7fcd9432c2aa67c92e60603cf483ad237463ce9cf9e1a526ac214ec10afda13f718662000529565b620004067f76b9af63296879de52c14ae8fa46bb02358f8db5745dcdb1ba9d7866df41dad53362000529565b620004327f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a68662000529565b505050505062000ba9565b6060600d6200045783620005b260201b620011481760201c565b6040516020016200046a92919062000a35565b6040516020818303038152906040529050919050565b60019392505050565b604051637204585560e01b815260206004820152601460248201527f5472616e73666572426c6f636b6564546f6b656e000000000000000000000000604482015260640162000278565b3390565b601180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60008281526001602090815260408083206001600160a01b038516845290915290205460ff16620005ae5760008281526001602081815260408084206001600160a01b0386168086529252808420805460ff19169093179092559051339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45b5050565b606081620005d75750506040805180820190915260018152600360fc1b602082015290565b8160005b8115620006075780620005ee8162000afc565b9150620005ff9050600a8362000b30565b9150620005db565b6000816001600160401b0381111562000624576200062462000848565b6040519080825280601f01601f1916602001820160405280156200064f576020820181803683370190505b5090505b8415620006c7576200066760018362000b47565b915062000676600a8662000b61565b6200068390603062000b78565b60f81b8183815181106200069b576200069b62000b93565b60200101906001600160f81b031916908160001a905350620006bf600a8662000b30565b945062000653565b949350505050565b82600a810192821562000714579160200282015b828111156200071457825180516200070391849160209091019062000726565b5091602001919060010190620006e3565b5062000722929150620007b1565b5090565b8280546200073490620009da565b90600052602060002090601f016020900481019282620007585760008555620007a3565b82601f106200077357805160ff1916838001178555620007a3565b82800160010185558215620007a3579182015b82811115620007a357825182559160200191906001019062000786565b5062000722929150620007d2565b8082111562000722576000620007c88282620007e9565b50600101620007b1565b5b80821115620007225760008155600101620007d3565b508054620007f790620009da565b6000825580601f1062000808575050565b601f016020900490600052602060002090810190620008289190620007d2565b50565b80516001600160a01b03811681146200084357600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b838110156200087b57818101518382015260200162000861565b838111156200088b576000848401525b50505050565b600082601f830112620008a357600080fd5b81516001600160401b0380821115620008c057620008c062000848565b604051601f8301601f19908116603f01168101908282118183101715620008eb57620008eb62000848565b816040528381528660208588010111156200090557600080fd5b620009188460208301602089016200085e565b9695505050505050565b600080600080600060a086880312156200093b57600080fd5b62000946866200082b565b945062000956602087016200082b565b60408701519094506001600160401b03808211156200097457600080fd5b6200098289838a0162000891565b945060608801519150808211156200099957600080fd5b620009a789838a0162000891565b93506080880151915080821115620009be57600080fd5b50620009cd8882890162000891565b9150509295509295909350565b600181811c90821680620009ef57607f821691505b6020821081141562000a1157634e487b7160e01b600052602260045260246000fd5b50919050565b6000815162000a2b8185602086016200085e565b9290920192915050565b600080845481600182811c91508083168062000a5257607f831692505b602080841082141562000a7357634e487b7160e01b86526022600452602486fd5b81801562000a8a576001811462000a9c5762000acb565b60ff1986168952848901965062000acb565b60008b81526020902060005b8681101562000ac35781548b82015290850190830162000aa8565b505084890196505b50505050505062000add818562000a17565b95945050505050565b634e487b7160e01b600052601160045260246000fd5b600060001982141562000b135762000b1362000ae6565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008262000b425762000b4262000b1a565b500490565b60008282101562000b5c5762000b5c62000ae6565b500390565b60008262000b735762000b7362000b1a565b500690565b6000821982111562000b8e5762000b8e62000ae6565b500190565b634e487b7160e01b600052603260045260246000fd5b613da28062000bb96000396000f3fe608060405234801561001057600080fd5b50600436106102485760003560e01c80636eaea8fd1161013b578063a2ee4b26116100b8578063d547741f1161007c578063d547741f14610565578063e5343da614610578578063e8a3d4851461058b578063e985e9c514610593578063f2fde38b146105cf57600080fd5b8063a2ee4b26146104f2578063a7638dff14610505578063b88d4fde14610518578063c87b56dd1461052b578063d53913931461053e57600080fd5b806391d14854116100ff57806391d14854146104a9578063938e3d7b146104bc57806395d89b41146104cf578063a217fddf146104d7578063a22cb465146104df57600080fd5b80636eaea8fd1461045557806370a082311461046a578063715018a61461047d5780638d8f3e70146104855780638da5cb5b1461049857600080fd5b80632a55205a116101c957806342842e0e1161018d57806342842e0e146103f657806342966c68146104095780634684d7e91461041c57806355f804b31461042f5780636352211e1461044257600080fd5b80632a55205a146103785780632f2ff15d146103aa57806336568abe146103bd57806337e57dd2146103d0578063389ca597146103e357600080fd5b80630ff94d1b116102105780630ff94d1b146102dd57806318160ddd1461031257806323b872dd1461031a57806323c3a0381461032d578063248a9ca31461035457600080fd5b806301ffc9a71461024d57806306d254da1461027557806306fdde031461028a578063081812fc1461029f578063095ea7b3146102ca575b600080fd5b61026061025b366004613004565b6105e2565b60405190151581526020015b60405180910390f35b61028861028336600461303d565b61060d565b005b61029261063c565b60405161026c91906130b0565b6102b26102ad3660046130c3565b6106ce565b6040516001600160a01b03909116815260200161026c565b6102886102d83660046130dc565b610768565b6103047f76b9af63296879de52c14ae8fa46bb02358f8db5745dcdb1ba9d7866df41dad581565b60405190815260200161026c565b600854610304565b610288610328366004613106565b61087e565b6103047fcd9432c2aa67c92e60603cf483ad237463ce9cf9e1a526ac214ec10afda13f7181565b6103046103623660046130c3565b6000908152600160208190526040909120015490565b61038b610386366004613142565b6108b0565b604080516001600160a01b03909316835260208301919091520161026c565b6102886103b8366004613164565b6108ea565b6102886103cb366004613164565b610911565b6102886103de36600461303d565b61098f565b6102886103f13660046130dc565b6109a4565b610288610404366004613106565b6109f9565b6102886104173660046130c3565b610a14565b61028861042a3660046131d2565b610a35565b61028861043d366004613224565b610a71565b6102b26104503660046130c3565b610acd565b61045d610b44565b60405161026c9190613295565b61030461047836600461303d565b610b67565b610288610bee565b61028861049336600461303d565b610c54565b6011546001600160a01b03166102b2565b6102606104b7366004613164565b610c69565b6102886104ca366004613224565b610c94565b610292610cac565b610304600081565b6102886104ed3660046132dd565b610cbb565b610288610500366004613314565b610cc6565b610288610513366004613224565b610edf565b61028861052636600461344a565b610ef7565b6102926105393660046130c3565b610f29565b6103047f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b610288610573366004613164565b610f8e565b6102886105863660046134e5565b610fb5565b610292610fea565b6102606105a136600461352b565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b6102886105dd36600461303d565b611078565b60006001600160e01b0319821663e46a9ccf60e01b148061060757506106078261124d565b92915050565b6000610619813361128d565b50600080546001600160a01b0319166001600160a01b0392909216919091179055565b60606002805461064b90613555565b80601f016020809104026020016040519081016040528092919081815260200182805461067790613555565b80156106c45780601f10610699576101008083540402835291602001916106c4565b820191906000526020600020905b8154815290600101906020018083116106a757829003601f168201915b5050505050905090565b6000818152600460205260408120546001600160a01b031661074c5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061077382610acd565b9050806001600160a01b0316836001600160a01b031614156107e15760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610743565b336001600160a01b03821614806107fd57506107fd81336105a1565b61086f5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610743565b61087983836112f1565b505050565b610889335b8261135f565b6108a55760405162461bcd60e51b81526004016107439061358a565b610879838383611452565b6000806108bc846115f9565b6000546001600160a01b03811692506108e1908490600160a01b900461ffff16611633565b90509250929050565b60008281526001602081905260409091200154610907813361128d565b6108798383611657565b6001600160a01b03811633146109815760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610743565b61098b82826116c2565b5050565b600061099b813361128d565b61098b82611729565b816001600160a01b0381166109cc5760405163072d046f60e21b815260040160405180910390fd5b6108798383601060000160109054906101000a90048015612ebf02176001600160401b031663ffffffff16565b61087983838360405180602001604052806000815250610ef7565b610a1d8161187a565b60088054906000610a2d836135f1565b919050555050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610a60813361128d565b610a6b8484846118f4565b50505050565b6000610a7d813361128d565b601154600160a01b900460ff1615610aa85760405163b22df23960e01b815260040160405180910390fd5b610ab4600d8484612ec7565b50506011805460ff60a01b1916600160a01b1790555050565b6000818152600460205260408120546001600160a01b0316806106075760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610743565b610b4c612f47565b6000610b58813361128d565b610b6061195f565b91505b5090565b60006001600160a01b038216610bd25760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610743565b506001600160a01b031660009081526005602052604090205490565b6011546001600160a01b03163314610c485760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610743565b610c52600061198e565b565b6000610c60813361128d565b61098b826119e0565b60009182526001602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6000610ca0813361128d565b610a6b60128484612ec7565b60606003805461064b90613555565b61098b338383611aef565b7fcd9432c2aa67c92e60603cf483ad237463ce9cf9e1a526ac214ec10afda13f71610cf1813361128d565b60005b82811015610a6b576000848483818110610d1057610d10613608565b9050602002810190610d22919061361e565b610d2b90613661565b905060008160200151516001600160401b03811115610d4c57610d4c613355565b604051908082528060200260200182016040528015610da157816020015b610d8e60405180606001604052806060815260200160608152602001606081525090565b815260200190600190039081610d6a5790505b50905060005b8151811015610ebd576040805160808101909152600060608201908152815260208101601383600a8110610ddd57610ddd613608565b018054610de990613555565b80601f0160208091040260200160405190810160405280929190818152602001828054610e1590613555565b8015610e625780601f10610e3757610100808354040283529160200191610e62565b820191906000526020600020905b815481529060010190602001808311610e4557829003601f168201915b5050505050815260200184602001518381518110610e8257610e82613608565b6020026020010151815250828281518110610e9f57610e9f613608565b60200260200101819052508080610eb590613725565b915050610da7565b508151610eca9082611bbe565b50508080610ed790613725565b915050610cf4565b6000610eeb813361128d565b610a6b600e8484612ec7565b610f01338361135f565b610f1d5760405162461bcd60e51b81526004016107439061358a565b610a6b84848484611c43565b606081610f4d816000908152600460205260409020546001600160a01b0316151590565b610f6d576040516312699e4760e31b815260048101829052602401610743565b601054610f859084908015612ebf021763ffffffff16565b91505b50919050565b60008281526001602081905260409091200154610fab813361128d565b61087983836116c2565b7f76b9af63296879de52c14ae8fa46bb02358f8db5745dcdb1ba9d7866df41dad5610fe0813361128d565b6108798383611c76565b60128054610ff790613555565b80601f016020809104026020016040519081016040528092919081815260200182805461102390613555565b80156110705780601f1061104557610100808354040283529160200191611070565b820191906000526020600020905b81548152906001019060200180831161105357829003601f168201915b505050505081565b6000611084813361128d565b816001600160a01b0381166110ac5760405163072d046f60e21b815260040160405180910390fd5b6110b583611c9f565b6110c06000846108ea565b610879600033610f8e565b6060600d6110d883611148565b6040516020016110e992919061375c565b6040516020818303038152906040529050919050565b60019392505050565b604051637204585560e01b81526020600482015260146024820152732a3930b739b332b9213637b1b5b2b22a37b5b2b760611b6044820152606401610743565b60608161116c5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611196578061118081613725565b915061118f9050600a83613819565b9150611170565b6000816001600160401b038111156111b0576111b0613355565b6040519080825280601f01601f1916602001820160405280156111da576020820181803683370190505b5090505b8415611245576111ef60018361382d565b91506111fc600a86613844565b611207906030613858565b60f81b81838151811061121c5761121c613608565b60200101906001600160f81b031916908160001a90535061123e600a86613819565b94506111de565b949350505050565b60006001600160e01b031982166380ac58cd60e01b148061127e57506001600160e01b03198216635b5e139f60e01b145b80610607575061060782611d67565b6112978282610c69565b61098b576112af816001600160a01b03166014611d8c565b6112ba836020611d8c565b6040516020016112cb929190613870565b60408051601f198184030181529082905262461bcd60e51b8252610743916004016130b0565b600081815260066020526040902080546001600160a01b0319166001600160a01b038416908117909155819061132682610acd565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600460205260408120546001600160a01b03166113d85760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610743565b60006113e383610acd565b9050806001600160a01b0316846001600160a01b0316148061141e5750836001600160a01b0316611413846106ce565b6001600160a01b0316145b8061124557506001600160a01b0380821660009081526007602090815260408083209388168352929052205460ff16611245565b826001600160a01b031661146582610acd565b6001600160a01b0316146114c95760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610743565b6001600160a01b03821661152b5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610743565b611536838383611f27565b6115416000826112f1565b6001600160a01b038316600090815260056020526040812080546001929061156a90849061382d565b90915550506001600160a01b0382166000908152600560205260408120805460019290611598908490613858565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60008181526004602052604090205481906001600160a01b031661098b576040516312699e4760e31b815260048101829052602401610743565b600061271061164661ffff8416856138e5565b6116509190613819565b9392505050565b6116618282610c69565b61098b5760008281526001602081815260408084206001600160a01b0386168086529252808420805460ff19169093179092559051339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45050565b6116cc8282610c69565b1561098b5760008281526001602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b806001600160a01b0381166117515760405163072d046f60e21b815260040160405180910390fd5b6040516301ffc9a760e01b8152630f7e490f60e31b6004820181905283916001600160a01b038316906301ffc9a79060240160206040518083038186803b15801561179b57600080fd5b505afa1580156117af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117d39190613904565b6117f457818160405163201e6d6560e11b8152600401610743929190613921565b5050600c80546001600160a01b039093166001600160a01b03199093169290921790915550601080546120086001600160401b03908116600160801b0267ffffffffffffffff60801b19611f759290921668010000000000000000029190911677ffffffffffffffffffffffffffffffff00000000000000001990921691909117179055565b61188333610883565b6118e85760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b6064820152608401610743565b6118f1816120e0565b50565b6118ff838383612187565b6008805482918291600090611915908490613858565b90915550600090505b81811015611958576119488585858481811061193c5761193c613608565b905060200201356121d7565b611951816121f1565b905061191e565b5050505050565b611967612f47565b5060408051808201909152600b546001600160a01b039081168252600c5416602082015290565b601180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b806001600160a01b038116611a085760405163072d046f60e21b815260040160405180910390fd5b6040516301ffc9a760e01b8152638710386160e01b6004820181905283916001600160a01b038316906301ffc9a79060240160206040518083038186803b158015611a5257600080fd5b505afa158015611a66573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a8a9190613904565b611aab57818160405163201e6d6560e11b8152600401610743929190613921565b611ab4846121fe565b5050600b80546001600160a01b0319166001600160a01b039390931692909217909155506010805467ffffffffffffffff191661222c179055565b816001600160a01b0316836001600160a01b03161415611b515760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610743565b6001600160a01b03838116600081815260076020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611bc88282612960565b600082815260096020526040908190209051631ca2a00b60e11b81527370ccd15df4b429ac2dc5f6a4103670b8b52e9d9091633945401691611c0f919085906004016139da565b60006040518083038186803b158015611c2757600080fd5b505af4158015611c3b573d6000803e3d6000fd5b505050505050565b611c4e848484611452565b611c5a84848484612990565b610a6b5760405162461bcd60e51b8152600401610743906139f3565b611c808282612a9d565b6000828152600a60209081526040909120825161087992840190612f65565b6011546001600160a01b03163314611cf95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610743565b6001600160a01b038116611d5e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610743565b6118f18161198e565b60006001600160e01b03198216637965db0b60e01b1480610607575061060782612acd565b60606000611d9b8360026138e5565b611da6906002613858565b6001600160401b03811115611dbd57611dbd613355565b6040519080825280601f01601f191660200182016040528015611de7576020820181803683370190505b509050600360fc1b81600081518110611e0257611e02613608565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110611e3157611e31613608565b60200101906001600160f81b031916908160001a9053506000611e558460026138e5565b611e60906001613858565b90505b6001811115611ed8576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110611e9457611e94613608565b1a60f81b828281518110611eaa57611eaa613608565b60200101906001600160f81b031916908160001a90535060049490941c93611ed1816135f1565b9050611e63565b5083156116505760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610743565b611f55838383601060000160089054906101000a90048015612ebf02176001600160401b031663ffffffff16565b61087957604051634e0b80f560e01b815260048101829052602401610743565b600c54604051637167096b60e11b81523060048201526001600160a01b038581166024830152848116604483015260648201849052600092169063e2ce12d69060840160206040518083038186803b158015611fd057600080fd5b505afa158015611fe4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112459190613904565b6120128282612b02565b600c546040516366ec25e160e11b8152306004820152602481018390526001600160a01b039091169063cdd84bc290604401600060405180830381600087803b15801561205e57600080fd5b505af1158015612072573d6000803e3d6000fd5b505050506120808282612b4c565b600c54604051631539045b60e21b8152306004820152602481018390526001600160a01b03909116906354e4116c90604401600060405180830381600087803b1580156120cc57600080fd5b505af1158015611c3b573d6000803e3d6000fd5b60006120eb82610acd565b90506120f981600084611f27565b6121046000836112f1565b6001600160a01b038116600090815260056020526040812080546001929061212d90849061382d565b909155505060008281526004602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600061219260085490565b905060006121a08383613858565b9050611e6181111561195857604051631c4831ab60e21b81526004810184905260248101839052611e616044820152606401610743565b61098b828260405180602001604052806000815250612b57565b6000610607826001613858565b600e805461220b90613555565b151590506118f1576040516308f2753b60e41b815260040160405180910390fd5b60606000612239836110cb565b9050600060096000858152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b8282101561245857838290600052602060002090600302016040518060600160405290816000820180546122a390613555565b80601f01602080910402602001604051908101604052809291908181526020018280546122cf90613555565b801561231c5780601f106122f15761010080835404028352916020019161231c565b820191906000526020600020905b8154815290600101906020018083116122ff57829003601f168201915b5050505050815260200160018201805461233590613555565b80601f016020809104026020016040519081016040528092919081815260200182805461236190613555565b80156123ae5780601f10612383576101008083540402835291602001916123ae565b820191906000526020600020905b81548152906001019060200180831161239157829003601f168201915b505050505081526020016002820180546123c790613555565b80601f01602080910402602001604051908101604052809291908181526020018280546123f390613555565b80156124405780601f1061241557610100808354040283529160200191612440565b820191906000526020600020905b81548152906001019060200180831161242357829003601f168201915b50505050508152505081526020019060010190612270565b505050509050805160001461295957600b54604051638710386160e01b8152306004820152602481018690526000916001600160a01b03169063871038619060440160006040518083038186803b1580156124b257600080fd5b505afa1580156124c6573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526124ee9190810190613a8a565b80519091501561279c57600085815260096020908152604080832080548251818502810185019093528083529193909284015b82821015612709578382906000526020600020906003020160405180606001604052908160008201805461255490613555565b80601f016020809104026020016040519081016040528092919081815260200182805461258090613555565b80156125cd5780601f106125a2576101008083540402835291602001916125cd565b820191906000526020600020905b8154815290600101906020018083116125b057829003601f168201915b505050505081526020016001820180546125e690613555565b80601f016020809104026020016040519081016040528092919081815260200182805461261290613555565b801561265f5780601f106126345761010080835404028352916020019161265f565b820191906000526020600020905b81548152906001019060200180831161264257829003601f168201915b5050505050815260200160028201805461267890613555565b80601f01602080910402602001604051908101604052809291908181526020018280546126a490613555565b80156126f15780601f106126c6576101008083540402835291602001916126f1565b820191906000526020600020905b8154815290600101906020018083116126d457829003601f168201915b50505050508152505081526020019060010190612521565b5050604051630e914a8160e41b81527370ccd15df4b429ac2dc5f6a4103670b8b52e9d909363e914a81093506127459250908590600401613bbc565b60006040518083038186803b15801561275d57600080fd5b505af4158015612771573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526127999190810190613a8a565b91505b60006127a786612b8a565b905060006127b487611148565b6040516020016127c49190613be1565b60408051808303601f19018152828201825260008084526020938401819052825180840190935280546001600160a01b0381168452600160a01b900461ffff16938301939093529250905060006040518060a00160405280600f805461282990613555565b80601f016020809104026020016040519081016040528092919081815260200182805461285590613555565b80156128a25780601f10612877576101008083540402835291602001916128a2565b820191906000526020600020905b81548152906001019060200180831161288557829003601f168201915b50505050508152602001858152602001848152602001878152602001838152509050807370ccd15df4b429ac2dc5f6a4103670b8b52e9d906355edf07290916040518263ffffffff1660e01b81526004016128fd9190613c0a565b60006040518083038186803b15801561291557600080fd5b505af4158015612929573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526129519190810190613caf565b965050505050505b5092915050565b6000828152600960205260409020541561098b57604051634185200960e11b815260048101839052602401610743565b60006001600160a01b0384163b15612a9257604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906129d4903390899088908890600401613ce3565b602060405180830381600087803b1580156129ee57600080fd5b505af1925050508015612a1e575060408051601f3d908101601f19168201909252612a1b91810190613d20565b60015b612a78573d808015612a4c576040519150601f19603f3d011682016040523d82523d6000602084013e612a51565b606091505b508051612a705760405162461bcd60e51b8152600401610743906139f3565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611245565b506001949350505050565b60008281526009602052604090205461098b5781816040516331e5c31960e01b8152600401610743929190613d3d565b60006001600160e01b0319821663152a902d60e11b148061060757506301ffc9a760e01b6001600160e01b0319831614610607565b612b1d33838360405180602001604052806000815250612c7e565b61098b576040516393268f6160e01b81526001600160a01b038316600482015260248101829052604401610743565b61098b338383611452565b612b618383612d71565b612b6e6000848484612990565b6108795760405162461bcd60e51b8152600401610743906139f3565b60606000600e612b9984611148565b604051602001612baa92919061375c565b60408051601f198184030181529181526000858152600a60205290812080549293509091612bd790613555565b90501115610607576000838152600a602052604090208054612bf890613555565b80601f0160208091040260200160405190810160405280929190818152602001828054612c2490613555565b8015612c715780601f10612c4657610100808354040283529160200191612c71565b820191906000526020600020905b815481529060010190602001808311612c5457829003601f168201915b5050505050905092915050565b60006001600160a01b0384163b15612a9257604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612cc2903390899088908890600401613ce3565b602060405180830381600087803b158015612cdc57600080fd5b505af1925050508015612d0c575060408051601f3d908101601f19168201909252612d0991810190613d20565b60015b612a78573d808015612d3a576040519150601f19603f3d011682016040523d82523d6000602084013e612d3f565b606091505b508051612a70576040516393268f6160e01b81526001600160a01b038616600482015260248101859052604401610743565b6001600160a01b038216612dc75760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610743565b6000818152600460205260409020546001600160a01b031615612e2c5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610743565b612e3860008383611f27565b6001600160a01b0382166000908152600560205260408120805460019290612e61908490613858565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b610c52613d56565b828054612ed390613555565b90600052602060002090601f016020900481019282612ef55760008555612f3b565b82601f10612f0e5782800160ff19823516178555612f3b565b82800160010185558215612f3b579182015b82811115612f3b578235825591602001919060010190612f20565b50610b63929150612fd9565b60405180604001604052806002906020820280368337509192915050565b828054612f7190613555565b90600052602060002090601f016020900481019282612f935760008555612f3b565b82601f10612fac57805160ff1916838001178555612f3b565b82800160010185558215612f3b579182015b82811115612f3b578251825591602001919060010190612fbe565b5b80821115610b635760008155600101612fda565b6001600160e01b0319811681146118f157600080fd5b60006020828403121561301657600080fd5b813561165081612fee565b80356001600160a01b038116811461303857600080fd5b919050565b60006020828403121561304f57600080fd5b61165082613021565b60005b8381101561307357818101518382015260200161305b565b83811115610a6b5750506000910152565b6000815180845261309c816020860160208601613058565b601f01601f19169290920160200192915050565b6020815260006116506020830184613084565b6000602082840312156130d557600080fd5b5035919050565b600080604083850312156130ef57600080fd5b6130f883613021565b946020939093013593505050565b60008060006060848603121561311b57600080fd5b61312484613021565b925061313260208501613021565b9150604084013590509250925092565b6000806040838503121561315557600080fd5b50508035926020909101359150565b6000806040838503121561317757600080fd5b823591506108e160208401613021565b60008083601f84011261319957600080fd5b5081356001600160401b038111156131b057600080fd5b6020830191508360208260051b85010111156131cb57600080fd5b9250929050565b6000806000604084860312156131e757600080fd5b6131f084613021565b925060208401356001600160401b0381111561320b57600080fd5b61321786828701613187565b9497909650939450505050565b6000806020838503121561323757600080fd5b82356001600160401b038082111561324e57600080fd5b818501915085601f83011261326257600080fd5b81358181111561327157600080fd5b86602082850101111561328357600080fd5b60209290920196919550909350505050565b60408101818360005b60028110156132c65781516001600160a01b031683526020928301929091019060010161329e565b50505092915050565b80151581146118f157600080fd5b600080604083850312156132f057600080fd5b6132f983613021565b91506020830135613309816132cf565b809150509250929050565b6000806020838503121561332757600080fd5b82356001600160401b0381111561333d57600080fd5b61334985828601613187565b90969095509350505050565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b038111828210171561338d5761338d613355565b60405290565b604051606081016001600160401b038111828210171561338d5761338d613355565b604051601f8201601f191681016001600160401b03811182821017156133dd576133dd613355565b604052919050565b60006001600160401b038211156133fe576133fe613355565b50601f01601f191660200190565b600061341f61341a846133e5565b6133b5565b905082815283838301111561343357600080fd5b828260208301376000602084830101529392505050565b6000806000806080858703121561346057600080fd5b61346985613021565b935061347760208601613021565b92506040850135915060608501356001600160401b0381111561349957600080fd5b8501601f810187136134aa57600080fd5b6134b98782356020840161340c565b91505092959194509250565b600082601f8301126134d657600080fd5b6116508383356020850161340c565b600080604083850312156134f857600080fd5b8235915060208301356001600160401b0381111561351557600080fd5b613521858286016134c5565b9150509250929050565b6000806040838503121561353e57600080fd5b61354783613021565b91506108e160208401613021565b600181811c9082168061356957607f821691505b60208210811415610f8857634e487b7160e01b600052602260045260246000fd5b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600081613600576136006135db565b506000190190565b634e487b7160e01b600052603260045260246000fd5b60008235603e1983360301811261363457600080fd5b9190910192915050565b60006001600160401b0382111561365757613657613355565b5060051b60200190565b60006040823603121561367357600080fd5b61367b61336b565b823581526020808401356001600160401b038082111561369a57600080fd5b9085019036601f8301126136ad57600080fd5b81356136bb61341a8261363e565b81815260059190911b830184019084810190368311156136da57600080fd5b8585015b83811015613712578035858111156136f65760008081fd5b6137043689838a01016134c5565b8452509186019186016136de565b5094860194909452509295945050505050565b6000600019821415613739576137396135db565b5060010190565b60008151613752818560208601613058565b9290920192915050565b600080845481600182811c91508083168061377857607f831692505b602080841082141561379857634e487b7160e01b86526022600452602486fd5b8180156137ac57600181146137bd576137ea565b60ff198616895284890196506137ea565b60008b81526020902060005b868110156137e25781548b8201529085019083016137c9565b505084890196505b5050505050506137fa8185613740565b95945050505050565b634e487b7160e01b600052601260045260246000fd5b60008261382857613828613803565b500490565b60008282101561383f5761383f6135db565b500390565b60008261385357613853613803565b500690565b6000821982111561386b5761386b6135db565b500190565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516138a8816017850160208801613058565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516138d9816028840160208801613058565b01602801949350505050565b60008160001904831182151516156138ff576138ff6135db565b500290565b60006020828403121561391657600080fd5b8151611650816132cf565b6001600160a01b039290921682526001600160e01b031916602082015260400190565b600081518084526020808501808196508360051b8101915082860160005b858110156139cd57828403895281516060815181875261398482880182613084565b915050868201518682038888015261399c8282613084565b915050604080830151925086820381880152506139b98183613084565b9a87019a9550505090840190600101613962565b5091979650505050505050565b8281526040602082015260006112456040830184613944565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600082601f830112613a5657600080fd5b8151613a6461341a826133e5565b818152846020838601011115613a7957600080fd5b611245826020830160208701613058565b60006020808385031215613a9d57600080fd5b82516001600160401b0380821115613ab457600080fd5b818501915085601f830112613ac857600080fd5b8151613ad661341a8261363e565b81815260059190911b83018401908481019088831115613af557600080fd5b8585015b83811015613baf57805185811115613b115760008081fd5b86016060818c03601f1901811315613b295760008081fd5b613b31613393565b8983015188811115613b435760008081fd5b613b518e8c83870101613a45565b82525060408084015189811115613b685760008081fd5b613b768f8d83880101613a45565b838d015250918301519188831115613b8e5760008081fd5b613b9c8e8c85870101613a45565b9082015285525050918601918601613af9565b5098975050505050505050565b604081526000613bcf6040830185613944565b82810360208401526137fa8185613944565b602360f81b815260008251613bfd816001850160208701613058565b9190910160010192915050565b602081526000825160c06020840152613c2660e0840182613084565b90506020840151601f1980858403016040860152613c448383613084565b92506040860151915080858403016060860152613c618383613084565b9250606086015191508085840301608086015250613c7f8282613944565b6080959095015180516001600160a01b031660a08601526020015161ffff1660c090940193909352509192915050565b600060208284031215613cc157600080fd5b81516001600160401b03811115613cd757600080fd5b61124584828501613a45565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613d1690830184613084565b9695505050505050565b600060208284031215613d3257600080fd5b815161165081612fee565b8281526040602082015260006112456040830184613084565b634e487b7160e01b600052605160045260246000fdfea26469706673582212205f7bc6237f1fa620d202d567da1d35996380e860b8d7ed33c38020999bd060ac64736f6c63430008090033000000000000000000000000479807fa7a221de5457b278458fd66b2f0c3039d00000000000000000000000048c15a1c597c972a85f1a15bddbb07f93785579a00000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001a0000000000000000000000000000000000000000000000000000000000000002468747470733a2f2f6c696c76696c6c61696e732e696f2f6170692f6d657461646174612f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000644120636f6c6c656374696f6e206f6620372c373737204c696c272056696c6c61696e73206c6976696e6720696e20746865204d65746176657273652e204d61646520627920636f6e74656d706f726172792061727469737420456467617220506c616e73000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000395646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c65794a755957316c496a6f6954476c734a7942576157787359576c7563794269655342465a476468636942516247467563794973496d526c63324e796158423061573975496a6f6956325673593239745a53423062794230614755675a4746796179427a6157526c49534247636d397449486476636d786b4c584a6c626d3933626d566b4947467964476c7a644377675257526e5958496755477868626e4d7349457870624f4b416d5342576157787359576c7563794268636d55676447686c4947526c646d6c7664584d6759323931626e526c636e4268636e527a49485276494768706379426d61584a7a6443426a623278735a574e30615739754c43424d61577a69674a6b67534756796232567a4c69424d61577a69674a6b67566d6c7362474670626e4d6759584a6c49474567593239736247566a64476c76626942765a6941334e7a633349485675615846315a537767614746755a43316b636d46336269426a6147467959574e305a584a7a4948526f5958516764326c736243427162326c7549475a76636d4e6c637942336158526f49457870624f4b416d5342495a584a765a584d6761573467595734676458426a62323170626d636759573570625746305a57516756465967633256796157567a4c694244623278735a574e304947456763474670636942765a69424d61577a69674a6b67534756796232567a494746755a43424d61577a69674a6b67566d6c7362474670626e4d67644738675a3246706269426859324e6c63334d676447386756484a6861573570626d636751324674634f4b416b336c766458496764476c6a6132563049485276494756345932783163326c325a5342745a584a6a614746755a476c7a5a5377675a585a6c626e516764476c6a61325630637977675957356b4947466a5932567a6379423062794230614755676432397962475167623259675257526e5958496755477868626e4d75496977695a5868305a584a755957786662476c7561794936496d68306448427a4f69387662476c73646d6c7362474670626e4d756157387649697769633256736247567958325a6c5a56396959584e706331397762326c7564484d694f6a67774d4377695a6d566c58334a6c59326c776157567564434936496a42344e44686a4d5456424d554d314f5464444f546379595467315a6a46424d54564352475243596a4133526a6b7a4e7a67314e54633551534a390000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102485760003560e01c80636eaea8fd1161013b578063a2ee4b26116100b8578063d547741f1161007c578063d547741f14610565578063e5343da614610578578063e8a3d4851461058b578063e985e9c514610593578063f2fde38b146105cf57600080fd5b8063a2ee4b26146104f2578063a7638dff14610505578063b88d4fde14610518578063c87b56dd1461052b578063d53913931461053e57600080fd5b806391d14854116100ff57806391d14854146104a9578063938e3d7b146104bc57806395d89b41146104cf578063a217fddf146104d7578063a22cb465146104df57600080fd5b80636eaea8fd1461045557806370a082311461046a578063715018a61461047d5780638d8f3e70146104855780638da5cb5b1461049857600080fd5b80632a55205a116101c957806342842e0e1161018d57806342842e0e146103f657806342966c68146104095780634684d7e91461041c57806355f804b31461042f5780636352211e1461044257600080fd5b80632a55205a146103785780632f2ff15d146103aa57806336568abe146103bd57806337e57dd2146103d0578063389ca597146103e357600080fd5b80630ff94d1b116102105780630ff94d1b146102dd57806318160ddd1461031257806323b872dd1461031a57806323c3a0381461032d578063248a9ca31461035457600080fd5b806301ffc9a71461024d57806306d254da1461027557806306fdde031461028a578063081812fc1461029f578063095ea7b3146102ca575b600080fd5b61026061025b366004613004565b6105e2565b60405190151581526020015b60405180910390f35b61028861028336600461303d565b61060d565b005b61029261063c565b60405161026c91906130b0565b6102b26102ad3660046130c3565b6106ce565b6040516001600160a01b03909116815260200161026c565b6102886102d83660046130dc565b610768565b6103047f76b9af63296879de52c14ae8fa46bb02358f8db5745dcdb1ba9d7866df41dad581565b60405190815260200161026c565b600854610304565b610288610328366004613106565b61087e565b6103047fcd9432c2aa67c92e60603cf483ad237463ce9cf9e1a526ac214ec10afda13f7181565b6103046103623660046130c3565b6000908152600160208190526040909120015490565b61038b610386366004613142565b6108b0565b604080516001600160a01b03909316835260208301919091520161026c565b6102886103b8366004613164565b6108ea565b6102886103cb366004613164565b610911565b6102886103de36600461303d565b61098f565b6102886103f13660046130dc565b6109a4565b610288610404366004613106565b6109f9565b6102886104173660046130c3565b610a14565b61028861042a3660046131d2565b610a35565b61028861043d366004613224565b610a71565b6102b26104503660046130c3565b610acd565b61045d610b44565b60405161026c9190613295565b61030461047836600461303d565b610b67565b610288610bee565b61028861049336600461303d565b610c54565b6011546001600160a01b03166102b2565b6102606104b7366004613164565b610c69565b6102886104ca366004613224565b610c94565b610292610cac565b610304600081565b6102886104ed3660046132dd565b610cbb565b610288610500366004613314565b610cc6565b610288610513366004613224565b610edf565b61028861052636600461344a565b610ef7565b6102926105393660046130c3565b610f29565b6103047f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b610288610573366004613164565b610f8e565b6102886105863660046134e5565b610fb5565b610292610fea565b6102606105a136600461352b565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b6102886105dd36600461303d565b611078565b60006001600160e01b0319821663e46a9ccf60e01b148061060757506106078261124d565b92915050565b6000610619813361128d565b50600080546001600160a01b0319166001600160a01b0392909216919091179055565b60606002805461064b90613555565b80601f016020809104026020016040519081016040528092919081815260200182805461067790613555565b80156106c45780601f10610699576101008083540402835291602001916106c4565b820191906000526020600020905b8154815290600101906020018083116106a757829003601f168201915b5050505050905090565b6000818152600460205260408120546001600160a01b031661074c5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061077382610acd565b9050806001600160a01b0316836001600160a01b031614156107e15760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610743565b336001600160a01b03821614806107fd57506107fd81336105a1565b61086f5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610743565b61087983836112f1565b505050565b610889335b8261135f565b6108a55760405162461bcd60e51b81526004016107439061358a565b610879838383611452565b6000806108bc846115f9565b6000546001600160a01b03811692506108e1908490600160a01b900461ffff16611633565b90509250929050565b60008281526001602081905260409091200154610907813361128d565b6108798383611657565b6001600160a01b03811633146109815760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610743565b61098b82826116c2565b5050565b600061099b813361128d565b61098b82611729565b816001600160a01b0381166109cc5760405163072d046f60e21b815260040160405180910390fd5b6108798383601060000160109054906101000a90048015612ebf02176001600160401b031663ffffffff16565b61087983838360405180602001604052806000815250610ef7565b610a1d8161187a565b60088054906000610a2d836135f1565b919050555050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610a60813361128d565b610a6b8484846118f4565b50505050565b6000610a7d813361128d565b601154600160a01b900460ff1615610aa85760405163b22df23960e01b815260040160405180910390fd5b610ab4600d8484612ec7565b50506011805460ff60a01b1916600160a01b1790555050565b6000818152600460205260408120546001600160a01b0316806106075760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610743565b610b4c612f47565b6000610b58813361128d565b610b6061195f565b91505b5090565b60006001600160a01b038216610bd25760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610743565b506001600160a01b031660009081526005602052604090205490565b6011546001600160a01b03163314610c485760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610743565b610c52600061198e565b565b6000610c60813361128d565b61098b826119e0565b60009182526001602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6000610ca0813361128d565b610a6b60128484612ec7565b60606003805461064b90613555565b61098b338383611aef565b7fcd9432c2aa67c92e60603cf483ad237463ce9cf9e1a526ac214ec10afda13f71610cf1813361128d565b60005b82811015610a6b576000848483818110610d1057610d10613608565b9050602002810190610d22919061361e565b610d2b90613661565b905060008160200151516001600160401b03811115610d4c57610d4c613355565b604051908082528060200260200182016040528015610da157816020015b610d8e60405180606001604052806060815260200160608152602001606081525090565b815260200190600190039081610d6a5790505b50905060005b8151811015610ebd576040805160808101909152600060608201908152815260208101601383600a8110610ddd57610ddd613608565b018054610de990613555565b80601f0160208091040260200160405190810160405280929190818152602001828054610e1590613555565b8015610e625780601f10610e3757610100808354040283529160200191610e62565b820191906000526020600020905b815481529060010190602001808311610e4557829003601f168201915b5050505050815260200184602001518381518110610e8257610e82613608565b6020026020010151815250828281518110610e9f57610e9f613608565b60200260200101819052508080610eb590613725565b915050610da7565b508151610eca9082611bbe565b50508080610ed790613725565b915050610cf4565b6000610eeb813361128d565b610a6b600e8484612ec7565b610f01338361135f565b610f1d5760405162461bcd60e51b81526004016107439061358a565b610a6b84848484611c43565b606081610f4d816000908152600460205260409020546001600160a01b0316151590565b610f6d576040516312699e4760e31b815260048101829052602401610743565b601054610f859084908015612ebf021763ffffffff16565b91505b50919050565b60008281526001602081905260409091200154610fab813361128d565b61087983836116c2565b7f76b9af63296879de52c14ae8fa46bb02358f8db5745dcdb1ba9d7866df41dad5610fe0813361128d565b6108798383611c76565b60128054610ff790613555565b80601f016020809104026020016040519081016040528092919081815260200182805461102390613555565b80156110705780601f1061104557610100808354040283529160200191611070565b820191906000526020600020905b81548152906001019060200180831161105357829003601f168201915b505050505081565b6000611084813361128d565b816001600160a01b0381166110ac5760405163072d046f60e21b815260040160405180910390fd5b6110b583611c9f565b6110c06000846108ea565b610879600033610f8e565b6060600d6110d883611148565b6040516020016110e992919061375c565b6040516020818303038152906040529050919050565b60019392505050565b604051637204585560e01b81526020600482015260146024820152732a3930b739b332b9213637b1b5b2b22a37b5b2b760611b6044820152606401610743565b60608161116c5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611196578061118081613725565b915061118f9050600a83613819565b9150611170565b6000816001600160401b038111156111b0576111b0613355565b6040519080825280601f01601f1916602001820160405280156111da576020820181803683370190505b5090505b8415611245576111ef60018361382d565b91506111fc600a86613844565b611207906030613858565b60f81b81838151811061121c5761121c613608565b60200101906001600160f81b031916908160001a90535061123e600a86613819565b94506111de565b949350505050565b60006001600160e01b031982166380ac58cd60e01b148061127e57506001600160e01b03198216635b5e139f60e01b145b80610607575061060782611d67565b6112978282610c69565b61098b576112af816001600160a01b03166014611d8c565b6112ba836020611d8c565b6040516020016112cb929190613870565b60408051601f198184030181529082905262461bcd60e51b8252610743916004016130b0565b600081815260066020526040902080546001600160a01b0319166001600160a01b038416908117909155819061132682610acd565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600460205260408120546001600160a01b03166113d85760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610743565b60006113e383610acd565b9050806001600160a01b0316846001600160a01b0316148061141e5750836001600160a01b0316611413846106ce565b6001600160a01b0316145b8061124557506001600160a01b0380821660009081526007602090815260408083209388168352929052205460ff16611245565b826001600160a01b031661146582610acd565b6001600160a01b0316146114c95760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610743565b6001600160a01b03821661152b5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610743565b611536838383611f27565b6115416000826112f1565b6001600160a01b038316600090815260056020526040812080546001929061156a90849061382d565b90915550506001600160a01b0382166000908152600560205260408120805460019290611598908490613858565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60008181526004602052604090205481906001600160a01b031661098b576040516312699e4760e31b815260048101829052602401610743565b600061271061164661ffff8416856138e5565b6116509190613819565b9392505050565b6116618282610c69565b61098b5760008281526001602081815260408084206001600160a01b0386168086529252808420805460ff19169093179092559051339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45050565b6116cc8282610c69565b1561098b5760008281526001602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b806001600160a01b0381166117515760405163072d046f60e21b815260040160405180910390fd5b6040516301ffc9a760e01b8152630f7e490f60e31b6004820181905283916001600160a01b038316906301ffc9a79060240160206040518083038186803b15801561179b57600080fd5b505afa1580156117af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117d39190613904565b6117f457818160405163201e6d6560e11b8152600401610743929190613921565b5050600c80546001600160a01b039093166001600160a01b03199093169290921790915550601080546120086001600160401b03908116600160801b0267ffffffffffffffff60801b19611f759290921668010000000000000000029190911677ffffffffffffffffffffffffffffffff00000000000000001990921691909117179055565b61188333610883565b6118e85760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b6064820152608401610743565b6118f1816120e0565b50565b6118ff838383612187565b6008805482918291600090611915908490613858565b90915550600090505b81811015611958576119488585858481811061193c5761193c613608565b905060200201356121d7565b611951816121f1565b905061191e565b5050505050565b611967612f47565b5060408051808201909152600b546001600160a01b039081168252600c5416602082015290565b601180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b806001600160a01b038116611a085760405163072d046f60e21b815260040160405180910390fd5b6040516301ffc9a760e01b8152638710386160e01b6004820181905283916001600160a01b038316906301ffc9a79060240160206040518083038186803b158015611a5257600080fd5b505afa158015611a66573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a8a9190613904565b611aab57818160405163201e6d6560e11b8152600401610743929190613921565b611ab4846121fe565b5050600b80546001600160a01b0319166001600160a01b039390931692909217909155506010805467ffffffffffffffff191661222c179055565b816001600160a01b0316836001600160a01b03161415611b515760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610743565b6001600160a01b03838116600081815260076020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611bc88282612960565b600082815260096020526040908190209051631ca2a00b60e11b81527370ccd15df4b429ac2dc5f6a4103670b8b52e9d9091633945401691611c0f919085906004016139da565b60006040518083038186803b158015611c2757600080fd5b505af4158015611c3b573d6000803e3d6000fd5b505050505050565b611c4e848484611452565b611c5a84848484612990565b610a6b5760405162461bcd60e51b8152600401610743906139f3565b611c808282612a9d565b6000828152600a60209081526040909120825161087992840190612f65565b6011546001600160a01b03163314611cf95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610743565b6001600160a01b038116611d5e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610743565b6118f18161198e565b60006001600160e01b03198216637965db0b60e01b1480610607575061060782612acd565b60606000611d9b8360026138e5565b611da6906002613858565b6001600160401b03811115611dbd57611dbd613355565b6040519080825280601f01601f191660200182016040528015611de7576020820181803683370190505b509050600360fc1b81600081518110611e0257611e02613608565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110611e3157611e31613608565b60200101906001600160f81b031916908160001a9053506000611e558460026138e5565b611e60906001613858565b90505b6001811115611ed8576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110611e9457611e94613608565b1a60f81b828281518110611eaa57611eaa613608565b60200101906001600160f81b031916908160001a90535060049490941c93611ed1816135f1565b9050611e63565b5083156116505760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610743565b611f55838383601060000160089054906101000a90048015612ebf02176001600160401b031663ffffffff16565b61087957604051634e0b80f560e01b815260048101829052602401610743565b600c54604051637167096b60e11b81523060048201526001600160a01b038581166024830152848116604483015260648201849052600092169063e2ce12d69060840160206040518083038186803b158015611fd057600080fd5b505afa158015611fe4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112459190613904565b6120128282612b02565b600c546040516366ec25e160e11b8152306004820152602481018390526001600160a01b039091169063cdd84bc290604401600060405180830381600087803b15801561205e57600080fd5b505af1158015612072573d6000803e3d6000fd5b505050506120808282612b4c565b600c54604051631539045b60e21b8152306004820152602481018390526001600160a01b03909116906354e4116c90604401600060405180830381600087803b1580156120cc57600080fd5b505af1158015611c3b573d6000803e3d6000fd5b60006120eb82610acd565b90506120f981600084611f27565b6121046000836112f1565b6001600160a01b038116600090815260056020526040812080546001929061212d90849061382d565b909155505060008281526004602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600061219260085490565b905060006121a08383613858565b9050611e6181111561195857604051631c4831ab60e21b81526004810184905260248101839052611e616044820152606401610743565b61098b828260405180602001604052806000815250612b57565b6000610607826001613858565b600e805461220b90613555565b151590506118f1576040516308f2753b60e41b815260040160405180910390fd5b60606000612239836110cb565b9050600060096000858152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b8282101561245857838290600052602060002090600302016040518060600160405290816000820180546122a390613555565b80601f01602080910402602001604051908101604052809291908181526020018280546122cf90613555565b801561231c5780601f106122f15761010080835404028352916020019161231c565b820191906000526020600020905b8154815290600101906020018083116122ff57829003601f168201915b5050505050815260200160018201805461233590613555565b80601f016020809104026020016040519081016040528092919081815260200182805461236190613555565b80156123ae5780601f10612383576101008083540402835291602001916123ae565b820191906000526020600020905b81548152906001019060200180831161239157829003601f168201915b505050505081526020016002820180546123c790613555565b80601f01602080910402602001604051908101604052809291908181526020018280546123f390613555565b80156124405780601f1061241557610100808354040283529160200191612440565b820191906000526020600020905b81548152906001019060200180831161242357829003601f168201915b50505050508152505081526020019060010190612270565b505050509050805160001461295957600b54604051638710386160e01b8152306004820152602481018690526000916001600160a01b03169063871038619060440160006040518083038186803b1580156124b257600080fd5b505afa1580156124c6573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526124ee9190810190613a8a565b80519091501561279c57600085815260096020908152604080832080548251818502810185019093528083529193909284015b82821015612709578382906000526020600020906003020160405180606001604052908160008201805461255490613555565b80601f016020809104026020016040519081016040528092919081815260200182805461258090613555565b80156125cd5780601f106125a2576101008083540402835291602001916125cd565b820191906000526020600020905b8154815290600101906020018083116125b057829003601f168201915b505050505081526020016001820180546125e690613555565b80601f016020809104026020016040519081016040528092919081815260200182805461261290613555565b801561265f5780601f106126345761010080835404028352916020019161265f565b820191906000526020600020905b81548152906001019060200180831161264257829003601f168201915b5050505050815260200160028201805461267890613555565b80601f01602080910402602001604051908101604052809291908181526020018280546126a490613555565b80156126f15780601f106126c6576101008083540402835291602001916126f1565b820191906000526020600020905b8154815290600101906020018083116126d457829003601f168201915b50505050508152505081526020019060010190612521565b5050604051630e914a8160e41b81527370ccd15df4b429ac2dc5f6a4103670b8b52e9d909363e914a81093506127459250908590600401613bbc565b60006040518083038186803b15801561275d57600080fd5b505af4158015612771573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526127999190810190613a8a565b91505b60006127a786612b8a565b905060006127b487611148565b6040516020016127c49190613be1565b60408051808303601f19018152828201825260008084526020938401819052825180840190935280546001600160a01b0381168452600160a01b900461ffff16938301939093529250905060006040518060a00160405280600f805461282990613555565b80601f016020809104026020016040519081016040528092919081815260200182805461285590613555565b80156128a25780601f10612877576101008083540402835291602001916128a2565b820191906000526020600020905b81548152906001019060200180831161288557829003601f168201915b50505050508152602001858152602001848152602001878152602001838152509050807370ccd15df4b429ac2dc5f6a4103670b8b52e9d906355edf07290916040518263ffffffff1660e01b81526004016128fd9190613c0a565b60006040518083038186803b15801561291557600080fd5b505af4158015612929573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526129519190810190613caf565b965050505050505b5092915050565b6000828152600960205260409020541561098b57604051634185200960e11b815260048101839052602401610743565b60006001600160a01b0384163b15612a9257604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906129d4903390899088908890600401613ce3565b602060405180830381600087803b1580156129ee57600080fd5b505af1925050508015612a1e575060408051601f3d908101601f19168201909252612a1b91810190613d20565b60015b612a78573d808015612a4c576040519150601f19603f3d011682016040523d82523d6000602084013e612a51565b606091505b508051612a705760405162461bcd60e51b8152600401610743906139f3565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611245565b506001949350505050565b60008281526009602052604090205461098b5781816040516331e5c31960e01b8152600401610743929190613d3d565b60006001600160e01b0319821663152a902d60e11b148061060757506301ffc9a760e01b6001600160e01b0319831614610607565b612b1d33838360405180602001604052806000815250612c7e565b61098b576040516393268f6160e01b81526001600160a01b038316600482015260248101829052604401610743565b61098b338383611452565b612b618383612d71565b612b6e6000848484612990565b6108795760405162461bcd60e51b8152600401610743906139f3565b60606000600e612b9984611148565b604051602001612baa92919061375c565b60408051601f198184030181529181526000858152600a60205290812080549293509091612bd790613555565b90501115610607576000838152600a602052604090208054612bf890613555565b80601f0160208091040260200160405190810160405280929190818152602001828054612c2490613555565b8015612c715780601f10612c4657610100808354040283529160200191612c71565b820191906000526020600020905b815481529060010190602001808311612c5457829003601f168201915b5050505050905092915050565b60006001600160a01b0384163b15612a9257604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612cc2903390899088908890600401613ce3565b602060405180830381600087803b158015612cdc57600080fd5b505af1925050508015612d0c575060408051601f3d908101601f19168201909252612d0991810190613d20565b60015b612a78573d808015612d3a576040519150601f19603f3d011682016040523d82523d6000602084013e612d3f565b606091505b508051612a70576040516393268f6160e01b81526001600160a01b038616600482015260248101859052604401610743565b6001600160a01b038216612dc75760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610743565b6000818152600460205260409020546001600160a01b031615612e2c5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610743565b612e3860008383611f27565b6001600160a01b0382166000908152600560205260408120805460019290612e61908490613858565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b610c52613d56565b828054612ed390613555565b90600052602060002090601f016020900481019282612ef55760008555612f3b565b82601f10612f0e5782800160ff19823516178555612f3b565b82800160010185558215612f3b579182015b82811115612f3b578235825591602001919060010190612f20565b50610b63929150612fd9565b60405180604001604052806002906020820280368337509192915050565b828054612f7190613555565b90600052602060002090601f016020900481019282612f935760008555612f3b565b82601f10612fac57805160ff1916838001178555612f3b565b82800160010185558215612f3b579182015b82811115612f3b578251825591602001919060010190612fbe565b5b80821115610b635760008155600101612fda565b6001600160e01b0319811681146118f157600080fd5b60006020828403121561301657600080fd5b813561165081612fee565b80356001600160a01b038116811461303857600080fd5b919050565b60006020828403121561304f57600080fd5b61165082613021565b60005b8381101561307357818101518382015260200161305b565b83811115610a6b5750506000910152565b6000815180845261309c816020860160208601613058565b601f01601f19169290920160200192915050565b6020815260006116506020830184613084565b6000602082840312156130d557600080fd5b5035919050565b600080604083850312156130ef57600080fd5b6130f883613021565b946020939093013593505050565b60008060006060848603121561311b57600080fd5b61312484613021565b925061313260208501613021565b9150604084013590509250925092565b6000806040838503121561315557600080fd5b50508035926020909101359150565b6000806040838503121561317757600080fd5b823591506108e160208401613021565b60008083601f84011261319957600080fd5b5081356001600160401b038111156131b057600080fd5b6020830191508360208260051b85010111156131cb57600080fd5b9250929050565b6000806000604084860312156131e757600080fd5b6131f084613021565b925060208401356001600160401b0381111561320b57600080fd5b61321786828701613187565b9497909650939450505050565b6000806020838503121561323757600080fd5b82356001600160401b038082111561324e57600080fd5b818501915085601f83011261326257600080fd5b81358181111561327157600080fd5b86602082850101111561328357600080fd5b60209290920196919550909350505050565b60408101818360005b60028110156132c65781516001600160a01b031683526020928301929091019060010161329e565b50505092915050565b80151581146118f157600080fd5b600080604083850312156132f057600080fd5b6132f983613021565b91506020830135613309816132cf565b809150509250929050565b6000806020838503121561332757600080fd5b82356001600160401b0381111561333d57600080fd5b61334985828601613187565b90969095509350505050565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b038111828210171561338d5761338d613355565b60405290565b604051606081016001600160401b038111828210171561338d5761338d613355565b604051601f8201601f191681016001600160401b03811182821017156133dd576133dd613355565b604052919050565b60006001600160401b038211156133fe576133fe613355565b50601f01601f191660200190565b600061341f61341a846133e5565b6133b5565b905082815283838301111561343357600080fd5b828260208301376000602084830101529392505050565b6000806000806080858703121561346057600080fd5b61346985613021565b935061347760208601613021565b92506040850135915060608501356001600160401b0381111561349957600080fd5b8501601f810187136134aa57600080fd5b6134b98782356020840161340c565b91505092959194509250565b600082601f8301126134d657600080fd5b6116508383356020850161340c565b600080604083850312156134f857600080fd5b8235915060208301356001600160401b0381111561351557600080fd5b613521858286016134c5565b9150509250929050565b6000806040838503121561353e57600080fd5b61354783613021565b91506108e160208401613021565b600181811c9082168061356957607f821691505b60208210811415610f8857634e487b7160e01b600052602260045260246000fd5b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600081613600576136006135db565b506000190190565b634e487b7160e01b600052603260045260246000fd5b60008235603e1983360301811261363457600080fd5b9190910192915050565b60006001600160401b0382111561365757613657613355565b5060051b60200190565b60006040823603121561367357600080fd5b61367b61336b565b823581526020808401356001600160401b038082111561369a57600080fd5b9085019036601f8301126136ad57600080fd5b81356136bb61341a8261363e565b81815260059190911b830184019084810190368311156136da57600080fd5b8585015b83811015613712578035858111156136f65760008081fd5b6137043689838a01016134c5565b8452509186019186016136de565b5094860194909452509295945050505050565b6000600019821415613739576137396135db565b5060010190565b60008151613752818560208601613058565b9290920192915050565b600080845481600182811c91508083168061377857607f831692505b602080841082141561379857634e487b7160e01b86526022600452602486fd5b8180156137ac57600181146137bd576137ea565b60ff198616895284890196506137ea565b60008b81526020902060005b868110156137e25781548b8201529085019083016137c9565b505084890196505b5050505050506137fa8185613740565b95945050505050565b634e487b7160e01b600052601260045260246000fd5b60008261382857613828613803565b500490565b60008282101561383f5761383f6135db565b500390565b60008261385357613853613803565b500690565b6000821982111561386b5761386b6135db565b500190565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516138a8816017850160208801613058565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516138d9816028840160208801613058565b01602801949350505050565b60008160001904831182151516156138ff576138ff6135db565b500290565b60006020828403121561391657600080fd5b8151611650816132cf565b6001600160a01b039290921682526001600160e01b031916602082015260400190565b600081518084526020808501808196508360051b8101915082860160005b858110156139cd57828403895281516060815181875261398482880182613084565b915050868201518682038888015261399c8282613084565b915050604080830151925086820381880152506139b98183613084565b9a87019a9550505090840190600101613962565b5091979650505050505050565b8281526040602082015260006112456040830184613944565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600082601f830112613a5657600080fd5b8151613a6461341a826133e5565b818152846020838601011115613a7957600080fd5b611245826020830160208701613058565b60006020808385031215613a9d57600080fd5b82516001600160401b0380821115613ab457600080fd5b818501915085601f830112613ac857600080fd5b8151613ad661341a8261363e565b81815260059190911b83018401908481019088831115613af557600080fd5b8585015b83811015613baf57805185811115613b115760008081fd5b86016060818c03601f1901811315613b295760008081fd5b613b31613393565b8983015188811115613b435760008081fd5b613b518e8c83870101613a45565b82525060408084015189811115613b685760008081fd5b613b768f8d83880101613a45565b838d015250918301519188831115613b8e5760008081fd5b613b9c8e8c85870101613a45565b9082015285525050918601918601613af9565b5098975050505050505050565b604081526000613bcf6040830185613944565b82810360208401526137fa8185613944565b602360f81b815260008251613bfd816001850160208701613058565b9190910160010192915050565b602081526000825160c06020840152613c2660e0840182613084565b90506020840151601f1980858403016040860152613c448383613084565b92506040860151915080858403016060860152613c618383613084565b9250606086015191508085840301608086015250613c7f8282613944565b6080959095015180516001600160a01b031660a08601526020015161ffff1660c090940193909352509192915050565b600060208284031215613cc157600080fd5b81516001600160401b03811115613cd757600080fd5b61124584828501613a45565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613d1690830184613084565b9695505050505050565b600060208284031215613d3257600080fd5b815161165081612fee565b8281526040602082015260006112456040830184613084565b634e487b7160e01b600052605160045260246000fdfea26469706673582212205f7bc6237f1fa620d202d567da1d35996380e860b8d7ed33c38020999bd060ac64736f6c63430008090033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000479807fa7a221de5457b278458fd66b2f0c3039d00000000000000000000000048c15a1c597c972a85f1a15bddbb07f93785579a00000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001a0000000000000000000000000000000000000000000000000000000000000002468747470733a2f2f6c696c76696c6c61696e732e696f2f6170692f6d657461646174612f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000644120636f6c6c656374696f6e206f6620372c373737204c696c272056696c6c61696e73206c6976696e6720696e20746865204d65746176657273652e204d61646520627920636f6e74656d706f726172792061727469737420456467617220506c616e73000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000395646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c65794a755957316c496a6f6954476c734a7942576157787359576c7563794269655342465a476468636942516247467563794973496d526c63324e796158423061573975496a6f6956325673593239745a53423062794230614755675a4746796179427a6157526c49534247636d397449486476636d786b4c584a6c626d3933626d566b4947467964476c7a644377675257526e5958496755477868626e4d7349457870624f4b416d5342576157787359576c7563794268636d55676447686c4947526c646d6c7664584d6759323931626e526c636e4268636e527a49485276494768706379426d61584a7a6443426a623278735a574e30615739754c43424d61577a69674a6b67534756796232567a4c69424d61577a69674a6b67566d6c7362474670626e4d6759584a6c49474567593239736247566a64476c76626942765a6941334e7a633349485675615846315a537767614746755a43316b636d46336269426a6147467959574e305a584a7a4948526f5958516764326c736243427162326c7549475a76636d4e6c637942336158526f49457870624f4b416d5342495a584a765a584d6761573467595734676458426a62323170626d636759573570625746305a57516756465967633256796157567a4c694244623278735a574e304947456763474670636942765a69424d61577a69674a6b67534756796232567a494746755a43424d61577a69674a6b67566d6c7362474670626e4d67644738675a3246706269426859324e6c63334d676447386756484a6861573570626d636751324674634f4b416b336c766458496764476c6a6132563049485276494756345932783163326c325a5342745a584a6a614746755a476c7a5a5377675a585a6c626e516764476c6a61325630637977675957356b4947466a5932567a6379423062794230614755676432397962475167623259675257526e5958496755477868626e4d75496977695a5868305a584a755957786662476c7561794936496d68306448427a4f69387662476c73646d6c7362474670626e4d756157387649697769633256736247567958325a6c5a56396959584e706331397762326c7564484d694f6a67774d4377695a6d566c58334a6c59326c776157567564434936496a42344e44686a4d5456424d554d314f5464444f546379595467315a6a46424d54564352475243596a4133526a6b7a4e7a67314e54633551534a390000000000000000000000

-----Decoded View---------------
Arg [0] : villainMinter (address): 0x479807fa7A221dE5457b278458Fd66b2f0c3039d
Arg [1] : royaltyAddressToSet (address): 0x48c15A1C597C972a85f1A15BDdBb07F93785579A
Arg [2] : baseURI (string): https://lilvillains.io/api/metadata/
Arg [3] : collectionDescription (string): A collection of 7,777 Lil' Villains living in the Metaverse. Made by contemporary artist Edgar Plans
Arg [4] : contractURI_ (string): data:application/json;base64,eyJuYW1lIjoiTGlsJyBWaWxsYWlucyBieSBFZGdhciBQbGFucyIsImRlc2NyaXB0aW9uIjoiV2VsY29tZSB0byB0aGUgZGFyayBzaWRlISBGcm9tIHdvcmxkLXJlbm93bmVkIGFydGlzdCwgRWRnYXIgUGxhbnMsIExpbOKAmSBWaWxsYWlucyBhcmUgdGhlIGRldmlvdXMgY291bnRlcnBhcnRzIHRvIGhpcyBmaXJzdCBjb2xsZWN0aW9uLCBMaWzigJkgSGVyb2VzLiBMaWzigJkgVmlsbGFpbnMgYXJlIGEgY29sbGVjdGlvbiBvZiA3Nzc3IHVuaXF1ZSwgaGFuZC1kcmF3biBjaGFyYWN0ZXJzIHRoYXQgd2lsbCBqb2luIGZvcmNlcyB3aXRoIExpbOKAmSBIZXJvZXMgaW4gYW4gdXBjb21pbmcgYW5pbWF0ZWQgVFYgc2VyaWVzLiBDb2xsZWN0IGEgcGFpciBvZiBMaWzigJkgSGVyb2VzIGFuZCBMaWzigJkgVmlsbGFpbnMgdG8gZ2FpbiBhY2Nlc3MgdG8gVHJhaW5pbmcgQ2FtcOKAk3lvdXIgdGlja2V0IHRvIGV4Y2x1c2l2ZSBtZXJjaGFuZGlzZSwgZXZlbnQgdGlja2V0cywgYW5kIGFjY2VzcyB0byB0aGUgd29ybGQgb2YgRWRnYXIgUGxhbnMuIiwiZXh0ZXJuYWxfbGluayI6Imh0dHBzOi8vbGlsdmlsbGFpbnMuaW8vIiwic2VsbGVyX2ZlZV9iYXNpc19wb2ludHMiOjgwMCwiZmVlX3JlY2lwaWVudCI6IjB4NDhjMTVBMUM1OTdDOTcyYTg1ZjFBMTVCRGRCYjA3RjkzNzg1NTc5QSJ9

-----Encoded View---------------
43 Constructor Arguments found :
Arg [0] : 000000000000000000000000479807fa7a221de5457b278458fd66b2f0c3039d
Arg [1] : 00000000000000000000000048c15a1c597c972a85f1a15bddbb07f93785579a
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [4] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000024
Arg [6] : 68747470733a2f2f6c696c76696c6c61696e732e696f2f6170692f6d65746164
Arg [7] : 6174612f00000000000000000000000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000064
Arg [9] : 4120636f6c6c656374696f6e206f6620372c373737204c696c272056696c6c61
Arg [10] : 696e73206c6976696e6720696e20746865204d65746176657273652e204d6164
Arg [11] : 6520627920636f6e74656d706f72617279206172746973742045646761722050
Arg [12] : 6c616e7300000000000000000000000000000000000000000000000000000000
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000395
Arg [14] : 646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c65794a
Arg [15] : 755957316c496a6f6954476c734a7942576157787359576c7563794269655342
Arg [16] : 465a476468636942516247467563794973496d526c63324e7961584230615739
Arg [17] : 75496a6f6956325673593239745a53423062794230614755675a474679617942
Arg [18] : 7a6157526c49534247636d397449486476636d786b4c584a6c626d3933626d56
Arg [19] : 6b4947467964476c7a644377675257526e5958496755477868626e4d73494578
Arg [20] : 70624f4b416d5342576157787359576c7563794268636d55676447686c494752
Arg [21] : 6c646d6c7664584d6759323931626e526c636e4268636e527a49485276494768
Arg [22] : 706379426d61584a7a6443426a623278735a574e30615739754c43424d61577a
Arg [23] : 69674a6b67534756796232567a4c69424d61577a69674a6b67566d6c73624746
Arg [24] : 70626e4d6759584a6c49474567593239736247566a64476c76626942765a6941
Arg [25] : 334e7a633349485675615846315a537767614746755a43316b636d4633626942
Arg [26] : 6a6147467959574e305a584a7a4948526f5958516764326c736243427162326c
Arg [27] : 7549475a76636d4e6c637942336158526f49457870624f4b416d5342495a584a
Arg [28] : 765a584d6761573467595734676458426a62323170626d636759573570625746
Arg [29] : 305a57516756465967633256796157567a4c694244623278735a574e30494745
Arg [30] : 6763474670636942765a69424d61577a69674a6b67534756796232567a494746
Arg [31] : 755a43424d61577a69674a6b67566d6c7362474670626e4d67644738675a3246
Arg [32] : 706269426859324e6c63334d676447386756484a6861573570626d6367513246
Arg [33] : 74634f4b416b336c766458496764476c6a613256304948527649475634593278
Arg [34] : 3163326c325a5342745a584a6a614746755a476c7a5a5377675a585a6c626e51
Arg [35] : 6764476c6a61325630637977675957356b4947466a5932567a63794230627942
Arg [36] : 30614755676432397962475167623259675257526e5958496755477868626e4d
Arg [37] : 75496977695a5868305a584a755957786662476c7561794936496d6830644842
Arg [38] : 7a4f69387662476c73646d6c7362474670626e4d756157387649697769633256
Arg [39] : 736247567958325a6c5a56396959584e706331397762326c7564484d694f6a67
Arg [40] : 774d4377695a6d566c58334a6c59326c776157567564434936496a42344e4468
Arg [41] : 6a4d5456424d554d314f5464444f546379595467315a6a46424d545643524752
Arg [42] : 43596a4133526a6b7a4e7a67314e54633551534a390000000000000000000000


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.