ETH Price: $3,337.36 (-1.11%)
Gas: 8 Gwei

Contract

0xfa79ABd97c6109970a5c246Ef99596235601561d
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Mint182782672023-10-04 16:11:59299 days ago1696435919IN
Ultra Sound Editions: Ξ Token
0 ETH0.0029917.95712659
Merge179949262023-08-25 23:16:59339 days ago1693005419IN
Ultra Sound Editions: Ξ Token
0 ETH0.000975412.95140245
Mint179949242023-08-25 23:16:35339 days ago1693005395IN
Ultra Sound Editions: Ξ Token
0 ETH0.0020443613.68721706
Merge179949172023-08-25 23:15:11339 days ago1693005311IN
Ultra Sound Editions: Ξ Token
0 ETH0.0010209413.54609292
Merge179949152023-08-25 23:14:47339 days ago1693005287IN
Ultra Sound Editions: Ξ Token
0 ETH0.0010162613.48581148
Merge179949132023-08-25 23:14:23339 days ago1693005263IN
Ultra Sound Editions: Ξ Token
0 ETH0.0010864114.41479308
Mint179949072023-08-25 23:13:11339 days ago1693005191IN
Ultra Sound Editions: Ξ Token
0 ETH0.0020809213.93199842
Merge179949032023-08-25 23:12:23339 days ago1693005143IN
Ultra Sound Editions: Ξ Token
0 ETH0.0010719614.22302157
Merge179948882023-08-25 23:09:23339 days ago1693004963IN
Ultra Sound Editions: Ξ Token
0 ETH0.0010826914.36542945
Merge179948822023-08-25 23:08:11339 days ago1693004891IN
Ultra Sound Editions: Ξ Token
0 ETH0.0009993813.26182008
Mint169597472023-04-02 6:50:35485 days ago1680418235IN
Ultra Sound Editions: Ξ Token
0 ETH0.0033301620
Set Approval For...169517622023-04-01 3:54:23486 days ago1680321263IN
Ultra Sound Editions: Ξ Token
0 ETH0.0008592722.90234395
Mint169446352023-03-31 3:53:23487 days ago1680234803IN
Ultra Sound Editions: Ξ Token
0 ETH0.0044840224.00353076
Mint169116262023-03-26 12:33:23491 days ago1679834003IN
Ultra Sound Editions: Ξ Token
0 ETH0.0026339615.82428615
Mint167581352023-03-04 22:46:59513 days ago1677970019IN
Ultra Sound Editions: Ξ Token
0 ETH0.0037931120.30508668
Mint167377332023-03-02 1:51:11516 days ago1677721871IN
Ultra Sound Editions: Ξ Token
0 ETH0.0036293521.79685917
Mint Bulk167137042023-02-26 16:50:59519 days ago1677430259IN
Ultra Sound Editions: Ξ Token
0 ETH0.0165505920.66662051
Mint166502302023-02-17 18:34:23528 days ago1676658863IN
Ultra Sound Editions: Ξ Token
0 ETH0.0074030744.46101944
Mint166017852023-02-10 23:57:11535 days ago1676073431IN
Ultra Sound Editions: Ξ Token
0 ETH0.0033072219.48782422
Mint166017742023-02-10 23:54:59535 days ago1676073299IN
Ultra Sound Editions: Ξ Token
0 ETH0.0038763321.83727445
Mint166017652023-02-10 23:53:11535 days ago1676073191IN
Ultra Sound Editions: Ξ Token
0 ETH0.0043531419.99930361
Merge165957902023-02-10 3:52:23536 days ago1676001143IN
Ultra Sound Editions: Ξ Token
0 ETH0.0019315125.63117802
Merge165957862023-02-10 3:51:35536 days ago1676001095IN
Ultra Sound Editions: Ξ Token
0 ETH0.0021147126.45677902
Merge165957822023-02-10 3:50:47536 days ago1676001047IN
Ultra Sound Editions: Ξ Token
0 ETH0.0021652127.08857371
Merge165957792023-02-10 3:50:11536 days ago1676001011IN
Ultra Sound Editions: Ξ Token
0 ETH0.0019351625.76030693
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
UltraSoundEditions

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 800 runs

Other Settings:
default evmVersion
File 1 of 24 : UltraSoundEditions.sol
// SPDX-License-Identifier: MIT

/// @title Ultra Sound Editions
/// @author -wizard

/// Ultra Sound Editions is inspired by
/// @jackbutcher, pak, ultrasound.money
/// and by all degens, yes - that's you

pragma solidity ^0.8.6;

import {IUltraSoundGridRenderer} from "./interfaces/IUltraSoundGridRenderer.sol";
import {IUltraSoundDescriptor} from "./interfaces/IUltraSoundDescriptor.sol";
import {IUltraSoundEditions} from "./interfaces/IUltraSoundEditions.sol";
import {ERC2981ContractWideRoyalties, ERC2981Base} from "./libs/royalties/ERC2981ContractWideRoyalties.sol";

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "operator-filter-registry/src/DefaultOperatorFilterer.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

contract UltraSoundEditions is
    IUltraSoundEditions,
    ERC721,
    DefaultOperatorFilterer,
    ERC2981ContractWideRoyalties,
    Pausable,
    Ownable
{
    IERC721Burn public proofOfWork;
    IUltraSoundDescriptor public descriptor;

    uint256 public ultraSoundBaseFee = 1660; // 16600000000;
    uint16 ultraEditionCounter = 0;
    uint8 restoreMax = 6;

    bool private degenMode = true; // for all degens, especially thomas
    uint256 private restoredCounter;

    mapping(uint256 => Edition) private editions;
    mapping(uint256 => uint256) private restoredTracker;

    constructor(IUltraSoundDescriptor _descriptor, IERC721Burn _proofOfWork)
        ERC721("Ultra Sound Editions", unicode"Ξ")
    {
        descriptor = _descriptor;
        proofOfWork = _proofOfWork;
        _setRoyalties(msg.sender, 500);
    }

    function pause() external override onlyOwner {
        _pause();
    }

    function unpause() external override onlyOwner {
        _unpause();
    }

    function setRoyalties(address recipient, uint24 value) external onlyOwner {
        _setRoyalties(recipient, value);
    }

    function setProofOfWork(IERC721Burn _proofOfWork) external onlyOwner {
        emit ProofOfWorkUpdated(address(proofOfWork), address(_proofOfWork));
        proofOfWork = _proofOfWork;
    }

    function setDescriptor(IUltraSoundDescriptor _descriptor)
        external
        override
        onlyOwner
    {
        emit DescriptorUpdated(address(descriptor), address(_descriptor));
        descriptor = _descriptor;
    }

    function setUltraSoundBaseFee(uint256 _baseFee)
        external
        override
        onlyOwner
    {
        emit UltraSoundBaseFeeUpdated(ultraSoundBaseFee, _baseFee);
        ultraSoundBaseFee = _baseFee;
    }

    function toggleDegenMode() external override onlyOwner {
        degenMode = !degenMode;
    }

    function restored() public view override returns (uint256) {
        return restoredCounter;
    }

    function isUltraSound(uint256 tokenId)
        public
        view
        override
        returns (bool ultraSound)
    {
        ultraSound = editions[tokenId].ultraSound;
    }

    function levelOf(uint256 tokenId)
        public
        view
        override
        returns (uint256 level)
    {
        level = editions[tokenId].level;
    }

    function levelsOf(uint256[] calldata tokenIds)
        public
        view
        returns (uint256[] memory)
    {
        uint256[] memory levels = new uint256[](tokenIds.length);
        for (uint256 i = 0; i < tokenIds.length; i++) {
            levels[i] = (editions[tokenIds[i]].level);
        }
        return levels;
    }

    function mergeCountOf(uint256 tokenId)
        public
        view
        override
        returns (uint256 mergeCount)
    {
        mergeCount = editions[tokenId].mergeCount;
    }

    function edition(uint256 tokenId)
        public
        view
        override
        returns (
            bool ultraSound,
            bool burned,
            uint32 seed,
            uint8 level,
            uint8 palette,
            uint32 blockNumber,
            uint64 baseFee,
            uint64 blockTime,
            uint16 mergeCount,
            uint16 ultraEdition
        )
    {
        ultraSound = editions[tokenId].ultraSound;
        burned = editions[tokenId].burned;
        seed = editions[tokenId].seed;
        level = editions[tokenId].level;
        palette = editions[tokenId].palette;
        blockNumber = editions[tokenId].blockNumber;
        baseFee = editions[tokenId].baseFee;
        blockTime = editions[tokenId].blockTime;
        mergeCount = editions[tokenId].mergeCount;
        ultraEdition = editions[tokenId].ultraEdition;
    }

    function mint(uint256 tokenId) external override whenNotPaused {
        if (!proofOfWork.isApprovedForAll(msg.sender, address(this))) {
            revert ContractNotOperator();
        }

        if (proofOfWork.ownerOf(tokenId) != msg.sender) {
            revert MustBeTokenOwner(address(proofOfWork), tokenId);
        }

        _redeem(msg.sender, tokenId);
        emit Redeemed(tokenId);
    }

    function mintBulk(uint256[] calldata tokenIds)
        external
        override
        whenNotPaused
    {
        if (tokenIds.length > 20) revert TooMany();
        if (!proofOfWork.isApprovedForAll(msg.sender, address(this))) {
            revert ContractNotOperator();
        }

        for (uint256 i = 0; i < tokenIds.length; ) {
            if (proofOfWork.ownerOf(tokenIds[i]) != msg.sender) {
                revert MustBeTokenOwner(address(proofOfWork), tokenIds[i]);
            }

            _redeem(msg.sender, tokenIds[i]);
            unchecked {
                i++;
            }
        }
        emit RedeemedMultiple(tokenIds);
    }

    function swapPalette(uint256 powToBurn, uint256 tokenToSwap)
        external
        whenNotPaused
    {
        address powOwner = proofOfWork.ownerOf(powToBurn);

        if (ownerOf(tokenToSwap) != msg.sender) {
            revert MustBeTokenOwner(address(this), tokenToSwap);
        }

        if (powOwner != msg.sender) {
            revert MustBeTokenOwner(address(proofOfWork), powToBurn);
        }

        if (!proofOfWork.isApprovedForAll(msg.sender, address(this))) {
            revert ContractNotOperator();
        }

        proofOfWork.burn(powToBurn);
        _swapPalette(tokenToSwap);

        emit MetadataUpdate(tokenToSwap);
        emit Merged(tokenToSwap, powToBurn);
    }

    function merge(uint256 token1, uint256 token2) external whenNotPaused {
        if (ownerOf(token1) != msg.sender) {
            revert MustBeTokenOwner(msg.sender, token1);
        }

        if (ownerOf(token2) != msg.sender) {
            revert MustBeTokenOwner(msg.sender, token2);
        }

        if (!isApprovedForAll(msg.sender, address(this))) {
            revert ContractNotOperator();
        }

        (uint256 tokenIdToBurn, uint256 tokenIdToKeep) = _merge(token1, token2);

        _burn(tokenIdToBurn);

        emit MetadataUpdate(tokenIdToKeep);
        emit MetadataUpdate(tokenIdToBurn);
        emit Merged(tokenIdToKeep, tokenIdToBurn);
    }

    function restore(uint256 toRestore, uint256 toUse) external {
        unchecked {
            restoredTracker[toUse] = restoredTracker[toUse] + 1;
        }

        if (
            _exists(toRestore) ||
            ownerOf(toUse) != msg.sender ||
            levelOf(toUse) != 7 ||
            restoredTracker[toUse] > restoreMax ||
            editions[toRestore].burned == false
        ) revert CannotRestore();

        unchecked {
            restoredCounter = restoredCounter + 1;
        }

        _mint(msg.sender, toRestore);
        emit Restored(toRestore, msg.sender);
    }

    function onERC721Received(
        address,
        address from,
        uint256 id,
        bytes calldata data
    ) external whenNotPaused returns (bytes4) {
        address tokenAddress = msg.sender;
        uint256 action;
        uint256 tokenId;

        if (
            tokenAddress != address(proofOfWork) &&
            tokenAddress != address(this)
        ) {
            revert OnReceivedRequestFailure();
        }

        if (tokenAddress == address(proofOfWork) && data.length == 0) {
            action = 0;
        } else if (data.length == 64) {
            (action, tokenId) = abi.decode(data, (uint256, uint256));
        } else {
            revert OnReceivedRequestFailure();
        }

        if (action == 0) {
            /// MINT ///
            _redeem(from, id);
        } else if (action == 1) {
            /// SWAP ///
            if (ownerOf(tokenId) != from) {
                revert MustBeTokenOwner(address(this), tokenId);
            }
            proofOfWork.burn(id);
            _swapPalette(tokenId);

            emit MetadataUpdate(tokenId);
            emit Merged(tokenId, id);
        } else if (action == 2) {
            /// MERGE ///
            if (ownerOf(tokenId) != from) {
                revert MustBeTokenOwner(address(this), tokenId);
            }
            (uint256 tokenIdToBurn, uint256 tokenIdToKeep) = _merge(
                id,
                tokenId
            );
            _burn(tokenIdToBurn);
            if (tokenId != tokenIdToKeep) {
                _transfer(address(this), from, tokenIdToKeep);
            }

            emit MetadataUpdate(tokenIdToKeep);
            emit MetadataUpdate(tokenIdToBurn);
            emit Merged(tokenIdToKeep, tokenIdToBurn);
        }
        return this.onERC721Received.selector;
    }

    function burn(uint256 tokenId) public virtual {
        require(
            _isApprovedOrOwner(msg.sender, tokenId),
            "ERC721: caller is not token owner or approved"
        );
        _burn(tokenId);
    }

    function tokenURI(uint256 tokenId)
        public
        view
        override(ERC721, IUltraSoundEditions)
        returns (string memory)
    {
        Edition memory e = editions[tokenId];
        if (e.blockNumber == 0) revert("Nonexistent token");
        return descriptor.tokenURI(tokenId, editions[tokenId]);
    }

    function tokenSVG(uint256 tokenId, uint8 size)
        public
        view
        override
        returns (string memory)
    {
        Edition memory e = editions[tokenId];
        if (e.blockNumber == 0) revert("Nonexistent token");
        return descriptor.tokenSVG(editions[tokenId], size);
    }

    function _redeem(address to, uint256 tokenId) internal whenNotPaused {
        proofOfWork.burn(tokenId);
        _seedTokenData(tokenId);
        _mint(to, tokenId);
    }

    function _seedTokenData(uint256 tokenId) internal {
        bool ultraSound = block.basefee >= ultraSoundBaseFee;
        uint32 seed = _getSeed(tokenId);

        editions[tokenId] = Edition({
            seed: seed,
            baseFee: uint64(block.basefee),
            blockTime: uint64(block.timestamp),
            blockNumber: uint32(block.number),
            ultraSound: ultraSound,
            ultraEdition: 0,
            mergeCount: 0,
            level: 0,
            palette: _getPalette(seed, ultraSound),
            burned: false
        });
    }

    function _swapPalette(uint256 tokenId) internal {
        Edition storage e = editions[tokenId];
        uint32 seed = _getSeed(tokenId);

        unchecked {
            e.mergeCount = e.mergeCount + 1;
        }
        e.seed = seed;
        e.palette = _getPalette(seed, e.ultraSound);
    }

    function _merge(uint256 tokenIdOne, uint256 tokenIdTwo)
        internal
        returns (uint256 tokenIdToBurn, uint256 tokenIdToKeep)
    {
        uint8 level1 = editions[tokenIdOne].level;
        uint8 level2 = editions[tokenIdTwo].level;

        uint8 nextLevel;
        uint64 basefee;
        uint64 blockTime;
        uint32 blockNumber;
        bool ultraSound;
        uint32 seed;

        if (editions[tokenIdOne].burned || editions[tokenIdOne].burned) {
            revert CannotRestore();
        }

        if (degenMode == true && level1 != level2) {
            revert LevelsMustMatch(level1, level2);
        }

        if (degenMode) {
            unchecked {
                if (level1 > level2) {
                    nextLevel = level1 + 1;
                } else {
                    nextLevel = level2 + 1;
                }
            }
        } else {
            unchecked {
                nextLevel = level1 + level2 + 1;
            }
        }

        if (nextLevel > 7) {
            revert ExceedsMaxLevel(nextLevel, 7);
        }

        uint16 newMergeCount;
        unchecked {
            newMergeCount =
                (editions[tokenIdOne].mergeCount +
                    editions[tokenIdTwo].mergeCount) +
                1;
        }

        if (editions[tokenIdOne].baseFee > editions[tokenIdTwo].baseFee) {
            tokenIdToKeep = tokenIdOne;
            tokenIdToBurn = tokenIdTwo;
        } else {
            tokenIdToKeep = tokenIdTwo;
            tokenIdToBurn = tokenIdOne;
        }

        if (editions[tokenIdToKeep].baseFee > block.basefee) {
            basefee = editions[tokenIdToKeep].baseFee;
            blockTime = editions[tokenIdToKeep].blockTime;
            blockNumber = editions[tokenIdToKeep].blockNumber;
            ultraSound = basefee >= ultraSoundBaseFee;
        } else {
            basefee = uint64(block.basefee);
            blockTime = uint64(block.timestamp);
            blockNumber = uint32(block.number);
            ultraSound = basefee >= ultraSoundBaseFee;
        }

        if (nextLevel == 7 && !ultraSound) {
            revert MustBeUltraSound(tokenIdToKeep);
        } else if (nextLevel == 7) {
            unchecked {
                ultraEditionCounter++;
            }
        }

        seed = _getSeed(tokenIdToKeep);
        editions[tokenIdToBurn].burned = true;
        editions[tokenIdToKeep] = Edition({
            seed: seed,
            baseFee: basefee,
            blockTime: blockTime,
            blockNumber: blockNumber,
            ultraSound: ultraSound,
            mergeCount: newMergeCount,
            ultraEdition: ultraEditionCounter,
            level: nextLevel,
            palette: _getPalette(seed, ultraSound),
            burned: false
        });
    }

    function _getSeed(uint256 tokenId) internal view returns (uint32) {
        return
            uint32(
                uint256(
                    keccak256(
                        abi.encodePacked(tokenId, msg.sender, block.basefee)
                    )
                ) % type(uint32).max
            );
    }

    function _getPalette(uint256 seed, bool ultraSound)
        internal
        view
        returns (uint8 palette)
    {
        uint256 palettes = descriptor.palettesCount();
        if (!ultraSound) {
            unchecked {
                palette = uint8((seed % 4) + 1);
            }
        } else {
            unchecked {
                palette = uint8((seed % palettes));
                palette = palette < 5 ? (palette + 5) : palette;
            }
        }
    }

    // Overrides to support allowed operators

    function setApprovalForAll(address operator, bool approved)
        public
        override
        onlyAllowedOperatorApproval(operator)
    {
        super.setApprovalForAll(operator, approved);
    }

    function approve(address operator, uint256 tokenId)
        public
        override
        onlyAllowedOperatorApproval(operator)
    {
        super.approve(operator, tokenId);
    }

    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public override onlyAllowedOperator(from) {
        super.transferFrom(from, to, tokenId);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public override onlyAllowedOperator(from) {
        super.safeTransferFrom(from, to, tokenId);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) public override onlyAllowedOperator(from) {
        super.safeTransferFrom(from, to, tokenId, data);
    }

    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId,
        uint256 batchSize
    ) internal override {
        super._beforeTokenTransfer(from, to, tokenId, batchSize);
    }

    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(ERC721, ERC2981Base)
        returns (bool)
    {
        return
            interfaceId == bytes4(0x49064906) ||
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId ||
            interfaceId == type(ERC2981ContractWideRoyalties).interfaceId ||
            interfaceId == type(ERC2981ContractWideRoyalties).interfaceId ||
            super.supportsInterface(interfaceId);
    }
}

interface IERC721Burn {
    function burn(uint256 tokenId) external;

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

    function isApprovedForAll(address owner, address operator)
        external
        view
        returns (bool);
}

/* degen - you've made it to the end of the contract

        \||/
        \||/
       ⧫⧫⧫⧫⧫⧫
      ⧫⧫⧫⧫⧫⧫⧫⧫
      ⧫⧫⧫⧫⧫⧫⧫⧫
       ⧫⧫⧫⧫⧫⧫

long live the pineapple (iykyk)

*/

File 2 of 24 : IUltraSoundGridRenderer.sol
// SPDX-License-Identifier: MIT

/// @title Interface for Ultra Sound Grid Renderer
/// @author -wizard

pragma solidity ^0.8.6;

interface IUltraSoundGridRenderer {
    struct Symbol {
        uint32 seed;
        uint8 gridPalette;
        uint8 gridSize;
        uint8 id;
        uint8 level;
        uint8 palette;
        bool opaque;
    }

    struct Override {
        uint16 symbols;
        uint16 positions;
        string colors;
        uint16 size;
    }

    function generateGrid(
        Symbol memory symbol,
        Override[] memory overides,
        uint256 gradient,
        uint256 edition
    ) external view returns (string memory);
}

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

/// @title Interface for Ultra Sound Editions Descriptor
/// @author -wizard

pragma solidity ^0.8.6;

import {IUltraSoundGridRenderer} from "./IUltraSoundGridRenderer.sol";
import {IUltraSoundEditions} from "./IUltraSoundEditions.sol";
import {IUltraSoundParts} from "./IUltraSoundParts.sol";

interface IUltraSoundDescriptor {
    event PartsUpdated(IUltraSoundParts icon);
    event RendererUpdated(IUltraSoundGridRenderer renderer);
    event DataURIToggled(bool enabled);
    event BaseURIUpdated(string baseURI);

    error EmptyPalette();
    error BadPaletteLength();
    error IndexNotFound();

    function setParts(IUltraSoundParts _parts) external;

    function setRenderer(IUltraSoundGridRenderer _renderer) external;

    function palettesCount() external view returns (uint256);

    function symbolsCount() external view returns (uint256);

    function gradientsCount() external view returns (uint256);

    function quantitiesCount() external view returns (uint256);

    function tokenURI(
        uint256 tokenId,
        IUltraSoundEditions.Edition memory edition
    ) external view returns (string memory);

    function dataURI(
        uint256 tokenId,
        IUltraSoundEditions.Edition memory edition
    ) external view returns (string memory);

    function tokenSVG(IUltraSoundEditions.Edition memory edition, uint8 size)
        external
        view
        returns (string memory);
}

File 4 of 24 : IUltraSoundEditions.sol
// SPDX-License-Identifier: MIT

/// @title Interface for Ultra Sound Editions
/// @author -wizard

pragma solidity ^0.8.6;

import {IUltraSoundGridRenderer} from "./IUltraSoundGridRenderer.sol";
import {IUltraSoundDescriptor} from "./IUltraSoundDescriptor.sol";

interface IUltraSoundEditions {
    error LevelsMustMatch(uint256 tokenOneLevel, uint256 tokenTwoLevel);
    error ExceedsMaxLevel(uint16 level, uint256 maxLevel);
    error MustBeUltraSound(uint256 tokenId);
    error MustBeTokenOwner(address token, uint256 tokenId);
    error ContractNotOperator();
    error OnReceivedRequestFailure();
    error CannotRestore();
    error TooMany();

    event Redeemed(uint256 tokenId);
    event RedeemedMultiple(uint256[] tokenId);
    event Merged(uint256 tokenId, uint256 tokenIdBurned);
    event Swapped(uint256 tokenId, uint256 swappedTokenId);
    event Restored(uint256 tokenId, address by);
    event MetadataUpdate(uint256 _tokenId);
    event DescriptorUpdated(address orignal, address replaced);
    event ProofOfWorkUpdated(address orignal, address replaced);
    event UltraSoundBaseFeeUpdated(uint256 orignal, uint256 replaced);

    struct Edition {
        bool ultraSound;
        bool burned;
        uint32 seed;
        uint8 level;
        uint8 palette;
        uint32 blockNumber;
        uint64 baseFee;
        uint64 blockTime;
        uint16 mergeCount;
        uint16 ultraEdition;
    }

    function pause() external;

    function unpause() external;

    function setDescriptor(IUltraSoundDescriptor _descriptor) external;

    function setUltraSoundBaseFee(uint256 _baseFee) external;

    function toggleDegenMode() external;

    function restored() external view returns (uint256);

    function isUltraSound(uint256 tokenId)
        external
        view
        returns (bool ultraSound);

    function levelOf(uint256 tokenId) external view returns (uint256 level);

    function levelsOf(uint256[] calldata tokenIds)
        external
        view
        returns (uint256[] memory);

    function mergeCountOf(uint256 tokenId)
        external
        view
        returns (uint256 mergeCount);

    function edition(uint256 tokenId)
        external
        view
        returns (
            bool ultraSound,
            bool burned,
            uint32 seed,
            uint8 level,
            uint8 palette,
            uint32 blockNumber,
            uint64 baseFee,
            uint64 blockTime,
            uint16 mergeCount,
            uint16 ultraEdition
        );

    function mint(uint256 tokenId) external;

    function mintBulk(uint256[] calldata tokenId) external;

    function tokenURI(uint256 tokenId) external view returns (string memory);

    function tokenSVG(uint256 tokenId, uint8 size)
        external
        view
        returns (string memory);
}

interface IERC721Burn {
    function burn(uint256 tokenId) external;
}

File 5 of 24 : ERC2981ContractWideRoyalties.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/introspection/ERC165.sol";

import "./ERC2981Base.sol";

/// @dev This is a contract used to add ERC2981 support to ERC721 and 1155
/// @dev This implementation has the same royalties for each and every tokens
abstract contract ERC2981ContractWideRoyalties is ERC2981Base {
    RoyaltyInfo private _royalties;

    /// @dev Sets token royalties
    /// @param recipient recipient of the royalties
    /// @param value percentage (using 2 decimals - 10000 = 100, 0 = 0)
    function _setRoyalties(address recipient, uint256 value) internal {
        require(value <= 10000, "ERC2981Royalties: Too high");
        _royalties = RoyaltyInfo(recipient, uint24(value));
    }

    /// @inheritdoc	IERC2981Royalties
    function royaltyInfo(uint256, uint256 value)
        external
        view
        override
        returns (address receiver, uint256 royaltyAmount)
    {
        RoyaltyInfo memory royalties = _royalties;
        receiver = royalties.recipient;
        royaltyAmount = (value * royalties.amount) / 10000;
    }
}

File 6 of 24 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.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: address zero is not a valid owner");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _ownerOf(tokenId);
        require(owner != address(0), "ERC721: invalid token ID");
        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) {
        _requireMinted(tokenId);

        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 overridden 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 token owner or approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        _requireMinted(tokenId);

        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: caller is not token owner or 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: caller is not token owner or 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 the owner of the `tokenId`. Does NOT revert if token doesn't exist
     */
    function _ownerOf(uint256 tokenId) internal view virtual returns (address) {
        return _owners[tokenId];
    }

    /**
     * @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 _ownerOf(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) {
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == 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, 1);

        // Check that tokenId was not minted by `_beforeTokenTransfer` hook
        require(!_exists(tokenId), "ERC721: token already minted");

        unchecked {
            // Will not overflow unless all 2**256 token ids are minted to the same owner.
            // Given that tokens are minted one by one, it is impossible in practice that
            // this ever happens. Might change if we allow batch minting.
            // The ERC fails to describe this case.
            _balances[to] += 1;
        }

        _owners[tokenId] = to;

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

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

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     * This is an internal function that does not check if the sender is authorized to operate on the token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

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

        // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook
        owner = ERC721.ownerOf(tokenId);

        // Clear approvals
        delete _tokenApprovals[tokenId];

        unchecked {
            // Cannot overflow, as that would require more tokens to be burned/transferred
            // out than the owner initially received through minting and transferring in.
            _balances[owner] -= 1;
        }
        delete _owners[tokenId];

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

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

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

        // Check that tokenId was not transferred by `_beforeTokenTransfer` hook
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");

        // Clear approvals from the previous owner
        delete _tokenApprovals[tokenId];

        unchecked {
            // `_balances[from]` cannot overflow for the same reason as described in `_burn`:
            // `from`'s balance is the number of token held, which is at least one before the current
            // transfer.
            // `_balances[to]` could overflow in the conditions described in `_mint`. That would require
            // all 2**256 token ids to be minted, which in practice is impossible.
            _balances[from] -= 1;
            _balances[to] += 1;
        }
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId, 1);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits an {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 an {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 Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

    /**
     * @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 {
                    /// @solidity memory-safe-assembly
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`.
     * - When `from` is zero, the tokens will be minted for `to`.
     * - When `to` is zero, ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256, /* firstTokenId */
        uint256 batchSize
    ) internal virtual {
        if (batchSize > 1) {
            if (from != address(0)) {
                _balances[from] -= batchSize;
            }
            if (to != address(0)) {
                _balances[to] += batchSize;
            }
        }
    }

    /**
     * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`.
     * - When `from` is zero, the tokens were minted for `to`.
     * - When `to` is zero, ``from``'s tokens were burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 firstTokenId,
        uint256 batchSize
    ) internal virtual {}
}

File 7 of 24 : DefaultOperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {OperatorFilterer} from "./OperatorFilterer.sol";
import {CANONICAL_CORI_SUBSCRIPTION} from "./lib/Constants.sol";
/**
 * @title  DefaultOperatorFilterer
 * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription.
 * @dev    Please note that if your token contract does not provide an owner with EIP-173, it must provide
 *         administration methods on the contract itself to interact with the registry otherwise the subscription
 *         will be locked to the options set during construction.
 */

abstract contract DefaultOperatorFilterer is OperatorFilterer {
    /// @dev The constructor that is called when the contract is being deployed.
    constructor() OperatorFilterer(CANONICAL_CORI_SUBSCRIPTION, true) {}
}

File 8 of 24 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        _requireNotPaused();
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        _requirePaused();
        _;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        require(!paused(), "Pausable: paused");
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        require(paused(), "Pausable: not paused");
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 9 of 24 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (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 Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        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 10 of 24 : IUltraSoundParts.sol
// SPDX-License-Identifier: MIT

/// @title Interface for Ultra Sound Parts
/// @author -wizard

pragma solidity ^0.8.6;

interface IUltraSoundParts {
    error SenderIsNotDescriptor();
    error PartNotFound();

    event SymbolAdded();
    event PaletteAdded();
    event GradientAdded();

    function addSymbol(bytes calldata data) external;

    function addSymbols(bytes[] calldata data) external;

    function addPalette(bytes calldata data) external;

    function addPalettes(bytes[] calldata data) external;

    function addGradient(bytes calldata data) external;

    function addGradients(bytes[] calldata data) external;

    function symbols(uint256 index) external view returns (bytes memory);

    function palettes(uint256 index) external view returns (bytes memory);

    function gradients(uint256 index) external view returns (bytes memory);

    function quantities(uint256 index) external view returns (uint16);

    function symbolsCount() external view returns (uint256);

    function palettesCount() external view returns (uint256);

    function gradientsCount() external view returns (uint256);

    function quantityCount() external view returns (uint256);
}

File 11 of 24 : 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 12 of 24 : ERC2981Base.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/introspection/ERC165.sol";

import "./IERC2981Royalties.sol";

/// @dev This is a contract used to add ERC2981 support to ERC721 and 1155
abstract contract ERC2981Base is ERC165, IERC2981Royalties {
    struct RoyaltyInfo {
        address recipient;
        uint24 amount;
    }

    /// @inheritdoc	ERC165
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC2981Royalties).interfaceId || super.supportsInterface(interfaceId);
    }
}

File 13 of 24 : 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 14 of 24 : IERC2981Royalties.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

/// @title IERC2981Royalties
/// @dev Interface for the ERC2981 - Token Royalty standard
interface IERC2981Royalties {
    /// @notice Called with the sale price to determine how much royalty
    //          is owed and to whom.
    /// @param _tokenId - the NFT asset queried for royalty information
    /// @param _value - the sale price of the NFT asset specified by _tokenId
    /// @return _receiver - address of who should be sent the royalty payment
    /// @return _royaltyAmount - the royalty payment amount for value sale price
    function royaltyInfo(uint256 _tokenId, uint256 _value)
        external
        view
        returns (address _receiver, uint256 _royaltyAmount);
}

File 15 of 24 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (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`.
     *
     * 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;

    /**
     * @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 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: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * 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 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 the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

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

File 16 of 24 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (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 `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 17 of 24 : 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 18 of 24 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.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 functionCallWithValue(target, data, 0, "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");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or 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 {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // 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
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

File 19 of 24 : 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 20 of 24 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @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] = _SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

File 21 of 24 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator,
        Rounding rounding
    ) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10**64) {
                value /= 10**64;
                result += 64;
            }
            if (value >= 10**32) {
                value /= 10**32;
                result += 32;
            }
            if (value >= 10**16) {
                value /= 10**16;
                result += 16;
            }
            if (value >= 10**8) {
                value /= 10**8;
                result += 8;
            }
            if (value >= 10**4) {
                value /= 10**4;
                result += 4;
            }
            if (value >= 10**2) {
                value /= 10**2;
                result += 2;
            }
            if (value >= 10**1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);
        }
    }
}

File 22 of 24 : OperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol";
import {CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS} from "./lib/Constants.sol";
/**
 * @title  OperatorFilterer
 * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another
 *         registrant's entries in the OperatorFilterRegistry.
 * @dev    This smart contract is meant to be inherited by token contracts so they can use the following:
 *         - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods.
 *         - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods.
 *         Please note that if your token contract does not provide an owner with EIP-173, it must provide
 *         administration methods on the contract itself to interact with the registry otherwise the subscription
 *         will be locked to the options set during construction.
 */

abstract contract OperatorFilterer {
    /// @dev Emitted when an operator is not allowed.
    error OperatorNotAllowed(address operator);

    IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY =
        IOperatorFilterRegistry(CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS);

    /// @dev The constructor that is called when the contract is being deployed.
    constructor(address subscriptionOrRegistrantToCopy, bool subscribe) {
        // If an inheriting token contract is deployed to a network without the registry deployed, the modifier
        // will not revert, but the contract will need to be registered with the registry once it is deployed in
        // order for the modifier to filter addresses.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (subscribe) {
                OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy);
            } else {
                if (subscriptionOrRegistrantToCopy != address(0)) {
                    OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy);
                } else {
                    OPERATOR_FILTER_REGISTRY.register(address(this));
                }
            }
        }
    }

    /**
     * @dev A helper function to check if an operator is allowed.
     */
    modifier onlyAllowedOperator(address from) virtual {
        // Allow spending tokens from addresses with balance
        // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
        // from an EOA.
        if (from != msg.sender) {
            _checkFilterOperator(msg.sender);
        }
        _;
    }

    /**
     * @dev A helper function to check if an operator approval is allowed.
     */
    modifier onlyAllowedOperatorApproval(address operator) virtual {
        _checkFilterOperator(operator);
        _;
    }

    /**
     * @dev A helper function to check if an operator is allowed.
     */
    function _checkFilterOperator(address operator) internal view virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            // under normal circumstances, this function will revert rather than return false, but inheriting contracts
            // may specify their own OperatorFilterRegistry implementations, which may behave differently
            if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) {
                revert OperatorNotAllowed(operator);
            }
        }
    }
}

File 23 of 24 : Constants.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

address constant CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS = 0x000000000000AAeB6D7670E522A718067333cd4E;
address constant CANONICAL_CORI_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6;

File 24 of 24 : IOperatorFilterRegistry.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

interface IOperatorFilterRegistry {
    /**
     * @notice Returns true if operator is not filtered for a given token, either by address or codeHash. Also returns
     *         true if supplied registrant address is not registered.
     */
    function isOperatorAllowed(address registrant, address operator) external view returns (bool);

    /**
     * @notice Registers an address with the registry. May be called by address itself or by EIP-173 owner.
     */
    function register(address registrant) external;

    /**
     * @notice Registers an address with the registry and "subscribes" to another address's filtered operators and codeHashes.
     */
    function registerAndSubscribe(address registrant, address subscription) external;

    /**
     * @notice Registers an address with the registry and copies the filtered operators and codeHashes from another
     *         address without subscribing.
     */
    function registerAndCopyEntries(address registrant, address registrantToCopy) external;

    /**
     * @notice Unregisters an address with the registry and removes its subscription. May be called by address itself or by EIP-173 owner.
     *         Note that this does not remove any filtered addresses or codeHashes.
     *         Also note that any subscriptions to this registrant will still be active and follow the existing filtered addresses and codehashes.
     */
    function unregister(address addr) external;

    /**
     * @notice Update an operator address for a registered address - when filtered is true, the operator is filtered.
     */
    function updateOperator(address registrant, address operator, bool filtered) external;

    /**
     * @notice Update multiple operators for a registered address - when filtered is true, the operators will be filtered. Reverts on duplicates.
     */
    function updateOperators(address registrant, address[] calldata operators, bool filtered) external;

    /**
     * @notice Update a codeHash for a registered address - when filtered is true, the codeHash is filtered.
     */
    function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;

    /**
     * @notice Update multiple codeHashes for a registered address - when filtered is true, the codeHashes will be filtered. Reverts on duplicates.
     */
    function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;

    /**
     * @notice Subscribe an address to another registrant's filtered operators and codeHashes. Will remove previous
     *         subscription if present.
     *         Note that accounts with subscriptions may go on to subscribe to other accounts - in this case,
     *         subscriptions will not be forwarded. Instead the former subscription's existing entries will still be
     *         used.
     */
    function subscribe(address registrant, address registrantToSubscribe) external;

    /**
     * @notice Unsubscribe an address from its current subscribed registrant, and optionally copy its filtered operators and codeHashes.
     */
    function unsubscribe(address registrant, bool copyExistingEntries) external;

    /**
     * @notice Get the subscription address of a given registrant, if any.
     */
    function subscriptionOf(address addr) external returns (address registrant);

    /**
     * @notice Get the set of addresses subscribed to a given registrant.
     *         Note that order is not guaranteed as updates are made.
     */
    function subscribers(address registrant) external returns (address[] memory);

    /**
     * @notice Get the subscriber at a given index in the set of addresses subscribed to a given registrant.
     *         Note that order is not guaranteed as updates are made.
     */
    function subscriberAt(address registrant, uint256 index) external returns (address);

    /**
     * @notice Copy filtered operators and codeHashes from a different registrantToCopy to addr.
     */
    function copyEntriesOf(address registrant, address registrantToCopy) external;

    /**
     * @notice Returns true if operator is filtered by a given address or its subscription.
     */
    function isOperatorFiltered(address registrant, address operator) external returns (bool);

    /**
     * @notice Returns true if the hash of an address's code is filtered by a given address or its subscription.
     */
    function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);

    /**
     * @notice Returns true if a codeHash is filtered by a given address or its subscription.
     */
    function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);

    /**
     * @notice Returns a list of filtered operators for a given address or its subscription.
     */
    function filteredOperators(address addr) external returns (address[] memory);

    /**
     * @notice Returns the set of filtered codeHashes for a given address or its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredCodeHashes(address addr) external returns (bytes32[] memory);

    /**
     * @notice Returns the filtered operator at the given index of the set of filtered operators for a given address or
     *         its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredOperatorAt(address registrant, uint256 index) external returns (address);

    /**
     * @notice Returns the filtered codeHash at the given index of the list of filtered codeHashes for a given address or
     *         its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);

    /**
     * @notice Returns true if an address has registered
     */
    function isRegistered(address addr) external returns (bool);

    /**
     * @dev Convenience method to compute the code hash of an arbitrary contract
     */
    function codeHashOf(address addr) external returns (bytes32);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IUltraSoundDescriptor","name":"_descriptor","type":"address"},{"internalType":"contract IERC721Burn","name":"_proofOfWork","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"CannotRestore","type":"error"},{"inputs":[],"name":"ContractNotOperator","type":"error"},{"inputs":[{"internalType":"uint16","name":"level","type":"uint16"},{"internalType":"uint256","name":"maxLevel","type":"uint256"}],"name":"ExceedsMaxLevel","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenOneLevel","type":"uint256"},{"internalType":"uint256","name":"tokenTwoLevel","type":"uint256"}],"name":"LevelsMustMatch","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"MustBeTokenOwner","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"MustBeUltraSound","type":"error"},{"inputs":[],"name":"OnReceivedRequestFailure","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"TooMany","type":"error"},{"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":false,"internalType":"address","name":"orignal","type":"address"},{"indexed":false,"internalType":"address","name":"replaced","type":"address"}],"name":"DescriptorUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokenIdBurned","type":"uint256"}],"name":"Merged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"MetadataUpdate","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"orignal","type":"address"},{"indexed":false,"internalType":"address","name":"replaced","type":"address"}],"name":"ProofOfWorkUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Redeemed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256[]","name":"tokenId","type":"uint256[]"}],"name":"RedeemedMultiple","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"by","type":"address"}],"name":"Restored","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"swappedTokenId","type":"uint256"}],"name":"Swapped","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"orignal","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"replaced","type":"uint256"}],"name":"UltraSoundBaseFeeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"descriptor","outputs":[{"internalType":"contract IUltraSoundDescriptor","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"edition","outputs":[{"internalType":"bool","name":"ultraSound","type":"bool"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint32","name":"seed","type":"uint32"},{"internalType":"uint8","name":"level","type":"uint8"},{"internalType":"uint8","name":"palette","type":"uint8"},{"internalType":"uint32","name":"blockNumber","type":"uint32"},{"internalType":"uint64","name":"baseFee","type":"uint64"},{"internalType":"uint64","name":"blockTime","type":"uint64"},{"internalType":"uint16","name":"mergeCount","type":"uint16"},{"internalType":"uint16","name":"ultraEdition","type":"uint16"}],"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":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isUltraSound","outputs":[{"internalType":"bool","name":"ultraSound","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"levelOf","outputs":[{"internalType":"uint256","name":"level","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"levelsOf","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"token1","type":"uint256"},{"internalType":"uint256","name":"token2","type":"uint256"}],"name":"merge","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"mergeCountOf","outputs":[{"internalType":"uint256","name":"mergeCount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"mintBulk","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","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":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proofOfWork","outputs":[{"internalType":"contract IERC721Burn","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"toRestore","type":"uint256"},{"internalType":"uint256","name":"toUse","type":"uint256"}],"name":"restore","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"restored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","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":"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":"contract IUltraSoundDescriptor","name":"_descriptor","type":"address"}],"name":"setDescriptor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC721Burn","name":"_proofOfWork","type":"address"}],"name":"setProofOfWork","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint24","name":"value","type":"uint24"}],"name":"setRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_baseFee","type":"uint256"}],"name":"setUltraSoundBaseFee","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":[{"internalType":"uint256","name":"powToBurn","type":"uint256"},{"internalType":"uint256","name":"tokenToSwap","type":"uint256"}],"name":"swapPalette","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleDegenMode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint8","name":"size","type":"uint8"}],"name":"tokenSVG","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"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"},{"inputs":[],"name":"ultraSoundBaseFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405261067c600a55600b805463ffffffff191663010600001790553480156200002a57600080fd5b5060405162004319380380620043198339810160408190526200004d916200038e565b733cc6cdda760b79bafa08df41ecfa224f810dceb660016040518060400160405280601481526020017f556c74726120536f756e642045646974696f6e7300000000000000000000000081525060405180604001604052806002815260200161674f60f11b8152508160009081620000c6919062000472565b506001620000d5828262000472565b5050506daaeb6d7670e522a718067333cd4e3b156200021d5780156200016b57604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200014c57600080fd5b505af115801562000161573d6000803e3d6000fd5b505050506200021d565b6001600160a01b03821615620001bc5760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af29039060440162000131565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b1580156200020357600080fd5b505af115801562000218573d6000803e3d6000fd5b505050505b50506007805460ff1916905562000234336200027a565b600980546001600160a01b038085166001600160a01b031992831617909255600880549284169290911691909117905562000272336101f4620002d4565b50506200053e565b600780546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6127108111156200032b5760405162461bcd60e51b815260206004820152601a60248201527f45524332393831526f79616c746965733a20546f6f2068696768000000000000604482015260640160405180910390fd5b604080518082019091526001600160a01b0390921680835262ffffff909116602090920182905260068054600160a01b9093026001600160b81b0319909316909117919091179055565b6001600160a01b03811681146200038b57600080fd5b50565b60008060408385031215620003a257600080fd5b8251620003af8162000375565b6020840151909250620003c28162000375565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620003f857607f821691505b6020821081036200041957634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200046d57600081815260208120601f850160051c81016020861015620004485750805b601f850160051c820191505b81811015620004695782815560010162000454565b5050505b505050565b81516001600160401b038111156200048e576200048e620003cd565b620004a6816200049f8454620003e3565b846200041f565b602080601f831160018114620004de5760008415620004c55750858301515b600019600386901b1c1916600185901b17855562000469565b600085815260208120601f198616915b828110156200050f57888601518255948401946001909101908401620004ee565b50858210156200052e5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b613dcb806200054e6000396000f3fe608060405234801561001057600080fd5b50600436106102e95760003560e01c80636352211e11610191578063b53f448a116100e3578063cabfa47a11610097578063e985e9c511610071578063e985e9c51461075b578063efa1e66714610797578063f2fde38b1461079f57600080fd5b8063cabfa47a14610715578063d1c2babb14610735578063e629676e1461074857600080fd5b8063c62175c2116100c8578063c62175c2146106dc578063c6e6c871146106ef578063c87b56dd1461070257600080fd5b8063b53f448a146106b6578063b88d4fde146106c957600080fd5b80638da5cb5b11610145578063a22cb4651161011f578063a22cb46514610687578063adda40bd1461069a578063ae4f1747146106a357600080fd5b80638da5cb5b1461065657806395d89b411461066c578063a0712d681461067457600080fd5b806370a082311161017657806370a0823114610633578063715018a6146106465780638456cb591461064e57600080fd5b80636352211e146105f35780636d5e30321461060657600080fd5b80632a55205a1161024a57806342842e0e116101fe57806354dcb7d3116101d857806354dcb7d3146104cb5780635c975abb146104de5780636265c314146104e957600080fd5b806342842e0e1461048257806342966c68146104955780634bfd11c1146104a857600080fd5b806330df12331161022f57806330df12331461043a5780633f4ba83a1461046557806341f434341461046d57600080fd5b80632a55205a146103f5578063303e74df1461042757600080fd5b80630b44d697116102a1578063150b7a0211610286578063150b7a02146103a357806322f45317146103cf57806323b872dd146103e257600080fd5b80630b44d6971461037e57806310571e9b1461039057600080fd5b806306fdde03116102d257806306fdde031461032b578063081812fc14610340578063095ea7b31461036b57600080fd5b806301b9a397146102ee57806301ffc9a714610303575b600080fd5b6103016102fc3660046135a8565b6107b2565b005b6103166103113660046135db565b610823565b60405190151581526020015b60405180910390f35b6103336108ba565b6040516103229190613648565b61035361034e36600461365b565b61094c565b6040516001600160a01b039091168152602001610322565b610301610379366004613674565b610973565b600c545b604051908152602001610322565b61030161039e3660046136a0565b61098c565b6103b66103b1366004613715565b610ba7565b6040516001600160e01b03199091168152602001610322565b6103016103dd36600461365b565b610ec3565b6103016103f03660046137b4565b610f0c565b6104086104033660046137f5565b610f37565b604080516001600160a01b039093168352602083019190915201610322565b600954610353906001600160a01b031681565b61038261044836600461365b565b6000908152600d6020526040902054600160e01b900461ffff1690565b610301610f8c565b6103536daaeb6d7670e522a718067333cd4e81565b6103016104903660046137b4565b610f9e565b6103016104a336600461365b565b610fc3565b6103166104b636600461365b565b6000908152600d602052604090205460ff1690565b6103016104d93660046135a8565b61103b565b60075460ff16610316565b6105856104f736600461365b565b6000908152600d602052604090205460ff80821692610100830482169263ffffffff620100008204811693660100000000000083048116936701000000000000008404909116926801000000000000000081049092169167ffffffffffffffff600160601b8204811692600160a01b83049091169161ffff600160e01b8204811692600160f01b9092041690565b604080519a15158b5298151560208b015263ffffffff978816988a019890985260ff95861660608a0152939094166080880152931660a086015267ffffffffffffffff92831660c0860152911660e084015261ffff9081166101008401521661012082015261014001610322565b61035361060136600461365b565b6110ac565b61038261061436600461365b565b6000908152600d60205260409020546601000000000000900460ff1690565b6103826106413660046135a8565b611111565b6103016111ab565b6103016111bd565b60075461010090046001600160a01b0316610353565b6103336111cd565b61030161068236600461365b565b6111dc565b610301610695366004613825565b61135d565b610382600a5481565b6103016106b13660046137f5565b611371565b6103336106c436600461385e565b611493565b6103016106d73660046138f8565b611641565b600854610353906001600160a01b031681565b6103016106fd3660046139a7565b61166e565b61033361071036600461365b565b611689565b6107286107233660046136a0565b611837565b60405161032291906139dd565b6103016107433660046137f5565b611901565b6103016107563660046137f5565b611a77565b610316610769366004613a21565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b610301611ccf565b6103016107ad3660046135a8565b611cf8565b6107ba611d85565b600954604080516001600160a01b03928316815291831660208301527f6a470e5dd4b354979dc3b984575294975f737cb9ee3ae3cca949e998dbc7cee9910160405180910390a1600980546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160e01b03198216632483248360e11b148061085457506001600160e01b031982166380ac58cd60e01b145b8061086f57506001600160e01b03198216635b5e139f60e01b145b8061088a57506001600160e01b0319821663152a902d60e11b145b806108a557506001600160e01b0319821663152a902d60e11b145b806108b457506108b482611de5565b92915050565b6060600080546108c990613a4f565b80601f01602080910402602001604051908101604052809291908181526020018280546108f590613a4f565b80156109425780601f1061091757610100808354040283529160200191610942565b820191906000526020600020905b81548152906001019060200180831161092557829003601f168201915b5050505050905090565b600061095782611e0a565b506000908152600460205260409020546001600160a01b031690565b8161097d81611e6e565b6109878383611f27565b505050565b610994612037565b60148111156109b657604051636b2d630f60e11b815260040160405180910390fd5b60085460405163e985e9c560e01b81523360048201523060248201526001600160a01b039091169063e985e9c590604401602060405180830381865afa158015610a04573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a289190613a89565b610a45576040516368618fa560e11b815260040160405180910390fd5b60005b81811015610b695760085433906001600160a01b0316636352211e858585818110610a7557610a75613aa6565b905060200201356040518263ffffffff1660e01b8152600401610a9a91815260200190565b602060405180830381865afa158015610ab7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610adb9190613abc565b6001600160a01b031614610b3f576008546001600160a01b0316838383818110610b0757610b07613aa6565b604051632489e9fd60e21b81526001600160a01b03909416600485015260200291909101356024830152506044015b60405180910390fd5b610b6133848484818110610b5557610b55613aa6565b9050602002013561208a565b600101610a48565b507fa620d8783ad596207bb1f0d82c187f2e27bba478f9aeb14401ad577f6a3d887b8282604051610b9b929190613ad9565b60405180910390a15050565b6000610bb1612037565b600854339060009081906001600160a01b03168314801590610bdc57506001600160a01b0383163014155b15610bfa576040516323a5eda560e11b815260040160405180910390fd5b6008546001600160a01b038481169116148015610c15575084155b15610c235760009150610c5b565b6040859003610c4257610c38858701876137f5565b9092509050610c5b565b6040516323a5eda560e11b815260040160405180910390fd5b81600003610c7257610c6d888861208a565b610eae565b81600103610d9557876001600160a01b0316610c8d826110ac565b6001600160a01b031614610cbd57604051632489e9fd60e21b815230600482015260248101829052604401610b36565b600854604051630852cd8d60e31b8152600481018990526001600160a01b03909116906342966c6890602401600060405180830381600087803b158015610d0357600080fd5b505af1158015610d17573d6000803e3d6000fd5b50505050610d2481612103565b6040518181527ff8e1a15aba9398e019f0b49df1a4fde98ee17ae345cb5f6b5e2c27f5033e8ce79060200160405180910390a160408051828152602081018990527f57cbf6e95161d2e3d8956cef5d6a37ceac1d449f2f97d746fff873c9a1a8fb3d910160405180910390a1610eae565b81600203610eae57876001600160a01b0316610db0826110ac565b6001600160a01b031614610de057604051632489e9fd60e21b815230600482015260248101829052604401610b36565b600080610ded89846121ab565b91509150610dfa82612688565b808314610e0c57610e0c308b8361272b565b6040518181527ff8e1a15aba9398e019f0b49df1a4fde98ee17ae345cb5f6b5e2c27f5033e8ce79060200160405180910390a16040518281527ff8e1a15aba9398e019f0b49df1a4fde98ee17ae345cb5f6b5e2c27f5033e8ce79060200160405180910390a160408051828152602081018490527f57cbf6e95161d2e3d8956cef5d6a37ceac1d449f2f97d746fff873c9a1a8fb3d910160405180910390a150505b50630a85bd0160e11b98975050505050505050565b610ecb611d85565b600a5460408051918252602082018390527fd154c33557a1f3851e8f2f68a7c9ee89ca473aa056bcf7631b0e0e4c3d73c563910160405180910390a1600a55565b826001600160a01b0381163314610f2657610f2633611e6e565b610f31848484612918565b50505050565b604080518082019091526006546001600160a01b038116808352600160a01b90910462ffffff1660208301819052909160009161271090610f789086613b41565b610f829190613b6e565b9150509250929050565b610f94611d85565b610f9c61298f565b565b826001600160a01b0381163314610fb857610fb833611e6e565b610f318484846129e1565b610fcd33826129fc565b61102f5760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201526c1c881bdc88185c1c1c9bdd9959609a1b6064820152608401610b36565b61103881612688565b50565b611043611d85565b600854604080516001600160a01b03928316815291831660208301527face61a723355e408abdccab7871b1317a5d6722751a5991e96844cd10ff90fba910160405180910390a1600880546001600160a01b0319166001600160a01b0392909216919091179055565b6000818152600260205260408120546001600160a01b0316806108b45760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610b36565b60006001600160a01b03821661118f5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e657200000000000000000000000000000000000000000000006064820152608401610b36565b506001600160a01b031660009081526003602052604090205490565b6111b3611d85565b610f9c6000612a7a565b6111c5611d85565b610f9c612aeb565b6060600180546108c990613a4f565b6111e4612037565b60085460405163e985e9c560e01b81523360048201523060248201526001600160a01b039091169063e985e9c590604401602060405180830381865afa158015611232573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112569190613a89565b611273576040516368618fa560e11b815260040160405180910390fd5b6008546040516331a9108f60e11b81526004810183905233916001600160a01b031690636352211e90602401602060405180830381865afa1580156112bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112e09190613abc565b6001600160a01b03161461131d57600854604051632489e9fd60e21b81526001600160a01b03909116600482015260248101829052604401610b36565b611327338261208a565b6040518181527f82498456531a1065f689ba348ce20bda781238c424cf36748dd40bc282831e039060200160405180910390a150565b8161136781611e6e565b6109878383612b28565b6000818152600e60205260409020805460010190556113a7826000908152600260205260409020546001600160a01b0316151590565b806113c35750336113b7826110ac565b6001600160a01b031614155b806113ea57506000818152600d60205260409020546601000000000000900460ff16600714155b8061140e5750600b546000828152600e60205260409020546201000090910460ff16105b8061142d57506000828152600d6020526040902054610100900460ff16155b1561144b5760405163a233cae360e01b815260040160405180910390fd5b600c8054600101905561145e3383612b33565b604080518381523360208201527f2d461c7b1ee88c74cb9c15b06dc976ae00bb3c299adffb6d4ff99202854bc4e79101610b9b565b6000828152600d60209081526040808320815161014081018352905460ff80821615158352610100808304821615159584019590955263ffffffff6201000083048116948401949094526601000000000000820481166060848101919091526701000000000000008304909116608084015268010000000000000000820490931660a0830181905267ffffffffffffffff600160601b8304811660c0850152600160a01b83041660e084015261ffff600160e01b8304811695840195909552600160f01b9091049093166101208201529092909190036115b55760405162461bcd60e51b815260206004820152601160248201527f4e6f6e6578697374656e7420746f6b656e0000000000000000000000000000006044820152606401610b36565b6009546000858152600d602052604090819020905163bde6e1ad60e01b81526001600160a01b039092169163bde6e1ad916115f4918790600401613c24565b600060405180830381865afa158015611611573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526116399190810190613c44565b949350505050565b836001600160a01b038116331461165b5761165b33611e6e565b61166785858585612ccc565b5050505050565b611676611d85565b611685828262ffffff16612d44565b5050565b6000818152600d60209081526040808320815161014081018352905460ff80821615158352610100808304821615159584019590955263ffffffff6201000083048116948401949094526601000000000000820481166060848101919091526701000000000000008304909116608084015268010000000000000000820490931660a0830181905267ffffffffffffffff600160601b8304811660c0850152600160a01b83041660e084015261ffff600160e01b8304811695840195909552600160f01b9091049093166101208201529092909190036117ab5760405162461bcd60e51b815260206004820152601160248201527f4e6f6e6578697374656e7420746f6b656e0000000000000000000000000000006044820152606401610b36565b6009546000848152600d6020526040908190209051635b5a429960e11b81526001600160a01b039092169163b6b48532916117eb91879190600401613cbb565b600060405180830381865afa158015611808573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526118309190810190613c44565b9392505050565b606060008267ffffffffffffffff81111561185457611854613889565b60405190808252806020026020018201604052801561187d578160200160208202803683370190505b50905060005b838110156118f957600d60008686848181106118a1576118a1613aa6565b90506020020135815260200190815260200160002060000160069054906101000a900460ff1660ff168282815181106118dc576118dc613aa6565b6020908102919091010152806118f181613cd0565b915050611883565b509392505050565b611909612037565b33611913836110ac565b6001600160a01b03161461194357604051632489e9fd60e21b815233600482015260248101839052604401610b36565b3361194d826110ac565b6001600160a01b03161461197d57604051632489e9fd60e21b815233600482015260248101829052604401610b36565b33600090815260056020908152604080832030845290915290205460ff166119b8576040516368618fa560e11b815260040160405180910390fd5b6000806119c584846121ab565b915091506119d282612688565b6040518181527ff8e1a15aba9398e019f0b49df1a4fde98ee17ae345cb5f6b5e2c27f5033e8ce79060200160405180910390a16040518281527ff8e1a15aba9398e019f0b49df1a4fde98ee17ae345cb5f6b5e2c27f5033e8ce79060200160405180910390a160408051828152602081018490527f57cbf6e95161d2e3d8956cef5d6a37ceac1d449f2f97d746fff873c9a1a8fb3d910160405180910390a150505050565b611a7f612037565b6008546040516331a9108f60e11b8152600481018490526000916001600160a01b031690636352211e90602401602060405180830381865afa158015611ac9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611aed9190613abc565b905033611af9836110ac565b6001600160a01b031614611b2957604051632489e9fd60e21b815230600482015260248101839052604401610b36565b6001600160a01b0381163314611b6857600854604051632489e9fd60e21b81526001600160a01b03909116600482015260248101849052604401610b36565b60085460405163e985e9c560e01b81523360048201523060248201526001600160a01b039091169063e985e9c590604401602060405180830381865afa158015611bb6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bda9190613a89565b611bf7576040516368618fa560e11b815260040160405180910390fd5b600854604051630852cd8d60e31b8152600481018590526001600160a01b03909116906342966c6890602401600060405180830381600087803b158015611c3d57600080fd5b505af1158015611c51573d6000803e3d6000fd5b50505050611c5e82612103565b6040518281527ff8e1a15aba9398e019f0b49df1a4fde98ee17ae345cb5f6b5e2c27f5033e8ce79060200160405180910390a160408051838152602081018590527f57cbf6e95161d2e3d8956cef5d6a37ceac1d449f2f97d746fff873c9a1a8fb3d910160405180910390a1505050565b611cd7611d85565b600b805463ff00000019811663010000009182900460ff1615909102179055565b611d00611d85565b6001600160a01b038116611d7c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b36565b61103881612a7a565b6007546001600160a01b03610100909104163314610f9c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b36565b60006001600160e01b0319821663152a902d60e11b14806108b457506108b482612df8565b6000818152600260205260409020546001600160a01b03166110385760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610b36565b6daaeb6d7670e522a718067333cd4e3b1561103857604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611edb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611eff9190613a89565b61103857604051633b79c77360e21b81526001600160a01b0382166004820152602401610b36565b6000611f32826110ac565b9050806001600160a01b0316836001600160a01b031603611f9f5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610b36565b336001600160a01b0382161480611fbb5750611fbb8133610769565b61202d5760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152608401610b36565b6109878383612e48565b60075460ff1615610f9c5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610b36565b612092612037565b600854604051630852cd8d60e31b8152600481018390526001600160a01b03909116906342966c6890602401600060405180830381600087803b1580156120d857600080fd5b505af11580156120ec573d6000803e3d6000fd5b505050506120f981612eb6565b6116858282612b33565b6000818152600d602052604081209061211b836130e5565b82547fffff0000ffffffffffffffffffffffffffffffffffffffffffff00000000ffff8116600160e01b9182900461ffff9081166001011690910265ffffffff00001916176201000063ffffffff8316908102919091178085559192506121849160ff1661313f565b825460ff919091166701000000000000000267ff0000000000000019909116179091555050565b6000828152600d60205260408082205483835290822054848352829160ff6601000000000000808304821693048116918491829182918291829182916101009004168061220b575060008c8152600d6020526040902054610100900460ff165b156122295760405163a233cae360e01b815260040160405180910390fd5b600b546301000000900460ff161515600114801561224d57508660ff168860ff1614155b156122785760405163e57a21bd60e01b815260ff808a16600483015288166024820152604401610b36565b600b546301000000900460ff16156122ae578660ff168860ff1611156122a3578760010195506122b7565b8660010195506122b7565b86880160010195505b60078660ff1611156122e857604051639646048b60e01b815260ff8716600482015260076024820152604401610b36565b60008b8152600d6020526040808220548e83529120546001600160e01b80830461ffff9081169185041601019167ffffffffffffffff600160601b918290048116919092049091161115612341578c99508b9a50612348565b8b99508c9a505b60008a8152600d602052604090205448600160601b90910467ffffffffffffffff1611156123c05760008a8152600d6020526040902054600a54600160601b820467ffffffffffffffff9081169850600160a01b83041696506801000000000000000090910463ffffffff16945086101592506123dc565b489550429450439350600a548667ffffffffffffffff16101592505b8660ff1660071480156123ed575082155b1561240e5760405163380532fb60e11b8152600481018b9052602401610b36565b8660ff1660070361243257600b805461ffff8082166001011661ffff199091161790555b61243b8a6130e5565b60008c8152600d60209081526040808320805461ff00191661010017905580516101408101825287151581529182019290925263ffffffff831691810182905260ff8a1660608201529193506080820190612496908661313f565b60ff1681526020018563ffffffff1681526020018767ffffffffffffffff1681526020018667ffffffffffffffff1681526020018261ffff168152602001600b60009054906101000a900461ffff1661ffff16815250600d60008c815260200190815260200160002060008201518160000160006101000a81548160ff02191690831515021790555060208201518160000160016101000a81548160ff02191690831515021790555060408201518160000160026101000a81548163ffffffff021916908363ffffffff16021790555060608201518160000160066101000a81548160ff021916908360ff16021790555060808201518160000160076101000a81548160ff021916908360ff16021790555060a08201518160000160086101000a81548163ffffffff021916908363ffffffff16021790555060c082015181600001600c6101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060e08201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555061010082015181600001601c6101000a81548161ffff021916908361ffff16021790555061012082015181600001601e6101000a81548161ffff021916908361ffff1602179055509050505050505050505050509250929050565b6000612693826110ac565b90506126a38160008460016131ff565b6126ac826110ac565b600083815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0385168085526003845282852080546000190190558785526002909352818420805490911690555192935084927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b826001600160a01b031661273e826110ac565b6001600160a01b0316146127a25760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610b36565b6001600160a01b0382166128045760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610b36565b61281183838360016131ff565b826001600160a01b0316612824826110ac565b6001600160a01b0316146128885760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610b36565b600081815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b61292233826129fc565b6129845760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201526c1c881bdc88185c1c1c9bdd9959609a1b6064820152608401610b36565b61098783838361272b565b61299761320b565b6007805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b61098783838360405180602001604052806000815250611641565b600080612a08836110ac565b9050806001600160a01b0316846001600160a01b03161480612a4f57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806116395750836001600160a01b0316612a688461094c565b6001600160a01b031614949350505050565b600780546001600160a01b038381166101008181027fffffffffffffffffffffff0000000000000000000000000000000000000000ff85161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b612af3612037565b6007805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586129c43390565b61168533838361325d565b6001600160a01b038216612b895760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b36565b6000818152600260205260409020546001600160a01b031615612bee5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b36565b612bfc6000838360016131ff565b6000818152600260205260409020546001600160a01b031615612c615760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b36565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b612cd633836129fc565b612d385760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201526c1c881bdc88185c1c1c9bdd9959609a1b6064820152608401610b36565b610f318484848461332b565b612710811115612d965760405162461bcd60e51b815260206004820152601a60248201527f45524332393831526f79616c746965733a20546f6f20686967680000000000006044820152606401610b36565b604080518082019091526001600160a01b0390921680835262ffffff909116602090920182905260068054600160a01b9093027fffffffffffffffffff0000000000000000000000000000000000000000000000909316909117919091179055565b60006001600160e01b031982166380ac58cd60e01b1480612e2957506001600160e01b03198216635b5e139f60e01b145b806108b457506301ffc9a760e01b6001600160e01b03198316146108b4565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612e7d826110ac565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600a544810156000612ec7836130e5565b905060405180610140016040528083151581526020016000151581526020018263ffffffff168152602001600060ff168152602001612f0c8363ffffffff168561313f565b60ff1681526020014363ffffffff1681526020014867ffffffffffffffff1681526020014267ffffffffffffffff168152602001600061ffff168152602001600061ffff16815250600d600085815260200190815260200160002060008201518160000160006101000a81548160ff02191690831515021790555060208201518160000160016101000a81548160ff02191690831515021790555060408201518160000160026101000a81548163ffffffff021916908363ffffffff16021790555060608201518160000160066101000a81548160ff021916908360ff16021790555060808201518160000160076101000a81548160ff021916908360ff16021790555060a08201518160000160086101000a81548163ffffffff021916908363ffffffff16021790555060c082015181600001600c6101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060e08201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555061010082015181600001601c6101000a81548161ffff021916908361ffff16021790555061012082015181600001601e6101000a81548161ffff021916908361ffff160217905550905050505050565b60408051602081018390526bffffffffffffffffffffffff193360601b169181019190915248605482015260009063ffffffff906074016040516020818303038152906040528051906020012060001c6108b49190613ce9565b600080600960009054906101000a90046001600160a01b03166001600160a01b031663212fca7a6040518163ffffffff1660e01b8152600401602060405180830381865afa158015613195573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131b99190613cfd565b9050826131ce576004840660010191506131f8565b8084816131dd576131dd613b58565b06915060058260ff16106131f15781611639565b8160050191505b5092915050565b610f31848484846133b4565b60075460ff16610f9c5760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610b36565b816001600160a01b0316836001600160a01b0316036132be5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b36565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61333684848461272b565b6133428484848461343c565b610f315760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610b36565b6001811115610f31576001600160a01b038416156133fa576001600160a01b038416600090815260036020526040812080548392906133f4908490613d16565b90915550505b6001600160a01b03831615610f31576001600160a01b03831660009081526003602052604081208054839290613431908490613d29565b909155505050505050565b60006001600160a01b0384163b1561358857604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613480903390899088908890600401613d3c565b6020604051808303816000875af19250505080156134bb575060408051601f3d908101601f191682019092526134b891810190613d78565b60015b61356e573d8080156134e9576040519150601f19603f3d011682016040523d82523d6000602084013e6134ee565b606091505b5080516000036135665760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610b36565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611639565b506001949350505050565b6001600160a01b038116811461103857600080fd5b6000602082840312156135ba57600080fd5b813561183081613593565b6001600160e01b03198116811461103857600080fd5b6000602082840312156135ed57600080fd5b8135611830816135c5565b60005b838110156136135781810151838201526020016135fb565b50506000910152565b600081518084526136348160208601602086016135f8565b601f01601f19169290920160200192915050565b602081526000611830602083018461361c565b60006020828403121561366d57600080fd5b5035919050565b6000806040838503121561368757600080fd5b823561369281613593565b946020939093013593505050565b600080602083850312156136b357600080fd5b823567ffffffffffffffff808211156136cb57600080fd5b818501915085601f8301126136df57600080fd5b8135818111156136ee57600080fd5b8660208260051b850101111561370357600080fd5b60209290920196919550909350505050565b60008060008060006080868803121561372d57600080fd5b853561373881613593565b9450602086013561374881613593565b935060408601359250606086013567ffffffffffffffff8082111561376c57600080fd5b818801915088601f83011261378057600080fd5b81358181111561378f57600080fd5b8960208285010111156137a157600080fd5b9699959850939650602001949392505050565b6000806000606084860312156137c957600080fd5b83356137d481613593565b925060208401356137e481613593565b929592945050506040919091013590565b6000806040838503121561380857600080fd5b50508035926020909101359150565b801515811461103857600080fd5b6000806040838503121561383857600080fd5b823561384381613593565b9150602083013561385381613817565b809150509250929050565b6000806040838503121561387157600080fd5b82359150602083013560ff8116811461385357600080fd5b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156138c8576138c8613889565b604052919050565b600067ffffffffffffffff8211156138ea576138ea613889565b50601f01601f191660200190565b6000806000806080858703121561390e57600080fd5b843561391981613593565b9350602085013561392981613593565b925060408501359150606085013567ffffffffffffffff81111561394c57600080fd5b8501601f8101871361395d57600080fd5b803561397061396b826138d0565b61389f565b81815288602083850101111561398557600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b600080604083850312156139ba57600080fd5b82356139c581613593565b9150602083013562ffffff8116811461385357600080fd5b6020808252825182820181905260009190848201906040850190845b81811015613a15578351835292840192918401916001016139f9565b50909695505050505050565b60008060408385031215613a3457600080fd5b8235613a3f81613593565b9150602083013561385381613593565b600181811c90821680613a6357607f821691505b602082108103613a8357634e487b7160e01b600052602260045260246000fd5b50919050565b600060208284031215613a9b57600080fd5b815161183081613817565b634e487b7160e01b600052603260045260246000fd5b600060208284031215613ace57600080fd5b815161183081613593565b6020815281602082015260007f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115613b1257600080fd5b8260051b80856040850137919091016040019392505050565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176108b4576108b4613b2b565b634e487b7160e01b600052601260045260246000fd5b600082613b7d57613b7d613b58565b500490565b805460ff811615158352613ba06020840160ff8360081c1615159052565b63ffffffff601082901c81166040850152603082901c60ff166060850152603882901c60ff166080850152613be260a08501828460401c1663ffffffff169052565b5067ffffffffffffffff606082901c811660c085015260a082901c811660e08501525060e081901c61ffff1661010084015260f081901c610120840152505050565b6101608101613c338285613b82565b60ff83166101408301529392505050565b600060208284031215613c5657600080fd5b815167ffffffffffffffff811115613c6d57600080fd5b8201601f81018413613c7e57600080fd5b8051613c8c61396b826138d0565b818152856020838501011115613ca157600080fd5b613cb28260208301602086016135f8565b95945050505050565b82815261016081016118306020830184613b82565b600060018201613ce257613ce2613b2b565b5060010190565b600082613cf857613cf8613b58565b500690565b600060208284031215613d0f57600080fd5b5051919050565b818103818111156108b4576108b4613b2b565b808201808211156108b4576108b4613b2b565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613d6e608083018461361c565b9695505050505050565b600060208284031215613d8a57600080fd5b8151611830816135c556fea26469706673582212206abcf1044ec3393735a6d6134cbf563f7142e472766fbbf5263f24008697cec864736f6c63430008110033000000000000000000000000e670a46c374b40bddbb3e014f6037adff8a7e738000000000000000000000000fbf170984ccb1e980acb53023d7502d15f6e14ff

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102e95760003560e01c80636352211e11610191578063b53f448a116100e3578063cabfa47a11610097578063e985e9c511610071578063e985e9c51461075b578063efa1e66714610797578063f2fde38b1461079f57600080fd5b8063cabfa47a14610715578063d1c2babb14610735578063e629676e1461074857600080fd5b8063c62175c2116100c8578063c62175c2146106dc578063c6e6c871146106ef578063c87b56dd1461070257600080fd5b8063b53f448a146106b6578063b88d4fde146106c957600080fd5b80638da5cb5b11610145578063a22cb4651161011f578063a22cb46514610687578063adda40bd1461069a578063ae4f1747146106a357600080fd5b80638da5cb5b1461065657806395d89b411461066c578063a0712d681461067457600080fd5b806370a082311161017657806370a0823114610633578063715018a6146106465780638456cb591461064e57600080fd5b80636352211e146105f35780636d5e30321461060657600080fd5b80632a55205a1161024a57806342842e0e116101fe57806354dcb7d3116101d857806354dcb7d3146104cb5780635c975abb146104de5780636265c314146104e957600080fd5b806342842e0e1461048257806342966c68146104955780634bfd11c1146104a857600080fd5b806330df12331161022f57806330df12331461043a5780633f4ba83a1461046557806341f434341461046d57600080fd5b80632a55205a146103f5578063303e74df1461042757600080fd5b80630b44d697116102a1578063150b7a0211610286578063150b7a02146103a357806322f45317146103cf57806323b872dd146103e257600080fd5b80630b44d6971461037e57806310571e9b1461039057600080fd5b806306fdde03116102d257806306fdde031461032b578063081812fc14610340578063095ea7b31461036b57600080fd5b806301b9a397146102ee57806301ffc9a714610303575b600080fd5b6103016102fc3660046135a8565b6107b2565b005b6103166103113660046135db565b610823565b60405190151581526020015b60405180910390f35b6103336108ba565b6040516103229190613648565b61035361034e36600461365b565b61094c565b6040516001600160a01b039091168152602001610322565b610301610379366004613674565b610973565b600c545b604051908152602001610322565b61030161039e3660046136a0565b61098c565b6103b66103b1366004613715565b610ba7565b6040516001600160e01b03199091168152602001610322565b6103016103dd36600461365b565b610ec3565b6103016103f03660046137b4565b610f0c565b6104086104033660046137f5565b610f37565b604080516001600160a01b039093168352602083019190915201610322565b600954610353906001600160a01b031681565b61038261044836600461365b565b6000908152600d6020526040902054600160e01b900461ffff1690565b610301610f8c565b6103536daaeb6d7670e522a718067333cd4e81565b6103016104903660046137b4565b610f9e565b6103016104a336600461365b565b610fc3565b6103166104b636600461365b565b6000908152600d602052604090205460ff1690565b6103016104d93660046135a8565b61103b565b60075460ff16610316565b6105856104f736600461365b565b6000908152600d602052604090205460ff80821692610100830482169263ffffffff620100008204811693660100000000000083048116936701000000000000008404909116926801000000000000000081049092169167ffffffffffffffff600160601b8204811692600160a01b83049091169161ffff600160e01b8204811692600160f01b9092041690565b604080519a15158b5298151560208b015263ffffffff978816988a019890985260ff95861660608a0152939094166080880152931660a086015267ffffffffffffffff92831660c0860152911660e084015261ffff9081166101008401521661012082015261014001610322565b61035361060136600461365b565b6110ac565b61038261061436600461365b565b6000908152600d60205260409020546601000000000000900460ff1690565b6103826106413660046135a8565b611111565b6103016111ab565b6103016111bd565b60075461010090046001600160a01b0316610353565b6103336111cd565b61030161068236600461365b565b6111dc565b610301610695366004613825565b61135d565b610382600a5481565b6103016106b13660046137f5565b611371565b6103336106c436600461385e565b611493565b6103016106d73660046138f8565b611641565b600854610353906001600160a01b031681565b6103016106fd3660046139a7565b61166e565b61033361071036600461365b565b611689565b6107286107233660046136a0565b611837565b60405161032291906139dd565b6103016107433660046137f5565b611901565b6103016107563660046137f5565b611a77565b610316610769366004613a21565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b610301611ccf565b6103016107ad3660046135a8565b611cf8565b6107ba611d85565b600954604080516001600160a01b03928316815291831660208301527f6a470e5dd4b354979dc3b984575294975f737cb9ee3ae3cca949e998dbc7cee9910160405180910390a1600980546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160e01b03198216632483248360e11b148061085457506001600160e01b031982166380ac58cd60e01b145b8061086f57506001600160e01b03198216635b5e139f60e01b145b8061088a57506001600160e01b0319821663152a902d60e11b145b806108a557506001600160e01b0319821663152a902d60e11b145b806108b457506108b482611de5565b92915050565b6060600080546108c990613a4f565b80601f01602080910402602001604051908101604052809291908181526020018280546108f590613a4f565b80156109425780601f1061091757610100808354040283529160200191610942565b820191906000526020600020905b81548152906001019060200180831161092557829003601f168201915b5050505050905090565b600061095782611e0a565b506000908152600460205260409020546001600160a01b031690565b8161097d81611e6e565b6109878383611f27565b505050565b610994612037565b60148111156109b657604051636b2d630f60e11b815260040160405180910390fd5b60085460405163e985e9c560e01b81523360048201523060248201526001600160a01b039091169063e985e9c590604401602060405180830381865afa158015610a04573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a289190613a89565b610a45576040516368618fa560e11b815260040160405180910390fd5b60005b81811015610b695760085433906001600160a01b0316636352211e858585818110610a7557610a75613aa6565b905060200201356040518263ffffffff1660e01b8152600401610a9a91815260200190565b602060405180830381865afa158015610ab7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610adb9190613abc565b6001600160a01b031614610b3f576008546001600160a01b0316838383818110610b0757610b07613aa6565b604051632489e9fd60e21b81526001600160a01b03909416600485015260200291909101356024830152506044015b60405180910390fd5b610b6133848484818110610b5557610b55613aa6565b9050602002013561208a565b600101610a48565b507fa620d8783ad596207bb1f0d82c187f2e27bba478f9aeb14401ad577f6a3d887b8282604051610b9b929190613ad9565b60405180910390a15050565b6000610bb1612037565b600854339060009081906001600160a01b03168314801590610bdc57506001600160a01b0383163014155b15610bfa576040516323a5eda560e11b815260040160405180910390fd5b6008546001600160a01b038481169116148015610c15575084155b15610c235760009150610c5b565b6040859003610c4257610c38858701876137f5565b9092509050610c5b565b6040516323a5eda560e11b815260040160405180910390fd5b81600003610c7257610c6d888861208a565b610eae565b81600103610d9557876001600160a01b0316610c8d826110ac565b6001600160a01b031614610cbd57604051632489e9fd60e21b815230600482015260248101829052604401610b36565b600854604051630852cd8d60e31b8152600481018990526001600160a01b03909116906342966c6890602401600060405180830381600087803b158015610d0357600080fd5b505af1158015610d17573d6000803e3d6000fd5b50505050610d2481612103565b6040518181527ff8e1a15aba9398e019f0b49df1a4fde98ee17ae345cb5f6b5e2c27f5033e8ce79060200160405180910390a160408051828152602081018990527f57cbf6e95161d2e3d8956cef5d6a37ceac1d449f2f97d746fff873c9a1a8fb3d910160405180910390a1610eae565b81600203610eae57876001600160a01b0316610db0826110ac565b6001600160a01b031614610de057604051632489e9fd60e21b815230600482015260248101829052604401610b36565b600080610ded89846121ab565b91509150610dfa82612688565b808314610e0c57610e0c308b8361272b565b6040518181527ff8e1a15aba9398e019f0b49df1a4fde98ee17ae345cb5f6b5e2c27f5033e8ce79060200160405180910390a16040518281527ff8e1a15aba9398e019f0b49df1a4fde98ee17ae345cb5f6b5e2c27f5033e8ce79060200160405180910390a160408051828152602081018490527f57cbf6e95161d2e3d8956cef5d6a37ceac1d449f2f97d746fff873c9a1a8fb3d910160405180910390a150505b50630a85bd0160e11b98975050505050505050565b610ecb611d85565b600a5460408051918252602082018390527fd154c33557a1f3851e8f2f68a7c9ee89ca473aa056bcf7631b0e0e4c3d73c563910160405180910390a1600a55565b826001600160a01b0381163314610f2657610f2633611e6e565b610f31848484612918565b50505050565b604080518082019091526006546001600160a01b038116808352600160a01b90910462ffffff1660208301819052909160009161271090610f789086613b41565b610f829190613b6e565b9150509250929050565b610f94611d85565b610f9c61298f565b565b826001600160a01b0381163314610fb857610fb833611e6e565b610f318484846129e1565b610fcd33826129fc565b61102f5760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201526c1c881bdc88185c1c1c9bdd9959609a1b6064820152608401610b36565b61103881612688565b50565b611043611d85565b600854604080516001600160a01b03928316815291831660208301527face61a723355e408abdccab7871b1317a5d6722751a5991e96844cd10ff90fba910160405180910390a1600880546001600160a01b0319166001600160a01b0392909216919091179055565b6000818152600260205260408120546001600160a01b0316806108b45760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610b36565b60006001600160a01b03821661118f5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e657200000000000000000000000000000000000000000000006064820152608401610b36565b506001600160a01b031660009081526003602052604090205490565b6111b3611d85565b610f9c6000612a7a565b6111c5611d85565b610f9c612aeb565b6060600180546108c990613a4f565b6111e4612037565b60085460405163e985e9c560e01b81523360048201523060248201526001600160a01b039091169063e985e9c590604401602060405180830381865afa158015611232573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112569190613a89565b611273576040516368618fa560e11b815260040160405180910390fd5b6008546040516331a9108f60e11b81526004810183905233916001600160a01b031690636352211e90602401602060405180830381865afa1580156112bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112e09190613abc565b6001600160a01b03161461131d57600854604051632489e9fd60e21b81526001600160a01b03909116600482015260248101829052604401610b36565b611327338261208a565b6040518181527f82498456531a1065f689ba348ce20bda781238c424cf36748dd40bc282831e039060200160405180910390a150565b8161136781611e6e565b6109878383612b28565b6000818152600e60205260409020805460010190556113a7826000908152600260205260409020546001600160a01b0316151590565b806113c35750336113b7826110ac565b6001600160a01b031614155b806113ea57506000818152600d60205260409020546601000000000000900460ff16600714155b8061140e5750600b546000828152600e60205260409020546201000090910460ff16105b8061142d57506000828152600d6020526040902054610100900460ff16155b1561144b5760405163a233cae360e01b815260040160405180910390fd5b600c8054600101905561145e3383612b33565b604080518381523360208201527f2d461c7b1ee88c74cb9c15b06dc976ae00bb3c299adffb6d4ff99202854bc4e79101610b9b565b6000828152600d60209081526040808320815161014081018352905460ff80821615158352610100808304821615159584019590955263ffffffff6201000083048116948401949094526601000000000000820481166060848101919091526701000000000000008304909116608084015268010000000000000000820490931660a0830181905267ffffffffffffffff600160601b8304811660c0850152600160a01b83041660e084015261ffff600160e01b8304811695840195909552600160f01b9091049093166101208201529092909190036115b55760405162461bcd60e51b815260206004820152601160248201527f4e6f6e6578697374656e7420746f6b656e0000000000000000000000000000006044820152606401610b36565b6009546000858152600d602052604090819020905163bde6e1ad60e01b81526001600160a01b039092169163bde6e1ad916115f4918790600401613c24565b600060405180830381865afa158015611611573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526116399190810190613c44565b949350505050565b836001600160a01b038116331461165b5761165b33611e6e565b61166785858585612ccc565b5050505050565b611676611d85565b611685828262ffffff16612d44565b5050565b6000818152600d60209081526040808320815161014081018352905460ff80821615158352610100808304821615159584019590955263ffffffff6201000083048116948401949094526601000000000000820481166060848101919091526701000000000000008304909116608084015268010000000000000000820490931660a0830181905267ffffffffffffffff600160601b8304811660c0850152600160a01b83041660e084015261ffff600160e01b8304811695840195909552600160f01b9091049093166101208201529092909190036117ab5760405162461bcd60e51b815260206004820152601160248201527f4e6f6e6578697374656e7420746f6b656e0000000000000000000000000000006044820152606401610b36565b6009546000848152600d6020526040908190209051635b5a429960e11b81526001600160a01b039092169163b6b48532916117eb91879190600401613cbb565b600060405180830381865afa158015611808573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526118309190810190613c44565b9392505050565b606060008267ffffffffffffffff81111561185457611854613889565b60405190808252806020026020018201604052801561187d578160200160208202803683370190505b50905060005b838110156118f957600d60008686848181106118a1576118a1613aa6565b90506020020135815260200190815260200160002060000160069054906101000a900460ff1660ff168282815181106118dc576118dc613aa6565b6020908102919091010152806118f181613cd0565b915050611883565b509392505050565b611909612037565b33611913836110ac565b6001600160a01b03161461194357604051632489e9fd60e21b815233600482015260248101839052604401610b36565b3361194d826110ac565b6001600160a01b03161461197d57604051632489e9fd60e21b815233600482015260248101829052604401610b36565b33600090815260056020908152604080832030845290915290205460ff166119b8576040516368618fa560e11b815260040160405180910390fd5b6000806119c584846121ab565b915091506119d282612688565b6040518181527ff8e1a15aba9398e019f0b49df1a4fde98ee17ae345cb5f6b5e2c27f5033e8ce79060200160405180910390a16040518281527ff8e1a15aba9398e019f0b49df1a4fde98ee17ae345cb5f6b5e2c27f5033e8ce79060200160405180910390a160408051828152602081018490527f57cbf6e95161d2e3d8956cef5d6a37ceac1d449f2f97d746fff873c9a1a8fb3d910160405180910390a150505050565b611a7f612037565b6008546040516331a9108f60e11b8152600481018490526000916001600160a01b031690636352211e90602401602060405180830381865afa158015611ac9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611aed9190613abc565b905033611af9836110ac565b6001600160a01b031614611b2957604051632489e9fd60e21b815230600482015260248101839052604401610b36565b6001600160a01b0381163314611b6857600854604051632489e9fd60e21b81526001600160a01b03909116600482015260248101849052604401610b36565b60085460405163e985e9c560e01b81523360048201523060248201526001600160a01b039091169063e985e9c590604401602060405180830381865afa158015611bb6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bda9190613a89565b611bf7576040516368618fa560e11b815260040160405180910390fd5b600854604051630852cd8d60e31b8152600481018590526001600160a01b03909116906342966c6890602401600060405180830381600087803b158015611c3d57600080fd5b505af1158015611c51573d6000803e3d6000fd5b50505050611c5e82612103565b6040518281527ff8e1a15aba9398e019f0b49df1a4fde98ee17ae345cb5f6b5e2c27f5033e8ce79060200160405180910390a160408051838152602081018590527f57cbf6e95161d2e3d8956cef5d6a37ceac1d449f2f97d746fff873c9a1a8fb3d910160405180910390a1505050565b611cd7611d85565b600b805463ff00000019811663010000009182900460ff1615909102179055565b611d00611d85565b6001600160a01b038116611d7c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b36565b61103881612a7a565b6007546001600160a01b03610100909104163314610f9c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b36565b60006001600160e01b0319821663152a902d60e11b14806108b457506108b482612df8565b6000818152600260205260409020546001600160a01b03166110385760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610b36565b6daaeb6d7670e522a718067333cd4e3b1561103857604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611edb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611eff9190613a89565b61103857604051633b79c77360e21b81526001600160a01b0382166004820152602401610b36565b6000611f32826110ac565b9050806001600160a01b0316836001600160a01b031603611f9f5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610b36565b336001600160a01b0382161480611fbb5750611fbb8133610769565b61202d5760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152608401610b36565b6109878383612e48565b60075460ff1615610f9c5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610b36565b612092612037565b600854604051630852cd8d60e31b8152600481018390526001600160a01b03909116906342966c6890602401600060405180830381600087803b1580156120d857600080fd5b505af11580156120ec573d6000803e3d6000fd5b505050506120f981612eb6565b6116858282612b33565b6000818152600d602052604081209061211b836130e5565b82547fffff0000ffffffffffffffffffffffffffffffffffffffffffff00000000ffff8116600160e01b9182900461ffff9081166001011690910265ffffffff00001916176201000063ffffffff8316908102919091178085559192506121849160ff1661313f565b825460ff919091166701000000000000000267ff0000000000000019909116179091555050565b6000828152600d60205260408082205483835290822054848352829160ff6601000000000000808304821693048116918491829182918291829182916101009004168061220b575060008c8152600d6020526040902054610100900460ff165b156122295760405163a233cae360e01b815260040160405180910390fd5b600b546301000000900460ff161515600114801561224d57508660ff168860ff1614155b156122785760405163e57a21bd60e01b815260ff808a16600483015288166024820152604401610b36565b600b546301000000900460ff16156122ae578660ff168860ff1611156122a3578760010195506122b7565b8660010195506122b7565b86880160010195505b60078660ff1611156122e857604051639646048b60e01b815260ff8716600482015260076024820152604401610b36565b60008b8152600d6020526040808220548e83529120546001600160e01b80830461ffff9081169185041601019167ffffffffffffffff600160601b918290048116919092049091161115612341578c99508b9a50612348565b8b99508c9a505b60008a8152600d602052604090205448600160601b90910467ffffffffffffffff1611156123c05760008a8152600d6020526040902054600a54600160601b820467ffffffffffffffff9081169850600160a01b83041696506801000000000000000090910463ffffffff16945086101592506123dc565b489550429450439350600a548667ffffffffffffffff16101592505b8660ff1660071480156123ed575082155b1561240e5760405163380532fb60e11b8152600481018b9052602401610b36565b8660ff1660070361243257600b805461ffff8082166001011661ffff199091161790555b61243b8a6130e5565b60008c8152600d60209081526040808320805461ff00191661010017905580516101408101825287151581529182019290925263ffffffff831691810182905260ff8a1660608201529193506080820190612496908661313f565b60ff1681526020018563ffffffff1681526020018767ffffffffffffffff1681526020018667ffffffffffffffff1681526020018261ffff168152602001600b60009054906101000a900461ffff1661ffff16815250600d60008c815260200190815260200160002060008201518160000160006101000a81548160ff02191690831515021790555060208201518160000160016101000a81548160ff02191690831515021790555060408201518160000160026101000a81548163ffffffff021916908363ffffffff16021790555060608201518160000160066101000a81548160ff021916908360ff16021790555060808201518160000160076101000a81548160ff021916908360ff16021790555060a08201518160000160086101000a81548163ffffffff021916908363ffffffff16021790555060c082015181600001600c6101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060e08201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555061010082015181600001601c6101000a81548161ffff021916908361ffff16021790555061012082015181600001601e6101000a81548161ffff021916908361ffff1602179055509050505050505050505050509250929050565b6000612693826110ac565b90506126a38160008460016131ff565b6126ac826110ac565b600083815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0385168085526003845282852080546000190190558785526002909352818420805490911690555192935084927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b826001600160a01b031661273e826110ac565b6001600160a01b0316146127a25760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610b36565b6001600160a01b0382166128045760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610b36565b61281183838360016131ff565b826001600160a01b0316612824826110ac565b6001600160a01b0316146128885760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610b36565b600081815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b61292233826129fc565b6129845760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201526c1c881bdc88185c1c1c9bdd9959609a1b6064820152608401610b36565b61098783838361272b565b61299761320b565b6007805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b61098783838360405180602001604052806000815250611641565b600080612a08836110ac565b9050806001600160a01b0316846001600160a01b03161480612a4f57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806116395750836001600160a01b0316612a688461094c565b6001600160a01b031614949350505050565b600780546001600160a01b038381166101008181027fffffffffffffffffffffff0000000000000000000000000000000000000000ff85161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b612af3612037565b6007805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586129c43390565b61168533838361325d565b6001600160a01b038216612b895760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b36565b6000818152600260205260409020546001600160a01b031615612bee5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b36565b612bfc6000838360016131ff565b6000818152600260205260409020546001600160a01b031615612c615760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b36565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b612cd633836129fc565b612d385760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201526c1c881bdc88185c1c1c9bdd9959609a1b6064820152608401610b36565b610f318484848461332b565b612710811115612d965760405162461bcd60e51b815260206004820152601a60248201527f45524332393831526f79616c746965733a20546f6f20686967680000000000006044820152606401610b36565b604080518082019091526001600160a01b0390921680835262ffffff909116602090920182905260068054600160a01b9093027fffffffffffffffffff0000000000000000000000000000000000000000000000909316909117919091179055565b60006001600160e01b031982166380ac58cd60e01b1480612e2957506001600160e01b03198216635b5e139f60e01b145b806108b457506301ffc9a760e01b6001600160e01b03198316146108b4565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612e7d826110ac565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600a544810156000612ec7836130e5565b905060405180610140016040528083151581526020016000151581526020018263ffffffff168152602001600060ff168152602001612f0c8363ffffffff168561313f565b60ff1681526020014363ffffffff1681526020014867ffffffffffffffff1681526020014267ffffffffffffffff168152602001600061ffff168152602001600061ffff16815250600d600085815260200190815260200160002060008201518160000160006101000a81548160ff02191690831515021790555060208201518160000160016101000a81548160ff02191690831515021790555060408201518160000160026101000a81548163ffffffff021916908363ffffffff16021790555060608201518160000160066101000a81548160ff021916908360ff16021790555060808201518160000160076101000a81548160ff021916908360ff16021790555060a08201518160000160086101000a81548163ffffffff021916908363ffffffff16021790555060c082015181600001600c6101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060e08201518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555061010082015181600001601c6101000a81548161ffff021916908361ffff16021790555061012082015181600001601e6101000a81548161ffff021916908361ffff160217905550905050505050565b60408051602081018390526bffffffffffffffffffffffff193360601b169181019190915248605482015260009063ffffffff906074016040516020818303038152906040528051906020012060001c6108b49190613ce9565b600080600960009054906101000a90046001600160a01b03166001600160a01b031663212fca7a6040518163ffffffff1660e01b8152600401602060405180830381865afa158015613195573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131b99190613cfd565b9050826131ce576004840660010191506131f8565b8084816131dd576131dd613b58565b06915060058260ff16106131f15781611639565b8160050191505b5092915050565b610f31848484846133b4565b60075460ff16610f9c5760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610b36565b816001600160a01b0316836001600160a01b0316036132be5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b36565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61333684848461272b565b6133428484848461343c565b610f315760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610b36565b6001811115610f31576001600160a01b038416156133fa576001600160a01b038416600090815260036020526040812080548392906133f4908490613d16565b90915550505b6001600160a01b03831615610f31576001600160a01b03831660009081526003602052604081208054839290613431908490613d29565b909155505050505050565b60006001600160a01b0384163b1561358857604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613480903390899088908890600401613d3c565b6020604051808303816000875af19250505080156134bb575060408051601f3d908101601f191682019092526134b891810190613d78565b60015b61356e573d8080156134e9576040519150601f19603f3d011682016040523d82523d6000602084013e6134ee565b606091505b5080516000036135665760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610b36565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611639565b506001949350505050565b6001600160a01b038116811461103857600080fd5b6000602082840312156135ba57600080fd5b813561183081613593565b6001600160e01b03198116811461103857600080fd5b6000602082840312156135ed57600080fd5b8135611830816135c5565b60005b838110156136135781810151838201526020016135fb565b50506000910152565b600081518084526136348160208601602086016135f8565b601f01601f19169290920160200192915050565b602081526000611830602083018461361c565b60006020828403121561366d57600080fd5b5035919050565b6000806040838503121561368757600080fd5b823561369281613593565b946020939093013593505050565b600080602083850312156136b357600080fd5b823567ffffffffffffffff808211156136cb57600080fd5b818501915085601f8301126136df57600080fd5b8135818111156136ee57600080fd5b8660208260051b850101111561370357600080fd5b60209290920196919550909350505050565b60008060008060006080868803121561372d57600080fd5b853561373881613593565b9450602086013561374881613593565b935060408601359250606086013567ffffffffffffffff8082111561376c57600080fd5b818801915088601f83011261378057600080fd5b81358181111561378f57600080fd5b8960208285010111156137a157600080fd5b9699959850939650602001949392505050565b6000806000606084860312156137c957600080fd5b83356137d481613593565b925060208401356137e481613593565b929592945050506040919091013590565b6000806040838503121561380857600080fd5b50508035926020909101359150565b801515811461103857600080fd5b6000806040838503121561383857600080fd5b823561384381613593565b9150602083013561385381613817565b809150509250929050565b6000806040838503121561387157600080fd5b82359150602083013560ff8116811461385357600080fd5b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156138c8576138c8613889565b604052919050565b600067ffffffffffffffff8211156138ea576138ea613889565b50601f01601f191660200190565b6000806000806080858703121561390e57600080fd5b843561391981613593565b9350602085013561392981613593565b925060408501359150606085013567ffffffffffffffff81111561394c57600080fd5b8501601f8101871361395d57600080fd5b803561397061396b826138d0565b61389f565b81815288602083850101111561398557600080fd5b8160208401602083013760006020838301015280935050505092959194509250565b600080604083850312156139ba57600080fd5b82356139c581613593565b9150602083013562ffffff8116811461385357600080fd5b6020808252825182820181905260009190848201906040850190845b81811015613a15578351835292840192918401916001016139f9565b50909695505050505050565b60008060408385031215613a3457600080fd5b8235613a3f81613593565b9150602083013561385381613593565b600181811c90821680613a6357607f821691505b602082108103613a8357634e487b7160e01b600052602260045260246000fd5b50919050565b600060208284031215613a9b57600080fd5b815161183081613817565b634e487b7160e01b600052603260045260246000fd5b600060208284031215613ace57600080fd5b815161183081613593565b6020815281602082015260007f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115613b1257600080fd5b8260051b80856040850137919091016040019392505050565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176108b4576108b4613b2b565b634e487b7160e01b600052601260045260246000fd5b600082613b7d57613b7d613b58565b500490565b805460ff811615158352613ba06020840160ff8360081c1615159052565b63ffffffff601082901c81166040850152603082901c60ff166060850152603882901c60ff166080850152613be260a08501828460401c1663ffffffff169052565b5067ffffffffffffffff606082901c811660c085015260a082901c811660e08501525060e081901c61ffff1661010084015260f081901c610120840152505050565b6101608101613c338285613b82565b60ff83166101408301529392505050565b600060208284031215613c5657600080fd5b815167ffffffffffffffff811115613c6d57600080fd5b8201601f81018413613c7e57600080fd5b8051613c8c61396b826138d0565b818152856020838501011115613ca157600080fd5b613cb28260208301602086016135f8565b95945050505050565b82815261016081016118306020830184613b82565b600060018201613ce257613ce2613b2b565b5060010190565b600082613cf857613cf8613b58565b500690565b600060208284031215613d0f57600080fd5b5051919050565b818103818111156108b4576108b4613b2b565b808201808211156108b4576108b4613b2b565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613d6e608083018461361c565b9695505050505050565b600060208284031215613d8a57600080fd5b8151611830816135c556fea26469706673582212206abcf1044ec3393735a6d6134cbf563f7142e472766fbbf5263f24008697cec864736f6c63430008110033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000e670a46c374b40bddbb3e014f6037adff8a7e738000000000000000000000000fbf170984ccb1e980acb53023d7502d15f6e14ff

-----Decoded View---------------
Arg [0] : _descriptor (address): 0xe670a46c374B40bdDbb3E014F6037AdFf8A7e738
Arg [1] : _proofOfWork (address): 0xfbF170984CcB1E980aCB53023D7502D15F6e14fF

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000e670a46c374b40bddbb3e014f6037adff8a7e738
Arg [1] : 000000000000000000000000fbf170984ccb1e980acb53023d7502d15f6e14ff


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

OVERVIEW

may or may not be ultra soundmerge for proof of stake on [ultra sound editions](http://ultrasoundeditions.com/)view [proof of work oe](https://opensea.io/collection/proof-of-work-oe)inspired by checks by [@jackbutcher](https://twitter.com/jackbutcher) and [ultra sound mo...

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.