ETH Price: $3,569.21 (+7.28%)

Contract

0x616A685695F3199EADAbBe0678b87933668f8859
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Import Haka153748302022-08-20 1:50:18830 days ago1660960218IN
0x616A6856...3668f8859
0 ETH0.1081252510.65311267
Import Image153201302022-08-11 10:16:09839 days ago1660212969IN
0x616A6856...3668f8859
0 ETH0.003142978.88
Import Image153201232022-08-11 10:14:45839 days ago1660212885IN
0x616A6856...3668f8859
0 ETH0.02280328.88
Import Image153201232022-08-11 10:14:45839 days ago1660212885IN
0x616A6856...3668f8859
0 ETH0.000750338.88
Import Image153201232022-08-11 10:14:45839 days ago1660212885IN
0x616A6856...3668f8859
0 ETH0.0287498.88
Import Image153201232022-08-11 10:14:45839 days ago1660212885IN
0x616A6856...3668f8859
0 ETH0.007175478.88
Import Image153201232022-08-11 10:14:45839 days ago1660212885IN
0x616A6856...3668f8859
0 ETH0.012820188.88
Import Image153201232022-08-11 10:14:45839 days ago1660212885IN
0x616A6856...3668f8859
0 ETH0.00778058.88
Import Image153201232022-08-11 10:14:45839 days ago1660212885IN
0x616A6856...3668f8859
0 ETH0.009998158.88
Import Image153201232022-08-11 10:14:45839 days ago1660212885IN
0x616A6856...3668f8859
0 ETH0.005563498.88
Import Image153201232022-08-11 10:14:45839 days ago1660212885IN
0x616A6856...3668f8859
0 ETH0.00324728.88
Import Image153201232022-08-11 10:14:45839 days ago1660212885IN
0x616A6856...3668f8859
0 ETH0.000750338.88
Import Image153201142022-08-11 10:13:11839 days ago1660212791IN
0x616A6856...3668f8859
0 ETH0.01886758.88
Import Image153201142022-08-11 10:13:11839 days ago1660212791IN
0x616A6856...3668f8859
0 ETH0.015845658.88
Import Image153201142022-08-11 10:13:11839 days ago1660212791IN
0x616A6856...3668f8859
0 ETH0.034191158.88
Import Image153201142022-08-11 10:13:11839 days ago1660212791IN
0x616A6856...3668f8859
0 ETH0.008790128.88
Import Image153201142022-08-11 10:13:11839 days ago1660212791IN
0x616A6856...3668f8859
0 ETH0.010601378.88
Import Image153201142022-08-11 10:13:11839 days ago1660212791IN
0x616A6856...3668f8859
0 ETH0.009194398.88
Import Image153201142022-08-11 10:13:11839 days ago1660212791IN
0x616A6856...3668f8859
0 ETH0.007176648.88
Import Image153201142022-08-11 10:13:11839 days ago1660212791IN
0x616A6856...3668f8859
0 ETH0.010604248.88
Import Image153201142022-08-11 10:13:11839 days ago1660212791IN
0x616A6856...3668f8859
0 ETH0.014432498.88
Import Image153201142022-08-11 10:13:11839 days ago1660212791IN
0x616A6856...3668f8859
0 ETH0.00717598.88
Import Image153201142022-08-11 10:13:11839 days ago1660212791IN
0x616A6856...3668f8859
0 ETH0.009596338.88
Import Image153201142022-08-11 10:13:11839 days ago1660212791IN
0x616A6856...3668f8859
0 ETH0.009194188.88
Import Image153201142022-08-11 10:13:11839 days ago1660212791IN
0x616A6856...3668f8859
0 ETH0.017658518.88
View all transactions

Advanced mode:
Parent Transaction Hash Block From To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
KudasaiStorage

Compiler Version
v0.8.16+commit.07a7930e

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 3 : KudasaiStorage.sol
// SPDX-License-Identifier: MIT
//  ___   _  __   __  ______   _______  _______  _______  ___      
// |   | | ||  | |  ||      | |   _   ||       ||   _   ||   |     
// |   |_| ||  | |  ||  _    ||  |_|  ||  _____||  |_|  ||   |     
// |      _||  |_|  || | |   ||       || |_____ |       ||   |     
// |     |_ |       || |_|   ||       ||_____  ||       ||   |     
// |    _  ||       ||       ||   _   | _____| ||   _   ||   |     
// |___| |_||_______||______| |__| |__||_______||__| |__||___|     
//  _______  _______  _______  ______    _______  _______  _______ 
// |       ||       ||       ||    _ |  |   _   ||       ||       |
// |  _____||_     _||   _   ||   | ||  |  |_|  ||    ___||    ___|
// | |_____   |   |  |  | |  ||   |_||_ |       ||   | __ |   |___ 
// |_____  |  |   |  |  |_|  ||    __  ||       ||   ||  ||    ___|
//  _____| |  |   |  |       ||   |  | ||   _   ||   |_| ||   |___ 
// |_______|  |___|  |_______||___|  |_||__| |__||_______||_______|

pragma solidity ^0.8.16;

import "@openzeppelin/contracts/access/Ownable.sol";

contract KudasaiStorage is Ownable {
    enum Parts {
        back,
        body,
        hair,
        eyewear,
        face
    }
    mapping(Parts => uint256) public imageIdCounter;
    mapping(Parts => mapping(uint256 => string)) public images;
    mapping(Parts => mapping(uint256 => string)) public imageNames;
    mapping(Parts => mapping(uint256 => uint256)) public weights;
    mapping(Parts => uint256) public totalWeight;
    string public haka;

    function getKudasai(uint256 _back, uint256 _body, uint256 _hair, uint256 _eyewear, uint256 _face) external view returns (string memory) {
        return
            string(
                abi.encodePacked(
                    '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" buffered-rendering="static" width="1200px" height="1200px" viewBox="0,0,1200,1200"><defs>',
                    '<g id="bk">', images[Parts.back][_back], '</g>',
                    '<g id="bd">', images[Parts.body][_body], '</g>',
                    '<g id="h">', images[Parts.hair][_hair], '</g>',
                    '<g id="e">', images[Parts.eyewear][_eyewear], '</g>',
                    '<g id="f">', images[Parts.face][_face], '</g>',
                    '</defs><use href="#bk"/><use href="#bd"/><use href="#f"/><use href="#h"/><use href="#e"/></svg>'
                )
            );
    }

    function getHaka() external view returns (string memory) {
        return
            string(
                abi.encodePacked(
                    '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" buffered-rendering="static" width="1200px" height="1200px" viewBox="0,0,1200,1200"><defs>',
                    '<g id="hakc">', haka, '</g>',
                    '</defs><use href="#hakc"/></svg>'
                )
            );
    }

    function getWeight(uint256 _parts, uint256 _id) external view returns (uint256) {
        return weights[Parts(_parts)][_id];
    }

    function getTotalWeight(uint256 _parts) external view returns (uint256) {
        return totalWeight[Parts(_parts)];
    }

    function getImageName(uint256 _parts, uint256 _id) external view returns (string memory) {
        return imageNames[Parts(_parts)][_id];
    }

    function getImageIdCounter(uint256 _parts) external view returns (uint256) {
        return imageIdCounter[Parts(_parts)];
    }

    function importHaka(string memory _svg) external onlyOwner {
        haka = _svg;
    }

    function importImage(uint256 _parts, uint256 _weight, string memory _svg, string memory _name) external onlyOwner {
        images[Parts(_parts)][imageIdCounter[Parts(_parts)]] = _svg;
        imageNames[Parts(_parts)][imageIdCounter[Parts(_parts)]] = _name;
        weights[Parts(_parts)][imageIdCounter[Parts(_parts)]] = _weight;
        totalWeight[Parts(_parts)] += _weight;
        imageIdCounter[Parts(_parts)]++;
    }

    function changeImage(uint256 _parts, uint256 _id, uint256 _weight, string memory _svg, string memory _name) external onlyOwner {
        require(_id < imageIdCounter[Parts(_parts)], "None");
        images[Parts(_parts)][_id] = _svg;
        imageNames[Parts(_parts)][imageIdCounter[Parts(_parts)]] = _name;
        totalWeight[Parts(_parts)] -= weights[Parts(_parts)][_id];
        weights[Parts(_parts)][_id] = _weight;
        totalWeight[Parts(_parts)] += _weight;
    }
}

File 2 of 3 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../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.
 *
 * By default, the owner account will be the one that deploys the contract. 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;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _setOwner(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _setOwner(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 {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 3 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @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;
    }
}

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

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"uint256","name":"_parts","type":"uint256"},{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_weight","type":"uint256"},{"internalType":"string","name":"_svg","type":"string"},{"internalType":"string","name":"_name","type":"string"}],"name":"changeImage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getHaka","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_parts","type":"uint256"}],"name":"getImageIdCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_parts","type":"uint256"},{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"getImageName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_back","type":"uint256"},{"internalType":"uint256","name":"_body","type":"uint256"},{"internalType":"uint256","name":"_hair","type":"uint256"},{"internalType":"uint256","name":"_eyewear","type":"uint256"},{"internalType":"uint256","name":"_face","type":"uint256"}],"name":"getKudasai","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_parts","type":"uint256"}],"name":"getTotalWeight","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_parts","type":"uint256"},{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"getWeight","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"haka","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum KudasaiStorage.Parts","name":"","type":"uint8"}],"name":"imageIdCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum KudasaiStorage.Parts","name":"","type":"uint8"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"imageNames","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum KudasaiStorage.Parts","name":"","type":"uint8"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"images","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_svg","type":"string"}],"name":"importHaka","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_parts","type":"uint256"},{"internalType":"uint256","name":"_weight","type":"uint256"},{"internalType":"string","name":"_svg","type":"string"},{"internalType":"string","name":"_name","type":"string"}],"name":"importImage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum KudasaiStorage.Parts","name":"","type":"uint8"}],"name":"totalWeight","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum KudasaiStorage.Parts","name":"","type":"uint8"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"weights","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b5061001a3361001f565b61006f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6118608061007e6000396000f3fe608060405234801561001057600080fd5b50600436106101365760003560e01c806380315592116100b257806398a7f4ad11610081578063cb2a0a7311610066578063cb2a0a7314610297578063d5187a85146102aa578063f2fde38b146102bd57600080fd5b806398a7f4ad14610264578063bd35c9441461026c57600080fd5b8063803155921461020e5780638da5cb5b146102165780639079eb0314610231578063982cbe8b1461024457600080fd5b8063397ba16b11610109578063687dd948116100ee578063687dd948146101de578063715018a6146101f357806377d51efa146101fb57600080fd5b8063397ba16b146101ab5780635b84150e146101cb57600080fd5b806302df2f901461013b5780630f39ee721461016457806321e28177146101855780632434c5bd14610198575b600080fd5b61014e610149366004610f3f565b6102d0565b60405161015b9190610f69565b60405180910390f35b610177610172366004610fb7565b610375565b60405190815260200161015b565b61014e610193366004610fb7565b6103d8565b6101776101a6366004610fd9565b6104c2565b6101776101b9366004610ff2565b60016020526000908152604090205481565b61014e6101d9366004611014565b610512565b6101f16101ec3660046110f2565b61061a565b005b6101f1610689565b6101f161020936600461112f565b6106ef565b61014e6109ff565b6000546040516001600160a01b03909116815260200161015b565b61014e61023f366004610f3f565b610a27565b610177610252366004610ff2565b60056020526000908152604090205481565b61014e610a4b565b61017761027a366004610f3f565b600460209081526000928352604080842090915290825290205481565b6101776102a5366004610fd9565b610a58565b6101f16102b83660046111a6565b610a70565b6101f16102cb366004611227565b610de1565b6002602090815260009283526040808420909152908252902080546102f490611250565b80601f016020809104026020016040519081016040528092919081815260200182805461032090611250565b801561036d5780601f106103425761010080835404028352916020019161036d565b820191906000526020600020905b81548152906001019060200180831161035057829003601f168201915b505050505081565b60006004600084600481111561038d5761038d61128a565b600481111561039e5761039e61128a565b60048111156103af576103af61128a565b815260200190815260200160002060008381526020019081526020016000205490505b92915050565b6060600360008460048111156103f0576103f061128a565b60048111156104015761040161128a565b60048111156104125761041261128a565b81526020019081526020016000206000838152602001908152602001600020805461043c90611250565b80601f016020809104026020016040519081016040528092919081815260200182805461046890611250565b80156104b55780601f1061048a576101008083540402835291602001916104b5565b820191906000526020600020905b81548152906001019060200180831161049857829003601f168201915b5050505050905092915050565b6000600560008360048111156104da576104da61128a565b60048111156104eb576104eb61128a565b60048111156104fc576104fc61128a565b8152602001908152602001600020549050919050565b60008581527fac33ff75c19e70fe83507db0d683fd3465c996598dc972688b7ace676c89077b602090815260408083208784527fe90b7bceb6e7df5418fb78d8ee546e97c83a08bbccc01a0644d599ccd2a7c2e083528184208785527f679795a0195a1b76cdebb7c51d74e058aee92919b8c3389af86ef24535e8a28c84528285208786527f88601476d11616a71c5be67555bd1dff4b1cbf21533d2669b768b61518cfe1c385528386208787527fee60d0579bcffd98e668647d59fec1ff86a7fb340ce572e844f234ae73a6918f8652958490209351606096610600969495939492939092909101611313565b604051602081830303815290604052905095945050505050565b6000546001600160a01b031633146106795760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b600661068582826115d4565b5050565b6000546001600160a01b031633146106e35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610670565b6106ed6000610ec3565b565b6000546001600160a01b031633146107495760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610670565b81600260008660048111156107605761076061128a565b60048111156107715761077161128a565b60048111156107825761078261128a565b81526020019081526020016000206000600160008860048111156107a8576107a861128a565b60048111156107b9576107b961128a565b60048111156107ca576107ca61128a565b815260200190815260200160002054815260200190815260200160002090816107f391906115d4565b50806003600086600481111561080b5761080b61128a565b600481111561081c5761081c61128a565b600481111561082d5761082d61128a565b81526020019081526020016000206000600160008860048111156108535761085361128a565b60048111156108645761086461128a565b60048111156108755761087561128a565b8152602001908152602001600020548152602001908152602001600020908161089e91906115d4565b5082600460008660048111156108b6576108b661128a565b60048111156108c7576108c761128a565b60048111156108d8576108d861128a565b81526020019081526020016000206000600160008860048111156108fe576108fe61128a565b600481111561090f5761090f61128a565b60048111156109205761092061128a565b81526020019081526020016000205481526020019081526020016000208190555082600560008660048111156109585761095861128a565b60048111156109695761096961128a565b600481111561097a5761097a61128a565b8152602001908152602001600020600082825461099791906116aa565b909155506001905060008560048111156109b3576109b361128a565b60048111156109c4576109c461128a565b60048111156109d5576109d561128a565b815260200190815260200160002060008154809291906109f4906116bd565b919050555050505050565b60606006604051602001610a1391906116d6565b604051602081830303815290604052905090565b6003602090815260009283526040808420909152908252902080546102f490611250565b600680546102f490611250565b6000600160008360048111156104da576104da61128a565b6000546001600160a01b03163314610aca5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610670565b60016000866004811115610ae057610ae061128a565b6004811115610af157610af161128a565b6004811115610b0257610b0261128a565b8152602001908152602001600020548410610b615760405162461bcd60e51b81526004016106709060208082526004908201527f4e6f6e6500000000000000000000000000000000000000000000000000000000604082015260600190565b8160026000876004811115610b7857610b7861128a565b6004811115610b8957610b8961128a565b6004811115610b9a57610b9a61128a565b815260200190815260200160002060008681526020019081526020016000209081610bc591906115d4565b508060036000876004811115610bdd57610bdd61128a565b6004811115610bee57610bee61128a565b6004811115610bff57610bff61128a565b8152602001908152602001600020600060016000896004811115610c2557610c2561128a565b6004811115610c3657610c3661128a565b6004811115610c4757610c4761128a565b81526020019081526020016000205481526020019081526020016000209081610c7091906115d4565b5060046000866004811115610c8757610c8761128a565b6004811115610c9857610c9861128a565b6004811115610ca957610ca961128a565b815260200190815260200160002060008581526020019081526020016000205460056000876004811115610cdf57610cdf61128a565b6004811115610cf057610cf061128a565b6004811115610d0157610d0161128a565b81526020019081526020016000206000828254610d1e9190611817565b90915550839050600460008782811115610d3a57610d3a61128a565b6004811115610d4b57610d4b61128a565b6004811115610d5c57610d5c61128a565b81526020019081526020016000206000868152602001908152602001600020819055508260056000876004811115610d9657610d9661128a565b6004811115610da757610da761128a565b6004811115610db857610db861128a565b81526020019081526020016000206000828254610dd591906116aa565b90915550505050505050565b6000546001600160a01b03163314610e3b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610670565b6001600160a01b038116610eb75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610670565b610ec081610ec3565b50565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b803560058110610f3a57600080fd5b919050565b60008060408385031215610f5257600080fd5b610f5b83610f2b565b946020939093013593505050565b600060208083528351808285015260005b81811015610f9657858101830151858201604001528201610f7a565b506000604082860101526040601f19601f8301168501019250505092915050565b60008060408385031215610fca57600080fd5b50508035926020909101359150565b600060208284031215610feb57600080fd5b5035919050565b60006020828403121561100457600080fd5b61100d82610f2b565b9392505050565b600080600080600060a0868803121561102c57600080fd5b505083359560208501359550604085013594606081013594506080013592509050565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261107657600080fd5b813567ffffffffffffffff808211156110915761109161104f565b604051601f8301601f19908116603f011681019082821181831017156110b9576110b961104f565b816040528381528660208588010111156110d257600080fd5b836020870160208301376000602085830101528094505050505092915050565b60006020828403121561110457600080fd5b813567ffffffffffffffff81111561111b57600080fd5b61112784828501611065565b949350505050565b6000806000806080858703121561114557600080fd5b8435935060208501359250604085013567ffffffffffffffff8082111561116b57600080fd5b61117788838901611065565b9350606087013591508082111561118d57600080fd5b5061119a87828801611065565b91505092959194509250565b600080600080600060a086880312156111be57600080fd5b853594506020860135935060408601359250606086013567ffffffffffffffff808211156111eb57600080fd5b6111f789838a01611065565b9350608088013591508082111561120d57600080fd5b5061121a88828901611065565b9150509295509295909350565b60006020828403121561123957600080fd5b81356001600160a01b038116811461100d57600080fd5b600181811c9082168061126457607f821691505b60208210810361128457634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052602160045260246000fd5b600081546112ad81611250565b600182811680156112c557600181146112da57611309565b60ff1984168752821515830287019450611309565b8560005260208060002060005b858110156113005781548a8201529084019082016112e7565b50505082870194505b5050505092915050565b7f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323081527f30302f7376672220786d6c6e733a786c696e6b3d22687474703a2f2f7777772e60208201527f77332e6f72672f313939392f786c696e6b222062756666657265642d72656e6460408201527f6572696e673d22737461746963222077696474683d223132303070782220686560608201527f696768743d22313230307078222076696577426f783d22302c302c313230302c60808201526b18991818111f1e3232b3399f60a11b60a0820152600060ac82017f3c672069643d22626b223e0000000000000000000000000000000000000000008152611419600b8201896112a0565b9050631e17b39f60e11b8082527f3c672069643d226264223e0000000000000000000000000000000000000000006004830152611459600f8301896112a0565b91508082527f3c672069643d2268223e000000000000000000000000000000000000000000006004830152611491600e8301886112a0565b91508082527f3c672069643d2265223e0000000000000000000000000000000000000000000060048301526114c9600e8301876112a0565b91508082527f3c672069643d2266223e000000000000000000000000000000000000000000006004830152611501600e8301866112a0565b9081527f3c2f646566733e3c75736520687265663d2223626b222f3e3c7573652068726560048201527f663d22236264222f3e3c75736520687265663d222366222f3e3c75736520687260248201527f65663d222368222f3e3c75736520687265663d222365222f3e3c2f7376673e00604482015260630198975050505050505050565b601f8211156115cf57600081815260208120601f850160051c810160208610156115ac5750805b601f850160051c820191505b818110156115cb578281556001016115b8565b5050505b505050565b815167ffffffffffffffff8111156115ee576115ee61104f565b611602816115fc8454611250565b84611585565b602080601f831160018114611637576000841561161f5750858301515b600019600386901b1c1916600185901b1785556115cb565b600085815260208120601f198616915b8281101561166657888601518255948401946001909101908401611647565b50858210156116845787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b808201808211156103d2576103d2611694565b6000600182016116cf576116cf611694565b5060010190565b7f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323081527f30302f7376672220786d6c6e733a786c696e6b3d22687474703a2f2f7777772e60208201527f77332e6f72672f313939392f786c696e6b222062756666657265642d72656e6460408201527f6572696e673d22737461746963222077696474683d223132303070782220686560608201527f696768743d22313230307078222076696577426f783d22302c302c313230302c60808201526b18991818111f1e3232b3399f60a11b60a0820152600060ac82017f3c672069643d2268616b63223e0000000000000000000000000000000000000081526117dc600d8201856112a0565b631e17b39f60e11b81527f3c2f646566733e3c75736520687265663d222368616b63222f3e3c2f7376673e6004820152602401949350505050565b818103818111156103d2576103d261169456fea264697066735822122076e312871ad761662cea4e480d8bbb34f57e8e62f5cb499505aa9369b4a20e7d64736f6c63430008100033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101365760003560e01c806380315592116100b257806398a7f4ad11610081578063cb2a0a7311610066578063cb2a0a7314610297578063d5187a85146102aa578063f2fde38b146102bd57600080fd5b806398a7f4ad14610264578063bd35c9441461026c57600080fd5b8063803155921461020e5780638da5cb5b146102165780639079eb0314610231578063982cbe8b1461024457600080fd5b8063397ba16b11610109578063687dd948116100ee578063687dd948146101de578063715018a6146101f357806377d51efa146101fb57600080fd5b8063397ba16b146101ab5780635b84150e146101cb57600080fd5b806302df2f901461013b5780630f39ee721461016457806321e28177146101855780632434c5bd14610198575b600080fd5b61014e610149366004610f3f565b6102d0565b60405161015b9190610f69565b60405180910390f35b610177610172366004610fb7565b610375565b60405190815260200161015b565b61014e610193366004610fb7565b6103d8565b6101776101a6366004610fd9565b6104c2565b6101776101b9366004610ff2565b60016020526000908152604090205481565b61014e6101d9366004611014565b610512565b6101f16101ec3660046110f2565b61061a565b005b6101f1610689565b6101f161020936600461112f565b6106ef565b61014e6109ff565b6000546040516001600160a01b03909116815260200161015b565b61014e61023f366004610f3f565b610a27565b610177610252366004610ff2565b60056020526000908152604090205481565b61014e610a4b565b61017761027a366004610f3f565b600460209081526000928352604080842090915290825290205481565b6101776102a5366004610fd9565b610a58565b6101f16102b83660046111a6565b610a70565b6101f16102cb366004611227565b610de1565b6002602090815260009283526040808420909152908252902080546102f490611250565b80601f016020809104026020016040519081016040528092919081815260200182805461032090611250565b801561036d5780601f106103425761010080835404028352916020019161036d565b820191906000526020600020905b81548152906001019060200180831161035057829003601f168201915b505050505081565b60006004600084600481111561038d5761038d61128a565b600481111561039e5761039e61128a565b60048111156103af576103af61128a565b815260200190815260200160002060008381526020019081526020016000205490505b92915050565b6060600360008460048111156103f0576103f061128a565b60048111156104015761040161128a565b60048111156104125761041261128a565b81526020019081526020016000206000838152602001908152602001600020805461043c90611250565b80601f016020809104026020016040519081016040528092919081815260200182805461046890611250565b80156104b55780601f1061048a576101008083540402835291602001916104b5565b820191906000526020600020905b81548152906001019060200180831161049857829003601f168201915b5050505050905092915050565b6000600560008360048111156104da576104da61128a565b60048111156104eb576104eb61128a565b60048111156104fc576104fc61128a565b8152602001908152602001600020549050919050565b60008581527fac33ff75c19e70fe83507db0d683fd3465c996598dc972688b7ace676c89077b602090815260408083208784527fe90b7bceb6e7df5418fb78d8ee546e97c83a08bbccc01a0644d599ccd2a7c2e083528184208785527f679795a0195a1b76cdebb7c51d74e058aee92919b8c3389af86ef24535e8a28c84528285208786527f88601476d11616a71c5be67555bd1dff4b1cbf21533d2669b768b61518cfe1c385528386208787527fee60d0579bcffd98e668647d59fec1ff86a7fb340ce572e844f234ae73a6918f8652958490209351606096610600969495939492939092909101611313565b604051602081830303815290604052905095945050505050565b6000546001600160a01b031633146106795760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b600661068582826115d4565b5050565b6000546001600160a01b031633146106e35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610670565b6106ed6000610ec3565b565b6000546001600160a01b031633146107495760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610670565b81600260008660048111156107605761076061128a565b60048111156107715761077161128a565b60048111156107825761078261128a565b81526020019081526020016000206000600160008860048111156107a8576107a861128a565b60048111156107b9576107b961128a565b60048111156107ca576107ca61128a565b815260200190815260200160002054815260200190815260200160002090816107f391906115d4565b50806003600086600481111561080b5761080b61128a565b600481111561081c5761081c61128a565b600481111561082d5761082d61128a565b81526020019081526020016000206000600160008860048111156108535761085361128a565b60048111156108645761086461128a565b60048111156108755761087561128a565b8152602001908152602001600020548152602001908152602001600020908161089e91906115d4565b5082600460008660048111156108b6576108b661128a565b60048111156108c7576108c761128a565b60048111156108d8576108d861128a565b81526020019081526020016000206000600160008860048111156108fe576108fe61128a565b600481111561090f5761090f61128a565b60048111156109205761092061128a565b81526020019081526020016000205481526020019081526020016000208190555082600560008660048111156109585761095861128a565b60048111156109695761096961128a565b600481111561097a5761097a61128a565b8152602001908152602001600020600082825461099791906116aa565b909155506001905060008560048111156109b3576109b361128a565b60048111156109c4576109c461128a565b60048111156109d5576109d561128a565b815260200190815260200160002060008154809291906109f4906116bd565b919050555050505050565b60606006604051602001610a1391906116d6565b604051602081830303815290604052905090565b6003602090815260009283526040808420909152908252902080546102f490611250565b600680546102f490611250565b6000600160008360048111156104da576104da61128a565b6000546001600160a01b03163314610aca5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610670565b60016000866004811115610ae057610ae061128a565b6004811115610af157610af161128a565b6004811115610b0257610b0261128a565b8152602001908152602001600020548410610b615760405162461bcd60e51b81526004016106709060208082526004908201527f4e6f6e6500000000000000000000000000000000000000000000000000000000604082015260600190565b8160026000876004811115610b7857610b7861128a565b6004811115610b8957610b8961128a565b6004811115610b9a57610b9a61128a565b815260200190815260200160002060008681526020019081526020016000209081610bc591906115d4565b508060036000876004811115610bdd57610bdd61128a565b6004811115610bee57610bee61128a565b6004811115610bff57610bff61128a565b8152602001908152602001600020600060016000896004811115610c2557610c2561128a565b6004811115610c3657610c3661128a565b6004811115610c4757610c4761128a565b81526020019081526020016000205481526020019081526020016000209081610c7091906115d4565b5060046000866004811115610c8757610c8761128a565b6004811115610c9857610c9861128a565b6004811115610ca957610ca961128a565b815260200190815260200160002060008581526020019081526020016000205460056000876004811115610cdf57610cdf61128a565b6004811115610cf057610cf061128a565b6004811115610d0157610d0161128a565b81526020019081526020016000206000828254610d1e9190611817565b90915550839050600460008782811115610d3a57610d3a61128a565b6004811115610d4b57610d4b61128a565b6004811115610d5c57610d5c61128a565b81526020019081526020016000206000868152602001908152602001600020819055508260056000876004811115610d9657610d9661128a565b6004811115610da757610da761128a565b6004811115610db857610db861128a565b81526020019081526020016000206000828254610dd591906116aa565b90915550505050505050565b6000546001600160a01b03163314610e3b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610670565b6001600160a01b038116610eb75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610670565b610ec081610ec3565b50565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b803560058110610f3a57600080fd5b919050565b60008060408385031215610f5257600080fd5b610f5b83610f2b565b946020939093013593505050565b600060208083528351808285015260005b81811015610f9657858101830151858201604001528201610f7a565b506000604082860101526040601f19601f8301168501019250505092915050565b60008060408385031215610fca57600080fd5b50508035926020909101359150565b600060208284031215610feb57600080fd5b5035919050565b60006020828403121561100457600080fd5b61100d82610f2b565b9392505050565b600080600080600060a0868803121561102c57600080fd5b505083359560208501359550604085013594606081013594506080013592509050565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261107657600080fd5b813567ffffffffffffffff808211156110915761109161104f565b604051601f8301601f19908116603f011681019082821181831017156110b9576110b961104f565b816040528381528660208588010111156110d257600080fd5b836020870160208301376000602085830101528094505050505092915050565b60006020828403121561110457600080fd5b813567ffffffffffffffff81111561111b57600080fd5b61112784828501611065565b949350505050565b6000806000806080858703121561114557600080fd5b8435935060208501359250604085013567ffffffffffffffff8082111561116b57600080fd5b61117788838901611065565b9350606087013591508082111561118d57600080fd5b5061119a87828801611065565b91505092959194509250565b600080600080600060a086880312156111be57600080fd5b853594506020860135935060408601359250606086013567ffffffffffffffff808211156111eb57600080fd5b6111f789838a01611065565b9350608088013591508082111561120d57600080fd5b5061121a88828901611065565b9150509295509295909350565b60006020828403121561123957600080fd5b81356001600160a01b038116811461100d57600080fd5b600181811c9082168061126457607f821691505b60208210810361128457634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052602160045260246000fd5b600081546112ad81611250565b600182811680156112c557600181146112da57611309565b60ff1984168752821515830287019450611309565b8560005260208060002060005b858110156113005781548a8201529084019082016112e7565b50505082870194505b5050505092915050565b7f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323081527f30302f7376672220786d6c6e733a786c696e6b3d22687474703a2f2f7777772e60208201527f77332e6f72672f313939392f786c696e6b222062756666657265642d72656e6460408201527f6572696e673d22737461746963222077696474683d223132303070782220686560608201527f696768743d22313230307078222076696577426f783d22302c302c313230302c60808201526b18991818111f1e3232b3399f60a11b60a0820152600060ac82017f3c672069643d22626b223e0000000000000000000000000000000000000000008152611419600b8201896112a0565b9050631e17b39f60e11b8082527f3c672069643d226264223e0000000000000000000000000000000000000000006004830152611459600f8301896112a0565b91508082527f3c672069643d2268223e000000000000000000000000000000000000000000006004830152611491600e8301886112a0565b91508082527f3c672069643d2265223e0000000000000000000000000000000000000000000060048301526114c9600e8301876112a0565b91508082527f3c672069643d2266223e000000000000000000000000000000000000000000006004830152611501600e8301866112a0565b9081527f3c2f646566733e3c75736520687265663d2223626b222f3e3c7573652068726560048201527f663d22236264222f3e3c75736520687265663d222366222f3e3c75736520687260248201527f65663d222368222f3e3c75736520687265663d222365222f3e3c2f7376673e00604482015260630198975050505050505050565b601f8211156115cf57600081815260208120601f850160051c810160208610156115ac5750805b601f850160051c820191505b818110156115cb578281556001016115b8565b5050505b505050565b815167ffffffffffffffff8111156115ee576115ee61104f565b611602816115fc8454611250565b84611585565b602080601f831160018114611637576000841561161f5750858301515b600019600386901b1c1916600185901b1785556115cb565b600085815260208120601f198616915b8281101561166657888601518255948401946001909101908401611647565b50858210156116845787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b808201808211156103d2576103d2611694565b6000600182016116cf576116cf611694565b5060010190565b7f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323081527f30302f7376672220786d6c6e733a786c696e6b3d22687474703a2f2f7777772e60208201527f77332e6f72672f313939392f786c696e6b222062756666657265642d72656e6460408201527f6572696e673d22737461746963222077696474683d223132303070782220686560608201527f696768743d22313230307078222076696577426f783d22302c302c313230302c60808201526b18991818111f1e3232b3399f60a11b60a0820152600060ac82017f3c672069643d2268616b63223e0000000000000000000000000000000000000081526117dc600d8201856112a0565b631e17b39f60e11b81527f3c2f646566733e3c75736520687265663d222368616b63222f3e3c2f7376673e6004820152602401949350505050565b818103818111156103d2576103d261169456fea264697066735822122076e312871ad761662cea4e480d8bbb34f57e8e62f5cb499505aa9369b4a20e7d64736f6c63430008100033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
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.