Contract Address Details

0xfeEa3eDf8bf3d3Ff29a5946ef617E1BD1B4E6b6f

Contract Name
OpenDesertV2
Creator
0x19f4c9–66d2c1 at 0x4ec342–c2158d
Balance
0.075 Doge
Tokens
Fetching tokens...
Transactions
6 Transactions
Transfers
6 Transfers
Gas Used
1,093,401
Last Balance Update
26351363
Contract name:
OpenDesertV2




Optimization enabled
false
Compiler version
v0.8.17+commit.8df45f5f




EVM Version
default




Verified at
2022-12-03T20:33:27.146263Z

Constructor Arguments

0000000000000000000000000000000000000000000000000000000000000096

Arg [0] (uint16) : 150

              

Contract source code

// File: @openzeppelin/contracts/utils/Context.sol


// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

// File: @openzeppelin/contracts/access/Ownable.sol


// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;


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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

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

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

// File: @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol


// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

// File: @openzeppelin/contracts/token/ERC721/utils/ERC721Holder.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC721/utils/ERC721Holder.sol)

pragma solidity ^0.8.0;


/**
 * @dev Implementation of the {IERC721Receiver} interface.
 *
 * Accepts all token transfers.
 * Make sure the contract is able to use its token with {IERC721-safeTransferFrom}, {IERC721-approve} or {IERC721-setApprovalForAll}.
 */
contract ERC721Holder is IERC721Receiver {
    /**
     * @dev See {IERC721Receiver-onERC721Received}.
     *
     * Always returns `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address,
        address,
        uint256,
        bytes memory
    ) public virtual override returns (bytes4) {
        return this.onERC721Received.selector;
    }
}

// File: @openzeppelin/contracts/utils/introspection/IERC165.sol


// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

// File: @openzeppelin/contracts/token/ERC721/IERC721.sol


// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;


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

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

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

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

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

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

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

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

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

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

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

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

// File: OpenDesertV2.sol


pragma solidity ^0.8.17;





contract OpenDesertV2 is IERC721Receiver, ERC721Holder, Ownable {

	uint16 public feePercent;

    constructor(uint16 _feePercent) {
        require(_feePercent <= 500, "Input value is more than 5%");
        feePercent = _feePercent;
    }

	function newFeePercent (uint16 _feePercent) external onlyOwner {
		feePercent = _feePercent;
	}

	error Unauthorized();
	error ListingNotFound();

	event NewListing(Listing listing);
	event ListingRemoved(Listing listing);
	event ListingBought(address indexed buyer, Listing listing);

	uint256 public saleCounter = 1;

	struct Listing {
		uint256 id;
		address tokenContract;
		uint256 tokenId;
		address creator;
		uint256 salePrice;
	}

	mapping(uint256 => Listing) public getListing;

	receive() external payable {}

	function list(address tokenContract, uint256 tokenId, uint256 salePrice) external returns (uint256) {
		Listing memory listing = Listing({
			id: saleCounter,
			tokenContract: tokenContract,
			tokenId: tokenId,
			salePrice: salePrice,
			creator: msg.sender
		});
		getListing[saleCounter] = listing;
		IERC721(listing.tokenContract).safeTransferFrom(msg.sender, address(this), listing.tokenId);
		emit NewListing(listing);
		return saleCounter++;
	}

	function cancelListing(uint256 listingId) external {
		Listing memory listing = getListing[listingId];
		if (listing.creator != msg.sender) revert Unauthorized();
		IERC721(listing.tokenContract).safeTransferFrom(address(this), msg.sender, listing.tokenId);
		emit ListingRemoved(listing);
        delete getListing[listingId];
	}

	function buyListing(uint256 listingId) external payable {
		Listing memory listing = getListing[listingId];
		if (listing.creator == address(0)) revert ListingNotFound();
		require(msg.value >= listing.salePrice, "Not enough coins sent, check salePrice");
		uint256 fee = listing.salePrice * feePercent / 10000;
		payable(listing.creator).transfer(listing.salePrice - fee);
        payable(address(this)).transfer(fee);
		IERC721(listing.tokenContract).safeTransferFrom(address(this), msg.sender, listing.tokenId);
		emit ListingBought(msg.sender, listing);
		delete getListing[listingId];
	}

    function transferValue(address payable _to) external onlyOwner {
        uint256 amount = address(this).balance;
        (bool success, ) = _to.call{value: amount}("");
        require(success, "Failed to send value");
    }
}
        

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"uint16","name":"_feePercent","internalType":"uint16"}]},{"type":"error","name":"ListingNotFound","inputs":[]},{"type":"error","name":"Unauthorized","inputs":[]},{"type":"event","name":"ListingBought","inputs":[{"type":"address","name":"buyer","internalType":"address","indexed":true},{"type":"tuple","name":"listing","internalType":"struct OpenDesertV2.Listing","indexed":false,"components":[{"type":"uint256","name":"id","internalType":"uint256"},{"type":"address","name":"tokenContract","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"address","name":"creator","internalType":"address"},{"type":"uint256","name":"salePrice","internalType":"uint256"}]}],"anonymous":false},{"type":"event","name":"ListingRemoved","inputs":[{"type":"tuple","name":"listing","internalType":"struct OpenDesertV2.Listing","indexed":false,"components":[{"type":"uint256","name":"id","internalType":"uint256"},{"type":"address","name":"tokenContract","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"address","name":"creator","internalType":"address"},{"type":"uint256","name":"salePrice","internalType":"uint256"}]}],"anonymous":false},{"type":"event","name":"NewListing","inputs":[{"type":"tuple","name":"listing","internalType":"struct OpenDesertV2.Listing","indexed":false,"components":[{"type":"uint256","name":"id","internalType":"uint256"},{"type":"address","name":"tokenContract","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"address","name":"creator","internalType":"address"},{"type":"uint256","name":"salePrice","internalType":"uint256"}]}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"function","stateMutability":"payable","outputs":[],"name":"buyListing","inputs":[{"type":"uint256","name":"listingId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"cancelListing","inputs":[{"type":"uint256","name":"listingId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint16","name":"","internalType":"uint16"}],"name":"feePercent","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"id","internalType":"uint256"},{"type":"address","name":"tokenContract","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"address","name":"creator","internalType":"address"},{"type":"uint256","name":"salePrice","internalType":"uint256"}],"name":"getListing","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"list","inputs":[{"type":"address","name":"tokenContract","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"uint256","name":"salePrice","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"newFeePercent","inputs":[{"type":"uint16","name":"_feePercent","internalType":"uint16"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bytes4","name":"","internalType":"bytes4"}],"name":"onERC721Received","inputs":[{"type":"address","name":"","internalType":"address"},{"type":"address","name":"","internalType":"address"},{"type":"uint256","name":"","internalType":"uint256"},{"type":"bytes","name":"","internalType":"bytes"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"saleCounter","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferValue","inputs":[{"type":"address","name":"_to","internalType":"address payable"}]},{"type":"receive","stateMutability":"payable"}]
            

Contract Creation Code

0x6080604052600180553480156200001557600080fd5b5060405162001aed38038062001aed83398181016040528101906200003b9190620001db565b6200005b6200004f620000cb60201b60201c565b620000d360201b60201c565b6101f48161ffff161115620000a7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200009e906200026e565b60405180910390fd5b80600060146101000a81548161ffff021916908361ffff1602179055505062000290565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b600061ffff82169050919050565b620001b5816200019c565b8114620001c157600080fd5b50565b600081519050620001d581620001aa565b92915050565b600060208284031215620001f457620001f362000197565b5b60006200020484828501620001c4565b91505092915050565b600082825260208201905092915050565b7f496e7075742076616c7565206973206d6f7265207468616e2035250000000000600082015250565b600062000256601b836200020d565b915062000263826200021e565b602082019050919050565b60006020820190508181036000830152620002898162000247565b9050919050565b61184d80620002a06000396000f3fe6080604052600436106100ab5760003560e01c8063493ab05811610064578063493ab058146101ce578063715018a6146101f75780637fd6f15c1461020e5780638da5cb5b14610239578063dda342bb14610264578063f2fde38b146102a1576100b2565b80630387b0a2146100b7578063107a274a146100e2578063150b7a02146101235780631e4198e014610160578063305a67a8146101895780634884f459146101b2576100b2565b366100b257005b600080fd5b3480156100c357600080fd5b506100cc6102ca565b6040516100d99190610ea1565b60405180910390f35b3480156100ee57600080fd5b5061010960048036038101906101049190610efc565b6102d0565b60405161011a959493929190610f6a565b60405180910390f35b34801561012f57600080fd5b5061014a6004803603810190610145919061112f565b610346565b60405161015791906111ed565b60405180910390f35b34801561016c57600080fd5b5061018760048036038101906101829190611246565b61035a565b005b34801561019557600080fd5b506101b060048036038101906101ab9190610efc565b610418565b005b6101cc60048036038101906101c79190610efc565b61069b565b005b3480156101da57600080fd5b506101f560048036038101906101f091906112ad565b610a54565b005b34801561020357600080fd5b5061020c610a7c565b005b34801561021a57600080fd5b50610223610a90565b60405161023091906112e9565b60405180910390f35b34801561024557600080fd5b5061024e610aa4565b60405161025b9190611304565b60405180910390f35b34801561027057600080fd5b5061028b6004803603810190610286919061131f565b610acd565b6040516102989190610ea1565b60405180910390f35b3480156102ad57600080fd5b506102c860048036038101906102c39190611372565b610cbb565b005b60015481565b60026020528060005260406000206000915090508060000154908060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060020154908060030160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060040154905085565b600063150b7a0260e01b9050949350505050565b610362610d3e565b600047905060008273ffffffffffffffffffffffffffffffffffffffff168260405161038d906113d0565b60006040518083038185875af1925050503d80600081146103ca576040519150601f19603f3d011682016040523d82523d6000602084013e6103cf565b606091505b5050905080610413576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161040a90611442565b60405180910390fd5b505050565b6000600260008381526020019081526020016000206040518060a0016040529081600082015481526020016001820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600282015481526020016003820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160048201548152505090503373ffffffffffffffffffffffffffffffffffffffff16816060015173ffffffffffffffffffffffffffffffffffffffff161461056d576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806020015173ffffffffffffffffffffffffffffffffffffffff166342842e0e303384604001516040518463ffffffff1660e01b81526004016105b293929190611462565b600060405180830381600087803b1580156105cc57600080fd5b505af11580156105e0573d6000803e3d6000fd5b505050507f7166d8373acef6d8cef118cd97bb1ce33f59ea798d879ee626a0e31f1dff89cc81604051610613919061151f565b60405180910390a1600260008381526020019081526020016000206000808201600090556001820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905560028201600090556003820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600482016000905550505050565b6000600260008381526020019081526020016000206040518060a0016040529081600082015481526020016001820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600282015481526020016003820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016004820154815250509050600073ffffffffffffffffffffffffffffffffffffffff16816060015173ffffffffffffffffffffffffffffffffffffffff16036107f1576040517f7e43e63800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060800151341015610838576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161082f906115ac565b60405180910390fd5b6000612710600060149054906101000a900461ffff1661ffff16836080015161086191906115fb565b61086b919061166c565b9050816060015173ffffffffffffffffffffffffffffffffffffffff166108fc82846080015161089b919061169d565b9081150290604051600060405180830381858888f193505050501580156108c6573d6000803e3d6000fd5b503073ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015801561090d573d6000803e3d6000fd5b50816020015173ffffffffffffffffffffffffffffffffffffffff166342842e0e303385604001516040518463ffffffff1660e01b815260040161095393929190611462565b600060405180830381600087803b15801561096d57600080fd5b505af1158015610981573d6000803e3d6000fd5b505050503373ffffffffffffffffffffffffffffffffffffffff167f2537d7dfcbfda64bcaad81458fa8fa372eebf12852a1b79e2b2c2fc670e7f230836040516109cb919061151f565b60405180910390a2600260008481526020019081526020016000206000808201600090556001820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905560028201600090556003820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905560048201600090555050505050565b610a5c610d3e565b80600060146101000a81548161ffff021916908361ffff16021790555050565b610a84610d3e565b610a8e6000610dbc565b565b600060149054906101000a900461ffff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000806040518060a0016040528060015481526020018673ffffffffffffffffffffffffffffffffffffffff1681526020018581526020013373ffffffffffffffffffffffffffffffffffffffff168152602001848152509050806002600060015481526020019081526020016000206000820151816000015560208201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506040820151816002015560608201518160030160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060808201518160040155905050806020015173ffffffffffffffffffffffffffffffffffffffff166342842e0e333084604001516040518463ffffffff1660e01b8152600401610c3193929190611462565b600060405180830381600087803b158015610c4b57600080fd5b505af1158015610c5f573d6000803e3d6000fd5b505050507f0cd61bc522d540cc3772fd9f103ca47d099fa4e8d0e07c42f92f6a86eb95312381604051610c92919061151f565b60405180910390a160016000815480929190610cad906116d1565b919050559150509392505050565b610cc3610d3e565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610d32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d299061178b565b60405180910390fd5b610d3b81610dbc565b50565b610d46610e80565b73ffffffffffffffffffffffffffffffffffffffff16610d64610aa4565b73ffffffffffffffffffffffffffffffffffffffff1614610dba576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610db1906117f7565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b6000819050919050565b610e9b81610e88565b82525050565b6000602082019050610eb66000830184610e92565b92915050565b6000604051905090565b600080fd5b600080fd5b610ed981610e88565b8114610ee457600080fd5b50565b600081359050610ef681610ed0565b92915050565b600060208284031215610f1257610f11610ec6565b5b6000610f2084828501610ee7565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610f5482610f29565b9050919050565b610f6481610f49565b82525050565b600060a082019050610f7f6000830188610e92565b610f8c6020830187610f5b565b610f996040830186610e92565b610fa66060830185610f5b565b610fb36080830184610e92565b9695505050505050565b610fc681610f49565b8114610fd157600080fd5b50565b600081359050610fe381610fbd565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61103c82610ff3565b810181811067ffffffffffffffff8211171561105b5761105a611004565b5b80604052505050565b600061106e610ebc565b905061107a8282611033565b919050565b600067ffffffffffffffff82111561109a57611099611004565b5b6110a382610ff3565b9050602081019050919050565b82818337600083830152505050565b60006110d26110cd8461107f565b611064565b9050828152602081018484840111156110ee576110ed610fee565b5b6110f98482856110b0565b509392505050565b600082601f83011261111657611115610fe9565b5b81356111268482602086016110bf565b91505092915050565b6000806000806080858703121561114957611148610ec6565b5b600061115787828801610fd4565b945050602061116887828801610fd4565b935050604061117987828801610ee7565b925050606085013567ffffffffffffffff81111561119a57611199610ecb565b5b6111a687828801611101565b91505092959194509250565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6111e7816111b2565b82525050565b600060208201905061120260008301846111de565b92915050565b600061121382610f29565b9050919050565b61122381611208565b811461122e57600080fd5b50565b6000813590506112408161121a565b92915050565b60006020828403121561125c5761125b610ec6565b5b600061126a84828501611231565b91505092915050565b600061ffff82169050919050565b61128a81611273565b811461129557600080fd5b50565b6000813590506112a781611281565b92915050565b6000602082840312156112c3576112c2610ec6565b5b60006112d184828501611298565b91505092915050565b6112e381611273565b82525050565b60006020820190506112fe60008301846112da565b92915050565b60006020820190506113196000830184610f5b565b92915050565b60008060006060848603121561133857611337610ec6565b5b600061134686828701610fd4565b935050602061135786828701610ee7565b925050604061136886828701610ee7565b9150509250925092565b60006020828403121561138857611387610ec6565b5b600061139684828501610fd4565b91505092915050565b600081905092915050565b50565b60006113ba60008361139f565b91506113c5826113aa565b600082019050919050565b60006113db826113ad565b9150819050919050565b600082825260208201905092915050565b7f4661696c656420746f2073656e642076616c7565000000000000000000000000600082015250565b600061142c6014836113e5565b9150611437826113f6565b602082019050919050565b6000602082019050818103600083015261145b8161141f565b9050919050565b60006060820190506114776000830186610f5b565b6114846020830185610f5b565b6114916040830184610e92565b949350505050565b6114a281610e88565b82525050565b6114b181610f49565b82525050565b60a0820160008201516114cd6000850182611499565b5060208201516114e060208501826114a8565b5060408201516114f36040850182611499565b50606082015161150660608501826114a8565b5060808201516115196080850182611499565b50505050565b600060a08201905061153460008301846114b7565b92915050565b7f4e6f7420656e6f75676820636f696e732073656e742c20636865636b2073616c60008201527f6550726963650000000000000000000000000000000000000000000000000000602082015250565b60006115966026836113e5565b91506115a18261153a565b604082019050919050565b600060208201905081810360008301526115c581611589565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061160682610e88565b915061161183610e88565b925082820261161f81610e88565b91508282048414831517611636576116356115cc565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061167782610e88565b915061168283610e88565b9250826116925761169161163d565b5b828204905092915050565b60006116a882610e88565b91506116b383610e88565b92508282039050818111156116cb576116ca6115cc565b5b92915050565b60006116dc82610e88565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361170e5761170d6115cc565b5b600182019050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006117756026836113e5565b915061178082611719565b604082019050919050565b600060208201905081810360008301526117a481611768565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006117e16020836113e5565b91506117ec826117ab565b602082019050919050565b60006020820190508181036000830152611810816117d4565b905091905056fea26469706673582212206467b8a7d2c78d716ce90b8caf2fda9fdba38757d94aa1e8dc817d3e4373a93664736f6c634300081100330000000000000000000000000000000000000000000000000000000000000096

Deployed ByteCode

0x6080604052600436106100ab5760003560e01c8063493ab05811610064578063493ab058146101ce578063715018a6146101f75780637fd6f15c1461020e5780638da5cb5b14610239578063dda342bb14610264578063f2fde38b146102a1576100b2565b80630387b0a2146100b7578063107a274a146100e2578063150b7a02146101235780631e4198e014610160578063305a67a8146101895780634884f459146101b2576100b2565b366100b257005b600080fd5b3480156100c357600080fd5b506100cc6102ca565b6040516100d99190610ea1565b60405180910390f35b3480156100ee57600080fd5b5061010960048036038101906101049190610efc565b6102d0565b60405161011a959493929190610f6a565b60405180910390f35b34801561012f57600080fd5b5061014a6004803603810190610145919061112f565b610346565b60405161015791906111ed565b60405180910390f35b34801561016c57600080fd5b5061018760048036038101906101829190611246565b61035a565b005b34801561019557600080fd5b506101b060048036038101906101ab9190610efc565b610418565b005b6101cc60048036038101906101c79190610efc565b61069b565b005b3480156101da57600080fd5b506101f560048036038101906101f091906112ad565b610a54565b005b34801561020357600080fd5b5061020c610a7c565b005b34801561021a57600080fd5b50610223610a90565b60405161023091906112e9565b60405180910390f35b34801561024557600080fd5b5061024e610aa4565b60405161025b9190611304565b60405180910390f35b34801561027057600080fd5b5061028b6004803603810190610286919061131f565b610acd565b6040516102989190610ea1565b60405180910390f35b3480156102ad57600080fd5b506102c860048036038101906102c39190611372565b610cbb565b005b60015481565b60026020528060005260406000206000915090508060000154908060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060020154908060030160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060040154905085565b600063150b7a0260e01b9050949350505050565b610362610d3e565b600047905060008273ffffffffffffffffffffffffffffffffffffffff168260405161038d906113d0565b60006040518083038185875af1925050503d80600081146103ca576040519150601f19603f3d011682016040523d82523d6000602084013e6103cf565b606091505b5050905080610413576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161040a90611442565b60405180910390fd5b505050565b6000600260008381526020019081526020016000206040518060a0016040529081600082015481526020016001820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600282015481526020016003820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160048201548152505090503373ffffffffffffffffffffffffffffffffffffffff16816060015173ffffffffffffffffffffffffffffffffffffffff161461056d576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806020015173ffffffffffffffffffffffffffffffffffffffff166342842e0e303384604001516040518463ffffffff1660e01b81526004016105b293929190611462565b600060405180830381600087803b1580156105cc57600080fd5b505af11580156105e0573d6000803e3d6000fd5b505050507f7166d8373acef6d8cef118cd97bb1ce33f59ea798d879ee626a0e31f1dff89cc81604051610613919061151f565b60405180910390a1600260008381526020019081526020016000206000808201600090556001820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905560028201600090556003820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600482016000905550505050565b6000600260008381526020019081526020016000206040518060a0016040529081600082015481526020016001820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600282015481526020016003820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016004820154815250509050600073ffffffffffffffffffffffffffffffffffffffff16816060015173ffffffffffffffffffffffffffffffffffffffff16036107f1576040517f7e43e63800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060800151341015610838576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161082f906115ac565b60405180910390fd5b6000612710600060149054906101000a900461ffff1661ffff16836080015161086191906115fb565b61086b919061166c565b9050816060015173ffffffffffffffffffffffffffffffffffffffff166108fc82846080015161089b919061169d565b9081150290604051600060405180830381858888f193505050501580156108c6573d6000803e3d6000fd5b503073ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015801561090d573d6000803e3d6000fd5b50816020015173ffffffffffffffffffffffffffffffffffffffff166342842e0e303385604001516040518463ffffffff1660e01b815260040161095393929190611462565b600060405180830381600087803b15801561096d57600080fd5b505af1158015610981573d6000803e3d6000fd5b505050503373ffffffffffffffffffffffffffffffffffffffff167f2537d7dfcbfda64bcaad81458fa8fa372eebf12852a1b79e2b2c2fc670e7f230836040516109cb919061151f565b60405180910390a2600260008481526020019081526020016000206000808201600090556001820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905560028201600090556003820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905560048201600090555050505050565b610a5c610d3e565b80600060146101000a81548161ffff021916908361ffff16021790555050565b610a84610d3e565b610a8e6000610dbc565b565b600060149054906101000a900461ffff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000806040518060a0016040528060015481526020018673ffffffffffffffffffffffffffffffffffffffff1681526020018581526020013373ffffffffffffffffffffffffffffffffffffffff168152602001848152509050806002600060015481526020019081526020016000206000820151816000015560208201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506040820151816002015560608201518160030160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060808201518160040155905050806020015173ffffffffffffffffffffffffffffffffffffffff166342842e0e333084604001516040518463ffffffff1660e01b8152600401610c3193929190611462565b600060405180830381600087803b158015610c4b57600080fd5b505af1158015610c5f573d6000803e3d6000fd5b505050507f0cd61bc522d540cc3772fd9f103ca47d099fa4e8d0e07c42f92f6a86eb95312381604051610c92919061151f565b60405180910390a160016000815480929190610cad906116d1565b919050559150509392505050565b610cc3610d3e565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610d32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d299061178b565b60405180910390fd5b610d3b81610dbc565b50565b610d46610e80565b73ffffffffffffffffffffffffffffffffffffffff16610d64610aa4565b73ffffffffffffffffffffffffffffffffffffffff1614610dba576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610db1906117f7565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b6000819050919050565b610e9b81610e88565b82525050565b6000602082019050610eb66000830184610e92565b92915050565b6000604051905090565b600080fd5b600080fd5b610ed981610e88565b8114610ee457600080fd5b50565b600081359050610ef681610ed0565b92915050565b600060208284031215610f1257610f11610ec6565b5b6000610f2084828501610ee7565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610f5482610f29565b9050919050565b610f6481610f49565b82525050565b600060a082019050610f7f6000830188610e92565b610f8c6020830187610f5b565b610f996040830186610e92565b610fa66060830185610f5b565b610fb36080830184610e92565b9695505050505050565b610fc681610f49565b8114610fd157600080fd5b50565b600081359050610fe381610fbd565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61103c82610ff3565b810181811067ffffffffffffffff8211171561105b5761105a611004565b5b80604052505050565b600061106e610ebc565b905061107a8282611033565b919050565b600067ffffffffffffffff82111561109a57611099611004565b5b6110a382610ff3565b9050602081019050919050565b82818337600083830152505050565b60006110d26110cd8461107f565b611064565b9050828152602081018484840111156110ee576110ed610fee565b5b6110f98482856110b0565b509392505050565b600082601f83011261111657611115610fe9565b5b81356111268482602086016110bf565b91505092915050565b6000806000806080858703121561114957611148610ec6565b5b600061115787828801610fd4565b945050602061116887828801610fd4565b935050604061117987828801610ee7565b925050606085013567ffffffffffffffff81111561119a57611199610ecb565b5b6111a687828801611101565b91505092959194509250565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6111e7816111b2565b82525050565b600060208201905061120260008301846111de565b92915050565b600061121382610f29565b9050919050565b61122381611208565b811461122e57600080fd5b50565b6000813590506112408161121a565b92915050565b60006020828403121561125c5761125b610ec6565b5b600061126a84828501611231565b91505092915050565b600061ffff82169050919050565b61128a81611273565b811461129557600080fd5b50565b6000813590506112a781611281565b92915050565b6000602082840312156112c3576112c2610ec6565b5b60006112d184828501611298565b91505092915050565b6112e381611273565b82525050565b60006020820190506112fe60008301846112da565b92915050565b60006020820190506113196000830184610f5b565b92915050565b60008060006060848603121561133857611337610ec6565b5b600061134686828701610fd4565b935050602061135786828701610ee7565b925050604061136886828701610ee7565b9150509250925092565b60006020828403121561138857611387610ec6565b5b600061139684828501610fd4565b91505092915050565b600081905092915050565b50565b60006113ba60008361139f565b91506113c5826113aa565b600082019050919050565b60006113db826113ad565b9150819050919050565b600082825260208201905092915050565b7f4661696c656420746f2073656e642076616c7565000000000000000000000000600082015250565b600061142c6014836113e5565b9150611437826113f6565b602082019050919050565b6000602082019050818103600083015261145b8161141f565b9050919050565b60006060820190506114776000830186610f5b565b6114846020830185610f5b565b6114916040830184610e92565b949350505050565b6114a281610e88565b82525050565b6114b181610f49565b82525050565b60a0820160008201516114cd6000850182611499565b5060208201516114e060208501826114a8565b5060408201516114f36040850182611499565b50606082015161150660608501826114a8565b5060808201516115196080850182611499565b50505050565b600060a08201905061153460008301846114b7565b92915050565b7f4e6f7420656e6f75676820636f696e732073656e742c20636865636b2073616c60008201527f6550726963650000000000000000000000000000000000000000000000000000602082015250565b60006115966026836113e5565b91506115a18261153a565b604082019050919050565b600060208201905081810360008301526115c581611589565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061160682610e88565b915061161183610e88565b925082820261161f81610e88565b91508282048414831517611636576116356115cc565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061167782610e88565b915061168283610e88565b9250826116925761169161163d565b5b828204905092915050565b60006116a882610e88565b91506116b383610e88565b92508282039050818111156116cb576116ca6115cc565b5b92915050565b60006116dc82610e88565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361170e5761170d6115cc565b5b600182019050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006117756026836113e5565b915061178082611719565b604082019050919050565b600060208201905081810360008301526117a481611768565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006117e16020836113e5565b91506117ec826117ab565b602082019050919050565b60006020820190508181036000830152611810816117d4565b905091905056fea26469706673582212206467b8a7d2c78d716ce90b8caf2fda9fdba38757d94aa1e8dc817d3e4373a93664736f6c63430008110033