Contract 0x4eededfe89dad70ab8cbf70e4dd140ff8e6e8ce5

 

Contract Overview

Mobox:MOMO Token
Balance:
0 BNB

BNB Value:
$0.00

Token:
Txn Hash
Block
From
To
Value [Txn Fee]
0x5d96880768580ca88466f08e0833640c1c0baafbaacbc15a010a9144416ed50384261772021-06-19 7:14:2011 hrs 26 mins ago0xc22a75bc169a1cd984768f4519bcf2a29e25fc58 IN  Mobox:MOMO Token0 BNB0.00024826
0x4321adce85ee1288c5044ed6fbd54084523342c2fae8c542896b16a68925377b84260362021-06-19 7:07:1711 hrs 33 mins ago0xc22a75bc169a1cd984768f4519bcf2a29e25fc58 IN  Mobox:MOMO Token0 BNB0.00032326
0xa464e388c0f75382795b5a1908ec58a19cd7475094f79e0f2bb41c38f40b956184157532021-06-18 22:29:3620 hrs 11 mins ago0xb63402696c6efab7d773ab1891dee49aaa4ef5ee IN  Mobox:MOMO Token0 BNB0.000238605
0xb25e249520a09ba9f1dddde796fe75b44201daa32a3f5ca2475951e25f5515a784018232021-06-18 10:46:231 day 7 hrs ago0xbe0030b71e9eded2b417f2a459c0ce24a4e8089a IN  Mobox:MOMO Token0 BNB0.000238605
0xa4f2d768a3f74825241c20a978d38bdeb36de236da54e6b8eb71d4129736c9d883971052021-06-18 6:48:271 day 11 hrs ago0xe3ef4f129fa6bff0b7d83e4e7806410f075bd706 IN  Mobox:MOMO Token0 BNB0.000238605
0x331a3a90e95dd0662b2c075839e0101e5c5c29734bcaf2ee76f8ef7cee03ba1483775522021-06-17 14:22:272 days 4 hrs ago0x16c49b7b0221b507f8ca0dfdd5da1cfd49c17a9d IN  Mobox:MOMO Token0 BNB0.000238605
0x4f0e7125336ab4682e4f75295f91ca0b894fb08c321a37a387f2c8f1145d2f7c83569182021-06-16 21:01:102 days 21 hrs ago0xb0abc4af0b7186bb1b467215b184a2c8cfac9861 IN  Mobox:MOMO Token0 BNB0.000238605
0xdca0ff7f09a34940626c6de8897a361a70199a8d479ad3f67071d97730830bbb83489422021-06-16 14:19:323 days 4 hrs ago0x564430d29a89a1b18188e163e73471e937805b79 IN  Mobox:MOMO Token0 BNB0.00047721
0x4dc7583a25da69defad449bf61365b092935e6a7f0fedf6efefa03b10b7484ad83486872021-06-16 14:06:433 days 4 hrs ago0x564430d29a89a1b18188e163e73471e937805b79 IN  Mobox:MOMO Token0 BNB0.00012292
0x35513efdfac94e5554c7dcb3c2503bfd13d0a6c820a2b6448d4229b0d9f3ce3183465022021-06-16 12:17:263 days 6 hrs ago0xd23900326eddaaa8678aa6cbcd8924ccd36de6ba IN  Mobox:MOMO Token0 BNB0.000238605
0x3f6a387248ab90536f2eb2448db98d7c6ddcdc401b5315e914e743d5c366a97a83460532021-06-16 11:54:593 days 6 hrs ago0x6f01a1f25d682675d4143f179fdf7b8ad5530b08 IN  Mobox:MOMO Token0 BNB0.000238605
0x06bd8bab78b8f0dcaa7db6c92ac30fd531a7e94dbae638d47257022f9dd6176183439582021-06-16 10:09:273 days 8 hrs ago0x40423cc99e9ecef9455c845dcb883f16dbc3db08 IN  Mobox:MOMO Token0 BNB0.00047721
0xfe0f7d50717dbaa26518f338672dfb50723716119e746e66c717c8a73ff6919582723842021-06-13 21:42:235 days 20 hrs ago0xd472064b25e34be1fef5a304c8e411ec730e39a7 IN  Mobox:MOMO Token0 BNB0.000238605
0xd5d7fd7d7f3edee638dad64cd66533642e785bf332d428be526b12e37441c37082541382021-06-13 6:20:356 days 12 hrs ago0xc3b0121a0e0fe2a814ccdcda0ba1065666f79413 IN  Mobox:MOMO Token0 BNB0.000238605
0xdd08a07e0ffc270b99f79fbc70ba29ded2e6f0c0cd84f0a6a641655790878ee382340892021-06-12 13:30:567 days 5 hrs ago0x8c480c50fa85468bbf8576ae8e09336532916414 IN  Mobox:MOMO Token0 BNB0.000238605
0x56d4a899ef00f7b605563332cc2fb9dcf79ea1e5da0c3202c73ae1a3feee18c782138362021-06-11 20:35:537 days 22 hrs ago0x42ac93a717e0c675a025fc6d9a8b3ecda3352fc2 IN  Mobox:MOMO Token0 BNB0.000238605
0x2da0b7b557c94f5f0c88c761660890ce6c832ba5cda99042ad0a2553cd4551f881842682021-06-10 19:52:308 days 22 hrs ago0x328edc22db0ecdb81a54d5f294069930597b3962 IN  Mobox:MOMO Token0 BNB0.00047721
0x8c82149a4ade044451a83bf1e89f7649d550e7afa07fc1160976c28cd411ff9a81842062021-06-10 19:49:248 days 22 hrs ago0x328edc22db0ecdb81a54d5f294069930597b3962 IN  Mobox:MOMO Token0 BNB0.00012292
0x91b8897a12cd100d04fa0eba43a5559f0c299ae2afab62b74eb4be33333c437d81841282021-06-10 19:45:308 days 22 hrs ago0x328edc22db0ecdb81a54d5f294069930597b3962 IN  Mobox:MOMO Token0 BNB0.00012292
0x701fe70830265626d609e7956f6574a1cabeafd1d09bb5ca5c3aab6a6c755b3b81477582021-06-09 13:18:3710 days 5 hrs ago0xf68f08f45d3c375d03181de9caf62aa951538670 IN  Mobox:MOMO Token0 BNB0.000238605
0x8843d49d54b63ebfe42140a653f1a654f9b2798214867d8aa20b40845213911381454942021-06-09 11:24:5210 days 7 hrs ago0x250218c60c5b2b387cd2b5725fd16a57cd9099d0 IN  Mobox:MOMO Token0 BNB0.000238605
0x58f82daf55467ccc44ba9682c4c1a39b4bc60a5f39b733bd6d478633d488b27181445092021-06-09 10:35:3710 days 8 hrs ago0x97ca08d4ca2015545eeb81ca71d1ac719fe4a8f6 IN  Mobox:MOMO Token0 BNB0.00012286
0xef2a233d5524b435f47db2cef5bcb0613c4013f6e43bb39d5000f74d2394056281382612021-06-09 5:22:0910 days 13 hrs ago0x97ca08d4ca2015545eeb81ca71d1ac719fe4a8f6 IN  Mobox:MOMO Token0 BNB0.00047721
0x45566c6313e4ee44764da523d97a8043355a3651892cb5b6800fcd26826c1be481381712021-06-09 5:17:3910 days 13 hrs ago0x97ca08d4ca2015545eeb81ca71d1ac719fe4a8f6 IN  Mobox:MOMO Token0 BNB0.00012286
0xc5bd5b6723f06dd52565a695cf069ea18df952251f6ee820dbd1999514be3f4981380902021-06-09 5:13:3610 days 13 hrs ago0x97ca08d4ca2015545eeb81ca71d1ac719fe4a8f6 IN  Mobox:MOMO Token0 BNB0.00012286
[ Download CSV Export 

OVERVIEW

MOMO is a NFT token used for games in mobox.io platform.

Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x207f19b29feba4703fa8123d3b3772c0ef49f03c9bf9816d7b7629dd9b269cc684292732021-06-19 9:49:138 hrs 51 mins ago Mobox:MOMO Token0x212e0955dda4b206adbe9d49e7c4c599c1d80f4a0.01 BNB
0x207f19b29feba4703fa8123d3b3772c0ef49f03c9bf9816d7b7629dd9b269cc684292732021-06-19 9:49:138 hrs 51 mins ago Mobox:MOMO Token 0x1846c0ab8d09007154066cbb114315e11d94d4e80.04 BNB
0x207f19b29feba4703fa8123d3b3772c0ef49f03c9bf9816d7b7629dd9b269cc684292732021-06-19 9:49:138 hrs 51 mins ago Mobox: Staking Mobox:MOMO Token0.05 BNB
0xa0fe50ff5a66899f7596e843399bf20ecc35822a7593bf47a29bf0c4101c4df684048872021-06-18 13:20:261 day 5 hrs ago Mobox:MOMO Token0x212e0955dda4b206adbe9d49e7c4c599c1d80f4a0.01 BNB
0xa0fe50ff5a66899f7596e843399bf20ecc35822a7593bf47a29bf0c4101c4df684048872021-06-18 13:20:261 day 5 hrs ago Mobox:MOMO Token 0x1846c0ab8d09007154066cbb114315e11d94d4e80.04 BNB
0xa0fe50ff5a66899f7596e843399bf20ecc35822a7593bf47a29bf0c4101c4df684048872021-06-18 13:20:261 day 5 hrs ago Mobox: Staking Mobox:MOMO Token0.05 BNB
0x05c09124ed495f63f8e68585be2a808d528221db87cfc4c7de7b2a64e5e4614d84010662021-06-18 10:08:241 day 8 hrs ago Mobox:MOMO Token0x212e0955dda4b206adbe9d49e7c4c599c1d80f4a0.01 BNB
0x05c09124ed495f63f8e68585be2a808d528221db87cfc4c7de7b2a64e5e4614d84010662021-06-18 10:08:241 day 8 hrs ago Mobox:MOMO Token 0x1846c0ab8d09007154066cbb114315e11d94d4e80.04 BNB
0x05c09124ed495f63f8e68585be2a808d528221db87cfc4c7de7b2a64e5e4614d84010662021-06-18 10:08:241 day 8 hrs ago Mobox: Staking Mobox:MOMO Token0.05 BNB
0xe8cb7dacd919f54390701c9d774e03ff9e0c6763b30434c0dbaaff75671adb9484010552021-06-18 10:07:511 day 8 hrs ago Mobox:MOMO Token0x212e0955dda4b206adbe9d49e7c4c599c1d80f4a0.01 BNB
0xe8cb7dacd919f54390701c9d774e03ff9e0c6763b30434c0dbaaff75671adb9484010552021-06-18 10:07:511 day 8 hrs ago Mobox:MOMO Token 0x1846c0ab8d09007154066cbb114315e11d94d4e80.04 BNB
0xe8cb7dacd919f54390701c9d774e03ff9e0c6763b30434c0dbaaff75671adb9484010552021-06-18 10:07:511 day 8 hrs ago Mobox: Staking Mobox:MOMO Token0.05 BNB
0x41ae64bbe384b1cb46117206ae76407dd1ad5714961fd829e6bb70d67006283183818812021-06-17 18:00:062 days 40 mins ago Mobox:MOMO Token0x212e0955dda4b206adbe9d49e7c4c599c1d80f4a0.01 BNB
0x41ae64bbe384b1cb46117206ae76407dd1ad5714961fd829e6bb70d67006283183818812021-06-17 18:00:062 days 40 mins ago Mobox:MOMO Token 0x1846c0ab8d09007154066cbb114315e11d94d4e80.04 BNB
0x41ae64bbe384b1cb46117206ae76407dd1ad5714961fd829e6bb70d67006283183818812021-06-17 18:00:062 days 40 mins ago Mobox: Staking Mobox:MOMO Token0.05 BNB
0x7bd3c13fe40413822ddb569d2b291842685bd8b7c41b318b97a37d1a5ac94c5983623312021-06-17 1:32:542 days 17 hrs ago Mobox:MOMO Token0x212e0955dda4b206adbe9d49e7c4c599c1d80f4a0.01 BNB
0x7bd3c13fe40413822ddb569d2b291842685bd8b7c41b318b97a37d1a5ac94c5983623312021-06-17 1:32:542 days 17 hrs ago Mobox:MOMO Token 0x1846c0ab8d09007154066cbb114315e11d94d4e80.04 BNB
0x7bd3c13fe40413822ddb569d2b291842685bd8b7c41b318b97a37d1a5ac94c5983623312021-06-17 1:32:542 days 17 hrs ago Mobox: Staking Mobox:MOMO Token0.05 BNB
0x898749fe82105a7a51eda70d4a4078239ba8f25166a090b95af464ff58033d3b83534892021-06-16 18:09:033 days 31 mins ago Mobox:MOMO Token0x212e0955dda4b206adbe9d49e7c4c599c1d80f4a0.01 BNB
0x898749fe82105a7a51eda70d4a4078239ba8f25166a090b95af464ff58033d3b83534892021-06-16 18:09:033 days 31 mins ago Mobox:MOMO Token 0x1846c0ab8d09007154066cbb114315e11d94d4e80.04 BNB
0x898749fe82105a7a51eda70d4a4078239ba8f25166a090b95af464ff58033d3b83534892021-06-16 18:09:033 days 31 mins ago Mobox: Staking Mobox:MOMO Token0.05 BNB
0x0d404b33ce53547a88773defe02ca14d442f5df9d19b2ec6d694170f70e5719583341612021-06-16 1:54:253 days 16 hrs ago Mobox:MOMO Token0x212e0955dda4b206adbe9d49e7c4c599c1d80f4a0.01 BNB
0x0d404b33ce53547a88773defe02ca14d442f5df9d19b2ec6d694170f70e5719583341612021-06-16 1:54:253 days 16 hrs ago Mobox:MOMO Token 0x1846c0ab8d09007154066cbb114315e11d94d4e80.04 BNB
0x0d404b33ce53547a88773defe02ca14d442f5df9d19b2ec6d694170f70e5719583341612021-06-16 1:54:253 days 16 hrs ago Mobox: Staking Mobox:MOMO Token0.05 BNB
0x374f24b7c9d86901dcf354271df884ca42788c05b5ae17bc8ef63074f767bbed82967342021-06-14 18:16:045 days 24 mins ago Mobox:MOMO Token0x212e0955dda4b206adbe9d49e7c4c599c1d80f4a0.01 BNB
[ Download CSV Export 
Loading

Contract Source Code Verified (Similar Match)
Note: This contract matches the deployed ByteCode of the Source Code for Contract 0x970093b4167261985621e6f2dc738d2e78ce6ac2

Contract Name:
MoMoProxy

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at BscScan.com on 2021-04-03
*/

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.6;

/*
 * @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 GSN 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 payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly { codehash := extcodehash(account) }
        return (codehash != accountHash && codehash != 0x0);
    }

    /**
     * @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");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }
}

library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b <= a, "SafeMath: subtraction overflow");
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        // Solidity only automatically asserts when dividing by 0
        require(b > 0, "SafeMath: division by zero");
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b != 0, "SafeMath: modulo by zero");
        return a % b;
    }
}

library SafeMathExt {
    function add128(uint128 a, uint128 b) internal pure returns (uint128) {
        uint128 c = a + b;
        require(c >= a, "uint128: addition overflow");

        return c;
    }

    function sub128(uint128 a, uint128 b) internal pure returns (uint128) {
        require(b <= a, "uint128: subtraction overflow");
        uint128 c = a - b;

        return c;
    }

    function add64(uint64 a, uint64 b) internal pure returns (uint64) {
        uint64 c = a + b;
        require(c >= a, "uint64: addition overflow");

        return c;
    }

    function sub64(uint64 a, uint64 b) internal pure returns (uint64) {
        require(b <= a, "uint64: subtraction overflow");
        uint64 c = a - b;

        return c;
    }

    function safe128(uint256 a) internal pure returns(uint128) {
        require(a < 0x0100000000000000000000000000000000, "uint128: number overflow");
        return uint128(a);
    }

    function safe64(uint256 a) internal pure returns(uint64) {
        require(a < 0x010000000000000000, "uint64: number overflow");
        return uint64(a);
    }

    function safe32(uint256 a) internal pure returns(uint32) {
        require(a < 0x0100000000, "uint32: number overflow");
        return uint32(a);
    }

    function safe16(uint256 a) internal pure returns(uint16) {
        require(a < 0x010000, "uint32: number overflow");
        return uint16(a);
    }
}

library Math {
    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a >= b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow, so we distribute
        return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2);
    }
}


/**
 * @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() internal {
        _owner = _msgSender();
        emit OwnershipTransferred(address(0), _owner);
    }

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

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public {
        require(newOwner != address(0), "newOwner invalid");
        if (_owner != address(0)) {
            require(_msgSender() == _owner, "not owner");
        }
        
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 * From https://github.com/OpenZeppelin/openzeppelin-contracts
 */
interface IERC20 {
  /**
   * @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 `recipient`.
   *
   * Returns a boolean value indicating whether the operation succeeded.
   *
   * Emits a {Transfer} event.
   */
  function transfer(address recipient, 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 `sender` to `recipient` 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 sender,
    address recipient,
    uint256 amount
  ) external returns (bool);

  /**
   * @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);
}

contract ERC20 is IERC20, Context {
    using SafeMath for uint256;

    mapping (address => uint256) internal _balances;
    mapping (address => mapping (address => uint256)) internal _allowances;

    uint256 internal _totalSupply;

    /**
     * @dev Returns the name of the token.
     */
    string public name;

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    string public symbol;

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5,05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is
     * called.
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    uint8  public decimals;

    /**
     * @dev Sets the values for {_name} and {_symbol}, {_decimals}
     *
     * To select a different value for {decimals}, use {_setupDecimals}.
     *
     * All three of these values are immutable: they can only be set once during
     * construction.
     */
    constructor (string memory _name, string memory _symbol, uint8 _decimals) public {
        name = _name;
        symbol = _symbol;
        decimals = _decimals;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() external view override returns(uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address _owner) external view override returns (uint256) {
        return _balances[_owner];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `_to` cannot be the zero address.
     * - the caller must have a balance of at least `_amount`.
     */
    function transfer(address _to, uint256 _amount) external override returns (bool) {
        _transfer(_msgSender(), _to, _amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address _owner, address _spender) external view override returns (uint256) {
        return _allowances[_owner][_spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `_spender` cannot be the zero address.
     */
    function approve(address _spender, uint256 _amount) external override returns (bool) {
        _approve(_msgSender(), _spender, _amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `_from` and `_to` cannot be the zero address.
     * - `_from` must have a balance of at least `_amount`.
     * - the caller must have allowance for `_from`'s tokens of at least
     * `_amount`.
     */
    function transferFrom(address _from, address _to, uint256 _amount) external override returns (bool) {
        require(_from != address(0) && _to != address(0));

        _approve(_from, _msgSender(), _allowances[_from][_msgSender()].sub(_amount));
        _transfer(_from, _to, _amount);
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `_spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `_spender` cannot be the zero address.
     */
    function increaseAllowance(address _spender, uint256 _addVal) external returns (bool) {
        require(_spender != address(0), "approve to 0");

        _approve(_msgSender(), _spender, _allowances[_msgSender()][_spender].add(_addVal));
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `_spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `_spender` cannot be the zero address.
     * - `_spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address _spender, uint256 _subVal) external returns (bool) {
        require(_spender != address(0), "approve to 0");

        _approve(_msgSender(), _spender, _allowances[_msgSender()][_spender].sub(_subVal));
        return true;
    }

    /**
     * @dev Moves tokens `_amount` from `_from` to `_to`.
     *
     * This is internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `_from` cannot be the zero address.
     * - `_to` cannot be the zero address.
     * - `_from` must have a balance of at least `_amount`.
     */
    function _transfer(address _from, address _to, uint256 _amount) internal {
        require(_from != address(0), "transfer from 0");
        require(_to != address(0), "transfer to 0");

        _balances[_from] = _balances[_from].sub(_amount);
        _balances[_to] = _balances[_to].add(_amount);
        emit Transfer(_from, _to, _amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `_spender` over the `_owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `_owner` cannot be the zero address.
     * - `_spender` cannot be the zero address.
     */
    function _approve(address _owner, address _spender, uint256 _amount) internal {
        require(_owner != address(0), "approve from 0");
        require(_spender != address(0), "approve to 0");

        _allowances[_owner][_spender] = _amount;
        emit Approval(_owner, _spender, _amount);
    }

    /** @dev Creates `_amount` tokens and assigns them to `_to`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     */
    function _mint(address _to, uint256 _amount) internal {
        require(_to != address(0), "mint to 0");

        _totalSupply = _totalSupply.add(_amount);
        _balances[_to] = _balances[_to].add(_amount);
        emit Transfer(address(0), _to, _amount);
    }

    /**
     * @dev Destroys `_amount` tokens from `_from`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `_from` cannot be the zero address.
     * - `_from` must have at least `_amount` tokens.
     */
    function _burn(address _from, uint256 _amount) internal {
        require(_from != address(0), "burn from 0");

        _balances[_from] = _balances[_from].sub(_amount);
        _totalSupply = _totalSupply.sub(_amount);
        emit Transfer(_from, address(0), _amount);
    }
}


/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for ERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using SafeMath for uint256;
    using Address for address;

    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // solhint-disable-next-line max-line-length
        require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance");
        callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).add(value);
        callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value);
        callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves.

        // A Solidity high level call has three parts:
        //  1. The target address is checked to verify it contains contract code
        //  2. The call itself is made, and success asserted
        //  3. The return value is decoded, which in turn checks the size of the returned data.
        // solhint-disable-next-line max-line-length
        require(address(token).isContract(), "SafeERC20: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = address(token).call(data);
        require(success, "SafeERC20: low-level call failed");

        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

abstract contract Proxy {
    /**
     * @dev Delegates the current call to `implementation`.
     * 
     * This function does not return to its internall call site, it will return directly to the external caller.
     */
    function _delegate(address implementation) internal {
        // solhint-disable-next-line no-inline-assembly
        assembly {
            // Copy msg.data. We take full control of memory in this inline assembly
            // block because it will not return to Solidity code. We overwrite the
            // Solidity scratch pad at memory position 0.
            calldatacopy(0, 0, calldatasize())

            // Call the implementation.
            // out and outsize are 0 because we don't know the size yet.
            let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0)

            // Copy the returned data.
            returndatacopy(0, 0, returndatasize())

            switch result
            // delegatecall returns 0 on error.
            case 0 { revert(0, returndatasize()) }
            default { return(0, returndatasize()) }
        }
    }

    /**
     * @dev This is a virtual function that should be overriden so it returns the address to which the fallback function
     * and {_fallback} should delegate.
     */
    function _implementation() internal virtual view returns (address);

    /**
     * @dev Delegates the current call to the address returned by `_implementation()`.
     * 
     * This function does not return to its internall call site, it will return directly to the external caller.
     */
    function _fallback() internal {
        _beforeFallback();
        _delegate(_implementation());
    }

    /**
     * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other
     * function in the contract matches the call data.
     */
    fallback () payable external {
        _fallback();
    }

    /**
     * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if call data
     * is empty.
     */
    receive () payable external {
        _fallback();
    }

    /**
     * @dev Hook that is called before falling back to the implementation. Can happen as part of a manual `_fallback`
     * call, or as part of the Solidity `fallback` or `receive` functions.
     * 
     * If overriden should call `super._beforeFallback()`.
     */
    function _beforeFallback() internal virtual {
    }
}

contract UpgradeableProxy is Proxy {
    /**
     * @dev Initializes the upgradeable proxy with an initial implementation specified by `_logic`.
     * 
     * If `_data` is nonempty, it's used as data in a delegate call to `_logic`. This will typically be an encoded
     * function call, and allows initializating the storage of the proxy like a Solidity constructor.
     */
    constructor(address _logic, bytes memory _data) public payable {
        assert(_IMPLEMENTATION_SLOT == bytes32(uint256(keccak256("eip1967.proxy.implementation")) - 1));
        _setImplementation(_logic);
        if(_data.length > 0) {
            // solhint-disable-next-line avoid-low-level-calls
            (bool success,) = _logic.delegatecall(_data);
            require(success);
        }
    }

    /**
     * @dev Emitted when the implementation is upgraded.
     */
    event Upgraded(address indexed implementation);

    /**
     * @dev Storage slot with the address of the current implementation.
     * This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1, and is
     * validated in the constructor.
     */
    bytes32 private constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;

    /**
     * @dev Returns the current implementation address.
     */
    function _implementation() internal override view returns (address impl) {
        bytes32 slot = _IMPLEMENTATION_SLOT;
        // solhint-disable-next-line no-inline-assembly
        assembly {
            impl := sload(slot)
        }
    }

    /**
     * @dev Upgrades the proxy to a new implementation.
     * 
     * Emits an {Upgraded} event.
     */
    function _upgradeTo(address newImplementation) internal {
        _setImplementation(newImplementation);
        emit Upgraded(newImplementation);
    }

    /**
     * @dev Stores a new address in the EIP1967 implementation slot.
     */
    function _setImplementation(address newImplementation) private {
        require(isContract(newImplementation), "UpgradeableProxy: new implementation is not a contract");

        bytes32 slot = _IMPLEMENTATION_SLOT;

        // solhint-disable-next-line no-inline-assembly
        assembly {
            sstore(slot, newImplementation)
        }
    }

    function isContract(address account) internal view returns (bool) {
        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }
}

contract TransparentUpgradeableProxy is UpgradeableProxy {
    /**
     * @dev Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and
     * optionally initialized with `_data` as explained in {UpgradeableProxy-constructor}.
     */
    constructor(address _logic, address _admin, bytes memory _data) public payable UpgradeableProxy(_logic, _data) {
        assert(_ADMIN_SLOT == bytes32(uint256(keccak256("eip1967.proxy.admin")) - 1));
        _setAdmin(_admin);
    }

    /**
     * @dev Emitted when the admin account has changed.
     */
    event AdminChanged(address previousAdmin, address newAdmin);

    /**
     * @dev Storage slot with the admin of the contract.
     * This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1, and is
     * validated in the constructor.
     */
    bytes32 private constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;

    /**
     * @dev Modifier used internally that will delegate the call to the implementation unless the sender is the admin.
     */
    modifier ifAdmin() {
        if (msg.sender == _admin()) {
            _;
        } else {
            _fallback();
        }
    }

    /**
     * @dev Returns the current admin.
     * 
     * NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyAdmin}.
     * 
     * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the
     * https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.
     * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`
     */
    function admin() external ifAdmin returns (address) {
        return _admin();
    }

    /**
     * @dev Returns the current implementation.
     * 
     * NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyImplementation}.
     * 
     * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the
     * https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.
     * `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`
     */
    function implementation() external ifAdmin returns (address) {
        return _implementation();
    }

    /**
     * @dev Changes the admin of the proxy.
     * 
     * Emits an {AdminChanged} event.
     * 
     * NOTE: Only the admin can call this function. See {ProxyAdmin-changeProxyAdmin}.
     */
    function changeAdmin(address newAdmin) external ifAdmin {
        require(newAdmin != address(0), "TransparentUpgradeableProxy: new admin is the zero address");
        emit AdminChanged(_admin(), newAdmin);
        _setAdmin(newAdmin);
    }

    /**
     * @dev Upgrade the implementation of the proxy.
     * 
     * NOTE: Only the admin can call this function. See {ProxyAdmin-upgrade}.
     */
    function upgradeTo(address newImplementation) external ifAdmin {
        _upgradeTo(newImplementation);
    }

    /**
     * @dev Upgrade the implementation of the proxy, and then call a function from the new implementation as specified
     * by `data`, which should be an encoded function call. This is useful to initialize new storage variables in the
     * proxied contract.
     * 
     * NOTE: Only the admin can call this function. See {ProxyAdmin-upgradeAndCall}.
     */
    function upgradeToAndCall(address newImplementation, bytes calldata data) external payable ifAdmin {
        _upgradeTo(newImplementation);
        // solhint-disable-next-line avoid-low-level-calls
        (bool success,) = newImplementation.delegatecall(data);
        require(success);
    }

    /**
     * @dev Returns the current admin.
     */
    function _admin() internal view returns (address adm) {
        bytes32 slot = _ADMIN_SLOT;
        // solhint-disable-next-line no-inline-assembly
        assembly {
            adm := sload(slot)
        }
    }

    /**
     * @dev Stores a new address in the EIP1967 admin slot.
     */
    function _setAdmin(address newAdmin) private {
        bytes32 slot = _ADMIN_SLOT;

        // solhint-disable-next-line no-inline-assembly
        assembly {
            sstore(slot, newAdmin)
        }
    }

    /**
     * @dev Makes sure the admin cannot access the fallback function. See {Proxy-_beforeFallback}.
     */
    function _beforeFallback() internal override virtual {
        require(msg.sender != _admin(), "TransparentUpgradeableProxy: admin cannot fallback to proxy target");
        super._beforeFallback();
    }
}


contract MoMoProxy is TransparentUpgradeableProxy {
    constructor(address _implementation, address _admin, bytes memory _data) public TransparentUpgradeableProxy(_implementation, _admin, _data) {
    }
}

contract MoMoSetting is Ownable {
    address public settingGuardian;

    uint256 public levelMaxV4;
    uint256 public levelMaxV5;
    uint256 public levelMaxV6;
    
    mapping (uint256 => uint256) _levelUpV4;
    mapping (uint256 => uint256) _levelUpV5;
    mapping (uint256 => uint256) _levelUpV6;


    mapping (uint256 => string) _ipfsUrisGeneral; 
    mapping (uint256 => string) _ipfsUrisSpecial;
    mapping (address => bool) _erc721Receiver;
    mapping (address => bool) _erc1155Receiver;
    bool public disableERC721ReceiveCheck;
    bool public disableERC1155ReceiveCheck;


    constructor() public {
        
    }

    function setSettingGuardian(address addr_) external onlyOwner {
        settingGuardian = addr_;
    }

    modifier onlyGuardian() {
        require(msg.sender == settingGuardian, "not writer");
        _;
    }

    function setMaxLevel(uint256 lvv4_, uint256 lvv5_, uint256 lvv6_) external onlyGuardian {
        require(lvv4_ > levelMaxV4 && lvv4_ < 256, "invalid lvv4");
        require(lvv5_ > levelMaxV5 && lvv5_ < 256, "invalid lvv5");
        require(lvv6_ > levelMaxV6 && lvv6_ < 256, "invalid lvv6");

        levelMaxV4 = lvv4_;
        levelMaxV5 = lvv5_;
        levelMaxV6 = lvv6_;
    }

    function setUri(uint256 prototype_, string memory uri_) external onlyGuardian {
        _ipfsUrisGeneral[prototype_] = uri_;
    }

    function setUriSpecial(uint256 tokenId_, string memory uri_, bool remove_) external onlyGuardian {
        if (remove_) {
            delete _ipfsUrisSpecial[tokenId_];
        } else {
            _ipfsUrisSpecial[tokenId_] = uri_;
        }
    }

    function setReceiver721(address addr_, bool v_) external onlyGuardian {
        _erc721Receiver[addr_] = v_;
    }

    function setReceiver1155(address addr_, bool v_) external onlyGuardian {
        _erc1155Receiver[addr_] = v_;
    }

    function setReceiverAll(address addr_, bool v_) external onlyGuardian {
        _erc721Receiver[addr_] = v_;
        _erc1155Receiver[addr_] = v_;
    }

    function setNFTReceiveCheck(bool disable721_, bool disable1155_) external onlyGuardian {
        disableERC721ReceiveCheck = disable721_;
        disableERC1155ReceiveCheck = disable1155_;
    }

    function setLevelUpV4(
        uint256[] memory lvs_, 
        uint256[] memory countV1_, 
        uint256[] memory countV2_, 
        uint256[] memory countV3_, 
        uint256[] memory countV4self_,
        uint256[] memory levelV4_
    ) external onlyGuardian {
        require(lvs_.length == countV1_.length && lvs_.length == countV2_.length, "invalid param");
        require(lvs_.length == countV3_.length && lvs_.length == countV4self_.length, "invalid param");
        uint256 level;
        for (uint256 i = 0; i < lvs_.length; ++i) {
            level = lvs_[i];
            require(level > 0 && level <= levelMaxV4, "invalid prototype");
            uint256 cfgVal = countV1_[i] + (countV2_[i] << 32) + (countV3_[i] << 64) + (countV4self_[i] << 96) + (levelV4_[i] << 128);
            _levelUpV4[level] = cfgVal;
        }
    }

    function setLevelUpV5(
        uint256[] memory lvs_, 
        uint256[] memory countV1_, 
        uint256[] memory countV2_, 
        uint256[] memory countV3_,
        uint256[] memory countV4_, 
        uint256[] memory levelV4_,
        uint256[] memory countV5self_
    ) external onlyGuardian {
        require(lvs_.length == countV1_.length && lvs_.length == countV2_.length && lvs_.length == countV3_.length, "invalid param");
        require(lvs_.length == countV4_.length && lvs_.length == levelV4_.length && lvs_.length == countV5self_.length, "invalid param");
        uint256 level;
        for (uint256 i = 0; i < lvs_.length; ++i) {
            level = lvs_[i];
            require(level > 0 && level <= levelMaxV5, "invalid prototype");
            uint256 cfgVal = countV1_[i] + (countV2_[i] << 32) + (countV3_[i] << 64) + (countV4_[i] << 96) + (levelV4_[i] << 128) + (countV5self_[i] << 160);
            _levelUpV5[level] = cfgVal;
        }
    }

    function setLevelUpV6(
        uint256[] memory lvs_, 
        uint256[] memory countV1_, 
        uint256[] memory countV2_, 
        uint256[] memory countV3_,
        uint256[] memory countV4_, 
        uint256[] memory levelV4_,
        uint256[] memory countV5_
    ) external onlyGuardian {
        require(lvs_.length == countV1_.length && lvs_.length == countV2_.length && lvs_.length == countV3_.length, "invalid param");
        require(lvs_.length == countV4_.length && lvs_.length == levelV4_.length && lvs_.length == countV5_.length, "invalid param");
        uint256 level;
        for (uint256 i = 0; i < lvs_.length; ++i) {
            level = lvs_[i];
            require(level > 0 && level <= levelMaxV6, "invalid prototype");
            uint256 cfgVal = countV1_[i] + (countV2_[i] << 32) + (countV3_[i] << 64) + (countV4_[i] << 96) + (levelV4_[i] << 128) + (countV5_[i] << 160);
            _levelUpV6[level] = cfgVal;
        }
    }

    function getURI(uint256 tokenId_, uint256 prototype_) external view returns(string memory uri) {
        uri = _ipfsUrisSpecial[tokenId_];
        if (bytes(uri).length < 1) {
            uri = _ipfsUrisGeneral[prototype_];
        } 
    }

    function isReceiver721(address addr_) external view returns(bool) {
        return disableERC721ReceiveCheck || _erc721Receiver[addr_];
    }

    function isReceiver1155(address addr_) external view returns(bool) {
        return disableERC1155ReceiveCheck || _erc1155Receiver[addr_];
    }

    function getLevelUpV4(uint256 currentLevel_) 
        external 
        view 
        returns(
            uint256 countV1,
            uint256 countV2,
            uint256 countV3,
            uint256 countV4Self,
            uint256 levelV4
        ) 
    {
        uint256 cfgVal = _levelUpV4[currentLevel_];
        require(cfgVal > 0 && currentLevel_ < levelMaxV4, "level limited");
        countV1 = cfgVal % 0x0100000000;
        countV2 = (cfgVal >> 32) % 0x0100000000;
        countV3 = (cfgVal >> 64) % 0x0100000000;
        countV4Self = (cfgVal >> 96) % 0x0100000000;
        levelV4 = (cfgVal >> 128) % 0x0100000000;
    }

    function getLevelUpV5(uint256 currentLevel_) 
        external 
        view 
        returns(
            uint256 countV1,
            uint256 countV2,
            uint256 countV3,
            uint256 countV4,
            uint256 levelV4,
            uint256 countV5Self
        ) 
    {
        uint256 cfgVal = _levelUpV5[currentLevel_];
        require(cfgVal > 0 && currentLevel_ < levelMaxV5, "level limited");
        countV1 = cfgVal % 0x0100000000;
        countV2 = (cfgVal >> 32) % 0x0100000000;
        countV3 = (cfgVal >> 64) % 0x0100000000;
        countV4 = (cfgVal >> 96) % 0x0100000000;
        levelV4 = (cfgVal >> 128) % 0x0100000000;
        countV5Self = (cfgVal >> 160) % 0x0100000000;
    }

    function getLevelUpV6(uint256 currentLevel_) 
        external 
        view 
        returns(
            uint256 countV1,
            uint256 countV2,
            uint256 countV3,
            uint256 countV4,
            uint256 levelV4,
            uint256 countV5
        ) 
    {
        uint256 cfgVal = _levelUpV6[currentLevel_];
        require(cfgVal > 0 && currentLevel_ < levelMaxV6, "level limited");
        countV1 = cfgVal % 0x0100000000;
        countV2 = (cfgVal >> 32) % 0x0100000000;
        countV3 = (cfgVal >> 64) % 0x0100000000;
        countV4 = (cfgVal >> 96) % 0x0100000000;
        levelV4 = (cfgVal >> 128) % 0x0100000000;
        countV5 = (cfgVal >> 160) % 0x0100000000;
    }
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"_implementation","type":"address"},{"internalType":"address","name":"_admin","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAdmin","type":"address"}],"name":"changeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405234801561001057600080fd5b506040516108e53803806108e58339818101604052606081101561003357600080fd5b8151602083015160408085018051915193959294830192918464010000000082111561005e57600080fd5b90830190602082018581111561007357600080fd5b825164010000000081118282018810171561008d57600080fd5b82525081516020918201929091019080838360005b838110156100ba5781810151838201526020016100a2565b50505050905090810190601f1680156100e75780820380516001836020036101000a031916815260200191505b50604052508491508390508282816100fe826101d2565b8051156101b6576000826001600160a01b0316826040518082805190602001908083835b602083106101415780518252601f199092019160209182019101610122565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d80600081146101a1576040519150601f19603f3d011682016040523d82523d6000602084013e6101a6565b606091505b50509050806101b457600080fd5b505b506101be9050565b6101c78261023a565b505050505050610264565b6101db8161025e565b6102165760405162461bcd60e51b81526004018080602001828103825260368152602001806108af6036913960400191505060405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc55565b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610355565b3b151590565b61063c806102736000396000f3fe60806040526004361061004e5760003560e01c80633659cfe6146100655780634f1ef286146100985780635c60da1b146101185780638f28397014610149578063f851a4401461017c5761005d565b3661005d5761005b610191565b005b61005b610191565b34801561007157600080fd5b5061005b6004803603602081101561008857600080fd5b50356001600160a01b03166101ab565b61005b600480360360408110156100ae57600080fd5b6001600160a01b0382351691908101906040810160208201356401000000008111156100d957600080fd5b8201836020820111156100eb57600080fd5b8035906020019184600183028401116401000000008311171561010d57600080fd5b5090925090506101e5565b34801561012457600080fd5b5061012d610292565b604080516001600160a01b039092168252519081900360200190f35b34801561015557600080fd5b5061005b6004803603602081101561016c57600080fd5b50356001600160a01b03166102cf565b34801561018857600080fd5b5061012d610389565b6101996103b4565b6101a96101a4610414565b610439565b565b6101b361045d565b6001600160a01b0316336001600160a01b031614156101da576101d581610482565b6101e2565b6101e2610191565b50565b6101ed61045d565b6001600160a01b0316336001600160a01b031614156102855761020f83610482565b6000836001600160a01b031683836040518083838082843760405192019450600093509091505080830381855af49150503d806000811461026c576040519150601f19603f3d011682016040523d82523d6000602084013e610271565b606091505b505090508061027f57600080fd5b5061028d565b61028d610191565b505050565b600061029c61045d565b6001600160a01b0316336001600160a01b031614156102c4576102bd610414565b90506102cc565b6102cc610191565b90565b6102d761045d565b6001600160a01b0316336001600160a01b031614156101da576001600160a01b0381166103355760405162461bcd60e51b815260040180806020018281038252603a815260200180610555603a913960400191505060405180910390fd5b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f61035e61045d565b604080516001600160a01b03928316815291841660208301528051918290030190a16101d5816104c2565b600061039361045d565b6001600160a01b0316336001600160a01b031614156102c4576102bd61045d565b6103bc61045d565b6001600160a01b0316336001600160a01b0316141561040c5760405162461bcd60e51b81526004018080602001828103825260428152602001806105c56042913960600191505060405180910390fd5b6101a96101a9565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5490565b3660008037600080366000845af43d6000803e808015610458573d6000f35b3d6000fd5b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035490565b61048b816104e6565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d610355565b6104ef8161054e565b61052a5760405162461bcd60e51b815260040180806020018281038252603681526020018061058f6036913960400191505060405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc55565b3b15159056fe5472616e73706172656e745570677261646561626c6550726f78793a206e65772061646d696e20697320746865207a65726f20616464726573735570677261646561626c6550726f78793a206e657720696d706c656d656e746174696f6e206973206e6f74206120636f6e74726163745472616e73706172656e745570677261646561626c6550726f78793a2061646d696e2063616e6e6f742066616c6c6261636b20746f2070726f787920746172676574a2646970667358221220fffa4bb62eef170445d21cdf39ed676af1fa38a602269f80082784ff883f4adb64736f6c634300060c00335570677261646561626c6550726f78793a206e657720696d706c656d656e746174696f6e206973206e6f74206120636f6e74726163740000000000000000000000005bb4d72db22dc38958696bd5db9273f142bbb217000000000000000000000000445efb4efbf3ed3f00db08ed8be312ab45dfc1d600000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000

Deployed ByteCode Sourcemap

34571:208:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26874:11;:9;:11::i;:::-;34571:208;;26650:11;:9;:11::i;32845:111::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;32845:111:0;-1:-1:-1;;;;;32845:111:0;;:::i;33342:299::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;33342:299:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;33342:299:0;;-1:-1:-1;33342:299:0;-1:-1:-1;33342:299:0;:::i;32111:104::-;;;;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;32111:104:0;;;;;;;;;;;;;;32431:246;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;32431:246:0;-1:-1:-1;;;;;32431:246:0;;:::i;31552:86::-;;;;;;;;;;;;;:::i;26302:105::-;26343:17;:15;:17::i;:::-;26371:28;26381:17;:15;:17::i;:::-;26371:9;:28::i;:::-;26302:105::o;32845:111::-;31008:8;:6;:8::i;:::-;-1:-1:-1;;;;;30994:22:0;:10;-1:-1:-1;;;;;30994:22:0;;30990:100;;;32919:29:::1;32930:17;32919:10;:29::i;:::-;30990:100:::0;;;31067:11;:9;:11::i;:::-;32845:111;:::o;33342:299::-;31008:8;:6;:8::i;:::-;-1:-1:-1;;;;;30994:22:0;:10;-1:-1:-1;;;;;30994:22:0;;30990:100;;;33452:29:::1;33463:17;33452:10;:29::i;:::-;33553:12;33570:17;-1:-1:-1::0;;;;;33570:30:0::1;33601:4;;33570:36;;;;;;;;;;::::0;;::::1;::::0;-1:-1:-1;33570:36:0::1;::::0;-1:-1:-1;33570:36:0;;-1:-1:-1;;33570:36:0;;::::1;::::0;;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33552:54;;;33625:7;33617:16;;;::::0;::::1;;31033:1;30990:100:::0;;;31067:11;:9;:11::i;:::-;33342:299;;;:::o;32111:104::-;32163:7;31008:8;:6;:8::i;:::-;-1:-1:-1;;;;;30994:22:0;:10;-1:-1:-1;;;;;30994:22:0;;30990:100;;;32190:17:::1;:15;:17::i;:::-;32183:24;;30990:100:::0;;;31067:11;:9;:11::i;:::-;32111:104;:::o;32431:246::-;31008:8;:6;:8::i;:::-;-1:-1:-1;;;;;30994:22:0;:10;-1:-1:-1;;;;;30994:22:0;;30990:100;;;-1:-1:-1;;;;;32506:22:0;::::1;32498:93;;;;-1:-1:-1::0;;;32498:93:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32607:32;32620:8;:6;:8::i;:::-;32607:32;::::0;;-1:-1:-1;;;;;32607:32:0;;::::1;::::0;;;;::::1;;::::0;::::1;::::0;;;;;;;;;::::1;32650:19;32660:8;32650:9;:19::i;31552:86::-:0;31595:7;31008:8;:6;:8::i;:::-;-1:-1:-1;;;;;30994:22:0;:10;-1:-1:-1;;;;;30994:22:0;;30990:100;;;31622:8:::1;:6;:8::i;34355:207::-:0;34441:8;:6;:8::i;:::-;-1:-1:-1;;;;;34427:22:0;:10;-1:-1:-1;;;;;34427:22:0;;;34419:101;;;;-1:-1:-1;;;34419:101:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34531:23;:21;:23::i;28603:248::-;28453:66;28822:11;;28799:45::o;24902:907::-;25294:14;25291:1;25288;25275:34;25512:1;25509;25493:14;25490:1;25474:14;25467:5;25454:60;25591:16;25588:1;25585;25570:38;25631:6;25700:38;;;;25772:16;25769:1;25762:27;25700:38;25719:16;25716:1;25709:27;33707:219;30747:66;33897:11;;33875:44::o;28978:155::-;29045:37;29064:17;29045:18;:37::i;:::-;29098:27;;-1:-1:-1;;;;;29098:27:0;;;;;;;;28978:155;:::o;34013:216::-;30747:66;34189:22;34174:48::o;29229:361::-;29311:29;29322:17;29311:10;:29::i;:::-;29303:96;;;;-1:-1:-1;;;29303:96:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28453:66;29541:31;29526:57::o;29598:231::-;29774:20;29813:8;;;29598:231::o

Swarm Source

ipfs://fffa4bb62eef170445d21cdf39ed676af1fa38a602269f80082784ff883f4adb
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
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.