Contract 0xA205585368917366CCE212EecC754F6d055A2e8E 1

 
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x43c3201764700be6b851b4249634572cebf30011ea045fab7cbfb1c0012bc090Set Approval For...119736712021-10-21 20:05:464 days 18 hrs ago0x9ffff501585c08660eb706aea48b53d111e13744 IN  0xa205585368917366cce212eecc754f6d055a2e8e0 BNB0.0002251
0xc14f342ca785f8f536d8892038e6adce2c6029666b2d93d571f1cf81734afdb3Set Approval For...110216362021-09-18 12:22:4538 days 1 hr ago0xb91a8589a9251f4b7fa78cfd5a777a5d91f03900 IN  0xa205585368917366cce212eecc754f6d055a2e8e0 BNB0.0002251
0xf9584aa182f69bd27b4ec24e9d1058a3aac4342c44041ae0e8ae1d1b8fe71ccbSet Approval For...107431262021-09-08 19:05:4647 days 19 hrs ago0xffb1e15980288297a7273d911cc7f642acd4de0a IN  0xa205585368917366cce212eecc754f6d055a2e8e0 BNB0.0002251
0xb237684fe9eb4de53313c75838bb1e08de1ec3fe6e8b7163bee8b1e1f11c52d4Set Approval For...106300412021-09-04 19:56:4551 days 18 hrs ago0x5526b79babe76811ad732ed9204c5f18f7048569 IN  0xa205585368917366cce212eecc754f6d055a2e8e0 BNB0.0002251
0x9e86dc16f497bf5563b7a16cb74f38e4307836779d77f016ef47aed2ef75855cSet Approval For...103101082021-08-24 14:03:2163 days 12 mins ago0x6bf5e572d16c5061a5e6292059e5386194c2210b IN  0xa205585368917366cce212eecc754f6d055a2e8e0 BNB0.0002251
0x3351eae259fb14c4142ccca810f493e9f9cde549988b8451b843e7d7ecfb5575Set Approval For...103071752021-08-24 11:33:2563 days 2 hrs ago0x3c8f53078308c260d80383bd5bf4af9579bf7d78 IN  0xa205585368917366cce212eecc754f6d055a2e8e0 BNB0.0002251
0xc2edcca0c48fb222634f0d5eefafe9e335d1ae25e418c83c80ef18719c1cfb75Set Approval For...103034132021-08-24 8:23:0663 days 5 hrs ago0xf013e4af89de54d68884ffdec19768bbc3d8859a IN  0xa205585368917366cce212eecc754f6d055a2e8e0 BNB0.0002251
0x2e12a86152873e48e35d776a9d8db29bfd12d9b597d7688b0ba06ad901889f10Set Approval For...103014512021-08-24 6:45:0063 days 7 hrs ago0x40d015d66e14d24b3acb0923ec5845fc1e377da8 IN  0xa205585368917366cce212eecc754f6d055a2e8e0 BNB0.0002251
0xbd832733432dc3962243e15c60a78c231fe0b3a67dd99871736dad7db01b4ee9Set Approval For...96905692021-08-02 16:23:2984 days 21 hrs ago0x99079720971ac97965f25bbdbecf6b52f131212a IN  0xa205585368917366cce212eecc754f6d055a2e8e0 BNB0.0002251
0x269c453846436ea34730094274678dd9bb3be84d3d069a0ac296686042c5c93bSet Approval For...93839122021-07-22 16:06:4095 days 22 hrs ago0x11c97e8b6b041f19071c6b8bdc80d1402b329637 IN  0xa205585368917366cce212eecc754f6d055a2e8e0 BNB0.0002251
0x7c0095d63dcf2e26e00db5339418b08bb925138503819dd79dace276f559b1f8Safe Transfer Fr...93829042021-07-22 15:16:1595 days 22 hrs ago0x11c97e8b6b041f19071c6b8bdc80d1402b329637 IN  0xa205585368917366cce212eecc754f6d055a2e8e0 BNB0.00029922
0x2e25ce9f3d2c8625a2d34975b6661d556926d46e5f41f413309659374dc48c01Transfer Ownersh...93465572021-07-21 8:58:1097 days 5 hrs ago0x79105ce19a3d44c59ca48f827d865601a6945a1b IN  0xa205585368917366cce212eecc754f6d055a2e8e0 BNB0.00015449
0x1c400492882db6118d84d8f786deb3c403d5127cf4b335f8b7fa3b39a0b6f020Withdraw93459312021-07-21 8:26:5297 days 5 hrs ago0x79105ce19a3d44c59ca48f827d865601a6945a1b IN  0xa205585368917366cce212eecc754f6d055a2e8e0 BNB0.000119965
0x016e3edbbf334dd17660dfeec0dad972a9fce6a2f20da215ef9ae27081f28a68Mint Bio91667592021-07-15 3:03:15103 days 11 hrs ago0x4129b4337d5a2f7278a02ff15bb1e4e548d8ee60 IN  0xa205585368917366cce212eecc754f6d055a2e8e1 BNB0.002037545
0xaeabb0d1b82eeeb0cfcd4992660e2abc922131a0a3bcd816b38df53cd94b7027Mint Bio91666982021-07-15 3:00:12103 days 11 hrs ago0x4129b4337d5a2f7278a02ff15bb1e4e548d8ee60 IN  0xa205585368917366cce212eecc754f6d055a2e8e1 BNB0.00219057
0x920e1778390a710a9dcf70b1767d61612b2c5675a6fc8b1884235e5193e60c0aSet Approval For...91495252021-07-14 12:40:18104 days 1 hr ago0xac8c73e499f337e9b5d4f6055b1fb20f1d588191 IN  0xa205585368917366cce212eecc754f6d055a2e8e0 BNB0.0002251
0x8cdca32f6a769bdf76742c39aaefbd431285c5def08a20e53dc7b661287c386eMint Bio89631662021-07-08 1:20:37110 days 12 hrs ago0x8d571892fec15814274095f3f6a650cd0b571bfd IN  0xa205585368917366cce212eecc754f6d055a2e8e1 BNB0.002034555
0xc6732c755b738ad07efa4f7da057b0387e0dd71376b4c628daa72255b2c8b758Mint Bio88376032021-07-03 16:05:11114 days 22 hrs ago0x3d267a32f84d14b22822301c2659556b8faad930 IN  0xa205585368917366cce212eecc754f6d055a2e8e1 BNB0.001992975
0x63e3e9a792c5196012fb649215813fbe00cd4b999e30fbfa3642a0ec46ebdf5bMint Bio88363062021-07-03 15:00:09114 days 23 hrs ago0x20da92e7d88eb154e7efa1216ef728c45e65d7ac IN  0xa205585368917366cce212eecc754f6d055a2e8e1 BNB0.00262505
0x8f958a0edb93561ab5ab69aa3028cd7337847f16ff2ec0166679f1041ab98cfeMint Bio88354982021-07-03 14:19:42114 days 23 hrs ago0x3d267a32f84d14b22822301c2659556b8faad930 IN  0xa205585368917366cce212eecc754f6d055a2e8e1 BNB0.00258051
0x4077c4860d3ee017b3ac30200b7d063465a11c9c0754092e8fa4e582801f0e0bSet Approval For...86894902021-06-28 11:30:15120 days 2 hrs ago0x7608d9c79baeac6b3ed2ccd458de983737928105 IN  0xa205585368917366cce212eecc754f6d055a2e8e0 BNB0.0002251
0x0ef64783efed615b052e4a5badd292ebeebcda076e654cbae8cd96d22e9cc182Mint Bio86893812021-06-28 11:24:44120 days 2 hrs ago0x7608d9c79baeac6b3ed2ccd458de983737928105 IN  0xa205585368917366cce212eecc754f6d055a2e8e1 BNB0.002112545
0xb03e6828d4a6104ebf7812dd51f02871143a5201fa797e01f9398f161cc28535Mint Bio86550252021-06-27 6:38:38121 days 7 hrs ago0x6cadf1f5cce646436e2a7711127e7014a22b3685 IN  0xa205585368917366cce212eecc754f6d055a2e8e1 BNB0.00253896
0xb87b3a8e61c86ba6f80ae850486cc979925fee0adb754817096df964e87f7516Set Approval For...86527422021-06-27 4:44:29121 days 9 hrs ago0x786103a19bcc1c5f97887be5fe1eba9ac743cbf7 IN  0xa205585368917366cce212eecc754f6d055a2e8e0 BNB0.0002251
0xa74d10f373c71a8c96caf057f707fb2e8b0e2bf5b079dab98738557a05d4de91Mint Bio86526912021-06-27 4:41:56121 days 9 hrs ago0x786103a19bcc1c5f97887be5fe1eba9ac743cbf7 IN  0xa205585368917366cce212eecc754f6d055a2e8e1 BNB0.00258045
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x848b467f2f442d871b50313f9fedb0cac1e632cb633331cdb142a4eb61f827dd120937882021-10-26 1:28:5112 hrs 46 mins ago 0xa205585368917366cce212eecc754f6d055a2e8e 0x35657e4c94c3d7f27d38672d293afc530204b6a81 BNB
0x848b467f2f442d871b50313f9fedb0cac1e632cb633331cdb142a4eb61f827dd120937882021-10-26 1:28:5112 hrs 46 mins ago 0x35657e4c94c3d7f27d38672d293afc530204b6a8 0xa205585368917366cce212eecc754f6d055a2e8e1 BNB
0xd13044758c28808ca2d897f21c8d19880dccec24e0b0d2d7518a5c679578ebd7120302892021-10-23 20:01:252 days 18 hrs ago 0xa205585368917366cce212eecc754f6d055a2e8e 0x35657e4c94c3d7f27d38672d293afc530204b6a81 BNB
0xd13044758c28808ca2d897f21c8d19880dccec24e0b0d2d7518a5c679578ebd7120302892021-10-23 20:01:252 days 18 hrs ago 0x35657e4c94c3d7f27d38672d293afc530204b6a8 0xa205585368917366cce212eecc754f6d055a2e8e1 BNB
0x43ee6288438c97f8e4eb452a26a7d43a48c5a00cd88f8f7c8fef396c740a1054120276312021-10-23 17:47:242 days 20 hrs ago 0xa205585368917366cce212eecc754f6d055a2e8e 0x35657e4c94c3d7f27d38672d293afc530204b6a81 BNB
0x43ee6288438c97f8e4eb452a26a7d43a48c5a00cd88f8f7c8fef396c740a1054120276312021-10-23 17:47:242 days 20 hrs ago 0x35657e4c94c3d7f27d38672d293afc530204b6a8 0xa205585368917366cce212eecc754f6d055a2e8e1 BNB
0xa1ef55b191f1985a8a9eb08456b8e595400a9e1a1922c580c79325885728e0b3115971332021-10-08 15:00:4017 days 23 hrs ago 0xa205585368917366cce212eecc754f6d055a2e8e 0x35657e4c94c3d7f27d38672d293afc530204b6a81 BNB
0xa1ef55b191f1985a8a9eb08456b8e595400a9e1a1922c580c79325885728e0b3115971332021-10-08 15:00:4017 days 23 hrs ago 0x35657e4c94c3d7f27d38672d293afc530204b6a8 0xa205585368917366cce212eecc754f6d055a2e8e1 BNB
0x4b47a8d8fdfb3dfda0f6e17b3b208c7fb93c5d0d853daa111a152d892112b2ee114118762021-10-02 4:10:2324 days 10 hrs ago 0xa205585368917366cce212eecc754f6d055a2e8e 0x35657e4c94c3d7f27d38672d293afc530204b6a81 BNB
0x4b47a8d8fdfb3dfda0f6e17b3b208c7fb93c5d0d853daa111a152d892112b2ee114118762021-10-02 4:10:2324 days 10 hrs ago 0x35657e4c94c3d7f27d38672d293afc530204b6a8 0xa205585368917366cce212eecc754f6d055a2e8e1 BNB
0x203be36b34350ee35410a92c664a32870d0ea150f2a56044ef81be6f8de65c0a109451872021-09-15 20:33:5640 days 17 hrs ago 0xa205585368917366cce212eecc754f6d055a2e8e 0x35657e4c94c3d7f27d38672d293afc530204b6a81 BNB
0x203be36b34350ee35410a92c664a32870d0ea150f2a56044ef81be6f8de65c0a109451872021-09-15 20:33:5640 days 17 hrs ago 0x35657e4c94c3d7f27d38672d293afc530204b6a8 0xa205585368917366cce212eecc754f6d055a2e8e1 BNB
0xdbf371404c517bb4d7163bfc1ee145f917044ebd05a91385a2ba4377ef8fa5b0109420332021-09-15 17:56:1440 days 20 hrs ago 0xa205585368917366cce212eecc754f6d055a2e8e 0x35657e4c94c3d7f27d38672d293afc530204b6a81 BNB
0xdbf371404c517bb4d7163bfc1ee145f917044ebd05a91385a2ba4377ef8fa5b0109420332021-09-15 17:56:1440 days 20 hrs ago 0x35657e4c94c3d7f27d38672d293afc530204b6a8 0xa205585368917366cce212eecc754f6d055a2e8e1 BNB
0x254e50220b4758b1dc294a610a148100fc7ddb779ed27f1f8dab12669dd698c8107430242021-09-08 19:00:4047 days 19 hrs ago 0xa205585368917366cce212eecc754f6d055a2e8e 0x35657e4c94c3d7f27d38672d293afc530204b6a81 BNB
0x254e50220b4758b1dc294a610a148100fc7ddb779ed27f1f8dab12669dd698c8107430242021-09-08 19:00:4047 days 19 hrs ago 0x35657e4c94c3d7f27d38672d293afc530204b6a8 0xa205585368917366cce212eecc754f6d055a2e8e1 BNB
0xb9f82bb8e7a1b72034bc4754176d554fcd20c8201970a81032d40d71bbf28968106984192021-09-07 5:12:0149 days 9 hrs ago 0xa205585368917366cce212eecc754f6d055a2e8e 0x35657e4c94c3d7f27d38672d293afc530204b6a81 BNB
0xb9f82bb8e7a1b72034bc4754176d554fcd20c8201970a81032d40d71bbf28968106984192021-09-07 5:12:0149 days 9 hrs ago 0x35657e4c94c3d7f27d38672d293afc530204b6a8 0xa205585368917366cce212eecc754f6d055a2e8e1 BNB
0x824cc35b4c081d4a1920829968c685bc29533eb98c0b05d9f1df7e32be5f1a48105984782021-09-03 17:31:5252 days 20 hrs ago 0xa205585368917366cce212eecc754f6d055a2e8e 0x35657e4c94c3d7f27d38672d293afc530204b6a81 BNB
0x824cc35b4c081d4a1920829968c685bc29533eb98c0b05d9f1df7e32be5f1a48105984782021-09-03 17:31:5252 days 20 hrs ago 0x35657e4c94c3d7f27d38672d293afc530204b6a8 0xa205585368917366cce212eecc754f6d055a2e8e1 BNB
0x97469490ecac2c5290d1231638ac98253ecc5683078c31987755a143cab3767f104393082021-08-29 3:07:3358 days 11 hrs ago 0xa205585368917366cce212eecc754f6d055a2e8e 0x35657e4c94c3d7f27d38672d293afc530204b6a81 BNB
0x97469490ecac2c5290d1231638ac98253ecc5683078c31987755a143cab3767f104393082021-08-29 3:07:3358 days 11 hrs ago 0x35657e4c94c3d7f27d38672d293afc530204b6a8 0xa205585368917366cce212eecc754f6d055a2e8e1 BNB
0x405aae81ae0a83afcf834dbfdbbeedc833e7cfe4dba9d3c49f6f7b150ad52dad103838352021-08-27 3:39:3060 days 10 hrs ago 0xa205585368917366cce212eecc754f6d055a2e8e 0x35657e4c94c3d7f27d38672d293afc530204b6a81 BNB
0x405aae81ae0a83afcf834dbfdbbeedc833e7cfe4dba9d3c49f6f7b150ad52dad103838352021-08-27 3:39:3060 days 10 hrs ago 0x35657e4c94c3d7f27d38672d293afc530204b6a8 0xa205585368917366cce212eecc754f6d055a2e8e1 BNB
0xdb6c05bcef401bc8c6eafb1e684749f523840aaa306fed6b177cd0eebcb74568103832202021-08-27 3:08:4560 days 11 hrs ago 0xa205585368917366cce212eecc754f6d055a2e8e 0x35657e4c94c3d7f27d38672d293afc530204b6a81 BNB
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Life

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 999999 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 17 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/introspection/ERC165.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/EnumerableSet.sol";
import "@openzeppelin/contracts/utils/EnumerableMap.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "./interface/IERC721Metadata.sol";

/**
 * @title ERC721 Non-Fungible Token Standard basic implementation
 * @dev see https://eips.ethereum.org/EIPS/eip-721
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
    using SafeMath for uint256;
    using Address for address;
    using EnumerableSet for EnumerableSet.UintSet;
    using EnumerableMap for EnumerableMap.UintToAddressMap;
    using Strings for uint256;

    // Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`
    // which can be also obtained as `IERC721Receiver(0).onERC721Received.selector`
    bytes4 private constant _ERC721_RECEIVED = 0x150b7a02;

    // Mapping from holder address to their (enumerable) set of owned tokens
    mapping(address => EnumerableSet.UintSet) private _holderTokens;

    // Enumerable mapping from token ids to their owners
    EnumerableMap.UintToAddressMap private _tokenOwners;

    // 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;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    /*
     *     bytes4(keccak256('balanceOf(address)')) == 0x70a08231
     *     bytes4(keccak256('ownerOf(uint256)')) == 0x6352211e
     *     bytes4(keccak256('approve(address,uint256)')) == 0x095ea7b3
     *     bytes4(keccak256('getApproved(uint256)')) == 0x081812fc
     *     bytes4(keccak256('setApprovalForAll(address,bool)')) == 0xa22cb465
     *     bytes4(keccak256('isApprovedForAll(address,address)')) == 0xe985e9c5
     *     bytes4(keccak256('transferFrom(address,address,uint256)')) == 0x23b872dd
     *     bytes4(keccak256('safeTransferFrom(address,address,uint256)')) == 0x42842e0e
     *     bytes4(keccak256('safeTransferFrom(address,address,uint256,bytes)')) == 0xb88d4fde
     *
     *     => 0x70a08231 ^ 0x6352211e ^ 0x095ea7b3 ^ 0x081812fc ^
     *        0xa22cb465 ^ 0xe985e9c5 ^ 0x23b872dd ^ 0x42842e0e ^ 0xb88d4fde == 0x80ac58cd
     */
    bytes4 private constant _INTERFACE_ID_ERC721 = 0x80ac58cd;

    /*
     *     bytes4(keccak256('name()')) == 0x06fdde03
     *     bytes4(keccak256('symbol()')) == 0x95d89b41
     *     bytes4(keccak256('tokenURI(uint256)')) == 0xc87b56dd
     *
     *     => 0x06fdde03 ^ 0x95d89b41 ^ 0xc87b56dd == 0x5b5e139f
     */
    bytes4 private constant _INTERFACE_ID_ERC721_METADATA = 0x5b5e139f;

    /*
     *     bytes4(keccak256('totalSupply()')) == 0x18160ddd
     *     bytes4(keccak256('tokenOfOwnerByIndex(address,uint256)')) == 0x2f745c59
     *     bytes4(keccak256('tokenByIndex(uint256)')) == 0x4f6ccce7
     *
     *     => 0x18160ddd ^ 0x2f745c59 ^ 0x4f6ccce7 == 0x780e9d63
     */
    bytes4 private constant _INTERFACE_ID_ERC721_ENUMERABLE = 0x780e9d63;

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

        // register the supported interfaces to conform to ERC721 via ERC165
        _registerInterface(_INTERFACE_ID_ERC721);
        _registerInterface(_INTERFACE_ID_ERC721_METADATA);
        _registerInterface(_INTERFACE_ID_ERC721_ENUMERABLE);
    }

    /**
     * @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 _holderTokens[owner].length();
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        return _tokenOwners.get(tokenId, "ERC721: owner query for nonexistent token");
    }

    /**
     * @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 {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index)
        public
        view
        virtual
        override
        returns (uint256)
    {
        return _holderTokens[owner].at(index);
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        // _tokenOwners are indexed by tokenIds, so .length() returns the number of tokenIds
        return _tokenOwners.length();
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        (uint256 tokenId, ) = _tokenOwners.at(index);
        return tokenId;
    }

    /**
     * @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 || ERC721.isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     d*
     * - `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);

        _holderTokens[to].add(tokenId);

        _tokenOwners.set(tokenId, to);

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

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

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

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

        _holderTokens[owner].remove(tokenId);

        _tokenOwners.remove(tokenId);

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

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

        _holderTokens[from].remove(tokenId);
        _holderTokens[to].add(tokenId);

        _tokenOwners.set(tokenId, to);

        emit Transfer(from, to, tokenId);
    }

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

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

    /**
     * @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` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 2 of 17 : Life.sol
// SPDX-License-Identifier: AGPL-3.0-or-later

pragma solidity =0.6.12;
pragma experimental ABIEncoderV2;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "./ERC721.sol";
import "./interface/ILife.sol";

/**
 * @title NFTKEY Life collection contract
 */
contract Life is ILife, ERC721, Ownable, ReentrancyGuard {
    using SafeMath for uint256;
    using Address for address;

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

    uint256 public constant SALE_START_TIMESTAMP = 1616247000;

    uint256 public constant MAX_NFT_SUPPLY = 10000;

    mapping(address => uint256) private _pendingWithdrawals;
    mapping(uint256 => uint8[]) private _bioDNAById;
    mapping(bytes32 => bool) private _bioExistanceByHash;

    uint8 private _feeFraction = 1;
    uint8 private _feeBase = 100;
    mapping(uint256 => Listing) private _bioListedForSale;
    mapping(uint256 => Bid) private _bioWithBids;

    /**
     * @dev See {ILife-getBioDNA}.
     */
    function getBioDNA(uint256 bioId) external view override returns (uint8[] memory) {
        return _bioDNAById[bioId];
    }

    /**
     * @dev See {ILife-allBioDNAs}.
     */
    function getBioDNAs(uint256 from, uint256 size)
        external
        view
        override
        returns (uint8[][] memory)
    {
        uint256 endBioIndex = from + size;
        require(endBioIndex <= totalSupply(), "Requesting too many Bios");

        uint8[][] memory bios = new uint8[][](size);
        for (uint256 i; i < size; i++) {
            bios[i] = _bioDNAById[i + from];
        }
        return bios;
    }

    /**
     * @dev See {ILife-getBioPrice}.
     */
    function getBioPrice() public view override returns (uint256) {
        require(block.timestamp >= SALE_START_TIMESTAMP, "Sale has not started");
        require(totalSupply() < MAX_NFT_SUPPLY, "Sale has already ended");

        uint256 currentSupply = totalSupply();

        if (currentSupply > 9900) {
            return 100000000000000000000; // 9901 - 10000 100 BNB
        } else if (currentSupply > 9500) {
            return 20000000000000000000; // 9501 - 9900 20 BNB
        } else if (currentSupply > 8500) {
            return 10000000000000000000; // 8501  - 9500 10 BNB
        } else if (currentSupply > 4500) {
            return 8000000000000000000; // 4501 - 8500 8 BNB
        } else if (currentSupply > 2500) {
            return 6000000000000000000; // 2501 - 4500 6 BNB
        } else if (currentSupply > 1000) {
            return 4000000000000000000; // 1001 - 2500 4 BNB
        } else if (currentSupply > 100) {
            return 2000000000000000000; // 101 - 1000 2 BNB
        } else {
            return 1000000000000000000; // 0 - 100 1 BNB
        }
    }

    /**
     * @dev See {ILife-isBioExist}.
     */
    function isBioExist(uint8[] memory bioDNA) external view override returns (bool) {
        bytes32 bioHashOriginal = keccak256(abi.encodePacked(bioDNA));

        return _bioExistanceByHash[bioHashOriginal];
    }

    /**
     * @dev See {ILife-mintBio}.
     */
    function mintBio(uint8[] memory bioDNA) external payable override {
        // Bio RLE
        require(totalSupply() < MAX_NFT_SUPPLY, "Sale has already ended");
        require(totalSupply().add(1) <= MAX_NFT_SUPPLY, "Exceeds MAX_NFT_SUPPLY");
        require(getBioPrice() == msg.value, "Ether value sent is not correct");

        bytes32 bioHash = keccak256(abi.encodePacked(bioDNA));
        require(!_bioExistanceByHash[bioHash], "Bio already existed");

        uint256 activeCellCount = 0;
        uint256 totalCellCount = 0;
        for (uint8 i = 0; i < bioDNA.length; i++) {
            totalCellCount = totalCellCount.add(bioDNA[i]);
            if (i % 2 == 1) {
                activeCellCount = activeCellCount.add(bioDNA[i]);
            }
        }

        require(totalCellCount <= 289, "Total cell count should be smaller than 289");
        require(
            activeCellCount >= 5 && activeCellCount <= 48,
            "Active cell count of Bio is not allowed"
        );

        uint256 mintIndex = totalSupply();

        _bioExistanceByHash[bioHash] = true;
        _bioDNAById[mintIndex] = bioDNA;
        _safeMint(msg.sender, mintIndex);
        _pendingWithdrawals[owner()] = _pendingWithdrawals[owner()].add(msg.value);

        emit BioMinted(mintIndex, msg.sender, bioDNA, bioHash);
    }

    modifier saleEnded() {
        require(totalSupply() >= MAX_NFT_SUPPLY, "Bio sale still going");
        _;
    }

    modifier bioExist(uint256 bioId) {
        require(bioId < totalSupply(), "Bio doesn't exist");
        _;
    }

    modifier isBioOwner(uint256 bioId) {
        require(ownerOf(bioId) == msg.sender, "Not the owner of this Bio");
        _;
    }

    /**
     * @dev See {ILife-getBioListing}.
     */
    function getBioListing(uint256 bioId) external view override returns (Listing memory) {
        return _bioListedForSale[bioId];
    }

    /**
     * @dev See {ILife-getListings}.
     */
    function getBioListings(uint256 from, uint256 size)
        external
        view
        override
        returns (Listing[] memory)
    {
        uint256 endBioIndex = from + size;
        require(endBioIndex <= totalSupply(), "Requesting too many listings");

        Listing[] memory listings = new Listing[](size);
        for (uint256 i; i < size; i++) {
            listings[i] = _bioListedForSale[i + from];
        }
        return listings;
    }

    /**
     * @dev See {ILife-getBioBid}.
     */
    function getBioBid(uint256 bioId) external view override returns (Bid memory) {
        return _bioWithBids[bioId];
    }

    /**
     * @dev See {ILife-getBioBids}.
     */
    function getBioBids(uint256 from, uint256 size) external view override returns (Bid[] memory) {
        uint256 endBioIndex = from + size;
        require(endBioIndex <= totalSupply(), "Requesting too many bids");

        Bid[] memory bids = new Bid[](size);
        for (uint256 i; i < totalSupply(); i++) {
            bids[i] = _bioWithBids[i + from];
        }
        return bids;
    }

    /**
     * @dev See {ILife-listBioForSale}.
     */
    function listBioForSale(uint256 bioId, uint256 minValue)
        external
        override
        saleEnded
        bioExist(bioId)
        isBioOwner(bioId)
    {
        _bioListedForSale[bioId] = Listing(
            true,
            bioId,
            msg.sender,
            minValue,
            address(0),
            block.timestamp
        );
        emit BioListed(bioId, minValue, msg.sender, address(0));
    }

    /**
     * @dev See {ILife-listBioForSaleToAddress}.
     */
    function listBioForSaleToAddress(
        uint256 bioId,
        uint256 minValue,
        address toAddress
    ) external override saleEnded bioExist(bioId) isBioOwner(bioId) {
        _bioListedForSale[bioId] = Listing(
            true,
            bioId,
            msg.sender,
            minValue,
            toAddress,
            block.timestamp
        );
        emit BioListed(bioId, minValue, msg.sender, toAddress);
    }

    function _delistBio(uint256 bioId) private saleEnded bioExist(bioId) {
        emit BioDelisted(bioId, _bioListedForSale[bioId].seller);
        delete _bioListedForSale[bioId];
    }

    function _removeBid(uint256 bioId) private saleEnded bioExist(bioId) {
        emit BioBidRemoved(bioId, _bioWithBids[bioId].bidder);
        delete _bioWithBids[bioId];
    }

    /**
     * @dev See {ILife-delistBio}.
     */
    function delistBio(uint256 bioId) external override isBioOwner(bioId) {
        require(_bioListedForSale[bioId].isForSale, "Bio is not for sale");
        _delistBio(bioId);
    }

    /**
     * @dev Return fund if it's not a contract, else add it to pending withdrawals
     * @param receiver Address to receive value
     * @param value value to send
     */
    function _sendValue(address receiver, uint256 value) private {
        if (receiver.isContract() && receiver != msg.sender) {
            _pendingWithdrawals[receiver] = value;
        } else {
            Address.sendValue(payable(receiver), value);
        }
    }

    /**
     * @dev See {ILife-buyBio}.
     */
    function buyBio(uint256 bioId)
        external
        payable
        override
        saleEnded
        bioExist(bioId)
        nonReentrant
    {
        Listing memory listing = _bioListedForSale[bioId];

        require(listing.isForSale, "Bio is not for sale");
        require(
            listing.onlySellTo == address(0) || listing.onlySellTo == msg.sender,
            "Bio is not selling to this address"
        );
        require(ownerOf(bioId) == listing.seller, "This seller is not the owner");
        require(msg.sender != ownerOf(bioId), "This Bio belongs to this address");

        uint256 fees = listing.minValue.mul(_feeFraction).div(_feeBase);
        require(
            msg.value >= listing.minValue + fees,
            "The value send is below sale price plus fees"
        );

        uint256 valueWithoutFees = msg.value.sub(fees);

        _sendValue(ownerOf(bioId), valueWithoutFees);
        _pendingWithdrawals[owner()] = _pendingWithdrawals[owner()].add(fees);
        emit BioBought(bioId, valueWithoutFees, listing.seller, msg.sender);

        _safeTransfer(ownerOf(bioId), msg.sender, bioId, "");

        _delistBio(bioId);

        Bid memory existingBid = _bioWithBids[bioId];
        if (existingBid.bidder == msg.sender) {
            _sendValue(msg.sender, existingBid.value);
            _removeBid(bioId);
        }
    }

    /**
     * @dev See {ILife-enterBidForBio}.
     */
    function enterBidForBio(uint256 bioId)
        external
        payable
        override
        saleEnded
        bioExist(bioId)
        nonReentrant
    {
        require(ownerOf(bioId) != address(0), "This Bio has been burnt");
        require(ownerOf(bioId) != msg.sender, "Owner of Bio doesn't need to bid");
        require(msg.value != 0, "The bid price is too low");

        Bid memory existingBid = _bioWithBids[bioId];
        require(msg.value > existingBid.value, "The bid price is no higher than existing one");

        if (existingBid.value > 0) {
            _sendValue(existingBid.bidder, existingBid.value);
        }
        _bioWithBids[bioId] = Bid(true, bioId, msg.sender, msg.value, block.timestamp);
        emit BioBidEntered(bioId, msg.value, msg.sender);
    }

    /**
     * @dev See {ILife-acceptBidForBio}.
     */
    function acceptBidForBio(uint256 bioId)
        external
        override
        saleEnded
        bioExist(bioId)
        isBioOwner(bioId)
        nonReentrant
    {
        Bid memory existingBid = _bioWithBids[bioId];
        require(existingBid.hasBid && existingBid.value > 0, "This Bio doesn't have a valid bid");

        uint256 fees = existingBid.value.mul(_feeFraction).div(_feeBase + _feeFraction);
        uint256 bioValue = existingBid.value.sub(fees);
        _sendValue(msg.sender, bioValue);
        _pendingWithdrawals[owner()] = _pendingWithdrawals[owner()].add(fees);

        _safeTransfer(msg.sender, existingBid.bidder, bioId, "");
        emit BioBidAccepted(bioId, bioValue, msg.sender, existingBid.bidder);

        _removeBid(bioId);

        if (_bioListedForSale[bioId].isForSale) {
            _delistBio(bioId);
        }
    }

    /**
     * @dev See {ILife-withdrawBidForBio}.
     */
    function withdrawBidForBio(uint256 bioId)
        external
        override
        saleEnded
        bioExist(bioId)
        nonReentrant
    {
        Bid memory existingBid = _bioWithBids[bioId];
        require(existingBid.bidder == msg.sender, "This address doesn't have active bid");

        _sendValue(msg.sender, existingBid.value);

        emit BioBidWithdrawn(bioId, existingBid.value, existingBid.bidder);
        _removeBid(bioId);
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 bioId
    ) public override nonReentrant {
        require(
            _isApprovedOrOwner(_msgSender(), bioId),
            "ERC721: transfer caller is not owner nor approved"
        );

        _transfer(from, to, bioId);

        if (_bioListedForSale[bioId].seller == from) {
            _delistBio(bioId);
        }
        if (_bioWithBids[bioId].bidder == to) {
            _sendValue(_bioWithBids[bioId].bidder, _bioWithBids[bioId].value);
            _removeBid(bioId);
        }
    }

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

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

        if (_bioListedForSale[bioId].seller == from) {
            _delistBio(bioId);
        }
        if (_bioWithBids[bioId].bidder == to) {
            _sendValue(_bioWithBids[bioId].bidder, _bioWithBids[bioId].value);
            _removeBid(bioId);
        }
    }

    /**
     * @dev See {ILife-serviceFee}.
     */
    function serviceFee() external view override returns (uint8, uint8) {
        return (_feeFraction, _feeBase);
    }

    /**
     * @dev See {ILife-pendingWithdrawals}.
     */
    function pendingWithdrawals(address toAddress) external view override returns (uint256) {
        return _pendingWithdrawals[toAddress];
    }

    /**
     * @dev See {ILife-withdraw}.
     */
    function withdraw() external override nonReentrant {
        require(_pendingWithdrawals[msg.sender] > 0, "There is nothing to withdraw");
        _sendValue(msg.sender, _pendingWithdrawals[msg.sender]);
        _pendingWithdrawals[msg.sender] = 0;
    }

    /**
     * @dev Change withdrawal fee percentage.
     * If 1%, then input (1,100)
     * If 0.5%, then input (5,1000)
     * @param feeFraction_ Fraction of withdrawal fee based on feeBase_
     * @param feeBase_ Fraction of withdrawal fee base
     */
    function changeSeriveFee(uint8 feeFraction_, uint8 feeBase_) external onlyOwner {
        require(feeFraction_ <= feeBase_, "Fee fraction exceeded base.");
        uint256 percentage = (feeFraction_ * 1000) / feeBase_;
        require(percentage <= 25, "Attempt to set percentage higher than 2.5%.");

        _feeFraction = feeFraction_;
        _feeBase = feeBase_;
    }
}

File 3 of 17 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;

import "@openzeppelin/contracts/token/ERC721/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);
}

File 4 of 17 : ILife.sol
// SPDX-License-Identifier: AGPL-3.0-or-later

pragma solidity =0.6.12;
pragma experimental ABIEncoderV2;

/**
 * @title NFTKEY Life interface
 */
interface ILife {
    struct Listing {
        bool isForSale;
        uint256 bioId;
        address seller;
        uint256 minValue;
        address onlySellTo;
        uint256 timestamp;
    }

    struct Bid {
        bool hasBid;
        uint256 bioId;
        address bidder;
        uint256 value;
        uint256 timestamp;
    }

    event BioMinted(uint256 indexed bioId, address indexed owner, uint8[] bioDNA, bytes32 bioHash);
    event BioListed(
        uint256 indexed bioId,
        uint256 minValue,
        address indexed fromAddress,
        address indexed toAddress
    );
    event BioDelisted(uint256 indexed bioId, address indexed fromAddress);
    event BioBidEntered(uint256 indexed bioId, uint256 value, address indexed fromAddress);
    event BioBidWithdrawn(uint256 indexed bioId, uint256 value, address indexed fromAddress);
    event BioBidRemoved(uint256 indexed bioId, address indexed fromAddress);
    event BioBought(
        uint256 indexed bioId,
        uint256 value,
        address indexed fromAddress,
        address indexed toAddress
    );
    event BioBidAccepted(
        uint256 indexed bioId,
        uint256 value,
        address indexed fromAddress,
        address indexed toAddress
    );

    /**
     * @dev Gets DNA encoding of a Bio by token Id
     * @param bioId Bio token Id
     * @return Bio DNA encoding
     */
    function getBioDNA(uint256 bioId) external view returns (uint8[] memory);

    /**
     * @dev Gets DNA encoding of a Bios
     * @param from From Bio id
     * @param size Query size
     * @return Bio DNAs
     */
    function getBioDNAs(uint256 from, uint256 size) external view returns (uint8[][] memory);

    /**
     * @dev Gets current Bio Price
     * @return Current Bio Price
     */
    function getBioPrice() external view returns (uint256);

    /**
     * @dev Check if a Bio is already minted or not
     * @param bioDNA Bio DNA encoding
     * @return If Bio exist, or if similar Bio exist
     */
    function isBioExist(uint8[] memory bioDNA) external view returns (bool);

    /**
     * @dev Mint Bio
     * @param bioDNA Bio DNA encoding
     */
    function mintBio(uint8[] memory bioDNA) external payable;

    /**
     * @dev Get Bio listing information
     * @param bioId Bio token id
     * @return Bio Listing detail
     */
    function getBioListing(uint256 bioId) external view returns (Listing memory);

    /**
     * @dev Get Bio listings
     * @param from From Bio id
     * @param size Query size
     * @return Bio Listings
     */
    function getBioListings(uint256 from, uint256 size) external view returns (Listing[] memory);

    /**
     * @dev Get Bio bid information
     * @param bioId Bio token id
     * @return Bio bid detail
     */
    function getBioBid(uint256 bioId) external view returns (Bid memory);

    /**
     * @dev Get Bio bids
     * @param from From Bio id
     * @param size Query size
     * @return Bio bids
     */
    function getBioBids(uint256 from, uint256 size) external view returns (Bid[] memory);

    /**
     * @dev List a Bio for sale
     * @param bioId Bio token id
     * @param minValue Bio minimum value
     */
    function listBioForSale(uint256 bioId, uint256 minValue) external;

    /**
     * @dev List a Bio for sale to a certain address
     * @param bioId Bio token id
     * @param minValue Bio minimum value
     * @param toAddress Address to sell this Bio to
     */
    function listBioForSaleToAddress(
        uint256 bioId,
        uint256 minValue,
        address toAddress
    ) external;

    /**
     * @dev Delist a Bio
     * @param bioId Bio token id
     */
    function delistBio(uint256 bioId) external;

    /**
     * @dev Buy a Bio
     * @param bioId Bio token id
     */
    function buyBio(uint256 bioId) external payable;

    /**
     * @dev Put bid on a Bio
     * @param bioId Bio token id
     */
    function enterBidForBio(uint256 bioId) external payable;

    /**
     * @dev Accept s bid for a Bio
     * @param bioId Bio token id
     */
    function acceptBidForBio(uint256 bioId) external;

    /**
     * @dev Withdraw s bid for a Bio
     * @param bioId Bio token id
     */
    function withdrawBidForBio(uint256 bioId) external;

    /**
     * @dev Returns service fee.
     * @return The first value is fraction, the second one is fraction base
     */
    function serviceFee() external view returns (uint8, uint8);

    /**
     * @dev Get pending withdrawals
     * @param toAddress Address to check withdrawals
     */
    function pendingWithdrawals(address toAddress) external view returns (uint256);

    /**
     * @dev Withdraw ether from this contract
     */
    function withdraw() external;
}

File 5 of 17 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <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 () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), 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 {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

File 6 of 17 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts may inherit from this and call {_registerInterface} to declare
 * their support of an interface.
 */
abstract contract ERC165 is IERC165 {
    /*
     * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7
     */
    bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7;

    /**
     * @dev Mapping of interface ids to whether or not it's supported.
     */
    mapping(bytes4 => bool) private _supportedInterfaces;

    constructor () internal {
        // Derived contracts need only register support for their own interfaces,
        // we register support for ERC165 itself here
        _registerInterface(_INTERFACE_ID_ERC165);
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     *
     * Time complexity O(1), guaranteed to always use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return _supportedInterfaces[interfaceId];
    }

    /**
     * @dev Registers the contract as an implementer of the interface defined by
     * `interfaceId`. Support of the actual ERC165 interface is automatic and
     * registering its interface id is not required.
     *
     * See {IERC165-supportsInterface}.
     *
     * Requirements:
     *
     * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`).
     */
    function _registerInterface(bytes4 interfaceId) internal virtual {
        require(interfaceId != 0xffffffff, "ERC165: invalid interface id");
        _supportedInterfaces[interfaceId] = true;
    }
}

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

pragma solidity >=0.6.0 <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 8 of 17 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b > a) return (false, 0);
        return (true, a - b);
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, 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-contracts/pull/522
        if (a == 0) return (true, 0);
        uint256 c = a * b;
        if (c / a != b) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a / b);
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a % b);
    }

    /**
     * @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");
        return a - b;
    }

    /**
     * @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) {
        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, reverting 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) {
        require(b > 0, "SafeMath: division by zero");
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting 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;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        return a - b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * 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, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * 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, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a % b;
    }
}

File 9 of 17 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 10 of 17 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;

import "./IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {

    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

File 11 of 17 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

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

pragma solidity >=0.6.2 <0.8.0;

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

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

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

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 13 of 17 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <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 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;
    }
}

File 14 of 17 : EnumerableMap.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Library for managing an enumerable variant of Solidity's
 * https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`]
 * type.
 *
 * Maps have the following properties:
 *
 * - Entries are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Entries are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableMap for EnumerableMap.UintToAddressMap;
 *
 *     // Declare a set state variable
 *     EnumerableMap.UintToAddressMap private myMap;
 * }
 * ```
 *
 * As of v3.0.0, only maps of type `uint256 -> address` (`UintToAddressMap`) are
 * supported.
 */
library EnumerableMap {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Map type with
    // bytes32 keys and values.
    // The Map implementation uses private functions, and user-facing
    // implementations (such as Uint256ToAddressMap) are just wrappers around
    // the underlying Map.
    // This means that we can only create new EnumerableMaps for types that fit
    // in bytes32.

    struct MapEntry {
        bytes32 _key;
        bytes32 _value;
    }

    struct Map {
        // Storage of map keys and values
        MapEntry[] _entries;

        // Position of the entry defined by a key in the `entries` array, plus 1
        // because index 0 means a key is not in the map.
        mapping (bytes32 => uint256) _indexes;
    }

    /**
     * @dev Adds a key-value pair to a map, or updates the value for an existing
     * key. O(1).
     *
     * Returns true if the key was added to the map, that is if it was not
     * already present.
     */
    function _set(Map storage map, bytes32 key, bytes32 value) private returns (bool) {
        // We read and store the key's index to prevent multiple reads from the same storage slot
        uint256 keyIndex = map._indexes[key];

        if (keyIndex == 0) { // Equivalent to !contains(map, key)
            map._entries.push(MapEntry({ _key: key, _value: value }));
            // The entry is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            map._indexes[key] = map._entries.length;
            return true;
        } else {
            map._entries[keyIndex - 1]._value = value;
            return false;
        }
    }

    /**
     * @dev Removes a key-value pair from a map. O(1).
     *
     * Returns true if the key was removed from the map, that is if it was present.
     */
    function _remove(Map storage map, bytes32 key) private returns (bool) {
        // We read and store the key's index to prevent multiple reads from the same storage slot
        uint256 keyIndex = map._indexes[key];

        if (keyIndex != 0) { // Equivalent to contains(map, key)
            // To delete a key-value pair from the _entries array in O(1), we swap the entry to delete with the last one
            // in the array, and then remove the last entry (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = keyIndex - 1;
            uint256 lastIndex = map._entries.length - 1;

            // When the entry to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            MapEntry storage lastEntry = map._entries[lastIndex];

            // Move the last entry to the index where the entry to delete is
            map._entries[toDeleteIndex] = lastEntry;
            // Update the index for the moved entry
            map._indexes[lastEntry._key] = toDeleteIndex + 1; // All indexes are 1-based

            // Delete the slot where the moved entry was stored
            map._entries.pop();

            // Delete the index for the deleted slot
            delete map._indexes[key];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the key is in the map. O(1).
     */
    function _contains(Map storage map, bytes32 key) private view returns (bool) {
        return map._indexes[key] != 0;
    }

    /**
     * @dev Returns the number of key-value pairs in the map. O(1).
     */
    function _length(Map storage map) private view returns (uint256) {
        return map._entries.length;
    }

   /**
    * @dev Returns the key-value pair stored at position `index` in the map. O(1).
    *
    * Note that there are no guarantees on the ordering of entries inside the
    * array, and it may change when more entries are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function _at(Map storage map, uint256 index) private view returns (bytes32, bytes32) {
        require(map._entries.length > index, "EnumerableMap: index out of bounds");

        MapEntry storage entry = map._entries[index];
        return (entry._key, entry._value);
    }

    /**
     * @dev Tries to returns the value associated with `key`.  O(1).
     * Does not revert if `key` is not in the map.
     */
    function _tryGet(Map storage map, bytes32 key) private view returns (bool, bytes32) {
        uint256 keyIndex = map._indexes[key];
        if (keyIndex == 0) return (false, 0); // Equivalent to contains(map, key)
        return (true, map._entries[keyIndex - 1]._value); // All indexes are 1-based
    }

    /**
     * @dev Returns the value associated with `key`.  O(1).
     *
     * Requirements:
     *
     * - `key` must be in the map.
     */
    function _get(Map storage map, bytes32 key) private view returns (bytes32) {
        uint256 keyIndex = map._indexes[key];
        require(keyIndex != 0, "EnumerableMap: nonexistent key"); // Equivalent to contains(map, key)
        return map._entries[keyIndex - 1]._value; // All indexes are 1-based
    }

    /**
     * @dev Same as {_get}, with a custom error message when `key` is not in the map.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {_tryGet}.
     */
    function _get(Map storage map, bytes32 key, string memory errorMessage) private view returns (bytes32) {
        uint256 keyIndex = map._indexes[key];
        require(keyIndex != 0, errorMessage); // Equivalent to contains(map, key)
        return map._entries[keyIndex - 1]._value; // All indexes are 1-based
    }

    // UintToAddressMap

    struct UintToAddressMap {
        Map _inner;
    }

    /**
     * @dev Adds a key-value pair to a map, or updates the value for an existing
     * key. O(1).
     *
     * Returns true if the key was added to the map, that is if it was not
     * already present.
     */
    function set(UintToAddressMap storage map, uint256 key, address value) internal returns (bool) {
        return _set(map._inner, bytes32(key), bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the key was removed from the map, that is if it was present.
     */
    function remove(UintToAddressMap storage map, uint256 key) internal returns (bool) {
        return _remove(map._inner, bytes32(key));
    }

    /**
     * @dev Returns true if the key is in the map. O(1).
     */
    function contains(UintToAddressMap storage map, uint256 key) internal view returns (bool) {
        return _contains(map._inner, bytes32(key));
    }

    /**
     * @dev Returns the number of elements in the map. O(1).
     */
    function length(UintToAddressMap storage map) internal view returns (uint256) {
        return _length(map._inner);
    }

   /**
    * @dev Returns the element stored at position `index` in the set. O(1).
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(UintToAddressMap storage map, uint256 index) internal view returns (uint256, address) {
        (bytes32 key, bytes32 value) = _at(map._inner, index);
        return (uint256(key), address(uint160(uint256(value))));
    }

    /**
     * @dev Tries to returns the value associated with `key`.  O(1).
     * Does not revert if `key` is not in the map.
     *
     * _Available since v3.4._
     */
    function tryGet(UintToAddressMap storage map, uint256 key) internal view returns (bool, address) {
        (bool success, bytes32 value) = _tryGet(map._inner, bytes32(key));
        return (success, address(uint160(uint256(value))));
    }

    /**
     * @dev Returns the value associated with `key`.  O(1).
     *
     * Requirements:
     *
     * - `key` must be in the map.
     */
    function get(UintToAddressMap storage map, uint256 key) internal view returns (address) {
        return address(uint160(uint256(_get(map._inner, bytes32(key)))));
    }

    /**
     * @dev Same as {get}, with a custom error message when `key` is not in the map.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryGet}.
     */
    function get(UintToAddressMap storage map, uint256 key, string memory errorMessage) internal view returns (address) {
        return address(uint160(uint256(_get(map._inner, bytes32(key), errorMessage))));
    }
}

File 15 of 17 : EnumerableSet.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;

        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping (bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) { // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            bytes32 lastvalue = set._values[lastIndex];

            // Move the last value to the index where the value to delete is
            set._values[toDeleteIndex] = lastvalue;
            // Update the index for the moved value
            set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        require(set._values.length > index, "EnumerableSet: index out of bounds");
        return set._values[index];
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }


    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }
}

File 16 of 17 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <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 () internal {
        _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 make 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 17 of 17 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    /**
     * @dev Converts a `uint256` to its ASCII `string` 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);
        uint256 index = digits - 1;
        temp = value;
        while (temp != 0) {
            buffer[index--] = bytes1(uint8(48 + temp % 10));
            temp /= 10;
        }
        return string(buffer);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"}],"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":"uint256","name":"bioId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":true,"internalType":"address","name":"fromAddress","type":"address"},{"indexed":true,"internalType":"address","name":"toAddress","type":"address"}],"name":"BioBidAccepted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"bioId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":true,"internalType":"address","name":"fromAddress","type":"address"}],"name":"BioBidEntered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"bioId","type":"uint256"},{"indexed":true,"internalType":"address","name":"fromAddress","type":"address"}],"name":"BioBidRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"bioId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":true,"internalType":"address","name":"fromAddress","type":"address"}],"name":"BioBidWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"bioId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":true,"internalType":"address","name":"fromAddress","type":"address"},{"indexed":true,"internalType":"address","name":"toAddress","type":"address"}],"name":"BioBought","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"bioId","type":"uint256"},{"indexed":true,"internalType":"address","name":"fromAddress","type":"address"}],"name":"BioDelisted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"bioId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"minValue","type":"uint256"},{"indexed":true,"internalType":"address","name":"fromAddress","type":"address"},{"indexed":true,"internalType":"address","name":"toAddress","type":"address"}],"name":"BioListed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"bioId","type":"uint256"},{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint8[]","name":"bioDNA","type":"uint8[]"},{"indexed":false,"internalType":"bytes32","name":"bioHash","type":"bytes32"}],"name":"BioMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_NFT_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SALE_START_TIMESTAMP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"bioId","type":"uint256"}],"name":"acceptBidForBio","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"bioId","type":"uint256"}],"name":"buyBio","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint8","name":"feeFraction_","type":"uint8"},{"internalType":"uint8","name":"feeBase_","type":"uint8"}],"name":"changeSeriveFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"bioId","type":"uint256"}],"name":"delistBio","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"bioId","type":"uint256"}],"name":"enterBidForBio","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"bioId","type":"uint256"}],"name":"getBioBid","outputs":[{"components":[{"internalType":"bool","name":"hasBid","type":"bool"},{"internalType":"uint256","name":"bioId","type":"uint256"},{"internalType":"address","name":"bidder","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"timestamp","type":"uint256"}],"internalType":"struct ILife.Bid","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"from","type":"uint256"},{"internalType":"uint256","name":"size","type":"uint256"}],"name":"getBioBids","outputs":[{"components":[{"internalType":"bool","name":"hasBid","type":"bool"},{"internalType":"uint256","name":"bioId","type":"uint256"},{"internalType":"address","name":"bidder","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"timestamp","type":"uint256"}],"internalType":"struct ILife.Bid[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"bioId","type":"uint256"}],"name":"getBioDNA","outputs":[{"internalType":"uint8[]","name":"","type":"uint8[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"from","type":"uint256"},{"internalType":"uint256","name":"size","type":"uint256"}],"name":"getBioDNAs","outputs":[{"internalType":"uint8[][]","name":"","type":"uint8[][]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"bioId","type":"uint256"}],"name":"getBioListing","outputs":[{"components":[{"internalType":"bool","name":"isForSale","type":"bool"},{"internalType":"uint256","name":"bioId","type":"uint256"},{"internalType":"address","name":"seller","type":"address"},{"internalType":"uint256","name":"minValue","type":"uint256"},{"internalType":"address","name":"onlySellTo","type":"address"},{"internalType":"uint256","name":"timestamp","type":"uint256"}],"internalType":"struct ILife.Listing","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"from","type":"uint256"},{"internalType":"uint256","name":"size","type":"uint256"}],"name":"getBioListings","outputs":[{"components":[{"internalType":"bool","name":"isForSale","type":"bool"},{"internalType":"uint256","name":"bioId","type":"uint256"},{"internalType":"address","name":"seller","type":"address"},{"internalType":"uint256","name":"minValue","type":"uint256"},{"internalType":"address","name":"onlySellTo","type":"address"},{"internalType":"uint256","name":"timestamp","type":"uint256"}],"internalType":"struct ILife.Listing[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBioPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"uint8[]","name":"bioDNA","type":"uint8[]"}],"name":"isBioExist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"bioId","type":"uint256"},{"internalType":"uint256","name":"minValue","type":"uint256"}],"name":"listBioForSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"bioId","type":"uint256"},{"internalType":"uint256","name":"minValue","type":"uint256"},{"internalType":"address","name":"toAddress","type":"address"}],"name":"listBioForSaleToAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8[]","name":"bioDNA","type":"uint8[]"}],"name":"mintBio","outputs":[],"stateMutability":"payable","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":[{"internalType":"address","name":"toAddress","type":"address"}],"name":"pendingWithdrawals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"bioId","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":"bioId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"serviceFee","outputs":[{"internalType":"uint8","name":"","type":"uint8"},{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","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":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"bioId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"bioId","type":"uint256"}],"name":"withdrawBidForBio","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052600d8054600160ff199091161761ff0019166164001790553480156200002957600080fd5b5060405162005e5438038062005e548339810160408190526200004c91620002ce565b8181620000606301ffc9a760e01b6200012c565b8151620000759060069060208501906200018b565b5080516200008b9060079060208401906200018b565b506200009e6380ac58cd60e01b6200012c565b620000b0635b5e139f60e01b6200012c565b620000c263780e9d6360e01b6200012c565b5060009050620000d162000187565b600880546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350506001600955506200036c565b6001600160e01b03198082161415620001625760405162461bcd60e51b8152600401620001599062000335565b60405180910390fd5b6001600160e01b0319166000908152602081905260409020805460ff19166001179055565b3390565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620001ce57805160ff1916838001178555620001fe565b82800160010185558215620001fe579182015b82811115620001fe578251825591602001919060010190620001e1565b506200020c92915062000210565b5090565b5b808211156200020c576000815560010162000211565b600082601f83011262000238578081fd5b81516001600160401b03808211156200024f578283fd5b6040516020601f8401601f191682018101838111838210171562000271578586fd5b806040525081945083825286818588010111156200028e57600080fd5b600092505b83831015620002b2578583018101518284018201529182019162000293565b83831115620002c45760008185840101525b5050505092915050565b60008060408385031215620002e1578182fd5b82516001600160401b0380821115620002f8578384fd5b620003068683870162000227565b935060208501519150808211156200031c578283fd5b506200032b8582860162000227565b9150509250929050565b6020808252601c908201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604082015260600190565b615ad8806200037c6000396000f3fe6080604052600436106102bb5760003560e01c80638abdf5aa1161016e578063d802115d116100cb578063ee9871781161007f578063f2fde38b11610064578063f2fde38b14610759578063f3f4370314610779578063f574b9d014610799576102bb565b8063ee987178146106ff578063f1d914c61461072c576102bb565b8063e43ad3f9116100b0578063e43ad3f91461069f578063e4bd48cb146106bf578063e985e9c5146106df576102bb565b8063d802115d1461066c578063df531bd91461068c576102bb565b806395d89b4111610122578063a6c57d3011610107578063a6c57d3014610617578063b5077f4414610637578063b88d4fde1461064c576102bb565b806395d89b41146105e2578063a22cb465146105f7576102bb565b80638da5cb5b116101535780638da5cb5b1461058b57806393e58ec4146105a0578063946807fd146105cd576102bb565b80638abdf5aa1461053b5780638b8b9d7c1461055e576102bb565b80632f745c591161021c5780636352211e116101d057806370a08231116101b557806370a08231146104f3578063715018a614610513578063875e403b14610528576102bb565b80636352211e146104be578063692ab1b5146104de576102bb565b806342842e0e1161020157806342842e0e1461045e5780634f6ccce71461047e5780635eef51ee1461049e576102bb565b80632f745c59146104295780633ccfd60b14610449576102bb565b806318160ddd11610273578063190df01611610258578063190df016146103d657806323b872dd146103e957806329ab16f814610409576102bb565b806318160ddd14610394578063189180b1146103b6576102bb565b8063081812fc116102a4578063081812fc14610318578063095ea7b3146103455780630eee166f14610367576102bb565b806301ffc9a7146102c057806306fdde03146102f6575b600080fd5b3480156102cc57600080fd5b506102e06102db36600461469f565b6107c6565b6040516102ed9190614a9c565b60405180910390f35b34801561030257600080fd5b5061030b6107fd565b6040516102ed9190614aa7565b34801561032457600080fd5b506103386103333660046146d7565b6108b2565b6040516102ed91906148ef565b34801561035157600080fd5b506103656103603660046145d8565b610925565b005b34801561037357600080fd5b506103876103823660046146d7565b610a25565b6040516102ed9190614a67565b3480156103a057600080fd5b506103a9610aa5565b6040516102ed9190615964565b3480156103c257600080fd5b506103656103d13660046146ef565b610ab6565b6103656103e43660046146d7565b610cb5565b3480156103f557600080fd5b50610365610404366004614489565b6111c4565b34801561041557600080fd5b506103656104243660046146d7565b611311565b34801561043557600080fd5b506103a96104443660046145d8565b611642565b34801561045557600080fd5b5061036561167a565b34801561046a57600080fd5b50610365610479366004614489565b611733565b34801561048a57600080fd5b506103a96104993660046146d7565b61174e565b3480156104aa57600080fd5b506103656104b9366004614748565b611764565b3480156104ca57600080fd5b506103386104d93660046146d7565b6118d3565b3480156104ea57600080fd5b506103a96118fb565b3480156104ff57600080fd5b506103a961050e36600461443a565b611a5c565b34801561051f57600080fd5b50610365611ad9565b6103656105363660046146d7565b611bbb565b34801561054757600080fd5b50610550611f3c565b6040516102ed92919061596d565b34801561056a57600080fd5b5061057e6105793660046146d7565b611f4f565b6040516102ed9190615956565b34801561059757600080fd5b50610338611fd0565b3480156105ac57600080fd5b506105c06105bb3660046146d7565b611fec565b6040516102ed9190615948565b3480156105d957600080fd5b506103a961205e565b3480156105ee57600080fd5b5061030b612066565b34801561060357600080fd5b5061036561061236600461459d565b6120e5565b34801561062357600080fd5b506103656106323660046146d7565b61221f565b34801561064357600080fd5b506103a96122cc565b34801561065857600080fd5b506103656106673660046144c9565b6122d2565b34801561067857600080fd5b50610365610687366004614710565b612421565b61036561069a366004614602565b6126a8565b3480156106ab57600080fd5b506103656106ba3660046146d7565b612a30565b3480156106cb57600080fd5b506102e06106da366004614602565b612c09565b3480156106eb57600080fd5b506102e06106fa366004614455565b612c6a565b34801561070b57600080fd5b5061071f61071a3660046146ef565b612ca5565b6040516102ed9190614959565b34801561073857600080fd5b5061074c6107473660046146ef565b612de8565b6040516102ed9190614a25565b34801561076557600080fd5b5061036561077436600461443a565b612f28565b34801561078557600080fd5b506103a961079436600461443a565b613076565b3480156107a557600080fd5b506107b96107b43660046146ef565b61309e565b6040516102ed91906149d7565b7fffffffff000000000000000000000000000000000000000000000000000000001660009081526020819052604090205460ff1690565b60068054604080516020601f60027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108a75780601f1061087c576101008083540402835291602001916108a7565b820191906000526020600020905b81548152906001019060200180831161088a57829003601f168201915b505050505090505b90565b60006108bd826131d6565b6108fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390615464565b60405180910390fd5b5060009081526004602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b6000610930826118d3565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610998576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061561e565b8073ffffffffffffffffffffffffffffffffffffffff166109b76131e3565b73ffffffffffffffffffffffffffffffffffffffff1614806109e057506109e0816106fa6131e3565b610a16576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061515c565b610a2083836131e7565b505050565b6000818152600b6020908152604091829020805483518184028101840190945280845260609392830182828015610a9957602002820191906000526020600020906000905b825461010083900a900460ff16815260206001928301818104948501949093039092029101808411610a6a5790505b50505050509050919050565b6000610ab16002613287565b905090565b612710610ac1610aa5565b1015610af9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906155b0565b81610b02610aa5565b8110610b3a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061542d565b8233610b45826118d3565b73ffffffffffffffffffffffffffffffffffffffff1614610b92576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614cd1565b6040805160c0810182526001808252602080830188815233848601818152606086018a81526000608088018181524260a08a019081528e8352600e909752898220985189549015157fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00909116178955945196880196909655905160028701805473ffffffffffffffffffffffffffffffffffffffff9283167fffffffffffffffffffffffff000000000000000000000000000000000000000091821617909155915160038801559251600487018054919094169116179091559051600590930192909255915186907fa7a584e7624acac024b64f75bf17052ca8d2b451fa4b0272491f763e499f1baf90610ca7908890615964565b60405180910390a450505050565b612710610cc0610aa5565b1015610cf8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906155b0565b80610d01610aa5565b8110610d39576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061542d565b60026009541415610d76576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061586e565b6002600955610d83614286565b506000828152600e6020908152604091829020825160c081018452815460ff161515808252600183015493820193909352600282015473ffffffffffffffffffffffffffffffffffffffff9081169482019490945260038201546060820152600482015490931660808401526005015460a0830152610e2e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906155e7565b608081015173ffffffffffffffffffffffffffffffffffffffff161580610e6e5750608081015173ffffffffffffffffffffffffffffffffffffffff1633145b610ea4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906156b2565b806040015173ffffffffffffffffffffffffffffffffffffffff16610ec8846118d3565b73ffffffffffffffffffffffffffffffffffffffff1614610f15576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390615216565b610f1e836118d3565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610f83576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390615913565b600d546060820151600091610fad9160ff6101008304811692610fa7929116613292565b906132e6565b905080826060015101341015610fef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614f43565b6000610ffb3483613332565b905061100f611009866118d3565b82613374565b61104c82600a600061101f611fd0565b73ffffffffffffffffffffffffffffffffffffffff168152602081019190915260400160002054906133f1565b600a6000611058611fd0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055503373ffffffffffffffffffffffffffffffffffffffff16836040015173ffffffffffffffffffffffffffffffffffffffff16867fb6f21281116e004e8f1dae8d7aac53d87a85c152f36874873ecb704e31f46779846040516110f89190615964565b60405180910390a461112361110c866118d3565b338760405180602001604052806000815250613430565b61112c85613483565b6111346142ea565b506000858152600f6020908152604091829020825160a081018452815460ff1615158152600182015492810192909252600281015473ffffffffffffffffffffffffffffffffffffffff1692820183905260038101546060830152600401546080820152903314156111b7576111ae338260600151613374565b6111b7866135dc565b5050600160095550505050565b60026009541415611201576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061586e565b60026009556112176112116131e3565b82613727565b61124d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061570f565b6112588383836137fa565b6000818152600e602052604090206002015473ffffffffffffffffffffffffffffffffffffffff848116911614156112935761129381613483565b6000818152600f602052604090206002015473ffffffffffffffffffffffffffffffffffffffff83811691161415611307576000818152600f6020526040902060028101546003909101546112fe9173ffffffffffffffffffffffffffffffffffffffff1690613374565b611307816135dc565b5050600160095550565b61271061131c610aa5565b1015611354576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906155b0565b8061135d610aa5565b8110611395576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061542d565b81336113a0826118d3565b73ffffffffffffffffffffffffffffffffffffffff16146113ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614cd1565b6002600954141561142a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061586e565b60026009556114376142ea565b506000838152600f6020908152604091829020825160a081018452815460ff16158015808352600184015494830194909452600283015473ffffffffffffffffffffffffffffffffffffffff1694820194909452600382015460608201526004909101546080820152916114af575060008160600151115b6114e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906154f6565b600d54606082015160009161150f9160ff808316610100909304811683011691610fa79190613292565b9050600061152a82846060015161333290919063ffffffff16565b90506115363382613374565b61154682600a600061101f611fd0565b600a6000611552611fd0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506115af3384604001518860405180602001604052806000815250613430565b826040015173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16877f6c0f88fbd661e3830b0dbcc98bc114ff15a9c0c3097587762abd618ab9a9920c846040516116119190615964565b60405180910390a4611622866135dc565b6000868152600e602052604090205460ff16156111b7576111b786613483565b73ffffffffffffffffffffffffffffffffffffffff821660009081526001602052604081206116719083613997565b90505b92915050565b600260095414156116b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061586e565b6002600955336000908152600a6020526040902054611702576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906152aa565b336000818152600a602052604090205461171c9190613374565b336000908152600a60205260408120556001600955565b610a20838383604051806020016040528060008152506122d2565b60008061175c6002846139a3565b509392505050565b61176c6131e3565b73ffffffffffffffffffffffffffffffffffffffff1661178a611fd0565b73ffffffffffffffffffffffffffffffffffffffff16146117d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906154c1565b8060ff168260ff161115611817576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906157a3565b60008160ff168360ff166103e80261ffff168161183057fe5b0461ffff1690506019811115611872576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906150ff565b50600d805460ff928316610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff949093167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff009091161792909216179055565b600061167482604051806060016040528060298152602001615a7a60299139600291906139bf565b6000636055f8d842101561193b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390615837565b612710611946610aa5565b1061197d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061567b565b6000611987610aa5565b90506126ac8111156119a55768056bc75e2d631000009150506108af565b61251c8111156119c1576801158e460913d000009150506108af565b6121348111156119dc57678ac7230489e800009150506108af565b6111948111156119f757676f05b59d3b2000009150506108af565b6109c4811115611a12576753444835ec5800009150506108af565b6103e8811115611a2d57673782dace9d9000009150506108af565b6064811115611a4757671bc16d674ec800009150506108af565b670de0b6b3a76400009150506108af565b5090565b600073ffffffffffffffffffffffffffffffffffffffff8216611aab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906151b9565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260016020526040902061167490613287565b611ae16131e3565b73ffffffffffffffffffffffffffffffffffffffff16611aff611fd0565b73ffffffffffffffffffffffffffffffffffffffff1614611b4c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906154c1565b60085460405160009173ffffffffffffffffffffffffffffffffffffffff16907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600880547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b612710611bc6610aa5565b1015611bfe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906155b0565b80611c07610aa5565b8110611c3f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061542d565b60026009541415611c7c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061586e565b60026009556000611c8c836118d3565b73ffffffffffffffffffffffffffffffffffffffff161415611cda576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614b4c565b33611ce4836118d3565b73ffffffffffffffffffffffffffffffffffffffff161415611d32576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614aba565b34611d69576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390615034565b611d716142ea565b506000828152600f6020908152604091829020825160a081018452815460ff1615158152600182015492810192909252600281015473ffffffffffffffffffffffffffffffffffffffff16928201929092526003820154606082018190526004909201546080820152903411611e13576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390615373565b606081015115611e2f57611e2f81604001518260600151613374565b6040805160a08101825260018082526020808301878152338486018181523460608701818152426080890190815260008d8152600f90975295899020975188547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016901515178855935195870195909555516002860180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9092169190911790559051600385015590516004909301929092559151909185917fdc9b8e354a80160559945b618a792a117f9b4da69e87053005fb7b6ffa3b02a091611f2a91615964565b60405180910390a35050600160095550565b600d5460ff808216916101009004169091565b611f57614286565b506000908152600e6020908152604091829020825160c081018452815460ff1615158152600182015492810192909252600281015473ffffffffffffffffffffffffffffffffffffffff90811693830193909352600381015460608301526004810154909216608082015260059091015460a082015290565b60085473ffffffffffffffffffffffffffffffffffffffff1690565b611ff46142ea565b506000908152600f6020908152604091829020825160a081018452815460ff1615158152600182015492810192909252600281015473ffffffffffffffffffffffffffffffffffffffff169282019290925260038201546060820152600490910154608082015290565b636055f8d881565b60078054604080516020601f60027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108a75780601f1061087c576101008083540402835291602001916108a7565b6120ed6131e3565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612152576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614e41565b806005600061215f6131e3565b73ffffffffffffffffffffffffffffffffffffffff90811682526020808301939093526040918201600090812091871680825291909352912080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016921515929092179091556121ce6131e3565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516122139190614a9c565b60405180910390a35050565b803361222a826118d3565b73ffffffffffffffffffffffffffffffffffffffff1614612277576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614cd1565b6000828152600e602052604090205460ff166122bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906155e7565b6122c882613483565b5050565b61271081565b6002600954141561230f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061586e565b600260095561232561231f6131e3565b83613727565b61235b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061570f565b61236784848484613430565b6000828152600e602052604090206002015473ffffffffffffffffffffffffffffffffffffffff858116911614156123a2576123a282613483565b6000828152600f602052604090206002015473ffffffffffffffffffffffffffffffffffffffff84811691161415612416576000828152600f60205260409020600281015460039091015461240d9173ffffffffffffffffffffffffffffffffffffffff1690613374565b612416826135dc565b505060016009555050565b61271061242c610aa5565b1015612464576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906155b0565b8261246d610aa5565b81106124a5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061542d565b83336124b0826118d3565b73ffffffffffffffffffffffffffffffffffffffff16146124fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614cd1565b6040518060c001604052806001151581526020018681526020013373ffffffffffffffffffffffffffffffffffffffff1681526020018581526020018473ffffffffffffffffffffffffffffffffffffffff16815260200142815250600e600087815260200190815260200160002060008201518160000160006101000a81548160ff0219169083151502179055506020820151816001015560408201518160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506060820151816003015560808201518160040160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060a082015181600501559050508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16867fa7a584e7624acac024b64f75bf17052ca8d2b451fa4b0272491f763e499f1baf876040516126999190615964565b60405180910390a45050505050565b6127106126b3610aa5565b106126ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061567b565b61271061270060016126fa610aa5565b906133f1565b1115612738576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614d3f565b346127416118fb565b14612778576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614e78565b60008160405160200161278b919061489a565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815291815281516020928301206000818152600c90935291205490915060ff161561280b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614dad565b60008060005b84518160ff16101561288d57612849858260ff168151811061282f57fe5b602002602001015160ff16836133f190919063ffffffff16565b91506001808216141561288557612882858260ff168151811061286857fe5b602002602001015160ff16846133f190919063ffffffff16565b92505b600101612811565b506101218111156128ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614bba565b600582101580156128dc575060308211155b612912576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906152e1565b600061291c610aa5565b6000858152600c6020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055838352600b82529091208751929350612973929091880190614331565b5061297e33826139d6565b61298e34600a600061101f611fd0565b600a600061299a611fd0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055503373ffffffffffffffffffffffffffffffffffffffff16817f7615a5553a077d849f3e45b912c5dd22a4ea8cdde52766815317ed46f4a24add8787604051612a21929190614a7a565b60405180910390a35050505050565b612710612a3b610aa5565b1015612a73576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906155b0565b80612a7c610aa5565b8110612ab4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061542d565b60026009541415612af1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061586e565b6002600955612afe6142ea565b506000828152600f6020908152604091829020825160a081018452815460ff1615158152600182015492810192909252600281015473ffffffffffffffffffffffffffffffffffffffff1692820183905260038101546060830152600401546080820152903314612b9b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906157da565b612ba9338260600151613374565b806040015173ffffffffffffffffffffffffffffffffffffffff16837f17e872a21f557a840a224a0ae811e787e6f1fffc01ff734c770a5ffec7f36f738360600151604051612bf89190615964565b60405180910390a3611307836135dc565b60008082604051602001612c1d919061489a565b604080518083037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe001815291815281516020928301206000908152600c90925290205460ff169392505050565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260056020908152604080832093909416825291909152205460ff1690565b6060828201612cb2610aa5565b811115612ceb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614b83565b60608367ffffffffffffffff81118015612d0457600080fd5b50604051908082528060200260200182016040528015612d3857816020015b6060815260200190600190039081612d235790505b50905060005b84811015612ddf578086016000908152600b602090815260409182902080548351818402810184019094528084529091830182828015612dbb57602002820191906000526020600020906000905b825461010083900a900460ff16815260206001928301818104948501949093039092029101808411612d8c5790505b5050505050828281518110612dcc57fe5b6020908102919091010152600101612d3e565b50949350505050565b6060828201612df5610aa5565b811115612e2e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906158a5565b60608367ffffffffffffffff81118015612e4757600080fd5b50604051908082528060200260200182016040528015612e8157816020015b612e6e614286565b815260200190600190039081612e665790505b50905060005b84811015612ddf578086016000908152600e6020908152604091829020825160c081018452815460ff1615158152600182015492810192909252600281015473ffffffffffffffffffffffffffffffffffffffff90811693830193909352600381015460608301526004810154909216608082015260059091015460a08201528251839083908110612f1557fe5b6020908102919091010152600101612e87565b612f306131e3565b73ffffffffffffffffffffffffffffffffffffffff16612f4e611fd0565b73ffffffffffffffffffffffffffffffffffffffff1614612f9b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906154c1565b73ffffffffffffffffffffffffffffffffffffffff8116612fe8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614c74565b60085460405173ffffffffffffffffffffffffffffffffffffffff8084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600880547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b73ffffffffffffffffffffffffffffffffffffffff166000908152600a602052604090205490565b60608282016130ab610aa5565b8111156130e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906158dc565b60608367ffffffffffffffff811180156130fd57600080fd5b5060405190808252806020026020018201604052801561313757816020015b6131246142ea565b81526020019060019003908161311c5790505b50905060005b613145610aa5565b811015612ddf578086016000908152600f6020908152604091829020825160a081018452815460ff1615158152600182015492810192909252600281015473ffffffffffffffffffffffffffffffffffffffff169282019290925260038201546060820152600490910154608082015282518390839081106131c357fe5b602090810291909101015260010161313d565b60006116746002836139f0565b3390565b600081815260046020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff84169081179091558190613241826118d3565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611674826139fc565b6000826132a157506000611674565b828202828482816132ae57fe5b0414611671576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906153d0565b6000808211613321576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906150c8565b81838161332a57fe5b049392505050565b60008282111561336e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614eaf565b50900390565b6133938273ffffffffffffffffffffffffffffffffffffffff16613a00565b80156133b5575073ffffffffffffffffffffffffffffffffffffffff82163314155b156133e75773ffffffffffffffffffffffffffffffffffffffff82166000908152600a602052604090208190556122c8565b6122c88282613a06565b600082820183811015611671576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614d76565b61343b8484846137fa565b61344784848484613ae3565b61347d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614c17565b50505050565b61271061348e610aa5565b10156134c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906155b0565b806134cf610aa5565b8110613507576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061542d565b6000828152600e602052604080822060020154905173ffffffffffffffffffffffffffffffffffffffff9091169184917f7d28b5b2b1d0333cb7130071c3b48ef217bc23e449130b4b88c2fdf44ed75b609190a3506000908152600e6020526040812080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00168155600181018290556002810180547fffffffffffffffffffffffff000000000000000000000000000000000000000090811690915560038201839055600482018054909116905560050155565b6127106135e7610aa5565b101561361f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f3906155b0565b80613628610aa5565b8110613660576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061542d565b6000828152600f602052604080822060020154905173ffffffffffffffffffffffffffffffffffffffff9091169184917fdca36ac865d5deb970c0388e8cb58447a3a0fc86fccc2518c7046d185893c3c19190a3506000908152600f6020526040812080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00168155600181018290556002810180547fffffffffffffffffffffffff00000000000000000000000000000000000000001690556003810182905560040155565b6000613732826131d6565b613768576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061506b565b6000613773836118d3565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806137e257508373ffffffffffffffffffffffffffffffffffffffff166137ca846108b2565b73ffffffffffffffffffffffffffffffffffffffff16145b806137f257506137f28185612c6a565b949350505050565b8273ffffffffffffffffffffffffffffffffffffffff1661381a826118d3565b73ffffffffffffffffffffffffffffffffffffffff1614613867576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390615553565b73ffffffffffffffffffffffffffffffffffffffff82166138b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614de4565b6138bf838383610a20565b6138ca6000826131e7565b73ffffffffffffffffffffffffffffffffffffffff831660009081526001602052604090206138f99082613c50565b5073ffffffffffffffffffffffffffffffffffffffff821660009081526001602052604090206139299082613c5c565b5061393660028284613c68565b50808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60006116718383613c8b565b60008080806139b28686613cea565b9097909650945050505050565b60006139cc848484613d60565b90505b9392505050565b6122c8828260405180602001604052806000815250613dd9565b60006116718383613e26565b5490565b3b151590565b80471015613a40576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614fa0565b60008273ffffffffffffffffffffffffffffffffffffffff1682604051613a66906108af565b60006040518083038185875af1925050503d8060008114613aa3576040519150601f19603f3d011682016040523d82523d6000602084013e613aa8565b606091505b5050905080610a20576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614ee6565b6000613b048473ffffffffffffffffffffffffffffffffffffffff16613a00565b613b10575060016137f2565b6060613be87f150b7a0200000000000000000000000000000000000000000000000000000000613b3e6131e3565b888787604051602401613b549493929190614910565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050604051806060016040528060328152602001615a486032913973ffffffffffffffffffffffffffffffffffffffff88169190613e3e565b9050600081806020019051810190613c0091906146bb565b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001492505050949350505050565b60006116718383613e4d565b60006116718383613f31565b60006139cc848473ffffffffffffffffffffffffffffffffffffffff8516613f7b565b81546000908210613cc8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614aef565b826000018281548110613cd757fe5b9060005260206000200154905092915050565b815460009081908310613d29576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061524d565b6000846000018481548110613d3a57fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b60008281526001840160205260408120548281613daa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39190614aa7565b50846000016001820381548110613dbd57fe5b9060005260206000209060020201600101549150509392505050565b613de38383614012565b613df06000848484613ae3565b610a20576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614c17565b60009081526001919091016020526040902054151590565b60606139cc8484600085614131565b60008181526001830160205260408120548015613f275783547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8083019190810190600090879083908110613e9e57fe5b9060005260206000200154905080876000018481548110613ebb57fe5b600091825260208083209091019290925582815260018981019092526040902090840190558654879080613eeb57fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050611674565b6000915050611674565b6000613f3d8383613e26565b613f7357508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155611674565b506000611674565b600082815260018401602052604081205480613fe05750506040805180820182528381526020808201848152865460018181018955600089815284812095516002909302909501918255915190820155865486845281880190925292909120556139cf565b82856000016001830381548110613ff357fe5b90600052602060002090600202016001018190555060009150506139cf565b73ffffffffffffffffffffffffffffffffffffffff821661405f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061533e565b614068816131d6565b1561409f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614d08565b6140ab60008383610a20565b73ffffffffffffffffffffffffffffffffffffffff821660009081526001602052604090206140da9082613c5c565b506140e760028284613c68565b50604051819073ffffffffffffffffffffffffffffffffffffffff8416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60608247101561416d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f390614fd7565b61417685613a00565b6141ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39061576c565b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040516141d691906148d3565b60006040518083038185875af1925050503d8060008114614213576040519150601f19603f3d011682016040523d82523d6000602084013e614218565b606091505b5091509150614228828286614233565b979650505050505050565b606083156142425750816139cf565b8251156142525782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f39190614aa7565b6040518060c0016040528060001515815260200160008152602001600073ffffffffffffffffffffffffffffffffffffffff16815260200160008152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001600081525090565b6040518060a0016040528060001515815260200160008152602001600073ffffffffffffffffffffffffffffffffffffffff16815260200160008152602001600081525090565b82805482825590600052602060002090601f016020900481019282156143c75791602002820160005b8382111561439857835183826101000a81548160ff021916908360ff160217905550926020019260010160208160000104928301926001030261435a565b80156143c55782816101000a81549060ff0219169055600101602081600001049283019260010302614398565b505b50611a589291505b80821115611a585780547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001681556001016143cf565b803573ffffffffffffffffffffffffffffffffffffffff8116811461167457600080fd5b803560ff8116811461167457600080fd5b60006020828403121561444b578081fd5b6116718383614405565b60008060408385031215614467578081fd5b6144718484614405565b91506144808460208501614405565b90509250929050565b60008060006060848603121561449d578081fd5b83356144a8816159f4565b925060208401356144b8816159f4565b929592945050506040919091013590565b600080600080608085870312156144de578081fd5b6144e88686614405565b935060206144f887828801614405565b935060408601359250606086013567ffffffffffffffff8082111561451b578384fd5b818801915088601f83011261452e578384fd5b81358181111561453c578485fd5b61456c847fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f84011601615981565b91508082528984828501011115614581578485fd5b8084840185840137810190920192909252939692955090935050565b600080604083850312156145af578182fd5b6145b98484614405565b9150602083013580151581146145cd578182fd5b809150509250929050565b600080604083850312156145ea578182fd5b6145f48484614405565b946020939093013593505050565b60006020808385031215614614578182fd5b823567ffffffffffffffff81111561462a578283fd5b8301601f8101851361463a578283fd5b803561464d614648826159a8565b615981565b8181528381019083850185840285018601891015614669578687fd5b8694505b838510156146935761467f8982614429565b83526001949094019391850191850161466d565b50979650505050505050565b6000602082840312156146b0578081fd5b813561167181615a19565b6000602082840312156146cc578081fd5b815161167181615a19565b6000602082840312156146e8578081fd5b5035919050565b60008060408385031215614701578182fd5b50508035926020909101359150565b600080600060608486031215614724578283fd5b8335925060208401359150604084013561473d816159f4565b809150509250925092565b6000806040838503121561475a578182fd5b6147648484614429565b91506144808460208501614429565b6000815180845260208085019450808401835b838110156147a557815160ff1687529582019590820190600101614786565b509495945050505050565b600081518084526147c88160208601602086016159c8565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b8051151582526020810151602083015273ffffffffffffffffffffffffffffffffffffffff604082015116604083015260608101516060830152608081015160808301525050565b80511515825260208101516020830152604081015173ffffffffffffffffffffffffffffffffffffffff808216604085015260608301516060850152806080840151166080850152505060a081015160a08301525050565b815160009082906020808601845b838110156148c757815160ff16855293820193908201906001016148a8565b50929695505050505050565b600082516148e58184602087016159c8565b9190910192915050565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b600073ffffffffffffffffffffffffffffffffffffffff80871683528086166020840152508360408301526080606083015261494f60808301846147b0565b9695505050505050565b6000602080830181845280855180835260408601915060408482028701019250838701855b828110156149ca577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc08886030184526149b8858351614773565b9450928501929085019060010161497e565b5092979650505050505050565b6020808252825182820181905260009190848201906040850190845b81811015614a1957614a068385516147fa565b9284019260a092909201916001016149f3565b50909695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015614a1957614a54838551614842565b9284019260c09290920191600101614a41565b6000602082526116716020830184614773565b600060408252614a8d6040830185614773565b90508260208301529392505050565b901515815260200190565b60006020825261167160208301846147b0565b6020808252818101527f4f776e6572206f662042696f20646f65736e2774206e65656420746f20626964604082015260600190565b60208082526022908201527f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e60408201527f6473000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526017908201527f546869732042696f20686173206265656e206275726e74000000000000000000604082015260600190565b60208082526018908201527f52657175657374696e6720746f6f206d616e792042696f730000000000000000604082015260600190565b6020808252602b908201527f546f74616c2063656c6c20636f756e742073686f756c6420626520736d616c6c60408201527f6572207468616e20323839000000000000000000000000000000000000000000606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527f63656976657220696d706c656d656e7465720000000000000000000000000000606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b60208082526019908201527f4e6f7420746865206f776e6572206f6620746869732042696f00000000000000604082015260600190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526016908201527f45786365656473204d41585f4e46545f535550504c5900000000000000000000604082015260600190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b60208082526013908201527f42696f20616c7265616479206578697374656400000000000000000000000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460408201527f7265737300000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252601f908201527f45746865722076616c75652073656e74206973206e6f7420636f727265637400604082015260600190565b6020808252601e908201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604082015260600190565b6020808252603a908201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260408201527f6563697069656e74206d61792068617665207265766572746564000000000000606082015260800190565b6020808252602c908201527f5468652076616c75652073656e642069732062656c6f772073616c652070726960408201527f636520706c757320666565730000000000000000000000000000000000000000606082015260800190565b6020808252601d908201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604082015260600190565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60408201527f722063616c6c0000000000000000000000000000000000000000000000000000606082015260800190565b60208082526018908201527f5468652062696420707269636520697320746f6f206c6f770000000000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201527f697374656e7420746f6b656e0000000000000000000000000000000000000000606082015260800190565b6020808252601a908201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604082015260600190565b6020808252602b908201527f417474656d707420746f207365742070657263656e746167652068696768657260408201527f207468616e20322e35252e000000000000000000000000000000000000000000606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560408201527f726f206164647265737300000000000000000000000000000000000000000000606082015260800190565b6020808252601c908201527f546869732073656c6c6572206973206e6f7420746865206f776e657200000000604082015260600190565b60208082526022908201527f456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e60408201527f6473000000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601c908201527f5468657265206973206e6f7468696e6720746f20776974686472617700000000604082015260600190565b60208082526027908201527f4163746976652063656c6c20636f756e74206f662042696f206973206e6f742060408201527f616c6c6f77656400000000000000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f54686520626964207072696365206973206e6f20686967686572207468616e2060408201527f6578697374696e67206f6e650000000000000000000000000000000000000000606082015260800190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f60408201527f7700000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526011908201527f42696f20646f65736e2774206578697374000000000000000000000000000000604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201527f697374656e7420746f6b656e0000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526021908201527f546869732042696f20646f65736e2774206861766520612076616c696420626960408201527f6400000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201527f73206e6f74206f776e0000000000000000000000000000000000000000000000606082015260800190565b60208082526014908201527f42696f2073616c65207374696c6c20676f696e67000000000000000000000000604082015260600190565b60208082526013908201527f42696f206973206e6f7420666f722073616c6500000000000000000000000000604082015260600190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560408201527f7200000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526016908201527f53616c652068617320616c726561647920656e64656400000000000000000000604082015260600190565b60208082526022908201527f42696f206973206e6f742073656c6c696e6720746f207468697320616464726560408201527f7373000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60408201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606082015260800190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252601b908201527f466565206672616374696f6e20657863656564656420626173652e0000000000604082015260600190565b60208082526024908201527f54686973206164647265737320646f65736e277420686176652061637469766560408201527f2062696400000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526014908201527f53616c6520686173206e6f742073746172746564000000000000000000000000604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252601c908201527f52657175657374696e6720746f6f206d616e79206c697374696e677300000000604082015260600190565b60208082526018908201527f52657175657374696e6720746f6f206d616e7920626964730000000000000000604082015260600190565b6020808252818101527f546869732042696f2062656c6f6e677320746f20746869732061646472657373604082015260600190565b60a0810161167482846147fa565b60c081016116748284614842565b90815260200190565b60ff92831681529116602082015260400190565b60405181810167ffffffffffffffff811182821017156159a057600080fd5b604052919050565b600067ffffffffffffffff8211156159be578081fd5b5060209081020190565b60005b838110156159e35781810151838201526020016159cb565b8381111561347d5750506000910152565b73ffffffffffffffffffffffffffffffffffffffff81168114615a1657600080fd5b50565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114615a1657600080fdfe4552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656ea264697066735822122039e603265fe5d4d58c3fd6f8cc8b8b3e297a9f92d488c084abc04218ddda784a64736f6c634300060c00330000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000084c696665204e4654000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000342494f0000000000000000000000000000000000000000000000000000000000

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

0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000084c696665204e4654000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000342494f0000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name_ (string): Life NFT
Arg [1] : symbol_ (string): BIO

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [3] : 4c696665204e4654000000000000000000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [5] : 42494f0000000000000000000000000000000000000000000000000000000000


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.