Contract 0x68d25992b1b04be8a70104de8cb598170ab9aad5 2

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x76fe4c66d94af3ed9f3e2f67ee3749aaf60b30f81da788308de150b13c1f30430x6080604049560532022-01-24 8:32:51252 days 9 hrs ago0xb013abd83f0bd173e9f14ce7d6e420ad711483b4 IN  Create: LegionMetadataStore0 ETH0.026487498334 ETH
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xd7bdb43d3b914a7ed7b786ec01def6e1c7068c9581c5202448d634fee5aef160266786182022-09-25 23:55:327 days 18 hrs ago 0x99193ee9229b833d2aa4dbbda697c6600b944286 0x68d25992b1b04be8a70104de8cb598170ab9aad50 ETH
0xd7bdb43d3b914a7ed7b786ec01def6e1c7068c9581c5202448d634fee5aef160266786182022-09-25 23:55:327 days 18 hrs ago 0x99193ee9229b833d2aa4dbbda697c6600b944286 0x68d25992b1b04be8a70104de8cb598170ab9aad50 ETH
0xd7bdb43d3b914a7ed7b786ec01def6e1c7068c9581c5202448d634fee5aef160266786182022-09-25 23:55:327 days 18 hrs ago 0x99193ee9229b833d2aa4dbbda697c6600b944286 0x68d25992b1b04be8a70104de8cb598170ab9aad50 ETH
0xd7bdb43d3b914a7ed7b786ec01def6e1c7068c9581c5202448d634fee5aef160266786182022-09-25 23:55:327 days 18 hrs ago 0x99193ee9229b833d2aa4dbbda697c6600b944286 0x68d25992b1b04be8a70104de8cb598170ab9aad50 ETH
0xd7bdb43d3b914a7ed7b786ec01def6e1c7068c9581c5202448d634fee5aef160266786182022-09-25 23:55:327 days 18 hrs ago 0x99193ee9229b833d2aa4dbbda697c6600b944286 0x68d25992b1b04be8a70104de8cb598170ab9aad50 ETH
0xd7bdb43d3b914a7ed7b786ec01def6e1c7068c9581c5202448d634fee5aef160266786182022-09-25 23:55:327 days 18 hrs ago 0x99193ee9229b833d2aa4dbbda697c6600b944286 0x68d25992b1b04be8a70104de8cb598170ab9aad50 ETH
0xd7bdb43d3b914a7ed7b786ec01def6e1c7068c9581c5202448d634fee5aef160266786182022-09-25 23:55:327 days 18 hrs ago 0x99193ee9229b833d2aa4dbbda697c6600b944286 0x68d25992b1b04be8a70104de8cb598170ab9aad50 ETH
0xd7bdb43d3b914a7ed7b786ec01def6e1c7068c9581c5202448d634fee5aef160266786182022-09-25 23:55:327 days 18 hrs ago 0x99193ee9229b833d2aa4dbbda697c6600b944286 0x68d25992b1b04be8a70104de8cb598170ab9aad50 ETH
0xd7bdb43d3b914a7ed7b786ec01def6e1c7068c9581c5202448d634fee5aef160266786182022-09-25 23:55:327 days 18 hrs ago 0x99193ee9229b833d2aa4dbbda697c6600b944286 0x68d25992b1b04be8a70104de8cb598170ab9aad50 ETH
0xd7bdb43d3b914a7ed7b786ec01def6e1c7068c9581c5202448d634fee5aef160266786182022-09-25 23:55:327 days 18 hrs ago 0x99193ee9229b833d2aa4dbbda697c6600b944286 0x68d25992b1b04be8a70104de8cb598170ab9aad50 ETH
0xd7bdb43d3b914a7ed7b786ec01def6e1c7068c9581c5202448d634fee5aef160266786182022-09-25 23:55:327 days 18 hrs ago 0x99193ee9229b833d2aa4dbbda697c6600b944286 0x68d25992b1b04be8a70104de8cb598170ab9aad50 ETH
0xd7bdb43d3b914a7ed7b786ec01def6e1c7068c9581c5202448d634fee5aef160266786182022-09-25 23:55:327 days 18 hrs ago 0x99193ee9229b833d2aa4dbbda697c6600b944286 0x68d25992b1b04be8a70104de8cb598170ab9aad50 ETH
0xd7bdb43d3b914a7ed7b786ec01def6e1c7068c9581c5202448d634fee5aef160266786182022-09-25 23:55:327 days 18 hrs ago 0x99193ee9229b833d2aa4dbbda697c6600b944286 0x68d25992b1b04be8a70104de8cb598170ab9aad50 ETH
0xd7bdb43d3b914a7ed7b786ec01def6e1c7068c9581c5202448d634fee5aef160266786182022-09-25 23:55:327 days 18 hrs ago 0x99193ee9229b833d2aa4dbbda697c6600b944286 0x68d25992b1b04be8a70104de8cb598170ab9aad50 ETH
0xd7bdb43d3b914a7ed7b786ec01def6e1c7068c9581c5202448d634fee5aef160266786182022-09-25 23:55:327 days 18 hrs ago 0x99193ee9229b833d2aa4dbbda697c6600b944286 0x68d25992b1b04be8a70104de8cb598170ab9aad50 ETH
0xd7bdb43d3b914a7ed7b786ec01def6e1c7068c9581c5202448d634fee5aef160266786182022-09-25 23:55:327 days 18 hrs ago 0x99193ee9229b833d2aa4dbbda697c6600b944286 0x68d25992b1b04be8a70104de8cb598170ab9aad50 ETH
0xd7bdb43d3b914a7ed7b786ec01def6e1c7068c9581c5202448d634fee5aef160266786182022-09-25 23:55:327 days 18 hrs ago 0x99193ee9229b833d2aa4dbbda697c6600b944286 0x68d25992b1b04be8a70104de8cb598170ab9aad50 ETH
0xd7bdb43d3b914a7ed7b786ec01def6e1c7068c9581c5202448d634fee5aef160266786182022-09-25 23:55:327 days 18 hrs ago 0x99193ee9229b833d2aa4dbbda697c6600b944286 0x68d25992b1b04be8a70104de8cb598170ab9aad50 ETH
0xd7bdb43d3b914a7ed7b786ec01def6e1c7068c9581c5202448d634fee5aef160266786182022-09-25 23:55:327 days 18 hrs ago 0x99193ee9229b833d2aa4dbbda697c6600b944286 0x68d25992b1b04be8a70104de8cb598170ab9aad50 ETH
0xd7bdb43d3b914a7ed7b786ec01def6e1c7068c9581c5202448d634fee5aef160266786182022-09-25 23:55:327 days 18 hrs ago 0x99193ee9229b833d2aa4dbbda697c6600b944286 0x68d25992b1b04be8a70104de8cb598170ab9aad50 ETH
0xd7bdb43d3b914a7ed7b786ec01def6e1c7068c9581c5202448d634fee5aef160266786182022-09-25 23:55:327 days 18 hrs ago 0x99193ee9229b833d2aa4dbbda697c6600b944286 0x68d25992b1b04be8a70104de8cb598170ab9aad50 ETH
0xd7bdb43d3b914a7ed7b786ec01def6e1c7068c9581c5202448d634fee5aef160266786182022-09-25 23:55:327 days 18 hrs ago 0x99193ee9229b833d2aa4dbbda697c6600b944286 0x68d25992b1b04be8a70104de8cb598170ab9aad50 ETH
0xd7bdb43d3b914a7ed7b786ec01def6e1c7068c9581c5202448d634fee5aef160266786182022-09-25 23:55:327 days 18 hrs ago 0x99193ee9229b833d2aa4dbbda697c6600b944286 0x68d25992b1b04be8a70104de8cb598170ab9aad50 ETH
0xd7bdb43d3b914a7ed7b786ec01def6e1c7068c9581c5202448d634fee5aef160266786182022-09-25 23:55:327 days 18 hrs ago 0x99193ee9229b833d2aa4dbbda697c6600b944286 0x68d25992b1b04be8a70104de8cb598170ab9aad50 ETH
0xd7bdb43d3b914a7ed7b786ec01def6e1c7068c9581c5202448d634fee5aef160266786182022-09-25 23:55:327 days 18 hrs ago 0x99193ee9229b833d2aa4dbbda697c6600b944286 0x68d25992b1b04be8a70104de8cb598170ab9aad50 ETH
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
LegionMetadataStore

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 10 : LegionMetadataStore.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

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

import "./LegionMetadataStoreState.sol";
import "./ILegionMetadataStore.sol";

contract LegionMetadataStore is Initializable, ILegionMetadataStore, LegionMetadataStoreState {

    function initialize() external initializer {
        LegionMetadataStoreState.__LegionMetadataStoreState_init();
    }

    function setInitialMetadataForLegion(
        address _owner,
        uint256 _tokenId,
        LegionGeneration _generation,
        LegionClass _class,
        LegionRarity _rarity,
        uint256 _oldId)
    external override onlyAdminOrOwner whenNotPaused
    {
        idToGeneration[_tokenId] = _generation;
        idToClass[_tokenId] = _class;
        idToRarity[_tokenId] = _rarity;
        idToOldId[_tokenId] = _oldId;

        // Initial quest/craft level is 1.
        idToQuestLevel[_tokenId] = 1;
        idToCraftLevel[_tokenId] = 1;

        emit LegionCreated(_owner, _tokenId, _generation, _class, _rarity);
    }

    function increaseQuestLevel(uint256 _tokenId) external override onlyAdminOrOwner whenNotPaused {
        idToQuestLevel[_tokenId]++;

        emit LegionQuestLevelUp(_tokenId, idToQuestLevel[_tokenId]);
    }

    function increaseCraftLevel(uint256 _tokenId) external override onlyAdminOrOwner whenNotPaused {
        idToCraftLevel[_tokenId]++;

        emit LegionCraftLevelUp(_tokenId, idToCraftLevel[_tokenId]);
    }

    function increaseConstellationRank(uint256 _tokenId, Constellation _constellation, uint8 _to) external override onlyAdminOrOwner whenNotPaused {
        idToConstellationRanks[_tokenId][uint256(_constellation)] = _to;

        emit LegionConstellationRankUp(_tokenId, _constellation, _to);
    }

    function metadataForLegion(uint256 _tokenId) external view override returns(LegionMetadata memory) {
        return LegionMetadata(
            idToGeneration[_tokenId],
            idToClass[_tokenId],
            idToRarity[_tokenId],
            idToQuestLevel[_tokenId],
            idToCraftLevel[_tokenId],
            idToConstellationRanks[_tokenId],
            idToOldId[_tokenId]
        );
    }

    function tokenURI(uint256 _tokenId) external view override returns(string memory) {
        return _genToClassToRarityToOldIdToUri[idToGeneration[_tokenId]][idToClass[_tokenId]][idToRarity[_tokenId]][idToOldId[_tokenId]];
    }

    function setTokenUriForGenClassRarityOldId(LegionGeneration _gen, LegionClass _class, LegionRarity _rarity, uint256 _oldId, string calldata _uri) external onlyAdminOrOwner {
        _genToClassToRarityToOldIdToUri[_gen][_class][_rarity][_oldId] = _uri;
    }
}

File 2 of 10 : Initializable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (proxy/utils/Initializable.sol)

pragma solidity ^0.8.0;

import "../../utils/AddressUpgradeable.sol";

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To initialize the implementation contract, you can either invoke the
 * initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() initializer {}
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     */
    bool private _initialized;

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

    /**
     * @dev Modifier to protect an initializer function from being invoked twice.
     */
    modifier initializer() {
        // If the contract is initializing we ignore whether _initialized is set in order to support multiple
        // inheritance patterns, but we only do this in the context of a constructor, because in other contexts the
        // contract may have been reentered.
        require(_initializing ? _isConstructor() : !_initialized, "Initializable: contract is already initialized");

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

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }

    /**
     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
     * {initializer} modifier, directly or indirectly.
     */
    modifier onlyInitializing() {
        require(_initializing, "Initializable: contract is not initializing");
        _;
    }

    function _isConstructor() private view returns (bool) {
        return !AddressUpgradeable.isContract(address(this));
    }
}

File 3 of 10 : LegionMetadataStoreState.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

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

import "../../shared/AdminableUpgradeable.sol";
import "./ILegionMetadataStore.sol";

abstract contract LegionMetadataStoreState is Initializable, AdminableUpgradeable {

    event LegionQuestLevelUp(uint256 indexed _tokenId, uint8 _questLevel);
    event LegionCraftLevelUp(uint256 indexed _tokenId, uint8 _craftLevel);
    event LegionConstellationRankUp(uint256 indexed _tokenId, Constellation indexed _constellation, uint8 _rank);
    event LegionCreated(address indexed _owner, uint256 indexed _tokenId, LegionGeneration _generation, LegionClass _class, LegionRarity _rarity);

    mapping(uint256 => LegionGeneration) internal idToGeneration;
    mapping(uint256 => LegionClass) internal idToClass;
    mapping(uint256 => LegionRarity) internal idToRarity;
    mapping(uint256 => uint256) internal idToOldId;
    mapping(uint256 => uint8) internal idToQuestLevel;
    mapping(uint256 => uint8) internal idToCraftLevel;
    mapping(uint256 => uint8[6]) internal idToConstellationRanks;

    mapping(LegionGeneration => mapping(LegionClass => mapping(LegionRarity => mapping(uint256 => string)))) internal _genToClassToRarityToOldIdToUri;

    function __LegionMetadataStoreState_init() internal initializer {
        AdminableUpgradeable.__Adminable_init();
    }
}

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

import "./LegionMetadataStoreState.sol";

interface ILegionMetadataStore {
    // Sets the intial metadata for a token id.
    // Admin only.
    function setInitialMetadataForLegion(address _owner, uint256 _tokenId, LegionGeneration _generation, LegionClass _class, LegionRarity _rarity, uint256 _oldId) external;

    // Increases the quest level by one. It is up to the calling contract to regulate the max quest level. No validation.
    // Admin only.
    function increaseQuestLevel(uint256 _tokenId) external;

    // Increases the craft level by one. It is up to the calling contract to regulate the max craft level. No validation.
    // Admin only.
    function increaseCraftLevel(uint256 _tokenId) external;

    // Increases the rank of the given constellation to the given number. It is up to the calling contract to regulate the max constellation rank. No validation.
    // Admin only.
    function increaseConstellationRank(uint256 _tokenId, Constellation _constellation, uint8 _to) external;

    // Returns the metadata for the given legion.
    function metadataForLegion(uint256 _tokenId) external view returns(LegionMetadata memory);

    // Returns the tokenUri for the given token.
    function tokenURI(uint256 _tokenId) external view returns(string memory);
}

// As this will likely change in the future, this should not be used to store state, but rather
// as parameters and return values from functions.
struct LegionMetadata {
    LegionGeneration legionGeneration;
    LegionClass legionClass;
    LegionRarity legionRarity;
    uint8 questLevel;
    uint8 craftLevel;
    uint8[6] constellationRanks;
    uint256 oldId;
}

enum Constellation {
    FIRE,
    EARTH,
    WIND,
    WATER,
    LIGHT,
    DARK
}

enum LegionRarity {
    LEGENDARY,
    RARE,
    SPECIAL,
    UNCOMMON,
    COMMON,
    RECRUIT
}

enum LegionClass {
    RECRUIT,
    SIEGE,
    FIGHTER,
    ASSASSIN,
    RANGED,
    SPELLCASTER,
    RIVERMAN,
    NUMERAIRE,
    ALL_CLASS,
    ORIGIN
}

enum LegionGeneration {
    GENESIS,
    AUXILIARY,
    RECRUIT
}

File 5 of 10 : AddressUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library AddressUpgradeable {
    /**
     * @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) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

    /**
     * @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].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 6 of 10 : AdminableUpgradeable.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

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

import "./UtilitiesUpgradeable.sol";

// Do not add state to this contract.
//
contract AdminableUpgradeable is UtilitiesUpgradeable {

    mapping(address => bool) private admins;

    function __Adminable_init() internal initializer {
        UtilitiesUpgradeable.__Utilities__init();
    }

    function addAdmin(address _address) external onlyOwner {
        admins[_address] = true;
    }

    function addAdmins(address[] calldata _addresses) external onlyOwner {
        for(uint256 i = 0; i < _addresses.length; i++) {
            admins[_addresses[i]] = true;
        }
    }

    function removeAdmin(address _address) external onlyOwner {
        admins[_address] = false;
    }

    function removeAdmins(address[] calldata _addresses) external onlyOwner {
        for(uint256 i = 0; i < _addresses.length; i++) {
            admins[_addresses[i]] = false;
        }
    }

    function setPause(bool _shouldPause) external onlyAdminOrOwner {
        if(_shouldPause) {
            _pause();
        } else {
            _unpause();
        }
    }

    function isAdmin(address _address) public view returns(bool) {
        return admins[_address];
    }

    modifier onlyAdmin() {
        require(admins[msg.sender], "Not admin");
        _;
    }

    modifier onlyAdminOrOwner() {
        require(admins[msg.sender] || isOwner(), "Not admin or owner");
        _;
    }

    uint256[50] private __gap;
}

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

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

contract UtilitiesUpgradeable is Initializable, OwnableUpgradeable, PausableUpgradeable {

    function __Utilities__init() internal initializer {
        OwnableUpgradeable.__Ownable_init();
        PausableUpgradeable.__Pausable_init();

        _pause();
    }

    modifier nonZeroAddress(address _address) {
        require(address(0) != _address, "0 address");
        _;
    }

    modifier nonZeroLength(uint[] memory _array) {
        require(_array.length > 0, "Empty array");
        _;
    }

    modifier lengthsAreEqual(uint[] memory _array1, uint[] memory _array2) {
        require(_array1.length == _array2.length, "Unequal lengths");
        _;
    }

    modifier onlyEOA() {
        /* solhint-disable avoid-tx-origin */
        require(msg.sender == tx.origin, "No contracts");
        _;
    }

    function isOwner() internal view returns(bool) {
        return owner() == msg.sender;
    }
}

File 8 of 10 : OwnableUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/ContextUpgradeable.sol";
import "../proxy/utils/Initializable.sol";

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

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

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

    function __Ownable_init_unchained() internal onlyInitializing {
        _transferOwnership(_msgSender());
    }

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

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

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

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

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

File 9 of 10 : PausableUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

import "../utils/ContextUpgradeable.sol";
import "../proxy/utils/Initializable.sol";

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract PausableUpgradeable is Initializable, ContextUpgradeable {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    function __Pausable_init() internal onlyInitializing {
        __Context_init_unchained();
        __Pausable_init_unchained();
    }

    function __Pausable_init_unchained() internal onlyInitializing {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
    uint256[49] private __gap;
}

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

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

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

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

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

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

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":true,"internalType":"enum Constellation","name":"_constellation","type":"uint8"},{"indexed":false,"internalType":"uint8","name":"_rank","type":"uint8"}],"name":"LegionConstellationRankUp","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":false,"internalType":"uint8","name":"_craftLevel","type":"uint8"}],"name":"LegionCraftLevelUp","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_owner","type":"address"},{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":false,"internalType":"enum LegionGeneration","name":"_generation","type":"uint8"},{"indexed":false,"internalType":"enum LegionClass","name":"_class","type":"uint8"},{"indexed":false,"internalType":"enum LegionRarity","name":"_rarity","type":"uint8"}],"name":"LegionCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":false,"internalType":"uint8","name":"_questLevel","type":"uint8"}],"name":"LegionQuestLevelUp","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"addAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"}],"name":"addAdmins","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"enum Constellation","name":"_constellation","type":"uint8"},{"internalType":"uint8","name":"_to","type":"uint8"}],"name":"increaseConstellationRank","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"increaseCraftLevel","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"increaseQuestLevel","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"isAdmin","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"metadataForLegion","outputs":[{"components":[{"internalType":"enum LegionGeneration","name":"legionGeneration","type":"uint8"},{"internalType":"enum LegionClass","name":"legionClass","type":"uint8"},{"internalType":"enum LegionRarity","name":"legionRarity","type":"uint8"},{"internalType":"uint8","name":"questLevel","type":"uint8"},{"internalType":"uint8","name":"craftLevel","type":"uint8"},{"internalType":"uint8[6]","name":"constellationRanks","type":"uint8[6]"},{"internalType":"uint256","name":"oldId","type":"uint256"}],"internalType":"struct LegionMetadata","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"removeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"}],"name":"removeAdmins","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"enum LegionGeneration","name":"_generation","type":"uint8"},{"internalType":"enum LegionClass","name":"_class","type":"uint8"},{"internalType":"enum LegionRarity","name":"_rarity","type":"uint8"},{"internalType":"uint256","name":"_oldId","type":"uint256"}],"name":"setInitialMetadataForLegion","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_shouldPause","type":"bool"}],"name":"setPause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum LegionGeneration","name":"_gen","type":"uint8"},{"internalType":"enum LegionClass","name":"_class","type":"uint8"},{"internalType":"enum LegionRarity","name":"_rarity","type":"uint8"},{"internalType":"uint256","name":"_oldId","type":"uint256"},{"internalType":"string","name":"_uri","type":"string"}],"name":"setTokenUriForGenClassRarityOldId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5061187a806100206000396000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c80637d1b76f0116100a2578063bedb86fb11610071578063bedb86fb1461022c578063c87b56dd1461023f578063ccd5efbf1461025f578063f15fbdf214610272578063f2fde38b1461029257600080fd5b80637d1b76f0146101e35780638129fc1c146101f65780638da5cb5b146101fe5780639c54df641461021957600080fd5b8063439c0ff7116100e9578063439c0ff7146101975780635c975abb146101aa57806370480275146101b5578063715018a6146101c857806379255507146101d057600080fd5b80631785f53c1461011b57806324d7806c1461013057806329deae9714610171578063377e11e014610184575b600080fd5b61012e6101293660046112b9565b6102a5565b005b61015c61013e3660046112b9565b6001600160a01b031660009081526097602052604090205460ff1690565b60405190151581526020015b60405180910390f35b61012e61017f3660046112db565b6102f9565b61012e6101923660046112f4565b6103dd565b61012e6101a5366004611376565b61047e565b60655460ff1661015c565b61012e6101c33660046112b9565b61057f565b61012e6105cd565b61012e6101de3660046113dc565b610603565b61012e6101f136600461148b565b610704565b61012e610880565b6033546040516001600160a01b039091168152602001610168565b61012e6102273660046112f4565b6108fa565b61012e61023a3660046114f5565b610996565b61025261024d3660046112db565b6109e9565b6040516101689190611517565b61012e61026d3660046112db565b610b66565b6102856102803660046112db565b610c43565b60405161016891906115b6565b61012e6102a03660046112b9565b610d73565b6033546001600160a01b031633146102d85760405162461bcd60e51b81526004016102cf9061164e565b60405180910390fd5b6001600160a01b03166000908152609760205260409020805460ff19169055565b3360009081526097602052604090205460ff168061031a575061031a610e0b565b6103365760405162461bcd60e51b81526004016102cf90611683565b60655460ff16156103595760405162461bcd60e51b81526004016102cf906116af565b600081815260cf60205260408120805460ff1691610376836116ef565b82546101009290920a60ff818102199093169183160217909155600083815260cf60209081526040918290205491519190921681528392507f6a353ec081432bf316d0e01ef591a15708e0ed806399e9522f3d1da9757068c891015b60405180910390a250565b6033546001600160a01b031633146104075760405162461bcd60e51b81526004016102cf9061164e565b60005b818110156104795760006097600085858581811061042a5761042a61170f565b905060200201602081019061043f91906112b9565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558061047181611725565b91505061040a565b505050565b3360009081526097602052604090205460ff168061049f575061049f610e0b565b6104bb5760405162461bcd60e51b81526004016102cf90611683565b60655460ff16156104de5760405162461bcd60e51b81526004016102cf906116af565b600083815260d06020526040902081908360058111156105005761050061156c565b600681106105105761051061170f565b602091828204019190066101000a81548160ff021916908360ff1602179055508160058111156105425761054261156c565b60405160ff8316815284907f3229c0840c3a222339a0c14299d290c4b04664e75a30238f88dfb29fbb33a9ec9060200160405180910390a3505050565b6033546001600160a01b031633146105a95760405162461bcd60e51b81526004016102cf9061164e565b6001600160a01b03166000908152609760205260409020805460ff19166001179055565b6033546001600160a01b031633146105f75760405162461bcd60e51b81526004016102cf9061164e565b6106016000610e2f565b565b3360009081526097602052604090205460ff16806106245750610624610e0b565b6106405760405162461bcd60e51b81526004016102cf90611683565b818160d160008960028111156106585761065861156c565b60028111156106695761066961156c565b8152602001908152602001600020600088600981111561068b5761068b61156c565b600981111561069c5761069c61156c565b815260200190815260200160002060008760058111156106be576106be61156c565b60058111156106cf576106cf61156c565b8152602001908152602001600020600086815260200190815260200160002091906106fb9291906111a2565b50505050505050565b3360009081526097602052604090205460ff16806107255750610725610e0b565b6107415760405162461bcd60e51b81526004016102cf90611683565b60655460ff16156107645760405162461bcd60e51b81526004016102cf906116af565b600085815260ca60205260409020805485919060ff1916600183600281111561078f5761078f61156c565b0217905550600085815260cb60205260409020805484919060ff191660018360098111156107bf576107bf61156c565b0217905550600085815260cc60205260409020805483919060ff191660018360058111156107ef576107ef61156c565b0217905550600085815260cd6020908152604080832084905560ce82528083208054600160ff19918216811790925560cf90935292819020805490921690921790555185906001600160a01b038816907f72e705c716e86c5cfa6cd5f72457b3f6fa7c9d13daaf4547ffea3fe85b7455f39061087090889088908890611740565b60405180910390a3505050505050565b600054610100900460ff1661089b5760005460ff161561089f565b303b155b6108bb5760405162461bcd60e51b81526004016102cf90611770565b600054610100900460ff161580156108dd576000805461ffff19166101011790555b6108e5610e81565b80156108f7576000805461ff00191690555b50565b6033546001600160a01b031633146109245760405162461bcd60e51b81526004016102cf9061164e565b60005b81811015610479576001609760008585858181106109475761094761170f565b905060200201602081019061095c91906112b9565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558061098e81611725565b915050610927565b3360009081526097602052604090205460ff16806109b757506109b7610e0b565b6109d35760405162461bcd60e51b81526004016102cf90611683565b80156109e1576108f7610ee6565b6108f7610f5b565b600081815260ca602052604081205460609160d19160ff166002811115610a1257610a1261156c565b6002811115610a2357610a2361156c565b81526020808201929092526040908101600090812085825260cb9093529081205460ff166009811115610a5857610a5861156c565b6009811115610a6957610a6961156c565b81526020808201929092526040908101600090812085825260cc9093529081205460ff166005811115610a9e57610a9e61156c565b6005811115610aaf57610aaf61156c565b81526020808201929092526040908101600090812085825260cd845282822054825290925290208054610ae1906117be565b80601f0160208091040260200160405190810160405280929190818152602001828054610b0d906117be565b8015610b5a5780601f10610b2f57610100808354040283529160200191610b5a565b820191906000526020600020905b815481529060010190602001808311610b3d57829003601f168201915b50505050509050919050565b3360009081526097602052604090205460ff1680610b875750610b87610e0b565b610ba35760405162461bcd60e51b81526004016102cf90611683565b60655460ff1615610bc65760405162461bcd60e51b81526004016102cf906116af565b600081815260ce60205260408120805460ff1691610be3836116ef565b82546101009290920a60ff818102199093169183160217909155600083815260ce60209081526040918290205491519190921681528392507f1089ef04ba9eeb71b44ffdc73628e8d8bca0fa7a0fdf6c34d2e1fe3ef5eeea2a91016103d2565b610c4b611226565b6040805160e081018252600084815260ca6020529190912054819060ff166002811115610c7a57610c7a61156c565b8152600084815260cb602090815260409091205491019060ff166009811115610ca557610ca561156c565b8152600084815260cc602090815260409091205491019060ff166005811115610cd057610cd061156c565b8152600084815260ce602090815260408083205460ff9081168386015287845260cf835281842054168185015286835260d0909152808220815160c08101928390526060909401939290916006918390855b825461010083900a900460ff16815260206001928301818104948501949093039092029101808411610d2257505050928452505050600093845260cd60209081526040909420549301929092525090565b6033546001600160a01b03163314610d9d5760405162461bcd60e51b81526004016102cf9061164e565b6001600160a01b038116610e025760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016102cf565b6108f781610e2f565b600033610e206033546001600160a01b031690565b6001600160a01b031614905090565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff16610e9c5760005460ff1615610ea0565b303b155b610ebc5760405162461bcd60e51b81526004016102cf90611770565b600054610100900460ff16158015610ede576000805461ffff19166101011790555b6108e5610fd5565b60655460ff1615610f095760405162461bcd60e51b81526004016102cf906116af565b6065805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610f3e3390565b6040516001600160a01b03909116815260200160405180910390a1565b60655460ff16610fa45760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016102cf565b6065805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33610f3e565b600054610100900460ff16610ff05760005460ff1615610ff4565b303b155b6110105760405162461bcd60e51b81526004016102cf90611770565b600054610100900460ff16158015611032576000805461ffff19166101011790555b6108e5600054610100900460ff166110505760005460ff1615611054565b303b155b6110705760405162461bcd60e51b81526004016102cf90611770565b600054610100900460ff16158015611092576000805461ffff19166101011790555b61109a6110aa565b6110a26110e1565b6108e5610ee6565b600054610100900460ff166110d15760405162461bcd60e51b81526004016102cf906117f9565b6110d9611118565b61060161113f565b600054610100900460ff166111085760405162461bcd60e51b81526004016102cf906117f9565b611110611118565b61060161116f565b600054610100900460ff166106015760405162461bcd60e51b81526004016102cf906117f9565b600054610100900460ff166111665760405162461bcd60e51b81526004016102cf906117f9565b61060133610e2f565b600054610100900460ff166111965760405162461bcd60e51b81526004016102cf906117f9565b6065805460ff19169055565b8280546111ae906117be565b90600052602060002090601f0160209004810192826111d05760008555611216565b82601f106111e95782800160ff19823516178555611216565b82800160010185558215611216579182015b828111156112165782358255916020019190600101906111fb565b5061122292915061126a565b5090565b6040805160e0810190915280600081526020016000815260200160008152600060208201819052604082015260600161125d61127f565b8152602001600081525090565b5b80821115611222576000815560010161126b565b6040518060c001604052806006906020820280368337509192915050565b80356001600160a01b03811681146112b457600080fd5b919050565b6000602082840312156112cb57600080fd5b6112d48261129d565b9392505050565b6000602082840312156112ed57600080fd5b5035919050565b6000806020838503121561130757600080fd5b823567ffffffffffffffff8082111561131f57600080fd5b818501915085601f83011261133357600080fd5b81358181111561134257600080fd5b8660208260051b850101111561135757600080fd5b60209290920196919550909350505050565b600681106108f757600080fd5b60008060006060848603121561138b57600080fd5b83359250602084013561139d81611369565b9150604084013560ff811681146113b357600080fd5b809150509250925092565b8035600381106112b457600080fd5b8035600a81106112b457600080fd5b60008060008060008060a087890312156113f557600080fd5b6113fe876113be565b955061140c602088016113cd565b9450604087013561141c81611369565b935060608701359250608087013567ffffffffffffffff8082111561144057600080fd5b818901915089601f83011261145457600080fd5b81358181111561146357600080fd5b8a602082850101111561147557600080fd5b6020830194508093505050509295509295509295565b60008060008060008060c087890312156114a457600080fd5b6114ad8761129d565b9550602087013594506114c2604088016113be565b93506114d0606088016113cd565b925060808701356114e081611369565b8092505060a087013590509295509295509295565b60006020828403121561150757600080fd5b813580151581146112d457600080fd5b600060208083528351808285015260005b8181101561154457858101830151858201604001528201611528565b81811115611556576000604083870101525b50601f01601f1916929092016040019392505050565b634e487b7160e01b600052602160045260246000fd5b600381106115925761159261156c565b9052565b600a81106115925761159261156c565b600681106115925761159261156c565b6000610180820190506115ca828451611582565b6020808401516115dc82850182611596565b5060408401516115ef60408501826115a6565b50606084015160ff808216606086015280608087015116608086015260a0860151915060a0850160005b6006811015611638578351831682529284019290840190600101611619565b505050505060c083015161016083015292915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601290820152712737ba1030b236b4b71037b91037bbb732b960711b604082015260600190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600060ff821660ff811415611706576117066116d9565b60010192915050565b634e487b7160e01b600052603260045260246000fd5b6000600019821415611739576117396116d9565b5060010190565b6060810161174e8286611582565b61175b6020830185611596565b61176860408301846115a6565b949350505050565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b600181811c908216806117d257607f821691505b602082108114156117f357634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b60608201526080019056fea26469706673582212202b45765149df9eaf3e38d81627b9d3df404fff483443d01110ebd8c61527719d64736f6c63430008090033

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