BatchCreateLifes | Address 0x41bf01f90268a562847029688d1b111347f58aad | BscScan (2024)

BatchCreateLifes | Address 0x41bf01f90268a562847029688d1b111347f58aad | BscScan (1)

0x41bF01f90268a562847029688D1b111347F58Aad

Sponsored

MetaMask Manage your web3 everything with MetaMask Portfolio. Try Now!Ready to onboard to BNB Smart Chain? With MetaMask Portfolio, you're in control.

NexoJoin the hunt for $12,000,000+ in NEXO Tokens. Get NEXOCollect points for eligible actions and use multipliers to win big.

Sponsored

Сoins.game - 100 free spins for registration. Spin Now! Everyday giveaways up to 8.88BTC, Lucky Spins.Deposit BONUS 300% and Cashbacks!

NanoGames.io Claim Free Lottery tickets with 100k prize pool Claim NowRegister now on NanoGames and receive free lottery tickets to kickstart your new adventure.

Sponsored

BC.GAME The Best BNB Casino with 1,000,000 BNB Daily Bonus. Claim Now5000+ Slots, Live casino games, 50+ cryptos, 100% bet insurance. Register with Bscscan and get 240% first deposit bonus.

Source Code

  • Token Approvals Beta
  • Check Previous Balance
  • Update Name Tag or Label
  • Report/Flag Address
  • Transactions
  • Token Transfers (BEP-20)
  • Contract
  • Events
  • Analytics

Advanced Filter

  • Filter by Tx Type:
  • Tx
  • BEP-20

Latest 1 from a total of 1 transactions

  • View Completed Txns
  • View Pending Txns
  • View Failed Txns
  • View Outgoing Txns
  • View Incoming Txns
  • View Contract Creation
Transaction Hash

Method

Block

From

To

Value

0x79a70e263adfd4fa877668c846452d4cff13e02652a3b65936bfa83146ca1fa2

0x60a080603971715515 days ago

0x10739510...dA4714615

IN

Create: BatchCreateLifes

0 BNB0.00134184
Parent Transaction HashBlockFromToValue

View All Internal Transactions

Loading...

Loading

  • Code
  • Read Contract
  • Write Contract

This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.

Contract Source Code Verified (Exact Match)

Contract Name:

BatchCreateLifes

Compiler Version

v0.8.23+commit.f704f362

Optimization Enabled:

Yes with 200 runs

Other Settings:

paris EvmVersion

Contract Source Code (Solidity Standard Json-Input format)

BatchCreateLifes | Address 0x41bf01f90268a562847029688d1b111347f58aad | BscScan (12)BatchCreateLifes | Address 0x41bf01f90268a562847029688d1b111347f58aad | BscScan (13)BatchCreateLifes | Address 0x41bf01f90268a562847029688d1b111347f58aad | BscScan (14)IDE

  • Is this a proxy?
  • Similar
  • Sol2Uml
  • Submit Audit
  • Compare

File 1 of 10 : BatchCreateLifes.sol

// SPDX-License-Identifier: MITpragma solidity ^0.8.19;import { UUPSUpgradeable } from '@openzeppelin/contracts/proxy/utils/UUPSUpgradeable.sol';import { OwnableUpgradeable } from '@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol';interface ICell { function createLife(uint256[][] memory cellsPositions_) external payable; function getCellGene(uint256 tokenID) external view returns (string memory genes, uint256 bornBlock, uint256 livingCellTotal, uint64 bornTime, uint64 rentedCount, uint256 bornPrice); function getCellRentPrice(uint256 rentedCount, uint256 absoluteTimeSinceStart) external view returns (uint256);}interface ILife { function _currentLifeId() external returns (uint256); function safeTransferFrom(address from, address to, uint256 tokenId) external;}/// @title Contract for claim bitlife/// @author Cellula Teamcontract BatchCreateLifes is OwnableUpgradeable, UUPSUpgradeable { // ======================== Variables ======================== bool public status; uint256 public counter; address public operator; address public lifeAddress; address public cellAddress; mapping(address => uint256[]) public player; mapping(address => uint256) public playerCounter; mapping(uint256 => address) public lifeCreator; // ======================== Events ======================== event BatchCreate(address indexed player, uint256 timestamp, uint256[] token_id); event UnknownError(address caller, bytes data); event ChangeStatus(bool old_status, bool new_status); event ChangeOperator(address old_operator, address new_operator); // ======================== Constructor ======================== function initialize(address owner_, address operator_, address life_, address cell_) external initializer { status = true; operator = operator_; lifeAddress = life_; cellAddress = cell_; __Ownable_init(owner_); } function _authorizeUpgrade(address) internal override onlyOwner {} // ======================== Emergency Exit ======================== function emergencyExit(address receiver) public onlyOwner { (bool success, ) = receiver.call{ value: address(this).balance }(''); require(success, 'escape failed'); } // ======================== Limit Functions ======================== function setOperator(address new_operator) public onlyOwner { require(new_operator != operator, 'repeat operator'); require(new_operator != address(0), 'error operator'); emit ChangeOperator(operator, new_operator); operator = new_operator; } function setStatus(bool new_status) public { require(msg.sender == operator, 'must be operator'); if (status != new_status) { emit ChangeStatus(status, new_status); status = new_status; } } // ======================== Functions ======================== function batchCreationBySingleGene(uint256[][] calldata gene, uint256 quantity) public payable { require(status, 'paused'); uint256[] memory ids = new uint256[](quantity); uint256 balanceBefore = address(this).balance - msg.value; ILife lifeContract = ILife(lifeAddress); for (uint256 index = 0; index < quantity; ++index) { uint256 tokenId = lifeContract._currentLifeId(); ICell(cellAddress).createLife{ value: address(this).balance - balanceBefore }(gene); player[msg.sender].push(tokenId); lifeCreator[tokenId] = msg.sender; lifeContract.safeTransferFrom(address(this), msg.sender, tokenId); ids[index] = tokenId; } playerCounter[msg.sender] += quantity; counter += quantity; uint256 balanceAfter = address(this).balance; (bool success, ) = msg.sender.call{ value: balanceAfter - balanceBefore }(''); require(success, 'cashback error'); emit BatchCreate(msg.sender, block.timestamp, ids); } function batchCreationByMultipleGene(uint256[][][] calldata genes, uint256[] calldata quantitys) public payable { require(status, 'paused'); require(genes.length == quantitys.length, 'params length error'); uint256 quantityTotal; for (uint256 i = 0; i < quantitys.length; ++i) { quantityTotal += quantitys[i]; } uint256[] memory ids = new uint256[](quantityTotal); uint256 balanceBefore = address(this).balance - msg.value; ILife lifeContract = ILife(lifeAddress); for (uint256 i = 0; i < genes.length; ++i) { uint256[][] calldata gene = genes[i]; uint256 quantity = quantitys[i]; for (uint256 index = 0; index < quantity; ++index) { uint256 tokenId = lifeContract._currentLifeId(); ICell(cellAddress).createLife{ value: address(this).balance - balanceBefore }(gene); player[msg.sender].push(tokenId); lifeCreator[tokenId] = msg.sender; lifeContract.safeTransferFrom(address(this), msg.sender, tokenId); ids[index] = tokenId; } playerCounter[msg.sender] += quantity; counter += quantity; } uint256 balanceAfter = address(this).balance; (bool success, ) = msg.sender.call{ value: balanceAfter - balanceBefore }(''); require(success, 'cashback error'); emit BatchCreate(msg.sender, block.timestamp, ids); } // ======================== Helper Functions ======================== function getPlayerIds(address _player) public view returns (uint256[] memory ids) { return player[_player]; } function getLifeCreator(uint256[] calldata ids) public view returns (address[] memory) { address[] memory creators = new address[](ids.length); for (uint256 i = 0; i < ids.length; ++i) { creators[i] = lifeCreator[ids[i]]; } return creators; } // ======================== Receive ======================== receive() external payable {} fallback() external { emit UnknownError(msg.sender, msg.data); }}

File 2 of 10 : OwnableUpgradeable.sol

// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)pragma solidity ^0.8.20;import {ContextUpgradeable} from "../utils/ContextUpgradeable.sol";import {Initializable} from "../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. * * The initial owner is set to the address provided by the deployer. 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 { /// @custom:storage-location erc7201:openzeppelin.storage.Ownable struct OwnableStorage { address _owner; } // keccak256(abi.encode(uint256(keccak256("openzeppelin.storage.Ownable")) - 1)) & ~bytes32(uint256(0xff)) bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300; function _getOwnableStorage() private pure returns (OwnableStorage storage $) { assembly { $.slot := OwnableStorageLocation } } /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ function __Ownable_init(address initialOwner) internal onlyInitializing { __Ownable_init_unchained(initialOwner); } function __Ownable_init_unchained(address initialOwner) internal onlyInitializing { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { OwnableStorage storage $ = _getOwnableStorage(); return $._owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling 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 { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { OwnableStorage storage $ = _getOwnableStorage(); address oldOwner = $._owner; $._owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); }}

File 3 of 10 : Initializable.sol

// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v5.0.0) (proxy/utils/Initializable.sol)pragma solidity ^0.8.20;/** * @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 proxied contracts do not make use of 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. * * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in * case an upgrade adds a module that needs to be initialized. * * For example: * * [.hljs-theme-light.nopadding] * ```solidity * contract MyToken is ERC20Upgradeable { * function initialize() initializer public { * __ERC20_init("MyToken", "MTK"); * } * } * * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable { * function initializeV2() reinitializer(2) public { * __ERC20Permit_init("MyToken"); * } * } * ``` * * 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 prevent the implementation contract from being used, you should invoke * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() { * _disableInitializers(); * } * ``` * ==== */abstract contract Initializable { /** * @dev Storage of the initializable contract. * * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions * when using with upgradeable contracts. * * @custom:storage-location erc7201:openzeppelin.storage.Initializable */ struct InitializableStorage { /** * @dev Indicates that the contract has been initialized. */ uint64 _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool _initializing; } // keccak256(abi.encode(uint256(keccak256("openzeppelin.storage.Initializable")) - 1)) & ~bytes32(uint256(0xff)) bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00; /** * @dev The contract is already initialized. */ error InvalidInitialization(); /** * @dev The contract is not initializing. */ error NotInitializing(); /** * @dev Triggered when the contract has been initialized or reinitialized. */ event Initialized(uint64 version); /** * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope, * `onlyInitializing` functions can be used to initialize parent contracts. * * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in * production. * * Emits an {Initialized} event. */ modifier initializer() { // solhint-disable-next-line var-name-mixedcase InitializableStorage storage $ = _getInitializableStorage(); // Cache values to avoid duplicated sloads bool isTopLevelCall = !$._initializing; uint64 initialized = $._initialized; // Allowed calls: // - initialSetup: the contract is not in the initializing state and no previous version was // initialized // - construction: the contract is initialized at version 1 (no reininitialization) and the // current contract is just being deployed bool initialSetup = initialized == 0 && isTopLevelCall; bool construction = initialized == 1 && address(this).code.length == 0; if (!initialSetup && !construction) { revert InvalidInitialization(); } $._initialized = 1; if (isTopLevelCall) { $._initializing = true; } _; if (isTopLevelCall) { $._initializing = false; emit Initialized(1); } } /** * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be * used to initialize parent contracts. * * A reinitializer may be used after the original initialization step. This is essential to configure modules that * are added through upgrades and that require initialization. * * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer` * cannot be nested. If one is invoked in the context of another, execution will revert. * * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in * a contract, executing them in the right order is up to the developer or operator. * * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization. * * Emits an {Initialized} event. */ modifier reinitializer(uint64 version) { // solhint-disable-next-line var-name-mixedcase InitializableStorage storage $ = _getInitializableStorage(); if ($._initializing || $._initialized >= version) { revert InvalidInitialization(); } $._initialized = version; $._initializing = true; _; $._initializing = false; emit Initialized(version); } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} and {reinitializer} modifiers, directly or indirectly. */ modifier onlyInitializing() { _checkInitializing(); _; } /** * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}. */ function _checkInitializing() internal view virtual { if (!_isInitializing()) { revert NotInitializing(); } } /** * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call. * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized * to any version. It is recommended to use this to lock implementation contracts that are designed to be called * through proxies. * * Emits an {Initialized} event the first time it is successfully executed. */ function _disableInitializers() internal virtual { // solhint-disable-next-line var-name-mixedcase InitializableStorage storage $ = _getInitializableStorage(); if ($._initializing) { revert InvalidInitialization(); } if ($._initialized != type(uint64).max) { $._initialized = type(uint64).max; emit Initialized(type(uint64).max); } } /** * @dev Returns the highest version that has been initialized. See {reinitializer}. */ function _getInitializedVersion() internal view returns (uint64) { return _getInitializableStorage()._initialized; } /** * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}. */ function _isInitializing() internal view returns (bool) { return _getInitializableStorage()._initializing; } /** * @dev Returns a pointer to the storage namespace. */ // solhint-disable-next-line var-name-mixedcase function _getInitializableStorage() private pure returns (InitializableStorage storage $) { assembly { $.slot := INITIALIZABLE_STORAGE } }}

File 4 of 10 : ContextUpgradeable.sol

// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)pragma solidity ^0.8.20;import {Initializable} from "../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 { } 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; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; }}

File 5 of 10 : draft-IERC1822.sol

// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC1822.sol)pragma solidity ^0.8.20;/** * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified * proxy whose upgrades are fully controlled by the current implementation. */interface IERC1822Proxiable { /** * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation * address. * * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this * function revert if invoked through a proxy. */ function proxiableUUID() external view returns (bytes32);}

File 6 of 10 : IBeacon.sol

// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v5.0.0) (proxy/beacon/IBeacon.sol)pragma solidity ^0.8.20;/** * @dev This is the interface that {BeaconProxy} expects of its beacon. */interface IBeacon { /** * @dev Must return an address that can be used as a delegate call target. * * {UpgradeableBeacon} will check that this address is a contract. */ function implementation() external view returns (address);}

File 7 of 10 : ERC1967Utils.sol

// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v5.0.0) (proxy/ERC1967/ERC1967Utils.sol)pragma solidity ^0.8.20;import {IBeacon} from "../beacon/IBeacon.sol";import {Address} from "../../utils/Address.sol";import {StorageSlot} from "../../utils/StorageSlot.sol";/** * @dev This abstract contract provides getters and event emitting update functions for * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots. */library ERC1967Utils { // We re-declare ERC-1967 events here because they can't be used directly from IERC1967. // This will be fixed in Solidity 0.8.21. At that point we should remove these events. /** * @dev Emitted when the implementation is upgraded. */ event Upgraded(address indexed implementation); /** * @dev Emitted when the admin account has changed. */ event AdminChanged(address previousAdmin, address newAdmin); /** * @dev Emitted when the beacon is changed. */ event BeaconUpgraded(address indexed beacon); /** * @dev Storage slot with the address of the current implementation. * This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1. */ // solhint-disable-next-line private-vars-leading-underscore bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; /** * @dev The `implementation` of the proxy is invalid. */ error ERC1967InvalidImplementation(address implementation); /** * @dev The `admin` of the proxy is invalid. */ error ERC1967InvalidAdmin(address admin); /** * @dev The `beacon` of the proxy is invalid. */ error ERC1967InvalidBeacon(address beacon); /** * @dev An upgrade function sees `msg.value > 0` that may be lost. */ error ERC1967NonPayable(); /** * @dev Returns the current implementation address. */ function getImplementation() internal view returns (address) { return StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value; } /** * @dev Stores a new address in the EIP1967 implementation slot. */ function _setImplementation(address newImplementation) private { if (newImplementation.code.length == 0) { revert ERC1967InvalidImplementation(newImplementation); } StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation; } /** * @dev Performs implementation upgrade with additional setup call if data is nonempty. * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected * to avoid stuck value in the contract. * * Emits an {IERC1967-Upgraded} event. */ function upgradeToAndCall(address newImplementation, bytes memory data) internal { _setImplementation(newImplementation); emit Upgraded(newImplementation); if (data.length > 0) { Address.functionDelegateCall(newImplementation, data); } else { _checkNonPayable(); } } /** * @dev Storage slot with the admin of the contract. * This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1. */ // solhint-disable-next-line private-vars-leading-underscore bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103; /** * @dev Returns the current admin. * * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call. * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103` */ function getAdmin() internal view returns (address) { return StorageSlot.getAddressSlot(ADMIN_SLOT).value; } /** * @dev Stores a new address in the EIP1967 admin slot. */ function _setAdmin(address newAdmin) private { if (newAdmin == address(0)) { revert ERC1967InvalidAdmin(address(0)); } StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin; } /** * @dev Changes the admin of the proxy. * * Emits an {IERC1967-AdminChanged} event. */ function changeAdmin(address newAdmin) internal { emit AdminChanged(getAdmin(), newAdmin); _setAdmin(newAdmin); } /** * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy. * This is the keccak-256 hash of "eip1967.proxy.beacon" subtracted by 1. */ // solhint-disable-next-line private-vars-leading-underscore bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50; /** * @dev Returns the current beacon. */ function getBeacon() internal view returns (address) { return StorageSlot.getAddressSlot(BEACON_SLOT).value; } /** * @dev Stores a new beacon in the EIP1967 beacon slot. */ function _setBeacon(address newBeacon) private { if (newBeacon.code.length == 0) { revert ERC1967InvalidBeacon(newBeacon); } StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon; address beaconImplementation = IBeacon(newBeacon).implementation(); if (beaconImplementation.code.length == 0) { revert ERC1967InvalidImplementation(beaconImplementation); } } /** * @dev Change the beacon and trigger a setup call if data is nonempty. * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected * to avoid stuck value in the contract. * * Emits an {IERC1967-BeaconUpgraded} event. * * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for * efficiency. */ function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal { _setBeacon(newBeacon); emit BeaconUpgraded(newBeacon); if (data.length > 0) { Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data); } else { _checkNonPayable(); } } /** * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract * if an upgrade doesn't perform an initialization call. */ function _checkNonPayable() private { if (msg.value > 0) { revert ERC1967NonPayable(); } }}

File 8 of 10 : UUPSUpgradeable.sol

// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v5.0.0) (proxy/utils/UUPSUpgradeable.sol)pragma solidity ^0.8.20;import {IERC1822Proxiable} from "../../interfaces/draft-IERC1822.sol";import {ERC1967Utils} from "../ERC1967/ERC1967Utils.sol";/** * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy. * * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing * `UUPSUpgradeable` with a custom implementation of upgrades. * * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism. */abstract contract UUPSUpgradeable is IERC1822Proxiable { /// @custom:oz-upgrades-unsafe-allow state-variable-immutable address private immutable __self = address(this); /** * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)` * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called, * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string. * If the getter returns `"5.0.0"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function * during an upgrade. */ string public constant UPGRADE_INTERFACE_VERSION = "5.0.0"; /** * @dev The call is from an unauthorized context. */ error UUPSUnauthorizedCallContext(); /** * @dev The storage `slot` is unsupported as a UUID. */ error UUPSUnsupportedProxiableUUID(bytes32 slot); /** * @dev Check that the execution is being performed through a delegatecall call and that the execution context is * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to * fail. */ modifier onlyProxy() { _checkProxy(); _; } /** * @dev Check that the execution is not being performed through a delegate call. This allows a function to be * callable on the implementing contract but not through proxies. */ modifier notDelegated() { _checkNotDelegated(); _; } /** * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the * implementation. It is used to validate the implementation's compatibility when performing an upgrade. * * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier. */ function proxiableUUID() external view virtual notDelegated returns (bytes32) { return ERC1967Utils.IMPLEMENTATION_SLOT; } /** * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call * encoded in `data`. * * Calls {_authorizeUpgrade}. * * Emits an {Upgraded} event. * * @custom:oz-upgrades-unsafe-allow-reachable delegatecall */ function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy { _authorizeUpgrade(newImplementation); _upgradeToAndCallUUPS(newImplementation, data); } /** * @dev Reverts if the execution is not performed via delegatecall or the execution * context is not of a proxy with an ERC1967-compliant implementation pointing to self. * See {_onlyProxy}. */ function _checkProxy() internal view virtual { if ( address(this) == __self || // Must be called through delegatecall ERC1967Utils.getImplementation() != __self // Must be called through an active proxy ) { revert UUPSUnauthorizedCallContext(); } } /** * @dev Reverts if the execution is performed via delegatecall. * See {notDelegated}. */ function _checkNotDelegated() internal view virtual { if (address(this) != __self) { // Must not be called through delegatecall revert UUPSUnauthorizedCallContext(); } } /** * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by * {upgradeToAndCall}. * * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}. * * ```solidity * function _authorizeUpgrade(address) internal onlyOwner {} * ``` */ function _authorizeUpgrade(address newImplementation) internal virtual; /** * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call. * * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value * is expected to be the implementation slot in ERC1967. * * Emits an {IERC1967-Upgraded} event. */ function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private { try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) { if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) { revert UUPSUnsupportedProxiableUUID(slot); } ERC1967Utils.upgradeToAndCall(newImplementation, data); } catch { // The implementation is not UUPS revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation); } }}

File 9 of 10 : Address.sol

// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol)pragma solidity ^0.8.20;/** * @dev Collection of functions related to the address type */library Address { /** * @dev The ETH balance of the account is not enough to perform the operation. */ error AddressInsufficientBalance(address account); /** * @dev There's no code at `target` (it is not a contract). */ error AddressEmptyCode(address target); /** * @dev A call to an address target failed. The target may have reverted. */ error FailedInnerCall(); /** * @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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { if (address(this).balance < amount) { revert AddressInsufficientBalance(address(this)); } (bool success, ) = recipient.call{value: amount}(""); if (!success) { revert FailedInnerCall(); } } /** * @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 or custom error, it is bubbled * up by this function (like regular Solidity function calls). However, if * the call reverted with no returned reason, this function reverts with a * {FailedInnerCall} error. * * 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. */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0); } /** * @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`. */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { if (address(this).balance < value) { revert AddressInsufficientBalance(address(this)); } (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an * unsuccessful call. */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata ) internal view returns (bytes memory) { if (!success) { _revert(returndata); } else { // only check if target is a contract if the call was successful and the return data is empty // otherwise we already know that it was a contract if (returndata.length == 0 && target.code.length == 0) { revert AddressEmptyCode(target); } return returndata; } } /** * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the * revert reason or with a default {FailedInnerCall} error. */ function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) { if (!success) { _revert(returndata); } else { return returndata; } } /** * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}. */ function _revert(bytes memory returndata) private pure { // 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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert FailedInnerCall(); } }}

File 10 of 10 : StorageSlot.sol

// SPDX-License-Identifier: MIT// OpenZeppelin Contracts (last updated v5.0.0) (utils/StorageSlot.sol)// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.pragma solidity ^0.8.20;/** * @dev Library for reading and writing primitive types to specific storage slots. * * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts. * This library helps with reading and writing to such slots without the need for inline assembly. * * The functions in this library return Slot structs that contain a `value` member that can be used to read or write. * * Example usage to set ERC1967 implementation slot: * ```solidity * contract ERC1967 { * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; * * function _getImplementation() internal view returns (address) { * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value; * } * * function _setImplementation(address newImplementation) internal { * require(newImplementation.code.length > 0); * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation; * } * } * ``` */library StorageSlot { struct AddressSlot { address value; } struct BooleanSlot { bool value; } struct Bytes32Slot { bytes32 value; } struct Uint256Slot { uint256 value; } struct StringSlot { string value; } struct BytesSlot { bytes value; } /** * @dev Returns an `AddressSlot` with member `value` located at `slot`. */ function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `BooleanSlot` with member `value` located at `slot`. */ function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `Bytes32Slot` with member `value` located at `slot`. */ function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `Uint256Slot` with member `value` located at `slot`. */ function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `StringSlot` with member `value` located at `slot`. */ function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `StringSlot` representation of the string storage pointer `store`. */ function getStringSlot(string storage store) internal pure returns (StringSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := store.slot } } /** * @dev Returns an `BytesSlot` with member `value` located at `slot`. */ function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`. */ function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := store.slot } }}

Settings

{ "optimizer": { "enabled": true, "runs": 200 }, "viaIR": true, "evmVersion": "paris", "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {}}

Contract Security Audit

  • No Contract Security Audit Submitted- Submit Audit Here

Contract ABI

  • JSON Format
  • RAW/Text Format
[{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"AddressEmptyCode","type":"error"},{"inputs":[{"internalType":"address","name":"implementation","type":"address"}],"name":"ERC1967InvalidImplementation","type":"error"},{"inputs":[],"name":"ERC1967NonPayable","type":"error"},{"inputs":[],"name":"FailedInnerCall","type":"error"},{"inputs":[],"name":"InvalidInitialization","type":"error"},{"inputs":[],"name":"NotInitializing","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"UUPSUnauthorizedCallContext","type":"error"},{"inputs":[{"internalType":"bytes32","name":"slot","type":"bytes32"}],"name":"UUPSUnsupportedProxiableUUID","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"player","type":"address"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":false,"internalType":"uint256[]","name":"token_id","type":"uint256[]"}],"name":"BatchCreate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"old_operator","type":"address"},{"indexed":false,"internalType":"address","name":"new_operator","type":"address"}],"name":"ChangeOperator","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"old_status","type":"bool"},{"indexed":false,"internalType":"bool","name":"new_status","type":"bool"}],"name":"ChangeStatus","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint64","name":"version","type":"uint64"}],"name":"Initialized","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":"caller","type":"address"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"}],"name":"UnknownError","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"stateMutability":"nonpayable","type":"fallback"},{"inputs":[],"name":"UPGRADE_INTERFACE_VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[][][]","name":"genes","type":"uint256[][][]"},{"internalType":"uint256[]","name":"quantitys","type":"uint256[]"}],"name":"batchCreationByMultipleGene","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256[][]","name":"gene","type":"uint256[][]"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"batchCreationBySingleGene","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"cellAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"counter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"emergencyExit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"getLifeCreator","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_player","type":"address"}],"name":"getPlayerIds","outputs":[{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner_","type":"address"},{"internalType":"address","name":"operator_","type":"address"},{"internalType":"address","name":"life_","type":"address"},{"internalType":"address","name":"cell_","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lifeAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"lifeCreator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"player","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"playerCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxiableUUID","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"new_operator","type":"address"}],"name":"setOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"new_status","type":"bool"}],"name":"setStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"status","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}]

Contract Creation Code

Decompile Bytecode Switch to Opcodes View

60a0806040523461002a573060805261162b908161003082396080518181816109240152610a090152f35b600080fdfe60806040526004361015610078575b36156100765734610071577ff1abb2d85efe94dab4b7267f221198e9fa7fc5275afcf378abd440edaf16cb7d604051338152604060208201523660408201523660006060830137600060603683010152606081601f19601f3601168101030190a1005b600080fd5b005b60003560e01c806317279cbd146111135780631b5c96be14610f1b5780631c9bef1014610bdb578063200d2ed214610bb85780634f1ef2861461098e57806352d1902d1461091157806353a5933914610825578063570ca735146107fc5780635c40f6f41461074057806361bc221a1461072257806369795c8f146106f9578063715018a61461068f5780638da5cb5b146106595780639219dd1514610630578063a441d067146105c1578063ab482d651461058d578063ad3cb1cc146104e3578063b3ab15fb146103f7578063cd5ea4f8146103bd578063d484db751461032e578063f2fde38b1461030a5763f8c8765e0361000e57346100715760803660031901126100715761018861116b565b6001600160a01b039060243582811690819003610071576044359183831680930361007157606435938416809403610071577ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a009384549260ff8460401c1615946001600160401b03851680159081610302575b60011490816102f8575b1590816102ef575b506102dd5767ffffffffffffffff198516600117875561027b94866102be575b50600160ff1960005416176000556bffffffffffffffffffffffff60a01b91826002541617600255816003541617600355600454161760045561026e611531565b610276611531565b611484565b61028157005b68ff00000000000000001981541690557fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602060405160018152a1005b68ffffffffffffffffff1916680100000000000000011787553861022d565b60405163f92ee8a960e01b8152600490fd5b9050153861020d565b303b159150610205565b8791506101fb565b346100715760203660031901126100715761007661032661116b565b6102766114f8565b3461007157602080600319360112610071576001600160a01b0361035061116b565b1660005260058152604060002090604051808383829554938481520190600052836000209260005b858282106103a75750505061038f925003836111f2565b6103a360405192828493845283019061122e565b0390f35b8554845260019586019588955093019201610378565b34610071576020366003190112610071576001600160a01b036103de61116b565b1660005260066020526020604060002054604051908152f35b346100715760203660031901126100715761041061116b565b6104186114f8565b6002546001600160a01b039182169181168281146104ac5782156104765760407f43ecbc1bb0a9bebbcadca5bdaedc649040adb65597772899e25403afb28b6794918151908152846020820152a16001600160a01b03191617600255005b60405162461bcd60e51b815260206004820152600e60248201526d32b93937b91037b832b930ba37b960911b6044820152606490fd5b60405162461bcd60e51b815260206004820152600f60248201526e3932b832b0ba1037b832b930ba37b960891b6044820152606490fd5b3461007157600036600319011261007157604051604081018181106001600160401b038211176105775760405260058152602090640352e302e360dc1b60208201526040518092602082528251908160208401526000935b82851061055e575050604092506000838284010152601f80199101168101030190f35b848101820151868601604001529381019385935061053b565b634e487b7160e01b600052604160045260246000fd5b34610071576020366003190112610071576004356000526007602052602060018060a01b0360406000205416604051908152f35b346100715760203660031901126100715760008080806105df61116b565b6105e76114f8565b47905af16105f3611407565b50156105fb57005b60405162461bcd60e51b815260206004820152600d60248201526c195cd8d85c194819985a5b1959609a1b6044820152606490fd5b34610071576000366003190112610071576003546040516001600160a01b039091168152602090f35b34610071576000366003190112610071576000805160206115d6833981519152546040516001600160a01b039091168152602090f35b34610071576000366003190112610071576106a86114f8565b6000805160206115d683398151915280546001600160a01b031981169091556000906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a3005b34610071576000366003190112610071576004546040516001600160a01b039091168152602090f35b34610071576000366003190112610071576020600154604051908152f35b3461007157602036600319011261007157600435801515809103610071576002546001600160a01b031633036107c4576000549060ff821615159080820361078457005b7f0684f7467ac0a209d64c89f9155c1cd22231e7775ed63336e9827e6125da485c604060ff938151908152836020820152a160ff19909216911617600055005b60405162461bcd60e51b815260206004820152601060248201526f36bab9ba1031329037b832b930ba37b960811b6044820152606490fd5b34610071576000366003190112610071576002546040516001600160a01b039091168152602090f35b3461007157602080600319360112610071576004356001600160401b038111610071576108569036906004016111af565b9061086082611297565b9061086e60405192836111f2565b82825261087a83611297565b8285019390601f190136853760005b8181106108dd5750505090604051928392818401908285525180915260408401929160005b8281106108bd57505050500390f35b83516001600160a01b0316855286955093810193928101926001016108ae565b806108eb6001928486611474565b3560005260078752818060a01b036040600020541661090a82876113e6565b5201610889565b34610071576000366003190112610071577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316300361097c5760206040517f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc8152f35b60405163703e46dd60e11b8152600490fd5b6040366003190112610071576109a261116b565b60249081356001600160401b0381116100715736602382011215610071578060040135916109cf83611213565b6109dc60405191826111f2565b83815260209384820193368783830101116100715781600092888893018737830101526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116308114908115610b8a575b5061097c57610a426114f8565b6040516352d1902d60e01b8152908316948082600481895afa918291600093610b5a575b5050610a8457604051634c9c8ce360e01b8152600481018690528690fd5b8490867f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc91828103610b455750843b15610b2f575080546001600160a01b03191682179055604051907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b600080a2815115610b15575060006100769381925190845af4610b0f611407565b91611572565b9250505034610b2057005b63b398979f60e01b8152600490fd5b604051634c9c8ce360e01b815260048101849052fd5b60405190632a87526960e21b82526004820152fd5b9080929350813d8311610b83575b610b7281836111f2565b810103126100715751908780610a66565b503d610b68565b9050817f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5416141587610a35565b3461007157600036600319011261007157602060ff600054166040519015158152f35b6040366003190112610071576004356001600160401b03811161007157610c069036906004016111af565b6024356001600160401b03811161007157610c259036906004016111af565b919092610c3660ff60005416611262565b828203610ee0576000805b848210610ec057610c5291506112ae565b93610c5d34476112e0565b9360018060a01b03600354169260005b858110610cdb5787610c986000808080610c878d476112e0565b335af1610c92611407565b50611437565b7f37094d187e3078244ed5034384393bae019fa4114819ed797a123a6683b05e056040514281526040602082015280610cd63394604083019061122e565b0390a2005b8060051b820135601e19833603018112156100715782016001600160401b0381351161007157803560051b3603602082011361007157610d1c828587611474565b359060005b828110610d5d575050906001913360005260066020526040600020610d478282546113fa565b9055610d55839182546113fa565b905501610c6d565b60405163a895327b60e01b81529060208260048160008d5af1918215610e7157600092610e8c575b506004546001600160a01b0316610d9c8c476112e0565b813b15610071576000906040519283809263048cb18d60e41b825281610dca8a3560208c0160048401611303565b03925af18015610e7157610e7d575b50336000526005602052610df18260406000206113ac565b600082815260076020526040902080546001600160a01b03191633179055883b1561007157604051632142170760e11b81523060048201523360248201526044810183905291600083606481838e5af18015610e7157828e600195610e5b93610e62575b506113e6565b5201610d21565b610e6b906111df565b38610e55565b6040513d6000823e3d90fd5b610e86906111df565b8c610dd9565b9091506020813d602011610eb8575b81610ea8602093836111f2565b810103126100715751908c610d85565b3d9150610e9b565b610ed8600191610ed184888a611474565b35906113fa565b910190610c41565b60405162461bcd60e51b81526020600482015260136024820152723830b930b6b9903632b733ba341032b93937b960691b6044820152606490fd5b6040366003190112610071576004356001600160401b03811161007157610f469036906004016111af565b60243590610f5860ff60005416611262565b610f61826112ae565b92610f6c34476112e0565b60035490926001600160a01b0392909183169060005b868110610fc45787610c986000808080610c878c610fbb8f338552600660205260408520610fb18282546113fa565b90556001546113fa565b600155476112e0565b60405163a895327b60e01b815290602080836004816000895af1928315610e71576000936110e4575b50866004541690610ffe89476112e0565b823b15610071576000906040519384809263048cb18d60e41b8252816110288d8c60048401611303565b03925af1918215610e71576007926110d5575b5033600052600581526110528460406000206113ac565b83600052526040600020336bffffffffffffffffffffffff60a01b825416179055833b1561007157604051632142170760e11b8152306004820152336024820152604481018390529160008360648183895af1928315610e71576001936110c6575b506110bf828b6113e6565b5201610f82565b6110cf906111df565b8a6110b4565b6110de906111df565b8b61103b565b9080935081813d831161110c575b6110fc81836111f2565b810103126100715751918a610fed565b503d6110f2565b346100715760403660031901126100715761112c61116b565b6001600160a01b03166000908152600560205260409020805460243591908210156100715760209161115d91611181565b90546040519160031b1c8152f35b600435906001600160a01b038216820361007157565b80548210156111995760005260206000200190600090565b634e487b7160e01b600052603260045260246000fd5b9181601f84011215610071578235916001600160401b038311610071576020808501948460051b01011161007157565b6001600160401b03811161057757604052565b90601f801991011681019081106001600160401b0382111761057757604052565b6001600160401b03811161057757601f01601f191660200190565b90815180825260208080930193019160005b82811061124e575050505090565b835185529381019392810192600101611240565b1561126957565b60405162461bcd60e51b81526020600482015260066024820152651c185d5cd95960d21b6044820152606490fd5b6001600160401b0381116105775760051b60200190565b906112b882611297565b6112c560405191826111f2565b82815280926112d6601f1991611297565b0190602036910137565b919082039182116112ed57565b634e487b7160e01b600052601160045260246000fd5b6020928084830185845252604082019360059260408360051b82010195856000925b85841061133757505050505050505090565b9091929394959697603f198282030184528835601e19843603018112156100715783018681359101916001600160401b03821161007157818a1b918236038413610071578082526001600160fb1b0310610071578782828294600196848096013701019a019401940192969594939190611325565b805468010000000000000000811015610577576113ce91600182018155611181565b819291549060031b91821b91600019901b1916179055565b80518210156111995760209160051b010190565b919082018092116112ed57565b3d15611432573d9061141882611213565b9161142660405193846111f2565b82523d6000602084013e565b606090565b1561143e57565b60405162461bcd60e51b815260206004820152600e60248201526d31b0b9b43130b1b59032b93937b960911b6044820152606490fd5b91908110156111995760051b0190565b6001600160a01b039081169081156114df576000805160206115d683398151915280546001600160a01b031981168417909155167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3565b604051631e4fbdf760e01b815260006004820152602490fd5b6000805160206115d6833981519152546001600160a01b0316330361151957565b60405163118cdaa760e01b8152336004820152602490fd5b60ff7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005460401c161561156057565b604051631afcd79f60e31b8152600490fd5b90611599575080511561158757805190602001fd5b604051630a12f52160e11b8152600490fd5b815115806115cc575b6115aa575090565b604051639996b31560e01b81526001600160a01b039091166004820152602490fd5b50803b156115a256fe9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300a26469706673582212202e8346b78b6475d768c52b7fed790c3c48f5a2233bd7e2ebadc90d1b01b9a5bb64736f6c63430008170033


Deployed Bytecode

0x60806040526004361015610078575b36156100765734610071577ff1abb2d85efe94dab4b7267f221198e9fa7fc5275afcf378abd440edaf16cb7d604051338152604060208201523660408201523660006060830137600060603683010152606081601f19601f3601168101030190a1005b600080fd5b005b60003560e01c806317279cbd146111135780631b5c96be14610f1b5780631c9bef1014610bdb578063200d2ed214610bb85780634f1ef2861461098e57806352d1902d1461091157806353a5933914610825578063570ca735146107fc5780635c40f6f41461074057806361bc221a1461072257806369795c8f146106f9578063715018a61461068f5780638da5cb5b146106595780639219dd1514610630578063a441d067146105c1578063ab482d651461058d578063ad3cb1cc146104e3578063b3ab15fb146103f7578063cd5ea4f8146103bd578063d484db751461032e578063f2fde38b1461030a5763f8c8765e0361000e57346100715760803660031901126100715761018861116b565b6001600160a01b039060243582811690819003610071576044359183831680930361007157606435938416809403610071577ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a009384549260ff8460401c1615946001600160401b03851680159081610302575b60011490816102f8575b1590816102ef575b506102dd5767ffffffffffffffff198516600117875561027b94866102be575b50600160ff1960005416176000556bffffffffffffffffffffffff60a01b91826002541617600255816003541617600355600454161760045561026e611531565b610276611531565b611484565b61028157005b68ff00000000000000001981541690557fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602060405160018152a1005b68ffffffffffffffffff1916680100000000000000011787553861022d565b60405163f92ee8a960e01b8152600490fd5b9050153861020d565b303b159150610205565b8791506101fb565b346100715760203660031901126100715761007661032661116b565b6102766114f8565b3461007157602080600319360112610071576001600160a01b0361035061116b565b1660005260058152604060002090604051808383829554938481520190600052836000209260005b858282106103a75750505061038f925003836111f2565b6103a360405192828493845283019061122e565b0390f35b8554845260019586019588955093019201610378565b34610071576020366003190112610071576001600160a01b036103de61116b565b1660005260066020526020604060002054604051908152f35b346100715760203660031901126100715761041061116b565b6104186114f8565b6002546001600160a01b039182169181168281146104ac5782156104765760407f43ecbc1bb0a9bebbcadca5bdaedc649040adb65597772899e25403afb28b6794918151908152846020820152a16001600160a01b03191617600255005b60405162461bcd60e51b815260206004820152600e60248201526d32b93937b91037b832b930ba37b960911b6044820152606490fd5b60405162461bcd60e51b815260206004820152600f60248201526e3932b832b0ba1037b832b930ba37b960891b6044820152606490fd5b3461007157600036600319011261007157604051604081018181106001600160401b038211176105775760405260058152602090640352e302e360dc1b60208201526040518092602082528251908160208401526000935b82851061055e575050604092506000838284010152601f80199101168101030190f35b848101820151868601604001529381019385935061053b565b634e487b7160e01b600052604160045260246000fd5b34610071576020366003190112610071576004356000526007602052602060018060a01b0360406000205416604051908152f35b346100715760203660031901126100715760008080806105df61116b565b6105e76114f8565b47905af16105f3611407565b50156105fb57005b60405162461bcd60e51b815260206004820152600d60248201526c195cd8d85c194819985a5b1959609a1b6044820152606490fd5b34610071576000366003190112610071576003546040516001600160a01b039091168152602090f35b34610071576000366003190112610071576000805160206115d6833981519152546040516001600160a01b039091168152602090f35b34610071576000366003190112610071576106a86114f8565b6000805160206115d683398151915280546001600160a01b031981169091556000906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a3005b34610071576000366003190112610071576004546040516001600160a01b039091168152602090f35b34610071576000366003190112610071576020600154604051908152f35b3461007157602036600319011261007157600435801515809103610071576002546001600160a01b031633036107c4576000549060ff821615159080820361078457005b7f0684f7467ac0a209d64c89f9155c1cd22231e7775ed63336e9827e6125da485c604060ff938151908152836020820152a160ff19909216911617600055005b60405162461bcd60e51b815260206004820152601060248201526f36bab9ba1031329037b832b930ba37b960811b6044820152606490fd5b34610071576000366003190112610071576002546040516001600160a01b039091168152602090f35b3461007157602080600319360112610071576004356001600160401b038111610071576108569036906004016111af565b9061086082611297565b9061086e60405192836111f2565b82825261087a83611297565b8285019390601f190136853760005b8181106108dd5750505090604051928392818401908285525180915260408401929160005b8281106108bd57505050500390f35b83516001600160a01b0316855286955093810193928101926001016108ae565b806108eb6001928486611474565b3560005260078752818060a01b036040600020541661090a82876113e6565b5201610889565b34610071576000366003190112610071577f00000000000000000000000041bf01f90268a562847029688d1b111347f58aad6001600160a01b0316300361097c5760206040517f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc8152f35b60405163703e46dd60e11b8152600490fd5b6040366003190112610071576109a261116b565b60249081356001600160401b0381116100715736602382011215610071578060040135916109cf83611213565b6109dc60405191826111f2565b83815260209384820193368783830101116100715781600092888893018737830101526001600160a01b037f00000000000000000000000041bf01f90268a562847029688d1b111347f58aad8116308114908115610b8a575b5061097c57610a426114f8565b6040516352d1902d60e01b8152908316948082600481895afa918291600093610b5a575b5050610a8457604051634c9c8ce360e01b8152600481018690528690fd5b8490867f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc91828103610b455750843b15610b2f575080546001600160a01b03191682179055604051907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b600080a2815115610b15575060006100769381925190845af4610b0f611407565b91611572565b9250505034610b2057005b63b398979f60e01b8152600490fd5b604051634c9c8ce360e01b815260048101849052fd5b60405190632a87526960e21b82526004820152fd5b9080929350813d8311610b83575b610b7281836111f2565b810103126100715751908780610a66565b503d610b68565b9050817f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5416141587610a35565b3461007157600036600319011261007157602060ff600054166040519015158152f35b6040366003190112610071576004356001600160401b03811161007157610c069036906004016111af565b6024356001600160401b03811161007157610c259036906004016111af565b919092610c3660ff60005416611262565b828203610ee0576000805b848210610ec057610c5291506112ae565b93610c5d34476112e0565b9360018060a01b03600354169260005b858110610cdb5787610c986000808080610c878d476112e0565b335af1610c92611407565b50611437565b7f37094d187e3078244ed5034384393bae019fa4114819ed797a123a6683b05e056040514281526040602082015280610cd63394604083019061122e565b0390a2005b8060051b820135601e19833603018112156100715782016001600160401b0381351161007157803560051b3603602082011361007157610d1c828587611474565b359060005b828110610d5d575050906001913360005260066020526040600020610d478282546113fa565b9055610d55839182546113fa565b905501610c6d565b60405163a895327b60e01b81529060208260048160008d5af1918215610e7157600092610e8c575b506004546001600160a01b0316610d9c8c476112e0565b813b15610071576000906040519283809263048cb18d60e41b825281610dca8a3560208c0160048401611303565b03925af18015610e7157610e7d575b50336000526005602052610df18260406000206113ac565b600082815260076020526040902080546001600160a01b03191633179055883b1561007157604051632142170760e11b81523060048201523360248201526044810183905291600083606481838e5af18015610e7157828e600195610e5b93610e62575b506113e6565b5201610d21565b610e6b906111df565b38610e55565b6040513d6000823e3d90fd5b610e86906111df565b8c610dd9565b9091506020813d602011610eb8575b81610ea8602093836111f2565b810103126100715751908c610d85565b3d9150610e9b565b610ed8600191610ed184888a611474565b35906113fa565b910190610c41565b60405162461bcd60e51b81526020600482015260136024820152723830b930b6b9903632b733ba341032b93937b960691b6044820152606490fd5b6040366003190112610071576004356001600160401b03811161007157610f469036906004016111af565b60243590610f5860ff60005416611262565b610f61826112ae565b92610f6c34476112e0565b60035490926001600160a01b0392909183169060005b868110610fc45787610c986000808080610c878c610fbb8f338552600660205260408520610fb18282546113fa565b90556001546113fa565b600155476112e0565b60405163a895327b60e01b815290602080836004816000895af1928315610e71576000936110e4575b50866004541690610ffe89476112e0565b823b15610071576000906040519384809263048cb18d60e41b8252816110288d8c60048401611303565b03925af1918215610e71576007926110d5575b5033600052600581526110528460406000206113ac565b83600052526040600020336bffffffffffffffffffffffff60a01b825416179055833b1561007157604051632142170760e11b8152306004820152336024820152604481018390529160008360648183895af1928315610e71576001936110c6575b506110bf828b6113e6565b5201610f82565b6110cf906111df565b8a6110b4565b6110de906111df565b8b61103b565b9080935081813d831161110c575b6110fc81836111f2565b810103126100715751918a610fed565b503d6110f2565b346100715760403660031901126100715761112c61116b565b6001600160a01b03166000908152600560205260409020805460243591908210156100715760209161115d91611181565b90546040519160031b1c8152f35b600435906001600160a01b038216820361007157565b80548210156111995760005260206000200190600090565b634e487b7160e01b600052603260045260246000fd5b9181601f84011215610071578235916001600160401b038311610071576020808501948460051b01011161007157565b6001600160401b03811161057757604052565b90601f801991011681019081106001600160401b0382111761057757604052565b6001600160401b03811161057757601f01601f191660200190565b90815180825260208080930193019160005b82811061124e575050505090565b835185529381019392810192600101611240565b1561126957565b60405162461bcd60e51b81526020600482015260066024820152651c185d5cd95960d21b6044820152606490fd5b6001600160401b0381116105775760051b60200190565b906112b882611297565b6112c560405191826111f2565b82815280926112d6601f1991611297565b0190602036910137565b919082039182116112ed57565b634e487b7160e01b600052601160045260246000fd5b6020928084830185845252604082019360059260408360051b82010195856000925b85841061133757505050505050505090565b9091929394959697603f198282030184528835601e19843603018112156100715783018681359101916001600160401b03821161007157818a1b918236038413610071578082526001600160fb1b0310610071578782828294600196848096013701019a019401940192969594939190611325565b805468010000000000000000811015610577576113ce91600182018155611181565b819291549060031b91821b91600019901b1916179055565b80518210156111995760209160051b010190565b919082018092116112ed57565b3d15611432573d9061141882611213565b9161142660405193846111f2565b82523d6000602084013e565b606090565b1561143e57565b60405162461bcd60e51b815260206004820152600e60248201526d31b0b9b43130b1b59032b93937b960911b6044820152606490fd5b91908110156111995760051b0190565b6001600160a01b039081169081156114df576000805160206115d683398151915280546001600160a01b031981168417909155167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3565b604051631e4fbdf760e01b815260006004820152602490fd5b6000805160206115d6833981519152546001600160a01b0316330361151957565b60405163118cdaa760e01b8152336004820152602490fd5b60ff7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005460401c161561156057565b604051631afcd79f60e31b8152600490fd5b90611599575080511561158757805190602001fd5b604051630a12f52160e11b8152600490fd5b815115806115cc575b6115aa575090565b604051639996b31560e01b81526001600160a01b039091166004820152602490fd5b50803b156115a256fe9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300a26469706673582212202e8346b78b6475d768c52b7fed790c3c48f5a2233bd7e2ebadc90d1b01b9a5bb64736f6c63430008170033

BlockTransactionGas UsedReward

view all blocks produced

AgeBlockFee AddressBC Fee AddressVoting PowerJailedIncoming

View All Validatorset

BlockUncle NumberDifficultyGas UsedReward

View All Uncles

Loading...

Loading

Loading...

Loading

Loading...

Loading

Validator IndexBlockAmount

View All Withdrawals

Transaction HashBlockValueEth2 PubKeyValid

View All Deposits

[Download: CSV Export ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.

Address QR Code
My Address - Private Name Tag or Note

My Name Tag:

Private Name Tags (up to 35 characters) can be used for easy identification of addresses

Private Note:

A private note (up to 500 characters) can be attached to this address.
Please DO NOT store any passwords or private keys here.

View all Private Name Tags

Connect a Wallet
Connect a Wallet
Connect a Wallet
BatchCreateLifes | Address 0x41bf01f90268a562847029688d1b111347f58aad | BscScan (2024)
Top Articles
Latest Posts
Article information

Author: Duane Harber

Last Updated:

Views: 5537

Rating: 4 / 5 (51 voted)

Reviews: 90% of readers found this page helpful

Author information

Name: Duane Harber

Birthday: 1999-10-17

Address: Apt. 404 9899 Magnolia Roads, Port Royceville, ID 78186

Phone: +186911129794335

Job: Human Hospitality Planner

Hobby: Listening to music, Orienteering, Knapping, Dance, Mountain biking, Fishing, Pottery

Introduction: My name is Duane Harber, I am a modern, clever, handsome, fair, agreeable, inexpensive, beautiful person who loves writing and wants to share my knowledge and understanding with you.