ETH Price: $3,073.34 (-1.21%)
Gas: 4 Gwei

Contract

0xF314Fa957255AD6Ba189A641e6086C81385040fb
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Transfer Nft Own...182020222023-09-24 0:14:23239 days ago1695514463IN
0xF314Fa95...1385040fb
0 ETH0.000364527.23516367
Transfer Nft Own...179722892023-08-22 19:18:11271 days ago1692731891IN
0xF314Fa95...1385040fb
0 ETH0.0018397538.42595927
Transfer Nft Own...174267942023-06-07 6:42:35348 days ago1686120155IN
0xF314Fa95...1385040fb
0 ETH0.0028471859.1697467
Transfer Nft Own...174230242023-06-06 17:56:59348 days ago1686074219IN
0xF314Fa95...1385040fb
0 ETH0.0018234336.19218015
Transfer Nft Own...174230082023-06-06 17:53:47348 days ago1686074027IN
0xF314Fa95...1385040fb
0 ETH0.0017844137.08333374
Transfer Nft Own...174229952023-06-06 17:51:11348 days ago1686073871IN
0xF314Fa95...1385040fb
0 ETH0.0018259437.95592654
Transfer Nft Own...174164242023-06-05 19:35:47349 days ago1685993747IN
0xF314Fa95...1385040fb
0 ETH0.0017974337.37414721
Transfer Nft Own...174163422023-06-05 19:19:11349 days ago1685992751IN
0xF314Fa95...1385040fb
0 ETH0.0040236183.6633115
Transfer Nft Own...174163082023-06-05 19:12:23349 days ago1685992343IN
0xF314Fa95...1385040fb
0 ETH0.0027826557.85983054
Register Contrac...173798632023-05-31 15:52:35354 days ago1685548355IN
0xF314Fa95...1385040fb
0 ETH0.0031294741.27336433
Buy With Signed ...173766432023-05-31 5:00:59355 days ago1685509259IN
0xF314Fa95...1385040fb
0 ETH0.0123299434.44300762
Move Vault173764392023-05-31 4:18:59355 days ago1685506739IN
0xF314Fa95...1385040fb
0 ETH0.0078203125.21097743
Buy With Signed ...173752562023-05-31 0:18:35355 days ago1685492315IN
0xF314Fa95...1385040fb
0 ETH0.0140638137.4937035
Buy With Signed ...173752442023-05-31 0:16:11355 days ago1685492171IN
0xF314Fa95...1385040fb
0 ETH0.013741936.63600113
Buy With Signed ...173751552023-05-30 23:58:11355 days ago1685491091IN
0xF314Fa95...1385040fb
0 ETH0.0120136932.0271336
Buy With Signed ...173675652023-05-29 22:19:47356 days ago1685398787IN
0xF314Fa95...1385040fb
0 ETH0.0097718726.05151633
Buy With Signed ...173673902023-05-29 21:44:23356 days ago1685396663IN
0xF314Fa95...1385040fb
0 ETH0.0100916926.90328171
Buy With Signed ...173602262023-05-28 21:34:59357 days ago1685309699IN
0xF314Fa95...1385040fb
0 ETH0.0108029427.32818659
Buy With Signed ...173550412023-05-28 4:07:35358 days ago1685246855IN
0xF314Fa95...1385040fb
0 ETH0.0086816722.95397379
Move Vault173446592023-05-26 17:09:47359 days ago1685120987IN
0xF314Fa95...1385040fb
0 ETH0.0133442440.77131464
Move Vault173446272023-05-26 17:03:23359 days ago1685120603IN
0xF314Fa95...1385040fb
0 ETH0.0117612235.92934972
Move Vault173446082023-05-26 16:59:23359 days ago1685120363IN
0xF314Fa95...1385040fb
0 ETH0.0098365430.05626872
Move Vault173445872023-05-26 16:55:11359 days ago1685120111IN
0xF314Fa95...1385040fb
0 ETH0.009816731.64861334
Transfer Nft Own...173369722023-05-25 15:13:11360 days ago1685027591IN
0xF314Fa95...1385040fb
0 ETH0.0027662357.50175695
Transfer Nft Own...173369402023-05-25 15:06:35360 days ago1685027195IN
0xF314Fa95...1385040fb
0 ETH0.0047843799.45271714
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:
VaultHandlerV8

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 1 runs

Other Settings:
default evmVersion
File 1 of 20 : VaultHandlerV8.sol
//     ______          __    __                          
//    / ____/___ ___  / /_  / /__  ____ ___              
//   / __/ / __ `__ \/ __ \/ / _ \/ __ `__ \             
//  / /___/ / / / / / /_/ / /  __/ / / / / /             
// /_____/_/ /_/ /_/_.___/_/\___/_/ /_/ /_/              
// | |  / /___ ___  __/ / /_                             
// | | / / __ `/ / / / / __/                             
// | |/ / /_/ / /_/ / / /_                               
// |___/\__,_/\__,_/_/\__/                               
//     __  __                ____                   ____ 
//    / / / /___ _____  ____/ / /__  _____   _   __( __ )
//   / /_/ / __ `/ __ \/ __  / / _ \/ ___/  | | / / __  |
//  / __  / /_/ / / / / /_/ / /  __/ /      | |/ / /_/ / 
// /_/ /_/\__,_/_/ /_/\__,_/_/\___/_/       |___/\____/  

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.4;

import "./BasicERC20.sol";
import "./IIsSerialized.sol";
import "./SafeMath.sol";
import "./IERC721.sol";
import "./IERC165.sol";
import "./IERC1155.sol";
import "./IClaimed.sol";
import "./ERC165.sol";
import "./ReentrancyGuard.sol";
import "./HasCallbacks.sol";
import "./BytesLib.sol";

contract VaultHandlerV8 is ReentrancyGuard, HasCallbacks, ERC165 {
    
    using SafeMath for uint256;
    string public metadataBaseUri = "https://api.emblemvault.io/s:evmetadata/meta/";
    bool public initialized;
    address public recipientAddress;

    bytes4 private constant _INTERFACE_ID_ERC1155 = 0xd9b67a26;
    bytes4 private constant _INTERFACE_ID_ERC20 = 0x74a1476f;
    bytes4 private constant _INTERFACE_ID_ERC721 = 0x80ac58cd;
    bool public shouldBurn = false;
    
    mapping(address => bool) public witnesses;
    mapping(uint256 => bool) usedNonces;

    // constructor() {
    //     __Ownable_init();
    // }

    function initialize() public initializer {
        __Ownable_init();
        addWitness(owner());
        recipientAddress = _msgSender();
        initialized = true;
        initializeERC165();
    }

    function claim(address _nftAddress, uint256 tokenId) public nonReentrant isRegisteredContract(_nftAddress) {
        IClaimed claimer = IClaimed(registeredOfType[6][0]);
        bytes32[] memory proof;
        
        if (IERC165(_nftAddress).supportsInterface(_INTERFACE_ID_ERC1155)) {
            IIsSerialized serialized = IIsSerialized(_nftAddress);
            uint256 serialNumber = serialized.getFirstSerialByOwner(_msgSender(), tokenId);
            require(serialized.getTokenIdForSerialNumber(serialNumber) == tokenId, "Invalid tokenId serialnumber combination");
            require(serialized.getOwnerOfSerial(serialNumber) == _msgSender(), "Not owner of serial number");
            require(!claimer.isClaimed(_nftAddress, serialNumber, proof), "Already Claimed");
            IERC1155(_nftAddress).burn(_msgSender(), tokenId, 1);
            claimer.claim(_nftAddress, serialNumber, _msgSender());
        } else {            
            require(!claimer.isClaimed(_nftAddress, tokenId, proof), "Already Claimed");
            IERC721 token = IERC721(_nftAddress);
            require(token.ownerOf(tokenId) == _msgSender(), "Not Token Owner");
            token.burn(tokenId);
            claimer.claim(_nftAddress, tokenId, _msgSender());
        }
        executeCallbacksInternal(_nftAddress, _msgSender(), address(0), tokenId, IHandlerCallback.CallbackType.CLAIM);
    }

    function buyWithSignedPrice(address _nftAddress, address _payment, uint _price, address _to, uint256 _tokenId, uint256 _nonce, bytes calldata _signature, bytes calldata serialNumber, uint256 _amount) public nonReentrant {
        IERC20Token paymentToken = IERC20Token(_payment);
        if (shouldBurn) {
            require(paymentToken.transferFrom(msg.sender, address(this), _price), 'Transfer ERROR'); // Payment sent to recipient
            BasicERC20(_payment).burn(_price);
        } else {
            require(paymentToken.transferFrom(msg.sender, address(recipientAddress), _price), 'Transfer ERROR'); // Payment sent to recipient
        }
        address signer = getAddressFromSignature(_nftAddress, _payment, _price, _to, _tokenId, _nonce, _amount, _signature);
        require(witnesses[signer], 'Not Witnessed');
        usedNonces[_nonce] = true;
        string memory _uri = concat(metadataBaseUri, uintToStr(_tokenId));
        if (IERC165(_nftAddress).supportsInterface(_INTERFACE_ID_ERC1155)) {
            if (IIsSerialized(_nftAddress).isOverloadSerial()) {
                IERC1155(_nftAddress).mintWithSerial(_to, _tokenId, _amount, serialNumber);
            } else {
                IERC1155(_nftAddress).mint(_to, _tokenId, _amount);
            }
        } else {
            IERC721(_nftAddress).mint(_to, _tokenId, _uri, '');
        }
    }

    function mint(address _nftAddress, address _to, uint256 _tokenId, string calldata _uri, string calldata _payload, uint256 amount) external onlyOwner {
        if (IERC165(_nftAddress).supportsInterface(_INTERFACE_ID_ERC1155)) {
            IERC1155(_nftAddress).mint(_to, _tokenId, amount);
        } else {
            IERC721(_nftAddress).mint(_to, _tokenId, _uri, _payload);
        }        
    }

    function mintBatch(address _nftAddress, address to, uint256[] memory ids, uint256[] memory amounts, bytes[] memory serialNumbers) public onlyOwner {
        if (IERC165(_nftAddress).supportsInterface(_INTERFACE_ID_ERC1155)) {
            IERC1155(_nftAddress).mintBatch(to, ids, amounts, serialNumbers);
        } else {
           
        }        
    }

    function moveVault(address _from, address _to, uint256 tokenId, uint256 newTokenId, uint256 nonce, bytes calldata signature, bytes memory serialNumber) external nonReentrant isRegisteredContract(_from) isRegisteredContract(_to)  {
        require(_from != _to, 'Cannot move vault to same address');
        require(witnesses[getAddressFromSignatureHash(keccak256(abi.encodePacked(_from, _to, tokenId, newTokenId, serialNumber, nonce)), signature)], 'Not Witnessed');
        usedNonces[nonce] = true;
        if (IERC165(_from).supportsInterface(_INTERFACE_ID_ERC1155)) {
            require(tokenId != newTokenId, 'from: TokenIds must be different for ERC1155');
            require(IERC1155(_from).balanceOf(_msgSender(), tokenId) > 0, 'from: Not owner of vault');
            IERC1155(_from).burn(_msgSender(), tokenId, 1);
        } else {
            require(IERC721(_from).ownerOf(tokenId) == _msgSender(), 'from: Not owner of vault');
            IERC721(_from).burn(tokenId);
        }
        if (IERC165(_to).supportsInterface(_INTERFACE_ID_ERC1155)) {
            require(tokenId != newTokenId, 'to: TokenIds must be different for ERC1155');
            if (IIsSerialized(_to).isOverloadSerial()) {
                require(BytesLib.toUint256(serialNumber, 0) != 0, "Handler: must provide serial number");
                IERC1155(_to).mintWithSerial(_msgSender(), newTokenId, 1, serialNumber);
            } else {
                IERC1155(_to).mint(_msgSender(), newTokenId, 1);
            }
        } else {
             IERC721(_to).mint(_msgSender(), newTokenId, concat(metadataBaseUri, uintToStr(newTokenId)), "");
        }
    }  
    
    function toggleShouldBurn() public onlyOwner {
        shouldBurn = !shouldBurn;
    }
    
    function addWitness(address _witness) public onlyOwner {
        witnesses[_witness] = true;
    }

    function removeWitness(address _witness) public onlyOwner {
        witnesses[_witness] = false;
    }

    function getAddressFromSignatureHash(bytes32 _hash, bytes calldata signature) public pure returns (address) {
        address addressFromSig = recoverSigner(_hash, signature);
        return addressFromSig;
    }

    function getAddressFromSignature(address _nftAddress, address _payment, uint _price, address _to, uint256 _tokenId, uint256 _nonce, uint256 _amount, bytes calldata signature) public view returns (address) {
        require(!usedNonces[_nonce], 'Nonce already used');
        return getAddressFromSignatureHash(keccak256(abi.encodePacked(_nftAddress, _payment, _price, _to, _tokenId, _nonce, _amount)), signature);
    }

    // function getAddressFromSignature(address _to, uint256 _tokenId, uint256 _nonce, bytes calldata signature) public view returns (address) {
    //     require(!usedNonces[_nonce], 'Nonce already used');
    //     return getAddressFromSignatureHash(keccak256(abi.encodePacked(_to, _tokenId, _nonce)), signature);
    // }

    function getAddressFromSignatureMint(address _nftAddress, address _to, uint256 _tokenId, uint256 _nonce, string calldata payload, bytes calldata signature) public view returns (address) {
        require(!usedNonces[_nonce]);
        return getAddressFromSignatureHash(keccak256(abi.encodePacked(_nftAddress, _to, _tokenId, _nonce, payload)), signature);
    }

    function getAddressFromSignatureMove(address _from, address _to, uint256 tokenId, uint256 newTokenId, uint256 _nonce, bytes memory serialNumber, bytes calldata signature) public view returns (address) {
        require(!usedNonces[_nonce]);
        return getAddressFromSignatureHash(keccak256(abi.encodePacked(_from, _to, tokenId, newTokenId, serialNumber, _nonce)), signature);
    }

    function isWitnessed(bytes32 _hash, bytes calldata signature) public view returns (bool) {
        address addressFromSig = recoverSigner(_hash, signature);
        return witnesses[addressFromSig];
    }
    
    function changeMetadataBaseUri(string calldata _uri) public onlyOwner {
        metadataBaseUri = _uri;
    }
    
    function transferNftOwnership(address _nftAddress, address newOwner) external onlyOwner {
        OwnableUpgradeable(_nftAddress).transferOwnership(newOwner);
    }

    function changeRecipient(address _recipient) public onlyOwner {
       recipientAddress = _recipient;
    }
    function concat(string memory a, string memory b) internal pure returns (string memory) {
        return string(abi.encodePacked(a, b));
    }

    function recoverSigner(bytes32 hash, bytes memory sig) public pure returns (address) {
        require(sig.length == 65, "Require correct length");

        bytes32 r;
        bytes32 s;
        uint8 v;

        // Divide the signature in r, s and v variables
        assembly {
            r := mload(add(sig, 32))
            s := mload(add(sig, 64))
            v := byte(0, mload(add(sig, 96)))
        }

        // Version of signature should be 27 or 28, but 0 and 1 are also possible versions
        if (v < 27) {
            v += 27;
        }

        require(v == 27 || v == 28, "Signature version not match");

        return recoverSigner2(hash, v, r, s);
    }
    function recoverSigner2(bytes32 h, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {
        bytes memory prefix = "\x19Ethereum Signed Message:\n32";
        bytes32 prefixedHash = keccak256(abi.encodePacked(prefix, h));
        address addr = ecrecover(prefixedHash, v, r, s);

        return addr;
    }
    
    function uintToStr(uint _i) internal pure returns (string memory _uintAsString) {
        if (_i == 0) {
            return "0";
        }
        uint j = _i;
        uint len;
        while (j != 0) {
            len++;
            j /= 10;
        }
        bytes memory bstr = new bytes(len);
        uint k = len;
        while (_i != 0) {
            k = k-1;
            uint8 temp = (48 + uint8(_i - _i / 10 * 10));
            bytes1 b1 = bytes1(temp);
            bstr[k] = b1;
            _i /= 10;
        }
        return string(bstr);
    }
    // function toString(address account) public pure returns(string memory) {
    //     return toString(abi.encodePacked(account));
    // }    
    // function toString(uint256 value) public pure returns(string memory) {
    //     return toString(abi.encodePacked(value));
    // }    
    // function toString(bytes32 value) public pure returns(string memory) {
    //     return toString(abi.encodePacked(value));
    // }    
    // function toString(bytes memory data) public pure returns(string memory) {
    //     bytes memory alphabet = "0123456789abcdef";
    
    //     bytes memory str = new bytes(2 + data.length * 2);
    //     str[0] = "0";
    //     str[1] = "x";
    //     for (uint i = 0; i < data.length; i++) {
    //         str[2+i*2] = alphabet[uint(uint8(data[i] >> 4))];
    //         str[3+i*2] = alphabet[uint(uint8(data[i] & 0x0f))];
    //     }
    //     return string(str);
    // }
}

File 3 of 20 : IClaimed.sol
// SPDX-License-Identifier: CLOSED - Pending Licensing Audit
pragma solidity ^0.8.4;

interface IClaimed {
    function isClaimed(address nftAddress, uint tokenId, bytes32[] calldata proof) external returns(bool);
    function claim(address nftAddress, uint tokenId, address _claimedBy) external;
}

File 4 of 20 : IERC1155.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

interface IERC1155 {
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);
    event TransferBatch(address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values);
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);
    event URI(string value, uint256 indexed id);

    function balanceOf(address account, uint256 id) external view returns (uint256);
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory);
    function setApprovalForAll(address operator, bool approved) external;
    function isApprovedForAll(address account, address operator) external view returns (bool);
    function safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes calldata data) external;
    function safeBatchTransferFrom(address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data) external;
    function mint(address _to, uint256 _tokenId, uint256 _amount) external;
    function mintBatch(address to, uint256[] memory ids, uint256[] memory amounts, bytes[] memory serialNumbers) external;
    function burn(address _from, uint256 _tokenId, uint256 _amount) external;
    function mintWithSerial(address _to, uint256 _tokenId, uint256 _amount, bytes memory serialNumber) external;
}

interface IERC1155Receiver {
    function onERC1155Received(address operator, address from, uint256 id, uint256 value, bytes calldata data) external returns(bytes4);
    function onERC1155BatchReceived(address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data) external returns(bytes4);
}

interface IERC1155MetadataURI  {
    function uri(uint256 id) external view returns (string memory);
}

File 5 of 20 : ERC165.sol
// SPDX-License-Identifier: CLOSED - Pending Licensing Audit
pragma solidity ^0.8.4;

contract ERC165 {

    mapping(bytes4 => bool) private supportedInterfaces;

    function initializeERC165() internal {
        require(supportedInterfaces[0x01ffc9a7] == false, "Already Registered");
        _registerInterface(0x01ffc9a7);
    }
    
    function supportsInterface(bytes4 interfaceId) public view returns (bool) {
        return supportedInterfaces[interfaceId];
    }
    
    function _registerInterface(bytes4 interfaceId) internal {
        require(interfaceId != 0xffffffff, "ERC165: invalid interface id");
        supportedInterfaces[interfaceId] = true;
    }
}

// interface IERC1155Receiver {
//     function onERC1155Received(address operator, address from, uint256 id, uint256 value, bytes calldata data) external returns(bytes4);
//     function onERC1155BatchReceived(address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data) external returns(bytes4);
// }

// interface IERC1155MetadataURI  {
//     function uri(uint256 id) external view returns (string memory);
// }

File 6 of 20 : BasicERC20.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.4;
interface BasicERC20 {
    function burn(uint256 value) external;
    function mint(address account, uint256 amount) external;
    function decimals() external view returns (uint8);
    function transferFrom(address from, address to, uint256 value) external returns (bool);
    function totalSupply() external view returns (uint256);
    function balanceOf(address who) external view returns (uint256);
    function allowance(address owner, address spender) external view returns (uint256);
}
interface IERC20Token {
    function transfer(address to, uint256 value) external returns (bool);
    function approve(address spender, uint256 value) external returns (bool);
    function transferFrom(address from, address to, uint256 value) external returns (bool);
    function totalSupply() external view returns (uint256);
    function balanceOf(address who) external view returns (uint256);
    function allowance(address owner, address spender) external view returns (uint256);
    event Transfer(address indexed from, address indexed to, uint256 value);
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

File 7 of 20 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor ()  {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 8 of 20 : BytesLib.sol
// SPDX-License-Identifier: Unlicense
/*
 * @title Solidity Bytes Arrays Utils
 * @author Gonçalo Sá <[email protected]>
 *
 * @dev Bytes tightly packed arrays utility library for ethereum contracts written in Solidity.
 *      The library lets you concatenate, slice and type cast bytes arrays both in memory and storage.
 */
pragma solidity >=0.8.0 <0.9.0;


library BytesLib {
    function concat(
        bytes memory _preBytes,
        bytes memory _postBytes
    )
        internal
        pure
        returns (bytes memory)
    {
        bytes memory tempBytes;

        assembly {
            // Get a location of some free memory and store it in tempBytes as
            // Solidity does for memory variables.
            tempBytes := mload(0x40)

            // Store the length of the first bytes array at the beginning of
            // the memory for tempBytes.
            let length := mload(_preBytes)
            mstore(tempBytes, length)

            // Maintain a memory counter for the current write location in the
            // temp bytes array by adding the 32 bytes for the array length to
            // the starting location.
            let mc := add(tempBytes, 0x20)
            // Stop copying when the memory counter reaches the length of the
            // first bytes array.
            let end := add(mc, length)

            for {
                // Initialize a copy counter to the start of the _preBytes data,
                // 32 bytes into its memory.
                let cc := add(_preBytes, 0x20)
            } lt(mc, end) {
                // Increase both counters by 32 bytes each iteration.
                mc := add(mc, 0x20)
                cc := add(cc, 0x20)
            } {
                // Write the _preBytes data into the tempBytes memory 32 bytes
                // at a time.
                mstore(mc, mload(cc))
            }

            // Add the length of _postBytes to the current length of tempBytes
            // and store it as the new length in the first 32 bytes of the
            // tempBytes memory.
            length := mload(_postBytes)
            mstore(tempBytes, add(length, mload(tempBytes)))

            // Move the memory counter back from a multiple of 0x20 to the
            // actual end of the _preBytes data.
            mc := end
            // Stop copying when the memory counter reaches the new combined
            // length of the arrays.
            end := add(mc, length)

            for {
                let cc := add(_postBytes, 0x20)
            } lt(mc, end) {
                mc := add(mc, 0x20)
                cc := add(cc, 0x20)
            } {
                mstore(mc, mload(cc))
            }

            // Update the free-memory pointer by padding our last write location
            // to 32 bytes: add 31 bytes to the end of tempBytes to move to the
            // next 32 byte block, then round down to the nearest multiple of
            // 32. If the sum of the length of the two arrays is zero then add
            // one before rounding down to leave a blank 32 bytes (the length block with 0).
            mstore(0x40, and(
              add(add(end, iszero(add(length, mload(_preBytes)))), 31),
              not(31) // Round down to the nearest 32 bytes.
            ))
        }

        return tempBytes;
    }

    function concatStorage(bytes storage _preBytes, bytes memory _postBytes) internal {
        assembly {
            // Read the first 32 bytes of _preBytes storage, which is the length
            // of the array. (We don't need to use the offset into the slot
            // because arrays use the entire slot.)
            let fslot := sload(_preBytes.slot)
            // Arrays of 31 bytes or less have an even value in their slot,
            // while longer arrays have an odd value. The actual length is
            // the slot divided by two for odd values, and the lowest order
            // byte divided by two for even values.
            // If the slot is even, bitwise and the slot with 255 and divide by
            // two to get the length. If the slot is odd, bitwise and the slot
            // with -1 and divide by two.
            let slength := div(and(fslot, sub(mul(0x100, iszero(and(fslot, 1))), 1)), 2)
            let mlength := mload(_postBytes)
            let newlength := add(slength, mlength)
            // slength can contain both the length and contents of the array
            // if length < 32 bytes so let's prepare for that
            // v. http://solidity.readthedocs.io/en/latest/miscellaneous.html#layout-of-state-variables-in-storage
            switch add(lt(slength, 32), lt(newlength, 32))
            case 2 {
                // Since the new array still fits in the slot, we just need to
                // update the contents of the slot.
                // uint256(bytes_storage) = uint256(bytes_storage) + uint256(bytes_memory) + new_length
                sstore(
                    _preBytes.slot,
                    // all the modifications to the slot are inside this
                    // next block
                    add(
                        // we can just add to the slot contents because the
                        // bytes we want to change are the LSBs
                        fslot,
                        add(
                            mul(
                                div(
                                    // load the bytes from memory
                                    mload(add(_postBytes, 0x20)),
                                    // zero all bytes to the right
                                    exp(0x100, sub(32, mlength))
                                ),
                                // and now shift left the number of bytes to
                                // leave space for the length in the slot
                                exp(0x100, sub(32, newlength))
                            ),
                            // increase length by the double of the memory
                            // bytes length
                            mul(mlength, 2)
                        )
                    )
                )
            }
            case 1 {
                // The stored value fits in the slot, but the combined value
                // will exceed it.
                // get the keccak hash to get the contents of the array
                mstore(0x0, _preBytes.slot)
                let sc := add(keccak256(0x0, 0x20), div(slength, 32))

                // save new length
                sstore(_preBytes.slot, add(mul(newlength, 2), 1))

                // The contents of the _postBytes array start 32 bytes into
                // the structure. Our first read should obtain the `submod`
                // bytes that can fit into the unused space in the last word
                // of the stored array. To get this, we read 32 bytes starting
                // from `submod`, so the data we read overlaps with the array
                // contents by `submod` bytes. Masking the lowest-order
                // `submod` bytes allows us to add that value directly to the
                // stored value.

                let submod := sub(32, slength)
                let mc := add(_postBytes, submod)
                let end := add(_postBytes, mlength)
                let mask := sub(exp(0x100, submod), 1)

                sstore(
                    sc,
                    add(
                        and(
                            fslot,
                            0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00
                        ),
                        and(mload(mc), mask)
                    )
                )

                for {
                    mc := add(mc, 0x20)
                    sc := add(sc, 1)
                } lt(mc, end) {
                    sc := add(sc, 1)
                    mc := add(mc, 0x20)
                } {
                    sstore(sc, mload(mc))
                }

                mask := exp(0x100, sub(mc, end))

                sstore(sc, mul(div(mload(mc), mask), mask))
            }
            default {
                // get the keccak hash to get the contents of the array
                mstore(0x0, _preBytes.slot)
                // Start copying to the last used word of the stored array.
                let sc := add(keccak256(0x0, 0x20), div(slength, 32))

                // save new length
                sstore(_preBytes.slot, add(mul(newlength, 2), 1))

                // Copy over the first `submod` bytes of the new data as in
                // case 1 above.
                let slengthmod := mod(slength, 32)
                let mlengthmod := mod(mlength, 32)
                let submod := sub(32, slengthmod)
                let mc := add(_postBytes, submod)
                let end := add(_postBytes, mlength)
                let mask := sub(exp(0x100, submod), 1)

                sstore(sc, add(sload(sc), and(mload(mc), mask)))

                for {
                    sc := add(sc, 1)
                    mc := add(mc, 0x20)
                } lt(mc, end) {
                    sc := add(sc, 1)
                    mc := add(mc, 0x20)
                } {
                    sstore(sc, mload(mc))
                }

                mask := exp(0x100, sub(mc, end))

                sstore(sc, mul(div(mload(mc), mask), mask))
            }
        }
    }

    function slice(
        bytes memory _bytes,
        uint256 _start,
        uint256 _length
    )
        internal
        pure
        returns (bytes memory)
    {
        require(_length + 31 >= _length, "slice_overflow");
        require(_bytes.length >= _start + _length, "slice_outOfBounds");

        bytes memory tempBytes;

        assembly {
            switch iszero(_length)
            case 0 {
                // Get a location of some free memory and store it in tempBytes as
                // Solidity does for memory variables.
                tempBytes := mload(0x40)

                // The first word of the slice result is potentially a partial
                // word read from the original array. To read it, we calculate
                // the length of that partial word and start copying that many
                // bytes into the array. The first word we copy will start with
                // data we don't care about, but the last `lengthmod` bytes will
                // land at the beginning of the contents of the new array. When
                // we're done copying, we overwrite the full first word with
                // the actual length of the slice.
                let lengthmod := and(_length, 31)

                // The multiplication in the next line is necessary
                // because when slicing multiples of 32 bytes (lengthmod == 0)
                // the following copy loop was copying the origin's length
                // and then ending prematurely not copying everything it should.
                let mc := add(add(tempBytes, lengthmod), mul(0x20, iszero(lengthmod)))
                let end := add(mc, _length)

                for {
                    // The multiplication in the next line has the same exact purpose
                    // as the one above.
                    let cc := add(add(add(_bytes, lengthmod), mul(0x20, iszero(lengthmod))), _start)
                } lt(mc, end) {
                    mc := add(mc, 0x20)
                    cc := add(cc, 0x20)
                } {
                    mstore(mc, mload(cc))
                }

                mstore(tempBytes, _length)

                //update free-memory pointer
                //allocating the array padded to 32 bytes like the compiler does now
                mstore(0x40, and(add(mc, 31), not(31)))
            }
            //if we want a zero-length slice let's just return a zero-length array
            default {
                tempBytes := mload(0x40)
                //zero out the 32 bytes slice we are about to return
                //we need to do it because Solidity does not garbage collect
                mstore(tempBytes, 0)

                mstore(0x40, add(tempBytes, 0x20))
            }
        }

        return tempBytes;
    }

    function toAddress(bytes memory _bytes, uint256 _start) internal pure returns (address) {
        require(_bytes.length >= _start + 20, "toAddress_outOfBounds");
        address tempAddress;

        assembly {
            tempAddress := div(mload(add(add(_bytes, 0x20), _start)), 0x1000000000000000000000000)
        }

        return tempAddress;
    }

    function toUint8(bytes memory _bytes, uint256 _start) internal pure returns (uint8) {
        require(_bytes.length >= _start + 1 , "toUint8_outOfBounds");
        uint8 tempUint;

        assembly {
            tempUint := mload(add(add(_bytes, 0x1), _start))
        }

        return tempUint;
    }

    function toUint16(bytes memory _bytes, uint256 _start) internal pure returns (uint16) {
        require(_bytes.length >= _start + 2, "toUint16_outOfBounds");
        uint16 tempUint;

        assembly {
            tempUint := mload(add(add(_bytes, 0x2), _start))
        }

        return tempUint;
    }

    function toUint32(bytes memory _bytes, uint256 _start) internal pure returns (uint32) {
        require(_bytes.length >= _start + 4, "toUint32_outOfBounds");
        uint32 tempUint;

        assembly {
            tempUint := mload(add(add(_bytes, 0x4), _start))
        }

        return tempUint;
    }

    function toUint64(bytes memory _bytes, uint256 _start) internal pure returns (uint64) {
        require(_bytes.length >= _start + 8, "toUint64_outOfBounds");
        uint64 tempUint;

        assembly {
            tempUint := mload(add(add(_bytes, 0x8), _start))
        }

        return tempUint;
    }

    function toUint96(bytes memory _bytes, uint256 _start) internal pure returns (uint96) {
        require(_bytes.length >= _start + 12, "toUint96_outOfBounds");
        uint96 tempUint;

        assembly {
            tempUint := mload(add(add(_bytes, 0xc), _start))
        }

        return tempUint;
    }

    function toUint128(bytes memory _bytes, uint256 _start) internal pure returns (uint128) {
        require(_bytes.length >= _start + 16, "toUint128_outOfBounds");
        uint128 tempUint;

        assembly {
            tempUint := mload(add(add(_bytes, 0x10), _start))
        }

        return tempUint;
    }

    function toUint256(bytes memory _bytes, uint256 _start) internal pure returns (uint256) {
        require(_bytes.length >= _start + 32, "toUint256_outOfBounds");
        uint256 tempUint;

        assembly {
            tempUint := mload(add(add(_bytes, 0x20), _start))
        }

        return tempUint;
    }

    function toBytes32(bytes memory _bytes, uint256 _start) internal pure returns (bytes32) {
        require(_bytes.length >= _start + 32, "toBytes32_outOfBounds");
        bytes32 tempBytes32;

        assembly {
            tempBytes32 := mload(add(add(_bytes, 0x20), _start))
        }

        return tempBytes32;
    }

    function equal(bytes memory _preBytes, bytes memory _postBytes) internal pure returns (bool) {
        bool success = true;

        assembly {
            let length := mload(_preBytes)

            // if lengths don't match the arrays are not equal
            switch eq(length, mload(_postBytes))
            case 1 {
                // cb is a circuit breaker in the for loop since there's
                //  no said feature for inline assembly loops
                // cb = 1 - don't breaker
                // cb = 0 - break
                let cb := 1

                let mc := add(_preBytes, 0x20)
                let end := add(mc, length)

                for {
                    let cc := add(_postBytes, 0x20)
                // the next line is the loop condition:
                // while(uint256(mc < end) + cb == 2)
                } eq(add(lt(mc, end), cb), 2) {
                    mc := add(mc, 0x20)
                    cc := add(cc, 0x20)
                } {
                    // if any of these checks fails then arrays are not equal
                    if iszero(eq(mload(mc), mload(cc))) {
                        // unsuccess:
                        success := 0
                        cb := 0
                    }
                }
            }
            default {
                // unsuccess:
                success := 0
            }
        }

        return success;
    }

    function equalStorage(
        bytes storage _preBytes,
        bytes memory _postBytes
    )
        internal
        view
        returns (bool)
    {
        bool success = true;

        assembly {
            // we know _preBytes_offset is 0
            let fslot := sload(_preBytes.slot)
            // Decode the length of the stored array like in concatStorage().
            let slength := div(and(fslot, sub(mul(0x100, iszero(and(fslot, 1))), 1)), 2)
            let mlength := mload(_postBytes)

            // if lengths don't match the arrays are not equal
            switch eq(slength, mlength)
            case 1 {
                // slength can contain both the length and contents of the array
                // if length < 32 bytes so let's prepare for that
                // v. http://solidity.readthedocs.io/en/latest/miscellaneous.html#layout-of-state-variables-in-storage
                if iszero(iszero(slength)) {
                    switch lt(slength, 32)
                    case 1 {
                        // blank the last byte which is the length
                        fslot := mul(div(fslot, 0x100), 0x100)

                        if iszero(eq(fslot, mload(add(_postBytes, 0x20)))) {
                            // unsuccess:
                            success := 0
                        }
                    }
                    default {
                        // cb is a circuit breaker in the for loop since there's
                        //  no said feature for inline assembly loops
                        // cb = 1 - don't breaker
                        // cb = 0 - break
                        let cb := 1

                        // get the keccak hash to get the contents of the array
                        mstore(0x0, _preBytes.slot)
                        let sc := keccak256(0x0, 0x20)

                        let mc := add(_postBytes, 0x20)
                        let end := add(mc, mlength)

                        // the next line is the loop condition:
                        // while(uint256(mc < end) + cb == 2)
                        for {} eq(add(lt(mc, end), cb), 2) {
                            sc := add(sc, 1)
                            mc := add(mc, 0x20)
                        } {
                            if iszero(eq(sload(sc), mload(mc))) {
                                // unsuccess:
                                success := 0
                                cb := 0
                            }
                        }
                    }
                }
            }
            default {
                // unsuccess:
                success := 0
            }
        }

        return success;
    }
}

File 9 of 20 : HasCallbacks.sol
// SPDX-License-Identifier: CLOSED - Pending Licensing Audit
pragma solidity ^0.8.4;
import "./HasRegistration.sol";
import "./IHandlerCallback.sol";

contract HasCallbacks is HasRegistration {

    bool allowCallbacks = true;
    
    event CallbackExecuted(address _from, address _to, address target, uint256 tokenId, bytes4 targetFunction, IHandlerCallback.CallbackType _type, bytes returnData);
    event CallbackReverted(address _from, address _to, address target, uint256 tokenId, bytes4 targetFunction, IHandlerCallback.CallbackType _type);
    event CallbackFailed(address _from, address _to, address target, uint256 tokenId, bytes4 targetFunction, IHandlerCallback.CallbackType _type);
    
    mapping(address => mapping(uint256 => mapping(IHandlerCallback.CallbackType => IHandlerCallback.Callback[]))) public registeredCallbacks;
    mapping(address => mapping(IHandlerCallback.CallbackType => IHandlerCallback.Callback[])) public registeredWildcardCallbacks;    

    modifier isOwnerOrCallbackRegistrant(address _contract, address target, uint256 tokenId, IHandlerCallback.CallbackType _type, uint256 index) {
        bool registrant = false;
        if (hasTokenIdCallback(_contract, target, tokenId, _type)) {
            registrant = registeredCallbacks[_contract][tokenId][_type][index].registrant == _msgSender();
        } else if(hasWildcardCallback(_contract, target, _type)) {
           registrant = registeredWildcardCallbacks[_contract][_type][index].registrant == _msgSender();
        }        
        require(_msgSender() == owner() || registrant, "Not owner or Callback registrant");
        _;
    }

    function executeCallbacks(address _from, address _to, uint256 tokenId, IHandlerCallback.CallbackType _type) public isRegisteredContract(_msgSender()) {
        if (allowCallbacks) {
            IHandlerCallback.Callback[] memory callbacks = registeredCallbacks[_msgSender()][tokenId][_type];
            if (callbacks.length > 0) executeCallbackLoop(callbacks, _from, _to, tokenId, _type);
            IHandlerCallback.Callback[] memory wildCardCallbacks = registeredWildcardCallbacks[_msgSender()][_type];
            if (wildCardCallbacks.length > 0) executeCallbackLoop(wildCardCallbacks, _from, _to, tokenId, _type);
        }
    }

    function executeCallbacksInternal(address _nftAddress, address _from, address _to, uint256 tokenId, IHandlerCallback.CallbackType _type) internal isRegisteredContract(_nftAddress) {
         if (allowCallbacks) {
            IHandlerCallback.Callback[] memory callbacks = registeredCallbacks[_nftAddress][tokenId][_type];
            if (callbacks.length > 0) executeCallbackLoop(callbacks, _from, _to, tokenId, _type);
            IHandlerCallback.Callback[] memory wildCardCallbacks = registeredWildcardCallbacks[_nftAddress][_type];
            if (wildCardCallbacks.length > 0) executeCallbackLoop(wildCardCallbacks, _from, _to, tokenId, _type);
         }
    }

    function executeCallbackLoop(IHandlerCallback.Callback[] memory callbacks, address _from, address _to, uint256 tokenId, IHandlerCallback.CallbackType _type) internal {
        bool canRevert = false;  
        for (uint256 i = 0; i < callbacks.length; ++i) {            
            IHandlerCallback.Callback memory cb = callbacks[i];    
            canRevert = cb.canRevert;
            if (cb.target != address(0)){
                (bool success, bytes memory returnData) =
                    address(cb.target).call(
                        abi.encodePacked(
                            cb.targetFunction,
                            abi.encode(_from),
                            abi.encode(_to),
                            abi.encode(tokenId)
                        )
                    );
                if (success) {
                    emit CallbackExecuted(_from, _to, cb.target, tokenId, cb.targetFunction, _type, returnData);
                } else if (canRevert) {
                    emit CallbackReverted(_from, _to, cb.target, tokenId, cb.targetFunction, _type);
                    revert("Callback Reverted");
                } else {
                    emit CallbackFailed(_from, _to, cb.target, tokenId, cb.targetFunction, _type);
                }
            }
        }
    }

    function toggleAllowCallbacks() public onlyOwner {
        allowCallbacks = !allowCallbacks;
    }

    function registerCallback(address _contract, address target, uint256 tokenId, IHandlerCallback.CallbackType _type, bytes4 _function, bool allowRevert) isRegisteredContract(_contract) onlyOwner public {
        registeredCallbacks[_contract][tokenId][_type].push(IHandlerCallback.Callback(_contract, _msgSender(), target, _function, allowRevert ));
    }

    function registerWildcardCallback(address _contract, address target, IHandlerCallback.CallbackType _type, bytes4 _function, bool allowRevert) isRegisteredContract(_contract) onlyOwner public {
        registeredWildcardCallbacks[_contract][_type].push(IHandlerCallback.Callback(_contract, _msgSender(), target, _function, allowRevert ));
    }

    function hasCallback(address _contract, address target, uint256 tokenId, IHandlerCallback.CallbackType _type) public view returns (bool ) {
        bool found = hasTokenIdCallback(_contract, target, tokenId, _type);
        if (found) return true;
        return hasWildcardCallback(_contract, target, _type);
    }

    function hasTokenIdCallback(address _contract, address target, uint256 tokenId, IHandlerCallback.CallbackType _type) internal view returns(bool) {
        bool found = false;
        IHandlerCallback.Callback[] memory callbacks = registeredCallbacks[_contract][tokenId][_type];
        for (uint256 i = 0; i < callbacks.length; ++i) {
            if (callbacks[i].target == target) {
                found = true;
            }
        }
        return found;
    }

    function hasWildcardCallback(address _contract, address target, IHandlerCallback.CallbackType _type) internal view returns(bool) {
        bool found = false;
        IHandlerCallback.Callback[] memory callbacks = registeredWildcardCallbacks[_contract][_type];
        for (uint256 i = 0; i < callbacks.length; ++i) {
            if (callbacks[i].target == target) {
                found = true;
            }
        }
        return found;
    }

    function unregisterCallback(address _contract, address target, uint256 tokenId, IHandlerCallback.CallbackType _type, uint256 index) public isOwnerOrCallbackRegistrant(_contract, target, tokenId, _type, index){
        if (hasTokenIdCallback(_contract, target, tokenId, _type)) {
            IHandlerCallback.Callback[] storage arr = registeredCallbacks[_contract][tokenId][_type];
            arr[index] = arr[arr.length - 1];
            arr.pop();
            // delete registeredCallbacks[_contract][tokenId][_type][index];
        }
        else if(hasWildcardCallback(_contract, target, _type)) {
            IHandlerCallback.Callback[] storage arr = registeredWildcardCallbacks[_contract][_type];
            arr[index] = arr[arr.length - 1];
            arr.pop();
            // delete registeredWildcardCallbacks[_contract][_type][index];
        }
    }

    uint256 public ticks = 0;
    uint256 public lastTokenId = 0;
    address public lastTo;
    address public lastFrom;
    address public lastContract;

    function testCallback(address _from, address _to, uint256 tokenId) public {
        ticks++;
        lastTokenId = tokenId;
        lastTo = _to;
        lastFrom = _from;  
        lastContract = _msgSender();
    }

    function testRevertCallback(address _from, address _to, uint256 tokenId) public pure {
        _from = address(0);
        _to = address(0);
        tokenId = 0;
        revert("reverted by design");
    }

    function getTestSelector() public view returns (bytes4) {
        return HasCallbacks(this).testCallback.selector;
    }

    function getTestRevertSelector() public view returns (bytes4) {
        return HasCallbacks(this).testRevertCallback.selector;
    }
}

File 10 of 20 : SafeMath.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
library SafeMath {
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        // Solidity only automatically asserts when dividing by 0
        require(b > 0, errorMessage);
        uint256 c = a / b;

        return c;
    }
}

File 11 of 20 : IIsSerialized.sol
// SPDX-License-Identifier: CLOSED - Pending Licensing Audit
pragma solidity ^0.8.4;
interface IIsSerialized {
    function isSerialized() external view returns (bool);
    function getSerial(uint256 tokenId, uint256 index) external view returns (uint256);
    function getFirstSerialByOwner(address owner, uint256 tokenId) external view returns (uint256);
    function getOwnerOfSerial(uint256 serialNumber) external view returns (address);
    function getSerialByOwnerAtIndex(address _owner, uint256 tokenId, uint256 index) external view returns (uint256);
    function getTokenIdForSerialNumber(uint256 serialNumber) external view returns (uint256);
    function isOverloadSerial() external view returns (bool);
}

File 12 of 20 : IERC721.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
interface IERC721 {
    function burn(uint256 tokenId) external;
    function transferFrom(address from, address to, uint256 tokenId) external;
    function mint( address _to, uint256 _tokenId, string calldata _uri, string calldata _payload) external;
    function changeName(string calldata name, string calldata symbol) external;
    function updateTokenUri(uint256 _tokenId,string memory _uri) external;
    function tokenPayload(uint256 _tokenId) external view returns (string memory);
    function ownerOf(uint256 _tokenId) external view returns (address _owner);
    function getApproved(uint256 _tokenId) external returns (address);
    function safeTransferFrom(address _from, address _to, uint256 _tokenId) external;
    function safeTransferFrom(address _from, address _to, uint256 _tokenId, bytes calldata data) external;
    function totalSupply() external view returns (uint256);
    function tokenOfOwnerByIndex(address _owner, uint256 _index) external view returns (uint256);
    function tokenByIndex(uint256 _index) external view returns (uint256);
    function balanceOf(address account, uint256 id) external view returns (uint256);
    function isApprovedForAll(address _owner, address _operator) external view returns (bool);
    function setApprovalForAll( address _operator, bool _approved) external;

}

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

File 13 of 20 : IERC165.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.4;
interface IERC165 {
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 14 of 20 : IHandlerCallback.sol
// SPDX-License-Identifier: CLOSED - Pending Licensing Audit
pragma solidity ^0.8.4;

interface IHandlerCallback {
    enum CallbackType {
        MINT, TRANSFER, CLAIM, BURN, FALLBACK
    }

    struct Callback {
        address vault;
        address registrant;
        address target;
        bytes4 targetFunction;
        bool canRevert;
    }
    function executeCallbacksInternal(address _from, address _to, uint256 tokenId, CallbackType _type) external;
    function executeCallbacks(address _from, address _to, uint256 tokenId, CallbackType _type) external;
    function executeStoredCallbacksInternal(address _nftAddress, address _from, address _to, uint256 tokenId, IHandlerCallback.CallbackType _type) external;
    
}

File 15 of 20 : HasRegistration.sol
// SPDX-License-Identifier: CLOSED - Pending Licensing Audit
pragma solidity ^0.8.4;
import "./IsBypassable.sol";

contract HasRegistration is IsBypassable {

    mapping(address => uint256) public registeredContracts; // 0 EMPTY, 1 ERC1155, 2 ERC721, 3 HANDLER, 4 ERC20, 5 BALANCE, 6 CLAIM, 7 UNKNOWN, 8 FACTORY, 9 STAKING, 10 BYPASS
    mapping(uint256 => address[]) internal registeredOfType;

    modifier isRegisteredContract(address _contract) {
        require(registeredContracts[_contract] > 0, "Contract is not registered");
        _;
    }

    modifier isRegisteredContractOrOwner(address _contract) {
        require(registeredContracts[_contract] > 0 || owner() == _msgSender(), "Contract is not registered nor Owner");
        _;
    }

    function registerContract(address _contract, uint _type) public isRegisteredContractOrOwner(_msgSender()) {
        registeredContracts[_contract] = _type;
        registeredOfType[_type].push(_contract);
    }

    function unregisterContract(address _contract, uint256 index) public onlyOwner isRegisteredContract(_contract) {
        address[] storage arr = registeredOfType[registeredContracts[_contract]];
        arr[index] = arr[arr.length - 1];
        arr.pop();
        delete registeredContracts[_contract];
    }

    function isRegistered(address _contract, uint256 _type) public view returns (bool) {
        return registeredContracts[_contract] == _type;
    }

    function getAllRegisteredContractsOfType(uint256 _type) public view returns (address[] memory) {
        return registeredOfType[_type];
    }
}

File 16 of 20 : IsBypassable.sol
// SPDX-License-Identifier: CLOSED - Pending Licensing Audit
pragma solidity ^0.8.4;

import "./IsClaimable.sol";

abstract contract IsBypassable is IsClaimable {

    bool byPassable;
    mapping(address => mapping(bytes4 => bool)) byPassableFunction;
    mapping(address => mapping(uint256 => bool)) byPassableIds;

    modifier onlyOwner virtual override {
        bool _canBypass = byPassable && byPassableFunction[_msgSender()][msg.sig];
        require(owner() == _msgSender() || _canBypass, "Not owner or able to bypass");
            _;
    }

    modifier onlyOwnerOrBypassWithId(uint256 id) {
        require (owner() == _msgSender() || (id != 0 && byPassableIds[_msgSender()][id] ), "Invalid id");
            _;
    }

    function canBypass() internal view returns(bool) {
        return (byPassable && byPassableFunction[_msgSender()][msg.sig]);
    }

    function canBypassForTokenId(uint256 id) internal view returns(bool) {
        return (byPassable && canBypass() && byPassableIds[_msgSender()][id]);
    }

    function toggleBypassability() public onlyOwner {
      byPassable = !byPassable;
    }

    function addBypassRule(address who, bytes4 functionSig, uint256 id) public onlyOwner {
        byPassableFunction[who][functionSig] = true;
        if (id != 0) {
            byPassableIds[who][id] = true;
        }        
    }

    function removeBypassRule(address who, bytes4 functionSig, uint256 id) public onlyOwner {
        byPassableFunction[who][functionSig] = false;
        if (id !=0) {
            byPassableIds[who][id] = true;
        }
    }
}

File 17 of 20 : IsClaimable.sol
// SPDX-License-Identifier: CLOSED - Pending Licensing Audit
pragma solidity ^0.8.4;
import "./OwnableUpgradeable.sol";
abstract contract IsClaimable is OwnableUpgradeable {

    bool public isClaimable;

    function toggleClaimable() public onlyOwner {
        isClaimable = !isClaimable;
    }
   
}

File 18 of 20 : OwnableUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.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 OwnableUpgradeable is Initializable, ContextUpgradeable {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    function __Ownable_init() internal onlyInitializing {
        __Ownable_init_unchained();
    }

    function __Ownable_init_unchained() internal onlyInitializing {
        _transferOwnership(_msgSender());
    }

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() 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);
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[49] private __gap;
}

File 19 of 20 : ContextUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";

/**
 * @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 ContextUpgradeable is Initializable {
    function __Context_init() internal onlyInitializing {
    }

    function __Context_init_unchained() internal onlyInitializing {
    }
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

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

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}

File 20 of 20 : Initializable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (proxy/utils/Initializable.sol)

pragma solidity ^0.8.2;

import "../../utils/AddressUpgradeable.sol";

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be
 * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in
 * case an upgrade adds a module that needs to be initialized.
 *
 * For example:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * contract MyToken is ERC20Upgradeable {
 *     function initialize() initializer public {
 *         __ERC20_init("MyToken", "MTK");
 *     }
 * }
 * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {
 *     function initializeV2() reinitializer(2) public {
 *         __ERC20Permit_init("MyToken");
 *     }
 * }
 * ```
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke
 * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() {
 *     _disableInitializers();
 * }
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     * @custom:oz-retyped-from bool
     */
    uint8 private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Triggered when the contract has been initialized or reinitialized.
     */
    event Initialized(uint8 version);

    /**
     * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,
     * `onlyInitializing` functions can be used to initialize parent contracts. Equivalent to `reinitializer(1)`.
     */
    modifier initializer() {
        bool isTopLevelCall = !_initializing;
        require(
            (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),
            "Initializable: contract is already initialized"
        );
        _initialized = 1;
        if (isTopLevelCall) {
            _initializing = true;
        }
        _;
        if (isTopLevelCall) {
            _initializing = false;
            emit Initialized(1);
        }
    }

    /**
     * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the
     * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be
     * used to initialize parent contracts.
     *
     * `initializer` is equivalent to `reinitializer(1)`, so a reinitializer may be used after the original
     * initialization step. This is essential to configure modules that are added through upgrades and that require
     * initialization.
     *
     * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in
     * a contract, executing them in the right order is up to the developer or operator.
     */
    modifier reinitializer(uint8 version) {
        require(!_initializing && _initialized < version, "Initializable: contract is already initialized");
        _initialized = version;
        _initializing = true;
        _;
        _initializing = false;
        emit Initialized(version);
    }

    /**
     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
     * {initializer} and {reinitializer} modifiers, directly or indirectly.
     */
    modifier onlyInitializing() {
        require(_initializing, "Initializable: contract is not initializing");
        _;
    }

    /**
     * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.
     * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized
     * to any version. It is recommended to use this to lock implementation contracts that are designed to be called
     * through proxies.
     */
    function _disableInitializers() internal virtual {
        require(!_initializing, "Initializable: contract is initializing");
        if (_initialized < type(uint8).max) {
            _initialized = type(uint8).max;
            emit Initialized(type(uint8).max);
        }
    }
}

File 21 of 20 : AddressUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_from","type":"address"},{"indexed":false,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"address","name":"target","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"bytes4","name":"targetFunction","type":"bytes4"},{"indexed":false,"internalType":"enum IHandlerCallback.CallbackType","name":"_type","type":"uint8"},{"indexed":false,"internalType":"bytes","name":"returnData","type":"bytes"}],"name":"CallbackExecuted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_from","type":"address"},{"indexed":false,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"address","name":"target","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"bytes4","name":"targetFunction","type":"bytes4"},{"indexed":false,"internalType":"enum IHandlerCallback.CallbackType","name":"_type","type":"uint8"}],"name":"CallbackFailed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_from","type":"address"},{"indexed":false,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"address","name":"target","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"bytes4","name":"targetFunction","type":"bytes4"},{"indexed":false,"internalType":"enum IHandlerCallback.CallbackType","name":"_type","type":"uint8"}],"name":"CallbackReverted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","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"},{"inputs":[{"internalType":"address","name":"who","type":"address"},{"internalType":"bytes4","name":"functionSig","type":"bytes4"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"addBypassRule","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_witness","type":"address"}],"name":"addWitness","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_nftAddress","type":"address"},{"internalType":"address","name":"_payment","type":"address"},{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_nonce","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"},{"internalType":"bytes","name":"serialNumber","type":"bytes"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"buyWithSignedPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"changeMetadataBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"}],"name":"changeRecipient","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_nftAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"claim","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":"enum IHandlerCallback.CallbackType","name":"_type","type":"uint8"}],"name":"executeCallbacks","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_nftAddress","type":"address"},{"internalType":"address","name":"_payment","type":"address"},{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_nonce","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"getAddressFromSignature","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_hash","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"getAddressFromSignatureHash","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"_nftAddress","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_nonce","type":"uint256"},{"internalType":"string","name":"payload","type":"string"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"getAddressFromSignatureMint","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"newTokenId","type":"uint256"},{"internalType":"uint256","name":"_nonce","type":"uint256"},{"internalType":"bytes","name":"serialNumber","type":"bytes"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"getAddressFromSignatureMove","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_type","type":"uint256"}],"name":"getAllRegisteredContractsOfType","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTestRevertSelector","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTestSelector","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"},{"internalType":"address","name":"target","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"enum IHandlerCallback.CallbackType","name":"_type","type":"uint8"}],"name":"hasCallback","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initialized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isClaimable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"},{"internalType":"uint256","name":"_type","type":"uint256"}],"name":"isRegistered","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_hash","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"isWitnessed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastFrom","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastTo","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"metadataBaseUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_nftAddress","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"string","name":"_uri","type":"string"},{"internalType":"string","name":"_payload","type":"string"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_nftAddress","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes[]","name":"serialNumbers","type":"bytes[]"}],"name":"mintBatch","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":"uint256","name":"newTokenId","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"bytes","name":"serialNumber","type":"bytes"}],"name":"moveVault","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"recipientAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"bytes","name":"sig","type":"bytes"}],"name":"recoverSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"},{"internalType":"address","name":"target","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"enum IHandlerCallback.CallbackType","name":"_type","type":"uint8"},{"internalType":"bytes4","name":"_function","type":"bytes4"},{"internalType":"bool","name":"allowRevert","type":"bool"}],"name":"registerCallback","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"},{"internalType":"uint256","name":"_type","type":"uint256"}],"name":"registerContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"},{"internalType":"address","name":"target","type":"address"},{"internalType":"enum IHandlerCallback.CallbackType","name":"_type","type":"uint8"},{"internalType":"bytes4","name":"_function","type":"bytes4"},{"internalType":"bool","name":"allowRevert","type":"bool"}],"name":"registerWildcardCallback","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"enum IHandlerCallback.CallbackType","name":"","type":"uint8"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"registeredCallbacks","outputs":[{"internalType":"address","name":"vault","type":"address"},{"internalType":"address","name":"registrant","type":"address"},{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes4","name":"targetFunction","type":"bytes4"},{"internalType":"bool","name":"canRevert","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"registeredContracts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"enum IHandlerCallback.CallbackType","name":"","type":"uint8"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"registeredWildcardCallbacks","outputs":[{"internalType":"address","name":"vault","type":"address"},{"internalType":"address","name":"registrant","type":"address"},{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes4","name":"targetFunction","type":"bytes4"},{"internalType":"bool","name":"canRevert","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"who","type":"address"},{"internalType":"bytes4","name":"functionSig","type":"bytes4"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"removeBypassRule","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_witness","type":"address"}],"name":"removeWitness","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"shouldBurn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"testCallback","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"testRevertCallback","outputs":[],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"ticks","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleAllowCallbacks","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleBypassability","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleClaimable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleShouldBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_nftAddress","type":"address"},{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferNftOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"},{"internalType":"address","name":"target","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"enum IHandlerCallback.CallbackType","name":"_type","type":"uint8"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"unregisterCallback","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"unregisterContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"witnesses","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]

606b805460ff191660011790556000606e819055606f5560e0604052602d60808181529062005f6e60a0398051620000409160749160209091019062000067565b506075805460ff60a81b191690553480156200005b57600080fd5b5060016000556200014a565b82805462000075906200010d565b90600052602060002090601f016020900481019282620000995760008555620000e4565b82601f10620000b457805160ff1916838001178555620000e4565b82800160010185558215620000e4579182015b82811115620000e4578251825591602001919060010190620000c7565b50620000f2929150620000f6565b5090565b5b80821115620000f25760008155600101620000f7565b600181811c908216806200012257607f821691505b602082108114156200014457634e487b7160e01b600052602260045260246000fd5b50919050565b615e14806200015a6000396000f3fe608060405234801561001057600080fd5b50600436106102725760003560e01c806301ffc9a71461027757806302eec8e3146102b95780630d7def95146102ce5780630e36b3d1146102d6578063152f0eb5146102e9578063158ef93e146102fc5780631986166f146103095780631beab0f61461031c5780632adbc37d1461032f5780632cf1dacb146103375780632cfffaf61461034a5780632d5199101461036157806330c962ba1461038157806331b48055146103d7578063321c3cf6146103eb57806336864adb1461040e5780633a1cb9a01461042357806340897bbe146104365780634fbe40b41461043e57806359e26be1146104515780635aff5999146104645780635bf2745f1461047c5780635d1c03dd1461048f578063633824c9146104a2578063684ee7de146104b5578063715018a6146104c857806374478bb3146104d05780637b74297d146104dd57806380443378146104fd5780638129fc1c146105105780638da5cb5b1461051857806392c2bcb41461052057806397aba7f91461053357806398be7ff7146105465780639f74708b1461055c578063a06617cd1461056f578063a5c101291461058f578063a8f1602c146105a2578063aad3ec96146105cf578063b1557c2c146105e2578063b5683e91146105f5578063b68c437914610608578063ba5afc171461061b578063bb59a8e91461062e578063bd54c89c14610641578063c146844714610654578063c810dbbc14610667578063dcdd208214610674578063e2f1788014610687578063ebc7fd7c1461069a578063ee2f13cd146106ad578063f2fde38b146106c0578063f762d22e146106d3578063f84ddf0b146106db575b600080fd5b6102a4610285366004615486565b6001600160e01b03191660009081526073602052604090205460ff1690565b60405190151581526020015b60405180910390f35b6102cc6102c7366004614c33565b6106e4565b005b6102cc61085a565b6102cc6102e4366004614fc3565b6108f4565b6102cc6102f736600461536d565b610b07565b6075546102a49060ff1681565b6102cc610317366004615303565b610bd9565b6102cc61032a36600461536d565b610cc4565b6102cc610e97565b6102cc610345366004615303565b610f2d565b610353606e5481565b6040519081526020016102b0565b61037461036f366004615131565b611014565b6040516102b09190615725565b61039461038f366004615340565b611078565b604080516001600160a01b039687168152948616602086015292909416918301919091526001600160e01b0319166060820152901515608082015260a0016102b0565b6075546102a490600160a81b900460ff1681565b6102a46103f9366004614bbc565b60766020526000908152604090205460ff1681565b6104166110eb565b6040516102b09190615a7f565b6102a4610431366004614f73565b611179565b6102cc6111b1565b6102cc61044c366004615037565b61123e565b6102cc61045f366004614bbc565b61180e565b6075546103749061010090046001600160a01b031681565b61039461048a366004615398565b6118ab565b6102cc61049d366004614dbd565b61192b565b6103746104b03660046153f9565b611972565b6102cc6104c3366004614dbd565b6119be565b6102cc611a34565b6066546102a49060ff1681565b6104f06104eb3660046154df565b611ab9565b6040516102b09190615a29565b607154610374906001600160a01b031681565b6102cc611b25565b610374611c61565b6102cc61052e366004614bbc565b611c70565b610374610541366004615442565b611d11565b63342773ef60e11b5b6040516102b09190615a6a565b6102cc61056a36600461508f565b611dfb565b61035361057d366004614bbc565b60696020526000908152604090205481565b6102cc61059d3660046151d5565b611fd6565b6102a46105b036600461536d565b6001600160a01b03919091166000908152606960205260409020541490565b6102cc6105dd36600461536d565b6127c5565b607254610374906001600160a01b031681565b610374610603366004614ed1565b612eeb565b6102cc610616366004614f73565b612fa0565b61037461062936600461527c565b61322e565b6102a461063c3660046153f9565b613268565b6102cc61064f3660046154a0565b6132cf565b607054610374906001600160a01b031681565b635d1c03dd60e01b61054f565b6102cc610682366004614d51565b613353565b6102cc610695366004614bfb565b61355a565b6102cc6106a8366004614dfd565b61362c565b6102cc6106bb366004614bbc565b613b20565b6102cc6106ce366004614bbc565b613bba565b6102cc613ca4565b610353606f5481565b606654600090610100900460ff168015610723575033600090815260676020908152604080832083356001600160e01b031916845290915290205460ff165b90503361072e611c61565b6001600160a01b031614806107405750805b6107655760405162461bcd60e51b815260040161075c90615aed565b60405180910390fd5b6040516301ffc9a760e01b81526001600160a01b038716906301ffc9a79061079890636cdb3d1360e11b90600401615a6a565b60206040518083038186803b1580156107b057600080fd5b505afa1580156107c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107e891906153dd565b156108525760405163381b320160e11b81526001600160a01b0387169063703664029061081f908890889088908890600401615802565b600060405180830381600087803b15801561083957600080fd5b505af115801561084d573d6000803e3d6000fd5b505050505b505050505050565b606654600090610100900460ff168015610899575033600090815260676020908152604080832083356001600160e01b031916845290915290205460ff165b9050336108a4611c61565b6001600160a01b031614806108b65750805b6108d25760405162461bcd60e51b815260040161075c90615aed565b506075805460ff60a81b198116600160a81b9182900460ff1615909102179055565b6001600160a01b038616600090815260696020526040902054869061092b5760405162461bcd60e51b815260040161075c90615a92565b606654600090610100900460ff16801561096a575033600090815260676020908152604080832083356001600160e01b031916845290915290205460ff165b905033610975611c61565b6001600160a01b031614806109875750805b6109a35760405162461bcd60e51b815260040161075c90615aed565b6001600160a01b0388166000908152606c602090815260408083208984529091528120908660048111156109e757634e487b7160e01b600052602160045260246000fd5b6004811115610a0657634e487b7160e01b600052602160045260246000fd5b81526020019081526020016000206040518060a001604052808a6001600160a01b03168152602001610a353390565b6001600160a01b039081168252998a166020808301919091526001600160e01b031990971660408083019190915295151560609182015282546001818101855560009485529388902083516003909202018054918c166001600160a01b0319928316178155978301519388018054948c1694909116939093179092559384015160029095018054918501516080909501511515600160c01b0260ff60c01b1960e09690961c600160a01b026001600160c01b031990931696909916959095171792909216959095179091555050505050565b33600081815260696020526040902054151580610b33575033610b28611c61565b6001600160a01b0316145b610b8b5760405162461bcd60e51b8152602060048201526024808201527f436f6e7472616374206973206e6f742072656769737465726564206e6f72204f6044820152633bb732b960e11b606482015260840161075c565b506001600160a01b039091166000818152606960209081526040808320859055938252606a8152928120805460018101825590825292902090910180546001600160a01b0319169091179055565b606654600090610100900460ff168015610c18575033600090815260676020908152604080832083356001600160e01b031916845290915290205460ff165b905033610c23611c61565b6001600160a01b03161480610c355750805b610c515760405162461bcd60e51b815260040161075c90615aed565b6001600160a01b03841660009081526067602090815260408083206001600160e01b0319871684529091529020805460ff191660011790558115610cbe576001600160a01b03841660009081526068602090815260408083208584529091529020805460ff191660011790555b50505050565b606654600090610100900460ff168015610d03575033600090815260676020908152604080832083356001600160e01b031916845290915290205460ff165b905033610d0e611c61565b6001600160a01b03161480610d205750805b610d3c5760405162461bcd60e51b815260040161075c90615aed565b6001600160a01b0383166000908152606960205260409020548390610d735760405162461bcd60e51b815260040161075c90615a92565b6001600160a01b0384166000908152606960209081526040808320548352606a909152902080548190610da890600190615cf6565b81548110610dc657634e487b7160e01b600052603260045260246000fd5b9060005260206000200160009054906101000a90046001600160a01b0316818581548110610e0457634e487b7160e01b600052603260045260246000fd5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555080805480610e5057634e487b7160e01b600052603160045260246000fd5b60008281526020808220830160001990810180546001600160a01b03191690559092019092556001600160a01b039690961681526069909552505060408320929092555050565b606654600090610100900460ff168015610ed6575033600090815260676020908152604080832083356001600160e01b031916845290915290205460ff165b905033610ee1611c61565b6001600160a01b03161480610ef35750805b610f0f5760405162461bcd60e51b815260040161075c90615aed565b506066805461ff001981166101009182900460ff1615909102179055565b606654600090610100900460ff168015610f6c575033600090815260676020908152604080832083356001600160e01b031916845290915290205460ff165b905033610f77611c61565b6001600160a01b03161480610f895750805b610fa55760405162461bcd60e51b815260040161075c90615aed565b6001600160a01b03841660009081526067602090815260408083206001600160e01b0319871684529091529020805460ff191690558115610cbe576001600160a01b03841660009081526068602090815260408083208584529091529020805460ff1916600117905550505050565b60008581526077602052604081205460ff161561103057600080fd5b61106b89898989898960405160200161104e96959493929190615617565b604051602081830303815290604052805190602001208484611972565b9998505050505050505050565b606d60205282600052604060002060205281600052604060002081815481106110a057600080fd5b60009182526020909120600390910201805460018201546002909201546001600160a01b039182169550918116935081169150600160a01b810460e01b90600160c01b900460ff1685565b607480546110f890615d39565b80601f016020809104026020016040519081016040528092919081815260200182805461112490615d39565b80156111715780601f1061114657610100808354040283529160200191611171565b820191906000526020600020905b81548152906001019060200180831161115457829003601f168201915b505050505081565b60008061118886868686613d31565b9050801561119a5760019150506111a9565b6111a5868685613ec5565b9150505b949350505050565b606654600090610100900460ff1680156111f0575033600090815260676020908152604080832083356001600160e01b031916845290915290205460ff165b9050336111fb611c61565b6001600160a01b0316148061120d5750805b6112295760405162461bcd60e51b815260040161075c90615aed565b506066805460ff19811660ff90911615179055565b8484848484600061125186868686613d31565b1561130c576001600160a01b0386166000908152606c602090815260408083208784529091528120339185600481111561129b57634e487b7160e01b600052602160045260246000fd5b60048111156112ba57634e487b7160e01b600052602160045260246000fd5b815260200190815260200160002083815481106112e757634e487b7160e01b600052603260045260246000fd5b60009182526020909120600160039092020101546001600160a01b03161490506113c3565b611317868685613ec5565b156113c3576001600160a01b0386166000908152606d60205260408120339185600481111561135657634e487b7160e01b600052602160045260246000fd5b600481111561137557634e487b7160e01b600052602160045260246000fd5b815260200190815260200160002083815481106113a257634e487b7160e01b600052603260045260246000fd5b60009182526020909120600160039092020101546001600160a01b03161490505b6113cb611c61565b6001600160a01b0316336001600160a01b031614806113e75750805b6114335760405162461bcd60e51b815260206004820181905260248201527f4e6f74206f776e6572206f722043616c6c6261636b2072656769737472616e74604482015260640161075c565b61143f8b8b8b8b613d31565b15611622576001600160a01b038b166000908152606c602090815260408083208c84529091528120818a600481111561148857634e487b7160e01b600052602160045260246000fd5b60048111156114a757634e487b7160e01b600052602160045260246000fd5b8152602001908152602001600020905080600182805490506114c99190615cf6565b815481106114e757634e487b7160e01b600052603260045260246000fd5b906000526020600020906003020181898154811061151557634e487b7160e01b600052603260045260246000fd5b60009182526020909120825460039092020180546001600160a01b03199081166001600160a01b039384161782556001808501549083018054831691851691909117905560029384018054949092018054918216949093169384178355815463ffffffff600160a01b9182900416026001600160c01b031990911690931792909217808255915460ff600160c01b918290041615150260ff60c01b1990921691909117905580548190806115d957634e487b7160e01b600052603160045260246000fd5b60008281526020902060036000199092019182020180546001600160a01b03199081168255600182018054909116905560020180546001600160c81b0319169055905550611801565b61162d8b8b8a613ec5565b15611801576001600160a01b038b166000908152606d60205260408120818a600481111561166b57634e487b7160e01b600052602160045260246000fd5b600481111561168a57634e487b7160e01b600052602160045260246000fd5b8152602001908152602001600020905080600182805490506116ac9190615cf6565b815481106116ca57634e487b7160e01b600052603260045260246000fd5b90600052602060002090600302018189815481106116f857634e487b7160e01b600052603260045260246000fd5b60009182526020909120825460039092020180546001600160a01b03199081166001600160a01b039384161782556001808501549083018054831691851691909117905560029384018054949092018054918216949093169384178355815463ffffffff600160a01b9182900416026001600160c01b031990911690931792909217808255915460ff600160c01b918290041615150260ff60c01b1990921691909117905580548190806117bc57634e487b7160e01b600052603160045260246000fd5b60008281526020902060036000199092019182020180546001600160a01b03199081168255600182018054909116905560020180546001600160c81b03191690559055505b5050505050505050505050565b606654600090610100900460ff16801561184d575033600090815260676020908152604080832083356001600160e01b031916845290915290205460ff165b905033611858611c61565b6001600160a01b0316148061186a5750805b6118865760405162461bcd60e51b815260040161075c90615aed565b506001600160a01b03166000908152607660205260409020805460ff19166001179055565b606c60205283600052604060002060205282600052604060002060205281600052604060002081815481106118df57600080fd5b60009182526020909120600390910201805460018201546002909201546001600160a01b039182169650918116945081169250600160a01b810460e01b9150600160c01b900460ff1685565b505060405162461bcd60e51b81526020600482015260126024820152713932bb32b93a32b210313c903232b9b4b3b760711b6044820152600091508190819060640161075c565b6000806119b58585858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611d1192505050565b95945050505050565b606e80549060006119ce83615d74565b9091555050606f819055607080546001600160a01b038085166001600160a01b0319928316179092556071805492861692909116919091179055611a0f3390565b607280546001600160a01b0319166001600160a01b0392909216919091179055505050565b606654600090610100900460ff168015611a73575033600090815260676020908152604080832083356001600160e01b031916845290915290205460ff165b905033611a7e611c61565b6001600160a01b03161480611a905750805b611aac5760405162461bcd60e51b815260040161075c90615aed565b611ab6600061404d565b50565b6000818152606a6020908152604091829020805483518184028101840190945280845260609392830182828015611b1957602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611afb575b50505050509050919050565b600154610100900460ff1615808015611b4257506001805460ff16105b80611b5b5750303b158015611b5b57506001805460ff16145b611bbe5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840161075c565b6001805460ff1916811790558015611be0576001805461ff0019166101001790555b611be861409f565b611bf361045f611c61565b6075805460016001600160a81b0319909116610100330260ff191617179055611c1a6140d0565b8015611ab6576001805461ff00191681556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a150565b6034546001600160a01b031690565b606654600090610100900460ff168015611caf575033600090815260676020908152604080832083356001600160e01b031916845290915290205460ff165b905033611cba611c61565b6001600160a01b03161480611ccc5750805b611ce85760405162461bcd60e51b815260040161075c90615aed565b50607580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b60008151604114611d5d5760405162461bcd60e51b81526020600482015260166024820152750a4cae2ead2e4ca40c6dee4e4cac6e840d8cadccee8d60531b604482015260640161075c565b60208201516040830151606084015160001a601b811015611d8657611d83601b82615c92565b90505b8060ff16601b1480611d9b57508060ff16601c145b611de55760405162461bcd60e51b815260206004820152601b60248201527a0a6d2cedcc2e8eae4ca40eccae4e6d2dedc40dcdee840dac2e8c6d602b1b604482015260640161075c565b611df186828585614157565b9695505050505050565b606654600090610100900460ff168015611e3a575033600090815260676020908152604080832083356001600160e01b031916845290915290205460ff165b905033611e45611c61565b6001600160a01b03161480611e575750805b611e735760405162461bcd60e51b815260040161075c90615aed565b6040516301ffc9a760e01b81526001600160a01b038a16906301ffc9a790611ea690636cdb3d1360e11b90600401615a6a565b60206040518083038186803b158015611ebe57600080fd5b505afa158015611ed2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ef691906153dd565b15611f6257604051630ab714fb60e11b81526001600160a01b038a169063156e29f690611f2b908b908b908790600401615933565b600060405180830381600087803b158015611f4557600080fd5b505af1158015611f59573d6000803e3d6000fd5b50505050611fcb565b604051632fb102cf60e01b81526001600160a01b038a1690632fb102cf90611f98908b908b908b908b908b908b90600401615981565b600060405180830381600087803b158015611fb257600080fd5b505af1158015611fc6573d6000803e3d6000fd5b505050505b505050505050505050565b60026000541415611ff95760405162461bcd60e51b815260040161075c90615bf0565b600260009081556001600160a01b03891681526069602052604090205488906120345760405162461bcd60e51b815260040161075c90615a92565b6001600160a01b038816600090815260696020526040902054889061206b5760405162461bcd60e51b815260040161075c90615a92565b886001600160a01b03168a6001600160a01b031614156120d75760405162461bcd60e51b815260206004820152602160248201527f43616e6e6f74206d6f7665207661756c7420746f2073616d65206164647265736044820152607360f81b606482015260840161075c565b607660006121168c8c8c8c898d6040516020016120f9969594939291906155c0565b604051602081830303815290604052805190602001208888611972565b6001600160a01b0316815260208101919091526040016000205460ff1661214f5760405162461bcd60e51b815260040161075c90615ac6565b60008681526077602052604090819020805460ff19166001179055516301ffc9a760e01b81526001600160a01b038b16906301ffc9a79061219b90636cdb3d1360e11b90600401615a6a565b60206040518083038186803b1580156121b357600080fd5b505afa1580156121c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121eb91906153dd565b1561235957868814156122555760405162461bcd60e51b815260206004820152602c60248201527f66726f6d3a20546f6b656e496473206d75737420626520646966666572656e7460448201526b20666f72204552433131353560a01b606482015260840161075c565b604051627eeac760e11b81526000906001600160a01b038c169062fdd58e906122849033908d9060040161589a565b60206040518083038186803b15801561229c57600080fd5b505afa1580156122b0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122d491906154f7565b116122f15760405162461bcd60e51b815260040161075c90615b4a565b604051637a94c56560e11b81526001600160a01b038b169063f5298aca906123229033908c90600190600401615933565b600060405180830381600087803b15801561233c57600080fd5b505af1158015612350573d6000803e3d6000fd5b50505050612457565b336040516331a9108f60e11b8152600481018a90526001600160a01b03918216918c1690636352211e9060240160206040518083038186803b15801561239e57600080fd5b505afa1580156123b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123d69190614bdf565b6001600160a01b0316146123fc5760405162461bcd60e51b815260040161075c90615b4a565b604051630852cd8d60e31b8152600481018990526001600160a01b038b16906342966c6890602401600060405180830381600087803b15801561243e57600080fd5b505af1158015612452573d6000803e3d6000fd5b505050505b6040516301ffc9a760e01b81526001600160a01b038a16906301ffc9a79061248a90636cdb3d1360e11b90600401615a6a565b60206040518083038186803b1580156124a257600080fd5b505afa1580156124b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124da91906153dd565b156126b657868814156125425760405162461bcd60e51b815260206004820152602a60248201527f746f3a20546f6b656e496473206d75737420626520646966666572656e7420666044820152696f72204552433131353560b01b606482015260840161075c565b886001600160a01b03166395db5a646040518163ffffffff1660e01b815260040160206040518083038186803b15801561257b57600080fd5b505afa15801561258f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125b391906153dd565b15612685576125c3836000614228565b61261b5760405162461bcd60e51b815260206004820152602360248201527f48616e646c65723a206d7573742070726f766964652073657269616c206e756d6044820152623132b960e91b606482015260840161075c565b6040516345e77bc760e11b81526001600160a01b038a1690638bcef78e9061264e9033908b906001908990600401615954565b600060405180830381600087803b15801561266857600080fd5b505af115801561267c573d6000803e3d6000fd5b505050506127b4565b604051630ab714fb60e11b81526001600160a01b038a169063156e29f69061264e9033908b90600190600401615933565b6001600160a01b038916632fb102cf3389612763607480546126d790615d39565b80601f016020809104026020016040519081016040528092919081815260200182805461270390615d39565b80156127505780601f1061272557610100808354040283529160200191612750565b820191906000526020600020905b81548152906001019060200180831161273357829003601f168201915b505050505061275e8d614286565b6143ca565b6040518463ffffffff1660e01b8152600401612781939291906159bc565b600060405180830381600087803b15801561279b57600080fd5b505af11580156127af573d6000803e3d6000fd5b505050505b505060016000555050505050505050565b600260005414156127e85760405162461bcd60e51b815260040161075c90615bf0565b600260009081556001600160a01b03831681526069602052604090205482906128235760405162461bcd60e51b815260040161075c90615a92565b60066000908152606a6020527f2bc834ff3bba3d80acb54a3bdc4d46c19ade4e4f4db21022926ce2a8be43777a8054829061286e57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546040516301ffc9a760e01b81526001600160a01b0391821692506060918616906301ffc9a7906128b590636cdb3d1360e11b90600401615a6a565b60206040518083038186803b1580156128cd57600080fd5b505afa1580156128e1573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061290591906153dd565b15612ca7578460006001600160a01b038216638cc780de33886040518363ffffffff1660e01b815260040161293b92919061589a565b60206040518083038186803b15801561295357600080fd5b505afa158015612967573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061298b91906154f7565b604051639a7f1f7d60e01b81526004810182905290915086906001600160a01b03841690639a7f1f7d9060240160206040518083038186803b1580156129d057600080fd5b505afa1580156129e4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a0891906154f7565b14612a665760405162461bcd60e51b815260206004820152602860248201527f496e76616c696420746f6b656e49642073657269616c6e756d62657220636f6d6044820152673134b730ba34b7b760c11b606482015260840161075c565b3360405163bbe215f360e01b8152600481018390526001600160a01b039182169184169063bbe215f39060240160206040518083038186803b158015612aab57600080fd5b505afa158015612abf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ae39190614bdf565b6001600160a01b031614612b365760405162461bcd60e51b815260206004820152601a6024820152792737ba1037bbb732b91037b31039b2b934b0b610373ab6b132b960311b604482015260640161075c565b6040516305fbdf1560e21b81526001600160a01b038516906317ef7c5490612b66908a90859088906004016158d6565b602060405180830381600087803b158015612b8057600080fd5b505af1158015612b94573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bb891906153dd565b15612bd55760405162461bcd60e51b815260040161075c90615b7c565b604051637a94c56560e11b81526001600160a01b0388169063f5298aca90612c069033908a90600190600401615933565b600060405180830381600087803b158015612c2057600080fd5b505af1158015612c34573d6000803e3d6000fd5b50505050836001600160a01b0316639e96a2608883612c503390565b6040518463ffffffff1660e01b8152600401612c6e939291906158b3565b600060405180830381600087803b158015612c8857600080fd5b505af1158015612c9c573d6000803e3d6000fd5b505050505050612ed0565b6040516305fbdf1560e21b81526001600160a01b038316906317ef7c5490612cd7908890889086906004016158d6565b602060405180830381600087803b158015612cf157600080fd5b505af1158015612d05573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d2991906153dd565b15612d465760405162461bcd60e51b815260040161075c90615b7c565b84336040516331a9108f60e11b8152600481018790526001600160a01b0391821691831690636352211e9060240160206040518083038186803b158015612d8c57600080fd5b505afa158015612da0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612dc49190614bdf565b6001600160a01b031614612e0c5760405162461bcd60e51b815260206004820152600f60248201526e2737ba102a37b5b2b71027bbb732b960891b604482015260640161075c565b604051630852cd8d60e31b8152600481018690526001600160a01b038216906342966c6890602401600060405180830381600087803b158015612e4e57600080fd5b505af1158015612e62573d6000803e3d6000fd5b50505050826001600160a01b0316639e96a2608787612e7e3390565b6040518463ffffffff1660e01b8152600401612e9c939291906158b3565b600060405180830381600087803b158015612eb657600080fd5b505af1158015612eca573d6000803e3d6000fd5b50505050505b612edf853360008760026143f6565b50506001600055505050565b60008481526077602052604081205460ff1615612f3f5760405162461bcd60e51b8152602060048201526012602482015271139bdb98d948185b1c9958591e481d5cd95960721b604482015260640161075c565b6040516001600160601b031960608c811b821660208401528b811b82166034840152604883018b905289901b166068820152607c8101879052609c810186905260bc8101859052612f929060dc0161104e565b9a9950505050505050505050565b33600081815260696020526040902054612fcc5760405162461bcd60e51b815260040161075c90615a92565b606b5460ff161561322757336000908152606c6020908152604080832086845290915281208184600481111561301257634e487b7160e01b600052602160045260246000fd5b600481111561303157634e487b7160e01b600052602160045260246000fd5b8152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b828210156130e65760008481526020908190206040805160a0810182526003860290920180546001600160a01b03908116845260018083015482168587015260029092015490811692840192909252600160a01b820460e01b6001600160e01b0319166060840152600160c01b90910460ff1615156080830152908352909201910161305f565b5050505090506000815111156131035761310381878787876146a1565b336000908152606d602052604081208185600481111561313357634e487b7160e01b600052602160045260246000fd5b600481111561315257634e487b7160e01b600052602160045260246000fd5b8152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b828210156132075760008481526020908190206040805160a0810182526003860290920180546001600160a01b03908116845260018083015482168587015260029092015490811692840192909252600160a01b820460e01b6001600160e01b0319166060840152600160c01b90910460ff16151560808301529083529092019101613180565b5050505090506000815111156132245761322481888888886146a1565b50505b5050505050565b60008481526077602052604081205460ff161561324a57600080fd5b61106b89898989888a60405160200161104e969594939291906155c0565b6000806132ab8585858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611d1192505050565b6001600160a01b031660009081526076602052604090205460ff1695945050505050565b606654600090610100900460ff16801561330e575033600090815260676020908152604080832083356001600160e01b031916845290915290205460ff165b905033613319611c61565b6001600160a01b0316148061332b5750805b6133475760405162461bcd60e51b815260040161075c90615aed565b610cbe607484846149cd565b6001600160a01b038516600090815260696020526040902054859061338a5760405162461bcd60e51b815260040161075c90615a92565b606654600090610100900460ff1680156133c9575033600090815260676020908152604080832083356001600160e01b031916845290915290205460ff165b9050336133d4611c61565b6001600160a01b031614806133e65750805b6134025760405162461bcd60e51b815260040161075c90615aed565b6001600160a01b0387166000908152606d602052604081209086600481111561343b57634e487b7160e01b600052602160045260246000fd5b600481111561345a57634e487b7160e01b600052602160045260246000fd5b81526020019081526020016000206040518060a00160405280896001600160a01b031681526020016134893390565b6001600160a01b0390811682529889166020808301919091526001600160e01b031990971660408083019190915295151560609182015282546001818101855560009485529388902083516003909202018054918b166001600160a01b0319928316178155978301519388018054948b1694909116939093179092559384015160029095018054918501516080909501511515600160c01b0260ff60c01b1960e09690961c600160a01b026001600160c01b0319909316969098169590951717929092169490941790915550505050565b606654600090610100900460ff168015613599575033600090815260676020908152604080832083356001600160e01b031916845290915290205460ff165b9050336135a4611c61565b6001600160a01b031614806135b65750805b6135d25760405162461bcd60e51b815260040161075c90615aed565b60405163f2fde38b60e01b81526001600160a01b0384169063f2fde38b906135fe908590600401615725565b600060405180830381600087803b15801561361857600080fd5b505af1158015613224573d6000803e3d6000fd5b6002600054141561364f5760405162461bcd60e51b815260040161075c90615bf0565b60026000556075548a90600160a81b900460ff1615613765576040516323b872dd60e01b81526001600160a01b038216906323b872dd9061369890339030908f906004016157de565b602060405180830381600087803b1580156136b257600080fd5b505af11580156136c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136ea91906153dd565b6137065760405162461bcd60e51b815260040161075c90615b22565b604051630852cd8d60e31b8152600481018b90526001600160a01b038c16906342966c6890602401600060405180830381600087803b15801561374857600080fd5b505af115801561375c573d6000803e3d6000fd5b5050505061380c565b6075546040516323b872dd60e01b81526001600160a01b03808416926323b872dd9261379e923392610100900416908f906004016157de565b602060405180830381600087803b1580156137b857600080fd5b505af11580156137cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137f091906153dd565b61380c5760405162461bcd60e51b815260040161075c90615b22565b600061381f8d8d8d8d8d8d898e8e612eeb565b6001600160a01b03811660009081526076602052604090205490915060ff1661385a5760405162461bcd60e51b815260040161075c90615ac6565b6000888152607760205260408120805460ff191660011790556074805461390c919061388590615d39565b80601f01602080910402602001604051908101604052809291908181526020018280546138b190615d39565b80156138fe5780601f106138d3576101008083540402835291602001916138fe565b820191906000526020600020905b8154815290600101906020018083116138e157829003601f168201915b505050505061275e8c614286565b6040516301ffc9a760e01b81529091506001600160a01b038f16906301ffc9a79061394290636cdb3d1360e11b90600401615a6a565b60206040518083038186803b15801561395a57600080fd5b505afa15801561396e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061399291906153dd565b15613aa8578d6001600160a01b03166395db5a646040518163ffffffff1660e01b815260040160206040518083038186803b1580156139d057600080fd5b505afa1580156139e4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613a0891906153dd565b15613a78576040516345e77bc760e11b81526001600160a01b038f1690638bcef78e90613a41908e908e9089908c908c906004016159fb565b600060405180830381600087803b158015613a5b57600080fd5b505af1158015613a6f573d6000803e3d6000fd5b50505050613b0b565b604051630ab714fb60e11b81526001600160a01b038f169063156e29f690613a41908e908e908990600401615933565b604051632fb102cf60e01b81526001600160a01b038f1690632fb102cf90613ad8908e908e9086906004016159bc565b600060405180830381600087803b158015613af257600080fd5b505af1158015613b06573d6000803e3d6000fd5b505050505b50506001600055505050505050505050505050565b606654600090610100900460ff168015613b5f575033600090815260676020908152604080832083356001600160e01b031916845290915290205460ff165b905033613b6a611c61565b6001600160a01b03161480613b7c5750805b613b985760405162461bcd60e51b815260040161075c90615aed565b506001600160a01b03166000908152607660205260409020805460ff19169055565b606654600090610100900460ff168015613bf9575033600090815260676020908152604080832083356001600160e01b031916845290915290205460ff165b905033613c04611c61565b6001600160a01b03161480613c165750805b613c325760405162461bcd60e51b815260040161075c90615aed565b6001600160a01b038216613c975760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161075c565b613ca08261404d565b5050565b606654600090610100900460ff168015613ce3575033600090815260676020908152604080832083356001600160e01b031916845290915290205460ff165b905033613cee611c61565b6001600160a01b03161480613d005750805b613d1c5760405162461bcd60e51b815260040161075c90615aed565b50606b805460ff19811660ff90911615179055565b6001600160a01b0384166000908152606c6020908152604080832085845290915281208190819081856004811115613d7957634e487b7160e01b600052602160045260246000fd5b6004811115613d9857634e487b7160e01b600052602160045260246000fd5b8152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b82821015613e4d5760008481526020908190206040805160a0810182526003860290920180546001600160a01b03908116845260018083015482168587015260029092015490811692840192909252600160a01b820460e01b6001600160e01b0319166060840152600160c01b90910460ff16151560808301529083529092019101613dc6565b50505050905060005b8151811015613eb957866001600160a01b0316828281518110613e8957634e487b7160e01b600052603260045260246000fd5b6020026020010151604001516001600160a01b03161415613ea957600192505b613eb281615d74565b9050613e56565b50909695505050505050565b6001600160a01b0383166000908152606d602052604081208190819081856004811115613f0257634e487b7160e01b600052602160045260246000fd5b6004811115613f2157634e487b7160e01b600052602160045260246000fd5b8152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b82821015613fd65760008481526020908190206040805160a0810182526003860290920180546001600160a01b03908116845260018083015482168587015260029092015490811692840192909252600160a01b820460e01b6001600160e01b0319166060840152600160c01b90910460ff16151560808301529083529092019101613f4f565b50505050905060005b815181101561404257856001600160a01b031682828151811061401257634e487b7160e01b600052603260045260246000fd5b6020026020010151604001516001600160a01b0316141561403257600192505b61403b81615d74565b9050613fdf565b509095945050505050565b603480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600154610100900460ff166140c65760405162461bcd60e51b815260040161075c90615ba5565b6140ce61491f565b565b6301ffc9a760e01b60005260736020527f8addaa5e2ede3710693e46fdbb8d1e6a4a2bd2b10886ff0adc944600846a13085460ff16156141475760405162461bcd60e51b8152602060048201526012602482015271105b1c9958591e48149959da5cdd195c995960721b604482015260640161075c565b6140ce6301ffc9a760e01b61494f565b6000806040518060400160405280601c81526020017b0ca2ba3432b932bab69029b4b3b732b21026b2b9b9b0b3b29d05199960211b8152509050600081876040516020016141a69291906156d4565b60408051601f198184030181528282528051602091820120600080855291840180845281905260ff8a169284019290925260608301889052608083018790529092509060019060a0016020604051602081039080840390855afa158015614211573d6000803e3d6000fd5b5050604051601f1901519998505050505050505050565b6000614235826020615c7a565b8351101561427d5760405162461bcd60e51b8152602060048201526015602482015274746f55696e743235365f6f75744f66426f756e647360581b604482015260640161075c565b50016020015190565b6060816142aa5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156142d457806142be81615d74565b91506142cd9050600a83615cb7565b91506142ae565b6000816001600160401b038111156142fc57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015614326576020820181803683370190505b509050815b85156143c15761433c600182615cf6565b9050600061434b600a88615cb7565b61435690600a615cd7565b6143609088615cf6565b61436b906030615c92565b905060008160f81b90508084848151811061439657634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506143b8600a89615cb7565b9750505061432b565b50949350505050565b606082826040516020016143df9291906156f6565b604051602081830303815290604052905092915050565b6001600160a01b038516600090815260696020526040902054859061442d5760405162461bcd60e51b815260040161075c90615a92565b606b5460ff1615610852576001600160a01b0386166000908152606c6020908152604080832086845290915281208184600481111561447c57634e487b7160e01b600052602160045260246000fd5b600481111561449b57634e487b7160e01b600052602160045260246000fd5b8152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b828210156145505760008481526020908190206040805160a0810182526003860290920180546001600160a01b03908116845260018083015482168587015260029092015490811692840192909252600160a01b820460e01b6001600160e01b0319166060840152600160c01b90910460ff161515608083015290835290920191016144c9565b50505050905060008151111561456d5761456d81878787876146a1565b6001600160a01b0387166000908152606d60205260408120818560048111156145a657634e487b7160e01b600052602160045260246000fd5b60048111156145c557634e487b7160e01b600052602160045260246000fd5b8152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b8282101561467a5760008481526020908190206040805160a0810182526003860290920180546001600160a01b03908116845260018083015482168587015260029092015490811692840192909252600160a01b820460e01b6001600160e01b0319166060840152600160c01b90910460ff161515608083015290835290920191016145f3565b5050505090506000815111156146975761469781888888886146a1565b5050505050505050565b6000805b86518110156132245760008782815181106146d057634e487b7160e01b600052603260045260246000fd5b602002602001015190508060800151925060006001600160a01b031681604001516001600160a01b03161461490e5760008082604001516001600160a01b031683606001518a6040516020016147269190615725565b6040516020818303038152906040528a6040516020016147469190615725565b60408051601f19818403018152828252602083018d9052910160408051601f198184030181529082905261477f9493929160200161565a565b60408051601f1981840301815290829052614799916156b8565b6000604051808303816000865af19150503d80600081146147d6576040519150601f19603f3d011682016040523d82523d6000602084013e6147db565b606091505b50915091508115614836577f401f7e442aad416e994b0993904baa066db59088ec7c35a94c901133796b79d8898985604001518a87606001518b876040516148299796959493929190615788565b60405180910390a161490b565b84156148c1577f308ce68979ca2f2b482ee40498ed127ce2537cf0aae7981a927f45a1c3f7e150898985604001518a87606001518b60405161487d96959493929190615739565b60405180910390a160405162461bcd60e51b815260206004820152601160248201527010d85b1b189858dac814995d995c9d1959607a1b604482015260640161075c565b7f0d9f1260ebacd3dc63232777adc8c8e2873f446cb833661f2b993b725b82c72b898985604001518a87606001518b60405161490296959493929190615739565b60405180910390a15b50505b5061491881615d74565b90506146a5565b600154610100900460ff166149465760405162461bcd60e51b815260040161075c90615ba5565b6140ce3361404d565b6001600160e01b031980821614156149a85760405162461bcd60e51b815260206004820152601c60248201527b115490cc4d8d4e881a5b9d985b1a59081a5b9d195c999858d9481a5960221b604482015260640161075c565b6001600160e01b0319166000908152607360205260409020805460ff19166001179055565b8280546149d990615d39565b90600052602060002090601f0160209004810192826149fb5760008555614a41565b82601f10614a145782800160ff19823516178555614a41565b82800160010185558215614a41579182015b82811115614a41578235825591602001919060010190614a26565b50614a4d929150614a51565b5090565b5b80821115614a4d5760008155600101614a52565b8035614a7181615dbb565b919050565b600082601f830112614a86578081fd5b81356020614a9b614a9683615c57565b615c27565b80838252828201915082860187848660051b8901011115614aba578586fd5b855b85811015614ad857813584529284019290840190600101614abc565b5090979650505050505050565b80356001600160e01b031981168114614a7157600080fd5b60008083601f840112614b0e578182fd5b5081356001600160401b03811115614b24578182fd5b602083019150836020828501011115614b3c57600080fd5b9250929050565b600082601f830112614b53578081fd5b81356001600160401b03811115614b6c57614b6c615da5565b614b7f601f8201601f1916602001615c27565b818152846020838601011115614b93578283fd5b816020850160208301379081016020019190915292915050565b803560058110614a7157600080fd5b600060208284031215614bcd578081fd5b8135614bd881615dbb565b9392505050565b600060208284031215614bf0578081fd5b8151614bd881615dbb565b60008060408385031215614c0d578081fd5b8235614c1881615dbb565b91506020830135614c2881615dbb565b809150509250929050565b600080600080600060a08688031215614c4a578081fd5b614c548635615dbb565b85359450602080870135614c6781615dbb565b945060408701356001600160401b0380821115614c82578384fd5b614c8e8a838b01614a76565b95506060890135915080821115614ca3578384fd5b614caf8a838b01614a76565b94506080890135915080821115614cc4578384fd5b818901915089601f830112614cd7578384fd5b8135614ce5614a9682615c57565b8082825285820191508585018d878560051b8801011115614d04578788fd5b875b84811015614d3c578582351115614d1b578889fd5b614d2a8f8984358a0101614b43565b84529287019290870190600101614d06565b50508096505050505050509295509295909350565b600080600080600060a08688031215614d68578081fd5b8535614d7381615dbb565b94506020860135614d8381615dbb565b9350614d9160408701614bad565b9250614d9f60608701614ae5565b91506080860135614daf81615dd0565b809150509295509295909350565b600080600060608486031215614dd1578283fd5b8335614ddc81615dbb565b92506020840135614dec81615dbb565b929592945050506040919091013590565b60008060008060008060008060008060006101208c8e031215614e1e578889fd5b614e288c35615dbb565b8b359a50614e3960208d0135615dbb565b60208c0135995060408c01359850614e5360608d01614a66565b975060808c0135965060a08c013595506001600160401b0360c08d0135811015614e7b578586fd5b614e8b8e60c08f01358f01614afd565b909650945060e08d0135811015614ea0578384fd5b50614eb18d60e08e01358e01614afd565b81945080935050506101008c013590509295989b509295989b9093969950565b60008060008060008060008060006101008a8c031215614eef578283fd5b8935614efa81615dbb565b985060208a0135614f0a81615dbb565b975060408a0135965060608a0135614f2181615dbb565b955060808a0135945060a08a0135935060c08a0135925060e08a01356001600160401b03811115614f50578283fd5b614f5c8c828d01614afd565b915080935050809150509295985092959850929598565b60008060008060808587031215614f88578182fd5b8435614f9381615dbb565b93506020850135614fa381615dbb565b925060408501359150614fb860608601614bad565b905092959194509250565b60008060008060008060c08789031215614fdb578384fd5b8635614fe681615dbb565b95506020870135614ff681615dbb565b94506040870135935061500b60608801614bad565b925061501960808801614ae5565b915060a087013561502981615dd0565b809150509295509295509295565b600080600080600060a0868803121561504e578283fd5b853561505981615dbb565b9450602086013561506981615dbb565b93506040860135925061507e60608701614bad565b949793965091946080013592915050565b60008060008060008060008060c0898b0312156150aa578182fd5b88356150b581615dbb565b975060208901356150c581615dbb565b96506040890135955060608901356001600160401b03808211156150e7578384fd5b6150f38c838d01614afd565b909750955060808b013591508082111561510b578384fd5b506151188b828c01614afd565b999c989b50969995989497949560a00135949350505050565b60008060008060008060008060c0898b03121561514c578182fd5b883561515781615dbb565b9750602089013561516781615dbb565b9650604089013595506060890135945060808901356001600160401b0380821115615190578384fd5b61519c8c838d01614afd565b909650945060a08b01359150808211156151b4578384fd5b506151c18b828c01614afd565b999c989b5096995094979396929594505050565b60008060008060008060008060e0898b0312156151f0578182fd5b88356151fb81615dbb565b9750602089013561520b81615dbb565b965060408901359550606089013594506080890135935060a08901356001600160401b038082111561523b578384fd5b6152478c838d01614afd565b909550935060c08b013591508082111561525f578283fd5b5061526c8b828c01614b43565b9150509295985092959890939650565b60008060008060008060008060e0898b031215615297578182fd5b88356152a281615dbb565b975060208901356152b281615dbb565b965060408901359550606089013594506080890135935060a08901356001600160401b03808211156152e2578384fd5b6152ee8c838d01614b43565b945060c08b01359150808211156151b4578384fd5b600080600060608486031215615317578081fd5b833561532281615dbb565b925061533060208501614ae5565b9150604084013590509250925092565b600080600060608486031215615354578081fd5b833561535f81615dbb565b925061533060208501614bad565b6000806040838503121561537f578182fd5b823561538a81615dbb565b946020939093013593505050565b600080600080608085870312156153ad578182fd5b84356153b881615dbb565b9350602085013592506153cd60408601614bad565b9396929550929360600135925050565b6000602082840312156153ee578081fd5b8151614bd881615dd0565b60008060006040848603121561540d578081fd5b8335925060208401356001600160401b03811115615429578182fd5b61543586828701614afd565b9497909650939450505050565b60008060408385031215615454578182fd5b8235915060208301356001600160401b03811115615470578182fd5b61547c85828601614b43565b9150509250929050565b600060208284031215615497578081fd5b614bd882614ae5565b600080602083850312156154b2578182fd5b82356001600160401b038111156154c7578283fd5b6154d385828601614afd565b90969095509350505050565b6000602082840312156154f0578081fd5b5035919050565b600060208284031215615508578081fd5b5051919050565b6000815180845260208085019450808401835b8381101561553e57815187529582019590820190600101615522565b509495945050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6000815180845261558a816020860160208601615d0d565b601f01601f19169290920160200192915050565b600581106155bc57634e487b7160e01b600052602160045260246000fd5b9052565b6001600160601b0319606088811b8216835287901b166014820152602881018590526048810184905282516000906155ff816068850160208801615d0d565b60689201918201929092526088019695505050505050565b6001600160601b0319606088811b8216835287901b1660148201526028810185905260488101849052600082846068840137910160680190815295945050505050565b6001600160e01b031985168152835160009061567d816004850160208901615d0d565b845190830190615694816004840160208901615d0d565b84519101906156aa816004840160208801615d0d565b016004019695505050505050565b600082516156ca818460208701615d0d565b9190910192915050565b600083516156e6818460208801615d0d565b9190910191825250602001919050565b60008351615708818460208801615d0d565b83519083019061571c818360208801615d0d565b01949350505050565b6001600160a01b0391909116815260200190565b6001600160a01b038781168252868116602083015285166040820152606081018490526001600160e01b03198316608082015260c0810161577d60a083018461559e565b979650505050505050565b6001600160a01b038881168252878116602083015286166040820152606081018590526001600160e01b03198416608082015260006157ca60a083018561559e565b60e060c083015261106b60e0830184615572565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b0385168152608060208083018290526000916158279084018761550f565b8381036040850152615839818761550f565b905083810360608501528085518083528383019150838160051b840101848801865b8381101561588957601f19868403018552615877838351615572565b9487019492509086019060010161585b565b50909b9a5050505050505050505050565b6001600160a01b03929092168252602082015260400190565b6001600160a01b0393841681526020810192909252909116604082015260600190565b6001600160a01b038416815260208082018490526060604083018190528351908301819052600091848101916080850190845b8181101561592557845183529383019391830191600101615909565b509098975050505050505050565b6001600160a01b039390931683526020830191909152604082015260600190565b60018060a01b0385168152836020820152826040820152608060608201526000611df16080830184615572565b60018060a01b03871681528560208201526080604082015260006159a9608083018688615549565b828103606084015261106b818587615549565b60018060a01b03841681528260208201526080604082015260006159e36080830184615572565b82810360609093019290925281526020019392505050565b60018060a01b038616815284602082015283604082015260806060820152600061577d608083018486615549565b6020808252825182820181905260009190848201906040850190845b81811015613eb95783516001600160a01b031683529284019291840191600101615a45565b6001600160e01b031991909116815260200190565b602081526000614bd86020830184615572565b6020808252601a908201527910dbdb9d1c9858dd081a5cc81b9bdd081c9959da5cdd195c995960321b604082015260600190565b6020808252600d908201526c139bdd0815da5d1b995cdcd959609a1b604082015260600190565b6020808252601b908201527a4e6f74206f776e6572206f722061626c6520746f2062797061737360281b604082015260600190565b6020808252600e908201526d2a3930b739b332b91022a92927a960911b604082015260600190565b602080825260189082015277199c9bdb4e88139bdd081bdddb995c881bd9881d985d5b1d60421b604082015260600190565b6020808252600f908201526e105b1c9958591e4810db185a5b5959608a1b604082015260600190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b604051601f8201601f191681016001600160401b0381118282101715615c4f57615c4f615da5565b604052919050565b60006001600160401b03821115615c7057615c70615da5565b5060051b60200190565b60008219821115615c8d57615c8d615d8f565b500190565b600060ff821660ff84168060ff03821115615caf57615caf615d8f565b019392505050565b600082615cd257634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615615cf157615cf1615d8f565b500290565b600082821015615d0857615d08615d8f565b500390565b60005b83811015615d28578181015183820152602001615d10565b83811115610cbe5750506000910152565b600181811c90821680615d4d57607f821691505b60208210811415615d6e57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415615d8857615d88615d8f565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114611ab657600080fd5b8015158114611ab657600080fdfea26469706673582212208c31ef87c1a0042cf4c5cc3156824a0872ea63a76682f71e2ee099762cf4573464736f6c6343000804003368747470733a2f2f6170692e656d626c656d7661756c742e696f2f733a65766d657461646174612f6d6574612f

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102725760003560e01c806301ffc9a71461027757806302eec8e3146102b95780630d7def95146102ce5780630e36b3d1146102d6578063152f0eb5146102e9578063158ef93e146102fc5780631986166f146103095780631beab0f61461031c5780632adbc37d1461032f5780632cf1dacb146103375780632cfffaf61461034a5780632d5199101461036157806330c962ba1461038157806331b48055146103d7578063321c3cf6146103eb57806336864adb1461040e5780633a1cb9a01461042357806340897bbe146104365780634fbe40b41461043e57806359e26be1146104515780635aff5999146104645780635bf2745f1461047c5780635d1c03dd1461048f578063633824c9146104a2578063684ee7de146104b5578063715018a6146104c857806374478bb3146104d05780637b74297d146104dd57806380443378146104fd5780638129fc1c146105105780638da5cb5b1461051857806392c2bcb41461052057806397aba7f91461053357806398be7ff7146105465780639f74708b1461055c578063a06617cd1461056f578063a5c101291461058f578063a8f1602c146105a2578063aad3ec96146105cf578063b1557c2c146105e2578063b5683e91146105f5578063b68c437914610608578063ba5afc171461061b578063bb59a8e91461062e578063bd54c89c14610641578063c146844714610654578063c810dbbc14610667578063dcdd208214610674578063e2f1788014610687578063ebc7fd7c1461069a578063ee2f13cd146106ad578063f2fde38b146106c0578063f762d22e146106d3578063f84ddf0b146106db575b600080fd5b6102a4610285366004615486565b6001600160e01b03191660009081526073602052604090205460ff1690565b60405190151581526020015b60405180910390f35b6102cc6102c7366004614c33565b6106e4565b005b6102cc61085a565b6102cc6102e4366004614fc3565b6108f4565b6102cc6102f736600461536d565b610b07565b6075546102a49060ff1681565b6102cc610317366004615303565b610bd9565b6102cc61032a36600461536d565b610cc4565b6102cc610e97565b6102cc610345366004615303565b610f2d565b610353606e5481565b6040519081526020016102b0565b61037461036f366004615131565b611014565b6040516102b09190615725565b61039461038f366004615340565b611078565b604080516001600160a01b039687168152948616602086015292909416918301919091526001600160e01b0319166060820152901515608082015260a0016102b0565b6075546102a490600160a81b900460ff1681565b6102a46103f9366004614bbc565b60766020526000908152604090205460ff1681565b6104166110eb565b6040516102b09190615a7f565b6102a4610431366004614f73565b611179565b6102cc6111b1565b6102cc61044c366004615037565b61123e565b6102cc61045f366004614bbc565b61180e565b6075546103749061010090046001600160a01b031681565b61039461048a366004615398565b6118ab565b6102cc61049d366004614dbd565b61192b565b6103746104b03660046153f9565b611972565b6102cc6104c3366004614dbd565b6119be565b6102cc611a34565b6066546102a49060ff1681565b6104f06104eb3660046154df565b611ab9565b6040516102b09190615a29565b607154610374906001600160a01b031681565b6102cc611b25565b610374611c61565b6102cc61052e366004614bbc565b611c70565b610374610541366004615442565b611d11565b63342773ef60e11b5b6040516102b09190615a6a565b6102cc61056a36600461508f565b611dfb565b61035361057d366004614bbc565b60696020526000908152604090205481565b6102cc61059d3660046151d5565b611fd6565b6102a46105b036600461536d565b6001600160a01b03919091166000908152606960205260409020541490565b6102cc6105dd36600461536d565b6127c5565b607254610374906001600160a01b031681565b610374610603366004614ed1565b612eeb565b6102cc610616366004614f73565b612fa0565b61037461062936600461527c565b61322e565b6102a461063c3660046153f9565b613268565b6102cc61064f3660046154a0565b6132cf565b607054610374906001600160a01b031681565b635d1c03dd60e01b61054f565b6102cc610682366004614d51565b613353565b6102cc610695366004614bfb565b61355a565b6102cc6106a8366004614dfd565b61362c565b6102cc6106bb366004614bbc565b613b20565b6102cc6106ce366004614bbc565b613bba565b6102cc613ca4565b610353606f5481565b606654600090610100900460ff168015610723575033600090815260676020908152604080832083356001600160e01b031916845290915290205460ff165b90503361072e611c61565b6001600160a01b031614806107405750805b6107655760405162461bcd60e51b815260040161075c90615aed565b60405180910390fd5b6040516301ffc9a760e01b81526001600160a01b038716906301ffc9a79061079890636cdb3d1360e11b90600401615a6a565b60206040518083038186803b1580156107b057600080fd5b505afa1580156107c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107e891906153dd565b156108525760405163381b320160e11b81526001600160a01b0387169063703664029061081f908890889088908890600401615802565b600060405180830381600087803b15801561083957600080fd5b505af115801561084d573d6000803e3d6000fd5b505050505b505050505050565b606654600090610100900460ff168015610899575033600090815260676020908152604080832083356001600160e01b031916845290915290205460ff165b9050336108a4611c61565b6001600160a01b031614806108b65750805b6108d25760405162461bcd60e51b815260040161075c90615aed565b506075805460ff60a81b198116600160a81b9182900460ff1615909102179055565b6001600160a01b038616600090815260696020526040902054869061092b5760405162461bcd60e51b815260040161075c90615a92565b606654600090610100900460ff16801561096a575033600090815260676020908152604080832083356001600160e01b031916845290915290205460ff165b905033610975611c61565b6001600160a01b031614806109875750805b6109a35760405162461bcd60e51b815260040161075c90615aed565b6001600160a01b0388166000908152606c602090815260408083208984529091528120908660048111156109e757634e487b7160e01b600052602160045260246000fd5b6004811115610a0657634e487b7160e01b600052602160045260246000fd5b81526020019081526020016000206040518060a001604052808a6001600160a01b03168152602001610a353390565b6001600160a01b039081168252998a166020808301919091526001600160e01b031990971660408083019190915295151560609182015282546001818101855560009485529388902083516003909202018054918c166001600160a01b0319928316178155978301519388018054948c1694909116939093179092559384015160029095018054918501516080909501511515600160c01b0260ff60c01b1960e09690961c600160a01b026001600160c01b031990931696909916959095171792909216959095179091555050505050565b33600081815260696020526040902054151580610b33575033610b28611c61565b6001600160a01b0316145b610b8b5760405162461bcd60e51b8152602060048201526024808201527f436f6e7472616374206973206e6f742072656769737465726564206e6f72204f6044820152633bb732b960e11b606482015260840161075c565b506001600160a01b039091166000818152606960209081526040808320859055938252606a8152928120805460018101825590825292902090910180546001600160a01b0319169091179055565b606654600090610100900460ff168015610c18575033600090815260676020908152604080832083356001600160e01b031916845290915290205460ff165b905033610c23611c61565b6001600160a01b03161480610c355750805b610c515760405162461bcd60e51b815260040161075c90615aed565b6001600160a01b03841660009081526067602090815260408083206001600160e01b0319871684529091529020805460ff191660011790558115610cbe576001600160a01b03841660009081526068602090815260408083208584529091529020805460ff191660011790555b50505050565b606654600090610100900460ff168015610d03575033600090815260676020908152604080832083356001600160e01b031916845290915290205460ff165b905033610d0e611c61565b6001600160a01b03161480610d205750805b610d3c5760405162461bcd60e51b815260040161075c90615aed565b6001600160a01b0383166000908152606960205260409020548390610d735760405162461bcd60e51b815260040161075c90615a92565b6001600160a01b0384166000908152606960209081526040808320548352606a909152902080548190610da890600190615cf6565b81548110610dc657634e487b7160e01b600052603260045260246000fd5b9060005260206000200160009054906101000a90046001600160a01b0316818581548110610e0457634e487b7160e01b600052603260045260246000fd5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555080805480610e5057634e487b7160e01b600052603160045260246000fd5b60008281526020808220830160001990810180546001600160a01b03191690559092019092556001600160a01b039690961681526069909552505060408320929092555050565b606654600090610100900460ff168015610ed6575033600090815260676020908152604080832083356001600160e01b031916845290915290205460ff165b905033610ee1611c61565b6001600160a01b03161480610ef35750805b610f0f5760405162461bcd60e51b815260040161075c90615aed565b506066805461ff001981166101009182900460ff1615909102179055565b606654600090610100900460ff168015610f6c575033600090815260676020908152604080832083356001600160e01b031916845290915290205460ff165b905033610f77611c61565b6001600160a01b03161480610f895750805b610fa55760405162461bcd60e51b815260040161075c90615aed565b6001600160a01b03841660009081526067602090815260408083206001600160e01b0319871684529091529020805460ff191690558115610cbe576001600160a01b03841660009081526068602090815260408083208584529091529020805460ff1916600117905550505050565b60008581526077602052604081205460ff161561103057600080fd5b61106b89898989898960405160200161104e96959493929190615617565b604051602081830303815290604052805190602001208484611972565b9998505050505050505050565b606d60205282600052604060002060205281600052604060002081815481106110a057600080fd5b60009182526020909120600390910201805460018201546002909201546001600160a01b039182169550918116935081169150600160a01b810460e01b90600160c01b900460ff1685565b607480546110f890615d39565b80601f016020809104026020016040519081016040528092919081815260200182805461112490615d39565b80156111715780601f1061114657610100808354040283529160200191611171565b820191906000526020600020905b81548152906001019060200180831161115457829003601f168201915b505050505081565b60008061118886868686613d31565b9050801561119a5760019150506111a9565b6111a5868685613ec5565b9150505b949350505050565b606654600090610100900460ff1680156111f0575033600090815260676020908152604080832083356001600160e01b031916845290915290205460ff165b9050336111fb611c61565b6001600160a01b0316148061120d5750805b6112295760405162461bcd60e51b815260040161075c90615aed565b506066805460ff19811660ff90911615179055565b8484848484600061125186868686613d31565b1561130c576001600160a01b0386166000908152606c602090815260408083208784529091528120339185600481111561129b57634e487b7160e01b600052602160045260246000fd5b60048111156112ba57634e487b7160e01b600052602160045260246000fd5b815260200190815260200160002083815481106112e757634e487b7160e01b600052603260045260246000fd5b60009182526020909120600160039092020101546001600160a01b03161490506113c3565b611317868685613ec5565b156113c3576001600160a01b0386166000908152606d60205260408120339185600481111561135657634e487b7160e01b600052602160045260246000fd5b600481111561137557634e487b7160e01b600052602160045260246000fd5b815260200190815260200160002083815481106113a257634e487b7160e01b600052603260045260246000fd5b60009182526020909120600160039092020101546001600160a01b03161490505b6113cb611c61565b6001600160a01b0316336001600160a01b031614806113e75750805b6114335760405162461bcd60e51b815260206004820181905260248201527f4e6f74206f776e6572206f722043616c6c6261636b2072656769737472616e74604482015260640161075c565b61143f8b8b8b8b613d31565b15611622576001600160a01b038b166000908152606c602090815260408083208c84529091528120818a600481111561148857634e487b7160e01b600052602160045260246000fd5b60048111156114a757634e487b7160e01b600052602160045260246000fd5b8152602001908152602001600020905080600182805490506114c99190615cf6565b815481106114e757634e487b7160e01b600052603260045260246000fd5b906000526020600020906003020181898154811061151557634e487b7160e01b600052603260045260246000fd5b60009182526020909120825460039092020180546001600160a01b03199081166001600160a01b039384161782556001808501549083018054831691851691909117905560029384018054949092018054918216949093169384178355815463ffffffff600160a01b9182900416026001600160c01b031990911690931792909217808255915460ff600160c01b918290041615150260ff60c01b1990921691909117905580548190806115d957634e487b7160e01b600052603160045260246000fd5b60008281526020902060036000199092019182020180546001600160a01b03199081168255600182018054909116905560020180546001600160c81b0319169055905550611801565b61162d8b8b8a613ec5565b15611801576001600160a01b038b166000908152606d60205260408120818a600481111561166b57634e487b7160e01b600052602160045260246000fd5b600481111561168a57634e487b7160e01b600052602160045260246000fd5b8152602001908152602001600020905080600182805490506116ac9190615cf6565b815481106116ca57634e487b7160e01b600052603260045260246000fd5b90600052602060002090600302018189815481106116f857634e487b7160e01b600052603260045260246000fd5b60009182526020909120825460039092020180546001600160a01b03199081166001600160a01b039384161782556001808501549083018054831691851691909117905560029384018054949092018054918216949093169384178355815463ffffffff600160a01b9182900416026001600160c01b031990911690931792909217808255915460ff600160c01b918290041615150260ff60c01b1990921691909117905580548190806117bc57634e487b7160e01b600052603160045260246000fd5b60008281526020902060036000199092019182020180546001600160a01b03199081168255600182018054909116905560020180546001600160c81b03191690559055505b5050505050505050505050565b606654600090610100900460ff16801561184d575033600090815260676020908152604080832083356001600160e01b031916845290915290205460ff165b905033611858611c61565b6001600160a01b0316148061186a5750805b6118865760405162461bcd60e51b815260040161075c90615aed565b506001600160a01b03166000908152607660205260409020805460ff19166001179055565b606c60205283600052604060002060205282600052604060002060205281600052604060002081815481106118df57600080fd5b60009182526020909120600390910201805460018201546002909201546001600160a01b039182169650918116945081169250600160a01b810460e01b9150600160c01b900460ff1685565b505060405162461bcd60e51b81526020600482015260126024820152713932bb32b93a32b210313c903232b9b4b3b760711b6044820152600091508190819060640161075c565b6000806119b58585858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611d1192505050565b95945050505050565b606e80549060006119ce83615d74565b9091555050606f819055607080546001600160a01b038085166001600160a01b0319928316179092556071805492861692909116919091179055611a0f3390565b607280546001600160a01b0319166001600160a01b0392909216919091179055505050565b606654600090610100900460ff168015611a73575033600090815260676020908152604080832083356001600160e01b031916845290915290205460ff165b905033611a7e611c61565b6001600160a01b03161480611a905750805b611aac5760405162461bcd60e51b815260040161075c90615aed565b611ab6600061404d565b50565b6000818152606a6020908152604091829020805483518184028101840190945280845260609392830182828015611b1957602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611afb575b50505050509050919050565b600154610100900460ff1615808015611b4257506001805460ff16105b80611b5b5750303b158015611b5b57506001805460ff16145b611bbe5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840161075c565b6001805460ff1916811790558015611be0576001805461ff0019166101001790555b611be861409f565b611bf361045f611c61565b6075805460016001600160a81b0319909116610100330260ff191617179055611c1a6140d0565b8015611ab6576001805461ff00191681556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a150565b6034546001600160a01b031690565b606654600090610100900460ff168015611caf575033600090815260676020908152604080832083356001600160e01b031916845290915290205460ff165b905033611cba611c61565b6001600160a01b03161480611ccc5750805b611ce85760405162461bcd60e51b815260040161075c90615aed565b50607580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b60008151604114611d5d5760405162461bcd60e51b81526020600482015260166024820152750a4cae2ead2e4ca40c6dee4e4cac6e840d8cadccee8d60531b604482015260640161075c565b60208201516040830151606084015160001a601b811015611d8657611d83601b82615c92565b90505b8060ff16601b1480611d9b57508060ff16601c145b611de55760405162461bcd60e51b815260206004820152601b60248201527a0a6d2cedcc2e8eae4ca40eccae4e6d2dedc40dcdee840dac2e8c6d602b1b604482015260640161075c565b611df186828585614157565b9695505050505050565b606654600090610100900460ff168015611e3a575033600090815260676020908152604080832083356001600160e01b031916845290915290205460ff165b905033611e45611c61565b6001600160a01b03161480611e575750805b611e735760405162461bcd60e51b815260040161075c90615aed565b6040516301ffc9a760e01b81526001600160a01b038a16906301ffc9a790611ea690636cdb3d1360e11b90600401615a6a565b60206040518083038186803b158015611ebe57600080fd5b505afa158015611ed2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ef691906153dd565b15611f6257604051630ab714fb60e11b81526001600160a01b038a169063156e29f690611f2b908b908b908790600401615933565b600060405180830381600087803b158015611f4557600080fd5b505af1158015611f59573d6000803e3d6000fd5b50505050611fcb565b604051632fb102cf60e01b81526001600160a01b038a1690632fb102cf90611f98908b908b908b908b908b908b90600401615981565b600060405180830381600087803b158015611fb257600080fd5b505af1158015611fc6573d6000803e3d6000fd5b505050505b505050505050505050565b60026000541415611ff95760405162461bcd60e51b815260040161075c90615bf0565b600260009081556001600160a01b03891681526069602052604090205488906120345760405162461bcd60e51b815260040161075c90615a92565b6001600160a01b038816600090815260696020526040902054889061206b5760405162461bcd60e51b815260040161075c90615a92565b886001600160a01b03168a6001600160a01b031614156120d75760405162461bcd60e51b815260206004820152602160248201527f43616e6e6f74206d6f7665207661756c7420746f2073616d65206164647265736044820152607360f81b606482015260840161075c565b607660006121168c8c8c8c898d6040516020016120f9969594939291906155c0565b604051602081830303815290604052805190602001208888611972565b6001600160a01b0316815260208101919091526040016000205460ff1661214f5760405162461bcd60e51b815260040161075c90615ac6565b60008681526077602052604090819020805460ff19166001179055516301ffc9a760e01b81526001600160a01b038b16906301ffc9a79061219b90636cdb3d1360e11b90600401615a6a565b60206040518083038186803b1580156121b357600080fd5b505afa1580156121c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121eb91906153dd565b1561235957868814156122555760405162461bcd60e51b815260206004820152602c60248201527f66726f6d3a20546f6b656e496473206d75737420626520646966666572656e7460448201526b20666f72204552433131353560a01b606482015260840161075c565b604051627eeac760e11b81526000906001600160a01b038c169062fdd58e906122849033908d9060040161589a565b60206040518083038186803b15801561229c57600080fd5b505afa1580156122b0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122d491906154f7565b116122f15760405162461bcd60e51b815260040161075c90615b4a565b604051637a94c56560e11b81526001600160a01b038b169063f5298aca906123229033908c90600190600401615933565b600060405180830381600087803b15801561233c57600080fd5b505af1158015612350573d6000803e3d6000fd5b50505050612457565b336040516331a9108f60e11b8152600481018a90526001600160a01b03918216918c1690636352211e9060240160206040518083038186803b15801561239e57600080fd5b505afa1580156123b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123d69190614bdf565b6001600160a01b0316146123fc5760405162461bcd60e51b815260040161075c90615b4a565b604051630852cd8d60e31b8152600481018990526001600160a01b038b16906342966c6890602401600060405180830381600087803b15801561243e57600080fd5b505af1158015612452573d6000803e3d6000fd5b505050505b6040516301ffc9a760e01b81526001600160a01b038a16906301ffc9a79061248a90636cdb3d1360e11b90600401615a6a565b60206040518083038186803b1580156124a257600080fd5b505afa1580156124b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124da91906153dd565b156126b657868814156125425760405162461bcd60e51b815260206004820152602a60248201527f746f3a20546f6b656e496473206d75737420626520646966666572656e7420666044820152696f72204552433131353560b01b606482015260840161075c565b886001600160a01b03166395db5a646040518163ffffffff1660e01b815260040160206040518083038186803b15801561257b57600080fd5b505afa15801561258f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125b391906153dd565b15612685576125c3836000614228565b61261b5760405162461bcd60e51b815260206004820152602360248201527f48616e646c65723a206d7573742070726f766964652073657269616c206e756d6044820152623132b960e91b606482015260840161075c565b6040516345e77bc760e11b81526001600160a01b038a1690638bcef78e9061264e9033908b906001908990600401615954565b600060405180830381600087803b15801561266857600080fd5b505af115801561267c573d6000803e3d6000fd5b505050506127b4565b604051630ab714fb60e11b81526001600160a01b038a169063156e29f69061264e9033908b90600190600401615933565b6001600160a01b038916632fb102cf3389612763607480546126d790615d39565b80601f016020809104026020016040519081016040528092919081815260200182805461270390615d39565b80156127505780601f1061272557610100808354040283529160200191612750565b820191906000526020600020905b81548152906001019060200180831161273357829003601f168201915b505050505061275e8d614286565b6143ca565b6040518463ffffffff1660e01b8152600401612781939291906159bc565b600060405180830381600087803b15801561279b57600080fd5b505af11580156127af573d6000803e3d6000fd5b505050505b505060016000555050505050505050565b600260005414156127e85760405162461bcd60e51b815260040161075c90615bf0565b600260009081556001600160a01b03831681526069602052604090205482906128235760405162461bcd60e51b815260040161075c90615a92565b60066000908152606a6020527f2bc834ff3bba3d80acb54a3bdc4d46c19ade4e4f4db21022926ce2a8be43777a8054829061286e57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546040516301ffc9a760e01b81526001600160a01b0391821692506060918616906301ffc9a7906128b590636cdb3d1360e11b90600401615a6a565b60206040518083038186803b1580156128cd57600080fd5b505afa1580156128e1573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061290591906153dd565b15612ca7578460006001600160a01b038216638cc780de33886040518363ffffffff1660e01b815260040161293b92919061589a565b60206040518083038186803b15801561295357600080fd5b505afa158015612967573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061298b91906154f7565b604051639a7f1f7d60e01b81526004810182905290915086906001600160a01b03841690639a7f1f7d9060240160206040518083038186803b1580156129d057600080fd5b505afa1580156129e4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a0891906154f7565b14612a665760405162461bcd60e51b815260206004820152602860248201527f496e76616c696420746f6b656e49642073657269616c6e756d62657220636f6d6044820152673134b730ba34b7b760c11b606482015260840161075c565b3360405163bbe215f360e01b8152600481018390526001600160a01b039182169184169063bbe215f39060240160206040518083038186803b158015612aab57600080fd5b505afa158015612abf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ae39190614bdf565b6001600160a01b031614612b365760405162461bcd60e51b815260206004820152601a6024820152792737ba1037bbb732b91037b31039b2b934b0b610373ab6b132b960311b604482015260640161075c565b6040516305fbdf1560e21b81526001600160a01b038516906317ef7c5490612b66908a90859088906004016158d6565b602060405180830381600087803b158015612b8057600080fd5b505af1158015612b94573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bb891906153dd565b15612bd55760405162461bcd60e51b815260040161075c90615b7c565b604051637a94c56560e11b81526001600160a01b0388169063f5298aca90612c069033908a90600190600401615933565b600060405180830381600087803b158015612c2057600080fd5b505af1158015612c34573d6000803e3d6000fd5b50505050836001600160a01b0316639e96a2608883612c503390565b6040518463ffffffff1660e01b8152600401612c6e939291906158b3565b600060405180830381600087803b158015612c8857600080fd5b505af1158015612c9c573d6000803e3d6000fd5b505050505050612ed0565b6040516305fbdf1560e21b81526001600160a01b038316906317ef7c5490612cd7908890889086906004016158d6565b602060405180830381600087803b158015612cf157600080fd5b505af1158015612d05573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d2991906153dd565b15612d465760405162461bcd60e51b815260040161075c90615b7c565b84336040516331a9108f60e11b8152600481018790526001600160a01b0391821691831690636352211e9060240160206040518083038186803b158015612d8c57600080fd5b505afa158015612da0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612dc49190614bdf565b6001600160a01b031614612e0c5760405162461bcd60e51b815260206004820152600f60248201526e2737ba102a37b5b2b71027bbb732b960891b604482015260640161075c565b604051630852cd8d60e31b8152600481018690526001600160a01b038216906342966c6890602401600060405180830381600087803b158015612e4e57600080fd5b505af1158015612e62573d6000803e3d6000fd5b50505050826001600160a01b0316639e96a2608787612e7e3390565b6040518463ffffffff1660e01b8152600401612e9c939291906158b3565b600060405180830381600087803b158015612eb657600080fd5b505af1158015612eca573d6000803e3d6000fd5b50505050505b612edf853360008760026143f6565b50506001600055505050565b60008481526077602052604081205460ff1615612f3f5760405162461bcd60e51b8152602060048201526012602482015271139bdb98d948185b1c9958591e481d5cd95960721b604482015260640161075c565b6040516001600160601b031960608c811b821660208401528b811b82166034840152604883018b905289901b166068820152607c8101879052609c810186905260bc8101859052612f929060dc0161104e565b9a9950505050505050505050565b33600081815260696020526040902054612fcc5760405162461bcd60e51b815260040161075c90615a92565b606b5460ff161561322757336000908152606c6020908152604080832086845290915281208184600481111561301257634e487b7160e01b600052602160045260246000fd5b600481111561303157634e487b7160e01b600052602160045260246000fd5b8152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b828210156130e65760008481526020908190206040805160a0810182526003860290920180546001600160a01b03908116845260018083015482168587015260029092015490811692840192909252600160a01b820460e01b6001600160e01b0319166060840152600160c01b90910460ff1615156080830152908352909201910161305f565b5050505090506000815111156131035761310381878787876146a1565b336000908152606d602052604081208185600481111561313357634e487b7160e01b600052602160045260246000fd5b600481111561315257634e487b7160e01b600052602160045260246000fd5b8152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b828210156132075760008481526020908190206040805160a0810182526003860290920180546001600160a01b03908116845260018083015482168587015260029092015490811692840192909252600160a01b820460e01b6001600160e01b0319166060840152600160c01b90910460ff16151560808301529083529092019101613180565b5050505090506000815111156132245761322481888888886146a1565b50505b5050505050565b60008481526077602052604081205460ff161561324a57600080fd5b61106b89898989888a60405160200161104e969594939291906155c0565b6000806132ab8585858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611d1192505050565b6001600160a01b031660009081526076602052604090205460ff1695945050505050565b606654600090610100900460ff16801561330e575033600090815260676020908152604080832083356001600160e01b031916845290915290205460ff165b905033613319611c61565b6001600160a01b0316148061332b5750805b6133475760405162461bcd60e51b815260040161075c90615aed565b610cbe607484846149cd565b6001600160a01b038516600090815260696020526040902054859061338a5760405162461bcd60e51b815260040161075c90615a92565b606654600090610100900460ff1680156133c9575033600090815260676020908152604080832083356001600160e01b031916845290915290205460ff165b9050336133d4611c61565b6001600160a01b031614806133e65750805b6134025760405162461bcd60e51b815260040161075c90615aed565b6001600160a01b0387166000908152606d602052604081209086600481111561343b57634e487b7160e01b600052602160045260246000fd5b600481111561345a57634e487b7160e01b600052602160045260246000fd5b81526020019081526020016000206040518060a00160405280896001600160a01b031681526020016134893390565b6001600160a01b0390811682529889166020808301919091526001600160e01b031990971660408083019190915295151560609182015282546001818101855560009485529388902083516003909202018054918b166001600160a01b0319928316178155978301519388018054948b1694909116939093179092559384015160029095018054918501516080909501511515600160c01b0260ff60c01b1960e09690961c600160a01b026001600160c01b0319909316969098169590951717929092169490941790915550505050565b606654600090610100900460ff168015613599575033600090815260676020908152604080832083356001600160e01b031916845290915290205460ff165b9050336135a4611c61565b6001600160a01b031614806135b65750805b6135d25760405162461bcd60e51b815260040161075c90615aed565b60405163f2fde38b60e01b81526001600160a01b0384169063f2fde38b906135fe908590600401615725565b600060405180830381600087803b15801561361857600080fd5b505af1158015613224573d6000803e3d6000fd5b6002600054141561364f5760405162461bcd60e51b815260040161075c90615bf0565b60026000556075548a90600160a81b900460ff1615613765576040516323b872dd60e01b81526001600160a01b038216906323b872dd9061369890339030908f906004016157de565b602060405180830381600087803b1580156136b257600080fd5b505af11580156136c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136ea91906153dd565b6137065760405162461bcd60e51b815260040161075c90615b22565b604051630852cd8d60e31b8152600481018b90526001600160a01b038c16906342966c6890602401600060405180830381600087803b15801561374857600080fd5b505af115801561375c573d6000803e3d6000fd5b5050505061380c565b6075546040516323b872dd60e01b81526001600160a01b03808416926323b872dd9261379e923392610100900416908f906004016157de565b602060405180830381600087803b1580156137b857600080fd5b505af11580156137cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137f091906153dd565b61380c5760405162461bcd60e51b815260040161075c90615b22565b600061381f8d8d8d8d8d8d898e8e612eeb565b6001600160a01b03811660009081526076602052604090205490915060ff1661385a5760405162461bcd60e51b815260040161075c90615ac6565b6000888152607760205260408120805460ff191660011790556074805461390c919061388590615d39565b80601f01602080910402602001604051908101604052809291908181526020018280546138b190615d39565b80156138fe5780601f106138d3576101008083540402835291602001916138fe565b820191906000526020600020905b8154815290600101906020018083116138e157829003601f168201915b505050505061275e8c614286565b6040516301ffc9a760e01b81529091506001600160a01b038f16906301ffc9a79061394290636cdb3d1360e11b90600401615a6a565b60206040518083038186803b15801561395a57600080fd5b505afa15801561396e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061399291906153dd565b15613aa8578d6001600160a01b03166395db5a646040518163ffffffff1660e01b815260040160206040518083038186803b1580156139d057600080fd5b505afa1580156139e4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613a0891906153dd565b15613a78576040516345e77bc760e11b81526001600160a01b038f1690638bcef78e90613a41908e908e9089908c908c906004016159fb565b600060405180830381600087803b158015613a5b57600080fd5b505af1158015613a6f573d6000803e3d6000fd5b50505050613b0b565b604051630ab714fb60e11b81526001600160a01b038f169063156e29f690613a41908e908e908990600401615933565b604051632fb102cf60e01b81526001600160a01b038f1690632fb102cf90613ad8908e908e9086906004016159bc565b600060405180830381600087803b158015613af257600080fd5b505af1158015613b06573d6000803e3d6000fd5b505050505b50506001600055505050505050505050505050565b606654600090610100900460ff168015613b5f575033600090815260676020908152604080832083356001600160e01b031916845290915290205460ff165b905033613b6a611c61565b6001600160a01b03161480613b7c5750805b613b985760405162461bcd60e51b815260040161075c90615aed565b506001600160a01b03166000908152607660205260409020805460ff19169055565b606654600090610100900460ff168015613bf9575033600090815260676020908152604080832083356001600160e01b031916845290915290205460ff165b905033613c04611c61565b6001600160a01b03161480613c165750805b613c325760405162461bcd60e51b815260040161075c90615aed565b6001600160a01b038216613c975760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161075c565b613ca08261404d565b5050565b606654600090610100900460ff168015613ce3575033600090815260676020908152604080832083356001600160e01b031916845290915290205460ff165b905033613cee611c61565b6001600160a01b03161480613d005750805b613d1c5760405162461bcd60e51b815260040161075c90615aed565b50606b805460ff19811660ff90911615179055565b6001600160a01b0384166000908152606c6020908152604080832085845290915281208190819081856004811115613d7957634e487b7160e01b600052602160045260246000fd5b6004811115613d9857634e487b7160e01b600052602160045260246000fd5b8152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b82821015613e4d5760008481526020908190206040805160a0810182526003860290920180546001600160a01b03908116845260018083015482168587015260029092015490811692840192909252600160a01b820460e01b6001600160e01b0319166060840152600160c01b90910460ff16151560808301529083529092019101613dc6565b50505050905060005b8151811015613eb957866001600160a01b0316828281518110613e8957634e487b7160e01b600052603260045260246000fd5b6020026020010151604001516001600160a01b03161415613ea957600192505b613eb281615d74565b9050613e56565b50909695505050505050565b6001600160a01b0383166000908152606d602052604081208190819081856004811115613f0257634e487b7160e01b600052602160045260246000fd5b6004811115613f2157634e487b7160e01b600052602160045260246000fd5b8152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b82821015613fd65760008481526020908190206040805160a0810182526003860290920180546001600160a01b03908116845260018083015482168587015260029092015490811692840192909252600160a01b820460e01b6001600160e01b0319166060840152600160c01b90910460ff16151560808301529083529092019101613f4f565b50505050905060005b815181101561404257856001600160a01b031682828151811061401257634e487b7160e01b600052603260045260246000fd5b6020026020010151604001516001600160a01b0316141561403257600192505b61403b81615d74565b9050613fdf565b509095945050505050565b603480546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600154610100900460ff166140c65760405162461bcd60e51b815260040161075c90615ba5565b6140ce61491f565b565b6301ffc9a760e01b60005260736020527f8addaa5e2ede3710693e46fdbb8d1e6a4a2bd2b10886ff0adc944600846a13085460ff16156141475760405162461bcd60e51b8152602060048201526012602482015271105b1c9958591e48149959da5cdd195c995960721b604482015260640161075c565b6140ce6301ffc9a760e01b61494f565b6000806040518060400160405280601c81526020017b0ca2ba3432b932bab69029b4b3b732b21026b2b9b9b0b3b29d05199960211b8152509050600081876040516020016141a69291906156d4565b60408051601f198184030181528282528051602091820120600080855291840180845281905260ff8a169284019290925260608301889052608083018790529092509060019060a0016020604051602081039080840390855afa158015614211573d6000803e3d6000fd5b5050604051601f1901519998505050505050505050565b6000614235826020615c7a565b8351101561427d5760405162461bcd60e51b8152602060048201526015602482015274746f55696e743235365f6f75744f66426f756e647360581b604482015260640161075c565b50016020015190565b6060816142aa5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156142d457806142be81615d74565b91506142cd9050600a83615cb7565b91506142ae565b6000816001600160401b038111156142fc57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015614326576020820181803683370190505b509050815b85156143c15761433c600182615cf6565b9050600061434b600a88615cb7565b61435690600a615cd7565b6143609088615cf6565b61436b906030615c92565b905060008160f81b90508084848151811061439657634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506143b8600a89615cb7565b9750505061432b565b50949350505050565b606082826040516020016143df9291906156f6565b604051602081830303815290604052905092915050565b6001600160a01b038516600090815260696020526040902054859061442d5760405162461bcd60e51b815260040161075c90615a92565b606b5460ff1615610852576001600160a01b0386166000908152606c6020908152604080832086845290915281208184600481111561447c57634e487b7160e01b600052602160045260246000fd5b600481111561449b57634e487b7160e01b600052602160045260246000fd5b8152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b828210156145505760008481526020908190206040805160a0810182526003860290920180546001600160a01b03908116845260018083015482168587015260029092015490811692840192909252600160a01b820460e01b6001600160e01b0319166060840152600160c01b90910460ff161515608083015290835290920191016144c9565b50505050905060008151111561456d5761456d81878787876146a1565b6001600160a01b0387166000908152606d60205260408120818560048111156145a657634e487b7160e01b600052602160045260246000fd5b60048111156145c557634e487b7160e01b600052602160045260246000fd5b8152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b8282101561467a5760008481526020908190206040805160a0810182526003860290920180546001600160a01b03908116845260018083015482168587015260029092015490811692840192909252600160a01b820460e01b6001600160e01b0319166060840152600160c01b90910460ff161515608083015290835290920191016145f3565b5050505090506000815111156146975761469781888888886146a1565b5050505050505050565b6000805b86518110156132245760008782815181106146d057634e487b7160e01b600052603260045260246000fd5b602002602001015190508060800151925060006001600160a01b031681604001516001600160a01b03161461490e5760008082604001516001600160a01b031683606001518a6040516020016147269190615725565b6040516020818303038152906040528a6040516020016147469190615725565b60408051601f19818403018152828252602083018d9052910160408051601f198184030181529082905261477f9493929160200161565a565b60408051601f1981840301815290829052614799916156b8565b6000604051808303816000865af19150503d80600081146147d6576040519150601f19603f3d011682016040523d82523d6000602084013e6147db565b606091505b50915091508115614836577f401f7e442aad416e994b0993904baa066db59088ec7c35a94c901133796b79d8898985604001518a87606001518b876040516148299796959493929190615788565b60405180910390a161490b565b84156148c1577f308ce68979ca2f2b482ee40498ed127ce2537cf0aae7981a927f45a1c3f7e150898985604001518a87606001518b60405161487d96959493929190615739565b60405180910390a160405162461bcd60e51b815260206004820152601160248201527010d85b1b189858dac814995d995c9d1959607a1b604482015260640161075c565b7f0d9f1260ebacd3dc63232777adc8c8e2873f446cb833661f2b993b725b82c72b898985604001518a87606001518b60405161490296959493929190615739565b60405180910390a15b50505b5061491881615d74565b90506146a5565b600154610100900460ff166149465760405162461bcd60e51b815260040161075c90615ba5565b6140ce3361404d565b6001600160e01b031980821614156149a85760405162461bcd60e51b815260206004820152601c60248201527b115490cc4d8d4e881a5b9d985b1a59081a5b9d195c999858d9481a5960221b604482015260640161075c565b6001600160e01b0319166000908152607360205260409020805460ff19166001179055565b8280546149d990615d39565b90600052602060002090601f0160209004810192826149fb5760008555614a41565b82601f10614a145782800160ff19823516178555614a41565b82800160010185558215614a41579182015b82811115614a41578235825591602001919060010190614a26565b50614a4d929150614a51565b5090565b5b80821115614a4d5760008155600101614a52565b8035614a7181615dbb565b919050565b600082601f830112614a86578081fd5b81356020614a9b614a9683615c57565b615c27565b80838252828201915082860187848660051b8901011115614aba578586fd5b855b85811015614ad857813584529284019290840190600101614abc565b5090979650505050505050565b80356001600160e01b031981168114614a7157600080fd5b60008083601f840112614b0e578182fd5b5081356001600160401b03811115614b24578182fd5b602083019150836020828501011115614b3c57600080fd5b9250929050565b600082601f830112614b53578081fd5b81356001600160401b03811115614b6c57614b6c615da5565b614b7f601f8201601f1916602001615c27565b818152846020838601011115614b93578283fd5b816020850160208301379081016020019190915292915050565b803560058110614a7157600080fd5b600060208284031215614bcd578081fd5b8135614bd881615dbb565b9392505050565b600060208284031215614bf0578081fd5b8151614bd881615dbb565b60008060408385031215614c0d578081fd5b8235614c1881615dbb565b91506020830135614c2881615dbb565b809150509250929050565b600080600080600060a08688031215614c4a578081fd5b614c548635615dbb565b85359450602080870135614c6781615dbb565b945060408701356001600160401b0380821115614c82578384fd5b614c8e8a838b01614a76565b95506060890135915080821115614ca3578384fd5b614caf8a838b01614a76565b94506080890135915080821115614cc4578384fd5b818901915089601f830112614cd7578384fd5b8135614ce5614a9682615c57565b8082825285820191508585018d878560051b8801011115614d04578788fd5b875b84811015614d3c578582351115614d1b578889fd5b614d2a8f8984358a0101614b43565b84529287019290870190600101614d06565b50508096505050505050509295509295909350565b600080600080600060a08688031215614d68578081fd5b8535614d7381615dbb565b94506020860135614d8381615dbb565b9350614d9160408701614bad565b9250614d9f60608701614ae5565b91506080860135614daf81615dd0565b809150509295509295909350565b600080600060608486031215614dd1578283fd5b8335614ddc81615dbb565b92506020840135614dec81615dbb565b929592945050506040919091013590565b60008060008060008060008060008060006101208c8e031215614e1e578889fd5b614e288c35615dbb565b8b359a50614e3960208d0135615dbb565b60208c0135995060408c01359850614e5360608d01614a66565b975060808c0135965060a08c013595506001600160401b0360c08d0135811015614e7b578586fd5b614e8b8e60c08f01358f01614afd565b909650945060e08d0135811015614ea0578384fd5b50614eb18d60e08e01358e01614afd565b81945080935050506101008c013590509295989b509295989b9093969950565b60008060008060008060008060006101008a8c031215614eef578283fd5b8935614efa81615dbb565b985060208a0135614f0a81615dbb565b975060408a0135965060608a0135614f2181615dbb565b955060808a0135945060a08a0135935060c08a0135925060e08a01356001600160401b03811115614f50578283fd5b614f5c8c828d01614afd565b915080935050809150509295985092959850929598565b60008060008060808587031215614f88578182fd5b8435614f9381615dbb565b93506020850135614fa381615dbb565b925060408501359150614fb860608601614bad565b905092959194509250565b60008060008060008060c08789031215614fdb578384fd5b8635614fe681615dbb565b95506020870135614ff681615dbb565b94506040870135935061500b60608801614bad565b925061501960808801614ae5565b915060a087013561502981615dd0565b809150509295509295509295565b600080600080600060a0868803121561504e578283fd5b853561505981615dbb565b9450602086013561506981615dbb565b93506040860135925061507e60608701614bad565b949793965091946080013592915050565b60008060008060008060008060c0898b0312156150aa578182fd5b88356150b581615dbb565b975060208901356150c581615dbb565b96506040890135955060608901356001600160401b03808211156150e7578384fd5b6150f38c838d01614afd565b909750955060808b013591508082111561510b578384fd5b506151188b828c01614afd565b999c989b50969995989497949560a00135949350505050565b60008060008060008060008060c0898b03121561514c578182fd5b883561515781615dbb565b9750602089013561516781615dbb565b9650604089013595506060890135945060808901356001600160401b0380821115615190578384fd5b61519c8c838d01614afd565b909650945060a08b01359150808211156151b4578384fd5b506151c18b828c01614afd565b999c989b5096995094979396929594505050565b60008060008060008060008060e0898b0312156151f0578182fd5b88356151fb81615dbb565b9750602089013561520b81615dbb565b965060408901359550606089013594506080890135935060a08901356001600160401b038082111561523b578384fd5b6152478c838d01614afd565b909550935060c08b013591508082111561525f578283fd5b5061526c8b828c01614b43565b9150509295985092959890939650565b60008060008060008060008060e0898b031215615297578182fd5b88356152a281615dbb565b975060208901356152b281615dbb565b965060408901359550606089013594506080890135935060a08901356001600160401b03808211156152e2578384fd5b6152ee8c838d01614b43565b945060c08b01359150808211156151b4578384fd5b600080600060608486031215615317578081fd5b833561532281615dbb565b925061533060208501614ae5565b9150604084013590509250925092565b600080600060608486031215615354578081fd5b833561535f81615dbb565b925061533060208501614bad565b6000806040838503121561537f578182fd5b823561538a81615dbb565b946020939093013593505050565b600080600080608085870312156153ad578182fd5b84356153b881615dbb565b9350602085013592506153cd60408601614bad565b9396929550929360600135925050565b6000602082840312156153ee578081fd5b8151614bd881615dd0565b60008060006040848603121561540d578081fd5b8335925060208401356001600160401b03811115615429578182fd5b61543586828701614afd565b9497909650939450505050565b60008060408385031215615454578182fd5b8235915060208301356001600160401b03811115615470578182fd5b61547c85828601614b43565b9150509250929050565b600060208284031215615497578081fd5b614bd882614ae5565b600080602083850312156154b2578182fd5b82356001600160401b038111156154c7578283fd5b6154d385828601614afd565b90969095509350505050565b6000602082840312156154f0578081fd5b5035919050565b600060208284031215615508578081fd5b5051919050565b6000815180845260208085019450808401835b8381101561553e57815187529582019590820190600101615522565b509495945050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6000815180845261558a816020860160208601615d0d565b601f01601f19169290920160200192915050565b600581106155bc57634e487b7160e01b600052602160045260246000fd5b9052565b6001600160601b0319606088811b8216835287901b166014820152602881018590526048810184905282516000906155ff816068850160208801615d0d565b60689201918201929092526088019695505050505050565b6001600160601b0319606088811b8216835287901b1660148201526028810185905260488101849052600082846068840137910160680190815295945050505050565b6001600160e01b031985168152835160009061567d816004850160208901615d0d565b845190830190615694816004840160208901615d0d565b84519101906156aa816004840160208801615d0d565b016004019695505050505050565b600082516156ca818460208701615d0d565b9190910192915050565b600083516156e6818460208801615d0d565b9190910191825250602001919050565b60008351615708818460208801615d0d565b83519083019061571c818360208801615d0d565b01949350505050565b6001600160a01b0391909116815260200190565b6001600160a01b038781168252868116602083015285166040820152606081018490526001600160e01b03198316608082015260c0810161577d60a083018461559e565b979650505050505050565b6001600160a01b038881168252878116602083015286166040820152606081018590526001600160e01b03198416608082015260006157ca60a083018561559e565b60e060c083015261106b60e0830184615572565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b0385168152608060208083018290526000916158279084018761550f565b8381036040850152615839818761550f565b905083810360608501528085518083528383019150838160051b840101848801865b8381101561588957601f19868403018552615877838351615572565b9487019492509086019060010161585b565b50909b9a5050505050505050505050565b6001600160a01b03929092168252602082015260400190565b6001600160a01b0393841681526020810192909252909116604082015260600190565b6001600160a01b038416815260208082018490526060604083018190528351908301819052600091848101916080850190845b8181101561592557845183529383019391830191600101615909565b509098975050505050505050565b6001600160a01b039390931683526020830191909152604082015260600190565b60018060a01b0385168152836020820152826040820152608060608201526000611df16080830184615572565b60018060a01b03871681528560208201526080604082015260006159a9608083018688615549565b828103606084015261106b818587615549565b60018060a01b03841681528260208201526080604082015260006159e36080830184615572565b82810360609093019290925281526020019392505050565b60018060a01b038616815284602082015283604082015260806060820152600061577d608083018486615549565b6020808252825182820181905260009190848201906040850190845b81811015613eb95783516001600160a01b031683529284019291840191600101615a45565b6001600160e01b031991909116815260200190565b602081526000614bd86020830184615572565b6020808252601a908201527910dbdb9d1c9858dd081a5cc81b9bdd081c9959da5cdd195c995960321b604082015260600190565b6020808252600d908201526c139bdd0815da5d1b995cdcd959609a1b604082015260600190565b6020808252601b908201527a4e6f74206f776e6572206f722061626c6520746f2062797061737360281b604082015260600190565b6020808252600e908201526d2a3930b739b332b91022a92927a960911b604082015260600190565b602080825260189082015277199c9bdb4e88139bdd081bdddb995c881bd9881d985d5b1d60421b604082015260600190565b6020808252600f908201526e105b1c9958591e4810db185a5b5959608a1b604082015260600190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b604051601f8201601f191681016001600160401b0381118282101715615c4f57615c4f615da5565b604052919050565b60006001600160401b03821115615c7057615c70615da5565b5060051b60200190565b60008219821115615c8d57615c8d615d8f565b500190565b600060ff821660ff84168060ff03821115615caf57615caf615d8f565b019392505050565b600082615cd257634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615615cf157615cf1615d8f565b500290565b600082821015615d0857615d08615d8f565b500390565b60005b83811015615d28578181015183820152602001615d10565b83811115610cbe5750506000910152565b600181811c90821680615d4d57607f821691505b60208210811415615d6e57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415615d8857615d88615d8f565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114611ab657600080fd5b8015158114611ab657600080fdfea26469706673582212208c31ef87c1a0042cf4c5cc3156824a0872ea63a76682f71e2ee099762cf4573464736f6c63430008040033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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