Contract 0xF92cDB7669A4601DD76b728E187f2a98092b6b7d 2

 
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x74c448cdd15e46f5e0463f0c8ccd5b6776fd6c71e8a7c7c87c9ec18c62ddce4a0x60806040220205242021-12-01 17:32:29250 days 1 hr ago0x2b241cbe6b455e08ade78a7ccc42de2403d7b566 IN  Create: NFTClaim0 MATIC0.0776452230
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
NFTClaim

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 7 : NFTClaim.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
pragma experimental ABIEncoderV2;

import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol";

import "../../utils/AccessProtectedUpgradeable.sol";
import "../../utils/BaseRelayRecipient.sol";

interface IERC1155Tradeable {
    function issueToken(
        address recipient,
        uint256 tokenId,
        uint256 amount
    ) external;
}

contract NFTClaim is Initializable, AccessProtectedUpgradeable, BaseRelayRecipient, ReentrancyGuardUpgradeable {

    function initialize(IERC1155Tradeable _token) public virtual initializer {
        __NFTClaim_init(_token);
    }

    IERC1155Tradeable private token; // NFT

    mapping(address => mapping(uint256 => uint256)) public userClaimableNFTs;
    mapping(address => mapping(uint256 => uint256)) public userClaimedNFTs;

    event SetUserClaimableNFT(
        address indexed _admin,
        address indexed _user,
        uint256 indexed _tokenId,
        uint256 _amount
    );
    event SetUserClaimableNFTBatch(
        address indexed _admin,
        address[] _users,
        uint256[] _tokenIds,
        uint256[] amounts
    );
    event Claimed(address indexed _user, uint256 indexed _tokenId, uint256 indexed _amount);
    event ClaimedBatch(address indexed _user, uint256[] _tokenIds, uint256[] _amounts);

    function __NFTClaim_init(IERC1155Tradeable _token) internal initializer {
        __Ownable_init_unchained();
        __AccessProtected_init_unchained();

        __ReentrancyGuard_init_unchained();

        __NFTClaim_init_unchained(_token);
    }

    function __NFTClaim_init_unchained(IERC1155Tradeable _token) internal initializer {
        token = _token;
    }

    /**
     * Set Claim NftTypes for a Given User
     *
     * @param user - User for which the nftType needs to be added
     * @param tokenId - NftType which needs to be added for the given user
     */
    function setUserClaimableNFT(
        address user,
        uint8 tokenId,
        uint256 amount
    ) external onlyAdmin {
        require(user != address(0), "Cannot set claim for address 0");
        require(tokenId > 0, "tokenId must be greater than 0");
        require(amount > 0, "amount must be greater than 0");

        userClaimableNFTs[user][tokenId] = userClaimableNFTs[user][tokenId] + amount;

        emit SetUserClaimableNFT(_msgSender(), user, tokenId, amount);
    }

    function setUserClaimableNFTBatch(
        address[] memory users,
        uint256[] memory tokenIds,
        uint256[] memory amounts
    ) external onlyAdmin {
        require(users.length == tokenIds.length, "NFTClaim: users length and tokenIds don't match");
        require(amounts.length == tokenIds.length, "NFTClaim: tokenIds and amounts don't match");

        for (uint256 i = 0; i < amounts.length; ++i) {
            address user = users[i];
            uint256 tokenId = tokenIds[i];
            uint256 amount = amounts[i];

            userClaimableNFTs[user][tokenId] = userClaimableNFTs[user][tokenId] + amount;
        }

        emit SetUserClaimableNFTBatch(_msgSender(), users, tokenIds, amounts);
    }

    /**
     * Get Claim NftTypes for a Given User
     *
     * @param _user - User for which the nftTypes needs to be fetched
     * @param _tokenId - specified NFT id
     */
    function getClaimableNFTsForTokenId(address _user, uint256 _tokenId) public view returns (uint256) {
        return userClaimableNFTs[_user][_tokenId];
    }

    /**
     * Fetch NFT amount of specified tokenId claimed by a User
     */
    function getNFTAmountClaimedByUser(address _user, uint256 _tokenId) public view returns (uint256) {
        return userClaimedNFTs[_user][_tokenId];
    }

    /**
     * Claim NFTs based on the NftTypes allocated to a user
     */
    function claim(uint256 _tokenId, uint256 _amount) external nonReentrant {
        
        address operator = _msgSender();

        // check how many nfts user can claim for the given tokenId
        uint256 availabletokens = getClaimableNFTsForTokenId(operator, _tokenId);

        require(availabletokens >= _amount, "NFTClaim: invalid claim amount");

        // issue token amount to user
        token.issueToken(operator, _tokenId, _amount);

        // increment user claimed nfts based on tokenId
        userClaimedNFTs[operator][_tokenId] = userClaimedNFTs[operator][_tokenId] + _amount;

        // decrement claimable nfts based on tokenId
        userClaimableNFTs[operator][_tokenId] = userClaimableNFTs[operator][_tokenId] - _amount;

        // emit claimed event
        emit Claimed(operator, _tokenId, _amount);
    }

    // batch version of the function above
    function claimBatch(uint256[] memory _tokenIds, uint256[] memory _amounts) external nonReentrant {
        require(_tokenIds.length > 0, "NFTClaim: number of NFTs claiming must be greater than 0");
        require(_tokenIds.length == _amounts.length, "NFTClaim: ids and amounts length mismatch");
        
        address operator = _msgSender();

        for (uint256 i = 0; i < _tokenIds.length; ++i) {
            uint256 tokenId = _tokenIds[i];
            uint256 amount = _amounts[i];

            uint256 availabletokens = getClaimableNFTsForTokenId(operator, tokenId);

            require(availabletokens >= amount, "NFTClaim: invalid claim amount");

            token.issueToken(operator, tokenId, amount);

            userClaimedNFTs[operator][tokenId] = userClaimedNFTs[operator][tokenId] + amount;

            userClaimableNFTs[operator][tokenId] = userClaimableNFTs[operator][tokenId] - amount;
        }

        emit ClaimedBatch(operator, _tokenIds, _amounts);
    }

    /**
     * Set Trusted Forwarder
     *
     * @param _trustedForwarder - Trusted Forwarder address
     */
    function setTrustedForwarder(address _trustedForwarder) external onlyAdmin {
        trustedForwarder = _trustedForwarder;
    }

    /**
     * returns the message sender
     */
    function _msgSender() internal view override(ContextUpgradeable, BaseRelayRecipient) returns (address) {
        return BaseRelayRecipient._msgSender();
    }

    uint256[50] private __gap;
}

File 2 of 7 : Initializable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     */
    bool private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Modifier to protect an initializer function from being invoked twice.
     */
    modifier initializer() {
        require(_initializing || !_initialized, "Initializable: contract is already initialized");

        bool isTopLevelCall = !_initializing;
        if (isTopLevelCall) {
            _initializing = true;
            _initialized = true;
        }

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }
}

File 3 of 7 : ReentrancyGuardUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";

/**
 * @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 ReentrancyGuardUpgradeable is Initializable {
    // 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;

    function __ReentrancyGuard_init() internal initializer {
        __ReentrancyGuard_init_unchained();
    }

    function __ReentrancyGuard_init_unchained() internal initializer {
        _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 make 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;
    }
    uint256[49] private __gap;
}

File 4 of 7 : AccessProtectedUpgradeable.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";

abstract contract AccessProtectedUpgradeable is Initializable, OwnableUpgradeable {
    mapping(address => bool) private _admins; // user address => admin? mapping

    event AdminAccess(address _admin, bool _isEnabled);

    /**
     * @dev Initializes the contract
     */
    function __AccessProtected_init() internal initializer {
        __Context_init_unchained();
        __Ownable_init_unchained();
        __AccessProtected_init_unchained();
    }

    function __AccessProtected_init_unchained() internal initializer {

    }

    /**
     * @notice Set Admin Access
     *
     * @param admin - Address of Minter
     * @param isEnabled - Enable/Disable Admin Access
     */
    function setAdmin(address admin, bool isEnabled) external onlyAdmin {
        _admins[admin] = isEnabled;
        emit AdminAccess(admin, isEnabled);
    }

    /**
     * @notice Check Admin Access
     *
     * @param admin - Address of Admin
     * @return whether minter has access (or is owner)
     */
    function isAdmin(address admin) public view returns (bool) {
        return _admins[admin] || (admin == owner());
    }

    /**
     * Throws if called by any account other than the Admin.
     */
    modifier onlyAdmin() {
        require(_admins[_msgSender()] || _msgSender() == owner(), "Caller does not have Admin Access");
        _;
    }
}

File 5 of 7 : BaseRelayRecipient.sol
// SPDX-License-Identifier:MIT
pragma solidity ^0.8.0;

/**
 * A base contract to be inherited by any contract that want to receive relayed transactions
 * A subclass must use "_msgSender()" instead of "msg.sender"
 */
abstract contract BaseRelayRecipient {
    /*
     * Forwarder singleton we accept calls from
     */
    address public trustedForwarder;

    /*
     * require a function to be called through GSN only
     */
    modifier trustedForwarderOnly() {
        require(msg.sender == address(trustedForwarder), "Function can only be called through the trusted Forwarder");
        _;
    }

    function isTrustedForwarder(address forwarder) public view returns (bool) {
        return forwarder == trustedForwarder;
    }

    /**
     * return the sender of this call.
     * if the call came through our trusted forwarder, return the original sender.
     * otherwise, return `msg.sender`.
     * should be used in the contract anywhere instead of msg.sender
     */
    function _msgSender() internal view virtual returns (address ret) {
        if (msg.data.length >= 24 && isTrustedForwarder(msg.sender)) {
            // At this point we know that the sender is a trusted forwarder,
            // so we trust that the last bytes of msg.data are the verified sender address.
            // extract sender address from the end of msg.data
            assembly {
                ret := shr(96, calldataload(sub(calldatasize(), 20)))
            }
        } else {
            return msg.sender; //msg.sender;
        }
    }
}

File 6 of 7 : OwnableUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/ContextUpgradeable.sol";
import "../proxy/utils/Initializable.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 OwnableUpgradeable is Initializable, ContextUpgradeable {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    function __Ownable_init() internal initializer {
        __Context_init_unchained();
        __Ownable_init_unchained();
    }

    function __Ownable_init_unchained() internal initializer {
        _setOwner(_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 {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
    uint256[49] private __gap;
}

File 7 of 7 : ContextUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";

/**
 * @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 ContextUpgradeable is Initializable {
    function __Context_init() internal initializer {
        __Context_init_unchained();
    }

    function __Context_init_unchained() internal initializer {
    }
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
    uint256[50] private __gap;
}

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

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_admin","type":"address"},{"indexed":false,"internalType":"bool","name":"_isEnabled","type":"bool"}],"name":"AdminAccess","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_user","type":"address"},{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Claimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_user","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"ClaimedBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_admin","type":"address"},{"indexed":true,"internalType":"address","name":"_user","type":"address"},{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"SetUserClaimableNFT","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_admin","type":"address"},{"indexed":false,"internalType":"address[]","name":"_users","type":"address[]"},{"indexed":false,"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"SetUserClaimableNFTBatch","type":"event"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"claimBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getClaimableNFTsForTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getNFTAmountClaimedByUser","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC1155Tradeable","name":"_token","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"admin","type":"address"}],"name":"isAdmin","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"forwarder","type":"address"}],"name":"isTrustedForwarder","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"admin","type":"address"},{"internalType":"bool","name":"isEnabled","type":"bool"}],"name":"setAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_trustedForwarder","type":"address"}],"name":"setTrustedForwarder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint8","name":"tokenId","type":"uint8"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setUserClaimableNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"users","type":"address[]"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"setUserClaimableNFTBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"trustedForwarder","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"userClaimableNFTs","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"userClaimedNFTs","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b50612e1a806100206000396000f3fe608060405234801561001057600080fd5b506004361061010b5760003560e01c80637da0a877116100a2578063c4d66de811610071578063c4d66de8146102b6578063da742228146102d2578063deaef013146102ee578063f2fde38b1461031e578063ff45ee311461033a5761010b565b80637da0a8771461022e5780638da5cb5b1461024c578063bb3305301461026a578063c34902631461029a5761010b565b8063714b5227116100de578063714b5227146101a8578063715018a6146101d85780637b96f9e6146101e25780637c71e11b146101fe5761010b565b806324d7806c1461011057806337c5bb08146101405780634b0bddd21461015c578063572b6c0514610178575b600080fd5b61012a60048036038101906101259190611f4e565b610356565b60405161013791906125a2565b60405180910390f35b61015a60048036038101906101559190611fef565b6103e9565b005b61017660048036038101906101719190611f77565b6106e4565b005b610192600480360381019061018d9190611f4e565b61084f565b60405161019f91906125a2565b60405180910390f35b6101c260048036038101906101bd9190611fb3565b6108a9565b6040516101cf919061275d565b60405180910390f35b6101e06108ce565b005b6101fc60048036038101906101f7919061203e565b610956565b005b61021860048036038101906102139190611fb3565b610cb3565b604051610225919061275d565b60405180910390f35b610236610cd8565b60405161024391906124a4565b60405180910390f35b610254610cfe565b60405161026191906124a4565b60405180910390f35b610284600480360381019061027f9190611fb3565b610d28565b604051610291919061275d565b60405180910390f35b6102b460048036038101906102af919061216a565b610d83565b005b6102d060048036038101906102cb9190612141565b611072565b005b6102ec60048036038101906102e79190611f4e565b611155565b005b61030860048036038101906103039190611fb3565b611270565b604051610315919061275d565b60405180910390f35b61033860048036038101906103339190611f4e565b6112cb565b005b610354600480360381019061034f91906120d5565b6113c3565b005b6000606560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16806103e257506103b3610cfe565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b9050919050565b606560006103f56117ef565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680610481575061044b610cfe565b73ffffffffffffffffffffffffffffffffffffffff166104696117ef565b73ffffffffffffffffffffffffffffffffffffffff16145b6104c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104b79061269d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610530576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610527906126dd565b60405180910390fd5b60008260ff1611610576576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161056d906125dd565b60405180910390fd5b600081116105b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105b09061261d565b60405180910390fd5b80609a60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008460ff168152602001908152602001600020546106189190612878565b609a60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008460ff168152602001908152602001600020819055508160ff168373ffffffffffffffffffffffffffffffffffffffff166106926117ef565b73ffffffffffffffffffffffffffffffffffffffff167ffd2b193eabb0c4f97e27908b3bb0bee8d7c3a63cb723e8abd6f56594022aea60846040516106d7919061275d565b60405180910390a4505050565b606560006106f06117ef565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168061077c5750610746610cfe565b73ffffffffffffffffffffffffffffffffffffffff166107646117ef565b73ffffffffffffffffffffffffffffffffffffffff16145b6107bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107b29061269d565b60405180910390fd5b80606560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055507ff04f30912421c79af756009e02447ad3a12fd6b288cf38192db1d0131302e55582826040516108439291906124bf565b60405180910390a15050565b6000606660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16149050919050565b609a602052816000526040600020602052806000526040600020600091509150505481565b6108d66117ef565b73ffffffffffffffffffffffffffffffffffffffff166108f4610cfe565b73ffffffffffffffffffffffffffffffffffffffff161461094a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109419061267d565b60405180910390fd5b61095460006117fe565b565b606560006109626117ef565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16806109ee57506109b8610cfe565b73ffffffffffffffffffffffffffffffffffffffff166109d66117ef565b73ffffffffffffffffffffffffffffffffffffffff16145b610a2d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a249061269d565b60405180910390fd5b8151835114610a71576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a68906126bd565b60405180910390fd5b8151815114610ab5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aac906126fd565b60405180910390fd5b60005b8151811015610c54576000848281518110610afc577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015190506000848381518110610b41577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015190506000848481518110610b86577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151905080609a60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054610bec9190612878565b609a60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008481526020019081526020016000208190555050505080610c4d9061299a565b9050610ab8565b50610c5d6117ef565b73ffffffffffffffffffffffffffffffffffffffff167fa19c02667dd1063a4cb41c6babd59413b23e4afa3d69dcbe8af59c68f0352017848484604051610ca69392919061251f565b60405180910390a2505050565b609b602052816000526040600020602052806000526040600020600091509150505481565b606660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000603360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000609a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b60026067541415610dc9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dc09061273d565b60405180910390fd5b60026067819055506000610ddb6117ef565b90506000610de98285610d28565b905082811015610e2e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e25906125fd565b60405180910390fd5b609960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dafe477c8386866040518463ffffffff1660e01b8152600401610e8d939291906124e8565b600060405180830381600087803b158015610ea757600080fd5b505af1158015610ebb573d6000803e3d6000fd5b5050505082609b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600086815260200190815260200160002054610f1b9190612878565b609b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008681526020019081526020016000208190555082609a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600086815260200190815260200160002054610fcb91906128ce565b609a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008681526020019081526020016000208190555082848373ffffffffffffffffffffffffffffffffffffffff167f987d620f307ff6b94d58743cb7a7509f24071586a77759b77c2d4e29f75a2f9a60405160405180910390a4505060016067819055505050565b600060019054906101000a900460ff1680611098575060008054906101000a900460ff16155b6110d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110ce9061263d565b60405180910390fd5b60008060019054906101000a900460ff161590508015611127576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b611130826118c4565b80156111515760008060016101000a81548160ff0219169083151502179055505b5050565b606560006111616117ef565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16806111ed57506111b7610cfe565b73ffffffffffffffffffffffffffffffffffffffff166111d56117ef565b73ffffffffffffffffffffffffffffffffffffffff16145b61122c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112239061269d565b60405180910390fd5b80606660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000609b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b6112d36117ef565b73ffffffffffffffffffffffffffffffffffffffff166112f1610cfe565b73ffffffffffffffffffffffffffffffffffffffff1614611347576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133e9061267d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156113b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113ae906125bd565b60405180910390fd5b6113c0816117fe565b50565b60026067541415611409576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114009061273d565b60405180910390fd5b60026067819055506000825111611455576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144c9061271d565b60405180910390fd5b8051825114611499576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114909061265d565b60405180910390fd5b60006114a36117ef565b905060005b83518110156117915760008482815181106114ec577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015190506000848381518110611531577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151905060006115478584610d28565b90508181101561158c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611583906125fd565b60405180910390fd5b609960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dafe477c8685856040518463ffffffff1660e01b81526004016115eb939291906124e8565b600060405180830381600087803b15801561160557600080fd5b505af1158015611619573d6000803e3d6000fd5b5050505081609b60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000858152602001908152602001600020546116799190612878565b609b60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008581526020019081526020016000208190555081609a60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008581526020019081526020016000205461172991906128ce565b609a60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000858152602001908152602001600020819055505050508061178a9061299a565b90506114a8565b508073ffffffffffffffffffffffffffffffffffffffff167f5a9ed1e3edeca211e8a6c16d2ab1cde4c4c3f007f0ed4495200757ffc6ca7f1a84846040516117da92919061256b565b60405180910390a25060016067819055505050565b60006117f96119bf565b905090565b6000603360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081603360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600060019054906101000a900460ff16806118ea575060008054906101000a900460ff16155b611929576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119209061263d565b60405180910390fd5b60008060019054906101000a900460ff161590508015611979576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b6119816119fb565b611989611ae4565b611991611bbd565b61199a82611c9e565b80156119bb5760008060016101000a81548160ff0219169083151502179055505b5050565b600060186000369050101580156119db57506119da3361084f565b5b156119ef57601436033560601c90506119f7565b3390506119f8565b5b90565b600060019054906101000a900460ff1680611a21575060008054906101000a900460ff16155b611a60576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a579061263d565b60405180910390fd5b60008060019054906101000a900460ff161590508015611ab0576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b611ac0611abb6117ef565b6117fe565b8015611ae15760008060016101000a81548160ff0219169083151502179055505b50565b600060019054906101000a900460ff1680611b0a575060008054906101000a900460ff16155b611b49576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b409061263d565b60405180910390fd5b60008060019054906101000a900460ff161590508015611b99576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b8015611bba5760008060016101000a81548160ff0219169083151502179055505b50565b600060019054906101000a900460ff1680611be3575060008054906101000a900460ff16155b611c22576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c199061263d565b60405180910390fd5b60008060019054906101000a900460ff161590508015611c72576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b60016067819055508015611c9b5760008060016101000a81548160ff0219169083151502179055505b50565b600060019054906101000a900460ff1680611cc4575060008054906101000a900460ff16155b611d03576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cfa9061263d565b60405180910390fd5b60008060019054906101000a900460ff161590508015611d53576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b81609960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508015611db55760008060016101000a81548160ff0219169083151502179055505b5050565b6000611dcc611dc78461279d565b612778565b90508083825260208201905082856020860282011115611deb57600080fd5b60005b85811015611e1b5781611e018882611e91565b845260208401935060208301925050600181019050611dee565b5050509392505050565b6000611e38611e33846127c9565b612778565b90508083825260208201905082856020860282011115611e5757600080fd5b60005b85811015611e875781611e6d8882611f24565b845260208401935060208301925050600181019050611e5a565b5050509392505050565b600081359050611ea081612d71565b92915050565b600082601f830112611eb757600080fd5b8135611ec7848260208601611db9565b91505092915050565b600082601f830112611ee157600080fd5b8135611ef1848260208601611e25565b91505092915050565b600081359050611f0981612d88565b92915050565b600081359050611f1e81612d9f565b92915050565b600081359050611f3381612db6565b92915050565b600081359050611f4881612dcd565b92915050565b600060208284031215611f6057600080fd5b6000611f6e84828501611e91565b91505092915050565b60008060408385031215611f8a57600080fd5b6000611f9885828601611e91565b9250506020611fa985828601611efa565b9150509250929050565b60008060408385031215611fc657600080fd5b6000611fd485828601611e91565b9250506020611fe585828601611f24565b9150509250929050565b60008060006060848603121561200457600080fd5b600061201286828701611e91565b935050602061202386828701611f39565b925050604061203486828701611f24565b9150509250925092565b60008060006060848603121561205357600080fd5b600084013567ffffffffffffffff81111561206d57600080fd5b61207986828701611ea6565b935050602084013567ffffffffffffffff81111561209657600080fd5b6120a286828701611ed0565b925050604084013567ffffffffffffffff8111156120bf57600080fd5b6120cb86828701611ed0565b9150509250925092565b600080604083850312156120e857600080fd5b600083013567ffffffffffffffff81111561210257600080fd5b61210e85828601611ed0565b925050602083013567ffffffffffffffff81111561212b57600080fd5b61213785828601611ed0565b9150509250929050565b60006020828403121561215357600080fd5b600061216184828501611f0f565b91505092915050565b6000806040838503121561217d57600080fd5b600061218b85828601611f24565b925050602061219c85828601611f24565b9150509250929050565b60006121b283836121d6565b60208301905092915050565b60006121ca8383612486565b60208301905092915050565b6121df81612902565b82525050565b6121ee81612902565b82525050565b60006121ff82612815565b6122098185612845565b9350612214836127f5565b8060005b8381101561224557815161222c88826121a6565b97506122378361282b565b925050600181019050612218565b5085935050505092915050565b600061225d82612820565b6122678185612856565b935061227283612805565b8060005b838110156122a357815161228a88826121be565b975061229583612838565b925050600181019050612276565b5085935050505092915050565b6122b981612914565b82525050565b60006122cc602683612867565b91506122d782612a52565b604082019050919050565b60006122ef601e83612867565b91506122fa82612aa1565b602082019050919050565b6000612312601e83612867565b915061231d82612aca565b602082019050919050565b6000612335601d83612867565b915061234082612af3565b602082019050919050565b6000612358602e83612867565b915061236382612b1c565b604082019050919050565b600061237b602983612867565b915061238682612b6b565b604082019050919050565b600061239e602083612867565b91506123a982612bba565b602082019050919050565b60006123c1602183612867565b91506123cc82612be3565b604082019050919050565b60006123e4602f83612867565b91506123ef82612c32565b604082019050919050565b6000612407601e83612867565b915061241282612c81565b602082019050919050565b600061242a602a83612867565b915061243582612caa565b604082019050919050565b600061244d603883612867565b915061245882612cf9565b604082019050919050565b6000612470601f83612867565b915061247b82612d48565b602082019050919050565b61248f81612952565b82525050565b61249e81612952565b82525050565b60006020820190506124b960008301846121e5565b92915050565b60006040820190506124d460008301856121e5565b6124e160208301846122b0565b9392505050565b60006060820190506124fd60008301866121e5565b61250a6020830185612495565b6125176040830184612495565b949350505050565b6000606082019050818103600083015261253981866121f4565b9050818103602083015261254d8185612252565b905081810360408301526125618184612252565b9050949350505050565b600060408201905081810360008301526125858185612252565b905081810360208301526125998184612252565b90509392505050565b60006020820190506125b760008301846122b0565b92915050565b600060208201905081810360008301526125d6816122bf565b9050919050565b600060208201905081810360008301526125f6816122e2565b9050919050565b6000602082019050818103600083015261261681612305565b9050919050565b6000602082019050818103600083015261263681612328565b9050919050565b600060208201905081810360008301526126568161234b565b9050919050565b600060208201905081810360008301526126768161236e565b9050919050565b6000602082019050818103600083015261269681612391565b9050919050565b600060208201905081810360008301526126b6816123b4565b9050919050565b600060208201905081810360008301526126d6816123d7565b9050919050565b600060208201905081810360008301526126f6816123fa565b9050919050565b600060208201905081810360008301526127168161241d565b9050919050565b6000602082019050818103600083015261273681612440565b9050919050565b6000602082019050818103600083015261275681612463565b9050919050565b60006020820190506127726000830184612495565b92915050565b6000612782612793565b905061278e8282612969565b919050565b6000604051905090565b600067ffffffffffffffff8211156127b8576127b7612a12565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156127e4576127e3612a12565b5b602082029050602081019050919050565b6000819050602082019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600061288382612952565b915061288e83612952565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156128c3576128c26129e3565b5b828201905092915050565b60006128d982612952565b91506128e483612952565b9250828210156128f7576128f66129e3565b5b828203905092915050565b600061290d82612932565b9050919050565b60008115159050919050565b600061292b82612902565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b61297282612a41565b810181811067ffffffffffffffff8211171561299157612990612a12565b5b80604052505050565b60006129a582612952565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156129d8576129d76129e3565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f746f6b656e4964206d7573742062652067726561746572207468616e20300000600082015250565b7f4e4654436c61696d3a20696e76616c696420636c61696d20616d6f756e740000600082015250565b7f616d6f756e74206d7573742062652067726561746572207468616e2030000000600082015250565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b7f4e4654436c61696d3a2069647320616e6420616d6f756e7473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f43616c6c657220646f6573206e6f7420686176652041646d696e20416363657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b7f4e4654436c61696d3a207573657273206c656e67746820616e6420746f6b656e60008201527f49647320646f6e2774206d617463680000000000000000000000000000000000602082015250565b7f43616e6e6f742073657420636c61696d20666f72206164647265737320300000600082015250565b7f4e4654436c61696d3a20746f6b656e49647320616e6420616d6f756e7473206460008201527f6f6e2774206d6174636800000000000000000000000000000000000000000000602082015250565b7f4e4654436c61696d3a206e756d626572206f66204e46547320636c61696d696e60008201527f67206d7573742062652067726561746572207468616e20300000000000000000602082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b612d7a81612902565b8114612d8557600080fd5b50565b612d9181612914565b8114612d9c57600080fd5b50565b612da881612920565b8114612db357600080fd5b50565b612dbf81612952565b8114612dca57600080fd5b50565b612dd68161295c565b8114612de157600080fd5b5056fea26469706673582212206c2744cb60c4735b495054c7d0bbd500d3acb72df3dcb795a4b4834811e84ea364736f6c63430008040033

Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.