S Price: $0.067346 (+2.48%)
Gas: 55 Gwei

Contract

0x75CB5D3dfe1dB6dD7ba203Ed9C10C0C99d350628

Overview

S Balance

Sonic LogoSonic LogoSonic Logo0 S

S Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Block
From
To
Generate Stats W...311972312025-06-01 22:21:41238 days ago1748816501IN
0x75CB5D3d...99d350628
0 S0.0076038650.0001
Generate Stats311962062025-06-01 22:15:23238 days ago1748816123IN
0x75CB5D3d...99d350628
0 S0.0081985650.0001
Generate Stats311896782025-06-01 21:30:44238 days ago1748813444IN
0x75CB5D3d...99d350628
0 S0.0081985650.0001
Generate Stats311846052025-06-01 20:55:50238 days ago1748811350IN
0x75CB5D3d...99d350628
0 S0.0081985650.0001
0xb96e4226311840372025-06-01 20:52:15238 days ago1748811135IN
0x75CB5D3d...99d350628
0 S0.003465750.0001
0xb96e4226311833142025-06-01 20:47:43239 days ago1748810863IN
0x75CB5D3d...99d350628
0 S0.003465750.0001
Generate Stats W...311765322025-06-01 20:02:12239 days ago1748808132IN
0x75CB5D3d...99d350628
0 S0.0076038550
Generate Stats200558612025-04-13 22:10:01287 days ago1744582201IN
0x75CB5D3d...99d350628
0 S0.0065217150.0001
Generate Stats W...200556482025-04-13 22:08:52287 days ago1744582132IN
0x75CB5D3d...99d350628
0 S0.0080678650.0001
Generate Stats200333222025-04-13 19:59:30288 days ago1744574370IN
0x75CB5D3d...99d350628
0 S0.0065217150.0001
Generate Stats W...200034062025-04-13 16:22:23288 days ago1744561343IN
0x75CB5D3d...99d350628
0 S0.0080678650.0001
Generate Stats W...200027852025-04-13 16:16:47288 days ago1744561007IN
0x75CB5D3d...99d350628
0 S0.0080678650.0001
Generate Stats W...200016682025-04-13 16:07:06288 days ago1744560426IN
0x75CB5D3d...99d350628
0 S0.0119247250.0001
Generate Stats W...200009062025-04-13 16:01:21288 days ago1744560081IN
0x75CB5D3d...99d350628
0 S0.0169247350.0001
Generate Stats W...199995332025-04-13 15:49:35288 days ago1744559375IN
0x75CB5D3d...99d350628
0 S0.0169247350.0001
Generate Stats W...199994732025-04-13 15:49:07288 days ago1744559347IN
0x75CB5D3d...99d350628
0 S0.0169247350.0001
Generate Stats W...199906842025-04-13 14:41:09288 days ago1744555269IN
0x75CB5D3d...99d350628
0 S0.0169247350.0001
Generate Stats W...199879572025-04-13 14:19:25288 days ago1744553965IN
0x75CB5D3d...99d350628
0 S0.0169247350.0001
Generate Stats199872112025-04-13 14:14:27288 days ago1744553667IN
0x75CB5D3d...99d350628
0 S0.0065217150.0001
Generate Stats199854032025-04-13 14:02:12288 days ago1744552932IN
0x75CB5D3d...99d350628
0 S0.0065217150.0001
Generate Stats199844052025-04-13 13:56:07288 days ago1744552567IN
0x75CB5D3d...99d350628
0 S0.0065217150.0001
Generate Stats W...199843822025-04-13 13:55:54288 days ago1744552554IN
0x75CB5D3d...99d350628
0 S0.0169247350.0001
Generate Stats W...199843502025-04-13 13:55:37288 days ago1744552537IN
0x75CB5D3d...99d350628
0 S0.0169247350.0001
Generate Stats W...199842192025-04-13 13:54:38288 days ago1744552478IN
0x75CB5D3d...99d350628
0 S0.0169247350.0001
Generate Stats199757122025-04-13 12:48:22288 days ago1744548502IN
0x75CB5D3d...99d350628
0 S0.0065217150.0001
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Cross-Chain Transactions
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0xd8DCCA60...5e45E1401
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
PixlDogsGameplayMechanicsV8

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion

Contract Source Code (Solidity Standard Json-Input format)

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./interfaces/IPixlDogsNFT.sol";
import "./interfaces/ITraitRegistry.sol";
import "./interfaces/IPixlDogsGameplayMechanics.sol";

/**
 * @title PixlDogsGameplayMechanicsV8
 * @dev Manages dog stats and gameplay mechanics for PixlDogs with updatable configuration
 */
contract PixlDogsGameplayMechanicsV8 is IPixlDogsGameplayMechanics, Ownable(msg.sender) {
    IPixlDogsNFT public pixlDogs;
    ITraitRegistry public traitRegistry;
    IERC20 public eckkoToken;
    
    // Burn address for ECKKO tokens
    address public burnAddress;
    
    // Amount of ECKKO required to generate stats
    uint256 public eckkoGeneratePrice;

    struct TrainingRecord {
        uint256 totalTrained;
        uint256 lastTrained;
    }

    mapping(uint256 => TrainingRecord) public trainingStats;
    mapping(uint256 => GameplayStats) public dogStats;
    mapping(uint256 => bool) public statsUnlocked;
    
    event StatsGenerated(address indexed owner, uint256 tokenId, uint256 seed);
    event StatsGeneratedWithEckko(address indexed owner, uint256 tokenId, uint256 eckkoAmount);
    event GameNftUpdated(address oldNft, address newNft);
    event EckkoTokenUpdated(address oldToken, address newToken);
    event TraitRegistryUpdated(address oldRegistry, address newRegistry);
    event BurnAddressUpdated(address oldAddress, address newAddress);
    event EckkoPriceUpdated(uint256 oldPrice, uint256 newPrice);

    constructor(address _pixlDogs, address _traitRegistry, address _eckkoToken) {
        pixlDogs = IPixlDogsNFT(_pixlDogs);
        traitRegistry = ITraitRegistry(_traitRegistry);
        eckkoToken = IERC20(_eckkoToken);
        burnAddress = 0x000000000000000000000000000000000000dEaD;
        eckkoGeneratePrice = 1_000_000 * 1e18; // 1M ECKKO
    }

    /**
     * @dev Update the NFT contract address
     * @param _newNft New NFT contract address
     */
    function setGameNft(address _newNft) external onlyOwner {
        require(_newNft != address(0), "Invalid address");
        address oldNft = address(pixlDogs);
        pixlDogs = IPixlDogsNFT(_newNft);
        emit GameNftUpdated(oldNft, _newNft);
    }
    
    /**
     * @dev Update the trait registry contract address
     * @param _newRegistry New trait registry contract address
     */
    function setTraitRegistry(address _newRegistry) external onlyOwner {
        require(_newRegistry != address(0), "Invalid address");
        address oldRegistry = address(traitRegistry);
        traitRegistry = ITraitRegistry(_newRegistry);
        emit TraitRegistryUpdated(oldRegistry, _newRegistry);
    }
    
    /**
     * @dev Update the ECKKO token contract address
     * @param _newToken New ECKKO token contract address
     */
    function setEckkoToken(address _newToken) external onlyOwner {
        require(_newToken != address(0), "Invalid address");
        address oldToken = address(eckkoToken);
        eckkoToken = IERC20(_newToken);
        emit EckkoTokenUpdated(oldToken, _newToken);
    }
    
    /**
     * @dev Update the burn address for ECKKO tokens
     * @param _newBurnAddress New burn address
     */
    function setBurnAddress(address _newBurnAddress) external onlyOwner {
        require(_newBurnAddress != address(0), "Invalid address");
        address oldBurnAddress = burnAddress;
        burnAddress = _newBurnAddress;
        emit BurnAddressUpdated(oldBurnAddress, _newBurnAddress);
    }
    
    /**
     * @dev Update the ECKKO price for generating stats
     * @param _newPrice New ECKKO price
     */
    function setEckkoGeneratePrice(uint256 _newPrice) external onlyOwner {
        require(_newPrice > 0, "Invalid price");
        uint256 oldPrice = eckkoGeneratePrice;
        eckkoGeneratePrice = _newPrice;
        emit EckkoPriceUpdated(oldPrice, _newPrice);
    }
    
    /**
     * @dev Get the configured NFT contract address
     */
    function getGameNft() external view returns (address) {
        return address(pixlDogs);
    }

    /**
     * @dev Returns the dog's gameplay stats
     */
    function getDogStats(uint256 tokenId) external view override returns (GameplayStats memory) {
        require(_exists(tokenId), "Token does not exist");
        
        if (statsUnlocked[tokenId]) {
            return dogStats[tokenId];
        } else {
            // Return default stats
            return GameplayStats({
                endurance: 50,
                agility: 50,
                healthScore: 50,
                fetchSkill: 50,
                baseSpeed: 50,
                luck: 50,
                happinessScore: 50,
                treasureSense: 50,
                potential: 50,
                eckkoTraining: 0,
                pixldPower: 0,
                lastTrainedAt: 0,
                statsGenerated: false
            });
        }
    }

    /**
     * @dev Checks if a dog's stats have been unlocked
     */
    function areStatsUnlocked(uint256 tokenId) external view override returns (bool) {
        return statsUnlocked[tokenId];
    }

    /**
     * @dev Generate dog stats by burning ECKKO tokens
     * @param tokenId The ID of the dog token
     */
    function generateStatsWithEckko(uint256 tokenId) external {
        require(_exists(tokenId), "Token does not exist");
        require(!statsUnlocked[tokenId], "Stats already generated");
        require(pixlDogs.ownerOf(tokenId) == msg.sender, "Not the dog owner");
        
        // Check if user has approved the contract to spend their ECKKO
        require(eckkoToken.allowance(msg.sender, address(this)) >= eckkoGeneratePrice, 
                "Insufficient ECKKO allowance");
        
        // Check if user has enough ECKKO balance
        require(eckkoToken.balanceOf(msg.sender) >= eckkoGeneratePrice, 
                "Insufficient ECKKO balance");
        
        // Transfer ECKKO tokens directly to burn address
        require(eckkoToken.transferFrom(msg.sender, burnAddress, eckkoGeneratePrice), 
                "ECKKO transfer to burn address failed");
        
        // Generate pseudo-random seed from transaction data
        uint256 seed = uint256(keccak256(abi.encodePacked(
            block.timestamp, 
            block.prevrandao,
            msg.sender,
            tokenId
        )));
        
        // Generate stats with a higher range (45-75) for ECKKO users
        uint256 rand = uint256(keccak256(abi.encodePacked(seed)));
        
        // Generate stats between 45-75 based on the random value (slightly better than regular generation)
        dogStats[tokenId] = GameplayStats({
            endurance: uint16(45 + (rand % 31)),
            agility: uint16(45 + ((rand >> 8) % 31)),
            healthScore: uint16(45 + ((rand >> 16) % 31)),
            fetchSkill: uint16(45 + ((rand >> 24) % 31)),
            baseSpeed: uint16(45 + ((rand >> 32) % 31)),
            luck: uint16(45 + ((rand >> 40) % 31)),
            happinessScore: uint16(45 + ((rand >> 48) % 31)),
            treasureSense: uint16(45 + ((rand >> 56) % 31)),
            potential: uint16(45 + ((rand >> 64) % 31)),
            eckkoTraining: 5, // Start with some ECKKO training as a bonus
            pixldPower: 0,
            lastTrainedAt: block.timestamp,
            statsGenerated: true
        });
        
        statsUnlocked[tokenId] = true;
        
        // Emit event for ECKKO stats generation
        emit StatsGeneratedWithEckko(msg.sender, tokenId, eckkoGeneratePrice);
    }

    /**
     * @dev Generate stats for free without burning ECKKO
     * @param tokenId The ID of the dog token
     */
    function generateStats(uint256 tokenId) external {
        require(_exists(tokenId), "Token does not exist");
        require(!statsUnlocked[tokenId], "Stats already generated");
        require(pixlDogs.ownerOf(tokenId) == msg.sender, "Not the dog owner");
        
        // Generate pseudo-random seed from transaction data
        uint256 seed = uint256(keccak256(abi.encodePacked(
            block.timestamp, 
            block.prevrandao,
            msg.sender,
            tokenId
        )));
        
        // Generate stats with standard range (40-70) for free users
        uint256 rand = uint256(keccak256(abi.encodePacked(seed)));
        
        // Generate stats between 40-70 based on the random value (slightly lower than ECKKO generation)
        dogStats[tokenId] = GameplayStats({
            endurance: uint16(40 + (rand % 31)),
            agility: uint16(40 + ((rand >> 8) % 31)),
            healthScore: uint16(40 + ((rand >> 16) % 31)),
            fetchSkill: uint16(40 + ((rand >> 24) % 31)),
            baseSpeed: uint16(40 + ((rand >> 32) % 31)),
            luck: uint16(40 + ((rand >> 40) % 31)),
            happinessScore: uint16(40 + ((rand >> 48) % 31)),
            treasureSense: uint16(40 + ((rand >> 56) % 31)),
            potential: uint16(40 + ((rand >> 64) % 31)),
            eckkoTraining: 0, // No ECKKO training bonus for free generation
            pixldPower: 0,
            lastTrainedAt: block.timestamp,
            statsGenerated: true
        });
        
        statsUnlocked[tokenId] = true;
        
        // Emit event for free stats generation
        emit StatsGenerated(msg.sender, tokenId, seed);
    }

    /**
     * @dev Check if a dog token exists
     */
    function _exists(uint256 tokenId) internal view returns (bool) {
        try pixlDogs.ownerOf(tokenId) returns (address) {
            return true;
        } catch {
            return false;
        }
    }
}

// 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/ERC20/IERC20.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC-20 standard as defined in the ERC.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the value of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the value of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves a `value` amount of tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 value) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the
     * caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the
     * allowance mechanism. `value` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 value) external returns (bool);
}

// 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
pragma solidity ^0.8.20;

interface IPixlDogsGameplayMechanics {
    struct GameplayStats {
        uint16 endurance;
        uint16 agility;
        uint16 healthScore;
        uint16 fetchSkill;
        uint16 baseSpeed;
        uint16 luck;
        uint16 happinessScore;
        uint16 treasureSense;
        uint16 potential;
        uint16 eckkoTraining;
        uint16 pixldPower;
        uint256 lastTrainedAt;
        bool statsGenerated;
    }

    function getDogStats(uint256 tokenId) external view returns (GameplayStats memory);
    function areStatsUnlocked(uint256 tokenId) external view returns (bool);
}

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

interface IPixlDogsNFT {
    function ownerOf(uint256 tokenId) external view returns (address);
}

File 7 of 7 : ITraitRegistry.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

interface ITraitRegistry {
    // Empty interface as we don't use any functions from it in the gameplay mechanics
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_pixlDogs","type":"address"},{"internalType":"address","name":"_traitRegistry","type":"address"},{"internalType":"address","name":"_eckkoToken","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":false,"internalType":"address","name":"oldAddress","type":"address"},{"indexed":false,"internalType":"address","name":"newAddress","type":"address"}],"name":"BurnAddressUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldPrice","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"EckkoPriceUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldToken","type":"address"},{"indexed":false,"internalType":"address","name":"newToken","type":"address"}],"name":"EckkoTokenUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldNft","type":"address"},{"indexed":false,"internalType":"address","name":"newNft","type":"address"}],"name":"GameNftUpdated","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":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"seed","type":"uint256"}],"name":"StatsGenerated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"eckkoAmount","type":"uint256"}],"name":"StatsGeneratedWithEckko","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldRegistry","type":"address"},{"indexed":false,"internalType":"address","name":"newRegistry","type":"address"}],"name":"TraitRegistryUpdated","type":"event"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"areStatsUnlocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"burnAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"dogStats","outputs":[{"internalType":"uint16","name":"endurance","type":"uint16"},{"internalType":"uint16","name":"agility","type":"uint16"},{"internalType":"uint16","name":"healthScore","type":"uint16"},{"internalType":"uint16","name":"fetchSkill","type":"uint16"},{"internalType":"uint16","name":"baseSpeed","type":"uint16"},{"internalType":"uint16","name":"luck","type":"uint16"},{"internalType":"uint16","name":"happinessScore","type":"uint16"},{"internalType":"uint16","name":"treasureSense","type":"uint16"},{"internalType":"uint16","name":"potential","type":"uint16"},{"internalType":"uint16","name":"eckkoTraining","type":"uint16"},{"internalType":"uint16","name":"pixldPower","type":"uint16"},{"internalType":"uint256","name":"lastTrainedAt","type":"uint256"},{"internalType":"bool","name":"statsGenerated","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"eckkoGeneratePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"eckkoToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"generateStats","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"generateStatsWithEckko","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getDogStats","outputs":[{"components":[{"internalType":"uint16","name":"endurance","type":"uint16"},{"internalType":"uint16","name":"agility","type":"uint16"},{"internalType":"uint16","name":"healthScore","type":"uint16"},{"internalType":"uint16","name":"fetchSkill","type":"uint16"},{"internalType":"uint16","name":"baseSpeed","type":"uint16"},{"internalType":"uint16","name":"luck","type":"uint16"},{"internalType":"uint16","name":"happinessScore","type":"uint16"},{"internalType":"uint16","name":"treasureSense","type":"uint16"},{"internalType":"uint16","name":"potential","type":"uint16"},{"internalType":"uint16","name":"eckkoTraining","type":"uint16"},{"internalType":"uint16","name":"pixldPower","type":"uint16"},{"internalType":"uint256","name":"lastTrainedAt","type":"uint256"},{"internalType":"bool","name":"statsGenerated","type":"bool"}],"internalType":"struct IPixlDogsGameplayMechanics.GameplayStats","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getGameNft","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pixlDogs","outputs":[{"internalType":"contract IPixlDogsNFT","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newBurnAddress","type":"address"}],"name":"setBurnAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"setEckkoGeneratePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newToken","type":"address"}],"name":"setEckkoToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newNft","type":"address"}],"name":"setGameNft","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newRegistry","type":"address"}],"name":"setTraitRegistry","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"statsUnlocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"trainingStats","outputs":[{"internalType":"uint256","name":"totalTrained","type":"uint256"},{"internalType":"uint256","name":"lastTrained","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"traitRegistry","outputs":[{"internalType":"contract ITraitRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

0x60806040523480156200001157600080fd5b5060405162001b6938038062001b69833981016040819052620000349162000134565b33806200005b57604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b6200006681620000c7565b50600180546001600160a01b039485166001600160a01b03199182161790915560028054938516938216939093179092556003805491909316908216179091556004805490911661dead17905569d3c21bcecceda10000006005556200017e565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146200012f57600080fd5b919050565b6000806000606084860312156200014a57600080fd5b620001558462000117565b9250620001656020850162000117565b9150620001756040850162000117565b90509250925092565b6119db806200018e6000396000f3fe608060405234801561001057600080fd5b50600436106101375760003560e01c806370d5ae05116100b8578063b6c129af1161007c578063b6c129af14610365578063b7c1652214610388578063cc117b7114610399578063d235235d146103ac578063f2fde38b146103c3578063f5535009146103d657600080fd5b806370d5ae051461026f578063715018a614610282578063852c55321461028a5780638cda3e031461029d5780638da5cb5b1461035457600080fd5b806334cdc8d2116100ff57806334cdc8d2146101d85780633ec8685b146101eb5780634b0e72161461021e5780634d7a13dd1461023157806354ffd8c11461024457600080fd5b806309836b911461013c578063195480571461015157806323fc46e11461016457806326a47338146101a5578063342770bf146101b8575b600080fd5b61014f61014a3660046116ec565b6103e9565b005b61014f61015f366004611710565b610482565b61018b610172366004611710565b6006602052600090815260409020805460019091015482565b604080519283526020830191909152015b60405180910390f35b61014f6101b3366004611710565b610508565b6101cb6101c6366004611710565b610cbe565b60405161019c9190611729565b61014f6101e63660046116ec565b610eac565b61020e6101f9366004611710565b60086020526000908152604090205460ff1681565b604051901515815260200161019c565b61014f61022c3660046116ec565b610f34565b61014f61023f3660046116ec565b610fbc565b600154610257906001600160a01b031681565b6040516001600160a01b03909116815260200161019c565b600454610257906001600160a01b031681565b61014f611044565b61014f610298366004611710565b611058565b61033b6102ab366004611710565b60076020526000908152604090208054600182015460029092015461ffff80831693620100008404821693640100000000810483169366010000000000008204841693600160401b8304811693600160501b8404821693600160601b8104831693600160701b8204841693600160801b8304811693600160901b8404821693600160a01b90049091169160ff168d565b60405161019c9d9c9b9a9998979695949392919061181e565b6000546001600160a01b0316610257565b61020e610373366004611710565b60009081526008602052604090205460ff1690565b6001546001600160a01b0316610257565b600254610257906001600160a01b031681565b6103b560055481565b60405190815260200161019c565b61014f6103d13660046116ec565b6115a1565b600354610257906001600160a01b031681565b6103f16115df565b6001600160a01b0381166104205760405162461bcd60e51b8152600401610417906118ad565b60405180910390fd5b600180546001600160a01b038381166001600160a01b031983168117909355604080519190921680825260208201939093527fac8cd58cabcdabcc1a9c9f9f0019ce4f5269be460a1e545004de6619cde75ec091015b60405180910390a15050565b61048a6115df565b600081116104ca5760405162461bcd60e51b815260206004820152600d60248201526c496e76616c696420707269636560981b6044820152606401610417565b600580549082905560408051828152602081018490527f1426190c3ca72e9f504ef476c104a89969f04fa6e9c7f1aa203a8be58bce6c259101610476565b6105118161160c565b61052d5760405162461bcd60e51b8152600401610417906118d6565b60008181526008602052604090205460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614dd185d1cc8185b1c9958591e4819d95b995c985d1959604a1b6044820152606401610417565b6001546040516331a9108f60e11b81526004810183905233916001600160a01b031690636352211e90602401602060405180830381865afa1580156105cf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105f39190611904565b6001600160a01b03161461063d5760405162461bcd60e51b81526020600482015260116024820152702737ba103a3432903237b39037bbb732b960791b6044820152606401610417565b600554600354604051636eb1769f60e11b81523360048201523060248201526001600160a01b039091169063dd62ed3e90604401602060405180830381865afa15801561068e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106b29190611921565b10156107005760405162461bcd60e51b815260206004820152601c60248201527f496e73756666696369656e742045434b4b4f20616c6c6f77616e6365000000006044820152606401610417565b6005546003546040516370a0823160e01b81523360048201526001600160a01b03909116906370a0823190602401602060405180830381865afa15801561074b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061076f9190611921565b10156107bd5760405162461bcd60e51b815260206004820152601a60248201527f496e73756666696369656e742045434b4b4f2062616c616e63650000000000006044820152606401610417565b600354600480546005546040516323b872dd60e01b815233938101939093526001600160a01b0391821660248401526044830152909116906323b872dd906064016020604051808303816000875af115801561081d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610841919061193a565b61089b5760405162461bcd60e51b815260206004820152602560248201527f45434b4b4f207472616e7366657220746f206275726e20616464726573732066604482015264185a5b195960da1b6064820152608401610417565b6000424433846040516020016108dc9493929190938452602084019290925260601b6bffffffffffffffffffffffff19166040830152605482015260740190565b60408051601f198184030181528282528051602091820120818401819052825180850383018152848401808552815191909301206101e090940190925290925080610928601f8461195c565b61093390602d61197e565b61ffff16815260200161094b601f600885901c61195c565b61095690602d61197e565b61ffff16815260200161096e601f601085901c61195c565b61097990602d61197e565b61ffff168152602001610991601f601885901c61195c565b61099c90602d61197e565b61ffff168152602001601f602084901c6109b6919061195c565b6109c190602d61197e565b61ffff1681526020016109d9601f602885901c61195c565b6109e490602d61197e565b61ffff1681526020016109fc601f603085901c61195c565b610a0790602d61197e565b61ffff168152602001610a1f601f603885901c61195c565b610a2a90602d61197e565b61ffff168152602001610a42601f604085901c61195c565b610a4d90602d61197e565b61ffff168152602001600561ffff168152602001600061ffff168152602001428152602001600115158152506007600085815260200190815260200160002060008201518160000160006101000a81548161ffff021916908361ffff16021790555060208201518160000160026101000a81548161ffff021916908361ffff16021790555060408201518160000160046101000a81548161ffff021916908361ffff16021790555060608201518160000160066101000a81548161ffff021916908361ffff16021790555060808201518160000160086101000a81548161ffff021916908361ffff16021790555060a082015181600001600a6101000a81548161ffff021916908361ffff16021790555060c082015181600001600c6101000a81548161ffff021916908361ffff16021790555060e082015181600001600e6101000a81548161ffff021916908361ffff1602179055506101008201518160000160106101000a81548161ffff021916908361ffff1602179055506101208201518160000160126101000a81548161ffff021916908361ffff1602179055506101408201518160000160146101000a81548161ffff021916908361ffff16021790555061016082015181600101556101808201518160020160006101000a81548160ff02191690831515021790555090505060016008600085815260200190815260200160002060006101000a81548160ff021916908315150217905550336001600160a01b03167f82258e9e1c60d8a66b3dfb5d8466f54b2e4a9b981eb0305000450e245ace8e0384600554604051610cb1929190918252602082015260400190565b60405180910390a2505050565b604080516101a081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e081018290526101008101829052610120810182905261014081018290526101608101829052610180810191909152610d308261160c565b610d4c5760405162461bcd60e51b8152600401610417906118d6565b60008281526008602052604090205460ff1615610e3e575060009081526007602090815260409182902082516101a081018452815461ffff808216835262010000820481169483019490945264010000000081048416948201949094526601000000000000840483166060820152600160401b840483166080820152600160501b8404831660a0820152600160601b8404831660c0820152600160701b8404831660e0820152600160801b84048316610100820152600160901b84048316610120820152600160a01b90930490911661014083015260018101546101608301526002015460ff16151561018082015290565b5050604080516101a081018252603280825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e08101829052610100810191909152600061012082018190526101408201819052610160820181905261018082015290565b610eb46115df565b6001600160a01b038116610eda5760405162461bcd60e51b8152600401610417906118ad565b600380546001600160a01b038381166001600160a01b031983168117909355604080519190921680825260208201939093527f93f279649de1b49c058ee3b2a0ad55694fd9d5b65a89538e3c43f90c694fffa19101610476565b610f3c6115df565b6001600160a01b038116610f625760405162461bcd60e51b8152600401610417906118ad565b600480546001600160a01b038381166001600160a01b031983168117909355604080519190921680825260208201939093527f6916992076a314a5a1e633990a54e2faf68c86a488d238e991766490609875279101610476565b610fc46115df565b6001600160a01b038116610fea5760405162461bcd60e51b8152600401610417906118ad565b600280546001600160a01b038381166001600160a01b031983168117909355604080519190921680825260208201939093527fd4f7188a37e95e1b773f8a56cc5bebb45d7e4eaf2a2486e11de3063fe454993a9101610476565b61104c6115df565b6110566000611687565b565b6110618161160c565b61107d5760405162461bcd60e51b8152600401610417906118d6565b60008181526008602052604090205460ff16156110d65760405162461bcd60e51b815260206004820152601760248201527614dd185d1cc8185b1c9958591e4819d95b995c985d1959604a1b6044820152606401610417565b6001546040516331a9108f60e11b81526004810183905233916001600160a01b031690636352211e90602401602060405180830381865afa15801561111f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111439190611904565b6001600160a01b03161461118d5760405162461bcd60e51b81526020600482015260116024820152702737ba103a3432903237b39037bbb732b960791b6044820152606401610417565b6000424433846040516020016111ce9493929190938452602084019290925260601b6bffffffffffffffffffffffff19166040830152605482015260740190565b60408051601f198184030181528282528051602091820120818401819052825180850383018152848401808552815191909301206101e09094019092529092508061121a601f8461195c565b61122590602861197e565b61ffff16815260200161123d601f600885901c61195c565b61124890602861197e565b61ffff168152602001611260601f601085901c61195c565b61126b90602861197e565b61ffff168152602001611283601f601885901c61195c565b61128e90602861197e565b61ffff168152602001601f602084901c6112a8919061195c565b6112b390602861197e565b61ffff1681526020016112cb601f602885901c61195c565b6112d690602861197e565b61ffff1681526020016112ee601f603085901c61195c565b6112f990602861197e565b61ffff168152602001611311601f603885901c61195c565b61131c90602861197e565b61ffff168152602001611334601f604085901c61195c565b61133f90602861197e565b61ffff168152602001600061ffff168152602001600061ffff168152602001428152602001600115158152506007600085815260200190815260200160002060008201518160000160006101000a81548161ffff021916908361ffff16021790555060208201518160000160026101000a81548161ffff021916908361ffff16021790555060408201518160000160046101000a81548161ffff021916908361ffff16021790555060608201518160000160066101000a81548161ffff021916908361ffff16021790555060808201518160000160086101000a81548161ffff021916908361ffff16021790555060a082015181600001600a6101000a81548161ffff021916908361ffff16021790555060c082015181600001600c6101000a81548161ffff021916908361ffff16021790555060e082015181600001600e6101000a81548161ffff021916908361ffff1602179055506101008201518160000160106101000a81548161ffff021916908361ffff1602179055506101208201518160000160126101000a81548161ffff021916908361ffff1602179055506101408201518160000160146101000a81548161ffff021916908361ffff16021790555061016082015181600101556101808201518160020160006101000a81548160ff02191690831515021790555090505060016008600085815260200190815260200160002060006101000a81548160ff021916908315150217905550336001600160a01b03167fa32c40995e0bc7ec4a7ce57d1f457b60c2d8307c0c7ad0c83229e714bcad813e8484604051610cb1929190918252602082015260400190565b6115a96115df565b6001600160a01b0381166115d357604051631e4fbdf760e01b815260006004820152602401610417565b6115dc81611687565b50565b6000546001600160a01b031633146110565760405163118cdaa760e01b8152336004820152602401610417565b6001546040516331a9108f60e11b8152600481018390526000916001600160a01b031690636352211e90602401602060405180830381865afa925050508015611672575060408051601f3d908101601f1916820190925261166f91810190611904565b60015b61167e57506000919050565b50600192915050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03811681146115dc57600080fd5b6000602082840312156116fe57600080fd5b8135611709816116d7565b9392505050565b60006020828403121561172257600080fd5b5035919050565b815161ffff1681526101a08101602083015161174b602084018261ffff169052565b506040830151611761604084018261ffff169052565b506060830151611777606084018261ffff169052565b50608083015161178d608084018261ffff169052565b5060a08301516117a360a084018261ffff169052565b5060c08301516117b960c084018261ffff169052565b5060e08301516117cf60e084018261ffff169052565b506101008381015161ffff908116918401919091526101208085015182169084015261014080850151909116908301526101608084015190830152610180928301511515929091019190915290565b61ffff8e811682528d811660208301528c811660408301528b811660608301528a8116608083015289811660a0830152881660c08201526101a0810161ffff881660e083015261ffff871661010083015261ffff861661012083015261ffff85166101408301528361016083015261189b61018083018415159052565b9e9d5050505050505050505050505050565b6020808252600f908201526e496e76616c6964206164647265737360881b604082015260600190565b602080825260149082015273151bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b604082015260600190565b60006020828403121561191657600080fd5b8151611709816116d7565b60006020828403121561193357600080fd5b5051919050565b60006020828403121561194c57600080fd5b8151801515811461170957600080fd5b60008261197957634e487b7160e01b600052601260045260246000fd5b500690565b8082018082111561199f57634e487b7160e01b600052601160045260246000fd5b9291505056fea264697066735822122090960b7de227d51ad64a80a36bb71540577e877ab3e241bcc4e9d61bd9ad208364736f6c63430008140033000000000000000000000000b202d84c760862dadfafbfbf39939dd75c794dff0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c1c728b5debef350076466111960668ce1eca654

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101375760003560e01c806370d5ae05116100b8578063b6c129af1161007c578063b6c129af14610365578063b7c1652214610388578063cc117b7114610399578063d235235d146103ac578063f2fde38b146103c3578063f5535009146103d657600080fd5b806370d5ae051461026f578063715018a614610282578063852c55321461028a5780638cda3e031461029d5780638da5cb5b1461035457600080fd5b806334cdc8d2116100ff57806334cdc8d2146101d85780633ec8685b146101eb5780634b0e72161461021e5780634d7a13dd1461023157806354ffd8c11461024457600080fd5b806309836b911461013c578063195480571461015157806323fc46e11461016457806326a47338146101a5578063342770bf146101b8575b600080fd5b61014f61014a3660046116ec565b6103e9565b005b61014f61015f366004611710565b610482565b61018b610172366004611710565b6006602052600090815260409020805460019091015482565b604080519283526020830191909152015b60405180910390f35b61014f6101b3366004611710565b610508565b6101cb6101c6366004611710565b610cbe565b60405161019c9190611729565b61014f6101e63660046116ec565b610eac565b61020e6101f9366004611710565b60086020526000908152604090205460ff1681565b604051901515815260200161019c565b61014f61022c3660046116ec565b610f34565b61014f61023f3660046116ec565b610fbc565b600154610257906001600160a01b031681565b6040516001600160a01b03909116815260200161019c565b600454610257906001600160a01b031681565b61014f611044565b61014f610298366004611710565b611058565b61033b6102ab366004611710565b60076020526000908152604090208054600182015460029092015461ffff80831693620100008404821693640100000000810483169366010000000000008204841693600160401b8304811693600160501b8404821693600160601b8104831693600160701b8204841693600160801b8304811693600160901b8404821693600160a01b90049091169160ff168d565b60405161019c9d9c9b9a9998979695949392919061181e565b6000546001600160a01b0316610257565b61020e610373366004611710565b60009081526008602052604090205460ff1690565b6001546001600160a01b0316610257565b600254610257906001600160a01b031681565b6103b560055481565b60405190815260200161019c565b61014f6103d13660046116ec565b6115a1565b600354610257906001600160a01b031681565b6103f16115df565b6001600160a01b0381166104205760405162461bcd60e51b8152600401610417906118ad565b60405180910390fd5b600180546001600160a01b038381166001600160a01b031983168117909355604080519190921680825260208201939093527fac8cd58cabcdabcc1a9c9f9f0019ce4f5269be460a1e545004de6619cde75ec091015b60405180910390a15050565b61048a6115df565b600081116104ca5760405162461bcd60e51b815260206004820152600d60248201526c496e76616c696420707269636560981b6044820152606401610417565b600580549082905560408051828152602081018490527f1426190c3ca72e9f504ef476c104a89969f04fa6e9c7f1aa203a8be58bce6c259101610476565b6105118161160c565b61052d5760405162461bcd60e51b8152600401610417906118d6565b60008181526008602052604090205460ff16156105865760405162461bcd60e51b815260206004820152601760248201527614dd185d1cc8185b1c9958591e4819d95b995c985d1959604a1b6044820152606401610417565b6001546040516331a9108f60e11b81526004810183905233916001600160a01b031690636352211e90602401602060405180830381865afa1580156105cf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105f39190611904565b6001600160a01b03161461063d5760405162461bcd60e51b81526020600482015260116024820152702737ba103a3432903237b39037bbb732b960791b6044820152606401610417565b600554600354604051636eb1769f60e11b81523360048201523060248201526001600160a01b039091169063dd62ed3e90604401602060405180830381865afa15801561068e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106b29190611921565b10156107005760405162461bcd60e51b815260206004820152601c60248201527f496e73756666696369656e742045434b4b4f20616c6c6f77616e6365000000006044820152606401610417565b6005546003546040516370a0823160e01b81523360048201526001600160a01b03909116906370a0823190602401602060405180830381865afa15801561074b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061076f9190611921565b10156107bd5760405162461bcd60e51b815260206004820152601a60248201527f496e73756666696369656e742045434b4b4f2062616c616e63650000000000006044820152606401610417565b600354600480546005546040516323b872dd60e01b815233938101939093526001600160a01b0391821660248401526044830152909116906323b872dd906064016020604051808303816000875af115801561081d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610841919061193a565b61089b5760405162461bcd60e51b815260206004820152602560248201527f45434b4b4f207472616e7366657220746f206275726e20616464726573732066604482015264185a5b195960da1b6064820152608401610417565b6000424433846040516020016108dc9493929190938452602084019290925260601b6bffffffffffffffffffffffff19166040830152605482015260740190565b60408051601f198184030181528282528051602091820120818401819052825180850383018152848401808552815191909301206101e090940190925290925080610928601f8461195c565b61093390602d61197e565b61ffff16815260200161094b601f600885901c61195c565b61095690602d61197e565b61ffff16815260200161096e601f601085901c61195c565b61097990602d61197e565b61ffff168152602001610991601f601885901c61195c565b61099c90602d61197e565b61ffff168152602001601f602084901c6109b6919061195c565b6109c190602d61197e565b61ffff1681526020016109d9601f602885901c61195c565b6109e490602d61197e565b61ffff1681526020016109fc601f603085901c61195c565b610a0790602d61197e565b61ffff168152602001610a1f601f603885901c61195c565b610a2a90602d61197e565b61ffff168152602001610a42601f604085901c61195c565b610a4d90602d61197e565b61ffff168152602001600561ffff168152602001600061ffff168152602001428152602001600115158152506007600085815260200190815260200160002060008201518160000160006101000a81548161ffff021916908361ffff16021790555060208201518160000160026101000a81548161ffff021916908361ffff16021790555060408201518160000160046101000a81548161ffff021916908361ffff16021790555060608201518160000160066101000a81548161ffff021916908361ffff16021790555060808201518160000160086101000a81548161ffff021916908361ffff16021790555060a082015181600001600a6101000a81548161ffff021916908361ffff16021790555060c082015181600001600c6101000a81548161ffff021916908361ffff16021790555060e082015181600001600e6101000a81548161ffff021916908361ffff1602179055506101008201518160000160106101000a81548161ffff021916908361ffff1602179055506101208201518160000160126101000a81548161ffff021916908361ffff1602179055506101408201518160000160146101000a81548161ffff021916908361ffff16021790555061016082015181600101556101808201518160020160006101000a81548160ff02191690831515021790555090505060016008600085815260200190815260200160002060006101000a81548160ff021916908315150217905550336001600160a01b03167f82258e9e1c60d8a66b3dfb5d8466f54b2e4a9b981eb0305000450e245ace8e0384600554604051610cb1929190918252602082015260400190565b60405180910390a2505050565b604080516101a081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e081018290526101008101829052610120810182905261014081018290526101608101829052610180810191909152610d308261160c565b610d4c5760405162461bcd60e51b8152600401610417906118d6565b60008281526008602052604090205460ff1615610e3e575060009081526007602090815260409182902082516101a081018452815461ffff808216835262010000820481169483019490945264010000000081048416948201949094526601000000000000840483166060820152600160401b840483166080820152600160501b8404831660a0820152600160601b8404831660c0820152600160701b8404831660e0820152600160801b84048316610100820152600160901b84048316610120820152600160a01b90930490911661014083015260018101546101608301526002015460ff16151561018082015290565b5050604080516101a081018252603280825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e08101829052610100810191909152600061012082018190526101408201819052610160820181905261018082015290565b610eb46115df565b6001600160a01b038116610eda5760405162461bcd60e51b8152600401610417906118ad565b600380546001600160a01b038381166001600160a01b031983168117909355604080519190921680825260208201939093527f93f279649de1b49c058ee3b2a0ad55694fd9d5b65a89538e3c43f90c694fffa19101610476565b610f3c6115df565b6001600160a01b038116610f625760405162461bcd60e51b8152600401610417906118ad565b600480546001600160a01b038381166001600160a01b031983168117909355604080519190921680825260208201939093527f6916992076a314a5a1e633990a54e2faf68c86a488d238e991766490609875279101610476565b610fc46115df565b6001600160a01b038116610fea5760405162461bcd60e51b8152600401610417906118ad565b600280546001600160a01b038381166001600160a01b031983168117909355604080519190921680825260208201939093527fd4f7188a37e95e1b773f8a56cc5bebb45d7e4eaf2a2486e11de3063fe454993a9101610476565b61104c6115df565b6110566000611687565b565b6110618161160c565b61107d5760405162461bcd60e51b8152600401610417906118d6565b60008181526008602052604090205460ff16156110d65760405162461bcd60e51b815260206004820152601760248201527614dd185d1cc8185b1c9958591e4819d95b995c985d1959604a1b6044820152606401610417565b6001546040516331a9108f60e11b81526004810183905233916001600160a01b031690636352211e90602401602060405180830381865afa15801561111f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111439190611904565b6001600160a01b03161461118d5760405162461bcd60e51b81526020600482015260116024820152702737ba103a3432903237b39037bbb732b960791b6044820152606401610417565b6000424433846040516020016111ce9493929190938452602084019290925260601b6bffffffffffffffffffffffff19166040830152605482015260740190565b60408051601f198184030181528282528051602091820120818401819052825180850383018152848401808552815191909301206101e09094019092529092508061121a601f8461195c565b61122590602861197e565b61ffff16815260200161123d601f600885901c61195c565b61124890602861197e565b61ffff168152602001611260601f601085901c61195c565b61126b90602861197e565b61ffff168152602001611283601f601885901c61195c565b61128e90602861197e565b61ffff168152602001601f602084901c6112a8919061195c565b6112b390602861197e565b61ffff1681526020016112cb601f602885901c61195c565b6112d690602861197e565b61ffff1681526020016112ee601f603085901c61195c565b6112f990602861197e565b61ffff168152602001611311601f603885901c61195c565b61131c90602861197e565b61ffff168152602001611334601f604085901c61195c565b61133f90602861197e565b61ffff168152602001600061ffff168152602001600061ffff168152602001428152602001600115158152506007600085815260200190815260200160002060008201518160000160006101000a81548161ffff021916908361ffff16021790555060208201518160000160026101000a81548161ffff021916908361ffff16021790555060408201518160000160046101000a81548161ffff021916908361ffff16021790555060608201518160000160066101000a81548161ffff021916908361ffff16021790555060808201518160000160086101000a81548161ffff021916908361ffff16021790555060a082015181600001600a6101000a81548161ffff021916908361ffff16021790555060c082015181600001600c6101000a81548161ffff021916908361ffff16021790555060e082015181600001600e6101000a81548161ffff021916908361ffff1602179055506101008201518160000160106101000a81548161ffff021916908361ffff1602179055506101208201518160000160126101000a81548161ffff021916908361ffff1602179055506101408201518160000160146101000a81548161ffff021916908361ffff16021790555061016082015181600101556101808201518160020160006101000a81548160ff02191690831515021790555090505060016008600085815260200190815260200160002060006101000a81548160ff021916908315150217905550336001600160a01b03167fa32c40995e0bc7ec4a7ce57d1f457b60c2d8307c0c7ad0c83229e714bcad813e8484604051610cb1929190918252602082015260400190565b6115a96115df565b6001600160a01b0381166115d357604051631e4fbdf760e01b815260006004820152602401610417565b6115dc81611687565b50565b6000546001600160a01b031633146110565760405163118cdaa760e01b8152336004820152602401610417565b6001546040516331a9108f60e11b8152600481018390526000916001600160a01b031690636352211e90602401602060405180830381865afa925050508015611672575060408051601f3d908101601f1916820190925261166f91810190611904565b60015b61167e57506000919050565b50600192915050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03811681146115dc57600080fd5b6000602082840312156116fe57600080fd5b8135611709816116d7565b9392505050565b60006020828403121561172257600080fd5b5035919050565b815161ffff1681526101a08101602083015161174b602084018261ffff169052565b506040830151611761604084018261ffff169052565b506060830151611777606084018261ffff169052565b50608083015161178d608084018261ffff169052565b5060a08301516117a360a084018261ffff169052565b5060c08301516117b960c084018261ffff169052565b5060e08301516117cf60e084018261ffff169052565b506101008381015161ffff908116918401919091526101208085015182169084015261014080850151909116908301526101608084015190830152610180928301511515929091019190915290565b61ffff8e811682528d811660208301528c811660408301528b811660608301528a8116608083015289811660a0830152881660c08201526101a0810161ffff881660e083015261ffff871661010083015261ffff861661012083015261ffff85166101408301528361016083015261189b61018083018415159052565b9e9d5050505050505050505050505050565b6020808252600f908201526e496e76616c6964206164647265737360881b604082015260600190565b602080825260149082015273151bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b604082015260600190565b60006020828403121561191657600080fd5b8151611709816116d7565b60006020828403121561193357600080fd5b5051919050565b60006020828403121561194c57600080fd5b8151801515811461170957600080fd5b60008261197957634e487b7160e01b600052601260045260246000fd5b500690565b8082018082111561199f57634e487b7160e01b600052601160045260246000fd5b9291505056fea264697066735822122090960b7de227d51ad64a80a36bb71540577e877ab3e241bcc4e9d61bd9ad208364736f6c63430008140033

Block Transaction Gas Used Reward
view all blocks ##produced##

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ 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.