ETH Price: $3,288.66 (-0.73%)
Gas: 7 Gwei

Contract

0xbB2582a6eA2eb271bF37Ac0371d4356EF99Cb5B5
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Unstake188732252023-12-26 23:45:23216 days ago1703634323IN
0xbB2582a6...EF99Cb5B5
0 ETH0.0025475514.75477182
Unstake188152812023-12-18 20:34:35224 days ago1702931675IN
0xbB2582a6...EF99Cb5B5
0 ETH0.0042182979.34638676
Unstake187827412023-12-14 6:56:59229 days ago1702537019IN
0xbB2582a6...EF99Cb5B5
0 ETH0.0024266345.64520486
Unstake187827392023-12-14 6:56:35229 days ago1702536995IN
0xbB2582a6...EF99Cb5B5
0 ETH0.0026545649.93250769
Stake187140472023-12-04 15:59:23239 days ago1701705563IN
0xbB2582a6...EF99Cb5B5
0 ETH0.0017736354.4292197
Stake187140462023-12-04 15:59:11239 days ago1701705551IN
0xbB2582a6...EF99Cb5B5
0 ETH0.0042524753.61638827
Stake187140362023-12-04 15:57:11239 days ago1701705431IN
0xbB2582a6...EF99Cb5B5
0 ETH0.0049684162.64308235
Stake185895812023-11-17 5:40:35256 days ago1700199635IN
0xbB2582a6...EF99Cb5B5
0 ETH0.0013326317.88457454
Unstake185692792023-11-14 9:34:35259 days ago1699954475IN
0xbB2582a6...EF99Cb5B5
0 ETH0.0013477625.35157722
Unstake184928342023-11-03 16:49:35270 days ago1699030175IN
0xbB2582a6...EF99Cb5B5
0 ETH0.0015162828.52145627
Unstake184928312023-11-03 16:48:59270 days ago1699030139IN
0xbB2582a6...EF99Cb5B5
0 ETH0.0014452427.18509781
Unstake184049332023-10-22 9:25:47282 days ago1697966747IN
0xbB2582a6...EF99Cb5B5
0 ETH0.000446276.35146569
Unstake183267702023-10-11 11:01:35293 days ago1697022095IN
0xbB2582a6...EF99Cb5B5
0 ETH0.000471676.91311321
Unstake182908322023-10-06 10:21:59298 days ago1696587719IN
0xbB2582a6...EF99Cb5B5
0 ETH0.002309969.66948869
Unstake182745712023-10-04 3:48:23300 days ago1696391303IN
0xbB2582a6...EF99Cb5B5
0 ETH0.000728976.10389077
Unstake182253822023-09-27 6:41:59307 days ago1695796919IN
0xbB2582a6...EF99Cb5B5
0 ETH0.000586618.59772885
Unstake182138432023-09-25 15:58:59309 days ago1695657539IN
0xbB2582a6...EF99Cb5B5
0 ETH0.0009144913.40330717
Unstake181619792023-09-18 9:35:23316 days ago1695029723IN
0xbB2582a6...EF99Cb5B5
0 ETH0.000684839.75152341
Unstake180244322023-08-30 2:26:23335 days ago1693362383IN
0xbB2582a6...EF99Cb5B5
0 ETH0.0019305723.17759257
Unstake180185672023-08-29 6:43:11336 days ago1693291391IN
0xbB2582a6...EF99Cb5B5
0 ETH0.000977313.90918498
Unstake179509812023-08-19 19:44:23345 days ago1692474263IN
0xbB2582a6...EF99Cb5B5
0 ETH0.0010329519.42988689
Unstake179509742023-08-19 19:42:59345 days ago1692474179IN
0xbB2582a6...EF99Cb5B5
0 ETH0.0009378917.64185262
Unstake178615952023-08-07 7:33:23358 days ago1691393603IN
0xbB2582a6...EF99Cb5B5
0 ETH0.0010868715.92985514
Unstake178402032023-08-04 7:42:59361 days ago1691134979IN
0xbB2582a6...EF99Cb5B5
0 ETH0.0036574615.31010557
Unstake178343042023-08-03 11:54:47362 days ago1691063687IN
0xbB2582a6...EF99Cb5B5
0 ETH0.00211715.97815535
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
HumanianStaking

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 800 runs

Other Settings:
default evmVersion
File 1 of 6 : HumanianStaking.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;

/// @title The Humanians Staking
/// @author MilkyTaste @ Ao Collaboration Ltd.
/// https://thehumanians.com

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";

contract HumanianStaking is Ownable {
    IERC721Enumerable public immutable humanians;
    bool public stakingActive = false;

    struct StakedInfo {
        address owner;
        uint64 stakedAt;
    }

    mapping(uint256 => StakedInfo) public tokenStakedInfo;

    constructor(address humanians_) {
        humanians = IERC721Enumerable(humanians_);
    }

    /**
     * Stake.
     * @param tokenIds The tokens to be staked.
     */
    function stake(uint256[] memory tokenIds) external {
        require(stakingActive, "HumanianStaking: Staking not active");

        for (uint256 i = 0; i < tokenIds.length; i++) {
            uint256 tokenId = tokenIds[i];
            humanians.transferFrom(msg.sender, address(this), tokenId);
            tokenStakedInfo[tokenId] = StakedInfo(msg.sender, uint64(block.timestamp));
        }
    }

    /**
     * Unstake.
     * @param tokenIds The tokens to be unstaked.
     */
    function unstake(uint256[] memory tokenIds) external {
        for (uint256 i = 0; i < tokenIds.length; i++) {
            uint256 tokenId = tokenIds[i];
            StakedInfo memory info = tokenStakedInfo[tokenId];
            require(info.owner == msg.sender, "HumanianStaking: Only owner can unstake");
            delete tokenStakedInfo[tokenId];
            // Send it back
            humanians.transferFrom(address(this), msg.sender, tokenId);
        }
    }

    //
    // Admin
    //

    /**
     * Enable/disable staking.
     * @param stakingActive_ The new staking state.
     */
    function setStakingActive(bool stakingActive_) external onlyOwner {
        stakingActive = stakingActive_;
    }

    /**
     * Recover a staked token in an emergency situation.
     * @param tokenId The token to unstake.
     * @param to The address to send the token to.
     * @notice This method will only be called in emergency situations.
     */
    function emergencyUnstake(uint256 tokenId, address to) external onlyOwner {
        delete tokenStakedInfo[tokenId];
        humanians.transferFrom(address(this), to, tokenId);
    }

    //
    // Views
    //

    /**
     * Get owner of staked token.
     * @param tokenId The token Id address to query.
     */
    function getTokenOwner(uint256 tokenId) public view returns (address) {
        return tokenStakedInfo[tokenId].owner;
    }

    /**
     * Get timestamp of when the token was staked.
     * @param tokenId The token Id address to query.
     */
    function getStakedAt(uint256 tokenId) public view returns (uint64) {
        return tokenStakedInfo[tokenId].stakedAt;
    }

    /**
     * List all the staked tokens owned by the given address.
     * @param owner The owner address to query.
     */
    function listStakedTokensOfOwner(address owner) public view returns (uint256[] memory) {
        uint256 supply = humanians.totalSupply();
        uint256[] memory tokenIds = new uint256[](supply);
        uint256 count = 0;
        for (uint256 tokenId = 0; tokenId < supply; tokenId++) {
            if (getTokenOwner(tokenId) == owner) {
                tokenIds[count] = tokenId;
                count++;
            }
        }
        return resizeArray(tokenIds, count);
    }

    /**
     * List all the staked token start times owned by the given address.
     * @param owner The owner address to query.
     */
    function listStakedAtTimesOfOwner(address owner) external view returns (uint256[] memory) {
        uint256[] memory tokenIds = listStakedTokensOfOwner(owner);
        uint256[] memory stakedAts = new uint256[](tokenIds.length);
        for (uint256 i = 0; i < tokenIds.length; i++) {
            stakedAts[i] = getStakedAt(tokenIds[i]);
        }
        return stakedAts;
    }

    /**
     * Helper function to resize an array.
     */
    function resizeArray(uint256[] memory input, uint256 length) internal pure returns (uint256[] memory) {
        uint256[] memory output = new uint256[](length);
        for (uint256 i = 0; i < length; i++) {
            output[i] = input[i];
        }
        return output;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"humanians_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"emergencyUnstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getStakedAt","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getTokenOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"humanians","outputs":[{"internalType":"contract IERC721Enumerable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"listStakedAtTimesOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"listStakedTokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"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":"bool","name":"stakingActive_","type":"bool"}],"name":"setStakingActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenStakedInfo","outputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint64","name":"stakedAt","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a06040526000805460ff60a01b1916905534801561001d57600080fd5b50604051610f59380380610f5983398101604081905261003c916100a6565b61004533610056565b6001600160a01b03166080526100d6565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156100b857600080fd5b81516001600160a01b03811681146100cf57600080fd5b9392505050565b608051610e4c61010d6000396000818161016b0152818161039d015281816106ec0152818161075201526109d20152610e4c6000f3fe608060405234801561001057600080fd5b50600436106100ea5760003560e01c806395e197a71161008c578063a6ac4b3511610066578063a6ac4b351461027e578063ca3d3518146102a2578063e449f341146102b5578063f2fde38b146102c857600080fd5b806395e197a7146101de578063a28f5d7514610242578063a5cd761f1461025557600080fd5b80634027dd75116100c85780634027dd75146101665780635158dfd2146101a5578063715018a6146101c55780638da5cb5b146101cd57600080fd5b80630fbf0a93146100ef578063281105e31461010457806335471f2f14610117575b600080fd5b6101026100fd366004610c40565b6102db565b005b610102610112366004610cfe565b61046c565b610148610125366004610d27565b600090815260016020526040902054600160a01b900467ffffffffffffffff1690565b60405167ffffffffffffffff90911681526020015b60405180910390f35b61018d7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200161015d565b6101b86101b3366004610d5c565b6104ff565b60405161015d9190610d77565b6101026105e4565b6000546001600160a01b031661018d565b61021a6101ec366004610d27565b6001602052600090815260409020546001600160a01b03811690600160a01b900467ffffffffffffffff1682565b604080516001600160a01b03909316835267ffffffffffffffff90911660208301520161015d565b610102610250366004610dbb565b61064a565b61018d610263366004610d27565b6000908152600160205260409020546001600160a01b031690565b60005461029290600160a01b900460ff1681565b604051901515815260200161015d565b6101b86102b0366004610d5c565b61074c565b6101026102c3366004610c40565b6108aa565b6101026102d6366004610d5c565b610a43565b600054600160a01b900460ff166103455760405162461bcd60e51b815260206004820152602360248201527f48756d616e69616e5374616b696e673a205374616b696e67206e6f742061637460448201526269766560e81b60648201526084015b60405180910390fd5b60005b815181101561046857600082828151811061036557610365610de7565b60209081029190910101516040516323b872dd60e01b8152336004820152306024820152604481018290529091506001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906323b872dd90606401600060405180830381600087803b1580156103e157600080fd5b505af11580156103f5573d6000803e3d6000fd5b505060408051808201825233815267ffffffffffffffff428116602080840191825260009788526001905292909520905181549251909516600160a01b026001600160e01b03199092166001600160a01b039590951694909417179092555081905061046081610dfd565b915050610348565b5050565b6000546001600160a01b031633146104c65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161033c565b60008054911515600160a01b027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff909216919091179055565b6060600061050c8361074c565b90506000815167ffffffffffffffff81111561052a5761052a610c2a565b604051908082528060200260200182016040528015610553578160200160208202803683370190505b50905060005b82518110156105dc576105a383828151811061057757610577610de7565b602002602001015160009081526001602052604090205467ffffffffffffffff600160a01b9091041690565b67ffffffffffffffff168282815181106105bf576105bf610de7565b6020908102919091010152806105d481610dfd565b915050610559565b509392505050565b6000546001600160a01b0316331461063e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161033c565b6106486000610b25565b565b6000546001600160a01b031633146106a45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161033c565b6000828152600160205260409081902080546001600160e01b0319169055516323b872dd60e01b81523060048201526001600160a01b038281166024830152604482018490527f000000000000000000000000000000000000000000000000000000000000000016906323b872dd90606401600060405180830381600087803b15801561073057600080fd5b505af1158015610744573d6000803e3d6000fd5b505050505050565b606060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156107a957600080fd5b505afa1580156107bd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107e19190610e26565b905060008167ffffffffffffffff8111156107fe576107fe610c2a565b604051908082528060200260200182016040528015610827578160200160208202803683370190505b5090506000805b83811015610896576000818152600160205260409020546001600160a01b0387811691161415610884578083838151811061086b5761086b610de7565b60209081029190910101528161088081610dfd565b9250505b8061088e81610dfd565b91505061082e565b506108a18282610b8d565b95945050505050565b60005b81518110156104685760008282815181106108ca576108ca610de7565b6020908102919091018101516000818152600183526040908190208151808301909252546001600160a01b038116808352600160a01b90910467ffffffffffffffff169382019390935290925090331461098c5760405162461bcd60e51b815260206004820152602760248201527f48756d616e69616e5374616b696e673a204f6e6c79206f776e65722063616e2060448201527f756e7374616b6500000000000000000000000000000000000000000000000000606482015260840161033c565b6000828152600160205260409081902080546001600160e01b0319169055516323b872dd60e01b8152306004820152336024820152604481018390526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906323b872dd90606401600060405180830381600087803b158015610a1657600080fd5b505af1158015610a2a573d6000803e3d6000fd5b5050505050508080610a3b90610dfd565b9150506108ad565b6000546001600160a01b03163314610a9d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161033c565b6001600160a01b038116610b195760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161033c565b610b2281610b25565b50565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b606060008267ffffffffffffffff811115610baa57610baa610c2a565b604051908082528060200260200182016040528015610bd3578160200160208202803683370190505b50905060005b838110156105dc57848181518110610bf357610bf3610de7565b6020026020010151828281518110610c0d57610c0d610de7565b602090810291909101015280610c2281610dfd565b915050610bd9565b634e487b7160e01b600052604160045260246000fd5b60006020808385031215610c5357600080fd5b823567ffffffffffffffff80821115610c6b57600080fd5b818501915085601f830112610c7f57600080fd5b813581811115610c9157610c91610c2a565b8060051b604051601f19603f83011681018181108582111715610cb657610cb6610c2a565b604052918252848201925083810185019188831115610cd457600080fd5b938501935b82851015610cf257843584529385019392850192610cd9565b98975050505050505050565b600060208284031215610d1057600080fd5b81358015158114610d2057600080fd5b9392505050565b600060208284031215610d3957600080fd5b5035919050565b80356001600160a01b0381168114610d5757600080fd5b919050565b600060208284031215610d6e57600080fd5b610d2082610d40565b6020808252825182820181905260009190848201906040850190845b81811015610daf57835183529284019291840191600101610d93565b50909695505050505050565b60008060408385031215610dce57600080fd5b82359150610dde60208401610d40565b90509250929050565b634e487b7160e01b600052603260045260246000fd5b6000600019821415610e1f57634e487b7160e01b600052601160045260246000fd5b5060010190565b600060208284031215610e3857600080fd5b505191905056fea164736f6c6343000809000a0000000000000000000000007f9c2c1a1ff282748cba62d38d5acc801710f6d0

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100ea5760003560e01c806395e197a71161008c578063a6ac4b3511610066578063a6ac4b351461027e578063ca3d3518146102a2578063e449f341146102b5578063f2fde38b146102c857600080fd5b806395e197a7146101de578063a28f5d7514610242578063a5cd761f1461025557600080fd5b80634027dd75116100c85780634027dd75146101665780635158dfd2146101a5578063715018a6146101c55780638da5cb5b146101cd57600080fd5b80630fbf0a93146100ef578063281105e31461010457806335471f2f14610117575b600080fd5b6101026100fd366004610c40565b6102db565b005b610102610112366004610cfe565b61046c565b610148610125366004610d27565b600090815260016020526040902054600160a01b900467ffffffffffffffff1690565b60405167ffffffffffffffff90911681526020015b60405180910390f35b61018d7f0000000000000000000000007f9c2c1a1ff282748cba62d38d5acc801710f6d081565b6040516001600160a01b03909116815260200161015d565b6101b86101b3366004610d5c565b6104ff565b60405161015d9190610d77565b6101026105e4565b6000546001600160a01b031661018d565b61021a6101ec366004610d27565b6001602052600090815260409020546001600160a01b03811690600160a01b900467ffffffffffffffff1682565b604080516001600160a01b03909316835267ffffffffffffffff90911660208301520161015d565b610102610250366004610dbb565b61064a565b61018d610263366004610d27565b6000908152600160205260409020546001600160a01b031690565b60005461029290600160a01b900460ff1681565b604051901515815260200161015d565b6101b86102b0366004610d5c565b61074c565b6101026102c3366004610c40565b6108aa565b6101026102d6366004610d5c565b610a43565b600054600160a01b900460ff166103455760405162461bcd60e51b815260206004820152602360248201527f48756d616e69616e5374616b696e673a205374616b696e67206e6f742061637460448201526269766560e81b60648201526084015b60405180910390fd5b60005b815181101561046857600082828151811061036557610365610de7565b60209081029190910101516040516323b872dd60e01b8152336004820152306024820152604481018290529091506001600160a01b037f0000000000000000000000007f9c2c1a1ff282748cba62d38d5acc801710f6d016906323b872dd90606401600060405180830381600087803b1580156103e157600080fd5b505af11580156103f5573d6000803e3d6000fd5b505060408051808201825233815267ffffffffffffffff428116602080840191825260009788526001905292909520905181549251909516600160a01b026001600160e01b03199092166001600160a01b039590951694909417179092555081905061046081610dfd565b915050610348565b5050565b6000546001600160a01b031633146104c65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161033c565b60008054911515600160a01b027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff909216919091179055565b6060600061050c8361074c565b90506000815167ffffffffffffffff81111561052a5761052a610c2a565b604051908082528060200260200182016040528015610553578160200160208202803683370190505b50905060005b82518110156105dc576105a383828151811061057757610577610de7565b602002602001015160009081526001602052604090205467ffffffffffffffff600160a01b9091041690565b67ffffffffffffffff168282815181106105bf576105bf610de7565b6020908102919091010152806105d481610dfd565b915050610559565b509392505050565b6000546001600160a01b0316331461063e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161033c565b6106486000610b25565b565b6000546001600160a01b031633146106a45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161033c565b6000828152600160205260409081902080546001600160e01b0319169055516323b872dd60e01b81523060048201526001600160a01b038281166024830152604482018490527f0000000000000000000000007f9c2c1a1ff282748cba62d38d5acc801710f6d016906323b872dd90606401600060405180830381600087803b15801561073057600080fd5b505af1158015610744573d6000803e3d6000fd5b505050505050565b606060007f0000000000000000000000007f9c2c1a1ff282748cba62d38d5acc801710f6d06001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156107a957600080fd5b505afa1580156107bd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107e19190610e26565b905060008167ffffffffffffffff8111156107fe576107fe610c2a565b604051908082528060200260200182016040528015610827578160200160208202803683370190505b5090506000805b83811015610896576000818152600160205260409020546001600160a01b0387811691161415610884578083838151811061086b5761086b610de7565b60209081029190910101528161088081610dfd565b9250505b8061088e81610dfd565b91505061082e565b506108a18282610b8d565b95945050505050565b60005b81518110156104685760008282815181106108ca576108ca610de7565b6020908102919091018101516000818152600183526040908190208151808301909252546001600160a01b038116808352600160a01b90910467ffffffffffffffff169382019390935290925090331461098c5760405162461bcd60e51b815260206004820152602760248201527f48756d616e69616e5374616b696e673a204f6e6c79206f776e65722063616e2060448201527f756e7374616b6500000000000000000000000000000000000000000000000000606482015260840161033c565b6000828152600160205260409081902080546001600160e01b0319169055516323b872dd60e01b8152306004820152336024820152604481018390526001600160a01b037f0000000000000000000000007f9c2c1a1ff282748cba62d38d5acc801710f6d016906323b872dd90606401600060405180830381600087803b158015610a1657600080fd5b505af1158015610a2a573d6000803e3d6000fd5b5050505050508080610a3b90610dfd565b9150506108ad565b6000546001600160a01b03163314610a9d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161033c565b6001600160a01b038116610b195760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161033c565b610b2281610b25565b50565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b606060008267ffffffffffffffff811115610baa57610baa610c2a565b604051908082528060200260200182016040528015610bd3578160200160208202803683370190505b50905060005b838110156105dc57848181518110610bf357610bf3610de7565b6020026020010151828281518110610c0d57610c0d610de7565b602090810291909101015280610c2281610dfd565b915050610bd9565b634e487b7160e01b600052604160045260246000fd5b60006020808385031215610c5357600080fd5b823567ffffffffffffffff80821115610c6b57600080fd5b818501915085601f830112610c7f57600080fd5b813581811115610c9157610c91610c2a565b8060051b604051601f19603f83011681018181108582111715610cb657610cb6610c2a565b604052918252848201925083810185019188831115610cd457600080fd5b938501935b82851015610cf257843584529385019392850192610cd9565b98975050505050505050565b600060208284031215610d1057600080fd5b81358015158114610d2057600080fd5b9392505050565b600060208284031215610d3957600080fd5b5035919050565b80356001600160a01b0381168114610d5757600080fd5b919050565b600060208284031215610d6e57600080fd5b610d2082610d40565b6020808252825182820181905260009190848201906040850190845b81811015610daf57835183529284019291840191600101610d93565b50909695505050505050565b60008060408385031215610dce57600080fd5b82359150610dde60208401610d40565b90509250929050565b634e487b7160e01b600052603260045260246000fd5b6000600019821415610e1f57634e487b7160e01b600052601160045260246000fd5b5060010190565b600060208284031215610e3857600080fd5b505191905056fea164736f6c6343000809000a

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

0000000000000000000000007f9c2c1a1ff282748cba62d38d5acc801710f6d0

-----Decoded View---------------
Arg [0] : humanians_ (address): 0x7F9c2C1a1ff282748Cba62D38D5acc801710f6d0

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000007f9c2c1a1ff282748cba62d38d5acc801710f6d0


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ 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.