Source Code
Overview
ETH Balance
0 ETH
More Info
ContractCreator
Multichain Info
N/A
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Initialize | 5652229 | 4 days ago | IN | 0 ETH | 0.00000194 |
Latest 13 internal transactions
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
5655000 | 4 days ago | 0 ETH | ||||
5655000 | 4 days ago | 0 ETH | ||||
5655000 | 4 days ago | 0 ETH | ||||
5655000 | 4 days ago | 0 ETH | ||||
5655000 | 4 days ago | 0 ETH | ||||
5655000 | 4 days ago | 0 ETH | ||||
5655000 | 4 days ago | 0 ETH | ||||
5655000 | 4 days ago | 0 ETH | ||||
5655000 | 4 days ago | 0 ETH | ||||
5655000 | 4 days ago | 0 ETH | ||||
5652229 | 4 days ago | 0 ETH | ||||
5652229 | 4 days ago | 0 ETH | ||||
5652229 | 4 days ago | Contract Creation | 0 ETH |
Loading...
Loading
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:
GigaRomNFTBeforeUpdateHandler
Compiler Version
v0.8.28+commit.7893614a
ZkSolc Version
v1.5.7
Optimization Enabled:
Yes with Mode 3
Other Settings:
cancun EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT LICENSE pragma solidity ^0.8.9; import {IERC721UpdateHandler} from "../IERC721UpdateHandler.sol"; import {GameRegistryConsumer} from "../../core/GameRegistryConsumer.sol"; import {IAccountSystem, ID as ACCOUNT_SYSTEM_ID} from "../../accountsystem/IAccountSystem.sol"; import {IGigaRomNFT, ID as GIGA_ROM_NFT_ID} from "./IGigaRomNFT.sol"; uint256 constant ID = uint256(keccak256("game.gigaverse.updateHandler.gigaromnft")); contract GigaRomNFTBeforeUpdateHandler is IERC721UpdateHandler, GameRegistryConsumer { constructor(address gameRegistryAddress) GameRegistryConsumer(gameRegistryAddress, ID) {} /** * Before transfer hook for NFTs. Performs any trait checks needed before transfer */ function update( address /*from*/, address /*to*/, uint256 tokenId ) external override view { address registeredSystem = _gameRegistry.getSystem(GIGA_ROM_NFT_ID); require(registeredSystem != address(0), "GigaRomNFT not registered"); require(registeredSystem == msg.sender, "Incorrect token contract"); IGigaRomNFT gigaRomNFT = IGigaRomNFT(registeredSystem); if (gigaRomNFT.totalMinted() < gigaRomNFT.getMaxSupply() && gigaRomNFT.exists(tokenId) && gigaRomNFT.ownerOf(tokenId) != address(0)) { revert("Cannot transfer GigaRomNFT untill mint complete"); } } }
// SPDX-License-Identifier: MIT LICENSE pragma solidity ^0.8.9; interface IERC721UpdateHandler { /** * Before transfer hook for NFTs. Performs any trait checks needed before transfer * */ function update( address from, address to, uint256 tokenId ) external; }
// SPDX-License-Identifier: MIT LICENSE pragma solidity ^0.8.13; import {ReentrancyGuard} from "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import {PAUSER_ROLE, MANAGER_ROLE} from "../constants/RoleConstants.sol"; import {ISystem} from "./ISystem.sol"; import {IGameRegistry, IERC165} from "./IGameRegistry.sol"; import {IDataStore, ID as DATA_STORE_ID} from "../db/IDataStore.sol"; import {DEPLOYER_ROLE} from "../constants/RoleConstants.sol"; /** @title Contract that lets a child contract access the GameRegistry contract */ abstract contract GameRegistryConsumer is ReentrancyGuard, ISystem { /// @notice Whether or not the contract is paused bool private _paused; /// @notice Reference to the game registry that this contract belongs to IGameRegistry internal _gameRegistry; /// @notice Id for the system/component uint256 private _id; /** EVENTS **/ /// @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); /** ERRORS **/ /// @notice Not authorized to perform action error MissingRole(address account, bytes32 expectedRole); /** MODIFIERS **/ /// @notice Modifier to verify a user has the appropriate role to call a given function modifier onlyRole(bytes32 role) { _checkRole(role, msg.sender); _; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** ERRORS **/ /// @notice Error if the game registry specified is invalid error InvalidGameRegistry(); /** SETUP **/ /** @return ID for this system */ function getId() public view override returns (uint256) { return _id; } /** * Pause/Unpause the contract * * @param shouldPause Whether or pause or unpause */ function setPaused(bool shouldPause) external onlyRole(PAUSER_ROLE) { if (shouldPause) { _pause(); } else { _unpause(); } } /** * @dev Returns true if the contract OR the GameRegistry is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused || _gameRegistry.paused(); } /** * Sets the GameRegistry contract address for this contract * * @param gameRegistryAddress Address for the GameRegistry contract */ function setGameRegistry( address gameRegistryAddress ) external onlyRole(MANAGER_ROLE) { _gameRegistry = IGameRegistry(gameRegistryAddress); if (gameRegistryAddress == address(0)) { revert InvalidGameRegistry(); } } /** @return GameRegistry contract for this contract */ function getGameRegistry() external view returns (IGameRegistry) { return _gameRegistry; } /** INTERNAL **/ /** * @dev Returns `true` if `account` has been granted `role`. */ function _hasAccessRole( bytes32 role, address account ) internal view returns (bool) { return _gameRegistry.hasAccessRole(role, account); } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { if (!_gameRegistry.hasAccessRole(role, account)) { revert MissingRole(account, role); } } /** @return Returns the dataStore for this contract */ function _dataStore() internal view returns (IDataStore) { return IDataStore(_getSystem(DATA_STORE_ID)); } /** @return Address for a given system */ function _getSystem(uint256 systemId) internal view returns (address) { return _gameRegistry.getSystem(systemId); } /** PAUSABLE **/ /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual { require(_paused == false, "Pausable: not paused"); _paused = true; emit Paused(msg.sender); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual { require(_paused == true, "Pausable: not paused"); _paused = false; emit Unpaused(msg.sender); } function initialize() external virtual onlyRole(DEPLOYER_ROLE) { } /** * Constructor for this contract * * @param gameRegistryAddress Address of the GameRegistry contract * @param id Id of the system/component */ constructor( address gameRegistryAddress, uint256 id ) { _gameRegistry = IGameRegistry(gameRegistryAddress); if (gameRegistryAddress == address(0)) { revert InvalidGameRegistry(); } _paused = true; _id = id; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; uint256 constant ID = uint256(keccak256("game.gigaverse.system.account")); interface IAccountSystem is IERC165 { function setPrice(uint256 _price, uint256 _redeemableTokenId) external; function mintWithEth(string memory _username, bytes memory signature) external payable; function mintWithGameItem(string memory _username, bytes memory signature) external; function getPlayerUsernameId(address player) external view returns (uint256); function getPlayerNoobId(address player) external view returns (uint256); function mintPrice() external view returns (uint256); function setUsername(address to, uint256 tokenId) external; function setPlayerNoob(address to, uint256 tokenId) external; function removeUsername(address player) external; function changeUsername(uint256 tokenId) external; function setMintPrice(uint256 newPrice) external; function withdraw() external; }
// SPDX-License-Identifier: MIT LICENSE pragma solidity ^0.8.9; import {IGameNFT} from "../gamenft/IGameNFT.sol"; import {IMintableERC721} from "../../mint/interfaces/IMintableERC721.sol"; uint256 constant ID = uint256(keccak256("game.gigaverse.gigaromnft.v2")); interface IGigaRomNFT is IGameNFT, IMintableERC721 { function totalMinted() external view returns (uint256); function getMaxSupply() external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT LICENSE pragma solidity ^0.8.9; // Pauser Role - Can pause the game bytes32 constant PAUSER_ROLE = keccak256("PAUSER_ROLE"); // Minter Role - Can mint items, NFTs, and ERC20 currency bytes32 constant MINTER_ROLE = keccak256("MINTER_ROLE"); // Manager Role - Can manage the shop, loot tables, and other game data bytes32 constant MANAGER_ROLE = keccak256("MANAGER_ROLE"); // Depoloyer Role - Can Deploy new Systems bytes32 constant DEPLOYER_ROLE = keccak256("DEPLOYER_ROLE"); // Game Logic Contract - Contract that executes game logic and accesses other systems bytes32 constant GAME_LOGIC_CONTRACT_ROLE = keccak256("GAME_LOGIC_CONTRACT_ROLE"); // For functions callable from game server bytes32 constant SERVER_JUDGE_ROLE = keccak256("SERVER_JUDGE_ROLE");
// SPDX-License-Identifier: MIT LICENSE pragma solidity ^0.8.9; import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; /** * Defines a system the game engine */ interface ISystem { /** @return The ID for the system. Ex: a uint256 casted keccak256 hash */ function getId() external view returns (uint256); function initialize() external; }
// SPDX-License-Identifier: MIT LICENSE pragma solidity ^0.8.9; import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; // @title Interface the game's ACL / Management Layer interface IGameRegistry is IERC165 { /** * @dev Returns `true` if `account` has been granted `role`. * @param role The role to query * @param account The address to query */ function hasAccessRole( bytes32 role, address account ) external view returns (bool); /** * @return Whether or not the registry is paused */ function paused() external view returns (bool); /** * Registers a system by id * * @param systemId Id of the system * @param systemAddress Address of the system contract */ function registerSystem(uint256 systemId, address systemAddress, bool isGameLogicContract) external; /** * @param systemId Id of the system * @return System based on an id */ function getSystem(uint256 systemId) external view returns (address); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; uint256 constant ID = uint256(keccak256("game.gigaverse.datastore")); interface IDataStore { enum ColumnType { NONE, UINT256, INT256, BOOL, ADDRESS, BYTES32, STRING, UINT256_ARRAY } event ValueSet(uint256 indexed tableId, uint256 indexed docId, uint256 indexed colId, bytes32 value); event StringValueSet(uint256 indexed tableId, uint256 indexed docId, uint256 indexed colId, string value); event ArrayValueSet(uint256 indexed tableId, uint256 indexed docId, uint256 indexed colId, bytes32[] value); event ColumnTypeSet(uint256 indexed colId, ColumnType columnType); function setValue(uint256 tableId, uint256 docId, uint256 colId, bytes32 value) external; function getValue(uint256 tableId, uint256 docId, uint256 colId) external view returns (bytes32); function setColumnType(uint256 colId, ColumnType columnType) external; function getColumnType(uint256 colId) external view returns (ColumnType); // Type-specific setters function setUint256(uint256 tableId, uint256 docId, uint256 colId, uint256 value) external; function setInt256(uint256 tableId, uint256 docId, uint256 colId, int256 value) external; function setBool(uint256 tableId, uint256 docId, uint256 colId, bool value) external; function setAddress(uint256 tableId, uint256 docId, uint256 colId, address value) external; function setBytes32(uint256 tableId, uint256 docId, uint256 colId, bytes32 value) external; function setString(uint256 tableId, uint256 docId, uint256 colId, string memory value) external; // Type-specific getters function getUint256(uint256 tableId, uint256 docId, uint256 colId) external view returns (uint256); function getInt256(uint256 tableId, uint256 docId, uint256 colId) external view returns (int256); function getBool(uint256 tableId, uint256 docId, uint256 colId) external view returns (bool); function getAddress(uint256 tableId, uint256 docId, uint256 colId) external view returns (address); function getBytes32(uint256 tableId, uint256 docId, uint256 colId) external view returns (bytes32); function getString(uint256 tableId, uint256 docId, uint256 colId) external view returns (string memory); function deleteValue(uint256 tableId, uint256 docId, uint256 colId) external; function hasValue(uint256 tableId, uint256 docId, uint256 colId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT LICENSE pragma solidity ^0.8.13; import {IERC721} from "@openzeppelin/contracts/token/ERC721/IERC721.sol"; /** * @title Interface for game NFTs that have stats and other properties */ interface IGameNFT is IERC721 { /** * @param account Account to check hold time of * @param tokenId Id of the token * @return The time in seconds a given account has held a token */ function getTimeHeld( address account, uint256 tokenId ) external view returns (uint32); function getLastTransfer( uint256 tokenId ) external view returns (uint32); /** * Mints a batch of ERC721 token * * @param to Recipient of the token * @param amount Quantity of token to mint */ function mintBatch(address to, uint256 amount) external returns (uint256[] memory); function exists(uint256 tokenId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.23; import {IERC721} from "@openzeppelin/contracts/token/ERC721/IERC721.sol"; interface IMintableERC721 is IERC721 { function mint(address to, uint256 quantity) external returns (uint256[] memory tokenIds); function totalSupply() external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
{ "viaIR": false, "codegen": "yul", "remappings": [ "@limitbreak/creator-token-standards/=lib/creator-token-standards/", "@openzeppelin/=lib/openzeppelin-contracts/", "ds-test/=lib/forge-std/lib/ds-test/src/", "forge-std/=lib/forge-std/src/", "murky/=lib/murky/src/", "erc721a/=lib/ERC721A/", "@creator-token-standards/=lib/creator-token-standards/src/", "@limitbreak/permit-c/=lib/creator-token-standards/lib/PermitC/src/", "@opensea/tstorish/=lib/creator-token-standards/lib/tstorish/src/", "@rari-capital/solmate/=lib/creator-token-standards/lib/PermitC/lib/solmate/", "ERC721A/=lib/ERC721A/contracts/", "PermitC/=lib/creator-token-standards/lib/PermitC/", "creator-token-standards/=lib/creator-token-standards/", "erc4626-tests/=lib/murky/lib/openzeppelin-contracts/lib/erc4626-tests/", "forge-gas-metering/=lib/creator-token-standards/lib/PermitC/lib/forge-gas-metering/", "forge-zksync-std/=lib/forge-zksync-std/src/", "openzeppelin-contracts/=lib/openzeppelin-contracts/", "openzeppelin/=lib/creator-token-standards/lib/PermitC/lib/openzeppelin-contracts/contracts/", "solady/=lib/creator-token-standards/lib/PermitC/lib/forge-gas-metering/lib/solady/", "solmate/=lib/creator-token-standards/lib/PermitC/lib/solmate/src/", "tstorish/=lib/creator-token-standards/lib/tstorish/src/" ], "evmVersion": "cancun", "outputSelection": { "*": { "*": [ "abi", "metadata" ], "": [ "ast" ] } }, "optimizer": { "enabled": true, "mode": "3", "fallback_to_optimizing_for_size": false, "disable_system_request_memoization": true }, "metadata": {}, "libraries": {}, "enableEraVMExtensions": false, "forceEVMLA": false }
[{"inputs":[{"internalType":"address","name":"gameRegistryAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"InvalidGameRegistry","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes32","name":"expectedRole","type":"bytes32"}],"name":"MissingRole","type":"error"},{"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":[],"name":"getGameRegistry","outputs":[{"internalType":"contract IGameRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"gameRegistryAddress","type":"address"}],"name":"setGameRegistry","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"shouldPause","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"update","outputs":[],"stateMutability":"view","type":"function"}]
Contract Creation Code
9c4d535b0000000000000000000000000000000000000000000000000000000000000000010001373e85395ff4c2098d567bca81ae7cc9f245e4b50e10aba4d5f4e9914800000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000020000000000000000000000000b5f84708957e5628c363709ae1d4cb346081fbf6
Deployed Bytecode
0x00010000000000020003000000000002000000600310027000000103033001970000000100200190000000330000c13d0000008002000039000000400020043f000000040030008c000003f00000413d000000000201043b000000e0022002700000010b0020009c0000005e0000a13d0000010c0020009c0000006c0000213d0000010f0020009c0000007a0000613d000001100020009c000003f00000c13d000000640030008c000003f00000413d0000000002000416000000000002004b000003f00000c13d0000000402100370000000000202043b000001060020009c000003f00000213d0000002402100370000000000202043b000001060020009c000003f00000213d0000004401100370000000000501043b0000000101000039000000000201041a0000011d01000041000000800010043f0000011e01000041000000840010043f000000000100041400000008022002700000010602200197000000040020008c000001e10000c13d0000000003000031000000200030008c00000020040000390000000004034019000002070000013d0000000002000416000000000002004b000003f00000c13d0000001f0230003900000104022001970000008002200039000000400020043f0000001f0430018f00000105053001980000008002500039000000440000613d0000008006000039000000000701034f000000007807043c0000000006860436000000000026004b000000400000c13d000000000004004b000000510000613d000000000151034f0000000304400210000000000502043300000000054501cf000000000545022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000151019f0000000000120435000000200030008c000003f00000413d000000800100043d000001060010009c000003f00000213d0000000102000039000000000020041b000000000001004b0000008f0000c13d0000011901000041000000000010043f0000011a010000410000040a00010430000001110020009c0000009e0000613d000001120020009c000000bc0000613d000001130020009c000003f00000c13d0000000001000416000000000001004b000003f00000c13d0000000201000039000000000101041a000000800010043f0000011401000041000004090001042e0000010d0020009c000000cf0000613d0000010e0020009c000003f00000c13d0000000001000416000000000001004b000003f00000c13d0000000101000039000000000101041a00000008011002700000010601100197000000800010043f0000011401000041000004090001042e0000000001000416000000000001004b000003f00000c13d0000000101000039000000000201041a0000011501000041000000800010043f0000012c01000041000000840010043f0000000005000411000000a40050043f000000000100041400000008022002700000010602200197000000040020008c000000ea0000c13d0000000003000031000000200030008c000000200400003900000000040340190000010f0000013d000000000302041a000001070330019700000008011002100000010801100197000000000131019f00000001011001bf000000000012041b00000109010000410000000202000039000000000012041b0000002001000039000001000010044300000120000004430000010a01000041000004090001042e000000240030008c000003f00000413d0000000002000416000000000002004b000003f00000c13d0000000401100370000000000701043b000000000007004b0000000001000039000000010100c039000000000017004b000003f00000c13d0000000103000039000000000203041a0000011501000041000000800010043f0000013001000041000000840010043f0000000006000411000000a40060043f000000000100041400000008022002700000010602200197000000040020008c0000012a0000c13d000000000b0000310000002000b0008c000000200400003900000000040b4019000001520000013d0000000001000416000000000001004b000003f00000c13d0000000102000039000000000302041a000000ff00300190000001240000c13d0000012d01000041000000800010043f000000000100041400000008023002700000010602200197000000040020008c000001670000c13d0000000003000031000000200030008c000000200400003900000000040340190000018b0000013d000000240030008c000003f00000413d0000000002000416000000000002004b000003f00000c13d0000000401100370000000000501043b000001060050009c000003f00000213d0000000106000039000000000206041a0000011501000041000000800010043f0000011601000041000000840010043f0000000007000411000000a40070043f000000000100041400000008022002700000010602200197000000040020008c000001980000c13d0000000003000031000000200030008c00000020040000390000000004034019000001c00000013d000001030010009c0000010301008041000000c00110021000000117011001c7040804030000040f00000060031002700000010303300197000000200030008c000000200400003900000000040340190000001f0640018f000000200740019000000080057001bf000000fe0000613d0000008008000039000000000901034f000000009a09043c0000000008a80436000000000058004b000000fa0000c13d000000000006004b0000010b0000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000000000003001f0000000100200190000001d50000613d00000000050004110000001f01400039000000600110018f00000080011001bf000000400010043f000000200030008c000003f00000413d000000800100043d000000000001004b0000000002000039000000010200c039000000000021004b000003f00000c13d000000000001004b000002bd0000c13d0000011b01000041000000000010043f000000040050043f0000012c01000041000000240010043f0000011c010000410000040a000104300000008001000039000000010220018f000000000021043500000040011002100000012f011001c7000004090001042e000300000007001d000001030010009c0000010301008041000000c00110021000000117011001c7040804030000040f0000006003100270000001030b3001970000002000b0008c000000200400003900000000040b40190000001f0640018f000000200740019000000080057001bf0000013f0000613d0000008008000039000000000901034f000000009a09043c0000000008a80436000000000058004b0000013b0000c13d000000000006004b0000014c0000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f000000000065043500000000000b001f00000001002001900000021d0000613d0000000103000039000000000600041100000003070000290000001f01400039000000600210018f00000080012001bf000000400010043f0000002000b0008c000003f00000413d000000800500043d000000000005004b0000000004000039000000010400c039000000000045004b000003f00000c13d000000000005004b0000026d0000c13d0000011b01000041000000000010043f000000040060043f0000013001000041000000240010043f0000011c010000410000040a00010430000001030010009c0000010301008041000000c0011002100000012e011001c7040804030000040f00000060031002700000010303300197000000200030008c000000200400003900000000040340190000001f0640018f000000200740019000000080057001bf0000017b0000613d0000008008000039000000000901034f000000009a09043c0000000008a80436000000000058004b000001770000c13d000000000006004b000001880000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000000000003001f0000000100200190000002370000613d0000001f01400039000000600110018f00000080011001bf000000400010043f000000200030008c000003f00000413d000000800300043d000000000003004b0000000002000039000000010200c039000000000023004b000001250000613d000003f00000013d000300000005001d000001030010009c0000010301008041000000c00110021000000117011001c7040804030000040f000000800a00003900000060031002700000010303300197000000200030008c000000200400003900000000040340190000001f0640018f000000200740019000000080057001bf000001ad0000613d000000000801034f000000008908043c000000000a9a043600000000005a004b000001a90000c13d000000000006004b000001ba0000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000000000003001f0000000100200190000002430000613d0000000305000029000000010600003900000000070004110000001f01400039000000600110018f00000080011001bf000000400010043f000000200030008c000003f00000413d000000800100043d000000000001004b0000000002000039000000010200c039000000000021004b000003f00000c13d000000000001004b000002800000c13d0000011b01000041000000000010043f000000040070043f0000011601000041000000240010043f0000011c010000410000040a000104300000001f0530018f0000010506300198000000400200043d00000000046200190000025a0000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000001dc0000c13d0000025a0000013d000300000005001d000001030010009c0000010301008041000000c0011002100000011f011001c7040804030000040f00000060031002700000010303300197000000200030008c000000200400003900000000040340190000001f0640018f000000200740019000000080057001bf000001f60000613d0000008008000039000000000901034f000000009a09043c0000000008a80436000000000058004b000001f20000c13d000000000006004b000002030000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000000000003001f00000001002001900000024f0000613d00000003050000290000001f01400039000000600110018f00000080041001bf000000400040043f000000200030008c000003f00000413d000000800300043d000001060030009c000003f00000213d000000000003004b000002890000c13d0000012002000041000000000024043500000084021001bf00000020030000390000000000320435000000c4021000390000012b030000410000000000320435000000a4011000390000001902000039000002d70000013d0000001f05b0018f0000010506b00198000000400200043d0000000004620019000002280000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000002240000c13d000000000005004b000002350000613d000000000161034f0000000305500210000000000604043300000000065601cf000000000656022f000000000101043b0000010005500089000000000151022f00000000015101cf000000000161019f00000000001404350000006001b00210000002680000013d0000001f0530018f0000010506300198000000400200043d00000000046200190000025a0000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b0000023e0000c13d0000025a0000013d0000001f0530018f0000010506300198000000400200043d00000000046200190000025a0000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b0000024a0000c13d0000025a0000013d0000001f0530018f0000010506300198000000400200043d00000000046200190000025a0000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000002560000c13d000000000005004b000002670000613d000000000161034f0000000305500210000000000604043300000000065601cf000000000656022f000000000101043b0000010005500089000000000151022f00000000015101cf000000000161019f00000000001404350000006001300210000001030020009c00000103020080410000004002200210000000000112019f0000040a00010430000000000503041a000000ff0450018f000000000007004b000002ab0000c13d000000000004004b000002bf0000613d0000013502500197000000000023041b000000000061043500000040011002100000000002000414000001030020009c0000010302008041000000c002200210000000000112019f00000131011001c70000800d020000390000013304000041000002ba0000013d00000008015002100000010801100197000000000206041a0000011802200197000000000112019f000000000016041b000000000005004b0000005a0000613d000002bd0000013d0000000002000411000000000023004b000002cd0000c13d000001230300004100000000003404350000000003000414000000040020008c000002db0000c13d000000000b1400190000004000b0043f0000000006040433000001240300004100000000003b043500000000041b0019000000400040043f00000000030b0433000000000036004b000002bd0000813d00000125030000410000000000340435000200000004001d0000000403400039000300000005001d00000000005304350000000003000414000000040020008c0000034e0000c13d00000002020000290000000003210019000100000003001d000000400030043f00000003040000290000000005000411000003800000013d000000000004004b000002bf0000c13d000001350250019700000001022001bf000000000023041b000000000061043500000040011002100000000002000414000001030020009c0000010302008041000000c002200210000000000112019f00000131011001c70000800d020000390000013204000041040803fe0000040f0000000100200190000003f00000613d0000000001000019000004090001042e0000012003000041000000000031043500000084032001bf00000020040000390000000000430435000000c40320003900000134040000410000000000430435000000a40220003900000014030000390000000000320435000000400110021000000122011001c70000040a000104300000012002000041000000000024043500000084021001bf00000020030000390000000000320435000000c40210003900000121030000410000000000320435000000a40110003900000018020000390000000000210435000000400140021000000122011001c70000040a00010430000300000005001d000001030030009c0000010303008041000000c0013002100000004003400210000000000131019f0000011a011001c7000200000004001d040804030000040f00000060031002700000010303300197000000200030008c000000200400003900000000040340190000001f0640018f0000002007400190000000020b0000290000000205700029000002f40000613d000000000801034f00000000090b0019000000008a08043c0000000009a90436000000000059004b000002f00000c13d000000000006004b000003010000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000000000003001f0000000100200190000003420000613d0000001f01400039000000600110018f0000000004b10019000000400040043f000000200030008c0000000002000411000003f00000413d00000000010b0433000100000001001d000001240100004100000000001404350000000001000414000001030010009c0000010301008041000000c0011002100000004003400210000000000131019f0000011a011001c7000200000004001d040804030000040f00000060031002700000010303300197000000200030008c000000200400003900000000040340190000001f0640018f0000002007400190000000020b0000290000000205700029000003280000613d000000000801034f00000000090b0019000000008a08043c0000000009a90436000000000059004b000003240000c13d000000000006004b000003350000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000000000003001f0000000100200190000003b50000613d0000001f01400039000000600110018f0000000004b10019000000400040043f000000200030008c000000030500002900000000020004110000000106000029000002980000813d000003f00000013d0000001f0530018f0000010506300198000000400200043d00000000046200190000025a0000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000003490000c13d0000025a0000013d000001030030009c0000010303008041000000c00130021000000002020000290000004002200210000000000121019f00000126011001c70000000002000411040804030000040f00000060031002700000010303300197000000200030008c000000200400003900000000040340190000001f0640018f00000020074001900000000205700029000003660000613d000000000801034f0000000209000029000000008a08043c0000000009a90436000000000059004b000003620000c13d000000000006004b000003730000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000000000003001f0000000100200190000003a90000613d0000001f01400039000000600110018f00000002020000290000000004210019000100000004001d000000400040043f000000200030008c00000003040000290000000005000411000003f00000413d0000000002020433000000000002004b0000000003000039000000010300c039000000000032004b000003f00000c13d000000000002004b000002bd0000613d000001270200004100000001030000290000000000230435000000040230003900000000004204350000000002000414000000040050008c000003c10000c13d0000000101100029000000400010043f00000001020000290000000002020433000001060020009c000003f00000213d000000000002004b000002bd0000613d00000064021000390000012803000041000000000032043500000044021000390000012903000041000000000032043500000024021000390000002f0300003900000000003204350000012002000041000000000021043500000004021000390000002003000039000000000032043500000040011002100000012a011001c70000040a000104300000001f0530018f0000010506300198000000400200043d00000000046200190000025a0000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000003b00000c13d0000025a0000013d0000001f0530018f0000010506300198000000400200043d00000000046200190000025a0000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000003bc0000c13d0000025a0000013d000001030020009c0000010302008041000000c0012002100000000102000029000100000002001d0000004002200210000000000121019f00000126011001c70000000002000411040804030000040f00000060031002700000010303300197000000200030008c000000200400003900000000040340190000001f0640018f00000020074001900000000105700029000003da0000613d000000000801034f0000000109000029000000008a08043c0000000009a90436000000000059004b000003d60000c13d000000000006004b000003e70000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000000000003001f0000000100200190000003f20000613d0000001f01400039000000600110018f0000000101100029000000400010043f000000200030008c000003920000813d00000000010000190000040a000104300000001f0530018f0000010506300198000000400200043d00000000046200190000025a0000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000003f90000c13d0000025a0000013d00000401002104210000000102000039000000000001042d0000000002000019000000000001042d00000406002104230000000102000039000000000001042d0000000002000019000000000001042d0000040800000432000004090001042e0000040a00010430000000000000000000000000000000000000000000000000000000000000000000000000ffffffff00000000000000000000000000000000000000000000000000000001ffffffe000000000000000000000000000000000000000000000000000000000ffffffe0000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffff004f4bd3882cc84ab26defbbf72360f09a9747865338e4a7830f9bb151a78a8b700000000200000000000000000000000000000040000001000000000000000000000000000000000000000000000000000000000000000000000000008129fc1b00000000000000000000000000000000000000000000000000000000dd898b2e00000000000000000000000000000000000000000000000000000000dd898b2f00000000000000000000000000000000000000000000000000000000ed022ebd000000000000000000000000000000000000000000000000000000008129fc1c000000000000000000000000000000000000000000000000000000008ce516da0000000000000000000000000000000000000000000000000000000016c38b3c000000000000000000000000000000000000000000000000000000005c975abb000000000000000000000000000000000000000000000000000000005d1ca6310000000000000000000000000000000000000020000000800000000000000000c36dd7ea00000000000000000000000000000000000000000000000000000000241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b080000000000000000000000000000000000000044000000800000000000000000ffffffffffffffffffffff0000000000000000000000000000000000000000ffa4b914810000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000161a64a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004400000000000000000000000053e41c1e00000000000000000000000000000000000000000000000000000000f9b1ab390c070ccb3b4accce72179b5bd850923c230f607aab0d72b38699849b000000000000000000000000000000000000002400000080000000000000000008c379a000000000000000000000000000000000000000000000000000000000496e636f727265637420746f6b656e20636f6e747261637400000000000000000000000000000000000000000000000000000064000000000000000000000000a2309ff8000000000000000000000000000000000000000000000000000000004c0f38c2000000000000000000000000000000000000000000000000000000004f558e790000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000240000000000000000000000006352211e000000000000000000000000000000000000000000000000000000006c206d696e7420636f6d706c657465000000000000000000000000000000000043616e6e6f74207472616e736665722047696761526f6d4e465420756e74696c000000000000000000000000000000000000008400000000000000000000000047696761526f6d4e4654206e6f74207265676973746572656400000000000000fc425f2263d0df187444b70e47283d622c70181c5baebb1306a01edba1ce184c5c975abb000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000800000000000000000000000000000000000000000000000000000002000000000000000000000000065d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a020000000000000000000000000000000000002000000000000000000000000062e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2585db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa5061757361626c653a206e6f7420706175736564000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008d730e3648e195e6a5f3a9b8f4f2badd090cf8f6dd926542d4d5ca08458d7417
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000b5f84708957e5628c363709ae1d4cb346081fbf6
-----Decoded View---------------
Arg [0] : gameRegistryAddress (address): 0xb5f84708957E5628C363709AE1d4CB346081fbf6
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000b5f84708957e5628c363709ae1d4cb346081fbf6
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ 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.