ETH Price: $3,299.71 (-3.25%)
Gas: 14 Gwei

Contract

0x107f1d71Ed169957c93E4EF8DC64Afd9c2820272
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Claim161050352022-12-03 14:58:47578 days ago1670079527IN
0x107f1d71...9c2820272
0 ETH0.0043450712.55677953
Claim161050302022-12-03 14:57:47578 days ago1670079467IN
0x107f1d71...9c2820272
0 ETH0.0044515512.86494277
Claim161050162022-12-03 14:54:59578 days ago1670079299IN
0x107f1d71...9c2820272
0 ETH0.0174812111.67784099
Claim161049622022-12-03 14:44:11578 days ago1670078651IN
0x107f1d71...9c2820272
0 ETH0.0042175212.18817083
Claim161047932022-12-03 14:09:59578 days ago1670076599IN
0x107f1d71...9c2820272
0 ETH0.0117331512.7327563
Claim161044072022-12-03 12:52:23578 days ago1670071943IN
0x107f1d71...9c2820272
0 ETH0.0043453912.55771103
Claim161039592022-12-03 11:22:11578 days ago1670066531IN
0x107f1d71...9c2820272
0 ETH0.0043162412.47347276
Claim161036772022-12-03 10:25:11578 days ago1670063111IN
0x107f1d71...9c2820272
0 ETH0.0113712512.34018312
Claim161035722022-12-03 10:03:59578 days ago1670061839IN
0x107f1d71...9c2820272
0 ETH0.0057544711.74654293
Claim161035652022-12-03 10:02:35578 days ago1670061755IN
0x107f1d71...9c2820272
0 ETH0.0025109212.41993112
Claim161033182022-12-03 9:12:59578 days ago1670058779IN
0x107f1d71...9c2820272
0 ETH0.0059050512.05361123
Claim161029392022-12-03 7:56:59578 days ago1670054219IN
0x107f1d71...9c2820272
0 ETH0.0043561812.58888049
Claim161025372022-12-03 6:35:59578 days ago1670049359IN
0x107f1d71...9c2820272
0 ETH0.0153830712.72193598
Claim161017382022-12-03 3:55:59578 days ago1670039759IN
0x107f1d71...9c2820272
0 ETH0.0042759312.35697459
Claim161016172022-12-03 3:31:47578 days ago1670038307IN
0x107f1d71...9c2820272
0 ETH0.0025040512.38593829
Claim161014992022-12-03 3:08:11578 days ago1670036891IN
0x107f1d71...9c2820272
0 ETH0.0240088312.44930747
Claim161014362022-12-03 2:55:23578 days ago1670036123IN
0x107f1d71...9c2820272
0 ETH0.0042840512.38045298
Claim161009942022-12-03 1:26:35578 days ago1670030795IN
0x107f1d71...9c2820272
0 ETH0.0165134611.01085292
Claim161009942022-12-03 1:26:35578 days ago1670030795IN
0x107f1d71...9c2820272
0 ETH0.0004866911.01085292
Claim161009882022-12-03 1:25:23578 days ago1670030723IN
0x107f1d71...9c2820272
0 ETH0.0005515312.47788394
Claim161009772022-12-03 1:22:59578 days ago1670030579IN
0x107f1d71...9c2820272
0 ETH0.0181192812.16809828
Claim161009752022-12-03 1:22:35578 days ago1670030555IN
0x107f1d71...9c2820272
0 ETH0.0039187111.32465977
Claim161008852022-12-03 1:04:35578 days ago1670029475IN
0x107f1d71...9c2820272
0 ETH0.0021834210.80000787
Claim161008682022-12-03 1:01:11578 days ago1670029271IN
0x107f1d71...9c2820272
0 ETH0.0022122910.94278365
Claim161007852022-12-03 0:44:35578 days ago1670028275IN
0x107f1d71...9c2820272
0 ETH0.0042867112.38855434
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:
SpecialEvent

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, None license
/**
 *Submitted for verification at Etherscan.io on 2022-11-15
*/

// File: interfaces/IS7NSBox.sol


pragma solidity ^0.8.0;

interface IS7NSBox {

	/**
       	@notice Mint Boxes to `_beneficiary`
       	@dev  Caller must have MINTER_ROLE
		@param	_beneficiary			Address of Beneficiary
		@param	_fromID					Start of TokenID
		@param	_amount					Amount of Boxes to be minted
    */
	function produce(address _beneficiary, uint256 _fromID, uint256 _amount) external;

	/**
       	@notice Burn Boxes from `msg.sender`
       	@dev  Caller can be ANY
		@param	_ids				A list of `tokenIds` to be burned
		
		Note: MINTER_ROLE is granted a privilege to burn Boxes
    */
	function destroy(uint256[] calldata _ids) external;
}

// File: interfaces/IS7NSManagement.sol


pragma solidity ^0.8.0;

/**
   @title IS7NSManagement contract
   @dev Provide interfaces that allow interaction to S7NSManagement contract
*/
interface IS7NSManagement {
    function treasury() external view returns (address);
    function hasRole(bytes32 role, address account) external view returns (bool);
    function paymentTokens(address _token) external view returns (bool);
    function halted() external view returns (bool);
}

// File: @openzeppelin/contracts/utils/introspection/IERC165.sol


// 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);
}

// File: @openzeppelin/contracts/token/ERC721/IERC721.sol


// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;


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

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

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

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

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

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

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

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

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

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

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

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

// File: SpecialEvent.sol


pragma solidity ^0.8.0;




contract SpecialEvent {

	uint256 private constant START_TIME = 1668528000;		//	Nov 15th, 2022 16:00 PM (UTC)
	bytes32 private constant MANAGER_ROLE = keccak256("MANAGER_ROLE");
	
	IS7NSManagement public immutable management;
    address public immutable gAvatar;
    address public immutable box;
    uint256 public endTime;
    uint256 public counter;

    //  A list of `gAvatarId` has been claimed
    mapping(uint256 => bool) public claimed;

	modifier onlyManager() {
		require(
			management.hasRole(MANAGER_ROLE, msg.sender), "OnlyManager"
		);
        _;
    }

    event Claimed(address indexed caller, uint256[] avatarIds);

	constructor(
		IS7NSManagement _management,
        address _gAvatar,
		address _box,
        uint256 _endTime
	) {
		management = _management;
        gAvatar = _gAvatar;
		box = _box;
        endTime = _endTime;
	}

    /**
       	@notice Update `endTime` of special event
       	@dev  Caller must have MANAGER_ROLE
		@param	_endTime			New ending time
    */
    function updateTime(uint256 _endTime) external onlyManager {
        endTime = _endTime;
    }

    /**
       	@notice Update new value of `counter`
       	@dev  Caller must have MANAGER_ROLE
		@param	_counter			New value of `counter`
    */
    function setCounter(uint256 _counter) external onlyManager {
        counter = _counter;
    }

    /**
       	@notice Claim Box
       	@dev  Caller must own Genesis Avatar
        - 1 Genesis Avatar = 1 Box
		@param	_gAvatarIds			A list of the Genesis Avatar ID
    */
    function claim(uint256[] calldata _gAvatarIds) external {
        //  If a claim is requested before or after a schedule event -> revert
        uint256 _currentTime = block.timestamp;
        require(
            START_TIME <= _currentTime && _currentTime <= endTime, "NotAvailable"
        );

        //  1 `gAvatarId` = 1 Box. Thus, check ownership of `_gAvatarIds`
        //  and also check whether they have been used to claim before
        uint256 _amount = _gAvatarIds.length;
        address _caller = msg.sender;
        IERC721 _gAvatar = IERC721(gAvatar);
        uint256 _id;
        for (uint256 i; i < _amount; i++) {
            _id = _gAvatarIds[i];
            require(
                _gAvatar.ownerOf(_id) == _caller && !claimed[_id],
                "InvalidRequest"
            );
            claimed[_id] = true;
        }

        //  Mint Boxes to `_caller`
        IS7NSBox(box).produce(_caller, counter, _amount);
        counter += _amount;

        emit Claimed(_caller, _gAvatarIds);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IS7NSManagement","name":"_management","type":"address"},{"internalType":"address","name":"_gAvatar","type":"address"},{"internalType":"address","name":"_box","type":"address"},{"internalType":"uint256","name":"_endTime","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"avatarIds","type":"uint256[]"}],"name":"Claimed","type":"event"},{"inputs":[],"name":"box","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_gAvatarIds","type":"uint256[]"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"claimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"counter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gAvatar","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"management","outputs":[{"internalType":"contract IS7NSManagement","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_counter","type":"uint256"}],"name":"setCounter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_endTime","type":"uint256"}],"name":"updateTime","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60e06040523480156200001157600080fd5b50604051620010c2380380620010c28339818101604052810190620000379190620001ce565b8373ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff16815250508273ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff16815250508173ffffffffffffffffffffffffffffffffffffffff1660c08173ffffffffffffffffffffffffffffffffffffffff1681525050806000819055505050505062000240565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200011682620000e9565b9050919050565b60006200012a8262000109565b9050919050565b6200013c816200011d565b81146200014857600080fd5b50565b6000815190506200015c8162000131565b92915050565b6200016d8162000109565b81146200017957600080fd5b50565b6000815190506200018d8162000162565b92915050565b6000819050919050565b620001a88162000193565b8114620001b457600080fd5b50565b600081519050620001c8816200019d565b92915050565b60008060008060808587031215620001eb57620001ea620000e4565b5b6000620001fb878288016200014b565b94505060206200020e878288016200017c565b935050604062000221878288016200017c565b92505060606200023487828801620001b7565b91505092959194509250565b60805160a05160c051610e366200028c600039600081816103d4015261060f01526000818161022901526105eb0152600081816104d70152818161063301526106570152610e366000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c8063715caced11610066578063715caced1461010c578063754215a11461012a57806388a8d602146101485780638bb5d9c314610166578063dbe7e3bd1461018257610093565b80633197cbb61461009857806361bc221a146100b65780636ba4c138146100d45780636c59bd0c146100f0575b600080fd5b6100a06101b2565b6040516100ad91906107a2565b60405180910390f35b6100be6101b8565b6040516100cb91906107a2565b60405180910390f35b6100ee60048036038101906100e9919061082c565b6101be565b005b61010a600480360381019061010591906108a5565b6104d5565b005b6101146105e9565b6040516101219190610913565b60405180910390f35b61013261060d565b60405161013f9190610913565b60405180910390f35b610150610631565b60405161015d919061098d565b60405180910390f35b610180600480360381019061017b91906108a5565b610655565b005b61019c600480360381019061019791906108a5565b610769565b6040516101a991906109c3565b60405180910390f35b60005481565b60015481565b600042905080636373b780111580156101d957506000548111155b610218576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161020f90610a3b565b60405180910390fd5b6000838390509050600033905060007f000000000000000000000000000000000000000000000000000000000000000090506000805b848110156103d15787878281811061026957610268610a5b565b5b9050602002013591508373ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16636352211e846040518263ffffffff1660e01b81526004016102c291906107a2565b60206040518083038186803b1580156102da57600080fd5b505afa1580156102ee573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103129190610ab6565b73ffffffffffffffffffffffffffffffffffffffff1614801561035357506002600083815260200190815260200160002060009054906101000a900460ff16155b610392576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161038990610b2f565b60405180910390fd5b60016002600084815260200190815260200160002060006101000a81548160ff02191690831515021790555080806103c990610b7e565b91505061024e565b507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663eedaf17484600154876040518463ffffffff1660e01b815260040161043193929190610bc7565b600060405180830381600087803b15801561044b57600080fd5b505af115801561045f573d6000803e3d6000fd5b5050505083600160008282546104759190610bfe565b925050819055508273ffffffffffffffffffffffffffffffffffffffff167f28ee566bdecaf975c0979f4d09fecf91a9009ffe78523aef053a678134137b8b88886040516104c4929190610cd5565b60405180910390a250505050505050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166391d148547f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b08336040518363ffffffff1660e01b8152600401610550929190610d12565b60206040518083038186803b15801561056857600080fd5b505afa15801561057c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105a09190610d67565b6105df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105d690610de0565b60405180910390fd5b8060008190555050565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166391d148547f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b08336040518363ffffffff1660e01b81526004016106d0929190610d12565b60206040518083038186803b1580156106e857600080fd5b505afa1580156106fc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107209190610d67565b61075f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161075690610de0565b60405180910390fd5b8060018190555050565b60026020528060005260406000206000915054906101000a900460ff1681565b6000819050919050565b61079c81610789565b82525050565b60006020820190506107b76000830184610793565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f8401126107ec576107eb6107c7565b5b8235905067ffffffffffffffff811115610809576108086107cc565b5b602083019150836020820283011115610825576108246107d1565b5b9250929050565b60008060208385031215610843576108426107bd565b5b600083013567ffffffffffffffff811115610861576108606107c2565b5b61086d858286016107d6565b92509250509250929050565b61088281610789565b811461088d57600080fd5b50565b60008135905061089f81610879565b92915050565b6000602082840312156108bb576108ba6107bd565b5b60006108c984828501610890565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006108fd826108d2565b9050919050565b61090d816108f2565b82525050565b60006020820190506109286000830184610904565b92915050565b6000819050919050565b600061095361094e610949846108d2565b61092e565b6108d2565b9050919050565b600061096582610938565b9050919050565b60006109778261095a565b9050919050565b6109878161096c565b82525050565b60006020820190506109a2600083018461097e565b92915050565b60008115159050919050565b6109bd816109a8565b82525050565b60006020820190506109d860008301846109b4565b92915050565b600082825260208201905092915050565b7f4e6f74417661696c61626c650000000000000000000000000000000000000000600082015250565b6000610a25600c836109de565b9150610a30826109ef565b602082019050919050565b60006020820190508181036000830152610a5481610a18565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b610a93816108f2565b8114610a9e57600080fd5b50565b600081519050610ab081610a8a565b92915050565b600060208284031215610acc57610acb6107bd565b5b6000610ada84828501610aa1565b91505092915050565b7f496e76616c696452657175657374000000000000000000000000000000000000600082015250565b6000610b19600e836109de565b9150610b2482610ae3565b602082019050919050565b60006020820190508181036000830152610b4881610b0c565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000610b8982610789565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415610bbc57610bbb610b4f565b5b600182019050919050565b6000606082019050610bdc6000830186610904565b610be96020830185610793565b610bf66040830184610793565b949350505050565b6000610c0982610789565b9150610c1483610789565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115610c4957610c48610b4f565b5b828201905092915050565b600082825260208201905092915050565b600080fd5b82818337600083830152505050565b6000610c858385610c54565b93507f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115610cb857610cb7610c65565b5b602083029250610cc9838584610c6a565b82840190509392505050565b60006020820190508181036000830152610cf0818486610c79565b90509392505050565b6000819050919050565b610d0c81610cf9565b82525050565b6000604082019050610d276000830185610d03565b610d346020830184610904565b9392505050565b610d44816109a8565b8114610d4f57600080fd5b50565b600081519050610d6181610d3b565b92915050565b600060208284031215610d7d57610d7c6107bd565b5b6000610d8b84828501610d52565b91505092915050565b7f4f6e6c794d616e61676572000000000000000000000000000000000000000000600082015250565b6000610dca600b836109de565b9150610dd582610d94565b602082019050919050565b60006020820190508181036000830152610df981610dbd565b905091905056fea264697066735822122037783fa01e6b0ef8b8013e78603b69a75a0afbc17072c35968a4c6a1afa72f5864736f6c634300080900330000000000000000000000003cd993f928eab47b7d5024521c84bf2476cbb3db000000000000000000000000a605ee5de62bf7b8cdee52ebaaf4563069279d1400000000000000000000000013bd6a24280ff089a9aa27d4fd5fb588e9b508a20000000000000000000000000000000000000000000000000000000063861e70

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100935760003560e01c8063715caced11610066578063715caced1461010c578063754215a11461012a57806388a8d602146101485780638bb5d9c314610166578063dbe7e3bd1461018257610093565b80633197cbb61461009857806361bc221a146100b65780636ba4c138146100d45780636c59bd0c146100f0575b600080fd5b6100a06101b2565b6040516100ad91906107a2565b60405180910390f35b6100be6101b8565b6040516100cb91906107a2565b60405180910390f35b6100ee60048036038101906100e9919061082c565b6101be565b005b61010a600480360381019061010591906108a5565b6104d5565b005b6101146105e9565b6040516101219190610913565b60405180910390f35b61013261060d565b60405161013f9190610913565b60405180910390f35b610150610631565b60405161015d919061098d565b60405180910390f35b610180600480360381019061017b91906108a5565b610655565b005b61019c600480360381019061019791906108a5565b610769565b6040516101a991906109c3565b60405180910390f35b60005481565b60015481565b600042905080636373b780111580156101d957506000548111155b610218576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161020f90610a3b565b60405180910390fd5b6000838390509050600033905060007f000000000000000000000000a605ee5de62bf7b8cdee52ebaaf4563069279d1490506000805b848110156103d15787878281811061026957610268610a5b565b5b9050602002013591508373ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16636352211e846040518263ffffffff1660e01b81526004016102c291906107a2565b60206040518083038186803b1580156102da57600080fd5b505afa1580156102ee573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103129190610ab6565b73ffffffffffffffffffffffffffffffffffffffff1614801561035357506002600083815260200190815260200160002060009054906101000a900460ff16155b610392576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161038990610b2f565b60405180910390fd5b60016002600084815260200190815260200160002060006101000a81548160ff02191690831515021790555080806103c990610b7e565b91505061024e565b507f00000000000000000000000013bd6a24280ff089a9aa27d4fd5fb588e9b508a273ffffffffffffffffffffffffffffffffffffffff1663eedaf17484600154876040518463ffffffff1660e01b815260040161043193929190610bc7565b600060405180830381600087803b15801561044b57600080fd5b505af115801561045f573d6000803e3d6000fd5b5050505083600160008282546104759190610bfe565b925050819055508273ffffffffffffffffffffffffffffffffffffffff167f28ee566bdecaf975c0979f4d09fecf91a9009ffe78523aef053a678134137b8b88886040516104c4929190610cd5565b60405180910390a250505050505050565b7f0000000000000000000000003cd993f928eab47b7d5024521c84bf2476cbb3db73ffffffffffffffffffffffffffffffffffffffff166391d148547f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b08336040518363ffffffff1660e01b8152600401610550929190610d12565b60206040518083038186803b15801561056857600080fd5b505afa15801561057c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105a09190610d67565b6105df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105d690610de0565b60405180910390fd5b8060008190555050565b7f000000000000000000000000a605ee5de62bf7b8cdee52ebaaf4563069279d1481565b7f00000000000000000000000013bd6a24280ff089a9aa27d4fd5fb588e9b508a281565b7f0000000000000000000000003cd993f928eab47b7d5024521c84bf2476cbb3db81565b7f0000000000000000000000003cd993f928eab47b7d5024521c84bf2476cbb3db73ffffffffffffffffffffffffffffffffffffffff166391d148547f241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b08336040518363ffffffff1660e01b81526004016106d0929190610d12565b60206040518083038186803b1580156106e857600080fd5b505afa1580156106fc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107209190610d67565b61075f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161075690610de0565b60405180910390fd5b8060018190555050565b60026020528060005260406000206000915054906101000a900460ff1681565b6000819050919050565b61079c81610789565b82525050565b60006020820190506107b76000830184610793565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f8401126107ec576107eb6107c7565b5b8235905067ffffffffffffffff811115610809576108086107cc565b5b602083019150836020820283011115610825576108246107d1565b5b9250929050565b60008060208385031215610843576108426107bd565b5b600083013567ffffffffffffffff811115610861576108606107c2565b5b61086d858286016107d6565b92509250509250929050565b61088281610789565b811461088d57600080fd5b50565b60008135905061089f81610879565b92915050565b6000602082840312156108bb576108ba6107bd565b5b60006108c984828501610890565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006108fd826108d2565b9050919050565b61090d816108f2565b82525050565b60006020820190506109286000830184610904565b92915050565b6000819050919050565b600061095361094e610949846108d2565b61092e565b6108d2565b9050919050565b600061096582610938565b9050919050565b60006109778261095a565b9050919050565b6109878161096c565b82525050565b60006020820190506109a2600083018461097e565b92915050565b60008115159050919050565b6109bd816109a8565b82525050565b60006020820190506109d860008301846109b4565b92915050565b600082825260208201905092915050565b7f4e6f74417661696c61626c650000000000000000000000000000000000000000600082015250565b6000610a25600c836109de565b9150610a30826109ef565b602082019050919050565b60006020820190508181036000830152610a5481610a18565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b610a93816108f2565b8114610a9e57600080fd5b50565b600081519050610ab081610a8a565b92915050565b600060208284031215610acc57610acb6107bd565b5b6000610ada84828501610aa1565b91505092915050565b7f496e76616c696452657175657374000000000000000000000000000000000000600082015250565b6000610b19600e836109de565b9150610b2482610ae3565b602082019050919050565b60006020820190508181036000830152610b4881610b0c565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000610b8982610789565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415610bbc57610bbb610b4f565b5b600182019050919050565b6000606082019050610bdc6000830186610904565b610be96020830185610793565b610bf66040830184610793565b949350505050565b6000610c0982610789565b9150610c1483610789565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115610c4957610c48610b4f565b5b828201905092915050565b600082825260208201905092915050565b600080fd5b82818337600083830152505050565b6000610c858385610c54565b93507f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115610cb857610cb7610c65565b5b602083029250610cc9838584610c6a565b82840190509392505050565b60006020820190508181036000830152610cf0818486610c79565b90509392505050565b6000819050919050565b610d0c81610cf9565b82525050565b6000604082019050610d276000830185610d03565b610d346020830184610904565b9392505050565b610d44816109a8565b8114610d4f57600080fd5b50565b600081519050610d6181610d3b565b92915050565b600060208284031215610d7d57610d7c6107bd565b5b6000610d8b84828501610d52565b91505092915050565b7f4f6e6c794d616e61676572000000000000000000000000000000000000000000600082015250565b6000610dca600b836109de565b9150610dd582610d94565b602082019050919050565b60006020820190508181036000830152610df981610dbd565b905091905056fea264697066735822122037783fa01e6b0ef8b8013e78603b69a75a0afbc17072c35968a4c6a1afa72f5864736f6c63430008090033

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

0000000000000000000000003cd993f928eab47b7d5024521c84bf2476cbb3db000000000000000000000000a605ee5de62bf7b8cdee52ebaaf4563069279d1400000000000000000000000013bd6a24280ff089a9aa27d4fd5fb588e9b508a20000000000000000000000000000000000000000000000000000000063861e70

-----Decoded View---------------
Arg [0] : _management (address): 0x3CD993f928eaB47b7d5024521c84bF2476cbb3Db
Arg [1] : _gAvatar (address): 0xA605ee5dE62bF7B8cdEE52eBAaF4563069279d14
Arg [2] : _box (address): 0x13Bd6a24280fF089a9aa27D4fD5FB588e9b508A2
Arg [3] : _endTime (uint256): 1669734000

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000003cd993f928eab47b7d5024521c84bf2476cbb3db
Arg [1] : 000000000000000000000000a605ee5de62bf7b8cdee52ebaaf4563069279d14
Arg [2] : 00000000000000000000000013bd6a24280ff089a9aa27d4fd5fb588e9b508a2
Arg [3] : 0000000000000000000000000000000000000000000000000000000063861e70


Deployed Bytecode Sourcemap

7266:2638:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7576:22;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;7605;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;8853:1048;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;8310:96;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;7502:32;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;7541:28;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;7452:43;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;8567:96;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;7684:39;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;7576:22;;;;:::o;7605:::-;;;;:::o;8853:1048::-;9000:20;9023:15;9000:38;;9085:12;7332:10;9071:26;;:53;;;;;9117:7;;9101:12;:23;;9071:53;9049:102;;;;;;;;;;;;:::i;:::-;;;;;;;;;9311:15;9329:11;;:18;;9311:36;;9358:15;9376:10;9358:28;;9397:16;9424:7;9397:35;;9443:11;9470:9;9465:255;9485:7;9481:1;:11;9465:255;;;9520:11;;9532:1;9520:14;;;;;;;:::i;:::-;;;;;;;;9514:20;;9600:7;9575:32;;:8;:16;;;9592:3;9575:21;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:32;;;:49;;;;;9612:7;:12;9620:3;9612:12;;;;;;;;;;;;;;;;;;;;;9611:13;9575:49;9549:125;;;;;;;;;;;;:::i;:::-;;;;;;;;;9704:4;9689:7;:12;9697:3;9689:12;;;;;;;;;;;;:19;;;;;;;;;;;;;;;;;;9494:3;;;;;:::i;:::-;;;;9465:255;;;;9778:3;9769:21;;;9791:7;9800;;9809;9769:48;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9839:7;9828;;:18;;;;;;;:::i;:::-;;;;;;;;9872:7;9864:29;;;9881:11;;9864:29;;;;;;;:::i;:::-;;;;;;;;8909:992;;;;;8853:1048;;:::o;8310:96::-;7770:10;:18;;;7420:25;7803:10;7770:44;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;7757:77;;;;;;;;;;;;:::i;:::-;;;;;;;;;8390:8:::1;8380:7;:18;;;;8310:96:::0;:::o;7502:32::-;;;:::o;7541:28::-;;;:::o;7452:43::-;;;:::o;8567:96::-;7770:10;:18;;;7420:25;7803:10;7770:44;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;7757:77;;;;;;;;;;;;:::i;:::-;;;;;;;;;8647:8:::1;8637:7;:18;;;;8567:96:::0;:::o;7684:39::-;;;;;;;;;;;;;;;;;;;;;;:::o;7:77:1:-;44:7;73:5;62:16;;7:77;;;:::o;90:118::-;177:24;195:5;177:24;:::i;:::-;172:3;165:37;90:118;;:::o;214:222::-;307:4;345:2;334:9;330:18;322:26;;358:71;426:1;415:9;411:17;402:6;358:71;:::i;:::-;214:222;;;;:::o;523:117::-;632:1;629;622:12;646:117;755:1;752;745:12;769:117;878:1;875;868:12;892:117;1001:1;998;991:12;1015:117;1124:1;1121;1114:12;1155:568;1228:8;1238:6;1288:3;1281:4;1273:6;1269:17;1265:27;1255:122;;1296:79;;:::i;:::-;1255:122;1409:6;1396:20;1386:30;;1439:18;1431:6;1428:30;1425:117;;;1461:79;;:::i;:::-;1425:117;1575:4;1567:6;1563:17;1551:29;;1629:3;1621:4;1613:6;1609:17;1599:8;1595:32;1592:41;1589:128;;;1636:79;;:::i;:::-;1589:128;1155:568;;;;;:::o;1729:559::-;1815:6;1823;1872:2;1860:9;1851:7;1847:23;1843:32;1840:119;;;1878:79;;:::i;:::-;1840:119;2026:1;2015:9;2011:17;1998:31;2056:18;2048:6;2045:30;2042:117;;;2078:79;;:::i;:::-;2042:117;2191:80;2263:7;2254:6;2243:9;2239:22;2191:80;:::i;:::-;2173:98;;;;1969:312;1729:559;;;;;:::o;2294:122::-;2367:24;2385:5;2367:24;:::i;:::-;2360:5;2357:35;2347:63;;2406:1;2403;2396:12;2347:63;2294:122;:::o;2422:139::-;2468:5;2506:6;2493:20;2484:29;;2522:33;2549:5;2522:33;:::i;:::-;2422:139;;;;:::o;2567:329::-;2626:6;2675:2;2663:9;2654:7;2650:23;2646:32;2643:119;;;2681:79;;:::i;:::-;2643:119;2801:1;2826:53;2871:7;2862:6;2851:9;2847:22;2826:53;:::i;:::-;2816:63;;2772:117;2567:329;;;;:::o;2902:126::-;2939:7;2979:42;2972:5;2968:54;2957:65;;2902:126;;;:::o;3034:96::-;3071:7;3100:24;3118:5;3100:24;:::i;:::-;3089:35;;3034:96;;;:::o;3136:118::-;3223:24;3241:5;3223:24;:::i;:::-;3218:3;3211:37;3136:118;;:::o;3260:222::-;3353:4;3391:2;3380:9;3376:18;3368:26;;3404:71;3472:1;3461:9;3457:17;3448:6;3404:71;:::i;:::-;3260:222;;;;:::o;3488:60::-;3516:3;3537:5;3530:12;;3488:60;;;:::o;3554:142::-;3604:9;3637:53;3655:34;3664:24;3682:5;3664:24;:::i;:::-;3655:34;:::i;:::-;3637:53;:::i;:::-;3624:66;;3554:142;;;:::o;3702:126::-;3752:9;3785:37;3816:5;3785:37;:::i;:::-;3772:50;;3702:126;;;:::o;3834:148::-;3906:9;3939:37;3970:5;3939:37;:::i;:::-;3926:50;;3834:148;;;:::o;3988:175::-;4097:59;4150:5;4097:59;:::i;:::-;4092:3;4085:72;3988:175;;:::o;4169:266::-;4284:4;4322:2;4311:9;4307:18;4299:26;;4335:93;4425:1;4414:9;4410:17;4401:6;4335:93;:::i;:::-;4169:266;;;;:::o;4441:90::-;4475:7;4518:5;4511:13;4504:21;4493:32;;4441:90;;;:::o;4537:109::-;4618:21;4633:5;4618:21;:::i;:::-;4613:3;4606:34;4537:109;;:::o;4652:210::-;4739:4;4777:2;4766:9;4762:18;4754:26;;4790:65;4852:1;4841:9;4837:17;4828:6;4790:65;:::i;:::-;4652:210;;;;:::o;4868:169::-;4952:11;4986:6;4981:3;4974:19;5026:4;5021:3;5017:14;5002:29;;4868:169;;;;:::o;5043:162::-;5183:14;5179:1;5171:6;5167:14;5160:38;5043:162;:::o;5211:366::-;5353:3;5374:67;5438:2;5433:3;5374:67;:::i;:::-;5367:74;;5450:93;5539:3;5450:93;:::i;:::-;5568:2;5563:3;5559:12;5552:19;;5211:366;;;:::o;5583:419::-;5749:4;5787:2;5776:9;5772:18;5764:26;;5836:9;5830:4;5826:20;5822:1;5811:9;5807:17;5800:47;5864:131;5990:4;5864:131;:::i;:::-;5856:139;;5583:419;;;:::o;6008:180::-;6056:77;6053:1;6046:88;6153:4;6150:1;6143:15;6177:4;6174:1;6167:15;6194:122;6267:24;6285:5;6267:24;:::i;:::-;6260:5;6257:35;6247:63;;6306:1;6303;6296:12;6247:63;6194:122;:::o;6322:143::-;6379:5;6410:6;6404:13;6395:22;;6426:33;6453:5;6426:33;:::i;:::-;6322:143;;;;:::o;6471:351::-;6541:6;6590:2;6578:9;6569:7;6565:23;6561:32;6558:119;;;6596:79;;:::i;:::-;6558:119;6716:1;6741:64;6797:7;6788:6;6777:9;6773:22;6741:64;:::i;:::-;6731:74;;6687:128;6471:351;;;;:::o;6828:164::-;6968:16;6964:1;6956:6;6952:14;6945:40;6828:164;:::o;6998:366::-;7140:3;7161:67;7225:2;7220:3;7161:67;:::i;:::-;7154:74;;7237:93;7326:3;7237:93;:::i;:::-;7355:2;7350:3;7346:12;7339:19;;6998:366;;;:::o;7370:419::-;7536:4;7574:2;7563:9;7559:18;7551:26;;7623:9;7617:4;7613:20;7609:1;7598:9;7594:17;7587:47;7651:131;7777:4;7651:131;:::i;:::-;7643:139;;7370:419;;;:::o;7795:180::-;7843:77;7840:1;7833:88;7940:4;7937:1;7930:15;7964:4;7961:1;7954:15;7981:233;8020:3;8043:24;8061:5;8043:24;:::i;:::-;8034:33;;8089:66;8082:5;8079:77;8076:103;;;8159:18;;:::i;:::-;8076:103;8206:1;8199:5;8195:13;8188:20;;7981:233;;;:::o;8220:442::-;8369:4;8407:2;8396:9;8392:18;8384:26;;8420:71;8488:1;8477:9;8473:17;8464:6;8420:71;:::i;:::-;8501:72;8569:2;8558:9;8554:18;8545:6;8501:72;:::i;:::-;8583;8651:2;8640:9;8636:18;8627:6;8583:72;:::i;:::-;8220:442;;;;;;:::o;8668:305::-;8708:3;8727:20;8745:1;8727:20;:::i;:::-;8722:25;;8761:20;8779:1;8761:20;:::i;:::-;8756:25;;8915:1;8847:66;8843:74;8840:1;8837:81;8834:107;;;8921:18;;:::i;:::-;8834:107;8965:1;8962;8958:9;8951:16;;8668:305;;;;:::o;8979:184::-;9078:11;9112:6;9107:3;9100:19;9152:4;9147:3;9143:14;9128:29;;8979:184;;;;:::o;9169:117::-;9278:1;9275;9268:12;9292:154;9376:6;9371:3;9366;9353:30;9438:1;9429:6;9424:3;9420:16;9413:27;9292:154;;;:::o;9482:537::-;9610:3;9631:86;9710:6;9705:3;9631:86;:::i;:::-;9624:93;;9741:66;9733:6;9730:78;9727:165;;;9811:79;;:::i;:::-;9727:165;9923:4;9915:6;9911:17;9901:27;;9938:43;9974:6;9969:3;9962:5;9938:43;:::i;:::-;10006:6;10001:3;9997:16;9990:23;;9482:537;;;;;:::o;10025:393::-;10178:4;10216:2;10205:9;10201:18;10193:26;;10265:9;10259:4;10255:20;10251:1;10240:9;10236:17;10229:47;10293:118;10406:4;10397:6;10389;10293:118;:::i;:::-;10285:126;;10025:393;;;;;:::o;10424:77::-;10461:7;10490:5;10479:16;;10424:77;;;:::o;10507:118::-;10594:24;10612:5;10594:24;:::i;:::-;10589:3;10582:37;10507:118;;:::o;10631:332::-;10752:4;10790:2;10779:9;10775:18;10767:26;;10803:71;10871:1;10860:9;10856:17;10847:6;10803:71;:::i;:::-;10884:72;10952:2;10941:9;10937:18;10928:6;10884:72;:::i;:::-;10631:332;;;;;:::o;10969:116::-;11039:21;11054:5;11039:21;:::i;:::-;11032:5;11029:32;11019:60;;11075:1;11072;11065:12;11019:60;10969:116;:::o;11091:137::-;11145:5;11176:6;11170:13;11161:22;;11192:30;11216:5;11192:30;:::i;:::-;11091:137;;;;:::o;11234:345::-;11301:6;11350:2;11338:9;11329:7;11325:23;11321:32;11318:119;;;11356:79;;:::i;:::-;11318:119;11476:1;11501:61;11554:7;11545:6;11534:9;11530:22;11501:61;:::i;:::-;11491:71;;11447:125;11234:345;;;;:::o;11585:161::-;11725:13;11721:1;11713:6;11709:14;11702:37;11585:161;:::o;11752:366::-;11894:3;11915:67;11979:2;11974:3;11915:67;:::i;:::-;11908:74;;11991:93;12080:3;11991:93;:::i;:::-;12109:2;12104:3;12100:12;12093:19;;11752:366;;;:::o;12124:419::-;12290:4;12328:2;12317:9;12313:18;12305:26;;12377:9;12371:4;12367:20;12363:1;12352:9;12348:17;12341:47;12405:131;12531:4;12405:131;:::i;:::-;12397:139;;12124:419;;;:::o

Swarm Source

ipfs://37783fa01e6b0ef8b8013e78603b69a75a0afbc17072c35968a4c6a1afa72f58

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.