Address io1mt5u8vzxzuwq7hut99t9tvduhykzgkfclwlsgj

Contract Overview

Balance:
0 IOTX

IOTX Value:
$ 0

Token:
Txn Hash
Block
From
To
Value [Txn Fee]
3076d0053225c76ca6b65a5754fb5cab12285485ea3060ca92e02ab6269741e1 15460881 2022-01-23 03:35:20 +0000 UTC 3 minutes ago io1433k2xd0dv365vl45jx53rnldx0nn57hym2cd3  IN    Contract: AlianaMinting 0 IOTX 0.076686
5cad84265b61d55dc4cf70f5cbd34889143106b47ec5cd5b83f85fb078f5a63b 15460869 2022-01-23 03:34:20 +0000 UTC 4 minutes ago io1ar2l2n6ql35avvn57fc0hww38snfh595m4d0yg  IN    Contract: AlianaMinting 0 IOTX 0.091686
fff45302d497ab2bb80fd50f807962a8d7adf9450c9949939718b2d5492eeab2 15460867 2022-01-23 03:34:10 +0000 UTC 4 minutes ago io1zvnlvd5w7lhg85pfl0h6mzfq6zkhpqg5pfm2ms  IN    Contract: AlianaMinting 0 IOTX 0.076686
346f063df47e60bdc3eb9f2775e7718b000e5ec7aef6c416efc3f5ef3270c7cf 15460846 2022-01-23 03:32:25 +0000 UTC 6 minutes ago io1pqj34ypx4rs0e2dvnrh82lcr0ecdcsgw4jgdnz  IN    Contract: AlianaMinting 0 IOTX 0.076686
702d7f1d2b999380a772acc2046b26da11d53b8c2a4722d25eb7527dc7986eb5 15460793 2022-01-23 03:28:00 +0000 UTC 10 minutes ago io1vgmv2t6mt5l677fmeucuxculynvhy7yyvdwjx3  IN    Contract: AlianaMinting 0 IOTX 0.076686
5f8ad921855f5295cb87f693cd99834412152054951d215308da2483342fc4ef 15460792 2022-01-23 03:27:55 +0000 UTC 10 minutes ago io1qgyvpf6q9r8z3hzqxawvysdpajqksw7hm9vsha  IN    Contract: AlianaMinting 0 IOTX 0.091686
327a3b90a3f4d7cec06c365f79a204ee3880d073d29947bde2435ee5747d5b2f 15460785 2022-01-23 03:27:20 +0000 UTC 11 minutes ago io1dettqgye8ewjt8j5rk00cmf5afdaj73e8jg3ta  IN    Contract: AlianaMinting 0 IOTX 0.076686
ed6cc9d772fba676d221669946e081818ce265eac1fde2f9ebda41e928d4dbf2 15460775 2022-01-23 03:26:30 +0000 UTC 12 minutes ago io14gw7apq2vsnkedr2jje0s59nhl9p6lj3w40s7w  IN    Contract: AlianaMinting 0 IOTX 0.076686
132e6bf00e48969b95e482b9fdcb86275699fb1c6830f34f1654bc3d05790f6f 15460769 2022-01-23 03:26:00 +0000 UTC 12 minutes ago io1z0kmx47s0m04ca0q5vs999398e60573fzv04e3  IN    Contract: AlianaMinting 0 IOTX 0.076686
4f27e6284fdb39101fdfbb7088198a42ca22b4b3ff37d4f6dff6fdb2822e0a10 15460759 2022-01-23 03:25:10 +0000 UTC 13 minutes ago io1m463ryul24s04nnfj9kkn6j8ty9cgjem0la8q8  IN    Contract: AlianaMinting 0 IOTX 0.054049
2d66c3e20d99106fa8b0d4b1962ed330cdfb333602247c2a5bc6615b78c9b486 15460759 2022-01-23 03:25:10 +0000 UTC 13 minutes ago io107j6genag905sh2sgparltex4cj8839s9qa2tv  IN    Contract: AlianaMinting 0 IOTX 0.180956
9500746a2c37f3388013b1873a12bc902b7c546b0116d913c5002fbfa77c205c 15460753 2022-01-23 03:24:40 +0000 UTC 13 minutes ago io1xv0rva8mgg37fgg7mzkv2qq26yhltzek40x9w8  IN    Contract: AlianaMinting 0 IOTX 0.054049
02b4da7243dffd65ee7c6abf6720effd3ce112ed8b873b90e4e860f4ccaae157 15460753 2022-01-23 03:24:40 +0000 UTC 13 minutes ago io107j6genag905sh2sgparltex4cj8839s9qa2tv  IN    Contract: AlianaMinting 0 IOTX 0.180956
d42603c1c399ecd16cfd6bb15989c0b127fef41faeb7095a5d2da221414fa86c 15460751 2022-01-23 03:24:30 +0000 UTC 14 minutes ago io1fmnw36g9su9fcpah0xnnatymctlqxvy9efn624  IN    Contract: AlianaMinting 0 IOTX 0.076686
ad1127ad9fad7cc9b88174bd584704e271bf395b580f81d102b7d270c675eacd 15460746 2022-01-23 03:24:05 +0000 UTC 14 minutes ago io1fapymqfyuauxkp2tykl0ua4anxhyas74ft5z5k  IN    Contract: AlianaMinting 0 IOTX 0.076686
1ede58f93f9a1c9157f7a4937b8ffd74450dea42c66f624b7f76b8df425593dd 15460718 2022-01-23 03:21:45 +0000 UTC 16 minutes ago io1xf2cwc2z3g5ugc5kkh7n5r2f3r3c5458685dzu  IN    Contract: AlianaMinting 0 IOTX 0.120901
fbbf688ce1e497696c5ad165e38815df88a0ae0b1e6b659360118096f61a70a6 15460715 2022-01-23 03:21:30 +0000 UTC 17 minutes ago io1sfnfylke09d3k9m3dxavst67erpk772ervuxnt  IN    Contract: AlianaMinting 0 IOTX 0.195956
e0a1254003fef0f7c510268e1a50216d63750eea1b4fe52820f58190e27b5c32 15460714 2022-01-23 03:21:25 +0000 UTC 17 minutes ago io1xf2cwc2z3g5ugc5kkh7n5r2f3r3c5458685dzu  IN    Contract: AlianaMinting 0 IOTX 0.180956
c53df00190f67a181edc5bc5d1cc0e147882fb48106147069cc202e92e03c396 15460707 2022-01-23 03:20:50 +0000 UTC 17 minutes ago io1xf2cwc2z3g5ugc5kkh7n5r2f3r3c5458685dzu  IN    Contract: AlianaMinting 0 IOTX 0.180956
0a6a4646f7ca1ae44147ab28f99b9701f4e238913355f2b84553e80574932261 15460705 2022-01-23 03:20:40 +0000 UTC 17 minutes ago io13y88qan6cscp5wljz6rce7xrdz6hy95phk73ly  IN    Contract: AlianaMinting 0 IOTX 0.076686
00e0fc97cec3cd4221f375a60c524ca4e107346acb28bbaca77ad9c00f943d57 15460704 2022-01-23 03:20:35 +0000 UTC 18 minutes ago io1h4w67t92rjttnjzwch5u0dta7gzfj3nstt667f  IN    Contract: AlianaMinting 0 IOTX 0.076686
b4258197f682aa721b191c8408dcf890dd47c6e8d037d6a26d8811b5353d31f1 15460702 2022-01-23 03:20:25 +0000 UTC 18 minutes ago io1xf2cwc2z3g5ugc5kkh7n5r2f3r3c5458685dzu  IN    Contract: AlianaMinting 0 IOTX 0.158318
d6ee162d067e60101b43dd0924d54b59c5f85787c7e222a3f222db6791f15e0e 15460684 2022-01-23 03:18:55 +0000 UTC 19 minutes ago io1lv7z3tvwtz5dz6e2tyqmdajkz87y9eqwyf432k  IN    Contract: AlianaMinting 0 IOTX 0.076686
1303f70c67be40426d1d0c1cb26edc30311475cc9c8b5ef0705f5cd685dcc131 15460682 2022-01-23 03:18:45 +0000 UTC 19 minutes ago io1hc20z7kf9u7n3fpve3qhgemrvvge8wj4vfgmx5  IN    Contract: AlianaMinting 0 IOTX 0.091686
ef7647857f5fd7107b9261f95ab25c562a2e812c49fec8540539f88ef61c2fd4 15460659 2022-01-23 03:16:50 +0000 UTC 21 minutes ago io1fs7e79d6p6vz5v4qvz42vl6v6vv7kz9yv98apj  IN    Contract: AlianaMinting 0 IOTX 0.076686
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
AlianaMinting

Compiler Version
v0.5.5+commit.47a71e8f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license
File 1 of 9: @openzeppelin/contracts/token/ERC721/IERC721.sol
pragma solidity ^0.5.0;

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

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
contract IERC721 is IERC165 {
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

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

    /**
     * @dev Returns the owner of the NFT specified by `tokenId`.
     */
    function ownerOf(uint256 tokenId) public view returns (address owner);

    /**
     * @dev Transfers a specific NFT (`tokenId`) from one account (`from`) to
     * another (`to`).
     *
     *
     *
     * Requirements:
     * - `from`, `to` cannot be zero.
     * - `tokenId` must be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this
     * NFT by either {approve} or {setApprovalForAll}.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId) public;
    /**
     * @dev Transfers a specific NFT (`tokenId`) from one account (`from`) to
     * another (`to`).
     *
     * Requirements:
     * - If the caller is not `from`, it must be approved to move this NFT by
     * either {approve} or {setApprovalForAll}.
     */
    function transferFrom(address from, address to, uint256 tokenId) public;
    function approve(address to, uint256 tokenId) public;
    function getApproved(uint256 tokenId) public view returns (address operator);

    function setApprovalForAll(address operator, bool _approved) public;
    function isApprovedForAll(address owner, address operator) public view returns (bool);


    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public;
}

File 2 of 9: @openzeppelin/contracts/utils/Address.sol
pragma solidity ^0.5.5;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following 
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly { codehash := extcodehash(account) }
        return (codehash != accountHash && codehash != 0x0);
    }

    /**
     * @dev Converts an `address` into `address payable`. Note that this is
     * simply a type cast: the actual underlying value is not changed.
     *
     * _Available since v2.4.0._
     */
    function toPayable(address account) internal pure returns (address payable) {
        return address(uint160(account));
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     *
     * _Available since v2.4.0._
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        // solhint-disable-next-line avoid-call-value
        (bool success, ) = recipient.call.value(amount)("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }
}

File 3 of 9: ./contract/aliana/GFAccessControl.sol
pragma solidity ^0.5.0;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";

/// @title A facet of AlianaCore that manages special access privileges.
/// @dev See the AlianaCore contract documentation to understand how the various contract facets are arranged.
contract GFAccessControl {
    mapping(address => bool) public whitelist;

    event WhitelistedAddressAdded(address addr);
    event WhitelistedAddressRemoved(address addr);

    /**
     * @dev Throws if called by any account that's not whitelisted.
     */
    modifier onlyWhitelisted() {
        require(whitelist[msg.sender], "not whitelisted");
        _;
    }

    /**
     * @dev add an address to the whitelist
     * @param addr address
     * @return true if the address was added to the whitelist, false if the address was already in the whitelist
     */
    function addAddressToWhitelist(address addr)
        external
        onlyCEO
        returns (bool success)
    {
        return _addAddressToWhitelist(addr);
    }

    /**
     * @dev add an address to the whitelist
     * @param addr address
     * @return true if the address was added to the whitelist, false if the address was already in the whitelist
     */
    function _addAddressToWhitelist(address addr)
        private
        onlyCEO
        returns (bool success)
    {
        if (!whitelist[addr]) {
            whitelist[addr] = true;
            emit WhitelistedAddressAdded(addr);
            success = true;
        }
    }

    /**
     * @dev add addresses to the whitelist
     * @param addrs addresses
     * @return true if at least one address was added to the whitelist,
     * false if all addresses were already in the whitelist
     */
    function addAddressesToWhitelist(address[] calldata addrs)
        external
        onlyCEO
        returns (bool success)
    {
        for (uint256 i = 0; i < addrs.length; i++) {
            if (_addAddressToWhitelist(addrs[i])) {
                success = true;
            }
        }
    }

    /**
     * @dev remove an address from the whitelist
     * @param addr address
     * @return true if the address was removed from the whitelist,
     * false if the address wasn't in the whitelist in the first place
     */
    function removeAddressFromWhitelist(address addr)
        external
        onlyCEO
        returns (bool success)
    {
        return _removeAddressFromWhitelist(addr);
    }

    /**
     * @dev remove an address from the whitelist
     * @param addr address
     * @return true if the address was removed from the whitelist,
     * false if the address wasn't in the whitelist in the first place
     */
    function _removeAddressFromWhitelist(address addr)
        private
        onlyCEO
        returns (bool success)
    {
        if (whitelist[addr]) {
            whitelist[addr] = false;
            emit WhitelistedAddressRemoved(addr);
            success = true;
        }
    }

    /**
     * @dev remove addresses from the whitelist
     * @param addrs addresses
     * @return true if at least one address was removed from the whitelist,
     * false if all addresses weren't in the whitelist in the first place
     */
    function removeAddressesFromWhitelist(address[] calldata addrs)
        external
        onlyCEO
        returns (bool success)
    {
        for (uint256 i = 0; i < addrs.length; i++) {
            if (_removeAddressFromWhitelist(addrs[i])) {
                success = true;
            }
        }
    }

    // This facet controls access control for GameAlianas. There are four roles managed here:
    //
    //     - The CEO: The CEO can reassign other roles and change the addresses of our dependent smart
    //         contracts. It is also the only role that can unpause the smart contract. It is initially
    //         set to the address that created the smart contract in the AlianaCore constructor.
    //
    //     - The CFO: The CFO can withdraw funds from AlianaCore and its auction contracts.
    //
    //     - The COO: The COO can release gen0 alianas to auction, and mint promo cats.
    //
    // It should be noted that these roles are distinct without overlap in their access abilities, the
    // abilities listed for each role above are exhaustive. In particular, while the CEO can assign any
    // address to any role, the CEO address itself doesn't have the ability to act in those roles. This
    // restriction is intentional so that we aren't tempted to use the CEO address frequently out of
    // convenience. The less we use an address, the less likely it is that we somehow compromise the
    // account.

    /// @dev Emited when contract is upgraded - See README.md for updgrade plan
    event ContractUpgrade(address newContract);

    // The addresses of the accounts (or contracts) that can execute actions within each roles.
    address public ceoAddress;
    address public candidateCEOAddress;

    address public cfoAddress;
    address public cooAddress;

    event SetCandidateCEO(address addr);
    event AcceptCEO(address addr);
    event SetCFO(address addr);
    event SetCOO(address addr);

    event Pause(address operator);
    event Unpause(address operator);

    // @dev Keeps track whether the contract is paused. When that is true, most actions are blocked
    bool public paused = false;

    /**
     * @dev The Ownable constructor sets the original `ceoAddress` of the contract to the sender
     * account.
     */
    constructor() public {
        ceoAddress = msg.sender;
        emit AcceptCEO(ceoAddress);
    }

    /// @dev Access modifier for CEO-only functionality
    modifier onlyCEO() {
        require(msg.sender == ceoAddress, "not ceo");
        _;
    }

    /// @dev Access modifier for CFO-only functionality
    modifier onlyCFO() {
        require(msg.sender == cfoAddress, "not cfo");
        _;
    }

    /// @dev Access modifier for COO-only functionality
    modifier onlyCOO() {
        require(msg.sender == cooAddress, "not coo");
        _;
    }

    modifier onlyCLevel() {
        require(
            msg.sender == cooAddress ||
                msg.sender == ceoAddress ||
                msg.sender == cfoAddress,
            "not c level"
        );
        _;
    }

    modifier onlyCLevelOrWhitelisted() {
        require(
            msg.sender == cooAddress ||
                msg.sender == ceoAddress ||
                msg.sender == cfoAddress ||
                whitelist[msg.sender],
            "not c level or whitelisted"
        );
        _;
    }

    /// @dev Assigns a new address to act as the CEO. Only available to the current CEO.
    /// @param _candidateCEO The address of the new CEO
    function setCandidateCEO(address _candidateCEO) external onlyCEO {
        require(_candidateCEO != address(0), "addr can't be 0");

        candidateCEOAddress = _candidateCEO;
        emit SetCandidateCEO(candidateCEOAddress);
    }

    /// @dev Accept CEO invite.
    function acceptCEO() external {
        require(msg.sender == candidateCEOAddress, "you are not the candidate");

        ceoAddress = candidateCEOAddress;
        emit AcceptCEO(ceoAddress);
    }

    /// @dev Assigns a new address to act as the CFO. Only available to the current CEO.
    /// @param _newCFO The address of the new CFO
    function setCFO(address _newCFO) external onlyCEO {
        require(_newCFO != address(0), "addr can't be 0");

        cfoAddress = _newCFO;
        emit SetCFO(cfoAddress);
    }

    /// @dev Assigns a new address to act as the COO. Only available to the current CEO.
    /// @param _newCOO The address of the new COO
    function setCOO(address _newCOO) external onlyCEO {
        require(_newCOO != address(0), "addr can't be 0");

        cooAddress = _newCOO;
        emit SetCOO(cooAddress);
    }

    /*** Pausable functionality adapted from OpenZeppelin ***/

    /// @dev Modifier to allow actions only when the contract IS NOT paused
    modifier whenNotPaused() {
        require(!paused, "paused");
        _;
    }

    /// @dev Modifier to allow actions only when the contract IS paused
    modifier whenPaused() {
        require(paused, "not paused");
        _;
    }

    /// @dev Called by any "C-level" role to pause the contract. Used only when
    ///  a bug or exploit is detected and we need to limit damage.
    function pause() external onlyCEO whenNotPaused {
        paused = true;
        emit Pause(msg.sender);
    }

    /// @dev Unpauses the smart contract. Can only be called by the CEO, since
    ///  one reason we may pause the contract is when CFO or COO accounts are
    ///  compromised.
    /// @notice This is public rather than external so it can be called by
    ///  derived contracts.
    function unpause() public onlyCEO whenPaused {
        // can't unpause if contract was upgraded
        paused = false;
        emit Unpause(msg.sender);
    }

    // Set in case the core contract is broken and an upgrade is required
    address public newContractAddress;

    /// @dev Used to mark the smart contract as upgraded, in case there is a serious
    ///  breaking bug. This method does nothing but keep track of the new contract and
    ///  emit a message indicating that the new address is set. It's up to clients of this
    ///  contract to update to the new contract address in that case. (This contract will
    ///  be paused indefinitely if such an upgrade takes place.)
    /// @param _v2Address new address
    function setNewAddress(address _v2Address) external onlyCEO whenPaused {
        // See README.md for updgrade plan
        newContractAddress = _v2Address;
        emit ContractUpgrade(_v2Address);
    }

    //////////
    // Safety Methods
    //////////

    /// @notice This method can be used by the owner to extract mistakenly
    ///  sent tokens to this contract.
    /// @param token_ The address of the token contract that you want to recover
    ///  set to 0 in case you want to extract ether.
    function claimTokens(address token_) external onlyCEO {
        if (token_ == address(0)) {
            address(msg.sender).transfer(address(this).balance);
            return;
        }

        IERC20 token = IERC20(token_);
        uint256 balance = token.balanceOf(address(this));
        token.transfer(address(msg.sender), balance);

        emit ClaimedTokens(token_, address(msg.sender), balance);
    }

    function withdrawTokens(
        IERC20 token_,
        address to_,
        uint256 amount_
    ) external onlyCEO {
        assert(token_.transfer(to_, amount_));
        emit WithdrawTokens(address(token_), address(msg.sender), to_, amount_);
    }

    ////////////////
    // Events
    ////////////////

    event ClaimedTokens(
        address indexed token_,
        address indexed controller_,
        uint256 amount_
    );

    event WithdrawTokens(
        address indexed token_,
        address indexed controller_,
        address indexed to_,
        uint256 amount_
    );
}

File 4 of 9: ./contract/aliana/IAliana.sol
pragma solidity ^0.5.0;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";

/// @title SEKRETOOOO
contract IAliana is IERC721 {
    function createOfficialAliana(uint256 _genes, address _owner)
        public
        returns (uint256);

    function burn(uint256 _tokenID) external;

    function isAliana() public returns (bool);

    function geneLpLabor(int256 _id, uint256 _gene)
        public
        view
        returns (uint256);

    function geneLpLabors(int256[] memory _ids, uint256[] memory _genes)
        public
        view
        returns (uint256[] memory);

    function tokensOfOwner(address _owner)
        external
        view
        returns (uint256[] memory ownerTokens);

    function getAliana(uint256 _id)
        external
        view
        returns (
            uint256 birthTime,
            uint256 matronId,
            uint256 sireId,
            uint256 genes,
            uint256 lpLabor
        );
}

File 5 of 9: @openzeppelin/contracts/math/SafeMath.sol
pragma solidity ^0.5.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     *
     * _Available since v2.4.0._
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     *
     * _Available since v2.4.0._
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        // Solidity only automatically asserts when dividing by 0
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     *
     * _Available since v2.4.0._
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

File 6 of 9: @openzeppelin/contracts/token/ERC20/SafeERC20.sol
pragma solidity ^0.5.0;

import "./IERC20.sol";
import "../../math/SafeMath.sol";
import "../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for ERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using SafeMath for uint256;
    using Address for address;

    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // solhint-disable-next-line max-line-length
        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).add(value);
        callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
        callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves.

        // A Solidity high level call has three parts:
        //  1. The target address is checked to verify it contains contract code
        //  2. The call itself is made, and success asserted
        //  3. The return value is decoded, which in turn checks the size of the returned data.
        // solhint-disable-next-line max-line-length
        require(address(token).isContract(), "SafeERC20: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = address(token).call(data);
        require(success, "SafeERC20: low-level call failed");

        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 7 of 9: ./contract/AlianaMinting.sol
pragma solidity ^0.5.0;

import "./aliana/GFAccessControl.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "./aliana/IAliana.sol";

/// @title all functions related to creating kittens
contract AlianaMinting is GFAccessControl {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    // The gae TOKEN
    IERC20 public gftToken;
    IAliana public aliana;

    struct itmap {
        mapping(uint256 => IndexValue) data;
        KeyFlag[] keys;
        uint256 size;
    }
    struct IndexValue {
        uint256 keyIndex;
        uint256 value;
    }
    struct KeyFlag {
        uint256 key;
        bool deleted;
    }

    function insert(
        itmap storage self,
        uint256 key,
        uint256 value
    ) internal returns (bool replaced) {
        uint256 keyIndex = self.data[key].keyIndex;
        self.data[key].value = value;
        if (keyIndex > 0) return true;
        else {
            keyIndex = self.keys.length++;
            self.data[key].keyIndex = keyIndex + 1;
            self.keys[keyIndex].key = key;
            self.size++;
            return false;
        }
    }

    function remove(itmap storage self, uint256 key)
        internal
        returns (bool success)
    {
        uint256 keyIndex = self.data[key].keyIndex;
        if (keyIndex == 0) return false;
        delete self.data[key];
        self.keys[keyIndex - 1].deleted = true;
        self.size--;
        return true;
    }

    function contains(itmap storage self, uint256 key)
        internal
        view
        returns (bool)
    {
        return self.data[key].keyIndex > 0;
    }

    function iterate_start(itmap storage self)
        internal
        view
        returns (uint256 keyIndex)
    {
        return iterate_next(self, uint256(-1));
    }

    function iterate_valid(itmap storage self, uint256 keyIndex)
        internal
        view
        returns (bool)
    {
        return keyIndex < self.keys.length;
    }

    function iterate_next(itmap storage self, uint256 keyIndex)
        internal
        view
        returns (uint256 r_keyIndex)
    {
        keyIndex++;
        while (keyIndex < self.keys.length && self.keys[keyIndex].deleted)
            keyIndex++;
        return keyIndex;
    }

    function iterate_get(itmap storage self, uint256 keyIndex)
        internal
        view
        returns (uint256 key, uint256 value)
    {
        key = self.keys[keyIndex].key;
        value = self.data[key].value;
    }

    // Info of each user.
    struct UserInfo {
        uint256 amount; // How many LP tokens the user has provided.
        itmap amountToken;
        uint256 rewardDebt; // Reward debt. See explanation below.
        uint256 balance;
        //
        // We do some fancy math here. Basically, any point in time, the amount of GFTs
        // entitled to a user but is pending to be distributed is:
        //
        //   pending reward = (user.amount * accGFTPerShare) - user.rewardDebt
        //
        // Whenever a user deposits or withdraws LP tokens to a pool. Here's what happens:
        //   1. Update accGFTPerShare and lastRewardBlock
        //   2. User receives the pending reward sent to his/her address.
        //   3. User's `amount` gets updated.
        //   4. User's `rewardDebt` gets updated.
    }

    // Accumulated GFTs per share, times 1e12. See below.
    uint256 public accGFTPerShare;
    // Last block reward block height
    uint256 public lastRewardBlock;
    // Reward per block
    uint256 public rewardPerBlock;
    // This Mine total labor force
    uint256 public labor;
    // Reward to distribute
    uint256 public rewardToDistribute;
    uint256 public maxMintingNumPerAddress = 9;

    // Info of each user that stakes LP tokens.
    mapping(address => UserInfo) userInfo;

    event RewardAdded(uint256 amount, bool isBlockReward);
    event Deposit(
        address indexed user,
        uint256 indexed tokenId,
        uint256 amount,
        uint256 pending
    );
    event Withdraw(
        address indexed user,
        uint256 indexed tokenId,
        uint256 amount,
        uint256 pending
    );
    event WithdrawPending(address indexed user, uint256 pending);
    event EmergencyWithdraw(address indexed user, uint256 amount);

    constructor(IERC20 _gftToken, IAliana _alianaAddr) public {
        require(_alianaAddr.isAliana(), "AlianaMinting: isAliana false");
        gftToken = _gftToken;
        aliana = _alianaAddr;
        lastRewardBlock = block.number;
        // times 1e10. See below.
        uint256 defaultPerDayIn5SecBlock = 2000;
        setRewardPerBlock(
            defaultPerDayIn5SecBlock.mul(1e18).div((24 * 60 * 60) / 5)
        );
    }

    function setMaxMintingNumPerAddress(uint256 _maxMintingNumPerAddress)
        public
        onlyCEO
    {
        maxMintingNumPerAddress = _maxMintingNumPerAddress;
    }

    function setRewardPerBlock(uint256 _rewardPerBlock) public onlyCEO {
        updateBlockReward();
        rewardPerBlock = _rewardPerBlock;
    }

    // View function to see pending reward on frontend.
    function pendingReward(address _user) external view returns (uint256) {
        UserInfo storage user = userInfo[_user];
        if (rewardPerBlock == 0) {
            return 0;
        }
        uint256 acps = accGFTPerShare;
        if (rewardPerBlock > 0) {
            uint256 lpSupply = labor;
            if (block.number > lastRewardBlock && lpSupply > 0) {
                acps = acps.add(rewardPending().mul(1e12).div(lpSupply));
            }
        }
        return user.amount.mul(acps).div(1e12).sub(user.rewardDebt);
    }

    function rewardPending() internal view returns (uint256) {
        uint256 reward = block.number.sub(lastRewardBlock).mul(rewardPerBlock);
        uint256 gaeBalance = gftToken.balanceOf(address(this)).sub(
            rewardToDistribute
        );
        if (gaeBalance < reward) {
            return gaeBalance;
        }
        return reward;
    }

    // Update reward variables to be up-to-date.
    function updateBlockReward() public {
        if (block.number <= lastRewardBlock || rewardPerBlock == 0) {
            return;
        }
        uint256 lpSupply = labor;
        uint256 reward = rewardPending();
        if (lpSupply == 0 || reward == 0) {
            lastRewardBlock = block.number;
            return;
        }
        rewardToDistribute = rewardToDistribute.add(reward);
        emit RewardAdded(reward, true);
        lastRewardBlock = block.number;
        accGFTPerShare = accGFTPerShare.add(reward.mul(1e12).div(lpSupply));
    }

    function _depositFrom(address _from, uint256 _tokenId)
        internal
        whenNotPaused
    {
        require(
            aliana.ownerOf(_tokenId) == _from,
            "AlianaMinting: must be the owner"
        );
        UserInfo storage user = userInfo[_from];
        if (maxMintingNumPerAddress > 0) {
            require(
                user.amountToken.size < maxMintingNumPerAddress,
                "AlianaMinting: too much mining at the same time"
            );
        }
        (, , , , uint256 _amount) = aliana.getAliana(_tokenId);
        require(_amount > 0, "AlianaMinting: gene _amount must > 0");

        updateBlockReward();
        uint256 takePending;
        if (user.amount > 0) {
            uint256 pending = user.amount.mul(accGFTPerShare).div(1e12).sub(
                user.rewardDebt
            );
            if (pending > 0) {
                safeGFTTransfer(_from, pending);
            }
            takePending = pending;
        }

        aliana.transferFrom(address(_from), address(this), _tokenId);
        insert(user.amountToken, _tokenId, _amount);
        user.balance = user.balance.add(1);

        user.amount = user.amount.add(_amount);
        labor = labor.add(_amount);

        user.rewardDebt = user.amount.mul(accGFTPerShare).div(1e12);
        emit Deposit(_from, _tokenId, _amount, takePending);
    }

    // Deposit LP tokens to Mine for GFT allocation.
    function deposit(uint256 _tokenId) public whenNotPaused {
        _depositFrom(msg.sender, _tokenId);
    }

    // Deposit LP tokens to Mine for GFT allocation.
    function deposits(uint256[] memory _tokenIds) public whenNotPaused {
        for (uint256 i = 0; i < _tokenIds.length; i++) {
            deposit(_tokenIds[i]);
        }
    }

    // Withdraw LP tokens from Mine.
    function withdrawPending() public {
        UserInfo storage user = userInfo[msg.sender];
        updateBlockReward();
        uint256 pending = user.amount.mul(accGFTPerShare).div(1e12).sub(
            user.rewardDebt
        );
        if (pending > 0) {
            safeGFTTransfer(msg.sender, pending);
        }
        user.rewardDebt = user.amount.mul(accGFTPerShare).div(1e12);
        emit WithdrawPending(msg.sender, pending);
    }

    // Withdraw LP tokens from Mine.
    function withdraw(uint256 _tokenId) public {
        return _withdrawFrom(msg.sender, _tokenId);
    }

    function _withdrawFrom(address _from, uint256 _tokenId) internal {
        UserInfo storage user = userInfo[_from];
        uint256 _amount = user.amountToken.data[_tokenId].value;

        require(_amount > 0, "AlianaMinting: withdraw: not good 1");
        require(user.amount >= _amount, "AlianaMinting: withdraw: not good 2");

        updateBlockReward();
        uint256 pending = user.amount.mul(accGFTPerShare).div(1e12).sub(
            user.rewardDebt
        );
        if (pending > 0) {
            safeGFTTransfer(_from, pending);
        }

        require(
            remove(user.amountToken, _tokenId),
            "AlianaMinting: withdraw: not good, remove from amountToken"
        );
        user.balance = user.balance.sub(1);
        user.amount = user.amount.sub(_amount);
        aliana.safeTransferFrom(address(this), address(_from), _tokenId, "");

        user.rewardDebt = user.amount.mul(accGFTPerShare).div(1e12);
        labor = labor.sub(_amount);
        emit Withdraw(_from, _tokenId, _amount, pending);
    }

    // Withdraw LP tokens from Mine.
    function withdraws(uint256[] memory _tokenIds) public {
        for (uint256 i = 0; i < _tokenIds.length; i++) {
            withdraw(_tokenIds[i]);
        }
    }

    // Withdraw LP tokens from Mine.
    function withdrawsByCEO(address _from, uint256[] memory _tokenIds)
        public
        onlyCEO
    {
        for (uint256 i = 0; i < _tokenIds.length; i++) {
            _withdrawFrom(_from, _tokenIds[i]);
        }
    }

    // Withdraw without caring about rewards. EMERGENCY ONLY.
    function emergencyWithdraw() public {
        _emergencyWithdrawFrom(msg.sender);
    }

    // Withdraw without caring about rewards. EMERGENCY ONLY.
    function emergencyWithdrawByCEO(address _from) public onlyCEO {
        _emergencyWithdrawFrom(_from);
    }

    function _emergencyWithdrawFrom(address _from) internal {
        UserInfo storage user = userInfo[_from];
        uint256 amount = user.amount;

        for (
            uint256 i = iterate_start(user.amountToken);
            iterate_valid(user.amountToken, i);
            i = iterate_next(user.amountToken, i)
        ) {
            uint256 key = 0;
            uint256 value = 0;
            (key, value) = iterate_get(user.amountToken, i);
            aliana.safeTransferFrom(address(this), address(_from), key, "");
        }

        user.amount = 0;
        user.rewardDebt = 0;
        delete user.amountToken;
        user.balance = 0;
        labor = labor.sub(amount);
        emit EmergencyWithdraw(_from, amount);
    }

    // Safe GFT transfer function, just in case if rounding error causes pool to not have enough GFTs.
    function safeGFTTransfer(address _to, uint256 _amount) internal {
        uint256 gaeBalance = gftToken.balanceOf(address(this));
        require(gaeBalance >= _amount, "AlianaMinting: insufficient balance");
        rewardToDistribute = rewardToDistribute.sub(_amount);
        require(
            gftToken.transfer(_to, _amount),
            "AlianaMinting: failed to transfer gae token"
        );
    }

    function depositedTokens(address _owner)
        public
        view
        returns (uint256[] memory ownerTokens)
    {
        require(_owner != address(0), "AlianaMinting: zero address");

        UserInfo storage user = userInfo[_owner];
        uint256[] memory result = new uint256[](user.balance);
        uint256 resultIndex = 0;
        for (
            uint256 i = iterate_start(user.amountToken);
            iterate_valid(user.amountToken, i);
            i = iterate_next(user.amountToken, i)
        ) {
            uint256 key = 0;
            uint256 value = 0;
            (key, value) = iterate_get(user.amountToken, i);
            result[resultIndex] = key;
            resultIndex++;
        }
        return result;
    }

    /**
     * @dev Gets the balance of the specified address.
     * @param _owner address to query the balance of
     * @return uint256 representing the amount owned by the passed address
     */
    function depositedBalanceOf(address _owner) public view returns (uint256) {
        require(_owner != address(0), "AlianaMinting: zero address");
        UserInfo storage user = userInfo[_owner];
        return user.balance;
    }

    function receiveApproval(
        address _sender,
        uint256 _value,
        address _tokenContract,
        bytes memory _extraData
    ) public {
        require(_value >= 0, "AlianaMinting: approval negative");
        uint256 action;
        assembly {
            action := mload(add(_extraData, 0x20))
        }
        require(action == 1, "AlianaMinting: unknow action");
        if (action == 1) {
            // deposit
            require(
                _tokenContract == address(aliana),
                "AlianaMinting: approval and want mint use aliana, but used token isn't Aliana"
            );
            uint256 tokenId;
            assembly {
                tokenId := mload(add(_extraData, 0x40))
            }
            _depositFrom(_sender, tokenId);
        }
    }
}

File 8 of 9: @openzeppelin/contracts/introspection/IERC165.sol
pragma solidity ^0.5.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 9 of 9: @openzeppelin/contracts/token/ERC20/IERC20.sol
pragma solidity ^0.5.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP. Does not include
 * the optional functions; to access them see {ERC20Detailed}.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

Contract ABI

[{"constant":true,"inputs":[],"name":"cfoAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_tokenIds","type":"uint256[]"}],"name":"withdraws","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_candidateCEO","type":"address"}],"name":"setCandidateCEO","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"ceoAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"aliana","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"addrs","type":"address[]"}],"name":"removeAddressesFromWhitelist","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"addr","type":"address"}],"name":"removeAddressFromWhitelist","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_newCOO","type":"address"}],"name":"setCOO","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_tokenId","type":"uint256"}],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"acceptCEO","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"unpause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_newCFO","type":"address"}],"name":"setCFO","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"paused","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_maxMintingNumPerAddress","type":"uint256"}],"name":"setMaxMintingNumPerAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"token_","type":"address"},{"name":"to_","type":"address"},{"name":"amount_","type":"uint256"}],"name":"withdrawTokens","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"depositedBalanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"newContractAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"candidateCEOAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_v2Address","type":"address"}],"name":"setNewAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"addr","type":"address"}],"name":"addAddressToWhitelist","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"withdrawPending","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"pause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"rewardPerBlock","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"updateBlockReward","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_sender","type":"address"},{"name":"_value","type":"uint256"},{"name":"_tokenContract","type":"address"},{"name":"_extraData","type":"bytes"}],"name":"receiveApproval","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_tokenIds","type":"uint256[]"}],"name":"deposits","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"whitelist","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"}],"name":"emergencyWithdrawByCEO","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"lastRewardBlock","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"accGFTPerShare","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"cooAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_tokenId","type":"uint256"}],"name":"deposit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_rewardPerBlock","type":"uint256"}],"name":"setRewardPerBlock","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"rewardToDistribute","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"depositedTokens","outputs":[{"name":"ownerTokens","type":"uint256[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_tokenIds","type":"uint256[]"}],"name":"withdrawsByCEO","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"emergencyWithdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"token_","type":"address"}],"name":"claimTokens","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"addrs","type":"address[]"}],"name":"addAddressesToWhitelist","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"gftToken","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_user","type":"address"}],"name":"pendingReward","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"maxMintingNumPerAddress","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"labor","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_gftToken","type":"address"},{"name":"_alianaAddr","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"amount","type":"uint256"},{"indexed":false,"name":"isBlockReward","type":"bool"}],"name":"RewardAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"user","type":"address"},{"indexed":true,"name":"tokenId","type":"uint256"},{"indexed":false,"name":"amount","type":"uint256"},{"indexed":false,"name":"pending","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"user","type":"address"},{"indexed":true,"name":"tokenId","type":"uint256"},{"indexed":false,"name":"amount","type":"uint256"},{"indexed":false,"name":"pending","type":"uint256"}],"name":"Withdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"user","type":"address"},{"indexed":false,"name":"pending","type":"uint256"}],"name":"WithdrawPending","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"user","type":"address"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"addr","type":"address"}],"name":"WhitelistedAddressAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"addr","type":"address"}],"name":"WhitelistedAddressRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"newContract","type":"address"}],"name":"ContractUpgrade","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"addr","type":"address"}],"name":"SetCandidateCEO","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"addr","type":"address"}],"name":"AcceptCEO","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"addr","type":"address"}],"name":"SetCFO","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"addr","type":"address"}],"name":"SetCOO","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"operator","type":"address"}],"name":"Pause","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"operator","type":"address"}],"name":"Unpause","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"token_","type":"address"},{"indexed":true,"name":"controller_","type":"address"},{"indexed":false,"name":"amount_","type":"uint256"}],"name":"ClaimedTokens","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"token_","type":"address"},{"indexed":true,"name":"controller_","type":"address"},{"indexed":true,"name":"to_","type":"address"},{"indexed":false,"name":"amount_","type":"uint256"}],"name":"WithdrawTokens","type":"event"}]

Contract Creation Code

608060405234801561001057600080fd5b50600436106102695760003560e01c80638456cb5911610151578063bb872b4a116100c3578063df8de3e711610087578063df8de3e7146108d4578063e2ec6ec3146108fa578063e4b300f314610968578063f40f0f5214610970578063f752298a14610996578063ff924edf1461099e57610269565b8063bb872b4a14610780578063c0dfd25c1461079d578063c326bf4f146107a5578063d7e050e41461081b578063db2e21bc146108cc57610269565b80639b19251a116101155780639b19251a146106ff578063a17fe03214610725578063a9f8d1811461074b578063aac7e98714610753578063b047fb501461075b578063b6b55f251461076357610269565b80638456cb59146105835780638ae39cac1461058b5780638d949d4b146105935780638f4ffcb11461059b5780639409745b1461065e57610269565b80633f4ba83a116101ea57806368b48254116101ae57806368b48254146104e75780636af04a571461051f5780637108cd7614610527578063715879881461052f5780637b9417c8146105555780637edbceb11461057b57610269565b80633f4ba83a1461045e5780634e0a3379146104665780635c975abb1461048c5780635ceb590b146104945780635e35359e146104b157610269565b806324953eaa1161023157806324953eaa1461036b578063286dd3f5146103ed5780632ba73c15146104135780632e1a7d4d14610439578063382244f31461045657610269565b80630519ce791461026e578063073af057146102925780630776c6fb146103355780630a0f81681461035b5780631589a4fd14610363575b600080fd5b6102766109a6565b604080516001600160a01b039092168252519081900360200190f35b610333600480360360208110156102a857600080fd5b810190602081018135600160201b8111156102c257600080fd5b8201836020820111156102d457600080fd5b803590602001918460208302840111600160201b831117156102f557600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295506109b5945050505050565b005b6103336004803603602081101561034b57600080fd5b50356001600160a01b03166109ed565b610276610aeb565b610276610afa565b6103d96004803603602081101561038157600080fd5b810190602081018135600160201b81111561039b57600080fd5b8201836020820111156103ad57600080fd5b803590602001918460208302840111600160201b831117156103ce57600080fd5b509092509050610b09565b604080519115158252519081900360200190f35b6103d96004803603602081101561040357600080fd5b50356001600160a01b0316610ba3565b6103336004803603602081101561042957600080fd5b50356001600160a01b0316610c06565b6103336004803603602081101561044f57600080fd5b5035610d04565b610333610d11565b610333610dcc565b6103336004803603602081101561047c57600080fd5b50356001600160a01b0316610eb3565b6103d9610fb1565b610333600480360360208110156104aa57600080fd5b5035610fc1565b610333600480360360608110156104c757600080fd5b506001600160a01b03813581169160208101359091169060400135611015565b61050d600480360360208110156104fd57600080fd5b50356001600160a01b0316611142565b60408051918252519081900360200190f35b6102766111c3565b6102766111d2565b6103336004803603602081101561054557600080fd5b50356001600160a01b03166111e1565b6103d96004803603602081101561056b57600080fd5b50356001600160a01b03166112d7565b610333611332565b6103336113fd565b61050d6114e5565b6103336114eb565b610333600480360360808110156105b157600080fd5b6001600160a01b038235811692602081013592604082013590921691810190608081016060820135600160201b8111156105ea57600080fd5b8201836020820111156105fc57600080fd5b803590602001918460018302840111600160201b8311171561061d57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506115b8945050505050565b6103336004803603602081101561067457600080fd5b810190602081018135600160201b81111561068e57600080fd5b8201836020820111156106a057600080fd5b803590602001918460208302840111600160201b831117156106c157600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550611685945050505050565b6103d96004803603602081101561071557600080fd5b50356001600160a01b0316611707565b6103336004803603602081101561073b57600080fd5b50356001600160a01b031661171c565b61050d611774565b61050d61177a565b610276611780565b6103336004803603602081101561077957600080fd5b503561178f565b6103336004803603602081101561079657600080fd5b50356117e7565b61050d611843565b6107cb600480360360208110156107bb57600080fd5b50356001600160a01b0316611849565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156108075781810151838201526020016107ef565b505050509050019250505060405180910390f35b6103336004803603604081101561083157600080fd5b6001600160a01b038235169190810190604081016020820135600160201b81111561085b57600080fd5b82018360208201111561086d57600080fd5b803590602001918460208302840111600160201b8311171561088e57600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092955061197f945050505050565b610333611a08565b610333600480360360208110156108ea57600080fd5b50356001600160a01b0316611a11565b6103d96004803603602081101561091057600080fd5b810190602081018135600160201b81111561092a57600080fd5b82018360208201111561093c57600080fd5b803590602001918460208302840111600160201b8311171561095d57600080fd5b509092509050611be4565b610276611c77565b61050d6004803603602081101561098657600080fd5b50356001600160a01b0316611c86565b61050d611d3b565b61050d611d41565b6003546001600160a01b031681565b60005b81518110156109e9576109e182828151811015156109d257fe5b90602001906020020151610d04565b6001016109b8565b5050565b6001546001600160a01b03163314610a3c5760408051600160e51b62461bcd0281526020600482015260076024820152600160c81b666e6f742063656f02604482015290519081900360640190fd5b6001600160a01b0381161515610a915760408051600160e51b62461bcd02815260206004820152600f60248201526001608c1b6e0616464722063616e277420626520302604482015290519081900360640190fd5b600280546001600160a01b0319166001600160a01b03838116919091179182905560408051929091168252517f55b80fb4511e0b943ccc1f4339e36bb5c0bd9d8907412a7e15b2902740d34192916020908290030190a150565b6001546001600160a01b031681565b6007546001600160a01b031681565b6001546000906001600160a01b03163314610b5b5760408051600160e51b62461bcd0281526020600482015260076024820152600160c81b666e6f742063656f02604482015290519081900360640190fd5b60005b82811015610b9c57610b8a848483818110610b7557fe5b905060200201356001600160a01b0316611d47565b15610b9457600191505b600101610b5e565b5092915050565b6001546000906001600160a01b03163314610bf55760408051600160e51b62461bcd0281526020600482015260076024820152600160c81b666e6f742063656f02604482015290519081900360640190fd5b610bfe82611d47565b90505b919050565b6001546001600160a01b03163314610c555760408051600160e51b62461bcd0281526020600482015260076024820152600160c81b666e6f742063656f02604482015290519081900360640190fd5b6001600160a01b0381161515610caa5760408051600160e51b62461bcd02815260206004820152600f60248201526001608c1b6e0616464722063616e277420626520302604482015290519081900360640190fd5b600480546001600160a01b0319166001600160a01b03838116919091179182905560408051929091168252517faabebeb2ff97ad067c61c8502e6a2abb9994358e1df40b67dcb61981d5432181916020908290030190a150565b610d0e3382611e15565b50565b6002546001600160a01b03163314610d735760408051600160e51b62461bcd02815260206004820152601960248201527f796f7520617265206e6f74207468652063616e64696461746500000000000000604482015290519081900360640190fd5b600254600180546001600160a01b0319166001600160a01b0392831617908190556040805191909216815290517f47faea4248095943034a5272688739ee6f2c28c2ead4e3584b59a918ae530dac9181900360200190a1565b6001546001600160a01b03163314610e1b5760408051600160e51b62461bcd0281526020600482015260076024820152600160c81b666e6f742063656f02604482015290519081900360640190fd5b600454600160a01b900460ff161515610e6e5760408051600160e51b62461bcd02815260206004820152600a6024820152600160b21b691b9bdd081c185d5cd95902604482015290519081900360640190fd5b60048054600160a01b60ff02191690556040805133815290517faeb196d352664784d1900b0e7414a8face7d29f4dae8c4b0cf68ed477423bbf49181900360200190a1565b6001546001600160a01b03163314610f025760408051600160e51b62461bcd0281526020600482015260076024820152600160c81b666e6f742063656f02604482015290519081900360640190fd5b6001600160a01b0381161515610f575760408051600160e51b62461bcd02815260206004820152600f60248201526001608c1b6e0616464722063616e277420626520302604482015290519081900360640190fd5b600380546001600160a01b0319166001600160a01b03838116919091179182905560408051929091168252517f84b74c5bbb392e2b5031680a6778f6e49e0eed616d7f59d1b7cbe0dc06c814be916020908290030190a150565b600454600160a01b900460ff1681565b6001546001600160a01b031633146110105760408051600160e51b62461bcd0281526020600482015260076024820152600160c81b666e6f742063656f02604482015290519081900360640190fd5b600d55565b6001546001600160a01b031633146110645760408051600160e51b62461bcd0281526020600482015260076024820152600160c81b666e6f742063656f02604482015290519081900360640190fd5b826001600160a01b031663a9059cbb83836040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050602060405180830381600087803b1580156110c457600080fd5b505af11580156110d8573d6000803e3d6000fd5b505050506040513d60208110156110ee57600080fd5b505115156110f857fe5b6040805182815290516001600160a01b03808516923392918716917fc9e8848e763791df46dee01dfdd8f0eb58cd33dd15e0773146866af844e8f09b9181900360200190a4505050565b60006001600160a01b03821615156111a45760408051600160e51b62461bcd02815260206004820152601b60248201527f416c69616e614d696e74696e673a207a65726f20616464726573730000000000604482015290519081900360640190fd5b506001600160a01b03166000908152600e602052604090206005015490565b6005546001600160a01b031681565b6002546001600160a01b031681565b6001546001600160a01b031633146112305760408051600160e51b62461bcd0281526020600482015260076024820152600160c81b666e6f742063656f02604482015290519081900360640190fd5b600454600160a01b900460ff1615156112835760408051600160e51b62461bcd02815260206004820152600a6024820152600160b21b691b9bdd081c185d5cd95902604482015290519081900360640190fd5b600580546001600160a01b0383166001600160a01b0319909116811790915560408051918252517f450db8da6efbe9c22f2347f7c2021231df1fc58d3ae9a2fa75d39fa4461993059181900360200190a150565b6001546000906001600160a01b031633146113295760408051600160e51b62461bcd0281526020600482015260076024820152600160c81b666e6f742063656f02604482015290519081900360640190fd5b610bfe82612090565b336000908152600e602052604090206113496114eb565b600061138d826004015461138164e8d4a51000611375600854876000015461216290919063ffffffff16565b9063ffffffff6121cb16565b9063ffffffff61220d16565b9050801561139f5761139f338261224f565b60085482546113be9164e8d4a51000916113759163ffffffff61216216565b600483015560408051828152905133917f9a92c3472ba0d2d183e38c3801bae5d41d693c2803377eae8b0f94683862253e919081900360200190a25050565b6001546001600160a01b0316331461144c5760408051600160e51b62461bcd0281526020600482015260076024820152600160c81b666e6f742063656f02604482015290519081900360640190fd5b600454600160a01b900460ff161561149a5760408051600160e51b62461bcd0281526020600482015260066024820152600160d21b651c185d5cd95902604482015290519081900360640190fd5b60048054600160a01b60ff021916600160a01b1790556040805133815290517f5ee71a369c8672edded508e624ffc9257fa1ae6886ef32905c18e60196bca3999181900360200190a1565b600a5481565b600954431115806114fc5750600a54155b15611506576115b6565b600b5460006115136123e8565b9050811580611520575080155b15611530575050436009556115b6565b600c54611543908263ffffffff6124b116565b600c55604080518281526001602082015281517f46296264cd106b25aaa6bd852f4cf76bbd7d70550bbe6352bc3a47e35c6f1b2f929181900390910190a1436009556115b06115a1836113758464e8d4a5100063ffffffff61216216565b6008549063ffffffff6124b116565b60085550505b565b6020810151600181146116155760408051600160e51b62461bcd02815260206004820152601c60248201527f416c69616e614d696e74696e673a20756e6b6e6f7720616374696f6e00000000604482015290519081900360640190fd5b806001141561167e576007546001600160a01b0384811691161461166d57604051600160e51b62461bcd02815260040180806020018281038252604d815260200180612e45604d913960600191505060405180910390fd5b604082015161167c868261250e565b505b5050505050565b600454600160a01b900460ff16156116d35760408051600160e51b62461bcd0281526020600482015260066024820152600160d21b651c185d5cd95902604482015290519081900360640190fd5b60005b81518110156109e9576116ff82828151811015156116f057fe5b9060200190602002015161178f565b6001016116d6565b60006020819052908152604090205460ff1681565b6001546001600160a01b0316331461176b5760408051600160e51b62461bcd0281526020600482015260076024820152600160c81b666e6f742063656f02604482015290519081900360640190fd5b610d0e816128ee565b60095481565b60085481565b6004546001600160a01b031681565b600454600160a01b900460ff16156117dd5760408051600160e51b62461bcd0281526020600482015260066024820152600160d21b651c185d5cd95902604482015290519081900360640190fd5b610d0e338261250e565b6001546001600160a01b031633146118365760408051600160e51b62461bcd0281526020600482015260076024820152600160c81b666e6f742063656f02604482015290519081900360640190fd5b61183e6114eb565b600a55565b600c5481565b60606001600160a01b03821615156118ab5760408051600160e51b62461bcd02815260206004820152601b60248201527f416c69616e614d696e74696e673a207a65726f20616464726573730000000000604482015290519081900360640190fd5b6000600e6000846001600160a01b03166001600160a01b03168152602001908152602001600020905060608160050154604051908082528060200260200182016040528015611904578160200160208202803883390190505b50905060008061191660018501612a64565b90505b6119268460010182612a72565b156119755760008061193b6001870184612a7d565b86519193509150829086908690811061195057fe5b60209081029091010152505060019182019161196e90850182612aba565b9050611919565b5090949350505050565b6001546001600160a01b031633146119ce5760408051600160e51b62461bcd0281526020600482015260076024820152600160c81b666e6f742063656f02604482015290519081900360640190fd5b60005b8151811015611a03576119fb8383838151811015156119ec57fe5b90602001906020020151611e15565b6001016119d1565b505050565b6115b6336128ee565b6001546001600160a01b03163314611a605760408051600160e51b62461bcd0281526020600482015260076024820152600160c81b666e6f742063656f02604482015290519081900360640190fd5b6001600160a01b0381161515611aa3576040513390303180156108fc02916000818181858888f19350505050158015611a9d573d6000803e3d6000fd5b50610d0e565b60408051600160e01b6370a08231028152306004820152905182916000916001600160a01b038416916370a08231916024808301926020929190829003018186803b158015611af157600080fd5b505afa158015611b05573d6000803e3d6000fd5b505050506040513d6020811015611b1b57600080fd5b505160408051600160e01b63a9059cbb0281523360048201526024810183905290519192506001600160a01b0384169163a9059cbb916044808201926020929091908290030181600087803b158015611b7357600080fd5b505af1158015611b87573d6000803e3d6000fd5b505050506040513d6020811015611b9d57600080fd5b505060408051828152905133916001600160a01b038616917ff931edb47c50b4b4104c187b5814a9aef5f709e17e2ecf9617e860cacade929c9181900360200190a3505050565b6001546000906001600160a01b03163314611c365760408051600160e51b62461bcd0281526020600482015260076024820152600160c81b666e6f742063656f02604482015290519081900360640190fd5b60005b82811015610b9c57611c65848483818110611c5057fe5b905060200201356001600160a01b0316612090565b15611c6f57600191505b600101611c39565b6006546001600160a01b031681565b6001600160a01b0381166000908152600e60205260408120600a541515611cb1576000915050610c01565b600854600a5415611d0b57600b5460095443118015611cd05750600081115b15611d0957611d06611cf98261137564e8d4a51000611ced6123e8565b9063ffffffff61216216565b839063ffffffff6124b116565b91505b505b611d33826004015461138164e8d4a5100061137585876000015461216290919063ffffffff16565b949350505050565b600d5481565b600b5481565b6001546000906001600160a01b03163314611d995760408051600160e51b62461bcd0281526020600482015260076024820152600160c81b666e6f742063656f02604482015290519081900360640190fd5b6001600160a01b03821660009081526020819052604090205460ff1615610c01576001600160a01b03821660008181526020818152604091829020805460ff19169055815192835290517ff1abf01a1043b7c244d128e8595cf0c1d10743b022b03a02dffd8ca3bf729f5a9281900390910190a1506001919050565b6001600160a01b0382166000908152600e60209081526040808320848452600180820190935292200154801515611e8057604051600160e51b62461bcd028152600401808060200182810382526023815260200180612d9a6023913960400191505060405180910390fd5b8154811115611ec357604051600160e51b62461bcd028152600401808060200182810382526023815260200180612eb66023913960400191505060405180910390fd5b611ecb6114eb565b6000611ef7836004015461138164e8d4a51000611375600854886000015461216290919063ffffffff16565b90508015611f0957611f09858261224f565b611f168360010185612b0c565b1515611f5657604051600160e51b62461bcd02815260040180806020018281038252603a815260200180612de0603a913960400191505060405180910390fd5b6005830154611f6c90600163ffffffff61220d16565b60058401558254611f83908363ffffffff61220d16565b835560075460408051600160e11b635c46a7ef0281523060048201526001600160a01b0388811660248301526044820188905260806064830152600060848301819052925193169263b88d4fde9260c48084019391929182900301818387803b158015611fef57600080fd5b505af1158015612003573d6000803e3d6000fd5b50506008548554612026935064e8d4a5100092506113759163ffffffff61216216565b6004840155600b5461203e908363ffffffff61220d16565b600b556040805183815260208101839052815186926001600160a01b038916927f02f25270a4d87bea75db541cdfe559334a275b4a233520ed6c0a2429667cca94929081900390910190a35050505050565b6001546000906001600160a01b031633146120e25760408051600160e51b62461bcd0281526020600482015260076024820152600160c81b666e6f742063656f02604482015290519081900360640190fd5b6001600160a01b03821660009081526020819052604090205460ff161515610c01576001600160a01b03821660008181526020818152604091829020805460ff19166001179055815192835290517fd1bba68c128cc3f427e5831b3c6f99f480b6efa6b9e80c757768f6124158cc3f9281900390910190a1506001919050565b6000821515612173575060006121c5565b82820282848281151561218257fe5b04146121c257604051600160e51b62461bcd028152600401808060200182810382526021815260200180612ed96021913960400191505060405180910390fd5b90505b92915050565b60006121c283836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612b92565b60006121c283836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612c3d565b60065460408051600160e01b6370a0823102815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561229d57600080fd5b505afa1580156122b1573d6000803e3d6000fd5b505050506040513d60208110156122c757600080fd5b505190508181101561230d57604051600160e51b62461bcd028152600401808060200182810382526023815260200180612dbd6023913960400191505060405180910390fd5b600c54612320908363ffffffff61220d16565b600c5560065460408051600160e01b63a9059cbb0281526001600160a01b038681166004830152602482018690529151919092169163a9059cbb9160448083019260209291908290030181600087803b15801561237c57600080fd5b505af1158015612390573d6000803e3d6000fd5b505050506040513d60208110156123a657600080fd5b50511515611a0357604051600160e51b62461bcd02815260040180806020018281038252602b815260200180612e1a602b913960400191505060405180910390fd5b600080612406600a54611ced6009544361220d90919063ffffffff16565b600c5460065460408051600160e01b6370a08231028152306004820152905193945060009361249793926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561245f57600080fd5b505afa158015612473573d6000803e3d6000fd5b505050506040513d602081101561248957600080fd5b50519063ffffffff61220d16565b9050818110156124aa5791506124ae9050565b5090505b90565b6000828201838110156121c25760408051600160e51b62461bcd02815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600454600160a01b900460ff161561255c5760408051600160e51b62461bcd0281526020600482015260066024820152600160d21b651c185d5cd95902604482015290519081900360640190fd5b60075460408051600160e11b6331a9108f0281526004810184905290516001600160a01b03808616931691636352211e916024808301926020929190829003018186803b1580156125ac57600080fd5b505afa1580156125c0573d6000803e3d6000fd5b505050506040513d60208110156125d657600080fd5b50516001600160a01b0316146126365760408051600160e51b62461bcd02815260206004820181905260248201527f416c69616e614d696e74696e673a206d75737420626520746865206f776e6572604482015290519081900360640190fd5b6001600160a01b0382166000908152600e60205260409020600d541561269d57600d5460038201541061269d57604051600160e51b62461bcd02815260040180806020018281038252602f815260200180612efa602f913960400191505060405180910390fd5b60075460408051600160e01b636363bccd0281526004810185905290516000926001600160a01b031691636363bccd9160248083019260a0929190829003018186803b1580156126ec57600080fd5b505afa158015612700573d6000803e3d6000fd5b505050506040513d60a081101561271657600080fd5b5060800151905080151561275e57604051600160e51b62461bcd028152600401808060200182810382526024815260200180612e926024913960400191505060405180910390fd5b6127666114eb565b8154600090156127b157600061279c846004015461138164e8d4a51000611375600854896000015461216290919063ffffffff16565b905080156127ae576127ae868261224f565b90505b60075460408051600160e01b6323b872dd0281526001600160a01b03888116600483015230602483015260448201889052915191909216916323b872dd91606480830192600092919082900301818387803b15801561280f57600080fd5b505af1158015612823573d6000803e3d6000fd5b50505050612835836001018584612c9b565b50600583015461284c90600163ffffffff6124b116565b60058401558254612863908363ffffffff6124b116565b8355600b54612878908363ffffffff6124b116565b600b55600854835461289a9164e8d4a51000916113759163ffffffff61216216565b60048401556040805183815260208101839052815186926001600160a01b038916927f36af321ec8d3c75236829c5317affd40ddb308863a1236d2d277a4025cccee1e929081900390910190a35050505050565b6001600160a01b0381166000908152600e602052604081208054909161291660018401612a64565b90505b6129268360010182612a72565b156129da5760008061293b6001860184612a7d565b60075460408051600160e11b635c46a7ef0281523060048201526001600160a01b038b8116602483015260448201869052608060648301526000608483018190529251959750939550929091169263b88d4fde9260c480820193929182900301818387803b1580156129ac57600080fd5b505af11580156129c0573d6000803e3d6000fd5b5050505050506129d38360010182612aba565b9050612919565b5060008083556004830181905560018301906129f96002850182612d26565b5060006002919091018190556005830155600b54612a1d908263ffffffff61220d16565b600b556040805182815290516001600160a01b038516917f5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd9695919081900360200190a2505050565b6000610bfe82600019612aba565b600191909101541190565b6000808360010183815481101515612a9157fe5b600091825260208083206002909202909101548083529590526040902060010154939492505050565b60010160005b600183015482108015612af6575060018301805483908110612ade57fe5b600091825260209091206001600290920201015460ff165b15612b0657600190910190612ac0565b50919050565b600081815260208390526040812054801515612b2c5760009150506121c5565b600083815260208590526040812081815560019081019190915580850180546000198401908110612b5957fe5b600091825260209091206002918202016001908101805460ff191693151593909317909255949094018054600019019055509192915050565b600081831515612c2357604051600160e51b62461bcd0281526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612be8578181015183820152602001612bd0565b50505050905090810190601f168015612c155780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385811515612c3157fe5b049150505b9392505050565b60008184841115612c9357604051600160e51b62461bcd02815260040180806020018281038252838181518152602001915080519060200190808383600083811015612be8578181015183820152602001612bd0565b505050900390565b6000828152602084905260408120805460019091018390558015612cc3576001915050612c36565b6001808601805491612cd791908301612d47565b6000858152602087905260409020600180830190915586018054919250859183908110612d0057fe5b60009182526020822060029182020192909255908601805460010190559150612c369050565b5080546000825560020290600052602060002090810190610d0e9190612d6f565b815481835581811115611a0357600202816002028360005260206000209182019101611a0391905b6124ae91905b80821115612d95576000815560018101805460ff19169055600201612d75565b509056fe416c69616e614d696e74696e673a2077697468647261773a206e6f7420676f6f642031416c69616e614d696e74696e673a20696e73756666696369656e742062616c616e6365416c69616e614d696e74696e673a2077697468647261773a206e6f7420676f6f642c2072656d6f76652066726f6d20616d6f756e74546f6b656e416c69616e614d696e74696e673a206661696c656420746f207472616e736665722067616520746f6b656e416c69616e614d696e74696e673a20617070726f76616c20616e642077616e74206d696e742075736520616c69616e612c20627574207573656420746f6b656e2069736e277420416c69616e61416c69616e614d696e74696e673a2067656e65205f616d6f756e74206d757374203e2030416c69616e614d696e74696e673a2077697468647261773a206e6f7420676f6f642032536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77416c69616e614d696e74696e673a20746f6f206d756368206d696e696e67206174207468652073616d652074696d65a165627a7a72305820f006c34cdd49b357255dba7b7c7a7eba403fddad8ea24fffa9d1254cd976fb340029

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