ETH Price: $3,279.74 (+0.44%)
Gas: 15 Gwei

Token

Ribbit Item (RIBBIT ITEM)
 

Overview

Max Total Supply

0 RIBBIT ITEM

Holders

419

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
teolbo.eth
0xe8628a9f7727bcefeab492d601de0a0fb1ab07fc
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
RibbitItem

Compiler Version
v0.8.14+commit.80d49f37

Optimization Enabled:
Yes with 800 runs

Other Settings:
default evmVersion
File 1 of 10 : RibbitItem.sol
// Froggy Friends by Fonzy & Mayan (www.froggyfriendsnft.com) Ribbit Item

//...................................................@@@@@........................
//.......................%@@@@@@@@@*.............@@@@#///(@@@@@...................
//....................@@@&(//(//(/(@@@.........&@@////////////@@@.................
//....................@@@//////////////@@@@@@@@@@@@/////@@@@/////@@@..............
//..................%@@/////@@@@@(////////////////////%@@@@/////#@@...............
//..................@@%//////@@@#///////////////////////////////@@@...............
//..................@@@/////////////////////////////////////////@@@@..............
//..................@@(///////////////(///////////////(////////////@@@............
//...............*@@/(///////////////&@@@@@@(//(@@@@@@/////////////#@@............
//...............@@////////////////////////(%&&%(///////////////////@@@...........
//..............@@@/////////////////////////////////////////////////&@@...........
//..............@@(/////////////////////////////////////////////////@@#...........
//..............@@@////////////////////////////////////////////////@@@............
//...............@@@/////////////////////////////////////////////#@@/.............
//................&@@@//////////////////////////////////////////@@@...............
//..................*@@@%////////////////////////////////////@@@@.................
//...............@@@@///////////////////////////////////////(@@@..................
//............%@@@////////////////............/////////////////@@@................
//..........%@@#/////////////..................... (/////////////@@@..............
//.........@@@////////////............................////////////@@@.............
//........@@(///////(@@@................................(@@&///////&@@............
//.......@@////////@@@....................................@@@///////@@@...........
//......@@@///////@@@.......................................@@///////@@%..........
//.....(@@///////@@@.........................................@@/////(/@@..........

// Development help from Lexi

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.14;

import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol";
import "@openzeppelin/contracts/token/ERC1155/extensions/IERC1155MetadataURI.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

interface IErc20 {
    function transfer(address to, uint256 amount) external returns (bool);
    function balanceOf(address account) external view returns (uint256);
    function transferFrom(address from,address to,uint256 amount) external returns (bool);
}

interface IErc721 {
    function balanceOf(address owner) external view returns (uint256);
}

contract RibbitItem is Context, ERC165, IERC1155, IERC1155MetadataURI, Ownable {
    using Address for address;

    // Variables
    string public name;
    string public symbol;
    string private baseUrl;
    string private contractUrl;
    uint256 decimals = 10**18;
    uint256 collabIdCounter = 1;
    uint256 idCounter;

    // Interfaces
    IErc20 ribbit;
    IErc721 froggyFriends;

    // Maps
    mapping(uint256 => uint256) price; 											// Item ID to price
    mapping(uint256 => uint256) percent; 										// Item ID to boost percentage
    mapping(uint256 => uint256) supply; 										// Item ID to supply
    mapping(uint256 => bool) boost; 											// Item ID to boost status (true if boost)
    mapping(uint256 => uint256) minted; 										// Item ID to minted supply
    mapping(uint256 => bool) onSale; 											// Item ID to sale status (true if on sale)
    mapping(uint256 => uint256) walletLimit; 									// Item ID to mint cap per wallet
    mapping(uint256 => address[]) holders; 										// Item ID to list of holder addresses
    mapping(uint256 => address) collabAddresses; 								// Item ID to collab account
    mapping(address => bool) approvedBurnAddress; 								// Address to burn state (true if approved)
    mapping(uint256 => mapping(address => uint256)) private _balances; 			// Token ID to map of address to balance
    mapping(address => mapping(address => bool)) private _operatorApprovals;    // Address to map of address to approval status (true if approved)
    mapping(uint256 => mapping(address => uint256)) private track; 				// Item ID to map of address to mint count
    mapping(address => mapping(uint256 => uint256)) private mintLimitCounter;	// Address to map of item ID to mint count

    constructor(string memory _name, string memory _symbol, string memory _baseUrl, string memory _contractUrl, address _ribbitAddress, address _froggyAddress) {
        name = _name;
        symbol = _symbol;
        baseUrl = _baseUrl;
        contractUrl = _contractUrl;
        ribbit = IErc20(_ribbitAddress);
        froggyFriends = IErc721(_froggyAddress);

        // Ribbit Items
        listItem(1, 200000, 6, true, 1);             // Golden Lily Pad
        listFriend(2, 5, 700, 201, true, true, 1);   // Rabbit Friend
        listFriend(3, 10, 1800, 151, true, true, 1); // Bear Friend
        listFriend(4, 15, 5000, 76, true, true, 1);  // Red Panda Friend
        listFriend(5, 20, 10000, 11, true, true, 1); // Cat Friend
        listFriend(6, 30, 100000, 6, true, true, 1); // Unicorn Friend
        listFriend(7, 35, 300000, 1, true, true, 1); // Golden Tiger Friend

        listCollabFriend(8, 10, 700, 5, true, true, 1, 0xba033D82c64DD514B184e2d1405cD395dfE6e706);   // Bao Society Friend
        listCollabFriend(9, 10, 700, 5, true, true, 1, 0x928f072C009727FbAd81bBF3aAa885f9fEa65fcf);   // Roo Troop Friend
        listCollabFriend(10, 5, 700, 5, true, true, 1, 0x67421C8622F8E38Fe9868b4636b8dC855347d570);   // Squishiverse Friend
        listCollabFriend(11, 5, 700, 5, true, true, 1, 0x1a2F71468F656E97c2F86541E57189F59951efe7);   // CryptoMories Friend
        listCollabFriend(12, 10, 1000, 2, true, true, 1, 0x0c2E57EFddbA8c768147D1fdF9176a0A6EBd5d83); // Kaiju Kings Friend

        // Froggy Milestones raffle reserved Ribbit Items
        adminMint(owner(), 1, 1); // Golden Lily Pad
        adminMint(owner(), 2, 1); // Rabbit Friend
        adminMint(owner(), 3, 1); // Bear Friend
        adminMint(owner(), 4, 1); // Red Panda Friend
        adminMint(owner(), 5, 1); // Cat Friend
        adminMint(owner(), 6, 1); // Unicorn Friend
    }

    /// @notice Bundle buy Ribbit Items
    /// @param ids list of ribbit item ids to buy
    /// @param amount list of ribbit item amounts
    function bundleBuy(uint256[] memory ids, uint256[] memory amount) public {
        require(ids.length == amount.length, "Ribbit item ID missing");
        for (uint256 i; i < ids.length; i++) {
            require(ids[i] > 0, "Ribbit item ID must not be zero");
            require(price[ids[i]] > 0, "Ribbit item price not set");
            uint256 saleAmount = amount[i] * price[ids[i]];
            require(ribbit.balanceOf(msg.sender) >= saleAmount, "Insufficient funds for purchase");
            require(onSale[ids[i]] == true, "Ribbit item not on sale");
            require(supply[ids[i]] > 0, "Ribbit item supply not set");
            require(walletLimit[ids[i]] > 0, "Ribbit item wallet limit not set");
            require(minted[ids[i]] + amount[i] <= supply[ids[i]], "Ribbit item supply exceeded");
            require(mintLimitCounter[msg.sender][ids[i]] + amount[i] <= walletLimit[ids[i]], "Ribbit item wallet limit exceeded");
            mintLimitCounter[msg.sender][ids[i]] += amount[i];
            if (track[ids[i]][msg.sender] < 1) {
                holders[ids[i]].push(msg.sender);
                track[ids[i]][msg.sender] = 1;
            }
            ribbit.transferFrom(msg.sender, address(this), saleAmount);
            minted[ids[i]] += amount[i];
            _mint(msg.sender, ids[i], amount[i], "");
        }
    }

    /// @notice Buy collab friend
    /// @param id the ribbit item id
    /// @param amount the amount of the ribbit item
    /// @param collabId the collab id of the ribbit item
    function collabBuy(uint256 id, uint256 amount, uint256 collabId) public {
        IErc721 collabNFT = IErc721(collabAddresses[collabId]);
        require(collabNFT.balanceOf(msg.sender) > 0, "Collab nft not owned");
        require(froggyFriends.balanceOf(msg.sender) > 0, "Froggy friend not owned");
        require(id > 0, "Ribbit item ID must not be zero");
        require(price[id] > 0, "Ribbit item price not set");
        uint256 saleAmount = amount * price[id];
        require(ribbit.balanceOf(msg.sender) >= saleAmount, "Insufficient funds for purchase");
        require(onSale[id] == true, "Ribbit item not on sale");
        require(supply[id] > 0, "Ribbit item supply not set");
        require(walletLimit[id] > 0, "Ribbit item wallet limit not set");
        require(minted[id] + amount <= supply[id], "Ribbit item supply exceeded");
        require(mintLimitCounter[msg.sender][id] + amount <= walletLimit[id], "Ribbit item wallet limit exceeded");
        mintLimitCounter[msg.sender][id] += amount;
        if (track[id][msg.sender] < 1) {
            holders[id].push(msg.sender);
            track[id][msg.sender] = 1;
        }
        ribbit.transferFrom(msg.sender, address(this), saleAmount);
        minted[id] += amount;
        _mint(msg.sender, id, amount, "");
    }

    /// @notice list friend ribbit item
    /// @param id the ribbit item id
    /// @param _percent the friend boost percentage
    /// @param _price the friend price in ether format
    /// @param _supply the friend supply
    /// @param _boost the friend boost status (true if is a boost)
    /// @param _onSale the friend sale status (true if is on sale)
    /// @param _walletLimit the friend wallet limit
    function listFriend(uint256 id, uint256 _percent, uint256 _price, uint256 _supply, bool _boost, bool _onSale, uint256 _walletLimit) public onlyOwner {
        require(id > idCounter, "Ribbit item ID exists");
        price[id] = _price * decimals;
        percent[id] = _percent;
        supply[id] = _supply;
        boost[id] = _boost;
        onSale[id] = _onSale;
        walletLimit[id] = _walletLimit;
        idCounter++;
    }

    /// @notice list collab friend item
    /// @param id the ribbit item id
    /// @param _percent the collab friend boost percentage
    /// @param _price the collab friend price in ether format
    /// @param _supply the collab friend supply
    /// @param _boost the collab friend boost status (true if is a boost)
    /// @param _onSale the collab friend sale status (true if is on sale)
    /// @param _walletLimit the collab friend wallet limit
    /// @param _collabAddress the collab NFT address
    function listCollabFriend(uint256 id, uint256 _percent, uint256 _price, uint256 _supply, bool _boost, bool _onSale, uint256 _walletLimit, address _collabAddress) public onlyOwner {
        require(id > idCounter, "Ribbit item ID exists");
        price[id] = _price * decimals;
        percent[id] = _percent;
        supply[id] = _supply;
        boost[id] = _boost;
        onSale[id] = _onSale;
        walletLimit[id] = _walletLimit;
        collabAddresses[collabIdCounter] = _collabAddress;
        collabIdCounter++;
        idCounter++;
    }

    /// @notice list ribbit item
    /// @param id the ribbit item id
    /// @param _price the ribbit item price in ether format
    /// @param _supply the ribbit item supply
    /// @param _onSale the ribbit item sale status (true if is on sale)
    /// @param _walletLimit the ribbit item wallet limit
    function listItem(uint256 id, uint256 _price, uint256 _supply, bool _onSale, uint256 _walletLimit) public onlyOwner {
        require(id > idCounter, "Ribbit item ID exists");
        price[id] = _price * decimals;
        supply[id] = _supply;
        onSale[id] = _onSale;
        walletLimit[id] = _walletLimit;
        idCounter++;
    }

    /// @notice sets the ribbit item price
    /// @param id the ribbit item id
    /// @param _price the ribbit item price in ether format
    function setPrice(uint256 id, uint256 _price) public onlyOwner {
        require(id <= idCounter, "ID does not exist");
        price[id] = _price * decimals;
    }

    /// @notice sets the ribbit item percent
    /// @param id the ribbit item id
    function setPercent(uint256 id, uint256 _percent) public onlyOwner {
        require(id <= idCounter, "ID does not exist");
        percent[id] = _percent;
    }

    /// @notice sets the ribbit item boost status (true if is boost)
    /// @param id the ribbit item id
    function setIsBoost(uint256 id, bool _isBoost) public onlyOwner {
        require(id <= idCounter, "ID does not exist");
        boost[id] = _isBoost;
    }

    /// @notice sets the ribbit item supply
    /// @param id the ribbit item id
    function setSupply(uint256 id, uint256 _supply) public onlyOwner {
        require(id <= idCounter, "ID does not exist");
        supply[id] = _supply;
    }

    /// @notice sets ribbit item sale status
    /// @param id the ribbit item id
    /// @param _onSale the ribbit item sale status (true if is on sale)
    function setOnSale(uint256 id, bool _onSale) public onlyOwner {
        require(id <= idCounter, "ID does not exist");
        onSale[id] = _onSale;
    }

    /// @notice sets ribbit item wallet limit
    /// @param id the ribbit item id
    /// @param _walletLimit the new wallet limit
    function setWalletLimit(uint256 id, uint256 _walletLimit) public onlyOwner {
        require(id <= idCounter, "ID does not exist");
        walletLimit[id] = _walletLimit;
    }

    /// @notice sets collab friend address
    /// @param collabId the collab friend ribbit item id
    /// @param _collabAddress the new collab friend address
    function setCollabAddress(uint256 collabId, address _collabAddress) public onlyOwner {
        require(collabId <= collabIdCounter, "ID does not exist");
        collabAddresses[collabId] = _collabAddress;
    }

    /// @notice sets address burn permissions
    /// @param add the address to update permissions for
    /// @param canBurn the permissions to grant (true if is approved for burning)
    function setApprovedBurnAddress(address add, bool canBurn) public onlyOwner {
        approvedBurnAddress[add] = canBurn;
    }

    /// @notice burns the amount of ribbit items specified
    /// @param from the address to burn the ribbit item from
    /// @param id the ribbit item id
    /// @param amount the amount of ribbit items to burn
    /// @dev burn function called by StakeFroggies.sol
    function burn(address from, uint256 id, uint256 amount) external {
        require(approvedBurnAddress[msg.sender] == true, "Address not approved for burning");
        _burn(from, id, amount);
    }

    /// @notice admin burns the entire ribbit item supply
    /// @param id the ribbit item id
    /// @dev only admin can burn the ribbit item supply
    /// @dev only use to burn temporary ribbit items
    function adminBurn(uint256 id) public onlyOwner {
        for (uint256 i; i < holders[id].length; i++) {
            _burn(holders[id][i], id, (balanceOf(holders[id][i], id)));
        }
    }

    /// @notice admin mint ribbit item to address
    /// @param account the address to mint the ribbit item to
    /// @param id the ribbit item id
    /// @param amount the amount of ribbit items
    function adminMint(address account, uint256 id, uint256 amount) public onlyOwner {
        require(minted[id] + amount <= supply[id], "Ribbit item supply exceeded");
        minted[id] += amount;
        _mint(account, id, amount, "");
    }

    /// @notice admin mints remaining ribbit items
    /// @param id the ribbit item id
    function adminMintAll(uint256 id) public onlyOwner {
        uint256 remaining = supply[id] - minted[id];
        require(minted[id] + remaining <= supply[id], "");
        require(remaining > 0, "Ribbit item supply reached");
        minted[id] += remaining;
        _mint(msg.sender, id, remaining, "");
    }

    /// @notice returns the ribbit item price by id in gwei format
    /// @param id the ribbit item id
    function getPrice(uint256 id) public view returns (uint256) {
        return price[id];
    }

    /// @notice returns the ribbit item boost percentage
    /// @param id the ribbit item id
    /// @dev boostPercentage function called by StakeFroggies.sol
    function boostPercentage(uint256 id) public view returns (uint256) {
        return percent[id];
    }

	/// @notice returns the max supply of a ribbit item
    /// @param id the ribbit item id
    function maxSupply(uint256 id) public view returns (uint256) {
        return supply[id];
    }

	/// @notice returns the ribbit item boost status (true if is boost)
    /// @param id the ribbit item id
    /// @dev isBoost function called by StakeFroggies.sol
    function isBoost(uint256 id) public view returns (bool) {
        return boost[id];
    }

	/// @notice returns the minted supply of a ribbit item
    /// @param id the ribbit item id
    function mintedSupply(uint256 id) public view returns (uint256) {
        return minted[id];
    }

    /// @notice returns the ribbit item sale status (true if is on sale)
    /// @param id the ribbit item id
    function isOnSale(uint256 id) public view returns (bool) {
        return onSale[id];
    }

    /// @notice returns the ribbit item wallet limit
    /// @param id the ribbit item id
    function getWalletLimit(uint256 id) public view returns (uint256) {
        return walletLimit[id];
    }

	/// @notice returns ribbit item properties by id
    /// @param id the ribbit item id
    /// @return item properties
    function item(uint256 id) public view returns (uint256, uint256, uint256, uint256, uint256, bool, bool) {
        return (
            getPrice(id), 
            boostPercentage(id), 
            mintedSupply(id),
            maxSupply(id),
            getWalletLimit(id),
            isBoost(id), 
            isOnSale(id)
        );
    }


	/// @notice returns the total number of ribbit items listed
    function totalListed() public view returns (uint256) {
        return idCounter;
    }

    /// @notice returns the number of collab friends listed
    function totalCollabs() public view returns (uint256) {
        return collabIdCounter-1;
    }

    /// @notice returns the collab address of a collab friend
    /// @param id the ribbit item id
    function collabAddress(uint256 id) public view returns (address) {
        return collabAddresses[id];
    }

	/// @notice returns the number of ribbit items an account owns
    /// @param account the address to check the balance of
    /// @param id the ribbit item id
    function balanceOf(address account, uint256 id) public view virtual override returns (uint256) {
        require(account != address(0), "ERC1155: address zero is not a valid owner");
        return _balances[id][account];
    }

    /// @notice returns ribbit item holders
    /// @param id the ribbit item id
    function itemHolders(uint256 id) public view returns (address[] memory) {
        return holders[id];
    }

    /// @notice sets the ribbit contract address
    /// @param account the ribbit address
    function setRibbitAddress(address account) public onlyOwner {
        ribbit = IErc20(account);
    }

    /// @notice sets the froggy friends contract address
    /// @param account the froggy friends address
    function setFroggyFriendsAddress(address account) public onlyOwner {
        froggyFriends = IErc721(account);
    }

    /// @notice withdraws ribbit balance from this contract to the admin account
    function withdrawRibbit() public onlyOwner {
        ribbit.transfer(msg.sender, ribbit.balanceOf(address(this)));
    }

    /// @notice returns the contract metdata url
    /// @dev i.e.(https://api.froggyfriendsnft.com/items/{_contractUrl})
    function contractURI() public view returns (string memory) {
        return string(abi.encodePacked(baseUrl, contractUrl));
    }

    /// @notice sets contract metdata uri
    /// @param _contractUrl the new contract uri path 
    /// @dev i.e. contract/metadata (https://api.froggyfriendsnft.com/items/{_contractUrl})
    function setContractURI(string memory _contractUrl) public onlyOwner {
        contractUrl = _contractUrl;
    }

    /// @dev uri fills the base url with the supplied item id
    /// @dev output format example if hosted on API https://api.froggyfriendsnft.com/item/{id}
    function uri(uint256 _tokenId) public view virtual override returns (string memory) {
        return string(abi.encodePacked(baseUrl, Strings.toString(_tokenId)));
    }

    /// @notice sets the metadata base url
    /// @param _baseUrl the metadata base url for example 'https://api.froggyfriendsnft.com/item/'
    function setURI(string memory _baseUrl) public onlyOwner {
        baseUrl = _baseUrl;
    }

    /// @dev See {IERC1155-balanceOfBatch}.
    function balanceOfBatch(address[] memory accounts, uint256[] memory ids) public view virtual override returns (uint256[] memory) {
        require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch");

        uint256[] memory batchBalances = new uint256[](accounts.length);

        for (uint256 i = 0; i < accounts.length; ++i) {
            batchBalances[i] = balanceOf(accounts[i], ids[i]);
        }

        return batchBalances;
    }

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

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

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

    /// @dev See {IERC1155-safeTransferFrom}.
    function safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes memory data) public virtual override {
        require(from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not owner nor approved");

        _safeTransferFrom(from, to, id, amount, data);
        if (track[id][to] < 1) {
            holders[id].push(to);
            track[id][to] = 1;
        }

        if (balanceOf(from, id) == 0) {
            track[id][from] = 0;
            for (uint256 j; j < holders[id].length; j++) {
                if (holders[id][j] == from) {
                    holders[id][j] = holders[id][holders[id].length - 1];
                    holders[id].pop();
                    break;
                }
            }
        }
    }

    //// @dev See {IERC1155-safeBatchTransferFrom}.
    function safeBatchTransferFrom(address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data) public virtual override {
        require(from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: transfer caller is not owner nor approved");
        _safeBatchTransferFrom(from, to, ids, amounts, data);
        for (uint256 i; i < ids.length; i++) {
            if (track[ids[i]][to] < 1) {
                holders[ids[i]].push(to);
                track[ids[i]][to] = 1;
            }

            if (balanceOf(from, ids[i]) == 0) {
                track[ids[i]][from] = 0;
                for (uint256 j; j < holders[ids[i]].length; j++) {
                    if (holders[ids[i]][j] == from) {
                        holders[ids[i]][j] = holders[ids[i]][holders[ids[i]].length - 1];
                        holders[ids[i]].pop();
                        break;
                    }
                }
            }
        }
    }

    function _safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes memory data) internal virtual {
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }
        _balances[id][to] += amount;

        emit TransferSingle(operator, from, to, id, amount);

        _afterTokenTransfer(operator, from, to, ids, amounts, data);

        _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data);
    }

    function _safeBatchTransferFrom(address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data) internal virtual {
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; ++i) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
            _balances[id][to] += amount;
        }

        emit TransferBatch(operator, from, to, ids, amounts);

        _afterTokenTransfer(operator, from, to, ids, amounts, data);

        _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data);
    }

    function _mint(address to, uint256 id, uint256 amount, bytes memory data) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

        _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);

        _balances[id][to] += amount;
        emit TransferSingle(operator, address(0), to, id, amount);

        _afterTokenTransfer(operator, address(0), to, ids, amounts, data);

        _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _mintBatch(address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; i++) {
            _balances[ids[i]][to] += amounts[i];
        }

        emit TransferBatch(operator, address(0), to, ids, amounts);

        _afterTokenTransfer(operator, address(0), to, ids, amounts, data);

        _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data);
    }

    /**
     * @dev Destroys `amount` tokens of token type `id` from `from`
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `from` must have at least `amount` tokens of token type `id`.
     */
    function _burn(address from, uint256 id, uint256 amount) internal virtual {
        require(from != address(0), "ERC1155: burn from the zero address");

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

        _beforeTokenTransfer(operator, from, address(0), ids, amounts, "");

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }

        emit TransferSingle(operator, from, address(0), id, amount);

        _afterTokenTransfer(operator, from, address(0), ids, amounts, "");
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     */
    function _burnBatch(address from, uint256[] memory ids, uint256[] memory amounts) internal virtual {
        require(from != address(0), "ERC1155: burn from the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, address(0), ids, amounts, "");

        for (uint256 i = 0; i < ids.length; i++) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
        }

        emit TransferBatch(operator, from, address(0), ids, amounts);

        _afterTokenTransfer(operator, from, address(0), ids, amounts, "");
    }

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

    function _beforeTokenTransfer(address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data) internal virtual {}

    function _afterTokenTransfer(address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data) internal virtual {}

    function _doSafeTransferAcceptanceCheck(address operator, address from, address to, uint256 id, uint256 amount, bytes memory data) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {
                if (response != IERC1155Receiver.onERC1155Received.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _doSafeBatchTransferAcceptanceCheck(address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (
                bytes4 response
            ) {
                if (response != IERC1155Receiver.onERC1155BatchReceived.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) {
        uint256[] memory array = new uint256[](1);
        array[0] = element;

        return array;
    }
}

File 2 of 10 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)
        external
        view
        returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}

File 3 of 10 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {
    /**
     * @dev Handles the receipt of a single ERC1155 token type. This function is
     * called at the end of a `safeTransferFrom` after the balance has been updated.
     *
     * NOTE: To accept the transfer, this must return
     * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
     * (i.e. 0xf23a6e61, or its own function selector).
     *
     * @param operator The address which initiated the transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param id The ID of the token being transferred
     * @param value The amount of tokens being transferred
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
     */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    ) external returns (bytes4);

    /**
     * @dev Handles the receipt of a multiple ERC1155 token types. This function
     * is called at the end of a `safeBatchTransferFrom` after the balances have
     * been updated.
     *
     * NOTE: To accept the transfer(s), this must return
     * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
     * (i.e. 0xbc197c81, or its own function selector).
     *
     * @param operator The address which initiated the batch transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param ids An array containing ids of each token being transferred (order and length must match values array)
     * @param values An array containing amounts of each token being transferred (order and length must match ids array)
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
     */
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    ) external returns (bytes4);
}

File 4 of 10 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol)

pragma solidity ^0.8.0;

import "../IERC1155.sol";

/**
 * @dev Interface of the optional ERC1155MetadataExtension interface, as defined
 * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155MetadataURI is IERC1155 {
    /**
     * @dev Returns the URI for token type `id`.
     *
     * If the `\{id\}` substring is present in the URI, it must be replaced by
     * clients with the actual token type ID.
     */
    function uri(uint256 id) external view returns (string memory);
}

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_baseUrl","type":"string"},{"internalType":"string","name":"_contractUrl","type":"string"},{"internalType":"address","name":"_ribbitAddress","type":"address"},{"internalType":"address","name":"_froggyAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"adminBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"adminMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"adminMintAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"boostPercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amount","type":"uint256[]"}],"name":"bundleBuy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"collabAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"collabId","type":"uint256"}],"name":"collabBuy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getWalletLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"isBoost","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"isOnSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"item","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bool","name":"","type":"bool"},{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"itemHolders","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"_percent","type":"uint256"},{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"uint256","name":"_supply","type":"uint256"},{"internalType":"bool","name":"_boost","type":"bool"},{"internalType":"bool","name":"_onSale","type":"bool"},{"internalType":"uint256","name":"_walletLimit","type":"uint256"},{"internalType":"address","name":"_collabAddress","type":"address"}],"name":"listCollabFriend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"_percent","type":"uint256"},{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"uint256","name":"_supply","type":"uint256"},{"internalType":"bool","name":"_boost","type":"bool"},{"internalType":"bool","name":"_onSale","type":"bool"},{"internalType":"uint256","name":"_walletLimit","type":"uint256"}],"name":"listFriend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"uint256","name":"_supply","type":"uint256"},{"internalType":"bool","name":"_onSale","type":"bool"},{"internalType":"uint256","name":"_walletLimit","type":"uint256"}],"name":"listItem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"mintedSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"add","type":"address"},{"internalType":"bool","name":"canBurn","type":"bool"}],"name":"setApprovedBurnAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"collabId","type":"uint256"},{"internalType":"address","name":"_collabAddress","type":"address"}],"name":"setCollabAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_contractUrl","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"setFroggyFriendsAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"bool","name":"_isBoost","type":"bool"}],"name":"setIsBoost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"bool","name":"_onSale","type":"bool"}],"name":"setOnSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"_percent","type":"uint256"}],"name":"setPercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"setRibbitAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"_supply","type":"uint256"}],"name":"setSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseUrl","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"_walletLimit","type":"uint256"}],"name":"setWalletLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalCollabs","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalListed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawRibbit","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052670de0b6b3a764000060055560016006553480156200002257600080fd5b5060405162005a7d38038062005a7d833981016040819052620000459162000ce7565b620000503362000321565b85516200006590600190602089019062000b34565b5084516200007b90600290602088019062000b34565b5083516200009190600390602087019062000b34565b508251620000a790600490602086019062000b34565b50600880546001600160a01b038085166001600160a01b0319928316179092556009805492841692909116919091179055620000ec600162030d406006828062000371565b62000103600260056102bc60c96001808062000469565b6200011a6003600a61070860976001808062000469565b620001316004600f611388604c6001808062000469565b6200014860056014612710600b6001808062000469565b6200015f6006601e620186a0826001808062000469565b6200017660076023620493e0600180808062000469565b620001a26008600a6102bc60056001808073ba033d82c64dd514b184e2d1405cd395dfe6e7066200057e565b620001ce6009600a6102bc60056001808073928f072c009727fbad81bbf3aaa885f9fea65fcf6200057e565b620001f9600a60056102bc81600180807367421c8622f8e38fe9868b4636b8dc855347d5706200057e565b62000224600b60056102bc8160018080731a2f71468f656e97c2f86541e57189f59951efe76200057e565b62000250600c600a6103e8600260018080730c2e57efddba8c768147d1fdf9176a0a6ebd5d836200057e565b62000270620002676000546001600160a01b031690565b600180620006d1565b62000291620002876000546001600160a01b031690565b60026001620006d1565b620002b2620002a86000546001600160a01b031690565b60036001620006d1565b620002d3620002c96000546001600160a01b031690565b60046001620006d1565b620002f4620002ea6000546001600160a01b031690565b60056001620006d1565b620003156200030b6000546001600160a01b031690565b60066001620006d1565b50505050505062000fee565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000546001600160a01b03163314620003c05760405162461bcd60e51b8152602060048201819052602482015260008051602062005a5d83398151915260448201526064015b60405180910390fd5b6007548511620004025760405162461bcd60e51b8152602060048201526015602482015260008051602062005a3d8339815191526044820152606401620003b7565b60055462000411908562000dda565b6000868152600a6020908152604080832093909355600c8152828220869055600f8152828220805460ff19168615151790556010905290812082905560078054916200045d8362000dfc565b91905055505050505050565b6000546001600160a01b03163314620004b45760405162461bcd60e51b8152602060048201819052602482015260008051602062005a5d8339815191526044820152606401620003b7565b6007548711620004f65760405162461bcd60e51b8152602060048201526015602482015260008051602062005a3d8339815191526044820152606401620003b7565b60055462000505908662000dda565b6000888152600a6020908152604080832093909355600b8152828220899055600c8152828220879055600d8152828220805460ff1990811688151517909155600f82528383208054909116861515179055601090529081208290556007805491620005708362000dfc565b919050555050505050505050565b6000546001600160a01b03163314620005c95760405162461bcd60e51b8152602060048201819052602482015260008051602062005a5d8339815191526044820152606401620003b7565b60075488116200060b5760405162461bcd60e51b8152602060048201526015602482015260008051602062005a3d8339815191526044820152606401620003b7565b6005546200061a908762000dda565b6000898152600a6020908152604080832093909355600b81528282208a9055600c8152828220889055600d8152828220805460ff1990811689151517909155600f8252838320805490911687151517905560108152828220859055600680548352601290915291812080546001600160a01b0319166001600160a01b03851617905581549190620006ab8362000dfc565b909155505060078054906000620006c28362000dfc565b91905055505050505050505050565b6000546001600160a01b031633146200071c5760405162461bcd60e51b8152602060048201819052602482015260008051602062005a5d8339815191526044820152606401620003b7565b6000828152600c6020908152604080832054600e909252909120546200074490839062000e18565b1115620007945760405162461bcd60e51b815260206004820152601b60248201527f526962626974206974656d20737570706c7920657863656564656400000000006044820152606401620003b7565b6000828152600e602052604081208054839290620007b490849062000e18565b92505081905550620007de83838360405180602001604052806000815250620007e360201b60201c565b505050565b6001600160a01b038416620008455760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401620003b7565b336000620008538562000903565b90506000620008628562000903565b905060008681526014602090815260408083206001600160a01b038b168452909152812080548792906200089890849062000e18565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4620008fa8360008989898962000959565b50505050505050565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811062000940576200094062000e33565b602090810291909101015292915050565b505050505050565b62000978846001600160a01b031662000b2560201b620031931760201c565b15620009515760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190620009b4908990899088908890889060040162000e77565b6020604051808303816000875af1925050508015620009f2575060408051601f3d908101601f19168201909252620009ef9181019062000ebe565b60015b62000ab25762000a0162000ef1565b806308c379a00362000a41575062000a1862000f0e565b8062000a25575062000a43565b8060405162461bcd60e51b8152600401620003b7919062000f9d565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e7465720000000000000000000000006064820152608401620003b7565b6001600160e01b0319811663f23a6e6160e01b14620008fa5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b6064820152608401620003b7565b6001600160a01b03163b151590565b82805462000b429062000fb2565b90600052602060002090601f01602090048101928262000b66576000855562000bb1565b82601f1062000b8157805160ff191683800117855562000bb1565b8280016001018555821562000bb1579182015b8281111562000bb157825182559160200191906001019062000b94565b5062000bbf92915062000bc3565b5090565b5b8082111562000bbf576000815560010162000bc4565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b038111828210171562000c185762000c1862000bda565b6040525050565b60005b8381101562000c3c57818101518382015260200162000c22565b8381111562000c4c576000848401525b50505050565b600082601f83011262000c6457600080fd5b81516001600160401b0381111562000c805762000c8062000bda565b60405162000c99601f8301601f19166020018262000bf0565b81815284602083860101111562000caf57600080fd5b62000cc282602083016020870162000c1f565b949350505050565b80516001600160a01b038116811462000ce257600080fd5b919050565b60008060008060008060c0878903121562000d0157600080fd5b86516001600160401b038082111562000d1957600080fd5b62000d278a838b0162000c52565b9750602089015191508082111562000d3e57600080fd5b62000d4c8a838b0162000c52565b9650604089015191508082111562000d6357600080fd5b62000d718a838b0162000c52565b9550606089015191508082111562000d8857600080fd5b5062000d9789828a0162000c52565b93505062000da86080880162000cca565b915062000db860a0880162000cca565b90509295509295509295565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161562000df75762000df762000dc4565b500290565b60006001820162000e115762000e1162000dc4565b5060010190565b6000821982111562000e2e5762000e2e62000dc4565b500190565b634e487b7160e01b600052603260045260246000fd5b6000815180845262000e6381602086016020860162000c1f565b601f01601f19169290920160200192915050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009062000eb39083018462000e49565b979650505050505050565b60006020828403121562000ed157600080fd5b81516001600160e01b03198116811462000eea57600080fd5b9392505050565b600060033d111562000f0b5760046000803e5060005160e01c5b90565b600060443d101562000f1d5790565b6040516003193d81016004833e81513d6001600160401b03808311602484018310171562000f4d57505050505090565b828501915081518181111562000f665750505050505090565b843d870101602082850101111562000f815750505050505090565b62000f926020828601018762000bf0565b509095945050505050565b60208152600062000eea602083018462000e49565b600181811c9082168062000fc757607f821691505b60208210810362000fe857634e487b7160e01b600052602260045260246000fd5b50919050565b614a3f8062000ffe6000396000f3fe608060405234801561001057600080fd5b506004361061031d5760003560e01c8063869f7594116101a7578063e397cf98116100ee578063f242432a11610097578063f5298aca11610071578063f5298aca14610767578063f7d975771461077a578063fc784d491461078d57600080fd5b8063f242432a14610721578063f2fde38b14610734578063f48e6a5f1461074757600080fd5b8063e985e9c5116100c8578063e985e9c5146106af578063e9c054c5146106eb578063f0f2805f146106fe57600080fd5b8063e397cf9814610674578063e757223014610687578063e8a3d485146106a757600080fd5b806395d89b4111610150578063badb97ff1161012a578063badb97ff14610646578063cf92f6f414610659578063e197abb01461066157600080fd5b806395d89b4114610618578063a22cb46514610620578063a5981e7b1461063357600080fd5b8063919956ef11610181578063919956ef146105d257806392c6671f146105f2578063938e3d7b1461060557600080fd5b8063869f759414610555578063898e6219146105755780638da5cb5b146105c157600080fd5b80632eb2c2d61161026b5780634e1273f4116102145780637d87f9f3116101ee5780637d87f9f3146105275780637eb6eb961461052f578063828e526f1461054257600080fd5b80634e1273f4146104f75780636821e39614610517578063715018a61461051f57600080fd5b8063471d7d6511610245578063471d7d65146104ae5780634d0a2c24146104c15780634d5e7bde146104d457600080fd5b80632eb2c2d6146104755780633737b9641461048857806342286e081461049b57600080fd5b8063075f45c2116102cd5780630e89341c116102a75780630e89341c1461042f5780631ed17d94146104425780632827f4651461046257600080fd5b8063075f45c2146103e95780630c51f3af146103fc5780630d42b64c1461040f57600080fd5b806301ffc9a7116102fe57806301ffc9a71461039e57806302fe5305146103c157806306fdde03146103d457600080fd5b80624a84cb14610322578062cedee014610337578062fdd58e1461037d575b600080fd5b610335610330366004613e5a565b6107a0565b005b610360610345366004613e8d565b6000908152601260205260409020546001600160a01b031690565b6040516001600160a01b0390911681526020015b60405180910390f35b61039061038b366004613ea6565b6108a6565b604051908152602001610374565b6103b16103ac366004613ee6565b61094c565b6040519015158152602001610374565b6103356103cf366004613fab565b61099e565b6103dc6109fd565b6040516103749190614050565b6103356103f7366004614063565b610a8b565b61033561040a366004614085565b610b2b565b61042261041d366004613e8d565b610b95565b60405161037491906140a0565b6103dc61043d366004613e8d565b610c01565b610390610450366004613e8d565b60009081526010602052604090205490565b6103356104703660046140fb565b610c35565b6103356104833660046141e0565b610ce3565b61033561049636600461428a565b61113b565b6103356104a93660046142b6565b6111ae565b6103356104bc3660046142e2565b611826565b6103356104cf3660046140fb565b6118e2565b6103b16104e2366004613e8d565b6000908152600d602052604090205460ff1690565b61050a61050536600461430e565b611990565b6040516103749190614414565b610390611ac1565b610335611ad7565b610335611b2b565b61033561053d366004614427565b611c5b565b610335610550366004614490565b611d78565b610390610563366004613e8d565b6000908152600c602052604090205490565b610588610583366004613e8d565b611ed1565b6040805197885260208801969096529486019390935260608501919091526080840152151560a0830152151560c082015260e001610374565b6000546001600160a01b0316610360565b6103906105e0366004613e8d565b6000908152600e602052604090205490565b610335610600366004614085565b611f4a565b610335610613366004613fab565b611fb4565b6103dc61200f565b61033561062e36600461428a565b61201c565b610335610641366004614063565b612027565b610335610654366004613e8d565b6120c7565b600754610390565b61033561066f366004614508565b6121c5565b610335610682366004614555565b612a00565b610390610695366004613e8d565b6000908152600a602052604090205490565b6103dc612afc565b6103b16106bd36600461459e565b6001600160a01b03918216600090815260156020908152604080832093909416825291909152205460ff1690565b6103356106f9366004613e8d565b612b27565b6103b161070c366004613e8d565b6000908152600f602052604090205460ff1690565b61033561072f3660046145c8565b612c75565b610335610742366004614085565b612f06565b610390610755366004613e8d565b6000908152600b602052604090205490565b610335610775366004613e5a565b612fd3565b610335610788366004614063565b613042565b61033561079b366004614063565b6130f3565b6000546001600160a01b031633146107ed5760405162461bcd60e51b815260206004820181905260248201526000805160206149ea83398151915260448201526064015b60405180910390fd5b6000828152600c6020908152604080832054600e90925290912054610813908390614643565b11156108615760405162461bcd60e51b815260206004820152601b60248201527f526962626974206974656d20737570706c79206578636565646564000000000060448201526064016107e4565b6000828152600e60205260408120805483929061087f908490614643565b925050819055506108a1838383604051806020016040528060008152506131a2565b505050565b60006001600160a01b0383166109245760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201527f616c6964206f776e65720000000000000000000000000000000000000000000060648201526084016107e4565b5060009081526014602090815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b148061097d57506001600160e01b031982166303a24d0760e21b145b8061099857506301ffc9a760e01b6001600160e01b03198316145b92915050565b6000546001600160a01b031633146109e65760405162461bcd60e51b815260206004820181905260248201526000805160206149ea83398151915260448201526064016107e4565b80516109f9906003906020840190613da5565b5050565b60018054610a0a9061465b565b80601f0160208091040260200160405190810160405280929190818152602001828054610a369061465b565b8015610a835780601f10610a5857610100808354040283529160200191610a83565b820191906000526020600020905b815481529060010190602001808311610a6657829003601f168201915b505050505081565b6000546001600160a01b03163314610ad35760405162461bcd60e51b815260206004820181905260248201526000805160206149ea83398151915260448201526064016107e4565b600754821115610b195760405162461bcd60e51b8152602060048201526011602482015270125108191bd95cc81b9bdd08195e1a5cdd607a1b60448201526064016107e4565b60009182526010602052604090912055565b6000546001600160a01b03163314610b735760405162461bcd60e51b815260206004820181905260248201526000805160206149ea83398151915260448201526064016107e4565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b600081815260116020908152604091829020805483518184028101840190945280845260609392830182828015610bf557602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610bd7575b50505050509050919050565b60606003610c0e836132b8565b604051602001610c1f92919061472e565b6040516020818303038152906040529050919050565b6000546001600160a01b03163314610c7d5760405162461bcd60e51b815260206004820181905260248201526000805160206149ea83398151915260448201526064016107e4565b600754821115610cc35760405162461bcd60e51b8152602060048201526011602482015270125108191bd95cc81b9bdd08195e1a5cdd607a1b60448201526064016107e4565b6000918252600d6020526040909120805460ff1916911515919091179055565b6001600160a01b038516331480610cff5750610cff85336106bd565b610d715760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f766564000000000000000000000000000060648201526084016107e4565b610d7e85858585856133d9565b60005b835181101561113357600160166000868481518110610da257610da2614753565b602002602001015181526020019081526020016000206000876001600160a01b03166001600160a01b03168152602001908152602001600020541015610e965760116000858381518110610df857610df8614753565b602090810291909101810151825281810192909252604001600090812080546001808201835591835292822090920180546001600160a01b0319166001600160a01b038916179055855160169190879085908110610e5857610e58614753565b602002602001015181526020019081526020016000206000876001600160a01b03166001600160a01b03168152602001908152602001600020819055505b610eb986858381518110610eac57610eac614753565b60200260200101516108a6565b60000361112157600060166000868481518110610ed857610ed8614753565b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b031681526020019081526020016000208190555060005b60116000868481518110610f2e57610f2e614753565b602002602001015181526020019081526020016000208054905081101561111f57866001600160a01b031660116000878581518110610f6f57610f6f614753565b602002602001015181526020019081526020016000208281548110610f9657610f96614753565b6000918252602090912001546001600160a01b03160361110d5760116000868481518110610fc657610fc6614753565b60200260200101518152602001908152602001600020600160116000888681518110610ff457610ff4614753565b60200260200101518152602001908152602001600020805490506110189190614769565b8154811061102857611028614753565b600091825260208220015486516001600160a01b039091169160119188908690811061105657611056614753565b60200260200101518152602001908152602001600020828154811061107d5761107d614753565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550601160008684815181106110c1576110c1614753565b602002602001015181526020019081526020016000208054806110e6576110e6614780565b600082815260209020810160001990810180546001600160a01b031916905501905561111f565b8061111781614796565b915050610f18565b505b8061112b81614796565b915050610d81565b505050505050565b6000546001600160a01b031633146111835760405162461bcd60e51b815260206004820181905260248201526000805160206149ea83398151915260448201526064016107e4565b6001600160a01b03919091166000908152601360205260409020805460ff1916911515919091179055565b6000818152601260205260408082205490516370a0823160e01b81523360048201526001600160a01b03909116919082906370a0823190602401602060405180830381865afa158015611205573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061122991906147af565b116112765760405162461bcd60e51b815260206004820152601460248201527f436f6c6c6162206e6674206e6f74206f776e656400000000000000000000000060448201526064016107e4565b6009546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa1580156112bf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112e391906147af565b116113305760405162461bcd60e51b815260206004820152601760248201527f46726f67677920667269656e64206e6f74206f776e656400000000000000000060448201526064016107e4565b600084116113805760405162461bcd60e51b815260206004820152601f60248201527f526962626974206974656d204944206d757374206e6f74206265207a65726f0060448201526064016107e4565b6000848152600a60205260409020546113db5760405162461bcd60e51b815260206004820152601960248201527f526962626974206974656d207072696365206e6f74207365740000000000000060448201526064016107e4565b6000848152600a60205260408120546113f490856147c8565b6008546040516370a0823160e01b815233600482015291925082916001600160a01b03909116906370a0823190602401602060405180830381865afa158015611441573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061146591906147af565b10156114b35760405162461bcd60e51b815260206004820152601f60248201527f496e73756666696369656e742066756e647320666f722070757263686173650060448201526064016107e4565b6000858152600f602052604090205460ff1615156001146115165760405162461bcd60e51b815260206004820152601760248201527f526962626974206974656d206e6f74206f6e2073616c6500000000000000000060448201526064016107e4565b6000858152600c60205260409020546115715760405162461bcd60e51b815260206004820152601a60248201527f526962626974206974656d20737570706c79206e6f742073657400000000000060448201526064016107e4565b6000858152601060205260409020546115cc5760405162461bcd60e51b815260206004820181905260248201527f526962626974206974656d2077616c6c6574206c696d6974206e6f742073657460448201526064016107e4565b6000858152600c6020908152604080832054600e909252909120546115f2908690614643565b11156116405760405162461bcd60e51b815260206004820152601b60248201527f526962626974206974656d20737570706c79206578636565646564000000000060448201526064016107e4565b6000858152601060209081526040808320543384526017835281842089855290925290912054611671908690614643565b11156116c95760405162461bcd60e51b815260206004820152602160248201527f526962626974206974656d2077616c6c6574206c696d697420657863656564656044820152601960fa1b60648201526084016107e4565b336000908152601760209081526040808320888452909152812080548692906116f3908490614643565b90915550506000858152601660209081526040808320338452909152902054600111156117635760008581526011602090815260408083208054600181810183559185528385200180546001600160a01b0319163390811790915589855260168452828520908552909252909120555b6008546040516323b872dd60e01b8152336004820152306024820152604481018390526001600160a01b03909116906323b872dd906064016020604051808303816000875af11580156117ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117de91906147e7565b506000858152600e6020526040812080548692906117fd908490614643565b9250508190555061181f338686604051806020016040528060008152506131a2565b5050505050565b6000546001600160a01b0316331461186e5760405162461bcd60e51b815260206004820181905260248201526000805160206149ea83398151915260448201526064016107e4565b6006548211156118b45760405162461bcd60e51b8152602060048201526011602482015270125108191bd95cc81b9bdd08195e1a5cdd607a1b60448201526064016107e4565b60009182526012602052604090912080546001600160a01b0319166001600160a01b03909216919091179055565b6000546001600160a01b0316331461192a5760405162461bcd60e51b815260206004820181905260248201526000805160206149ea83398151915260448201526064016107e4565b6007548211156119705760405162461bcd60e51b8152602060048201526011602482015270125108191bd95cc81b9bdd08195e1a5cdd607a1b60448201526064016107e4565b6000918252600f6020526040909120805460ff1916911515919091179055565b60608151835114611a095760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860448201527f206d69736d61746368000000000000000000000000000000000000000000000060648201526084016107e4565b6000835167ffffffffffffffff811115611a2557611a25613f0a565b604051908082528060200260200182016040528015611a4e578160200160208202803683370190505b50905060005b8451811015611ab957611a8c858281518110611a7257611a72614753565b6020026020010151858381518110610eac57610eac614753565b828281518110611a9e57611a9e614753565b6020908102919091010152611ab281614796565b9050611a54565b509392505050565b60006001600654611ad29190614769565b905090565b6000546001600160a01b03163314611b1f5760405162461bcd60e51b815260206004820181905260248201526000805160206149ea83398151915260448201526064016107e4565b611b296000613647565b565b6000546001600160a01b03163314611b735760405162461bcd60e51b815260206004820181905260248201526000805160206149ea83398151915260448201526064016107e4565b6008546040516370a0823160e01b81523060048201526001600160a01b039091169063a9059cbb90339083906370a0823190602401602060405180830381865afa158015611bc5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611be991906147af565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015611c34573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c5891906147e7565b50565b6000546001600160a01b03163314611ca35760405162461bcd60e51b815260206004820181905260248201526000805160206149ea83398151915260448201526064016107e4565b6007548711611cf45760405162461bcd60e51b815260206004820152601560248201527f526962626974206974656d20494420657869737473000000000000000000000060448201526064016107e4565b600554611d0190866147c8565b6000888152600a6020908152604080832093909355600b8152828220899055600c8152828220879055600d8152828220805460ff1990811688151517909155600f82528383208054909116861515179055601090529081208290556007805491611d6a83614796565b919050555050505050505050565b6000546001600160a01b03163314611dc05760405162461bcd60e51b815260206004820181905260248201526000805160206149ea83398151915260448201526064016107e4565b6007548811611e115760405162461bcd60e51b815260206004820152601560248201527f526962626974206974656d20494420657869737473000000000000000000000060448201526064016107e4565b600554611e1e90876147c8565b6000898152600a6020908152604080832093909355600b81528282208a9055600c8152828220889055600d8152828220805460ff1990811689151517909155600f8252838320805490911687151517905560108152828220859055600680548352601290915291812080546001600160a01b0319166001600160a01b03851617905581549190611ead83614796565b909155505060078054906000611ec283614796565b91905055505050505050505050565b6000806000806000806000611ef2886000908152600a602052604090205490565b6000988952600b60209081526040808b2054600e8352818c2054600c8452828d205460108552838e2054600d8652848f2054600f90965293909d2054949d919c909b50995090975060ff918216965091169350915050565b6000546001600160a01b03163314611f925760405162461bcd60e51b815260206004820181905260248201526000805160206149ea83398151915260448201526064016107e4565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314611ffc5760405162461bcd60e51b815260206004820181905260248201526000805160206149ea83398151915260448201526064016107e4565b80516109f9906004906020840190613da5565b60028054610a0a9061465b565b6109f9338383613697565b6000546001600160a01b0316331461206f5760405162461bcd60e51b815260206004820181905260248201526000805160206149ea83398151915260448201526064016107e4565b6007548211156120b55760405162461bcd60e51b8152602060048201526011602482015270125108191bd95cc81b9bdd08195e1a5cdd607a1b60448201526064016107e4565b6000918252600b602052604090912055565b6000546001600160a01b0316331461210f5760405162461bcd60e51b815260206004820181905260248201526000805160206149ea83398151915260448201526064016107e4565b60005b6000828152601160205260409020548110156109f957600082815260116020526040902080546121b391908390811061214d5761214d614753565b9060005260206000200160009054906101000a90046001600160a01b0316836121ae60116000878152602001908152602001600020858154811061219357612193614753565b6000918252602090912001546001600160a01b0316866108a6565b61378b565b806121bd81614796565b915050612112565b80518251146122165760405162461bcd60e51b815260206004820152601660248201527f526962626974206974656d204944206d697373696e670000000000000000000060448201526064016107e4565b60005b82518110156108a157600083828151811061223657612236614753565b60200260200101511161228b5760405162461bcd60e51b815260206004820152601f60248201527f526962626974206974656d204944206d757374206e6f74206265207a65726f0060448201526064016107e4565b6000600a60008584815181106122a3576122a3614753565b6020026020010151815260200190815260200160002054116123075760405162461bcd60e51b815260206004820152601960248201527f526962626974206974656d207072696365206e6f74207365740000000000000060448201526064016107e4565b6000600a600085848151811061231f5761231f614753565b602002602001015181526020019081526020016000205483838151811061234857612348614753565b602002602001015161235a91906147c8565b6008546040516370a0823160e01b815233600482015291925082916001600160a01b03909116906370a0823190602401602060405180830381865afa1580156123a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123cb91906147af565b10156124195760405162461bcd60e51b815260206004820152601f60248201527f496e73756666696369656e742066756e647320666f722070757263686173650060448201526064016107e4565b600f600085848151811061242f5761242f614753565b60209081029190910181015182528101919091526040016000205460ff16151560011461249e5760405162461bcd60e51b815260206004820152601760248201527f526962626974206974656d206e6f74206f6e2073616c6500000000000000000060448201526064016107e4565b6000600c60008685815181106124b6576124b6614753565b60200260200101518152602001908152602001600020541161251a5760405162461bcd60e51b815260206004820152601a60248201527f526962626974206974656d20737570706c79206e6f742073657400000000000060448201526064016107e4565b60006010600086858151811061253257612532614753565b6020026020010151815260200190815260200160002054116125965760405162461bcd60e51b815260206004820181905260248201527f526962626974206974656d2077616c6c6574206c696d6974206e6f742073657460448201526064016107e4565b600c60008584815181106125ac576125ac614753565b60200260200101518152602001908152602001600020548383815181106125d5576125d5614753565b6020026020010151600e60008786815181106125f3576125f3614753565b60200260200101518152602001908152602001600020546126149190614643565b11156126625760405162461bcd60e51b815260206004820152601b60248201527f526962626974206974656d20737570706c79206578636565646564000000000060448201526064016107e4565b6010600085848151811061267857612678614753565b60200260200101518152602001908152602001600020548383815181106126a1576126a1614753565b602002602001015160176000336001600160a01b03166001600160a01b0316815260200190815260200160002060008786815181106126e2576126e2614753565b60200260200101518152602001908152602001600020546127039190614643565b111561275b5760405162461bcd60e51b815260206004820152602160248201527f526962626974206974656d2077616c6c6574206c696d697420657863656564656044820152601960fa1b60648201526084016107e4565b82828151811061276d5761276d614753565b602002602001015160176000336001600160a01b03166001600160a01b0316815260200190815260200160002060008685815181106127ae576127ae614753565b6020026020010151815260200190815260200160002060008282546127d39190614643565b925050819055506001601660008685815181106127f2576127f2614753565b602002602001015181526020019081526020016000206000336001600160a01b03166001600160a01b031681526020019081526020016000205410156128c8576011600085848151811061284857612848614753565b602090810291909101810151825281810192909252604001600090812080546001818101835591835292822090920180546001600160a01b0319163317905585516016919087908690811061289f5761289f614753565b602090810291909101810151825281810192909252604090810160009081203382529092529020555b6008546040516323b872dd60e01b8152336004820152306024820152604481018390526001600160a01b03909116906323b872dd906064016020604051808303816000875af115801561291f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061294391906147e7565b5082828151811061295657612956614753565b6020026020010151600e600086858151811061297457612974614753565b6020026020010151815260200190815260200160002060008282546129999190614643565b925050819055506129ed338584815181106129b6576129b6614753565b60200260200101518585815181106129d0576129d0614753565b6020026020010151604051806020016040528060008152506131a2565b50806129f881614796565b915050612219565b6000546001600160a01b03163314612a485760405162461bcd60e51b815260206004820181905260248201526000805160206149ea83398151915260448201526064016107e4565b6007548511612a995760405162461bcd60e51b815260206004820152601560248201527f526962626974206974656d20494420657869737473000000000000000000000060448201526064016107e4565b600554612aa690856147c8565b6000868152600a6020908152604080832093909355600c8152828220869055600f8152828220805460ff1916861515179055601090529081208290556007805491612af083614796565b91905055505050505050565b606060036004604051602001612b13929190614804565b604051602081830303815290604052905090565b6000546001600160a01b03163314612b6f5760405162461bcd60e51b815260206004820181905260248201526000805160206149ea83398151915260448201526064016107e4565b6000818152600e6020908152604080832054600c909252822054612b939190614769565b6000838152600c6020908152604080832054600e9092529091205491925090612bbd908390614643565b1115612be55760405162461bcd60e51b815260206004820152600060248201526044016107e4565b60008111612c355760405162461bcd60e51b815260206004820152601a60248201527f526962626974206974656d20737570706c79207265616368656400000000000060448201526064016107e4565b6000828152600e602052604081208054839290612c53908490614643565b925050819055506109f9338383604051806020016040528060008152506131a2565b6001600160a01b038516331480612c915750612c9185336106bd565b612d035760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201527f20617070726f766564000000000000000000000000000000000000000000000060648201526084016107e4565b612d10858585858561390a565b60008381526016602090815260408083206001600160a01b038816845290915290205460011115612d8d5760008381526011602090815260408083208054600180820183559185528385200180546001600160a01b0319166001600160a01b038a1690811790915587855260168452828520908552909252909120555b612d9785846108a6565b60000361181f5760008381526016602090815260408083206001600160a01b038916845290915281208190555b60008481526011602052604090205481101561113357600084815260116020526040902080546001600160a01b038816919083908110612e0657612e06614753565b6000918252602090912001546001600160a01b031603612ef45760008481526011602052604090208054612e3c90600190614769565b81548110612e4c57612e4c614753565b60009182526020808320909101548683526011909152604090912080546001600160a01b039092169183908110612e8557612e85614753565b600091825260208083209190910180546001600160a01b0319166001600160a01b039490941693909317909255858152601190915260409020805480612ecd57612ecd614780565b600082815260209020810160001990810180546001600160a01b0319169055019055611133565b80612efe81614796565b915050612dc4565b6000546001600160a01b03163314612f4e5760405162461bcd60e51b815260206004820181905260248201526000805160206149ea83398151915260448201526064016107e4565b6001600160a01b038116612fca5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016107e4565b611c5881613647565b3360009081526013602052604090205460ff1615156001146130375760405162461bcd60e51b815260206004820181905260248201527f41646472657373206e6f7420617070726f76656420666f72206275726e696e6760448201526064016107e4565b6108a183838361378b565b6000546001600160a01b0316331461308a5760405162461bcd60e51b815260206004820181905260248201526000805160206149ea83398151915260448201526064016107e4565b6007548211156130d05760405162461bcd60e51b8152602060048201526011602482015270125108191bd95cc81b9bdd08195e1a5cdd607a1b60448201526064016107e4565b6005546130dd90826147c8565b6000928352600a60205260409092209190915550565b6000546001600160a01b0316331461313b5760405162461bcd60e51b815260206004820181905260248201526000805160206149ea83398151915260448201526064016107e4565b6007548211156131815760405162461bcd60e51b8152602060048201526011602482015270125108191bd95cc81b9bdd08195e1a5cdd607a1b60448201526064016107e4565b6000918252600c602052604090912055565b6001600160a01b03163b151590565b6001600160a01b0384166132025760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b60648201526084016107e4565b33600061320e85613ab9565b9050600061321b85613ab9565b905060008681526014602090815260408083206001600160a01b038b1684529091528120805487929061324f908490614643565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46132af83600089898989613b04565b50505050505050565b6060816000036132df5750506040805180820190915260018152600360fc1b602082015290565b8160005b811561330957806132f381614796565b91506133029050600a8361482f565b91506132e3565b60008167ffffffffffffffff81111561332457613324613f0a565b6040519080825280601f01601f19166020018201604052801561334e576020820181803683370190505b5090505b84156133d157613363600183614769565b9150613370600a86614843565b61337b906030614643565b60f81b81838151811061339057613390614753565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506133ca600a8661482f565b9450613352565b949350505050565b81518351146134505760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060448201527f6d69736d6174636800000000000000000000000000000000000000000000000060648201526084016107e4565b6001600160a01b0384166134b45760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b60648201526084016107e4565b3360005b84518110156135e15760008582815181106134d5576134d5614753565b6020026020010151905060008583815181106134f3576134f3614753565b60209081029190910181015160008481526014835260408082206001600160a01b038e1683529093529190912054909150818110156135875760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b60648201526084016107e4565b60008381526014602090815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906135c6908490614643565b92505081905550505050806135da90614796565b90506134b8565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051613631929190614857565b60405180910390a4611133818787878787613ca9565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b816001600160a01b0316836001600160a01b03160361371e5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c66000000000000000000000000000000000000000000000060648201526084016107e4565b6001600160a01b03838116600081815260156020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0383166137ed5760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b60648201526084016107e4565b3360006137f984613ab9565b9050600061380684613ab9565b6040805160208082018352600091829052888252601481528282206001600160a01b038b16835290522054909150848110156138905760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b60648201526084016107e4565b60008681526014602090815260408083206001600160a01b038b81168086529184528285208a8703905582518b81529384018a90529092908816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46040805160208101909152600090526132af565b6001600160a01b03841661396e5760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b60648201526084016107e4565b33600061397a85613ab9565b9050600061398785613ab9565b905060008681526014602090815260408083206001600160a01b038c16845290915290205485811015613a0f5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b60648201526084016107e4565b60008781526014602090815260408083206001600160a01b038d8116855292528083208985039055908a16825281208054889290613a4e908490614643565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4613aae848a8a8a8a8a613b04565b505050505050505050565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110613af357613af3614753565b602090810291909101015292915050565b6001600160a01b0384163b156111335760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190613b489089908990889088908890600401614885565b6020604051808303816000875af1925050508015613b83575060408051601f3d908101601f19168201909252613b80918101906148c8565b60015b613c3857613b8f6148e5565b806308c379a003613bc85750613ba3614901565b80613bae5750613bca565b8060405162461bcd60e51b81526004016107e49190614050565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e74657200000000000000000000000060648201526084016107e4565b6001600160e01b0319811663f23a6e6160e01b146132af5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b60648201526084016107e4565b6001600160a01b0384163b156111335760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190613ced908990899088908890889060040161498b565b6020604051808303816000875af1925050508015613d28575060408051601f3d908101601f19168201909252613d25918101906148c8565b60015b613d3457613b8f6148e5565b6001600160e01b0319811663bc197c8160e01b146132af5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b60648201526084016107e4565b828054613db19061465b565b90600052602060002090601f016020900481019282613dd35760008555613e19565b82601f10613dec57805160ff1916838001178555613e19565b82800160010185558215613e19579182015b82811115613e19578251825591602001919060010190613dfe565b50613e25929150613e29565b5090565b5b80821115613e255760008155600101613e2a565b80356001600160a01b0381168114613e5557600080fd5b919050565b600080600060608486031215613e6f57600080fd5b613e7884613e3e565b95602085013595506040909401359392505050565b600060208284031215613e9f57600080fd5b5035919050565b60008060408385031215613eb957600080fd5b613ec283613e3e565b946020939093013593505050565b6001600160e01b031981168114611c5857600080fd5b600060208284031215613ef857600080fd5b8135613f0381613ed0565b9392505050565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff81118282101715613f4657613f46613f0a565b6040525050565b600067ffffffffffffffff831115613f6757613f67613f0a565b604051613f7e601f8501601f191660200182613f20565b809150838152848484011115613f9357600080fd5b83836020830137600060208583010152509392505050565b600060208284031215613fbd57600080fd5b813567ffffffffffffffff811115613fd457600080fd5b8201601f81018413613fe557600080fd5b6133d184823560208401613f4d565b60005b8381101561400f578181015183820152602001613ff7565b8381111561401e576000848401525b50505050565b6000815180845261403c816020860160208601613ff4565b601f01601f19169290920160200192915050565b602081526000613f036020830184614024565b6000806040838503121561407657600080fd5b50508035926020909101359150565b60006020828403121561409757600080fd5b613f0382613e3e565b6020808252825182820181905260009190848201906040850190845b818110156140e15783516001600160a01b0316835292840192918401916001016140bc565b50909695505050505050565b8015158114611c5857600080fd5b6000806040838503121561410e57600080fd5b823591506020830135614120816140ed565b809150509250929050565b600067ffffffffffffffff82111561414557614145613f0a565b5060051b60200190565b600082601f83011261416057600080fd5b8135602061416d8261412b565b60405161417a8282613f20565b83815260059390931b850182019282810191508684111561419a57600080fd5b8286015b848110156141b5578035835291830191830161419e565b509695505050505050565b600082601f8301126141d157600080fd5b613f0383833560208501613f4d565b600080600080600060a086880312156141f857600080fd5b61420186613e3e565b945061420f60208701613e3e565b9350604086013567ffffffffffffffff8082111561422c57600080fd5b61423889838a0161414f565b9450606088013591508082111561424e57600080fd5b61425a89838a0161414f565b9350608088013591508082111561427057600080fd5b5061427d888289016141c0565b9150509295509295909350565b6000806040838503121561429d57600080fd5b6142a683613e3e565b91506020830135614120816140ed565b6000806000606084860312156142cb57600080fd5b505081359360208301359350604090920135919050565b600080604083850312156142f557600080fd5b8235915061430560208401613e3e565b90509250929050565b6000806040838503121561432157600080fd5b823567ffffffffffffffff8082111561433957600080fd5b818501915085601f83011261434d57600080fd5b8135602061435a8261412b565b6040516143678282613f20565b83815260059390931b850182019282810191508984111561438757600080fd5b948201945b838610156143ac5761439d86613e3e565b8252948201949082019061438c565b965050860135925050808211156143c257600080fd5b506143cf8582860161414f565b9150509250929050565b600081518084526020808501945080840160005b83811015614409578151875295820195908201906001016143ed565b509495945050505050565b602081526000613f0360208301846143d9565b600080600080600080600060e0888a03121561444257600080fd5b873596506020880135955060408801359450606088013593506080880135614469816140ed565b925060a0880135614479816140ed565b8092505060c0880135905092959891949750929550565b600080600080600080600080610100898b0312156144ad57600080fd5b8835975060208901359650604089013595506060890135945060808901356144d4816140ed565b935060a08901356144e4816140ed565b925060c089013591506144f960e08a01613e3e565b90509295985092959890939650565b6000806040838503121561451b57600080fd5b823567ffffffffffffffff8082111561453357600080fd5b61453f8683870161414f565b935060208501359150808211156143c257600080fd5b600080600080600060a0868803121561456d57600080fd5b853594506020860135935060408601359250606086013561458d816140ed565b949793965091946080013592915050565b600080604083850312156145b157600080fd5b6145ba83613e3e565b915061430560208401613e3e565b600080600080600060a086880312156145e057600080fd5b6145e986613e3e565b94506145f760208701613e3e565b93506040860135925060608601359150608086013567ffffffffffffffff81111561462157600080fd5b61427d888289016141c0565b634e487b7160e01b600052601160045260246000fd5b600082198211156146565761465661462d565b500190565b600181811c9082168061466f57607f821691505b60208210810361468f57634e487b7160e01b600052602260045260246000fd5b50919050565b8054600090600181811c90808316806146af57607f831692505b602080841082036146d057634e487b7160e01b600052602260045260246000fd5b8180156146e457600181146146f557614722565b60ff19861689528489019650614722565b60008881526020902060005b8681101561471a5781548b820152908501908301614701565b505084890196505b50505050505092915050565b600061473a8285614695565b835161474a818360208801613ff4565b01949350505050565b634e487b7160e01b600052603260045260246000fd5b60008282101561477b5761477b61462d565b500390565b634e487b7160e01b600052603160045260246000fd5b6000600182016147a8576147a861462d565b5060010190565b6000602082840312156147c157600080fd5b5051919050565b60008160001904831182151516156147e2576147e261462d565b500290565b6000602082840312156147f957600080fd5b8151613f03816140ed565b60006133d16148138386614695565b84614695565b634e487b7160e01b600052601260045260246000fd5b60008261483e5761483e614819565b500490565b60008261485257614852614819565b500690565b60408152600061486a60408301856143d9565b828103602084015261487c81856143d9565b95945050505050565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a060808301526148bd60a0830184614024565b979650505050505050565b6000602082840312156148da57600080fd5b8151613f0381613ed0565b600060033d11156148fe5760046000803e5060005160e01c5b90565b600060443d101561490f5790565b6040516003193d81016004833e81513d67ffffffffffffffff816024840111818411171561493f57505050505090565b82850191508151818111156149575750505050505090565b843d87010160208285010111156149715750505050505090565b61498060208286010187613f20565b509095945050505050565b60006001600160a01b03808816835280871660208401525060a060408301526149b760a08301866143d9565b82810360608401526149c981866143d9565b905082810360808401526149dd8185614024565b9897505050505050505056fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220313cad5a9638d8762e5f52dd591533978f7a92068e91e67e691d9648dee01afc64736f6c634300080e0033526962626974206974656d2049442065786973747300000000000000000000004f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657200000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000046898f15f99b8887d87669ab19d633f579939ad90000000000000000000000008f7b5f7845224349ae9ae45b400ebae0051fcd9d000000000000000000000000000000000000000000000000000000000000000b526962626974204974656d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b524942424954204954454d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002768747470733a2f2f6170692e66726f676779667269656e64736e66742e636f6d2f6974656d732f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011636f6e74726163742f6d65746164617461000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061031d5760003560e01c8063869f7594116101a7578063e397cf98116100ee578063f242432a11610097578063f5298aca11610071578063f5298aca14610767578063f7d975771461077a578063fc784d491461078d57600080fd5b8063f242432a14610721578063f2fde38b14610734578063f48e6a5f1461074757600080fd5b8063e985e9c5116100c8578063e985e9c5146106af578063e9c054c5146106eb578063f0f2805f146106fe57600080fd5b8063e397cf9814610674578063e757223014610687578063e8a3d485146106a757600080fd5b806395d89b4111610150578063badb97ff1161012a578063badb97ff14610646578063cf92f6f414610659578063e197abb01461066157600080fd5b806395d89b4114610618578063a22cb46514610620578063a5981e7b1461063357600080fd5b8063919956ef11610181578063919956ef146105d257806392c6671f146105f2578063938e3d7b1461060557600080fd5b8063869f759414610555578063898e6219146105755780638da5cb5b146105c157600080fd5b80632eb2c2d61161026b5780634e1273f4116102145780637d87f9f3116101ee5780637d87f9f3146105275780637eb6eb961461052f578063828e526f1461054257600080fd5b80634e1273f4146104f75780636821e39614610517578063715018a61461051f57600080fd5b8063471d7d6511610245578063471d7d65146104ae5780634d0a2c24146104c15780634d5e7bde146104d457600080fd5b80632eb2c2d6146104755780633737b9641461048857806342286e081461049b57600080fd5b8063075f45c2116102cd5780630e89341c116102a75780630e89341c1461042f5780631ed17d94146104425780632827f4651461046257600080fd5b8063075f45c2146103e95780630c51f3af146103fc5780630d42b64c1461040f57600080fd5b806301ffc9a7116102fe57806301ffc9a71461039e57806302fe5305146103c157806306fdde03146103d457600080fd5b80624a84cb14610322578062cedee014610337578062fdd58e1461037d575b600080fd5b610335610330366004613e5a565b6107a0565b005b610360610345366004613e8d565b6000908152601260205260409020546001600160a01b031690565b6040516001600160a01b0390911681526020015b60405180910390f35b61039061038b366004613ea6565b6108a6565b604051908152602001610374565b6103b16103ac366004613ee6565b61094c565b6040519015158152602001610374565b6103356103cf366004613fab565b61099e565b6103dc6109fd565b6040516103749190614050565b6103356103f7366004614063565b610a8b565b61033561040a366004614085565b610b2b565b61042261041d366004613e8d565b610b95565b60405161037491906140a0565b6103dc61043d366004613e8d565b610c01565b610390610450366004613e8d565b60009081526010602052604090205490565b6103356104703660046140fb565b610c35565b6103356104833660046141e0565b610ce3565b61033561049636600461428a565b61113b565b6103356104a93660046142b6565b6111ae565b6103356104bc3660046142e2565b611826565b6103356104cf3660046140fb565b6118e2565b6103b16104e2366004613e8d565b6000908152600d602052604090205460ff1690565b61050a61050536600461430e565b611990565b6040516103749190614414565b610390611ac1565b610335611ad7565b610335611b2b565b61033561053d366004614427565b611c5b565b610335610550366004614490565b611d78565b610390610563366004613e8d565b6000908152600c602052604090205490565b610588610583366004613e8d565b611ed1565b6040805197885260208801969096529486019390935260608501919091526080840152151560a0830152151560c082015260e001610374565b6000546001600160a01b0316610360565b6103906105e0366004613e8d565b6000908152600e602052604090205490565b610335610600366004614085565b611f4a565b610335610613366004613fab565b611fb4565b6103dc61200f565b61033561062e36600461428a565b61201c565b610335610641366004614063565b612027565b610335610654366004613e8d565b6120c7565b600754610390565b61033561066f366004614508565b6121c5565b610335610682366004614555565b612a00565b610390610695366004613e8d565b6000908152600a602052604090205490565b6103dc612afc565b6103b16106bd36600461459e565b6001600160a01b03918216600090815260156020908152604080832093909416825291909152205460ff1690565b6103356106f9366004613e8d565b612b27565b6103b161070c366004613e8d565b6000908152600f602052604090205460ff1690565b61033561072f3660046145c8565b612c75565b610335610742366004614085565b612f06565b610390610755366004613e8d565b6000908152600b602052604090205490565b610335610775366004613e5a565b612fd3565b610335610788366004614063565b613042565b61033561079b366004614063565b6130f3565b6000546001600160a01b031633146107ed5760405162461bcd60e51b815260206004820181905260248201526000805160206149ea83398151915260448201526064015b60405180910390fd5b6000828152600c6020908152604080832054600e90925290912054610813908390614643565b11156108615760405162461bcd60e51b815260206004820152601b60248201527f526962626974206974656d20737570706c79206578636565646564000000000060448201526064016107e4565b6000828152600e60205260408120805483929061087f908490614643565b925050819055506108a1838383604051806020016040528060008152506131a2565b505050565b60006001600160a01b0383166109245760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201527f616c6964206f776e65720000000000000000000000000000000000000000000060648201526084016107e4565b5060009081526014602090815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b148061097d57506001600160e01b031982166303a24d0760e21b145b8061099857506301ffc9a760e01b6001600160e01b03198316145b92915050565b6000546001600160a01b031633146109e65760405162461bcd60e51b815260206004820181905260248201526000805160206149ea83398151915260448201526064016107e4565b80516109f9906003906020840190613da5565b5050565b60018054610a0a9061465b565b80601f0160208091040260200160405190810160405280929190818152602001828054610a369061465b565b8015610a835780601f10610a5857610100808354040283529160200191610a83565b820191906000526020600020905b815481529060010190602001808311610a6657829003601f168201915b505050505081565b6000546001600160a01b03163314610ad35760405162461bcd60e51b815260206004820181905260248201526000805160206149ea83398151915260448201526064016107e4565b600754821115610b195760405162461bcd60e51b8152602060048201526011602482015270125108191bd95cc81b9bdd08195e1a5cdd607a1b60448201526064016107e4565b60009182526010602052604090912055565b6000546001600160a01b03163314610b735760405162461bcd60e51b815260206004820181905260248201526000805160206149ea83398151915260448201526064016107e4565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b600081815260116020908152604091829020805483518184028101840190945280845260609392830182828015610bf557602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610bd7575b50505050509050919050565b60606003610c0e836132b8565b604051602001610c1f92919061472e565b6040516020818303038152906040529050919050565b6000546001600160a01b03163314610c7d5760405162461bcd60e51b815260206004820181905260248201526000805160206149ea83398151915260448201526064016107e4565b600754821115610cc35760405162461bcd60e51b8152602060048201526011602482015270125108191bd95cc81b9bdd08195e1a5cdd607a1b60448201526064016107e4565b6000918252600d6020526040909120805460ff1916911515919091179055565b6001600160a01b038516331480610cff5750610cff85336106bd565b610d715760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f766564000000000000000000000000000060648201526084016107e4565b610d7e85858585856133d9565b60005b835181101561113357600160166000868481518110610da257610da2614753565b602002602001015181526020019081526020016000206000876001600160a01b03166001600160a01b03168152602001908152602001600020541015610e965760116000858381518110610df857610df8614753565b602090810291909101810151825281810192909252604001600090812080546001808201835591835292822090920180546001600160a01b0319166001600160a01b038916179055855160169190879085908110610e5857610e58614753565b602002602001015181526020019081526020016000206000876001600160a01b03166001600160a01b03168152602001908152602001600020819055505b610eb986858381518110610eac57610eac614753565b60200260200101516108a6565b60000361112157600060166000868481518110610ed857610ed8614753565b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b031681526020019081526020016000208190555060005b60116000868481518110610f2e57610f2e614753565b602002602001015181526020019081526020016000208054905081101561111f57866001600160a01b031660116000878581518110610f6f57610f6f614753565b602002602001015181526020019081526020016000208281548110610f9657610f96614753565b6000918252602090912001546001600160a01b03160361110d5760116000868481518110610fc657610fc6614753565b60200260200101518152602001908152602001600020600160116000888681518110610ff457610ff4614753565b60200260200101518152602001908152602001600020805490506110189190614769565b8154811061102857611028614753565b600091825260208220015486516001600160a01b039091169160119188908690811061105657611056614753565b60200260200101518152602001908152602001600020828154811061107d5761107d614753565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550601160008684815181106110c1576110c1614753565b602002602001015181526020019081526020016000208054806110e6576110e6614780565b600082815260209020810160001990810180546001600160a01b031916905501905561111f565b8061111781614796565b915050610f18565b505b8061112b81614796565b915050610d81565b505050505050565b6000546001600160a01b031633146111835760405162461bcd60e51b815260206004820181905260248201526000805160206149ea83398151915260448201526064016107e4565b6001600160a01b03919091166000908152601360205260409020805460ff1916911515919091179055565b6000818152601260205260408082205490516370a0823160e01b81523360048201526001600160a01b03909116919082906370a0823190602401602060405180830381865afa158015611205573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061122991906147af565b116112765760405162461bcd60e51b815260206004820152601460248201527f436f6c6c6162206e6674206e6f74206f776e656400000000000000000000000060448201526064016107e4565b6009546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa1580156112bf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112e391906147af565b116113305760405162461bcd60e51b815260206004820152601760248201527f46726f67677920667269656e64206e6f74206f776e656400000000000000000060448201526064016107e4565b600084116113805760405162461bcd60e51b815260206004820152601f60248201527f526962626974206974656d204944206d757374206e6f74206265207a65726f0060448201526064016107e4565b6000848152600a60205260409020546113db5760405162461bcd60e51b815260206004820152601960248201527f526962626974206974656d207072696365206e6f74207365740000000000000060448201526064016107e4565b6000848152600a60205260408120546113f490856147c8565b6008546040516370a0823160e01b815233600482015291925082916001600160a01b03909116906370a0823190602401602060405180830381865afa158015611441573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061146591906147af565b10156114b35760405162461bcd60e51b815260206004820152601f60248201527f496e73756666696369656e742066756e647320666f722070757263686173650060448201526064016107e4565b6000858152600f602052604090205460ff1615156001146115165760405162461bcd60e51b815260206004820152601760248201527f526962626974206974656d206e6f74206f6e2073616c6500000000000000000060448201526064016107e4565b6000858152600c60205260409020546115715760405162461bcd60e51b815260206004820152601a60248201527f526962626974206974656d20737570706c79206e6f742073657400000000000060448201526064016107e4565b6000858152601060205260409020546115cc5760405162461bcd60e51b815260206004820181905260248201527f526962626974206974656d2077616c6c6574206c696d6974206e6f742073657460448201526064016107e4565b6000858152600c6020908152604080832054600e909252909120546115f2908690614643565b11156116405760405162461bcd60e51b815260206004820152601b60248201527f526962626974206974656d20737570706c79206578636565646564000000000060448201526064016107e4565b6000858152601060209081526040808320543384526017835281842089855290925290912054611671908690614643565b11156116c95760405162461bcd60e51b815260206004820152602160248201527f526962626974206974656d2077616c6c6574206c696d697420657863656564656044820152601960fa1b60648201526084016107e4565b336000908152601760209081526040808320888452909152812080548692906116f3908490614643565b90915550506000858152601660209081526040808320338452909152902054600111156117635760008581526011602090815260408083208054600181810183559185528385200180546001600160a01b0319163390811790915589855260168452828520908552909252909120555b6008546040516323b872dd60e01b8152336004820152306024820152604481018390526001600160a01b03909116906323b872dd906064016020604051808303816000875af11580156117ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117de91906147e7565b506000858152600e6020526040812080548692906117fd908490614643565b9250508190555061181f338686604051806020016040528060008152506131a2565b5050505050565b6000546001600160a01b0316331461186e5760405162461bcd60e51b815260206004820181905260248201526000805160206149ea83398151915260448201526064016107e4565b6006548211156118b45760405162461bcd60e51b8152602060048201526011602482015270125108191bd95cc81b9bdd08195e1a5cdd607a1b60448201526064016107e4565b60009182526012602052604090912080546001600160a01b0319166001600160a01b03909216919091179055565b6000546001600160a01b0316331461192a5760405162461bcd60e51b815260206004820181905260248201526000805160206149ea83398151915260448201526064016107e4565b6007548211156119705760405162461bcd60e51b8152602060048201526011602482015270125108191bd95cc81b9bdd08195e1a5cdd607a1b60448201526064016107e4565b6000918252600f6020526040909120805460ff1916911515919091179055565b60608151835114611a095760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860448201527f206d69736d61746368000000000000000000000000000000000000000000000060648201526084016107e4565b6000835167ffffffffffffffff811115611a2557611a25613f0a565b604051908082528060200260200182016040528015611a4e578160200160208202803683370190505b50905060005b8451811015611ab957611a8c858281518110611a7257611a72614753565b6020026020010151858381518110610eac57610eac614753565b828281518110611a9e57611a9e614753565b6020908102919091010152611ab281614796565b9050611a54565b509392505050565b60006001600654611ad29190614769565b905090565b6000546001600160a01b03163314611b1f5760405162461bcd60e51b815260206004820181905260248201526000805160206149ea83398151915260448201526064016107e4565b611b296000613647565b565b6000546001600160a01b03163314611b735760405162461bcd60e51b815260206004820181905260248201526000805160206149ea83398151915260448201526064016107e4565b6008546040516370a0823160e01b81523060048201526001600160a01b039091169063a9059cbb90339083906370a0823190602401602060405180830381865afa158015611bc5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611be991906147af565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015611c34573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c5891906147e7565b50565b6000546001600160a01b03163314611ca35760405162461bcd60e51b815260206004820181905260248201526000805160206149ea83398151915260448201526064016107e4565b6007548711611cf45760405162461bcd60e51b815260206004820152601560248201527f526962626974206974656d20494420657869737473000000000000000000000060448201526064016107e4565b600554611d0190866147c8565b6000888152600a6020908152604080832093909355600b8152828220899055600c8152828220879055600d8152828220805460ff1990811688151517909155600f82528383208054909116861515179055601090529081208290556007805491611d6a83614796565b919050555050505050505050565b6000546001600160a01b03163314611dc05760405162461bcd60e51b815260206004820181905260248201526000805160206149ea83398151915260448201526064016107e4565b6007548811611e115760405162461bcd60e51b815260206004820152601560248201527f526962626974206974656d20494420657869737473000000000000000000000060448201526064016107e4565b600554611e1e90876147c8565b6000898152600a6020908152604080832093909355600b81528282208a9055600c8152828220889055600d8152828220805460ff1990811689151517909155600f8252838320805490911687151517905560108152828220859055600680548352601290915291812080546001600160a01b0319166001600160a01b03851617905581549190611ead83614796565b909155505060078054906000611ec283614796565b91905055505050505050505050565b6000806000806000806000611ef2886000908152600a602052604090205490565b6000988952600b60209081526040808b2054600e8352818c2054600c8452828d205460108552838e2054600d8652848f2054600f90965293909d2054949d919c909b50995090975060ff918216965091169350915050565b6000546001600160a01b03163314611f925760405162461bcd60e51b815260206004820181905260248201526000805160206149ea83398151915260448201526064016107e4565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314611ffc5760405162461bcd60e51b815260206004820181905260248201526000805160206149ea83398151915260448201526064016107e4565b80516109f9906004906020840190613da5565b60028054610a0a9061465b565b6109f9338383613697565b6000546001600160a01b0316331461206f5760405162461bcd60e51b815260206004820181905260248201526000805160206149ea83398151915260448201526064016107e4565b6007548211156120b55760405162461bcd60e51b8152602060048201526011602482015270125108191bd95cc81b9bdd08195e1a5cdd607a1b60448201526064016107e4565b6000918252600b602052604090912055565b6000546001600160a01b0316331461210f5760405162461bcd60e51b815260206004820181905260248201526000805160206149ea83398151915260448201526064016107e4565b60005b6000828152601160205260409020548110156109f957600082815260116020526040902080546121b391908390811061214d5761214d614753565b9060005260206000200160009054906101000a90046001600160a01b0316836121ae60116000878152602001908152602001600020858154811061219357612193614753565b6000918252602090912001546001600160a01b0316866108a6565b61378b565b806121bd81614796565b915050612112565b80518251146122165760405162461bcd60e51b815260206004820152601660248201527f526962626974206974656d204944206d697373696e670000000000000000000060448201526064016107e4565b60005b82518110156108a157600083828151811061223657612236614753565b60200260200101511161228b5760405162461bcd60e51b815260206004820152601f60248201527f526962626974206974656d204944206d757374206e6f74206265207a65726f0060448201526064016107e4565b6000600a60008584815181106122a3576122a3614753565b6020026020010151815260200190815260200160002054116123075760405162461bcd60e51b815260206004820152601960248201527f526962626974206974656d207072696365206e6f74207365740000000000000060448201526064016107e4565b6000600a600085848151811061231f5761231f614753565b602002602001015181526020019081526020016000205483838151811061234857612348614753565b602002602001015161235a91906147c8565b6008546040516370a0823160e01b815233600482015291925082916001600160a01b03909116906370a0823190602401602060405180830381865afa1580156123a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123cb91906147af565b10156124195760405162461bcd60e51b815260206004820152601f60248201527f496e73756666696369656e742066756e647320666f722070757263686173650060448201526064016107e4565b600f600085848151811061242f5761242f614753565b60209081029190910181015182528101919091526040016000205460ff16151560011461249e5760405162461bcd60e51b815260206004820152601760248201527f526962626974206974656d206e6f74206f6e2073616c6500000000000000000060448201526064016107e4565b6000600c60008685815181106124b6576124b6614753565b60200260200101518152602001908152602001600020541161251a5760405162461bcd60e51b815260206004820152601a60248201527f526962626974206974656d20737570706c79206e6f742073657400000000000060448201526064016107e4565b60006010600086858151811061253257612532614753565b6020026020010151815260200190815260200160002054116125965760405162461bcd60e51b815260206004820181905260248201527f526962626974206974656d2077616c6c6574206c696d6974206e6f742073657460448201526064016107e4565b600c60008584815181106125ac576125ac614753565b60200260200101518152602001908152602001600020548383815181106125d5576125d5614753565b6020026020010151600e60008786815181106125f3576125f3614753565b60200260200101518152602001908152602001600020546126149190614643565b11156126625760405162461bcd60e51b815260206004820152601b60248201527f526962626974206974656d20737570706c79206578636565646564000000000060448201526064016107e4565b6010600085848151811061267857612678614753565b60200260200101518152602001908152602001600020548383815181106126a1576126a1614753565b602002602001015160176000336001600160a01b03166001600160a01b0316815260200190815260200160002060008786815181106126e2576126e2614753565b60200260200101518152602001908152602001600020546127039190614643565b111561275b5760405162461bcd60e51b815260206004820152602160248201527f526962626974206974656d2077616c6c6574206c696d697420657863656564656044820152601960fa1b60648201526084016107e4565b82828151811061276d5761276d614753565b602002602001015160176000336001600160a01b03166001600160a01b0316815260200190815260200160002060008685815181106127ae576127ae614753565b6020026020010151815260200190815260200160002060008282546127d39190614643565b925050819055506001601660008685815181106127f2576127f2614753565b602002602001015181526020019081526020016000206000336001600160a01b03166001600160a01b031681526020019081526020016000205410156128c8576011600085848151811061284857612848614753565b602090810291909101810151825281810192909252604001600090812080546001818101835591835292822090920180546001600160a01b0319163317905585516016919087908690811061289f5761289f614753565b602090810291909101810151825281810192909252604090810160009081203382529092529020555b6008546040516323b872dd60e01b8152336004820152306024820152604481018390526001600160a01b03909116906323b872dd906064016020604051808303816000875af115801561291f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061294391906147e7565b5082828151811061295657612956614753565b6020026020010151600e600086858151811061297457612974614753565b6020026020010151815260200190815260200160002060008282546129999190614643565b925050819055506129ed338584815181106129b6576129b6614753565b60200260200101518585815181106129d0576129d0614753565b6020026020010151604051806020016040528060008152506131a2565b50806129f881614796565b915050612219565b6000546001600160a01b03163314612a485760405162461bcd60e51b815260206004820181905260248201526000805160206149ea83398151915260448201526064016107e4565b6007548511612a995760405162461bcd60e51b815260206004820152601560248201527f526962626974206974656d20494420657869737473000000000000000000000060448201526064016107e4565b600554612aa690856147c8565b6000868152600a6020908152604080832093909355600c8152828220869055600f8152828220805460ff1916861515179055601090529081208290556007805491612af083614796565b91905055505050505050565b606060036004604051602001612b13929190614804565b604051602081830303815290604052905090565b6000546001600160a01b03163314612b6f5760405162461bcd60e51b815260206004820181905260248201526000805160206149ea83398151915260448201526064016107e4565b6000818152600e6020908152604080832054600c909252822054612b939190614769565b6000838152600c6020908152604080832054600e9092529091205491925090612bbd908390614643565b1115612be55760405162461bcd60e51b815260206004820152600060248201526044016107e4565b60008111612c355760405162461bcd60e51b815260206004820152601a60248201527f526962626974206974656d20737570706c79207265616368656400000000000060448201526064016107e4565b6000828152600e602052604081208054839290612c53908490614643565b925050819055506109f9338383604051806020016040528060008152506131a2565b6001600160a01b038516331480612c915750612c9185336106bd565b612d035760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201527f20617070726f766564000000000000000000000000000000000000000000000060648201526084016107e4565b612d10858585858561390a565b60008381526016602090815260408083206001600160a01b038816845290915290205460011115612d8d5760008381526011602090815260408083208054600180820183559185528385200180546001600160a01b0319166001600160a01b038a1690811790915587855260168452828520908552909252909120555b612d9785846108a6565b60000361181f5760008381526016602090815260408083206001600160a01b038916845290915281208190555b60008481526011602052604090205481101561113357600084815260116020526040902080546001600160a01b038816919083908110612e0657612e06614753565b6000918252602090912001546001600160a01b031603612ef45760008481526011602052604090208054612e3c90600190614769565b81548110612e4c57612e4c614753565b60009182526020808320909101548683526011909152604090912080546001600160a01b039092169183908110612e8557612e85614753565b600091825260208083209190910180546001600160a01b0319166001600160a01b039490941693909317909255858152601190915260409020805480612ecd57612ecd614780565b600082815260209020810160001990810180546001600160a01b0319169055019055611133565b80612efe81614796565b915050612dc4565b6000546001600160a01b03163314612f4e5760405162461bcd60e51b815260206004820181905260248201526000805160206149ea83398151915260448201526064016107e4565b6001600160a01b038116612fca5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016107e4565b611c5881613647565b3360009081526013602052604090205460ff1615156001146130375760405162461bcd60e51b815260206004820181905260248201527f41646472657373206e6f7420617070726f76656420666f72206275726e696e6760448201526064016107e4565b6108a183838361378b565b6000546001600160a01b0316331461308a5760405162461bcd60e51b815260206004820181905260248201526000805160206149ea83398151915260448201526064016107e4565b6007548211156130d05760405162461bcd60e51b8152602060048201526011602482015270125108191bd95cc81b9bdd08195e1a5cdd607a1b60448201526064016107e4565b6005546130dd90826147c8565b6000928352600a60205260409092209190915550565b6000546001600160a01b0316331461313b5760405162461bcd60e51b815260206004820181905260248201526000805160206149ea83398151915260448201526064016107e4565b6007548211156131815760405162461bcd60e51b8152602060048201526011602482015270125108191bd95cc81b9bdd08195e1a5cdd607a1b60448201526064016107e4565b6000918252600c602052604090912055565b6001600160a01b03163b151590565b6001600160a01b0384166132025760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b60648201526084016107e4565b33600061320e85613ab9565b9050600061321b85613ab9565b905060008681526014602090815260408083206001600160a01b038b1684529091528120805487929061324f908490614643565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46132af83600089898989613b04565b50505050505050565b6060816000036132df5750506040805180820190915260018152600360fc1b602082015290565b8160005b811561330957806132f381614796565b91506133029050600a8361482f565b91506132e3565b60008167ffffffffffffffff81111561332457613324613f0a565b6040519080825280601f01601f19166020018201604052801561334e576020820181803683370190505b5090505b84156133d157613363600183614769565b9150613370600a86614843565b61337b906030614643565b60f81b81838151811061339057613390614753565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506133ca600a8661482f565b9450613352565b949350505050565b81518351146134505760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060448201527f6d69736d6174636800000000000000000000000000000000000000000000000060648201526084016107e4565b6001600160a01b0384166134b45760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b60648201526084016107e4565b3360005b84518110156135e15760008582815181106134d5576134d5614753565b6020026020010151905060008583815181106134f3576134f3614753565b60209081029190910181015160008481526014835260408082206001600160a01b038e1683529093529190912054909150818110156135875760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b60648201526084016107e4565b60008381526014602090815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906135c6908490614643565b92505081905550505050806135da90614796565b90506134b8565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051613631929190614857565b60405180910390a4611133818787878787613ca9565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b816001600160a01b0316836001600160a01b03160361371e5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c66000000000000000000000000000000000000000000000060648201526084016107e4565b6001600160a01b03838116600081815260156020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0383166137ed5760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b60648201526084016107e4565b3360006137f984613ab9565b9050600061380684613ab9565b6040805160208082018352600091829052888252601481528282206001600160a01b038b16835290522054909150848110156138905760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b60648201526084016107e4565b60008681526014602090815260408083206001600160a01b038b81168086529184528285208a8703905582518b81529384018a90529092908816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46040805160208101909152600090526132af565b6001600160a01b03841661396e5760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b60648201526084016107e4565b33600061397a85613ab9565b9050600061398785613ab9565b905060008681526014602090815260408083206001600160a01b038c16845290915290205485811015613a0f5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b60648201526084016107e4565b60008781526014602090815260408083206001600160a01b038d8116855292528083208985039055908a16825281208054889290613a4e908490614643565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4613aae848a8a8a8a8a613b04565b505050505050505050565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110613af357613af3614753565b602090810291909101015292915050565b6001600160a01b0384163b156111335760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190613b489089908990889088908890600401614885565b6020604051808303816000875af1925050508015613b83575060408051601f3d908101601f19168201909252613b80918101906148c8565b60015b613c3857613b8f6148e5565b806308c379a003613bc85750613ba3614901565b80613bae5750613bca565b8060405162461bcd60e51b81526004016107e49190614050565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e74657200000000000000000000000060648201526084016107e4565b6001600160e01b0319811663f23a6e6160e01b146132af5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b60648201526084016107e4565b6001600160a01b0384163b156111335760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190613ced908990899088908890889060040161498b565b6020604051808303816000875af1925050508015613d28575060408051601f3d908101601f19168201909252613d25918101906148c8565b60015b613d3457613b8f6148e5565b6001600160e01b0319811663bc197c8160e01b146132af5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b60648201526084016107e4565b828054613db19061465b565b90600052602060002090601f016020900481019282613dd35760008555613e19565b82601f10613dec57805160ff1916838001178555613e19565b82800160010185558215613e19579182015b82811115613e19578251825591602001919060010190613dfe565b50613e25929150613e29565b5090565b5b80821115613e255760008155600101613e2a565b80356001600160a01b0381168114613e5557600080fd5b919050565b600080600060608486031215613e6f57600080fd5b613e7884613e3e565b95602085013595506040909401359392505050565b600060208284031215613e9f57600080fd5b5035919050565b60008060408385031215613eb957600080fd5b613ec283613e3e565b946020939093013593505050565b6001600160e01b031981168114611c5857600080fd5b600060208284031215613ef857600080fd5b8135613f0381613ed0565b9392505050565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff81118282101715613f4657613f46613f0a565b6040525050565b600067ffffffffffffffff831115613f6757613f67613f0a565b604051613f7e601f8501601f191660200182613f20565b809150838152848484011115613f9357600080fd5b83836020830137600060208583010152509392505050565b600060208284031215613fbd57600080fd5b813567ffffffffffffffff811115613fd457600080fd5b8201601f81018413613fe557600080fd5b6133d184823560208401613f4d565b60005b8381101561400f578181015183820152602001613ff7565b8381111561401e576000848401525b50505050565b6000815180845261403c816020860160208601613ff4565b601f01601f19169290920160200192915050565b602081526000613f036020830184614024565b6000806040838503121561407657600080fd5b50508035926020909101359150565b60006020828403121561409757600080fd5b613f0382613e3e565b6020808252825182820181905260009190848201906040850190845b818110156140e15783516001600160a01b0316835292840192918401916001016140bc565b50909695505050505050565b8015158114611c5857600080fd5b6000806040838503121561410e57600080fd5b823591506020830135614120816140ed565b809150509250929050565b600067ffffffffffffffff82111561414557614145613f0a565b5060051b60200190565b600082601f83011261416057600080fd5b8135602061416d8261412b565b60405161417a8282613f20565b83815260059390931b850182019282810191508684111561419a57600080fd5b8286015b848110156141b5578035835291830191830161419e565b509695505050505050565b600082601f8301126141d157600080fd5b613f0383833560208501613f4d565b600080600080600060a086880312156141f857600080fd5b61420186613e3e565b945061420f60208701613e3e565b9350604086013567ffffffffffffffff8082111561422c57600080fd5b61423889838a0161414f565b9450606088013591508082111561424e57600080fd5b61425a89838a0161414f565b9350608088013591508082111561427057600080fd5b5061427d888289016141c0565b9150509295509295909350565b6000806040838503121561429d57600080fd5b6142a683613e3e565b91506020830135614120816140ed565b6000806000606084860312156142cb57600080fd5b505081359360208301359350604090920135919050565b600080604083850312156142f557600080fd5b8235915061430560208401613e3e565b90509250929050565b6000806040838503121561432157600080fd5b823567ffffffffffffffff8082111561433957600080fd5b818501915085601f83011261434d57600080fd5b8135602061435a8261412b565b6040516143678282613f20565b83815260059390931b850182019282810191508984111561438757600080fd5b948201945b838610156143ac5761439d86613e3e565b8252948201949082019061438c565b965050860135925050808211156143c257600080fd5b506143cf8582860161414f565b9150509250929050565b600081518084526020808501945080840160005b83811015614409578151875295820195908201906001016143ed565b509495945050505050565b602081526000613f0360208301846143d9565b600080600080600080600060e0888a03121561444257600080fd5b873596506020880135955060408801359450606088013593506080880135614469816140ed565b925060a0880135614479816140ed565b8092505060c0880135905092959891949750929550565b600080600080600080600080610100898b0312156144ad57600080fd5b8835975060208901359650604089013595506060890135945060808901356144d4816140ed565b935060a08901356144e4816140ed565b925060c089013591506144f960e08a01613e3e565b90509295985092959890939650565b6000806040838503121561451b57600080fd5b823567ffffffffffffffff8082111561453357600080fd5b61453f8683870161414f565b935060208501359150808211156143c257600080fd5b600080600080600060a0868803121561456d57600080fd5b853594506020860135935060408601359250606086013561458d816140ed565b949793965091946080013592915050565b600080604083850312156145b157600080fd5b6145ba83613e3e565b915061430560208401613e3e565b600080600080600060a086880312156145e057600080fd5b6145e986613e3e565b94506145f760208701613e3e565b93506040860135925060608601359150608086013567ffffffffffffffff81111561462157600080fd5b61427d888289016141c0565b634e487b7160e01b600052601160045260246000fd5b600082198211156146565761465661462d565b500190565b600181811c9082168061466f57607f821691505b60208210810361468f57634e487b7160e01b600052602260045260246000fd5b50919050565b8054600090600181811c90808316806146af57607f831692505b602080841082036146d057634e487b7160e01b600052602260045260246000fd5b8180156146e457600181146146f557614722565b60ff19861689528489019650614722565b60008881526020902060005b8681101561471a5781548b820152908501908301614701565b505084890196505b50505050505092915050565b600061473a8285614695565b835161474a818360208801613ff4565b01949350505050565b634e487b7160e01b600052603260045260246000fd5b60008282101561477b5761477b61462d565b500390565b634e487b7160e01b600052603160045260246000fd5b6000600182016147a8576147a861462d565b5060010190565b6000602082840312156147c157600080fd5b5051919050565b60008160001904831182151516156147e2576147e261462d565b500290565b6000602082840312156147f957600080fd5b8151613f03816140ed565b60006133d16148138386614695565b84614695565b634e487b7160e01b600052601260045260246000fd5b60008261483e5761483e614819565b500490565b60008261485257614852614819565b500690565b60408152600061486a60408301856143d9565b828103602084015261487c81856143d9565b95945050505050565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a060808301526148bd60a0830184614024565b979650505050505050565b6000602082840312156148da57600080fd5b8151613f0381613ed0565b600060033d11156148fe5760046000803e5060005160e01c5b90565b600060443d101561490f5790565b6040516003193d81016004833e81513d67ffffffffffffffff816024840111818411171561493f57505050505090565b82850191508151818111156149575750505050505090565b843d87010160208285010111156149715750505050505090565b61498060208286010187613f20565b509095945050505050565b60006001600160a01b03808816835280871660208401525060a060408301526149b760a08301866143d9565b82810360608401526149c981866143d9565b905082810360808401526149dd8185614024565b9897505050505050505056fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220313cad5a9638d8762e5f52dd591533978f7a92068e91e67e691d9648dee01afc64736f6c634300080e0033

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

00000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000046898f15f99b8887d87669ab19d633f579939ad90000000000000000000000008f7b5f7845224349ae9ae45b400ebae0051fcd9d000000000000000000000000000000000000000000000000000000000000000b526962626974204974656d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b524942424954204954454d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002768747470733a2f2f6170692e66726f676779667269656e64736e66742e636f6d2f6974656d732f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011636f6e74726163742f6d65746164617461000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): Ribbit Item
Arg [1] : _symbol (string): RIBBIT ITEM
Arg [2] : _baseUrl (string): https://api.froggyfriendsnft.com/items/
Arg [3] : _contractUrl (string): contract/metadata
Arg [4] : _ribbitAddress (address): 0x46898f15F99b8887D87669ab19d633F579939ad9
Arg [5] : _froggyAddress (address): 0x8F7b5f7845224349ae9Ae45B400EBAE0051fCD9d

-----Encoded View---------------
15 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [3] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [4] : 00000000000000000000000046898f15f99b8887d87669ab19d633f579939ad9
Arg [5] : 0000000000000000000000008f7b5f7845224349ae9ae45b400ebae0051fcd9d
Arg [6] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [7] : 526962626974204974656d000000000000000000000000000000000000000000
Arg [8] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [9] : 524942424954204954454d000000000000000000000000000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000027
Arg [11] : 68747470733a2f2f6170692e66726f676779667269656e64736e66742e636f6d
Arg [12] : 2f6974656d732f00000000000000000000000000000000000000000000000000
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000011
Arg [14] : 636f6e74726163742f6d65746164617461000000000000000000000000000000


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.