ETH Price: $3,117.28 (+0.27%)
Gas: 3 Gwei

Token

Nifty Football Trading Card (NFTFC)
 

Overview

Max Total Supply

2,742 NFTFC

Holders

226

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 NFTFC
0xe5501bc2b0df6d0d7daafc18d2ef127d9e612963
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

NFT Football Trading Cards on the Blockchain.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
NiftyFootballTradingCard

Compiler Version
v0.5.0+commit.1d4f565a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2019-05-04
*/

// File: openzeppelin-solidity/contracts/introspection/IERC165.sol

pragma solidity ^0.5.0;

/**
 * @title IERC165
 * @dev https://github.com/ethereum/EIPs/blob/master/EIPS/eip-165.md
 */
interface IERC165 {
    /**
     * @notice Query if a contract implements an interface
     * @param interfaceId The interface identifier, as specified in ERC-165
     * @dev Interface identification is specified in ERC-165. This function
     * uses less than 30,000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

// File: openzeppelin-solidity/contracts/token/ERC721/IERC721.sol

pragma solidity ^0.5.0;


/**
 * @title ERC721 Non-Fungible Token Standard basic interface
 * @dev see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
 */
contract IERC721 is IERC165 {
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    function balanceOf(address owner) public view returns (uint256 balance);
    function ownerOf(uint256 tokenId) public view returns (address owner);

    function approve(address to, uint256 tokenId) public;
    function getApproved(uint256 tokenId) public view returns (address operator);

    function setApprovalForAll(address operator, bool _approved) public;
    function isApprovedForAll(address owner, address operator) public view returns (bool);

    function transferFrom(address from, address to, uint256 tokenId) public;
    function safeTransferFrom(address from, address to, uint256 tokenId) public;

    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public;
}

// File: openzeppelin-solidity/contracts/token/ERC721/IERC721Receiver.sol

pragma solidity ^0.5.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
contract IERC721Receiver {
    /**
     * @notice Handle the receipt of an NFT
     * @dev The ERC721 smart contract calls this function on the recipient
     * after a `safeTransfer`. This function MUST return the function selector,
     * otherwise the caller will revert the transaction. The selector to be
     * returned can be obtained as `this.onERC721Received.selector`. This
     * function MAY throw to revert and reject the transfer.
     * Note: the ERC721 contract address is always the message sender.
     * @param operator The address which called `safeTransferFrom` function
     * @param from The address which previously owned the token
     * @param tokenId The NFT identifier which is being transferred
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`
     */
    function onERC721Received(address operator, address from, uint256 tokenId, bytes memory data)
    public returns (bytes4);
}

// File: openzeppelin-solidity/contracts/math/SafeMath.sol

pragma solidity ^0.5.0;

/**
 * @title SafeMath
 * @dev Unsigned math operations with safety checks that revert on error
 */
library SafeMath {
    /**
    * @dev Multiplies two unsigned integers, reverts on overflow.
    */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b);

        return c;
    }

    /**
    * @dev Integer division of two unsigned integers truncating the quotient, reverts on division by zero.
    */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        // Solidity only automatically asserts when dividing by 0
        require(b > 0);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
    * @dev Subtracts two unsigned integers, reverts on overflow (i.e. if subtrahend is greater than minuend).
    */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b <= a);
        uint256 c = a - b;

        return c;
    }

    /**
    * @dev Adds two unsigned integers, reverts on overflow.
    */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a);

        return c;
    }

    /**
    * @dev Divides two unsigned integers and returns the remainder (unsigned integer modulo),
    * reverts when dividing by zero.
    */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b != 0);
        return a % b;
    }
}

// File: openzeppelin-solidity/contracts/utils/Address.sol

pragma solidity ^0.5.0;

/**
 * Utility library of inline functions on addresses
 */
library Address {
    /**
     * Returns whether the target address is a contract
     * @dev This function will return false if invoked during the constructor of a contract,
     * as the code is not actually created until after the constructor finishes.
     * @param account address of the account to check
     * @return whether the target address is a contract
     */
    function isContract(address account) internal view returns (bool) {
        uint256 size;
        // XXX Currently there is no better way to check if there is a contract in an address
        // than to check the size of the code at that address.
        // See https://ethereum.stackexchange.com/a/14016/36603
        // for more details about how this works.
        // TODO Check this again before the Serenity release, because all addresses will be
        // contracts then.
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }
}

// File: openzeppelin-solidity/contracts/introspection/ERC165.sol

pragma solidity ^0.5.0;


/**
 * @title ERC165
 * @author Matt Condon (@shrugs)
 * @dev Implements ERC165 using a lookup table.
 */
contract ERC165 is IERC165 {
    bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7;
    /**
     * 0x01ffc9a7 ===
     *     bytes4(keccak256('supportsInterface(bytes4)'))
     */

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

    /**
     * @dev A contract implementing SupportsInterfaceWithLookup
     * implement ERC165 itself
     */
    constructor () internal {
        _registerInterface(_INTERFACE_ID_ERC165);
    }

    /**
     * @dev implement supportsInterface(bytes4) using a lookup table
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool) {
        return _supportedInterfaces[interfaceId];
    }

    /**
     * @dev internal method for registering an interface
     */
    function _registerInterface(bytes4 interfaceId) internal {
        require(interfaceId != 0xffffffff);
        _supportedInterfaces[interfaceId] = true;
    }
}

// File: openzeppelin-solidity/contracts/token/ERC721/ERC721.sol

pragma solidity ^0.5.0;






/**
 * @title ERC721 Non-Fungible Token Standard basic implementation
 * @dev see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
 */
contract ERC721 is ERC165, IERC721 {
    using SafeMath for uint256;
    using Address for address;

    // 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 token ID to owner
    mapping (uint256 => address) private _tokenOwner;

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

    // Mapping from owner to number of owned token
    mapping (address => uint256) private _ownedTokensCount;

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

    bytes4 private constant _INTERFACE_ID_ERC721 = 0x80ac58cd;
    /*
     * 0x80ac58cd ===
     *     bytes4(keccak256('balanceOf(address)')) ^
     *     bytes4(keccak256('ownerOf(uint256)')) ^
     *     bytes4(keccak256('approve(address,uint256)')) ^
     *     bytes4(keccak256('getApproved(uint256)')) ^
     *     bytes4(keccak256('setApprovalForAll(address,bool)')) ^
     *     bytes4(keccak256('isApprovedForAll(address,address)')) ^
     *     bytes4(keccak256('transferFrom(address,address,uint256)')) ^
     *     bytes4(keccak256('safeTransferFrom(address,address,uint256)')) ^
     *     bytes4(keccak256('safeTransferFrom(address,address,uint256,bytes)'))
     */

    constructor () public {
        // register the supported interfaces to conform to ERC721 via ERC165
        _registerInterface(_INTERFACE_ID_ERC721);
    }

    /**
     * @dev Gets the balance of the specified address
     * @param owner address to query the balance of
     * @return uint256 representing the amount owned by the passed address
     */
    function balanceOf(address owner) public view returns (uint256) {
        require(owner != address(0));
        return _ownedTokensCount[owner];
    }

    /**
     * @dev Gets the owner of the specified token ID
     * @param tokenId uint256 ID of the token to query the owner of
     * @return owner address currently marked as the owner of the given token ID
     */
    function ownerOf(uint256 tokenId) public view returns (address) {
        address owner = _tokenOwner[tokenId];
        require(owner != address(0));
        return owner;
    }

    /**
     * @dev Approves another address to transfer the given token ID
     * The zero address indicates there is no approved address.
     * There can only be one approved address per token at a given time.
     * Can only be called by the token owner or an approved operator.
     * @param to address to be approved for the given token ID
     * @param tokenId uint256 ID of the token to be approved
     */
    function approve(address to, uint256 tokenId) public {
        address owner = ownerOf(tokenId);
        require(to != owner);
        require(msg.sender == owner || isApprovedForAll(owner, msg.sender));

        _tokenApprovals[tokenId] = to;
        emit Approval(owner, to, tokenId);
    }

    /**
     * @dev Gets the approved address for a token ID, or zero if no address set
     * Reverts if the token ID does not exist.
     * @param tokenId uint256 ID of the token to query the approval of
     * @return address currently approved for the given token ID
     */
    function getApproved(uint256 tokenId) public view returns (address) {
        require(_exists(tokenId));
        return _tokenApprovals[tokenId];
    }

    /**
     * @dev Sets or unsets the approval of a given operator
     * An operator is allowed to transfer all tokens of the sender on their behalf
     * @param to operator address to set the approval
     * @param approved representing the status of the approval to be set
     */
    function setApprovalForAll(address to, bool approved) public {
        require(to != msg.sender);
        _operatorApprovals[msg.sender][to] = approved;
        emit ApprovalForAll(msg.sender, to, approved);
    }

    /**
     * @dev Tells whether an operator is approved by a given owner
     * @param owner owner address which you want to query the approval of
     * @param operator operator address which you want to query the approval of
     * @return bool whether the given operator is approved by the given owner
     */
    function isApprovedForAll(address owner, address operator) public view returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev Transfers the ownership of a given token ID to another address
     * Usage of this method is discouraged, use `safeTransferFrom` whenever possible
     * Requires the msg sender to be the owner, approved, or operator
     * @param from current owner of the token
     * @param to address to receive the ownership of the given token ID
     * @param tokenId uint256 ID of the token to be transferred
    */
    function transferFrom(address from, address to, uint256 tokenId) public {
        require(_isApprovedOrOwner(msg.sender, tokenId));

        _transferFrom(from, to, tokenId);
    }

    /**
     * @dev Safely transfers the ownership of a given token ID to another address
     * If the target address is a contract, it must implement `onERC721Received`,
     * which is called upon a safe transfer, and return the magic value
     * `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise,
     * the transfer is reverted.
     *
     * Requires the msg sender to be the owner, approved, or operator
     * @param from current owner of the token
     * @param to address to receive the ownership of the given token ID
     * @param tokenId uint256 ID of the token to be transferred
    */
    function safeTransferFrom(address from, address to, uint256 tokenId) public {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev Safely transfers the ownership of a given token ID to another address
     * If the target address is a contract, it must implement `onERC721Received`,
     * which is called upon a safe transfer, and return the magic value
     * `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise,
     * the transfer is reverted.
     * Requires the msg sender to be the owner, approved, or operator
     * @param from current owner of the token
     * @param to address to receive the ownership of the given token ID
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes data to send along with a safe transfer check
     */
    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public {
        transferFrom(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data));
    }

    /**
     * @dev Returns whether the specified token exists
     * @param tokenId uint256 ID of the token to query the existence of
     * @return whether the token exists
     */
    function _exists(uint256 tokenId) internal view returns (bool) {
        address owner = _tokenOwner[tokenId];
        return owner != address(0);
    }

    /**
     * @dev Returns whether the given spender can transfer a given token ID
     * @param spender address of the spender to query
     * @param tokenId uint256 ID of the token to be transferred
     * @return bool whether the msg.sender is approved for the given token ID,
     *    is an operator of the owner, or is the owner of the token
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view returns (bool) {
        address owner = ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Internal function to mint a new token
     * Reverts if the given token ID already exists
     * @param to The address that will own the minted token
     * @param tokenId uint256 ID of the token to be minted
     */
    function _mint(address to, uint256 tokenId) internal {
        require(to != address(0));
        require(!_exists(tokenId));

        _tokenOwner[tokenId] = to;
        _ownedTokensCount[to] = _ownedTokensCount[to].add(1);

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

    /**
     * @dev Internal function to burn a specific token
     * Reverts if the token does not exist
     * Deprecated, use _burn(uint256) instead.
     * @param owner owner of the token to burn
     * @param tokenId uint256 ID of the token being burned
     */
    function _burn(address owner, uint256 tokenId) internal {
        require(ownerOf(tokenId) == owner);

        _clearApproval(tokenId);

        _ownedTokensCount[owner] = _ownedTokensCount[owner].sub(1);
        _tokenOwner[tokenId] = address(0);

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

    /**
     * @dev Internal function to burn a specific token
     * Reverts if the token does not exist
     * @param tokenId uint256 ID of the token being burned
     */
    function _burn(uint256 tokenId) internal {
        _burn(ownerOf(tokenId), tokenId);
    }

    /**
     * @dev Internal function to transfer ownership of a given token ID to another address.
     * As opposed to transferFrom, this imposes no restrictions on msg.sender.
     * @param from current owner of the token
     * @param to address to receive the ownership of the given token ID
     * @param tokenId uint256 ID of the token to be transferred
    */
    function _transferFrom(address from, address to, uint256 tokenId) internal {
        require(ownerOf(tokenId) == from);
        require(to != address(0));

        _clearApproval(tokenId);

        _ownedTokensCount[from] = _ownedTokensCount[from].sub(1);
        _ownedTokensCount[to] = _ownedTokensCount[to].add(1);

        _tokenOwner[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev Internal function to invoke `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 whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory _data)
        internal returns (bool)
    {
        if (!to.isContract()) {
            return true;
        }

        bytes4 retval = IERC721Receiver(to).onERC721Received(msg.sender, from, tokenId, _data);
        return (retval == _ERC721_RECEIVED);
    }

    /**
     * @dev Private function to clear current approval of a given token ID
     * @param tokenId uint256 ID of the token to be transferred
     */
    function _clearApproval(uint256 tokenId) private {
        if (_tokenApprovals[tokenId] != address(0)) {
            _tokenApprovals[tokenId] = address(0);
        }
    }
}

// File: openzeppelin-solidity/contracts/token/ERC721/IERC721Enumerable.sol

pragma solidity ^0.5.0;


/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
 */
contract IERC721Enumerable is IERC721 {
    function totalSupply() public view returns (uint256);
    function tokenOfOwnerByIndex(address owner, uint256 index) public view returns (uint256 tokenId);

    function tokenByIndex(uint256 index) public view returns (uint256);
}

// File: openzeppelin-solidity/contracts/token/ERC721/ERC721Enumerable.sol

pragma solidity ^0.5.0;




/**
 * @title ERC-721 Non-Fungible Token with optional enumeration extension logic
 * @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
 */
contract ERC721Enumerable is ERC165, ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => uint256[]) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

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

    /**
     * @dev Constructor function
     */
    constructor () public {
        // register the supported interface to conform to ERC721 via ERC165
        _registerInterface(_INTERFACE_ID_ERC721_ENUMERABLE);
    }

    /**
     * @dev Gets the token ID at a given index of the tokens list of the requested owner
     * @param owner address owning the tokens list to be accessed
     * @param index uint256 representing the index to be accessed of the requested tokens list
     * @return uint256 token ID at the given index of the tokens list owned by the requested address
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view returns (uint256) {
        require(index < balanceOf(owner));
        return _ownedTokens[owner][index];
    }

    /**
     * @dev Gets the total amount of tokens stored by the contract
     * @return uint256 representing the total amount of tokens
     */
    function totalSupply() public view returns (uint256) {
        return _allTokens.length;
    }

    /**
     * @dev Gets the token ID at a given index of all the tokens in this contract
     * Reverts if the index is greater or equal to the total number of tokens
     * @param index uint256 representing the index to be accessed of the tokens list
     * @return uint256 token ID at the given index of the tokens list
     */
    function tokenByIndex(uint256 index) public view returns (uint256) {
        require(index < totalSupply());
        return _allTokens[index];
    }

    /**
     * @dev Internal function to transfer ownership of a given token ID to another address.
     * As opposed to transferFrom, this imposes no restrictions on msg.sender.
     * @param from current owner of the token
     * @param to address to receive the ownership of the given token ID
     * @param tokenId uint256 ID of the token to be transferred
    */
    function _transferFrom(address from, address to, uint256 tokenId) internal {
        super._transferFrom(from, to, tokenId);

        _removeTokenFromOwnerEnumeration(from, tokenId);

        _addTokenToOwnerEnumeration(to, tokenId);
    }

    /**
     * @dev Internal function to mint a new token
     * Reverts if the given token ID already exists
     * @param to address the beneficiary that will own the minted token
     * @param tokenId uint256 ID of the token to be minted
     */
    function _mint(address to, uint256 tokenId) internal {
        super._mint(to, tokenId);

        _addTokenToOwnerEnumeration(to, tokenId);

        _addTokenToAllTokensEnumeration(tokenId);
    }

    /**
     * @dev Internal function to burn a specific token
     * Reverts if the token does not exist
     * Deprecated, use _burn(uint256) instead
     * @param owner owner of the token to burn
     * @param tokenId uint256 ID of the token being burned
     */
    function _burn(address owner, uint256 tokenId) internal {
        super._burn(owner, tokenId);

        _removeTokenFromOwnerEnumeration(owner, tokenId);
        // Since tokenId will be deleted, we can clear its slot in _ownedTokensIndex to trigger a gas refund
        _ownedTokensIndex[tokenId] = 0;

        _removeTokenFromAllTokensEnumeration(tokenId);
    }

    /**
     * @dev Gets the list of token IDs of the requested owner
     * @param owner address owning the tokens
     * @return uint256[] List of token IDs owned by the requested address
     */
    function _tokensOfOwner(address owner) internal view returns (uint256[] storage) {
        return _ownedTokens[owner];
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        _ownedTokensIndex[tokenId] = _ownedTokens[to].length;
        _ownedTokens[to].push(tokenId);
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the _ownedTokensIndex mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _ownedTokens[from].length.sub(1);
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        _ownedTokens[from].length--;

        // Note that _ownedTokensIndex[tokenId] hasn't been cleared: it still points to the old slot (now occcupied by
        // lasTokenId, or just over the end of the array if the token was the last one).
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length.sub(1);
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        _allTokens.length--;
        _allTokensIndex[tokenId] = 0;
    }
}

// File: openzeppelin-solidity/contracts/token/ERC721/IERC721Metadata.sol

pragma solidity ^0.5.0;


/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
 */
contract IERC721Metadata is IERC721 {
    function name() external view returns (string memory);
    function symbol() external view returns (string memory);
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

// File: openzeppelin-solidity/contracts/token/ERC721/ERC721Metadata.sol

pragma solidity ^0.5.0;




contract ERC721Metadata is ERC165, ERC721, IERC721Metadata {
    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Optional mapping for token URIs
    mapping(uint256 => string) private _tokenURIs;

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

    /**
     * @dev Constructor function
     */
    constructor (string memory name, string memory symbol) public {
        _name = name;
        _symbol = symbol;

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

    /**
     * @dev Gets the token name
     * @return string representing the token name
     */
    function name() external view returns (string memory) {
        return _name;
    }

    /**
     * @dev Gets the token symbol
     * @return string representing the token symbol
     */
    function symbol() external view returns (string memory) {
        return _symbol;
    }

    /**
     * @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));
        return _tokenURIs[tokenId];
    }

    /**
     * @dev Internal function to set the token URI for a given token
     * Reverts if the token ID does not exist
     * @param tokenId uint256 ID of the token to set its URI
     * @param uri string URI to assign
     */
    function _setTokenURI(uint256 tokenId, string memory uri) internal {
        require(_exists(tokenId));
        _tokenURIs[tokenId] = uri;
    }

    /**
     * @dev Internal function to burn a specific token
     * Reverts if the token does not exist
     * Deprecated, use _burn(uint256) instead
     * @param owner owner of the token to burn
     * @param tokenId uint256 ID of the token being burned by the msg.sender
     */
    function _burn(address owner, uint256 tokenId) internal {
        super._burn(owner, tokenId);

        // Clear metadata (if any)
        if (bytes(_tokenURIs[tokenId]).length != 0) {
            delete _tokenURIs[tokenId];
        }
    }
}

// File: openzeppelin-solidity/contracts/token/ERC721/ERC721Full.sol

pragma solidity ^0.5.0;




/**
 * @title Full ERC721 Token
 * This implementation includes all the required and some optional functionality of the ERC721 standard
 * Moreover, it includes approve all functionality using operator terminology
 * @dev see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
 */
contract ERC721Full is ERC721, ERC721Enumerable, ERC721Metadata {
    constructor (string memory name, string memory symbol) public ERC721Metadata(name, symbol) {
        // solhint-disable-previous-line no-empty-blocks
    }
}

// File: openzeppelin-solidity/contracts/ownership/Ownable.sol

pragma solidity ^0.5.0;

/**
 * @title Ownable
 * @dev The Ownable contract has an owner address, and provides basic authorization control
 * functions, this simplifies the implementation of "user permissions".
 */
contract Ownable {
    address private _owner;

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

    /**
     * @dev The Ownable constructor sets the original `owner` of the contract to the sender
     * account.
     */
    constructor () internal {
        _owner = msg.sender;
        emit OwnershipTransferred(address(0), _owner);
    }

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(isOwner());
        _;
    }

    /**
     * @return true if `msg.sender` is the owner of the contract.
     */
    function isOwner() public view returns (bool) {
        return msg.sender == _owner;
    }

    /**
     * @dev Allows the current owner to relinquish control of the contract.
     * @notice Renouncing to ownership will leave the contract without an owner.
     * It will not be possible to call the functions with the `onlyOwner`
     * modifier anymore.
     */
    function renounceOwnership() public onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    /**
     * @dev Allows the current owner to transfer control of the contract to a newOwner.
     * @param newOwner The address to transfer ownership to.
     */
    function transferOwnership(address newOwner) public onlyOwner {
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers control of the contract to a newOwner.
     * @param newOwner The address to transfer ownership to.
     */
    function _transferOwnership(address newOwner) internal {
        require(newOwner != address(0));
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

// File: openzeppelin-solidity/contracts/access/Roles.sol

pragma solidity ^0.5.0;

/**
 * @title Roles
 * @dev Library for managing addresses assigned to a Role.
 */
library Roles {
    struct Role {
        mapping (address => bool) bearer;
    }

    /**
     * @dev give an account access to this role
     */
    function add(Role storage role, address account) internal {
        require(account != address(0));
        require(!has(role, account));

        role.bearer[account] = true;
    }

    /**
     * @dev remove an account's access to this role
     */
    function remove(Role storage role, address account) internal {
        require(account != address(0));
        require(has(role, account));

        role.bearer[account] = false;
    }

    /**
     * @dev check if an account has this role
     * @return bool
     */
    function has(Role storage role, address account) internal view returns (bool) {
        require(account != address(0));
        return role.bearer[account];
    }
}

// File: openzeppelin-solidity/contracts/access/roles/WhitelistAdminRole.sol

pragma solidity ^0.5.0;


/**
 * @title WhitelistAdminRole
 * @dev WhitelistAdmins are responsible for assigning and removing Whitelisted accounts.
 */
contract WhitelistAdminRole {
    using Roles for Roles.Role;

    event WhitelistAdminAdded(address indexed account);
    event WhitelistAdminRemoved(address indexed account);

    Roles.Role private _whitelistAdmins;

    constructor () internal {
        _addWhitelistAdmin(msg.sender);
    }

    modifier onlyWhitelistAdmin() {
        require(isWhitelistAdmin(msg.sender));
        _;
    }

    function isWhitelistAdmin(address account) public view returns (bool) {
        return _whitelistAdmins.has(account);
    }

    function addWhitelistAdmin(address account) public onlyWhitelistAdmin {
        _addWhitelistAdmin(account);
    }

    function renounceWhitelistAdmin() public {
        _removeWhitelistAdmin(msg.sender);
    }

    function _addWhitelistAdmin(address account) internal {
        _whitelistAdmins.add(account);
        emit WhitelistAdminAdded(account);
    }

    function _removeWhitelistAdmin(address account) internal {
        _whitelistAdmins.remove(account);
        emit WhitelistAdminRemoved(account);
    }
}

// File: openzeppelin-solidity/contracts/access/roles/WhitelistedRole.sol

pragma solidity ^0.5.0;



/**
 * @title WhitelistedRole
 * @dev Whitelisted accounts have been approved by a WhitelistAdmin to perform certain actions (e.g. participate in a
 * crowdsale). This role is special in that the only accounts that can add it are WhitelistAdmins (who can also remove
 * it), and not Whitelisteds themselves.
 */
contract WhitelistedRole is WhitelistAdminRole {
    using Roles for Roles.Role;

    event WhitelistedAdded(address indexed account);
    event WhitelistedRemoved(address indexed account);

    Roles.Role private _whitelisteds;

    modifier onlyWhitelisted() {
        require(isWhitelisted(msg.sender));
        _;
    }

    function isWhitelisted(address account) public view returns (bool) {
        return _whitelisteds.has(account);
    }

    function addWhitelisted(address account) public onlyWhitelistAdmin {
        _addWhitelisted(account);
    }

    function removeWhitelisted(address account) public onlyWhitelistAdmin {
        _removeWhitelisted(account);
    }

    function renounceWhitelisted() public {
        _removeWhitelisted(msg.sender);
    }

    function _addWhitelisted(address account) internal {
        _whitelisteds.add(account);
        emit WhitelistedAdded(account);
    }

    function _removeWhitelisted(address account) internal {
        _whitelisteds.remove(account);
        emit WhitelistedRemoved(account);
    }
}

// File: contracts/libs/Strings.sol

pragma solidity 0.5.0;

library Strings {

    // via https://github.com/oraclize/ethereum-api/blob/master/oraclizeAPI_0.5.sol
    function strConcat(string memory _a, string memory _b, string memory _c, string memory _d, string memory _e) internal pure returns (string memory _concatenatedString) {
        bytes memory _ba = bytes(_a);
        bytes memory _bb = bytes(_b);
        bytes memory _bc = bytes(_c);
        bytes memory _bd = bytes(_d);
        bytes memory _be = bytes(_e);
        string memory abcde = new string(_ba.length + _bb.length + _bc.length + _bd.length + _be.length);
        bytes memory babcde = bytes(abcde);
        uint k = 0;
        uint i = 0;
        for (i = 0; i < _ba.length; i++) {
            babcde[k++] = _ba[i];
        }
        for (i = 0; i < _bb.length; i++) {
            babcde[k++] = _bb[i];
        }
        for (i = 0; i < _bc.length; i++) {
            babcde[k++] = _bc[i];
        }
        for (i = 0; i < _bd.length; i++) {
            babcde[k++] = _bd[i];
        }
        for (i = 0; i < _be.length; i++) {
            babcde[k++] = _be[i];
        }
        return string(babcde);
    }

    function strConcat(string memory _a, string memory _b) internal pure returns (string memory) {
        return strConcat(_a, _b, "", "", "");
    }

    function strConcat(string memory _a, string memory _b, string memory _c) internal pure returns (string memory) {
        return strConcat(_a, _b, _c, "", "");
    }

    function uint2str(uint _i) internal pure returns (string memory _uintAsString) {
        if (_i == 0) {
            return "0";
        }
        uint j = _i;
        uint len;
        while (j != 0) {
            len++;
            j /= 10;
        }
        bytes memory bstr = new bytes(len);
        uint k = len - 1;
        while (_i != 0) {
            bstr[k--] = byte(uint8(48 + _i % 10));
            _i /= 10;
        }
        return string(bstr);
    }
}

// File: contracts/erc721/ERC721MetadataWithoutTokenUri.sol

pragma solidity 0.5.0;




contract ERC721MetadataWithoutTokenUri is ERC165, ERC721, IERC721Metadata {
    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

    /**
     * @dev Constructor function
     */
    constructor (string memory name, string memory symbol) public {
        _name = name;
        _symbol = symbol;

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

    /**
     * @dev Gets the token name
     * @return string representing the token name
     */
    function name() external view returns (string memory) {
        return _name;
    }

    /**
     * @dev Gets the token symbol
     * @return string representing the token symbol
     */
    function symbol() external view returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Internal function to burn a specific token
     * Reverts if the token does not exist
     * Deprecated, use _burn(uint256) instead
     * @param owner owner of the token to burn
     * @param tokenId uint256 ID of the token being burned by the msg.sender
     */
    function _burn(address owner, uint256 tokenId) internal {
        super._burn(owner, tokenId);
    }
}

// File: contracts/erc721/CustomERC721Full.sol

pragma solidity 0.5.0;




/**
 * @title Full ERC721 Token without token URI as this is handled in the base contract
 *
 * This implementation includes all the required and some optional functionality of the ERC721 standard
 * Moreover, it includes approve all functionality using operator terminology
 * @dev see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
 */
contract CustomERC721Full is ERC721, ERC721Enumerable, ERC721MetadataWithoutTokenUri {
    constructor (string memory name, string memory symbol) public ERC721MetadataWithoutTokenUri(name, symbol) {
        // solhint-disable-previous-line no-empty-blocks
    }
}

// File: contracts/INiftyTradingCardCreator.sol

pragma solidity 0.5.0;

interface INiftyTradingCardCreator {
    function mintCard(
        uint256 _cardType,
        uint256 _nationality,
        uint256 _position,
        uint256 _ethnicity,
        uint256 _kit,
        uint256 _colour,
        address _to
    ) external returns (uint256 _tokenId);

    function setAttributes(
        uint256 _tokenId,
        uint256 _strength,
        uint256 _speed,
        uint256 _intelligence,
        uint256 _skill
    ) external returns (bool);

    function setName(
        uint256 _tokenId,
        uint256 _firstName,
        uint256 _lastName
    ) external returns (bool);

    function setAttributesAndName(
        uint256 _tokenId,
        uint256 _strength,
        uint256 _speed,
        uint256 _intelligence,
        uint256 _skill,
        uint256 _firstName,
        uint256 _lastName
    ) external returns (bool);
}

// File: contracts/INiftyTradingCardAttributes.sol

pragma solidity 0.5.0;


contract INiftyTradingCardAttributes is IERC721 {

    function attributesFlat(uint256 _tokenId) public view returns (
        uint256[5] memory attributes
    );

    function attributesAndName(uint256 _tokenId) public view returns (
        uint256 _strength,
        uint256 _speed,
        uint256 _intelligence,
        uint256 _skill,
        uint256 _special,
        uint256 _firstName,
        uint256 _lastName
    );

    function extras(uint256 _tokenId) public view returns (
        uint256 _badge,
        uint256 _sponsor,
        uint256 _number,
        uint256 _boots,
        uint256 _stars,
        uint256 _xp
    );

    function card(uint256 _tokenId) public view returns (
        uint256 _cardType,
        uint256 _nationality,
        uint256 _position,
        uint256 _ethnicity,
        uint256 _kit,
        uint256 _colour
    );

}

// File: contracts/NiftyTradingCard.sol

pragma solidity 0.5.0;








contract NiftyTradingCard is CustomERC721Full, WhitelistedRole, INiftyTradingCardCreator, INiftyTradingCardAttributes {
    using SafeMath for uint256;

    string public tokenBaseURI = "";
    string public tokenBaseIpfsURI = "https://ipfs.infura.io/ipfs/";

    event TokenBaseURIChanged(
        string _new
    );

    event TokenBaseIPFSURIChanged(
        string _new
    );

    event StaticIpfsTokenURISet(
        uint256 indexed _tokenId,
        string _ipfsHash
    );

    event StaticIpfsTokenURICleared(
        uint256 indexed _tokenId
    );

    event CardAttributesSet(
        uint256 indexed _tokenId,
        uint256 _strength,
        uint256 _speed,
        uint256 _intelligence,
        uint256 _skill
    );

    event NameSet(
        uint256 indexed _tokenId,
        uint256 _firstName,
        uint256 _lastName
    );

    event SpecialSet(
        uint256 indexed _tokenId,
        uint256 _value
    );

    event BadgeSet(
        uint256 indexed _tokenId,
        uint256 _value
    );

    event SponsorSet(
        uint256 indexed _tokenId,
        uint256 _value
    );

    event NumberSet(
        uint256 indexed _tokenId,
        uint256 _value
    );

    event BootsSet(
        uint256 indexed _tokenId,
        uint256 _value
    );

    event StarAdded(
        uint256 indexed _tokenId,
        uint256 _value
    );

    event XpAdded(
        uint256 indexed _tokenId,
        uint256 _value
    );

    struct Card {
        uint256 cardType;

        uint256 nationality;
        uint256 position;

        uint256 ethnicity;

        uint256 kit;
        uint256 colour;
    }

    struct Attributes {
        uint256 strength;
        uint256 speed;
        uint256 intelligence;
        uint256 skill;
        uint256 special;
    }

    struct Name {
        uint256 firstName;
        uint256 lastName;
    }

    struct Extras {
        uint256 badge;
        uint256 sponsor;
        uint256 number;
        uint256 boots;
        uint256 stars;
        uint256 xp;
    }

    modifier onlyWhitelistedOrTokenOwner(uint256 _tokenId){
        require(isWhitelisted(msg.sender) || ownerOf(_tokenId) == msg.sender, "Unable to set token image URI unless owner of whitelisted");
        _;
    }

    uint256 public tokenIdPointer = 0;

    mapping(uint256 => string) public staticIpfsImageLink;
    mapping(uint256 => Card) internal cardMapping;
    mapping(uint256 => Attributes) internal attributesMapping;
    mapping(uint256 => Name) internal namesMapping;
    mapping(uint256 => Extras) internal extrasMapping;

    function mintCard(
        uint256 _cardType,
        uint256 _nationality,
        uint256 _position,
        uint256 _ethnicity,
        uint256 _kit,
        uint256 _colour,
        address _to
    ) public onlyWhitelisted returns (uint256 _tokenId) {

        // increment pointer
        tokenIdPointer = tokenIdPointer.add(1);

        // create new card
        cardMapping[tokenIdPointer] = Card({
            cardType : _cardType,
            nationality : _nationality,
            position : _position,
            ethnicity : _ethnicity,
            kit : _kit,
            colour : _colour
            });

        // the magic bit!
        _mint(_to, tokenIdPointer);

        return tokenIdPointer;
    }

    function setAttributesAndName(
        uint256 _tokenId,
        uint256 _strength,
        uint256 _speed,
        uint256 _intelligence,
        uint256 _skill,
        uint256 _firstName,
        uint256 _lastName
    ) public onlyWhitelisted returns (bool) {

        attributesMapping[_tokenId] = Attributes({
            strength : _strength,
            speed : _speed,
            intelligence : _intelligence,
            skill : _skill,
            special : 0
            });

        namesMapping[_tokenId] = Name({
            firstName : _firstName,
            lastName : _lastName
            });

        return true;
    }

    function setAttributes(
        uint256 _tokenId,
        uint256 _strength,
        uint256 _speed,
        uint256 _intelligence,
        uint256 _skill
    ) public onlyWhitelisted returns (bool) {
        require(_exists(_tokenId), "Token does not exist");

        attributesMapping[_tokenId] = Attributes({
            strength : _strength,
            speed : _speed,
            intelligence : _intelligence,
            skill : _skill,
            special : 0
            });

        emit CardAttributesSet(
            _tokenId,
            _strength,
            _speed,
            _intelligence,
            _skill
        );

        return true;
    }

    function setName(
        uint256 _tokenId,
        uint256 _firstName,
        uint256 _lastName
    ) public onlyWhitelisted returns (bool) {
        require(_exists(_tokenId), "Token does not exist");

        namesMapping[_tokenId] = Name({
            firstName : _firstName,
            lastName : _lastName
            });

        emit NameSet(
            _tokenId,
            _firstName,
            _lastName
        );

        return true;
    }

    function card(uint256 _tokenId) public view returns (
        uint256 _cardType,
        uint256 _nationality,
        uint256 _position,
        uint256 _ethnicity,
        uint256 _kit,
        uint256 _colour
    ) {
        require(_exists(_tokenId), "Token does not exist");
        Card storage tokenCard = cardMapping[_tokenId];
        return (
        tokenCard.cardType,
        tokenCard.nationality,
        tokenCard.position,
        tokenCard.ethnicity,
        tokenCard.kit,
        tokenCard.colour
        );
    }

    function attributesAndName(uint256 _tokenId) public view returns (
        uint256 _strength,
        uint256 _speed,
        uint256 _intelligence,
        uint256 _skill,
        uint256 _special,
        uint256 _firstName,
        uint256 _lastName
    ) {
        require(_exists(_tokenId), "Token does not exist");
        Attributes storage tokenAttributes = attributesMapping[_tokenId];
        Name storage tokenName = namesMapping[_tokenId];
        return (
        tokenAttributes.strength,
        tokenAttributes.speed,
        tokenAttributes.intelligence,
        tokenAttributes.skill,
        tokenAttributes.special,
        tokenName.firstName,
        tokenName.lastName
        );
    }

    function extras(uint256 _tokenId) public view returns (
        uint256 _badge,
        uint256 _sponsor,
        uint256 _number,
        uint256 _boots,
        uint256 _stars,
        uint256 _xp
    ) {
        require(_exists(_tokenId), "Token does not exist");
        Extras storage tokenExtras = extrasMapping[_tokenId];
        return (
        tokenExtras.badge,
        tokenExtras.sponsor,
        tokenExtras.number,
        tokenExtras.boots,
        tokenExtras.stars,
        tokenExtras.xp
        );
    }

    function attributesFlat(uint256 _tokenId) public view returns (uint256[5] memory) {
        require(_exists(_tokenId), "Token does not exist");
        Attributes storage tokenAttributes = attributesMapping[_tokenId];
        uint256[5] memory tokenAttributesFlat = [
        tokenAttributes.strength,
        tokenAttributes.speed,
        tokenAttributes.intelligence,
        tokenAttributes.skill,
        tokenAttributes.special
        ];
        return tokenAttributesFlat;
    }

    function tokensOfOwner(address owner) public view returns (uint256[] memory) {
        return _tokensOfOwner(owner);
    }

    function burn(uint256 _tokenId) onlyWhitelisted public returns (bool) {
        require(_exists(_tokenId), "Token does not exist");

        delete staticIpfsImageLink[_tokenId];
        delete cardMapping[_tokenId];
        delete attributesMapping[_tokenId];
        delete namesMapping[_tokenId];
        delete extrasMapping[_tokenId];

        _burn(ownerOf(_tokenId), _tokenId);

        return true;
    }

    function setSpecial(uint256 _tokenId, uint256 _newSpecial) public onlyWhitelisted returns (bool) {
        require(_exists(_tokenId), "Token does not exist");

        Attributes storage tokenAttributes = attributesMapping[_tokenId];
        tokenAttributes.special = _newSpecial;

        emit SpecialSet(_tokenId, _newSpecial);

        return true;
    }

    function setBadge(uint256 _tokenId, uint256 _new) public onlyWhitelisted returns (bool) {
        require(_exists(_tokenId), "Token does not exist");

        Extras storage tokenExtras = extrasMapping[_tokenId];
        tokenExtras.badge = _new;

        emit BadgeSet(_tokenId, _new);

        return true;
    }

    function setSponsor(uint256 _tokenId, uint256 _new) public onlyWhitelisted returns (bool) {
        require(_exists(_tokenId), "Token does not exist");

        Extras storage tokenExtras = extrasMapping[_tokenId];
        tokenExtras.sponsor = _new;

        emit SponsorSet(_tokenId, _new);

        return true;
    }

    function setNumber(uint256 _tokenId, uint256 _new) public onlyWhitelisted returns (bool) {
        require(_exists(_tokenId), "Token does not exist");

        Extras storage tokenExtras = extrasMapping[_tokenId];
        tokenExtras.number = _new;

        emit NumberSet(_tokenId, _new);

        return true;
    }

    function setBoots(uint256 _tokenId, uint256 _new) public onlyWhitelisted returns (bool) {
        require(_exists(_tokenId), "Token does not exist");

        Extras storage tokenExtras = extrasMapping[_tokenId];
        tokenExtras.boots = _new;

        emit BootsSet(_tokenId, _new);

        return true;
    }

    function addStar(uint256 _tokenId) public onlyWhitelisted returns (bool) {
        require(_exists(_tokenId), "Token does not exist");

        Extras storage tokenExtras = extrasMapping[_tokenId];
        tokenExtras.stars = tokenExtras.stars.add(1);

        emit StarAdded(_tokenId, tokenExtras.stars);

        return true;
    }

    function addXp(uint256 _tokenId, uint256 _increment) public onlyWhitelisted returns (bool) {
        require(_exists(_tokenId), "Token does not exist");

        Extras storage tokenExtras = extrasMapping[_tokenId];
        tokenExtras.xp = tokenExtras.xp.add(_increment);

        emit XpAdded(_tokenId, tokenExtras.xp);

        return true;
    }

    function tokenURI(uint256 tokenId) external view returns (string memory) {
        require(_exists(tokenId));

        // If we have an override then use it
        if (bytes(staticIpfsImageLink[tokenId]).length > 0) {
            return Strings.strConcat(tokenBaseIpfsURI, staticIpfsImageLink[tokenId]);
        }
        return Strings.strConcat(tokenBaseURI, Strings.uint2str(tokenId));
    }

    function updateTokenBaseURI(string memory _newBaseURI) public onlyWhitelisted returns (bool) {
        require(bytes(_newBaseURI).length != 0, "Base URI invalid");
        tokenBaseURI = _newBaseURI;

        emit TokenBaseURIChanged(_newBaseURI);

        return true;
    }

    function updateTokenBaseIpfsURI(string memory _tokenBaseIpfsURI) public onlyWhitelisted returns (bool) {
        require(bytes(_tokenBaseIpfsURI).length != 0, "Base IPFS URI invalid");
        tokenBaseIpfsURI = _tokenBaseIpfsURI;

        emit TokenBaseIPFSURIChanged(_tokenBaseIpfsURI);

        return true;
    }

    function overrideDynamicImageWithIpfsLink(uint256 _tokenId, string memory _ipfsHash)
    public
    onlyWhitelistedOrTokenOwner(_tokenId)
    returns (bool) {
        require(bytes(_ipfsHash).length != 0, "Base IPFS URI invalid");

        staticIpfsImageLink[_tokenId] = _ipfsHash;

        emit StaticIpfsTokenURISet(_tokenId, _ipfsHash);

        return true;
    }

    function clearIpfsImageUri(uint256 _tokenId)
    public
    onlyWhitelistedOrTokenOwner(_tokenId)
    returns (bool) {
        delete staticIpfsImageLink[_tokenId];

        emit StaticIpfsTokenURICleared(_tokenId);

        return true;
    }
}

// File: contracts/NiftyFootballTradingCard.sol

pragma solidity 0.5.0;


contract NiftyFootballTradingCard is NiftyTradingCard {

    constructor (string memory _tokenBaseURI) public CustomERC721Full("Nifty Football Trading Card", "NFTFC") {
        super.addWhitelisted(msg.sender);
        tokenBaseURI = _tokenBaseURI;
    }
}

Contract Security Audit

Contract ABI

[{"constant":false,"inputs":[{"name":"_tokenId","type":"uint256"}],"name":"addStar","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"to","type":"address"},{"name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_tokenId","type":"uint256"},{"name":"_newSpecial","type":"uint256"}],"name":"setSpecial","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"account","type":"address"}],"name":"addWhitelisted","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_tokenId","type":"uint256"},{"name":"_new","type":"uint256"}],"name":"setBadge","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_newBaseURI","type":"string"}],"name":"updateTokenBaseURI","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"from","type":"address"},{"name":"to","type":"address"},{"name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"staticIpfsImageLink","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"account","type":"address"}],"name":"removeWhitelisted","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"owner","type":"address"},{"name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"account","type":"address"}],"name":"isWhitelisted","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"tokenIdPointer","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"tokenBaseIpfsURI","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_tokenId","type":"uint256"},{"name":"_ipfsHash","type":"string"}],"name":"overrideDynamicImageWithIpfsLink","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"from","type":"address"},{"name":"to","type":"address"},{"name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_tokenId","type":"uint256"}],"name":"burn","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"renounceWhitelistAdmin","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"tokenBaseURI","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_tokenId","type":"uint256"}],"name":"extras","outputs":[{"name":"_badge","type":"uint256"},{"name":"_sponsor","type":"uint256"},{"name":"_number","type":"uint256"},{"name":"_boots","type":"uint256"},{"name":"_stars","type":"uint256"},{"name":"_xp","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_tokenId","type":"uint256"},{"name":"_new","type":"uint256"}],"name":"setNumber","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"account","type":"address"}],"name":"addWhitelistAdmin","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_tokenId","type":"uint256"},{"name":"_strength","type":"uint256"},{"name":"_speed","type":"uint256"},{"name":"_intelligence","type":"uint256"},{"name":"_skill","type":"uint256"},{"name":"_firstName","type":"uint256"},{"name":"_lastName","type":"uint256"}],"name":"setAttributesAndName","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"name":"","type":"uint256[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_tokenId","type":"uint256"},{"name":"_new","type":"uint256"}],"name":"setSponsor","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_tokenBaseIpfsURI","type":"string"}],"name":"updateTokenBaseIpfsURI","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_tokenId","type":"uint256"},{"name":"_firstName","type":"uint256"},{"name":"_lastName","type":"uint256"}],"name":"setName","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_cardType","type":"uint256"},{"name":"_nationality","type":"uint256"},{"name":"_position","type":"uint256"},{"name":"_ethnicity","type":"uint256"},{"name":"_kit","type":"uint256"},{"name":"_colour","type":"uint256"},{"name":"_to","type":"address"}],"name":"mintCard","outputs":[{"name":"_tokenId","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"to","type":"address"},{"name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_tokenId","type":"uint256"}],"name":"attributesFlat","outputs":[{"name":"","type":"uint256[5]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"from","type":"address"},{"name":"to","type":"address"},{"name":"tokenId","type":"uint256"},{"name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_tokenId","type":"uint256"},{"name":"_new","type":"uint256"}],"name":"setBoots","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"account","type":"address"}],"name":"isWhitelistAdmin","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_tokenId","type":"uint256"}],"name":"clearIpfsImageUri","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_tokenId","type":"uint256"}],"name":"card","outputs":[{"name":"_cardType","type":"uint256"},{"name":"_nationality","type":"uint256"},{"name":"_position","type":"uint256"},{"name":"_ethnicity","type":"uint256"},{"name":"_kit","type":"uint256"},{"name":"_colour","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_tokenId","type":"uint256"}],"name":"attributesAndName","outputs":[{"name":"_strength","type":"uint256"},{"name":"_speed","type":"uint256"},{"name":"_intelligence","type":"uint256"},{"name":"_skill","type":"uint256"},{"name":"_special","type":"uint256"},{"name":"_firstName","type":"uint256"},{"name":"_lastName","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceWhitelisted","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_tokenId","type":"uint256"},{"name":"_increment","type":"uint256"}],"name":"addXp","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_tokenId","type":"uint256"},{"name":"_strength","type":"uint256"},{"name":"_speed","type":"uint256"},{"name":"_intelligence","type":"uint256"},{"name":"_skill","type":"uint256"}],"name":"setAttributes","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"owner","type":"address"},{"name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_tokenBaseURI","type":"string"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_new","type":"string"}],"name":"TokenBaseURIChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_new","type":"string"}],"name":"TokenBaseIPFSURIChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_tokenId","type":"uint256"},{"indexed":false,"name":"_ipfsHash","type":"string"}],"name":"StaticIpfsTokenURISet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_tokenId","type":"uint256"}],"name":"StaticIpfsTokenURICleared","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_tokenId","type":"uint256"},{"indexed":false,"name":"_strength","type":"uint256"},{"indexed":false,"name":"_speed","type":"uint256"},{"indexed":false,"name":"_intelligence","type":"uint256"},{"indexed":false,"name":"_skill","type":"uint256"}],"name":"CardAttributesSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_tokenId","type":"uint256"},{"indexed":false,"name":"_firstName","type":"uint256"},{"indexed":false,"name":"_lastName","type":"uint256"}],"name":"NameSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_tokenId","type":"uint256"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"SpecialSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_tokenId","type":"uint256"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"BadgeSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_tokenId","type":"uint256"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"SponsorSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_tokenId","type":"uint256"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"NumberSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_tokenId","type":"uint256"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"BootsSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_tokenId","type":"uint256"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"StarAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_tokenId","type":"uint256"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"XpAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"account","type":"address"}],"name":"WhitelistedAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"account","type":"address"}],"name":"WhitelistedRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"account","type":"address"}],"name":"WhitelistAdminAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"account","type":"address"}],"name":"WhitelistAdminRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":true,"name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":true,"name":"approved","type":"address"},{"indexed":true,"name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":true,"name":"operator","type":"address"},{"indexed":false,"name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"}]

60a06040819052600060808190526200001b91600d91620004a5565b5060408051808201909152601c8082527f68747470733a2f2f697066732e696e667572612e696f2f697066732f0000000060209092019182526200006291600e91620004a5565b506000600f553480156200007557600080fd5b5060405162003be738038062003be7833981018060405260208110156200009b57600080fd5b810190808051640100000000811115620000b457600080fd5b82016020810184811115620000c857600080fd5b8151640100000000811182820187101715620000e357600080fd5b5050604080518082018252601b81527f4e6966747920466f6f7462616c6c2054726164696e67204361726400000000006020808301919091528251808401909352600583527f4e4654464300000000000000000000000000000000000000000000000000000090830152919450909250905081816200018b7f01ffc9a700000000000000000000000000000000000000000000000000000000640100000000620002a7810204565b620001bf7f80ac58cd00000000000000000000000000000000000000000000000000000000640100000000620002a7810204565b620001f37f780e9d6300000000000000000000000000000000000000000000000000000000640100000000620002a7810204565b815162000208906009906020850190620004a5565b5080516200021e90600a906020840190620004a5565b50620002537f5b5e139f00000000000000000000000000000000000000000000000000000000640100000000620002a7810204565b50505050620002713362000314640100000000026401000000009004565b6200028a336401000000006200121d6200036682021704565b80516200029f90600d906020840190620004a5565b50506200054a565b7fffffffff000000000000000000000000000000000000000000000000000000008082161415620002d757600080fd5b7fffffffff00000000000000000000000000000000000000000000000000000000166000908152602081905260409020805460ff19166001179055565b6200032f600b8264010000000062002ce66200039d82021704565b604051600160a060020a038216907f22380c05984257a1cb900161c713dd71d39e74820f1aea43bd3f1bdd2096129990600090a250565b6200037a33640100000000620003f8810204565b15156200038657600080fd5b6200039a816401000000006200041b810204565b50565b600160a060020a0381161515620003b357600080fd5b620003c882826401000000006200046d810204565b15620003d357600080fd5b600160a060020a0316600090815260209190915260409020805460ff19166001179055565b600062000415600b83640100000000620029456200046d82021704565b92915050565b62000436600c8264010000000062002ce66200039d82021704565b604051600160a060020a038216907fee1504a83b6d4a361f4c1dc78ab59bfa30d6a3b6612c403e86bb01ef2984295f90600090a250565b6000600160a060020a03821615156200048557600080fd5b50600160a060020a03166000908152602091909152604090205460ff1690565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620004e857805160ff191683800117855562000518565b8280016001018555821562000518579182015b8281111562000518578251825591602001919060010190620004fb565b50620005269291506200052a565b5090565b6200054791905b8082111562000526576000815560010162000531565b90565b61368d806200055a6000396000f3fe6080604052600436106102455763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166301750e74811461024a57806301ffc9a71461028857806306fdde03146102d1578063081812fc1461035b578063095ea7b3146103a15780630bde9046146103dc57806310154bad1461040c57806318160ddd1461043f57806321c3e69d146104665780632295ee5b1461049657806323b872dd14610549578063261eb4e51461058c578063291d9549146105b65780632f745c59146105e95780633af32abf146106225780633b3a1a7a146106555780633e10169f1461066a578063427849d61461067f57806342842e0e1461073957806342966c681461077c5780634c5a628c146107a65780634e99b800146107bb5780634f6ccce7146107d05780635468bc2f146107fa5780636352211e146108575780636b19e8c71461088157806370a08231146108b15780637362d9c8146108e45780637c4c890e146109175780638462151c1461096557806386be19ae146109e8578063893bc90414610a1857806392f5fb1b14610acb57806395d89b4114610b015780639b34918e14610b16578063a22cb46514610b6d578063abbcbc4914610ba8578063b88d4fde14610c0a578063b987f99314610cdd578063bb5f747b14610d0d578063bf40527414610d40578063bfcfd9b914610d6a578063c375fb6e14610d94578063c87b56dd14610df6578063d6cd947314610e20578063dc0ab92514610e35578063de8c900014610e65578063e985e9c514610ea7575b600080fd5b34801561025657600080fd5b506102746004803603602081101561026d57600080fd5b5035610ee2565b604080519115158252519081900360200190f35b34801561029457600080fd5b50610274600480360360208110156102ab57600080fd5b50357bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916610fb0565b3480156102dd57600080fd5b506102e6610fe4565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610320578181015183820152602001610308565b50505050905090810190601f16801561034d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561036757600080fd5b506103856004803603602081101561037e57600080fd5b503561107b565b60408051600160a060020a039092168252519081900360200190f35b3480156103ad57600080fd5b506103da600480360360408110156103c457600080fd5b50600160a060020a0381351690602001356110ad565b005b3480156103e857600080fd5b50610274600480360360408110156103ff57600080fd5b5080359060200135611163565b34801561041857600080fd5b506103da6004803603602081101561042f57600080fd5b5035600160a060020a031661121d565b34801561044b57600080fd5b5061045461123d565b60408051918252519081900360200190f35b34801561047257600080fd5b506102746004803603604081101561048957600080fd5b5080359060200135611243565b3480156104a257600080fd5b50610274600480360360208110156104b957600080fd5b8101906020810181356401000000008111156104d457600080fd5b8201836020820111156104e657600080fd5b8035906020019184600183028401116401000000008311171561050857600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506112f9945050505050565b34801561055557600080fd5b506103da6004803603606081101561056c57600080fd5b50600160a060020a0381358116916020810135909116906040013561141c565b34801561059857600080fd5b506102e6600480360360208110156105af57600080fd5b5035611441565b3480156105c257600080fd5b506103da600480360360208110156105d957600080fd5b5035600160a060020a03166114dc565b3480156105f557600080fd5b506104546004803603604081101561060c57600080fd5b50600160a060020a0381351690602001356114f9565b34801561062e57600080fd5b506102746004803603602081101561064557600080fd5b5035600160a060020a0316611546565b34801561066157600080fd5b5061045461155f565b34801561067657600080fd5b506102e6611565565b34801561068b57600080fd5b50610274600480360360408110156106a257600080fd5b813591908101906040810160208201356401000000008111156106c457600080fd5b8201836020820111156106d657600080fd5b803590602001918460018302840111640100000000831117156106f857600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506115c0945050505050565b34801561074557600080fd5b506103da6004803603606081101561075c57600080fd5b50600160a060020a0381358116916020810135909116906040013561177f565b34801561078857600080fd5b506102746004803603602081101561079f57600080fd5b503561179b565b3480156107b257600080fd5b506103da6118bf565b3480156107c757600080fd5b506102e66118ca565b3480156107dc57600080fd5b50610454600480360360208110156107f357600080fd5b5035611925565b34801561080657600080fd5b506108246004803603602081101561081d57600080fd5b503561195a565b604080519687526020870195909552858501939093526060850191909152608084015260a0830152519081900360c00190f35b34801561086357600080fd5b506103856004803603602081101561087a57600080fd5b50356119ea565b34801561088d57600080fd5b50610274600480360360408110156108a457600080fd5b5080359060200135611a0e565b3480156108bd57600080fd5b50610454600480360360208110156108d457600080fd5b5035600160a060020a0316611ac8565b3480156108f057600080fd5b506103da6004803603602081101561090757600080fd5b5035600160a060020a0316611afb565b34801561092357600080fd5b50610274600480360360e081101561093a57600080fd5b5080359060208101359060408101359060608101359060808101359060a08101359060c00135611b18565b34801561097157600080fd5b506109986004803603602081101561098857600080fd5b5035600160a060020a0316611bb8565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156109d45781810151838201526020016109bc565b505050509050019250505060405180910390f35b3480156109f457600080fd5b5061027460048036036040811015610a0b57600080fd5b5080359060200135611c19565b348015610a2457600080fd5b5061027460048036036020811015610a3b57600080fd5b810190602081018135640100000000811115610a5657600080fd5b820183602082011115610a6857600080fd5b80359060200191846001830284011164010000000083111715610a8a57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611cd3945050505050565b348015610ad757600080fd5b5061027460048036036060811015610aee57600080fd5b5080359060208101359060400135611db3565b348015610b0d57600080fd5b506102e6611e85565b348015610b2257600080fd5b50610454600480360360e0811015610b3957600080fd5b5080359060208101359060408101359060608101359060808101359060a08101359060c00135600160a060020a0316611ee6565b348015610b7957600080fd5b506103da60048036036040811015610b9057600080fd5b50600160a060020a0381351690602001351515611f98565b348015610bb457600080fd5b50610bd260048036036020811015610bcb57600080fd5b503561201c565b604051808260a080838360005b83811015610bf7578181015183820152602001610bdf565b5050505090500191505060405180910390f35b348015610c1657600080fd5b506103da60048036036080811015610c2d57600080fd5b600160a060020a03823581169260208101359091169160408201359190810190608081016060820135640100000000811115610c6857600080fd5b820183602082011115610c7a57600080fd5b80359060200191846001830284011164010000000083111715610c9c57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506120c7945050505050565b348015610ce957600080fd5b5061027460048036036040811015610d0057600080fd5b50803590602001356120ef565b348015610d1957600080fd5b5061027460048036036020811015610d3057600080fd5b5035600160a060020a03166121a9565b348015610d4c57600080fd5b5061027460048036036020811015610d6357600080fd5b50356121bc565b348015610d7657600080fd5b5061082460048036036020811015610d8d57600080fd5b50356122aa565b348015610da057600080fd5b50610dbe60048036036020811015610db757600080fd5b503561233a565b604080519788526020880196909652868601949094526060860192909252608085015260a084015260c0830152519081900360e00190f35b348015610e0257600080fd5b506102e660048036036020811015610e1957600080fd5b50356123dd565b348015610e2c57600080fd5b506103da6125f0565b348015610e4157600080fd5b5061027460048036036040811015610e5857600080fd5b50803590602001356125f9565b348015610e7157600080fd5b50610274600480360360a0811015610e8857600080fd5b50803590602081013590604081013590606081013590608001356126c5565b348015610eb357600080fd5b5061027460048036036040811015610eca57600080fd5b50600160a060020a03813581169160200135166127d3565b6000610eed33611546565b1515610ef857600080fd5b610f0182612801565b1515610f45576040805160e560020a62461bcd0281526020600482015260146024820152600080516020613642833981519152604482015290519081900360640190fd5b60008281526014602052604090206004810154610f6990600163ffffffff61281e16565b60048201819055604080519182525184917f15d07b9caa4ef0ff84bff233c4b3be3396d65dc4cdde0cd418a747e5c61c52aa919081900360200190a260019150505b919050565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191660009081526020819052604090205460ff1690565b60098054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156110705780601f1061104557610100808354040283529160200191611070565b820191906000526020600020905b81548152906001019060200180831161105357829003601f168201915b505050505090505b90565b600061108682612801565b151561109157600080fd5b50600090815260026020526040902054600160a060020a031690565b60006110b8826119ea565b9050600160a060020a0383811690821614156110d357600080fd5b33600160a060020a03821614806110ef57506110ef81336127d3565b15156110fa57600080fd5b600082815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061116e33611546565b151561117957600080fd5b61118283612801565b15156111c6576040805160e560020a62461bcd0281526020600482015260146024820152600080516020613642833981519152604482015290519081900360640190fd5b6000838152601260209081526040918290206004810185905582518581529251909286927f2a32126946c3137a9afa70442339e37a0a82ed9e4d2281a447b8ecb40c9e501992918290030190a25060019392505050565b611226336121a9565b151561123157600080fd5b61123a81612837565b50565b60075490565b600061124e33611546565b151561125957600080fd5b61126283612801565b15156112a6576040805160e560020a62461bcd0281526020600482015260146024820152600080516020613642833981519152604482015290519081900360640190fd5b60008381526014602090815260409182902084815582518581529251909286927f850866ad49a69c1541ccee0e2f2f02ef30ab1335cf98c5b062aa7d1c12191e3492918290030190a25060019392505050565b600061130433611546565b151561130f57600080fd5b81511515611367576040805160e560020a62461bcd02815260206004820152601060248201527f426173652055524920696e76616c696400000000000000000000000000000000604482015290519081900360640190fd5b815161137a90600d906020850190613526565b507feb44d3cd28695bf80f91b729a9b18c4658ae3f971329ebfaf805f1006ed9308a826040518080602001828103825283818151815260200191508051906020019080838360005b838110156113da5781810151838201526020016113c2565b50505050905090810190601f1680156114075780820380516001836020036101000a031916815260200191505b509250505060405180910390a1506001919050565b611426338261287f565b151561143157600080fd5b61143c8383836128de565b505050565b60106020908152600091825260409182902080548351601f6002600019610100600186161502019093169290920491820184900484028101840190945280845290918301828280156114d45780601f106114a9576101008083540402835291602001916114d4565b820191906000526020600020905b8154815290600101906020018083116114b757829003601f168201915b505050505081565b6114e5336121a9565b15156114f057600080fd5b61123a816128fd565b600061150483611ac8565b821061150f57600080fd5b600160a060020a038316600090815260056020526040902080548390811061153357fe5b9060005260206000200154905092915050565b6000611559600c8363ffffffff61294516565b92915050565b600f5481565b600e805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156114d45780601f106114a9576101008083540402835291602001916114d4565b6000826115cc33611546565b806115e75750336115dc826119ea565b600160a060020a0316145b1515611663576040805160e560020a62461bcd02815260206004820152603960248201527f556e61626c6520746f2073657420746f6b656e20696d6167652055524920756e60448201527f6c657373206f776e6572206f662077686974656c697374656400000000000000606482015290519081900360840190fd5b825115156116bb576040805160e560020a62461bcd02815260206004820152601560248201527f4261736520495046532055524920696e76616c69640000000000000000000000604482015290519081900360640190fd5b600084815260106020908152604090912084516116da92860190613526565b50837fcc21c9e97f4c1b48853cc4c5675c52597c939ba6762fbf5d1bb439b147a4552e846040518080602001828103825283818151815260200191508051906020019080838360005b8381101561173b578181015183820152602001611723565b50505050905090810190601f1680156117685780820380516001836020036101000a031916815260200191505b509250505060405180910390a25060019392505050565b61143c83838360206040519081016040528060008152506120c7565b60006117a633611546565b15156117b157600080fd5b6117ba82612801565b15156117fe576040805160e560020a62461bcd0281526020600482015260146024820152600080516020613642833981519152604482015290519081900360640190fd5b6000828152601060205260408120611815916135a4565b6000828152601160209081526040808320838155600180820185905560028083018690556003808401879055600480850188905560059485018890556012875285882088815580850189905580840189905580830189905581018890556013875285882088815584018890556014909652938620868155918201869055810185905591820184905591810183905501556118b76118b1836119ea565b8361297c565b506001919050565b6118c83361298a565b565b600d805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156114d45780601f106114a9576101008083540402835291602001916114d4565b600061192f61123d565b821061193a57600080fd5b600780548390811061194857fe5b90600052602060002001549050919050565b60008060008060008061196c87612801565b15156119b0576040805160e560020a62461bcd0281526020600482015260146024820152600080516020613642833981519152604482015290519081900360640190fd5b5050506000938452505060146020525060409020805460018201546002830154600384015460048501546005909501549395929491939092565b600081815260016020526040812054600160a060020a031680151561155957600080fd5b6000611a1933611546565b1515611a2457600080fd5b611a2d83612801565b1515611a71576040805160e560020a62461bcd0281526020600482015260146024820152600080516020613642833981519152604482015290519081900360640190fd5b6000838152601460209081526040918290206002810185905582518581529251909286927f9b99fe1e164b2f59c23e957801d298251d28b6c108a9e5348c4128956db0483b92918290030190a25060019392505050565b6000600160a060020a0382161515611adf57600080fd5b50600160a060020a031660009081526003602052604090205490565b611b04336121a9565b1515611b0f57600080fd5b61123a816129d2565b6000611b2333611546565b1515611b2e57600080fd5b506040805160a0810182529687526020808801968752878201958652606088019485526000608089018181528a82526012835283822099518a5597516001808b0191909155965160028a0155945160038901559551600490970196909655855180870187529182528185019081529582526013909352929092209051815591519181019190915590565b6060611bc382612a1a565b805480602002602001604051908101604052809291908181526020018280548015611c0d57602002820191906000526020600020905b815481526020019060010190808311611bf9575b50505050509050919050565b6000611c2433611546565b1515611c2f57600080fd5b611c3883612801565b1515611c7c576040805160e560020a62461bcd0281526020600482015260146024820152600080516020613642833981519152604482015290519081900360640190fd5b6000838152601460209081526040918290206001810185905582518581529251909286927fb090761efd169ad07cc9478dce823ced9f143c64870c1a212a59bf59f269f06a92918290030190a25060019392505050565b6000611cde33611546565b1515611ce957600080fd5b81511515611d41576040805160e560020a62461bcd02815260206004820152601560248201527f4261736520495046532055524920696e76616c69640000000000000000000000604482015290519081900360640190fd5b8151611d5490600e906020850190613526565b507f93bc8252380c645fd4b845fab020073aba271b77652e908c3450d2346be94ee982604051808060200182810382528381815181526020019150805190602001908083836000838110156113da5781810151838201526020016113c2565b6000611dbe33611546565b1515611dc957600080fd5b611dd284612801565b1515611e16576040805160e560020a62461bcd0281526020600482015260146024820152600080516020613642833981519152604482015290519081900360640190fd5b604080518082018252848152602080820185815260008881526013835284902092518355516001909201919091558151858152908101849052815186927fb510a739be5ccf96111ba362fb80ca648c934dd748733b2563c4f0fee7eeabd3928290030190a25060019392505050565b600a8054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156110705780601f1061104557610100808354040283529160200191611070565b6000611ef133611546565b1515611efc57600080fd5b600f54611f1090600163ffffffff61281e16565b600f8181556040805160c0810182528b815260208082018c81528284018c8152606084018c8152608085018c815260a086018c81526000998a5260119095529590972093518455905160018401555160028301559351600382015590516004820155915160059092019190915554611f89908390612a34565b50600f54979650505050505050565b600160a060020a038216331415611fae57600080fd5b336000818152600460209081526040808320600160a060020a03871680855290835292819020805460ff1916861515908117909155815190815290519293927f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31929181900390910190a35050565b6120246135e8565b61202d82612801565b1515612071576040805160e560020a62461bcd0281526020600482015260146024820152600080516020613642833981519152604482015290519081900360640190fd5b60008281526012602052604090206120876135e8565b506040805160a081018252825481526001830154602082015260028301549181019190915260038201546060820152600490910154608082015292915050565b6120d284848461141c565b6120de84848484612a51565b15156120e957600080fd5b50505050565b60006120fa33611546565b151561210557600080fd5b61210e83612801565b1515612152576040805160e560020a62461bcd0281526020600482015260146024820152600080516020613642833981519152604482015290519081900360640190fd5b6000838152601460209081526040918290206003810185905582518581529251909286927fa964212e3161d61e75a66f706534700581768662c0c97c384cae5ae8bd78596d92918290030190a25060019392505050565b6000611559600b8363ffffffff61294516565b6000816121c833611546565b806121e35750336121d8826119ea565b600160a060020a0316145b151561225f576040805160e560020a62461bcd02815260206004820152603960248201527f556e61626c6520746f2073657420746f6b656e20696d6167652055524920756e60448201527f6c657373206f776e6572206f662077686974656c697374656400000000000000606482015290519081900360840190fd5b6000838152601060205260408120612276916135a4565b60405183907feefcdf933acebe3408b59e310709eeb11c01f4b3f75b0934f506d2d58ca2754e90600090a250600192915050565b6000806000806000806122bc87612801565b1515612300576040805160e560020a62461bcd0281526020600482015260146024820152600080516020613642833981519152604482015290519081900360640190fd5b5050506000938452505060116020525060409020805460018201546002830154600384015460048501546005909501549395929491939092565b600080600080600080600061234e88612801565b1515612392576040805160e560020a62461bcd0281526020600482015260146024820152600080516020613642833981519152604482015290519081900360640190fd5b50505060009485525050601260209081526040808520601390925290932083546001808601546002870154600388015460049098015485549390950154939891979096509450909190565b60606123e882612801565b15156123f357600080fd5b60008281526010602052604081205460026000196101006001841615020190911604111561255057600e8054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815261254993909290918301828280156124a85780601f1061247d576101008083540402835291602001916124a8565b820191906000526020600020905b81548152906001019060200180831161248b57829003601f168201915b5050506000868152601060209081526040918290208054835160026001831615610100026000190190921691909104601f81018490048402820184019094528381529450925083018282801561253f5780601f106125145761010080835404028352916020019161253f565b820191906000526020600020905b81548152906001019060200180831161252257829003601f168201915b5050505050612bcd565b9050610fab565b600d8054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815261155993909290918301828280156125dd5780601f106125b2576101008083540402835291602001916125dd565b820191906000526020600020905b8154815290600101906020018083116125c057829003601f168201915b50505050506125eb84612c02565b612bcd565b6118c8336128fd565b600061260433611546565b151561260f57600080fd5b61261883612801565b151561265c576040805160e560020a62461bcd0281526020600482015260146024820152600080516020613642833981519152604482015290519081900360640190fd5b6000838152601460205260409020600581015461267f908463ffffffff61281e16565b60058201819055604080519182525185917fe2e0abad15d85a43318b503a336369b2309f9c5dc640310c7079f2ae23122bca919081900360200190a25060019392505050565b60006126d033611546565b15156126db57600080fd5b6126e486612801565b1515612728576040805160e560020a62461bcd0281526020600482015260146024820152600080516020613642833981519152604482015290519081900360640190fd5b6040805160a08101825286815260208082018781528284018781526060808501888152600060808088018281528f8352601288529189902097518855945160018801559251600287015551600386015590516004909401939093558351898152918201889052818401879052918101859052915188927fc08b1d6f32112246977fbaea4f6dbf652f40927e2c50ba996ff86a3058e1318f92908290030190a250600195945050505050565b600160a060020a03918216600090815260046020908152604080832093909416825291909152205460ff1690565b600090815260016020526040902054600160a060020a0316151590565b60008282018381101561283057600080fd5b9392505050565b612848600c8263ffffffff612ce616565b604051600160a060020a038216907fee1504a83b6d4a361f4c1dc78ab59bfa30d6a3b6612c403e86bb01ef2984295f90600090a250565b60008061288b836119ea565b905080600160a060020a031684600160a060020a031614806128c6575083600160a060020a03166128bb8461107b565b600160a060020a0316145b806128d657506128d681856127d3565b949350505050565b6128e9838383612d34565b6128f38382612e50565b61143c8282612f47565b61290e600c8263ffffffff612f8516565b604051600160a060020a038216907f270d9b30cf5b0793bbfd54c9d5b94aeb49462b8148399000265144a8722da6b690600090a250565b6000600160a060020a038216151561295c57600080fd5b50600160a060020a03166000908152602091909152604090205460ff1690565b6129868282612fd1565b5050565b61299b600b8263ffffffff612f8516565b604051600160a060020a038216907f0a8eb35e5ca14b3d6f28e4abf2f128dbab231a58b56e89beb5d636115001e16590600090a250565b6129e3600b8263ffffffff612ce616565b604051600160a060020a038216907f22380c05984257a1cb900161c713dd71d39e74820f1aea43bd3f1bdd2096129990600090a250565b600160a060020a0316600090815260056020526040902090565b612a3e8282612ffd565b612a488282612f47565b612986816130be565b6000612a6584600160a060020a0316613102565b1515612a73575060016128d6565b6040517f150b7a020000000000000000000000000000000000000000000000000000000081523360048201818152600160a060020a03888116602485015260448401879052608060648501908152865160848601528651600095928a169463150b7a029490938c938b938b939260a4019060208501908083838e5b83811015612b06578181015183820152602001612aee565b50505050905090810190601f168015612b335780820380516001836020036101000a031916815260200191505b5095505050505050602060405180830381600087803b158015612b5557600080fd5b505af1158015612b69573d6000803e3d6000fd5b505050506040513d6020811015612b7f57600080fd5b50517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167f150b7a020000000000000000000000000000000000000000000000000000000014915050949350505050565b60408051602081810183526000808352835180830185528181528451928301909452815260609261283092869286929061310a565b6060811515612c45575060408051808201909152600181527f30000000000000000000000000000000000000000000000000000000000000006020820152610fab565b8160005b8115612c5d57600101600a82049150612c49565b6060816040519080825280601f01601f191660200182016040528015612c8a576020820181803883390190505b50905060001982015b8515612cdd57815160001982019160f860020a6030600a8a060102918491908110612cba57fe5b906020010190600160f860020a031916908160001a905350600a86049550612c93565b50949350505050565b600160a060020a0381161515612cfb57600080fd5b612d058282612945565b15612d0f57600080fd5b600160a060020a0316600090815260209190915260409020805460ff19166001179055565b82600160a060020a0316612d47826119ea565b600160a060020a031614612d5a57600080fd5b600160a060020a0382161515612d6f57600080fd5b612d788161335f565b600160a060020a038316600090815260036020526040902054612da290600163ffffffff6133a716565b600160a060020a038085166000908152600360205260408082209390935590841681522054612dd890600163ffffffff61281e16565b600160a060020a0380841660008181526003602090815260408083209590955585825260019052838120805473ffffffffffffffffffffffffffffffffffffffff1916831790559251849391928716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600160a060020a038216600090815260056020526040812054612e7a90600163ffffffff6133a716565b600083815260066020526040902054909150808214612f1757600160a060020a0384166000908152600560205260408120805484908110612eb757fe5b90600052602060002001549050806005600087600160a060020a0316600160a060020a0316815260200190815260200160002083815481101515612ef757fe5b600091825260208083209091019290925591825260069052604090208190555b600160a060020a0384166000908152600560205260409020805490612f40906000198301613607565b5050505050565b600160a060020a0390911660009081526005602081815260408084208054868652600684529185208290559282526001810183559183529091200155565b600160a060020a0381161515612f9a57600080fd5b612fa48282612945565b1515612faf57600080fd5b600160a060020a0316600090815260209190915260409020805460ff19169055565b612fdb82826133bc565b612fe58282612e50565b60008181526006602052604081205561298681613488565b600160a060020a038216151561301257600080fd5b61301b81612801565b1561302557600080fd5b6000818152600160208181526040808420805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03881690811790915584526003909152909120546130739161281e565b600160a060020a0383166000818152600360205260408082209390935591518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600780546000838152600860205260408120829055600182018355919091527fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6880155565b6000903b1190565b6060808690506060869050606086905060608690506060869050606081518351855187518951010101016040519080825280601f01601f19166020018201604052801561315e576020820181803883390190505b509050806000805b88518110156131c457888181518110151561317d57fe5b90602001015160f860020a900460f860020a0283838060010194508151811015156131a457fe5b906020010190600160f860020a031916908160001a905350600101613166565b5060005b87518110156132265787818151811015156131df57fe5b90602001015160f860020a900460f860020a02838380600101945081518110151561320657fe5b906020010190600160f860020a031916908160001a9053506001016131c8565b5060005b865181101561328857868181518110151561324157fe5b90602001015160f860020a900460f860020a02838380600101945081518110151561326857fe5b906020010190600160f860020a031916908160001a90535060010161322a565b5060005b85518110156132ea5785818151811015156132a357fe5b90602001015160f860020a900460f860020a0283838060010194508151811015156132ca57fe5b906020010190600160f860020a031916908160001a90535060010161328c565b5060005b845181101561334c57848181518110151561330557fe5b90602001015160f860020a900460f860020a02838380600101945081518110151561332c57fe5b906020010190600160f860020a031916908160001a9053506001016132ee565b50909d9c50505050505050505050505050565b600081815260026020526040902054600160a060020a03161561123a576000908152600260205260409020805473ffffffffffffffffffffffffffffffffffffffff19169055565b6000828211156133b657600080fd5b50900390565b81600160a060020a03166133cf826119ea565b600160a060020a0316146133e257600080fd5b6133eb8161335f565b600160a060020a03821660009081526003602052604090205461341590600163ffffffff6133a716565b600160a060020a03831660008181526003602090815260408083209490945584825260019052828120805473ffffffffffffffffffffffffffffffffffffffff191690559151839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60075460009061349f90600163ffffffff6133a716565b600083815260086020526040812054600780549394509092849081106134c157fe5b90600052602060002001549050806007838154811015156134de57fe5b60009182526020808320909101929092558281526008909152604090208290556007805490613511906000198301613607565b50505060009182525060086020526040812055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061356757805160ff1916838001178555613594565b82800160010185558215613594579182015b82811115613594578251825591602001919060010190613579565b506135a0929150613627565b5090565b50805460018160011615610100020316600290046000825580601f106135ca575061123a565b601f01602090049060005260206000209081019061123a9190613627565b60a0604051908101604052806005906020820280388339509192915050565b81548183558181111561143c5760008381526020902061143c9181019083015b61107891905b808211156135a0576000815560010161362d56fe546f6b656e20646f6573206e6f74206578697374000000000000000000000000a165627a7a72305820df2b904d9518bb86c22062d08b9177252e5d2593285241ed66b3a6264d06bd2a002900000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000047687474703a2f2f6c6f63616c686f73743a353030302f66757462616c6c2d63617264732f75732d63656e7472616c312f6170692f6e6574776f726b2f353737372f746f6b656e2f00000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106102455763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166301750e74811461024a57806301ffc9a71461028857806306fdde03146102d1578063081812fc1461035b578063095ea7b3146103a15780630bde9046146103dc57806310154bad1461040c57806318160ddd1461043f57806321c3e69d146104665780632295ee5b1461049657806323b872dd14610549578063261eb4e51461058c578063291d9549146105b65780632f745c59146105e95780633af32abf146106225780633b3a1a7a146106555780633e10169f1461066a578063427849d61461067f57806342842e0e1461073957806342966c681461077c5780634c5a628c146107a65780634e99b800146107bb5780634f6ccce7146107d05780635468bc2f146107fa5780636352211e146108575780636b19e8c71461088157806370a08231146108b15780637362d9c8146108e45780637c4c890e146109175780638462151c1461096557806386be19ae146109e8578063893bc90414610a1857806392f5fb1b14610acb57806395d89b4114610b015780639b34918e14610b16578063a22cb46514610b6d578063abbcbc4914610ba8578063b88d4fde14610c0a578063b987f99314610cdd578063bb5f747b14610d0d578063bf40527414610d40578063bfcfd9b914610d6a578063c375fb6e14610d94578063c87b56dd14610df6578063d6cd947314610e20578063dc0ab92514610e35578063de8c900014610e65578063e985e9c514610ea7575b600080fd5b34801561025657600080fd5b506102746004803603602081101561026d57600080fd5b5035610ee2565b604080519115158252519081900360200190f35b34801561029457600080fd5b50610274600480360360208110156102ab57600080fd5b50357bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916610fb0565b3480156102dd57600080fd5b506102e6610fe4565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610320578181015183820152602001610308565b50505050905090810190601f16801561034d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561036757600080fd5b506103856004803603602081101561037e57600080fd5b503561107b565b60408051600160a060020a039092168252519081900360200190f35b3480156103ad57600080fd5b506103da600480360360408110156103c457600080fd5b50600160a060020a0381351690602001356110ad565b005b3480156103e857600080fd5b50610274600480360360408110156103ff57600080fd5b5080359060200135611163565b34801561041857600080fd5b506103da6004803603602081101561042f57600080fd5b5035600160a060020a031661121d565b34801561044b57600080fd5b5061045461123d565b60408051918252519081900360200190f35b34801561047257600080fd5b506102746004803603604081101561048957600080fd5b5080359060200135611243565b3480156104a257600080fd5b50610274600480360360208110156104b957600080fd5b8101906020810181356401000000008111156104d457600080fd5b8201836020820111156104e657600080fd5b8035906020019184600183028401116401000000008311171561050857600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506112f9945050505050565b34801561055557600080fd5b506103da6004803603606081101561056c57600080fd5b50600160a060020a0381358116916020810135909116906040013561141c565b34801561059857600080fd5b506102e6600480360360208110156105af57600080fd5b5035611441565b3480156105c257600080fd5b506103da600480360360208110156105d957600080fd5b5035600160a060020a03166114dc565b3480156105f557600080fd5b506104546004803603604081101561060c57600080fd5b50600160a060020a0381351690602001356114f9565b34801561062e57600080fd5b506102746004803603602081101561064557600080fd5b5035600160a060020a0316611546565b34801561066157600080fd5b5061045461155f565b34801561067657600080fd5b506102e6611565565b34801561068b57600080fd5b50610274600480360360408110156106a257600080fd5b813591908101906040810160208201356401000000008111156106c457600080fd5b8201836020820111156106d657600080fd5b803590602001918460018302840111640100000000831117156106f857600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506115c0945050505050565b34801561074557600080fd5b506103da6004803603606081101561075c57600080fd5b50600160a060020a0381358116916020810135909116906040013561177f565b34801561078857600080fd5b506102746004803603602081101561079f57600080fd5b503561179b565b3480156107b257600080fd5b506103da6118bf565b3480156107c757600080fd5b506102e66118ca565b3480156107dc57600080fd5b50610454600480360360208110156107f357600080fd5b5035611925565b34801561080657600080fd5b506108246004803603602081101561081d57600080fd5b503561195a565b604080519687526020870195909552858501939093526060850191909152608084015260a0830152519081900360c00190f35b34801561086357600080fd5b506103856004803603602081101561087a57600080fd5b50356119ea565b34801561088d57600080fd5b50610274600480360360408110156108a457600080fd5b5080359060200135611a0e565b3480156108bd57600080fd5b50610454600480360360208110156108d457600080fd5b5035600160a060020a0316611ac8565b3480156108f057600080fd5b506103da6004803603602081101561090757600080fd5b5035600160a060020a0316611afb565b34801561092357600080fd5b50610274600480360360e081101561093a57600080fd5b5080359060208101359060408101359060608101359060808101359060a08101359060c00135611b18565b34801561097157600080fd5b506109986004803603602081101561098857600080fd5b5035600160a060020a0316611bb8565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156109d45781810151838201526020016109bc565b505050509050019250505060405180910390f35b3480156109f457600080fd5b5061027460048036036040811015610a0b57600080fd5b5080359060200135611c19565b348015610a2457600080fd5b5061027460048036036020811015610a3b57600080fd5b810190602081018135640100000000811115610a5657600080fd5b820183602082011115610a6857600080fd5b80359060200191846001830284011164010000000083111715610a8a57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611cd3945050505050565b348015610ad757600080fd5b5061027460048036036060811015610aee57600080fd5b5080359060208101359060400135611db3565b348015610b0d57600080fd5b506102e6611e85565b348015610b2257600080fd5b50610454600480360360e0811015610b3957600080fd5b5080359060208101359060408101359060608101359060808101359060a08101359060c00135600160a060020a0316611ee6565b348015610b7957600080fd5b506103da60048036036040811015610b9057600080fd5b50600160a060020a0381351690602001351515611f98565b348015610bb457600080fd5b50610bd260048036036020811015610bcb57600080fd5b503561201c565b604051808260a080838360005b83811015610bf7578181015183820152602001610bdf565b5050505090500191505060405180910390f35b348015610c1657600080fd5b506103da60048036036080811015610c2d57600080fd5b600160a060020a03823581169260208101359091169160408201359190810190608081016060820135640100000000811115610c6857600080fd5b820183602082011115610c7a57600080fd5b80359060200191846001830284011164010000000083111715610c9c57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506120c7945050505050565b348015610ce957600080fd5b5061027460048036036040811015610d0057600080fd5b50803590602001356120ef565b348015610d1957600080fd5b5061027460048036036020811015610d3057600080fd5b5035600160a060020a03166121a9565b348015610d4c57600080fd5b5061027460048036036020811015610d6357600080fd5b50356121bc565b348015610d7657600080fd5b5061082460048036036020811015610d8d57600080fd5b50356122aa565b348015610da057600080fd5b50610dbe60048036036020811015610db757600080fd5b503561233a565b604080519788526020880196909652868601949094526060860192909252608085015260a084015260c0830152519081900360e00190f35b348015610e0257600080fd5b506102e660048036036020811015610e1957600080fd5b50356123dd565b348015610e2c57600080fd5b506103da6125f0565b348015610e4157600080fd5b5061027460048036036040811015610e5857600080fd5b50803590602001356125f9565b348015610e7157600080fd5b50610274600480360360a0811015610e8857600080fd5b50803590602081013590604081013590606081013590608001356126c5565b348015610eb357600080fd5b5061027460048036036040811015610eca57600080fd5b50600160a060020a03813581169160200135166127d3565b6000610eed33611546565b1515610ef857600080fd5b610f0182612801565b1515610f45576040805160e560020a62461bcd0281526020600482015260146024820152600080516020613642833981519152604482015290519081900360640190fd5b60008281526014602052604090206004810154610f6990600163ffffffff61281e16565b60048201819055604080519182525184917f15d07b9caa4ef0ff84bff233c4b3be3396d65dc4cdde0cd418a747e5c61c52aa919081900360200190a260019150505b919050565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191660009081526020819052604090205460ff1690565b60098054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156110705780601f1061104557610100808354040283529160200191611070565b820191906000526020600020905b81548152906001019060200180831161105357829003601f168201915b505050505090505b90565b600061108682612801565b151561109157600080fd5b50600090815260026020526040902054600160a060020a031690565b60006110b8826119ea565b9050600160a060020a0383811690821614156110d357600080fd5b33600160a060020a03821614806110ef57506110ef81336127d3565b15156110fa57600080fd5b600082815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061116e33611546565b151561117957600080fd5b61118283612801565b15156111c6576040805160e560020a62461bcd0281526020600482015260146024820152600080516020613642833981519152604482015290519081900360640190fd5b6000838152601260209081526040918290206004810185905582518581529251909286927f2a32126946c3137a9afa70442339e37a0a82ed9e4d2281a447b8ecb40c9e501992918290030190a25060019392505050565b611226336121a9565b151561123157600080fd5b61123a81612837565b50565b60075490565b600061124e33611546565b151561125957600080fd5b61126283612801565b15156112a6576040805160e560020a62461bcd0281526020600482015260146024820152600080516020613642833981519152604482015290519081900360640190fd5b60008381526014602090815260409182902084815582518581529251909286927f850866ad49a69c1541ccee0e2f2f02ef30ab1335cf98c5b062aa7d1c12191e3492918290030190a25060019392505050565b600061130433611546565b151561130f57600080fd5b81511515611367576040805160e560020a62461bcd02815260206004820152601060248201527f426173652055524920696e76616c696400000000000000000000000000000000604482015290519081900360640190fd5b815161137a90600d906020850190613526565b507feb44d3cd28695bf80f91b729a9b18c4658ae3f971329ebfaf805f1006ed9308a826040518080602001828103825283818151815260200191508051906020019080838360005b838110156113da5781810151838201526020016113c2565b50505050905090810190601f1680156114075780820380516001836020036101000a031916815260200191505b509250505060405180910390a1506001919050565b611426338261287f565b151561143157600080fd5b61143c8383836128de565b505050565b60106020908152600091825260409182902080548351601f6002600019610100600186161502019093169290920491820184900484028101840190945280845290918301828280156114d45780601f106114a9576101008083540402835291602001916114d4565b820191906000526020600020905b8154815290600101906020018083116114b757829003601f168201915b505050505081565b6114e5336121a9565b15156114f057600080fd5b61123a816128fd565b600061150483611ac8565b821061150f57600080fd5b600160a060020a038316600090815260056020526040902080548390811061153357fe5b9060005260206000200154905092915050565b6000611559600c8363ffffffff61294516565b92915050565b600f5481565b600e805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156114d45780601f106114a9576101008083540402835291602001916114d4565b6000826115cc33611546565b806115e75750336115dc826119ea565b600160a060020a0316145b1515611663576040805160e560020a62461bcd02815260206004820152603960248201527f556e61626c6520746f2073657420746f6b656e20696d6167652055524920756e60448201527f6c657373206f776e6572206f662077686974656c697374656400000000000000606482015290519081900360840190fd5b825115156116bb576040805160e560020a62461bcd02815260206004820152601560248201527f4261736520495046532055524920696e76616c69640000000000000000000000604482015290519081900360640190fd5b600084815260106020908152604090912084516116da92860190613526565b50837fcc21c9e97f4c1b48853cc4c5675c52597c939ba6762fbf5d1bb439b147a4552e846040518080602001828103825283818151815260200191508051906020019080838360005b8381101561173b578181015183820152602001611723565b50505050905090810190601f1680156117685780820380516001836020036101000a031916815260200191505b509250505060405180910390a25060019392505050565b61143c83838360206040519081016040528060008152506120c7565b60006117a633611546565b15156117b157600080fd5b6117ba82612801565b15156117fe576040805160e560020a62461bcd0281526020600482015260146024820152600080516020613642833981519152604482015290519081900360640190fd5b6000828152601060205260408120611815916135a4565b6000828152601160209081526040808320838155600180820185905560028083018690556003808401879055600480850188905560059485018890556012875285882088815580850189905580840189905580830189905581018890556013875285882088815584018890556014909652938620868155918201869055810185905591820184905591810183905501556118b76118b1836119ea565b8361297c565b506001919050565b6118c83361298a565b565b600d805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156114d45780601f106114a9576101008083540402835291602001916114d4565b600061192f61123d565b821061193a57600080fd5b600780548390811061194857fe5b90600052602060002001549050919050565b60008060008060008061196c87612801565b15156119b0576040805160e560020a62461bcd0281526020600482015260146024820152600080516020613642833981519152604482015290519081900360640190fd5b5050506000938452505060146020525060409020805460018201546002830154600384015460048501546005909501549395929491939092565b600081815260016020526040812054600160a060020a031680151561155957600080fd5b6000611a1933611546565b1515611a2457600080fd5b611a2d83612801565b1515611a71576040805160e560020a62461bcd0281526020600482015260146024820152600080516020613642833981519152604482015290519081900360640190fd5b6000838152601460209081526040918290206002810185905582518581529251909286927f9b99fe1e164b2f59c23e957801d298251d28b6c108a9e5348c4128956db0483b92918290030190a25060019392505050565b6000600160a060020a0382161515611adf57600080fd5b50600160a060020a031660009081526003602052604090205490565b611b04336121a9565b1515611b0f57600080fd5b61123a816129d2565b6000611b2333611546565b1515611b2e57600080fd5b506040805160a0810182529687526020808801968752878201958652606088019485526000608089018181528a82526012835283822099518a5597516001808b0191909155965160028a0155945160038901559551600490970196909655855180870187529182528185019081529582526013909352929092209051815591519181019190915590565b6060611bc382612a1a565b805480602002602001604051908101604052809291908181526020018280548015611c0d57602002820191906000526020600020905b815481526020019060010190808311611bf9575b50505050509050919050565b6000611c2433611546565b1515611c2f57600080fd5b611c3883612801565b1515611c7c576040805160e560020a62461bcd0281526020600482015260146024820152600080516020613642833981519152604482015290519081900360640190fd5b6000838152601460209081526040918290206001810185905582518581529251909286927fb090761efd169ad07cc9478dce823ced9f143c64870c1a212a59bf59f269f06a92918290030190a25060019392505050565b6000611cde33611546565b1515611ce957600080fd5b81511515611d41576040805160e560020a62461bcd02815260206004820152601560248201527f4261736520495046532055524920696e76616c69640000000000000000000000604482015290519081900360640190fd5b8151611d5490600e906020850190613526565b507f93bc8252380c645fd4b845fab020073aba271b77652e908c3450d2346be94ee982604051808060200182810382528381815181526020019150805190602001908083836000838110156113da5781810151838201526020016113c2565b6000611dbe33611546565b1515611dc957600080fd5b611dd284612801565b1515611e16576040805160e560020a62461bcd0281526020600482015260146024820152600080516020613642833981519152604482015290519081900360640190fd5b604080518082018252848152602080820185815260008881526013835284902092518355516001909201919091558151858152908101849052815186927fb510a739be5ccf96111ba362fb80ca648c934dd748733b2563c4f0fee7eeabd3928290030190a25060019392505050565b600a8054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156110705780601f1061104557610100808354040283529160200191611070565b6000611ef133611546565b1515611efc57600080fd5b600f54611f1090600163ffffffff61281e16565b600f8181556040805160c0810182528b815260208082018c81528284018c8152606084018c8152608085018c815260a086018c81526000998a5260119095529590972093518455905160018401555160028301559351600382015590516004820155915160059092019190915554611f89908390612a34565b50600f54979650505050505050565b600160a060020a038216331415611fae57600080fd5b336000818152600460209081526040808320600160a060020a03871680855290835292819020805460ff1916861515908117909155815190815290519293927f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31929181900390910190a35050565b6120246135e8565b61202d82612801565b1515612071576040805160e560020a62461bcd0281526020600482015260146024820152600080516020613642833981519152604482015290519081900360640190fd5b60008281526012602052604090206120876135e8565b506040805160a081018252825481526001830154602082015260028301549181019190915260038201546060820152600490910154608082015292915050565b6120d284848461141c565b6120de84848484612a51565b15156120e957600080fd5b50505050565b60006120fa33611546565b151561210557600080fd5b61210e83612801565b1515612152576040805160e560020a62461bcd0281526020600482015260146024820152600080516020613642833981519152604482015290519081900360640190fd5b6000838152601460209081526040918290206003810185905582518581529251909286927fa964212e3161d61e75a66f706534700581768662c0c97c384cae5ae8bd78596d92918290030190a25060019392505050565b6000611559600b8363ffffffff61294516565b6000816121c833611546565b806121e35750336121d8826119ea565b600160a060020a0316145b151561225f576040805160e560020a62461bcd02815260206004820152603960248201527f556e61626c6520746f2073657420746f6b656e20696d6167652055524920756e60448201527f6c657373206f776e6572206f662077686974656c697374656400000000000000606482015290519081900360840190fd5b6000838152601060205260408120612276916135a4565b60405183907feefcdf933acebe3408b59e310709eeb11c01f4b3f75b0934f506d2d58ca2754e90600090a250600192915050565b6000806000806000806122bc87612801565b1515612300576040805160e560020a62461bcd0281526020600482015260146024820152600080516020613642833981519152604482015290519081900360640190fd5b5050506000938452505060116020525060409020805460018201546002830154600384015460048501546005909501549395929491939092565b600080600080600080600061234e88612801565b1515612392576040805160e560020a62461bcd0281526020600482015260146024820152600080516020613642833981519152604482015290519081900360640190fd5b50505060009485525050601260209081526040808520601390925290932083546001808601546002870154600388015460049098015485549390950154939891979096509450909190565b60606123e882612801565b15156123f357600080fd5b60008281526010602052604081205460026000196101006001841615020190911604111561255057600e8054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815261254993909290918301828280156124a85780601f1061247d576101008083540402835291602001916124a8565b820191906000526020600020905b81548152906001019060200180831161248b57829003601f168201915b5050506000868152601060209081526040918290208054835160026001831615610100026000190190921691909104601f81018490048402820184019094528381529450925083018282801561253f5780601f106125145761010080835404028352916020019161253f565b820191906000526020600020905b81548152906001019060200180831161252257829003601f168201915b5050505050612bcd565b9050610fab565b600d8054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815261155993909290918301828280156125dd5780601f106125b2576101008083540402835291602001916125dd565b820191906000526020600020905b8154815290600101906020018083116125c057829003601f168201915b50505050506125eb84612c02565b612bcd565b6118c8336128fd565b600061260433611546565b151561260f57600080fd5b61261883612801565b151561265c576040805160e560020a62461bcd0281526020600482015260146024820152600080516020613642833981519152604482015290519081900360640190fd5b6000838152601460205260409020600581015461267f908463ffffffff61281e16565b60058201819055604080519182525185917fe2e0abad15d85a43318b503a336369b2309f9c5dc640310c7079f2ae23122bca919081900360200190a25060019392505050565b60006126d033611546565b15156126db57600080fd5b6126e486612801565b1515612728576040805160e560020a62461bcd0281526020600482015260146024820152600080516020613642833981519152604482015290519081900360640190fd5b6040805160a08101825286815260208082018781528284018781526060808501888152600060808088018281528f8352601288529189902097518855945160018801559251600287015551600386015590516004909401939093558351898152918201889052818401879052918101859052915188927fc08b1d6f32112246977fbaea4f6dbf652f40927e2c50ba996ff86a3058e1318f92908290030190a250600195945050505050565b600160a060020a03918216600090815260046020908152604080832093909416825291909152205460ff1690565b600090815260016020526040902054600160a060020a0316151590565b60008282018381101561283057600080fd5b9392505050565b612848600c8263ffffffff612ce616565b604051600160a060020a038216907fee1504a83b6d4a361f4c1dc78ab59bfa30d6a3b6612c403e86bb01ef2984295f90600090a250565b60008061288b836119ea565b905080600160a060020a031684600160a060020a031614806128c6575083600160a060020a03166128bb8461107b565b600160a060020a0316145b806128d657506128d681856127d3565b949350505050565b6128e9838383612d34565b6128f38382612e50565b61143c8282612f47565b61290e600c8263ffffffff612f8516565b604051600160a060020a038216907f270d9b30cf5b0793bbfd54c9d5b94aeb49462b8148399000265144a8722da6b690600090a250565b6000600160a060020a038216151561295c57600080fd5b50600160a060020a03166000908152602091909152604090205460ff1690565b6129868282612fd1565b5050565b61299b600b8263ffffffff612f8516565b604051600160a060020a038216907f0a8eb35e5ca14b3d6f28e4abf2f128dbab231a58b56e89beb5d636115001e16590600090a250565b6129e3600b8263ffffffff612ce616565b604051600160a060020a038216907f22380c05984257a1cb900161c713dd71d39e74820f1aea43bd3f1bdd2096129990600090a250565b600160a060020a0316600090815260056020526040902090565b612a3e8282612ffd565b612a488282612f47565b612986816130be565b6000612a6584600160a060020a0316613102565b1515612a73575060016128d6565b6040517f150b7a020000000000000000000000000000000000000000000000000000000081523360048201818152600160a060020a03888116602485015260448401879052608060648501908152865160848601528651600095928a169463150b7a029490938c938b938b939260a4019060208501908083838e5b83811015612b06578181015183820152602001612aee565b50505050905090810190601f168015612b335780820380516001836020036101000a031916815260200191505b5095505050505050602060405180830381600087803b158015612b5557600080fd5b505af1158015612b69573d6000803e3d6000fd5b505050506040513d6020811015612b7f57600080fd5b50517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167f150b7a020000000000000000000000000000000000000000000000000000000014915050949350505050565b60408051602081810183526000808352835180830185528181528451928301909452815260609261283092869286929061310a565b6060811515612c45575060408051808201909152600181527f30000000000000000000000000000000000000000000000000000000000000006020820152610fab565b8160005b8115612c5d57600101600a82049150612c49565b6060816040519080825280601f01601f191660200182016040528015612c8a576020820181803883390190505b50905060001982015b8515612cdd57815160001982019160f860020a6030600a8a060102918491908110612cba57fe5b906020010190600160f860020a031916908160001a905350600a86049550612c93565b50949350505050565b600160a060020a0381161515612cfb57600080fd5b612d058282612945565b15612d0f57600080fd5b600160a060020a0316600090815260209190915260409020805460ff19166001179055565b82600160a060020a0316612d47826119ea565b600160a060020a031614612d5a57600080fd5b600160a060020a0382161515612d6f57600080fd5b612d788161335f565b600160a060020a038316600090815260036020526040902054612da290600163ffffffff6133a716565b600160a060020a038085166000908152600360205260408082209390935590841681522054612dd890600163ffffffff61281e16565b600160a060020a0380841660008181526003602090815260408083209590955585825260019052838120805473ffffffffffffffffffffffffffffffffffffffff1916831790559251849391928716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600160a060020a038216600090815260056020526040812054612e7a90600163ffffffff6133a716565b600083815260066020526040902054909150808214612f1757600160a060020a0384166000908152600560205260408120805484908110612eb757fe5b90600052602060002001549050806005600087600160a060020a0316600160a060020a0316815260200190815260200160002083815481101515612ef757fe5b600091825260208083209091019290925591825260069052604090208190555b600160a060020a0384166000908152600560205260409020805490612f40906000198301613607565b5050505050565b600160a060020a0390911660009081526005602081815260408084208054868652600684529185208290559282526001810183559183529091200155565b600160a060020a0381161515612f9a57600080fd5b612fa48282612945565b1515612faf57600080fd5b600160a060020a0316600090815260209190915260409020805460ff19169055565b612fdb82826133bc565b612fe58282612e50565b60008181526006602052604081205561298681613488565b600160a060020a038216151561301257600080fd5b61301b81612801565b1561302557600080fd5b6000818152600160208181526040808420805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03881690811790915584526003909152909120546130739161281e565b600160a060020a0383166000818152600360205260408082209390935591518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600780546000838152600860205260408120829055600182018355919091527fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6880155565b6000903b1190565b6060808690506060869050606086905060608690506060869050606081518351855187518951010101016040519080825280601f01601f19166020018201604052801561315e576020820181803883390190505b509050806000805b88518110156131c457888181518110151561317d57fe5b90602001015160f860020a900460f860020a0283838060010194508151811015156131a457fe5b906020010190600160f860020a031916908160001a905350600101613166565b5060005b87518110156132265787818151811015156131df57fe5b90602001015160f860020a900460f860020a02838380600101945081518110151561320657fe5b906020010190600160f860020a031916908160001a9053506001016131c8565b5060005b865181101561328857868181518110151561324157fe5b90602001015160f860020a900460f860020a02838380600101945081518110151561326857fe5b906020010190600160f860020a031916908160001a90535060010161322a565b5060005b85518110156132ea5785818151811015156132a357fe5b90602001015160f860020a900460f860020a0283838060010194508151811015156132ca57fe5b906020010190600160f860020a031916908160001a90535060010161328c565b5060005b845181101561334c57848181518110151561330557fe5b90602001015160f860020a900460f860020a02838380600101945081518110151561332c57fe5b906020010190600160f860020a031916908160001a9053506001016132ee565b50909d9c50505050505050505050505050565b600081815260026020526040902054600160a060020a03161561123a576000908152600260205260409020805473ffffffffffffffffffffffffffffffffffffffff19169055565b6000828211156133b657600080fd5b50900390565b81600160a060020a03166133cf826119ea565b600160a060020a0316146133e257600080fd5b6133eb8161335f565b600160a060020a03821660009081526003602052604090205461341590600163ffffffff6133a716565b600160a060020a03831660008181526003602090815260408083209490945584825260019052828120805473ffffffffffffffffffffffffffffffffffffffff191690559151839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60075460009061349f90600163ffffffff6133a716565b600083815260086020526040812054600780549394509092849081106134c157fe5b90600052602060002001549050806007838154811015156134de57fe5b60009182526020808320909101929092558281526008909152604090208290556007805490613511906000198301613607565b50505060009182525060086020526040812055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061356757805160ff1916838001178555613594565b82800160010185558215613594579182015b82811115613594578251825591602001919060010190613579565b506135a0929150613627565b5090565b50805460018160011615610100020316600290046000825580601f106135ca575061123a565b601f01602090049060005260206000209081019061123a9190613627565b60a0604051908101604052806005906020820280388339509192915050565b81548183558181111561143c5760008381526020902061143c9181019083015b61107891905b808211156135a0576000815560010161362d56fe546f6b656e20646f6573206e6f74206578697374000000000000000000000000a165627a7a72305820df2b904d9518bb86c22062d08b9177252e5d2593285241ed66b3a6264d06bd2a0029

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

00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000047687474703a2f2f6c6f63616c686f73743a353030302f66757462616c6c2d63617264732f75732d63656e7472616c312f6170692f6e6574776f726b2f353737372f746f6b656e2f00000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _tokenBaseURI (string): http://localhost:5000/futball-cards/us-central1/api/network/5777/token/

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000047
Arg [2] : 687474703a2f2f6c6f63616c686f73743a353030302f66757462616c6c2d6361
Arg [3] : 7264732f75732d63656e7472616c312f6170692f6e6574776f726b2f35373737
Arg [4] : 2f746f6b656e2f00000000000000000000000000000000000000000000000000


Swarm Source

bzzr://df2b904d9518bb86c22062d08b9177252e5d2593285241ed66b3a6264d06bd2a
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.