Contract 0xcE6E3a14B5F8cE2b05aF0F117Dc922769779aA3b 3

 

Contract Overview

MEGAMI: MEGAMI Token
Balance:
0 Ether

EtherValue:
$0.00

Token:
Txn Hash
Method
Block
From
To
Value
0x68e66712b6e7152a04083021c3f53d42d34cb4276f0810434ec07a0e267d1a90Set Approval For...156490682022-09-30 22:14:111 hr 34 mins ago0xc689c4e2298f5d0ee8118f46f0262421d17db813 IN  MEGAMI: MEGAMI Token0 Ether0.00056541 12.11873942
0x213529f5facb9b1d5a6c6c023d91355096ae2dd24048b29673658867776fbb11Set Approval For...156486092022-09-30 20:42:113 hrs 6 mins ago0x0e08b74f09ffcdc69bc8ea98ae522681407e1c11 IN  MEGAMI: MEGAMI Token0 Ether0.00103425 22.12791834
0x158cd72dad955208ab7b86ef5c7d87b2c7c4ad90569db61780172bac4ce02094Set Approval For...156457762022-09-30 11:12:4712 hrs 35 mins ago0x8fc2dc017e96b505848cae97faa89e722b15da2c IN  MEGAMI: MEGAMI Token0 Ether0.00060803 13.03221169
0x9078d007959e4451f410ce282f67859dc68c7a112f1e670c79349d0bebfe2c80Set Approval For...156434712022-09-30 3:29:1120 hrs 19 mins ago0xaf6376e68437ee82d1e0e47ae9c217f35681074c IN  MEGAMI: MEGAMI Token0 Ether0.0010806 23.16118559
0x504427c93f291ec48e5491d114a4ff297624fb97738f728edee8b7f45897a0bdSet Approval For...156427572022-09-30 1:04:5922 hrs 43 mins ago0xe427c1603614506e2b38d44041571ab3fd678d08 IN  MEGAMI: MEGAMI Token0 Ether0.00047233 10.1237016
0xdab5ed2e2bb95ac5950c098d1e9ae1b14bd4469eb10847042c09c2bd90338a6cSet Approval For...156403182022-09-29 16:53:591 day 6 hrs agoENS Name amaritto.eth IN  MEGAMI: MEGAMI Token0 Ether0.00055984 22.62553841
0xdbc93bd0999d72d827ee454a0a5fefbee3b0aab48a26bd8d571e4ccdcbb1ea06Safe Transfer Fr...156395972022-09-29 14:28:591 day 9 hrs ago0xd98f463f3fd46bcabfcf4a0d6901bc8d9f384d57 IN  MEGAMI: MEGAMI Token0 Ether0.00100535 16.30670149
0xaf915c90a98229237ba46b08844d6b0aeec3f4cbed57605e2dfd808710b6ec7aSet Approval For...156393932022-09-29 13:47:231 day 10 hrs ago0xf78bf349211877e3b186f284e05a3b54d1daf764 IN  MEGAMI: MEGAMI Token0 Ether0.00087289 18.67551289
0x4964289840cddb3d8f11973c51e746d42fa85399bf7477843599835f76b61392Safe Transfer Fr...156393422022-09-29 13:36:591 day 10 hrs ago0x39313fde1a62073fad59057845218a0f8f806777 IN  MEGAMI: MEGAMI Token0 Ether0.00094467 15.32250516
0xbf859e6f3677a1d8e6cb7212e7dd36023a9dd7507387bd0044efc2a55eabfc6eSafe Transfer Fr...156386312022-09-29 11:13:351 day 12 hrs ago0xbc91c84b383e6f2131e73dab409e86ed2569e84d IN  MEGAMI: MEGAMI Token0 Ether0.00035982 7.29258103
0x9bca75be21a103b1b985fbf2fb50927e9bd1905302efe6362f7e866b1db8e30bSafe Transfer Fr...156386192022-09-29 11:11:111 day 12 hrs ago0x42defdb9a5fbb1e56c4d887b99e272bcb496e328 IN  MEGAMI: MEGAMI Token0 Ether0.00052855 8.57300662
0xba8f32be01845e1c0bed8c69006c6405f5d99c5c94649e5aee2414e539fa42b9Set Approval For...156372862022-09-29 6:43:231 day 17 hrs agoENS Name *praisethesun🌞.eth IN  MEGAMI: MEGAMI Token0 Ether0.00059337 12.7180753
0x0cdf146c72060f3906cbc303ec52585c446f9b859a4eefe1441e6d21e077f86cSet Approval For...156371892022-09-29 6:23:351 day 17 hrs agoENS Name afifwm.eth IN  MEGAMI: MEGAMI Token0 Ether0.0005261 11.27634775
0x2e38d423a6782e1c72a5a4c94d00fac9cbea7fc6d8febadb94e322ff54e96a0bSafe Transfer Fr...156370002022-09-29 5:45:231 day 18 hrs ago0x6103f793f2afbdc992f8e2b1c8ab8ae72eeb2860 IN  MEGAMI: MEGAMI Token0 Ether0.00057879 9.38792885
0x48a07a1f7af1fd391d733899555383885add85ee459b25024348c1f024c04612Set Approval For...156366132022-09-29 4:27:471 day 19 hrs ago0xb3fde20382cb896fdcc7fb27838b8def47a0d8e9 IN  MEGAMI: MEGAMI Token0 Ether0.00049941 10.70423872
0x693fa1fe6cf30c715d61ae987115ab5f362b709104a43bdb9fbbdc67761bce46Set Approval For...156362722022-09-29 3:19:231 day 20 hrs ago0x92e0d947c6ae8cb9d9ca4c5344075b32eb77a0cc IN  MEGAMI: MEGAMI Token0 Ether0.00051125 10.95786451
0x164d65be5f39f2dc69bb33d6737024ad84d652287db6b4210b883eeb70390182Set Approval For...156362142022-09-29 3:07:471 day 20 hrs ago0x84269c826cd7506d2e7f3c61b0f98c035a5ac2bb IN  MEGAMI: MEGAMI Token0 Ether0.00060304 12.90212319
0xf2f0d0cef6ce4a81bf44e57f518274141f021b5519b448cfdc18bb053e696c9aSafe Transfer Fr...156356092022-09-29 1:06:231 day 22 hrs ago0x0ede92eb43ef3f268806f5a129f3c6e0c28d5da0 IN  MEGAMI: MEGAMI Token0 Ether0.00059662 9.67720766
0xc9f4c33d95d8bc1728bbade3403bbc4d9a456c0869fd48ab8d2df72dbbb7a9a6Set Approval For...156349782022-09-28 22:59:352 days 48 mins ago0x447a85f040812cfe0c0a587439794ed1461eb161 IN  MEGAMI: MEGAMI Token0 Ether0.00056016 11.98464387
0x4476243dad3f52403001ce5671974596bc9546027b375ad0b4668f8e3c43995bSet Approval For...156349782022-09-28 22:59:352 days 48 mins ago0x447a85f040812cfe0c0a587439794ed1461eb161 IN  MEGAMI: MEGAMI Token0 Ether0.00056016 11.98464387
0x18f479d5559d784f59660ae3d66cf7d0e53605cde285e902befa839c2b801883Transfer From156344682022-09-28 21:17:112 days 2 hrs ago0x138b6cdac711b04542daaa6c76b910efe2948f36 IN  MEGAMI: MEGAMI Token0 Ether0.00048293 11.5894144
0xd9ef1b6b2614aabfd91a336a8b2e4d6fcf850af8f4c06e4029ca0db55434399fTransfer From156344662022-09-28 21:16:472 days 2 hrs ago0x138b6cdac711b04542daaa6c76b910efe2948f36 IN  MEGAMI: MEGAMI Token0 Ether0.00059055 12.70827247
0xf3b70470030aa1c8c6243fec073d99b05a50458d44ad7e7d13c7eee30addd5c8Transfer From156344652022-09-28 21:16:352 days 2 hrs ago0x138b6cdac711b04542daaa6c76b910efe2948f36 IN  MEGAMI: MEGAMI Token0 Ether0.00078596 12.36381836
0x169e0a8c8a77a0050098569c7038912fcb757b03d36942e59e70ef7dae0d8fd3Set Approval For...156327302022-09-28 15:27:472 days 8 hrs agoENS Name 0xb381.eth IN  MEGAMI: MEGAMI Token0 Ether0.00093205 19.94130951
0x52cca11afdc2658bf6f1f4f31c137a8f14cda9c89235ea2d96e4f2753dddacccSet Approval For...156327292022-09-28 15:27:352 days 8 hrs agoENS Name 0xb381.eth IN  MEGAMI: MEGAMI Token0 Ether0.00097964 20.95937864
[ Download CSV Export 

OVERVIEW

MEGAMI is a collection of 10,000 PFPs designed by illustrator and YouTuber Naoki Saito

View more zero value Internal Transactions in Advanced View mode
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MEGAMI

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 18 : MEGAMI.sol
// SPDX-License-Identifier: MIT

// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxddxxxxddxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
// xxxxxxxxxxxxxxxxxxxxdol:;,''....'',;:lodxxxxxxxxxxxxxxxxxxxxxdlc;,''....'',;:codxxxxxxxxxxxxxxxxxxxx
// xxxxxxxxxxxxxxxxxdc;'.                .';ldxxxxxxxxxxxxxxdl;'.                ..;cdxxxxxxxxxxxxxxxxx
// xxxxxxxxxxxxxxdl;.                        .;ldxxxxxxxxxo;.                        .;ldxxxxxxxxxxxxxx
// xxxxxxxxxxxxxl,.                            .,lxxxxxxo;.                            .'ldxxxxxxxxxxxx
// xxxxxxxxxxxo;.                                .,lddo;.                                .;oxxxxxxxxxxx
// xxxxxxxxxxo'                                    ....                                    'lxxxxxxxxxx
// xxxxxxxxxl'                             .                   .                            .lxxxxxxxxx
// xxxxxxxxo,                             'c,.              .,c'                             'oxxxxxxxx
// xxxxxxxxc.                             .lxl,.          .,ldo.                             .:xxxxxxxx
// xxxxxxxd,                              .:xxxl,.      .,ldxxc.                              'oxxxxxxx
// xxxxxxxo'                               ,dxxxxl,.  .,ldxxxd;                               .lxxxxxxx
// xxxxxxxo.                               .oxxxxxxl::ldxxxxxo'                               .lxxxxxxx
// xxxxxxxd,                               .cxxxxxxxxxxxxxxxxl.                               'oxxxxxxx
// xxxxxxxx:.           ..                  ;xxxxxxxxxxxxxxxx:                  ..            ;dxxxxxxx
// xxxxxxxxo'           ''                  'oxxxxxxxxxxxxxxd,                  .'           .lxxxxxxxx
// xxxxxxxxxc.          ;,                  .lxxxxxxxxxxxxxxo.                  ';.         .cxxxxxxxxx
// xxxxxxxxxxc.        .c,                  .:xxxxxxxxxxxxxxc.                  'c.        .cdxxxxxxxxx
// xxxxxxxxxxxl'       'l,       ..          ,dxxxxxxxxxxxxd;          ..       'l,       'lxxxxxxxxxxx
// xxxxxxxxxxxxd:.     ;o,       .'          .oxxxxxxxxxxxxo'          ..       'o:.    .:dxxxxxxxxxxxx
// xxxxxxxxxxxxxxd:.  .cd,       .;.         .cxxxxxxxxxxxxl.         .,'       'ol.  .:oxxxxxxxxxxxxxx
// xxxxxxxxxxxxxxxxo:.,od,       .:.          ;xxxxxxxxxxxx:          .:'       'oo,.:oxxxxxxxxxxxxxxxx
// xxxxxxxxxxxxxxxxxxdodd,       .l,          'dxxxxxxxxxxd,          'l'       'oxodxxxxxxxxxxxxxxxxxx
// xxxxxxxxxxxxxxxxxxxxxd;       .l:.         .lxxxxxxxxxxo.          :o'       ,dxxxxxxxxxxxxxxxxxxxxx
// xxxxxxxxxxxxxxxxxxxxxxd:.     .ol.         .:xxxxxxxxxxc.         .co'     .:oxxxxxxxxxxxxxxxxxxxxxx
// xxxxxxxxxxxxxxxxxxxxxxxxd:.   .oo'          ;dxxxxxxxxd;          .oo'   .:oxxxxxxxxxxxxxxxxxxxxxxxx
// xxxxxxxxxxxxxxxxxxxxxxxxxxo:. .od;          'oxxxxxxxxo'          ,do' .:oxxxxxxxxxxxxxxxxxxxxxxxxxx
// xxxxxxxxxxxxxxxxxxxxxxxxxxxxd::oxc.         .cxxxxxxxxl.         .:xd::oxxxxxxxxxxxxxxxxxxxxxxxxxxxx
// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxl.          ;xxxxxxxx:.         .lxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxd;          'dxxxxxxd,          ,dxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxd:.        .lxxxxxxo.        .:oxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxd:.      .cxxxxxxc.      .:oxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxo:.     ;dxxxxd;     .:oxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxd:.   'oxxxxo'   .:oxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxo:. .cxxxxl. .:oxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxo:'cxxxxc,:oxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxddxxxxddxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
//
// MEGAMI https://www.megami.io/

pragma solidity ^0.8.7;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/interfaces/IERC2981.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "./rarible/royalties/contracts/LibPart.sol";
import "./rarible/royalties/contracts/LibRoyaltiesV2.sol";
import "./rarible/royalties/contracts/RoyaltiesV2.sol";
import "./interfaces/IMEGAMI.sol";

/**
 * @dev Implementation of the MEGAMI tokens which are ERC721 tokens.
 */
contract MEGAMI is IMEGAMI, ERC721, Ownable, ReentrancyGuard, RoyaltiesV2 {
    using Strings for uint256;

    /**
     * @dev Minimum token ID of MEGAMI.
     */ 
    uint256 private constant START_TOKEN_ID = 1;

    /**
     * @dev Maxium number of MEGAMI tokens can be minted.
     */ 
    uint256 private constant MAX_SUPPLY = 10000;

    /**
     * @notice Total number of the MEGAMI tokens minted so far.
     */ 
    uint256 public totalSupply = 0;

    /**
     * @dev The base URI of metadata 
     */ 
    string private baseTokenURI = "ipfs://QmQMdt64iGaCFR1RCN9yRL2eFbWeizPwEdVKbfH9aSayFt/";

    /**
     * @dev Address of the royalty recipient 
     */
    address payable private defaultRoyaltiesReceipientAddress;

    /**
     * @dev Percentage basis points of the royalty
     */ 
    uint96 private defaultPercentageBasisPoints = 300;  // 3%

    /**
     * @dev Address of sales contract
     */ 
    address private salesContractAddr;

    /**
     * @dev Address of the fund manager contract
     */
    address private fundManager;

    /**
     * @dev 100% in bases point
     */
    uint256 private constant HUNDRED_PERCENT_IN_BASIS_POINTS = 10000;

    /**
     * @dev Max royalty this contract allows to set. It's 15% in the basis points.
     */
    uint256 private constant MAX_ROYALTY_BASIS_POINTS = 1500;

    /**
     * @dev Constractor of MEGAMI contract. Setting the fund manager and royalty recipient.
     * @param fundManagerContractAddress Address of the contract managing funds.
     */
    constructor (address fundManagerContractAddress)
    ERC721("MEGAMI", "MEGAMI")
    {
        fundManager = fundManagerContractAddress;
        defaultRoyaltiesReceipientAddress = payable(fundManager);
    }

    /**
     * @dev For receiving fund in case someone try to send it.
     */
    receive() external payable {}

    /**
     * @dev The modifier allowing the function access only for owner and sales contract.
     */
    modifier onlyOwnerORSalesContract()
    {
        require(salesContractAddr == _msgSender() || owner() == _msgSender(), "Ownable: caller is not the Owner or SalesContract");
        _;
    }

    /**
     * @dev Sets the address of the sales contract.
     * @param newSalesContractAddr Address of the contract selling MEGAMI tokens.
     */
    function setSalesContract(address newSalesContractAddr)
        external
        onlyOwner
    {
        salesContractAddr = newSalesContractAddr;
    }

    /**
     * @dev Returns the address of the sales contract.
     */
    function getSalesContract() external view returns (address) {
        return salesContractAddr;
    }

    /**
     * @dev Set baseTokenURI.
     * @param newBaseTokenURI The value being set to baseTokenURI.
     */
    function setBaseTokenURI(string calldata newBaseTokenURI) external onlyOwner {
        baseTokenURI = newBaseTokenURI;
    }

    /**
     * @dev Mint the specified MEGAMI token and transfer it to the specified address.
     * @param _tokenId The token ID being minted.
     * @param _address Receiver's address of the minted token.
     */
    function mint(uint256 _tokenId, address _address) 
        external 
        override 
        onlyOwnerORSalesContract nonReentrant 
    { 
        require(_tokenId >= START_TOKEN_ID && _tokenId < START_TOKEN_ID + MAX_SUPPLY, "invalid token id");
        
        unchecked { ++totalSupply; }

        _safeMint(_address, _tokenId);
    }

    /**
     * @dev Set the royalty recipient.
     * @param newDefaultRoyaltiesReceipientAddress The address of the new royalty receipient.
     */
    function setDefaultRoyaltiesReceipientAddress(address payable newDefaultRoyaltiesReceipientAddress) external onlyOwner {
        require(newDefaultRoyaltiesReceipientAddress != address(0), "invalid address");
        defaultRoyaltiesReceipientAddress = newDefaultRoyaltiesReceipientAddress;
    }

    /**
     * @dev Set the percentage basis points of the loyalty.
     * @param newDefaultPercentageBasisPoints The new percentagy basis points of the loyalty.
     */
    function setDefaultPercentageBasisPoints(uint96 newDefaultPercentageBasisPoints) external onlyOwner {
        require(newDefaultPercentageBasisPoints <= MAX_ROYALTY_BASIS_POINTS, "must be less than or equal to 15%");
        defaultPercentageBasisPoints = newDefaultPercentageBasisPoints;
    }

    /**
     * @dev Return royality information for Rarible.
     */
    function getRaribleV2Royalties(uint256) external view override returns (LibPart.Part[] memory) {
        LibPart.Part[] memory _royalties = new LibPart.Part[](1);
        _royalties[0].value = defaultPercentageBasisPoints;
        _royalties[0].account = defaultRoyaltiesReceipientAddress;
        return _royalties;
    }

    /**
     * @dev Return royality information in EIP-2981 standard.
     * @param _salePrice The sale price of the token that royality is being calculated.
     */
    function royaltyInfo(uint256, uint256 _salePrice) external view returns (address receiver, uint256 royaltyAmount) {
        return (defaultRoyaltiesReceipientAddress, (_salePrice * defaultPercentageBasisPoints) / HUNDRED_PERCENT_IN_BASIS_POINTS);
    }
     
    /**
     * @dev Set the address of the fund manager contract.
     * @param contractAddr Address of the contract managing funds.
     */
    function setFundManagerContract(address contractAddr)
        external
        onlyOwner
    {
        require(contractAddr != address(0), "invalid address");
        fundManager = contractAddr;
    } 

    /**
     * @dev Return the address of the fund manager contarct.
     */
    function getFundManagerContract() external view returns (address) {
        return fundManager;
    }

    /**
     * @dev Allow owner to send funds directly to recipient. This is for emergency purpose and use moveFundToManager for regular withdraw.
     * @param recipient The address of the recipinet.
     */
    function emergencyWithdraw(address recipient) external onlyOwner {
        require(recipient != address(0), "recipient shouldn't be 0");

        (bool sent, ) = recipient.call{value: address(this).balance}("");
        require(sent, "failed to withdraw");
    }

    /**
     * @dev Move all of funds to the fund manager contract.
     */
    function moveFundToManager() external onlyOwner {
        require(fundManager != address(0), "fundManager shouldn't be 0");

        (bool sent, ) = fundManager.call{value: address(this).balance}("");
        require(sent, "failed to move fund to FundManager contract");
    }

    /**
     * @dev Return tokenURI for the specified token ID.
     * @param tokenId The token ID the token URI is returned for.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
        return string(abi.encodePacked(baseTokenURI, tokenId.toString(), ".json"));
    }

    /**
     * @dev ERC20s should not be sent to this contract, but if someone does, it's nice to be able to recover them.
     *      Copied from ForgottenRunesWarriorsGuild. Thank you dotta ;)
     * @param token IERC20 the token address
     * @param amount uint256 the amount to send
     */
    function forwardERC20s(IERC20 token, uint256 amount) public onlyOwner {
        token.transfer(msg.sender, amount);
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) 
        public 
        view 
        virtual 
        override(IERC165, ERC721) 
        returns (bool) 
    {
        if (interfaceId == LibRoyaltiesV2._INTERFACE_ID_ROYALTIES) {
            return true;
        }
        if (interfaceId == type(IERC2981).interfaceId) {
            return true;
        }
        return super.supportsInterface(interfaceId);
    }
    
    /**
     * @dev Do nothing for disable renouncing ownership.
     */ 
    function renounceOwnership() public override onlyOwner {}     
}

File 2 of 18 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 18 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

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

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

File 4 of 18 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 5 of 18 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

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

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

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

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

File 6 of 18 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);
}

File 7 of 18 : LibPart.sol
// SPDX-License-Identifier: MIT 
pragma solidity ^0.8.7;

library LibPart { 
    bytes32 public constant TYPE_HASH = keccak256("Part(address account,uint96 value)");

    struct Part { 
        address payable account;
        uint96 value; 
    }

    function hash(Part memory part) internal pure returns (bytes32){ 
        return keccak256(abi.encode(TYPE_HASH, part.account,  part.value));
    }
}

File 8 of 18 : LibRoyaltiesV2.sol
// SPDX-License-Identifier: MIT  
pragma solidity ^0.8.7;

library LibRoyaltiesV2 {
    /*
    * bytes4(keccak256('getRoyalties(LibAsset.AssetType)')) == 0xcad96cca
    */
    bytes4 constant _INTERFACE_ID_ROYALTIES = 0xcad96cca;
}

File 9 of 18 : RoyaltiesV2.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

import "./LibPart.sol";

interface RoyaltiesV2 {
    event RoyaltiesSet(uint256 tokenId, LibPart.Part[] royalties);
    
    function getRaribleV2Royalties(uint256 id) external view returns (LibPart.Part[] memory);
}

File 10 of 18 : IMEGAMI.sol
// SPDX-License-Identifier: MIT

/// @title Interface for MEGAMI ERC721 token

pragma solidity ^0.8.7;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";

interface IMEGAMI is IERC721 {
    function mint(uint256 _tokenId, address _address) external;
}

File 11 of 18 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

File 13 of 18 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 14 of 18 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 17 of 18 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"fundManagerContractAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"components":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"indexed":false,"internalType":"struct LibPart.Part[]","name":"royalties","type":"tuple[]"}],"name":"RoyaltiesSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"forwardERC20s","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getFundManagerContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getRaribleV2Royalties","outputs":[{"components":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"internalType":"struct LibPart.Part[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSalesContract","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"_tokenId","type":"uint256"},{"internalType":"address","name":"_address","type":"address"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"moveFundToManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseTokenURI","type":"string"}],"name":"setBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint96","name":"newDefaultPercentageBasisPoints","type":"uint96"}],"name":"setDefaultPercentageBasisPoints","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"newDefaultRoyaltiesReceipientAddress","type":"address"}],"name":"setDefaultRoyaltiesReceipientAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddr","type":"address"}],"name":"setFundManagerContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newSalesContractAddr","type":"address"}],"name":"setSalesContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

6080604052600060085560405180606001604052806036815260200162004bd460369139600990805190602001906200003a929190620002e2565b5061012c600a60146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055503480156200007b57600080fd5b5060405162004c0a38038062004c0a8339818101604052810190620000a19190620003a9565b6040518060400160405280600681526020017f4d4547414d4900000000000000000000000000000000000000000000000000008152506040518060400160405280600681526020017f4d4547414d490000000000000000000000000000000000000000000000000000815250816000908051906020019062000125929190620002e2565b5080600190805190602001906200013e929190620002e2565b50505062000161620001556200021460201b60201c565b6200021c60201b60201c565b600160078190555080600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505062000493565b600033905090565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620002f0906200040f565b90600052602060002090601f01602090048101928262000314576000855562000360565b82601f106200032f57805160ff191683800117855562000360565b8280016001018555821562000360579182015b828111156200035f57825182559160200191906001019062000342565b5b5090506200036f919062000373565b5090565b5b808211156200038e57600081600090555060010162000374565b5090565b600081519050620003a38162000479565b92915050565b600060208284031215620003c257620003c162000474565b5b6000620003d28482850162000392565b91505092915050565b6000620003e882620003ef565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600060028204905060018216806200042857607f821691505b602082108114156200043f576200043e62000445565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600080fd5b6200048481620003db565b81146200049057600080fd5b50565b61473180620004a36000396000f3fe6080604052600436106101d15760003560e01c80638cffd16a116100f7578063b04ff13011610095578063cd5a846b11610064578063cd5a846b1461067a578063e985e9c5146106a5578063ed00c02d146106e2578063f2fde38b1461070b576101d8565b8063b04ff130146105c0578063b88d4fde146105d7578063c87b56dd14610600578063cad96cca1461063d576101d8565b806395d89b41116100d157806395d89b411461051a5780639727151a146105455780639b5719a61461056e578063a22cb46514610597576101d8565b80638cffd16a1461049d5780638da5cb5b146104c657806394bf804d146104f1576101d8565b80632a55205a1161016f5780636352211e1161013e5780636352211e146103e35780636ff1c9bc1461042057806370a0823114610449578063715018a614610486576101d8565b80632a55205a1461032857806330176e13146103665780633ca1e46d1461038f57806342842e0e146103ba576101d8565b8063095ea7b3116101ab578063095ea7b31461028257806318160ddd146102ab5780631ff5b441146102d657806323b872dd146102ff576101d8565b806301ffc9a7146101dd57806306fdde031461021a578063081812fc14610245576101d8565b366101d857005b600080fd5b3480156101e957600080fd5b5061020460048036038101906101ff9190612f11565b610734565b604051610211919061378b565b60405180910390f35b34801561022657600080fd5b5061022f61080c565b60405161023c91906137a6565b60405180910390f35b34801561025157600080fd5b5061026c60048036038101906102679190612ff8565b61089e565b60405161027991906136d9565b60405180910390f35b34801561028e57600080fd5b506102a960048036038101906102a49190612ea4565b610923565b005b3480156102b757600080fd5b506102c0610a3b565b6040516102cd9190613ae8565b60405180910390f35b3480156102e257600080fd5b506102fd60048036038101906102f89190612cf4565b610a41565b005b34801561030b57600080fd5b5061032660048036038101906103219190612d8e565b610b71565b005b34801561033457600080fd5b5061034f600480360381019061034a9190613065565b610bd1565b60405161035d929190613740565b60405180910390f35b34801561037257600080fd5b5061038d60048036038101906103889190612fab565b610c43565b005b34801561039b57600080fd5b506103a4610cd5565b6040516103b191906136d9565b60405180910390f35b3480156103c657600080fd5b506103e160048036038101906103dc9190612d8e565b610cff565b005b3480156103ef57600080fd5b5061040a60048036038101906104059190612ff8565b610d1f565b60405161041791906136d9565b60405180910390f35b34801561042c57600080fd5b5061044760048036038101906104429190612cf4565b610dd1565b005b34801561045557600080fd5b50610470600480360381019061046b9190612cf4565b610f6d565b60405161047d9190613ae8565b60405180910390f35b34801561049257600080fd5b5061049b611025565b005b3480156104a957600080fd5b506104c460048036038101906104bf9190612d21565b6110a3565b005b3480156104d257600080fd5b506104db6111d3565b6040516104e891906136d9565b60405180910390f35b3480156104fd57600080fd5b5061051860048036038101906105139190613025565b6111fd565b005b34801561052657600080fd5b5061052f6113a9565b60405161053c91906137a6565b60405180910390f35b34801561055157600080fd5b5061056c60048036038101906105679190612f6b565b61143b565b005b34801561057a57600080fd5b5061059560048036038101906105909190612cf4565b611549565b005b3480156105a357600080fd5b506105be60048036038101906105b99190612e64565b611609565b005b3480156105cc57600080fd5b506105d561161f565b005b3480156105e357600080fd5b506105fe60048036038101906105f99190612de1565b6117fe565b005b34801561060c57600080fd5b5061062760048036038101906106229190612ff8565b611860565b60405161063491906137a6565b60405180910390f35b34801561064957600080fd5b50610664600480360381019061065f9190612ff8565b6118dc565b6040516106719190613769565b60405180910390f35b34801561068657600080fd5b5061068f611a12565b60405161069c91906136d9565b60405180910390f35b3480156106b157600080fd5b506106cc60048036038101906106c79190612d4e565b611a3c565b6040516106d9919061378b565b60405180910390f35b3480156106ee57600080fd5b50610709600480360381019061070491906130a5565b611ad0565b005b34801561071757600080fd5b50610732600480360381019061072d9190612cf4565b611bd3565b005b600063cad96cca60e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916141561078c5760019050610807565b7f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614156107fb5760019050610807565b61080482611ccb565b90505b919050565b60606000805461081b90613dfc565b80601f016020809104026020016040519081016040528092919081815260200182805461084790613dfc565b80156108945780601f1061086957610100808354040283529160200191610894565b820191906000526020600020905b81548152906001019060200180831161087757829003601f168201915b5050505050905090565b60006108a982611dad565b6108e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108df906139a8565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061092e82610d1f565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561099f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161099690613a48565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166109be611e19565b73ffffffffffffffffffffffffffffffffffffffff1614806109ed57506109ec816109e7611e19565b611a3c565b5b610a2c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a23906138e8565b60405180910390fd5b610a368383611e21565b505050565b60085481565b610a49611e19565b73ffffffffffffffffffffffffffffffffffffffff16610a676111d3565b73ffffffffffffffffffffffffffffffffffffffff1614610abd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ab4906139c8565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610b2d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b2490613948565b60405180910390fd5b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610b82610b7c611e19565b82611eda565b610bc1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bb890613a68565b60405180910390fd5b610bcc838383611fb8565b505050565b600080600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16612710600a60149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff1685610c2e9190613c7c565b610c389190613c4b565b915091509250929050565b610c4b611e19565b73ffffffffffffffffffffffffffffffffffffffff16610c696111d3565b73ffffffffffffffffffffffffffffffffffffffff1614610cbf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cb6906139c8565b60405180910390fd5b818160099190610cd0929190612a90565b505050565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610d1a838383604051806020016040528060008152506117fe565b505050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610dc8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dbf90613928565b60405180910390fd5b80915050919050565b610dd9611e19565b73ffffffffffffffffffffffffffffffffffffffff16610df76111d3565b73ffffffffffffffffffffffffffffffffffffffff1614610e4d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e44906139c8565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610ebd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb490613ac8565b60405180910390fd5b60008173ffffffffffffffffffffffffffffffffffffffff1647604051610ee3906136c4565b60006040518083038185875af1925050503d8060008114610f20576040519150601f19603f3d011682016040523d82523d6000602084013e610f25565b606091505b5050905080610f69576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6090613a08565b60405180910390fd5b5050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610fde576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fd590613908565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61102d611e19565b73ffffffffffffffffffffffffffffffffffffffff1661104b6111d3565b73ffffffffffffffffffffffffffffffffffffffff16146110a1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611098906139c8565b60405180910390fd5b565b6110ab611e19565b73ffffffffffffffffffffffffffffffffffffffff166110c96111d3565b73ffffffffffffffffffffffffffffffffffffffff161461111f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611116906139c8565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561118f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161118690613948565b60405180910390fd5b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611205611e19565b73ffffffffffffffffffffffffffffffffffffffff16600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614806112995750611263611e19565b73ffffffffffffffffffffffffffffffffffffffff166112816111d3565b73ffffffffffffffffffffffffffffffffffffffff16145b6112d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112cf90613a28565b60405180910390fd5b6002600754141561131e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131590613a88565b60405180910390fd5b600260078190555060018210158015611344575061271060016113419190613bf5565b82105b611383576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161137a90613888565b60405180910390fd5b6008600081546001019190508190555061139d818361221f565b60016007819055505050565b6060600180546113b890613dfc565b80601f01602080910402602001604051908101604052809291908181526020018280546113e490613dfc565b80156114315780601f1061140657610100808354040283529160200191611431565b820191906000526020600020905b81548152906001019060200180831161141457829003601f168201915b5050505050905090565b611443611e19565b73ffffffffffffffffffffffffffffffffffffffff166114616111d3565b73ffffffffffffffffffffffffffffffffffffffff16146114b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ae906139c8565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b81526004016114f2929190613740565b602060405180830381600087803b15801561150c57600080fd5b505af1158015611520573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115449190612ee4565b505050565b611551611e19565b73ffffffffffffffffffffffffffffffffffffffff1661156f6111d3565b73ffffffffffffffffffffffffffffffffffffffff16146115c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115bc906139c8565b60405180910390fd5b80600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61161b611614611e19565b838361223d565b5050565b611627611e19565b73ffffffffffffffffffffffffffffffffffffffff166116456111d3565b73ffffffffffffffffffffffffffffffffffffffff161461169b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611692906139c8565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561172d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161172490613968565b60405180910390fd5b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1647604051611775906136c4565b60006040518083038185875af1925050503d80600081146117b2576040519150601f19603f3d011682016040523d82523d6000602084013e6117b7565b606091505b50509050806117fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117f290613aa8565b60405180910390fd5b50565b61180f611809611e19565b83611eda565b61184e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161184590613a68565b60405180910390fd5b61185a848484846123aa565b50505050565b606061186b82611dad565b6118aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118a1906139e8565b60405180910390fd5b60096118b583612406565b6040516020016118c6929190613695565b6040516020818303038152906040529050919050565b60606000600167ffffffffffffffff8111156118fb576118fa613f95565b5b60405190808252806020026020018201604052801561193457816020015b611921612b16565b8152602001906001900390816119195790505b509050600a60149054906101000a90046bffffffffffffffffffffffff168160008151811061196657611965613f66565b5b6020026020010151602001906bffffffffffffffffffffffff1690816bffffffffffffffffffffffff1681525050600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16816000815181106119cb576119ca613f66565b5b60200260200101516000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505080915050919050565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611ad8611e19565b73ffffffffffffffffffffffffffffffffffffffff16611af66111d3565b73ffffffffffffffffffffffffffffffffffffffff1614611b4c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b43906139c8565b60405180910390fd5b6105dc816bffffffffffffffffffffffff161115611b9f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b96906138c8565b60405180910390fd5b80600a60146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff16021790555050565b611bdb611e19565b73ffffffffffffffffffffffffffffffffffffffff16611bf96111d3565b73ffffffffffffffffffffffffffffffffffffffff1614611c4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c46906139c8565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611cbf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cb6906137e8565b60405180910390fd5b611cc881612567565b50565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611d9657507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611da65750611da58261262d565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611e9483610d1f565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611ee582611dad565b611f24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f1b906138a8565b60405180910390fd5b6000611f2f83610d1f565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611f715750611f708185611a3c565b5b80611faf57508373ffffffffffffffffffffffffffffffffffffffff16611f978461089e565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611fd882610d1f565b73ffffffffffffffffffffffffffffffffffffffff161461202e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161202590613808565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561209e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161209590613848565b60405180910390fd5b6120a9838383612697565b6120b4600082611e21565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546121049190613cd6565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461215b9190613bf5565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461221a83838361269c565b505050565b6122398282604051806020016040528060008152506126a1565b5050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156122ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122a390613868565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161239d919061378b565b60405180910390a3505050565b6123b5848484611fb8565b6123c1848484846126fc565b612400576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123f7906137c8565b60405180910390fd5b50505050565b6060600082141561244e576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612562565b600082905060005b6000821461248057808061246990613e5f565b915050600a826124799190613c4b565b9150612456565b60008167ffffffffffffffff81111561249c5761249b613f95565b5b6040519080825280601f01601f1916602001820160405280156124ce5781602001600182028036833780820191505090505b5090505b6000851461255b576001826124e79190613cd6565b9150600a856124f69190613ea8565b60306125029190613bf5565b60f81b81838151811061251857612517613f66565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856125549190613c4b565b94506124d2565b8093505050505b919050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b505050565b505050565b6126ab8383612893565b6126b860008484846126fc565b6126f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126ee906137c8565b60405180910390fd5b505050565b600061271d8473ffffffffffffffffffffffffffffffffffffffff16612a6d565b15612886578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612746611e19565b8786866040518563ffffffff1660e01b815260040161276894939291906136f4565b602060405180830381600087803b15801561278257600080fd5b505af19250505080156127b357506040513d601f19601f820116820180604052508101906127b09190612f3e565b60015b612836573d80600081146127e3576040519150601f19603f3d011682016040523d82523d6000602084013e6127e8565b606091505b5060008151141561282e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612825906137c8565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061288b565b600190505b949350505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612903576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128fa90613988565b60405180910390fd5b61290c81611dad565b1561294c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161294390613828565b60405180910390fd5b61295860008383612697565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546129a89190613bf5565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612a696000838361269c565b5050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b828054612a9c90613dfc565b90600052602060002090601f016020900481019282612abe5760008555612b05565b82601f10612ad757803560ff1916838001178555612b05565b82800160010185558215612b05579182015b82811115612b04578235825591602001919060010190612ae9565b5b509050612b129190612b54565b5090565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff16815260200160006bffffffffffffffffffffffff1681525090565b5b80821115612b6d576000816000905550600101612b55565b5090565b6000612b84612b7f84613b28565b613b03565b905082815260208101848484011115612ba057612b9f613fd3565b5b612bab848285613dba565b509392505050565b600081359050612bc28161465a565b92915050565b600081359050612bd781614671565b92915050565b600081359050612bec81614688565b92915050565b600081519050612c0181614688565b92915050565b600081359050612c168161469f565b92915050565b600081519050612c2b8161469f565b92915050565b600082601f830112612c4657612c45613fc9565b5b8135612c56848260208601612b71565b91505092915050565b600081359050612c6e816146b6565b92915050565b60008083601f840112612c8a57612c89613fc9565b5b8235905067ffffffffffffffff811115612ca757612ca6613fc4565b5b602083019150836001820283011115612cc357612cc2613fce565b5b9250929050565b600081359050612cd9816146cd565b92915050565b600081359050612cee816146e4565b92915050565b600060208284031215612d0a57612d09613fdd565b5b6000612d1884828501612bb3565b91505092915050565b600060208284031215612d3757612d36613fdd565b5b6000612d4584828501612bc8565b91505092915050565b60008060408385031215612d6557612d64613fdd565b5b6000612d7385828601612bb3565b9250506020612d8485828601612bb3565b9150509250929050565b600080600060608486031215612da757612da6613fdd565b5b6000612db586828701612bb3565b9350506020612dc686828701612bb3565b9250506040612dd786828701612cca565b9150509250925092565b60008060008060808587031215612dfb57612dfa613fdd565b5b6000612e0987828801612bb3565b9450506020612e1a87828801612bb3565b9350506040612e2b87828801612cca565b925050606085013567ffffffffffffffff811115612e4c57612e4b613fd8565b5b612e5887828801612c31565b91505092959194509250565b60008060408385031215612e7b57612e7a613fdd565b5b6000612e8985828601612bb3565b9250506020612e9a85828601612bdd565b9150509250929050565b60008060408385031215612ebb57612eba613fdd565b5b6000612ec985828601612bb3565b9250506020612eda85828601612cca565b9150509250929050565b600060208284031215612efa57612ef9613fdd565b5b6000612f0884828501612bf2565b91505092915050565b600060208284031215612f2757612f26613fdd565b5b6000612f3584828501612c07565b91505092915050565b600060208284031215612f5457612f53613fdd565b5b6000612f6284828501612c1c565b91505092915050565b60008060408385031215612f8257612f81613fdd565b5b6000612f9085828601612c5f565b9250506020612fa185828601612cca565b9150509250929050565b60008060208385031215612fc257612fc1613fdd565b5b600083013567ffffffffffffffff811115612fe057612fdf613fd8565b5b612fec85828601612c74565b92509250509250929050565b60006020828403121561300e5761300d613fdd565b5b600061301c84828501612cca565b91505092915050565b6000806040838503121561303c5761303b613fdd565b5b600061304a85828601612cca565b925050602061305b85828601612bb3565b9150509250929050565b6000806040838503121561307c5761307b613fdd565b5b600061308a85828601612cca565b925050602061309b85828601612cca565b9150509250929050565b6000602082840312156130bb576130ba613fdd565b5b60006130c984828501612cdf565b91505092915050565b60006130de8383613648565b60408301905092915050565b6130f381613d1c565b82525050565b61310281613d0a565b82525050565b600061311382613b7e565b61311d8185613bac565b935061312883613b59565b8060005b8381101561315957815161314088826130d2565b975061314b83613b9f565b92505060018101905061312c565b5085935050505092915050565b61316f81613d2e565b82525050565b600061318082613b89565b61318a8185613bbd565b935061319a818560208601613dc9565b6131a381613fe2565b840191505092915050565b60006131b982613b94565b6131c38185613bd9565b93506131d3818560208601613dc9565b6131dc81613fe2565b840191505092915050565b60006131f282613b94565b6131fc8185613bea565b935061320c818560208601613dc9565b80840191505092915050565b6000815461322581613dfc565b61322f8186613bea565b9450600182166000811461324a576001811461325b5761328e565b60ff1983168652818601935061328e565b61326485613b69565b60005b8381101561328657815481890152600182019150602081019050613267565b838801955050505b50505092915050565b60006132a4603283613bd9565b91506132af82613ff3565b604082019050919050565b60006132c7602683613bd9565b91506132d282614042565b604082019050919050565b60006132ea602583613bd9565b91506132f582614091565b604082019050919050565b600061330d601c83613bd9565b9150613318826140e0565b602082019050919050565b6000613330602483613bd9565b915061333b82614109565b604082019050919050565b6000613353601983613bd9565b915061335e82614158565b602082019050919050565b6000613376601083613bd9565b915061338182614181565b602082019050919050565b6000613399602c83613bd9565b91506133a4826141aa565b604082019050919050565b60006133bc602183613bd9565b91506133c7826141f9565b604082019050919050565b60006133df603883613bd9565b91506133ea82614248565b604082019050919050565b6000613402602a83613bd9565b915061340d82614297565b604082019050919050565b6000613425602983613bd9565b9150613430826142e6565b604082019050919050565b6000613448600f83613bd9565b915061345382614335565b602082019050919050565b600061346b601a83613bd9565b91506134768261435e565b602082019050919050565b600061348e602083613bd9565b915061349982614387565b602082019050919050565b60006134b1602c83613bd9565b91506134bc826143b0565b604082019050919050565b60006134d4600583613bea565b91506134df826143ff565b600582019050919050565b60006134f7602083613bd9565b915061350282614428565b602082019050919050565b600061351a602f83613bd9565b915061352582614451565b604082019050919050565b600061353d601283613bd9565b9150613548826144a0565b602082019050919050565b6000613560603183613bd9565b915061356b826144c9565b604082019050919050565b6000613583602183613bd9565b915061358e82614518565b604082019050919050565b60006135a6600083613bce565b91506135b182614567565b600082019050919050565b60006135c9603183613bd9565b91506135d48261456a565b604082019050919050565b60006135ec601f83613bd9565b91506135f7826145b9565b602082019050919050565b600061360f602b83613bd9565b915061361a826145e2565b604082019050919050565b6000613632601883613bd9565b915061363d82614631565b602082019050919050565b60408201600082015161365e60008501826130ea565b5060208201516136716020850182613686565b50505050565b61368081613d98565b82525050565b61368f81613da2565b82525050565b60006136a18285613218565b91506136ad82846131e7565b91506136b8826134c7565b91508190509392505050565b60006136cf82613599565b9150819050919050565b60006020820190506136ee60008301846130f9565b92915050565b600060808201905061370960008301876130f9565b61371660208301866130f9565b6137236040830185613677565b81810360608301526137358184613175565b905095945050505050565b600060408201905061375560008301856130f9565b6137626020830184613677565b9392505050565b600060208201905081810360008301526137838184613108565b905092915050565b60006020820190506137a06000830184613166565b92915050565b600060208201905081810360008301526137c081846131ae565b905092915050565b600060208201905081810360008301526137e181613297565b9050919050565b60006020820190508181036000830152613801816132ba565b9050919050565b60006020820190508181036000830152613821816132dd565b9050919050565b6000602082019050818103600083015261384181613300565b9050919050565b6000602082019050818103600083015261386181613323565b9050919050565b6000602082019050818103600083015261388181613346565b9050919050565b600060208201905081810360008301526138a181613369565b9050919050565b600060208201905081810360008301526138c18161338c565b9050919050565b600060208201905081810360008301526138e1816133af565b9050919050565b60006020820190508181036000830152613901816133d2565b9050919050565b60006020820190508181036000830152613921816133f5565b9050919050565b6000602082019050818103600083015261394181613418565b9050919050565b600060208201905081810360008301526139618161343b565b9050919050565b600060208201905081810360008301526139818161345e565b9050919050565b600060208201905081810360008301526139a181613481565b9050919050565b600060208201905081810360008301526139c1816134a4565b9050919050565b600060208201905081810360008301526139e1816134ea565b9050919050565b60006020820190508181036000830152613a018161350d565b9050919050565b60006020820190508181036000830152613a2181613530565b9050919050565b60006020820190508181036000830152613a4181613553565b9050919050565b60006020820190508181036000830152613a6181613576565b9050919050565b60006020820190508181036000830152613a81816135bc565b9050919050565b60006020820190508181036000830152613aa1816135df565b9050919050565b60006020820190508181036000830152613ac181613602565b9050919050565b60006020820190508181036000830152613ae181613625565b9050919050565b6000602082019050613afd6000830184613677565b92915050565b6000613b0d613b1e565b9050613b198282613e2e565b919050565b6000604051905090565b600067ffffffffffffffff821115613b4357613b42613f95565b5b613b4c82613fe2565b9050602081019050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000613c0082613d98565b9150613c0b83613d98565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613c4057613c3f613ed9565b5b828201905092915050565b6000613c5682613d98565b9150613c6183613d98565b925082613c7157613c70613f08565b5b828204905092915050565b6000613c8782613d98565b9150613c9283613d98565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613ccb57613cca613ed9565b5b828202905092915050565b6000613ce182613d98565b9150613cec83613d98565b925082821015613cff57613cfe613ed9565b5b828203905092915050565b6000613d1582613d78565b9050919050565b6000613d2782613d78565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6000613d7182613d0a565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006bffffffffffffffffffffffff82169050919050565b82818337600083830152505050565b60005b83811015613de7578082015181840152602081019050613dcc565b83811115613df6576000848401525b50505050565b60006002820490506001821680613e1457607f821691505b60208210811415613e2857613e27613f37565b5b50919050565b613e3782613fe2565b810181811067ffffffffffffffff82111715613e5657613e55613f95565b5b80604052505050565b6000613e6a82613d98565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613e9d57613e9c613ed9565b5b600182019050919050565b6000613eb382613d98565b9150613ebe83613d98565b925082613ece57613ecd613f08565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f696e76616c696420746f6b656e20696400000000000000000000000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f6d757374206265206c657373207468616e206f7220657175616c20746f20313560008201527f2500000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f696e76616c696420616464726573730000000000000000000000000000000000600082015250565b7f66756e644d616e616765722073686f756c646e27742062652030000000000000600082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f6661696c656420746f2077697468647261770000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865204f776e657260008201527f206f722053616c6573436f6e7472616374000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b50565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b7f6661696c656420746f206d6f76652066756e6420746f2046756e644d616e616760008201527f657220636f6e7472616374000000000000000000000000000000000000000000602082015250565b7f726563697069656e742073686f756c646e277420626520300000000000000000600082015250565b61466381613d0a565b811461466e57600080fd5b50565b61467a81613d1c565b811461468557600080fd5b50565b61469181613d2e565b811461469c57600080fd5b50565b6146a881613d3a565b81146146b357600080fd5b50565b6146bf81613d66565b81146146ca57600080fd5b50565b6146d681613d98565b81146146e157600080fd5b50565b6146ed81613da2565b81146146f857600080fd5b5056fea264697066735822122015b93648dc6c65f7692a27f269b3e3e208415234457c360d87ceeefe0123acca64736f6c63430008070033697066733a2f2f516d514d647436346947614346523152434e3979524c326546625765697a50774564564b626648396153617946742f000000000000000000000000de7907b00818797868ec7c11707924c10e341c13

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

000000000000000000000000de7907b00818797868ec7c11707924c10e341c13

-----Decoded View---------------
Arg [0] : fundManagerContractAddress (address): 0xdE7907B00818797868EC7c11707924C10e341c13

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000de7907b00818797868ec7c11707924c10e341c13


Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.