ETH Price: $3,427.55 (+3.23%)

Contract

0xEC321cEec36D3FBa261e055C287c382B7b215ACD
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Upload Traits141045972022-01-30 2:59:261028 days ago1643511566IN
0xEC321cEe...B7b215ACD
0 ETH0.3466083957.94667621
Upload Traits141045962022-01-30 2:59:221028 days ago1643511562IN
0xEC321cEe...B7b215ACD
0 ETH0.1104047560.19077603
Upload Traits141044742022-01-30 2:34:101028 days ago1643510050IN
0xEC321cEe...B7b215ACD
0 ETH0.1629813667.83067161
Upload Traits141041682022-01-30 1:28:411028 days ago1643506121IN
0xEC321cEe...B7b215ACD
0 ETH0.4298146664.21854629
Upload Traits141039772022-01-30 0:47:451028 days ago1643503665IN
0xEC321cEe...B7b215ACD
0 ETH0.1715717470.85343789
Upload Traits141039702022-01-30 0:46:271028 days ago1643503587IN
0xEC321cEe...B7b215ACD
0 ETH0.0566625868.29499518
Upload Traits141039582022-01-30 0:44:481028 days ago1643503488IN
0xEC321cEe...B7b215ACD
0 ETH0.2056575875.67300391
Upload Traits141039112022-01-30 0:32:561028 days ago1643502776IN
0xEC321cEe...B7b215ACD
0 ETH0.4067138175.98169253
Add Delegates141038822022-01-30 0:28:191028 days ago1643502499IN
0xEC321cEe...B7b215ACD
0 ETH0.0051808475.45316466
0x60046101141036652022-01-29 23:39:331028 days ago1643499573IN
 Create: RaiderRender
0 ETH0.1786727773.34365496

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

Contract Source Code Verified (Exact Match)

Contract Name:
RaiderRender

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at Etherscan.io on 2022-01-29
*/

// SPDX-License-Identifier: MIT

pragma solidity 0.8.9;



// Part: IRaider

interface IRaider {
    struct Raider {
        uint256 dna;
        uint256 active_weapon;
    }

    struct RaiderTraits {
        bool isFemale;
        uint256 skin;
        uint256 hair;
        uint256 boots;
        uint256 pants;
        uint256 outfit;
        uint256 headwear;
        uint256 accessory;
        uint256 active_weapon;
    }

    function getTokenRaider(uint256 _tokenId) external view returns (Raider memory);

    function ownerOf(uint256 tokenId) external view returns (address owner);

    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;
}

// Part: IRaiderArmory

interface IRaiderArmory {
    function addWeaponToToken(uint256 _tokenId, uint256 _weaponId) external;

    function hasWeapon(uint256 _tokenId, uint256 _weaponId)
        external
        returns (bool);

    function getMaxWeaponScore(uint256 _tokenId) external view returns (uint8);
}

// Part: IRaiderRender

interface IRaiderRender {
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

// Part: OpenZeppelin/[email protected]/Context

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

// Part: OpenZeppelin/[email protected]/Strings

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

// Part: OpenZeppelin/[email protected]/Ownable

/**
 * @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() {
        _transferOwnership(_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 {
        _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 {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _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);
    }
}

// File: RaiderRender.sol

contract RaiderRender is IRaiderRender, Ownable {
    using Strings for uint256;

    // mapping from trait (index) to its name
    string[9] traitTypes = [
        "Skin",
        "Hair",
        "Boots",
        "Pants",
        "Outfit",
        "Headwear",
        "Accessory",
        "Active weapon"
    ];

    // struct to store a trait's data for metadata and rendering
    struct Trait {
        string name;
        string png;
    }

    // mapping trait type (see traitTypes) to a mapping of an id to a trait expression
    mapping(uint256 => mapping(uint256 => Trait)) public traitData;

    // reference to raider
    IRaider private raider;
    // reference to armory
    IRaiderArmory private armory;

    constructor() {}

    /**********/
    /** ADMIN */
    /**********/

    function addDelegates(address _raidersContract, address _armoryContract) external onlyOwner {
        raider = IRaider(_raidersContract);
        armory = IRaiderArmory(_armoryContract);
    }

    /**
     * @notice uploads names and images associated with each trait
     * @param _traitType - the trait type to upload the traits for (see traitTypes)
     * @param _traitIds - ids for each trait expression
     * @param _traits - the names and base64 encoded PNGs for each trait expression
     */
    function uploadTraits(
        uint256 _traitType,
        uint256[] calldata _traitIds,
        Trait[] calldata _traits
    ) external onlyOwner {
        require(_traitIds.length == _traits.length, "Mismatched inputs");
        for (uint256 i = 0; i < _traits.length; i++) {
            traitData[_traitType][_traitIds[i]] = Trait(
                _traits[i].name,
                _traits[i].png
            );
        }
    }

    /**
     * @notice generates an <image> element using a base64 encoded PNG
     * @param _trait - the trait expression name and base 64 encoded PNG
     * @return the <image> element
     */
    function generateImgTrait(Trait memory _trait)
        private
        pure
        returns (string memory)
    {
        return
            string(
                abi.encodePacked(
                    '<image x="4" y="4" height="50" image-rendering="pixelated" preserveAspectRatio="xMidYMid" xlink:href="data:image/png;base64,',
                    _trait.png,
                    '"/>'
                )
            );
    }

    /*************/
    /** EXTERNAL */
    /*************/

    /**
     * @notice generates Raider struct for a tokenId
     * @param _tokenId - the tokenId to generate the struct for
     * @return struct of a specific Raider
     */
    function generateTokenTraits(uint256 _tokenId) public view returns (IRaider.RaiderTraits memory) {
        IRaider.Raider memory r = raider.getTokenRaider(_tokenId);
        IRaider.RaiderTraits memory traits;

        uint256 dna = r.dna;
        // gender
        traits.isFemale = ((dna % 100) % 2 == 0);
        dna = dna / 100;
        // skin
        traits.skin = traits.isFemale
            ? ((dna % 100) % 5)
            : (((dna % 100) % 5) + 5);
        dna = dna / 100;
        // hair
        traits.hair = traits.isFemale
            ? ((dna % 100) % 4)
            : (((dna % 100) % 4) + 4);
        dna = dna / 100;
        // boots
        traits.boots = ((dna % 100) % 4);
        dna = dna / 100;
        // pants
        traits.pants = ((dna % 100) % 7);
        dna = dna / 100;
        // outfit
        traits.outfit = traits.isFemale
            ? ((dna % 100) % 10)
            : (((dna % 100) % 10) + 10);
        dna = dna / 100;
        // headwear
        traits.headwear = ((dna % 100) % 8);
        dna = dna / 100;
        // accessory
        traits.accessory = ((dna % 100) % 7);
        // weapon
        traits.active_weapon = (r.active_weapon);

        return traits;
    }

    /**
     * @notice generates a full SVG from a token's tokenTraits by adding multiple <image> elements in order
     * @param _tokenId - the tokenId to generate the  SVG for
     * @param _traits - the Raider struct containing the traits
     * @return SVG of a raider
     */
    function compileSVG(uint256 _tokenId, IRaider.RaiderTraits memory _traits) public view returns (string memory) {

        string memory svg = string(
            abi.encodePacked(
                generateImgTrait(traitData[0][_traits.skin]),
                generateImgTrait(traitData[1][_traits.hair]),
                generateImgTrait(traitData[2][_traits.boots]),
                generateImgTrait(traitData[3][_traits.pants]),
                generateImgTrait(traitData[4][_traits.outfit]),
                generateImgTrait(traitData[5][_traits.headwear]),
                generateImgTrait(traitData[6][_traits.accessory]),
                generateImgTrait(traitData[7][_traits.active_weapon])
            )
        );

        return
            string(
                abi.encodePacked(
                    '<svg id="raiderversegen1" width="100%" height="100%" version="1.1" viewBox="0 0 58 58" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">',
                    svg,
                    "</svg>"
                )
            );
    }

    /**
     * @notice generates an attribute for the attribute array
     * @param _traitType - the string value of a trait (see traitTypes)
     * @param _value - the expression of that trait type
     * @return a JSON dictionary of a single attribute
     */
    function generateAttribute(string memory _traitType, string memory _value)
        private
        pure
        returns (string memory)
    {
        return
            string(
                abi.encodePacked(
                    '{"trait_type":"',
                    _traitType,
                    '","value":"',
                    _value,
                    '"}'
                )
            );
    }

    /**
     * @notice generates the attribute array for a given tokenId
     * @param _tokenId the tokenId
     * @param _traits - the Raider struct containing the traits
     * @return a JSON dictionary of a tokenIds attributes
     */
    function compileAttributes(uint256 _tokenId, IRaider.RaiderTraits memory _traits)
        public
        view
        returns (string memory)
    {
               
        string memory attributes = string(
            abi.encodePacked(
                generateAttribute(traitTypes[0], traitData[0][_traits.skin].name),
                ",",
                generateAttribute(traitTypes[1], traitData[1][_traits.hair].name),
                ",",
                generateAttribute(traitTypes[2], traitData[2][_traits.boots].name),
                ",",
                generateAttribute(traitTypes[3], traitData[3][_traits.pants].name),
                ",",
                generateAttribute(traitTypes[4], traitData[4][_traits.outfit].name),
                ",",
                generateAttribute(traitTypes[5], traitData[5][_traits.headwear].name),
                ",",
                generateAttribute(
                    traitTypes[6],
                    traitData[6][_traits.accessory].name
                ),
                ",",
                generateAttribute(
                    traitTypes[7],
                    traitData[7][_traits.active_weapon].name
                ),
                ","
            )
        );

        return
            string(
                abi.encodePacked(
                    "[",
                    attributes,
                    '{"trait_type":"Gender","value":',
                    _traits.isFemale ? '"Female"},' : '"Male"},',
                    '{"trait_type":"Max weapon score","value":',
                    uint2str(armory.getMaxWeaponScore(_tokenId)),
                    ',"max_value":10},',
                    '{"display_type":"number","trait_type":"Generation","value":1}',
                    "]"
                )
            );
    }

    /**
     * @notice generates a base64 encoded metadata response without referencing off-chain content
     * @param tokenId the id of the token to generate the metadata for
     * @return a base64 encoded JSON dictionary of the token's metadata and SVG
     */
    function tokenURI(uint256 tokenId)
        public
        view
        override
        returns (string memory)
    {
        IRaider.RaiderTraits memory traits = generateTokenTraits(tokenId);

        string memory metadata = string(
            abi.encodePacked(
                '{"name":"Raider #',
                tokenId.toString(),
                '","description":"Thousands of unique tomb raiders and enemies hunting for $RGO. 100% on chain and public domain.","image":"data:image/svg+xml;base64,',
                base64(bytes(compileSVG(tokenId, traits))),
                '","attributes":',
                compileAttributes(tokenId, traits),
                "}"
            )
        );

        return
            string(
                abi.encodePacked(
                    "data:application/json;base64,",
                    base64(bytes(metadata))
                )
            );
    }

    /***************/
    /* UINT2STRING */
    /***************/

    function uint2str(uint256 _i)
        internal
        pure
        returns (string memory _uintAsString)
    {
        if (_i == 0) {
            return "0";
        }
        uint256 j = _i;
        uint256 len;
        while (j != 0) {
            len++;
            j /= 10;
        }
        bytes memory bstr = new bytes(len);
        uint256 k = len;
        while (_i != 0) {
            k = k - 1;
            uint8 temp = (48 + uint8(_i - (_i / 10) * 10));
            bytes1 b1 = bytes1(temp);
            bstr[k] = b1;
            _i /= 10;
        }
        return string(bstr);
    }

    /************************************/
    /* BASE 64 - Written by Brech Devos */
    /************************************/

    string internal constant TABLE =
        "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

    function base64(bytes memory data) internal pure returns (string memory) {
        if (data.length == 0) return "";

        // load the table into memory
        string memory table = TABLE;

        // multiply by 4/3 rounded up
        uint256 encodedLen = 4 * ((data.length + 2) / 3);

        // add some extra buffer at the end required for the writing
        string memory result = new string(encodedLen + 32);

        assembly {
            // set the actual output length
            mstore(result, encodedLen)

            // prepare the lookup table
            let tablePtr := add(table, 1)

            // input ptr
            let dataPtr := data
            let endPtr := add(dataPtr, mload(data))

            // result ptr, jump over length
            let resultPtr := add(result, 32)

            // run over the input, 3 bytes at a time
            for {

            } lt(dataPtr, endPtr) {

            } {
                dataPtr := add(dataPtr, 3)

                // read 3 bytes
                let input := mload(dataPtr)

                // write 4 characters
                mstore(
                    resultPtr,
                    shl(248, mload(add(tablePtr, and(shr(18, input), 0x3F))))
                )
                resultPtr := add(resultPtr, 1)
                mstore(
                    resultPtr,
                    shl(248, mload(add(tablePtr, and(shr(12, input), 0x3F))))
                )
                resultPtr := add(resultPtr, 1)
                mstore(
                    resultPtr,
                    shl(248, mload(add(tablePtr, and(shr(6, input), 0x3F))))
                )
                resultPtr := add(resultPtr, 1)
                mstore(
                    resultPtr,
                    shl(248, mload(add(tablePtr, and(input, 0x3F))))
                )
                resultPtr := add(resultPtr, 1)
            }

            // padding with '='
            switch mod(mload(data), 3)
            case 1 {
                mstore(sub(resultPtr, 2), shl(240, 0x3d3d))
            }
            case 2 {
                mstore(sub(resultPtr, 1), shl(248, 0x3d))
            }
        }

        return result;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"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":"address","name":"_raidersContract","type":"address"},{"internalType":"address","name":"_armoryContract","type":"address"}],"name":"addDelegates","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"components":[{"internalType":"bool","name":"isFemale","type":"bool"},{"internalType":"uint256","name":"skin","type":"uint256"},{"internalType":"uint256","name":"hair","type":"uint256"},{"internalType":"uint256","name":"boots","type":"uint256"},{"internalType":"uint256","name":"pants","type":"uint256"},{"internalType":"uint256","name":"outfit","type":"uint256"},{"internalType":"uint256","name":"headwear","type":"uint256"},{"internalType":"uint256","name":"accessory","type":"uint256"},{"internalType":"uint256","name":"active_weapon","type":"uint256"}],"internalType":"struct IRaider.RaiderTraits","name":"_traits","type":"tuple"}],"name":"compileAttributes","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"components":[{"internalType":"bool","name":"isFemale","type":"bool"},{"internalType":"uint256","name":"skin","type":"uint256"},{"internalType":"uint256","name":"hair","type":"uint256"},{"internalType":"uint256","name":"boots","type":"uint256"},{"internalType":"uint256","name":"pants","type":"uint256"},{"internalType":"uint256","name":"outfit","type":"uint256"},{"internalType":"uint256","name":"headwear","type":"uint256"},{"internalType":"uint256","name":"accessory","type":"uint256"},{"internalType":"uint256","name":"active_weapon","type":"uint256"}],"internalType":"struct IRaider.RaiderTraits","name":"_traits","type":"tuple"}],"name":"compileSVG","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"generateTokenTraits","outputs":[{"components":[{"internalType":"bool","name":"isFemale","type":"bool"},{"internalType":"uint256","name":"skin","type":"uint256"},{"internalType":"uint256","name":"hair","type":"uint256"},{"internalType":"uint256","name":"boots","type":"uint256"},{"internalType":"uint256","name":"pants","type":"uint256"},{"internalType":"uint256","name":"outfit","type":"uint256"},{"internalType":"uint256","name":"headwear","type":"uint256"},{"internalType":"uint256","name":"accessory","type":"uint256"},{"internalType":"uint256","name":"active_weapon","type":"uint256"}],"internalType":"struct IRaider.RaiderTraits","name":"","type":"tuple"}],"stateMutability":"view","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":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"traitData","outputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"png","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_traitType","type":"uint256"},{"internalType":"uint256[]","name":"_traitIds","type":"uint256[]"},{"components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"png","type":"string"}],"internalType":"struct RaiderRender.Trait[]","name":"_traits","type":"tuple[]"}],"name":"uploadTraits","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60046101808181526329b5b4b760e11b6101a05260809081526101c0918252632430b4b960e11b6101e05260a091909152600561020081815264426f6f747360d81b6102205260c0526102409081526450616e747360d81b6102605260e05260066102809081526513dd5d199a5d60d21b6102a0526101005260086102c0818152672432b0b23bb2b0b960c11b6102e052610120526009610300908152684163636573736f727960b81b6103205261014052610380604052600d6103409081526c20b1ba34bb32903bb2b0b837b760991b6103605261016052620000e69160019162000156565b50348015620000f457600080fd5b50620001003362000106565b620002ef565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b82600981019282156200019b579160200282015b828111156200019b57825180516200018a918491602090910190620001ad565b50916020019190600101906200016a565b50620001a992915062000238565b5090565b828054620001bb90620002b2565b90600052602060002090601f016020900481019282620001df57600085556200022a565b82601f10620001fa57805160ff19168380011785556200022a565b828001600101855582156200022a579182015b828111156200022a5782518255916020019190600101906200020d565b50620001a992915062000259565b80821115620001a95760006200024f828262000270565b5060010162000238565b5b80821115620001a957600081556001016200025a565b5080546200027e90620002b2565b6000825580601f106200028f575050565b601f016020900490600052602060002090810190620002af919062000259565b50565b600181811c90821680620002c757607f821691505b60208210811415620002e957634e487b7160e01b600052602260045260246000fd5b50919050565b61272780620002ff6000396000f3fe608060405234801561001057600080fd5b506004361061009e5760003560e01c806376496edd1161006657806376496edd1461011d5780638da5cb5b14610130578063c87b56dd1461014b578063f0025c1e1461015e578063f2fde38b146101e057600080fd5b806309dbabca146100a357806315b32aa0146100cd5780633ca6eba2146100e25780636652b94414610102578063715018a614610115575b600080fd5b6100b66100b1366004611adb565b6101f3565b6040516100c4929190611b59565b60405180910390f35b6100e06100db366004611ba3565b61032a565b005b6100f56100f0366004611c34565b61038b565b6040516100c49190611cd6565b6100e0610110366004611d3c565b610bec565b6100e0610dc8565b6100f561012b366004611c34565b610dfe565b6000546040516001600160a01b0390911681526020016100c4565b6100f5610159366004611db6565b611229565b61017161016c366004611db6565b6112b3565b6040516100c491906000610120820190508251151582526020830151602083015260408301516040830152606083015160608301526080830151608083015260a083015160a083015260c083015160c083015260e083015160e083015261010080840151818401525092915050565b6100e06101ee366004611dcf565b611519565b600a60209081526000928352604080842090915290825290208054819061021990611dea565b80601f016020809104026020016040519081016040528092919081815260200182805461024590611dea565b80156102925780601f1061026757610100808354040283529160200191610292565b820191906000526020600020905b81548152906001019060200180831161027557829003601f168201915b5050505050908060010180546102a790611dea565b80601f01602080910402602001604051908101604052809291908181526020018280546102d390611dea565b80156103205780601f106102f557610100808354040283529160200191610320565b820191906000526020600020905b81548152906001019060200180831161030357829003601f168201915b5050505050905082565b6000546001600160a01b0316331461035d5760405162461bcd60e51b815260040161035490611e25565b60405180910390fd5b600b80546001600160a01b039384166001600160a01b031991821617909155600c8054929093169116179055565b606060006104e96001820180546103a190611dea565b80601f01602080910402602001604051908101604052809291908181526020018280546103cd90611dea565b801561041a5780601f106103ef5761010080835404028352916020019161041a565b820191906000526020600020905b8154815290600101906020018083116103fd57829003601f168201915b50506000808052600a60209081528981015182527f13da86008ba1c6922daee3e07db95305ef49ebced9f5467a0b8613fcc6b343e3905260409020805490935061046692509050611dea565b80601f016020809104026020016040519081016040528092919081815260200182805461049290611dea565b80156104df5780601f106104b4576101008083540402835291602001916104df565b820191906000526020600020905b8154815290600101906020018083116104c257829003601f168201915b50505050506115b4565b6105c36001800180546104fb90611dea565b80601f016020809104026020016040519081016040528092919081815260200182805461052790611dea565b80156105745780601f1061054957610100808354040283529160200191610574565b820191906000526020600020905b81548152906001019060200180831161055757829003601f168201915b505060016000908152600a602090815260408b81015183527fbbc70db1b6c7afd11e79c0fb0051300458f1a3acb8ee9789d9b6b26c61ad9bc79091529020805490935061046692509050611dea565b61069e600160020180546105d690611dea565b80601f016020809104026020016040519081016040528092919081815260200182805461060290611dea565b801561064f5780601f106106245761010080835404028352916020019161064f565b820191906000526020600020905b81548152906001019060200180831161063257829003601f168201915b505060026000908152600a602090815260608c015182527fbff4442b8ed600beeb8e26b1279a0f0d14c6edfaec26d968ee13c86f7d4c2ba8905260409020805490935061046692509050611dea565b610779600160030180546106b190611dea565b80601f01602080910402602001604051908101604052809291908181526020018280546106dd90611dea565b801561072a5780601f106106ff5761010080835404028352916020019161072a565b820191906000526020600020905b81548152906001019060200180831161070d57829003601f168201915b505060036000908152600a602090815260808d015182527fa856840544dc26124927add067d799967eac11be13e14d82cc281ea46fa39759905260409020805490935061046692509050611dea565b6108546001600401805461078c90611dea565b80601f01602080910402602001604051908101604052809291908181526020018280546107b890611dea565b80156108055780601f106107da57610100808354040283529160200191610805565b820191906000526020600020905b8154815290600101906020018083116107e857829003601f168201915b505060046000908152600a602090815260a08e015182527fe1eb2b2161a492c07c5a334e48012567cba93ec021043f53c1955516a3c5a841905260409020805490935061046692509050611dea565b61092f6001600501805461086790611dea565b80601f016020809104026020016040519081016040528092919081815260200182805461089390611dea565b80156108e05780601f106108b5576101008083540402835291602001916108e0565b820191906000526020600020905b8154815290600101906020018083116108c357829003601f168201915b505060056000908152600a602090815260c08f015182527ff35035bc2b01d44bd35a1dcdc552315cffb73da35cfd60570b7b777f98036f9f905260409020805490935061046692509050611dea565b6109f76001600601805461094290611dea565b80601f016020809104026020016040519081016040528092919081815260200182805461096e90611dea565b80156109bb5780601f10610990576101008083540402835291602001916109bb565b820191906000526020600020905b81548152906001019060200180831161099e57829003601f168201915b5050505050600a60006006815260200190815260200160002060008c60e001518152602001908152602001600020600001805461046690611dea565b610ac060016007018054610a0a90611dea565b80601f0160208091040260200160405190810160405280929190818152602001828054610a3690611dea565b8015610a835780601f10610a5857610100808354040283529160200191610a83565b820191906000526020600020905b815481529060010190602001808311610a6657829003601f168201915b5050505050600a60006007815260200190815260200160002060008d61010001518152602001908152602001600020600001805461046690611dea565b604051602001610ad7989796959493929190611e8c565b6040516020818303038152906040529050808360000151610b1857604051806040016040528060088152602001670893585b19489f4b60c21b815250610b3c565b6040518060400160405280600a8152602001690891995b585b19489f4b60b21b8152505b600c546040516361d1832160e11b815260048101889052610bc2916001600160a01b03169063c3a306429060240160206040518083038186803b158015610b8257600080fd5b505afa158015610b96573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bba9190611f5d565b60ff166115e0565b604051602001610bd493929190611f80565b60405160208183030381529060405291505092915050565b6000546001600160a01b03163314610c165760405162461bcd60e51b815260040161035490611e25565b828114610c595760405162461bcd60e51b81526020600482015260116024820152704d69736d61746368656420696e7075747360781b6044820152606401610354565b60005b81811015610dc0576040518060400160405280848484818110610c8157610c81611e5a565b9050602002810190610c9391906120ac565b610c9d90806120cc565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250505090825250602001848484818110610ce957610ce9611e5a565b9050602002810190610cfb91906120ac565b610d099060208101906120cc565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920182905250939094525050888152600a602052604081209150878785818110610d5f57610d5f611e5a565b9050602002013581526020019081526020016000206000820151816000019080519060200190610d909291906119f4565b506020828101518051610da992600185019201906119f4565b509050508080610db890612129565b915050610c5c565b505050505050565b6000546001600160a01b03163314610df25760405162461bcd60e51b815260040161035490611e25565b610dfc6000611709565b565b6000808052600a60209081528281015182527f13da86008ba1c6922daee3e07db95305ef49ebced9f5467a0b8613fcc6b343e3905260408082208151808301909252805460609392610f7292909182908290610e5990611dea565b80601f0160208091040260200160405190810160405280929190818152602001828054610e8590611dea565b8015610ed25780601f10610ea757610100808354040283529160200191610ed2565b820191906000526020600020905b815481529060010190602001808311610eb557829003601f168201915b50505050508152602001600182018054610eeb90611dea565b80601f0160208091040260200160405190810160405280929190818152602001828054610f1790611dea565b8015610f645780601f10610f3957610100808354040283529160200191610f64565b820191906000526020600020905b815481529060010190602001808311610f4757829003601f168201915b505050505081525050611759565b60016000908152600a602090815260408681015183527fbbc70db1b6c7afd11e79c0fb0051300458f1a3acb8ee9789d9b6b26c61ad9bc79091529081902081518083019092528054610fcd92919082908290610e5990611dea565b60026000908152600a6020908152606087015182527fbff4442b8ed600beeb8e26b1279a0f0d14c6edfaec26d968ee13c86f7d4c2ba890526040908190208151808301909252805461102892919082908290610e5990611dea565b60036000908152600a6020908152608088015182527fa856840544dc26124927add067d799967eac11be13e14d82cc281ea46fa3975990526040908190208151808301909252805461108392919082908290610e5990611dea565b60046000908152600a602090815260a089015182527fe1eb2b2161a492c07c5a334e48012567cba93ec021043f53c1955516a3c5a8419052604090819020815180830190925280546110de92919082908290610e5990611dea565b60056000908152600a602090815260c08a015182527ff35035bc2b01d44bd35a1dcdc552315cffb73da35cfd60570b7b777f98036f9f90526040908190208151808301909252805461113992919082908290610e5990611dea565b60066000908152600a602090815260e08b015182527f10d9dd018e4cae503383c9f804c1c1603ada5856ee7894375d9b97cd8c8b27db90526040908190208151808301909252805461119492919082908290610e5990611dea565b60076000908152600a60209081526101008c015182527f22e39f61d1e4986b4f116cea9067f62cc77d74dff1780ae9c8b5166d1dd288299052604090819020815180830190925280546111f092919082908290610e5990611dea565b604051602001611207989796959493929190612144565b604051602081830303815290604052905080604051602001610bd491906121e9565b60606000611236836112b3565b9050600061124384611786565b6112556112508685610dfe565b61188c565b61125f868561038b565b604051602001611271939291906122e4565b604051602081830303815290604052905061128b8161188c565b60405160200161129b9190612429565b60405160208183030381529060405292505050919050565b6112bb611a78565b600b5460405163650bd3d360e01b8152600481018490526000916001600160a01b03169063650bd3d390602401604080518083038186803b1580156112ff57600080fd5b505afa158015611313573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611337919061246e565b9050611341611a78565b815160026113506064836124e1565b61135a91906124e1565b1582526113686064826124f5565b825190915061139857600561137e6064836124e1565b61138891906124e1565b611393906005612509565b6113af565b60056113a56064836124e1565b6113af91906124e1565b60208301526113bf6064826124f5565b82519091506113ef5760046113d56064836124e1565b6113df91906124e1565b6113ea906004612509565b611406565b60046113fc6064836124e1565b61140691906124e1565b60408301526114166064826124f5565b905060046114256064836124e1565b61142f91906124e1565b606083015261143f6064826124f5565b9050600761144e6064836124e1565b61145891906124e1565b60808301526114686064826124f5565b825190915061149857600a61147e6064836124e1565b61148891906124e1565b61149390600a612509565b6114af565b600a6114a56064836124e1565b6114af91906124e1565b60a08301526114bf6064826124f5565b905060086114ce6064836124e1565b6114d891906124e1565b60c08301526114e86064826124f5565b905060076114f76064836124e1565b61150191906124e1565b60e08301525060209091015161010082015292915050565b6000546001600160a01b031633146115435760405162461bcd60e51b815260040161035490611e25565b6001600160a01b0381166115a85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610354565b6115b181611709565b50565b606082826040516020016115c9929190612521565b604051602081830303815290604052905092915050565b6060816116045750506040805180820190915260018152600360fc1b602082015290565b8160005b811561162e578061161881612129565b91506116279050600a836124f5565b9150611608565b60008167ffffffffffffffff81111561164957611649611bd6565b6040519080825280601f01601f191660200182016040528015611673576020820181803683370190505b509050815b851561170057611689600182612592565b90506000611698600a886124f5565b6116a390600a6125a9565b6116ad9088612592565b6116b89060306125c8565b905060008160f81b9050808484815181106116d5576116d5611e5a565b60200101906001600160f81b031916908160001a9053506116f7600a896124f5565b97505050611678565b50949350505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6060816020015160405160200161177091906125ed565b6040516020818303038152906040529050919050565b6060816117aa5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156117d457806117be81612129565b91506117cd9050600a836124f5565b91506117ae565b60008167ffffffffffffffff8111156117ef576117ef611bd6565b6040519080825280601f01601f191660200182016040528015611819576020820181803683370190505b5090505b84156118845761182e600183612592565b915061183b600a866124e1565b611846906030612509565b60f81b81838151811061185b5761185b611e5a565b60200101906001600160f81b031916908160001a90535061187d600a866124f5565b945061181d565b949350505050565b60608151600014156118ac57505060408051602081019091526000815290565b60006040518060600160405280604081526020016126b260409139905060006003845160026118db9190612509565b6118e591906124f5565b6118f09060046125a9565b905060006118ff826020612509565b67ffffffffffffffff81111561191757611917611bd6565b6040519080825280601f01601f191660200182016040528015611941576020820181803683370190505b509050818152600183018586518101602084015b818310156119af5760039283018051603f601282901c811687015160f890811b8552600c83901c8216880151811b6001860152600683901c8216880151811b60028601529116860151901b93820193909352600401611955565b6003895106600181146119c957600281146119da576119e6565b613d3d60f01b6001198301526119e6565b603d60f81b6000198301525b509398975050505050505050565b828054611a0090611dea565b90600052602060002090601f016020900481019282611a225760008555611a68565b82601f10611a3b57805160ff1916838001178555611a68565b82800160010185558215611a68579182015b82811115611a68578251825591602001919060010190611a4d565b50611a74929150611ac6565b5090565b60405180610120016040528060001515815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b5b80821115611a745760008155600101611ac7565b60008060408385031215611aee57600080fd5b50508035926020909101359150565b60005b83811015611b18578181015183820152602001611b00565b83811115611b27576000848401525b50505050565b60008151808452611b45816020860160208601611afd565b601f01601f19169290920160200192915050565b604081526000611b6c6040830185611b2d565b8281036020840152611b7e8185611b2d565b95945050505050565b80356001600160a01b0381168114611b9e57600080fd5b919050565b60008060408385031215611bb657600080fd5b611bbf83611b87565b9150611bcd60208401611b87565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b604051610120810167ffffffffffffffff81118282101715611c1e57634e487b7160e01b600052604160045260246000fd5b60405290565b80358015158114611b9e57600080fd5b600080828403610140811215611c4957600080fd5b8335925061012080601f1983011215611c6157600080fd5b611c69611bec565b9150611c7760208601611c24565b825260408501356020830152606085013560408301526080850135606083015260a0850135608083015260c085013560a083015260e085013560c08301526101008086013560e084015281860135818401525050809150509250929050565b602081526000611ce96020830184611b2d565b9392505050565b60008083601f840112611d0257600080fd5b50813567ffffffffffffffff811115611d1a57600080fd5b6020830191508360208260051b8501011115611d3557600080fd5b9250929050565b600080600080600060608688031215611d5457600080fd5b85359450602086013567ffffffffffffffff80821115611d7357600080fd5b611d7f89838a01611cf0565b90965094506040880135915080821115611d9857600080fd5b50611da588828901611cf0565b969995985093965092949392505050565b600060208284031215611dc857600080fd5b5035919050565b600060208284031215611de157600080fd5b611ce982611b87565b600181811c90821680611dfe57607f821691505b60208210811415611e1f57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b60008151611e82818560208601611afd565b9290920192915050565b60008951611e9e818460208e01611afd565b8083019050600b60fa1b8082528a51611ebe816001850160208f01611afd565b600192019182018190528951611edb816002850160208e01611afd565b600292019182018190528851611ef8816003850160208d01611afd565b600392019182018190528751611f15816004850160208c01611afd565b6004920191820152611f4e611f35611f4881611f4281600587018c611e70565b600b60fa1b815260010190565b89611e70565b86611e70565b9b9a5050505050505050505050565b600060208284031215611f6f57600080fd5b815160ff81168114611ce957600080fd5b605b60f81b815260008451611f9c816001850160208901611afd565b80830190507f7b2274726169745f74797065223a2247656e646572222c2276616c7565223a0060018201528451611fda816020840160208901611afd565b8082019150507f7b2274726169745f74797065223a224d617820776561706f6e2073636f72652260208201526816113b30b63ab2911d60b91b6040820152835161202b816049840160208801611afd565b700b089b585e17dd985b1d59488e8c4c1f4b607a1b604992909101918201527f7b22646973706c61795f74797065223a226e756d626572222c2274726169745f605a8201527f74797065223a2247656e65726174696f6e222c2276616c7565223a317d000000607a820152605d60f81b609782015260980195945050505050565b60008235603e198336030181126120c257600080fd5b9190910192915050565b6000808335601e198436030181126120e357600080fd5b83018035915067ffffffffffffffff8211156120fe57600080fd5b602001915036819003821315611d3557600080fd5b634e487b7160e01b600052601160045260246000fd5b600060001982141561213d5761213d612113565b5060010190565b6000895160206121578285838f01611afd565b8a519184019161216a8184848f01611afd565b8a5192019161217c8184848e01611afd565b895192019161218e8184848d01611afd565b88519201916121a08184848c01611afd565b87519201916121b28184848b01611afd565b86519201916121c48184848a01611afd565b85519201916121d68184848901611afd565b919091019b9a5050505050505050505050565b7f3c7376672069643d22726169646572766572736567656e31222077696474683d81527f223130302522206865696768743d2231303025222076657273696f6e3d22312e60208201527f31222076696577426f783d223020302035382035382220786d6c6e733d22687460408201527f74703a2f2f7777772e77332e6f72672f323030302f7376672220786d6c6e733a60608201527f786c696e6b3d22687474703a2f2f7777772e77332e6f72672f313939392f786c60808201526434b735911f60d91b60a0820152600082516122c78160a5850160208701611afd565b651e17b9bb339f60d11b60a593909101928301525060ab01919050565b707b226e616d65223a22526169646572202360781b81528351600090612311816011850160208901611afd565b7f222c226465736372697074696f6e223a2254686f7573616e6473206f6620756e6011918401918201527f6971756520746f6d62207261696465727320616e6420656e656d69657320687560318201527f6e74696e6720666f72202452474f2e2031303025206f6e20636861696e20616e60518201527f64207075626c696320646f6d61696e2e222c22696d616765223a22646174613a6071820152741a5b5859d94bdcdd99cade1b5b0ed8985cd94d8d0b605a1b609182015284516123de8160a6840160208901611afd565b6e11161130ba3a3934b13aba32b9911d60891b60a69290910191820152835161240e8160b5840160208801611afd565b607d60f81b60b5929091019182015260b60195945050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161246181601d850160208701611afd565b91909101601d0192915050565b60006040828403121561248057600080fd5b6040516040810181811067ffffffffffffffff821117156124b157634e487b7160e01b600052604160045260246000fd5b604052825181526020928301519281019290925250919050565b634e487b7160e01b600052601260045260246000fd5b6000826124f0576124f06124cb565b500690565b600082612504576125046124cb565b500490565b6000821982111561251c5761251c612113565b500190565b6e3d913a3930b4ba2fba3cb832911d1160891b8152825160009061254c81600f850160208801611afd565b6a1116113b30b63ab2911d1160a91b600f91840191820152835161257781601a840160208801611afd565b61227d60f01b601a9290910191820152601c01949350505050565b6000828210156125a4576125a4612113565b500390565b60008160001904831182151516156125c3576125c3612113565b500290565b600060ff821660ff84168060ff038211156125e5576125e5612113565b019392505050565b7f3c696d61676520783d22342220793d223422206865696768743d22353022206981527f6d6167652d72656e646572696e673d22706978656c617465642220707265736560208201527f727665417370656374526174696f3d22784d6964594d69642220786c696e6b3a60408201527f687265663d22646174613a696d6167652f706e673b6261736536342c0000000060608201526000825161269781607c850160208701611afd565b6211179f60e91b607c939091019283015250607f0191905056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220e3805a3a76afb35ea4b462646304f45db801a16e185937509c800b77f5c0325564736f6c63430008090033

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061009e5760003560e01c806376496edd1161006657806376496edd1461011d5780638da5cb5b14610130578063c87b56dd1461014b578063f0025c1e1461015e578063f2fde38b146101e057600080fd5b806309dbabca146100a357806315b32aa0146100cd5780633ca6eba2146100e25780636652b94414610102578063715018a614610115575b600080fd5b6100b66100b1366004611adb565b6101f3565b6040516100c4929190611b59565b60405180910390f35b6100e06100db366004611ba3565b61032a565b005b6100f56100f0366004611c34565b61038b565b6040516100c49190611cd6565b6100e0610110366004611d3c565b610bec565b6100e0610dc8565b6100f561012b366004611c34565b610dfe565b6000546040516001600160a01b0390911681526020016100c4565b6100f5610159366004611db6565b611229565b61017161016c366004611db6565b6112b3565b6040516100c491906000610120820190508251151582526020830151602083015260408301516040830152606083015160608301526080830151608083015260a083015160a083015260c083015160c083015260e083015160e083015261010080840151818401525092915050565b6100e06101ee366004611dcf565b611519565b600a60209081526000928352604080842090915290825290208054819061021990611dea565b80601f016020809104026020016040519081016040528092919081815260200182805461024590611dea565b80156102925780601f1061026757610100808354040283529160200191610292565b820191906000526020600020905b81548152906001019060200180831161027557829003601f168201915b5050505050908060010180546102a790611dea565b80601f01602080910402602001604051908101604052809291908181526020018280546102d390611dea565b80156103205780601f106102f557610100808354040283529160200191610320565b820191906000526020600020905b81548152906001019060200180831161030357829003601f168201915b5050505050905082565b6000546001600160a01b0316331461035d5760405162461bcd60e51b815260040161035490611e25565b60405180910390fd5b600b80546001600160a01b039384166001600160a01b031991821617909155600c8054929093169116179055565b606060006104e96001820180546103a190611dea565b80601f01602080910402602001604051908101604052809291908181526020018280546103cd90611dea565b801561041a5780601f106103ef5761010080835404028352916020019161041a565b820191906000526020600020905b8154815290600101906020018083116103fd57829003601f168201915b50506000808052600a60209081528981015182527f13da86008ba1c6922daee3e07db95305ef49ebced9f5467a0b8613fcc6b343e3905260409020805490935061046692509050611dea565b80601f016020809104026020016040519081016040528092919081815260200182805461049290611dea565b80156104df5780601f106104b4576101008083540402835291602001916104df565b820191906000526020600020905b8154815290600101906020018083116104c257829003601f168201915b50505050506115b4565b6105c36001800180546104fb90611dea565b80601f016020809104026020016040519081016040528092919081815260200182805461052790611dea565b80156105745780601f1061054957610100808354040283529160200191610574565b820191906000526020600020905b81548152906001019060200180831161055757829003601f168201915b505060016000908152600a602090815260408b81015183527fbbc70db1b6c7afd11e79c0fb0051300458f1a3acb8ee9789d9b6b26c61ad9bc79091529020805490935061046692509050611dea565b61069e600160020180546105d690611dea565b80601f016020809104026020016040519081016040528092919081815260200182805461060290611dea565b801561064f5780601f106106245761010080835404028352916020019161064f565b820191906000526020600020905b81548152906001019060200180831161063257829003601f168201915b505060026000908152600a602090815260608c015182527fbff4442b8ed600beeb8e26b1279a0f0d14c6edfaec26d968ee13c86f7d4c2ba8905260409020805490935061046692509050611dea565b610779600160030180546106b190611dea565b80601f01602080910402602001604051908101604052809291908181526020018280546106dd90611dea565b801561072a5780601f106106ff5761010080835404028352916020019161072a565b820191906000526020600020905b81548152906001019060200180831161070d57829003601f168201915b505060036000908152600a602090815260808d015182527fa856840544dc26124927add067d799967eac11be13e14d82cc281ea46fa39759905260409020805490935061046692509050611dea565b6108546001600401805461078c90611dea565b80601f01602080910402602001604051908101604052809291908181526020018280546107b890611dea565b80156108055780601f106107da57610100808354040283529160200191610805565b820191906000526020600020905b8154815290600101906020018083116107e857829003601f168201915b505060046000908152600a602090815260a08e015182527fe1eb2b2161a492c07c5a334e48012567cba93ec021043f53c1955516a3c5a841905260409020805490935061046692509050611dea565b61092f6001600501805461086790611dea565b80601f016020809104026020016040519081016040528092919081815260200182805461089390611dea565b80156108e05780601f106108b5576101008083540402835291602001916108e0565b820191906000526020600020905b8154815290600101906020018083116108c357829003601f168201915b505060056000908152600a602090815260c08f015182527ff35035bc2b01d44bd35a1dcdc552315cffb73da35cfd60570b7b777f98036f9f905260409020805490935061046692509050611dea565b6109f76001600601805461094290611dea565b80601f016020809104026020016040519081016040528092919081815260200182805461096e90611dea565b80156109bb5780601f10610990576101008083540402835291602001916109bb565b820191906000526020600020905b81548152906001019060200180831161099e57829003601f168201915b5050505050600a60006006815260200190815260200160002060008c60e001518152602001908152602001600020600001805461046690611dea565b610ac060016007018054610a0a90611dea565b80601f0160208091040260200160405190810160405280929190818152602001828054610a3690611dea565b8015610a835780601f10610a5857610100808354040283529160200191610a83565b820191906000526020600020905b815481529060010190602001808311610a6657829003601f168201915b5050505050600a60006007815260200190815260200160002060008d61010001518152602001908152602001600020600001805461046690611dea565b604051602001610ad7989796959493929190611e8c565b6040516020818303038152906040529050808360000151610b1857604051806040016040528060088152602001670893585b19489f4b60c21b815250610b3c565b6040518060400160405280600a8152602001690891995b585b19489f4b60b21b8152505b600c546040516361d1832160e11b815260048101889052610bc2916001600160a01b03169063c3a306429060240160206040518083038186803b158015610b8257600080fd5b505afa158015610b96573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bba9190611f5d565b60ff166115e0565b604051602001610bd493929190611f80565b60405160208183030381529060405291505092915050565b6000546001600160a01b03163314610c165760405162461bcd60e51b815260040161035490611e25565b828114610c595760405162461bcd60e51b81526020600482015260116024820152704d69736d61746368656420696e7075747360781b6044820152606401610354565b60005b81811015610dc0576040518060400160405280848484818110610c8157610c81611e5a565b9050602002810190610c9391906120ac565b610c9d90806120cc565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250505090825250602001848484818110610ce957610ce9611e5a565b9050602002810190610cfb91906120ac565b610d099060208101906120cc565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920182905250939094525050888152600a602052604081209150878785818110610d5f57610d5f611e5a565b9050602002013581526020019081526020016000206000820151816000019080519060200190610d909291906119f4565b506020828101518051610da992600185019201906119f4565b509050508080610db890612129565b915050610c5c565b505050505050565b6000546001600160a01b03163314610df25760405162461bcd60e51b815260040161035490611e25565b610dfc6000611709565b565b6000808052600a60209081528281015182527f13da86008ba1c6922daee3e07db95305ef49ebced9f5467a0b8613fcc6b343e3905260408082208151808301909252805460609392610f7292909182908290610e5990611dea565b80601f0160208091040260200160405190810160405280929190818152602001828054610e8590611dea565b8015610ed25780601f10610ea757610100808354040283529160200191610ed2565b820191906000526020600020905b815481529060010190602001808311610eb557829003601f168201915b50505050508152602001600182018054610eeb90611dea565b80601f0160208091040260200160405190810160405280929190818152602001828054610f1790611dea565b8015610f645780601f10610f3957610100808354040283529160200191610f64565b820191906000526020600020905b815481529060010190602001808311610f4757829003601f168201915b505050505081525050611759565b60016000908152600a602090815260408681015183527fbbc70db1b6c7afd11e79c0fb0051300458f1a3acb8ee9789d9b6b26c61ad9bc79091529081902081518083019092528054610fcd92919082908290610e5990611dea565b60026000908152600a6020908152606087015182527fbff4442b8ed600beeb8e26b1279a0f0d14c6edfaec26d968ee13c86f7d4c2ba890526040908190208151808301909252805461102892919082908290610e5990611dea565b60036000908152600a6020908152608088015182527fa856840544dc26124927add067d799967eac11be13e14d82cc281ea46fa3975990526040908190208151808301909252805461108392919082908290610e5990611dea565b60046000908152600a602090815260a089015182527fe1eb2b2161a492c07c5a334e48012567cba93ec021043f53c1955516a3c5a8419052604090819020815180830190925280546110de92919082908290610e5990611dea565b60056000908152600a602090815260c08a015182527ff35035bc2b01d44bd35a1dcdc552315cffb73da35cfd60570b7b777f98036f9f90526040908190208151808301909252805461113992919082908290610e5990611dea565b60066000908152600a602090815260e08b015182527f10d9dd018e4cae503383c9f804c1c1603ada5856ee7894375d9b97cd8c8b27db90526040908190208151808301909252805461119492919082908290610e5990611dea565b60076000908152600a60209081526101008c015182527f22e39f61d1e4986b4f116cea9067f62cc77d74dff1780ae9c8b5166d1dd288299052604090819020815180830190925280546111f092919082908290610e5990611dea565b604051602001611207989796959493929190612144565b604051602081830303815290604052905080604051602001610bd491906121e9565b60606000611236836112b3565b9050600061124384611786565b6112556112508685610dfe565b61188c565b61125f868561038b565b604051602001611271939291906122e4565b604051602081830303815290604052905061128b8161188c565b60405160200161129b9190612429565b60405160208183030381529060405292505050919050565b6112bb611a78565b600b5460405163650bd3d360e01b8152600481018490526000916001600160a01b03169063650bd3d390602401604080518083038186803b1580156112ff57600080fd5b505afa158015611313573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611337919061246e565b9050611341611a78565b815160026113506064836124e1565b61135a91906124e1565b1582526113686064826124f5565b825190915061139857600561137e6064836124e1565b61138891906124e1565b611393906005612509565b6113af565b60056113a56064836124e1565b6113af91906124e1565b60208301526113bf6064826124f5565b82519091506113ef5760046113d56064836124e1565b6113df91906124e1565b6113ea906004612509565b611406565b60046113fc6064836124e1565b61140691906124e1565b60408301526114166064826124f5565b905060046114256064836124e1565b61142f91906124e1565b606083015261143f6064826124f5565b9050600761144e6064836124e1565b61145891906124e1565b60808301526114686064826124f5565b825190915061149857600a61147e6064836124e1565b61148891906124e1565b61149390600a612509565b6114af565b600a6114a56064836124e1565b6114af91906124e1565b60a08301526114bf6064826124f5565b905060086114ce6064836124e1565b6114d891906124e1565b60c08301526114e86064826124f5565b905060076114f76064836124e1565b61150191906124e1565b60e08301525060209091015161010082015292915050565b6000546001600160a01b031633146115435760405162461bcd60e51b815260040161035490611e25565b6001600160a01b0381166115a85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610354565b6115b181611709565b50565b606082826040516020016115c9929190612521565b604051602081830303815290604052905092915050565b6060816116045750506040805180820190915260018152600360fc1b602082015290565b8160005b811561162e578061161881612129565b91506116279050600a836124f5565b9150611608565b60008167ffffffffffffffff81111561164957611649611bd6565b6040519080825280601f01601f191660200182016040528015611673576020820181803683370190505b509050815b851561170057611689600182612592565b90506000611698600a886124f5565b6116a390600a6125a9565b6116ad9088612592565b6116b89060306125c8565b905060008160f81b9050808484815181106116d5576116d5611e5a565b60200101906001600160f81b031916908160001a9053506116f7600a896124f5565b97505050611678565b50949350505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6060816020015160405160200161177091906125ed565b6040516020818303038152906040529050919050565b6060816117aa5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156117d457806117be81612129565b91506117cd9050600a836124f5565b91506117ae565b60008167ffffffffffffffff8111156117ef576117ef611bd6565b6040519080825280601f01601f191660200182016040528015611819576020820181803683370190505b5090505b84156118845761182e600183612592565b915061183b600a866124e1565b611846906030612509565b60f81b81838151811061185b5761185b611e5a565b60200101906001600160f81b031916908160001a90535061187d600a866124f5565b945061181d565b949350505050565b60608151600014156118ac57505060408051602081019091526000815290565b60006040518060600160405280604081526020016126b260409139905060006003845160026118db9190612509565b6118e591906124f5565b6118f09060046125a9565b905060006118ff826020612509565b67ffffffffffffffff81111561191757611917611bd6565b6040519080825280601f01601f191660200182016040528015611941576020820181803683370190505b509050818152600183018586518101602084015b818310156119af5760039283018051603f601282901c811687015160f890811b8552600c83901c8216880151811b6001860152600683901c8216880151811b60028601529116860151901b93820193909352600401611955565b6003895106600181146119c957600281146119da576119e6565b613d3d60f01b6001198301526119e6565b603d60f81b6000198301525b509398975050505050505050565b828054611a0090611dea565b90600052602060002090601f016020900481019282611a225760008555611a68565b82601f10611a3b57805160ff1916838001178555611a68565b82800160010185558215611a68579182015b82811115611a68578251825591602001919060010190611a4d565b50611a74929150611ac6565b5090565b60405180610120016040528060001515815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b5b80821115611a745760008155600101611ac7565b60008060408385031215611aee57600080fd5b50508035926020909101359150565b60005b83811015611b18578181015183820152602001611b00565b83811115611b27576000848401525b50505050565b60008151808452611b45816020860160208601611afd565b601f01601f19169290920160200192915050565b604081526000611b6c6040830185611b2d565b8281036020840152611b7e8185611b2d565b95945050505050565b80356001600160a01b0381168114611b9e57600080fd5b919050565b60008060408385031215611bb657600080fd5b611bbf83611b87565b9150611bcd60208401611b87565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b604051610120810167ffffffffffffffff81118282101715611c1e57634e487b7160e01b600052604160045260246000fd5b60405290565b80358015158114611b9e57600080fd5b600080828403610140811215611c4957600080fd5b8335925061012080601f1983011215611c6157600080fd5b611c69611bec565b9150611c7760208601611c24565b825260408501356020830152606085013560408301526080850135606083015260a0850135608083015260c085013560a083015260e085013560c08301526101008086013560e084015281860135818401525050809150509250929050565b602081526000611ce96020830184611b2d565b9392505050565b60008083601f840112611d0257600080fd5b50813567ffffffffffffffff811115611d1a57600080fd5b6020830191508360208260051b8501011115611d3557600080fd5b9250929050565b600080600080600060608688031215611d5457600080fd5b85359450602086013567ffffffffffffffff80821115611d7357600080fd5b611d7f89838a01611cf0565b90965094506040880135915080821115611d9857600080fd5b50611da588828901611cf0565b969995985093965092949392505050565b600060208284031215611dc857600080fd5b5035919050565b600060208284031215611de157600080fd5b611ce982611b87565b600181811c90821680611dfe57607f821691505b60208210811415611e1f57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b60008151611e82818560208601611afd565b9290920192915050565b60008951611e9e818460208e01611afd565b8083019050600b60fa1b8082528a51611ebe816001850160208f01611afd565b600192019182018190528951611edb816002850160208e01611afd565b600292019182018190528851611ef8816003850160208d01611afd565b600392019182018190528751611f15816004850160208c01611afd565b6004920191820152611f4e611f35611f4881611f4281600587018c611e70565b600b60fa1b815260010190565b89611e70565b86611e70565b9b9a5050505050505050505050565b600060208284031215611f6f57600080fd5b815160ff81168114611ce957600080fd5b605b60f81b815260008451611f9c816001850160208901611afd565b80830190507f7b2274726169745f74797065223a2247656e646572222c2276616c7565223a0060018201528451611fda816020840160208901611afd565b8082019150507f7b2274726169745f74797065223a224d617820776561706f6e2073636f72652260208201526816113b30b63ab2911d60b91b6040820152835161202b816049840160208801611afd565b700b089b585e17dd985b1d59488e8c4c1f4b607a1b604992909101918201527f7b22646973706c61795f74797065223a226e756d626572222c2274726169745f605a8201527f74797065223a2247656e65726174696f6e222c2276616c7565223a317d000000607a820152605d60f81b609782015260980195945050505050565b60008235603e198336030181126120c257600080fd5b9190910192915050565b6000808335601e198436030181126120e357600080fd5b83018035915067ffffffffffffffff8211156120fe57600080fd5b602001915036819003821315611d3557600080fd5b634e487b7160e01b600052601160045260246000fd5b600060001982141561213d5761213d612113565b5060010190565b6000895160206121578285838f01611afd565b8a519184019161216a8184848f01611afd565b8a5192019161217c8184848e01611afd565b895192019161218e8184848d01611afd565b88519201916121a08184848c01611afd565b87519201916121b28184848b01611afd565b86519201916121c48184848a01611afd565b85519201916121d68184848901611afd565b919091019b9a5050505050505050505050565b7f3c7376672069643d22726169646572766572736567656e31222077696474683d81527f223130302522206865696768743d2231303025222076657273696f6e3d22312e60208201527f31222076696577426f783d223020302035382035382220786d6c6e733d22687460408201527f74703a2f2f7777772e77332e6f72672f323030302f7376672220786d6c6e733a60608201527f786c696e6b3d22687474703a2f2f7777772e77332e6f72672f313939392f786c60808201526434b735911f60d91b60a0820152600082516122c78160a5850160208701611afd565b651e17b9bb339f60d11b60a593909101928301525060ab01919050565b707b226e616d65223a22526169646572202360781b81528351600090612311816011850160208901611afd565b7f222c226465736372697074696f6e223a2254686f7573616e6473206f6620756e6011918401918201527f6971756520746f6d62207261696465727320616e6420656e656d69657320687560318201527f6e74696e6720666f72202452474f2e2031303025206f6e20636861696e20616e60518201527f64207075626c696320646f6d61696e2e222c22696d616765223a22646174613a6071820152741a5b5859d94bdcdd99cade1b5b0ed8985cd94d8d0b605a1b609182015284516123de8160a6840160208901611afd565b6e11161130ba3a3934b13aba32b9911d60891b60a69290910191820152835161240e8160b5840160208801611afd565b607d60f81b60b5929091019182015260b60195945050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000825161246181601d850160208701611afd565b91909101601d0192915050565b60006040828403121561248057600080fd5b6040516040810181811067ffffffffffffffff821117156124b157634e487b7160e01b600052604160045260246000fd5b604052825181526020928301519281019290925250919050565b634e487b7160e01b600052601260045260246000fd5b6000826124f0576124f06124cb565b500690565b600082612504576125046124cb565b500490565b6000821982111561251c5761251c612113565b500190565b6e3d913a3930b4ba2fba3cb832911d1160891b8152825160009061254c81600f850160208801611afd565b6a1116113b30b63ab2911d1160a91b600f91840191820152835161257781601a840160208801611afd565b61227d60f01b601a9290910191820152601c01949350505050565b6000828210156125a4576125a4612113565b500390565b60008160001904831182151516156125c3576125c3612113565b500290565b600060ff821660ff84168060ff038211156125e5576125e5612113565b019392505050565b7f3c696d61676520783d22342220793d223422206865696768743d22353022206981527f6d6167652d72656e646572696e673d22706978656c617465642220707265736560208201527f727665417370656374526174696f3d22784d6964594d69642220786c696e6b3a60408201527f687265663d22646174613a696d6167652f706e673b6261736536342c0000000060608201526000825161269781607c850160208701611afd565b6211179f60e91b607c939091019283015250607f0191905056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220e3805a3a76afb35ea4b462646304f45db801a16e185937509c800b77f5c0325564736f6c63430008090033

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.