ETH Price: $3,950.04 (+1.49%)

Contract

0xfF00fCE469FaD0fdD69b3f9dC712AD7aC1718879
 
Transaction Hash
Method
Block
From
To
Unstake213421142024-12-06 7:58:479 days ago1733471927IN
0xfF00fCE4...aC1718879
0 ETH0.0013408713.26101831
Unstake210420722024-10-25 10:35:5951 days ago1729852559IN
0xfF00fCE4...aC1718879
0 ETH0.000782177.73552662
Unstake206690522024-09-03 9:07:59103 days ago1725354479IN
0xfF00fCE4...aC1718879
0 ETH0.000240472.86233763
Unstake205906292024-08-23 10:13:23114 days ago1724408003IN
0xfF00fCE4...aC1718879
0 ETH0.000248242.95474572
Unstake204657692024-08-05 23:52:35132 days ago1722901955IN
0xfF00fCE4...aC1718879
0 ETH0.000151562.26509523
Unstake196669932024-04-16 8:56:23243 days ago1713257783IN
0xfF00fCE4...aC1718879
0 ETH0.0008887810.57899735
Unstake195824712024-04-04 12:42:47255 days ago1712234567IN
0xfF00fCE4...aC1718879
0 ETH0.0017032120.27295909
Unstake191167362024-01-30 3:48:23321 days ago1706586503IN
0xfF00fCE4...aC1718879
0 ETH0.0013817313.66513808
Unstake187908332023-12-15 10:10:11366 days ago1702635011IN
0xfF00fCE4...aC1718879
0 ETH0.0038449845.76605773
Unstake187198462023-12-05 11:28:23376 days ago1701775703IN
0xfF00fCE4...aC1718879
0 ETH0.0044157952.56023717
Unstake182241872023-09-27 2:41:47446 days ago1695782507IN
0xfF00fCE4...aC1718879
0 ETH0.000600897.15229797
Unstake176939762023-07-14 20:09:23520 days ago1689365363IN
0xfF00fCE4...aC1718879
0 ETH0.001986619.64715123
Unstake174920392023-06-16 11:15:59548 days ago1686914159IN
0xfF00fCE4...aC1718879
0 ETH0.0014741814.57942709
Unstake174086302023-06-04 17:10:59560 days ago1685898659IN
0xfF00fCE4...aC1718879
0 ETH0.0021436825.51580104
Unstake172808792023-05-17 17:40:59578 days ago1684345259IN
0xfF00fCE4...aC1718879
0 ETH0.0056990367.83430571
Unstake171570692023-04-30 6:26:11595 days ago1682835971IN
0xfF00fCE4...aC1718879
0 ETH0.0030811830.47236167
Unstake170259622023-04-11 16:14:59614 days ago1681229699IN
0xfF00fCE4...aC1718879
0 ETH0.0034442740.99643653
Unstake169244342023-03-28 7:44:35628 days ago1679989475IN
0xfF00fCE4...aC1718879
0 ETH0.0017729921.1035276
Unstake168252052023-03-14 9:10:23642 days ago1678785023IN
0xfF00fCE4...aC1718879
0 ETH0.0018894422.48967739
Unstake167324092023-03-01 7:53:11655 days ago1677657191IN
0xfF00fCE4...aC1718879
0 ETH0.003063821.45086675
Unstake166709702023-02-20 16:33:35664 days ago1676910815IN
0xfF00fCE4...aC1718879
0 ETH0.0042508242.03996818
Unstake166639922023-02-19 17:02:35665 days ago1676826155IN
0xfF00fCE4...aC1718879
0 ETH0.0032685838.9051902
Unstake166632002023-02-19 14:22:35665 days ago1676816555IN
0xfF00fCE4...aC1718879
0 ETH0.003256732.20824901
Unstake166557112023-02-18 13:07:35666 days ago1676725655IN
0xfF00fCE4...aC1718879
0 ETH0.0028704542.89774146
Unstake166191462023-02-13 10:09:35671 days ago1676282975IN
0xfF00fCE4...aC1718879
0 ETH0.0014221321.25323995
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:
CheersUpPeriodStake

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 6 : CheersUpPeriodStake.sol
// SPDX-License-Identifier: MIT
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";

/*
 ____                   _           _         
|  _ \                 | |         | |        
| |_) | __ _ ___  ___  | |     __ _| |__  ___ 
|  _ < / _` / __|/ _ \ | |    / _` | '_ \/ __|
| |_) | (_| \__ \  __/ | |___| (_| | |_) \__ \
|____/ \__,_|___/\___| |______\__,_|_.__/|___/
                                              
*/

pragma solidity ^0.8.7;

/**
 * @title CheersUpPeriodStake
 * @author BaseLabs
 */
contract CheersUpPeriodStake is Ownable, ReentrancyGuard {
    event StakeStarted(uint256 indexed tokenId, address indexed account);
    event StakeStopped(uint256 indexed tokenId, address indexed account);
    event StakeInterrupted(uint256 indexed tokenId);
    event StakeConfigChanged(StakeConfig config);
    event TransferUnstakingToken(uint256 indexed tokenId, address indexed account);
    event StakingTokenTransfered(address indexed from, address indexed to, uint256 indexed tokenId);
    event Withdraw(address indexed account, uint256 amount);

    struct StakeStatus {
        address owner;
        uint256 lastStartTime;
        uint256 total;
    }
    struct StakeConfig {
        uint256 startTime;
        uint256 endTime;
    }
    struct StakeReward {
        bool isStaking;
        uint256 total;
        uint256 current;
        address owner;
    }
    string public name = "Cheers UP Period Stake";
    string public symbol = "CUPS";
    StakeConfig public stakeConfig;
    address public cheersUpPeriodContractAddress;
    mapping(uint256 => StakeStatus) private _stakeStatuses;
    IERC721 cheersUpPeriodContract;

    constructor(address cheersUpPeriodContractAddress_, StakeConfig memory stakeConfig_) {
        require(cheersUpPeriodContractAddress_ != address(0), "cheers up period contract address is required");
        cheersUpPeriodContractAddress = cheersUpPeriodContractAddress_;
        cheersUpPeriodContract = IERC721(cheersUpPeriodContractAddress);
        stakeConfig = stakeConfig_;
    }

    /***********************************|
    |               Core                |
    |__________________________________*/

    /**
     * @notice _stake is used to set the stake state of NFT.
     * @param owner_ the owner of the token
     * @param tokenId_ the tokenId of the token
     */
    function _stake(address owner_, uint256 tokenId_) internal {
        require(isStakeEnabled(), "stake is not allowed");
        StakeStatus storage status = _stakeStatuses[tokenId_];
        require(status.lastStartTime == 0, "token is staking");
        status.owner = owner_;
        status.lastStartTime = block.timestamp;
        emit StakeStarted(tokenId_, owner_);
    }

    /**
     * @notice unstake is used to release the stake state of a batch of tokenId.
     * @param tokenIds_ the tokenIds to operate
     */
    function unstake(uint256[] calldata tokenIds_) external nonReentrant {
        for (uint256 i; i < tokenIds_.length; i++) {
            _unstake(tokenIds_[i]);
        }
    }

    /**
     * @notice _unstake is used to release the stake status of a token.
     * @param tokenId_ the tokenId to operate
     */
    function _unstake(uint256 tokenId_) internal {
        StakeStatus storage status = _stakeStatuses[tokenId_];
        require(status.lastStartTime > 0, "token is not staking");
        require(status.owner == msg.sender || owner() == msg.sender, "not the owner");
        cheersUpPeriodContract.safeTransferFrom(address(this), status.owner, tokenId_);
        status.total += block.timestamp - status.lastStartTime;
        status.lastStartTime = 0;
        status.owner = address(0);
        emit StakeStopped(tokenId_, msg.sender);
    }

    /**
     * @notice safeTransferWhileStaking is used to transfer NFT ownership in the staked state.
     * @param to_ the address to which the `token owner` will be transferred
     * @param tokenId_ the tokenId to operate
     */
    function safeTransferWhileStaking(address to_, uint256 tokenId_) external nonReentrant {
        StakeStatus storage status = _stakeStatuses[tokenId_];
        require(status.lastStartTime > 0, "token is not staking");
        require(status.owner == msg.sender, "not the owner");
        status.owner = to_;
        emit StakingTokenTransfered(msg.sender, to_, tokenId_);
    }


    /***********************************|
    |             Getter                |
    |__________________________________*/

    /**
     * @notice getStakeReward is used to get the stake status of the token.
     * @param tokenId_ tokenId
     */
    function getStakeReward(uint256 tokenId_) external view returns (StakeReward memory) {
        StakeStatus memory status = _stakeStatuses[tokenId_];
        StakeReward memory reward;
        if (status.lastStartTime != 0) {
            reward.isStaking = true;
            reward.owner = status.owner;
            reward.current = block.timestamp - status.lastStartTime;
        }
        reward.total = status.total + reward.current;
        return reward;
    }
    
    /**
     * @notice isStakeEnabled is used to return whether the stake has been enabled.
     */
    function isStakeEnabled() public view returns (bool) {
        if (stakeConfig.endTime > 0 && block.timestamp > stakeConfig.endTime) {
            return false;
        }
        return stakeConfig.startTime > 0 && block.timestamp > stakeConfig.startTime;
    }

    /***********************************|
    |              Admin                |
    |__________________________________*/

    /**
     * @notice setStakeConfig is used to modify the stake configuration.
     * @param config_ the stake config
     */
    function setStakeConfig(StakeConfig calldata config_) external onlyOwner {
        stakeConfig = config_;
        emit StakeConfigChanged(stakeConfig);
    }

    /**
     * @notice interruptStake is used to forcibly interrupt NFTs in the stake state
     * and return them to their original owners.
     * This process is under the supervision of the community.
     * caution: Because safeTransferFrom is called for refund (when the target address is a contract,  its onERC721Received logic will be triggered), 
     * be sure to set a reasonable GasLimit before calling this method, or check adequately if the target address is a malicious contract to 
     * prevent bear the high gas cost accidentally.
     * @param tokenIds_ the tokenId list
     */
    function interruptStake(uint256[] calldata tokenIds_) external onlyOwner {
        for (uint256 i; i < tokenIds_.length; i++) {
            uint256 tokenId = tokenIds_[i];
            _unstake(tokenId);
            emit StakeInterrupted(tokenId);
        }
    }

    /**
     * @notice transferUnstakingTokens is used to return the NFT that was mistakenly transferred into the contract to the original owner.
     * This contract realizes the stake feature through "safeTransferFrom".
     * This method is used to prevent some users from mistakenly using transferFrom (instead of safeTransferFrom) to transfer NFT into the contract.
     * caution: Because safeTransferFrom is called for refund (when the target address is a contract,  its onERC721Received logic will be triggered), 
     * be sure to set a reasonable GasLimit before calling this method, or check adequately if the target address is a malicious contract to 
     * prevent bear the high gas cost accidentally.
     * @param contractAddress_ contract address of NFT
     * @param tokenIds_ the tokenId list
     * @param accounts_ the address list
     */
    function transferUnstakingTokens(address contractAddress_, uint256[] calldata tokenIds_, address[] calldata accounts_) external onlyOwner {
        require(tokenIds_.length == accounts_.length, "tokenIds_ and accounts_ length mismatch");
        require(tokenIds_.length > 0, "no tokenId");
        for (uint256 i = 0; i < tokenIds_.length; i++) {
            uint256 tokenId = tokenIds_[i];
            address account = accounts_[i];
            if (address(this) == contractAddress_) {
                require(_stakeStatuses[tokenId].lastStartTime == 0, "token is staking");
            }
            IERC721(contractAddress_).safeTransferFrom(address(this), account, tokenId);
            emit TransferUnstakingToken(tokenId, account);
        }
    }

    /**
     * @notice issuer withdraws the ETH temporarily stored in the contract through this method.
     */
    function withdraw() external onlyOwner nonReentrant {
        uint256 balance = address(this).balance;
        payable(_msgSender()).transfer(balance);
        emit Withdraw(_msgSender(), balance);
    }

    /***********************************|
    |               Hook                |
    |__________________________________*/

    /**
     * @notice onERC721Received is a hook function, which is the key to implementing the stake feature.
     * When the user calls the safeTransferFrom method to transfer the NFT to the current contract, 
     * onERC721Received will be called, and the stake state is modified at this time.
     */
    function onERC721Received(
        address,
        address _from,
        uint256 _tokenId,
        bytes memory
    ) public returns (bytes4) {
        require(msg.sender == cheersUpPeriodContractAddress, "this contract is not allowed");
        _stake(_from, _tokenId);
        return this.onERC721Received.selector;
    }
}

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 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 4 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 5 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 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
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"cheersUpPeriodContractAddress_","type":"address"},{"components":[{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"}],"internalType":"struct CheersUpPeriodStake.StakeConfig","name":"stakeConfig_","type":"tuple"}],"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"},{"anonymous":false,"inputs":[{"components":[{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"}],"indexed":false,"internalType":"struct CheersUpPeriodStake.StakeConfig","name":"config","type":"tuple"}],"name":"StakeConfigChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"StakeInterrupted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"StakeStarted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"StakeStopped","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"StakingTokenTransfered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"TransferUnstakingToken","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"cheersUpPeriodContractAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId_","type":"uint256"}],"name":"getStakeReward","outputs":[{"components":[{"internalType":"bool","name":"isStaking","type":"bool"},{"internalType":"uint256","name":"total","type":"uint256"},{"internalType":"uint256","name":"current","type":"uint256"},{"internalType":"address","name":"owner","type":"address"}],"internalType":"struct CheersUpPeriodStake.StakeReward","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds_","type":"uint256[]"}],"name":"interruptStake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isStakeEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"_from","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","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":"to_","type":"address"},{"internalType":"uint256","name":"tokenId_","type":"uint256"}],"name":"safeTransferWhileStaking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"}],"internalType":"struct CheersUpPeriodStake.StakeConfig","name":"config_","type":"tuple"}],"name":"setStakeConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakeConfig","outputs":[{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddress_","type":"address"},{"internalType":"uint256[]","name":"tokenIds_","type":"uint256[]"},{"internalType":"address[]","name":"accounts_","type":"address[]"}],"name":"transferUnstakingTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds_","type":"uint256[]"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c0604052601660808190527f43686565727320555020506572696f64205374616b650000000000000000000060a0908152620000409160029190620001ac565b50604080518082019091526004808252634355505360e01b60209092019182526200006e91600391620001ac565b503480156200007c57600080fd5b5060405162001569380380620015698339810160408190526200009f9162000252565b620000aa336200015c565b600180556001600160a01b0382166200011f5760405162461bcd60e51b815260206004820152602d60248201527f63686565727320757020706572696f6420636f6e74726163742061646472657360448201526c1cc81a5cc81c995c5d5a5c9959609a1b606482015260840160405180910390fd5b600680546001600160a01b039093166001600160a01b03199384168117909155600880549093161790915580516004556020015160055562000321565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b828054620001ba90620002e4565b90600052602060002090601f016020900481019282620001de576000855562000229565b82601f10620001f957805160ff191683800117855562000229565b8280016001018555821562000229579182015b82811115620002295782518255916020019190600101906200020c565b50620002379291506200023b565b5090565b5b808211156200023757600081556001016200023c565b60008082840360608112156200026757600080fd5b83516001600160a01b03811681146200027f57600080fd5b92506040601f19820112156200029457600080fd5b50604080519081016001600160401b0381118282101715620002c657634e487b7160e01b600052604160045260246000fd5b60409081526020858101518352940151938101939093525092909150565b600181811c90821680620002f957607f821691505b602082108114156200031b57634e487b7160e01b600052602260045260246000fd5b50919050565b61123880620003316000396000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c80638da5cb5b11610097578063e449f34111610066578063e449f34114610219578063e63b67221461022c578063ea4405001461023f578063f2fde38b1461029057600080fd5b80638da5cb5b146101d557806395d89b41146101e6578063a676feb7146101ee578063cd643e191461020157600080fd5b80633ccfd60b116100d35780633ccfd60b146101875780634b8b97e51461018f5780635597011a146101a2578063715018a6146101cd57600080fd5b806306fdde03146101055780630dedd01614610123578063150b7a021461014657806325c4a4cc14610172575b600080fd5b61010d6102a3565b60405161011a9190611080565b60405180910390f35b600454600554610131919082565b6040805192835260208301919091520161011a565b610159610154366004610e86565b610331565b6040516001600160e01b0319909116815260200161011a565b610185610180366004610fe3565b6103ae565b005b6101856104c8565b61018561019d36600461100d565b610586565b6006546101b5906001600160a01b031681565b6040516001600160a01b03909116815260200161011a565b610185610624565b6000546001600160a01b03166101b5565b61010d61065a565b6101856101fc366004610f62565b610667565b61020961089b565b604051901515815260200161011a565b61018561022736600461100d565b6108d2565b61018561023a36600461104f565b610941565b61025261024d366004611067565b6109b7565b60405161011a919081511515815260208083015190820152604080830151908201526060918201516001600160a01b03169181019190915260800190565b61018561029e366004610e64565b610a85565b600280546102b090611170565b80601f01602080910402602001604051908101604052809291908181526020018280546102dc90611170565b80156103295780601f106102fe57610100808354040283529160200191610329565b820191906000526020600020905b81548152906001019060200180831161030c57829003601f168201915b505050505081565b6006546000906001600160a01b031633146103935760405162461bcd60e51b815260206004820152601c60248201527f7468697320636f6e7472616374206973206e6f7420616c6c6f7765640000000060448201526064015b60405180910390fd5b61039d8484610b20565b50630a85bd0160e11b949350505050565b600260015414156103d15760405162461bcd60e51b815260040161038a9061110a565b6002600190815560008281526007602052604090209081015461042d5760405162461bcd60e51b8152602060048201526014602482015273746f6b656e206973206e6f74207374616b696e6760601b604482015260640161038a565b80546001600160a01b031633146104765760405162461bcd60e51b815260206004820152600d60248201526c3737ba103a34329037bbb732b960991b604482015260640161038a565b80546001600160a01b0319166001600160a01b038416908117825560405183919033907ffcaf81317805c96802b6ccb1d10f35e682f7d41e2278c813f2ca1842de8f620090600090a450506001805550565b6000546001600160a01b031633146104f25760405162461bcd60e51b815260040161038a906110d5565b600260015414156105155760405162461bcd60e51b815260040161038a9061110a565b60026001556040514790339082156108fc029083906000818181858888f19350505050158015610549573d6000803e3d6000fd5b5060405181815233907f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a94243649060200160405180910390a25060018055565b6000546001600160a01b031633146105b05760405162461bcd60e51b815260040161038a906110d5565b60005b8181101561061f5760008383838181106105cf576105cf6111d6565b9050602002013590506105e181610c0f565b60405181907f65d9a409d8851d804d0e20a772b7f3427ce712836affc69cf95833e324762a7890600090a25080610617816111a5565b9150506105b3565b505050565b6000546001600160a01b0316331461064e5760405162461bcd60e51b815260040161038a906110d5565b6106586000610dac565b565b600380546102b090611170565b6000546001600160a01b031633146106915760405162461bcd60e51b815260040161038a906110d5565b8281146106f05760405162461bcd60e51b815260206004820152602760248201527f746f6b656e4964735f20616e64206163636f756e74735f206c656e677468206d6044820152660d2e6dac2e8c6d60cb1b606482015260840161038a565b8261072a5760405162461bcd60e51b815260206004820152600a6024820152691b9bc81d1bdad95b925960b21b604482015260640161038a565b60005b83811015610893576000858583818110610749576107496111d6565b9050602002013590506000848484818110610766576107666111d6565b905060200201602081019061077b9190610e64565b9050306001600160a01b03891614156107e057600082815260076020526040902060010154156107e05760405162461bcd60e51b815260206004820152601060248201526f746f6b656e206973207374616b696e6760801b604482015260640161038a565b604051632142170760e11b81523060048201526001600160a01b038281166024830152604482018490528916906342842e0e90606401600060405180830381600087803b15801561083057600080fd5b505af1158015610844573d6000803e3d6000fd5b50506040516001600160a01b03841692508491507f0f9052eb31c7183c55ce3f4789d34132293b85a3ee38b886797b396bad7b1eed90600090a35050808061088b906111a5565b91505061072d565b505050505050565b600554600090158015906108b0575060055442115b156108bb5750600090565b600454158015906108cd575060045442115b905090565b600260015414156108f55760405162461bcd60e51b815260040161038a9061110a565b600260015560005b818110156109385761092683838381811061091a5761091a6111d6565b90506020020135610c0f565b80610930816111a5565b9150506108fd565b50506001805550565b6000546001600160a01b0316331461096b5760405162461bcd60e51b815260040161038a906110d5565b803560048190556020808301356005819055604080519384529183015280517f430e1211b3d809e3df266c78d77315096f29d96463f6f8f5728a347a66ee4f5e9281900390910190a150565b604080516080810182526000808252602082018190529181018290526060810191909152600082815260076020908152604080832081516060808201845282546001600160a01b03168252600183015482860152600290920154818401528251608081018452858152938401859052918301849052820192909252602082015115610a65576001815281516001600160a01b031660608201526020820151610a5f9042611159565b60408201525b80604001518260400151610a799190611141565b60208201529392505050565b6000546001600160a01b03163314610aaf5760405162461bcd60e51b815260040161038a906110d5565b6001600160a01b038116610b145760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161038a565b610b1d81610dac565b50565b610b2861089b565b610b6b5760405162461bcd60e51b81526020600482015260146024820152731cdd185ad9481a5cc81b9bdd08185b1b1bddd95960621b604482015260640161038a565b6000818152600760205260409020600181015415610bbe5760405162461bcd60e51b815260206004820152601060248201526f746f6b656e206973207374616b696e6760801b604482015260640161038a565b80546001600160a01b0319166001600160a01b038416908117825542600183015560405183907f76479e908db07b0874c8c70db34ea08d3e07a7bca435902f6d1083960721aae690600090a3505050565b60008181526007602052604090206001810154610c655760405162461bcd60e51b8152602060048201526014602482015273746f6b656e206973206e6f74207374616b696e6760601b604482015260640161038a565b80546001600160a01b0316331480610c96575033610c8b6000546001600160a01b031690565b6001600160a01b0316145b610cd25760405162461bcd60e51b815260206004820152600d60248201526c3737ba103a34329037bbb732b960991b604482015260640161038a565b6008548154604051632142170760e11b81523060048201526001600160a01b039182166024820152604481018590529116906342842e0e90606401600060405180830381600087803b158015610d2757600080fd5b505af1158015610d3b573d6000803e3d6000fd5b5050506001820154610d4e915042611159565b816002016000828254610d619190611141565b909155505060006001820181905581546001600160a01b0319168255604051339184917fc46c2445511c91e184d799e242b4bd340fbea0fd1ad198d138d12c1a920f80369190a35050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80356001600160a01b0381168114610e1357600080fd5b919050565b60008083601f840112610e2a57600080fd5b50813567ffffffffffffffff811115610e4257600080fd5b6020830191508360208260051b8501011115610e5d57600080fd5b9250929050565b600060208284031215610e7657600080fd5b610e7f82610dfc565b9392505050565b60008060008060808587031215610e9c57600080fd5b610ea585610dfc565b9350610eb360208601610dfc565b925060408501359150606085013567ffffffffffffffff80821115610ed757600080fd5b818701915087601f830112610eeb57600080fd5b813581811115610efd57610efd6111ec565b604051601f8201601f19908116603f01168101908382118183101715610f2557610f256111ec565b816040528281528a6020848701011115610f3e57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600080600080600060608688031215610f7a57600080fd5b610f8386610dfc565b9450602086013567ffffffffffffffff80821115610fa057600080fd5b610fac89838a01610e18565b90965094506040880135915080821115610fc557600080fd5b50610fd288828901610e18565b969995985093965092949392505050565b60008060408385031215610ff657600080fd5b610fff83610dfc565b946020939093013593505050565b6000806020838503121561102057600080fd5b823567ffffffffffffffff81111561103757600080fd5b61104385828601610e18565b90969095509350505050565b60006040828403121561106157600080fd5b50919050565b60006020828403121561107957600080fd5b5035919050565b600060208083528351808285015260005b818110156110ad57858101830151858201604001528201611091565b818111156110bf576000604083870101525b50601f01601f1916929092016040019392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60008219821115611154576111546111c0565b500190565b60008282101561116b5761116b6111c0565b500390565b600181811c9082168061118457607f821691505b6020821081141561106157634e487b7160e01b600052602260045260246000fd5b60006000198214156111b9576111b96111c0565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fdfea26469706673582212205862c5b974e5adb3fc50596ddd42161d46919ae4c418fddd4e6ee423ea91527664736f6c63430008070033000000000000000000000000a5bb28eecc6134f89745e34ec6ab5d5bcb16dad70000000000000000000000000000000000000000000000000000000062b3d7300000000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101005760003560e01c80638da5cb5b11610097578063e449f34111610066578063e449f34114610219578063e63b67221461022c578063ea4405001461023f578063f2fde38b1461029057600080fd5b80638da5cb5b146101d557806395d89b41146101e6578063a676feb7146101ee578063cd643e191461020157600080fd5b80633ccfd60b116100d35780633ccfd60b146101875780634b8b97e51461018f5780635597011a146101a2578063715018a6146101cd57600080fd5b806306fdde03146101055780630dedd01614610123578063150b7a021461014657806325c4a4cc14610172575b600080fd5b61010d6102a3565b60405161011a9190611080565b60405180910390f35b600454600554610131919082565b6040805192835260208301919091520161011a565b610159610154366004610e86565b610331565b6040516001600160e01b0319909116815260200161011a565b610185610180366004610fe3565b6103ae565b005b6101856104c8565b61018561019d36600461100d565b610586565b6006546101b5906001600160a01b031681565b6040516001600160a01b03909116815260200161011a565b610185610624565b6000546001600160a01b03166101b5565b61010d61065a565b6101856101fc366004610f62565b610667565b61020961089b565b604051901515815260200161011a565b61018561022736600461100d565b6108d2565b61018561023a36600461104f565b610941565b61025261024d366004611067565b6109b7565b60405161011a919081511515815260208083015190820152604080830151908201526060918201516001600160a01b03169181019190915260800190565b61018561029e366004610e64565b610a85565b600280546102b090611170565b80601f01602080910402602001604051908101604052809291908181526020018280546102dc90611170565b80156103295780601f106102fe57610100808354040283529160200191610329565b820191906000526020600020905b81548152906001019060200180831161030c57829003601f168201915b505050505081565b6006546000906001600160a01b031633146103935760405162461bcd60e51b815260206004820152601c60248201527f7468697320636f6e7472616374206973206e6f7420616c6c6f7765640000000060448201526064015b60405180910390fd5b61039d8484610b20565b50630a85bd0160e11b949350505050565b600260015414156103d15760405162461bcd60e51b815260040161038a9061110a565b6002600190815560008281526007602052604090209081015461042d5760405162461bcd60e51b8152602060048201526014602482015273746f6b656e206973206e6f74207374616b696e6760601b604482015260640161038a565b80546001600160a01b031633146104765760405162461bcd60e51b815260206004820152600d60248201526c3737ba103a34329037bbb732b960991b604482015260640161038a565b80546001600160a01b0319166001600160a01b038416908117825560405183919033907ffcaf81317805c96802b6ccb1d10f35e682f7d41e2278c813f2ca1842de8f620090600090a450506001805550565b6000546001600160a01b031633146104f25760405162461bcd60e51b815260040161038a906110d5565b600260015414156105155760405162461bcd60e51b815260040161038a9061110a565b60026001556040514790339082156108fc029083906000818181858888f19350505050158015610549573d6000803e3d6000fd5b5060405181815233907f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a94243649060200160405180910390a25060018055565b6000546001600160a01b031633146105b05760405162461bcd60e51b815260040161038a906110d5565b60005b8181101561061f5760008383838181106105cf576105cf6111d6565b9050602002013590506105e181610c0f565b60405181907f65d9a409d8851d804d0e20a772b7f3427ce712836affc69cf95833e324762a7890600090a25080610617816111a5565b9150506105b3565b505050565b6000546001600160a01b0316331461064e5760405162461bcd60e51b815260040161038a906110d5565b6106586000610dac565b565b600380546102b090611170565b6000546001600160a01b031633146106915760405162461bcd60e51b815260040161038a906110d5565b8281146106f05760405162461bcd60e51b815260206004820152602760248201527f746f6b656e4964735f20616e64206163636f756e74735f206c656e677468206d6044820152660d2e6dac2e8c6d60cb1b606482015260840161038a565b8261072a5760405162461bcd60e51b815260206004820152600a6024820152691b9bc81d1bdad95b925960b21b604482015260640161038a565b60005b83811015610893576000858583818110610749576107496111d6565b9050602002013590506000848484818110610766576107666111d6565b905060200201602081019061077b9190610e64565b9050306001600160a01b03891614156107e057600082815260076020526040902060010154156107e05760405162461bcd60e51b815260206004820152601060248201526f746f6b656e206973207374616b696e6760801b604482015260640161038a565b604051632142170760e11b81523060048201526001600160a01b038281166024830152604482018490528916906342842e0e90606401600060405180830381600087803b15801561083057600080fd5b505af1158015610844573d6000803e3d6000fd5b50506040516001600160a01b03841692508491507f0f9052eb31c7183c55ce3f4789d34132293b85a3ee38b886797b396bad7b1eed90600090a35050808061088b906111a5565b91505061072d565b505050505050565b600554600090158015906108b0575060055442115b156108bb5750600090565b600454158015906108cd575060045442115b905090565b600260015414156108f55760405162461bcd60e51b815260040161038a9061110a565b600260015560005b818110156109385761092683838381811061091a5761091a6111d6565b90506020020135610c0f565b80610930816111a5565b9150506108fd565b50506001805550565b6000546001600160a01b0316331461096b5760405162461bcd60e51b815260040161038a906110d5565b803560048190556020808301356005819055604080519384529183015280517f430e1211b3d809e3df266c78d77315096f29d96463f6f8f5728a347a66ee4f5e9281900390910190a150565b604080516080810182526000808252602082018190529181018290526060810191909152600082815260076020908152604080832081516060808201845282546001600160a01b03168252600183015482860152600290920154818401528251608081018452858152938401859052918301849052820192909252602082015115610a65576001815281516001600160a01b031660608201526020820151610a5f9042611159565b60408201525b80604001518260400151610a799190611141565b60208201529392505050565b6000546001600160a01b03163314610aaf5760405162461bcd60e51b815260040161038a906110d5565b6001600160a01b038116610b145760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161038a565b610b1d81610dac565b50565b610b2861089b565b610b6b5760405162461bcd60e51b81526020600482015260146024820152731cdd185ad9481a5cc81b9bdd08185b1b1bddd95960621b604482015260640161038a565b6000818152600760205260409020600181015415610bbe5760405162461bcd60e51b815260206004820152601060248201526f746f6b656e206973207374616b696e6760801b604482015260640161038a565b80546001600160a01b0319166001600160a01b038416908117825542600183015560405183907f76479e908db07b0874c8c70db34ea08d3e07a7bca435902f6d1083960721aae690600090a3505050565b60008181526007602052604090206001810154610c655760405162461bcd60e51b8152602060048201526014602482015273746f6b656e206973206e6f74207374616b696e6760601b604482015260640161038a565b80546001600160a01b0316331480610c96575033610c8b6000546001600160a01b031690565b6001600160a01b0316145b610cd25760405162461bcd60e51b815260206004820152600d60248201526c3737ba103a34329037bbb732b960991b604482015260640161038a565b6008548154604051632142170760e11b81523060048201526001600160a01b039182166024820152604481018590529116906342842e0e90606401600060405180830381600087803b158015610d2757600080fd5b505af1158015610d3b573d6000803e3d6000fd5b5050506001820154610d4e915042611159565b816002016000828254610d619190611141565b909155505060006001820181905581546001600160a01b0319168255604051339184917fc46c2445511c91e184d799e242b4bd340fbea0fd1ad198d138d12c1a920f80369190a35050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80356001600160a01b0381168114610e1357600080fd5b919050565b60008083601f840112610e2a57600080fd5b50813567ffffffffffffffff811115610e4257600080fd5b6020830191508360208260051b8501011115610e5d57600080fd5b9250929050565b600060208284031215610e7657600080fd5b610e7f82610dfc565b9392505050565b60008060008060808587031215610e9c57600080fd5b610ea585610dfc565b9350610eb360208601610dfc565b925060408501359150606085013567ffffffffffffffff80821115610ed757600080fd5b818701915087601f830112610eeb57600080fd5b813581811115610efd57610efd6111ec565b604051601f8201601f19908116603f01168101908382118183101715610f2557610f256111ec565b816040528281528a6020848701011115610f3e57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600080600080600060608688031215610f7a57600080fd5b610f8386610dfc565b9450602086013567ffffffffffffffff80821115610fa057600080fd5b610fac89838a01610e18565b90965094506040880135915080821115610fc557600080fd5b50610fd288828901610e18565b969995985093965092949392505050565b60008060408385031215610ff657600080fd5b610fff83610dfc565b946020939093013593505050565b6000806020838503121561102057600080fd5b823567ffffffffffffffff81111561103757600080fd5b61104385828601610e18565b90969095509350505050565b60006040828403121561106157600080fd5b50919050565b60006020828403121561107957600080fd5b5035919050565b600060208083528351808285015260005b818110156110ad57858101830151858201604001528201611091565b818111156110bf576000604083870101525b50601f01601f1916929092016040019392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60008219821115611154576111546111c0565b500190565b60008282101561116b5761116b6111c0565b500390565b600181811c9082168061118457607f821691505b6020821081141561106157634e487b7160e01b600052602260045260246000fd5b60006000198214156111b9576111b96111c0565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fdfea26469706673582212205862c5b974e5adb3fc50596ddd42161d46919ae4c418fddd4e6ee423ea91527664736f6c63430008070033

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

000000000000000000000000a5bb28eecc6134f89745e34ec6ab5d5bcb16dad70000000000000000000000000000000000000000000000000000000062b3d7300000000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : cheersUpPeriodContractAddress_ (address): 0xa5Bb28eecC6134F89745E34ec6aB5d5Bcb16dAD7
Arg [1] : stakeConfig_ (tuple): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000a5bb28eecc6134f89745e34ec6ab5d5bcb16dad7
Arg [1] : 0000000000000000000000000000000000000000000000000000000062b3d730
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000000


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.