Contract 0x7aa7B23e085C684D5930CAF69738A1A890FE4Fe0

 
Txn Hash
Method
Block
From
To
Value
0xd4b7f78403b83f5c6d51353986252e923fae1bd3759fb4e5f15f2037eff593a60x613e9461144509282022-03-24 19:40:58146 days 18 hrs ago0x98f04961ccaa49e0a70fde625b70c8b6dc520482 IN  Create: Glasses0 Ether0.‍2034933 58.‍04641053
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Glasses

Compiler Version
v0.8.12+commit.f00d7308

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 4 : Glasses.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;

import "./SVG.sol";
import "./WatchData.sol";
import "./Utils.sol";

// Renders the Glasses
library Glasses {
    function render(uint256 _id) public pure returns (string memory) {
        // convert into enum value
        WatchData.GlassesId glassesId = WatchData.GlassesId(_id);
        // first step: based on Id, render basic SVG.
        // first case! get the left monocle to work.'
        if (glassesId == WatchData.GlassesId.None) {
            return utils.NULL;
        } else if (glassesId == WatchData.GlassesId.LeftMonocle) {
            return
                svg.g(
                    string.concat(
                        svg.prop("stroke", utils.getCssVar("fa")),
                        svg.prop("stroke-opacity", "0.35"),
                        svg.prop("fill", utils.getDefURL("obg")),
                        svg.prop("fill-opacity", "0.4"),
                        svg.prop("filter", utils.getDefURL("dropShadow"))
                    ),
                    renderBaseMonocle()
                );
        } else if (glassesId == WatchData.GlassesId.RightMonocle) {
            return
                svg.g(
                    string.concat(
                        svg.prop("stroke", utils.getCssVar("fa")),
                        svg.prop("stroke-opacity", "0.35"),
                        svg.prop("fill", utils.getDefURL("obg")),
                        svg.prop("fill-opacity", "0.4"),
                        svg.prop("transform", "translate(112 0)")
                    ),
                    renderBaseMonocle()
                );
        } else if (glassesId == WatchData.GlassesId.Flip) {
            return
                svg.g(
                    string.concat(
                        svg.prop("stroke-width", "1"),
                        svg.prop("stroke", utils.getCssVar("fa")),
                        svg.prop("stroke-opacity", "0.35"),
                        svg.prop("filter", utils.getDefURL("dropShadow"))
                    ),
                    string.concat(
                        svg.circle(
                            string.concat(
                                svg.prop("cx", utils.uint2str(236)),
                                svg.prop("cy", utils.uint2str(140)),
                                svg.prop("r", utils.uint2str(28)),
                                svg.prop("fill", utils.getDefURL("rg")),
                                svg.prop("fill-opacity", "0.5")
                            ),
                            utils.NULL
                        ),
                        svg.circle(
                            string.concat(
                                svg.prop("cx", utils.uint2str(124)),
                                svg.prop("cy", utils.uint2str(140)),
                                svg.prop("r", utils.uint2str(28)),
                                svg.prop("fill", utils.getDefURL("rg")),
                                svg.prop("fill-opacity", "0.5")
                            ),
                            utils.NULL
                        ),
                        svg.path(svg.prop("d", "M124 112h115"), utils.NULL),
                        svg.path(svg.prop("d", "M152 140h56"), utils.NULL),
                        svg.circle(
                            string.concat(
                                svg.prop("cx", utils.uint2str(236)),
                                svg.prop("cy", utils.uint2str(84)),
                                svg.prop("r", utils.uint2str(28)),
                                svg.prop("fill", utils.getDefURL("obg")),
                                svg.prop("fill-opacity", "0.5")
                            ),
                            utils.NULL
                        ),
                        svg.circle(
                            string.concat(
                                svg.prop("cx", utils.uint2str(124)),
                                svg.prop("cy", utils.uint2str(84)),
                                svg.prop("r", utils.uint2str(28)),
                                svg.prop("fill", utils.getDefURL("obg")),
                                svg.prop("fill-opacity", "0.5")
                            ),
                            utils.NULL
                        )
                    )
                );
        } else if (glassesId == WatchData.GlassesId.Valentine) {
            return
                svg.g(
                    string.concat(
                        svg.prop("stroke", utils.getCssVar("fa")),
                        svg.prop("stroke-opacity", "0.35"),
                        svg.prop("filter", utils.getDefURL("dropShadow"))
                    ),
                    string.concat(
                        svg.path(
                            string.concat(
                                svg.prop("fill", "none"),
                                svg.prop(
                                    "d",
                                    "M161 140.5C161 140.5 172.845 137.5 180.5 137.5C188.155 137.5 199 140.5 199 140.5"
                                )
                            ),
                            utils.NULL
                        ),
                        svg.path(
                            string.concat(
                                svg.prop("fill", utils.getDefURL("obg")),
                                svg.prop("fill-opacity", "0.5"),
                                svg.prop(
                                    "d",
                                    "M123.67 118.671L124 118.959L124.33 118.671C124.726 118.323 125.143 117.992 125.581 117.68C125.956 117.412 126.325 117.146 126.687 116.885L126.689 116.884C130.189 114.36 133.136 112.245 137.26 111.728C143.709 110.919 150.018 112.253 154.705 115.888C159.378 119.513 162.5 125.473 162.5 134.054C162.5 138.275 160.859 142.7 158.168 147.04C155.479 151.376 151.761 155.594 147.66 159.388C139.49 166.948 129.879 172.755 124 174.47C118.121 172.755 108.51 166.948 100.34 159.388C96.2388 155.594 92.5215 151.376 89.8325 147.04C87.1412 142.7 85.5 138.275 85.5 134.054C85.5 125.473 88.6215 119.513 93.295 115.888C97.9815 112.253 104.291 110.919 110.74 111.728C114.864 112.245 117.811 114.36 121.311 116.884L121.313 116.885C121.675 117.146 122.044 117.412 122.419 117.68L122.71 117.273L122.419 117.68C122.857 117.992 123.274 118.323 123.67 118.671Z"
                                )
                            ),
                            utils.NULL
                        ),
                        svg.path(
                            string.concat(
                                svg.prop("fill", utils.getDefURL("obg")),
                                svg.prop("fill-opacity", "0.5"),
                                svg.prop(
                                    "d",
                                    "M235.67 118.671L236 118.959L236.33 118.671C236.726 118.323 237.143 117.992 237.581 117.68C237.956 117.412 238.324 117.147 238.687 116.885L238.689 116.884C242.189 114.36 245.136 112.245 249.26 111.728C255.709 110.919 262.018 112.253 266.705 115.888C271.378 119.513 274.5 125.473 274.5 134.054C274.5 138.275 272.859 142.7 270.168 147.04C267.479 151.376 263.761 155.594 259.66 159.388C251.49 166.948 241.879 172.755 236 174.47C230.121 172.755 220.51 166.948 212.34 159.388C208.239 155.594 204.521 151.376 201.832 147.04C199.141 142.7 197.5 138.275 197.5 134.054C197.5 125.473 200.622 119.513 205.295 115.888C209.982 112.253 216.291 110.919 222.74 111.728C226.864 112.245 229.811 114.36 233.311 116.884L233.314 116.886C233.676 117.147 234.044 117.413 234.419 117.68C234.857 117.992 235.274 118.323 235.67 118.671Z"
                                )
                            ),
                            utils.NULL
                        )
                    )
                );
        } else if (glassesId == WatchData.GlassesId.Shutters) {
            return
                svg.g(
                    string.concat(
                        svg.prop("fill", utils.getDefURL("obg")),
                        svg.prop("stroke", utils.getCssVar("fa")),
                        svg.prop("stroke-opacity", "0.25"),
                        svg.prop("filter", utils.getDefURL("dropShadow"))
                    ),
                    svg.path(
                        svg.prop(
                            "d",
                            "m85.3956 115.641.1044-.135v-.006h.0039l.1501-.187c4.3076-5.374 10.925-8.813 18.346-8.813h152c7.421 0 14.038 3.439 18.346 8.813l.15.187h.004v.006l.104.135c3.07 3.971 4.896 8.951 4.896 14.359v22c0 6.475-2.618 12.337-6.854 16.588l-.146.146v.766h-.814l-.142.125c-4.143 3.657-9.584 5.875-15.544 5.875h-28.853c-6.8 0-13.161-2.171-18.364-5.906l-.131-.094h-.152v-.11l-.201-.15c-4.846-3.621-8.637-8.62-10.763-14.486l-.006-.015-.006-.015c-1.12-2.554-1.953-5.224-2.764-7.827l-.018-.057c-1.234-3.958-2.43-7.797-4.542-10.635-2.158-2.901-5.256-4.742-10.2-4.742-4.944 0-8.042 1.841-10.2 4.742-2.112 2.838-3.308 6.677-4.542 10.635l-.018.057c-.811 2.603-1.644 5.273-2.764 7.827l-.006.015-.006.015c-2.126 5.866-5.917 10.865-10.763 14.486l-.201.15v.11h-.152l-.131.094c-5.203 3.735-11.564 5.906-18.364 5.906H104c-5.9602 0-11.4011-2.218-15.5441-5.875l-.1418-.125H87.5v-.766l-.1458-.146C83.1179 164.337 80.5 158.475 80.5 152v-22c0-5.408 1.8261-10.388 4.8956-14.359Zm3.1623 4.859h-.2709l-.148.227c-.8342 1.279-1.5418 2.649-2.105 4.091l-.2663.682h75.0693l-.327-.709c-.661-1.438-1.459-2.805-2.378-4.083l-.15-.208H88.5579Zm62.9541-5h1.652l-1.375-.916c-3.857-2.57-8.505-4.084-13.558-4.084H107c-4.816 0-9.28 1.514-12.9402 4.091l-1.2906.909h58.7428Zm10.889 15.417-.07-.417H84.6327l-.041.455c-.0607.674-.0917 1.356-.0917 2.045v2.5h78.237l.001-.499c.003-1.386-.112-2.751-.337-4.084Zm-.376 10.173.108-.59H84.5v5h76.722l.074-.41.729-4Zm-2.227 10.076.235-.666H84.5426l.0491.545c.0942 1.045.2598 2.069.4919 3.068l.0899.387h73.2215l.136-.283c.474-.987.898-2.005 1.267-3.051Zm-5.153 9.151.669-.817H87.0763l.4341.75c.8551 1.479 1.8734 2.85 3.0303 4.091l.1483.159h59.793l.14-.117c1.462-1.224 2.81-2.585 4.023-4.066Zm-15.781 10.166-.129-.983h-38.312l-.149.977c2.124.665 4.384 1.023 6.726 1.023h24.039c2.694 0 5.319-.352 7.825-1.017Zm132.997-49.756-.148-.227h-69.695l-.15.208c-.919 1.278-1.717 2.645-2.378 4.083l-.327.709h75.069l-.266-.682c-.563-1.442-1.271-2.812-2.105-4.091Zm-63.65-6.143-1.375.916h60.395l-1.291-.909c-3.66-2.577-8.124-4.091-12.94-4.091h-31.231c-5.053 0-9.701 1.514-13.558 4.084ZM198.092 130.5h-.423l-.07.417c-.225 1.333-.34 2.698-.337 4.084l.001.499H275.5V133c0-.689-.031-1.371-.092-2.045l-.041-.455h-77.275Zm.375 10h-.6l.108.59.729 4 .074.41H275.5v-5h-77.033Zm2.207 10h-.707l.235.666c.369 1.046.793 2.064 1.267 3.051l.136.283h73.221l.09-.387c.233-.999.398-2.023.492-3.068l.049-.545h-74.783Zm5.068 9h-1.056l.669.817c1.213 1.481 2.561 2.842 4.023 4.066l.14.117h59.793l.148-.159c1.157-1.241 2.176-2.612 3.031-4.091l.434-.75h-67.182Zm15.523 10-.129.983c2.506.665 5.131 1.017 7.825 1.017H253c2.342 0 4.602-.358 6.726-1.023l-.149-.977h-38.312Z"
                        ),
                        utils.NULL
                    )
                );
        } else if (glassesId == WatchData.GlassesId.ThreeD) {
            return
                svg.g(
                    string.concat(
                        svg.prop("stroke", utils.getCssVar("fa")),
                        svg.prop("stroke-opacity", "0.35"),
                        svg.prop("fill-opacity", "0.5"),
                        svg.prop("filter", utils.getDefURL("dropShadow"))
                    ),
                    string.concat(
                        svg.path(
                            string.concat(
                                svg.prop("fill", "red"),
                                svg.prop(
                                    "d",
                                    "M158.107 120.5H91a8.5 8.5 0 0 0-8.5 8.5v22a8.5 8.5 0 0 0 8.5 8.5h67.155a8.5 8.5 0 0 0 6.637-3.19l5.845-7.306a8.501 8.501 0 0 0 1.863-5.31v-7.181a8.5 8.5 0 0 0-1.812-5.246l-5.892-7.513a8.503 8.503 0 0 0-6.689-3.254Z"
                                )
                            ),
                            utils.NULL
                        ),
                        svg.path(
                            string.concat(
                                svg.prop("fill", "blue"),
                                svg.prop(
                                    "d",
                                    "M201.893 120.5H269a8.5 8.5 0 0 1 8.5 8.5v22a8.5 8.5 0 0 1-8.5 8.5h-67.155a8.5 8.5 0 0 1-6.637-3.19l-5.845-7.306a8.501 8.501 0 0 1-1.863-5.31v-7.181a8.5 8.5 0 0 1 1.812-5.246l5.892-7.513a8.503 8.503 0 0 1 6.689-3.254Z"
                                )
                            ),
                            utils.NULL
                        ),
                        svg.path(
                            string.concat(
                                svg.prop("fill", utils.getCssVar("bp")),
                                svg.prop("d", "M172.5 133.5h15v13h-15z")
                            ),
                            utils.NULL
                        )
                    )
                );
        } else if (glassesId == WatchData.GlassesId.Ski) {
            return
                svg.g(
                    string.concat(
                        svg.prop("fill-rule", "evenodd"),
                        svg.prop("filter", utils.getDefURL("dropShadow"))
                    ),
                    string.concat(
                        svg.path(
                            string.concat(
                                svg.prop("fill-rule", "evenodd"),
                                svg.prop("clip-rule", "evenodd"),
                                svg.prop(
                                    "d",
                                    "M123.533 96V96.0018C99.4533 96.2181 80 115.834 80 140C80 164.301 99.6703 184 123.935 184C145.189 184 162.918 168.885 166.99 148.803C171.519 147.727 175.956 147.071 180.043 147.071C184.131 147.071 188.567 147.727 193.097 148.803C197.169 168.885 214.898 184 236.152 184C260.417 184 280.087 164.301 280.087 140C280.087 115.834 260.634 96.2181 236.554 96.0018V96H123.533ZM236.152 180.333C258.28 180.333 276.217 162.275 276.217 140C276.217 117.724 258.28 99.6666 236.152 99.6666C214.025 99.6666 196.087 117.724 196.087 140C196.087 162.275 214.025 180.333 236.152 180.333ZM123.935 180.333C146.062 180.333 164 162.275 164 140C164 117.725 146.062 99.6667 123.935 99.6667C101.807 99.6667 83.8696 117.725 83.8696 140C83.8696 162.275 101.807 180.333 123.935 180.333Z"
                                ),
                                svg.prop("fill", utils.getDefURL("fg")),
                                svg.prop("fill-opacity", "1"),
                                svg.prop("stroke", utils.getCssVar("fa")),
                                svg.prop("stroke-opacity", "0.35")
                            ),
                            utils.NULL
                        ),
                        svg.circle(
                            string.concat(
                                svg.prop("cx", utils.uint2str(124)),
                                svg.prop("cy", utils.uint2str(140)),
                                svg.prop("r", utils.uint2str(40)),
                                svg.prop("fill", utils.getDefURL("obg")),
                                svg.prop("fill-opacity", "0.35")
                            ),
                            utils.NULL
                        ),
                        svg.circle(
                            string.concat(
                                svg.prop("cx", utils.uint2str(236)),
                                svg.prop("cy", utils.uint2str(140)),
                                svg.prop("r", utils.uint2str(40)),
                                svg.prop("fill", utils.getDefURL("obg")),
                                svg.prop("fill-opacity", "0.35")
                            ),
                            utils.NULL
                        )
                    )
                );
        } else if (glassesId == WatchData.GlassesId.Monolens) {
            return
                svg.g(
                    string.concat(
                        svg.prop("stroke", utils.getCssVar("fa")),
                        svg.prop("stroke-opacity", "0.35"),
                        svg.prop("filter", utils.getDefURL("dropShadow"))
                    ),
                    string.concat(
                        svg.path(
                            string.concat(
                                svg.prop(
                                    "d",
                                    "M180 121C150.221 121 106.752 126.903 92.0635 129.029C89.1349 129.453 87 131.964 87 134.923V145.08C87 148.038 89.134 150.548 92.0614 150.973C106.726 153.1 150.096 159 180 159C209.904 159 253.274 153.1 267.939 150.973C270.866 150.548 273 148.038 273 145.08V134.923C273 131.964 270.865 129.453 267.937 129.029C253.248 126.903 209.779 121 180 121Z"
                                ),
                                svg.prop("fill", utils.getDefURL("ml")),
                                svg.prop("fill-opacity", "0.5")
                            ),
                            utils.NULL
                        ),
                        svg.path(
                            string.concat(
                                svg.prop("fill-rule", "evenodd"),
                                svg.prop("clip-rule", "evenodd"),
                                svg.prop(
                                    "d",
                                    "M74 134.14C74 131.182 76.1226 128.673 79.0501 128.247C95.0201 125.92 145.413 119 180 119C214.587 119 264.98 125.92 280.95 128.247C283.877 128.673 286 131.182 286 134.14V144.86C286 147.818 283.877 150.327 280.95 150.753C264.98 153.08 214.587 160 180 160C145.413 160 95.0201 153.08 79.0501 150.753C76.1226 150.327 74 147.818 74 144.86V134.14ZM87 134.923C87 131.964 89.1349 129.453 92.0635 129.029C106.752 126.903 150.221 121 180 121C209.779 121 253.248 126.903 267.937 129.029C270.865 129.453 273 131.964 273 134.923V144.08C273 147.038 270.866 149.548 267.939 149.973C253.274 152.1 209.904 158 180 158C150.096 158 106.726 152.1 92.0614 149.973C89.134 149.548 87 147.038 87 144.08V134.923Z"
                                ),
                                svg.prop("fill", utils.getDefURL("obg"))
                            ),
                            utils.NULL
                        )
                    )
                );
        }

        // Default case.
        return utils.NULL;
    }

    function renderBaseMonocle() internal pure returns (string memory) {
        return
            string.concat(
                svg.circle(
                    string.concat(
                        svg.prop("r", utils.uint2str(48)),
                        svg.prop("cx", utils.uint2str(124)),
                        svg.prop("cy", utils.uint2str(140))
                    ),
                    utils.NULL
                ),
                svg.line(
                    string.concat(
                        svg.prop("x1", utils.uint2str(123)),
                        svg.prop("x2", utils.uint2str(123)),
                        svg.prop("y1", utils.uint2str(188)),
                        svg.prop("y2", utils.uint2str(304)),
                        svg.prop("stroke", utils.getCssVar("fa")),
                        svg.prop("stroke-linecap", "round")
                    ),
                    utils.NULL
                )
            );
    }
}

File 2 of 4 : SVG.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
import "./Utils.sol";

// Core SVG utilitiy library which helps us construct
// onchain SVG's with a simple, web-like API.
library svg {
    /* MAIN ELEMENTS */
    function g(string memory _props, string memory _children)
        internal
        pure
        returns (string memory)
    {
        return el("g", _props, _children);
    }

    function path(string memory _props, string memory _children)
        internal
        pure
        returns (string memory)
    {
        return el("path", _props, _children);
    }

    function text(string memory _props, string memory _children)
        internal
        pure
        returns (string memory)
    {
        return el("text", _props, _children);
    }

    function line(string memory _props, string memory _children)
        internal
        pure
        returns (string memory)
    {
        return el("line", _props, _children);
    }

    function circle(string memory _props, string memory _children)
        internal
        pure
        returns (string memory)
    {
        return el("circle", _props, _children);
    }

    function rect(string memory _props, string memory _children)
        internal
        pure
        returns (string memory)
    {
        return el("rect", _props, _children);
    }

    function filter(string memory _props, string memory _children)
        internal
        pure
        returns (string memory)
    {
        return el("filter", _props, _children);
    }

    /* GRADIENTS */
    function radialGradient(string memory _props, string memory _children)
        internal
        pure
        returns (string memory)
    {
        return el("radialGradient", _props, _children);
    }

    function linearGradient(string memory _props, string memory _children)
        internal
        pure
        returns (string memory)
    {
        return el("linearGradient", _props, _children);
    }

    function gradientStop(
        uint256 offset,
        string memory stopColor,
        string memory _props
    ) internal pure returns (string memory) {
        return
            el(
                "stop",
                string.concat(
                    prop("stop-color", stopColor),
                    " ",
                    prop("offset", string.concat(utils.uint2str(offset), "%")),
                    " ",
                    _props
                ),
                utils.NULL
            );
    }

    function animateTransform(string memory _props)
        internal
        pure
        returns (string memory)
    {
        return el("animateTransform", _props, utils.NULL);
    }

    /* COMMON */
    // A generic element, can be used to construct any SVG (or HTML) element
    function el(
        string memory _tag,
        string memory _props,
        string memory _children
    ) internal pure returns (string memory) {
        return
            string.concat(
                "<",
                _tag,
                " ",
                _props,
                ">",
                _children,
                "</",
                _tag,
                ">"
            );
    }

    // an SVG attribute
    function prop(string memory _key, string memory _val)
        internal
        pure
        returns (string memory)
    {
        return string.concat(_key, "=", '"', _val, '" ');
    }
}

File 3 of 4 : WatchData.sol
//SPDX-License-Identifier: Unlicense

pragma solidity ^0.8.0;
import "./Utils.sol";

// Primary library for storing all core constants and rendering data.
library WatchData {
    /* CONSTANTS */
    uint256 public constant WATCH_SIZE = 360;
    uint256 public constant CENTER = 180;
    uint256 public constant OUTER_BEZEL_RADIUS = 180;
    uint256 public constant INNER_BEZEL_RADIUS = 152;
    uint256 public constant FACE_RADIUS = 144; // OUTER_BEZEL_RADIUS * 0.8
    uint8 public constant GLOW_IN_THE_DARK_ID = 99;

    /* IDs */
    enum MaterialId {
        Pearl,
        Copper,
        Onyx,
        Quartz,
        Emerald,
        Ruby,
        Sapphire,
        Amber,
        Amethyst,
        Obsidian,
        Gold,
        Diamond
    }

    enum MoodId {
        Surprised,
        Happy,
        Relaxed,
        Excited,
        Speechless,
        Chilling,
        Annoyed,
        Sleepy,
        Unimpressed,
        Meditating,
        Relieved,
        Cheeky,
        Sus
    }

    enum GlassesId {
        None,
        LeftMonocle,
        RightMonocle,
        Flip,
        Valentine,
        Shutters,
        ThreeD,
        Ski,
        Monolens
    }

    /* TRAIT STRUCTS */
    struct Material {
        MaterialId id;
        string name;
        string[2] vals;
    }

    struct Glasses {
        GlassesId id;
        string name;
    }

    struct Mood {
        MoodId id;
        string name;
    }

    struct GlowInTheDarkData {
        // contains the light mode colors
        string[2] light;
        // contains the dark mode colors
        string[2] dark;
        string name;
    }

    /* DATA RETRIEVAL */
    function getGlowInTheDarkData()
        public
        pure
        returns (GlowInTheDarkData memory)
    {
        return
            GlowInTheDarkData(
                ["#fbfffc", "#d7ffd7"],
                ["#052925", "#a4ffa1"],
                "Glow In The Dark"
            );
    }

    function getDiamondOverlayGradient()
        public
        pure
        returns (string[7] memory)
    {
        return [
            "#fffd92",
            "#ffcca7",
            "#f893ff",
            "#b393ff",
            "#99a7ff",
            "#76d4ff",
            "#7cffda"
        ];
    }

    function getMaterial(uint256 _materialId)
        public
        pure
        returns (Material memory)
    {
        Material[12] memory materials = [
            Material(MaterialId.Pearl, "Ocean Pearl", ["#ffffff", "#f6e6ff"]),
            Material(
                MaterialId.Copper,
                "Resistor Copper",
                ["#f7d1bf", "#5a2c1d"]
            ),
            Material(MaterialId.Onyx, "Void Onyx", ["#615c5c", "#0f0f0f"]),
            Material(MaterialId.Quartz, "Block Quartz", ["#ffb4be", "#81004e"]),
            Material(
                MaterialId.Emerald,
                "Matrix Emerald",
                ["#97ff47", "#011601"]
            ),
            Material(MaterialId.Ruby, "404 Ruby", ["#fe3d4a", "#460008"]),
            Material(
                MaterialId.Sapphire,
                "Hyperlink Sapphire",
                ["#4668ff", "#000281"]
            ),
            Material(MaterialId.Amber, "Sunset Amber", ["#ffa641", "#30031f"]),
            Material(
                MaterialId.Amethyst,
                "Candy Amethyst",
                ["#f7dfff", "#3671ca"]
            ),
            Material(
                MaterialId.Obsidian,
                "Nether Obsidian",
                ["#6f00ff", "#2b003b"]
            ),
            Material(MaterialId.Gold, "Electric Gold", ["#fcba7d", "#864800"]),
            Material(
                MaterialId.Diamond,
                "Ethereal Diamond",
                ["#b5f9ff", "#30c2c2"]
            )
        ];

        return materials[_materialId];
    }

    function getMood(uint256 _moodId) public pure returns (Mood memory) {
        Mood[13] memory moods = [
            Mood(MoodId.Surprised, "Surprised"),
            Mood(MoodId.Happy, "Happy"),
            Mood(MoodId.Relaxed, "Relaxed"),
            Mood(MoodId.Excited, "Excited"),
            Mood(MoodId.Speechless, "Speechless"),
            Mood(MoodId.Chilling, "Chilling"),
            Mood(MoodId.Annoyed, "Annoyed"),
            Mood(MoodId.Sleepy, "Sleepy"),
            Mood(MoodId.Unimpressed, "Unimpressed"),
            Mood(MoodId.Meditating, "Meditating"),
            Mood(MoodId.Relieved, "Relieved"),
            Mood(MoodId.Cheeky, "Cheeky"),
            Mood(MoodId.Sus, "Sus")
        ];

        return moods[_moodId];
    }

    function getGlasses(uint256 _glassesId)
        public
        pure
        returns (Glasses memory)
    {
        Glasses[9] memory glasses = [
            Glasses(GlassesId.None, "None"),
            Glasses(GlassesId.LeftMonocle, "Left Monocle"),
            Glasses(GlassesId.RightMonocle, "Right Monocle"),
            Glasses(GlassesId.Flip, "Flip"),
            Glasses(GlassesId.Valentine, "Valentine"),
            Glasses(GlassesId.Shutters, "Shutters"),
            Glasses(GlassesId.ThreeD, "3D"),
            Glasses(GlassesId.Ski, "Ski"),
            Glasses(GlassesId.Monolens, "Monolens")
        ];

        return glasses[_glassesId];
    }

    /* UTILS */
    // used to determine proper accent colors.
    function isLightMaterial(MaterialId _id) public pure returns (bool) {
        return _id == MaterialId.Pearl || _id == MaterialId.Diamond;
    }

    function getMaterialAccentColor(MaterialId _id)
        public
        pure
        returns (string memory)
    {
        if (isLightMaterial(_id)) {
            return utils.getCssVar("black");
        }

        return utils.getCssVar("white");
    }

    function getMaterialShadow(MaterialId _id)
        public
        pure
        returns (string memory)
    {
        if (isLightMaterial(_id)) {
            return utils.black_a(85);
        }

        return utils.white_a(85);
    }
}

File 4 of 4 : Utils.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;

// Core utils used extensively to format CSS and numbers.
library utils {
    // used to simulate empty strings
    string internal constant NULL = "";

    // formats a CSS variable line. includes a semicolon for formatting.
    function setCssVar(string memory _key, string memory _val)
        internal
        pure
        returns (string memory)
    {
        return string.concat("--", _key, ":", _val, ";");
    }

    // formats getting a css variable
    function getCssVar(string memory _key)
        internal
        pure
        returns (string memory)
    {
        return string.concat("var(--", _key, ")");
    }

    // formats getting a def URL
    function getDefURL(string memory _id)
        internal
        pure
        returns (string memory)
    {
        return string.concat("url(#", _id, ")");
    }

    // formats rgba white with a specified opacity / alpha
    function white_a(uint256 _a) internal pure returns (string memory) {
        return rgba(255, 255, 255, _a);
    }

    // formats rgba black with a specified opacity / alpha
    function black_a(uint256 _a) internal pure returns (string memory) {
        return rgba(0, 0, 0, _a);
    }

    // formats generic rgba color in css
    function rgba(
        uint256 _r,
        uint256 _g,
        uint256 _b,
        uint256 _a
    ) internal pure returns (string memory) {
        string memory formattedA = _a < 100
            ? string.concat("0.", utils.uint2str(_a))
            : "1";
        return
            string.concat(
                "rgba(",
                utils.uint2str(_r),
                ",",
                utils.uint2str(_g),
                ",",
                utils.uint2str(_b),
                ",",
                formattedA,
                ")"
            );
    }

    // checks if two strings are equal
    function stringsEqual(string memory _a, string memory _b)
        internal
        pure
        returns (bool)
    {
        return
            keccak256(abi.encodePacked(_a)) == keccak256(abi.encodePacked(_b));
    }

    // returns the length of a string in characters
    function utfStringLength(string memory _str)
        internal
        pure
        returns (uint256 length)
    {
        uint256 i = 0;
        bytes memory string_rep = bytes(_str);

        while (i < string_rep.length) {
            if (string_rep[i] >> 7 == 0) i += 1;
            else if (string_rep[i] >> 5 == bytes1(uint8(0x6))) i += 2;
            else if (string_rep[i] >> 4 == bytes1(uint8(0xE))) i += 3;
            else if (string_rep[i] >> 3 == bytes1(uint8(0x1E)))
                i += 4;
                //For safety
            else i += 1;

            length++;
        }
    }

    // converts an unsigned integer to a string
    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);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"render","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"}]

613e9461003a600b82828239805160001a60731461002d57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600436106100355760003560e01c8063c321118c1461003a575b600080fd5b61004d610048366004611ec3565b610063565b60405161005a9190611f0c565b60405180910390f35b6060600082600881111561007957610079611f3f565b9050600081600881111561008f5761008f611f3f565b14156100ab575050604080516020810190915260008152919050565b60018160088111156100bf576100bf611f3f565b141561026f57610268610112604051806040016040528060068152602001657374726f6b6560d01b81525061010d60405180604001604052806002815260200161666160f01b81525061191a565b611943565b61015e6040518060400160405280600e81526020016d7374726f6b652d6f70616369747960901b81525060405180604001604052806004815260200163302e333560e01b815250611943565b6101a260405180604001604052806004815260200163199a5b1b60e21b81525061010d604051806040016040528060038152602001626f626760e81b81525061196f565b6101eb6040518060400160405280600c81526020016b66696c6c2d6f70616369747960a01b815250604051806040016040528060038152602001620c0b8d60ea1b815250611943565b610238604051806040016040528060068152602001653334b63a32b960d11b81525061010d6040518060400160405280600a81526020016964726f70536861646f7760b01b81525061196f565b60405160200161024c959493929190611f55565b604051602081830303815290604052610263611982565b611c31565b9392505050565b600281600881111561028357610283611f3f565b141561041e576102686102d1604051806040016040528060068152602001657374726f6b6560d01b81525061010d60405180604001604052806002815260200161666160f01b81525061191a565b61031d6040518060400160405280600e81526020016d7374726f6b652d6f70616369747960901b81525060405180604001604052806004815260200163302e333560e01b815250611943565b61036160405180604001604052806004815260200163199a5b1b60e21b81525061010d604051806040016040528060038152602001626f626760e81b81525061196f565b6103aa6040518060400160405280600c81526020016b66696c6c2d6f70616369747960a01b815250604051806040016040528060038152602001620c0b8d60ea1b815250611943565b6102386040518060400160405280600981526020017f7472616e73666f726d00000000000000000000000000000000000000000000008152506040518060400160405280601081526020017f7472616e736c6174652831313220302900000000000000000000000000000000815250611943565b600381600881111561043257610432611f3f565b14156108e9576102686104936040518060400160405280600c81526020017f7374726f6b652d77696474680000000000000000000000000000000000000000815250604051806040016040528060018152602001603160f81b815250611943565b6104d8604051806040016040528060068152602001657374726f6b6560d01b81525061010d60405180604001604052806002815260200161666160f01b81525061191a565b6105246040518060400160405280600e81526020016d7374726f6b652d6f70616369747960901b81525060405180604001604052806004815260200163302e333560e01b815250611943565b610571604051806040016040528060068152602001653334b63a32b960d11b81525061010d6040518060400160405280600a81526020016964726f70536861646f7760b01b81525061196f565b6040516020016105849493929190611fc0565b60408051601f1981840301815282820190915260028252610c6f60f31b6020830152906106e1906105b99061010d60ec611c73565b6105e160405180604001604052806002815260200161637960f01b81525061010d608c611c73565b610608604051806040016040528060018152602001603960f91b81525061010d601c611c73565b61066660405180604001604052806004815260200163199a5b1b60e21b81525061010d6040518060400160405280600281526020017f726700000000000000000000000000000000000000000000000000000000000081525061196f565b6106af6040518060400160405280600c81526020016b66696c6c2d6f70616369747960a01b81525060405180604001604052806003815260200162302e3560e81b815250611943565b6040516020016106c3959493929190611f55565b60408051601f19818403018152602083019091526000825290611dd0565b61070c6105b9604051806040016040528060028152602001610c6f60f31b81525061010d607c611c73565b61077c610767604051806040016040528060018152602001601960fa1b8152506040518060400160405280600c81526020017f4d31323420313132683131350000000000000000000000000000000000000000815250611943565b60405180602001604052806000815250611e12565b6107d7610767604051806040016040528060018152602001601960fa1b8152506040518060400160405280600b81526020017f4d31353220313430683536000000000000000000000000000000000000000000815250611943565b610895610802604051806040016040528060028152602001610c6f60f31b81525061010d60ec611c73565b61082a60405180604001604052806002815260200161637960f01b81525061010d6054611c73565b610851604051806040016040528060018152602001603960f91b81525061010d601c611c73565b61066660405180604001604052806004815260200163199a5b1b60e21b81525061010d604051806040016040528060038152602001626f626760e81b81525061196f565b6108c0610802604051806040016040528060028152602001610c6f60f31b81525061010d607c611c73565b6040516020016108d596959493929190612017565b604051602081830303815290604052611c31565b60048160088111156108fd576108fd611f3f565b1415610c8d5761026861094b604051806040016040528060068152602001657374726f6b6560d01b81525061010d60405180604001604052806002815260200161666160f01b81525061191a565b6109976040518060400160405280600e81526020016d7374726f6b652d6f70616369747960901b81525060405180604001604052806004815260200163302e333560e01b815250611943565b6109e4604051806040016040528060068152602001653334b63a32b960d11b81525061010d6040518060400160405280600a81526020016964726f70536861646f7760b01b81525061196f565b6040516020016109f693929190612096565b604051602081830303815290604052610acd610a6360405180604001604052806004815260200163199a5b1b60e21b8152506040518060400160405280600481526020017f6e6f6e6500000000000000000000000000000000000000000000000000000000815250611943565b610a9e604051806040016040528060018152602001601960fa1b8152506040518060800160405280605081526020016126f460509139611943565b604051602001610aaf9291906120d9565b60408051601f19818403018152602083019091526000825290611e12565b610bad610b1460405180604001604052806004815260200163199a5b1b60e21b81525061010d604051806040016040528060038152602001626f626760e81b81525061196f565b610b5d6040518060400160405280600c81526020016b66696c6c2d6f70616369747960a01b81525060405180604001604052806003815260200162302e3560e81b815250611943565b610b9b604051806040016040528060018152602001601960fa1b81525060405180610380016040528061034381526020016127446103439139611943565b604051602001610aaf93929190612096565b610c7b610bf460405180604001604052806004815260200163199a5b1b60e21b81525061010d604051806040016040528060038152602001626f626760e81b81525061196f565b610c3d6040518060400160405280600c81526020016b66696c6c2d6f70616369747960a01b81525060405180604001604052806003815260200162302e3560e81b815250611943565b610b9b604051806040016040528060018152602001601960fa1b8152506040518061036001604052806103298152602001613b366103299139611943565b6040516020016108d593929190612096565b6005816008811115610ca157610ca1611f3f565b1415610e4857610268610cee60405180604001604052806004815260200163199a5b1b60e21b81525061010d604051806040016040528060038152602001626f626760e81b81525061196f565b610d33604051806040016040528060068152602001657374726f6b6560d01b81525061010d60405180604001604052806002815260200161666160f01b81525061191a565b610d986040518060400160405280600e81526020016d7374726f6b652d6f70616369747960901b8152506040518060400160405280600481526020017f302e323500000000000000000000000000000000000000000000000000000000815250611943565b610de5604051806040016040528060068152602001653334b63a32b960d11b81525061010d6040518060400160405280600a81526020016964726f70536861646f7760b01b81525061196f565b604051602001610df89493929190611fc0565b604051602081830303815290604052610263610767604051806040016040528060018152602001601960fa1b81525060405180610a600160405280610a388152602001612a87610a389139611943565b6006816008811115610e5c57610e5c611f3f565b141561119b57610268610eaa604051806040016040528060068152602001657374726f6b6560d01b81525061010d60405180604001604052806002815260200161666160f01b81525061191a565b610ef66040518060400160405280600e81526020016d7374726f6b652d6f70616369747960901b81525060405180604001604052806004815260200163302e333560e01b815250611943565b610f3f6040518060400160405280600c81526020016b66696c6c2d6f70616369747960a01b81525060405180604001604052806003815260200162302e3560e81b815250611943565b610f8c604051806040016040528060068152602001653334b63a32b960d11b81525061010d6040518060400160405280600a81526020016964726f70536861646f7760b01b81525061196f565b604051602001610f9f9493929190611fc0565b60405160208183030381529060405261104861100c60405180604001604052806004815260200163199a5b1b60e21b8152506040518060400160405280600381526020017f7265640000000000000000000000000000000000000000000000000000000000815250611943565b610a9e604051806040016040528060018152602001601960fa1b81525060405180610100016040528060d681526020016134bf60d69139611943565b6110e26110a660405180604001604052806004815260200163199a5b1b60e21b8152506040518060400160405280600481526020017f626c756500000000000000000000000000000000000000000000000000000000815250611943565b610a9e604051806040016040528060018152602001601960fa1b81525060405180610100016040528060d8815260200161261c60d89139611943565b610c7b61114360405180604001604052806004815260200163199a5b1b60e21b81525061010d6040518060400160405280600281526020017f627000000000000000000000000000000000000000000000000000000000000081525061191a565b610a9e604051806040016040528060018152602001601960fa1b8152506040518060400160405280601781526020017f4d3137322e35203133332e35683135763133682d31357a000000000000000000815250611943565b60078160088111156111af576111af611f3f565b14156115c3576102686112026040518060400160405280600981526020016866696c6c2d72756c6560b81b81525060405180604001604052806007815260200166195d995b9bd91960ca1b815250611943565b61124f604051806040016040528060068152602001653334b63a32b960d11b81525061010d6040518060400160405280600a81526020016964726f70536861646f7760b01b81525061196f565b6040516020016112609291906120d9565b6040516020818303038152906040526114906112bc6040518060400160405280600981526020016866696c6c2d72756c6560b81b81525060405180604001604052806007815260200166195d995b9bd91960ca1b815250611943565b61130660405180604001604052806009815260200168636c69702d72756c6560b81b81525060405180604001604052806007815260200166195d995b9bd91960ca1b815250611943565b611344604051806040016040528060018152602001601960fa1b8152506040518061032001604052806102f381526020016138436102f39139611943565b6113a260405180604001604052806004815260200163199a5b1b60e21b81525061010d6040518060400160405280600281526020017f666700000000000000000000000000000000000000000000000000000000000081525061196f565b6113e96040518060400160405280600c81526020016b66696c6c2d6f70616369747960a01b815250604051806040016040528060018152602001603160f81b815250611943565b61142e604051806040016040528060068152602001657374726f6b6560d01b81525061010d60405180604001604052806002815260200161666160f01b81525061191a565b61147a6040518060400160405280600e81526020016d7374726f6b652d6f70616369747960901b81525060405180604001604052806004815260200163302e333560e01b815250611943565b604051602001610aaf9796959493929190612108565b6115986114bb604051806040016040528060028152602001610c6f60f31b81525061010d607c611c73565b6114e360405180604001604052806002815260200161637960f01b81525061010d608c611c73565b61150a604051806040016040528060018152602001603960f91b81525061010d6028611c73565b61154e60405180604001604052806004815260200163199a5b1b60e21b81525061010d604051806040016040528060038152602001626f626760e81b81525061196f565b6106af6040518060400160405280600c81526020016b66696c6c2d6f70616369747960a01b81525060405180604001604052806004815260200163302e333560e01b815250611943565b610c7b6114bb604051806040016040528060028152602001610c6f60f31b81525061010d60ec611c73565b60088160088111156115d7576115d7611f3f565b141561190457610268611625604051806040016040528060068152602001657374726f6b6560d01b81525061010d60405180604001604052806002815260200161666160f01b81525061191a565b6116716040518060400160405280600e81526020016d7374726f6b652d6f70616369747960901b81525060405180604001604052806004815260200163302e333560e01b815250611943565b6116be604051806040016040528060068152602001653334b63a32b960d11b81525061010d6040518060400160405280600a81526020016964726f70536861646f7760b01b81525061196f565b6040516020016116d093929190612096565b6040516020818303038152906040526117c7611720604051806040016040528060018152602001601960fa1b81525060405180610180016040528061015781526020016124c56101579139611943565b61177e60405180604001604052806004815260200163199a5b1b60e21b81525061010d6040518060400160405280600281526020017f6d6c00000000000000000000000000000000000000000000000000000000000081525061196f565b610b9b6040518060400160405280600c81526020016b66696c6c2d6f70616369747960a01b81525060405180604001604052806003815260200162302e3560e81b815250611943565b6118f36118146040518060400160405280600981526020016866696c6c2d72756c6560b81b81525060405180604001604052806007815260200166195d995b9bd91960ca1b815250611943565b61185e60405180604001604052806009815260200168636c69702d72756c6560b81b81525060405180604001604052806007815260200166195d995b9bd91960ca1b815250611943565b61189c604051806040016040528060018152602001601960fa1b815250604051806102e001604052806102ae81526020016135956102ae9139611943565b6118e060405180604001604052806004815260200163199a5b1b60e21b81525061010d604051806040016040528060038152602001626f626760e81b81525061196f565b604051602001610aaf9493929190611fc0565b6040516020016108d59291906120d9565b5050604080516020810190915260008152919050565b60608160405160200161192d919061219a565b6040516020818303038152906040529050919050565b606082826040516020016119589291906121ea565b604051602081830303815290604052905092915050565b60608160405160200161192d9190612292565b6060611a106119ae604051806040016040528060018152602001603960f91b81525061010d6030611c73565b6119d6604051806040016040528060028152602001610c6f60f31b81525061010d607c611c73565b6119fe60405180604001604052806002815260200161637960f01b81525061010d608c611c73565b6040516020016106c393929190612096565b611c0c611a566040518060400160405280600281526020017f783100000000000000000000000000000000000000000000000000000000000081525061010d607b611c73565b611a996040518060400160405280600281526020017f783200000000000000000000000000000000000000000000000000000000000081525061010d607b611c73565b611adc6040518060400160405280600281526020017f793100000000000000000000000000000000000000000000000000000000000081525061010d60bc611c73565b611b206040518060400160405280600281526020017f793200000000000000000000000000000000000000000000000000000000000081525061010d610130611c73565b611b65604051806040016040528060068152602001657374726f6b6560d01b81525061010d60405180604001604052806002815260200161666160f01b81525061191a565b611bd96040518060400160405280600e81526020017f7374726f6b652d6c696e656361700000000000000000000000000000000000008152506040518060400160405280600581526020017f726f756e64000000000000000000000000000000000000000000000000000000815250611943565b604051602001611bee96959493929190612017565b60408051601f19818403018152602083019091526000825290611e54565b604051602001611c1d9291906120d9565b604051602081830303815290604052905090565b60606102686040518060400160405280600181526020017f67000000000000000000000000000000000000000000000000000000000000008152508484611e92565b606081611cb357505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115611cdd5780611cc7816122f8565b9150611cd69050600a83612313565b9150611cb7565b60008167ffffffffffffffff811115611cf857611cf8612335565b6040519080825280601f01601f191660200182016040528015611d22576020820181803683370190505b509050815b8515611dc757611d3860018261234b565b90506000611d47600a88612313565b611d5290600a612362565b611d5c908861234b565b611d67906030612381565b905060008160f81b905080848481518110611d8457611d846123a6565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611dbe600a89612313565b97505050611d27565b50949350505050565b60606102686040518060400160405280600681526020017f636972636c6500000000000000000000000000000000000000000000000000008152508484611e92565b60606102686040518060400160405280600481526020017f70617468000000000000000000000000000000000000000000000000000000008152508484611e92565b60606102686040518060400160405280600481526020017f6c696e650000000000000000000000000000000000000000000000000000000081525084845b606083838386604051602001611eab94939291906123bc565b60405160208183030381529060405290509392505050565b600060208284031215611ed557600080fd5b5035919050565b60005b83811015611ef7578181015183820152602001611edf565b83811115611f06576000848401525b50505050565b6020815260008251806020840152611f2b816040850160208701611edc565b601f01601f19169190910160400192915050565b634e487b7160e01b600052602160045260246000fd5b60008651611f67818460208b01611edc565b865190830190611f7b818360208b01611edc565b8651910190611f8e818360208a01611edc565b8551910190611fa1818360208901611edc565b8451910190611fb4818360208801611edc565b01979650505050505050565b60008551611fd2818460208a01611edc565b855190830190611fe6818360208a01611edc565b8551910190611ff9818360208901611edc565b845191019061200c818360208801611edc565b019695505050505050565b60008751602061202a8285838d01611edc565b88519184019161203d8184848d01611edc565b885192019161204f8184848c01611edc565b87519201916120618184848b01611edc565b86519201916120738184848a01611edc565b85519201916120858184848901611edc565b919091019998505050505050505050565b600084516120a8818460208901611edc565b8451908301906120bc818360208901611edc565b84519101906120cf818360208801611edc565b0195945050505050565b600083516120eb818460208801611edc565b8351908301906120ff818360208801611edc565b01949350505050565b60008851602061211b8285838e01611edc565b89519184019161212e8184848e01611edc565b89519201916121408184848d01611edc565b88519201916121528184848c01611edc565b87519201916121648184848b01611edc565b86519201916121768184848a01611edc565b85519201916121888184848901611edc565b919091019a9950505050505050505050565b7f766172282d2d00000000000000000000000000000000000000000000000000008152600082516121d2816006850160208701611edc565b602960f81b6006939091019283015250600701919050565b600083516121fc818460208801611edc565b7f3d000000000000000000000000000000000000000000000000000000000000009083019081527f22000000000000000000000000000000000000000000000000000000000000006001820152835161225c816002840160208801611edc565b7f222000000000000000000000000000000000000000000000000000000000000060029290910191820152600401949350505050565b7f75726c28230000000000000000000000000000000000000000000000000000008152600082516122ca816005850160208701611edc565b602960f81b6005939091019283015250600601919050565b634e487b7160e01b600052601160045260246000fd5b600060001982141561230c5761230c6122e2565b5060010190565b60008261233057634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052604160045260246000fd5b60008282101561235d5761235d6122e2565b500390565b600081600019048311821515161561237c5761237c6122e2565b500290565b600060ff821660ff84168060ff0382111561239e5761239e6122e2565b019392505050565b634e487b7160e01b600052603260045260246000fd5b7f3c000000000000000000000000000000000000000000000000000000000000008152600085516123f4816001850160208a01611edc565b7f20000000000000000000000000000000000000000000000000000000000000006001918401918201528551612431816002840160208a01611edc565b8082019150507f3e000000000000000000000000000000000000000000000000000000000000008060028301528551612471816003850160208a01611edc565b7f3c2f0000000000000000000000000000000000000000000000000000000000006003939091019283015284516124af816005850160208901611edc565b6005920191820152600601969550505050505056fe4d31383020313231433135302e32323120313231203130362e373532203132362e3930332039322e30363335203132392e3032394338392e31333439203132392e343533203837203133312e393634203837203133342e393233563134352e3038433837203134382e3033382038392e313334203135302e3534382039322e30363134203135302e393733433130362e373236203135332e31203135302e303936203135392031383020313539433230392e39303420313539203235332e323734203135332e31203236372e393339203135302e393733433237302e383636203135302e35343820323733203134382e30333820323733203134352e3038563133342e39323343323733203133312e393634203237302e383635203132392e343533203236372e393337203132392e303239433235332e323438203132362e393033203230392e3737392031323120313830203132315a4d3230312e383933203132302e354832363961382e3520382e3520302030203120382e3520382e3576323261382e3520382e352030203020312d382e3520382e35682d36372e31353561382e3520382e352030203020312d362e3633372d332e31396c2d352e3834352d372e33303661382e35303120382e3530312030203020312d312e3836332d352e3331762d372e31383161382e3520382e3520302030203120312e3831322d352e3234366c352e3839322d372e35313361382e35303320382e35303320302030203120362e3638392d332e3235345a4d313631203134302e3543313631203134302e35203137322e383435203133372e35203138302e35203133372e35433138382e313535203133372e3520313939203134302e3520313939203134302e354d3132332e3637203131382e3637314c313234203131382e3935394c3132342e3333203131382e363731433132342e373236203131382e333233203132352e313433203131372e393932203132352e353831203131372e3638433132352e393536203131372e343132203132362e333235203131372e313436203132362e363837203131362e3838354c3132362e363839203131362e383834433133302e313839203131342e3336203133332e313336203131322e323435203133372e3236203131312e373238433134332e373039203131302e393139203135302e303138203131322e323533203135342e373035203131352e383838433135392e333738203131392e353133203136322e35203132352e343733203136322e35203133342e303534433136322e35203133382e323735203136302e383539203134322e37203135382e313638203134372e3034433135352e343739203135312e333736203135312e373631203135352e353934203134372e3636203135392e333838433133392e3439203136362e393438203132392e383739203137322e37353520313234203137342e3437433131382e313231203137322e373535203130382e3531203136362e393438203130302e3334203135392e3338384339362e32333838203135352e3539342039322e35323135203135312e3337362038392e38333235203134372e30344338372e31343132203134322e372038352e35203133382e3237352038352e35203133342e3035344338352e35203132352e3437332038382e36323135203131392e3531332039332e323935203131352e3838384339372e39383135203131322e323533203130342e323931203131302e393139203131302e3734203131312e373238433131342e383634203131322e323435203131372e383131203131342e3336203132312e333131203131362e3838344c3132312e333133203131362e383835433132312e363735203131372e313436203132322e303434203131372e343132203132322e343139203131372e36384c3132322e3731203131372e3237334c3132322e343139203131372e3638433132322e383537203131372e393932203132332e323734203131382e333233203132332e3637203131382e3637315a6d38352e33393536203131352e3634312e313034342d2e313335762d2e303036682e303033396c2e313530312d2e31383763342e333037362d352e3337342031302e3932352d382e3831332031382e3334362d382e3831336831353263372e34323120302031342e30333820332e3433392031382e33343620382e3831336c2e31352e313837682e303034762e3030366c2e3130342e31333563332e303720332e39373120342e38393620382e39353120342e3839362031342e333539763232633020362e3437352d322e3631382031322e3333372d362e3835342031362e3538386c2d2e3134362e313436762e373636682d2e3831346c2d2e3134322e313235632d342e31343320332e3635372d392e35383420352e3837352d31352e35343420352e383735682d32382e383533632d362e3820302d31332e3136312d322e3137312d31382e3336342d352e3930366c2d2e3133312d2e303934682d2e313532762d2e31316c2d2e3230312d2e3135632d342e3834362d332e3632312d382e3633372d382e36322d31302e3736332d31342e3438366c2d2e3030362d2e3031352d2e3030362d2e303135632d312e31322d322e3535342d312e3935332d352e3232342d322e3736342d372e3832376c2d2e3031382d2e303537632d312e3233342d332e3935382d322e34332d372e3739372d342e3534322d31302e3633352d322e3135382d322e3930312d352e3235362d342e3734322d31302e322d342e3734322d342e39343420302d382e30343220312e3834312d31302e3220342e3734322d322e31313220322e3833382d332e33303820362e3637372d342e3534322031302e3633356c2d2e3031382e303537632d2e38313120322e3630332d312e36343420352e3237332d322e37363420372e3832376c2d2e3030362e3031352d2e3030362e303135632d322e31323620352e3836362d352e3931372031302e3836352d31302e3736332031342e3438366c2d2e3230312e3135762e3131682d2e3135326c2d2e3133312e303934632d352e32303320332e3733352d31312e35363420352e3930362d31382e33363420352e39303648313034632d352e3936303220302d31312e343031312d322e3231382d31352e353434312d352e3837356c2d2e313431382d2e3132354838372e35762d2e3736366c2d2e313435382d2e3134364338332e31313739203136342e3333372038302e35203135382e3437352038302e3520313532762d323263302d352e34303820312e383236312d31302e33383820342e383935362d31342e3335395a6d332e3136323320342e383539682d2e323730396c2d2e3134382e323237632d2e3833343220312e3237392d312e3534313820322e3634392d322e31303520342e3039316c2d2e323636332e3638326837352e303639336c2d2e3332372d2e373039632d2e3636312d312e3433382d312e3435392d322e3830352d322e3337382d342e3038336c2d2e31352d2e3230384838382e353537395a6d36322e393534312d3568312e3635326c2d312e3337352d2e393136632d332e3835372d322e35372d382e3530352d342e3038342d31332e3535382d342e30383448313037632d342e38313620302d392e323820312e3531342d31322e3934303220342e3039316c2d312e323930362e3930396835382e373432385a6d31302e3838392031352e3431372d2e30372d2e3431374838342e363332376c2d2e3034312e343535632d2e303630372e3637342d2e3039313720312e3335362d2e3039313720322e30343576322e356837382e3233376c2e3030312d2e343939632e3030332d312e3338362d2e3131322d322e3735312d2e3333372d342e3038345a6d2d2e3337362031302e3137332e3130382d2e35394838342e3576356837362e3732326c2e3037342d2e34312e3732392d345a6d2d322e3232372031302e3037362e3233352d2e3636364838342e353432366c2e303439312e353435632e3039343220312e3034352e3235393820322e3036392e3439313920332e3036386c2e303839392e3338376837332e323231356c2e3133362d2e323833632e3437342d2e3938372e3839382d322e30303520312e3236372d332e3035315a6d2d352e31353320392e3135312e3636392d2e3831374838372e303736336c2e343334312e3735632e3835353120312e34373920312e3837333420322e383520332e3033303320342e3039316c2e313438332e3135396835392e3739336c2e31342d2e31313763312e3436322d312e32323420322e38312d322e35383520342e3032332d342e3036365a6d2d31352e3738312031302e3136362d2e3132392d2e393833682d33382e3331326c2d2e3134392e39373763322e3132342e36363520342e33383420312e30323320362e37323620312e3032336832342e30333963322e363934203020352e3331392d2e33353220372e3832352d312e3031375a6d3133322e3939372d34392e3735362d2e3134382d2e323237682d36392e3639356c2d2e31352e323038632d2e39313920312e3237382d312e37313720322e3634352d322e33373820342e3038336c2d2e3332372e3730396837352e3036396c2d2e3236362d2e363832632d2e3536332d312e3434322d312e3237312d322e3831322d322e3130352d342e3039315a6d2d36332e36352d362e3134332d312e3337352e3931366836302e3339356c2d312e3239312d2e393039632d332e36362d322e3537372d382e3132342d342e3039312d31322e39342d342e303931682d33312e323331632d352e30353320302d392e37303120312e3531342d31332e35353820342e3038345a4d3139382e303932203133302e35682d2e3432336c2d2e30372e343137632d2e32323520312e3333332d2e333420322e3639382d2e33333720342e3038346c2e3030312e343939483237352e355631333363302d2e3638392d2e3033312d312e3337312d2e3039322d322e3034356c2d2e3034312d2e343535682d37372e3237355a6d2e333735203130682d2e366c2e3130382e35392e3732392034202e3037342e3431483237352e35762d35682d37372e3033335a6d322e323037203130682d2e3730376c2e3233352e363636632e33363920312e3034362e37393320322e30363420312e32363720332e3035316c2e3133362e3238336837332e3232316c2e30392d2e333837632e3233332d2e3939392e3339382d322e3032332e3439322d332e3036386c2e3034392d2e353435682d37342e3738335a6d352e3036382039682d312e3035366c2e3636392e38313763312e32313320312e34383120322e35363120322e38343220342e30323320342e3036366c2e31342e3131376835392e3739336c2e3134382d2e31353963312e3135372d312e32343120322e3137362d322e36313220332e3033312d342e3039316c2e3433342d2e3735682d36372e3138325a6d31352e3532332031302d2e3132392e39383363322e3530362e36363520352e31333120312e30313720372e38323520312e3031374832353363322e333432203020342e3630322d2e33353820362e3732362d312e3032336c2d2e3134392d2e393737682d33382e3331325a4d3135382e313037203132302e3548393161382e3520382e352030203020302d382e3520382e3576323261382e3520382e3520302030203020382e3520382e356836372e31353561382e3520382e3520302030203020362e3633372d332e31396c352e3834352d372e33303661382e35303120382e35303120302030203020312e3836332d352e3331762d372e31383161382e3520382e352030203020302d312e3831322d352e3234366c2d352e3839322d372e35313361382e35303320382e3530332030203020302d362e3638392d332e3235345a4d3734203133342e3134433734203133312e3138322037362e31323236203132382e3637332037392e30353031203132382e3234374339352e30323031203132352e3932203134352e343133203131392031383020313139433231342e35383720313139203236342e3938203132352e3932203238302e3935203132382e323437433238332e383737203132382e36373320323836203133312e31383220323836203133342e3134563134342e383643323836203134372e383138203238332e383737203135302e333237203238302e3935203135302e373533433236342e3938203135332e3038203231342e353837203136302031383020313630433134352e343133203136302039352e30323031203135332e30382037392e30353031203135302e3735334337362e31323236203135302e333237203734203134372e383138203734203134342e3836563133342e31345a4d3837203133342e393233433837203133312e3936342038392e31333439203132392e3435332039322e30363335203132392e303239433130362e373532203132362e393033203135302e323231203132312031383020313231433230392e37373920313231203235332e323438203132362e393033203236372e393337203132392e303239433237302e383635203132392e34353320323733203133312e39363420323733203133342e393233563134342e303843323733203134372e303338203237302e383636203134392e353438203236372e393339203134392e393733433235332e323734203135322e31203230392e393034203135382031383020313538433135302e30393620313538203130362e373236203135322e312039322e30363134203134392e3937334338392e313334203134392e353438203837203134372e303338203837203134342e3038563133342e3932335a4d3132332e3533332039365639362e303031384339392e343533332039362e32313831203830203131352e38333420383020313430433830203136342e3330312039392e3637303320313834203132332e39333520313834433134352e31383920313834203136322e393138203136382e383835203136362e3939203134382e383033433137312e353139203134372e373237203137352e393536203134372e303731203138302e303433203134372e303731433138342e313331203134372e303731203138382e353637203134372e373237203139332e303937203134382e383033433139372e313639203136382e383835203231342e38393820313834203233362e31353220313834433236302e34313720313834203238302e303837203136342e333031203238302e30383720313430433238302e303837203131352e383334203236302e3633342039362e32313831203233362e3535342039362e30303138563936483132332e3533335a4d3233362e313532203138302e333333433235382e3238203138302e333333203237362e323137203136322e323735203237362e32313720313430433237362e323137203131372e373234203235382e32382039392e36363636203233362e3135322039392e36363636433231342e3032352039392e36363636203139362e303837203131372e373234203139362e30383720313430433139362e303837203136322e323735203231342e303235203138302e333333203233362e313532203138302e3333335a4d3132332e393335203138302e333333433134362e303632203138302e33333320313634203136322e323735203136342031343043313634203131372e373235203134362e3036322039392e36363637203132332e3933352039392e36363637433130312e3830372039392e363636372038332e38363936203131372e3732352038332e38363936203134304338332e38363936203136322e323735203130312e383037203138302e333333203132332e393335203138302e3333335a4d3233352e3637203131382e3637314c323336203131382e3935394c3233362e3333203131382e363731433233362e373236203131382e333233203233372e313433203131372e393932203233372e353831203131372e3638433233372e393536203131372e343132203233382e333234203131372e313437203233382e363837203131362e3838354c3233382e363839203131362e383834433234322e313839203131342e3336203234352e313336203131322e323435203234392e3236203131312e373238433235352e373039203131302e393139203236322e303138203131322e323533203236362e373035203131352e383838433237312e333738203131392e353133203237342e35203132352e343733203237342e35203133342e303534433237342e35203133382e323735203237322e383539203134322e37203237302e313638203134372e3034433236372e343739203135312e333736203236332e373631203135352e353934203235392e3636203135392e333838433235312e3439203136362e393438203234312e383739203137322e37353520323336203137342e3437433233302e313231203137322e373535203232302e3531203136362e393438203231322e3334203135392e333838433230382e323339203135352e353934203230342e353231203135312e333736203230312e383332203134372e3034433139392e313431203134322e37203139372e35203133382e323735203139372e35203133342e303534433139372e35203132352e343733203230302e363232203131392e353133203230352e323935203131352e383838433230392e393832203131322e323533203231362e323931203131302e393139203232322e3734203131312e373238433232362e383634203131322e323435203232392e383131203131342e3336203233332e333131203131362e3838344c3233332e333134203131362e383836433233332e363736203131372e313437203233342e303434203131372e343133203233342e343139203131372e3638433233342e383537203131372e393932203233352e323734203131382e333233203233352e3637203131382e3637315aa264697066735822122024d4d02d9f367750a12b23c960a616e30dbd36aa70e2bde240921ccbfc21aed564736f6c634300080c0033

Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.

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.