Token Ampontant

 

Overview ERC-721

Total Supply:
247 APT

Holders:
189 addresses
 
Balance
3 APT
0x75f8b316a191cf517972a12473e0df19c1fe3757
Loading
[ Download CSV Export  ] 
Loading
[ Download CSV Export  ] 
Loading

Click here to update the token ICO / general information
# Exchange Pair Price  24H Volume % Volume
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
AmpontantGateway

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 17 : Ampontant.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Royalty.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "base64-sol/base64.sol";

contract AmpontantGateway is Ownable, ERC2981, ERC721URIStorage {

    uint256 immutable public maxSupply = 1000;
    uint256 public totalSupply;
    address public contractOwner;
    mapping(uint256 => string) private images;

    string[] private colors = ["black", "blue", "brown", "gray", "green", "orange", "pink", "purple", "red", "white", "yellow"];
    string[] private faces = ["angry", "blue", "closed", "half-opened", "left", "neutral", "right", "sleepy", "sparkling", "spiral", "unique"];    
    string[] private styles = ["animal", "dragon", "origin", "unique"];

    struct Ampontant {
        string color;
        string face;
        string style;
    }

    mapping(uint256 => Ampontant) public ampontants;

    constructor() ERC721 ("Ampontant", "APT") {
        totalSupply = 0;
        address receiver = 0x75f8B316A191cf517972a12473E0df19c1FE3757;
        uint96 feeNumerator = 1000;
        _setDefaultRoyalty(receiver, feeNumerator);    
        contractOwner = owner();
    }

    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, ERC2981) returns (bool) {
        return super.supportsInterface(interfaceId);
    }

    function simpleStorage(uint256 tokenId, string memory _svg) public onlyOwner {
        require(super._exists(tokenId), "ERC721: Strage query for nonexistent token");
        require (msg.sender == super.ownerOf(tokenId), "You have no right to change Metadata");
        images[tokenId] = string(abi.encodePacked(images[tokenId], _svg));
    }

    function refreshStorage(uint256 tokenId) public onlyOwner {
        require(super._exists(tokenId), "ERC721: Strage query for nonexistent token");
        require (msg.sender == super.ownerOf(tokenId), "You have no right to change Metadata");
        images[tokenId] = "";
    }

    function safeMint(address to, uint256 tokenId, uint256 _colorIndex, uint256 _faceIndex, uint256 _styleIndex) public onlyOwner {
        require(!(super._exists(tokenId)), "the tokenId is already exist");
        require(tokenId <= maxSupply, "the tokenId must be from 0 to 999");
        require(totalSupply <= maxSupply, "you can't mint anymore");
        require(_colorIndex < 11, "_colorIndex must be from 0 to 10");
        require(_faceIndex < 11, "_faceIndex must be from 0 to 10");
        require(_styleIndex < 4, "_styleIndex must be from 0 to 3");
        
        string memory _color = colors[_colorIndex];
        string memory _face = faces[_faceIndex];
        string memory _style = styles[_styleIndex];

        ampontants[tokenId] = Ampontant({color: _color, face: _face, style: _style}); 
        _safeMint(to, tokenId);
        totalSupply = totalSupply + 1;
    } 


    function getColor(uint256 tokenId) public view returns (string memory) {
        return ampontants[tokenId].color;
    }

    function getFace(uint256 tokenId) public view returns (string memory) {
        return ampontants[tokenId].face;
    }

    function getStyle(uint256 tokenId) public view returns (string memory) {
        return ampontants[tokenId].style;
    }

    function svgToImageURI(string memory _svg) internal pure returns (string memory){
        string memory baseURL = "data:image/svg+xml;base64,";
        string memory svgBase64Encoded = Base64.encode(
            bytes(string(abi.encodePacked(_svg)))
        );
        string memory imageURI = string(abi.encodePacked(baseURL, svgBase64Encoded));
        return imageURI;
    }

    function formatTokenURI(string memory _imageURI, uint256 tokenId) internal view returns (string memory){
        string memory baseURL = "data:application/json;base64,";
        string memory color = getColor(tokenId);
        string memory face = getFace(tokenId);
        string memory style = getStyle(tokenId);

        return string(abi.encodePacked(
            baseURL, 
            Base64.encode(
                bytes(abi.encodePacked(
                    '{"name": "ampontant #', Strings.toString(tokenId),'",', 
                    '"description": "This is an NFT collection of tiny ducks.", ',
                    '"attributes": ',
                    '[{"trait_type": "COLOR", "value": "', color,'"}, ',
                    '{"trait_type": "FACE", "value": "', face,'"}, ',
                    '{"trait_type": "STYLE", "value": "', style,'"}], ',
                    '"image": "',_imageURI,'"}'                                
                )
            ))
        ));
    }

    function tokenURI(uint256 tokenId) public override view returns (string memory output) {
        string memory img0 = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 750 750" xmlns:v="https://vecta.io/nano"><style><![CDATA[.F{fill:#8bd1e5}.G{fill:#1a1a1a}.H{fill:#5b99b4}]]></style><path d="M0 0h750v750H0z" fill="#ffdc00"/><path d="M473.1,617.7c15.4,11,6.6,29.4-8.6,29.6-10.8.1-13.3,17.7-34.3,7.7-14.9-7.1-18.8-18.8-32-30-22.9-19.5-6.2-54.8,23-51,0,0,13.2,23.5,35.1,32.4" class="F"/><path d="M441.8 665.1a32.9 32.9 0 0 1-14.6-3.8c-10.4-5-16.2-11.9-21.9-18.7a108.6 108.6 0 0 0-11.6-12.3c-12.7-10.8-16.6-27.3-10.1-42s21.8-23.4 38.5-21.2l3.5.4 1.7 3.1c.1.2 12.4 21.4 31.6 29.3a7 7 0 1 1-5.3 13c-18.9-7.8-31.7-24.9-36.5-32.2h-.2a22.2 22.2 0 0 0-20.5 13.3c-3.2 7.1-3.2 17.6 6.4 25.7a112.1 112.1 0 0 1 13.3 14c5.3 6.3 9.5 11.3 17.1 15 9.4 4.4 12.3 2 17.1-1.9s7.7-6.4 14.1-6.5a9.8 9.8 0 0 0 9.4-6.5c1.2-3.6-.5-7.3-4.7-10.4a6.9 6.9 0 0 1-1.7-9.7 7.1 7.1 0 0 1 9.8-1.7c9.1 6.6 13 16.5 10 26a23.7 23.7 0 0 1-22.6 16.3c-1.4 0-3 1.2-5.4 3.2s-9.1 7.6-17.4 7.6z" class="G"/><path d="M398.4 602.9c-3-15-8.4-24.6 8-30 6-2 23 0 26 10s4 11 1 26-32 9-35-6z" class="H"/><path d="M361.2,612c1,18,6.6,21.2,28,35,31,20,2.2,24.1,0,29-12,27-32,4-41,14-21.4,23.8-38.4-22.2-48.7-43.9-13-27.2,5.7-47.1,32.5-34.8" class="F"/><path d="M336.2 703.7a14.3 14.3 0 0 1-2.9-.3c-16.6-2.5-27.7-27-36.7-46.7l-3.5-7.6c-7.3-15.5-6.2-31.1 3.1-40.5s23.6-10.6 38.7-3.7l-5.8 12.7c-9.6-4.3-18.1-4-22.9.9s-5.2 14.5-.4 24.6l3.6 7.8c5.9 13 16.9 37.3 26 38.7 2.2.3 4.7-1.1 7.6-4.3 6.2-6.9 14.8-5.1 21-3.7 8.9 1.9 13.8 2.9 18.8-8.4 1.5-3.4 4.7-5.1 8-7 1.6-.8 4.7-2.5 5.6-3.6s-2.3-4.1-11-9.7l-1.5-1c-20.7-13.4-28.5-18.4-29.7-39.5l14-.8c.8 14 3.3 15.7 23.3 28.6l1.5.9c8.3 5.4 17.8 12.7 17.5 22.1s-8.2 12.7-12.9 15.3l-2.5 1.4c-9.6 20.5-24.8 17.3-34 15.4-3.1-.7-6.9-1.5-7.7-.6-5.4 6-11.1 9-17.2 9z" class="G"/><path d="M321.2 619c-3-15-1.2-77.1 12.3-87.8 15.9-12.4 22.7-10.4 36.1 15.7 4.4 8.7-14.4 66.1-17.4 81.1s-28 6-31-9z" class="H"/><path d="M352.2 636a7.1 7.1 0 0 1-4.7-1.8c-8.7-7.8-2.9-26.5 7.3-56.3 3.5-10.3 8.3-24.3 8.2-28.5-2.5-5-9.1-17.5-13.7-18.5-2.1-.5-5.9 1.5-11.5 5.8-1 .8-4.4 4.8-6.6 22.9-1.5 12.5-1.8 27.4-2.1 39.4-.2 8.6-.4 16.1-.9 20.8a7.1 7.1 0 0 1-7.8 6.2 7 7 0 0 1-6.1-7.8c.4-4.1.6-11.2.8-19.5.8-35.7 2.4-63.7 14.1-73 7-5.5 14.6-10.3 23-8.5s16 11.7 23.6 26.5c3 5.9.4 14.8-7.8 38.7-4.3 12.7-12.3 36.2-10.6 41.9a7 7 0 0 1 0 9.4 7.1 7.1 0 0 1-5.2 2.3zm10.8-86.9z" class="G"/><path d="M429.5,457.7c20,12,35.6,20.5,57.2,17,43.3-7,1,57-29.3,54" class="F"/><path d="M459.5 535.8h-2.8a7 7 0 1 1 1.4-14c11.7 1.2 27.9-12.2 35.8-25.5 4.5-7.6 4.8-12.5 3.9-13.8s-3.3-1.9-10-.8c-25.2 4-43.8-7.1-61.9-17.9a7 7 0 1 1 7.1-12c20.2 12 33.8 19.1 52.6 16.1 14.3-2.3 20.8 2.4 23.8 6.7 4.7 7 3.5 17.2-3.5 28.9-9.6 16-28.8 32.3-46.4 32.3z" class="G"/><path d="M268.9 568.6c-27.5-24.4-51.9-87.6-26-121 14-18 51.9 15.8 65 11 86-31 45-76 45-76s-16.3-29.8 23-31 22.5 73.8 42.5 91c55 47 84.5 124 1.5 158-38.5 15.8-107 7-151-32z" class="F"/><path d="M342.5 441a53.7 53.7 0 0 0 12.9-13.1s17-32.5 32-31.3c22.1 1.6 22.1 30.6 27.8 43.4 1.3 27.1-43.6 23.8-72.7 1zm-40.3 148c-79.6-41.5-68-115.6-59.9-127.8-.7 101.4 95.7 149.4 186 129.8-14.1 6.5-62.8 33.5-126.1-2z" class="H"/><path d="M370.9 617.4c-33.8 0-66.7-13.6-102.1-41.9-32.4-26-48.8-82.3-41.3-113.5 3.3-13.8 11.2-22.6 22.3-24.9 9.5-1.9 19.2 2.8 29.3 7.9 12.9 6.4 25.1 12.4 36.7 5.9 22.5-12.6 35.2-25.8 36.7-38.2a21.1 21.1 0 0 0-5.7-16.8l-.8-.8-.5-1a32.4 32.4 0 0 1-3.3-8.9c-1.7-7.1-1-13.7 2-19 4.9-8.5 15-13 30.2-13.5 17-.5 29 7.3 35.9 23.2 5.4 12.5 6.7 28 7.9 41.7.5 6.3 1 12.3 1.9 17.2 1.2 6.6 5.7 10.3 14.3 16.9s22 16.9 31.1 36.3a7 7 0 1 1-12.6 6c-7.7-16.4-18-24.3-27-31.2s-17.4-13.3-19.6-25.6c-.9-5.4-1.5-11.7-2.1-18.4-2.6-30.9-6.3-52.8-29.4-52.1-9.7.3-16.2 2.6-18.4 6.4s-.4 10.6 1 13.6a35.4 35.4 0 0 1 9 27.7c-2.1 17.2-16.8 33.6-43.8 48.7-18 10.1-35.6 1.4-49.7-5.6-7.9-3.9-15.5-7.6-20.3-6.6s-9.5 6-11.5 14.3c-6.4 26.5 9.2 77.5 36.5 99.3 32.8 26.3 62.9 38.9 93.5 38.9a123 123 0 0 0 17.1-1.3c31.8-4.8 54-16.8 66-35.8s11.1-38.9 7.3-51.3a7 7 0 1 1 13.4-4c4.6 15.1 5.1 40.7-8.8 62.7s-39.8 36.8-75.8 42.2a127.7 127.7 0 0 1-19.4 1.5z" class="G"/><path d="M323.2 565c-64.8 25.8-106-38.8-72-45s41.6-36.5 59-37c16.9-3.6 31.8 5.3 35.7 21.2 6.8 27.5-.8 48-22.7 60.8z" class="F"/><path d="M293.8 576.8a81.8 81.8 0 0 1-17.9-1.9c-12.9-2.8-24.6-8.9-32.9-17.2s-13.7-21-10.8-30.4c1.3-4.4 5.4-11.9 17.8-14.2 16.4-3 24.2-10.8 32.5-19.1s14-14.1 25.7-17.7a7 7 0 0 1 4.1 13.4c-8.4 2.5-13.7 7.9-19.9 14.1-9 9.1-19.1 19.3-39.9 23.1q-5.9 1.1-6.9 4.5c-1.1 3.5.7 9.9 7.3 16.4 11.8 11.8 35.9 20.7 68.2 10.5a7.1 7.1 0 0 1 8.8 4.6 7 7 0 0 1-4.6 8.8 105.1 105.1 0 0 1-31.5 5.1z" class="G"/><path d="M468.2 120c19.6 2.1 3 61-9 91-4.8 12.1-10 42-37 34-14.6-4.3-23-20-7-50 11-20.6 34-77 53-75z" class="F"/><path d="M431 258.4a36.6 36.6 0 0 1-10.8-1.7 27.6 27.6 0 0 1-18.3-15.9c-4.8-11.4-2.4-26.2 7.1-44.1 2-3.6 4.3-8.4 7-13.9 17.8-36.6 34-66.7 52.9-64.8h0a15.2 15.2 0 0 1 11.6 7.5c13.4 22.1-13.6 90.2-14.8 93.1s-1.3 3.5-2 5.6c-3.9 11.6-11.4 34.2-32.7 34.2zM467.3 132c-1.5 0-7 1.2-17.5 17.3-7.8 11.9-15.3 27.3-21.3 39.7l-7.1 14.3c-7.2 13.6-9.6 25-6.6 32.1 1.6 3.9 4.8 6.5 9.4 7.9 14.2 4.2 19.8-4.2 26.3-23.5.7-2.3 1.5-4.5 2.2-6.4 15.4-38.4 20.6-72.7 15.9-80.6-.5-.8-.7-.8-1.1-.8z" class="G"/><path d="M264.8 387.8c-20-4-50-24-26-52 11.6-13.5 13.9-12.3 12.1-33.9-3.2-41.1 5.5-101.3 64.9-121.1 24-8 4.6-53.9 31-62s46.8 20.5 60 39c15 21 48 18 70 48 16.4 22.3 27.8 30.2 30 87.4 7 34 26 13.6 31 42.6 3.5 19.9-36.7 60-117.4 72.9-112.6 18.1-99.6-9.7-155.6-20.9z" class="F"/><path d="M287.6,246.7c-13.7,44-4.7,86.6-7.1,89.3-24,28-6.4,45.3,19.6,58.3,0,0-1.5,1.1-5.8.6s-13.6-3-26.1-5.9c-20-4-49-27.5-25-55.5,11.5-13.4,13.8-12.2,12.1-33.9-1.2-15.4-2.1-42.6,6.9-61.6Z" class="H"/><path d="M488.2 228a7 7 0 0 1-6.2-3.7c-14.8-28-34.3-36.1-51.4-43.3-11.4-4.8-22.2-9.3-29.1-18.9l-.6-.9c-12.5-17.5-28.1-39.3-47.3-35.3-8.6 1.7-10.5 8.3-12.7 22.8-1.3 7.9-2.6 16.1-6.7 22.9a7 7 0 1 1-12-7.2c2.7-4.5 3.7-11 4.8-17.9 2.2-13.5 4.8-30.4 23.8-34.4 28.1-5.8 47.4 21.2 61.5 41l.6.8c4.6 6.5 12.8 9.9 23.1 14.2 18.3 7.6 41.2 17.2 58.4 49.6a7.1 7.1 0 0 1-2.9 9.5 8 8 0 0 1-3.3.8zm-128 194.5c-30.6 0-43.1-7.5-54.5-14.3-6.1-3.6-11.2-6.7-19-8.4a7 7 0 0 1 3-13.6c10 2.1 16.7 6.1 23.1 10 15.1 9 32.2 19.2 106.8 5.9 34.7-6.2 65.7-18 87.1-33.2 12.8-9 25.9-22.9 24.6-31.9s-4.1-10.4-9.5-12.9c-7.2-3.4-17.1-7.9-21.5-29.2v-1.2c-1-31-2-37-8.2-49.6a6.9 6.9 0 0 1 3.1-9.4 7.1 7.1 0 0 1 9.4 3.2c7.7 15.5 8.7 23.7 9.6 54.7 3 13.9 7.7 16 13.6 18.8s14.9 6.9 17.4 23.6c2.1 13.5-9.3 30.4-30.3 45.3-16.3 11.6-45.6 27.2-92.8 35.6-26.6 4.7-46.5 6.6-61.9 6.6zm-95-29.5h-1.1c-20.7-3.2-36.3-14.4-40.7-29.1-3.4-11.4.6-23.4 11.1-33 8.7-7.9 8.8-8.7 9.8-28.1l.2-4.4c1.3-25.6 2.6-49.8 10.6-70.8 9.2-24.2 26.5-40.5 52.7-50.1a7.023 7.023 0 1 1 4.8 13.2c-22.5 8.2-36.6 21.5-44.4 41.9s-8.4 42.1-9.7 66.6l-.2 4.3c-1.1 20.5-1.4 26-14.4 37.8-4.5 4.1-9.4 10.7-7.1 18.6s14.4 16.9 29.5 19.3a7 7 0 0 1-1.1 13.9z" class="G"/><path d="M301.3 232.8c-13.6 24.4-33.2 16.2-47.3 2.1-22.2-22.3-47.9-64.2-39.4-73.5 10.5-11.6 59.6 25.9 76.6 37.6s16.6 22 10.1 33.8z" class="F"/><path d="M287.6 246.7c-11.3 5-23.8-2-33.6-11.8-19.1-19.2-40.9-70.1-36.1-63.3 15.4 28.8 69.7 75.1 69.7 75.1z" class="H"/><path d="M258.1 247.9a7 7 0 0 1-5.4-2.6l-7.8-9.6c-24.1-29.4-51.4-62.7-35.8-79.5 9.5-10.2 24.9-3 30-.7 10.4 4.9 22.8 13 37.2 22.4l16.5 10.8a7 7 0 1 1-7.5 11.8l-16.7-10.9c-13.9-9.1-25.9-17-35.3-21.3-7.3-3.4-12.3-4.3-14-2.5s-3.3 5 7.1 22.1c7.7 12.5 19.2 26.5 29.3 38.9l7.9 9.7a7 7 0 0 1-5.5 11.4z" class="G"/><path d="M348.2 410c-14.9-9.5-6.1-29 21-29 24 0 35.3-19.4 67-26 24-5 40 5.8 60 2s19.5 11.9 18 22c-2 14-10 24-47 39-34 13.8-89 11-119-8z" class="F"/><path d="M428.2 426s-40 6-74-10c-20.8-9.8-14-32 5-34 5.1-.5 14-1 14-1-8.9 26.7 27.1 44.1 55 45z" class="H"/><g class="G"><path d="M418.3 432.4c-23.2 0-47-4.1-68.1-12.3-9.9-3.8-16.5-16.2-14.2-27a20 20 0 0 1 9.4-13.2c5.3-3.3 12.4-4.7 21-4.4 20 .8 30.9-6.1 43.6-14 9.9-6.2 20.1-12.6 35-15.9 11.8-2.6 20.7.7 28.5 3.5s12.7 4.6 19.4 2.2 15.8-1.2 21.4 4.3 8.6 15.7 6.1 23.1c-7 21.3-23.7 36.6-49.4 45.5-15.8 5.5-34 8.2-52.7 8.2zm-54.2-45.9c-6.6 0-15.8 1.3-17.4 8.9-1.1 5.5 2.5 12.5 7.5 14.5h0c35.8 13.8 80.2 15.4 113.2 3.9C490 406 504 393.3 510 375.3c1.2-3.6-.3-8.8-3.4-11.8s-6-3.2-10.1-1.8c-10.4 3.7-19 .5-26.7-2.3s-13.8-4.9-22.4-3c-13.1 2.9-22.5 8.7-31.5 14.4-13.1 8.2-26.6 16.6-49.9 15.7z"/><circle cx="486.4" cy="313.8" r="30.8"/></g><circle cx="486.4" cy="313.8" r="21.3" class="F"/><circle cx="486.4" cy="313.8" r="15.7" class="H"/><circle cx="366.9" cy="335.4" r="33.6" class="G"/><circle cx="366.9" cy="335.4" r="23.2" class="F"/><circle cx="366.9" cy="335.4" r="17.1" class="H"/></svg>';
        string memory img1 = images[tokenId];
        string memory imageURI;
        address user1 = super.ownerOf(tokenId);
        if (user1 == contractOwner) {
            imageURI = svgToImageURI(img0);
        } else { 
            imageURI = svgToImageURI(img1);
        }
        output = formatTokenURI(imageURI, tokenId);
        return output;
    }

    function transferOwnership(address newOwner) public override onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
        contractOwner = newOwner;
    }
}

File 2 of 17 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _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 3 of 17 : ERC721Royalty.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/ERC721Royalty.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "../../common/ERC2981.sol";
import "../../../utils/introspection/ERC165.sol";

/**
 * @dev Extension of ERC721 with the ERC2981 NFT Royalty Standard, a standardized way to retrieve royalty payment
 * information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC721Royalty is ERC2981, ERC721 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, ERC2981) returns (bool) {
        return super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {ERC721-_burn}. This override additionally clears the royalty information for the token.
     */
    function _burn(uint256 tokenId) internal virtual override {
        super._burn(tokenId);
        _resetTokenRoyalty(tokenId);
    }
}

File 4 of 17 : ERC721URIStorage.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721URIStorage.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";

/**
 * @dev ERC721 token with storage based token URI management.
 */
abstract contract ERC721URIStorage is ERC721 {
    using Strings for uint256;

    // Optional mapping for token URIs
    mapping(uint256 => string) private _tokenURIs;

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721URIStorage: URI query for nonexistent token");

        string memory _tokenURI = _tokenURIs[tokenId];
        string memory base = _baseURI();

        // If there is no base URI, return the token URI.
        if (bytes(base).length == 0) {
            return _tokenURI;
        }
        // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
        if (bytes(_tokenURI).length > 0) {
            return string(abi.encodePacked(base, _tokenURI));
        }

        return super.tokenURI(tokenId);
    }

    /**
     * @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
        require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token");
        _tokenURIs[tokenId] = _tokenURI;
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual override {
        super._burn(tokenId);

        if (bytes(_tokenURIs[tokenId]).length != 0) {
            delete _tokenURIs[tokenId];
        }
    }
}

File 5 of 17 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

File 6 of 17 : base64.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0;

/// @title Base64
/// @author Brecht Devos - <[email protected]>
/// @notice Provides functions for encoding/decoding base64
library Base64 {
    string internal constant TABLE_ENCODE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
    bytes  internal constant TABLE_DECODE = hex"0000000000000000000000000000000000000000000000000000000000000000"
                                            hex"00000000000000000000003e0000003f3435363738393a3b3c3d000000000000"
                                            hex"00000102030405060708090a0b0c0d0e0f101112131415161718190000000000"
                                            hex"001a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132330000000000";

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

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

        // 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) {}
            {
                // read 3 bytes
                dataPtr := add(dataPtr, 3)
                let input := mload(dataPtr)

                // write 4 characters
                mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F))))
                resultPtr := add(resultPtr, 1)
                mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F))))
                resultPtr := add(resultPtr, 1)
                mstore8(resultPtr, mload(add(tablePtr, and(shr( 6, input), 0x3F))))
                resultPtr := add(resultPtr, 1)
                mstore8(resultPtr, 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;
    }

    function decode(string memory _data) internal pure returns (bytes memory) {
        bytes memory data = bytes(_data);

        if (data.length == 0) return new bytes(0);
        require(data.length % 4 == 0, "invalid base64 decoder input");

        // load the table into memory
        bytes memory table = TABLE_DECODE;

        // every 4 characters represent 3 bytes
        uint256 decodedLen = (data.length / 4) * 3;

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

        assembly {
            // padding with '='
            let lastBytes := mload(add(data, mload(data)))
            if eq(and(lastBytes, 0xFF), 0x3d) {
                decodedLen := sub(decodedLen, 1)
                if eq(and(lastBytes, 0xFFFF), 0x3d3d) {
                    decodedLen := sub(decodedLen, 1)
                }
            }

            // set the actual output length
            mstore(result, decodedLen)

            // 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, 4 characters at a time
            for {} lt(dataPtr, endPtr) {}
            {
               // read 4 characters
               dataPtr := add(dataPtr, 4)
               let input := mload(dataPtr)

               // write 3 bytes
               let output := add(
                   add(
                       shl(18, and(mload(add(tablePtr, and(shr(24, input), 0xFF))), 0xFF)),
                       shl(12, and(mload(add(tablePtr, and(shr(16, input), 0xFF))), 0xFF))),
                   add(
                       shl( 6, and(mload(add(tablePtr, and(shr( 8, input), 0xFF))), 0xFF)),
                               and(mload(add(tablePtr, and(        input , 0xFF))), 0xFF)
                    )
                )
                mstore(resultPtr, shl(232, output))
                resultPtr := add(resultPtr, 3)
            }
        }

        return result;
    }
}

File 7 of 17 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 8 of 17 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

    // Mapping from owner to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);

        _afterTokenTransfer(address(0), to, tokenId);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);

        _afterTokenTransfer(owner, address(0), tokenId);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 9 of 17 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;

import "../../interfaces/IERC2981.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
 * fee is specified in basis points by default.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC2981 is IERC2981, ERC165 {
    struct RoyaltyInfo {
        address receiver;
        uint96 royaltyFraction;
    }

    RoyaltyInfo private _defaultRoyaltyInfo;
    mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo;

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) {
        return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @inheritdoc IERC2981
     */
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice)
        external
        view
        virtual
        override
        returns (address, uint256)
    {
        RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId];

        if (royalty.receiver == address(0)) {
            royalty = _defaultRoyaltyInfo;
        }

        uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator();

        return (royalty.receiver, royaltyAmount);
    }

    /**
     * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
     * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
     * override.
     */
    function _feeDenominator() internal pure virtual returns (uint96) {
        return 10000;
    }

    /**
     * @dev Sets the royalty information that all ids in this contract will default to.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: invalid receiver");

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Removes default royalty information.
     */
    function _deleteDefaultRoyalty() internal virtual {
        delete _defaultRoyaltyInfo;
    }

    /**
     * @dev Sets the royalty information for a specific token id, overriding the global default.
     *
     * Requirements:
     *
     * - `tokenId` must be already minted.
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setTokenRoyalty(
        uint256 tokenId,
        address receiver,
        uint96 feeNumerator
    ) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: Invalid parameters");

        _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Resets royalty information for the token id back to the global default.
     */
    function _resetTokenRoyalty(uint256 tokenId) internal virtual {
        delete _tokenRoyaltyInfo[tokenId];
    }
}

File 10 of 17 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 11 of 17 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;
}

File 12 of 17 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 13 of 17 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 14 of 17 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 15 of 17 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 16 of 17 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be payed in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

File 17 of 17 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol)

pragma solidity ^0.8.0;

import "../utils/introspection/IERC165.sol";

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"ampontants","outputs":[{"internalType":"string","name":"color","type":"string"},{"internalType":"string","name":"face","type":"string"},{"internalType":"string","name":"style","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getColor","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getFace","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getStyle","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"refreshStorage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"_colorIndex","type":"uint256"},{"internalType":"uint256","name":"_faceIndex","type":"uint256"},{"internalType":"uint256","name":"_styleIndex","type":"uint256"}],"name":"safeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"_svg","type":"string"}],"name":"simpleStorage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"output","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6103e8608052600561020081815264626c61636b60d81b6102205260a0908152600461024081815263626c756560e01b6102605260c05261028083815264313937bbb760d91b6102a05260e0526102c0818152636772617960e01b6102e052610100526103008381526433b932b2b760d91b61032052610120526006610340818152656f72616e676560d01b61036052610140526103809182526370696e6b60e01b6103a052610160919091526103c081815265707572706c6560d01b6103e052610180526003610400908152621c995960ea1b610420526101a05261044092835264776869746560d81b610460526101c0929092526104c06040526104809182526579656c6c6f7760d01b6104a0526101e0919091526200012690600d90600b6200057a565b50604080516101a0810182526005610160820181815264616e67727960d81b610180840152825282518084018452600480825263626c756560e01b602083810191909152808501929092528451808601865260068082526518db1bdcd95960d21b828501528587019190915285518087018752600b8082526a1a185b198b5bdc195b995960aa1b82860152606087019190915286518088018852928352631b19599d60e21b8385015260808601929092528551808701875260078152661b995d5d1c985b60ca1b8185015260a086015285518087018752938452641c9a59da1d60da1b8484015260c08501939093528451808601865283815265736c6565707960d01b8184015260e0850152845180860186526009815268737061726b6c696e6760b81b8184015261010085015284518086018652838152651cdc1a5c985b60d21b81840152610120850152845180860190955291845265756e6971756560d01b90840152610140820192909252620002a391600e91906200057a565b506040805160c08101825260066080820181815265185b9a5b585b60d21b60a084015282528251808401845281815265323930b3b7b760d11b60208281019190915280840191909152835180850185528281526537b934b3b4b760d11b8183015283850152835180850190945290835265756e6971756560d01b9083015260608101919091526200033990600f906004620005de565b503480156200034757600080fd5b5060405180604001604052806009815260200168105b5c1bdb9d185b9d60ba1b8152506040518060400160405280600381526020016210541560ea1b815250620003a06200039a6200042160201b60201c565b62000425565b8151620003b590600390602085019062000630565b508051620003cb90600490602084019062000630565b50506000600a55507375f8b316a191cf517972a12473e0df19c1fe37576103e8620003f7828262000475565b5050600054600b80546001600160a01b0319166001600160a01b0390921691909117905562000772565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6127106001600160601b0382161115620004e95760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084015b60405180910390fd5b6001600160a01b038216620005415760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401620004e0565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600155565b828054828255906000526020600020908101928215620005cc579160200282015b82811115620005cc5782518051620005bb91849160209091019062000630565b50916020019190600101906200059b565b50620005da929150620006bb565b5090565b828054828255906000526020600020908101928215620005cc579160200282015b82811115620005cc57825180516200061f91849160209091019062000630565b5091602001919060010190620005ff565b8280546200063e9062000735565b90600052602060002090601f016020900481019282620006625760008555620006ad565b82601f106200067d57805160ff1916838001178555620006ad565b82800160010185558215620006ad579182015b82811115620006ad57825182559160200191906001019062000690565b50620005da929150620006dc565b80821115620005da576000620006d28282620006f3565b50600101620006bb565b5b80821115620005da5760008155600101620006dd565b508054620007019062000735565b6000825580601f1062000712575050565b601f016020900490600052602060002090810190620007329190620006dc565b50565b600181811c908216806200074a57607f821691505b602082108114156200076c57634e487b7160e01b600052602260045260246000fd5b50919050565b608051614aa96200079c600039600081816103c601528181610be30152610c5d0152614aa96000f3fe608060405234801561001057600080fd5b50600436106101a95760003560e01c80636275e9f2116100f9578063a22cb46511610097578063ce606ee011610071578063ce606ee0146103ae578063d5abeb01146103c1578063e985e9c5146103e8578063f2fde38b1461042457600080fd5b8063a22cb46514610375578063b88d4fde14610388578063c87b56dd1461039b57600080fd5b8063715018a6116100d3578063715018a61461034157806380057b9a146103495780638da5cb5b1461035c57806395d89b411461036d57600080fd5b80636275e9f2146103085780636352211e1461031b57806370a082311461032e57600080fd5b806318160ddd116101665780633a64c5ca116101405780633a64c5ca146102bc57806342842e0e146102cf5780635a3151aa146102e25780635c2517e5146102f557600080fd5b806318160ddd1461026057806323b872dd146102775780632a55205a1461028a57600080fd5b806301ffc9a7146101ae57806306fdde03146101d6578063081812fc146101eb578063095ea7b31461021657806311643d291461022b578063164aeb411461023e575b600080fd5b6101c16101bc366004611f93565b610437565b60405190151581526020015b60405180910390f35b6101de610448565b6040516101cd919061200f565b6101fe6101f9366004612022565b6104da565b6040516001600160a01b0390911681526020016101cd565b610229610224366004612057565b610567565b005b61022961023936600461210d565b61067d565b61025161024c366004612022565b610756565b6040516101cd93929190612168565b610269600a5481565b6040519081526020016101cd565b6102296102853660046121a1565b610910565b61029d6102983660046121dd565b610941565b604080516001600160a01b0390931683526020830191909152016101cd565b6102296102ca366004612022565b6109ed565b6102296102dd3660046121a1565b610aa1565b6101de6102f0366004612022565b610abc565b6102296103033660046121ff565b610b61565b6101de610316366004612022565b611051565b6101fe610329366004612022565b611071565b61026961033c366004612241565b6110e8565b61022961116f565b6101de610357366004612022565b6111a5565b6000546001600160a01b03166101fe565b6101de6111c2565b61022961038336600461225c565b6111d1565b610229610396366004612298565b6111dc565b6101de6103a9366004612022565b611214565b600b546101fe906001600160a01b031681565b6102697f000000000000000000000000000000000000000000000000000000000000000081565b6101c16103f6366004612314565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b610229610432366004612241565b611328565b6000610442826113e2565b92915050565b60606003805461045790612347565b80601f016020809104026020016040519081016040528092919081815260200182805461048390612347565b80156104d05780601f106104a5576101008083540402835291602001916104d0565b820191906000526020600020905b8154815290600101906020018083116104b357829003601f168201915b5050505050905090565b60006104e582611422565b61054b5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600760205260409020546001600160a01b031690565b600061057282611071565b9050806001600160a01b0316836001600160a01b031614156105e05760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610542565b336001600160a01b03821614806105fc57506105fc81336103f6565b61066e5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610542565b610678838361143f565b505050565b6000546001600160a01b031633146106a75760405162461bcd60e51b815260040161054290612382565b6106b082611422565b6106cc5760405162461bcd60e51b8152600401610542906123b7565b6106d582611071565b6001600160a01b0316336001600160a01b0316146107055760405162461bcd60e51b815260040161054290612401565b6000828152600c602090815260409182902091516107269291849101612461565b60408051601f198184030181529181526000848152600c6020908152919020825161067893919290910190611ee1565b60106020526000908152604090208054819061077190612347565b80601f016020809104026020016040519081016040528092919081815260200182805461079d90612347565b80156107ea5780601f106107bf576101008083540402835291602001916107ea565b820191906000526020600020905b8154815290600101906020018083116107cd57829003601f168201915b5050505050908060010180546107ff90612347565b80601f016020809104026020016040519081016040528092919081815260200182805461082b90612347565b80156108785780601f1061084d57610100808354040283529160200191610878565b820191906000526020600020905b81548152906001019060200180831161085b57829003601f168201915b50505050509080600201805461088d90612347565b80601f01602080910402602001604051908101604052809291908181526020018280546108b990612347565b80156109065780601f106108db57610100808354040283529160200191610906565b820191906000526020600020905b8154815290600101906020018083116108e957829003601f168201915b5050505050905083565b61091a33826114ad565b6109365760405162461bcd60e51b815260040161054290612508565b610678838383611597565b60008281526002602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916109b65750604080518082019091526001546001600160a01b0381168252600160a01b90046001600160601b031660208201525b6020810151600090612710906109d5906001600160601b03168761256f565b6109df91906125a4565b915196919550909350505050565b6000546001600160a01b03163314610a175760405162461bcd60e51b815260040161054290612382565b610a2081611422565b610a3c5760405162461bcd60e51b8152600401610542906123b7565b610a4581611071565b6001600160a01b0316336001600160a01b031614610a755760405162461bcd60e51b815260040161054290612401565b6040805160208082018084526000808452858152600c9092529290209051610a9d9290611ee1565b5050565b610678838383604051806020016040528060008152506111dc565b6000818152601060205260409020600201805460609190610adc90612347565b80601f0160208091040260200160405190810160405280929190818152602001828054610b0890612347565b8015610b555780601f10610b2a57610100808354040283529160200191610b55565b820191906000526020600020905b815481529060010190602001808311610b3857829003601f168201915b50505050509050919050565b6000546001600160a01b03163314610b8b5760405162461bcd60e51b815260040161054290612382565b610b9484611422565b15610be15760405162461bcd60e51b815260206004820152601c60248201527f74686520746f6b656e496420697320616c7265616479206578697374000000006044820152606401610542565b7f0000000000000000000000000000000000000000000000000000000000000000841115610c5b5760405162461bcd60e51b815260206004820152602160248201527f74686520746f6b656e4964206d7573742062652066726f6d203020746f2039396044820152603960f81b6064820152608401610542565b7f0000000000000000000000000000000000000000000000000000000000000000600a541115610cc65760405162461bcd60e51b8152602060048201526016602482015275796f752063616e2774206d696e7420616e796d6f726560501b6044820152606401610542565b600b8310610d165760405162461bcd60e51b815260206004820181905260248201527f5f636f6c6f72496e646578206d7573742062652066726f6d203020746f2031306044820152606401610542565b600b8210610d665760405162461bcd60e51b815260206004820152601f60248201527f5f66616365496e646578206d7573742062652066726f6d203020746f203130006044820152606401610542565b60048110610db65760405162461bcd60e51b815260206004820152601f60248201527f5f7374796c65496e646578206d7573742062652066726f6d203020746f2033006044820152606401610542565b6000600d8481548110610dcb57610dcb6125b8565b906000526020600020018054610de090612347565b80601f0160208091040260200160405190810160405280929190818152602001828054610e0c90612347565b8015610e595780601f10610e2e57610100808354040283529160200191610e59565b820191906000526020600020905b815481529060010190602001808311610e3c57829003601f168201915b505050505090506000600e8481548110610e7557610e756125b8565b906000526020600020018054610e8a90612347565b80601f0160208091040260200160405190810160405280929190818152602001828054610eb690612347565b8015610f035780601f10610ed857610100808354040283529160200191610f03565b820191906000526020600020905b815481529060010190602001808311610ee657829003601f168201915b505050505090506000600f8481548110610f1f57610f1f6125b8565b906000526020600020018054610f3490612347565b80601f0160208091040260200160405190810160405280929190818152602001828054610f6090612347565b8015610fad5780601f10610f8257610100808354040283529160200191610fad565b820191906000526020600020905b815481529060010190602001808311610f9057829003601f168201915b505060408051606081018252888152602080820189905281830187905260008e81526010825292909220815180519798509196909550610ff39450859350910190611ee1565b50602082810151805161100c9260018501920190611ee1565b5060408201518051611028916002840191602090910190611ee1565b509050506110368888611733565b600a546110449060016125ce565b600a555050505050505050565b6000818152601060205260409020600101805460609190610adc90612347565b6000818152600560205260408120546001600160a01b0316806104425760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610542565b60006001600160a01b0382166111535760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610542565b506001600160a01b031660009081526006602052604090205490565b6000546001600160a01b031633146111995760405162461bcd60e51b815260040161054290612382565b6111a3600061174d565b565b6000818152601060205260409020805460609190610adc90612347565b60606004805461045790612347565b610a9d33838361179d565b6111e633836114ad565b6112025760405162461bcd60e51b815260040161054290612508565b61120e8484848461186c565b50505050565b60606000604051806121600160405280612133815260200161294161213391396000848152600c602052604081208054929350909161125290612347565b80601f016020809104026020016040519081016040528092919081815260200182805461127e90612347565b80156112cb5780601f106112a0576101008083540402835291602001916112cb565b820191906000526020600020905b8154815290600101906020018083116112ae57829003601f168201915b50505050509050606060006112df86611071565b600b549091506001600160a01b0380831691161415611308576113018461189f565b9150611314565b6113118361189f565b91505b61131e8287611935565b9695505050505050565b6000546001600160a01b031633146113525760405162461bcd60e51b815260040161054290612382565b6001600160a01b0381166113b75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610542565b6113c08161174d565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160e01b031982166380ac58cd60e01b148061141357506001600160e01b03198216635b5e139f60e01b145b806104425750610442826119e4565b6000908152600560205260409020546001600160a01b0316151590565b600081815260076020526040902080546001600160a01b0319166001600160a01b038416908117909155819061147482611071565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006114b882611422565b6115195760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610542565b600061152483611071565b9050806001600160a01b0316846001600160a01b0316148061155f5750836001600160a01b0316611554846104da565b6001600160a01b0316145b8061158f57506001600160a01b0380821660009081526008602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166115aa82611071565b6001600160a01b03161461160e5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610542565b6001600160a01b0382166116705760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610542565b61167b60008261143f565b6001600160a01b03831660009081526006602052604081208054600192906116a49084906125e6565b90915550506001600160a01b03821660009081526006602052604081208054600192906116d29084906125ce565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b610a9d828260405180602001604052806000815250611a19565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b816001600160a01b0316836001600160a01b031614156117ff5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610542565b6001600160a01b03838116600081815260086020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611877848484611597565b61188384848484611a4c565b61120e5760405162461bcd60e51b8152600401610542906125fd565b606060006040518060400160405280601a81526020017f646174613a696d6167652f7376672b786d6c3b6261736536342c00000000000081525090506000611905846040516020016118f1919061264f565b604051602081830303815290604052611b4a565b90506000828260405160200161191c92919061266b565b60408051601f1981840301815291905295945050505050565b60408051808201909152601d81527f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000060208201526060906000611977846111a5565b9050600061198485611051565b9050600061199186610abc565b9050836119b86119a088611cb0565b8585858c6040516020016118f195949392919061269a565b6040516020016119c992919061266b565b60405160208183030381529060405294505050505092915050565b60006001600160e01b0319821663152a902d60e11b148061044257506301ffc9a760e01b6001600160e01b0319831614610442565b611a238383611dae565b611a306000848484611a4c565b6106785760405162461bcd60e51b8152600401610542906125fd565b60006001600160a01b0384163b15611b3f57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611a90903390899088908890600401612881565b6020604051808303816000875af1925050508015611acb575060408051601f3d908101601f19168201909252611ac8918101906128b4565b60015b611b25573d808015611af9576040519150601f19603f3d011682016040523d82523d6000602084013e611afe565b606091505b508051611b1d5760405162461bcd60e51b8152600401610542906125fd565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061158f565b506001949350505050565b6060815160001415611b6a57505060408051602081019091526000815290565b60006040518060600160405280604081526020016129016040913990506000600384516002611b9991906125ce565b611ba391906125a4565b611bae90600461256f565b90506000611bbd8260206125ce565b67ffffffffffffffff811115611bd557611bd5612081565b6040519080825280601f01601f191660200182016040528015611bff576020820181803683370190505b509050818152600183018586518101602084015b81831015611c6b576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f8116850151825350600101611c13565b600389510660018114611c855760028114611c9657611ca2565b613d3d60f01b600119830152611ca2565b603d60f81b6000198301525b509398975050505050505050565b606081611cd45750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611cfe5780611ce8816128d1565b9150611cf79050600a836125a4565b9150611cd8565b60008167ffffffffffffffff811115611d1957611d19612081565b6040519080825280601f01601f191660200182016040528015611d43576020820181803683370190505b5090505b841561158f57611d586001836125e6565b9150611d65600a866128ec565b611d709060306125ce565b60f81b818381518110611d8557611d856125b8565b60200101906001600160f81b031916908160001a905350611da7600a866125a4565b9450611d47565b6001600160a01b038216611e045760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610542565b611e0d81611422565b15611e5a5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610542565b6001600160a01b0382166000908152600660205260408120805460019290611e839084906125ce565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054611eed90612347565b90600052602060002090601f016020900481019282611f0f5760008555611f55565b82601f10611f2857805160ff1916838001178555611f55565b82800160010185558215611f55579182015b82811115611f55578251825591602001919060010190611f3a565b50611f61929150611f65565b5090565b5b80821115611f615760008155600101611f66565b6001600160e01b031981168114611f9057600080fd5b50565b600060208284031215611fa557600080fd5b8135611fb081611f7a565b9392505050565b60005b83811015611fd2578181015183820152602001611fba565b8381111561120e5750506000910152565b60008151808452611ffb816020860160208601611fb7565b601f01601f19169290920160200192915050565b602081526000611fb06020830184611fe3565b60006020828403121561203457600080fd5b5035919050565b80356001600160a01b038116811461205257600080fd5b919050565b6000806040838503121561206a57600080fd5b6120738361203b565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156120b2576120b2612081565b604051601f8501601f19908116603f011681019082821181831017156120da576120da612081565b816040528093508581528686860111156120f357600080fd5b858560208301376000602087830101525050509392505050565b6000806040838503121561212057600080fd5b82359150602083013567ffffffffffffffff81111561213e57600080fd5b8301601f8101851361214f57600080fd5b61215e85823560208401612097565b9150509250929050565b60608152600061217b6060830186611fe3565b828103602084015261218d8186611fe3565b9050828103604084015261131e8185611fe3565b6000806000606084860312156121b657600080fd5b6121bf8461203b565b92506121cd6020850161203b565b9150604084013590509250925092565b600080604083850312156121f057600080fd5b50508035926020909101359150565b600080600080600060a0868803121561221757600080fd5b6122208661203b565b97602087013597506040870135966060810135965060800135945092505050565b60006020828403121561225357600080fd5b611fb08261203b565b6000806040838503121561226f57600080fd5b6122788361203b565b91506020830135801515811461228d57600080fd5b809150509250929050565b600080600080608085870312156122ae57600080fd5b6122b78561203b565b93506122c56020860161203b565b925060408501359150606085013567ffffffffffffffff8111156122e857600080fd5b8501601f810187136122f957600080fd5b61230887823560208401612097565b91505092959194509250565b6000806040838503121561232757600080fd5b6123308361203b565b915061233e6020840161203b565b90509250929050565b600181811c9082168061235b57607f821691505b6020821081141561237c57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252602a908201527f4552433732313a2053747261676520717565727920666f72206e6f6e657869736040820152693a32b73a103a37b5b2b760b11b606082015260800190565b60208082526024908201527f596f752068617665206e6f20726967687420746f206368616e6765204d6574616040820152636461746160e01b606082015260800190565b60008151612457818560208601611fb7565b9290920192915050565b600080845481600182811c91508083168061247d57607f831692505b602080841082141561249d57634e487b7160e01b86526022600452602486fd5b8180156124b157600181146124c2576124ef565b60ff198616895284890196506124ef565b60008b81526020902060005b868110156124e75781548b8201529085019083016124ce565b505084890196505b5050505050506124ff8185612445565b95945050505050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561258957612589612559565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826125b3576125b361258e565b500490565b634e487b7160e01b600052603260045260246000fd5b600082198211156125e1576125e1612559565b500190565b6000828210156125f8576125f8612559565b500390565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008251612661818460208701611fb7565b9190910192915050565b6000835161267d818460208801611fb7565b835190830190612691818360208801611fb7565b01949350505050565b747b226e616d65223a2022616d706f6e74616e74202360581b815285516000906126cb816015850160208b01611fb7565b61088b60f21b6015918401918201527f226465736372697074696f6e223a20225468697320697320616e204e4654206360178201527f6f6c6c656374696f6e206f662074696e79206475636b732e222c20000000000060378201526d01130ba3a3934b13aba32b9911d160951b60528201527f5b7b2274726169745f74797065223a2022434f4c4f52222c202276616c7565226060820152621d101160e91b60808201528651612782816083840160208b01611fb7565b61287461286661286061284a6128396128336127ff6127ef6127e96127b660838b8d0101630113e96160e51b815260040190565b7f7b2274726169745f74797065223a202246414345222c202276616c7565223a208152601160f91b602082015260210190565b8f612445565b630113e96160e51b815260040190565b7f7b2274726169745f74797065223a20225354594c45222c202276616c7565223a815261101160f11b602082015260220190565b8b612445565b640113eae96160dd1b815260050190565b691134b6b0b3b2911d101160b11b8152600a0190565b87612445565b61227d60f01b815260020190565b9998505050505050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061131e90830184611fe3565b6000602082840312156128c657600080fd5b8151611fb081611f7a565b60006000198214156128e5576128e5612559565b5060010190565b6000826128fb576128fb61258e565b50069056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f737667222076696577426f783d2230203020373530203735302220786d6c6e733a763d2268747470733a2f2f76656374612e696f2f6e616e6f223e3c7374796c653e3c215b43444154415b2e467b66696c6c3a233862643165357d2e477b66696c6c3a233161316131617d2e487b66696c6c3a233562393962347d5d5d3e3c2f7374796c653e3c7061746820643d224d302030683735307637353048307a222066696c6c3d2223666664633030222f3e3c7061746820643d224d3437332e312c3631372e376331352e342c31312c362e362c32392e342d382e362c32392e362d31302e382e312d31332e332c31372e372d33342e332c372e372d31342e392d372e312d31382e382d31382e382d33322d33302d32322e392d31392e352d362e322d35342e382c32332d35312c302c302c31332e322c32332e352c33352e312c33322e342220636c6173733d2246222f3e3c7061746820643d224d3434312e38203636352e316133322e392033322e392030203020312d31342e362d332e38632d31302e342d352d31362e322d31312e392d32312e392d31382e37613130382e36203130382e362030203020302d31312e362d31322e33632d31322e372d31302e382d31362e362d32372e332d31302e312d34327332312e382d32332e342033382e352d32312e326c332e352e3420312e3720332e31632e312e322031322e342032312e342033312e362032392e33613720372030203120312d352e33203133632d31382e392d372e382d33312e372d32342e392d33362e352d33322e32682d2e326132322e322032322e322030203020302d32302e352031332e33632d332e3220372e312d332e322031372e3620362e342032352e37613131322e31203131322e312030203020312031332e3320313463352e3320362e3320392e352031312e332031372e3120313520392e3420342e342031322e3320322031372e312d312e3973372e372d362e342031342e312d362e3561392e3820392e3820302030203020392e342d362e3563312e322d332e362d2e352d372e332d342e372d31302e3461362e3920362e392030203020312d312e372d392e3720372e3120372e3120302030203120392e382d312e3763392e3120362e362031332031362e352031302032366132332e372032332e372030203020312d32322e362031362e33632d312e3420302d3320312e322d352e3420332e32732d392e3120372e362d31372e3420372e367a2220636c6173733d2247222f3e3c7061746820643d224d3339382e34203630322e39632d332d31352d382e342d32342e3620382d333020362d322032332030203236203130733420313120312032362d333220392d33352d367a2220636c6173733d2248222f3e3c7061746820643d224d3336312e322c36313263312c31382c362e362c32312e322c32382c33352c33312c32302c322e322c32342e312c302c32392d31322c32372d33322c342d34312c31342d32312e342c32332e382d33382e342d32322e322d34382e372d34332e392d31332d32372e322c352e372d34372e312c33322e352d33342e382220636c6173733d2246222f3e3c7061746820643d224d3333362e32203730332e376131342e332031342e332030203020312d322e392d2e33632d31362e362d322e352d32372e372d32372d33362e372d34362e376c2d332e352d372e36632d372e332d31352e352d362e322d33312e3120332e312d34302e357332332e362d31302e362033382e372d332e376c2d352e382031322e37632d392e362d342e332d31382e312d342d32322e392e39732d352e322031342e352d2e342032342e366c332e3620372e3863352e392031332031362e392033372e332032362033382e3720322e322e3320342e372d312e3120372e362d342e3320362e322d362e392031342e382d352e312032312d332e3720382e3920312e392031332e3820322e392031382e382d382e3420312e352d332e3420342e372d352e3120382d3720312e362d2e3820342e372d322e3520352e362d332e36732d322e332d342e312d31312d392e376c2d312e352d31632d32302e372d31332e342d32382e352d31382e342d32392e372d33392e356c31342d2e38632e3820313420332e332031352e372032332e332032382e366c312e352e3963382e3320352e342031372e382031322e372031372e352032322e31732d382e322031322e372d31322e392031352e336c2d322e3520312e34632d392e362032302e352d32342e382031372e332d33342031352e342d332e312d2e372d362e392d312e352d372e372d2e362d352e3420362d31312e3120392d31372e3220397a2220636c6173733d2247222f3e3c7061746820643d224d3332312e3220363139632d332d31352d312e322d37372e312031322e332d38372e382031352e392d31322e342032322e372d31302e342033362e312031352e3720342e3420382e372d31342e342036362e312d31372e342038312e31732d323820362d33312d397a2220636c6173733d2248222f3e3c7061746820643d224d3335322e322036333661372e3120372e312030203020312d342e372d312e38632d382e372d372e382d322e392d32362e3520372e332d35362e3320332e352d31302e3320382e332d32342e3320382e322d32382e352d322e352d352d392e312d31372e352d31332e372d31382e352d322e312d2e352d352e3920312e352d31312e3520352e382d31202e382d342e3420342e382d362e362032322e392d312e352031322e352d312e382032372e342d322e312033392e342d2e3220382e362d2e342031362e312d2e392032302e3861372e3120372e312030203020312d372e3820362e32203720372030203020312d362e312d372e38632e342d342e312e362d31312e322e382d31392e352e382d33352e3720322e342d36332e372031342e312d373320372d352e352031342e362d31302e332032332d382e357331362031312e372032332e362032362e35633320352e392e342031342e382d372e382033382e372d342e332031322e372d31322e332033362e322d31302e362034312e3961372037203020302031203020392e3420372e3120372e312030203020312d352e3220322e337a6d31302e382d38362e397a2220636c6173733d2247222f3e3c7061746820643d224d3432392e352c3435372e376332302c31322c33352e362c32302e352c35372e322c31372c34332e332d372c312c35372d32392e332c35342220636c6173733d2246222f3e3c7061746820643d224d3435392e35203533352e38682d322e386137203720302031203120312e342d31346331312e3720312e322032372e392d31322e322033352e382d32352e3520342e352d372e3620342e382d31322e3520332e392d31332e38732d332e332d312e392d31302d2e38632d32352e3220342d34332e382d372e312d36312e392d31372e396137203720302031203120372e312d31326332302e322031322033332e382031392e312035322e362031362e312031342e332d322e332032302e3820322e342032332e3820362e3720342e37203720332e352031372e322d332e352032382e392d392e362031362d32382e382033322e332d34362e342033322e337a2220636c6173733d2247222f3e3c7061746820643d224d3236382e39203536382e36632d32372e352d32342e342d35312e392d38372e362d32362d3132312031342d31382035312e392031352e382036352031312038362d33312034352d37362034352d3736732d31362e332d32392e382032332d33312032322e352037332e382034322e352039316335352034372038342e352031323420312e35203135382d33382e352031352e382d31303720372d3135312d33327a2220636c6173733d2246222f3e3c7061746820643d224d3334322e35203434316135332e372035332e372030203020302031322e392d31332e317331372d33322e352033322d33312e336332322e3120312e362032322e312033302e362032372e382034332e3420312e332032372e312d34332e362032332e382d37322e3720317a6d2d34302e3320313438632d37392e362d34312e352d36382d3131352e362d35392e392d3132372e382d2e37203130312e342039352e37203134392e3420313836203132392e382d31342e3120362e352d36322e382033332e352d3132362e312d327a2220636c6173733d2248222f3e3c7061746820643d224d3337302e39203631372e34632d33332e3820302d36362e372d31332e362d3130322e312d34312e392d33322e342d32362d34382e382d38322e332d34312e332d3131332e3520332e332d31332e382031312e322d32322e362032322e332d32342e3920392e352d312e392031392e3220322e382032392e3320372e392031322e3920362e342032352e312031322e342033362e3720352e392032322e352d31322e362033352e322d32352e382033362e372d33382e326132312e312032312e312030203020302d352e372d31362e386c2d2e382d2e382d2e352d316133322e342033322e342030203020312d332e332d382e39632d312e372d372e312d312d31332e3720322d313920342e392d382e352031352d31332033302e322d31332e352031372d2e3520323920372e332033352e392032332e3220352e342031322e3520362e3720323820372e392034312e372e3520362e3320312031322e3320312e392031372e3220312e3220362e3620352e372031302e332031342e332031362e397332322031362e392033312e312033362e33613720372030203120312d31322e362036632d372e372d31362e342d31382d32342e332d32372d33312e32732d31372e342d31332e332d31392e362d32352e36632d2e392d352e342d312e352d31312e372d322e312d31382e342d322e362d33302e392d362e332d35322e382d32392e342d35322e312d392e372e332d31362e3220322e362d31382e3420362e34732d2e342031302e3620312031332e366133352e342033352e3420302030203120392032372e37632d322e312031372e322d31362e382033332e362d34332e382034382e372d31382031302e312d33352e3620312e342d34392e372d352e362d372e392d332e392d31352e352d372e362d32302e332d362e36732d392e3520362d31312e352031342e33632d362e342032362e3520392e322037372e352033362e352039392e332033322e382032362e332036322e392033382e392039332e352033382e3961313233203132332030203020302031372e312d312e336333312e382d342e382035342d31362e382036362d33352e387331312e312d33382e3920372e332d35312e33613720372030203120312031332e342d3463342e362031352e3120352e312034302e372d382e382036322e37732d33392e382033362e382d37352e382034322e32613132372e37203132372e372030203020312d31392e3420312e357a2220636c6173733d2247222f3e3c7061746820643d224d3332332e3220353635632d36342e382032352e382d3130362d33382e382d37322d34357334312e362d33362e352035392d33376331362e392d332e362033312e3820352e332033352e372032312e3220362e382032372e352d2e382034382d32322e372036302e387a2220636c6173733d2246222f3e3c7061746820643d224d3239332e38203537362e386138312e382038312e382030203020312d31372e392d312e39632d31322e392d322e382d32342e362d382e392d33322e392d31372e32732d31332e372d32312d31302e382d33302e3463312e332d342e3420352e342d31312e392031372e382d31342e322031362e342d332032342e322d31302e382033322e352d31392e317331342d31342e312032352e372d31372e376137203720302030203120342e312031332e34632d382e3420322e352d31332e3720372e392d31392e392031342e312d3920392e312d31392e312031392e332d33392e392032332e31712d352e3920312e312d362e3920342e35632d312e3120332e352e3720392e3920372e332031362e342031312e382031312e382033352e392032302e372036382e322031302e3561372e3120372e3120302030203120382e3820342e36203720372030203020312d342e3620382e38203130352e31203130352e312030203020312d33312e3520352e317a2220636c6173733d2247222f3e3c7061746820643d224d3436382e32203132306331392e3620322e3120332036312d392039312d342e382031322e312d31302034322d33372033342d31342e362d342e332d32332d32302d372d35302031312d32302e362033342d37372035332d37357a2220636c6173733d2246222f3e3c7061746820643d224d343331203235382e346133362e362033362e362030203020312d31302e382d312e372032372e362032372e362030203020312d31382e332d31352e39632d342e382d31312e342d322e342d32362e3220372e312d34342e3120322d332e3620342e332d382e3420372d31332e392031372e382d33362e362033342d36362e372035322e392d36342e3868306131352e322031352e322030203020312031312e3620372e356331332e342032322e312d31332e362039302e322d31342e382039332e31732d312e3320332e352d3220352e36632d332e392031312e362d31312e342033342e322d33322e372033342e327a4d3436372e3320313332632d312e3520302d3720312e322d31372e352031372e332d372e382031312e392d31352e332032372e332d32312e332033392e376c2d372e312031342e33632d372e322031332e362d392e362032352d362e362033322e3120312e3620332e3920342e3820362e3520392e3420372e392031342e3220342e322031392e382d342e322032362e332d32332e352e372d322e3320312e352d342e3520322e322d362e342031352e342d33382e342032302e362d37322e372031352e392d38302e362d2e352d2e382d2e372d2e382d312e312d2e387a2220636c6173733d2247222f3e3c7061746820643d224d3236342e38203338372e38632d32302d342d35302d32342d32362d35322031312e362d31332e352031332e392d31322e332031322e312d33332e392d332e322d34312e3120352e352d3130312e332036342e392d3132312e312032342d3820342e362d35332e392033312d36327334362e382032302e352036302033396331352032312034382031382037302034382031362e342032322e332032372e382033302e322033302038372e3420372033342032362031332e362033312034322e3620332e352031392e392d33362e372036302d3131372e342037322e392d3131322e362031382e312d39392e362d392e372d3135352e362d32302e397a2220636c6173733d2246222f3e3c7061746820643d224d3238372e362c3234362e37632d31332e372c34342d342e372c38362e362d372e312c38392e332d32342c32382d362e342c34352e332c31392e362c35382e332c302c302d312e352c312e312d352e382e36732d31332e362d332d32362e312d352e39632d32302d342d34392d32372e352d32352d35352e352c31312e352d31332e342c31332e382d31322e322c31322e312d33332e392d312e322d31352e342d322e312d34322e362c362e392d36312e365a2220636c6173733d2248222f3e3c7061746820643d224d3438382e3220323238613720372030203020312d362e322d332e37632d31342e382d32382d33342e332d33362e312d35312e342d34332e332d31312e342d342e382d32322e322d392e332d32392e312d31382e396c2d2e362d2e39632d31322e352d31372e352d32382e312d33392e332d34372e332d33352e332d382e3620312e372d31302e3520382e332d31322e372032322e382d312e3320372e392d322e362031362e312d362e372032322e39613720372030203120312d31322d372e3263322e372d342e3520332e372d313120342e382d31372e3920322e322d31332e3520342e382d33302e342032332e382d33342e342032382e312d352e382034372e342032312e322036312e352034316c2e362e3863342e3620362e352031322e3820392e392032332e312031342e322031382e3320372e362034312e322031372e322035382e342034392e3661372e3120372e312030203020312d322e3920392e35203820382030203020312d332e332e387a6d2d313238203139342e35632d33302e3620302d34332e312d372e352d35342e352d31342e332d362e312d332e362d31312e322d362e372d31392d382e346137203720302030203120332d31332e3663313020322e312031362e3720362e312032332e312031302031352e3120392033322e322031392e32203130362e3820352e392033342e372d362e322036352e372d31382038372e312d33332e322031322e382d392032352e392d32322e392032342e362d33312e39732d342e312d31302e342d392e352d31322e39632d372e322d332e342d31372e312d372e392d32312e352d32392e32762d312e32632d312d33312d322d33372d382e322d34392e3661362e3920362e3920302030203120332e312d392e3420372e3120372e3120302030203120392e3420332e3263372e372031352e3520382e372032332e3720392e362035342e3720332031332e3920372e372031362031332e362031382e387331342e3920362e392031372e342032332e3663322e312031332e352d392e332033302e342d33302e332034352e332d31362e332031312e362d34352e362032372e322d39322e382033352e362d32362e3620342e372d34362e3520362e362d36312e3920362e367a6d2d39352d32392e35682d312e31632d32302e372d332e322d33362e332d31342e342d34302e372d32392e312d332e342d31312e342e362d32332e342031312e312d333320382e372d372e3920382e382d382e3720392e382d32382e316c2e322d342e3463312e332d32352e3620322e362d34392e382031302e362d37302e3820392e322d32342e322032362e352d34302e352035322e372d35302e3161372e30323320372e30323320302031203120342e382031332e32632d32322e3520382e322d33362e362032312e352d34342e342034312e39732d382e342034322e312d392e372036362e366c2d2e3220342e33632d312e312032302e352d312e342032362d31342e342033372e382d342e3520342e312d392e342031302e372d372e312031382e367331342e342031362e392032392e352031392e33613720372030203020312d312e312031332e397a2220636c6173733d2247222f3e3c7061746820643d224d3330312e33203233322e38632d31332e362032342e342d33332e322031362e322d34372e3320322e312d32322e322d32322e332d34372e392d36342e322d33392e342d37332e352031302e352d31312e362035392e362032352e392037362e362033372e367331362e362032322031302e312033332e387a2220636c6173733d2246222f3e3c7061746820643d224d3238372e36203234362e37632d31312e3320352d32332e382d322d33332e362d31312e382d31392e312d31392e322d34302e392d37302e312d33362e312d36332e332031352e342032382e382036392e372037352e312036392e372037352e317a2220636c6173733d2248222f3e3c7061746820643d224d3235382e31203234372e39613720372030203020312d352e342d322e366c2d372e382d392e36632d32342e312d32392e342d35312e342d36322e372d33352e382d37392e3520392e352d31302e322032342e392d332033302d2e372031302e3420342e392032322e382031332033372e322032322e346c31362e352031302e38613720372030203120312d372e352031312e386c2d31362e372d31302e39632d31332e392d392e312d32352e392d31372d33352e332d32312e332d372e332d332e342d31322e332d342e332d31342d322e35732d332e33203520372e312032322e3163372e372031322e352031392e322032362e352032392e332033382e396c372e3920392e37613720372030203020312d352e352031312e347a2220636c6173733d2247222f3e3c7061746820643d224d3334382e3220343130632d31342e392d392e352d362e312d32392032312d323920323420302033352e332d31392e342036372d32362032342d3520343020352e3820363020327331392e352031312e39203138203232632d322031342d31302032342d34372033392d33342031332e382d38392031312d3131392d387a2220636c6173733d2246222f3e3c7061746820643d224d3432382e3220343236732d343020362d37342d3130632d32302e382d392e382d31342d333220352d333420352e312d2e352031342d312031342d312d382e392032362e372032372e312034342e312035352034357a2220636c6173733d2248222f3e3c6720636c6173733d2247223e3c7061746820643d224d3431382e33203433322e34632d32332e3220302d34372d342e312d36382e312d31322e332d392e392d332e382d31362e352d31362e322d31342e322d323761323020323020302030203120392e342d31332e3263352e332d332e332031322e342d342e372032312d342e34203230202e382033302e392d362e312034332e362d313420392e392d362e322032302e312d31322e362033352d31352e392031312e382d322e362032302e372e372032382e3520332e357331322e3720342e362031392e3420322e322031352e382d312e322032312e3420342e3320382e362031352e3720362e312032332e31632d372032312e332d32332e372033362e362d34392e342034352e352d31352e3820352e352d333420382e322d35322e3720382e327a6d2d35342e322d34352e39632d362e3620302d31352e3820312e332d31372e3420382e392d312e3120352e3520322e352031322e3520372e352031342e3568306333352e382031332e382038302e322031352e34203131332e3220332e39433439302034303620353034203339332e3320353130203337352e3363312e322d332e362d2e332d382e382d332e342d31312e38732d362d332e322d31302e312d312e38632d31302e3420332e372d3139202e352d32362e372d322e33732d31332e382d342e392d32322e342d33632d31332e3120322e392d32322e3520382e372d33312e352031342e342d31332e3120382e322d32362e362031362e362d34392e392031352e377a222f3e3c636972636c652063783d223438362e34222063793d223331332e382220723d2233302e38222f3e3c2f673e3c636972636c652063783d223438362e34222063793d223331332e382220723d2232312e332220636c6173733d2246222f3e3c636972636c652063783d223438362e34222063793d223331332e382220723d2231352e372220636c6173733d2248222f3e3c636972636c652063783d223336362e39222063793d223333352e342220723d2233332e362220636c6173733d2247222f3e3c636972636c652063783d223336362e39222063793d223333352e342220723d2232332e322220636c6173733d2246222f3e3c636972636c652063783d223336362e39222063793d223333352e342220723d2231372e312220636c6173733d2248222f3e3c2f7376673ea26469706673582212206f18e9cda3ad40988984967153ab912c3e0e6f6db8fe8bc49643b928237d118864736f6c634300080a0033

Loading