Source Code
Overview
ETH Balance
0 ETH
More Info
ContractCreator
Multichain Info
N/A
Latest 25 internal transactions (View All)
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
5250251 | 3 days ago | 0 ETH | ||||
5250251 | 3 days ago | 0 ETH | ||||
5250251 | 3 days ago | 0 ETH | ||||
5250251 | 3 days ago | 0 ETH | ||||
5250251 | 3 days ago | 0 ETH | ||||
5250251 | 3 days ago | 0 ETH | ||||
4877719 | 8 days ago | 0 ETH | ||||
4877719 | 8 days ago | 0 ETH | ||||
4877719 | 8 days ago | 0 ETH | ||||
4877719 | 8 days ago | 0 ETH | ||||
4877719 | 8 days ago | 0 ETH | ||||
4877719 | 8 days ago | 0 ETH | ||||
4839505 | 9 days ago | 0 ETH | ||||
4839505 | 9 days ago | 0 ETH | ||||
4839505 | 9 days ago | 0 ETH | ||||
4839505 | 9 days ago | 0 ETH | ||||
4839505 | 9 days ago | 0 ETH | ||||
4839505 | 9 days ago | 0 ETH | ||||
4838945 | 9 days ago | 0 ETH | ||||
4838945 | 9 days ago | 0 ETH | ||||
4838945 | 9 days ago | 0 ETH | ||||
4838945 | 9 days ago | 0 ETH | ||||
4838945 | 9 days ago | 0 ETH | ||||
4838945 | 9 days ago | 0 ETH | ||||
4830400 | 9 days ago | 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:
GigaNoobNFTBeforeUpdateHandler
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 {IGigaNoobNFT} from "./IGigaNoobNFT.sol"; uint256 constant ID = uint256(keccak256("game.gigaverse.updateHandler.giganoobnft")); contract GigaNoobNFTBeforeUpdateHandler is IERC721UpdateHandler, GameRegistryConsumer { constructor(address gameRegistryAddress) GameRegistryConsumer(gameRegistryAddress, ID) { } /** * Before transfer hook for NFTs. Performs any trait checks needed before transfer * * @param tokenContract Address of the token contract * @param to Address of the recipient * @param tokenId Token ID */ function update( address tokenContract, address to, uint256 tokenId, address //auth ) external override { IAccountSystem accountSystem = IAccountSystem(_gameRegistry.getSystem(ACCOUNT_SYSTEM_ID)); IGigaNoobNFT gigaNoobNFT = IGigaNoobNFT(tokenContract); if (gigaNoobNFT.exists(tokenId)) { address prevOwner = gigaNoobNFT.ownerOf(tokenId); if (prevOwner != address(0) && accountSystem.getPlayerNoobId(prevOwner) == tokenId) { accountSystem.setPlayerNoob(prevOwner, 0); } } if (accountSystem.getPlayerNoobId(to) == 0) { accountSystem.setPlayerNoob(to, tokenId); } } }
// SPDX-License-Identifier: MIT LICENSE pragma solidity ^0.8.9; interface IERC721UpdateHandler { /** * Before transfer hook for NFTs. Performs any trait checks needed before transfer * * @param tokenContract Address of the token contract * @param to Address of the recipient * @param tokenId Token ID * @param auth Auth address */ function update( address tokenContract, address to, uint256 tokenId, address auth ) external; }
// SPDX-License-Identifier: MIT LICENSE pragma solidity ^0.8.13; import {ReentrancyGuard} from "@openzeppelin/contracts/utils/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) external payable; function mintWithGameItem(string memory _username) 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"; uint256 constant ID = uint256(keccak256("game.gigaverse.giganoobnft")); interface IGigaNoobNFT is IGameNFT { function mint(address to) external returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (utils/ReentrancyGuard.sol) pragma solidity ^0.8.20; /** * @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 EIP-1153 (transient storage) is available on the chain you're deploying at, * consider using {ReentrancyGuardTransient} instead. * * 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; /** * @dev Unauthorized reentrant call. */ error ReentrancyGuardReentrantCall(); 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 if (_status == ENTERED) { revert ReentrancyGuardReentrantCall(); } // 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; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == 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 (last updated v5.1.0) (utils/introspection/IERC165.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC-165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[ERC]. * * 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[ERC 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 // OpenZeppelin Contracts (last updated v5.1.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.20; import {IERC165} from "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC-721 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 ERC-721 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 ERC-721 * 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 address zero. * * 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": [ "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/", "@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/", "erc4626-tests/=lib/openzeppelin-contracts-upgradeable/lib/erc4626-tests/", "forge-std/=lib/forge-std/src/", "forge-zksync-std/=lib/forge-zksync-std/src/", "halmos-cheatcodes/=lib/openzeppelin-contracts-upgradeable/lib/halmos-cheatcodes/src/", "openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/", "openzeppelin-contracts/=lib/openzeppelin-contracts/" ], "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"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","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":"tokenContract","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"update","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
9c4d535b000000000000000000000000000000000000000000000000000000000000000001000157a29c96d43ed21688e84b8aaa582e9df622917ca7249862b0f19ce77300000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000020000000000000000000000000b5f84708957e5628c363709ae1d4cb346081fbf6
Deployed Bytecode
0x00010000000000020005000000000002000000600310027000000122033001970000000100200190000000370000c13d0000008002000039000000400020043f000000040030008c0000005a0000413d000000000201043b000000e0022002700000012a0020009c0000005c0000a13d0000012b0020009c0000006a0000213d0000012e0020009c000000800000613d0000012f0020009c0000005a0000c13d000000840030008c0000005a0000413d0000000002000416000000000002004b0000005a0000c13d0000000402100370000000000802043b000001250080009c0000005a0000213d0000002402100370000000000602043b000001250060009c0000005a0000213d0000004402100370000000000502043b0000006401100370000000000101043b000001250010009c0000005a0000213d0000000101000039000000000201041a0000013c01000041000000800010043f0000013d01000041000000840010043f000000000100041400000008022002700000012502200197000000040020008c000002190000c13d0000000003000031000000200030008c00000020040000390000000004034019000002430000013d0000000002000416000000000002004b0000005a0000c13d0000001f0230003900000123022001970000008002200039000000400020043f0000001f0430018f00000124053001980000008002500039000000480000613d0000008006000039000000000701034f000000007807043c0000000006860436000000000026004b000000440000c13d000000000004004b000000550000613d000000000151034f0000000304400210000000000502043300000000054501cf000000000545022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000151019f0000000000120435000000200030008c0000005a0000413d000000800100043d000001250010009c000000780000a13d00000000010000190000048600010430000001300020009c000000950000613d000001310020009c000000b30000613d000001320020009c0000005a0000c13d0000000001000416000000000001004b0000005a0000c13d0000000201000039000000000101041a000000800010043f0000013301000041000004850001042e0000012c0020009c000000c60000613d0000012d0020009c0000005a0000c13d0000000001000416000000000001004b0000005a0000c13d0000000101000039000000000101041a00000008011002700000012501100197000000800010043f0000013301000041000004850001042e0000000102000039000000000020041b000000000001004b000000e10000c13d0000013801000041000000000010043f000001390100004100000486000104300000000001000416000000000001004b0000005a0000c13d0000000101000039000000000201041a0000013401000041000000800010043f0000014901000041000000840010043f0000000005000411000000a40050043f000000000100041400000008022002700000012502200197000000040020008c000000f00000c13d0000000003000031000000200030008c00000020040000390000000004034019000001150000013d000000240030008c0000005a0000413d0000000002000416000000000002004b0000005a0000c13d0000000401100370000000000701043b000000000007004b0000000001000039000000010100c039000000000017004b0000005a0000c13d0000000103000039000000000203041a0000013401000041000000800010043f0000014d01000041000000840010043f0000000006000411000000a40060043f000000000100041400000008022002700000012502200197000000040020008c000001300000c13d000000000b0000310000002000b0008c000000200400003900000000040b4019000001580000013d0000000001000416000000000001004b0000005a0000c13d0000000102000039000000000302041a000000ff003001900000012a0000c13d0000014a01000041000000800010043f000000000100041400000008023002700000012502200197000000040020008c0000016d0000c13d0000000003000031000000200030008c00000020040000390000000004034019000001910000013d000000240030008c0000005a0000413d0000000002000416000000000002004b0000005a0000c13d0000000401100370000000000501043b000001250050009c0000005a0000213d0000000106000039000000000206041a0000013401000041000000800010043f0000013501000041000000840010043f0000000007000411000000a40070043f000000000100041400000008022002700000012502200197000000040020008c0000019e0000c13d0000000003000031000000200030008c00000020040000390000000004034019000001c60000013d000000000302041a000001260330019700000008011002100000012701100197000000000131019f00000001011001bf000000000012041b00000128010000410000000202000039000000000012041b0000002001000039000001000010044300000120000004430000012901000041000004850001042e000001220010009c0000012201008041000000c00110021000000136011001c70484047f0000040f00000060031002700000012203300197000000200030008c000000200400003900000000040340190000001f0640018f000000200740019000000080057001bf000001040000613d0000008008000039000000000901034f000000009a09043c0000000008a80436000000000058004b000001000000c13d000000000006004b000001110000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000000000003001f0000000100200190000001db0000613d00000000050004110000001f01400039000000600110018f00000080011001bf000000400010043f000000200030008c0000005a0000413d000000800100043d000000000001004b0000000002000039000000010200c039000000000021004b0000005a0000c13d000000000001004b000002a20000c13d0000013a01000041000000000010043f000000040050043f0000014901000041000000240010043f0000013b0100004100000486000104300000008001000039000000010220018f000000000021043500000040011002100000014c011001c7000004850001042e000500000007001d000001220010009c0000012201008041000000c00110021000000136011001c70484047f0000040f0000006003100270000001220b3001970000002000b0008c000000200400003900000000040b40190000001f0640018f000000200740019000000080057001bf000001450000613d0000008008000039000000000901034f000000009a09043c0000000008a80436000000000058004b000001410000c13d000000000006004b000001520000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f000000000065043500000000000b001f0000000100200190000001e70000613d0000000103000039000000000600041100000005070000290000001f01400039000000600210018f00000080012001bf000000400010043f0000002000b0008c0000005a0000413d000000800500043d000000000005004b0000000004000039000000010400c039000000000045004b0000005a0000c13d000000000005004b000002560000c13d0000013a01000041000000000010043f000000040060043f0000014d01000041000000240010043f0000013b010000410000048600010430000001220010009c0000012201008041000000c0011002100000014b011001c70484047f0000040f00000060031002700000012203300197000000200030008c000000200400003900000000040340190000001f0640018f000000200740019000000080057001bf000001810000613d0000008008000039000000000901034f000000009a09043c0000000008a80436000000000058004b0000017d0000c13d000000000006004b0000018e0000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000000000003001f0000000100200190000002010000613d0000001f01400039000000600110018f00000080011001bf000000400010043f000000200030008c0000005a0000413d000000800300043d000000000003004b0000000002000039000000010200c039000000000023004b0000005a0000c13d0000012b0000013d000500000005001d000001220010009c0000012201008041000000c00110021000000136011001c70484047f0000040f000000800a00003900000060031002700000012203300197000000200030008c000000200400003900000000040340190000001f0640018f000000200740019000000080057001bf000001b30000613d000000000801034f000000008908043c000000000a9a043600000000005a004b000001af0000c13d000000000006004b000001c00000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000000000003001f00000001002001900000020d0000613d0000000505000029000000010600003900000000070004110000001f01400039000000600110018f00000080011001bf000000400010043f000000200030008c0000005a0000413d000000800100043d000000000001004b0000000002000039000000010200c039000000000021004b0000005a0000c13d000000000001004b000002690000c13d0000013a01000041000000000010043f000000040070043f0000013501000041000000240010043f0000013b0100004100000486000104300000001f0530018f0000012406300198000000400200043d00000000046200190000027d0000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000001e20000c13d0000027d0000013d0000001f05b0018f0000012406b00198000000400200043d0000000004620019000001f20000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000001ee0000c13d000000000005004b000001ff0000613d000000000161034f0000000305500210000000000604043300000000065601cf000000000656022f000000000101043b0000010005500089000000000151022f00000000015101cf000000000161019f00000000001404350000006001b002100000028b0000013d0000001f0530018f0000012406300198000000400200043d00000000046200190000027d0000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000002080000c13d0000027d0000013d0000001f0530018f0000012406300198000000400200043d00000000046200190000027d0000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000002140000c13d0000027d0000013d000500000008001d000400000006001d000300000005001d000001220010009c0000012201008041000000c0011002100000013e011001c70484047f0000040f00000060031002700000012203300197000000200030008c000000200400003900000000040340190000001f0640018f000000200740019000000080057001bf000002300000613d0000008008000039000000000901034f000000009a09043c0000000008a80436000000000058004b0000022c0000c13d000000000006004b0000023d0000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000000000003001f00000001002001900000000508000029000002720000613d000000030500002900000004060000290000001f01400039000000600110018f000000800b1001bf0000004000b0043f000000200030008c0000005a0000413d000000800400043d000001250040009c0000005a0000213d0000013f0200004100000000002b043500000084021001bf00000000005204350000000002000414000000040080008c000002b20000c13d00000000071b0019000000400070043f000002e90000013d000000000503041a000000ff0450018f000000000007004b000002900000c13d000000000004004b000002a40000613d0000015402500197000000000023041b000000000061043500000040011002100000000002000414000001220020009c0000012202008041000000c002200210000000000112019f0000014e011001c70000800d0200003900000150040000410000029f0000013d00000008015002100000012701100197000000000206041a0000013702200197000000000112019f000000000016041b000000000005004b0000007c0000613d000002a20000013d0000001f0530018f0000012406300198000000400200043d00000000046200190000027d0000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000002790000c13d000000000005004b0000028a0000613d000000000161034f0000000305500210000000000604043300000000065601cf000000000656022f000000000101043b0000010005500089000000000151022f00000000015101cf000000000161019f00000000001404350000006001300210000001220020009c00000122020080410000004002200210000000000112019f0000048600010430000000000004004b000002a40000c13d000001540250019700000001022001bf000000000023041b000000000061043500000040011002100000000002000414000001220020009c0000012202008041000000c002200210000000000112019f0000014e011001c70000800d020000390000014f040000410484047a0000040f00000001002001900000005a0000613d0000000001000019000004850001042e0000015103000041000000000031043500000084032001bf00000020040000390000000000430435000000c40320003900000152040000410000000000430435000000a40220003900000014030000390000000000320435000000400110021000000153011001c70000048600010430000400000006001d000200000004001d000300000005001d000001220020009c0000012202008041000000c0012002100000004002b00210000000000121019f00000140011001c7000500000008001d000000000208001900010000000b001d0484047f0000040f000000010b00002900000060031002700000012203300197000000200030008c000000200400003900000000040340190000001f0640018f000000200740019000000000057b0019000002cf0000613d000000000801034f00000000090b0019000000008a08043c0000000009a90436000000000059004b000002cb0000c13d000000000006004b000002dc0000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000000000003001f0000000100200190000003050000613d0000001f01400039000000600110018f0000000007b10019000000400070043f000000200030008c00000003050000290000000204000029000000040600002900000005080000290000005a0000413d00000000020b0433000000000002004b0000000003000039000000010300c039000000000032004b0000005a0000c13d000400000006001d000200000004001d000000000002004b000300000005001d000003110000c13d0000000401000029000001250210019700000142010000410000000000170435000500000007001d0000000401700039000400000002001d000000000021043500000000010004140000000202000029000000040020008c000003250000c13d0000000003000031000000200030008c000000200400003900000000040340190000034f0000013d0000001f0530018f0000012406300198000000400200043d00000000046200190000027d0000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b0000030c0000c13d0000027d0000013d00000141020000410000000000270435000500000007001d00000004027001bf00000000005204350000000003000414000000040080008c0000035a0000c13d00000005020000290000000003210019000100000003001d000000400030043f0000000002020433000500000002001d000001250020009c0000005a0000213d000000050000006b000003de0000c13d0000000107000029000002f40000013d0000000502000029000001220020009c00000122020080410000004002200210000001220010009c0000012201008041000000c001100210000000000121019f00000140011001c700000002020000290484047f0000040f00000060031002700000012203300197000000200030008c000000200400003900000000040340190000001f0640018f000000200740019000000005057000290000033f0000613d000000000801034f0000000509000029000000008a08043c0000000009a90436000000000059004b0000033b0000c13d000000000006004b0000034c0000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000000000003001f0000000100200190000003c60000613d0000001f01400039000000600110018f0000000501100029000001470010009c0000038b0000a13d0000014801000041000000000010043f0000004101000039000000040010043f000001400100004100000486000104300000000002080019000001220030009c0000012203008041000000c00130021000000005030000290000004003300210000000000113019f00000140011001c70484047f0000040f00000060031002700000012203300197000000200030008c000000200400003900000000040340190000001f0640018f00000020074001900000000505700029000003720000613d000000000801034f0000000509000029000000008a08043c0000000009a90436000000000059004b0000036e0000c13d000000000006004b0000037f0000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000000000003001f0000000100200190000003d20000613d0000001f01400039000000600110018f00000005020000290000000004210019000100000004001d000000400040043f000000200030008c0000005a0000413d0000031d0000013d000000400010043f000000200030008c000000020300002900000005010000290000005a0000413d0000000001010433000000000001004b000002a20000c13d0000014301000041000000000010044300000004003004430000000001000414000001220010009c0000012201008041000000c00110021000000144011001c700008002020000390484047f0000040f0000000100200190000004520000613d000000000101043b000000000001004b000000030200002900000002030000290000005a0000613d000000400400043d0000002401400039000000000021043500000145010000410000000000140435000500000004001d0000000401400039000000040200002900000000002104350000000001000414000000040030008c000003bf0000613d0000000502000029000001220020009c00000122020080410000004002200210000001220010009c0000012201008041000000c001100210000000000121019f0000013b011001c700000002020000290484047a0000040f0000006003100270000001220030019d00000001002001900000045f0000613d0000000501000029000001470010009c000003540000213d0000000501000029000000400010043f0000000001000019000004850001042e0000001f0530018f0000012406300198000000400200043d00000000046200190000027d0000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000003cd0000c13d0000027d0000013d0000001f0530018f0000012406300198000000400200043d00000000046200190000027d0000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000003d90000c13d0000027d0000013d00000142020000410000000103000029000000000023043500000004023000390000000503000029000000000032043500000000020004140000000203000029000000040030008c000003ec0000c13d0000000107100029000000400070043f00000003020000290000041c0000013d000001220020009c0000012202008041000000c0012002100000000102000029000100000002001d0000004002200210000000000112019f00000140011001c700000002020000290484047f0000040f00000060031002700000012203300197000000200030008c000000200400003900000000040340190000001f0640018f00000020074001900000000105700029000004050000613d000000000801034f0000000109000029000000008a08043c0000000009a90436000000000059004b000004010000c13d000000000006004b000004120000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f0000000000650435000000000003001f0000000100200190000004530000613d0000001f01400039000000600110018f0000000107100029000000400070043f000000200030008c00000003020000290000005a0000413d00000001010000290000000001010433000000000021004b000002f40000c13d00000143010000410000000000100443000000020100002900000004001004430000000001000414000001220010009c0000012201008041000000c00110021000000144011001c700008002020000390484047f0000040f0000000100200190000004520000613d000000000101043b000000000001004b00000002020000290000005a0000613d000000400300043d00000145010000410000000000130435000000040130003900000005040000290000000000410435000500000003001d000000240130003900000000000104350000000001000414000000040020008c0000044c0000613d0000000502000029000001220020009c00000122020080410000004002200210000001220010009c0000012201008041000000c001100210000000000121019f0000013b011001c700000002020000290484047a0000040f0000006003100270000001220030019d00000001002001900000046c0000613d0000000501000029000001460010009c000003540000813d0000000507000029000000400070043f000002f40000013d000000000001042f0000001f0530018f0000012406300198000000400200043d00000000046200190000027d0000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b0000045a0000c13d0000027d0000013d00000122033001970000001f0530018f0000012406300198000000400200043d00000000046200190000027d0000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000004670000c13d0000027d0000013d00000122033001970000001f0530018f0000012406300198000000400200043d00000000046200190000027d0000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000004740000c13d0000027d0000013d000000000001042f0000047d002104210000000102000039000000000001042d0000000002000019000000000001042d00000482002104230000000102000039000000000001042d0000000002000019000000000001042d0000048400000432000004850001042e0000048600010430000000000000000000000000000000000000000000000000000000000000000000000000ffffffff00000000000000000000000000000000000000000000000000000001ffffffe000000000000000000000000000000000000000000000000000000000ffffffe0000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffff00cb044bd389e77a416189cc5cce54b725db66a4d2d5cefbdee9c2c37e4f50de4d0000000200000000000000000000000000000040000001000000000000000000000000000000000000000000000000000000000000000000000000008129fc1b00000000000000000000000000000000000000000000000000000000dd898b2e00000000000000000000000000000000000000000000000000000000dd898b2f00000000000000000000000000000000000000000000000000000000ed022ebd000000000000000000000000000000000000000000000000000000008129fc1c00000000000000000000000000000000000000000000000000000000cdcba5b50000000000000000000000000000000000000000000000000000000016c38b3c000000000000000000000000000000000000000000000000000000005c975abb000000000000000000000000000000000000000000000000000000005d1ca6310000000000000000000000000000000000000020000000800000000000000000c36dd7ea00000000000000000000000000000000000000000000000000000000241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b080000000000000000000000000000000000000044000000800000000000000000ffffffffffffffffffffff0000000000000000000000000000000000000000ffa4b914810000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000161a64a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004400000000000000000000000053e41c1e0000000000000000000000000000000000000000000000000000000021ca133936d4563655fffbb8a80562871d737bffbe741fdcca6f8efef7a2463700000000000000000000000000000000000000240000008000000000000000004f558e790000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000240000000000000000000000006352211e000000000000000000000000000000000000000000000000000000000253341a000000000000000000000000000000000000000000000000000000001806aa1896bbf26568e884a7374b41e002500962caba6a15023a8d90e8508b8302000002000000000000000000000000000000240000000000000000000000006b207561000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000ffffffffffffffff4e487b7100000000000000000000000000000000000000000000000000000000fc425f2263d0df187444b70e47283d622c70181c5baebb1306a01edba1ce184c5c975abb000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000800000000000000000000000000000000000000000000000000000002000000000000000000000000065d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a020000000000000000000000000000000000002000000000000000000000000062e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2585db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa08c379a0000000000000000000000000000000000000000000000000000000005061757361626c653a206e6f74207061757365640000000000000000000000000000000000000000000000000000000000000064000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000000000000000000000000000000000000000000000000000000000000000000af16526ffe96d404d12cd2a51b369ca9443ae7b5498383b484d60f637146e320
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.