ETH Price: $3,052.31 (+3.46%)

Token

LordsOfLightPacks (RTLOL)
 

Overview

Max Total Supply

0 RTLOL

Holders

1,049

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
1 RTLOL
0x9a6A39537e8ecb79D242e198759c8863fFc3852E
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

The Lords of Light is Raini's competitive trading card game, which will put your skills to the test against other players in a battle for strategic superiority.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
RainiCardPacks

Compiler Version
v0.8.3+commit.8d00100c

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 12 : RainiCardPacks.sol
// "SPDX-License-Identifier: MIT"

pragma solidity ^0.8.3;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

contract RainiCardPacks is ERC721, AccessControl {
  bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
  bytes32 public constant BURNER_ROLE = keccak256("BURNER_ROLE");

  struct PackType {
    uint32 packClassId;
    uint64 costInUnicorns;
    uint64 costInRainbows;
    uint64 costInEth;
    uint16 maxMintsPerAddress;
    uint32 tokenIdStart; // the first token id
    uint32 supply;
    uint32 mintTimeStart; // the timestamp from which the pack can be minted
  }

  address private contractOwner;
  string public contractURIString;
  string public baseUri;

  uint256 public maxPackTypeId;

  mapping (uint256 => PackType) public packTypes;
  mapping (uint256 => uint) public numberOfPackMinted;

  modifier onlyOwner() {
    require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()));
    _;
  }

  modifier onlyMinter() {
    require(hasRole(MINTER_ROLE, _msgSender()), "caller is not a minter");
    _;
  }

  // userId => cardId => count
  mapping(address => mapping(uint256 => uint256)) public numberMintedByAddress; // Number of a card minted by an address

  constructor(string memory name_, string memory symbol_, string memory _uri, string memory _contractURIString, address _contractOwner)
    ERC721(name_, symbol_) {
      _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());
      _setupRole(MINTER_ROLE, _msgSender());
      _setupRole(BURNER_ROLE, _msgSender());
      _setupRole(DEFAULT_ADMIN_ROLE, _contractOwner);
      baseUri = _uri; 
      contractOwner = _contractOwner;
      contractURIString = _contractURIString;
  }

  function owner() public view virtual returns (address) {
    return contractOwner;
  }

  function getPackClass(uint256 tokenId) public view returns (uint256) {
    for (uint256 i = 1; i <= maxPackTypeId; i++) {
      if (tokenId >= packTypes[i].tokenIdStart && tokenId <= packTypes[i].tokenIdStart + packTypes[i].supply - 1) {
        return packTypes[i].packClassId;
      }
    }
    revert('dne');
  }

  function updatePacks( 
          uint256[] memory _id, 
          uint256[] memory _costInUnicorns, 
          uint256[] memory _costInRainbows, 
          uint256[] memory _costInEth, 
          uint256[] memory _maxMintsPerAddress,  
          uint32[] memory _mintTimeStart) 
          external onlyOwner {
        
      for (uint256 i; i < _costInUnicorns.length; i++) {
        PackType memory _packType = packTypes[_id[i]];
        _packType.costInUnicorns = uint64(_costInUnicorns[i]);
        _packType.costInRainbows = uint64(_costInRainbows[i]);
        _packType.costInEth = uint64(_costInEth[i]);
        _packType.maxMintsPerAddress = uint16(_maxMintsPerAddress[i]);
        _packType.mintTimeStart = _mintTimeStart[i];
        packTypes[_id[i]] = _packType;
      }
  }

    function updateMintTimeStarts( 
          uint256[] memory _id,
          uint32[] memory _mintTimeStart) 
          external onlyOwner {
        
      for (uint256 i; i < _id.length; i++) {
        PackType memory _packType = packTypes[_id[i]];
        _packType.mintTimeStart = _mintTimeStart[i];
        packTypes[_id[i]] = _packType;
      }
  }

  function setcontractURI(string memory _contractURIString)
    external onlyOwner {
      contractURIString = _contractURIString;
  }

  function setBaseURI(string memory _baseURIString)
    external onlyOwner {
      baseUri = _baseURIString;
  }

  function addToNumberMintedByAddress(address _address, uint256 _cardId, uint256 _amount) external onlyMinter {
    numberMintedByAddress[_address][_cardId] += _amount;
  }

  function initPacks(
                     uint256[] memory _packClassId,
                     uint256[] memory _tokenIdStart, 
                     uint256[] memory _supply, 
                     uint256[] memory _costInUnicorns, 
                     uint256[] memory _costInRainbows, 
                     uint256[] memory _costInEth, 
                     uint256[] memory _maxMintsPerAddress,  
                     uint32[] memory _mintTimeStart) external onlyOwner {
      
      uint256 _maxPackTypeId = maxPackTypeId;

      for (uint256 i; i < _costInUnicorns.length; i++) {
        _maxPackTypeId++;
        packTypes[_maxPackTypeId] = PackType({
            packClassId: uint32(_packClassId[i]),
            costInUnicorns: uint64(_costInUnicorns[i]),
            costInRainbows: uint64(_costInRainbows[i]),
            costInEth: uint64(_costInEth[i]),
            maxMintsPerAddress: uint16(_maxMintsPerAddress[i]),
            mintTimeStart: uint32(_mintTimeStart[i]),
            tokenIdStart: uint32(_tokenIdStart[i]),
            supply: uint32(_supply[i])
          });
      }

      maxPackTypeId = _maxPackTypeId;
  }

  function mint(address _to, uint256 _packTypeId, uint256 _amount) external {
    require(hasRole(MINTER_ROLE, _msgSender()), "RainiNft721: caller is not a minter");
    PackType memory _packType = packTypes[_packTypeId];
    uint256 _numberOfPackMinted = numberOfPackMinted[_packTypeId];
    uint256 start = _packType.tokenIdStart;
    require (_amount <= _packType.supply - _numberOfPackMinted, 'not enough packs');
    for (uint256 i = 0; i < _amount; i++) {
      _mint(_to, start + _numberOfPackMinted + i);
    }
    numberOfPackMinted[_packTypeId] += _amount;
  }

  function burn(uint256 _tokenId) external {
    require(hasRole(BURNER_ROLE, _msgSender()), "RainiNft721: caller is not a burner");
    _burn(_tokenId);
  }

  function tokenURI(uint256 id) public view virtual override returns (string memory) {
    uint256 packId = getPackClass(id);
    return string(abi.encodePacked(baseUri, '?pid=', Strings.toString(packId), '&tid=',  Strings.toString(id)));
  }

  function supportsInterface(bytes4 interfaceId) 
    public virtual override(ERC721, AccessControl) view returns (bool) {
        return interfaceId == type(IERC721).interfaceId
            || interfaceId == type(IERC721Metadata).interfaceId
            || interfaceId == type(IAccessControl).interfaceId
            || super.supportsInterface(interfaceId);
  }

  // Mimic RainiNFT1155 in order to allow to be traded in the market

  function balanceOf(address _owner, uint256 _id) external pure returns (uint256) {
    // always returns 1 for market contract to work, use 'ownerOf' for actual info
    return 1;
  }

  function safeTransferFrom(address _from, address _to, uint256 _id, uint256 _value, bytes calldata _data) external {
    require(_value == 1);
    safeTransferFrom(_from, _to, _id, _data);
  }

  function uri(uint256 id) public view returns (string memory) {
    return tokenURI(id);
  }

  struct TokenVars {
    uint128 cardId;
    uint32 level;
    uint32 number; // to assign a numbering to NFTs
    bytes1 mintedContractChar;
  }

  function tokenVars(uint256 _tokenId) external view returns (TokenVars memory) {
    return TokenVars({
      cardId: uint128(getPackClass(_tokenId)),
      level: 1,
      number: 0,
      mintedContractChar: ''
    });
  }
}

File 2 of 12 : AccessControl.sol
// SPDX-License-Identifier: MIT

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 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 {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

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

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

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

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

        _revokeRole(role, account);
    }

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

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

    function _grantRole(bytes32 role, address account) private {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    function _revokeRole(bytes32 role, address account) private {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 3 of 12 : IAccessControl.sol
// SPDX-License-Identifier: MIT

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 4 of 12 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(operator != _msgSender(), "ERC721: approve to caller");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

File 5 of 12 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 6 of 12 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 7 of 12 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 8 of 12 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 9 of 12 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 10 of 12 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

File 11 of 12 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 12 of 12 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

Settings
{
  "remappings": [],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "evmVersion": "istanbul",
  "libraries": {},
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"string","name":"_uri","type":"string"},{"internalType":"string","name":"_contractURIString","type":"string"},{"internalType":"address","name":"_contractOwner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"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":"BURNER_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":"_address","type":"address"},{"internalType":"uint256","name":"_cardId","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"addToNumberMintedByAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURIString","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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getPackClass","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":"uint256[]","name":"_packClassId","type":"uint256[]"},{"internalType":"uint256[]","name":"_tokenIdStart","type":"uint256[]"},{"internalType":"uint256[]","name":"_supply","type":"uint256[]"},{"internalType":"uint256[]","name":"_costInUnicorns","type":"uint256[]"},{"internalType":"uint256[]","name":"_costInRainbows","type":"uint256[]"},{"internalType":"uint256[]","name":"_costInEth","type":"uint256[]"},{"internalType":"uint256[]","name":"_maxMintsPerAddress","type":"uint256[]"},{"internalType":"uint32[]","name":"_mintTimeStart","type":"uint32[]"}],"name":"initPacks","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPackTypeId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_packTypeId","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"numberMintedByAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"numberOfPackMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"packTypes","outputs":[{"internalType":"uint32","name":"packClassId","type":"uint32"},{"internalType":"uint64","name":"costInUnicorns","type":"uint64"},{"internalType":"uint64","name":"costInRainbows","type":"uint64"},{"internalType":"uint64","name":"costInEth","type":"uint64"},{"internalType":"uint16","name":"maxMintsPerAddress","type":"uint16"},{"internalType":"uint32","name":"tokenIdStart","type":"uint32"},{"internalType":"uint32","name":"supply","type":"uint32"},{"internalType":"uint32","name":"mintTimeStart","type":"uint32"}],"stateMutability":"view","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":"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":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_value","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURIString","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_contractURIString","type":"string"}],"name":"setcontractURI","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":"id","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenVars","outputs":[{"components":[{"internalType":"uint128","name":"cardId","type":"uint128"},{"internalType":"uint32","name":"level","type":"uint32"},{"internalType":"uint32","name":"number","type":"uint32"},{"internalType":"bytes1","name":"mintedContractChar","type":"bytes1"}],"internalType":"struct RainiCardPacks.TokenVars","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_id","type":"uint256[]"},{"internalType":"uint32[]","name":"_mintTimeStart","type":"uint32[]"}],"name":"updateMintTimeStarts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_id","type":"uint256[]"},{"internalType":"uint256[]","name":"_costInUnicorns","type":"uint256[]"},{"internalType":"uint256[]","name":"_costInRainbows","type":"uint256[]"},{"internalType":"uint256[]","name":"_costInEth","type":"uint256[]"},{"internalType":"uint256[]","name":"_maxMintsPerAddress","type":"uint256[]"},{"internalType":"uint32[]","name":"_mintTimeStart","type":"uint32[]"}],"name":"updatePacks","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]

60806040523480156200001157600080fd5b50604051620036f0380380620036f083398101604081905262000034916200033a565b8451859085906200004d906000906020850190620001e1565b50805162000063906001906020840190620001e1565b5062000076915060009050335b6200012d565b620000a27f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a63362000070565b620000ce7f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a8483362000070565b620000db6000826200012d565b8251620000f0906009906020860190620001e1565b50600780546001600160a01b0319166001600160a01b038316179055815162000121906008906020850190620001e1565b50505050505062000464565b6200013982826200013d565b5050565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff16620001395760008281526006602090815260408083206001600160a01b03851684529091529020805460ff191660011790556200019d3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b828054620001ef9062000411565b90600052602060002090601f0160209004810192826200021357600085556200025e565b82601f106200022e57805160ff19168380011785556200025e565b828001600101855582156200025e579182015b828111156200025e57825182559160200191906001019062000241565b506200026c92915062000270565b5090565b5b808211156200026c576000815560010162000271565b600082601f83011262000298578081fd5b81516001600160401b0380821115620002b557620002b56200044e565b604051601f8301601f19908116603f01168101908282118183101715620002e057620002e06200044e565b81604052838152602092508683858801011115620002fc578485fd5b8491505b838210156200031f578582018301518183018401529082019062000300565b838211156200033057848385830101525b9695505050505050565b600080600080600060a0868803121562000352578081fd5b85516001600160401b038082111562000369578283fd5b6200037789838a0162000287565b965060208801519150808211156200038d578283fd5b6200039b89838a0162000287565b95506040880151915080821115620003b1578283fd5b620003bf89838a0162000287565b94506060880151915080821115620003d5578283fd5b50620003e48882890162000287565b608088015190935090506001600160a01b038116811462000403578182fd5b809150509295509295909350565b600181811c908216806200042657607f821691505b602082108114156200044857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b61327c80620004746000396000f3fe608060405234801561001057600080fd5b50600436106102525760003560e01c80636352211e116101465780639abc8320116100c3578063c87b56dd11610087578063c87b56dd1461064e578063d539139314610661578063d547741f14610688578063e985e9c51461069b578063efa00ce7146106d7578063f242432a146106ea57610252565b80639abc832014610605578063a217fddf1461060d578063a22cb46514610615578063b88d4fde14610628578063c2fa40191461063b57610252565b80638d2d3f141161010a5780638d2d3f14146105b35780638da5cb5b146105c657806391d14854146105d757806395d89b41146105ea57806398035ddd146105f257610252565b80636352211e146104a557806370a08231146104b85780637e41d835146104cb5780637ffae846146104d357806386f42b89146105a057610252565b806323b872dd116101d457806342842e0e1161019857806342842e0e1461044357806342966c681461045657806344cf562f1461046957806346db2f8b1461048957806355f804b31461049257610252565b806323b872dd146103c0578063248a9ca3146103d3578063282c51f3146103f65780632f2ff15d1461041d57806336568abe1461043057610252565b8063095ea7b31161021b578063095ea7b3146103475780630a3de4511461035c5780630e89341c14610387578063127fae901461039a578063156e29f6146103ad57610252565b8062fdd58e1461025757806301870f021461028057806301ffc9a7146102e457806306fdde0314610307578063081812fc1461031c575b600080fd5b61026d610265366004612a2c565b600192915050565b6040519081526020015b60405180910390f35b61029361028e366004612d0a565b6106fd565b6040805182516001600160801b0316815260208084015163ffffffff908116918301919091528383015116918101919091526060918201516001600160f81b03191691810191909152608001610277565b6102f76102f2366004612d44565b61075e565b6040519015158152602001610277565b61030f6107bf565b6040516102779190612f89565b61032f61032a366004612d0a565b610851565b6040516001600160a01b039091168152602001610277565b61035a610355366004612a2c565b6108eb565b005b61026d61036a366004612a2c565b600d60209081526000928352604080842090915290825290205481565b61030f610395366004612d0a565b610a01565b61035a6103a8366004612bbd565b610a0c565b61035a6103bb366004612a55565b610d60565b61035a6103ce36600461289f565b610f40565b61026d6103e1366004612d0a565b60009081526006602052604090206001015490565b61026d7f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a84881565b61035a61042b366004612d22565b610f71565b61035a61043e366004612d22565b610f98565b61035a61045136600461289f565b611016565b61035a610464366004612d0a565b611031565b61026d610477366004612d0a565b600c6020526000908152604090205481565b61026d600a5481565b61035a6104a0366004612d7c565b6110bf565b61032f6104b3366004612d0a565b6110e6565b61026d6104c6366004612853565b61115d565b61030f6111e4565b6105496104e1366004612d0a565b600b602052600090815260409020805460019091015463ffffffff808316926001600160401b03600160201b808304821694600160601b8404831694600160a01b85049093169361ffff600160e01b9091041692818116928204811691600160401b90041688565b6040805163ffffffff998a1681526001600160401b0398891660208201529688169087015295909316606085015261ffff9091166080840152841660a0830152831660c0820152911660e082015261010001610277565b61035a6105ae366004612a87565b611272565b61035a6105c1366004612caa565b611561565b6007546001600160a01b031661032f565b6102f76105e5366004612d22565b6117c5565b61030f6117f0565b61026d610600366004612d0a565b6117ff565b61030f6118d2565b61026d600081565b61035a6106233660046129f2565b6118df565b61035a6106363660046128da565b6119b1565b61035a610649366004612a55565b6119e9565b61030f61065c366004612d0a565b611a95565b61026d7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b61035a610696366004612d22565b611ae1565b6102f76106a936600461286d565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61035a6106e5366004612d7c565b611b07565b61035a6106f8366004612952565b611b2e565b6040805160808101825260008082526020820181905291810182905260608101919091526040518060800160405280610735846117ff565b6001600160801b031681526001602082015260006040820181905260609091015290505b919050565b60006001600160e01b031982166380ac58cd60e01b148061078f57506001600160e01b03198216635b5e139f60e01b145b806107aa57506001600160e01b03198216637965db0b60e01b145b806107b957506107b982611b85565b92915050565b6060600080546107ce90613184565b80601f01602080910402602001604051908101604052809291908181526020018280546107fa90613184565b80156108475780601f1061081c57610100808354040283529160200191610847565b820191906000526020600020905b81548152906001019060200180831161082a57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166108cf5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006108f6826110e6565b9050806001600160a01b0316836001600160a01b031614156109645760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016108c6565b336001600160a01b0382161480610980575061098081336106a9565b6109f25760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016108c6565b6109fc8383611baa565b505050565b60606107b982611a95565b610a176000336105e5565b610a2057600080fd5b60005b8551811015610d57576000600b6000898481518110610a5257634e487b7160e01b600052603260045260246000fd5b6020908102919091018101518252818101929092526040908101600020815161010081018352815463ffffffff80821683526001600160401b03600160201b808404821697850197909752600160601b8304811695840195909552600160a01b8204909416606083015261ffff600160e01b90910416608082015260019091015480831660a0830152928304821660c0820152600160401b9092041660e08201528751909150879083908110610b1857634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160401b0316908201528551869083908110610b5357634e487b7160e01b600052603260045260246000fd5b60209081029190910101516001600160401b031660408201528451859083908110610b8e57634e487b7160e01b600052603260045260246000fd5b60209081029190910101516001600160401b031660608201528351849083908110610bc957634e487b7160e01b600052603260045260246000fd5b602090810291909101015161ffff1660808201528251839083908110610bff57634e487b7160e01b600052603260045260246000fd5b60200260200101518160e0019063ffffffff16908163ffffffff168152505080600b60008a8581518110610c4357634e487b7160e01b600052603260045260246000fd5b60209081029190910181015182528181019290925260409081016000208351815493850151928501516060860151608087015161ffff16600160e01b0261ffff60e01b196001600160401b03928316600160a01b0267ffffffffffffffff60a01b19948416600160601b0294909416600160601b600160e01b031993909716600160201b9081026001600160601b031990991663ffffffff96871617989098179290921695909517919091171692909217815560a08401516001909101805460c086015160e0909601518416600160401b0263ffffffff60401b1996851690950267ffffffffffffffff19909116929093169190911791909117929092161790555080610d4f816131bf565b915050610a23565b50505050505050565b610d8a7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6336105e5565b610de25760405162461bcd60e51b815260206004820152602360248201527f5261696e694e66743732313a2063616c6c6572206973206e6f742061206d696e6044820152623a32b960e91b60648201526084016108c6565b6000828152600b60209081526040808320815161010081018352815463ffffffff8082168352600160201b8083046001600160401b0390811685890152600160601b8404811685880152600160a01b8404166060850152600160e01b90920461ffff16608084015260019093015480841660a08401908152918104841660c08401908152600160401b909104841660e0840152888752600c9095529290942054915192519192811691610e9791849116613105565b841115610ed95760405162461bcd60e51b815260206004820152601060248201526f6e6f7420656e6f756768207061636b7360801b60448201526064016108c6565b60005b84811015610f1457610f028782610ef38686613092565b610efd9190613092565b611c18565b80610f0c816131bf565b915050610edc565b506000858152600c602052604081208054869290610f33908490613092565b9091555050505050505050565b610f4a3382611d5a565b610f665760405162461bcd60e51b81526004016108c690612fee565b6109fc838383611e51565b600082815260066020526040902060010154610f8e81335b611ff1565b6109fc8383612055565b6001600160a01b03811633146110085760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016108c6565b61101282826120db565b5050565b6109fc838383604051806020016040528060008152506119b1565b61105b7f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a848336105e5565b6110b35760405162461bcd60e51b815260206004820152602360248201527f5261696e694e66743732313a2063616c6c6572206973206e6f742061206275726044820152623732b960e91b60648201526084016108c6565b6110bc81612142565b50565b6110ca6000336105e5565b6110d357600080fd5b805161101290600990602084019061266f565b6000818152600260205260408120546001600160a01b0316806107b95760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016108c6565b60006001600160a01b0382166111c85760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016108c6565b506001600160a01b031660009081526003602052604090205490565b600880546111f190613184565b80601f016020809104026020016040519081016040528092919081815260200182805461121d90613184565b801561126a5780601f1061123f5761010080835404028352916020019161126a565b820191906000526020600020905b81548152906001019060200180831161124d57829003601f168201915b505050505081565b61127d6000336105e5565b61128657600080fd5b600a5460005b8651811015611553578161129f816131bf565b9250506040518061010001604052808b83815181106112ce57634e487b7160e01b600052603260045260246000fd5b602002602001015163ffffffff16815260200188838151811061130157634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160401b0316815260200187838151811061133757634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160401b0316815260200186838151811061136d57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160401b031681526020018583815181106113a357634e487b7160e01b600052603260045260246000fd5b602002602001015161ffff1681526020018a83815181106113d457634e487b7160e01b600052603260045260246000fd5b602002602001015163ffffffff16815260200189838151811061140757634e487b7160e01b600052603260045260246000fd5b602002602001015163ffffffff16815260200184838151811061143a57634e487b7160e01b600052603260045260246000fd5b60209081029190910181015163ffffffff9081169092526000858152600b8252604090819020845181549386015192860151606087015160808801519287166001600160601b031990961695909517600160201b6001600160401b03958616810291909117600160601b600160e01b031916600160601b9286169290920267ffffffffffffffff60a01b191691909117600160a01b94909516939093029390931761ffff60e01b1916600160e01b61ffff9094169390930292909217825560a08401516001909201805460c086015160e09096015193851667ffffffffffffffff19909116179484169091029390931763ffffffff60401b1916600160401b91909216021790558061154b816131bf565b91505061128c565b50600a555050505050505050565b61156c6000336105e5565b61157557600080fd5b60005b82518110156109fc576000600b60008584815181106115a757634e487b7160e01b600052603260045260246000fd5b6020908102919091018101518252818101929092526040908101600020815161010081018352815463ffffffff80821683526001600160401b03600160201b808404821697850197909752600160601b8304811695840195909552600160a01b8204909416606083015261ffff600160e01b90910416608082015260019091015480831660a0830152928304821660c0820152600160401b9092041660e0820152835190915083908390811061166d57634e487b7160e01b600052603260045260246000fd5b60200260200101518160e0019063ffffffff16908163ffffffff168152505080600b60008685815181106116b157634e487b7160e01b600052603260045260246000fd5b60209081029190910181015182528181019290925260409081016000208351815493850151928501516060860151608087015161ffff16600160e01b0261ffff60e01b196001600160401b03928316600160a01b0267ffffffffffffffff60a01b19948416600160601b0294909416600160601b600160e01b031993909716600160201b9081026001600160601b031990991663ffffffff96871617989098179290921695909517919091171692909217815560a08401516001909101805460c086015160e0909601518416600160401b0263ffffffff60401b1996851690950267ffffffffffffffff199091169290931691909117919091179290921617905550806117bd816131bf565b915050611578565b60009182526006602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6060600180546107ce90613184565b600060015b600a5481116118a3576000818152600b602052604090206001015463ffffffff16831080159061187057506000818152600b6020526040902060019081015461185c9063ffffffff600160201b8204811691166130aa565b611866919061311c565b63ffffffff168311155b15611891576000908152600b602052604090205463ffffffff169050610759565b8061189b816131bf565b915050611804565b5060405162461bcd60e51b8152602060048201526003602482015262646e6560e81b60448201526064016108c6565b600980546111f190613184565b6001600160a01b0382163314156119385760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016108c6565b3360008181526005602090815260408083206001600160a01b0387168085529252909120805460ff1916841515179055906001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516119a5911515815260200190565b60405180910390a35050565b6119bb3383611d5a565b6119d75760405162461bcd60e51b81526004016108c690612fee565b6119e3848484846121dd565b50505050565b611a137f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6336105e5565b611a585760405162461bcd60e51b815260206004820152601660248201527531b0b63632b91034b9903737ba10309036b4b73a32b960511b60448201526064016108c6565b6001600160a01b0383166000908152600d6020908152604080832085845290915281208054839290611a8b908490613092565b9091555050505050565b60606000611aa2836117ff565b90506009611aaf82612210565b611ab885612210565b604051602001611aca93929190612e09565b604051602081830303815290604052915050919050565b600082815260066020526040902060010154611afd8133610f89565b6109fc83836120db565b611b126000336105e5565b611b1b57600080fd5b805161101290600890602084019061266f565b82600114611b3b57600080fd5b611b7d86868685858080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506119b192505050565b505050505050565b60006001600160e01b03198216637965db0b60e01b14806107b957506107b98261232a565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611bdf826110e6565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160a01b038216611c6e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016108c6565b6000818152600260205260409020546001600160a01b031615611cd35760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016108c6565b6001600160a01b0382166000908152600360205260408120805460019290611cfc908490613092565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000818152600260205260408120546001600160a01b0316611dd35760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016108c6565b6000611dde836110e6565b9050806001600160a01b0316846001600160a01b03161480611e195750836001600160a01b0316611e0e84610851565b6001600160a01b0316145b80611e4957506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611e64826110e6565b6001600160a01b031614611ecc5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016108c6565b6001600160a01b038216611f2e5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016108c6565b611f39600082611baa565b6001600160a01b0383166000908152600360205260408120805460019290611f62908490613105565b90915550506001600160a01b0382166000908152600360205260408120805460019290611f90908490613092565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b611ffb82826117c5565b61101257612013816001600160a01b0316601461237a565b61201e83602061237a565b60405160200161202f929190612ee1565b60408051601f198184030181529082905262461bcd60e51b82526108c691600401612f89565b61205f82826117c5565b6110125760008281526006602090815260408083206001600160a01b03851684529091529020805460ff191660011790556120973390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6120e582826117c5565b156110125760008281526006602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600061214d826110e6565b905061215a600083611baa565b6001600160a01b0381166000908152600360205260408120805460019290612183908490613105565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6121e8848484611e51565b6121f484848484612562565b6119e35760405162461bcd60e51b81526004016108c690612f9c565b60608161223557506040805180820190915260018152600360fc1b6020820152610759565b8160005b811561225f5780612249816131bf565b91506122589050600a836130d2565b9150612239565b6000816001600160401b0381111561228757634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156122b1576020820181803683370190505b5090505b8415611e49576122c6600183613105565b91506122d3600a866131da565b6122de906030613092565b60f81b81838151811061230157634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612323600a866130d2565b94506122b5565b60006001600160e01b031982166380ac58cd60e01b148061235b57506001600160e01b03198216635b5e139f60e01b145b806107b957506301ffc9a760e01b6001600160e01b03198316146107b9565b606060006123898360026130e6565b612394906002613092565b6001600160401b038111156123b957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156123e3576020820181803683370190505b509050600360fc1b8160008151811061240c57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061244957634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600061246d8460026130e6565b612478906001613092565b90505b600181111561250c576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106124ba57634e487b7160e01b600052603260045260246000fd5b1a60f81b8282815181106124de57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c936125058161316d565b905061247b565b50831561255b5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016108c6565b9392505050565b60006001600160a01b0384163b1561266457604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906125a6903390899088908890600401612f56565b602060405180830381600087803b1580156125c057600080fd5b505af19250505080156125f0575060408051601f3d908101601f191682019092526125ed91810190612d60565b60015b61264a573d80801561261e576040519150601f19603f3d011682016040523d82523d6000602084013e612623565b606091505b5080516126425760405162461bcd60e51b81526004016108c690612f9c565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611e49565b506001949350505050565b82805461267b90613184565b90600052602060002090601f01602090048101928261269d57600085556126e3565b82601f106126b657805160ff19168380011785556126e3565b828001600101855582156126e3579182015b828111156126e35782518255916020019190600101906126c8565b506126ef9291506126f3565b5090565b5b808211156126ef57600081556001016126f4565b60006001600160401b038311156127215761272161321a565b612734601f8401601f191660200161303f565b905082815283838301111561274857600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b038116811461075957600080fd5b600082601f830112612786578081fd5b8135602061279b6127968361306f565b61303f565b80838252828201915082860187848660051b89010111156127ba578586fd5b855b858110156127d8578135845292840192908401906001016127bc565b5090979650505050505050565b600082601f8301126127f5578081fd5b813560206128056127968361306f565b80838252828201915082860187848660051b8901011115612824578586fd5b855b858110156127d857813563ffffffff81168114612841578788fd5b84529284019290840190600101612826565b600060208284031215612864578081fd5b61255b8261275f565b6000806040838503121561287f578081fd5b6128888361275f565b91506128966020840161275f565b90509250929050565b6000806000606084860312156128b3578081fd5b6128bc8461275f565b92506128ca6020850161275f565b9150604084013590509250925092565b600080600080608085870312156128ef578081fd5b6128f88561275f565b93506129066020860161275f565b92506040850135915060608501356001600160401b03811115612927578182fd5b8501601f81018713612937578182fd5b61294687823560208401612708565b91505092959194509250565b60008060008060008060a0878903121561296a578182fd5b6129738761275f565b95506129816020880161275f565b9450604087013593506060870135925060808701356001600160401b03808211156129aa578384fd5b818901915089601f8301126129bd578384fd5b8135818111156129cb578485fd5b8a60208285010111156129dc578485fd5b6020830194508093505050509295509295509295565b60008060408385031215612a04578182fd5b612a0d8361275f565b915060208301358015158114612a21578182fd5b809150509250929050565b60008060408385031215612a3e578081fd5b612a478361275f565b946020939093013593505050565b600080600060608486031215612a69578081fd5b612a728461275f565b95602085013595506040909401359392505050565b600080600080600080600080610100898b031215612aa3578586fd5b88356001600160401b0380821115612ab9578788fd5b612ac58c838d01612776565b995060208b0135915080821115612ada578788fd5b612ae68c838d01612776565b985060408b0135915080821115612afb578788fd5b612b078c838d01612776565b975060608b0135915080821115612b1c578384fd5b612b288c838d01612776565b965060808b0135915080821115612b3d578384fd5b612b498c838d01612776565b955060a08b0135915080821115612b5e578384fd5b612b6a8c838d01612776565b945060c08b0135915080821115612b7f578384fd5b612b8b8c838d01612776565b935060e08b0135915080821115612ba0578283fd5b50612bad8b828c016127e5565b9150509295985092959890939650565b60008060008060008060c08789031215612bd5578384fd5b86356001600160401b0380821115612beb578586fd5b612bf78a838b01612776565b97506020890135915080821115612c0c578586fd5b612c188a838b01612776565b96506040890135915080821115612c2d578586fd5b612c398a838b01612776565b95506060890135915080821115612c4e578384fd5b612c5a8a838b01612776565b94506080890135915080821115612c6f578384fd5b612c7b8a838b01612776565b935060a0890135915080821115612c90578283fd5b50612c9d89828a016127e5565b9150509295509295509295565b60008060408385031215612cbc578182fd5b82356001600160401b0380821115612cd2578384fd5b612cde86838701612776565b93506020850135915080821115612cf3578283fd5b50612d00858286016127e5565b9150509250929050565b600060208284031215612d1b578081fd5b5035919050565b60008060408385031215612d34578182fd5b823591506128966020840161275f565b600060208284031215612d55578081fd5b813561255b81613230565b600060208284031215612d71578081fd5b815161255b81613230565b600060208284031215612d8d578081fd5b81356001600160401b03811115612da2578182fd5b8201601f81018413612db2578182fd5b611e4984823560208401612708565b60008151808452612dd9816020860160208601613141565b601f01601f19169290920160200192915050565b60008151612dff818560208601613141565b9290920192915050565b600080855482600182811c915080831680612e2557607f831692505b6020808410821415612e4557634e487b7160e01b87526022600452602487fd5b818015612e595760018114612e6a57612e96565b60ff19861689528489019650612e96565b60008c815260209020885b86811015612e8e5781548b820152908501908301612e75565b505084890196505b505050505050612ed7612ed1612ec0612eba84643f7069643d60d81b815260050190565b88612ded565b64267469643d60d81b815260050190565b85612ded565b9695505050505050565b60007f416363657373436f6e74726f6c3a206163636f756e742000000000000000000082528351612f19816017850160208801613141565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351612f4a816028840160208801613141565b01602801949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612ed790830184612dc1565b60006020825261255b6020830184612dc1565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051601f8201601f191681016001600160401b03811182821017156130675761306761321a565b604052919050565b60006001600160401b038211156130885761308861321a565b5060051b60200190565b600082198211156130a5576130a56131ee565b500190565b600063ffffffff8083168185168083038211156130c9576130c96131ee565b01949350505050565b6000826130e1576130e1613204565b500490565b6000816000190483118215151615613100576131006131ee565b500290565b600082821015613117576131176131ee565b500390565b600063ffffffff83811690831681811015613139576131396131ee565b039392505050565b60005b8381101561315c578181015183820152602001613144565b838111156119e35750506000910152565b60008161317c5761317c6131ee565b506000190190565b600181811c9082168061319857607f821691505b602082108114156131b957634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156131d3576131d36131ee565b5060010190565b6000826131e9576131e9613204565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b0319811681146110bc57600080fdfea26469706673582212202e5dbf889f3ba326b339103017db0cfc45005e6ee2a3800bf4271ce216fa9bfd64736f6c6343000803003300000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000018000000000000000000000000082f9d5fe6c46990f3c2536e83b2b4e1c0a91f27f00000000000000000000000000000000000000000000000000000000000000114c6f7264734f664c696768745061636b73000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000552544c4f4c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003f68747470733a2f2f6e66742e7261696e692e696f2f77702d636f6e74656e742f7468656d65732f7261696e6961646d696e2f6170692f7061636b732e70687000000000000000000000000000000000000000000000000000000000000000003a697066733a2f2f697066732f516d63465378736d484b534637714c6970696f38527545394d68363162503255355664446735347a435637573567000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102525760003560e01c80636352211e116101465780639abc8320116100c3578063c87b56dd11610087578063c87b56dd1461064e578063d539139314610661578063d547741f14610688578063e985e9c51461069b578063efa00ce7146106d7578063f242432a146106ea57610252565b80639abc832014610605578063a217fddf1461060d578063a22cb46514610615578063b88d4fde14610628578063c2fa40191461063b57610252565b80638d2d3f141161010a5780638d2d3f14146105b35780638da5cb5b146105c657806391d14854146105d757806395d89b41146105ea57806398035ddd146105f257610252565b80636352211e146104a557806370a08231146104b85780637e41d835146104cb5780637ffae846146104d357806386f42b89146105a057610252565b806323b872dd116101d457806342842e0e1161019857806342842e0e1461044357806342966c681461045657806344cf562f1461046957806346db2f8b1461048957806355f804b31461049257610252565b806323b872dd146103c0578063248a9ca3146103d3578063282c51f3146103f65780632f2ff15d1461041d57806336568abe1461043057610252565b8063095ea7b31161021b578063095ea7b3146103475780630a3de4511461035c5780630e89341c14610387578063127fae901461039a578063156e29f6146103ad57610252565b8062fdd58e1461025757806301870f021461028057806301ffc9a7146102e457806306fdde0314610307578063081812fc1461031c575b600080fd5b61026d610265366004612a2c565b600192915050565b6040519081526020015b60405180910390f35b61029361028e366004612d0a565b6106fd565b6040805182516001600160801b0316815260208084015163ffffffff908116918301919091528383015116918101919091526060918201516001600160f81b03191691810191909152608001610277565b6102f76102f2366004612d44565b61075e565b6040519015158152602001610277565b61030f6107bf565b6040516102779190612f89565b61032f61032a366004612d0a565b610851565b6040516001600160a01b039091168152602001610277565b61035a610355366004612a2c565b6108eb565b005b61026d61036a366004612a2c565b600d60209081526000928352604080842090915290825290205481565b61030f610395366004612d0a565b610a01565b61035a6103a8366004612bbd565b610a0c565b61035a6103bb366004612a55565b610d60565b61035a6103ce36600461289f565b610f40565b61026d6103e1366004612d0a565b60009081526006602052604090206001015490565b61026d7f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a84881565b61035a61042b366004612d22565b610f71565b61035a61043e366004612d22565b610f98565b61035a61045136600461289f565b611016565b61035a610464366004612d0a565b611031565b61026d610477366004612d0a565b600c6020526000908152604090205481565b61026d600a5481565b61035a6104a0366004612d7c565b6110bf565b61032f6104b3366004612d0a565b6110e6565b61026d6104c6366004612853565b61115d565b61030f6111e4565b6105496104e1366004612d0a565b600b602052600090815260409020805460019091015463ffffffff808316926001600160401b03600160201b808304821694600160601b8404831694600160a01b85049093169361ffff600160e01b9091041692818116928204811691600160401b90041688565b6040805163ffffffff998a1681526001600160401b0398891660208201529688169087015295909316606085015261ffff9091166080840152841660a0830152831660c0820152911660e082015261010001610277565b61035a6105ae366004612a87565b611272565b61035a6105c1366004612caa565b611561565b6007546001600160a01b031661032f565b6102f76105e5366004612d22565b6117c5565b61030f6117f0565b61026d610600366004612d0a565b6117ff565b61030f6118d2565b61026d600081565b61035a6106233660046129f2565b6118df565b61035a6106363660046128da565b6119b1565b61035a610649366004612a55565b6119e9565b61030f61065c366004612d0a565b611a95565b61026d7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b61035a610696366004612d22565b611ae1565b6102f76106a936600461286d565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61035a6106e5366004612d7c565b611b07565b61035a6106f8366004612952565b611b2e565b6040805160808101825260008082526020820181905291810182905260608101919091526040518060800160405280610735846117ff565b6001600160801b031681526001602082015260006040820181905260609091015290505b919050565b60006001600160e01b031982166380ac58cd60e01b148061078f57506001600160e01b03198216635b5e139f60e01b145b806107aa57506001600160e01b03198216637965db0b60e01b145b806107b957506107b982611b85565b92915050565b6060600080546107ce90613184565b80601f01602080910402602001604051908101604052809291908181526020018280546107fa90613184565b80156108475780601f1061081c57610100808354040283529160200191610847565b820191906000526020600020905b81548152906001019060200180831161082a57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166108cf5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006108f6826110e6565b9050806001600160a01b0316836001600160a01b031614156109645760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016108c6565b336001600160a01b0382161480610980575061098081336106a9565b6109f25760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016108c6565b6109fc8383611baa565b505050565b60606107b982611a95565b610a176000336105e5565b610a2057600080fd5b60005b8551811015610d57576000600b6000898481518110610a5257634e487b7160e01b600052603260045260246000fd5b6020908102919091018101518252818101929092526040908101600020815161010081018352815463ffffffff80821683526001600160401b03600160201b808404821697850197909752600160601b8304811695840195909552600160a01b8204909416606083015261ffff600160e01b90910416608082015260019091015480831660a0830152928304821660c0820152600160401b9092041660e08201528751909150879083908110610b1857634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160401b0316908201528551869083908110610b5357634e487b7160e01b600052603260045260246000fd5b60209081029190910101516001600160401b031660408201528451859083908110610b8e57634e487b7160e01b600052603260045260246000fd5b60209081029190910101516001600160401b031660608201528351849083908110610bc957634e487b7160e01b600052603260045260246000fd5b602090810291909101015161ffff1660808201528251839083908110610bff57634e487b7160e01b600052603260045260246000fd5b60200260200101518160e0019063ffffffff16908163ffffffff168152505080600b60008a8581518110610c4357634e487b7160e01b600052603260045260246000fd5b60209081029190910181015182528181019290925260409081016000208351815493850151928501516060860151608087015161ffff16600160e01b0261ffff60e01b196001600160401b03928316600160a01b0267ffffffffffffffff60a01b19948416600160601b0294909416600160601b600160e01b031993909716600160201b9081026001600160601b031990991663ffffffff96871617989098179290921695909517919091171692909217815560a08401516001909101805460c086015160e0909601518416600160401b0263ffffffff60401b1996851690950267ffffffffffffffff19909116929093169190911791909117929092161790555080610d4f816131bf565b915050610a23565b50505050505050565b610d8a7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6336105e5565b610de25760405162461bcd60e51b815260206004820152602360248201527f5261696e694e66743732313a2063616c6c6572206973206e6f742061206d696e6044820152623a32b960e91b60648201526084016108c6565b6000828152600b60209081526040808320815161010081018352815463ffffffff8082168352600160201b8083046001600160401b0390811685890152600160601b8404811685880152600160a01b8404166060850152600160e01b90920461ffff16608084015260019093015480841660a08401908152918104841660c08401908152600160401b909104841660e0840152888752600c9095529290942054915192519192811691610e9791849116613105565b841115610ed95760405162461bcd60e51b815260206004820152601060248201526f6e6f7420656e6f756768207061636b7360801b60448201526064016108c6565b60005b84811015610f1457610f028782610ef38686613092565b610efd9190613092565b611c18565b80610f0c816131bf565b915050610edc565b506000858152600c602052604081208054869290610f33908490613092565b9091555050505050505050565b610f4a3382611d5a565b610f665760405162461bcd60e51b81526004016108c690612fee565b6109fc838383611e51565b600082815260066020526040902060010154610f8e81335b611ff1565b6109fc8383612055565b6001600160a01b03811633146110085760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016108c6565b61101282826120db565b5050565b6109fc838383604051806020016040528060008152506119b1565b61105b7f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a848336105e5565b6110b35760405162461bcd60e51b815260206004820152602360248201527f5261696e694e66743732313a2063616c6c6572206973206e6f742061206275726044820152623732b960e91b60648201526084016108c6565b6110bc81612142565b50565b6110ca6000336105e5565b6110d357600080fd5b805161101290600990602084019061266f565b6000818152600260205260408120546001600160a01b0316806107b95760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016108c6565b60006001600160a01b0382166111c85760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016108c6565b506001600160a01b031660009081526003602052604090205490565b600880546111f190613184565b80601f016020809104026020016040519081016040528092919081815260200182805461121d90613184565b801561126a5780601f1061123f5761010080835404028352916020019161126a565b820191906000526020600020905b81548152906001019060200180831161124d57829003601f168201915b505050505081565b61127d6000336105e5565b61128657600080fd5b600a5460005b8651811015611553578161129f816131bf565b9250506040518061010001604052808b83815181106112ce57634e487b7160e01b600052603260045260246000fd5b602002602001015163ffffffff16815260200188838151811061130157634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160401b0316815260200187838151811061133757634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160401b0316815260200186838151811061136d57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160401b031681526020018583815181106113a357634e487b7160e01b600052603260045260246000fd5b602002602001015161ffff1681526020018a83815181106113d457634e487b7160e01b600052603260045260246000fd5b602002602001015163ffffffff16815260200189838151811061140757634e487b7160e01b600052603260045260246000fd5b602002602001015163ffffffff16815260200184838151811061143a57634e487b7160e01b600052603260045260246000fd5b60209081029190910181015163ffffffff9081169092526000858152600b8252604090819020845181549386015192860151606087015160808801519287166001600160601b031990961695909517600160201b6001600160401b03958616810291909117600160601b600160e01b031916600160601b9286169290920267ffffffffffffffff60a01b191691909117600160a01b94909516939093029390931761ffff60e01b1916600160e01b61ffff9094169390930292909217825560a08401516001909201805460c086015160e09096015193851667ffffffffffffffff19909116179484169091029390931763ffffffff60401b1916600160401b91909216021790558061154b816131bf565b91505061128c565b50600a555050505050505050565b61156c6000336105e5565b61157557600080fd5b60005b82518110156109fc576000600b60008584815181106115a757634e487b7160e01b600052603260045260246000fd5b6020908102919091018101518252818101929092526040908101600020815161010081018352815463ffffffff80821683526001600160401b03600160201b808404821697850197909752600160601b8304811695840195909552600160a01b8204909416606083015261ffff600160e01b90910416608082015260019091015480831660a0830152928304821660c0820152600160401b9092041660e0820152835190915083908390811061166d57634e487b7160e01b600052603260045260246000fd5b60200260200101518160e0019063ffffffff16908163ffffffff168152505080600b60008685815181106116b157634e487b7160e01b600052603260045260246000fd5b60209081029190910181015182528181019290925260409081016000208351815493850151928501516060860151608087015161ffff16600160e01b0261ffff60e01b196001600160401b03928316600160a01b0267ffffffffffffffff60a01b19948416600160601b0294909416600160601b600160e01b031993909716600160201b9081026001600160601b031990991663ffffffff96871617989098179290921695909517919091171692909217815560a08401516001909101805460c086015160e0909601518416600160401b0263ffffffff60401b1996851690950267ffffffffffffffff199091169290931691909117919091179290921617905550806117bd816131bf565b915050611578565b60009182526006602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6060600180546107ce90613184565b600060015b600a5481116118a3576000818152600b602052604090206001015463ffffffff16831080159061187057506000818152600b6020526040902060019081015461185c9063ffffffff600160201b8204811691166130aa565b611866919061311c565b63ffffffff168311155b15611891576000908152600b602052604090205463ffffffff169050610759565b8061189b816131bf565b915050611804565b5060405162461bcd60e51b8152602060048201526003602482015262646e6560e81b60448201526064016108c6565b600980546111f190613184565b6001600160a01b0382163314156119385760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016108c6565b3360008181526005602090815260408083206001600160a01b0387168085529252909120805460ff1916841515179055906001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516119a5911515815260200190565b60405180910390a35050565b6119bb3383611d5a565b6119d75760405162461bcd60e51b81526004016108c690612fee565b6119e3848484846121dd565b50505050565b611a137f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6336105e5565b611a585760405162461bcd60e51b815260206004820152601660248201527531b0b63632b91034b9903737ba10309036b4b73a32b960511b60448201526064016108c6565b6001600160a01b0383166000908152600d6020908152604080832085845290915281208054839290611a8b908490613092565b9091555050505050565b60606000611aa2836117ff565b90506009611aaf82612210565b611ab885612210565b604051602001611aca93929190612e09565b604051602081830303815290604052915050919050565b600082815260066020526040902060010154611afd8133610f89565b6109fc83836120db565b611b126000336105e5565b611b1b57600080fd5b805161101290600890602084019061266f565b82600114611b3b57600080fd5b611b7d86868685858080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506119b192505050565b505050505050565b60006001600160e01b03198216637965db0b60e01b14806107b957506107b98261232a565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611bdf826110e6565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160a01b038216611c6e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016108c6565b6000818152600260205260409020546001600160a01b031615611cd35760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016108c6565b6001600160a01b0382166000908152600360205260408120805460019290611cfc908490613092565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000818152600260205260408120546001600160a01b0316611dd35760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016108c6565b6000611dde836110e6565b9050806001600160a01b0316846001600160a01b03161480611e195750836001600160a01b0316611e0e84610851565b6001600160a01b0316145b80611e4957506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611e64826110e6565b6001600160a01b031614611ecc5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016108c6565b6001600160a01b038216611f2e5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016108c6565b611f39600082611baa565b6001600160a01b0383166000908152600360205260408120805460019290611f62908490613105565b90915550506001600160a01b0382166000908152600360205260408120805460019290611f90908490613092565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b611ffb82826117c5565b61101257612013816001600160a01b0316601461237a565b61201e83602061237a565b60405160200161202f929190612ee1565b60408051601f198184030181529082905262461bcd60e51b82526108c691600401612f89565b61205f82826117c5565b6110125760008281526006602090815260408083206001600160a01b03851684529091529020805460ff191660011790556120973390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6120e582826117c5565b156110125760008281526006602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600061214d826110e6565b905061215a600083611baa565b6001600160a01b0381166000908152600360205260408120805460019290612183908490613105565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6121e8848484611e51565b6121f484848484612562565b6119e35760405162461bcd60e51b81526004016108c690612f9c565b60608161223557506040805180820190915260018152600360fc1b6020820152610759565b8160005b811561225f5780612249816131bf565b91506122589050600a836130d2565b9150612239565b6000816001600160401b0381111561228757634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156122b1576020820181803683370190505b5090505b8415611e49576122c6600183613105565b91506122d3600a866131da565b6122de906030613092565b60f81b81838151811061230157634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612323600a866130d2565b94506122b5565b60006001600160e01b031982166380ac58cd60e01b148061235b57506001600160e01b03198216635b5e139f60e01b145b806107b957506301ffc9a760e01b6001600160e01b03198316146107b9565b606060006123898360026130e6565b612394906002613092565b6001600160401b038111156123b957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156123e3576020820181803683370190505b509050600360fc1b8160008151811061240c57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061244957634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600061246d8460026130e6565b612478906001613092565b90505b600181111561250c576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106124ba57634e487b7160e01b600052603260045260246000fd5b1a60f81b8282815181106124de57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c936125058161316d565b905061247b565b50831561255b5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016108c6565b9392505050565b60006001600160a01b0384163b1561266457604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906125a6903390899088908890600401612f56565b602060405180830381600087803b1580156125c057600080fd5b505af19250505080156125f0575060408051601f3d908101601f191682019092526125ed91810190612d60565b60015b61264a573d80801561261e576040519150601f19603f3d011682016040523d82523d6000602084013e612623565b606091505b5080516126425760405162461bcd60e51b81526004016108c690612f9c565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611e49565b506001949350505050565b82805461267b90613184565b90600052602060002090601f01602090048101928261269d57600085556126e3565b82601f106126b657805160ff19168380011785556126e3565b828001600101855582156126e3579182015b828111156126e35782518255916020019190600101906126c8565b506126ef9291506126f3565b5090565b5b808211156126ef57600081556001016126f4565b60006001600160401b038311156127215761272161321a565b612734601f8401601f191660200161303f565b905082815283838301111561274857600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b038116811461075957600080fd5b600082601f830112612786578081fd5b8135602061279b6127968361306f565b61303f565b80838252828201915082860187848660051b89010111156127ba578586fd5b855b858110156127d8578135845292840192908401906001016127bc565b5090979650505050505050565b600082601f8301126127f5578081fd5b813560206128056127968361306f565b80838252828201915082860187848660051b8901011115612824578586fd5b855b858110156127d857813563ffffffff81168114612841578788fd5b84529284019290840190600101612826565b600060208284031215612864578081fd5b61255b8261275f565b6000806040838503121561287f578081fd5b6128888361275f565b91506128966020840161275f565b90509250929050565b6000806000606084860312156128b3578081fd5b6128bc8461275f565b92506128ca6020850161275f565b9150604084013590509250925092565b600080600080608085870312156128ef578081fd5b6128f88561275f565b93506129066020860161275f565b92506040850135915060608501356001600160401b03811115612927578182fd5b8501601f81018713612937578182fd5b61294687823560208401612708565b91505092959194509250565b60008060008060008060a0878903121561296a578182fd5b6129738761275f565b95506129816020880161275f565b9450604087013593506060870135925060808701356001600160401b03808211156129aa578384fd5b818901915089601f8301126129bd578384fd5b8135818111156129cb578485fd5b8a60208285010111156129dc578485fd5b6020830194508093505050509295509295509295565b60008060408385031215612a04578182fd5b612a0d8361275f565b915060208301358015158114612a21578182fd5b809150509250929050565b60008060408385031215612a3e578081fd5b612a478361275f565b946020939093013593505050565b600080600060608486031215612a69578081fd5b612a728461275f565b95602085013595506040909401359392505050565b600080600080600080600080610100898b031215612aa3578586fd5b88356001600160401b0380821115612ab9578788fd5b612ac58c838d01612776565b995060208b0135915080821115612ada578788fd5b612ae68c838d01612776565b985060408b0135915080821115612afb578788fd5b612b078c838d01612776565b975060608b0135915080821115612b1c578384fd5b612b288c838d01612776565b965060808b0135915080821115612b3d578384fd5b612b498c838d01612776565b955060a08b0135915080821115612b5e578384fd5b612b6a8c838d01612776565b945060c08b0135915080821115612b7f578384fd5b612b8b8c838d01612776565b935060e08b0135915080821115612ba0578283fd5b50612bad8b828c016127e5565b9150509295985092959890939650565b60008060008060008060c08789031215612bd5578384fd5b86356001600160401b0380821115612beb578586fd5b612bf78a838b01612776565b97506020890135915080821115612c0c578586fd5b612c188a838b01612776565b96506040890135915080821115612c2d578586fd5b612c398a838b01612776565b95506060890135915080821115612c4e578384fd5b612c5a8a838b01612776565b94506080890135915080821115612c6f578384fd5b612c7b8a838b01612776565b935060a0890135915080821115612c90578283fd5b50612c9d89828a016127e5565b9150509295509295509295565b60008060408385031215612cbc578182fd5b82356001600160401b0380821115612cd2578384fd5b612cde86838701612776565b93506020850135915080821115612cf3578283fd5b50612d00858286016127e5565b9150509250929050565b600060208284031215612d1b578081fd5b5035919050565b60008060408385031215612d34578182fd5b823591506128966020840161275f565b600060208284031215612d55578081fd5b813561255b81613230565b600060208284031215612d71578081fd5b815161255b81613230565b600060208284031215612d8d578081fd5b81356001600160401b03811115612da2578182fd5b8201601f81018413612db2578182fd5b611e4984823560208401612708565b60008151808452612dd9816020860160208601613141565b601f01601f19169290920160200192915050565b60008151612dff818560208601613141565b9290920192915050565b600080855482600182811c915080831680612e2557607f831692505b6020808410821415612e4557634e487b7160e01b87526022600452602487fd5b818015612e595760018114612e6a57612e96565b60ff19861689528489019650612e96565b60008c815260209020885b86811015612e8e5781548b820152908501908301612e75565b505084890196505b505050505050612ed7612ed1612ec0612eba84643f7069643d60d81b815260050190565b88612ded565b64267469643d60d81b815260050190565b85612ded565b9695505050505050565b60007f416363657373436f6e74726f6c3a206163636f756e742000000000000000000082528351612f19816017850160208801613141565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351612f4a816028840160208801613141565b01602801949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612ed790830184612dc1565b60006020825261255b6020830184612dc1565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051601f8201601f191681016001600160401b03811182821017156130675761306761321a565b604052919050565b60006001600160401b038211156130885761308861321a565b5060051b60200190565b600082198211156130a5576130a56131ee565b500190565b600063ffffffff8083168185168083038211156130c9576130c96131ee565b01949350505050565b6000826130e1576130e1613204565b500490565b6000816000190483118215151615613100576131006131ee565b500290565b600082821015613117576131176131ee565b500390565b600063ffffffff83811690831681811015613139576131396131ee565b039392505050565b60005b8381101561315c578181015183820152602001613144565b838111156119e35750506000910152565b60008161317c5761317c6131ee565b506000190190565b600181811c9082168061319857607f821691505b602082108114156131b957634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156131d3576131d36131ee565b5060010190565b6000826131e9576131e9613204565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b0319811681146110bc57600080fdfea26469706673582212202e5dbf889f3ba326b339103017db0cfc45005e6ee2a3800bf4271ce216fa9bfd64736f6c63430008030033

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

00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000018000000000000000000000000082f9d5fe6c46990f3c2536e83b2b4e1c0a91f27f00000000000000000000000000000000000000000000000000000000000000114c6f7264734f664c696768745061636b73000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000552544c4f4c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003f68747470733a2f2f6e66742e7261696e692e696f2f77702d636f6e74656e742f7468656d65732f7261696e6961646d696e2f6170692f7061636b732e70687000000000000000000000000000000000000000000000000000000000000000003a697066733a2f2f697066732f516d63465378736d484b534637714c6970696f38527545394d68363162503255355664446735347a435637573567000000000000

-----Decoded View---------------
Arg [0] : name_ (string): LordsOfLightPacks
Arg [1] : symbol_ (string): RTLOL
Arg [2] : _uri (string): https://nft.raini.io/wp-content/themes/rainiadmin/api/packs.php
Arg [3] : _contractURIString (string): ipfs://ipfs/QmcFSxsmHKSF7qLipio8RuE9Mh61bP2U5VdDg54zCV7W5g
Arg [4] : _contractOwner (address): 0x82F9d5FE6C46990f3C2536e83b2B4e1c0a91F27f

-----Encoded View---------------
15 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [4] : 00000000000000000000000082f9d5fe6c46990f3c2536e83b2b4e1c0a91f27f
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000011
Arg [6] : 4c6f7264734f664c696768745061636b73000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [8] : 52544c4f4c000000000000000000000000000000000000000000000000000000
Arg [9] : 000000000000000000000000000000000000000000000000000000000000003f
Arg [10] : 68747470733a2f2f6e66742e7261696e692e696f2f77702d636f6e74656e742f
Arg [11] : 7468656d65732f7261696e6961646d696e2f6170692f7061636b732e70687000
Arg [12] : 000000000000000000000000000000000000000000000000000000000000003a
Arg [13] : 697066733a2f2f697066732f516d63465378736d484b534637714c6970696f38
Arg [14] : 527545394d68363162503255355664446735347a435637573567000000000000


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.