Overview
APE Balance
APE Value
$0.00More Info
Private Name Tags
ContractCreator
Loading...
Loading
Contract Name:
NFTStats
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
Yes with 200 runs
Other Settings:
shanghai EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.20; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "./interfaces/INFTStats.sol"; import "./interfaces/ICollectionRegistry.sol"; /// @title NFTStats /// @notice Manages individual NFT stats, experience, and leveling contract NFTStats is INFTStats, Ownable { // Reference to the collection registry ICollectionRegistry public immutable collectionRegistry; // Mapping from collection address and token ID to its stats mapping(address => mapping(uint256 => NFTStatsData)) private nftStats; // Constants for XP and leveling uint256 private constant BASE_XP_PER_LEVEL = 100; uint256 private constant XP_MULTIPLIER = 150; // 150% increase per level uint256 private constant BASE_STAT_INCREASE_PERCENT = 5; // 5% increase per level uint256 private constant STARTING_LEVEL = 1; // Authorized contracts that can modify stats mapping(address => bool) private authorizedContracts; modifier onlyAuthorized() { require( msg.sender == owner() || authorizedContracts[msg.sender], "Not authorized" ); _; } constructor(address _collectionRegistry) Ownable(msg.sender) { require(_collectionRegistry != address(0), "Invalid registry address"); collectionRegistry = ICollectionRegistry(_collectionRegistry); } /// @notice Set authorization for a contract to modify stats /// @param contract_ Address of the contract /// @param authorized Whether the contract should be authorized function setContractAuthorization( address contract_, bool authorized ) external onlyOwner { require(contract_ != address(0), "Invalid contract address"); authorizedContracts[contract_] = authorized; } /// @notice Initialize stats for an NFT based on its collection's base stats /// @param collection Address of the NFT collection /// @param tokenId Token ID of the NFT function initializeStats( address collection, uint256 tokenId ) external onlyAuthorized { require( !nftStats[collection][tokenId].initialized, "Stats already initialized" ); require( collectionRegistry.isWhitelisted(collection), "Collection not whitelisted" ); // Verify NFT ownership try IERC721(collection).ownerOf(tokenId) returns (address) { // NFT exists, proceed with initialization } catch { revert("NFT does not exist"); } // Get base stats from collection registry ICollectionRegistry.CollectionStats memory baseStats = collectionRegistry.getCollectionStats( collection ); // Initialize NFT stats nftStats[collection][tokenId] = NFTStatsData({ hp: baseStats.baseHp, attack: baseStats.baseAttack, speed: baseStats.baseSpeed, level: STARTING_LEVEL, currentXP: 0, xpToNextLevel: getXPForNextLevel(STARTING_LEVEL), dungeonRuns: 0, successfulRuns: 0, roomsCleared: 0, initialized: true }); emit StatsInitialized( collection, tokenId, baseStats.baseHp, baseStats.baseAttack, baseStats.baseSpeed ); } /// @notice Award XP for dungeon progress /// @param collection Address of the NFT collection /// @param tokenId Token ID of the NFT /// @param xpAmount Amount of XP to award /// @param roomsCleared Number of rooms cleared in this run function awardXP( address collection, uint256 tokenId, uint256 xpAmount, uint256 roomsCleared ) external onlyAuthorized { require( nftStats[collection][tokenId].initialized, "Stats not initialized" ); NFTStatsData storage stats = nftStats[collection][tokenId]; // Single storage update for XP uint256 newXP = stats.currentXP + xpAmount; stats.currentXP = newXP; stats.roomsCleared += roomsCleared; emit XPGained(collection, tokenId, xpAmount, newXP); } /// @notice Process pending level ups for a character /// @param collection Address of the NFT collection /// @param tokenId Token ID of the NFT function levelUp(address collection, uint256 tokenId) external { require( nftStats[collection][tokenId].initialized, "Stats not initialized" ); NFTStatsData storage stats = nftStats[collection][tokenId]; uint256 currentXP = stats.currentXP; uint256 xpToNextLevel = stats.xpToNextLevel; uint256 currentLevel = stats.level; require(currentXP >= xpToNextLevel, "Insufficient XP"); // Calculate all level ups at once uint256 statMultiplier = 0; while (currentXP >= xpToNextLevel) { currentXP -= xpToNextLevel; currentLevel++; statMultiplier++; xpToNextLevel = getXPForNextLevel(currentLevel); } // Get base stats once uint256 baseHP = stats.hp; uint256 baseAttack = stats.attack; uint256 baseSpeed = stats.speed; // Calculate total stat increases uint256 totalHPIncrease = (baseHP * BASE_STAT_INCREASE_PERCENT * statMultiplier) / 100; uint256 totalAttackIncrease = (baseAttack * BASE_STAT_INCREASE_PERCENT * statMultiplier) / 100; uint256 totalSpeedIncrease = (baseSpeed * BASE_STAT_INCREASE_PERCENT * statMultiplier) / 100; // Apply all updates in one SSTORE each stats.hp = baseHP + totalHPIncrease; stats.attack = baseAttack + totalAttackIncrease; stats.speed = baseSpeed + totalSpeedIncrease; stats.level = currentLevel; stats.xpToNextLevel = xpToNextLevel; stats.currentXP = currentXP; emit LevelUp(collection, tokenId, stats.level); } /// @notice Record a dungeon run attempt /// @param collection Address of the NFT collection /// @param tokenId Token ID of the NFT /// @param success Whether the run was successful function recordRun( address collection, uint256 tokenId, bool success ) external onlyAuthorized { require( nftStats[collection][tokenId].initialized, "Stats not initialized" ); NFTStatsData storage stats = nftStats[collection][tokenId]; stats.dungeonRuns += 1; if (success) { stats.successfulRuns += 1; } emit RunRecorded( collection, tokenId, success, stats.roomsCleared, stats.currentXP ); } /// @notice Calculate XP required for next level /// @param currentLevel Current level of the NFT /// @return uint256 XP required for next level function getXPForNextLevel( uint256 currentLevel ) public pure returns (uint256) { return BASE_XP_PER_LEVEL * ((currentLevel * XP_MULTIPLIER) / 100); } /// @notice Get the stat increases for a level up /// @param collection Address of the NFT collection /// @param tokenId Token ID of the NFT /// @return hpIncrease Amount HP increases /// @return attackIncrease Amount Attack increases /// @return speedIncrease Amount Speed increases function getLevelUpStats( address collection, uint256 tokenId ) external view returns ( uint256 hpIncrease, uint256 attackIncrease, uint256 speedIncrease ) { require( nftStats[collection][tokenId].initialized, "Stats not initialized" ); return _calculateStatIncreases(nftStats[collection][tokenId]); } /// @notice Get current stats for an NFT /// @param collection Address of the NFT collection /// @param tokenId Token ID of the NFT /// @return NFTStatsData struct containing current stats function getStats( address collection, uint256 tokenId ) external view returns (NFTStatsData memory) { return nftStats[collection][tokenId]; } /// @notice Check if an NFT has been initialized /// @param collection Address of the NFT collection /// @param tokenId Token ID of the NFT /// @return bool True if NFT has been initialized function isInitialized( address collection, uint256 tokenId ) external view returns (bool) { return nftStats[collection][tokenId].initialized; } /// @notice Calculate stat increases for a level up /// @param stats Current stats of the NFT /// @return hpIncrease Amount HP increases /// @return attackIncrease Amount Attack increases /// @return speedIncrease Amount Speed increases function _calculateStatIncreases( NFTStatsData memory stats ) internal pure returns ( uint256 hpIncrease, uint256 attackIncrease, uint256 speedIncrease ) { hpIncrease = (stats.hp * BASE_STAT_INCREASE_PERCENT) / 100; attackIncrease = (stats.attack * BASE_STAT_INCREASE_PERCENT) / 100; speedIncrease = (stats.speed * BASE_STAT_INCREASE_PERCENT) / 100; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; import {Context} from "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * The initial owner is set to the address provided by the deployer. This can * later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// 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); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.20; /// @title INFTStats /// @notice Interface for managing individual NFT stats and progression interface INFTStats { /// @notice Structure for NFT permanent stats struct NFTStatsData { uint256 hp; uint256 attack; uint256 speed; uint256 level; uint256 currentXP; uint256 xpToNextLevel; uint256 dungeonRuns; uint256 successfulRuns; uint256 roomsCleared; bool initialized; } /// @notice Event emitted when an NFT's stats are initialized event StatsInitialized(address indexed collection, uint256 indexed tokenId, uint256 hp, uint256 attack, uint256 speed); /// @notice Event emitted when an NFT's stats are boosted event StatsBoosted(address indexed collection, uint256 indexed tokenId, uint256 newHp, uint256 newAttack, uint256 newSpeed); /// @notice Event emitted when XP is gained event XPGained(address indexed collection, uint256 indexed tokenId, uint256 xpGained, uint256 newTotalXP); /// @notice Event emitted when a level up occurs event LevelUp(address indexed collection, uint256 indexed tokenId, uint256 newLevel); /// @notice Event emitted when a run is recorded event RunRecorded(address indexed collection, uint256 indexed tokenId, bool success, uint256 roomsCleared, uint256 xpGained); /// @notice Initialize stats for an NFT based on its collection's base stats /// @param collection Address of the NFT collection /// @param tokenId Token ID of the NFT function initializeStats(address collection, uint256 tokenId) external; /// @notice Award XP for dungeon progress /// @param collection Address of the NFT collection /// @param tokenId Token ID of the NFT /// @param xpAmount Amount of XP to award /// @param roomsCleared Number of rooms cleared in this run function awardXP( address collection, uint256 tokenId, uint256 xpAmount, uint256 roomsCleared ) external; /// @notice Calculate XP required for next level /// @param currentLevel Current level of the NFT /// @return uint256 XP required for next level function getXPForNextLevel(uint256 currentLevel) external pure returns (uint256); /// @notice Get the stat increases for a level up /// @param collection Address of the NFT collection /// @param tokenId Token ID of the NFT /// @return hpIncrease Amount HP increases /// @return attackIncrease Amount Attack increases /// @return speedIncrease Amount Speed increases function getLevelUpStats( address collection, uint256 tokenId ) external view returns ( uint256 hpIncrease, uint256 attackIncrease, uint256 speedIncrease ); /// @notice Record a dungeon run attempt /// @param collection Address of the NFT collection /// @param tokenId Token ID of the NFT /// @param success Whether the run was successful function recordRun(address collection, uint256 tokenId, bool success) external; /// @notice Get current stats for an NFT /// @param collection Address of the NFT collection /// @param tokenId Token ID of the NFT /// @return NFTStatsData struct containing current stats function getStats(address collection, uint256 tokenId) external view returns (NFTStatsData memory); /// @notice Check if an NFT has been initialized /// @param collection Address of the NFT collection /// @param tokenId Token ID of the NFT /// @return bool True if NFT has been initialized function isInitialized(address collection, uint256 tokenId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.20; /// @title ICollectionRegistry /// @notice Interface for managing whitelisted NFT collections and their base stats interface ICollectionRegistry { /// @notice Stats structure for NFT collections struct CollectionStats { uint256 baseHp; uint256 baseAttack; uint256 baseSpeed; bool isWhitelisted; } /// @notice Event emitted when a collection is whitelisted event CollectionWhitelisted(address indexed collection, uint256 baseHp, uint256 baseAttack, uint256 baseSpeed); /// @notice Event emitted when a collection's stats are updated event CollectionStatsUpdated(address indexed collection, uint256 baseHp, uint256 baseAttack, uint256 baseSpeed); /// @notice Event emitted when a collection is removed from whitelist event CollectionRemoved(address indexed collection); /// @notice Whitelist a new NFT collection with base stats /// @param collection Address of the NFT collection /// @param baseHp Initial HP for NFTs from this collection /// @param baseAttack Initial Attack for NFTs from this collection /// @param baseSpeed Initial Speed for NFTs from this collection function whitelistCollection( address collection, uint256 baseHp, uint256 baseAttack, uint256 baseSpeed ) external; /// @notice Update base stats for a whitelisted collection /// @param collection Address of the NFT collection /// @param baseHp New base HP /// @param baseAttack New base Attack /// @param baseSpeed New base Speed function updateCollectionStats( address collection, uint256 baseHp, uint256 baseAttack, uint256 baseSpeed ) external; /// @notice Remove a collection from the whitelist /// @param collection Address of the NFT collection to remove function removeCollection(address collection) external; /// @notice Check if a collection is whitelisted /// @param collection Address of the NFT collection to check /// @return bool True if collection is whitelisted function isWhitelisted(address collection) external view returns (bool); /// @notice Get base stats for a collection /// @param collection Address of the NFT collection /// @return CollectionStats struct containing base stats function getCollectionStats(address collection) external view returns (CollectionStats memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// 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); }
{ "remappings": [ "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/", "@pythnetwork/entropy-sdk-solidity/=../node_modules/@pythnetwork/entropy-sdk-solidity/", "ds-test/=lib/forge-std/lib/ds-test/src/", "forge-std/=lib/forge-std/src/", "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/", "halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/", "openzeppelin-contracts/=lib/openzeppelin-contracts/", "pyth-sdk-solidity/=lib/pyth-sdk-solidity/" ], "optimizer": { "enabled": true, "runs": 200 }, "metadata": { "useLiteralContent": false, "bytecodeHash": "ipfs", "appendCBOR": true }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "shanghai", "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_collectionRegistry","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"collection","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newLevel","type":"uint256"}],"name":"LevelUp","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"collection","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"bool","name":"success","type":"bool"},{"indexed":false,"internalType":"uint256","name":"roomsCleared","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"xpGained","type":"uint256"}],"name":"RunRecorded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"collection","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newHp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newAttack","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newSpeed","type":"uint256"}],"name":"StatsBoosted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"collection","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"hp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"attack","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"speed","type":"uint256"}],"name":"StatsInitialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"collection","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"xpGained","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newTotalXP","type":"uint256"}],"name":"XPGained","type":"event"},{"inputs":[{"internalType":"address","name":"collection","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"xpAmount","type":"uint256"},{"internalType":"uint256","name":"roomsCleared","type":"uint256"}],"name":"awardXP","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"collectionRegistry","outputs":[{"internalType":"contract ICollectionRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getLevelUpStats","outputs":[{"internalType":"uint256","name":"hpIncrease","type":"uint256"},{"internalType":"uint256","name":"attackIncrease","type":"uint256"},{"internalType":"uint256","name":"speedIncrease","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getStats","outputs":[{"components":[{"internalType":"uint256","name":"hp","type":"uint256"},{"internalType":"uint256","name":"attack","type":"uint256"},{"internalType":"uint256","name":"speed","type":"uint256"},{"internalType":"uint256","name":"level","type":"uint256"},{"internalType":"uint256","name":"currentXP","type":"uint256"},{"internalType":"uint256","name":"xpToNextLevel","type":"uint256"},{"internalType":"uint256","name":"dungeonRuns","type":"uint256"},{"internalType":"uint256","name":"successfulRuns","type":"uint256"},{"internalType":"uint256","name":"roomsCleared","type":"uint256"},{"internalType":"bool","name":"initialized","type":"bool"}],"internalType":"struct INFTStats.NFTStatsData","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"currentLevel","type":"uint256"}],"name":"getXPForNextLevel","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"initializeStats","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isInitialized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"levelUp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"collection","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bool","name":"success","type":"bool"}],"name":"recordRun","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"contract_","type":"address"},{"internalType":"bool","name":"authorized","type":"bool"}],"name":"setContractAuthorization","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a060405234801561000f575f80fd5b5060405161135b38038061135b83398101604081905261002e91610114565b338061005457604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61005d816100c5565b506001600160a01b0381166100b45760405162461bcd60e51b815260206004820152601860248201527f496e76616c696420726567697374727920616464726573730000000000000000604482015260640161004b565b6001600160a01b0316608052610141565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610124575f80fd5b81516001600160a01b038116811461013a575f80fd5b9392505050565b6080516111f46101675f395f818161014e015281816109c10152610b3a01526111f45ff3fe608060405234801561000f575f80fd5b50600436106100cb575f3560e01c80638da5cb5b11610088578063b339311511610063578063b3393115146101f6578063ea682d8014610224578063f2fde38b14610237578063f60ccc861461024a575f80fd5b80638da5cb5b1461018857806391f6c65814610198578063994e4a19146101ab575f80fd5b806303685169146100cf5780630954c478146100f85780634220be231461010d578063546ef3951461012e578063715018a6146101415780638c7cc5e314610149575b5f80fd5b6100e26100dd366004610e9b565b61025d565b6040516100ef9190610ec5565b60405180910390f35b61010b610106366004610f3f565b610348565b005b61012061011b366004610f77565b61047e565b6040519081526020016100ef565b61010b61013c366004610e9b565b6104a1565b61010b6106a2565b6101707f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016100ef565b5f546001600160a01b0316610170565b61010b6101a6366004610f9b565b6106b5565b6101e66101b9366004610e9b565b6001600160a01b03919091165f908152600160209081526040808320938352929052206009015460ff1690565b60405190151581526020016100ef565b610209610204366004610e9b565b6107f6565b604080519384526020840192909252908201526060016100ef565b61010b610232366004610e9b565b6108ea565b61010b610245366004610fda565b610ce2565b61010b610258366004610ffc565b610d1f565b6102ab6040518061014001604052805f81526020015f81526020015f81526020015f81526020015f81526020015f81526020015f81526020015f81526020015f81526020015f151581525090565b506001600160a01b0382165f9081526001602081815260408084208585528252928390208351610140810185528154815292810154918301919091526002810154928201929092526003820154606082015260048201546080820152600582015460a0820152600682015460c0820152600782015460e0820152600882015461010082015260099091015460ff1615156101208201525b92915050565b5f546001600160a01b031633148061036e5750335f9081526002602052604090205460ff165b6103935760405162461bcd60e51b815260040161038a90611033565b60405180910390fd5b6001600160a01b0384165f90815260016020908152604080832086845290915290206009015460ff166103d85760405162461bcd60e51b815260040161038a9061105b565b6001600160a01b0384165f9081526001602090815260408083208684529091528120600481015490919061040d90859061109e565b905080826004018190555082826008015f82825461042b919061109e565b9091555050604080518581526020810183905286916001600160a01b038916917f1cfcc60a52168386067c020abab02289b7dee02c9a7e9690aeff3c3aa53e24a8910160405180910390a3505050505050565b5f606461048c6096846110b1565b61049691906110c8565b6103429060646110b1565b6001600160a01b0382165f90815260016020908152604080832084845290915290206009015460ff166104e65760405162461bcd60e51b815260040161038a9061105b565b6001600160a01b0382165f9081526001602090815260408083208484529091529020600481015460058201546003830154818310156105595760405162461bcd60e51b815260206004820152600f60248201526e0496e73756666696369656e7420585608c1b604482015260640161038a565b5f5b8284106105995761056c83856110e7565b935081610578816110fa565b9250508080610586906110fa565b9150506105928261047e565b925061055b565b8454600186015460028701545f6064856105b46005876110b1565b6105be91906110b1565b6105c891906110c8565b90505f6064866105d96005876110b1565b6105e391906110b1565b6105ed91906110c8565b90505f6064876105fe6005876110b1565b61060891906110b1565b61061291906110c8565b905061061e838761109e565b8b5561062a828661109e565b60018c0155610639818561109e565b60028c015560038b0188905560058b0189905560048b018a90556040518881528c906001600160a01b038f16907feec61667dd6eeecdccfef3c906e0fd047cca672804901ac4254d8545e9a426d49060200160405180910390a350505050505050505050505050565b6106aa610da7565b6106b35f610dd3565b565b5f546001600160a01b03163314806106db5750335f9081526002602052604090205460ff165b6106f75760405162461bcd60e51b815260040161038a90611033565b6001600160a01b0383165f90815260016020908152604080832085845290915290206009015460ff1661073c5760405162461bcd60e51b815260040161038a9061105b565b6001600160a01b0383165f90815260016020818152604080842086855290915282206006810180549193909161077390849061109e565b90915550508115610798576001816007015f828254610792919061109e565b90915550505b60088101546004820154604080518515158152602081019390935282015283906001600160a01b038616907fe6ce2da96a964985bd161cb1f6b383b07d1f2fed13aef14028de4503dfeb81d29060600160405180910390a350505050565b6001600160a01b0382165f9081526001602090815260408083208484529091528120600901548190819060ff1661083f5760405162461bcd60e51b815260040161038a9061105b565b6001600160a01b0385165f9081526001602081815260408084208885528252928390208351610140810185528154815292810154918301919091526002810154928201929092526003820154606082015260048201546080820152600582015460a0820152600682015460c0820152600782015460e0820152600882015461010082015260099091015460ff1615156101208201526108dd90610e22565b9250925092509250925092565b5f546001600160a01b03163314806109105750335f9081526002602052604090205460ff165b61092c5760405162461bcd60e51b815260040161038a90611033565b6001600160a01b0382165f90815260016020908152604080832084845290915290206009015460ff16156109a25760405162461bcd60e51b815260206004820152601960248201527f537461747320616c726561647920696e697469616c697a656400000000000000604482015260640161038a565b604051633af32abf60e01b81526001600160a01b0383811660048301527f00000000000000000000000000000000000000000000000000000000000000001690633af32abf90602401602060405180830381865afa158015610a06573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a2a9190611112565b610a765760405162461bcd60e51b815260206004820152601a60248201527f436f6c6c656374696f6e206e6f742077686974656c6973746564000000000000604482015260640161038a565b6040516331a9108f60e11b8152600481018290526001600160a01b03831690636352211e90602401602060405180830381865afa925050508015610ad7575060408051601f3d908101601f19168201909252610ad49181019061112d565b60015b610b185760405162461bcd60e51b815260206004820152601260248201527113919508191bd95cc81b9bdd08195e1a5cdd60721b604482015260640161038a565b50604051631cc6f28360e31b81526001600160a01b0383811660048301525f917f00000000000000000000000000000000000000000000000000000000000000009091169063e637941890602401608060405180830381865afa158015610b81573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ba59190611148565b9050604051806101400160405280825f015181526020018260200151815260200182604001518152602001600181526020015f8152602001610be7600161047e565b81525f602080830182905260408084018390526060808501849052600160809586018190526001600160a01b038a168086528185528386208a875285529483902087518155878501519181019190915586830151600282015586820151600382015594860151600486015560a0860151600586015560c0860151600686015560e086015160078601556101008601516008860155610120909501516009909401805460ff1916941515949094179093558451858201518685015185519283529282015292830152849290917f32c0a0e7ad6c4e9521aaa8ec2a134505ae98bfb6b39a618b287ae78b7aa22dd1910160405180910390a3505050565b610cea610da7565b6001600160a01b038116610d1357604051631e4fbdf760e01b81525f600482015260240161038a565b610d1c81610dd3565b50565b610d27610da7565b6001600160a01b038216610d7d5760405162461bcd60e51b815260206004820152601860248201527f496e76616c696420636f6e747261637420616464726573730000000000000000604482015260640161038a565b6001600160a01b03919091165f908152600260205260409020805460ff1916911515919091179055565b5f546001600160a01b031633146106b35760405163118cdaa760e01b815233600482015260240161038a565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f805f60646005855f0151610e3791906110b1565b610e4191906110c8565b9250606460058560200151610e5691906110b1565b610e6091906110c8565b9150606460058560400151610e7591906110b1565b610e7f91906110c8565b929491935050565b6001600160a01b0381168114610d1c575f80fd5b5f8060408385031215610eac575f80fd5b8235610eb781610e87565b946020939093013593505050565b5f61014082019050825182526020830151602083015260408301516040830152606083015160608301526080830151608083015260a083015160a083015260c083015160c083015260e083015160e083015261010080840151818401525061012080840151610f378285018215159052565b505092915050565b5f805f8060808587031215610f52575f80fd5b8435610f5d81610e87565b966020860135965060408601359560600135945092505050565b5f60208284031215610f87575f80fd5b5035919050565b8015158114610d1c575f80fd5b5f805f60608486031215610fad575f80fd5b8335610fb881610e87565b9250602084013591506040840135610fcf81610f8e565b809150509250925092565b5f60208284031215610fea575f80fd5b8135610ff581610e87565b9392505050565b5f806040838503121561100d575f80fd5b823561101881610e87565b9150602083013561102881610f8e565b809150509250929050565b6020808252600e908201526d139bdd08185d5d1a1bdc9a5e995960921b604082015260600190565b60208082526015908201527414dd185d1cc81b9bdd081a5b9a5d1a585b1a5e9959605a1b604082015260600190565b634e487b7160e01b5f52601160045260245ffd5b808201808211156103425761034261108a565b80820281158282048414176103425761034261108a565b5f826110e257634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156103425761034261108a565b5f6001820161110b5761110b61108a565b5060010190565b5f60208284031215611122575f80fd5b8151610ff581610f8e565b5f6020828403121561113d575f80fd5b8151610ff581610e87565b5f60808284031215611158575f80fd5b6040516080810181811067ffffffffffffffff8211171561118757634e487b7160e01b5f52604160045260245ffd5b806040525082518152602083015160208201526040830151604082015260608301516111b281610f8e565b6060820152939250505056fea26469706673582212206557191057186b709097af968f2d03ab185919c6b6e5e3d1ed4fbdae91d2cc9064736f6c63430008140033000000000000000000000000334ed6acc19858cf5e9da415298d071aae3a05e0
Deployed Bytecode
0x608060405234801561000f575f80fd5b50600436106100cb575f3560e01c80638da5cb5b11610088578063b339311511610063578063b3393115146101f6578063ea682d8014610224578063f2fde38b14610237578063f60ccc861461024a575f80fd5b80638da5cb5b1461018857806391f6c65814610198578063994e4a19146101ab575f80fd5b806303685169146100cf5780630954c478146100f85780634220be231461010d578063546ef3951461012e578063715018a6146101415780638c7cc5e314610149575b5f80fd5b6100e26100dd366004610e9b565b61025d565b6040516100ef9190610ec5565b60405180910390f35b61010b610106366004610f3f565b610348565b005b61012061011b366004610f77565b61047e565b6040519081526020016100ef565b61010b61013c366004610e9b565b6104a1565b61010b6106a2565b6101707f000000000000000000000000334ed6acc19858cf5e9da415298d071aae3a05e081565b6040516001600160a01b0390911681526020016100ef565b5f546001600160a01b0316610170565b61010b6101a6366004610f9b565b6106b5565b6101e66101b9366004610e9b565b6001600160a01b03919091165f908152600160209081526040808320938352929052206009015460ff1690565b60405190151581526020016100ef565b610209610204366004610e9b565b6107f6565b604080519384526020840192909252908201526060016100ef565b61010b610232366004610e9b565b6108ea565b61010b610245366004610fda565b610ce2565b61010b610258366004610ffc565b610d1f565b6102ab6040518061014001604052805f81526020015f81526020015f81526020015f81526020015f81526020015f81526020015f81526020015f81526020015f81526020015f151581525090565b506001600160a01b0382165f9081526001602081815260408084208585528252928390208351610140810185528154815292810154918301919091526002810154928201929092526003820154606082015260048201546080820152600582015460a0820152600682015460c0820152600782015460e0820152600882015461010082015260099091015460ff1615156101208201525b92915050565b5f546001600160a01b031633148061036e5750335f9081526002602052604090205460ff165b6103935760405162461bcd60e51b815260040161038a90611033565b60405180910390fd5b6001600160a01b0384165f90815260016020908152604080832086845290915290206009015460ff166103d85760405162461bcd60e51b815260040161038a9061105b565b6001600160a01b0384165f9081526001602090815260408083208684529091528120600481015490919061040d90859061109e565b905080826004018190555082826008015f82825461042b919061109e565b9091555050604080518581526020810183905286916001600160a01b038916917f1cfcc60a52168386067c020abab02289b7dee02c9a7e9690aeff3c3aa53e24a8910160405180910390a3505050505050565b5f606461048c6096846110b1565b61049691906110c8565b6103429060646110b1565b6001600160a01b0382165f90815260016020908152604080832084845290915290206009015460ff166104e65760405162461bcd60e51b815260040161038a9061105b565b6001600160a01b0382165f9081526001602090815260408083208484529091529020600481015460058201546003830154818310156105595760405162461bcd60e51b815260206004820152600f60248201526e0496e73756666696369656e7420585608c1b604482015260640161038a565b5f5b8284106105995761056c83856110e7565b935081610578816110fa565b9250508080610586906110fa565b9150506105928261047e565b925061055b565b8454600186015460028701545f6064856105b46005876110b1565b6105be91906110b1565b6105c891906110c8565b90505f6064866105d96005876110b1565b6105e391906110b1565b6105ed91906110c8565b90505f6064876105fe6005876110b1565b61060891906110b1565b61061291906110c8565b905061061e838761109e565b8b5561062a828661109e565b60018c0155610639818561109e565b60028c015560038b0188905560058b0189905560048b018a90556040518881528c906001600160a01b038f16907feec61667dd6eeecdccfef3c906e0fd047cca672804901ac4254d8545e9a426d49060200160405180910390a350505050505050505050505050565b6106aa610da7565b6106b35f610dd3565b565b5f546001600160a01b03163314806106db5750335f9081526002602052604090205460ff165b6106f75760405162461bcd60e51b815260040161038a90611033565b6001600160a01b0383165f90815260016020908152604080832085845290915290206009015460ff1661073c5760405162461bcd60e51b815260040161038a9061105b565b6001600160a01b0383165f90815260016020818152604080842086855290915282206006810180549193909161077390849061109e565b90915550508115610798576001816007015f828254610792919061109e565b90915550505b60088101546004820154604080518515158152602081019390935282015283906001600160a01b038616907fe6ce2da96a964985bd161cb1f6b383b07d1f2fed13aef14028de4503dfeb81d29060600160405180910390a350505050565b6001600160a01b0382165f9081526001602090815260408083208484529091528120600901548190819060ff1661083f5760405162461bcd60e51b815260040161038a9061105b565b6001600160a01b0385165f9081526001602081815260408084208885528252928390208351610140810185528154815292810154918301919091526002810154928201929092526003820154606082015260048201546080820152600582015460a0820152600682015460c0820152600782015460e0820152600882015461010082015260099091015460ff1615156101208201526108dd90610e22565b9250925092509250925092565b5f546001600160a01b03163314806109105750335f9081526002602052604090205460ff165b61092c5760405162461bcd60e51b815260040161038a90611033565b6001600160a01b0382165f90815260016020908152604080832084845290915290206009015460ff16156109a25760405162461bcd60e51b815260206004820152601960248201527f537461747320616c726561647920696e697469616c697a656400000000000000604482015260640161038a565b604051633af32abf60e01b81526001600160a01b0383811660048301527f000000000000000000000000334ed6acc19858cf5e9da415298d071aae3a05e01690633af32abf90602401602060405180830381865afa158015610a06573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a2a9190611112565b610a765760405162461bcd60e51b815260206004820152601a60248201527f436f6c6c656374696f6e206e6f742077686974656c6973746564000000000000604482015260640161038a565b6040516331a9108f60e11b8152600481018290526001600160a01b03831690636352211e90602401602060405180830381865afa925050508015610ad7575060408051601f3d908101601f19168201909252610ad49181019061112d565b60015b610b185760405162461bcd60e51b815260206004820152601260248201527113919508191bd95cc81b9bdd08195e1a5cdd60721b604482015260640161038a565b50604051631cc6f28360e31b81526001600160a01b0383811660048301525f917f000000000000000000000000334ed6acc19858cf5e9da415298d071aae3a05e09091169063e637941890602401608060405180830381865afa158015610b81573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ba59190611148565b9050604051806101400160405280825f015181526020018260200151815260200182604001518152602001600181526020015f8152602001610be7600161047e565b81525f602080830182905260408084018390526060808501849052600160809586018190526001600160a01b038a168086528185528386208a875285529483902087518155878501519181019190915586830151600282015586820151600382015594860151600486015560a0860151600586015560c0860151600686015560e086015160078601556101008601516008860155610120909501516009909401805460ff1916941515949094179093558451858201518685015185519283529282015292830152849290917f32c0a0e7ad6c4e9521aaa8ec2a134505ae98bfb6b39a618b287ae78b7aa22dd1910160405180910390a3505050565b610cea610da7565b6001600160a01b038116610d1357604051631e4fbdf760e01b81525f600482015260240161038a565b610d1c81610dd3565b50565b610d27610da7565b6001600160a01b038216610d7d5760405162461bcd60e51b815260206004820152601860248201527f496e76616c696420636f6e747261637420616464726573730000000000000000604482015260640161038a565b6001600160a01b03919091165f908152600260205260409020805460ff1916911515919091179055565b5f546001600160a01b031633146106b35760405163118cdaa760e01b815233600482015260240161038a565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f805f60646005855f0151610e3791906110b1565b610e4191906110c8565b9250606460058560200151610e5691906110b1565b610e6091906110c8565b9150606460058560400151610e7591906110b1565b610e7f91906110c8565b929491935050565b6001600160a01b0381168114610d1c575f80fd5b5f8060408385031215610eac575f80fd5b8235610eb781610e87565b946020939093013593505050565b5f61014082019050825182526020830151602083015260408301516040830152606083015160608301526080830151608083015260a083015160a083015260c083015160c083015260e083015160e083015261010080840151818401525061012080840151610f378285018215159052565b505092915050565b5f805f8060808587031215610f52575f80fd5b8435610f5d81610e87565b966020860135965060408601359560600135945092505050565b5f60208284031215610f87575f80fd5b5035919050565b8015158114610d1c575f80fd5b5f805f60608486031215610fad575f80fd5b8335610fb881610e87565b9250602084013591506040840135610fcf81610f8e565b809150509250925092565b5f60208284031215610fea575f80fd5b8135610ff581610e87565b9392505050565b5f806040838503121561100d575f80fd5b823561101881610e87565b9150602083013561102881610f8e565b809150509250929050565b6020808252600e908201526d139bdd08185d5d1a1bdc9a5e995960921b604082015260600190565b60208082526015908201527414dd185d1cc81b9bdd081a5b9a5d1a585b1a5e9959605a1b604082015260600190565b634e487b7160e01b5f52601160045260245ffd5b808201808211156103425761034261108a565b80820281158282048414176103425761034261108a565b5f826110e257634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156103425761034261108a565b5f6001820161110b5761110b61108a565b5060010190565b5f60208284031215611122575f80fd5b8151610ff581610f8e565b5f6020828403121561113d575f80fd5b8151610ff581610e87565b5f60808284031215611158575f80fd5b6040516080810181811067ffffffffffffffff8211171561118757634e487b7160e01b5f52604160045260245ffd5b806040525082518152602083015160208201526040830151604082015260608301516111b281610f8e565b6060820152939250505056fea26469706673582212206557191057186b709097af968f2d03ab185919c6b6e5e3d1ed4fbdae91d2cc9064736f6c63430008140033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000334ed6acc19858cf5e9da415298d071aae3a05e0
-----Decoded View---------------
Arg [0] : _collectionRegistry (address): 0x334eD6aCc19858cF5E9Da415298D071aaE3a05e0
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000334ed6acc19858cf5e9da415298d071aae3a05e0
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 35 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ 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.