ETH Price: $3,112.57 (-1.80%)

Token

Gods Unchained Cards (CARD)
 

Overview

Max Total Supply

751 CARD

Holders

46

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
26 CARD
0x68eA913A3cAAd9F917Ba458897284364D33456E3
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Cards

Compiler Version
v0.5.11+commit.c082d0b4

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2019-10-27
*/

pragma solidity 0.5.11;

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () internal {
        _owner = msg.sender;
        emit OwnershipTransferred(address(0), _owner);
    }

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

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

    /**
     * @dev Returns true if the caller is the current owner.
     */
    function isOwner() public view returns (bool) {
        return msg.sender == _owner;
    }

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public onlyOwner {
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     */
    function _transferOwnership(address newOwner) internal {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}


/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

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

        return c;
    }

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

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

        return c;
    }

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

        return c;
    }

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


// solium-disable security/no-inline-assembly


library StorageWrite {

    using SafeMath for uint256;

    function _getStorageArraySlot(uint _dest, uint _index) internal view returns (uint result) {
        uint slot = _getArraySlot(_dest, _index);
        assembly { result := sload(slot) }
    }

    function _getArraySlot(uint _dest, uint _index) internal pure returns (uint slot) {
        assembly {
            let free := mload(0x40)
            mstore(free, _dest)
            slot := add(keccak256(free, 32), _index)
        }
    }

    function _setArraySlot(uint _dest, uint _index, uint _value) internal {
        uint slot = _getArraySlot(_dest, _index);
        assembly { sstore(slot, _value) }
    }

    function _loadSlots(uint _slot, uint _offset, uint _perSlot, uint _length) internal view returns (uint[] memory slots) {
        uint slotCount = _slotCount(_offset, _perSlot, _length);
        slots = new uint[](slotCount);
        // top and tail the slots
        uint firstPos = _pos(_offset, _perSlot); // _offset.div(_perSlot);
        slots[0] = _getStorageArraySlot(_slot, firstPos);
        if (slotCount > 1) {
            uint lastPos = _pos(_offset.add(_length), _perSlot); // .div(_perSlot);
            slots[slotCount-1] = _getStorageArraySlot(_slot, lastPos);
        }
    }

    function _pos(uint items, uint perPage) internal pure returns (uint) {
        return items / perPage;
    }

    function _slotCount(uint _offset, uint _perSlot, uint _length) internal pure returns (uint) {
        uint start = _offset / _perSlot;
        uint end = (_offset + _length) / _perSlot;
        return (end - start) + 1;
    }

    function _saveSlots(uint _slot, uint _offset, uint _size, uint[] memory _slots) internal {
        uint offset = _offset.div((256/_size));
        for (uint i = 0; i < _slots.length; i++) {
            _setArraySlot(_slot, offset + i, _slots[i]);
        }
    }

    function _write(uint[] memory _slots, uint _offset, uint _size, uint _index, uint _value) internal pure {
        uint perSlot = 256 / _size;
        uint initialOffset = _offset % perSlot;
        uint slotPosition = (initialOffset + _index) / perSlot;
        uint withinSlot = ((_index + _offset) % perSlot) * _size;
        // evil bit shifting magic
        for (uint q = 0; q < _size; q += 8) {
            _slots[slotPosition] |= ((_value >> q) & 0xFF) << (withinSlot + q);
        }
    }

    function repeatUint16(uint _slot, uint _offset, uint _length, uint16 _item) internal {
        uint[] memory slots = _loadSlots(_slot, _offset, 16, _length);
        for (uint i = 0; i < _length; i++) {
            _write(slots, _offset, 16, i, _item);
        }
        _saveSlots(_slot, _offset, 16, slots);
    }

    function uint16s(uint _slot, uint _offset, uint16[] memory _items) internal {
        uint[] memory slots = _loadSlots(_slot, _offset, 16, _items.length);
        for (uint i = 0; i < _items.length; i++) {
            _write(slots, _offset, 16, i, _items[i]);
        }
        _saveSlots(_slot, _offset, 16, slots);
    }

    function uint8s(uint _slot, uint _offset, uint8[] memory _items) internal {
        uint[] memory slots = _loadSlots(_slot, _offset, 32, _items.length);
        for (uint i = 0; i < _items.length; i++) {
            _write(slots, _offset, 8, i, _items[i]);
        }
        _saveSlots(_slot, _offset, 8, slots);
    }

}

library String {

    /**
     * @dev Converts a `uint256` to a `string`.
     * via OraclizeAPI - MIT licence
     * https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol
     */
    function fromUint(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        uint256 index = digits - 1;
        temp = value;
        while (temp != 0) {
            buffer[index--] = byte(uint8(48 + temp % 10));
            temp /= 10;
        }
        return string(buffer);
    }

    bytes constant alphabet = "0123456789abcdef";

    function fromAddress(address _addr) internal pure returns(string memory) {
        bytes32 value = bytes32(uint256(_addr));
        bytes memory str = new bytes(42);
        str[0] = '0';
        str[1] = 'x';
        for (uint i = 0; i < 20; i++) {
            str[2+i*2] = alphabet[uint(uint8(value[i + 12] >> 4))];
            str[3+i*2] = alphabet[uint(uint8(value[i + 12] & 0x0F))];
        }
        return string(str);
    }

}

/**
 * @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 `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`
     */
    function onERC721Received(address operator, address from, uint256 tokenId, bytes memory data)
    public returns (bytes4);
}


/**
 * @dev Collection of functions related to the address type,
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * This test is non-exhaustive, and there may be false-negatives: during the
     * execution of a contract's constructor, its address will be reported as
     * not containing a contract.
     *
     * > It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies in extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

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


/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented or decremented by one. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 * Since it is not possible to overflow a 256 bit integer with increments of one, `increment` can skip the SafeMath
 * overflow check, thereby saving gas. This does assume however correct usage, in that the underlying `_value` is never
 * directly accessed.
 */
library Counters {
    using SafeMath for uint256;

    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        counter._value += 1;
    }

    function decrement(Counter storage counter) internal {
        counter._value = counter._value.sub(1);
    }
}


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


contract ImmutableToken {

    string public constant baseURI = "https://api.immutable.com/token/";

    function tokenURI(uint256 tokenId) external view returns (string memory) {
        return string(abi.encodePacked(
            baseURI,
            String.fromAddress(address(this)),
            "/",
            String.fromUint(tokenId)
        ));
    }

}

contract InscribableToken is Ownable {

    mapping(bytes32 => bytes32) public properties;

    event PS();
    event TokenPropertySet(uint indexed id, bytes32 indexed key, bytes32 value);

    function _setProperty(uint _id, bytes32 _key, bytes32 _value) internal {
        properties[getTokenKey(_id, _key)] = _value;
        emit TokenPropertySet(_id, _key, _value);
    }

    function getProperty(uint _id, bytes32 _key) public view returns (bytes32 _value) {
        return properties[getTokenKey(_id, _key)];
    }

    function _setClassProperty(bytes32 _key, bytes32 _value) internal {
        // emit TokenPropertySet(0, _key, _value);
        properties[getClassKey(_key)] = _value;
    }

    function getTokenKey(uint _tokenId, bytes32 _key) public pure returns (bytes32) {
        // one prefix to prevent collisions
        return keccak256(abi.encodePacked(uint(1), _tokenId, _key));
    }

    function getClassKey(bytes32 _key) public pure returns (bytes32) {
        // zero prefix to prevent collisions
        return keccak256(abi.encodePacked(uint(0), _key));
    }

    function getClassProperty(bytes32 _key) public view returns (bytes32) {
        return properties[getClassKey(_key)];
    }

}



/**
 * @dev Required interface of an ERC721 compliant contract.
 */
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);

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

    /**
     * @dev Returns the owner of the NFT specified by `tokenId`.
     */
    function ownerOf(uint256 tokenId) public view returns (address owner);

    /**
     * @dev Transfers a specific NFT (`tokenId`) from one account (`from`) to
     * another (`to`).
     *
     * 
     *
     * Requirements:
     * - `from`, `to` cannot be zero.
     * - `tokenId` must be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this
     * NFT by either `approve` or `setApproveForAll`.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId) public;
    /**
     * @dev Transfers a specific NFT (`tokenId`) from one account (`from`) to
     * another (`to`).
     *
     * Requirements:
     * - If the caller is not `from`, it must be approved to move this NFT by
     * either `approve` or `setApproveForAll`.
     */
    function transferFrom(address from, address to, uint256 tokenId) public;
    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 safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public;
}


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

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

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

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

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


/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
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);
}


contract ICards is IERC721 {

    function getDetails(uint tokenId) public view returns (uint16 proto, uint8 quality);
    function setQuality(uint tokenId, uint8 quality) public;
    function burn(uint tokenId) public;
    function batchMintCards(address to, uint16[] memory _protos, uint8[] memory _qualities) public returns (uint);
    function mintCards(address to, uint16[] memory _protos, uint8[] memory _qualities) public returns (uint);
    function mintCard(address to, uint16 _proto, uint8 _quality) public returns (uint);
    function batchSize() public view returns (uint);
}






/**
 * @title ERC721 Non-Fungible Token Standard basic implementation
 * @dev see https://eips.ethereum.org/EIPS/eip-721
 */
contract ERC721 is ERC165, IERC721 {
    using SafeMath for uint256;
    using Address for address;
    using Counters for Counters.Counter;

    // 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 => Counters.Counter) private _ownedTokensCount;

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

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

    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), "ERC721: balance query for the zero address");

        return _ownedTokensCount[owner].current();
    }

    /**
     * @dev Gets the owner of the specified token ID.
     * @param tokenId uint256 ID of the token to query the owner of
     * @return 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), "ERC721: owner query for nonexistent token");

        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, "ERC721: approval to current owner");

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

        _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), "ERC721: approved query for nonexistent token");

        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, "ERC721: approve to caller");

        _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 {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(msg.sender, tokenId), "ERC721: transfer caller is not owner nor approved");

        _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), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether the specified token exists.
     * @param tokenId uint256 ID of the token to query the existence of
     * @return bool 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) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        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), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _tokenOwner[tokenId] = to;
        _ownedTokensCount[to].increment();

        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, "ERC721: burn of token that is not own");

        _clearApproval(tokenId);

        _ownedTokensCount[owner].decrement();
        _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, "ERC721: transfer of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");

        _clearApproval(tokenId);

        _ownedTokensCount[from].decrement();
        _ownedTokensCount[to].increment();

        _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.
     *
     * This function is deprecated.
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory _data)
        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);
        }
    }
}




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(keccak256('name()')) == 0x06fdde03
     *     bytes4(keccak256('symbol()')) == 0x95d89b41
     *     bytes4(keccak256('tokenURI(uint256)')) == 0xc87b56dd
     *
     *     => 0x06fdde03 ^ 0x95d89b41 ^ 0xc87b56dd == 0x5b5e139f
     */
    bytes4 private constant _INTERFACE_ID_ERC721_METADATA = 0x5b5e139f;

    /**
     * @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), "ERC721Metadata: URI query for nonexistent token");
        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), "ERC721Metadata: URI set of nonexistent token");
        _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];
        }
    }
}


contract MultiTransfer is ERC721 {

   function transferBatch(address from, address to, uint256 start, uint256 end) public {
       for (uint i = start; i < end; i++) {
           transferFrom(from, to, i);
       }
   }

   function transferAllFrom(address from, address to, uint256[] memory tokenIDs) public {
       for (uint i = 0; i < tokenIDs.length; i++) {
           transferFrom(from, to, tokenIDs[i]);
       }
   }

   function safeTransferBatch(address from, address to, uint256 start, uint256 end) public {
       for (uint i = start; i < end; i++) {
           safeTransferFrom(from, to, i);
       }
   }

   function safeTransferAllFrom(address from, address to, uint256[] memory tokenIDs) public {
       for (uint i = 0; i < tokenIDs.length; i++) {
           safeTransferFrom(from, to, tokenIDs[i]);
       }
   }

}


contract BatchToken is ERC721Metadata {

    using SafeMath for uint256;

    struct Batch {
        uint48 userID;
        uint16 size;
    }

    mapping(uint48 => address) public userIDToAddress;
    mapping(address => uint48) public addressToUserID;

    uint public batchSize;
    uint public nextBatch;
    uint public tokenCount;

    uint48[] internal ownerIDs;
    uint48[] internal approvedIDs;

    Batch[] public batches;

    uint48 userCount = 1;
    uint public firstFree = 0;

    mapping (address => uint) internal _ownedTokensCount;

    uint256 internal constant MAX_LENGTH = uint(2**256 - 1);

    constructor(uint _batchSize, string memory name, string memory symbol) public ERC721Metadata(name, symbol) {
        batchSize = _batchSize;
        batches.length = MAX_LENGTH;
        ownerIDs.length = MAX_LENGTH;
        userIDToAddress[0] = address(0);
        addressToUserID[address(0)] = 0;
        approvedIDs.length = MAX_LENGTH;
    }

    function _sequentialMint(address to, uint16 size) internal returns (uint) {
        uint id = firstFree;
        uint end = id + size;
        uint48 uID = getUserID(to);
        for (uint i = id; i < end; i++) {
            emit Transfer(address(0), to, i);
            ownerIDs[i] = uID;
        }
        firstFree += size;
        _ownedTokensCount[to] += size;
        tokenCount += size;
        return id;
    }

    function getUserID(address to) internal returns (uint48) {
        uint48 uID = addressToUserID[to];
        if (uID == 0) {
            require(userCount + 1 > userCount, "must not overflow");
            uID = userCount++;
            userIDToAddress[uID] = to;
            addressToUserID[to] = uID;
        }
        return uID;
    }

    function getNextBatch() internal returns (uint) {
        if (firstFree > nextBatch) {
            nextBatch = _pageCount(firstFree, batchSize).mul(batchSize);
        }
        return nextBatch;
    }

    function _pageCount(uint items, uint perPage) internal pure returns (uint){
        return ((items - 1) / perPage) + 1;
    }

    function _batchMint(address to, uint16 size) internal returns (uint) {
        require(to != address(0), "must not be null");
        require(size > 0 && size <= batchSize, "size must be within limits");
        uint start = getNextBatch();
        uint48 uID = getUserID(to);
        batches[start] = Batch({
            userID: uID,
            size: size
        });
        uint end = start + size;
        for (uint i = start; i < end; i++) {
            emit Transfer(address(0), to, i);
        }
        nextBatch += batchSize;
        _ownedTokensCount[to] += size;
        tokenCount += size;
        return start;
    }

    function getBatchStart(uint tokenId) public view returns (uint) {
        return tokenId.div(batchSize).mul(batchSize);
    }

    function getBatch(uint index) public view returns (uint48 userID, uint16 size) {
        return (batches[index].userID, batches[index].size);
    }

    // Overridden ERC721 functions
    // @OZ: please stop making variables/functions private

    function ownerOf(uint256 tokenId) public view returns (address) {
        uint48 uID = ownerIDs[tokenId];
        if (uID == 0) {
            uint start = getBatchStart(tokenId);
            Batch memory b = batches[start];
            require(start + b.size > tokenId, "token does not exist");
            uID = b.userID;
        }
        return userIDToAddress[uID];
    }

    function transferFrom(address from, address to, uint256 tokenId) public {
        require(ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");
        require(_isApprovedOrOwner(msg.sender, tokenId), "ERC721: caller is not owner nor approved");
        if (approvedIDs[tokenId] != 0) {
            approvedIDs[tokenId] = 0;
        }
        _ownedTokensCount[from]--;
        _ownedTokensCount[to]++;
        ownerIDs[tokenId] = getUserID(to);
        emit Transfer(from, to, tokenId);
    }

    function burn(uint256 tokenId) public {
        require(_isApprovedOrOwner(msg.sender, tokenId), "caller is not owner nor approved");
        if (approvedIDs[tokenId] != 0) {
            approvedIDs[tokenId] = 0;
        }
        address owner = ownerOf(tokenId);
        _ownedTokensCount[owner]--;
        ownerIDs[tokenId] = 0;
        tokenCount--;
        emit Transfer(owner, address(0), tokenId);
    }

    function approve(address to, uint256 tokenId) public {
        address owner = ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

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

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

    function _exists(uint256 tokenId) internal view returns (bool) {
        return ownerOf(tokenId) != address(0);
    }

    function getApproved(uint256 tokenId) public view returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");
        return userIDToAddress[approvedIDs[tokenId]];
    }

    function totalSupply() public view returns (uint) {
        return tokenCount;
    }

    function balanceOf(address _owner) public view returns (uint256) {
        return _ownedTokensCount[_owner];
    }

}
pragma experimental ABIEncoderV2;

// solium-disable security/no-inline-assembly









contract Cards is Ownable, MultiTransfer, BatchToken, ImmutableToken, InscribableToken {

    uint16[] public cardProtos;
    uint8[] public cardQualities;

    struct Season {
        uint16 high;
        uint16 low;
    }

    struct Proto {
        bool locked;
        bool exists;
        uint8 god;
        uint8 cardType;
        uint8 rarity;
        uint8 mana;
        uint8 attack;
        uint8 health;
        uint8 tribe;
    }

    event ProtoSet(uint16 indexed id, Proto proto);
    event SeasonStarted(uint16 indexed id, string name, uint16 indexed low, uint16 indexed high);
    event QualityChanged(uint indexed tokenId, uint8 quality, address factory);

    uint16[] public protoToSeason;
    address public propertyManager;
    Proto[] public protos;
    Season[] public seasons;
    mapping(uint => bool) public seasonTradable;
    mapping(address => mapping(uint => bool)) public factoryApproved;
    mapping(uint16 => bool) public mythicCreated;
    uint16 public constant mythicThreshold = 65000;

    constructor(uint _batchSize, string memory _name, string memory _symbol) public BatchToken(_batchSize, _name, _symbol) {
        cardProtos.length = MAX_LENGTH;
        cardQualities.length = MAX_LENGTH;
        protoToSeason.length = MAX_LENGTH;
        protos.length = MAX_LENGTH;
        propertyManager = msg.sender;
    }

    function getDetails(uint tokenId) public view returns (uint16 proto, uint8 quality) {
        return (cardProtos[tokenId], cardQualities[tokenId]);
    }

    function mintCard(address to, uint16 _proto, uint8 _quality) public returns (uint) {
        uint start = _sequentialMint(to, 1);
        _validateProto(_proto);
        cardProtos[start] = _proto;
        cardQualities[start] = _quality;
    }

    function mintCards(address to, uint16[] memory _protos, uint8[] memory _qualities) public returns (uint) {
        require(_protos.length > 0, "must be some protos");
        require(_protos.length == _qualities.length, "must be the same number of protos/qualities");
        uint start = _sequentialMint(to, uint16(_protos.length));
        _validateAndSaveDetails(start, _protos, _qualities);
    }

    function addFactory(address _factory, uint _season) public onlyOwner {
        require(!factoryApproved[_factory][_season], "this factory is already approved");
        require(!seasonTradable[_season], "season must not be tradable");
        factoryApproved[_factory][_season] = true;
    }

    function unlockTrading(uint _season) public onlyOwner {
        require(!seasonTradable[_season], "season must not be tradable");
        seasonTradable[_season] = true;
    }

    function transferFrom(address from, address to, uint256 tokenId) public {
        require(isTradable(tokenId), "not yet tradable");
        super.transferFrom(from, to, tokenId);
    }

    function burn(uint _tokenId) public {
        require(isTradable(_tokenId), "not yet tradable");
        super.burn(_tokenId);
    }

    function burnAll(uint256[] memory tokenIDs) public {
       for (uint i = 0; i < tokenIDs.length; i++) {
           burn(tokenIDs[i]);
       }
   }

    function isTradable(uint _tokenId) public view returns (bool) {
        return seasonTradable[protoToSeason[cardProtos[_tokenId]]];
    }

    function startSeason(string memory name, uint16 low, uint16 high) public returns (uint) {

        require(high > low, "must be a valid range");
        require(seasons.length == 0 || low > seasons[seasons.length - 1].high, "seasons cannot overlap");

        uint16 id = uint16(seasons.push(Season({ high: high, low: low })) - 1);

        uint cp; assembly { cp := protoToSeason_slot }
        StorageWrite.repeatUint16(cp, low, (high - low) + 1, id);

        emit SeasonStarted(id, name, low, high);

        return id;
    }

    function updateProtos(uint16[] memory _ids, Proto[] memory _protos) public onlyOwner {
        require(_ids.length == _protos.length, "ids/protos must be the same length");
        for (uint i = 0; i < _ids.length; i++) {
            uint16 id = _ids[i];
            Proto memory proto = protos[id];
            require(!proto.locked, "proto is locked");
            Proto memory newProto = _protos[i];
            newProto.exists = true;
            protos[id] = newProto;
            emit ProtoSet(id, newProto);
        }
    }

    function _validateAndSaveDetails(uint start, uint16[] memory _protos, uint8[] memory _qualities) internal {
        _validateProtos(_protos);

        uint cp; assembly { cp := cardProtos_slot }
        StorageWrite.uint16s(cp, start, _protos);
        uint cq; assembly { cq := cardQualities_slot }
        StorageWrite.uint8s(cq, start, _qualities);

    }

    function batchMintCards(address to, uint16[] memory _protos, uint8[] memory _qualities) public returns (uint) {
        require(_protos.length > 0, "must be some protos");
        require(_protos.length == _qualities.length, "must be the same number of protos/qualities");
        uint start = _batchMint(to, uint16(_protos.length));
        _validateAndSaveDetails(start, _protos, _qualities);
        return start;
    }

    uint16 private constant MAX_UINT16 = 2**16 - 1;

    function _validateProto(uint16 proto) internal {
        if (proto >= mythicThreshold) {
            require(!mythicCreated[proto], "mythic has already been created");
            mythicCreated[proto] = true;
        } else {
            uint season = protoToSeason[proto];
            require(factoryApproved[msg.sender][season], "must be approved factory for this season");
        }
    }

    function _validateProtos(uint16[] memory _protos) internal {
        uint16 maxProto = 0;
        uint16 minProto = MAX_UINT16;
        for (uint i = 0; i < _protos.length; i++) {
            uint16 proto = _protos[i];
            if (proto >= mythicThreshold) {
                require(!mythicCreated[proto], "mythic has already been created");
                mythicCreated[proto] = true;
            } else {
                if (proto > maxProto) {
                    maxProto = proto;
                }
                if (minProto > proto) {
                    minProto = proto;
                }
            }
        }
        uint season = protoToSeason[maxProto];
        // cards must be from the same season
        require(season == protoToSeason[minProto], "can only create cards from the same season");
        require(factoryApproved[msg.sender][season], "must be approved factory for this season");
    }

    function setQuality(uint _tokenId, uint8 _quality) public {
        uint16 proto = cardProtos[_tokenId];
        uint season = protoToSeason[proto];
        require(factoryApproved[msg.sender][season], "factory can't change quality of this season");
        cardQualities[_quality] = _quality;
        emit QualityChanged(_tokenId, _quality, msg.sender);
    }

    function setPropertyManager(address _manager) public onlyOwner {
        propertyManager = _manager;
    }

    function setProperty(uint _id, bytes32 _key, bytes32 _value) public {
        require(msg.sender == propertyManager, "must be property manager");
        _setProperty(_id, _key, _value);
    }

    function setClassProperty(bytes32 _key, bytes32 _value) public {
        require(msg.sender == propertyManager, "must be property manager");
        _setClassProperty(_key, _value);
    }

}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"cardQualities","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"tokenIDs","type":"uint256[]"}],"name":"transferAllFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256[]","name":"tokenIDs","type":"uint256[]"}],"name":"burnAll","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_manager","type":"address"}],"name":"setPropertyManager","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressToUserID","outputs":[{"internalType":"uint48","name":"","type":"uint48"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"factoryApproved","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"bytes32","name":"_key","type":"bytes32"}],"name":"getTokenKey","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"internalType":"bytes32","name":"_key","type":"bytes32"}],"name":"getClassKey","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"burn","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"bytes32","name":"_key","type":"bytes32"},{"internalType":"bytes32","name":"_value","type":"bytes32"}],"name":"setProperty","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getBatch","outputs":[{"internalType":"uint48","name":"userID","type":"uint48"},{"internalType":"uint16","name":"size","type":"uint16"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint16","name":"_proto","type":"uint16"},{"internalType":"uint8","name":"_quality","type":"uint8"}],"name":"mintCard","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint48","name":"","type":"uint48"}],"name":"userIDToAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"tokenIDs","type":"uint256[]"}],"name":"safeTransferAllFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getBatchStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"uint16","name":"low","type":"uint16"},{"internalType":"uint16","name":"high","type":"uint16"}],"name":"startSeason","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"mythicThreshold","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint16[]","name":"_protos","type":"uint16[]"},{"internalType":"uint8[]","name":"_qualities","type":"uint8[]"}],"name":"batchMintCards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"tokenCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"bytes32","name":"_key","type":"bytes32"}],"name":"getClassProperty","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"bytes32","name":"_key","type":"bytes32"},{"internalType":"bytes32","name":"_value","type":"bytes32"}],"name":"setClassProperty","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"protos","outputs":[{"internalType":"bool","name":"locked","type":"bool"},{"internalType":"bool","name":"exists","type":"bool"},{"internalType":"uint8","name":"god","type":"uint8"},{"internalType":"uint8","name":"cardType","type":"uint8"},{"internalType":"uint8","name":"rarity","type":"uint8"},{"internalType":"uint8","name":"mana","type":"uint8"},{"internalType":"uint8","name":"attack","type":"uint8"},{"internalType":"uint8","name":"health","type":"uint8"},{"internalType":"uint8","name":"tribe","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"end","type":"uint256"}],"name":"safeTransferBatch","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"seasonTradable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"batches","outputs":[{"internalType":"uint48","name":"userID","type":"uint48"},{"internalType":"uint16","name":"size","type":"uint16"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"firstFree","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"protoToSeason","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getDetails","outputs":[{"internalType":"uint16","name":"proto","type":"uint16"},{"internalType":"uint8","name":"quality","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_season","type":"uint256"}],"name":"unlockTrading","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"properties","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"end","type":"uint256"}],"name":"transferBatch","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint16[]","name":"_protos","type":"uint16[]"},{"internalType":"uint8[]","name":"_qualities","type":"uint8[]"}],"name":"mintCards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"bytes32","name":"_key","type":"bytes32"}],"name":"getProperty","outputs":[{"internalType":"bytes32","name":"_value","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint16","name":"","type":"uint16"}],"name":"mythicCreated","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"isTradable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint8","name":"_quality","type":"uint8"}],"name":"setQuality","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"propertyManager","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"nextBatch","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint16[]","name":"_ids","type":"uint16[]"},{"components":[{"internalType":"bool","name":"locked","type":"bool"},{"internalType":"bool","name":"exists","type":"bool"},{"internalType":"uint8","name":"god","type":"uint8"},{"internalType":"uint8","name":"cardType","type":"uint8"},{"internalType":"uint8","name":"rarity","type":"uint8"},{"internalType":"uint8","name":"mana","type":"uint8"},{"internalType":"uint8","name":"attack","type":"uint8"},{"internalType":"uint8","name":"health","type":"uint8"},{"internalType":"uint8","name":"tribe","type":"uint8"}],"internalType":"struct Cards.Proto[]","name":"_protos","type":"tuple[]"}],"name":"updateProtos","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_factory","type":"address"},{"internalType":"uint256","name":"_season","type":"uint256"}],"name":"addFactory","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"cardProtos","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"batchSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"seasons","outputs":[{"internalType":"uint16","name":"high","type":"uint16"},{"internalType":"uint16","name":"low","type":"uint16"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_batchSize","type":"uint256"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint16","name":"id","type":"uint16"},{"components":[{"internalType":"bool","name":"locked","type":"bool"},{"internalType":"bool","name":"exists","type":"bool"},{"internalType":"uint8","name":"god","type":"uint8"},{"internalType":"uint8","name":"cardType","type":"uint8"},{"internalType":"uint8","name":"rarity","type":"uint8"},{"internalType":"uint8","name":"mana","type":"uint8"},{"internalType":"uint8","name":"attack","type":"uint8"},{"internalType":"uint8","name":"health","type":"uint8"},{"internalType":"uint8","name":"tribe","type":"uint8"}],"indexed":false,"internalType":"struct Cards.Proto","name":"proto","type":"tuple"}],"name":"ProtoSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint16","name":"id","type":"uint16"},{"indexed":false,"internalType":"string","name":"name","type":"string"},{"indexed":true,"internalType":"uint16","name":"low","type":"uint16"},{"indexed":true,"internalType":"uint16","name":"high","type":"uint16"}],"name":"SeasonStarted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint8","name":"quality","type":"uint8"},{"indexed":false,"internalType":"address","name":"factory","type":"address"}],"name":"QualityChanged","type":"event"},{"anonymous":false,"inputs":[],"name":"PS","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":true,"internalType":"bytes32","name":"key","type":"bytes32"},{"indexed":false,"internalType":"bytes32","name":"value","type":"bytes32"}],"name":"TokenPropertySet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"}]

60806040526011805465ffffffffffff1916600117905560006012553480156200002857600080fd5b5060405162004d5138038062004d518339810160408190526200004b9162000568565b8282828181620000847f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b036200026916565b620000b87f80ac58cd000000000000000000000000000000000000000000000000000000006001600160e01b036200026916565b600580546001600160a01b0319163317908190556040516001600160a01b0391909116906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a38151620001199060069060208501906200030e565b5080516200012f9060079060208401906200030e565b50620001647f5b5e139f000000000000000000000000000000000000000000000000000000006001600160e01b036200026916565b5050600b8390556000196200017b60108262000393565b506000196200018c600e82620003bf565b50600080527fec8156718a8372b1db44bb411437d0870f3e3790d4a08526d024ce1b0b668f6b80546001600160a01b0319169055600a6020527f13da86008ba1c6922daee3e07db95305ef49ebced9f5467a0b8613fcc6b343e3805465ffffffffffff1916905560001962000203600f82620003bf565b50505050600019601581620002199190620003f6565b506000196200022a6016826200042d565b506000196200023b601782620003f6565b506000196200024c60198262000464565b5050601880546001600160a01b0319163317905550620006de9050565b7fffffffff000000000000000000000000000000000000000000000000000000008082161415620002d1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620002c89062000627565b60405180910390fd5b7fffffffff00000000000000000000000000000000000000000000000000000000166000908152602081905260409020805460ff19166001179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200035157805160ff191683800117855562000381565b8280016001018555821562000381579182015b828111156200038157825182559160200191906001019062000364565b506200038f9291506200048b565b5090565b815481835581811115620003ba57600083815260209020620003ba918101908301620004ab565b505050565b815481835581811115620003ba576004016005900481600401600590048360005260206000209182019101620003ba91906200048b565b815481835581811115620003ba57600f016010900481600f01601090048360005260206000209182019101620003ba91906200048b565b815481835581811115620003ba57601f016020900481601f01602090048360005260206000209182019101620003ba91906200048b565b815481835581811115620003ba57600083815260209020620003ba918101908301620004d2565b620004a891905b808211156200038f576000815560010162000492565b90565b620004a891905b808211156200038f5780546001600160401b0319168155600101620004b2565b620004a891905b808211156200038f5780546001600160481b0319168155600101620004d9565b600082601f8301126200050b57600080fd5b8151620005226200051c8262000660565b62000639565b915080825260208301602083018583830111156200053f57600080fd5b6200054c83828462000691565b50505092915050565b80516200056281620006c4565b92915050565b6000806000606084860312156200057e57600080fd5b60006200058c868662000555565b93505060208401516001600160401b03811115620005a957600080fd5b620005b786828701620004f9565b92505060408401516001600160401b03811115620005d457600080fd5b620005e286828701620004f9565b9150509250925092565b6000620005fb601c8362000688565b7f4552433136353a20696e76616c696420696e7465726661636520696400000000815260200192915050565b602080825281016200056281620005ec565b6040518181016001600160401b03811182821017156200065857600080fd5b604052919050565b60006001600160401b038211156200067757600080fd5b506020601f91909101601f19160190565b90815260200190565b60005b83811015620006ae57818101518382015260200162000694565b83811115620006be576000848401525b50505050565b620006cf81620004a8565b8114620006db57600080fd5b50565b61466380620006ee6000396000f3fe608060405234801561001057600080fd5b50600436106103ba5760003560e01c806395d89b41116101f4578063c5f4127a1161011a578063e7c51f1b116100ad578063f2fde38b1161007c578063f2fde38b14610820578063f3beae6b14610833578063f4daaba114610846578063f5d709a11461084e576103ba565b8063e7c51f1b146107df578063e82cd89e146107e7578063e985e9c5146107fa578063ef42259b1461080d576103ba565b8063e0c931df116100e9578063e0c931df1461079e578063e27aa1d8146107b1578063e3fb1ac6146107c4578063e7356cb5146107d7576103ba565b8063c5f4127a14610752578063c87b56dd14610765578063c8be6b9b14610778578063cdc2cfe21461078b576103ba565b8063b309c36b11610192578063b88d4fde11610161578063b88d4fde146106f8578063b93a89f71461070b578063bc0485251461072c578063bd1562731461073f576103ba565b8063b309c36b146106b7578063b32c4d8d146106ca578063b4654a43146106dd578063b76e8d01146106e5576103ba565b8063a22cb465116101ce578063a22cb46514610656578063a9c1a20014610669578063ab17d0401461067c578063b0c4297c146106a4576103ba565b806395d89b41146106335780639f181b5e1461063b578063a138e44e14610643576103ba565b806342966c68116102e4578063715018a61161027757806387996cbd1161024657806387996cbd146105fb5780638da5cb5b146106105780638e08fc96146106185780638f32d59b1461062b576103ba565b8063715018a6146105ba5780637962d59b146105c2578063815d9fa0146105d5578063856516c3146105e8576103ba565b80636352211e116102b35780636352211e146105795780636602eaf91461058c5780636c0360eb1461059f57806370a08231146105a7576103ba565b806342966c681461051f57806358895f62146105325780635ac44282146105455780635b65afe914610566576103ba565b806318160ddd1161035c578063248850871161032b57806324885087146104d357806337514295146104e65780633af07256146104f957806342842e0e1461050c576103ba565b806318160ddd146104785780631e5073931461048d5780631fe25e4f146104a057806323b872dd146104c0576103ba565b8063081812fc11610398578063081812fc1461041d578063095ea7b31461043d5780630bbe0ee314610452578063100cdd9114610465576103ba565b806301ffc9a7146103bf57806302b19cea146103e857806306fdde0314610408575b600080fd5b6103d26103cd36600461358e565b61086f565b6040516103df9190614147565b60405180910390f35b6103fb6103f6366004613551565b610892565b6040516103df9190614479565b6104106108c3565b6040516103df91906141e9565b61043061042b366004613551565b610959565b6040516103df91906140f5565b61045061044b36600461348d565b6109de565b005b610450610460366004613231565b610ae8565b61045061047336600461351c565b610b20565b610480610b54565b6040516103df91906141db565b61045061049b3660046131d9565b610b5a565b6104b36104ae3660046131d9565b610ba0565b6040516103df919061445d565b6104506104ce366004613296565b610bba565b6103d26104e136600461348d565b610bef565b6104806104f436600461356f565b610c0f565b610480610507366004613551565b610c46565b61045061051a366004613296565b610c78565b61045061052d366004613551565b610c93565b610450610540366004613642565b610cc4565b610558610553366004613551565b610cf9565b6040516103df92919061446b565b61048061057436600461344a565b610d4f565b610430610587366004613551565b610de5565b61043061059a3660046136a4565b610ed3565b610410610eee565b6104806105b53660046131d9565b610f27565b610450610f42565b6104506105d0366004613231565b610fb0565b6104806105e3366004613551565b610fe2565b6104806105f63660046135ca565b611008565b610603611169565b6040516103df9190614419565b61043061116f565b6104806106263660046133a7565b61117e565b6103d26111e3565b6104106111f4565b610480611255565b610480610651366004613551565b61125b565b61045061066436600461341a565b611280565b61045061067736600461356f565b611318565b61068f61068a366004613551565b61134c565b6040516103df99989796959493929190614155565b6104506106b2366004613352565b6113bd565b6103d26106c5366004613551565b6113e1565b6105586106d8366004613551565b6113f6565b610480611428565b6106036106f3366004613551565b61142e565b6104506107063660046132d9565b611463565b61071e610719366004613551565b611496565b6040516103df929190614442565b61045061073a366004613551565b611500565b61048061074d366004613551565b61156e565b610450610760366004613352565b611580565b610410610773366004613551565b61159d565b6104806107863660046133a7565b61160f565b61048061079936600461356f565b611674565b6103d26107ac366004613624565b61169b565b6103d26107bf366004613551565b6116b0565b6104506107d2366004613674565b611731565b610430611850565b61048061185f565b6104506107f53660046134bd565b611865565b6103d26108083660046131f7565b611b60565b61045061081b36600461348d565b611b8e565b61045061082e3660046131d9565b611c55565b610603610841366004613551565b611c82565b610480611c8f565b61086161085c366004613551565b611c95565b6040516103df929190614427565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b6016818154811061089f57fe5b9060005260206000209060209182820401919006915054906101000a900460ff1681565b60068054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561094f5780601f106109245761010080835404028352916020019161094f565b820191906000526020600020905b81548152906001019060200180831161093257829003601f168201915b5050505050905090565b600061096482611cc1565b6109895760405162461bcd60e51b81526004016109809061436a565b60405180910390fd5b60096000600f848154811061099a57fe5b6000918252602080832060058084049091015492066006026101000a90910465ffffffffffff1683528201929092526040019020546001600160a01b031692915050565b60006109e982610de5565b9050806001600160a01b0316836001600160a01b03161415610a1d5760405162461bcd60e51b8152600401610980906143ba565b336001600160a01b0382161480610a395750610a398133611b60565b610a555760405162461bcd60e51b81526004016109809061430a565b610a5e83611cde565b600f8381548110610a6b57fe5b90600052602060002090600591828204019190066006026101000a81548165ffffffffffff021916908365ffffffffffff16021790555081836001600160a01b0316826001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60005b8151811015610b1a57610b128484848481518110610b0557fe5b6020026020010151610bba565b600101610aeb565b50505050565b60005b8151811015610b5057610b48828281518110610b3b57fe5b6020026020010151610c93565b600101610b23565b5050565b600d5490565b610b626111e3565b610b7e5760405162461bcd60e51b81526004016109809061437a565b601880546001600160a01b0319166001600160a01b0392909216919091179055565b600a6020526000908152604090205465ffffffffffff1681565b610bc3816116b0565b610bdf5760405162461bcd60e51b81526004016109809061428a565b610bea838383611da0565b505050565b601c60209081526000928352604080842090915290825290205460ff1681565b600060018383604051602001610c27939291906140be565b6040516020818303038152906040528051906020012090505b92915050565b60008082604051602001610c5b929190614098565b604051602081830303815290604052805190602001209050919050565b610bea83838360405180602001604052806000815250611463565b610c9c816116b0565b610cb85760405162461bcd60e51b81526004016109809061428a565b610cc181611f60565b50565b6018546001600160a01b03163314610cee5760405162461bcd60e51b81526004016109809061420a565b610bea8383836120b9565b60008060108381548110610d0957fe5b6000918252602090912001546010805465ffffffffffff9092169185908110610d2e57fe5b6000918252602090912001549094600160301b90910461ffff169350915050565b600080610d5d856001612118565b9050610d68846121f3565b8360158281548110610d7657fe5b90600052602060002090601091828204019190066002026101000a81548161ffff021916908361ffff1602179055508260168281548110610db357fe5b90600052602060002090602091828204019190066101000a81548160ff021916908360ff160217905550509392505050565b600080600e8381548110610df557fe5b90600052602060002090600591828204019190066006029054906101000a900465ffffffffffff1690508065ffffffffffff1660001415610ead576000610e3b84610fe2565b9050610e45612e25565b60108281548110610e5257fe5b60009182526020918290206040805180820190915291015465ffffffffffff81168252600160301b900461ffff16918101829052915082018510610ea85760405162461bcd60e51b8152600401610980906143ea565b519150505b65ffffffffffff166000908152600960205260409020546001600160a01b031692915050565b6009602052600090815260409020546001600160a01b031681565b6040518060400160405280602081526020017f68747470733a2f2f6170692e696d6d757461626c652e636f6d2f746f6b656e2f81525081565b6001600160a01b031660009081526013602052604090205490565b610f4a6111e3565b610f665760405162461bcd60e51b81526004016109809061437a565b6005546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600580546001600160a01b0319169055565b60005b8151811015610b1a57610fda8484848481518110610fcd57fe5b6020026020010151610c78565b600101610fb3565b600b54600090610c4090610ffc848263ffffffff6122c616565b9063ffffffff6122fb16565b60008261ffff168261ffff16116110315760405162461bcd60e51b81526004016109809061432a565b601a5415806110645750601a8054600019810190811061104d57fe5b60009182526020909120015461ffff908116908416115b6110805760405162461bcd60e51b81526004016109809061424a565b6040805180820190915261ffff808416825284811660208301818152601a80546001818101835560009290925294517f057c384a7d1c54f3a1b2e5e67b2617b8224fdfd1ea7234eea573a6ff665ff63e8601805493518616620100000263ffff00001992871661ffff1990951694909417919091169290921790915560179261111492849290918989039091011685612335565b8361ffff168561ffff168361ffff167f894c7f27fb3eb8728566da10c21ff64cffafe6700bf22074e653fcd20acc8bba8960405161115291906141e9565b60405180910390a45061ffff1690505b9392505050565b61fde881565b6005546001600160a01b031690565b6000808351116111a05760405162461bcd60e51b81526004016109809061431a565b81518351146111c15760405162461bcd60e51b8152600401610980906143fa565b60006111ce858551612379565b90506111db8185856124e4565b949350505050565b6005546001600160a01b0316331490565b60078054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561094f5780601f106109245761010080835404028352916020019161094f565b600d5481565b60006014600061126a84610c46565b8152602001908152602001600020549050919050565b6001600160a01b0382163314156112a95760405162461bcd60e51b8152600401610980906142aa565b3360008181526004602090815260408083206001600160a01b038716808552925291829020805460ff191685151517905590519091907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319061130c908590614147565b60405180910390a35050565b6018546001600160a01b031633146113425760405162461bcd60e51b81526004016109809061420a565b610b508282612507565b6019818154811061135957fe5b60009182526020909120015460ff80821692506101008204811691620100008104821691630100000082048116916401000000008104821691650100000000008204811691600160301b8104821691600160381b8204811691600160401b90041689565b815b818110156113da576113d2858583610c78565b6001016113bf565b5050505050565b601b6020526000908152604090205460ff1681565b6010818154811061140357fe5b60009182526020909120015465ffffffffffff81169150600160301b900461ffff1682565b60125481565b6017818154811061143b57fe5b9060005260206000209060109182820401919006600202915054906101000a900461ffff1681565b61146e848484610bba565b61147a8484848461252a565b610b1a5760405162461bcd60e51b81526004016109809061422a565b600080601583815481106114a657fe5b90600052602060002090601091828204019190066002029054906101000a900461ffff16601684815481106114d757fe5b90600052602060002090602091828204019190069054906101000a900460ff1691509150915091565b6115086111e3565b6115245760405162461bcd60e51b81526004016109809061437a565b6000818152601b602052604090205460ff16156115535760405162461bcd60e51b8152600401610980906143da565b6000908152601b60205260409020805460ff19166001179055565b60146020526000908152604090205481565b815b818110156113da57611595858583610bba565b600101611582565b60606040518060400160405280602081526020017f68747470733a2f2f6170692e696d6d757461626c652e636f6d2f746f6b656e2f8152506115de306125ef565b6115e78461278d565b6040516020016115f993929190614060565b6040516020818303038152906040529050919050565b6000808351116116315760405162461bcd60e51b81526004016109809061431a565b81518351146116525760405162461bcd60e51b8152600401610980906143fa565b600061165f858551612118565b905061166c8185856124e4565b509392505050565b6000601460006116848585610c0f565b815260200190815260200160002054905092915050565b601d6020526000908152604090205460ff1681565b6000601b60006017601585815481106116c557fe5b90600052602060002090601091828204019190066002029054906101000a900461ffff1661ffff16815481106116f757fe5b60009182526020808320601083040154600f9092166002026101000a90910461ffff16835282019290925260400190205460ff1692915050565b60006015838154811061174057fe5b90600052602060002090601091828204019190066002029054906101000a900461ffff169050600060178261ffff168154811061177957fe5b60009182526020808320601083040154338452601c82526040808520600f9094166002026101000a90910461ffff16808552929091529091205490915060ff166117d55760405162461bcd60e51b8152600401610980906143ca565b8260168460ff16815481106117e657fe5b90600052602060002090602091828204019190066101000a81548160ff021916908360ff160217905550837f892269e637adec3404715b55a46b36fba9383a540f8f5859b364909469fcd04d8433604051611842929190614487565b60405180910390a250505050565b6018546001600160a01b031681565b600c5481565b61186d6111e3565b6118895760405162461bcd60e51b81526004016109809061437a565b80518251146118aa5760405162461bcd60e51b81526004016109809061421a565b60005b8251811015610bea5760008382815181106118c457fe5b602002602001015190506118d6612e3c565b60198261ffff16815481106118e757fe5b60009182526020918290206040805161012081018252929091015460ff808216158015855261010080840483161515968601969096526201000083048216938501939093526301000000820481166060850152640100000000820481166080850152650100000000008204811660a0850152600160301b8204811660c0850152600160381b8204811660e0850152600160401b909104169282019290925291506119a35760405162461bcd60e51b8152600401610980906142ba565b6119ab612e3c565b8484815181106119b757fe5b6020026020010151905060018160200190151590811515815250508060198461ffff16815481106119e457fe5b9060005260206000200160008201518160000160006101000a81548160ff02191690831515021790555060208201518160000160016101000a81548160ff02191690831515021790555060408201518160000160026101000a81548160ff021916908360ff16021790555060608201518160000160036101000a81548160ff021916908360ff16021790555060808201518160000160046101000a81548160ff021916908360ff16021790555060a08201518160000160056101000a81548160ff021916908360ff16021790555060c08201518160000160066101000a81548160ff021916908360ff16021790555060e08201518160000160076101000a81548160ff021916908360ff1602179055506101008201518160000160086101000a81548160ff021916908360ff1602179055509050508261ffff167f504019a523d581f1e2ed480529c82e25df517a9c11d8165a004952d97dcd487682604051611b4d919061440a565b60405180910390a25050506001016118ad565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205460ff1690565b611b966111e3565b611bb25760405162461bcd60e51b81526004016109809061437a565b6001600160a01b0382166000908152601c6020908152604080832084845290915290205460ff1615611bf65760405162461bcd60e51b81526004016109809061438a565b6000818152601b602052604090205460ff1615611c255760405162461bcd60e51b8152600401610980906143da565b6001600160a01b039091166000908152601c6020908152604080832093835292905220805460ff19166001179055565b611c5d6111e3565b611c795760405162461bcd60e51b81526004016109809061437a565b610cc181612851565b6015818154811061143b57fe5b600b5481565b601a8181548110611ca257fe5b60009182526020909120015461ffff8082169250620100009091041682565b600080611ccd83610de5565b6001600160a01b0316141592915050565b6001600160a01b0381166000908152600a602052604081205465ffffffffffff1680610c405760115465ffffffffffff9081166001810190911611611d355760405162461bcd60e51b81526004016109809061427a565b506011805465ffffffffffff8082166001810190911665ffffffffffff1992831617909255600082815260096020908152604080832080546001600160a01b0389166001600160a01b031990911681179091558352600a909152902080549091168217905592915050565b826001600160a01b0316611db382610de5565b6001600160a01b031614611dd95760405162461bcd60e51b81526004016109809061439a565b6001600160a01b038216611dff5760405162461bcd60e51b81526004016109809061429a565b611e0933826128d3565b611e255760405162461bcd60e51b81526004016109809061435a565b600f8181548110611e3257fe5b90600052602060002090600591828204019190066006029054906101000a900465ffffffffffff1665ffffffffffff16600014611eb0576000600f8281548110611e7857fe5b90600052602060002090600591828204019190066006026101000a81548165ffffffffffff021916908365ffffffffffff1602179055505b6001600160a01b03808416600090815260136020526040808220805460001901905591841681522080546001019055611ee882611cde565b600e8281548110611ef557fe5b90600052602060002090600591828204019190066006026101000a81548165ffffffffffff021916908365ffffffffffff16021790555080826001600160a01b0316846001600160a01b031660008051602061460183398151915260405160405180910390a4505050565b611f6a33826128d3565b611f865760405162461bcd60e51b8152600401610980906143aa565b600f8181548110611f9357fe5b90600052602060002090600591828204019190066006029054906101000a900465ffffffffffff1665ffffffffffff16600014612011576000600f8281548110611fd957fe5b90600052602060002090600591828204019190066006026101000a81548165ffffffffffff021916908365ffffffffffff1602179055505b600061201c82610de5565b6001600160a01b03811660009081526013602052604081208054600019019055600e805492935090918490811061204f57fe5b60009182526020822060058083049091018054919092066006026101000a65ffffffffffff81810219909216949091160292909217909155600d80546000190190556040518391906001600160a01b03841690600080516020614601833981519152908390a45050565b80601460006120c88686610c0f565b81526020019081526020016000208190555081837fe437ad402a50c14d9de944e1d68d9708776aaccb860bd49a6e875a64e7d0b22a8360405161210b91906141db565b60405180910390a3505050565b60125460009061ffff831681018261212f86611cde565b9050825b828110156121b35760405181906001600160a01b03891690600090600080516020614601833981519152908290a481600e828154811061216f57fe5b90600052602060002090600591828204019190066006026101000a81548165ffffffffffff021916908365ffffffffffff1602179055508080600101915050612133565b50506012805461ffff959095169485019055506001600160a01b0393909316600090815260136020526040902080548301905550600d8054909101905590565b61fde861ffff8216106122575761ffff81166000908152601d602052604090205460ff16156122345760405162461bcd60e51b81526004016109809061425a565b61ffff81166000908152601d60205260409020805460ff19166001179055610cc1565b600060178261ffff168154811061226a57fe5b60009182526020808320601083040154338452601c82526040808520600f9094166002026101000a90910461ffff16808552929091529091205490915060ff16610b505760405162461bcd60e51b8152600401610980906142fa565b60008082116122e75760405162461bcd60e51b8152600401610980906142ea565b60008284816122f257fe5b04949350505050565b60008261230a57506000610c40565b8282028284828161231757fe5b04146111625760405162461bcd60e51b81526004016109809061433a565b60606123448585601086612950565b905060005b8381101561236b5761236382866010848761ffff16612a16565b600101612349565b506113da8585601084612a9e565b60006001600160a01b0383166123a15760405162461bcd60e51b81526004016109809061434a565b60008261ffff161180156123bb5750600b548261ffff1611155b6123d75760405162461bcd60e51b8152600401610980906141fa565b60006123e1612afb565b905060006123ee85611cde565b905060405180604001604052808265ffffffffffff1681526020018561ffff168152506010838154811061241e57fe5b6000918252602091829020835191018054939092015165ffffffffffff1990931665ffffffffffff9091161767ffff0000000000001916600160301b61ffff9384160217905584168201825b818110156124a05760405181906001600160a01b03891690600090600080516020614601833981519152908290a460010161246a565b5050600b54600c80549091019055506001600160a01b03939093166000908152601360205260409020805461ffff93909316928301905550600d8054909101905590565b6124ed82612b28565b60156124fa818585612cb2565b60166113da818685612d0b565b806014600061251585610c46565b81526020810191909152604001600020555050565b600061253e846001600160a01b0316612d63565b61254a575060016111db565b604051630a85bd0160e11b81526000906001600160a01b0386169063150b7a029061257f9033908a9089908990600401614103565b602060405180830381600087803b15801561259957600080fd5b505af11580156125ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506125d191908101906135ac565b6001600160e01b031916630a85bd0160e11b14915050949350505050565b60408051602a80825260608281019093526001600160a01b038416918391602082018180388339019050509050600360fc1b8160008151811061262e57fe5b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061265757fe5b60200101906001600160f81b031916908160001a90535060005b601481101561166c576040518060400160405280601081526020016f181899199a1a9b1b9c1cb0b131b232b360811b81525060048483600c01602081106126b457fe5b1a60f81b6001600160f81b031916901c60f81c60ff16815181106126d457fe5b602001015160f81c60f81b8282600202600201815181106126f157fe5b60200101906001600160f81b031916908160001a9053506040518060400160405280601081526020016f181899199a1a9b1b9c1cb0b131b232b360811b8152508382600c016020811061274057fe5b825191901a600f1690811061275157fe5b602001015160f81c60f81b82826002026003018151811061276e57fe5b60200101906001600160f81b031916908160001a905350600101612671565b6060816127b257506040805180820190915260018152600360fc1b602082015261088d565b8160005b81156127ca57600101600a820491506127b6565b6060816040519080825280601f01601f1916602001820160405280156127f7576020820181803883390190505b50859350905060001982015b831561284857600a840660300160f81b8282806001900393508151811061282657fe5b60200101906001600160f81b031916908160001a905350600a84049350612803565b50949350505050565b6001600160a01b0381166128775760405162461bcd60e51b81526004016109809061423a565b6005546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0319166001600160a01b0392909216919091179055565b60006128de82611cc1565b6128fa5760405162461bcd60e51b8152600401610980906142ca565b600061290583610de5565b9050806001600160a01b0316846001600160a01b031614806129405750836001600160a01b031661293584610959565b6001600160a01b0316145b806111db57506111db8185611b60565b6060600061295f858585612d69565b90508060405190808252806020026020018201604052801561298b578160200160208202803883390190505b509150600061299a8686612d99565b90506129a68782612dac565b836000815181106129b357fe5b6020026020010181815250506001821115612a0c5760006129e36129dd888763ffffffff612dc216565b87612d99565b90506129ef8882612dac565b8460018503815181106129fe57fe5b602002602001018181525050505b5050949350505050565b60008361010081612a2357fe5b0490506000818681612a3157fe5b06905060008285830181612a4157fe5b0490506000868489880181612a5257fe5b0602905060005b87811015612a92578082018187901c60ff16901b8a8481518110612a7957fe5b6020908102919091010180519091179052600801612a59565b50505050505050505050565b6000612abd8361010081612aae57fe5b8691900463ffffffff6122c616565b905060005b8251811015612af357612aeb86828401858481518110612ade57fe5b6020026020010151612de7565b600101612ac2565b505050505050565b6000600c546012541115612b2157612b1d600b54610ffc601254600b54612dfc565b600c555b50600c5490565b600061ffff815b8351811015612be9576000848281518110612b4657fe5b6020026020010151905061fde861ffff168161ffff1610612bb85761ffff81166000908152601d602052604090205460ff1615612b955760405162461bcd60e51b81526004016109809061425a565b61ffff81166000908152601d60205260409020805460ff19166001179055612be0565b8361ffff168161ffff161115612bcc578093505b8061ffff168361ffff161115612be0578092505b50600101612b2f565b50600060178361ffff1681548110612bfd57fe5b90600052602060002090601091828204019190066002029054906101000a900461ffff1661ffff16905060178261ffff1681548110612c3857fe5b60009182526020909120601082040154600f9091166002026101000a900461ffff168114612c785760405162461bcd60e51b8152600401610980906142da565b336000908152601c6020908152604080832084845290915290205460ff16610b1a5760405162461bcd60e51b8152600401610980906142fa565b6060612cc2848460108551612950565b905060005b8251811015612cfd57612cf58285601084878681518110612ce457fe5b602002602001015161ffff16612a16565b600101612cc7565b50610b1a8484601084612a9e565b6060612d1b848460208551612950565b905060005b8251811015612d5557612d4d8285600884878681518110612d3d57fe5b602002602001015160ff16612a16565b600101612d20565b50610b1a8484600884612a9e565b3b151590565b600080838581612d7557fe5b04905060008484870181612d8557fe5b049050818103600101925050509392505050565b6000818381612da457fe5b049392505050565b600080612db98484612e16565b54949350505050565b6000828201838110156111625760405162461bcd60e51b81526004016109809061426a565b6000612df38484612e16565b91909155505050565b6000816001840381612e0a57fe5b04600101905092915050565b60405191825260209091200190565b604080518082019091526000808252602082015290565b6040805161012081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e0810182905261010081019190915290565b8035610c40816145b6565b600082601f830112612ea457600080fd5b8135612eb7612eb2826144c9565b6144a2565b9150818183526020840193506020810190508385610120840282011115612edd57600080fd5b60005b83811015612f0c5781612ef388826130e1565b8452506020909201916101209190910190600101612ee0565b5050505092915050565b600082601f830112612f2757600080fd5b8135612f35612eb2826144c9565b91508181835260208401935060208101905083856020840282011115612f5a57600080fd5b60005b83811015612f0c5781612f7088826131b8565b8452506020928301929190910190600101612f5d565b600082601f830112612f9757600080fd5b8135612fa5612eb2826144c9565b91508181835260208401935060208101905083856020840282011115612fca57600080fd5b60005b83811015612f0c5781612fe08882613071565b8452506020928301929190910190600101612fcd565b600082601f83011261300757600080fd5b8135613015612eb2826144c9565b9150818183526020840193506020810190508385602084028201111561303a57600080fd5b60005b83811015612f0c578161305088826131ce565b845250602092830192919091019060010161303d565b8035610c40816145ca565b8035610c40816145d3565b8035610c40816145dc565b8051610c40816145dc565b600082601f8301126130a357600080fd5b81356130b1612eb2826144ea565b915080825260208301602083018583830111156130cd57600080fd5b6130d8838284614574565b50505092915050565b600061012082840312156130f457600080fd5b6130ff6101206144a2565b9050600061310d8484613066565b825250602061311e84848301613066565b6020830152506040613132848285016131ce565b6040830152506060613146848285016131ce565b606083015250608061315a848285016131ce565b60808301525060a061316e848285016131ce565b60a08301525060c0613182848285016131ce565b60c08301525060e0613196848285016131ce565b60e0830152506101006131ab848285016131ce565b6101008301525092915050565b8035610c40816145e5565b8035610c40816145ee565b8035610c40816145f7565b6000602082840312156131eb57600080fd5b60006111db8484612e88565b6000806040838503121561320a57600080fd5b60006132168585612e88565b925050602061322785828601612e88565b9150509250929050565b60008060006060848603121561324657600080fd5b60006132528686612e88565b935050602061326386828701612e88565b925050604084013567ffffffffffffffff81111561328057600080fd5b61328c86828701612f86565b9150509250925092565b6000806000606084860312156132ab57600080fd5b60006132b78686612e88565b93505060206132c886828701612e88565b925050604061328c86828701613071565b600080600080608085870312156132ef57600080fd5b60006132fb8787612e88565b945050602061330c87828801612e88565b935050604061331d87828801613071565b925050606085013567ffffffffffffffff81111561333a57600080fd5b61334687828801613092565b91505092959194509250565b6000806000806080858703121561336857600080fd5b60006133748787612e88565b945050602061338587828801612e88565b935050604061339687828801613071565b925050606061334687828801613071565b6000806000606084860312156133bc57600080fd5b60006133c88686612e88565b935050602084013567ffffffffffffffff8111156133e557600080fd5b6133f186828701612f16565b925050604084013567ffffffffffffffff81111561340e57600080fd5b61328c86828701612ff6565b6000806040838503121561342d57600080fd5b60006134398585612e88565b925050602061322785828601613066565b60008060006060848603121561345f57600080fd5b600061346b8686612e88565b935050602061347c868287016131b8565b925050604061328c868287016131ce565b600080604083850312156134a057600080fd5b60006134ac8585612e88565b925050602061322785828601613071565b600080604083850312156134d057600080fd5b823567ffffffffffffffff8111156134e757600080fd5b6134f385828601612f16565b925050602083013567ffffffffffffffff81111561351057600080fd5b61322785828601612e93565b60006020828403121561352e57600080fd5b813567ffffffffffffffff81111561354557600080fd5b6111db84828501612f86565b60006020828403121561356357600080fd5b60006111db8484613071565b6000806040838503121561358257600080fd5b60006134ac8585613071565b6000602082840312156135a057600080fd5b60006111db848461307c565b6000602082840312156135be57600080fd5b60006111db8484613087565b6000806000606084860312156135df57600080fd5b833567ffffffffffffffff8111156135f657600080fd5b61360286828701613092565b9350506020613613868287016131b8565b925050604061328c868287016131b8565b60006020828403121561363657600080fd5b60006111db84846131b8565b60008060006060848603121561365757600080fd5b60006136638686613071565b93505060206132c886828701613071565b6000806040838503121561368757600080fd5b60006136938585613071565b9250506020613227858286016131ce565b6000602082840312156136b657600080fd5b60006111db84846131c3565b6136cb81614563565b82525050565b6136cb8161451f565b6136cb8161452a565b6136cb8161452f565b6136cb6136f88261452f565b61452f565b600061370882614512565b6137128185614516565b9350613722818560208601614580565b61372b816145ac565b9093019392505050565b600061374082614512565b61374a818561088d565b935061375a818560208601614580565b9290920192915050565b6000613771601a83614516565b7f73697a65206d7573742062652077697468696e206c696d697473000000000000815260200192915050565b60006137aa601883614516565b7f6d7573742062652070726f7065727479206d616e616765720000000000000000815260200192915050565b60006137e3602283614516565b7f6964732f70726f746f73206d757374206265207468652073616d65206c656e678152610e8d60f31b602082015260400192915050565b6000613827603283614516565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527131b2b4bb32b91034b6b83632b6b2b73a32b960711b602082015260400192915050565b600061387b602683614516565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181526564647265737360d01b602082015260400192915050565b60006138c3601683614516565b750736561736f6e732063616e6e6f74206f7665726c61760541b815260200192915050565b60006138f5601f83614516565b7f6d79746869632068617320616c7265616479206265656e206372656174656400815260200192915050565b600061392e601b83614516565b7f536166654d6174683a206164646974696f6e206f766572666c6f770000000000815260200192915050565b6000613967601183614516565b706d757374206e6f74206f766572666c6f7760781b815260200192915050565b6000613994601083614516565b6f6e6f7420796574207472616461626c6560801b815260200192915050565b60006139c0602483614516565b7f4552433732313a207472616e7366657220746f20746865207a65726f206164648152637265737360e01b602082015260400192915050565b6000613a06601983614516565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000815260200192915050565b6000613a3f600f83614516565b6e1c1c9bdd1bc81a5cc81b1bd8dad959608a1b815260200192915050565b6000613a6a602c83614516565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015260400192915050565b6000613ab8602a83614516565b7f63616e206f6e6c79206372656174652063617264732066726f6d20746865207381526930b6b29039b2b0b9b7b760b11b602082015260400192915050565b6000613b04601a83614516565b7f536166654d6174683a206469766973696f6e206279207a65726f000000000000815260200192915050565b6000613b3d602883614516565b7f6d75737420626520617070726f76656420666163746f727920666f7220746869815267399039b2b0b9b7b760c11b602082015260400192915050565b6000613b87603883614516565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7781527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015260400192915050565b6000613be6601383614516565b726d75737420626520736f6d652070726f746f7360681b815260200192915050565b6000613c15601583614516565b746d75737420626520612076616c69642072616e676560581b815260200192915050565b6000613c46602183614516565b7f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f8152607760f81b602082015260400192915050565b6000613c89601083614516565b6f1b5d5cdd081b9bdd081899481b9d5b1b60821b815260200192915050565b6000613cb5602883614516565b7f4552433732313a2063616c6c6572206973206e6f74206f776e6572206e6f7220815267185c1c1c9bdd995960c21b602082015260400192915050565b6000613cff602c83614516565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015260400192915050565b6000613d4d602083614516565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572815260200192915050565b6000613d86602083614516565b7f7468697320666163746f727920697320616c726561647920617070726f766564815260200192915050565b6000613dbf602983614516565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206981526839903737ba1037bbb760b91b602082015260400192915050565b6000613e0a602083614516565b7f63616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564815260200192915050565b6000613e43602183614516565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e658152603960f91b602082015260400192915050565b6000613e86602b83614516565b7f666163746f72792063616e2774206368616e6765207175616c697479206f662081526a3a3434b99039b2b0b9b7b760a91b602082015260400192915050565b6000613ed3601b83614516565b7f736561736f6e206d757374206e6f74206265207472616461626c650000000000815260200192915050565b6000613f0c601483614516565b731d1bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b815260200192915050565b6000613f3c602b83614516565b7f6d757374206265207468652073616d65206e756d626572206f662070726f746f81526a732f7175616c697469657360a81b602082015260400192915050565b6000613f8960018361088d565b602f60f81b815260010192915050565b8051610120830190613fab84826136da565b506020820151613fbe60208501826136da565b506040820151613fd16040850182614057565b506060820151613fe46060850182614057565b506080820151613ff76080850182614057565b5060a082015161400a60a0850182614057565b5060c082015161401d60c0850182614057565b5060e082015161403060e0850182614057565b50610100820151610b1a610100850182614057565b6136cb8161453f565b6136cb81614552565b6136cb8161455d565b600061406c8286613735565b91506140788285613735565b915061408382613f7c565b915061408f8284613735565b95945050505050565b60006140a482856136ec565b6020820191506140b482846136ec565b5060200192915050565b60006140ca82866136ec565b6020820191506140da82856136ec565b6020820191506140ea82846136ec565b506020019392505050565b60208101610c4082846136d1565b6080810161411182876136c2565b61411e60208301866136d1565b61412b60408301856136e3565b818103606083015261413d81846136fd565b9695505050505050565b60208101610c4082846136da565b6101208101614164828c6136da565b614171602083018b6136da565b61417e604083018a614057565b61418b6060830189614057565b6141986080830188614057565b6141a560a0830187614057565b6141b260c0830186614057565b6141bf60e0830185614057565b6141cd610100830184614057565b9a9950505050505050505050565b60208101610c4082846136e3565b6020808252810161116281846136fd565b60208082528101610c4081613764565b60208082528101610c408161379d565b60208082528101610c40816137d6565b60208082528101610c408161381a565b60208082528101610c408161386e565b60208082528101610c40816138b6565b60208082528101610c40816138e8565b60208082528101610c4081613921565b60208082528101610c408161395a565b60208082528101610c4081613987565b60208082528101610c40816139b3565b60208082528101610c40816139f9565b60208082528101610c4081613a32565b60208082528101610c4081613a5d565b60208082528101610c4081613aab565b60208082528101610c4081613af7565b60208082528101610c4081613b30565b60208082528101610c4081613b7a565b60208082528101610c4081613bd9565b60208082528101610c4081613c08565b60208082528101610c4081613c39565b60208082528101610c4081613c7c565b60208082528101610c4081613ca8565b60208082528101610c4081613cf2565b60208082528101610c4081613d40565b60208082528101610c4081613d79565b60208082528101610c4081613db2565b60208082528101610c4081613dfd565b60208082528101610c4081613e36565b60208082528101610c4081613e79565b60208082528101610c4081613ec6565b60208082528101610c4081613eff565b60208082528101610c4081613f2f565b6101208101610c408284613f99565b60208101610c408284614045565b604081016144358285614045565b6111626020830184614045565b604081016144508285614045565b6111626020830184614057565b60208101610c40828461404e565b60408101614435828561404e565b60208101610c408284614057565b604081016144958285614057565b61116260208301846136c2565b60405181810167ffffffffffffffff811182821017156144c157600080fd5b604052919050565b600067ffffffffffffffff8211156144e057600080fd5b5060209081020190565b600067ffffffffffffffff82111561450157600080fd5b506020601f91909101601f19160190565b5190565b90815260200190565b6000610c4082614546565b151590565b90565b6001600160e01b03191690565b61ffff1690565b6001600160a01b031690565b65ffffffffffff1690565b60ff1690565b6000610c40826000610c408261451f565b82818337506000910152565b60005b8381101561459b578181015183820152602001614583565b83811115610b1a5750506000910152565b601f01601f191690565b6145bf8161451f565b8114610cc157600080fd5b6145bf8161452a565b6145bf8161452f565b6145bf81614532565b6145bf8161453f565b6145bf81614552565b6145bf8161455d56feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa365627a7a723158202c3df7758c4f7479c8054cb0b45214c04f32af0720dfe58213cc0d724e3637f86c6578706572696d656e74616cf564736f6c634300050b004000000000000000000000000000000000000000000000000000000000000004e3000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000014476f647320556e636861696e656420436172647300000000000000000000000000000000000000000000000000000000000000000000000000000000000000044341524400000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106103ba5760003560e01c806395d89b41116101f4578063c5f4127a1161011a578063e7c51f1b116100ad578063f2fde38b1161007c578063f2fde38b14610820578063f3beae6b14610833578063f4daaba114610846578063f5d709a11461084e576103ba565b8063e7c51f1b146107df578063e82cd89e146107e7578063e985e9c5146107fa578063ef42259b1461080d576103ba565b8063e0c931df116100e9578063e0c931df1461079e578063e27aa1d8146107b1578063e3fb1ac6146107c4578063e7356cb5146107d7576103ba565b8063c5f4127a14610752578063c87b56dd14610765578063c8be6b9b14610778578063cdc2cfe21461078b576103ba565b8063b309c36b11610192578063b88d4fde11610161578063b88d4fde146106f8578063b93a89f71461070b578063bc0485251461072c578063bd1562731461073f576103ba565b8063b309c36b146106b7578063b32c4d8d146106ca578063b4654a43146106dd578063b76e8d01146106e5576103ba565b8063a22cb465116101ce578063a22cb46514610656578063a9c1a20014610669578063ab17d0401461067c578063b0c4297c146106a4576103ba565b806395d89b41146106335780639f181b5e1461063b578063a138e44e14610643576103ba565b806342966c68116102e4578063715018a61161027757806387996cbd1161024657806387996cbd146105fb5780638da5cb5b146106105780638e08fc96146106185780638f32d59b1461062b576103ba565b8063715018a6146105ba5780637962d59b146105c2578063815d9fa0146105d5578063856516c3146105e8576103ba565b80636352211e116102b35780636352211e146105795780636602eaf91461058c5780636c0360eb1461059f57806370a08231146105a7576103ba565b806342966c681461051f57806358895f62146105325780635ac44282146105455780635b65afe914610566576103ba565b806318160ddd1161035c578063248850871161032b57806324885087146104d357806337514295146104e65780633af07256146104f957806342842e0e1461050c576103ba565b806318160ddd146104785780631e5073931461048d5780631fe25e4f146104a057806323b872dd146104c0576103ba565b8063081812fc11610398578063081812fc1461041d578063095ea7b31461043d5780630bbe0ee314610452578063100cdd9114610465576103ba565b806301ffc9a7146103bf57806302b19cea146103e857806306fdde0314610408575b600080fd5b6103d26103cd36600461358e565b61086f565b6040516103df9190614147565b60405180910390f35b6103fb6103f6366004613551565b610892565b6040516103df9190614479565b6104106108c3565b6040516103df91906141e9565b61043061042b366004613551565b610959565b6040516103df91906140f5565b61045061044b36600461348d565b6109de565b005b610450610460366004613231565b610ae8565b61045061047336600461351c565b610b20565b610480610b54565b6040516103df91906141db565b61045061049b3660046131d9565b610b5a565b6104b36104ae3660046131d9565b610ba0565b6040516103df919061445d565b6104506104ce366004613296565b610bba565b6103d26104e136600461348d565b610bef565b6104806104f436600461356f565b610c0f565b610480610507366004613551565b610c46565b61045061051a366004613296565b610c78565b61045061052d366004613551565b610c93565b610450610540366004613642565b610cc4565b610558610553366004613551565b610cf9565b6040516103df92919061446b565b61048061057436600461344a565b610d4f565b610430610587366004613551565b610de5565b61043061059a3660046136a4565b610ed3565b610410610eee565b6104806105b53660046131d9565b610f27565b610450610f42565b6104506105d0366004613231565b610fb0565b6104806105e3366004613551565b610fe2565b6104806105f63660046135ca565b611008565b610603611169565b6040516103df9190614419565b61043061116f565b6104806106263660046133a7565b61117e565b6103d26111e3565b6104106111f4565b610480611255565b610480610651366004613551565b61125b565b61045061066436600461341a565b611280565b61045061067736600461356f565b611318565b61068f61068a366004613551565b61134c565b6040516103df99989796959493929190614155565b6104506106b2366004613352565b6113bd565b6103d26106c5366004613551565b6113e1565b6105586106d8366004613551565b6113f6565b610480611428565b6106036106f3366004613551565b61142e565b6104506107063660046132d9565b611463565b61071e610719366004613551565b611496565b6040516103df929190614442565b61045061073a366004613551565b611500565b61048061074d366004613551565b61156e565b610450610760366004613352565b611580565b610410610773366004613551565b61159d565b6104806107863660046133a7565b61160f565b61048061079936600461356f565b611674565b6103d26107ac366004613624565b61169b565b6103d26107bf366004613551565b6116b0565b6104506107d2366004613674565b611731565b610430611850565b61048061185f565b6104506107f53660046134bd565b611865565b6103d26108083660046131f7565b611b60565b61045061081b36600461348d565b611b8e565b61045061082e3660046131d9565b611c55565b610603610841366004613551565b611c82565b610480611c8f565b61086161085c366004613551565b611c95565b6040516103df929190614427565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b6016818154811061089f57fe5b9060005260206000209060209182820401919006915054906101000a900460ff1681565b60068054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561094f5780601f106109245761010080835404028352916020019161094f565b820191906000526020600020905b81548152906001019060200180831161093257829003601f168201915b5050505050905090565b600061096482611cc1565b6109895760405162461bcd60e51b81526004016109809061436a565b60405180910390fd5b60096000600f848154811061099a57fe5b6000918252602080832060058084049091015492066006026101000a90910465ffffffffffff1683528201929092526040019020546001600160a01b031692915050565b60006109e982610de5565b9050806001600160a01b0316836001600160a01b03161415610a1d5760405162461bcd60e51b8152600401610980906143ba565b336001600160a01b0382161480610a395750610a398133611b60565b610a555760405162461bcd60e51b81526004016109809061430a565b610a5e83611cde565b600f8381548110610a6b57fe5b90600052602060002090600591828204019190066006026101000a81548165ffffffffffff021916908365ffffffffffff16021790555081836001600160a01b0316826001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60005b8151811015610b1a57610b128484848481518110610b0557fe5b6020026020010151610bba565b600101610aeb565b50505050565b60005b8151811015610b5057610b48828281518110610b3b57fe5b6020026020010151610c93565b600101610b23565b5050565b600d5490565b610b626111e3565b610b7e5760405162461bcd60e51b81526004016109809061437a565b601880546001600160a01b0319166001600160a01b0392909216919091179055565b600a6020526000908152604090205465ffffffffffff1681565b610bc3816116b0565b610bdf5760405162461bcd60e51b81526004016109809061428a565b610bea838383611da0565b505050565b601c60209081526000928352604080842090915290825290205460ff1681565b600060018383604051602001610c27939291906140be565b6040516020818303038152906040528051906020012090505b92915050565b60008082604051602001610c5b929190614098565b604051602081830303815290604052805190602001209050919050565b610bea83838360405180602001604052806000815250611463565b610c9c816116b0565b610cb85760405162461bcd60e51b81526004016109809061428a565b610cc181611f60565b50565b6018546001600160a01b03163314610cee5760405162461bcd60e51b81526004016109809061420a565b610bea8383836120b9565b60008060108381548110610d0957fe5b6000918252602090912001546010805465ffffffffffff9092169185908110610d2e57fe5b6000918252602090912001549094600160301b90910461ffff169350915050565b600080610d5d856001612118565b9050610d68846121f3565b8360158281548110610d7657fe5b90600052602060002090601091828204019190066002026101000a81548161ffff021916908361ffff1602179055508260168281548110610db357fe5b90600052602060002090602091828204019190066101000a81548160ff021916908360ff160217905550509392505050565b600080600e8381548110610df557fe5b90600052602060002090600591828204019190066006029054906101000a900465ffffffffffff1690508065ffffffffffff1660001415610ead576000610e3b84610fe2565b9050610e45612e25565b60108281548110610e5257fe5b60009182526020918290206040805180820190915291015465ffffffffffff81168252600160301b900461ffff16918101829052915082018510610ea85760405162461bcd60e51b8152600401610980906143ea565b519150505b65ffffffffffff166000908152600960205260409020546001600160a01b031692915050565b6009602052600090815260409020546001600160a01b031681565b6040518060400160405280602081526020017f68747470733a2f2f6170692e696d6d757461626c652e636f6d2f746f6b656e2f81525081565b6001600160a01b031660009081526013602052604090205490565b610f4a6111e3565b610f665760405162461bcd60e51b81526004016109809061437a565b6005546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600580546001600160a01b0319169055565b60005b8151811015610b1a57610fda8484848481518110610fcd57fe5b6020026020010151610c78565b600101610fb3565b600b54600090610c4090610ffc848263ffffffff6122c616565b9063ffffffff6122fb16565b60008261ffff168261ffff16116110315760405162461bcd60e51b81526004016109809061432a565b601a5415806110645750601a8054600019810190811061104d57fe5b60009182526020909120015461ffff908116908416115b6110805760405162461bcd60e51b81526004016109809061424a565b6040805180820190915261ffff808416825284811660208301818152601a80546001818101835560009290925294517f057c384a7d1c54f3a1b2e5e67b2617b8224fdfd1ea7234eea573a6ff665ff63e8601805493518616620100000263ffff00001992871661ffff1990951694909417919091169290921790915560179261111492849290918989039091011685612335565b8361ffff168561ffff168361ffff167f894c7f27fb3eb8728566da10c21ff64cffafe6700bf22074e653fcd20acc8bba8960405161115291906141e9565b60405180910390a45061ffff1690505b9392505050565b61fde881565b6005546001600160a01b031690565b6000808351116111a05760405162461bcd60e51b81526004016109809061431a565b81518351146111c15760405162461bcd60e51b8152600401610980906143fa565b60006111ce858551612379565b90506111db8185856124e4565b949350505050565b6005546001600160a01b0316331490565b60078054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561094f5780601f106109245761010080835404028352916020019161094f565b600d5481565b60006014600061126a84610c46565b8152602001908152602001600020549050919050565b6001600160a01b0382163314156112a95760405162461bcd60e51b8152600401610980906142aa565b3360008181526004602090815260408083206001600160a01b038716808552925291829020805460ff191685151517905590519091907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319061130c908590614147565b60405180910390a35050565b6018546001600160a01b031633146113425760405162461bcd60e51b81526004016109809061420a565b610b508282612507565b6019818154811061135957fe5b60009182526020909120015460ff80821692506101008204811691620100008104821691630100000082048116916401000000008104821691650100000000008204811691600160301b8104821691600160381b8204811691600160401b90041689565b815b818110156113da576113d2858583610c78565b6001016113bf565b5050505050565b601b6020526000908152604090205460ff1681565b6010818154811061140357fe5b60009182526020909120015465ffffffffffff81169150600160301b900461ffff1682565b60125481565b6017818154811061143b57fe5b9060005260206000209060109182820401919006600202915054906101000a900461ffff1681565b61146e848484610bba565b61147a8484848461252a565b610b1a5760405162461bcd60e51b81526004016109809061422a565b600080601583815481106114a657fe5b90600052602060002090601091828204019190066002029054906101000a900461ffff16601684815481106114d757fe5b90600052602060002090602091828204019190069054906101000a900460ff1691509150915091565b6115086111e3565b6115245760405162461bcd60e51b81526004016109809061437a565b6000818152601b602052604090205460ff16156115535760405162461bcd60e51b8152600401610980906143da565b6000908152601b60205260409020805460ff19166001179055565b60146020526000908152604090205481565b815b818110156113da57611595858583610bba565b600101611582565b60606040518060400160405280602081526020017f68747470733a2f2f6170692e696d6d757461626c652e636f6d2f746f6b656e2f8152506115de306125ef565b6115e78461278d565b6040516020016115f993929190614060565b6040516020818303038152906040529050919050565b6000808351116116315760405162461bcd60e51b81526004016109809061431a565b81518351146116525760405162461bcd60e51b8152600401610980906143fa565b600061165f858551612118565b905061166c8185856124e4565b509392505050565b6000601460006116848585610c0f565b815260200190815260200160002054905092915050565b601d6020526000908152604090205460ff1681565b6000601b60006017601585815481106116c557fe5b90600052602060002090601091828204019190066002029054906101000a900461ffff1661ffff16815481106116f757fe5b60009182526020808320601083040154600f9092166002026101000a90910461ffff16835282019290925260400190205460ff1692915050565b60006015838154811061174057fe5b90600052602060002090601091828204019190066002029054906101000a900461ffff169050600060178261ffff168154811061177957fe5b60009182526020808320601083040154338452601c82526040808520600f9094166002026101000a90910461ffff16808552929091529091205490915060ff166117d55760405162461bcd60e51b8152600401610980906143ca565b8260168460ff16815481106117e657fe5b90600052602060002090602091828204019190066101000a81548160ff021916908360ff160217905550837f892269e637adec3404715b55a46b36fba9383a540f8f5859b364909469fcd04d8433604051611842929190614487565b60405180910390a250505050565b6018546001600160a01b031681565b600c5481565b61186d6111e3565b6118895760405162461bcd60e51b81526004016109809061437a565b80518251146118aa5760405162461bcd60e51b81526004016109809061421a565b60005b8251811015610bea5760008382815181106118c457fe5b602002602001015190506118d6612e3c565b60198261ffff16815481106118e757fe5b60009182526020918290206040805161012081018252929091015460ff808216158015855261010080840483161515968601969096526201000083048216938501939093526301000000820481166060850152640100000000820481166080850152650100000000008204811660a0850152600160301b8204811660c0850152600160381b8204811660e0850152600160401b909104169282019290925291506119a35760405162461bcd60e51b8152600401610980906142ba565b6119ab612e3c565b8484815181106119b757fe5b6020026020010151905060018160200190151590811515815250508060198461ffff16815481106119e457fe5b9060005260206000200160008201518160000160006101000a81548160ff02191690831515021790555060208201518160000160016101000a81548160ff02191690831515021790555060408201518160000160026101000a81548160ff021916908360ff16021790555060608201518160000160036101000a81548160ff021916908360ff16021790555060808201518160000160046101000a81548160ff021916908360ff16021790555060a08201518160000160056101000a81548160ff021916908360ff16021790555060c08201518160000160066101000a81548160ff021916908360ff16021790555060e08201518160000160076101000a81548160ff021916908360ff1602179055506101008201518160000160086101000a81548160ff021916908360ff1602179055509050508261ffff167f504019a523d581f1e2ed480529c82e25df517a9c11d8165a004952d97dcd487682604051611b4d919061440a565b60405180910390a25050506001016118ad565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205460ff1690565b611b966111e3565b611bb25760405162461bcd60e51b81526004016109809061437a565b6001600160a01b0382166000908152601c6020908152604080832084845290915290205460ff1615611bf65760405162461bcd60e51b81526004016109809061438a565b6000818152601b602052604090205460ff1615611c255760405162461bcd60e51b8152600401610980906143da565b6001600160a01b039091166000908152601c6020908152604080832093835292905220805460ff19166001179055565b611c5d6111e3565b611c795760405162461bcd60e51b81526004016109809061437a565b610cc181612851565b6015818154811061143b57fe5b600b5481565b601a8181548110611ca257fe5b60009182526020909120015461ffff8082169250620100009091041682565b600080611ccd83610de5565b6001600160a01b0316141592915050565b6001600160a01b0381166000908152600a602052604081205465ffffffffffff1680610c405760115465ffffffffffff9081166001810190911611611d355760405162461bcd60e51b81526004016109809061427a565b506011805465ffffffffffff8082166001810190911665ffffffffffff1992831617909255600082815260096020908152604080832080546001600160a01b0389166001600160a01b031990911681179091558352600a909152902080549091168217905592915050565b826001600160a01b0316611db382610de5565b6001600160a01b031614611dd95760405162461bcd60e51b81526004016109809061439a565b6001600160a01b038216611dff5760405162461bcd60e51b81526004016109809061429a565b611e0933826128d3565b611e255760405162461bcd60e51b81526004016109809061435a565b600f8181548110611e3257fe5b90600052602060002090600591828204019190066006029054906101000a900465ffffffffffff1665ffffffffffff16600014611eb0576000600f8281548110611e7857fe5b90600052602060002090600591828204019190066006026101000a81548165ffffffffffff021916908365ffffffffffff1602179055505b6001600160a01b03808416600090815260136020526040808220805460001901905591841681522080546001019055611ee882611cde565b600e8281548110611ef557fe5b90600052602060002090600591828204019190066006026101000a81548165ffffffffffff021916908365ffffffffffff16021790555080826001600160a01b0316846001600160a01b031660008051602061460183398151915260405160405180910390a4505050565b611f6a33826128d3565b611f865760405162461bcd60e51b8152600401610980906143aa565b600f8181548110611f9357fe5b90600052602060002090600591828204019190066006029054906101000a900465ffffffffffff1665ffffffffffff16600014612011576000600f8281548110611fd957fe5b90600052602060002090600591828204019190066006026101000a81548165ffffffffffff021916908365ffffffffffff1602179055505b600061201c82610de5565b6001600160a01b03811660009081526013602052604081208054600019019055600e805492935090918490811061204f57fe5b60009182526020822060058083049091018054919092066006026101000a65ffffffffffff81810219909216949091160292909217909155600d80546000190190556040518391906001600160a01b03841690600080516020614601833981519152908390a45050565b80601460006120c88686610c0f565b81526020019081526020016000208190555081837fe437ad402a50c14d9de944e1d68d9708776aaccb860bd49a6e875a64e7d0b22a8360405161210b91906141db565b60405180910390a3505050565b60125460009061ffff831681018261212f86611cde565b9050825b828110156121b35760405181906001600160a01b03891690600090600080516020614601833981519152908290a481600e828154811061216f57fe5b90600052602060002090600591828204019190066006026101000a81548165ffffffffffff021916908365ffffffffffff1602179055508080600101915050612133565b50506012805461ffff959095169485019055506001600160a01b0393909316600090815260136020526040902080548301905550600d8054909101905590565b61fde861ffff8216106122575761ffff81166000908152601d602052604090205460ff16156122345760405162461bcd60e51b81526004016109809061425a565b61ffff81166000908152601d60205260409020805460ff19166001179055610cc1565b600060178261ffff168154811061226a57fe5b60009182526020808320601083040154338452601c82526040808520600f9094166002026101000a90910461ffff16808552929091529091205490915060ff16610b505760405162461bcd60e51b8152600401610980906142fa565b60008082116122e75760405162461bcd60e51b8152600401610980906142ea565b60008284816122f257fe5b04949350505050565b60008261230a57506000610c40565b8282028284828161231757fe5b04146111625760405162461bcd60e51b81526004016109809061433a565b60606123448585601086612950565b905060005b8381101561236b5761236382866010848761ffff16612a16565b600101612349565b506113da8585601084612a9e565b60006001600160a01b0383166123a15760405162461bcd60e51b81526004016109809061434a565b60008261ffff161180156123bb5750600b548261ffff1611155b6123d75760405162461bcd60e51b8152600401610980906141fa565b60006123e1612afb565b905060006123ee85611cde565b905060405180604001604052808265ffffffffffff1681526020018561ffff168152506010838154811061241e57fe5b6000918252602091829020835191018054939092015165ffffffffffff1990931665ffffffffffff9091161767ffff0000000000001916600160301b61ffff9384160217905584168201825b818110156124a05760405181906001600160a01b03891690600090600080516020614601833981519152908290a460010161246a565b5050600b54600c80549091019055506001600160a01b03939093166000908152601360205260409020805461ffff93909316928301905550600d8054909101905590565b6124ed82612b28565b60156124fa818585612cb2565b60166113da818685612d0b565b806014600061251585610c46565b81526020810191909152604001600020555050565b600061253e846001600160a01b0316612d63565b61254a575060016111db565b604051630a85bd0160e11b81526000906001600160a01b0386169063150b7a029061257f9033908a9089908990600401614103565b602060405180830381600087803b15801561259957600080fd5b505af11580156125ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506125d191908101906135ac565b6001600160e01b031916630a85bd0160e11b14915050949350505050565b60408051602a80825260608281019093526001600160a01b038416918391602082018180388339019050509050600360fc1b8160008151811061262e57fe5b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061265757fe5b60200101906001600160f81b031916908160001a90535060005b601481101561166c576040518060400160405280601081526020016f181899199a1a9b1b9c1cb0b131b232b360811b81525060048483600c01602081106126b457fe5b1a60f81b6001600160f81b031916901c60f81c60ff16815181106126d457fe5b602001015160f81c60f81b8282600202600201815181106126f157fe5b60200101906001600160f81b031916908160001a9053506040518060400160405280601081526020016f181899199a1a9b1b9c1cb0b131b232b360811b8152508382600c016020811061274057fe5b825191901a600f1690811061275157fe5b602001015160f81c60f81b82826002026003018151811061276e57fe5b60200101906001600160f81b031916908160001a905350600101612671565b6060816127b257506040805180820190915260018152600360fc1b602082015261088d565b8160005b81156127ca57600101600a820491506127b6565b6060816040519080825280601f01601f1916602001820160405280156127f7576020820181803883390190505b50859350905060001982015b831561284857600a840660300160f81b8282806001900393508151811061282657fe5b60200101906001600160f81b031916908160001a905350600a84049350612803565b50949350505050565b6001600160a01b0381166128775760405162461bcd60e51b81526004016109809061423a565b6005546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0319166001600160a01b0392909216919091179055565b60006128de82611cc1565b6128fa5760405162461bcd60e51b8152600401610980906142ca565b600061290583610de5565b9050806001600160a01b0316846001600160a01b031614806129405750836001600160a01b031661293584610959565b6001600160a01b0316145b806111db57506111db8185611b60565b6060600061295f858585612d69565b90508060405190808252806020026020018201604052801561298b578160200160208202803883390190505b509150600061299a8686612d99565b90506129a68782612dac565b836000815181106129b357fe5b6020026020010181815250506001821115612a0c5760006129e36129dd888763ffffffff612dc216565b87612d99565b90506129ef8882612dac565b8460018503815181106129fe57fe5b602002602001018181525050505b5050949350505050565b60008361010081612a2357fe5b0490506000818681612a3157fe5b06905060008285830181612a4157fe5b0490506000868489880181612a5257fe5b0602905060005b87811015612a92578082018187901c60ff16901b8a8481518110612a7957fe5b6020908102919091010180519091179052600801612a59565b50505050505050505050565b6000612abd8361010081612aae57fe5b8691900463ffffffff6122c616565b905060005b8251811015612af357612aeb86828401858481518110612ade57fe5b6020026020010151612de7565b600101612ac2565b505050505050565b6000600c546012541115612b2157612b1d600b54610ffc601254600b54612dfc565b600c555b50600c5490565b600061ffff815b8351811015612be9576000848281518110612b4657fe5b6020026020010151905061fde861ffff168161ffff1610612bb85761ffff81166000908152601d602052604090205460ff1615612b955760405162461bcd60e51b81526004016109809061425a565b61ffff81166000908152601d60205260409020805460ff19166001179055612be0565b8361ffff168161ffff161115612bcc578093505b8061ffff168361ffff161115612be0578092505b50600101612b2f565b50600060178361ffff1681548110612bfd57fe5b90600052602060002090601091828204019190066002029054906101000a900461ffff1661ffff16905060178261ffff1681548110612c3857fe5b60009182526020909120601082040154600f9091166002026101000a900461ffff168114612c785760405162461bcd60e51b8152600401610980906142da565b336000908152601c6020908152604080832084845290915290205460ff16610b1a5760405162461bcd60e51b8152600401610980906142fa565b6060612cc2848460108551612950565b905060005b8251811015612cfd57612cf58285601084878681518110612ce457fe5b602002602001015161ffff16612a16565b600101612cc7565b50610b1a8484601084612a9e565b6060612d1b848460208551612950565b905060005b8251811015612d5557612d4d8285600884878681518110612d3d57fe5b602002602001015160ff16612a16565b600101612d20565b50610b1a8484600884612a9e565b3b151590565b600080838581612d7557fe5b04905060008484870181612d8557fe5b049050818103600101925050509392505050565b6000818381612da457fe5b049392505050565b600080612db98484612e16565b54949350505050565b6000828201838110156111625760405162461bcd60e51b81526004016109809061426a565b6000612df38484612e16565b91909155505050565b6000816001840381612e0a57fe5b04600101905092915050565b60405191825260209091200190565b604080518082019091526000808252602082015290565b6040805161012081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e0810182905261010081019190915290565b8035610c40816145b6565b600082601f830112612ea457600080fd5b8135612eb7612eb2826144c9565b6144a2565b9150818183526020840193506020810190508385610120840282011115612edd57600080fd5b60005b83811015612f0c5781612ef388826130e1565b8452506020909201916101209190910190600101612ee0565b5050505092915050565b600082601f830112612f2757600080fd5b8135612f35612eb2826144c9565b91508181835260208401935060208101905083856020840282011115612f5a57600080fd5b60005b83811015612f0c5781612f7088826131b8565b8452506020928301929190910190600101612f5d565b600082601f830112612f9757600080fd5b8135612fa5612eb2826144c9565b91508181835260208401935060208101905083856020840282011115612fca57600080fd5b60005b83811015612f0c5781612fe08882613071565b8452506020928301929190910190600101612fcd565b600082601f83011261300757600080fd5b8135613015612eb2826144c9565b9150818183526020840193506020810190508385602084028201111561303a57600080fd5b60005b83811015612f0c578161305088826131ce565b845250602092830192919091019060010161303d565b8035610c40816145ca565b8035610c40816145d3565b8035610c40816145dc565b8051610c40816145dc565b600082601f8301126130a357600080fd5b81356130b1612eb2826144ea565b915080825260208301602083018583830111156130cd57600080fd5b6130d8838284614574565b50505092915050565b600061012082840312156130f457600080fd5b6130ff6101206144a2565b9050600061310d8484613066565b825250602061311e84848301613066565b6020830152506040613132848285016131ce565b6040830152506060613146848285016131ce565b606083015250608061315a848285016131ce565b60808301525060a061316e848285016131ce565b60a08301525060c0613182848285016131ce565b60c08301525060e0613196848285016131ce565b60e0830152506101006131ab848285016131ce565b6101008301525092915050565b8035610c40816145e5565b8035610c40816145ee565b8035610c40816145f7565b6000602082840312156131eb57600080fd5b60006111db8484612e88565b6000806040838503121561320a57600080fd5b60006132168585612e88565b925050602061322785828601612e88565b9150509250929050565b60008060006060848603121561324657600080fd5b60006132528686612e88565b935050602061326386828701612e88565b925050604084013567ffffffffffffffff81111561328057600080fd5b61328c86828701612f86565b9150509250925092565b6000806000606084860312156132ab57600080fd5b60006132b78686612e88565b93505060206132c886828701612e88565b925050604061328c86828701613071565b600080600080608085870312156132ef57600080fd5b60006132fb8787612e88565b945050602061330c87828801612e88565b935050604061331d87828801613071565b925050606085013567ffffffffffffffff81111561333a57600080fd5b61334687828801613092565b91505092959194509250565b6000806000806080858703121561336857600080fd5b60006133748787612e88565b945050602061338587828801612e88565b935050604061339687828801613071565b925050606061334687828801613071565b6000806000606084860312156133bc57600080fd5b60006133c88686612e88565b935050602084013567ffffffffffffffff8111156133e557600080fd5b6133f186828701612f16565b925050604084013567ffffffffffffffff81111561340e57600080fd5b61328c86828701612ff6565b6000806040838503121561342d57600080fd5b60006134398585612e88565b925050602061322785828601613066565b60008060006060848603121561345f57600080fd5b600061346b8686612e88565b935050602061347c868287016131b8565b925050604061328c868287016131ce565b600080604083850312156134a057600080fd5b60006134ac8585612e88565b925050602061322785828601613071565b600080604083850312156134d057600080fd5b823567ffffffffffffffff8111156134e757600080fd5b6134f385828601612f16565b925050602083013567ffffffffffffffff81111561351057600080fd5b61322785828601612e93565b60006020828403121561352e57600080fd5b813567ffffffffffffffff81111561354557600080fd5b6111db84828501612f86565b60006020828403121561356357600080fd5b60006111db8484613071565b6000806040838503121561358257600080fd5b60006134ac8585613071565b6000602082840312156135a057600080fd5b60006111db848461307c565b6000602082840312156135be57600080fd5b60006111db8484613087565b6000806000606084860312156135df57600080fd5b833567ffffffffffffffff8111156135f657600080fd5b61360286828701613092565b9350506020613613868287016131b8565b925050604061328c868287016131b8565b60006020828403121561363657600080fd5b60006111db84846131b8565b60008060006060848603121561365757600080fd5b60006136638686613071565b93505060206132c886828701613071565b6000806040838503121561368757600080fd5b60006136938585613071565b9250506020613227858286016131ce565b6000602082840312156136b657600080fd5b60006111db84846131c3565b6136cb81614563565b82525050565b6136cb8161451f565b6136cb8161452a565b6136cb8161452f565b6136cb6136f88261452f565b61452f565b600061370882614512565b6137128185614516565b9350613722818560208601614580565b61372b816145ac565b9093019392505050565b600061374082614512565b61374a818561088d565b935061375a818560208601614580565b9290920192915050565b6000613771601a83614516565b7f73697a65206d7573742062652077697468696e206c696d697473000000000000815260200192915050565b60006137aa601883614516565b7f6d7573742062652070726f7065727479206d616e616765720000000000000000815260200192915050565b60006137e3602283614516565b7f6964732f70726f746f73206d757374206265207468652073616d65206c656e678152610e8d60f31b602082015260400192915050565b6000613827603283614516565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527131b2b4bb32b91034b6b83632b6b2b73a32b960711b602082015260400192915050565b600061387b602683614516565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181526564647265737360d01b602082015260400192915050565b60006138c3601683614516565b750736561736f6e732063616e6e6f74206f7665726c61760541b815260200192915050565b60006138f5601f83614516565b7f6d79746869632068617320616c7265616479206265656e206372656174656400815260200192915050565b600061392e601b83614516565b7f536166654d6174683a206164646974696f6e206f766572666c6f770000000000815260200192915050565b6000613967601183614516565b706d757374206e6f74206f766572666c6f7760781b815260200192915050565b6000613994601083614516565b6f6e6f7420796574207472616461626c6560801b815260200192915050565b60006139c0602483614516565b7f4552433732313a207472616e7366657220746f20746865207a65726f206164648152637265737360e01b602082015260400192915050565b6000613a06601983614516565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000815260200192915050565b6000613a3f600f83614516565b6e1c1c9bdd1bc81a5cc81b1bd8dad959608a1b815260200192915050565b6000613a6a602c83614516565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015260400192915050565b6000613ab8602a83614516565b7f63616e206f6e6c79206372656174652063617264732066726f6d20746865207381526930b6b29039b2b0b9b7b760b11b602082015260400192915050565b6000613b04601a83614516565b7f536166654d6174683a206469766973696f6e206279207a65726f000000000000815260200192915050565b6000613b3d602883614516565b7f6d75737420626520617070726f76656420666163746f727920666f7220746869815267399039b2b0b9b7b760c11b602082015260400192915050565b6000613b87603883614516565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7781527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015260400192915050565b6000613be6601383614516565b726d75737420626520736f6d652070726f746f7360681b815260200192915050565b6000613c15601583614516565b746d75737420626520612076616c69642072616e676560581b815260200192915050565b6000613c46602183614516565b7f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f8152607760f81b602082015260400192915050565b6000613c89601083614516565b6f1b5d5cdd081b9bdd081899481b9d5b1b60821b815260200192915050565b6000613cb5602883614516565b7f4552433732313a2063616c6c6572206973206e6f74206f776e6572206e6f7220815267185c1c1c9bdd995960c21b602082015260400192915050565b6000613cff602c83614516565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657881526b34b9ba32b73a103a37b5b2b760a11b602082015260400192915050565b6000613d4d602083614516565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572815260200192915050565b6000613d86602083614516565b7f7468697320666163746f727920697320616c726561647920617070726f766564815260200192915050565b6000613dbf602983614516565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206981526839903737ba1037bbb760b91b602082015260400192915050565b6000613e0a602083614516565b7f63616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564815260200192915050565b6000613e43602183614516565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e658152603960f91b602082015260400192915050565b6000613e86602b83614516565b7f666163746f72792063616e2774206368616e6765207175616c697479206f662081526a3a3434b99039b2b0b9b7b760a91b602082015260400192915050565b6000613ed3601b83614516565b7f736561736f6e206d757374206e6f74206265207472616461626c650000000000815260200192915050565b6000613f0c601483614516565b731d1bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b815260200192915050565b6000613f3c602b83614516565b7f6d757374206265207468652073616d65206e756d626572206f662070726f746f81526a732f7175616c697469657360a81b602082015260400192915050565b6000613f8960018361088d565b602f60f81b815260010192915050565b8051610120830190613fab84826136da565b506020820151613fbe60208501826136da565b506040820151613fd16040850182614057565b506060820151613fe46060850182614057565b506080820151613ff76080850182614057565b5060a082015161400a60a0850182614057565b5060c082015161401d60c0850182614057565b5060e082015161403060e0850182614057565b50610100820151610b1a610100850182614057565b6136cb8161453f565b6136cb81614552565b6136cb8161455d565b600061406c8286613735565b91506140788285613735565b915061408382613f7c565b915061408f8284613735565b95945050505050565b60006140a482856136ec565b6020820191506140b482846136ec565b5060200192915050565b60006140ca82866136ec565b6020820191506140da82856136ec565b6020820191506140ea82846136ec565b506020019392505050565b60208101610c4082846136d1565b6080810161411182876136c2565b61411e60208301866136d1565b61412b60408301856136e3565b818103606083015261413d81846136fd565b9695505050505050565b60208101610c4082846136da565b6101208101614164828c6136da565b614171602083018b6136da565b61417e604083018a614057565b61418b6060830189614057565b6141986080830188614057565b6141a560a0830187614057565b6141b260c0830186614057565b6141bf60e0830185614057565b6141cd610100830184614057565b9a9950505050505050505050565b60208101610c4082846136e3565b6020808252810161116281846136fd565b60208082528101610c4081613764565b60208082528101610c408161379d565b60208082528101610c40816137d6565b60208082528101610c408161381a565b60208082528101610c408161386e565b60208082528101610c40816138b6565b60208082528101610c40816138e8565b60208082528101610c4081613921565b60208082528101610c408161395a565b60208082528101610c4081613987565b60208082528101610c40816139b3565b60208082528101610c40816139f9565b60208082528101610c4081613a32565b60208082528101610c4081613a5d565b60208082528101610c4081613aab565b60208082528101610c4081613af7565b60208082528101610c4081613b30565b60208082528101610c4081613b7a565b60208082528101610c4081613bd9565b60208082528101610c4081613c08565b60208082528101610c4081613c39565b60208082528101610c4081613c7c565b60208082528101610c4081613ca8565b60208082528101610c4081613cf2565b60208082528101610c4081613d40565b60208082528101610c4081613d79565b60208082528101610c4081613db2565b60208082528101610c4081613dfd565b60208082528101610c4081613e36565b60208082528101610c4081613e79565b60208082528101610c4081613ec6565b60208082528101610c4081613eff565b60208082528101610c4081613f2f565b6101208101610c408284613f99565b60208101610c408284614045565b604081016144358285614045565b6111626020830184614045565b604081016144508285614045565b6111626020830184614057565b60208101610c40828461404e565b60408101614435828561404e565b60208101610c408284614057565b604081016144958285614057565b61116260208301846136c2565b60405181810167ffffffffffffffff811182821017156144c157600080fd5b604052919050565b600067ffffffffffffffff8211156144e057600080fd5b5060209081020190565b600067ffffffffffffffff82111561450157600080fd5b506020601f91909101601f19160190565b5190565b90815260200190565b6000610c4082614546565b151590565b90565b6001600160e01b03191690565b61ffff1690565b6001600160a01b031690565b65ffffffffffff1690565b60ff1690565b6000610c40826000610c408261451f565b82818337506000910152565b60005b8381101561459b578181015183820152602001614583565b83811115610b1a5750506000910152565b601f01601f191690565b6145bf8161451f565b8114610cc157600080fd5b6145bf8161452a565b6145bf8161452f565b6145bf81614532565b6145bf8161453f565b6145bf81614552565b6145bf8161455d56feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa365627a7a723158202c3df7758c4f7479c8054cb0b45214c04f32af0720dfe58213cc0d724e3637f86c6578706572696d656e74616cf564736f6c634300050b0040

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

00000000000000000000000000000000000000000000000000000000000004e3000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000014476f647320556e636861696e656420436172647300000000000000000000000000000000000000000000000000000000000000000000000000000000000000044341524400000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _batchSize (uint256): 1251
Arg [1] : _name (string): Gods Unchained Cards
Arg [2] : _symbol (string): CARD

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000004e3
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [4] : 476f647320556e636861696e6564204361726473000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [6] : 4341524400000000000000000000000000000000000000000000000000000000


Swarm Source

bzzr://2c3df7758c4f7479c8054cb0b45214c04f32af0720dfe58213cc0d724e3637f8
Loading...
Loading
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.