Sepolia Testnet

Contract

0x0695AeFd80F824b45acc6132CDa0f605b7433437

Overview

ETH Balance

0 ETH

Token Holdings

Multichain Info

N/A
Transaction Hash
Method
Block
From
To
Purchase62948292024-07-12 7:13:128 days ago1720768392IN
0x0695AeFd...5b7433437
0 ETH0.0012746514.49458753
Cancel62948242024-07-12 7:12:128 days ago1720768332IN
0x0695AeFd...5b7433437
0 ETH0.0009367114.47158471
List62948152024-07-12 7:10:128 days ago1720768212IN
0x0695AeFd...5b7433437
0 ETH0.0023656215.86093069
Purchase62947802024-07-12 7:02:368 days ago1720767756IN
0x0695AeFd...5b7433437
0 ETH0.0032131636.53812001
List62946652024-07-12 6:36:488 days ago1720766208IN
0x0695AeFd...5b7433437
0 ETH0.0236174158.3360503
List62945632024-07-12 6:15:488 days ago1720764948IN
0x0695AeFd...5b7433437
0 ETH0.05494991368.36617693
List62945462024-07-12 6:12:248 days ago1720764744IN
0x0695AeFd...5b7433437
0 ETH0.05949706398.84874197
List62888612024-07-11 9:28:009 days ago1720690080IN
0x0695AeFd...5b7433437
0 ETH0.0066665336.36
Purchase62884712024-07-11 8:01:249 days ago1720684884IN
0x0695AeFd...5b7433437
0 ETH0.0030655436.45121589
List62881962024-07-11 7:01:249 days ago1720681284IN
0x0695AeFd...5b7433437
0 ETH0.0067922437.04319741
Purchase62878382024-07-11 5:43:249 days ago1720676604IN
0x0695AeFd...5b7433437
0 ETH0.002837633.7408329
List62878222024-07-11 5:40:009 days ago1720676400IN
0x0695AeFd...5b7433437
0 ETH0.0061703833.65176299
0x6080604062878112024-07-11 5:37:369 days ago1720676256IN
 Create: NftMarket
0 ETH0.0471887933.59484491

Advanced mode:
Parent Transaction Hash Block From To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
NftMarket

Compiler Version
v0.8.26+commit.8a97fa7a

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 5 : NftMarket.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {IERC721Receiver} from "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {IERC721} from "@openzeppelin/contracts/token/ERC721/IERC721.sol";

contract NftMarket is IERC721Receiver {
    event List(
        address indexed seller,
        address indexed nftAddr,
        uint256 indexed tokenId,
        uint256 price
    );

    event Purchase(
        address indexed buyer,
        address indexed nftAddr,
        uint256 indexed tokenId,
        uint256 price
    );

    event Cancel(
        address indexed seller,
        address indexed nftAddr,
        uint256 indexed tokenId
    );

    struct Order {
        address owner;
        uint256 price;
        uint256 listTime;
    }

    struct OrderData {
        address owner;
        uint256 price;
        uint256 listTime;
        uint256 tokenId;
    }

    mapping(address => mapping(uint256 => Order)) public orderList;
    mapping(address => uint256[]) public orderTokenIdList;

    IERC20 private _myToken;

    constructor(address _myTokenAddress) {
        _myToken = IERC20(_myTokenAddress);
    }

    function list(
        address _nftAddress,
        uint256 _tokenId,
        uint256 _price
    ) public {
        IERC721 _nft = IERC721(_nftAddress);
        require(
            _nft.getApproved(_tokenId) == address(this),
            "need approved this nft"
        );
        require(_price > 0, "price need more than zero");

        Order storage _order = orderList[_nftAddress][_tokenId];
        _order.owner = msg.sender;
        _order.price = _price;
        _order.listTime = block.timestamp;
        _nft.safeTransferFrom(msg.sender, address(this), _tokenId);

        uint256[] storage _tokenIdList = orderTokenIdList[_nftAddress];
        _tokenIdList.push(_tokenId);
        emit List(msg.sender, _nftAddress, _tokenId, _price);
    }

    function purchase(address _nftAddress, uint256 _tokenId) public {
        Order storage _order = orderList[_nftAddress][_tokenId];
        require(
            _myToken.balanceOf(msg.sender) > _order.price,
            "not enough token to buy"
        );

        IERC721 _nft = IERC721(_nftAddress);
        require(_nft.ownerOf(_tokenId) == address(this), "invalid order");

        _nft.safeTransferFrom(address(this), msg.sender, _tokenId);
        _myToken.transferFrom(msg.sender, _order.owner, _order.price);

        delete orderList[_nftAddress][_tokenId];
        uint256[] storage _tokenIdList = orderTokenIdList[_nftAddress];
        for (uint256 i = 0; i < _tokenIdList.length; i++) {
            if (_tokenIdList[i] == _tokenId) {
                _tokenIdList[i] = _tokenIdList[_tokenIdList.length - 1];
                _tokenIdList.pop();
                break;
            }
        }

        emit Purchase(msg.sender, _nftAddress, _tokenId, _order.price);
    }

    function cancel(address _nftAddress, uint256 _tokenId) public {
        Order storage _order = orderList[_nftAddress][_tokenId];
        require(_order.owner == msg.sender, "not owner");

        IERC721 _nft = IERC721(_nftAddress);
        _nft.safeTransferFrom(address(this), msg.sender, _tokenId);

        delete orderList[_nftAddress][_tokenId];

        uint256[] storage _tokenIdList = orderTokenIdList[_nftAddress];
        for (uint256 i = 0; i < _tokenIdList.length; i++) {
            if (_tokenIdList[i] == _tokenId) {
                _tokenIdList[i] = _tokenIdList[_tokenIdList.length - 1];
                _tokenIdList.pop();
                break;
            }
        }

        emit Cancel(msg.sender, _nftAddress, _tokenId);
    }

    function getAllListNft(
        address _nftAddress
    ) public view returns (OrderData[] memory orderDataList) {
        uint256[] storage _tokenIdList = orderTokenIdList[_nftAddress];
        OrderData[] memory _orderList = new OrderData[](_tokenIdList.length);
        for (uint256 i = 0; i < _tokenIdList.length; i++) {
            Order storage _order = orderList[_nftAddress][_tokenIdList[i]];
            _orderList[i] = OrderData(
                _order.owner,
                _order.price,
                _order.listTime,
                _tokenIdList[i]
            );
        }
        orderDataList = _orderList;
    }

    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external override returns (bytes4) {
        return IERC721Receiver.onERC721Received.selector;
    }
}

File 2 of 5 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.20;

import {IERC165} from "../../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`.
     *
     * 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 address zero.
     *
     * 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 3 of 5 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

    /**
     * @dev Returns the value of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

File 4 of 5 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.20;

/**
 * @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 5 of 5 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol)

pragma solidity ^0.8.20;

/**
 * @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": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"_myTokenAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"seller","type":"address"},{"indexed":true,"internalType":"address","name":"nftAddr","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Cancel","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"seller","type":"address"},{"indexed":true,"internalType":"address","name":"nftAddr","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"}],"name":"List","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"buyer","type":"address"},{"indexed":true,"internalType":"address","name":"nftAddr","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"}],"name":"Purchase","type":"event"},{"inputs":[{"internalType":"address","name":"_nftAddress","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"cancel","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_nftAddress","type":"address"}],"name":"getAllListNft","outputs":[{"components":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"listTime","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"internalType":"struct NftMarket.OrderData[]","name":"orderDataList","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_nftAddress","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"list","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"orderList","outputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"listTime","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"orderTokenIdList","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_nftAddress","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"purchase","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561000f575f80fd5b5060405161190f38038061190f833981810160405281019061003191906100d5565b8060025f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050610100565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6100a48261007b565b9050919050565b6100b48161009a565b81146100be575f80fd5b50565b5f815190506100cf816100ab565b92915050565b5f602082840312156100ea576100e9610077565b5b5f6100f7848285016100c1565b91505092915050565b6118028061010d5f395ff3fe608060405234801561000f575f80fd5b506004361061007b575f3560e01c806398590ef91161005957806398590ef9146100fb578063dda342bb14610117578063f4fb9b2f14610133578063fa728b13146101655761007b565b8063150b7a021461007f5780631a098056146100af5780638de93222146100df575b5f80fd5b6100996004803603810190610094919061106c565b610195565b6040516100a6919061112a565b60405180910390f35b6100c960048036038101906100c49190611143565b6101a9565b6040516100d69190611190565b60405180910390f35b6100f960048036038101906100f49190611143565b6101d4565b005b61011560048036038101906101109190611143565b6106fc565b005b610131600480360381019061012c91906111a9565b610a1d565b005b61014d60048036038101906101489190611143565b610d26565b60405161015c93929190611208565b60405180910390f35b61017f600480360381019061017a919061123d565b610d75565b60405161018c9190611381565b60405180910390f35b5f63150b7a0260e01b905095945050505050565b6001602052815f5260405f2081815481106101c2575f80fd5b905f5260205f20015f91509150505481565b5f805f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8381526020019081526020015f209050806001015460025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b815260040161028191906113a1565b602060405180830381865afa15801561029c573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102c091906113ce565b11610300576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102f790611453565b60405180910390fd5b5f8390503073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16636352211e856040518263ffffffff1660e01b81526004016103549190611190565b602060405180830381865afa15801561036f573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103939190611485565b73ffffffffffffffffffffffffffffffffffffffff16146103e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103e0906114fa565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166342842e0e3033866040518463ffffffff1660e01b815260040161042693929190611518565b5f604051808303815f87803b15801561043d575f80fd5b505af115801561044f573d5f803e3d5ffd5b5050505060025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd33845f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1685600101546040518463ffffffff1660e01b81526004016104d793929190611518565b6020604051808303815f875af11580156104f3573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105179190611582565b505f808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8481526020019081526020015f205f8082015f6101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600182015f9055600282015f905550505f60015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2090505f5b818054905081101561068a57848282815481106105fb576105fa6115ad565b5b905f5260205f2001540361067d57816001838054905061061b9190611607565b8154811061062c5761062b6115ad565b5b905f5260205f200154828281548110610648576106476115ad565b5b905f5260205f200181905550818054806106655761066461163a565b5b600190038181905f5260205f20015f9055905561068a565b80806001019150506105db565b50838573ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f46661dab58311a6838247afecbee792192b4f27fc8b3e7168c66bc55ec2e404e86600101546040516106ed9190611190565b60405180910390a45050505050565b5f805f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8381526020019081526020015f2090503373ffffffffffffffffffffffffffffffffffffffff16815f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146107da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107d1906116b1565b60405180910390fd5b5f8390508073ffffffffffffffffffffffffffffffffffffffff166342842e0e3033866040518463ffffffff1660e01b815260040161081b93929190611518565b5f604051808303815f87803b158015610832575f80fd5b505af1158015610844573d5f803e3d5ffd5b505050505f808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8481526020019081526020015f205f8082015f6101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600182015f9055600282015f905550505f60015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2090505f5b81805490508110156109ba578482828154811061092b5761092a6115ad565b5b905f5260205f200154036109ad57816001838054905061094b9190611607565b8154811061095c5761095b6115ad565b5b905f5260205f200154828281548110610978576109776115ad565b5b905f5260205f200181905550818054806109955761099461163a565b5b600190038181905f5260205f20015f905590556109ba565b808060010191505061090b565b50838573ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f977ca88fbe72d930c467bb5e513bf5120fa044293ebf66e5deb33354c612c9fb60405160405180910390a45050505050565b5f8390503073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1663081812fc856040518263ffffffff1660e01b8152600401610a719190611190565b602060405180830381865afa158015610a8c573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ab09190611485565b73ffffffffffffffffffffffffffffffffffffffff1614610b06576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610afd90611719565b60405180910390fd5b5f8211610b48576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b3f90611781565b60405180910390fd5b5f805f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8581526020019081526020015f20905033815f015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508281600101819055504281600201819055508173ffffffffffffffffffffffffffffffffffffffff166342842e0e3330876040518463ffffffff1660e01b8152600401610c2693929190611518565b5f604051808303815f87803b158015610c3d575f80fd5b505af1158015610c4f573d5f803e3d5ffd5b505050505f60015f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2090508085908060018154018082558091505060019003905f5260205f20015f9091909190915055848673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fedbdf022944a3291f4b30148903a84720506f48e10478ec5812e5caf30e1fab087604051610d169190611190565b60405180910390a4505050505050565b5f602052815f5260405f20602052805f5260405f205f9150915050805f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154905083565b60605f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2090505f818054905067ffffffffffffffff811115610dd657610dd561179f565b5b604051908082528060200260200182016040528015610e0f57816020015b610dfc610f3c565b815260200190600190039081610df45790505b5090505f5b8280549050811015610f31575f805f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f858481548110610e7157610e706115ad565b5b905f5260205f20015481526020019081526020015f2090506040518060800160405280825f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018260010154815260200182600201548152602001858481548110610ef957610ef86115ad565b5b905f5260205f200154815250838381518110610f1857610f176115ad565b5b6020026020010181905250508080600101915050610e14565b508092505050919050565b60405180608001604052805f73ffffffffffffffffffffffffffffffffffffffff1681526020015f81526020015f81526020015f81525090565b5f80fd5b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f610fa782610f7e565b9050919050565b610fb781610f9d565b8114610fc1575f80fd5b50565b5f81359050610fd281610fae565b92915050565b5f819050919050565b610fea81610fd8565b8114610ff4575f80fd5b50565b5f8135905061100581610fe1565b92915050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f84011261102c5761102b61100b565b5b8235905067ffffffffffffffff8111156110495761104861100f565b5b60208301915083600182028301111561106557611064611013565b5b9250929050565b5f805f805f6080868803121561108557611084610f76565b5b5f61109288828901610fc4565b95505060206110a388828901610fc4565b94505060406110b488828901610ff7565b935050606086013567ffffffffffffffff8111156110d5576110d4610f7a565b5b6110e188828901611017565b92509250509295509295909350565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b611124816110f0565b82525050565b5f60208201905061113d5f83018461111b565b92915050565b5f806040838503121561115957611158610f76565b5b5f61116685828601610fc4565b925050602061117785828601610ff7565b9150509250929050565b61118a81610fd8565b82525050565b5f6020820190506111a35f830184611181565b92915050565b5f805f606084860312156111c0576111bf610f76565b5b5f6111cd86828701610fc4565b93505060206111de86828701610ff7565b92505060406111ef86828701610ff7565b9150509250925092565b61120281610f9d565b82525050565b5f60608201905061121b5f8301866111f9565b6112286020830185611181565b6112356040830184611181565b949350505050565b5f6020828403121561125257611251610f76565b5b5f61125f84828501610fc4565b91505092915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b61129a81610f9d565b82525050565b6112a981610fd8565b82525050565b608082015f8201516112c35f850182611291565b5060208201516112d660208501826112a0565b5060408201516112e960408501826112a0565b5060608201516112fc60608501826112a0565b50505050565b5f61130d83836112af565b60808301905092915050565b5f602082019050919050565b5f61132f82611268565b6113398185611272565b935061134483611282565b805f5b8381101561137457815161135b8882611302565b975061136683611319565b925050600181019050611347565b5085935050505092915050565b5f6020820190508181035f8301526113998184611325565b905092915050565b5f6020820190506113b45f8301846111f9565b92915050565b5f815190506113c881610fe1565b92915050565b5f602082840312156113e3576113e2610f76565b5b5f6113f0848285016113ba565b91505092915050565b5f82825260208201905092915050565b7f6e6f7420656e6f75676820746f6b656e20746f206275790000000000000000005f82015250565b5f61143d6017836113f9565b915061144882611409565b602082019050919050565b5f6020820190508181035f83015261146a81611431565b9050919050565b5f8151905061147f81610fae565b92915050565b5f6020828403121561149a57611499610f76565b5b5f6114a784828501611471565b91505092915050565b7f696e76616c6964206f72646572000000000000000000000000000000000000005f82015250565b5f6114e4600d836113f9565b91506114ef826114b0565b602082019050919050565b5f6020820190508181035f830152611511816114d8565b9050919050565b5f60608201905061152b5f8301866111f9565b61153860208301856111f9565b6115456040830184611181565b949350505050565b5f8115159050919050565b6115618161154d565b811461156b575f80fd5b50565b5f8151905061157c81611558565b92915050565b5f6020828403121561159757611596610f76565b5b5f6115a48482850161156e565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f61161182610fd8565b915061161c83610fd8565b9250828203905081811115611634576116336115da565b5b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603160045260245ffd5b7f6e6f74206f776e657200000000000000000000000000000000000000000000005f82015250565b5f61169b6009836113f9565b91506116a682611667565b602082019050919050565b5f6020820190508181035f8301526116c88161168f565b9050919050565b7f6e65656420617070726f7665642074686973206e6674000000000000000000005f82015250565b5f6117036016836113f9565b915061170e826116cf565b602082019050919050565b5f6020820190508181035f830152611730816116f7565b9050919050565b7f7072696365206e656564206d6f7265207468616e207a65726f000000000000005f82015250565b5f61176b6019836113f9565b915061177682611737565b602082019050919050565b5f6020820190508181035f8301526117988161175f565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffdfea2646970667358221220c5c0b15da4fb60a1fbf64fe9b4accef69cd5c56000bf4cbf3e885af88e96e1b264736f6c634300081a003300000000000000000000000024d69aba97dddcef0c58655da820b5f2deed2a0c

Deployed Bytecode

0x608060405234801561000f575f80fd5b506004361061007b575f3560e01c806398590ef91161005957806398590ef9146100fb578063dda342bb14610117578063f4fb9b2f14610133578063fa728b13146101655761007b565b8063150b7a021461007f5780631a098056146100af5780638de93222146100df575b5f80fd5b6100996004803603810190610094919061106c565b610195565b6040516100a6919061112a565b60405180910390f35b6100c960048036038101906100c49190611143565b6101a9565b6040516100d69190611190565b60405180910390f35b6100f960048036038101906100f49190611143565b6101d4565b005b61011560048036038101906101109190611143565b6106fc565b005b610131600480360381019061012c91906111a9565b610a1d565b005b61014d60048036038101906101489190611143565b610d26565b60405161015c93929190611208565b60405180910390f35b61017f600480360381019061017a919061123d565b610d75565b60405161018c9190611381565b60405180910390f35b5f63150b7a0260e01b905095945050505050565b6001602052815f5260405f2081815481106101c2575f80fd5b905f5260205f20015f91509150505481565b5f805f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8381526020019081526020015f209050806001015460025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b815260040161028191906113a1565b602060405180830381865afa15801561029c573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102c091906113ce565b11610300576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102f790611453565b60405180910390fd5b5f8390503073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16636352211e856040518263ffffffff1660e01b81526004016103549190611190565b602060405180830381865afa15801561036f573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103939190611485565b73ffffffffffffffffffffffffffffffffffffffff16146103e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103e0906114fa565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166342842e0e3033866040518463ffffffff1660e01b815260040161042693929190611518565b5f604051808303815f87803b15801561043d575f80fd5b505af115801561044f573d5f803e3d5ffd5b5050505060025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd33845f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1685600101546040518463ffffffff1660e01b81526004016104d793929190611518565b6020604051808303815f875af11580156104f3573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105179190611582565b505f808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8481526020019081526020015f205f8082015f6101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600182015f9055600282015f905550505f60015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2090505f5b818054905081101561068a57848282815481106105fb576105fa6115ad565b5b905f5260205f2001540361067d57816001838054905061061b9190611607565b8154811061062c5761062b6115ad565b5b905f5260205f200154828281548110610648576106476115ad565b5b905f5260205f200181905550818054806106655761066461163a565b5b600190038181905f5260205f20015f9055905561068a565b80806001019150506105db565b50838573ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f46661dab58311a6838247afecbee792192b4f27fc8b3e7168c66bc55ec2e404e86600101546040516106ed9190611190565b60405180910390a45050505050565b5f805f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8381526020019081526020015f2090503373ffffffffffffffffffffffffffffffffffffffff16815f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146107da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107d1906116b1565b60405180910390fd5b5f8390508073ffffffffffffffffffffffffffffffffffffffff166342842e0e3033866040518463ffffffff1660e01b815260040161081b93929190611518565b5f604051808303815f87803b158015610832575f80fd5b505af1158015610844573d5f803e3d5ffd5b505050505f808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8481526020019081526020015f205f8082015f6101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600182015f9055600282015f905550505f60015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2090505f5b81805490508110156109ba578482828154811061092b5761092a6115ad565b5b905f5260205f200154036109ad57816001838054905061094b9190611607565b8154811061095c5761095b6115ad565b5b905f5260205f200154828281548110610978576109776115ad565b5b905f5260205f200181905550818054806109955761099461163a565b5b600190038181905f5260205f20015f905590556109ba565b808060010191505061090b565b50838573ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f977ca88fbe72d930c467bb5e513bf5120fa044293ebf66e5deb33354c612c9fb60405160405180910390a45050505050565b5f8390503073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1663081812fc856040518263ffffffff1660e01b8152600401610a719190611190565b602060405180830381865afa158015610a8c573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ab09190611485565b73ffffffffffffffffffffffffffffffffffffffff1614610b06576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610afd90611719565b60405180910390fd5b5f8211610b48576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b3f90611781565b60405180910390fd5b5f805f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8581526020019081526020015f20905033815f015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508281600101819055504281600201819055508173ffffffffffffffffffffffffffffffffffffffff166342842e0e3330876040518463ffffffff1660e01b8152600401610c2693929190611518565b5f604051808303815f87803b158015610c3d575f80fd5b505af1158015610c4f573d5f803e3d5ffd5b505050505f60015f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2090508085908060018154018082558091505060019003905f5260205f20015f9091909190915055848673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fedbdf022944a3291f4b30148903a84720506f48e10478ec5812e5caf30e1fab087604051610d169190611190565b60405180910390a4505050505050565b5f602052815f5260405f20602052805f5260405f205f9150915050805f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154905083565b60605f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2090505f818054905067ffffffffffffffff811115610dd657610dd561179f565b5b604051908082528060200260200182016040528015610e0f57816020015b610dfc610f3c565b815260200190600190039081610df45790505b5090505f5b8280549050811015610f31575f805f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f858481548110610e7157610e706115ad565b5b905f5260205f20015481526020019081526020015f2090506040518060800160405280825f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018260010154815260200182600201548152602001858481548110610ef957610ef86115ad565b5b905f5260205f200154815250838381518110610f1857610f176115ad565b5b6020026020010181905250508080600101915050610e14565b508092505050919050565b60405180608001604052805f73ffffffffffffffffffffffffffffffffffffffff1681526020015f81526020015f81526020015f81525090565b5f80fd5b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f610fa782610f7e565b9050919050565b610fb781610f9d565b8114610fc1575f80fd5b50565b5f81359050610fd281610fae565b92915050565b5f819050919050565b610fea81610fd8565b8114610ff4575f80fd5b50565b5f8135905061100581610fe1565b92915050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f84011261102c5761102b61100b565b5b8235905067ffffffffffffffff8111156110495761104861100f565b5b60208301915083600182028301111561106557611064611013565b5b9250929050565b5f805f805f6080868803121561108557611084610f76565b5b5f61109288828901610fc4565b95505060206110a388828901610fc4565b94505060406110b488828901610ff7565b935050606086013567ffffffffffffffff8111156110d5576110d4610f7a565b5b6110e188828901611017565b92509250509295509295909350565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b611124816110f0565b82525050565b5f60208201905061113d5f83018461111b565b92915050565b5f806040838503121561115957611158610f76565b5b5f61116685828601610fc4565b925050602061117785828601610ff7565b9150509250929050565b61118a81610fd8565b82525050565b5f6020820190506111a35f830184611181565b92915050565b5f805f606084860312156111c0576111bf610f76565b5b5f6111cd86828701610fc4565b93505060206111de86828701610ff7565b92505060406111ef86828701610ff7565b9150509250925092565b61120281610f9d565b82525050565b5f60608201905061121b5f8301866111f9565b6112286020830185611181565b6112356040830184611181565b949350505050565b5f6020828403121561125257611251610f76565b5b5f61125f84828501610fc4565b91505092915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b61129a81610f9d565b82525050565b6112a981610fd8565b82525050565b608082015f8201516112c35f850182611291565b5060208201516112d660208501826112a0565b5060408201516112e960408501826112a0565b5060608201516112fc60608501826112a0565b50505050565b5f61130d83836112af565b60808301905092915050565b5f602082019050919050565b5f61132f82611268565b6113398185611272565b935061134483611282565b805f5b8381101561137457815161135b8882611302565b975061136683611319565b925050600181019050611347565b5085935050505092915050565b5f6020820190508181035f8301526113998184611325565b905092915050565b5f6020820190506113b45f8301846111f9565b92915050565b5f815190506113c881610fe1565b92915050565b5f602082840312156113e3576113e2610f76565b5b5f6113f0848285016113ba565b91505092915050565b5f82825260208201905092915050565b7f6e6f7420656e6f75676820746f6b656e20746f206275790000000000000000005f82015250565b5f61143d6017836113f9565b915061144882611409565b602082019050919050565b5f6020820190508181035f83015261146a81611431565b9050919050565b5f8151905061147f81610fae565b92915050565b5f6020828403121561149a57611499610f76565b5b5f6114a784828501611471565b91505092915050565b7f696e76616c6964206f72646572000000000000000000000000000000000000005f82015250565b5f6114e4600d836113f9565b91506114ef826114b0565b602082019050919050565b5f6020820190508181035f830152611511816114d8565b9050919050565b5f60608201905061152b5f8301866111f9565b61153860208301856111f9565b6115456040830184611181565b949350505050565b5f8115159050919050565b6115618161154d565b811461156b575f80fd5b50565b5f8151905061157c81611558565b92915050565b5f6020828403121561159757611596610f76565b5b5f6115a48482850161156e565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f61161182610fd8565b915061161c83610fd8565b9250828203905081811115611634576116336115da565b5b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603160045260245ffd5b7f6e6f74206f776e657200000000000000000000000000000000000000000000005f82015250565b5f61169b6009836113f9565b91506116a682611667565b602082019050919050565b5f6020820190508181035f8301526116c88161168f565b9050919050565b7f6e65656420617070726f7665642074686973206e6674000000000000000000005f82015250565b5f6117036016836113f9565b915061170e826116cf565b602082019050919050565b5f6020820190508181035f830152611730816116f7565b9050919050565b7f7072696365206e656564206d6f7265207468616e207a65726f000000000000005f82015250565b5f61176b6019836113f9565b915061177682611737565b602082019050919050565b5f6020820190508181035f8301526117988161175f565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffdfea2646970667358221220c5c0b15da4fb60a1fbf64fe9b4accef69cd5c56000bf4cbf3e885af88e96e1b264736f6c634300081a0033

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

00000000000000000000000024d69aba97dddcef0c58655da820b5f2deed2a0c

-----Decoded View---------------
Arg [0] : _myTokenAddress (address): 0x24d69aBA97DdDCEf0c58655Da820B5F2deED2A0c

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000024d69aba97dddcef0c58655da820b5f2deed2a0c


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]

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