ETH Price: $3,531.55 (+7.11%)

Token

CryptoDragons (CD)
 

Overview

Max Total Supply

0 CD

Holders

1,365

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
4 CD
0x4f3621a9870b04eb4c5164d5ca9feeb1bc183095
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
DragonToken

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 15 : DragonToken.sol
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "./access/BaseAccessControl.sol";
import "./structs/DragonInfo.sol";

contract DragonToken is ERC721, BaseAccessControl {

    using Address for address;
    using Counters for Counters.Counter;
    
    Counters.Counter private _dragonIds;

    // Mapping token id to dragon details
    mapping(uint => uint) private _info;
    // Mapping token id to cid
    mapping(uint => string) private _cids;

    string private _defaultMetadataCid;
    address private _dragonCreator;

    constructor(string memory defaultCid, address accessControl) 
    ERC721("CryptoDragons", "CD")
    BaseAccessControl(accessControl) {        
        _defaultMetadataCid = defaultCid;
    }

    function approveAndCall(address spender, uint256 tokenId, bytes calldata extraData) external returns (bool success) {
        _approve(spender, tokenId);
        (bool _success, ) = 
            spender.call(
                abi.encodeWithSignature("receiveApproval(address,uint256,address,bytes)", 
                _msgSender(), 
                tokenId, 
                address(this), 
                extraData) 
            );
        if(!_success) { 
            revert("DragonToken: spender internal error"); 
        }
        return true;
    }

    function tokenURI(uint tokenId) public view virtual override returns (string memory) {
        string memory cid = _cids[tokenId];
        return string(abi.encodePacked("ipfs://", (bytes(cid).length > 0) ? cid : defaultMetadataCid()));
    }

    function dragonCreatorAddress() public view returns(address) {
        return _dragonCreator;
    }

    function setDragonCreatorAddress(address newAddress) external onlyRole(CEO_ROLE) {
        address previousAddress = _dragonCreator;
        _dragonCreator = newAddress;
        emit AddressChanged("dragonCreator", previousAddress, newAddress);
    }

    function hasMetadataCid(uint tokenId) public view returns(bool) {
        return bytes(_cids[tokenId]).length > 0;
    }

    function setMetadataCid(uint tokenId, string calldata cid) external onlyRole(COO_ROLE) {
        require(bytes(cid).length >= 46, "DragonToken: bad CID");
        require(!hasMetadataCid(tokenId), "DragonToken: CID is already set");
        _cids[tokenId] = cid;
    }

    function defaultMetadataCid() public view returns (string memory){
        return _defaultMetadataCid;
    }

    function setDefaultMetadataCid(string calldata newDefaultCid) external onlyRole(COO_ROLE) {
        _defaultMetadataCid = newDefaultCid;
    }

    function dragonInfo(uint dragonId) public view returns (DragonInfo.Details memory) {
        return DragonInfo.getDetails(_info[dragonId]);
    }

    function strengthOf(uint dragonId) external view returns (uint) {
        DragonInfo.Details memory details = dragonInfo(dragonId);
        return details.strength > 0 ? details.strength : DragonInfo.calcStrength(details.genes);
    }

    function isSiblings(uint dragon1Id, uint dragon2Id) external view returns (bool) {
        DragonInfo.Details memory info1 = dragonInfo(dragon1Id);
        DragonInfo.Details memory info2 = dragonInfo(dragon2Id);
        return 
            (info1.generation > 1 && info2.generation > 1) && //the 1st generation of dragons doesn't have siblings
            (info1.parent1Id == info2.parent1Id || info1.parent1Id == info2.parent2Id || 
            info1.parent2Id == info2.parent1Id || info1.parent2Id == info2.parent2Id);
    }

    function isParent(uint dragon1Id, uint dragon2Id) external view returns (bool) {
        DragonInfo.Details memory info = dragonInfo(dragon1Id);
        return info.parent1Id == dragon2Id || info.parent2Id == dragon2Id;
    }

    function mint(address to, DragonInfo.Details calldata info) external returns (uint) {
        require(_msgSender() == dragonCreatorAddress(), "DragonToken: not enough privileges to call the method");
        
        _dragonIds.increment();
        uint newDragonId = uint(_dragonIds.current());
        
        _info[newDragonId] = DragonInfo.getValue(info);
        _mint(to, newDragonId);

        return newDragonId;
    }

    function setStrength(uint dragonId) external returns (uint) {
        DragonInfo.Details memory details = dragonInfo(dragonId);
        if (details.strength == 0) {
            details.strength = DragonInfo.calcStrength(details.genes);
            _info[dragonId] = DragonInfo.getValue(details);
        }
        return details.strength;
    }
}

File 2 of 15 : 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 3 of 15 : 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 4 of 15 : Counters.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

File 5 of 15 : BaseAccessControl.sol
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/IAccessControl.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "../interfaces/IChangeableVariables.sol";

abstract contract BaseAccessControl is Context, IChangeableVariables {

    bytes32 public constant CEO_ROLE = keccak256("CEO");
    bytes32 public constant CFO_ROLE = keccak256("CFO");
    bytes32 public constant COO_ROLE = keccak256("COO");

    address private _accessControl;

    modifier onlyRole(bytes32 role) {
        _checkRole(role, _msgSender());
        _;
    }

    constructor (address accessControl) Context() {
        _accessControl = accessControl;
    }

    function accessControlAddress() public view returns (address) {
        return _accessControl;
    }

    function setAccessControlAddress(address newAddress) external onlyRole(CEO_ROLE) {
        address previousAddress = _accessControl;
        _accessControl = newAddress;
        emit AddressChanged("accessControl", previousAddress, newAddress);
    }

    function hasRole(bytes32 role, address account) public view returns (bool) {
        return IAccessControl(accessControlAddress()).hasRole(role, account);
    }

    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)
                    )
                )
            );
        }
    }
}

File 6 of 15 : DragonInfo.sol
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.8.0;

library DragonInfo {
    
    uint constant MASK = 0xF000000000000000000000000;

    enum Types { 
        Unknown,
        Common, 
        Rare16, 
        Rare17, 
        Rare18, 
        Rare19,
        Epic20, 
        Epic21,
        Epic22,
        Epic23,
        Epic24, 
        Legendary
    }

    struct Details { 
        uint genes;
        uint eggId;
        uint parent1Id;
        uint parent2Id;
        uint generation;
        uint strength;
        Types dragonType;
    }

    function getDetails(uint value) internal pure returns (Details memory) {
        return Details (
            {
                genes: uint256(uint104(value)),
                parent1Id: uint256(uint32(value >> 104)),
                parent2Id: uint256(uint32(value >> 136)),
                generation: uint256(uint16(value >> 168)),
                strength: uint256(uint16(value >> 184)),
                dragonType: Types(uint16(value >> 200)),
                eggId: uint256(uint32(value >> 216))
            }
        );
    }

    function getValue(Details memory details) internal pure returns (uint) {
        uint result = uint(details.genes);
        result |= details.parent1Id << 104;
        result |= details.parent2Id << 136;
        result |= details.generation << 168;
        result |= details.strength << 184;
        result |= uint(details.dragonType) << 200;
        result |= details.eggId << 216;
        return result;
    }

    function calcType(uint genes) internal pure returns (Types) {
        uint mask = MASK;
        uint numRare = 0;
        uint numEpic = 0;
        for (uint i = 0; i < 10; i++) { //just Rare and Epic genes are important to check
            if (genes & mask > 0) {
                if (i < 5) { //Epic-range
                    numEpic++;
                }
                else { //Rare-range
                    numRare++;
                }
            }
            mask = mask >> 4;
        }
        Types result = Types.Unknown;
        if (numEpic == 5 && numRare == 5) {
            result = Types.Legendary;
        }
        else if (numEpic < 5 && numRare == 5) {
            result = Types(6 + numEpic);
        }
        else if (numEpic == 0 && numRare < 5) {
            result = Types(1 + numRare);
        }
        else if (numEpic == 0 && numRare == 0) {
            result = Types.Common;
        }

        return result;
    }

    function calcStrength(uint genes) internal pure returns (uint) {
        uint mask = MASK;
        uint strength = 0;
        for (uint i = 0; i < 25; i++) { 
            uint gLevel = (genes & mask) >> ((24 - i) * 4);
            if (i < 6) { //Epic
                strength += 3 * (25 - i) * gLevel;
            } 
            else if (i < 10) { //Rare 
                strength += 2 * (25 - i) * gLevel;
            }
            else { //Common-range
                if (gLevel > 0) {
                    strength += (25 - i) * gLevel;
                }
                else {
                    strength += (25 - i);
                }
            }
            mask = mask >> 4;
        }
        return strength;
    }

    function calcGeneration(uint g1, uint g2) internal pure returns (uint) {
        return (g1 >= g2 ? g1 : g2) + 1;
    }
}

File 7 of 15 : 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 8 of 15 : 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 9 of 15 : 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 10 of 15 : 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 11 of 15 : 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 12 of 15 : 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 13 of 15 : 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);
}

File 14 of 15 : 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 15 of 15 : IChangeableVariables.sol
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.8.0;

interface IChangeableVariables {
    event AddressChanged(string fieldName, address previousAddress, address newAddress);
    event ValueChanged(string fieldName, uint previousValue, uint newValue);
    event BoolValueChanged(string fieldName, bool previousValue, bool newValue);
}

Settings
{
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"defaultCid","type":"string"},{"internalType":"address","name":"accessControl","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"fieldName","type":"string"},{"indexed":false,"internalType":"address","name":"previousAddress","type":"address"},{"indexed":false,"internalType":"address","name":"newAddress","type":"address"}],"name":"AddressChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"fieldName","type":"string"},{"indexed":false,"internalType":"bool","name":"previousValue","type":"bool"},{"indexed":false,"internalType":"bool","name":"newValue","type":"bool"}],"name":"BoolValueChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"fieldName","type":"string"},{"indexed":false,"internalType":"uint256","name":"previousValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"ValueChanged","type":"event"},{"inputs":[],"name":"CEO_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CFO_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"COO_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"accessControlAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"extraData","type":"bytes"}],"name":"approveAndCall","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultMetadataCid","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dragonCreatorAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"dragonId","type":"uint256"}],"name":"dragonInfo","outputs":[{"components":[{"internalType":"uint256","name":"genes","type":"uint256"},{"internalType":"uint256","name":"eggId","type":"uint256"},{"internalType":"uint256","name":"parent1Id","type":"uint256"},{"internalType":"uint256","name":"parent2Id","type":"uint256"},{"internalType":"uint256","name":"generation","type":"uint256"},{"internalType":"uint256","name":"strength","type":"uint256"},{"internalType":"enum DragonInfo.Types","name":"dragonType","type":"uint8"}],"internalType":"struct DragonInfo.Details","name":"","type":"tuple"}],"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":"hasMetadataCid","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"dragon1Id","type":"uint256"},{"internalType":"uint256","name":"dragon2Id","type":"uint256"}],"name":"isParent","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"dragon1Id","type":"uint256"},{"internalType":"uint256","name":"dragon2Id","type":"uint256"}],"name":"isSiblings","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"components":[{"internalType":"uint256","name":"genes","type":"uint256"},{"internalType":"uint256","name":"eggId","type":"uint256"},{"internalType":"uint256","name":"parent1Id","type":"uint256"},{"internalType":"uint256","name":"parent2Id","type":"uint256"},{"internalType":"uint256","name":"generation","type":"uint256"},{"internalType":"uint256","name":"strength","type":"uint256"},{"internalType":"enum DragonInfo.Types","name":"dragonType","type":"uint8"}],"internalType":"struct DragonInfo.Details","name":"info","type":"tuple"}],"name":"mint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"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":"newAddress","type":"address"}],"name":"setAccessControlAddress","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":"newDefaultCid","type":"string"}],"name":"setDefaultMetadataCid","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAddress","type":"address"}],"name":"setDragonCreatorAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"cid","type":"string"}],"name":"setMetadataCid","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"dragonId","type":"uint256"}],"name":"setStrength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"dragonId","type":"uint256"}],"name":"strengthOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"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"}]

60806040523480156200001157600080fd5b506040516200464538038062004645833981810160405281019062000037919062000274565b806040518060400160405280600d81526020017f43727970746f447261676f6e73000000000000000000000000000000000000008152506040518060400160405280600281526020017f43440000000000000000000000000000000000000000000000000000000000008152508160009080519060200190620000bc9291906200013b565b508060019080519060200190620000d59291906200013b565b50505080600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505081600a9080519060200190620001329291906200013b565b5050506200044d565b82805462000149906200039f565b90600052602060002090601f0160209004810192826200016d5760008555620001b9565b82601f106200018857805160ff1916838001178555620001b9565b82800160010185558215620001b9579182015b82811115620001b85782518255916020019190600101906200019b565b5b509050620001c89190620001cc565b5090565b5b80821115620001e7576000816000905550600101620001cd565b5090565b600062000202620001fc8462000302565b620002ce565b9050828152602081018484840111156200021b57600080fd5b6200022884828562000369565b509392505050565b600081519050620002418162000433565b92915050565b600082601f8301126200025957600080fd5b81516200026b848260208601620001eb565b91505092915050565b600080604083850312156200028857600080fd5b600083015167ffffffffffffffff811115620002a357600080fd5b620002b18582860162000247565b9250506020620002c48582860162000230565b9150509250929050565b6000604051905081810181811067ffffffffffffffff82111715620002f857620002f762000404565b5b8060405250919050565b600067ffffffffffffffff82111562000320576200031f62000404565b5b601f19601f8301169050602081019050919050565b6000620003428262000349565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60005b83811015620003895780820151818401526020810190506200036c565b8381111562000399576000848401525b50505050565b60006002820490506001821680620003b857607f821691505b60208210811415620003cf57620003ce620003d5565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6200043e8162000335565b81146200044a57600080fd5b50565b6141e8806200045d6000396000f3fe608060405234801561001057600080fd5b50600436106101f05760003560e01c8063766650e51161010f578063c027fd7a116100a2578063d95f2e9d11610071578063d95f2e9d14610605578063e2098fe214610635578063e8d56b8b14610665578063e985e9c514610681576101f0565b8063c027fd7a14610559578063c075f2c114610575578063c87b56dd146105a5578063cae9ca51146105d5576101f0565b80639f6f50ed116100de5780639f6f50ed146104e5578063a22cb46514610503578063b514be631461051f578063b88d4fde1461053d576101f0565b8063766650e5146104495780637e7849ff1461046757806391d148541461049757806395d89b41146104c7576101f0565b806323b872dd116101875780635822a422116101565780635822a4221461039b5780636352211e146103cb57806366741377146103fb57806370a0823114610419576101f0565b806323b872dd1461031557806337b59535146103315780633acfd44f1461036157806342842e0e1461037f576101f0565b8063095ea7b3116101c3578063095ea7b3146102915780631c6b7fbb146102ad5780631cf586c6146102c9578063225b38fd146102e5576101f0565b806301ffc9a7146101f557806306fdde0314610225578063081812fc146102435780630837160d14610273575b600080fd5b61020f600480360381019061020a9190612dac565b6106b1565b60405161021c91906139c2565b60405180910390f35b61022d610793565b60405161023a9190613a21565b60405180910390f35b61025d60048036038101906102589190612e6c565b610825565b60405161026a919061390d565b60405180910390f35b61027b6108aa565b6040516102889190613a21565b60405180910390f35b6102ab60048036038101906102a69190612c9f565b61093c565b005b6102c760048036038101906102c29190612af7565b610a54565b005b6102e360048036038101906102de9190612dfe565b610b2c565b005b6102ff60048036038101906102fa9190612e6c565b610b75565b60405161030c9190613cfb565b60405180910390f35b61032f600480360381019061032a9190612b5c565b610ba0565b005b61034b60048036038101906103469190612c62565b610c00565b6040516103589190613d16565b60405180910390f35b610369610cda565b60405161037691906139dd565b60405180910390f35b61039960048036038101906103949190612b5c565b610cfe565b005b6103b560048036038101906103b09190612e6c565b610d1e565b6040516103c29190613d16565b60405180910390f35b6103e560048036038101906103e09190612e6c565b610d58565b6040516103f2919061390d565b60405180910390f35b610403610e0a565b604051610410919061390d565b60405180910390f35b610433600480360381019061042e9190612af7565b610e34565b6040516104409190613d16565b60405180910390f35b610451610eec565b60405161045e919061390d565b60405180910390f35b610481600480360381019061047c9190612e6c565b610f16565b60405161048e9190613d16565b60405180910390f35b6104b160048036038101906104ac9190612d70565b610f75565b6040516104be91906139c2565b60405180910390f35b6104cf611011565b6040516104dc9190613a21565b60405180910390f35b6104ed6110a3565b6040516104fa91906139dd565b60405180910390f35b61051d60048036038101906105189190612c26565b6110c7565b005b610527611248565b60405161053491906139dd565b60405180910390f35b61055760048036038101906105529190612bab565b61126c565b005b610573600480360381019061056e9190612e95565b6112ce565b005b61058f600480360381019061058a9190612eed565b6113b9565b60405161059c91906139c2565b60405180910390f35b6105bf60048036038101906105ba9190612e6c565b6113e5565b6040516105cc9190613a21565b60405180910390f35b6105ef60048036038101906105ea9190612cdb565b6114c6565b6040516105fc91906139c2565b60405180910390f35b61061f600480360381019061061a9190612e6c565b611628565b60405161062c91906139c2565b60405180910390f35b61064f600480360381019061064a9190612eed565b611653565b60405161065c91906139c2565b60405180910390f35b61067f600480360381019061067a9190612af7565b6116d9565b005b61069b60048036038101906106969190612b20565b6117b1565b6040516106a891906139c2565b60405180910390f35b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061077c57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061078c575061078b82611845565b5b9050919050565b6060600080546107a290613fd3565b80601f01602080910402602001604051908101604052809291908181526020018280546107ce90613fd3565b801561081b5780601f106107f05761010080835404028352916020019161081b565b820191906000526020600020905b8154815290600101906020018083116107fe57829003601f168201915b5050505050905090565b6000610830826118af565b61086f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161086690613c7b565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6060600a80546108b990613fd3565b80601f01602080910402602001604051908101604052809291908181526020018280546108e590613fd3565b80156109325780601f1061090757610100808354040283529160200191610932565b820191906000526020600020905b81548152906001019060200180831161091557829003601f168201915b5050505050905090565b600061094782610d58565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156109b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109af90613cbb565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166109d761191b565b73ffffffffffffffffffffffffffffffffffffffff161480610a065750610a0581610a0061191b565b6117b1565b5b610a45576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a3c90613bdb565b60405180910390fd5b610a4f8383611923565b505050565b7fdc0d7a095c4e917ecbeb7deda7c942ff9744013d419e37549215a413915e421d610a8681610a8161191b565b6119dc565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905082600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f4ca142703425bec1d507d5581fac3a3e61eadcbeafbd7c0a03e2897d96de1cc58184604051610b1f929190613a63565b60405180910390a1505050565b7fefa080c67ecf4a6bf40c9dc64173420c08f359250ca6562d7c80f7c7b9b13969610b5e81610b5961191b565b6119dc565b8282600a9190610b6f929190612770565b50505050565b610b7d6127f6565b610b996008600084815260200190815260200160002054611a79565b9050919050565b610bb1610bab61191b565b82611b70565b610bf0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610be790613cdb565b60405180910390fd5b610bfb838383611c4e565b505050565b6000610c0a610eec565b73ffffffffffffffffffffffffffffffffffffffff16610c2861191b565b73ffffffffffffffffffffffffffffffffffffffff1614610c7e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7590613bbb565b60405180910390fd5b610c886007611eaa565b6000610c946007611ec0565b9050610caf83803603810190610caa9190612e43565b611ece565b6008600083815260200190815260200160002081905550610cd08482611f67565b8091505092915050565b7fefa080c67ecf4a6bf40c9dc64173420c08f359250ca6562d7c80f7c7b9b1396981565b610d198383836040518060200160405280600081525061126c565b505050565b600080610d2a83610b75565b905060008160a0015111610d4a57610d458160000151612135565b610d50565b8060a001515b915050919050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610e01576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610df890613c1b565b60405180910390fd5b80915050919050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610ea5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e9c90613bfb565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600080610f2283610b75565b905060008160a001511415610f6857610f3e8160000151612135565b8160a0018181525050610f5081611ece565b60086000858152602001908152602001600020819055505b8060a00151915050919050565b6000610f7f610e0a565b73ffffffffffffffffffffffffffffffffffffffff166391d1485484846040518363ffffffff1660e01b8152600401610fb99291906139f8565b60206040518083038186803b158015610fd157600080fd5b505afa158015610fe5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110099190612d47565b905092915050565b60606001805461102090613fd3565b80601f016020809104026020016040519081016040528092919081815260200182805461104c90613fd3565b80156110995780601f1061106e57610100808354040283529160200191611099565b820191906000526020600020905b81548152906001019060200180831161107c57829003601f168201915b5050505050905090565b7f33fa24d9aab6b79237248a16094d5f78ea83bb51e42c123ce925a264e7d816cc81565b6110cf61191b565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561113d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161113490613b5b565b60405180910390fd5b806005600061114a61191b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166111f761191b565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161123c91906139c2565b60405180910390a35050565b7fdc0d7a095c4e917ecbeb7deda7c942ff9744013d419e37549215a413915e421d81565b61127d61127761191b565b83611b70565b6112bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112b390613cdb565b60405180910390fd5b6112c88484848461226b565b50505050565b7fefa080c67ecf4a6bf40c9dc64173420c08f359250ca6562d7c80f7c7b9b13969611300816112fb61191b565b6119dc565b602e838390501015611347576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133e90613a9f565b60405180910390fd5b61135084611628565b15611390576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138790613b9b565b60405180910390fd5b82826009600087815260200190815260200160002091906113b2929190612770565b5050505050565b6000806113c584610b75565b905082816040015114806113dc5750828160600151145b91505092915050565b6060600060096000848152602001908152602001600020805461140790613fd3565b80601f016020809104026020016040519081016040528092919081815260200182805461143390613fd3565b80156114805780601f1061145557610100808354040283529160200191611480565b820191906000526020600020905b81548152906001019060200180831161146357829003601f168201915b50505050509050600081511161149d576114986108aa565b61149f565b805b6040516020016114af91906138b1565b604051602081830303815290604052915050919050565b60006114d28585611923565b60008573ffffffffffffffffffffffffffffffffffffffff166114f361191b565b8630878760405160240161150b959493929190613974565b6040516020818303038152906040527f8f4ffcb1000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050604051611595919061389a565b6000604051808303816000865af19150503d80600081146115d2576040519150601f19603f3d011682016040523d82523d6000602084013e6115d7565b606091505b505090508061161b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161161290613c3b565b60405180910390fd5b6001915050949350505050565b60008060096000848152602001908152602001600020805461164990613fd3565b9050119050919050565b60008061165f84610b75565b9050600061166c84610b75565b905060018260800151118015611686575060018160800151115b80156116cf57508060400151826040015114806116aa575080606001518260400151145b806116bc575080604001518260600151145b806116ce575080606001518260600151145b5b9250505092915050565b7fdc0d7a095c4e917ecbeb7deda7c942ff9744013d419e37549215a413915e421d61170b8161170661191b565b6119dc565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905082600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f4ca142703425bec1d507d5581fac3a3e61eadcbeafbd7c0a03e2897d96de1cc581846040516117a4929190613adf565b60405180910390a1505050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661199683610d58565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6119e68282610f75565b611a7557611a0b8173ffffffffffffffffffffffffffffffffffffffff1660146122c7565b611a198360001c60206122c7565b604051602001611a2a9291906138d3565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a6c9190613a21565b60405180910390fd5b5050565b611a816127f6565b6040518060e00160405280836cffffffffffffffffffffffffff16815260200160d884901c63ffffffff168152602001606884901c63ffffffff168152602001608884901c63ffffffff16815260200160a884901c61ffff16815260200160b884901c61ffff16815260200160c884901c61ffff16600b811115611b2e577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b600b811115611b66577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8152509050919050565b6000611b7b826118af565b611bba576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bb190613b7b565b60405180910390fd5b6000611bc583610d58565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611c3457508373ffffffffffffffffffffffffffffffffffffffff16611c1c84610825565b73ffffffffffffffffffffffffffffffffffffffff16145b80611c455750611c4481856117b1565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611c6e82610d58565b73ffffffffffffffffffffffffffffffffffffffff1614611cc4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cbb90613c9b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611d34576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d2b90613b3b565b60405180910390fd5b611d3f8383836125c1565b611d4a600082611923565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611d9a9190613e90565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611df19190613de0565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6001816000016000828254019250508190555050565b600081600001549050919050565b6000808260000151905060688360400151901b8117905060888360600151901b8117905060a88360800151901b8117905060b88360a00151901b8117905060c88360c00151600b811115611f4b577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b901b8117905060d88360200151901b8117905080915050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611fd7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fce90613c5b565b60405180910390fd5b611fe0816118af565b15612020576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161201790613b1b565b60405180910390fd5b61202c600083836125c1565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461207c9190613de0565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b6000806c0f00000000000000000000000090506000805b601981101561226057600060048260186121669190613e90565b6121709190613e36565b848716901c905060068210156121b6578082601961218e9190613e90565b600361219a9190613e36565b6121a49190613e36565b836121af9190613de0565b9250612245565b600a8210156121f557808260196121cd9190613e90565b60026121d99190613e36565b6121e39190613e36565b836121ee9190613de0565b9250612244565b6000811115612228578082601961220c9190613e90565b6122169190613e36565b836122219190613de0565b9250612243565b8160196122359190613e90565b836122409190613de0565b92505b5b5b600484901c935050808061225890614005565b91505061214c565b508092505050919050565b612276848484611c4e565b612282848484846125c6565b6122c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122b890613abf565b60405180910390fd5b50505050565b6060600060028360026122da9190613e36565b6122e49190613de0565b67ffffffffffffffff811115612323577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156123555781602001600182028036833780820191505090505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106123b3577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061243d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000600184600261247d9190613e36565b6124879190613de0565b90505b6001811115612573577f3031323334353637383961626364656600000000000000000000000000000000600f8616601081106124ef577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b82828151811061252c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c94508061256c90613fa9565b905061248a565b50600084146125b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125ae90613a43565b60405180910390fd5b8091505092915050565b505050565b60006125e78473ffffffffffffffffffffffffffffffffffffffff1661275d565b15612750578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261261061191b565b8786866040518563ffffffff1660e01b81526004016126329493929190613928565b602060405180830381600087803b15801561264c57600080fd5b505af192505050801561267d57506040513d601f19601f8201168201806040525081019061267a9190612dd5565b60015b612700573d80600081146126ad576040519150601f19603f3d011682016040523d82523d6000602084013e6126b2565b606091505b506000815114156126f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126ef90613abf565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612755565b600190505b949350505050565b600080823b905060008111915050919050565b82805461277c90613fd3565b90600052602060002090601f01602090048101928261279e57600085556127e5565b82601f106127b757803560ff19168380011785556127e5565b828001600101855582156127e5579182015b828111156127e45782358255916020019190600101906127c9565b5b5090506127f2919061286b565b5090565b6040518060e001604052806000815260200160008152602001600081526020016000815260200160008152602001600081526020016000600b811115612865577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b81525090565b5b8082111561288457600081600090555060010161286c565b5090565b600061289b61289684613d62565b613d31565b9050828152602081018484840111156128b357600080fd5b6128be848285613f67565b509392505050565b6000813590506128d58161412f565b92915050565b6000813590506128ea81614146565b92915050565b6000815190506128ff81614146565b92915050565b6000813590506129148161415d565b92915050565b60008135905061292981614174565b92915050565b60008151905061293e81614174565b92915050565b60008083601f84011261295657600080fd5b8235905067ffffffffffffffff81111561296f57600080fd5b60208301915083600182028301111561298757600080fd5b9250929050565b600082601f83011261299f57600080fd5b81356129af848260208601612888565b91505092915050565b6000813590506129c78161418b565b92915050565b60008083601f8401126129df57600080fd5b8235905067ffffffffffffffff8111156129f857600080fd5b602083019150836001820283011115612a1057600080fd5b9250929050565b600060e08284031215612a2957600080fd5b81905092915050565b600060e08284031215612a4457600080fd5b612a4e60e0613d31565b90506000612a5e84828501612ae2565b6000830152506020612a7284828501612ae2565b6020830152506040612a8684828501612ae2565b6040830152506060612a9a84828501612ae2565b6060830152506080612aae84828501612ae2565b60808301525060a0612ac284828501612ae2565b60a08301525060c0612ad6848285016129b8565b60c08301525092915050565b600081359050612af18161419b565b92915050565b600060208284031215612b0957600080fd5b6000612b17848285016128c6565b91505092915050565b60008060408385031215612b3357600080fd5b6000612b41858286016128c6565b9250506020612b52858286016128c6565b9150509250929050565b600080600060608486031215612b7157600080fd5b6000612b7f868287016128c6565b9350506020612b90868287016128c6565b9250506040612ba186828701612ae2565b9150509250925092565b60008060008060808587031215612bc157600080fd5b6000612bcf878288016128c6565b9450506020612be0878288016128c6565b9350506040612bf187828801612ae2565b925050606085013567ffffffffffffffff811115612c0e57600080fd5b612c1a8782880161298e565b91505092959194509250565b60008060408385031215612c3957600080fd5b6000612c47858286016128c6565b9250506020612c58858286016128db565b9150509250929050565b6000806101008385031215612c7657600080fd5b6000612c84858286016128c6565b9250506020612c9585828601612a17565b9150509250929050565b60008060408385031215612cb257600080fd5b6000612cc0858286016128c6565b9250506020612cd185828601612ae2565b9150509250929050565b60008060008060608587031215612cf157600080fd5b6000612cff878288016128c6565b9450506020612d1087828801612ae2565b935050604085013567ffffffffffffffff811115612d2d57600080fd5b612d3987828801612944565b925092505092959194509250565b600060208284031215612d5957600080fd5b6000612d67848285016128f0565b91505092915050565b60008060408385031215612d8357600080fd5b6000612d9185828601612905565b9250506020612da2858286016128c6565b9150509250929050565b600060208284031215612dbe57600080fd5b6000612dcc8482850161291a565b91505092915050565b600060208284031215612de757600080fd5b6000612df58482850161292f565b91505092915050565b60008060208385031215612e1157600080fd5b600083013567ffffffffffffffff811115612e2b57600080fd5b612e37858286016129cd565b92509250509250929050565b600060e08284031215612e5557600080fd5b6000612e6384828501612a32565b91505092915050565b600060208284031215612e7e57600080fd5b6000612e8c84828501612ae2565b91505092915050565b600080600060408486031215612eaa57600080fd5b6000612eb886828701612ae2565b935050602084013567ffffffffffffffff811115612ed557600080fd5b612ee1868287016129cd565b92509250509250925092565b60008060408385031215612f0057600080fd5b6000612f0e85828601612ae2565b9250506020612f1f85828601612ae2565b9150509250929050565b612f3281613ec4565b82525050565b612f4181613ed6565b82525050565b612f5081613ee2565b82525050565b6000612f628385613da8565b9350612f6f838584613f67565b612f788361410a565b840190509392505050565b6000612f8e82613d92565b612f988185613da8565b9350612fa8818560208601613f76565b612fb18161410a565b840191505092915050565b6000612fc782613d92565b612fd18185613db9565b9350612fe1818560208601613f76565b80840191505092915050565b612ff681613f55565b82525050565b600061300782613d9d565b6130118185613dc4565b9350613021818560208601613f76565b61302a8161410a565b840191505092915050565b600061304082613d9d565b61304a8185613dd5565b935061305a818560208601613f76565b80840191505092915050565b6000613073602083613dc4565b91507f537472696e67733a20686578206c656e67746820696e73756666696369656e746000830152602082019050919050565b60006130b3600d83613dc4565b91507f647261676f6e43726561746f72000000000000000000000000000000000000006000830152602082019050919050565b60006130f3601483613dc4565b91507f447261676f6e546f6b656e3a20626164204349440000000000000000000000006000830152602082019050919050565b6000613133603283613dc4565b91507f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008301527f63656976657220696d706c656d656e74657200000000000000000000000000006020830152604082019050919050565b6000613199600d83613dc4565b91507f616363657373436f6e74726f6c000000000000000000000000000000000000006000830152602082019050919050565b60006131d9601c83613dc4565b91507f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006000830152602082019050919050565b6000613219602483613dc4565b91507f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008301527f72657373000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b600061327f601983613dc4565b91507f4552433732313a20617070726f766520746f2063616c6c6572000000000000006000830152602082019050919050565b60006132bf602c83613dc4565b91507f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b6000613325601f83613dc4565b91507f447261676f6e546f6b656e3a2043494420697320616c726561647920736574006000830152602082019050919050565b6000613365603583613dc4565b91507f447261676f6e546f6b656e3a206e6f7420656e6f7567682070726976696c656760008301527f657320746f2063616c6c20746865206d6574686f6400000000000000000000006020830152604082019050919050565b60006133cb600783613dd5565b91507f697066733a2f2f000000000000000000000000000000000000000000000000006000830152600782019050919050565b600061340b603883613dc4565b91507f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008301527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006020830152604082019050919050565b6000613471602a83613dc4565b91507f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008301527f726f2061646472657373000000000000000000000000000000000000000000006020830152604082019050919050565b60006134d7602983613dc4565b91507f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008301527f656e7420746f6b656e00000000000000000000000000000000000000000000006020830152604082019050919050565b600061353d602383613dc4565b91507f447261676f6e546f6b656e3a207370656e64657220696e7465726e616c20657260008301527f726f7200000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006135a3602083613dc4565b91507f4552433732313a206d696e7420746f20746865207a65726f20616464726573736000830152602082019050919050565b60006135e3602c83613dc4565b91507f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b6000613649602983613dc4565b91507f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008301527f73206e6f74206f776e00000000000000000000000000000000000000000000006020830152604082019050919050565b60006136af602183613dc4565b91507f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008301527f72000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613715603183613dc4565b91507f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008301527f776e6572206e6f7220617070726f7665640000000000000000000000000000006020830152604082019050919050565b600061377b601783613dd5565b91507f416363657373436f6e74726f6c3a206163636f756e74200000000000000000006000830152601782019050919050565b60006137bb601183613dd5565b91507f206973206d697373696e6720726f6c65200000000000000000000000000000006000830152601182019050919050565b60e082016000820151613804600085018261387c565b506020820151613817602085018261387c565b50604082015161382a604085018261387c565b50606082015161383d606085018261387c565b506080820151613850608085018261387c565b5060a082015161386360a085018261387c565b5060c082015161387660c0850182612fed565b50505050565b61388581613f4b565b82525050565b61389481613f4b565b82525050565b60006138a68284612fbc565b915081905092915050565b60006138bc826133be565b91506138c88284613035565b915081905092915050565b60006138de8261376e565b91506138ea8285613035565b91506138f5826137ae565b91506139018284613035565b91508190509392505050565b60006020820190506139226000830184612f29565b92915050565b600060808201905061393d6000830187612f29565b61394a6020830186612f29565b613957604083018561388b565b81810360608301526139698184612f83565b905095945050505050565b60006080820190506139896000830188612f29565b613996602083018761388b565b6139a36040830186612f29565b81810360608301526139b6818486612f56565b90509695505050505050565b60006020820190506139d76000830184612f38565b92915050565b60006020820190506139f26000830184612f47565b92915050565b6000604082019050613a0d6000830185612f47565b613a1a6020830184612f29565b9392505050565b60006020820190508181036000830152613a3b8184612ffc565b905092915050565b60006020820190508181036000830152613a5c81613066565b9050919050565b60006060820190508181036000830152613a7c816130a6565b9050613a8b6020830185612f29565b613a986040830184612f29565b9392505050565b60006020820190508181036000830152613ab8816130e6565b9050919050565b60006020820190508181036000830152613ad881613126565b9050919050565b60006060820190508181036000830152613af88161318c565b9050613b076020830185612f29565b613b146040830184612f29565b9392505050565b60006020820190508181036000830152613b34816131cc565b9050919050565b60006020820190508181036000830152613b548161320c565b9050919050565b60006020820190508181036000830152613b7481613272565b9050919050565b60006020820190508181036000830152613b94816132b2565b9050919050565b60006020820190508181036000830152613bb481613318565b9050919050565b60006020820190508181036000830152613bd481613358565b9050919050565b60006020820190508181036000830152613bf4816133fe565b9050919050565b60006020820190508181036000830152613c1481613464565b9050919050565b60006020820190508181036000830152613c34816134ca565b9050919050565b60006020820190508181036000830152613c5481613530565b9050919050565b60006020820190508181036000830152613c7481613596565b9050919050565b60006020820190508181036000830152613c94816135d6565b9050919050565b60006020820190508181036000830152613cb48161363c565b9050919050565b60006020820190508181036000830152613cd4816136a2565b9050919050565b60006020820190508181036000830152613cf481613708565b9050919050565b600060e082019050613d1060008301846137ee565b92915050565b6000602082019050613d2b600083018461388b565b92915050565b6000604051905081810181811067ffffffffffffffff82111715613d5857613d576140db565b5b8060405250919050565b600067ffffffffffffffff821115613d7d57613d7c6140db565b5b601f19601f8301169050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000613deb82613f4b565b9150613df683613f4b565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613e2b57613e2a61404e565b5b828201905092915050565b6000613e4182613f4b565b9150613e4c83613f4b565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613e8557613e8461404e565b5b828202905092915050565b6000613e9b82613f4b565b9150613ea683613f4b565b925082821015613eb957613eb861404e565b5b828203905092915050565b6000613ecf82613f2b565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6000819050613f268261411b565b919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000613f6082613f18565b9050919050565b82818337600083830152505050565b60005b83811015613f94578082015181840152602081019050613f79565b83811115613fa3576000848401525b50505050565b6000613fb482613f4b565b91506000821415613fc857613fc761404e565b5b600182039050919050565b60006002820490506001821680613feb57607f821691505b60208210811415613fff57613ffe6140ac565b5b50919050565b600061401082613f4b565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156140435761404261404e565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b600c811061412c5761412b61407d565b5b50565b61413881613ec4565b811461414357600080fd5b50565b61414f81613ed6565b811461415a57600080fd5b50565b61416681613ee2565b811461417157600080fd5b50565b61417d81613eec565b811461418857600080fd5b50565b600c811061419857600080fd5b50565b6141a481613f4b565b81146141af57600080fd5b5056fea26469706673582212209c9bb0021fbac99a53f1fe7d2a419b7f2a4dc2178502bdb063927d2d9144255464736f6c634300080000330000000000000000000000000000000000000000000000000000000000000040000000000000000000000000c713a40aa9bff56aee0e8ff9542b758d83af9fea000000000000000000000000000000000000000000000000000000000000000b44454641554c545f434944000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101f05760003560e01c8063766650e51161010f578063c027fd7a116100a2578063d95f2e9d11610071578063d95f2e9d14610605578063e2098fe214610635578063e8d56b8b14610665578063e985e9c514610681576101f0565b8063c027fd7a14610559578063c075f2c114610575578063c87b56dd146105a5578063cae9ca51146105d5576101f0565b80639f6f50ed116100de5780639f6f50ed146104e5578063a22cb46514610503578063b514be631461051f578063b88d4fde1461053d576101f0565b8063766650e5146104495780637e7849ff1461046757806391d148541461049757806395d89b41146104c7576101f0565b806323b872dd116101875780635822a422116101565780635822a4221461039b5780636352211e146103cb57806366741377146103fb57806370a0823114610419576101f0565b806323b872dd1461031557806337b59535146103315780633acfd44f1461036157806342842e0e1461037f576101f0565b8063095ea7b3116101c3578063095ea7b3146102915780631c6b7fbb146102ad5780631cf586c6146102c9578063225b38fd146102e5576101f0565b806301ffc9a7146101f557806306fdde0314610225578063081812fc146102435780630837160d14610273575b600080fd5b61020f600480360381019061020a9190612dac565b6106b1565b60405161021c91906139c2565b60405180910390f35b61022d610793565b60405161023a9190613a21565b60405180910390f35b61025d60048036038101906102589190612e6c565b610825565b60405161026a919061390d565b60405180910390f35b61027b6108aa565b6040516102889190613a21565b60405180910390f35b6102ab60048036038101906102a69190612c9f565b61093c565b005b6102c760048036038101906102c29190612af7565b610a54565b005b6102e360048036038101906102de9190612dfe565b610b2c565b005b6102ff60048036038101906102fa9190612e6c565b610b75565b60405161030c9190613cfb565b60405180910390f35b61032f600480360381019061032a9190612b5c565b610ba0565b005b61034b60048036038101906103469190612c62565b610c00565b6040516103589190613d16565b60405180910390f35b610369610cda565b60405161037691906139dd565b60405180910390f35b61039960048036038101906103949190612b5c565b610cfe565b005b6103b560048036038101906103b09190612e6c565b610d1e565b6040516103c29190613d16565b60405180910390f35b6103e560048036038101906103e09190612e6c565b610d58565b6040516103f2919061390d565b60405180910390f35b610403610e0a565b604051610410919061390d565b60405180910390f35b610433600480360381019061042e9190612af7565b610e34565b6040516104409190613d16565b60405180910390f35b610451610eec565b60405161045e919061390d565b60405180910390f35b610481600480360381019061047c9190612e6c565b610f16565b60405161048e9190613d16565b60405180910390f35b6104b160048036038101906104ac9190612d70565b610f75565b6040516104be91906139c2565b60405180910390f35b6104cf611011565b6040516104dc9190613a21565b60405180910390f35b6104ed6110a3565b6040516104fa91906139dd565b60405180910390f35b61051d60048036038101906105189190612c26565b6110c7565b005b610527611248565b60405161053491906139dd565b60405180910390f35b61055760048036038101906105529190612bab565b61126c565b005b610573600480360381019061056e9190612e95565b6112ce565b005b61058f600480360381019061058a9190612eed565b6113b9565b60405161059c91906139c2565b60405180910390f35b6105bf60048036038101906105ba9190612e6c565b6113e5565b6040516105cc9190613a21565b60405180910390f35b6105ef60048036038101906105ea9190612cdb565b6114c6565b6040516105fc91906139c2565b60405180910390f35b61061f600480360381019061061a9190612e6c565b611628565b60405161062c91906139c2565b60405180910390f35b61064f600480360381019061064a9190612eed565b611653565b60405161065c91906139c2565b60405180910390f35b61067f600480360381019061067a9190612af7565b6116d9565b005b61069b60048036038101906106969190612b20565b6117b1565b6040516106a891906139c2565b60405180910390f35b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061077c57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061078c575061078b82611845565b5b9050919050565b6060600080546107a290613fd3565b80601f01602080910402602001604051908101604052809291908181526020018280546107ce90613fd3565b801561081b5780601f106107f05761010080835404028352916020019161081b565b820191906000526020600020905b8154815290600101906020018083116107fe57829003601f168201915b5050505050905090565b6000610830826118af565b61086f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161086690613c7b565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6060600a80546108b990613fd3565b80601f01602080910402602001604051908101604052809291908181526020018280546108e590613fd3565b80156109325780601f1061090757610100808354040283529160200191610932565b820191906000526020600020905b81548152906001019060200180831161091557829003601f168201915b5050505050905090565b600061094782610d58565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156109b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109af90613cbb565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166109d761191b565b73ffffffffffffffffffffffffffffffffffffffff161480610a065750610a0581610a0061191b565b6117b1565b5b610a45576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a3c90613bdb565b60405180910390fd5b610a4f8383611923565b505050565b7fdc0d7a095c4e917ecbeb7deda7c942ff9744013d419e37549215a413915e421d610a8681610a8161191b565b6119dc565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905082600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f4ca142703425bec1d507d5581fac3a3e61eadcbeafbd7c0a03e2897d96de1cc58184604051610b1f929190613a63565b60405180910390a1505050565b7fefa080c67ecf4a6bf40c9dc64173420c08f359250ca6562d7c80f7c7b9b13969610b5e81610b5961191b565b6119dc565b8282600a9190610b6f929190612770565b50505050565b610b7d6127f6565b610b996008600084815260200190815260200160002054611a79565b9050919050565b610bb1610bab61191b565b82611b70565b610bf0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610be790613cdb565b60405180910390fd5b610bfb838383611c4e565b505050565b6000610c0a610eec565b73ffffffffffffffffffffffffffffffffffffffff16610c2861191b565b73ffffffffffffffffffffffffffffffffffffffff1614610c7e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7590613bbb565b60405180910390fd5b610c886007611eaa565b6000610c946007611ec0565b9050610caf83803603810190610caa9190612e43565b611ece565b6008600083815260200190815260200160002081905550610cd08482611f67565b8091505092915050565b7fefa080c67ecf4a6bf40c9dc64173420c08f359250ca6562d7c80f7c7b9b1396981565b610d198383836040518060200160405280600081525061126c565b505050565b600080610d2a83610b75565b905060008160a0015111610d4a57610d458160000151612135565b610d50565b8060a001515b915050919050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610e01576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610df890613c1b565b60405180910390fd5b80915050919050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610ea5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e9c90613bfb565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600080610f2283610b75565b905060008160a001511415610f6857610f3e8160000151612135565b8160a0018181525050610f5081611ece565b60086000858152602001908152602001600020819055505b8060a00151915050919050565b6000610f7f610e0a565b73ffffffffffffffffffffffffffffffffffffffff166391d1485484846040518363ffffffff1660e01b8152600401610fb99291906139f8565b60206040518083038186803b158015610fd157600080fd5b505afa158015610fe5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110099190612d47565b905092915050565b60606001805461102090613fd3565b80601f016020809104026020016040519081016040528092919081815260200182805461104c90613fd3565b80156110995780601f1061106e57610100808354040283529160200191611099565b820191906000526020600020905b81548152906001019060200180831161107c57829003601f168201915b5050505050905090565b7f33fa24d9aab6b79237248a16094d5f78ea83bb51e42c123ce925a264e7d816cc81565b6110cf61191b565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561113d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161113490613b5b565b60405180910390fd5b806005600061114a61191b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166111f761191b565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161123c91906139c2565b60405180910390a35050565b7fdc0d7a095c4e917ecbeb7deda7c942ff9744013d419e37549215a413915e421d81565b61127d61127761191b565b83611b70565b6112bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112b390613cdb565b60405180910390fd5b6112c88484848461226b565b50505050565b7fefa080c67ecf4a6bf40c9dc64173420c08f359250ca6562d7c80f7c7b9b13969611300816112fb61191b565b6119dc565b602e838390501015611347576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133e90613a9f565b60405180910390fd5b61135084611628565b15611390576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138790613b9b565b60405180910390fd5b82826009600087815260200190815260200160002091906113b2929190612770565b5050505050565b6000806113c584610b75565b905082816040015114806113dc5750828160600151145b91505092915050565b6060600060096000848152602001908152602001600020805461140790613fd3565b80601f016020809104026020016040519081016040528092919081815260200182805461143390613fd3565b80156114805780601f1061145557610100808354040283529160200191611480565b820191906000526020600020905b81548152906001019060200180831161146357829003601f168201915b50505050509050600081511161149d576114986108aa565b61149f565b805b6040516020016114af91906138b1565b604051602081830303815290604052915050919050565b60006114d28585611923565b60008573ffffffffffffffffffffffffffffffffffffffff166114f361191b565b8630878760405160240161150b959493929190613974565b6040516020818303038152906040527f8f4ffcb1000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050604051611595919061389a565b6000604051808303816000865af19150503d80600081146115d2576040519150601f19603f3d011682016040523d82523d6000602084013e6115d7565b606091505b505090508061161b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161161290613c3b565b60405180910390fd5b6001915050949350505050565b60008060096000848152602001908152602001600020805461164990613fd3565b9050119050919050565b60008061165f84610b75565b9050600061166c84610b75565b905060018260800151118015611686575060018160800151115b80156116cf57508060400151826040015114806116aa575080606001518260400151145b806116bc575080604001518260600151145b806116ce575080606001518260600151145b5b9250505092915050565b7fdc0d7a095c4e917ecbeb7deda7c942ff9744013d419e37549215a413915e421d61170b8161170661191b565b6119dc565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905082600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f4ca142703425bec1d507d5581fac3a3e61eadcbeafbd7c0a03e2897d96de1cc581846040516117a4929190613adf565b60405180910390a1505050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661199683610d58565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6119e68282610f75565b611a7557611a0b8173ffffffffffffffffffffffffffffffffffffffff1660146122c7565b611a198360001c60206122c7565b604051602001611a2a9291906138d3565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a6c9190613a21565b60405180910390fd5b5050565b611a816127f6565b6040518060e00160405280836cffffffffffffffffffffffffff16815260200160d884901c63ffffffff168152602001606884901c63ffffffff168152602001608884901c63ffffffff16815260200160a884901c61ffff16815260200160b884901c61ffff16815260200160c884901c61ffff16600b811115611b2e577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b600b811115611b66577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8152509050919050565b6000611b7b826118af565b611bba576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bb190613b7b565b60405180910390fd5b6000611bc583610d58565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611c3457508373ffffffffffffffffffffffffffffffffffffffff16611c1c84610825565b73ffffffffffffffffffffffffffffffffffffffff16145b80611c455750611c4481856117b1565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611c6e82610d58565b73ffffffffffffffffffffffffffffffffffffffff1614611cc4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cbb90613c9b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611d34576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d2b90613b3b565b60405180910390fd5b611d3f8383836125c1565b611d4a600082611923565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611d9a9190613e90565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611df19190613de0565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6001816000016000828254019250508190555050565b600081600001549050919050565b6000808260000151905060688360400151901b8117905060888360600151901b8117905060a88360800151901b8117905060b88360a00151901b8117905060c88360c00151600b811115611f4b577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b901b8117905060d88360200151901b8117905080915050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611fd7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fce90613c5b565b60405180910390fd5b611fe0816118af565b15612020576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161201790613b1b565b60405180910390fd5b61202c600083836125c1565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461207c9190613de0565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b6000806c0f00000000000000000000000090506000805b601981101561226057600060048260186121669190613e90565b6121709190613e36565b848716901c905060068210156121b6578082601961218e9190613e90565b600361219a9190613e36565b6121a49190613e36565b836121af9190613de0565b9250612245565b600a8210156121f557808260196121cd9190613e90565b60026121d99190613e36565b6121e39190613e36565b836121ee9190613de0565b9250612244565b6000811115612228578082601961220c9190613e90565b6122169190613e36565b836122219190613de0565b9250612243565b8160196122359190613e90565b836122409190613de0565b92505b5b5b600484901c935050808061225890614005565b91505061214c565b508092505050919050565b612276848484611c4e565b612282848484846125c6565b6122c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122b890613abf565b60405180910390fd5b50505050565b6060600060028360026122da9190613e36565b6122e49190613de0565b67ffffffffffffffff811115612323577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156123555781602001600182028036833780820191505090505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106123b3577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061243d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000600184600261247d9190613e36565b6124879190613de0565b90505b6001811115612573577f3031323334353637383961626364656600000000000000000000000000000000600f8616601081106124ef577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b82828151811061252c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c94508061256c90613fa9565b905061248a565b50600084146125b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125ae90613a43565b60405180910390fd5b8091505092915050565b505050565b60006125e78473ffffffffffffffffffffffffffffffffffffffff1661275d565b15612750578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261261061191b565b8786866040518563ffffffff1660e01b81526004016126329493929190613928565b602060405180830381600087803b15801561264c57600080fd5b505af192505050801561267d57506040513d601f19601f8201168201806040525081019061267a9190612dd5565b60015b612700573d80600081146126ad576040519150601f19603f3d011682016040523d82523d6000602084013e6126b2565b606091505b506000815114156126f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126ef90613abf565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612755565b600190505b949350505050565b600080823b905060008111915050919050565b82805461277c90613fd3565b90600052602060002090601f01602090048101928261279e57600085556127e5565b82601f106127b757803560ff19168380011785556127e5565b828001600101855582156127e5579182015b828111156127e45782358255916020019190600101906127c9565b5b5090506127f2919061286b565b5090565b6040518060e001604052806000815260200160008152602001600081526020016000815260200160008152602001600081526020016000600b811115612865577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b81525090565b5b8082111561288457600081600090555060010161286c565b5090565b600061289b61289684613d62565b613d31565b9050828152602081018484840111156128b357600080fd5b6128be848285613f67565b509392505050565b6000813590506128d58161412f565b92915050565b6000813590506128ea81614146565b92915050565b6000815190506128ff81614146565b92915050565b6000813590506129148161415d565b92915050565b60008135905061292981614174565b92915050565b60008151905061293e81614174565b92915050565b60008083601f84011261295657600080fd5b8235905067ffffffffffffffff81111561296f57600080fd5b60208301915083600182028301111561298757600080fd5b9250929050565b600082601f83011261299f57600080fd5b81356129af848260208601612888565b91505092915050565b6000813590506129c78161418b565b92915050565b60008083601f8401126129df57600080fd5b8235905067ffffffffffffffff8111156129f857600080fd5b602083019150836001820283011115612a1057600080fd5b9250929050565b600060e08284031215612a2957600080fd5b81905092915050565b600060e08284031215612a4457600080fd5b612a4e60e0613d31565b90506000612a5e84828501612ae2565b6000830152506020612a7284828501612ae2565b6020830152506040612a8684828501612ae2565b6040830152506060612a9a84828501612ae2565b6060830152506080612aae84828501612ae2565b60808301525060a0612ac284828501612ae2565b60a08301525060c0612ad6848285016129b8565b60c08301525092915050565b600081359050612af18161419b565b92915050565b600060208284031215612b0957600080fd5b6000612b17848285016128c6565b91505092915050565b60008060408385031215612b3357600080fd5b6000612b41858286016128c6565b9250506020612b52858286016128c6565b9150509250929050565b600080600060608486031215612b7157600080fd5b6000612b7f868287016128c6565b9350506020612b90868287016128c6565b9250506040612ba186828701612ae2565b9150509250925092565b60008060008060808587031215612bc157600080fd5b6000612bcf878288016128c6565b9450506020612be0878288016128c6565b9350506040612bf187828801612ae2565b925050606085013567ffffffffffffffff811115612c0e57600080fd5b612c1a8782880161298e565b91505092959194509250565b60008060408385031215612c3957600080fd5b6000612c47858286016128c6565b9250506020612c58858286016128db565b9150509250929050565b6000806101008385031215612c7657600080fd5b6000612c84858286016128c6565b9250506020612c9585828601612a17565b9150509250929050565b60008060408385031215612cb257600080fd5b6000612cc0858286016128c6565b9250506020612cd185828601612ae2565b9150509250929050565b60008060008060608587031215612cf157600080fd5b6000612cff878288016128c6565b9450506020612d1087828801612ae2565b935050604085013567ffffffffffffffff811115612d2d57600080fd5b612d3987828801612944565b925092505092959194509250565b600060208284031215612d5957600080fd5b6000612d67848285016128f0565b91505092915050565b60008060408385031215612d8357600080fd5b6000612d9185828601612905565b9250506020612da2858286016128c6565b9150509250929050565b600060208284031215612dbe57600080fd5b6000612dcc8482850161291a565b91505092915050565b600060208284031215612de757600080fd5b6000612df58482850161292f565b91505092915050565b60008060208385031215612e1157600080fd5b600083013567ffffffffffffffff811115612e2b57600080fd5b612e37858286016129cd565b92509250509250929050565b600060e08284031215612e5557600080fd5b6000612e6384828501612a32565b91505092915050565b600060208284031215612e7e57600080fd5b6000612e8c84828501612ae2565b91505092915050565b600080600060408486031215612eaa57600080fd5b6000612eb886828701612ae2565b935050602084013567ffffffffffffffff811115612ed557600080fd5b612ee1868287016129cd565b92509250509250925092565b60008060408385031215612f0057600080fd5b6000612f0e85828601612ae2565b9250506020612f1f85828601612ae2565b9150509250929050565b612f3281613ec4565b82525050565b612f4181613ed6565b82525050565b612f5081613ee2565b82525050565b6000612f628385613da8565b9350612f6f838584613f67565b612f788361410a565b840190509392505050565b6000612f8e82613d92565b612f988185613da8565b9350612fa8818560208601613f76565b612fb18161410a565b840191505092915050565b6000612fc782613d92565b612fd18185613db9565b9350612fe1818560208601613f76565b80840191505092915050565b612ff681613f55565b82525050565b600061300782613d9d565b6130118185613dc4565b9350613021818560208601613f76565b61302a8161410a565b840191505092915050565b600061304082613d9d565b61304a8185613dd5565b935061305a818560208601613f76565b80840191505092915050565b6000613073602083613dc4565b91507f537472696e67733a20686578206c656e67746820696e73756666696369656e746000830152602082019050919050565b60006130b3600d83613dc4565b91507f647261676f6e43726561746f72000000000000000000000000000000000000006000830152602082019050919050565b60006130f3601483613dc4565b91507f447261676f6e546f6b656e3a20626164204349440000000000000000000000006000830152602082019050919050565b6000613133603283613dc4565b91507f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008301527f63656976657220696d706c656d656e74657200000000000000000000000000006020830152604082019050919050565b6000613199600d83613dc4565b91507f616363657373436f6e74726f6c000000000000000000000000000000000000006000830152602082019050919050565b60006131d9601c83613dc4565b91507f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006000830152602082019050919050565b6000613219602483613dc4565b91507f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008301527f72657373000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b600061327f601983613dc4565b91507f4552433732313a20617070726f766520746f2063616c6c6572000000000000006000830152602082019050919050565b60006132bf602c83613dc4565b91507f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b6000613325601f83613dc4565b91507f447261676f6e546f6b656e3a2043494420697320616c726561647920736574006000830152602082019050919050565b6000613365603583613dc4565b91507f447261676f6e546f6b656e3a206e6f7420656e6f7567682070726976696c656760008301527f657320746f2063616c6c20746865206d6574686f6400000000000000000000006020830152604082019050919050565b60006133cb600783613dd5565b91507f697066733a2f2f000000000000000000000000000000000000000000000000006000830152600782019050919050565b600061340b603883613dc4565b91507f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008301527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006020830152604082019050919050565b6000613471602a83613dc4565b91507f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008301527f726f2061646472657373000000000000000000000000000000000000000000006020830152604082019050919050565b60006134d7602983613dc4565b91507f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008301527f656e7420746f6b656e00000000000000000000000000000000000000000000006020830152604082019050919050565b600061353d602383613dc4565b91507f447261676f6e546f6b656e3a207370656e64657220696e7465726e616c20657260008301527f726f7200000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006135a3602083613dc4565b91507f4552433732313a206d696e7420746f20746865207a65726f20616464726573736000830152602082019050919050565b60006135e3602c83613dc4565b91507f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b6000613649602983613dc4565b91507f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008301527f73206e6f74206f776e00000000000000000000000000000000000000000000006020830152604082019050919050565b60006136af602183613dc4565b91507f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008301527f72000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613715603183613dc4565b91507f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008301527f776e6572206e6f7220617070726f7665640000000000000000000000000000006020830152604082019050919050565b600061377b601783613dd5565b91507f416363657373436f6e74726f6c3a206163636f756e74200000000000000000006000830152601782019050919050565b60006137bb601183613dd5565b91507f206973206d697373696e6720726f6c65200000000000000000000000000000006000830152601182019050919050565b60e082016000820151613804600085018261387c565b506020820151613817602085018261387c565b50604082015161382a604085018261387c565b50606082015161383d606085018261387c565b506080820151613850608085018261387c565b5060a082015161386360a085018261387c565b5060c082015161387660c0850182612fed565b50505050565b61388581613f4b565b82525050565b61389481613f4b565b82525050565b60006138a68284612fbc565b915081905092915050565b60006138bc826133be565b91506138c88284613035565b915081905092915050565b60006138de8261376e565b91506138ea8285613035565b91506138f5826137ae565b91506139018284613035565b91508190509392505050565b60006020820190506139226000830184612f29565b92915050565b600060808201905061393d6000830187612f29565b61394a6020830186612f29565b613957604083018561388b565b81810360608301526139698184612f83565b905095945050505050565b60006080820190506139896000830188612f29565b613996602083018761388b565b6139a36040830186612f29565b81810360608301526139b6818486612f56565b90509695505050505050565b60006020820190506139d76000830184612f38565b92915050565b60006020820190506139f26000830184612f47565b92915050565b6000604082019050613a0d6000830185612f47565b613a1a6020830184612f29565b9392505050565b60006020820190508181036000830152613a3b8184612ffc565b905092915050565b60006020820190508181036000830152613a5c81613066565b9050919050565b60006060820190508181036000830152613a7c816130a6565b9050613a8b6020830185612f29565b613a986040830184612f29565b9392505050565b60006020820190508181036000830152613ab8816130e6565b9050919050565b60006020820190508181036000830152613ad881613126565b9050919050565b60006060820190508181036000830152613af88161318c565b9050613b076020830185612f29565b613b146040830184612f29565b9392505050565b60006020820190508181036000830152613b34816131cc565b9050919050565b60006020820190508181036000830152613b548161320c565b9050919050565b60006020820190508181036000830152613b7481613272565b9050919050565b60006020820190508181036000830152613b94816132b2565b9050919050565b60006020820190508181036000830152613bb481613318565b9050919050565b60006020820190508181036000830152613bd481613358565b9050919050565b60006020820190508181036000830152613bf4816133fe565b9050919050565b60006020820190508181036000830152613c1481613464565b9050919050565b60006020820190508181036000830152613c34816134ca565b9050919050565b60006020820190508181036000830152613c5481613530565b9050919050565b60006020820190508181036000830152613c7481613596565b9050919050565b60006020820190508181036000830152613c94816135d6565b9050919050565b60006020820190508181036000830152613cb48161363c565b9050919050565b60006020820190508181036000830152613cd4816136a2565b9050919050565b60006020820190508181036000830152613cf481613708565b9050919050565b600060e082019050613d1060008301846137ee565b92915050565b6000602082019050613d2b600083018461388b565b92915050565b6000604051905081810181811067ffffffffffffffff82111715613d5857613d576140db565b5b8060405250919050565b600067ffffffffffffffff821115613d7d57613d7c6140db565b5b601f19601f8301169050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000613deb82613f4b565b9150613df683613f4b565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613e2b57613e2a61404e565b5b828201905092915050565b6000613e4182613f4b565b9150613e4c83613f4b565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613e8557613e8461404e565b5b828202905092915050565b6000613e9b82613f4b565b9150613ea683613f4b565b925082821015613eb957613eb861404e565b5b828203905092915050565b6000613ecf82613f2b565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6000819050613f268261411b565b919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000613f6082613f18565b9050919050565b82818337600083830152505050565b60005b83811015613f94578082015181840152602081019050613f79565b83811115613fa3576000848401525b50505050565b6000613fb482613f4b565b91506000821415613fc857613fc761404e565b5b600182039050919050565b60006002820490506001821680613feb57607f821691505b60208210811415613fff57613ffe6140ac565b5b50919050565b600061401082613f4b565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156140435761404261404e565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b600c811061412c5761412b61407d565b5b50565b61413881613ec4565b811461414357600080fd5b50565b61414f81613ed6565b811461415a57600080fd5b50565b61416681613ee2565b811461417157600080fd5b50565b61417d81613eec565b811461418857600080fd5b50565b600c811061419857600080fd5b50565b6141a481613f4b565b81146141af57600080fd5b5056fea26469706673582212209c9bb0021fbac99a53f1fe7d2a419b7f2a4dc2178502bdb063927d2d9144255464736f6c63430008000033

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

0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000c713a40aa9bff56aee0e8ff9542b758d83af9fea000000000000000000000000000000000000000000000000000000000000000b44454641554c545f434944000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : defaultCid (string): DEFAULT_CID
Arg [1] : accessControl (address): 0xc713A40AA9bfF56aeE0E8fF9542b758d83af9fEa

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 000000000000000000000000c713a40aa9bff56aee0e8ff9542b758d83af9fea
Arg [2] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [3] : 44454641554c545f434944000000000000000000000000000000000000000000


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.