Contract 0x149ba2EB9Df01350b6e156DEE80e73430b490F28 1
Contract Overview
Balance:
0 ETH
ETH Value:
$0.00
My Name Tag:
Not Available
Txn Hash | Method |
Block
|
From
|
To
|
Value | [Txn Fee] | |||
---|---|---|---|---|---|---|---|---|---|
0x0d726776ecc275a3987f29aab3302c023c26ae15c02425124631f69e2e911293 | 0x60806040 | 4956093 | 794 days 11 hrs ago | 0xb013abd83f0bd173e9f14ce7d6e420ad711483b4 | IN | Create: TreasureMetadataStore | 0 ETH | 0.022950424412 ETH |
[ Download CSV Export ]
Latest 25 internal transaction
[ Download CSV Export ]
Contract Name:
TreasureMetadataStore
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)
//SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./TreasureMetadataStoreState.sol"; import "./ITreasureMetadataStore.sol"; contract TreasureMetadataStore is ITreasureMetadataStore, TreasureMetadataStoreState { using EnumerableSetUpgradeable for EnumerableSetUpgradeable.UintSet; function initialize() external initializer { TreasureMetadataStoreState.__TreasureMetadataStoreState_init(); } function setMetadataForIds(uint256[] calldata _ids, TreasureMetadata[] calldata _metadatas) external override onlyAdminOrOwner { require(_ids.length > 0, "No IDs given"); require(_ids.length == _metadatas.length, "Bad lengths"); for(uint256 i = 0; i < _ids.length; i++) { require(_metadatas[i].tier > 0, "Bad tier"); TreasureMetadata memory _oldMetadata = treasureIdToMetadata[_ids[i]]; if(_oldMetadata.tier > 0 && _oldMetadata.isMintable) { tierToMintableTreasureIds[_oldMetadata.tier].remove(_ids[i]); } treasureIdToMetadata[_ids[i]] = _metadatas[i]; if(_metadatas[i].isMintable) { tierToMintableTreasureIds[_metadatas[i].tier].add(_ids[i]); } } } function hasMetadataForTreasureId(uint256 _treasureId) external view override returns(bool) { return treasureIdToMetadata[_treasureId].tier != 0; } function getRandomTreasureForTier(uint8 _tier, uint256 _randomNumber) external view override returns(uint256) { uint256[] memory _mintableIds = tierToMintableTreasureIds[_tier].values(); require(_mintableIds.length > 0, "No Ids available for tier"); uint256 _resultIndex = _randomNumber % _mintableIds.length; return _mintableIds[_resultIndex]; } function getMetadataForTreasureId(uint256 _treasureId) external view override returns(TreasureMetadata memory) { TreasureMetadata memory _metadata = treasureIdToMetadata[_treasureId]; require(_metadata.tier > 0, "No metadata for ID."); return _metadata; } }
//SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../shared/AdminableUpgradeable.sol"; import "./ITreasureMetadataStore.sol"; import "@openzeppelin/contracts-upgradeable/utils/structs/EnumerableSetUpgradeable.sol"; abstract contract TreasureMetadataStoreState is AdminableUpgradeable { mapping(uint8 => EnumerableSetUpgradeable.UintSet) internal tierToMintableTreasureIds; mapping(uint256 => TreasureMetadata) internal treasureIdToMetadata; function __TreasureMetadataStoreState_init() internal initializer { AdminableUpgradeable.__Adminable_init(); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./TreasureMetadataStoreState.sol"; interface ITreasureMetadataStore { // Sets the metadata for the given Ids. // Admin only. function setMetadataForIds(uint256[] calldata _ids, TreasureMetadata[] calldata _metadatas) external; // Returns if the given ID has metadata set. function hasMetadataForTreasureId(uint256 _treasureId) external view returns(bool); // Returns the metadata for the given ID. Reverts if no metadata for the ID is set. function getMetadataForTreasureId(uint256 _treasureId) external view returns(TreasureMetadata memory); // For the given tier, gets a random MINTABLE treasure id. function getRandomTreasureForTier(uint8 _tier, uint256 _randomNumber) external view returns(uint256); } // Do not change. Stored in state. struct TreasureMetadata { TreasureCategory category; uint8 tier; // Out of 100,000 uint32 craftingBreakOdds; bool isMintable; uint256 consumableIdDropWhenBreak; } enum TreasureCategory { ALCHEMY, ARCANA, BREWING, ENCHANTER, LEATHERWORKING, SMITHING }
//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; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/structs/EnumerableSet.sol) pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSetUpgradeable { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { return _values(set._inner); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; assembly { result := store } return result; } }
// 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)); } }
//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; } }
// 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); } } } }
// 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; }
// 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; }
// 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; }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "libraries": {} }
[{"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":"_treasureId","type":"uint256"}],"name":"getMetadataForTreasureId","outputs":[{"components":[{"internalType":"enum TreasureCategory","name":"category","type":"uint8"},{"internalType":"uint8","name":"tier","type":"uint8"},{"internalType":"uint32","name":"craftingBreakOdds","type":"uint32"},{"internalType":"bool","name":"isMintable","type":"bool"},{"internalType":"uint256","name":"consumableIdDropWhenBreak","type":"uint256"}],"internalType":"struct TreasureMetadata","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"_tier","type":"uint8"},{"internalType":"uint256","name":"_randomNumber","type":"uint256"}],"name":"getRandomTreasureForTier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_treasureId","type":"uint256"}],"name":"hasMetadataForTreasureId","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":[],"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":"uint256[]","name":"_ids","type":"uint256[]"},{"components":[{"internalType":"enum TreasureCategory","name":"category","type":"uint8"},{"internalType":"uint8","name":"tier","type":"uint8"},{"internalType":"uint32","name":"craftingBreakOdds","type":"uint32"},{"internalType":"bool","name":"isMintable","type":"bool"},{"internalType":"uint256","name":"consumableIdDropWhenBreak","type":"uint256"}],"internalType":"struct TreasureMetadata[]","name":"_metadatas","type":"tuple[]"}],"name":"setMetadataForIds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_shouldPause","type":"bool"}],"name":"setPause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50611540806100206000396000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c80638129fc1c11610097578063bedb86fb11610066578063bedb86fb146101f3578063ed4706d414610206578063f2fde38b14610226578063fd1a00ff1461023957600080fd5b80638129fc1c146101aa5780638da5cb5b146101b2578063940a228a146101cd5780639c54df64146101e057600080fd5b80635c975abb116100d35780635c975abb14610163578063704802751461016e578063715018a6146101815780637498e03f1461018957600080fd5b80631785f53c146100fa57806324d7806c1461010f578063377e11e014610150575b600080fd5b61010d61010836600461107c565b610263565b005b61013b61011d36600461107c565b6001600160a01b031660009081526097602052604090205460ff1690565b60405190151581526020015b60405180910390f35b61010d61015e3660046110f1565b6102b7565b60655460ff1661013b565b61010d61017c36600461107c565b610358565b61010d6103a6565b61019c610197366004611142565b6103dc565b604051908152602001610147565b61010d610482565b6033546040516001600160a01b039091168152602001610147565b61010d6101db36600461116e565b6104fc565b61010d6101ee3660046110f1565b61084c565b61010d610201366004611216565b6108e8565b610219610214366004611233565b610960565b6040516101479190611262565b61010d61023436600461107c565b610a5f565b61013b610247366004611233565b600090815260cb6020526040902054610100900460ff16151590565b6033546001600160a01b031633146102965760405162461bcd60e51b815260040161028d906112c4565b60405180910390fd5b6001600160a01b03166000908152609760205260409020805460ff19169055565b6033546001600160a01b031633146102e15760405162461bcd60e51b815260040161028d906112c4565b60005b8181101561035357600060976000858585818110610304576103046112f9565b9050602002016020810190610319919061107c565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558061034b81611325565b9150506102e4565b505050565b6033546001600160a01b031633146103825760405162461bcd60e51b815260040161028d906112c4565b6001600160a01b03166000908152609760205260409020805460ff19166001179055565b6033546001600160a01b031633146103d05760405162461bcd60e51b815260040161028d906112c4565b6103da6000610af3565b565b60ff8216600090815260ca6020526040812081906103f990610b45565b9050600081511161044c5760405162461bcd60e51b815260206004820152601960248201527f4e6f2049647320617661696c61626c6520666f72207469657200000000000000604482015260640161028d565b600081518461045b9190611340565b905081818151811061046f5761046f6112f9565b6020026020010151925050505b92915050565b600054610100900460ff1661049d5760005460ff16156104a1565b303b155b6104bd5760405162461bcd60e51b815260040161028d90611362565b600054610100900460ff161580156104df576000805461ffff19166101011790555b6104e7610b59565b80156104f9576000805461ff00191690555b50565b3360009081526097602052604090205460ff168061051d575061051d610bbe565b61055e5760405162461bcd60e51b81526020600482015260126024820152712737ba1030b236b4b71037b91037bbb732b960711b604482015260640161028d565b8261059a5760405162461bcd60e51b815260206004820152600c60248201526b27379024a2399033b4bb32b760a11b604482015260640161028d565b8281146105d75760405162461bcd60e51b815260206004820152600b60248201526a426164206c656e6774687360a81b604482015260640161028d565b60005b838110156108455760008383838181106105f6576105f66112f9565b905060a00201602001602081019061060e91906113b0565b60ff16116106495760405162461bcd60e51b81526020600482015260086024820152672130b2103a34b2b960c11b604482015260640161028d565b600060cb6000878785818110610661576106616112f9565b602090810292909201358352508101919091526040908101600020815160a081019092528054829060ff16600581111561069d5761069d61124c565b60058111156106ae576106ae61124c565b8152815460ff6101008204811660208085019190915263ffffffff6201000084041660408501526601000000000000909204811615156060840152600190930154608090920191909152820151919250161580159061070e575080606001515b1561074c5761074a868684818110610728576107286112f9565b60208581015160ff16600090815260ca82526040902093910201359050610be2565b505b83838381811061075e5761075e6112f9565b905060a0020160cb600088888681811061077a5761077a6112f9565b905060200201358152602001908152602001600020818161079b91906113da565b9050508383838181106107b0576107b06112f9565b905060a0020160600160208101906107c89190611216565b15610832576108308686848181106107e2576107e26112f9565b9050602002013560ca60008787878181106107ff576107ff6112f9565b905060a00201602001602081019061081791906113b0565b60ff168152602081019190915260400160002090610bee565b505b508061083d81611325565b9150506105da565b5050505050565b6033546001600160a01b031633146108765760405162461bcd60e51b815260040161028d906112c4565b60005b8181101561035357600160976000858585818110610899576108996112f9565b90506020020160208101906108ae919061107c565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055806108e081611325565b915050610879565b3360009081526097602052604090205460ff16806109095750610909610bbe565b61094a5760405162461bcd60e51b81526020600482015260126024820152712737ba1030b236b4b71037b91037bbb732b960711b604482015260640161028d565b8015610958576104f9610bfa565b6104f9610c92565b6040805160a081018252600080825260208201819052918101829052606081018290526080810191909152600082815260cb6020526040808220815160a081019092528054829060ff1660058111156109bb576109bb61124c565b60058111156109cc576109cc61124c565b8152815460ff6101008204811660208085019190915263ffffffff62010000840416604085015266010000000000009092048116151560608401526001909301546080909201919091528201519192501661047c5760405162461bcd60e51b815260206004820152601360248201527227379036b2ba30b230ba30903337b91024a21760691b604482015260640161028d565b6033546001600160a01b03163314610a895760405162461bcd60e51b815260040161028d906112c4565b6001600160a01b038116610aee5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161028d565b6104f9815b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60606000610b5283610d0c565b9392505050565b600054610100900460ff16610b745760005460ff1615610b78565b303b155b610b945760405162461bcd60e51b815260040161028d90611362565b600054610100900460ff16158015610bb6576000805461ffff19166101011790555b6104e7610d68565b600033610bd36033546001600160a01b031690565b6001600160a01b031614905090565b6000610b528383610dcd565b6000610b528383610ec0565b60655460ff1615610c405760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161028d565b6065805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610c753390565b6040516001600160a01b03909116815260200160405180910390a1565b60655460ff16610cdb5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161028d565b6065805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33610c75565b606081600001805480602002602001604051908101604052809291908181526020018280548015610d5c57602002820191906000526020600020905b815481526020019060010190808311610d48575b50505050509050919050565b600054610100900460ff16610d835760005460ff1615610d87565b303b155b610da35760405162461bcd60e51b815260040161028d90611362565b600054610100900460ff16158015610dc5576000805461ffff19166101011790555b6104e7610f0f565b60008181526001830160205260408120548015610eb6576000610df1600183611492565b8554909150600090610e0590600190611492565b9050818114610e6a576000866000018281548110610e2557610e256112f9565b9060005260206000200154905080876000018481548110610e4857610e486112f9565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080610e7b57610e7b6114a9565b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505061047c565b600091505061047c565b6000818152600183016020526040812054610f075750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561047c565b50600061047c565b600054610100900460ff16610f2a5760005460ff1615610f2e565b303b155b610f4a5760405162461bcd60e51b815260040161028d90611362565b600054610100900460ff16158015610f6c576000805461ffff19166101011790555b610f74610f84565b610f7c610fbb565b6104e7610bfa565b600054610100900460ff16610fab5760405162461bcd60e51b815260040161028d906114bf565b610fb3610ff2565b6103da611019565b600054610100900460ff16610fe25760405162461bcd60e51b815260040161028d906114bf565b610fea610ff2565b6103da611049565b600054610100900460ff166103da5760405162461bcd60e51b815260040161028d906114bf565b600054610100900460ff166110405760405162461bcd60e51b815260040161028d906114bf565b6103da33610af3565b600054610100900460ff166110705760405162461bcd60e51b815260040161028d906114bf565b6065805460ff19169055565b60006020828403121561108e57600080fd5b81356001600160a01b0381168114610b5257600080fd5b60008083601f8401126110b757600080fd5b50813567ffffffffffffffff8111156110cf57600080fd5b6020830191508360208260051b85010111156110ea57600080fd5b9250929050565b6000806020838503121561110457600080fd5b823567ffffffffffffffff81111561111b57600080fd5b611127858286016110a5565b90969095509350505050565b60ff811681146104f957600080fd5b6000806040838503121561115557600080fd5b823561116081611133565b946020939093013593505050565b6000806000806040858703121561118457600080fd5b843567ffffffffffffffff8082111561119c57600080fd5b6111a8888389016110a5565b909650945060208701359150808211156111c157600080fd5b818701915087601f8301126111d557600080fd5b8135818111156111e457600080fd5b88602060a0830285010111156111f957600080fd5b95989497505060200194505050565b80151581146104f957600080fd5b60006020828403121561122857600080fd5b8135610b5281611208565b60006020828403121561124557600080fd5b5035919050565b634e487b7160e01b600052602160045260246000fd5b815160a08201906006811061128757634e487b7160e01b600052602160045260246000fd5b8083525060ff602084015116602083015263ffffffff60408401511660408301526060830151151560608301526080830151608083015292915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156113395761133961130f565b5060010190565b60008261135d57634e487b7160e01b600052601260045260246000fd5b500690565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b6000602082840312156113c257600080fd5b8135610b5281611133565b6000813561047c81611208565b8135600681106113e957600080fd5b815460ff821691508160ff198216178355602084013561140881611133565b61ff008160081b168361ffff19841617178455505050604082013563ffffffff8116811461143557600080fd5b815465ffffffff00001916601082901b65ffffffff00001617825550611484611460606084016113cd565b82805466ff000000000000191691151560301b66ff00000000000016919091179055565b608082013560018201555050565b6000828210156114a4576114a461130f565b500390565b634e487b7160e01b600052603160045260246000fd5b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b60608201526080019056fea2646970667358221220c5a5988ca335ed0a1020a913ff0bd1a4d9a1e385ed39402af022db872b0072f064736f6c63430008090033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100f55760003560e01c80638129fc1c11610097578063bedb86fb11610066578063bedb86fb146101f3578063ed4706d414610206578063f2fde38b14610226578063fd1a00ff1461023957600080fd5b80638129fc1c146101aa5780638da5cb5b146101b2578063940a228a146101cd5780639c54df64146101e057600080fd5b80635c975abb116100d35780635c975abb14610163578063704802751461016e578063715018a6146101815780637498e03f1461018957600080fd5b80631785f53c146100fa57806324d7806c1461010f578063377e11e014610150575b600080fd5b61010d61010836600461107c565b610263565b005b61013b61011d36600461107c565b6001600160a01b031660009081526097602052604090205460ff1690565b60405190151581526020015b60405180910390f35b61010d61015e3660046110f1565b6102b7565b60655460ff1661013b565b61010d61017c36600461107c565b610358565b61010d6103a6565b61019c610197366004611142565b6103dc565b604051908152602001610147565b61010d610482565b6033546040516001600160a01b039091168152602001610147565b61010d6101db36600461116e565b6104fc565b61010d6101ee3660046110f1565b61084c565b61010d610201366004611216565b6108e8565b610219610214366004611233565b610960565b6040516101479190611262565b61010d61023436600461107c565b610a5f565b61013b610247366004611233565b600090815260cb6020526040902054610100900460ff16151590565b6033546001600160a01b031633146102965760405162461bcd60e51b815260040161028d906112c4565b60405180910390fd5b6001600160a01b03166000908152609760205260409020805460ff19169055565b6033546001600160a01b031633146102e15760405162461bcd60e51b815260040161028d906112c4565b60005b8181101561035357600060976000858585818110610304576103046112f9565b9050602002016020810190610319919061107c565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558061034b81611325565b9150506102e4565b505050565b6033546001600160a01b031633146103825760405162461bcd60e51b815260040161028d906112c4565b6001600160a01b03166000908152609760205260409020805460ff19166001179055565b6033546001600160a01b031633146103d05760405162461bcd60e51b815260040161028d906112c4565b6103da6000610af3565b565b60ff8216600090815260ca6020526040812081906103f990610b45565b9050600081511161044c5760405162461bcd60e51b815260206004820152601960248201527f4e6f2049647320617661696c61626c6520666f72207469657200000000000000604482015260640161028d565b600081518461045b9190611340565b905081818151811061046f5761046f6112f9565b6020026020010151925050505b92915050565b600054610100900460ff1661049d5760005460ff16156104a1565b303b155b6104bd5760405162461bcd60e51b815260040161028d90611362565b600054610100900460ff161580156104df576000805461ffff19166101011790555b6104e7610b59565b80156104f9576000805461ff00191690555b50565b3360009081526097602052604090205460ff168061051d575061051d610bbe565b61055e5760405162461bcd60e51b81526020600482015260126024820152712737ba1030b236b4b71037b91037bbb732b960711b604482015260640161028d565b8261059a5760405162461bcd60e51b815260206004820152600c60248201526b27379024a2399033b4bb32b760a11b604482015260640161028d565b8281146105d75760405162461bcd60e51b815260206004820152600b60248201526a426164206c656e6774687360a81b604482015260640161028d565b60005b838110156108455760008383838181106105f6576105f66112f9565b905060a00201602001602081019061060e91906113b0565b60ff16116106495760405162461bcd60e51b81526020600482015260086024820152672130b2103a34b2b960c11b604482015260640161028d565b600060cb6000878785818110610661576106616112f9565b602090810292909201358352508101919091526040908101600020815160a081019092528054829060ff16600581111561069d5761069d61124c565b60058111156106ae576106ae61124c565b8152815460ff6101008204811660208085019190915263ffffffff6201000084041660408501526601000000000000909204811615156060840152600190930154608090920191909152820151919250161580159061070e575080606001515b1561074c5761074a868684818110610728576107286112f9565b60208581015160ff16600090815260ca82526040902093910201359050610be2565b505b83838381811061075e5761075e6112f9565b905060a0020160cb600088888681811061077a5761077a6112f9565b905060200201358152602001908152602001600020818161079b91906113da565b9050508383838181106107b0576107b06112f9565b905060a0020160600160208101906107c89190611216565b15610832576108308686848181106107e2576107e26112f9565b9050602002013560ca60008787878181106107ff576107ff6112f9565b905060a00201602001602081019061081791906113b0565b60ff168152602081019190915260400160002090610bee565b505b508061083d81611325565b9150506105da565b5050505050565b6033546001600160a01b031633146108765760405162461bcd60e51b815260040161028d906112c4565b60005b8181101561035357600160976000858585818110610899576108996112f9565b90506020020160208101906108ae919061107c565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055806108e081611325565b915050610879565b3360009081526097602052604090205460ff16806109095750610909610bbe565b61094a5760405162461bcd60e51b81526020600482015260126024820152712737ba1030b236b4b71037b91037bbb732b960711b604482015260640161028d565b8015610958576104f9610bfa565b6104f9610c92565b6040805160a081018252600080825260208201819052918101829052606081018290526080810191909152600082815260cb6020526040808220815160a081019092528054829060ff1660058111156109bb576109bb61124c565b60058111156109cc576109cc61124c565b8152815460ff6101008204811660208085019190915263ffffffff62010000840416604085015266010000000000009092048116151560608401526001909301546080909201919091528201519192501661047c5760405162461bcd60e51b815260206004820152601360248201527227379036b2ba30b230ba30903337b91024a21760691b604482015260640161028d565b6033546001600160a01b03163314610a895760405162461bcd60e51b815260040161028d906112c4565b6001600160a01b038116610aee5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161028d565b6104f9815b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60606000610b5283610d0c565b9392505050565b600054610100900460ff16610b745760005460ff1615610b78565b303b155b610b945760405162461bcd60e51b815260040161028d90611362565b600054610100900460ff16158015610bb6576000805461ffff19166101011790555b6104e7610d68565b600033610bd36033546001600160a01b031690565b6001600160a01b031614905090565b6000610b528383610dcd565b6000610b528383610ec0565b60655460ff1615610c405760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161028d565b6065805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610c753390565b6040516001600160a01b03909116815260200160405180910390a1565b60655460ff16610cdb5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161028d565b6065805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33610c75565b606081600001805480602002602001604051908101604052809291908181526020018280548015610d5c57602002820191906000526020600020905b815481526020019060010190808311610d48575b50505050509050919050565b600054610100900460ff16610d835760005460ff1615610d87565b303b155b610da35760405162461bcd60e51b815260040161028d90611362565b600054610100900460ff16158015610dc5576000805461ffff19166101011790555b6104e7610f0f565b60008181526001830160205260408120548015610eb6576000610df1600183611492565b8554909150600090610e0590600190611492565b9050818114610e6a576000866000018281548110610e2557610e256112f9565b9060005260206000200154905080876000018481548110610e4857610e486112f9565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080610e7b57610e7b6114a9565b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505061047c565b600091505061047c565b6000818152600183016020526040812054610f075750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561047c565b50600061047c565b600054610100900460ff16610f2a5760005460ff1615610f2e565b303b155b610f4a5760405162461bcd60e51b815260040161028d90611362565b600054610100900460ff16158015610f6c576000805461ffff19166101011790555b610f74610f84565b610f7c610fbb565b6104e7610bfa565b600054610100900460ff16610fab5760405162461bcd60e51b815260040161028d906114bf565b610fb3610ff2565b6103da611019565b600054610100900460ff16610fe25760405162461bcd60e51b815260040161028d906114bf565b610fea610ff2565b6103da611049565b600054610100900460ff166103da5760405162461bcd60e51b815260040161028d906114bf565b600054610100900460ff166110405760405162461bcd60e51b815260040161028d906114bf565b6103da33610af3565b600054610100900460ff166110705760405162461bcd60e51b815260040161028d906114bf565b6065805460ff19169055565b60006020828403121561108e57600080fd5b81356001600160a01b0381168114610b5257600080fd5b60008083601f8401126110b757600080fd5b50813567ffffffffffffffff8111156110cf57600080fd5b6020830191508360208260051b85010111156110ea57600080fd5b9250929050565b6000806020838503121561110457600080fd5b823567ffffffffffffffff81111561111b57600080fd5b611127858286016110a5565b90969095509350505050565b60ff811681146104f957600080fd5b6000806040838503121561115557600080fd5b823561116081611133565b946020939093013593505050565b6000806000806040858703121561118457600080fd5b843567ffffffffffffffff8082111561119c57600080fd5b6111a8888389016110a5565b909650945060208701359150808211156111c157600080fd5b818701915087601f8301126111d557600080fd5b8135818111156111e457600080fd5b88602060a0830285010111156111f957600080fd5b95989497505060200194505050565b80151581146104f957600080fd5b60006020828403121561122857600080fd5b8135610b5281611208565b60006020828403121561124557600080fd5b5035919050565b634e487b7160e01b600052602160045260246000fd5b815160a08201906006811061128757634e487b7160e01b600052602160045260246000fd5b8083525060ff602084015116602083015263ffffffff60408401511660408301526060830151151560608301526080830151608083015292915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156113395761133961130f565b5060010190565b60008261135d57634e487b7160e01b600052601260045260246000fd5b500690565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b6000602082840312156113c257600080fd5b8135610b5281611133565b6000813561047c81611208565b8135600681106113e957600080fd5b815460ff821691508160ff198216178355602084013561140881611133565b61ff008160081b168361ffff19841617178455505050604082013563ffffffff8116811461143557600080fd5b815465ffffffff00001916601082901b65ffffffff00001617825550611484611460606084016113cd565b82805466ff000000000000191691151560301b66ff00000000000016919091179055565b608082013560018201555050565b6000828210156114a4576114a461130f565b500390565b634e487b7160e01b600052603160045260246000fd5b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b60608201526080019056fea2646970667358221220c5a5988ca335ed0a1020a913ff0bd1a4d9a1e385ed39402af022db872b0072f064736f6c63430008090033
Age | Block | Fee Address | BC Fee Address | Voting Power | Jailed | Incoming |
---|
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.