Contract 0xEc031b8Abe78ecab0A6636b92aF53d7013a97A37 2

 
 
Txn Hash
Method
Block
From
To
Value
0xf3f2d42f3ca737bbe9a4c0561a9c427479b91b10974c71efde37e50cf923758aSet Approval For...153389252022-08-14 9:23:575 days 13 hrs ago0x3985857f2c9373f285cf196dfe07522ced5b44e0 IN  SatoshiFaces: FACES Token0 Ether0.00025617 5.54268332
0x66afa359bffa138358d06d16d910662a6a7e2bd3ef590649cf394248d4fe236eTransfer From153342852022-08-13 15:52:026 days 7 hrs ago0x69261e000ac0b45bfd12e5a15213f22a6c5e7542 IN  SatoshiFaces: FACES Token0 Ether0.00123005 13.33845533
0xd2857e0118dfb1e83392877db2020675249bbb8e9a1547890c96ffd9357a5ea1Set Approval For...153325742022-08-13 9:20:336 days 14 hrs ago0x13411d8e9ca216ca4d308a10d7c501b46ce3862e IN  SatoshiFaces: FACES Token0 Ether0.00043578 9.44604928
0x577443945176a0b444ef44bbf4a22c33b2e5556a61cd9137c27b316f2e4920eeSet Approval For...153205012022-08-11 11:42:328 days 11 hrs ago0x7626753e7e8027eca9470d5d19b1a6df7f11e46a IN  SatoshiFaces: FACES Token0 Ether0.00120061 26.02448096
0x72ce0f2e96945e8ede65c62fd5dc1734057882ec51cef5f4d937fa7c2e86d040Set Approval For...153072202022-08-09 9:30:1410 days 13 hrs ago0x2381671a407045f8c4e8b212114282f2c8645ec5 IN  SatoshiFaces: FACES Token0 Ether0.00053358 11.56608604
0x865f41b64bb5c23bf39142ecbd48223263234faa4adfbd2653589bb4d139262fSet Approval For...153010992022-08-08 10:45:4111 days 12 hrs agoENS Name unchainedninja.eth IN  SatoshiFaces: FACES Token0 Ether0.00052417 11.36202447
0xcef1184b93e2be1968572e94b5b85bfa5c29f8a6024b697df204f8392c3dc957Safe Transfer Fr...152416222022-07-30 4:10:2720 days 19 hrs ago0x956f1ce3ff2ea59a8b41df83ce9f85ed59d73f92 IN  SatoshiFaces: FACES Token0 Ether0.00057231 6
0x96527f955917cbdbec31e70cc9cfc448b31eebe26d4948d29310d01d4d76b113Safe Transfer Fr...152416222022-07-30 4:10:2720 days 19 hrs ago0x956f1ce3ff2ea59a8b41df83ce9f85ed59d73f92 IN  SatoshiFaces: FACES Token0 Ether0.00076251 6
0xf2cfa792191b9c2d99012558488373bee48449dbd5a0fb377f6a92f20bd2ed0dSet Approval For...152337822022-07-28 22:59:0622 days 21 mins ago0xdf16ab34cdefe98add826f99d623dd4608750a07 IN  SatoshiFaces: FACES Token0 Ether0.0005583 12.10187966
0x0b4f5a20fae7c9f5b9c8dd82069ec90c950d69d8f5ec12972aa048693fa97ee4Set Approval For...152179342022-07-26 11:52:5524 days 11 hrs ago0xfdedda51394cb11c86afaa1d559dc9b78a2a3c6e IN  SatoshiFaces: FACES Token0 Ether0.00048358 10.48218669
0x59473a7a9dad697d060b244b29db3abce5f042aabde9667e90a1e2a329acb1bbSet Approval For...152090752022-07-25 2:33:5025 days 20 hrs ago0xf499df9d3fc7cde5c23600aa720ff4afa3b04dff IN  SatoshiFaces: FACES Token0 Ether0.00049287 10.68363684
0x9a2eb732c21e417f665bee6edd640fd6e2f91cf31e93aed1c44cf9273f930eeeSet Approval For...152005062022-07-23 18:31:1127 days 4 hrs ago0xd24751c85d9b6e71ed272d79149f3c24f72b9c40 IN  SatoshiFaces: FACES Token0 Ether0.00062511 13.52527086
0x4f190939c2f7e0cc5c700bffafdd4c36180ecc5f50d1c647d325e2ab789098b9Set Approval For...152005032022-07-23 18:30:4127 days 4 hrs ago0xd24751c85d9b6e71ed272d79149f3c24f72b9c40 IN  SatoshiFaces: FACES Token0 Ether0.00062133 13.46809941
0x89eabb0f1943a547ca0e3f03339d2476da7969324cd204081b19cfa875818ab8Set Approval For...152005032022-07-23 18:30:4127 days 4 hrs ago0xd24751c85d9b6e71ed272d79149f3c24f72b9c40 IN  SatoshiFaces: FACES Token0 Ether0.00062246 13.46809941
0x520655286e15dbe6ee741c3473c196a1c96b96f319f4ebb75e51e80318fd2659Set Approval For...151616952022-07-17 18:18:2133 days 5 hrs agoENS Name slater.eth IN  SatoshiFaces: FACES Token0 Ether0.00152933 62.91996058
0x40a022846ac5a0b11be1edc38cdd948c059b4ccd6e108a55d3bfabafe7288f79Set Approval For...151117342022-07-10 0:49:4740 days 22 hrs ago0x2c97865e85d81788ce471d9cd3dc57754203f972 IN  SatoshiFaces: FACES Token0 Ether0.00062185 13.47922318
0xf3dc04df27df6f5a34d32d2d94a49f8ca9769be10f577801c62fb495e17d137dSet Approval For...150999842022-07-08 5:14:0042 days 18 hrs agoENS Name sibbol.eth IN  SatoshiFaces: FACES Token0 Ether0.00120784 26.18124257
0x81c7ea309378a83803c6e462a6706b74411a90bfedc1f5cfc902ddf279bf88e7Set Approval For...150814172022-07-05 8:30:4345 days 14 hrs ago0x9cb298748c6d94ef89ca7cd85af03c405f32060e IN  SatoshiFaces: FACES Token0 Ether0.00108119 23.43597332
0x3ae2ab7af0e31038c29091103c5ad362b51e8d3146bdbb5d1b21c160299a91f6Set Approval For...150693192022-07-03 11:27:1847 days 11 hrs agoENS Name shotgungirls.eth IN  SatoshiFaces: FACES Token0 Ether0.00036311 7.87093182
0xcda65e76fc014c5bf11b06b6d83616e2554090bd314f5e6f6da7fe2b306ed78cSet Approval For...150519312022-06-30 18:54:5750 days 4 hrs agoENS Name thisotterbegood.eth IN  SatoshiFaces: FACES Token0 Ether0.0009456 35.93002581
0xdde7bfcd21a75ea99ea11be62461a903fe64335e084ebdf08d8a65158d4497d9Set Approval For...150519312022-06-30 18:54:5750 days 4 hrs agoENS Name thisotterbegood.eth IN  SatoshiFaces: FACES Token0 Ether0.0013043 28.2207507
0x3fb568774e5c91fef63ff224bdf4fb03364bef887f41688b8a33e60445896828Transfer From150435262022-06-29 5:45:3851 days 17 hrs ago0xb6bac46c9337a925c0d1ab83140d4a65c3d5c598 IN  SatoshiFaces: FACES Token0 Ether0.00310663 28.35896372
0xb200f5e8f1721a85561b66078c6cbc97a646ac03a632ae52f33d96103d2f8435Set Approval For...150400312022-06-28 14:08:2452 days 9 hrs agoENS Name thisotterbegood.eth IN  SatoshiFaces: FACES Token0 Ether0.00328957 71.30473078
0x3491c21b2ac557c412343b7848736dd615b7f08fee9fa16847487f5c1edc348dTransfer From150388102022-06-28 8:32:4552 days 14 hrs ago0x66ef6472918622b73192a548cfc206fc5ca248de IN  SatoshiFaces: FACES Token0 Ether0.00262613 23.97263909
0x82078d08047837184352f032a0f826f436b7de66be0f00c5aec7e913ce28b42cSet Approval For...150386172022-06-28 7:43:5052 days 15 hrs ago0x66ef6472918622b73192a548cfc206fc5ca248de IN  SatoshiFaces: FACES Token0 Ether0.00165613 35.83308942
[ Download CSV Export 

OVERVIEW

SatoshiFaces, otherwise known as “Faces” are algorithmically generated digital collectible artworks based on the ERC-721 standard. All of the pieces and elements within this collection are created by British artist Ed Merlin Murray.

Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x436337591b4931e779eb64fc70789245bf70785ff124ce8672c88c1ea338f3ed133886452021-10-10 3:58:27313 days 19 hrs ago SatoshiFaces: FACES TokenSatoshiFaces: Deployer9 Ether
0x7a03d5af2d316afd2232b89b6f3ebb11b24e2014dd4a78c98f0bfdc70ea9e5c7132974342021-09-25 21:33:37328 days 1 hr ago SatoshiFaces: FACES TokenSatoshiFaces: Deployer10.8 Ether
0x1ad0647ffa0e3f1e7a6d9e62f914b09c50311b47daa727692a4da8712594d352132973972021-09-25 21:27:18328 days 1 hr ago SatoshiFaces: FACES TokenSatoshiFaces: Deployer10.8 Ether
0xf9d2b090c78f2da9f141ac39815b97f0bed1531edd0ac37754a4006314bce9fc132564022021-09-19 13:28:41334 days 9 hrs ago SatoshiFaces: FACES TokenSatoshiFaces: Deployer9.6 Ether
0x66fa4ab0bf3188a8e2c3f134eb384e4108ca22d65b472fc463afa9bb6b2f2e0a132563882021-09-19 13:25:14334 days 9 hrs ago SatoshiFaces: FACES TokenSatoshiFaces: Deployer9.6 Ether
0x46d2c99048dfc5c08a801bad1e5a21c053fa674439236be120c7da8ff434d495132562712021-09-19 13:01:08334 days 10 hrs ago SatoshiFaces: FACES TokenSatoshiFaces: Deployer9.6 Ether
0x3384b9e8e68afb058bb873f7c7385867a67c2c71130fb6e16111993f8a4bff57132562552021-09-19 12:57:28334 days 10 hrs ago SatoshiFaces: FACES TokenSatoshiFaces: Deployer9.6 Ether
0x2678440f6ddc9bc2b025090d697319535e26f0f32f3973d658b3f2ec79554e92132562462021-09-19 12:55:36334 days 10 hrs ago SatoshiFaces: FACES TokenSatoshiFaces: Deployer9 Ether
0xb523a2134b6d0b233a1e12c4f58349fb7592ec01390dbccccd25b1f6b18d5f91132095002021-09-12 7:09:05341 days 16 hrs ago SatoshiFaces: FACES TokenSatoshiFaces: Deployer9.6 Ether
0x44a2347e66d28eea3cb49253cef18d309ebcede0ff4c682ddc770f333140021f132094892021-09-12 7:07:09341 days 16 hrs ago SatoshiFaces: FACES TokenSatoshiFaces: Deployer10 Ether
0x76f8dbb088bbcdfeddadb29516a8e60618e9fd393d86d5a6491a8976be2daa7b131980972021-09-10 12:51:56343 days 10 hrs ago SatoshiFaces: FACES TokenSatoshiFaces: Deployer10 Ether
0x7bc7be09e7eb4ed5013b1f02a3d7e670521d572d5d8a530f85d4714b40f93f19131980892021-09-10 12:47:49343 days 10 hrs ago SatoshiFaces: FACES TokenSatoshiFaces: Deployer10 Ether
0xc71896600e5a2dd56386513137b76bb08ccbe7b3642f1c5329a60dc912559bc5131629082021-09-05 2:02:24348 days 21 hrs ago SatoshiFaces: FACES TokenSatoshiFaces: Deployer7.6 Ether
0xaff7bc327e6b5fc2e04ce0ccc1c0510447735205df13b19926027518398ffeb9131628552021-09-05 1:53:11348 days 21 hrs ago SatoshiFaces: FACES TokenSatoshiFaces: Deployer8 Ether
0x241d545b2c5aaffdcff5b5949ba5f9142c202ea395c604034742be16d555c8fe131628452021-09-05 1:51:17348 days 21 hrs ago SatoshiFaces: FACES TokenSatoshiFaces: Deployer8 Ether
0x3707547c9e5559bb3ce963d46544e8261460c63e2bda1c32608576befefc9618131625072021-09-05 0:38:56348 days 22 hrs ago SatoshiFaces: FACES TokenSatoshiFaces: Deployer8 Ether
0x21c1b93a980491f37a2e4309064a8c43fb5a7dd3cfe15e85ec717fe9ae86c45d131472632021-09-02 16:04:47351 days 7 hrs ago SatoshiFaces: FACES TokenSatoshiFaces: Deployer8.8 Ether
0xadad01c6dc86d3282f5b08f5b1312a8b84e49d368c3bebeab897aba6f5ac5e13131419082021-09-01 20:25:56352 days 2 hrs ago SatoshiFaces: FACES TokenSatoshiFaces: Deployer8.8 Ether
0xc994b1137a5419fc49f7e5fad9b5e092b10650a1d09d6c9dfcadacb1ee2f4e67131418612021-09-01 20:14:25352 days 3 hrs ago SatoshiFaces: FACES TokenSatoshiFaces: Deployer9.2 Ether
0xcdb3c99263b9c8379c1a7e842501b757a083a913c46cc7b3ffb9a6d8a10f3ea0131416592021-09-01 19:34:39352 days 3 hrs ago SatoshiFaces: FACES TokenSatoshiFaces: Deployer9.6 Ether
0x0510dedb79ce0856dc880a3269a533b795134cfef1f4a14433f24a99c77d8ca0131416532021-09-01 19:33:29352 days 3 hrs ago SatoshiFaces: FACES TokenSatoshiFaces: Deployer9.6 Ether
0xefa903690f5ceebe27c6021275514209ef967f492bd94bc49dc4d6b9279c6dc2131415192021-09-01 18:59:24352 days 4 hrs ago SatoshiFaces: FACES TokenSatoshiFaces: Deployer10.4 Ether
0x9ea142758b9cea9ec59492cf5ee59098ad97d0165fdf481c683ac342403defe8131414602021-09-01 18:47:12352 days 4 hrs ago SatoshiFaces: FACES TokenSatoshiFaces: Deployer10.8 Ether
0xc26c70a07a83d40888818b643a0201440dfc5c287dada4651a16ba7e365dec85131399612021-09-01 13:02:47352 days 10 hrs ago SatoshiFaces: FACES TokenSatoshiFaces: Deployer11.6 Ether
0xba4fa46647e10c22731917f1b1163ae5fec2e80f0769bfc3ea48ce2443809f90131398422021-09-01 12:37:47352 days 10 hrs ago SatoshiFaces: FACES TokenSatoshiFaces: Deployer12 Ether
[ Download CSV Export 
Loading
This contract contains unverified libraries: Strings
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.

Contract Source Code Verified (Exact Match)

Contract Name:
Faces

Compiler Version
v0.7.0+commit.9e61f92b

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity Multiple files format)

File 6 of 15: Faces.sol
pragma solidity ^0.7.0;

import "./IERC165.sol";
import "./ERC165.sol";
import "./Address.sol";
import "./EnumerableMap.sol";
import "./EnumerableSet.sol";
import "./SafeMath.sol";
import "./Strings.sol";
import "./Context.sol";
import "./Ownable.sol";
import "./ISFT.sol";
import "./IFaces.sol";
import "./IERC721Enumerable.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);
}

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

/**
 * @title SatoshiFaces contract
 * @dev Extends ERC721 Non-Fungible Token Standard basic implementation
 */
contract Faces is Context, Ownable, ERC165, IFaces, IERC721Metadata {
    using SafeMath for uint256;
    using Address for address;
    using EnumerableSet for EnumerableSet.UintSet;
    using EnumerableMap for EnumerableMap.UintToAddressMap;
    using Strings for uint256;

    // This is the provenance record of all SatoshiFaces artwork in existence
    string public constant FACES_PROVENANCE = "9b7e7c22b54ba1a753f94bc7a38ac6b3f41b8040ab34801469f654ae03f7e419";
    
    uint256 public constant JUNE_1ST_2021 = 1622505600;

    uint256 public constant SALE_START_TIMESTAMP = 1617667200; // Tuesday, April 6, 2021 0:00:00 GMT

    // time after which SatoshiFaces artworks are randomized and assigned to NFTs
    uint256 public constant DISTRIBUTION_TIMESTAMP = SALE_START_TIMESTAMP + (86400 * 7); // 7 is number of days
    
    uint256 public constant SEGMENT_UNLOCK_INTERVAL = (86400 * 2); // 2 days between segment unlocks

    uint256 public constant MAX_NFT_SUPPLY = 4999;
    
    uint256 public constant MAX_NAME_CHANGE_PRICE = 250 * (10 ** 18); // Maximum price of a name change is 250 SFT

    uint256 public nameChangePrice = MAX_NAME_CHANGE_PRICE;

    uint256 public startingIndexBlock;

    uint256 public startingIndex;
    
    uint256 public allSegmentsRevealedTimestamp = 0;
    
    uint256 public _fixedPriced = 0;
    
    uint256 public price_bracket_1 = 0.125 * (10 ** 18);
    uint256 public price_bracket_2 = 0.250 * (10 ** 18);
    uint256 public price_bracket_3 = 0.500 * (10 ** 18);
    uint256 public price_bracket_4 = 0.750 * (10 ** 18);
    uint256 public price_bracket_5 = 1.000 * (10 ** 18);
    uint256 public price_bracket_6 = 1.750 * (10 ** 18);
    uint256 public price_bracket_7 = 2.500 * (10 ** 18);

    // 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 token ID to name
    mapping (uint256 => string) private _tokenName;

    // Mapping if certain name string has already been reserved
    mapping (string => bool) private _nameReserved;
    
     // Mapping from token ID to the timestamp the NFT was minted
    mapping (uint256 => uint256) private _mintedTimestamp;

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

    // token name
    string private _name;

    // token symbol
    string private _symbol;
    
    // base URI
    string private _baseURI;
    
    // contract URI
    string private _contractURI;

    // name change token address
    address private _sftAddress;

    /*
     *     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
     *
     *     => 0x06fdde03 ^ 0x95d89b41 == 0x93254542
     */
    bytes4 private constant _INTERFACE_ID_ERC721_METADATA = 0x93254542;

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

    // Events
    event NameChange (uint256 indexed faceIndex, string newName);

    /**
     * @dev Initializes the contract which sets a name and a symbol to the token collection.
     */
    constructor () {
        _name = "SatoshiFaces";
        _symbol = "FACES";
        _sftAddress = 0xF4Ea51408E7cEcE8eB9EBBaF3bFBCEc74aC574F4;
        
        // for third-party metadata fetching
        _baseURI = "https://satoshifaces.com/api/opensea/";
        _contractURI = "https://satoshifaces.com/api/contractmetadata";

        // 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 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 override returns (address) {
        return _tokenOwners.get(tokenId, "ERC721: owner query for nonexistent token");
    }

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

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) {
        return _holderTokens[owner].at(index);
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view 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 override returns (uint256) {
        (uint256 tokenId, ) = _tokenOwners.at(index);
        return tokenId;
    }

    /**
     * @dev Returns name of the NFT at index.
     */
    function tokenNameByIndex(uint256 index) public view override returns (string memory) {
        return _tokenName[index];
    }

    /**
     * @dev Returns if the name has been reserved.
     */
    function isNameReserved(string memory nameString) public view override returns (bool) {
        return _nameReserved[toLower(nameString)];
    }
    
    /**
     * @dev Returns the timestamp of the block in which the NFT was minted
     */
    function mintedTimestampByIndex(uint256 index) public view override returns (uint256) {
        return _mintedTimestamp[index];
    }
    
    /**
     * @dev Returns an URI for a given token ID
     * Throws if the token ID does not exist. May return an empty string.
     * @param tokenId uint256 ID of the token to query
     */
    function tokenURI(uint256 tokenId) external view returns (string memory) {
        require(_exists(tokenId), "Token with specified ID does not exist");
        return Strings.Concatenate(
            baseTokenURI(),
            Strings.UintToString(tokenId)
        );
    }
        
    /**
     * @dev Gets the base token URI
     * @return string representing the base token URI
     */
    function baseTokenURI() public view returns (string memory) {
        return _baseURI;
    }
    
    /**
     * @dev Gets the contract URI for contract level metadata
     * @return string representing the contract URI
     */
    function contractURI() public view returns (string memory) {
        return _contractURI;
    }
    
    /**
    * @dev Changes the base URI if we want to move things in the future (Callable by owner only)
    */
    function changeBaseURI(string memory baseURI) onlyOwner external {
       _baseURI = baseURI;
    }
    
    /**
    * @dev Changes the base URI if we want to move things in the future (Callable by owner only)
    */
    function changeContractURI(string memory newContractURI) onlyOwner external {
       _contractURI = newContractURI;
    }
    
    /**
    * @dev Changes the price for a sale bracket - prices can never be less than current price (Callable by owner only)
    */
    function changeBracketPrice(uint bracket, uint256 price) onlyOwner external {
        require(totalSupply() < MAX_NFT_SUPPLY, "Sale has already ended");
        require(bracket > 0 && bracket < 8, "Bracket must be in the range 1-7");
        require(price > 0, "Price must be set and greater than 0");
        require(price >= getNFTPrice(), "Price cannot be less than the current price");
        
        if(bracket == 1) {
            price_bracket_1 = price;
        }
        else if(bracket == 2) {
            price_bracket_2 = price;
        }
        else if(bracket == 3) {
            price_bracket_3 = price;
        }
        else if(bracket == 4) {
            price_bracket_4 = price;
        }
        else if(bracket == 5) {
            price_bracket_5 = price;
        }
        else if(bracket == 6) {
            price_bracket_6 = price;
        }
        else if(bracket == 7) {
            price_bracket_7 = price;
        }
    }
    
    /**
    * @dev Changes the price for a name change (if in future the price needs adjusting due to token speculation) (Callable by owner only)
    */
    function changeNameChangePrice(uint256 price) onlyOwner external {
        require(price > 0, "Price must be set and greater than 0");
        require(price <= MAX_NAME_CHANGE_PRICE, "Price cannot be greater than maximum price");
        nameChangePrice = price;
    }
    
    /**
    * @dev Unlocks all the segments for every artwork (Callable by owner only)
    */
    function setAllSegmentsRevealedTimestamp(uint256 timestamp) onlyOwner external {
        require(JUNE_1ST_2021 <= block.timestamp, "Cannot call function until 1st June 2021");
        require(timestamp > 0, "Timestamp must be set and greater than 0");
        require(timestamp >= block.timestamp, "Time must be now or in the future");
        allSegmentsRevealedTimestamp = timestamp;
    }
    
    /**
    * @dev Fixes the sale price for all unsold NFTs at the current price (Callable by owner only)
    * Only callable after June 1st 2021
    */
    function sellAllRemainingAtCurrentPrice() onlyOwner external {
        require(JUNE_1ST_2021 <= block.timestamp, "Cannot call function before 1st June 2021");
        require(_fixedPriced == 0, "Fixed price must not be already set");
        require(totalSupply() < MAX_NFT_SUPPLY, "Sale has already ended");
        
        uint256 currentPrice = getNFTPrice();
        if(currentPrice > 0) {
            _fixedPriced = currentPrice;
        }
    }
    
    /**
     * @dev Returns number of segments unlocked for the given NFT
     * 0 - token is not yet minted
     */
    function segmentsUnlockedByIndex(uint256 index) public view override returns (uint256) {
        uint256 mintTime = _mintedTimestamp[index];
        require(mintTime > 0, "Mint time must be set and greater than 0");
        require(mintTime <= block.timestamp, "Mint time cannot be greater than current time");
        uint256 elapsed = block.timestamp.sub(mintTime);
        
        // If timestamp has been set and reached, all segments are unlocked
        if(allSegmentsRevealedTimestamp > 0 && block.timestamp >= allSegmentsRevealedTimestamp) {
            return 9;
        }
        
        uint unlocked = 1;
        for(uint i = 1; i < 9; i++) {
            if(elapsed >= i.mul(SEGMENT_UNLOCK_INTERVAL)) {
                unlocked++;
            }
            else {
                break;
            }
        }
        return unlocked;
    }

    /**
     * @dev Gets current NFT Price
     */
    function getNFTPrice() public view returns (uint256) {
        require(block.timestamp >= SALE_START_TIMESTAMP, "Sale has not started");
        require(totalSupply() < MAX_NFT_SUPPLY, "Sale has already ended");
        
        // if price has been fixed (only possible after June 1st 2021)
        if(_fixedPriced > 0) {
            return _fixedPriced;
        }

        uint currentSupply = totalSupply();

        if (currentSupply >= 4990) {
            return price_bracket_7;      // 4990 - 4999
        } else if (currentSupply >= 4750) {
            return price_bracket_6;      // 4750 - 4989
        } else if (currentSupply >= 4250) {
            return price_bracket_5;      // 4250 - 4749
        } else if (currentSupply >= 3500) {
            return price_bracket_4;      // 3500 - 4249
        } else if (currentSupply >= 2500) {
            return price_bracket_3;      // 2500 - 3499
        } else if (currentSupply >= 1000) {
            return price_bracket_2;      // 1000 - 2499
        } else {
            return price_bracket_1;      // 0 - 999
        }
    }

    /**
    * @dev Mints Faces
    */
    function mintNFT(uint256 numberOfNfts) public payable {
        require(block.timestamp >= SALE_START_TIMESTAMP, "Sale has not started");
        require(totalSupply() < MAX_NFT_SUPPLY, "Sale has already ended");
        require(numberOfNfts > 0, "numberOfNfts cannot be 0");
        require(numberOfNfts <= 49, "You may not buy more than 49 NFTs at once");
        require(totalSupply().add(numberOfNfts) <= MAX_NFT_SUPPLY, "Exceeds MAX_NFT_SUPPLY");
        require(getNFTPrice().mul(numberOfNfts) == msg.value, "Ether value sent is not correct");

        for (uint i = 0; i < numberOfNfts; i++) {
            uint mintIndex = totalSupply();
            /* final supply check */
            require(mintIndex < MAX_NFT_SUPPLY, "Sale has already ended");
            _mintedTimestamp[mintIndex] = block.timestamp;
            _safeMint(msg.sender, mintIndex);
        }

        /**
        * Source of randomness
        */
        if (startingIndexBlock == 0 && (totalSupply() == MAX_NFT_SUPPLY || block.timestamp >= DISTRIBUTION_TIMESTAMP)) {
            startingIndexBlock = block.number;
        }
    }

    /**
     * @dev Finalize starting index
     */
    function finalizeStartingIndex() public {
        require(startingIndex == 0, "Starting index is already set");
        
        if(startingIndexBlock == 0) {
            require(block.timestamp >= DISTRIBUTION_TIMESTAMP, "Distribution period must be over to set the startingIndexBlock");
            startingIndexBlock = block.number;
        }
        require(startingIndexBlock != 0, "Starting index block must be set");
        
        startingIndex = uint(blockhash(startingIndexBlock)) % MAX_NFT_SUPPLY;
        // Just a sanity case in the worst case if this function is called late (EVM only stores last 256 block hashes)
        if (block.number.sub(startingIndexBlock) > 255) {
            startingIndex = uint(blockhash(block.number-1)) % MAX_NFT_SUPPLY;
        }
        // Prevent default sequence
        if (startingIndex == 0) {
            startingIndex = startingIndex.add(1);
        }
    }

    /**
     * @dev Changes the name for SatoshiFaces tokenId
     */
    function changeName(uint256 tokenId, string memory newName) public {
        address owner = ownerOf(tokenId);
        require(_msgSender() == owner, "ERC721: caller is not the owner");
        require(segmentsUnlockedByIndex(tokenId) >= 5, "Can only change name after 5 segments have been unlocked");
        require(validateName(newName) == true, "Not a valid new name");
        require(sha256(bytes(newName)) != sha256(bytes(_tokenName[tokenId])), "New name is same as the current one");
        require(isNameReserved(newName) == false, "Name already reserved");

        ISFT(_sftAddress).transferFrom(msg.sender, _sftAddress, nameChangePrice);
        // If already named, dereserve old name
        if (bytes(_tokenName[tokenId]).length > 0) {
            toggleReserveName(_tokenName[tokenId], false);
        }
        toggleReserveName(newName, true);
        _tokenName[tokenId] = newName;
        emit NameChange(tokenId, newName);
    }
    
    /**
     * @dev Withdraw ether from this contract (Callable by owner)
    */
    function withdraw() onlyOwner public {
        uint balance = address(this).balance;
        msg.sender.transfer(balance);
    }
    
    /**
     * @dev Withdraw from the SFT contract (Callable by owner)
     * Note: Only spent SFTs (i.e. from name changes) are withdrawable here
    */
    function withdrawSFT() onlyOwner public {
        uint balance = ISFT(_sftAddress).balanceOf(_sftAddress);
        ISFT(_sftAddress).transferFrom(_sftAddress, msg.sender, balance);
    }

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

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

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view 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 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 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 returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || 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 = ownerOf(tokenId);

        _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(ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

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

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

    function _approve(address to, uint256 tokenId) private {
        _tokenApprovals[tokenId] = to;
        emit Approval(ownerOf(tokenId), to, tokenId);
    }

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

    /**
     * @dev Reserves the name if isReserve is set to true, de-reserves if set to false
     */
    function toggleReserveName(string memory str, bool isReserve) internal {
        _nameReserved[toLower(str)] = isReserve;
    }

    /**
     * @dev Check if the name string is valid (Alphanumeric and spaces without leading or trailing space)
     */
    function validateName(string memory str) public pure returns (bool){
        bytes memory b = bytes(str);
        if(b.length < 1) return false;
        if(b.length > 20) return false; // Cannot be longer than 20 characters
        if(b[0] == 0x20) return false; // Leading space
        if (b[b.length - 1] == 0x20) return false; // Trailing space

        bytes1 lastChar = b[0];

        for(uint i; i<b.length; i++){
            bytes1 char = b[i];

            if (char == 0x20 && lastChar == 0x20) return false; // Cannot contain continous spaces

            if(
                !(char >= 0x30 && char <= 0x39) && //9-0
                !(char >= 0x41 && char <= 0x5A) && //A-Z
                !(char >= 0x61 && char <= 0x7A) && //a-z
                !(char == 0x20) //space
            )
                return false;

            lastChar = char;
        }

        return true;
    }

    /**
     * @dev Converts the string to lowercase
     */
    function toLower(string memory str) public pure returns (string memory){
        bytes memory bStr = bytes(str);
        bytes memory bLower = new bytes(bStr.length);
        for (uint i = 0; i < bStr.length; i++) {
            // Uppercase character
            if ((uint8(bStr[i]) >= 65) && (uint8(bStr[i]) <= 90)) {
                bLower[i] = bytes1(uint8(bStr[i]) + 32);
            } else {
                bLower[i] = bStr[i];
            }
        }
        return string(bLower);
    }
}

File 1 of 15: Address.sol
pragma solidity ^0.7.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.3._
     */
    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.3._
     */
    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 2 of 15: Context.sol
/*
 * @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 3 of 15: EnumerableMap.sol
pragma solidity ^0.7.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 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) {
        return _get(map, key, "EnumerableMap: nonexistent key");
    }

    /**
     * @dev Same as {_get}, with a custom error message when `key` is not in the map.
     */
    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(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(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(uint256(_get(map._inner, bytes32(key))));
    }

    /**
     * @dev Same as {get}, with a custom error message when `key` is not in the map.
     */
    function get(UintToAddressMap storage map, uint256 key, string memory errorMessage) internal view returns (address) {
        return address(uint256(_get(map._inner, bytes32(key), errorMessage)));
    }
}

File 4 of 15: EnumerableSet.sol
pragma solidity ^0.7.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.0.0, only sets of type `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];
    }

    // 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(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(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(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(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 5 of 15: ERC165.sol
pragma solidity ^0.7.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.
 */
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 () {
        // 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 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 15: IERC165.sol
pragma solidity ^0.7.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 15: IERC20.sol
pragma solidity ^0.7.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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


    /**
     * TODO: Add comment
     */
    function burn(uint256 burnQuantity) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

File 9 of 15: IERC721.sol
import "./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 15: IERC721Enumerable.sol
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 15: IFaces.sol
import "./IERC721Enumerable.sol";

interface IFaces is IERC721Enumerable {
    
    function mintedTimestampByIndex(uint256 index) external view returns (uint256);
    function segmentsUnlockedByIndex(uint256 index) external view returns (uint256);
    function tokenNameByIndex(uint256 index) external view returns (string memory);
    function isNameReserved(string memory nameString) external view returns (bool);
}

File 12 of 15: ISFT.sol
import "./IERC20.sol";

interface ISFT is IERC20 {
    
    function totalAccumulatedSupply() external view returns (uint256);
    
    function accumulated(uint256 tokenIndex) external view returns (uint256);
    function totalAccumulated(uint256 tokenIndex) external view returns (uint256);
    function totalClaimed(uint256 tokenIndex) external view returns (uint256);
}

File 13 of 15: Ownable.sol
pragma solidity ^0.7.0;

import "./Context.sol";

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(_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 14 of 15: SafeMath.sol
pragma solidity ^0.7.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, 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) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * 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);
        uint256 c = a - b;

        return c;
    }

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

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

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message 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, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

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

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message 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, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

File 15 of 15: Strings.sol
pragma solidity ^0.7.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--] = byte(uint8(48 + temp % 10));
            temp /= 10;
        }
        return string(buffer);
    }
    
    function Concatenate(string memory a, string memory b) public pure returns (string memory concatenatedString) {
        bytes memory bytesA = bytes(a);
        bytes memory bytesB = bytes(b);
        string memory concatenatedAB = new string(bytesA.length + bytesB.length);
        bytes memory bytesAB = bytes(concatenatedAB);
        uint concatendatedIndex = 0;
        uint index = 0;
        for (index = 0; index < bytesA.length; index++) {
          bytesAB[concatendatedIndex++] = bytesA[index];
        }
        for (index = 0; index < bytesB.length; index++) {
          bytesAB[concatendatedIndex++] = bytesB[index];
        }
          
        return string(bytesAB);
    }

    function UintToString(uint value) public pure returns (string memory uintAsString) {
        uint tempValue = value;
        
        if (tempValue == 0) {
          return "0";
        }
        uint j = tempValue;
        uint length;
        while (j != 0) {
          length++;
          j /= 10;
        }
        bytes memory byteString = new bytes(length);
        uint index = length - 1;
        while (tempValue != 0) {
          byteString[index--] = byte(uint8(48 + tempValue % 10));
          tempValue /= 10;
        }
        return string(byteString);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"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":"faceIndex","type":"uint256"},{"indexed":false,"internalType":"string","name":"newName","type":"string"}],"name":"NameChange","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":"DISTRIBUTION_TIMESTAMP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FACES_PROVENANCE","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"JUNE_1ST_2021","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_NAME_CHANGE_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"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":[],"name":"SEGMENT_UNLOCK_INTERVAL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_fixedPriced","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allSegmentsRevealedTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"changeBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"bracket","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"}],"name":"changeBracketPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newContractURI","type":"string"}],"name":"changeContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"newName","type":"string"}],"name":"changeName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"changeNameChangePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"finalizeStartingIndex","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getNFTPrice","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":"string","name":"nameString","type":"string"}],"name":"isNameReserved","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfNfts","type":"uint256"}],"name":"mintNFT","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"mintedTimestampByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nameChangePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price_bracket_1","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price_bracket_2","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price_bracket_3","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price_bracket_4","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price_bracket_5","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price_bracket_6","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price_bracket_7","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":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"segmentsUnlockedByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sellAllRemainingAtCurrentPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"setAllSegmentsRevealedTimestamp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startingIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startingIndexBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"str","type":"string"}],"name":"toLower","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenNameByIndex","outputs":[{"internalType":"string","name":"","type":"string"}],"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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"str","type":"string"}],"name":"validateName","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawSFT","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052680d8d726b7177a80000600255600060055560006006556701bc16d674ec80006007556703782dace9d900006008556706f05b59d3b20000600955670a688906bd8b0000600a55670de0b6b3a7640000600b556718493fba64ef0000600c556722b1c8c1227a0000600d553480156200007c57600080fd5b506000620000896200020d565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350620000e56301ffc9a760e01b62000211565b60408051808201909152600c8082526b5361746f736869466163657360a01b60209092019182526200011a9160169162000299565b5060408051808201909152600580825264464143455360d81b6020909201918252620001499160179162000299565b50601a80546001600160a01b03191673f4ea51408e7cece8eb9ebbaf3bfbcec74ac574f41790556040805160608101909152602580825262004941602083013980516200019f9160189160209091019062000299565b506040518060600160405280602d815260200162004914602d91398051620001d09160199160209091019062000299565b50620001e36380ac58cd60e01b62000211565b620001f5634992a2a160e11b62000211565b6200020763780e9d6360e01b62000211565b62000335565b3390565b6001600160e01b0319808216141562000271576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152600160208190526040909120805460ff19169091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620002dc57805160ff19168380011785556200030c565b828001600101855582156200030c579182015b828111156200030c578251825591602001919060010190620002ef565b506200031a9291506200031e565b5090565b5b808211156200031a57600081556001016200031f565b6145cf80620003456000396000f3fe6080604052600436106103815760003560e01c80638da5cb5b116101d1578063c39cbef111610102578063e8a3d485116100a0578063f2fde38b1161006f578063f2fde38b14610f10578063f78b30a414610f43578063fb107a4f14610f58578063fc4bb88b14610f6d57610381565b8063e8a3d48514610e96578063e985e9c514610eab578063ebe0afbd14610ee6578063f108336b14610efb57610381565b8063d547cfb7116100dc578063d547cfb714610e42578063e04e710f14610e57578063e194b0db14610e6c578063e36d649814610e8157610381565b8063c39cbef114610d4b578063c87b56dd14610e03578063cb774d4714610e2d57610381565b80639ffdb65a1161016f578063b5077f4411610149578063b5077f4414610c3b578063b88d4fde14610c50578063bc4759e214610d21578063c1d3bdfb14610d3657610381565b80639ffdb65a14610b25578063a22cb46514610bd6578063ae6be17d14610c1157610381565b80639416b423116101ab5780639416b42314610a35578063946807fd14610ae657806395d89b4114610afb5780639bb847f614610b1057610381565b80638da5cb5b146109ee57806390f7a6f114610a035780639264274414610a1857610381565b806345ca7738116102b65780636352211e1161025457806370a082311161022357806370a082311461097c578063715018a6146109af57806374df39c9146109c457806383541c24146109d957610381565b80636352211e146108e95780636ce1ee2b146109135780636d522418146109285780636e29fd781461095257610381565b806352779d6b1161029057806352779d6b146107f957806354fa92a61461080e5780635699b904146108235780635af454d0146108d457610381565b806345ca7738146107a55780634ba7ece5146107ba5780634f6ccce7146107cf57610381565b806323b872dd1161032357806339a0c6f9116102fd57806339a0c6f9146106875780633ccfd60b1461073857806341e29e251461074d57806342842e0e1461076257610381565b806323b872dd146105e15780632dbaf4f3146106245780632f745c591461064e57610381565b8063095ea7b31161035f578063095ea7b31461049e57806315b56d10146104d9578063180c57641461058a57806318160ddd146105ba57610381565b806301ffc9a71461038657806306fdde03146103ce578063081812fc14610458575b600080fd5b34801561039257600080fd5b506103ba600480360360208110156103a957600080fd5b50356001600160e01b031916610f97565b604080519115158252519081900360200190f35b3480156103da57600080fd5b506103e3610fba565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561041d578181015183820152602001610405565b50505050905090810190601f16801561044a5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561046457600080fd5b506104826004803603602081101561047b57600080fd5b5035611051565b604080516001600160a01b039092168252519081900360200190f35b3480156104aa57600080fd5b506104d7600480360360408110156104c157600080fd5b506001600160a01b0381351690602001356110b3565b005b3480156104e557600080fd5b506103ba600480360360208110156104fc57600080fd5b810190602081018135600160201b81111561051657600080fd5b82018360208201111561052857600080fd5b803590602001918460018302840111600160201b8311171561054957600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061118e945050505050565b34801561059657600080fd5b506104d7600480360360408110156105ad57600080fd5b5080359060200135611201565b3480156105c657600080fd5b506105cf61141a565b60408051918252519081900360200190f35b3480156105ed57600080fd5b506104d76004803603606081101561060457600080fd5b506001600160a01b0381358116916020810135909116906040013561142b565b34801561063057600080fd5b506104d76004803603602081101561064757600080fd5b5035611482565b34801561065a57600080fd5b506105cf6004803603604081101561067157600080fd5b506001600160a01b038135169060200135611566565b34801561069357600080fd5b506104d7600480360360208110156106aa57600080fd5b810190602081018135600160201b8111156106c457600080fd5b8201836020820111156106d657600080fd5b803590602001918460018302840111600160201b831117156106f757600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611591945050505050565b34801561074457600080fd5b506104d76115fc565b34801561075957600080fd5b506104d7611683565b34801561076e57600080fd5b506104d76004803603606081101561078557600080fd5b506001600160a01b038135811691602081013590911690604001356117dc565b3480156107b157600080fd5b506105cf6117f7565b3480156107c657600080fd5b506105cf6117fd565b3480156107db57600080fd5b506105cf600480360360208110156107f257600080fd5b5035611805565b34801561080557600080fd5b506105cf61181b565b34801561081a57600080fd5b506105cf611821565b34801561082f57600080fd5b506104d76004803603602081101561084657600080fd5b810190602081018135600160201b81111561086057600080fd5b82018360208201111561087257600080fd5b803590602001918460018302840111600160201b8311171561089357600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061182e945050505050565b3480156108e057600080fd5b506105cf611899565b3480156108f557600080fd5b506104826004803603602081101561090c57600080fd5b50356118a0565b34801561091f57600080fd5b506104d76118c8565b34801561093457600080fd5b506103e36004803603602081101561094b57600080fd5b5035611a13565b34801561095e57600080fd5b506105cf6004803603602081101561097557600080fd5b5035611ab4565b34801561098857600080fd5b506105cf6004803603602081101561099f57600080fd5b50356001600160a01b0316611ac6565b3480156109bb57600080fd5b506104d7611b2e565b3480156109d057600080fd5b506104d7611bd0565b3480156109e557600080fd5b506105cf611d11565b3480156109fa57600080fd5b50610482611d17565b348015610a0f57600080fd5b506103e3611d26565b6104d760048036036020811015610a2e57600080fd5b5035611d42565b348015610a4157600080fd5b506103e360048036036020811015610a5857600080fd5b810190602081018135600160201b811115610a7257600080fd5b820183602082011115610a8457600080fd5b803590602001918460018302840111600160201b83111715610aa557600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550612000945050505050565b348015610af257600080fd5b506105cf612122565b348015610b0757600080fd5b506103e361212a565b348015610b1c57600080fd5b506105cf61218b565b348015610b3157600080fd5b506103ba60048036036020811015610b4857600080fd5b810190602081018135600160201b811115610b6257600080fd5b820183602082011115610b7457600080fd5b803590602001918460018302840111600160201b83111715610b9557600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550612191945050505050565b348015610be257600080fd5b506104d760048036036040811015610bf957600080fd5b506001600160a01b038135169060200135151561237c565b348015610c1d57600080fd5b506104d760048036036020811015610c3457600080fd5b5035612481565b348015610c4757600080fd5b506105cf61259f565b348015610c5c57600080fd5b506104d760048036036080811015610c7357600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b811115610cad57600080fd5b820183602082011115610cbf57600080fd5b803590602001918460018302840111600160201b83111715610ce057600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506125a5945050505050565b348015610d2d57600080fd5b506105cf612603565b348015610d4257600080fd5b506105cf612609565b348015610d5757600080fd5b506104d760048036036040811015610d6e57600080fd5b81359190810190604081016020820135600160201b811115610d8f57600080fd5b820183602082011115610da157600080fd5b803590602001918460018302840111600160201b83111715610dc257600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061260f945050505050565b348015610e0f57600080fd5b506103e360048036036020811015610e2657600080fd5b5035612b07565b348015610e3957600080fd5b506105cf612e97565b348015610e4e57600080fd5b506103e3612e9d565b348015610e6357600080fd5b506105cf612efe565b348015610e7857600080fd5b506105cf612f04565b348015610e8d57600080fd5b506105cf612f0a565b348015610ea257600080fd5b506103e3612f10565b348015610eb757600080fd5b506103ba60048036036040811015610ece57600080fd5b506001600160a01b0381358116916020013516612f71565b348015610ef257600080fd5b506105cf612f9f565b348015610f0757600080fd5b506105cf612fa5565b348015610f1c57600080fd5b506104d760048036036020811015610f3357600080fd5b50356001600160a01b0316612fab565b348015610f4f57600080fd5b506105cf6130a3565b348015610f6457600080fd5b506105cf6130ab565b348015610f7957600080fd5b506105cf60048036036020811015610f9057600080fd5b50356131f0565b6001600160e01b0319811660009081526001602052604090205460ff165b919050565b60168054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156110465780601f1061101b57610100808354040283529160200191611046565b820191906000526020600020905b81548152906001019060200180831161102957829003601f168201915b505050505090505b90565b600061105c826132ed565b6110975760405162461bcd60e51b815260040180806020018281038252602c815260200180614425602c913960400191505060405180910390fd5b506000908152601160205260409020546001600160a01b031690565b60006110be826118a0565b9050806001600160a01b0316836001600160a01b031614156111115760405162461bcd60e51b81526004018080602001828103825260218152602001806144e86021913960400191505060405180910390fd5b806001600160a01b03166111236132fa565b6001600160a01b0316148061114457506111448161113f6132fa565b612f71565b61117f5760405162461bcd60e51b81526004018080602001828103825260388152602001806142e16038913960400191505060405180910390fd5b61118983836132fe565b505050565b6000601361119b83612000565b6040518082805190602001908083835b602083106111ca5780518252601f1990920191602091820191016111ab565b51815160209384036101000a600019018019909216911617905292019485525060405193849003019092205460ff16949350505050565b6112096132fa565b6000546001600160a01b03908116911614611259576040805162461bcd60e51b8152602060048201819052602482015260008051602061447c833981519152604482015290519081900360640190fd5b61138761126461141a565b106112af576040805162461bcd60e51b815260206004820152601660248201527514d85b19481a185cc8185b1c9958591e48195b99195960521b604482015290519081900360640190fd5b6000821180156112bf5750600882105b611310576040805162461bcd60e51b815260206004820181905260248201527f427261636b6574206d75737420626520696e207468652072616e676520312d37604482015290519081900360640190fd5b6000811161134f5760405162461bcd60e51b81526004018080602001828103825260248152602001806141696024913960400191505060405180910390fd5b6113576130ab565b8110156113955760405162461bcd60e51b815260040180806020018281038252602b815260200180614451602b913960400191505060405180910390fd5b81600114156113a8576007819055611416565b81600214156113bb576008819055611416565b81600314156113ce576009819055611416565b81600414156113e157600a819055611416565b81600514156113f457600b819055611416565b816006141561140757600c819055611416565b816007141561141657600d8190555b5050565b6000611426600f61336c565b905090565b61143c6114366132fa565b82613377565b6114775760405162461bcd60e51b81526004018080602001828103825260318152602001806145096031913960400191505060405180910390fd5b61118983838361341b565b61148a6132fa565b6000546001600160a01b039081169116146114da576040805162461bcd60e51b8152602060048201819052602482015260008051602061447c833981519152604482015290519081900360640190fd5b600081116115195760405162461bcd60e51b81526004018080602001828103825260248152602001806141696024913960400191505060405180910390fd5b680d8d726b7177a800008111156115615760405162461bcd60e51b815260040180806020018281038252602a81526020018061418d602a913960400191505060405180910390fd5b600255565b6001600160a01b0382166000908152600e602052604081206115889083613567565b90505b92915050565b6115996132fa565b6000546001600160a01b039081169116146115e9576040805162461bcd60e51b8152602060048201819052602482015260008051602061447c833981519152604482015290519081900360640190fd5b8051611416906018906020840190613ffd565b6116046132fa565b6000546001600160a01b03908116911614611654576040805162461bcd60e51b8152602060048201819052602482015260008051602061447c833981519152604482015290519081900360640190fd5b6040514790339082156108fc029083906000818181858888f19350505050158015611416573d6000803e3d6000fd5b61168b6132fa565b6000546001600160a01b039081169116146116db576040805162461bcd60e51b8152602060048201819052602482015260008051602061447c833981519152604482015290519081900360640190fd5b601a54604080516370a0823160e01b81526001600160a01b039092166004830181905290516000926370a08231916024808301926020929190829003018186803b15801561172857600080fd5b505afa15801561173c573d6000803e3d6000fd5b505050506040513d602081101561175257600080fd5b5051601a54604080516323b872dd60e01b81526001600160a01b0390921660048301819052336024840152604483018490529051929350916323b872dd916064808201926020929091908290030181600087803b1580156117b257600080fd5b505af11580156117c6573d6000803e3d6000fd5b505050506040513d602081101561118957600080fd5b611189838383604051806020016040528060008152506125a5565b60025481565b636074df0081565b600080611813600f84613573565b509392505050565b60055481565b680d8d726b7177a8000081565b6118366132fa565b6000546001600160a01b03908116911614611886576040805162461bcd60e51b8152602060048201819052602482015260008051602061447c833981519152604482015290519081900360640190fd5b8051611416906019906020840190613ffd565b6202a30081565b600061158b8260405180606001604052806029815260200161436460299139600f919061358f565b6118d06132fa565b6000546001600160a01b03908116911614611920576040805162461bcd60e51b8152602060048201819052602482015260008051602061447c833981519152604482015290519081900360640190fd5b426360b5788011156119635760405162461bcd60e51b81526004018080602001828103825260298152602001806142b86029913960400191505060405180910390fd5b600654156119a25760405162461bcd60e51b81526004018080602001828103825260238152602001806141dd6023913960400191505060405180910390fd5b6113876119ad61141a565b106119f8576040805162461bcd60e51b815260206004820152601660248201527514d85b19481a185cc8185b1c9958591e48195b99195960521b604482015290519081900360640190fd5b6000611a026130ab565b90508015611a105760068190555b50565b60008181526012602090815260409182902080548351601f6002600019610100600186161502019093169290920491820184900484028101840190945280845260609392830182828015611aa85780601f10611a7d57610100808354040283529160200191611aa8565b820191906000526020600020905b815481529060010190602001808311611a8b57829003601f168201915b50505050509050919050565b60009081526014602052604090205490565b60006001600160a01b038216611b0d5760405162461bcd60e51b815260040180806020018281038252602a81526020018061433a602a913960400191505060405180910390fd5b6001600160a01b0382166000908152600e6020526040902061158b9061336c565b611b366132fa565b6000546001600160a01b03908116911614611b86576040805162461bcd60e51b8152602060048201819052602482015260008051602061447c833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60045415611c25576040805162461bcd60e51b815260206004820152601d60248201527f5374617274696e6720696e64657820697320616c726561647920736574000000604482015290519081900360640190fd5b600354611c7457636074df00421015611c6f5760405162461bcd60e51b815260040180806020018281038252603e8152602001806140aa603e913960400191505060405180910390fd5b436003555b600354611cc8576040805162461bcd60e51b815260206004820181905260248201527f5374617274696e6720696e64657820626c6f636b206d75737420626520736574604482015290519081900360640190fd5b60035461138781400660045560ff90611ce29043906135a6565b1115611cf657611387600019430140066004555b600454611d0f57600454611d0b9060016135e8565b6004555b565b600c5481565b6000546001600160a01b031690565b60405180606001604052806040815260200161424c6040913981565b63606ba480421015611d92576040805162461bcd60e51b815260206004820152601460248201527314d85b19481a185cc81b9bdd081cdd185c9d195960621b604482015290519081900360640190fd5b611387611d9d61141a565b10611de8576040805162461bcd60e51b815260206004820152601660248201527514d85b19481a185cc8185b1c9958591e48195b99195960521b604482015290519081900360640190fd5b60008111611e3d576040805162461bcd60e51b815260206004820152601860248201527f6e756d6265724f664e6674732063616e6e6f7420626520300000000000000000604482015290519081900360640190fd5b6031811115611e7d5760405162461bcd60e51b81526004018080602001828103825260298152602001806140e86029913960400191505060405180910390fd5b611387611e9282611e8c61141a565b906135e8565b1115611ede576040805162461bcd60e51b815260206004820152601660248201527545786365656473204d41585f4e46545f535550504c5960501b604482015290519081900360640190fd5b34611ef182611eeb6130ab565b90613642565b14611f43576040805162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f727265637400604482015290519081900360640190fd5b60005b81811015611fcd576000611f5861141a565b90506113878110611fa9576040805162461bcd60e51b815260206004820152601660248201527514d85b19481a185cc8185b1c9958591e48195b99195960521b604482015290519081900360640190fd5b6000818152601460205260409020429055611fc4338261369b565b50600101611f46565b50600354158015611ff45750611387611fe461141a565b1480611ff45750636074df004210155b15611a10574360035550565b6060808290506060815167ffffffffffffffff8111801561202057600080fd5b506040519080825280601f01601f19166020018201604052801561204b576020820181803683370190505b50905060005b825181101561181357604183828151811061206857fe5b016020015160f81c108015906120925750605a83828151811061208757fe5b016020015160f81c11155b156120df578281815181106120a357fe5b602001015160f81c60f81b60f81c60200160f81b8282815181106120c357fe5b60200101906001600160f81b031916908160001a90535061211a565b8281815181106120eb57fe5b602001015160f81c60f81b82828151811061210257fe5b60200101906001600160f81b031916908160001a9053505b600101612051565b63606ba48081565b60178054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156110465780601f1061101b57610100808354040283529160200191611046565b60095481565b600060608290506001815110156121ac576000915050610fb5565b6014815111156121c0576000915050610fb5565b806000815181106121cd57fe5b6020910101516001600160f81b031916600160fd1b14156121f2576000915050610fb5565b8060018251038151811061220257fe5b6020910101516001600160f81b031916600160fd1b1415612227576000915050610fb5565b60008160008151811061223657fe5b01602001516001600160f81b031916905060005b825181101561237157600083828151811061226157fe5b01602001516001600160f81b0319169050600160fd1b811480156122925750600160fd1b6001600160f81b03198416145b156122a4576000945050505050610fb5565b600360fc1b6001600160f81b03198216108015906122d05750603960f81b6001600160f81b0319821611155b1580156123065750604160f81b6001600160f81b03198216108015906123045750602d60f91b6001600160f81b0319821611155b155b801561233b5750606160f81b6001600160f81b03198216108015906123395750603d60f91b6001600160f81b0319821611155b155b80156123555750600160fd1b6001600160f81b0319821614155b15612367576000945050505050610fb5565b915060010161224a565b506001949350505050565b6123846132fa565b6001600160a01b0316826001600160a01b031614156123ea576040805162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015290519081900360640190fd5b80601560006123f76132fa565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff19169215159290921790915561243b6132fa565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b6124896132fa565b6000546001600160a01b039081169116146124d9576040805162461bcd60e51b8152602060048201819052602482015260008051602061447c833981519152604482015290519081900360640190fd5b426360b57880111561251c5760405162461bcd60e51b81526004018080602001828103825260288152602001806143dc6028913960400191505060405180910390fd5b6000811161255b5760405162461bcd60e51b81526004018080602001828103825260288152602001806145726028913960400191505060405180910390fd5b4281101561259a5760405162461bcd60e51b81526004018080602001828103825260218152602001806143196021913960400191505060405180910390fd5b600555565b61138781565b6125b66125b06132fa565b83613377565b6125f15760405162461bcd60e51b81526004018080602001828103825260318152602001806145096031913960400191505060405180910390fd5b6125fd848484846136b5565b50505050565b600a5481565b60085481565b600061261a836118a0565b9050806001600160a01b031661262e6132fa565b6001600160a01b031614612689576040805162461bcd60e51b815260206004820152601f60248201527f4552433732313a2063616c6c6572206973206e6f7420746865206f776e657200604482015290519081900360640190fd5b6005612694846131f0565b10156126d15760405162461bcd60e51b815260040180806020018281038252603881526020018061453a6038913960400191505060405180910390fd5b6126da82612191565b1515600114612727576040805162461bcd60e51b81526020600482015260146024820152734e6f7420612076616c6964206e6577206e616d6560601b604482015290519081900360640190fd5b60026012600085815260200190815260200160002060405180828054600181600116156101000203166002900480156127975780601f10612775576101008083540402835291820191612797565b820191906000526020600020905b815481529060010190602001808311612783575b5050915050602060405180830381855afa1580156127b9573d6000803e3d6000fd5b5050506040513d60208110156127ce57600080fd5b505160405183516002918591819060208401908083835b602083106128045780518252601f1990920191602091820191016127e5565b51815160209384036101000a60001901801990921691161790526040519190930194509192505080830381855afa158015612843573d6000803e3d6000fd5b5050506040513d602081101561285857600080fd5b505114156128975760405162461bcd60e51b81526004018080602001828103825260238152602001806144c56023913960400191505060405180910390fd5b6128a08261118e565b156128ea576040805162461bcd60e51b815260206004820152601560248201527413985b5948185b1c9958591e481c995cd95c9d9959605a1b604482015290519081900360640190fd5b601a54600254604080516323b872dd60e01b81523360048201526001600160a01b039093166024840181905260448401929092525190916323b872dd9160648083019260209291908290030181600087803b15801561294857600080fd5b505af115801561295c573d6000803e3d6000fd5b505050506040513d602081101561297257600080fd5b50506000838152601260205260409020546002600019610100600184161502019091160415612a3d5760008381526012602090815260409182902080548351601f60026000196101006001861615020190931692909204918201849004840281018401909452808452612a3d9392830182828015612a315780601f10612a0657610100808354040283529160200191612a31565b820191906000526020600020905b815481529060010190602001808311612a1457829003601f168201915b50505050506000613707565b612a48826001613707565b60008381526012602090815260409091208351612a6792850190613ffd565b50827f7e632a301794d8d4a81ea7e20f37d1947158d36e66403af04ba85dd194b66f1b836040518080602001828103825283818151815260200191508051906020019080838360005b83811015612ac8578181015183820152602001612ab0565b50505050905090810190601f168015612af55780820380516001836020036101000a031916815260200191505b509250505060405180910390a2505050565b6060612b12826132ed565b612b4d5760405162461bcd60e51b81526004018080602001828103825260268152602001806141b76026913960400191505060405180910390fd5b734b55f7f8e1e82a1a295d1a3fcb8769c6f2b4fc3863f8dc0558612b6f612e9d565b734b55f7f8e1e82a1a295d1a3fcb8769c6f2b4fc3863a76d54ff866040518263ffffffff1660e01b81526004018082815260200191505060006040518083038186803b158015612bbe57600080fd5b505af4158015612bd2573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015612bfb57600080fd5b8101908080516040519392919084600160201b821115612c1a57600080fd5b908301906020820185811115612c2f57600080fd5b8251600160201b811182820188101715612c4857600080fd5b82525081516020918201929091019080838360005b83811015612c75578181015183820152602001612c5d565b50505050905090810190601f168015612ca25780820380516001836020036101000a031916815260200191505b506040525050506040518363ffffffff1660e01b8152600401808060200180602001838103835285818151815260200191508051906020019080838360005b83811015612cf9578181015183820152602001612ce1565b50505050905090810190601f168015612d265780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b83811015612d59578181015183820152602001612d41565b50505050905090810190601f168015612d865780820380516001836020036101000a031916815260200191505b5094505050505060006040518083038186803b158015612da557600080fd5b505af4158015612db9573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015612de257600080fd5b8101908080516040519392919084600160201b821115612e0157600080fd5b908301906020820185811115612e1657600080fd5b8251600160201b811182820188101715612e2f57600080fd5b82525081516020918201929091019080838360005b83811015612e5c578181015183820152602001612e44565b50505050905090810190601f168015612e895780820380516001836020036101000a031916815260200191505b506040525050509050919050565b60045481565b60188054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156110465780601f1061101b57610100808354040283529160200191611046565b60075481565b600d5481565b60035481565b60198054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156110465780601f1061101b57610100808354040283529160200191611046565b6001600160a01b03918216600090815260156020908152604080832093909416825291909152205460ff1690565b600b5481565b60065481565b612fb36132fa565b6000546001600160a01b03908116911614613003576040805162461bcd60e51b8152602060048201819052602482015260008051602061447c833981519152604482015290519081900360640190fd5b6001600160a01b0381166130485760405162461bcd60e51b81526004018080602001828103825260268152602001806141436026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6360b5788081565b600063606ba4804210156130fd576040805162461bcd60e51b815260206004820152601460248201527314d85b19481a185cc81b9bdd081cdd185c9d195960621b604482015290519081900360640190fd5b61138761310861141a565b10613153576040805162461bcd60e51b815260206004820152601660248201527514d85b19481a185cc8185b1c9958591e48195b99195960521b604482015290519081900360640190fd5b60065415613164575060065461104e565b600061316e61141a565b905061137e8110613183575050600d5461104e565b61128e8110613196575050600c5461104e565b61109a81106131a9575050600b5461104e565b610dac81106131bc575050600a5461104e565b6109c481106131cf57505060095461104e565b6103e881106131e257505060085461104e565b505060075461104e565b5090565b6000818152601460205260408120548061323b5760405162461bcd60e51b81526004018080602001828103825260288152602001806142246028913960400191505060405180910390fd5b4281111561327a5760405162461bcd60e51b815260040180806020018281038252602d81526020018061438d602d913960400191505060405180910390fd5b600061328642836135a6565b9050600060055411801561329c57506005544210155b156132ac57600992505050610fb5565b6001805b60098110156132e4576132c6816202a300613642565b83106132d7576001909101906132dc565b6132e4565b6001016132b0565b50949350505050565b600061158b600f83613783565b3390565b600081815260116020526040902080546001600160a01b0319166001600160a01b0384169081179091558190613333826118a0565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061158b8261378f565b6000613382826132ed565b6133bd5760405162461bcd60e51b815260040180806020018281038252602c81526020018061428c602c913960400191505060405180910390fd5b60006133c8836118a0565b9050806001600160a01b0316846001600160a01b031614806134035750836001600160a01b03166133f884611051565b6001600160a01b0316145b8061341357506134138185612f71565b949350505050565b826001600160a01b031661342e826118a0565b6001600160a01b0316146134735760405162461bcd60e51b815260040180806020018281038252602981526020018061449c6029913960400191505060405180910390fd5b6001600160a01b0382166134b85760405162461bcd60e51b81526004018080602001828103825260248152602001806142006024913960400191505060405180910390fd5b6134c3838383611189565b6134ce6000826132fe565b6001600160a01b0383166000908152600e602052604090206134f09082613793565b506001600160a01b0382166000908152600e60205260409020613513908261379f565b50613520600f82846137ab565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b600061158883836137c1565b60008080806135828686613825565b9097909650945050505050565b600061359c8484846138a0565b90505b9392505050565b600061158883836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061396a565b600082820183811015611588576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000826136515750600061158b565b8282028284828161365e57fe5b04146115885760405162461bcd60e51b81526004018080602001828103825260218152602001806144046021913960400191505060405180910390fd5b6114168282604051806020016040528060008152506139c4565b6136c084848461341b565b6136cc84848484613a16565b6125fd5760405162461bcd60e51b81526004018080602001828103825260328152602001806141116032913960400191505060405180910390fd5b80601361371384612000565b6040518082805190602001908083835b602083106137425780518252601f199092019160209182019101613723565b51815160209384036101000a60001901801990921691161790529201948552506040519384900301909220805460ff19169315159390931790925550505050565b60006115888383613b7e565b5490565b60006115888383613b96565b60006115888383613c5c565b600061359c84846001600160a01b038516613ca6565b815460009082106138035760405162461bcd60e51b81526004018080602001828103825260228152602001806140886022913960400191505060405180910390fd5b82600001828154811061381257fe5b9060005260206000200154905092915050565b8154600090819083106138695760405162461bcd60e51b81526004018080602001828103825260228152602001806143ba6022913960400191505060405180910390fd5b600084600001848154811061387a57fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b6000828152600184016020526040812054828161393b5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156139005781810151838201526020016138e8565b50505050905090810190601f16801561392d5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5084600001600182038154811061394e57fe5b9060005260206000209060020201600101549150509392505050565b600081848411156139bc5760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156139005781810151838201526020016138e8565b505050900390565b6139ce8383613d3d565b6139db6000848484613a16565b6111895760405162461bcd60e51b81526004018080602001828103825260328152602001806141116032913960400191505060405180910390fd5b6000613a2a846001600160a01b0316613e6b565b613a3657506001613413565b6060613b44630a85bd0160e11b613a4b6132fa565b88878760405160240180856001600160a01b03168152602001846001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015613ab2578181015183820152602001613a9a565b50505050905090810190601f168015613adf5780820380516001836020036101000a031916815260200191505b5095505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b038381831617835250505050604051806060016040528060328152602001614111603291396001600160a01b0388169190613e71565b90506000818060200190516020811015613b5d57600080fd5b50516001600160e01b031916630a85bd0160e11b1492505050949350505050565b60009081526001919091016020526040902054151590565b60008181526001830160205260408120548015613c525783546000198083019190810190600090879083908110613bc957fe5b9060005260206000200154905080876000018481548110613be657fe5b600091825260208083209091019290925582815260018981019092526040902090840190558654879080613c1657fe5b6001900381819060005260206000200160009055905586600101600087815260200190815260200160002060009055600194505050505061158b565b600091505061158b565b6000613c688383613b7e565b613c9e5750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561158b565b50600061158b565b600082815260018401602052604081205480613d0b57505060408051808201825283815260208082018481528654600181810189556000898152848120955160029093029095019182559151908201558654868452818801909252929091205561359f565b82856000016001830381548110613d1e57fe5b906000526020600020906002020160010181905550600091505061359f565b6001600160a01b038216613d98576040805162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b613da1816132ed565b15613df3576040805162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015290519081900360640190fd5b613dff60008383611189565b6001600160a01b0382166000908152600e60205260409020613e21908261379f565b50613e2e600f82846137ab565b5060405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b3b151590565b606061359c848460008585613e8585613e6b565b613ed6576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310613f155780518252601f199092019160209182019101613ef6565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114613f77576040519150601f19603f3d011682016040523d82523d6000602084013e613f7c565b606091505b5091509150613f8c828286613f97565b979650505050505050565b60608315613fa657508161359f565b825115613fb65782518084602001fd5b60405162461bcd60e51b81526020600482018181528451602484015284518593919283926044019190850190808383600083156139005781810151838201526020016138e8565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061403e57805160ff191683800117855561406b565b8280016001018555821561406b579182015b8281111561406b578251825591602001919060010190614050565b506131ec9291505b808211156131ec576000815560010161407356fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473446973747269627574696f6e20706572696f64206d757374206265206f76657220746f2073657420746865207374617274696e67496e646578426c6f636b596f75206d6179206e6f7420627579206d6f7265207468616e203439204e465473206174206f6e63654552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573735072696365206d7573742062652073657420616e642067726561746572207468616e203050726963652063616e6e6f742062652067726561746572207468616e206d6178696d756d207072696365546f6b656e20776974682073706563696669656420494420646f6573206e6f742065786973744669786564207072696365206d757374206e6f7420626520616c7265616479207365744552433732313a207472616e7366657220746f20746865207a65726f20616464726573734d696e742074696d65206d7573742062652073657420616e642067726561746572207468616e2030396237653763323262353462613161373533663934626337613338616336623366343162383034306162333438303134363966363534616530336637653431394552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e43616e6e6f742063616c6c2066756e6374696f6e206265666f726520317374204a756e6520323032314552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c54696d65206d757374206265206e6f77206f7220696e20746865206675747572654552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e4d696e742074696d652063616e6e6f742062652067726561746572207468616e2063757272656e742074696d65456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e647343616e6e6f742063616c6c2066756e6374696f6e20756e74696c20317374204a756e652032303231536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e50726963652063616e6e6f74206265206c657373207468616e207468652063757272656e742070726963654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65724552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4e6577206e616d652069732073616d65206173207468652063757272656e74206f6e654552433732313a20617070726f76616c20746f2063757272656e74206f776e65724552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656443616e206f6e6c79206368616e6765206e616d652061667465722035207365676d656e74732068617665206265656e20756e6c6f636b656454696d657374616d70206d7573742062652073657420616e642067726561746572207468616e2030a2646970667358221220b0ecb49d39f8e34c43a3a5be49a28c29a0cb9944968f89b29b7a13bffe1c667064736f6c6343000700003368747470733a2f2f7361746f73686966616365732e636f6d2f6170692f636f6e74726163746d6574616461746168747470733a2f2f7361746f73686966616365732e636f6d2f6170692f6f70656e7365612f

Libraries Used


Deployed ByteCode Sourcemap

1725:29400:5:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;938:142:2;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;938:142:2;-1:-1:-1;;;;;;938:142:2;;:::i;:::-;;;;;;;;;;;;;;;;;;7853:92:5;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20179:213;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;20179:213:5;;:::i;:::-;;;;-1:-1:-1;;;;;20179:213:5;;;;;;;;;;;;;;19723:390;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;19723:390:5;;;;;;;;:::i;:::-;;9148:146;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;9148:146:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;9148:146:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;9148:146:5;;-1:-1:-1;9148:146:5;;-1:-1:-1;;;;;9148:146:5:i;11115:979::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;11115:979:5;;;;;;;:::i;8424:203::-;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;21053:305;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;21053:305:5;;;;;;;;;;;;;;;;;:::i;12262:272::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;12262:272:5;;:::i;8194:154::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;8194:154:5;;;;;;;;:::i;10615:101::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;10615:101:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;10615:101:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;10615:101:5;;-1:-1:-1;10615:101:5;;-1:-1:-1;;;;;10615:101:5:i;19171:131::-;;;;;;;;;;;;;:::i;19472:189::-;;;;;;;;;;;;;:::i;21429:151::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;21429:151:5;;;;;;;;;;;;;;;;;:::i;2857:54::-;;;;;;;;;;;;;:::i;2458:83::-;;;;;;;;;;;;;:::i;8704:164::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;8704:164:5;;:::i;3003:47::-;;;;;;;;;;;;;:::i;2739:64::-;;;;;;;;;;;;;:::i;10843:123::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;10843:123:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;10843:123:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;10843:123:5;;-1:-1:-1;10843:123:5;;-1:-1:-1;;;;;10843:123:5:i;2577:61::-;;;;;;;;;;;;;:::i;7617:169::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;7617:169:5;;:::i;13208:460::-;;;;;;;;;;;;;:::i;8941:129::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;8941:129:5;;:::i;9400:135::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;9400:135:5;;:::i;7340:215::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;7340:215:5;-1:-1:-1;;;;;7340:215:5;;:::i;1188:148:12:-;;;;;;;;;;;;;:::i;17098:930:5:-;;;;;;;;;;;;;:::i;3397:51::-;;;;;;;;;;;;;:::i;546:79:12:-;;;;;;;;;;;;;:::i;2091:108:5:-;;;;;;;;;;;;;:::i;15903:1132::-;;;;;;;;;;;;;;;;-1:-1:-1;15903:1132:5;;:::i;30616:506::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;30616:506:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;30616:506:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;30616:506:5;;-1:-1:-1;30616:506:5;;-1:-1:-1;;;;;30616:506:5:i;2271:57::-;;;;;;;;;;;;;:::i;8014:96::-;;;;;;;;;;;;;:::i;3223:51::-;;;;;;;;;;;;;:::i;29626:918::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;29626:918:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;29626:918:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;29626:918:5;;-1:-1:-1;29626:918:5;;-1:-1:-1;;;;;29626:918:5:i;20464:295::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;20464:295:5;;;;;;;;;;:::i;12643:396::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;12643:396:5;;:::i;2681:45::-;;;;;;;;;;;;;:::i;21651:285::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;21651:285:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;21651:285:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;21651:285:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;21651:285:5;;-1:-1:-1;21651:285:5;;-1:-1:-1;;;;;21651:285:5:i;3281:51::-;;;;;;;;;;;;;:::i;3165:::-;;;;;;;;;;;;;:::i;18109:966::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;18109:966:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;18109:966:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;18109:966:5;;-1:-1:-1;18109:966:5;;-1:-1:-1;;;;;18109:966:5:i;9745:280::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;9745:280:5;;:::i;2962:28::-;;;;;;;;;;;;;:::i;10151:94::-;;;;;;;;;;;;;:::i;3107:51::-;;;;;;;;;;;;;:::i;3455:::-;;;;;;;;;;;;;:::i;2920:33::-;;;;;;;;;;;;;:::i;10391:97::-;;;;;;;;;;;;;:::i;20830:156::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;20830:156:5;;;;;;;;;;:::i;3339:51::-;;;;;;;;;;;;;:::i;3063:31::-;;;;;;;;;;;;;:::i;1491:244:12:-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1491:244:12;-1:-1:-1;;;;;1491:244:12;;:::i;2212:50:5:-;;;;;;;;;;;;;:::i;14739:1115::-;;;;;;;;;;;;;:::i;13801:876::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;13801:876:5;;:::i;938:142:2:-;-1:-1:-1;;;;;;1039:33:2;;1015:4;1039:33;;;:20;:33;;;;;;;;938:142;;;;:::o;7853:92:5:-;7932:5;7925:12;;;;;;;;-1:-1:-1;;7925:12:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7899:13;;7925:12;;7932:5;;7925:12;;7932:5;7925:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7853:92;;:::o;20179:213::-;20247:7;20275:16;20283:7;20275;:16::i;:::-;20267:73;;;;-1:-1:-1;;;20267:73:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;20360:24:5;;;;:15;:24;;;;;;-1:-1:-1;;;;;20360:24:5;;20179:213::o;19723:390::-;19804:13;19820:16;19828:7;19820;:16::i;:::-;19804:32;;19861:5;-1:-1:-1;;;;;19855:11:5;:2;-1:-1:-1;;;;;19855:11:5;;;19847:57;;;;-1:-1:-1;;;19847:57:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19941:5;-1:-1:-1;;;;;19925:21:5;:12;:10;:12::i;:::-;-1:-1:-1;;;;;19925:21:5;;:62;;;;19950:37;19967:5;19974:12;:10;:12::i;:::-;19950:16;:37::i;:::-;19917:154;;;;-1:-1:-1;;;19917:154:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20084:21;20093:2;20097:7;20084:8;:21::i;:::-;19723:390;;;:::o;9148:146::-;9228:4;9252:13;9266:19;9274:10;9266:7;:19::i;:::-;9252:34;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;9252:34:5;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;9252:34:5;;;;;;;;;;;;;;;;-1:-1:-1;9252:34:5;;;;;;;;;;;;;;9148:146;-1:-1:-1;;;;9148:146:5:o;11115:979::-;768:12:12;:10;:12::i;:::-;758:6;;-1:-1:-1;;;;;758:6:12;;;:22;;;750:67;;;;;-1:-1:-1;;;750:67:12;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;750:67:12;;;;;;;;;;;;;;;2722:4:5::1;11210:13;:11;:13::i;:::-;:30;11202:65;;;::::0;;-1:-1:-1;;;11202:65:5;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;11202:65:5;;;;;;;;;;;;;::::1;;11296:1;11286:7;:11;:26;;;;;11311:1;11301:7;:11;11286:26;11278:71;;;::::0;;-1:-1:-1;;;11278:71:5;;::::1;;::::0;::::1;::::0;;;;;;;::::1;::::0;;;;;;;;;;;;;::::1;;11376:1;11368:5;:9;11360:58;;;;-1:-1:-1::0;;;11360:58:5::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11446:13;:11;:13::i;:::-;11437:5;:22;;11429:78;;;;-1:-1:-1::0;;;11429:78:5::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11531:7;11542:1;11531:12;11528:559;;;11560:15;:23:::0;;;11528:559:::1;;;11613:7;11624:1;11613:12;11610:477;;;11642:15;:23:::0;;;11610:477:::1;;;11695:7;11706:1;11695:12;11692:395;;;11724:15;:23:::0;;;11692:395:::1;;;11777:7;11788:1;11777:12;11774:313;;;11806:15;:23:::0;;;11774:313:::1;;;11859:7;11870:1;11859:12;11856:231;;;11888:15;:23:::0;;;11856:231:::1;;;11941:7;11952:1;11941:12;11938:149;;;11970:15;:23:::0;;;11938:149:::1;;;12023:7;12034:1;12023:12;12020:67;;;12052:15;:23:::0;;;12020:67:::1;11115:979:::0;;:::o;8424:203::-;8477:7;8598:21;:12;:19;:21::i;:::-;8591:28;;8424:203;:::o;21053:305::-;21214:41;21233:12;:10;:12::i;:::-;21247:7;21214:18;:41::i;:::-;21206:103;;;;-1:-1:-1;;;21206:103:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21322:28;21332:4;21338:2;21342:7;21322:9;:28::i;12262:272::-;768:12:12;:10;:12::i;:::-;758:6;;-1:-1:-1;;;;;758:6:12;;;:22;;;750:67;;;;;-1:-1:-1;;;750:67:12;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;750:67:12;;;;;;;;;;;;;;;12354:1:5::1;12346:5;:9;12338:58;;;;-1:-1:-1::0;;;12338:58:5::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2787:16;12415:5;:30;;12407:85;;;;-1:-1:-1::0;;;12407:85:5::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12503:15;:23:::0;12262:272::o;8194:154::-;-1:-1:-1;;;;;8310:20:5;;8283:7;8310:20;;;:13;:20;;;;;:30;;8334:5;8310:23;:30::i;:::-;8303:37;;8194:154;;;;;:::o;10615:101::-;768:12:12;:10;:12::i;:::-;758:6;;-1:-1:-1;;;;;758:6:12;;;:22;;;750:67;;;;;-1:-1:-1;;;750:67:12;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;750:67:12;;;;;;;;;;;;;;;10690:18:5;;::::1;::::0;:8:::1;::::0;:18:::1;::::0;::::1;::::0;::::1;:::i;19171:131::-:0;768:12:12;:10;:12::i;:::-;758:6;;-1:-1:-1;;;;;758:6:12;;;:22;;;750:67;;;;;-1:-1:-1;;;750:67:12;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;750:67:12;;;;;;;;;;;;;;;19266:28:5::1;::::0;19234:21:::1;::::0;19266:10:::1;::::0;:28;::::1;;;::::0;19234:21;;19219:12:::1;19266:28:::0;19219:12;19266:28;19234:21;19266:10;:28;::::1;;;;;;;;;;;;;::::0;::::1;;;;19472:189:::0;768:12:12;:10;:12::i;:::-;758:6;;-1:-1:-1;;;;;758:6:12;;;:22;;;750:67;;;;;-1:-1:-1;;;750:67:12;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;750:67:12;;;;;;;;;;;;;;;19543:11:5::1;::::0;19538:40:::1;::::0;;-1:-1:-1;;;19538:40:5;;-1:-1:-1;;;;;19543:11:5;;::::1;19538:40;::::0;::::1;::::0;;;;;19523:12:::1;::::0;19538:27:::1;::::0;:40;;;;;::::1;::::0;;;;;;;;19543:11;19538:40;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;19538:40:5;19594:11:::1;::::0;19589:64:::1;::::0;;-1:-1:-1;;;19589:64:5;;-1:-1:-1;;;;;19594:11:5;;::::1;19589:64;::::0;::::1;::::0;;;19633:10:::1;19589:64:::0;;;;;;;;;;;;19538:40;;-1:-1:-1;19594:11:5;19589:30:::1;::::0;:64;;;;;19538:40:::1;::::0;19589:64;;;;;;;;19594:11:::1;::::0;19589:64;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;21429:151:::0;21533:39;21550:4;21556:2;21560:7;21533:39;;;;;;;;;;;;:16;:39::i;2857:54::-;;;;:::o;2458:83::-;2507:34;2458:83;:::o;8704:164::-;8771:7;;8813:22;:12;8829:5;8813:15;:22::i;:::-;-1:-1:-1;8791:44:5;8704:164;-1:-1:-1;;;8704:164:5:o;3003:47::-;;;;:::o;2739:64::-;2787:16;2739:64;:::o;10843:123::-;768:12:12;:10;:12::i;:::-;758:6;;-1:-1:-1;;;;;758:6:12;;;:22;;;750:67;;;;;-1:-1:-1;;;750:67:12;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;750:67:12;;;;;;;;;;;;;;;10929:29:5;;::::1;::::0;:12:::1;::::0;:29:::1;::::0;::::1;::::0;::::1;:::i;2577:61::-:0;2628:9;2577:61;:::o;7617:169::-;7681:7;7708:70;7725:7;7708:70;;;;;;;;;;;;;;;;;:12;;:70;:16;:70::i;13208:460::-;768:12:12;:10;:12::i;:::-;758:6;;-1:-1:-1;;;;;758:6:12;;;:22;;;750:67;;;;;-1:-1:-1;;;750:67:12;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;750:67:12;;;;;;;;;;;;;;;13305:15:5::1;2252:10;13288:32;;13280:86;;;;-1:-1:-1::0;;;13280:86:5::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13385:12;::::0;:17;13377:65:::1;;;;-1:-1:-1::0;;;13377:65:5::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2722:4;13461:13;:11;:13::i;:::-;:30;13453:65;;;::::0;;-1:-1:-1;;;13453:65:5;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;13453:65:5;;;;;;;;;;;;;::::1;;13539:20;13562:13;:11;:13::i;:::-;13539:36:::0;-1:-1:-1;13589:16:5;;13586:75:::1;;13622:12;:27:::0;;;13586:75:::1;828:1:12;13208:460:5:o:0;8941:129::-;9045:17;;;;:10;:17;;;;;;;;;9038:24;;;;;;-1:-1:-1;;9038:24:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9012:13;;9038:24;;;9045:17;9038:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8941:129;;;:::o;9400:135::-;9477:7;9504:23;;;:16;:23;;;;;;;9400:135::o;7340:215::-;7404:7;-1:-1:-1;;;;;7432:19:5;;7424:74;;;;-1:-1:-1;;;7424:74:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;7518:20:5;;;;;;:13;:20;;;;;:29;;:27;:29::i;1188:148:12:-;768:12;:10;:12::i;:::-;758:6;;-1:-1:-1;;;;;758:6:12;;;:22;;;750:67;;;;;-1:-1:-1;;;750:67:12;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;750:67:12;;;;;;;;;;;;;;;1295:1:::1;1279:6:::0;;1258:40:::1;::::0;-1:-1:-1;;;;;1279:6:12;;::::1;::::0;1258:40:::1;::::0;1295:1;;1258:40:::1;1326:1;1309:19:::0;;-1:-1:-1;;;;;;1309:19:12::1;::::0;;1188:148::o;17098:930:5:-;17157:13;;:18;17149:60;;;;;-1:-1:-1;;;17149:60:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;17233:18;;17230:219;;2507:34;17281:15;:41;;17273:116;;;;-1:-1:-1;;;17273:116:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17425:12;17404:18;:33;17230:219;17467:18;;17459:68;;;;;-1:-1:-1;;;17459:68:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17579:18;;2722:4;17569:29;;17564:52;17548:13;:68;17791:3;;17752:36;;:12;;:16;:36::i;:::-;:42;17748:139;;;2722:4;-1:-1:-1;;17842:12:5;:14;17832:25;17827:48;17811:13;:64;17748:139;17938:13;;17934:87;;17989:13;;:20;;18007:1;17989:17;:20::i;:::-;17973:13;:36;17934:87;17098:930::o;3397:51::-;;;;:::o;546:79:12:-;584:7;611:6;-1:-1:-1;;;;;611:6:12;546:79;:::o;2091:108:5:-;;;;;;;;;;;;;;;;;;;:::o;15903:1132::-;2318:10;15976:15;:39;;15968:72;;;;;-1:-1:-1;;;15968:72:5;;;;;;;;;;;;-1:-1:-1;;;15968:72:5;;;;;;;;;;;;;;;2722:4;16059:13;:11;:13::i;:::-;:30;16051:65;;;;;-1:-1:-1;;;16051:65:5;;;;;;;;;;;;-1:-1:-1;;;16051:65:5;;;;;;;;;;;;;;;16150:1;16135:12;:16;16127:53;;;;;-1:-1:-1;;;16127:53:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;16215:2;16199:12;:18;;16191:72;;;;-1:-1:-1;;;16191:72:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2722:4;16282:31;16300:12;16282:13;:11;:13::i;:::-;:17;;:31::i;:::-;:49;;16274:84;;;;;-1:-1:-1;;;16274:84:5;;;;;;;;;;;;-1:-1:-1;;;16274:84:5;;;;;;;;;;;;;;;16412:9;16377:31;16395:12;16377:13;:11;:13::i;:::-;:17;;:31::i;:::-;:44;16369:88;;;;;-1:-1:-1;;;16369:88:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;16475:6;16470:318;16491:12;16487:1;:16;16470:318;;;16525:14;16542:13;:11;:13::i;:::-;16525:30;;2722:4;16616:9;:26;16608:61;;;;;-1:-1:-1;;;16608:61:5;;;;;;;;;;;;-1:-1:-1;;;16608:61:5;;;;;;;;;;;;;;;16684:27;;;;:16;:27;;;;;16714:15;16684:45;;16744:32;16754:10;16701:9;16744;:32::i;:::-;-1:-1:-1;16505:3:5;;16470:318;;;-1:-1:-1;16861:18:5;;:23;:105;;;;;2722:4;16889:13;:11;:13::i;:::-;:31;:76;;;-1:-1:-1;2507:34:5;16924:15;:41;;16889:76;16857:171;;;17004:12;16983:18;:33;15903:1132;:::o;30616:506::-;30673:13;30698:17;30724:3;30698:30;;30739:19;30771:4;:11;30761:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;30761:22:5;;30739:44;;30799:6;30794:289;30815:4;:11;30811:1;:15;30794:289;;;30907:2;30895:4;30900:1;30895:7;;;;;;;;;;;;;;30889:20;;;;30888:48;;;30933:2;30921:4;30926:1;30921:7;;;;;;;;;;;;;;30915:20;;30888:48;30884:188;;;30982:4;30987:1;30982:7;;;;;;;;;;;;;;;;30976:14;;30993:2;30976:19;30969:27;;30957:6;30964:1;30957:9;;;;;;;;;;;:39;-1:-1:-1;;;;;30957:39:5;;;;;;;;;30884:188;;;31049:4;31054:1;31049:7;;;;;;;;;;;;;;;;31037:6;31044:1;31037:9;;;;;;;;;;;:19;-1:-1:-1;;;;;31037:19:5;;;;;;;;;30884:188;30828:3;;30794:289;;2271:57;2318:10;2271:57;:::o;8014:96::-;8095:7;8088:14;;;;;;;;-1:-1:-1;;8088:14:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8062:13;;8088:14;;8095:7;;8088:14;;8095:7;8088:14;;;;;;;;;;;;;;;;;;;;;;;;3223:51;;;;:::o;29626:918::-;29688:4;29704:14;29727:3;29704:27;;29756:1;29745;:8;:12;29742:29;;;29766:5;29759:12;;;;;29742:29;29796:2;29785:1;:8;:13;29782:30;;;29807:5;29800:12;;;;;29782:30;29865:1;29867;29865:4;;;;;;;;;;;;;-1:-1:-1;;;;;;29865:4:5;-1:-1:-1;;;29865:12:5;29862:29;;;29886:5;29879:12;;;;;29862:29;29923:1;29936;29925;:8;:12;29923:15;;;;;;;;;;;;;-1:-1:-1;;;;;;29923:15:5;-1:-1:-1;;;29923:23:5;29919:41;;;29955:5;29948:12;;;;;29919:41;29991:15;30009:1;30011;30009:4;;;;;;;;;;;;-1:-1:-1;;;;;;30009:4:5;;-1:-1:-1;30030:6:5;30026:487;30040:1;:8;30038:1;:10;30026:487;;;30069:11;30083:1;30085;30083:4;;;;;;;;;;;;-1:-1:-1;;;;;;30083:4:5;;-1:-1:-1;;;;30108:12:5;;:32;;;;-1:-1:-1;;;;;;;;;;30124:16:5;;;30108:32;30104:50;;;30149:5;30142:12;;;;;;;;30104:50;-1:-1:-1;;;;;;;;;30229:12:5;;;;;;:28;;-1:-1:-1;;;;;;;;;;30245:12:5;;;;30229:28;30227:31;:89;;;;-1:-1:-1;;;;;;;;;;30287:12:5;;;;;;:28;;-1:-1:-1;;;;;;;;;;30303:12:5;;;;30287:28;30285:31;30227:89;:147;;;;-1:-1:-1;;;;;;;;;;30345:12:5;;;;;;:28;;-1:-1:-1;;;;;;;;;;30361:12:5;;;;30345:28;30343:31;30227:147;:189;;;;-1:-1:-1;;;;;;;;;;30403:12:5;;;30401:15;30227:189;30206:263;;;30464:5;30457:12;;;;;;;;30206:263;30497:4;-1:-1:-1;30050:3:5;;30026:487;;;-1:-1:-1;30532:4:5;;29626:918;-1:-1:-1;;;;29626:918:5:o;20464:295::-;20579:12;:10;:12::i;:::-;-1:-1:-1;;;;;20567:24:5;:8;-1:-1:-1;;;;;20567:24:5;;;20559:62;;;;;-1:-1:-1;;;20559:62:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;20679:8;20634:18;:32;20653:12;:10;:12::i;:::-;-1:-1:-1;;;;;20634:32:5;;;;;;;;;;;;;;;;;-1:-1:-1;20634:32:5;;;:42;;;;;;;;;;;;:53;;-1:-1:-1;;20634:53:5;;;;;;;;;;;20718:12;:10;:12::i;:::-;-1:-1:-1;;;;;20703:48:5;;20742:8;20703:48;;;;;;;;;;;;;;;;;;;;20464:295;;:::o;12643:396::-;768:12:12;:10;:12::i;:::-;758:6;;-1:-1:-1;;;;;758:6:12;;;:22;;;750:67;;;;;-1:-1:-1;;;750:67:12;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;750:67:12;;;;;;;;;;;;;;;12758:15:5::1;2252:10;12741:32;;12733:85;;;;-1:-1:-1::0;;;12733:85:5::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12849:1;12837:9;:13;12829:66;;;;-1:-1:-1::0;;;12829:66:5::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12927:15;12914:9;:28;;12906:74;;;;-1:-1:-1::0;;;12906:74:5::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12991:28;:40:::0;12643:396::o;2681:45::-;2722:4;2681:45;:::o;21651:285::-;21783:41;21802:12;:10;:12::i;:::-;21816:7;21783:18;:41::i;:::-;21775:103;;;;-1:-1:-1;;;21775:103:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21889:39;21903:4;21909:2;21913:7;21922:5;21889:13;:39::i;:::-;21651:285;;;;:::o;3281:51::-;;;;:::o;3165:::-;;;;:::o;18109:966::-;18187:13;18203:16;18211:7;18203;:16::i;:::-;18187:32;;18254:5;-1:-1:-1;;;;;18238:21:5;:12;:10;:12::i;:::-;-1:-1:-1;;;;;18238:21:5;;18230:65;;;;;-1:-1:-1;;;18230:65:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;18350:1;18314:32;18338:7;18314:23;:32::i;:::-;:37;;18306:106;;;;-1:-1:-1;;;18306:106:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18431:21;18444:7;18431:12;:21::i;:::-;:29;;18456:4;18431:29;18423:62;;;;;-1:-1:-1;;;18423:62:5;;;;;;;;;;;;-1:-1:-1;;;18423:62:5;;;;;;;;;;;;;;;18530:34;18543:10;:19;18554:7;18543:19;;;;;;;;;;;18530:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;18530:34:5;18504:22;;;;;;18517:7;;18504:22;;18530:34;18504:22;;;;;;;;;;;;;;;;-1:-1:-1;;18504:22:5;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;18504:22:5;;;;;;;;;;;;;;;;;;-1:-1:-1;18504:22:5;;-1:-1:-1;;18504:22:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;18504:22:5;:60;;18496:108;;;;-1:-1:-1;;;18496:108:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18623:23;18638:7;18623:14;:23::i;:::-;:32;18615:66;;;;;-1:-1:-1;;;18615:66:5;;;;;;;;;;;;-1:-1:-1;;;18615:66:5;;;;;;;;;;;;;;;18699:11;;18750:15;;18694:72;;;-1:-1:-1;;;18694:72:5;;18725:10;18694:72;;;;-1:-1:-1;;;;;18699:11:5;;;18694:72;;;;;;;;;;;;;;18699:11;;18694:30;;:72;;;;;;;;;;;;;;18699:11;;18694:72;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;18866:1:5;18836:19;;;:10;18694:72;18836:19;;;;18830:33;;-1:-1:-1;;18830:33:5;;;;;;;;;;;:37;18826:115;;18902:19;;;;:10;:19;;;;;;;;;18884:45;;;;;;-1:-1:-1;;18884:45:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18902:19;18884:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18923:5;18884:17;:45::i;:::-;18951:32;18969:7;18978:4;18951:17;:32::i;:::-;18994:19;;;;:10;:19;;;;;;;;:29;;;;;;;;:::i;:::-;;19050:7;19039:28;19059:7;19039:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18109:966;;;:::o;9745:280::-;9803:13;9837:16;9845:7;9837;:16::i;:::-;9829:67;;;;-1:-1:-1;;;9829:67:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9914:7;:19;9948:14;:12;:14::i;:::-;9977:7;:20;9998:7;9977:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;9977:29:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;9977:29:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;9977:29:5;;;;;;-1:-1:-1;9977:29:5;;;;;;;;;;-1:-1:-1;9977:29:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9914:103;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;9914:103:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;9914:103:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;9914:103:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;9914:103:5;;;;;;-1:-1:-1;9914:103:5;;;;;;;;;;-1:-1:-1;9914:103:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9907:110;;9745:280;;;:::o;2962:28::-;;;;:::o;10151:94::-;10229:8;10222:15;;;;;;;;-1:-1:-1;;10222:15:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10196:13;;10222:15;;10229:8;;10222:15;;10229:8;10222:15;;;;;;;;;;;;;;;;;;;;;;;;3107:51;;;;:::o;3455:::-;;;;:::o;2920:33::-;;;;:::o;10391:97::-;10468:12;10461:19;;;;;;;;-1:-1:-1;;10461:19:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10435:13;;10461:19;;10468:12;;10461:19;;10468:12;10461:19;;;;;;;;;;;;;;;;;;;;;;;;20830:156;-1:-1:-1;;;;;20943:25:5;;;20919:4;20943:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;20830:156::o;3339:51::-;;;;:::o;3063:31::-;;;;:::o;1491:244:12:-;768:12;:10;:12::i;:::-;758:6;;-1:-1:-1;;;;;758:6:12;;;:22;;;750:67;;;;;-1:-1:-1;;;750:67:12;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;750:67:12;;;;;;;;;;;;;;;-1:-1:-1;;;;;1580:22:12;::::1;1572:73;;;;-1:-1:-1::0;;;1572:73:12::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1682:6;::::0;;1661:38:::1;::::0;-1:-1:-1;;;;;1661:38:12;;::::1;::::0;1682:6;::::1;::::0;1661:38:::1;::::0;::::1;1710:6;:17:::0;;-1:-1:-1;;;;;;1710:17:12::1;-1:-1:-1::0;;;;;1710:17:12;;;::::1;::::0;;;::::1;::::0;;1491:244::o;2212:50:5:-;2252:10;2212:50;:::o;14739:1115::-;14783:7;2318:10;14811:15;:39;;14803:72;;;;;-1:-1:-1;;;14803:72:5;;;;;;;;;;;;-1:-1:-1;;;14803:72:5;;;;;;;;;;;;;;;2722:4;14894:13;:11;:13::i;:::-;:30;14886:65;;;;;-1:-1:-1;;;14886:65:5;;;;;;;;;;;;-1:-1:-1;;;14886:65:5;;;;;;;;;;;;;;;15047:12;;:16;15044:67;;-1:-1:-1;15087:12:5;;15080:19;;15044:67;15123:18;15144:13;:11;:13::i;:::-;15123:34;;15191:4;15174:13;:21;15170:677;;-1:-1:-1;;15219:15:5;;15212:22;;15170:677;15293:4;15276:13;:21;15272:575;;-1:-1:-1;;15321:15:5;;15314:22;;15272:575;15395:4;15378:13;:21;15374:473;;-1:-1:-1;;15423:15:5;;15416:22;;15374:473;15497:4;15480:13;:21;15476:371;;-1:-1:-1;;15525:15:5;;15518:22;;15476:371;15599:4;15582:13;:21;15578:269;;-1:-1:-1;;15627:15:5;;15620:22;;15578:269;15701:4;15684:13;:21;15680:167;;-1:-1:-1;;15729:15:5;;15722:22;;15680:167;-1:-1:-1;;15804:15:5;;15797:22;;15680:167;14739:1115;;:::o;13801:876::-;13879:7;13918:23;;;:16;:23;;;;;;13960:12;13952:65;;;;-1:-1:-1;;;13952:65:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14048:15;14036:8;:27;;14028:85;;;;-1:-1:-1;;;14028:85:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14124:15;14142:29;:15;14162:8;14142:19;:29::i;:::-;14124:47;;14303:1;14272:28;;:32;:83;;;;;14327:28;;14308:15;:47;;14272:83;14269:123;;;14379:1;14372:8;;;;;;14269:123;14428:1;;14440:204;14460:1;14456;:5;14440:204;;;14497:30;:1;2628:9;14497:5;:30::i;:::-;14486:7;:41;14483:150;;14548:10;;;;;14483:150;;;14612:5;;14483:150;14463:3;;14440:204;;;-1:-1:-1;14661:8:5;13801:876;-1:-1:-1;;;;13801:876:5:o;23403:119::-;23460:4;23484:30;:12;23506:7;23484:21;:30::i;543:106:1:-;631:10;543:106;:::o;28386:158:5:-;28452:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;28452:29:5;-1:-1:-1;;;;;28452:29:5;;;;;;;;:24;;28506:16;28452:24;28506:7;:16::i;:::-;-1:-1:-1;;;;;28497:39:5;;;;;;;;;;;28386:158;;:::o;7189:123:3:-;7258:7;7285:19;7293:3;7285:7;:19::i;23689:333:5:-;23774:4;23799:16;23807:7;23799;:16::i;:::-;23791:73;;;;-1:-1:-1;;;23791:73:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23875:13;23891:16;23899:7;23891;:16::i;:::-;23875:32;;23937:5;-1:-1:-1;;;;;23926:16:5;:7;-1:-1:-1;;;;;23926:16:5;;:51;;;;23970:7;-1:-1:-1;;;;;23946:31:5;:20;23958:7;23946:11;:20::i;:::-;-1:-1:-1;;;;;23946:31:5;;23926:51;:87;;;;23981:32;23998:5;24005:7;23981:16;:32::i;:::-;23918:96;23689:333;-1:-1:-1;;;;23689:333:5:o;26633:574::-;26751:4;-1:-1:-1;;;;;26731:24:5;:16;26739:7;26731;:16::i;:::-;-1:-1:-1;;;;;26731:24:5;;26723:78;;;;-1:-1:-1;;;26723:78:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;26820:16:5;;26812:65;;;;-1:-1:-1;;;26812:65:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26890:39;26911:4;26917:2;26921:7;26890:20;:39::i;:::-;26994:29;27011:1;27015:7;26994:8;:29::i;:::-;-1:-1:-1;;;;;27036:19:5;;;;;;:13;:19;;;;;:35;;27063:7;27036:26;:35::i;:::-;-1:-1:-1;;;;;;27082:17:5;;;;;;:13;:17;;;;;:30;;27104:7;27082:21;:30::i;:::-;-1:-1:-1;27125:29:5;:12;27142:7;27151:2;27125:16;:29::i;:::-;;27191:7;27187:2;-1:-1:-1;;;;;27172:27:5;27181:4;-1:-1:-1;;;;;27172:27:5;;;;;;;;;;;26633:574;;;:::o;7853:137:4:-;7924:7;7959:22;7963:3;7975:5;7959:3;:22::i;7651:227:3:-;7731:7;;;;7791:22;7795:3;7807:5;7791:3;:22::i;:::-;7760:53;;;;-1:-1:-1;7651:227:3;-1:-1:-1;;;;;7651:227:3:o;8313:204::-;8420:7;8463:44;8468:3;8488;8494:12;8463:4;:44::i;:::-;8455:53;-1:-1:-1;8313:204:3;;;;;;:::o;1331:136:13:-;1389:7;1416:43;1420:1;1423;1416:43;;;;;;;;;;;;;;;;;:3;:43::i;867:181::-;925:7;957:5;;;981:6;;;;973:46;;;;;-1:-1:-1;;;973:46:13;;;;;;;;;;;;;;;;;;;;;;;;;;;2221:471;2279:7;2524:6;2520:47;;-1:-1:-1;2554:1:13;2547:8;;2520:47;2591:5;;;2595:1;2591;:5;:1;2615:5;;;;;:10;2607:56;;;;-1:-1:-1;;;2607:56:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24365:110:5;24441:26;24451:2;24455:7;24441:26;;;;;;;;;;;;:9;:26::i;22818:272::-;22932:28;22942:4;22948:2;22952:7;22932:9;:28::i;:::-;22979:48;23002:4;23008:2;23012:7;23021:5;22979:22;:48::i;:::-;22971:111;;;;-1:-1:-1;;;22971:111:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29364:129;29476:9;29446:13;29460:12;29468:3;29460:7;:12::i;:::-;29446:27;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;29446:27:5;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;29446:27:5;;;;;;;;;;;;;;;;-1:-1:-1;29446:27:5;;;;;;;;;;:39;;-1:-1:-1;;29446:39:5;;;;;;;;;;;-1:-1:-1;;;;29364:129:5:o;6950:151:3:-;7034:4;7058:35;7068:3;7088;7058:9;:35::i;4572:110::-;4655:19;;4572:110::o;6940:137:4:-;7010:4;7034:35;7042:3;7062:5;7034:7;:35::i;6633:131::-;6700:4;6724:32;6729:3;6749:5;6724:4;:32::i;6382:176:3:-;6471:4;6495:55;6500:3;6520;-1:-1:-1;;;;;6534:14:3;;6495:4;:55::i;4517:204:4:-;4612:18;;4584:7;;4612:26;-1:-1:-1;4604:73:4;;;;-1:-1:-1;;;4604:73:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4695:3;:11;;4707:5;4695:18;;;;;;;;;;;;;;;;4688:25;;4517:204;;;;:::o;5037:279:3:-;5141:19;;5104:7;;;;5141:27;-1:-1:-1;5133:74:3;;;;-1:-1:-1;;;5133:74:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5220:22;5245:3;:12;;5258:5;5245:19;;;;;;;;;;;;;;;;;;5220:44;;5283:5;:10;;;5295:5;:12;;;5275:33;;;;;5037:279;;;;;:::o;5739:319::-;5833:7;5872:17;;;:12;;;:17;;;;;;5923:12;5908:13;5900:36;;;;-1:-1:-1;;;5900:36:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5990:3;:12;;6014:1;6003:8;:12;5990:26;;;;;;;;;;;;;;;;;;:33;;;5983:40;;;5739:319;;;;;:::o;1770:192:13:-;1856:7;1892:12;1884:6;;;;1876:29;;;;-1:-1:-1;;;1876:29:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;1928:5:13;;;1770:192::o;24702:250:5:-;24798:18;24804:2;24808:7;24798:5;:18::i;:::-;24835:54;24866:1;24870:2;24874:7;24883:5;24835:22;:54::i;:::-;24827:117;;;;-1:-1:-1;;;24827:117:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27774:604;27895:4;27922:15;:2;-1:-1:-1;;;;;27922:13:5;;:15::i;:::-;27917:60;;-1:-1:-1;27961:4:5;27954:11;;27917:60;27987:23;28013:252;-1:-1:-1;;;28126:12:5;:10;:12::i;:::-;28153:4;28172:7;28194:5;28029:181;;;;;;-1:-1:-1;;;;;28029:181:5;;;;;;-1:-1:-1;;;;;28029:181:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;28029:181:5;;;;;;;-1:-1:-1;;;;;28029:181:5;;;;;;;;;;;28013:252;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;28013:15:5;;;:252;:15;:252::i;:::-;27987:278;;28276:13;28303:10;28292:32;;;;;;;;;;;;;;;-1:-1:-1;28292:32:5;-1:-1:-1;;;;;;28343:26:5;-1:-1:-1;;;28343:26:5;;-1:-1:-1;;;27774:604:5;;;;;;:::o;4352:125:3:-;4423:4;4447:17;;;:12;;;;;:17;;;;;;:22;;;4352:125::o;2219:1544:4:-;2285:4;2424:19;;;:12;;;:19;;;;;;2460:15;;2456:1300;;2895:18;;-1:-1:-1;;2846:14:4;;;;2895:22;;;;2822:21;;2895:3;;:22;;3182;;;;;;;;;;;;;;3162:42;;3328:9;3299:3;:11;;3311:13;3299:26;;;;;;;;;;;;;;;;;;;:38;;;;3405:23;;;3447:1;3405:12;;;:23;;;;;;3431:17;;;3405:43;;3557:17;;3405:3;;3557:17;;;;;;;;;;;;;;;;;;;;;;3652:3;:12;;:19;3665:5;3652:19;;;;;;;;;;;3645:26;;;3695:4;3688:11;;;;;;;;2456:1300;3739:5;3732:12;;;;;1629:414;1692:4;1714:21;1724:3;1729:5;1714:9;:21::i;:::-;1709:327;;-1:-1:-1;1752:23:4;;;;;;;;:11;:23;;;;;;;;;;;;;1935:18;;1913:19;;;:12;;;:19;;;;;;:40;;;;1968:11;;1709:327;-1:-1:-1;2019:5:4;2012:12;;1852:692:3;1928:4;2063:17;;;:12;;;:17;;;;;;2097:13;2093:444;;-1:-1:-1;;2182:38:3;;;;;;;;;;;;;;;;;;2164:57;;;;;;;;:12;:57;;;;;;;;;;;;;;;;;;;;;;;;2379:19;;2359:17;;;:12;;;:17;;;;;;;:39;2413:11;;2093:444;2493:5;2457:3;:12;;2481:1;2470:8;:12;2457:26;;;;;;;;;;;;;;;;;;:33;;:41;;;;2520:5;2513:12;;;;;25288:404:5;-1:-1:-1;;;;;25368:16:5;;25360:61;;;;;-1:-1:-1;;;25360:61:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25441:16;25449:7;25441;:16::i;:::-;25440:17;25432:58;;;;;-1:-1:-1;;;25432:58:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;25503:45;25532:1;25536:2;25540:7;25503:20;:45::i;:::-;-1:-1:-1;;;;;25561:17:5;;;;;;:13;:17;;;;;:30;;25583:7;25561:21;:30::i;:::-;-1:-1:-1;25604:29:5;:12;25621:7;25630:2;25604:16;:29::i;:::-;-1:-1:-1;25651:33:5;;25676:7;;-1:-1:-1;;;;;25651:33:5;;;25668:1;;25651:33;;25668:1;;25651:33;25288:404;;:::o;708:422:0:-;1075:20;1114:8;;;708:422::o;3626:195::-;3729:12;3761:52;3783:6;3791:4;3797:1;3800:12;3729;4930:18;4941:6;4930:10;:18::i;:::-;4922:60;;;;;-1:-1:-1;;;4922:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;5056:12;5070:23;5097:6;-1:-1:-1;;;;;5097:11:0;5117:5;5125:4;5097:33;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;5097:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5055:75;;;;5148:52;5166:7;5175:10;5187:12;5148:17;:52::i;:::-;5141:59;4678:530;-1:-1:-1;;;;;;;4678:530:0:o;7218:742::-;7333:12;7362:7;7358:595;;;-1:-1:-1;7393:10:0;7386:17;;7358:595;7507:17;;:21;7503:439;;7770:10;7764:17;7831:15;7818:10;7814:2;7810:19;7803:44;7718:148;7906:20;;-1:-1:-1;;;7906:20:0;;;;;;;;;;;;;;;;;7913:12;;7906:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Swarm Source

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

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