ETH Price: $3,293.25 (-3.44%)
Gas: 13 Gwei

Token

IWasRight (IWR)
 

Overview

Max Total Supply

1,409 IWR

Holders

893

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 IWR
0xe215cabe3e0e598a4f4b5de954088689a95c7420
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:
IWasRight

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 14 : IWasRight.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.11;

import "./ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

contract IWasRight is ERC721Enumerable, Ownable, ReentrancyGuard {
    using Strings for uint256;

    uint256[] public predictionsHashes;
    uint256 public IWRPrice = 0 ether;
    string public _baseIWRURI;
    
    event IWasRightMinted(address indexed mintAddress, uint256 indexed tokenId, uint256 predictionHash);
    event PermanentURI(string _value, uint256 indexed _id);

    constructor(string memory baseURI) ERC721Optimized("IWasRight", "IWR") {
        _baseIWRURI = baseURI;
    }

    function getPredictionHashes() public view returns (uint256[] memory) {
        return predictionsHashes;
    }

    function getPredictionHash(uint256 tokenId) public view returns (uint256) {
        require(predictionsHashes.length > tokenId, "Prediction tokenId does not exist");
        return predictionsHashes[tokenId];
    }

    function giveAway(address to, uint256 predictionHash) public onlyOwner {
        createCollectible(to, predictionHash);
    }

    function withdraw() public onlyOwner {
        require(address(this).balance > 0, "Insufficient balance");
        Address.sendValue(payable(msg.sender), address(this).balance);
    }

    function withdrawTo(uint256 amount, address payable to) public onlyOwner {
        require(address(this).balance > 0, "Insufficient balance");
        Address.sendValue(to, amount);
    }

    function setBaseURI(string memory newuri) public onlyOwner {
        _baseIWRURI = newuri;
    }

    function setMintCost(uint256 newCost) public onlyOwner {
        require(newCost >= 0, "IWRPrice must be greater than zero");
        IWRPrice = newCost;
    }

    function mintIWR(uint256 predictionHash) public payable nonReentrant {
        require(IWRPrice <= msg.value, "Ether value sent is not correct");
        createCollectible(_msgSender(), predictionHash);
    }

    function createCollectible(address mintAddress, uint256 predictionHash) private {
        uint256 tokenId = predictionsHashes.length;
        _safeMint(mintAddress, tokenId);
        predictionsHashes.push(predictionHash);
        emit IWasRightMinted(mintAddress, tokenId, predictionHash);
    }

    function freezeMetadata(uint256 tokenId, string memory ipfsHash) public {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        require(_msgSender() == ERC721Optimized.ownerOf(tokenId), "Caller is not a token owner");
	    emit PermanentURI(ipfsHash, tokenId);
	}

    function _baseURI() internal view virtual returns (string memory) {
	    return _baseIWRURI;
	}

    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: Nonexistent token");
        string memory currentBaseURI = _baseURI();
        return bytes(currentBaseURI).length > 0	? string(abi.encodePacked(currentBaseURI, tokenId.toString())) : "";
	}
}

File 2 of 14 : ERC721Enumerable.sol
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.11;
import "./ERC721Optimized.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";

abstract contract ERC721Enumerable is ERC721Optimized, IERC721Enumerable {
    function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721Optimized) returns (bool) {
        return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId);
    }
    function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256 tokenId) {
        require(index < ERC721Optimized.balanceOf(owner), "ERC721Enumerable: owner ioob");
        uint count;
        for( uint i; i < _owners.length; ++i ){
            if( owner == _owners[i] ){
                if( count == index )
                    return i;
                else
                    ++count;
            }
        }
        require(false, "ERC721Enumerable: owner ioob");
    }
    function tokensOfOwner(address owner) public view returns (uint256[] memory) {
        require(0 < ERC721Optimized.balanceOf(owner), "ERC721Enumerable: owner ioob");
        uint256 tokenCount = balanceOf(owner);
        uint256[] memory tokenIds = new uint256[](tokenCount);
        for (uint256 i = 0; i < tokenCount; i++) {
            tokenIds[i] = tokenOfOwnerByIndex(owner, i);
        }
        return tokenIds;
    }
    function totalSupply() public view virtual override returns (uint256) {
        return _owners.length;
    }
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global ioob");
        return index;
    }
}

File 3 of 14 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

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

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

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

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

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _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 4 of 14 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 5 of 14 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

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

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 6 of 14 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

File 7 of 14 : ERC721Optimized.sol
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.11;
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";

abstract contract ERC721Optimized is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    string private _name;
    string private _symbol;
    address[] internal _owners;
    mapping(uint256 => address) private _tokenApprovals;
    mapping(address => mapping(address => bool)) private _operatorApprovals;     
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }     

    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId ||
            super.supportsInterface(interfaceId);
    }
    
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        uint count = 0;
        uint length = _owners.length;
        for( uint i = 0; i < length; ++i ){
          if( owner == _owners[i] ){
            ++count;
          }
        }
        delete length;
        return count;
    }

    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

    function name() public view virtual override returns (string memory) {
        return _name;
    }

    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

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

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

        _approve(to, tokenId);
    }

    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(operator != _msgSender(), "ERC721: approve to caller");

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

    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

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

    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

	function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return tokenId < _owners.length && _owners[tokenId] != address(0);
    }

	function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721Optimized.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

	function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }
	function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

	function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);
        _owners.push(to);

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

	function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721Optimized.ownerOf(tokenId);

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

        // Clear approvals
        _approve(address(0), tokenId);
        _owners[tokenId] = address(0);

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

	function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721Optimized.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

	function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721Optimized.ownerOf(tokenId), to, tokenId);
    }

	function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }
    
	function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 8 of 14 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

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

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

File 9 of 14 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 10 of 14 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 11 of 14 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 12 of 14 : Context.sol
// SPDX-License-Identifier: MIT
// 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 13 of 14 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 14 of 14 : IERC165.sol
// SPDX-License-Identifier: MIT
// 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);
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"mintAddress","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"predictionHash","type":"uint256"}],"name":"IWasRightMinted","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":false,"internalType":"string","name":"_value","type":"string"},{"indexed":true,"internalType":"uint256","name":"_id","type":"uint256"}],"name":"PermanentURI","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"IWRPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_baseIWRURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"ipfsHash","type":"string"}],"name":"freezeMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getPredictionHash","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPredictionHashes","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"predictionHash","type":"uint256"}],"name":"giveAway","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"predictionHash","type":"uint256"}],"name":"mintIWR","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"predictionsHashes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newuri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newCost","type":"uint256"}],"name":"setMintCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address payable","name":"to","type":"address"}],"name":"withdrawTo","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405260006008553480156200001657600080fd5b506040516200264e3803806200264e8339810160408190526200003991620001ec565b60408051808201825260098152681255d85cd49a59da1d60ba1b60208083019182528351808501909452600384526224aba960e91b908401528151919291620000859160009162000130565b5080516200009b90600190602084019062000130565b505050620000b8620000b2620000da60201b60201c565b620000de565b60016006558051620000d290600990602084019062000130565b505062000305565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200013e90620002c8565b90600052602060002090601f016020900481019282620001625760008555620001ad565b82601f106200017d57805160ff1916838001178555620001ad565b82800160010185558215620001ad579182015b82811115620001ad57825182559160200191906001019062000190565b50620001bb929150620001bf565b5090565b5b80821115620001bb5760008155600101620001c0565b634e487b7160e01b600052604160045260246000fd5b600060208083850312156200020057600080fd5b82516001600160401b03808211156200021857600080fd5b818501915085601f8301126200022d57600080fd5b815181811115620002425762000242620001d6565b604051601f8201601f19908116603f011681019083821181831017156200026d576200026d620001d6565b8160405282815288868487010111156200028657600080fd5b600093505b82841015620002aa57848401860151818501870152928501926200028b565b82841115620002bc5760008684830101525b98975050505050505050565b600181811c90821680620002dd57607f821691505b60208210811415620002ff57634e487b7160e01b600052602260045260246000fd5b50919050565b61233980620003156000396000f3fe6080604052600436106101e35760003560e01c80636352211e11610102578063b88d4fde11610095578063ca80014411610064578063ca80014414610559578063e985e9c514610579578063f2fde38b146105c2578063ffa37aef146105e257600080fd5b8063b88d4fde146104d9578063c86283c8146104f9578063c87b56dd14610519578063ca403e4d1461053957600080fd5b80638545f4ea116100d15780638545f4ea146104665780638da5cb5b1461048657806395d89b41146104a4578063a22cb465146104b957600080fd5b80636352211e146103f157806370a0823114610411578063715018a6146104315780638462151c1461044657600080fd5b806323b872dd1161017a5780633ccfd60b116101495780633ccfd60b1461037c57806342842e0e146103915780634f6ccce7146103b157806355f804b3146103d157600080fd5b806323b872dd146103145780632f745c5914610334578063390a100e146103545780633b83d0c71461036757600080fd5b8063095ea7b3116101b6578063095ea7b3146102a557806318160ddd146102c75780631cb65651146102dc5780631e7a718f146102fe57600080fd5b806301ffc9a7146101e857806306fdde031461021d578063081812fc1461023f57806308595ff814610277575b600080fd5b3480156101f457600080fd5b50610208610203366004611c73565b610602565b60405190151581526020015b60405180910390f35b34801561022957600080fd5b5061023261062d565b6040516102149190611ce8565b34801561024b57600080fd5b5061025f61025a366004611cfb565b6106bf565b6040516001600160a01b039091168152602001610214565b34801561028357600080fd5b50610297610292366004611cfb565b61074c565b604051908152602001610214565b3480156102b157600080fd5b506102c56102c0366004611d29565b61076d565b005b3480156102d357600080fd5b50600254610297565b3480156102e857600080fd5b506102f1610883565b6040516102149190611d55565b34801561030a57600080fd5b5061029760085481565b34801561032057600080fd5b506102c561032f366004611d99565b6108da565b34801561034057600080fd5b5061029761034f366004611d29565b61090b565b6102c5610362366004611cfb565b6109ba565b34801561037357600080fd5b50610232610a76565b34801561038857600080fd5b506102c5610b04565b34801561039d57600080fd5b506102c56103ac366004611d99565b610b81565b3480156103bd57600080fd5b506102976103cc366004611cfb565b610b9c565b3480156103dd57600080fd5b506102c56103ec366004611e86565b610bf9565b3480156103fd57600080fd5b5061025f61040c366004611cfb565b610c3a565b34801561041d57600080fd5b5061029761042c366004611ebb565b610cc6565b34801561043d57600080fd5b506102c5610d98565b34801561045257600080fd5b506102f1610461366004611ebb565b610dcc565b34801561047257600080fd5b506102c5610481366004611cfb565b610e96565b34801561049257600080fd5b506005546001600160a01b031661025f565b3480156104b057600080fd5b50610232610ec5565b3480156104c557600080fd5b506102c56104d4366004611ed8565b610ed4565b3480156104e557600080fd5b506102c56104f4366004611f16565b610f99565b34801561050557600080fd5b506102c5610514366004611f96565b610fd1565b34801561052557600080fd5b50610232610534366004611cfb565b61104c565b34801561054557600080fd5b506102c5610554366004611fbb565b611109565b34801561056557600080fd5b506102c5610574366004611d29565b6111d3565b34801561058557600080fd5b50610208610594366004612002565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205460ff1690565b3480156105ce57600080fd5b506102c56105dd366004611ebb565b611207565b3480156105ee57600080fd5b506102976105fd366004611cfb565b6112a2565b60006001600160e01b0319821663780e9d6360e01b1480610627575061062782611325565b92915050565b60606000805461063c90612030565b80601f016020809104026020016040519081016040528092919081815260200182805461066890612030565b80156106b55780601f1061068a576101008083540402835291602001916106b5565b820191906000526020600020905b81548152906001019060200180831161069857829003601f168201915b5050505050905090565b60006106ca82611375565b6107305760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600360205260409020546001600160a01b031690565b6007818154811061075c57600080fd5b600091825260209091200154905081565b600061077882610c3a565b9050806001600160a01b0316836001600160a01b031614156107e65760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610727565b336001600160a01b038216148061080257506108028133610594565b6108745760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610727565b61087e83836113bf565b505050565b606060078054806020026020016040519081016040528092919081815260200182805480156106b557602002820191906000526020600020905b8154815260200190600101908083116108bd575050505050905090565b6108e4338261142d565b6109005760405162461bcd60e51b81526004016107279061206b565b61087e8383836114d2565b600061091683610cc6565b82106109345760405162461bcd60e51b8152600401610727906120bc565b6000805b6002548110156109a15760028181548110610955576109556120f3565b6000918252602090912001546001600160a01b038681169116141561099157838214156109855791506106279050565b61098e8261211f565b91505b61099a8161211f565b9050610938565b5060405162461bcd60e51b8152600401610727906120bc565b60026006541415610a0d5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610727565b6002600655600854341015610a645760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610727565b610a6e3382611628565b506001600655565b60098054610a8390612030565b80601f0160208091040260200160405190810160405280929190818152602001828054610aaf90612030565b8015610afc5780601f10610ad157610100808354040283529160200191610afc565b820191906000526020600020905b815481529060010190602001808311610adf57829003601f168201915b505050505081565b6005546001600160a01b03163314610b2e5760405162461bcd60e51b81526004016107279061213a565b60004711610b755760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b6044820152606401610727565b610b7f33476116af565b565b61087e83838360405180602001604052806000815250610f99565b6000610ba760025490565b8210610bf55760405162461bcd60e51b815260206004820152601d60248201527f455243373231456e756d657261626c653a20676c6f62616c20696f6f620000006044820152606401610727565b5090565b6005546001600160a01b03163314610c235760405162461bcd60e51b81526004016107279061213a565b8051610c36906009906020840190611bcd565b5050565b60008060028381548110610c5057610c506120f3565b6000918252602090912001546001600160a01b03169050806106275760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610727565b60006001600160a01b038216610d315760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610727565b600254600090815b81811015610d8f5760028181548110610d5457610d546120f3565b6000918252602090912001546001600160a01b0386811691161415610d7f57610d7c8361211f565b92505b610d888161211f565b9050610d39565b50909392505050565b6005546001600160a01b03163314610dc25760405162461bcd60e51b81526004016107279061213a565b610b7f60006117c8565b6060610dd782610cc6565b600010610df65760405162461bcd60e51b8152600401610727906120bc565b6000610e0183610cc6565b905060008167ffffffffffffffff811115610e1e57610e1e611dda565b604051908082528060200260200182016040528015610e47578160200160208202803683370190505b50905060005b82811015610e8e57610e5f858261090b565b828281518110610e7157610e716120f3565b602090810291909101015280610e868161211f565b915050610e4d565b509392505050565b6005546001600160a01b03163314610ec05760405162461bcd60e51b81526004016107279061213a565b600855565b60606001805461063c90612030565b6001600160a01b038216331415610f2d5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610727565b3360008181526004602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610fa3338361142d565b610fbf5760405162461bcd60e51b81526004016107279061206b565b610fcb8484848461181a565b50505050565b6005546001600160a01b03163314610ffb5760405162461bcd60e51b81526004016107279061213a565b600047116110425760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b6044820152606401610727565b610c3681836116af565b606061105782611375565b6110ad5760405162461bcd60e51b815260206004820152602160248201527f4552433732314d657461646174613a204e6f6e6578697374656e7420746f6b656044820152603760f91b6064820152608401610727565b60006110b761184d565b905060008151116110d75760405180602001604052806000815250611102565b806110e18461185c565b6040516020016110f292919061216f565b6040516020818303038152906040525b9392505050565b61111282611375565b61112e5760405162461bcd60e51b81526004016107279061219e565b61113782610c3a565b6001600160a01b0316336001600160a01b0316146111975760405162461bcd60e51b815260206004820152601b60248201527f43616c6c6572206973206e6f74206120746f6b656e206f776e657200000000006044820152606401610727565b817fa109ba539900bf1b633f956d63c96fc89b814c7287f7aa50a9216d0b55657207826040516111c79190611ce8565b60405180910390a25050565b6005546001600160a01b031633146111fd5760405162461bcd60e51b81526004016107279061213a565b610c368282611628565b6005546001600160a01b031633146112315760405162461bcd60e51b81526004016107279061213a565b6001600160a01b0381166112965760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610727565b61129f816117c8565b50565b60075460009082106113005760405162461bcd60e51b815260206004820152602160248201527f50726564696374696f6e20746f6b656e496420646f6573206e6f7420657869736044820152601d60fa1b6064820152608401610727565b60078281548110611313576113136120f3565b90600052602060002001549050919050565b60006001600160e01b031982166380ac58cd60e01b148061135657506001600160e01b03198216635b5e139f60e01b145b8061062757506301ffc9a760e01b6001600160e01b0319831614610627565b60025460009082108015610627575060006001600160a01b0316600283815481106113a2576113a26120f3565b6000918252602090912001546001600160a01b0316141592915050565b600081815260036020526040902080546001600160a01b0319166001600160a01b03841690811790915581906113f482610c3a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061143882611375565b6114545760405162461bcd60e51b81526004016107279061219e565b600061145f83610c3a565b9050806001600160a01b0316846001600160a01b0316148061149a5750836001600160a01b031661148f846106bf565b6001600160a01b0316145b806114ca57506001600160a01b0380821660009081526004602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166114e582610c3a565b6001600160a01b03161461154d5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610727565b6001600160a01b0382166115af5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610727565b6115ba6000826113bf565b81600282815481106115ce576115ce6120f3565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b600754611635838261195a565b600780546001810182556000919091527fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6880182905560405182815281906001600160a01b038516907f6c88c399ec52e1dca203360ca5cd15d08e443db6c0eb29c4e797af9dd103fb8b9060200160405180910390a3505050565b804710156116ff5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610727565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461174c576040519150601f19603f3d011682016040523d82523d6000602084013e611751565b606091505b505090508061087e5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610727565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6118258484846114d2565b61183184848484611974565b610fcb5760405162461bcd60e51b8152600401610727906121ea565b60606009805461063c90612030565b6060816118805750506040805180820190915260018152600360fc1b602082015290565b8160005b81156118aa57806118948161211f565b91506118a39050600a83612252565b9150611884565b60008167ffffffffffffffff8111156118c5576118c5611dda565b6040519080825280601f01601f1916602001820160405280156118ef576020820181803683370190505b5090505b84156114ca57611904600183612266565b9150611911600a8661227d565b61191c906030612291565b60f81b818381518110611931576119316120f3565b60200101906001600160f81b031916908160001a905350611953600a86612252565b94506118f3565b610c36828260405180602001604052806000815250611a72565b60006001600160a01b0384163b15611a6757604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906119b89033908990889088906004016122a9565b6020604051808303816000875af19250505080156119f3575060408051601f3d908101601f191682019092526119f0918101906122e6565b60015b611a4d573d808015611a21576040519150601f19603f3d011682016040523d82523d6000602084013e611a26565b606091505b508051611a455760405162461bcd60e51b8152600401610727906121ea565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506114ca565b506001949350505050565b611a7c8383611aa5565b611a896000848484611974565b61087e5760405162461bcd60e51b8152600401610727906121ea565b6001600160a01b038216611afb5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610727565b611b0481611375565b15611b515760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610727565b6002805460018101825560009182527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054611bd990612030565b90600052602060002090601f016020900481019282611bfb5760008555611c41565b82601f10611c1457805160ff1916838001178555611c41565b82800160010185558215611c41579182015b82811115611c41578251825591602001919060010190611c26565b50610bf59291505b80821115610bf55760008155600101611c49565b6001600160e01b03198116811461129f57600080fd5b600060208284031215611c8557600080fd5b813561110281611c5d565b60005b83811015611cab578181015183820152602001611c93565b83811115610fcb5750506000910152565b60008151808452611cd4816020860160208601611c90565b601f01601f19169290920160200192915050565b6020815260006111026020830184611cbc565b600060208284031215611d0d57600080fd5b5035919050565b6001600160a01b038116811461129f57600080fd5b60008060408385031215611d3c57600080fd5b8235611d4781611d14565b946020939093013593505050565b6020808252825182820181905260009190848201906040850190845b81811015611d8d57835183529284019291840191600101611d71565b50909695505050505050565b600080600060608486031215611dae57600080fd5b8335611db981611d14565b92506020840135611dc981611d14565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115611e0b57611e0b611dda565b604051601f8501601f19908116603f01168101908282118183101715611e3357611e33611dda565b81604052809350858152868686011115611e4c57600080fd5b858560208301376000602087830101525050509392505050565b600082601f830112611e7757600080fd5b61110283833560208501611df0565b600060208284031215611e9857600080fd5b813567ffffffffffffffff811115611eaf57600080fd5b6114ca84828501611e66565b600060208284031215611ecd57600080fd5b813561110281611d14565b60008060408385031215611eeb57600080fd5b8235611ef681611d14565b915060208301358015158114611f0b57600080fd5b809150509250929050565b60008060008060808587031215611f2c57600080fd5b8435611f3781611d14565b93506020850135611f4781611d14565b925060408501359150606085013567ffffffffffffffff811115611f6a57600080fd5b8501601f81018713611f7b57600080fd5b611f8a87823560208401611df0565b91505092959194509250565b60008060408385031215611fa957600080fd5b823591506020830135611f0b81611d14565b60008060408385031215611fce57600080fd5b82359150602083013567ffffffffffffffff811115611fec57600080fd5b611ff885828601611e66565b9150509250929050565b6000806040838503121561201557600080fd5b823561202081611d14565b91506020830135611f0b81611d14565b600181811c9082168061204457607f821691505b6020821081141561206557634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601c908201527f455243373231456e756d657261626c653a206f776e657220696f6f6200000000604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060001982141561213357612133612109565b5060010190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008351612181818460208801611c90565b835190830190612195818360208801611c90565b01949350505050565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b6000826122615761226161223c565b500490565b60008282101561227857612278612109565b500390565b60008261228c5761228c61223c565b500690565b600082198211156122a4576122a4612109565b500190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906122dc90830184611cbc565b9695505050505050565b6000602082840312156122f857600080fd5b815161110281611c5d56fea2646970667358221220f513a623319675543842ff6c3be3438198f03c43ca34e69e3a3c035d9db8b01964736f6c634300080b00330000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001a68747470733a2f2f6d6574612e6977617372696768742e696f2f000000000000

Deployed Bytecode

0x6080604052600436106101e35760003560e01c80636352211e11610102578063b88d4fde11610095578063ca80014411610064578063ca80014414610559578063e985e9c514610579578063f2fde38b146105c2578063ffa37aef146105e257600080fd5b8063b88d4fde146104d9578063c86283c8146104f9578063c87b56dd14610519578063ca403e4d1461053957600080fd5b80638545f4ea116100d15780638545f4ea146104665780638da5cb5b1461048657806395d89b41146104a4578063a22cb465146104b957600080fd5b80636352211e146103f157806370a0823114610411578063715018a6146104315780638462151c1461044657600080fd5b806323b872dd1161017a5780633ccfd60b116101495780633ccfd60b1461037c57806342842e0e146103915780634f6ccce7146103b157806355f804b3146103d157600080fd5b806323b872dd146103145780632f745c5914610334578063390a100e146103545780633b83d0c71461036757600080fd5b8063095ea7b3116101b6578063095ea7b3146102a557806318160ddd146102c75780631cb65651146102dc5780631e7a718f146102fe57600080fd5b806301ffc9a7146101e857806306fdde031461021d578063081812fc1461023f57806308595ff814610277575b600080fd5b3480156101f457600080fd5b50610208610203366004611c73565b610602565b60405190151581526020015b60405180910390f35b34801561022957600080fd5b5061023261062d565b6040516102149190611ce8565b34801561024b57600080fd5b5061025f61025a366004611cfb565b6106bf565b6040516001600160a01b039091168152602001610214565b34801561028357600080fd5b50610297610292366004611cfb565b61074c565b604051908152602001610214565b3480156102b157600080fd5b506102c56102c0366004611d29565b61076d565b005b3480156102d357600080fd5b50600254610297565b3480156102e857600080fd5b506102f1610883565b6040516102149190611d55565b34801561030a57600080fd5b5061029760085481565b34801561032057600080fd5b506102c561032f366004611d99565b6108da565b34801561034057600080fd5b5061029761034f366004611d29565b61090b565b6102c5610362366004611cfb565b6109ba565b34801561037357600080fd5b50610232610a76565b34801561038857600080fd5b506102c5610b04565b34801561039d57600080fd5b506102c56103ac366004611d99565b610b81565b3480156103bd57600080fd5b506102976103cc366004611cfb565b610b9c565b3480156103dd57600080fd5b506102c56103ec366004611e86565b610bf9565b3480156103fd57600080fd5b5061025f61040c366004611cfb565b610c3a565b34801561041d57600080fd5b5061029761042c366004611ebb565b610cc6565b34801561043d57600080fd5b506102c5610d98565b34801561045257600080fd5b506102f1610461366004611ebb565b610dcc565b34801561047257600080fd5b506102c5610481366004611cfb565b610e96565b34801561049257600080fd5b506005546001600160a01b031661025f565b3480156104b057600080fd5b50610232610ec5565b3480156104c557600080fd5b506102c56104d4366004611ed8565b610ed4565b3480156104e557600080fd5b506102c56104f4366004611f16565b610f99565b34801561050557600080fd5b506102c5610514366004611f96565b610fd1565b34801561052557600080fd5b50610232610534366004611cfb565b61104c565b34801561054557600080fd5b506102c5610554366004611fbb565b611109565b34801561056557600080fd5b506102c5610574366004611d29565b6111d3565b34801561058557600080fd5b50610208610594366004612002565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205460ff1690565b3480156105ce57600080fd5b506102c56105dd366004611ebb565b611207565b3480156105ee57600080fd5b506102976105fd366004611cfb565b6112a2565b60006001600160e01b0319821663780e9d6360e01b1480610627575061062782611325565b92915050565b60606000805461063c90612030565b80601f016020809104026020016040519081016040528092919081815260200182805461066890612030565b80156106b55780601f1061068a576101008083540402835291602001916106b5565b820191906000526020600020905b81548152906001019060200180831161069857829003601f168201915b5050505050905090565b60006106ca82611375565b6107305760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600360205260409020546001600160a01b031690565b6007818154811061075c57600080fd5b600091825260209091200154905081565b600061077882610c3a565b9050806001600160a01b0316836001600160a01b031614156107e65760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610727565b336001600160a01b038216148061080257506108028133610594565b6108745760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610727565b61087e83836113bf565b505050565b606060078054806020026020016040519081016040528092919081815260200182805480156106b557602002820191906000526020600020905b8154815260200190600101908083116108bd575050505050905090565b6108e4338261142d565b6109005760405162461bcd60e51b81526004016107279061206b565b61087e8383836114d2565b600061091683610cc6565b82106109345760405162461bcd60e51b8152600401610727906120bc565b6000805b6002548110156109a15760028181548110610955576109556120f3565b6000918252602090912001546001600160a01b038681169116141561099157838214156109855791506106279050565b61098e8261211f565b91505b61099a8161211f565b9050610938565b5060405162461bcd60e51b8152600401610727906120bc565b60026006541415610a0d5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610727565b6002600655600854341015610a645760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610727565b610a6e3382611628565b506001600655565b60098054610a8390612030565b80601f0160208091040260200160405190810160405280929190818152602001828054610aaf90612030565b8015610afc5780601f10610ad157610100808354040283529160200191610afc565b820191906000526020600020905b815481529060010190602001808311610adf57829003601f168201915b505050505081565b6005546001600160a01b03163314610b2e5760405162461bcd60e51b81526004016107279061213a565b60004711610b755760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b6044820152606401610727565b610b7f33476116af565b565b61087e83838360405180602001604052806000815250610f99565b6000610ba760025490565b8210610bf55760405162461bcd60e51b815260206004820152601d60248201527f455243373231456e756d657261626c653a20676c6f62616c20696f6f620000006044820152606401610727565b5090565b6005546001600160a01b03163314610c235760405162461bcd60e51b81526004016107279061213a565b8051610c36906009906020840190611bcd565b5050565b60008060028381548110610c5057610c506120f3565b6000918252602090912001546001600160a01b03169050806106275760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610727565b60006001600160a01b038216610d315760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610727565b600254600090815b81811015610d8f5760028181548110610d5457610d546120f3565b6000918252602090912001546001600160a01b0386811691161415610d7f57610d7c8361211f565b92505b610d888161211f565b9050610d39565b50909392505050565b6005546001600160a01b03163314610dc25760405162461bcd60e51b81526004016107279061213a565b610b7f60006117c8565b6060610dd782610cc6565b600010610df65760405162461bcd60e51b8152600401610727906120bc565b6000610e0183610cc6565b905060008167ffffffffffffffff811115610e1e57610e1e611dda565b604051908082528060200260200182016040528015610e47578160200160208202803683370190505b50905060005b82811015610e8e57610e5f858261090b565b828281518110610e7157610e716120f3565b602090810291909101015280610e868161211f565b915050610e4d565b509392505050565b6005546001600160a01b03163314610ec05760405162461bcd60e51b81526004016107279061213a565b600855565b60606001805461063c90612030565b6001600160a01b038216331415610f2d5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610727565b3360008181526004602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610fa3338361142d565b610fbf5760405162461bcd60e51b81526004016107279061206b565b610fcb8484848461181a565b50505050565b6005546001600160a01b03163314610ffb5760405162461bcd60e51b81526004016107279061213a565b600047116110425760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b6044820152606401610727565b610c3681836116af565b606061105782611375565b6110ad5760405162461bcd60e51b815260206004820152602160248201527f4552433732314d657461646174613a204e6f6e6578697374656e7420746f6b656044820152603760f91b6064820152608401610727565b60006110b761184d565b905060008151116110d75760405180602001604052806000815250611102565b806110e18461185c565b6040516020016110f292919061216f565b6040516020818303038152906040525b9392505050565b61111282611375565b61112e5760405162461bcd60e51b81526004016107279061219e565b61113782610c3a565b6001600160a01b0316336001600160a01b0316146111975760405162461bcd60e51b815260206004820152601b60248201527f43616c6c6572206973206e6f74206120746f6b656e206f776e657200000000006044820152606401610727565b817fa109ba539900bf1b633f956d63c96fc89b814c7287f7aa50a9216d0b55657207826040516111c79190611ce8565b60405180910390a25050565b6005546001600160a01b031633146111fd5760405162461bcd60e51b81526004016107279061213a565b610c368282611628565b6005546001600160a01b031633146112315760405162461bcd60e51b81526004016107279061213a565b6001600160a01b0381166112965760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610727565b61129f816117c8565b50565b60075460009082106113005760405162461bcd60e51b815260206004820152602160248201527f50726564696374696f6e20746f6b656e496420646f6573206e6f7420657869736044820152601d60fa1b6064820152608401610727565b60078281548110611313576113136120f3565b90600052602060002001549050919050565b60006001600160e01b031982166380ac58cd60e01b148061135657506001600160e01b03198216635b5e139f60e01b145b8061062757506301ffc9a760e01b6001600160e01b0319831614610627565b60025460009082108015610627575060006001600160a01b0316600283815481106113a2576113a26120f3565b6000918252602090912001546001600160a01b0316141592915050565b600081815260036020526040902080546001600160a01b0319166001600160a01b03841690811790915581906113f482610c3a565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061143882611375565b6114545760405162461bcd60e51b81526004016107279061219e565b600061145f83610c3a565b9050806001600160a01b0316846001600160a01b0316148061149a5750836001600160a01b031661148f846106bf565b6001600160a01b0316145b806114ca57506001600160a01b0380821660009081526004602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166114e582610c3a565b6001600160a01b03161461154d5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610727565b6001600160a01b0382166115af5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610727565b6115ba6000826113bf565b81600282815481106115ce576115ce6120f3565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b600754611635838261195a565b600780546001810182556000919091527fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6880182905560405182815281906001600160a01b038516907f6c88c399ec52e1dca203360ca5cd15d08e443db6c0eb29c4e797af9dd103fb8b9060200160405180910390a3505050565b804710156116ff5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610727565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461174c576040519150601f19603f3d011682016040523d82523d6000602084013e611751565b606091505b505090508061087e5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610727565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6118258484846114d2565b61183184848484611974565b610fcb5760405162461bcd60e51b8152600401610727906121ea565b60606009805461063c90612030565b6060816118805750506040805180820190915260018152600360fc1b602082015290565b8160005b81156118aa57806118948161211f565b91506118a39050600a83612252565b9150611884565b60008167ffffffffffffffff8111156118c5576118c5611dda565b6040519080825280601f01601f1916602001820160405280156118ef576020820181803683370190505b5090505b84156114ca57611904600183612266565b9150611911600a8661227d565b61191c906030612291565b60f81b818381518110611931576119316120f3565b60200101906001600160f81b031916908160001a905350611953600a86612252565b94506118f3565b610c36828260405180602001604052806000815250611a72565b60006001600160a01b0384163b15611a6757604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906119b89033908990889088906004016122a9565b6020604051808303816000875af19250505080156119f3575060408051601f3d908101601f191682019092526119f0918101906122e6565b60015b611a4d573d808015611a21576040519150601f19603f3d011682016040523d82523d6000602084013e611a26565b606091505b508051611a455760405162461bcd60e51b8152600401610727906121ea565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506114ca565b506001949350505050565b611a7c8383611aa5565b611a896000848484611974565b61087e5760405162461bcd60e51b8152600401610727906121ea565b6001600160a01b038216611afb5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610727565b611b0481611375565b15611b515760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610727565b6002805460018101825560009182527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054611bd990612030565b90600052602060002090601f016020900481019282611bfb5760008555611c41565b82601f10611c1457805160ff1916838001178555611c41565b82800160010185558215611c41579182015b82811115611c41578251825591602001919060010190611c26565b50610bf59291505b80821115610bf55760008155600101611c49565b6001600160e01b03198116811461129f57600080fd5b600060208284031215611c8557600080fd5b813561110281611c5d565b60005b83811015611cab578181015183820152602001611c93565b83811115610fcb5750506000910152565b60008151808452611cd4816020860160208601611c90565b601f01601f19169290920160200192915050565b6020815260006111026020830184611cbc565b600060208284031215611d0d57600080fd5b5035919050565b6001600160a01b038116811461129f57600080fd5b60008060408385031215611d3c57600080fd5b8235611d4781611d14565b946020939093013593505050565b6020808252825182820181905260009190848201906040850190845b81811015611d8d57835183529284019291840191600101611d71565b50909695505050505050565b600080600060608486031215611dae57600080fd5b8335611db981611d14565b92506020840135611dc981611d14565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115611e0b57611e0b611dda565b604051601f8501601f19908116603f01168101908282118183101715611e3357611e33611dda565b81604052809350858152868686011115611e4c57600080fd5b858560208301376000602087830101525050509392505050565b600082601f830112611e7757600080fd5b61110283833560208501611df0565b600060208284031215611e9857600080fd5b813567ffffffffffffffff811115611eaf57600080fd5b6114ca84828501611e66565b600060208284031215611ecd57600080fd5b813561110281611d14565b60008060408385031215611eeb57600080fd5b8235611ef681611d14565b915060208301358015158114611f0b57600080fd5b809150509250929050565b60008060008060808587031215611f2c57600080fd5b8435611f3781611d14565b93506020850135611f4781611d14565b925060408501359150606085013567ffffffffffffffff811115611f6a57600080fd5b8501601f81018713611f7b57600080fd5b611f8a87823560208401611df0565b91505092959194509250565b60008060408385031215611fa957600080fd5b823591506020830135611f0b81611d14565b60008060408385031215611fce57600080fd5b82359150602083013567ffffffffffffffff811115611fec57600080fd5b611ff885828601611e66565b9150509250929050565b6000806040838503121561201557600080fd5b823561202081611d14565b91506020830135611f0b81611d14565b600181811c9082168061204457607f821691505b6020821081141561206557634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601c908201527f455243373231456e756d657261626c653a206f776e657220696f6f6200000000604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060001982141561213357612133612109565b5060010190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008351612181818460208801611c90565b835190830190612195818360208801611c90565b01949350505050565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b6000826122615761226161223c565b500490565b60008282101561227857612278612109565b500390565b60008261228c5761228c61223c565b500690565b600082198211156122a4576122a4612109565b500190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906122dc90830184611cbc565b9695505050505050565b6000602082840312156122f857600080fd5b815161110281611c5d56fea2646970667358221220f513a623319675543842ff6c3be3438198f03c43ca34e69e3a3c035d9db8b01964736f6c634300080b0033

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

0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001a68747470733a2f2f6d6574612e6977617372696768742e696f2f000000000000

-----Decoded View---------------
Arg [0] : baseURI (string): https://meta.iwasright.io/

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 000000000000000000000000000000000000000000000000000000000000001a
Arg [2] : 68747470733a2f2f6d6574612e6977617372696768742e696f2f000000000000


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.